/*
Theme Name: Arima Onsen Portal
Theme URI: https://example.com/arima-onsen
Author: Your Name
Author URI: https://example.com
Description: 有馬温泉観光ポータルサイト用和モダンWordPressテーマ。MATCHA風メディアデザイン。
Version: 1.0.0
Requires at least: 6.0
Tested up to: 6.5
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: arima-onsen
Tags: blog, portfolio, custom-background, custom-logo, translation-ready
*/

/* ============================================
   CSS Variables
============================================ */
:root {
  --bg-primary: #faf8f5;
  --bg-white: #ffffff;
  --bg-cream: #f5f0e8;
  --bg-dark: #1a1a1a;
  --text-primary: #333333;
  --text-secondary: #666666;
  --text-light: #999999;
  --accent-green: #2d5a3d;
  --accent-green-light: #3a7a52;
  --accent-gold: #b8860b;
  --accent-gold-light: #d4a340;
  --border: #e0d8cc;
  --border-light: #ede8df;
  --font-heading: 'Noto Serif JP', serif;
  --font-body: 'Noto Sans JP', sans-serif;
  --max-width: 1200px;
  --section-padding: 100px 0;
  --transition: 0.3s ease;
  --shadow: 0 2px 20px rgba(0,0,0,0.06);
  --shadow-hover: 0 8px 30px rgba(0,0,0,0.12);
}

/* ============================================
   Reset & Base
============================================ */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: var(--font-body);
  background-color: var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.9;
  -webkit-font-smoothing: antialiased;
}

a {
  color: var(--accent-green);
  text-decoration: none;
  transition: color var(--transition);
}

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

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

ul, ol { list-style: none; }

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

/* ============================================
   Typography
============================================ */
h1, h2, h3, h4 {
  font-family: var(--font-heading);
  font-weight: 700;
  line-height: 1.4;
  color: var(--text-primary);
}

h1 { font-size: clamp(2rem, 4vw, 3rem); }
h2 { font-size: clamp(1.5rem, 3vw, 2.2rem); }
h3 { font-size: clamp(1.1rem, 2vw, 1.4rem); }

.section-label {
  display: inline-block;
  color: var(--accent-gold);
  font-size: 0.75rem;
  font-family: var(--font-body);
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  margin-bottom: 8px;
}

.section-title {
  text-align: center;
  margin-bottom: 12px;
}

.section-desc {
  text-align: center;
  color: var(--text-secondary);
  font-size: 0.9rem;
  max-width: 600px;
  margin: 0 auto 48px;
}

.section-divider {
  width: 40px;
  height: 2px;
  background: var(--accent-gold);
  margin: 0 auto 20px;
}

/* ============================================
   Header / Navigation
============================================ */
.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  padding: 16px 0;
  background: rgba(250, 248, 245, 0.95);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border-light);
  transition: all var(--transition);
}

.site-header.scrolled {
  padding: 10px 0;
  box-shadow: 0 1px 10px rgba(0,0,0,0.05);
}

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

.site-logo {
  font-family: var(--font-heading);
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--text-primary);
}

.site-logo .logo-sub {
  display: block;
  font-family: var(--font-body);
  font-size: 0.6rem;
  color: var(--text-light);
  letter-spacing: 0.15em;
  font-weight: 400;
}

.main-nav ul {
  display: flex;
  gap: 28px;
  align-items: center;
}

.main-nav a {
  color: var(--text-secondary);
  font-size: 0.82rem;
  letter-spacing: 0.05em;
  transition: color var(--transition);
}

.main-nav a:hover { color: var(--accent-green); }

.lang-switch {
  display: flex;
  gap: 4px;
  margin-left: 20px;
  border-left: 1px solid var(--border);
  padding-left: 20px;
}

.lang-switch a {
  font-size: 0.75rem;
  padding: 4px 10px;
  border: 1px solid var(--border);
  color: var(--text-light);
  transition: all var(--transition);
}

