/* =========================================
  setsubun.css（整理版）
  - #3c3b87 / #6867af / #cab59b / #be8b3a
========================================= */
/* -----------------------------------------
  0) Theme Variables / Base
----------------------------------------- */
.setsubun-page {
  --brand-navy: #3c3b87;
  --brand-purple: #6867af;
  --brand-gold: #cab59b;
  --brand-ochre: #be8b3a;
  --text: #343434;
  --bg: #ffffff;
  --panel: #f8f7f3;
  --border: #e6e6e6;
  color: var(--text);
  background: var(--bg);
}
/* sp-only（既存がなければ保険） */
.sp-only {
  display: none;
}
@media (max-width:768px) {
  .sp-only {
    display: block;
  }
}
/* -----------------------------------------
  1) Hero（全画面＋動画切替）
----------------------------------------- */
#keyvisual-setsubun {
  padding: 0;
}
#keyvisual-setsubun .setsubun-hero {
  position: relative;
  min-height: 100vh;
  height: 100svh;
  overflow: hidden;
  background: #000;
}
/* 背景動画ラッパ（全面） */
#keyvisual-setsubun .setsubun-hero__media {
  position: absolute;
  inset: 0;
  z-index: 0;
}
/* 動画枠：全面表示 */
#keyvisual-setsubun .hero-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
  background: #000;
}
/* 共通：動画をcover */
#keyvisual-setsubun .hero-video__el {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  object-position: center;
  transform: translateZ(0);
}
/* PC/SP 動画切替 */
#keyvisual-setsubun .hero-video__el--sp {
  display: none;
}
#keyvisual-setsubun .hero-video__el--pc {
  display: block;
}
@media (max-width:768px) {
  #keyvisual-setsubun .hero-video__el--pc {
    display: none;
  }
  #keyvisual-setsubun .hero-video__el--sp {
    display: block;
  }
  /* 被写体調整（必要に応じて） */
  #keyvisual-setsubun .hero-video__el--sp {
    object-position: center 35%;
  }
}
/* 暗幕（可読性） */
#keyvisual-setsubun .setsubun-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(to bottom, rgba(0, 0, 0, .70) 0%, rgb(0 0 0 / 25%) 40%, rgba(0, 0, 0, .75) 100%);
}
/* 前面コンテンツ */
#keyvisual-setsubun .setsubun-hero__content {
  position: relative;
  z-index: 2;
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 18px;
  max-width: 1100px;
  margin: 0 auto;
  padding: 120px 6% 60px;
  color: #fff;
}
@media (max-width:768px) {
  #keyvisual-setsubun .setsubun-hero__content {
    justify-content: flex-start;
    padding: 92px 5% 36px;
    gap: 14px;
  }
}
/* Hero見出し */
.setsubun-hero__kicker {
  display: inline-block;
  font-size: 1.2rem;
  letter-spacing: .06em;
  color: #fff;
  background: var(--brand-ochre);
  padding: 4px 10px;
  border-radius: 999px;
  margin: 0 0 10px;
}
.setsubun-hero__title {
  font-size: 2.8rem;
  line-height: 1.35;
  letter-spacing: .03em;
  margin: 0 0 14px;
  border-left: 6px solid var(--brand-navy);
  padding-left: 12px;
}
@media (max-width:768px) {
  .setsubun-hero__title {
    font-size: 2.3rem;
  }
}
/* Hero メタ */
.setsubun-hero__meta {
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
  margin: 0 0 14px;
}
.hero-meta {
  margin: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: baseline;
}
.hero-meta__label {
  display: inline-flex;
  align-items: center;
  min-width: 5.5em;
  font-size: 1.2rem;
  font-weight: 800;
  color: #fff;
  background: rgba(255, 255, 255, .18);
  border: 1px solid rgba(255, 255, 255, .25);
  border-radius: 999px;
  padding: 3px 10px;
  justify-content: center;
}
.hero-meta__value {
  font-size: 1.5rem;
  font-weight: 800;
  line-height: 1.6;
}
@media (min-width:769px) {
  .setsubun-hero__meta {
    grid-template-columns: 1fr 1fr;
  }
}
/* Hero CTA（押せるのはここだけ強く） */
#keyvisual-setsubun .setsubun-hero__actions {
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
  margin-top: 10px;
}
@media (min-width:769px) {
  #keyvisual-setsubun .setsubun-hero__actions {
    grid-template-columns: 1fr 1fr;
  }
}
.hero-btn {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 4px;
  text-decoration: none;
  border-radius: 14px;
  border: 1px solid transparent;
  padding: 14px 16px;
  min-height: 64px;
  box-sizing: border-box;
  align-items: center;
  color: #fff;
}
.hero-btn__label {
  font-size: 1.7rem;
  font-weight: 900;
  letter-spacing: .02em;
}
.hero-btn__sub {
  font-size: 1.2rem;
  opacity: .92;
  letter-spacing: .04em;
}
.hero-btn--tel {
  background: #cf2e2e;
  border-color: #cf2e2e;
}
.hero-btn--access {
  background: var(--brand-navy);
  border-color: var(--brand-navy);
}
.hero-btn:active {
  opacity: .88;
}
.setsubun-hero__note {
  font-size: 1.2rem;
  margin: 0;
  color: rgba(255, 255, 255, .85);
}
/* 動きが苦手な方 */
@media (prefers-reduced-motion:reduce) {
  #keyvisual-setsubun .hero-video__el {
    animation: none;
  }
  .hero-btn {
    transition: none;
  }
}
/* =========================
   ヒーロー下部：スクロール誘導
========================= */
.setsubun-scroll-hint {
  position: absolute;
  left: 50%;
  bottom: 22px;
  transform: translateX(-50%);
  z-index: 3;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  pointer-events: none; /* 誤タップ防止 */
  color: #fff;
}
/* テキスト */
.setsubun-scroll-hint__text {
  font-size: 1.3rem;
  letter-spacing: 0.12em;
  opacity: 0.85;
  white-space: nowrap;
}
/* 下矢印（CSSのみ） */
.setsubun-scroll-hint__arrow {
  width: 22px;
  height: 22px;
  border-right: 2px solid #cab59b;
  border-bottom: 2px solid #cab59b;
  transform: rotate(45deg);
  animation: scrollArrow 1.8s ease-in-out infinite;
}
/* アニメーション */
@keyframes scrollArrow {
  0% {
    transform: rotate(45deg) translate(0, 0);
    opacity: 0;
  }
  30% {
    opacity: 1;
  }
  60% {
    transform: rotate(45deg) translate(6px, 6px);
    opacity: 1;
  }
  100% {
    opacity: 0;
  }
}
/* SP微調整 */
@media screen and (max-width: 768px) {
  .setsubun-scroll-hint {
    bottom: 56px;
  }
  .setsubun-scroll-hint__text {
    font-size: 1.2rem;
  }
}
/* 動きが苦手な方への配慮 */
@media (prefers-reduced-motion: reduce) {
  .setsubun-scroll-hint__arrow {
    animation: none;
  }
}
/* -----------------------------------------
  2) Section（本文ブロック）※定義はここだけ
----------------------------------------- */
.setsubun-section {
  margin: 58px 0 0;
  padding: 22px 18px;
  /* background: #fff; */
}
@media (min-width:769px) {
  .setsubun-section {
    margin: 0;
    padding: 26px 22px;
  }
}
.setsubun-section__head {
  margin: 0 0 28px;
  /* display: flex; */
  justify-content: center;
}
/* セクション見出し（非ボタン化） */
.setsubun-heading {
  line-height: 1.4;
  margin-bottom: 3rem;
  letter-spacing: .02em;
  padding: 0 20px 5px;
  position: relative;
  border-bottom: 3px #cac7da solid;
  font-size: 2rem;
  /* width: 80%; */
  max-width: 540px;
  display: inline-block;
  vertical-align: middle;
}
.setsubun-heading:before {
  content: "";
  background: #cab59b;
  width: 20%;
  height: 3px;
  position: absolute;
  left: 40%;
  bottom: -3px;
}
h2#intro-title {
  padding-bottom: 25px;
  position: relative;
  letter-spacing: 5px;
  text-indent: 5px;
  text-align: center;
  font-size: 28px;
}
.setsubun-intro {
  background-image: url("../images/setsubun/2026-bg.png"), url("../images/setsubun/2026-bg.png");
  background-repeat: no-repeat;
  background-position: left top, right top;
  background-size: 305px, 305px;
  padding: 20px 0;
  /* text-align: center; */
}
/* 本文 */
.setsubun-card p {
  margin: 0;
  font-size: 1.6rem;
  line-height: 1.9;
}
@media (max-width:768px) {
  .setsubun-card p {
    font-size: 1.5rem;
  }
  article#setsubun {
    background-position: left top, right top;
    background-size: 154px, 154px;
  }
  .setsubun-heading {
    /* width: 90%; */
  }
}
.setsubun-card p + p {
  margin-top: 10px;
}

