@import url('https://fonts.googleapis.com/css2?family=Noto+Serif+JP:wght@400;500;600;700&display=swap');

:root {
  --primary-color: #1A535C;
  --accent-color: #B08B59;
  --dark-color: #2D2D2D;
  --text-light: #FFFFFF;
  --text-muted: #F5F5F5;
  --text-gray: #CCCCCC;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Noto Serif JP', serif;
  background-color: var(--dark-color);
  color: var(--text-light);
  line-height: 1.8;
  overflow-x: hidden;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

/* ===== HERO SECTION ===== */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  background: url('../images/bgc.png') center/cover no-repeat;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
}

.hero-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
  position: relative;
  z-index: 2;
  padding: 80px 0;
}

.hero-text {
  padding-right: 40px;
}

.hero-title {
  font-size: 3.2rem;
  font-weight: 700;
  margin-bottom: 24px;
  line-height: 1.3;
  color: var(--text-light);
}

.hero-title span {
  color: var(--accent-color);
}

.hero-subtitle {
  font-size: 1.2rem;
  color: var(--text-muted);
  margin-bottom: 16px;
  font-weight: 400;
}

.hero-description {
  font-size: 0.95rem;
  color: var(--text-gray);
  margin-bottom: 40px;
  border-left: 3px solid var(--accent-color);
  padding-left: 16px;
}

.hero-image {
  position: relative;
}

.hero-image img {
  width: 100%;
  max-width: 480px;
  border-radius: 12px;
  box-shadow: 0 30px 60px rgba(0, 0, 0, 0.4);
}

.hero-image::before {
  content: '';
  position: absolute;
  top: -20px;
  right: -20px;
  width: 100%;
  height: 100%;
  border: 2px solid var(--accent-color);
  border-radius: 12px;
  z-index: -1;
}

/* ===== CTA BUTTON ===== */
.cta-btn {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  background-color: var(--accent-color);
  color: var(--text-light);
  padding: 18px 40px;
  border-radius: 8px;
  font-size: 1.1rem;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.3s ease;
  border: none;
  cursor: pointer;
  font-family: 'Noto Serif JP', serif;
}

.cta-btn:hover {
  background-color: #9a7a4d;
  transform: translateY(-3px);
  box-shadow: 0 10px 30px rgba(176, 139, 89, 0.3);
}

.cta-btn img {
  width: 28px;
  height: 28px;
}

/* ===== TICKER ===== */
.ticker {
  background-color: var(--dark-color);
  border-top: 1px solid rgba(176, 139, 89, 0.3);
  border-bottom: 1px solid rgba(176, 139, 89, 0.3);
  padding: 16px 0;
  overflow: hidden;
}

.ticker-content {
  display: flex;
  animation: ticker 30s linear infinite;
  white-space: nowrap;
}

.ticker-item {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--accent-color);
  font-size: 0.9rem;
  padding: 0 40px;
}

.ticker-item i {
  font-size: 1rem;
}

@keyframes ticker {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

/* ===== SECTION COMMON ===== */
.section {
  padding: 100px 0;
}

.section-alt {
  background: linear-gradient(180deg, var(--dark-color) 0%, #1a1a1a 100%);
}

.section-primary {
  background: linear-gradient(180deg, var(--primary-color) 0%, var(--dark-color) 100%);
}

.section-title {
  font-size: 2rem;
  font-weight: 600;
  text-align: center;
  margin-bottom: 16px;
  color: var(--text-light);
}

.section-title span {
  color: var(--accent-color);
}

.section-subtitle {
  text-align: center;
  color: var(--text-gray);
  font-size: 1rem;
  margin-bottom: 60px;
}

/* ===== PROGRAM OVERVIEW ===== */
.overview-content {
  max-width: 800px;
  margin: 0 auto;
  text-align: center;
}

.overview-content p {
  font-size: 1.05rem;
  line-height: 2;
  color: var(--text-muted);
  margin-bottom: 24px;
}

.overview-note {
  font-size: 0.85rem;
  color: var(--text-gray);
  background: rgba(26, 83, 92, 0.3);
  padding: 16px 24px;
  border-radius: 8px;
  border-left: 3px solid var(--accent-color);
  text-align: left;
  margin-top: 40px;
}

/* ===== PROFILE SECTION ===== */
.profile-grid {
  display: grid;
  grid-template-columns: 400px 1fr;
  gap: 60px;
  align-items: center;
}

.profile-image {
  position: relative;
}

.profile-image img {
  width: 100%;
  border-radius: 12px;
  filter: grayscale(30%);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.4);
}

.profile-image::after {
  content: '';
  position: absolute;
  bottom: -15px;
  left: -15px;
  width: 100%;
  height: 100%;
  border: 2px solid var(--primary-color);
  border-radius: 12px;
  z-index: -1;
}

.profile-text h3 {
  font-size: 1.8rem;
  margin-bottom: 8px;
  color: var(--accent-color);
}

.profile-text .role {
  font-size: 1rem;
  color: var(--text-gray);
  margin-bottom: 24px;
}

.profile-text p {
  font-size: 1rem;
  line-height: 2;
  color: var(--text-muted);
  margin-bottom: 16px;
}

.profile-quote {
  font-style: italic;
  color: var(--accent-color);
  border-left: 3px solid var(--accent-color);
  padding-left: 20px;
  margin-top: 30px;
  font-size: 1.1rem;
}

/* ===== FEATURES ===== */
.features-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 30px;
}

