@charset "UTF-8";

/*!
Theme Name: AWAJI DAYS
Description: awajidays.com 用 Cocoon 子テーマ／「みんなで行く、淡路島。」
Theme URI: https://wp-cocoon.com/
Author: AWAJI DAYS 編集部
Author URI: https://awajidays.com/
Template:   cocoon-master
Version:    1.0.0
*/

/************************************
** デザイントークン
************************************/
/* Figma「デザインドラフト / AWAJI DAYS TOP」準拠 */
:root {
  /* ブランド */
  --awj-navy:      #1b4f72; /* 主色。見出し・リンク・濃色セクション */
  --awj-navy-dk:   #16415e;
  --awj-navy-tint: #ebf3f9; /* ネイビーの淡い面（バッジ・タグ） */
  --awj-icon-bg:   #dde8f0; /* アイコン背景 */
  --awj-sea:       #1b4f72; /* 旧トークン互換 */
  --awj-sea-dark:  #16415e;
  --awj-sea-pale:  #ebf3f9;

  /* アクセント（オレンジ） */
  --awj-accent:    #d4891a; /* セクションラベル・CTA */
  --awj-accent-dk: #b8730f;
  --awj-accent-tint:#fef3e2;
  --awj-sunset:    #d4891a; /* 旧トークン互換 */
  --awj-sunset-dk: #b8730f;

  /* 面 */
  --awj-base:      #f4f1ec; /* ページ地。ベージュ */
  --awj-sand:      #f4f1ec; /* 旧トークン互換 */
  --awj-surface:   #ffffff;
  --awj-surface-2: #f8f6f3; /* おすすめ記事の面 */
  --awj-dark:      #2d3748; /* About */
  --awj-darker:    #1a202c; /* Footer */

  /* 文字 */
  --awj-ink:       #1a1a1a; /* 見出し */
  --awj-text:      #374151; /* 本文 */
  --awj-muted:     #6b7280; /* 補足 */
  --awj-on-navy:   #b8d4e8; /* ネイビー面の本文 */
  --awj-on-navy-2: #93b8d0; /* ネイビー面の補足 */
  --awj-on-dark:   #b8c1cc; /* ダーク面の本文 */
  --awj-line:      #e3e0da;
  --awj-tag-bg:    #f3f4f6;

  --awj-radius:    12px;
  --awj-radius-sm: 8px;
  --awj-shadow:    0 2px 10px rgba(27, 79, 114, .08);
  --awj-shadow-lg: 0 10px 28px rgba(27, 79, 114, .14);

  /* TOPの最大コンテンツ幅（Figma 1152px） */
  --awj-rakuten: #03b900;
  --awj-rakuten-dk: #029400;
  --awj-container: 1152px;
}

/************************************
** ベース
************************************/
body {
  color: var(--awj-text);
}

a {
  color: var(--awj-sea);
}
a:hover {
  color: var(--awj-sea-dark);
}

/************************************
** 記事の見出し
** Figmaのセクションラベル（オレンジの縦バー＋ネイビー文字）と同じ言語に揃える。
** 面で塗らず、線と余白で階層を作る。
************************************/

/* まずCocoon標準の装飾を全部落とす（二重適用を防ぐ） */
.article h2,
.article h3,
.article h4,
.article h5 {
  background: none;
  border: 0;
  border-radius: 0;
  color: var(--awj-navy);
  padding: 0;
}
.article h2::before, .article h2::after,
.article h3::before, .article h3::after,
.article h4::before, .article h4::after,
.article h5::before, .article h5::after {
  display: none;
}

/* H2 — もっとも強い。オレンジの縦バー＋下の区切り線 */
.article h2 {
  align-items: baseline;
  border-bottom: 1px solid var(--awj-line);
  display: flex;
  font-size: 1.5rem;
  font-weight: 700;
  gap: 14px;
  letter-spacing: .01em;
  line-height: 1.55;
  margin: 3.2em 0 1.1em;
  padding: 0 0 .55em;
}
.article h2::before {
  background: var(--awj-accent);
  border-radius: 2px;
  content: "";
  display: block;
  flex: 0 0 auto;
  height: .95em;
  position: relative;
  top: .1em;
  width: 5px;
}

/* H3 — ネイビーの細い縦バーのみ。線で囲わない */
.article h3 {
  border-left: 3px solid var(--awj-navy);
  font-size: 1.2rem;
  font-weight: 700;
  line-height: 1.6;
  margin: 2.6em 0 .9em;
  padding: .1em 0 .1em .7em;
}

/* H4 — 装飾なし。文字の強さだけで階層を作る */
.article h4 {
  font-size: 1.05rem;
  font-weight: 700;
  line-height: 1.6;
  margin: 2em 0 .7em;
}
.article h4::before {
  color: var(--awj-accent);
  content: "— ";
  display: inline;
  font-weight: 700;
}

/* 見出し直後の段落は詰める */
.article h2 + p,
.article h3 + p,
.article h4 + p {
  margin-top: 0;
}

/************************************
** 本文中の表（比較表を多用するため既定を整える）
************************************/
.article table {
  border-collapse: collapse;
  width: 100%;
}
.article table th,
.article table td {
  border: 1px solid var(--awj-line);
  padding: 10px 12px;
  vertical-align: top;
}
.article table th {
  background: var(--awj-sea-pale);
  color: var(--awj-navy);
  font-weight: 700;
  white-space: nowrap;
}
.article table tbody th {
  white-space: normal;
}

/************************************
** 目次
************************************/
.toc {
  background: var(--awj-sea-pale);
  border: 1px solid var(--awj-line);
  border-radius: var(--awj-radius);
}
.toc-title {
  color: var(--awj-navy);
}

/************************************
** ヘッダー・グローバルナビ
************************************/
.navi-in > ul > li > a:hover {
  background: var(--awj-sea-pale);
  color: var(--awj-navy);
}

/************************************
** フッター
************************************/
.footer {
  background: var(--awj-navy);
  color: #dbe6ee;
}
.footer a {
  color: #fff;
}

