/* ============================================================
   庭のおやど ペンション道半（んつなか）
   デザイントークン
   色は受領写真から抽出:
   - 生成り: 清潔な白壁・障子の明るさ
   - 深緑:   手入れされた芝生と庭木
   - 金茶:   畳・木の床
   - 花赤:   庭の花（極少量のアクセント）
   ============================================================ */
:root {
  /* v2: 黄みを抜いた白砂ベース + ティール寄りの緑 + 宮古ブルー（山小屋の色温度から島の色温度へ） */
  --kinari: #fafaf5;
  --white: #ffffff;
  --ink: #2c3833;
  --ink-soft: #59635d;
  --green: #46705f;
  --green-deep: #35544a;
  --green-mist: #e4eee9;
  --sage: #dde9e1; /* フッター・予約パネルの明るい面。濃緑の面は廃止（v3） */
  --tatami: #a98b4f;
  --hana: #bc5449;
  --umi: #35708e;
  --umi-mist: #e9f2f5;
  --line-green: #06c755;
  --hairline: rgba(44, 56, 51, 0.14);
  --shadow: 0 18px 50px -24px rgba(30, 62, 50, 0.35);

  --font-display: "Zen Old Mincho", "Hiragino Mincho ProN", serif;
  --font-body: "Zen Kaku Gothic New", "Hiragino Kaku Gothic ProN", sans-serif;

  --container: 1160px;
  --space-section: clamp(6rem, 11vw, 10rem);
  --radius: 16px;
  --radius-sm: 10px;
}

/* ---------- reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 2;
  letter-spacing: 0.04em;
  color: var(--ink);
  background: var(--kinari);
  -webkit-font-smoothing: antialiased;
  font-feature-settings: "palt";
  overflow-x: clip; /* 画面端に逃す透かし文字を横スクロールにしない */
}
img { max-width: 100%; display: block; height: auto; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, h4, p, ul, ol, dl, figure { margin: 0; }
ul, ol { padding: 0; list-style: none; }
summary { list-style: none; cursor: pointer; }
summary::-webkit-details-marker { display: none; }
:focus-visible { outline: 2px solid var(--green); outline-offset: 3px; }

/* ---------- type ---------- */
.display {
  font-family: var(--font-display);
  font-weight: 500;
  line-height: 1.9;
  letter-spacing: 0.14em;
}
.tate {
  writing-mode: vertical-rl;
  text-orientation: mixed;
  font-feature-settings: "palt" 0, "vpal";
}

/* ---------- layout ---------- */
.container {
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: clamp(1.25rem, 4vw, 2.5rem);
}
.section { padding-block: var(--space-section); }
.section + .section { padding-block-start: 0; }

/* 縦書きの章ラベル + 見出し */
.section-head {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: clamp(1.5rem, 3vw, 2.5rem);
  align-items: start;
  margin-block-end: clamp(2.5rem, 5vw, 4rem);
}
.section-label {
  writing-mode: vertical-rl;
  font-family: var(--font-display);
  font-size: 0.8125rem;
  letter-spacing: 0.42em;
  color: var(--tatami);
  padding-inline-start: 0.9rem;
  min-height: 6.5rem;
  position: relative;
}
/* 罫は擬似要素にし、視界に入ったとき上から筆を入れる */
.section-label::before {
  content: "";
  position: absolute;
  inset-block: 0;
  inset-inline-start: 0;
  width: 1px;
  background: var(--hairline);
  transform-origin: top;
}
.section-title {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(1.5rem, 3.2vw, 2.125rem);
  line-height: 1.85;
  letter-spacing: 0.12em;
}
.section-lead {
  margin-block-start: 1.25rem;
  max-width: 38em;
  color: var(--ink-soft);
}

/* ---------- buttons ----------
   規約: ラベルは折り返し禁止・処理中スピナー対応は将来サーバ処理導入時 */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6em;
  white-space: nowrap;
  padding: 0.95em 2.2em;
  font-family: var(--font-body);
  font-size: 0.9375rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  border: 1px solid transparent;
  border-radius: 8px;
  transition: background-color 0.25s ease, color 0.25s ease, border-color 0.25s ease, opacity 0.25s ease;
}
.btn-primary { background: var(--green); color: var(--kinari); }
.btn-primary:hover { background: var(--green-deep); }
.btn-ghost { border-color: currentColor; color: var(--green); background: transparent; }
.btn-ghost:hover { background: var(--green); color: var(--kinari); border-color: var(--green); }
.btn-line { background: var(--line-green); color: #fff; }
.btn-line:hover { opacity: 0.85; }
/* LINEマーク: 吹き出しにLINEの文字を抜いたマスク。文字色に自動追従する
   （緑ボタン=白い吹き出し・緑抜き文字 / 枠線ボタン=文字色の吹き出し）
   TODO: LINE公式アカウント開設後、公式ガイドラインの友だち追加ボタン素材への差し替えも検討 */
.btn-line::before,
.btn.has-line-mark::before {
  content: "";
  width: 1.3em;
  height: 1.3em;
  flex: none;
  background-color: currentColor;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 64 64'%3E%3Cpath fill='%23fff' d='M32 7C16.5 7 4 17.3 4 30c0 11.3 9.6 20.4 22.6 22.4.9.1 1.4.6 1.2 1.5l-1 5.4c-.2 1.1 1 1.9 2 1.3l11.6-7.1c.6-.4 1.3-.6 2-.7C55 50.7 60 40.2 60 30 60 17.3 47.5 7 32 7z'/%3E%3C/svg%3E") center / contain no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 64 64'%3E%3Cpath fill='%23fff' d='M32 7C16.5 7 4 17.3 4 30c0 11.3 9.6 20.4 22.6 22.4.9.1 1.4.6 1.2 1.5l-1 5.4c-.2 1.1 1 1.9 2 1.3l11.6-7.1c.6-.4 1.3-.6 2-.7C55 50.7 60 40.2 60 30 60 17.3 47.5 7 32 7z'/%3E%3C/svg%3E") center / contain no-repeat;
}
.btn-note {
  display: block;
  margin-block-start: 0.6rem;
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  color: var(--ink-soft);
}
.btn .ext {
  width: 0.72em; height: 0.72em; flex: none;
}

/* ---------- header ---------- */
.site-header {
  position: fixed;
  inset-inline: 0;
  top: 0;
  z-index: 100;
  transition: background-color 0.35s ease, box-shadow 0.35s ease, color 0.35s ease;
}
.site-header .header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  padding: 0.9rem clamp(1.25rem, 3vw, 2.25rem);
}
.brand { display: flex; flex-direction: column; line-height: 1.4; }
.brand-sub {
  font-size: 0.6875rem;
  letter-spacing: 0.3em;
  color: var(--tatami);
}
.brand-name {
  font-family: var(--font-display);
  font-size: 1.125rem;
  font-weight: 600;
  letter-spacing: 0.18em;
}
.brand-yomi { font-size: 0.6875rem; letter-spacing: 0.24em; opacity: 0.75; }

