/* ============================================
   Shizuka Fuyu (シズカフユ) - Global Styles
   ============================================ */

/* --- CSS Reset (subset) --- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
img { max-width: 100%; display: block; height: auto; }
a { text-decoration: none; color: inherit; }
button { border: none; background: none; cursor: pointer; font-family: inherit; }
ul, ol { list-style: none; }
input, textarea, select { font-family: inherit; font-size: inherit; }

/* --- Design Tokens --- */
:root {
  --bg-main: #F7F5F0;
  --bg-card: #FFFFFF;
  --bg-band: #EFEDE6;
  --text-primary: #2D2A24;
  --text-muted: #7A7569;
  --accent-olive: #7A8B5E;
  --accent-sky: #A3C4D3;
  --border-light: #D9D5CC;
  --spring-tint: #E8F0E0;
  --summer-tint: #D9E8D4;
  --autumn-tint: #F3E4C1;
  --winter-tint: #E8ECED;
  --content-max: 960px;
  --section-gap: 80px;
  --band-padding: 32px;
  --card-padding: 24px;
  --grid-gap: 24px;
  --nav-height: 56px;
  --radius: 4px;
  --shadow: 0 1px 3px rgba(45,42,36,0.06);
}

/* --- Language System --- */
[data-lang="ja"] [data-en],
[data-lang="en"] [data-ja] { display: none !important; }

/* --- Base --- */
body {
  font-family: 'Inter', 'Noto Sans JP', sans-serif;
  font-size: 16px;
  line-height: 1.6;
  color: var(--text-primary);
  background-color: var(--bg-main);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

:lang(ja) { line-height: 1.8; }

/* --- Typography --- */
h1, h2, h3 { font-weight: 700; color: var(--accent-olive); }
h1 { font-size: 28px; line-height: 1.3; }
h2 { font-size: 20px; line-height: 1.3; margin-bottom: 16px; }
h3 { font-size: 18px; line-height: 1.4; margin-bottom: 12px; }
p { margin-bottom: 16px; }

.caption {
  font-size: 13px;
  color: var(--text-muted);
  line-height: 1.5;
}

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

.section { margin-bottom: var(--section-gap); }

.band {
  background: var(--bg-band);
  padding: var(--band-padding) 24px;
  border-left: 3px solid var(--accent-olive);
}

/* --- Navigation --- */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: var(--nav-height);
  background: var(--bg-card);
  border-bottom: 1px solid var(--border-light);
  z-index: 1000;
  display: flex;
  align-items: center;
}

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

.nav-logo {
  font-weight: 700;
  font-size: 15px;
  color: var(--accent-olive);
  white-space: nowrap;
}

.nav-links {
  display: flex;
  gap: 24px;
  align-items: center;
}

.nav-links a {
  font-size: 14px;
  font-weight: 500;
  color: var(--text-primary);
  transition: color 0.2s;
  white-space: nowrap;
}

.nav-links a:hover,
.nav-links a.active { color: var(--accent-olive); }

.lang-toggle {
  font-size: 13px;
  font-weight: 500;
  color: var(--text-muted);
  padding: 4px 10px;
  border: 1px solid var(--border-light);
  border-radius: var(--radius);
  transition: all 0.2s;
  white-space: nowrap;
}

.lang-toggle:hover {
  border-color: var(--accent-olive);
  color: var(--accent-olive);
}

.nav-mobile-toggle {
  display: none;
  font-size: 20px;
  color: var(--text-primary);
  padding: 4px;
}

/* --- Hero --- */
.hero {
  position: relative;
  width: 100%;
  height: 45vh;
  min-height: 320px;
  overflow: hidden;
  margin-top: var(--nav-height);
}

.hero-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-canvas {
  position: absolute;
  top: 0; left: 0;
  width: 100%;
  height: 100%;
}

.hero-overlay {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  padding: 48px 24px 32px;
  background: linear-gradient(transparent, rgba(45,42,36,0.55));
}

.hero-text {
  max-width: var(--content-max);
  margin: 0 auto;
}

.hero-text h1 {
  color: #fff;
  font-size: 28px;
  margin-bottom: 8px;
  text-shadow: 0 1px 4px rgba(0,0,0,0.3);
}

.hero-text p {
  color: rgba(255,255,255,0.9);
  font-size: 15px;
  margin-bottom: 0;
  text-shadow: 0 1px 3px rgba(0,0,0,0.25);
}

/* --- Cards --- */
.card {
  background: var(--bg-card);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: var(--card-padding);
}

/* --- Season Tags --- */
.season-tags {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}

.season-tag {
  font-size: 12px;
  font-weight: 500;
  padding: 3px 10px;
  border-radius: 12px;
  cursor: pointer;
  transition: all 0.2s;
  border: 1px solid transparent;
}

