@charset "utf-8";
/* ==========================================================
   会社案内作成・羅針盤 (rashinban.biz) — 全スタイル
   実装プラン.md §5 デザインシステム準拠
   ブレークポイント: 900px の1つだけ（@media (max-width: 899px)）
   ========================================================== */

:root {
  /* 基調色 — ここを変えればサイト全体の配色が変わる */
  --c-primary: #0e5fae;        /* メインの青 */
  --c-primary-dark: #083e75;   /* 濃い青（ホバー、フッター背景） */
  --c-primary-pale: #eaf2fa;   /* 淡い青（セクション背景、表ヘッダ） */
  --c-accent: #0e5fae;         /* CTAボタン色（当面はprimaryと同一。独立して変えられるよう分離） */

  /* サブカラー — ゴールド（タイプ別・実績画像の金茶背景の最も濃い部分から採取） */
  --c-gold: #8e7036;

  --c-text: #22303c;
  --c-text-muted: #5c6b7a;
  --c-border: #d8e2ec;
  --c-bg: #ffffff;
  --c-bg-alt: #f5f8fb;         /* 交互セクション背景 */

  /* 背景バリエーション（未使用でも定義しておく。用途は随時決める） */
  --c-bg-blue: #eaf2fa;        /* 淡青背景（現状 --c-primary-pale と同値。独立して調整可） */
  --c-bg-beige: #f7f0e2;       /* 薄いベージュ背景（彩度控えめ・やや濁り。--c-gold と同系統の色相） */

  --font-sans: "Hiragino Kaku Gothic ProN", "Hiragino Sans", "Yu Gothic", "Meiryo", sans-serif;
  --font-serif: "Hiragino Mincho ProN", "Yu Mincho", "YuMincho", "MS PMincho", serif;
  --max-w: 1200px;
  --radius: 8px;
  --shadow: 0 2px 12px rgba(8, 62, 117, .08);
}

/* ---------- リセット・ベース ---------- */

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

html {
  font-size: 16px;
  scroll-behavior: smooth;
  /* stickyヘッダー分だけアンカー位置を下げる */
  scroll-padding-top: 76px;
}

body {
  margin: 0;
  font-family: var(--font-sans);
  color: var(--c-text);
  background: var(--c-bg);
  line-height: 1.9;
  -webkit-text-size-adjust: 100%;
}

img { max-width: 100%; height: auto; vertical-align: middle; }

a { color: var(--c-primary); }
a:hover { color: var(--c-primary-dark); }

p { margin: 0 0 1em; }
ul, ol, dl { margin: 0 0 1em; }

/* ---------- タイポグラフィ ---------- */

h1, h2, h3, h4 { line-height: 1.5; margin: 0 0 .8em; }

h1 { font-size: clamp(1.5rem, 3.5vw, 2.1rem); }
h2 { font-size: clamp(1.3rem, 3vw, 1.6rem); }
h3 { font-size: 1.15rem; }

/* h2の装飾は「左の青い縦線」1種類に統一（ページごとに変えない） */
h2 {
  padding-left: .7em;
  border-left: 5px solid var(--c-primary);
  font-family: var(--font-serif);
}

/* ---------- レイアウト共通 ---------- */

.container {
  max-width: var(--max-w);
  margin-inline: auto;
  padding-inline: clamp(16px, 4vw, 32px);
}

.section { padding-block: clamp(48px, 8vw, 80px); }
.section-alt { background: var(--c-bg-alt); }

.lead { color: var(--c-text-muted); }

/* ---------- ボタン ---------- */

.btn {
  display: inline-block;
  padding: .8em 2em;
  border-radius: var(--radius);
  font-weight: 700;
  text-decoration: none;
  text-align: center;
  line-height: 1.5;
  transition: background-color .2s, color .2s;
}

