/* =========================================================
   はだのナビ ─ デザイントークン
   DESIGN-airbnb.md より移植。色・角丸・余白・影の規範はそれに準拠。
   ========================================================= */

:root {
  color-scheme: light;

  /* ── Color ── */
  /* ロゴ実物から抽出した3色 */
  --primary:            #fb3670;   /* ハダノ のピンク */
  --primary-active:     #e01c58;
  --primary-disabled:   #ffd1de;
  --accent:             #03b0c3;   /* ナビ のターコイズ */
  --accent-active:      #029aab;
  --accent-soft:        #e6f7f9;
  --sun:                #fcae3f;   /* 円弧のオレンジ（装飾のみ） */
  --error-text:         #c13515;

  --ink:                #222222;
  --body-text:          #3f3f3f;
  --muted:              #6a6a6a;
  --muted-soft:         #929292;

  --hairline:           #dddddd;
  --hairline-soft:      #ebebeb;
  --border-strong:      #c1c1c1;

  --canvas:             #ffffff;
  --surface-soft:       #f7f7f7;
  --surface-strong:     #f2f2f2;
  --on-primary:         #ffffff;

  /* ── Radius ── */
  --r-xs:    4px;
  --r-sm:    8px;
  --r-md:   14px;
  --r-lg:   20px;
  --r-xl:   32px;
  --r-full: 9999px;

  /* ── Spacing（4px基準） ── */
  --s-xxs:   2px;
  --s-xs:    4px;
  --s-sm:    8px;
  --s-md:   12px;
  --s-base: 16px;
  --s-lg:   24px;
  --s-xl:   32px;
  --s-xxl:  48px;
  --s-sec:  64px;

  /* ── Elevation（1段階のみ） ── */
  --shadow: rgba(0,0,0,.02) 0 0 0 1px, rgba(0,0,0,.04) 0 2px 6px 0, rgba(0,0,0,.1) 0 4px 8px 0;

  /* ── Type ── */
  --font: "Inter", "Noto Sans JP", -apple-system, system-ui, "Hiragino Sans",
          "Yu Gothic", Roboto, "Helvetica Neue", sans-serif;

  --w-max: 1280px;
}

* { box-sizing: border-box; }

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

body {
  margin: 0;
  background: var(--canvas);
  color: var(--ink);
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; }
a:focus-visible,
button:focus-visible {
  outline: 2px solid var(--ink);
  outline-offset: 2px;
  border-radius: var(--r-xs);
}
img { max-width: 100%; display: block; }

.wrap {
  max-width: var(--w-max);
  margin: 0 auto;
  padding: 0 var(--s-lg);
}

/* =========================================================
   ヘッダー
   ========================================================= */
.site-head {
  background: var(--canvas);
  border-bottom: 1px solid var(--hairline);
  position: sticky;
  top: 0;
  z-index: 50;
}
.site-head__inner {
  height: 80px;
  display: flex;
  align-items: center;
  gap: var(--s-lg);
}
.logo { display: flex; align-items: center; flex: none; }
.logo img { height: 64px; width: auto; }
@media (max-width: 860px) { .logo img { height: 48px; } }

.gnav {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: var(--s-lg);
}
.gnav a {
  font-size: 16px;
  font-weight: 600;
  line-height: 1.25;
  color: var(--muted);
  padding: var(--s-sm) 0;
  border-bottom: 2px solid transparent;
  white-space: nowrap;
}
.gnav a:hover { color: var(--ink); }
.gnav a[aria-current="page"] {
  color: var(--ink);
  border-bottom-color: var(--ink);
}
.nav-toggle { display: none; }

@media (max-width: 860px) {
  .site-head__inner { height: 64px; gap: var(--s-md); }
  .gnav {
    position: fixed;
    inset: 64px 0 auto;
    background: var(--canvas);
    border-bottom: 1px solid var(--hairline);
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: var(--s-sm) var(--s-lg) var(--s-base);
    box-shadow: var(--shadow);
  }
  .gnav[hidden] { display: none; }
  .gnav a {
    padding: var(--s-md) 0;
    border-bottom: 1px solid var(--hairline-soft);
  }
  .gnav a[aria-current="page"] { border-bottom-color: var(--hairline-soft); }
  .nav-toggle {
    display: flex;
    margin-left: auto;
    align-items: center;
    justify-content: center;
    width: 40px; height: 40px;
    border: 1px solid var(--hairline);
    background: var(--canvas);
    border-radius: var(--r-full);
    cursor: pointer;
    padding: 0;
  }
}

/* =========================================================
   ヒーロー（音量は控えめに ─ MDの規範）
   ========================================================= */
