/* 神社仏閣ブライダル — 部品スタイル（wb = 和婚）
   tokens.css のあとに読み込む。色・余白はすべてトークンを参照。 */

.wb {
  font-family: var(--font-serif-jp);
  color: var(--ink-sumi);
  background: var(--base-white);
  font-size: 16px;
  line-height: 2;
  letter-spacing: 0.02em;
  -webkit-font-smoothing: antialiased;
}
.wb *, .wb *::before, .wb *::after { box-sizing: border-box; }
.wb img { display: block; max-width: 100%; height: auto; }
.wb h1, .wb h2, .wb h3, .wb p, .wb ul, .wb ol { margin: 0; }
.wb a { color: inherit; }

/* ---------- レイアウト ---------- */
.wb-container { max-width: var(--container); margin: 0 auto; padding: 0 var(--space-5); }
.wb-text { max-width: var(--text-max); }
.wb-section { padding: var(--space-15) 0; }
.wb-section--kinari { background: var(--base-kinari); }
.wb-center { text-align: center; }
.wb-mt-1 { margin-top: var(--space-1); }
.wb-mt-3 { margin-top: var(--space-3); }
.wb-mt-5 { margin-top: var(--space-5); }
.wb-mt-8 { margin-top: var(--space-8); }

/* 写真の仮置き面（本番では写真に差し替え） */
.wb-photo {
  background: var(--photo-ground);
  display: flex; align-items: center; justify-content: center;
  color: var(--ink-nibi); font-size: 12px; letter-spacing: 0.15em;
  overflow: hidden;
}
.wb-photo--4x3 { aspect-ratio: 4 / 3; }
.wb-photo--3x2 { aspect-ratio: 3 / 2; }
.wb-photo--16x9 { aspect-ratio: 16 / 9; }
.wb-fullbleed { width: 100%; }

/* ---------- 文字スタイル ---------- */
.wb-h1 { font-size: 40px; line-height: 1.5; font-weight: 500; letter-spacing: 0.08em; }
.wb-h2 { font-size: 32px; line-height: 1.5; font-weight: 500; letter-spacing: 0.06em; }
.wb-h3 { font-size: 22px; line-height: 1.6; font-weight: 500; letter-spacing: 0.04em; }
.wb-body { font-size: 16px; line-height: 2; }
.wb-small { font-size: 13px; line-height: 1.8; color: var(--ink-nibi); }
.wb-en {
  font-family: var(--font-serif-en);
  font-size: 14px; line-height: 1; font-weight: 500;
  letter-spacing: 0.25em; color: var(--accent-gold);
}
.wb-en--italic { font-style: italic; font-weight: 400; letter-spacing: 0.2em; font-size: 15px; }

/* ---------- ロゴ（画像） ---------- */
.wb-logo--img { display: flex; align-items: center; gap: var(--space-2); }
.wb-logo--img img { height: 40px; width: auto; }
.wb-logo--img .wb-logo__mark { height: 44px; }
.wb-mark { display: block; width: 72px; height: 72px; }
.wb-mark--sm { width: 48px; height: 48px; }
/* 水引ライン（朱と白の細線）：区切りに使う */
.wb-mizuhiki { height: 5px; background: repeating-linear-gradient(to bottom, var(--accent-shu) 0 1px, var(--base-white) 1px 2px, var(--accent-shu) 2px 3px, var(--base-white) 3px 4px, var(--accent-shu) 4px 5px); }

/* ---------- 1. ヘッダー ---------- */
.wb-header {
  display: flex; align-items: center; justify-content: space-between;
  height: 72px; padding: 0 var(--space-5);
  background: var(--base-white);
  border-bottom: var(--hairline) solid var(--line-usuzumi);
}
.wb-logo { text-decoration: none; line-height: 1.2; }
.wb-logo__ja { display: block; font-size: 18px; font-weight: 500; letter-spacing: 0.2em; color: var(--ink-sumi); }
.wb-logo__en {
  display: block; margin-top: 4px;
  font-family: var(--font-serif-en); font-size: 10px; letter-spacing: 0.3em;
  color: var(--accent-gold);
}
.wb-nav { display: flex; gap: var(--space-5); font-size: 14px; letter-spacing: 0.1em; }
.wb-nav a {
  text-decoration: none; color: var(--ink-sumi); padding-bottom: 4px;
  border-bottom: var(--hairline) solid transparent;
  transition: color var(--hover-duration), border-color var(--hover-duration);
}
.wb-nav a:hover { color: var(--accent-gold); border-color: var(--accent-gold); }
.wb-header__cta { display: flex; align-items: center; gap: var(--space-3); }
.wb-burger {
  display: none; width: 28px; height: 18px; position: relative;
  background: none; border: 0; padding: 0; cursor: pointer;
}
.wb-burger span {
  position: absolute; left: 0; width: 100%; height: 1px; background: var(--ink-sumi);
}
.wb-burger span:nth-child(1) { top: 0; }
.wb-burger span:nth-child(2) { top: 8px; }
.wb-burger span:nth-child(3) { top: 16px; }

