/* ============================================================
   そらラボ 共通スタイル
   テーマ：深いネイビー × スカイブルー（空・空港）
   ============================================================ */
:root {
  --navy-900: #052238;
  --navy: #0a3557;
  --navy-700: #0d4a75;
  --sky: #1288c7;
  --sky-bright: #3db4ec;
  --sky-50: #eef7fc;
  --sky-100: #dceef8;
  --sky-200: #bcdcf2;
  --ink: #1d2a36;
  --ink-soft: #36485a;
  --muted: #61758a;
  --line: #d7e3ec;
  --bg: #f3f8fb;
  --card: #ffffff;
  --accent: #e8871e;
  --accent-dark: #b96a0d;
  --accent-bg: #fff6e9;
  --danger-bg: #fdf1f1;
  --danger-line: #efc3c3;
  --radius: 14px;
  --radius-s: 9px;
  --shadow-s: 0 1px 3px rgba(6, 42, 67, .08);
  --shadow-m: 0 8px 24px rgba(6, 42, 67, .12);
  --max: 1080px;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: "Hiragino Kaku Gothic ProN", "Hiragino Sans", "Noto Sans JP", "Yu Gothic", "YuGothic", sans-serif;
  color: var(--ink);
  background: var(--bg);
  line-height: 1.85;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
::selection { background: var(--sky-200); }
a { color: var(--sky); text-decoration: none; }
a:hover { text-decoration: underline; }
a:focus-visible, button:focus-visible {
  outline: 3px solid var(--sky-bright);
  outline-offset: 2px;
  border-radius: 4px;
}
img { max-width: 100%; height: auto; }

/* ============ ヘッダー ============ */
.site-header {
  background: linear-gradient(90deg, var(--navy-900) 0%, var(--navy) 55%, var(--navy-700) 100%);
  color: #fff;
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 2px 12px rgba(5, 34, 56, .35);
}
.site-header .inner {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 62px;
  position: relative;
}
.logo {
  color: #fff;
  font-weight: 800;
  font-size: 1.35rem;
  letter-spacing: .06em;
  line-height: 1.15;
  display: flex;
  align-items: center;
  gap: 10px;
  white-space: nowrap;
}
.logo:hover { text-decoration: none; }
.logo::before {
  content: "✈";
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: 11px;
  background: linear-gradient(135deg, var(--sky-bright), var(--sky));
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .35), 0 3px 8px rgba(0, 0, 0, .25);
  font-size: 1.15rem;
  transform: rotate(0deg);
}
.logo small {
  display: block;
  font-size: .6rem;
  font-weight: 500;
  color: var(--sky-200);
  letter-spacing: .32em;
}
.nav-toggle {
  display: none;
  background: rgba(255, 255, 255, .08);
  border: 1px solid rgba(255, 255, 255, .55);
  color: #fff;
  border-radius: 8px;
  padding: 8px 16px;
  font-size: .92rem;
  font-family: inherit;
  cursor: pointer;
  min-height: 42px;
}
.nav-toggle:hover { background: rgba(255, 255, 255, .18); }
.global-nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  gap: 2px;
}
.global-nav a {
  color: #eaf4fb;
  display: block;
  padding: 9px 13px;
  border-radius: 8px;
  font-size: .94rem;
  font-weight: 500;
  transition: background .15s ease, color .15s ease;
}
.global-nav a:hover { background: rgba(255, 255, 255, .14); text-decoration: none; }
.global-nav a.active {
  background: rgba(255, 255, 255, .16);
  color: #fff;
  box-shadow: inset 0 -3px 0 var(--sky-bright);
}

/* ============ レイアウト ============ */
.container { max-width: var(--max); margin: 0 auto; padding: 0 20px 72px; }

