:root {
  --forest: #2f5d50;
  --leaf: #4a8f75;
  --sand: #f6f1e6;
  --stone: #3a3a3a;
  --accent: #d4a04c;
  --card-bg: rgba(255, 255, 255, 0.92);
  --shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "Noto Sans JP", "Montserrat", sans-serif;
  background: var(--sand);
  color: var(--stone);
  line-height: 1.6;
}

.hero {
  position: relative;
  display: grid;
  align-items: center;
  padding: 6rem 1.5rem 4rem;
  min-height: 70vh;
  overflow: hidden;
  background-image: url("images/space Detail（ヒーローセクション）.jpg");
  background-size: cover;
  background-position: center;
  color: white;
  text-align: center;
}

.hero__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(22, 46, 40, 0.45), rgba(74, 143, 117, 0.25));
}

.hero__content {
  position: relative;
  max-width: min(1100px, 100%);
  margin: 0 auto;
  display: grid;
  gap: 2rem;
  padding: 0 1rem;
}

.hero h1 {
  margin: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.35rem;
  text-align: center;
  font-family: "Montserrat", "Noto Sans JP", sans-serif;
}

.hero__title-ja {
  display: block;
  font-size: clamp(2.1rem, 4vw, 3.1rem);
  font-weight: 600;
  letter-spacing: 0.08em;
  white-space: nowrap;
}

.hero__title-en {
  display: block;
  font-size: clamp(1.3rem, 2.6vw, 2rem);
  font-weight: 400;
  letter-spacing: 0.08em;
}

.hero p {
  margin: 0;
  font-size: 1.05rem;
}

.hero__nav {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: clamp(0.6rem, 2vw, 0.85rem);
  width: min(900px, 100%);
  margin: 0 auto;
}

.hero__link {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.25rem;
  padding: 1rem clamp(1rem, 2vw, 1.35rem);
  min-height: 6.2rem;
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
  border-radius: 18px;
  border: 1px solid rgba(47, 93, 80, 0.2);
  color: var(--forest);
  text-decoration: none;
  font-weight: 600;
  text-align: center;
  background: rgba(255, 255, 255, 0.95);
  transition: transform 0.2s ease, background 0.2s ease;
}

.hero__link-ja {
  font-size: 1.05rem;
  letter-spacing: 0.05em;
  overflow-wrap: anywhere;
}

.hero__link-en {
  font-size: 0.9rem;
  font-weight: 500;
  letter-spacing: 0.03em;
  overflow-wrap: anywhere;
}

.hero__link:hover,
.hero__link:focus {
  background: var(--leaf);
  color: white;
  transform: translateY(-2px);
}

main {
  padding: 0 1.5rem 5rem;
  display: grid;
  gap: 4rem;
}

.category-nav {
  padding: 2.5rem 0 0.5rem;
}

.category-nav .hero__nav {
  width: min(1100px, 100%);
}

.category {
  max-width: 1100px;
  margin: 0 auto;
}

.category h2 {
  font-size: clamp(1.75rem, 3vw, 2.2rem);
  color: var(--forest);
  margin-bottom: 1.5rem;
  line-height: 1.3;
}

.card-grid {
  display: grid;
  gap: 1.75rem;
  grid-template-columns: 1fr;
}

