/* =============================================================
   MUSE WORKS 営業用サイト
   デザインの手本: design/comp/hero-c.png と design/comp2/*.png（codex の見本をトレース）
   温かい生成りの地・明朝の見出し・英字はセリフ・細い罫線。ライト表示だけに固定（意図的）
   ============================================================= */

:root {
  --paper: #FAF8F5;        /* ページの地（生成り） */
  --white: #FFFFFF;
  --wash: #F2EEE9;         /* 帯の地（グレージュ） */
  --ink: #2E2A27;
  --ink-2: #6B645E;
  --line: #DDD6CE;
  --accent: #A3605A;       /* テラコッタ寄りのローズ（2026-10-01 トーンを上げた）。白い文字とのコントラスト 4.8 */
  --accent-dark: #86493F;
  --accent-soft: #F1E4E0;

  --serif: "Shippori Mincho", "Hiragino Mincho ProN", "Yu Mincho", serif;
  --latin: "Cormorant Garamond", "Shippori Mincho", serif;
  --sans: "Zen Kaku Gothic New", "Hiragino Sans", "Noto Sans JP", sans-serif;

  --gutter: 20px;
  --max: 1120px;
  --section-y: 72px;

  color-scheme: light;
}
@media (min-width: 896px) {
  :root { --gutter: 40px; --section-y: 104px; }
}

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

html { scroll-behavior: smooth; scroll-padding-top: 72px; overflow-x: clip; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; }
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.9;
  letter-spacing: 0.02em;
  -webkit-font-smoothing: antialiased;
  line-break: strict;
}

/* 日本語の改行は文節で（~/coding/amie/web/app/styles/base.css と同じ） */
p, li, dd, dt, summary { word-break: auto-phrase; text-wrap: pretty; overflow-wrap: anywhere; }
h1, h2, h3 { word-break: auto-phrase; text-wrap: balance; overflow-wrap: anywhere; }
h2 { word-break: keep-all; }

