@charset "UTF-8";

/* ============================================================
   NORDIC JOURNEY - スタイルシート

   【もくじ】
    01. 設定（色・文字サイズ・余白）  ← 色を変えたいときはここ
    02. 基本設定・リセット
    03. 共通レイアウト（container / section）
    04. 共通パーツ（ボタン・見出し・バッジ）
    05. ヘッダー
    06. ヒーローセクション
    07. このサイトについて
    08. 海外旅行一覧
    09. 注目の旅行記
    10. 旅の流れ
    11. フォトギャラリー
    12. 旅のメモ / 持ち物 / 注意点
    13. よくある質問（FAQ）
    14. プロフィール
    15. 最終CTAバンド
    16. フッター
    17. 写真の拡大表示（ライトボックス）
    18. スクロール時のアニメーション
    19. スマホ・タブレット対応  ← 画面が狭いときの調整はここ
   ============================================================ */


/* ============================================================
   01. 設定（色・文字サイズ・余白）
   ------------------------------------------------------------
   ここの色コードを変えると、サイト全体の色がまとめて変わります。
   ============================================================ */
:root {
  /* --- 色 --- */
  --color-navy:        #0f2438;   /* 見出し・濃い背景 */
  --color-navy-dark:   #0a1a29;   /* フッターなど、さらに濃い背景 */
  /* 色は「白文字を乗せても読める濃さ」を確認済みです（WCAG AA 4.5:1 以上）。
     変更するときは、あまり薄くしすぎないよう注意してください。 */
  --color-accent:      #0f7d6e;   /* アクセント色（オーロラの緑） */
  --color-accent-dark: #0a5e52;   /* アクセント色（マウスを乗せたとき） */
  --color-text:        #33414f;   /* 本文の文字色 */
  --color-text-mute:   #5b6e82;   /* 補足の文字色（少し薄い） */
  --color-bg:          #ffffff;   /* 背景色 */
  --color-bg-soft:     #f2f6f8;   /* 1つおきのセクションの背景色 */
  --color-border:      #dde5ec;   /* 線の色 */

  /* --- 余白 --- */
  --space-section: 88px;          /* セクションの上下の余白 */
  --container-width: 1180px;      /* コンテンツの最大幅 */

  /* --- 角の丸み --- */
  --radius: 8px;
  --radius-lg: 14px;

  /* --- 影 --- */
  --shadow: 0 2px 10px rgba(15, 36, 56, .07);
  --shadow-hover: 0 10px 26px rgba(15, 36, 56, .13);
}


/* ============================================================
   02. 基本設定・リセット
   ============================================================ */
*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;        /* ページ内リンクをなめらかに移動 */
  scroll-padding-top: 90px;       /* 固定ヘッダーに隠れないようにする */
}

body {
  margin: 0;
  font-family: "Helvetica Neue", Arial, "Hiragino Kaku Gothic ProN",
               "Hiragino Sans", "Yu Gothic", Meiryo, sans-serif;
  font-size: 16px;
  line-height: 1.85;
  color: var(--color-text);
  background: var(--color-bg);
  -webkit-font-smoothing: antialiased;
}

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

h1, h2, h3, p, dl, dd, figure {
  margin: 0;
}

ul, ol {
  margin: 0;
  padding: 0;
  list-style: none;
}

a {
  color: var(--color-accent-dark);
}

/* キーボード操作でどこを選んでいるか分かるようにする（アクセシビリティ） */
a:focus-visible,
button:focus-visible {
  outline: 3px solid var(--color-accent);
  outline-offset: 3px;
  border-radius: 3px;
}

/* 画面には出さず、読み上げソフトにだけ伝えたい文字に使う */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

/* 「本文へスキップ」リンク（Tabキーを押したときだけ現れる） */
.skip-link {
  position: absolute;
  top: -100px;
  left: 16px;
  z-index: 200;
  padding: 12px 20px;
  background: var(--color-navy);
  color: #fff;
  text-decoration: none;
  border-radius: 0 0 var(--radius) var(--radius);
  transition: top .2s;
}
.skip-link:focus {
  top: 0;
}


