/* ===== 共通スタイル(白と黒のみ) ===== */
:root {
  --black: #111;
  --gray: #555;       /* 補助テキスト */
  --line: #d9d9d9;    /* 罫線 */
  --soft: #f6f6f6;    /* ごく薄い面 */
  --white: #fff;
  --serif: "Hiragino Mincho ProN", "Yu Mincho", "YuMincho", "Noto Serif JP", "MS PMincho", serif;
  --sans: "Hiragino Kaku Gothic ProN", "Yu Gothic", "YuGothic", "Meiryo", sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  display: flex; flex-direction: column; min-height: 100vh; /* 短いページでもフッターを下端に */
  margin: 0;
  background: var(--white);
  color: var(--black);
  font-family: var(--serif);
  font-size: 17px;
  line-height: 2;
  letter-spacing: .04em;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
:focus-visible { outline: 3px solid var(--black); outline-offset: 3px; }

.container { width: 100%; max-width: 760px; margin: 0 auto; padding: 0 24px; }
main { display: block; flex: 1 0 auto; }
section { padding: 40px 0; scroll-margin-top: 40px; }
section > :last-child { margin-bottom: 0; }
h1, h2, h3 { font-weight: 500; line-height: 1.6; margin: 0 0 24px; text-wrap: balance; }
h1 { font-size: clamp(1.45rem, 6.2vw, 1.7rem); letter-spacing: .12em; }
main ul:not([class]) { padding-left: 1.4em; margin: 0 0 24px; }
h1 span { display: inline-block; } /* 折り返すときは区切りのよい位置で */
h2 { font-size: 1.35rem; padding-bottom: 12px; border-bottom: 1px solid var(--black); }
h3 { font-size: 1.1rem; }
p { margin: 0 0 1.4em; }
p, li, dd { text-wrap: pretty; } /* 行末に1〜2文字だけ残さない */

/* 日本語の改行:語句の途中では折り返さず、句読点や <wbr> の位置で改行する */
body { word-break: keep-all; overflow-wrap: anywhere; }
@supports (word-break: auto-phrase) { body { word-break: auto-phrase; } }
.nw { white-space: nowrap; } /* 短い語句を分けない */
.lead { font-size: 1.05rem; }
.note { font-size: .9rem; color: var(--gray); line-height: 1.9; }
.center { text-align: center; }
.center, .hero-text, .page-title { text-wrap: balance; }

/* ページ見出し */
.page-title { padding: 48px 0 0; text-align: center; }
.page-title h1 { margin-bottom: 16px; }
.page-title p { color: var(--gray); margin: 0; }
.page-title + section { padding-top: 32px; }

/* ===== ヘッダー ===== */
.site-header { border-bottom: 1px solid var(--line); background: var(--white); position: sticky; top: 0; z-index: 10; }
.header-inner { display: flex; align-items: center; justify-content: space-between; min-height: 68px; padding: 0 16px 0 24px; max-width: 1000px; margin: 0 auto; }
.logo { font-size: clamp(1rem, 4.4vw, 1.25rem); letter-spacing: .14em; text-decoration: none; font-weight: 500; white-space: nowrap; }
.menu-btn {
  font-family: var(--sans); font-size: 1rem; background: var(--white); color: var(--black);
  border: 1px solid var(--black); padding: 10px 16px; min-height: 48px; cursor: pointer;
}
.site-nav { display: none; border-top: 1px solid var(--line); }
.site-nav.open { display: block; }
.site-nav ul { list-style: none; margin: 0; padding: 0; }
.site-nav a {
  display: block; padding: 18px 24px; text-decoration: none; font-family: var(--sans);
  border-bottom: 1px solid var(--line); font-size: 1.05rem;
}
.site-nav a[aria-current="page"] { font-weight: 700; background: var(--soft); border-left: 4px solid var(--black); }

@media (min-width: 840px) {
  .logo { letter-spacing: .2em; }
  .menu-btn { display: none; }
  .site-nav { display: block; border: 0; }
  .site-nav ul { display: flex; gap: 4px; }
  .site-nav a { border: 0; padding: 8px 14px; font-size: .95rem; border-bottom: 2px solid transparent; }
  .site-nav a[aria-current="page"] { background: none; border-left: 0; border-bottom-color: var(--black); }
  .site-nav a:hover { border-bottom-color: var(--gray); }
}

/* ===== ボタン ===== */
.btn {
  display: block; text-align: center; text-decoration: none; font-family: var(--sans);
  font-size: 1.1rem; padding: 20px 24px; margin-bottom: 16px; min-height: 64px;
  background: var(--black); color: var(--white); border: 2px solid var(--black);
}
.btn:hover { background: var(--white); color: var(--black); }
.btn.sub { background: var(--white); color: var(--black); }
.btn.sub:hover { background: var(--black); color: var(--white); }
.btn small { display: block; font-size: .8rem; opacity: .8; }

/* ===== ヒーロー・画像プレースホルダー ===== */
.hero { padding: 0; }
.ph {
  background: var(--soft); border: 1px solid var(--line); color: var(--gray);
  display: flex; align-items: center; justify-content: center; font-family: var(--sans);
  font-size: .9rem; text-align: center; aspect-ratio: 4 / 3; width: 100%;
}
.ph.wide { aspect-ratio: 16 / 9; }
.ph-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin: 32px 0; }
.ph-row .ph { aspect-ratio: 1 / 1; }

