/* ============================================
   Town Pages — Common CSS
   Based on yamatokoriyamashi.html design system
   ============================================ */

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
:root {
  --green: #2B6E4F;
  --green-dark: #1E5039;
  --green-light: #3A8A65;
  --gold: #D4A853;
  --gold-light: #E8C97A;
  --gold-dark: #B8912F;
  --washi: #F5F0E8;
  --washi-dark: #EDE5D8;
  --white: #FFFFFF;
  --text: #2C2C2C;
  --text-light: #5A5A5A;
  --text-muted: #8A8A8A;
  --border: #D8D0C4;
  --shadow-sm: 0 2px 8px rgba(43, 110, 79, 0.08);
  --shadow-md: 0 4px 20px rgba(43, 110, 79, 0.12);
  --shadow-lg: 0 8px 40px rgba(43, 110, 79, 0.16);
  --radius: 8px;
  --radius-lg: 16px;
  --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}
html { scroll-behavior: smooth; }
body {
  font-family: 'Noto Sans JP', -apple-system, BlinkMacSystemFont, sans-serif;
  font-weight: 400;
  color: var(--text);
  background: var(--white);
  line-height: 1.8;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}
a { color: inherit; text-decoration: none; }
.wrap { max-width: 1080px; margin: 0 auto; padding: 0 24px; }

/* Animations */
.fade-up {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.fade-up.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Washi texture */
.washi-bg {
  background-color: var(--washi);
  background-image:
    url("data:image/svg+xml,%3Csvg width='60' height='60' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.65' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='60' height='60' filter='url(%23n)' opacity='0.03'/%3E%3C/svg%3E");
}

/* ============================================
   HEADER
   ============================================ */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.97);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border-bottom: 1px solid transparent;
  transition: box-shadow var(--transition), border-color var(--transition);
}
.site-header.scrolled {
  box-shadow: 0 2px 20px rgba(43, 110, 79, 0.1);
  border-bottom-color: var(--border);
}
.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 60px;
}
.site-logo {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 17px;
  font-weight: 700;
  color: var(--green);
  white-space: nowrap;
  letter-spacing: -0.02em;
}
.site-logo svg {
  width: 28px;
  height: 28px;
  flex-shrink: 0;
}
.header-hours {
  font-size: 11px;
  color: var(--text-muted);
}

/* ============================================
   BREADCRUMB
   ============================================ */
.breadcrumb {
  padding: 12px 0;
  font-size: 13px;
  color: var(--text-muted);
  border-bottom: 1px solid var(--border);
}
.breadcrumb a {
  color: var(--green);
  transition: opacity var(--transition);
}
.breadcrumb a:hover { opacity: 0.7; }
.breadcrumb span { margin: 0 8px; color: var(--border); }

/* ============================================
   HERO
   ============================================ */
.hero {
  position: relative;
  background: linear-gradient(135deg, var(--green-dark) 0%, var(--green) 50%, var(--green-light) 100%);
  padding: clamp(56px, 8vw, 88px) 0 clamp(48px, 7vw, 72px);
  color: var(--white);
  overflow: hidden;
}
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 20% 50%, rgba(212, 168, 83, 0.12) 0%, transparent 50%),
    radial-gradient(circle at 80% 30%, rgba(255, 255, 255, 0.06) 0%, transparent 40%);
  pointer-events: none;
}
.hero::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 60px;
  background: linear-gradient(to top, rgba(30, 80, 57, 0.3), transparent);
  pointer-events: none;
}
.hero .wrap { position: relative; z-index: 1; }
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(255, 255, 255, 0.15);
  border: 1px solid rgba(255, 255, 255, 0.25);
  border-radius: 100px;
  padding: 6px 16px;
  font-size: 13px;
  font-weight: 500;
  margin-bottom: 20px;
  backdrop-filter: blur(4px);
}
.hero h1 {
  font-size: clamp(22px, 4.5vw, 36px);
  font-weight: 900;
  line-height: 1.3;
  margin-bottom: 16px;
  letter-spacing: -0.02em;
}
.hero-copy {
  font-size: clamp(14px, 2.2vw, 17px);
  line-height: 1.7;
  opacity: 0.92;
  max-width: 600px;
  margin-bottom: 28px;
}
.hero-price {
  display: inline-flex;
  align-items: baseline;
  gap: 4px;
  background: rgba(212, 168, 83, 0.2);
  border: 1px solid rgba(212, 168, 83, 0.4);
  border-radius: var(--radius);
  padding: 10px 20px;
  font-size: 14px;
}
.hero-price strong {
  font-size: clamp(26px, 4vw, 36px);
  font-weight: 900;
  color: var(--gold-light);
}