/************************************
** パンくず
************************************/
.breadcrumb {
  color: var(--awj-muted);
  font-size: .82rem;
}

/************************************
** 記事一覧カード
************************************/
.entry-card-wrap {
  border-radius: var(--awj-radius);
  transition: box-shadow .2s, transform .2s;
}
.entry-card-wrap:hover {
  box-shadow: var(--awj-shadow-lg);
  transform: translateY(-2px);
}
.entry-card-title {
  color: var(--awj-navy);
}

/************************************
** 記事コンポーネント
************************************/

/* 広告・アフィリエイト表記（functions.php が自動挿入） */
.awj-ad-disclosure {
  background: var(--awj-sand);
  border: 1px solid var(--awj-line);
  border-radius: 6px;
  color: var(--awj-muted);
  font-size: .78rem;
  margin: 0 0 20px;
  padding: 8px 12px;
}

/* 情報確認日（functions.php が自動挿入） */
.awj-checked-date {
  border-top: 1px solid var(--awj-line);
  color: var(--awj-muted);
  font-size: .8rem;
  margin: 32px 0 0;
  padding: 12px 0 0;
}

/* この記事でわかること */
.awj-summary {
  background: var(--awj-sea-pale);
  border-left: 4px solid var(--awj-sea);
  border-radius: 0 var(--awj-radius) var(--awj-radius) 0;
  margin: 28px 0;
  padding: 18px 22px;
}
.awj-summary__title {
  align-items: center;
  color: var(--awj-navy);
  display: flex;
  font-size: .95rem;
  font-weight: 700;
  gap: 10px;
  margin: 0 0 10px;
}
.awj-summary__title::before {
  background: var(--awj-sea);
  border-radius: 2px;
  content: "";
  display: block;
  height: 1em;
  width: 4px;
}
.awj-summary li {
  margin-bottom: 4px;
}
.awj-summary ul {
  margin: 0;
  padding-left: 20px;
}

/* 送客CTA（[awj_cta] ショートコード） */
.awj-cta {
  margin: 32px 0;
  text-align: center;
}
.awj-cta__button {
  background: var(--awj-sunset);
  border-radius: 6px;
  color: #fff !important;
  display: inline-block;
  font-size: 1.05rem;
  font-weight: 700;
  padding: 15px 36px;
  text-decoration: none !important;
  transition: background .2s, transform .2s;
}
.awj-cta__button:hover {
  background: var(--awj-sunset-dk);
  transform: translateY(-1px);
}
/* 楽天トラベルは楽天のブランドカラーに合わせる */
.awj-cta--rakuten .awj-cta__button {
  background: var(--awj-rakuten);
}
.awj-cta--rakuten .awj-cta__button:hover {
  background: var(--awj-rakuten-dk);
}
.awj-cta--en .awj-cta__button {
  background: var(--awj-sea);
}
.awj-cta--en .awj-cta__button:hover {
  background: var(--awj-sea-dark);
}
.awj-cta__note {
  color: var(--awj-muted);
  font-size: .8rem;
  margin: 10px 0 0;
}

/* FAQ */
.awj-faq details {
  border: 1px solid var(--awj-line);
  border-radius: var(--awj-radius-sm);
  margin-bottom: 10px;
}
.awj-faq summary {
  color: var(--awj-navy);
  cursor: pointer;
  font-weight: 700;
  list-style: none;
  padding: 16px 20px;
}
.awj-faq summary::-webkit-details-marker {
  display: none;
}
.awj-faq details[open] > div {
  border-top: 1px solid var(--awj-line);
  padding: 16px 20px;
}

/* H2直下に入るセクション画像。
   直前に置くと Cocoon が最初のH2の前に出す目次と衝突するため、直下に配置する。 */
.h2-visual {
  margin: 0 0 1.8em;
}
.h2-visual img {
  border-radius: var(--awj-radius);
  display: block;
  height: auto;
  width: 100%;
}
@media screen and (max-width: 767px) {
  .h2-visual { margin: 0 0 1.4em; }
}

/* 注意・ポイントボックス */
.awj-note {
  background: var(--awj-accent-tint);
  border-left: 4px solid var(--awj-accent);
  border-radius: 0 var(--awj-radius) var(--awj-radius) 0;
  margin: 28px 0;
  padding: 18px 22px;
}
.awj-note p:last-child,
.awj-note ul:last-child {
  margin-bottom: 0;
}

/************************************
** お問い合わせフォーム（Contact Form 7）
************************************/
.awj-form {
  margin: 24px 0;
}

.awj-form__row {
  margin: 0 0 22px;
}

.awj-form__label {
  color: var(--awj-navy);
  display: block;
  font-size: .92rem;
  font-weight: 700;
  margin: 0 0 6px;
}

.awj-form__req,
.awj-form__opt {
  border-radius: 3px;
  font-size: .7rem;
  font-weight: 700;
  margin-left: 6px;
  padding: 2px 7px;
  vertical-align: 2px;
}
.awj-form__req {
  background: #fdeceb;
  color: #c0392b;
}
.awj-form__opt {
  background: #eef1f4;
  color: var(--awj-muted);
}

.awj-form__help {
  color: var(--awj-muted);
  display: block;
  font-size: .78rem;
  line-height: 1.6;
  margin-top: 6px;
}

/* 入力欄 */
.awj-form input[type="text"],
.awj-form input[type="email"],
.awj-form input[type="url"],
.awj-form textarea,
.awj-form select {
  background: #fff;
  border: 1px solid var(--awj-line);
  border-radius: 6px;
  box-sizing: border-box;
  color: var(--awj-text);
  /* 16px未満だとiOSで自動ズームするため下げない */
  font-size: 16px;
  padding: 12px 14px;
  transition: border-color .2s, box-shadow .2s;
  width: 100%;
}
.awj-form input[type="text"]:focus,
.awj-form input[type="email"]:focus,
.awj-form input[type="url"]:focus,
.awj-form textarea:focus,
.awj-form select:focus {
  border-color: var(--awj-sea);
  box-shadow: 0 0 0 3px rgba(26, 127, 168, .15);
  outline: none;
}
.awj-form textarea {
  line-height: 1.7;
  resize: vertical;
}

