/* ===== THEME DETAIL PAGES ===== */

/* --- Nav overrides for theme pages --- */
.gnavi {
  background: var(--white);
}

.gnavi-inner {
  justify-content: flex-end;
}

.gnavi-top-link {
  font-size: 18px;
  font-weight: 700;
  line-height: 60px;
  position: absolute;
  left: 120px;
  z-index: 1;
  top: 0;
}

.gnavi-link {
  border-bottom: none;
}

/* --- Mobile menu close button --- */
.mobile-menu-close {
  position: absolute;
  top: 16px;
  right: 20px;
  background: none;
  border: none;
  font-size: 32px;
  color: var(--black);
  cursor: pointer;
  line-height: 1;
  padding: 4px;
}

/* wavy divider: hidden on desktop, shown on mobile */
.wavy-divider { display: none; }

/* --- Theme Tabs --- */
.theme-tabs {
  display: flex;
  justify-content: center;
  gap: 30px;
  padding: 80px 20px 0;
  flex-wrap: wrap;
}

.theme-tab {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 140px;
  height: 60px;
  font-size: 22px;
  font-weight: 700;
  border-radius: 10px;
  transition: opacity 0.2s;
}

.theme-tab:hover {
  opacity: 0.8;
}

.theme-tab-1 { background: var(--teal-light); }
.theme-tab-2 { background: var(--blue-light); }
.theme-tab-3 { background: var(--yellow-light); }
.theme-tab-4 { background: var(--green-light); }
.theme-tab-5 { background: var(--blue-soft); }

/* No active indicator per Figma - tabs are plain colored rectangles */

/* --- SP Theme Selector (hidden on desktop) --- */
.theme-select-sp {
  display: none;
}

/* --- Page Layout --- */
.theme-page {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 48px 0;
}

/* --- Main Card --- */
.theme-card {
  width: 1080px;
  max-width: calc(100% - 40px);
  padding: 40px 57px;
  border-radius: 28px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
}

.theme-card-1 { background: var(--teal-light); }
.theme-card-2 { background: var(--blue-light); }
.theme-card-3 { background: var(--yellow-light); }
.theme-card-4 { background: var(--green-light); }
.theme-card-5 { background: var(--blue-soft); }

