/* ============================================================
   Boatbook LP — 共通スタイル
   設計: モバイルファースト、BEM風、CSS変数でテーマ化
   ============================================================ */

/* ===== カラートークン & 共通変数 ===== */
:root {
  --boat-primary: #0077b6;
  --boat-primary2: #00a8e8;
  --boat-dark: #023e6e;
  --boat-darker: #011d3a;
  --boat-accent: #f4a020;
  --boat-accent2: #ffc94a;
  --boat-off: #f0f7fc;
  --boat-off2: #e3f2fd;
  --boat-border: #c5dff0;
  --boat-text: #1a2e42;
  --boat-text-soft: rgba(26, 46, 66, 0.7);
  --boat-text-faint: rgba(26, 46, 66, 0.5);
  --boat-gray: #3d5670;
  --green-600: #2e7d32;
  --red-500: #ef4444;
  --red-600: #dc2626;
  --orange-100: #ffedd5;
  --orange-200: #fed7aa;
  --orange-600: #ea580c;
  --orange-700: #c2410c;
  --orange-800: #9a3412;
  --teal-100: #ccfbf1;
  --teal-600: #0d9488;
  --green-100: #dcfce7;
  --purple-100: #f3e8ff;
  --purple-600: #9333ea;
  --slate-700: #334155;
  --slate-800: #1e293b;
  --slate-900: #0f172a;

  --radius-sm: 6px;
  --radius: 12px;
  --radius-lg: 16px;
  --radius-xl: 24px;
  --radius-2xl: 32px;
  --radius-pill: 999px;

  --shadow-sm: 0 2px 4px rgba(0,0,0,0.05);
  --shadow: 0 4px 12px rgba(0,119,182,0.12);
  --shadow-lg: 0 20px 40px -12px rgba(0,119,182,0.2);
  --shadow-xl: 0 30px 60px -10px rgba(2,62,110,0.25);
  --shadow-accent: 0 12px 30px -8px rgba(244,160,32,0.35);
}

/* ===== リセット ===== */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: "Noto Sans JP", -apple-system, BlinkMacSystemFont, "Hiragino Sans", "Yu Gothic", sans-serif;
  color: var(--boat-text);
  background: #ffffff;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img, svg { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; border: 0; background: none; padding: 0; color: inherit; }
ul, ol { margin: 0; padding: 0; list-style: none; }
h1, h2, h3, h4, h5, h6 { margin: 0; font-weight: 700; line-height: 1.3; }
p { margin: 0; }
input, select, textarea { font-family: inherit; font-size: inherit; }

/* ===== 汎用ユーティリティ ===== */
.container { width: 100%; margin: 0 auto; padding: 0 20px; }
.container--xl { max-width: 1280px; }
.container--lg { max-width: 1100px; }
.container--md { max-width: 880px; }
.container--sm { max-width: 720px; }
.text-center { text-align: center; }
.serif { font-family: "Noto Serif JP", "Yu Mincho", serif; }
@media (min-width: 1024px) {
  .container { padding: 0 32px; }
}

