/* =========================================================
   尭式 (Ryoshiki) — Design System
   業種特化型 Web制作 / LP / 広告運用
   ========================================================= */

:root {
  /* Brand palette */
  --navy-900: #0a1c38;
  --navy-800: #0f2747;
  --navy-700: #163764;
  --navy-600: #1d4a86;
  --brand: #ff5a1f;       /* energetic orange accent */
  --brand-600: #ef4d12;
  --brand-50: #fff1ea;
  --teal: #14b8a6;
  --teal-50: #e6faf7;
  --gold: #f5b301;

  /* Ink & surfaces */
  --ink: #14181f;
  --ink-soft: #3a414d;
  --muted: #5b6573;
  --muted-2: #8a93a3;
  --line: #e6e9f0;
  --line-2: #eef1f6;
  --bg: #ffffff;
  --bg-soft: #f6f8fc;
  --bg-soft-2: #eef2f9;

  /* Effects */
  --radius: 16px;
  --radius-sm: 10px;
  --radius-lg: 24px;
  --shadow-sm: 0 1px 2px rgba(15,39,71,.06), 0 1px 3px rgba(15,39,71,.08);
  --shadow: 0 10px 30px -12px rgba(15,39,71,.22);
  --shadow-lg: 0 30px 60px -20px rgba(15,39,71,.28);
  --ring: 0 0 0 3px rgba(255,90,31,.25);

  /* Layout */
  --container: 1160px;
  --gutter: 22px;
  --header-h: 74px;

  --grad-hero: radial-gradient(1200px 600px at 80% -10%, rgba(20,184,166,.18), transparent 60%),
               radial-gradient(900px 500px at 0% 0%, rgba(255,90,31,.16), transparent 55%),
               linear-gradient(160deg, #0a1c38 0%, #0f2747 55%, #163764 100%);
  --grad-brand: linear-gradient(135deg, #ff7a3c 0%, #ff5a1f 100%);
  --grad-teal: linear-gradient(135deg, #2fd4c1 0%, #14b8a6 100%);

  /* Mincho for headings/logo-style copy (readable, 和風) */
  --font-brush: "Hina Mincho", "Shippori Mincho B1", "游明朝体", "Yu Mincho", YuMincho,
    "ヒラギノ明朝 ProN W3", "Hiragino Mincho ProN", "HG明朝E", "ＭＳ Ｐ明朝", "ＭＳ 明朝", serif;

  font-family: "Noto Sans JP", "Hiragino Kaku Gothic ProN", "Hiragino Sans",
    "Yu Gothic", Meiryo, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; overflow-x: clip; }
body {
  background: var(--bg);
  color: var(--ink);
  line-height: 1.75;
  font-size: 16px;
  letter-spacing: .01em;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: clip;
}
img, svg, picture, video { display: block; max-width: 100%; height: auto; }
/* Default size for inline ICONS only (24x24 viewBox). Prevents SVGs without an
   explicit size from stretching to 100% width. Logo is an <img>, and illustration
   SVGs use other viewBoxes, so neither is affected. Component rules below (e.g.
   .btn svg) override this via higher/equal specificity placed later. */
svg[viewBox="0 0 24 24"] { width: 24px; height: 24px; flex: none; }
a { color: inherit; text-decoration: none; transition: color .2s ease; }
ul, ol { list-style: none; padding: 0; }
button { font: inherit; cursor: pointer; border: 0; background: none; color: inherit; }
h1, h2, h3, h4 { line-height: 1.35; font-weight: 800; letter-spacing: .01em; color: var(--navy-800); }
:focus-visible { outline: none; border-radius: 6px; }

/* ---------- Layout helpers ---------- */
.container { width: 100%; max-width: var(--container); margin-inline: auto; padding-inline: var(--gutter); }
.section { padding-block: clamp(56px, 8vw, 110px); }
.section--soft { background: var(--bg-soft); }
.section--navy { background: var(--navy-800); color: #fff; }
.section--navy h2, .section--navy h3 { color: #fff; }
.narrow { max-width: 760px; }
.center { text-align: center; }
.mx-auto { margin-inline: auto; }

/* ---------- Type ---------- */
.display { font-size: clamp(30px, 5.4vw, 56px); line-height: 1.18; font-weight: 900; letter-spacing: .02em; }
.h-xl { font-size: clamp(26px, 3.6vw, 40px); }
.h-lg { font-size: clamp(22px, 2.8vw, 32px); }
.h-md { font-size: clamp(19px, 2.2vw, 24px); }
.lead { font-size: clamp(16px, 1.6vw, 19px); color: var(--ink-soft); }
.muted { color: var(--muted); }
.text-brand { color: var(--brand); }
.text-teal { color: var(--teal); }
.balance { text-wrap: balance; }

/* Calligraphy brush headings — matches the 尭式 logo (見出し・キャッチコピー).
   Body text, nav, prices, forms and fine print stay on the Gothic stack. */
h1, h2, h3,
.display, .h-xl, .h-lg, .h-md {
  font-family: var(--font-brush);
  font-weight: 400;
  letter-spacing: .045em;
  line-height: 1.42;
}
.eyebrow, .btn, .badge { font-family: inherit; } /* keep Latin labels & buttons Gothic */

.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 13px; font-weight: 700; letter-spacing: .14em;
  text-transform: uppercase; color: var(--brand);
}
.eyebrow::before { content: ""; width: 26px; height: 2px; background: var(--brand); border-radius: 2px; }
.section--navy .eyebrow { color: #ffd0b9; }
.section--navy .eyebrow::before { background: #ffd0b9; }

.section-head { max-width: 720px; margin: 0 auto clamp(34px, 5vw, 56px); }
.section-head.center { text-align: center; }
.section-head .h-xl { margin-top: 12px; }
.section-head p { margin-top: 14px; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  padding: 14px 26px; border-radius: 999px; font-weight: 700; font-size: 15px;
  line-height: 1; transition: transform .15s ease, background .2s ease;
  white-space: nowrap;
}
.btn svg { width: 18px; height: 18px; }
.btn--primary { background: var(--grad-brand); color: #fff; }
.btn--primary:hover { transform: translateY(-2px); }
.btn--ghost { background: rgba(255,255,255,.08); color: #fff; border: 1px solid rgba(255,255,255,.28); }
.btn--ghost:hover { background: rgba(255,255,255,.16); transform: translateY(-2px); }
.btn--outline { background: #fff; color: var(--navy-800); border: 1.5px solid var(--line); }
.btn--outline:hover { border-color: var(--brand); color: var(--brand); transform: translateY(-2px); }
.btn--lg { padding: 17px 34px; font-size: 16px; }
.btn--block { width: 100%; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(255,255,255,.82);
  backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid var(--line-2);
}
.header-inner { height: var(--header-h); display: flex; align-items: center; gap: 26px; }
.brand { display: inline-flex; align-items: center; gap: 11px; font-weight: 900; }
/* header lockup: crop the tagline tier (keep top ~85% = 尭式 + RYOSHIKI) */
.brand-logo { display: block; height: 42px; width: auto; aspect-ratio: 2.345; object-fit: cover; object-position: top; }
.brand-name { display: flex; flex-direction: column; line-height: 1.05; }
.brand-name b { font-size: 20px; color: var(--navy-800); letter-spacing: .04em; }
.brand-name span { font-size: 10px; letter-spacing: .26em; color: var(--muted-2); font-weight: 700; }

.nav { margin-left: auto; display: flex; align-items: center; gap: 4px; }
.nav > ul { display: flex; align-items: center; gap: 2px; }
.nav a.nav-link, .nav .has-sub > button {
  display: inline-flex; align-items: center; gap: 5px;
  padding: 10px 14px; border-radius: 10px; font-size: 14.5px; font-weight: 700; color: var(--ink-soft);
}
.nav a.nav-link:hover, .nav .has-sub > button:hover { color: var(--brand); background: var(--brand-50); }
.nav .has-sub { position: relative; }
.nav .has-sub > button svg { width: 14px; height: 14px; transition: transform .2s; }
.nav .has-sub:hover > button svg { transform: rotate(180deg); }
.submenu {
  position: absolute; top: calc(100% + 8px); left: 0; min-width: 250px;
  background: #fff; border: 1px solid var(--line); border-radius: 14px;
  padding: 8px; opacity: 0; visibility: hidden; transform: translateY(6px); transition: all .18s ease;
}
.nav .has-sub:hover .submenu, .nav .has-sub:focus-within .submenu { opacity: 1; visibility: visible; transform: translateY(0); }
.submenu a { display: flex; gap: 11px; align-items: flex-start; padding: 10px 12px; border-radius: 10px; }
.submenu a:hover { background: var(--bg-soft); }
.submenu .ic { width: 34px; height: 34px; border-radius: 9px; background: var(--brand-50); display: grid; place-items: center; flex: none; }
.submenu .ic svg { width: 18px; height: 18px; color: var(--brand); }
.submenu b { display: block; font-size: 14px; color: var(--navy-800); }
.submenu small { color: var(--muted); font-size: 12px; }
.header-cta { display: flex; align-items: center; gap: 0; margin-left: 6px; }
.header-cta .fc-btn { display: flex; align-items: center; justify-content: center; gap: 10px; height: 56px; padding: 0 18px; text-decoration: none; }
.header-cta .fc-btn svg { width: 26px; height: 26px; flex: none; }
.header-cta .fc-txt { display: flex; flex-direction: column; align-items: center; gap: 2px; line-height: 1.2; }
.header-cta .fc-pill { background: #fff; border-radius: 999px; padding: 1px 10px; font-size: 10.5px; font-weight: 800; letter-spacing: .06em; color: var(--brand-600); }
.header-cta .fc-label { font-size: 14.5px; font-weight: 900; white-space: nowrap; }
.header-cta .fc-doc { background: var(--bg-soft-2); color: var(--navy-800); }
.header-cta .fc-doc svg { color: var(--navy-700); }
.header-cta .fc-web { background: var(--grad-brand); color: #fff; }
.header-cta .fc-arrow { width: 14px !important; height: 14px !important; margin-left: -4px; }

.nav-toggle { display: block; width: 44px; height: 44px; border-radius: 12px; margin-left: auto; }
.nav-toggle span { display: block; width: 22px; height: 2px; background: var(--navy-800); margin: 5px auto; border-radius: 2px; transition: .25s; }
/* メガメニューが開いている間は、パネル内の「閉じる」ボタンと二重にならないよう隠す */
body.nav-open .nav-toggle { display: none; }

/* ---------- Mega menu（ハンバーガーを開いたときのフルスクリーンメニュー） ---------- */
.mega-menu {
  display: none;
  position: fixed; inset: 0; z-index: 300;
  background: #fff;
  flex-direction: column;
  opacity: 0; visibility: hidden;
  transition: opacity .3s ease, visibility .3s ease;
}
body.nav-open .mega-menu { display: flex; opacity: 1; visibility: visible; }
body.nav-open { overflow: hidden; }

.mega-top {
  flex: none; height: var(--header-h); border-bottom: 1px solid var(--line);
  display: flex; align-items: center; justify-content: space-between;
}
.nav-close {
  display: inline-flex; align-items: center; gap: 6px; padding: 9px 16px; border-radius: 999px;
  background: var(--bg-soft); color: var(--navy-800); font-size: 14px; font-weight: 700;
}
.nav-close svg { width: 18px; height: 18px; }
.nav-close:hover, .nav-close:active { background: var(--line); }

.mega-body {
  flex: 1 1 auto; overflow-y: auto; -webkit-overflow-scrolling: touch;
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px;
  padding-block: clamp(32px, 6vw, 64px);
}
.mega-col h3 {
  font-family: inherit; font-size: clamp(22px, 2.2vw, 26px); font-weight: 800; color: var(--muted-2);
  letter-spacing: .04em; text-transform: uppercase; margin-bottom: 18px;
}
.mega-col ul { display: flex; flex-direction: column; }
.mega-col a {
  display: inline-block; padding: 9px 0; font-size: 16px; font-weight: 800;
  color: var(--navy-800); transition: color .2s;
}
.mega-col a:hover { color: var(--brand); }

.mega-bottom {
  flex: none; border-top: 1px solid var(--line); padding-block: 20px;
  display: flex; align-items: center; justify-content: space-between; gap: 20px; flex-wrap: wrap;
}
.mega-legal { display: flex; gap: 22px; }
.mega-legal a { font-size: 13px; color: var(--muted); }
.mega-legal a:hover { color: var(--brand); }
.mega-cta { display: flex; gap: 12px; flex-wrap: wrap; }
.mega-cta .btn svg { width: 18px; height: 18px; }

@media (max-width: 680px) {
  .mega-body { grid-template-columns: 1fr; gap: 30px; }
  .mega-bottom { flex-direction: column; align-items: stretch; }
  .mega-cta { flex-direction: column; }
  .mega-cta .btn { width: 100%; justify-content: center; }
}

/* ---------- Hero ---------- */
.hero { position: relative; background: var(--grad-hero); color: #fff; overflow: hidden; }
.hero::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background-image: radial-gradient(rgba(255,255,255,.06) 1px, transparent 1px);
  background-size: 26px 26px; mask-image: linear-gradient(180deg, transparent, #000 30%, transparent);
}
.hero-grid {
  position: relative; z-index: 1;
  display: grid; grid-template-columns: 1.05fr .95fr; gap: 48px; align-items: center;
  padding-block: clamp(48px, 7vw, 92px);
}
.hero .pill {
  display: inline-flex; align-items: center; gap: 8px; padding: 7px 14px; border-radius: 999px;
  background: rgba(255,255,255,.1); border: 1px solid rgba(255,255,255,.2); font-size: 13px; font-weight: 700;
}
.hero .pill .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--teal); }
.hero h1 { color: #fff; margin-top: 20px; }
.hero h1 .hl { color: #ffc8ad; }
.hero h1 .underline { background: linear-gradient(transparent 62%, rgba(255,90,31,.55) 0); padding: 0 .1em; }
.hero-sub { margin-top: 20px; font-size: clamp(15px, 1.6vw, 18px); color: #cfdaee; max-width: 540px; }
.hero-cta { margin-top: 30px; display: flex; flex-wrap: wrap; gap: 14px; }
.hero-stats { margin-top: 34px; display: flex; gap: 28px; flex-wrap: wrap; }
.hero-stats .st b { font-size: clamp(24px, 3vw, 32px); color: #fff; font-weight: 900; }
.hero-stats .st span { display: block; font-size: 12.5px; color: #a9b7d0; letter-spacing: .04em; }
.hero-art { position: relative; }
.hero-art img { filter: drop-shadow(0 30px 60px rgba(0,0,0,.45)); }

.trustbar { border-top: 1px solid rgba(255,255,255,.12); position: relative; z-index: 1; }
.trustbar .container { display: flex; align-items: center; gap: 26px; padding-block: 18px; flex-wrap: wrap; }
.trustbar span { color: #9fb0cc; font-size: 13px; font-weight: 700; letter-spacing: .08em; }
.trustbar ul { display: flex; gap: 22px; flex-wrap: wrap; }
.trustbar li { color: #d7e0f0; font-size: 13px; font-weight: 600; display: inline-flex; align-items: center; gap: 7px; }
.trustbar li svg { width: 15px; height: 15px; color: var(--teal); }

/* ---------- Cards / grids ---------- */
.grid { display: grid; gap: 22px; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }

.card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 26px; transition: transform .2s ease, border-color .2s;
  height: 100%;
}
.card:hover { transform: translateY(-4px); border-color: #d8deea; }
.card .ic-badge {
  width: 52px; height: 52px; border-radius: 14px; display: grid; place-items: center;
  background: var(--grad-brand); color: #fff; margin-bottom: 16px;
}
.card .ic-badge.teal { background: var(--grad-teal); }
.card .ic-badge.navy { background: linear-gradient(135deg,#1d4a86,#0f2747); }
.card .ic-badge svg { width: 26px; height: 26px; }
.card h3 { font-size: 19px; margin-bottom: 8px; }
.card p { color: var(--muted); font-size: 14.5px; }
.card .more { margin-top: 16px; display: inline-flex; align-items: center; gap: 6px; color: var(--brand); font-weight: 700; font-size: 14px; }
.card .more svg { width: 16px; height: 16px; transition: transform .2s; }
.card:hover .more svg { transform: translateX(4px); }

/* service card with image header */
.svc-card { padding: 0; overflow: hidden; display: flex; flex-direction: column; }
.svc-card .thumb { aspect-ratio: 16/9; background: var(--bg-soft); position: relative; }
.svc-card .thumb img, .svc-card .thumb svg, .svc-card .thumb video { width: 100%; height: 100%; object-fit: cover; display: block; }
.svc-card .body { padding: 24px; flex: 1; display: flex; flex-direction: column; }
.svc-card .tag { font-size: 12px; font-weight: 800; color: var(--brand); letter-spacing: .08em; }

/* industry chips */
.ind-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 14px; }
.ind-chip {
  display: flex; flex-direction: column; align-items: center; gap: 10px; text-align: center;
  background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 22px 12px;
  transition: all .2s ease;
}
.ind-chip:hover { border-color: var(--brand); transform: translateY(-3px); }
.ind-chip .ic { width: 46px; height: 46px; border-radius: 12px; background: var(--bg-soft); display: grid; place-items: center; }
.ind-chip .ic svg { width: 26px; height: 26px; color: var(--navy-700); }
.ind-chip:hover .ic { background: var(--brand-50); }
.ind-chip:hover .ic svg { color: var(--brand); }
.ind-chip b { font-size: 14px; color: var(--navy-800); }
.ind-chip small { font-size: 11px; color: var(--muted-2); letter-spacing: .08em; }

/* 業種カードの背景写真（設定されている業種のみ） */
.ind-chip.has-photo {
  position: relative;
  background-size: cover;
  background-position: center;
  border-color: transparent;
  overflow: hidden;
}
.ind-chip.has-photo::before {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(10,20,40,.32), rgba(10,20,40,.78));
  z-index: 0;
}
.ind-chip.has-photo > * { position: relative; z-index: 1; }
.ind-chip.has-photo .ic { background: rgba(255,255,255,.16); }
.ind-chip.has-photo .ic svg { color: #fff; }
.ind-chip.has-photo b { color: #fff; }
.ind-chip.has-photo small { color: rgba(255,255,255,.75); }
.ind-chip.has-photo:hover { border-color: transparent; }
.ind-chip.has-photo:hover .ic { background: rgba(255,255,255,.28); }
.ind-chip.has-photo:hover .ic svg { color: #fff; }

/* 業種カード → クリックで開く「作りたいもの／目的」の2ステップ選択モーダル */
.ind-modal {
  position: fixed; inset: 0; z-index: 400;
  display: flex; align-items: center; justify-content: center;
  padding: 20px;
  opacity: 0; visibility: hidden;
  transition: opacity .25s ease, visibility .25s ease;
}
.ind-modal.is-open { opacity: 1; visibility: visible; }
.ind-modal__backdrop { position: absolute; inset: 0; background: rgba(10,20,40,.55); backdrop-filter: blur(2px); }
.ind-modal__panel {
  position: relative;
  width: 100%; max-width: 520px;
  background: #fff;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  padding: clamp(28px, 5vw, 44px);
  transform: translateY(14px) scale(.98);
  transition: transform .25s ease;
  max-height: calc(100vh - 40px);
  overflow-y: auto;
}
.ind-modal.is-open .ind-modal__panel { transform: translateY(0) scale(1); }
.ind-modal__close {
  position: absolute; top: 16px; right: 16px;
  width: 36px; height: 36px; border-radius: 50%;
  display: grid; place-items: center;
  background: var(--bg-soft); color: var(--navy-800);
}
.ind-modal__close:hover { background: var(--line); }
.ind-modal__close svg { width: 18px; height: 18px; }

.ind-modal__step h3 { font-size: clamp(19px, 2.4vw, 23px); color: var(--navy-800); margin: 10px 0 26px; }
.ind-modal__choices { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.ind-modal__choice {
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px;
  padding: 28px 14px;
  border: 2px solid var(--line);
  border-radius: var(--radius);
  text-align: center;
  transition: border-color .18s ease, background .18s ease, transform .18s ease;
}
.ind-modal__choice:hover { border-color: var(--brand); background: var(--brand-50); transform: translateY(-2px); }
.ind-modal__choice .ic { width: 44px; height: 44px; border-radius: 12px; background: var(--bg-soft); display: grid; place-items: center; }
.ind-modal__choice:hover .ic { background: #fff; }
.ind-modal__choice .ic svg { width: 24px; height: 24px; color: var(--navy-700); }
.ind-modal__choice:hover .ic svg { color: var(--brand); }
.ind-modal__choice-title { font-size: 15px; font-weight: 800; color: var(--navy-800); }

.ind-modal__back {
  display: inline-flex; align-items: center; gap: 6px;
  margin-top: 22px;
  font-size: 13px; font-weight: 700; color: var(--muted);
}
.ind-modal__back:hover { color: var(--brand); }
.ind-modal__back svg { width: 15px; height: 15px; }

.ind-modal__progress { display: flex; gap: 6px; margin-bottom: 18px; }
.ind-modal__progress span { flex: 1; height: 3px; border-radius: 999px; background: var(--line); }
.ind-modal__progress span.is-active { background: var(--brand); }

@media (max-width: 480px) {
  .ind-modal__choices { grid-template-columns: 1fr; }
}

/* feature / strength */
.feature { display: flex; gap: 16px; align-items: flex-start; }
.feature .num {
  flex: none; width: 46px; height: 46px; border-radius: 12px; display: grid; place-items: center;
  background: var(--navy-800); color: #fff; font-weight: 900; font-size: 18px;
}
.feature h3 { font-size: 18px; margin-bottom: 6px; }
.feature p { color: var(--muted); font-size: 14.5px; }

/* steps / flow */
.flow { counter-reset: step; display: grid; gap: 18px; }
.flow .step { position: relative; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 24px 24px 24px 86px; }
.flow .step::before {
  counter-increment: step; content: "0" counter(step);
  position: absolute; left: 22px; top: 22px; width: 46px; height: 46px; border-radius: 12px;
  display: grid; place-items: center; background: var(--grad-brand); color: #fff; font-weight: 900; font-size: 17px;
}
.flow .step h3 { font-size: 18px; margin-bottom: 6px; }
.flow .step p { color: var(--muted); font-size: 14.5px; }

/* price cards */
.price-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; align-items: stretch; }
.price-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 30px; position: relative; display: flex; flex-direction: column; scroll-margin-top: calc(var(--header-h) + 16px); }
.price-card.featured { border-color: var(--brand); }
.price-card .ribbon { position: absolute; top: -13px; left: 50%; transform: translateX(-50%); background: var(--grad-brand); color: #fff; font-size: 12px; font-weight: 800; padding: 6px 16px; border-radius: 999px; }
.price-card .plan { font-size: 14px; font-weight: 800; color: var(--brand); letter-spacing: .06em; }
.price-card .amount { font-size: 40px; font-weight: 900; color: var(--navy-800); margin: 10px 0 2px; }
.price-card .amount small { font-size: 15px; color: var(--muted); font-weight: 700; }
.price-card .note { color: var(--muted); font-size: 13px; }
.price-card ul.feat { margin: 20px 0; display: grid; gap: 11px; align-content: start; flex: 1; }
.price-card ul.feat li { display: flex; gap: 10px; font-size: 14px; color: var(--ink-soft); }
.price-card ul.feat li svg { width: 19px; height: 19px; color: var(--teal); flex: none; margin-top: 2px; }

/* キャンペーン吹き出し（料金プランの上）
   PC幅では吹き出しを「1行目」、カードを「2行目」に配置することで、吹き出しの
   有無や高さがカード自体の高さ（横並びで揃う基準）に影響しないようにしている。
   吹き出し無しの列は空divでプレースホルダーとして列位置だけ揃える。
   スマホ幅（1カラム）ではこの行分けを解除し、DOM順（吹き出し→カード→…）で
   自然に積み重なるようにする。 */
@media (min-width: 961px) {
  .price-grid.has-campaign {
    grid-template-rows: auto 1fr;
    row-gap: 36px;
  }
  .price-grid.has-campaign > .price-campaign,
  .price-grid.has-campaign > div:empty {
    grid-row: 1;
    align-self: end;
  }
  .price-grid.has-campaign > .price-card {
    grid-row: 2;
  }
  /* PCでは吹き出し行のgap（row-gap）が余白を作るため、カード直前の余白は打ち消す */
  .price-grid.has-campaign > .price-campaign {
    margin-bottom: 0;
  }
}
.price-campaign {
  position: relative;
  background: #fff;
  border-radius: 22px;
  box-shadow: 0 6px 20px -6px rgba(15,39,71,.18), 0 2px 6px rgba(15,39,71,.06);
  padding: 32px 18px 20px;
  /* スマホ幅（1カラム）で吹き出しの次にカードが積み重なる際の余白 */
  margin-bottom: 32px;
  text-align: center;
}
/* 下向きのしっぽ */
.price-campaign::after {
  content: "";
  position: absolute;
  left: 50%; bottom: -13px;
  transform: translateX(-50%);
  border-left: 13px solid transparent;
  border-right: 13px solid transparent;
  border-top: 14px solid #fff;
}
.price-campaign .cp-pill {
  position: absolute;
  top: -15px; left: 50%;
  transform: translateX(-50%);
  display: inline-flex; align-items: center; gap: 12px;
  background: #16181d;
  color: #fff;
  border-radius: 999px;
  padding: 8px 20px;
  font-size: 14px; font-weight: 700;
  letter-spacing: .02em;
  white-space: nowrap;
}
.price-campaign .cp-pill b { font-size: 18px; font-weight: 900; margin: 0 1px; }
.price-campaign .cp-pill b.is-left { color: var(--gold); }
/* ショートコード [ryoshiki_pricing] で表示した料金カードのみ：先着人数・残り人数の数字を白に */
.ryoshiki-pricing-sc .price-campaign .cp-pill b,
.ryoshiki-pricing-sc .price-campaign .cp-pill b.is-left { color: #fff; }
.price-campaign .cp-sep { width: 1px; height: 16px; background: rgba(255,255,255,.4); }
.price-campaign .cp-lead {
  margin: 0 0 2px;
  font-size: 16px; font-weight: 700;
  color: var(--ink);
}
.price-campaign .cp-off {
  display: flex; align-items: center; justify-content: center; gap: 9px;
  line-height: 1;
}
.price-campaign .cp-rate {
  font-size: 54px; font-weight: 900;
  color: var(--brand);
  letter-spacing: -.02em;
}
.price-campaign .cp-rate small { font-size: 30px; font-weight: 900; margin-left: 1px; }
.price-campaign .cp-label {
  font-size: 40px; font-weight: 900;
  color: #16181d;
  letter-spacing: -.01em;
  margin-left: -4px;
}
.price-campaign .cp-mark { width: 19px; height: 35px; color: var(--brand); flex: none; }
.price-campaign .cp-mark:last-child { transform: scaleX(-1); }
@media (max-width: 1080px) {
  .price-campaign { padding: 30px 14px 18px; }
  .price-campaign .cp-rate { font-size: 44px; }
  .price-campaign .cp-rate small { font-size: 28px; }
  .price-campaign .cp-label { font-size: 34px; }
}

/* 代表プロフィールページ：代表挨拶（人物写真＋メッセージボックスを縦に積む構成）
   PC・スマホともに、写真を上、挨拶ボックスをその下に幅いっぱいで配置する。 */
.profile-message {
  position: relative;
  display: flex;
  flex-direction: column;
  padding-top: 60px;
  background-image: url("https://ryoshiki.jp/wp-content/uploads/2026/09/ryoshiki-message00.webp");
  background-size: cover;
  background-position: center;
}
.profile-message__blue {
  padding: 40px 24px 60px;
  padding-top: 0px;
  margin-top: -50px;
}
.pm-eyebrow { display: block; color: #fff; font-weight: 800; font-size: 15px; letter-spacing: .08em; margin-bottom: 24px; }

.profile-message__photo { position: relative; height: 320px; }
.profile-message__photo img {
  position: absolute; inset: 0;
  width: 100%; height: 100%; object-fit: contain; object-position: center;
}
.pm-signature {
  position: absolute; right: clamp(20px, 4vw, 40px); bottom: 24px;
  font-family: "Segoe Script", "Brush Script MT", cursive;
  font-size: 26px; color: #fff;
  text-shadow: 0 2px 10px rgba(0,0,0,.45);
  transform: rotate(-4deg);
}

.profile-message__card {
  width: 100%;
  background: #fff;
  box-shadow: var(--shadow-lg);
  padding: clamp(28px, 4vw, 44px);
}
.profile-message__card h2 {
  font-family: var(--font-brush); font-weight: 400; font-size: clamp(22px, 2.6vw, 28px);
  line-height: 1.6; color: var(--navy-800); letter-spacing: .02em;
  margin-bottom: 24px;
}
.profile-message__card p { color: var(--ink-soft); font-size: 15px; line-height: 1.9; }
.profile-message__card p + p { margin-top: 18px; }
.profile-message__card .pm-name { margin-top: 24px; font-weight: 800; color: var(--navy-800); font-size: 14.5px; }

/* testimonials */
.voice-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 26px; }
/* 親カードのpadding分を負マージンで打ち消し、上端・左右端いっぱいまで広げる */
.voice-card .voice-photo {
  width: calc(100% + 52px);
  margin: -26px -26px 16px;
  aspect-ratio: 16/10;
  border-radius: var(--radius) var(--radius) 0 0;
  overflow: hidden;
}
.voice-card .voice-photo img { width: 100%; height: 100%; object-fit: cover; }
.voice-card .stars { color: var(--gold); display: flex; gap: 2px; margin-bottom: 12px; }
.voice-card .stars svg { width: 18px; height: 18px; }
.voice-card blockquote { font-size: 15px; color: var(--ink-soft); line-height: 1.85; }
.voice-card .who { margin-top: 18px; display: flex; align-items: center; gap: 12px; }
.voice-card .avatar { width: 46px; height: 46px; border-radius: 50%; overflow: hidden; flex: none; background: var(--bg-soft); }
.voice-card .who b { font-size: 14px; color: var(--navy-800); display: block; }
.voice-card .who span { font-size: 12.5px; color: var(--muted); }

/* stats band */
.stats-band { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; text-align: center; }
.stats-band .stat b { font-size: clamp(30px, 5vw, 48px); font-weight: 900; background: var(--grad-brand); -webkit-background-clip: text; background-clip: text; color: transparent; display: block; }
.stats-band .stat span { color: var(--muted); font-size: 14px; font-weight: 600; }
.section--navy .stats-band .stat span { color: #aebbd3; }

/* strengths — 斜めラインで区切った番号付きの強み紹介セクション
   斜めラインは「角から角へのグラデーション」方式（studio03の.arrと同じ考え方）。
   skewYと違い、幅が変わっても角から角へ必ず正確な直線になるためズレない。 */
.strengths { padding-top: 100px; padding-bottom: 0; overflow: hidden; }
.strengths .section-head { padding-bottom: 64px; }

.strength-band { position: relative; padding-bottom: 100px; }
.strength-band:nth-of-type(odd)  { background: var(--bg-soft); }
.strength-band:nth-of-type(even) { background: #fff; }

.strength-arr { width: 100%; height: 120px; }
.strength-band:nth-of-type(odd) .strength-arr { background: linear-gradient(to left top, transparent 50%, #fff 50%); }
.strength-band:nth-of-type(even) .strength-arr { background: linear-gradient(to left top, transparent 50%, var(--bg-soft) 50%); }

.strength-row { position: relative; z-index: 1; margin-top: -152px; text-align: center; }
.strength-num {
  display: block;
  font-size: 150px;
  font-weight: 400;
  line-height: 1;
  color: var(--brand);
  letter-spacing: -.03em;
}
.strength-body { max-width: 720px; margin-inline: auto; text-align: left; padding-top: 100px; }
.strength-body h3 { font-size: clamp(21px, 2.6vw, 28px); color: var(--navy-800); margin: 8px 0 16px; }
.strength-tags { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 16px; }
.strength-tags .tag {
  background: #fff;
  border: 1px solid #ffd9c7;
  color: var(--brand-600);
  font-weight: 700;
  font-size: 13px;
  padding: 6px 15px;
  border-radius: 999px;
  line-height: 1.4;
}
.strength-band:nth-of-type(even) .strength-tags .tag { background: var(--bg-soft); }
.strength-body p { color: var(--ink-soft); font-size: 15.5px; }

/* 見出しの横に画像を表示する場合（項目によっては使わない） */
.strength-heading-row { display: flex; align-items: center; gap: 40px; }
.strength-heading-row h3 { flex: 1; margin: 8px 0 0; }
.strength-media { flex: 0 0 320px; min-width: 0; margin-bottom: 30px; }
.strength-media img { width: 100%; border-radius: var(--radius); display: block; }

/* 実績グラフ（導入前 → 導入後のコンパクトな比較グラフ）— strength-media に差し込む */
.mini-chart { width: 100%; background: transparent; border-radius: var(--radius); padding-top: 20px; padding-right: 0px; padding-bottom: 45px; padding-left: 0px; }
.mini-chart-head { margin-bottom: 12px; }
.mini-chart-title { font-size: 12px; font-weight: 800; color: var(--muted); letter-spacing: .03em; }
.mini-chart-badge {
  display: block;
  width: fit-content;
  margin-top: 8px;
  background: var(--brand);
  color: #fff;
  border-radius: 0;
  padding-top: 6px;
  padding-right: 20px;
  padding-bottom: 6px;
  padding-left: 20px;
  font-size: 12px;
  font-weight: 700;
}

.mini-chart-wrap { display: flex; align-items: flex-end; }
.mini-chart-before { flex: none; padding-right: 12px; }
.mini-chart-divider {
  flex: none; align-self: stretch; width: 1px; margin-bottom: 24px;
  background: repeating-linear-gradient(180deg, var(--line) 0 5px, transparent 5px 10px);
}
.mini-chart-scroll { flex: 1 1 auto; min-width: 0; overflow-x: auto; padding-left: 12px; }
.mini-chart-scroll::-webkit-scrollbar { height: 4px; }
.mini-chart-scroll::-webkit-scrollbar-thumb { background: var(--line); border-radius: 999px; }
.mini-chart-track { display: flex; align-items: flex-end; gap: 14px; width: max-content; }

.mini-bar { flex: none; width: 40px; display: flex; flex-direction: column; align-items: center; text-align: center; }
.mini-bar-value { font-size: 13px; font-weight: 900; color: var(--navy-800); margin-bottom: 6px; white-space: nowrap; }
.mini-bar-visual {
  width: 24px; height: var(--h, 30px);
  border-radius: 0;
  transform: scaleY(0); transform-origin: bottom;
  transition: transform .9s cubic-bezier(.16,.9,.3,1);
  transition-delay: inherit;
}
.strength-row.in .mini-bar-visual { transform: scaleY(1); }
.mini-bar-label { margin-top: 8px; font-size: 10.5px; color: var(--muted); font-weight: 600; text-align: center; line-height: 1.4; }

.mini-chart-before .mini-bar-visual { background: var(--muted-2); }
.mini-chart-before .mini-bar-label { color: var(--navy-800); font-weight: 800; }
.mini-chart-track .mini-bar-visual { background: var(--grad-brand); }

.mini-chart-hint {
  display: none; align-items: center; gap: 5px; margin-top: 10px;
  font-size: 11px; color: var(--muted);
}
.mini-chart-hint svg { width: 13px; height: 13px; }

/* SEO対策実績（検索1位を獲得したキーワード一覧）— strength-media に差し込む */
.seo-mini { width: 100%; }
.seo-mini__badge {
  display: inline-block;
  background: var(--brand);
  color: #fff;
  font-weight: 900;
  font-size: 11px;
  letter-spacing: .02em;
  padding: 5px 14px;
  border-radius: 999px;
  margin-top: 20px;
  margin-bottom: 10px;
}
.seo-mini__title { font-size: 12.5px; font-weight: 800; color: var(--navy-800); margin-bottom: 10px; line-height: 1.5; }
.seo-mini__scroll {
  max-height: 250px;
  overflow-y: auto;
  margin-bottom: 30px;
  -webkit-mask-image: linear-gradient(180deg, #000 calc(100% - 20px), transparent 100%);
  mask-image: linear-gradient(180deg, #000 calc(100% - 20px), transparent 100%);
}
.seo-mini__scroll::-webkit-scrollbar { width: 4px; }
.seo-mini__scroll::-webkit-scrollbar-thumb { background: var(--line); border-radius: 999px; }
.seo-mini__item {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 8px 2px;
  font-size: 13px;
  font-weight: 700;
  color: var(--navy-800);
  border-bottom: 1px solid var(--line-2);
}
.seo-mini__medal {
  flex: none;
  width: 20px; height: 20px;
  border-radius: 50%;
  background: var(--brand);
  color: #fff;
  font-weight: 900;
  font-size: 10px;
  display: grid;
  place-items: center;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.6);
}


/* 他社との料金比較表（strength-media に差し込む） */
.strength-row--wide .strength-body { max-width: 920px; }
.strength-row--wide .strength-media { flex: 0 0 540px; }

.price-vs { width: 100%; }
.vs-caption { font-size: 12px; font-weight: 700; color: var(--muted); margin-bottom: 10px; }
.vs-scroll { overflow-x: auto; padding-top: 34px; }
.vs-scroll::-webkit-scrollbar { height: 4px; }
.vs-scroll::-webkit-scrollbar-thumb { background: var(--line); border-radius: 999px; }
.vs-grid {
  display: grid;
  grid-template-columns: 92px repeat(3, minmax(134px, 1fr));
  min-width: 494px;
}
/* 見出し（プラン名）*/
.vs-head { position: relative; display: flex; align-items: flex-end; }
.vs-head-box {
  width: 100%;
  padding: 12px 8px 11px;
  text-align: center;
  color: #fff;
  border-radius: 10px 10px 0 0;
}
.vs-name { display: block; font-size: 20px; font-weight: 900; letter-spacing: .02em; line-height: 1.2; }
.vs-sub { display: block; margin-top: 2px; font-size: 10.5px; font-weight: 700; opacity: .92; }

.vs-head.is-best .vs-head-box { background: #e9691c; padding: 18px 8px 17px; }
.vs-head.is-second .vs-head-box { background: #f2a73c; }
.vs-head.is-third .vs-head-box { background: #fbebd1; color: #9a9a9a; }

/* 「＼ オススメ！ ／」*/
.vs-reco {
  position: absolute; top: -30px; left: 50%; transform: translateX(-50%);
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 13px; font-weight: 800; color: var(--ink);
  white-space: nowrap;
}
.vs-reco i { width: 2px; height: 16px; background: #e9691c; border-radius: 2px; }
.vs-reco i:first-child { transform: rotate(-22deg); }
.vs-reco i:last-child { transform: rotate(22deg); }
.vs-crown { display: block; width: 26px; height: 19px; margin: 0 auto 4px; color: #fff; }

/* 項目名の列 */
.vs-label {
  display: flex; align-items: center;
  padding: 16px 10px;
  background: #f2f2f2;
  border-top: 1px solid #e5e5e5;
  font-size: 12.5px; font-weight: 700; color: var(--ink);
}
.vs-label.is-total { background: #ebebeb; }

/* 値のセル */
.vs-cell {
  display: flex; align-items: center; justify-content: center;
  padding: 16px 8px;
  text-align: center;
  background: #fff;
  border-top: 1px solid #e5e5e5;
  border-right: 1px solid #e5e5e5;
}
.vs-cell.is-third { border-right: 0; }
.vs-corner { border-top: 0; border-right: 0; }
.vs-num { font-size: 20px; font-weight: 900; line-height: 1.1; white-space: nowrap; }
.vs-num small { font-size: 12px; font-weight: 800; margin-left: 1px; }
.vs-text { font-size: 12.5px; font-weight: 700; line-height: 1.5; }

.vs-cell.is-best .vs-num, .vs-cell.is-best .vs-text { color: #e9691c; }
.vs-cell.is-second .vs-num, .vs-cell.is-second .vs-text { color: #f2a73c; }
.vs-cell.is-third .vs-num, .vs-cell.is-third .vs-text { color: #8c8c8c; }

/* おすすめ列は写真と同じく、オレンジの枠で囲って1枚のカードに見せる */
.vs-cell.is-best {
  border-left: 3px solid #e9691c;
  border-right: 3px solid #e9691c;
  border-top-color: #f3d4bd;
}
.vs-cell.is-best.is-last { border-bottom: 3px solid #e9691c; border-radius: 0 0 10px 10px; }
.vs-cell.is-total .vs-num { font-size: 22px; }

@media (max-width: 640px) {
  .strength-row--wide .strength-media { flex: none; }
  .vs-grid { grid-template-columns: 78px repeat(3, minmax(124px, 1fr)); min-width: 450px; }
  .vs-name { font-size: 17px; }
  .vs-num { font-size: 18px; }
  .vs-cell.is-total .vs-num { font-size: 20px; }
}

/* 本文の下に配置するボタン（ホバーで円が広がるアニメーション） */
.strength-ctas { display: flex; gap: 16px; margin-top: 28px; }
.strength-ctas .c-btn {
  flex: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 17px 20px;
  border: 2px solid var(--brand);
  border-radius: 999px;
  font-weight: 700;
  font-size: 15px;
  text-align: center;
  text-decoration: none;
}
.c-btn.circle {
  background: #fff;
  color: var(--brand);
  overflow: hidden;
  position: relative;
  transition-duration: .4s;
  z-index: 2;
}
.c-btn.circle::after {
  background: var(--brand);
  border-radius: 50%;
  content: "";
  display: block;
  margin: auto;
  opacity: 0;
  pointer-events: none;
  position: absolute;
  top: 50%;
  left: 0;
  right: 0;
  width: 100%;
  padding-top: 100%;
  height: 0;
  z-index: -1;
  transform: translateY(-50%) scale(0.1);
  transition: opacity .5s, transform 0s;
  transition-delay: 0s, .4s;
}
.c-btn.circle:hover { color: #fff; }
.c-btn.circle:hover::after {
  opacity: 1;
  transform: translateY(-50%) scale(1.1);
  transition-delay: 0s;
  transition: opacity .8s, transform .6s ease-in-out;
}

@media (max-width: 900px) {
  .strength-arr { height: 90px; }
  .strength-num { font-size: 110px; }
  .strength-row { margin-top: -115px; }
}
@media (max-width: 640px) {
  .strengths { padding-top: 50px; }
  .strength-band { padding-bottom: 100px; }
  .strength-arr { height: 52px; }
  .strength-num { font-size: 72px; }
  .strength-row { margin-top: -72px; }
  .strength-body > .eyebrow { display: flex; justify-content: center; }
  .strength-body h3 { text-align: center; }
  .strength-heading-row { flex-direction: column; align-items: stretch; gap: 20px; }
  .strength-media { flex: none; margin: 0 0 30px; }
  .strength-ctas { flex-direction: column; }
  .mini-chart-hint { display: flex; }
  .mini-chart { padding-top: 20px; padding-right: 0px; padding-bottom: 45px; padding-left: 0px; }
  .seo-mini__scroll { max-height: 200px; }
}

/* works gallery */
/* 制作実績カード — カードの背景・枠は無し。モニター＋スマホの画面だけが浮かんで見える形 */
.work-card { background: transparent; color: inherit; display: block; }
.work-card:hover .dev-phone { transform: translateY(-4px); }
.work-card .meta { margin-bottom: 16px; }
.work-card .meta h3 { font-size: 16px; font-weight: 800; color: var(--navy-800); margin: 0 0 4px; }
.work-card .meta p { font-size: 13px; color: var(--muted); margin: 0; }

/* works gallery — device mockups (monitor 16:9 + phone 9:16) */
.work-card .shot {
  position: relative; overflow: visible; background: none; padding: 0;
}
/* 実機写真風のモニター枠（assets/img/mockup-monitor.png）。
   枠画像の「画面」部分が透明に抜けているので、その位置にスクリーンショットを重ねる。 */
.work-card .dev-mon {
  position: relative; display: block; width: 100%; height: auto; aspect-ratio: 1000 / 700;
}
.work-card .dev-mon .screen {
  position: absolute; left: 8.1%; top: 5%; width: 83.5%; height: 63.3%;
  overflow: hidden; background: #fff;
}
.work-card .dev-mon .screen svg,
.work-card .dev-mon .screen img { width: 100%; height: 100%; object-fit: cover; object-position: top center; display: block; }
.work-card .dev-mon .frame {
  position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none;
}
.work-card .dev-phone {
  position: absolute; right: -6px; bottom: -16px; width: 20%; aspect-ratio: 9 / 16;
  border-radius: 10px; border: 3px solid var(--navy-800); background: #fff; overflow: hidden;
  transition: transform .2s ease;
}
.work-card .dev-phone svg,
.work-card .dev-phone img { width: 100%; height: 100%; object-fit: cover; object-position: top center; display: block; }

/* ---------- News card（お知らせ一覧・横並びカード） ---------- */
.news-list { display: flex; flex-direction: column; gap: 20px; }
.news-card {
  display: flex; align-items: center; gap: 28px;
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg);
  padding: 20px; color: inherit; transition: transform .2s ease, box-shadow .2s ease, border-color .2s;
}
.news-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: #d8deea; }
.news-card .shot {
  flex: none; width: 240px; aspect-ratio: 16 / 10; border-radius: var(--radius);
  overflow: hidden; background: var(--bg-soft-2);
}
.news-card .shot img, .news-card .shot svg { width: 100%; height: 100%; object-fit: cover; display: block; }
.news-card .meta { min-width: 0; }
.news-card .meta .row { display: flex; align-items: center; gap: 16px; margin-bottom: 10px; }
.news-card .meta time { font-size: 13px; color: var(--muted); font-weight: 700; white-space: nowrap; }
.news-card .meta .cat {
  font-size: 12px; font-weight: 800; color: var(--brand); letter-spacing: .04em; white-space: nowrap;
}
.news-card .meta h3 {
  display: inline-block; font-size: 18px; font-weight: 800; color: var(--navy-800);
  padding-bottom: 6px; margin-bottom: 10px; border-bottom: 1.5px solid var(--line);
}
.news-card .meta p { font-size: 14px; color: var(--muted); line-height: 1.7; margin: 0;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
@media (max-width: 640px) {
  .news-card { flex-direction: column; align-items: stretch; gap: 14px; padding: 14px; }
  .news-card .shot { width: 100%; aspect-ratio: 16 / 9; }
}

/* ---------- Lead hero（トップ最上部・人物写真） ---------- */
/* 斜めのグラデーションライン（ごく薄いハイライトの帯）：PC・スマホ共通 */
.lead-hero {
  position: relative;
  overflow: hidden;
  background: linear-gradient(115deg,
    #f7f4ee 0%,
    #f7f4ee 43%,
    rgba(255,255,255,.04) 45.5%,
    rgba(230,196,120,.015) 46.5%,
    rgba(255,255,255,0) 48.5%,
    #f0eadd 52%,
    #ece4d3 100%
  );
}
.lead-hero .lh-inner {
  position: relative;
  min-height: clamp(520px, 60vw, 760px);
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  align-items: center;
}
/* 右側の人物写真：セクション下端に沿わせ、腰から上が収まる大きさにする */
.lead-hero .lh-photo {
  position: absolute; inset: auto 0 0 auto;   /* 下端基準 */
  width: 34%; height: 76%;
  z-index: 0;
}
/* PC表示のみ：写真をより大きく、存在感のあるサイズにする（スマホは対象外） */
@media (min-width: 901px) {
  .lead-hero .lh-inner { min-height: clamp(560px, 70vw, 920px); }
  .lead-hero .lh-photo { width: 46%; height: 94%; }
}
.lead-hero .lh-photo img {
  width: 100%; height: 100%;
  /* cover だと拡大されて顔が大きくなるので contain にする。
     下端合わせにすることで、セクションの底に人物が立つ構図になる。 */
  object-fit: contain; object-position: center bottom;
  display: block;
}
/* 写真の左端をぼかして背景になじませる */
.lead-hero .lh-photo::after {
  content: ""; position: absolute; inset: 0;
  pointer-events: none;
}
/* 左端の縦組み英字 */
.lead-hero .lh-vertical {
  position: absolute; left: clamp(10px, 2.2vw, 30px); top: 50%;
  transform: translateY(-50%);
  writing-mode: vertical-rl;
  letter-spacing: .42em;
  font-size: clamp(10px, 1vw, 13px);
  font-weight: 700;
  color: rgba(15,39,71,.28);
  z-index: 2;
}
.lead-hero .lh-copy {
  position: relative; z-index: 2;
  /* 下側は SCROLL 表示ぶんの余白を確保する（重なり防止） */
  padding: clamp(40px, 6vw, 72px) 0 clamp(76px, 8vw, 104px) clamp(52px, 7vw, 104px);
}
/* 上段コピー（罫線で挟む） */
.lead-hero .lh-lead {
  font-family: var(--font-brush);
  font-size: clamp(17px, 2.1vw, 27px);
  line-height: 1.85;
  color: var(--navy-800);
  margin: 0 0 clamp(20px, 2.6vw, 34px);
}
.lead-hero .lh-lead .u {
  display: inline-block;
  border-top: 1.5px solid var(--gold);
  border-bottom: 1.5px solid var(--gold);
  padding: 2px 0;
}
/* メインコピー */
.lead-hero .lh-title {
  font-family: var(--font-brush);
  font-weight: 400;
  font-size: clamp(30px, 4.6vw, 58px);
  line-height: 1.5;
  letter-spacing: .04em;
  color: var(--navy-800);
  margin: 0;
}
/* 「一点もの」相当の反転ボックス */
.lead-hero .lh-title .box {
  display: inline-block;
  background: var(--navy-800);
  color: #fff;
  padding: .06em .34em;
  margin: .06em .04em;
}
.lead-hero .lh-title .box em { font-style: normal; color: var(--gold); }
/* サービス専用ページのSEO見出しと補足（トップページでは出力されない） */
.lead-hero .lh-h1 {
  font-family: inherit;
  font-size: clamp(15px, 1.5vw, 19px);
  font-weight: 800;
  line-height: 1.75;
  letter-spacing: .01em;
  color: var(--navy-800);
  margin: clamp(22px, 2.8vw, 34px) 0 0;
  max-width: 30em;
}
.lead-hero .lh-note {
  font-size: clamp(12.5px, 1.2vw, 14.5px);
  line-height: 1.9;
  color: var(--muted);
  margin: 10px 0 0;
  max-width: 32em;
}
/* 実績バッジ（制作事例件数・検索順位など） */
.lead-hero .lh-badges {
  display: flex;
  gap: 0px;
  margin-top: clamp(28px, 4vw, 44px);
  position: relative;
  z-index: 2;
  flex-wrap: wrap;
}
.lead-hero .lh-badges img {
  height: 150px;
  width: auto;
  display: block;
}

/* SCROLL */
.lead-hero .lh-scroll {
  position: absolute; left: clamp(52px, 7vw, 104px); bottom: clamp(18px, 2.4vw, 34px);
  z-index: 2;
  display: flex; flex-direction: column; align-items: center; gap: 6px;
  font-size: 11px; font-weight: 700; letter-spacing: .24em;
  color: rgba(15,39,71,.5);
}
.lead-hero .lh-scroll::after {
  content: ""; width: 1px; height: 34px;
  background: linear-gradient(180deg, rgba(15,39,71,.45), rgba(15,39,71,0));
  animation: lh-scroll 1.8s ease-in-out infinite;
}
@keyframes lh-scroll {
  0%   { transform: scaleY(0); transform-origin: top; }
  50%  { transform: scaleY(1); transform-origin: top; }
  51%  { transform: scaleY(1); transform-origin: bottom; }
  100% { transform: scaleY(0); transform-origin: bottom; }
}

@media (max-width: 900px) {
  /* スマホでは写真を小さくして、コピーの右側に置く（PCの構図を保つ） */
  .lead-hero .lh-inner {
    grid-template-columns: 1fr;
    min-height: 0;
  }
  /* 写真はセクション下端に沿わせ、コピーの右側に収める */
  .lead-hero .lh-photo {
    position: absolute; inset: auto 0 0 auto;
    width: 40%; height: 78%;
    z-index: 1;
  }
  .lead-hero .lh-photo img {
    height: 100%;
    object-fit: contain; object-position: right bottom;
  }
  .lead-hero .lh-copy {
    padding: clamp(30px, 7vw, 48px) var(--gutter) clamp(26px, 6vw, 40px);
  }
  /* リード文だけ幅を抑えて写真を避け、見出しは全幅で自然に折り返す */
  .lead-hero .lh-lead { max-width: 56%; margin-bottom: clamp(24px, 5vw, 34px); }
  /* 見出しは 24px 固定にして、折り返し位置を安定させる */
  .lead-hero .lh-title { font-size: 24px; }
  /* 右下の写真に重ならないよう幅を抑える */
  .lead-hero .lh-h1, .lead-hero .lh-note { max-width: 58%; }
  .lead-hero .lh-vertical { display: none; }
  .lead-hero .lh-scroll { display: none; }
  .lead-hero .lh-badges { gap: 10px; margin-top: 20px; max-width: 58%; }
  .lead-hero .lh-badges img { height: 70px; }
}

/* works marquee — 制作事例が右から左へ流れる（背景なし） */
.works-marquee {
  --wm-gap: clamp(28px, 4vw, 56px);
  overflow: hidden;
  padding: clamp(28px, 5vw, 56px) 0;
  background: transparent;
}
.works-marquee .wm-track {
  display: flex;
  align-items: flex-start;
  gap: var(--wm-gap);
  width: max-content;
  animation: wm-scroll var(--wm-speed, 46s) linear infinite;
  will-change: transform;
}
/* 2段目（wm-track--b）は1段目との間に余白を空ける */
.works-marquee .wm-track--b { margin-top: 30px; }
.works-marquee:hover .wm-track,
.works-marquee:focus-within .wm-track { animation-play-state: paused; }

.wm-item {
  flex: none;
  width: clamp(210px, 24vw, 330px);
  display: block;
  color: inherit;
}
/* スマホはこの枠を基準に配置する（キャプションに重ならないように） */
.wm-item .wm-visual { position: relative; display: block; }
.wm-item .dev-mon {
  display: block;                    /* span でも比率が効くように */
  width: 100%; height: auto; aspect-ratio: 16 / 9;
  border-radius: 10px; overflow: hidden;
  border: 1px solid var(--line);
  background: #fff;
}
.wm-item .dev-mon img,
.wm-item .dev-mon svg { width: 100%; height: 100%; object-fit: cover; object-position: top center; display: block; }

.wm-item .dev-phone {
  position: absolute; right: -6px; bottom: -16px;   /* モニターの下に少しはみ出す */
  width: 20%; aspect-ratio: 9 / 16;
  border-radius: 10px; overflow: hidden;
  border: 3px solid var(--navy-800);
  background: #fff;
  transition: transform .2s ease;
}
.wm-item .dev-phone img,
.wm-item .dev-phone svg { width: 100%; height: 100%; object-fit: cover; object-position: top center; display: block; }
.wm-item:hover .dev-phone { transform: translateY(-4px); }

.wm-item .wm-label {
  display: block; margin-top: 28px;   /* スマホのはみ出し分を避ける */
  font-size: 13px; font-weight: 700; color: var(--navy-800);
}
.wm-item .wm-label small { display: block; font-weight: 600; color: var(--muted); font-size: 12px; margin-top: 2px; }

/* -50% は「2セット間の隙間」を半分しか送らないため、gap の半分を足して継ぎ目を消す */
@keyframes wm-scroll {
  from { transform: translateX(0); }
  to   { transform: translateX(calc(-50% - (var(--wm-gap) / 2))); }
}
@media (prefers-reduced-motion: reduce) {
  .works-marquee .wm-track { animation: none; }
  .works-marquee { overflow-x: auto; }
}

/* flow hero — zigzag phase diagram */
.flow-hero .hero-art { display: flex; align-items: center; width: 100%; }
.phase-flow { position: relative; width: 100%; flex: 1 1 auto; }
.phase-flow .pf-lines { position: absolute; inset: 0; width: 100%; height: 100%; }
.phase-flow .phase-item {
  position: absolute; display: flex; flex-direction: column; align-items: center;
  text-align: center; width: 150px; z-index: 1;
}
.phase-flow .circle {
  width: 148px; height: 148px; border-radius: 50%; color: #fff;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  border: 4px solid rgba(255,255,255,.55); flex: none;
}
.phase-flow .circle .eb { font-size: 11px; font-weight: 700; opacity: .85; letter-spacing: .04em; }
.phase-flow .circle .num { font-size: 28px; font-weight: 900; line-height: 1.15; margin: 2px 0 6px; }
.phase-flow .circle ul { list-style: none; padding: 0; margin: 0; font-size: 11.5px; font-weight: 700; line-height: 1.65; }
.phase-flow .tag {
  margin-top: 14px; padding: 8px 18px; border-radius: 999px; color: #fff;
  font-weight: 800; font-size: 12.5px; white-space: nowrap;
}
.phase-flow.pf-desktop .phase-item { transform: translate(-50%, -74px); }
.phase-flow.pf-mobile { display: none; }
.phase-flow.pf-mobile .phase-item { transform: translate(-50%, -66px); width: 132px; }
.phase-flow.pf-mobile .circle { width: 130px; height: 130px; }
@media (max-width: 900px) {
  .phase-flow.pf-desktop { display: none; }
  .phase-flow.pf-mobile { display: block; }
}

/* flow band — same diagram as a full-width section (top page) */
.flow-band .lead { color: #cdd9ee; }
.flow-band .phase-wrap { max-width: 940px; margin: 8px auto 0; }
.flow-band .pf-note { text-align: center; margin-top: 46px; font-size: 13.5px; color: #aebbd3; }

/* FAQ */
.faq { display: grid; gap: 12px; max-width: 820px; margin-inline: auto; }
.faq details { background: #fff; border: 1px solid var(--line); border-radius: var(--radius-sm); overflow: hidden; }
.faq summary { list-style: none; cursor: pointer; padding: 20px 56px 20px 22px; position: relative; font-weight: 700; color: var(--navy-800); font-size: 15.5px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::before { content: "Q"; color: var(--brand); font-weight: 900; margin-right: 12px; }
.faq summary::after { content: ""; position: absolute; right: 22px; top: 50%; width: 12px; height: 12px; border-right: 2px solid var(--muted-2); border-bottom: 2px solid var(--muted-2); transform: translateY(-65%) rotate(45deg); transition: .2s; }
.faq details[open] summary::after { transform: translateY(-35%) rotate(-135deg); }
.faq .a { padding: 0 22px 22px 50px; color: var(--muted); font-size: 14.5px; }

/* ページネーション（制作実績・コラム・お知らせ等のアーカイブ共通） */
.pagination { margin-top: 48px; }
.pagination .nav-links {
  display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 10px;
}
.pagination .page-numbers {
  display: inline-flex; align-items: center; justify-content: center;
  min-width: 46px; height: 46px; padding: 0 16px;
  border-radius: 999px; border: 1.5px solid var(--line);
  background: #fff; color: var(--navy-800);
  font-weight: 800; font-size: 15px; text-decoration: none;
  transition: transform .15s ease, border-color .2s ease, color .2s ease, background .2s ease;
}
.pagination .page-numbers:hover { border-color: var(--brand); color: var(--brand); transform: translateY(-2px); }
.pagination .page-numbers.current {
  background: var(--grad-brand); border-color: transparent; color: #fff;
}
.pagination .page-numbers.dots { border: none; background: none; color: var(--muted-2); }
.pagination .prev.page-numbers, .pagination .next.page-numbers { width: auto; padding: 0 22px; }

/* CTA band */
.cta-band { background: var(--grad-hero); color: #fff; border-radius: var(--radius-lg); padding: clamp(34px,5vw,60px); text-align: center; position: relative; overflow: hidden; }
.cta-band h2 { color: #fff; }
.cta-band p { color: #cdd9ee; margin: 14px auto 0; max-width: 560px; }
.cta-band .hero-cta { justify-content: center; }

/* CTAボタン：常時のパルス＋キラリと光るシャイン演出 */
.cta-band .hero-cta .btn {
  position: relative;
  overflow: hidden;
  animation: cta-pulse 1.8s ease-in-out infinite;
}
.cta-band .hero-cta .btn::after {
  content: "";
  position: absolute;
  top: 0; left: -60%;
  width: 40%; height: 100%;
  background: linear-gradient(120deg, transparent, rgba(255,255,255,.65), transparent);
  transform: skewX(-20deg);
  animation: cta-shine 3s ease-in-out infinite;
  pointer-events: none;
}
@keyframes cta-pulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.05); }
}
@keyframes cta-shine {
  0% { left: -60%; }
  15% { left: 130%; }
  100% { left: 130%; }
}
@media (prefers-reduced-motion: reduce) {
  .cta-band .hero-cta .btn { animation: none; }
  .cta-band .hero-cta .btn::after { animation: none; display: none; }
}

/* colorful band background（コラムなど、彩りを出したいセクション用） */
.section--grad { background: var(--grad-hero); color: #fff; }
.section--grad h2, .section--grad h3 { color: #fff; }
.section--grad .eyebrow { color: #ffd0b9; }
.section--grad .eyebrow::before { background: #ffd0b9; }
.section--grad .lead { color: #cdd9ee; }

/* ---------- Blog / Column band（コラム紹介・右から左へ流れるスライドショー） ---------- */
.blog-band-head {
  display: flex; align-items: flex-end; justify-content: space-between; gap: 24px;
  margin-bottom: clamp(28px, 4vw, 40px); flex-wrap: wrap;
}
.blog-marquee {
  --bm-gap: 20px;
  overflow: hidden;
  padding-block: 6px clamp(28px, 5vw, 48px);
}
.blog-track {
  display: flex; gap: var(--bm-gap); width: max-content;
  animation: bm-scroll 34s linear infinite;
  will-change: transform;
}
.blog-marquee:hover .blog-track,
.blog-marquee:focus-within .blog-track { animation-play-state: paused; }
@keyframes bm-scroll {
  from { transform: translateX(0); }
  to   { transform: translateX(calc(-50% - (var(--bm-gap) / 2))); }
}
@media (prefers-reduced-motion: reduce) {
  .blog-track { animation: none; }
  .blog-marquee { overflow-x: auto; }
}
.blog-card {
  flex: none; width: 260px;
  display: flex; flex-direction: column; background: #fff; color: var(--ink);
  border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow-lg);
  transition: transform .2s ease;
}
.blog-card:hover { transform: translateY(-6px); }
.blog-card-top { padding: 20px 20px 16px; display: flex; align-items: flex-start; gap: 12px; }
.blog-card-top h3 {
  flex: 1; min-width: 0; font-size: 15px; font-weight: 700; line-height: 1.6; color: var(--navy-800);
  display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden;
}
.blog-card-meta { flex: none; text-align: right; }
.blog-card-tag { display: block; font-size: 11px; font-weight: 800; letter-spacing: .04em; color: var(--muted-2); white-space: nowrap; }
.blog-card-date { line-height: 1; margin-top: 4px; white-space: nowrap; }
.blog-card-date .mo { font-size: 13px; font-weight: 700; color: var(--muted); }
.blog-card-date .day { font-size: 28px; font-weight: 900; color: var(--brand); margin-left: 1px; }
.blog-card-shot { margin-top: auto; aspect-ratio: 4 / 3; background: var(--bg-soft-2); }
.blog-card-shot img, .blog-card-shot svg { width: 100%; height: 100%; object-fit: cover; display: block; }
/* 関連記事など、スライドショーではなく普通のグリッドに並べる場合 */
.blog-grid .blog-card { width: auto; height: 100%; }

/* breadcrumb */
.crumbs { background: var(--bg-soft); border-bottom: 1px solid var(--line-2); }
.crumbs ol { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; padding-block: 14px; font-size: 12.5px; color: var(--muted); }
.crumbs li { display: inline-flex; align-items: center; gap: 6px; }
.crumbs li:not(:last-child)::after { content: "/"; color: var(--muted-2); margin-left: 2px; }
.crumbs a:hover { color: var(--brand); }
.crumbs li[aria-current] { color: var(--navy-800); font-weight: 700; }

/* page hero (interior) */
.page-hero { background: var(--grad-hero); color: #fff; }
/* 背景画像が設定されている固定ページ：写真を背景に、暗めのグラデーションを重ねて文字を読みやすくする */
.page-hero.has-photo {
  background-image:
    linear-gradient(160deg, rgba(10,28,56,.88) 0%, rgba(15,39,71,.82) 55%, rgba(22,55,100,.78) 100%),
    var(--hero-photo-pc);
  background-size: cover;
  background-position: center;
}
/* スマホ画像が別途設定されている場合は、スマホ表示のみそちらに切り替える */
@media (max-width: 900px) {
  .page-hero.has-photo-sp {
    background-image:
      linear-gradient(160deg, rgba(10,28,56,.88) 0%, rgba(15,39,71,.82) 55%, rgba(22,55,100,.78) 100%),
      var(--hero-photo-sp);
  }
}
.page-hero .container { padding-block: clamp(44px, 6vw, 78px); }
.page-hero .eyebrow { color: #ffd0b9; }
.page-hero .eyebrow::before { background: #ffd0b9; }
.page-hero h1 { color: #fff; margin: 14px 0 0; }
.page-hero h1.display { font-size: clamp(28px, 4.4vw, 46px); }
.page-hero p { color: #cdd9ee; margin-top: 16px; max-width: 680px; }
.page-hero .meta-row { margin-top: 22px; display: flex; gap: 12px; flex-wrap: wrap; }
.page-hero .meta-row .tag { background: rgba(255,255,255,.1); border: 1px solid rgba(255,255,255,.2); padding: 6px 14px; border-radius: 999px; font-size: 13px; font-weight: 700; }
/* ページ見出し（page-hero内のh1）はスマホで固定サイズにする */
@media (max-width: 900px) {
  .page-hero h1,
  .page-hero h1.display { font-size: 20px; }
}

/* prose */
.prose { max-width: 820px; margin-inline: auto; }
.prose h2 { font-size: clamp(22px, 2.6vw, 28px); margin: 44px 0 16px; padding-left: 14px; border-left: 5px solid var(--brand); }
.prose h3 { font-size: 19px; margin: 30px 0 12px; color: var(--navy-700); }
.prose p { color: var(--ink-soft); margin-bottom: 16px; }
/* check-bullet list (used in two-column intros, etc.) */
ul.check { display: grid; gap: 10px; margin: 16px 0; }
ul.check li { display: flex; gap: 11px; align-items: flex-start; color: var(--ink-soft); font-size: 14.5px; }
ul.check li svg { width: 20px; height: 20px; color: var(--teal); flex: none; margin-top: 3px; }
.prose ul.check { display: grid; gap: 10px; margin: 18px 0; }
.prose ul.check li { display: flex; gap: 11px; color: var(--ink-soft); }
.prose ul.check li svg { width: 20px; height: 20px; color: var(--teal); flex: none; margin-top: 4px; }
.prose .callout { background: var(--brand-50); border: 1px solid #ffd9c7; border-radius: var(--radius); padding: 22px 24px; margin: 24px 0; }
.prose .callout b { color: var(--brand-600); }

/* 斜めカットの旗形バナー（尭式｜ツナグ ページのキャッチコピー） */
.tagline-flags { display: flex; flex-direction: column; gap: 12px; margin: 0 0 44px; }
.tagline-flags .flag {
  display: inline-block; width: fit-content;
  background: var(--navy-800); color: #fff;
  font-weight: 900; font-style: italic;
  font-size: clamp(24px, 3.6vw, 46px);
  line-height: 1.3; letter-spacing: .01em;
  /* 左端を画面の左端まで伸ばし、文字の位置はコンテナの左端に揃える */
  margin-left: calc(50% - 50vw);
  padding: 14px 60px 14px calc(50vw - 50% + 26px);
  clip-path: polygon(0 0, 100% 0, calc(100% - 46px) 100%, 0 100%);
}
@media (max-width: 680px) {
  .tagline-flags { gap: 8px; margin-bottom: 32px; }
  .tagline-flags .flag {
    font-size: clamp(16px, 5.6vw, 22px);
    padding: 10px 30px 10px calc(50vw - 50% + 16px);
    clip-path: polygon(0 0, 100% 0, calc(100% - 22px) 100%, 0 100%);
  }
}

/* ショートコード [ryoshiki_price_vs] で挿入される料金比較表 */
.price-vs-shortcode-wrap { margin: 32px 0; }

/* prose — 記事本文（投稿・固定ページの the_content()）の基本要素
   管理画面のエディタで入力された、素の見出し・段落・リスト・画像・引用なども
   読みやすく表示されるようにする */
.prose > *:first-child { margin-top: 0; }
.prose h1 { font-size: clamp(24px, 3vw, 32px); margin: 44px 0 16px; }
.prose h4 { font-size: 16.5px; margin: 26px 0 10px; color: var(--navy-700); }
.prose p { font-size: 16px; line-height: 1.9; }
.prose a { color: var(--brand); text-decoration: underline; text-underline-offset: 3px; }
.prose a:hover { color: var(--brand-600); }
.prose strong, .prose b { color: var(--navy-800); font-weight: 800; }
.prose ul:not(.check), .prose ol {
  margin: 0 0 18px; padding-left: 1.5em; color: var(--ink-soft);
}
.prose ul:not(.check) { list-style: disc; }
.prose ol { list-style: decimal; }
.prose ul:not(.check) li, .prose ol li { margin-bottom: 8px; line-height: 1.8; }
.prose ul:not(.check) ul, .prose ol ol, .prose ul:not(.check) ol, .prose ol ul { margin: 8px 0 0; }
.prose blockquote {
  margin: 24px 0; padding: 6px 22px; border-left: 4px solid var(--line); color: var(--muted); font-style: italic;
}
.prose img { border-radius: var(--radius); margin: 24px auto; }
.prose figure { margin: 24px 0; }
.prose figure img { margin: 0 auto; }
.prose figcaption, .prose .wp-caption-text { margin-top: 8px; font-size: 13px; color: var(--muted); text-align: center; }
.prose .alignleft { float: left; margin: 6px 24px 16px 0; }
.prose .alignright { float: right; margin: 6px 0 16px 24px; }
.prose .aligncenter { display: block; margin: 24px auto; }
/* 制作事例の詳細ページのみ：本文内の画像の角丸と上下余白をなくす */
body.single-works .prose img { border-radius: 0; margin-top: 0; margin-bottom: 0; }
.prose hr { border: 0; border-top: 1px solid var(--line); margin: 36px 0; }
.prose table:not(.tbl) { width: 100%; border-collapse: collapse; margin: 24px 0; }
.prose table:not(.tbl) th, .prose table:not(.tbl) td { padding: 12px 14px; border: 1px solid var(--line); text-align: left; font-size: 14.5px; }
.prose table:not(.tbl) th { background: var(--bg-soft); color: var(--navy-800); font-weight: 800; }

/* tag list / chips links */
.chip-links { display: flex; flex-wrap: wrap; gap: 10px; }
.chip-links a { background: #fff; border: 1px solid var(--line); border-radius: 999px; padding: 9px 16px; font-size: 13.5px; font-weight: 600; color: var(--ink-soft); transition: .2s; }
.chip-links a:hover { border-color: var(--brand); color: var(--brand); background: var(--brand-50); }
.chip-links a[aria-current] { border-color: var(--brand); color: #fff; background: var(--brand); }

/* table */
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius); }
table.tbl { width: 100%; border-collapse: collapse; min-width: 520px; }
table.tbl th, table.tbl td { padding: 15px 18px; text-align: left; border-bottom: 1px solid var(--line-2); font-size: 14.5px; }
table.tbl th { background: var(--bg-soft); color: var(--navy-800); font-weight: 800; }
table.tbl tr:last-child td { border-bottom: 0; }

/* contact form */
.form { display: grid; gap: 18px; max-width: 720px; margin-inline: auto; }
.form .row { display: grid; gap: 7px; }
.form .row.two { grid-template-columns: 1fr 1fr; gap: 18px; }
.form label { font-size: 14px; font-weight: 700; color: var(--navy-800); }
.form label .req { color: var(--brand); font-size: 11px; margin-left: 6px; }
.form input:not([type="submit"]), .form select, .form textarea {
  width: 100%; padding: 13px 15px; border: 1.5px solid var(--line); border-radius: 12px; font: inherit;
  font-size: 15px; background: #fff; transition: border-color .15s;
}
.form input:not([type="submit"]):focus, .form select:focus, .form textarea:focus { border-color: var(--brand); }
.form textarea { min-height: 150px; resize: vertical; }
.form .consent { display: flex; gap: 10px; align-items: flex-start; font-size: 13.5px; color: var(--muted); }
.form-note { font-size: 13px; color: var(--muted); }

/* Contact Form 7 の送信ボタン・メッセージ（テーマの .btn--primary と同じ見た目にする） */
.form input[type="submit"],
.form button[type="submit"] {
  display: block; width: 100%; margin: 0; cursor: pointer;
  padding: 17px 34px; font: inherit; font-weight: 700; font-size: 16px;
  border: 0; border-radius: 999px; background: var(--grad-brand); color: #fff;
  transition: transform .15s ease, opacity .2s ease;
}
.form input[type="submit"]:hover,
.form button[type="submit"]:hover { transform: translateY(-2px); }
.form .wpcf7-spinner { margin: 10px auto 0; display: block; }
.form .wpcf7-not-valid-tip { color: var(--brand); font-size: 12.5px; margin-top: 4px; display: block; }
.form .wpcf7-response-output {
  margin-top: 16px; padding: 14px; border-radius: 12px; font-size: 14px; font-weight: 700; text-align: center;
  border: 1px solid var(--line);
}
.form form.sent .wpcf7-response-output { background: var(--teal-50); border-color: #bdeee7; color: #0d7a6e; }
.form form.invalid .wpcf7-response-output,
.form form.failed .wpcf7-response-output,
.form form.aborted .wpcf7-response-output,
.form form.spam .wpcf7-response-output { background: #fff1ea; border-color: #ffd8c2; color: var(--brand-600); }

/* footer */
.site-footer { background: var(--navy-900); color: #c7d2e6; padding-top: clamp(48px, 6vw, 76px); }
.footer-top { display: grid; grid-template-columns: 1.2fr 2fr; gap: 36px; padding-bottom: 44px; }
.footer-links { display: grid; grid-template-columns: repeat(3, 1fr); gap: 30px 24px; }
.footer-brand .brand-name b { color: #fff; }
.footer-brand-link { display: inline-block; }
.footer-logo { display: inline-block; background: #fff; border-radius: 14px; padding: 12px 18px; line-height: 0; }
.footer-logo img { height: 50px; width: auto; display: block; }
.footer-brand p { color: #93a3c2; font-size: 13.5px; margin-top: 16px; max-width: 280px; }
.footer-brand .sns { display: flex; gap: 10px; margin-top: 18px; }
.footer-brand .sns a { width: 38px; height: 38px; border-radius: 10px; background: rgba(255,255,255,.07); display: grid; place-items: center; transition: .2s; }
.footer-brand .sns a:hover { background: var(--brand); }
.footer-brand .sns svg { width: 18px; height: 18px; color: #fff; }
.footer-col h4 { color: #fff; font-size: 13px; letter-spacing: .1em; margin-bottom: 16px; text-transform: uppercase; }
.footer-col ul { display: grid; gap: 10px; }
.footer-col a { color: #aab8d4; font-size: 13.5px; }
.footer-col a:hover { color: #fff; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.08); padding-block: 22px; display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.footer-bottom small { color: #7e8eaf; font-size: 12.5px; }
.footer-bottom .legal { display: flex; gap: 18px; flex-wrap: wrap; }
.footer-bottom .legal a { color: #93a3c2; font-size: 12.5px; }

/* floating CTA (mobile) */
.float-cta { position: fixed; left: 0; right: 0; bottom: 0; z-index: 90; display: none; gap: 0; padding: 0 0 env(safe-area-inset-bottom); background: #fff; border-top: 1px solid var(--line); }
.float-cta .fc-btn { flex: 1; display: flex; align-items: center; justify-content: center; gap: 12px; padding: 12px 8px; text-decoration: none; }
.float-cta .fc-btn svg { width: 34px; height: 34px; flex: none; }
.float-cta .fc-txt { display: flex; flex-direction: column; align-items: center; gap: 3px; line-height: 1.2; }
.float-cta .fc-pill { background: #fff; border-radius: 999px; padding: 3px 14px; font-size: 12px; font-weight: 800; letter-spacing: .06em; color: var(--brand-600); }
.float-cta .fc-label { font-size: 14px; font-weight: 900; letter-spacing: .02em; }
.float-cta .fc-doc { background: var(--bg-soft-2); color: var(--navy-800); }
.float-cta .fc-doc svg { color: var(--navy-700); }
.float-cta .fc-web { background: var(--grad-brand); color: #fff; }
.float-cta .fc-arrow { width: 16px !important; height: 16px !important; margin-left: -2px; }

/* back to top */
.to-top { position: fixed; right: 18px; bottom: 18px; z-index: 80; width: 46px; height: 46px; border-radius: 50%; background: var(--navy-800); color: #fff; display: grid; place-items: center; opacity: 0; transform: translateY(14px); pointer-events: none; transition: .25s; }
.to-top.show { opacity: 1; transform: translateY(0); pointer-events: auto; }
.to-top svg { width: 20px; height: 20px; }

/* reveal animation */
.reveal { opacity: 0; transform: translateY(22px); transition: opacity .6s ease, transform .6s ease; }
.reveal.in { opacity: 1; transform: none; }

/* ---------- Loading screen (和風 / 浮かび上がる) ---------- */
html.is-loading, html.is-loading body { overflow: hidden; }
.loader {
  position: fixed; inset: 0; z-index: 9999; display: none; place-items: center;
  width: 100vw; height: 100vh; height: 100dvh;
  /* 背景は ::before に持たせる（下記の理由でこの要素には付けない） */
  background: none;
}
/* iOS の Safari/Chrome は読み込み直後（アドレスバーの収縮中）に、fixed 要素の
   下端を実際の表示領域まで届かせないことがあり、背景が途切れて見える。
   高さの計算に頼らず、背景だけを下方向へ大きく伸ばして隙間を物理的に塞ぐ。
   はみ出した分は画面外なので、見た目には影響しない。
   中身（.loader-inner）の位置は .loader の中央のままなのでズレない。 */
.loader::before {
  content: "";
  position: absolute;
  left: 0; top: 0;
  width: 100%;
  height: calc(100% + 30vh);
  background:
    radial-gradient(720px 380px at 50% 38%, rgba(20,184,166,.16), transparent 62%),
    radial-gradient(520px 320px at 50% 80%, rgba(255,90,31,.14), transparent 60%),
    linear-gradient(160deg, #0a1c38, #0f2747 60%, #163764);
  pointer-events: none;
}
html.show-loader .loader { display: grid; }
.loader-inner { position: relative; z-index: 1; text-align: center; padding: 24px; }
.loader-ring {
  position: absolute; left: 50%; top: 44%; width: 250px; height: 250px; margin: -125px 0 0 -125px;
  border-radius: 50%; border: 2px solid rgba(255,255,255,.10); border-top-color: rgba(255,90,31,.85);
  border-right-color: rgba(20,184,166,.6);
  animation: ld-ring 1.1s cubic-bezier(.2,.7,.2,1) both;
}
.loader-mark {
  position: relative; display: block; font-family: var(--font-brush); font-weight: 400;
  font-size: clamp(56px, 13vw, 104px); line-height: 1; letter-spacing: .08em;
  animation: ld-up .9s .15s both;
}
.loader-mark .o { color: var(--brand); }
.loader-mark .w { color: #fff; }
.loader-line {
  display: block; width: 64px; height: 3px; margin: 22px auto 18px; border-radius: 3px;
  background: var(--grad-brand); transform-origin: center; animation: ld-line .7s .5s both;
}
.loader-en {
  display: block; color: #e3ebf7; font-weight: 700; font-size: clamp(15px, 2.4vw, 20px);
  letter-spacing: .42em; padding-left: .42em; animation: ld-up .9s .45s both;
}
.loader-tag {
  display: block; margin-top: 14px; color: #9fb0cc; font-family: var(--font-brush);
  font-size: clamp(13px, 1.8vw, 16px); letter-spacing: .12em; animation: ld-up .9s .68s both;
}
.loader.hide { opacity: 0; visibility: hidden; transition: opacity .6s ease, visibility .6s ease; }
@keyframes ld-up { from { opacity: 0; transform: translateY(22px); } to { opacity: 1; transform: none; } }
@keyframes ld-ring { from { opacity: 0; transform: scale(.62) rotate(-26deg); } to { opacity: 1; transform: none; } }
@keyframes ld-line { from { transform: scaleX(0); opacity: 0; } to { transform: scaleX(1); opacity: 1; } }

/* utilities */
.mt-0{margin-top:0}.mt-1{margin-top:8px}.mt-2{margin-top:16px}.mt-3{margin-top:24px}.mt-4{margin-top:36px}
.mb-2{margin-bottom:16px}.mb-3{margin-bottom:24px}
.gap-sm{gap:14px}
.flex{display:flex}.wrap{flex-wrap:wrap}.items-center{align-items:center}.gap{gap:18px}
.divider{height:1px;background:var(--line);border:0;margin:0}

/* ---------- Responsive ---------- */
@media (max-width: 1080px) {
  .ind-grid { grid-template-columns: repeat(4, 1fr); }
}
@media (max-width: 960px) {
  :root { --header-h: 64px; }
  .hero-grid { grid-template-columns: 1fr; gap: 30px; }
  .hero-art { max-width: 460px; margin-inline: auto; order: -1; }
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .price-grid { grid-template-columns: 1fr; max-width: 460px; margin-inline: auto; }
  /* PC表示用に付いているインラインの grid-column（吹き出し/カードの列位置指定）を
     打ち消し、1カラムで確実に縦1列に積み重なるようにする */
  .price-grid > * { grid-column: 1 !important; grid-row: auto !important; }
  /* 料金セクション：見出し文の下に+30px、キャンペーン吹き出しの上に+30px */
  #pricing .section-head { margin-bottom: calc(clamp(34px, 5vw, 56px) + 30px); }
  #pricing .price-grid.has-campaign { margin-top: 30px; }
  /* 吹き出しとカードの間の余白は無くす（吹き出し自体がカードに沿うように） */
  #pricing .price-campaign { margin-bottom: 0; }
  /* ただしセクション先頭以外の吹き出し（例：2つ目以降のプランの吹き出し）は、
     直前のカードとの間に+30pxの余白を空ける */
  #pricing .price-grid.has-campaign > .price-campaign:not(:first-child) { margin-top: 30px; }
  .footer-top { grid-template-columns: 1fr; gap: 30px; }
  .footer-links { grid-template-columns: repeat(3, 1fr); }

  /* モバイルでは常時表示のインラインバーは隠し、ハンバーガー→メガメニューのみにする
     （NOTE: backdrop-filter を外すのは、それが .mega-menu の containing block に
     なってしまい fixed 全画面表示が崩れるのを防ぐため） */
  .site-header { backdrop-filter: none; background: rgba(255,255,255,.97); }
  #globalnav { display: none; }
  body.nav-open .float-cta { display: none; }
  .float-cta { display: flex; }
  /* 画面下部の追従バーにフッター最下部（規約リンクなど）が隠れないよう余白を確保 */
  .site-footer { padding-bottom: calc(76px + env(safe-area-inset-bottom)); }
  .to-top { bottom: 78px; }
}
@media (max-width: 680px) {
  :root { --gutter: 16px; }
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
  .ind-grid { grid-template-columns: repeat(2, 1fr); }
  .stats-band { grid-template-columns: repeat(2, 1fr); gap: 26px 14px; }
  .footer-top { grid-template-columns: 1fr; }
  .footer-links { grid-template-columns: repeat(2, 1fr); }
  .form .row.two { grid-template-columns: 1fr; }
  .hero-stats { gap: 20px; }
  .section--navy .container > .flex { flex-direction: column; }
}

/* ===================================================================
   Key Visual (top hero, 和風)
   =================================================================== */
.kv { position: relative; background: #E8E7ED; overflow: hidden; }
/* 上下の筆致（波形）装飾は非表示にする */
.kv-bg { display: none; }
.kv-bg svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.kv-bg-sp { display: none; }
.kv-inner {
  position: relative; z-index: 1; display: grid;
  grid-template-columns: minmax(0,1.04fr) minmax(0,.96fr);
  grid-template-areas: "copy visual" "stats domains";
  column-gap: 26px; row-gap: clamp(26px,4vw,42px);
  padding-block: clamp(40px,5vw,64px) clamp(48px,7vw,96px); align-items: start;
}
.kv-copy { grid-area: copy; align-self: center; position: relative; z-index: 2; max-width: 560px; }
.kv-eyebrow { font-size: clamp(13px,1.5vw,18px); font-weight: 700; color: #16233f; }
.kv-eyebrow b { color: var(--brand); }
.kv-h1 { font-family: var(--font-brush); font-weight: 400; color: #16233f; font-size: 48px; line-height: 1.3; letter-spacing: .03em; margin: 14px 0 0; }
.kv-sub { color: #3a414d; font-size: clamp(14px,1.45vw,17px); line-height: 1.9; margin: 20px 0 0; }
.kv-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 28px; }
.kv-visual { grid-area: visual; position: relative; min-height: 470px; z-index: 1; }
/* キービジュアル右側を動画にした場合の枠 */
.kv-video-wrap {
  width: 100%; aspect-ratio: 4 / 3; border-radius: var(--radius-lg); overflow: hidden;
}
.kv-video-wrap video { width: 100%; height: 100%; object-fit: cover; display: block; }
.kv-laptop { position: relative; width: min(420px,94%); margin: 88px 0 0 auto; }
.kv-screen { background: #fff; border: 9px solid #2b2f36; border-bottom: none; border-radius: 13px 13px 0 0; padding: 9px; }
.kv-base { height: 13px; background: linear-gradient(#c9ced6,#aeb4be); border-radius: 0 0 11px 11px; position: relative; }
.kv-base::after { content: ""; position: absolute; left: 50%; top: 0; width: 74px; height: 5px; background: #9aa0ab; border-radius: 0 0 7px 7px; transform: translateX(-50%); }
.kv-dash-top { display: flex; align-items: center; gap: 7px; border-bottom: 1px solid #eef1f6; padding-bottom: 6px; margin-bottom: 7px; }
.kv-dash-top .lg { font-family: var(--font-brush); font-size: 14px; color: #16233f; }
.kv-dash-top .tabs { display: flex; gap: 6px; margin-left: 4px; font-size: 7.5px; color: #8a93a3; flex-wrap: wrap; }
.kv-dash-top .tabs b { color: #16233f; }
.kv-dash-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 5px; }
.kv-dp { border: 1px solid #eef1f6; border-radius: 6px; padding: 6px; }
.kv-dp .t { font-size: 7px; color: #8a93a3; }
.kv-dp .n { font-size: 12.5px; font-weight: 800; color: #16233f; margin-top: 1px; }
.kv-dp .n i { font-size: 7.5px; color: #16a34a; font-style: normal; font-weight: 700; }
.kv-map { position: absolute; top: -14px; right: 0; width: clamp(210px,23vw,286px); z-index: 2; }
.kv-float { position: absolute; background: #fff; border-radius: 14px; padding: 11px 13px; width: 150px; z-index: 3; animation: kv-flo 5s ease-in-out infinite; }
.kv-float .hd { display: flex; align-items: center; gap: 8px; }
.kv-float .hd b { font-size: 12px; color: #16233f; }
.kv-float .mt { font-size: 11px; color: var(--muted); margin-top: 6px; }
.kv-float .big { font-size: 22px; font-weight: 900; color: var(--brand); line-height: 1; }
.kv-float--gym { left: -12px; top: 24px; }
.kv-float--dental { left: -22px; top: 248px; animation-delay: 1.2s; }
.kv-float--agri { right: -14px; top: 150px; animation-delay: .6s; }
.kv-float--const { right: -14px; top: 346px; animation-delay: 1.8s; }
@keyframes kv-flo { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-9px); } }
.kv-stats { grid-area: stats; align-self: center; display: flex; flex-wrap: wrap; gap: 22px; align-items: center; position: relative; z-index: 2; }
.kv-st { display: flex; align-items: center; gap: 11px; }
.kv-st .v { font-size: clamp(26px,3vw,34px); font-weight: 900; color: #16233f; line-height: 1; }
.kv-st .v small { color: var(--brand); font-size: .5em; font-weight: 800; }
.kv-st .l { font-size: 12px; color: var(--muted); }
.kv-domains { grid-area: domains; align-self: center; display: flex; flex-wrap: wrap; gap: 14px; justify-content: flex-end; align-items: flex-start; position: relative; z-index: 2; }
.kv-dom { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 8px; width: 100px; }
.kv-dom b { font-size: 12.5px; color: #16233f; line-height: 1.35; }
.kv-enso { position: relative; display: inline-grid; place-items: center; flex: none; }
.kv-enso .ring { position: absolute; inset: 0; width: 100%; height: 100%; }
.kv-enso .ic { display: grid; place-items: center; line-height: 0; }
.kv-enso .ic svg { width: 48%; height: 48%; color: #16233f; }

@media (max-width: 960px) {
  /* SP layout order: eyebrow / h1 / visual / sub / actions
     （説明文はCTAボタンの直上に置く。PCの並びは変更しない） */
  .kv-bg-pc { display: none; }
  .kv-bg-sp { display: block; }
  .kv-inner { display: flex; flex-direction: column; align-items: stretch; }
  .kv-copy { display: contents; }            /* promote eyebrow/h1/sub/actions to flex items */
  .kv-eyebrow { order: 0; text-align: center; }
  .kv-h1 { order: 0; font-size: 32px; text-align: center; }
  .kv-visual { order: 1; min-height: 0; margin: 18px 0 4px; }
  .kv-sub { order: 2; margin: 4px 0 0; }
  .kv-stats { order: 3; justify-content: center; gap: 18px; flex-wrap: wrap; margin-top: 6px; }
  .kv-domains { order: 3; display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; }
  .kv-actions { order: 4; flex-wrap: nowrap; gap: 10px; margin-top: 14px; }
  .kv-actions .btn { flex: 1 1 0; min-width: 0; padding: 14px 10px; font-size: 14px; }
  /* uniform domain cards (same width & height), 2-column grid */
  .kv-dom { width: auto; min-height: 100px; justify-content: center; gap: 8px; background: rgba(255,255,255,.72); border: 1px solid #efe8d8; border-radius: 12px; padding: 14px 8px; }
  .kv-dom b { font-size: 13.5px; }
  /* visual internals */
  .kv-laptop { margin: 0 auto; width: min(400px,84%); }
  .kv-map { position: static; margin: 16px auto 0; }
  .kv-float { width: 130px; }
  .kv-float--gym { left: -6px; top: 4px; }
  .kv-float--dental { left: -6px; top: 188px; }
  .kv-float--agri { right: -6px; top: 110px; }
  .kv-float--const { right: -6px; top: 278px; }
}
@media (max-width: 520px) {
  .kv-stats { gap: 12px; }
  .kv-st .v { font-size: 26px; }
  .kv-actions .btn { font-size: 13px; padding: 13px 8px; }
  .kv-laptop { width: min(300px,92%); }
  .kv-float { width: 112px; padding: 9px 11px; }
  .kv-float .big { font-size: 18px; }
  .kv-float .hd b { font-size: 11px; }
  .kv-float--gym { left: -4px; top: 0; }
  .kv-float--dental { left: -4px; top: 160px; }
  .kv-float--agri { right: -4px; top: 88px; }
  .kv-float--const { right: -4px; top: 238px; }
}

/* print / reduced motion */
@media (prefers-reduced-motion: reduce) {
  * { scroll-behavior: auto !important; animation: none !important; transition: none !important; }
  .reveal { opacity: 1; transform: none; }
}

/* ツナグ：機能紹介（写真付きカード＋一覧） */
.tsf-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(8px, 2vw, 22px); margin-bottom: clamp(30px, 5vw, 54px); }
.tsf-card { position: relative; }
.tsf-hero { position: relative; z-index: 2; width: min(100%, 900px); margin: 0 auto; }
.tsf-hero img { display: block; width: 100%; height: auto; }
@media (min-width: 901px) {
  .tsf-hero { max-width: 600px; }
  img.tsf-photo { max-width: 600px; }
}
.tsf-cards { margin-top: calc(-1 * clamp(24px, 6vw, 90px)); }
.tsf-thumb {
  aspect-ratio: 16 / 6; border-radius: 18px;
  background: linear-gradient(135deg, #fff 0%, #dfe8f5 100%);
}
.tsf-label {
  position: relative; display: block; width: 92%; margin: -22px auto 0;
  background: var(--navy-800); color: #fff; text-align: center;
  font-weight: 900; font-size: clamp(11px, 2.4vw, 20px); line-height: 1.4;
  padding: clamp(8px, 1.6vw, 16px) 4px; border-radius: 12px;
  box-shadow: 0 6px 16px rgba(15,39,71,.18);
}
.tsf-label::before {
  content: ""; position: absolute; left: 50%; top: -9px; transform: translateX(-50%);
  border: 9px solid transparent; border-top: 0; border-bottom-color: var(--navy-800);
}
.tsf-rows { max-width: 880px; margin-inline: auto; }
.tsf-row { display: flex; align-items: center; gap: clamp(16px, 3vw, 32px); padding: clamp(18px, 3vw, 28px) 0; border-bottom: 1px solid var(--line); }
.tsf-row:last-child { border-bottom: 0; }
.tsf-no {
  flex: none; min-width: 1.1em; text-align: center;
  font-family: "Roboto", sans-serif; font-style: italic; font-weight: 900;
  font-size: 100px; line-height: 1; color: var(--navy-800); opacity: .25;
}
.tsf-num { display: block; font-size: 13px; font-weight: 800; letter-spacing: .08em; color: var(--brand); margin-bottom: 4px; }
.tsf-row h3 { font-size: clamp(18px, 3vw, 26px); margin: 0 0 6px; }
.tsf-row p { margin: 0; color: var(--ink-soft); font-size: clamp(13px, 1.8vw, 15px); line-height: 1.8; }
.tsf-sp { display: none; }
@media (max-width: 680px) {
  .tsf-pc { display: none; }
  .tsf-sp { display: inline; }
  .tsf-label { font-size: 13px; }
}
