/*
Theme Name: Takanori Okamoto Renewal
Theme URI: https://takanori-okamoto.com
Author: XION
Description: WordPress theme based on the current static renewal design.
Version: 2.3.0
Text Domain: takanori-okamoto
*/

:root {
    /* Premium Dark Theme Palette */
    --bg: #09090b;
    --surface: #141416;
    --surface-light: #1f1f23;
    --border: rgba(255, 255, 255, 0.08);
    --border-focus: rgba(219, 178, 120, 0.5);

    --text: #f9f9fa;
    --muted: #a1a1aa;
    --brand: #dbb278;
    /* Champagne Gold Accent */
    --brand-hover: #e8c492;

    --font-en:
        "Outfit", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
        sans-serif;
    --font-ja: "Shippori Mincho", serif;

    --ease: cubic-bezier(0.23, 1, 0.32, 1);
}

* {
    box-sizing: border-box;
}

html,
body {
    margin: 0;
    padding: 0;
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-en);
    background: var(--bg);
    color: var(--text);
    line-height: 1.6;
    font-size: 16px;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
}

body.no-scroll {
    overflow: hidden;
}

/* Typography Enhancements */
h1,
h2,
h3,
h4,
h5 {
    font-family: var(--font-ja);
    font-weight: 500;
    margin: 0 0 16px;
    line-height: 1.3;
    letter-spacing: 0.03em;
    color: var(--text);
}

h1 {
    font-size: clamp(2.4rem, 6vw, 4.5rem);
    line-height: 1.2;
    letter-spacing: 0.05em;
}

h2 {
    font-size: clamp(1.8rem, 4vw, 2.8rem);
    line-height: 1.3;
}

/* セクション見出しを h1 にしても、従来の h2 と同じ見た目を保つ */
.section-header h1 {
    font-size: clamp(1.8rem, 4vw, 2.8rem);
    line-height: 1.3;
    letter-spacing: 0.03em;
}

h3 {
    font-size: 1.35rem;
    font-weight: 600;
    font-family: var(--font-en);
    letter-spacing: 0.03em;
    color: var(--brand);
}

p {
    margin: 0 0 1em;
}

p:last-child {
    margin-bottom: 0;
}

.eyebrow {
    margin: 0 0 16px;
    color: var(--brand);
    letter-spacing: 0.15em;
    font-size: 0.75rem;
    font-weight: 500;
    text-transform: uppercase;
    font-family: var(--font-en);
}

.lead {
    max-width: 680px;
    color: var(--muted);
    font-size: 1.05rem;
    line-height: 1.8;
    font-family: var(--font-ja);
}

.text-light {
    color: #fff !important;
}

/* Progress Bar */
.progress {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 2px;
    z-index: 100;
    background: transparent;
}

.progress > span {
    display: block;
    height: 100%;
    width: 0%;
    background: var(--brand);
    box-shadow: 0 0 10px rgba(219, 178, 120, 0.6);
    transition: width 0.1s linear;
}

/* Header */
.site-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    display: grid;
    grid-template-columns: auto 1fr auto;
    grid-template-areas: "brand nav line";
    align-items: center;
    padding: 24px 5vw;
    z-index: 90;
    transition:
        padding 0.4s var(--ease),
        background 0.4s var(--ease),
        backdrop-filter 0.4s var(--ease);
}

.site-header > .nav-line-btn--header {
    grid-area: line;
}

.site-header.scrolled {
    padding: 16px 5vw;
    background: rgba(9, 9, 11, 0.85);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border);
}

.brand {
    color: #fff;
    text-decoration: none;
    font-weight: 500;
    letter-spacing: 0.12em;
    font-size: 0.9rem;
    text-transform: uppercase;
    transition: color 0.3s ease;
}

.brand:hover {
    color: var(--brand);
}

.site-header nav {
    grid-area: nav;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 32px;
}

/* nav内のLINEボタンはモバイルオーバーレイ専用（デスクトップでは非表示） */
.site-header nav .nav-line-btn {
    display: none;
}

/* ヘッダーバー右端のLINEボタン（デスクトップ専用） */
.nav-line-btn--header {
    display: inline-flex;
}

.menu-toggle {
    grid-area: toggle;
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 10px;
    z-index: 1001;
    width: 44px;
    height: 44px;
    position: relative;
}

.menu-toggle span {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--text);
    position: absolute;
    left: 10px;
    transition: all 0.3s var(--ease);
}

.menu-toggle span:nth-child(1) {
    top: 16px;
}

.menu-toggle span:nth-child(2) {
    top: 21px;
}

.menu-toggle span:nth-child(3) {
    top: 26px;
}

.menu-toggle.active span:nth-child(1) {
    transform: translateY(5px) rotate(45deg);
}

.menu-toggle.active span:nth-child(2) {
    opacity: 0;
}

.menu-toggle.active span:nth-child(3) {
    transform: translateY(-5px) rotate(-45deg);
}

.site-header nav a {
    color: var(--text);
    text-decoration: none;
    font-size: 0.8rem;
    letter-spacing: 0.08em;
    font-weight: 400;
    position: relative;
    transition: color 0.3s ease;
}

.site-header nav a::after {
    content: "";
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 100%;
    height: 1px;
    background: var(--brand);
    transform: scaleX(0);
    transform-origin: right;
    transition: transform 0.4s var(--ease);
}

.site-header nav a:hover {
    color: var(--brand);
}

.site-header nav a[aria-current="page"] {
    color: var(--brand);
}

.nav-line-btn {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 6px 14px;
    border: 1px solid rgba(255, 255, 255, 0.35);
    border-radius: 20px;
    font-size: 0.8rem;
    color: inherit;
    text-decoration: none;
    transition: background 0.3s ease, border-color 0.3s ease;
    white-space: nowrap;
}

.nav-line-btn:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.6);
}

.site-header nav a[aria-current="page"]::after {
    transform: scaleX(1);
    transform-origin: left;
}

.site-header nav a:hover::after {
    transform: scaleX(1);
    transform-origin: left;
}

a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible,
select:focus-visible,
summary:focus-visible {
    outline: 2px solid var(--brand);
    outline-offset: 3px;
}

/* Layout Panels */
.panel {
    min-height: 100vh;
    display: grid;
    align-items: center;
    padding: 120px 0 80px;
    position: relative;
    overflow: hidden;
}

.panel.compact {
    min-height: auto;
    padding: 88px 0;
}

.content {
    width: min(1200px, 92%);
    margin: 0 auto;
    position: relative;
    z-index: 2;
}

.content.narrow {
    width: min(1000px, 92%);
}

/* Section Header */
.section-header {
    margin-bottom: 48px;
}

.section-header.center {
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.section-header.center h1,
.section-header.center h2,
.section-header.center h3,
.section-header.center .eyebrow,
.section-header.center .lead {
    width: 100%;
    margin-left: auto;
    margin-right: auto;
    text-align: center;
    text-wrap: balance;
    line-break: strict;
    word-break: normal;
    overflow-wrap: normal;
}

.wrap-center {
  flex-wrap: wrap;
  justify-content: center;
}

.tok-availability-page-hero {
  min-height: auto;
}

.tok-availability-hero-meta {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 10px;
}

.tok-availability-hero-meta span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 38px;
  padding: 0 14px;
  border-radius: 999px;
  background: rgba(255,255,255,0.04);
  border: 1px solid var(--border);
  color: var(--muted);
  font-size: 0.85rem;
  letter-spacing: 0.04em;
}

.tok-availability-page-intro {
  min-height: auto;
}

.tok-availability-guide-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}

.tok-availability-page-calendar {
  min-height: auto;
}

.tok-availability-calendar-shell {
  padding: 28px;
  border-radius: 18px;
  border: 1px solid var(--border);
  background:
    radial-gradient(circle at top center, rgba(255, 247, 229, 0.06), transparent 34%),
    rgba(255,255,255,0.02);
  box-shadow: 0 24px 60px rgba(8, 8, 10, 0.22);
}

.tok-availability-page-calendar .xcm-front {
  margin: 0;
}

.tok-availability-page-calendar .xcm-toolbar-front {
  margin-bottom: 22px;
}

.tok-availability-page-calendar .xcm-toolbar strong {
  font-size: clamp(1rem, 2vw, 1.2rem);
  letter-spacing: 0.02em;
}

.tok-availability-page-calendar .xcm-button {
  min-height: 42px;
  padding: 0 18px;
  border-radius: 999px;
  border-color: rgba(255,255,255,0.14);
  background: rgba(255,255,255,0.02);
  color: var(--text);
  transition: background 0.25s ease, border-color 0.25s ease, transform 0.25s ease;
}

.tok-availability-page-calendar .xcm-button:hover,
.tok-availability-page-calendar .xcm-button:focus-visible {
  background: rgba(255,255,255,0.05);
  border-color: rgba(219, 178, 120, 0.34);
  transform: translateY(-1px);
}

.tok-availability-page-calendar .xcm-front-table {
  border-collapse: collapse;
}

.tok-availability-page-calendar .xcm-front-table th {
  color: rgba(255,255,255,0.9);
  background: rgba(255,255,255,0.02);
}

.tok-availability-page-calendar .xcm-front-table td,
.tok-availability-page-calendar .xcm-front-table th {
  border-color: rgba(255,255,255,0.09);
}

.tok-availability-page-calendar .xcm-front-table td.xcm-empty {
  background: rgba(255,255,255,0.015);
}

.tok-availability-page-calendar .xcm-status {
  line-height: 1.55;
}

.tok-availability-fallback {
  padding: 24px 28px;
  border-radius: 14px;
  background: rgba(255,255,255,0.03);
  border: 1px solid var(--border);
  text-align: center;
}

.tok-availability-fallback p {
  margin: 0;
  color: var(--muted);
  line-height: 1.9;
}

.tok-availability-cta {
  margin-top: 32px;
}