.hero { padding-block: var(--s-xxl) var(--s-lg); }
.hero h1 {
  font-size: 28px;
  font-weight: 700;
  line-height: 1.43;
  letter-spacing: 0;
  margin: 0 0 var(--s-sm);
  text-wrap: balance;
}
.hero p {
  margin: 0;
  font-size: 16px;
  color: var(--muted);
  max-width: 42ch;
}

@media (max-width: 700px) {
  .hero { padding-block: var(--s-xl) var(--s-lg); }
}

/* =========================================================
   セクション
   ========================================================= */
.sec { padding-block: var(--s-xl); }
.sec__head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: var(--s-base);
  margin-bottom: var(--s-base);
}
.sec h2 {
  font-size: 21px;
  font-weight: 700;
  line-height: 1.43;
  margin: 0;
}
.sec__more {
  font-size: 14px;
  font-weight: 400;
  color: var(--muted);
  text-decoration: underline;
  white-space: nowrap;
}
.sec__more:hover { color: var(--ink); }

/* =========================================================
   カード（写真主導・角14px）
   ========================================================= */
.cards {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--s-base);
}
@media (max-width: 1128px) { .cards { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 860px)  { .cards { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px)  { .cards { grid-template-columns: 1fr; } }

.card { display: flex; flex-direction: column; gap: var(--s-md); }
.card__photo {
  position: relative;
  aspect-ratio: 1 / 1;
  border-radius: var(--r-md);
  overflow: hidden;
  background: var(--surface-strong);
}
.card__photo img { width: 100%; height: 100%; object-fit: cover; }
.card__photo--empty {
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--muted-soft);
  font-size: 13px;
}
.card:hover .card__photo { box-shadow: var(--shadow); }

.card__badge {
  position: absolute;
  top: var(--s-md);
  left: var(--s-md);
  background: var(--canvas);
  color: var(--ink);
  font-size: 11px;
  font-weight: 600;
  line-height: 1.18;
  padding: 4px 10px;
  border-radius: var(--r-full);
  box-shadow: var(--shadow);
}

.card__meta { display: flex; flex-direction: column; gap: 2px; }
.card__title {
  font-size: 16px;
  font-weight: 600;
  line-height: 1.25;
}
.card__sub,
.card__note {
  font-size: 14px;
  font-weight: 400;
  line-height: 1.43;
  color: var(--muted);
}
.card__note { display: flex; gap: var(--s-sm); flex-wrap: wrap; }

/* =========================================================
   エリア／目的のリンクブロック
   ========================================================= */
.linkgrid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: var(--s-base);
}
@media (max-width: 1128px) { .linkgrid { grid-template-columns: repeat(4, 1fr); } }
@media (max-width: 860px)  { .linkgrid { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 560px)  { .linkgrid { grid-template-columns: repeat(2, 1fr); } }

.linkgrid a {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: var(--s-md) 0;
  border-top: 1px solid var(--hairline-soft);
}
.linkgrid b {
  font-size: 16px;
  font-weight: 600;
  line-height: 1.25;
}
.linkgrid span {
  font-size: 14px;
  color: var(--muted);
  line-height: 1.43;
}
.linkgrid a:hover b { text-decoration: underline; }

/* 目的はピル */
.pills { display: flex; flex-wrap: wrap; gap: var(--s-sm); }
.pill {
  font-size: 14px;
  font-weight: 500;
  line-height: 1.29;
  padding: 10px 20px;
  border: 1px solid var(--hairline);
  border-radius: var(--r-full);
  background: var(--canvas);
  white-space: nowrap;
}
.pill:hover { border-color: var(--ink); }
.pill:hover { border-color: var(--accent); color: var(--accent-active); }
.pill--on {
  background: var(--accent);
  color: var(--on-primary);
  border-color: var(--accent);
}
.pill--on:hover { color: var(--on-primary); border-color: var(--accent); }

/* =========================================================
   空の状態
   ========================================================= */
.empty {
  border: 1px dashed var(--hairline);
  border-radius: var(--r-md);
  padding: var(--s-xxl) var(--s-lg);
  text-align: center;
  color: var(--muted);
  font-size: 14px;
  background: var(--surface-soft);
}
.empty b {
  display: block;
  color: var(--ink);
  font-size: 16px;
  font-weight: 600;
  margin-bottom: var(--s-xs);
}

/* =========================================================
   スポット記事
   ========================================================= */
.spot { padding-block: var(--s-xl) var(--s-sec); }
.spot__crumb {
  font-size: 14px;
  color: var(--muted);
  margin-bottom: var(--s-md);
  display: flex;
  gap: var(--s-sm);
  flex-wrap: wrap;
}
.spot__crumb a:hover { text-decoration: underline; }
.spot h1 {
  font-size: 22px;
  font-weight: 500;
  line-height: 1.18;
  letter-spacing: -.44px;
  margin: 0 0 var(--s-sm);
  text-wrap: balance;
}
.spot__tags { display: flex; gap: var(--s-sm); flex-wrap: wrap; margin-bottom: var(--s-lg); }
.spot__hero {
  aspect-ratio: 3 / 2;
  border-radius: var(--r-md);
  overflow: hidden;
  background: var(--surface-strong);
  margin-bottom: var(--s-xl);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--muted-soft);
  font-size: 14px;
}
.spot__hero img { width: 100%; height: 100%; object-fit: cover; }

