/* =========================================================
   welle　見た目のファイル
   色・文字の大きさは、下の「:root」でまとめて変えられます
   ========================================================= */
:root {
  --base: #F5F0E8;      /* ベース：温かいオフホワイト */
  --base-2: #ECE4D7;    /* 背景を変える章だけに使う、少し濃いベース */
  --ink: #1C1A17;       /* 文字：墨色 */
  --muted: #5E5850;     /* 補足の文字 */
  --accent: #B8481A;    /* 差し色：深いオレンジ */
  --line: rgba(28, 26, 23, 0.14);

  --mincho: "Shippori Mincho", "Hiragino Mincho ProN", serif;
  --gothic: "Zen Kaku Gothic New", "Hiragino Sans", sans-serif;

  --fs-l: clamp(28px, 3.6vw, 48px);   /* 見出し */
  --fs-m: 22px;                        /* 小見出し */
  --fs-s: 16px;                        /* 本文 */

  --sec: 128px;                        /* 章の上下の余白 */
  --side: 48px;                        /* 左右の余白 */
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--base);
  color: var(--ink);
  font-family: var(--gothic);
  font-size: var(--fs-s);
  line-height: 1.9;
  font-feature-settings: "tnum";
  overflow-x: hidden;
}
img { display: block; max-width: 100%; height: auto; }
figure { margin: 0; }
a { color: inherit; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
.sp { display: none; }
h1, h2, h3, .hero__for, .make__lead, .showcase__text, .craft__lead, .statement__text, .problem__list li, .price__desc, .price__note, .form__privacy, .footer dd, .make__text p, .page p { word-break: auto-phrase; }

.wrap { max-width: 1200px; margin: 0 auto; padding: 0 var(--side); }

/* ---------- 見出し ---------- */
.h2 {
  font-family: var(--mincho);
  font-weight: 700;
  font-size: var(--fs-l);
  line-height: 1.35;
  letter-spacing: 0.04em;
  font-feature-settings: "palt";
  margin: 0 0 56px;
}
.h3 {
  font-family: var(--mincho);
  font-weight: 700;
  font-size: var(--fs-m);
  line-height: 1.4;
  letter-spacing: 0.04em;
  font-feature-settings: "palt";
  margin: 0 0 16px;
}

/* ---------- ボタン（C4：左から塗られる） ---------- */
.btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 56px;
  padding: 0 40px;
  border: 1px solid var(--accent);
  border-radius: 999px;
  background: var(--accent);
  color: var(--base);
  font-family: var(--gothic);
  font-weight: 700;
  font-size: var(--fs-s);
  letter-spacing: 0.06em;
  text-decoration: none;
  overflow: hidden;
  cursor: pointer;
  isolation: isolate;
}
.btn::before {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--ink);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.45s var(--ease);
  z-index: -1;
}
.btn:hover::before, .btn:focus-visible::before { transform: scaleX(1); }
.btn:hover, .btn:focus-visible { border-color: var(--ink); }
.btn--small { min-height: 44px; padding: 0 24px; }

/* ---------- ヘッダー ---------- */
.header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 80px;
  padding: 0 var(--side);
  color: var(--base);
  transition: background 0.3s var(--ease), color 0.3s var(--ease), height 0.3s var(--ease);
}
.header.is-solid {
  background: var(--base);
  color: var(--ink);
  height: 64px;
  border-bottom: 1px solid var(--line);
}
.header__logo {
  font-family: var(--mincho);
  font-weight: 700;
  font-size: var(--fs-m);
  letter-spacing: 0.04em;
  text-decoration: none;
}
.header__nav { display: flex; align-items: center; gap: 32px; }
.header__nav > a:not(.btn) {
  text-decoration: none;
  font-weight: 500;
  letter-spacing: 0.06em;
  padding: 8px 0;
  background: linear-gradient(currentColor, currentColor) left bottom / 0 1px no-repeat;
  transition: background-size 0.35s var(--ease);
}
.header__nav > a:not(.btn):hover { background-size: 100% 1px; }
.header__toggle { display: none; }

/* ---------- 一番上（ファーストビュー） ---------- */
.hero {
  position: relative;
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  align-items: flex-end;
  color: var(--base);
  overflow: hidden;
  background: var(--ink);
}
.hero__img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 70% 50%;
}
.hero__veil {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(20, 16, 12, 0.72) 0%, rgba(20, 16, 12, 0.45) 45%, rgba(20, 16, 12, 0) 75%),
    linear-gradient(0deg, rgba(20, 16, 12, 0.72) 0%, rgba(20, 16, 12, 0.45) 22%, rgba(20, 16, 12, 0) 45%);
}
/* A12：オレンジの板が右へ抜けて、写真が現れる */
.hero__wipe {
  position: absolute;
  inset: 0;
  background: var(--accent);
  transform-origin: right;
  animation: wipe 1.1s var(--ease) 0.15s both;
  z-index: 2;
}
@keyframes wipe { from { transform: scaleX(1); } to { transform: scaleX(0); } }