/* ============================================================
   03. 共通レイアウト
   ============================================================ */

/* コンテンツを中央に置き、左右に余白をつくる箱 */
.container {
  width: 100%;
  max-width: var(--container-width);
  margin-inline: auto;
  padding-inline: 24px;
}

.section {
  padding-block: var(--space-section);
}

/* 1つおきに背景色を変えて、区切りを分かりやすくする */
.section--soft {
  background: var(--color-bg-soft);
}


/* ============================================================
   04. 共通パーツ（ボタン・見出し・バッジ）
   ============================================================ */

/* --- 見出し --- */
.section__title {
  font-size: 1.75rem;
  line-height: 1.5;
  color: var(--color-navy);
  text-align: center;
  margin-bottom: 44px;
  letter-spacing: .02em;
}

/* 左寄せにしたい見出しに付ける */
.section__title--left {
  text-align: left;
  margin-bottom: 18px;
}

/*
  見出しの下に添える小さな説明文。
  見出し（h2）の中に入れているので、検索エンジンには
  「海外旅行一覧 これまでに訪れた9か国の旅行記」のように
  ひとつの見出しとして読まれます。
*/
.section__sub {
  display: block;
  margin-top: 8px;
  font-size: .88rem;
  font-weight: 500;
  line-height: 1.6;
  color: var(--color-text-mute);
  letter-spacing: 0;
}

/* セクション下部の中央ボタン */
.section__action {
  margin-top: 32px;
  text-align: center;
}

/* --- ボタン --- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 12px 26px;
  font-size: .95rem;
  font-weight: 700;
  line-height: 1.4;
  text-align: center;
  text-decoration: none;
  border: 2px solid transparent;
  border-radius: var(--radius);
  cursor: pointer;
  transition: background-color .2s, color .2s, border-color .2s, transform .2s;
}
.btn:hover {
  transform: translateY(-2px);
}

/* 塗りつぶしボタン（アクセント色） */
.btn--primary {
  background: var(--color-accent);
  border-color: var(--color-accent);
  color: #fff;
}
.btn--primary:hover {
  background: var(--color-accent-dark);
  border-color: var(--color-accent-dark);
}

/* 濃紺の塗りつぶしボタン */
.btn--dark {
  background: var(--color-navy);
  border-color: var(--color-navy);
  color: #fff;
}
.btn--dark:hover {
  background: #16324c;
  border-color: #16324c;
}

/* 枠線だけのボタン */
.btn--outline {
  background: transparent;
  border-color: var(--color-border);
  color: var(--color-navy);
}
.btn--outline:hover {
  border-color: var(--color-accent);
  color: var(--color-accent-dark);
  background: #fff;
}

/* サイズ違い */
.btn--sm  { padding: 8px 18px;  font-size: .85rem; }
.btn--lg  { padding: 15px 34px; font-size: 1rem; }
.btn--block { display: flex; width: 100%; }

/* --- バッジ（「注目の旅行記」などの小さなラベル） --- */
.badge {
  display: inline-block;
  margin-bottom: 14px;
  padding: 5px 14px;
  font-size: .78rem;
  font-weight: 700;
  color: var(--color-accent-dark);
  background: #e5f3f0;
  border: 1px solid #bfe0d9;
  border-radius: 4px;
}


/* ============================================================
   05. ヘッダー
   ============================================================ */
.header {
  position: sticky;   /* スクロールしても上に貼り付く */
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, .96);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--color-border);
  transition: box-shadow .25s;
}

/* スクロールすると影がつく（js/script.js が付け外し） */
.header.is-scrolled {
  box-shadow: 0 2px 14px rgba(15, 36, 56, .09);
}

.header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  min-height: 74px;
}

/* --- ロゴ --- */
.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--color-navy);
}
.logo__mark {
  width: 34px;
  height: 34px;
  flex-shrink: 0;
  color: var(--color-accent);
}
.logo__mark svg {
  width: 100%;
  height: 100%;
}
.logo__text {
  display: flex;
  flex-direction: column;
  line-height: 1.25;
}
.logo__name {
  font-size: 1.02rem;
  font-weight: 700;
  letter-spacing: .09em;
}
.logo__sub {
  font-size: .7rem;
  color: var(--color-text-mute);
  letter-spacing: .06em;
}

