:root {
  /* Colors */
  --color-gold: #c5a880; 
  --color-gold-light: rgba(197, 168, 128, 0.4);
  --color-text-main: #ffffff;
  --color-text-dark: #333333;
  --color-text-muted: #888888;
  
  --color-bg-dark: #121212;
  --color-bg-light: #f9f9f9;
  --color-bg-gray: #1a1a1a;
  
  /* Fonts */
  --font-mincho: 'Noto Serif JP', serif;
  --font-euro: 'Playfair Display', serif;
  --font-sans: 'Helvetica Neue', Arial, sans-serif;
  
  /* Overlay */
  --color-overlay: rgba(15, 15, 17, 0.7); 
}

* {
  box-sizing: border-box;
}

body, html {
  margin: 0;
  padding: 0;
  font-family: var(--font-mincho);
  color: var(--color-text-main);
  background-color: var(--color-bg-dark);
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  line-height: 1.6;
}

/* Helpers */
.text-center { text-align: center; }
.text-gold { color: var(--color-gold) !important; }
.relative { position: relative; }
.z-2 { z-index: 2; }
.pc-only { display: block; }
.pc-only { display: block; }
@media (max-width: 768px) { .pc-only { display: none !important; } }

/* Layout */
.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 20px;
}

.section {
  padding: 8rem 0;
}

.section-inner {
  max-width: 800px;
  margin: 0 auto;
}

.dark-section {
  background-color: var(--color-bg-dark);
  color: var(--color-text-main);
}

.light-section {
  background-color: var(--color-bg-light);
  color: var(--color-text-dark);
}

/* Typography */
.section-title {
  font-family: var(--font-euro);
  font-size: 2.5rem;
  letter-spacing: 0.15em;
  margin: 0 0 1rem 0;
  color: var(--color-gold);
}

.section-subtitle {
  font-size: 1.4rem;
  letter-spacing: 0.1em;
  margin: 0 0 3rem 0;
  font-weight: 400;
}

.section-text {
  font-size: 1.05rem;
  line-height: 2.4;
  letter-spacing: 0.08em;
  font-weight: 300;
}

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

.scroll-anim {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 1.2s cubic-bezier(0.2, 0.8, 0.2, 1), transform 1.2s cubic-bezier(0.2, 0.8, 0.2, 1);
}
.scroll-anim.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Header */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  padding: 1rem 0;
  z-index: 100;
  background: linear-gradient(to bottom, rgba(0,0,0,0.8), transparent);
}

.header-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 2rem;
  max-width: 1400px;
  margin: 0 auto;
}

.header-logo .logo-text {
  font-family: var(--font-euro);
  font-size: 1.2rem;
  letter-spacing: 0.15em;
  color: #fff;
}

.header-cta {
  color: #fff;
  text-decoration: none;
  border: 1px solid rgba(255,255,255,0.4);
  padding: 0.5rem 1.5rem;
  font-size: 0.9rem;
  letter-spacing: 0.1em;
  transition: all 0.3s;
}
.header-cta:hover {
  background: var(--color-gold);
  border-color: var(--color-gold);
  color: #000;
}

/* Buttons */
.cta-dual-wrapper {
  display: flex;
  gap: 1.5rem;
  margin-top: 1.5rem;
  justify-content: center;
  flex-wrap: wrap;
}

.cta-button {
  display: inline-flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  background-color: transparent;
  color: var(--color-text-main);
  border: 1px solid var(--color-gold);
  padding: 1rem 3rem;
  text-decoration: none;
  font-size: 1.05rem;
  letter-spacing: 0.15em;
  transition: all 0.4s ease;
  position: relative;
  overflow: hidden;
  cursor: pointer;
  min-width: 280px;
  text-align: center;
  line-height: 1.4;
}

.cta-small {
  font-size: 0.8rem;
  margin-top: 0.2rem;
}

.cta-button::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 0%;
  height: 100%;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  z-index: -1;
}

.primary-btn {
  background-color: rgba(197, 168, 128, 0.15);
}