.btn-primary {
  background: var(--c-accent);
  color: #fff;
  border: 2px solid var(--c-accent);
}
.btn-primary:hover { background: var(--c-primary-dark); border-color: var(--c-primary-dark); color: #fff; }

.btn-outline {
  background: #fff;
  color: var(--c-primary);
  border: 2px solid var(--c-primary);
}
.btn-outline:hover { background: var(--c-primary-pale); color: var(--c-primary-dark); }

/* ---------- ヘッダー / グローバルナビ ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--c-bg);
  border-bottom: 1px solid var(--c-border);
}

.header-inner {
  max-width: var(--max-w);
  margin-inline: auto;
  padding-inline: clamp(16px, 4vw, 32px);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 64px;
}

/* テキストロゴ（後日 <a> の中身を <img> に置き換えるだけで画像ロゴ化できる構造） */
.brand {
  text-decoration: none;
  color: var(--c-text);
  line-height: 1.3;
  white-space: nowrap;
}
.brand-sub {
  display: block;
  font-size: .72rem;
  color: var(--c-text-muted);
  letter-spacing: .15em;
}
.brand-name {
  display: block;
  font-size: 1.45rem;
  font-weight: 700;
  color: var(--c-primary);
  letter-spacing: .3em;
}

/* ハンバーガーボタン（モバイルのみ表示） */
.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  padding: 10px;
  border: none;
  background: none;
  cursor: pointer;
}
.nav-toggle-bar {
  display: block;
  width: 24px;
  height: 2px;
  margin: 5px auto;
  background: var(--c-primary);
  transition: transform .2s, opacity .2s;
}
.nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.nav-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  align-items: center;
  gap: 4px;
}

.nav-list > li { position: relative; }

.nav-list > li > a {
  display: block;
  padding: 22px 12px;
  text-decoration: none;
  color: var(--c-text);
  font-size: .95rem;
  font-weight: 600;
  white-space: nowrap;
}
.nav-list > li > a:hover { color: var(--c-primary); }

/* プルダウン親の ▼ 印 */
.has-sub > a::after {
  content: "";
  display: inline-block;
  margin-left: 6px;
  vertical-align: 2px;
  border: 4px solid transparent;
  border-top-color: currentColor;
  border-bottom: none;
}

/* サブメニュー開閉トグル（モバイル用。デスクトップでは非表示） */
.sub-toggle { display: none; }

/* デスクトップ: プルダウンは :hover / :focus-within で開く（CSSのみ） */
.sub-menu {
  list-style: none;
  margin: 0;
  padding: 8px 0;
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 200px;
  background: var(--c-bg);
  border: 1px solid var(--c-border);
  border-radius: 0 0 var(--radius) var(--radius);
  box-shadow: var(--shadow);
  visibility: hidden;
  opacity: 0;
  transition: opacity .15s;
}
.has-sub:hover .sub-menu,
.has-sub:focus-within .sub-menu {
  visibility: visible;
  opacity: 1;
}
.sub-menu a {
  display: block;
  padding: 8px 16px;
  text-decoration: none;
  color: var(--c-text);
  font-size: .9rem;
}
.sub-menu a:hover { background: var(--c-primary-pale); color: var(--c-primary-dark); }