/* ===== ボタン ===== */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 12px 24px;
  border-radius: var(--radius-pill);
  font-weight: 700;
  font-size: 0.95rem;
  transition: all 0.2s ease;
  white-space: nowrap;
  border: 2px solid transparent;
  cursor: pointer;
  text-decoration: none;
}
.btn--lg { padding: 16px 32px; font-size: 1rem; }
.btn--xl { padding: 18px 36px; font-size: 1.1rem; font-weight: 900; }
.btn--block { display: flex; width: 100%; }
.btn--primary { background: var(--boat-primary); color: #fff; }
.btn--primary:hover { background: var(--boat-dark); }
.btn--accent { background: var(--boat-accent); color: var(--boat-dark); font-weight: 900; box-shadow: var(--shadow-accent); }
.btn--accent:hover { background: var(--boat-accent2); transform: scale(1.03); }
.btn--dark { background: var(--boat-dark); color: #fff; }
.btn--dark:hover { background: var(--boat-darker); }
.btn--outline { background: #fff; border-color: var(--boat-primary); color: var(--boat-primary); }
.btn--outline:hover { background: var(--boat-off); }
.btn--outline-white { background: transparent; border-color: rgba(255,255,255,0.4); color: #fff; }
.btn--outline-white:hover { background: rgba(255,255,255,0.1); }
.btn--ghost { background: rgba(255,255,255,0.1); color: #fff; border-color: rgba(255,255,255,0.25); }
.btn--ghost:hover { background: rgba(255,255,255,0.2); }
.btn--subtle { background: var(--boat-off); color: var(--boat-dark); }
.btn--subtle:hover { background: var(--boat-border); }

/* ===== ラベル・バッジ ===== */
.badge {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 6px 14px;
  border-radius: var(--radius-pill);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.05em;
}
.badge--primary { background: rgba(0,119,182,0.1); color: var(--boat-primary); }
.badge--accent { background: rgba(244,160,32,0.15); color: var(--boat-accent); }
.badge--off { background: var(--boat-off2); color: var(--boat-primary); }

/* ===== ナビゲーション ===== */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 50;
  background: rgba(255,255,255,0.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--boat-off);
}
.nav__inner {
  max-width: 1280px; margin: 0 auto;
  padding: 8px 20px;
  display: flex; align-items: center; justify-content: space-between;
}
.nav__brand { display: flex; align-items: center; gap: 8px; }
.nav__brand-icon { color: var(--boat-primary); font-size: 1.25rem; }
.nav__brand-text { font-size: 1.25rem; font-weight: 900; color: var(--boat-dark); letter-spacing: -0.02em; }
.nav__logo { height: 64px; width: auto; }
.nav__menu { display: none; gap: 28px; }
.nav__menu a { color: var(--boat-text-soft); font-size: 0.9rem; font-weight: 500; }
.nav__menu a:hover { color: var(--boat-primary); }
.nav__cta {
  display: none;
  background: var(--boat-primary); color: #fff;
  padding: 8px 16px;
  border-radius: var(--radius-pill);
  font-size: 0.85rem; font-weight: 700;
  align-items: center; gap: 6px;
}
.nav__cta:hover { background: var(--boat-dark); }
@media (min-width: 768px) {
  .nav__menu, .nav__cta { display: inline-flex; }
  .nav__inner { padding: 8px 32px; }
}

/* 規約ページ用シンプルナビ */
.nav--plain { position: static; background: #fff; border-bottom: 1px solid var(--boat-border); }
.nav--plain .nav__inner { padding-top: 8px; padding-bottom: 8px; }
.nav-back { color: var(--boat-primary); font-weight: 700; font-size: 0.875rem; }
.nav-back:hover { color: var(--boat-dark); }

/* ===== ヒーロー ===== */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex; align-items: center;
  padding: 96px 0 80px;
  overflow: hidden;
  background:
    radial-gradient(ellipse at top right, rgba(0,168,232,0.08) 0%, transparent 60%),
    radial-gradient(ellipse at bottom left, rgba(244,160,32,0.05) 0%, transparent 50%),
    #ffffff;
}
.hero__grid {
  display: grid; gap: 48px;
  align-items: center;
}
@media (min-width: 1024px) {
  .hero__grid { grid-template-columns: 1fr 1fr; }
}
.hero__title {
  font-family: "Noto Serif JP", serif;
  font-weight: 900;
  font-size: clamp(2rem, 5vw, 3.5rem);
  line-height: 1.25;
  letter-spacing: -0.02em;
  color: var(--boat-dark);
  margin: 24px 0;
}
.hero__hi {
  position: relative; display: inline-block;
}
.hero__hi::after {
  content: '';
  position: absolute; left: 0; right: 0; bottom: -4px;
  height: 12px;
  background: rgba(244,160,32,0.4);
  z-index: -1;
}
.hero__lead {
  font-size: 1rem;
  color: var(--boat-text-soft);
  line-height: 1.7;
  margin-bottom: 32px;
}
@media (min-width: 768px) {
  .hero__lead { font-size: 1.125rem; }
}
.hero__points { display: flex; flex-direction: column; gap: 12px; margin-bottom: 40px; }
.hero__point { display: flex; align-items: flex-start; gap: 12px; }
.hero__point-icon {
  flex-shrink: 0;
  width: 24px; height: 24px;
  background: var(--boat-primary);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  color: #fff; font-size: 0.75rem;
}
.hero__ctas { display: flex; flex-direction: column; gap: 12px; }
@media (min-width: 640px) { .hero__ctas { flex-direction: row; } }
.hero__note {
  margin-top: 20px;
  font-size: 0.875rem;
  color: var(--boat-text-faint);
}

/* アプリモックアップ */
.app-mock {
  max-width: 420px; margin: 0 auto;
  background: linear-gradient(180deg, #fff 0%, var(--boat-off) 100%);
  border-radius: var(--radius-2xl);
  overflow: hidden;
  box-shadow: var(--shadow-xl);
  position: relative;
}
.app-mock__header {
  background: linear-gradient(135deg, var(--boat-dark) 0%, var(--boat-primary) 100%);
  color: #fff;
  padding: 16px 20px;
  display: flex; align-items: center; justify-content: space-between;
}
.app-mock__brand { display: flex; align-items: center; gap: 8px; font-weight: 700; }
.app-mock__brand i { color: var(--boat-accent2); }
.app-mock__body { padding: 20px; display: flex; flex-direction: column; gap: 16px; }
.app-mock__kpis { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.app-mock__kpi { background: var(--boat-off); border-radius: 12px; padding: 12px; text-align: center; }
.app-mock__kpi-num { font-size: 1.5rem; font-weight: 900; }
.app-mock__kpi-num--primary { color: var(--boat-primary); }
.app-mock__kpi-num--accent { color: var(--boat-accent); }
.app-mock__kpi-num--dark { color: var(--boat-dark); }
.app-mock__kpi-label { font-size: 0.625rem; font-weight: 700; color: var(--boat-text-soft); margin-top: 4px; }
.app-mock__booking { background: #fff; border: 1px solid var(--boat-border); border-radius: 12px; overflow: hidden; }
.app-mock__band { height: 8px; }
.app-mock__band--ship1 { background: linear-gradient(90deg, #1a6fc4, #00a8e8); }
.app-mock__band--ship2 { background: linear-gradient(90deg, #0a8a7a, #2ec4b6); }
.app-mock__booking-body { padding: 12px; }
.app-mock__booking-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 4px; }
.app-mock__booking-name { font-weight: 700; font-size: 0.875rem; }
.app-mock__ship-pill {
  font-size: 0.625rem; font-weight: 700;
  padding: 2px 8px; border-radius: var(--radius-pill); color: #fff;
}
.app-mock__ship-pill--1 { background: var(--boat-primary); }
.app-mock__ship-pill--2 { background: var(--teal-600); }
.app-mock__booking-meta { font-size: 0.75rem; color: var(--boat-text-soft); }
.app-mock__tabs {
  border-top: 1px solid var(--boat-border);
  padding-top: 12px;
  display: flex; justify-content: space-around;
  font-size: 0.625rem; color: var(--boat-text-soft);
}
.app-mock__tab { text-align: center; }
.app-mock__tab i { display: block; font-size: 1rem; margin-bottom: 4px; }
.app-mock__tab--active i { color: var(--boat-primary); }
.app-mock__pwa-badge {
  position: absolute; top: -12px; right: -12px;
  background: var(--boat-accent); color: #fff;
  padding: 8px 16px; border-radius: var(--radius-pill);
  font-weight: 700; font-size: 0.875rem;
  box-shadow: var(--shadow);
  transform: rotate(6deg);
}

/* ===== デモへの QRコード ===== */
.demo-qr {
  display: none;                /* デフォルト非表示（スマホでは不要） */
  align-items: center;
  gap: 16px;
  margin-top: 24px;
  padding: 16px;
  background: #fff;
  border: 1px solid var(--boat-border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
}
.demo-qr__canvas {
  flex-shrink: 0;
  background: #fff;
  padding: 8px;
  border-radius: 8px;
}
.demo-qr__canvas img,
.demo-qr__canvas canvas { display: block; }
.demo-qr__caption {
  font-size: 0.875rem;
  color: var(--boat-text);
  font-weight: 700;
  line-height: 1.5;
}
.demo-qr__caption i { color: var(--boat-primary); margin-right: 4px; }
.demo-qr__note {
  display: block;
  margin-top: 4px;
  font-size: 0.75rem;
  color: var(--boat-text-soft);
  font-weight: 500;
}
@media (min-width: 1024px) {
  .demo-qr { display: flex; }   /* PCでだけ表示 */
}

/* 機能セクション末尾の大きいデモCTAブロック */
.demo-cta-block {
  margin-top: 56px;
  background: linear-gradient(135deg, var(--boat-off) 0%, #fff 100%);
  border: 1px solid var(--boat-border);
  border-radius: var(--radius-2xl);
  padding: 32px 24px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 32px;
  text-align: center;
}
.demo-cta-block__title {
  font-family: "Noto Serif JP", serif;
  font-size: 1.5rem;
  font-weight: 900;
  color: var(--boat-dark);
  margin-bottom: 12px;
}
.demo-cta-block__lead {
  font-size: 0.9rem;
  color: var(--boat-text-soft);
  margin-bottom: 20px;
}
.demo-cta-block__qr {
  background: #fff;
  border: 1px solid var(--boat-border);
  border-radius: var(--radius-lg);
  padding: 20px;
  box-shadow: var(--shadow);
  display: none;
}
.demo-cta-block__qr p {
  margin-top: 12px;
  font-size: 0.75rem;
  color: var(--boat-text-soft);
  font-weight: 700;
  line-height: 1.6;
}
.demo-cta-block__qr p i { color: var(--boat-primary); margin-right: 4px; }
.demo-qr__canvas--lg img,
.demo-qr__canvas--lg canvas { display: block; margin: 0 auto; }
@media (min-width: 768px) {
  .demo-cta-block { flex-direction: row; padding: 40px; text-align: left; }
  .demo-cta-block__main { flex: 1; }
  .demo-cta-block__qr { display: block; }
}

/* ===== Hero に実スクショ画像を出すとき（1枚） ===== */
.hero__screenshot {
  display: block;
  max-width: 420px;
  width: 100%;
  margin: 0 auto;
  border-radius: var(--radius-2xl);
  box-shadow: var(--shadow-xl);
  border: 1px solid var(--boat-border);
}

/* ===== Hero に実スクショ画像を出すとき（2枚扇状） ===== */
.hero__fan {
  position: relative;
  max-width: 480px;
  margin: 0 auto;
  padding: 30px 0;
  min-height: 560px;
  overflow: hidden;          /* スマホで枠外にはみ出さない */
}
.hero__fan-img {
  position: absolute;
  top: 30px;
  left: 50%;
  width: 60%;
  max-width: 260px;
  border-radius: var(--radius-xl);
  border: 1px solid var(--boat-border);
  transition: transform .35s ease, box-shadow .35s ease;
}
/* 後ろ側（左に倒れて回転） */
.hero__fan-img--back {
  transform: translateX(-75%) rotate(-10deg);
  box-shadow: 0 18px 36px -10px rgba(2, 62, 110, 0.25);
  z-index: 1;
  filter: brightness(0.97);
}
/* 前面（右側、強調） */
.hero__fan-img--front {
  transform: translateX(-25%) rotate(7deg);
  box-shadow: var(--shadow-xl);
  z-index: 2;
}
/* ホバーで広がる演出（PC のみ） */
@media (hover: hover) and (min-width: 768px) {
  .hero__fan:hover .hero__fan-img--back  { transform: translateX(-85%) rotate(-13deg); }
  .hero__fan:hover .hero__fan-img--front { transform: translateX(-15%) rotate(10deg); }
}
/* スマホ：もっと控えめに、両サイド見切れないよう中央寄せ */
@media (max-width: 640px) {
  .hero__fan { padding: 20px 0; min-height: 440px; }
  .hero__fan-img { width: 62%; max-width: 220px; }
  .hero__fan-img--back  { transform: translateX(-70%) rotate(-6deg); }
  .hero__fan-img--front { transform: translateX(-30%) rotate(4deg); }
}

/* ===== 機能カード：右下に小さいスマホ風サムネを傾けて配置 ===== */
.feature--with-thumb {
  position: relative;
  min-height: 220px;
  padding-bottom: 32px;
}
.feature--with-thumb::after {
  content: '';
  position: absolute;
  right: 16px;
  bottom: 16px;
  width: 80px;
  height: 144px;
  background-image: var(--shot-bg);
  background-size: cover;
  background-position: top center;
  background-repeat: no-repeat;
  border-radius: 10px;
  border: 2px solid #fff;
  box-shadow: 0 10px 24px rgba(2, 62, 110, 0.22), 0 0 0 1px rgba(0,0,0,0.04);
  transform: rotate(6deg);
  opacity: 0.95;
  pointer-events: none;
  z-index: 0;
  transition: transform .3s ease, box-shadow .3s ease;
}
/* テキスト類はサムネより前面 + サムネ分の右余白 */
.feature--with-thumb .feature__icon-wrap,
.feature--with-thumb .feature__title,
.feature--with-thumb .feature__desc {
  position: relative;
  z-index: 1;
}
.feature--with-thumb .feature__desc {
  padding-right: 104px;
}
.feature--with-thumb:hover::after {
  transform: rotate(3deg) translateY(-4px);
  box-shadow: 0 16px 32px rgba(2, 62, 110, 0.28), 0 0 0 1px rgba(0,0,0,0.04);
}

/* スマホでは少し小さく */
@media (max-width: 640px) {
  .feature--with-thumb { min-height: 200px; }
  .feature--with-thumb::after {
    right: 14px;
    bottom: 14px;
    width: 68px;
    height: 122px;
  }
  .feature--with-thumb .feature__desc {
    padding-right: 88px;
  }
}

/* ===== セクション共通 ===== */
.section { padding: 80px 0; }
@media (min-width: 1024px) { .section { padding: 112px 0; } }
.section--off { background: var(--boat-off); }
.section--gradient { background: linear-gradient(180deg, var(--boat-off) 0%, #fff 100%); }
.section--dark {
  background: linear-gradient(135deg, var(--boat-dark) 0%, var(--boat-darker) 50%, var(--boat-dark) 100%);
  color: #fff;
  position: relative;
  overflow: hidden;
}
.section--bordered { border-top: 1px solid var(--boat-border); }
.section--grid-pattern {
  background-image:
    linear-gradient(rgba(0,119,182,0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0,119,182,0.04) 1px, transparent 1px);
  background-size: 32px 32px;
}
.section__head { text-align: center; margin-bottom: 56px; }
.section__title {
  font-family: "Noto Serif JP", serif;
  font-weight: 900;
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  color: var(--boat-dark);
  margin: 16px 0;
  line-height: 1.4;
}
.section--dark .section__title { color: #fff; }
.section__lead { color: var(--boat-text-soft); }
.section--dark .section__lead { color: rgba(255,255,255,0.85); }

/* ===== 他社比較表 ===== */
.compare {
  background: #fff;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-xl);
  overflow: hidden;
}
.compare table { width: 100%; border-collapse: collapse; font-size: 0.875rem; }
.compare thead { background: var(--boat-dark); color: #fff; }
.compare th { text-align: left; padding: 16px 12px; font-weight: 700; }
.compare th:nth-child(2) { text-align: center; color: var(--boat-off); }
.compare th:nth-child(3) { text-align: center; background: var(--boat-accent); color: var(--boat-dark); }
.compare td { padding: 14px 12px; border-bottom: 1px solid var(--boat-off2); }
.compare td:nth-child(2), .compare td:nth-child(3) { text-align: center; }
.compare td:nth-child(3) { background: rgba(244,160,32,0.05); }
.compare tr:last-child td { border-bottom: 0; }
.compare td.col-first { font-weight: 700; }
.compare__yes { color: var(--green-600); font-size: 1.5rem; }
.compare__no { color: var(--boat-border); font-size: 1.5rem; }
.compare__partial { color: var(--boat-text-faint); font-size: 0.75rem; }
.compare__note { text-align: center; margin-top: 32px; color: var(--boat-text-soft); font-size: 0.875rem; }
@media (min-width: 768px) {
  .compare table { font-size: 1rem; }
  .compare th, .compare td { padding: 16px 24px; }
}

/* ===== 機能カード ===== */
.features-grid {
  display: grid; gap: 20px;
  grid-template-columns: 1fr;
}
@media (min-width: 640px) { .features-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .features-grid { grid-template-columns: repeat(3, 1fr); } }
.feature {
  background: #fff;
  border: 1px solid var(--boat-border);
  border-radius: var(--radius-lg);
  padding: 28px;
  transition: transform .2s ease, box-shadow .2s ease;
}
.feature:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.feature__icon-wrap {
  width: 48px; height: 48px;
  border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 16px;
}
.feature__icon { font-size: 1.5rem; }
.feature__title { font-size: 1.125rem; color: var(--boat-dark); margin-bottom: 8px; }
.feature__desc { font-size: 0.875rem; color: var(--boat-text-soft); line-height: 1.7; }
/* 機能ごとのアイコン色バリアント */
.feature--c-primary .feature__icon-wrap { background: rgba(0,119,182,0.1); }
.feature--c-primary .feature__icon { color: var(--boat-primary); }
.feature--c-accent .feature__icon-wrap { background: rgba(244,160,32,0.1); }
.feature--c-accent .feature__icon { color: var(--boat-accent); }
.feature--c-teal .feature__icon-wrap { background: var(--teal-100); }
.feature--c-teal .feature__icon { color: var(--teal-600); }
.feature--c-green .feature__icon-wrap { background: var(--green-100); }
.feature--c-green .feature__icon { color: var(--green-600); }
.feature--c-orange .feature__icon-wrap { background: var(--orange-100); }
.feature--c-orange .feature__icon { color: var(--orange-600); }
.feature--c-purple .feature__icon-wrap { background: var(--purple-100); }
.feature--c-purple .feature__icon { color: var(--purple-600); }

/* ===== 船長セクション ===== */
.captain {
  background: linear-gradient(135deg, var(--boat-off) 0%, #fff 50%, var(--boat-off2) 100%);
  border: 1px solid var(--boat-border);
  border-radius: var(--radius-2xl);
  padding: 32px;
  box-shadow: var(--shadow);
}
.captain__inner {
  display: flex; flex-direction: column; align-items: center;
  gap: 32px; text-align: center;
}
.captain__photo, .captain__photo-fallback {
  width: 160px; height: 160px;
  border-radius: 50%;
  border: 4px solid #fff;
  box-shadow: var(--shadow-lg);
  outline: 2px solid rgba(244,160,32,0.3);
  flex-shrink: 0;
}
.captain__photo { object-fit: cover; }
.captain__photo-fallback {
  background: linear-gradient(135deg, var(--boat-primary), var(--boat-dark));
  display: flex; align-items: center; justify-content: center;
}
.captain__photo-fallback i { font-size: 4.5rem; color: var(--boat-accent2); }
.captain__role-tag { font-size: 0.75rem; font-weight: 700; color: var(--boat-accent); letter-spacing: 0.1em; margin-bottom: 4px; }
.captain__name { font-family: "Noto Serif JP", serif; font-size: 1.5rem; font-weight: 900; color: var(--boat-dark); margin-bottom: 4px; }
.captain__role { font-size: 0.875rem; color: var(--boat-text-soft); margin-bottom: 20px; }
.captain__quote {
  padding-left: 20px;
  border-left: 4px solid var(--boat-accent);
  color: var(--boat-text);
  line-height: 1.85;
  text-align: left;
}
.captain__quote p + p { margin-top: 12px; }
@media (min-width: 768px) {
  .captain { padding: 48px; }
  .captain__inner { flex-direction: row; align-items: center; text-align: left; gap: 40px; }
  .captain__photo, .captain__photo-fallback { width: 192px; height: 192px; }
  .captain__name { font-size: 1.75rem; }
}

/* ===== 料金カード ===== */
.pricing-grid {
  display: grid; gap: 24px;
  grid-template-columns: 1fr;
}
@media (min-width: 768px) { .pricing-grid { grid-template-columns: repeat(3, 1fr); } }
.price-card {
  background: #fff;
  border: 2px solid var(--boat-border);
  border-radius: var(--radius-lg);
  padding: 28px;
  position: relative;
  transition: transform .2s ease, box-shadow .2s ease;
}
.price-card:hover { transform: translateY(-4px); }
.price-card--featured { border-color: var(--boat-accent); box-shadow: 0 30px 60px -10px rgba(244,160,32,0.3); }
.price-card__badge {
  position: absolute; top: -14px; left: 50%; transform: translateX(-50%);
  background: var(--boat-accent); color: var(--boat-dark);
  font-size: 0.75rem; font-weight: 900;
  padding: 4px 16px;
  border-radius: var(--radius-pill);
  box-shadow: var(--shadow);
}
.price-card__label { font-size: 0.875rem; font-weight: 700; color: var(--boat-text-soft); margin-bottom: 8px; }
.price-card--featured .price-card__label { color: var(--boat-accent); }
.price-card__tagline { font-family: "Noto Serif JP", serif; font-size: 1.5rem; font-weight: 900; color: var(--boat-dark); margin-bottom: 16px; }
.price-card__price-row { display: flex; align-items: flex-end; gap: 4px; margin-bottom: 24px; }
.price-card__price { font-size: 2.25rem; font-weight: 900; color: var(--boat-dark); }
.price-card__unit { font-size: 0.875rem; color: var(--boat-text-soft); padding-bottom: 4px; }
.price-card__features { font-size: 0.875rem; margin-bottom: 32px; display: flex; flex-direction: column; gap: 8px; }
.price-card__features li { display: flex; gap: 8px; align-items: flex-start; }
.price-card__features li i { margin-top: 4px; color: var(--boat-primary); }
.price-card__features li.is-off { color: var(--boat-text-faint); }
.price-card__features li.is-off i { color: var(--boat-text-faint); }
.price-card__note { font-size: 0.75rem; color: var(--boat-text-soft); text-align: center; margin-top: 12px; line-height: 1.6; }
.pricing-note { text-align: center; margin-top: 40px; font-size: 0.875rem; color: var(--boat-text-soft); }

/* ===== 導入の流れ（4ステップ） ===== */
.steps {
  display: grid;
  gap: 24px;
  grid-template-columns: 1fr;
  counter-reset: step;
  padding: 0;
  list-style: none;
}
@media (min-width: 768px)  { .steps { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1100px) { .steps { grid-template-columns: repeat(4, 1fr); gap: 18px; } }

.step {
  position: relative;
  background: #fff;
  border: 1px solid var(--boat-border);
  border-radius: var(--radius-lg);
  padding: 32px 24px 24px;
  text-align: center;
  transition: transform .2s ease, box-shadow .2s ease;
}
.step:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }

.step__num {
  position: absolute;
  top: -18px;
  left: 50%;
  transform: translateX(-50%);
  font-family: "Noto Serif JP", serif;
  font-weight: 900;
  font-size: 1.1rem;
  background: var(--boat-accent);
  color: var(--boat-dark);
  padding: 6px 14px;
  border-radius: var(--radius-pill);
  box-shadow: var(--shadow);
  letter-spacing: 0.05em;
}
.step__icon {
  width: 64px; height: 64px;
  margin: 8px auto 16px;
  background: var(--boat-off);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.75rem;
  color: var(--boat-primary);
}
.step__title {
  font-family: "Noto Serif JP", serif;
  font-size: 1.15rem;
  font-weight: 900;
  color: var(--boat-dark);
  margin-bottom: 12px;
}
.step__desc {
  font-size: 0.875rem;
  color: var(--boat-text-soft);
  line-height: 1.75;
  margin-bottom: 16px;
}
.step__duration {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  background: var(--boat-off2);
  color: var(--boat-primary);
  font-size: 0.8rem;
  font-weight: 700;
  padding: 4px 12px;
  border-radius: var(--radius-pill);
}

/* デスクトップ：ステップ間を矢印で繋ぐ */
@media (min-width: 1100px) {
  .step:not(:last-child)::after {
    content: '';
    position: absolute;
    top: 50%;
    right: -18px;
    width: 24px;
    height: 2px;
    background: var(--boat-border);
    z-index: 0;
  }
  .step:not(:last-child)::before {
    content: '';
    position: absolute;
    top: calc(50% - 4px);
    right: -18px;
    width: 0;
    height: 0;
    border-left: 8px solid var(--boat-border);
    border-top: 5px solid transparent;
    border-bottom: 5px solid transparent;
    z-index: 1;
  }
}

/* ===== FAQ ===== */
.faq { display: flex; flex-direction: column; gap: 12px; }
.faq__item {
  background: var(--boat-off);
  border-radius: var(--radius);
  overflow: hidden;
}
.faq__item summary {
  list-style: none; cursor: pointer;
  padding: 20px;
  display: flex; align-items: center; justify-content: space-between;
  font-weight: 700; color: var(--boat-dark);
}
.faq__item summary::-webkit-details-marker { display: none; }
.faq__icon { color: var(--boat-primary); transition: transform 0.2s ease; }
.faq__item[open] .faq__icon { transform: rotate(45deg); }
.faq__body { padding: 0 20px 20px; color: var(--boat-text-soft); font-size: 0.875rem; line-height: 1.85; }

/* ===== CTA / お問い合わせ ===== */
.cta__title {
  font-family: "Noto Serif JP", serif;
  font-weight: 900;
  font-size: clamp(1.75rem, 4vw, 3rem);
  line-height: 1.3;
  margin-bottom: 24px;
}
.cta__title em { color: var(--boat-accent); font-style: normal; }
.cta__lead { font-size: 1.125rem; color: rgba(255,255,255,0.8); margin-bottom: 40px; max-width: 640px; margin-left: auto; margin-right: auto; }
.cta__blur-tl { position: absolute; top: 0; right: 0; width: 384px; height: 384px; background: rgba(0,168,232,0.1); border-radius: 50%; filter: blur(80px); }
.cta__blur-bl { position: absolute; bottom: 0; left: 0; width: 384px; height: 384px; background: rgba(244,160,32,0.1); border-radius: 50%; filter: blur(80px); }

/* フォーム */
.form {
  background: #fff;
  color: var(--boat-text);
  border-radius: var(--radius-lg);
  padding: 24px;
  max-width: 640px; margin: 0 auto;
  box-shadow: var(--shadow-xl);
  text-align: left;
}
@media (min-width: 768px) { .form { padding: 40px; } }
.form__row { display: grid; gap: 16px; margin-bottom: 16px; }
@media (min-width: 640px) { .form__row--2 { grid-template-columns: 1fr 1fr; } }
.form__group { display: flex; flex-direction: column; }
.form__label { font-size: 0.875rem; font-weight: 700; color: var(--boat-dark); margin-bottom: 4px; }
.form__req { color: var(--red-500); }
.form__input, .form__select, .form__textarea {
  width: 100%;
  border: 1px solid var(--boat-border);
  border-radius: 8px;
  padding: 12px 16px;
  color: var(--boat-text);
}
.form__input:focus, .form__select:focus, .form__textarea:focus { outline: none; border-color: var(--boat-primary); }
.form__textarea { resize: vertical; min-height: 80px; }
.form__hint { font-size: 0.75rem; color: var(--boat-text-soft); margin-top: 16px; }
.form__hint a { color: var(--boat-primary); text-decoration: underline; }
/* honeypot */
.honeypot { position: absolute; left: -9999px; top: -9999px; opacity: 0; pointer-events: none; }

/* ===== 決済トラスト要素 ===== */
.trust { margin-top: 48px; padding-top: 32px; border-top: 1px solid rgba(255,255,255,0.1); }
.trust__heading { text-align: center; margin-bottom: 24px; }
.trust__heading p:first-child { font-size: 0.75rem; font-weight: 700; color: rgba(255,255,255,0.6); letter-spacing: 0.1em; margin-bottom: 12px; }
.trust__heading p:last-child { font-size: 0.875rem; color: rgba(255,255,255,0.8); }
.pay-icons { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 12px; margin-bottom: 24px; }
.pay-icon { background: #fff; border-radius: 6px; padding: 8px 12px; box-shadow: var(--shadow-sm); display: flex; align-items: center; gap: 4px; }
.pay-icon__text { font-weight: 900; font-size: 0.75rem; letter-spacing: -0.02em; }
.pay-icon__text--visa { color: #1A1F71; }
.pay-icon__text--jcb { color: #003B95; }
.pay-icon__text--amex { color: #006FCF; }
.pay-icon__text--neutral { color: var(--slate-700); }
.pay-icon__mc1 { width: 12px; height: 12px; border-radius: 50%; background: #EB001B; }
.pay-icon__mc2 { width: 12px; height: 12px; border-radius: 50%; background: #F79E1B; margin-left: -6px; }
.security-badges { display: grid; gap: 12px; max-width: 720px; margin: 0 auto; grid-template-columns: 1fr; }
@media (min-width: 640px) { .security-badges { grid-template-columns: repeat(3, 1fr); } }
.sec-badge {
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: var(--radius);
  padding: 16px;
  text-align: center;
  font-size: 0.875rem;
  color: rgba(255,255,255,0.8);
}
.sec-badge__icon { font-size: 1.5rem; color: var(--boat-accent2); margin-bottom: 8px; }
.sec-badge__title { font-weight: 700; color: #fff; margin-bottom: 4px; }
.sec-badge__desc { font-size: 0.75rem; color: rgba(255,255,255,0.6); }
.trust__footer { text-align: center; margin-top: 24px; font-size: 0.75rem; color: rgba(255,255,255,0.4); }
.trust__footer a { color: rgba(255,255,255,0.6); text-decoration: underline; }
.trust__footer a:hover { color: #fff; }

/* ===== フッター ===== */
.footer { background: var(--boat-darker); color: rgba(255,255,255,0.7); padding: 40px 0; }
.footer__inner { display: flex; flex-direction: column; gap: 16px; align-items: center; justify-content: space-between; }
@media (min-width: 768px) { .footer__inner { flex-direction: row; } }
.footer__brand { display: flex; align-items: center; gap: 8px; }
.footer__brand i { color: var(--boat-accent); }
.footer__brand-name { font-weight: 900; color: #fff; }
.footer__brand-tag { font-size: 0.75rem; }
.footer__logo { height: 48px; width: auto; }
.footer__links { display: flex; flex-wrap: wrap; gap: 20px; font-size: 0.75rem; align-items: center; justify-content: center; }
.footer__links a:hover { color: #fff; }
.footer__copy { text-align: center; font-size: 0.75rem; color: rgba(255,255,255,0.4); margin-top: 32px; }

/* ===== お問い合わせ完了画面（contact.php）===== */
.message-card {
  background: #fff;
  border-radius: var(--radius-2xl);
  box-shadow: var(--shadow-xl);
  padding: 32px;
  max-width: 600px; margin: 0 auto;
}
@media (min-width: 768px) { .message-card { padding: 56px; } }
.message-card__icon-wrap {
  width: 80px; height: 80px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto 24px;
}
.message-card__icon-wrap--success { background: var(--green-100); }
.message-card__icon-wrap--success i { color: var(--green-600); font-size: 3rem; }
.message-card__icon-wrap--error { background: #fee2e2; }
.message-card__icon-wrap--error i { color: var(--red-600); font-size: 3rem; }
.message-card__title {
  font-family: "Noto Serif JP", serif;
  font-size: 1.75rem; font-weight: 900;
  text-align: center; color: var(--boat-dark);
  margin-bottom: 16px;
}
.message-card__body { color: var(--boat-text-soft); line-height: 1.8; margin-bottom: 24px; text-align: center; }
.error-list {
  background: #fee2e2;
  border: 1px solid #fecaca;
  border-radius: var(--radius);
  padding: 16px;
  margin-bottom: 24px;
  color: #b91c1c;
  font-size: 0.875rem;
}
.error-list li { padding: 2px 0; }
.message-info {
  background: var(--boat-off);
  border-radius: var(--radius);
  padding: 16px;
  font-size: 0.875rem;
  text-align: left;
  margin-bottom: 24px;
}
.message-info p:first-child { color: var(--boat-text-soft); margin-bottom: 8px; }
.message-info ul { list-style: disc; padding-left: 20px; font-size: 0.75rem; color: var(--boat-text-soft); }
.message-info ul li { margin-bottom: 4px; }
.message-info a { color: var(--boat-primary); text-decoration: underline; }
.message-info dl { display: grid; grid-template-columns: auto 1fr; gap: 8px; font-size: 0.75rem; }
.message-info dt { font-weight: 700; }

/* ===== 規約類（legal-content）===== */
.legal-wrap {
  background: #fff;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  padding: 24px;
}
@media (min-width: 768px) { .legal-wrap { padding: 56px; } }
.legal-title { font-family: "Noto Serif JP", serif; font-size: clamp(1.5rem, 4vw, 2.25rem); font-weight: 900; color: var(--boat-dark); margin-bottom: 8px; }
.legal-lead { color: var(--boat-text-soft); margin-top: 16px; }
.legal-content h2 { font-family: "Noto Serif JP", serif; font-weight: 900; color: var(--boat-dark); font-size: 1.25rem; margin-top: 40px; margin-bottom: 16px; padding-bottom: 8px; border-bottom: 2px solid var(--boat-border); }
.legal-content h3 { font-weight: 700; color: var(--boat-dark); font-size: 1.05rem; margin-top: 24px; margin-bottom: 8px; }
.legal-content p, .legal-content li { color: var(--boat-text); line-height: 1.85; margin-bottom: 12px; }
.legal-content ol, .legal-content ul { padding-left: 24px; margin-bottom: 16px; }
.legal-content ol > li { list-style: decimal; margin-bottom: 6px; }
.legal-content ul > li { list-style: disc; margin-bottom: 6px; }
.legal-content a { color: var(--boat-primary); text-decoration: underline; }
.legal-content table { width: 100%; border-collapse: collapse; margin: 16px 0; }
.legal-content th, .legal-content td { border: 1px solid var(--boat-border); padding: 12px 16px; text-align: left; vertical-align: top; }
.legal-content th { background: var(--boat-off); font-weight: 700; width: 35%; color: var(--boat-dark); }
.legal-content strong { font-weight: 700; }
.legal-updated { margin-top: 48px; padding-top: 24px; border-top: 1px solid var(--boat-border); text-align: right; font-size: 0.875rem; color: var(--boat-text-soft); }
.legal-disclaimer { margin-top: 24px; padding: 16px; background: #fff7ed; border: 1px solid var(--orange-200); border-radius: var(--radius); font-size: 0.75rem; color: var(--orange-800); }
.legal-page-main { max-width: 880px; margin: 0 auto; padding: 40px 20px 64px; }
@media (min-width: 1024px) { .legal-page-main { padding: 64px 32px 96px; } }
.legal-page-body { background: var(--boat-off); min-height: 100vh; }

/* ===== 404ページ ===== */
.error-page {
  min-height: 100vh;
  background: linear-gradient(135deg, var(--boat-dark) 0%, var(--boat-darker) 50%, var(--boat-dark) 100%);
  color: #fff;
  display: flex; align-items: center; justify-content: center;
  padding: 20px;
}
.error-page__inner { max-width: 480px; text-align: center; }
.error-page__icon { font-size: 6rem; margin-bottom: 16px; }
.error-page__code { font-family: "Noto Serif JP", serif; font-size: 4rem; font-weight: 900; color: var(--boat-accent); margin-bottom: 16px; }
.error-page__title { font-size: 1.5rem; font-weight: 700; margin-bottom: 12px; }
.error-page__lead { color: rgba(255,255,255,0.7); margin-bottom: 32px; }

/* ===== healthcheck（最小スタイル）===== */
.hc-wrap { max-width: 960px; margin: 32px auto; padding: 16px; }
.hc-header { background: linear-gradient(to right, var(--slate-800), var(--slate-900)); color: #fff; border-radius: var(--radius-lg); padding: 24px; margin-bottom: 24px; box-shadow: var(--shadow-xl); }
.hc-header h1 { font-size: 1.5rem; font-weight: 900; margin-bottom: 4px; }
.hc-header p { color: #cbd5e1; font-size: 0.875rem; }
.hc-warn { margin-top: 16px; padding: 12px; background: rgba(127,29,29,0.4); border: 1px solid #b91c1c; border-radius: var(--radius); font-size: 0.875rem; }
.hc-summary { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin-bottom: 24px; }
.hc-summary > div { border-radius: var(--radius); padding: 16px; text-align: center; border: 1px solid; }
.hc-summary__ok { background: #f0fdf4; border-color: #bbf7d0; }
.hc-summary__ok strong { color: #15803d; }
.hc-summary__warn { background: #fff7ed; border-color: var(--orange-200); }
.hc-summary__warn strong { color: var(--orange-700); }
.hc-summary__fail { background: #fef2f2; border-color: #fecaca; }
.hc-summary__fail strong { color: #b91c1c; }
.hc-summary strong { font-size: 1.875rem; font-weight: 900; display: block; }
.hc-summary span { font-size: 0.75rem; font-weight: 700; }
.hc-card { background: #fff; border-radius: var(--radius); box-shadow: var(--shadow-sm); margin-bottom: 16px; overflow: hidden; }
.hc-card__head { background: #f1f5f9; padding: 12px 20px; font-weight: 700; color: var(--slate-800); }
.hc-card table { width: 100%; font-size: 0.875rem; }
.hc-card td { padding: 12px 20px; border-top: 1px solid #f1f5f9; }
.hc-stat { padding: 4px 8px; border-radius: 4px; font-size: 0.75rem; font-weight: 700; }
.hc-stat--ok { background: var(--green-100); color: #15803d; }
.hc-stat--warn { background: var(--orange-100); color: var(--orange-700); }
.hc-stat--fail { background: #fee2e2; color: #b91c1c; }
.hc-stat--info { background: #dbeafe; color: #1d4ed8; }
.hc-card__body { padding: 20px; }
.hc-mail-form { display: flex; flex-direction: column; gap: 8px; }
@media (min-width: 640px) { .hc-mail-form { flex-direction: row; } }
.hc-mail-form input { flex: 1; border: 1px solid #cbd5e1; border-radius: 8px; padding: 8px 16px; font-size: 0.875rem; }
.hc-mail-form button { background: var(--slate-800); color: #fff; padding: 8px 20px; border-radius: 8px; font-weight: 700; font-size: 0.875rem; }
.hc-mail-form button:hover { background: var(--slate-900); }
.hc-mail-result { margin-bottom: 16px; padding: 12px; border-radius: 8px; font-size: 0.875rem; }
.hc-mail-result--ok { background: #f0fdf4; border: 1px solid #bbf7d0; color: #15803d; }
.hc-mail-result--fail { background: #fef2f2; border: 1px solid #fecaca; color: #b91c1c; }
.hc-mail-result--warn { background: #fff7ed; border: 1px solid var(--orange-200); color: var(--orange-700); }
.hc-checklist { list-style: none; padding: 0; display: flex; flex-direction: column; gap: 12px; font-size: 0.875rem; }
.hc-checklist > li { display: flex; gap: 12px; align-items: flex-start; }
.hc-checklist__num { flex-shrink: 0; width: 24px; height: 24px; background: #e2e8f0; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 0.75rem; font-weight: 700; }
.hc-checklist__num--last { background: #fecaca; color: #b91c1c; }
.hc-checklist__caption { color: var(--slate-700); font-size: 0.75rem; margin-top: 4px; display: block; }
.hc-footer { text-align: center; font-size: 0.75rem; color: var(--slate-700); margin-top: 24px; }
