/* ==========================================================================
   Gear Bloom — 公式サイト共通スタイル
   コンセプト：屋号「Gear Bloom」＝歯車がかみ合って動き出し、その先で花が咲く。
   配色は「弁柄（べんがら）」。日本の建具や漆器に使われてきた赤茶で、
   生成りの紙色と合わせる。個人店に向けた温かさと、落ち着きの両立をねらう。
   誠実さ・丁寧さを伝えるため、派手すぎない落ち着いたトーンにする。
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Fraunces:opsz,wght@9..144,500;9..144,600;9..144,700&family=Work+Sans:wght@400;500;600;700&display=swap');

:root {
  --bg: #f7f4ef;
  --surface: #ffffff;
  --surface-soft: #efe7db;
  --ink: #241a15;
  --ink-soft: #5c4d44;
  --ink-faint: #8a7a6e;
  /* 配色は「弁柄（赤茶）」の一色相でまとめる。
     --accent が主役、--sand はその淡い側で、どちらも同じ暖色系。
     【重要】補色（緑・青など）を主役級の彩度で足さないこと。
     以前ここに深緑を混ぜてオリーブに濁らせた失敗がある。
     2色を混ぜたグラデーションも作らない（中間色が必ず濁る）。 */
  --accent: #9c4a32;
  --sand: #eee3d5;
  --line: #e5ddd2;
  --shadow: 0 20px 45px -25px rgba(36, 26, 21, 0.35);
  --radius-lg: 20px;
  --radius-md: 12px;
  --max-width: 1080px;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #1a1512;
    --surface: #221b17;
    --surface-soft: #2a221c80;
    --ink: #efe7dd;
    --ink-soft: #b5a89d;
    --ink-faint: #85786d;
    --accent: #d4735a;
    --sand: #6b5546;
    --line: #362b24;
    --shadow: 0 20px 45px -25px rgba(0, 0, 0, 0.6);
  }
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: 'Work Sans', 'Hiragino Sans', 'Yu Gothic', sans-serif;
  font-size: 16px;
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, .display {
  font-family: 'Fraunces', 'Hiragino Mincho ProN', serif;
  font-weight: 600;
  line-height: 1.3;
  text-wrap: balance;
  margin: 0 0 0.5em;
}

p { margin: 0 0 1em; }

img { max-width: 100%; display: block; }

a { color: inherit; text-decoration: none; }

.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
}

/* ステッカー風のラベル（少し傾けて貼り付けたような見た目） */
.eyebrow {
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 1em;
  padding: 5px 15px;
  background: color-mix(in srgb, var(--sand) 14%, var(--surface));
  border: 1.5px dashed var(--accent);
  border-radius: 999px;
  transform: rotate(-2deg);
  transition: transform 0.25s cubic-bezier(0.34, 1.56, 0.64, 1);
}
.eyebrow:hover { transform: rotate(2deg) scale(1.06); }

/* ---- カーソル追従の光の玉（PCのみ・装飾） ---- */
.cursor-dot {
  position: fixed;
  top: 0;
  left: 0;
  width: 16px;
  height: 16px;
  margin: -8px 0 0 -8px;
  border-radius: 50%;
  background: var(--accent);
  opacity: 0.55;
  pointer-events: none;
  z-index: 999;
  transition: width 0.25s cubic-bezier(0.34, 1.56, 0.64, 1),
              height 0.25s cubic-bezier(0.34, 1.56, 0.64, 1),
              margin 0.25s cubic-bezier(0.34, 1.56, 0.64, 1),
              opacity 0.25s ease;
}
.cursor-dot.is-big {
  width: 46px;
  height: 46px;
  margin: -23px 0 0 -23px;
  opacity: 0.32;
}

