/* カイエツアー — 新 HP スタイル */

:root {
  --c-bg: #f6f9fc;
  --c-text: #1f2937;
  --c-text-soft: #475569;
  --c-accent: #1d4ed8;       /* royal blue (reserve-php と同色) */
  --c-accent-dark: #1e3a8a;  /* deep navy */
  --c-accent-soft: #e0f2fe;  /* sky-100 */
  --c-border: #d6e0eb;
  --c-card: #ffffff;
  --c-monitor: #c8511c;
  --c-monitor-soft: #fbeede;
  --max: 1080px;
  --max-narrow: 760px;
  --r-md: 8px;
  --r-lg: 16px;
  --shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
  --shadow-lg: 0 6px 20px rgba(0, 0, 0, 0.08);
}

* { box-sizing: border-box; }

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

/* ─── スクロール出現アニメーション ──────────────────────── */

.reveal {
  opacity: 0;
  transform: translateY(80px) scale(0.85) rotate(-3deg);
  will-change: opacity, transform;
}
.reveal.is-revealed {
  animation: reveal-up 0.9s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}
@keyframes reveal-up {
  to { opacity: 1; transform: none; }
}
.tour-grid .reveal:nth-child(2).is-revealed { animation-delay: 0.12s; }
.tour-grid .reveal:nth-child(3).is-revealed { animation-delay: 0.24s; }
@media (prefers-reduced-motion: reduce) {
  .reveal, .reveal.is-revealed {
    opacity: 1;
    transform: none;
    animation: none;
  }
}

/* ─── PC: ホバーで大きく ─────────────────────────────────── */

@media (hover: hover) {
  .tour-card {
    transition:
      transform 0.5s cubic-bezier(0.45, 0, 0.55, 1) !important,
      box-shadow 0.5s cubic-bezier(0.45, 0, 0.55, 1) !important;
    transform-origin: center center;
    position: relative;
    will-change: transform;
    backface-visibility: hidden;
  }
  .tour-card:hover {
    transform: scale(1.35) translateY(-10px) !important;
    box-shadow: 0 32px 60px rgba(0, 0, 0, 0.28);
    z-index: 20;
  }
}

body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Hiragino Sans", "Hiragino Kaku Gothic ProN",
               "Yu Gothic Medium", "Meiryo", system-ui, sans-serif;
  font-size: 16px;
  line-height: 1.7;
  color: var(--c-text);
  background: var(--c-bg);
  -webkit-font-smoothing: antialiased;
}

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

a { color: var(--c-accent); text-decoration: none; }
a:hover { text-decoration: underline; }

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

/* ─── ヘッダー ─────────────────────────────────────────────── */

.site-header {
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: saturate(140%) blur(8px);
  border-bottom: 1px solid var(--c-border);
  position: sticky;
  top: 0;
  z-index: 100;
}

.site-header-inner {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0.85rem 1.25rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.brand {
  font-weight: 700;
  font-size: 1.15rem;
  color: var(--c-text);
  letter-spacing: 0.02em;
}
.brand:hover { text-decoration: none; color: var(--c-accent); }

.global-nav {
  display: flex;
  font-size: 0.95rem;
}
.nav-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  align-items: center;
  gap: 1.4rem;
}
.nav-item { position: relative; }
.nav-link {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  background: none;
  border: 0;
  padding: 0;
  font: inherit;
  cursor: pointer;
  color: var(--c-text-soft);
  white-space: nowrap;
  text-decoration: none;
}
.nav-link:hover { color: var(--c-accent); text-decoration: none; }
.nav-caret {
  font-size: 0.7em;
  transition: transform 0.2s ease;
  display: inline-block;
}
.nav-has-sub.is-sub-open .nav-caret { transform: rotate(180deg); }

/* sub-menu (PC は dropdown) */
.nav-sub {
  position: absolute;
  top: calc(100% + 0.5rem);
  left: 50%;
  transform: translateX(-50%) translateY(-6px);
  list-style: none;
  margin: 0;
  padding: 0.4rem 0;
  background: rgba(255, 255, 255, 0.98);
  backdrop-filter: saturate(140%) blur(8px);
  border: 1px solid var(--c-border);
  border-radius: var(--r-md);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.12);
  min-width: 180px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.18s ease, transform 0.22s ease;
  z-index: 110;
}
.nav-sub li a {
  display: block;
  padding: 0.6rem 1.2rem;
  color: var(--c-text);
  white-space: nowrap;
}
.nav-sub li a:hover { background: var(--c-accent-soft); text-decoration: none; }

@media (hover: hover) {
  .nav-has-sub:hover .nav-sub,
  .nav-has-sub:focus-within .nav-sub {
    opacity: 1;
    pointer-events: auto;
    transform: translateX(-50%) translateY(0);
  }
  .nav-has-sub:hover .nav-caret { transform: rotate(180deg); }
}
.nav-has-sub.is-sub-open .nav-sub {
  opacity: 1;
  pointer-events: auto;
  transform: translateX(-50%) translateY(0);
}

/* ハンバーガーボタン (デフォルトは PC 表示なので非表示) */
.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  background: none;
  border: 0;
  padding: 0;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}