.global-nav { display: flex; align-items: center; gap: clamp(1rem, 2vw, 1.75rem); }
/* デスクトップではリンク群をそのままヘッダーの並びに溶かす */
.nav-links { display: contents; }
.global-nav a.nav-link {
  font-size: 0.875rem;
  letter-spacing: 0.12em;
  white-space: nowrap;
  padding-block: 0.4em;
  border-bottom: 1px solid transparent;
  transition: border-color 0.25s ease;
}
.global-nav a.nav-link:hover,
.global-nav a.nav-link[aria-current="page"] { border-bottom-color: currentColor; }
.nav-cta { display: flex; gap: 0.6rem; }
.nav-cta .btn { padding: 0.6em 1.3em; font-size: 0.8125rem; }

/* 透明ヘッダー（トップのファーストビュー上） */
.header-clear { color: var(--kinari); background: transparent; }
.header-clear .brand-sub { color: rgba(250, 248, 242, 0.85); }
.header-clear .btn-ghost { color: var(--kinari); }
.header-clear .btn-ghost:hover { background: var(--kinari); color: var(--green); border-color: var(--kinari); }
/* スクロール後・下層ページ
   注: backdrop-filter はヘッダー内 fixed 要素（ドロワー）の基準を
   ヘッダー自身に変えてしまうため使わない */
.site-header.is-solid,
.header-solid {
  color: var(--ink);
  background: rgba(250, 248, 242, 0.97);
  box-shadow: 0 1px 0 var(--hairline);
}
.site-header.is-solid .brand-sub,
.header-solid .brand-sub { color: var(--tatami); }
.site-header.is-solid .btn-ghost,
.header-solid .btn-ghost { color: var(--green); }
.site-header.is-solid .btn-ghost:hover,
.header-solid .btn-ghost:hover { background: var(--green); color: var(--kinari); }

/* ハンバーガー / ドロワー */
.nav-toggle {
  display: none;
  width: 44px; height: 44px;
  border: 0; background: transparent; cursor: pointer;
  position: relative; z-index: 130;
  color: inherit;
}
.nav-toggle span {
  position: absolute; left: 10px; right: 10px; height: 1.5px;
  background: currentColor; transition: transform 0.3s ease, opacity 0.3s ease;
}
.nav-toggle span:nth-child(1) { top: 16px; }
.nav-toggle span:nth-child(2) { top: 22px; }
.nav-toggle span:nth-child(3) { top: 28px; }
.nav-toggle[aria-expanded="true"] { color: var(--kinari); }
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(6px) rotate(35deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-6px) rotate(-35deg); }

/* ---------- モバイルドロワー ----------
   深緑の全画面に、品書きのような縦書きの目次を右から左へ並べる。
   各リンクの左罫は障子の桟。現在ページは畳色の罫と文字色で示す。 */
