/* =========================================================
   base.css — リセット・共通パーツ（全セクション共通）
   ========================================================= */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: var(--header-h); overflow-x: clip; }
body {
  margin: 0;
  font-family: var(--ff-ja);
  font-size: var(--fs-md);
  line-height: var(--lh-body);
  letter-spacing: var(--ls-body);
  color: var(--c-text);
  background: var(--c-base);
  -webkit-font-smoothing: antialiased;
  font-feature-settings: "palt";            /* Eggs：和文の字詰め */
  overflow-x: clip;                         /* 横から出てくるアニメで横スクロールが出ないように */
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
ul, dl, dd { list-style: none; margin: 0; padding: 0; }
h1, h2, h3, p { margin: 0; }

/* --- レイアウト --- */
.container { width: min(100% - 40px, var(--w-content)); margin-inline: auto; }
.container--narrow { width: min(100% - 40px, var(--w-narrow)); margin-inline: auto; }
.section { padding-block: var(--sp-section); }
.section--sand { background: var(--c-sand); }

/* =========================================================
   見出し — 参考: Kaila .sec_ttl（筆記体＋和文＋中央の短い線）
                  Koko Head h2.story-title（色・和文カナ小見出し）
   ========================================================= */
.sec-title { text-align: center; margin-bottom: var(--sp-5); }
.sec-title__en {
  display: block;
  font-family: var(--ff-script);
  font-size: var(--fs-title);
  font-weight: 400;
  color: var(--c-main);
  line-height: 1.1;
  letter-spacing: 0.01em;
}
.sec-title__ja {
  position: relative;
  display: inline-block;
  margin-top: 6px;
  padding-bottom: 14px;
  font-size: var(--fs-xs);
  color: var(--c-main);
  letter-spacing: 0.25em;
}
.sec-title__ja::after {                 /* Kaila：中央の短い線 */
  content: "";
  position: absolute; left: 50%; bottom: 0;
  translate: -50% 0;
  width: 40px; height: 2px;
  border-radius: 2px;
  background: var(--c-main);
}
.sec-title--left { text-align: left; margin-bottom: var(--sp-3); }
.sec-title--left .sec-title__ja::after { left: 0; translate: 0 0; }

/* =========================================================
   ボタン — 参考: Koko Head a.view（左に丸アイコン、hoverで右へ5px）
   ========================================================= */
.btn {
  position: relative;
  display: inline-flex; align-items: center;
  width: fit-content;
  padding: 12px 40px 12px 72px;
  border-radius: var(--radius-sm);
  background: var(--c-main);
  color: var(--c-white);
  font-family: var(--ff-en);
  font-weight: 700;
  font-size: var(--fs-sm);
  letter-spacing: 0.08em;
  transition: opacity .3s;
}
.btn::before, .btn::after {             /* 丸アイコン（白丸＋三角） */
  content: "";
  position: absolute; top: 50%;
  transition: left .3s var(--ease);
}
.btn::before { left: 22px; width: 28px; height: 28px; margin-top: -14px; border-radius: 50%; background: var(--c-white); }
.btn::after  { left: 33px; width: 9px; height: 10px; margin-top: -5px; background: var(--c-main); clip-path: polygon(0 0, 100% 50%, 0 100%); }
.btn:hover { opacity: .85; }
.btn:hover::before { left: 27px; }
.btn:hover::after  { left: 38px; }
.btn--ghost { background: transparent; color: var(--c-main); box-shadow: inset 0 0 0 2px var(--c-main); }
.btn--ghost::before { background: var(--c-main); }
.btn--ghost::after  { background: var(--c-white); }
@media (max-width: 767px) {
  .btn { padding: 10px 32px 10px 62px; }
  .btn::before { left: 18px; width: 24px; height: 24px; margin-top: -12px; }
  .btn::after  { left: 27px; }
  .btn:hover::before { left: 22px; }
  .btn:hover::after  { left: 31px; }
}

/* --- 仮画像（写真受領までのダミー） --- */
.ph {
  display: grid; place-items: center;
  width: 100%;
  aspect-ratio: 4 / 3;
  background: linear-gradient(135deg, var(--c-main-soft), var(--c-sand));
  color: var(--c-text-sub);
  font-size: var(--fs-xs);
  letter-spacing: 0.1em;
}
.ph--square { aspect-ratio: 1; }
.ph--wide { aspect-ratio: 16 / 9; }
.ph--fill { aspect-ratio: auto; height: 100%; }

/* =========================================================
   スクロール表示 — 参考: Koko Head .fadeup（1.3s, ease）/ Kaila showleft・showright
   ========================================================= */
.js-fade  { opacity: 0; transform: translate3d(0, 40px, 0); transition: opacity 1.3s var(--ease), transform 1.3s var(--ease); }
.js-left  { opacity: 0; transform: translate3d(-30px, 0, 0); transition: opacity 1.3s var(--ease), transform 1.3s var(--ease); }
.js-right { opacity: 0; transform: translate3d(30px, 0, 0);  transition: opacity 1.3s var(--ease), transform 1.3s var(--ease); }
.is-in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .js-fade, .js-left, .js-right { opacity: 1; transform: none; transition: none; }
  html { scroll-behavior: auto; }
}

/* 波形（Kaila .mv::after / .section_bg の波）— 背景色で塗る */
.wave {
  position: absolute; left: 0; width: 100%; height: clamp(24px, 4vw, 60px);
  background: var(--wave-color, var(--c-base));
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1440 60' preserveAspectRatio='none'%3E%3Cpath d='M0 30 C 240 0 480 0 720 30 S 1200 60 1440 30 V60 H0Z'/%3E%3C/svg%3E") 0 0 / 100% 100% no-repeat;
          mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1440 60' preserveAspectRatio='none'%3E%3Cpath d='M0 30 C 240 0 480 0 720 30 S 1200 60 1440 30 V60 H0Z'/%3E%3C/svg%3E") 0 0 / 100% 100% no-repeat;
  z-index: 2;
  pointer-events: none;
}
.wave--bottom { bottom: -1px; }
.wave--top { top: -1px; transform: scaleY(-1); }

/* --- 右下の固定ボタン — 参考: Onoaz 固定MENUボタン / Koko Head .scrolltop --- */
.float-btns {
  position: fixed; right: 20px; bottom: 20px; z-index: 90;
  display: flex; flex-direction: column; gap: 10px; align-items: flex-end;
  opacity: 0; translate: 0 20px; pointer-events: none;
  transition: opacity .4s, translate .4s var(--ease);
}
.float-btns.is-show { opacity: 1; translate: 0 0; pointer-events: auto; }
.float-btn {
  display: grid; place-items: center;
  width: 64px; height: 64px;
  border-radius: 50%;
  background: var(--c-main); color: var(--c-white);
  font-family: var(--ff-en); font-weight: 700; font-size: 11px; line-height: 1.3; letter-spacing: .06em;
  text-align: center;
  box-shadow: 0 4px 14px rgba(0,0,0,.18);
  transition: transform .3s var(--ease);
}
.float-btn:hover { transform: translateY(-3px); }
.float-btn small { display: block; font-family: var(--ff-ja); font-size: 9px; font-weight: 400; }
.float-btn--top { width: 48px; height: 48px; background: var(--c-white); color: var(--c-main); font-size: 16px; }
@media (max-width: 767px) {
  .float-btns { right: 12px; bottom: 12px; gap: 8px; }
  .float-btn { width: 52px; height: 52px; font-size: 10px; }
  .float-btn small { display: none; }
  .float-btn--top { width: 40px; height: 40px; font-size: 14px; }
}