.nav-toggle-bar {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--c-text);
  border-radius: 2px;
  transition: transform 0.3s ease, opacity 0.2s ease;
}

/* ─── スマホ: ハンバーガーメニュー + サブメニューはアコーディオン ─── */
@media (max-width: 720px) {
  .nav-toggle { display: flex; }

  .global-nav {
    position: absolute;
    top: 100%;
    right: 0.6rem;
    width: min(300px, calc(100vw - 1.2rem));
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: saturate(140%) blur(8px);
    border: 1px solid var(--c-border);
    border-radius: var(--r-md);
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.12);
    transform-origin: top right;
    transform: translateY(-6px) scale(0.96);
    opacity: 0;
    pointer-events: none;
    transition: transform 0.22s ease, opacity 0.18s ease;
    margin-top: 0.4rem;
    z-index: 110;
    overflow: hidden;
  }
  .global-nav.is-open {
    transform: translateY(0) scale(1);
    opacity: 1;
    pointer-events: auto;
  }
  .nav-list {
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 0.4rem 0;
  }
  .nav-item { width: 100%; }
  .nav-link {
    width: 100%;
    padding: 0.85rem 1.2rem;
    color: var(--c-text);
    border-bottom: 1px solid var(--c-border);
    justify-content: space-between;
    font-size: 1rem;
  }
  .nav-item:last-child > .nav-link { border-bottom: 0; }
  .nav-link:hover, .nav-link:active { background: var(--c-accent-soft); text-decoration: none; }

  /* sub-menu はインラインアコーディオン */
  .nav-sub {
    position: static;
    transform: none;
    background: var(--c-accent-soft);
    border: 0;
    border-radius: 0;
    box-shadow: none;
    padding: 0;
    min-width: 0;
    opacity: 0;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.25s ease, opacity 0.18s ease;
  }
  .nav-has-sub.is-sub-open .nav-sub {
    opacity: 1;
    max-height: 400px;
    transform: none;
  }
  .nav-sub li a {
    padding: 0.7rem 1.2rem 0.7rem 2.2rem;
    font-size: 0.95rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.5);
  }
  .nav-sub li:last-child a { border-bottom: 0; }

  /* hamburger -> ✕ */
  .nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
  }
  .nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(2) { opacity: 0; }
  .nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
  }

  .brand { font-size: 1rem; }
}

/* ─── ヒーロー (トップ) ────────────────────────────────────── */

.hero {
  position: relative;
  padding: 6rem 1.25rem 5rem;
  min-height: 80vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  overflow: hidden;
  background: #14292d;
}

/* ロード中スプラッシュ: 動画が用意できるまで青系グラデを軽くシフトさせて表示.
   JS が hero-video の loadeddata/canplay を捕えたら .hero.is-ready が付き
   フェードアウトする (5s タイムアウトの failsafe あり). */
.hero-splash {
  position: absolute;
  inset: 0;
  z-index: 0;
  background:
    radial-gradient(ellipse at 25% 30%, rgba(96, 165, 250, 0.45), transparent 55%),
    radial-gradient(ellipse at 80% 75%, rgba(147, 197, 253, 0.35), transparent 55%),
    linear-gradient(135deg, #0c2740 0%, #1e3a8a 35%, #1d4ed8 65%, #2563eb 100%);
  background-size: 220% 220%, 220% 220%, 100% 100%;
  background-position: 0% 0%, 100% 100%, 0 0;
  animation: hero-splash-shift 7s ease-in-out infinite alternate;
  transition: opacity 0.9s ease;
  will-change: opacity, background-position;
}
@keyframes hero-splash-shift {
  to {
    background-position: 100% 100%, 0% 0%, 0 0;
  }
}
.hero.is-ready .hero-splash {
  opacity: 0;
  pointer-events: none;
}

.hero-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 1;
  opacity: 0;
  transform: scale(1.12);
  animation: hero-video-in 2.4s cubic-bezier(0.22, 1, 0.36, 1) 0.1s forwards,
             hero-video-pan 24s ease-in-out 2.4s infinite alternate;
}
@keyframes hero-video-in {
  to { opacity: 1; transform: scale(1.05); }
}
@keyframes hero-video-pan {
  from { transform: scale(1.05) translate3d(0, 0, 0); }
  to   { transform: scale(1.12) translate3d(-1.5%, -1%, 0); }
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(20,18,18,0.55) 0%, rgba(159,187,184,0.35) 100%);
  z-index: 2;
  opacity: 0;
  animation: hero-overlay-in 1.6s ease-out 0.3s forwards;
}
@keyframes hero-overlay-in {
  to { opacity: 1; }
}

.hero-inner {
  position: relative;
  z-index: 3;
  max-width: 720px;
  margin: 0 auto;
  color: #fff;
  text-shadow: 0 2px 12px rgba(0,0,0,0.4);
}

.hero-inner > * {
  opacity: 0;
  transform: translateY(28px);
  animation: hero-text-up 1.1s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}
.hero-inner > :nth-child(1) { animation-delay: 0.55s; }
.hero-inner > :nth-child(2) { animation-delay: 0.85s; }
.hero-inner > :nth-child(3) { animation-delay: 1.15s; }
@keyframes hero-text-up {
  to { opacity: 1; transform: translateY(0); }
}

