/* =========================================================
   BASE
========================================================= */

:root {

  /* =========================
     HEADER / FOOTER
     シックな赤系
  ========================= */

  --header-dark: #4b151d;
  --header-mid:  #742632;
  --header-light:#a3475c;

  /* =========================
     見出し
     黒系グラデーション
  ========================= */

  --title-dark:  #1a1a1d;
  --title-mid:   #2d2d33;
  --title-light: #4b4b55;

  /* =========================
     ボタン
     金系
  ========================= */

  --gold-dark:  #b8781e;
  --gold-mid:   #d89d39;
  --gold-light: #f0c56b;

  /* =========================
     共通
  ========================= */

  --text-main: #333;
  --text-sub:  #666;

  --border-soft: #f0e5e7;
  --bg-soft: #fff8f8;

  --shadow-soft: rgba(75, 21, 29, 0.08);

}


/* =========================================================
   BODY
========================================================= */

body {
  margin: 0;
  background: #fff;
  color: var(--text-main);
  font-family:
    "Hiragino Sans",
    "Yu Gothic",
    sans-serif;
}

.wrapper,
.header-inner,
.global-nav-inner {
  width: 95%;
  max-width: 800px;
  margin: 0 auto;
}


/* =========================================================
   HEADER / FOOTER
========================================================= */

.site-header,
.site-footer {
  color: #fff;
  text-align: center;

  background:
    linear-gradient(
      135deg,
      var(--header-dark),
      var(--header-mid),
      var(--header-light)
    );
}

.site-header {
  padding: 34px 20px 28px;
  border-radius: 0 0 24px 24px;
}

.site-footer {
  padding: 26px 16px;
  border-radius: 24px 24px 0 0;
  font-size: 13px;
}

.site-title,
.site-header h1 {
  margin: 0;
  font-size: 34px;
  font-weight: bold;
  letter-spacing: 0.08em;
}

.site-title a {
  color: #fff;
  text-decoration: none;
}

.site-subtitle {
  margin: 10px 0 0;
  font-size: 14px;
  opacity: 0.92;
  letter-spacing: 0.08em;
}


/* =========================================================
   GLOBAL NAV
========================================================= */

.global-nav {
  background: #fff;
  border-bottom: 1px solid #eee;
  box-shadow: 0 2px 8px rgba(0,0,0,0.03);

  position: sticky;
  top: 0;
  z-index: 100;
}

.global-nav-inner {
  display: flex;
  align-items: center;
  gap: 12px;

  overflow-x: auto;
}

.nav-item {
  position: relative;

  display: inline-flex;
  align-items: center;
  justify-content: center;

  min-height: 54px;
  padding: 0 18px;

  color: var(--header-mid);
  text-decoration: none;
  font-weight: bold;
  white-space: nowrap;

  transition: 0.2s;
}

.nav-item:hover {
  color: var(--header-light);
}

.nav-item.current::after {
  content: "";

  position: absolute;
  left: 12px;
  right: 12px;
  bottom: 0;

  height: 3px;
  border-radius: 999px;

  background:
    linear-gradient(
      135deg,
      var(--gold-dark),
      var(--gold-mid),
      var(--gold-light)
    );
}


/* =========================================================
   LEAD
========================================================= */

.lead {
  margin: 28px 0;

  text-align: center;
  line-height: 1.9;
  color: var(--text-sub);
}


/* =========================================================
   CARD
========================================================= */

.card {
  margin-bottom: 28px;

  background: #fff;

  border: 1px solid var(--border-soft);
  border-radius: 18px;

  overflow: hidden;

  box-shadow:
    0 8px 24px var(--shadow-soft);
}

.card h2 {
  margin: 0;
  padding: 16px 20px;

  color: #fff;
  font-size: 20px;

  background:
    linear-gradient(
      135deg,
      var(--title-dark),
      var(--title-mid),
      var(--title-light)
    );
}


/* =========================================================
   FORM
========================================================= */

.form-body {
  padding: 22px;
}

.form-group {
  margin-bottom: 20px;
}

.label-title {
  display: block;

  margin-bottom: 10px;

  font-weight: bold;
  color: #4b151d;
}

.date-selects {
  display: flex;
  gap: 10px;
}

select {
  width: 100%;

  padding: 12px;

  border: 1px solid #e4d5d8;
  border-radius: 10px;

  background: #fff;

  font-size: 16px;
  color: #444;
}

select:focus {
  outline: none;

  border-color: var(--gold-mid);

  box-shadow:
    0 0 0 3px rgba(216,157,57,0.18);
}


/* =========================================================
   BUTTON
========================================================= */

button {
  width: 100%;

  padding: 15px;

  border: none;
  border-radius: 999px;

  cursor: pointer;

  color: #fff;
  font-size: 17px;
  font-weight: bold;
  letter-spacing: 0.05em;

  background:
    linear-gradient(
      135deg,
      var(--gold-dark),
      var(--gold-mid),
      var(--gold-light)
    );

  box-shadow:
    0 8px 20px rgba(184,120,30,0.24),
    inset 0 1px 0 rgba(255,255,255,0.25);

  transition:
    transform 0.2s,
    opacity 0.2s,
    box-shadow 0.2s;
}