img { display: block; max-width: 100%; height: auto; }
figure { margin: 0; }
a { color: var(--accent); text-underline-offset: 0.2em; }
a:hover { color: var(--accent-dark); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
p { margin: 0; }

h1, h2, h3 { font-family: var(--serif); font-weight: 500; color: var(--ink); margin: 0; letter-spacing: 0.06em; }
h2 { font-size: clamp(26px, 6.4vw, 38px); line-height: 1.55; }
/* 見出しの下の短い罫線（見本どおり） */
h2::after { content: ""; display: block; width: 28px; height: 1px; background: var(--ink); margin-top: 18px; opacity: .6; }
h3 { font-size: 18px; line-height: 1.7; }

.en { font-family: var(--latin); letter-spacing: 0.04em; }
.cap { font-family: var(--latin); font-weight: 500; font-size: 19px; letter-spacing: 0.04em; color: var(--ink); margin-bottom: 6px; }
.lead { color: var(--ink-2); margin-top: 20px; max-width: 30em; font-size: 15px; }

/* ---------- ボタン ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 48px; padding: 0 28px;
  border-radius: 2px;
  background: var(--accent); color: #fff;
  font-family: var(--serif); font-weight: 500; font-size: 15px; letter-spacing: 0.1em;
  text-decoration: none;
  transition: background-color .2s ease, color .2s ease;
}
.btn:hover { background: var(--accent-dark); color: #fff; }
.btn--small { min-height: 40px; padding: 0 20px; font-size: 13px; }
.btn--ghost { background: transparent; color: var(--accent-dark); border: 1px solid var(--accent); padding-right: 40px; position: relative; }
.btn--ghost::after { content: ""; position: absolute; right: 18px; top: 50%; width: 7px; height: 7px; margin-top: -4px; border-top: 1px solid currentColor; border-right: 1px solid currentColor; transform: rotate(45deg); }
.btn--ghost:hover { background: var(--accent-dark); border-color: var(--accent-dark); color: #fff; }

/* ---------- ヘッダー ---------- */
.site-header { position: sticky; top: 0; z-index: 10; background: rgba(250, 248, 245, 0.95); backdrop-filter: blur(8px); }
.site-header__inner {
  max-width: var(--max); margin: 0 auto; padding: 14px var(--gutter);
  display: flex; align-items: center; gap: 24px;
  border-bottom: 1px solid var(--line);
}
.brand { display: inline-flex; margin-right: auto; }
.brand img { height: 20px; width: auto; }
.gnav { display: none; }
@media (min-width: 1000px) {
  .brand img { height: 22px; }
  .gnav { display: flex; }
  .gnav a { color: var(--ink); text-decoration: none; font-size: 13px; letter-spacing: 0.08em; padding: 0 18px; line-height: 1; }
  .gnav a + a { border-left: 1px solid var(--line); }
  .gnav a:hover { color: var(--accent); }
}

/* ---------- ファーストビュー（写真のコラージュ＋縦書きの見出し） ---------- */
.hero {
  max-width: var(--max); margin: 0 auto;
  padding: 20px var(--gutter) 40px;
  display: grid; gap: 32px;
}
.hero__collage { display: grid; grid-template-columns: 1.15fr 1fr; grid-template-rows: 1fr 1fr; gap: 8px; }
.hero__photo { overflow: hidden; }
.hero__photo img { width: 100%; height: 100%; object-fit: cover; }
.hero__photo--main { grid-row: 1 / 3; }
.hero__photo--main img { aspect-ratio: 3 / 4; }

.hero__title { font-size: clamp(28px, 7.6vw, 56px); line-height: 1.5; letter-spacing: 0.06em; font-weight: 500; word-break: keep-all; }
.hero__caption { margin-top: 20px; padding-top: 16px; border-top: 1px solid var(--ink); width: fit-content; font-family: var(--serif); font-size: 13px; letter-spacing: 0.1em; color: var(--ink-2); }
.hero__caption .en { display: block; font-size: 15px; color: var(--ink); }

@media (min-width: 896px) {
  .hero { grid-template-columns: 1fr 260px; gap: 48px; padding-top: 24px; align-items: stretch; }
  .hero__collage { grid-template-columns: 1.1fr 1fr; gap: 10px; }
  .hero__photo--main img { aspect-ratio: 4 / 5; }
  /* 見出しは縦書き（見本どおり） */
  .hero__copy { display: flex; flex-direction: column; justify-content: space-between; align-items: flex-start; padding: 24px 0 8px; }
  .hero__title { writing-mode: vertical-rl; font-size: clamp(44px, 4.6vw, 60px); line-height: 1.7; letter-spacing: 0.14em; align-self: center; height: max-content; }
  .hero__caption { border-top: 0; padding-top: 0; }
  .hero__caption::before { content: ""; display: block; width: 28px; height: 1px; background: var(--ink); opacity: .6; margin-bottom: 14px; }
}

/* ---------- 入口のカード ---------- */
.doors { max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter); display: grid; gap: 12px; }
.door {
  position: relative; display: grid; grid-template-columns: 96px 1fr; align-items: center; gap: 16px;
  padding: 12px 44px 12px 12px;
  border: 1px solid var(--line); background: var(--white);
  color: var(--ink); text-decoration: none;
  transition: border-color .2s ease;
}
.door:hover { border-color: var(--accent); color: var(--ink); }
.door__thumb { width: 96px; height: 96px; object-fit: cover; }
.door__body { display: grid; gap: 2px; }
.door__en { font-family: var(--latin); font-size: 19px; line-height: 1.2; }
.door__title { font-family: var(--serif); font-size: 15px; letter-spacing: 0.06em; }
.door__title::after { content: ""; display: block; width: 20px; height: 1px; background: var(--ink); opacity: .5; margin: 8px 0 6px; }
.door__text { font-size: 12px; color: var(--ink-2); line-height: 1.7; word-break: auto-phrase; text-wrap: pretty; }
.door__arrow { position: absolute; right: 18px; top: 50%; width: 9px; height: 9px; margin-top: -5px; border-top: 1px solid var(--ink); border-right: 1px solid var(--ink); transform: rotate(45deg); }
@media (min-width: 640px) {
  .doors { grid-template-columns: 1fr 1fr; gap: 20px; }
}
@media (min-width: 896px) {
  .door { grid-template-columns: 170px 1fr; gap: 28px; padding: 12px 56px 12px 12px; }
  .door__thumb { width: 170px; height: 104px; }
  .door__en { font-size: 24px; }
  .door__title { font-size: 16px; }
  .door__text { font-size: 13px; }
}

/* ---------- セクション共通 ---------- */
.section { max-width: var(--max); margin: 0 auto; padding: var(--section-y) var(--gutter); }
.section--wash {
  max-width: none;
  background: var(--wash);
  padding-inline: max(var(--gutter), calc((100% - var(--max)) / 2 + var(--gutter)));
}

/* 見出し＋写真の横並び */
.split { display: grid; gap: 32px; margin-bottom: 48px; }
.split__photo img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; }
@media (min-width: 896px) {
  .split { grid-template-columns: 5fr 7fr; gap: 56px; align-items: center; margin-bottom: 56px; }
  .split h2 { font-size: clamp(28px, 2.7vw, 36px); }
  .split__photo--wide img { aspect-ratio: 16 / 7; }
  .split--business { grid-template-columns: 5fr 6fr; margin-bottom: 0; }
  .split--business .split__photo img { aspect-ratio: 16 / 9; }
}

