/* ============================================
   春凪島観光協会 — Design System v2
   awajishima-kanko.jp 風: 白基調 + 写真的ヒーロー +
   カテゴリーアイコングリッド + モデルコース
   ============================================ */

:root {
  /* ============================================
     比率システム
     黄金比 φ = 1.618 … タイポグラフィの階調
     白銀比 √2 = 1.4142 (大和比) … 余白・アスペクト比
     ============================================ */
  --phi: 1.618;
  --silver: 1.4142;

  /* タイポスケール (黄金比の半音階: ×√φ ≒ 1.272)
     12 → 15 → 19 → 24 → 31 → 39 → 50 → 63 → 81 */
  --fs-xs:   12px;
  --fs-sm:   13px;
  --fs-base: 15px;
  --fs-md:   19px;
  --fs-lg:   24px;
  --fs-xl:   31px;
  --fs-2xl:  39px;
  --fs-3xl:  50px;
  --fs-4xl:  63px;
  --fs-5xl:  81px;

  /* スペーシングスケール (白銀比: ×1.414)
     8 → 11 → 16 → 23 → 32 → 45 → 64 → 91 → 128 */
  --sp-1: 8px;
  --sp-2: 11px;
  --sp-3: 16px;
  --sp-4: 23px;
  --sp-5: 32px;
  --sp-6: 45px;
  --sp-7: 64px;
  --sp-8: 91px;
  --sp-9: 128px;

  /* アスペクト比 */
  --ar-golden:    1.618 / 1;   /* 黄金比 横長 */
  --ar-golden-p:  1 / 1.618;   /* 黄金比 縦長 */
  --ar-silver:    1.4142 / 1;  /* 白銀比 横長 (A判用紙) */
  --ar-silver-p:  1 / 1.4142;  /* 白銀比 縦長 */

  /* 主要カラー */
  --c-text:     #242430;
  --c-text-2:   #5a5a6a;
  --c-text-3:   #8a8a98;
  --c-bg:       #ffffff;
  --c-soft:     #f7f5ee;     /* 生成・うっすら */
  --c-washi:    #ebe5d7;     /* 区切り罫 */
  --c-border:   #e8e6e0;
  --c-line:     #d8d5cc;

  /* アクセント */
  --c-sea:      #1d5e9f;     /* 深い海色: 主要リンク・CTA */
  --c-sea-d:    #143f6c;
  --c-sea-soft: #e5eef6;
  --c-yamabuki: #d9a228;     /* 山吹: サブ強調 */
  --c-shu:      #c7472a;     /* 朱: バナー強調 */
  --c-shu-d:    #8a2e1a;
  --c-moegi:    #6a8c4a;     /* 萌黄: 自然 */
  --c-sumi:     #1c1b18;     /* 墨: 黒に近い */

  /* 縁日 (ダークテーマ) 用エイリアス */
  --c-kinari:   #f6efe1;     /* 生成 — 縁日の明色 */
  --c-ebicha:   #883a2e;     /* 海老茶 — 縁日の深い朱 */

  /* タイポ */
  --f-gothic:   "Noto Sans JP", "游ゴシック体", YuGothic, "游ゴシック", "Yu Gothic", "ヒラギノ角ゴ Pro W3", "Hiragino Kaku Gothic Pro", メイリオ, Meiryo, sans-serif;
  --f-mincho:   "Shippori Mincho", "Noto Serif JP", "ヒラギノ明朝 Pro", "Hiragino Mincho ProN", "Yu Mincho", serif;
  --f-en:       "DM Sans", "Inter", "Helvetica Neue", Helvetica, Arial, sans-serif;

  /* レイアウト */
  --max-w: 1200px;
  --gutter: var(--sp-5);   /* 32px */
  --r: 6px;

  /* 影 */
  --shadow-card: 0 4px 18px -8px rgba(36, 36, 48, 0.18);
  --shadow-deep: 0 18px 44px -16px rgba(36, 36, 48, 0.28);

  /* 段組のヘッダー高さ (白銀比スケール) */
  --header-h: 64px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--f-gothic);
  font-size: var(--fs-base);
  line-height: 1.85;
  color: var(--c-text);
  background: var(--c-bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

a { color: var(--c-text); text-decoration: none; transition: opacity 0.18s ease; }
a:hover { opacity: 0.65; }

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

h1, h2, h3, h4 {
  margin: 0;
  font-weight: 700;
  letter-spacing: 0.02em;
  line-height: 1.4;
}

/* ============================================
   ヘッダー
   ============================================ */
.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: var(--header-h);
  background: rgba(255,255,255,0.96);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--c-border);
  z-index: 100;
  transition: box-shadow 0.3s ease;
}
.site-header.is-scrolled { box-shadow: 0 4px 18px -10px rgba(36,36,48,0.18); }

