/* ==========================================
   歩代の家（ぽよのいえ）- スタイルシート
   ========================================== */

/* --- リセット & ベース --- */
*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  --color-primary: #8B6914;
  --color-primary-light: #C4A35A;
  --color-primary-dark: #6B4F10;
  --color-accent: #D4763A;
  --color-accent-light: #E8A87C;
  --color-bg: #FDF8F0;
  --color-bg-warm: #F5EDE0;
  --color-bg-card: #FFFFFF;
  --color-text: #3A3226;
  --color-text-light: #6B5E4F;
  --color-text-muted: #9B8E7E;
  --color-border: #E0D5C5;
  --color-white: #FFFFFF;
  --font-main: "Noto Sans JP", "Hiragino Kaku Gothic ProN", sans-serif;
  --font-display: "Zen Maru Gothic", "Noto Sans JP", sans-serif;
  --section-padding: 100px 0;
  --container-width: 1100px;
  --header-height: 70px;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: var(--header-height);
}

body {
  font-family: var(--font-main);
  color: var(--color-text);
  background-color: var(--color-bg);
  line-height: 1.8;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
}

a {
  color: var(--color-primary);
  text-decoration: none;
  transition: color 0.3s;
}

a:hover {
  color: var(--color-accent);
}

img {
  max-width: 100%;
  height: auto;
}

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

.sp-only {
  display: none;
}

/* --- ヘッダー --- */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: rgba(253, 248, 240, 0.95);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s, box-shadow 0.3s;
  height: var(--header-height);
}

.header.scrolled {
  border-bottom-color: var(--color-border);
  box-shadow: 0 2px 20px rgba(0, 0, 0, 0.05);
}

.header-inner {
  max-width: var(--container-width);
  margin: 0 auto;
  padding: 0 24px;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo {
  display: flex;
  align-items: baseline;
  gap: 8px;
  text-decoration: none;
  color: var(--color-text);
}

.logo:hover { color: var(--color-primary); }

.logo-main {
  font-family: var(--font-display);
  font-size: 1.4rem;
  font-weight: 700;
  letter-spacing: 0.05em;
}

.logo-sub {
  font-size: 0.75rem;
  color: var(--color-text-muted);
}

.nav-list {
  display: flex;
  list-style: none;
  gap: 24px;
}

.nav-link {
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--color-text);
  text-decoration: none;
  position: relative;
  padding: 4px 0;
}

.nav-link::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--color-accent);
  transition: width 0.3s;
}

.nav-link:hover::after { width: 100%; }

.hamburger {
  display: none;
  flex-direction: column;
  gap: 6px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
  z-index: 1001;
}

.hamburger span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--color-text);
  transition: transform 0.3s, opacity 0.3s;
}

.hamburger.active span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
.hamburger.active span:nth-child(2) { opacity: 0; }
.hamburger.active span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

/* --- ヒーロー --- */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(107, 79, 16, 0.75) 0%, rgba(139, 105, 20, 0.6) 40%, rgba(212, 118, 58, 0.55) 100%);
}

.hero-content {
  position: relative;
  z-index: 1;
  color: var(--color-white);
  padding: 0 24px;
}

.hero-catchcopy {
  font-size: 1rem;
  font-weight: 300;
  letter-spacing: 0.15em;
  margin-bottom: 24px;
  opacity: 0.9;
  line-height: 1.8;
}

.hero-title {
  font-family: var(--font-display);
  font-size: 4rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  margin-bottom: 8px;
  text-shadow: 0 2px 20px rgba(0, 0, 0, 0.2);
}

.hero-ruby {
  font-size: 1.1rem;
  letter-spacing: 0.3em;
  margin-bottom: 32px;
  opacity: 0.85;
}

.hero-desc {
  font-family: var(--font-display);
  font-size: 1.2rem;
  line-height: 1.9;
  margin-bottom: 40px;
  opacity: 0.9;
}

.hero-badges {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 12px;
}

.badge {
  display: inline-block;
  padding: 8px 20px;
  background: rgba(255, 255, 255, 0.18);
  backdrop-filter: blur(4px);
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 100px;
  font-size: 0.85rem;
  letter-spacing: 0.05em;
}