/* ---- ヘッダー / ナビ ---- */
/* 注意：backdrop-filter は position:fixed の子要素（モバイルナビ）の基準位置を
   ヘッダー自身にずらしてしまうため、必ず ::before の疑似要素側にだけ付与すること */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  border-bottom: 1px solid var(--line);
}
.site-header::before {
  content: "";
  position: absolute;
  inset: 0;
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  backdrop-filter: blur(10px);
  z-index: -1;
}

.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
}

/* ロゴ：マークとワードマークを一組として組む */
.logo {
  display: inline-flex;
  align-items: center;
  gap: 0.44em;
  white-space: nowrap;
  font-family: 'Fraunces', serif;
  font-weight: 600;
  font-size: 1.2rem;
  letter-spacing: 0.01em;
}

/* マーク：歯車の歯が、回りながら少しずつ花びらへ変わっていく形 */
.logo-mark {
  width: 1.34em;
  height: 1.34em;
  flex-shrink: 0;
  color: var(--accent);
  transition: transform 0.7s cubic-bezier(0.22, 0.9, 0.3, 1);
}

/* かみ合って回る、を触れたときだけ小さく体験させる */
.logo:hover .logo-mark,
.logo:focus-visible .logo-mark {
  transform: rotate(40deg);
}

@media (prefers-reduced-motion: reduce) {
  .logo-mark { transition: none; }
  .logo:hover .logo-mark,
  .logo:focus-visible .logo-mark { transform: none; }
}

nav.main-nav {
  display: flex;
  align-items: center;
  gap: 28px;
}

nav.main-nav a {
  position: relative;
  font-size: 0.92rem;
  font-weight: 500;
  color: var(--ink-soft);
  transition: color 0.15s ease;
}

nav.main-nav a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -3px;
  width: 0;
  height: 2px;
  border-radius: 2px;
  background: var(--accent);
  transition: width 0.25s cubic-bezier(0.34, 1.56, 0.64, 1);
}

nav.main-nav a:hover,
nav.main-nav a[aria-current="page"] {
  color: var(--ink);
}
nav.main-nav a:hover::after,
nav.main-nav a[aria-current="page"]::after {
  width: 100%;
}

/* ---- スクロール進捗バー ---- */
.scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  height: 3px;
  width: 0%;
  background: var(--accent);
  z-index: 100;
  transition: width 0.1s linear;
}

.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  color: var(--ink);
}

@media (max-width: 720px) {
  nav.main-nav {
    position: fixed;
    inset: 72px 0 0 0;
    background: var(--bg);
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
    padding: 20px 24px;
    transform: translateY(-8px);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.18s ease, transform 0.18s ease;
  }
  nav.main-nav.open {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
  }
  nav.main-nav a {
    width: 100%;
    padding: 14px 4px;
    border-bottom: 1px solid var(--line);
    font-size: 1rem;
  }
  .nav-toggle { display: block; }
}

/* ---- ボタン ---- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 13px 26px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.95rem;
  border: 1.5px solid transparent;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.btn:active { transform: rotate(0deg) scale(0.93) !important; }

.btn-primary {
  background: var(--accent);
  color: var(--bg);
  border-color: var(--ink);
  box-shadow: 4px 4px 0 0 var(--ink);
  animation: btn-wiggle 3.4s ease-in-out infinite;
}
.btn-primary:hover {
  transform: translate(-2px, -3px) rotate(-2deg) scale(1.05);
  box-shadow: 7px 8px 0 0 var(--ink);
  animation-play-state: paused;
}

/* ボタンが時々ぷるっと揺れる（放置していても目に留まるように） */
@keyframes btn-wiggle {
  0%, 82%, 100% { transform: rotate(0deg); }
  86% { transform: rotate(-3deg) scale(1.03); }
  90% { transform: rotate(3deg) scale(1.03); }
  94% { transform: rotate(-2deg) scale(1.02); }
}

