:root {
  --brown: #8f6918;
  --green: #5fcd43;
  --white: #ffffff;
  --light-brown: #efd08d;
  --light-green: #edffe8;
  --orange: #ffae00;
  --bg-cream: #fffdf8;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  overflow-x: hidden;
}

body {
  overflow-x: hidden;
  font-family: "Inter", "Noto Sans JP", sans-serif;
  background-color: var(--bg-cream);
  color: var(--brown);
}

section {
  scroll-margin-top: 250px;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  position: relative;
  overflow-x: hidden;
}

/* Header Navigation */
.header {
  z-index: 99;
  position: fixed;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: min(1200px, calc(100% - 40px));
  background-color: var(--green);
  border-radius: 0 0 16px 16px;
  padding: 24px 0;
  text-align: center;
  transition: transform 0.3s ease;
}

.header-hidden {
  transform: translateX(-50%) translateY(-100%);
}

.header-title {
  color: white;
  font-size: 20px;
  font-weight: 500;
  margin-bottom: 24px;
}

.nav-buttons {
  display: flex;
  justify-content: center;
  gap: 20px;
  flex-wrap: wrap;
}

.nav-button {
  background-color: var(--brown);
  border-radius: 16px;
  padding: 12px 40px;
  color: white;
  font-size: 16px;
  font-weight: 500;
  text-decoration: none;
  transition: opacity 0.3s;
}

.nav-button:hover {
  opacity: 0.9;
}

/* Hero Section */
.hero {
  position: relative;
  height: 700px;
  margin-top: 200px;
  border-radius: 20px;
}

.hero-bg {
  position: absolute;
  right: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 20px;
}

.hero-content {
  position: absolute;
  left: 0;
  bottom: -20px;
  padding: 20px 40px;
  max-width: 100%;
}

.hero-title {
  width: fit-content;
  padding: 8px 16px;
  font-size: 64px;
  font-weight: 800;
  color: var(--brown);
  line-height: 1.6;
  background: rgba(255, 255, 255, 0.77);
}

.hero-subtitle {
  width: fit-content;
  padding: 8px 16px;
  font-size: 64px;
  font-weight: 800;
  color: var(--brown);
  line-height: 1.6;
  background: rgba(255, 255, 255, 0.77);
}

/* Section Title */
.section-title {
  text-align: center;
  font-size: 32px;
  font-weight: 900;
  color: var(--brown);
  margin: 160px 0 40px;
}

/* Chat Section */
.chat-section {
  margin: 120px 0;
}

.chat-container {
  max-width: 1000px;
  margin: 0 auto;
}

.chat-row {
  display: flex;
  align-items: flex-start;
  margin-bottom: 20px;
  gap: 20px;
}

.chat-row.right {
  flex-direction: row-reverse;
}

.chat-avatar {
  width: 110px;
  height: 160px;
  object-fit: cover;
  flex-shrink: 0;
  align-self: flex-start;
}

.chat-row:not(.right) .chat-avatar {
  transform: scaleX(-1);
}

.chat-name {
  font-size: 16px;
  font-weight: 500;
  color: var(--brown);
  margin: 0;
  white-space: nowrap;
  align-self: flex-end;
}

.chat-bubble {
  align-self: flex-start;
  border: 4px solid var(--green);
  border-radius: 16px;
  padding: 20px 30px;
  max-width: 520px;
  background: white;
}

.chat-bubble.orange {
  border-color: var(--orange);
}

.chat-bubble p {
  font-size: 20px;
  font-weight: 500;
  line-height: 1.8;
}

/* Transition Section */
.transition-section {
  text-align: center;
  margin: 120px 0 40px;
}

.transition-title {
  font-size: 36px;
  font-weight: 800;
  color: var(--brown);
  line-height: 1.6;
}

.exclamation {
  font-size: 100px;
  color: var(--brown);
  display: inline-block;
  transform: rotate(23deg);
  margin-left: 20px;
}

/* Three Cards Section */
.three-cards {
  display: flex;
  justify-content: space-between;
  gap: 40px;
  padding: 40px 0;
}