@media (max-width: 900px) {
  .tok-availability-guide-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  .tok-availability-calendar-shell {
    padding: 18px 14px;
    border-radius: 14px;
  }

  .tok-availability-page-calendar .xcm-toolbar-front {
    margin-bottom: 18px;
  }

  .tok-availability-page-calendar .xcm-button {
    min-height: 40px;
    width: 100%;
    max-width: 180px;
  }

  .tok-availability-page-calendar .xcm-toolbar strong {
    order: -1;
  }
}

#gallery .section-header.center {
    max-width: 760px;
    margin-left: auto;
    margin-right: auto;
}

#gallery .section-header.center h2,
#gallery .section-header.center .eyebrow,
#gallery .section-header.center .lead {
    text-align: center !important;
    margin-left: auto;
    margin-right: auto;
}

#gallery .portfolio-header {
    display: grid !important;
    justify-items: center;
    align-items: center;
    width: 100%;
    text-align: center !important;
}

#gallery .portfolio-header h2,
#gallery .portfolio-header .eyebrow,
#gallery .portfolio-header .lead,
#gallery .portfolio-header .line {
    justify-self: center;
    text-align: center !important;
}

/* Portfolio header (robust centering)
   - Some pages/sections may reuse the same "PORTFOLIO" header outside of #gallery.
   - This keeps the heading centered even if the parent id/class changes.
*/
.portfolio-header {
    max-width: 760px;
    margin-left: auto;
    margin-right: auto;
    display: grid;
    justify-items: center;
    align-items: center;
    width: 100%;
    text-align: center;
}

.portfolio-header h2,
.portfolio-header .eyebrow,
.portfolio-header .lead,
.portfolio-header .line {
    justify-self: center;
    text-align: center !important;
}

.line {
    width: 40px;
    height: 2px;
    background: var(--brand);
    margin-top: 24px;
    border-radius: 2px;
}

.line.centered {
    margin: 24px auto 0;
}

.line.bg-light {
    background: #fff;
}

.mt-2 {
    margin-top: 16px;
}

.mt-3 {
    margin-top: 24px;
}

.mt-section {
    margin-top: 72px;
}

.pt-3 {
    padding-top: 24px;
}

.text-center {
    text-align: center;
}

.relative {
    position: relative;
}

.z-10 {
    z-index: 10;
}

.flex-between {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.space-between {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    flex-wrap: wrap;
    gap: 32px;
}

/* Backgrounds */
.solid {
    background: var(--bg);
}

.solid-light {
    background: var(--surface);
}

.hero {
    position: relative;
    overflow: hidden;
}

.hero-img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 0;
}

.works-hero-visual {
    margin: 40px 0 0;
    border-radius: 10px;
    overflow: hidden;
}

.works-hero-visual img {
    display: block;
    width: 100%;
    height: clamp(220px, 38vw, 460px);
    object-fit: cover;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        135deg,
        rgba(9, 9, 11, 0.95) 0%,
        rgba(9, 9, 11, 0.6) 50%,
        rgba(9, 9, 11, 0.4) 100%
    );
    z-index: 1;
}

.image {
    /* 外部巨大画像の読み込みを停止 */
    background: var(--bg);
}

.gallery-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(9, 9, 11, 0.85);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    z-index: 1;
}

/* Buttons */
.cta-row {
    margin-top: 32px;
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
}

.hero .cta-text-link {
    color: rgba(255, 255, 255, 0.75);
    font-size: 0.9rem;
    text-decoration: underline;
    text-underline-offset: 3px;
    transition: color 0.3s ease;
    align-self: center;
}

.hero .cta-text-link:hover {
    color: #fff;
}

.cta-row.center {
    justify-content: center;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    font-family: var(--font-en);
    font-size: 0.85rem;
    letter-spacing: 0.1em;
    font-weight: 500;
    padding: 14px 28px;
    border-radius: 4px;
    transition: all 0.3s var(--ease);
    position: relative;
    overflow: hidden;
    border: 1px solid transparent;
    cursor: pointer;
    z-index: 0;
    isolation: isolate;
}

.btn::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.1);
    transform: translateX(-100%);
    transition: transform 0.4s var(--ease);
    z-index: -1;
}

.btn:hover::before {
    transform: translateX(0);
}

.btn span {
    position: relative;
    z-index: 2;
}

.btn.primary {
    background: var(--text);
    color: var(--bg);
}

.btn.primary:hover {
    background: var(--brand);
    transform: translateY(-2px) scale(1.02);
    box-shadow: 0 12px 24px rgba(219, 178, 120, 0.25);
}

.btn.primary.outline {
    background: transparent;
    border-color: var(--brand);
    color: var(--brand);
}

.btn.primary.outline::before {
    background: var(--brand);
}

.btn.primary.outline:hover {
    color: #fff;
    border-color: #fff;
}

.btn.ghost {
    color: var(--text);
    border-color: var(--border);
    background: rgba(255, 255, 255, 0.03);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
}

.btn.ghost:hover {
    border-color: var(--text);
    background: transparent;
}

.btn.block {
    width: 100%;
}

/* Grid Components */
.cards-2 {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    grid-auto-rows: 1fr;
    gap: 24px;
}

.cards-3 {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    grid-auto-rows: 1fr;
    gap: 24px;
}

.cards-4 {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
}

.entry-followup {
    margin-top: 24px;
    max-width: 100%;
    margin-left: auto;
    margin-right: auto;
}

.entry-grid .entry-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.entry-grid .entry-card p {
    flex: 1;
}

.entry-grid .entry-card .btn {
    min-height: 52px;
}

.entry-followup-card {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
}

.entry-followup-copy {
    flex: 1;
}

.entry-followup-card .btn {
    flex-shrink: 0;
}

.align-start {
    align-items: start;
}

.wedding-plan-grid,
.referral-share-grid,
.framed-print-grid {
    align-items: stretch;
}

.wedding-price-list {
    grid-template-columns: minmax(0, 1fr) auto;
}

.table-scroll {
    width: 100%;
    max-width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

.wedding-album-table {
    width: 100%;
    min-width: 720px;
}

.wedding-plan-grid .plan-card:not(.horizontal),
.referral-share-grid .info-card,
.framed-print-grid .info-card {
    height: 100%;
}

.wedding-plan-grid .plan-card:not(.horizontal) {
    display: flex;
    flex-direction: column;
}

.info-card {
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 32px 24px;
    background: rgba(255, 255, 255, 0.02);
    transition: all 0.3s var(--ease);
}

.info-card:hover {
    border-color: rgba(255, 255, 255, 0.1);
    background: rgba(255, 255, 255, 0.04);
    transform: translateY(-4px);
}

.info-card p {
    color: var(--muted);
    font-family: var(--font-ja);
}

/* Service Cards */
.service-card {
    border: 1px solid var(--border);
    border-radius: 8px;
    overflow: hidden;
    background: var(--surface);
    display: flex;
    flex-direction: column;
}

.card-img {
    width: 100%;
    height: 200px;
    background-size: cover;
    background-position: center;
    transition: transform 0.6s var(--ease);
}

.hover-lift:hover .card-img {
    transform: scale(1.05);
}

.hover-lift {
    overflow: hidden;
}

.card-body {
    padding: 24px;
    flex-grow: 1;
    background: var(--surface);
    position: relative;
    z-index: 2;
    display: flex;
    flex-direction: column;
}

.card-body p {
    color: var(--muted);
    font-size: 0.9rem;
    margin-bottom: 24px;
    flex-grow: 1;
}

.card-body .micro-meta {
    color: var(--brand);
    font-size: 0.72rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    margin-bottom: 12px;
    font-family: var(--font-en);
    flex-grow: 0;
}

.link-arrow {
    display: inline-flex;
    font-size: 0.8rem;
    font-weight: 500;
    letter-spacing: 0.05em;
    color: var(--brand);
    text-decoration: none;
    transition:
        transform 0.3s var(--ease),
        color 0.3s ease;
    margin-top: auto;
}

.hover-lift:hover .link-arrow {
    transform: translateX(4px);
    color: var(--brand-hover);
}

/* Plans Grid */
.plan-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.plan-card {
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 40px 32px;
    background: var(--surface-light);
    position: relative;
    transition: all 0.3s var(--ease);
}

.plan-card:hover {
    transform: translateY(-4px);
    border-color: rgba(255, 255, 255, 0.1);
}

.plan-card.featured {
    border-color: var(--brand);
    background: linear-gradient(
        180deg,
        rgba(219, 178, 120, 0.05) 0%,
        rgba(20, 20, 22, 1) 100%
    );
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.5);
    transform: scale(1.02);
}

.plan-card.featured:hover {
    transform: scale(1.02) translateY(-4px);
}

.plan-card.horizontal {
    grid-column: 1 / -1;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 48px;
}

@media (min-width: 768px) {
    .plan-card.horizontal {
        text-align: left;
        align-items: flex-start;
    }
}

.featured-badge {
    position: absolute;
    top: 0;
    left: 50%;
    transform: translate(-50%, -50%);
    background: var(--brand);
    color: var(--bg);
    font-family: var(--font-en);
    font-size: 0.7rem;
    font-weight: 600;
    letter-spacing: 0.1em;
    padding: 4px 12px;
    border-radius: 20px;
}

.price {
    font-size: 2.2rem;
    font-weight: 600;
    font-family: var(--font-en);
    margin: 16px 0 8px;
    color: #fff;
    white-space: nowrap;
}

.price span {
    font-size: 1.2rem;
    font-weight: 400;
    color: var(--muted);
    font-family: var(--font-ja);
    white-space: nowrap;
}

.note {
    color: var(--muted);
    font-size: 0.85rem;
    font-family: var(--font-ja);
    margin-top: 16px;
    border-top: 1px dashed var(--border);
    padding-top: 16px;
}

.note.highlight {
    color: var(--brand);
    font-weight: 500;
}

.sub {
    margin-top: 24px;
    color: #7f7f8a;
    font-size: 0.8rem;
    letter-spacing: 0.05em;
}

