/* =====================================================================
   fotomosaico.jp  デザインB「編集物のような品格」 共通スタイル
   2026-10-17  /b/ 配下の全ページで読み込む（/b/css/b.css）
   ===================================================================== */
:root {
  --ink: #15213a;          /* 紺（サンプル作品の地色） */
  --ink-2: #263352;
  --paper: #f6f3ee;        /* 生成り */
  --paper-2: #ece7de;
  --line: rgba(21,33,58,0.16);
  --line-dark: rgba(246,243,238,0.18);
  --brass: #b08a45;        /* 真鍮 */
  --brass-2: #d8c08a;
  --text: #22252c;
  --muted: #5f6471;
  --white: #ffffff;
  --serif: 'Shippori Mincho B1', 'Hiragino Mincho ProN', 'Yu Mincho', serif;
  --sans: 'Zen Kaku Gothic New', 'Hiragino Kaku Gothic ProN', sans-serif;
  --latin: 'Cormorant Garamond', 'Shippori Mincho B1', serif;
  --max: 1200px;
  --narrow: 820px;
  --ease: cubic-bezier(.2,.7,.2,1);
}
* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; scroll-padding-top: 90px; }
body { font-family: var(--sans); color: var(--text); background: var(--paper); line-height: 1.9; font-weight: 400; -webkit-font-smoothing: antialiased; font-feature-settings: "palt" 1; }
img { max-width: 100%; display: block; height: auto; }
a { color: inherit; text-decoration: none; }
p a, li a, td a, dd a { color: var(--ink); border-bottom: 1px solid var(--brass); transition: color .3s; }
p a:hover, li a:hover, td a:hover { color: var(--brass); }
strong { font-weight: 600; color: var(--ink); }
.wrap { max-width: var(--max); margin: 0 auto; padding: 0 clamp(20px, 4vw, 48px); }
.wrap.narrow { max-width: var(--narrow); }
.serif { font-family: var(--serif); }
.latin { font-family: var(--latin); letter-spacing: 0.18em; text-transform: uppercase; font-size: 0.78rem; color: var(--brass); }
.eyebrow { display: flex; align-items: center; gap: 14px; margin-bottom: 22px; }
.eyebrow::before { content: ''; width: 36px; height: 1px; background: var(--brass); flex: none; }
h1, h2, h3, h4 { font-family: var(--serif); font-weight: 500; color: var(--ink); line-height: 1.5; letter-spacing: 0.02em; text-wrap: balance; }
p, li, dd, figcaption { text-wrap: pretty; }
h2 { font-size: clamp(1.6rem, 3.2vw, 2.3rem); }
h3 { font-size: 1.12rem; font-weight: 600; }
h4 { font-size: 1rem; font-weight: 600; }
p { color: var(--text); }
.muted { color: var(--muted); }
.small { font-size: 0.86rem; }
.section { padding: clamp(80px, 10vw, 128px) 0; }
.section.compact { padding: clamp(56px, 7vw, 88px) 0; }
.section.dark { background: var(--ink); color: var(--paper); }
.section.dark h2, .section.dark h3, .section.dark h4, .section.dark strong { color: var(--paper); }
.section.dark p, .section.dark li { color: rgba(246,243,238,0.82); }
.section.dark .latin { color: var(--brass-2); }
.hero strong, .hero-plain strong, .contact strong, .cta-band strong, .foot strong, .section.dark strong { color: var(--paper); font-weight: 600; }
.contact p a, .cta-band p a { color: var(--paper); }
.section.dark p a, .section.dark li a { color: var(--paper); }
.section.tint { background: var(--paper-2); }
.head { max-width: 680px; margin-bottom: clamp(44px, 6vw, 72px); }
.head.center { margin-left: auto; margin-right: auto; text-align: center; }
.head.center .eyebrow { justify-content: center; }
.head p { margin-top: 18px; color: var(--muted); }
.section.dark .head p { color: rgba(246,243,238,0.78); }
.rule { height: 1px; background: var(--line); }
.section.dark .rule { background: var(--line-dark); }
.footnote { font-size: 0.8rem; color: var(--muted); margin-top: 40px; line-height: 1.9; }
.note { font-size: 0.86rem; color: var(--muted); line-height: 1.9; }