/* ---------- Service：工程・対応品目・特長 ---------- */
.process { list-style: none; margin: 0 0 40px; padding: 0; display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px 12px; }
.process li { display: flex; align-items: center; gap: 12px; font-family: var(--serif); font-size: 17px; letter-spacing: 0.06em; }
.num {
  flex: none; display: inline-grid; place-items: center;
  width: 44px; height: 44px; border-radius: 50%;
  border: 1px solid var(--line); background: var(--white);
  font-family: var(--latin); font-size: 16px; color: var(--ink-2); letter-spacing: 0.04em; line-height: 1;
  font-variant-numeric: lining-nums tabular-nums;
}
@media (min-width: 896px) {
  .process { display: flex; justify-content: space-between; align-items: center; gap: 0; }
  .process li { font-size: 18px; }
  /* 工程のあいだの矢印 */
  .process li + li::before { content: "→"; font-family: var(--sans); color: var(--ink-2); opacity: .6; margin-right: 18px; font-size: 18px; }
  .num { width: 52px; height: 52px; font-size: 17px; }
}

.lineup { margin-bottom: 48px; }
.lineup__title { font-family: var(--serif); font-size: 18px; font-weight: 500; margin-bottom: 16px; }
.lineup__title::after { content: ""; display: block; width: 20px; height: 1px; background: var(--ink); opacity: .5; margin-top: 8px; }
.lineup__grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px 12px; }
.lineup__item { display: grid; gap: 2px; align-content: start; min-width: 0; }
.lineup__item img { width: 100%; aspect-ratio: 1 / 1; object-fit: cover; margin-bottom: 8px; background: var(--wash); }
.lineup__name { font-family: var(--serif); font-size: 16px; letter-spacing: 0.06em; }
.lineup__eg { font-size: 12px; color: var(--ink-2); line-height: 1.6; }
/* 8枚目：写真なしの「そのほか」 */
.lineup__item--more { background: var(--wash); border: 1px solid var(--line); aspect-ratio: 1 / 1; place-content: center; text-align: center; padding: 16px; }
.lineup__note { margin-top: 12px; font-size: 12px; color: var(--ink-2); }
@media (min-width: 896px) {
  .lineup__grid { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 28px 20px; }
  .lineup__name { font-size: 17px; }
  .lineup__eg { font-size: 13px; }
}

.features { list-style: none; margin: 0; padding: 0; display: grid; gap: 0; }
.features li { display: grid; grid-template-columns: 52px 1fr; column-gap: 16px; padding: 22px 0; border-top: 1px solid var(--line); }
.features li:last-child { border-bottom: 1px solid var(--line); }
.features__icon { grid-row: 1 / 3; width: 52px; height: 52px; border-radius: 50%; background: var(--accent-soft); display: grid; place-items: center; }
.features__icon svg { width: 22px; height: 22px; fill: none; stroke: var(--ink); stroke-width: 1.3; stroke-linecap: round; stroke-linejoin: round; }
.features h3 { font-size: 17px; font-weight: 500; }
.features h3::after { content: ""; display: block; width: 20px; height: 1px; background: var(--ink); opacity: .4; margin: 8px 0; }
.features p { font-size: 14px; color: var(--ink-2); }
@media (min-width: 896px) {
  .features { grid-template-columns: repeat(3, 1fr); }
  .features li { grid-template-columns: 60px 1fr; padding: 8px 28px; border-top: 0; }
  .features li:last-child { border-bottom: 0; }
  .features li + li { border-left: 1px solid var(--line); }
  .features__icon { width: 60px; height: 60px; }
}

/* ---------- For Creators ---------- */
.promises { list-style: none; margin: 0 0 40px; padding: 0; display: grid; gap: 10px; }
.promises li {
  position: relative; padding: 16px 18px 16px 60px;
  background: var(--white); border: 1px solid var(--line);
  font-family: var(--serif); font-size: 15px; letter-spacing: 0.04em; line-height: 1.7;
}
.promises li::before { content: ""; position: absolute; left: 18px; top: 50%; width: 28px; height: 28px; margin-top: -14px; border-radius: 50%; background: var(--accent-soft); }
.promises li::after { content: ""; position: absolute; left: 27px; top: 50%; width: 9px; height: 5px; margin-top: -4px; border-left: 1.4px solid var(--accent); border-bottom: 1.4px solid var(--accent); transform: rotate(-45deg); }
@media (min-width: 896px) {
  .promises { grid-template-columns: 1fr 1fr; gap: 12px; }
  .promises li { padding: 18px 20px 18px 64px; }
}