@media (prefers-reduced-motion: reduce) {
  .hero-video,
  .hero-overlay,
  .hero-inner > * {
    animation: none !important;
    opacity: 1 !important;
    transform: none !important;
  }
  .hero-splash {
    animation: none !important;
    /* スプラッシュ自体は残してもよい (動画が出れば JS で消える) */
  }
}

.hero-tagline-en {
  margin: 0 0 0.5rem;
  font-size: 0.95rem;
  letter-spacing: 0.18em;
  color: #e8f4ff;
  text-transform: uppercase;
  font-weight: 500;
}

.hero-tagline {
  margin: 0 0 1rem;
  font-size: clamp(1.6rem, 5vw, 2.4rem);
  line-height: 1.4;
  font-weight: 700;
  color: #fff;
}

.hero-subtitle {
  margin: 0;
  font-size: 1.05rem;
  color: #f0f6fb;
}

/* ─── トップのチャット埋め込み ─────────────────────────────── */

.home-chat-embed {
  padding: 3rem 1.25rem 4rem;
  background: var(--c-bg);
}

.home-chat-lead {
  text-align: center;
  color: var(--c-text-soft);
  margin: 0 0 1.5rem;
  line-height: 1.7;
}

/* ─── モニターバナー ──────────────────────────────────────── */

.monitor-banner {
  background: var(--c-monitor-soft);
  color: var(--c-monitor);
  padding: 1rem 1.25rem;
  text-align: center;
  font-weight: 600;
  border-block: 1px solid rgba(200, 81, 28, 0.2);
}

/* ─── ツアーグリッド ──────────────────────────────────────── */

.tours { padding: 3rem 0; }

.section-title {
  text-align: center;
  font-size: 1.6rem;
  margin: 0 0 2rem;
  letter-spacing: 0.04em;
  color: var(--c-text);
  position: relative;
}
.section-title::after {
  content: "";
  display: block;
  width: 48px;
  height: 3px;
  background: var(--c-accent);
  margin: 0.6rem auto 0;
  border-radius: 2px;
}

.home-intro {
  margin: 0 auto 2rem;
  max-width: 820px;
  text-align: center;
  font-size: 1.05rem;
  font-weight: 700;
  line-height: 1.8;
  color: var(--c-text);
}
.home-intro mark, .home-intro .hl {
  background: transparent;
  color: var(--c-monitor);
}

.home-tour-title {
  text-align: center;
  font-size: clamp(1.4rem, 3vw, 1.7rem);
  margin: 0 0 0.6rem;
  line-height: 1.5;
  color: var(--c-text);
}
.home-tour-title strong { font-weight: 700; }

.home-tour-desc {
  text-align: center;
  font-weight: 700;
  margin: 0 0 2rem;
  line-height: 1.7;
  color: var(--c-text);
}

.tour-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
}
@media (max-width: 767px) {
  .tour-grid { grid-template-columns: 1fr; }
}

.tour-card {
  display: flex;
  flex-direction: column;
  background: var(--c-card);
  border: 1px solid var(--c-border);
  border-radius: var(--r-lg);
  overflow: hidden;
  color: var(--c-text);
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}
.tour-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-lg);
  text-decoration: none;
}

.tour-card-image {
  height: 250px;
  overflow: hidden;
  background: var(--c-accent-soft);
}
.tour-card-image img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform 0.3s ease;
}
.tour-card:hover .tour-card-image img { transform: scale(1.04); }

.tour-card-body { padding: 0.9rem 1rem 1rem; }

.tour-card-title {
  margin: 0 0 0.5rem;
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--c-text);
}

.tour-card-cta {
  display: inline-block;
  margin-top: 0.4rem;
  padding: 0.35rem 0.9rem;
  background: #5cb85c;
  color: #fff;
  font-size: 0.82rem;
  border-radius: var(--r-md);
}

.tour-cat {
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  color: var(--c-accent);
  background: var(--c-accent-soft);
  padding: 0.2rem 0.6rem;
  border-radius: 999px;
  margin-bottom: 0.5rem;
}

.tour-card h3 {
  margin: 0 0 0.5rem;
  font-size: 1.2rem;
  color: var(--c-text);
}

.tour-card-desc {
  margin: 0 0 0.6rem;
  font-size: 0.88rem;
  color: var(--c-text-soft);
  line-height: 1.6;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* ─── トップ: photoftp 埋め込み ─────────────────────────── */

.home-photoftp {
  padding: 0 1.25rem 3rem;
  text-align: center;
}
.home-photoftp-caption {
  text-align: center;
  margin: 0 0 1rem;
  font-weight: 600;
  color: var(--c-text);
}
.home-photoftp-frame {
  display: inline-block;
  max-width: 100%;
}
#photoftp-latest {
  width: 800px;
  max-width: 100%;
  height: auto;
  display: block;
  margin: 0 auto;
  border-radius: var(--r-lg);
  -webkit-user-drag: none;
  user-select: none;
  -webkit-user-select: none;
}
.home-photoftp-bar {
  margin-top: 0.5rem;
  font-size: 0.82rem;
  color: #555;
  text-align: center;
}
.home-photoftp-btn {
  padding: 0.25rem 0.9rem;
  font-size: 0.82rem;
  cursor: pointer;
  border: 1px solid #ccc;
  background: #fafafa;
  border-radius: var(--r-md);
}
.home-photoftp-stamp {
  margin-left: 0.6rem;
}