/* ナビ右端のCTAボタン（常時強調） */
.nav-cta > a {
  display: block;
  margin-left: 8px;
  padding: 10px 18px;
  background: var(--c-accent);
  text-decoration: none;
  font-size: .95rem;
  font-weight: 700;
}
.nav-list > li.nav-cta > a,
.nav-list > li.nav-cta > a:hover { color: #fff; }
.nav-cta > a:hover { background: var(--c-primary-dark); }

/* ---------- ヒーロー（トップ） ---------- */

.hero {
  background: linear-gradient(160deg, var(--c-primary-pale), #fff 70%);
  padding-block: clamp(56px, 10vw, 104px);
  text-align: center;
}
.hero h1 {
  color: var(--c-primary-dark);
  margin-bottom: .5em;
}
.hero-sub {
  font-size: clamp(1.05rem, 2vw, 1.3rem);
  font-weight: 700;
  color: var(--c-primary);
  margin-bottom: 1.2em;
}
.hero .hero-text {
  max-width: 640px;
  margin-inline: auto;
}
.hero-buttons {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 16px;
  margin-top: 32px;
}

/* ---------- カード ---------- */

.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 24px;
}

.card {
  background: var(--c-bg);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 24px;
}
.card-grid .card {
  background: var(--c-bg-beige);
  box-shadow: none;
  border-radius: 0;
}
.card h3 { color: var(--c-primary); margin-bottom: .5em; }
.card :last-child { margin-bottom: 0; }

/* ---------- ページタイトル（下層ページ共通） ---------- */

.page-header {
  background: linear-gradient(160deg, var(--c-primary-pale), #fff 80%);
  padding-block: clamp(32px, 6vw, 56px);
  border-bottom: 1px solid var(--c-border);
}
.page-header h1 {
  margin: 0;
  color: var(--c-primary-dark);
}

/* ---------- ページ内アンカーナビ（下層ページ共通） ---------- */

.anchor-nav {
  background: var(--c-bg);
  border-bottom: 1px solid var(--c-border);
}
.anchor-nav ul {
  list-style: none;
  margin: 0;
  padding: 12px 0;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
.anchor-nav a {
  display: inline-block;
  padding: .3em 1.1em;
  border: 1px solid var(--c-border);
  border-radius: 999px;
  text-decoration: none;
  font-size: .92rem;
  font-weight: 600;
  color: var(--c-primary);
  white-space: nowrap;
}
.anchor-nav a:hover {
  border-color: var(--c-primary);
  background: var(--c-primary-pale);
}

/* ---------- 制作タイプ（type.html） ---------- */

/* h2直下のキャッチコピー */
.type-catch {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--c-primary);
  margin-bottom: 1.2em;
}

/* タイプ写真＋説明文の2カラム */
.type-intro {
  display: grid;
  grid-template-columns: minmax(0, 450px) 1fr;
  gap: clamp(20px, 3vw, 36px);
  align-items: start;
  margin-bottom: 1.8em;
}
.type-intro img {
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}
.type-page .type-intro img { border-radius: 0; }
.merit-page .type-intro img { border-radius: 0; }
/* 写真を右・説明文を左に置く変種 */
.type-intro.img-right {
  grid-template-columns: 1fr auto;
}
.type-intro.img-right img { order: 2; }
/* 小さい挿絵用の変種: 左カラムを画像の実寸で詰める
   （450px想定の基本形だと小画像では本文との間に大きな空白が出る。merit.htmlで使用） */
.type-intro.img-natural {
  grid-template-columns: auto 1fr;
}

/* 仕様リスト（加工/デザイン/印刷/用紙/配送） */
.spec-list {
  margin: 0 0 1.8em;
  border: 1px solid var(--c-border);
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--c-bg);
}
.spec-list > div {
  display: grid;
  grid-template-columns: 9em 1fr;
}
.spec-list > div + div { border-top: 1px solid var(--c-border); }
.spec-list dt {
  background: var(--c-primary-pale);
  color: var(--c-primary-dark);
  font-weight: 700;
  padding: 14px 18px;
}
.spec-list dd {
  margin: 0;
  padding: 14px 18px;
}
.spec-list dd p { margin: 0; }
.spec-list dd .kako {
  display: block;
  margin-bottom: 10px;
}

/* 料金表・納期リンク行 */
.type-more {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 20px;
  margin: 0;
}
.txt-link { font-weight: 600; }

/* ---------- 本物のデザイン（design.html） ---------- */

/* ベージュ背景セクション（金茶系の作例画像となじませる） */
.section-beige { background: var(--c-bg-beige); }

/* お客様の声 引用カード */
.voice-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  margin-bottom: 1.5em;
}
.voice-card {
  background: var(--c-bg);
  border-left: 4px solid var(--c-gold);
  border-radius: 0;
  box-shadow: var(--shadow);
  padding: 24px 28px;
}
.voice-card h3 {
  font-size: 1.05rem;
  color: var(--c-gold);
  margin-bottom: .3em;
}
.voice-card p { margin: 0; }

/* お客様名（▶付き） */
.voice-name {
  font-weight: 700;
  padding-bottom: .6em;
  margin-bottom: 1em !important;
  border-bottom: 1px solid var(--c-border);
}
.voice-name::before {
  content: "";
  display: inline-block;
  margin-right: 8px;
  border: 6px solid transparent;
  border-left: 9px solid var(--c-gold);
  border-right: none;
}

/* 引用文＋パンフレット画像 */
.voice-body {
  display: grid;
  grid-template-columns: 1fr 110px;
  gap: 16px;
  align-items: start;
}
.voice-body img {
  border: 1px solid var(--c-border);
  border-radius: 4px;
}