.lang-switch a.active,
.lang-switch a:hover {
  background: var(--accent-green);
  color: #fff;
  border-color: var(--accent-green);
}

.menu-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
}

.menu-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--text-primary);
  margin: 5px 0;
  transition: all var(--transition);
}

/* ============================================
   Hero Section
============================================ */
.hero {
  position: relative;
  height: 75vh;
  min-height: 500px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  margin-top: 70px;
  overflow: hidden;
  background: var(--bg-dark);
}

.hero-bg {
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background: linear-gradient(135deg, #2d5a3d 0%, #1a3a25 50%, #0d1f14 100%);
  opacity: 0.9;
}

.hero-overlay {
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(0,0,0,0.3);
}

.hero-content {
  position: relative;
  z-index: 1;
  color: #fff;
  max-width: 700px;
  padding: 0 24px;
}

.hero-content .hero-label {
  display: inline-block;
  font-size: 0.7rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  border: 1px solid rgba(255,255,255,0.4);
  padding: 6px 20px;
  margin-bottom: 24px;
  color: rgba(255,255,255,0.9);
}

.hero h1 {
  color: #fff;
  font-size: clamp(2rem, 5vw, 3.5rem);
  margin-bottom: 16px;
  text-shadow: 0 2px 10px rgba(0,0,0,0.3);
}

.hero h1 .en {
  display: block;
  font-size: 0.35em;
  font-family: var(--font-body);
  font-weight: 300;
  letter-spacing: 0.15em;
  margin-top: 12px;
  opacity: 0.8;
}

.hero-description {
  font-size: 0.95rem;
  color: rgba(255,255,255,0.85);
  line-height: 2;
  margin-bottom: 32px;
}

.hero-cta {
  display: inline-block;
  background: var(--accent-gold);
  color: #fff;
  padding: 14px 36px;
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  transition: all var(--transition);
  border: 2px solid var(--accent-gold);
}

.hero-cta:hover {
  background: transparent;
  color: var(--accent-gold);
}

/* ============================================
   Article Cards (MATCHA-style)
============================================ */
.articles {
  padding: var(--section-padding);
}

.articles-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

.article-card {
  background: var(--bg-white);
  border: 1px solid var(--border-light);
  overflow: hidden;
  transition: all var(--transition);
}

.article-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-hover);
}

.article-card-image {
  width: 100%;
  aspect-ratio: 16 / 10;
  background: var(--bg-cream);
  overflow: hidden;
  position: relative;
}

.article-card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.article-card:hover .article-card-image img {
  transform: scale(1.05);
}

.article-card-image .placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-light);
  font-size: 2rem;
}

.article-card-category {
  position: absolute;
  top: 12px;
  left: 12px;
  background: var(--accent-green);
  color: #fff;
  font-size: 0.68rem;
  padding: 3px 12px;
  letter-spacing: 0.05em;
}

.article-card-body {
  padding: 20px;
}

.article-card-body h3 {
  font-size: 1rem;
  font-family: var(--font-body);
  font-weight: 600;
  margin-bottom: 8px;
  line-height: 1.6;
}

.article-card-body p {
  font-size: 0.82rem;
  color: var(--text-secondary);
  line-height: 1.7;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.article-card-meta {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 20px;
  border-top: 1px solid var(--border-light);
  font-size: 0.75rem;
  color: var(--text-light);
}

/* ============================================
   Features Section
============================================ */
.features {
  padding: var(--section-padding);
  background: var(--bg-white);
}

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

.feature-card {
  text-align: center;
  padding: 40px 24px;
}

.feature-icon {
  font-size: 2.5rem;
  margin-bottom: 20px;
}

.feature-card h3 {
  font-size: 1.1rem;
  margin-bottom: 12px;
}

.feature-card p {
  color: var(--text-secondary);
  font-size: 0.88rem;
  line-height: 1.9;
}

/* ============================================
   VR Section
============================================ */
.vr-section {
  padding: var(--section-padding);
}

.vr-embed {
  max-width: 900px;
  margin: 0 auto;
  aspect-ratio: 16 / 9;
  background: var(--bg-cream);
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-light);
  font-size: 1rem;
}