.btn-ghost {
  background: var(--surface);
  border-color: var(--ink);
  color: var(--ink);
  box-shadow: 4px 4px 0 0 color-mix(in srgb, var(--accent) 55%, transparent);
}
.btn-ghost:hover {
  transform: translate(-2px, -3px) rotate(2deg);
  box-shadow: 7px 8px 0 0 color-mix(in srgb, var(--accent) 75%, transparent);
}

@media (prefers-reduced-motion: reduce) {
  .btn-primary { animation: none; }
}

/* ---- Hero（真鍮と緑のグラデーション＋周回パーティクル） ---- */
.hero {
  position: relative;
  padding: 96px 0 80px;
  overflow: hidden;
}

.hero::before {
  content: "";
  position: absolute;
  top: -220px;
  left: 50%;
  transform: translateX(-50%);
  width: 720px;
  height: 720px;
  border-radius: 50%;
  background: radial-gradient(circle,
    color-mix(in srgb, var(--sand) 45%, transparent) 0%,
    color-mix(in srgb, var(--accent) 30%, transparent) 42%,
    transparent 70%);
  filter: blur(10px);
  pointer-events: none;
}

#bloom-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
}

.hero-inner { position: relative; z-index: 1; }

/* スマホの実機モックアップ側は固定幅にし、残りをすべて文章に回す
   （文章側の幅が足りないと見出しが細切れに折り返してしまうため） */
.hero-grid {
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: 48px;
  align-items: center;
}
/* 見出しが2行に収まる幅を確保する（本文の行長は .lead 側の 52ch で別途制限） */
.hero-copy { max-width: 700px; }
@media (max-width: 900px) {
  .hero-grid { grid-template-columns: 1fr; gap: 44px; }
}

/* ---- スマホ実機風モックアップ（中で実サイトが動いている） ---- */
.device-wrap { display: grid; justify-items: center; gap: 14px; }

.device {
  position: relative;
  width: 256px;
  padding: 9px;
  border: 3px solid var(--ink);
  border-radius: 32px;
  background: var(--ink);
  box-shadow: 10px 12px 0 0 color-mix(in srgb, var(--accent) 70%, transparent);
  transform: rotate(3deg);
  transition: transform 0.35s cubic-bezier(0.34, 1.56, 0.64, 1),
              box-shadow 0.25s ease;
}
.device:hover {
  transform: rotate(-1deg) translateY(-8px);
  box-shadow: 14px 18px 0 0 color-mix(in srgb, var(--sand) 75%, transparent);
}

.device::before {
  content: "";
  position: absolute;
  top: 16px;
  left: 50%;
  transform: translateX(-50%);
  width: 62px;
  height: 7px;
  border-radius: 999px;
  background: color-mix(in srgb, var(--surface) 35%, transparent);
  z-index: 2;
}

.device-screen {
  position: relative;
  width: 232px;
  height: 452px;
  border-radius: 24px;
  overflow: hidden;
  background: var(--surface);
}

.device-screen iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 390px;
  height: 760px;
  border: 0;
  transform: scale(0.595);
  transform-origin: top left;
  pointer-events: none;
}

.device-caption {
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 700;
  padding: 6px 16px;
  border-radius: 999px;
  border: 2px solid var(--ink);
  background: var(--sand);
  color: var(--ink);
  transform: rotate(-3deg);
  box-shadow: 3px 3px 0 0 var(--ink);
}

/* ---- カードのイラスト ---- */
.card-illust {
  width: 100%;
  max-width: 190px;
  height: auto;
  color: var(--ink);
  margin-bottom: 4px;
}

/* 狭い画面では「「作って終わり」にしない、」が1行に収まるサイズまで下げる
   （収まらないとまとまり単位で行が落ち、右側に大きな余白が残るため） */
.hero h1 {
  font-size: clamp(1.5rem, 3.6vw, 2.75rem);
  line-break: strict;
}

/* 日本語が意味の途中で改行されないよう、まとまりごとに分割禁止にする */
.hero h1 .chunk { display: inline-block; }