/* お客様の声（全文版・customer.html） */
.testimonial {
  background: var(--c-bg);
  border-left: 4px solid var(--c-gold);
  box-shadow: var(--shadow);
  padding: clamp(24px, 4vw, 40px);
  margin-bottom: 32px;
}
.testimonial:last-child { margin-bottom: 0; }
.testimonial-head {
  padding-bottom: .8em;
  margin-bottom: 1.4em;
  border-bottom: 1px solid var(--c-border);
}
.t-label {
  display: inline-block;
  font-size: .78rem;
  font-weight: 700;
  color: #fff;
  background: var(--c-gold);
  padding: .2em 1em;
  border-radius: 2px;
  margin-bottom: .6em;
}
.t-who {
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--c-primary-dark);
  margin: 0;
}
.t-who .t-role {
  font-size: .82rem;
  font-weight: 500;
  color: var(--c-text-muted);
  margin-right: .5em;
}
.testimonial-grid {
  display: grid;
  grid-template-columns: 1fr 211px;
  gap: clamp(20px, 3vw, 40px);
  align-items: start;
}
.testimonial-grid h3 {
  font-size: 1.05rem;
  color: var(--c-gold);
  margin: 1.6em 0 .5em;
}
.testimonial-grid h3:first-child { margin-top: 0; }
.t-cover {
  width: 211px;
  height: auto;
  border: 1px solid var(--c-border);
  border-radius: 4px;
}
.t-profile {
  margin-top: 1.8em;
  padding: 16px 20px;
  background: var(--c-bg-alt);
  border-radius: var(--radius);
}
.t-profile h4 {
  font-size: .9rem;
  color: var(--c-primary);
  margin-bottom: .5em;
}
.t-profile p {
  margin: 0;
  font-size: .9rem;
  color: var(--c-text-muted);
}

/* 5つのポイント（左: 図・右: カードリスト） */
.points-layout {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: clamp(28px, 5vw, 64px);
  align-items: center;
}

/* 旧 5point.gif（AIDMA風の金色サークル図）のHTML/CSS再現 */
.point-zu { padding-left: 8px; }
.pz-row {
  display: flex;
  align-items: center;
  gap: 12px;
}
.pz-row + .pz-row { margin-top: 10px; }
.pz-shift { margin-left: 44px; }
.pz-circle {
  flex: none;
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: var(--c-gold);
  color: #fff;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
}
.pz-en {
  color: var(--c-text-muted);
  font-size: .85rem;
  letter-spacing: .05em;
}

.point-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 16px;
}
.point-list > li {
  background: var(--c-bg);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 20px 24px;
}
.point-head {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: .5em;
}
.point-head h3 { margin: 0; }
.point-en {
  margin-left: auto;
  color: var(--c-gold);
  font-size: .85rem;
  font-weight: 700;
  letter-spacing: .08em;
}
.point-badge {
  background: var(--c-gold);
  color: #fff;
  font-weight: 700;
  font-size: .85rem;
  border-radius: 999px;
  padding: .15em 1em;
  white-space: nowrap;
}
.point-list > li > p { margin: 0; }

/* ケーススタディ */
.case-list {
  display: grid;
  gap: 24px;
}
.case-card {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  background: var(--c-bg);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
}
/* 旧LPの632×221画像は左右どちらかに文字用の空き面と「Point N」タブが
   焼き込まれているため、作例部分（横360px相当）だけを表示する
   （crop-l=左側を表示 / crop-r=右側を表示） */
.case-card img {
  display: block;
  width: calc(100% - 16px);
  margin: 16px 0 16px 16px;
  aspect-ratio: 360 / 221;
  object-fit: cover;
  align-self: center;
  border-radius: 4px;
}
.case-card img.crop-l { object-position: left center; }
.case-card img.crop-r { object-position: right center; }
.case-body { padding: 20px 24px; align-self: center; }
.case-point {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  margin-bottom: .5em;
}
.case-body p:last-child { margin-bottom: 0; }

/* サポート体制（本文＋日本全国ご対応図） */
.support-grid {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: clamp(24px, 4vw, 48px);
  align-items: center;
}
.support-grid .type-more { margin-top: 1em; }

/* ---------- 制作タイプカード（トップ） ---------- */

.type-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.type-card { padding: 0; overflow: hidden; text-align: center; border-radius: 0; }
.type-card > a { display: block; }
.type-card img { display: block; width: 100%; transition: opacity .2s; }
.type-card > a:hover img { opacity: .7; }
.type-card h3 { margin: 16px 16px 10px; }