.hero__inner {
  position: relative;
  z-index: 3;
  width: 100%;
  max-width: 1440px;
  margin: 0 auto;
  padding: 96px var(--side) 56px;
}
.hero__for {
  margin: 0 0 8px;
  font-weight: 500;
  letter-spacing: 0.08em;
}
/* 一番記憶に残る1か所：画面いっぱいの「welle」（B10：せり上がる） */
.hero__mark {
  margin: 0 0 16px -0.05em;
  font-family: var(--mincho);
  font-weight: 500;
  font-size: clamp(120px, 34vw, 560px);
  line-height: 0.82;
  letter-spacing: -0.03em;
  overflow: hidden;
  padding-bottom: 0.08em;
}
.hero__mark span {
  display: inline-block;
  animation: rise 1.1s var(--ease) 0.75s both;
}
.hero__copy {
  margin: 0 0 40px;
  font-family: var(--mincho);
  font-weight: 700;
  font-size: var(--fs-l);
  line-height: 1.45;
  letter-spacing: 0.04em;
  font-feature-settings: "palt";
}
.hero__copy .line { display: block; white-space: nowrap; }
.hero__action { display: flex; align-items: center; justify-content: space-between; gap: 32px; flex-wrap: wrap; }
.hero__cta { display: flex; align-items: center; gap: 24px; flex-wrap: wrap; }
.hero__note { margin: 0; }
.hero__trust {
  margin: 0;
  padding-left: 24px;
  border-left: 1px solid rgba(245, 240, 232, 0.45);
  letter-spacing: 0.04em;
  line-height: 1.8;
}
@keyframes rise { from { transform: translateY(105%); } to { transform: translateY(0); } }

/* ---------- 困りごと ---------- */
.problem {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr);
  align-items: center;
  gap: 96px;
  padding: var(--sec) 0 var(--sec) max(var(--side), calc((100vw - 1200px) / 2 + var(--side)));
}
.problem__list { list-style: none; margin: 0; padding: 0; }
.problem__list li {
  padding: 24px 0;
  border-top: 1px solid var(--line);
}
.problem__list li:last-child { border-bottom: 1px solid var(--line); }
/* 6-4・6-3：寄りで切って、右端まで広げる */
.problem__photo img {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  object-position: 62% 50%;
}

/* ---------- 余白だけの一文 ---------- */
.statement { padding: 160px var(--side); text-align: center; }
.statement__text {
  margin: 0;
  font-family: var(--mincho);
  font-weight: 700;
  font-size: var(--fs-l);
  line-height: 1.7;
  letter-spacing: 0.06em;
  font-feature-settings: "palt";
}
/* 3-1：蛍光ペンの帯（スクロールで引かれる） */
.marker {
  color: inherit;
  background: linear-gradient(rgba(184, 72, 26, 0.28), rgba(184, 72, 26, 0.28)) left 88% / 0 0.45em no-repeat;
  transition: background-size 1s var(--ease) 0.2s;
  -webkit-box-decoration-break: clone;
  box-decoration-break: clone;
}
.marker.is-in { background-size: 100% 0.45em; }

/* ---------- つくるもの ---------- */
.make { padding: 0 0 var(--sec); }
.make__row {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr);
  align-items: center;
  gap: 96px;
  padding-right: max(var(--side), calc((100vw - 1200px) / 2 + var(--side)));
  margin-bottom: 128px;
}
.make__row:last-child { margin-bottom: 0; }
.make__row--reverse {
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.25fr);
  padding-right: 0;
  padding-left: max(var(--side), calc((100vw - 1200px) / 2 + var(--side)));
}
.make__row--reverse .make__photo { order: 2; }
.make__photo img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; object-position: 60% 60%; }
.make__photo--tall img { aspect-ratio: 4 / 5; object-position: 50% 20%; }
.make__text p { margin: 0; max-width: 32em; }
.make__lead {
  font-weight: 700;
  color: var(--accent);
  margin-bottom: 16px !important;
}

