/* =========================================================
   rn-studio — 中嶋 陸 ホームページ制作
   ========================================================= */

:root {
  --bg: #F7F5F1;
  --bg-sub: #EFEBE4;
  --ink: #1F1D1B;
  --gray: #6B6661;
  --line: #DCD6CD;
  --accent: #8A6A4F;
  --accent-dark: #6F533C;
  --white: #FFFFFF;

  --serif: "Noto Serif JP", "Yu Mincho", "YuMincho", serif;
  --sans: "Noto Sans JP", "Hiragino Sans", "Yu Gothic", sans-serif;
  --en: "Cormorant Garamond", "Times New Roman", serif;

  --container: 1120px;
  --gutter: clamp(20px, 5vw, 48px);
  --section: clamp(96px, 14vw, 168px);
  --header-h: 76px;
  --ease: cubic-bezier(.22, .61, .36, 1);
}

*,
*::before,
*::after { box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: var(--header-h); -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 15px;
  line-height: 2;
  letter-spacing: .04em;
  font-variant-numeric: lining-nums;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
ul, ol { margin: 0; padding: 0; list-style: none; }
h1, h2, h3, p, figure, dl, dd { margin: 0; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 4px; }

.pc { display: none; }
@media (min-width: 768px) { .pc { display: inline; } .sp { display: none; } body { font-size: 16px; } }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

.skip {
  position: absolute; left: 16px; top: -100px; z-index: 100;
  padding: 8px 16px; background: var(--ink); color: var(--white);
}
.skip:focus { top: 16px; }

.container { width: min(100% - var(--gutter) * 2, var(--container)); margin-inline: auto; }
.section { padding-block: var(--section); }

/* ---------- Header ---------- */
.header {
  position: fixed; inset: 0 0 auto; z-index: 50;
  height: var(--header-h);
  transition: background-color .4s var(--ease), box-shadow .4s var(--ease);
}
.header.is-scrolled { background: rgba(247, 245, 241, .88); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); box-shadow: 0 1px 0 var(--line); }
.header__inner {
  height: 100%; display: flex; align-items: center; justify-content: space-between;
  padding-inline: var(--gutter);
}

.logo { position: relative; z-index: 60; display: flex; flex-direction: column; line-height: 1.3; }
.logo__ja { font-family: var(--serif); font-size: 18px; font-weight: 600; letter-spacing: .16em; }
.logo__en { font-family: var(--en); font-size: 12px; color: var(--gray); letter-spacing: .12em; }

.nav ul { display: flex; align-items: center; gap: 32px; }
.nav a { font-size: 13px; letter-spacing: .1em; position: relative; padding-block: 6px; }
.nav a:not(.nav__cta)::after {
  content: ""; position: absolute; left: 0; bottom: 0; width: 100%; height: 1px;
  background: currentColor; transform: scaleX(0); transform-origin: right;
  transition: transform .5s var(--ease);
}
.nav a:not(.nav__cta):hover::after { transform: scaleX(1); transform-origin: left; }
.nav__cta {
  display: inline-block; padding: 10px 22px !important; border: 1px solid var(--ink);
  border-radius: 999px; transition: background-color .4s var(--ease), color .4s var(--ease);
}
.nav__cta:hover { background: var(--ink); color: var(--bg); }

.menu-btn { display: none; }

@media (max-width: 960px) {
  .menu-btn {
    display: block; position: relative; z-index: 60; width: 44px; height: 44px;
  }
  .menu-btn span {
    position: absolute; left: 10px; width: 24px; height: 1px; background: var(--ink);
    transition: transform .4s var(--ease), top .4s var(--ease);
  }
  .menu-btn span:first-child { top: 18px; }
  .menu-btn span:last-child { top: 26px; }
  .menu-btn[aria-expanded="true"] span:first-child { top: 22px; transform: rotate(20deg); }
  .menu-btn[aria-expanded="true"] span:last-child { top: 22px; transform: rotate(-20deg); }

  .nav {
    position: fixed; inset: 0; z-index: 55; background: var(--bg);
    display: grid; place-items: center;
    opacity: 0; visibility: hidden; transition: opacity .4s var(--ease), visibility .4s;
  }
  .nav.is-open { opacity: 1; visibility: visible; }
  .nav ul { flex-direction: column; gap: 24px; text-align: center; }
  .nav a { font-family: var(--serif); font-size: 18px; }
  .nav__cta { margin-top: 16px; }
  body.is-locked { overflow: hidden; }
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 16px;
  font-size: 14px; letter-spacing: .12em; line-height: 1;
}
.btn--primary {
  position: relative; overflow: hidden;
  padding: 22px 32px 22px 36px; background: var(--ink); color: var(--bg); border-radius: 999px;
  isolation: isolate;
}
.btn--primary::before {
  content: ""; position: absolute; inset: 0; z-index: -1; background: var(--accent);
  transform: translateY(101%); transition: transform .6s var(--ease);
  border-radius: inherit;
}
.btn--primary:hover::before { transform: translateY(0); }
.btn__arrow {
  position: relative; width: 28px; height: 1px; background: currentColor;
  transition: width .5s var(--ease);
}
.btn__arrow::after {
  content: ""; position: absolute; right: 0; top: -3px; width: 7px; height: 1px;
  background: currentColor; transform: rotate(35deg); transform-origin: right;
}
.btn:hover .btn__arrow { width: 40px; }
.btn--text { padding-block: 8px; border-bottom: 1px solid var(--line); transition: border-color .4s var(--ease); }
.btn--text:hover { border-color: var(--ink); }
.btn:disabled { opacity: .5; cursor: wait; }