@media (min-width: 768px) {
  .card-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (min-width: 1100px) {
  .card-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

.card {
  background: var(--card-bg);
  border-radius: 24px;
  overflow: hidden;
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.card:hover {
  transform: translateY(-6px);
  box-shadow: 0 30px 45px rgba(47, 93, 80, 0.25);
}

.card__image {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
}

.card__body {
  padding: 1.75rem 1.75rem 1.9rem;
  display: flex;
  flex-direction: column;
  gap: 1.2rem;
  flex: 1;
}
.card__description {
  margin: 0;
  display: grid;
  gap: 0.4rem;
  min-height: 7.2rem;
}

.card__description-line {
  margin: 0;
  font-size: 0.98rem;
  color: rgba(58, 58, 58, 0.9);
  line-height: 1.55;
}

.card__description-line--en {
  font-size: 0.94rem;
  color: rgba(58, 58, 58, 0.75);
}


.card__badge {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.35rem 0.85rem;
  border-radius: 999px;
  background: rgba(74, 143, 117, 0.14);
  color: var(--leaf);
  font-weight: 600;
  font-size: 0.82rem;
  letter-spacing: 0.02em;
}

.card__badge span {
  font-size: 0.76rem;
  letter-spacing: 0.12em;
  color: inherit;
}

.card__title {
  font-family: "Montserrat", sans-serif;
  font-size: 1.35rem;
  font-weight: 600;
  color: var(--stone);
  margin: 0;
}

.card__subtitle {
  margin: -0.35rem 0 0;
  font-size: 0.95rem;
  color: rgba(58, 58, 58, 0.7);
}

.card__info {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 0.95rem;
  grid-auto-rows: minmax(3.6rem, auto);
}

.card__info-item {
  display: flex;
  gap: 0.75rem;
  align-items: flex-start;
  min-height: 3.6rem;
}

.card__icon {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  background: rgba(74, 143, 117, 0.14);
  color: var(--leaf);
  display: grid;
  place-items: center;
  flex-shrink: 0;
}

.card__icon svg {
  width: 20px;
  height: 20px;
}

.card__info-text {
  display: grid;
  gap: 0.25rem;
}

.card__info-label {
  font-size: 0.78rem;
  font-weight: 600;
  color: rgba(58, 58, 58, 0.65);
  letter-spacing: 0.05em;
}

.card__info-value {
  font-size: 0.96rem;
  color: rgba(58, 58, 58, 0.92);
  line-height: 1.5;
}

.card__actions {
  margin-top: auto;
  display: flex;
  justify-content: center;
}

.card__button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  padding: 0.85rem 1.5rem;
  border-radius: 999px;
  border: 1.5px solid var(--leaf);
  background: transparent;
  color: var(--leaf);
  font-weight: 600;
  text-decoration: none;
  transition: background 0.2s ease, color 0.2s ease, box-shadow 0.2s ease;
}

.card__button:hover,
.card__button:focus {
  background: var(--leaf);
  color: white;
  box-shadow: 0 12px 25px rgba(74, 143, 117, 0.25);
}

.footer {
  background: #1f3a33;
  color: rgba(255, 255, 255, 0.85);
  text-align: center;
  padding: 2.5rem 1.5rem;
  font-size: 0.95rem;
}

@media (min-width: 900px) {
  .hero__content {
    text-align: center;
  }
}

@media (max-width: 599px) {
  .hero {
    padding: 3.8rem 1.2rem 2.6rem;
    overflow: visible;
    min-height: 60vh;
    background-size: cover;
    background-repeat: no-repeat;
    background-position: center;
    background-color: transparent;
  }

  .hero__content {
    gap: 1.2rem;
    padding: 0;
    justify-items: center;
    text-align: center;
    width: min(100%, 24rem);
  }

  .hero__nav {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    width: 100%;
    max-width: 26rem;
    gap: 0.6rem;
    padding: 0;
    margin: 0 auto;
    justify-content: center;
    justify-items: stretch;
    align-items: stretch;
    grid-auto-rows: 1fr;
  }

  .hero__link {
    min-width: 0;
    width: 100%;
    min-height: 5rem;
    height: 100%;
    padding: 0.7rem 0.75rem;
    gap: 0.16rem;
  }

  .hero__link-ja {
    font-size: 0.9rem;
    letter-spacing: 0.02em;
  }

  .hero__link-en {
    font-size: 0.74rem;
    letter-spacing: 0.018em;
  }

  .hero__title-en {
    font-size: 1.05rem;
  }

  .hero__content > p {
    max-width: 22rem;
    margin: 0 auto;
    font-size: 0.95rem;
    line-height: 1.55;
  }

  .hero__title-ja {
    line-height: 1.18;
    white-space: nowrap;
    font-size: clamp(1.85rem, 7vw, 2.35rem);
    letter-spacing: 0.06em;
  }
}

@media (max-width: 480px) {
  .hero__nav {
    max-width: 22rem;
  }
}

@media (max-width: 360px) {
  .hero__link {
    min-height: 4.6rem;
  }
}

/* ── ハンバーガーメニュー（スマホのみ） ── */

.nav-toggle {
  display: none;
  position: fixed;
  bottom: 1.5rem;
  right: 1.5rem;
  z-index: 200;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: var(--forest);
  border: none;
  cursor: pointer;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
  padding: 0;
  transition: background 0.2s;
}

.nav-toggle:hover {
  background: var(--leaf);
}

.nav-toggle__bar {
  display: block;
  width: 22px;
  height: 2px;
  background: white;
  border-radius: 2px;
  transition: transform 0.3s ease, opacity 0.3s ease;
}

.nav-toggle[aria-expanded="true"] .nav-toggle__bar:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.nav-toggle[aria-expanded="true"] .nav-toggle__bar:nth-child(2) {
  opacity: 0;
}

.nav-toggle[aria-expanded="true"] .nav-toggle__bar:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

.nav-drawer {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 199;
  background: rgba(22, 46, 40, 0.97);
  flex-direction: column;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.25s ease, visibility 0.25s ease;
}

.nav-drawer--open {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.nav-drawer__nav {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
  width: min(340px, 88%);
}

.nav-drawer__link {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.2rem;
  width: 100%;
  padding: 0.9rem 1.25rem;
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: white;
  text-decoration: none;
  text-align: center;
  transition: background 0.2s;
}

.nav-drawer__link:hover,
.nav-drawer__link:focus {
  background: rgba(255, 255, 255, 0.12);
}

.nav-drawer__link-ja {
  font-size: 1.05rem;
  font-weight: 600;
  letter-spacing: 0.04em;
}

.nav-drawer__link-en {
  font-size: 0.8rem;
  font-weight: 400;
  opacity: 0.7;
  letter-spacing: 0.02em;
}

@media (max-width: 599px) {
  .nav-toggle {
    display: flex;
  }

  .nav-drawer {
    display: flex;
  }
}
