/* ============================================================
   365sunday風レイアウト（宮古バドミントン協会向け）
   ============================================================ */
:root {
  --eds-white: #f7f7f5;
  --eds-ink: #1a1a1a;
  --eds-navy: #1c3a5f;
  --eds-yellow: #e8d24a;
  --eds-line: #e4e4e0;
}

body[data-page="top"] {
  background: var(--eds-white);
  color: var(--eds-ink);
}
body[data-page="top"]::before,
body[data-page="top"]::after { opacity: 0 !important; mix-blend-mode: normal !important; }
body[data-page="top"] #tideCanvas { display: none !important; }

/* ----- Nav ----- */
.eds-nav {
  background: transparent !important;
  box-shadow: none !important;
  padding: 18px 28px;
  align-items: flex-start;
}
.eds-nav.scrolled {
  background: rgba(247,247,245,.92) !important;
  backdrop-filter: blur(12px);
}
.eds-logo {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0;
  color: var(--eds-ink) !important;
  line-height: 1.05;
  position: relative;
}
.eds-logo small {
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: .35em;
  color: #777 !important;
  margin-bottom: 4px;
}
.eds-logo strong {
  font-family: "Montserrat", var(--gothic);
  font-weight: 800;
  font-size: clamp(18px, 2.2vw, 26px);
  letter-spacing: .02em;
}
.eds-script {
  font-family: "Caveat", cursive;
  font-style: normal;
  font-weight: 700;
  font-size: clamp(18px, 2vw, 24px);
  color: #1a1a1a;
  background: linear-gradient(transparent 55%, var(--eds-yellow) 55%);
  padding: 0 4px;
  margin-top: -2px;
  display: inline-block;
}
.eds-nav-right {
  display: flex;
  align-items: center;
  gap: 18px;
}
.eds-download {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: .18em;
  color: var(--eds-ink);
  text-decoration: none;
  font-weight: 600;
}
.eds-nav .nav-links { display: none !important; }
.eds-nav .nav-burger { display: block; margin: 0; }
.eds-nav .nav-burger i { background: var(--eds-ink); }

