/* ---- 有限会社ダイワ印刷 ---- */
:root {
  --paper: #fbfaf7;
  --white: #fff;
  --ink: #1b1b1b;
  --text: #2a2a2a;
  --muted: #66655f;
  --line: #e2e0d9;
  --accent: #0075b0;
  --c: #00a0e9; --m: #e4007f; --y: #fff100; --k: #231815;
  --sans: "Zen Kaku Gothic New", "Hiragino Sans", "Hiragino Kaku Gothic ProN", "Yu Gothic", "Meiryo", sans-serif;
  --serif: "Shippori Mincho", "Hiragino Mincho ProN", "Yu Mincho", serif;
  --en: "Jost", "Helvetica Neue", Arial, sans-serif;
  --pad: clamp(20px, 5vw, 56px);
  --max: 1120px;
  --head: 72px;
}
*, *::before, *::after { box-sizing: border-box; }
html { scroll-padding-top: calc(var(--head) + 16px); -webkit-text-size-adjust: 100%; }
/* なめらかなスクロールはメニューのリンク用。ページ読み込み時（#付きURL）には効かせず、すぐその位置を表示する */
html.is-ready { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html.is-ready { scroll-behavior: auto; } }
body {
  margin: 0; background: var(--paper); color: var(--text);
  font-family: var(--sans); font-size: 16px; line-height: 1.9; letter-spacing: .04em;
  font-feature-settings: "palt" 0; -webkit-font-smoothing: antialiased;
  overflow-wrap: anywhere; line-break: strict;
  overflow-x: clip; /* 万一はみ出す要素があっても、スマホで横にずれないように */
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
a:hover { color: var(--accent); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
h1, h2, h3 { font-weight: 500; margin: 0; }
p { margin: 0; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: -9999px; top: 0; z-index: 100; background: var(--ink); color: #fff; padding: 8px 12px; }
.skip:focus { left: 8px; top: 8px; }

/* ---- header ---- */
.site-header {
  position: sticky; top: 0; z-index: 30; height: var(--head);
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
  padding: 0 var(--pad);
  border-bottom: 1px solid transparent; transition: border-color .3s;
}
/* 半透明の背景は疑似要素に。ヘッダー本体に backdrop-filter を付けると、
   中のスマホ用メニュー（position: fixed）がヘッダーの高さに閉じ込められてしまう */
.site-header::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: rgba(251, 250, 247, .92); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
}
.site-header.is-scrolled { border-bottom-color: var(--line); }
.logo { position: relative; z-index: 32; display: inline-flex; align-items: center; gap: 12px; text-decoration: none; color: var(--ink); }
.logo:hover { color: var(--ink); }
.logo img { max-height: 40px; width: auto; }
.logo-mark { width: 26px; height: 26px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.2; }
.logo-text { display: flex; flex-direction: column; line-height: 1.25; }
.logo-name { font-size: 16px; font-weight: 700; letter-spacing: .12em; }
.logo-en { font-family: var(--en); font-size: 10px; letter-spacing: .32em; color: var(--muted); }
.site-nav ul { list-style: none; margin: 0; padding: 0; display: flex; gap: clamp(18px, 2.6vw, 36px); }
.site-nav a { display: flex; flex-direction: column; align-items: center; text-decoration: none; color: var(--ink); line-height: 1.35; }
.nav-en { font-family: var(--en); font-size: 10px; letter-spacing: .24em; text-transform: uppercase; color: var(--muted); }
.nav-ja { font-size: 13px; letter-spacing: .1em; }
.site-nav a:hover .nav-ja, .site-nav a:hover .nav-en { color: var(--accent); }
.menu-btn { display: none; }

@media (max-width: 900px) {
  :root { --head: 60px; }
  .logo-name { font-size: 15px; }
  .menu-btn {
    display: block; position: relative; z-index: 32; width: 44px; height: 44px; margin-right: -10px;
    background: none; border: 0; color: var(--ink); cursor: pointer;
  }
  .menu-btn span:not(.sr) { position: absolute; left: 11px; right: 11px; height: 1.5px; background: currentColor; transition: transform .3s, top .3s; }
  .menu-btn span:nth-child(1) { top: 18px; }
  .menu-btn span:nth-child(2) { top: 26px; }
  .menu-open .menu-btn span:nth-child(1) { top: 22px; transform: rotate(30deg); }
  .menu-open .menu-btn span:nth-child(2) { top: 22px; transform: rotate(-30deg); }
  .site-nav {
    position: fixed; inset: 0; z-index: 31; background: var(--paper);
    display: flex; align-items: center; justify-content: center;
    padding: calc(var(--head) + 16px) 24px 32px; overflow-y: auto; overscroll-behavior: contain;
    opacity: 0; visibility: hidden; transition: opacity .3s, visibility 0s linear .3s;
  }
  /* 開くときは即座に表示（直後にメニュー項目へフォーカスを移せるように）、閉じるときはフェード後に非表示 */
  .menu-open .site-nav { opacity: 1; visibility: visible; transition: opacity .3s, visibility 0s; }
  html.menu-lock { overflow: hidden; }
  .site-nav ul { flex-direction: column; gap: 26px; text-align: center; margin: auto 0; }
  .site-nav a { padding: 4px 16px; }
  .nav-ja { font-size: 17px; }
  .nav-en { font-size: 11px; }
}

/* ---- hero ---- */
.hero { padding: clamp(28px, 4vw, 48px) var(--pad) clamp(40px, 6vw, 72px); }
.hero-frame {
  position: relative; max-width: var(--max); margin: 0 auto;
  min-height: min(calc(100svh - var(--head) - 120px), 760px); min-height: min(calc(100vh - var(--head) - 120px), 760px);
  display: grid; grid-template-columns: 1fr auto; grid-template-rows: 1fr auto;
  gap: 32px; padding: clamp(32px, 6vw, 80px);
}
@supports (height: 100svh) { .hero-frame { min-height: min(calc(100svh - var(--head) - 120px), 760px); } }
/* トンボ（トリムマーク）。線は枠の外側へ伸びるので、長さ＋すき間が左右の余白（--pad）に収まる大きさにする */
.hero { --crop-len: clamp(12px, 2vw, 28px); --crop-gap: clamp(5px, .8vw, 10px); }
.crop { position: absolute; width: 0; height: 0; color: var(--ink); }
.crop::before, .crop::after { content: ""; position: absolute; background: currentColor; }
.crop::before { width: var(--crop-len); height: 1px; }
.crop::after { width: 1px; height: var(--crop-len); }
.crop--tl { top: 0; left: 0; } .crop--tl::before { right: var(--crop-gap); top: 0; } .crop--tl::after { bottom: var(--crop-gap); left: 0; }
.crop--tr { top: 0; right: 0; } .crop--tr::before { left: var(--crop-gap); top: 0; } .crop--tr::after { bottom: var(--crop-gap); right: 0; }
.crop--bl { bottom: 0; left: 0; } .crop--bl::before { right: var(--crop-gap); bottom: 0; } .crop--bl::after { top: var(--crop-gap); left: 0; }
.crop--br { bottom: 0; right: 0; } .crop--br::before { left: var(--crop-gap); bottom: 0; } .crop--br::after { top: var(--crop-gap); right: 0; }

.hero-catch {
  grid-column: 1 / -1; grid-row: 1; align-self: center;
  font-family: var(--serif); font-weight: 500; color: var(--ink);
  font-size: clamp(28px, 4.6vw, 56px); line-height: 1.6; letter-spacing: .12em;
}
.hero-catch.is-vertical {
  grid-column: 2; justify-self: end; align-self: start;
  writing-mode: vertical-rl; text-orientation: upright;
  font-size: clamp(26px, 3.8vw, 46px); line-height: 1.9; letter-spacing: .24em;
  max-height: 100%;
}
.hero-sub { grid-column: 1; grid-row: 2; align-self: end; max-width: 34em; font-size: 15px; line-height: 2; color: var(--text); word-break: auto-phrase; }
.hero-label {
  grid-column: 2; grid-row: 2; align-self: end; justify-self: end;
  font-family: var(--en); font-size: 11px; letter-spacing: .3em; text-transform: uppercase; color: var(--muted);
  display: flex; align-items: center; gap: 12px;
}
.hero-label::before { content: ""; width: 40px; height: 1px; background: var(--muted); }
.hero.has-img .hero-frame { grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); grid-template-rows: auto 1fr auto; }
.hero-img { grid-column: 1; grid-row: 1 / 3; margin: 0; min-height: 320px; position: relative; }
.hero-img img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hero.has-img .hero-catch { grid-column: 2; grid-row: 1 / 3; justify-self: center; align-self: center; }
.hero.has-img .hero-sub { grid-column: 1 / -1; grid-row: 3; }
.hero.has-img .hero-label { grid-row: 3; }
@media (max-width: 760px) {
  .hero-frame { grid-template-columns: 1fr; grid-template-rows: auto auto auto; gap: 28px; padding: 40px 26px; min-height: 0; }
  .hero-catch.is-vertical { grid-column: 1; justify-self: center; min-height: 13em; }
  .hero-sub { grid-row: 2; font-size: 14px; letter-spacing: .02em; }
  .hero-label { grid-column: 1; grid-row: 3; justify-self: start; letter-spacing: .2em; font-size: 10.5px; }
  .hero-label::before { width: 24px; }
}
@media (max-width: 400px) {
  .hero-label { letter-spacing: .12em; white-space: nowrap; }
  .hero-label::before { display: none; }
  .hero.has-img .hero-frame { grid-template-columns: 1fr; grid-template-rows: auto auto auto auto; }
  .hero-img { grid-row: 1; aspect-ratio: 4 / 3; min-height: 0; }
  .hero.has-img .hero-catch { grid-column: 1; grid-row: 2; }
  .hero.has-img .hero-sub { grid-row: 3; }
  .hero.has-img .hero-label { grid-row: 4; }
}

/* ---- sections ---- */
.sec {
  max-width: calc(var(--max) + var(--pad) * 2); margin: 0 auto;
  padding: clamp(72px, 10vw, 128px) var(--pad);
  display: grid; grid-template-columns: minmax(240px, 1fr) minmax(0, 2.2fr); gap: 40px clamp(40px, 6vw, 88px);
  border-top: 1px solid var(--line);
}
.hero + .sec { border-top: 0; }
.sec-head { align-self: start; position: sticky; top: calc(var(--head) + 32px); }
.sec-label {
  font-family: var(--en); font-size: 12px; font-weight: 500; letter-spacing: .28em; text-transform: uppercase; color: var(--accent);
  display: flex; align-items: center; gap: 12px; margin-bottom: 14px;
}
.sec-label::before { content: ""; width: 8px; height: 8px; background: currentColor; }
.sec-title { font-family: var(--serif); font-size: clamp(21px, 2vw, 25px); line-height: 1.7; letter-spacing: .08em; color: var(--ink); word-break: auto-phrase; }
.sec-body { min-width: 0; }
@media (max-width: 900px) {
  .sec { grid-template-columns: 1fr; gap: 36px; }
  .sec-head { position: static; }
}

/* 文章 */
.prose > * + * { margin-top: 1.4em; }
.prose h2 { font-family: var(--serif); font-size: 20px; color: var(--ink); margin-top: 2em; }
.prose h3 { font-size: 17px; font-weight: 700; color: var(--ink); margin-top: 1.8em; }
.prose ul, .prose ol { padding-left: 1.3em; }
.prose li + li { margin-top: .3em; }
.prose blockquote { margin: 0; padding-left: 1.2em; border-left: 2px solid var(--line); color: var(--muted); }
.prose hr { border: 0; border-top: 1px solid var(--line); }
.prose dl { display: grid; grid-template-columns: max-content 1fr; gap: .4em 1.6em; }
.prose dt { color: var(--muted); }
.prose dd { margin: 0; }
.prose dd + dd { grid-column: 2; }
.prose strong { font-weight: 700; color: var(--ink); }
.prose a { text-underline-offset: 3px; }
.prose .table-wrap { overflow-x: auto; }
.prose table { border-collapse: collapse; width: 100%; }
.prose th, .prose td { text-align: left; padding: 10px 16px 10px 0; border-bottom: 1px solid var(--line); }
.lead { font-size: clamp(16px, 1.5vw, 17.5px); line-height: 2.15; text-align: justify; }
/* 1行の文字数が少ないスマホでは、両端揃えだと字間が不自然に空く行が出るため左揃えに */
@media (max-width: 600px) { .lead { text-align: left; } }
.intro { margin-bottom: 40px; color: var(--text); }
.note { margin-top: 24px; font-size: 13.5px; color: var(--muted); }

.text-block.has-img { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: 48px; align-items: start; }
.text-block.img-left .text-img { order: -1; }
.text-img { margin: 0; }
.text-img figcaption { font-size: 12px; color: var(--muted); margin-top: 10px; }
@media (max-width: 760px) { .text-block.has-img { grid-template-columns: 1fr; gap: 28px; } .text-block.img-left .text-img { order: 0; } }

/* 業務内容 */
.svc { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--ink); }
.svc li { display: grid; grid-template-columns: 64px 1fr; gap: 16px; padding: 26px 0; border-bottom: 1px solid var(--line); }
.svc-no { font-family: var(--en); font-size: 13px; font-weight: 500; letter-spacing: .12em; color: var(--accent); padding-top: 4px; }
.svc h3 { font-size: clamp(16px, 1.6vw, 18px); font-weight: 500; letter-spacing: .08em; line-height: 1.7; color: var(--ink); }
.svc p { margin-top: 6px; font-size: 14.5px; color: var(--muted); line-height: 1.9; }
@media (max-width: 600px) { .svc li { grid-template-columns: 44px 1fr; gap: 8px; padding: 22px 0; } }