button:hover {
  opacity: 0.96;

  transform: translateY(-2px);

  box-shadow:
    0 12px 28px rgba(184,120,30,0.30),
    inset 0 1px 0 rgba(255,255,255,0.25);
}

button:active {
  transform: translateY(0);
}


/* =========================================================
   RESULT
========================================================= */

.result-body {
  padding: 24px;
  line-height: 1.9;
}

.result-title {
  margin: 0 0 18px;

  font-size: 24px;
  color: var(--header-dark);
}

.error {
  color: #b00020;
  font-weight: bold;
}

.back-link {
  margin-top: 28px;
  text-align: center;
}

.back-link a {
  color: var(--header-mid);
  text-decoration: none;
  font-weight: bold;
}


/* =========================================================
   PERSON LIST
========================================================= */

.person-list {
  padding: 20px;

  display: grid;
  grid-template-columns: repeat(2, 1fr);

  gap: 12px;
}

.person-item {
  display: flex;
  align-items: center;
  gap: 10px;

  padding: 14px;

  text-decoration: none;
  color: var(--text-main);

  background: #fff;

  border: 1px solid var(--border-soft);
  border-radius: 14px;

  transition: 0.2s;
}

.person-item:hover {
  transform: translateY(-2px);

  box-shadow:
    0 6px 18px rgba(75,21,29,0.10);
}

.person-id {
  min-width: 28px;
  height: 28px;

  display: flex;
  align-items: center;
  justify-content: center;

  border-radius: 50%;

  color: #fff;
  font-size: 13px;

  background:
    linear-gradient(
      135deg,
      var(--gold-dark),
      var(--gold-mid),
      var(--gold-light)
    );
}

.person-name {
  font-weight: bold;
}


/* =========================================================
   AISHOU DATE
========================================================= */

.aishou-date-wrap {
  display: flex;
  flex-direction: column;

  gap: 14px;

  margin-bottom: 28px;
}

.aishou-date {
  margin: 0;
  padding: 18px 20px;

  border-radius: 16px;
  border: 1px solid #edd6db;

  background:
    linear-gradient(
      135deg,
      rgba(75,21,29,0.04),
      rgba(216,157,57,0.06)
    );

  color: #4b151d;
  font-size: 18px;
  font-weight: bold;
  line-height: 1.8;

  box-shadow:
    0 6px 18px rgba(75,21,29,0.05);
}

.aishou-date-label {
  display: inline-block;

  min-width: 70px;

  margin-right: 10px;
  padding: 5px 12px;

  border-radius: 999px;

  color: #fff;
  font-size: 14px;
  text-align: center;

  background:
    linear-gradient(
      135deg,
      var(--gold-dark),
      var(--gold-mid),
      var(--gold-light)
    );
}
/* =========================================================
   FOOTER MENU
========================================================= */

.footer-inner {
  width: 95%;
  max-width: 800px;
  margin: 0 auto;
}

.footer-nav {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 10px 18px;

  margin-bottom: 18px;
}

.footer-nav a {
  color: #fff;
  text-decoration: none;
  font-size: 14px;
  font-weight: bold;
  opacity: 0.9;
}

.footer-nav a:hover {
  opacity: 1;
  text-decoration: underline;
}

.footer-copy {
  margin: 0;
  font-size: 13px;
  opacity: 0.85;
}
/* =========================================================
   GUIDE CALENDAR
========================================================= */

.calendar-year {
  padding: 20px;

  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

.calendar-month {
  padding: 16px;

  border: 1px solid var(--border-soft);
  border-radius: 16px;

  background: #fff;
}

.calendar-month h3 {
  margin: 0 0 12px;

  color: var(--header-dark);
  font-size: 18px;
  text-align: center;
}

.calendar-days {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 6px;
}

.calendar-day {
  display: flex;
  align-items: center;
  justify-content: center;

  min-height: 34px;

  border-radius: 8px;

  color: var(--text-main);
  text-decoration: none;
  font-size: 14px;
  font-weight: bold;

  background: #fff8f8;
  border: 1px solid #f0e5e7;

  transition: 0.2s;
}

.calendar-day:hover {
  color: #fff;

  background:
    linear-gradient(
      135deg,
      var(--gold-dark),
      var(--gold-mid),
      var(--gold-light)
    );

  transform: translateY(-1px);
}

@media (max-width: 700px) {

  .calendar-year {
    grid-template-columns: 1fr;
    padding: 16px;
  }

}
/* =========================================================
   MOBILE
========================================================= */

@media (max-width: 600px) {

  .site-header {
    padding: 28px 16px 22px;
  }

  .site-title,
  .site-header h1 {
    font-size: 28px;
  }

  .site-subtitle {
    font-size: 12px;
  }

  .nav-item {
    min-height: 48px;
    padding: 0 14px;
    font-size: 14px;
  }

  .date-selects {
    gap: 6px;
  }

  .form-body {
    padding: 18px;
  }

  .person-list {
    grid-template-columns: 1fr;
    padding: 16px;
  }

  .aishou-date {
    padding: 16px;
    font-size: 16px;
  }

  .aishou-date-label {
    display: block;
    width: fit-content;
    margin: 0 0 10px;
  }

}