/* ─── ツアー詳細ページ ────────────────────────────────────── */

/* doc-page+doc-card 構造に統一されたので外側 .tour-detail のパディングは
   doc-page 側 (padding: 0 0 4rem) に任せる. .container も同じく. */
.tour-detail .container { max-width: var(--max-narrow); }

.breadcrumb {
  font-size: 0.85rem;
  color: var(--c-text-soft);
  margin: 0 0 0.8rem;
}

.tour-title {
  font-size: clamp(1.6rem, 4vw, 2.2rem);
  margin: 0 0 1.2rem;
  color: var(--c-text);
}

.tour-hero-image {
  margin: 0 0 1.5rem;
  border-radius: var(--r-lg);
  overflow: hidden;
  box-shadow: var(--shadow);
}

.tour-desc {
  font-size: 1.05rem;
  line-height: 1.8;
  margin: 0 0 0.8rem;
}

.tour-capacity {
  margin: 0 0 1.2rem;
  color: var(--c-text-soft);
}

.tour-features {
  margin: 0 0 1.5rem;
  padding-left: 1.4rem;
}
.tour-features li { margin-bottom: 0.3rem; }

.tour-spec, .tour-cancel {
  width: 100%;
  border-collapse: collapse;
  margin: 1rem 0 1.5rem;
  background: var(--c-card);
  border: 1px solid var(--c-border);
  border-radius: var(--r-md);
  overflow: hidden;
}
.tour-spec th, .tour-cancel th,
.tour-spec td, .tour-cancel td {
  padding: 0.8rem 1rem;
  text-align: left;
  border-bottom: 1px solid var(--c-border);
  vertical-align: top;
}
.tour-spec tr:last-child th,
.tour-spec tr:last-child td,
.tour-cancel tr:last-child td { border-bottom: 0; }
.tour-spec th, .tour-cancel th {
  background: var(--c-accent-soft);
  color: var(--c-accent-dark);
  font-weight: 600;
  white-space: nowrap;
  width: 9em;
}

.monitor-note {
  color: var(--c-monitor);
  font-weight: 600;
}

.tour-payment {
  margin: 1rem 0 1.5rem;
  font-size: 0.95rem;
}

.tour-section-h {
  margin: 2rem 0 0.8rem;
  font-size: 1.15rem;
  color: var(--c-accent-dark);
  border-left: 4px solid var(--c-accent);
  padding-left: 0.7rem;
}

.tour-weather {
  font-size: 0.9rem;
  color: var(--c-text-soft);
  margin: 0.5rem 0 1.5rem;
}

.tour-reserve-note {
  background: var(--c-accent-soft);
  border-radius: var(--r-md);
  padding: 1rem 1.2rem;
  margin: 0 0 2rem;
}

.tour-reserve-embed {
  margin-top: 3rem;
  scroll-margin-top: 80px;
}
.tour-reserve-embed .section-title {
  text-align: left;
  margin-bottom: 1.2rem;
}
.tour-reserve-embed .section-title::after { margin-left: 0; }

#reserveFrame {
  border-radius: var(--r-md);
  box-shadow: var(--shadow);
}

/* ─── Instagram 投稿カードグリッド (3×2, トップページ) ─── */

.instagram-section {
  padding: 3rem 0 4rem;
  scroll-margin-top: 80px;
}
.instagram-section .section-title { margin-bottom: 1rem; }
.instagram-lead {
  text-align: center;
  color: var(--text-soft, #4a5b6b);
  margin-bottom: 2rem;
}
.instagram-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  max-width: 980px;
  margin: 0 auto;
}
@media (max-width: 760px) {
  .instagram-grid { grid-template-columns: repeat(2, 1fr); gap: 0.6rem; }
}

.ig-card {
  display: block;
  position: relative;
  aspect-ratio: 1 / 1;
  border-radius: var(--r-md, 12px);
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(13, 59, 102, 0.12);
  text-decoration: none;
  background: #f0f0f0;
  transition: transform 0.3s cubic-bezier(0.45, 0, 0.55, 1), box-shadow 0.3s ease;
  will-change: transform;
}
@media (hover: hover) {
  .ig-card:hover {
    transform: translateY(-6px) scale(1.03);
    box-shadow: 0 12px 24px rgba(13, 59, 102, 0.25);
  }
  .ig-card:hover .ig-card-overlay { opacity: 1; }
}

.ig-card-image {
  position: absolute;
  inset: 0;
}
.ig-card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.ig-card-overlay {
  position: absolute;
  top: 0.5rem;
  right: 0.5rem;
  width: 28px;
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.45);
  border-radius: 50%;
  opacity: 0.85;
  transition: opacity 0.2s ease;
  pointer-events: none;
}
.ig-icon {
  width: 18px;
  height: 18px;
  color: white;
  display: block;
}

