@charset "utf-8";
/* ============================================================
   居川ホームページ制作
   コンセプト：ロゴ（IGAWA WEB DESIGN）の世界観
   白基調 × 濃紺〜水色のグラデーション × 極細ラインと波モチーフ
   モバイルファースト（PCは @media で追加）
   ============================================================ */

/* ---------- 1. 変数 ---------- */
:root {
  /* ベース */
  --paper:        #ffffff;
  --paper-2:      #f5f8fc;
  --paper-3:      #eaf1f8;
  --ink:          #1a2233;
  --ink-2:        #5a6b80;
  --ink-3:        #8194a8;
  --line:         #dde5ee;
  --line-2:       #c3d3e4;

  /* ブルー */
  --accent:       #1b3b6f;
  --accent-2:     #2e6db4;
  --accent-3:     #8fc0e4;
  --accent-soft:  #e3eef8;
  --accent-tint:  rgba(27, 59, 111, .07);
  --grad:         linear-gradient(135deg, #1b3b6f 0%, #4a8cc7 100%);
  --grad-hover:   linear-gradient(135deg, #26518f 0%, #5f9dd4 100%);

  /* 補助（架空表記バッジ等でのみ使用） */
  --clay:         #5a6b80;
  --line-brand:   #06c755;

  --font-serif: "Shippori Mincho", "Noto Serif JP", "Hiragino Mincho ProN", "Yu Mincho", "MS PMincho", serif;
  --font-sans:  "Noto Sans JP", "Hiragino Kaku Gothic ProN", "Yu Gothic", "Meiryo", sans-serif;
  --font-num:   "Cormorant Garamond", "Shippori Mincho", Georgia, serif;

  --wrap: 1160px;
  --gut: 22px;
  --r: 4px;
  --header-h: 64px;
  --ease: cubic-bezier(.22,.61,.36,1);
}

/* ---------- 2. リセット / ベース ---------- */
*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-sans);
  font-size: 15px;
  line-height: 1.9;
  letter-spacing: .04em;
  font-feature-settings: "palt" 1;
  overflow-x: hidden;
}

/* 背景の波モチーフ（ロゴの曲線を抽象化。ごく薄く） */
.section, .hero, .page-head { position: relative; }
.hero::after,
.section:nth-of-type(odd)::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 190px;
  pointer-events: none;
  z-index: 0;
  opacity: .5;
  background-repeat: no-repeat;
  background-position: center bottom;
  background-size: 1600px 190px;
  background-image: url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='1600' height='190' viewBox='0 0 1600 190' fill='none'%3E%3Cpath d='M0 150C260 150 300 60 560 60S900 150 1160 150s180-70 440-70' stroke='%238FC0E4' stroke-width='1'/%3E%3Cpath d='M0 176C260 176 320 96 580 96s320 80 580 80 180-56 440-56' stroke='%238FC0E4' stroke-width='1' opacity='.6'/%3E%3C/svg%3E");
}
.section > .wrap, .hero > .wrap { position: relative; z-index: 1; }

/* セクション交互の背景 */
.section:nth-of-type(even) { background: var(--paper-2); }

img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
ul, ol { margin: 0; padding: 0; list-style: none; }
p { margin: 0; }
h1, h2, h3, h4 { margin: 0; font-weight: 600; line-height: 1.55; letter-spacing: .03em; }

h1, h2, h3, .lead, .catchcopy, .card-title, blockquote {
  text-wrap: balance;
  word-break: normal;
  overflow-wrap: anywhere;
  line-break: strict;
}

/* 日本語の見出しが単語の途中で折り返さないようにする。
   .nw で囲んだ意味のまとまりは、その内側では改行されない。
   （word-break:auto-phrase は対応ブラウザでの上乗せ） */
.nw { display: inline-block; }
h1, h2, h3, .catchcopy, .sec-title, .cta-title, .card-title, .step-title {
  word-break: auto-phrase;
}

/* 本文まわりは末尾1〜2文字だけが次行に落ちるのを防ぐ */
.sec-lead, .card-body, .step-body, .plan-desc, .plan-list li,
.work-comment, .prose p, .hero-sub, .cta-body, .notice p {
  text-wrap: pretty;
  line-break: strict;
}

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

.wrap {
  width: 100%;
  max-width: var(--wrap);
  margin-inline: auto;
  padding-inline: var(--gut);
}

.wrap-narrow {
  width: 100%;
  max-width: 780px;
  margin-inline: auto;
  padding-inline: var(--gut);
}

/* セクションの上下余白（PC幅はメディアクエリで拡張） */
.section {
  position: relative;
  padding-block: 72px;
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 10000;
  background: var(--accent);
  color: #fff;
  padding: 10px 18px;
  font-size: 13px;
}
.skip-link:focus { left: 8px; top: 8px; }

/* 見た目には出さず、見出し階層（h2→h3）とスクリーンリーダーにだけ残す見出し */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}

/* ---------- 3. 共通パーツ ---------- */

/* 縦書きの飾りラベル（PCのみ表示） */
.vlabel {
  display: none;
  writing-mode: vertical-rl;
  font-family: var(--font-serif);
  font-size: 12px;
  letter-spacing: .34em;
  color: var(--accent-2);
  white-space: nowrap;
}
.vlabel::before {
  content: "";
  display: block;
  width: 1px;
  height: 44px;
  margin: 0 auto 16px;
  background: var(--accent-3);
}

/* セクション見出し */
.sec-head { margin-bottom: 40px; }