/* =========================
  住職紹介
========================= */
.setsubun-priest__card{
  display: grid;
  gap: 14px;
}

/* 画像 */
.setsubun-priest__media{
  margin: 0;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 12px;
  overflow: hidden;
}

.setsubun-priest__media img{
  width: 100%;
  height: auto;
  display: block;
}

.setsubun-priest__caption{
  margin: 0;
  font-size: 1.2rem;
  color: #666;
  padding: 10px 12px;
  border-top: 1px solid var(--border);
}

/* 文章 */
.setsubun-priest__lead{
  margin: 0 0 12px;
  font-size: 1.6rem;
  line-height: 1.9;
}

/* プロフィールDL */
.setsubun-priest__dl{
  margin: 0 0 12px;
  padding: 12px 12px;
  border-radius: 12px;
  background: rgba(104, 103, 175, 0.06);
  display: grid;
  gap: 8px;
}

.setsubun-priest__row{
  display: grid;
  grid-template-columns: 2.5em 1fr;
  gap: 10px;
  align-items: baseline;
}

.setsubun-priest__row dt{
  margin: 0;
  font-weight: 800;
  color: var(--brand-navy);
}

.setsubun-priest__row dd{
  margin: 0;
  color: #343434;
  line-height: 1.7;
}

/* PC：画像左、文章右 */
@media screen and (min-width: 769px){
  .setsubun-priest__card{
    grid-template-columns: 360px 1fr;
    gap: 18px;
    align-items: start;
  }
}