/* 同意チェックボックス */
.awj-form__consent {
  background: var(--awj-sand);
  border: 1px solid var(--awj-line);
  border-radius: var(--awj-radius);
  font-size: .88rem;
  margin: 0 0 24px;
  padding: 14px 16px;
}
.awj-form__consent label {
  align-items: center;
  cursor: pointer;
  display: flex;
  gap: 8px;
  margin: 0;
}
.awj-form__consent input[type="checkbox"] {
  flex: 0 0 auto;
  height: 18px;
  margin: 0;
  width: 18px;
}
.awj-form__consent .wpcf7-list-item {
  margin: 0;
}

/* 送信ボタン */
.awj-form__submit {
  margin: 0;
  text-align: center;
}
.awj-form input[type="submit"] {
  background: var(--awj-sunset);
  border: none;
  border-radius: 6px;
  color: #fff;
  cursor: pointer;
  font-size: 1.05rem;
  font-weight: 700;
  min-width: 240px;
  padding: 15px 36px;
  transition: background .2s, transform .2s;
}
.awj-form input[type="submit"]:hover {
  background: var(--awj-sunset-dk);
  transform: translateY(-1px);
}
.awj-form input[type="submit"]:disabled {
  background: var(--awj-muted);
  cursor: not-allowed;
  transform: none;
}

/* CF7 のバリデーション表示 */
.wpcf7-not-valid-tip {
  color: #c0392b;
  font-size: .8rem;
  margin-top: 5px;
}
.awj-form .wpcf7-not-valid {
  border-color: #c0392b;
}
.wpcf7-response-output {
  border-radius: var(--awj-radius);
  font-size: .9rem;
  line-height: 1.7;
  margin: 24px 0 0 !important;
  padding: 14px 18px !important;
}
.wpcf7 form.sent .wpcf7-response-output {
  background: #eef8f1;
  border: 1px solid #a9d8ba;
  color: #1e6b3a;
}
.wpcf7 form.invalid .wpcf7-response-output,
.wpcf7 form.unaccepted .wpcf7-response-output,
.wpcf7 form.failed .wpcf7-response-output {
  background: #fdeceb;
  border: 1px solid #f0b8b3;
  color: #c0392b;
}
.wpcf7-spinner {
  vertical-align: middle;
}

/************************************
** TOPページ（固定ページ）
** Figma「デザインドラフト / AWAJI DAYS TOP・SP TOP」準拠
************************************/

/* TOPでは Cocoon が自動で足す部品をすべて消して、全幅のLPにする。
   body.home は「ホームページの表示＝固定ページ」のとき付くクラス。

   ★重要：:has() を使うルールは必ず別ルールに分ける。
     CSSのセレクタリストは1つでも解釈できないものが混ざると
     ルール全体が破棄される仕様のため、:has() 非対応環境では
     同じリストに入れた body.home 側まで無効になる。 */

/* --- (0) フロントページのヘッダー ---
   Cocoon の構造:
     .header-container > .header-container-in
        ├ header.header  →  .tagline と .logo（サイトタイトル）＝この帯を消す
        └ nav.navi       →  グローバルナビ＝残す（兄弟要素なので巻き込まれない）
   Hero を画面最上部から見せるため、TOPだけタイトルの帯を消す。 */
body.home .header-container .header {
  display: none !important;
}
/* 帯を消した分の余白・背景も詰める */
body.home .header-container,
body.home .header-container-in {
  background: transparent;
  margin: 0;
  padding: 0;
}

/* --- (1) :has() を使わない確実なルール --- */
body.home .entry-title,
body.home .article-header,
body.home .breadcrumb,
body.home .date-tags,
body.home .footer-meta,
body.home .sns-share,
body.home .sns-share-message,
body.home .sns-follow,
body.home .sns-follow-message,
body.home .author-info,
body.home .related-entries,
body.home .pager-post-navi,
body.home .comment-area,
body.home #comment-area,
body.home .under-entry-content,
body.home .entry-card-wrap,
body.page .awj-top ~ .entry-title {
  display: none !important;
}

body.home .content,
body.home .main,
body.home .entry-content,
body.home .article,
body.home .content-in {
  margin: 0;
  max-width: none;
  padding: 0;
  width: 100%;
}
body.home .main {
  border: 0;
  box-shadow: none;
}

/* Cocoonのモバイル固定メニュー（ホーム／検索／トップへ／サイドバー）の保険。
   本体は Cocoon設定 > モバイルボタン でOFFにしている。
   設定が戻ってしまったときのための備えとして残すだけなので、
   ここでは display の指定のみに留める（body の余白など広い指定はしない）。 */
.mobile-menu-buttons,
.mobile-footer-menu-buttons {
  display: none !important;
}

/* メニュー未設定のときに残る空のナビ帯を畳む。
   （項目を1つでも登録すれば自動で表示される）
   :has() 非対応環境でも他のルールに影響しないよう単独で書く。 */
body.home .navi:not(:has(.menu-item)) {
  display: none !important;
}

/* --- (2) :has() 対応ブラウザ向けの保険。別ルールなので
       非対応環境でも上の (1) は生き残る --- */
body:has(.awj-top) .entry-title,
body:has(.awj-top) .article-header,
body:has(.awj-top) .breadcrumb,
body:has(.awj-top) .date-tags,
body:has(.awj-top) .footer-meta,
body:has(.awj-top) .sns-share,
body:has(.awj-top) .sns-share-message,
body:has(.awj-top) .sns-follow,
body:has(.awj-top) .sns-follow-message,
body:has(.awj-top) .author-info,
body:has(.awj-top) .related-entries,
body:has(.awj-top) .pager-post-navi,
body:has(.awj-top) .comment-area,
body:has(.awj-top) #comment-area,
body:has(.awj-top) .under-entry-content {
  display: none !important;
}
body:has(.awj-top) .content,
body:has(.awj-top) .main,
body:has(.awj-top) .entry-content,
body:has(.awj-top) .article,
body:has(.awj-top) .content-in {
  margin: 0;
  max-width: none;
  padding: 0;
  width: 100%;
}
body:has(.awj-top) .main {
  border: 0;
  box-shadow: none;
}