.hero-text { text-align: center; padding: 40px 0 8px; }
.hero-text h1.hero-title { background: var(--black); color: var(--white); padding: 32px 12px; margin-bottom: 28px; letter-spacing: .06em; }
@media (min-width: 840px) { .hero-text h1.hero-title { letter-spacing: .12em; } }
.hero-text .lead { margin-bottom: 0; }

/* 準備中の表示 */
.coming { font-size: 1.5rem; letter-spacing: .3em; text-align: center; margin: 8px 0 20px; }

/* 強調ボックス */
.box { border: 1px solid var(--black); padding: 24px; margin: 32px 0; }
.box.strong { background: var(--black); color: var(--white); text-align: center; font-size: 1.15rem; font-family: var(--sans); font-weight: 700; }
.box h3 { margin-bottom: 12px; }
.box p:last-child { margin-bottom: 0; }

/* ===== 部門(お仕立て/お直し) ===== */
.dept-group { display: grid; gap: 24px; margin: 32px 0; }
.dept { border: 1px solid var(--black); padding: 24px 16px; display: flex; flex-direction: column; letter-spacing: 0; text-wrap: pretty; }
.dept-label { display: inline-block; align-self: flex-start; background: var(--black); color: var(--white); font-family: var(--sans); font-weight: 700; padding: 4px 14px; margin-bottom: 16px; letter-spacing: .15em; }
.dept h3 { margin-bottom: 16px; }
.dept .btn { margin: auto 0 0; }
@media (min-width: 840px) { .dept-group { grid-template-columns: 1fr 1fr; gap: 16px; } }

/* ===== 料金表 ===== */
.table-wrap { overflow-x: auto; margin: 24px 0 16px; }
table { width: 100%; border-collapse: collapse; font-family: var(--sans); font-size: .98rem; line-height: 1.7; }
th, td { border: 1px solid var(--line); padding: 14px 12px; text-align: left; vertical-align: top; }
thead th { background: var(--black); color: var(--white); font-weight: 500; }
tbody th { font-weight: 500; background: var(--soft); width: 44%; }
td.price { white-space: nowrap; }
tr.group th { background: var(--black); color: var(--white); text-align: left; font-weight: 500; }
td small { display: block; color: var(--gray); }

@media (max-width: 560px) {
  /* スマホでは1項目を縦に積んで読みやすく */
  table, tbody, tr, th, td { display: block; width: 100%; }
  thead { display: none; }
  tr { margin-bottom: 14px; border: 1px solid var(--line); }
  th, td { border: 0; }
  tbody th { width: 100%; }
  td.price { white-space: normal; }
  td.price::before { content: "料金:"; margin-right: .5em; color: var(--gray); }
  tr.group { border: 0; margin: 28px 0 8px; }
}

/* ===== 流れ(番号付きステップ) ===== */
.steps { list-style: none; counter-reset: step; margin: 0 0 24px; padding: 0; }
.steps li { counter-increment: step; position: relative; padding: 0 0 20px 56px; }
.steps li::before {
  content: counter(step); position: absolute; left: 0; top: 4px;
  width: 40px; height: 40px; border-radius: 50%; background: var(--black); color: var(--white);
  font-family: var(--sans); display: flex; align-items: center; justify-content: center; font-size: 1.05rem;
}
.steps li:not(:last-child)::after { content: ""; position: absolute; left: 19px; top: 48px; bottom: 0; border-left: 1px solid var(--line); }
.steps strong { display: block; font-weight: 500; font-size: 1.1rem; font-family: var(--sans); }
.steps span { display: block; color: var(--gray); line-height: 1.8; font-size: .95rem; }

/* スキップリンク(キーボード操作用) */
.skip-link { position: absolute; left: -999px; top: 8px; background: var(--black); color: var(--white); padding: 12px 16px; z-index: 100; }
.skip-link:focus { left: 8px; }

/* ===== フォーム埋め込み ===== */
.form-frame { width: 100%; height: 760px; border: 1px solid var(--line); background: var(--soft); }

/* 連絡先リスト */
.contact-list { list-style: none; padding: 0; margin: 0; }
.contact-list li { margin-bottom: 16px; }

/* ===== フッター ===== */
.site-footer { background: var(--black); color: var(--white); padding: 48px 0 32px; margin-top: 40px; font-size: .95rem; }
.site-footer h2 { font-size: 1rem; border: 0; padding: 0; margin: 0 0 6px; letter-spacing: .15em; }
.footer-info { margin: 0 0 24px; }
.footer-info p { margin: 0 0 16px; }
.site-footer a { color: var(--white); }
.footer-line { display: inline-block; border: 1px solid var(--white); padding: 12px 20px; text-decoration: none; font-family: var(--sans); }
.footer-line:hover { background: var(--white); color: var(--black); }
.copy { font-size: .8rem; opacity: .7; margin: 32px 0 0; }

@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

@media print {
  .site-header, .site-footer, .btn, .form-frame { display: none; }
  body { font-size: 12pt; }
}

@media (min-width: 840px) {
  body { font-size: 18px; }
  .btn-group { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
  .btn-group .btn { margin: 0; }
}