/* ---------- 2. ヒーロー ---------- */
.wb-hero { position: relative; height: 100vh; height: 100svh; min-height: 560px; overflow: hidden; color: var(--ink-white); }
.wb-hero__photo { position: absolute; inset: 0; width: 100%; height: 100%; }
.wb-hero__photo .wb-photo { width: 100%; height: 100%; align-items: flex-end; justify-content: flex-end; padding: 16px; }
.wb-hero__photo video, .wb-hero__photo img { width: 100%; height: 100%; object-fit: cover; }
.wb-hero__overlay { position: absolute; inset: 0; background: var(--overlay-sumi); }
.wb-hero__inner {
  position: relative; z-index: 1; height: 100%;
  display: flex; flex-direction: column; justify-content: center; align-items: flex-start;
  padding: 0 var(--space-15);
}
.wb-hero__en { color: var(--ink-white); }
.wb-hero__copy {
  font-size: 40px; line-height: 1.6; font-weight: 500; letter-spacing: 0.12em;
  margin-top: var(--space-3);
}
.wb-hero__copy--vertical {
  writing-mode: vertical-rl; text-orientation: mixed;
  line-height: 2; letter-spacing: 0.2em; max-height: 60vh; margin-top: var(--space-3);
}
.wb-hero__lead { font-size: 15px; letter-spacing: 0.08em; margin-top: var(--space-3); }
.wb-hero__cta { margin-top: var(--space-5); }
.wb-hero__scroll {
  position: absolute; left: 50%; bottom: var(--space-5); transform: translateX(-50%);
  font-family: var(--font-serif-en); font-size: 11px; letter-spacing: 0.3em; color: var(--ink-white);
  z-index: 1;
}
.wb-hero__scroll::after {
  content: ""; display: block; width: 1px; height: 40px; margin: var(--space-1) auto 0; background: var(--ink-white);
}

/* ---------- 3. セクション見出し ---------- */
.wb-sec-title { }
.wb-sec-title__en { display: block; }
.wb-sec-title__ja { display: block; margin-top: var(--space-1); }
.wb-sec-title::after {
  content: ""; display: block; width: var(--gold-rule); height: var(--hairline);
  background: var(--accent-gold); margin-top: var(--space-3);
}
.wb-sec-title--center { text-align: center; }
.wb-sec-title--center::after { margin-left: auto; margin-right: auto; }
.wb-sec-title--white .wb-sec-title__ja { color: var(--ink-white); }

/* ---------- 4・5. ボタン ---------- */
.wb-btn {
  display: inline-flex; align-items: center; justify-content: center;
  height: 56px; padding: 0 var(--space-5);
  font-family: inherit; font-size: 15px; font-weight: 500; letter-spacing: 0.1em; line-height: 1;
  text-decoration: none; cursor: pointer; border-radius: var(--radius-0);
  transition: background-color var(--hover-duration), color var(--hover-duration), border-color var(--hover-duration);
}
.wb-btn--primary {
  background: var(--accent-shu); color: var(--ink-white);
  border: var(--hairline) solid var(--accent-shu);
}
.wb-btn--primary:hover { background: var(--accent-shu-hover); border-color: var(--accent-shu-hover); }
.wb-btn--secondary {
  background: var(--base-white); color: var(--ink-sumi);
  border: var(--hairline) solid var(--ink-sumi);
}
.wb-btn--secondary:hover { background: var(--ink-sumi); color: var(--ink-white); }
.wb-btn--ghost {
  background: transparent; color: var(--ink-white);
  border: var(--hairline) solid var(--ink-white);
}
.wb-btn--ghost:hover { background: var(--ink-white); color: var(--ink-sumi); }
.wb-btn--sm { height: 44px; padding: 0 var(--space-3); font-size: 13px; }
.wb-btn--block { width: 100%; }
.wb-btn-row { display: flex; gap: var(--space-2); flex-wrap: wrap; }

