/* ============================================================
   Gibble Engineering — shared site styles
   White base · blue brand (enterprise) · warm sub-theme (AhaGate)
   ============================================================ */

:root {
  /* neutrals (shared) */
  --bg: #FFFFFF;
  --ink: #0E1B2E;
  --ink-2: #243449;
  --ink-3: #4C5A6E;
  --ink-mute: #7E8BA0;
  --line: #E3E9F1;
  --line-soft: #EEF2F8;

  /* blue brand (default / enterprise) */
  --brand: #2563EB;
  --brand-ink: #1B47B8;
  --brand-2: #5B8DEF;
  --brand-soft: #E8F0FF;
  --bg-soft: #F5F8FC;
  --bg-tint: #EDF3FF;
  --on-brand: #FFFFFF;

  /* accents that stay constant */
  --ok: #1F9D6B;
  --ok-soft: #E4F5EE;
  --warn: #D9774A;
  --warn-soft: #FBEFE7;
  --gold: #C99A3F;

  --shadow-xs: 0 1px 2px rgba(14,27,46,.05);
  --shadow-sm: 0 2px 6px rgba(14,27,46,.06), 0 1px 2px rgba(14,27,46,.04);
  --shadow-md: 0 8px 26px rgba(14,27,46,.08), 0 2px 6px rgba(14,27,46,.04);
  --shadow-lg: 0 22px 60px rgba(14,27,46,.12), 0 4px 12px rgba(14,27,46,.05);
  --shadow-brand: 0 10px 30px rgba(37,99,235,.22);

  --r-sm: 8px;
  --r: 12px;
  --r-lg: 18px;
  --r-xl: 26px;

  --maxw: 1160px;
  --gut: clamp(20px, 4vw, 44px);

  --font: "Noto Sans JP", "Hiragino Sans", "Yu Gothic", sans-serif;
  --font-num: "Inter", "Noto Sans JP", sans-serif;
}

/* ---- AhaGate sub-theme: calm corporate teal ---- */
[data-theme="warm"] {
  --brand: #0F7A8B;
  --brand-ink: #0A5A67;
  --brand-2: #4FB3C0;
  --brand-soft: #E1F1F3;
  --bg-soft: #F2F8F9;
  --bg-tint: #E6F2F4;
  --shadow-brand: 0 10px 30px rgba(15,122,139,.22);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 84px; }
body {
  margin: 0;
  font-family: var(--font);
  color: var(--ink);
  background: var(--bg);
  line-height: 1.8;
  letter-spacing: .02em;
  font-feature-settings: "palt" 1;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; border: 0; background: none; }

.container { max-width: var(--maxw); margin: 0 auto; padding: 0 var(--gut); }
.container--wide { max-width: 1280px; }
.container--narrow { max-width: 880px; }

/* ---------------- Typography ---------------- */
h1, h2, h3, h4 { margin: 0; color: var(--ink); font-weight: 700; letter-spacing: .03em; }
h1 { font-size: clamp(30px, 4.4vw, 50px); line-height: 1.34; }
h2 { font-size: clamp(25px, 3.1vw, 37px); line-height: 1.4; }
h3 { font-size: clamp(17px, 1.7vw, 21px); line-height: 1.5; }
p  { margin: 0; color: var(--ink-3); }

.eyebrow {
  display: inline-flex; align-items: center; gap: 9px;
  font-size: 12px; font-weight: 700; letter-spacing: .2em;
  color: var(--brand-ink);
}
.eyebrow::before { content: ""; width: 22px; height: 2px; border-radius: 2px; background: var(--brand); }
.eyebrow--center::after { content: ""; width: 22px; height: 2px; border-radius: 2px; background: var(--brand); }

.lead { font-size: clamp(15px, 1.35vw, 17px); line-height: 1.95; color: var(--ink-3); }
.small { font-size: 12.5px; color: var(--ink-mute); }
.num { font-family: var(--font-num); letter-spacing: 0; }