/* ---------- ボタン ---------- */
.btn { display: inline-flex; align-items: center; gap: 14px; padding: 16px 28px; border: 1px solid var(--ink); color: var(--ink); font-weight: 500; letter-spacing: 0.08em; font-size: 0.92rem; cursor: pointer; background: transparent; font-family: var(--sans); transition: all .35s var(--ease); }
.btn::after { content: '→'; font-family: var(--latin); font-size: 1.1rem; transition: transform .35s var(--ease); }
.btn.noarrow::after { content: none; }
.btn:hover { background: var(--ink); color: var(--paper); }
.btn:hover::after { transform: translateX(4px); }
.btn.solid { background: var(--ink); color: var(--paper); }
.btn.solid:hover { background: var(--brass); border-color: var(--brass); }
.btn.light { border-color: rgba(246,243,238,0.6); color: var(--paper); }
.btn.light:hover { background: var(--paper); color: var(--ink); }
.btn.ghost { border-color: transparent; padding-left: 0; }
.btn.block { width: 100%; justify-content: center; }
.btn.sm { padding: 11px 20px; font-size: 0.84rem; }
.btn:disabled { opacity: .45; cursor: not-allowed; }
.ctas { display: flex; gap: 14px; flex-wrap: wrap; }

/* ---------- ナビ（全ページ共通） ---------- */
.nav { position: fixed; top: 0; left: 0; right: 0; z-index: 50; transition: background .4s, box-shadow .4s; }
.nav.scrolled, .nav.solid { box-shadow: 0 1px 0 var(--line); }
/* ぼかしは疑似要素に付ける（.nav 自体に付けると、スマホのメニュー全画面が帯の高さに縮んでしまうため） */
.nav::before { content: ''; position: absolute; inset: 0; z-index: -1; background: transparent; transition: background .4s; pointer-events: none; }
.nav.scrolled::before, .nav.solid::before { background: rgba(246,243,238,0.92); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); }
.nav-inner { max-width: var(--max); margin: 0 auto; padding: 18px clamp(20px, 4vw, 48px); display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.nav-logo { font-family: var(--serif); font-size: 1.15rem; color: var(--paper); letter-spacing: 0.08em; transition: color .4s; white-space: nowrap; }
.nav-logo small { font-family: var(--latin); font-size: 0.72rem; letter-spacing: 0.2em; margin-left: 10px; opacity: .7; }
.nav.scrolled .nav-logo, .nav.solid .nav-logo, .nav.on-light .nav-logo { color: var(--ink); }
.nav-links { display: flex; gap: 26px; list-style: none; align-items: center; }
.nav-links a { font-size: 0.86rem; letter-spacing: 0.06em; color: rgba(246,243,238,0.85); transition: color .3s; white-space: nowrap; border: 0; }
.nav.scrolled .nav-links a, .nav.solid .nav-links a, .nav.on-light .nav-links a { color: var(--muted); }
.nav-links a:hover { color: var(--brass-2); }
.nav.scrolled .nav-links a:hover, .nav.solid .nav-links a:hover, .nav.on-light .nav-links a:hover { color: var(--ink); }
.nav-links a.cta { border: 1px solid currentColor; padding: 9px 18px; }
.nav-toggle { display: none; width: 40px; height: 40px; background: none; border: 0; cursor: pointer; }
.nav-toggle span { display: block; width: 24px; height: 1px; background: var(--paper); margin: 7px auto; transition: background .4s; }
.nav.scrolled .nav-toggle span, .nav.solid .nav-toggle span, .nav.on-light .nav-toggle span { background: var(--ink); }
@media (max-width: 1040px) {
  .nav-links { position: fixed; inset: 0; background: var(--ink); flex-direction: column; justify-content: center; gap: 26px; transform: translateY(-100%); transition: transform .5s var(--ease); }
  .nav-links.open { transform: none; }
  .nav-links { height: 100vh; height: 100dvh; overflow-y: auto; padding: 90px 0 40px; justify-content: flex-start; }
  .nav-links li:first-child { margin-top: auto; }
  .nav-links li:last-child { margin-bottom: auto; }
  /* メニューを開いている間：ロゴと×を白に、後ろのページはスクロールさせない */
  .nav.menu-open { box-shadow: none; }
  .nav.menu-open::before { background: transparent; -webkit-backdrop-filter: none; backdrop-filter: none; }
  .nav.menu-open .nav-logo { color: var(--paper); position: relative; z-index: 60; }
  .nav.menu-open .nav-toggle span { background: var(--paper); }
  .nav.menu-open .nav-toggle span:first-child { transform: translateY(4px) rotate(45deg); }
  .nav.menu-open .nav-toggle span:last-child { transform: translateY(-4px) rotate(-45deg); }
  .nav-toggle span { transition: background .4s, transform .3s; }
  html.menu-lock, html.menu-lock body { overflow: hidden; }
  .nav-links a.cta { margin-top: 8px; padding: 12px 28px; }
  .nav-links a, .nav.scrolled .nav-links a, .nav.solid .nav-links a, .nav.on-light .nav-links a { color: var(--paper); font-size: 1.1rem; font-family: var(--serif); }
  .nav-toggle { display: block; position: relative; z-index: 60; }
}

/* ---------- ヒーロー：写真全面 ---------- */
.hero { position: relative; min-height: 100svh; display: grid; align-items: end; color: var(--paper); overflow: hidden; background: var(--ink); }
.hero.short { min-height: 72svh; }
.hero-bg { position: absolute; inset: 0; }
.hero-bg img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 45%; transform: scale(1.04); animation: heroZoom 9s var(--ease) forwards; }
@keyframes heroZoom { to { transform: scale(1); } }
.hero-bg img { filter: saturate(1) brightness(1.12); }
/* 写真は明るく見せ、文字が乗る左側と下端だけを落とす */
.hero-bg::after { content: ''; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(21,33,58,0.68) 0%, rgba(21,33,58,0.5) 32%, rgba(21,33,58,0.06) 56%, rgba(21,33,58,0) 74%), linear-gradient(180deg, rgba(21,33,58,0.3) 0%, rgba(21,33,58,0) 16%, rgba(21,33,58,0) 64%, rgba(21,33,58,0.58) 100%); }
.hero h1, .hero .lead, .hero-aside, .hero .crumbs, .hero .eyebrow, .hero .ctas a { text-shadow: 0 1px 3px rgba(10,16,30,0.6), 0 0 18px rgba(10,16,30,0.35); }
.hero-inner { position: relative; z-index: 2; width: 100%; max-width: var(--max); margin: 0 auto; padding: 160px clamp(20px, 4vw, 48px) 72px; display: grid; grid-template-columns: 1.2fr .8fr; gap: 48px; align-items: end; }
.hero h1 { font-size: clamp(1.9rem, 3.9vw, 3.1rem); color: var(--paper); font-weight: 500; line-height: 1.45; margin: 20px 0 26px; }
.hero h1 em { font-style: normal; color: var(--brass-2); }
.hero .lead { max-width: 560px; color: rgba(246,243,238,0.94); font-size: clamp(0.98rem, 1.6vw, 1.08rem); font-weight: 300; margin-bottom: 38px; }
.hero-aside { border-left: 1px solid rgba(246,243,238,0.35); padding-left: 28px; font-size: 0.86rem; color: rgba(246,243,238,0.9); line-height: 2; }
.hero-aside strong { color: var(--paper); font-weight: 500; }
.hero-aside .latin { color: var(--brass-2); display: block; margin-bottom: 8px; }
@media (max-width: 900px) {
  .hero-inner { grid-template-columns: 1fr; padding-top: 130px; }
  .hero-aside { border-left: 0; border-top: 1px solid rgba(246,243,238,0.3); padding: 22px 0 0; }
  /* スマホは文字が写真の全幅にかかるので、全体をもう一段落とす */
  .hero-bg::after { background: linear-gradient(180deg, rgba(21,33,58,0.5) 0%, rgba(21,33,58,0.44) 45%, rgba(21,33,58,0.82) 100%); }
  .hero h1, .hero .lead, .hero-aside, .hero .crumbs, .hero .latin { text-shadow: 0 1px 3px rgba(10,16,30,0.55); }
}
/* 小さい画面の表：縦1文字に潰れないよう、横スクロールにする */
@media (max-width: 600px) {
  .legal table.tbl { display: block; overflow-x: auto; -webkit-overflow-scrolling: touch; }
  .legal table.tbl th, .legal table.tbl td { min-width: 7em; }
}
/* グリッドの中身が表や式で押し広げられないようにする */
.two > *, .cols3 > *, .lgrid > *, .contact .grid > *, :has(> .tbl-wrap), :has(> .formula) { min-width: 0; }

