/* ============================================================
   ひだまりの家 公式サイト スタイルシート
   配色は下の「カラー設定」3色だけで管理しています。
   雰囲気を変えたい時はここの色コードを変えるだけでOKです。
   ============================================================ */

:root {
  /* ★カラー設定（差し替えやすいよう3色に集約） */
  --color-base: #faf7f2;   /* 背景：あたたかみのある白 */
  --color-text: #3a3732;   /* 文字：やわらかい黒 */
  --color-accent: #5c7160; /* アクセント：落ち着いた緑 */

  /* 上の3色から自動的に作る補助色（基本さわらなくてOK） */
  --color-accent-dark: #46584a;
  --color-line: #e5dfd5;
  --color-note-bg: #f1ede5;

  --font-body: "Noto Sans JP", sans-serif;
  --font-title: "Shippori Mincho", serif;
}

/* ---------- リセット・基本 ---------- */
* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 72px; }
body {
  font-family: var(--font-body);
  color: var(--color-text);
  background: var(--color-base);
  line-height: 1.9;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--color-accent-dark); }
.pc-only { display: none; }

/* ---------- ボタン ---------- */
.btn {
  display: inline-block;
  padding: 14px 32px;
  border-radius: 999px;
  text-decoration: none;
  font-weight: 700;
  font-size: 15px;
  transition: opacity .2s, transform .2s;
  border: none;
  cursor: pointer;
  font-family: var(--font-body);
}
.btn:hover { opacity: .85; transform: translateY(-1px); }
.btn--primary { background: var(--color-accent); color: #fff; }
.btn--ghost { background: rgba(255,255,255,.15); color: #fff; border: 1px solid rgba(255,255,255,.7); }
.btn--small { padding: 9px 20px; font-size: 13px; background: var(--color-accent); color: #fff; }
.btn--full { display: block; width: 100%; text-align: center; }

/* ---------- ヘッダー ---------- */
.header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  background: rgba(250, 247, 242, .92);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--color-line);
}
.header__inner {
  max-width: 1080px;
  margin: 0 auto;
  padding: 12px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.header__logo {
  font-family: var(--font-title);
  font-size: 20px;
  font-weight: 600;
  text-decoration: none;
  color: var(--color-text);
}
.header__nav { display: none; gap: 24px; }
.header__nav a {
  text-decoration: none;
  color: var(--color-text);
  font-size: 14px;
}
.header__nav a:hover { color: var(--color-accent); }

/* ---------- ファーストビュー ---------- */
.hero {
  position: relative;
  min-height: 92svh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  /* メインビジュアル写真（リビング）。変えたい時は images/hero.jpg を差し替え */
  background: url("../images/hero.jpg") center/cover no-repeat;
  color: #fff;
}
.hero__overlay {
  position: absolute; inset: 0;
  background: linear-gradient(rgba(30,33,28,.35), rgba(30,33,28,.55));
}
.hero__content { position: relative; padding: 100px 24px 60px; max-width: 720px; }
.hero__sub { font-size: 14px; letter-spacing: .15em; margin-bottom: 16px; }
.hero__title {
  font-family: var(--font-title);
  font-size: clamp(30px, 7vw, 48px);
  font-weight: 600;
  line-height: 1.6;
  letter-spacing: .06em;
  margin-bottom: 20px;
  text-shadow: 0 2px 16px rgba(0,0,0,.3);
}
.hero__lead { font-size: 15px; margin-bottom: 36px; opacity: .95; }
.hero__cta { display: flex; flex-direction: column; gap: 14px; align-items: center; }

/* ---------- 実績バッジ（Airbnb評価） ---------- */
.trust { background: #fff; border-bottom: 1px solid var(--color-line); }
.trust__inner {
  max-width: 1080px;
  margin: 0 auto;
  padding: 28px 20px;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 18px 12px;
  text-align: center;
}
.trust__item strong {
  display: block;
  font-family: var(--font-title);
  font-size: 19px;
  color: var(--color-accent-dark);
  line-height: 1.4;
}
.trust__item span { font-size: 11.5px; color: #8a857b; line-height: 1.5; display: block; }

/* ---------- セクション共通 ---------- */
.section { padding: 72px 0; }
.section--bg { background: #fff; }
.section__inner { max-width: 1080px; margin: 0 auto; padding: 0 20px; }
.section__inner--narrow { max-width: 760px; }
.section__en {
  text-align: center;
  font-size: 12px;
  letter-spacing: .3em;
  color: var(--color-accent);
  font-weight: 700;
  margin-bottom: 8px;
}
.section__title {
  font-family: var(--font-title);
  text-align: center;
  font-size: clamp(24px, 5vw, 32px);
  font-weight: 600;
  letter-spacing: .08em;
  margin-bottom: 24px;
}
.section__lead { text-align: center; font-size: 15px; margin-bottom: 44px; }
.section__en--light, .section__title--light, .section__lead--light { color: #fff; }
.section__en--light { color: rgba(255,255,255,.8); }

/* ---------- 2つの泊まり方 ---------- */
.stay-grid { display: grid; gap: 32px; }
.stay-card {
  background: #fff;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 4px 24px rgba(58,55,50,.08);
  position: relative;
}
.section--bg .stay-card { background: var(--color-base); }
.stay-card__badge {
  position: absolute;
  top: 14px; left: 14px;
  z-index: 1;
  padding: 6px 16px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 700;
  color: #fff;
  background: var(--color-accent);
}
.stay-card__img { width: 100%; aspect-ratio: 16/10; object-fit: cover; }
.stay-card__body { padding: 24px 24px 28px; }
.stay-card__title {
  font-family: var(--font-title);
  font-size: 21px;
  margin-bottom: 12px;
}
.stay-card__title span { font-size: 14px; color: var(--color-accent); font-family: var(--font-body); }
.stay-card__list { margin: 14px 0 16px; padding-left: 1.3em; font-size: 15px; }
.stay-card__note {
  background: var(--color-note-bg);
  border-radius: 10px;
  padding: 12px 16px;
  font-size: 13px;
  line-height: 1.7;
}

/* ---------- 特徴・設備 ---------- */
.feature-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }
.feature {
  background: var(--color-base);
  border-radius: 14px;
  padding: 22px 18px;
  text-align: center;
}
.feature__icon { font-size: 30px; display: block; margin-bottom: 8px; }
.feature h3 { font-size: 15px; margin-bottom: 4px; }
.feature p { font-size: 12.5px; line-height: 1.7; color: #6b675f; }

/* ---------- ギャラリー ---------- */
.gallery-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; }
.gallery-item {
  border: none; padding: 0;
  background: none;
  cursor: pointer;
  border-radius: 10px;
  overflow: hidden;
}
.gallery-item img {
  width: 100%;
  aspect-ratio: 4/3;
  object-fit: cover;
  transition: transform .3s;
}
.gallery-item:hover img { transform: scale(1.04); }

/* 拡大表示（ライトボックス） */
.lightbox {
  position: fixed; inset: 0;
  z-index: 200;
  background: rgba(20,20,18,.92);
  display: none;
  align-items: center;
  justify-content: center;
  padding: 24px;
}
.lightbox.is-open { display: flex; }
.lightbox__img { max-width: 100%; max-height: 88svh; border-radius: 8px; }
.lightbox__close {
  position: absolute;
  top: 16px; right: 20px;
  font-size: 36px;
  color: #fff;
  background: none;
  border: none;
  cursor: pointer;
  line-height: 1;
}

/* ---------- 料金 ---------- */
.price-grid { display: grid; gap: 24px; }
.price-card {
  background: var(--color-base);
  border: 1px solid var(--color-line);
  border-radius: 16px;
  padding: 28px 24px;
}
.price-card__title { font-family: var(--font-title); font-size: 20px; margin-bottom: 8px; }
.price-card__title span { font-size: 13px; color: var(--color-accent); font-family: var(--font-body); }
.price-card__num { font-size: 34px; font-weight: 700; color: var(--color-accent-dark); margin-bottom: 12px; }
.price-card__num span { font-size: 14px; font-weight: 400; color: var(--color-text); }
.price-card__list { padding-left: 1.3em; font-size: 14.5px; margin-bottom: 14px; }
.price-card__note { font-size: 13px; background: var(--color-note-bg); border-radius: 10px; padding: 12px 16px; line-height: 1.7; }

/* ---------- アクセス ---------- */
.access-grid { display: grid; gap: 32px; }
.access-list { margin-bottom: 28px; }
.access-list dt {
  font-weight: 700;
  color: var(--color-accent-dark);
  font-size: 14px;
  margin-top: 14px;
}
.access-list dd { font-size: 15px; }
.access-subtitle { font-family: var(--font-title); font-size: 18px; margin-bottom: 10px; }
.access-spots { list-style: none; font-size: 15px; }
.access-spots li { padding: 6px 0; border-bottom: 1px dashed var(--color-line); }
.access-map { display: grid; gap: 16px; }
.access-map .gallery-item img { aspect-ratio: auto; }
.map-placeholder {
  background: #fff;
  border: 2px dashed var(--color-line);
  border-radius: 16px;
  min-height: 240px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: #8a857b;
}
/* Googleマップ用 */
.access-grid iframe { width: 100%; min-height: 320px; border: 0; border-radius: 16px; }
.map-note { font-size: 12.5px; color: #8a857b; line-height: 1.7; }

/* ---------- 運営者紹介 ---------- */
.host-card {
  background: var(--color-base);
  border-radius: 16px;
  padding: 28px 24px;
  display: grid;
  gap: 24px;
  justify-items: center;
}
.host-card__img { width: 140px; height: 140px; border-radius: 50%; object-fit: cover; }
.host-card__body p { margin-bottom: 14px; font-size: 15px; }
.host-card__sign { text-align: right; font-family: var(--font-title); margin-top: 4px; }

/* ---------- FAQ ---------- */
.faq-item {
  background: #fff;
  border: 1px solid var(--color-line);
  border-radius: 12px;
  margin-bottom: 12px;
  overflow: hidden;
}
.faq-item summary {
  cursor: pointer;
  padding: 18px 20px;
  font-weight: 700;
  font-size: 15px;
  list-style: none;
  position: relative;
  padding-right: 44px;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: "＋";
  position: absolute;
  right: 18px; top: 50%;
  transform: translateY(-50%);
  color: var(--color-accent);
  font-size: 18px;
}
.faq-item[open] summary::after { content: "−"; }
.faq-item p { padding: 0 20px 18px; font-size: 14.5px; }

/* ---------- 問い合わせ ---------- */
.section--contact { background: var(--color-accent-dark); }
.contact-form {
  background: #fff;
  border-radius: 16px;
  padding: 28px 22px;
}
.form-row { margin-bottom: 18px; }
.form-row--half { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.form-row label {
  display: block;
  font-size: 14px;
  font-weight: 700;
  margin-bottom: 6px;
}
.req {
  background: #b3573f;
  color: #fff;
  font-size: 11px;
  border-radius: 4px;
  padding: 1px 6px;
  margin-left: 6px;
  font-weight: 400;
}
.form-row input,
.form-row select,
.form-row textarea {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid var(--color-line);
  border-radius: 8px;
  font-size: 16px; /* スマホでの自動ズームを防ぐため16px以上 */
  font-family: var(--font-body);
  background: var(--color-base);
  color: var(--color-text);
}
.form-row input:focus,
.form-row select:focus,
.form-row textarea:focus {
  outline: 2px solid var(--color-accent);
  border-color: transparent;
}
.form-privacy { font-size: 12px; color: #8a857b; margin-top: 14px; text-align: center; }

/* 送信完了・失敗メッセージ */
.form-result {
  border-radius: 12px;
  padding: 18px 20px;
  font-size: 15px;
  font-weight: 700;
  margin-bottom: 20px;
  text-align: center;
}
.form-result--ok { background: #fff; color: var(--color-accent-dark); }
.form-result--ng { background: #fbeae5; color: #a04a32; }

/* ---------- フッター ---------- */
.footer { background: #2c2a26; color: #d8d4cc; padding: 48px 0 110px; }
.footer__inner { max-width: 1080px; margin: 0 auto; padding: 0 20px; text-align: center; }
.footer__logo { font-family: var(--font-title); font-size: 22px; color: #fff; margin-bottom: 16px; }
.footer__info { font-size: 13px; line-height: 2; margin-bottom: 20px; }
.footer__sns { display: flex; justify-content: center; gap: 20px; margin-bottom: 24px; }
.footer__sns a { color: #d8d4cc; font-size: 13px; }
.footer__copy { font-size: 12px; color: #8a857b; }

/* ---------- スマホ下部の固定CTA ---------- */
.sticky-cta {
  position: fixed;
  bottom: 0; left: 0; right: 0;
  z-index: 90;
  padding: 10px 16px calc(10px + env(safe-area-inset-bottom));
  background: rgba(250, 247, 242, .95);
  border-top: 1px solid var(--color-line);
}

/* ============================================================
   PC向けレイアウト（画面幅768px以上）
   ============================================================ */
@media (min-width: 768px) {
  .pc-only { display: inline; }
  .header__nav { display: flex; }
  .hero__cta { flex-direction: row; justify-content: center; }
  .section { padding: 100px 0; }
  .trust__inner { grid-template-columns: repeat(4, 1fr); }
  .stay-grid { grid-template-columns: 1fr 1fr; }
  .feature-grid { grid-template-columns: repeat(4, 1fr); }
  .gallery-grid { grid-template-columns: repeat(4, 1fr); }
  .price-grid { grid-template-columns: 1fr 1fr; }
  .access-grid { grid-template-columns: 1fr 1fr; align-items: start; }
  .host-card {
    grid-template-columns: 160px 1fr;
    align-items: start;
    padding: 36px;
    justify-items: start;
  }
  .footer { padding-bottom: 48px; }
  .sticky-cta { display: none; } /* PCではヘッダーにボタンがあるので非表示 */
}