/* --- ナビゲーション --- */
.nav {
  display: flex;
  align-items: center;
  gap: 28px;
}
.nav__list {
  display: flex;
  align-items: center;
  gap: 26px;
}
.nav__link {
  position: relative;
  font-size: .9rem;
  font-weight: 500;
  color: var(--color-navy);
  text-decoration: none;
  padding-block: 6px;
}

/* マウスを乗せたとき／現在地のとき、下線を出す */
.nav__link::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  height: 2px;
  background: var(--color-accent);
  transform: scaleX(0);
  transition: transform .25s;
}
.nav__link:hover::after,
.nav__link.is-active::after {
  transform: scaleX(1);
}

/* --- スマホ用メニューボタン（PCでは非表示） --- */
.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 44px;
  height: 44px;
  padding: 0;
  background: transparent;
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  cursor: pointer;
}
.nav-toggle__bar {
  display: block;
  width: 20px;
  height: 2px;
  margin-inline: auto;
  background: var(--color-navy);
  transition: transform .25s, opacity .2s;
}

/* メニューを開いたときは「×」の形に変わる */
.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);
}


/* ============================================================
   06. ヒーローセクション
   ============================================================ */
.hero {
  position: relative;
  display: flex;
  align-items: center;
  min-height: 560px;
  padding-block: 80px;
  overflow: hidden;
}

/*
  メイン画像。写真を変えるときは index.html の <img class="hero__img"> を変更します。
  （CSSの背景画像ではなく <img> にしているのは、alt を付けて画像検索に載せるためです）
*/
.hero__img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* 画像の上に重ねる暗い膜。文字を読みやすくするためのもの */
.hero__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(100deg,
    rgba(9, 20, 33, .88) 0%,
    rgba(9, 20, 33, .70) 42%,
    rgba(9, 20, 33, .32) 100%);
}

.hero__inner {
  position: relative;   /* 背景より前に出す */
  color: #fff;
}

.hero__title {
  font-size: clamp(1.75rem, 4vw, 2.9rem);
  line-height: 1.45;
  font-weight: 700;
  letter-spacing: .02em;
  text-shadow: 0 2px 18px rgba(0, 0, 0, .45);
}

/* 見出しの上に置く小さなラベル（キーワードを自然に入れる場所） */
.hero__eyebrow {
  display: block;
  margin-bottom: 14px;
  font-size: .82rem;
  font-weight: 700;
  letter-spacing: .14em;
  color: #8fe3d2;
  text-shadow: 0 1px 10px rgba(0, 0, 0, .5);
}

.hero__lead {
  max-width: 34em;
  margin-block: 20px 32px;
  font-size: 1.02rem;
  color: #e4edf3;
  text-shadow: 0 1px 12px rgba(0, 0, 0, .5);
}


/* ============================================================
   07. このサイトについて
   ============================================================ */
.about__grid {
  display: grid;
  grid-template-columns: 1.25fr auto 1fr;
  align-items: center;
  gap: 48px;
}

.about__text p {
  color: var(--color-text-mute);
}

/* 段落が続くときの間隔 */
.about__text p + p {
  margin-top: 15px;
}

/* 文中で強調した語（サイト名・対象者など） */
.about__text strong {
  color: var(--color-navy);
}

/* 丸く切り抜いた画像 */
.about__figure img {
  width: 150px;
  height: 150px;
  object-fit: cover;
  border-radius: 50%;
  border: 5px solid #fff;
  box-shadow: var(--shadow);
}

.about__points {
  display: grid;
  gap: 16px;
}
.about__points li {
  display: flex;
  align-items: center;
  gap: 12px;
  font-weight: 500;
  color: var(--color-navy);
}

/* チェックマークの丸 */
.check {
  display: grid;
  place-items: center;
  width: 26px;
  height: 26px;
  flex-shrink: 0;
  color: #fff;
  background: var(--color-accent);
  border-radius: 50%;
}
.check svg {
  width: 15px;
  height: 15px;
}