.hero-scroll {
  position: absolute;
  bottom: 32px;
  left: 50%;
  transform: translateX(-50%);
  color: var(--color-white);
  font-size: 0.7rem;
  letter-spacing: 0.15em;
  text-align: center;
  opacity: 0.7;
  z-index: 1;
}

.scroll-line {
  width: 1px;
  height: 40px;
  background: var(--color-white);
  margin: 8px auto 0;
  animation: scrollDown 1.8s ease-in-out infinite;
}

@keyframes scrollDown {
  0% { transform: scaleY(0); transform-origin: top; opacity: 1; }
  50% { transform: scaleY(1); transform-origin: top; opacity: 1; }
  51% { transform: scaleY(1); transform-origin: bottom; }
  100% { transform: scaleY(0); transform-origin: bottom; opacity: 1; }
}

/* --- セクション共通 --- */
.section {
  padding: var(--section-padding);
}

.section-header {
  text-align: center;
  margin-bottom: 48px;
}

.section-label {
  font-size: 0.8rem;
  letter-spacing: 0.2em;
  color: var(--color-accent);
  text-transform: uppercase;
  margin-bottom: 8px;
}

.section-title {
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 700;
  color: var(--color-text);
  letter-spacing: 0.08em;
}

.section-intro {
  text-align: center;
  font-size: 0.95rem;
  color: var(--color-text-light);
  line-height: 2;
  max-width: 700px;
  margin: -24px auto 48px;
}

/* --- コンセプト --- */
.concept { background: var(--color-bg); }

.concept-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}

.concept-lead {
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--color-primary);
  margin-bottom: 24px;
  line-height: 2;
}

.concept-text p {
  margin-bottom: 16px;
  color: var(--color-text-light);
  line-height: 2;
}

.concept-media {
  font-size: 0.9rem;
  color: var(--color-text-muted) !important;
  font-style: italic;
}

.concept-image { display: flex; justify-content: center; }

.concept-photo {
  width: 100%;
  border-radius: 12px;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.1);
}

/* --- ゲストハウス --- */
.guesthouse { background: var(--color-bg-warm); }

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

.room-card {
  background: var(--color-bg-card);
  border-radius: 14px;
  padding: 28px 24px;
  text-align: center;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.04);
}

.room-name {
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 700;
  margin-bottom: 12px;
  color: var(--color-text);
}

.room-specs {
  display: flex;
  justify-content: center;
  gap: 12px;
  margin-bottom: 8px;
}

.room-size {
  font-size: 0.9rem;
  color: var(--color-primary);
  font-weight: 700;
}

.room-capacity {
  font-size: 0.85rem;
  background: var(--color-bg-warm);
  padding: 2px 10px;
  border-radius: 100px;
  color: var(--color-text-light);
}

.room-note {
  font-size: 0.82rem;
  color: var(--color-text-muted);
}

.gh-info-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-bottom: 36px;
}

.gh-info-card {
  background: var(--color-bg-card);
  border-radius: 14px;
  padding: 24px 20px;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.04);
}

.gh-info-card h4 {
  font-family: var(--font-display);
  font-size: 0.95rem;
  font-weight: 700;
  margin-bottom: 12px;
  color: var(--color-primary);
  padding-bottom: 8px;
  border-bottom: 2px solid var(--color-border);
}

.gh-info-card p {
  font-size: 0.85rem;
  color: var(--color-text-light);
  line-height: 1.8;
}

.gh-gallery {
  text-align: center;
}

.gh-gallery-img {
  width: 100%;
  max-width: 800px;
  border-radius: 12px;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.1);
}

/* --- レンタルルーム --- */
.rental { background: var(--color-bg); }

.rental-table-wrap {
  overflow-x: auto;
  margin-bottom: 20px;
}

.rental-table {
  width: 100%;
  max-width: 700px;
  margin: 0 auto;
  border-collapse: collapse;
  background: var(--color-bg-card);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.04);
}

.rental-table th,
.rental-table td {
  padding: 14px 20px;
  text-align: center;
}

.rental-table thead th {
  background: var(--color-primary);
  color: var(--color-white);
  font-size: 0.85rem;
  font-weight: 500;
}

.rental-table tbody td {
  border-bottom: 1px solid var(--color-border);
  font-size: 0.9rem;
}