.sec-eyebrow {
  display: flex;
  align-items: center;
  gap: 12px;
  font-family: var(--font-num);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: .2em;
  color: var(--accent-2);
  margin-bottom: 18px;
}
.sec-no {
  font-family: var(--font-num);
  font-size: 22px;
  letter-spacing: 0;
  line-height: 1;
  color: var(--accent);
  opacity: .55;
}
.sec-eyebrow::after {
  content: "";
  flex: 1;
  height: 1px;
  background: var(--line);
}

.sec-title {
  font-family: var(--font-serif);
  font-size: clamp(23px, 6.4vw, 34px);
  font-weight: 600;
  line-height: 1.7;
  letter-spacing: .06em;
}

.sec-lead {
  margin-top: 20px;
  color: var(--ink-2);
  font-size: 14.5px;
}

/* マーカー（キーワード強調） */
.mark {
  background-image: linear-gradient(transparent 62%, var(--accent-soft) 62%, var(--accent-soft) 96%, transparent 96%);
  padding-inline: .08em;
}
.strong-green { color: var(--accent-2); font-weight: 700; }

/* ボタン */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 52px;
  padding: 0 26px;
  border: 1px solid var(--accent);
  border-radius: var(--r);
  background: transparent;
  color: var(--accent);
  font-size: 14px;
  font-weight: 500;
  letter-spacing: .1em;
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
  transition: background .3s var(--ease), color .3s var(--ease), border-color .3s var(--ease), box-shadow .3s var(--ease);
}
.btn:hover { background: var(--grad); border-color: transparent; color: #fff; }

.btn-fill { background: var(--grad); border-color: transparent; color: #fff; }
.btn-fill:hover { background: var(--grad-hover); border-color: transparent; }

.btn-line {
  background: var(--grad);
  border-color: transparent;
  color: #fff;
  box-shadow: 0 2px 12px rgba(27, 59, 111, .16);
}
.btn-line:hover { background: var(--grad-hover); border-color: transparent; color: #fff; }
.btn-line .ico { width: 18px; height: 18px; flex: none; }

.btn-ghost { background: transparent; border-color: var(--accent-3); color: var(--accent); }
.btn-ghost:hover { background: var(--accent-soft); border-color: var(--accent-2); color: var(--accent); }

.btn-block { width: 100%; }

/* iPhone SE など狭い端末でボタンがはみ出さないように */
@media (max-width: 359px) {
  .btn { padding-inline: 16px; font-size: 13px; letter-spacing: .06em; }
}

/* テキストリンク（→つき） */
.tlink {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 13.5px;
  font-weight: 500;
  letter-spacing: .12em;
  color: var(--accent-2);
  text-decoration: none;
  /* padding-topとmargin-topの相殺で、見た目を変えずにタップ領域だけ上に広げる */
  padding: 12px 0 6px;
  margin-top: -12px;
  border-bottom: 1px solid var(--accent-3);
  transition: border-color .3s var(--ease), gap .3s var(--ease);
}
.tlink::after {
  content: "→";
  transition: transform .3s var(--ease);
}
.tlink:hover { border-color: var(--accent); }
.tlink:hover::after { transform: translateX(5px); }

/* 罫線 */
.rule { height: 1px; background: var(--line); border: 0; margin: 0; }

/* ユーティリティ */
.br-pc { display: none; }
@media (min-width: 768px) { .br-pc { display: inline; } }
.mt-l { margin-top: 34px; }
.mt-xl { margin-top: 52px; }
.text-sm { font-size: 13px; color: var(--ink-3); }

/* ---------- 4. ヘッダー ---------- */
.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 200;
  height: var(--header-h);
  display: flex;
  align-items: center;
  background: rgba(255, 255, 255, 0);
  border-bottom: 1px solid transparent;
  transition: background-color .35s var(--ease), border-color .35s var(--ease);
}
.site-header.is-solid {
  background: rgba(255, 255, 255, .92);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom-color: var(--line);
}
.header-inner {
  width: 100%;
  max-width: var(--wrap);
  margin-inline: auto;
  padding-inline: var(--gut);
  display: flex;
  align-items: center;
  gap: 16px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  margin-right: auto;
}
.brand-mark {
  width: 38px;
  height: 38px;
  flex: none;
  object-fit: contain;
  background: none;
  border-radius: 0;
}
@media (min-width: 1024px) { .brand-mark { width: 44px; height: 44px; } }
.brand-name {
  display: block;
  font-family: var(--font-serif);
  font-size: 14.5px;
  font-weight: 600;
  letter-spacing: .14em;
  line-height: 1.3;
  color: var(--accent);
}
.brand-sub {
  display: none;
  font-family: var(--font-num);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: .2em;
  color: var(--accent-2);
  line-height: 1.4;
}

.nav { display: none; }
.nav-list { display: flex; align-items: center; gap: 26px; }
.nav-link {
  position: relative;
  display: block;
  padding: 6px 0;
  font-size: 13px;
  font-weight: 500;
  letter-spacing: .1em;
  text-decoration: none;
  color: var(--ink);
  transition: color .25s var(--ease);
}
.nav-link::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  height: 1px;
  background: var(--grad);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .3s var(--ease);
}
.nav-link:hover { color: var(--accent-2); }
.nav-link:hover::after { transform: scaleX(1); }
.nav-link.is-current { color: var(--accent-2); }
.nav-link.is-current::after { transform: scaleX(1); }

.header-cta { display: none; }

/* ハンバーガー */
.nav-toggle {
  width: 44px;
  height: 44px;
  margin-right: -10px;
  display: grid;
  place-content: center;
  gap: 6px;
  background: none;
  border: 0;
  padding: 0;
  cursor: pointer;
}
.nav-toggle span {
  display: block;
  width: 22px;
  height: 1.5px;
  background: var(--accent);
  transition: transform .3s var(--ease), opacity .2s var(--ease);
}
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(3.75px) rotate(38deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { transform: translateY(-3.75px) rotate(-38deg); }

/* モバイルメニュー */
.mobile-nav {
  position: fixed;
  inset: 0;
  z-index: 190;
  background: var(--paper);
  padding: calc(var(--header-h) + 28px) var(--gut) 40px;
  display: flex;
  flex-direction: column;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-8px);
  transition: opacity .32s var(--ease), transform .32s var(--ease), visibility .32s;
  overflow-y: auto;
}
.mobile-nav.is-open { opacity: 1; visibility: visible; transform: none; }
.mobile-nav-list { border-top: 1px solid var(--line); }
.mobile-nav-list li { border-bottom: 1px solid var(--line); }
.mobile-nav-list a {
  display: flex;
  align-items: baseline;
  gap: 14px;
  padding: 20px 2px;
  font-family: var(--font-serif);
  font-size: 19px;
  font-weight: 600;
  letter-spacing: .08em;
  text-decoration: none;
}
.mobile-nav-list a .en {
  font-family: var(--font-num);
  font-size: 13px;
  letter-spacing: .2em;
  color: var(--accent-2);
}
.mobile-nav-list a.is-current { color: var(--accent-2); }
.mobile-nav-foot { margin-top: 32px; }
.mobile-nav-foot .btn { width: 100%; }
.mobile-nav-note {
  margin-top: 20px;
  font-size: 12px;
  color: var(--ink-3);
  letter-spacing: .08em;
}

/* ---------- 5. ヒーロー ---------- */
.hero {
  position: relative;
  padding-top: calc(var(--header-h) + 40px);
  padding-bottom: 56px;
  overflow: hidden;
}
.hero { background: linear-gradient(180deg, #f5f8fc 0%, #ffffff 72%); }
.hero::before {
  content: "";
  position: absolute;
  top: -10vw;
  right: -26vw;
  width: 86vw;
  height: 86vw;
  border: 1px solid var(--accent-3);
  border-radius: 50%;
  opacity: .55;
  z-index: 0;
}

.hero-top {
  display: flex;
  align-items: center;
  gap: 14px;
  font-family: var(--font-num);
  font-size: 13.5px;
  font-weight: 600;
  letter-spacing: .2em;
  color: var(--accent-2);
  margin-bottom: 26px;
}
.hero-top::after { content: ""; flex: 1; height: 1px; background: var(--accent-3); }

.catchcopy {
  font-family: var(--font-serif);
  font-size: clamp(21px, 5.8vw, 38px);
  font-weight: 600;
  line-height: 1.72;
  letter-spacing: .06em;
  color: var(--accent);
}

.hero-sub {
  margin-top: 26px;
  font-size: 14.5px;
  color: var(--ink-2);
  line-height: 2.15;
}

.hero-keywords {
  margin-top: 28px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.hero-keywords li {
  font-size: 11.5px;
  letter-spacing: .12em;
  color: var(--accent-2);
  border: 1px solid var(--accent-3);
  border-radius: 999px;
  padding: 5px 14px;
}

.hero-actions {
  margin-top: 30px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.hero-note {
  margin-top: 14px;
  font-size: 14px;
  letter-spacing: .06em;
  color: var(--accent-2);
  opacity: .8;
}

/* 顔写真 */
.hero-figure {
  position: relative;
  margin-top: 46px;
  padding: 0 0 14px 14px;
}
.hero-figure::before {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 62%;
  height: 72%;
  border: 1px solid var(--accent-3);
  z-index: 0;
}
.hero-figure img {
  position: relative;
  z-index: 1;
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  border: 1px solid var(--line);
}
.hero-figure figcaption {
  position: relative;
  z-index: 1;
  margin-top: 14px;
  display: flex;
  flex-direction: column; /* モバイルは縦積み（氏名／その下に英名・所在地） */
  gap: 4px;
  font-size: 12px;
  letter-spacing: .1em;
  color: var(--ink-3);
}
.hero-figure figcaption b,
.hero-figure figcaption span {
  white-space: nowrap; /* 「居川 魁登」「滋賀県長浜市」の途中改行を禁止 */
}
.hero-figure figcaption b {
  font-family: var(--font-serif);
  font-size: 15px;
  font-weight: 600;
  letter-spacing: .14em;
  color: var(--accent);
}
@media (min-width: 768px) {
  /* タブレット・PCは従来どおり横並び */
  .hero-figure figcaption {
    flex-direction: row;
    flex-wrap: wrap; /* 写真カラムが狭いときは所在地を丸ごと2行目へ（途中改行はしない） */
    align-items: baseline;
    gap: 4px 10px;
  }
}

/* キーワード帯 */
.band {
  border-block: 1px solid var(--line);
  background: var(--paper-2);
  padding-block: 22px;
}
.band-list {
  display: grid;
  grid-template-columns: 1fr;
}
.band-list li {
  display: flex;
  align-items: baseline;
  gap: 12px;
  padding: 10px 0;
  font-family: var(--font-serif);
  font-size: 15px;
  font-weight: 600;
  letter-spacing: .1em;
  color: var(--accent);
}
.band-list li + li { border-top: 1px solid var(--line); }
.band-list .n {
  font-family: var(--font-num);
  font-size: 16px;
  font-weight: 600;
  color: var(--accent-2);
  letter-spacing: .06em;
}
.band-list .t {
  display: block;
  margin-top: 4px;
  font-size: 12.5px;
  font-family: var(--font-sans);
  font-weight: 400;
  line-height: 1.75;
  color: var(--ink-3);
  letter-spacing: .06em;
}

/* ---------- 6. カード ---------- */
.cards {
  display: grid;
  gap: 16px;
}
.card {
  position: relative;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--r);
  padding: 30px 24px 32px;
  transition: border-color .35s var(--ease), transform .35s var(--ease);
}
.card:hover { border-color: var(--accent-3); }
.card-no {
  font-family: var(--font-num);
  font-size: 38px;
  line-height: 1;
  color: var(--accent-2);
  opacity: .45;
  display: block;
  margin-bottom: 14px;
}
.card-title {
  font-family: var(--font-serif);
  font-size: 18px;
  font-weight: 600;
  line-height: 1.7;
  letter-spacing: .05em;
  margin-bottom: 14px;
  color: var(--accent);
}
.card-body { font-size: 14px; color: var(--ink-2); }

/* ---------- 7. ステップ（制作の流れ） ---------- */
.steps {
  position: relative;
  padding-left: 4px;
}
.step {
  position: relative;
  padding: 0 0 34px 54px;
}
.step::before {
  content: "";
  position: absolute;
  left: 17px;
  top: 12px;
  bottom: -6px;
  width: 1px;
  background: var(--accent-3);
}
.step:last-child { padding-bottom: 0; }
.step:last-child::before { display: none; }
.step-no {
  position: absolute;
  left: 0;
  top: 0;
  width: 35px;
  height: 35px;
  display: grid;
  place-items: center;
  border: 1px solid var(--accent-3);
  border-radius: 50%;
  background: #fff;
  font-family: var(--font-num);
  font-size: 18px;
  font-weight: 600;
  line-height: 1;
  color: var(--accent-2);
  z-index: 1;
}
.step-title {
  font-family: var(--font-serif);
  font-size: 18px;
  font-weight: 600;
  line-height: 1.65;
  letter-spacing: .05em;
  padding-top: 3px;
  margin-bottom: 10px;
  color: var(--accent);
}
.step-body { font-size: 14px; color: var(--ink-2); }
.step-tag {
  display: inline-block;
  margin-top: 12px;
  font-size: 11.5px;
  letter-spacing: .12em;
  color: var(--accent-2);
  background: var(--accent-soft);
  padding: 4px 12px;
  border-radius: 999px;
}

/* ---------- 8. 料金 ---------- */
.plans { display: grid; gap: 18px; }
.plan {
  position: relative;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--r);
  padding: 30px 24px;
}
.plan.is-recommended { border-color: var(--accent-2); box-shadow: 0 6px 28px rgba(27, 59, 111, .08); }
.plan-badge {
  position: absolute;
  top: -11px;
  left: 24px;
  background: var(--grad);
  color: #fff;
  font-size: 11px;
  letter-spacing: .14em;
  padding: 3px 12px;
  border-radius: 999px;
}
.plan-name {
  font-family: var(--font-serif);
  font-size: 17px;
  font-weight: 600;
  letter-spacing: .14em;
  color: var(--accent);
}
.plan-price {
  display: flex;
  align-items: baseline;
  gap: 6px;
  margin-top: 12px;
  padding-bottom: 18px;
  border-bottom: 1px solid var(--line);
  font-family: var(--font-num);
  font-size: 40px;
  font-weight: 600;
  line-height: 1.1;
  color: var(--accent);
}
.plan-price .tax {
  font-family: var(--font-sans);
  font-size: 11.5px;
  color: var(--ink-3);
  letter-spacing: .08em;
}
.plan-desc { margin-top: 18px; font-size: 14px; color: var(--ink-2); }
.plan-list { margin-top: 16px; }
.plan-list li {
  position: relative;
  padding-left: 20px;
  font-size: 13.5px;
  color: var(--ink-2);
  margin-top: 8px;
}
.plan-list li::before {
  content: "";
  position: absolute;
  left: 2px;
  top: 12px;
  width: 8px;
  height: 1px;
  background: var(--accent-2);
}

/* 表 */
.table-scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; }
table.tbl {
  width: 100%;
  min-width: 520px;
  border-collapse: collapse;
  font-size: 13.5px;
  background: #fff;
}
table.tbl th, table.tbl td {
  border: 1px solid var(--line);
  padding: 14px 16px;
  text-align: left;
  vertical-align: top;
}
table.tbl th {
  background: var(--accent-soft);
  font-weight: 500;
  letter-spacing: .08em;
  white-space: nowrap;
}

/* ---------- 9. 制作例 ---------- */
.works { display: grid; gap: 26px; }
.work {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--r);
  overflow: hidden;
  transition: border-color .35s var(--ease);
}
.work:hover { border-color: var(--accent-3); }
.work-thumb { position: relative; background: var(--paper-3); }
.work-thumb img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}
.work-flag {
  position: absolute;
  top: 12px;
  left: 12px;
  font-size: 10.5px;
  letter-spacing: .12em;
  padding: 4px 10px;
  border-radius: 999px;
  background: rgba(255,255,255,.94);
  border: 1px solid var(--line-2);
  color: var(--ink-2);
}
.work-flag.is-real { border-color: var(--accent-2); color: var(--accent-2); }
.work-flag.is-concept { border-color: var(--clay); color: var(--clay); }
.work-body { padding: 22px 22px 26px; }
.work-meta {
  font-family: var(--font-num);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: .2em;
  color: var(--accent-2);
  margin-bottom: 8px;
}
.work-name {
  font-family: var(--font-serif);
  font-size: 18px;
  font-weight: 600;
  letter-spacing: .1em;
  margin-bottom: 12px;
  color: var(--accent);
}
.work-comment { font-size: 13.5px; color: var(--ink-2); }