/* ---------- ヒーロー：紺地・文字だけ（下層ページ） ---------- */
.hero-plain { background: var(--ink); color: var(--paper); padding: 150px 0 72px; position: relative; overflow: hidden; }
.hero-plain::after { content: ''; position: absolute; right: -8%; bottom: -30%; width: 46vw; height: 46vw; max-width: 620px; max-height: 620px; border-radius: 50%; border: 1px solid rgba(216,192,138,0.25); pointer-events: none; }
.hero-plain h1 { color: var(--paper); font-size: clamp(1.7rem, 3.4vw, 2.7rem); font-weight: 500; line-height: 1.5; margin: 18px 0 20px; max-width: 820px; }
.hero-plain h1 em { font-style: normal; color: var(--brass-2); }
.hero-plain .lead { max-width: 680px; color: rgba(246,243,238,0.85); font-weight: 300; }
.hero-plain .latin { color: var(--brass-2); }
.hero-plain .ctas { margin-top: 32px; }
.crumbs { font-family: var(--sans); letter-spacing: 0.06em; font-size: 0.78rem; color: rgba(246,243,238,0.78); margin-bottom: 10px; }
.crumbs a { color: inherit; border: 0; }
.crumbs span { margin: 0 8px; }

/* ---------- 現れる動き ---------- */
.reveal { opacity: 0; transform: translateY(18px); animation: up 1.1s var(--ease) forwards; }
.reveal.d1 { animation-delay: .15s } .reveal.d2 { animation-delay: .3s } .reveal.d3 { animation-delay: .45s } .reveal.d4 { animation-delay: .6s }
@keyframes up { to { opacity: 1; transform: none; } }
.io { opacity: 0; transform: translateY(22px); transition: opacity 1s var(--ease), transform 1s var(--ease); }
.io.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .reveal, .io { opacity: 1; transform: none; animation: none; transition: none; } }