/* 折りたたみ全体 */
.setsubun-priest__details {
  margin: 0;
}

/* summary：リンク風だがボタン化しない */
.setsubun-priest__summary {
  cursor: pointer;
  font-size: 1.4rem;
  font-weight: 700;
  color: #3c3b87;
  list-style: none;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

/* Safariの三角を消す */
.setsubun-priest__summary::-webkit-details-marker {
  display: none;
}

/* 開閉アイコン（＋／－） */
.setsubun-priest__summary::after {
  content: "＋";
  font-weight: 900;
  font-size: 1.4rem;
}

.setsubun-priest__details[open] .setsubun-priest__summary::after {
  content: "－";
}

/* 中身 */
.setsubun-priest__detail-body {
  margin-top: 10px;
  font-size: 1.45rem;
  line-height: 1.8;
  color: #343434;
}

/* 段落間 */
.setsubun-priest__detail-body p {
  margin: 0 0 8px;
}

.setsubun-priest__detail-body p:last-child {
  margin-bottom: 0;
}



/* -----------------------------------------
  3) Timeline（スケジュール）gap0/角丸/二重border防止
----------------------------------------- */
ol.setsubun-timeline {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0;
}
ol.setsubun-timeline li {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 16px;
  background: #fffaf2;
  border: 1px solid #e5dcc8;
  border-bottom: 0; /* 二重防止 */
}
ol.setsubun-timeline li:first-child {
  border-top-left-radius: 10px;
  border-top-right-radius: 10px;
}
ol.setsubun-timeline li:last-child {
  border-bottom: 1px solid #e5dcc8; /* 末尾のみ復活 */
  border-bottom-left-radius: 10px;
  border-bottom-right-radius: 10px;
}
ol.setsubun-timeline .timeline-time {
  flex-shrink: 0;
  min-width: 64px;
  padding: 6px 10px;
  text-align: center;
  font-weight: 800;
  font-size: 1.4rem;
  color: #fff;
  background: var(--brand-purple);
  border-radius: 999px;
}
ol.setsubun-timeline .timeline-content {
  font-size: 1.5rem;
  line-height: 1.6;
  color: #343434;
}
@media (max-width:768px) {
  ol.setsubun-timeline li {
    padding: 12px 14px;
  }
  ol.setsubun-timeline .timeline-time {
    min-width: 58px;
    font-size: 1.3rem;
  }
  ol.setsubun-timeline .timeline-content {
    font-size: 1.4rem;
  }
}
/* 強調（0：赤字、1〜4：強調） */
.setsubun-timeline .desc-alert {
  color: #c62828;
  font-weight: 800;
}
.setsubun-timeline .desc-emphasis {
  color: var(--brand-navy);
  font-weight: 900;
  position: relative;
}
.setsubun-timeline .desc-emphasis::after {
  content: "";
  display: block;
  margin-top: 4px;
  width: 3.5em;
  height: 3px;
  background: rgba(104, 103, 175, .35);
  border-radius: 2px;
}
/* -----------------------------------------
  4) Lists / Labels（非ボタン化）
----------------------------------------- */
.setsubun-list {
  margin: 10px 0 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 0;
}
.setsubun-list > li {
  margin: 0;
  padding: 10px 12px;
  border: 1px solid #eee7db;
  border-top: 0;
  background: #fff;
  font-size: 1.5rem;
  line-height: 1.8;
  border-radius: 0;
}
.setsubun-list > li:first-child {
  border-top: 1px solid #eee7db;
  border-top-left-radius: 12px;
  border-top-right-radius: 12px;
}
.setsubun-list > li:last-child {
  border-bottom-left-radius: 12px;
  border-bottom-right-radius: 12px;
}
/* タグ（span） */
.term {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 3px 10px;
  border-radius: 999px;
  /* background:#f3f0fb; */
  /* border:1px solid #d8d2f0; */
  /* color:var(--brand-navy); */
  font-weight: 900;
  font-size: 1.2rem;
  line-height: 1.6;
  white-space: nowrap;
  box-shadow: none;
  cursor: default;
}
.desc {
  display: inline;
  font-size: 1.4rem;
  color: #343434;
  font-weight: 500;
}


/* =========================
   特別祈祷：申込み・受付（DLの見た目整理）
   ========================= */

/* セクション内のDLを“情報カード”として統一 */
.setsubun-section[aria-labelledby="howto-title"] .setsubun-dl {
  margin-top: 12px;
  display: grid;
  gap: 12px;
}

/* 1行ずつ：dt/dd を2カラム化（SPは縦） */
.setsubun-section[aria-labelledby="howto-title"] .setsubun-dl__row {
  border: 1px solid #eee7db;
  background: #fff;
  border-radius: 12px;
  padding: 14px 14px;
  display: grid;
  grid-template-columns: 160px 1fr;
  gap: 10px 14px;
  align-items: start;
}

/* dt：ラベル */
.setsubun-section[aria-labelledby="howto-title"] .setsubun-dl__row dt {
  margin: 0;
  font-size: 1.45rem;
  font-weight: 900;
  color: #3c3b87;
  line-height: 1.5;
}

/* dd：本文 */
.setsubun-section[aria-labelledby="howto-title"] .setsubun-dl__row dd {
  margin: 0;
  font-size: 1.5rem;
  line-height: 1.8;
  color: #343434;
}

/* ddが複数ある行（お申込み方法）を“箇条書き風”に整形 */
.setsubun-section[aria-labelledby="howto-title"] .setsubun-dl__row dd + dd {
  margin-top: 6px;
  padding-top: 6px;
  border-top: 1px dashed #eee7db;
}

/* “必要事項”の ul を、このブロック専用に“チェックリスト”化
   ※既存 .setsubun-list のボタンっぽさを打ち消す */
.setsubun-section[aria-labelledby="howto-title"] .setsubun-dl__row .setsubun-list {
  margin: 8px 0 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 6px;
}

/* li：カード化をやめ、軽量な行スタイルへ */
.setsubun-section[aria-labelledby="howto-title"] .setsubun-dl__row .setsubun-list > li {
  border: 0;
  background: transparent;
  border-radius: 0;
  padding: 0 0 0 22px;
  position: relative;
  font-size: 1.5rem;
  line-height: 1.7;
  color: #343434;
}

/* チェックアイコン（疑似要素） */
.setsubun-section[aria-labelledby="howto-title"] .setsubun-dl__row .setsubun-list > li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.55em;
  width: 12px;
  height: 12px;
  border-radius: 50px;
  background: #eee7db;
  /* border: 1px solid rgba(60, 59, 135, 0.25); */
  /* transform: translateY(-50%); */
}