.type-links {
  display: flex;
  justify-content: center;
  gap: 12px;
  margin: 0;
  padding: 0 16px 20px;
}
.type-links a {
  display: inline-block;
  min-width: 6em;
  padding: .35em 1em;
  border: 1px solid var(--c-primary);
  border-radius: 999px;
  text-decoration: none;
  font-size: .9rem;
  font-weight: 600;
}
.type-links a:hover { background: var(--c-primary-pale); }

/* ---------- 業種タグ（トップ・リンクなし） ---------- */

.tag-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
.tag-list li {
  background: var(--c-bg-beige);
  color: var(--c-primary-dark);
  border-radius: 999px;
  padding: .25em 1.1em;
  font-size: .95rem;
}

/* ---------- 不安解消リンク（トップ） ---------- */

.qa-links { display: grid; gap: 16px; }

.qa-link {
  display: block;
  position: relative;
  background: var(--c-bg);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 18px 52px 18px 24px;
  text-decoration: none;
  color: var(--c-primary-dark);
  font-weight: 700;
}
.qa-link::after {
  content: "";
  position: absolute;
  right: 24px;
  top: 50%;
  width: 9px;
  height: 9px;
  border-top: 2px solid var(--c-primary);
  border-right: 2px solid var(--c-primary);
  transform: translateY(-50%) rotate(45deg);
}
.qa-link:hover { outline: 2px solid var(--c-primary); }

/* ---------- 表（料金表・納期表） ---------- */

.table-scroll { overflow-x: auto; margin-bottom: 1.5em; }

table {
  border-collapse: collapse;
  width: 100%;
  background: var(--c-bg);
}
th, td {
  border: 1px solid var(--c-border);
  padding: .6em 1em;
  text-align: left;
}
th {
  background: var(--c-primary-pale);
  color: var(--c-primary-dark);
  font-weight: 700;
  white-space: nowrap;
}
td.num { text-align: right; white-space: nowrap; }

/* ---------- ステップリスト（ご注文の流れ） ---------- */

.steps {
  list-style: none;
  counter-reset: step;
  margin: 0 0 1.5em;
  padding: 0;
}
.steps > li {
  counter-increment: step;
  position: relative;
  padding: 0 0 1.8em 60px;
}
.steps > li::before {
  content: counter(step);
  position: absolute;
  left: 0;
  top: 0;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--c-primary);
  color: #fff;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
}
/* ステップ間の縦つなぎ線 */
.steps > li:not(:last-child)::after {
  content: "";
  position: absolute;
  left: 19px;
  top: 44px;
  bottom: 4px;
  width: 2px;
  background: var(--c-border);
}
.steps > li > h3 { margin-bottom: .3em; }

/* ---------- FAQ ---------- */

details {
  background: var(--c-bg);
  border: 1px solid var(--c-border);
  border-radius: var(--radius);
  margin-bottom: 12px;
  padding: 0;
}
details summary {
  cursor: pointer;
  padding: 16px 20px;
  font-weight: 700;
  color: var(--c-primary-dark);
  list-style-position: inside;
}
details summary:hover { background: var(--c-primary-pale); }
details[open] summary { border-bottom: 1px solid var(--c-border); }
details .faq-a { padding: 16px 20px; }
details .faq-a :last-child { margin-bottom: 0; }

/* details自体を角丸でクリップし、背景画像が角を突き抜けないようにする */
details.faq { overflow: hidden; }

/* 金茶Qバーを使う質問見出し（旧 question_bg.gif を背景に流用） */
details.faq > summary.faq-q {
  display: flex;
  align-items: center;
  gap: 14px;
  list-style: none;
  color: var(--c-text);
  background: var(--c-bg-beige);
}
details.faq > summary.faq-q::-webkit-details-marker { display: none; }
/* テキストの「Q」（画像の焼き込みQの代わり） */
.faq-q .q-mark {
  flex: 0 0 auto;
  width: 1.1em;
  text-align: center;
  font-size: 1.6rem;
  font-weight: 800;
  line-height: 1;
  color: #5a4620;
}
.faq-q .q-text { flex: 1; }
/* 開閉インジケータ（旧marker非表示のため自前で） */
.faq-q .q-toggle {
  flex: 0 0 auto;
  width: 10px;
  height: 10px;
  border-right: 2px solid var(--c-primary-dark);
  border-bottom: 2px solid var(--c-primary-dark);
  transform: rotate(45deg);
  transition: transform .2s;
}
details.faq[open] > summary.faq-q .q-toggle { transform: rotate(-135deg); }
/* 回答（背景画像なし・白。テキストの「A」を添える） */
details.faq .faq-a {
  display: flex;
  gap: 14px;
  align-items: flex-start;
}
.faq-a .a-mark {
  flex: 0 0 auto;
  width: 1.1em;
  text-align: center;
  font-size: 1.5rem;
  font-weight: 800;
  line-height: 1.2;
  color: var(--c-primary);
}
.faq-a .a-body { flex: 1; }
.faq-a .a-body :last-child { margin-bottom: 0; }