.card {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  background-color: var(--green);
  border-radius: 16px;
  width: 360px;
  height: 434px;
  position: relative;
  overflow: visible;
}

.card-header {
  background: white;
  border-radius: 0 0 16px 16px;
  padding: 20px;
  text-align: center;
  width: 227px;
  margin: 0 auto;
}

.card-label {
  font-family: "Zen Kaku Gothic New", sans-serif;
  font-size: 16px;
  font-weight: 700;
  color: var(--brown);
}

.card-title {
  font-size: 24px;
  font-weight: 500;
  color: var(--brown);
}

.card-image {
  width: 200px;
  height: 200px;
  object-fit: cover;
  margin: 20px auto 80px;
  display: block;
}

/* Introduction Section */
.intro-section {
  position: relative;
  max-width: 1207px;
  margin: 200px auto 240px;
  padding-top: 40px;
}

.question-box {
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  background: white;
  border-radius: 16px;
  padding: 20px 60px;
  text-align: center;
  z-index: 1;
}

.question-text {
  font-size: 24px;
  font-weight: 500;
  color: var(--brown);
  white-space: nowrap;
}

/* Introduction Box */
.intro-box {
  border: 4px solid var(--brown);
  border-radius: 16px;
  text-align: center;
  padding: 80px 40px 80px;
}

.intro-subtitle {
  font-size: 24px;
  font-weight: 500;
  color: var(--brown);
  line-height: 1.8;
  margin-bottom: 10px;
}

.intro-title {
  font-size: 36px;
  font-weight: 500;
  color: var(--brown);
}

/* Section Header with Brackets */
.section-header {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  /* gap: 80px; */
  margin: 200px 0 40px;
}

.bracket {
  width: 55px;
  height: 73px;
  border: 4px solid var(--brown);
  border-right: none;
}

.bracket.right {
  border-right: 4px solid var(--brown);
  border-left: none;
}

.section-header-title {
  /* font-size: 32px; */
  font-size: clamp(1.7rem, 3vw, 2.5rem);
  font-weight: 500;
  color: var(--brown);
  text-align: center;
}

.section-label {
  position: absolute;
  top: 0px;
  left: 50%;
  transform: translate(-50%, -50%);
  text-align: center;
  font-size: 16px;
  font-weight: 500;
  color: var(--brown);
  margin-bottom: 10px;
}

/* Schedule Section */
.schedule-section {
  padding: 40px 0;
}

.schedule-container {
  display: flex;
  gap: 40px;
  max-width: 1200px;
  margin: 0 auto;
  align-items: flex-start;
}

.schedule-container.reverse {
  flex-direction: row-reverse;
}

.schedule-chart {
  position: relative;
  width: 563px;
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  gap: 32px;
}

.schedule-activities {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 34px;
  width: 563px;
}

.schedule-tag {
  position: absolute;
  top: 0;
  left: 0;
  background-color: var(--green);
  color: white;
  padding: 8px 30px;
  border-radius: 8px;
  font-size: 20px;
  font-weight: 500;
  display: inline-block;
}