/* リード文を少し締める */
.setsubun-section[aria-labelledby="howto-title"] .setsubun-lead {
  margin: 0 0 12px;
  font-size: 1.6rem;
  line-height: 1.9;
}

/* 注意文（下部） */
.setsubun-section[aria-labelledby="howto-title"] .setsubun-note {
  margin-top: 12px;
  padding: 10px 12px;
  border-radius: 10px;
  background: rgba(104, 103, 175, 0.06);
  font-size: 1.35rem;
  line-height: 1.8;
  color: #555;
}

/* SP：2カラムを縦に */
@media (max-width: 768px) {
  .setsubun-section[aria-labelledby="howto-title"] .setsubun-dl__row {
    grid-template-columns: 1fr;
    gap: 6px;
    padding: 12px 12px;
  }

  .setsubun-section[aria-labelledby="howto-title"] .setsubun-dl__row dt {
    font-size: 1.4rem;
  }

  .setsubun-section[aria-labelledby="howto-title"] .setsubun-dl__row dd {
    font-size: 1.45rem;
  }
}
/* 裏取り導線（参考リンク） */
.setsubun-reference {
  margin-top: 14px;
  font-size: 1.3rem;
  line-height: 1.7;
  color: #666;
}

.setsubun-reference a {
  color: #3c3b87;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.setsubun-reference a:hover {
  opacity: 0.85;
}