@media (max-width: 900px) {
  .nav-toggle { display: block; }
  .global-nav {
    position: fixed;
    inset: 0;
    z-index: 120;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    background:
      radial-gradient(130% 80% at 88% -8%, rgba(169, 139, 79, 0.16), transparent 62%),
      linear-gradient(168deg, #3e6254 0%, #2d493f 100%);
    color: var(--kinari);
    padding: max(5.5rem, 13svh) clamp(1.5rem, 6vw, 2.5rem) calc(2rem + env(safe-area-inset-bottom));
    overflow-y: auto;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.45s ease, visibility 0.45s ease;
  }
  .global-nav.is-open { opacity: 1; visibility: visible; }

  /* 縦書きの目次（DOM順 = 右から左の読み順）
     margin-block: auto で余白を上下に等分し、目次を空間の中央に据える */
  .nav-links {
    display: flex;
    flex-direction: row-reverse;
    justify-content: center;
    align-items: flex-start;
    gap: clamp(1rem, 6vw, 2.75rem);
    margin-block: auto;
    padding-block: 2rem;
  }
  .global-nav a.nav-link {
    writing-mode: vertical-rl;
    display: block;
    font-family: var(--font-display);
    font-size: 1.3125rem;
    font-weight: 500;
    letter-spacing: 0.32em;
    line-height: 1;
    padding: 0.5rem 0.95rem;
    border-bottom: 0;
    position: relative;
  }
  .global-nav a.nav-link:hover { border-bottom: 0; }
  /* 各列上端の罫（開いたとき右から左へ筆を入れる） */
  .global-nav a.nav-link::before {
    content: "";
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 1px;
    background: rgba(250, 248, 242, 0.22);
    transform-origin: right;
  }
  .global-nav a.nav-link[aria-current="page"] { color: #eadfc0; }
  .global-nav a.nav-link[aria-current="page"]::before { background: var(--tatami); }

  /* 下部の導線 */
  .nav-cta {
    flex-direction: column;
    align-items: center;
    gap: 0.75rem;
    margin-block-start: 2.5rem;
  }
  .nav-cta .btn {
    width: min(320px, 100%);
    padding: 1em 1.3em;
    font-size: 0.9375rem;
  }
  /* ドロワー内はCTAを2つとも塗りボタンにして「押せる」ことを明確に。
     LINE=ブランド緑・予約=白砂 と色で役割を分ける */
  .global-nav .btn-ghost {
    background: var(--line-green);
    color: #fff;
    border-color: transparent;
  }
  .global-nav .btn-ghost:hover { background: var(--line-green); opacity: 0.88; color: #fff; }
  .global-nav .btn-primary { background: var(--kinari); color: var(--green-deep); }

  /* 結びの一行 */
  .global-nav::after {
    content: "宮古島　庭のおやど　ペンション道半（んつなか）";
    display: block;
    margin-block-start: 1.75rem;
    text-align: center;
    font-size: 0.6875rem;
    letter-spacing: 0.28em;
    color: rgba(233, 214, 173, 0.75);
  }

  /* 開閉の所作:
     ハンバーガーを起点に円形に幕が開き、
     目次が字間を締めながら順に立ち上がり、罫に筆が入り、導線が続く */
  @media (prefers-reduced-motion: no-preference) {
    .global-nav {
      clip-path: circle(0px at calc(100% - 2rem) 2rem);
      transition: clip-path 0.65s cubic-bezier(0.4, 0, 0.2, 1),
                  opacity 0.4s ease,
                  visibility 0.65s;
    }
    .global-nav.is-open {
      clip-path: circle(150% at calc(100% - 2rem) 2rem);
    }
    .global-nav .nav-link,
    .global-nav .nav-cta,
    .global-nav::after {
      opacity: 0;
      transform: translateY(16px);
      transition: opacity 0.5s ease, transform 0.5s ease, letter-spacing 0.9s ease;
    }
    .global-nav .nav-link { letter-spacing: 0.5em; }
    .global-nav.is-open .nav-link,
    .global-nav.is-open .nav-cta,
    .global-nav.is-open::after { opacity: 1; transform: none; }
    .global-nav.is-open .nav-link { letter-spacing: 0.32em; }
    .global-nav.is-open .nav-link:nth-child(1) { transition-delay: 0.12s; }
    .global-nav.is-open .nav-link:nth-child(2) { transition-delay: 0.2s; }
    .global-nav.is-open .nav-link:nth-child(3) { transition-delay: 0.28s; }
    .global-nav.is-open .nav-link:nth-child(4) { transition-delay: 0.36s; }
    .global-nav.is-open .nav-cta { transition-delay: 0.48s; }
    .global-nav.is-open::after { transition-delay: 0.56s; }

    /* 罫の筆入れ */
    .global-nav .nav-link::before {
      transform: scaleX(0);
      transition: transform 0.7s cubic-bezier(0.22, 0.61, 0.36, 1);
    }
    .global-nav.is-open .nav-link::before { transform: scaleX(1); }
    .global-nav.is-open .nav-link:nth-child(1)::before { transition-delay: 0.28s; }
    .global-nav.is-open .nav-link:nth-child(2)::before { transition-delay: 0.36s; }
    .global-nav.is-open .nav-link:nth-child(3)::before { transition-delay: 0.44s; }
    .global-nav.is-open .nav-link:nth-child(4)::before { transition-delay: 0.52s; }
  }
}

/* ---------- hero（トップ） ---------- */
.hero {
  position: relative;
  min-height: 100svh;
  display: grid;
  overflow: hidden;
  color: var(--kinari);
}
.hero-photo {
  position: absolute; inset: 0;
  background-size: cover;
  background-position: center 65%;
}
@media (prefers-reduced-motion: no-preference) {
  .hero-photo { animation: hero-drift 26s ease-out both; }
  @keyframes hero-drift {
    from { transform: scale(1.07); }
    to { transform: scale(1); }
  }
}
.hero::after {
  content: "";
  position: absolute; inset: 0;
  /* 文字可読用の陰。短冊導入後は軽めでよい（濃くしすぎると写真全体が沈む） */
  background:
    linear-gradient(180deg, rgba(20, 32, 24, 0.24) 0%, rgba(20, 32, 24, 0) 26%),
    linear-gradient(0deg, rgba(20, 32, 24, 0.34) 0%, rgba(20, 32, 24, 0) 36%);
}
.hero-inner {
  position: relative;
  z-index: 2;
  display: grid;
  align-content: end;
  gap: 2rem;
  padding: clamp(1.5rem, 4vw, 3rem);
  padding-block-end: clamp(2.5rem, 6vh, 4.5rem);
}
.hero-copy {
  position: absolute;
  z-index: 2;
  top: 50%;
  right: clamp(1.5rem, 7vw, 6.5rem);
  transform: translateY(-52%);
  display: flex;
  flex-direction: row-reverse;
  align-items: flex-start;
  gap: clamp(0.5rem, 1.1vw, 0.85rem);
  text-shadow: 0 1px 10px rgba(20, 32, 24, 0.3);
}
/* 各行に細い短冊を敷く（写真の上でも読みやすく、句が掛かっているように見せる） */
.hero-copy .line {
  writing-mode: vertical-rl;
  font-family: var(--font-display);
  font-weight: 500;
  /* 縦書き10文字+段差+短冊の余白が必ず画面内に収まるよう、画面高さ(svh)でも上限を切る */
  font-size: min(clamp(1.5rem, 3.6vw, 2.5rem), 4.2svh);
  letter-spacing: 0.28em;
  line-height: 1;
  padding: 1em 0.52em;
  background: rgba(23, 38, 29, 0.16);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  border: 1px solid rgba(250, 250, 245, 0.12);
  border-radius: 4px;
}
/* 2行はひとつの文。同格の同サイズにし、短冊の段差だけで律動をつける */
.hero-copy .line.sub { margin-block-start: 1.6em; }
.hero-foot {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1.5rem;
}
.hero-place {
  font-size: 0.8125rem;
  letter-spacing: 0.3em;
  line-height: 1.9;
}
.hero-place strong {
  display: block;
  font-family: var(--font-display);
  font-size: 1.0625rem;
  font-weight: 500;
  letter-spacing: 0.22em;
}
.hero-cta { display: flex; gap: 0.75rem; flex-wrap: wrap; }
/* 芝生の上でも読めるよう、ヒーロー内の枠ボタンは生成りの文字＋薄い羽衣 */
.hero-cta .btn-ghost {
  color: var(--kinari);
  border-color: rgba(250, 248, 242, 0.75);
  background: rgba(20, 32, 24, 0.32);
  backdrop-filter: blur(3px);
}
.hero-cta .btn-ghost:hover {
  background: var(--kinari);
  color: var(--green-deep);
  border-color: var(--kinari);
}
.hero-place .nowrap { white-space: nowrap; }
@media (max-width: 640px) {
  .hero-place { letter-spacing: 0.18em; }
  .hero-place strong { font-size: 0.9375rem; letter-spacing: 0.14em; }
}
/* スクロールガイド: 画面左に縦書きの誘い文句と、下へ流れる糸 */
.scroll-guide {
  position: absolute;
  left: clamp(1.1rem, 3vw, 2.6rem);
  top: 55%;
  transform: translateY(-50%);
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
  color: var(--kinari);
}
.scroll-guide-text {
  writing-mode: vertical-rl;
  font-family: var(--font-display);
  font-size: 0.75rem;
  letter-spacing: 0.42em;
  text-shadow: 0 1px 14px rgba(20, 32, 24, 0.55);
}
.scroll-guide-line {
  width: 1px;
  height: 84px;
  background: rgba(250, 248, 242, 0.28);
  position: relative;
  overflow: hidden;
}
@media (prefers-reduced-motion: no-preference) {
  .scroll-guide {
    animation: guide-in 1.2s ease 1s both;
  }
  @keyframes guide-in {
    from { opacity: 0; transform: translateY(calc(-50% + 14px)); }
    to { opacity: 1; transform: translateY(-50%); }
  }
  .scroll-guide-line::after {
    content: "";
    position: absolute; inset: 0;
    background: linear-gradient(180deg, transparent 0%, var(--kinari) 45%, transparent 100%);
    animation: thread 2.6s ease-in-out infinite;
  }
  @keyframes thread {
    0% { transform: translateY(-100%); }
    60%, 100% { transform: translateY(100%); }
  }
}
@media (max-width: 640px) {
  .hero-copy { right: 1.4rem; transform: translateY(-58%); }
}

/* ---------- 入口のあいさつ（トップのみ） ----------
   暖簾をくぐる一瞬の幕。約1.5秒で自動で消え、操作を一切さまたげない。
   表示判定はインラインスクリプト（1セッション1回・reduced-motion除外） */
.greeting {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 200;
  background: var(--kinari);
  place-items: center;
  text-align: center;
  pointer-events: none;
}
.greeting .g-main {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(1.75rem, 5vw, 2.5rem);
  letter-spacing: 0.3em;
  color: var(--green-deep);
}
@media (prefers-reduced-motion: no-preference) {
  html.show-greeting .greeting {
    display: grid;
    animation: greeting-veil 1.5s ease forwards;
  }
  html.show-greeting .greeting .g-main {
    animation: greeting-text 1.5s ease forwards;
  }
  @keyframes greeting-veil {
    0%, 62% { opacity: 1; }
    100% { opacity: 0; visibility: hidden; }
  }
  @keyframes greeting-text {
    0% { opacity: 0; letter-spacing: 0.46em; }
    28%, 100% { opacity: 1; letter-spacing: 0.3em; }
  }
}

/* ---------- 下層ページヒーロー ---------- */
.page-hero {
  position: relative;
  padding-block: clamp(9rem, 16vw, 12rem) clamp(3.5rem, 7vw, 5.5rem);
}
.page-hero .page-label {
  font-size: 0.8125rem;
  letter-spacing: 0.4em;
  color: var(--tatami);
  margin-block-end: 1rem;
}
.page-hero h1 {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(1.9rem, 4.2vw, 2.75rem);
  letter-spacing: 0.16em;
  line-height: 1.7;
}
.page-hero .section-lead { margin-block-start: 1.5rem; }

/* ---------- 汎用パーツ ---------- */
.photo { overflow: hidden; border-radius: var(--radius); }
.photo img { width: 100%; height: 100%; object-fit: cover; }

.media-split {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: clamp(2rem, 5vw, 4.5rem);
  align-items: center;
}
.media-split .photo { box-shadow: var(--shadow); }
/* 2カラム内の見出しは一回り小さくし、読点直後の孤立改行を防ぐ */
.media-split .section-title { font-size: clamp(1.375rem, 2.4vw, 1.8125rem); }
@media (max-width: 820px) {
  .media-split { grid-template-columns: 1fr; }
}

.card-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(1.25rem, 2.5vw, 2rem);
}
@media (max-width: 900px) { .card-grid { grid-template-columns: 1fr; } }

.scene-card { display: grid; gap: 1.1rem; }
.scene-card .photo { aspect-ratio: 4 / 5; }
.scene-card h3 {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 1.1875rem;
  letter-spacing: 0.14em;
}
.scene-card p { font-size: 0.9375rem; color: var(--ink-soft); }

.link-card {
  position: relative;
  display: grid;
  grid-template-rows: auto 1fr;
  background: var(--white);
  border: 1px solid var(--hairline);
  border-radius: var(--radius);
  overflow: hidden;
  transition: box-shadow 0.3s ease, transform 0.3s ease;
}
.link-card:hover { box-shadow: var(--shadow); transform: translateY(-3px); }
.link-card .photo { aspect-ratio: 16 / 10; border-radius: 0; }
.link-card .photo img { transition: transform 0.6s ease; }
.link-card:hover .photo img { transform: scale(1.04); }
.link-card .body { padding: 1.5rem 1.6rem 1.7rem; display: grid; gap: 0.5rem; }
.link-card h3 {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 1.125rem;
  letter-spacing: 0.14em;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}
.link-card h3::after {
  content: "→";
  font-family: var(--font-body);
  color: var(--tatami);
  transition: transform 0.3s ease;
}
.link-card:hover h3::after { transform: translateX(4px); }
.link-card p { font-size: 0.875rem; color: var(--ink-soft); }

/* 設備リスト */
.spec-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 1px;
  background: var(--hairline);
  border: 1px solid var(--hairline);
  border-radius: var(--radius-sm);
  overflow: hidden;
}
.spec-cell { background: var(--white); padding: 1.4rem 1.5rem; }
.spec-cell dt {
  font-size: 0.8125rem;
  letter-spacing: 0.2em;
  color: var(--tatami);
  margin-block-end: 0.35rem;
}
.spec-cell dd { margin: 0; font-size: 0.9375rem; }

.tag-list { display: flex; flex-wrap: wrap; gap: 0.5rem 0.6rem; }
.tag-list li {
  font-size: 0.8125rem;
  letter-spacing: 0.08em;
  background: var(--green-mist);
  color: var(--green);
  padding: 0.35em 0.9em;
  border-radius: 999px;
}

/* 準備中の注記 */
.pending {
  display: inline-block;
  font-size: 0.75rem;
  letter-spacing: 0.12em;
  color: var(--ink-soft);
  border: 1px solid var(--hairline);
  border-radius: 999px;
  padding: 0.15em 0.9em;
  background: var(--white);
}

/* ---------- 予約・LINE 導線 ---------- */
.reserve-panel {
  background: var(--sage);
  color: var(--ink);
  border-radius: var(--radius);
  padding: clamp(2.5rem, 6vw, 4.5rem);
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: clamp(2rem, 5vw, 4rem);
}
.reserve-panel .cell { display: grid; gap: 1rem; align-content: start; }
.reserve-panel .cell + .cell { border-inline-start: 1px solid rgba(44, 56, 51, 0.14); padding-inline-start: clamp(2rem, 5vw, 4rem); }
.reserve-panel h3 {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 1.25rem;
  letter-spacing: 0.16em;
  color: var(--green-deep);
}
.reserve-panel p { font-size: 0.9rem; color: var(--ink-soft); }
.reserve-panel .btn { justify-self: start; }
@media (max-width: 760px) {
  .reserve-panel { grid-template-columns: 1fr; }
  .reserve-panel .cell + .cell {
    border-inline-start: 0;
    padding-inline-start: 0;
    border-top: 1px solid rgba(44, 56, 51, 0.14);
    padding-block-start: 2rem;
  }
}

/* Instagramリンク（フッター） */
.insta-link {
  display: inline-flex;
  align-items: center;
  gap: 0.5em;
  font-size: 0.9375rem;
  letter-spacing: 0.08em;
  justify-self: start;
}
.insta-link:hover { text-decoration: underline; text-underline-offset: 5px; }
/* Instagram公式カラー（グラデーション） */
.insta-link::before {
  content: "";
  width: 1.3em;
  height: 1.3em;
  flex: none;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cdefs%3E%3ClinearGradient id='ig' x1='2' y1='22' x2='22' y2='2' gradientUnits='userSpaceOnUse'%3E%3Cstop offset='0' stop-color='%23FEDA75'/%3E%3Cstop offset='.25' stop-color='%23FA7E1E'/%3E%3Cstop offset='.5' stop-color='%23D62976'/%3E%3Cstop offset='.75' stop-color='%23962FBF'/%3E%3Cstop offset='1' stop-color='%234F5BD5'/%3E%3C/linearGradient%3E%3C/defs%3E%3Crect x='2' y='2' width='20' height='20' rx='6' fill='url(%23ig)'/%3E%3Ccircle cx='12' cy='12' r='4.2' fill='none' stroke='%23fff' stroke-width='2'/%3E%3Ccircle cx='17.3' cy='6.7' r='1.25' fill='%23fff'/%3E%3C/svg%3E") center / contain no-repeat;
}

/* LINE友だち追加QR（パネル内・PC向けの補助導線） */
.line-qr {
  display: flex;
  align-items: center;
  gap: 0.9rem;
  margin-block-start: 0.35rem;
}
.line-qr img {
  width: 96px;
  height: 96px;
  background: #fff;
  padding: 6px;
  border-radius: var(--radius-sm);
  border: 1px solid rgba(44, 56, 51, 0.14);
}
.line-qr figcaption {
  font-size: 0.8125rem;
  line-height: 1.7;
  color: var(--ink-soft);
}

/* ---------- テーブル（料金など） ----------
   規約: ヘッダー折り返し禁止 / 数値右寄せ・等幅数字 */
.table-wrap { overflow-x: auto; border: 1px solid var(--hairline); border-radius: var(--radius-sm); background: var(--white); }
table.data {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9375rem;
}
table.data th, table.data td {
  padding: 1rem 1.4rem;
  border-bottom: 1px solid var(--hairline);
  text-align: left;
}
table.data thead th {
  white-space: nowrap;
  font-size: 0.8125rem;
  letter-spacing: 0.16em;
  font-weight: 500;
  color: var(--green);
  background: var(--green-mist);
}
table.data tbody tr:last-child th,
table.data tbody tr:last-child td { border-bottom: 0; }
table.data .num {
  text-align: right;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

/* ---------- FAQ ---------- */
.faq details {
  background: var(--white);
  border: 1px solid var(--hairline);
  border-radius: var(--radius-sm);
}
.faq details + details { margin-block-start: 0.75rem; }
.faq summary {
  display: flex;
  align-items: baseline;
  gap: 1rem;
  padding: 1.2rem 1.5rem;
  font-weight: 500;
  letter-spacing: 0.06em;
}
.faq summary::before {
  content: "問";
  flex: none;
  font-family: var(--font-display);
  color: var(--tatami);
}
.faq summary::after {
  content: "＋";
  margin-inline-start: auto;
  color: var(--tatami);
  transition: transform 0.25s ease;
}
.faq details[open] summary::after { transform: rotate(45deg); }
.faq .answer {
  padding: 0 1.5rem 1.3rem 3.4rem;
  font-size: 0.9375rem;
  color: var(--ink-soft);
}

/* ---------- タイムライン（連泊の一日） ---------- */
.timeline { display: grid; gap: 0; }
.timeline li {
  display: grid;
  grid-template-columns: 5.5rem auto 1fr;
  gap: 1.25rem;
  align-items: baseline;
  position: relative;
  padding-block: 1.1rem;
}
.timeline li + li { border-top: 1px dashed var(--hairline); }
.timeline .time {
  font-family: var(--font-display);
  font-variant-numeric: tabular-nums;
  color: var(--tatami);
  letter-spacing: 0.1em;
  white-space: nowrap;
}
.timeline .what { font-weight: 500; white-space: nowrap; letter-spacing: 0.08em; }
.timeline .how { font-size: 0.9rem; color: var(--ink-soft); }
@media (max-width: 640px) {
  .timeline li { grid-template-columns: 4.4rem 1fr; }
  .timeline .how { grid-column: 2; }
}

/* ---------- footer ---------- */
.site-footer {
  background: var(--sage);
  color: var(--ink);
  margin-block-start: var(--space-section);
  overflow: hidden;
  border-top: 1px solid var(--hairline);
}
/* 風の波線: フッターの上端をゆっくり流れる */
.site-footer::before {
  content: "";
  display: block;
  height: 18px;
  margin-block-start: 1.6rem;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='240' height='18' viewBox='0 0 240 18'%3E%3Cpath d='M0 9 Q30 3 60 9 T120 9 T180 9 T240 9' fill='none' stroke='%2346705F' stroke-opacity='0.4' stroke-width='1.2'/%3E%3C/svg%3E");
  background-repeat: repeat-x;
  background-position: 0 center;
  background-size: 240px 18px;
}
@media (prefers-reduced-motion: no-preference) {
  /* 1周期6秒（40px/s）。それ以上遅いと止まって見える */
  .site-footer::before { animation: wind-drift 6s linear infinite; }
  @keyframes wind-drift {
    to { background-position: -240px center; }
  }
}
.footer-inner {
  max-width: var(--container);
  margin-inline: auto;
  padding: clamp(3rem, 6vw, 4.5rem) clamp(1.25rem, 4vw, 2.5rem) 2.5rem;
}
/* 実用エリア: PC3カラム / スマホ1カラム中央 */
.footer-main {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1.2fr;
  gap: clamp(2rem, 5vw, 4rem);
}
.footer-brand { display: grid; gap: 1rem; align-content: start; }
.footer-brand .brand-name { font-size: 1.25rem; }
.footer-brand .brand-sub { color: var(--tatami); }
.footer-brand p { font-size: 0.85rem; color: var(--ink-soft); line-height: 1.9; max-width: 26em; }
.footer-nav h4, .footer-contact h4 {
  font-size: 0.8125rem;
  letter-spacing: 0.3em;
  font-weight: 500;
  color: var(--green);
  margin-block-end: 1.1rem;
}
.footer-nav li + li { margin-block-start: 0.5rem; }
.footer-nav a { font-size: 0.9375rem; letter-spacing: 0.1em; opacity: 0.92; }
.footer-nav a:hover { opacity: 1; text-decoration: underline; text-underline-offset: 5px; }

.footer-contact { display: grid; gap: 1rem; align-content: start; }
/* CTAは等幅・全幅で揃える（幅のガタつき解消） */
.footer-cta { display: grid; gap: 0.7rem; }
.footer-cta .btn { width: 100%; }
.footer-note { font-size: 0.8125rem; color: var(--ink-soft); }
.footer-tel { display: grid; gap: 0.1rem; }
.footer-tel .footer-tel-label { font-size: 0.75rem; letter-spacing: 0.08em; color: var(--ink-soft); }
.footer-tel a { font-family: var(--font-display); font-size: 1.2rem; letter-spacing: 0.05em; color: var(--ink); }
.footer-tel a:hover { color: var(--green); }
.footer-social { display: flex; flex-wrap: wrap; gap: 1.4rem; }
.footer-social a { font-size: 0.875rem; letter-spacing: 0.06em; }
.map-link { display: inline-flex; align-items: center; gap: 0.5em; }
.map-link:hover { text-decoration: underline; text-underline-offset: 5px; }
/* Googleマップ公式カラー（赤ピン） */
.map-link::before {
  content: "";
  width: 1.25em; height: 1.25em; flex: none;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='%23EA4335' d='M12 2C8.1 2 5 5.1 5 9c0 4.7 6.1 12.3 6.4 12.6.34.42.86.42 1.2 0C12.9 21.3 19 13.7 19 9c0-3.9-3.1-7-7-7z'/%3E%3Ccircle cx='12' cy='9' r='2.55' fill='%23fff'/%3E%3C/svg%3E") center/contain no-repeat;
}
.copyright {
  border-top: 1px solid rgba(44, 56, 51, 0.15);
  text-align: center;
  font-size: 0.75rem;
  letter-spacing: 0.16em;
  padding-block: 1.6rem;
  opacity: 0.7;
}
@media (max-width: 860px) {
  .footer-main {
    grid-template-columns: 1fr;
    justify-items: center;
    text-align: center;
    gap: 2.75rem;
  }
  .footer-brand { justify-items: center; }
  .footer-brand p { max-width: 30em; }
  .footer-contact { width: 100%; max-width: 360px; }
  .footer-social { justify-content: center; }
}

/* ---------- スクロールリビール ----------
   「風の所作」: 立ち上がり→写真が収まる→罫の筆入れ、を一連で見せる */
@media (prefers-reduced-motion: no-preference) {
  .reveal {
    opacity: 0;
    transform: translateY(26px);
    transition: opacity 0.9s ease, transform 0.9s ease;
  }
  .reveal.is-in { opacity: 1; transform: none; }

  /* カード群は右のものほど半歩遅れて */
  .card-grid > .reveal:nth-child(2) { transition-delay: 0.14s; }
  .card-grid > .reveal:nth-child(3) { transition-delay: 0.28s; }

  /* 写真: 幕が上から開きながら、寄りから引いて定位置に収まる */
  .media-split.reveal .photo,
  .scene-card.reveal .photo,
  figure.photo.reveal {
    clip-path: inset(0 0 100% 0 round var(--radius));
    transition: clip-path 1.2s cubic-bezier(0.16, 1, 0.3, 1) 0.1s;
  }
  .media-split.reveal.is-in .photo,
  .scene-card.reveal.is-in .photo,
  figure.photo.reveal.is-in { clip-path: inset(0 0 0 0 round var(--radius)); }
  .media-split.reveal .photo img,
  .scene-card.reveal .photo img,
  figure.photo.reveal img {
    transform: scale(1.28);
    transition: transform 1.5s cubic-bezier(0.16, 1, 0.3, 1) 0.1s;
  }
  .media-split.reveal.is-in .photo img,
  .scene-card.reveal.is-in .photo img,
  figure.photo.reveal.is-in img { transform: scale(1); }

  /* 章ラベルの罫: 上から下へ */
  .reveal .section-label::before {
    transform: scaleY(0);
    transition: transform 0.9s cubic-bezier(0.22, 0.61, 0.36, 1) 0.35s;
  }
  .reveal.is-in .section-label::before { transform: scaleY(1); }

  /* タイムライン: 一日の流れを上から順に */
  .reveal .timeline li {
    opacity: 0;
    transform: translateX(-12px);
    transition: opacity 0.7s ease, transform 0.7s ease;
  }
  .reveal.is-in .timeline li { opacity: 1; transform: none; }
  .reveal.is-in .timeline li:nth-child(2) { transition-delay: 0.1s; }
  .reveal.is-in .timeline li:nth-child(3) { transition-delay: 0.2s; }
  .reveal.is-in .timeline li:nth-child(4) { transition-delay: 0.3s; }
  .reveal.is-in .timeline li:nth-child(5) { transition-delay: 0.4s; }
  .reveal.is-in .timeline li:nth-child(6) { transition-delay: 0.5s; }
}

/* ---------- 補助 ---------- */
.note-list { display: grid; gap: 0.5rem; font-size: 0.9rem; color: var(--ink-soft); }
.note-list li { padding-inline-start: 1.2em; position: relative; }
.note-list li::before {
  content: "";
  position: absolute; left: 0; top: 0.85em;
  width: 0.5em; height: 1px; background: var(--tatami);
}
.text-center { text-align: center; }

/* ---------- 透かし文字 ----------
   セクションの主題を一文字の白抜き漢字で背景に置く（庭・風・和・島・泊・道） */
.section > .container,
.page-hero .container { position: relative; }
.ghost-char {
  position: absolute;
  z-index: -1;
  right: -0.08em;
  top: -0.22em;
  pointer-events: none;
  user-select: none;
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(11rem, 24vw, 19rem);
  line-height: 1;
  color: transparent;
  -webkit-text-stroke: 1px rgba(51, 82, 62, 0.14);
}
@supports not (-webkit-text-stroke: 1px black) {
  .ghost-char { color: rgba(51, 82, 62, 0.06); }
}

/* ---------- 全幅の写真バンド（パララックス） ---------- */
.band {
  position: relative;
  min-height: clamp(380px, 60vh, 640px);
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
  display: grid;
  place-items: center;
  overflow: hidden;
  /* 縦書きキャプションが上下端に張り付かないための呼吸 */
  padding-block: clamp(4rem, 9vw, 6.5rem);
}
/* モバイル・タッチ端末では fixed が効かないためスクロールに戻す */
@media (max-width: 900px), (hover: none) {
  .band { background-attachment: scroll; }
}
.band::after {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(20, 32, 24, 0.2);
}
.band-caption {
  position: relative;
  z-index: 1;
  writing-mode: vertical-rl;
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(1.125rem, 2.2vw, 1.625rem);
  letter-spacing: 0.38em;
  line-height: 1;
  color: var(--kinari);
  text-shadow: 0 2px 22px rgba(20, 32, 24, 0.55);
  max-height: 100%;
}

/* ---------- 地図埋め込み ---------- */
.map-embed {
  margin-block-start: clamp(2rem, 4vw, 3rem);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  aspect-ratio: 16 / 7;
  background: var(--green-mist);
}
.map-embed iframe {
  display: block;
  width: 100%;
  height: 100%;
}
@media (max-width: 720px) {
  .map-embed { aspect-ratio: 4 / 3; }
}

/* ---------- 本文中のテキストリンクは宮古ブルー ---------- */
main p a,
main dd a,
.answer a,
.section-lead a {
  color: var(--umi);
  text-underline-offset: 4px;
}
main p a:hover,
main dd a:hover,
.answer a:hover,
.section-lead a:hover { opacity: 0.75; }

/* ---------- 淡緑の帯セクション ---------- */
.section.section-tint {
  background: #eef3ec;
  border-block: 1px solid var(--hairline);
  padding-block: clamp(4.5rem, 8vw, 7.5rem);
}
.section-tint + .section { padding-block-start: var(--space-section); }