.chart-container {
  border: 4px solid var(--green);
  border-radius: 16px;
  padding: 20px;
  min-height: 400px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.chart-image {
  width: 100%;
  max-height: 350px;
  margin-top: 40px;
  object-fit: contain;
}

.activity-card {
  position: relative;
  background-color: var(--light-brown);
  border-radius: 16px;
  padding: 20px;
  display: flex;
  align-items: center;
  gap: 20px;
  height: 200px;
}

.activity-card:last-child {
  margin-bottom: 0;
}

.activity-card img {
  width: 250px;
  height: 160px;
  object-fit: contain;
  border-radius: 8px;
  margin-left: auto;
}

.activity-label {
  position: absolute;
  left: 16px;
  max-width: 220px;
  width: 100%;
  bottom: 16px;
  background: white;
  padding: 8px 30px;
  border-radius: 8px;
  font-size: 20px;
  font-weight: 500;
  color: var(--brown);
  text-align: center;
}

/* Summary Box */
.summary-box {
  background-color: var(--light-green);
  border: 4px solid var(--green);
  border-radius: 16px;
  padding: 30px 40px;
  margin: 40px auto;
  max-width: 880px;
  display: flex;
  align-items: flex-end;
  gap: 30px;
}

.summary-content {
  flex: 1;
}

.summary-title {
  margin-bottom: 16px;
  font-size: 24px;
  font-weight: 500;
  color: var(--brown);
  line-height: 1.4;
}

.summary-avatar-wrapper {
  display: flex;
  align-items: flex-end;
  gap: 8px;
}

.summary-avatar {
  width: 100px;
  height: 120px;
  object-fit: contain;
}

.summary-name {
  font-size: 20px;
  font-weight: 500;
  color: var(--brown);
}

.summary-text {
  font-size: 16px;
  font-weight: 500;
  color: var(--brown);
  line-height: 1.8;
}

/* CTA Section */
.cta-section {
  border: 4px solid var(--brown);
  border-radius: 16px;
  padding: 60px;
  margin: 60px auto;
  max-width: 1207px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.cta-text {
  font-size: 40px;
  font-weight: 500;
  color: var(--brown);
  line-height: 2;
}

.cta-right {
  text-align: center;
}

.cta-subtitle {
  font-size: 24px;
  font-weight: 500;
  color: var(--brown);
  margin-bottom: 20px;
}

.cta-button {
  background-color: var(--green);
  color: white;
  padding: 20px 60px;
  border-radius: 16px;
  font-size: 24px;
  font-weight: 500;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  border: 4px solid var(--green);
}

.cta-button:hover {
  opacity: 0.9;
}

.cta-button svg {
  width: 30px;
  height: 30px;
}

/* Footer */
.footer {
  background-color: var(--brown);
  border-radius: 16px 16px 0 0;
  padding: 30px;
  text-align: center;
  margin-top: 60px;
}

.footer-text {
  color: white;
  font-size: 16px;
  font-weight: 500;
}

/* Responsive */
@media (max-width: 1200px) {
  .container {
    padding: 0 20px;
  }

  .hero-title,
  .hero-subtitle {
    font-size: 40px;
  }

  .three-cards {
    flex-direction: column;
    align-items: center;
  }

  .schedule-container {
    flex-direction: column;
  }

  .v2 .schedule-chart {
    order: 1;
  }

  .v2 .schedule-activities {
    order: 2;
  }

  .cta-section {
    flex-direction: column;
    text-align: center;
    gap: 40px;
  }
}

@media (max-width: 768px) {
  .nav-buttons {
    align-items: center;
    height: 3vw;
    gap: 8px;
  }

  .nav-button {
    font-size: clamp(8px, 1.5vw, 12px);
    padding: 6px 10px;
    border-radius: 10px;
  }

  .hero {
    height: 420px;
    margin-top: 160px;
  }

  .hero-content {
    padding: 12px 16px;
  }

  .hero-title,
  .hero-subtitle {
    font-size: 24px;
    padding: 6px 12px;
  }

  .section-title {
    font-size: 24px;
  }

  .chat-row {
    flex-direction: column;
    align-items: center;
  }

  .chat-row.right {
    flex-direction: column;
  }

  .chat-bubble {
    max-width: 100%;
  }

  .card {
    width: 100%;
    max-width: 340px;
    height: auto;
    padding-bottom: 24px;
  }

  .card-image {
    margin: 20px auto 20px;
  }

  .schedule-chart {
    width: 100%;
  }

  .schedule-activities {
    width: 100%;
  }

  .v2 .schedule-chart {
    order: 1;
  }

  .v2 .schedule-activities {
    order: 2;
  }

  .activity-label {
    display: inline-block;
    width: auto;
    z-index: 1;
  }
  .activity-card {
    width: 80vw;
    height: auto;
    flex-wrap: wrap;
    justify-content: right;
    align-self: center;
  }

  .activity-card img {
    width: 50%;
    height: auto;
    margin-left: 0;
    z-index: 10;
  }

  .summary-box {
    flex-direction: column;
    align-items: flex-start;
  }

  .cta-text {
    font-size: 24px;
  }

  .chat-name {
    align-self: flex-start;
  }

  .cta-section {
    padding: 32px 20px;
  }
}