/* Interactive Tabs & Gallery */
.tab-buttons {
    margin: 24px 0 32px;
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 12px;
}

.tab-btn {
    border: 1px solid var(--border);
    border-radius: 4px;
    padding: 8px 20px;
    background: rgba(255, 255, 255, 0.03);
    color: var(--muted);
    font: inherit;
    font-family: var(--font-ja);
    font-size: 0.85rem;
    letter-spacing: 0.05em;
    cursor: pointer;
    transition: all 0.3s var(--ease);
}

.tab-btn:hover {
    background: rgba(255, 255, 255, 0.08);
    color: #fff;
}

.tab-btn.active {
    background: #fff;
    color: var(--bg);
    border-color: #fff;
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
}

.gallery-grid figure {
    margin: 0;
    border-radius: 8px;
    overflow: hidden;
    position: relative;
    background: #000;
}

.gallery-grid figure a {
    display: block;
    cursor: zoom-in;
}

.gallery-grid img {
    width: 100%;
    aspect-ratio: 4 / 3;
    object-fit: cover;
    display: block;
    transition:
        transform 0.6s var(--ease),
        opacity 0.4s ease;
    opacity: 0.85;
}

.gallery-grid figure:hover img {
    transform: scale(1.05);
    opacity: 1;
}

.portfolio-lightbox[hidden] {
    display: none;
}

.portfolio-lightbox {
    position: fixed;
    inset: 0;
    z-index: 1200;
}

.portfolio-lightbox__backdrop {
    position: absolute;
    inset: 0;
    background: rgba(9, 9, 11, 0.88);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.portfolio-lightbox__dialog {
    position: relative;
    z-index: 1;
    width: min(92vw, 1240px);
    height: 100%;
    margin: 0 auto;
    display: grid;
    place-items: center;
    padding: 48px 0;
}

.portfolio-lightbox__figure {
    margin: 0;
    max-width: 100%;
}

.portfolio-lightbox__image {
    display: block;
    width: auto;
    max-width: 100%;
    max-height: calc(100vh - 140px);
    height: auto;
    border-radius: 10px;
    box-shadow: 0 24px 80px rgba(0, 0, 0, 0.4);
}

.portfolio-lightbox__caption {
    margin-top: 14px;
    text-align: center;
    color: rgba(255, 255, 255, 0.88);
    font-family: var(--font-ja);
    font-size: 0.95rem;
}

.portfolio-lightbox__close {
    position: absolute;
    top: 20px;
    right: 8px;
    width: 48px;
    height: 48px;
    border: 1px solid rgba(255, 255, 255, 0.16);
    border-radius: 999px;
    background: rgba(20, 20, 22, 0.72);
    color: #fff;
    font-size: 1.8rem;
    line-height: 1;
    cursor: pointer;
}

body.lightbox-open {
    overflow: hidden;
}

/* Features & Referral */
.feature-grid {
    margin: 24px 0 32px;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.feature-grid > div {
    border-left: 2px solid var(--brand);
    padding-left: 16px;
}

.feature-grid strong {
    display: block;
    margin-bottom: 8px;
    font-family: var(--font-ja);
    font-weight: 500;
    color: #fff;
}

.feature-grid p {
    margin: 0;
    color: var(--muted);
    font-size: 0.9rem;
}

.referral-banner {
    border: 1px solid var(--border);
    border-radius: 8px;
    background: linear-gradient(
        135deg,
        rgba(255, 255, 255, 0.03) 0%,
        rgba(255, 255, 255, 0) 100%
    );
    padding: 32px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
}

.banner-content strong {
    display: block;
    margin-bottom: 8px;
    font-size: 1.1rem;
    color: #fff;
}

.banner-content p {
    color: var(--muted);
    font-size: 0.9rem;
    margin: 0;
}

/* Flow Grid */
.flow-grid {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
    position: relative;
}

.flow-grid::before {
    content: "";
    position: absolute;
    top: 24px;
    left: 0;
    right: 0;
    height: 1px;
    background: var(--border);
    z-index: 0;
}

.flow-grid li {
    position: relative;
    z-index: 1;
    background: var(--surface);
    padding-top: 48px;
}

.flow-grid strong {
    position: absolute;
    top: 0;
    left: 0;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    border: 1px solid var(--border);
    background: var(--bg);
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-en);
    font-weight: 500;
    font-size: 1.2rem;
    color: var(--brand);
}

.flow-grid span {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    color: #fff;
    font-size: 0.95rem;
}

.flow-grid small {
    color: var(--muted);
    font-size: 0.85rem;
}

/* FAQ List */
.faq-list {
    max-width: 760px;
    margin: 0 auto;
    display: grid;
    gap: 16px;
}

.plan-compare-table {
    width: 100%;
    min-width: 720px;
    border-collapse: collapse;
    border: 1px solid var(--border);
    background: rgba(255, 255, 255, 0.02);
    border-radius: 10px;
    overflow: hidden;
}

.plan-compare-table th,
.plan-compare-table td {
    padding: 16px;
    border-bottom: 1px solid var(--border);
    text-align: left;
    vertical-align: top;
}

.plan-compare-table thead th {
    color: #fff;
    background: rgba(255, 255, 255, 0.03);
    font-weight: 500;
}

.plan-compare-table tbody th {
    width: 180px;
    color: var(--brand);
    font-weight: 600;
    background: rgba(255, 255, 255, 0.015);
}

.plan-compare-table tbody tr:last-child th,
.plan-compare-table tbody tr:last-child td {
    border-bottom: none;
}

.works-policy-note {
    background: rgba(255, 255, 255, 0.015);
    border: 1px solid var(--border);
    padding: 36px 40px;
    border-radius: 8px;
}

.works-policy-note .cta-row {
    flex-wrap: wrap;
    gap: 12px;
}

details {
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 20px 24px;
    background: var(--surface-light);
    transition: all 0.3s var(--ease);
}

details[open] {
    border-color: rgba(255, 255, 255, 0.15);
    background: rgba(255, 255, 255, 0.03);
}

summary {
    cursor: pointer;
    list-style: none;
    /* Hide default arrow */
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-weight: 500;
    font-family: var(--font-ja);
    color: #fff;
    font-size: 1rem;
}

summary::-webkit-details-marker {
    display: none;
}

.icon {
    font-family: var(--font-en);
    font-size: 1.2rem;
    color: var(--muted);
    font-weight: 300;
    transition: transform 0.3s ease;
}

details p {
    margin: 16px 0 0;
    color: var(--muted);
    font-size: 0.9rem;
    line-height: 1.7;
    padding-top: 16px;
    border-top: 1px solid var(--border);
}

/* Contact Specifics */
.contact-card {
    background: #111114;
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 64px;
    box-shadow: 0 40px 80px rgba(0, 0, 0, 0.6);
    position: relative;
    overflow: hidden;
}

.contact-card::before {
    content: "";
    position: absolute;
    top: 0;
    right: 0;
    width: 300px;
    height: 300px;
    background: radial-gradient(
        circle,
        rgba(219, 178, 120, 0.05) 0%,
        transparent 70%
    );
}

.contact-form {
    display: grid;
    gap: 20px;
}

.contact-form-embed {
    margin-top: 40px;
}

.contact-form-embed .wpcf7 {
    width: 100%;
}

.contact-form-embed .wpcf7 form {
    display: grid;
    gap: 20px;
}

.contact-form-embed .wpcf7 p {
    margin: 0;
}

.contact-form-embed .wpcf7-form-control-wrap {
    display: block;
    margin-top: 8px;
}

.contact-form-embed .wpcf7-not-valid-tip {
    margin-top: 8px;
    font-size: 0.8rem;
    color: #ffb1b1;
}

.contact-form-embed .wpcf7 form .wpcf7-response-output {
    margin: 0;
    padding: 14px 16px;
    border-radius: 8px;
    font-size: 0.92rem;
    line-height: 1.7;
}

.contact-form-embed .wpcf7 form.sent .wpcf7-response-output {
    border-color: rgba(219, 178, 120, 0.35);
    background: rgba(219, 178, 120, 0.08);
    color: #f6e2be;
}

.contact-form-embed .wpcf7 form.invalid .wpcf7-response-output,
.contact-form-embed .wpcf7 form.failed .wpcf7-response-output,
.contact-form-embed .wpcf7 form.aborted .wpcf7-response-output,
.contact-form-embed .wpcf7 form.unaccepted .wpcf7-response-output {
    border-color: rgba(255, 120, 120, 0.28);
    background: rgba(160, 32, 32, 0.12);
    color: #ffd1d1;
}

.contact-form-embed .wpcf7-spinner {
    margin: 8px 0 0;
}

.form-notice {
    margin-bottom: 20px;
    padding: 14px 16px;
    border-radius: 8px;
    font-size: 0.92rem;
    line-height: 1.7;
    border: 1px solid var(--border);
}

.form-notice.is-success {
    background: rgba(219, 178, 120, 0.08);
    border-color: rgba(219, 178, 120, 0.35);
    color: #f6e2be;
}

.form-notice.is-error {
    background: rgba(160, 32, 32, 0.12);
    border-color: rgba(255, 120, 120, 0.28);
    color: #ffd1d1;
}

label {
    display: grid;
    gap: 8px;
    font-size: 0.85rem;
    color: var(--muted);
    letter-spacing: 0.05em;
    font-family: var(--font-ja);
}

input,
textarea,
select {
    width: 100%;
    border: 1px solid var(--border);
    background: rgba(0, 0, 0, 0.2);
    color: #fff;
    border-radius: 4px;
    padding: 14px 16px;
    font: inherit;
    font-family: var(--font-ja);
    transition: all 0.3s var(--ease);
}

input:focus,
textarea:focus,
select:focus {
    outline: none;
    border-color: var(--brand);
    background: rgba(0, 0, 0, 0.4);
    box-shadow: 0 0 0 4px rgba(219, 178, 120, 0.1);
}

::placeholder {
    color: rgba(255, 255, 255, 0.2);
}

textarea {
    resize: vertical;
    min-height: 120px;
}

.select-wrapper {
    position: relative;
}

.select-wrapper::after {
    content: "▼";
    position: absolute;
    right: 16px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 0.7rem;
    color: var(--muted);
    pointer-events: none;
}

select {
    -webkit-appearance: none;
    appearance: none;
    cursor: pointer;
}

/* Buttons & CTA */
.sticky-cta {
    position: fixed;
    right: 24px;
    bottom: 24px;
    z-index: 80;
    text-decoration: none;
    font-family: var(--font-en);
    font-weight: 500;
    font-size: 0.8rem;
    letter-spacing: 0.05em;
    background: var(--brand);
    color: #000;
    border-radius: 4px;
    padding: 14px 24px;
    box-shadow: 0 10px 30px rgba(219, 178, 120, 0.3);
    transition:
        transform 0.3s var(--ease),
        box-shadow 0.3s ease;
}

.sticky-cta:hover {
    transform: translateY(-4px);
    box-shadow: 0 15px 40px rgba(219, 178, 120, 0.4);
}

@keyframes pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(219, 178, 120, 0.4);
    }

    70% {
        box-shadow: 0 0 0 10px rgba(219, 178, 120, 0);
    }

    100% {
        box-shadow: 0 0 0 0 rgba(219, 178, 120, 0);
    }
}