/* 見出しが行ごとに弾んで登場する */
.hero h1 .line {
  display: block;
  opacity: 0;
  transform: translateY(34px) rotate(-3deg);
  animation: line-pop 0.85s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
}
.hero h1 .line:nth-child(2) { animation-delay: 0.16s; }

@keyframes line-pop {
  to { opacity: 1; transform: none; }
}

@media (prefers-reduced-motion: reduce) {
  .hero h1 .line { opacity: 1; transform: none; animation: none; }
}

.hero .lead {
  font-size: 1.08rem;
  color: var(--ink-soft);
  max-width: 52ch;
}

.hero-cta { display: flex; gap: 14px; flex-wrap: wrap; margin-top: 8px; }

/* ---- セクション共通 ---- */
section { padding: 72px 0; }
section.alt { background: var(--surface); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }

/* ---- 背景の浮遊ブロブ（ページ全体に常時動きを出す装飾） ---- */
section.has-blobs { position: relative; overflow: hidden; }
.blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(50px);
  opacity: 0.28;
  pointer-events: none;
  z-index: 0;
  animation: blob-float 11s ease-in-out infinite;
}
.blob-sand { background: var(--sand); }
.blob-accent { background: var(--accent); }

@keyframes blob-float {
  0%, 100% { transform: translate(0, 0) scale(1); }
  33% { transform: translate(24px, -28px) scale(1.1); }
  66% { transform: translate(-18px, 16px) scale(0.92); }
}

section.has-blobs > .container { position: relative; z-index: 1; }

@media (prefers-reduced-motion: reduce) {
  .blob { animation: none; }
}

.section-head { max-width: 620px; margin: 0 auto 44px; text-align: center; }
.section-head.left { margin: 0 0 44px; text-align: left; }

/* ---- カードグリッド（サービス） ---- */
.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
@media (max-width: 860px) { .grid-3 { grid-template-columns: 1fr; } }

/* --------------------------------------------------------
   カードの装飾は2段階に分ける。
   ・.card            … 静かな既定形（罫線のみ）。説明ブロック用
   ・.card--sticker   … 太枠＋ずらし影の「特別扱い」。看板となる3枚だけ
   装飾を全部の要素に配ると主役が消えて平板に見えるため、意図的に差をつける。
   -------------------------------------------------------- */
.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  padding: 28px 26px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  transition: border-color 0.25s ease;
}
.card:hover { border-color: color-mix(in srgb, var(--accent) 55%, var(--line)); }

/* 看板の3枚だけ「貼ったステッカー」扱いにする */
.card--sticker {
  border: 2px solid var(--ink);
  border-radius: var(--radius-lg);
  padding: 30px 26px;
  will-change: transform;
  transform: rotate(var(--tilt, 0deg));
  box-shadow: 5px 5px 0 0 color-mix(in srgb, var(--sand) 60%, transparent);
  transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.25s ease;
}
.grid-3 .card--sticker:nth-child(1) { --tilt: -2deg; }
.grid-3 .card--sticker:nth-child(2) { --tilt: 1.6deg; }
.grid-3 .card--sticker:nth-child(3) { --tilt: -1.2deg; }

/* 横一列に揃えず段違いに置いて、整いすぎた印象を崩す */
@media (min-width: 861px) {
  .grid-3 .card--sticker:nth-child(2) { margin-top: 34px; }
  .grid-3 .card--sticker:nth-child(3) { margin-top: -14px; }
}

.card--sticker:hover {
  transform: rotate(0deg) translateY(-6px);
  box-shadow: 9px 9px 0 0 color-mix(in srgb, var(--accent) 70%, transparent);
}
.card--sticker:active { transform: rotate(0deg) scale(0.96) !important; }

/* タッチ端末（ホバー不可）では、看板の3枚だけゆらゆら浮遊させる */
.card--sticker.idle-float {
  animation: card-float 4.6s ease-in-out infinite;
}
.card--sticker.idle-float:nth-child(2) { animation-delay: 0.5s; }
.card--sticker.idle-float:nth-child(3) { animation-delay: 1s; }