/* ---------- 罫線グリッド（カードの代わり） ---------- */
.lgrid { display: grid; border-top: 1px solid var(--line); border-left: 1px solid var(--line); }
.lgrid.c2 { grid-template-columns: repeat(2, 1fr); }
.lgrid.c3 { grid-template-columns: repeat(3, 1fr); }
.lgrid.c4 { grid-template-columns: repeat(4, 1fr); }
.lcell { border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); padding: 36px 28px 40px; display: flex; flex-direction: column; transition: background .4s; }
.lcell:hover { background: var(--white); }
.lcell .no { font-family: var(--latin); font-size: 2.2rem; color: var(--brass); line-height: 1; margin-bottom: 26px; font-weight: 400; }
.lcell h3 { margin-bottom: 14px; }
.lcell p { font-size: 0.9rem; color: var(--muted); }
.lcell > img:first-child { margin: -36px -28px 24px; width: calc(100% + 56px); max-width: none; aspect-ratio: 4/3; object-fit: cover; }
.lcell > img:not(:first-child) { margin: 0 0 18px; width: 100%; }
.section.dark .lgrid { border-color: var(--line-dark); }
.section.dark .lcell { border-color: var(--line-dark); }
.section.dark .lcell:hover { background: rgba(246,243,238,0.05); }
.section.dark .lcell .no { color: var(--brass-2); }
.section.dark .lcell p { color: rgba(246,243,238,0.8); }
@media (max-width: 900px) { .lgrid.c4, .lgrid.c3 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .lgrid.c4, .lgrid.c3, .lgrid.c2 { grid-template-columns: 1fr; } }

/* ---------- 番号付き3列（理由など） ---------- */
.cols3 { display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid var(--line); }
.col { padding: 40px 32px 44px 0; border-bottom: 1px solid var(--line); }
.col + .col { padding-left: 32px; border-left: 1px solid var(--line); }
.col .no { font-family: var(--latin); color: var(--brass); font-size: 0.85rem; letter-spacing: 0.2em; margin-bottom: 18px; }
.col h3 { font-size: 1.25rem; font-weight: 500; margin-bottom: 14px; }
.col p { font-size: 0.92rem; }
.section.dark .cols3, .section.dark .col { border-color: var(--line-dark); }
.section.dark .col .no { color: var(--brass-2); }
.section.dark .col p { font-weight: 300; }
@media (max-width: 860px) { .cols3 { grid-template-columns: 1fr; } .col + .col { padding-left: 0; border-left: 0; } }

/* ---------- 2カラム（写真＋文） ---------- */
.two { display: grid; grid-template-columns: 1.1fr .9fr; gap: 64px; align-items: center; }
.two.rev { grid-template-columns: .9fr 1.1fr; }
.two.top { align-items: start; }
.two img { width: 100%; }
.two h3 { font-size: clamp(1.3rem, 2.4vw, 1.7rem); font-weight: 500; margin-bottom: 18px; }
.two p { color: var(--muted); }
.two p + p { margin-top: 14px; }
.section.dark .two p { color: rgba(246,243,238,0.82); }
@media (max-width: 860px) { .two, .two.rev { grid-template-columns: 1fr; gap: 32px; } }

/* ---------- 番号付きリスト ---------- */
.nlist { list-style: none; counter-reset: n; }
.nlist li { counter-increment: n; display: grid; grid-template-columns: 44px 1fr; gap: 10px; padding: 18px 0; border-bottom: 1px solid var(--line); }
.nlist li::before { content: counter(n, decimal-leading-zero); font-family: var(--latin); color: var(--brass); font-size: 1.05rem; padding-top: 4px; }
.nlist li strong { display: block; font-family: var(--serif); font-weight: 600; color: var(--ink); font-size: 1.02rem; margin-bottom: 4px; }
.nlist li span, .nlist li p { font-size: 0.9rem; color: var(--muted); }
.section.dark .nlist li { border-color: var(--line-dark); }
.section.dark .nlist li strong { color: var(--paper); }
.section.dark .nlist li::before { color: var(--brass-2); }