.primary-btn::before {
  background-color: var(--color-gold);
}

.primary-btn:hover {
  color: #1a1a1a;
  border-color: var(--color-gold);
}

.secondary-btn {
  background-color: rgba(255, 255, 255, 0.05);
  border-color: rgba(255, 255, 255, 0.5);
}

.secondary-btn::before {
  background-color: #fff;
}

.secondary-btn:hover {
  color: #1a1a1a;
  border-color: #fff;
}

.cta-button:hover::before {
  width: 100%;
}

.cta-button.lg {
  padding: 1.5rem 5rem;
  font-size: 1.2rem;
}

/* Hero Section (Pattern B) */
.hero-section {
  position: relative;
  width: 100%;
  min-height: 100vh;
  background-image: url('../img/hero.jpg');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 4rem 0 2rem;
}

.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: var(--color-overlay);
  z-index: 1;
}

.hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  padding: 0 20px;
  max-width: 1000px;
  width: 100%;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.hero-subtitle {
  font-size: 0.95rem;
  letter-spacing: 0.15em;
  margin-bottom: 1.5rem;
  font-weight: 300;
  line-height: 1.8;
  color: rgba(255, 255, 255, 0.85);
  margin-top: 1rem;
}

.emblem-badge {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  border: 1px solid var(--color-gold);
  padding: 2rem 3.5rem;
  margin-bottom: 2rem;
  position: relative;
  background: rgba(0, 0, 0, 0.45);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  box-shadow: 0 10px 40px rgba(0,0,0,0.5);
}

.emblem-badge::after {
  content: '';
  position: absolute;
  top: 6px;
  right: 6px;
  bottom: 6px;
  left: 6px;
  border: 1px solid var(--color-gold-light);
  pointer-events: none;
}

.emblem-subtitle {
  font-family: var(--font-euro);
  font-size: 1.15rem;
  letter-spacing: 0.4em;
  color: var(--color-gold);
  margin-bottom: 1.5rem;
  text-transform: uppercase;
  margin-right: -0.4em;
}

.emblem-title {
  font-size: 1.5rem;
  font-weight: 300;
  letter-spacing: 0.15em;
  line-height: 1.6;
  text-align: center;
  margin: 0;
}

.emblem-title .highlight-number {
  font-family: var(--font-euro);
  font-size: 5.5rem;
  color: var(--color-gold);
  margin-bottom: 0.5rem;
  display: block;
  line-height: 0.85;
  font-weight: 400;
  text-shadow: 2px 2px 10px rgba(0,0,0,0.5);
}

.emblem-title .highlight-unit {
  font-family: var(--font-mincho);
  font-size: 1.4rem;
  letter-spacing: 0.15em;
  color: var(--color-gold);
  vertical-align: middle;
  margin-left: 0.5rem;
  text-shadow: none;
}

.emblem-condition {
  font-size: 0.95rem;
  letter-spacing: 0.15em;
  margin-top: 2.5rem;
  color: rgba(255, 255, 255, 0.8);
}

.hero-body {
  font-size: 1.05rem;
  line-height: 2;
  margin-bottom: 1.5rem;
  font-weight: 300;
  letter-spacing: 0.1em;
  color: rgba(255, 255, 255, 0.95);
}

/* Features grid */
.features-grid {
  display: flex;
  flex-direction: column;
  gap: 4rem;
  margin-top: 5rem;
}

.feature-card {
  display: flex;
  gap: 4rem;
  align-items: center;
}

.feature-card:nth-child(even) {
  flex-direction: row-reverse;
}

.feature-image {
  flex: 1;
  height: 400px;
  background-size: cover;
  background-position: center;
  position: relative;
}

.feature-image::after {
  content: '';
  position: absolute;
  top: 15px;
  left: -15px;
  width: 100%;
  height: 100%;
  border: 1px solid var(--color-gold-light);
  z-index: -1;
  pointer-events: none;
}

.feature-card:nth-child(even) .feature-image::after {
  left: 15px;
}