.facts { margin: 0 0 48px; display: grid; gap: 0; }
.facts__item { padding: 20px 0; text-align: center; }
.facts__item + .facts__item { border-top: 1px solid var(--line); }
.facts dt { font-family: var(--serif); font-size: 13px; color: var(--ink-2); letter-spacing: 0.08em; }
.facts dt::after { content: ""; display: block; width: 20px; height: 1px; background: var(--ink); opacity: .4; margin: 8px auto 10px; }
.facts dd { margin: 0; font-size: 13px; color: var(--ink-2); }
.facts dd strong { display: block; font-family: var(--serif); font-weight: 500; font-size: 22px; color: var(--ink); margin-bottom: 4px; letter-spacing: 0.06em; }
.facts .big { font-family: var(--serif); font-size: 46px; line-height: 1; color: var(--accent); margin-right: 4px; }
@media (min-width: 896px) {
  .facts { grid-template-columns: repeat(3, 1fr); }
  .facts__item + .facts__item { border-top: 0; border-left: 1px solid var(--line); }
  .facts__item { padding: 4px 24px; }
}

/* 進め方（実際の順番なので番号を付ける） */
.steps { list-style: none; margin: 0 0 48px; padding: 0; display: grid; gap: 0; }
.steps li { position: relative; display: grid; grid-template-columns: 44px 1fr; column-gap: 14px; align-items: center; padding: 8px 0; font-family: var(--serif); font-size: 15px; letter-spacing: 0.04em; }
.steps li .num { grid-row: 1 / 3; width: 36px; height: 36px; font-size: 14px; background: var(--accent-soft); border-color: transparent; color: var(--ink); }
.steps small { grid-column: 2; display: block; font-family: var(--sans); font-size: 12px; color: var(--ink-2); line-height: 1.6; }
.steps li:not(:last-child)::after { content: ""; position: absolute; left: 18px; top: 44px; bottom: -8px; width: 1px; background: var(--line); }
@media (min-width: 896px) {
  .steps { grid-template-columns: repeat(6, 1fr); gap: 0; }
  .steps li { grid-template-columns: 1fr; justify-items: center; text-align: center; row-gap: 10px; padding: 0 4px; align-content: start; }
  .steps li .num { grid-row: auto; width: 40px; height: 40px; }
  .steps small { grid-column: auto; }
  .steps li:not(:last-child)::after { left: calc(50% + 28px); right: calc(-50% + 28px); top: 20px; bottom: auto; width: auto; height: 1px; background: var(--ink-2); opacity: .35; }
  .steps--compact { grid-template-columns: repeat(5, 1fr); margin-bottom: 32px; }
}
.steps--compact li .num { background: transparent; border-color: var(--ink-2); font-family: var(--latin); }