.feature-card {
  background: rgba(26, 83, 92, 0.2);
  border: 1px solid rgba(176, 139, 89, 0.2);
  border-radius: 12px;
  padding: 40px 30px;
  text-align: center;
  transition: all 0.3s ease;
}

.feature-card:hover {
  transform: translateY(-10px);
  border-color: var(--accent-color);
  background: rgba(26, 83, 92, 0.3);
}

.feature-icon {
  width: 70px;
  height: 70px;
  background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 24px;
}

.feature-icon i {
  font-size: 1.8rem;
  color: var(--text-light);
}

.feature-card h4 {
  font-size: 1.1rem;
  margin-bottom: 12px;
  color: var(--text-light);
}

.feature-card p {
  font-size: 0.9rem;
  color: var(--text-gray);
  line-height: 1.7;
}

/* ===== ALTERNATING SECTIONS ===== */
.alt-section {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
  margin-bottom: 80px;
}

.alt-section:last-child {
  margin-bottom: 0;
}

.alt-section.reverse {
  direction: rtl;
}

.alt-section.reverse > * {
  direction: ltr;
}

.alt-image img {
  width: 100%;
  border-radius: 12px;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.3);
}

.alt-content h3 {
  font-size: 1.6rem;
  margin-bottom: 20px;
  color: var(--text-light);
}

.alt-content h3 span {
  color: var(--accent-color);
}

.alt-content p {
  font-size: 1rem;
  line-height: 2;
  color: var(--text-muted);
}

/* ===== GUIDEBOOK ===== */
.guidebook-grid {
  display: grid;
  grid-template-columns: 450px 1fr;
  gap: 60px;
  align-items: center;
}

.guidebook-image img {
  width: 100%;
  max-width: 400px;
  filter: drop-shadow(0 30px 50px rgba(0, 0, 0, 0.5));
}

.guidebook-content h3 {
  font-size: 1.6rem;
  margin-bottom: 24px;
  color: var(--accent-color);
}

.guidebook-content p {
  font-size: 1rem;
  line-height: 2;
  color: var(--text-muted);
  margin-bottom: 16px;
}

.guidebook-note {
  font-size: 0.85rem;
  color: var(--text-gray);
  background: rgba(45, 45, 45, 0.8);
  padding: 16px 20px;
  border-radius: 8px;
  margin-top: 24px;
}

/* ===== TESTIMONIALS ===== */
.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
}

.testimonial-card {
  background: rgba(26, 83, 92, 0.15);
  border: 1px solid rgba(26, 83, 92, 0.3);
  border-radius: 12px;
  padding: 40px 30px;
  position: relative;
}

.testimonial-card::before {
  content: '"';
  position: absolute;
  top: 20px;
  left: 25px;
  font-size: 4rem;
  color: var(--accent-color);
  opacity: 0.3;
  font-family: Georgia, serif;
  line-height: 1;
}

.testimonial-text {
  font-size: 0.95rem;
  line-height: 1.9;
  color: var(--text-muted);
  margin-bottom: 24px;
  position: relative;
  z-index: 1;
}

.testimonial-author {
  display: flex;
  align-items: center;
  gap: 12px;
  border-top: 1px solid rgba(176, 139, 89, 0.2);
  padding-top: 20px;
}

.testimonial-author .avatar {
  width: 50px;
  height: 50px;
  background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  color: var(--text-light);
}

.testimonial-author .info h5 {
  font-size: 0.95rem;
  color: var(--text-light);
  margin-bottom: 4px;
}

.testimonial-author .info span {
  font-size: 0.8rem;
  color: var(--text-gray);
}

/* ===== FINAL CTA ===== */
.final-cta {
  text-align: center;
  padding: 100px 0;
  background: linear-gradient(180deg, var(--dark-color) 0%, var(--primary-color) 50%, var(--dark-color) 100%);
}

.final-cta h2 {
  font-size: 2.2rem;
  margin-bottom: 16px;
  color: var(--text-light);
}

.final-cta p {
  font-size: 1.1rem;
  color: var(--text-muted);
  margin-bottom: 40px;
}

.cta-note {
  font-size: 0.8rem;
  color: var(--text-gray);
  margin-top: 20px;
}

/* ===== FIXED CTA ===== */
.fixed-cta {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: rgba(45, 45, 45, 0.95);
  backdrop-filter: blur(10px);
  padding: 16px 20px;
  text-align: center;
  z-index: 1000;
  border-top: 1px solid rgba(176, 139, 89, 0.3);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}

.fixed-cta .cta-btn {
  padding: 14px 36px;
  font-size: 1rem;
}