.site-header__inner {
  max-width: var(--max-w);
  margin: 0 auto;
  height: 100%;
  padding: 0 var(--gutter);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--c-text);
  flex-shrink: 0;
}
.brand__mark {
  width: 36px; height: 36px;
  border-radius: 50%;
  overflow: hidden;
  display: grid; place-items: center;
}
.brand__mark img { width: 100%; height: 100%; object-fit: contain; display: block; }
.brand__text {
  display: flex;
  flex-direction: column;
  line-height: 1.2;
}
.brand__name {
  font-family: var(--f-mincho);
  font-size: var(--fs-md);
  font-weight: 500;
  letter-spacing: 0.06em;
}
.brand__sub {
  font-family: var(--f-en);
  font-size: 10px;
  letter-spacing: 0.22em;
  color: var(--c-text-2);
  text-transform: uppercase;
  font-weight: 600;
}

.nav {
  display: flex;
  align-items: center;
  gap: var(--sp-4);
  font-size: 14px;
  font-weight: 700;
}
.nav a {
  position: relative;
  padding: 4px 0;
  color: var(--c-text);
}
.nav a::after {
  content: "";
  position: absolute;
  left: 50%; bottom: -6px;
  width: 0; height: 2px;
  background: var(--c-sea);
  transition: width 0.3s ease, left 0.3s ease;
}
.nav a:hover { opacity: 1; }
/* 下線はホバー時のみアニメ表示。アクティブページは「常時下線で固定」せず、
   太字でさりげなく示し全リンクの挙動を統一する（オーナー指示: ヘッダー「トップ」だけ別挙動を解消）。 */
.nav a:hover::after { width: 100%; left: 0; }
.nav a.is-active { font-weight: 700; }

.head-tools {
  display: flex;
  align-items: center;
  gap: 6px;
}
.head-tools__icon {
  display: grid; place-items: center;
  width: 36px; height: 36px;
  border-radius: 50%;
  color: var(--c-text-2);
  transition: all 0.2s ease;
}
.head-tools__icon:hover { background: var(--c-soft); color: var(--c-text); opacity: 1; }
.head-tools__icon svg { width: 16px; height: 16px; }
.head-tools__cta {
  margin-left: 6px;
  padding: 9px 18px;
  background: var(--c-shu);
  color: #fff;
  font-size: 13px;
  font-weight: 700;
  border-radius: 999px;
  letter-spacing: 0.06em;
}