.pulse {
    animation: pulse 2s infinite;
}

/* Mobile CTA bar (tel + LINE) */
.mobile-cta-bar {
    display: none;
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 80;
    gap: 1px;
    background: var(--border);
    border-top: 1px solid var(--border);
    padding-bottom: env(safe-area-inset-bottom);
}

.mobile-cta-bar a {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 14px 8px;
    font-size: 0.85rem;
    font-weight: 600;
    letter-spacing: 0.05em;
    text-decoration: none;
}

.mobile-cta-bar__form {
    background: #0c0c0e;
    color: var(--brand);
}

.mobile-cta-bar__line {
    background: var(--brand);
    color: #000;
}

@media (max-width: 980px) {
    .mobile-cta-bar {
        display: flex;
    }

    body {
        padding-bottom: 52px;
    }
}

/* 文節単位の改行制御（単語の途中・助詞単独の折り返しを防ぐ） */
.kp {
    display: inline-block;
}

/* Survey: Google review ask */
.review-ask {
    margin-top: 32px;
    padding: 32px 24px;
    text-align: center;
    border: 1px solid var(--border);
    border-radius: 8px;
    background: rgba(219, 178, 120, 0.06);
}

.review-ask h3 {
    margin-bottom: 12px;
}

.review-ask p {
    color: var(--muted);
    font-size: 0.9rem;
    margin-bottom: 20px;
}

/* Footer */
.site-footer {
    background: #050505;
    border-top: 1px solid var(--border);
    padding: 64px 0 32px;
}

.footer-brand {
    font-family: var(--font-en);
    font-weight: 400;
    letter-spacing: 0.15em;
    font-size: 0.85rem;
    color: #fff;
}

.footer-links {
    display: flex;
    gap: 24px;
    flex-wrap: wrap;
}

.footer-links a {
    color: var(--muted);
    text-decoration: none;
    font-size: 0.8rem;
    letter-spacing: 0.1em;
    transition: color 0.3s ease;
}

.footer-links a[aria-current="page"] {
    color: var(--brand);
}

.footer-links a:hover {
    color: var(--brand);
}

.t-border {
    border-top: 1px solid var(--border);
}

.copyright {
    color: #8a8a8a;
    font-size: 0.8rem;
    font-family: var(--font-en);
}

.footer-sns {
    display: flex;
    gap: 16px;
    align-items: center;
}

.footer-sns a {
    color: var(--muted);
    transition: all 0.3s var(--ease);
    display: flex;
    align-items: center;
    justify-content: center;
}

.footer-sns a:hover {
    color: var(--brand);
    transform: translateY(-2px);
}

.footer-sns svg {
    stroke-width: 1.5px;
}

.card-img {
    position: relative;
    width: 100%;
    height: 240px;
    overflow: hidden;
}

.card-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s var(--ease);
}

.service-card:hover .card-img img {
    transform: scale(1.05);
}

/* --- Reveal Animations --- */

.reveal-up {
    opacity: 0;
    transform: translateY(40px);
    transition:
        opacity 0.8s var(--ease),
        transform 0.8s var(--ease);
}

.reveal-up.active {
    opacity: 1;
    transform: translateY(0);
}

.fade-stagger {
    opacity: 0;
    transform: translateY(20px);
    transition:
        opacity 0.6s var(--ease),
        transform 0.6s var(--ease);
}

.fade-stagger.active {
    opacity: 1;
    transform: translateY(0);
}

/* Stagger delays */
.fade-stagger:nth-child(1) {
    transition-delay: 0.1s;
}

.fade-stagger:nth-child(2) {
    transition-delay: 0.2s;
}

.fade-stagger:nth-child(3) {
    transition-delay: 0.3s;
}

.fade-stagger:nth-child(4) {
    transition-delay: 0.4s;
}

.fade-stagger:nth-child(5) {
    transition-delay: 0.5s;
}

.fade-stagger:nth-child(6) {
    transition-delay: 0.6s;
}

.delay-2 {
    transition-delay: 0.2s;
}

/* Responsiveness */
@media (max-width: 980px) {
    .hero {
        background: transparent;
    }

    .hero-img {
        object-position: 24% center;
    }

    .site-header {
        grid-template-columns: 1fr auto auto;
        grid-template-areas: "brand line toggle";
    }

    .menu-toggle {
        display: block;
    }

    /* デスクトップ用ヘッダーLINEボタンを非表示、nav内ボタンを有効化 */
    .nav-line-btn--header {
        display: none;
    }

    .site-header nav {
        position: fixed;
        top: 0;
        right: 0;
        width: 100%;
        height: 100vh;
        background: var(--bg);
        flex-direction: column;
        justify-content: center;
        align-items: center;
        gap: 40px;
        transform: translateX(100%);
        transition: transform 0.5s var(--ease);
        z-index: 1000;
    }

    .site-header nav.active {
        transform: translateX(0);
    }

    .site-header nav a {
        font-size: 1.5rem;
        font-family: var(--font-en);
        letter-spacing: 2px;
    }

    /* モバイルオーバーレイ内のLINEボタンを表示 */
    .site-header nav .nav-line-btn {
        display: inline-flex;
        border: none;
        border-radius: 0;
        padding: 0;
        font-size: inherit;
    }

    .cards-2,
    .cards-3,
    .cards-4,
    .plan-grid,
    .gallery-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .feature-grid {
        grid-template-columns: 1fr;
        gap: 32px;
    }

    .feature-grid > div {
        border-left: none;
        border-top: 2px solid var(--brand);
        padding-left: 0;
        padding-top: 16px;
    }

    .referral-banner {
        flex-direction: column;
        align-items: flex-start;
    }

    .flow-grid {
        grid-template-columns: 1fr;
        gap: 32px;
        padding-left: 24px;
    }

    .flow-grid::before {
        top: 0;
        bottom: 0;
        left: 24px;
        width: 1px;
        height: auto;
    }

    .flow-grid li {
        padding-top: 0;
        padding-left: 48px;
    }

    .contact-card {
        padding: 40px 24px;
    }

    .space-between {
        flex-direction: column;
        gap: 24px;
    }

    .sticky-cta {
        display: none;
    }
}

@media (max-width: 640px) {
    .hero {
        background-position: 18% center;
    }

    .contact-form-embed {
        margin-top: 28px;
    }

    .cards-2,
    .cards-3,
    .cards-4,
    .plan-grid,
    .gallery-grid {
        grid-template-columns: 1fr;
    }

    h1 {
        font-size: 2rem;
    }

    .panel {
        padding: 80px 0 60px;
    }

    .flex-between {
        flex-direction: column;
        align-items: flex-start;
        gap: 16px;
    }

    .socials a {
        margin-left: 0;
        margin-right: 24px;
    }
}

/* Premium UI Components */
.cta-banner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 40px 48px;
    border: 1px solid var(--border);
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.02);
    margin-top: 48px;
    gap: 40px;
    text-align: left;
}

.cta-banner .text {
    flex: 1;
}

.cta-banner h3 {
    font-size: 1.25rem;
    margin-bottom: 12px;
    color: var(--brand);
    font-family: var(--font-ja);
}

.cta-banner .text p {
    margin-bottom: 0;
    line-height: 1.8;
    color: var(--muted);
    font-size: 0.95rem;
}

.cta-banner .btn {
    flex-shrink: 0;
}

@media (max-width: 768px) {
    .cta-banner {
        flex-direction: column;
        text-align: center;
        padding: 32px 24px;
        gap: 24px;
    }

    .cta-banner .btn {
        width: 100%;
    }

    .plan-compare-table th,
    .plan-compare-table td {
        padding: 14px;
        font-size: 0.9rem;
    }

    .works-policy-note {
        padding: 28px 24px;
    }
}

.premium-flow {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
    margin-top: 48px;
}

.flow-item {
    position: relative;
    padding: 48px 32px;
    background: rgba(255, 255, 255, 0.01);
    border: 1px solid var(--border);
    border-radius: 12px;
    transition: all 0.4s var(--ease);
    z-index: 1;
    overflow: hidden;
}

.flow-item:hover {
    border-color: var(--brand);
    background: rgba(219, 178, 120, 0.05);
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
}

.flow-item .number {
    font-family: var(--font-en);
    font-size: 4rem;
    font-weight: 700;
    color: var(--brand);
    opacity: 0.08;
    position: absolute;
    top: -10px;
    right: 15px;
    z-index: -1;
}

.flow-item h3 {
    font-size: 1.15rem;
    margin-bottom: 16px;
    color: var(--brand);
    font-family: var(--font-ja);
    font-weight: 600;
}