/* ============ ヒーロー ============ */
.hero {
  background:
    radial-gradient(ellipse 60% 90% at 85% -10%, rgba(61, 180, 236, .45), transparent 60%),
    radial-gradient(ellipse 45% 70% at 8% 110%, rgba(18, 136, 199, .5), transparent 60%),
    linear-gradient(140deg, var(--navy-900) 0%, var(--navy) 48%, var(--navy-700) 100%);
  color: #fff;
  padding: 72px 20px 64px;
  text-align: center;
  margin-bottom: 48px;
  position: relative;
  overflow: hidden;
}
.hero::after {
  /* 滑走路のセンターラインを思わせる下部のドットライン */
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: 14px;
  border-bottom: 3px dashed rgba(255, 255, 255, .28);
}
.hero h1 {
  margin: 0 0 16px;
  font-size: 2.3rem;
  line-height: 1.4;
  letter-spacing: .04em;
  font-weight: 800;
}
.hero p {
  margin: 0 auto;
  max-width: 660px;
  color: #d6ebf7;
  font-size: 1.02rem;
  line-height: 1.9;
}

/* ============ 見出し ============ */
.section-title {
  font-size: 1.45rem;
  font-weight: 800;
  letter-spacing: .03em;
  margin: 52px 0 22px;
  line-height: 1.4;
  display: flex;
  align-items: center;
  gap: 12px;
}
.section-title::before {
  content: "";
  width: 7px;
  height: 1.35em;
  border-radius: 4px;
  background: linear-gradient(180deg, var(--sky-bright), var(--navy-700));
  flex: none;
}
.section-title::after {
  content: "";
  flex: 1;
  border-bottom: 1px solid var(--line);
}