/* ============================================================
   08. 海外旅行一覧（国別カード）
   ============================================================ */
.card-grid {
  display: grid;
  /* 1枚あたり最低196px。画面幅に応じて自動で列数が変わります */
  grid-template-columns: repeat(auto-fill, minmax(196px, 1fr));
  gap: 22px;
}

.card {
  display: flex;
  flex-direction: column;
  height: 100%;
  background: #fff;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: box-shadow .25s, transform .25s;
}
.card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-hover);
}

.card__img {
  width: 100%;
  aspect-ratio: 4 / 3;   /* 写真の比率をそろえる */
  object-fit: cover;
}

.card__body {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 8px;
  padding: 18px 18px 20px;
  flex-grow: 1;
}

.card__title {
  font-size: 1.05rem;
  color: var(--color-navy);
}

.card__text {
  font-size: .84rem;
  line-height: 1.7;
  color: var(--color-text-mute);
  flex-grow: 1;   /* 説明文の長さが違ってもボタンの位置がそろう */
}


/* ============================================================
   09. 注目の旅行記
   ============================================================ */
.featured__grid {
  display: grid;
  grid-template-columns: 1fr 1.05fr;
  align-items: center;
  gap: 52px;
}

.featured__media img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
}

/* 公開日・書いた人。信頼性を示す情報なので小さく添える */
.featured__meta {
  margin-bottom: 14px;
  font-size: .8rem;
  color: var(--color-text-mute);
}

.featured__lead {
  margin-bottom: 26px;
  color: var(--color-text-mute);
}

/* --- 旅の基本情報の表 --- */
.spec {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  margin-bottom: 22px;
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  overflow: hidden;
}
.spec__item {
  padding: 14px 12px;
  text-align: center;
  border-right: 1px solid var(--color-border);
}
.spec__item:last-child {
  border-right: 0;
}
.spec__label {
  font-size: .76rem;
  font-weight: 700;
  color: var(--color-text-mute);
}
.spec__value {
  margin-top: 4px;
  font-size: .88rem;
  line-height: 1.6;
  font-weight: 700;
  color: var(--color-navy);
}


/* ============================================================
   10. 旅の流れ（行程ステップ）
   ============================================================ */
.flow__list {
  display: flex;
  flex-wrap: wrap;
  gap: 30px;
}

.flow__item {
  position: relative;
  flex: 1 1 180px;
  padding: 16px;
  background: #fff;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
}

/* ステップとステップの間の矢印（狭い画面では非表示にします） */
.flow__item:not(:last-child)::after {
  content: "";
  position: absolute;
  top: 50%;
  right: -21px;
  width: 12px;
  height: 12px;
  border-top: 2px solid #b8c6d2;
  border-right: 2px solid #b8c6d2;
  transform: translateY(-50%) rotate(45deg);
}

.flow__head {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  margin-bottom: 12px;
  min-height: 3.2em;
}

/* 丸い番号 */
.flow__num {
  display: grid;
  place-items: center;
  width: 21px;
  height: 21px;
  flex-shrink: 0;
  font-size: .75rem;
  font-weight: 700;
  color: #fff;
  background: var(--color-navy);
  border-radius: 50%;
}

.flow__title {
  font-size: .87rem;
  line-height: 1.45;
  color: var(--color-navy);
}

.flow__img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: var(--radius);
}

.flow__text {
  margin-top: 12px;
  font-size: .82rem;
  line-height: 1.75;
  color: var(--color-text-mute);
}


/* ============================================================
   11. フォトギャラリー
   ============================================================ */
.gallery__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

/* 写真1枚ずつがボタンになっています（クリックで拡大） */
.gallery__item {
  display: block;
  width: 100%;
  padding: 0;
  background: none;
  border: 0;
  border-radius: var(--radius-lg);
  overflow: hidden;
  cursor: pointer;
}
.gallery__item img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  transition: transform .4s, filter .3s;
}
.gallery__item:hover img {
  transform: scale(1.06);
  filter: brightness(1.06);
}