@keyframes card-float {
  0%, 100% { transform: rotate(var(--tilt, 0deg)) translateY(0); }
  50% { transform: rotate(calc(var(--tilt, 0deg) * -0.6)) translateY(-10px); }
}

/* --------------------------------------------------------
   スクロール出現演出（JSが有効な場合のみ付与される）
   全要素を同じ動きで出すと単調に見えるため、要素の性格ごとに
   data-reveal で動きを変える。演出後はJSがクラスを外すので、
   ホバー時の変形とはぶつからない。
   -------------------------------------------------------- */
.reveal-init { opacity: 0; }

.reveal-in {
  animation-duration: 0.85s;
  animation-timing-function: cubic-bezier(0.16, 1, 0.3, 1);
  animation-fill-mode: both;
}

/* 文章まわり：静かに下から */
[data-reveal="up"].reveal-in { animation-name: rv-up; }
@keyframes rv-up {
  from { opacity: 0; transform: translateY(30px); }
  to   { opacity: 1; transform: none; }
}

/* 看板カード：傾いた角度から「パタン」と貼られる */
[data-reveal="stamp"].reveal-in { animation-name: rv-stamp; animation-duration: 0.7s; }
@keyframes rv-stamp {
  from { opacity: 0; transform: rotate(-10deg) scale(1.15); }
  to   { opacity: 1; transform: rotate(var(--tilt, 0deg)); }
}

/* 写真：フェードではなく、マスクが横に開く */
[data-reveal="wipe"].reveal-in { animation-name: rv-wipe; animation-duration: 1s; }
@keyframes rv-wipe {
  from { opacity: 1; clip-path: inset(0 100% 0 0); }
  to   { opacity: 1; clip-path: inset(0 0 0 0); }
}

/* 見出し：横から滑り込む */
[data-reveal="slide"].reveal-in { animation-name: rv-slide; }
@keyframes rv-slide {
  from { opacity: 0; transform: translateX(-28px); }
  to   { opacity: 1; transform: none; }
}

@media (prefers-reduced-motion: reduce) {
  .reveal-init { opacity: 1; }
  .reveal-in { animation: none; }
  .card, .card--sticker, .card--sticker.idle-float { transition: none; animation: none; }
}

.card .num {
  display: inline-block;
  font-family: 'Fraunces', serif;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--accent);
  animation: num-bounce 2.4s ease-in-out infinite;
}
.card:nth-child(2) .num { animation-delay: 0.25s; }
.card:nth-child(3) .num { animation-delay: 0.5s; }

@keyframes num-bounce {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-5px); }
}

@media (prefers-reduced-motion: reduce) {
  .card .num { animation: none; }
}

.card h3 { font-size: 1.15rem; margin-bottom: 0.2em; }
.card p { color: var(--ink-soft); font-size: 0.95rem; margin-bottom: 0; }

/* ---- 罫線だけの説明ブロック（カードにしない静かな列） ---- */
.stack { display: grid; gap: 0; max-width: 760px; }
.stack-item {
  border-top: 1px solid var(--line);
  padding: 26px 0 26px 30px;
  position: relative;
}
.stack-item:last-child { border-bottom: 1px solid var(--line); }
.stack-item::before {
  content: "";
  position: absolute;
  left: 0;
  top: 33px;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--accent);
}
.stack-item h3 { font-size: 1.1rem; margin-bottom: 6px; }
.stack-item p { color: var(--ink-soft); font-size: 0.96rem; margin-bottom: 0; }