.flow-item p {
    font-size: 0.9rem;
    color: var(--muted);
    line-height: 1.8;
    margin: 0;
}

@media (max-width: 992px) {
    .premium-flow {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 576px) {
    .premium-flow {
        grid-template-columns: 1fr;
    }
}

@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }

    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

.text-center {
    text-align: center !important;
}

.mb-3 {
    margin-bottom: 24px !important;
}

.mt-4 {
    margin-top: 32px !important;
}

/* Premium Timeline - High End Design */
.premium-timeline {
    max-width: 900px;
    margin: 100px auto 0;
    position: relative;
    padding: 40px 0;
}

.premium-timeline::before {
    content: "";
    position: absolute;
    left: 50%;
    top: 0;
    bottom: 0;
    width: 1px;
    background: linear-gradient(
        to bottom,
        transparent,
        var(--border) 10%,
        var(--border) 90%,
        transparent
    );
    transform: translateX(-0.5px);
}

.timeline-item {
    position: relative;
    width: 50%;
    padding: 20px 60px;
    box-sizing: border-box;
}

.timeline-item:nth-child(even) {
    left: 50%;
}

.timeline-item:nth-child(odd) {
    left: 0;
    text-align: right;
}

.timeline-dot {
    position: absolute;
    top: 30px;
    width: 12px;
    height: 12px;
    background: var(--bg);
    border: 2px solid var(--brand);
    border-radius: 50%;
    z-index: 10;
    box-shadow: 0 0 10px rgba(219, 178, 120, 0.4);
}

.timeline-item:nth-child(even) .timeline-dot {
    left: -6px;
}

.timeline-item:nth-child(odd) .timeline-dot {
    right: -6px;
}

.timeline-year {
    position: absolute;
    top: -20px;
    font-family: var(--font-en);
    font-size: 8rem;
    font-weight: 800;
    color: var(--brand);
    opacity: 0.03;
    pointer-events: none;
    z-index: 0;
    white-space: nowrap;
}

.timeline-item:nth-child(even) .timeline-year {
    left: 40px;
}

.timeline-item:nth-child(odd) .timeline-year {
    right: 40px;
}

.timeline-item-accent .timeline-year {
    opacity: 0.09;
}

.timeline-item-accent .timeline-dot {
    width: 14px;
    height: 14px;
    border-width: 3px;
    box-shadow: 0 0 16px rgba(219, 178, 120, 0.55);
}

.timeline-item-accent .timeline-content {
    background: rgba(219, 178, 120, 0.06);
    border-color: rgba(219, 178, 120, 0.28);
    box-shadow: 0 18px 42px rgba(0, 0, 0, 0.18);
}

.timeline-item-accent .timeline-content:hover {
    background: rgba(219, 178, 120, 0.1);
    border-color: rgba(219, 178, 120, 0.45);
    transform: translateY(-7px) scale(1.01);
    box-shadow: 0 24px 52px rgba(219, 178, 120, 0.12);
}

.timeline-item-accent .year-small {
    color: #f0c98b;
}

.timeline-item-accent .timeline-content h4 {
    color: var(--brand);
}

.timeline-content {
    position: relative;
    z-index: 1;
    background: rgba(255, 255, 255, 0.03);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.05);
    padding: 32px;
    border-radius: 12px;
    transition: all 0.4s var(--ease);
}

.timeline-content:hover {
    background: rgba(255, 255, 255, 0.06);
    border-color: rgba(219, 178, 120, 0.3);
    transform: translateY(-5px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
}

.year-small {
    display: block;
    font-family: var(--font-en);
    font-size: 0.75rem;
    letter-spacing: 0.2em;
    color: var(--brand);
    margin-bottom: 12px;
    font-weight: 600;
}

.timeline-content h4 {
    font-size: 1.4rem;
    margin-bottom: 16px;
    color: #fff;
    font-family: var(--font-ja);
}

.timeline-content p {
    font-size: 0.95rem;
    line-height: 1.8;
    color: var(--muted);
    margin: 0;
}

@media (max-width: 768px) {
    .section-header.center > * {
        max-width: 100%;
    }

    .section-header.center h1,
    .section-header.center h2,
    .section-header.center .lead {
        width: 100%;
        text-wrap: balance;
        line-break: strict;
        word-break: normal;
        overflow-wrap: normal;
    }

    .section-header.center h1,
    .section-header.center h2 {
        font-size: clamp(1.6rem, 7vw, 2.2rem);
        line-height: 1.35;
    }

    .section-header.center .lead {
        font-size: 0.98rem;
        line-height: 1.75;
    }

    .wedding-price-list {
        grid-template-columns: 1fr;
    }

    .wedding-price-list dd {
        margin: 0 0 8px;
    }

    .wedding-album-table {
        min-width: 0;
        table-layout: fixed;
    }

    .wedding-album-table th,
    .wedding-album-table td {
        white-space: normal !important;
        word-break: break-word;
    }

    #wedding-detail .plan-card.featured.horizontal {
        display: block;
    }

    #wedding-detail .plan-card.featured.horizontal > div {
        padding-right: 0 !important;
    }

    #wedding-detail .plan-card.featured.horizontal > div + div {
        margin-top: 20px;
    }

    .entry-followup-card {
        flex-direction: column;
        align-items: stretch;
        text-align: center;
    }

    .entry-followup-card .btn {
        width: 100%;
    }

    .premium-timeline::before {
        left: 20px;
    }

    .timeline-item {
        width: 100%;
        left: 0 !important;
        padding: 20px 20px 20px 50px;
        text-align: left !important;
    }

    .timeline-dot {
        left: 14px !important;
    }

    .timeline-year {
        font-size: 4rem;
        top: -10px;
        left: 50px !important;
        opacity: 0.05;
    }
}

/* Force center for PORTFOLIO header (last override) */
#gallery .section-header.center.portfolio-header {
    max-width: 760px !important;
    margin-left: auto !important;
    margin-right: auto !important;
    text-align: center !important;
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
}

#gallery .section-header.center.portfolio-header * {
    text-align: center !important;
}

.gallery-grid figure img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.gallery-grid figure {
    aspect-ratio: 4 / 3;
    /* 好みで 3/2 や 1/1 もOK */
    overflow: hidden;
    border-radius: 18px;
    /* 既存に合わせて */
}

.gallery-grid figure img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.br-sp {
    display: none;
}

@media (max-width: 640px) {
    .br-sp {
        display: inline;
    }
}

/* それでもはみ出す場合の強制版 */
.entry-content img,
.wp-block-image img {
    width: 100% !important;
    max-width: 100% !important;
    height: auto !important;
}

/* =========================
   WP content images fix
   (portfolio single / archive / taxonomy)
========================= */

/* 画像・動画は親幅に収める */
.entry-content img,
.entry-content video,
.entry-content iframe,
.entry-content embed,
.entry-content object,
.wp-block-image img,
.wp-block-gallery img,
.wp-block-media-text__media img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* figure の余白や幅崩れ対策 */
.entry-content figure,
.wp-block-image,
.wp-block-gallery {
    max-width: 100%;
    margin: 0;
}

/* ギャラリー/本文エリアのはみ出し保険（デバッグ用にも効く） */
.entry-content,
.single-portfolio .content,
.taxonomy-portfolio_type .content,
.post-type-archive-portfolio .content {
    overflow-x: hidden;
}

/* Single Portfolio & Taxonomy header centering */
.single-portfolio .content,
.tax-portfolio_type .content {
    max-width: 100%;
}

.single-portfolio .entry-header,
.tax-portfolio_type .archive-header {
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.single-portfolio .entry-header .eyebrow,
.single-portfolio .entry-header h1,
.single-portfolio .entry-header h2,
.tax-portfolio_type .archive-header .eyebrow,
.tax-portfolio_type .archive-header h1,
.tax-portfolio_type .archive-header h2 {
    width: 100%;
    margin-left: auto;
    margin-right: auto;
    text-align: center;
    overflow-wrap: anywhere;
    /* 画面はみ出し対策 */
    word-break: break-word;
}

.single-portfolio .entry-header .line,
.tax-portfolio_type .archive-header .line {
    margin-left: auto;
    margin-right: auto;
}

/* ページネーション全体 */
.pagination,
.nav-links {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 0.5rem;
    margin-top: 2rem;
}

/* 数字/前後ボタン（a） */
.pagination a,
.nav-links a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 44px;
    height: 44px;
    padding: 0 14px;
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: 999px;
    text-decoration: none;
    line-height: 1;
}

/* 現在ページ */
.pagination .current,
.nav-links .current {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 44px;
    height: 44px;
    padding: 0 14px;
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, 0.35);
    font-weight: 700;
}

/* 矢印 */
.pagination .next,
.pagination .prev,
.nav-links .next,
.nav-links .prev {
    font-weight: 700;
}

.pagination ul {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    list-style: none;
    padding: 0;
    margin: 0;
}

.pagination a,
.pagination span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 44px;
    height: 44px;
    padding: 0 14px;
    border-radius: 999px;
    text-decoration: none;
    border: 1px solid rgba(255, 255, 255, 0.18);
}

.pagination .current {
    border-color: rgba(255, 255, 255, 0.35);
    font-weight: 700;
}

/* フィルタ高速化 */
.gallery-grid figure {
    transition:
        0.35s opacity,
        0.35s transform;
}

/* loader */
.gallery-loader {
    display: flex;
    justify-content: center;
    padding: 40px 0;
}

