/* ===================================
   旅館またべゑ 公式HP スタイルシート
   仮公開版 v1.0 (2026-05-09)
   =================================== */

:root {
  --color-main:    #1B3A57;
  --color-sub:     #C9A66B;
  --color-base:    #FAF7F0;
  --color-accent:  #C84B31;
  --color-text:    #2A2A2A;
  --color-muted:   #6B6B6B;
  --color-border:  #E5DFD3;
  --shadow-sm: 0 2px 8px rgba(0,0,0,0.08);
  --shadow-md: 0 6px 20px rgba(0,0,0,0.12);
  --font-jp: "Noto Serif JP", "游明朝", "Yu Mincho", serif;
  --font-en: "Cormorant Garamond", Georgia, serif;
  --max-w: 1200px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html {
  scroll-behavior: smooth;
  scroll-padding-top: 70px;
  -webkit-text-size-adjust: 100%;
  overflow-x: hidden;
}
body {
  font-family: var(--font-jp);
  color: var(--color-text);
  background: var(--color-base);
  line-height: 1.8;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  width: 100%;
  max-width: 100vw;
}
img { max-width: 100%; height: auto; display: block; }
iframe { max-width: 100%; }
a { color: var(--color-main); text-decoration: none; }

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

/* ============ ヘッダー ============ */
.site-header {
  position: fixed; top: 0; left: 0; right: 0;
  background: rgba(250, 247, 240, 0.96);
  backdrop-filter: blur(8px);
  z-index: 100;
  border-bottom: 1px solid var(--color-border);
}
.header-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 12px 24px;
  display: flex;
  align-items: center;
  gap: 24px;
}
.logo { display: flex; flex-direction: column; line-height: 1.1; }
.logo-main { font-size: 20px; font-weight: 700; color: var(--color-main); }
.logo-sub { font-family: var(--font-en); font-size: 11px; color: var(--color-muted); letter-spacing: .15em; }
.nav { display: flex; gap: 20px; margin-left: auto; }
.nav a {
  font-size: 14px; color: var(--color-text); position: relative;
  padding: 4px 0; transition: color .2s;
}
.nav a:hover { color: var(--color-accent); }
.header-tel {
  display: flex; align-items: center; gap: 6px;
  background: var(--color-main); color: #fff;
  padding: 8px 16px; border-radius: 999px;
  font-weight: 700; font-size: 14px;
  transition: background .2s;
}
.header-tel:hover { background: var(--color-accent); }
.hamburger {
  display: none;
  width: 32px; height: 32px;
  background: none; border: none; cursor: pointer;
  flex-direction: column; justify-content: center; gap: 5px;
}
.hamburger span {
  width: 100%; height: 2px; background: var(--color-main);
  transition: all .3s;
}

/* ============ ヒーロー ============ */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  overflow: hidden;
  margin-top: 0;
}
.hero-bg {
  position: absolute; inset: 0;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  filter: brightness(0.65);
  z-index: 1;
}
.hero-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(135deg, rgba(27,58,87,0.5) 0%, rgba(27,58,87,0.2) 50%, rgba(0,0,0,0.45) 100%);
  z-index: 2;
}
.hero-content {
  position: relative;
  z-index: 3;
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 100px 24px 60px;
  width: 100%;
  color: #fff;
}
.cyclist-badge {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  background: rgba(255,255,255,0.95);
  color: var(--color-main);
  padding: 10px 18px;
  border-radius: 999px;
  margin-bottom: 32px;
  box-shadow: var(--shadow-md);
}
.badge-icon { font-size: 22px; }
.badge-text { display: flex; flex-direction: column; line-height: 1.2; }
.badge-title { font-size: 14px; font-weight: 700; }
.badge-sub { font-size: 11px; color: var(--color-muted); }
.hero-title {
  font-size: clamp(26px, 6vw, 56px);
  font-weight: 500;
  line-height: 1.5;
  letter-spacing: 0.05em;
  margin-bottom: 24px;
  text-shadow: 0 2px 12px rgba(0,0,0,0.4);
  word-break: keep-all;
  overflow-wrap: break-word;
}
.hero-title .nowrap,
.hero-sub .nowrap,
.page-hero-ja .nowrap,
.page-hero-sub .nowrap,
.btn .nowrap {
  display: inline-block;
}
.hero-sub {
  font-size: clamp(14px, 2vw, 18px);
  line-height: 1.9;
  margin-bottom: 40px;
  text-shadow: 0 2px 8px rgba(0,0,0,0.4);
  word-break: keep-all;
  overflow-wrap: break-word;
}
.hero-cta { display: flex; gap: 16px; flex-wrap: wrap; }