/* 写真露出時はナビを白に */
.eds-nav.nav--on-dark .eds-logo,
.eds-nav.nav--on-dark .eds-logo strong { color: #fff !important; }
.eds-nav.nav--on-dark .eds-logo small { color: rgba(255,255,255,.65) !important; }
.eds-nav.nav--on-dark .eds-script {
  color: #fff;
  background: linear-gradient(transparent 55%, rgba(232,210,74,.85) 55%);
}
.eds-nav.nav--on-dark .eds-download { color: #fff; }
.eds-nav.nav--on-dark .nav-burger i { background: #fff; }
.eds-nav.nav--on-dark.scrolled {
  background: rgba(10, 28, 52, .55) !important;
}

/* ----- Hero: 白レイヤーが上昇して hero-miyako.png を露出 ----- */
.eds-pin {
  position: relative;
  height: 320vh;
  background: transparent;
}
.eds-stage {
  position: sticky;
  top: 0;
  height: 100svh;
  overflow: hidden;
  background: transparent;
}
.eds-bg-layer {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
}
.eds-bg-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 40%;
  transform: scale(1.08);
  will-change: transform;
  display: block;
}
/* 空の隙間に出す MISSION 見出し＋カード */
.eds-sky-mission {
  position: absolute;
  left: 50%;
  top: 50%;
  z-index: 1;
  transform: translate(-50%, -50%);
  width: min(94vw, 1280px);
  display: flex;
  flex-direction: column;
  gap: clamp(20px, 3.5vh, 36px);
  opacity: 0;
  pointer-events: none;
  will-change: opacity, transform;
}
.eds-sky-mission.is-interactive {
  pointer-events: auto;
}
.eds-sky-title {
  margin: 0;
  text-align: left;
  font-family: "Noto Serif JP", var(--serif);
  font-weight: 700;
  font-size: clamp(28px, 4.6vw, 52px);
  line-height: 1.4;
  letter-spacing: .06em;
  color: #fff;
  text-shadow: 0 2px 16px rgba(0, 40, 80, .35);
}
.eds-sky-title .eds-mission-accent {
  color: #fff;
  -webkit-text-fill-color: #fff;
}
.eds-rise {
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  height: 118%;
  z-index: 2;
  background: transparent;
  will-change: transform;
  transform: translate3d(0, 0, 0);
}
.eds-hero-mid {
  position: absolute;
  left: 50%;
  /* 118% 高さの親内で viewport 中央（50svh）に合わせる → 50 ÷ 118 ≈ 42.4% */
  top: 42.4%;
  transform: translate(-50%, -50%);
  display: grid;
  place-items: center;
  z-index: 2;
  width: min(100%, 100vw);
  max-width: 100vw;
  padding-inline: clamp(12px, 3.5vw, 24px);
  box-sizing: border-box;
}
.eds-hero-orbs-wrap {
  grid-area: 1 / 1;
  position: relative;
  display: grid;
  place-items: center;
  isolation: isolate;
  width: 100%;
  max-width: 100%;
}
.eds-hero-mid > .eds-character.story-oval {
  grid-area: 1 / 1;
  align-self: start;
  justify-self: center;
  transform: translateY(calc(-100% + clamp(18px, 3vh, 36px))) !important;
  margin: 0 !important;
}
.eds-hero-orbs-wrap > .eds-cutout-text {
  grid-area: 1 / 1;
  position: relative;
  z-index: 2;
}
/* 白いV字パネル — 下のV字部分から背景写真がのぞく */
.eds-rise::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: #f7f7f5;
  clip-path: polygon(0 0, 100% 0, 100% 90%, 50% 100%, 0 90%);
  -webkit-clip-path: polygon(0 0, 100% 0, 100% 90%, 50% 100%, 0 90%);
  pointer-events: none;
}
.orbs3d--hero {
  position: absolute;
  left: 50%;
  top: 42.4%;
  transform: translate(-50%, -50%);
  width: max(100vw, 100%);
  height: 100svh;
  z-index: 0;
  opacity: 0;
  transition: opacity .9s ease;
  pointer-events: none;
  overflow: visible;
}
.orbs3d--hero.is-visible { opacity: 1; }
.orbs3d--hero::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  width: min(72vmin, 720px);
  height: min(72vmin, 720px);
  transform: translate(-50%, -50%);
  border-radius: 50%;
  background: radial-gradient(circle, rgba(21, 71, 106, .05) 0%, transparent 72%);
  pointer-events: none;
}
.eds-cutout-text {
  z-index: 2;
  margin: 0;
  text-align: center;
  font-family: "Noto Sans JP", var(--gothic);
  font-weight: 900;
  font-size: clamp(48px, 11vw, 140px);
  line-height: 1.15;
  letter-spacing: .04em;
  max-width: 100%;
  box-sizing: border-box;
  /* 文字の形で背景写真を透過表示 */
  background-image: url("img/hero-miyako.png?v=9");
  background-size: 108% auto;
  background-position: center 40%;
  background-repeat: no-repeat;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent !important;
  -webkit-text-fill-color: transparent;
  will-change: background-position, background-size;
}
@media (min-width: 981px) {
  .eds-cutout-text { white-space: nowrap; }
}
@supports not ((-webkit-background-clip: text) or (background-clip: text)) {
  .eds-cutout-text {
    color: #15476A;
    -webkit-text-fill-color: #15476A;
    background-image: none;
  }
}
@media (max-width: 980px) {
  .eds-hero-mid {
    top: 44%;
    padding-inline: clamp(14px, 4vw, 28px);
  }
  .eds-cutout-text {
    font-size: clamp(30px, 8.2vw, 62px);
    letter-spacing: .02em;
    line-height: 1.22;
    padding-inline: clamp(4px, 1.5vw, 12px);
  }
  .eds-character.story-oval {
    width: min(36vw, 140px) !important;
  }
}
@media (max-width: 720px) {
  /* TOP白レイヤーを短く（PCの118%より短く） */
  .eds-pin { height: 240vh; }
  .eds-rise { height: 100%; }
  .eds-hero-mid { top: 50%; }
  .orbs3d--hero {
    top: 50%;
    opacity: .92;
  }
  .eds-cutout-text {
    font-size: clamp(28px, 7.8vw, 56px);
    line-height: 1.25;
  }
  .orbs3d--hero.is-visible { opacity: .92; }
  .eds-rise::before {
    clip-path: polygon(0 0, 100% 0, 100% 90%, 50% 100%, 0 90%);
    -webkit-clip-path: polygon(0 0, 100% 0, 100% 90%, 50% 100%, 0 90%);
  }
  .eds-scroll-hint { bottom: 2%; }
}