.rental-table tbody tr:last-child td {
  border-bottom: none;
}

.rental-table tbody td:first-child {
  font-weight: 700;
  color: var(--color-text);
}

.rental-notes {
  text-align: center;
  margin-top: 16px;
}

.rental-notes p {
  font-size: 0.85rem;
  color: var(--color-text-muted);
  margin-bottom: 4px;
}

/* --- イベント --- */
.events { background: var(--color-bg-warm); }

.events-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
  max-width: 800px;
  margin: 0 auto;
}

.event-card {
  background: var(--color-bg-card);
  border-radius: 14px;
  padding: 24px;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.04);
  position: relative;
}

.event-freq {
  position: absolute;
  top: 16px;
  right: 16px;
  background: var(--color-accent);
  color: var(--color-white);
  font-size: 0.7rem;
  font-weight: 700;
  padding: 3px 10px;
  border-radius: 100px;
}

.event-name {
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--color-text);
  margin-bottom: 8px;
}

.event-detail {
  font-size: 0.85rem;
  color: var(--color-text-light);
  line-height: 1.7;
  margin-bottom: 8px;
}

.event-schedule {
  font-size: 0.85rem;
  color: var(--color-primary);
  font-weight: 700;
}

/* --- ハウスルール --- */
.rules { background: var(--color-bg); }

.rules-lead {
  text-align: center;
  font-size: 1rem;
  color: var(--color-text-light);
  margin-bottom: 40px;
}

.rules-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
  max-width: 900px;
  margin: 0 auto;
}

.rule-card {
  background: var(--color-bg-card);
  border-radius: 14px;
  padding: 28px 24px;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.04);
  border-left: 4px solid var(--color-primary-light);
}

.rule-card-checkout { border-left-color: var(--color-accent); }

.rule-icon {
  font-size: 1.6rem;
  margin-bottom: 10px;
}

.rule-title {
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 700;
  color: var(--color-text);
  margin-bottom: 12px;
}

.rule-list {
  list-style: none;
  padding: 0;
}

.rule-list li {
  position: relative;
  padding-left: 18px;
  font-size: 0.88rem;
  color: var(--color-text-light);
  line-height: 1.8;
  margin-bottom: 6px;
}

.rule-list li::before {
  content: "・";
  position: absolute;
  left: 0;
  color: var(--color-primary-light);
  font-weight: 700;
}

.rule-list li strong {
  color: var(--color-accent);
  font-weight: 700;
}

.rules-note {
  text-align: center;
  margin-top: 40px;
  padding: 20px 24px;
  background: var(--color-bg-warm);
  border-radius: 12px;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

.rules-note p {
  font-size: 0.9rem;
  color: var(--color-text-light);
  font-style: italic;
}

/* --- アクセス --- */
.access { background: var(--color-bg-warm); }

.access-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: start;
}

.access-table {
  width: 100%;
  border-collapse: collapse;
}

.access-table th,
.access-table td {
  padding: 14px 16px;
  text-align: left;
  border-bottom: 1px solid var(--color-border);
  vertical-align: top;
}

.access-table th {
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--color-text-muted);
  white-space: nowrap;
  width: 100px;
}

.access-table td {
  font-size: 0.95rem;
  color: var(--color-text);
}

.tel-link {
  color: var(--color-primary);
  font-weight: 700;
  font-size: 1.1rem;
}

.instagram-link {
  color: var(--color-accent);
  font-weight: 500;
}

.access-flyer-img {
  width: 100%;
  border-radius: 12px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

.access-map iframe {
  border-radius: 12px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
}

.map-link {
  display: inline-block;
  margin-top: 12px;
  font-size: 0.85rem;
  color: var(--color-accent);
  font-weight: 500;
}

.map-link:hover {
  text-decoration: underline;
}

/* --- お問い合わせ --- */
.contact { background: var(--color-bg); }

.contact-content { text-align: center; }

.contact-lead {
  font-family: var(--font-display);
  font-size: 1.2rem;
  color: var(--color-text-light);
  margin-bottom: 40px;
}

.contact-methods {
  display: flex;
  justify-content: center;
  gap: 32px;
  flex-wrap: wrap;
}

.contact-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  padding: 36px 48px;
  background: var(--color-bg-card);
  border-radius: 16px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.04);
  text-decoration: none;
  transition: transform 0.3s, box-shadow 0.3s;
  min-width: 240px;
}