.placeholder-img {
  background-color: #ddd;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #999;
  font-family: var(--font-sans);
  letter-spacing: 0.1em;
}

.feature-content {
  flex: 1;
}

.feature-title {
  font-family: var(--font-euro);
  font-size: 2rem;
  font-weight: 400;
  margin: 0 0 1.5rem 0;
  color: var(--color-text-dark);
  display: flex;
  flex-direction: column;
}

.feature-title span {
  font-family: var(--font-mincho);
  font-size: 1rem;
  color: var(--color-gold);
  letter-spacing: 0.15em;
  margin-top: 0.5rem;
}

.feature-desc {
  font-size: 1rem;
  line-height: 2.2;
  color: #555;
  letter-spacing: 0.05em;
}

/* Conditions */
.conditions-box {
  background-color: var(--color-bg-gray);
  border: 1px solid rgba(255,255,255,0.1);
  padding: 4rem;
  text-align: left;
  max-width: 800px;
  margin: 0 auto;
}

.conditions-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.conditions-list li {
  margin-bottom: 1.5rem;
  font-size: 1.05rem;
  letter-spacing: 0.08em;
  padding-left: 1.5rem;
  position: relative;
  line-height: 1.8;
}

.conditions-list li::before {
  content: '・';
  position: absolute;
  left: 0;
  color: var(--color-gold);
}

.conditions-list li strong {
  font-weight: 400;
  color: var(--color-gold);
}

.conditions-list .note {
  font-size: 0.85rem;
  color: #aaa;
  display: block;
  margin-top: 0.5rem;
}

/* Contact CTA */
.cta-section {
  position: relative;
  padding: 10rem 0;
  background-image: url('../img/hero.jpg');
  background-size: cover;
  background-position: center;
  background-attachment: fixed; /* Parallax effect */
}

.contact-overlay {
  position: absolute;
  top: 0; left: 0; width: 100%; height: 100%;
  background: rgba(10, 10, 10, 0.85);
}

.cta-title {
  font-size: 2rem;
  font-weight: 300;
  letter-spacing: 0.1em;
  margin-bottom: 2rem;
}

.cta-text {
  font-size: 1.05rem;
  line-height: 2;
  margin-bottom: 3rem;
  color: #ccc;
}

.cta-note {
  margin-top: 2rem;
  font-size: 0.9rem;
  color: #999;
}

/* Footer */
.site-footer {
  background-color: #080808;
  padding: 4rem 0 2rem;
  font-family: var(--font-sans);
}

.footer-logo {
  font-family: var(--font-euro);
  font-size: 1.2rem;
  letter-spacing: 0.15em;
  color: #888;
  margin-bottom: 2rem;
}

.footer-links {
  display: flex;
  justify-content: center;
  gap: 2rem;
  margin-bottom: 3rem;
}

.footer-links a {
  color: #666;
  text-decoration: none;
  font-size: 0.85rem;
  letter-spacing: 0.05em;
  transition: color 0.3s;
}

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

.copyright {
  color: #444;
  font-size: 0.75rem;
  letter-spacing: 0.1em;
}

/* Modal and Form Styles */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.8);
  backdrop-filter: blur(5px);
  -webkit-backdrop-filter: blur(5px);
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.4s ease, visibility 0.4s ease;
}

.modal-overlay.active {
  opacity: 1;
  visibility: visible;
}

.modal-content {
  background-color: var(--color-bg-dark);
  border: 1px solid var(--color-gold);
  width: 90%;
  max-width: 600px;
  max-height: 90vh;
  overflow-y: auto;
  padding: 3rem;
  position: relative;
  transform: translateY(20px);
  transition: transform 0.4s ease;
  color: var(--color-text-main);
  font-family: var(--font-sans);
}

.modal-overlay.active .modal-content {
  transform: translateY(0);
}

.modal-close {
  position: absolute;
  top: 15px;
  right: 20px;
  background: none;
  border: none;
  color: var(--color-text-main);
  font-size: 2rem;
  cursor: pointer;
  line-height: 1;
  opacity: 0.7;
  transition: opacity 0.3s;
}