/* ---------- ライトボックス（制作実績） ---------- */

.lightbox {
  border: none;
  border-radius: var(--radius);
  padding: 8px;
  max-width: min(92vw, 700px);
  background: #fff;
}
.lightbox::backdrop { background: rgba(8, 62, 117, .7); }
.lightbox img { display: block; width: 100%; }
.lightbox-close {
  display: block;
  margin: 8px auto 0;
  padding: .4em 1.6em;
  border: 1px solid var(--c-border);
  border-radius: var(--radius);
  background: #fff;
  cursor: pointer;
  font-family: inherit;
}
.lightbox-close:hover { background: var(--c-primary-pale); }

/* サムネイルボタン（ボタンだが見た目は画像カード） */
.thumb-button {
  display: block;
  width: 100%;
  padding: 0;
  border: none;
  background: none;
  cursor: pointer;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
}
.thumb-button:hover { outline: 2px solid var(--c-primary); }
.thumb-button img { display: block; width: 100%; height: auto; }

/* 制作実績グリッド（デスクトップ3列／中間2列／モバイル1列） */
.works-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 20px;
}
.works-more {
  margin-top: 32px;
  text-align: center;
  font-weight: 600;
}

/* ---------- CTAバンド（全ページ本文末・フッター直前） ---------- */

.cta-band {
  background: var(--c-primary-pale);
  text-align: center;
  padding-block: clamp(48px, 8vw, 72px);
}
.cta-band h2 {
  border-left: none;
  padding-left: 0;
  color: var(--c-primary-dark);
  font-size: clamp(1.1rem, 2.3vw, 1.35rem);
}
.cta-band .btn { margin-top: 8px; }

/* ---------- フッター ---------- */

.site-footer {
  background: var(--c-primary-dark);
  color: #fff;
  padding-top: clamp(40px, 6vw, 56px);
}

