/* =========================================================
   ともや旅館 スタイルシート
   ---------------------------------------------------------
   ✏️ サイト全体の色は、下の「:root」の中を変えるだけで一括変更できます。
      例）--ai（藍色）を #1f5f5b にすると、ボタンや見出しの色が緑系に変わります。
   ========================================================= */

:root {
  --ai: #1f3d63;          /* メインカラー（徳島の藍染をイメージした藍色） */
  --ai-deep: #152a45;     /* メインカラーの濃い版 */
  --ai-soft: #e7edf5;     /* メインカラーの薄い版 */
  --shu: #c4553b;         /* アクセント（朱色・阿波おどりの提灯イメージ） */
  --kinari: #f7f3eb;      /* 背景（生成り色） */
  --paper: #ffffff;       /* カードの背景 */
  --ink: #1f2530;         /* 文字色 */
  --muted: #5d6573;       /* 補足文字の色 */
  --line: #e4ddd0;        /* 罫線の色 */

  --radius: 16px;
  --shadow: 0 1px 2px rgba(20, 30, 50, .05), 0 8px 24px rgba(20, 30, 50, .06);
  --font-sans: "Zen Kaku Gothic New", "Hiragino Kaku Gothic ProN", "Yu Gothic", Meiryo, sans-serif;
  --font-serif: "Zen Old Mincho", "Hiragino Mincho ProN", "Yu Mincho", serif;
}

/* ---------- 基本 ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 80px; }
body {
  margin: 0;
  font-family: var(--font-sans);
  color: var(--ink);
  background: var(--kinari);
  line-height: 1.85;
  letter-spacing: .03em;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: var(--ai); }
h1, h2, h3 { line-height: 1.4; margin: 0; }
p { margin: 0; }

.container { width: min(1120px, 100% - 32px); margin-inline: auto; }
.container-narrow { width: min(780px, 100% - 32px); }

.eyebrow {
  font-size: .78rem;
  font-weight: 700;
  letter-spacing: .2em;
  color: var(--shu);
}

/* ---------- ボタン ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .4em;
  padding: .85em 1.6em;
  border-radius: 999px;
  font-weight: 700;
  text-decoration: none;
  border: 1.5px solid transparent;
  transition: transform .15s, background .15s, box-shadow .15s;
}
.btn:hover { transform: translateY(-1px); }
.btn-primary { background: var(--ai); color: #fff; box-shadow: 0 6px 16px rgba(31, 61, 99, .25); }
.btn-primary:hover { background: var(--ai-deep); }
.btn-ghost { border-color: var(--ai); color: var(--ai); background: transparent; }
.btn-ghost:hover { background: var(--ai-soft); }
.btn-light { background: #fff; color: var(--ai); }
.btn-sm { padding: .5em 1.1em; font-size: .9rem; }
.btn-lg { padding: 1em 2.2em; font-size: 1.2rem; letter-spacing: .06em; }

/* ---------- ヘッダー ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(247, 243, 235, .85);
  backdrop-filter: saturate(1.4) blur(12px);
  -webkit-backdrop-filter: saturate(1.4) blur(12px);
  border-bottom: 1px solid transparent;
  transition: border-color .2s, box-shadow .2s;
}
.site-header.is-scrolled { border-color: var(--line); box-shadow: 0 2px 12px rgba(0, 0, 0, .04); }
.header-inner { display: flex; align-items: center; justify-content: space-between; height: 68px; }

.logo { display: flex; align-items: center; gap: .7em; text-decoration: none; color: var(--ink); }
.logo-mark {
  width: 40px; height: 40px; border-radius: 10px;
  display: grid; place-items: center;
  background: var(--ai); color: #fff;
  font-family: var(--font-serif); font-size: 1.3rem;
}
.logo-text { font-family: var(--font-serif); font-size: 1.2rem; font-weight: 700; line-height: 1.1; }
.logo-text small { display: block; font-family: var(--font-sans); font-size: .6rem; letter-spacing: .25em; color: var(--muted); font-weight: 500; }

.global-nav { display: flex; align-items: center; gap: 1.6rem; }
.global-nav a:not(.btn) { color: var(--ink); text-decoration: none; font-size: .92rem; font-weight: 500; }
.global-nav a:not(.btn):hover { color: var(--ai); }

.menu-btn { display: none; }

/* ---------- ヒーロー ---------- */
.hero { padding: clamp(40px, 8vw, 96px) 0 clamp(48px, 7vw, 88px); overflow: hidden; }
.hero-inner { display: grid; grid-template-columns: 1.1fr 1fr; gap: clamp(32px, 5vw, 64px); align-items: center; }
.hero-title {
  font-family: var(--font-serif);
  font-size: clamp(2rem, 5vw, 3.4rem);
  letter-spacing: .06em;
  margin: .4em 0 .5em;
  color: var(--ai-deep);
}
.hero-lead { color: var(--muted); font-size: 1.02rem; }