/* 会社概要などの表 */
.spec { margin: 0; border-top: 1px solid var(--ink); }
.spec > div { display: grid; grid-template-columns: 9em 1fr; gap: 24px; padding: 20px 0; border-bottom: 1px solid var(--line); }
.spec dt { color: var(--muted); font-size: 14px; letter-spacing: .1em; padding-top: 1px; }
.spec dd { margin: 0; color: var(--ink); }
@media (max-width: 600px) { .spec > div { grid-template-columns: 1fr; gap: 2px; padding: 16px 0; } .spec dt { font-size: 12.5px; } }
.spec--compact { border-top: 0; }
.spec--compact > div { grid-template-columns: 6em 1fr; padding: 12px 0; font-size: 14.5px; }
@media (max-width: 600px) { .spec--compact > div { grid-template-columns: 5em 1fr; gap: 12px; } }

/* 取引先などの名前一覧 */
.names { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); column-gap: 32px; border-top: 1px solid var(--ink); }
.names li { padding: 14px 0; border-bottom: 1px solid var(--line); font-size: 15px; color: var(--ink); line-height: 1.6; }
@media (max-width: 600px) { .names { grid-template-columns: 1fr 1fr; column-gap: 20px; } .names li { font-size: 13.5px; } }

/* ギャラリー */
.gallery { list-style: none; margin: 0; padding: 0; display: grid; gap: 20px; }
.gallery--grid { grid-template-columns: repeat(auto-fill, minmax(min(220px, 40vw), 1fr)); }
.gallery--grid img { aspect-ratio: 4 / 3; object-fit: cover; width: 100%; }
.gallery--column { gap: 40px; }
.gallery a { display: block; }
.gallery .cap { font-size: 12.5px; color: var(--muted); margin-top: 8px; }