/* Wave divider */
.wave-divider {
  display: block;
  width: 100%;
  height: auto;
  margin-top: -1px;
}

/* ============================================
   SECTION COMMON
   ============================================ */
.section {
  padding: clamp(48px, 7vw, 80px) 0;
}
.section-label {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  font-weight: 700;
  color: var(--green);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 8px;
}
.section-label::before {
  content: '';
  display: block;
  width: 20px;
  height: 2px;
  background: var(--gold);
}
.section-title {
  font-size: clamp(22px, 4vw, 32px);
  font-weight: 900;
  line-height: 1.3;
  margin-bottom: 12px;
  color: var(--text);
  letter-spacing: -0.02em;
}
.section-desc {
  font-size: 15px;
  color: var(--text-light);
  max-width: 640px;
  margin-bottom: 36px;
}

/* ============================================
   ACCESS SECTION (Town-specific)
   ============================================ */
.access-section {
  padding: clamp(40px, 6vw, 64px) 0;
}
.access-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: start;
}
.access-inner h2 {
  font-size: clamp(20px, 3vw, 26px);
  font-weight: 900;
  color: var(--green);
  margin-bottom: 16px;
  line-height: 1.5;
}
.access-inner p {
  font-size: 15px;
  color: var(--text-light);
  line-height: 2;
  margin-bottom: 12px;
}
.access-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--washi);
  border: 1px solid var(--border);
  border-radius: 100px;
  padding: 8px 18px;
  font-size: 14px;
  font-weight: 500;
  color: var(--green);
  margin-bottom: 16px;
}
.access-stat {
  display: flex;
  gap: 16px;
  margin-top: 20px;
}
.access-stat-item {
  flex: 1;
  background: var(--washi);
  border-radius: var(--radius);
  padding: 16px;
  text-align: center;
}
.access-stat-num {
  font-size: 24px;
  font-weight: 900;
  color: var(--green);
}
.access-stat-label {
  font-size: 12px;
  color: var(--text-muted);
  margin-top: 4px;
}

/* ============================================
   PRICING TABLE
   ============================================ */
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
  margin-bottom: 28px;
}
.pricing-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 28px 24px;
  text-align: center;
  transition: transform var(--transition), box-shadow var(--transition);
}
.pricing-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
}
.pricing-card.popular {
  border-color: var(--green);
  position: relative;
}
.pricing-card.popular::before {
  content: '\4EBA\6C17No.1';
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--gold);
  color: var(--white);
  font-size: 11px;
  font-weight: 700;
  padding: 3px 14px;
  border-radius: 100px;
  white-space: nowrap;
}
.pricing-type {
  font-size: 14px;
  font-weight: 700;
  color: var(--green);
  margin-bottom: 4px;
}
.pricing-icon {
  font-size: 36px;
  margin-bottom: 8px;
}
.pricing-amount {
  font-size: clamp(28px, 4vw, 36px);
  font-weight: 900;
  color: var(--text);
  margin-bottom: 2px;
}
.pricing-amount small {
  font-size: 14px;
  font-weight: 500;
  color: var(--text-light);
}
.pricing-note {
  font-size: 13px;
  color: var(--text-muted);
}

/* Option table */
.option-table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 8px;
}
.option-table th,
.option-table td {
  padding: 12px 16px;
  text-align: left;
  font-size: 14px;
  border-bottom: 1px solid var(--border);
}
.option-table th {
  font-weight: 700;
  color: var(--text);
  background: var(--washi);
}
.option-table td:last-child {
  text-align: right;
  font-weight: 700;
  color: var(--green);
  white-space: nowrap;
}