.footer-nav {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}
.footer-nav h3 {
  font-size: .9rem;
  color: #bcd4ea;
  border-bottom: 1px solid rgba(255, 255, 255, .25);
  padding-bottom: .5em;
}
.footer-nav ul { list-style: none; margin: 0; padding: 0; }
.footer-nav li { margin-bottom: .5em; }
.footer-nav a {
  color: #fff;
  text-decoration: none;
  font-size: .92rem;
}
.footer-nav a:hover { text-decoration: underline; color: #fff; }

.copyright {
  text-align: center;
  font-size: .8rem;
  color: #bcd4ea;
  padding-block: 24px;
  margin: 40px 0 0;
  border-top: 1px solid rgba(255, 255, 255, .25);
}

/* ---------- 料金（price.html） ---------- */

/* 表の下の注記 */
.price-note {
  color: var(--c-text-muted);
  font-size: .95rem;
  margin: 0 0 1em;
}

/* オプション各項目 */
.opt-item {
  padding: 1.8em 0;
  border-top: 1px solid var(--c-border);
}
.opt-item:first-of-type {
  border-top: 0;
  padding-top: .2em;
}
.opt-item h3 { margin-bottom: .5em; }
.opt-item .opt-figure {
  margin: 1em 0 0;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}
.opt-price {
  margin: .9em 0 0;
  font-weight: 700;
  color: var(--c-primary-dark);
}
.opt-price .tanka {
  color: var(--c-primary);
  font-size: 1.15rem;
}
/* 増刷の表を区切る小見出し */
.reprint-sub {
  margin-top: 1.6em;
}

/* ---------- 送信完了（thanks.html） ---------- */
.thanks-page .section .container { text-align: center; }
.thanks-page .type-more { justify-content: center; }
/* 本文が短いページ用: フッターを画面下端に固定 */
body.thanks-body {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}
body.thanks-body .thanks-page { flex: 1; }

/* ---------- お問合わせフォーム（contact.html） ---------- */
/* フォーム全体のブロックを画面中央に。項目内の文字は左揃えのまま（text-alignは変えない） */
.contact-intro,
.contact-form {
  max-width: 760px;
  margin-inline: auto;
}
.form-row {
  margin-bottom: 1.4em;
}
.form-row > label {
  display: block;
  font-weight: 700;
  margin-bottom: .45em;
}
.form-row .req {
  margin-left: .5em;
  font-size: .8rem;
  font-weight: 700;
  color: #c0392b;
}
.form-row input[type="text"],
.form-row input[type="email"],
.form-row input[type="tel"],
.form-row select,
.form-row textarea {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid var(--c-border);
  border-radius: var(--radius);
  font-size: 1rem;
  font-family: inherit;
  line-height: 1.6;
  color: var(--c-text);
  background: var(--c-bg);
}
.form-row textarea {
  min-height: 170px;
  resize: vertical;
}
.form-row input:focus,
.form-row select:focus,
.form-row textarea:focus {
  outline: 2px solid var(--c-primary);
  outline-offset: 1px;
  border-color: var(--c-primary);
}
.form-note {
  color: var(--c-text-muted);
  font-size: .9rem;
}
.form-submit {
  margin-top: 2em;
  text-align: center;
}

/* ---------- ごあいさつ（message.html）の署名 ---------- */
.signature {
  margin: 2em 0 0;
  text-align: right;
  line-height: 1.6;
}
.signature .sign-role {
  font-size: .9rem;
  color: var(--c-text-muted);
}
.signature .sign-name {
  font-size: 1.3rem;
  font-weight: 700;
  letter-spacing: .3em;
}

/* ---------- ご注文の流れ（flow.html） ---------- */

/* 工程バナー: 旧 flow_midasi_N.jpg の写真を背景に活かし、
   焼き込み文字は白グラデの枠で覆い、番号・見出しは実テキストで載せる */
.flow-steps {
  margin: 0 0 1.8em;
}
.flow-step {
  position: relative;
  min-height: 88px;
  display: flex;
  align-items: stretch;
  border: 1px solid var(--c-border);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  background-color: #e6eaee;      /* 画像未読込時のフォールバック */
  background-repeat: no-repeat;
  /* 旧画像は上半分に焼き込み文字があるため、文字のない下端を基準にクロップする
     （right center だと cover 拡大後に文字帯が可視域へ入り、白グラデの透明側に透ける） */
  background-position: right bottom;
  background-size: cover;
}
/* 画像の焼き込み文字を覆う白グラデ枠（左はしっかり白・右は写真が透ける） */
.flow-step::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to right,
    #ffffff 0%,
    #ffffff 56%,
    rgba(255, 255, 255, .6) 78%,
    rgba(255, 255, 255, 0) 96%
  );
}
/* 番号（画像と同じグレーの箱・白抜き文字） */
.flow-step .step-num {
  position: relative;
  z-index: 1;
  flex: 0 0 auto;
  width: 58px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #63666a;
  color: #fff;
  font-size: 1.5rem;
  font-weight: 700;
  line-height: 1;
}
/* 工程見出し（実テキスト） */
.flow-step .step-title {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  margin: 0;
  padding: 14px 22px;
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--c-text);
}
/* 工程間の下向き矢印（画像を使わずCSSで） */
.flow-arrow {
  display: block;
  text-align: center;
  color: var(--c-primary);
  line-height: 1;
  margin: 10px 0;
}
.flow-arrow::before { content: "\25BC"; font-size: 1rem; }
/* 各工程の説明文 */
.flow-body {
  margin: 12px 4px 0;
}
/* 原稿セクションの独立カード（プランニングサービス）の前後に余白 */
#genkou .card {
  margin: 1.8em 0;
}

/* ==========================================================
   ナビのみ〜1099pxでハンバーガーに切替
   （ナビ項目数が多く、900〜1099pxでは横並びが収まらないため。
     コンテンツのブレークポイントは900pxのまま）
   ========================================================== */