.modal-close:hover {
  opacity: 1;
}

.modal-title {
  font-family: var(--font-mincho);
  font-size: 1.5rem;
  color: var(--color-gold);
  text-align: center;
  margin-bottom: 2rem;
  letter-spacing: 0.1em;
  border-bottom: 1px solid rgba(197, 168, 128, 0.3);
  padding-bottom: 1rem;
}

.contact-form .form-group {
  margin-bottom: 1.5rem;
}

.contact-form label {
  display: block;
  font-size: 0.95rem;
  margin-bottom: 0.5rem;
  letter-spacing: 0.05em;
  color: #ddd;
}

.contact-form .required {
  background-color: var(--color-gold);
  color: #1a1a1a;
  font-size: 0.7rem;
  padding: 2px 6px;
  border-radius: 2px;
  margin-left: 10px;
  vertical-align: middle;
}

.contact-form input[type="text"],
.contact-form input[type="email"],
.contact-form input[type="tel"],
.contact-form textarea {
  width: 100%;
  padding: 0.8rem 1rem;
  background-color: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: #fff;
  font-size: 1rem;
  font-family: var(--font-sans);
  transition: border-color 0.3s;
}

.contact-form input:focus,
.contact-form textarea:focus {
  outline: none;
  border-color: var(--color-gold);
}

.contact-form textarea {
  resize: vertical;
}

.privacy-check {
  margin: 2rem 0;
  text-align: center;
}

.privacy-check label {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

.privacy-check input[type="checkbox"] {
  margin-right: 10px;
  width: 18px;
  height: 18px;
  accent-color: var(--color-gold);
  cursor: pointer;
}

.privacy-link {
  color: var(--color-gold);
  text-decoration: underline;
  margin: 0 4px;
}

.privacy-link:hover {
  text-decoration: none;
}

.form-submit {
  text-align: center;
  margin-top: 2rem;
}

.submit-btn {
  width: 100%;
  max-width: 300px;
  padding: 1rem 0;
  font-weight: 600;
  background-color: rgba(197, 168, 128, 0.2);
}

/* Responsive */
@media screen and (max-width: 768px) {
  .section { padding: 5rem 0; }
  
  .header-inner { padding: 0 1rem; }
  .header-cta { padding: 0.4rem 0.8rem; font-size: 0.75rem; letter-spacing: 0.05em; }
  
  .cta-dual-wrapper {
    flex-direction: column;
    gap: 1rem;
    width: 100%;
  }
  
  .cta-button {
    width: 100%;
    min-width: auto;
  }
  
  .hero-title { font-size: 1.6rem; }
  .emblem-title .highlight-number { font-size: 4.5rem; }
  .emblem-title { font-size: 1.1rem; }
  .emblem-badge { padding: 2.5rem 1rem; width: 100%; box-sizing: border-box; }
  .hero-subtitle { font-size: 0.95rem; margin-top: 4rem; }
  .hero-body { font-size: 1rem; padding: 0 1rem; }
  
  .section-title { font-size: 2rem; }
  .section-subtitle { font-size: 1.2rem; }
  .section-text { text-align: left; padding: 0 1rem; line-height: 2.0; }
  
  .feature-card, .feature-card:nth-child(even) {
    flex-direction: column;
    gap: 2rem;
  }
  
  .feature-image { width: 100%; height: 250px; }
  .feature-image::after { display: none; }
  
  .conditions-box { padding: 2rem; }
  
  .cta-title { font-size: 1.5rem; text-align: left; padding: 0 1rem; }
  .cta-section { padding: 6rem 0; }
  .cta-text { text-align: left; padding: 0 1rem; }
  .conditions-list li { text-align: left; }
  
  .footer-links { flex-direction: column; gap: 1rem; align-items: center; }
  
  .modal-content {
    padding: 2rem 1.5rem;
    width: 95%;
  }
  
  .modal-title {
    font-size: 1.2rem;
  }
}