/* ---------- 仕立て方（2-5・7-6：斜めに切ったオレンジの面） ---------- */
.craft {
  position: relative;
  background: var(--accent);
  color: var(--base);
  padding: 192px 0;
  clip-path: polygon(0 64px, 100% 0, 100% calc(100% - 64px), 0 100%);
}
.craft__lead {
  margin: -24px 0 80px;
  font-family: var(--mincho);
  font-weight: 700;
  font-size: var(--fs-l);
  line-height: 1.6;
  letter-spacing: 0.04em;
}
.craft__cols { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; }
.craft__item { padding-top: 32px; border-top: 1px solid rgba(245, 240, 232, 0.45); }
.craft__item p { margin: 0; }

/* ---------- 見せ場（D6：スクロールで写真が開く） ---------- */
.showcase { height: 220vh; position: relative; margin-top: -32px; }
.showcase__sticky {
  position: sticky;
  top: 0;
  height: 100vh;
  display: grid;
  place-items: center;
  overflow: hidden;
}
.showcase__frame {
  --p: 0;
  position: relative;
  width: 100%;
  height: 100%;
  clip-path: inset(calc((1 - var(--p)) * 22%) calc((1 - var(--p)) * 30%));
}
.showcase__frame img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 60%; }
.showcase__veil {
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, rgba(20, 16, 12, 0.6) 0%, rgba(20, 16, 12, 0.1) 55%);
  opacity: var(--p);
}
.showcase__text {
  position: absolute;
  left: max(var(--side), calc((100vw - 1200px) / 2 + var(--side)));
  bottom: 96px;
  margin: 0;
  color: var(--base);
  font-family: var(--mincho);
  font-weight: 700;
  font-size: var(--fs-l);
  line-height: 1.5;
  letter-spacing: 0.04em;
  font-feature-settings: "palt";
  opacity: clamp(0, calc(var(--p) * 2 - 1), 1);
  transform: translateY(calc((1 - var(--p)) * 16px));
}

/* ---------- 制作の流れ ---------- */
.flow { padding: var(--sec) 0; }
.flow__list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 32px;
}
.flow__list li { position: relative; }
.flow__num {
  display: block;
  margin-bottom: 16px;
  color: var(--accent);
  font-family: var(--mincho);
  font-weight: 700;
  font-size: 28px;
  line-height: 1;
}
.flow__list h3 {
  margin: 0 0 8px;
  font-family: var(--mincho);
  font-size: var(--fs-s);
  font-weight: 700;
  letter-spacing: 0.04em;
}
.flow__list p { margin: 0; color: var(--muted); }

/* ---------- 料金 ---------- */
.price { padding: var(--sec) 0; background: var(--base-2); }
.price__table { border-top: 1px solid var(--ink); }
.price__row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: end;
  gap: 48px;
  padding: 40px 0;
  border-bottom: 1px solid var(--line);
}
.price__name .h3 { margin-bottom: 8px; }
.price__amount { text-align: right; }
.price__num { margin: 0; font-family: var(--mincho); font-weight: 700; line-height: 1.2; }
.price__yen { font-size: var(--fs-l); letter-spacing: 0.02em; }
.price__unit { font-size: var(--fs-s); margin-left: 4px; }
.price__unit--pre { margin: 0 6px 0 0; } /* 「月」は金額の前に置く */
.price__was { margin: 0 0 8px; color: var(--ink); display: flex; align-items: center; justify-content: flex-end; gap: 16px; }
.price__was s { text-decoration-thickness: 1px; }
.price__desc { margin: 0; color: var(--muted); }
.price__note { margin: 48px 0 0; color: var(--muted); }
.price__note strong, .price__desc strong { color: var(--ink); font-weight: 700; }
/* 5-1：塗りの札 */
.badge {
  display: inline-block;
  padding: 2px 16px;
  border-radius: 999px;
  background: var(--accent);
  color: var(--base);
  font-family: var(--gothic);
  font-size: var(--fs-s);
  font-weight: 700;
  letter-spacing: 0.06em;
  line-height: 1.8;
}

/* ---------- もうひとつの仕事 ---------- */
.others { padding: var(--sec) 0; }
.others__cols { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: 64px; align-items: start; }
.others__item--tall { margin-top: 96px; }
.others__item.others__item--tall img { aspect-ratio: 4 / 5; object-position: 25% 50%; /* 磨いている手が切れないよう左寄りに見せる */ }
.others__item figure { margin-bottom: 32px; }
.others__item img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.others__item p { margin: 0; }
.others__item .status {
  display: inline-block;
  margin: -4px 0 16px;
  padding: 2px 12px;
  border: 1px solid var(--muted);
  color: var(--muted);
  font-size: var(--fs-s);
  letter-spacing: 0.06em;
}