.fixed-cta .note {
  font-size: 0.75rem;
  color: var(--text-gray);
}

/* ===== FOOTER ===== */
.footer {
  background-color: #1a1a1a;
  padding: 40px 0 100px;
  text-align: center;
}

.footer-links {
  display: flex;
  justify-content: center;
  gap: 40px;
  margin-bottom: 24px;
}

.footer-links a {
  color: var(--text-gray);
  text-decoration: none;
  font-size: 0.9rem;
  transition: color 0.3s ease;
}

.footer-links a:hover {
  color: var(--accent-color);
}

.footer-copyright {
  font-size: 0.8rem;
  color: var(--text-gray);
}

/* ===== RESPONSIVE ===== */
@media (max-width: 1024px) {
  .hero-content {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .hero-text {
    padding-right: 0;
  }

  .hero-image {
    order: -1;
  }

  .hero-image img {
    max-width: 350px;
    margin: 0 auto;
    display: block;
  }

  .hero-image::before {
    display: none;
  }

  .features-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .profile-grid {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .profile-image {
    max-width: 350px;
    margin: 0 auto;
  }

  .alt-section {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .alt-section.reverse {
    direction: ltr;
  }

  .guidebook-grid {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .guidebook-image {
    order: -1;
  }

  .testimonials-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  .hero-title {
    font-size: 2.2rem;
  }

  .section {
    padding: 60px 0;
  }

  .section-title {
    font-size: 1.6rem;
  }

  .features-grid {
    grid-template-columns: 1fr;
  }

  .footer-links {
    flex-direction: column;
    gap: 16px;
  }

  .cta-btn {
    padding: 16px 32px;
    font-size: 1rem;
  }
}

/* ===== MODAL ===== */
.modal {
  display: none;
  position: fixed;
  z-index: 2000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.8);
  backdrop-filter: blur(5px);
  overflow-y: auto;
  padding: 40px 20px;
}

.modal.active {
  display: flex;
  align-items: flex-start;
  justify-content: center;
}

.modal-content {
  background: linear-gradient(180deg, #2a2a2a 0%, var(--dark-color) 100%);
  border: 1px solid rgba(176, 139, 89, 0.3);
  border-radius: 16px;
  max-width: 800px;
  width: 100%;
  position: relative;
  box-shadow: 0 30px 60px rgba(0, 0, 0, 0.5);
  margin: auto;
}

.modal-close {
  position: absolute;
  top: 20px;
  right: 24px;
  font-size: 2rem;
  color: var(--text-gray);
  cursor: pointer;
  transition: color 0.3s ease;
  line-height: 1;
  z-index: 10;
}

.modal-close:hover {
  color: var(--accent-color);
}

.modal-content h2 {
  font-size: 1.6rem;
  color: var(--accent-color);
  padding: 30px 40px 20px;
  border-bottom: 1px solid rgba(176, 139, 89, 0.2);
  margin: 0;
}

.modal-body {
  padding: 30px 40px 40px;
  max-height: 70vh;
  overflow-y: auto;
}

.modal-body h3 {
  font-size: 1.1rem;
  color: var(--text-light);
  margin: 28px 0 12px;
}

.modal-body h3:first-of-type {
  margin-top: 0;
}

.modal-body p {
  font-size: 0.95rem;
  color: var(--text-muted);
  line-height: 1.9;
  margin-bottom: 12px;
}

.modal-body ul {
  margin: 12px 0 16px 20px;
  color: var(--text-muted);
}

.modal-body ul li {
  font-size: 0.95rem;
  line-height: 1.9;
  margin-bottom: 6px;
}

.modal-date {
  font-size: 0.85rem;
  color: var(--text-gray);
  margin-top: 30px;
  padding-top: 20px;
  border-top: 1px solid rgba(176, 139, 89, 0.2);
}

/* Law Table */
.law-table {
  width: 100%;
  border-collapse: collapse;
  margin: 20px 0;
}

.law-table tr {
  border-bottom: 1px solid rgba(176, 139, 89, 0.15);
}

.law-table th,
.law-table td {
  padding: 16px 12px;
  text-align: left;
  font-size: 0.95rem;
  vertical-align: top;
}

.law-table th {
  width: 30%;
  color: var(--accent-color);
  font-weight: 500;
  background: rgba(26, 83, 92, 0.15);
}

.law-table td {
  color: var(--text-muted);
  line-height: 1.7;
}

@media (max-width: 768px) {
  .modal {
    padding: 20px 15px;
  }

  .modal-content h2 {
    font-size: 1.3rem;
    padding: 24px 24px 16px;
  }

  .modal-body {
    padding: 24px;
  }

  .modal-close {
    top: 16px;
    right: 18px;
  }

  .law-table th,
  .law-table td {
    display: block;
    width: 100%;
    padding: 12px;
  }

  .law-table th {
    padding-bottom: 8px;
  }

  .law-table td {
    padding-top: 0;
    padding-bottom: 16px;
  }
}