/* TOPはサイドバー非表示（Cocoon設定の「1カラム」でも可） */
body.home #sidebar,
body.home .sidebar {
  display: none !important;
}
body:has(.awj-top) #sidebar,
body:has(.awj-top) .sidebar {
  display: none !important;
}

/* Cocoon本体の指定が、TOPの各要素の margin/padding:0（詳細度 0,1,0）に
   勝ってしまう。.awj-top を前置して詳細度を上げ、まとめて打ち消す。
     .article ul, .article ol { padding-left: 26px }   → カードが右にずれる
     .article p { margin-bottom: 1.8em }               → カード内の行間が開きすぎる
   いずれも詳細度 (0,1,1) で、Cocoonがインラインで出力している。 */
.awj-top ul,
.awj-top ol {
  list-style: none;
  padding-left: 0;
}
.awj-top p {
  margin: 0;
}

/* ↑ここでは margin を一括で 0 にしない。
   .awj-top ul（詳細度 0,1,1）が .awj-nums など個別の指定（0,1,0）に勝ってしまい、
   「人数カードの下の余白」のような必要な余白まで消えるため。
   リストの余白は各クラス側で指定する（いずれも margin を自前で持っている）。
   段落は TOP では flex の gap で間隔を作るので 0 でよいが、
   自前で margin を持つものは詳細度で勝たせること（例：.awj-about__text p）。 */

.awj-top {
  color: var(--awj-text);
  font-feature-settings: "palt";
  line-height: 1.75;
  margin: 0;
}
.awj-top * {
  box-sizing: border-box;
}
.awj-top a {
  text-decoration: none;
}

/* 共通コンテナ */
.awj-wrap {
  margin: 0 auto;
  max-width: var(--awj-container);
  padding: 0 24px;
  width: 100%;
}

/* ============ Hero ============ */
.awj-hero {
  align-items: center;
  background-color: #c8cbd0;
  background-image: var(--awj-hero-image, none);
  background-position: center;
  background-repeat: no-repeat;
  background-size: cover;
  display: flex;
  min-height: 600px;
  position: relative;
}
/* 暗いグラデーションのオーバーレイは使わない（キービジュアルをそのまま見せる） */
.awj-hero__inner {
  margin: 0 auto;
  max-width: var(--awj-container);
  padding: 0 24px;
  position: relative;
  width: 100%;
  z-index: 1;
}
.awj-hero__badge {
  background: var(--awj-accent);
  border-radius: 20px;
  color: #fff;
  display: inline-block;
  font-size: 12px;
  font-weight: 900;
  letter-spacing: .02em;
  margin: 0 0 16px;
  padding: 5px 14px;
}
/* グラデーションを使わないため、明るい空の上でも読めるよう影を強めに置く */
.awj-hero__title {
  color: #fff;
  font-size: 52px;
  font-weight: 900;
  letter-spacing: .01em;
  line-height: 1.25;
  margin: 0 0 8px;
  text-shadow: 0 2px 4px rgba(0, 0, 0, .55), 0 6px 22px rgba(0, 0, 0, .45);
}
.awj-hero__sub {
  color: #fff;
  font-size: 28px;
  font-weight: 900;
  line-height: 1.4;
  margin: 0 0 16px;
  text-shadow: 0 2px 4px rgba(0, 0, 0, .55), 0 5px 18px rgba(0, 0, 0, .4);
}
.awj-hero__lead {
  color: #fff;
  font-size: 18px;
  line-height: 1.6;
  margin: 0 0 4px;
  text-shadow: 0 1px 3px rgba(0, 0, 0, .6), 0 3px 14px rgba(0, 0, 0, .45);
}
.awj-hero__lead-sub {
  color: #f3f4f6;
  font-size: 16px;
  line-height: 1.6;
  margin: 0 0 24px;
  text-shadow: 0 1px 3px rgba(0, 0, 0, .6), 0 3px 14px rgba(0, 0, 0, .45);
}
.awj-hero__buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}
.awj-btn {
  border-radius: 8px;
  display: inline-flex;
  align-items: center;
  font-size: 16px;
  font-weight: 700;
  gap: 8px;
  justify-content: center;
  min-height: 48px;
  padding: 0 24px;
  transition: background .2s, transform .2s, border-color .2s;
}
.awj-btn--primary {
  background: var(--awj-accent);
  color: #fff !important;
}
.awj-btn--primary:hover {
  background: var(--awj-accent-dk);
  transform: translateY(-1px);
}
/* 枠線だけだと写真の上で文字が読めないため、濃紺の半透明を敷く。
   主ボタン（山吹色の塗り）との差は残したいので、不透明にはしない。 */
.awj-btn--ghost {
  background: rgba(27, 79, 114, .62);
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
  border: 2px solid rgba(255, 255, 255, .7);
  color: #fff !important;
  font-weight: 900;
}
.awj-btn--ghost:hover {
  background: rgba(27, 79, 114, .78);
  border-color: #fff;
}

/* ============ クイックナビ ============ */
.awj-quicknav {
  background: var(--awj-navy);
}
.awj-quicknav__inner {
  display: flex;
  justify-content: center;
  margin: 0 auto;
  max-width: var(--awj-container);
  padding: 0 24px;
}
.awj-quicknav__item {
  align-items: center;
  color: #fff !important;
  display: flex;
  font-size: 14px;
  font-weight: 500;
  gap: 8px;
  padding: 20px 22px;
  transition: background .2s;
  white-space: nowrap;
}
.awj-quicknav__item:hover {
  background: rgba(255, 255, 255, .1);
}
.awj-quicknav__item svg {
  flex: 0 0 auto;
  height: 18px;
  width: 18px;
}
.awj-quicknav__sep {
  align-self: center;
  background: rgba(255, 255, 255, .28);
  flex: 0 0 auto;
  height: 32px;
  width: 1px;
}