.ig-card-caption {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 1.2rem 0.7rem 0.6rem;
  color: white;
  font-size: 0.85rem;
  line-height: 1.4;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0) 0%, rgba(0, 0, 0, 0.75) 100%);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.instagram-footer {
  text-align: center;
  margin-top: 2.5rem;
}
.instagram-follow {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.8rem 1.8rem;
  background: linear-gradient(45deg, #f09433 0%, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888 100%);
  color: white;
  border-radius: 999px;
  text-decoration: none;
  font-weight: 600;
  font-size: 0.95rem;
  box-shadow: 0 4px 12px rgba(220, 39, 67, 0.3);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.instagram-follow:hover {
  transform: translateY(-2px) scale(1.04);
  box-shadow: 0 8px 20px rgba(220, 39, 67, 0.45);
}
.instagram-follow .ig-icon {
  width: 20px;
  height: 20px;
}

/* ─── FAQ セクション (AI クローラ向け + 訪問者向け Q&A) ─── */

.faq-section {
  padding: 3rem 0 4rem;
  background: linear-gradient(180deg, rgba(239,246,250,0) 0%, rgba(239,246,250,0.7) 50%, rgba(239,246,250,0) 100%);
  scroll-margin-top: 80px;
}
.faq-section .section-title { margin-bottom: 1.5rem; }
.faq-lead {
  text-align: center;
  color: var(--text-soft, #4a5b6b);
  margin-bottom: 1.5rem;
}
.faq-list {
  max-width: 760px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}
.faq-item {
  background: #fff;
  border: 1px solid rgba(30, 96, 145, 0.18);
  border-radius: var(--r-md, 10px);
  box-shadow: 0 2px 6px rgba(13, 59, 102, 0.06);
  overflow: hidden;
  transition: box-shadow 0.18s ease, border-color 0.18s ease;
}
.faq-item[open] {
  box-shadow: 0 4px 14px rgba(13, 59, 102, 0.12);
  border-color: rgba(30, 96, 145, 0.4);
}
.faq-q {
  list-style: none;
  cursor: pointer;
  padding: 1rem 2.5rem 1rem 1.2rem;
  font-weight: 600;
  color: #0d3b66;
  position: relative;
  line-height: 1.5;
}
.faq-q::-webkit-details-marker { display: none; }
.faq-q::after {
  content: "+";
  position: absolute;
  right: 1.1rem;
  top: 50%;
  transform: translateY(-50%);
  font-size: 1.4rem;
  font-weight: 400;
  color: #1e6091;
  transition: transform 0.2s ease;
}
.faq-item[open] .faq-q::after {
  content: "−";
  color: #0d3b66;
}
.faq-a {
  padding: 0 1.2rem 1.1rem;
  color: var(--text, #2c3e50);
  line-height: 1.75;
  border-top: 1px dashed rgba(30, 96, 145, 0.15);
  padding-top: 0.9rem;
  margin-top: 0;
}

/* ─── プロフィールページ (doc-hero + doc-card 構造を共有) ─── */

/* profile-card は doc-card を継承しつつ写真をヒーローに食い込ませる */
.profile-card { padding-top: 0; }
@media (max-width: 520px) {
  .profile-card { padding-top: 0; }
}

/* 装飾フレーム: 外側は dashed ring + 12時の accent ドット, 中央に円形写真 */
.profile-photo {
  position: relative;
  margin: -4rem auto 1.5rem;   /* card 上端を突き抜けてヒーローに食い込む */
  width: 200px;
  height: 200px;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: center;
  background: radial-gradient(circle, rgba(255,255,255,0.85) 38%, transparent 70%);
}
.profile-photo::before {
  /* 外周の点線リング (ゆっくり回る装飾) */
  content: "";
  position: absolute;
  inset: 0;
  border: 2px dashed var(--c-accent);
  border-radius: 50%;
  pointer-events: none;
  opacity: 0.55;
  animation: profile-ring-rotate 60s linear infinite,
             profile-ring-in 1.0s ease-out 1.2s both;
}
.profile-photo::after {
  /* 12時の accent ドット (ブローチ風) */
  content: "";
  position: absolute;
  top: -4px;
  left: 50%;
  transform: translateX(-50%);
  width: 14px;
  height: 14px;
  background: var(--c-accent);
  border-radius: 50%;
  box-shadow: 0 0 0 4px #fff, 0 2px 8px rgba(0, 0, 0, 0.25);
  pointer-events: none;
  animation: profile-dot-in 0.6s cubic-bezier(0.34, 1.56, 0.64, 1) 1.6s both;
}
.profile-photo img {
  width: 160px;
  height: 160px;
  border-radius: 50%;
  object-fit: cover;
  border: 5px solid #fff;
  background: #fff;
  box-shadow: 0 0 0 1px var(--c-border), 0 12px 32px rgba(0, 0, 0, 0.18);
  display: block;
  /* デフォルト (スマホ) は控えめポップ */
  animation: profile-photo-pop 1.0s cubic-bezier(0.34, 1.56, 0.64, 1) 0.45s both;
}
@keyframes profile-photo-pop {
  from { opacity: 0; transform: scale(0.6); }
  to   { opacity: 1; transform: scale(1); }
}
@keyframes profile-ring-rotate {
  to { transform: rotate(360deg); }
}
@keyframes profile-ring-in {
  from { opacity: 0; }
  to   { opacity: 0.55; }
}
@keyframes profile-dot-in {
  from { opacity: 0; transform: translateX(-50%) scale(0); }
  to   { opacity: 1; transform: translateX(-50%) scale(1); }
}
@media (max-width: 520px) {
  .profile-photo { width: 170px; height: 170px; margin-top: -3rem; }
  .profile-photo img { width: 138px; height: 138px; border-width: 4px; }
}
/* PC: 写真をスピン+ポップで派手に登場 */
@media (min-width: 768px) {
  .profile-photo img {
    animation: profile-photo-spin 1.5s cubic-bezier(0.34, 1.56, 0.64, 1) 0.4s both;
  }
  @keyframes profile-photo-spin {
    from { opacity: 0; transform: scale(0.15) rotate(-180deg); }
    to   { opacity: 1; transform: scale(1) rotate(0); }
  }
}
@media (prefers-reduced-motion: reduce) {
  .profile-photo,
  .profile-photo::before,
  .profile-photo::after,
  .profile-photo img {
    animation: none !important;
    opacity: 1 !important;
    transform: none !important;
  }
  .profile-photo::after { transform: translateX(-50%) !important; }
}

.profile-name-block { text-align: center; margin: 0 0 2rem; }
.profile-role {
  color: var(--c-accent);
  letter-spacing: 0.18em;
  font-size: 0.78rem;
  text-transform: uppercase;
  font-weight: 600;
  margin: 0 0 0.3rem;
}
.profile-name {
  font-size: 1.7rem;
  margin: 0 0 0.5rem;
  letter-spacing: 0.06em;
  color: var(--c-text);
}
.profile-name::after {
  content: "";
  display: block;
  width: 40px;
  height: 2px;
  background: var(--c-accent);
  margin: 0.5rem auto 0;
  border-radius: 2px;
}
.profile-title-line { margin: 0.8rem 0 0.2rem; color: var(--c-text-soft); font-weight: 600; }
.profile-subtitle { margin: 0; color: var(--c-text-soft); font-size: 0.9rem; }

.profile-intro {
  background: var(--c-bg);
  border-radius: var(--r-md);
  padding: 1.2rem 1.4rem;
  margin: 0 0 2rem;
}
.profile-intro p {
  margin: 0 0 1rem;
  line-height: 1.9;
}
.profile-intro p:last-child { margin-bottom: 0; }

/* doc-card 内で使う見出し: doc-page h2 と統一感のある accent ブロック */
.profile-h {
  margin: 2rem 0 0.9rem;
  font-size: 1.15rem;
  color: var(--c-accent-dark);
  background: var(--c-accent-soft);
  border-left: 4px solid var(--c-accent);
  padding: 0.5rem 0.9rem;
  border-radius: 0 var(--r-md) var(--r-md) 0;
  font-weight: 700;
  letter-spacing: 0.02em;
}

.profile-list {
  margin: 0 0 1.2rem;
  padding-left: 1.5rem;
}
.profile-list li { margin-bottom: 0.45rem; line-height: 1.8; }

.profile-message p {
  margin: 0 0 0.6rem;
  line-height: 1.9;
}
.profile-message p:last-child { margin-bottom: 0; }

/* ─── お問い合わせ・ドキュメントページ ────────────────────── */

/* contact-page も doc-page+doc-card 構造に統一. .container は narrow 幅だけ指定し
   外側のパディングは doc-page に任せる. h1 はヒーロー側で出すので不要. */
.contact-page .container { max-width: var(--max-narrow); }

.contact-method { margin: 2rem 0; }
.contact-method h2 {
  font-size: 1.15rem;
  margin: 0 0 0.5rem;
  color: var(--c-accent-dark);
  border-left: 4px solid var(--c-accent);
  padding-left: 0.7rem;
}
.contact-phone { font-size: 1.4rem; font-weight: 700; }

/* ─── 問い合わせフォーム ─────────────────────────────────── */

/* card 装飾を持たず、入力ボックスがチャット iframe と同じ横幅で並ぶようにする */
.contact-form {
  margin-top: 1rem;
  display: block;
  width: 100%;
}
.contact-field {
  display: block;
  margin-bottom: 1.6rem;
  width: 100%;
}
.contact-field label {
  display: block;
  font-weight: 700;
  font-size: 1.05rem;
  margin-bottom: 0.5rem;
  color: var(--c-accent-dark);
  letter-spacing: 0.02em;
}
.contact-field input[type="text"],
.contact-field input[type="email"],
.contact-field textarea {
  display: block;
  box-sizing: border-box;
  width: 100%;
  padding: 0.75rem 0.9rem;
  font-size: 1rem;
  font-family: inherit;
  line-height: 1.6;
  color: var(--c-text);
  background: #fff;
  border: 1px solid var(--c-border);
  border-radius: var(--r-md);
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
.contact-field input:focus,
.contact-field textarea:focus {
  outline: none;
  border-color: var(--c-accent);
  box-shadow: 0 0 0 3px rgba(29, 78, 216, 0.15);
}
.contact-field textarea {
  resize: vertical;
  min-height: 16rem;
}
.contact-req {
  display: inline-block;
  margin-left: 0.5rem;
  padding: 0.1rem 0.5rem;
  font-size: 0.72rem;
  font-weight: 600;
  background: var(--c-monitor);
  color: #fff;
  border-radius: 4px;
  vertical-align: middle;
  letter-spacing: 0;
}
.contact-honeypot {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}
.contact-actions { text-align: center; margin-top: 1.5rem; }
.contact-actions .btn { min-width: 14rem; padding: 0.85rem 1.6rem; font-size: 1.05rem; }

.contact-result {
  margin: 1rem 0;
  padding: 1rem 1.2rem;
  border-radius: var(--r-md);
  border: 1px solid var(--c-border);
}
.contact-result-ok {
  background: #ecfdf5;
  border-color: #6ee7b7;
  color: #065f46;
}
.contact-result-err {
  background: #fef2f2;
  border-color: #fca5a5;
  color: #991b1b;
}

.btn {
  display: inline-block;
  padding: 0.7rem 1.4rem;
  border-radius: var(--r-md);
  font-weight: 600;
  font-size: 1rem;
  border: 1px solid transparent;
  cursor: pointer;
  text-decoration: none;
  transition: background 0.15s ease, transform 0.1s ease;
}
.btn:hover { text-decoration: none; transform: translateY(-1px); }
.btn-primary { background: var(--c-accent); color: #fff; }
.btn-primary:hover { background: var(--c-accent-dark); color: #fff; }

/* ─── doc ページ (法表記・利用規約・ガイド) ──────────────── */

/* ヒーロー帯: 全ページ共通の青グラデ overlay + 背景画像.
   背景画像は CSS 変数 --hero-bg で上書き可能. デフォルトはオオワシ写真.
   新規ページで <section class="doc-hero"> を使うだけで自動適用される.
   個別画像にしたい場合は inline style="--hero-bg: url('/images/hero/xxx.jpg')". */
.doc-hero {
  background:
    linear-gradient(135deg, rgba(20, 41, 80, 0.72) 0%, rgba(29, 78, 216, 0.55) 60%, rgba(59, 130, 246, 0.45) 100%),
    var(--hero-bg, url('/images/hero/eagle.jpg')) center/cover no-repeat;
  color: #fff;
  padding: 3.5rem 1.25rem 4.5rem;
  text-align: center;
  position: relative;
  overflow: hidden;
}
/* .has-image は廃止 (デフォルトで画像が出るので不要) — ただし旧マークアップ互換のため
   残しておく (no-op として何もしない) */
.doc-hero.has-image { /* alias for .doc-hero */ }
/* ヒーローテキストを順次フェードアップ (page load で自動再生) */
.doc-hero .container > * {
  opacity: 0;
  transform: translateY(18px);
  animation: doc-hero-up 0.9s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}
.doc-hero .container > :nth-child(1) { animation-delay: 0.05s; }
.doc-hero .container > :nth-child(2) { animation-delay: 0.20s; }
.doc-hero .container > :nth-child(3) { animation-delay: 0.40s; }
@keyframes doc-hero-up {
  to { opacity: 1; transform: translateY(0); }
}
.doc-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 80% 20%, rgba(255,255,255,0.18), transparent 50%),
              radial-gradient(circle at 20% 80%, rgba(255,255,255,0.10), transparent 50%);
  pointer-events: none;
}
.doc-hero .container { max-width: var(--max-narrow); position: relative; }
.doc-hero-eyebrow {
  margin: 0 0 0.6rem;
  font-size: 0.85rem;
  letter-spacing: 0.25em;
  color: rgba(255, 255, 255, 0.85);
  text-transform: uppercase;
  font-weight: 500;
}
.doc-hero-title {
  margin: 0 0 0.8rem;
  font-size: clamp(1.6rem, 4vw, 2.1rem);
  font-weight: 700;
  letter-spacing: 0.04em;
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.18);
}
.doc-hero-lead {
  margin: 0;
  color: rgba(255, 255, 255, 0.92);
  font-size: 0.95rem;
  line-height: 1.7;
}

/* 本文カード: ヒーロー下端と少し重ねて立体感 */
.doc-page { padding: 0 0 4rem; }
.doc-page .container { max-width: var(--max-narrow); padding: 0 1.25rem; }

.doc-card {
  background: #fff;
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-lg);
  padding: 2.25rem 2rem;
  margin-top: -2.5rem;
  position: relative;
  border: 1px solid var(--c-border);
}
@media (max-width: 520px) {
  .doc-card { padding: 1.5rem 1.2rem; margin-top: -1.5rem; }
}

/* ─── ページ共通の登場アニメ (特定商取引と同じ出方) ──────
   どのページも doc-hero + doc-card 構造で揃えたので .doc-card 1 セレクタで OK.
   home の post-hero セクションは .reveal を別途付与してスクロール時発火. */
.doc-card {
  opacity: 0;
  transform: translateY(40px) scale(0.98);
  animation: page-enter-up 1.0s cubic-bezier(0.22, 1, 0.36, 1) 0.4s forwards;
}
@keyframes page-enter-up {
  to { opacity: 1; transform: translateY(0) scale(1); }
}
/* PC: 大きめドロップ + scale + 軽い rotate でドラマチック登場 */
@media (min-width: 768px) {
  .doc-card {
    transform: translateY(120px) scale(0.78) rotate(-2.5deg);
    animation: page-enter-pc 1.4s cubic-bezier(0.16, 1, 0.3, 1) 0.4s forwards;
    transform-origin: 50% 0;
  }
  @keyframes page-enter-pc {
    60%  { opacity: 1; }
    to   { opacity: 1; transform: translateY(0) scale(1) rotate(0); }
  }
}
@media (prefers-reduced-motion: reduce) {
  .doc-hero .container > *,
  .doc-card {
    animation: none !important;
    opacity: 1 !important;
    transform: none !important;
  }
}

.doc-card > :first-child { margin-top: 0; }
.doc-card > :last-child { margin-bottom: 0; }

.doc-page h2 {
  font-size: 1.2rem;
  margin: 2.2rem 0 1rem;
  padding: 0.5rem 0.9rem;
  color: var(--c-accent-dark);
  background: var(--c-accent-soft);
  border-left: 4px solid var(--c-accent);
  border-radius: 0 var(--r-md) var(--r-md) 0;
  font-weight: 700;
  letter-spacing: 0.02em;
}
.doc-page h3 {
  font-size: 1.02rem;
  margin: 1.6rem 0 0.6rem;
  color: var(--c-accent-dark);
  font-weight: 700;
  position: relative;
  padding-left: 1rem;
}
.doc-page h3::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.55em;
  width: 0.5rem;
  height: 0.5rem;
  background: var(--c-accent);
  border-radius: 50%;
}
.doc-page hr {
  border: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--c-border) 30%, var(--c-border) 70%, transparent);
  margin: 2.2rem 0;
}
.doc-page p { margin: 0.5rem 0 1rem; line-height: 1.85; }
.doc-page ol, .doc-page ul {
  padding-left: 1.5rem;
  margin: 0.5rem 0 1.2rem;
}
.doc-page li { margin-bottom: 0.4rem; line-height: 1.8; }