/* ---------- 6. テキストリンク ---------- */
.wb-link {
  color: var(--ink-sumi); text-decoration: underline;
  text-decoration-thickness: 1px; text-underline-offset: 6px;
  transition: color var(--hover-duration);
}
.wb-link:hover { color: var(--accent-gold); }
.wb-link--more {
  display: inline-block; font-size: 14px; letter-spacing: 0.1em;
}

/* ---------- 7. カード ---------- */
.wb-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--space-3); }
.wb-card { background: var(--base-white); border: var(--hairline) solid var(--line-usuzumi); }
.wb-card__body { padding: var(--space-3); }
.wb-card__en { display: block; margin-bottom: var(--space-1); }
.wb-card__title { font-size: 18px; line-height: 1.6; font-weight: 500; letter-spacing: 0.06em; }
.wb-card__text {
  margin-top: var(--space-1); font-size: 14px; line-height: 1.9; color: var(--ink-nibi);
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}

/* ---------- 8. 料金表 ---------- */
.wb-price { width: 100%; border-collapse: collapse; font-size: 15px; }
.wb-price caption {
  text-align: left; padding-bottom: var(--space-2); font-size: 18px; font-weight: 500; letter-spacing: 0.06em;
}
.wb-price th, .wb-price td {
  padding: var(--space-2) var(--space-1); text-align: left; vertical-align: top;
  border-bottom: var(--hairline) solid var(--line-usuzumi); font-weight: 400;
}
.wb-price thead th {
  border-top: var(--hairline) solid var(--ink-sumi); border-bottom: var(--hairline) solid var(--ink-sumi);
  font-size: 13px; letter-spacing: 0.1em; color: var(--ink-nibi);
}
.wb-price .wb-price__amount { text-align: right; white-space: nowrap; font-variant-numeric: tabular-nums; }
.wb-price__total td { font-weight: 700; border-bottom: var(--hairline) solid var(--ink-sumi); }
.wb-price__note { font-size: 13px; color: var(--ink-nibi); margin-top: var(--space-2); }

/* ---------- 9. 流れ（ステップ） ---------- */
.wb-steps { list-style: none; padding: 0; margin: 0; }
.wb-step {
  display: grid; grid-template-columns: 80px 1fr; gap: var(--space-3);
  padding: var(--space-3) 0; border-bottom: var(--hairline) solid var(--line-usuzumi);
}
.wb-step:first-child { border-top: var(--hairline) solid var(--line-usuzumi); }
.wb-step__no {
  font-family: var(--font-serif-en); font-size: 28px; line-height: 1.3; letter-spacing: 0.05em;
  color: var(--accent-gold);
}
.wb-step__title { font-size: 18px; line-height: 1.6; font-weight: 500; letter-spacing: 0.06em; }
.wb-step__text { font-size: 14px; line-height: 1.9; color: var(--ink-nibi); margin-top: 4px; }

/* ---------- 10. お知らせ一覧 ---------- */
.wb-news { list-style: none; padding: 0; margin: 0; border-top: var(--hairline) solid var(--line-usuzumi); }
.wb-news li {
  display: flex; gap: var(--space-3); align-items: baseline;
  padding: var(--space-2) 0; border-bottom: var(--hairline) solid var(--line-usuzumi); font-size: 14px;
}
.wb-news time {
  flex: 0 0 7.5em; font-family: var(--font-serif-en); font-size: 13px; letter-spacing: 0.08em; color: var(--ink-nibi);
}
.wb-news a { text-decoration: none; transition: color var(--hover-duration); }
.wb-news a:hover { color: var(--accent-gold); }

/* ---------- 11. 写真ギャラリー ---------- */
.wb-gallery { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--space-2); }
.wb-gallery--2 { grid-template-columns: repeat(2, 1fr); }
.wb-gallery .wb-photo { aspect-ratio: 4 / 3; }

