/* 華墨堂 サンプルサイト
   色とフォントは現行サイト（kasumido-web/css/style.css）を引き継いでいる */
:root {
  --bg: #121518;
  --bg-alt: #161a1f;
  --card: #1a1e24;
  --border: #2e3540;
  --text: #e6e8eb;
  --text-sub: #b4bac4;   /* 現行の #8b9bb4 より明るくして、黒背景でも読みやすくする */
  --text-muted: #8a919c;
  --accent: #d4af37;     /* 華墨堂ゴールド */
  --accent-hover: #f0c94d;
  --error: #e57373;
  --success: #81c784;
  --spring: #e8a0b4;
  --summer: #7fb2e5;
  --autumn: #e0884f;
  --winter: #c9d3df;
  --serif: 'Shippori Mincho', serif;
  --sans: 'Zen Kaku Gothic New', sans-serif;
  --max: 1120px;
  --header-h: 64px;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 16px); }
body {
  background: var(--bg); color: var(--text); font-family: var(--sans);
  font-size: 16px; line-height: 1.9; letter-spacing: .03em;
  /* 日本語の行末で単語が分かれないようにする（「アー / ト」のような泣き別れを防ぐ） */
  word-break: auto-phrase; line-break: strict;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
ul, ol { list-style: none; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
[hidden] { display: none !important; }  /* .field などの display 指定に負けないようにする */

.container { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 20px; }
.narrow { max-width: 760px; }
.section { padding: 96px 0; }
.section-alt { background: var(--bg-alt); border-block: 1px solid var(--border); }
.section-head { text-align: center; margin-bottom: 48px; }
.section-head h2, .shop h2 { font-family: var(--serif); font-size: clamp(26px, 4vw, 34px); font-weight: 600; letter-spacing: .08em; }
.section-head p:not(.eyebrow) { color: var(--text-sub); margin-top: 12px; text-wrap: balance; }
.eyebrow { font-family: var(--serif); color: var(--accent); font-size: 13px; letter-spacing: .3em; text-transform: uppercase; margin-bottom: 6px; }

/* 仮の文章・数値（サンプル用） */
.sample-bar { background: #2b2410; color: #f3dc8f; font-size: 13px; text-align: center; padding: 6px 16px; }
.tbd { outline: 1px dashed rgba(212, 175, 55, .7); outline-offset: 2px; border-radius: 2px; }
.tbd-block { position: relative; border: 1px dashed rgba(212, 175, 55, .7); }
.tbd-block::after {
  content: attr(data-label); position: absolute; left: 12px; bottom: 10px; right: 12px;
  font-size: 12px; color: #f3dc8f; background: rgba(18, 21, 24, .85); padding: 4px 8px; border-radius: 4px;
}

/* ボタン */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 48px; padding: 12px 28px; border-radius: 999px; font: inherit; font-weight: 500;
  text-decoration: none; letter-spacing: .08em; cursor: pointer; border: 1px solid transparent;
  transition: background-color .2s, color .2s, border-color .2s;
}
.btn-primary { background: var(--accent); color: #17140a; }
.btn-primary:hover { background: var(--accent-hover); }
.btn-outline { border-color: var(--accent); color: var(--accent); background: transparent; }
.btn-outline:hover { background: rgba(212, 175, 55, .12); }
.btn-disabled { border-color: var(--border); color: var(--text-muted); cursor: not-allowed; }
.btn-block { width: 100%; }

/* ヘッダー */
.site-header {
  position: sticky; top: 0; z-index: 10; height: var(--header-h);
  background: rgba(18, 21, 24, .92); backdrop-filter: blur(8px); border-bottom: 1px solid var(--border);
}
.header-inner { height: 100%; display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; font-family: var(--serif); font-size: 20px; letter-spacing: .15em; }
.site-nav { display: flex; align-items: center; gap: 28px; }
.site-nav a { text-decoration: none; font-size: 14px; display: flex; flex-direction: column; align-items: center; line-height: 1.4; }
.site-nav a:not(:has(small)):not(.nav-cta) { padding: 8px 0; }
.site-nav a small { font-family: var(--serif); font-size: 10px; color: var(--text-muted); letter-spacing: .15em; }
.site-nav a:hover { color: var(--accent); }
.site-nav .nav-cta { border: 1px solid var(--accent); color: var(--accent); border-radius: 999px; padding: 8px 18px; }
.nav-toggle { display: none; }
.lang-switch {
  margin-left: auto; font-size: 13px; color: var(--text-sub); text-decoration: none;
  border: 1px solid var(--border); border-radius: 999px; padding: 4px 12px; white-space: nowrap;
}
.lang-switch:hover { color: var(--accent); border-color: var(--accent); }
.work-subtitle { font-family: var(--serif); color: var(--accent); font-size: 18px; margin-bottom: 8px; }

/* ヒーロー */
.hero {
  position: relative; overflow: hidden; padding: 72px 0 88px;
  background: linear-gradient(90deg, rgba(18,21,24,.96) 0%, rgba(18,21,24,.85) 45%, rgba(18,21,24,.6) 100%),
              url('/assets/hero-bg.webp') center / cover;
}
.hero-inner { display: grid; grid-template-columns: 1.05fr .95fr; gap: 56px; align-items: center; }
.hero-logo { width: 220px; margin-bottom: 28px; opacity: .95; }
.hero h1 { font-family: var(--serif); font-weight: 600; font-size: clamp(36px, 5.4vw, 60px); line-height: 1.35; letter-spacing: .1em; }
.hero .lead { color: var(--text-sub); font-size: 17px; margin: 24px 0 36px; max-width: 30em; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 14px; }
.feature { margin: 0; }
.feature-frame { display: block; border-radius: 6px; overflow: hidden; box-shadow: 0 30px 60px rgba(0,0,0,.55); border: 1px solid var(--border); }
.feature-frame img { transition: transform .6s ease; }
.feature-frame:hover img { transform: scale(1.03); }
.feature figcaption { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 12px; margin-top: 14px; }
.feature-label { font-size: 12px; color: var(--accent); border: 1px solid rgba(212,175,55,.5); border-radius: 999px; padding: 1px 10px; }
.feature-title { font-family: var(--serif); font-size: 18px; }
.feature-meta { font-size: 13px; color: var(--text-muted); }

/* 季節のチップ */
.chips { display: flex; gap: 6px; flex-wrap: wrap; }
.chip { font-size: 12px; line-height: 1; padding: 5px 10px; border-radius: 999px; border: 1px solid currentColor; }
.chip-spring { color: var(--spring); } .chip-summer { color: var(--summer); }
.chip-autumn { color: var(--autumn); } .chip-winter { color: var(--winter); }

/* 作品 */
.filter { display: flex; justify-content: center; flex-wrap: wrap; gap: 8px; margin-bottom: 32px; }
.filter button {
  font: inherit; font-size: 14px; color: var(--text-sub); background: transparent; border: 1px solid var(--border);
  border-radius: 999px; padding: 6px 18px; min-height: 40px; cursor: pointer;
}
.filter button[aria-pressed="true"] { background: var(--accent); color: #17140a; border-color: var(--accent); }
.works-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 352px)); justify-content: center; gap: 28px; }
.work-card a { display: block; text-decoration: none; background: var(--card); border: 1px solid var(--border); border-radius: 8px; overflow: hidden; height: 100%; transition: border-color .2s, transform .2s; }
.work-card a:hover { border-color: rgba(212,175,55,.6); transform: translateY(-3px); }
.work-img { aspect-ratio: 1; overflow: hidden; }
.work-body { padding: 18px 20px 22px; }
.work-body h3 { font-family: var(--serif); font-size: 20px; margin: 10px 0 4px; font-weight: 600; }
.work-body h3 small, .work-info h1 small { font-family: var(--sans); font-size: 12px; color: var(--text-muted); margin-left: 10px; font-weight: 400; }
.work-body p { color: var(--text-sub); font-size: 14px; }
.works-empty { text-align: center; color: var(--text-muted); }

/* 華墨堂について */
.about-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: center; }
.process { aspect-ratio: 4 / 3; border-radius: 8px; background: radial-gradient(circle at 50% 45%, #22272e, #111417 70%); overflow: hidden; }
.brush { width: 100%; height: 100%; }
.brush path { fill: none; stroke: #e9e6df; stroke-width: 18; stroke-linecap: round; stroke-dasharray: 600; stroke-dashoffset: 600; animation: draw 4s ease-in-out infinite; opacity: .9; }
.brush path.thin { stroke-width: 6; animation-delay: .8s; opacity: .6; }
@keyframes draw { 0% { stroke-dashoffset: 600; } 55%, 85% { stroke-dashoffset: 0; } 100% { stroke-dashoffset: 0; opacity: 0; } }
@media (prefers-reduced-motion: reduce) { .brush path { animation: none; stroke-dashoffset: 0; } }
.points { counter-reset: p; display: grid; gap: 28px; }
.points li { counter-increment: p; padding-left: 56px; position: relative; }
.points li::before { content: "0" counter(p); position: absolute; left: 0; top: 0; font-family: var(--serif); color: var(--accent); font-size: 22px; }
.points h3 { font-family: var(--serif); font-size: 20px; font-weight: 600; margin-bottom: 6px; }
.points p { color: var(--text-sub); }
.artists { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin-top: 64px; }
.artist { display: flex; gap: 18px; background: var(--card); border: 1px solid var(--border); border-radius: 8px; padding: 22px; }
.avatar { flex: 0 0 64px; height: 64px; border-radius: 50%; display: grid; place-items: center; font-family: var(--serif); font-size: 26px; background: #262b33; color: var(--accent); }
.artist h3 { font-family: var(--serif); font-size: 20px; }
.artist .role { display: inline-block; color: var(--accent); font-size: 13px; margin: 2px 0 8px; }
.artist p:not(.role) { color: var(--text-sub); font-size: 14px; }

/* オーダー */
.examples { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.examples li { background: var(--card); border: 1px solid var(--border); border-radius: 8px; padding: 26px 24px; }
.examples h3 { font-family: var(--serif); font-size: 20px; margin-bottom: 8px; }
.examples p { color: var(--text-sub); font-size: 14px; }
.examples .price { display: inline-block; margin-top: 14px; color: var(--text); font-size: 18px; font-weight: 500; }
.note { text-align: center; color: var(--text-sub); margin: 28px 0 48px; }
.flow { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; border-top: 1px solid var(--border); }
.flow li { padding: 22px 18px 0; border-left: 1px solid var(--border); }
.flow li:first-child { border-left: 0; }
.flow span { font-family: var(--serif); color: var(--accent); font-size: 14px; letter-spacing: .2em; }
.flow h3 { font-family: var(--serif); font-size: 18px; margin: 4px 0; }
.flow p { color: var(--text-sub); font-size: 14px; }

/* よくある質問 */
details { border-bottom: 1px solid var(--border); }
summary { cursor: pointer; padding: 18px 36px 18px 0; position: relative; list-style: none; font-weight: 500; }
summary::-webkit-details-marker { display: none; }
summary::after { content: "＋"; position: absolute; right: 4px; color: var(--accent); }
details[open] summary::after { content: "−"; }
details p { color: var(--text-sub); padding: 0 0 20px; }

/* フォーム */
.form { background: var(--card); border: 1px solid var(--border); border-radius: 10px; padding: 32px; display: grid; gap: 20px; }
.field { display: grid; gap: 6px; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.field label { font-size: 14px; color: var(--text-sub); }
.field em { font-style: normal; font-size: 11px; color: #17140a; background: var(--accent); border-radius: 3px; padding: 0 6px; margin-left: 8px; vertical-align: 1px; }
input, select, textarea {
  font: inherit; color: var(--text); background: var(--bg); border: 1px solid var(--border); border-radius: 6px;
  padding: 12px 14px; min-height: 48px; width: 100%;
}
input:focus, select:focus, textarea:focus { border-color: var(--accent); outline: none; box-shadow: 0 0 0 3px rgba(212,175,55,.2); }
.privacy-note { font-size: 13px; color: var(--text-muted); }
.privacy-note a { color: var(--accent); }
.form-status { font-size: 14px; padding: 12px 14px; border-radius: 6px; background: rgba(212,175,55,.1); color: #f3dc8f; }
.form-status.error { background: rgba(229,115,115,.12); color: var(--error); }

/* ショップ */
.shop { text-align: center; }
.shop p:not(.eyebrow) { color: var(--text-sub); margin: 12px 0 28px; }
.shop-cta { display: flex; justify-content: center; flex-wrap: wrap; gap: 14px; }

/* 作品ページ */
.work-page { padding-top: 40px; }
.breadcrumb { display: flex; gap: 8px; font-size: 13px; color: var(--text-muted); margin-bottom: 28px; flex-wrap: wrap; }
.breadcrumb a { text-decoration: none; }
.breadcrumb a:hover { color: var(--accent); }
.work-detail { display: grid; grid-template-columns: 1.1fr .9fr; gap: 48px; align-items: start; }
.work-figure img { border-radius: 8px; border: 1px solid var(--border); }
.work-info h1 { font-family: var(--serif); font-size: clamp(30px, 4vw, 40px); font-weight: 600; margin: 14px 0 8px; letter-spacing: .08em; }
.work-summary { font-size: 18px; margin-bottom: 10px; }
.work-info > p { color: var(--text-sub); }
.work-motif { display: flex; gap: 12px; margin: 18px 0 28px; font-size: 14px; }
.work-motif dt { color: var(--text-muted); }
.work-info h2 { font-family: var(--serif); font-size: 18px; margin-bottom: 10px; }
.specs { width: 100%; border-collapse: collapse; font-size: 14px; }
.specs th, .specs td { text-align: left; padding: 10px 0; border-bottom: 1px solid var(--border); vertical-align: top; }
.specs th { color: var(--text-muted); font-weight: 400; width: 40%; }
.work-cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.pager { display: flex; justify-content: space-between; gap: 16px; margin-top: 64px; padding-top: 24px; border-top: 1px solid var(--border); }
.pager a { text-decoration: none; font-family: var(--serif); font-size: 18px; display: flex; flex-direction: column; }
.pager a small { font-family: var(--sans); font-size: 12px; color: var(--text-muted); }
.pager a:hover { color: var(--accent); }
.pager .next { text-align: right; }

/* フッター */
.site-footer { border-top: 1px solid var(--border); padding: 40px 0; font-size: 13px; color: var(--text-muted); }
.footer-inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 24px; }
.footer-brand { font-family: var(--serif); font-size: 18px; color: var(--text); letter-spacing: .15em; }
.footer-brand span { font-size: 12px; color: var(--text-muted); margin-left: 6px; }
.site-footer nav { display: flex; gap: 20px; flex-wrap: wrap; }
.site-footer nav a { text-decoration: none; }
.site-footer nav a:hover { color: var(--accent); }

/* プライバシーポリシー */
.doc h1 { font-family: var(--serif); font-size: 30px; margin-bottom: 24px; }
.doc h2 { font-family: var(--serif); font-size: 20px; margin: 32px 0 8px; }
.doc p, .doc li { color: var(--text-sub); }
.doc ul { list-style: disc; padding-left: 1.4em; }

:lang(en) .hero h1, :lang(en) .section-head h2, :lang(en) .work-info h1 { letter-spacing: .02em; }
:lang(en) .hero h1 { font-size: clamp(32px, 4vw, 46px); text-wrap: balance; }
:lang(en) body, :lang(en) .btn { letter-spacing: .01em; }

/* スマホ・タブレット */
@media (max-width: 900px) {
  .hero-inner, .about-grid, .work-detail { grid-template-columns: 1fr; gap: 36px; }
  .examples { grid-template-columns: 1fr; }
  .flow { grid-template-columns: 1fr 1fr; }
  .flow li:nth-child(3) { border-left: 0; }
  .artists { grid-template-columns: 1fr; }
}
@media (max-width: 760px) {
  .section { padding: 72px 0; }
  .nav-toggle {
    display: block; font: inherit; font-size: 14px; color: var(--text); background: transparent;
    border: 1px solid var(--border); border-radius: 999px; padding: 6px 16px; min-height: 40px; cursor: pointer;
  }
  .site-nav {
    position: absolute; top: var(--header-h); left: 0; right: 0; flex-direction: column; align-items: stretch; gap: 0;
    background: rgba(18, 21, 24, .98); border-bottom: 1px solid var(--border); padding: 8px 20px 20px; display: none;
  }
  .site-nav.open { display: flex; }
  .site-nav a { flex-direction: row; justify-content: space-between; padding: 14px 4px; border-bottom: 1px solid var(--border); font-size: 16px; }
  .site-nav .nav-cta { margin-top: 16px; justify-content: center; border-bottom: 1px solid var(--accent); }
  .hero { padding: 40px 0 64px; }
  .hero-logo { width: 160px; margin-bottom: 20px; }
  .hero .lead { font-size: 16px; }
  .hero-cta .btn { flex: 1 1 auto; }
  .form { padding: 22px 18px; }
  .field-row { grid-template-columns: 1fr; }
  .flow { grid-template-columns: 1fr; }
  .flow li { border-left: 0; border-bottom: 1px solid var(--border); padding: 16px 0; }
  .works-grid { grid-template-columns: minmax(0, 1fr); }
}
