/* ============================================
   とまり木 市ヶ谷 公式HP - 共通スタイル
   テイスト：和モダン・シンプル・上品
   カラー：ベージュ・深緑・茶・ゴールド
   ============================================ */

/* --- CSS変数 --- */
:root {
  /* メインカラー */
  --beige: #F5F0E8;
  --offwhite: #FAF7F2;
  --white: #FFFFFF;
  /* アクセントカラー */
  --green: #2D5A3D;
  --green2: #4A7C5C;
  --green3: #7BA88E;
  --green-light: #e8f0eb;
  --brown: #6B5344;
  --brown-light: #8B7355;
  --gold: #B8963E;
  --gold2: #D4B96A;
  --gold-light: #faf3e0;
  /* テキスト */
  --text: #3D3028;
  --text2: #6B5344;
  --text3: #8B7355;
  /* その他 */
  --line: #D4C9B8;
  --red: #C85A4A;
  --shadow: rgba(0,0,0,.06);
}

/* --- リセット --- */
*, *::before, *::after { margin:0; padding:0; box-sizing:border-box; }
html { scroll-behavior:smooth; scroll-padding-top:72px; }
body {
  font-family: 'Noto Sans JP', sans-serif;
  background: var(--offwhite);
  color: var(--text);
  line-height: 1.8;
  font-size: 15px;
  -webkit-font-smoothing: antialiased;
}
img { max-width:100%; height:auto; display:block; }
a { color: var(--green); text-decoration: none; transition: opacity .3s; }
a:hover { opacity: .8; }

/* --- 共通ヘッダー --- */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(45,90,61,.97);
  backdrop-filter: blur(10px);
  box-shadow: 0 2px 12px rgba(0,0,0,.15);
}
.header-inner {
  max-width: 1100px; margin: 0 auto;
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 20px; height: 64px;
}
.site-logo {
  color: #fff;
  font-family: 'Noto Serif JP', serif;
  font-size: 18px; font-weight: 700;
  letter-spacing: 3px; text-decoration: none;
}
.site-logo span { font-size: 11px; opacity: .7; letter-spacing: 1px; margin-left: 8px; }

/* ナビゲーション */
.nav-links { display: flex; gap: 4px; align-items: center; }
.nav-links a {
  color: rgba(255,255,255,.8); font-size: 12px;
  padding: 6px 12px; border-radius: 20px;
  white-space: nowrap; transition: all .3s;
}
.nav-links a:hover, .nav-links a.active {
  background: rgba(255,255,255,.15); color: #fff; opacity: 1;
}
/* ハンバーガー */
.hamburger {
  display: none; background: none; border: none;
  cursor: pointer; padding: 8px;
}
.hamburger span {
  display: block; width: 22px; height: 2px;
  background: #fff; margin: 5px 0; transition: all .3s;
}
.mobile-nav {
  display: none; position: fixed; top: 64px; left: 0; right: 0;
  background: rgba(45,90,61,.98); padding: 20px;
  flex-direction: column; gap: 4px; z-index: 99;
}
.mobile-nav.open { display: flex; }
.mobile-nav a {
  color: rgba(255,255,255,.9); padding: 12px 16px;
  font-size: 14px; border-bottom: 1px solid rgba(255,255,255,.1);
}