/* -----------------------------------------
  5) Table（厄年）
----------------------------------------- */
.setsubun-table-wrap {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  border-radius: 10px;
  border: 1px solid #e6e6e6;
}
.setsubun-table {
  width: 100%;
  min-width: 620px;
  border-collapse: collapse;
  background: #fff;
}
.setsubun-table th, .setsubun-table td {
  border-bottom: 1px solid #eee7db;
  padding: 10px 12px;
  text-align: left;
  font-size: 1.4rem;
  line-height: 1.6;
  vertical-align: top;
  box-shadow: none;
}
.setsubun-table thead th {
  background: #f7f5ff;
  color: var(--brand-navy);
  font-weight: 900;
}
.setsubun-table tbody tr:nth-child(even) td, .setsubun-table tbody tr:nth-child(even) th {
  background: #fffaf2;
}
.setsubun-table tr:last-child th, .setsubun-table tr:last-child td {
  border-bottom: 0;
}
/* -----------------------------------------
  6) Lottery（豆まき・福引き：パンフ風）
----------------------------------------- */
.setsubun-lottery-media {
  margin: 6px 0 14px;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  align-items: start;
}
.setsubun-lottery-photo {
  margin: 0;
  width: 100%;
  aspect-ratio: 1/1;
  border-radius: 999px;
  overflow: hidden;
  border: 1px solid #e8e8e8;
  background: #fff;
}
.setsubun-lottery-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.setsubun-lottery-badge {
  grid-column: 1/-1;
  display: grid;
  grid-template-columns: 88px 1fr;
  gap: 12px;
  align-items: center;
  padding: 12px;
  border-radius: 14px;
  background: rgba(104, 103, 175, .06);
}
.setsubun-lottery-badge__icon {
  width: 88px;
  height: 88px;
  border-radius: 16px;
  overflow: hidden;
  background: #fff;
  border: 1px solid rgba(202, 181, 155, .55);
  display: grid;
  place-items: center;
}
.setsubun-lottery-badge__icon img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.setsubun-lottery-badge__text {
  margin: 0;
  font-weight: 900;
  color: var(--brand-navy);
  font-size: 1.6rem;
  line-height: 1.25;
  letter-spacing: .02em;
}
@media (min-width:769px) {
  .setsubun-lottery-media {
    grid-template-columns: 180px 180px 1fr;
    gap: 16px;
    align-items: center;
  }
  .setsubun-lottery-photo {
    width: 180px;
    height: 180px;
    aspect-ratio: auto;
  }
  .setsubun-lottery-badge {
    grid-column: auto;
    grid-template-columns: 96px 1fr;
    padding: 14px;
    min-height: 180px;
  }
  .setsubun-lottery-badge__icon {
    width: 96px;
    height: 96px;
  }
}
/* -----------------------------------------
  7) Kikkyo intro（画像＋テキスト）
----------------------------------------- */
.kikkyo-intro {
  margin-top: 12px;
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 12px 14px;
  border-radius: 14px;
  background: rgb(246 246 250);
}
.kikkyo-intro__image {
  margin: 0;
  width: 96px;
  height: 96px;
  flex-shrink: 0;
  border-radius: 8px;
  overflow: hidden;
}
.kikkyo-intro__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.kikkyo-intro__text {
  margin: 0;
  font-size: 1.6rem;
  font-weight: 900;
  color: var(--brand-navy);
  line-height: 1.4;
  letter-spacing: .04em;
}
@media (min-width:769px) {
  .kikkyo-intro {
    gap: 18px;
    padding: 14px 18px;
  }
  .kikkyo-intro__image {
    width: 120px;
    height: 120px;
  }
  .kikkyo-intro__text {
    font-size: 2rem;
  }
}
/* -----------------------------------------
  9) Feature（この行事について：画像＋縦ラベル）
----------------------------------------- */
.setsubun-feature {
  margin-top: 18px;
  display: flex;
  flex-direction: column;
  gap: 18px;
  padding: 0;
  list-style: none;
}
.setsubun-feature__item {
  display: grid;
  grid-template-columns: 1fr 420px;
  gap: 22px;
  align-items: center;
}
.setsubun-feature__title {
  margin: 0 0 8px;
  font-size: 1.8rem;
  line-height: 1.4;
}
.setsubun-feature__desc {
  margin: 0;
  font-size: 1.5rem;
  line-height: 1.9;
  color: #333;
}
.setsubun-feature__media {
  position: relative;
  margin: 0;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid rgba(0, 0, 0, .08);
  background: #fff;
}
.setsubun-feature__media img {
  display: block;
  width: 100%;
  height: auto;
}
.setsubun-feature__label {
  position: absolute;
  top: 12px;
  right: 12px;
  writing-mode: vertical-rl;
  text-orientation: mixed;
  min-height: 180px;
  text-align: center;
  letter-spacing: 14px;
  font-weight: 800;
  font-size: 1.3rem;
  padding: 10px 8px;
  color: #fff;
  border: 1px solid rgba(255, 255, 255, .35);
  box-shadow: 0 6px 16px rgba(0, 0, 0, .18);
}
.setsubun-feature__label--gold {
  background: #c9a14a;
}
.setsubun-feature__label--green {
  background: #7b9a53;
}
.setsubun-feature__label--blue {
  background: #4a86a8;
}
.setsubun-feature__label--navy {
  background: #4b4f86;
}
@media (max-width:768px) {
  .setsubun-feature__item {
    grid-template-columns: 1fr;
    gap: 10px;
  }
  .setsubun-feature__label {
    top: 8px;
    right: 10px;
    font-size: 2rem;
    /* padding: 8px 7px; */
    min-height: 160px;
    letter-spacing: 8px;
  }
}
/* -----------------------------------------
  10) “押せる”ものだけ強化（リンク/ボタン）
----------------------------------------- */
a.btn-map {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 16px;
  border-radius: 14px;
  font-weight: 900;
  text-decoration: none;
  border: 2px solid transparent;
}
/* FAQ */
.setsubun-faq {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 10px 12px;
}
.setsubun-faq + .setsubun-faq {
  margin-top: 10px;
}
.setsubun-faq summary {
  cursor: pointer;
  font-size: 1.6rem;
  font-weight: 900;
  color: var(--brand-navy);
  outline: none;
}
.setsubun-faq__body {
  margin-top: 10px;
}
.setsubun-note {
  margin-top: 12px;
  font-size: 1.3rem;
  color: #555;
  line-height: 1.8;
}
/* =========================
   祈祷札のご案内（画像＋名称）
========================= */
.setsubun-ofuda {
  background: #fff;
}
/* 3列（PC）→ 1列（SP） */
.setsubun-ofuda-grid {
  margin-top: 14px;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}