/* ---------- 相談フォーム ---------- */
.contact { padding: var(--sec) 0; background: var(--base-2); }
.contact__wrap { display: grid; grid-template-columns: 1fr 1.3fr; gap: 96px; }
.contact__head p { margin: 0; }
.contact__head .contact__free { margin: -16px 0 16px; font-family: var(--mincho); font-weight: 700; font-size: var(--fs-m); } /* 「ご相談は無料です。」を目立たせる */
.form__row { margin-bottom: 24px; }
.form label { display: block; margin-bottom: 8px; font-weight: 700; }
.req {
  display: inline-block;
  margin-left: 8px;
  padding: 0 8px;
  border-radius: 999px;
  background: var(--accent);
  color: var(--base);
  font-size: 14px;
  font-weight: 700;
  vertical-align: 2px;
  line-height: 1.7;
}
.form input, .form select, .form textarea {
  width: 100%;
  min-height: 52px;
  padding: 12px 16px;
  border: 1px solid rgba(28, 26, 23, 0.3);
  border-radius: 0;
  background: var(--base);
  color: var(--ink);
  font: inherit;
  font-size: 16px;
}
.form select { appearance: none; background-image: linear-gradient(45deg, transparent 50%, var(--ink) 50%), linear-gradient(135deg, var(--ink) 50%, transparent 50%); background-position: calc(100% - 22px) 50%, calc(100% - 16px) 50%; background-size: 6px 6px; background-repeat: no-repeat; }
.form input:focus, .form select:focus, .form textarea:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px rgba(184, 72, 26, 0.18); }
.form__privacy { margin: 8px 0 24px; color: var(--muted); }
.form__note { margin: 16px 0 0; color: var(--muted); }
/* 送信ボタンと前後の一文は真ん中にそろえる */
.form__privacy, .form__note { text-align: center; }
.form > .btn { display: flex; width: fit-content; margin: 0 auto; }

/* ---------- フッター ---------- */
.footer { background: var(--ink); color: var(--base); padding: 96px 0 32px; }
.footer__inner { display: grid; grid-template-columns: 1fr 2fr auto; gap: 48px; align-items: start; }
.footer__logo { margin: 0; font-family: var(--mincho); font-weight: 700; font-size: var(--fs-l); line-height: 1; }
.footer__info { margin: 0; }
.footer__info div { display: grid; grid-template-columns: 8em 1fr; padding: 16px 0; border-top: 1px solid rgba(245, 240, 232, 0.2); }
.footer__info dt { color: rgba(245, 240, 232, 0.7); }
.footer__info dd { margin: 0; }
.footer__links { margin: 0; }
.footer__copy { max-width: 1200px; margin: 64px auto 0; padding: 0 var(--side); color: rgba(245, 240, 232, 0.7); }

/* ---------- 下層ページ（プライバシー・送信完了・404） ---------- */
.page { padding: 160px 0 var(--sec); min-height: 70vh; }
.page .wrap { max-width: 800px; }
.page h2 { font-family: var(--mincho); font-size: var(--fs-m); margin: 48px 0 16px; }
.page p, .page li { max-width: 40em; }
.header--page { background: var(--base); color: var(--ink); border-bottom: 1px solid var(--line); height: 64px; }

/* ---------- 出現の動き ---------- */
/* B10：見出しが下からせり上がる */
.rise { overflow: hidden; }
.rise > span { display: inline-block; transform: translateY(105%); transition: transform 0.9s var(--ease); }
.rise.is-in > span { transform: none; }
/* A12：写真の上のオレンジの板が抜ける */
.reveal { position: relative; overflow: hidden; }
.reveal::after {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--accent);
  transform-origin: right;
  transition: transform 0.9s var(--ease);
}
.reveal.is-in::after { transform: scaleX(0); }
.craft .rise > span { transition-delay: 0.1s; }

/* ---------- スマホ・タブレット ---------- */
/* ---------- 右下の「一番上へ戻る」ボタン ---------- */
.totop {
  position: fixed;
  right: 24px;
  bottom: 88px; /* 右下の「Powered by Netlify」のバッジ（高さ約64px）と重ならないよう上に */
  z-index: 40;
  display: grid;
  place-items: center;
  width: 56px;
  height: 56px;
  background: var(--accent);
  color: var(--base);
  box-shadow: 0 0 0 1px rgba(245, 240, 232, 0.7); /* オレンジの面の上でも見えるように細い縁 */
  opacity: 0;
  visibility: hidden;
  transform: translateY(12px);
  transition: opacity 0.4s var(--ease), transform 0.4s var(--ease), visibility 0.4s, background 0.3s;
}
.totop.is-show { opacity: 1; visibility: visible; transform: none; }
.totop:hover { background: var(--ink); }
.totop:focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; }
.is-menu-open .totop { visibility: hidden; opacity: 0; }