.spinner {
    width: 38px;
    height: 38px;
    border: 3px solid rgba(255, 255, 255, 0.25);
    border-top-color: white;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

/* =========================
   LOADING CONTROL FIX
   JSが動く時だけ隠す
========================= */
.js body.loading {
    opacity: 0;
    visibility: hidden;
}

body.loading {
    opacity: 1 !important;
    visibility: visible !important;
}

/* =================================
   WP FIX PACK
   TAKANORI OKAMOTO THEME
================================= */

/* ---------- 背景画像をWP用に修正 ---------- */

/* ---------- 背景画像指定をHTML側へ移動 (PSI対策) ---------- */

/*
.hero {
    background-image: url("/wp-content/themes/takanori-okamoto/assets/images/home-hero-family-01.webp");
}

.family-img {
    background-image: url("/wp-content/themes/takanori-okamoto/assets/images/family-daily-01.webp");
}

.wedding-img {
    background-image: url("/wp-content/themes/takanori-okamoto/assets/images/wedding-day-01.webp");
}
*/

/* ---------- reveal failsafe (Removed: JS restored) ---------- */

/* ---------- gallery崩れ防止 ---------- */
.gallery-grid figure.hide {
    display: none !important;
    position: static !important;
    transform: none !important;
}

/* ---------- Skip Navigation ---------- */
.skip-link {
    position: absolute;
    top: -100%;
    left: 16px;
    z-index: 10000;
    padding: 12px 24px;
    background: var(--brand);
    color: var(--bg);
    font-family: var(--font-ja);
    font-size: 0.9rem;
    font-weight: 600;
    border-radius: 0 0 8px 8px;
    text-decoration: none;
    transition: top 0.3s ease;
}

.skip-link:focus {
    top: 0;
}

/* ---------- JSロード演出の安全版 (Removed: JS restored) ---------- */

/* ---------- WP画像安全保険 ---------- */

img {
    max-width: 100%;
    height: auto;
}

/* ---------- grid崩れ最終保険 ---------- */

.gallery-grid {
    position: relative;
}

.gallery-grid figure {
    position: relative;
}

/* ---------- 強制レイアウト安定 ---------- */

.panel {
    overflow: visible;
}

.content {
    position: relative;
    z-index: 2;
}

/* =========================
   WP BASE PATCH (add to bottom)
========================= */

/* mainが詰む/はみ出すの保険 */
.site-main {
    display: block;
}

.site-main > * {
    max-width: 100%;
}

/* Gutenberg / entry content spacing */
.entry-content,
.wp-block-post-content {
    width: min(1000px, 92%);
    margin: 0 auto;
}

.entry-content > * + *,
.wp-block-post-content > * + * {
    margin-top: 16px;
}

.entry-content h1,
.entry-content h2,
.entry-content h3,
.entry-content h4 {
    margin-top: 32px;
}

/* list/table default */
.entry-content ul,
.entry-content ol {
    padding-left: 1.25em;
}

.entry-content li + li {
    margin-top: 0.35em;
}

.entry-content table {
    width: 100%;
    border-collapse: collapse;
    overflow: hidden;
    border-radius: 12px;
    border: 1px solid var(--border);
}

.entry-content th,
.entry-content td {
    padding: 12px 14px;
    border-bottom: 1px solid var(--border);
    vertical-align: top;
}

.entry-content a {
    color: var(--brand);
}

.entry-content a:hover {
    color: var(--brand-hover);
}

/* 固定ヘッダー分の食い込み対策（アンカー/見出し） */
:where(h1, h2, h3, h4, h5, h6)[id] {
    scroll-margin-top: 110px;
}

/* =========================
   WP WRAPPER "FRAME" KILLER
   変な白い枠（最大幅/余白/白背景）を潰す
   ※ style.css の一番最後に貼る
========================= */

/* 1) 背景を強制的にダークへ（他CSSに負けない） */
html,
body {
    background: var(--bg) !important;
}

/* 2) WPテーマ/プラグインが作る外枠を無効化 */
#page,
.site,
.site-content,
.site-main,
.content-area,
.wrap,
.container,
.wp-site-blocks,
.wp-site-blocks > * {
    max-width: none !important;
    width: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
    background: transparent !important;
    box-shadow: none !important;
    border: 0 !important;
}

/* 3) main が“白い紙”になってるケース対策 */
main,
#main,
.site-main {
    background: transparent !important;
}

/* 4) まれに body に付く余白/枠線の保険 */
body {
    border: 0 !important;
    outline: 0 !important;
}

/* 5) 画像やfigureのデフォ余白で枠っぽく見えるのも潰す */
figure,
.wp-block-image,
.wp-block-group,
.wp-block-cover,
.wp-block-media-text {
    margin: 0 !important;
    padding: 0 !important;
    background: transparent !important;
    border: 0 !important;
    box-shadow: none !important;
}

/* =========================
   Smash Balloon Instagram Feed 調整
   テーマのカラースキームを強制継承
========================= */
#sb_instagram {
    background-color: transparent !important;
    padding: 20px 0 !important;
}

#sb_instagram .sbi_header_text h3,
#sb_instagram .sbi_header_text p,
#sb_instagram .sbi_bio,
#sb_instagram .sbi_header {
    background: transparent !important;
    color: var(--text) !important;
}

#sb_instagram .sbi_header_text h3 {
    font-family: var(--font-en) !important;
    font-size: 1.2rem !important;
    color: var(--brand) !important;
}

#sb_instagram .sbi_load_btn,
#sb_instagram .sbi_follow_btn a {
    background-color: var(--brand) !important;
    color: #000 !important;
    font-weight: 600 !important;
    border-radius: 4px !important;
}

#sb_instagram .sbi_follow_btn a:hover {
    background-color: var(--brand-hover) !important;
}

#sb_instagram .sbi_item {
    border-radius: 4px;
    overflow: hidden;
}

.tok-availability-calendar-header {
    margin-bottom: 24px;
}

.tok-availability-calendar-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 24px;
    align-items: start;
}

.tok-availability-calendar-label {
    margin: 0 0 16px;
    color: var(--brand);
    font-size: 0.82rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    font-family: var(--font-en);
}

@media (max-width: 980px) {
    .tok-availability-calendar-grid {
        grid-template-columns: 1fr;
    }
}

.tok-availability-calendar-grid {
    grid-template-columns: 1fr;
    gap: 20px;
}

.tok-availability-page-calendar .xcm-front-table tbody td,
.tok-availability-page-calendar .xcm-front-table tbody tr,
.tok-availability-page-calendar .xcm-front-table td.xcm-empty {
    height: 96px;
}

.tok-availability-page-calendar .xcm-front-table th,
.tok-availability-page-calendar .xcm-front-table td {
    padding: 8px 8px;
}

.tok-availability-page-calendar .xcm-date {
    font-size: 0.95rem;
}

.tok-availability-page-calendar .xcm-status {
    font-size: 0.78rem;
    margin-bottom: 4px;
    min-height: 1.2em;
}

.tok-availability-page-calendar .xcm-note {
    font-size: 0.72rem;
    line-height: 1.45;
}

.tok-availability-page-calendar .xcm-front .xcm-past-mask {
    min-height: 0;
}

@media (max-width: 768px) {
    .tok-availability-calendar-grid {
        gap: 16px;
    }

    .tok-availability-page-calendar .xcm-front-table tbody td,
    .tok-availability-page-calendar .xcm-front-table tbody tr,
    .tok-availability-page-calendar .xcm-front-table td.xcm-empty {
        height: 72px;
    }

    .tok-availability-page-calendar .xcm-front-table th,
    .tok-availability-page-calendar .xcm-front-table td {
        padding: 6px 4px;
    }

    .tok-availability-page-calendar .xcm-front-table th {
        font-size: 11px;
    }

    .tok-availability-page-calendar .xcm-date {
        font-size: 0.88rem;
    }

    .tok-availability-page-calendar .xcm-status {
        font-size: 0.68rem;
        margin-bottom: 2px;
    }

    .tok-availability-page-calendar .xcm-note {
        display: none;
    }
}

.tok-availability-page-calendar .xcm-front-table td.xcm-day {
    position: relative;
}

.tok-availability-page-calendar .xcm-front-table .xcm-status,
.tok-availability-page-calendar .xcm-front-table .xcm-past-mask {
    width: 100%;
    text-align: center;
    align-self: center;
    justify-self: center;
}

.tok-availability-page-calendar .xcm-front-table .xcm-status {
    margin-top: 10px;
}

@media (max-width: 768px) {
    .tok-availability-page-calendar .xcm-front-table .xcm-status {
        margin-top: 6px;
    }
}

.tok-related-link-card {
    margin-left: auto;
    margin-right: auto;
    max-width: 860px;
    padding: 24px 28px;
    border-radius: 12px;
    border: 1px solid var(--border);
    background: rgba(255, 255, 255, 0.025);
    text-align: center;
}

.tok-related-link-card .text h3 {
    margin: 0 0 10px;
    color: #fff;
    font-size: 1.15rem;
}

.tok-related-link-card .text p {
    margin: 0;
    color: var(--muted);
    line-height: 1.85;
}

.tok-related-link-card .cta-row {
    margin-top: 18px;
}

@media (max-width: 768px) {
    .tok-related-link-card {
        padding: 20px 18px;
    }

    .tok-related-link-card .text h3 {
        font-size: 1.02rem;
    }
}

@media (max-width: 768px) {
    #service-selection .fade-stagger {
        overflow: hidden;
    }

    #service-selection .fade-stagger[style] {
        padding: 28px 20px !important;
    }

    #service-selection .service-card .card-body[style] {
        padding: 24px 20px !important;
    }

    #service-selection .service-card .btn {
        width: 100%;
        font-size: 0.78rem;
        letter-spacing: 0.06em;
        padding: 12px 16px;
    }

    #service-selection .plan-compare-table {
        min-width: 0;
        table-layout: fixed;
    }

    #service-selection .plan-compare-table th,
    #service-selection .plan-compare-table td {
        padding: 12px 8px;
        font-size: 0.78rem;
        white-space: normal;
        overflow-wrap: anywhere;
        word-break: normal;
    }

    #service-selection .plan-compare-table tbody th {
        width: 24%;
    }

    #service-selection .sub {
        font-size: 0.9rem;
        line-height: 1.8;
    }
}

/* ==============================================
   Utility: spacing
   ============================================== */
.mt-1 {
    margin-top: 12px;
}

/* ==============================================
   Contact: response note
   ============================================== */