.notice {
  border: 1px solid var(--line-2);
  border-radius: var(--r);
  background: #fff;
  padding: 20px 22px;
  font-size: 13.5px;
  color: var(--ink-2);
}
.notice b { color: var(--clay); }

/* ---------- 10. CTA ---------- */
.cta {
  position: relative;
  background: var(--grad);
  color: #fff;
  padding-block: 60px;
  overflow: hidden;
}
.cta::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 190px;
  pointer-events: none;
  opacity: .35;
  background-repeat: no-repeat;
  background-position: center bottom;
  background-size: 1600px 190px;
  background-image: url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='1600' height='190' viewBox='0 0 1600 190' fill='none'%3E%3Cpath d='M0 150C260 150 300 60 560 60S900 150 1160 150s180-70 440-70' stroke='%23ffffff' stroke-width='1'/%3E%3Cpath d='M0 176C260 176 320 96 580 96s320 80 580 80 180-56 440-56' stroke='%23ffffff' stroke-width='1' opacity='.6'/%3E%3C/svg%3E");
}
.cta::before {
  content: "";
  position: absolute;
  left: -14%;
  bottom: -34%;
  width: 62vw;
  height: 62vw;
  border: 1px solid rgba(255,255,255,.14);
  border-radius: 50%;
}
.cta-inner { position: relative; z-index: 1; }
.cta-eyebrow {
  font-family: var(--font-num);
  font-size: 13.5px;
  font-weight: 600;
  letter-spacing: .2em;
  opacity: .85;
  margin-bottom: 16px;
}
.cta-title {
  font-family: var(--font-serif);
  font-size: clamp(21px, 5.8vw, 30px);
  font-weight: 600;
  line-height: 1.75;
  letter-spacing: .06em;
}
.cta-body {
  margin-top: 20px;
  font-size: 14px;
  line-height: 2.1;
  color: rgba(255,255,255,.88);
}
.cta-samples { margin-top: 26px; }
.cta-samples-title {
  font-size: 13px;
  font-weight: 600;
  letter-spacing: .04em;
  color: rgba(255,255,255,.92);
  margin-bottom: 12px;
}
.cta-samples-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding-left: 14px;
  border-left: 1px solid rgba(255,255,255,.32);
}
.cta-samples-list li {
  font-size: 13.5px;
  line-height: 1.85;
  color: rgba(255,255,255,.86);
}
.cta-samples-note {
  margin-top: 12px;
  font-size: 12px;
  line-height: 1.9;
  color: rgba(255,255,255,.62);
}
.cta-actions { margin-top: 30px; display: flex; flex-direction: column; gap: 12px; }
.cta .btn-fill {
  background: #fff;
  border-color: #fff;
  color: var(--accent);
}
.cta .btn-fill:hover { background: #eef5fb; border-color: #eef5fb; color: var(--accent); }
.cta .btn-ghost { background: transparent; border-color: rgba(255,255,255,.55); color: #fff; }
.cta .btn-ghost:hover { background: rgba(255,255,255,.14); border-color: #fff; color: #fff; }

/* ---------- 11. 下層ページ見出し ---------- */
.page-head {
  position: relative;
  padding-top: calc(var(--header-h) + 46px);
  padding-bottom: 42px;
  border-bottom: 1px solid var(--line);
  background: linear-gradient(180deg, #eef4fb 0%, #f5f8fc 100%);
  overflow: hidden;
}
.page-head::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 190px;
  pointer-events: none;
  opacity: .55;
  background-repeat: no-repeat;
  background-position: center bottom;
  background-size: 1600px 190px;
  background-image: url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='1600' height='190' viewBox='0 0 1600 190' fill='none'%3E%3Cpath d='M0 150C260 150 300 60 560 60S900 150 1160 150s180-70 440-70' stroke='%238FC0E4' stroke-width='1'/%3E%3Cpath d='M0 176C260 176 320 96 580 96s320 80 580 80 180-56 440-56' stroke='%238FC0E4' stroke-width='1' opacity='.6'/%3E%3C/svg%3E");
}
.page-head > .wrap { position: relative; z-index: 1; }
.page-head-en {
  font-family: var(--font-num);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: .2em;
  color: var(--accent-2);
  margin-bottom: 12px;
}
.page-head h1 {
  font-family: var(--font-serif);
  font-size: clamp(26px, 7vw, 38px);
  font-weight: 600;
  line-height: 1.6;
  letter-spacing: .06em;
  color: var(--accent);
}
.page-head p {
  margin-top: 18px;
  font-size: 14px;
  color: var(--ink-2);
  max-width: 44em;
}

.breadcrumb {
  font-size: 11.5px;
  letter-spacing: .1em;
  color: var(--ink-3);
  margin-bottom: 18px;
}
.breadcrumb a { text-decoration: none; }
.breadcrumb a:hover { color: var(--accent-2); }
.breadcrumb span { margin-inline: 8px; opacity: .6; }

/* 本文ブロック */
.prose p + p { margin-top: 1.6em; }
.prose h3 {
  font-family: var(--font-serif);
  font-size: 19px;
  font-weight: 600;
  letter-spacing: .06em;
  margin: 2.4em 0 .9em;
  padding-left: 14px;
  border-left: 1px solid var(--accent-3);
  line-height: 1.65;
  color: var(--accent);
}
.prose { font-size: 14.5px; color: var(--ink-2); }
.prose strong { color: var(--ink); font-weight: 700; }

/* 写真＋文章の2カラム */
.media-grid { display: grid; gap: 36px; }
.media-figure { position: relative; padding: 0 0 14px 14px; }
.media-figure::before {
  content: "";
  position: absolute;
  left: 0; bottom: 0;
  width: 60%; height: 70%;
  border: 1px solid var(--accent-3);
}
.media-figure img {
  position: relative;
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  border: 1px solid var(--line);
}
.media-figure figcaption {
  position: relative;
  margin-top: 12px;
  font-size: 12px;
  letter-spacing: .1em;
  color: var(--ink-3);
}
@media (min-width: 1024px) {
  .media-grid { grid-template-columns: minmax(260px, 340px) 1fr; gap: 72px; align-items: start; }
}


/* POLICY 後段（引用＋大切にしている3項目） */
.policy-values {
  list-style: none;
  margin-top: 28px;
  display: flex;
  flex-direction: column;
  gap: 18px;
}
.policy-values li {
  position: relative;
  padding-left: 18px;
  font-family: var(--font-serif);
  font-size: 15px;
  line-height: 2;
  letter-spacing: .05em;
  color: var(--ink-2);
}
.policy-values li::before {
  content: "";
  position: absolute;
  left: 0;
  top: .78em;
  width: 1px;
  height: 1.1em;
  background: var(--accent-3);
}

/* 定義リスト */
.deflist { border-top: 1px solid var(--line); }
.deflist > div {
  border-bottom: 1px solid var(--line);
  padding: 18px 2px;
}
.deflist dt {
  font-size: 11.5px;
  letter-spacing: .16em;
  color: var(--accent-2);
  margin-bottom: 6px;
}
.deflist dd { margin: 0; font-size: 14.5px; }

/* ---------- 12. フッター ---------- */
.site-footer {
  background: var(--paper-2);
  border-top: 1px solid var(--accent-3);
  padding-block: 48px 30px;
}
.footer-brand { margin-bottom: 30px; }
.footer-brand .brand-name { font-size: 17px; }
.footer-brand p {
  margin-top: 12px;
  font-size: 13px;
  color: var(--ink-2);
}
.footer-nav { border-top: 1px solid var(--line); }
.footer-nav li { border-bottom: 1px solid var(--line); }
.footer-nav a {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 14px 2px;
  font-size: 13.5px;
  letter-spacing: .08em;
  text-decoration: none;
}
.footer-nav a::after { content: "→"; color: var(--ink-3); font-size: 12px; }
.footer-nav a:hover { color: var(--accent-2); }
.footer-sns {
  margin-top: 28px;
  display: flex;
  flex-direction: column;
  /* リンク自体のpaddingでタップ領域44pxを確保するため、gapは最小限にする */
  gap: 2px;
}
.footer-sns a {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding-block: 11px;
  font-size: 13px;
  letter-spacing: .1em;
  text-decoration: none;
}
.footer-sns a:hover { color: var(--accent-2); }
.footer-sns .ico { width: 17px; height: 17px; flex: none; }
.footer-bottom {
  margin-top: 34px;
  padding-top: 20px;
  border-top: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  gap: 8px;
  font-size: 11.5px;
  letter-spacing: .08em;
  color: var(--ink-3);
}

/* ---------- 13. モバイル固定CTAバー ---------- */
.sticky-cta {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 180;
  padding: 10px var(--gut) calc(10px + env(safe-area-inset-bottom));
  background: rgba(255,255,255,.94);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-top: 1px solid var(--line);
  transform: translateY(110%);
  transition: transform .4s var(--ease);
}
.sticky-cta.is-visible { transform: none; }
.sticky-cta .btn { width: 100%; min-height: 48px; }
body { padding-bottom: 0; }

/* ---------- 14. スクロール演出 ---------- */
.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity .7s var(--ease), transform .7s var(--ease);
}
.reveal.is-in { opacity: 1; transform: none; }
.reveal-d1 { transition-delay: .09s; }
.reveal-d2 { transition-delay: .18s; }
.reveal-d3 { transition-delay: .27s; }
.reveal-d4 { transition-delay: .36s; }
.reveal-d5 { transition-delay: .45s; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  *, *::before, *::after { animation-duration: .001ms !important; transition-duration: .001ms !important; }
}

/* ============================================================
   15. タブレット（768px〜）
   ============================================================ */
@media (min-width: 768px) {
  body { font-size: 15.5px; }
  :root { --gut: 40px; --header-h: 76px; }

  .section { padding-block: 92px; }
  .sec-head { margin-bottom: 52px; }
  .works { grid-template-columns: repeat(2, 1fr); gap: 28px; }

  .band-list { grid-template-columns: repeat(3, 1fr); }
  .band-list li { padding: 6px 22px; }
  .band-list li + li { border-top: 0; border-left: 1px dashed var(--line-2); }

  .hero-actions { flex-direction: row; }
  .hero-actions .btn { min-width: 220px; }
  .cta-actions { flex-direction: row; }
  .cta-actions .btn { min-width: 230px; }

  .footer-sns { flex-direction: row; gap: 28px; }
  .footer-bottom { flex-direction: row; justify-content: space-between; align-items: center; }

  .card { padding: 34px 30px 38px; }
  .deflist { display: grid; grid-template-columns: repeat(2, 1fr); column-gap: 40px; }

  /* 追従CTAバーはこの幅から非表示にする代わりに、ヘッダー内のCTAを常時表示する */
  .sticky-cta { display: none; }
  .header-cta { display: inline-flex; min-height: 42px; padding: 0 20px; font-size: 12.5px; }
}

/* タブレット幅では3カラムにすると日本語が1〜2文字で折り返してしまうため、
   番号を左に置いた横並びの1カラムに切り替える */
@media (min-width: 768px) and (max-width: 1023px) {
  .cards { grid-template-columns: 1fr; gap: 0; }
  .card {
    display: grid;
    grid-template-columns: 72px 1fr;
    grid-template-areas: "no title" ". body";
    column-gap: 24px;
    background: transparent;
    border: 0;
    border-top: 1px solid var(--line);
    border-radius: 0;
    padding: 32px 0;
  }
  .card:last-child { border-bottom: 1px solid var(--line); }
  .card:hover { border-color: var(--line); }
  .card-no { grid-area: no; font-size: 40px; margin-bottom: 0; }
  .card-title { grid-area: title; margin-bottom: 10px; }
  .card-body { grid-area: body; }
}

/* ============================================================
   16. PC（1024px〜）
   ============================================================ */
@media (min-width: 1024px) {
  :root { --gut: 48px; }
  body { font-size: 16px; }

  .nav { display: block; }
  .nav-toggle { display: none; }
  .brand-sub { display: block; }
  .vlabel { display: block; }

  .section { padding-block: 118px; }
  .cards { grid-template-columns: repeat(3, 1fr); gap: 20px; }
  .cards:not(:has(> :nth-child(3))) { grid-template-columns: repeat(2, 1fr); }
  .plans { grid-template-columns: repeat(3, 1fr); }

  /* ヒーロー：2カラム */
  .hero {
    padding-top: calc(var(--header-h) + 60px);
    padding-bottom: 84px;
  }
  .hero::before {
    top: -12%;
    right: -8%;
    width: 46vw;
    height: 46vw;
    max-width: 660px;
    max-height: 660px;
  }
  .hero-grid {
    display: grid;
    grid-template-columns: 1fr minmax(280px, 340px);
    gap: 56px;
    align-items: center;
  }
  .hero-figure { margin-top: 0; padding: 0 0 20px 20px; }
  .hero-figure img { aspect-ratio: 3 / 4; }
  .hero-copy { max-width: 800px; }
  .catchcopy { font-size: clamp(30px, 3vw, 44px); line-height: 1.6; }

  /* ヒーロー横の縦書きラベル */
  .hero-vlabel {
    position: absolute;
    right: 18px;
    top: calc(var(--header-h) + 90px);
    z-index: 2;
  }

  /* セクション：縦書きラベル付きレイアウト */
  .split {
    display: grid;
    grid-template-columns: minmax(280px, 380px) 1fr;
    gap: 80px;
    align-items: start;
  }
  .split-wide { grid-template-columns: minmax(280px, 420px) 1fr; }
  .split .sec-head { margin-bottom: 0; position: sticky; top: calc(var(--header-h) + 44px); }

  /* 見出し列がある2カラム内では、カードを3列にすると窮屈になるため
     罫線区切りの縦積み（番号を左、本文を右）に切り替える */
  .split .cards { grid-template-columns: 1fr; gap: 0; }
  .split .card {
    display: grid;
    grid-template-columns: 76px 1fr;
    grid-template-areas: "no title" ". body";
    column-gap: 26px;
    background: transparent;
    border: 0;
    border-top: 1px solid var(--line);
    border-radius: 0;
    padding: 36px 0;
  }
  .split .card:last-child { border-bottom: 1px solid var(--line); }
  .split .card:hover { border-color: var(--accent-3); }
  .split .card-no { grid-area: no; font-size: 46px; margin-bottom: 0; }
  .split .card-title { grid-area: title; font-size: 20px; margin-bottom: 12px; }
  .split .card-body { grid-area: body; }

  /* ステップ：PCも縦タイムライン（横5カラムにしない） */
  .steps { max-width: 760px; }
  .step { padding: 0 0 48px 92px; }
  .step::before { left: 27px; top: 16px; }
  .step-no { width: 55px; height: 55px; font-size: 24px; }
  .step-title { font-size: 21px; padding-top: 10px; }

  .page-head { padding-top: calc(var(--header-h) + 84px); padding-bottom: 72px; }

  .works { grid-template-columns: repeat(3, 1fr); }
  .works .work-featured { grid-column: span 3; }
  .works .work-featured .work-inner { display: grid; grid-template-columns: 1.15fr 1fr; }
  .works .work-featured .work-thumb img { height: 100%; aspect-ratio: auto; min-height: 320px; }
  .works .work-featured .work-body { padding: 46px 48px; display: flex; flex-direction: column; justify-content: center; }
  .works .work-featured .work-name { font-size: 26px; }

  .cta { padding-block: 104px; }
  .cta-inner { display: grid; grid-template-columns: 1fr auto; gap: 60px; align-items: center; }
  .cta-actions { margin-top: 0; flex-direction: column; }
  .cta-actions .btn { min-width: 280px; }

  .site-footer { padding-block: 72px 32px; }
  .footer-grid { display: grid; grid-template-columns: 1.3fr 1fr; gap: 80px; align-items: start; }
  .footer-brand { margin-bottom: 0; }

  .plan { padding: 40px 32px; }
  .plan-price { font-size: 44px; }
}

@media (min-width: 1280px) {
  .hero-grid { gap: 72px; }
}

/* ---------- プラン：ページ数ドット ---------- */
.plan-dots {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 14px;
}
.plan-dots .dots { display: flex; gap: 5px; }
.plan-dots .dots i {
  display: block;
  width: 9px;
  height: 9px;
  border: 1px solid var(--line-2);
  border-radius: 1px;
}
.plan-dots .dots i.on { background: var(--accent); border-color: var(--accent); }
.plan-dots .dots-label {
  font-size: 11.5px;
  letter-spacing: .1em;
  color: var(--accent-2);
}

/* プランカード：高さを揃える */
.plans { align-items: stretch; }
.plan { display: flex; flex-direction: column; }
.plan-list { margin-top: auto; }

/* セクション見出し下の補足段落 */
.sec-note {
  margin-top: 18px;
  font-size: 13.5px;
  line-height: 2.05;
  color: var(--ink-2);
}
.sec-note p + p { margin-top: 1.2em; }

/* ---------- 料金カード：2枚並び（制作費・月額保守費） ---------- */
@media (min-width: 1024px) {
  .plans.plans-duo { grid-template-columns: repeat(2, 1fr); }
  /* カードが1枚だけのときは3カラムのまま置かない（1/3幅になってしまうため） */
  .plans:not(:has(> :nth-child(2))) { grid-template-columns: minmax(0, 1fr); }
}

/* ---------- よくある質問（アコーディオン） ----------
   <details>/<summary> をそのまま使うので JS は不要。
   Tab でフォーカス、Enter / Space で開閉できる。 */
.faq { border-top: 1px solid var(--line); }
.faq-item { border-bottom: 1px solid var(--line); }

/* summary 自身の display は既定のままにする。flex などに変えると、
   ブラウザによっては Enter / Space での開閉が効かなくなることがあるため、
   レイアウトは内側の span で組む。 */
.faq-q {
  padding: 22px 2px;
  cursor: pointer;
  list-style: none;
  font-family: var(--font-serif);
  font-size: 15.5px;
  font-weight: 600;
  line-height: 1.85;
  letter-spacing: .04em;
  color: var(--accent);
  transition: color .25s var(--ease);
}
.faq-q::-webkit-details-marker { display: none; }
.faq-q:hover { color: var(--accent-2); }

/* フォーカス枠はキーボード操作のときだけ出す。
   ブラウザによってはクリックでも既定の枠が出るので、:focus でいったん
   消してから :focus-visible で出し直す（後ろに書いた方が優先される）。 */
.faq-q:focus { outline: none; }
.faq-q:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}
.faq-q-inner {
  display: flex;
  align-items: flex-start;
  gap: 14px;
}

/* ＋／− のしるし。線は本文と同じ細さにそろえる */
.faq-mark {
  position: relative;
  flex: none;
  width: 13px;
  height: 13px;
  margin-top: 9px;
}
.faq-mark::before,
.faq-mark::after {
  content: "";
  position: absolute;
  left: 0;
  top: 6px;
  width: 13px;
  height: 1px;
  background: var(--accent-2);
  transition: transform .3s var(--ease);
}
.faq-mark::after { transform: rotate(90deg); }
.faq-item[open] .faq-mark::after { transform: rotate(0deg); }

.faq-a {
  padding: 0 2px 24px 29px;
  font-size: 14px;
  line-height: 2.05;
  color: var(--ink-2);
  text-wrap: pretty;
  line-break: strict;
}
.faq-item[open] .faq-a { animation: faqIn .3s var(--ease) both; }
@keyframes faqIn {
  from { opacity: 0; transform: translateY(-4px); }
  to   { opacity: 1; transform: none; }
}
@media (prefers-reduced-motion: reduce) {
  .faq-item[open] .faq-a { animation: none; }
  .faq-mark::before, .faq-mark::after { transition: none; }
}

@media (min-width: 768px) {
  .faq-q { padding: 26px 2px; font-size: 16.5px; }
  .faq-q-inner { gap: 16px; }
  .faq-a { padding: 0 2px 28px 31px; font-size: 14.5px; }
}

/* ---------- 制作実績（縦並びの一覧） ---------- */
.worklist { display: grid; gap: 22px; }
.work-item {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--r);
  padding: 30px 24px;
  transition: border-color .35s var(--ease);
}
.work-item:hover { border-color: var(--accent-3); }
.work-item-name {
  font-family: var(--font-serif);
  font-size: 21px;
  font-weight: 600;
  letter-spacing: .1em;
  color: var(--accent);
}
.work-item-cat {
  margin-top: 10px;
  font-size: 13.5px;
  color: var(--ink-2);
  text-wrap: pretty;
  line-break: strict;
}
.work-item-note {
  margin-top: 8px;
  font-size: 13px;
  color: var(--ink-3);
}
.work-item-meta { margin-top: 22px; }
.work-item-btn { margin-top: 26px; }
.work-item-btn span { transition: transform .3s var(--ease); }
.work-item-btn:hover span { transform: translateX(4px); }

@media (min-width: 768px) {
  .worklist { gap: 26px; }
  .work-item { padding: 38px 34px; }
  .work-item-name { font-size: 24px; }
}
