/* =========================================================
   みせのともし  —  共通スタイル
   色はすべてここで定義（本文の文字色は背景とのコントラスト比 4.5:1 以上を確認済み）
   ========================================================= */
:root {
  --bg: #faf7f1;          /* 生成り */
  --bg-2: #f3ede3;        /* 少し濃い生成り（区切り用） */
  --surface: #ffffff;
  --text: #2a2420;        /* 14.3:1 on --bg */
  --muted: #5c5249;       /* 7.1:1 on --bg / 6.5:1 on --bg-2 */
  --accent: #ad5216;      /* 灯りの橙 4.9:1 on --bg / 白文字 5.3:1 */
  --accent-deep: #8f4210;
  --accent-soft: #f5e6d6;
  --line: #e6ddcf;
  --night: #2a2420;

  --serif: "Noto Serif JP", "Hiragino Mincho ProN", "Yu Mincho", serif;
  --sans: "Noto Sans JP", "Hiragino Sans", "Yu Gothic UI", "Meiryo", sans-serif;

  --wrap: 1080px;
  --radius: 10px;
  --header-h: 64px;
  --bar-h: 64px;
}

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

html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 12px); -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.9;
  letter-spacing: 0.04em;
  line-break: strict;
  word-break: auto-phrase;   /* 文節で折り返す（Chrome/Edge）。Safari等は .nb で主要な箇所を守る */
  overflow-wrap: anywhere;
  -webkit-font-smoothing: antialiased;
}
img, svg { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
p { margin: 0 0 1em; }

/* 日本語の改行：文節で折り返す（対応ブラウザ）＋ .nb で意図した区切りを守る（全ブラウザ） */
h1, h2, h3, .catch, .lead, .phrase { word-break: auto-phrase; text-wrap: balance; }
.nb { display: inline-block; }
br.pc { display: none; }
@media (min-width: 900px) { br.pc { display: inline; } }

.wrap { width: min(100% - 40px, var(--wrap)); margin-inline: auto; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 4px; }

/* ---------- ヘッダー ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  border-bottom: 1px solid transparent;
  transition: border-color .3s;
}
/* 背景のぼかしは疑似要素にかける（ヘッダー本体にかけると、固定配置のスマホメニューがヘッダー内に閉じ込められるため） */
.site-header::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: rgba(250, 247, 241, 0.94);
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
}
.site-header.scrolled { border-bottom-color: var(--line); }
.header-inner { display: flex; align-items: center; justify-content: space-between; height: var(--header-h); }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; font-family: var(--serif); font-weight: 600; font-size: 19px; letter-spacing: 0.12em; }
.brand svg { width: 26px; height: 26px; }

.gnav ul { list-style: none; margin: 0; padding: 0; }
.gnav a { text-decoration: none; }

.menu-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  height: 44px; padding: 0 4px 0 12px;
  background: none; border: 0; color: var(--text); font: inherit; font-size: 13px; cursor: pointer;
}
.menu-btn .bars { position: relative; width: 22px; height: 14px; }
.menu-btn .bars span { position: absolute; left: 0; width: 100%; height: 1.5px; background: currentColor; transition: transform .3s, opacity .3s, top .3s; }
.menu-btn .bars span:nth-child(1) { top: 0; }
.menu-btn .bars span:nth-child(2) { top: 6px; }
.menu-btn .bars span:nth-child(3) { top: 12px; }
.menu-btn[aria-expanded="true"] .bars span:nth-child(1) { top: 6px; transform: rotate(45deg); }
.menu-btn[aria-expanded="true"] .bars span:nth-child(2) { opacity: 0; }
.menu-btn[aria-expanded="true"] .bars span:nth-child(3) { top: 6px; transform: rotate(-45deg); }

/* スマホ：ハンバーガーで開くパネル */
@media (max-width: 899px) {
  .gnav {
    position: fixed; inset: var(--header-h) 0 0 0;
    background: var(--bg);
    padding: 16px 20px calc(var(--bar-h) + 24px);
    overflow-y: auto;
    visibility: hidden; opacity: 0; transform: translateY(-8px);
    transition: opacity .25s, transform .25s, visibility 0s .25s;
  }
  .gnav.open { visibility: visible; opacity: 1; transform: none; transition: opacity .25s, transform .25s; }
  .gnav li { border-bottom: 1px solid var(--line); }
  .gnav a { display: block; padding: 16px 4px; font-size: 17px; }
  .gnav .nav-cta { margin-top: 24px; border: 0; }
  .gnav .nav-cta a { text-align: center; }
  body.menu-open { overflow: hidden; }
}
/* PC：横並び */
@media (min-width: 900px) {
  .menu-btn { display: none; }
  .gnav ul { display: flex; align-items: center; gap: 28px; font-size: 14px; }
  .gnav a:not(.btn) { padding: 6px 0; position: relative; }
  .gnav a:not(.btn)::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 1px; background: var(--accent); transform: scaleX(0); transition: transform .3s; }
  .gnav a:not(.btn):hover::after { transform: scaleX(1); }
  .gnav .nav-cta .btn { padding: 10px 20px; font-size: 14px; }
}