.setsubun-ofuda-card {
  text-align: center;
  padding: 14px 12px 12px;
  background: #fff;
  border-left: 1px solid rgba(60, 59, 135, 0.18);
}
.setsubun-ofuda-card:last-child {
  border-right: 1px solid rgba(60, 59, 135, 0.18);
}
.setsubun-ofuda-card__title {
  margin: 0 0 10px;
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--brand-navy);
  letter-spacing: 0.06em;
}
.setsubun-ofuda-card__media {
  margin: 0 auto 10px;
  width: min(240px, 72%);
  aspect-ratio: 1 / 1;
  border-radius: 999px; /* 添付イメージ風の丸背景 */
  background: #e9e9ee; /* グレーの円 */
  display: grid;
  place-items: center;
  overflow: hidden;
}
.setsubun-ofuda-card__media img {
  width: 100%;
  height: auto;
  display: block;
  filter: drop-shadow(0 6px 10px rgba(0, 0, 0, 0.12));
}
.setsubun-ofuda-card__meta {
  margin: 0;
  font-size: 1.3rem;
  line-height: 1.6;
  color: #555;
}
/* SP */
@media screen and (max-width: 768px) {
  .setsubun-ofuda-grid {
    grid-template-columns: 1fr;
    gap: 14px;
  }
  .setsubun-ofuda-card__media {
    width: min(240px, 68%);
  }
  .setsubun-ofuda-card {
    border-left: none;
    border-top: 1px solid rgba(60, 59, 135, 0.18);
  }
  .setsubun-ofuda-card:last-child {
    border-right: none;
    border-bottom: 1px solid rgba(60, 59, 135, 0.18);
  }
}
/* =========================
   祈祷札・特別祈祷 申込みCTA
========================= */
.setsubun-apply {
  background: #fffdf7;
}
.setsubun-apply-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 18px;
  margin-top: 14px;
}
/* カード */
.setsubun-apply-card {
  background: #e5dcc8;
  /* border-radius: 14px; */
  padding: 18px 16px;
  border-left: 6px solid #cab59b;
}
.setsubun-apply-card__title {
  margin: 0 0 12px;
  font-size: 1.8rem;
  font-weight: 800;
  color: #343434;
}
/* 定義リスト */
.setsubun-apply-dl {
  margin: 0;
}
.setsubun-apply-row {
  display: grid;
  grid-template-columns: 90px 1fr;
  gap: 10px;
  padding: 10px 0;
  border-bottom: 1px dashed #e5dcc8;
}
.setsubun-apply-row:last-child {
  border-bottom: none;
}
.setsubun-apply-dl dt {
  font-weight: 700;
  color: #000;
}
.setsubun-apply-dl dd {
  margin: 0;
  font-size: 1.5rem;
  line-height: 1.7;
}
/* テキスト */
.setsubun-apply-text {
  margin: 0 0 14px;
  font-size: 1.5rem;
  line-height: 1.8;
}
/* アクション */
.setsubun-apply-actions {
  display: grid;
  gap: 12px;
}
/* Webボタン */
.setsubun-apply-btn--web {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 16px;
  border-radius: 12px;
  background: #e15b4f;
  color: #fff;
  font-size: 1.6rem;
  font-weight: 800;
  text-decoration: none;
}
/* 電話 */
.setsubun-apply-tel {
  display: block;
  text-align: center;
  padding: 14px 12px;
  border-radius: 14px;
  background: #fff;
  border: 1px solid #eee;
  text-decoration: none;
}
.setsubun-apply-tel__num {
  display: block;
  font-size: 2.2rem;
  font-weight: 900;
  color: #3c3b87;
  letter-spacing: 0.06em;
}
.setsubun-apply-tel__note {
  display: block;
  font-size: 1.2rem;
  color: #555;
  margin-top: 4px;
}
/* PC：2カラム */
@media screen and (min-width: 769px) {
  .setsubun-apply-grid {
    grid-template-columns: 1fr 1fr;
    gap: 22px;
  }
  .setsubun-apply-card {
    padding: 22px 20px;
  }
}
/* -----------------------------------------
  8) Year / Pill grid
----------------------------------------- */
.setsubun-subblock {
  margin-top: 16px;
  padding-top: 6px;
  border-top: 1px dashed var(--brand-gold);
}
.setsubun-year-grid {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
}
.setsubun-year-grid li {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 8px;
  font-size: 1.45rem;
  font-weight: 800;
  color: #343434;
  text-align: center;
}
.setsubun-pill-grid {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}
.setsubun-pill-grid li {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  /* padding: 8px 38px 8px 16px; */
  border-radius: 999px;
  border: 1px solid rgba(60, 59, 135, 0.25);
  background: rgba(60, 59, 135, 0.06);
  font-size: 1.45rem;
  font-weight: 700;
  color: #3c3b87;
  text-align: center;
  line-height: 1.4;
}
@media (min-width:769px) {
  .setsubun-year-grid {
    grid-template-columns: repeat(6, minmax(0, 1fr));
  }
  .setsubun-pill-grid {
    grid-template-columns: repeat(5, minmax(0, 1fr));
  }
}
@media (max-width:768px) {
  .setsubun-year-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
  .setsubun-pill-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
/* =====================================================
   年間祈祷：ピル型 + ツールチップ（details / summary）
   - PC：hover / focus で表示
   - SP：タップで開閉
   ===================================================== */
/* --- ラッパー（li） --- */
.setsubun-pill-grid--tip .pill-tip {
  position: relative;
  padding: 0; /* li 側の padding は使わない */
  /* background: none; */
  /* border: none; */
}
/* --- details（挙動管理） --- */
.pill-tip__details {
  position: relative;
}
/* --- summary：見た目は既存ピルと同一 --- */
.pill-tip__summary {
  list-style: none;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  width: 100%;
  min-height: 48px;
  padding: 8px 14px;
  border-radius: 999px;
  /* border: 1px solid rgba(60, 59, 135, 0.25); */
  /* background: rgba(60, 59, 135, 0.06); */
  /* color: #3c3b87; */
  /* font-size: 1.45rem; */
  /* font-weight: 800; */
  /* text-align: center; */
  /* white-space: nowrap; */
}
/* Safari の三角を非表示 */
.pill-tip__summary::-webkit-details-marker {
  display: none;
}
/* フォーカス可視化（キーボード対応） */
.pill-tip__summary:focus-visible {
  outline: 2px solid rgba(104, 103, 175, 0.35);
  outline-offset: 3px;
}
/* --- 「説明あり」のサイン（i バッジ） --- */
.pill-tip__icon {
  display: inline-grid;
  place-items: center;
  width: 18px;
  height: 18px;
  margin-left: 4px;
  border-radius: 999px;
  border: 1px solid rgba(60, 59, 135, 0.35);
  background: #fff;
  font-size: 12px;
  font-weight: 900;
  line-height: 1;
}
/* open 時の軽い変化（状態が分かる） */
.pill-tip__details[open] .pill-tip__icon {
  background: rgba(104, 103, 175, 0.10);
  border-color: rgba(104, 103, 175, 0.55);
}
/* --- ツールチップ本体 --- */
.pill-tip__popover {
  position: absolute;
  left: 50%;
  top: calc(100% + 10px);
  transform: translateX(-50%);
  /* ★ここが重要：shrink-to-fit を防ぐ */
  width: min(205px, 85vw); /* 画面内に収める */
  max-width: min(200px, 85vw);
  /* もう少し狭いのを許容するなら↓を追加 */
  min-width: min(200px, 85vw);
  padding: 12px 14px;
  border-radius: 12px;
  border: 1px solid rgba(0, 0, 0, .12);
  background: #fff;
  color: #343434;
  font-size: 1.35rem;
  line-height: 1.7;
  /* 折り返しは自然に */
  white-space: normal;
  word-break: normal; /* ★break-word/anywhere を弱める */
  overflow-wrap: break-word; /* ★必要十分な範囲に */
  box-shadow: 0 10px 24px rgba(0, 0, 0, .12);
  z-index: 10;
  display: none;
}
/* 吹き出し三角はそのままでOK */
.pill-tip__popover::before {
  content: "";
  position: absolute;
  top: -6px;
  left: 50%;
  transform: translateX(-50%) rotate(45deg);
  width: 10px;
  height: 10px;
  background: #fff;
  border-left: 1px solid rgba(0, 0, 0, .12);
  border-top: 1px solid rgba(0, 0, 0, .12);
}
/* --- SP：タップで表示（details[open]） --- */
.pill-tip__details[open] .pill-tip__popover {
  display: block;
}
/* --- PC：hover / focus でも表示 --- */
@media (hover: hover) and (pointer: fine) {
  .pill-tip__details:hover .pill-tip__popover, .pill-tip__summary:focus-visible + .pill-tip__popover {
    display: block;
  }
}
/* CTA（押しやすさ重視） */
.setsubun-cta {
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
  margin: 0 0 10px;
}
.setsubun-btn {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 4px;
  text-decoration: none;
  text-align: center;
  border-radius: 14px;
  border: 1px solid transparent;
  padding: 12px 14px;
  min-height: 60px;
  box-sizing: border-box;
}
.setsubun-btn__label {
  font-size: 1.7rem;
  font-weight: 800;
  letter-spacing: 0.02em;
}
.setsubun-btn__sub {
  font-size: 1.2rem;
  opacity: 0.92;
  letter-spacing: 0.04em;
}
.setsubun-btn--tel {
  background: #cf2e2e;
  border-color: #cf2e2e;
  color: #fff;
}
.setsubun-btn--access {
  background: var(--brand-navy);
  border-color: var(--brand-navy);
  color: #fff;
}
.setsubun-btn--form {
  background: #ffffff;
  border-color: var(--brand-gold);
  color: var(--brand-navy);
}
.setsubun-btn--google {
  background: #ffffff;
  border-color: var(--border);
  color: var(--text);
}
.setsubun-btn:active {
  opacity: 0.88;
}
.setsubun-access__actions {
  grid-template-columns: 1fr 1fr;
  margin-top: 12px;
  display: grid;
  gap: 10px;
}
@media screen and (max-width: 768px) {
  .setsubun-access__actions {
    grid-template-columns: 1fr;
  }
}


/* =========================
   setsubun：申込フォーム（CF7）
========================= */

#setsubun-entry .page-contents .page-head{
  width: 100%;
    height: 330px;
    text-align: center;
    background-repeat: no-repeat;
    background-size: cover;
    background-position: center;
    position: relative;
    background: url(../images/setsubun/bg-page-setsubun.jpg) center center / cover;
}

