/* そよかぜの丘幼稚園：全ページ共通のデザイン */
/* ===== 色と文字（ここを変えると全体の色が変わります） ===== */
:root {
  --green: #237fab;       /* メインの空色：ボタン・枠 */
  --green-light: #45a9d6;
  --leaf: #e0703f;        /* 見出しの英字（コーラル） */
  --brown: #35546b;       /* 見出し（紺） */
  --red: #ef6a4c;         /* ヘッダーの目立つボタン */
  --orange: #f7b733;      /* お問い合わせボタン */
  --yellow: #f0c04c;
  --pink: #f09891;
  --sky: #5db1d7;
  --text: #272727;

  --bg-news: #eef7fb;
  --bg-about: #fff6ee;
  --bg-features: #eaf4f8;
  --bg-info: #fff4ec;
  --bg-footer: #eef6f9;

  --font: "Zen Maru Gothic", "Hiragino Maru Gothic ProN", sans-serif;
  --wrap: 1000px;
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: 80px; }

body {
  margin: 0;
  color: var(--text);
  background: #fff;
  font-family: var(--font);
  font-weight: 500;
  font-size: 16px;
  line-height: 2;
  letter-spacing: 0.02em;
}

a { color: inherit; text-decoration: none; }
img, svg { display: block; max-width: 100%; }
ul { margin: 0; padding: 0; list-style: none; }

a:focus-visible,
button:focus-visible {
  outline: 3px solid var(--orange);
  outline-offset: 3px;
}

.inner {
  width: min(var(--wrap), 94%);
  margin-inline: auto;
}

