@charset "UTF-8";
/* 星告の結び時：フロントページ限定スタイル */
.marriage-front {
  --mf-ink: #503b55;
  --mf-muted: #715e70;
  --mf-accent: #935b77;
  --mf-gold: #b88746;
  --mf-line: #eadce3;
  --mf-soft: #fcf5f7;
  width: 100%;
  color: var(--mf-ink);
}
.marriage-front *, .marriage-front *::before, .marriage-front *::after { box-sizing: border-box; }
.marriage-front__main { max-width: 1100px; margin: 0 auto; padding: 40px 24px 66px; }
.marriage-front h1, .marriage-front h2, .marriage-front h3 { color: var(--mf-ink); line-height: 1.5; }
.marriage-front p { line-height: 1.9; }
/* フロント冒頭：中央に装飾のあるhero.webpを背景に使用 */
.marriage-front__intro {
  text-align: center;
  padding: 54px 24px;
  border-bottom: 1px solid var(--mf-line);
  background-image: linear-gradient(rgba(255, 255, 255, .40), rgba(255, 255, 255, .40)),
    url("/wp-content/uploads/fortune-images/front/hero.webp");
  background-repeat: no-repeat;
  background-position: center center;
  background-size: cover;
  border-radius: 12px;
}
.marriage-front__eyebrow { margin: 0 0 9px; color: var(--mf-gold); font-size: .75rem; letter-spacing: .22em; text-transform: uppercase; }
.marriage-front__intro h1 { margin: 0 0 14px; font-size: clamp(1.45rem, 3vw, 2.05rem); font-weight: 600; letter-spacing: .03em; }
.marriage-front__intro > p:last-child { max-width: 770px; margin: 0 auto; color: var(--mf-muted); }
.marriage-front__section { margin-top: 52px; }
.marriage-front__section-heading { display: flex; align-items: baseline; gap: 14px; margin-bottom: 14px; flex-wrap: wrap; }
.marriage-front__step { color: var(--mf-gold); font-size: .77rem; font-weight: 700; letter-spacing: .10em; white-space: nowrap; }
.marriage-front__section h2 { font-size: clamp(1.35rem, 2.5vw, 1.75rem); margin: 0; font-weight: 600; }
.marriage-front__section > p { margin: 0 0 23px; }
.marriage-front__fortune { padding: 24px; background: #fdfdfd; border: 1px solid var(--mf-line); border-radius: 12px; }
.marriage-front__year-tabs { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 18px; }
.marriage-front__year-tab { border: 1px solid #d8c4ce; border-radius: 7px; background: #fff; color: var(--mf-accent); font: inherit; padding: 9px 25px; font-weight: 600; cursor: pointer; }
.marriage-front__year-tab.is-active { background: var(--mf-accent); color: #fff; border-color: var(--mf-accent); }
.marriage-front__year-tab:focus-visible, .marriage-front a:focus-visible { outline: 3px solid #9b6ac0; outline-offset: 3px; }
.marriage-front__year-panel[hidden] { display: none !important; }
.marriage-front__year-panel h3 { margin: 0 0 15px; font-size: 1.15rem; }
.marriage-front__sign-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; }
.marriage-front__sign { display: flex; justify-content: center; align-items: center; gap: 7px; min-height: 55px; padding: 9px; border: 1px solid var(--mf-line); border-radius: 7px; background: white; color: var(--mf-ink); text-decoration: none; transition: border-color .2s, background-color .2s; }
.marriage-front__sign:hover { border-color: var(--mf-accent); background: #fffafd; }
.marriage-front__sign-symbol { color: var(--mf-accent); font-size: 1.3rem; line-height: 1; }
.marriage-front__note { color: var(--mf-muted); margin: 17px 0 0; font-size: .87rem; }
.marriage-front__cards { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 25px; }
.marriage-front__card { overflow: hidden; background: #fff; border: 1px solid var(--mf-line); border-radius: 11px; box-shadow: 0 4px 16px rgba(80, 59, 85, .06); }
.marriage-front__card-image { display: block; aspect-ratio: 16 / 9; background: linear-gradient(135deg, #f8dee3, #ede4f8); overflow: hidden; }
.marriage-front__card-image img { display: block; width: 100%; height: 100%; object-fit: cover; }
.marriage-front__card-placeholder { display: flex; width: 100%; height: 100%; align-items: center; justify-content: center; font-size: 4rem; color: #b38eab; }
.marriage-front__card-body { padding: 20px 22px 23px; }
.marriage-front__card-body h3 { margin: 0 0 8px; font-size: 1.3rem; }
.marriage-front__card-body p { margin: 0 0 18px; color: var(--mf-muted); }
.marriage-front__card-link { display: inline-block; background: var(--mf-accent); border: 1px solid var(--mf-accent); border-radius: 6px; color: #fff !important; text-decoration: none; padding: 10px 17px; font-weight: 600; }
.marriage-front__card-link:hover { background: #73435e; }
/* ABOUT：日取り占いカードとの間隔を確保 */
.marriage-front__about {
  margin-top: 48px;
  padding: 30px;
  background: var(--mf-soft);
  border: 1px solid var(--mf-line);
  border-radius: 12px;
}
.marriage-front__about > h2 {
  margin: 0 0 25px;
  text-align: center;
  color: #65405c;
  font-size: 1.4rem;
}
/* PC：3列 */
.front-about-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}
.front-about-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 10px;
  min-width: 0;
}
.front-about-icon {
  color: #956080;
  width: 42px;
  height: 42px;
  flex-shrink: 0;
}
.front-about-icon svg {
  display: block;
  width: 100%;
  height: 100%;
}
.front-about-item h3 {
  margin: 0 0 6px;
  font-size: 1rem;
  color: #65405c;
}
.marriage-front__about .front-about-item p {
  margin: 0;
  font-size: .85rem;
  line-height: 1.7;
}
/* 補足 */
.marriage-front__about .front-about-note {
  border-top: 1px solid #ead9e1;
  margin: 24px 0 0;
  padding-top: 20px;
  font-size: .85rem;
  line-height: 1.8;
  text-align: center;
}
.marriage-front__about .front-about-source {
  margin: 12px 0 0;
  font-size: .75rem;
  line-height: 1.7;
  text-align: center;
  color: #806b79;
}

.marriage-front__fineprint { padding-top: 9px; font-size: .85rem; color: var(--mf-muted); }
@media (max-width: 760px) {
  .marriage-front__main { padding: 27px 16px 45px; }
  .marriage-front__section { margin-top: 38px; }
  .marriage-front__intro { padding: 34px 15px; background-position: center center; }
  .marriage-front__fortune { padding: 17px 14px; }
  .marriage-front__sign-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
  .marriage-front__sign { flex-direction: column; gap: 3px; padding: 9px 3px; font-size: .88rem; }
  .marriage-front__cards { grid-template-columns: 1fr; gap: 17px; }
  .marriage-front__about { margin-top: 38px; padding: 21px 18px; }
}
@media (max-width: 390px) {
  .marriage-front__year-tab { flex: 1; padding: 9px 12px; }
}
/* スマートフォン：縦並び */
@media (max-width: 600px) {
  .marriage-front__about {
    padding: 20px;
  }
  .marriage-front__about > h2 {
    font-size: 1.2rem;
    margin-bottom: 22px;
  }
  .front-about-grid {
    grid-template-columns: 1fr;
    gap: 22px;
  }
  .front-about-item {
    flex-direction: row;
    align-items: center;
    text-align: left;
    gap: 16px;
  }
  .front-about-icon {
    width: 38px;
    height: 38px;
  }
  .front-about-note,
  .marriage-front__about .front-about-source {
    text-align: left;
  }
}