/* ============================================================
   12. 旅のメモ / 持ち物 / 注意点
   ============================================================ */
.notes__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 22px;
}

.note {
  padding: 26px 24px;
  background: #fff;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
}

.note__icon {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  margin-bottom: 14px;
  color: var(--color-accent-dark);
  background: #e5f3f0;
  border-radius: 10px;
}
.note__icon svg {
  width: 23px;
  height: 23px;
}

.note__title {
  margin-bottom: 10px;
  font-size: 1rem;
  color: var(--color-navy);
}

.note__list li {
  position: relative;
  padding-left: 15px;
  font-size: .85rem;
  line-height: 1.9;
  color: var(--color-text-mute);
}

/* 行頭の点 */
.note__list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: .78em;
  width: 5px;
  height: 5px;
  background: var(--color-accent);
  border-radius: 50%;
}


/* ============================================================
   13. よくある質問（FAQ）
   ============================================================ */
.faq__list {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}

.faq__item {
  padding: 24px 26px;
  background: #fff;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
}

/* 質問。行頭に「Q」を付ける */
.faq__q {
  position: relative;
  margin-bottom: 10px;
  padding-left: 30px;
  font-size: 1rem;
  line-height: 1.6;
  color: var(--color-navy);
}
.faq__q::before {
  content: "Q";
  position: absolute;
  left: 0;
  top: -1px;
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--color-accent);
}

/* 回答。行頭に「A」を付ける */
.faq__a {
  position: relative;
  padding-left: 30px;
  font-size: .88rem;
  line-height: 1.9;
  color: var(--color-text-mute);
}
.faq__a::before {
  content: "A";
  position: absolute;
  left: 0;
  top: 0;
  font-size: 1.05rem;
  font-weight: 700;
  color: #b8c6d2;
}


/* ============================================================
   14. プロフィール
   ============================================================ */
.profile__inner {
  display: flex;
  align-items: center;
  gap: 34px;
  padding: 34px;
  background: #fff;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
}

.profile__photo {
  width: 128px;
  height: 128px;
  flex-shrink: 0;
  object-fit: cover;
  border-radius: 50%;
}

.profile__body {
  flex-grow: 1;
}

.profile__name {
  margin-bottom: 8px;
  font-size: 1.2rem;
  color: var(--color-navy);
}
.profile__name span {
  color: var(--color-accent-dark);
}

.profile__text {
  font-size: .9rem;
  color: var(--color-text-mute);
}

.profile__cta {
  flex-shrink: 0;
}


/* ============================================================
   15. 最終CTAバンド
   ============================================================ */
.cta-band {
  padding-block: 40px;
  background: var(--color-navy);
  color: #fff;
}

.cta-band__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 26px;
}

.cta-band__text {
  display: flex;
  align-items: center;
  gap: 14px;
  font-size: 1.18rem;
  font-weight: 700;
}

.cta-band__icon {
  width: 34px;
  height: 34px;
  flex-shrink: 0;
  color: #7fd8c8;
}
.cta-band__icon svg {
  width: 100%;
  height: 100%;
}


/* ============================================================
   16. フッター
   ============================================================ */
.footer {
  padding-block: 44px 30px;
  background: var(--color-navy-dark);
  color: #cfdae4;
  font-size: .87rem;
}

.footer__inner {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 30px;
  padding-bottom: 26px;
}

.footer__brand {
  display: flex;
  flex-direction: column;
  color: #fff;
}
.footer__brand .logo__sub {
  color: #93a7b8;
}

.footer__list {
  display: flex;
  flex-wrap: wrap;
  gap: 14px 28px;
}
.footer a {
  color: #cfdae4;
  text-decoration: none;
  transition: color .2s;
}
.footer a:hover {
  color: #7fd8c8;
  text-decoration: underline;
}

.footer__bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding-top: 22px;
  border-top: 1px solid rgba(255, 255, 255, .13);
  font-size: .8rem;
  color: #93a7b8;
}

.footer__policy {
  display: flex;
  gap: 22px;
}