/* ---------- チェック風リスト ---------- */
.dlist { list-style: none; }
.dlist li { padding: 12px 0 12px 22px; position: relative; font-size: 0.92rem; color: var(--muted); border-bottom: 1px solid var(--line); line-height: 1.8; }
.dlist li::before { content: ''; position: absolute; left: 0; top: 24px; width: 10px; height: 1px; background: var(--brass); }
.dlist li strong { color: var(--ink); font-weight: 500; }
.dlist.plain li { border-bottom: 0; padding: 6px 0 6px 22px; }
.dlist.plain li::before { top: 18px; }
.section.dark .dlist li { border-color: var(--line-dark); color: rgba(246,243,238,0.82); }
.section.dark .dlist li strong { color: var(--paper); }

/* ---------- 手順（横一列の線の上） ---------- */
.timeline { position: relative; display: grid; gap: 24px; margin-top: 56px; }
.timeline.c5 { grid-template-columns: repeat(5, 1fr); }
.timeline.c4 { grid-template-columns: repeat(4, 1fr); }
.timeline.c3 { grid-template-columns: repeat(3, 1fr); }
.timeline::before { content: ''; position: absolute; left: 0; right: 0; top: 7px; height: 1px; background: var(--line); }
.tl { position: relative; padding-top: 34px; }
.tl::before { content: ''; position: absolute; top: 0; left: 0; width: 15px; height: 15px; border-radius: 50%; background: var(--paper-2); border: 1px solid var(--ink); }
.section:not(.tint) .tl::before { background: var(--paper); }
.tl.by-client::before { background: var(--brass); border-color: var(--brass); }
.tl .who { font-family: var(--latin); font-size: 0.74rem; color: var(--brass); letter-spacing: 0.16em; display: block; margin-bottom: 6px; min-height: 1.2em; }
.tl h3 { font-size: 1.02rem; margin-bottom: 6px; }
.tl .days { font-family: var(--serif); color: var(--ink); font-size: 1.15rem; display: block; margin-bottom: 8px; }
.tl p { font-size: 0.86rem; color: var(--muted); }
.tl-note { margin-top: 44px; font-size: 0.84rem; color: var(--muted); }
@media (max-width: 900px) {
  .timeline, .timeline.c5, .timeline.c4, .timeline.c3 { grid-template-columns: 1fr; gap: 0; padding-left: 28px; }
  .timeline::before { left: 7px; right: auto; top: 0; bottom: 0; width: 1px; height: auto; }
  .tl { padding: 0 0 36px 0; }
  .tl::before { left: -28px; top: 6px; }
}

/* ---------- 表 ---------- */
table.tbl { width: 100%; border-collapse: collapse; }
table.tbl th, table.tbl td { padding: 16px 10px; border-bottom: 1px solid var(--line); text-align: left; font-weight: 400; vertical-align: top; font-size: 0.94rem; }
table.tbl thead th { font-family: var(--latin); letter-spacing: 0.14em; font-size: 0.78rem; color: var(--brass); border-bottom-color: var(--ink); text-transform: uppercase; }
table.tbl thead th.ja { font-family: var(--sans); letter-spacing: 0.06em; text-transform: none; font-size: 0.82rem; color: var(--muted); }
table.tbl tbody th { font-family: var(--serif); color: var(--ink); font-size: 1.02rem; font-weight: 500; }
table.tbl tbody th small, table.tbl td small { display: block; font-family: var(--sans); color: var(--muted); font-size: 0.76rem; letter-spacing: 0.04em; font-weight: 400; }
table.tbl td.num, table.tbl th.num { text-align: right; }
table.tbl td.num { font-family: var(--serif); color: var(--ink); font-size: 1.12rem; letter-spacing: 0.02em; white-space: nowrap; }
table.tbl td.num small { font-size: 0.72rem; display: inline; margin-left: 2px; }
.tbl-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; }
@media (max-width: 600px) { table.tbl th, table.tbl td { padding: 12px 6px; font-size: 0.84rem; } table.tbl td.num { font-size: 0.98rem; } }

/* ---------- 価格の大きな数字 ---------- */
.pricebig { font-family: var(--serif); color: var(--ink); font-size: clamp(1.6rem, 3vw, 2.2rem); line-height: 1.2; }
.pricebig small { font-family: var(--sans); font-size: 0.78rem; color: var(--muted); margin-left: 6px; }