/* ---------- よくある質問 ---------- */
.faq { border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { list-style: none; cursor: pointer; padding: 18px 44px 18px 8px; position: relative; font-family: var(--serif); font-size: 15px; letter-spacing: 0.04em; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::before, .faq summary::after { content: ""; position: absolute; right: 12px; top: 50%; width: 16px; height: 1px; background: var(--ink); transition: transform .2s ease; }
.faq summary::after { transform: rotate(90deg); }
.faq details[open] summary::after { transform: rotate(0deg); }
.faq details p { padding: 0 8px 20px; color: var(--ink-2); font-size: 14px; }

/* ---------- For Business ---------- */
.split--business .lead { margin-bottom: 28px; }

/* ---------- 運営について＋ご相談 ---------- */
.closing { display: grid; gap: 48px; }
.closing h2 { margin-bottom: 28px; }
.company { margin: 0; border-top: 1px solid var(--ink-2); }
.company > div { display: grid; grid-template-columns: 7.5em 1fr; border-bottom: 1px solid var(--line); }
.company dt { font-family: var(--serif); font-size: 14px; padding: 14px 12px; border-right: 1px solid var(--line); }
.company dd { margin: 0; font-family: var(--serif); font-size: 14px; padding: 14px 16px; }
.closing__contact { background: var(--white); padding: 28px 20px; align-self: start; }
.closing__contact .message { font-family: var(--serif); font-size: 14px; line-height: 2; color: var(--ink-2); }
.closing__contact .message::after { content: ""; display: block; width: 20px; height: 1px; background: var(--ink); opacity: .4; margin: 14px 0 10px; }
.closing__contact h3 { font-size: 22px; font-weight: 500; letter-spacing: 0.08em; margin-bottom: 10px; }
.contact__note { font-size: 13px; color: var(--ink-2); margin-bottom: 20px; }
.contact__note strong { color: var(--ink); font-weight: 500; }
@media (min-width: 896px) {
  .closing { grid-template-columns: 1fr 1fr; gap: 56px; }
  .closing__contact { padding: 32px 36px; }
}

/* ---------- 相談フォーム ---------- */
.form { display: grid; gap: 12px; }
.form__row { display: grid; gap: 6px; }
.form__row > label, .form__kind legend { font-family: var(--serif); font-size: 13px; color: var(--ink); letter-spacing: 0.04em; }
.form__kind { border: 0; margin: 0; padding: 0; min-width: 0; display: block; }
.form__kind legend { padding: 0; margin-bottom: 6px; float: left; width: 100%; }
.form__choices { clear: both; display: flex; flex-wrap: wrap; gap: 6px 24px; }
.form__choices label { display: inline-flex; align-items: center; gap: 6px; font-family: var(--serif); font-size: 14px; cursor: pointer; }
.form__opt { white-space: nowrap; margin-left: 6px; font-family: var(--sans); font-size: 11px; color: var(--ink-2); border: 1px solid var(--line); border-radius: 3px; padding: 0 5px; }
.form input[type="text"], .form input[type="email"], .form textarea {
  font: inherit; font-size: 16px; color: var(--ink);
  width: 100%; padding: 9px 12px;
  border: 1px solid var(--line); border-radius: 0; background: var(--white);
}
.form input:focus-visible, .form textarea:focus-visible { outline: 2px solid var(--accent); outline-offset: 1px; border-color: var(--accent); }
.form textarea { resize: vertical; min-height: 100px; }
.form input[type="radio"], .form input[type="checkbox"] { accent-color: var(--accent); width: 16px; height: 16px; margin: 0; }
.form__agree { display: flex; align-items: center; gap: 8px; font-size: 13px; }
.form__turnstile { min-height: 65px; }
.form__submit { width: 100%; border: 0; cursor: pointer; margin-top: 4px; }
.form__submit:disabled { opacity: .6; cursor: default; }
.form__status { font-size: 13px; color: var(--accent-dark); min-height: 1.4em; }
.form__done { font-family: var(--serif); font-size: 16px; line-height: 1.9; padding: 12px 0; }
.form__trap { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
@media (min-width: 640px) {
  .form__row { grid-template-columns: 10.5em 1fr; align-items: center; gap: 12px; }
  .form__row > label { white-space: nowrap; }
  .form__row:has(textarea) > label { align-self: start; padding-top: 8px; }
  .form__kind legend { width: 10.5em; margin: 0 12px 0 0; }
  .form__choices { clear: none; min-height: 28px; align-items: center; }
  .form__row--end > * { grid-column: 2; }
}

/* ---------- フッター ---------- */
.site-footer { background: var(--paper); }
.site-footer__inner {
  max-width: var(--max); margin: 0 auto; padding: 28px var(--gutter) 36px;
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 24px;
  font-size: 12px; color: var(--ink-2);
}
.site-footer__brand { display: flex; align-items: center; gap: 14px; }
.site-footer__brand .en { text-transform: uppercase; font-size: 11px; letter-spacing: 0.14em; padding-left: 14px; border-left: 1px solid var(--line); }
.footer-logo { height: 15px; width: auto; }
.site-footer__tagline { font-family: var(--serif); letter-spacing: 0.1em; display: flex; align-items: center; gap: 12px; }
.site-footer__tagline::before { content: ""; width: 28px; height: 1px; background: var(--ink-2); }
.site-footer a { color: var(--ink-2); }
.site-footer small { font-size: 11px; }
.site-footer__note { font-size: 11px; width: 100%; order: 10; }

/* ---------- プライバシーポリシーなどの文書ページ ---------- */
.doc { max-width: 760px; margin: 0 auto; padding: 56px var(--gutter) var(--section-y); }
.doc h1 { font-size: clamp(24px, 6vw, 32px); margin-bottom: 24px; }
.doc h2 { font-size: 19px; margin: 44px 0 12px; }
.doc h2::after { display: none; }
.doc p, .doc li { font-size: 15px; }
.doc p + p { margin-top: 0.8em; }
.doc ul, .doc ol { padding-left: 1.4em; margin: 8px 0 0; }
.doc li + li { margin-top: 4px; }
.doc .meta { margin-top: 48px; color: var(--ink-2); font-size: 13px; }