/* ============================================================
   17. 写真の拡大表示（ライトボックス）
   ============================================================ */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 300;
  display: grid;
  place-items: center;
  padding: 28px;
  background: rgba(8, 17, 27, .93);
}
.lightbox[hidden] {
  display: none;
}

.lightbox__figure {
  max-width: 1000px;
  text-align: center;
}

.lightbox__img {
  max-width: 100%;
  max-height: 78vh;
  margin-inline: auto;
  border-radius: var(--radius);
}

.lightbox__caption {
  margin-top: 14px;
  font-size: .9rem;
  color: #d5e0ea;
}

.lightbox__close {
  position: absolute;
  top: 18px;
  right: 18px;
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  color: #fff;
  background: rgba(255, 255, 255, .12);
  border: 0;
  border-radius: 50%;
  cursor: pointer;
  transition: background-color .2s;
}
.lightbox__close:hover {
  background: rgba(255, 255, 255, .26);
}
.lightbox__close svg {
  width: 22px;
  height: 22px;
}


/* ============================================================
   18. スクロール時のアニメーション
   ------------------------------------------------------------
   下からふわっと現れる動き。js/script.js が is-visible を付けます。
   ============================================================ */
/*
  「.js」は、JavaScriptが使えるときだけ <html> に付くクラスです。
  そのため、JavaScriptが動かない環境では下の指定が効かず、
  中身が透明のまま消えてしまうことはありません。
*/
.js .reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity .7s ease, transform .7s ease;
}
.js .reveal.is-visible {
  opacity: 1;
  transform: none;
}

/* パソコンの「視差効果を減らす」設定がONの人には動きを見せない配慮 */
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  *,
  *::before,
  *::after {
    animation-duration: .01ms !important;
    transition-duration: .01ms !important;
  }
  .js .reveal {
    opacity: 1;
    transform: none;
  }
}


/* ============================================================
   19. スマホ・タブレット対応
   ------------------------------------------------------------
   画面が狭いときだけ適用される調整です。
   表示が崩れたときは、まずここを確認してください。
   ============================================================ */

/* ---------- タブレット（1024px以下） ---------- */
@media (max-width: 1024px) {

  /* 旅の流れ：矢印を消して、2〜3列で折り返す */
  .flow__item:not(:last-child)::after {
    display: none;
  }
  .flow__list {
    gap: 20px;
  }
  .flow__item {
    flex: 1 1 200px;
  }

  /* 旅のメモ：4列 → 2列 */
  .notes__grid {
    grid-template-columns: repeat(2, 1fr);
  }
}


/* ---------- ナビ項目が増えたときの調整（1100px以下） ---------- */
@media (max-width: 1100px) and (min-width: 901px) {
  .nav {
    gap: 18px;
  }
  .nav__list {
    gap: 18px;
  }
  .nav__link {
    font-size: .85rem;
  }
}


/* ---------- タブレット縦・小さめのPC（900px以下） ---------- */
@media (max-width: 900px) {
  :root {
    --space-section: 64px;
  }

  /* --- ヘッダー：メニューをボタン式に切り替え --- */
  .nav-toggle {
    display: flex;
  }

  .nav {
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 8px 24px 22px;
    background: #fff;
    border-bottom: 1px solid var(--color-border);
    box-shadow: 0 12px 20px rgba(15, 36, 56, .1);

    /* 普段は閉じておく */
    display: none;
  }
  /* js/script.js が is-open を付けると開きます */
  .nav.is-open {
    display: flex;
  }

  .nav__list {
    flex-direction: column;
    align-items: stretch;
    gap: 0;
  }
  .nav__link {
    display: block;
    padding: 14px 4px;
    border-bottom: 1px solid var(--color-border);
  }
  .nav__link::after {
    display: none;
  }
  .nav__cta {
    margin-top: 16px;
    align-self: flex-start;
  }

  /* --- このサイトについて：横3列 → 縦積み --- */
  .about__grid {
    grid-template-columns: 1fr;
    gap: 28px;
    text-align: center;
  }
  .about__text {
    text-align: left;
  }
  .about__figure {
    display: flex;
    justify-content: center;
  }
  .about__points {
    justify-items: start;
    max-width: 340px;
    margin-inline: auto;
  }

  /* --- 注目の旅行記：横2列 → 縦積み --- */
  .featured__grid {
    grid-template-columns: 1fr;
    gap: 28px;
  }

  /* --- 旅の基本情報：4列 → 2列 --- */
  .spec {
    grid-template-columns: repeat(2, 1fr);
  }
  .spec__item:nth-child(2n) {
    border-right: 0;
  }
  .spec__item:nth-child(-n+2) {
    border-bottom: 1px solid var(--color-border);
  }

  /* --- プロフィール：横並び → 縦積み --- */
  .profile__inner {
    flex-direction: column;
    text-align: center;
    gap: 20px;
  }

  /* --- 最終CTA：横並び → 縦積み --- */
  .cta-band__inner {
    flex-direction: column;
    text-align: center;
  }
  .cta-band__text {
    flex-direction: column;
    gap: 10px;
    font-size: 1.05rem;
  }

  /* --- フッター：横並び → 縦積み --- */
  .footer__inner,
  .footer__bottom {
    flex-direction: column;
    align-items: flex-start;
  }
}