/* --- ヒーローセクション --- */
.hero {
  position: relative; overflow: hidden;
  background: linear-gradient(135deg, #1a3d28 0%, var(--green) 40%, #3a6e4d 100%);
  color: #fff; text-align: center;
}
.hero-img {
  width: 100%; height: 420px; object-fit: cover;
  position: absolute; top: 0; left: 0;
}
.hero-overlay {
  position: relative;
  padding: 80px 20px 80px;
  background: linear-gradient(to bottom, rgba(26,61,40,.55), rgba(45,90,61,.82));
}
.hero::after {
  content: ''; position: absolute; bottom: 0; left: 0; right: 0;
  height: 50px;
  background: linear-gradient(to bottom, transparent, var(--offwhite));
  z-index: 2;
}
.hero-badge {
  display: inline-block;
  background: rgba(184,150,62,.2); border: 1px solid rgba(184,150,62,.4);
  color: var(--gold2); font-size: 11px;
  padding: 4px 18px; border-radius: 20px;
  margin-bottom: 20px; letter-spacing: 2px;
}
.hero h1 {
  font-family: 'Noto Serif JP', serif;
  font-size: 36px; letter-spacing: 6px; font-weight: 700;
  margin-bottom: 8px;
}
.hero .sub {
  font-size: 14px; letter-spacing: 4px; opacity: .8;
  margin-bottom: 16px;
}
.hero .catch {
  font-family: 'Noto Serif JP', serif;
  font-size: 16px; line-height: 2; opacity: .9;
  margin-bottom: 24px;
}
.hero-divider {
  width: 60px; height: 2px; background: var(--gold);
  margin: 0 auto 24px;
}

/* --- セクション共通 --- */
.section {
  max-width: 900px; margin: 0 auto; padding: 60px 20px;
}
.section-header {
  text-align: center; margin-bottom: 40px;
}
.section-header .label {
  display: inline-block; background: var(--green);
  color: #fff; font-size: 10px;
  padding: 3px 14px; border-radius: 12px;
  letter-spacing: 2px; margin-bottom: 10px;
}
.section-header h2 {
  font-family: 'Noto Serif JP', serif;
  font-size: 24px; color: var(--green);
  letter-spacing: 2px;
}
.section-header .line {
  width: 40px; height: 2px; background: var(--gold);
  margin: 12px auto 0;
}
.section-bg {
  background: var(--beige); max-width: 100%; padding: 60px 0;
}
.section-bg .section-inner {
  max-width: 900px; margin: 0 auto; padding: 0 20px;
}

/* --- カード --- */
.card {
  background: var(--white);
  border-radius: 16px; padding: 24px;
  margin-bottom: 16px;
  border: 1px solid var(--line);
  box-shadow: 0 2px 8px var(--shadow);
  transition: transform .2s, box-shadow .2s;
}
.card:hover { transform: translateY(-2px); box-shadow: 0 6px 20px rgba(0,0,0,.08); }
.card-icon {
  width: 44px; height: 44px; background: var(--green-light);
  border-radius: 12px; display: flex; align-items: center;
  justify-content: center; font-size: 22px; margin-bottom: 12px;
}
.card h3 {
  font-size: 16px; color: var(--green);
  margin-bottom: 8px; font-weight: 700;
}
.card p { font-size: 13px; color: var(--text2); margin-bottom: 4px; }

/* --- グリッド --- */
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.grid-3 { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 16px; }

/* --- ボタン --- */
.btn {
  display: inline-block; padding: 14px 32px;
  border-radius: 30px; font-size: 14px; font-weight: 700;
  letter-spacing: 1px; text-decoration: none;
  transition: transform .2s, box-shadow .2s;
  cursor: pointer; border: none;
}
.btn:hover { transform: scale(1.04); opacity: 1; }
.btn-primary {
  background: linear-gradient(135deg, var(--green), var(--green2));
  color: #fff; box-shadow: 0 4px 16px rgba(45,90,61,.25);
}
.btn-gold {
  background: linear-gradient(135deg, var(--gold), var(--gold2));
  color: #fff; box-shadow: 0 4px 16px rgba(184,150,62,.25);
}
.btn-outline {
  background: transparent; color: var(--green);
  border: 2px solid var(--green);
}
.btn-line {
  background: #06C755; color: #fff;
  box-shadow: 0 4px 12px rgba(6,199,85,.3);
}
.btn-sm { padding: 10px 20px; font-size: 13px; }

/* --- 予約ボタンエリア --- */
.booking-area {
  background: linear-gradient(135deg, var(--gold-light), var(--white));
  border: 2px solid var(--gold);
  border-radius: 16px; padding: 32px; text-align: center;
  margin: 32px 0;
}
.booking-area h3 {
  font-family: 'Noto Serif JP', serif;
  font-size: 20px; color: var(--green); margin-bottom: 16px;
}
.booking-btns { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; }
.booking-btns .btn { min-width: 200px; }

/* --- FAQ --- */
.faq-item {
  background: var(--white); border-radius: 12px;
  border: 1px solid var(--line); margin-bottom: 10px;
  overflow: hidden;
}
.faq-q {
  padding: 16px 50px 16px 20px; cursor: pointer;
  font-weight: 600; font-size: 14px; color: var(--green);
  position: relative;
}
.faq-q::after {
  content: '+'; position: absolute; right: 20px; top: 50%;
  transform: translateY(-50%); font-size: 20px; color: var(--gold);
  transition: transform .3s;
}
.faq-item.open .faq-q::after { content: '−'; }
.faq-a {
  max-height: 0; overflow: hidden; transition: max-height .4s ease;
  padding: 0 20px;
}
.faq-item.open .faq-a { max-height: 500px; padding: 0 20px 16px; }
.faq-a p { font-size: 13px; color: var(--text2); line-height: 1.8; }

/* --- テーブル --- */
.price-table {
  width: 100%; border-collapse: collapse;
  background: var(--white); border-radius: 12px;
  overflow: hidden; border: 1px solid var(--line);
}
.price-table th, .price-table td {
  padding: 14px 16px; text-align: center;
  font-size: 14px; border-bottom: 1px solid var(--line);
}
.price-table thead th {
  background: var(--green); color: #fff;
  font-size: 13px; letter-spacing: 1px;
}
.price-table tbody tr:hover { background: var(--green-light); }
.price-table .highlight { color: var(--red); font-weight: 700; }

/* --- マップ --- */
.map-container {
  border-radius: 16px; overflow: hidden;
  border: 1px solid var(--line); margin: 20px 0;
}
.map-container iframe { width: 100%; height: 350px; border: 0; }

/* --- 利用シーン --- */
.scene-card {
  background: var(--white); border-radius: 14px;
  padding: 20px; text-align: center;
  border: 1px solid var(--line);
  box-shadow: 0 2px 8px var(--shadow);
  transition: transform .2s;
}
.scene-card:hover { transform: translateY(-3px); }
.scene-card .emoji { font-size: 36px; margin-bottom: 8px; }
.scene-card h4 {
  font-size: 14px; color: var(--green); font-weight: 700;
  margin-bottom: 6px;
}
.scene-card p { font-size: 12px; color: var(--text3); }

/* --- パスワード画面 --- */
.pw-screen {
  min-height: 80vh; display: flex; align-items: center;
  justify-content: center; padding: 40px 20px;
}
.pw-box {
  background: var(--white); border-radius: 20px;
  padding: 48px 40px; text-align: center;
  max-width: 420px; width: 100%;
  border: 2px solid var(--gold);
  box-shadow: 0 8px 40px rgba(0,0,0,.08);
}
.pw-box h2 {
  font-family: 'Noto Serif JP', serif;
  font-size: 22px; color: var(--green); margin-bottom: 8px;
}
.pw-box p { font-size: 13px; color: var(--text3); margin-bottom: 24px; }
.pw-input {
  width: 100%; padding: 14px 20px;
  border: 2px solid var(--line); border-radius: 12px;
  font-size: 16px; text-align: center;
  letter-spacing: 4px; margin-bottom: 16px;
  outline: none; transition: border-color .3s;
  font-family: 'Noto Sans JP', sans-serif;
}
.pw-input:focus { border-color: var(--green); }
.pw-error {
  color: var(--red); font-size: 13px;
  margin-bottom: 12px; display: none;
}
.guide-content { display: none; }

/* --- LINE固定ボタン --- */
.line-float {
  position: fixed; bottom: 20px; right: 20px;
  z-index: 98; display: flex; align-items: center; gap: 8px;
  background: #06C755; color: #fff;
  padding: 12px 20px; border-radius: 30px;
  font-size: 13px; font-weight: 700;
  box-shadow: 0 4px 16px rgba(6,199,85,.4);
  transition: transform .3s;
  text-decoration: none;
}
.line-float:hover { transform: scale(1.05); color: #fff; opacity: 1; }
.line-float svg { width: 24px; height: 24px; fill: #fff; }

/* --- フッター --- */
.site-footer {
  background: linear-gradient(135deg, #1a3d28, var(--green));
  color: #fff; text-align: center;
  padding: 48px 20px 32px; position: relative;
}
.site-footer::before {
  content: ''; position: absolute; top: 0; left: 0; right: 0;
  height: 3px;
  background: linear-gradient(to right, transparent, var(--gold), transparent);
}
.site-footer h3 {
  font-family: 'Noto Serif JP', serif;
  font-size: 20px; letter-spacing: 3px; margin-bottom: 6px;
}
.footer-divider {
  width: 50px; height: 1px; background: var(--gold);
  margin: 16px auto;
}
.site-footer p { font-size: 12px; opacity: .7; margin-bottom: 4px; }
.footer-links { display: flex; gap: 16px; justify-content: center; margin: 16px 0; }
.footer-links a { color: rgba(255,255,255,.8); font-size: 12px; }
.footer-links a:hover { color: #fff; }
.site-footer .copy { font-size: 10px; opacity: .3; margin-top: 20px; }

/* --- ページ内パン --- */
.breadcrumb {
  max-width: 900px; margin: 0 auto;
  padding: 16px 20px; font-size: 12px;
}
.breadcrumb a { color: var(--text3); }
.breadcrumb span { color: var(--text3); margin: 0 6px; }

/* --- スクロールアニメーション --- */
.fade-in {
  opacity: 0; transform: translateY(20px);
  transition: opacity .6s ease, transform .6s ease;
}
.fade-in.visible { opacity: 1; transform: translateY(0); }

/* --- 特徴グリッド --- */
.feature-grid {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: 16px; margin-bottom: 20px;
}
.feature-item {
  background: var(--white); border-radius: 14px;
  padding: 24px 16px; text-align: center;
  border: 1px solid var(--line);
  box-shadow: 0 2px 8px var(--shadow);
}
.feature-item .emoji { font-size: 32px; margin-bottom: 8px; }
.feature-item h4 {
  font-size: 14px; color: var(--green); font-weight: 700;
  margin-bottom: 4px;
}
.feature-item p { font-size: 12px; color: var(--text3); }

/* --- 路線アクセスカード --- */
.route-card {
  background: var(--white); border: 1px solid var(--green3);
  border-radius: 14px; padding: 20px; text-align: center;
  transition: transform .2s;
}
.route-card:hover { transform: scale(1.02); }
.route-card .station { font-size: 18px; font-weight: 700; color: var(--green); }
.route-card .time { font-size: 14px; color: var(--text2); margin-top: 4px; }
.route-card .lines { font-size: 11px; color: var(--text3); margin-top: 6px; line-height: 1.5; }

/* --- ステッブ --- */
.steps-list { position: relative; padding-left: 20px; }
.steps-list::before {
  content: ''; position: absolute; left: 15px; top: 16px; bottom: 16px;
  width: 2px; background: var(--green3); border-radius: 1px;
}
.step-item { display: flex; gap: 14px; margin-bottom: 14px; position: relative; }
.step-num {
  width: 30px; height: 30px; background: var(--green); color: #fff;
  border-radius: 50%; display: flex; align-items: center; justify-content: center;
  font-size: 13px; font-weight: 700; flex-shrink: 0; z-index: 1;
}
.step-text { font-size: 14px; color: var(--text); padding-top: 4px; }

/* --- チェックリスト --- */
.check-item {
  background: var(--white); border-radius: 12px;
  padding: 14px 14px 14px 50px; margin-bottom: 8px;
  border: 1px solid var(--line); position: relative;
}
.check-item::before {
  content: ''; position: absolute; left: 16px; top: 16px;
  width: 20px; height: 20px;
  border: 2px solid var(--green3); border-radius: 6px;
}
.check-item h4 { font-size: 14px; color: var(--text); font-weight: 600; margin-bottom: 2px; }
.check-item p { font-size: 12px; color: var(--text3); }

/* --- ルールアイテム --- */
.rule-item {
  background: var(--white); border-radius: 12px;
  padding: 14px 14px 14px 56px; margin-bottom: 10px;
  border: 1px solid var(--line); position: relative;
}
.rule-item .r-icon {
  position: absolute; left: 14px; top: 50%; transform: translateY(-50%);
  width: 32px; height: 32px; background: var(--green);
  border-radius: 10px; display: flex; align-items: center;
  justify-content: center; font-size: 16px;
}
.rule-item h4 { font-size: 14px; color: var(--green); font-weight: 700; margin-bottom: 2px; }
.rule-item p { font-size: 12px; color: var(--text2); }
.rule-item.danger { border-color: var(--red); }
.rule-item.danger .r-icon { background: var(--red); }
.rule-item.danger h4 { color: var(--red); }

/* --- 注意ボックス --- */
.warn-box {
  background: #FFF5F5; border: 1px solid var(--red);
  border-radius: 12px; padding: 16px; text-align: center;
  margin: 16px 0;
}
.warn-box p { color: var(--red); font-size: 13px; }
.note-box {
  background: var(--gold-light); border: 1px solid var(--gold2);
  border-radius: 12px; padding: 16px; margin: 16px 0;
}
.note-box p { color: var(--text2); font-size: 13px; text-align: center; }
.info-box {
  background: var(--green-light); border: 1px solid var(--green3);
  border-radius: 12px; padding: 16px; margin: 16px 0;
}
.info-box p { color: var(--green); font-size: 13px; }

/* --- 周辺情報 --- */
.place-group { margin-bottom: 20px; }
.place-group h3 {
  font-size: 14px; color: var(--green); font-weight: 700;
  margin-bottom: 8px; border-left: 3px solid var(--gold);
  padding-left: 10px;
}
.place-item {
  background: var(--white); border-radius: 10px;
  padding: 12px 14px; margin-bottom: 6px;
  border: 1px solid var(--line);
  display: flex; justify-content: space-between; align-items: center;
}
.place-item .name { font-size: 13px; font-weight: 600; color: var(--text); }
.place-item .info { font-size: 11px; color: var(--green2); text-align: right; }

/* --- 写真プレースホルダー --- */
.placeholder-img {
  width: 100%; height: 200px; border-radius: 12px;
  background: var(--green-light);
  display: flex; align-items: center; justify-content: center;
  color: var(--green3); font-size: 13px; text-align: center;
  border: 2px dashed var(--green3);
  flex-direction: column; gap: 4px;
}
.placeholder-img .ph-icon { font-size: 32px; }

/* --- ギャラリー --- */
.gallery-grid {
  display: grid; grid-template-columns: 1fr 1fr; gap: 12px;
  margin-bottom: 20px;
}
.gallery-grid .placeholder-img:first-child {
  grid-column: 1 / -1; height: 260px;
}

/* --- キーボックス --- */
.keybox {
  background: linear-gradient(135deg, var(--gold-light), var(--white));
  border: 2px solid var(--gold); border-radius: 16px;
  padding: 24px; margin-bottom: 16px;
}
.keybox h3 {
  text-align: center; font-size: 16px; color: var(--green);
  margin-bottom: 16px; display: flex; align-items: center;
  justify-content: center; gap: 8px;
}
.pin-code {
  display: inline-block; background: var(--green); color: #fff;
  font-size: 28px; font-weight: 700; letter-spacing: 8px;
  padding: 8px 24px; border-radius: 10px; margin: 8px 0;
}

/* ============================================
   レスポンシブ
   ============================================ */
@media (max-width: 768px) {
  .nav-links { display: none; }
  .hamburger { display: block; }
  .hero h1 { font-size: 26px; letter-spacing: 4px; }
  .hero .catch { font-size: 14px; }
  .hero-overlay { padding: 60px 20px 60px; }
  .section { padding: 40px 16px; }
  .grid-2, .grid-3, .feature-grid { grid-template-columns: 1fr; }
  .booking-btns { flex-direction: column; align-items: center; }
  .booking-btns .btn { width: 100%; }
  .gallery-grid { grid-template-columns: 1fr; }
  .gallery-grid .placeholder-img:first-child { height: 200px; }
  .price-table { font-size: 12px; }
  .price-table th, .price-table td { padding: 10px 8px; }
  .pw-box { padding: 32px 24px; }
  .line-float span { display: none; }
  .line-float { padding: 14px; border-radius: 50%; }
}
@media (min-width: 769px) and (max-width: 1024px) {
  .feature-grid { grid-template-columns: 1fr 1fr; }
  .grid-3 { grid-template-columns: 1fr 1fr; }
}