/* ---------- 12. フッター ---------- */
.wb-footer { background: var(--base-kinari); padding: var(--space-8) var(--space-5) var(--space-5); font-size: 13px; }
.wb-footer__top { display: flex; justify-content: space-between; align-items: flex-start; gap: var(--space-5); }
.wb-footer__links { display: flex; gap: var(--space-3); flex-wrap: wrap; }
.wb-footer__links a { text-decoration: none; letter-spacing: 0.08em; transition: color var(--hover-duration); }
.wb-footer__links a:hover { color: var(--accent-gold); }
.wb-footer__sns { display: flex; gap: var(--space-2); }
.wb-footer__sns a {
  font-family: var(--font-serif-en); font-size: 13px; letter-spacing: 0.15em; text-decoration: none;
  padding-bottom: 2px; border-bottom: var(--hairline) solid var(--accent-gold);
  transition: color var(--hover-duration);
}
.wb-footer__sns a:hover { color: var(--accent-gold); }
.wb-footer__bottom {
  margin-top: var(--space-5); padding-top: var(--space-2);
  border-top: var(--hairline) solid var(--line-usuzumi);
  display: flex; justify-content: space-between; gap: var(--space-2); flex-wrap: wrap;
  color: var(--ink-nibi); font-size: 12px; letter-spacing: 0.05em;
}
.wb-footer__bottom a { text-decoration: none; }
.wb-footer__copy { font-family: var(--font-serif-en); letter-spacing: 0.1em; }

/* ---------- 13. 固定CTA（スマホ） ---------- */
.wb-sticky {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 10;
  display: none; grid-template-columns: 1fr 1fr;
  border-top: var(--hairline) solid var(--line-usuzumi); background: var(--base-white);
}
.wb-sticky a {
  display: flex; align-items: center; justify-content: center; height: 56px;
  font-size: 14px; font-weight: 500; letter-spacing: 0.1em; text-decoration: none;
  transition: background-color var(--hover-duration), color var(--hover-duration);
}
.wb-sticky__primary { background: var(--accent-shu); color: var(--ink-white); }
.wb-sticky__primary:hover { background: var(--accent-shu-hover); }
.wb-sticky__secondary { background: var(--base-white); color: var(--ink-sumi); }
.wb-sticky__secondary:hover { color: var(--accent-gold); }
.wb-sticky--show { display: grid; }

/* ---------- 動き ---------- */
.wb-fade { opacity: 0; transform: translateY(var(--fade-offset)); animation: wb-fade var(--fade-duration) ease-out forwards; }
@keyframes wb-fade { to { opacity: 1; transform: translateY(0); } }

/* ---------- スマホ（コンテナ幅 767px 以下） ---------- */
@media (max-width: 767px) {
  .wb-container { padding: 0 20px; }
  .wb-section { padding: var(--section-sp) 0; }
  .wb-h1 { font-size: 28px; }
  .wb-h2 { font-size: 24px; }
  .wb-h3 { font-size: 18px; }
  .wb-body { font-size: 15px; line-height: 1.9; }
  .wb-small { font-size: 12px; }
  .wb-en { font-size: 13px; }

  .wb-header { height: 60px; padding: 0 20px; }
  .wb-logo--img img { height: 32px; }
  .wb-logo--img .wb-logo__mark { height: 36px; }
  .wb-logo__ja { font-size: 16px; }
  .wb-nav, .wb-header__cta .wb-btn { display: none; }
  .wb-burger { display: block; }

  .wb-hero { min-height: 0; }
  .wb-hero__inner { padding: 0 24px; }
  .wb-hero__copy { font-size: 28px; }
  .wb-hero__copy--vertical { font-size: 26px; max-height: 55vh; }
  .wb-hero__lead { font-size: 14px; }

  .wb-btn { height: 52px; font-size: 14px; }
  .wb-cards { grid-template-columns: 1fr; gap: var(--space-2); }
  .wb-gallery { grid-template-columns: repeat(2, 1fr); gap: var(--space-2); }
  .wb-step { grid-template-columns: 48px 1fr; gap: var(--space-2); }
  .wb-step__no { font-size: 24px; }
  .wb-news li { flex-direction: column; gap: 4px; }
  .wb-price { font-size: 14px; }
  .wb-footer { padding: var(--space-5) 20px var(--space-3); }
  .wb-footer__top { flex-direction: column; gap: var(--space-3); }
  .wb-footer__links { flex-direction: column; gap: var(--space-2); }
  .wb-footer__bottom { flex-direction: column; }
  .wb-sticky { display: grid; }
}