.setsubun-form{
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 18px 16px;
}

.setsubun-form__lead p{
  margin: 0 0 8px;
  font-size: 1.5rem;
  line-height: 1.8;
}
.setsubun-form__note{
  color: #666;
  font-size: 1.3rem;
}

.setsubun-form__group{
  margin: 18px 0 0;
  padding: 14px 12px;
  border: 1px solid rgba(202,181,155,0.45);
  border-radius: 12px;
  background: rgba(202,181,155,0.12);
}
.setsubun-form__legend{
  font-weight: 900;
  color: var(--brand-navy);
  font-size: 1.5rem;
  padding: 0 6px;
}

.setsubun-form__grid{
  margin-top: 18px;
  display: grid;
  grid-template-columns: 1fr;
  gap: 14px;
}

.setsubun-form__field{
  display: grid;
  gap: 6px;
}
.setsubun-form__field--full{
  grid-column: 1 / -1;
}

.setsubun-form__label{
  font-weight: 900;
  color: #343434;
  font-size: 1.4rem;
  display: flex;
  align-items: center;
  gap: 8px;
}
.setsubun-form__req{
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 2px 8px;
  border-radius: 999px;
  font-size: 1.1rem;
  font-weight: 900;
  color: #fff;
  background: var(--brand-ochre);
}