/* ============ セクション共通 ============ */
.awj-sec {
  padding: 72px 0;
}
.awj-sec--base { background: var(--awj-base); }
.awj-sec--white { background: var(--awj-surface); }
.awj-sec--navy { background: var(--awj-navy); }

.awj-sec__head {
  margin: 0 0 48px;
}
.awj-sec__label {
  align-items: center;
  color: var(--awj-accent);
  display: flex;
  font-size: 14px;
  font-weight: 900;
  gap: 8px;
  letter-spacing: .04em;
  margin: 0 0 12px;
}
.awj-sec__label::before {
  background: var(--awj-accent);
  content: "";
  display: block;
  height: 24px;
  width: 4px;
}
.awj-sec__lead {
  color: var(--awj-text);
  font-size: 16px;
  margin: 0;
}
.awj-sec--navy .awj-sec__lead {
  color: var(--awj-on-navy);
}

/* ============ 画像プレースホルダ（写真を差し替える箇所） ============
   背景色のまま出すと「色ブロック」、<img> を入れると写真に置き換わる。
   例: <div class="awj-photo" style="--ph:#b8c4cc"><img src="..." alt="..."></div>
*/
.awj-photo {
  background: var(--ph, #c3ccd4);
  display: block;
  overflow: hidden;
  position: relative;
}
.awj-photo img {
  display: block;
  height: 100%;
  object-fit: cover;
  width: 100%;
}

/* ============ カード（誰と行く / モデルコース） ============ */
.awj-cards {
  display: grid;
  gap: 24px;
  grid-template-columns: repeat(3, 1fr);
  list-style: none;
  margin: 0;
  padding: 0;
}
.awj-cards > li { margin: 0; }

.awj-card {
  background: var(--awj-base);
  border-radius: var(--awj-radius);
  color: inherit !important;
  display: flex;
  flex-direction: column;
  height: 100%;
  overflow: hidden;
  transition: box-shadow .2s, transform .2s;
}
.awj-sec--base .awj-card,
.awj-sec--navy .awj-card {
  background: var(--awj-surface);
}
.awj-card:hover {
  box-shadow: var(--awj-shadow-lg);
  transform: translateY(-3px);
}
.awj-card .awj-photo {
  height: 220px;
}
.awj-card__body {
  display: flex;
  flex: 1 1 auto;
  flex-direction: column;
  gap: 10px;
  padding: 20px;
}
.awj-card__tag {
  align-self: flex-start;
  background: var(--awj-navy);
  border-radius: 20px;
  color: #fff;
  font-size: 11px;
  font-weight: 500;
  padding: 3px 12px;
}
.awj-card__tag--soft {
  background: var(--awj-navy-tint);
  border-radius: 4px;
  color: var(--awj-navy);
  font-weight: 900;
}
.awj-card__tag--accent {
  background: var(--awj-accent-tint);
  border-radius: 4px;
  color: var(--awj-accent);
  font-weight: 900;
}
.awj-card__title {
  color: var(--awj-ink);
  font-size: 22px;
  font-weight: 700;
  line-height: 1.45;
  margin: 0;
}
.awj-card--course .awj-card__title {
  font-size: 18px;
}
.awj-card__desc {
  color: var(--awj-muted);
  font-size: 14px;
  line-height: 1.75;
  margin: 0;
}
.awj-card--course .awj-card__desc {
  font-size: 13px;
}
.awj-card__link {
  align-items: center;
  color: var(--awj-navy);
  display: flex;
  font-size: 14px;
  font-weight: 900;
  gap: 6px;
  margin-top: auto;
  padding-top: 4px;
}
.awj-card__link svg {
  height: 16px;
  transition: transform .2s;
  width: 16px;
}
.awj-card:hover .awj-card__link svg {
  transform: translateX(3px);
}

/* ============ 人数カード ============ */
.awj-nums {
  display: grid;
  gap: 24px;
  grid-template-columns: repeat(3, 1fr);
  list-style: none;
  margin: 0 0 24px;
  padding: 0;
}
.awj-nums > li { margin: 0; }

.awj-num {
  background: var(--awj-surface);
  border-radius: var(--awj-radius);
  color: inherit !important;
  display: flex;
  gap: 20px;
  height: 100%;
  justify-content: space-between;
  padding: 24px;
  transition: box-shadow .2s, transform .2s;
}
.awj-num:hover {
  box-shadow: var(--awj-shadow-lg);
  transform: translateY(-3px);
}
.awj-num__main {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.awj-num__figure {
  color: var(--awj-navy);
  font-size: 40px;
  font-weight: 900;
  line-height: 1.1;
  margin: 0;
}
.awj-num__label {
  color: var(--awj-text);
  font-size: 14px;
  font-weight: 500;
  margin: 0;
}
.awj-num__desc {
  color: var(--awj-muted);
  font-size: 13px;
  line-height: 1.7;
  margin: 0;
}
.awj-num__link {
  align-items: center;
  color: var(--awj-navy);
  display: flex;
  font-size: 14px;
  font-weight: 900;
  gap: 6px;
  margin-top: auto;
}
.awj-num__link svg { height: 16px; width: 16px; transition: transform .2s; }
.awj-num:hover .awj-num__link svg { transform: translateX(3px); }
.awj-num__badge {
  align-items: center;
  background: var(--awj-navy-tint);
  border-radius: 50%;
  color: var(--awj-navy);
  display: flex;
  flex: 0 0 auto;
  font-size: 28px;
  font-weight: 900;
  height: 64px;
  justify-content: center;
  width: 64px;
}
/* 強調（8人） */
.awj-num--accent {
  background: var(--awj-navy);
}
.awj-num--accent .awj-num__figure,
.awj-num--accent .awj-num__link { color: #fff; }
.awj-num--accent .awj-num__label { color: var(--awj-on-navy); }
.awj-num--accent .awj-num__desc { color: var(--awj-on-navy-2); }
.awj-num--accent .awj-num__badge {
  background: rgba(255, 255, 255, .18);
  color: #fff;
}

/* ============ 横長の記事カード ============ */
.awj-arts {
  display: grid;
  gap: 24px;
  grid-template-columns: repeat(2, 1fr);
  list-style: none;
  margin: 0;
  padding: 0;
}
.awj-arts > li { margin: 0; }

.awj-art {
  background: var(--awj-surface);
  border-radius: var(--awj-radius);
  color: inherit !important;
  display: grid;
  grid-template-columns: 240px 1fr;
  height: 100%;
  overflow: hidden;
  transition: box-shadow .2s, transform .2s;
}
.awj-art:hover {
  box-shadow: var(--awj-shadow-lg);
  transform: translateY(-3px);
}
.awj-art__body {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 20px;
}
.awj-art__tag {
  align-self: flex-start;
  background: var(--awj-tag-bg);
  border-radius: 4px;
  color: var(--awj-text);
  font-size: 11px;
  font-weight: 500;
  padding: 3px 10px;
}
.awj-art__title {
  color: var(--awj-ink);
  font-size: 16px;
  font-weight: 700;
  line-height: 1.55;
  margin: 0;
}
.awj-art__desc {
  color: var(--awj-muted);
  font-size: 13px;
  line-height: 1.75;
  margin: 0;
}
.awj-art__link {
  align-items: center;
  color: var(--awj-navy);
  display: flex;
  font-size: 13px;
  font-weight: 900;
  gap: 4px;
  margin-top: auto;
}
.awj-art__link svg { height: 14px; width: 14px; transition: transform .2s; }
.awj-art:hover .awj-art__link svg { transform: translateX(3px); }

/* ============ 何をする（アイコンカード） ============ */
.awj-whats {
  display: grid;
  gap: 18px;
  grid-template-columns: repeat(5, 1fr);
  list-style: none;
  margin: 0;
  padding: 0;
}
.awj-whats > li { margin: 0; }

.awj-what {
  align-items: center;
  background: var(--awj-base);
  border-radius: var(--awj-radius);
  color: inherit !important;
  display: flex;
  flex-direction: column;
  gap: 12px;
  height: 100%;
  justify-content: center;
  padding: 24px 16px;
  text-align: center;
  transition: box-shadow .2s, transform .2s;
}
.awj-what:hover {
  box-shadow: var(--awj-shadow-lg);
  transform: translateY(-3px);
}
.awj-what__icon {
  align-items: center;
  background: var(--awj-icon-bg);
  border-radius: 50%;
  color: var(--awj-navy);
  display: flex;
  flex: 0 0 auto;
  height: 56px;
  justify-content: center;
  width: 56px;
}
.awj-what__icon svg { height: 28px; width: 28px; }
.awj-what__title {
  color: var(--awj-ink);
  font-size: 18px;
  font-weight: 700;
  line-height: 1.4;
  margin: 0;
}
.awj-what__sub {
  color: var(--awj-muted);
  font-size: 13px;
  line-height: 1.5;
  margin: 0;
}
.awj-what__chev {
  color: var(--awj-navy);
  height: 16px;
  transition: transform .2s;
  width: 16px;
}
.awj-what:hover .awj-what__chev { transform: translateY(2px); }

/* ============ 泊まり方（ネイビー背景の大カード） ============ */
.awj-stays {
  display: grid;
  gap: 24px;
  grid-template-columns: repeat(2, 1fr);
  list-style: none;
  margin: 0;
  padding: 0;
}
.awj-stays > li { margin: 0; }

.awj-stay {
  background: rgba(255, 255, 255, .06);
  border: 1px solid rgba(255, 255, 255, .14);
  border-radius: var(--awj-radius);
  color: inherit !important;
  display: flex;
  flex-direction: column;
  height: 100%;
  overflow: hidden;
  transition: background .2s, transform .2s, border-color .2s;
}
.awj-stay:hover {
  background: rgba(255, 255, 255, .11);
  border-color: rgba(255, 255, 255, .3);
  transform: translateY(-3px);
}
.awj-stay .awj-photo { height: 240px; }
.awj-stay__body {
  display: flex;
  flex: 1 1 auto;
  flex-direction: column;
  gap: 12px;
  padding: 24px;
}
.awj-stay__title {
  color: #fff;
  font-size: 24px;
  font-weight: 700;
  margin: 0;
}
.awj-stay__label {
  color: var(--awj-on-navy-2);
  font-size: 14px;
  font-weight: 500;
  margin: 0;
}
.awj-stay__desc {
  color: var(--awj-on-navy);
  font-size: 14px;
  line-height: 1.75;
  margin: 0;
}
.awj-stay__link {
  align-items: center;
  color: #fff;
  display: flex;
  font-size: 14px;
  font-weight: 900;
  gap: 6px;
  margin-top: auto;
}
.awj-stay__link svg { height: 16px; width: 16px; transition: transform .2s; }
.awj-stay:hover .awj-stay__link svg { transform: translateX(3px); }

/* ============ 編集部のおすすめ（横並びリスト） ============ */
.awj-recs {
  display: flex;
  flex-direction: column;
  gap: 16px;
  list-style: none;
  margin: 0;
  padding: 0;
}
.awj-recs > li { margin: 0; }

.awj-rec {
  align-items: center;
  background: var(--awj-surface-2);
  border-radius: var(--awj-radius);
  color: inherit !important;
  display: grid;
  gap: 0;
  grid-template-columns: 220px 1fr 68px;
  overflow: hidden;
  transition: background .2s, transform .2s, box-shadow .2s;
}
.awj-rec:hover {
  background: #f2efe9;
  box-shadow: var(--awj-shadow);
  transform: translateX(4px);
}
.awj-rec .awj-photo { height: 160px; }
.awj-rec__body {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 20px 24px;
}
.awj-rec__cat {
  align-self: flex-start;
  background: var(--awj-navy-tint);
  border-radius: 4px;
  color: var(--awj-navy);
  font-size: 11px;
  font-weight: 900;
  padding: 3px 10px;
}
.awj-rec__title {
  color: var(--awj-ink);
  font-size: 20px;
  font-weight: 700;
  line-height: 1.45;
  margin: 0;
}
.awj-rec__desc {
  color: var(--awj-muted);
  font-size: 14px;
  line-height: 1.7;
  margin: 0;
}
.awj-rec__chev {
  align-items: center;
  color: var(--awj-navy);
  display: flex;
  justify-content: center;
}
.awj-rec__chev svg { height: 20px; transition: transform .2s; width: 20px; }
.awj-rec:hover .awj-rec__chev svg { transform: translateX(4px); }

/* ============ このサイトについて ============ */
.awj-about {
  background: var(--awj-dark);
  padding: 64px 0;
}
.awj-about__label {
  align-items: center;
  color: var(--awj-accent);
  display: flex;
  font-size: 14px;
  font-weight: 900;
  gap: 8px;
  margin: 0 0 24px;
}
.awj-about__label::before {
  background: var(--awj-accent);
  content: "";
  display: block;
  height: 24px;
  width: 4px;
}
.awj-about__grid {
  display: grid;
  gap: 48px;
  grid-template-columns: 1fr 360px;
}
.awj-about__text p {
  color: var(--awj-on-dark);
  font-size: 15px;
  line-height: 1.95;
  margin: 0 0 16px;
}
.awj-about__text p:last-child { margin-bottom: 0; }
.awj-about__links-title {
  border-bottom: 1px solid rgba(255, 255, 255, .18);
  color: #fff;
  font-size: 14px;
  font-weight: 900;
  margin: 0;
  padding-bottom: 10px;
}
.awj-about__links {
  list-style: none;
  margin: 0;
  padding: 0;
}
.awj-about__links li { margin: 0; }
.awj-about__links a {
  align-items: center;
  border-bottom: 1px solid rgba(255, 255, 255, .08);
  color: var(--awj-on-dark) !important;
  display: flex;
  font-size: 14px;
  justify-content: space-between;
  padding: 12px 0;
  transition: color .2s, padding-left .2s;
}
.awj-about__links a:hover {
  color: #fff !important;
  padding-left: 6px;
}
.awj-about__links svg { height: 14px; width: 14px; }

/************************************
** TOPページ レスポンシブ
************************************/

/* タブレット（1024px以下） */
@media screen and (max-width: 1024px) {
  .awj-cards { grid-template-columns: repeat(2, 1fr); }
  .awj-nums { grid-template-columns: 1fr; }
  .awj-whats { grid-template-columns: repeat(3, 1fr); }
  .awj-about__grid { grid-template-columns: 1fr; gap: 32px; }
  .awj-hero__title { font-size: 42px; }
  .awj-quicknav__inner { justify-content: flex-start; overflow-x: auto; }
}

/* スマホ（767px以下）— Figma「AWAJI DAYS SP TOP」準拠 */
@media screen and (max-width: 767px) {
  .awj-wrap,
  .awj-hero__inner,
  .awj-quicknav__inner { padding: 0 20px; }

  /* Hero：SP画像(750x1333)の比率に合わせて、画像が切れないようにする */
  .awj-hero {
    aspect-ratio: 750 / 1333;
    min-height: 0;
    padding-bottom: 32px;
    /* 子要素をヒーローの高さいっぱいに伸ばす（文字を上、ボタンを下に分けるため） */
    align-items: stretch;
  }
  .awj-hero__inner {
    display: flex;
    flex-direction: column;
    /* 縦フレックスの既定は stretch で、子が横いっぱいに伸びて見切れる。
       内容の幅に収めるため flex-start にする。 */
    align-items: flex-start;
    margin-top: 0;
  }
  /* 上の余白。縦フレックスなので % は「ヒーローの高さ」に対する割合になる。
     文字の位置を上下させたいときは、この数値だけを変える。
     小さくする → 上へ ／ 大きくする → 下へ */
  .awj-hero__inner::before {
    content: "";
    flex: 0 1 20%;
  }
  .awj-hero__buttons {
    /* ボタンだけ下端へ。横にはみ出させない */
    margin-top: auto;
    max-width: 100%;
  }
  .awj-hero__badge,
  .awj-hero__title,
  .awj-hero__sub,
  .awj-hero__lead,
  .awj-hero__lead-sub {
    max-width: 100%;
  }
  .awj-btn {
    max-width: 100%;
  }
  .awj-hero__badge { font-size: 11px; margin-bottom: 14px; }
  .awj-hero__title { font-size: 30px; margin-bottom: 6px; }
  .awj-hero__sub { font-size: 20px; margin-bottom: 14px; }
  .awj-hero__lead { font-size: 13px; }
  .awj-hero__lead-sub { font-size: 12px; margin-bottom: 20px; }

  /* ボタンは幅いっぱいにせず、文字数なりの幅で左寄せ。入らなければ折り返す */
  .awj-hero__buttons {
    flex-direction: row;
    flex-wrap: wrap;
    gap: 10px;
  }
  .awj-btn {
    font-size: 14px;
    min-height: 44px;
    padding: 0 18px;
    width: auto;
  }

  /* クイックナビ：はみ出す分は横スクロール。
   スクロールできることが分かるよう、右端をぼかして「続きがある」と示す。 */
  .awj-quicknav {
    position: relative;
  }
  .awj-quicknav::after {
    background: linear-gradient(to right, rgba(27, 79, 114, 0), var(--awj-navy));
    bottom: 0;
    content: "";
    pointer-events: none;
    position: absolute;
    right: 0;
    top: 0;
    width: 36px;
    z-index: 2;
  }
  .awj-quicknav__inner {
    justify-content: flex-start;
    overflow-x: auto;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
    /* 1項目ずつ気持ちよく止まる */
    scroll-snap-type: x proximity;
    /* 右端のぼかしの下に最後の項目が隠れ切らないよう余白を足す */
    padding-right: 44px;
  }
  .awj-quicknav__item {
    scroll-snap-align: start;
  }
  .awj-quicknav__inner::-webkit-scrollbar { display: none; }
  .awj-quicknav__item { font-size: 12px; gap: 6px; padding: 14px 12px; }
  .awj-quicknav__item svg { height: 14px; width: 14px; }
  .awj-quicknav__sep { height: 20px; }

  /* セクション */
  .awj-sec { padding: 34px 0; }
  .awj-sec__head { margin-bottom: 18px; }
  .awj-sec__label { font-size: 12px; gap: 6px; margin-bottom: 8px; }
  .awj-sec__label::before { height: 20px; width: 3px; }
  .awj-sec__lead { font-size: 20px; font-weight: 700; line-height: 1.5; }

  /* カードは1列。
     スマホは画面幅が狭いぶん、PCと同じ内側余白だと空きすぎて見える。
     本文の行間が確保できる範囲で、上下左右とも詰める。 */
  .awj-cards,
  .awj-arts,
  .awj-stays { grid-template-columns: 1fr; gap: 14px; }
  /* 人数カードの下には記事カード(.awj-arts)が続く。
     カード同士の隙間(10px)と同じだと別のまとまりに見えず、
     広げすぎると間が抜ける。2倍の20pxが区切りとして過不足ない。 */
  .awj-nums { gap: 10px; margin-bottom: 20px; }
  .awj-card .awj-photo { height: 180px; }
  .awj-card__body { gap: 7px; padding: 14px 16px; }
  .awj-card__title { font-size: 20px; }
  .awj-card__desc { font-size: 13px; line-height: 1.7; }
  .awj-card__link { font-size: 13px; }
  .awj-card--course .awj-card__title { font-size: 17px; }

  /* 人数カード */
  .awj-num { gap: 14px; padding: 14px 16px; }
  .awj-num__figure { font-size: 30px; }
  .awj-num__badge { font-size: 20px; height: 46px; width: 46px; }

  /* 横長記事カードは縦積み */
  .awj-art { grid-template-columns: 1fr; }
  .awj-art .awj-photo { height: 160px; }
  .awj-art__body { gap: 6px; padding: 14px 16px; }

  /* 何をする：スマホは1列。
   カードの中身が「アイコン＋タイトル＋説明＋矢印」の横並びなので、
   2列（1枚162px程度）だと文字に使える幅が60px弱しか残らず、
   1文字ずつ折り返してしまう。全幅なら折り返さない。 */
  .awj-whats { gap: 10px; grid-template-columns: 1fr; }
  .awj-what {
    align-items: center;
    flex-direction: row;
    gap: 12px;
    justify-content: flex-start;
    padding: 14px 16px;
    text-align: left;
  }
  /* タイトルは折り返さない。説明文だけが詰まるようにする */
  .awj-what__title { flex: 0 0 auto; white-space: nowrap; }
  .awj-what__sub { flex: 1 1 auto; min-width: 0; }
  .awj-what__icon { height: 40px; width: 40px; }
  .awj-what__icon svg { height: 20px; width: 20px; }
  .awj-what__title { font-size: 15px; }
  .awj-what__sub { font-size: 11px; }
  .awj-what__chev { margin-left: auto; }

  /* 泊まり方 */
  .awj-stay .awj-photo { height: 180px; }
  .awj-stay__body { gap: 8px; padding: 16px; }
  .awj-stay__title { font-size: 20px; }

  /* おすすめ：タイトルの行数でカードの高さが変わる。
     縦フレックスだと行を揃えられないので、グリッドに変えて
     grid-auto-rows: 1fr で全カードを同じ高さにし、中身は上下中央に置く。 */
  .awj-recs {
    display: grid;
    grid-auto-rows: 1fr;
    grid-template-columns: 1fr;
    gap: 12px;
  }
  .awj-rec { grid-template-columns: 110px 1fr; height: 100%; }
  .awj-rec .awj-photo { height: 100%; min-height: 110px; }
  .awj-rec__body {
    gap: 4px;
    justify-content: center;
    padding: 12px 14px;
  }
  .awj-rec__title { font-size: 15px; }
  .awj-rec__desc { display: none; }
  .awj-rec__chev { display: none; }
  .awj-rec:hover { transform: none; }

  /* このサイトについて */
  .awj-about { padding: 40px 0; }
  .awj-about__text p { font-size: 13px; line-height: 1.85; }
}

/* 小型スマホ（380px以下） */
@media screen and (max-width: 380px) {
  .awj-hero__title { font-size: 26px; }
  .awj-what__title { font-size: 14px; }
}

/* 動きを減らす設定の尊重 */
@media (prefers-reduced-motion: reduce) {
  .awj-top * {
    transition: none !important;
  }
}

/************************************
** レスポンシブデザイン用のメディアクエリ
************************************/
/*1023px以下*/
@media screen and (max-width: 1023px) {
  /*必要ならばここにコードを書く*/
}

/*834px以下*/
@media screen and (max-width: 834px) {
  .article h2 {
    padding: 12px 14px;
  }
  .article table th {
    white-space: normal;
  }
}

/*480px以下*/
@media screen and (max-width: 480px) {
  /* 比較表は横スクロールで崩さない */
  .article .scroll-table {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }
  .article .scroll-table table {
    min-width: 560px;
  }
}

/************************************
** reCAPTCHA バッジ
** 右下に固定表示されるバッジを隠す。
** Googleの規約上、隠す場合は代わりに文言での表示が必須。
** → pages/contact.html の .awj-recaptcha-note がその文言。
************************************/
.grecaptcha-badge {
  visibility: hidden !important;
}

.awj-recaptcha-note {
  color: var(--awj-muted);
  font-size: 0.76rem;
  line-height: 1.7;
  margin-top: 2.4em;
}

.awj-recaptcha-note a {
  color: var(--awj-muted);
  text-decoration: underline;
}