/* ---------------- Sections ---------------- */
section { padding: clamp(64px, 8vw, 116px) 0; position: relative; }
.sec-soft { background: var(--bg-soft); }
.sec-ink  { background: var(--ink); color: #fff; }
.sec-ink h2, .sec-ink h3 { color: #fff; }

.sec-head { max-width: 720px; margin: 0 auto clamp(40px, 5vw, 68px); text-align: center; display: flex; flex-direction: column; align-items: center; gap: 16px; }
.sec-head p { color: var(--ink-3); }

/* ---------------- Buttons ---------------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  padding: 13px 24px; border-radius: 999px;
  font-size: 14.5px; font-weight: 700; line-height: 1; letter-spacing: .04em;
  transition: transform .14s ease, background .16s ease, box-shadow .16s ease, color .16s ease, border-color .16s ease;
  white-space: nowrap;
}
.btn svg { width: 16px; height: 16px; }
.btn .arr { transition: transform .16s ease; }
.btn:hover .arr { transform: translateX(3px); }
.btn--primary { background: var(--brand); color: var(--on-brand); box-shadow: var(--shadow-brand); }
.btn--primary:hover { background: var(--brand-ink); transform: translateY(-2px); }
.btn--ink { background: var(--ink); color: #fff; box-shadow: var(--shadow-sm); }
.btn--ink:hover { background: #1a2c45; transform: translateY(-2px); }
.btn--ghost { background: #fff; color: var(--ink); border: 1px solid var(--line); box-shadow: var(--shadow-xs); }
.btn--ghost:hover { border-color: var(--brand); color: var(--brand-ink); }
.btn--line { background: #06C755; color: #fff; box-shadow: 0 8px 22px rgba(6,199,85,.22); }
.btn--line:hover { background: #05b34c; transform: translateY(-2px); }
.btn--lg { padding: 16px 30px; font-size: 15.5px; }
.btn--sm { padding: 10px 16px; font-size: 13px; }
.btn--block { width: 100%; }
.on-ink .btn--ghost { background: rgba(255,255,255,.06); color: #fff; border-color: rgba(255,255,255,.24); box-shadow: none; }
.on-ink .btn--ghost:hover { border-color: rgba(255,255,255,.6); background: rgba(255,255,255,.12); }

/* ---------------- Header ---------------- */
.hdr {
  position: sticky; top: 0; z-index: 60;
  background: rgba(255,255,255,.82);
  backdrop-filter: saturate(160%) blur(12px);
  -webkit-backdrop-filter: saturate(160%) blur(12px);
  border-bottom: 1px solid var(--line-soft);
}
.hdr__in { display: flex; align-items: center; justify-content: space-between; height: 72px; gap: 24px; }
.hdr__nav { display: flex; align-items: center; gap: 30px; }
.hdr__nav a { font-size: 13.5px; font-weight: 600; color: var(--ink-2); transition: color .15s ease; position: relative; }
.hdr__nav a:hover { color: var(--brand-ink); }
.hdr__nav a.is-active { color: var(--brand-ink); }
.hdr__nav a.is-active::after { content: ""; position: absolute; left: 0; right: 0; bottom: -26px; height: 2px; background: var(--brand); border-radius: 2px; }
.hdr__cta { display: flex; align-items: center; gap: 10px; }
.hdr__burger { display: none; width: 42px; height: 42px; border-radius: 10px; border: 1px solid var(--line); align-items: center; justify-content: center; color: var(--ink); }

@media (max-width: 940px) {
  .hdr__nav { display: none; }
  .hdr__cta .btn--ghost { display: none; }
  .hdr__burger { display: inline-flex; }
}

/* logo */
.logo { display: inline-flex; align-items: center; gap: 11px; font-weight: 800; letter-spacing: .02em; }
.logo__mark { width: 72px; height: 72px; display: grid; place-items: center; }
.logo__mark svg { width: 36px; height: 36px; }
.logo__mark img { width: 72px; height: 72px; object-fit: contain; display: block; }
.logo__txt { display: flex; flex-direction: column; line-height: 1.15; }
.logo__txt b { font-size: 15.5px; color: var(--ink); }
.logo__txt span { font-size: 10.5px; font-weight: 600; letter-spacing: .14em; color: var(--ink-mute); }

/* ---------------- Cards / grids ---------------- */
.grid { display: grid; gap: 22px; }
.g2 { grid-template-columns: repeat(2,1fr); }
.g3 { grid-template-columns: repeat(3,1fr); }
.g4 { grid-template-columns: repeat(4,1fr); }
@media (max-width: 920px){ .g3,.g4{ grid-template-columns: repeat(2,1fr);} }
@media (max-width: 620px){ .g2,.g3,.g4{ grid-template-columns: 1fr;} }

.card {
  background: #fff; border: 1px solid var(--line-soft); border-radius: var(--r-lg);
  padding: 30px; box-shadow: var(--shadow-xs);
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}
.card--hover:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); border-color: var(--line); }
.card__ico { width: 50px; height: 50px; border-radius: 13px; display: grid; place-items: center; background: var(--brand-soft); color: var(--brand-ink); margin-bottom: 20px; }
.card__ico svg { width: 25px; height: 25px; }
.card h3 { margin-bottom: 10px; }
.card p { font-size: 14px; line-height: 1.85; }