/* ---------- Hero ---------- */
.hero {
  position: relative; min-height: 100vh; min-height: 100svh;
  display: grid; align-content: center; gap: 56px;
  padding: calc(var(--header-h) + 24px) max(var(--gutter), (100% - 1240px) / 2) 104px;
  overflow: hidden;
}
.hero::before {
  /* 背景にうっすら大きな円。主張しすぎない奥行き */
  content: ""; position: absolute; right: -18vw; top: 50%;
  width: min(78vw, 980px); aspect-ratio: 1; border-radius: 50%;
  background: radial-gradient(circle closest-side, #E9E0D3 0%, rgba(233, 224, 211, .5) 55%, rgba(233, 224, 211, 0) 100%);
  transform: translateY(-50%);
  z-index: -1;
}
.hero__inner { position: relative; z-index: 1; }
.hero__eyebrow {
  display: flex; align-items: center; gap: 16px;
  font-family: var(--en); font-style: italic; font-size: 16px; color: var(--accent); letter-spacing: .08em;
}
.hero__eyebrow .line { display: block; width: 48px; height: 1px; background: currentColor; }
.hero__title {
  margin-top: 32px;
  font-family: var(--serif); font-weight: 500;
  font-size: clamp(38px, 6vw, 84px); line-height: 1.45; letter-spacing: .08em;
}
.hero__line { display: block; overflow: hidden; }
.hero__line > span { display: inline-block; }
.hero__sub {
  margin-top: 28px; font-family: var(--serif); font-size: clamp(15px, 1.6vw, 18px); letter-spacing: .2em;
}
.hero__lead { margin-top: 24px; max-width: 34em; color: var(--gray); font-size: 14px; }
.hero__actions { margin-top: 48px; display: flex; flex-wrap: wrap; align-items: center; gap: 24px 40px; }

.hero__scroll {
  position: absolute; left: 50%; bottom: 32px; transform: translateX(-50%);
  display: flex; flex-direction: column; align-items: center; gap: 12px;
  font-family: var(--en); font-size: 12px; letter-spacing: .2em; color: var(--gray);
}
.hero__scroll::after {
  content: ""; width: 1px; height: 56px; background: linear-gradient(var(--gray) 50%, transparent 50%);
  background-size: 1px 200%; animation: scrollLine 2.4s var(--ease) infinite;
}
@keyframes scrollLine { from { background-position: 0 100%; } to { background-position: 0 -100%; } }

/* 読み込み時の演出 */
.js .hero__line > span { transform: translateY(110%); }
.js .hero__eyebrow, .js .hero__sub, .js .hero__lead, .js .hero__actions, .js .hero__scroll { opacity: 0; }
.is-loaded .hero__line > span { transform: none; transition: transform 1.2s var(--ease); }
.is-loaded .hero__line:nth-child(2) > span { transition-delay: .15s; }
.is-loaded .hero__eyebrow, .is-loaded .hero__sub, .is-loaded .hero__lead,
.is-loaded .hero__actions, .is-loaded .hero__scroll { opacity: 1; transition: opacity 1.2s var(--ease); }
.is-loaded .hero__sub { transition-delay: .6s; }
.is-loaded .hero__lead { transition-delay: .75s; }
.is-loaded .hero__actions { transition-delay: .9s; }
.is-loaded .hero__scroll { transition-delay: 1.3s; }

/* ---------- Section head ---------- */
.section-head { margin-bottom: clamp(48px, 7vw, 80px); }
.section-head__num { font-variant-numeric: lining-nums; font-family: var(--en); font-size: 14px; color: var(--accent); letter-spacing: .1em; }
.section-head__en {
  margin-top: 4px; font-family: var(--en); font-size: clamp(44px, 6vw, 72px); line-height: 1.1; letter-spacing: .02em;
}
.section-head__ja { margin-top: 12px; font-family: var(--serif); font-size: 14px; font-weight: 500; letter-spacing: .2em; color: var(--gray); }
.section-head--row { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 16px 40px; }
.section-head__note { font-size: 13px; color: var(--gray); }

/* ---------- About ---------- */
.about__grid { display: grid; gap: 0 80px; }
@media (min-width: 960px) { .about__grid { grid-template-columns: 280px 1fr; } }
.about__body > p + p { margin-top: 1.6em; }
.about__body > p:not(.about__catch) { color: #3C3834; }
.about__catch {
  margin-bottom: 48px; font-family: var(--serif); font-weight: 500;
  font-size: clamp(22px, 3vw, 32px); line-height: 1.8; letter-spacing: .08em;
}
.about__values { margin-top: 56px; display: grid; gap: 1px; background: var(--line); border-block: 1px solid var(--line); }
@media (min-width: 768px) { .about__values { grid-template-columns: repeat(3, 1fr); } }
.about__values li { background: var(--bg); padding: 28px 8px; font-size: 14px; }
@media (min-width: 768px) { .about__values li { padding: 28px 24px; } .about__values li:first-child { padding-left: 0; } }
.about__values span { display: block; font-family: var(--en); font-style: italic; font-size: 22px; color: var(--accent); line-height: 1.4; }

/* ---------- Works ---------- */
.works { background: var(--bg-sub); }
.works__list { display: grid; gap: clamp(96px, 12vw, 160px); }
.case { display: grid; gap: 48px; align-items: center; }
@media (min-width: 960px) {
  .case { grid-template-columns: 1.25fr 1fr; gap: 72px; }
  .case:nth-child(even) .case__visual { order: 2; }
}
.case__visual {
  position: relative; display: block; padding: 0 9% 12% 0;
  transform: perspective(1400px) rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg));
  transition: transform .8s var(--ease);
}
.case__pc {
  position: relative; border-radius: 8px; overflow: hidden; background: var(--white); padding-top: 24px;
  box-shadow: 0 2px 4px rgba(31, 29, 27, .05), 0 40px 70px -40px rgba(31, 29, 27, .45);
}
.case__pc::before {
  content: ""; position: absolute; left: 14px; top: 9px; width: 36px; height: 6px;
  background: radial-gradient(circle, var(--line) 3px, transparent 3.5px) 0 0 / 12px 6px repeat-x;
}
.case__pc img { aspect-ratio: 16 / 10; object-fit: cover; object-position: top; transition: transform 1.4s var(--ease); }
.case__sp {
  position: absolute; right: 0; bottom: 0; width: 25%;
  border: 5px solid var(--ink); border-radius: 22px; overflow: hidden; background: var(--ink);
  box-shadow: 0 30px 50px -24px rgba(31, 29, 27, .55);
  transform: translateY(var(--py, 0px));
}
.case__sp img { aspect-ratio: 390 / 844; object-fit: cover; border-radius: 16px; }
.case:hover .case__pc img { transform: scale(1.03); }

