/* =========================================================
   株式会社エリトラ — Corporate Site
   「行きたい、の先へ。」 水彩の空 × クリームの紙 × スクラップブック
   ========================================================= */

:root {
  /* palette — パンフレット由来 */
  --cream: #FFF9E8;
  --paper: rgba(255, 253, 246, .94);
  --paper-solid: #FFFDF6;
  --white: #FFFFFF;
  --ink: #5A3A22;
  --ink-2: #7A5638;
  --ink-3: #A58A6F;
  --sky: #8FD3EE;
  --sky-2: #CDEBF7;
  --blue: #2E9FD0;
  --blue-deep: #1F7FB3;
  --sand: #EAD2A8;
  --sakura: #F7C9CF;
  --nanohana: #FBE49A;
  --wakaba: #CDE9C2;
  --fuji: #E4DCF2;
  --momo: #F9C9A0;
  --pink: #E85D8A;
  --green: #6DB36A;
  --orange: #F2A24B;
  --line: rgba(90, 58, 34, .14);
  --shadow: 0 18px 50px -20px rgba(46, 120, 160, .28);

  /* type */
  --f-display: "Yusei Magic", "Zen Maru Gothic", "Hiragino Maru Gothic ProN", sans-serif;
  --f-body: "Zen Maru Gothic", "Hiragino Maru Gothic ProN", "Hiragino Sans", "Yu Gothic", "Meiryo", sans-serif;
  --f-latin: "Fraunces", "Cormorant Garamond", Georgia, serif;
  --fs-hero: clamp(2.3rem, 5.3vw, 4.5rem);
  --fs-h2: clamp(1.65rem, 3.2vw, 2.6rem);
  --fs-h3: clamp(1.2rem, 1.8vw, 1.5rem);
  --fs-lead: clamp(1rem, 1.2vw, 1.12rem);

  /* layout */
  --container: 1180px;
  --gutter: clamp(20px, 4vw, 48px);
  --radius: 28px;
  --header-h: 84px;
  color-scheme: light;
}

/* ---------- base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: auto; }
body {
  margin: 0;
  font-family: var(--f-body);
  font-size: 16px;
  line-height: 1.9;
  color: var(--ink);
  background: var(--cream);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
body.is-loading { overflow: hidden; }
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
p { margin: 0 0 1em; }
:focus-visible { outline: 3px solid var(--blue); outline-offset: 3px; border-radius: 6px; }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.container { width: min(100% - var(--gutter) * 2, var(--container)); margin-inline: auto; }
.latin { font-family: var(--f-latin); font-style: italic; font-weight: 400; letter-spacing: .02em; }
.num { font-family: var(--f-latin); font-style: normal; font-weight: 500; font-variant-numeric: tabular-nums; }

/* ---------- WebGL sky ---------- */
.sky {
  position: fixed; inset: 0; width: 100%; height: 100%;
  z-index: 0; pointer-events: none;
  background: linear-gradient(180deg, #CDEBF7 0%, #FFF9E8 100%);
}
main, .header, .footer, .marquee, .totop { position: relative; z-index: 1; }
main { overflow-x: clip; }

/* ---------- loader ---------- */
.loader {
  position: fixed; inset: 0; z-index: 100;
  background: var(--cream);
  display: grid; place-items: center;
}
.loader__inner { text-align: center; }
.loader__mascot { width: 96px; height: auto; margin: 0 auto 18px; animation: bob 1.8s ease-in-out infinite; }
.loader__tag { font-family: var(--f-display); font-size: 1.1rem; margin: 0 0 6px; color: var(--ink); }
.loader__count { font-family: var(--f-latin); font-style: italic; font-size: 2.4rem; line-height: 1; margin: 0; color: var(--blue); font-variant-numeric: tabular-nums; }
.loader__pct { font-size: 1.1rem; margin-left: 3px; }
.loader__bar { width: 168px; height: 3px; background: rgba(46, 159, 208, .16); border-radius: 3px; margin: 16px auto 0; overflow: hidden; }
.loader__bar i { display: block; height: 100%; width: 0; background: var(--blue); border-radius: 3px; }
@keyframes bob { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-8px); } }

/* ---------- custom cursor ---------- */
.cursor { display: none; }
@media (hover: hover) and (pointer: fine) {
  body.has-cursor, body.has-cursor a, body.has-cursor button, body.has-cursor label { cursor: none; }
  body.has-cursor input, body.has-cursor textarea { cursor: text; }
  .cursor { display: block; position: fixed; left: 0; top: 0; z-index: 99; pointer-events: none; }
  .cursor.is-hidden { opacity: 0; }
  .cursor__dot, .cursor__ring { position: fixed; left: 0; top: 0; border-radius: 50%; will-change: transform; }
  .cursor__dot { width: 8px; height: 8px; margin: -4px 0 0 -4px; background: var(--blue); }
  .cursor__ring { width: 42px; height: 42px; margin: -21px 0 0 -21px; background: rgba(46, 159, 208, .16); mix-blend-mode: multiply; transition: width .35s cubic-bezier(.2, .8, .2, 1), height .35s cubic-bezier(.2, .8, .2, 1), margin .35s cubic-bezier(.2, .8, .2, 1), background .35s; }
  .cursor.is-hover .cursor__ring { width: 72px; height: 72px; margin: -36px 0 0 -36px; background: rgba(251, 228, 154, .7); }
}