.eds-scroll-hint {
  position: absolute;
  left: 50%;
  bottom: 4%;
  transform: translateX(-50%);
  z-index: 4;
  width: 88px;
  height: 88px;
  display: grid;
  place-items: center;
  pointer-events: none;
}
.eds-scroll-ring {
  position: absolute;
  inset: 0;
  font-family: var(--mono);
  font-size: 8px;
  letter-spacing: .22em;
  color: var(--eds-navy);
  animation: edsSpin 12s linear infinite;
  /* circular text approximation via rotate */
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(28,58,95,.35);
  border-radius: 50%;
  text-indent: -9999px;
}
.eds-scroll-ring::after {
  content: "";
  position: absolute;
  inset: 6px;
  border: 1px dashed rgba(28,58,95,.25);
  border-radius: 50%;
}
.eds-scroll-arrow {
  position: relative;
  z-index: 1;
  font-size: 16px;
  color: var(--eds-navy);
  animation: edsBounce 1.6s ease-in-out infinite;
}
@keyframes edsSpin { to { transform: rotate(360deg); } }
@keyframes edsBounce {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(5px); }
}

/* ----- Mission (sky gap 内カード用) ----- */
.eds-mission-accent {
  background: none;
  color: #e07010;
  -webkit-text-fill-color: #e07010;
}
.eds-mission-cards {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(12px, 1.8vw, 20px);
}
.eds-mvv {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: clamp(16px, 1.8vw, 24px);
  background: rgba(255, 255, 255, .94);
  border: 1px solid rgba(0, 0, 0, .06);
  border-radius: 18px;
  box-shadow: 0 10px 28px rgba(40, 30, 20, .06);
  backdrop-filter: blur(4px);
  --mvv: #e99133;
}
.eds-mvv--mission { --mvv: #e99133; }
.eds-mvv--vision { --mvv: #3d6f9a; }
.eds-mvv--value { --mvv: #b08a4a; }
.eds-mvv-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
}
.eds-mvv-label {
  font-family: "Montserrat", var(--mono);
  font-weight: 700;
  font-size: 11px;
  letter-spacing: .22em;
  color: var(--mvv);
}
.eds-mvv-num {
  font-family: "Noto Serif JP", var(--serif);
  font-weight: 700;
  font-size: clamp(22px, 2.2vw, 28px);
  line-height: 1;
  color: var(--mvv);
}
.eds-mvv-title {
  font-family: "Noto Serif JP", var(--serif);
  font-weight: 700;
  font-size: clamp(18px, 1.7vw, 22px);
  line-height: 1.55;
  letter-spacing: .04em;
  color: #222;
}
.eds-mvv-text {
  margin-top: auto;
  font-family: "Noto Sans JP", var(--gothic);
  font-size: 13px;
  line-height: 1.9;
  color: #666;
}
.eds-kicker {
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: .35em;
  color: var(--eds-navy);
  margin-bottom: 18px;
}

/* ----- Service: 同一固定背景の上に山形白パネルが浮き上がる ----- */
.eds-service-panel {
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  bottom: 0;
  z-index: 3;
  height: 100%;
  min-height: 100%;
  width: 100%;
  box-sizing: border-box;
  /* PROJECT と同じ左右余白（5vw）に揃える */
  padding: clamp(64px, 10vh, 96px) 5vw clamp(28px, 4vh, 48px);
  background: #f7f7f5;
  overflow: hidden;
  /* 上辺を山形にして背景写真をのぞかせる */
  clip-path: polygon(0 10%, 50% 0, 100% 10%, 100% 100%, 0 100%);
  -webkit-clip-path: polygon(0 10%, 50% 0, 100% 10%, 100% 100%, 0 100%);
  /* PROJECT と同じく「縦見出し + 本体」の2列 */
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: center;
  gap: 28px;
  will-change: transform;
  transform: translate3d(0, 100%, 0);
  pointer-events: none;
}
.eds-service-bg {
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  bottom: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  pointer-events: none;
  grid-column: 1 / -1;
  grid-row: 1;
  overflow: hidden;
}
.eds-service-bg img {
  position: absolute;
  left: 42%;
  top: 58%;
  transform: translate(-50%, -50%);
  width: min(140vw, 1400px);
  height: auto;
  max-width: none;
  max-height: none;
  object-fit: contain;
  display: block;
  /* 白ボディがパネル色に溶けるのを防ぐ（線画の黒だけ残す） */
  mix-blend-mode: multiply;
  opacity: .42;
  filter: none;
}
.eds-service-panel.is-interactive {
  pointer-events: auto;
}
.eds-service-label {
  position: relative;
  top: auto;
  left: auto;
  transform: none;
  z-index: 1;
  text-align: center;
  pointer-events: none;
  opacity: .9;
  align-self: center;
  /* PROJECT見出しと同じ並び（縦コメント + SERVICE） */
  display: flex;
  flex-direction: row;
  align-items: flex-start;
  gap: 16px;
}
.eds-service-label .eds-vert-jp {
  margin: 0;
  writing-mode: vertical-rl;
  font-size: 13px;
  letter-spacing: .35em;
  color: #666;
  line-height: 1.2;
}
.eds-service-label .eds-vert-en {
  margin: 0;
}
.eds-vert-en {
  writing-mode: vertical-rl;
  font-family: "Montserrat", var(--mono);
  font-weight: 800;
  font-size: clamp(42px, 7vw, 88px);
  letter-spacing: .12em;
  color: var(--eds-navy);
  margin: 0 auto;
}
.eds-vert-en.outline {
  color: transparent;
  -webkit-text-fill-color: transparent;
  -webkit-text-stroke: 2px var(--eds-navy);
  paint-order: stroke fill;
}
.eds-vert-jp {
  writing-mode: vertical-rl;
  font-size: 13px;
  letter-spacing: .35em;
  color: #666;
  margin: 16px auto 0;
}
.eds-service-row {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: clamp(16px, 2.4vw, 36px);
  width: 100%;
  max-width: 1480px;
  margin: 0 auto;
}
.eds-pill-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  text-decoration: none;
  color: inherit;
  min-width: 0;
}
.eds-pill-caption {
  writing-mode: horizontal-tb;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
  width: 100%;
  max-width: 100%;
  padding: 12px 16px;
  border: 1.5px solid var(--pill, #1C6195);
  border-radius: 999px;
  background: #fff;
  color: var(--pill, #1C6195);
  font-family: "Noto Sans JP", var(--gothic);
  font-weight: 700;
  font-size: clamp(14px, 1.5vw, 18px);
  letter-spacing: .12em;
  line-height: 1.2;
  text-align: center;
  white-space: nowrap;
  transition: background .25s ease, color .25s ease;
}
.eds-pill-card:hover .eds-pill-caption {
  background: var(--pill, #1C6195);
  color: #fff;
}
.eds-pill {
  position: relative;
  display: block;
  width: 100%;
  max-width: none;
  margin-inline: auto;
  aspect-ratio: 1 / 1;
  border-radius: 50%;
  overflow: hidden;
  text-decoration: none;
  color: #fff;
  isolation: isolate;
}
.eds-pill img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: brightness(.55);
  transition: transform .5s ease;
}
.eds-pill::before {
  content: "";
  position: absolute;
  inset: 0;
  background: color-mix(in srgb, var(--pill, #1C6195) 55%, transparent);
  z-index: 1;
}
.eds-pill--mascot {
  background: var(--pill, #1C6195);
}
.eds-pill--mascot::before {
  /* 文字帯を確保しつつ全体を少し暗く */
  background: linear-gradient(
    180deg,
    rgba(0,0,0,.35) 0%,
    rgba(0,0,0,.22) 45%,
    rgba(0,0,0,.4) 100%
  );
  opacity: 1;
}
.eds-pill--mascot img {
  /* inset は使わず四辺を明示（あとからの inset:auto で top/left が消えるのを防ぐ） */
  top: 50%;
  left: 50%;
  right: auto;
  bottom: auto;
  width: 72%;
  height: 72%;
  margin: 0;
  object-fit: contain;
  object-position: center center;
  filter: none;
  opacity: .4;
  transform: translate(-50%, -50%);
  transition: transform .45s ease, opacity .35s ease;
}
.eds-pill:hover img { transform: scale(1.06); }
.eds-pill--mascot:hover img,
.eds-pill-card:hover .eds-pill--mascot img {
  opacity: .48;
  transform: translate(-50%, -50%) scale(1.04);
}
.eds-pill-en {
  position: absolute;
  z-index: 2;
  writing-mode: vertical-rl;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  color: #fff;
  text-shadow:
    0 1px 0 rgba(0,0,0,.6),
    0 3px 14px rgba(0,0,0,.7),
    0 0 28px rgba(0,0,0,.5);
  font-family: "Montserrat", var(--mono);
  font-weight: 800;
  font-size: clamp(18px, 2.4vw, 30px);
  letter-spacing: .18em;
  max-height: 58%;
}
.eds-pill--mascot .eds-pill-en {
  top: 46%;
  font-size: clamp(18px, 2.4vw, 30px);
}
.eds-pill-go {
  position: absolute;
  z-index: 2;
  left: 50%;
  bottom: 10%;
  transform: translateX(-50%);
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: #fff;
  color: #111;
  display: grid;
  place-items: center;
  font-size: 15px;
  transition: background .25s, color .25s;
}
.eds-pill:hover .eds-pill-go,
.eds-pill-card:hover .eds-pill-go {
  background: var(--eds-navy);
  color: #fff;
}

.eds-more {
  display: inline-block;
  margin: 48px auto 0;
  padding: 14px 28px;
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: .3em;
  color: var(--eds-ink);
  text-decoration: none;
  position: relative;
  left: 50%;
  transform: translateX(-50%);
}
.eds-more::before,
.eds-more::after {
  content: "";
  position: absolute;
  width: 14px;
  height: 14px;
  border: 1px solid #bbb;
}
.eds-more::before { top: 0; left: 0; border-right: 0; border-bottom: 0; }
.eds-more::after { right: 0; bottom: 0; border-left: 0; border-top: 0; }

/* ----- Project ----- */
.eds-project {
  position: relative;
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 28px;
  padding: 90px 5vw;
  background: #fff;
  min-height: 70vh;
  overflow: hidden;
}
.eds-project-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
}
.eds-project-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: right center;
  display: block;
}
.eds-project-head {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: row;
  align-items: flex-start;
  gap: 16px;
  padding-top: 20px;
}
.eds-project-head .eds-vert-jp {
  margin: 0;
  writing-mode: vertical-rl;
  font-size: 13px;
  letter-spacing: .35em;
  color: #666;
  line-height: 1.2;
}
.eds-project-head .eds-vert-en {
  margin: 0;
}
.eds-project-main {
  position: relative;
  z-index: 1;
  min-width: 0;
}
.eds-section-title {
  font-family: "Noto Sans JP", var(--gothic);
  font-weight: 900;
  font-size: clamp(26px, 3.6vw, 42px);
  letter-spacing: .04em;
  line-height: 1.35;
}
.eds-project-grid {
  margin-top: 28px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}
.eds-project-grid .t-card {
  border: 1px solid var(--eds-line);
  border-radius: 28px;
  padding: 24px;
  background: #fff;
  border-bottom: 1px solid var(--eds-line);
}
.eds-project-grid .t-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 16px 40px rgba(0,0,0,.06);
}

/* ----- Journal diagonal ----- */
.eds-journal {
  position: relative;
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 80px 5vw;
  overflow: hidden;
}
.eds-journal-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}
.eds-journal-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: brightness(.72);
}
.eds-journal-panel {
  position: relative;
  z-index: 1;
  width: min(720px, 92vw);
  background: rgba(255,255,255,.96);
  padding: clamp(36px, 5vw, 64px);
  transform: rotate(-3deg);
  box-shadow: 0 30px 80px rgba(0,0,0,.18);
}
.eds-journal-panel .eds-section-title,
.eds-journal-panel .journal-list,
.eds-journal-panel .eds-more {
  transform: rotate(3deg);
}
.eds-journal-panel .eds-more {
  left: 0;
  transform: rotate(3deg);
  margin-top: 28px;
}
.eds-journal .journal-list .news-item {
  grid-template-columns: 100px 88px 1fr auto;
  padding: 18px 0;
}
@media (max-width: 900px) {
  .eds-journal .journal-list .news-item {
    grid-template-columns: max-content minmax(0, 1fr) auto;
    gap: 10px 12px;
    align-items: start;
  }
}
.eds-journal .eds-script {
  margin-right: 10px;
  font-size: 22px;
}

/* ----- Links / CTA / Footer ----- */
.eds-links {
  padding: 100px 6vw;
  background: var(--eds-white);
}
.eds-links .card-grid {
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-top: 32px;
}
.eds-links .t-card {
  border: 1px solid var(--eds-line);
  border-radius: 24px;
  padding: 28px;
  background: #fff;
}

.eds-cta {
  position: relative;
  min-height: 78vh;
  display: grid;
  place-items: center;
  text-align: center;
  color: #fff;
  overflow: hidden;
}
.eds-cta-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: brightness(.45);
}
.eds-cta-body {
  position: relative;
  z-index: 1;
  padding: 60px 6vw;
}
.eds-cta-lead {
  font-size: 15px;
  letter-spacing: .2em;
  margin-bottom: 14px;
}
.eds-cta-body h2 {
  font-family: "Montserrat", var(--mono);
  font-weight: 800;
  font-size: clamp(36px, 8vw, 84px);
  letter-spacing: .08em;
}
.eds-cta-sub {
  margin-top: 16px;
  font-size: 16px;
  opacity: .9;
}
.eds-cta-actions {
  margin-top: 36px;
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  justify-content: center;
}
.eds-cta-btn {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 16px 28px;
  border-radius: 999px;
  background: rgba(255,255,255,.18);
  border: 1px solid rgba(255,255,255,.55);
  color: #fff;
  text-decoration: none;
  font-weight: 700;
  backdrop-filter: blur(6px);
  transition: background .25s;
}
.eds-cta-btn:hover { background: rgba(255,255,255,.3); }
.eds-cta-btn.ghost { background: transparent; }
.eds-cta-btn span {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(255,255,255,.25);
  display: grid;
  place-items: center;
}