.rating-badge {
  display: inline-flex; align-items: center; gap: .6em;
  margin-top: 1.4rem; padding: .45em 1em .45em .5em;
  background: var(--paper); border: 1px solid var(--line); border-radius: 999px;
  text-decoration: none; color: var(--ink); font-size: .9rem;
  box-shadow: var(--shadow);
}
.rating-score { background: var(--ai); color: #fff; font-weight: 700; border-radius: 999px; padding: .05em .7em; }
.stars { color: #e3a008; letter-spacing: .05em; }
.rating-note { color: var(--muted); }

.hero-actions { display: flex; flex-wrap: wrap; gap: .8rem; margin-top: 1.6rem; }

.hero-points { display: flex; flex-wrap: wrap; gap: .6rem 1.6rem; list-style: none; padding: 0; margin: 1.8rem 0 0; font-size: .95rem; }
.hero-points li { display: flex; align-items: baseline; gap: .5em; }
.hero-points strong { font-size: .75rem; color: var(--ai); background: var(--ai-soft); padding: .1em .6em; border-radius: 4px; }

.hero-photos { position: relative; aspect-ratio: 1 / 1; }
.hp { position: absolute; object-fit: cover; border-radius: var(--radius); box-shadow: 0 16px 40px rgba(20, 30, 50, .18); border: 6px solid #fff; }
.hp-1 { width: 66%; aspect-ratio: 4 / 3; top: 4%; left: 0; z-index: 2; }
.hp-2 { width: 50%; aspect-ratio: 4 / 3; top: 0; right: 0; transform: rotate(3deg); }
.hp-3 { width: 60%; aspect-ratio: 4 / 3; bottom: 2%; right: 6%; z-index: 3; transform: rotate(-2deg); }

/* ---------- ご利用シーン ---------- */
.scenes { background: var(--ai); color: #fff; padding: 18px 0; }
.scene-list { display: flex; flex-wrap: wrap; justify-content: center; gap: .6rem 2rem; list-style: none; margin: 0; padding: 0; font-weight: 500; font-size: .95rem; }

/* ---------- セクション共通 ---------- */
.section { padding: clamp(64px, 9vw, 112px) 0; }
.section-tint { background: #efe9dd; }
.section-head { text-align: center; max-width: 640px; margin: 0 auto clamp(32px, 5vw, 56px); }
.section-head h2 {
  font-family: var(--font-serif);
  font-size: clamp(1.6rem, 3.4vw, 2.3rem);
  color: var(--ai-deep);
  margin: .3em 0 .5em;
  letter-spacing: .08em;
}
.section-head p:not(.eyebrow) { color: var(--muted); }

.grid { display: grid; gap: 20px; }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }

.card { background: var(--paper); border-radius: var(--radius); padding: 28px; box-shadow: var(--shadow); }

/* 選ばれる理由 */
.reason h3 { font-size: 1.15rem; margin: .4em 0 .6em; color: var(--ai-deep); }
.reason p { color: var(--muted); font-size: .95rem; }
.reason-num { font-family: var(--font-serif); font-size: 2rem; color: var(--shu); line-height: 1; }
.reason-accent { background: var(--ai); }
.reason-accent h3 { color: #fff; }
.reason-accent p { color: rgba(255, 255, 255, .85); }
.reason-accent .reason-num { color: #f3c9a0; }

/* お客様の声 */
.voice { margin: 0; background: var(--paper); border-radius: var(--radius); padding: 26px 26px 22px; box-shadow: var(--shadow); display: flex; flex-direction: column; gap: .8rem; }
.voice-stars { color: #e3a008; letter-spacing: .1em; }
.voice blockquote { margin: 0; flex: 1; font-size: .98rem; }
.voice blockquote::before { content: "“"; font-family: var(--font-serif); font-size: 2rem; line-height: 0; color: var(--line); vertical-align: -.4em; margin-right: .1em; }
.voice figcaption { font-size: .82rem; color: var(--muted); border-top: 1px dashed var(--line); padding-top: .7rem; }
.voice-cta { align-items: center; justify-content: center; text-align: center; background: transparent; border: 2px dashed #d6ccba; box-shadow: none; }
.voice-cta p { font-weight: 700; color: var(--ai-deep); }

/* 空室カレンダー */
.calendar-wrap { display: grid; grid-template-columns: 1fr 300px; gap: 24px; align-items: start; }
.calendar-legend { grid-column: 1 / -1; display: flex; flex-wrap: wrap; gap: .5rem 1.6rem; font-size: .9rem; color: var(--muted); }
.dot { display: inline-block; width: 12px; height: 12px; border-radius: 50%; margin-right: .4em; vertical-align: -1px; }
.dot-ok { background: #fff; border: 2px solid #9aa4b1; }
.dot-few { background: #f09300; }
.dot-full { background: #d50000; }
.calendar-frame { background: var(--paper); border-radius: var(--radius); padding: 10px; box-shadow: var(--shadow); }
.calendar-frame iframe { width: 100%; height: 600px; border: 0; border-radius: 10px; display: block; }
.calendar-cta { background: var(--paper); border-radius: var(--radius); padding: 28px 24px; box-shadow: var(--shadow); text-align: center; display: grid; gap: 1rem; position: sticky; top: 90px; }
.calendar-cta .btn-lg { font-size: 1.1rem; padding: 1em 1.2em; }
.calendar-cta small { color: var(--muted); font-size: .8rem; }

/* 料金 */
.price-card { position: relative; background: var(--paper); border-radius: var(--radius); padding: 30px 20px 26px; text-align: center; box-shadow: var(--shadow); border: 2px solid transparent; }
.price-card h3 { font-size: 1rem; color: var(--muted); font-weight: 700; }
.price { font-size: 1rem; margin: .4rem 0 .6rem; color: var(--ai-deep); font-weight: 700; }
.price span { font-family: var(--font-serif); font-size: 2.4rem; letter-spacing: .02em; }
.price-note { font-size: .85rem; color: var(--muted); }
.price-card-featured { border-color: var(--ai); }
.tag { position: absolute; top: -13px; left: 50%; transform: translateX(-50%); background: var(--shu); color: #fff; font-size: .75rem; font-weight: 700; padding: .25em 1em; border-radius: 999px; }

/* お部屋・設備 */
.rooms-layout { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(28px, 5vw, 56px); align-items: start; }
.gallery { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.gallery figure { margin: 0; position: relative; }
.gallery figure:first-child { grid-column: 1 / -1; }
.gallery img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 12px; }
.gallery figcaption { position: absolute; left: 10px; bottom: 10px; background: rgba(21, 42, 69, .8); color: #fff; font-size: .75rem; padding: .2em .7em; border-radius: 999px; }

.info-list { margin: 0; background: var(--paper); border-radius: var(--radius); padding: 8px 24px; box-shadow: var(--shadow); }
.info-list div { display: grid; grid-template-columns: 8.5em 1fr; gap: 1em; padding: 14px 0; border-bottom: 1px solid var(--line); }
.info-list div:last-child { border-bottom: 0; }
.info-list dt { color: var(--muted); font-size: .9rem; }
.info-list dd { margin: 0; font-weight: 500; }

.sub-title { font-size: 1rem; margin: 28px 0 12px; color: var(--ai-deep); }
.chips { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; margin: 0; padding: 0; }
.chips li { background: var(--paper); border: 1px solid var(--line); border-radius: 999px; padding: .3em 1em; font-size: .88rem; }

/* 観光 */
.spot-card { background: var(--paper); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); }
.spot-card img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; }
.spot-body { padding: 22px 24px 26px; }
.spot-body h3 { font-size: 1.05rem; color: var(--ai-deep); margin-bottom: .8em; }
.spot-body ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px; }
.spot-body li { font-size: .82rem; background: var(--kinari); border-radius: 6px; padding: .2em .7em; }

/* FAQ */
.faq-list { display: grid; gap: 10px; }
.faq-item { background: var(--paper); border-radius: 12px; box-shadow: var(--shadow); }
.faq-item summary {
  list-style: none; cursor: pointer;
  padding: 18px 56px 18px 56px; position: relative; font-weight: 700;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::before { content: "Q"; position: absolute; left: 20px; top: 16px; font-family: var(--font-serif); color: var(--ai); font-size: 1.2rem; }
.faq-item summary::after { content: "+"; position: absolute; right: 22px; top: 50%; transform: translateY(-50%); font-size: 1.4rem; color: var(--muted); transition: transform .2s; }
.faq-item[open] summary::after { transform: translateY(-50%) rotate(45deg); }
.faq-item p { padding: 0 24px 20px 56px; color: var(--muted); position: relative; }
.faq-item p::before { content: "A"; position: absolute; left: 20px; top: -2px; font-family: var(--font-serif); color: var(--shu); font-size: 1.2rem; }

/* アクセス */
.access-layout { display: grid; grid-template-columns: 1.2fr 1fr; gap: 28px; align-items: start; }
.map { border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); background: var(--paper); }
.map iframe { width: 100%; height: 100%; min-height: 460px; border: 0; display: block; }
.walk-list { list-style: none; margin: 0 0 20px; padding: 0; display: grid; gap: 8px; }
.walk-list li { display: flex; justify-content: space-between; gap: 1em; background: var(--paper); border-radius: 10px; padding: 12px 18px; box-shadow: var(--shadow); }
.walk-list b { color: var(--ai); white-space: nowrap; }

/* 最後の予約ボタン */
.final-cta { background: linear-gradient(135deg, var(--ai) 0%, var(--ai-deep) 100%); color: #fff; text-align: center; padding: clamp(56px, 8vw, 96px) 0; }
.final-cta h2 { font-family: var(--font-serif); font-size: clamp(1.5rem, 3vw, 2rem); letter-spacing: .08em; }
.final-cta p { opacity: .85; margin: .8em 0 1.8em; }

/* フッター */
.site-footer { background: var(--ai-deep); color: rgba(255, 255, 255, .75); padding: 36px 0 40px; font-size: .88rem; }
.footer-inner { display: flex; justify-content: space-between; align-items: flex-end; gap: 20px; flex-wrap: wrap; }
.footer-name { font-family: var(--font-serif); font-size: 1.2rem; color: #fff; margin-bottom: .4em; }

/* スマホ下部の固定ボタン（PCでは非表示） */
.mobile-bar { display: none; }

/* ふわっと表示するアニメーション */
.reveal { opacity: 0; transform: translateY(16px); transition: opacity .6s ease, transform .6s ease; }
.reveal.is-visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
}

/* =========================================================
   タブレット（幅960px以下）
   ========================================================= */
@media (max-width: 960px) {
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
  .grid-4 { grid-template-columns: repeat(2, 1fr); row-gap: 28px; }
  .calendar-wrap { grid-template-columns: 1fr; }
  .calendar-cta { position: static; }
  .rooms-layout, .access-layout { grid-template-columns: 1fr; }
  .map iframe { min-height: 340px; }

  .menu-btn {
    display: grid; gap: 5px; width: 44px; height: 44px; place-content: center;
    background: none; border: 0; cursor: pointer;
  }
  .menu-btn span { width: 22px; height: 2px; background: var(--ink); border-radius: 2px; transition: transform .2s, opacity .2s; }
  .menu-btn[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .menu-btn[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
  .menu-btn[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

  .global-nav {
    position: absolute; top: 68px; left: 0; right: 0;
    flex-direction: column; align-items: stretch; gap: 0;
    background: var(--kinari); border-bottom: 1px solid var(--line);
    padding: 8px 16px 20px;
    display: none;
  }
  .global-nav.is-open { display: flex; }
  .global-nav a:not(.btn) { padding: 14px 4px; border-bottom: 1px solid var(--line); }
  .nav-tel { margin-top: 16px; }
}

/* =========================================================
   スマホ（幅640px以下）
   ========================================================= */
@media (max-width: 640px) {
  .pc-only { display: none; }
  .hero-inner { grid-template-columns: 1fr; }
  .hero-photos { order: -1; aspect-ratio: 4 / 3; max-width: 440px; }
  .grid-3 { grid-template-columns: 1fr; }
  .grid-4 { grid-template-columns: 1fr 1fr; gap: 12px; row-gap: 24px; }
  .price span { font-size: 1.9rem; }
  .price-card { padding: 26px 10px 20px; }
  .calendar-frame iframe { height: 460px; }
  .info-list div { grid-template-columns: 7em 1fr; }
  .faq-item summary { padding-left: 48px; padding-right: 44px; }
  .faq-item p { padding-left: 48px; }
  .hero-actions .btn { flex: 1; }

  body { padding-bottom: 68px; }
  .mobile-bar {
    display: grid; grid-template-columns: 1fr 1fr;
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 60;
    background: #fff; border-top: 1px solid var(--line);
    box-shadow: 0 -4px 16px rgba(0, 0, 0, .06);
    padding: 8px 10px calc(8px + env(safe-area-inset-bottom));
    gap: 8px;
  }
  .mobile-bar a {
    display: flex; align-items: center; justify-content: center;
    height: 48px; border-radius: 12px; font-weight: 700; text-decoration: none;
    color: var(--ai); background: var(--ai-soft);
  }
  .mobile-bar .mobile-bar-tel { background: var(--ai); color: #fff; }
}