/* 制作事例 */
.works { list-style: none; margin: 0; padding: 0; display: grid; gap: 48px 28px; grid-template-columns: repeat(3, minmax(0, 1fr)); }
.works--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.works--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 40px 20px; }
@media (max-width: 1000px) { .works--4 { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
/* 見出しが左に並ぶ幅（901〜1180px）では本文欄が狭いので2列に */
@media (min-width: 901px) and (max-width: 1180px) { .works, .works--4 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 760px) { .works, .works--2, .works--4 { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 32px 16px; } }
.works > li { position: relative; }
.works .is-draft { outline-offset: 4px; }
.work-card { display: grid; grid-template-columns: auto 1fr; column-gap: 12px; text-decoration: none; color: var(--ink); }
.work-thumb { grid-column: 1 / -1; display: block; aspect-ratio: 4 / 3; overflow: hidden; background: #eceae4; margin-bottom: 14px; position: relative; }
.work-thumb::after { content: ""; position: absolute; inset: 0; border: 1px solid rgba(0, 0, 0, .06); pointer-events: none; }
.work-thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s cubic-bezier(.2, .7, .2, 1), opacity .3s; }
.work-card:hover .work-thumb img { transform: scale(1.04); }
.work-no { font-family: var(--en); font-size: 12px; font-weight: 500; letter-spacing: .12em; color: var(--accent); padding-top: 3px; }
.work-name { font-size: 15.5px; font-weight: 500; letter-spacing: .08em; line-height: 1.6; }
.work-client { grid-column: 2; font-size: 12.5px; color: var(--muted); line-height: 1.6; margin-top: 2px; }
.work-card:hover .work-name { color: var(--accent); }
@media (max-width: 600px) { .work-name { font-size: 14px; } .work-client { font-size: 11.5px; } .work-card { column-gap: 8px; } }

/* 制作事例の詳細（JS有効時は重ねて表示） */
.work { padding: 56px 0 0; }
.js .work { display: none; }
.js .work.is-open {
  display: block; position: fixed; inset: 0; z-index: 60; overflow-y: auto; overscroll-behavior: contain;
  background: var(--paper); padding: 0; animation: work-in .35s ease;
}
@keyframes work-in { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { .js .work.is-open { animation: none; } }
html.work-lock { overflow: hidden; }
.work-bar {
  position: sticky; top: 0; z-index: 2; height: var(--head); display: flex; align-items: center; justify-content: space-between;
  padding: 0 var(--pad); background: rgba(251, 250, 247, .94); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}
.work:not(.is-open) .work-bar { position: static; padding: 0; background: none; }
.work-count { display: flex; align-items: center; gap: 16px; font-family: var(--en); font-size: 12px; letter-spacing: .18em; color: var(--muted); }
.work-count .sec-label { margin: 0; }
.work-close { position: relative; width: 44px; height: 44px; margin-right: -10px; color: var(--ink); }
.work-close::before, .work-close::after { content: ""; position: absolute; left: 11px; right: 11px; top: 50%; height: 1.5px; background: currentColor; transform: rotate(45deg); }
.work-close::after { transform: rotate(-45deg); }
.work:not(.is-open) .work-close { display: none; }
.work-body {
  max-width: calc(var(--max) + var(--pad) * 2); margin: 0 auto; padding: clamp(40px, 6vw, 80px) var(--pad);
  display: grid; grid-template-columns: minmax(240px, 1fr) minmax(0, 2.2fr); gap: 40px clamp(40px, 6vw, 88px); align-items: start;
}
.work-info { position: sticky; top: calc(var(--head) + 40px); }
.work:not(.is-open) .work-info { position: static; }
.work-title { font-family: var(--serif); font-size: clamp(22px, 2.2vw, 28px); line-height: 1.6; letter-spacing: .1em; color: var(--ink); word-break: auto-phrase; }
.work-meta { margin-top: 10px; font-size: 13.5px; color: var(--muted); letter-spacing: .06em; }
.work-info .prose { margin-top: 28px; font-size: 15px; }
.work-imgs { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: clamp(20px, 3vw, 40px); }
.work-imgs a { display: block; cursor: zoom-in; }
.work-imgs a { width: fit-content; max-width: 100%; margin: 0 auto; }
.work-imgs img { width: auto; max-width: 100%; max-height: calc(100vh - var(--head) - 64px); background: #eceae4; box-shadow: 0 0 0 1px rgba(0, 0, 0, .07); }
.work-imgs .cap { font-size: 12.5px; color: var(--muted); margin-top: 8px; }
.work-nav {
  max-width: calc(var(--max) + var(--pad) * 2); margin: 0 auto; padding: 32px var(--pad) 56px;
  display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 24px; border-top: 1px solid var(--line);
}
.work-nav a { text-decoration: none; color: var(--ink); font-size: 14px; letter-spacing: .06em; display: flex; flex-direction: column; gap: 2px; }
.work-nav small { font-family: var(--en); font-size: 11px; letter-spacing: .24em; text-transform: uppercase; color: var(--muted); }
.work-next { text-align: right; align-items: flex-end; }
.work-back { font-size: 13px; color: var(--muted) !important; }
.work-nav a:hover { color: var(--accent); }
.work:not(.is-open) .work-nav { display: none; }
@media (max-width: 900px) {
  .work-body { grid-template-columns: 1fr; gap: 32px; padding-top: 32px; }
  .work-info { position: static; }
}
@media (max-width: 600px) {
  .work-nav { grid-template-columns: 1fr 1fr; }
  .work-back { display: none !important; }
  .work-nav a { font-size: 13px; }
}

/* お問い合わせ */
.contact-info { display: grid; grid-template-columns: 1fr; gap: 8px; align-items: start; }
.contact-form { margin-top: 56px; padding-top: 48px; border-top: 1px solid var(--line); }
.tel {
  display: inline-flex; align-items: baseline; gap: 14px; text-decoration: none; color: var(--ink);
  font-family: var(--en); font-size: clamp(28px, 3.4vw, 38px); font-weight: 400; letter-spacing: .06em; line-height: 1.2;
  margin-bottom: 18px;
}
.tel small { font-size: 13px; letter-spacing: .2em; color: var(--muted); }
.maplink { font-size: 13px; color: var(--muted); }
.form { display: flex; flex-direction: column; gap: 22px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; }
@media (max-width: 600px) { .form-row { grid-template-columns: 1fr; } }
.field { display: flex; flex-direction: column; gap: 8px; font-size: 13.5px; color: var(--ink); }
.field em { font-style: normal; font-size: 11px; color: var(--m); margin-left: 6px; letter-spacing: .1em; }
.field input, .field textarea {
  font: inherit; font-size: 16px; color: var(--ink); background: var(--white);
  border: 1px solid #cfcdc6; border-radius: 2px; padding: 12px 14px; width: 100%;
  transition: border-color .2s;
}
.field textarea { resize: vertical; line-height: 1.8; }
.field input:focus, .field textarea:focus { outline: none; border-color: var(--ink); box-shadow: 0 0 0 3px rgba(0, 117, 176, .15); }
.field textarea::placeholder { color: #9a988f; font-size: 14px; }
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 12px; align-self: flex-start;
  font: inherit; font-size: 15px; letter-spacing: .2em; color: #fff; background: var(--ink); text-decoration: none;
  border: 1px solid var(--ink); border-radius: 2px; padding: 16px 56px; cursor: pointer; transition: background .2s, color .2s;
}
.btn:hover { background: var(--white); color: var(--ink); }
@media (max-width: 600px) { .btn { align-self: stretch; } }
.hp { position: absolute; left: -9999px; }
.notice { padding: 24px; background: var(--white); border-left: 3px solid var(--accent); }
.notice:focus, .confirm-lead:focus, .errors:focus { outline: none; }
/* reCAPTCHA：右下のバッジは隠し、代わりにフォーム下に規約の文言を表示（Google が認める表示方法） */
.grecaptcha-badge { visibility: hidden !important; }
.form-legal { margin-top: 4px; font-size: 12px; line-height: 1.8; color: var(--muted); }
.form-legal a { color: inherit; text-underline-offset: 2px; }
.contact-form.is-busy { opacity: .6; transition: opacity .2s; }
/* 送信前の確認 */
.confirm-lead { padding: 20px 24px; background: var(--white); border-left: 3px solid var(--accent); font-size: 14.5px; }
.confirm-lead strong { display: block; font-size: 16px; color: var(--ink); margin-bottom: 4px; }
.confirm-list dd { white-space: normal; }
.confirm-list .muted { color: var(--muted); }
.confirm-actions { display: flex; gap: 16px; flex-wrap: wrap; }
.btn--ghost { background: transparent; color: var(--ink); }
.btn--ghost:hover { background: var(--ink); color: #fff; }
@media (max-width: 600px) { .confirm-actions { flex-direction: column-reverse; } }
.errors { margin: 0 0 8px; padding: 16px 16px 16px 2em; background: #fdf0f5; color: #9c1458; font-size: 14px; }
.map { margin-top: 56px; aspect-ratio: 16 / 7; background: #eceae4; }
.map iframe { width: 100%; height: 100%; border: 0; display: block; filter: grayscale(1) contrast(1.05); transition: filter .4s; }
.map:hover iframe { filter: none; }
@media (max-width: 760px) { .map { aspect-ratio: 4 / 3; margin-top: 40px; } }

/* ---- footer ---- */
.site-footer { background: var(--ink); color: #d9d8d3; font-size: 13.5px; line-height: 1.9; }
.footer-inner { max-width: calc(var(--max) + var(--pad) * 2); margin: 0 auto; padding: 56px var(--pad) 40px; display: flex; justify-content: space-between; align-items: flex-end; gap: 24px; flex-wrap: wrap; }
.footer-name { font-size: 15px; font-weight: 700; letter-spacing: .12em; color: #fff; margin-bottom: 8px; }
.footer-tel { display: flex; gap: 20px; flex-wrap: wrap; }
.footer-tel a { text-decoration: none; }
.site-footer a:hover { color: #fff; text-decoration: underline; }
.social { list-style: none; margin: 0; padding: 0; display: flex; gap: 20px; font-family: var(--en); letter-spacing: .12em; }
.social a { text-decoration: none; }
.footer-bottom { max-width: calc(var(--max) + var(--pad) * 2); margin: 0 auto; padding: 18px var(--pad) 28px; display: flex; align-items: center; gap: 16px; border-top: 1px solid #333; }
.cmyk { display: inline-flex; gap: 4px; }
.cmyk i { width: 8px; height: 8px; display: block; }
.cmyk i:nth-child(1) { background: var(--c); } .cmyk i:nth-child(2) { background: var(--m); }
.cmyk i:nth-child(3) { background: var(--y); } .cmyk i:nth-child(4) { background: #fff; }
.copyright { font-family: var(--en); font-size: 11.5px; letter-spacing: .12em; color: #a9a8a2; }

.to-top {
  position: fixed; right: 20px; bottom: 20px; z-index: 20; width: 44px; height: 44px; border-radius: 50%;
  display: grid; place-items: center; background: var(--white); border: 1px solid var(--line); color: var(--ink);
  opacity: 0; visibility: hidden; transition: opacity .3s, visibility .3s;
}
.to-top.is-shown { opacity: 1; visibility: visible; }
.to-top svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.5; }

/* 管理者ログイン中の表示 */
.admin-bar { position: fixed; left: 12px; bottom: 12px; z-index: 50; background: var(--ink); color: #fff; font-size: 12px; padding: 6px 12px; border-radius: 4px; display: flex; gap: 12px; }
.admin-bar a { color: #9fd8ff; }
.is-draft { position: relative; outline: 2px dashed #f0a400; outline-offset: -12px; }
.is-draft::before { content: "非公開"; position: absolute; top: 18px; right: 18px; background: #f0a400; color: #fff; font-size: 11px; padding: 2px 8px; border-radius: 3px; z-index: 2; }

/* ライトボックス */
.lb {
  position: fixed; inset: 0; z-index: 100; background: var(--paper);
  display: grid; grid-template-rows: 1fr auto; opacity: 0; transition: opacity .3s; touch-action: pan-y;
}
.lb.is-open { opacity: 1; }
.lb-stage { position: relative; display: grid; place-items: center; padding: 56px clamp(12px, 5vw, 80px) 8px; min-height: 0; }
.lb-stage img { max-width: 100%; max-height: calc(100vh - 120px); max-height: calc(100dvh - 120px); width: auto; height: auto; object-fit: contain; transition: opacity .25s; }
.lb-stage img.is-loading { opacity: 0; }
.lb-bar { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 12px var(--pad) 20px; font-size: 12px; letter-spacing: .12em; color: var(--muted); min-height: 52px; }
.lb-caption { flex: 1; text-align: center; color: var(--ink); }
.lb button { font: inherit; color: var(--ink); background: none; border: 0; cursor: pointer; padding: 0; }
.lb-close { position: absolute; top: 14px; right: calc(var(--pad) - 10px); width: 40px; height: 40px; z-index: 2; }
.lb-close::before, .lb-close::after { content: ""; position: absolute; left: 10px; right: 10px; top: 50%; height: 1px; background: currentColor; transform: rotate(45deg); }
.lb-close::after { transform: rotate(-45deg); }
.lb-prev, .lb-next { position: absolute; top: 0; bottom: 0; width: 40%; z-index: 1; }
.lb-prev { left: 0; cursor: w-resize; }
.lb-next { right: 0; cursor: e-resize; }
.lb-nav { display: flex; gap: 20px; }
html.lb-lock { overflow: hidden; }

/* ふわっと表示 */
.reveal { opacity: 0; transform: translateY(16px); transition: opacity .9s ease, transform .9s ease; }
.reveal.is-in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .reveal { opacity: 1; transform: none; transition: none; } }

@media print {
  .site-header, .to-top, .map, .contact-form, .admin-bar { display: none !important; }
  body { background: #fff; }
  .sec-head { position: static; }
}