/* ---------- 枠付きの案内（シミュレーターなど） ---------- */
.panel { border: 1px solid var(--ink); padding: 22px 26px; display: flex; justify-content: space-between; align-items: center; gap: 20px; transition: background .35s; color: inherit; }
.panel:hover { background: var(--white); }
.panel b { font-family: var(--serif); font-weight: 600; color: var(--ink); display: block; }
.panel span { font-size: 0.84rem; color: var(--muted); }
.panel i { font-style: normal; font-family: var(--latin); font-size: 1.2rem; color: var(--brass); flex: none; }
.box { border: 1px solid var(--line); padding: 28px 30px; background: rgba(255,255,255,0.5); }
.box.dark { background: rgba(246,243,238,0.06); border-color: var(--line-dark); }
.box h3 { margin-bottom: 12px; }
.kv { display: grid; grid-template-columns: auto 1fr; gap: 10px 22px; font-size: 0.9rem; }
.kv dt { color: var(--brass); font-family: var(--latin); letter-spacing: 0.14em; font-size: 0.82rem; padding-top: 3px; }
.kv dd { color: var(--muted); }
.section.dark .kv dd { color: rgba(246,243,238,0.85); }

/* ---------- 写真受付ページの画面（小） ---------- */
.upl-shot { margin: 0 0 22px; }
.upl-shot img { width: 100%; height: auto; display: block; border: 1px solid var(--line-dark); }
.upl-shot figcaption { margin-top: 10px; font-size: 0.78rem; color: rgba(246,243,238,0.7); letter-spacing: .04em; }
.upl-shot.light img { border-color: var(--line); }
.upl-shot.light figcaption { color: var(--muted); }