/* ---------- スマホ（600px以下） ---------- */
@media (max-width: 600px) {
  :root {
    --space-section: 52px;
  }

  body {
    font-size: 15px;
  }

  .container {
    padding-inline: 18px;
  }

  .section__title {
    font-size: 1.35rem;
    margin-bottom: 28px;
  }
  .section__sub {
    font-size: .8rem;
  }
  .hero__eyebrow {
    font-size: .74rem;
    margin-bottom: 10px;
  }

  /* --- ヒーロー：文字が読みやすいように背景を濃いめに --- */
  .hero {
    min-height: 460px;
    padding-block: 56px;
    text-align: center;
  }
  .hero__bg {
    background-image:
      linear-gradient(180deg,
        rgba(9, 20, 33, .70) 0%,
        rgba(9, 20, 33, .82) 100%),
      url("../images/hero-aurora-lapland.jpg");
  }
  .hero__lead {
    margin-inline: auto;
    font-size: .95rem;
  }

  /* --- 海外旅行一覧：2列 --- */
  .card-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 14px;
  }
  .card__body {
    padding: 14px 13px 16px;
    gap: 6px;
  }
  .card__title {
    font-size: .95rem;
  }
  .card__text {
    font-size: .78rem;
  }

  /* --- 旅の流れ：1列に --- */
  .flow__item {
    flex: 1 1 100%;
  }
  .flow__head {
    min-height: 0;
  }
  .flow__title br {
    display: none;   /* 改行を解除して自然に折り返す */
  }

  /* --- ギャラリー：3列 → 2列 --- */
  .gallery__grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
  }

  /* --- 旅のメモ：2列 → 1列 --- */
  .notes__grid {
    grid-template-columns: 1fr;
  }

  /* --- よくある質問：2列 → 1列 --- */
  .faq__list {
    grid-template-columns: 1fr;
    gap: 14px;
  }
  .faq__item {
    padding: 20px 18px;
  }
  .faq__q {
    font-size: .95rem;
  }

  /* --- 旅の基本情報：2列 → 1列 --- */
  .spec {
    grid-template-columns: 1fr;
  }
  .spec__item {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 14px;
    text-align: left;
    border-right: 0;
    border-bottom: 1px solid var(--color-border);
  }
  .spec__item:last-child {
    border-bottom: 0;
  }
  .spec__item:nth-child(-n+2) {
    border-bottom: 1px solid var(--color-border);
  }
  .spec__value {
    margin-top: 0;
    text-align: right;
  }

  /* --- ボタン：押しやすい大きさに --- */
  .btn--lg {
    width: 100%;
    padding: 14px 20px;
  }

  /* --- プロフィール --- */
  .profile__inner {
    padding: 26px 20px;
  }
  .profile__cta {
    width: 100%;
  }

  /* --- ライトボックス --- */
  .lightbox {
    padding: 16px;
  }
  .lightbox__close {
    top: 10px;
    right: 10px;
  }
}