/* ---------- header ---------- */
.header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 50;
  height: var(--header-h);
  display: flex; align-items: center; gap: 24px;
  padding: 0 clamp(16px, 3vw, 40px);
  transition: background .5s, box-shadow .5s, height .5s, transform .5s cubic-bezier(.2, .8, .2, 1);
}
.header.is-scrolled {
  height: 68px;
  background: rgba(255, 253, 246, .84);
  -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px);
  box-shadow: 0 10px 30px -20px rgba(90, 58, 34, .3);
}
html.js .header:not(.is-in) { opacity: 0; transform: translateY(-16px); }
.header.is-in { opacity: 1; transform: none; transition: background .5s, box-shadow .5s, height .5s, transform .6s cubic-bezier(.2, .8, .2, 1), opacity .6s; }
.header.is-hidden { transform: translateY(-100%); }
.brand { display: flex; align-items: center; gap: 10px; }
.brand__mark { width: 46px; height: auto; transition: width .5s; }
.header.is-scrolled .brand__mark { width: 38px; }
.brand__text { display: flex; flex-direction: column; line-height: 1.15; }
.brand__co { font-size: .66rem; letter-spacing: .14em; color: var(--ink-2); font-weight: 700; }
.brand__name { font-family: var(--f-display); font-size: 1.35rem; color: var(--ink); }
.nav { margin-left: auto; display: flex; gap: clamp(14px, 2vw, 30px); }
.nav a { font-size: .92rem; font-weight: 700; position: relative; padding: 6px 2px; }
.nav a::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 2px; height: 5px; border-radius: 4px;
  background: var(--nanohana); z-index: -1;
  transform: scaleX(0); transform-origin: left; transition: transform .4s cubic-bezier(.2, .8, .2, 1);
}
.nav a:hover::after { transform: scaleX(1); }
.header__tel {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--blue); color: #fff; font-weight: 500;
  padding: 10px 18px; border-radius: 999px;
  font-family: var(--f-latin); font-size: 1.05rem; letter-spacing: .02em;
  box-shadow: 0 12px 24px -12px rgba(46, 159, 208, .8);
  transition: background .3s, box-shadow .3s;
}
.header__tel:hover { background: var(--blue-deep); box-shadow: 0 16px 30px -12px rgba(46, 159, 208, .9); }
/* 言語切り替え（日本語版 ⇄ 英語版） */
.lang {
  display: inline-flex; align-items: center; gap: 6px;
  font-family: var(--f-latin); font-size: .95rem; font-weight: 500; letter-spacing: .04em;
  color: var(--blue-deep); white-space: nowrap;
  padding: 6px 15px; border-radius: 999px;
  border: 2px solid rgba(46, 159, 208, .35); background: rgba(255, 253, 246, .7);
  transition: background .3s, border-color .3s, color .3s;
}
.lang:hover { background: var(--sky-2); border-color: var(--blue); color: var(--blue-deep); }
.lang svg { width: 16px; height: 16px; flex: none; opacity: .85; }
.burger { display: none; width: 48px; height: 48px; margin-left: auto; position: relative; border-radius: 50%; background: rgba(255, 253, 246, .8); }
.burger span { position: absolute; left: 14px; width: 20px; height: 2px; background: var(--ink); border-radius: 2px; transition: transform .4s, top .4s; }
.burger span:nth-child(1) { top: 19px; } .burger span:nth-child(2) { top: 27px; }
.burger.is-open span:nth-child(1) { top: 23px; transform: rotate(45deg); }
.burger.is-open span:nth-child(2) { top: 23px; transform: rotate(-45deg); }

/* ---------- mobile menu ---------- */
.menu {
  position: fixed; inset: 0; z-index: 49;
  background: var(--cream);
  display: grid; align-content: center; gap: 32px;
  padding: 100px var(--gutter) 40px;
  clip-path: circle(0 at calc(100% - 40px) 42px);
  transition: clip-path .8s cubic-bezier(.7, 0, .2, 1), visibility 0s .8s;
  visibility: hidden;
}
.menu.is-open { clip-path: circle(160% at calc(100% - 40px) 42px); visibility: visible; transition: clip-path .8s cubic-bezier(.7, 0, .2, 1); }
.menu__nav { display: grid; gap: 6px; }
.menu__nav a { display: grid; grid-template-columns: 96px 1fr; align-items: baseline; font-family: var(--f-display); font-size: 1.8rem; padding: 8px 0; border-bottom: 1px dashed var(--line); }
.menu__nav .latin { font-size: .9rem; color: var(--blue); }
.menu__contact { display: grid; gap: 10px; }
.menu__contact a { display: inline-flex; align-items: center; gap: 10px; font-weight: 700; color: var(--blue-deep); }

/* ---------- type helpers ---------- */
.eyebrow {
  display: flex; align-items: center; gap: 12px;
  font-size: .82rem; font-weight: 700; color: var(--blue-deep); letter-spacing: .06em;
  margin: 0 0 16px;
}
.eyebrow .latin { font-size: 1.1rem; font-weight: 400; letter-spacing: .02em; color: var(--blue); }
.eyebrow__sep { width: 28px; height: 1px; background: var(--blue); opacity: .6; flex: none; }
.eyebrow--center { justify-content: center; }
.h2 {
  font-family: var(--f-display); font-weight: 400;
  font-size: var(--fs-h2); line-height: 1.5; letter-spacing: .01em;
  margin: 0;
}
.h3 { font-family: var(--f-display); font-weight: 400; font-size: var(--fs-h3); margin: 0 0 .7em; }
.section-head { margin-bottom: clamp(36px, 5vw, 64px); }
.section-head--center { text-align: center; }