/* check list */
.checks { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 11px; }
.checks li { display: flex; gap: 11px; align-items: flex-start; font-size: 14px; color: var(--ink-2); line-height: 1.7; }
.checks li::before {
  content: ""; flex-shrink: 0; width: 19px; height: 19px; margin-top: 2px; border-radius: 50%;
  background: var(--brand-soft) url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'><path d='M4 8.4l2.6 2.6L12 5.4' stroke='%232563EB' stroke-width='1.9' fill='none' stroke-linecap='round' stroke-linejoin='round'/></svg>") center/13px no-repeat;
}
[data-theme="warm"] .checks li::before { background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'><path d='M4 8.4l2.6 2.6L12 5.4' stroke='%230A5A67' stroke-width='1.9' fill='none' stroke-linecap='round' stroke-linejoin='round'/></svg>"); }

/* pill / badge */
.badge { display: inline-flex; align-items: center; gap: 7px; padding: 6px 13px; border-radius: 999px; font-size: 12px; font-weight: 700; letter-spacing: .04em; }
.badge--brand { background: var(--brand-soft); color: var(--brand-ink); }
.badge--ok { background: var(--ok-soft); color: var(--ok); }
.badge--ghost { background: #fff; border: 1px solid var(--line); color: var(--ink-2); }

/* ---------------- Footer ---------------- */
.ft { background: var(--ink); color: rgba(255,255,255,.7); padding: 64px 0 30px; font-size: 13px; }
.ft a { color: rgba(255,255,255,.7); transition: color .15s ease; }
.ft a:hover { color: #fff; }
.ft__top { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 40px; padding-bottom: 40px; border-bottom: 1px solid rgba(255,255,255,.12); }
.ft__brand .logo__txt b { color: #fff; }
.ft__brand .logo__txt span { color: rgba(255,255,255,.55); }
.ft__brand p { color: rgba(255,255,255,.6); font-size: 12.5px; line-height: 1.9; margin-top: 16px; max-width: 320px; }
.ft__col h4 { font-size: 12px; letter-spacing: .16em; color: rgba(255,255,255,.5); margin-bottom: 16px; font-weight: 700; }
.ft__col ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 11px; font-size: 13px; }
.ft__social { display: flex; gap: 10px; margin-top: 18px; }
.ft__social a { width: 38px; height: 38px; border-radius: 10px; background: rgba(255,255,255,.07); display: grid; place-items: center; color: #fff; transition: background .15s ease, transform .15s ease; }
.ft__social a:hover { background: rgba(255,255,255,.16); transform: translateY(-2px); }
.ft__social svg { width: 17px; height: 17px; }
.ft__bot { display: flex; justify-content: space-between; align-items: center; padding-top: 22px; font-size: 11.5px; color: rgba(255,255,255,.45); flex-wrap: wrap; gap: 8px; }
@media (max-width: 820px){ .ft__top { grid-template-columns: 1fr 1fr; gap: 32px; } .ft__brand { grid-column: 1/-1; } }

/* ---------------- Contact form ---------------- */
.form { background: #fff; border: 1px solid var(--line-soft); border-radius: var(--r-xl); padding: clamp(26px,4vw,44px); box-shadow: var(--shadow-md); }
.field { margin-bottom: 18px; }
.field label { display: block; font-size: 13px; font-weight: 700; color: var(--ink-2); margin-bottom: 8px; }
.field label .req { color: var(--warn); font-size: 11px; margin-left: 6px; }
.field input, .field textarea, .field select {
  width: 100%; padding: 13px 15px; font: inherit; font-size: 14px; color: var(--ink);
  background: var(--bg-soft); border: 1px solid var(--line); border-radius: var(--r);
  transition: border-color .15s ease, box-shadow .15s ease, background .15s ease;
}
.field input:focus, .field textarea:focus, .field select:focus { outline: none; border-color: var(--brand); background: #fff; box-shadow: 0 0 0 4px var(--brand-soft); }
.field textarea { resize: vertical; min-height: 120px; line-height: 1.8; }
.field--row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
@media (max-width: 560px){ .field--row { grid-template-columns: 1fr; } }
.form__note { font-size: 12px; color: var(--ink-mute); margin-top: 6px; }
.form__ok { text-align: center; padding: 30px 10px; }
.form__ok .ico { width: 64px; height: 64px; border-radius: 50%; background: var(--ok-soft); color: var(--ok); display: grid; place-items: center; margin: 0 auto 18px; }
.form__ok .ico svg { width: 30px; height: 30px; }

/* ---------------- Contact Form 7 ---------------- */
/* CF7が出力する .wpcf7 を、サイトのフォームデザインに合わせて整える */
#contact .wpcf7 {
  background: #fff;
  border: 1px solid var(--line-soft);
  border-radius: var(--r-xl);
  padding: clamp(26px,4vw,44px);
  box-shadow: var(--shadow-md);
}

/* 各項目（CF7はラベルごとに <p> で囲む） */
#contact .wpcf7-form p {
  margin: 0 0 18px;
}

/* ラベル文字（「氏名」などの見出し） */
#contact .wpcf7-form label {
  display: block;
  font-size: 13px;
  font-weight: 700;
  color: var(--ink-2);
  margin-bottom: 8px;
}

/* 入力欄・テキストエリア・セレクト */
#contact .wpcf7-form input[type="text"],
#contact .wpcf7-form input[type="email"],
#contact .wpcf7-form input[type="tel"],
#contact .wpcf7-form input[type="url"],
#contact .wpcf7-form select,
#contact .wpcf7-form textarea {
  width: 100%;
  margin-top: 8px;
  padding: 13px 15px;
  font: inherit;
  font-size: 14px;
  color: var(--ink);
  background: var(--bg-soft);
  border: 1px solid var(--line);
  border-radius: var(--r);
  transition: border-color .15s ease, box-shadow .15s ease, background .15s ease;
}

#contact .wpcf7-form input:focus,
#contact .wpcf7-form select:focus,
#contact .wpcf7-form textarea:focus {
  outline: none;
  border-color: var(--brand);
  background: #fff;
  box-shadow: 0 0 0 4px var(--brand-soft);
}

#contact .wpcf7-form textarea {
  resize: vertical;
  min-height: 120px;
  line-height: 1.8;
}

/* 送信ボタン（サイトの btn--primary と同じ見た目） */
#contact .wpcf7-form input[type="submit"] {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 13px 30px;
  border: none;
  border-radius: 999px;
  font-size: 14.5px;
  font-weight: 700;
  letter-spacing: .04em;
  color: var(--on-brand);
  background: var(--brand);
  box-shadow: var(--shadow-brand);
  cursor: pointer;
  transition: transform .14s ease, background .16s ease;
}
#contact .wpcf7-form input[type="submit"]:hover {
  background: var(--brand-ink);
  transform: translateY(-2px);
}

/* 送信中のスピナー位置調整 */
#contact .wpcf7-spinner {
  margin: 0 0 0 12px;
  vertical-align: middle;
}

/* バリデーション（未入力などのエラー表示） */
#contact .wpcf7-not-valid-tip {
  display: block;
  margin-top: 6px;
  font-size: 12px;
  color: var(--warn);
}
#contact .wpcf7-form input.wpcf7-not-valid,
#contact .wpcf7-form textarea.wpcf7-not-valid {
  border-color: var(--warn);
}

/* 送信結果メッセージ（成功・失敗の帯） */
#contact .wpcf7-response-output {
  margin: 18px 0 0;
  padding: 12px 16px;
  border-radius: var(--r);
  font-size: 13px;
  line-height: 1.6;
}
#contact .wpcf7 form.sent .wpcf7-response-output {
  border: 1px solid var(--ok);
  background: var(--ok-soft);
  color: var(--ok);
}
#contact .wpcf7 form.invalid .wpcf7-response-output,
#contact .wpcf7 form.failed .wpcf7-response-output {
  border: 1px solid var(--warn);
  color: var(--warn);
}

/* ---------------- Motion ---------------- */
.reveal { opacity: 1; transform: none; }
@media (prefers-reduced-motion: no-preference) {
  .js-anim .reveal:not(.in) { opacity: 0; transform: translateY(16px); }
  .js-anim .reveal { transition: opacity .6s ease, transform .6s cubic-bezier(.22,.61,.36,1); }
  .js-anim .reveal.d1 { transition-delay: .07s; }
  .js-anim .reveal.d2 { transition-delay: .14s; }
  .js-anim .reveal.d3 { transition-delay: .21s; }
}