@media (max-width: 1099px) {

  html { scroll-padding-top: 64px; }

  /* ハンバーガー表示・ナビはアコーディオン */
  .nav-toggle { display: block; }

  .global-nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--c-bg);
    border-bottom: 1px solid var(--c-border);
    box-shadow: var(--shadow);
    max-height: calc(100vh - 64px);
    overflow-y: auto;
  }
  .global-nav.open { display: block; }

  .nav-list {
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 8px 0;
  }
  .nav-list > li {
    border-bottom: 1px solid var(--c-border);
    display: flex;
    flex-wrap: wrap;
  }
  .nav-list > li:last-child { border-bottom: none; }
  .nav-list > li > a {
    flex: 1;
    padding: 14px clamp(16px, 4vw, 32px);
  }
  .has-sub > a::after { content: none; }

  /* サブメニューはタップで開閉 */
  .sub-toggle {
    display: block;
    width: 52px;
    border: none;
    border-left: 1px solid var(--c-border);
    background: none;
    cursor: pointer;
    position: relative;
  }
  .sub-toggle::before {
    content: "";
    position: absolute;
    top: 50%;
    left: 50%;
    translate: -50% -70%;
    border: 6px solid transparent;
    border-top-color: var(--c-primary);
    border-bottom: none;
    transition: rotate .2s;
  }
  .sub-toggle[aria-expanded="true"]::before { rotate: 180deg; }

  .sub-menu {
    position: static;
    visibility: visible;
    opacity: 1;
    display: none;
    flex-basis: 100%;
    border: none;
    border-top: 1px solid var(--c-border);
    box-shadow: none;
    border-radius: 0;
    background: var(--c-bg-alt);
  }
  /* モバイルは display:none が優先されるため hover では開かず、タップ開閉のみ */
  .has-sub.open .sub-menu { display: block; }
  .sub-menu a { padding: 12px clamp(24px, 8vw, 48px); }

  .nav-cta { padding: 12px clamp(16px, 4vw, 32px); }
  .nav-cta > a { margin-left: 0; text-align: center; flex: 1; }
}

/* ==========================================================
   モバイル（〜899px）
   ========================================================== */

@media (max-width: 899px) {

  /* 制作タイプは2カラム */
  .type-grid { grid-template-columns: repeat(2, 1fr); }

  /* 2カラム幅ではmin-width 6emの詳細・料金ボタンがカードからはみ出すため縮小 */
  .type-links { gap: 8px; padding: 0 8px 16px; }
  .type-links a { min-width: 0; padding: .35em 1.3em; font-size: .82rem; }
  .type-card h3 { font-size: 1rem; }

  /* タイプ写真＋説明文は縦積み */
  .type-intro,
  .type-intro.img-right,
  .type-intro.img-natural { grid-template-columns: 1fr; }
  .type-intro.img-right img { order: 0; }

  /* お客様の声・ケーススタディは縦積み */
  .voice-grid { grid-template-columns: 1fr; }
  .voice-body { grid-template-columns: 1fr 90px; }
  .case-card { grid-template-columns: 1fr; }
  .case-card img { width: calc(100% - 32px); margin: 16px auto 0; }

  /* お客様の声（全文版）は縦積み・パンフレット画像を上に中央 */
  .testimonial-grid { grid-template-columns: 1fr; }
  .t-cover { order: -1; justify-self: center; margin-bottom: .5em; }

  /* 5つのポイントは図を上に */
  .points-layout { grid-template-columns: 1fr; justify-items: center; }
  .point-list { justify-self: stretch; }

  /* サポート体制は図を下に */
  .support-grid { grid-template-columns: 1fr; justify-items: center; }
  .support-grid > div { justify-self: stretch; }

  /* 仕様リストはラベルを上に */
  .spec-list > div { grid-template-columns: 1fr; }
  .spec-list dt { padding: 8px 16px; }
  .spec-list dd { padding: 12px 16px; }

  /* フッターは1カラム */
  .footer-nav { grid-template-columns: 1fr; gap: 24px; }

  /* 工程バナー: 番号を小さく、見出しの可読性のため白枠を広めに */
  .flow-step { min-height: 72px; }
  .flow-step::before {
    background: linear-gradient(
      to right,
      #ffffff 0%,
      #ffffff 68%,
      rgba(255, 255, 255, .7) 86%,
      rgba(255, 255, 255, 0) 100%
    );
  }
  .flow-step .step-num { width: 46px; font-size: 1.3rem; }
  .flow-step .step-title { padding: 12px 16px; font-size: 1.05rem; }
}
