/* 古民家わが家hotel：WordPress化で追加した部分のスタイル
 * 元のデザイン（style.css）の色と書体に合わせる。html は font-size:62.5%（1rem＝10px）。
 * 紺 #1B1464／灰茶 #998C82／生成り #FAF6EA／砂 #E7E0D3 */

:root {
  --w-navy: #1B1464;
  --w-taupe: #998C82;
  --w-kinari: #FAF6EA;
  --w-sand: #E7E0D3;
  --w-ink: #2b2622;
  --w-line: #06c755;
}

/* 見た目はh1のまま、文書構造上はh2扱いにした見出し（build_theme.py） */
.h1x { letter-spacing: 0.1em; font-family: "Zen Maru Gothic", sans-serif; }

/* ---------- トップ：動画の下のキャッチ ---------- */
/* 動画を少し低くして、キャッチとボタンが最初の画面に入るようにする（元は高さ80vh） */
.is-top .top-movie-main video { height: 58vh; width: auto; max-width: 100%; object-fit: cover; display: block; margin: 0 auto; }
@media (max-width: 1200px) {
  .is-top .top-movie-main video { width: 100%; height: auto; max-height: 58vh; }
}
.fv {
  background: var(--w-kinari);
  text-align: center;
  padding: 3.6rem 1.6rem 5rem;
}
.fv-sub {
  margin: 0 0 1.2rem;
  font-size: 1.5rem;
  letter-spacing: 0.15em;
  color: var(--w-taupe);
}
.fv-catch {
  margin: 0;
  color: var(--w-ink);
  font-size: clamp(2.4rem, 4vw, 4.4rem);
  line-height: 1.6;
  letter-spacing: 0.08em;
  word-break: keep-all;
  overflow-wrap: anywhere;
  line-break: strict;
}
.fv-buttons {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1.2rem;
  margin-top: 3rem;
}
.fv-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 24rem;
  padding: 1.5rem 2.6rem;
  border-radius: 999px;
  font-family: "Zen Maru Gothic", sans-serif;
  font-weight: 700;
  font-size: 1.6rem;
  letter-spacing: 0.08em;
  color: #fff;
  text-decoration: none;
  transition: opacity .3s;
}
.fv-btn:hover { opacity: .85; }
.fv-btn-price { background: var(--w-navy); }
.fv-btn-line { background: var(--w-line); }
@media (max-width: 768px) {
  .fv { padding: 4rem 1.6rem 4rem; }
  .fv-sub { font-size: 1.3rem; }
  .fv-btn { min-width: 0; flex: 1 1 100%; }
}

