* {
  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;
  }
}

/* =========================
   Birthday more button
========================= */

.birthday-more-wrap {
  margin: 18px 0 4px;
  text-align: center;
}

.birthday-more-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;

  max-width: 100%;
  min-height: 44px;

  padding: 10px 18px;

  background:
    linear-gradient(135deg,
      #fff2f6,
      #f8ecff);

  border: 1px solid #edcbd9;
  border-radius: 999px;

  color: #754c66;

  font-size: 13px;
  font-weight: 600;
  line-height: 1.4;

  text-decoration: none;

  box-shadow:
    0 3px 10px rgba(120, 78, 103, .08);

  transition:
    transform .15s ease,
    box-shadow .15s ease,
    border-color .15s ease;
}

.birthday-more-button:hover {
  transform: translateY(-1px);

  border-color: #dcaec3;

  box-shadow:
    0 5px 14px rgba(120, 78, 103, .13);
}

.birthday-more-button strong {
  color: #a14f78;
  font-weight: 800;
}

.birthday-more-icon {
  font-size: 16px;
  line-height: 1;
}

.birthday-more-arrow {
  margin-left: 2px;

  color: #b36b8d;

  font-size: 20px;
  font-weight: 700;
  line-height: 1;
}


@media (max-width: 600px) {

  .birthday-more-wrap {
    margin-top: 14px;
  }

  .birthday-more-button {
    width: 100%;

    padding: 10px 12px;

    font-size: 12px;
  }

}

/* =========================
   Zodiac
========================= */

.zodiac-intro {
  margin: -2px 0 15px;

  color: #867681;
  font-size: 13px;
  line-height: 1.7;
}


/* 星座一覧 */

.zodiac-nav {
  display: grid;
  grid-template-columns:
    repeat(4, minmax(0, 1fr));

  gap: 8px;
}

.zodiac-nav-item {
  display: grid;

  grid-template-columns:
    auto minmax(0, 1fr);

  grid-template-areas:
    "symbol name"
    "symbol period";

  column-gap: 8px;

  align-items: center;

  min-width: 0;

  padding: 10px 11px;

  background: #fff;

  border: 1px solid #eadfe7;
  border-radius: 11px;

  color: #654e5e;
  text-decoration: none;

  transition:
    transform .15s ease,
    border-color .15s ease,
    background .15s ease;
}

.zodiac-nav-item:hover {
  transform: translateY(-1px);

  background: #fff8fb;
  border-color: #dfbfd0;
}