.case__num { font-family: var(--en); font-style: italic; font-size: 18px; color: var(--accent); }
.case__cat { margin-top: 2px; font-size: 12px; letter-spacing: .14em; color: var(--gray); }
.case__title { margin-top: 10px; font-family: var(--serif); font-weight: 500; font-size: clamp(24px, 3vw, 32px); letter-spacing: .08em; line-height: 1.5; }
.case__title a { background: linear-gradient(currentColor, currentColor) 0 100% / 0 1px no-repeat; transition: background-size .6s var(--ease); }
.case__title a:hover { background-size: 100% 1px; }
.case__points { margin-top: 28px; display: grid; gap: 18px; }
.case__points div { display: grid; grid-template-columns: 64px 1fr; gap: 16px; align-items: baseline; }
.case__points dt {
  font-size: 11px; letter-spacing: .14em; text-align: center; padding: 2px 0; border-radius: 3px;
  border: 1px solid var(--accent); color: var(--accent);
}
.case__points div + div dt { background: var(--accent); color: var(--white); }
.case__points dd { font-size: 14px; line-height: 1.9; }
.case__tags { margin-top: 24px; display: flex; flex-wrap: wrap; gap: 8px; }
.case__tags li { padding: 2px 12px; font-size: 12px; color: var(--gray); border: 1px solid var(--line); border-radius: 999px; background: var(--bg); }
.case__links { margin-top: 32px; display: flex; flex-wrap: wrap; align-items: center; gap: 16px 32px; }
.case__site { font-size: 13px; letter-spacing: .1em; color: var(--gray); transition: color .3s; }
.case__site::after { content: " ↗"; font-family: var(--en); }
.case__site:hover { color: var(--ink); }

/* ---------- Service ---------- */
.service__feature {
  position: relative; display: grid; gap: 16px;
  padding: clamp(32px, 5vw, 56px); background: var(--white); border-radius: 6px;
  border: 1px solid var(--line);
}
.service__badge {
  justify-self: start; padding: 4px 14px; border-radius: 999px; background: var(--accent); color: var(--white);
  font-size: 12px; letter-spacing: .14em; line-height: 1.8;
}
.service__feature h3 { font-family: var(--serif); font-size: clamp(20px, 2.6vw, 26px); font-weight: 500; letter-spacing: .08em; }
.service__feature p:not(.service__badge) { margin-top: 12px; color: var(--gray); max-width: 44em; }
.service__list { margin-top: 24px; display: grid; gap: 1px; background: var(--line); border-block: 1px solid var(--line); }
@media (min-width: 768px) { .service__list { grid-template-columns: repeat(2, 1fr); } }
.service__list li { background: var(--bg); padding: 32px 0; }
@media (min-width: 768px) { .service__list li { padding: 40px 40px 40px 0; } .service__list li:nth-child(even) { padding: 40px 0 40px 40px; } }
.service__list h3 { font-family: var(--serif); font-size: 18px; font-weight: 500; letter-spacing: .06em; }
.service__list p { margin-top: 8px; font-size: 14px; color: var(--gray); }
.service__note { margin-top: 40px; font-family: var(--serif); text-align: center; }

/* ---------- Price ---------- */
.price { background: var(--bg-sub); }
.price__monitor {
  display: grid; gap: 12px; padding: clamp(28px, 4vw, 40px);
  border: 1px solid var(--accent); border-radius: 6px; background: var(--bg);
}
.price__monitor-title { font-family: var(--serif); font-size: clamp(18px, 2.2vw, 22px); font-weight: 500; letter-spacing: .08em; }
.price__monitor-title span { display: block; font-family: var(--en); font-style: italic; font-size: 16px; color: var(--accent); letter-spacing: .06em; }
.price__monitor p:not(.price__monitor-title) { font-size: 14px; }
.price__monitor strong { font-weight: 500; color: var(--accent-dark); border-bottom: 1px solid currentColor; }
.price__monitor ul { font-size: 13px; color: var(--gray); }
.price__monitor li::before { content: "— "; color: var(--accent); }