/* ---- 料金テーブル ---- */
.price-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.95rem;
}
.price-table th, .price-table td {
  text-align: left;
  padding: 16px 12px;
  border-bottom: 1px solid var(--line);
}
.price-table tbody tr { transition: background 0.2s ease, transform 0.2s ease; }
.price-table tbody tr:hover { background: var(--surface-soft); transform: translateX(6px); }
.price-table th { color: var(--ink-faint); font-weight: 600; font-size: 0.82rem; text-transform: uppercase; letter-spacing: 0.06em; }
.price-table td.amount { font-variant-numeric: tabular-nums; white-space: nowrap; font-weight: 600; }
.table-wrap { overflow-x: auto; }

/* ---- 実績（ポートフォリオ） ---- */
.case-study {
  background: var(--surface);
  border: 2px solid var(--ink);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transform: rotate(-0.6deg);
  box-shadow: 8px 8px 0 0 color-mix(in srgb, var(--sand) 60%, transparent);
  transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}
.case-study:hover { transform: rotate(0deg); }

.browser-frame {
  background: var(--ink);
  padding: 10px 14px;
  display: flex;
  align-items: center;
  gap: 8px;
}
.browser-frame .dot { width: 10px; height: 10px; border-radius: 50%; background: var(--ink-faint); opacity: 0.6; }
.browser-frame .url {
  margin-left: 10px;
  font-size: 0.78rem;
  color: #cfd2e0;
  font-family: 'Work Sans', sans-serif;
  background: rgba(255,255,255,0.08);
  padding: 4px 12px;
  border-radius: 999px;
}

.case-study iframe {
  width: 100%;
  height: 520px;
  border: none;
  display: block;
  background: var(--surface-soft);
}
@media (max-width: 720px) { .case-study iframe { height: 380px; } }

.case-body { padding: 34px; display: grid; gap: 26px; }

.case-points { display: grid; gap: 20px; }
@media (min-width: 720px) { .case-points { grid-template-columns: repeat(3, 1fr); } }
.case-points h4 {
  font-size: 0.78rem; text-transform: uppercase; letter-spacing: 0.08em;
  color: var(--accent); font-weight: 700; margin: 0 0 8px;
}
.case-points p { font-size: 0.93rem; color: var(--ink-soft); margin: 0; }

/* 付箋のように少し傾けて貼る */
.note-box {
  position: relative;
  background: color-mix(in srgb, var(--sand) 12%, var(--surface));
  border: 2px solid var(--ink);
  border-radius: 10px;
  padding: 18px 22px;
  font-size: 0.9rem;
  color: var(--ink-soft);
  transform: rotate(-1deg);
  box-shadow: 4px 4px 0 0 color-mix(in srgb, var(--sand) 55%, transparent);
  transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}
.note-box:hover { transform: rotate(1deg) scale(1.015); }

/* ---- 写真フレーム（ステッカー調） ---- */
.photo-frame {
  border: 3px solid var(--ink);
  border-radius: 16px;
  overflow: hidden;
  transform: rotate(var(--tilt, -1.5deg));
  box-shadow: 9px 10px 0 0 color-mix(in srgb, var(--sand) 65%, transparent);
  transition: transform 0.35s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.25s ease;
}
.photo-frame:hover {
  transform: rotate(0deg) translateY(-5px);
  box-shadow: 13px 15px 0 0 color-mix(in srgb, var(--accent) 70%, transparent);
}
.photo-frame img { width: 100%; height: 100%; object-fit: cover; }

/* 写真＋文章の2カラム */
.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
}
@media (max-width: 860px) {
  .split { grid-template-columns: 1fr; gap: 36px; }
}

/* ---- チェックリスト ---- */
.checklist { list-style: none; padding: 0; margin: 0; display: grid; gap: 14px; }
.checklist li {
  position: relative;
  padding-left: 40px;
  font-size: 1rem;
  line-height: 1.7;
}
.checklist li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 3px;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: var(--sand);
  border: 2px solid var(--ink);
}
.checklist li::after {
  content: "";
  position: absolute;
  left: 7px;
  top: 11px;
  width: 9px;
  height: 5px;
  border-left: 2.5px solid var(--ink);
  border-bottom: 2.5px solid var(--ink);
  transform: rotate(-45deg);
}