/* ============================================
   PROCESS FLOW
   ============================================ */
.process-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  margin-top: 32px;
}
.process-step {
  text-align: center;
  position: relative;
}
.process-step::after {
  content: '';
  position: absolute;
  top: 28px;
  right: -14px;
  width: 20px;
  height: 2px;
  background: var(--gold);
}
.process-step:last-child::after { display: none; }
.process-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--green);
  color: var(--white);
  font-size: 20px;
  font-weight: 900;
  margin-bottom: 12px;
}
.process-step h3 {
  font-size: 15px;
  font-weight: 700;
  margin-bottom: 8px;
}
.process-step p {
  font-size: 13px;
  color: var(--text-light);
  line-height: 1.7;
}

/* ============================================
   FEATURES
   ============================================ */
.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 20px;
}
.feature-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 28px 24px;
  transition: transform var(--transition), box-shadow var(--transition);
}
.feature-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-sm);
}
.feature-icon {
  width: 48px;
  height: 48px;
  background: linear-gradient(135deg, var(--green), var(--green-light));
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
  font-size: 22px;
}
.feature-card h3 {
  font-size: 16px;
  font-weight: 700;
  margin-bottom: 8px;
  color: var(--text);
}
.feature-card p {
  font-size: 14px;
  color: var(--text-light);
  line-height: 1.7;
}

/* ============================================
   FAQ
   ============================================ */
.faq-list {
  max-width: 720px;
}
.faq-item {
  border-bottom: 1px solid var(--border);
  padding: 20px 0;
}
.faq-q {
  font-size: 15px;
  font-weight: 700;
  color: var(--text);
  display: flex;
  align-items: flex-start;
  gap: 10px;
  cursor: pointer;
  line-height: 1.6;
}
.faq-q::before {
  content: 'Q';
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 28px;
  height: 28px;
  background: var(--green);
  color: var(--white);
  border-radius: 50%;
  font-size: 13px;
  font-weight: 700;
  flex-shrink: 0;
}
.faq-a {
  font-size: 14px;
  color: var(--text-light);
  line-height: 1.8;
  margin-top: 12px;
  padding-left: 38px;
}

/* ============================================
   TESTIMONIAL (Single card for town pages)
   ============================================ */
.testimonial-single {
  max-width: 640px;
  margin-top: 24px;
}
.testimonial-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 28px;
  border: 1px solid var(--border);
  transition: box-shadow var(--transition);
}
.testimonial-card:hover {
  box-shadow: var(--shadow-md);
}
.testimonial-stars {
  color: var(--gold);
  font-size: 16px;
  letter-spacing: 2px;
  margin-bottom: 12px;
}
.testimonial-text {
  font-size: 14px;
  line-height: 1.9;
  color: var(--text);
  margin-bottom: 16px;
}
.testimonial-author {
  font-size: 13px;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: 8px;
}
.testimonial-avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--washi-dark);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  color: var(--green);
  font-weight: 700;
}

/* ============================================
   TOWN LINKS (Nearby towns)
   ============================================ */
.town-links {
  padding: clamp(40px, 6vw, 56px) 0;
}
.town-links-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 24px;
}
.town-link {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 8px 18px;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 100px;
  font-size: 14px;
  font-weight: 500;
  color: var(--green);
  transition: all var(--transition);
}
.town-link:hover {
  background: var(--green);
  color: var(--white);
  border-color: var(--green);
}
.town-link.current {
  background: var(--green);
  color: var(--white);
  border-color: var(--green);
  pointer-events: none;
}

/* ============================================
   CTA
   ============================================ */