/* ---------- トップ：季節のイベント ---------- */
.season { padding: 0 0 8rem; background: var(--w-kinari); }
.season-main { max-width: 1200px; margin: 0 auto; padding: 0 3rem; }
.season-lead { text-align: center; font-size: 1.6rem; line-height: 1.9; margin: -1rem 0 3.2rem; }
.season-tiles {
  list-style: none;
  margin: 0 0 4rem;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.6rem;
}
.season-tile a {
  display: block;
  position: relative;
  border-radius: 16px;
  overflow: hidden;
  color: #fff;
  text-decoration: none;
  aspect-ratio: 3 / 4;
  background: var(--w-sand);
}
.season-img, .season-img img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .6s;
}
.season-tile a:hover .season-img img { transform: scale(1.05); }
.season-tile a::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0,0,0,0) 45%, rgba(0,0,0,.6) 100%);
}
.season-name, .season-text { position: absolute; left: 1.6rem; right: 1.6rem; z-index: 1; }
.season-name {
  bottom: 4.6rem;
  font-family: "Zen Maru Gothic", sans-serif;
  font-weight: 700;
  font-size: 3.2rem;
  letter-spacing: .1em;
}
.season-text { bottom: 1.6rem; font-size: 1.4rem; line-height: 1.5; }
/* 写真のない季節を出さないとき（3つ・2つ）の並び */
.season-tiles.is-3 { grid-template-columns: repeat(3, 1fr); }
.season-tiles.is-2 { grid-template-columns: repeat(2, 1fr); }
@media (max-width: 900px) {
  .season-tiles { grid-template-columns: repeat(2, 1fr); }
  .season-tiles.is-3 { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 768px) {
  /* 3つのときは、1つ目を横長にして2列に収める */
  .season-tiles.is-3 { grid-template-columns: repeat(2, 1fr); }
  .season-tiles.is-3 .season-tile:first-child { grid-column: span 2; }
  .season-tiles.is-3 .season-tile:first-child a { aspect-ratio: 16 / 9; }
}
@media (max-width: 768px) {
  /* 前の制作のstyle.cssにある .season（幅25%・left:-20px）が効いて、スマホで季節の欄が細くなるのを打ち消す（2026-11-24） */
  section.season { width: auto; min-width: 0; left: 0; }
  .season-main { padding: 0 1.6rem; }
  .season-tiles { gap: 1rem; }
  .season-name { font-size: 2.4rem; bottom: 4.2rem; left: 1.2rem; }
  .season-text { font-size: 1.3rem; left: 1.2rem; right: 1.2rem; }
}

/* ---------- トップ：紹介文 ---------- */
.welcome { padding: 8rem 0; }
.welcome-main {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 3rem;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 5rem;
  align-items: center;
}
.welcome-circle { width: 12rem; height: auto; display: block; margin-bottom: 1.6rem; }
.welcome-text h2 { color: var(--w-taupe); margin-bottom: 2rem; }
.welcome-text p { font-size: 1.6rem; line-height: 2.1; margin: 0 0 3rem; }
.welcome-text .button { margin: 0; }
.welcome-img img { width: 100%; height: auto; border-radius: 16px; display: block; }
@media (max-width: 768px) {
  .welcome { padding: 6rem 0; }
  .welcome-main { grid-template-columns: 1fr; gap: 3rem; padding: 0 1.6rem; }
  .welcome-text p { font-size: 1.5rem; }
}

/* ---------- トップ：リラクゼーションの紹介枠（紹介文を入れたときだけ出る） ---------- */
.top-relax { padding: 12rem 0 8rem; background: #fff; } /* 上は、写真スライダーの「enjoy!」（.top-slider::after）がはみ出す分 */
.top-relax-main {
  max-width: 1080px;
  margin: 0 auto;
  padding: 0 2rem;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 5rem;
  align-items: center;
}
.top-relax-main:not(:has(.top-relax-img)) { grid-template-columns: 1fr; max-width: 760px; }
.top-relax-img img { width: 100%; height: auto; border-radius: 16px; display: block; }
.top-relax-img img { aspect-ratio: 3 / 2; object-fit: cover; }
.top-relax-thumbs { list-style: none; padding: 0; margin: 1.2rem 0 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.2rem; }
.top-relax-thumbs img { border-radius: 10px; }
.top-relax-text h2 { color: var(--w-taupe); margin-bottom: 2rem; }
.top-relax-text p { font-size: 1.6rem; line-height: 2.1; margin: 0 0 2.4rem; }
.top-relax-menu { list-style: none; padding: 0; margin: 0 0 3rem; border-top: 1px dashed var(--w-sand); }
.top-relax-menu li {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.2rem 0;
  border-bottom: 1px dashed var(--w-sand);
  font-size: 1.5rem;
}
.top-relax-menu small { font-weight: 400; font-size: 1.2rem; }
.top-relax-menu .top-relax-coupon { display: block; color: #b0471f; font-weight: 700; }
.top-relax-menu b { white-space: nowrap; }
.top-relax-text p.top-relax-note { font-size: 1.3rem; line-height: 1.8; color: var(--w-taupe); margin-top: -1.2rem; }
.extra-adult { text-align: left; line-height: 1.9; }
.top-relax-text .button { margin: 0; }
.top-relax-text .button a { white-space: nowrap; }
@media (max-width: 768px) {
  .top-relax { padding: 11rem 0 6rem; }
  .top-relax-main { grid-template-columns: 1fr; gap: 3rem; padding: 0 1.6rem; }
}

/* ---------- トップ：料金シミュレーションへの入口 ---------- */
.top-yoyaku { padding: 8rem 1.6rem; background: var(--w-kinari); text-align: center; }
.top-yoyaku-main { max-width: 760px; margin: 0 auto; }
.top-yoyaku h2 { color: var(--w-navy); margin-bottom: 2rem; }
.top-yoyaku p { font-size: 1.6rem; line-height: 2; margin: 0 0 3rem; }
.top-yoyaku-steps {
  list-style: none;
  padding: 0;
  margin: 0 0 3.6rem;
  display: flex;
  justify-content: center;
  gap: 1.2rem;
  flex-wrap: wrap;
}
.top-yoyaku-steps li {
  display: flex;
  align-items: center;
  gap: .8rem;
  background: #fff;
  border: 1px solid var(--w-sand);
  border-radius: 999px;
  padding: 1rem 2rem 1rem 1rem;
  font-size: 1.5rem;
  font-weight: 600;
}
.top-yoyaku-steps b {
  display: inline-grid;
  place-items: center;
  width: 2.8rem;
  height: 2.8rem;
  border-radius: 50%;
  background: var(--w-navy);
  color: #fff;
  font-size: 1.4rem;
}

/* ---------- 料金・予約ページの料金表 ---------- */
.price-matrix-wrap { width: 100%; }
.price-matrix { width: 100%; border-collapse: collapse; table-layout: fixed; background: #fff; }
.price-matrix caption {
  caption-side: top;
  text-align: left;
  font-weight: 700;
  padding: 0 0 1rem;
  font-size: 1.6rem;
}
.price-matrix th, .price-matrix td {
  border: 1px solid var(--w-sand);
  padding: 1.2rem .6rem;
  text-align: center;
  font-size: 1.5rem;
  line-height: 1.5;
  word-break: keep-all;
}
.price-matrix thead th { background: var(--w-taupe); color: #fff; font-weight: 600; }
.price-matrix tbody th { background: var(--w-kinari); font-weight: 600; }
.price-matrix th small, .price-matrix td small { display: block; font-size: 1.1rem; font-weight: 400; color: #6b625b; margin-top: .3rem; }
.price-matrix td.premium { background: #fbeee8; font-weight: 700; }
.price-matrix small { word-break: normal; overflow-wrap: anywhere; }
@media (max-width: 768px) {
  .price-matrix th, .price-matrix td { font-size: 1.3rem; padding: 1rem .3rem; }
  .price-matrix th small, .price-matrix td small { font-size: 1rem; }
}
.price-note { font-size: 1.4rem; line-height: 1.8; margin: 1.2rem 0 0; color: #4a423c; }

/* ---------- お知らせ・汎用ページ ---------- */
.news-lead { font-size: 2rem; color: var(--w-taupe); font-weight: 500; }
.news-list { list-style: none; margin: 4rem auto 0; padding: 0 1.6rem; max-width: 1000px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 2.4rem; }
.news-list a { display: block; color: inherit; text-decoration: none; }
.news-thumb { display: block; aspect-ratio: 4 / 3; border-radius: 12px; overflow: hidden; background: var(--w-sand); }
.news-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.news-list time { display: block; margin-top: 1rem; font-size: 1.3rem; color: var(--w-taupe); }
.news-title { display: block; font-size: 1.5rem; line-height: 1.7; font-weight: 600; }
.news-pager { text-align: center; margin: 4rem 0 8rem; font-size: 1.5rem; }
.news-pager .page-numbers { display: inline-block; padding: .4rem 1rem; }
.news-empty { text-align: center; font-size: 1.5rem; margin: 4rem 0 8rem; }
.news-article-main, .page-default-main { max-width: 820px; margin: 0 auto; padding: 14rem 1.6rem 8rem; font-size: 1.6rem; line-height: 2; }
.news-article-title { font-size: 2.8rem; line-height: 1.5; margin: .6rem 0 1rem; }
.news-article-cat a, .news-article-main time { font-size: 1.3rem; color: var(--w-taupe); }
.news-article-img img { width: 100%; height: auto; border-radius: 12px; margin: 2.4rem 0; }
.news-article-body img { max-width: 100%; height: auto; }
.news-article-body { margin-bottom: 5rem; }
/* 宿の方がブロックエディターで書く本文（追加ページ・お知らせ）の見出し・写真・ボタン */
.page-default-main h2, .news-article-body h2 { font-size: 2.4rem; line-height: 1.5; color: var(--w-navy); margin: 5rem 0 2rem; padding-bottom: .8rem; border-bottom: 2px solid var(--w-sand); }
.page-default-main h3, .news-article-body h3 { font-size: 1.9rem; line-height: 1.5; color: var(--w-taupe); margin: 3.6rem 0 1.4rem; }
.page-default-main img { max-width: 100%; height: auto; border-radius: 12px; }
.page-default-main ul, .page-default-main ol { padding-left: 2.4rem; }
.page-default-main .wp-block-button__link, .news-article-body .wp-block-button__link { background: var(--w-navy); color: #fff; border-radius: 999px; padding: 1.2rem 3.2rem; font-weight: 700; text-decoration: none; }
.page-default-main table { width: 100%; border-collapse: collapse; }
.page-default-main th, .page-default-main td { border: 1px solid var(--w-sand); padding: .8rem 1.2rem; }
@media (max-width: 768px) {
  .news-list { grid-template-columns: 1fr 1fr; gap: 1.6rem; }
  .news-article-main, .page-default-main { padding-top: 10rem; }
  .news-article-title { font-size: 2.2rem; }
}