/* キーワード検索ボタン (ARG導線) */
.head-tools__search {
  padding: 9px 16px;
  background: var(--c-soft);
  color: var(--c-text);
  border: 1px solid var(--c-border);
  border-radius: 999px;
  font-family: inherit;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.04em;
  cursor: pointer;
  transition: all 0.2s ease;
  white-space: nowrap;
}
.head-tools__search:hover {
  background: var(--c-sea-soft);
  border-color: var(--c-sea);
  color: var(--c-sea);
}
.head-tools__cta:hover { background: var(--c-shu-d); color: #fff; opacity: 1; }

.nav-toggle {
  display: none;
  background: none; border: 0; cursor: pointer;
  width: 40px; height: 40px;
  color: var(--c-text);
}

/* ============================================
   レイアウト
   ============================================ */
body { padding-top: var(--header-h); }

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

.section { padding: var(--sp-8) 0; }
.section--soft { background: var(--c-soft); }
.section--tight { padding: var(--sp-6) 0; }

.section-head {
  text-align: center;
  margin-bottom: var(--sp-6);
}
.section-head__en {
  display: block;
  font-family: var(--f-en);
  font-size: 12px;
  letter-spacing: 0.32em;
  color: var(--c-sea);
  text-transform: uppercase;
  margin-bottom: 14px;
  font-weight: 700;
}
.section-head__ja {
  font-family: var(--f-gothic);
  font-size: clamp(var(--fs-lg), 3vw, var(--fs-xl));
  font-weight: 700;
  letter-spacing: 0.08em;
  color: var(--c-text);
}
.section-head__ja--mincho {
  font-family: var(--f-mincho);
  font-weight: 500;
}
.section-head__deco {
  display: inline-block;
  width: 40px; height: 2px;
  background: var(--c-sea);
  margin: 14px auto 0;
}
.section-head__lead {
  margin-top: var(--sp-3);
  font-size: 14px;
  color: var(--c-text-2);
  max-width: 540px;
  margin-left: auto;
  margin-right: auto;
  line-height: 2;
}

/* ============================================
   ボタン
   ============================================ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--sp-2);
  padding: var(--sp-3) var(--sp-5);
  background: var(--c-sea);
  color: #fff;
  font-family: var(--f-gothic);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.08em;
  border: 0;
  border-radius: 4px;
  cursor: pointer;
  transition: all 0.22s ease;
}
.btn:hover { background: var(--c-sea-d); color: #fff; opacity: 1; transform: translateY(-1px); }
.btn--shu { background: var(--c-shu); }
.btn--shu:hover { background: var(--c-shu-d); }
.btn--ghost {
  background: transparent;
  color: var(--c-text);
  border: 1px solid var(--c-text);
}
.btn--ghost:hover { background: var(--c-text); color: #fff; }
.btn--lg { padding: var(--sp-4) var(--sp-6); font-size: var(--fs-base); }
.btn__arrow {
  font-family: var(--f-en);
  transition: transform 0.22s ease;
}
.btn:hover .btn__arrow { transform: translateX(4px); }

.more-link {
  display: inline-flex;
  align-items: center;
  gap: var(--sp-2);
  padding: var(--sp-3) var(--sp-5);
  background: var(--c-text);
  color: #fff;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.08em;
  border-radius: 999px;
  transition: all 0.22s ease;
}
.more-link:hover { background: var(--c-sea); color: #fff; opacity: 1; transform: translateY(-1px); }

/* ============================================
   フッター
   ============================================ */
.site-footer {
  margin-top: 0;
  padding: var(--sp-7) 0 var(--sp-5);
  background: #fff;
  border-top: 1px solid var(--c-border);
  font-size: 13px;
  color: var(--c-text);
}
.site-footer__top {
  display: grid;
  grid-template-columns: 1.618fr 1fr 1fr 1fr;
  gap: var(--sp-5);
  padding-bottom: var(--sp-6);
  border-bottom: 1px solid var(--c-border);
}
.site-footer .brand__name { font-size: 19px; }
.site-footer__about p { margin: 18px 0 0; color: var(--c-text-2); line-height: 2; }
.site-footer h4 {
  font-size: 13px;
  margin-bottom: 16px;
  letter-spacing: 0.1em;
  color: var(--c-text);
}
.site-footer__col a { display: block; padding: 5px 0; color: var(--c-text-2); font-size: 13px; }
.site-footer__col a:hover { color: var(--c-sea); opacity: 1; }
/* hidden を付けたリンク（「次回更新のお知らせ」。watase-arg.js の updateFooterVisibility() がコア3枠の解放まで hidden にする）は、
   上の display:block に負けて出てしまっていたので隠す（2026-10-27）。 */
.site-footer__col a[hidden] { display: none; }
.site-footer__contact {
  font-style: normal;
  font-size: 12px;
  color: var(--c-text-2);
  line-height: 2;
  margin-top: 16px;
}
.site-footer__contact strong { display: block; color: var(--c-text); font-size: 13px; margin-bottom: 6px; }
.site-footer__bottom {
  margin-top: 28px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 14px;
}
.site-footer__copy {
  font-family: var(--f-en);
  font-size: 11px;
  letter-spacing: 0.2em;
  color: var(--c-text-3);
}
/* 綴り「LineLights」だけ明朝に替える（2026-10-31 Owner：歪ませない・露骨に違う字体）。Shippori Mincho は各ページが読んでいる。新しい外部フォントは足さない */
.site-footer__brand { font-family: var(--f-mincho); }
/* 生成AIの1行（2026-10-27 Owner）。「で」は取り消し線、「が」は薄い字。体験・アクセスのページも同じ形で使う */
.site-footer__ai {
  margin: 26px 0 0;
  font-size: 15px;
  font-weight: 700;
  line-height: 1.8;
  letter-spacing: 0.06em;
  color: var(--c-text);
}
.site-footer__ai s { text-decoration-thickness: 2px; }
.site-footer__ai .ai-faint { opacity: 0.45; }
/* フィクション表記（2026-10-30 Owner）。© の行のすぐ下 */
.site-footer__fiction { margin: 10px 0 0; font-size: 11px; line-height: 1.8; color: var(--c-text-3); }
.site-footer__sns {
  display: flex; gap: 6px;
}
.site-footer__sns a {
  width: 34px; height: 34px;
  background: var(--c-soft);
  border-radius: 50%;
  display: grid; place-items: center;
  color: var(--c-text-2);
}
.site-footer__sns a:hover { background: var(--c-sea); color: #fff; opacity: 1; }
.site-footer__sns svg { width: 14px; height: 14px; }

/* ============================================
   モバイル
   ============================================ */
@media (max-width: 980px) {
  .nav { display: none; }
  .nav-toggle { display: grid; place-items: center; }
  .head-tools__cta { display: none; }
  .site-footer__top { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 600px) {
  :root { --gutter: 20px; }
  .section { padding: var(--sp-7) 0; }
  .section-head { margin-bottom: var(--sp-5); }
  .site-footer__top { grid-template-columns: 1fr; gap: 24px; }
  .site-footer__about { padding-bottom: 14px; border-bottom: 1px solid var(--c-border); }
  .brand__sub { display: none; }

  /* オーナー指示 row65: スマホで右下「思い出」FABと footer 右端の 管理者システム が被るので、
     footer 底行(© / 管理者システム) を左寄せにして重なりを回避する。 */
  .site-footer__bottom { justify-content: flex-start; }

  /* ヘッダーの見切れ対策: 検索ボタンをアイコン化し、装飾要素を畳む。
     arg.css の .search-toggle (読み込み順で後勝ち) に負けないよう !important */
  .site-header__inner { gap: 10px; }
  .head-tools { gap: 2px; }
  .head-tools__search {
    font-size: 0 !important;
    line-height: 0;
    text-decoration: none !important;
    width: 36px; height: 36px;
    padding: 0 !important;
    border-radius: 50%;
    display: inline-grid;
    place-items: center;
  }
  .head-tools__search::before {
    content: "🔍";
    font-size: 15px;
    line-height: 1;
  }
  .head-tools__icon[aria-label="言語"] { display: none; }
}

/* ============================================
   ナビモバイル展開
   ============================================ */
.nav.is-open {
  display: flex;
  flex-direction: column;
  position: fixed;
  top: var(--header-h);
  left: 0; right: 0;
  padding: 24px var(--gutter) 28px;
  background: #fff;
  border-bottom: 1px solid var(--c-border);
  box-shadow: 0 8px 18px -10px rgba(36,36,48,0.2);
  gap: 18px;
  align-items: flex-start;
}

/* ============================================
   スクロールリビール
   ============================================ */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}
.reveal { opacity: 0; }
.reveal.in { animation: fadeUp 0.8s cubic-bezier(0.16, 1, 0.3, 1) forwards; }