/* ============================================
   Map Section
============================================ */
.map-section {
  padding: var(--section-padding);
  background: var(--bg-white);
}

.map-embed {
  max-width: 900px;
  margin: 0 auto;
  aspect-ratio: 16 / 9;
  border: 1px solid var(--border);
  overflow: hidden;
}

.map-embed iframe {
  width: 100%;
  height: 100%;
  border: 0;
}

/* ============================================
   Contact Section
============================================ */
.contact {
  padding: var(--section-padding);
}

.contact-inner {
  max-width: 600px;
  margin: 0 auto;
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.form-group label {
  font-size: 0.8rem;
  color: var(--text-secondary);
  letter-spacing: 0.05em;
}

.form-group input,
.form-group textarea,
.form-group select {
  background: var(--bg-white);
  border: 1px solid var(--border);
  padding: 12px 16px;
  font-family: var(--font-body);
  font-size: 0.9rem;
  color: var(--text-primary);
  transition: border-color var(--transition);
  outline: none;
}

.form-group input:focus,
.form-group textarea:focus {
  border-color: var(--accent-green);
}

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

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

.btn-submit {
  background: var(--accent-green);
  color: #fff;
  border: 2px solid var(--accent-green);
  padding: 14px 40px;
  font-family: var(--font-body);
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  cursor: pointer;
  transition: all var(--transition);
  width: fit-content;
  align-self: center;
}

.btn-submit:hover {
  background: transparent;
  color: var(--accent-green);
}

/* ============================================
   Footer
============================================ */
.site-footer {
  background: var(--bg-dark);
  color: rgba(255,255,255,0.7);
  padding: 60px 0 30px;
}

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

.footer-brand {
  font-family: var(--font-heading);
  font-size: 1.2rem;
  color: #fff;
  margin-bottom: 12px;
}

.footer-desc {
  font-size: 0.82rem;
  line-height: 1.8;
  color: rgba(255,255,255,0.5);
}

.footer-heading {
  font-family: var(--font-body);
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--accent-gold);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 16px;
}

.site-footer ul li {
  margin-bottom: 8px;
}

.site-footer ul a {
  color: rgba(255,255,255,0.6);
  font-size: 0.82rem;
  transition: color var(--transition);
}

.site-footer ul a:hover {
  color: #fff;
}

.footer-social {
  display: flex;
  gap: 12px;
}

.footer-social a {
  width: 36px;
  height: 36px;
  border: 1px solid rgba(255,255,255,0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.9rem;
  transition: all var(--transition);
}

.footer-social a:hover {
  border-color: var(--accent-gold);
  background: var(--accent-gold);
  color: #fff;
}

.footer-bottom {
  text-align: center;
  padding-top: 24px;
  border-top: 1px solid rgba(255,255,255,0.1);
  font-size: 0.72rem;
  color: rgba(255,255,255,0.3);
}

/* ============================================
   Animations
============================================ */
.fade-in {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

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

/* ============================================
   Responsive
============================================ */
@media (max-width: 1024px) {
  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
}

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

  .menu-toggle { display: block; }

  .main-nav {
    position: fixed;
    top: 0; right: -100%;
    width: 280px;
    height: 100vh;
    background: var(--bg-white);
    padding: 80px 32px;
    transition: right var(--transition);
    border-left: 1px solid var(--border);
    z-index: 999;
  }

  .main-nav.active { right: 0; }

  .main-nav ul {
    flex-direction: column;
    gap: 20px;
  }

  .lang-switch {
    margin-left: 0;
    border-left: none;
    padding-left: 0;
    padding-top: 20px;
    border-top: 1px solid var(--border);
  }

  .hero { height: 60vh; margin-top: 60px; }

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

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

  .form-row { grid-template-columns: 1fr; }

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