.cta-section {
  background: linear-gradient(135deg, var(--green-dark), var(--green));
  color: var(--white);
  text-align: center;
  padding: clamp(48px, 7vw, 80px) 0;
  position: relative;
  overflow: hidden;
}
.cta-section::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 50% 0%, rgba(212, 168, 83, 0.1) 0%, transparent 60%);
  pointer-events: none;
}
.cta-section .wrap { position: relative; z-index: 1; }
.cta-title {
  font-size: clamp(22px, 4vw, 32px);
  font-weight: 900;
  margin-bottom: 12px;
  letter-spacing: -0.02em;
}
.cta-desc {
  font-size: 15px;
  opacity: 0.9;
  margin-bottom: 28px;
  max-width: 500px;
  margin-left: auto;
  margin-right: auto;
}
.cta-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: center;
}
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 32px;
  border-radius: var(--radius);
  font-size: 15px;
  font-weight: 700;
  border: none;
  cursor: pointer;
  transition: transform var(--transition), box-shadow var(--transition), opacity var(--transition);
  text-decoration: none;
}
.btn:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}
.btn-line {
  background: #06C755;
  color: var(--white);
}
.btn-outline {
  background: transparent;
  color: var(--white);
  border: 2px solid rgba(255, 255, 255, 0.5);
}
.btn-outline:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.8);
}
.btn svg { width: 20px; height: 20px; }

/* ============================================
   CONTACT FORM
   ============================================ */
.form-section {
  padding: clamp(48px, 7vw, 72px) 0;
}
.form-grid {
  max-width: 640px;
  margin: 32px auto 0;
}
.form-group {
  margin-bottom: 20px;
}
.form-group label {
  display: block;
  font-size: 14px;
  font-weight: 700;
  margin-bottom: 6px;
  color: var(--text);
}
.form-group label .req {
  color: #D44;
  font-size: 12px;
  margin-left: 4px;
}
.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 12px 16px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  font-size: 15px;
  font-family: inherit;
  background: var(--white);
  color: var(--text);
  transition: border-color var(--transition);
}
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--green);
}
.form-group textarea {
  height: 120px;
  resize: vertical;
}
.form-submit {
  display: block;
  width: 100%;
  padding: 16px;
  background: var(--green);
  color: var(--white);
  border: none;
  border-radius: var(--radius);
  font-size: 16px;
  font-weight: 700;
  font-family: inherit;
  cursor: pointer;
  transition: background var(--transition), transform var(--transition);
}
.form-submit:hover {
  background: var(--green-dark);
  transform: translateY(-1px);
}

/* ============================================
   OTHER AREAS
   ============================================ */
.other-areas {
  padding: clamp(40px, 6vw, 56px) 0;
}
.other-areas-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
  margin-top: 24px;
}
.other-area-link {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 8px 18px;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 100px;
  font-size: 14px;
  font-weight: 500;
  color: var(--green);
  transition: all var(--transition);
}
.other-area-link:hover {
  background: var(--green);
  color: var(--white);
  border-color: var(--green);
}

/* ============================================
   FOOTER
   ============================================ */
.site-footer {
  background: var(--text);
  color: rgba(255, 255, 255, 0.6);
  text-align: center;
  padding: 32px 0;
  font-size: 13px;
}
.site-footer a {
  color: rgba(255, 255, 255, 0.8);
  transition: color var(--transition);
}
.site-footer a:hover { color: var(--white); }
.footer-links {
  display: flex;
  justify-content: center;
  gap: 24px;
  margin-bottom: 12px;
  flex-wrap: wrap;
}

/* ============================================
   FLOATING CTA (Mobile)
   ============================================ */
.floating-cta {
  display: none;
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 99;
  background: var(--white);
  border-top: 1px solid var(--border);
  padding: 10px 16px;
  box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.1);
}
.floating-cta a {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  padding: 12px;
  background: #06C755;
  color: var(--white);
  border-radius: var(--radius);
  font-size: 15px;
  font-weight: 700;
}
.floating-cta svg { width: 22px; height: 22px; }

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 768px) {
  .pricing-grid {
    grid-template-columns: 1fr;
  }
  .features-grid {
    grid-template-columns: 1fr;
  }
  .access-inner {
    grid-template-columns: 1fr;
    gap: 24px;
  }
  .process-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
  }
  .process-step::after { display: none; }
  .floating-cta {
    display: block;
  }
  body {
    padding-bottom: 60px;
  }
}