/* ---------- ボタン ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 52px; padding: 14px 28px;
  border-radius: 999px; border: 1px solid var(--accent);
  font-weight: 500; font-size: 15px; letter-spacing: 0.08em; text-decoration: none; line-height: 1.4;
  transition: background .25s, color .25s, border-color .25s;
}
.btn svg { width: 20px; height: 20px; flex: none; }
.btn-primary { background: var(--accent); color: #fff; }
.btn-primary:hover { background: var(--accent-deep); border-color: var(--accent-deep); }
.btn-ghost { background: transparent; color: var(--accent); }
.btn-ghost:hover { background: var(--accent-soft); }

/* ---------- セクション共通 ---------- */
section { padding: 88px 0; }
.alt { background: var(--bg-2); }
.sec-head { margin-bottom: 44px; }
.sec-head .eyebrow { display: flex; align-items: center; gap: 12px; color: var(--accent); font-size: 13px; letter-spacing: 0.2em; margin-bottom: 12px; }
.sec-head .eyebrow::before { content: ""; width: 24px; height: 1px; background: currentColor; }
h2 { font-family: var(--serif); font-weight: 600; font-size: clamp(24px, 5.6vw, 34px); line-height: 1.55; letter-spacing: 0.08em; margin: 0; }
h3 { font-family: var(--serif); font-weight: 600; font-size: 19px; line-height: 1.6; letter-spacing: 0.06em; margin: 0 0 10px; }
.sec-head p { color: var(--muted); margin: 14px 0 0; }