/* ---------- 作品・写真 ---------- */
.work figure img { width: 100%; box-shadow: 0 30px 60px -30px rgba(21,33,58,0.45); }
.work figcaption { margin-top: 14px; font-size: 0.86rem; color: var(--muted); }
.work figcaption strong { color: var(--ink); font-weight: 500; }
.gallery { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.gallery figure img { aspect-ratio: 1/1; object-fit: cover; width: 100%; }
.gallery figcaption { margin-top: 12px; font-size: 0.86rem; color: var(--muted); border-left: 1px solid var(--brass); padding-left: 10px; line-height: 1.6; }
.gallery figcaption b { display: block; font-family: var(--serif); color: var(--ink); font-weight: 600; }
@media (max-width: 760px) { .gallery { grid-template-columns: repeat(2, 1fr); gap: 14px; } }

/* ---------- 引用（お客様の声） ---------- */
.quotes { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; border-top: 1px solid var(--line); }
.quote { padding: 36px 32px 36px 0; border-bottom: 1px solid var(--line); }
.quote + .quote { padding-left: 32px; border-left: 1px solid var(--line); }
.quote p { font-family: var(--serif); font-size: 1rem; color: var(--ink); line-height: 2; }
.quote p::before { content: '“'; font-family: var(--latin); color: var(--brass); font-size: 2.4rem; line-height: 0; margin-right: 6px; vertical-align: -0.4em; }
.quote cite { display: block; margin-top: 18px; font-style: normal; font-size: 0.82rem; color: var(--muted); }
@media (max-width: 860px) { .quotes { grid-template-columns: 1fr; } .quote + .quote { padding-left: 0; border-left: 0; } }

/* ---------- FAQ ---------- */
.faq { max-width: 820px; border-top: 1px solid var(--line); }
.faq-item { border-bottom: 1px solid var(--line); }
.faq-q { width: 100%; text-align: left; background: none; border: 0; cursor: pointer; padding: 22px 48px 22px 0; font-family: var(--serif); font-size: 1.05rem; color: var(--ink); position: relative; line-height: 1.6; }
.faq-q::after { content: '+'; position: absolute; right: 4px; top: 50%; transform: translateY(-50%); font-family: var(--latin); font-size: 1.6rem; color: var(--brass); transition: transform .35s var(--ease); }
.faq-item.open .faq-q::after { transform: translateY(-50%) rotate(45deg); }
.faq-a { max-height: 0; overflow: hidden; transition: max-height .5s var(--ease); }
.faq-item.open .faq-a { max-height: 900px; }
.faq-a p, .faq-a ul { padding: 0 0 24px; font-size: 0.94rem; color: var(--muted); max-width: 720px; }
.faq-a ul { padding-left: 1.2em; }

/* ---------- フォーム ---------- */
.form { background: var(--paper); color: var(--text); padding: 40px; border: 1px solid var(--line); }
.section.dark .form { border: 0; }
.frow { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.fg { margin-bottom: 20px; }
.fg label { display: block; font-size: 0.8rem; letter-spacing: 0.08em; color: var(--muted); margin-bottom: 8px; }
.fg input, .fg select, .fg textarea { width: 100%; border: 0; border-bottom: 1px solid var(--ink); background: transparent; padding: 10px 0; font-family: var(--sans); font-size: 1rem; color: var(--text); outline: none; border-radius: 0; transition: border-color .3s; }
.fg input:focus, .fg select:focus, .fg textarea:focus { border-bottom-color: var(--brass); }
.fg textarea { resize: vertical; min-height: 120px; }
.fg small { display: block; font-size: 0.76rem; color: var(--muted); margin-top: 6px; }
.fg input[type=file] { border: 0; padding: 6px 0; font-size: 0.86rem; }
.fg input[type=checkbox], .fg input[type=radio] { width: auto; margin-right: 8px; accent-color: var(--ink); }
.form .btn { margin-top: 10px; }
@media (max-width: 760px) { .form { padding: 28px 22px; } .frow { grid-template-columns: 1fr; gap: 0; } }

/* ---------- 選択肢（シミュレーター・注文フォーム） ---------- */
.opt { position: relative; }
.opt input { position: absolute; opacity: 0; inset: 0; }
.opt label { display: block; border: 1px solid var(--line); padding: 16px 18px; cursor: pointer; background: transparent; transition: all .3s; }
.opt input:checked + label { border-color: var(--ink); background: var(--white); box-shadow: inset 0 0 0 1px var(--ink); }
.opt .opt-title { font-family: var(--serif); font-weight: 600; color: var(--ink); display: block; }
.opt .opt-desc, .opt .size-mm { display: block; font-size: 0.8rem; color: var(--muted); }
.opt .opt-price { display: block; font-family: var(--serif); color: var(--brass); margin-top: 4px; }
.opts { display: grid; gap: 12px; }
.opts.c2 { grid-template-columns: repeat(2, 1fr); }
.opts.c3 { grid-template-columns: repeat(3, 1fr); }
.opts.c4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 700px) { .opts.c4, .opts.c3 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 420px) { .opts.c4, .opts.c3, .opts.c2 { grid-template-columns: 1fr; } }

/* ---------- 規約・長文 ---------- */
.legal h2 { font-size: 1.3rem; margin: 56px 0 18px; padding-bottom: 10px; border-bottom: 1px solid var(--line); }
.legal h2:first-child { margin-top: 0; }
.legal h3 { font-size: 1.05rem; margin: 28px 0 10px; }
.legal p, .legal li { font-size: 0.94rem; color: var(--text); margin-bottom: 12px; }
.legal ul, .legal ol { padding-left: 1.4em; margin-bottom: 14px; }
.legal table { margin: 16px 0 24px; }
.legal .date { font-size: 0.84rem; color: var(--muted); margin-top: 48px; text-align: right; }

/* ---------- 問い合わせ帯 ---------- */
.contact { background: var(--ink); color: var(--paper); }
.contact .grid { display: grid; grid-template-columns: .8fr 1.2fr; gap: 64px; align-items: start; }
.contact h2 { color: var(--paper); margin: 14px 0 20px; }
.contact .intro p { color: rgba(246,243,238,0.8); font-weight: 300; }
.contact .lines { margin-top: 36px; font-size: 0.9rem; color: rgba(246,243,238,0.8); line-height: 2.1; }
.contact .lines a { color: var(--paper); border-bottom: 1px solid var(--brass); }
@media (max-width: 860px) { .contact .grid { grid-template-columns: 1fr; gap: 36px; } }

/* ---------- 締めのCTA帯（フォームなし） ---------- */
.cta-band { background: var(--ink); color: var(--paper); padding: clamp(72px, 9vw, 110px) 0; text-align: center; }
.cta-band h2 { color: var(--paper); margin: 14px 0 18px; }
.cta-band p { color: rgba(246,243,238,0.8); font-weight: 300; max-width: 620px; margin: 0 auto 32px; }
.cta-band .ctas { justify-content: center; }

/* ---------- フッター（全ページ共通） ---------- */
.foot { background: var(--ink); color: rgba(246,243,238,0.7); border-top: 1px solid var(--line-dark); padding: 56px 0 36px; font-size: 0.86rem; }
.fgrid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 36px; }
.fgrid h5 { font-family: var(--latin); letter-spacing: 0.18em; font-size: 0.78rem; color: var(--brass-2); margin-bottom: 16px; font-weight: 500; text-transform: uppercase; }
.fgrid ul { list-style: none; }
.fgrid li { margin-bottom: 9px; color: rgba(246,243,238,0.7); }
.fgrid li a { border: 0; color: inherit; }
.fgrid a:hover { color: var(--paper); }
.fbrand { font-family: var(--serif); font-size: 1.2rem; color: var(--paper); margin-bottom: 14px; letter-spacing: 0.08em; }
.fgrid p { color: rgba(246,243,238,0.7); font-weight: 300; }
.fbottom { margin-top: 44px; padding-top: 22px; border-top: 1px solid var(--line-dark); font-size: 0.78rem; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 10px; }
.fbottom a { border: 0; }
@media (max-width: 860px) { .fgrid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .fgrid { grid-template-columns: 1fr; } }