/* ---- 全幅の写真帯 ---- */
.photo-band {
  position: relative;
  padding: 0;
  min-height: 320px;
  display: grid;
  place-items: center;
  overflow: hidden;
  border-top: 3px solid var(--ink);
  border-bottom: 3px solid var(--ink);
}
.photo-band img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.photo-band::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(100deg,
    rgba(20, 14, 6, 0.78) 0%,
    rgba(20, 14, 6, 0.55) 55%,
    rgba(20, 14, 6, 0.3) 100%);
}
.photo-band .band-copy {
  position: relative;
  z-index: 1;
  text-align: center;
  color: #fff;
  padding: 60px 24px;
  max-width: 640px;
}
.photo-band .band-copy h2 { color: #fff; margin-bottom: 0.4em; }
.photo-band .band-copy p { color: rgba(255,255,255,0.86); margin-bottom: 0; }

/* ---- サービス内の補足写真 ---- */
.inline-photo {
  display: grid;
  grid-template-columns: 200px 1fr;
  gap: 22px;
  align-items: center;
  margin-top: 18px;
}
@media (max-width: 640px) {
  .inline-photo { grid-template-columns: 1fr; }
}

/* ---- ごあいさつ（枠で囲わず、雑誌の見開きのように組む） ---- */
.greeting {
  display: grid;
  grid-template-columns: 300px 1fr;
  gap: 52px;
  align-items: start;
}
@media (max-width: 780px) {
  .greeting { grid-template-columns: 1fr; gap: 28px; }
}

/* 写真は角丸を大きく取り、上に少しずらして紙面から浮かせる */
.greeting .avatar {
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  border-radius: 160px 160px 18px 18px;
  border: 2px solid var(--ink);
  margin-top: -18px;
}
@media (max-width: 780px) {
  .greeting .avatar { width: 210px; margin: 0 auto; }
}

/* 本文の頭に細い縦罫を引いて、囲まずに「まとまり」を作る */
.greeting-body {
  border-left: 3px solid var(--accent);
  padding-left: 30px;
}
@media (max-width: 780px) {
  .greeting-body { border-left: none; padding-left: 0; }
}
.greeting-body .name {
  font-family: 'Fraunces', serif;
  font-size: 1.4rem;
  font-weight: 600;
  margin-bottom: 2px;
}

.greeting .role {
  font-size: 0.85rem;
  color: var(--ink-faint);
  margin-top: 4px;
}

.greeting p:last-child { margin-bottom: 0; }

/* ---- 連絡先 ---- */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}
@media (max-width: 720px) { .contact-grid { grid-template-columns: 1fr; } }

