* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: #fffafa;
  color: #38343d;
  font-family:
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    "Noto Sans JP",
    "Hiragino Kaku Gothic ProN",
    Meiryo,
    sans-serif;
  font-size: 16px;
  line-height: 1.65;
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  display: block;
  max-width: 100%;
}


/* =========================
   Header
========================= */

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, .96);
  border-bottom: 1px solid #f3e6ec;
  backdrop-filter: blur(8px);
}

.site-header-inner {
  width: min(1100px, calc(100% - 30px));
  height: 64px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.site-logo {
  display: flex;
  align-items: center;
  gap: 7px;
  font-weight: 800;
}

.site-logo-icon {
  font-size: 24px;
}

.site-logo-text {
  color: #3d3741;
  font-size: 21px;
  letter-spacing: -.04em;
}

.site-logo-text span {
  color: #ee6d96;
}

.site-nav {
  display: flex;
  gap: 20px;
}

.site-nav a {
  color: #675e69;
  font-size: 14px;
  font-weight: 600;
}

.site-nav a:hover {
  color: #e85f8d;
}


/* =========================
   Main
========================= */

.site-main {
  min-height: 70vh;
}


/* =========================
   Hero
========================= */

.hero {
  padding: 34px 15px 30px;
  background:
    linear-gradient(135deg,
      #fff0f5 0%,
      #fff8ed 50%,
      #f4f1ff 100%);
  border-bottom: 1px solid #f4e6ec;
}

.hero-inner {
  max-width: 720px;
  margin: 0 auto;
  text-align: center;
}

.hero-date {
  margin-bottom: 7px;
  color: #ee6c95;
  font-size: 17px;
  font-weight: 700;
}

.hero-date span {
  font-size: 31px;
  line-height: 1;
}

.hero h1 {
  margin: 0;
  color: #37313a;
  font-size: clamp(25px, 5vw, 36px);
  line-height: 1.35;
  letter-spacing: -.03em;
}

.hero p {
  margin: 8px 0 0;
  color: #766c77;
  font-size: 15px;
}


/* =========================
   Common section
========================= */

.content-section {
  width: min(1080px, calc(100% - 28px));
  margin: 34px auto;
}

.section-heading {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 15px;
  margin-bottom: 16px;
}

.section-label {
  display: block;
  margin-bottom: 2px;
  color: #ec7599;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .11em;
}

.section-heading h2 {
  margin: 0;
  color: #403943;
  font-size: 22px;
  line-height: 1.4;
}

.section-more {
  flex: none;
  color: #d95e85;
  font-size: 13px;
  font-weight: 700;
}


/* =========================
   Person card
========================= */

.person-grid {
  display: grid;
  grid-template-columns:
    repeat(6, minmax(0, 1fr));
  gap: 13px;
}

.person-card {
  min-width: 0;
  overflow: hidden;
  background: #fff;
  border: 1px solid #f0e7eb;
  border-radius: 14px;
  box-shadow:
    0 3px 12px rgba(77, 47, 60, .05);
  transition:
    transform .15s ease,
    box-shadow .15s ease;
}

.person-card:hover {
  transform: translateY(-2px);
  box-shadow:
    0 7px 18px rgba(77, 47, 60, .10);
}

.person-image {
  position: relative;
  width: 100%;
  aspect-ratio: 1 / 1;
  overflow: hidden;
  background: #f5f1f3;
}

.person-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.person-card-body {
  padding: 9px 9px 10px;
}

.person-card h3 {
  overflow: hidden;
  margin: 0;
  color: #39333c;
  font-size: 14px;
  line-height: 1.45;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.person-card p {
  margin: 3px 0 0;
  color: #918690;
  font-size: 12px;
}


/* =========================
   Tomorrow
========================= */

.tomorrow-section {
  padding: 22px;
  background: #fff;
  border: 1px solid #f1e7eb;
  border-radius: 18px;
}

.person-mini-list {
  display: grid;
  grid-template-columns:
    repeat(4, minmax(0, 1fr));
  gap: 10px;
}

.person-mini {
  display: flex;
  min-width: 0;
  align-items: center;
  gap: 9px;
  padding: 7px;
  background: #fff9fb;
  border-radius: 10px;
}

.person-mini img {
  width: 42px;
  height: 42px;
  flex: none;
  object-fit: cover;
  border-radius: 50%;
}

.person-mini span {
  overflow: hidden;
  font-size: 13px;
  font-weight: 600;
  white-space: nowrap;
  text-overflow: ellipsis;
}


/* =========================
   Month navigation
========================= */

.month-nav {
  display: grid;
  grid-template-columns:
    repeat(12, minmax(0, 1fr));
  gap: 7px;
  margin-bottom: 22px;
}

.month-nav a {
  padding: 9px 4px;
  background: #fff;
  border: 1px solid #efdee5;
  border-radius: 9px;
  color: #665d67;
  text-align: center;
  font-size: 13px;
  font-weight: 700;
}

.month-nav a:hover,
.month-nav a.active {
  background: #ef7598;
  border-color: #ef7598;
  color: #fff;
}


/* =========================
   Calendar
========================= */

.birthday-calendar {
  padding: 20px;
  background: #fff;
  border: 1px solid #f0e6ea;
  border-radius: 18px;
}

.birthday-calendar-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 14px;
}

.birthday-calendar-title h3 {
  margin: 0;
  font-size: 18px;
}

.birthday-calendar-title a {
  color: #dc6287;
  font-size: 13px;
  font-weight: 600;
}

.day-grid {
  display: grid;
  grid-template-columns:
    repeat(7, minmax(0, 1fr));
  gap: 7px;
}

.day-grid a {
  display: flex;
  min-height: 55px;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: #fff9fb;
  border-radius: 9px;
}

.day-grid strong {
  font-size: 15px;
}

.day-grid span {
  color: #9b8e97;
  font-size: 10px;
}

.day-grid a.today {
  background:
    linear-gradient(135deg,
      #f47a9d,
      #f49175);
  color: #fff;
}

.day-grid a.today span {
  color: #fff;
}


/* =========================
   Birthday page
========================= */

.birthday-page-header {
  padding: 30px 15px 27px;
  background:
    linear-gradient(135deg,
      #fff0f5,
      #fff8ef);
  text-align: center;
}

.birthday-page-number {
  margin: 0 0 3px;
  color: #e96d93;
  font-size: 14px;
  font-weight: 800;
  letter-spacing: .08em;
}

.birthday-page-header h1 {
  margin: 0;
  color: #3c353e;
  font-size: clamp(23px, 5vw, 32px);
}

.birthday-page-header>p:last-child {
  margin: 7px 0 0;
  color: #7a7079;
  font-size: 14px;
}

.result-heading {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 15px;
}

.result-heading h2 {
  margin: 0;
  font-size: 20px;
}

.result-heading span {
  padding: 3px 9px;
  background: #fff0f5;
  border-radius: 20px;
  color: #d95e86;
  font-size: 12px;
  font-weight: 700;
}


/* =========================
   Day list
========================= */

.day-list {
  display: grid;
  grid-template-columns:
    repeat(2, minmax(0, 1fr));
  gap: 9px;
}

.day-list-item {
  display: flex;
  align-items: center;
  padding: 11px 13px;
  background: #fff;
  border: 1px solid #efe5e9;
  border-radius: 12px;
}

.day-date {
  display: flex;
  width: 44px;
  flex: none;
  align-items: baseline;
  color: #e66c91;
}

.day-date strong {
  font-size: 22px;
  line-height: 1;
}

.day-date span {
  margin-left: 2px;
  font-size: 11px;
}

.day-info {
  display: flex;
  min-width: 0;
  flex: 1;
  flex-direction: column;
}

.day-info strong {
  font-size: 14px;
}

.day-info span {
  color: #91858e;
  font-size: 11px;
}

.day-arrow {
  color: #d5bac4;
  font-size: 24px;
}


/* =========================
   Neighbor
========================= */

.neighbor-days {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  margin-top: 25px;
}

.neighbor-days a {
  padding: 9px 15px;
  background: #fff;
  border: 1px solid #eedfe5;
  border-radius: 20px;
  color: #d95f85;
  font-size: 13px;
  font-weight: 700;
}


/* =========================
   Empty
========================= */

.empty-message {
  padding: 25px;
  background: #fff;
  border-radius: 12px;
  color: #81767f;
  text-align: center;
}


/* =========================
   Footer
========================= */

.site-footer {
  margin-top: 50px;
  padding: 32px 15px;
  background: #463f48;
  color: #d9d1d7;
}

.site-footer-inner {
  max-width: 1080px;
  margin: 0 auto;
  text-align: center;
}

.footer-logo {
  margin-bottom: 4px;
  color: #fff;
  font-size: 19px;
  font-weight: 800;
}

.site-footer p {
  margin: 5px 0;
  font-size: 12px;
}

.copyright {
  opacity: .7;
}


/* =========================
   Tablet
========================= */

@media (max-width: 850px) {

  .person-grid {
    grid-template-columns:
      repeat(4, minmax(0, 1fr));
  }

  .month-nav {
    grid-template-columns:
      repeat(6, minmax(0, 1fr));
  }
}


/* =========================
   Mobile
========================= */

@media (max-width: 600px) {

  body {
    font-size: 15px;
  }

  .site-header-inner {
    width: calc(100% - 22px);
    height: 57px;
  }

  .site-logo-icon {
    font-size: 21px;
  }

  .site-logo-text {
    font-size: 19px;
  }

  .site-nav {
    gap: 11px;
  }

  .site-nav a {
    font-size: 12px;
  }

  .hero {
    padding: 27px 12px 24px;
  }

  .hero-date span {
    font-size: 27px;
  }

  .hero h1 {
    font-size: 25px;
  }

  .hero p {
    font-size: 13px;
  }

  .content-section {
    width: calc(100% - 20px);
    margin: 26px auto;
  }

  .section-heading {
    margin-bottom: 12px;
  }

  .section-heading h2 {
    font-size: 19px;
  }

  /*
     * モバイルでも3列維持。
     * 画像中心サイトなので一覧性を優先。
     */
  .person-grid {
    grid-template-columns:
      repeat(3, minmax(0, 1fr));
    gap: 8px;
  }

  .person-card {
    border-radius: 10px;
  }

  .person-card-body {
    padding: 7px 7px 8px;
  }

  .person-card h3 {
    font-size: 13px;
  }

  .person-card p {
    font-size: 11px;
  }

  .tomorrow-section {
    width: calc(100% - 20px);
    padding: 15px;
  }

  .person-mini-list {
    grid-template-columns:
      repeat(2, minmax(0, 1fr));
  }

  .month-nav {
    grid-template-columns:
      repeat(6, minmax(0, 1fr));
    gap: 5px;
  }

  .month-nav a {
    padding: 8px 2px;
    font-size: 12px;
  }

  .birthday-calendar {
    padding: 13px;
  }

  .day-grid {
    gap: 4px;
  }

  .day-grid a {
    min-height: 49px;
    border-radius: 7px;
  }

  .day-grid strong {
    font-size: 14px;
  }

  .day-grid span {
    font-size: 9px;
  }

  .birthday-page-header {
    padding: 25px 12px 22px;
  }

  .birthday-page-header h1 {
    font-size: 23px;
  }

  .day-list {
    grid-template-columns: 1fr;
    gap: 7px;
  }

  .day-list-item {
    padding: 10px 12px;
  }

  .neighbor-days a {
    padding: 8px 11px;
    font-size: 12px;
  }
}