.price__table { margin-top: 48px; border-top: 1px solid var(--ink); }
.price__row {
  display: grid; grid-template-columns: 1fr auto; gap: 4px 24px; align-items: baseline;
  padding: 24px 0; border-bottom: 1px solid var(--line);
}
.price__row--head { display: none; }
.price__name { grid-column: 1 / -1; font-family: var(--serif); font-size: 16px; letter-spacing: .06em; }
.price__name small { display: block; font-family: var(--sans); font-size: 12px; color: var(--gray); letter-spacing: .04em; }
.price__normal { font-size: 13px; color: var(--gray); }
.price__normal s { text-decoration-color: rgba(107, 102, 97, .6); }
.price__monitor-price { justify-self: end; font-variant-numeric: lining-nums; font-family: var(--en); font-size: 30px; line-height: 1.2; color: var(--accent-dark); letter-spacing: .02em; }
.price__monitor-price small { font-family: var(--sans); font-size: 13px; margin-left: 2px; }
.price__monitor-price--text { font-family: var(--sans); font-size: 14px; color: var(--ink); }
.price__row--feature .price__name::after {
  content: "人気"; margin-left: 12px; padding: 2px 10px; border-radius: 999px; vertical-align: 2px;
  font-family: var(--sans); font-size: 11px; color: var(--accent); border: 1px solid var(--accent);
}
@media (min-width: 768px) {
  .price__row { grid-template-columns: 1fr 160px 200px; padding: 28px 8px; align-items: center; }
  .price__row--head { display: grid; padding-block: 16px; font-size: 12px; color: var(--gray); letter-spacing: .12em; }
  .price__row--head span:not(:first-child) { text-align: right; }
  .price__name { grid-column: auto; }
  .price__normal { text-align: right; }
}
.price__notes { margin-top: 32px; font-size: 13px; color: var(--gray); }
.price__notes li::before { content: "※ "; }

/* ---------- Flow ---------- */
.flow__list { display: grid; gap: 0; counter-reset: flow; }
@media (min-width: 960px) { .flow__list { grid-template-columns: repeat(5, 1fr); gap: 24px; } }
.flow__list li { position: relative; padding: 0 0 40px 32px; border-left: 1px solid var(--line); }
.flow__list li::before {
  content: ""; position: absolute; left: -5px; top: 8px; width: 9px; height: 9px; border-radius: 50%;
  background: var(--bg); border: 1px solid var(--accent);
}
.flow__list li:last-child { padding-bottom: 0; }
@media (min-width: 960px) {
  .flow__list li { padding: 32px 0 0; border-left: 0; border-top: 1px solid var(--line); }
  .flow__list li::before { left: 0; top: -5px; }
}
.flow__step { font-family: var(--en); font-style: italic; font-size: 15px; color: var(--accent); }
.flow__list h3 { margin-top: 4px; font-family: var(--serif); font-size: 18px; font-weight: 500; letter-spacing: .08em; }
.flow__list p { margin-top: 8px; font-size: 13px; color: var(--gray); line-height: 1.9; }

/* ---------- FAQ ---------- */
.faq { background: var(--bg-sub); }
.faq__grid { display: grid; gap: 0 80px; }
@media (min-width: 960px) { .faq__grid { grid-template-columns: 280px 1fr; } }
.faq__list { border-top: 1px solid var(--line); }
.faq__list details { border-bottom: 1px solid var(--line); }
.faq__list summary {
  position: relative; list-style: none; cursor: pointer;
  padding: 26px 48px 26px 40px; font-family: var(--serif); font-size: 16px; letter-spacing: .04em; line-height: 1.7;
}
.faq__list summary::-webkit-details-marker { display: none; }
.faq__list summary::before {
  content: "Q"; position: absolute; left: 4px; top: 22px; font-family: var(--en); font-size: 22px; color: var(--accent);
}
.faq__list summary::after {
  content: ""; position: absolute; right: 8px; top: 50%; width: 14px; height: 14px;
  background:
    linear-gradient(currentColor, currentColor) center / 14px 1px no-repeat,
    linear-gradient(currentColor, currentColor) center / 1px 14px no-repeat;
  transform: translateY(-50%); transition: transform .4s var(--ease);
}
.faq__list details[open] summary::after { transform: translateY(-50%) rotate(135deg); }
.faq__list details > div { overflow: hidden; }
.faq__list details p { padding: 0 48px 28px 40px; font-size: 14px; color: var(--gray); }

/* ---------- Contact ---------- */
.contact__grid { display: grid; gap: 56px 80px; }
@media (min-width: 960px) { .contact__grid { grid-template-columns: 1fr 1.3fr; } }
.contact__lead { font-family: var(--serif); font-size: clamp(18px, 2.2vw, 22px); line-height: 1.9; letter-spacing: .06em; }
.contact__ways { margin-top: 40px; border-top: 1px solid var(--line); }
.contact__ways div { display: grid; grid-template-columns: 96px 1fr; padding: 16px 0; border-bottom: 1px solid var(--line); font-size: 14px; }
.contact__ways dt { color: var(--gray); }
.contact__ways a { border-bottom: 1px solid var(--line); word-break: break-all; transition: border-color .3s; }
.contact__ways a:hover { border-color: var(--ink); }
.contact__ways a[aria-disabled="true"] { color: var(--gray); pointer-events: none; border: 0; }