/* marker highlight */
.hi { position: relative; font-style: normal; display: inline-block; z-index: 0; }
.hi::before {
  content: ""; position: absolute; left: -.1em; right: -.1em; bottom: .04em; height: .48em; z-index: -1;
  border-radius: 8px 10px 6px 12px; background: var(--nanohana);
  transform: scaleX(0); transform-origin: left;
  transition: transform .9s cubic-bezier(.2, .8, .2, 1) .25s;
}
.hi--green::before { background: var(--wakaba); }
.hi--pink::before { background: var(--sakura); }
.hi.is-on::before { transform: scaleX(1); }

/* buttons */
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 15px 28px; border-radius: 999px;
  font-weight: 700; font-size: .98rem; line-height: 1;
  border: 2px solid transparent;
  transition: box-shadow .35s, background .35s, color .35s;
  will-change: transform;
}
.btn svg { width: 18px; height: 18px; transition: transform .35s cubic-bezier(.2, .8, .2, 1); }
.btn:hover svg { transform: translateX(5px); }
.btn--primary { background: var(--blue); color: #fff; box-shadow: 0 14px 30px -14px rgba(46, 159, 208, .8); }
.btn--primary:hover { background: var(--blue-deep); box-shadow: 0 20px 36px -14px rgba(46, 159, 208, .9); }
.btn--ghost { background: rgba(255, 253, 246, .75); border-color: var(--ink); color: var(--ink); }
.btn--ghost:hover { background: var(--ink); color: var(--cream); }

/* ---------- panel & waves ---------- */
.panel { position: relative; background: var(--paper); padding: clamp(72px, 9vw, 120px) 0; margin: clamp(80px, 10vw, 120px) 0; overflow-x: clip; }
.wave { position: absolute; left: 0; width: 100%; height: clamp(36px, 6vw, 80px); display: block; pointer-events: none; }
.wave--top { top: 1px; transform: translateY(-100%); }
.wave--bottom { bottom: 1px; transform: translateY(100%) scaleY(-1); }
.wave path { fill: var(--paper); }

/* ---------- hero ---------- */
.hero {
  min-height: 100svh; display: flex; align-items: center; position: relative;
  padding: calc(var(--header-h) + 24px) 0 48px;
}
.hero__inner {
  width: min(100% - var(--gutter) * 2, 1240px); margin-inline: auto;
  display: grid; grid-template-columns: 1.05fr .95fr; gap: clamp(24px, 5vw, 72px); align-items: center;
}
.hero__title {
  font-family: var(--f-display); font-weight: 400;
  font-size: var(--fs-hero); line-height: 1.3; letter-spacing: .01em;
  margin: .3em 0 .5em;
}
.hero__title .line { display: block; overflow: hidden; padding: .04em 0 .08em; }
.hero__title .hi::before { transition-delay: .9s; }
.hero__lead { font-size: var(--fs-lead); max-width: 34em; margin: 0 0 1.6em; color: var(--ink-2); }
.hero__cta { display: flex; flex-wrap: wrap; gap: 14px; margin-bottom: 1.5em; }
.hero__tel { display: inline-flex; flex-wrap: wrap; align-items: center; gap: 4px 10px; color: var(--blue-deep); }
.hero__tel .num { white-space: nowrap; }
.hero__tel .num { font-size: 1.55rem; letter-spacing: .02em; }
.hero__tel small { font-size: .8rem; color: var(--ink-3); margin-left: 4px; }
.hero__visual { position: relative; justify-self: center; width: min(100%, 520px); }
.blob-photo {
  position: relative; aspect-ratio: 4 / 5; overflow: hidden;
  border-radius: 58% 42% 55% 45% / 45% 50% 50% 55%;
  animation: blob 14s ease-in-out infinite alternate;
  box-shadow: 0 40px 80px -40px rgba(31, 127, 179, .45);
  transform: translateZ(0);
}
.blob-photo img { width: 100%; height: 100%; object-fit: cover; }
@keyframes blob {
  0%   { border-radius: 58% 42% 55% 45% / 45% 50% 50% 55%; }
  50%  { border-radius: 45% 55% 48% 52% / 55% 42% 58% 45%; }
  100% { border-radius: 52% 48% 60% 40% / 40% 58% 42% 60%; }
}
.hero__tape { left: 18%; top: -6px; transform: rotate(-8deg); width: 120px; }
.hero__mascot-wrap { position: absolute; left: -8%; bottom: -5%; width: 40%; }
.hero__mascot { width: 100%; height: auto; filter: drop-shadow(0 14px 22px rgba(90, 58, 34, .2)); animation: bob 3.4s ease-in-out infinite; }
.sticker-wrap { position: absolute; right: -4%; top: -6%; width: clamp(100px, 12vw, 140px); aspect-ratio: 1; }
.sticker { display: block; width: 100%; height: 100%; animation: spin 20s linear infinite; filter: drop-shadow(0 10px 20px rgba(46, 120, 160, .2)); }
.sticker__bg { fill: rgba(255, 253, 246, .96); }
.sticker text { font-family: var(--f-body); font-weight: 700; font-size: 12px; fill: var(--blue-deep); letter-spacing: .08em; }
@keyframes spin { to { transform: rotate(360deg); } }
.scroll-hint { position: absolute; left: clamp(20px, 4vw, 48px); bottom: 26px; display: flex; align-items: center; gap: 12px; color: var(--ink-3); font-size: .95rem; }
.scroll-hint i { display: block; width: 56px; height: 1px; background: rgba(165, 138, 111, .5); position: relative; overflow: hidden; }
.scroll-hint i::after { content: ""; position: absolute; inset: 0; background: var(--blue); transform: translateX(-100%); animation: scrollline 2.2s cubic-bezier(.6, 0, .3, 1) infinite; }
@keyframes scrollline { to { transform: translateX(100%); } }

/* ---------- marquee ---------- */
.marquee {
  overflow: hidden; padding: 12px 0 20px; margin: -20px 0 20px;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent);
}
.marquee__track {
  display: flex; width: max-content; white-space: nowrap;
  font-family: var(--f-display); font-size: clamp(1.1rem, 2.1vw, 1.55rem); color: var(--ink-2);
  animation: marquee 52s linear infinite;
}
.marquee__track--b { animation-duration: 64s; animation-direction: reverse; color: var(--blue-deep); margin-top: 10px; }
.marquee__track:hover { animation-play-state: paused; }
.marquee__item { display: inline-flex; align-items: center; gap: 28px; padding-right: 28px; }
.marquee__item svg { width: 22px; height: 22px; flex: none; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ---------- concept ---------- */
.deco-olive { position: absolute; width: clamp(120px, 16vw, 220px); height: auto; aspect-ratio: 120 / 80; opacity: .9; pointer-events: none; }
.deco-olive--tr { right: 10px; top: 14px; transform: rotate(-10deg); }
.deco-olive--bl { left: 0; bottom: -24px; transform: scaleX(-1) rotate(-150deg); opacity: .7; }
.concept .container { position: relative; z-index: 1; }
.concept__grid { display: grid; grid-template-columns: 1.25fr .75fr; gap: clamp(28px, 5vw, 72px); align-items: center; margin-bottom: clamp(56px, 7vw, 96px); }
.concept__text p { font-size: var(--fs-lead); margin: 0 0 1.2em; }
.concept__photo { justify-self: center; }

/* snapshot print */
.print {
  position: relative; background: #fff; padding: 10px 10px 12px; margin: 0;
  box-shadow: 0 24px 44px -26px rgba(90, 58, 34, .45);
  transform: rotate(var(--tilt, -3deg));
  width: min(100%, 340px);
  transform-style: preserve-3d;
}
.print img { width: 100%; aspect-ratio: 4 / 4.4; object-fit: cover; }
/* 幅の狭い端末でも 1 行に収まるよう縮む（409px 以上では従来どおり .92rem） */
.print figcaption { font-family: var(--f-display); font-size: clamp(.76rem, 3.6vw, .92rem); text-align: center; padding: 10px 0 2px; color: var(--ink-2); }
.print--tilt-l { --tilt: -3.5deg; }
.print--tilt-r { --tilt: 2.5deg; }
.print--small { width: min(62%, 220px); }
.tape {
  position: absolute; width: 96px; height: 26px; left: 50%; top: -12px;
  transform: translateX(-50%) rotate(-3deg);
  background-color: var(--nanohana); opacity: .82;
  background-image: repeating-linear-gradient(90deg, rgba(255, 255, 255, .38) 0 5px, transparent 5px 11px);
  mix-blend-mode: multiply; z-index: 2;
}
.tape--pink { background-color: var(--sakura); }
.tape--blue { background-color: var(--sky-2); }
.tape--yellow { background-color: var(--nanohana); }

/* voices */
.voices { display: grid; grid-template-columns: 1.1fr auto 1fr; gap: clamp(20px, 4vw, 48px); align-items: center; }
.voices__left { position: relative; padding-left: 104px; }
.voices__mascot { position: absolute; left: 0; bottom: 36px; width: 78px; height: auto; animation: bob 4s ease-in-out infinite; }
.voices__list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 12px; }
.bubble {
  position: relative; background: #fff; border-radius: 24px; padding: 11px 20px;
  font-family: var(--f-display); font-size: 1.05rem; line-height: 1.6;
  box-shadow: 0 12px 28px -18px rgba(46, 159, 208, .55);
  width: fit-content; max-width: 100%;
}
.bubble::after { content: ""; position: absolute; left: -5px; top: 50%; width: 14px; height: 14px; background: #fff; transform: translateY(-50%) rotate(45deg); border-radius: 2px; }
.voices__list li:nth-child(even) { margin-left: 24px; }
.voices__note { font-size: .9rem; color: var(--ink-3); margin: 14px 0 0; }
.voices__arrow { display: flex; justify-content: center; color: #F5D45A; }
.voices__arrow svg { width: 68px; height: 68px; filter: drop-shadow(0 8px 14px rgba(245, 212, 90, .55)); animation: nudge 2.4s ease-in-out infinite; }
@keyframes nudge { 0%, 100% { transform: translateX(0); } 50% { transform: translateX(8px); } }
.voices__right { position: relative; background: linear-gradient(135deg, var(--sky-2), #fff 70%); border-radius: 32px; padding: clamp(28px, 3.4vw, 44px); box-shadow: var(--shadow); }
.voices__tag { position: absolute; top: -16px; left: 26px; background: var(--pink); color: #fff; font-size: .8rem; font-weight: 700; padding: 6px 14px; border-radius: 999px; margin: 0; transform: rotate(-3deg); box-shadow: 0 8px 16px -8px rgba(232, 93, 138, .7); }
.voices__answer { font-family: var(--f-display); font-size: clamp(1.15rem, 1.8vw, 1.5rem); line-height: 1.75; margin: 0 0 .6em; }
.voices__answer strong { color: var(--blue-deep); font-weight: 400; }
.voices__sub { font-size: .9rem; color: var(--ink-2); margin: 0; }

/* ---------- support equation ---------- */
.support { position: relative; padding: 20px 0 60px; overflow-x: clip; }
.support__inner { position: relative; }
.equation { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: clamp(12px, 2.5vw, 28px); }
.equation__item {
  display: flex; flex-direction: column; align-items: center; text-align: center; line-height: 1.3;
  padding: 24px 36px; min-width: 230px;
  border: 4px solid; background: rgba(255, 253, 246, .92);
  border-radius: 48% 52% 50% 50% / 55% 45% 55% 45%;
  box-shadow: var(--shadow);
}
.equation__item--green { border-color: var(--green); }
.equation__item--orange { border-color: var(--orange); }
.equation__kicker { font-size: .9rem; color: var(--ink-2); }
.equation__big { font-family: var(--f-display); font-size: clamp(1.4rem, 2.6vw, 2rem); }
.equation__sub { font-size: .85rem; color: var(--ink-3); margin-top: 4px; }
.equation__op { font-family: var(--f-display); font-size: 2.4rem; color: var(--ink-2); }
.equation__result { background: var(--ink); color: var(--cream); padding: 24px 44px; border-radius: 999px; box-shadow: 0 24px 50px -24px rgba(90, 58, 34, .6); line-height: 1.3; }
.equation__result .equation__big { color: var(--nanohana); }
/* 「トータルサポート」の横で敬礼するマスコット。
   出現アニメーション（data-reveal="group"）と bob の transform がぶつからないよう、
   ヒーローのマスコットと同じく外側の要素と画像で役割を分ける */
.equation__mascot { display: block; width: 86px; margin-left: -4px; }
.equation__mascot img { animation: bob 4.2s ease-in-out infinite; }

/* decorative pastel blobs */
.deco { position: absolute; border-radius: 50% 50% 45% 55% / 55% 45% 55% 45%; pointer-events: none; opacity: .75; filter: blur(2px); }
.deco--pink { width: 220px; height: 220px; background: var(--sakura); left: -60px; top: 0; }
.deco--yellow { width: 160px; height: 160px; background: var(--nanohana); right: -20px; bottom: 20px; }
.deco--green { width: 260px; height: 260px; background: var(--wakaba); right: -80px; top: -40px; }

/* ---------- service ---------- */
.service__grid { display: grid; gap: clamp(56px, 8vw, 110px); }
.scard { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(28px, 5vw, 80px); align-items: center; }
.scard--rev .scard__photos { order: 2; }
.scard__photos { position: relative; min-height: 380px; display: grid; place-items: center; }
.scard__photos .print:nth-child(1) { position: relative; z-index: 1; width: min(78%, 340px); }
/* 2枚組のときだけ 1枚目を左寄せにして、右に空いた分を 2枚目に回す
   （1枚だけのカードは従来どおり中央） */
.scard__photos .print:nth-child(1):not(:only-child) { justify-self: start; }
/* 2枚目は 1枚目のキャプション（写真下の文字）に掛からない高さで止める。
   bottom は「キャプション帯 52px（余白10+行28+余白2+台紙下12）+ 余白」 */
/* 左端は 1枚目の人物の右端より右に置き、人物に被らないようにする。
   集合写真は右端の人（肩掛けカバン含む）が写真幅の約85%で終わるので、
   left =「台紙の左余白 10px ＋ 写真幅×0.85 ＋ 余白 10px」。
   写真を差し替えたら 0.85 を people の右端に合わせて調整すること。
   幅は left と right から自動で決まる（列が広いほど 2枚目も大きくなる）。 */
.scard__photos .print:nth-child(2) {
  position: absolute; right: 0; bottom: 60px; z-index: 2;
  left: calc(0.85 * (min(78%, 340px) - 20px) + 20px);
  width: auto;
}
.scard__label { margin: 0 0 4px; }
.scard__label .latin { font-size: 1.15rem; color: var(--blue); }
.scard__title { font-family: var(--f-display); font-weight: 400; font-size: clamp(1.6rem, 2.6vw, 2.2rem); margin: 0 0 .5em; line-height: 1.4; }
.wishes { list-style: none; margin: 0 0 1em; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.wishes li { font-family: var(--f-display); font-size: 1.08rem; color: var(--blue-deep); padding-left: 1.5em; position: relative; }
.wishes li::before { content: ""; position: absolute; left: 0; top: .5em; width: .85em; height: .85em; background: var(--nanohana); border-radius: 40% 60% 50% 50% / 50% 50% 60% 40%; }
.note { font-size: .82rem; color: var(--ink-3); margin: 0; }
.note a { color: var(--blue-deep); font-weight: 700; border-bottom: 1px solid rgba(46, 159, 208, .45); }

/* ---------- effects ---------- */
.effects { position: relative; padding: clamp(40px, 6vw, 80px) 0; overflow-x: clip; }
.effects .container { position: relative; }
/* 見出しの左でガッツポーズするマスコット（見出しは中央寄せなので左に余白がある） */
.effects__mascot { position: absolute; left: clamp(0px, 3vw, 40px); top: 10px; width: 96px; height: auto; animation: bob 3.8s ease-in-out infinite; }
.effects__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(18px, 3vw, 36px); }
.ecard {
  position: relative; text-align: center;
  padding: clamp(32px, 3.6vw, 48px) clamp(24px, 2.8vw, 40px);
  border-radius: 46% 54% 52% 48% / 55% 45% 55% 45%;
  min-height: 320px; display: flex; flex-direction: column; justify-content: center;
  animation: float 9s ease-in-out infinite;
}
.ecard:nth-child(2) { animation-delay: -3s; border-radius: 54% 46% 48% 52% / 45% 55% 45% 55%; }
.ecard:nth-child(3) { animation-delay: -6s; border-radius: 50% 50% 56% 44% / 52% 48% 52% 48%; }
.ecard--pink { background: var(--sakura); }
.ecard--yellow { background: var(--nanohana); }
.ecard--green { background: var(--wakaba); }
.ecard__icon { width: 52px; height: 52px; margin: 0 auto 14px; color: var(--ink); }
.ecard h3 { font-family: var(--f-display); font-weight: 400; font-size: 1.3rem; margin: 0 0 .5em; line-height: 1.5; }
.ecard p { margin: 0; font-size: .93rem; color: var(--ink-2); }
@keyframes float { 0%, 100% { transform: translateY(0) rotate(0); } 50% { transform: translateY(-10px) rotate(-.6deg); } }

/* ---------- plans ---------- */
.plans { display: grid; grid-template-columns: repeat(4, 1fr); gap: clamp(16px, 2vw, 24px); align-items: stretch; }
.pcard {
  position: relative; background: #fff; border-radius: var(--radius);
  padding: 32px 26px 26px;
  box-shadow: 0 20px 44px -30px rgba(90, 58, 34, .35);
  display: flex; flex-direction: column; gap: 8px;
  border: 2px solid transparent;
  transition: transform .5s cubic-bezier(.2, .8, .2, 1), box-shadow .5s;
}
.pcard:hover { transform: translateY(-8px); box-shadow: 0 32px 54px -28px rgba(46, 159, 208, .5); }
.pcard--featured { background: linear-gradient(165deg, #fff 30%, var(--sky-2)); border-color: var(--blue); }
.pcard__badge { position: absolute; top: -14px; left: 22px; background: var(--pink); color: #fff; font-size: .74rem; font-weight: 700; padding: 5px 12px; border-radius: 999px; box-shadow: 0 8px 16px -8px rgba(232, 93, 138, .7); }
.pcard__badge--blue { background: var(--blue); box-shadow: 0 8px 16px -8px rgba(46, 159, 208, .8); }
.pcard__name { font-family: var(--f-display); font-size: 1.45rem; margin: 0; line-height: 1.3; }
.pcard__time { font-size: .85rem; color: var(--ink-3); margin: 0; display: flex; align-items: center; gap: 6px; }
.pcard__price { margin: 8px 0 6px; color: var(--blue-deep); display: flex; align-items: baseline; gap: 4px; line-height: 1; }
.pcard__price .num { font-size: 2.3rem; letter-spacing: -.01em; }
.pcard__price .num--text { font-family: var(--f-display); font-size: 1.8rem; }
.pcard__price .unit { font-size: .95rem; font-weight: 700; }
.pcard__list { margin: 0 0 8px; padding: 0; list-style: none; font-size: .92rem; color: var(--ink-2); line-height: 1.7; }
.pcard__list li { padding-left: 1.1em; position: relative; }
.pcard__list li::before { content: "・"; position: absolute; left: 0; }
.pcard__reco { margin: auto 0 0; font-size: .8rem; font-weight: 700; padding: 8px 12px; border-radius: 12px; background: rgba(251, 228, 154, .55); color: var(--ink); }
.pcard__reco--blue { background: var(--sky-2); }
.pcard__reco--pink { background: var(--sakura); }
.plan__note { font-size: .86rem; color: var(--ink-2); margin: clamp(44px, 5vw, 60px) 0 0; padding: 18px 24px; background: rgba(251, 228, 154, .28); border-radius: 18px; line-height: 1.8; }
.options { margin-top: clamp(64px, 5vw, 64px); }
.otable-wrap { overflow-x: auto; }
.otable { width: 100%; border-collapse: collapse; font-variant-numeric: tabular-nums; min-width: 480px; }
.otable th, .otable td { padding: 14px 16px; border-bottom: 1px dashed var(--line); text-align: left; vertical-align: top; }
.otable th { font-weight: 700; width: 36%; color: var(--ink); }
.otable td { color: var(--ink-2); }
.otable small { font-size: .8rem; color: var(--ink-3); }

/* ---------- flow ---------- */
.flow { padding: clamp(60px, 8vw, 110px) 0; }
.road { position: relative; margin: 0 auto; max-width: 1100px; }
.road__svg { width: 100%; height: auto; display: block; overflow: visible; }
.road__path { fill: none; stroke: rgba(90, 58, 34, .28); stroke-width: 3; stroke-dasharray: .006 .012; stroke-linecap: round; }
.road__path--progress { stroke: var(--blue); stroke-width: 4; stroke-dasharray: 1; stroke-dashoffset: 1; }
.road__stop { fill: #fff; stroke: var(--blue); stroke-width: 4; }
.road__stopnum { font-family: var(--f-latin); font-style: italic; font-size: 18px; fill: var(--blue-deep); text-anchor: middle; dominant-baseline: central; }
.road__van { position: absolute; left: 0; top: 0; width: 112px; }
.road__van img { transform: scaleX(-1); filter: drop-shadow(0 12px 14px rgba(90, 58, 34, .25)); }
.steps { list-style: none; margin: 28px 0 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(18px, 3vw, 36px); }
.step { background: rgba(255, 253, 246, .92); border-radius: var(--radius); padding: 30px 28px; box-shadow: var(--shadow); }
.step__no { font-size: 2.1rem; color: var(--blue); line-height: 1; display: block; margin-bottom: 8px; }
.step h3 { font-family: var(--f-display); font-weight: 400; font-size: 1.35rem; margin: 0 0 .4em; }
.step p { margin: 0; font-size: .95rem; color: var(--ink-2); }

/* ---------- contact ---------- */
.contact__grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 6vw, 80px); align-items: start; }
/* フォーム非表示中（子要素がひとつだけ）のとき：中央寄せの1カラムに */
.contact__grid > :only-child { grid-column: 1 / -1; max-width: 720px; margin-inline: auto; }
.contact__lead { font-size: var(--fs-lead); color: var(--ink-2); margin: 1.2em 0 .6em; }
.contact__tel { display: flex; align-items: center; gap: 14px; color: var(--blue-deep); margin: 8px 0 8px; }
.contact__tel .num { font-size: clamp(2rem, 3.6vw, 2.9rem); line-height: 1.1; letter-spacing: .01em; }
.contact__tel svg { width: 44px; height: 44px; padding: 10px; background: var(--blue); color: #fff; border-radius: 50%; flex: none; box-sizing: border-box; }
.contact__mail { display: inline-flex; align-items: center; gap: 10px; font-weight: 700; color: var(--ink); font-size: 1.05rem; border-bottom: 3px solid var(--nanohana); padding-bottom: 2px; }
.contact__apply { margin-top: 28px; padding: 24px 28px; border-radius: 24px; background: linear-gradient(135deg, var(--sky-2), #fff 75%); box-shadow: var(--shadow); display: flex; flex-wrap: wrap; align-items: center; gap: 10px 24px; }
.contact__apply-text { font-family: var(--f-display); font-size: 1.08rem; margin: 0; }
.contact__apply .note { width: 100%; margin: 0; }
.contact__privacy {
  margin: 20px 0 0; padding: 12px 18px; border-left: 3px solid var(--sky-2);
  font-size: .84rem; line-height: 1.8; color: var(--ink-3);
}
.contact__privacy a { color: var(--blue-deep); font-weight: 700; border-bottom: 1px solid rgba(46, 159, 208, .45); }
.contact__bubble { display: flex; align-items: flex-end; gap: 16px; margin-top: 32px; }
.contact__bubble img { width: 64px; height: auto; flex: none; }
.contact__bubble p { position: relative; margin: 0; background: var(--wakaba); border-radius: 22px; padding: 14px 20px; font-family: var(--f-display); font-size: .98rem; line-height: 1.7; }
.contact__bubble p::after { content: ""; position: absolute; left: -6px; bottom: 18px; width: 14px; height: 14px; background: var(--wakaba); transform: rotate(45deg); border-radius: 2px; }
.form { background: #fff; border-radius: 32px; padding: clamp(24px, 3.2vw, 40px); box-shadow: var(--shadow); display: grid; gap: 16px; }
.form label { display: grid; gap: 6px; font-size: .88rem; font-weight: 700; }
.form__label { display: flex; align-items: center; gap: 8px; }
.form .req { display: inline-block; font-size: .7rem; line-height: 1.6; color: #fff; background: var(--pink); padding: 1px 8px; border-radius: 999px; }
.form input, .form textarea {
  font: inherit; font-size: 1rem; width: 100%;
  padding: 12px 16px; border: 2px solid var(--line); border-radius: 14px;
  background: var(--cream); color: var(--ink);
  transition: border-color .3s, background .3s, box-shadow .3s;
}
.form input::placeholder, .form textarea::placeholder { color: rgba(165, 138, 111, .7); }
.form input:focus, .form textarea:focus { outline: none; border-color: var(--blue); background: #fff; box-shadow: 0 0 0 4px rgba(46, 159, 208, .15); }
.form textarea { resize: vertical; min-height: 130px; }
.form .btn { justify-self: start; margin-top: 4px; }
.form__note { font-size: .8rem; color: var(--ink-3); margin: 0; }
.form .is-error { border-color: var(--pink); }

/* ---------- company ---------- */
.company { padding: clamp(50px, 7vw, 90px) 0 30px; }
.company__grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: clamp(32px, 6vw, 80px); align-items: center; background: var(--paper); border-radius: 40px; padding: clamp(28px, 5vw, 64px); box-shadow: var(--shadow); }
.company__dl { margin: 0; display: grid; }
.company__dl div { display: grid; grid-template-columns: 120px 1fr; gap: 16px; padding: 16px 0; border-bottom: 1px dashed var(--line); }
.company__dl dt { font-weight: 700; color: var(--ink-3); font-size: .9rem; }
.company__dl dd { margin: 0; }
.company__dl a { color: var(--blue-deep); font-weight: 700; }
.company__visual { text-align: center; }
.company__logo { width: min(56%, 200px); height: auto; margin: 0 auto 16px; filter: drop-shadow(0 12px 20px rgba(46, 120, 160, .2)); }
.company__tag { font-family: var(--f-display); font-size: 1.3rem; line-height: 1.6; margin: 0 0 8px; }
.company__area { display: inline-flex; align-items: center; gap: 6px; font-size: .85rem; color: var(--ink-3); margin: 0; }
/* 会社概要のしめくくりに、おじぎのマスコット */
.company__mascot { width: 84px; height: auto; margin: 18px auto 0; animation: bob 4.6s ease-in-out infinite; }

/* ---------- footer ---------- */
.footer { padding: 44px 0 34px; background: var(--paper); margin-top: 60px; }
.footer__inner { display: grid; grid-template-columns: 1fr auto; gap: 24px; align-items: center; }
.footer__brand { display: flex; align-items: center; gap: 18px; }
.footer__brand img { width: 120px; height: auto; }
.footer__name { font-family: var(--f-display); font-size: 1.3rem; margin: 0; }
.footer__tag { font-size: .85rem; color: var(--ink-2); margin: 0; }
.footer__nav { display: flex; flex-wrap: wrap; gap: 18px; font-size: .88rem; font-weight: 700; }
.footer__nav a { position: relative; }
.footer__nav a::after { content: ""; position: absolute; left: 0; right: 0; bottom: -2px; height: 2px; background: var(--nanohana); transform: scaleX(0); transform-origin: left; transition: transform .35s; }
.footer__nav a:hover::after { transform: scaleX(1); }
.footer__copy { grid-column: 1 / -1; font-size: .82rem; color: var(--ink-3); margin: 8px 0 0; text-align: center; }
.totop {
  position: fixed; right: 22px; bottom: 22px; width: 54px; height: 54px; border-radius: 50%;
  background: var(--ink); color: var(--cream); display: grid; place-items: center; z-index: 40;
  opacity: 0; transform: translateY(20px); pointer-events: none;
  transition: opacity .4s, transform .4s, background .3s; box-shadow: 0 16px 30px -14px rgba(90, 58, 34, .6);
}
.totop.is-show { opacity: 1; transform: none; pointer-events: auto; }
.totop:hover { background: var(--blue-deep); }

/* ---------- responsive ---------- */
@media (max-width: 1100px) {
  .plans { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 900px) {
  :root { --header-h: 72px; }
  .nav, .header__tel { display: none; }
  .burger { display: block; }
  .header .lang { margin-left: auto; font-size: .85rem; padding: 4px 12px; }
  .header .lang + .burger { margin-left: 0; }
  .hero { padding-top: calc(var(--header-h) + 8px); padding-bottom: 40px; }
  .hero__inner { grid-template-columns: 1fr; gap: 28px; }
  /* 写真ブロックの下にマスコット用の余白（padding）を確保し、マスコットはその中に収める */
  .hero__visual { width: min(86%, 400px); margin-top: 16px; padding-bottom: 14%; }
  .hero__mascot-wrap { width: 42%; left: -5%; bottom: 0; }
  .scroll-hint { display: none; }
  .marquee { margin: 0 0 24px; padding: 8px 0 16px; }
  .concept__grid { grid-template-columns: 1fr; }
  .voices { grid-template-columns: 1fr; }
  .voices__arrow svg { transform: rotate(90deg); animation: none; }
  .scard, .scard--rev { grid-template-columns: 1fr; }
  .scard--rev .scard__photos { order: 0; }
  .scard__photos { min-height: 0; max-width: 430px; margin-inline: auto; }
  /* 見出しの左に余白が無くなるので、見出しの上へ回り込ませる */
  .effects__mascot { position: static; width: 82px; margin: 0 auto 14px; }
  .effects__grid { grid-template-columns: 1fr; max-width: 520px; margin: 0 auto; }
  .ecard { min-height: 0; padding: 44px 36px; }
  .road { display: none; }
  .steps { grid-template-columns: 1fr; max-width: 560px; margin: 20px auto 0; position: relative; }
  .steps::before { content: ""; position: absolute; left: 34px; top: 30px; bottom: 30px; border-left: 3px dashed rgba(46, 159, 208, .4); z-index: -1; }
  .contact__grid, .company__grid { grid-template-columns: 1fr; }
  .company__dl div { grid-template-columns: 96px 1fr; }
  .footer__inner { grid-template-columns: 1fr; }
}
@media (max-width: 600px) {
  body { font-size: 15px; }
  .plans { grid-template-columns: 1fr; }
  /* 横に重ねる余白が取れないので、重ねずに上下へ積む。
     2枚目の position を static に戻すと left/right/bottom は効かなくなり、
     グリッドの2行目として流れる（重ならないので幅も戻せる） */
  .scard__photos { gap: 18px; }
  .scard__photos .print:nth-child(1):not(:only-child) { justify-self: center; }
  .scard__photos .print:nth-child(2) { position: static; width: min(64%, 230px); }
  .hero__visual { width: min(90%, 340px); }
  .hero__mascot-wrap { width: 44%; left: -7%; }
  .hero .eyebrow { flex-wrap: wrap; gap: 4px 10px; }
  .hero .eyebrow__sep { display: none; }
  .hero .eyebrow .latin { width: 100%; }
  .voices__left { padding-left: 0; padding-top: 0; }
  .voices__mascot { position: static; width: 64px; margin: 0 0 8px; }
  .voices__list li:nth-child(even) { margin-left: 12px; }
  .equation__item { min-width: 0; width: 100%; }
  .equation__result { width: 100%; text-align: center; }
  .equation__mascot { width: 74px; margin: 4px auto 0; }
  .company__mascot { width: 76px; }
  .contact__bubble { align-items: flex-start; }
  .otable th { width: 42%; }
}

/* ---------- reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; }
  .marquee__track { animation: none; }
  .hi::before { transform: scaleX(1); }
}

/* ---------- toast ---------- */
.toast {
  position: fixed; left: 50%; bottom: 28px; transform: translate(-50%, 20px);
  background: var(--ink); color: var(--cream); padding: 12px 22px; border-radius: 999px;
  font-size: .9rem; font-weight: 700; z-index: 90; opacity: 0; pointer-events: none;
  transition: opacity .35s, transform .35s; box-shadow: 0 16px 30px -14px rgba(90, 58, 34, .6);
  max-width: calc(100% - 40px); text-align: center;
}
.toast.is-show { opacity: 1; transform: translate(-50%, 0); }