.spot__body {
  display: grid;
  grid-template-columns: minmax(0, 64%) minmax(0, 32%);
  gap: 4%;
  align-items: start;
}
@media (max-width: 900px) {
  .spot__body { grid-template-columns: 1fr; gap: var(--s-xl); }
}

.prose { font-size: 16px; line-height: 1.8; color: var(--body-text); }
.prose h2 {
  font-size: 21px;
  font-weight: 700;
  line-height: 1.43;
  color: var(--ink);
  margin: var(--s-xl) 0 var(--s-md);
  padding-top: var(--s-lg);
  border-top: 1px solid var(--hairline);
}
.prose h2:first-child { margin-top: 0; padding-top: 0; border-top: 0; }
.prose h3 {
  font-size: 16px;
  font-weight: 600;
  color: var(--ink);
  margin: var(--s-lg) 0 var(--s-sm);
}
.prose p { margin: 0 0 var(--s-base); }
.prose ul, .prose ol { margin: 0 0 var(--s-base); padding-left: 1.4em; }
.prose li { margin-bottom: var(--s-xs); }
.prose a { color: var(--accent-active); text-decoration: underline; }

/* 基本情報（右レール） */
.facts {
  border: 1px solid var(--hairline);
  border-radius: var(--r-md);
  padding: var(--s-lg);
  box-shadow: var(--shadow);
  position: sticky;
  top: 104px;
}
.facts h2 {
  font-size: 16px;
  font-weight: 600;
  margin: 0 0 var(--s-md);
}
.facts dl { margin: 0; display: grid; gap: var(--s-md); }
.facts dt {
  font-size: 12px;
  font-weight: 700;
  line-height: 1.33;
  color: var(--muted);
}
.facts dd {
  margin: 2px 0 0;
  font-size: 14px;
  line-height: 1.43;
  color: var(--ink);
}
.facts__updated {
  margin-top: var(--s-base);
  padding-top: var(--s-md);
  border-top: 1px solid var(--hairline-soft);
  font-size: 13px;
  color: var(--muted);
}
@media (max-width: 900px) { .facts { position: static; } }

/* =========================================================
   固定ページ
   ========================================================= */
.page { padding-block: var(--s-xl) var(--s-sec); }
.page h1 {
  font-size: 28px;
  font-weight: 700;
  line-height: 1.43;
  margin: 0 0 var(--s-lg);
}
.page .prose { max-width: 68ch; }

/* =========================================================
   フッター
   ========================================================= */
.site-foot {
  background: var(--canvas);
  border-top: 1px solid var(--hairline);
  padding: var(--s-xxl) 0 var(--s-lg);
  margin-top: var(--s-sec);
}
.foot-cols {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--s-lg);
  padding-bottom: var(--s-xl);
  border-bottom: 1px solid var(--hairline-soft);
}
@media (max-width: 700px) { .foot-cols { grid-template-columns: 1fr; gap: var(--s-xl); } }
.foot-cols h3 {
  font-size: 16px;
  font-weight: 500;
  line-height: 1.25;
  margin: 0 0 var(--s-md);
}
.foot-cols ul { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--s-sm); }
.foot-cols a {
  font-size: 14px;
  line-height: 1.43;
  color: var(--body-text);
}
.foot-cols a:hover { text-decoration: underline; }

.legal {
  padding-top: var(--s-base);
  display: flex;
  flex-wrap: wrap;
  gap: var(--s-md) var(--s-lg);
  align-items: center;
  font-size: 13px;
  line-height: 1.23;
  color: var(--muted);
}
.legal__sns { margin-left: auto; display: flex; gap: var(--s-base); }
.legal__sns a:hover { color: var(--ink); }
@media (max-width: 700px) { .legal__sns { margin-left: 0; } }

@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; animation: none !important; }
}