.contact-response-note {
    color: rgba(255, 255, 255, 0.78);
    margin-top: 14px;
    font-size: 0.92rem;
    line-height: 1.7;
}

/* ==============================================
   Contact: trust bar (social proof before form)
   ============================================== */
.contact-trust-bar {
    display: flex;
    gap: 0;
    border: 1px solid rgba(219, 178, 120, 0.25);
    border-radius: 10px;
    overflow: hidden;
    margin: 28px 0;
}

.contact-trust-bar__item {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 4px;
    padding: 20px 12px;
    background: rgba(219, 178, 120, 0.04);
    border-right: 1px solid rgba(219, 178, 120, 0.15);
    text-align: center;
}

.contact-trust-bar__item:last-child {
    border-right: none;
}

.contact-trust-bar__value {
    font-family: var(--font-en);
    font-size: 1.8rem;
    font-weight: 600;
    color: var(--brand);
    line-height: 1;
    letter-spacing: 0.02em;
}

.contact-trust-bar__value small {
    font-size: 0.9rem;
    font-weight: 400;
    margin-left: 2px;
    opacity: 0.8;
}

.contact-trust-bar__label {
    font-size: 0.75rem;
    color: var(--muted);
    letter-spacing: 0.04em;
    font-family: var(--font-ja);
    line-height: 1.4;
}

.contact-trust-bar__label small {
    display: inline;
    font-size: 0.7rem;
    opacity: 0.7;
}

@media (max-width: 600px) {
    .contact-trust-bar {
        flex-direction: column;
        border-radius: 8px;
    }

    .contact-trust-bar__item {
        flex-direction: row;
        justify-content: flex-start;
        gap: 12px;
        padding: 14px 16px;
        border-right: none;
        border-bottom: 1px solid rgba(219, 178, 120, 0.15);
    }

    .contact-trust-bar__item:last-child {
        border-bottom: none;
    }

    .contact-trust-bar__value {
        font-size: 1.5rem;
        min-width: 56px;
        text-align: right;
    }

    .contact-trust-bar__label {
        text-align: left;
    }
}

/* ==============================================
   Contact: LINE follow-up
   ============================================== */
.contact-line-alt {
    border-top: 1px solid var(--border);
    padding-top: 24px;
    margin-top: 32px;
    text-align: center;
}

.contact-line-alt p {
    font-size: 0.92rem;
    margin-bottom: 12px;
}

/* ==============================================
   Home: sub-link pair (availability + referral)
   ============================================== */
.home-sub-links {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    margin-top: 16px;
}

.home-sub-links .tok-related-link-card {
    margin: 0;
    max-width: none;
}

.tok-related-link-card--featured {
    border-color: rgba(219, 178, 120, 0.3);
    background: rgba(219, 178, 120, 0.06);
}

.tok-related-link-card--featured .text h3 {
    color: var(--brand);
}

.tok-related-link-card--featured .eyebrow {
    margin-bottom: 8px;
}

@media (max-width: 768px) {
    .home-sub-links {
        grid-template-columns: 1fr;
    }
}

/* ==============================================
   Hero: sub note
   ============================================== */
.hero-sub-note {
    max-width: 760px;
    color: rgba(255, 255, 255, 0.82);
    margin: 18px 0 0;
}

/* ==============================================
   Hero: trust bar
   ============================================== */
.hero-trust-bar {
    display: flex;
    flex-wrap: wrap;
    gap: 0;
    margin-top: 24px;
}

.hero-trust-bar__item {
    display: flex;
    align-items: baseline;
    gap: 6px;
    padding: 0 20px 0 0;
    margin: 2px 0;
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.6);
}

.hero-trust-bar__item + .hero-trust-bar__item {
    padding-left: 20px;
    border-left: 1px solid rgba(255, 255, 255, 0.18);
}

.hero-trust-bar__value {
    font-size: 1.05rem;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.92);
    letter-spacing: 0.01em;
}

.hero-trust-bar__value small {
    font-size: 0.72rem;
    font-weight: 400;
    margin-left: 1px;
}

@media (max-width: 480px) {
    .hero-trust-bar__item {
        padding: 0 14px 0 0;
        font-size: 0.75rem;
    }

    .hero-trust-bar__item + .hero-trust-bar__item {
        padding-left: 14px;
    }
}

/* ==============================================
   Pricing policy note box
   ============================================== */
.pricing-policy-note {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--border);
    padding: 28px 32px;
    border-radius: 8px;
    max-width: 820px;
    margin-left: auto;
    margin-right: auto;
}

.pricing-policy-note .eyebrow {
    margin-bottom: 12px;
}

.pricing-policy-note p:not(.eyebrow) {
    margin: 0;
    color: var(--muted);
    line-height: 1.9;
}

@media (max-width: 600px) {
    .pricing-policy-note {
        padding: 20px 18px;
    }
}

/* ==============================================
   FAQ: category headings
   ============================================== */
.faq-category-heading {
    margin-top: 48px;
}

.faq-category-heading--first {
    margin-top: 24px;
}

/* ==============================================
   Panel: fixed-header offset variants
   ============================================== */
.panel--full-offset {
    padding-top: 140px;
    min-height: 70vh;
    display: flex;
    align-items: center;
}

.panel--top-offset {
    padding-top: 140px;
}

.panel--sm-offset {
    padding-top: 100px;
}

/* ==============================================
   Utility: text helpers
   ============================================== */
.text-faded {
    opacity: 0.85;
}

.text-left {
    text-align: left;
}

/* ==============================================
   Utility: margin-bottom / text
   ============================================== */
.mb-1 {
    margin-bottom: 8px;
}

.text-muted {
    color: var(--muted);
}

/* ==============================================
   About / Wedding: section divider
   ============================================== */
.section-divider {
    border-top: 1px solid var(--border);
    padding-top: 48px;
}

.section-divider--sm {
    border-top: 1px solid var(--border);
    padding-top: 24px;
}

/* ==============================================
   About / Wedding: brand heading
   ============================================== */
.heading-brand {
    color: var(--brand);
    font-size: 1.5rem;
    margin-bottom: 24px;
}

/* ==============================================
   About / Wedding: surface card
   ============================================== */
.surface-card {
    background: rgba(255, 255, 255, 0.02);
    border-radius: 8px;
    border: 1px solid var(--border);
    padding: 32px;
}

.surface-card--lg {
    padding: 48px;
}

.surface-card--mb {
    margin-bottom: 24px;
}

/* ==============================================
   Wedding: plan checklist
   ============================================== */
.plan-checklist {
    margin-top: 24px;
    color: var(--muted);
    font-size: 0.9rem;
    line-height: 1.8;
    list-style: none;
    padding-left: 0;
}

.check-icon {
    color: var(--brand);
    margin-right: 8px;
}

/* ==============================================
   About: award list & meta label
   ============================================== */
.award-list {
    list-style: none;
    padding: 0;
}

.award-list li {
    margin-bottom: 12px;
}

.meta-label {
    color: var(--muted);
    font-family: var(--font-en);
    margin-right: 16px;
}

/* ==============================================
   About: disclosure toggle
   ============================================== */
.disclosure-toggle {
    cursor: pointer;
    color: var(--muted);
    font-size: 0.9rem;
    font-family: var(--font-en);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0.6;
    transition: opacity 0.3s;
}

.disclosure-toggle:hover {
    opacity: 1;
}

.disclosure-badge {
    border: 1px solid var(--border);
    padding: 8px 20px;
    border-radius: 20px;
}

/* ==============================================
   About: gear list
   ============================================== */
.gear-list h4 {
    margin-top: 32px;
    margin-bottom: 16px;
    color: var(--brand);
    font-size: 1.1rem;
    border-bottom: 1px solid var(--border);
    padding-bottom: 8px;
}

.gear-list ul {
    list-style: none;
    padding: 0;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
}

.gear-list li {
    color: var(--muted);
    font-family: var(--font-en);
    font-size: 0.9rem;
    position: relative;
    padding-left: 16px;
}

.gear-list li::before {
    content: "•";
    position: absolute;
    left: 0;
    color: var(--brand);
}

@media (max-width: 640px) {
    .gear-list ul {
        grid-template-columns: 1fr;
    }
}

/* ==============================================
   Wedding: plan card title
   ============================================== */
.plan-card-title {
    font-size: 1.3rem;
    margin-bottom: 8px;
}

/* ==============================================
   Utility: misc
   ============================================== */
.mt-0 {
    margin-top: 0 !important;
}

.cta-row--spread {
    justify-content: space-between;
}

/* ==============================================
   Utility: generated classes for template inline-style removal
   ============================================== */
.mb-1 { margin-bottom: 16px; }
.mb-2 { margin-bottom: 24px; }
.mb-section { margin-bottom: 40px; }
.mt-sm { margin-top: 12px; }
.mt-cta { margin-top: 28px; }

.text-white { color: #fff; }
.text-fine { font-size: 0.85rem; color: var(--muted); line-height: 1.6; }
.text-concept { font-size: 1.15rem; line-height: 2.2; font-family: var(--font-ja); }

.h2-reading {
    font-size: 1rem;
    font-family: var(--font-en);
    color: var(--muted);
    margin-left: 12px;
}

.surface-card--md { padding: 40px; }
.surface-card--accent {
    background: rgba(219, 178, 120, 0.05);
    border: 1px solid rgba(219, 178, 120, 0.25);
    padding: 48px;
    border-radius: 8px;
}

.card-body--surface {
    padding: 32px;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--border);
    border-top: none;
    border-bottom-left-radius: 12px;
    border-bottom-right-radius: 12px;
}

.card-img--h300 {
    height: 300px;
    background-size: cover;
    background-position: center;
}

.feature-title {
    font-size: 1.2rem;
    color: var(--brand);
}

.feature-grid--flush { margin: 0; }

.img-full { width: 100%; height: auto; }
.img-card { border-radius: 8px; border: 1px solid var(--border); }
.img-mb { margin-bottom: 48px; }
.img-contrast { filter: contrast(1.05); }
.img-vivid { filter: contrast(1.1) saturate(1.1); }