.contact-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.08);
}

.contact-icon { font-size: 2rem; }

.contact-method {
  font-size: 0.85rem;
  color: var(--color-text-muted);
  font-weight: 500;
}

.contact-value {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--color-primary);
}

.contact-ig .contact-value { color: var(--color-accent); }

/* --- フッター --- */
.footer {
  background: var(--color-text);
  color: var(--color-white);
  padding: 48px 0 32px;
}

.footer-inner { text-align: center; }

.footer-name {
  font-family: var(--font-display);
  font-size: 1.3rem;
  font-weight: 700;
  letter-spacing: 0.08em;
}

.footer-ruby {
  font-size: 0.75rem;
  opacity: 0.6;
  margin-left: 8px;
}

.footer-address {
  font-size: 0.85rem;
  opacity: 0.6;
  margin: 16px 0;
}

.footer-copy {
  font-size: 0.75rem;
  opacity: 0.4;
}

/* --- 共通ディテール --- */
.detail-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 6px 0;
}

.detail-label {
  font-size: 0.8rem;
  color: var(--color-text-muted);
  font-weight: 500;
}

.detail-value {
  font-size: 0.92rem;
  font-weight: 700;
  color: var(--color-primary);
}

.detail-note {
  font-size: 0.78rem;
  color: var(--color-text-muted);
  margin-top: 8px;
  line-height: 1.6;
}

/* ==========================================
   レスポンシブ
   ========================================== */

@media (max-width: 900px) {
  :root { --section-padding: 80px 0; }

  .concept-content {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .concept-image { order: -1; }

  .concept-photo {
    max-width: 500px;
    margin: 0 auto;
    display: block;
  }

  .room-grid,
  .gh-info-grid {
    grid-template-columns: 1fr;
    max-width: 480px;
    margin-left: auto;
    margin-right: auto;
  }

  .gh-info-grid { margin-bottom: 36px; }

  .events-grid {
    grid-template-columns: 1fr;
    max-width: 480px;
  }

  .rules-grid {
    grid-template-columns: 1fr;
  }

  .access-content {
    grid-template-columns: 1fr;
    gap: 32px;
  }
}

@media (max-width: 640px) {
  :root {
    --section-padding: 64px 0;
    --header-height: 60px;
  }

  body { font-size: 15px; }

  .sp-only { display: inline; }

  .hamburger { display: flex; }

  .nav {
    position: fixed;
    top: 0;
    right: -100%;
    width: 80%;
    max-width: 320px;
    height: 100vh;
    background: var(--color-bg);
    padding: 100px 32px 48px;
    transition: right 0.3s ease;
    box-shadow: -4px 0 20px rgba(0, 0, 0, 0.1);
    overflow-y: auto;
  }

  .nav.open { right: 0; }

  .nav-list {
    flex-direction: column;
    gap: 0;
  }

  .nav-link {
    display: block;
    padding: 14px 0;
    font-size: 0.95rem;
    border-bottom: 1px solid var(--color-border);
  }

  .nav-link::after { display: none; }

  .hero-title { font-size: 2.5rem; }
  .hero-catchcopy { font-size: 0.85rem; }
  .hero-desc { font-size: 1rem; }
  .hero-badges { gap: 8px; }
  .badge { padding: 6px 14px; font-size: 0.78rem; }

  .section-title { font-size: 1.6rem; }
  .section-header { margin-bottom: 32px; }
  .section-intro { margin-bottom: 32px; font-size: 0.9rem; }

  .concept-lead { font-size: 1rem; }

  .room-grid { margin-bottom: 24px; }
  .room-card { padding: 20px 16px; }

  .rule-card { padding: 22px 18px; }

  .rental-table th,
  .rental-table td { padding: 10px 12px; font-size: 0.82rem; }

  .contact-methods {
    flex-direction: column;
    align-items: center;
    gap: 16px;
  }

  .contact-card {
    width: 100%;
    max-width: 320px;
    padding: 28px 24px;
  }
}