/* ============ カード ============ */
.grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 22px;
}
.card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  box-shadow: var(--shadow-s);
  transition: transform .18s ease, box-shadow .18s ease;
}
.card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-m);
}
.card-thumb {
  aspect-ratio: 16 / 9;
  position: relative;
  overflow: hidden;
  flex: none;
  background: linear-gradient(130deg, var(--navy-700), var(--sky));
}
.card-thumb::before {
  /* 空の雲を思わせる柔らかい光 */
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 55% 60% at 78% 18%, rgba(255, 255, 255, .35), transparent 65%),
    radial-gradient(ellipse 40% 45% at 18% 85%, rgba(255, 255, 255, .18), transparent 65%);
}
.card-thumb::after {
  content: "✈";
  position: absolute;
  right: 14px;
  bottom: 2px;
  font-size: 4.6rem;
  line-height: 1;
  color: rgba(255, 255, 255, .28);
  transform: rotate(8deg);
}
.card-thumb.cat-airport { background: linear-gradient(130deg, #43307a, #7a5fd0); }
.card-thumb.cat-goods   { background: linear-gradient(130deg, #9a5b07, #e8a33d); }
.card-thumb.cat-aircraft { background: linear-gradient(130deg, #14532d, #2f9e5f); }
.card .tag,
.card h3,
.card p { margin-left: 20px; margin-right: 20px; }
.card .tag { margin-top: 16px; }
.card h3 { margin-top: 0; margin-bottom: 6px; font-size: 1.08rem; line-height: 1.55; }
.card p {
  margin-top: 0;
  margin-bottom: 0;
  padding-bottom: 20px;
  color: var(--muted);
  font-size: .92rem;
  line-height: 1.75;
  flex: 1;
}
.card h3 a { color: var(--ink); }
.card h3 a:hover { color: var(--sky); text-decoration: none; }
.tag {
  display: inline-block;
  background: var(--sky-100);
  color: var(--navy-700);
  font-size: .74rem;
  font-weight: 700;
  letter-spacing: .04em;
  padding: 3px 11px;
  border-radius: 999px;
  align-self: flex-start;
}
.tag.goods { background: #fdf0dd; color: #9a5b07; }
.tag.aircraft { background: #e2f3e8; color: #1e6b34; }
.tag.airport { background: #ece5f9; color: #5b3a8c; }

/* ============ パンくず ============ */
.breadcrumb {
  font-size: .85rem;
  color: var(--muted);
  margin: 22px 0 0;
  line-height: 1.6;
}
.breadcrumb a { color: var(--muted); }
.breadcrumb a:hover { color: var(--sky); }

/* ============ 記事 ============ */
.article {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 40px 44px 44px;
  margin-top: 26px;
  box-shadow: var(--shadow-s);
  font-size: 16.5px;
  line-height: 1.95;
  color: var(--ink-soft);
}
.article h1 {
  font-size: 1.85rem;
  line-height: 1.5;
  margin: 0 0 14px;
  color: var(--ink);
  font-weight: 800;
  letter-spacing: .02em;
}
.article h2 {
  font-size: 1.38rem;
  line-height: 1.5;
  color: var(--ink);
  font-weight: 800;
  margin: 52px 0 18px;
  padding: 10px 14px 10px 16px;
  background: linear-gradient(90deg, var(--sky-50), transparent 85%);
  border-left: 6px solid var(--sky);
  border-radius: 0 var(--radius-s) var(--radius-s) 0;
  scroll-margin-top: 84px;
}
.article h2#summary {
  background: linear-gradient(90deg, var(--navy), var(--navy-700));
  color: #fff;
  border-left-color: var(--sky-bright);
}
.article h3 {
  font-size: 1.13rem;
  margin: 32px 0 10px;
  line-height: 1.55;
  color: var(--ink);
  font-weight: 700;
  padding-left: 12px;
  border-left: 3px solid var(--sky-200);
  scroll-margin-top: 84px;
}
.article p { margin: 0 0 18px; }
.article ul, .article ol { margin: 0 0 18px; padding-left: 1.5em; }
.article li { margin-bottom: 7px; }
.article li::marker { color: var(--sky); font-weight: 700; }
.article strong { color: var(--ink); }
.article a { text-decoration: underline; text-underline-offset: 3px; }
.article blockquote {
  margin: 0 0 18px;
  padding: 6px 18px;
  border-left: 4px solid var(--sky-200);
  color: var(--muted);
  background: var(--sky-50);
  border-radius: 0 var(--radius-s) var(--radius-s) 0;
}

/* 記事メタ（公開日・確認日） */
.meta {
  color: var(--muted);
  font-size: .87rem;
  margin-bottom: 22px;
  line-height: 1.7;
}
.article > .meta:first-of-type {
  display: block;
  padding: 9px 14px;
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: var(--radius-s);
}
.article > p.meta:last-child {
  border-top: 1px dashed var(--line);
  padding-top: 16px;
  margin-bottom: 0;
}

/* PR表記 */
.pr-notice {
  position: relative;
  background: var(--accent-bg);
  border: 1px solid #f0cf8f;
  border-left: 6px solid var(--accent);
  border-radius: var(--radius-s);
  padding: 12px 16px 12px 18px;
  font-size: .88rem;
  line-height: 1.75;
  margin-bottom: 28px;
  color: #6b4a12;
}

/* 目次 */
.toc {
  background: var(--sky-50);
  border: 1px solid var(--sky-200);
  border-radius: var(--radius);
  padding: 20px 26px 14px;
  margin-bottom: 34px;
}
.toc p {
  font-weight: 800;
  margin: 0 0 10px;
  color: var(--navy);
  font-size: 1rem;
  letter-spacing: .14em;
  display: flex;
  align-items: center;
  gap: 10px;
}
.toc p::after { content: ""; flex: 1; border-bottom: 1px dashed var(--sky-200); }
.toc ol { margin: 0; padding-left: 1.6em; }
.toc li { margin-bottom: 8px; }
.toc li::marker { color: var(--sky); font-weight: 800; }
.toc a { color: var(--navy-700); text-decoration: none; font-weight: 500; }
.toc a:hover { color: var(--sky); text-decoration: underline; }

/* ポイント／注意ボックス */
.point-box {
  background: linear-gradient(135deg, var(--sky-50), #fff);
  border: 1px solid var(--sky-200);
  border-left: 6px solid var(--sky);
  border-radius: var(--radius-s);
  padding: 18px 22px;
  margin: 0 0 22px;
}
.point-box p:last-child, .point-box ul:last-child { margin-bottom: 0; }
.caution-box {
  background: var(--danger-bg);
  border: 1px solid var(--danger-line);
  border-left: 6px solid #d9534f;
  border-radius: var(--radius-s);
  padding: 18px 22px;
  margin: 0 0 22px;
}
.caution-box p:last-child, .caution-box ul:last-child { margin-bottom: 0; }

/* アフィリエイト枠 */
.affiliate-slot {
  border: 2px dashed var(--accent);
  border-radius: var(--radius);
  padding: 22px 18px;
  text-align: center;
  margin: 28px 0;
  color: var(--accent-dark);
  font-size: .9rem;
  background: var(--accent-bg);
}

/* 写真スロット（写真が入るまではアスペクト比つきのプレースホルダ枠） */
.photo-slot {
  aspect-ratio: 16 / 9;
  border: 2px dashed var(--sky-200);
  border-radius: var(--radius);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  text-align: center;
  color: var(--muted);
  font-size: .9rem;
  line-height: 1.6;
  padding: 20px;
  margin: 0 0 24px;
  background:
    radial-gradient(ellipse 60% 70% at 80% 10%, rgba(61, 180, 236, .16), transparent 60%),
    linear-gradient(150deg, var(--sky-50), #fff);
  overflow: hidden;
}
.photo-slot::before {
  content: "📷";
  font-size: 2rem;
  line-height: 1;
  opacity: .65;
}
.photo-slot img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* ============ 表（比較表・料金表） ============ */
.table-scroll {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  margin: 0 0 24px;
  border: 1px solid var(--line);
  border-radius: var(--radius-s);
  background:
    linear-gradient(90deg, #fff 30%, rgba(255, 255, 255, 0)) 0 0 / 44px 100% no-repeat,
    linear-gradient(-90deg, #fff 30%, rgba(255, 255, 255, 0)) 100% 0 / 44px 100% no-repeat;
  background-color: #fff;
  background-attachment: local, local;
  box-shadow: inset -14px 0 14px -14px rgba(6, 42, 67, .25);
}
/* JS無効時のフォールバック：未ラップの表は表自体を横スクロール可能にする */
.article > table { display: block; overflow-x: auto; -webkit-overflow-scrolling: touch; }
.article thead th:first-child, .article tr:first-child th:first-child { border-top-left-radius: 8px; }
.article thead th:last-child, .article tr:first-child th:last-child { border-top-right-radius: 8px; }
.article table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  font-size: .93rem;
  line-height: 1.65;
}
.article th, .article td {
  padding: 11px 14px;
  text-align: left;
  vertical-align: top;
  border-bottom: 1px solid var(--line);
  white-space: nowrap;
}
.article thead th, .article tr:first-child th {
  background: linear-gradient(180deg, var(--navy-700), var(--navy));
  color: #fff;
  font-weight: 700;
  border-bottom: none;
}
.article tbody tr:nth-child(even) td,
.article table tr:nth-child(even) td {
  background: var(--sky-50);
}
.article td:first-child, .article th:first-child {
  font-weight: 600;
  color: var(--ink);
}
.article thead th:first-child, .article tr:first-child th:first-child { color: #fff; }
.article tr:last-child td { border-bottom: none; }
/* 横スクロール時に先頭列を固定（比較表の項目名を見失わない） */
.article th:first-child, .article td:first-child {
  position: sticky;
  left: 0;
  background: #fff;
  box-shadow: 6px 0 8px -6px rgba(6, 42, 67, .28);
  z-index: 1;
}
.article tbody tr:nth-child(even) td:first-child,
.article table tr:nth-child(even) td:first-child { background: var(--sky-50); }
.article thead th:first-child, .article tr:first-child th:first-child {
  background: linear-gradient(180deg, var(--navy-700), var(--navy));
  z-index: 2;
}

/* 要確認マーカー */
.verify { color: #b3541e; font-weight: 700; background: #fdeeda; padding: 0 4px; border-radius: 4px; }

/* ============ フッター ============ */
.site-footer {
  background: linear-gradient(180deg, var(--navy) 0%, var(--navy-900) 100%);
  color: #cfe3ef;
  padding: 44px 20px 38px;
  margin-top: 0;
  border-top: 4px solid var(--sky);
}
.site-footer .inner { max-width: var(--max); margin: 0 auto; }
.site-footer nav ul {
  list-style: none;
  margin: 0 0 22px;
  padding: 0 0 22px;
  display: flex;
  flex-wrap: wrap;
  gap: 10px 12px;
  border-bottom: 1px solid rgba(255, 255, 255, .16);
}
.site-footer nav a {
  color: #eaf4fb;
  font-size: .9rem;
  font-weight: 500;
  display: inline-block;
  padding: 7px 14px;
  border: 1px solid rgba(255, 255, 255, .28);
  border-radius: 999px;
  transition: background .15s ease;
}
.site-footer nav a:hover { background: rgba(255, 255, 255, .14); text-decoration: none; }
.site-footer p { font-size: .82rem; margin: 5px 0; color: #9dbfd4; line-height: 1.7; }
.site-footer p:first-of-type { color: #eaf4fb; font-weight: 700; font-size: .92rem; letter-spacing: .05em; }

/* トップへ戻るボタン（main.js が挿入） */
.back-to-top {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 90;
  width: 48px;
  height: 48px;
  border: none;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--sky), var(--navy-700));
  color: #fff;
  font-size: 1.15rem;
  cursor: pointer;
  box-shadow: var(--shadow-m);
  opacity: 0;
  pointer-events: none;
  transition: opacity .2s ease, transform .2s ease;
  transform: translateY(8px);
}
.back-to-top.show { opacity: 1; pointer-events: auto; transform: translateY(0); }
.back-to-top:hover { filter: brightness(1.1); }

/* ============ レスポンシブ ============ */
@media (max-width: 860px) {
  .global-nav a { padding: 9px 9px; font-size: .9rem; }
}
@media (max-width: 720px) {
  body { font-size: 15.5px; }
  .nav-toggle { display: block; }
  .global-nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--navy-900);
    padding: 10px 16px 18px;
    box-shadow: 0 18px 24px rgba(5, 34, 56, .35);
    border-top: 1px solid rgba(255, 255, 255, .14);
  }
  .global-nav.open { display: block; }
  .global-nav ul { flex-direction: column; gap: 4px; }
  .global-nav a { padding: 13px 14px; font-size: 1rem; border-radius: 10px; }
  .global-nav a.active { box-shadow: inset 4px 0 0 var(--sky-bright); }
  .hero { padding: 48px 16px 44px; margin-bottom: 36px; }
  .hero h1 { font-size: 1.6rem; }
  .hero p { font-size: .95rem; }
  .container { padding: 0 14px 56px; }
  .grid { grid-template-columns: 1fr; gap: 18px; }
  .section-title { font-size: 1.28rem; margin: 40px 0 18px; }
  .article { padding: 26px 18px 30px; font-size: 15.5px; line-height: 1.9; margin-top: 20px; }
  .article h1 { font-size: 1.42rem; }
  .article h2 { font-size: 1.2rem; margin: 40px 0 14px; scroll-margin-top: 74px; }
  .article h3 { scroll-margin-top: 74px; }
  .toc { padding: 16px 18px 10px; }
  .photo-slot { aspect-ratio: 4 / 3; }
  .site-footer { padding: 36px 16px 32px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .card, .back-to-top { transition: none; }
  .card:hover { transform: none; }
}
