/*
Theme Name: Hookey Room
Theme URI: https://afuku5906.com/
Author: AFukunaga
Description: 「フッキーの部屋」用カスタムテーマ。海と山のヒーロー画像を活かした1ページLP＋お問い合わせ。
Version: 1.0.0
Requires at least: 6.0
Requires PHP: 7.4
License: GNU General Public License v2 or later
Text Domain: hookey-room
*/

/* ===== Base ===== */
:root {
  --c-sky: #6fa8c7;
  --c-sea: #3d6b73;
  --c-sand: #e7d8b8;
  --c-grass: #5f7a45;
  --c-dark: #243038;
  --c-text: #2b2b2b;
  --c-muted: #6b7680;
  --c-bg: #f7f5ef;
  --c-white: #ffffff;
  --radius: 14px;
  --shadow: 0 8px 30px rgba(36, 48, 56, .12);
  --maxw: 1080px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: "Hiragino Kaku Gothic ProN", "Noto Sans JP", "Yu Gothic", "Segoe UI", system-ui, sans-serif;
  color: var(--c-text);
  background: var(--c-bg);
  line-height: 1.8;
  -webkit-font-smoothing: antialiased;
}

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

a { color: var(--c-sea); text-decoration: none; transition: opacity .2s; }
a:hover { opacity: .75; }

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

/* ===== Header / Nav ===== */
.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 28px;
  background: rgba(36, 48, 56, .28);
  backdrop-filter: blur(8px);
  transition: background .3s;
}
.site-header.scrolled { background: rgba(36, 48, 56, .9); }

.site-logo {
  color: #fff;
  font-size: 1.25rem;
  font-weight: 700;
  letter-spacing: .04em;
  text-shadow: 0 1px 6px rgba(0,0,0,.4);
}
.site-logo span { font-size: .7rem; display: block; font-weight: 400; opacity: .85; letter-spacing: .2em; }

.nav-toggle { display: none; background: none; border: 0; cursor: pointer; }

.site-nav ul {
  display: flex;
  gap: 28px;
  list-style: none;
  margin: 0; padding: 0;
}
.site-nav a {
  color: #fff;
  font-size: .95rem;
  font-weight: 500;
  text-shadow: 0 1px 4px rgba(0,0,0,.4);
}

/* ===== Hero ===== */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  background-size: cover;
  background-position: center;
  color: #fff;
}
.hero::after {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(36,48,56,.15) 0%, rgba(36,48,56,.05) 40%, rgba(36,48,56,.45) 100%);
}
.hero-inner { position: relative; z-index: 2; padding: 0 24px; }
.hero h1 {
  font-size: clamp(2.4rem, 6vw, 4.5rem);
  margin: 0 0 .3em;
  letter-spacing: .06em;
  text-shadow: 0 2px 20px rgba(0,0,0,.5);
}
.hero p.lead {
  font-size: clamp(1rem, 2.2vw, 1.35rem);
  margin: 0 0 2em;
  text-shadow: 0 1px 12px rgba(0,0,0,.5);
}
.hero .scroll-hint {
  position: absolute;
  bottom: 28px; left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  color: #fff;
  font-size: .75rem;
  letter-spacing: .2em;
  animation: bob 2s ease-in-out infinite;
}
@keyframes bob { 0%,100%{ transform: translateX(-50%) translateY(0);} 50%{ transform: translateX(-50%) translateY(8px);} }

/* ===== Buttons ===== */
.btn {
  display: inline-block;
  padding: 14px 36px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 1rem;
  cursor: pointer;
  border: 2px solid transparent;
  transition: transform .15s, box-shadow .2s, background .2s;
}
.btn-primary {
  background: var(--c-white);
  color: var(--c-sea);
  box-shadow: var(--shadow);
}
.btn-primary:hover { transform: translateY(-2px); opacity: 1; }
.btn-outline {
  background: transparent;
  border-color: #fff;
  color: #fff;
}
.btn-outline:hover { background: rgba(255,255,255,.15); opacity: 1; }

/* ===== Sections ===== */
section.block { padding: 96px 0; }
section.block.alt { background: var(--c-white); }

.section-head { text-align: center; margin-bottom: 56px; }
.section-head .en {
  display: block;
  color: var(--c-sea);
  font-size: .8rem;
  letter-spacing: .3em;
  text-transform: uppercase;
  margin-bottom: 8px;
}
.section-head h2 {
  font-size: clamp(1.6rem, 4vw, 2.2rem);
  margin: 0;
  letter-spacing: .04em;
}