/* 写真が入るまでの仮の絵（グラデーションと丘） */
.ph {
  position: relative;
  overflow: hidden;
  border-radius: 12px;
  background: linear-gradient(160deg, #cfe7f2, #e8f3d6);
}

.ph::before {
  content: "";
  position: absolute;
  left: -10%;
  right: -10%;
  bottom: -35%;
  height: 70%;
  border-radius: 50%;
  background: #9fcd6a;
}

.ph::after {
  content: "";
  position: absolute;
  width: 22%;
  aspect-ratio: 1;
  top: 14%;
  right: 14%;
  border-radius: 50%;
  background: #fbe38a;
}

.ph-2 { background: linear-gradient(160deg, #f7e7c4, #f3d9a4); }
.ph-2::before { background: #b48a5e; }
.ph-3 { background: linear-gradient(160deg, #dcefe0, #b9dcc1); }
.ph-3::before { background: #5f8a3e; }
.ph-3::after { background: #fff; opacity: .7; }
.ph-4 { background: linear-gradient(160deg, #fde4e1, #f9cfc9); }
.ph-4::before { background: #f09891; }
.ph-5 { background: linear-gradient(160deg, #e3f1fa, #c7e3f2); }
.ph-5::before { background: #5db1d7; }
.ph-6 { background: linear-gradient(160deg, #fff4c4, #ffe58a); }
.ph-6::before { background: #8dbc28; }


/* 写真が入った枠：仮の絵を消して写真を枠いっぱいに表示 */
.ph.has-photo::before,
.ph.has-photo::after { display: none; }

.ph > img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* メインビジュアルの写真と、文字を読みやすくする左側の影 */
.mv-photo {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 58%;
}

.mv-shade {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(18, 40, 58, 0.62), rgba(18, 40, 58, 0) 65%);
}

.ph-label {
  position: absolute;
  left: 12px;
  bottom: 10px;
  z-index: 1;
  padding: 0 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.85);
  font-size: 12px;
  color: #555;
}

/* ===== 見出し：左右に葉っぱ、英字の下に波線 ===== */
.ttl {
  position: relative;
  width: fit-content;
  margin: 0 auto 40px;
  text-align: center;
  line-height: 1;
  font-weight: 700;
  letter-spacing: 0.1em;
  color: var(--brown);
  font-size: clamp(26px, 3vw, 36px);
}

.ttl-jp { display: block; margin-bottom: 0.4em; }

.ttl-en {
  display: block;
  padding-bottom: 1.3em;
  font-size: clamp(15px, 1.6vw, 19px);
  color: var(--leaf);
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 94 16'%3E%3Cpath d='M2 8 Q 13 0 24 8 T 47 8 T 70 8 T 92 8' fill='none' stroke='%23ef8a5f' stroke-width='4' stroke-linecap='round'/%3E%3C/svg%3E") no-repeat center bottom / 4em auto;
}

.ttl.has-leaves::before,
.ttl.has-leaves::after {
  content: "";
  position: absolute;
  top: -6%;
  width: 1.8em;
  aspect-ratio: 1;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 60 60'%3E%3Cg fill='none' stroke-linecap='round' stroke-width='5'%3E%3Cpath d='M6 20 H38 a8 8 0 1 0 -8 -8' stroke='%232a8fbd'/%3E%3Cpath d='M6 34 H48 a7 7 0 1 1 -7 7' stroke='%23ef8a5f'/%3E%3Cpath d='M14 48 H30' stroke='%237cc4dd'/%3E%3C/g%3E%3C/svg%3E") no-repeat center / contain;
}

.ttl.has-leaves::before { right: calc(100% + 0.6em); transform: scaleX(-1); }
.ttl.has-leaves::after { left: calc(100% + 0.6em); }

.ttl.is-white,
.ttl.is-white .ttl-en { color: #fff; }

.ttl.is-white .ttl-en {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 94 16'%3E%3Cpath d='M2 8 Q 13 0 24 8 T 47 8 T 70 8 T 92 8' fill='none' stroke='%23fff' stroke-width='4' stroke-linecap='round'/%3E%3C/svg%3E");
}

/* ===== ボタン：緑の丸ボタン＋右の矢印 ===== */
.btn {
  position: relative;
  display: block;
  width: 100%;
  max-width: 278px;
  margin: 0 auto;
  padding: 12px 40px;
  border-radius: 999px;
  background: var(--green);
  color: #fff;
  font-size: 15px;
  font-weight: 700;
  text-align: center;
  transition: background 0.2s;
}

.btn::after {
  content: "";
  position: absolute;
  top: 50%;
  right: 20px;
  width: 8px;
  height: 8px;
  border-top: 2px solid currentColor;
  border-right: 2px solid currentColor;
  transform: translateY(-50%) rotate(45deg);
  transition: right 0.2s;
}

.btn:hover { background: var(--green-light); }
.btn:hover::after { right: 14px; }

/* 波の区切り */
.wave {
  position: absolute;
  left: 0;
  bottom: -1px;
  width: 100%;
  height: clamp(24px, 4vw, 60px);
}

/* ===== ヘッダー ===== */
.site-header {
  position: relative;
  z-index: 20;
  background: #fff;
  border-bottom: 1px solid #eef2e6;
}

.hdr-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 12px 0;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
}

.logo-text {
  line-height: 1.3;
}

.logo-name {
  display: block;
  font-size: 22px;
  font-weight: 900;
  color: var(--green);
  letter-spacing: 0.08em;
}

.logo-sub {
  display: block;
  font-size: 11px;
  color: var(--brown);
}

.hdr-info {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 6px;
}

.hdr-tel {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 28px;
  font-weight: 700;
  line-height: 1;
  letter-spacing: 0.08em;
  color: var(--green);
}

.hdr-tel svg { width: 22px; height: 22px; }

.hdr-address {
  font-size: 13px;
  line-height: 1;
  letter-spacing: 0.08em;
}

.hdr-cta {
  display: none;
}

/* グローバルメニュー：アイコン＋文字、点線で区切る */
.menu-list {
  display: flex;
  justify-content: center;
  width: min(var(--wrap), 100%);
  margin: 0 auto;
  padding-bottom: 12px;
}

.menu-list > li {
  position: relative;
  flex: 1;
  border-right: 1px dashed #b9d3df;
}

.menu-list > li:first-child { border-left: 1px dashed #b9d3df; }

.menu-list > li > a {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  padding: 8px 0;
  font-size: 15px;
  line-height: 1.3;
  color: #443b39;
  text-align: center;
  white-space: nowrap;
}

.menu-list > li > a svg { width: 34px; height: 34px; }

.menu-list > li > a:hover { color: var(--green); }

/* サブメニュー：緑の箱でふわっと出す */
.submenu {
  position: absolute;
  top: 100%;
  left: 50%;
  z-index: 5;
  width: 210px;
  transform: translateX(-50%);
  visibility: hidden;
  opacity: 0;
  transition: opacity 0.2s, visibility 0.2s;
}

.menu-list > li:hover .submenu,
.menu-list > li:focus-within .submenu {
  visibility: visible;
  opacity: 1;
}

.submenu a {
  display: block;
  padding: 13px 10px;
  border-bottom: 1px solid #fff;
  background: var(--green);
  color: #fff;
  font-size: 14px;
  font-weight: 700;
  line-height: 1.4;
  text-align: center;
}

.submenu a:hover { background: var(--green-light); }

.menu-toggle,
.nav-mask { display: none; }

/* ===== メインビジュアル ===== */
.mainvisual {
  position: relative;
  aspect-ratio: 1920 / 790;
  min-height: 360px;
  overflow: hidden;
  background: #cfe7f2;
}

.mainvisual > svg:not(.wave) {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.mv-copy {
  position: absolute;
  left: 12%;
  bottom: 20%;
  z-index: 1;
  margin: 0;
  color: #fff;
  font-size: clamp(28px, 4.2vw, 60px);
  font-weight: 900;
  line-height: 1.5;
  letter-spacing: 0.08em;
  text-shadow: 0 2px 0 rgba(119, 95, 63, .35), 0 0 18px rgba(80, 60, 30, .25);
}

.mv-copy small {
  display: block;
  font-size: 0.4em;
  letter-spacing: 0.2em;
}

/* ===== お知らせ ===== */
.sec-news {
  position: relative;
  padding: clamp(50px, 8vw, 90px) 0 clamp(80px, 11vw, 140px);
  background: var(--bg-news);
}

.news-grid {
  display: grid;
  grid-template-columns: 23% 1fr;
  gap: clamp(20px, 4vw, 70px);
  align-items: center;
}

.news-head .ttl { margin-bottom: 26px; }

/* お知らせ見出しの上だけ、鳥のアイコン */
.news-head .ttl::before {
  content: "";
  display: block;
  width: 64px;
  aspect-ratio: 1;
  margin: 0 auto 12px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 64 64'%3E%3Crect x='30.5' y='30' width='3' height='33' rx='1.5' fill='%2335546b'/%3E%3Cg transform='translate(32 27)'%3E%3Cpath d='M0 0V-24L16-11Z' fill='%23ef6a4c'/%3E%3Cpath d='M0 0V-24L16-11Z' fill='%23f7b733' transform='rotate(90)'/%3E%3Cpath d='M0 0V-24L16-11Z' fill='%232a8fbd' transform='rotate(180)'/%3E%3Cpath d='M0 0V-24L16-11Z' fill='%237cc4dd' transform='rotate(270)'/%3E%3Ccircle r='3.5' fill='%23fff'/%3E%3C/g%3E%3C/svg%3E") no-repeat center / contain;
}

.news-head .ttl-en { padding-bottom: 0; background: none; }

.news-box {
  padding: 10px 7%;
  background: #fff;
  border: 4px solid var(--green);
  border-radius: 20px;
}

.news-list {
  max-height: 250px;
  overflow-y: auto;
}

.news-list li { border-bottom: 1px dashed #d1d1d1; }
.news-list li:last-child { border-bottom: 0; }

.news-list a {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 4px 16px;
  padding: 14px 6px;
  transition: background 0.2s;
}

.news-list a:hover { background: #f8f8f8; }

.news-date { font-size: 14px; color: #666; }

.tag {
  display: inline-block;
  width: 104px;
  padding: 5px 0;
  border-radius: 999px;
  color: #fff;
  font-size: 13px;
  font-weight: 700;
  line-height: 1;
  text-align: center;
}

.tag-news { background: var(--green); }
.tag-letter { background: var(--pink); }
.tag-menu { background: #a47a4d; }

.news-title { flex: 1 1 260px; }

.news-head .btn { max-width: 209px; }
.news-more-sp { display: none; margin-top: 24px; }

/* ===== 園について＋写真の帯 ===== */
.sec-about {
  position: relative;
  padding: 40px 0 clamp(80px, 11vw, 140px);
  background: var(--bg-about);
}

.about-media {
  aspect-ratio: 1000 / 460;
  margin: 0 auto 34px;
}

.about-media .play {
  position: absolute;
  inset: 0;
  z-index: 1;
  display: grid;
  place-items: center;
}

.about-media .play span {
  display: grid;
  place-items: center;
  width: 78px;
  height: 78px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.12);
}

.about-text {
  margin: 0 0 40px;
  text-align: center;
}

/* 写真が右から左へ流れ続ける帯 */
.loop {
  overflow: hidden;
  margin-top: clamp(50px, 8vw, 90px);
}

.loop-track {
  display: flex;
  width: max-content;
  animation: loop 60s linear infinite;
}

.loop-track .ph {
  flex: none;
  width: 300px;
  height: 210px;
  margin: 0 14px;
}

.loop-track .ph:nth-child(even) { margin-top: 44px; }

@keyframes loop {
  to { transform: translateX(-50%); }
}

/* ===== 園の特色 ===== */
.sec-features {
  position: relative;
  padding: clamp(50px, 7vw, 80px) 0 clamp(80px, 12vw, 150px);
  background: var(--bg-features);
}

.sec-features .inner { width: min(1300px, 94%); }

.features-lead {
  max-width: 820px;
  margin: 0 auto 50px;
  text-align: center;
}

.feature-list {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px 28px;
}

.feature-list .ph { aspect-ratio: 4 / 3; margin-bottom: 16px; }

.feature-list h3 {
  margin: 0 0 12px;
  padding-bottom: 6px;
  border-bottom: 2px dashed var(--green);
  color: var(--brown);
  font-size: clamp(18px, 1.5vw, 21px);
  font-weight: 700;
  line-height: 1.6;
  text-align: center;
}

.feature-list li:nth-child(2) h3 { border-color: var(--sky); }
.feature-list li:nth-child(3) h3 { border-color: var(--pink); }
.feature-list li:nth-child(4) h3 { border-color: var(--leaf); }
.feature-list li:nth-child(5) h3 { border-color: var(--yellow); }
.feature-list li:nth-child(6) h3 { border-color: #a47a4d; }

.feature-list p { margin: 0; font-size: 15px; }

/* ===== 園生活・入園案内：写真を画面の端まで ===== */
.sec-split {
  position: relative;
  padding: 70px 0 clamp(80px, 12vw, 150px);
}

.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: 0;
}

.split + .split { margin-top: 80px; }

.split .ph {
  aspect-ratio: 16 / 10;
  border-radius: 0 24px 24px 0;
}

.split-text {
  padding: 0 max(calc(50vw - 500px), 3vw) 0 60px;
}

.split.is-reverse .ph { order: 2; border-radius: 24px 0 0 24px; }
.split.is-reverse .split-text {
  order: 1;
  padding: 0 60px 0 max(calc(50vw - 500px), 3vw);
}

.split-text .ttl { margin-bottom: 30px; }
.split-text p { margin: 0 0 36px; }

/* ===== 園からのご案内 ===== */
.sec-info {
  padding: clamp(50px, 7vw, 80px) 0 clamp(50px, 9vw, 100px);
  background: var(--bg-info);
}

.info-list {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

.info-list a {
  display: flex;
  align-items: center;
  gap: 14px;
  min-height: 110px;
  padding: 14px 20px;
  border-radius: 16px;
  background: #fff;
  border: 3px solid transparent;
  transition: border-color 0.2s, transform 0.2s;
}

.info-list a:hover { border-color: var(--green); transform: translateY(-2px); }

.info-icon {
  flex: none;
  display: grid;
  place-items: center;
  width: 64px;
  height: 64px;
  border-radius: 50%;
}

.info-icon svg { width: 34px; height: 34px; }

.info-name {
  font-size: 17px;
  font-weight: 700;
  line-height: 1.5;
}

.info-name small {
  display: block;
  font-size: 12.5px;
  font-weight: 500;
  color: #777;
}


/* ===== 採用（保育士のイラスト） ===== */
.sec-recruit {
  padding: clamp(50px, 8vw, 90px) 0;
  background: #fff;
}

.recruit-grid {
  display: grid;
  grid-template-columns: 5fr 6fr;
  gap: clamp(24px, 5vw, 60px);
  align-items: center;
}

.recruit-illust { margin: 0; }
.recruit-illust svg { width: 100%; height: auto; }

.recruit-text .ttl { margin-left: 0; text-align: left; }
.recruit-text .ttl-jp { line-height: 1.45; margin-bottom: 0.2em; }
.recruit-text .nb { display: inline-block; }
.recruit-text .ttl-en { background-position: left bottom; }
.recruit-text p { margin: 0 0 32px; }
.recruit-text .btn { margin: 0; }

@media (max-width: 768px) {
  .recruit-grid { grid-template-columns: 1fr; }
  .recruit-illust { max-width: 360px; margin: 0 auto; }
  .recruit-text .btn { margin: 0 auto; }
}

/* ===== お問い合わせ ===== */
.sec-contact {
  padding: clamp(50px, 9vw, 100px) 0;
  background:
    radial-gradient(circle at 12% 20%, rgba(255,255,255,.12) 0 60px, transparent 61px),
    radial-gradient(circle at 88% 75%, rgba(255,255,255,.1) 0 90px, transparent 91px),
    var(--green);
  color: #fff;
  text-align: center;
}

.sec-contact .ttl { margin-bottom: 30px; }

.contact-text { margin: 0; }

.contact-tel {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-top: 18px;
  font-size: 30px;
  font-weight: 700;
  line-height: 1;
  letter-spacing: 0.1em;
}

.contact-tel svg { width: 24px; height: 24px; }

.sec-contact .btn {
  max-width: 305px;
  margin-top: 28px;
  background: var(--orange);
}

.sec-contact .btn:hover { background: #f9c95a; }

/* 地図（場所が決まったら Google マップに差し替え） */
.map {
  position: relative;
  height: 380px;
  overflow: hidden;
  background:
    linear-gradient(35deg, transparent 47%, #fff 47.5% 50%, transparent 50.5%),
    linear-gradient(115deg, transparent 33%, #fff 33.5% 36%, transparent 36.5%),
    linear-gradient(80deg, transparent 66%, #cfe0c3 66.5% 70%, transparent 70.5%),
    #e8eee2;
}

.map-pin {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -100%);
  text-align: center;
  font-weight: 700;
  font-size: 14px;
  color: var(--green);
}

.map-pin svg { width: 44px; height: 44px; margin: 0 auto; }

/* ===== フッター ===== */
.site-footer {
  position: relative;
  padding: clamp(50px, 5vw, 60px) 0 120px;
  background: var(--bg-footer);
}

.footer-grid {
  display: grid;
  grid-template-columns: 5fr 7fr;
  gap: 40px;
}

.footer-address { margin: 16px 0 0; line-height: 1.6; }

.footer-ttl {
  margin: 0 0 18px;
  padding-bottom: 10px;
  border-bottom: 2px solid var(--green);
  color: var(--green);
  font-size: 18px;
  font-weight: 700;
  line-height: 1;
}

.footer-menu {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0 20px;
}

.footer-menu a,
.footer-links a {
  position: relative;
  display: inline-block;
  padding-left: 18px;
  font-size: 15px;
  line-height: 2.3;
}

/* 緑の三角 */
.footer-menu a::before,
.footer-links a::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 0;
  border: 5px solid transparent;
  border-left: 8px solid var(--green);
  transform: translateY(-50%);
}

.footer-menu a:hover,
.footer-links a:hover { color: var(--green); text-decoration: underline; }

.footer-related { margin-top: 50px; }

.footer-links {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}

.footer-links a {
  display: block;
  padding: 14px 10px;
  border-radius: 10px;
  background: #fff;
  font-size: 14px;
  line-height: 1.5;
  text-align: center;
}

.footer-links a::before { display: none; }

.copyright {
  position: relative;
  margin: 0;
  padding: 0 0 40px;
  background: #dcedf5;
  font-size: 14px;
  text-align: center;
}

.copyright .wave {
  bottom: 100%;
  transform: none;
}

/* 右側に固定するボタン（スマホでは下に固定） */
.fixed-btns {
  position: fixed;
  top: 50%;
  right: 0;
  z-index: 15;
  display: flex;
  flex-direction: column;
  gap: 6px;
  transform: translateY(-50%);
}

.fixed-btns a {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  width: 62px;
  padding: 16px 0;
  border-radius: 12px 0 0 12px;
  color: #fff;
  font-size: 14px;
  font-weight: 700;
  line-height: 1.2;
  writing-mode: vertical-rl;
  letter-spacing: 0.1em;
}

.fixed-btns svg { width: 24px; height: 24px; }
.fixed-insta { background: linear-gradient(180deg, #f58529, #dd2a7b 60%, #8134af); }
.fixed-contact { background: var(--red); }

/* ページ上部へ戻る：葉っぱの丸ボタン */
.pagetop {
  position: fixed;
  right: 10px;
  bottom: 16px;
  z-index: 15;
  display: grid;
  place-items: center;
  width: 84px;
  height: 84px;
  border-radius: 50%;
  background: #fff;
  border: 4px solid var(--green);
  color: var(--green);
  font-size: 11px;
  font-weight: 700;
  line-height: 1.1;
  text-align: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s;
}

.pagetop.is-shown { opacity: 1; pointer-events: auto; }
.pagetop svg { width: 26px; height: 26px; margin: 0 auto; }

/* ===== タブレット以下：ハンバーガーメニュー ===== */
@media (max-width: 960px) {
  .site-header {
    position: sticky;
    top: 0;
  }

  .hdr-top { padding: 8px 0; }
  .hdr-info { display: none; }
  .logo-name { font-size: 18px; }
  .logo svg { width: 40px; height: 40px; }

  .hdr-actions {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-left: auto;
  }

  .hdr-actions .icon-btn {
    display: grid;
    place-items: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--bg-news);
    color: var(--green);
  }

  .hdr-actions .icon-btn svg { width: 20px; height: 20px; }

  .menu-toggle {
    position: relative;
    z-index: 32;
    display: block;
    width: 40px;
    height: 40px;
    padding: 0;
    border: 0;
    background: none;
    cursor: pointer;
  }

  .menu-toggle span {
    position: absolute;
    left: 4px;
    width: 32px;
    height: 4px;
    border-radius: 4px;
    background: var(--green);
    transition: transform 0.3s, opacity 0.3s;
  }

  .menu-toggle span:nth-child(1) { top: 8px; }
  .menu-toggle span:nth-child(2) { top: 18px; }
  .menu-toggle span:nth-child(3) { top: 28px; }

  .is-open .menu-toggle span:nth-child(1) { transform: translateY(10px) rotate(-45deg); }
  .is-open .menu-toggle span:nth-child(2) { opacity: 0; }
  .is-open .menu-toggle span:nth-child(3) { transform: translateY(-10px) rotate(45deg); }

  .global-nav {
    position: fixed;
    top: 0;
    left: 0;
    bottom: 0;
    z-index: 31;
    width: min(300px, 80vw);
    overflow-y: auto;
    background: #fff;
    transform: translateX(-100%);
    visibility: hidden;
    transition: transform 0.3s, visibility 0.3s;
  }

  .is-open .global-nav { transform: none; visibility: visible; }

  .nav-mask {
    position: fixed;
    inset: 0;
    z-index: 30;
    display: block;
    background: rgba(0, 0, 0, 0.5);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s;
  }

  .is-open .nav-mask { opacity: 1; pointer-events: auto; }

  .menu-list { display: block; padding: 0; }

  .menu-list > li,
  .menu-list > li:first-child { border: 0; }

  .menu-list > li > a {
    flex-direction: row;
    gap: 10px;
    padding: 12px 16px;
    border-bottom: 1px solid var(--green);
    text-align: left;
  }

  .menu-list > li > a svg { width: 24px; height: 24px; }

  .submenu {
    position: static;
    width: auto;
    transform: none;
    visibility: visible;
    opacity: 1;
  }

  .submenu a { padding: 10px 16px 10px 50px; text-align: left; font-size: 13px; }
}

@media (min-width: 961px) {
  .hdr-actions { display: none; }
}

/* ===== スマホ ===== */
@media (max-width: 768px) {
  body { font-size: 15px; }

  .mainvisual { aspect-ratio: 4 / 5; }
  .mv-photo { object-position: 58% 50%; }
  .mv-shade { background: linear-gradient(0deg, rgba(18, 40, 58, 0.65), rgba(18, 40, 58, 0) 60%); }
  .mv-copy { left: 6%; bottom: 14%; }

  .news-grid { grid-template-columns: 1fr; }
  .news-head .btn { display: none; }
  .news-more-sp { display: block; }
  .news-box { padding: 6px 18px; }

  .loop-track .ph { width: 200px; height: 140px; margin: 0 6px; }
  .loop-track .ph:nth-child(even) { margin-top: 28px; }

  .features-lead { text-align: left; }
  .feature-list { grid-template-columns: 1fr; }

  .split { grid-template-columns: 1fr; gap: 24px; }
  .split + .split { margin-top: 60px; }
  .split .ph { width: 94%; }
  .split.is-reverse .ph { order: 0; margin-left: auto; }
  .split-text,
  .split.is-reverse .split-text { padding: 0 3%; }

  .info-list { grid-template-columns: 1fr 1fr; gap: 12px; }
  .info-list a { flex-direction: column; text-align: center; min-height: 0; padding: 16px 10px; }
  .info-name { font-size: 15px; }

  .about-text { text-align: left; }

  .footer-grid { grid-template-columns: 1fr; }
  .footer-links { grid-template-columns: repeat(2, 1fr); }

  .ttl { font-size: 21px; letter-spacing: 0.04em; }

  .ttl.has-leaves::before,
  .ttl.has-leaves::after { width: 1.1em; }

  .logo-name { font-size: 15px; white-space: nowrap; }
  .logo-sub { white-space: nowrap; }

  /* 固定ボタンは画面下の横並びに */
  .fixed-btns {
    top: auto;
    bottom: 0;
    left: 0;
    flex-direction: row;
    gap: 0;
    transform: none;
  }

  .fixed-btns a {
    flex: 1;
    flex-direction: row;
    justify-content: center;
    width: auto;
    padding: 14px 0;
    border-radius: 0;
    writing-mode: horizontal-tb;
  }

  .pagetop { bottom: 70px; width: 64px; height: 64px; font-size: 10px; }
  .copyright { padding-bottom: 80px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .loop-track { animation: none; }
}