/* ---------- 2026-10-17 統一の追加分 ---------- */
/* 注記のリスト（※ を自動で付ける） */
.notes { list-style: none; margin: 18px 0 0; padding: 0; }
.notes li { position: relative; padding-left: 1.4em; font-size: 0.86rem; color: var(--muted); line-height: 1.9; margin-bottom: 6px; }
.notes li::before { content: '※'; position: absolute; left: 0; top: 0; }
.notes li a { color: var(--ink); border-bottom: 1px solid var(--brass); }
/* タイムライン：お客様側の工程の表記 */
.tl .who em { font-style: normal; font-family: var(--sans); letter-spacing: 0.08em; font-size: 0.72rem; margin-left: 10px; color: var(--brass); }
/* フォームの必須・任意の表記 */
.fg label .req, .fg label .any, .glabel .req { font-family: var(--sans); font-size: 0.68rem; letter-spacing: 0.1em; margin-left: 8px; padding: 1px 6px; border: 1px solid currentColor; vertical-align: 1px; }
.fg label .req, .glabel .req { color: var(--brass); }
.fg label .any { color: var(--muted); border-color: var(--line); }
/* 料金表（受注制作）の幅 */
table.price-std td:not(.num) { color: var(--muted); font-size: 0.86rem; }
/* スマホで長いリストを途中までにする（data-sp-more） */
.sp-more-btn { display: none; }
@media (max-width: 640px) {
  [data-sp-more].is-folded > .sp-hide { display: none; }
  .sp-more-btn { display: block; width: 100%; margin-top: 18px; padding: 14px 18px; background: transparent; border: 1px solid var(--ink); color: var(--ink); font-family: var(--sans); font-size: 0.88rem; letter-spacing: 0.06em; cursor: pointer; }
}

/* ---------- スマホで押しやすく・読みやすく（2026-10-17） ---------- */
.fg label .req, .fg label .any, .glabel .req { font-size: 0.74rem; }
@media (max-width: 760px) {
  /* トップの「用途から選ぶ」：指で押しやすい高さに */
  .hero-uses { gap: 4px 18px; }
  .hero-uses a { display: inline-block; padding: 9px 0 7px; }
  /* 文字入れ：背景の切り替えと書体の絞り込み */
  .bg-switch { gap: 10px; }
  .bg-switch button { width: 40px; height: 40px; }
  .filter-chips button { padding: 11px 16px; font-size: 0.86rem; }
  /* 料金シミュレーターの「作例を見る」などの小さなリンク */
  .q .more { padding: 8px 0 6px; }
  .link-table a { display: inline-block; padding: 10px 0 4px; }
  /* 戻るリンク */
  .back { display: inline-block; padding: 10px 0 6px; }
}

/* ---------- パネル・額装の見本：全体写真の右下に「角の拡大」を小さく重ねる ---------- */
div.inset-pair { display: block !important; position: relative; }
div.inset-pair > img { display: block; width: 100%; height: auto; }
div.inset-pair .inset { position: absolute; right: 10px; bottom: 10px; width: 30%; background: #fff; padding: 3px; box-shadow: 0 4px 14px rgba(21,33,58,0.28); }
div.inset-pair .inset img { display: block; width: 100%; height: auto; aspect-ratio: 1 / 1; object-fit: cover; object-position: 85% 35%; }
div.inset-pair .inset em { position: absolute; left: 3px; top: 3px; font-style: normal; font-size: 0.66rem; letter-spacing: 0.06em; color: #fff; background: rgba(21,33,58,0.78); padding: 2px 6px; line-height: 1.5; }
@media (max-width: 760px) { div.inset-pair .inset { width: 34%; right: 8px; bottom: 8px; } }

/* ---------- スマホ：アイキャッチ写真を切らずに全体を見せる（写真の下に文章） ---------- */
@media (max-width: 760px) {
  .hero, .hero.short { min-height: 0; display: block; padding-top: 72px; }
  .hero-bg { position: relative; inset: auto; }
  .hero-bg img { height: auto; object-fit: contain; transform: none; animation: none; }
  .hero-bg::after { background: linear-gradient(180deg, rgba(21,33,58,0) 70%, rgba(21,33,58,0.55) 100%); }
  .hero-inner { padding-top: 28px; padding-bottom: 56px; }
  .hero h1 { margin-top: 12px; }
}