/* ============ ボタン ============ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 28px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 16px;
  transition: all .2s;
  border: 2px solid transparent;
  cursor: pointer;
  white-space: nowrap;
  word-break: keep-all;
}
.btn-primary {
  background: var(--color-accent);
  color: #fff;
  box-shadow: var(--shadow-md);
}
.btn-primary:hover { background: #a73922; transform: translateY(-2px); }
.btn-secondary {
  background: rgba(255,255,255,0.95);
  color: var(--color-main);
}
.btn-secondary:hover { background: #fff; transform: translateY(-2px); }
.btn-large { padding: 18px 36px; font-size: 18px; }
.btn-xlarge { padding: 24px 48px; font-size: 24px; }

/* ============ セクション共通 ============ */
.section {
  padding: 80px 0;
  scroll-margin-top: 80px;
}
.section-about { background: #fff; }
.section-cuisine { background: var(--color-base); }
.section-fishing { background: #fff; }
.section-cycling { background: linear-gradient(135deg, #f5efe2 0%, #ebe1cc 100%); }
.section-rooms { background: #fff; }
.section-plans { background: var(--color-base); }
.section-access { background: #fff; }
.section-contact {
  background: linear-gradient(135deg, var(--color-main) 0%, #122B40 100%);
  color: #fff;
}
.section-title {
  text-align: center;
  margin-bottom: 48px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
}
.title-en {
  font-family: var(--font-en);
  font-size: 14px;
  letter-spacing: .3em;
  text-transform: uppercase;
  color: var(--color-sub);
}
.title-ja {
  font-size: clamp(24px, 4vw, 36px);
  font-weight: 500;
  letter-spacing: 0.08em;
  position: relative;
  word-break: keep-all;
  overflow-wrap: break-word;
}
.title-ja::after {
  content: "";
  display: block;
  width: 36px; height: 2px;
  background: var(--color-sub);
  margin: 12px auto 0;
}
.section-contact .title-en { color: var(--color-sub); }
.section-contact .title-ja::after { background: var(--color-sub); }
.section-lead {
  text-align: center;
  font-size: 16px;
  margin-bottom: 40px;
  color: var(--color-muted);
}
.lead {
  font-size: 18px;
  font-weight: 500;
  margin-bottom: 16px;
  color: var(--color-main);
}

/* ============ About ============ */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
  align-items: center;
}
.about-text p { margin-bottom: 16px; }
.about-list {
  list-style: none;
  margin-top: 24px;
  border-top: 1px solid var(--color-border);
  padding-top: 16px;
}
.about-list li {
  padding: 10px 0;
  border-bottom: 1px dashed var(--color-border);
  font-size: 15px;
}
.about-list strong {
  display: inline-block;
  min-width: 80px;
  color: var(--color-main);
}
.about-img img {
  border-radius: 8px;
  box-shadow: var(--shadow-md);
  aspect-ratio: 4/3;
  object-fit: cover;
}

/* ============ Cuisine ============ */
.cuisine-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 32px;
  margin-bottom: 56px;
}
.cuisine-card {
  background: #fff;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: transform .3s, box-shadow .3s;
}
.cuisine-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.cuisine-card img { aspect-ratio: 4/3; object-fit: cover; }
.cuisine-card figcaption { padding: 24px; }
.cuisine-card h3 {
  font-size: 20px; color: var(--color-main); margin-bottom: 8px;
}
.cuisine-card p { font-size: 14px; color: var(--color-muted); }

.seasonal-calendar {
  max-width: 600px;
  margin: 0 auto;
  background: #fff;
  border-radius: 8px;
  padding: 32px;
  box-shadow: var(--shadow-sm);
}
.seasonal-calendar h3 {
  text-align: center;
  font-size: 20px;
  color: var(--color-main);
  margin-bottom: 20px;
}
.calendar-table { width: 100%; border-collapse: collapse; }
.calendar-table th,
.calendar-table td {
  padding: 14px;
  border-bottom: 1px dashed var(--color-border);
  text-align: left;
  vertical-align: top;
}
.calendar-table th {
  width: 35%;
  color: var(--color-accent);
  font-weight: 700;
  font-size: 14px;
}
.calendar-table tr:last-child th,
.calendar-table tr:last-child td { border-bottom: none; }

/* ============ 共通：左右分割 ============ */
.split-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
  align-items: center;
  margin-bottom: 32px;
}
.split-img img {
  border-radius: 8px;
  box-shadow: var(--shadow-md);
  aspect-ratio: 4/3;
  object-fit: cover;
}
.feature-list {
  list-style: none;
  margin-top: 16px;
}
.feature-list li {
  padding: 10px 0 10px 24px;
  position: relative;
  border-bottom: 1px dashed var(--color-border);
}
.feature-list li::before {
  content: "▸";
  position: absolute;
  left: 0;
  color: var(--color-accent);
  font-weight: 700;
}
.feature-list strong {
  color: var(--color-main);
  display: block;
  margin-bottom: 2px;
}
.mt { margin-top: 28px; }
.split-text h3 {
  font-size: 20px;
  color: var(--color-main);
  margin-bottom: 8px;
  letter-spacing: .03em;
}

/* ============ Cycling ============ */
.cert-card {
  display: flex;
  align-items: center;
  gap: 24px;
  background: #fff;
  border: 2px solid var(--color-sub);
  border-radius: 12px;
  padding: 28px;
  margin-bottom: 40px;
  box-shadow: var(--shadow-md);
  max-width: 720px;
  margin-left: auto;
  margin-right: auto;
}
.cert-badge-large {
  width: 80px; height: 80px;
  background: var(--color-main);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.cert-icon { font-size: 40px; }
.cert-text h3 {
  color: var(--color-main);
  font-size: 20px;
  margin-bottom: 4px;
}
.cert-text p { font-size: 14px; color: var(--color-muted); margin-bottom: 4px; }
.cert-text .small { font-size: 12px; line-height: 1.6; }

.cycling-features {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 16px;
  margin-bottom: 56px;
}
.feat {
  background: #fff;
  border-radius: 8px;
  padding: 24px 8px;
  text-align: center;
  font-size: 13px;
  font-weight: 700;
  color: var(--color-main);
  box-shadow: var(--shadow-sm);
}
.feat-icon { display: block; font-size: 32px; margin-bottom: 8px; }

/* ============ Plans ============ */
.plans-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  max-width: 960px;
  margin: 0 auto 40px;
}
.plan-card {
  background: #fff;
  border-radius: 12px;
  padding: 32px 24px;
  text-align: center;
  box-shadow: var(--shadow-sm);
  position: relative;
  transition: transform .3s, box-shadow .3s;
}
.plan-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.plan-card-featured {
  background: linear-gradient(180deg, #fff 0%, #fff8ee 100%);
  border: 2px solid var(--color-sub);
}
.featured-tag {
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--color-accent);
  color: #fff;
  padding: 4px 16px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
}
.plan-card h3 {
  font-size: 18px;
  color: var(--color-main);
  margin-bottom: 16px;
  line-height: 1.4;
}
.plan-price {
  font-size: 32px;
  font-weight: 700;
  color: var(--color-accent);
  font-family: var(--font-en);
  margin-bottom: 12px;
}
.plan-desc {
  font-size: 13px;
  color: var(--color-muted);
  line-height: 1.7;
}
.plan-info {
  background: #fff;
  border-radius: 8px;
  padding: 24px;
  max-width: 720px;
  margin: 0 auto 32px;
  text-align: center;
  font-size: 14px;
}
.plan-info p { margin-bottom: 8px; }
.plan-cta { text-align: center; }

/* ============ Access ============ */
.access-grid {
  display: grid;
  grid-template-columns: 1fr 1.5fr;
  gap: 40px;
}
.access-grid > * { min-width: 0; }
.access-map iframe { max-width: 100%; }
.access-info h3 {
  font-size: 18px;
  color: var(--color-main);
  margin-bottom: 8px;
  padding-bottom: 6px;
  border-bottom: 2px solid var(--color-sub);
}
.access-info a { color: var(--color-accent); font-weight: 700; }
.access-map iframe {
  border-radius: 8px;
  box-shadow: var(--shadow-md);
}

/* ============ Contact ============ */
.section-contact { text-align: center; }
.contact-lead {
  font-size: 16px;
  margin-bottom: 32px;
  opacity: 0.95;
}
.contact-tel .btn {
  background: #fff;
  color: var(--color-main);
  font-size: 28px;
  letter-spacing: .05em;
}
.contact-tel .btn:hover { background: var(--color-sub); color: #fff; }
.reception {
  margin-top: 16px;
  font-size: 14px;
  opacity: .85;
}

/* ============ フッター ============ */
.site-footer {
  background: #1A1A1A;
  color: #ccc;
  padding: 56px 0 24px;
  font-size: 13px;
  line-height: 1.8;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 32px;
  padding-bottom: 32px;
  border-bottom: 1px solid #333;
  margin-bottom: 24px;
}
.footer-logo {
  font-family: var(--font-jp);
  font-size: 18px;
  color: #fff;
  font-weight: 700;
  margin-bottom: 12px;
}
.footer-heading {
  font-weight: 700;
  color: #fff;
  margin-bottom: 12px;
}
.footer-nav { list-style: none; }
.footer-nav li { margin-bottom: 6px; }
.footer-nav a { color: #ccc; }
.footer-nav a:hover { color: var(--color-sub); }
.copyright {
  text-align: center;
  font-size: 12px;
  color: #888;
  font-family: var(--font-en);
  letter-spacing: .1em;
}

/* ============ 固定電話ボタン（モバイル） ============ */
.floating-tel {
  position: fixed;
  bottom: 16px;
  right: 16px;
  background: var(--color-accent);
  color: #fff;
  padding: 12px 20px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 14px;
  display: none;
  align-items: center;
  gap: 8px;
  box-shadow: var(--shadow-md);
  z-index: 99;
  animation: pulse 2.5s ease-in-out infinite;
}
@keyframes pulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.04); }
}
.floating-icon { font-size: 20px; }

/* ============ レスポンシブ ============ */
@media (max-width: 960px) {
  .nav { display: none; }
  .nav.is-open {
    display: flex;
    position: absolute;
    top: 100%; left: 0; right: 0;
    background: #fff;
    flex-direction: column;
    padding: 16px 24px;
    box-shadow: var(--shadow-md);
    gap: 0;
  }
  .nav.is-open a {
    padding: 12px 0;
    border-bottom: 1px solid var(--color-border);
  }
  .hamburger { display: flex; margin-left: auto; }
  .header-tel .tel-num { display: none; }
  .header-tel { padding: 8px 12px; }

  .about-grid,
  .split-grid,
  .access-grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }
  .cuisine-grid,
  .plans-grid {
    grid-template-columns: 1fr;
  }
  .cycling-features {
    grid-template-columns: repeat(3, 1fr);
  }
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 24px;
  }
  .floating-tel { display: inline-flex; }
  .section { padding: 56px 0; }
  .hero { min-height: 88vh; }
  .cert-card { flex-direction: column; text-align: center; padding: 20px; }
}

/* iPhone 15 Pro Max などモバイル幅 */
@media (max-width: 768px) {
  /* マップiframeをモバイルでは小さく */
  .access-map iframe {
    height: 320px !important;
  }
  /* ヒーローの100vhをモバイルではsvhで（Safari URLバー対応） */
  .hero { min-height: 88svh; }
  /* スマホでのコンテナpadding統一 */
  .container { padding: 0 16px; }
  /* セクションタイトル中央揃え強化 */
  .section-title { width: 100%; }
  /* 全画像確実にコンテナ内に収まる */
  img { max-width: 100% !important; }
}

@media (max-width: 480px) {
  .cycling-features {
    grid-template-columns: repeat(2, 1fr);
  }
  .hero-cta { flex-direction: column; }
  .hero-cta .btn { width: 100%; }
  .btn-xlarge { font-size: 20px; padding: 18px 24px; }
  .container { padding: 0 16px; }
  .header-inner { padding: 10px 16px; gap: 12px; }
  .logo-main { font-size: 17px; }
  .logo-sub { font-size: 10px; }
}