/* ---------------- Mobile menu ---------------- */
.mnav { position: fixed; inset: 0; z-index: 70; background: rgba(14,27,46,.42); opacity: 0; pointer-events: none; transition: opacity .2s ease; }
.mnav.open { opacity: 1; pointer-events: auto; }
.mnav__panel { position: absolute; top: 0; right: 0; height: 100%; width: min(82vw, 340px); background: #fff; padding: 26px 24px; transform: translateX(100%); transition: transform .28s cubic-bezier(.4,0,.2,1); display: flex; flex-direction: column; gap: 6px; box-shadow: var(--shadow-lg); }
.mnav.open .mnav__panel { transform: none; }
.mnav__panel a { padding: 15px 8px; font-size: 16px; font-weight: 600; color: var(--ink); border-bottom: 1px solid var(--line-soft); }
.mnav__panel a:last-of-type { border-bottom: 0; }
.mnav__close { align-self: flex-end; width: 40px; height: 40px; border-radius: 10px; display: grid; place-items: center; color: var(--ink); margin-bottom: 8px; }
.mnav__cta { margin-top: 18px; display: flex; flex-direction: column; gap: 10px; }

/* ---- Hero ---- */
.hero { padding-top: clamp(52px,7vw,92px); padding-bottom: clamp(60px,7vw,104px); overflow: hidden; }
.hero__grid { display: grid; grid-template-columns: 1.06fr .94fr; gap: clamp(34px,5vw,72px); align-items: center; }
.hero h1 { margin-bottom: 22px; }
.hero .lead { max-width: 520px; }
.hero__btns { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 32px; }
.hero__meta { display: flex; gap: 16px 26px; flex-wrap: wrap; margin-top: 30px; color: var(--ink-mute); font-size: 12.5px; }
.hero__meta span { display: inline-flex; align-items: center; gap: 7px; }
.hero__meta span::before { content: ""; width: 6px; height: 6px; border-radius: 9px; background: var(--brand); }
@media (max-width: 880px){ .hero__grid { grid-template-columns: 1fr; } .hero__art { order: -1; } }

.art-wrap { position: relative; }
.art-card { background: linear-gradient(160deg,#fff,var(--bg-tint)); border: 1px solid var(--line-soft); border-radius: var(--r-xl); padding: 22px; box-shadow: var(--shadow-lg); }
.float { position: absolute; background: #fff; border: 1px solid var(--line-soft); border-radius: 14px; padding: 11px 14px; box-shadow: var(--shadow-md); display: flex; gap: 10px; align-items: center; }
.float b { font-size: 12.5px; color: var(--ink); display: block; white-space: nowrap; }
.float small { font-size: 11px; color: var(--ink-mute); white-space: nowrap; }
.float__ico { width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center; flex-shrink: 0; }
.float__ico svg { width: 17px; height: 17px; }

/* ---- Service split ---- */
.svc { display: flex; flex-direction: column; padding: 0; overflow: hidden; border-top: 3px solid var(--brand); }
.svc__top { padding: 32px 32px 0; }
.svc__head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 18px; }
.svc h3 { font-size: 22px; margin-bottom: 12px; }
.svc p { font-size: 14px; line-height: 1.9; }
.svc__foot { margin-top: 26px; padding: 18px 32px; border-top: 1px solid var(--line-soft); display: flex; justify-content: space-between; align-items: center; color: var(--brand-ink); font-weight: 700; font-size: 14.5px; }
.svc__foot svg { width: 20px; height: 20px; transition: transform .16s ease; }
.svc:hover .svc__foot svg { transform: translateX(4px); }

/* ---- Two-column layout ---- */
.split { display: grid; grid-template-columns: .9fr 1.1fr; gap: clamp(32px,5vw,64px); align-items: start; }
.split--center { align-items: center; }
.split--rev > :first-child { order: 2; }
@media (max-width: 880px){ .split, .split--rev { grid-template-columns: 1fr; } .split--rev > :first-child { order: 0; } }

/* ---- Works ---- */
.work-card { padding: 0; overflow: hidden; display: flex; flex-direction: column; }
.work-card__cover { aspect-ratio: 16/10; border-bottom: 1px solid var(--line-soft); background: var(--bg-soft); overflow: hidden; }
.work-card__cover img { width: 100%; height: 100%; object-fit: cover; display: block; }
.work-card__body { padding: 20px 22px 22px; display: flex; flex-direction: column; gap: 7px; }
.work-card__tag { font-size: 12px; color: var(--brand-ink); font-weight: 700; letter-spacing: .06em; }
.work-card__title { font-size: 16px; color: var(--ink); font-weight: 700; }
.work-card__desc { font-size: 13px; color: var(--ink-mute); }
.work-card__more { margin-top: 6px; font-size: 13px; font-weight: 700; color: var(--brand-ink); display: inline-flex; align-items: center; gap: 6px; }

/* ---- SeatFlow block ---- */
.seatflow { background: linear-gradient(135deg,var(--ink),#16263d); border-radius: var(--r-xl); padding: clamp(28px,4vw,52px); color: #fff; display: grid; grid-template-columns: 1fr 1.1fr; gap: clamp(28px,4vw,52px); align-items: center; }
.seatflow h3 { color: #fff; font-size: clamp(22px,2.4vw,28px); margin: 16px 0 12px; }
.seatflow p { color: rgba(255,255,255,.74); font-size: 14.5px; line-height: 1.9; }
.seatflow__tags { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 20px; }
.seatflow__tags span { font-size: 12.5px; font-weight: 600; padding: 7px 13px; border-radius: 999px; background: rgba(255,255,255,.09); color: #fff; }
.seatflow__shots { display: grid; grid-template-columns: 1.5fr 1fr; grid-template-rows: auto auto; gap: 12px; }
.seatflow__shots .s-main { grid-row: 1 / span 2; aspect-ratio: 4/5; border-radius: 14px; overflow: hidden; box-shadow: var(--shadow-lg); }
.seatflow__shots .s-sub { aspect-ratio: 16/10; border-radius: 14px; overflow: hidden; box-shadow: var(--shadow-md); }
.seatflow__shots .s-main img,
.seatflow__shots .s-sub img { width: 100%; height: 100%; object-fit: cover; display: block; }
@media (max-width: 820px){ .seatflow { grid-template-columns: 1fr; } }

/* ---- Profile ---- */
.profile-card { display: grid; grid-template-columns: auto 1fr; gap: clamp(24px,4vw,44px); align-items: center; padding: clamp(28px,4vw,44px); }
.profile-card__photo { width: clamp(120px,22vw,168px); aspect-ratio: 1; flex-shrink: 0; border-radius: 50%; overflow: hidden; }
.profile-card__photo img { width: 100%; height: 100%; object-fit: cover; display: block; }
@media (max-width: 600px){ .profile-card { grid-template-columns: 1fr; text-align: center; } .profile-card__photo { margin: 0 auto; } }
.soc-row { display: flex; gap: 10px; margin-top: 18px; }
.soc-row a { width: 40px; height: 40px; border-radius: 11px; display: grid; place-items: center; background: #fff; border: 1px solid var(--line); color: var(--ink-2); transition: border-color .15s, color .15s, transform .15s; }
.soc-row a:hover { border-color: var(--brand); color: var(--brand-ink); transform: translateY(-2px); }
.soc-row svg { width: 17px; height: 17px; }

/* ---- Pricing plan (AhaGate) ---- */
.plan { max-width: 720px; margin: 0 auto; background: #fff; border: 2px solid var(--brand); border-radius: var(--r-xl); overflow: hidden; box-shadow: var(--shadow-lg); }
.plan__head { background: linear-gradient(135deg,var(--brand),var(--brand-ink)); color: #fff; padding: clamp(26px,4vw,40px); text-align: center; position: relative; }
.plan__ribbon { display: inline-block; background: rgba(255,255,255,.16); color: #fff; font-size: 12px; font-weight: 700; letter-spacing: .14em; padding: 6px 16px; border-radius: 999px; margin-bottom: 16px; }
.plan__price { display: flex; align-items: baseline; justify-content: center; gap: 6px; }
.plan__price .num { font-family: var(--font-num); font-size: clamp(40px,7vw,60px); font-weight: 800; line-height: 1; }
.plan__price .per { font-size: 16px; font-weight: 600; opacity: .9; }
.plan__tax { font-size: 13px; opacity: .85; margin-top: 8px; }
.plan__body { padding: clamp(26px,4vw,40px); }
.plan__list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 12px 24px; }
@media (max-width: 560px){ .plan__list { grid-template-columns: 1fr; } }
.plan__badges { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; margin-top: 28px; padding-top: 26px; border-top: 1px solid var(--line-soft); }
.plan__cta { margin-top: 26px; display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }

/* ---- Worries ---- */
.worry { display: flex; gap: 14px; align-items: flex-start; background: #fff; border: 1px solid var(--line-soft); border-radius: var(--r); padding: 20px 22px; box-shadow: var(--shadow-xs); }
.worry__q { flex-shrink: 0; width: 30px; height: 30px; border-radius: 8px; background: var(--warn-soft); color: var(--warn); display: grid; place-items: center; font-weight: 800; font-family: var(--font-num); font-size: 15px; }
.worry p { font-size: 14px; color: var(--ink-2); line-height: 1.7; }

/* ---- Feature rows (alternating) ---- */
.featrow { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(28px,5vw,64px); align-items: center; }
.featrow + .featrow { margin-top: clamp(36px,5vw,64px); }
.featrow:nth-child(even) > .featrow__media { order: 2; }
@media (max-width: 820px){ .featrow { grid-template-columns: 1fr; } .featrow:nth-child(even) > .featrow__media { order: 0; } }
.featrow__media { background: var(--bg-soft); border: 1px solid var(--line-soft); border-radius: var(--r-lg); padding: 24px; }

/* ---- Numbered steps / flow ---- */
.flow { display: grid; gap: 14px; }
.flow--7 { grid-template-columns: repeat(7,1fr); }
.flow--8 { grid-template-columns: repeat(4,1fr); }
@media (max-width: 940px){ .flow--7 { grid-template-columns: repeat(2,1fr); } }
@media (max-width: 760px){ .flow--8 { grid-template-columns: repeat(2,1fr); } }
@media (max-width: 480px){ .flow--7, .flow--8 { grid-template-columns: 1fr; } }
.step { background: #fff; border: 1px solid var(--line-soft); border-radius: var(--r); padding: 20px 16px; box-shadow: var(--shadow-xs); position: relative; }
.step__no { font-family: var(--font-num); font-size: 12px; font-weight: 700; letter-spacing: .12em; color: var(--brand-ink); display: inline-flex; align-items: center; gap: 8px; margin-bottom: 12px; }
.step__no b { width: 26px; height: 26px; border-radius: 8px; background: var(--brand-soft); display: grid; place-items: center; }
.step__ico { width: 38px; height: 38px; border-radius: 10px; background: var(--bg-soft); color: var(--ink); display: grid; place-items: center; margin-bottom: 12px; }
.step__ico svg { width: 20px; height: 20px; }
.step h4 { font-size: 14.5px; margin-bottom: 6px; }
.step p { font-size: 12px; color: var(--ink-mute); line-height: 1.7; }

/* ---- Support tag grid ---- */
.tags-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 12px; }
@media (max-width: 720px){ .tags-grid { grid-template-columns: repeat(2,1fr); } }
@media (max-width: 460px){ .tags-grid { grid-template-columns: 1fr; } }
.tag-item { display: flex; gap: 11px; align-items: center; background: #fff; border: 1px solid var(--line-soft); border-radius: var(--r); padding: 16px 18px; font-size: 14px; font-weight: 600; color: var(--ink); box-shadow: var(--shadow-xs); }
.tag-item__ico { width: 34px; height: 34px; border-radius: 9px; background: var(--brand-soft); color: var(--brand-ink); display: grid; place-items: center; flex-shrink: 0; }
.tag-item__ico svg { width: 18px; height: 18px; }

/* ---- Note box ---- */
.note { background: var(--bg-soft); border-left: 3px solid var(--brand); border-radius: 10px; padding: 18px 20px; font-size: 13.5px; line-height: 1.9; color: var(--ink-3); }
.note strong { color: var(--ink); }
.note--warn { background: #FFFDF6; border-left-color: var(--gold); border: 1px solid #EFE2BD; border-left: 3px solid var(--gold); }

/* ---- CTA band ---- */
.cta-band { background: linear-gradient(135deg,var(--ink),#16263d); color: #fff; }
.cta-band__in { display: grid; grid-template-columns: 1.2fr .8fr; gap: 44px; align-items: center; }
.cta-band h2 { color: #fff; }
.cta-band p { color: rgba(255,255,255,.72); margin-top: 14px; font-size: 14.5px; }
.cta-band__btns { display: flex; flex-direction: column; gap: 10px; }
@media (max-width: 720px){ .cta-band__in { grid-template-columns: 1fr; } }
.on-ink .btn--ghost { background: rgba(255,255,255,.06); color: #fff; border-color: rgba(255,255,255,.24); box-shadow: none; }
.on-ink .btn--ghost:hover { border-color: rgba(255,255,255,.6); background: rgba(255,255,255,.12); }

/* ---- Service column lists ---- */
.svc-col { padding: 32px; }
.svc-col__head { display: flex; align-items: center; gap: 14px; margin-bottom: 20px; }
.svc-col__head h3 { font-size: 20px; }

/* ---- Issues chips ---- */
.issue { display: flex; gap: 12px; align-items: center; background: #fff; border: 1px solid var(--line-soft); border-radius: var(--r); padding: 16px 18px; box-shadow: var(--shadow-xs); font-size: 14px; font-weight: 600; color: var(--ink-2); }
.issue__ico { width: 32px; height: 32px; border-radius: 8px; background: var(--warn-soft); color: var(--warn); display: grid; place-items: center; flex-shrink: 0; }
.issue__ico svg { width: 17px; height: 17px; }

/* ---- Accordion ---- */
.acc { max-width: 800px; margin: 0 auto; }
.acc__item { border-bottom: 1px solid var(--line-soft); }
.acc__item:first-child { border-top: 1px solid var(--line-soft); }
.acc__q { width: 100%; display: flex; gap: 14px; align-items: center; padding: 22px 4px; text-align: left; font-size: 15px; font-weight: 600; color: var(--ink); }
.acc__q .mk { color: var(--brand); font-family: var(--font-num); font-weight: 800; }
.acc__q .tg { margin-left: auto; width: 22px; height: 22px; flex-shrink: 0; transition: transform .2s ease; color: var(--ink-mute); }
.acc__item.open .acc__q .tg { transform: rotate(180deg); }
.acc__a { display: grid; grid-template-rows: 0fr; transition: grid-template-rows .25s ease; }
.acc__item.open .acc__a { grid-template-rows: 1fr; }
.acc__a > div { overflow: hidden; }
.acc__a p { padding: 0 4px 22px 40px; font-size: 14px; line-height: 1.95; }

/* reveal stagger helpers */
.reveal.d1 { transition-delay: .06s; }
.reveal.d2 { transition-delay: .12s; }
.reveal.d3 { transition-delay: .18s; }

/* ---- Testimonials / Voice ---- */
.voice-feature { display: grid; grid-template-columns: minmax(220px, 300px) 1fr; gap: clamp(24px,4vw,48px); align-items: center; padding: clamp(24px,4vw,40px); }
.voice-feature__media { aspect-ratio: 4/5; border-radius: var(--r-lg); overflow: hidden; background: var(--bg-soft); }
.voice-feature__media img { width: 100%; height: 100%; object-fit: cover; display: block; }
@media (max-width: 760px){ .voice-feature { grid-template-columns: 1fr; justify-items: center; text-align: center; } .voice-feature__media { width: 100%; max-width: 280px; aspect-ratio: 1; } }
.voice-feature__body { min-width: 0; }
.voice-mark { font-family: Georgia, serif; font-size: 56px; line-height: .6; color: var(--brand); opacity: .5; margin-bottom: 10px; display: block; }
.voice-quote { font-size: clamp(16px,1.7vw,20px); line-height: 1.85; color: var(--ink); font-weight: 600; margin: 0; }
.voice-quote em { font-style: normal; background: linear-gradient(transparent 62%, var(--brand-soft) 62%); padding: 0 2px; }
.voice-meta { display: flex; align-items: center; gap: 12px; margin-top: 22px; flex-wrap: wrap; }
.voice-meta b { font-size: 15px; color: var(--ink); }
.voice-meta span { font-size: 12.5px; color: var(--ink-mute); }
.voice-meta .badge { margin-left: auto; }
@media (max-width: 760px){ .voice-meta { justify-content: center; } .voice-meta .badge { margin-left: 0; } }
.voice-cards { display: grid; grid-template-columns: repeat(3,1fr); gap: 18px; margin-top: 22px; }
@media (max-width: 820px){ .voice-cards { grid-template-columns: 1fr; } }
.voice-card { background: #fff; border: 1px solid var(--line-soft); border-radius: var(--r-lg); padding: 24px; box-shadow: var(--shadow-xs); display: flex; flex-direction: column; gap: 14px; }
.voice-card__q { font-size: 14px; line-height: 1.85; color: var(--ink-2); font-weight: 600; }
.voice-card__who { display: flex; align-items: center; gap: 10px; margin-top: auto; }
.voice-card__ava { width: 38px; height: 38px; border-radius: 50%; overflow: hidden; flex-shrink: 0; background: var(--bg-soft); }
.voice-card__who b { font-size: 13px; color: var(--ink); display: block; }
.voice-card__who span { font-size: 11.5px; color: var(--ink-mute); }
.voice-stars { color: var(--brand); letter-spacing: 2px; font-size: 13px; }

/* ============================================================
   AhaGate toB (育成BPO) components
   ============================================================ */

/* audience banner */
.audience { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; justify-content: center; background: var(--brand-soft); border: 1px solid rgba(15,122,139,.18); border-radius: var(--r-lg); padding: 18px 24px; }
.audience__label { font-size: 12px; font-weight: 700; letter-spacing: .14em; color: var(--brand-ink); }
.audience__items { display: flex; flex-wrap: wrap; gap: 8px 10px; }
.audience__items span { font-size: 13px; font-weight: 600; color: var(--ink-2); background: #fff; border: 1px solid var(--line); border-radius: 999px; padding: 7px 14px; }

/* value compare (vs 自社育成 / eラーニング) */
.compare { display: grid; grid-template-columns: repeat(3,1fr); gap: 18px; }
@media (max-width: 820px){ .compare { grid-template-columns: 1fr; } }
.compare__col { border-radius: var(--r-lg); padding: 28px; border: 1px solid var(--line-soft); background: #fff; box-shadow: var(--shadow-xs); }
.compare__col--bad { background: var(--bg-soft); }
.compare__col h4 { font-size: 15px; margin-bottom: 16px; display: flex; align-items: center; gap: 9px; }
.compare__col h4 .dot { width: 9px; height: 9px; border-radius: 50%; flex-shrink: 0; }
.compare__col--best { border: 2px solid var(--brand); box-shadow: var(--shadow-md); position: relative; }
.compare__tag { position: absolute; top: -12px; left: 24px; background: var(--brand); color: #fff; font-size: 11px; font-weight: 700; letter-spacing: .12em; padding: 5px 14px; border-radius: 999px; }
.compare ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 12px; }
.compare li { display: flex; gap: 10px; align-items: flex-start; font-size: 13.5px; line-height: 1.7; color: var(--ink-2); }
.compare li svg { width: 18px; height: 18px; flex-shrink: 0; margin-top: 2px; }
.compare li.no { color: var(--ink-mute); }
.compare li.no svg { color: #C0432F; }
.compare li.yes svg { color: var(--brand); }

/* service detail cards (numbered, large) */
.svc-detail { display: grid; gap: 20px; }
.svc-detail__item { display: grid; grid-template-columns: 64px 1fr; gap: 22px; background: #fff; border: 1px solid var(--line-soft); border-radius: var(--r-lg); padding: 28px 30px; box-shadow: var(--shadow-xs); align-items: start; transition: box-shadow .18s ease, border-color .18s ease; }
.svc-detail__item:hover { box-shadow: var(--shadow-md); border-color: var(--line); }
.svc-detail__no { width: 64px; height: 64px; border-radius: 16px; background: linear-gradient(135deg,var(--brand),var(--brand-ink)); color: #fff; display: grid; place-items: center; font-family: var(--font-num); font-size: 22px; font-weight: 800; box-shadow: var(--shadow-brand); }
.svc-detail__body h3 { font-size: 19px; margin-bottom: 8px; display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.svc-detail__body > p { font-size: 14px; line-height: 1.9; margin-bottom: 14px; }
.svc-detail__chips { display: flex; flex-wrap: wrap; gap: 8px; }
.svc-detail__chips span { font-size: 12.5px; font-weight: 600; color: var(--ink-2); background: var(--bg-soft); border: 1px solid var(--line-soft); border-radius: 8px; padding: 7px 12px; }
@media (max-width: 560px){ .svc-detail__item { grid-template-columns: 1fr; gap: 16px; } .svc-detail__no { width: 52px; height: 52px; font-size: 18px; } }

/* monthly report mock */
.report { background: #fff; border: 1px solid var(--line-soft); border-radius: var(--r-lg); overflow: hidden; box-shadow: var(--shadow-md); }
.report__bar { background: var(--ink); color: #fff; padding: 16px 22px; display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.report__bar b { font-size: 14px; }
.report__bar span { font-size: 11.5px; color: rgba(255,255,255,.6); }
.report__kpis { display: grid; grid-template-columns: repeat(4,1fr); gap: 1px; background: var(--line-soft); }
@media (max-width: 620px){ .report__kpis { grid-template-columns: repeat(2,1fr); } }
.report__kpi { background: #fff; padding: 18px 20px; }
.report__kpi small { font-size: 11px; color: var(--ink-mute); display: block; margin-bottom: 6px; }
.report__kpi b { font-family: var(--font-num); font-size: 24px; color: var(--ink); font-weight: 800; }
.report__kpi b .u { font-size: 13px; font-weight: 600; color: var(--ink-mute); margin-left: 3px; }
.report__table { width: 100%; border-collapse: collapse; }
.report__table th, .report__table td { text-align: left; padding: 13px 20px; font-size: 13px; border-top: 1px solid var(--line-soft); }
.report__table th { background: var(--bg-soft); color: var(--ink-mute); font-weight: 700; font-size: 11.5px; letter-spacing: .04em; }
.report__table td { color: var(--ink-2); }
.report__table tr td:first-child { font-weight: 700; color: var(--ink); }
.r-pill { display: inline-flex; align-items: center; gap: 6px; font-size: 11.5px; font-weight: 700; padding: 4px 10px; border-radius: 999px; }
.r-pill--ok { background: var(--ok-soft); color: var(--ok); }
.r-pill--warn { background: #FBEFE7; color: #C25B2A; }
.r-pill--mid { background: #FFF7E6; color: #B5841B; }
.report__foot { padding: 14px 22px; font-size: 11.5px; color: var(--ink-mute); border-top: 1px solid var(--line-soft); background: var(--bg-soft); }

/* PR review timeline */
.prflow { display: grid; grid-template-columns: repeat(5,1fr); gap: 0; position: relative; }
@media (max-width: 820px){ .prflow { grid-template-columns: 1fr; } }
.prflow__step { padding: 0 14px; text-align: center; position: relative; }
.prflow__dot { width: 46px; height: 46px; border-radius: 50%; background: #fff; border: 2px solid var(--brand); color: var(--brand-ink); display: grid; place-items: center; margin: 0 auto 14px; position: relative; z-index: 2; }
.prflow__dot svg { width: 22px; height: 22px; }
.prflow__step:not(:last-child)::after { content: ""; position: absolute; top: 23px; left: 50%; width: 100%; height: 2px; background: var(--brand-2); opacity: .4; z-index: 1; }
@media (max-width: 820px){ .prflow__step:not(:last-child)::after { left: 23px; top: 46px; width: 2px; height: 100%; } .prflow__step { text-align: left; display: grid; grid-template-columns: 46px 1fr; gap: 16px; padding: 0 0 26px; } .prflow__dot { margin: 0; } }
.prflow__step h4 { font-size: 14.5px; margin-bottom: 6px; }
.prflow__step p { font-size: 12.5px; color: var(--ink-mute); line-height: 1.7; }

/* SERVICE flow strip (index page) */
.prflow--3 { grid-template-columns: repeat(3,1fr); }
@media (max-width: 820px){ .prflow--3 { grid-template-columns: 1fr; } }

/* ============================================================
   SeatFlow toC (バー・スナック向け売上管理アプリ) components
   ============================================================ */

/* 料金表（ワンプラン） */
.pricing3 { display: flex; justify-content: center; align-items: stretch; }
.pricing3 .pcard { max-width: 420px; width: 100%; }
.pcard { display: flex; flex-direction: column; background: #fff; border: 1px solid var(--line-soft); border-radius: var(--r-xl); padding: 30px 26px; box-shadow: var(--shadow-xs); position: relative; }
.pcard--best { border: 2px solid var(--brand); box-shadow: var(--shadow-lg); }
.pcard__tag { position: absolute; top: -13px; left: 26px; background: var(--brand); color: #fff; font-size: 11.5px; font-weight: 700; letter-spacing: .1em; padding: 6px 15px; border-radius: 999px; }
.pcard__name { font-size: 15px; font-weight: 700; color: var(--ink-2); }
.pcard__price { display: flex; align-items: baseline; gap: 4px; margin: 14px 0 2px; }
.pcard__price .num { font-family: var(--font-num); font-size: clamp(30px,4vw,38px); font-weight: 800; color: var(--ink); }
.pcard__price .per { font-size: 13px; font-weight: 600; color: var(--ink-mute); }
.pcard__sub { font-size: 12px; color: var(--ink-mute); margin-bottom: 20px; }
.pcard__list { list-style: none; margin: 0 0 24px; padding: 18px 0 0; border-top: 1px solid var(--line-soft); display: flex; flex-direction: column; gap: 11px; flex: 1; }
.pcard__list li { display: flex; gap: 9px; align-items: flex-start; font-size: 13.5px; color: var(--ink-2); line-height: 1.6; }
.pcard__list li::before {
  content: ""; flex-shrink: 0; width: 17px; height: 17px; margin-top: 2px; border-radius: 50%;
  background: var(--brand-soft) url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'><path d='M4 8.4l2.6 2.6L12 5.4' stroke='%232563EB' stroke-width='1.9' fill='none' stroke-linecap='round' stroke-linejoin='round'/></svg>") center/12px no-repeat;
}
.pcard__list li.muted { color: var(--ink-mute); }

/* 機能比較テーブル */
.cmp-table { width: 100%; border-collapse: collapse; background: #fff; border: 1px solid var(--line-soft); border-radius: var(--r-lg); overflow: hidden; box-shadow: var(--shadow-xs); }
.cmp-table th, .cmp-table td { padding: 14px 18px; font-size: 13.5px; border-top: 1px solid var(--line-soft); text-align: center; }
.cmp-table th { background: var(--bg-soft); color: var(--ink-mute); font-size: 12px; font-weight: 700; letter-spacing: .04em; }
.cmp-table td:first-child, .cmp-table th:first-child { text-align: left; color: var(--ink-2); font-weight: 600; }
.cmp-table tr:first-child th, .cmp-table tr:first-child td { border-top: 0; }
.cmp-table td.ok { color: var(--brand); font-weight: 800; }
.cmp-table td.no { color: var(--ink-mute); }
.cmp-table .col-best { background: var(--brand-soft); color: var(--brand-ink); font-weight: 700; }

/* Before / After */
.ba { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
@media (max-width: 700px){ .ba { grid-template-columns: 1fr; } }
.ba__box { background: #fff; border: 1px solid var(--line-soft); border-radius: var(--r-lg); padding: 24px; box-shadow: var(--shadow-xs); }
.ba__box--after { border-color: var(--brand); }
.ba__label { display: inline-flex; font-size: 11.5px; font-weight: 700; letter-spacing: .1em; padding: 5px 13px; border-radius: 999px; margin-bottom: 14px; background: var(--bg-soft); color: var(--ink-mute); }
.ba__box--after .ba__label { background: var(--brand-soft); color: var(--brand-ink); }
.ba__box p { font-size: 14px; line-height: 1.85; color: var(--ink-2); }

/* アプリ画面スクリーンショット表示 */
.shot { border-radius: var(--r-lg); overflow: hidden; background: #fff; box-shadow: var(--shadow-sm); }
.shot img { width: 100%; height: 100%; object-fit: cover; object-position: top; display: block; }
.shot--tall { aspect-ratio: 3 / 4; }
.shot--wide { aspect-ratio: 4 / 3; }

/* LINE誘導の注記（友だち追加後のメッセージ案内） */
.line-note { display: flex; gap: 9px; align-items: flex-start; font-size: 12.5px; color: var(--ink-mute); line-height: 1.7; margin-top: 12px; }
.line-note svg { flex-shrink: 0; width: 16px; height: 16px; margin-top: 2px; color: #06C755; }
.on-ink .line-note { color: rgba(255,255,255,.6); }
.line-note b { color: var(--ink-2); }
.on-ink .line-note b { color: #fff; }