.eds-footer {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  padding: 28px 6vw;
  background: #fff;
  border-top: 1px solid var(--eds-line);
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: .08em;
  color: #777;
}

/* ----- Floating character (keep animation) ----- */
.story-oval {
  border: none;
  padding: 0;
  margin: 0;
  background: none;
  border-radius: 0;
  box-shadow: none;
  aspect-ratio: 1 / 1;
  appearance: none;
  -webkit-tap-highlight-color: transparent;
}
/* ----- キャラクター：白レイヤー上部の空きに固定 ----- */
.eds-character.story-oval {
  position: relative !important;
  left: auto !important;
  top: auto !important;
  right: auto !important;
  bottom: auto !important;
  width: min(28vw, 220px) !important;
  flex: none;
  z-index: 5;
  opacity: 1 !important;
  visibility: visible !important;
  filter: drop-shadow(0 12px 28px rgba(0,0,0,.18));
  pointer-events: auto;
  cursor: pointer;
  overflow: visible;
}
.story-oval-body {
  display: block;
  position: relative;
  width: 100%;
  aspect-ratio: 1 / 1;
}
.story-oval-img,
.story-oval-poster,
.story-oval-clip,
.story-oval-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
  display: block;
  pointer-events: none;
  user-select: none;
  background: transparent;
}
.story-oval-clip {
  opacity: 0 !important;
  visibility: hidden !important;
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
}
.story-oval-canvas {
  opacity: 0;
  visibility: hidden;
}
.story-oval.is-playing .story-oval-poster {
  opacity: 0;
  visibility: hidden;
}
.story-oval.is-playing .story-oval-canvas {
  opacity: 1;
  visibility: visible;
}
.eds-touch-bubble {
  position: absolute;
  left: 62%;
  top: -4%;
  z-index: 6;
  padding: 12px 18px 14px;
  background: linear-gradient(180deg, #fff 0%, #fff5f8 100%);
  color: #d45a7a;
  border: 2.5px solid #ff9bb8;
  border-radius: 60% 60% 55% 55% / 70% 70% 55% 55%;
  font-family: "Caveat", cursive;
  font-weight: 700;
  font-size: clamp(18px, 2.4vw, 24px);
  letter-spacing: .04em;
  line-height: 1;
  white-space: nowrap;
  pointer-events: none;
  box-shadow:
    0 8px 20px rgba(212, 90, 122, .18),
    inset 0 -2px 0 rgba(255, 155, 184, .25);
  animation: eds-touch-bob 2.4s ease-in-out infinite;
  transition: opacity .25s ease, visibility .25s ease;
}
/* まんまるしっぽ（かわいい吹き出し） */
.eds-touch-bubble::before,
.eds-touch-bubble::after {
  content: "";
  position: absolute;
  border-radius: 50%;
  background: #fff5f8;
  border: 2.5px solid #ff9bb8;
  box-sizing: border-box;
}
.eds-touch-bubble::before {
  width: 14px;
  height: 14px;
  left: 22%;
  bottom: -9px;
}
.eds-touch-bubble::after {
  width: 8px;
  height: 8px;
  left: 14%;
  bottom: -18px;
  background: #fff;
}
.eds-character.is-playing .eds-touch-bubble {
  opacity: 0;
  visibility: hidden;
  animation: none;
}
@keyframes eds-touch-bob {
  0%, 100% { transform: translateY(0) rotate(-4deg) scale(1); }
  50% { transform: translateY(-8px) rotate(3deg) scale(1.04); }
}
.eds-pagetop {
  position: fixed;
  right: 28px;
  bottom: 28px;
  z-index: 880;
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: .2em;
  color: var(--eds-navy);
  text-decoration: none;
  writing-mode: vertical-rl;
}

@media (max-width: 1100px) {
  /* サービス（円）カードが中途半端に縮む幅で文字が被るため先回りで調整 */
  .eds-service-row { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .eds-pill-card { gap: 12px; }
  .eds-pill-caption { font-size: clamp(13px, 1.4vw, 16px); }
  .eds-pill-en {
    font-size: clamp(16px, 2.2vw, 26px);
    max-height: 52%;
    letter-spacing: .12em;
  }
  .eds-pill--mascot .eds-pill-en {
    font-size: clamp(16px, 2.2vw, 26px);
    max-height: 52%;
  }
}

@media (max-width: 980px) {
  .eds-mission-cards { grid-template-columns: 1fr; }
  .eds-sky-mission {
    top: 52%;
    gap: 16px;
  }
  .eds-sky-title {
    font-size: clamp(24px, 6vw, 36px);
    text-align: center;
  }
  .eds-service-row { grid-template-columns: repeat(2, 1fr); }
  .eds-service-panel {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: stretch;
    gap: 0;
    grid-template-columns: none;
    padding-left: 5vw;
    padding-right: 5vw;
    padding-top: clamp(72px, 12vh, 104px);
    clip-path: polygon(0 7%, 50% 0, 100% 7%, 100% 100%, 0 100%);
    -webkit-clip-path: polygon(0 7%, 50% 0, 100% 7%, 100% 100%, 0 100%);
    min-height: 100%;
    height: 100%;
  }
  .eds-service-label {
    position: absolute;
    opacity: .95;
    top: 70px;
    left: 50%;
    transform: translate(-50%, 0);
    flex-direction: column;
    align-items: center;
    gap: 8px;
  }
  .eds-service-label .eds-vert-en {
    order: 1;
    writing-mode: horizontal-tb;
    /* PROJECT と同じ文字サイズに統一 */
    font-size: clamp(42px, 7vw, 88px);
    line-height: 1.05;
    letter-spacing: .12em;
  }
  .eds-service-label .eds-vert-jp {
    order: 2;
    writing-mode: horizontal-tb;
    letter-spacing: .16em;
    margin-right: -.16em;
  }
  .eds-project { grid-template-columns: 1fr; }
  .eds-project-head {
    flex-direction: column;
    justify-content: flex-start;
    align-items: center;
    gap: 8px;
  }
  .eds-project-head .eds-vert-en {
    order: 1;
    writing-mode: horizontal-tb;
  }
  .eds-project-head .eds-vert-jp {
    order: 2;
    writing-mode: horizontal-tb;
    letter-spacing: .16em;
    margin-right: -.16em;
  }
  .eds-project-bg img {
    object-fit: contain;
    object-position: center 12%;
    opacity: .22;
  }
  .eds-project-grid { grid-template-columns: 1fr; }
  .eds-links .card-grid { grid-template-columns: 1fr; }
  .eds-journal-panel { transform: none; }
  .eds-journal-panel .eds-section-title,
  .eds-journal-panel .journal-list,
  .eds-journal-panel .eds-more { transform: none; }
  .eds-character.story-oval { width: min(36vw, 140px) !important; }
}

@media (prefers-reduced-motion: reduce) {
  .eds-pin { height: auto; }
  .eds-stage { position: relative; height: auto; min-height: 100svh; }
  .eds-rise { transform: translate3d(0, -70vh, 0); }
  .eds-service-panel {
    position: relative;
    transform: translate3d(0, 0, 0);
    min-height: auto;
    clip-path: none;
    -webkit-clip-path: none;
    pointer-events: auto;
  }
  .eds-scroll-ring, .eds-scroll-arrow { animation: none; }
  .eds-touch-bubble { animation: none; }
}

/* 下層ページ共通 */
.eds-subpage {
  background: var(--eds-white);
  min-height: 70vh;
}
body:not([data-page="top"]) {
  background: var(--eds-white);
}
body:not([data-page="top"]) .eds-nav.scrolled {
  background: rgba(247,247,245,.94) !important;
}