/* 連絡先は補助情報なので静かに置く（主役はフォーム） */
.contact-card {
  background: transparent;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  padding: 28px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.contact-card .icon {
  width: 42px; height: 42px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  background: var(--accent);
  font-size: 1.1rem;
  animation: num-bounce 2.8s ease-in-out infinite;
}
.contact-card:nth-child(2) .icon { animation-delay: 0.4s; }

@media (prefers-reduced-motion: reduce) {
  .contact-card .icon { animation: none; }
}

/* ---- DMへの導線（問い合わせの主役） ---- */
.dm-cta {
  background: var(--surface);
  border: 2px solid var(--ink);
  border-radius: var(--radius-lg);
  padding: 46px 40px;
  text-align: center;
  box-shadow: 7px 8px 0 0 color-mix(in srgb, var(--sand) 60%, transparent);
}
.dm-cta .dm-icon {
  display: inline-grid;
  place-items: center;
  width: 68px;
  height: 68px;
  border-radius: 22px;
  margin-bottom: 18px;
  color: var(--bg);
  background: var(--accent);
  border: 2px solid var(--ink);
}
.dm-cta h2 { font-size: clamp(1.3rem, 3.4vw, 1.7rem); margin-bottom: 0.5em; }
.dm-cta p { color: var(--ink-soft); margin: 0 auto 26px; max-width: 46ch; }

/* ---- 問い合わせフォーム（現在は未使用。再開時にそのまま使える） ---- */
.contact-form {
  background: var(--surface);
  border: 2px solid var(--ink);
  border-radius: var(--radius-lg);
  padding: 32px;
  display: grid;
  gap: 20px;
  box-shadow: 6px 7px 0 0 color-mix(in srgb, var(--sand) 55%, transparent);
}
.field input, .field textarea { box-shadow: none; }

.field { display: grid; gap: 7px; }

.field label {
  font-size: 0.88rem;
  font-weight: 600;
}
.field .required {
  font-size: 0.72rem;
  color: var(--accent);
  margin-left: 6px;
  font-weight: 700;
}

.field input,
.field textarea {
  font-family: inherit;
  font-size: 1rem;
  color: var(--ink);
  background: var(--bg);
  border: 2px solid var(--line);
  border-radius: 10px;
  padding: 12px 14px;
  transition: border-color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}
.field input:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--accent);
  transform: translate(-2px, -2px);
  box-shadow: 4px 4px 0 0 color-mix(in srgb, var(--accent) 45%, transparent);
}
.field textarea { min-height: 150px; resize: vertical; }

.form-status {
  font-size: 0.92rem;
  font-weight: 600;
  padding: 14px 18px;
  border-radius: 10px;
  border: 2px dashed var(--accent);
  background: color-mix(in srgb, var(--sand) 12%, var(--surface));
}
.form-status[hidden] { display: none !important; }

/* ---- 制作の流れ（縦の線でつなぐ。番号は本当の順序なので数字を使う） ---- */
.flow { position: relative; display: grid; gap: 34px; max-width: 720px; }
.flow::before {
  content: "";
  position: absolute;
  left: 25px;
  top: 12px;
  bottom: 12px;
  width: 2px;
  background: repeating-linear-gradient(
    var(--line) 0 6px, transparent 6px 12px
  );
}
.flow-step {
  position: relative;
  display: grid;
  grid-template-columns: 52px 1fr;
  gap: 22px;
  align-items: start;
}
.flow-step .no {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: var(--surface);
  border: 2px solid var(--ink);
  font-family: 'Fraunces', serif;
  font-weight: 600;
  font-size: 1.05rem;
  z-index: 1;
}
.flow-step:last-child .no { background: var(--sand); }
.flow-step h3 { font-size: 1.08rem; margin-bottom: 4px; }
.flow-step p { color: var(--ink-soft); font-size: 0.94rem; margin-bottom: 0; }

/* ---- よくあるご質問 ---- */
.faq { display: grid; gap: 0; max-width: 760px; }
.faq-item {
  border-top: 1px solid var(--line);
  padding: 24px 0;
}
.faq-item:last-child { border-bottom: 1px solid var(--line); }
.faq-item h3 {
  position: relative;
  padding-left: 38px;
  font-size: 1.05rem;
  margin-bottom: 8px;
}
.faq-item h3::before {
  content: "Q";
  position: absolute;
  left: 0;
  top: -1px;
  font-family: 'Fraunces', serif;
  color: var(--accent);
  font-size: 1.2rem;
}
.faq-item p {
  padding-left: 38px;
  color: var(--ink-soft);
  font-size: 0.95rem;
  margin-bottom: 0;
}

/* ---- フッター ---- */
footer {
  padding: 40px 0;
  border-top: 1px solid var(--line);
  color: var(--ink-faint);
  font-size: 0.85rem;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
}

/* ---- ページ共通ヒーロー（下位ページ用の小さめ版） ---- */
.page-hero { padding: 64px 0 40px; }
.page-hero h1 { font-size: clamp(1.8rem, 4vw, 2.4rem); }