.setsubun-form input[type="text"],
.setsubun-form input[type="email"],
.setsubun-form input[type="tel"],
.setsubun-form textarea,
.setsubun-form select{
  width: 100%;
  box-sizing: border-box;
  border: 1px solid #ddd;
  border-radius: 12px;
  padding: 12px 12px;
  font-size: 16px; /* iOSズーム対策 */
  line-height: 1.5;
  background: #fff;
}

.setsubun-form textarea{
  min-height: 140px;
  resize: vertical;
}

.setsubun-form__controls{
  margin-top: 8px;
}
.setsubun-form__checks{
  display: flex;
  flex-wrap: wrap;
  gap: 10px 14px;
}
.setsubun-form__checks .wpcf7-list-item{
  margin: 0;
}
.setsubun-form__checks label{
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 1.4rem;
  line-height: 1.6;
  padding: 8px 10px;
  border-radius: 999px;
  border: 1px solid rgba(60,59,135,0.22);
  background: rgba(60,59,135,0.06);
  color: var(--brand-navy);
}
.setsubun-form__checks input{
  transform: translateY(1px);
}

.setsubun-form__hint{
  margin: 10px 0 0;
  font-size: 1.3rem;
  color: #666;
  line-height: 1.7;
}

.setsubun-form__agree{
  margin-top: 18px;
  padding-top: 12px;
  border-top: 1px dashed rgba(202,181,155,0.7);
}
.setsubun-form__agree .wpcf7-list-item{
  margin: 0;
}
.setsubun-form__agree label{
  font-size: 1.4rem;
  line-height: 1.6;
}

.setsubun-form__actions{
  margin-top: 16px;
}
.setsubun-form__submit{
  width: 100%;
  border: 0;
  border-radius: 14px;
  padding: 14px 14px;
  font-weight: 900;
  font-size: 1.6rem;
  background: var(--brand-navy);
  color: #fff;
  cursor: pointer;
}
.setsubun-form__submit:active{
  opacity: .92;
}

/* CF7：エラー/送信メッセージ */
.setsubun-form .wpcf7-not-valid-tip{
  margin-top: 6px;
  font-size: 1.2rem;
  color: #c62828;
}
.setsubun-form .wpcf7-response-output{
  margin: 16px 0 0;
  border-radius: 12px;
  padding: 12px 12px;
  font-size: 1.4rem;
}

/* PC：2カラム */
@media (min-width: 769px){
  .setsubun-form{
    padding: 22px 22px;
  }
  .setsubun-form__grid{
    grid-template-columns: 1fr 1fr;
    gap: 14px 16px;
  }
}
span.wpcf7-form-control.wpcf7-checkbox{
    display: inline-flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

/* =========================
   フォーム placeholder の視認性調整
========================= */

/* 共通 placeholder 色（薄く） */
.setsubun-form ::placeholder {
  color: #aaa;          /* 薄いグレー */
  opacity: 1;           /* Safari対策 */
  font-weight: 400;
}

/* WebKit（Safari / iOS） */
.setsubun-form ::-webkit-input-placeholder {
  color: #aaa;
  font-weight: 400;
}

/* Firefox */
.setsubun-form ::-moz-placeholder {
  color: #aaa;
  opacity: 1;
  font-weight: 400;
}

/* IE / Edge（旧） */
.setsubun-form :-ms-input-placeholder {
  color: #aaa;
  font-weight: 400;
}

/* 入力中・フォーカス時は通常文字色 */
.setsubun-form input:focus::placeholder,
.setsubun-form textarea:focus::placeholder {
  color: #ccc;          /* さらに薄くして視線誘導を弱める */
}