.h1-tagline { font-size: 0.7em; color: var(--brand); }

.plan-card-row { display: flex; gap: 24px; }
.plan-card-row__main { flex: 1; padding-right: 24px; }
.plan-card-row__body { flex: 1.5; }

.price--lg { font-size: 1.8rem; }
.price--unit { font-size: 1rem; }
.plan-feature-lead {
    font-weight: 500;
    font-size: 1.05rem;
    margin-top: 16px;
    color: var(--brand);
    line-height: 1.5;
}

.plan-h4 { font-size: 1.2rem; margin-bottom: 8px; }

.pricing-h4 {
    font-size: 1.2rem;
    margin-bottom: 16px;
    border-bottom: 1px solid var(--border);
    padding-bottom: 8px;
}

.dl-profile {
    display: grid;
    grid-template-columns: 100px 1fr;
    gap: 16px;
    margin: 0;
    line-height: 1.6;
}

.dl-price {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 12px 24px;
    margin: 0;
    line-height: 1.6;
}

.plan-compare {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
    max-width: 700px;
    margin: 0 auto;
}

.plan-compare__item {
    padding: 20px;
    border: 1px solid var(--border);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.02);
}

.plan-compare__item--accent {
    border-color: var(--brand);
    background: rgba(219, 178, 120, 0.05);
}

.category-filter {
    display: flex;
    justify-content: center;
    gap: 10px;
    flex-wrap: wrap;
    margin-bottom: 24px;
}

.btn--label { pointer-events: none; opacity: 0.9; }

.section-header--compact { margin-bottom: 24px; }
.section-header--mb20 { margin-bottom: 20px; }
.section-sep { border-top: 1px solid var(--border); padding-top: 48px; }
.panel--cta { padding: 100px 0; }
.sub--narrow { max-width: 760px; margin-left: auto; margin-right: auto; }

.about-profile {
    background: rgba(255, 255, 255, 0.02);
    padding: 48px;
    border-radius: 8px;
    display: flex;
    gap: 48px;
}

.about-profile__main { flex: 1; }
.about-profile__photo { flex: 0.6; }
.about-img { width: 100%; border-radius: 8px; border: 1px solid var(--border); }

.philosophy-title {
    color: #fff;
    font-size: 1.1rem;
    margin-bottom: 12px;
    font-family: var(--font-en);
}

.philosophy-text { color: var(--muted); font-size: 0.9rem; line-height: 1.8; }

.table-scroll { overflow-x: auto; }

.pricing-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.95rem;
    text-align: left;
}

.pricing-table thead tr { border-bottom: 1px solid var(--brand); }
.pricing-table tbody tr { border-bottom: 1px solid var(--border); }
.pricing-table tbody tr:last-child { border-bottom: none; }
.pricing-table th { padding: 12px; color: var(--muted); font-weight: normal; }
.pricing-table th:first-child { padding-left: 0; min-width: 140px; }
.pricing-table th:last-child { padding-right: 0; }
.pricing-table td { padding: 16px 12px; }
.pricing-table td:first-child { padding-left: 0; font-weight: 500; }
.pricing-table td:last-child { padding-right: 0; font-size: 0.85rem; color: var(--muted); line-height: 1.6; }
.pricing-table .no-wrap { white-space: nowrap; }

.episode-box {
    background: rgba(255, 255, 255, 0.02);
    padding: 40px;
    border-radius: 8px;
    border: 1px solid var(--border);
}

.episode-box__title { font-size: 1.35rem; margin-bottom: 16px; color: #fff; }
.cta-heading { font-size: 2rem; margin-bottom: 24px; }
.cta-intro { margin-bottom: 40px; color: var(--muted); }
.gallery-caption { color: var(--muted); margin-top: 12px; font-size: 0.95rem; }
.premium-flow--flush { margin-top: 0; }
.policy-note { color: var(--muted); margin: 0; max-width: 760px; line-height: 1.9; }

.mb-sm { margin-bottom: 12px; }
.mb-0 { margin-bottom: 0; }
.mb-4 { margin-bottom: 32px; }
.text-italic { font-style: italic; }
.text-sm { font-size: 0.9rem; line-height: 1.8; }
.episode-p { font-size: 0.95rem; line-height: 1.95; }

.notice-card {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--border);
    padding: 24px 28px;
    border-radius: 8px;
    max-width: 860px;
    margin-left: auto;
    margin-right: auto;
}

.plan-guide-h4 { font-size: 1.1rem; margin-bottom: 20px; color: #fff; }
.plan-compare__label { font-weight: 600; margin-bottom: 4px; }
.plan-compare__label--brand { color: var(--brand); }
.full-width { grid-column: 1 / -1; }
.narrow-720 { max-width: 720px; margin-left: auto; margin-right: auto; }
.narrow-640 { max-width: 640px; margin-left: auto; margin-right: auto; }

@media (max-width: 768px) {
    .plan-card-row { flex-direction: column; }
    .plan-card-row__main { padding-right: 0; }
    .about-profile { flex-direction: column; padding: 32px; gap: 32px; }
    .about-profile__photo { flex: unset; }
    .plan-compare { grid-template-columns: 1fr; }
}

/* =========================
   BLOG SINGLE (2-COLUMN)
========================= */
.blog-single-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 320px;
    gap: 56px;
    align-items: start;
}

.blog-post-header h1 {
    font-size: clamp(1.8rem, 3.4vw, 2.6rem);
    line-height: 1.4;
}

.blog-cat-link {
    color: var(--brand);
    text-decoration: none;
    margin-left: 12px;
    border-bottom: 1px solid transparent;
    transition: border-color 0.3s var(--ease);
}

.blog-cat-link:hover {
    border-color: var(--brand);
}

.blog-post-thumb {
    margin: 0 0 32px;
    border-radius: 8px;
    overflow: hidden;
    border: 1px solid var(--border);
}

.blog-post-thumb img {
    display: block;
    width: 100%;
    height: auto;
}

.blog-post-body {
    line-height: 1.95;
    color: var(--text);
}

.blog-post-body h2 {
    font-size: 1.5rem;
    margin: 2.2em 0 0.8em;
    padding-bottom: 12px;
    border-bottom: 1px solid var(--border);
}

.blog-post-body h3 {
    font-size: 1.2rem;
    margin: 1.8em 0 0.6em;
}

.blog-post-body p {
    margin-bottom: 1.4em;
    color: var(--muted);
}

.blog-post-body img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
}

.blog-post-body a {
    color: var(--brand);
}

.blog-post-body blockquote {
    margin: 1.6em 0;
    padding: 20px 28px;
    border-left: 2px solid var(--brand);
    background: rgba(255, 255, 255, 0.02);
    border-radius: 0 8px 8px 0;
}

.blog-post-body ul,
.blog-post-body ol {
    margin: 0 0 1.4em;
    padding-left: 1.4em;
    color: var(--muted);
}

.post-nav {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    margin-top: 48px;
    padding-top: 32px;
    border-top: 1px solid var(--border);
}

.post-nav__item {
    display: flex;
    flex-direction: column;
    gap: 6px;
    padding: 16px 20px;
    border: 1px solid var(--border);
    border-radius: 8px;
    text-decoration: none;
    transition: border-color 0.3s var(--ease), background 0.3s var(--ease);
}

.post-nav__item:hover {
    border-color: var(--border-focus);
    background: rgba(255, 255, 255, 0.02);
}

.post-nav__item--next {
    text-align: right;
}

.post-nav__item--empty {
    border: none;
    pointer-events: none;
}

.post-nav__dir {
    font-size: 0.75rem;
    letter-spacing: 0.1em;
    color: var(--brand);
}

.post-nav__title {
    font-size: 0.9rem;
    color: var(--text);
    line-height: 1.5;
}

.blog-sidebar__sticky {
    position: sticky;
    top: 96px;
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.blog-side-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 28px;
}

.blog-side-card__title {
    font-size: 1.05rem;
    margin-bottom: 12px;
    color: var(--text);
}

.blog-side-card p {
    font-size: 0.9rem;
    color: var(--muted);
    line-height: 1.8;
}

.blog-author-card {
    text-align: center;
}

.blog-author-card__photo img {
    width: 96px;
    height: 96px;
    border-radius: 50%;
    object-fit: cover;
    margin-bottom: 16px;
    border: 1px solid var(--border);
}

.blog-author-card__name {
    font-family: var(--font-ja);
    font-size: 1.15rem;
    color: var(--text);
    margin-bottom: 2px;
}

.blog-author-card__role {
    font-size: 0.75rem;
    letter-spacing: 0.08em;
    color: var(--brand);
    margin-bottom: 12px;
}

.blog-author-card__bio {
    text-align: left;
    margin-bottom: 20px;
}

.blog-side-cta__buttons {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-top: 16px;
}

.btn.block {
    display: block;
    text-align: center;
}

.blog-related-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.blog-related-list li {
    border-bottom: 1px solid var(--border);
}

.blog-related-list li:last-child {
    border-bottom: none;
}

.blog-related-list a {
    display: flex;
    flex-direction: column;
    gap: 4px;
    padding: 14px 0;
    text-decoration: none;
}

.blog-related-list__date {
    font-size: 0.72rem;
    letter-spacing: 0.08em;
    color: var(--brand);
}

.blog-related-list__title {
    font-size: 0.9rem;
    color: var(--text);
    line-height: 1.6;
    transition: color 0.3s var(--ease);
}

.blog-related-list a:hover .blog-related-list__title {
    color: var(--brand);
}

@media (max-width: 960px) {
    .blog-single-layout {
        grid-template-columns: 1fr;
        gap: 48px;
    }

    .blog-sidebar__sticky {
        position: static;
    }

    .post-nav {
        grid-template-columns: 1fr;
    }

    .post-nav__item--next {
        text-align: left;
    }

    .post-nav__item--empty {
        display: none;
    }
}