.doc-table {
  width: 100%;
  border-collapse: collapse;
  margin: 1rem 0 1.5rem;
  background: var(--c-card);
  border: 1px solid var(--c-border);
  border-radius: var(--r-md);
  overflow: hidden;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
}
.doc-table th, .doc-table td {
  padding: 0.75rem 1rem;
  text-align: left;
  border-bottom: 1px solid var(--c-border);
  vertical-align: top;
  font-size: 0.95rem;
}
.doc-table tr:last-child th, .doc-table tr:last-child td { border-bottom: 0; }
.doc-table th {
  background: var(--c-accent-soft);
  color: var(--c-accent-dark);
  font-weight: 600;
  white-space: nowrap;
}
.doc-table tbody tr:nth-child(even) td { background: rgba(224, 242, 254, 0.25); }

.doc-back {
  margin: 2.5rem 0 0;
  text-align: center;
  font-size: 0.95rem;
}
.doc-back a {
  display: inline-block;
  padding: 0.45rem 1.1rem;
  border-radius: var(--r-md);
  background: #fff;
  border: 1px solid var(--c-border);
  color: var(--c-accent-dark);
  font-weight: 600;
}
.doc-back a:hover { background: var(--c-accent-soft); text-decoration: none; }

/* ─── フッター ────────────────────────────────────────────── */