.form { padding: clamp(28px, 5vw, 56px); background: var(--white); border-radius: 6px; border: 1px solid var(--line); }
.form__bot { position: absolute; left: -9999px; }
.form__field + .form__field { margin-top: 28px; }
.form__field label { display: flex; align-items: center; gap: 10px; font-size: 14px; letter-spacing: .08em; }
.req, .opt { font-size: 11px; padding: 0 8px; border-radius: 3px; line-height: 1.8; letter-spacing: .08em; }
.req { background: var(--ink); color: var(--white); }
.opt { border: 1px solid var(--line); color: var(--gray); }
.form__hint { margin-top: 2px; font-size: 12px; color: var(--gray); }
.form input:not([type="checkbox"]), .form textarea, .form select {
  width: 100%; margin-top: 10px; padding: 14px 16px;
  font: inherit; font-size: 16px; color: var(--ink); letter-spacing: .04em;
  background: var(--bg); border: 1px solid transparent; border-radius: 4px;
  transition: border-color .3s var(--ease), background-color .3s var(--ease);
  -webkit-appearance: none; appearance: none;
}
.form select {
  background-image: linear-gradient(45deg, transparent 50%, var(--gray) 50%), linear-gradient(135deg, var(--gray) 50%, transparent 50%);
  background-position: calc(100% - 22px) 50%, calc(100% - 17px) 50%;
  background-size: 5px 5px; background-repeat: no-repeat; padding-right: 44px;
}
.form textarea { resize: vertical; min-height: 160px; line-height: 1.8; }
.form input:focus, .form textarea:focus, .form select:focus { outline: none; border-color: var(--accent); background: var(--white); }
.form [aria-invalid="true"] { border-color: #A64B3C !important; }
.form__error { min-height: 0; margin-top: 6px; font-size: 12px; color: #A64B3C; }
.form__error:empty { display: none; }

.form__optional { margin-top: 32px; border-top: 1px dashed var(--line); }
.form__optional summary {
  list-style: none; cursor: pointer; padding-top: 20px; font-size: 13px; color: var(--gray); letter-spacing: .08em;
}
.form__optional summary::-webkit-details-marker { display: none; }
.form__optional summary::before { content: "＋ "; color: var(--accent); }
.form__optional[open] summary::before { content: "－ "; }
.form__optional-body { padding-top: 24px; }

.form__submit { margin-top: 40px; display: flex; flex-wrap: wrap; align-items: center; gap: 16px 28px; }
.form__reply { font-size: 13px; color: var(--accent-dark); }
.form__reply::before { content: ""; display: inline-block; width: 6px; height: 6px; margin-right: 8px; border-radius: 50%; background: var(--accent); vertical-align: 2px; }
.form__privacy { margin-top: 20px; font-size: 12px; color: var(--gray); }
.form__status { margin-top: 12px; font-size: 14px; }
.form__status:empty { display: none; }
.form__status.is-error { color: #A64B3C; }

/* ---------- Footer ---------- */
.footer { padding: 64px 0 40px; background: var(--ink); color: var(--bg); }
.footer__inner { display: grid; gap: 32px; }
@media (min-width: 768px) { .footer__inner { grid-template-columns: 1fr auto; align-items: end; } }
.footer .logo__en { color: #A8A29A; }
.footer__top { font-size: 13px; letter-spacing: .12em; justify-self: start; border-bottom: 1px solid #55504A; padding-bottom: 4px; transition: border-color .3s; }
.footer__top:hover { border-color: var(--bg); }
.footer__copy { grid-column: 1 / -1; color: #A8A29A; font-family: var(--en); letter-spacing: .1em; }

/* ---------- Hero layout ---------- */
@media (min-width: 1024px) {
  .hero { grid-template-columns: minmax(0, 1fr) minmax(0, 520px); gap: 64px; }
  .hero__title { font-size: clamp(40px, 4.4vw, 68px); }
}
.hero__line { white-space: nowrap; }
.hero__side {
  display: none; position: absolute; left: 28px; bottom: 120px;
  writing-mode: vertical-rl; font-family: var(--en); font-size: 12px; letter-spacing: .3em; color: var(--gray);
}
@media (min-width: 1360px) { .hero__side { display: block; } }

/* ---------- Build animation（お話 → 設計 → 完成） ---------- */
.build { position: relative; width: 100%; max-width: 520px; justify-self: center; }
.js .build { opacity: 0; transform: translateY(24px); }
.is-loaded .build { opacity: 1; transform: none; transition: opacity 1.2s var(--ease) .5s, transform 1.2s var(--ease) .5s; }
.build__window {
  background: var(--white); border-radius: 10px; overflow: hidden;
  box-shadow: 0 2px 4px rgba(31, 29, 27, .04), 0 30px 60px -30px rgba(31, 29, 27, .35);
}
.build__bar { display: flex; align-items: center; gap: 6px; padding: 10px 14px; border-bottom: 1px solid #EEEAE4; }
.build__bar i { width: 8px; height: 8px; border-radius: 50%; background: var(--line); }
.build__bar span {
  margin-left: 12px; flex: 1; max-width: 220px; padding: 2px 12px; border-radius: 999px; background: var(--bg);
  font-family: var(--en); font-size: 12px; color: var(--gray); line-height: 1.6; letter-spacing: .04em;
}
.build__stage { position: relative; height: clamp(260px, 58vw, 340px); }

/* 1. お話 */
.build__talk { position: absolute; inset: 0; display: flex; flex-direction: column; justify-content: center; gap: 14px; padding: 24px; }
.bubble {
  max-width: 72%; padding: 12px 18px; border-radius: 18px; font-size: 13px; line-height: 1.7; letter-spacing: .04em;
  opacity: 0; transform: translateY(12px) scale(.96);
  transition: opacity .6s var(--ease), transform .6s var(--ease);
}
.bubble--l { align-self: flex-start; background: var(--bg-sub); border-bottom-left-radius: 4px; }
.bubble--r { align-self: flex-end; background: var(--ink); color: var(--bg); border-bottom-right-radius: 4px; }
.build[data-step="1"] .bubble { opacity: 1; transform: none; }
.build[data-step="1"] .bubble:nth-child(2) { transition-delay: .8s; }
.build[data-step="1"] .bubble:nth-child(3) { transition-delay: 1.6s; }

/* 2. 設計（ワイヤーフレーム） → 3. 完成 */
.build__site { position: absolute; inset: 0; padding: 18px 22px; display: grid; grid-template-rows: auto 1fr auto; gap: 16px; }
.build__site > * { opacity: 0; transform: translateY(10px); transition: opacity .5s var(--ease), transform .5s var(--ease); }
.build[data-step="2"] .build__site > *, .build[data-step="3"] .build__site > * { opacity: 1; transform: none; }
.build[data-step="2"] .mini-hero { transition-delay: .25s; }
.build[data-step="2"] .mini-cards { transition-delay: .5s; }

.build__site { --wire: #ECE7E0; }
.mini-nav { display: flex; align-items: center; gap: 10px; }
.mini-nav b {
  margin-right: auto; font-family: var(--en); font-size: 17px; font-weight: 500; letter-spacing: .06em;
  color: transparent; background: var(--wire); border-radius: 3px; transition: color .6s, background-color .6s;
}
.mini-nav span { width: 34px; height: 6px; border-radius: 3px; background: var(--wire); transition: background-color .6s; }
.mini-hero { display: grid; grid-template-columns: 1fr 1.15fr; gap: 16px; align-items: center; }
.mini-hero__text em {
  font-style: normal; font-family: var(--serif); font-size: clamp(15px, 3.6vw, 20px); line-height: 1.6; letter-spacing: .08em;
  color: transparent; background: var(--wire); border-radius: 3px; -webkit-box-decoration-break: clone; box-decoration-break: clone;
  transition: color .6s, background-color .6s;
}
.mini-hero__text span { display: block; margin-top: 14px; width: 78px; height: 22px; border-radius: 999px; background: var(--wire); transition: background-color .6s; }
.mini-hero__img {
  position: relative; height: 100%; min-height: 120px; border-radius: 6px; overflow: hidden; background: var(--wire);
  outline: 1px dashed transparent; transition: background-color .6s;
}
.mini-hero__img::before, .mini-hero__img::after { content: ""; position: absolute; opacity: 0; transition: opacity .9s var(--ease) .2s; }
.mini-hero__img::before { inset: 0; background: radial-gradient(circle at 72% 22%, #FFF6E6 0 14%, transparent 40%), linear-gradient(160deg, #D9BE9C 0%, #A98260 60%, #7E5D43 100%); }
.mini-hero__img::after {
  /* パンのシルエット */
  left: 18%; right: 18%; bottom: 16%; height: 34%; border-radius: 50% 50% 18% 18% / 70% 70% 30% 30%;
  background: linear-gradient(#E9C38E, #C08A52); box-shadow: inset 0 -6px 0 rgba(0, 0, 0, .08);
}
.mini-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.mini-cards div { position: relative; overflow: hidden; height: clamp(40px, 9vw, 58px); border-radius: 5px; background: var(--wire); transition: background-color .6s; }
.mini-cards div::after { content: ""; position: absolute; inset: 0 0 45% 0; opacity: 0; transition: opacity .6s .3s; }

.build[data-step="2"] .mini-hero__img { outline-color: var(--line); background: #F4F1EC; }
.build[data-step="3"] .mini-nav b { color: var(--ink); background: transparent; }
.build[data-step="3"] .mini-nav span { background: #D6CFC5; }
.build[data-step="3"] .mini-hero__text em { color: var(--ink); background: transparent; }
.build[data-step="3"] .mini-hero__text span { background: var(--accent); }
.build[data-step="3"] .mini-hero__img::before, .build[data-step="3"] .mini-hero__img::after { opacity: 1; }
.build[data-step="3"] .mini-cards div { background: #F6F3EE; }
.build[data-step="3"] .mini-cards div::after { opacity: 1; }
.mini-cards div:nth-child(1)::after { background: #E3CDB2; }
.mini-cards div:nth-child(2)::after { background: #D2B593; }
.mini-cards div:nth-child(3)::after { background: #C3A07C; }

.build__steps { margin-top: 20px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.build__steps li { position: relative; padding-top: 12px; font-size: 12px; letter-spacing: .08em; color: var(--gray); transition: color .5s; }
.build__steps li::before, .build__steps li::after { content: ""; position: absolute; left: 0; top: 0; height: 1px; }
.build__steps li::before { right: 0; background: var(--line); }
.build__steps li::after { width: 0; background: var(--accent); }
.build__steps span { display: block; font-family: var(--en); font-size: 14px; color: var(--accent); }
.build[data-step="1"] li:nth-child(1), .build[data-step="2"] li:nth-child(2), .build[data-step="3"] li:nth-child(3) { color: var(--ink); }
.build[data-step="1"] li:nth-child(1)::after,
.build[data-step="2"] li:nth-child(2)::after,
.build[data-step="3"] li:nth-child(3)::after { width: 100%; transition: width var(--dur, 3s) linear; }

/* ---------- Marquee ---------- */
.marquee { overflow: hidden; border-block: 1px solid var(--line); padding-block: clamp(14px, 2vw, 22px); }
.marquee__track { display: flex; width: max-content; animation: marquee 48s linear infinite; }
.marquee span {
  flex: none; padding-right: .4em; white-space: nowrap;
  font-family: var(--en); font-style: italic; font-size: clamp(36px, 6vw, 84px); line-height: 1.2; color: #CFC5B8; letter-spacing: .01em;
}
.marquee i { font-style: normal; color: var(--accent); margin-inline: .2em; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ---------- Worries ---------- */
.worries__title {
  text-align: center; font-family: var(--serif); font-weight: 500;
  font-size: clamp(26px, 4.4vw, 48px); line-height: 1.6; letter-spacing: .1em;
}
.worries__title span { display: inline-block; }
.worries__list { margin-top: clamp(48px, 7vw, 80px); display: grid; gap: 16px; }
@media (min-width: 640px) { .worries__list { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .worries__list { grid-template-columns: repeat(3, 1fr); gap: 20px; } }
.worries__list li {
  position: relative; padding: 28px 28px 28px 76px; background: var(--white); border-radius: 6px;
  font-size: 15px; line-height: 1.85; letter-spacing: .05em;
  border: 1px solid transparent; transition: border-color .4s var(--ease), transform .5s var(--ease), opacity 1s var(--ease);
}
.worries__list li:hover { border-color: var(--line); transform: translateY(-3px); }
.worries__num { position: absolute; left: 28px; top: 26px; font-family: var(--en); font-style: italic; font-size: 26px; line-height: 1; color: var(--accent); }
.worries__answer {
  position: relative; margin-top: 72px; padding: clamp(40px, 6vw, 72px) clamp(24px, 6vw, 72px);
  background: var(--ink); color: var(--bg); border-radius: 8px; text-align: center;
}
.worries__answer::before {
  /* お悩みから「答え」へつながる小さな三角 */
  content: ""; position: absolute; left: 50%; top: -12px; width: 24px; height: 24px; background: var(--ink);
  transform: translateX(-50%) rotate(45deg); border-radius: 3px;
}
.worries__answer-lead { font-family: var(--serif); font-size: clamp(20px, 3vw, 30px); line-height: 1.7; letter-spacing: .08em; }
.worries__answer p:not(.worries__answer-lead) { margin-top: 20px; font-size: 14px; color: #CFC8BF; }

/* ---------- Promise ---------- */
.promise { margin-top: 64px; }
.promise__title { font-family: var(--serif); font-size: 18px; letter-spacing: .14em; }
.promise__title span { display: block; font-family: var(--en); font-style: italic; font-size: 16px; color: var(--accent); letter-spacing: .06em; }
.promise__list { margin-top: 24px; display: grid; gap: 1px; background: var(--line); border-block: 1px solid var(--line); }
@media (min-width: 768px) { .promise__list { grid-template-columns: repeat(3, 1fr); } }
.promise__list li { background: var(--bg); padding: 28px 0; }
@media (min-width: 768px) { .promise__list li { padding: 32px 24px; } .promise__list li:first-child { padding-left: 0; } }
.promise__num { display: block; font-family: var(--en); font-size: 48px; line-height: 1; color: var(--accent); }
.promise__list h3 { margin-top: 16px; font-family: var(--serif); font-size: 17px; font-weight: 500; letter-spacing: .06em; }
.promise__list p { margin-top: 8px; font-size: 13px; color: var(--gray); line-height: 1.9; }

/* ---------- Sticky CTA（スマホ） ---------- */
.sticky-cta {
  position: fixed; left: 16px; right: 16px; bottom: 16px; z-index: 40;
  display: flex; align-items: center; justify-content: center; gap: 16px;
  padding: 18px 24px; border-radius: 999px; background: var(--ink); color: var(--bg);
  font-size: 14px; letter-spacing: .12em; line-height: 1;
  box-shadow: 0 16px 32px -12px rgba(31, 29, 27, .5);
  transform: translateY(160%); transition: transform .6s var(--ease);
}
.sticky-cta.is-shown { transform: none; }
@media (min-width: 961px) { .sticky-cta { display: none; } }

/* ---------- Section head：英字が下からせり上がる ---------- */
.js .section-head.reveal .section-head__en { clip-path: inset(0 0 100% 0); transform: translateY(30%); transition: clip-path 1.1s var(--ease) .1s, transform 1.1s var(--ease) .1s; }
.js .section-head.reveal.is-visible .section-head__en { clip-path: inset(-10% 0 -20% 0); transform: none; }

/* ---------- 実績詳細ページ ---------- */
.cs-hero { padding: calc(var(--header-h) + clamp(40px, 6vw, 80px)) 0 clamp(64px, 8vw, 104px); }
.cs-back a { font-size: 13px; letter-spacing: .1em; color: var(--gray); transition: color .3s; }
.cs-back a::before { content: "← "; font-family: var(--en); }
.cs-back a:hover { color: var(--ink); }
.cs-hero__num { margin-top: 40px; font-family: var(--en); font-style: italic; font-size: 20px; color: var(--accent); }
.cs-hero__cat { margin-top: 4px; font-size: 12px; letter-spacing: .16em; color: var(--gray); }
.cs-hero__title { margin-top: 12px; font-family: var(--serif); font-weight: 500; font-size: clamp(34px, 6vw, 72px); line-height: 1.35; letter-spacing: .06em; }
.cs-hero__kana { margin-top: 4px; font-family: var(--en); font-size: 16px; color: var(--gray); letter-spacing: .08em; }
.cs-hero__lead { margin-top: 28px; max-width: 36em; font-family: var(--serif); font-size: clamp(16px, 2vw, 19px); line-height: 2; letter-spacing: .06em; }
.cs-hero__note { margin-top: 12px; font-size: 12px; color: var(--gray); }
.cs-hero__visual { margin-top: clamp(48px, 7vw, 88px); }
.cs-hero__visual .case__visual { max-width: 1000px; margin-inline: auto; }
.cs-facts { margin-top: clamp(48px, 7vw, 80px); display: grid; grid-template-columns: repeat(2, 1fr); border-top: 1px solid var(--ink); }
@media (min-width: 768px) { .cs-facts { grid-template-columns: repeat(4, 1fr); } }
.cs-facts div { padding: 20px 0; border-bottom: 1px solid var(--line); }
.cs-facts dt { font-size: 11px; letter-spacing: .16em; color: var(--gray); }
.cs-facts dd { margin-top: 4px; font-family: var(--serif); font-size: 15px; letter-spacing: .06em; }

.cs-section { background: var(--bg-sub); }
.cs-grid { display: grid; gap: 20px 80px; padding-block: clamp(40px, 5vw, 56px); border-top: 1px solid var(--line); }
.cs-grid:first-child { border-top: 0; padding-top: 0; }
@media (min-width: 960px) { .cs-grid { grid-template-columns: 240px 1fr; } }
.cs-label { font-family: var(--serif); font-size: 18px; font-weight: 500; letter-spacing: .1em; }
.cs-label span { display: block; font-family: var(--en); font-style: italic; font-size: 15px; color: var(--accent); font-weight: 400; }
.cs-text { max-width: 40em; }
.cs-worry { margin: 0; max-width: 40em; padding: 28px 32px; background: var(--white); border-left: 2px solid var(--accent); border-radius: 0 6px 6px 0; }
.cs-worry p { font-family: var(--serif); font-size: clamp(16px, 2vw, 18px); line-height: 2; letter-spacing: .04em; }
.cs-ideas { display: grid; gap: 16px; }
.cs-ideas li { position: relative; padding: 28px 28px 28px 80px; background: var(--white); border-radius: 6px; }
.cs-idea__num { position: absolute; left: 28px; top: 24px; font-family: var(--en); font-size: 30px; line-height: 1; color: var(--accent); }
@media (max-width: 639px) {
  .cs-ideas li { padding: 24px; }
  .cs-idea__num { position: static; display: block; margin-bottom: 12px; font-size: 26px; }
}
.cs-ideas h3 { font-family: var(--serif); font-size: 17px; font-weight: 500; letter-spacing: .06em; }
.cs-ideas p { margin-top: 8px; font-size: 14px; color: var(--gray); line-height: 1.95; }
.cs-tech { margin-top: 0; }
.cs-visit { padding-top: 24px; text-align: center; }

.cs-next { border-bottom: 1px solid var(--line); }
.cs-next__link { display: grid; justify-items: center; gap: 6px; padding-block: clamp(64px, 9vw, 112px); text-align: center; }
.cs-next__label { font-family: var(--en); font-style: italic; font-size: 16px; color: var(--accent); }
.cs-next__title { font-family: var(--serif); font-size: clamp(26px, 4vw, 44px); letter-spacing: .06em; background: linear-gradient(currentColor, currentColor) 0 100% / 0 1px no-repeat; transition: background-size .6s var(--ease); }
.cs-next__link:hover .cs-next__title { background-size: 100% 1px; }
.cs-next__cat { font-size: 12px; letter-spacing: .14em; color: var(--gray); }

.cs-cta { padding-block: clamp(80px, 10vw, 128px); text-align: center; }
.cs-cta__lead { font-family: var(--serif); font-size: clamp(20px, 3vw, 30px); line-height: 1.8; letter-spacing: .08em; margin-bottom: 40px; }

/* ---------- 送信完了・404 ---------- */
.message {
  min-height: 100vh; min-height: 100svh; display: grid; place-content: center; justify-items: center; gap: 20px;
  padding: 48px var(--gutter); text-align: center;
}
.message__en { font-family: var(--en); font-style: italic; font-size: 18px; color: var(--accent); }
.message__title { font-family: var(--serif); font-weight: 500; font-size: clamp(26px, 4vw, 40px); letter-spacing: .1em; }
.message strong { font-weight: 500; color: var(--accent-dark); }
.message__note { font-size: 13px; color: var(--gray); }
.message__note a { border-bottom: 1px solid var(--line); }
.message .btn { margin-top: 20px; }

/* ---------- Reveal on scroll ---------- */
.js .reveal { opacity: 0; transform: translateY(24px); transition: opacity 1s var(--ease), transform 1s var(--ease); }
.js .reveal.is-visible { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .js .reveal, .js .hero__line > span { opacity: 1 !important; transform: none !important; }
  .js .hero__eyebrow, .js .hero__sub, .js .hero__lead, .js .hero__actions, .js .hero__scroll, .js .build { opacity: 1 !important; transform: none !important; }
  .js .section-head.reveal .section-head__en { clip-path: none !important; transform: none !important; }
}

/* 画面の高さが低いときは「Scroll」の表示を消す（ほかの要素と重ならないように） */
@media (max-height: 820px) { .hero__scroll { display: none; } }