@media (max-width: 960px) {
  :root { --sec: 80px; --side: 24px; }
  .sp { display: inline; }
  .header { height: 64px; }
  .header__toggle {
    display: grid;
    place-content: center;
    gap: 8px;
    width: 48px;
    height: 48px;
    margin-right: -12px;
    border: 0;
    background: none;
    color: inherit;
    cursor: pointer;
    z-index: 2;
  }
  .header__toggle span { display: block; width: 24px; height: 1.5px; background: currentColor; transition: transform 0.35s var(--ease); }
  .header__nav {
    position: fixed;
    inset: 0;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
    gap: 24px;
    padding: 0 32px;
    background: var(--base);
    color: var(--ink);
    font-size: var(--fs-m);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.35s var(--ease), visibility 0.35s;
  }
  .header__nav .btn { font-size: var(--fs-s); margin-top: 16px; }
  .is-menu-open .header__nav { opacity: 1; visibility: visible; }
  .is-menu-open .header { color: var(--ink); }
  .is-menu-open .header__toggle span:first-child { transform: translateY(4.75px) rotate(45deg); }
  .is-menu-open .header__toggle span:last-child { transform: translateY(-4.75px) rotate(-45deg); }
  .header__logo { position: relative; z-index: 2; }

  .hero__img { object-position: 78% 50%; }
  .hero__veil { background: linear-gradient(0deg, rgba(20, 16, 12, 0.78) 0%, rgba(20, 16, 12, 0.5) 55%, rgba(20, 16, 12, 0.2) 100%); }
  .hero__inner { padding: 96px var(--side) 48px; }
  .hero__mark { font-size: 34vw; margin-bottom: 16px; }
  .hero__copy { font-size: 25px; margin-bottom: 32px; }
  .hero__trust { padding: 24px 0 0; border-left: 0; border-top: 1px solid rgba(245, 240, 232, 0.35); width: 100%; }

  .problem, .make__row, .make__row--reverse { grid-template-columns: 1fr; gap: 40px; padding-left: var(--side); padding-right: 0; }
  .problem__text, .make__text { padding-right: var(--side); }
  .problem__photo img { aspect-ratio: 4 / 3; }
  .make__row--reverse .make__photo { order: 0; }
  .make__row { margin-bottom: 80px; }
  .make__photo--tall img { aspect-ratio: 4 / 3; }

  .statement { padding: 112px var(--side); text-align: left; }
  .craft { padding: 128px 0; clip-path: polygon(0 32px, 100% 0, 100% calc(100% - 32px), 0 100%); }
  .craft__cols, .others__cols, .contact__wrap { grid-template-columns: 1fr; gap: 48px; }
  .others__item--tall { margin-top: 0; }
  .others__item.others__item--tall img { aspect-ratio: 4 / 3; }
  .price__row { grid-template-columns: 1fr; gap: 16px; padding: 32px 0; }
  .price__amount { text-align: left; }
  .price__was { justify-content: flex-start; }

  .showcase { height: 180vh; }
  .showcase__text { bottom: 64px; padding-right: var(--side); }

  .flow__list { grid-template-columns: 1fr; gap: 0; }
  .flow__list li { display: grid; grid-template-columns: 48px 1fr; padding: 24px 0; border-top: 1px solid var(--line); }
  .flow__list li > :not(.flow__num) { grid-column: 2; }
  .flow__num { grid-row: span 2; margin: 0; }

  .footer__inner { grid-template-columns: 1fr; gap: 32px; }
  .footer__info div { grid-template-columns: 1fr; gap: 8px; } /* スマホは見出しと中身を上下2段に */
  .totop { right: 16px; bottom: 80px; width: 48px; height: 48px; }
  .h2 { margin-bottom: 40px; }
}

/* ---------- 動きを減らしたい人向け ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  html { scroll-behavior: auto; }
  .hero__wipe { display: none; }
  .rise > span { transform: none; }
  .reveal::after { display: none; }
  .marker { background-size: 100% 0.45em; }
  .showcase { height: auto; }
  .showcase__sticky { position: relative; height: 80vh; }
  .showcase__frame { --p: 1 !important; }
}

/* 途中で改行させない言葉 */
.nw { white-space: nowrap; }