/* ---------- ヒーロー ---------- */
.hero { position: relative; padding: 24px 0 64px; overflow: hidden; }
.hero-grid { display: grid; gap: 8px; align-items: center; }
.hero-art { justify-self: center; width: min(34vw, 132px); position: relative; margin-bottom: 8px; }
.hero-art::before {
  content: ""; position: absolute; inset: -30% -40%;
  background: radial-gradient(closest-side, rgba(232, 150, 70, 0.32), rgba(232, 150, 70, 0.10) 55%, transparent 75%);
  animation: breathe 6s ease-in-out infinite;
  z-index: -1;
}
@keyframes breathe { 50% { opacity: .72; transform: scale(.96); } }
.catch {
  font-family: var(--serif); font-weight: 600;
  font-size: clamp(32px, 9vw, 58px); line-height: 1.45; letter-spacing: 0.1em;
  margin: 0 0 18px;
}
.catch .accent { color: var(--accent); }
.hero .lead { color: var(--muted); font-size: 15.5px; margin: 0 0 28px; max-width: 30em; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.hero-actions .btn { flex: 1 1 200px; }

@media (min-width: 900px) {
  .hero { padding: 72px 0 120px; }
  .hero-grid { grid-template-columns: 1.35fr 1fr; gap: 48px; }
  .hero-art { order: 2; width: 300px; }
  .hero .lead { font-size: 16.5px; }
  .hero-actions .btn { flex: 0 0 auto; }
}

/* ---------- お悩み ---------- */
.worries { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.worries li {
  display: flex; gap: 14px; align-items: flex-start;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 18px 20px;
}
.worries svg { width: 22px; height: 22px; flex: none; margin-top: 4px; color: var(--accent); }
.worries-note { margin: 32px 0 0; font-family: var(--serif); font-size: 18px; line-height: 1.8; }
@media (min-width: 900px) { .worries { grid-template-columns: 1fr 1fr; gap: 16px; } }

/* ---------- できること ---------- */
.services { display: grid; gap: 20px; }
.service { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 32px 26px; }
.service .icon { width: 48px; height: 48px; color: var(--accent); margin-bottom: 18px; }
.service p { color: var(--muted); margin: 0; }
@media (min-width: 900px) { .services { grid-template-columns: repeat(3, 1fr); gap: 24px; } }

/* ---------- 制作例 ---------- */
.works-main { display: grid; gap: 28px; }
.work a { display: block; text-decoration: none; color: inherit; }
.work .thumb { overflow: hidden; border-radius: var(--radius); border: 1px solid var(--line); background: var(--bg-2); aspect-ratio: 16 / 10; }
.work .thumb img { width: 100%; height: 100%; object-fit: cover; object-position: top; transition: transform .6s ease; }
.work a:hover .thumb img { transform: scale(1.03); }
.work .meta { padding: 16px 2px 0; }
.work .type { font-size: 13px; color: var(--muted); letter-spacing: 0.1em; }
.work h3 { margin: 2px 0 6px; }
.work .for { margin: 0 0 10px; }
.work .more { display: inline-flex; align-items: center; gap: 6px; color: var(--accent); font-size: 14px; font-weight: 500; }
.work .more svg { width: 14px; height: 14px; }
.works-sub-title { font-family: var(--serif); font-size: 17px; font-weight: 600; margin: 56px 0 18px; letter-spacing: 0.08em; }
.works-sub { display: grid; gap: 22px; grid-template-columns: 1fr; }
.works-sub .work h3 { font-size: 16px; }
.works-sub .work .for { font-size: 14px; }
.works-note { margin: 36px 0 0; font-size: 14px; color: var(--muted); }
@media (min-width: 600px) { .works-sub { grid-template-columns: repeat(3, 1fr); } .works-sub .work .meta { padding-top: 12px; } }
@media (min-width: 900px) { .works-main { grid-template-columns: 1fr 1fr; gap: 36px; } }

/* ---------- 料金 ---------- */
.prices { display: grid; gap: 16px; }
.price { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 28px 24px; display: grid; gap: 6px; align-content: start; }
.price .name { font-family: var(--serif); font-weight: 600; font-size: 18px; letter-spacing: 0.06em; }
.price .amount { font-family: var(--serif); font-size: 30px; font-weight: 600; color: var(--accent); letter-spacing: 0.02em; line-height: 1.4; }
.price .amount small { font-family: var(--sans); font-size: 14px; font-weight: 400; color: var(--muted); margin-left: 2px; }
.price .amount .per { font-size: 16px; font-weight: 600; color: var(--accent); margin: 0 2px 0 0; }
.price .amount small.tax { display: block; font-size: 13px; line-height: 1.6; margin: -2px 0 0 -0.5em; }
.price p { color: var(--muted); margin: 0; font-size: 15px; }
.price-note { margin: 28px 0 0; font-size: 14px; color: var(--muted); }
.price-note p { margin: 0 0 4px; }
@media (min-width: 900px) { .prices { grid-template-columns: repeat(3, 1fr); gap: 24px; } .price { padding: 34px 28px; } }

/* ---------- ご依頼の流れ ---------- */
.flow { list-style: none; margin: 0; padding: 0; counter-reset: step; display: grid; }
.flow li { counter-increment: step; display: grid; grid-template-columns: 48px 1fr; gap: 16px; position: relative; padding-bottom: 28px; }
.flow li::before {
  content: counter(step);
  width: 48px; height: 48px; border-radius: 50%;
  display: grid; place-items: center;
  font-family: var(--serif); font-weight: 600; font-size: 18px;
  color: var(--accent); background: var(--surface); border: 1px solid var(--accent);
  position: relative; z-index: 1;
}
.flow li:not(:last-child)::after { content: ""; position: absolute; left: 24px; top: 48px; bottom: 0; width: 1px; background: var(--line); }
.flow .step { padding-top: 10px; }
.flow .step b { font-weight: 500; }
@media (min-width: 900px) {
  .flow { grid-template-columns: repeat(5, 1fr); gap: 16px; }
  .flow li { grid-template-columns: 1fr; justify-items: center; text-align: center; padding-bottom: 0; }
  .flow li:not(:last-child)::after { left: calc(50% + 24px); right: calc(-50% + 24px - 16px); top: 24px; bottom: auto; width: auto; height: 1px; }
  .flow .step { padding-top: 4px; font-size: 15px; }
}

/* ---------- よくある質問 ---------- */
.faq { max-width: 780px; }
.faq details { border-bottom: 1px solid var(--line); }
.faq details:first-child { border-top: 1px solid var(--line); }
.faq summary {
  list-style: none; cursor: pointer;
  display: grid; grid-template-columns: auto 1fr 20px; gap: 14px; align-items: start;
  padding: 22px 2px; font-weight: 500;
}
.faq summary::-webkit-details-marker { display: none; }
.faq .q, .faq .a { font-family: var(--serif); font-weight: 600; color: var(--accent); }
.faq summary .plus { position: relative; width: 14px; height: 14px; margin-top: 8px; }
.faq summary .plus::before, .faq summary .plus::after { content: ""; position: absolute; left: 0; right: 0; top: 50%; height: 1.5px; background: var(--text); transition: transform .3s; }
.faq summary .plus::after { transform: rotate(90deg); }
.faq details[open] .plus::after { transform: rotate(0deg); }
.faq .answer { display: grid; grid-template-columns: auto 1fr; gap: 14px; padding: 0 2px 24px; color: var(--muted); }
.faq .answer p { margin: 0; }

/* ---------- 運営者 ---------- */
.about { display: grid; gap: 28px; align-items: center; }
.about .mark { width: 72px; height: 72px; color: var(--accent); }
.about dl { margin: 0 0 14px; }
.about dt { font-size: 13px; color: var(--muted); letter-spacing: 0.1em; }
.about dd { margin: 0; font-family: var(--serif); font-weight: 600; font-size: 22px; letter-spacing: 0.12em; }
.about p { margin: 0; }
@media (min-width: 900px) { .about { grid-template-columns: 96px 1fr; gap: 40px; } .about .mark { width: 96px; height: 96px; } }

/* ---------- お問い合わせ ---------- */
.contact { background: var(--night); color: #f3ece2; position: relative; overflow: hidden; }
.contact::before {
  content: ""; position: absolute; left: 50%; top: -40%; width: 720px; height: 720px; transform: translateX(-50%);
  background: radial-gradient(closest-side, rgba(232, 150, 70, 0.20), transparent 70%); pointer-events: none;
}
.contact .wrap { position: relative; }
.contact .sec-head .eyebrow { color: #e8a66a; }       /* 7.0:1 on --night */
.contact .sec-head p { color: #cbbfb1; }               /* 8.5:1 on --night */
.contact-actions { display: grid; gap: 14px; max-width: 560px; }
.contact .btn-ghost { color: #f3ece2; border-color: #a89a8b; }
.contact .btn-ghost:hover { background: rgba(255,255,255,.06); }
.contact .mail { font-size: 14px; color: #cbbfb1; margin: 6px 0 0; }
.contact .mail a { color: #f3ece2; }
.contact .hours { font-size: 14px; color: #cbbfb1; margin: 26px 0 0; }
@media (min-width: 600px) { .contact-actions { grid-template-columns: 1fr 1fr; } }

/* ---------- フッター ---------- */
.site-footer { padding: 36px 0; font-size: 13px; color: var(--muted); }
.site-footer .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; }
.site-footer a { color: var(--muted); }

/* ---------- スマホ下部の固定ボタン ---------- */
.fixed-bar { display: none; }
@media (max-width: 899px) {
  body.has-bar { padding-bottom: calc(var(--bar-h) + env(safe-area-inset-bottom)); }
  .fixed-bar {
    display: grid; grid-template-columns: 1fr 1fr; gap: 8px;
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 40;
    padding: 8px 10px calc(8px + env(safe-area-inset-bottom));
    background: rgba(250, 247, 241, 0.96); backdrop-filter: blur(10px);
    border-top: 1px solid var(--line);
  }
  .fixed-bar .btn { min-height: 48px; padding: 10px 8px; font-size: 14px; letter-spacing: 0.04em; }
  .fixed-bar .btn-ghost { background: var(--surface); }
}

/* ---------- スクロールでふわっと表示 ----------
   JSが動いたときだけ隠す。画面に入る少し手前で表示を始め、時間も短くして空白を作らない */
.js .rv { opacity: 0; transform: translateY(14px); }
.js .rv.in { opacity: 1; transform: none; transition: opacity .45s ease-out, transform .45s ease-out; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .js .rv { opacity: 1; transform: none; }
  .hero-art::before { animation: none; }
}

/* ---------- プライバシーポリシー ---------- */
.doc { padding: 56px 0 96px; }
.doc .wrap { max-width: 760px; }
.doc h1 { font-family: var(--serif); font-weight: 600; font-size: clamp(26px, 6vw, 34px); letter-spacing: 0.08em; margin: 0 0 28px; }
.doc h2 { font-size: 19px; margin: 40px 0 10px; }
.doc ul { padding-left: 1.4em; margin: 0 0 1em; }
.doc .date { color: var(--muted); font-size: 14px; margin-top: 48px; }
.back { display: inline-flex; align-items: center; gap: 6px; color: var(--accent); font-size: 14px; text-decoration: none; margin-top: 32px; }