.site-footer {
  background: linear-gradient(120deg, #1e3a8a 0%, #1d4ed8 70%, #3b82f6 100%);
  color: #cbd5e1;
  padding: 2.5rem 1.25rem;
  margin-top: 3rem;
}
.footer-inner {
  max-width: var(--max);
  margin: 0 auto;
  text-align: center;
}
.footer-brand {
  font-size: 1.1rem;
  font-weight: 700;
  margin: 0 0 1rem;
  color: #fff;
  letter-spacing: 0.04em;
}
.footer-links {
  list-style: none;
  padding: 0;
  margin: 0 0 1.2rem;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.5rem 1.4rem;
}
.footer-links a {
  color: #cbd5e1;
  font-size: 0.9rem;
}
.footer-links a:hover { color: #fff; }
.footer-contact { margin: 0 0 0.5rem; font-size: 0.9rem; }
.footer-contact a { color: #cbd5e1; }
.footer-contact a:hover { color: #fff; }
.footer-copy { margin: 0; font-size: 0.8rem; color: #94a3b8; }

/* お知らせページ */
.news-item {
  padding: 1.2rem 0;
  border-bottom: 1px solid #e5e7eb;
}
.news-item:last-child { border-bottom: none; }
.news-date {
  font-size: 0.85rem;
  color: #64748b;
  margin: 0 0 0.3rem;
  letter-spacing: 0.05em;
}
.news-title {
  margin: 0 0 0.6rem;
  font-size: 1.15rem;
  font-weight: 700;
  color: #0d3b66;
}
.news-body { margin: 0; line-height: 1.7; color: #334155; }
.news-empty { color: #64748b; text-align: center; padding: 2rem 0; }