.zodiac-nav-item.active {
  background:
    linear-gradient(135deg,
      #fff0f6,
      #f7efff);

  border-color: #dcb8ce;
}

.zodiac-nav-symbol {
  grid-area: symbol;

  display: flex;

  width: 34px;
  height: 34px;

  align-items: center;
  justify-content: center;

  background: #f7edf3;

  border-radius: 50%;

  color: #a5527a;

  font-size: 19px;
}

.zodiac-nav-name {
  grid-area: name;

  overflow: hidden;

  font-size: 13px;
  font-weight: 800;

  white-space: nowrap;
  text-overflow: ellipsis;
}

.zodiac-nav-item small {
  grid-area: period;

  color: #9a8993;

  font-size: 9px;
  line-height: 1.3;
}


/* 個別星座 */

.zodiac-period {
  margin: -5px 0 14px;

  color: #91818b;
  font-size: 12px;
}


/* 下部 */

.zodiac-bottom-section {
  margin-top: 22px;
}


/* =========================
   Mobile
========================= */

@media (max-width: 750px) {

  .zodiac-nav {
    grid-template-columns:
      repeat(3, minmax(0, 1fr));

    gap: 6px;
  }

  .zodiac-nav-item {
    grid-template-columns: 28px minmax(0, 1fr);

    column-gap: 6px;

    padding: 8px;
  }

  .zodiac-nav-symbol {
    width: 28px;
    height: 28px;

    font-size: 16px;
  }

  .zodiac-nav-name {
    font-size: 11px;
  }

  .zodiac-nav-item small {
    font-size: 8px;
  }

}


@media (max-width: 480px) {

  .zodiac-nav {
    grid-template-columns:
      repeat(2, minmax(0, 1fr));
  }

}

/* =========================
   Zodiac decade nav
========================= */

.zodiac-decade-wrap {
  margin-top: 16px;
}

.zodiac-decade-label {
  margin-bottom: 7px;

  color: #887781;

  font-size: 11px;
  font-weight: 700;
}

.zodiac-decade-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.zodiac-decade-nav a {
  display: inline-flex;
  align-items: center;
  justify-content: center;

  min-height: 33px;

  padding: 5px 11px;

  background: #fff;

  border: 1px solid #e5d9e1;
  border-radius: 999px;

  color: #715565;

  font-size: 10px;
  font-weight: 700;

  text-decoration: none;

  transition:
    background .15s ease,
    border-color .15s ease,
    color .15s ease;
}

.zodiac-decade-nav a:hover {
  background: #fff5f9;
  border-color: #dcbecf;
}

.zodiac-decade-nav a.active {
  background:
    linear-gradient(135deg,
      #f9dce9,
      #eee1fa);

  border-color: #d6b4c8;

  color: #994d72;

  font-weight: 800;
}


@media (max-width: 600px) {

  .zodiac-decade-wrap {
    margin-top: 13px;
  }

  .zodiac-decade-nav {
    gap: 5px;
  }

  .zodiac-decade-nav a {
    min-height: 31px;

    padding: 4px 9px;

    font-size: 9px;
  }

}

/* =========================
   Pagination
========================= */

.pagination {
  display: flex;
  flex-wrap: wrap;

  align-items: center;
  justify-content: center;

  gap: 5px;

  margin-top: 24px;
}

.pagination a,
.pagination>span {
  display: inline-flex;

  min-width: 34px;
  height: 34px;

  align-items: center;
  justify-content: center;

  padding: 0 8px;

  background: #fff;

  border: 1px solid #e5dce3;
  border-radius: 8px;

  color: #76596a;

  font-size: 11px;
  font-weight: 700;

  text-decoration: none;
}

.pagination a:hover {
  background: #fff4f8;
  border-color: #dcbfd0;
}

.pagination>span.active {
  background:
    linear-gradient(135deg,
      #e9c9d9,
      #dfcff0);

  border-color: #d2adc2;

  color: #6d4056;

  font-weight: 900;
}

.pagination>span:not(.active) {
  min-width: auto;

  padding: 0 3px;

  background: transparent;

  border: 0;

  color: #a4939d;
}

.pagination-prev,
.pagination-next {
  min-width: auto !important;

  padding: 0 12px !important;
}


@media (max-width: 600px) {

  .pagination {
    gap: 4px;

    margin-top: 20px;
  }

  .pagination a,
  .pagination>span {
    min-width: 31px;
    height: 31px;

    padding: 0 6px;

    font-size: 10px;
  }

  .pagination-prev,
  .pagination-next {
    padding: 0 9px !important;
  }

}

/* =========================
   Birthday data note
========================= */

.birthday-data-note {
  margin-top: 28px;
}

.birthday-data-note-inner {
  display: flex;
  align-items: flex-start;
  gap: 10px;

  padding: 13px 15px;

  background: #faf7fb;

  border: 1px solid #eadfe7;
  border-radius: 11px;
}

.birthday-data-note-icon {
  display: flex;
  flex: 0 0 25px;

  width: 25px;
  height: 25px;

  align-items: center;
  justify-content: center;

  margin-top: 1px;

  background: #eee3f1;

  border-radius: 50%;

  color: #89647c;

  font-size: 12px;
  font-weight: 800;
}

.birthday-data-note strong {
  display: block;

  margin-bottom: 4px;

  color: #66545f;

  font-size: 12px;
}

.birthday-data-note p {
  margin: 0;

  color: #897982;

  font-size: 10px;
  line-height: 1.75;
}


@media (max-width: 600px) {

  .birthday-data-note {
    margin-top: 22px;
  }

  .birthday-data-note-inner {
    gap: 8px;

    padding: 11px 12px;
  }

  .birthday-data-note p {
    font-size: 9px;
    line-height: 1.7;
  }

}