/* About */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
}
.about-grid img { border-radius: var(--radius); box-shadow: var(--shadow); }
.about-text p { color: var(--c-muted); }

/* Cards */
.cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}
.card {
  background: var(--c-bg);
  border-radius: var(--radius);
  padding: 36px 28px;
  text-align: center;
  border: 1px solid rgba(0,0,0,.05);
  transition: transform .2s, box-shadow .2s;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.card .icon { font-size: 2.4rem; margin-bottom: 16px; }
.card h3 { margin: 0 0 10px; font-size: 1.15rem; }
.card p { color: var(--c-muted); font-size: .95rem; margin: 0; }

/* CTA band */
.cta-band {
  position: relative;
  padding: 96px 0;
  text-align: center;
  color: #fff;
  background-size: cover;
  background-position: center 40%;
  background-attachment: fixed;
}
.cta-band::after { content:""; position:absolute; inset:0; background: rgba(36,48,56,.55); }
.cta-band .container { position: relative; z-index: 2; }
.cta-band h2 { font-size: clamp(1.6rem, 4vw, 2.4rem); margin: 0 0 .6em; text-shadow: 0 2px 16px rgba(0,0,0,.4); }
.cta-band p { margin: 0 0 2em; opacity: .95; }

/* ===== Contact form ===== */
.contact-wrap { max-width: 680px; margin: 0 auto; }
.form-row { margin-bottom: 22px; }
.form-row label {
  display: block;
  font-weight: 600;
  margin-bottom: 8px;
  font-size: .95rem;
}
.form-row label .req { color: #c0392b; font-size: .8rem; margin-left: 6px; }
.form-row input,
.form-row textarea {
  width: 100%;
  padding: 14px 16px;
  border: 1px solid #d4d4d4;
  border-radius: 10px;
  font-size: 1rem;
  font-family: inherit;
  background: var(--c-white);
  transition: border .2s, box-shadow .2s;
}
.form-row input:focus,
.form-row textarea:focus {
  outline: none;
  border-color: var(--c-sea);
  box-shadow: 0 0 0 3px rgba(61,107,115,.15);
}
.form-row textarea { min-height: 160px; resize: vertical; }
.form-submit { text-align: center; margin-top: 12px; }
.form-submit .btn-primary { color: #fff; background: var(--c-sea); }

.form-notice {
  padding: 16px 20px;
  border-radius: 10px;
  margin-bottom: 28px;
  font-weight: 600;
}
.form-notice.success { background: #e6f4ea; color: #1e7a37; border: 1px solid #b6e0c2; }
.form-notice.error { background: #fdecea; color: #b3261e; border: 1px solid #f5c6c2; }
.form-errors { list-style: none; padding: 0; margin: 8px 0 0; }
.form-errors li { color: #b3261e; font-size: .9rem; }

/* ===== 予約カレンダー ===== */
.resv { max-width: 760px; margin: 0 auto; }
.resv-note {
  background: var(--c-bg);
  border: 1px solid rgba(0,0,0,.06);
  border-radius: 10px;
  padding: 16px 20px;
  font-size: .92rem;
  color: var(--c-text);
  text-align: center;
  margin-bottom: 28px;
}
.resv-note small { color: var(--c-muted); }
.resv-hint { text-align: center; color: var(--c-muted); margin-top: 24px; }

.cal-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 14px;
}
.cal-title { font-size: 1.3rem; font-weight: 700; letter-spacing: .04em; }
.cal-arrow {
  padding: 8px 16px;
  border-radius: 999px;
  background: var(--c-sea);
  color: #fff;
  font-size: .9rem;
  font-weight: 600;
}
.cal-arrow:hover { opacity: .85; }
.cal-arrow.disabled { background: #cfd4d6; color: #fff; pointer-events: none; }

.cal-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 6px;
}
.cal-head {
  text-align: center;
  font-size: .8rem;
  font-weight: 700;
  color: var(--c-muted);
  padding: 6px 0;
}
.cal-head.sun { color: #c0392b; }
.cal-head.sat { color: #2a6db0; }

.cal-cell {
  position: relative;
  aspect-ratio: 1 / 1;          /* 四角マス */
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  border: 1px solid #e3e3e0;
  border-radius: 10px;
  background: #fff;
  font-size: 1rem;
}
.cal-cell .d { font-weight: 600; line-height: 1.1; }
.cal-cell .mk { font-size: .8rem; line-height: 1; margin-top: 2px; }
.cal-cell.empty { border: 0; background: transparent; }
.cal-cell.sun .d { color: #c0392b; }
.cal-cell.sat .d { color: #2a6db0; }

.cal-cell.past { background: #f1f1ef; color: #b9b9b4; }
.cal-cell.past .d { color: #b9b9b4; }

.cal-cell.full { background: #faf0ef; color: #c98e88; cursor: not-allowed; }
.cal-cell.full .mk { color: #c0392b; }

.cal-cell.closed { background: #f1f1ef; color: #b9b9b4; cursor: not-allowed; }
.cal-cell.closed .d { color: #b9b9b4; }
.cal-cell.closed .mk { color: #9aa0a4; font-size: .72rem; }

a.cal-cell.open {
  cursor: pointer;
  transition: transform .12s, box-shadow .15s, border-color .15s;
}
a.cal-cell.open .mk { color: #2e9e5b; }
a.cal-cell.open:hover {
  border-color: var(--c-sea);
  box-shadow: 0 4px 14px rgba(61,107,115,.18);
  transform: translateY(-2px);
  opacity: 1;
}
a.cal-cell.open.selected {
  border-color: var(--c-sea);
  background: var(--c-sea);
  color: #fff;
}
a.cal-cell.open.selected .d,
a.cal-cell.open.selected .mk { color: #fff; }

/* 予約フォーム */
.resv-form {
  margin-top: 36px;
  background: var(--c-white);
  border: 1px solid rgba(0,0,0,.06);
  border-radius: var(--radius);
  padding: 32px 28px;
  box-shadow: var(--shadow);
}
.resv-form h3 {
  margin: 0 0 22px;
  text-align: center;
  font-size: 1.3rem;
  color: var(--c-sea);
}
.slot-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
}
.slot {
  display: flex;
  align-items: center;
  gap: 8px;
  border: 1px solid #d4d4d4;
  border-radius: 10px;
  padding: 12px 14px;
  cursor: pointer;
  transition: border-color .15s, background .15s;
}
.slot:hover { border-color: var(--c-sea); }
.slot input { accent-color: var(--c-sea); }
.slot-time { font-weight: 600; }
.slot-state { margin-left: auto; font-size: .8rem; color: #2e9e5b; }
.slot.disabled {
  background: #f3f3f1;
  color: #b0b0ab;
  cursor: not-allowed;
  border-color: #e5e5e2;
}
.slot.disabled .slot-state { color: #c98e88; }
.slot input:checked + .slot-time { color: var(--c-sea); }
.slot:has(input:checked) { border-color: var(--c-sea); background: #eef4f4; }

@media (max-width: 600px) {
  .slot-grid { grid-template-columns: 1fr; }
  .cal-cell { border-radius: 8px; font-size: .9rem; }
  .cal-arrow { padding: 7px 12px; font-size: .82rem; }
  .cal-title { font-size: 1.1rem; }
}

/* ===== Footer ===== */
.site-footer {
  background: var(--c-dark);
  color: #cfd8de;
  padding: 56px 0 28px;
  text-align: center;
}
.site-footer .foot-logo { color:#fff; font-size: 1.2rem; font-weight: 700; margin-bottom: 12px; }
.site-footer nav ul { list-style: none; display: flex; justify-content: center; gap: 24px; padding: 0; margin: 0 0 24px; flex-wrap: wrap; }
.site-footer nav a { color: #cfd8de; font-size: .9rem; }
.site-footer .copy { font-size: .8rem; opacity: .7; margin: 0; }

/* ===== Page content (generic) ===== */
.page-hero {
  padding: 140px 0 60px;
  text-align: center;
  background: var(--c-sea);
  color: #fff;
}
.page-hero h1 { margin: 0; font-size: clamp(1.8rem, 4vw, 2.6rem); }
.page-body { padding: 64px 0 96px; }
.page-body .container { max-width: 820px; }

/* ===== Responsive ===== */
@media (max-width: 860px) {
  .about-grid { grid-template-columns: 1fr; }
  .cards { grid-template-columns: 1fr; }
  .cta-band { background-attachment: scroll; }
  .nav-toggle { display: block; }
  .site-nav {
    position: absolute;
    top: 100%; left: 0; right: 0;
    background: rgba(36,48,56,.96);
    max-height: 0; overflow: hidden;
    transition: max-height .3s;
  }
  .site-nav.open { max-height: 320px; }
  .site-nav ul { flex-direction: column; gap: 0; padding: 8px 0; }
  .site-nav li { border-top: 1px solid rgba(255,255,255,.08); }
  .site-nav a { display: block; padding: 16px 28px; }
}