.season-tag.spring { background: var(--spring-tint); color: #4A6B3A; }
.season-tag.summer { background: var(--summer-tint); color: #3A6B4A; }
.season-tag.autumn { background: var(--autumn-tint); color: #7A5A2A; }
.season-tag.winter { background: var(--winter-tint); color: #4A5A6A; }

.season-tag:hover { opacity: 0.8; }
.season-tag.active { border-color: var(--accent-olive); }

/* --- Filter Bar --- */
.filter-bar {
  display: flex;
  gap: 8px;
  margin-bottom: 24px;
  flex-wrap: wrap;
  align-items: center;
}

.filter-btn {
  font-size: 13px;
  font-weight: 500;
  padding: 6px 14px;
  border-radius: var(--radius);
  border: 1px solid var(--border-light);
  background: var(--bg-card);
  color: var(--text-muted);
  transition: all 0.2s;
  cursor: pointer;
}

.filter-btn:hover,
.filter-btn.active {
  border-color: var(--accent-olive);
  color: var(--accent-olive);
  background: rgba(122,139,94,0.06);
}

/* --- Spot List (Table Style) --- */
.spot-list { border-top: 1px solid var(--border-light); }

.spot-row {
  display: grid;
  grid-template-columns: 80px 1fr 140px 160px 180px;
  gap: 16px;
  align-items: center;
  padding: 14px 0;
  border-bottom: 1px solid var(--border-light);
  transition: background 0.2s;
}

.spot-row:hover { background: rgba(122,139,94,0.03); }

.spot-row .spot-thumb {
  width: 80px;
  height: 80px;
  object-fit: cover;
  border-radius: var(--radius);
}

.spot-row .spot-name {
  font-weight: 600;
  color: var(--text-primary);
  font-size: 15px;
}

.spot-row .spot-name:hover { color: var(--accent-olive); }

.spot-row .spot-pref {
  font-size: 13px;
  color: var(--text-muted);
}

.spot-row .spot-highlight {
  font-size: 13px;
  color: var(--text-muted);
  font-style: italic;
}

/* --- Seasonal Panels --- */
.season-panel {
  display: grid;
  grid-template-columns: 200px 1fr;
  gap: 24px;
  padding: 28px;
  border-radius: var(--radius);
  margin-bottom: 16px;
  align-items: start;
}

.season-panel.spring { background: var(--spring-tint); }
.season-panel.summer { background: var(--summer-tint); }
.season-panel.autumn { background: var(--autumn-tint); }
.season-panel.winter { background: var(--winter-tint); }

.season-panel img {
  width: 100%;
  height: 150px;
  object-fit: cover;
  border-radius: var(--radius);
}

.season-panel .panel-label {
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 4px;
  color: var(--text-muted);
}

.season-panel .sense-block {
  margin-bottom: 14px;
}

.season-panel .sense-label {
  font-size: 13px;
  font-weight: 600;
  color: var(--accent-olive);
  margin-bottom: 4px;
}

.season-panel .sense-text {
  font-size: 14px;
  line-height: 1.7;
  color: var(--text-primary);
}

/* --- Buttons --- */
.btn {
  display: inline-block;
  padding: 10px 24px;
  font-size: 14px;
  font-weight: 500;
  border-radius: var(--radius);
  transition: all 0.2s;
  cursor: pointer;
  text-align: center;
}

.btn-primary {
  background: var(--accent-olive);
  color: #fff;
}

.btn-primary:hover { background: #6A7B4E; }

.btn-secondary {
  background: var(--bg-card);
  color: var(--accent-olive);
  border: 1px solid var(--accent-olive);
}

.btn-secondary:hover { background: rgba(122,139,94,0.06); }

/* --- Form --- */
.form-group {
  margin-bottom: 20px;
}

.form-group label {
  display: block;
  font-size: 14px;
  font-weight: 500;
  margin-bottom: 6px;
  color: var(--text-primary);
}

.form-group .required { color: #B85C4F; }

.form-group input,
.form-group textarea,
.form-group select {
  width: 100%;
  padding: 10px 14px;
  border: 1px solid var(--border-light);
  border-radius: var(--radius);
  background: var(--bg-card);
  color: var(--text-primary);
  font-size: 15px;
  transition: border-color 0.2s;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
  outline: none;
  border-color: var(--accent-olive);
}

.form-group textarea {
  min-height: 100px;
  resize: vertical;
}

.form-error {
  font-size: 13px;
  color: #B85C4F;
  margin-top: 4px;
  display: none;
}

.form-error.show { display: block; }

/* --- Trust Signals --- */
.trust-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 16px;
}

.trust-item {
  text-align: center;
  padding: 16px 8px;
}

.trust-item svg {
  width: 24px;
  height: 24px;
  margin-bottom: 8px;
  color: var(--accent-olive);
}

.trust-item span {
  font-size: 12px;
  color: var(--text-muted);
  line-height: 1.4;
  display: block;
}

/* --- Footer --- */
.footer {
  background: var(--bg-band);
  padding: 48px 24px 32px;
  margin-top: 80px;
  border-top: 1px solid var(--border-light);
}

.footer-inner { max-width: var(--content-max); margin: 0 auto; }

.footer-offices {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
  margin-bottom: 32px;
}

.footer-office h3 {
  font-size: 15px;
  margin-bottom: 12px;
  color: var(--accent-olive);
}

.footer-office p {
  font-size: 13px;
  color: var(--text-muted);
  margin-bottom: 4px;
  line-height: 1.6;
}

.footer-office .label {
  font-weight: 600;
  color: var(--text-primary);
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  padding-top: 24px;
  border-top: 1px solid var(--border-light);
}

.footer-links a {
  font-size: 12px;
  color: var(--text-muted);
  transition: color 0.2s;
}

.footer-links a:hover { color: var(--accent-olive); }

/* --- Cookie Consent --- */
.cookie-banner {
  position: fixed;
  bottom: 0; left: 0; right: 0;
  background: var(--bg-card);
  border-top: 1px solid var(--border-light);
  padding: 20px 24px;
  z-index: 2000;
  box-shadow: 0 -2px 10px rgba(0,0,0,0.08);
  display: none;
}

.cookie-banner.show { display: block; }

.cookie-inner {
  max-width: var(--content-max);
  margin: 0 auto;
}

.cookie-title { font-size: 15px; font-weight: 600; margin-bottom: 8px; }
.cookie-text { font-size: 13px; color: var(--text-muted); margin-bottom: 12px; }

.cookie-toggles { display: flex; gap: 16px; margin-bottom: 12px; flex-wrap: wrap; }

.cookie-toggle {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
}

.cookie-toggle input[type="checkbox"] {
  accent-color: var(--accent-olive);
}

.cookie-buttons { display: flex; gap: 8px; }

/* --- 404 & Thank You --- */
.simple-page {
  text-align: center;
  padding: 120px 24px;
}

.simple-page h1 { margin-bottom: 16px; }
.simple-page p { margin-bottom: 24px; color: var(--text-muted); }

/* --- Fade In --- */
.fade-in {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

/* --- Legal Pages --- */
.legal-content h2 { margin-top: 32px; }
.legal-content h2:first-child { margin-top: 0; }
.legal-content p { margin-bottom: 12px; font-size: 14px; }
.legal-content ul { margin-bottom: 16px; padding-left: 20px; list-style: disc; }
.legal-content ul li { font-size: 14px; margin-bottom: 6px; }
.legal-content a { color: var(--accent-olive); text-decoration: underline; }

/* --- Office Block (inline) --- */
.office-block { margin-bottom: 16px; }
.office-block h4 { font-size: 15px; color: var(--accent-olive); margin-bottom: 8px; }
.office-block p { font-size: 13px; color: var(--text-muted); margin-bottom: 4px; }

/* --- Responsive --- */
@media (max-width: 768px) {
  :root { --section-gap: 48px; }
  
  .nav-links { display: none; }
  .nav-links.open {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: var(--nav-height);
    left: 0; right: 0;
    background: var(--bg-card);
    border-bottom: 1px solid var(--border-light);
    padding: 16px 24px;
    gap: 12px;
    box-shadow: var(--shadow);
  }
  .nav-mobile-toggle { display: block; }
  
  .hero { height: 35vh; min-height: 260px; }
  .hero-text h1 { font-size: 22px; }
  
  .spot-row {
    grid-template-columns: 60px 1fr;
    gap: 10px;
    padding: 12px 0;
  }
  .spot-row .spot-pref,
  .spot-row .spot-highlight { display: none; }
  .spot-row .spot-thumb { width: 60px; height: 60px; }
  .spot-row .spot-seasons { grid-column: 2; }
  
  .season-panel {
    grid-template-columns: 1fr;
    padding: 20px;
  }
  .season-panel img { height: 120px; }
  
  .trust-grid { grid-template-columns: repeat(2, 1fr); }
  
  .footer-offices { grid-template-columns: 1fr; }
  
  .footer-links { gap: 10px; }
}

@media (max-width: 480px) {
  .container { padding: 0 16px; }
  .nav-inner { padding: 0 16px; }
  .hero-overlay { padding: 32px 16px 24px; }
  .footer { padding: 32px 16px 24px; }
}