/* --- Header --- */
.theme-header {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.theme-header-label {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.theme-header-num {
  font-size: 25px;
  font-weight: 700;
  line-height: 1.6;
}

.theme-header-title {
  font-size: 25px;
  font-weight: 700;
  line-height: 1.6;
  margin: 0;
}

.theme-header-body {
  display: flex;
  gap: 40px;
  align-items: flex-start;
}

.theme-header-icon {
  flex-shrink: 0;
  width: 105px;
}

.theme-header-icon img {
  width: 105px;
  height: 120px;
}

.theme-header-text {
  flex: 1;
}

.theme-header-desc {
  font-size: 18px;
  font-weight: 500;
  line-height: 1.78;
  margin-bottom: 10px;
}

.theme-header-note {
  font-size: 14px;
  font-weight: 500;
  line-height: 1.71;
}

/* --- Team Section --- */
.team-section {
  width: 100%;
}

.team-label {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 144px;
  height: 48px;
  background: var(--blue);
  color: var(--white);
  font-size: 25px;
  font-weight: 700;
  border-radius: 5px;
  margin-bottom: 20px;
}

.team-heading {
  font-size: 25px;
  font-weight: 700;
  color: var(--blue);
  line-height: 1.6;
  margin-bottom: 10px;
}

.team-vision-name {
  font-size: 18px;
  font-weight: 700;
  line-height: 1.78;
  margin-bottom: 4px;
}

.team-text {
  font-size: 18px;
  font-weight: 500;
  line-height: 1.78;
  margin-bottom: 24px;
}

/* --- Phase Cards --- */
.phase-card {
  background: var(--white);
  border-radius: 10px;
  padding: 40px 33px;
  width: 100%;
}

.phase-card h4 {
  font-size: 22px;
  font-weight: 700;
  line-height: 1.6;
  margin-bottom: 12px;
}

.phase-card p {
  font-size: 18px;
  font-weight: 500;
  line-height: 1.78;
}

.phase-arrow {
  display: flex;
  justify-content: center;
  padding: 8px 0;
}

.phase-arrow::after {
  content: '';
  display: block;
  width: 0;
  height: 0;
  border-left: 44.5px solid transparent;
  border-right: 44.5px solid transparent;
  border-top: 40px solid var(--blue);
}

/* --- Members --- */
.members-section {
  padding-top: 50px;
  width: 100%;
}

.members-list {
  font-size: 18px;
  font-weight: 500;
  line-height: 1.78;
}

/* --- Team Divider --- */
.team-divider {
  width: 100%;
  max-width: 965px;
  padding: 50px 0;
  display: flex;
  justify-content: center;
}

.team-divider img {
  width: 100%;
  height: auto;
}

/* ===== RESPONSIVE: Tablet ===== */
@media (max-width: 1200px) {
  .theme-card {
    width: 100%;
    max-width: calc(100% - 40px);
    padding: 36px 40px;
  }

  .theme-tabs {
    gap: 20px;
  }

  .theme-tab {
    width: 120px;
    height: 52px;
    font-size: 20px;
  }
}

/* ===== RESPONSIVE: Mobile ===== */
@media (max-width: 768px) {
  /* Hide horizontal tabs on mobile, show dropdown and wavy divider instead */
  .theme-tabs {
    display: none;
  }
  .wavy-divider {
    display: block;
    padding: 10px 30px;
  }
  .wavy-divider img {
    width: 100%;
    min-width: 0;
  }

  /* SP Theme Selector dropdown */
  .theme-select-sp {
    display: block;
    padding: 60px 16px 0;
    position: relative;
  }
  .theme-select-btn {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    padding: 16px 20px;
    font-size: 20px;
    font-weight: 700;
    border: none;
    border-radius: 12px;
    cursor: pointer;
    color: #333;
    font-family: inherit;
  }
  .theme-select-btn .chevron {
    font-size: 14px;
    transition: transform 0.2s;
  }
  .theme-select-sp.open .chevron {
    transform: rotate(180deg);
  }
  .theme-select-list {
    display: none;
    flex-direction: column;
    background: var(--white);
    border-radius: 12px;
    box-shadow: 0 4px 16px rgba(0,0,0,0.12);
    overflow: hidden;
    margin-top: 4px;
  }
  .theme-select-sp.open .theme-select-list {
    display: flex;
  }
  .theme-select-item {
    padding: 14px 20px;
    font-size: 18px;
    font-weight: 700;
  }
  .theme-select-item:nth-child(1) { background: var(--teal-light); }
  .theme-select-item:nth-child(2) { background: var(--blue-light); }
  .theme-select-item:nth-child(3) { background: var(--yellow-light); }
  .theme-select-item:nth-child(4) { background: var(--green-light); }
  .theme-select-item:nth-child(5) { background: var(--blue-soft); }
  .theme-select-sp-1 .theme-select-btn { background-color: var(--teal-light); }
  .theme-select-sp-2 .theme-select-btn { background-color: var(--blue-light); }
  .theme-select-sp-3 .theme-select-btn { background-color: var(--yellow-light); }
  .theme-select-sp-4 .theme-select-btn { background-color: var(--green-light); }
  .theme-select-sp-5 .theme-select-btn { background-color: var(--blue-soft); }

  .gnavi-top-link {
    left: 20px;
    line-height: 50px;
  }

  .theme-page {
    padding: 24px 0;
  }

  .theme-card {
    max-width: calc(100% - 32px);
    padding: 24px 16px;
    border-radius: 16px;
    gap: 16px;
  }

  /* Header: center everything, reorder title -> icon -> description */
  .theme-header {
    align-items: center;
    text-align: center;
  }

  .theme-header-label {
    align-items: center;
  }

  .theme-header-num {
    font-size: 20px;
  }

  .theme-header-title {
    font-size: 20px;
  }

  .theme-header-body {
    flex-direction: column;
    align-items: center;
    gap: 16px;
  }

  .theme-header-icon {
    width: 70px;
  }

  .theme-header-icon img {
    width: 70px;
    height: 80px;
  }

  .theme-header-desc {
    font-size: 14px;
    line-height: 1.8;
    text-align: left;
  }

  .theme-header-note {
    font-size: 12px;
    text-align: left;
  }

  /* Team */
  .team-label {
    width: 120px;
    height: 40px;
    font-size: 20px;
    margin-bottom: 16px;
  }

  .team-heading {
    font-size: 20px;
    margin-bottom: 8px;
  }

  .team-vision-name {
    font-size: 16px;
  }

  .team-text {
    font-size: 14px;
    line-height: 1.8;
    margin-bottom: 20px;
  }

  /* Phase Cards - less padding on SP */
  .phase-card {
    padding: 20px 14px;
  }

  .phase-card h4 {
    font-size: 16px;
    margin-bottom: 8px;
  }

  .phase-card p {
    font-size: 14px;
    line-height: 1.8;
  }

  .phase-arrow::after {
    border-left: 30px solid transparent;
    border-right: 30px solid transparent;
    border-top: 28px solid var(--blue);
  }

  /* Members */
  .members-section {
    padding-top: 30px;
  }

  .members-list {
    font-size: 14px;
    line-height: 1.8;
  }

  /* Divider */
  .team-divider {
    padding: 30px 0;
  }
}
