/* ========================================
   卒業袴ページ 追加コンテンツ
======================================== */

.hakama-rental-types {
  background: #f8f5ef;
}

.hakama-page-nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  margin: 32px 0 40px;
}

.hakama-page-nav a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 9px 18px;
  border: 1px solid #7d8f67;
  border-radius: 999px;
  background: #fff;
  color: #465538;
  font-weight: 700;
  text-decoration: none;
  transition: background-color .2s ease, color .2s ease;
}

.hakama-page-nav a:hover,
.hakama-page-nav a:focus-visible {
  background: #7d8f67;
  color: #fff;
}

.hakama-style-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
}

.hakama-style-card {
  position: relative;
  display: flex;
  flex-direction: column;
  padding: 32px;
  border: 1px solid #dcd5ca;
  border-radius: 14px;
  background: #fff;
  box-shadow: 0 8px 24px rgba(52, 45, 35, .06);
}

.hakama-style-card--featured {
  border: 2px solid #7d8f67;
}

.hakama-style-card__label {
  align-self: flex-start;
  margin: 0 0 12px;
  padding: 5px 12px;
  border-radius: 999px;
  background: #edf1e8;
  color: #526344;
  font-size: 13px;
  font-weight: 700;
}

.hakama-style-card h3 {
  margin: 0 0 16px;
  color: #2f372a;
  font-size: clamp(21px, 2.2vw, 27px);
  line-height: 1.45;
}

.hakama-style-card > p:not(.hakama-style-card__label) {
  margin: 0 0 18px;
  line-height: 1.9;
}

.hakama-style-card__points {
  margin: 0 0 22px;
  padding: 18px 20px 18px 40px;
  background: #faf8f4;
  line-height: 1.8;
}

.hakama-style-card__note {
  color: #675f55;
  font-size: 14px;
}

.hakama-style-card .child-btn {
  margin-top: auto;
}

.hakama-rental-types__other,
.hakama-rental-types__cta,
.hakama-knowledge__check {
  margin-top: 32px;
  padding: 28px 32px;
  border-radius: 12px;
  background: #fff;
}

.hakama-rental-types__other h3,
.hakama-knowledge__check h3 {
  margin: 0 0 12px;
  color: #465538;
  font-size: 21px;
}

.hakama-rental-types__other p,
.hakama-rental-types__cta p,
.hakama-knowledge__check p {
  margin: 0;
  line-height: 1.9;
}

.hakama-rental-types__cta {
  border: 1px solid #d9d1c5;
  text-align: center;
}

.hakama-button-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 14px;
  margin-top: 22px;
}

.hakama-knowledge {
  background: #fff;
}

.hakama-choice-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
  margin-top: 38px;
}

.hakama-choice-card {
  padding: 28px;
  border-left: 4px solid #7d8f67;
  background: #f8f5ef;
}

.hakama-choice-card__number {
  margin: 0 0 8px;
  color: #7d8f67;
  font-size: 14px;
  font-weight: 800;
  letter-spacing: .12em;
}

.hakama-choice-card h3 {
  margin: 0 0 12px;
  color: #2f372a;
  font-size: 20px;
}

.hakama-choice-card p:last-child {
  margin: 0;
  line-height: 1.85;
}

.hakama-knowledge__check {
  border: 1px solid #d9d1c5;
  background: #faf8f4;
}

.hakama-knowledge__check ul {
  margin: 16px 0;
  padding-left: 1.5em;
  line-height: 1.85;
}

.hakama-history {
  margin-top: 28px;
  border: 1px solid #d9d1c5;
  border-radius: 10px;
  background: #fff;
}

.hakama-history summary {
  position: relative;
  padding: 20px 54px 20px 24px;
  color: #465538;
  font-weight: 700;
  cursor: pointer;
  list-style: none;
}

.hakama-history summary::-webkit-details-marker {
  display: none;
}

.hakama-history summary::after {
  content: "+";
  position: absolute;
  top: 50%;
  right: 24px;
  transform: translateY(-50%);
  font-size: 24px;
  font-weight: 400;
}

.hakama-history[open] summary::after {
  content: "−";
}

.hakama-history__content {
  padding: 0 24px 22px;
  line-height: 1.9;
}

.hakama-history__content p {
  margin: 0 0 12px;
}

.hakama-history__content p:last-child {
  margin-bottom: 0;
}

.hakama-knowledge__buttons {
  margin-top: 30px;
}

@media (max-width: 768px) {
  .hakama-page-nav {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
    margin: 24px 0 30px;
  }

  .hakama-page-nav a {
    padding: 8px 10px;
    font-size: 13px;
    text-align: center;
  }

  .hakama-style-grid,
  .hakama-choice-grid {
    grid-template-columns: 1fr;
  }

  .hakama-style-card,
  .hakama-choice-card,
  .hakama-rental-types__other,
  .hakama-rental-types__cta,
  .hakama-knowledge__check {
    padding: 22px 18px;
  }

  .hakama-button-row {
    flex-direction: column;
  }

  .hakama-button-row .child-btn,
  .hakama-style-card .child-btn {
    width: 100%;
  }
}

