/*
Theme Name: Takanori Okamoto Renewal
Theme URI: https://takanori-okamoto.com
Author: XION
Description: WordPress theme based on the current static renewal design.
Version: 3.0.1
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;
    /* 見出し＝明朝、本文＝ゴシック。暗背景 x 明朝 x 小サイズは可読性が落ちる */
    --font-ja-display: "Shippori Mincho", serif;
    --font-ja:
        "Hiragino Sans", "Hiragino Kaku Gothic ProN", "Noto Sans JP",
        "Yu Gothic Medium", "Yu Gothic", Meiryo, sans-serif;

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

    /*
     * 以下はこのテーマで実際に使われている値を集計して段にしたもの。
     * 新しく決めた値ではないので、置き換えても見た目は変わらない。
     * 段から外れた値（6/10/14/18/22/28/36px など）はまだ生のまま残っている。
     */

    /* 間隔: 4pxグリッド。使用頻度は 24 > 16 > 32 > 12 > 20 > 8 の順 */
    --space-1: 4px;
    --space-2: 8px;
    --space-3: 12px;
    --space-4: 16px;
    --space-5: 20px;
    --space-6: 24px;
    --space-8: 32px;
    --space-10: 40px;
    --space-12: 48px;

    /* 角丸: 8px が全体の半分を占める */
    --radius-sm: 4px;
    --radius-md: 8px;
    --radius-lg: 12px;
    --radius-pill: 999px;

    /* 面の重ね: 暗背景に白を薄く乗せる。数値の近いものが乱立していた受け皿 */
    --surface-1: rgba(255, 255, 255, 0.02);
    --surface-2: rgba(255, 255, 255, 0.03);
    --surface-3: rgba(255, 255, 255, 0.06);
    --border-strong: rgba(255, 255, 255, 0.18);

    /* 影: 実体のある段差のみ。ブランドのグローとパルスは個別のまま */
    --shadow-md: 0 20px 40px rgba(0, 0, 0, 0.2);
}

* {
    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-display);
    font-weight: 500;
    margin: 0 0 var(--space-4);
    line-height: 1.3;
    letter-spacing: 0.03em;
    color: var(--text);
    /* 最終行に1文字だけ残る行落ちを防ぐ。行の長さを均して割り付ける。
       これまで .section-header.center にしか当たっておらず、
       カード内の見出しが取りこぼされていた。 */
    text-wrap: balance;
    line-break: strict;
    word-break: normal;
    /* 文節で折る。対応ブラウザ（Chrome系）だけが解釈し、
       非対応（Safari等）は上の normal のまま。 */
    word-break: auto-phrase;
    overflow-wrap: normal;
}

/* 文節の区切りを明示するための単位。auto-phrase 非対応のブラウザ（Safari等）向け。
   inline-block なので、収まるときは文節ごとに折れ、収まらないときだけ内部で折れる。
   nowrap にすると狭い画面ではみ出すため、あえて付けない。 */
.tok-phrase {
    display: inline-block;
}

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 var(--space-4);
    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: var(--space-6) 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: var(--space-4) 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;
    /* タップ領域44px */
    display: inline-flex;
    align-items: center;
    min-height: 44px;
    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: var(--space-8);
}

/* 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);
}

/* page = そのページ自身 / true = その配下を見ている */
.site-header nav a[aria-current] {
    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]::after {
    transform: scaleX(1);
    transform-origin: left;
}

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

.nav-blog {
    position: relative;
}

.nav-blog__head {
    display: flex;
    align-items: center;
    gap: 3px;
}

.site-header nav .nav-blog__toggle {
    display: inline-grid;
    place-items: center;
    width: 24px;
    height: 24px;
    margin: 0 -8px 0 0;
    padding: 0;
    color: var(--text);
    background: transparent;
    border: 0;
    border-radius: 50%;
    cursor: pointer;
    transition: color 0.3s ease;
}

.nav-blog__toggle svg {
    transition: transform 0.3s var(--ease);
}

.nav-blog__submenu {
    position: absolute;
    top: calc(100% + 14px);
    left: 50%;
    z-index: 2;
    min-width: 230px;
    margin: 0;
    padding: 10px;
    list-style: none;
    background: rgba(20, 20, 22, 0.98);
    border: 1px solid var(--border);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transform: translate(-50%, -8px);
    transition:
        opacity 0.22s var(--ease),
        transform 0.22s var(--ease);
}

.nav-blog__submenu::before {
    content: "";
    position: absolute;
    top: -14px;
    left: 0;
    width: 100%;
    height: 14px;
}

.site-header nav .nav-blog__submenu a {
    display: block;
    padding: var(--space-2) 10px;
    font-family: var(--font-ja);
    font-size: 0.78rem;
    letter-spacing: 0.04em;
    line-height: 1.5;
    white-space: nowrap;
}

.nav-blog:hover > .nav-blog__submenu,
.nav-blog:focus-within > .nav-blog__submenu,
.nav-blog.is-open > .nav-blog__submenu {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: translate(-50%, 0);
}

.nav-blog:hover .nav-blog__toggle,
.nav-blog:focus-within .nav-blog__toggle,
.nav-blog.is-open .nav-blog__toggle,
.nav-blog.is-active .nav-blog__link {
    color: var(--brand);
}

.nav-blog:hover .nav-blog__toggle svg,
.nav-blog:focus-within .nav-blog__toggle svg,
.nav-blog.is-open .nav-blog__toggle svg {
    transform: rotate(180deg);
}

.nav-blog.is-active .nav-blog__link::after {
    transform: scaleX(1);
    transform-origin: left;
}

.nav-blog.is-closed > .nav-blog__submenu {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transform: translate(-50%, -8px);
}

.nav-blog.is-closed .nav-blog__toggle svg {
    transform: rotate(0deg);
}

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: var(--space-12);
}

.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: var(--radius-pill);
  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: var(--space-5);
}

.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%),
    var(--surface-1);
  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: var(--radius-pill);
  border-color: rgba(255,255,255,0.14);
  background: var(--surface-1);
  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: var(--surface-1);
}

.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: var(--space-6) 28px;
  border-radius: 14px;
  background: var(--surface-2);
  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: var(--space-8);
}

@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: var(--space-6);
    border-radius: 2px;
}

.line.centered {
    margin: var(--space-6) auto 0;
}

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

.mt-2 {
    margin-top: var(--space-4);
}

.mt-3 {
    margin-top: var(--space-6);
}

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

.pt-3 {
    padding-top: var(--space-6);
}

.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: var(--space-8);
}

/* 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: var(--space-10) 0 0;
    border-radius: 10px;
    overflow: hidden;
}

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

/* エリアページの写真は人物が主役で、フレーム一杯に写っている。
   高さを固定して切り抜くと頭や足が切れるため、元の比率のまま出す。 */
.area-hero-visual img {
    height: auto;
    aspect-ratio: 3 / 2;
    object-fit: contain;
}

/* 関連記事カード。アイキャッチも人物が主役なので同じく元の比率で出す */
.area-post-card__visual {
    display: block;
    text-decoration: none;
}

.area-post-card .works-care-card__visual img {
    aspect-ratio: 3 / 2;
    object-fit: cover;
    transition: transform 0.6s var(--ease);
}

.area-post-card:hover .works-care-card__visual img {
    transform: scale(1.03);
}

/* 記事の抜粋の長さが違ってもボタンの高さを揃える */
.area-post-card .works-care-card__body > .text-muted {
    flex: 1 1 auto;
}

.area-post-card .works-care-card__body > .cta-row {
    margin-top: var(--space-6);
}

@media (prefers-reduced-motion: reduce) {
    .area-post-card:hover .works-care-card__visual img {
        transform: none;
    }
}

.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: var(--space-8);
    display: flex;
    gap: var(--space-4);
    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;
}

/* .cta-row は flex なので、親に text-center を付けてもボタンは左に寄る。
   中央寄せのブロック内では、ボタンも中央に揃える。 */
.text-center .cta-row {
    justify-content: center;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    font-family: var(--font-en);
    font-size: 0.875rem;
    letter-spacing: 0.1em;
    font-weight: 500;
    padding: 14px 28px;
    border-radius: var(--radius-sm);
    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: var(--surface-2);
    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: var(--space-6);
}

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

.cards-4 {
    display: grid;
    /* 1000px幅で4カラムだと本文が1行11文字になるため2カラム */
    grid-template-columns: repeat(2, 1fr);
    gap: var(--space-6);
}

.entry-followup {
    margin-top: var(--space-6);
    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: var(--space-6);
}

.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: var(--radius-md);
    padding: var(--space-8) var(--space-6);
    background: var(--surface-1);
    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: var(--radius-md);
    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: var(--space-6);
    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: var(--space-6);
    flex-grow: 1;
}

.card-body .micro-meta {
    color: var(--brand);
    font-size: 0.875rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    margin-bottom: var(--space-3);
    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: var(--space-6);
}

.plan-card {
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    padding: var(--space-10) var(--space-8);
    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: var(--space-12);
}

@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: var(--space-1) var(--space-3);
    border-radius: 20px;
}

.price {
    font-size: 2.2rem;
    font-weight: 600;
    font-family: var(--font-en);
    margin: var(--space-4) 0 var(--space-2);
    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.875rem;
    font-family: var(--font-ja);
    margin-top: var(--space-4);
    border-top: 1px dashed var(--border);
    padding-top: var(--space-4);
}

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

.sub {
    margin-top: var(--space-6);
    color: #7f7f8a;
    font-size: 0.875rem;
    letter-spacing: 0.05em;
}

/* Interactive Tabs & Gallery */
.tab-buttons {
    margin: var(--space-6) 0 var(--space-8);
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: var(--space-3);
}

.tab-btn {
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    /* 高さ44px（タップ領域）を確保 */
    padding: 11px var(--space-5);
    background: var(--surface-2);
    color: var(--muted);
    font: inherit;
    font-family: var(--font-ja);
    font-size: 0.875rem;
    letter-spacing: 0.05em;
    cursor: pointer;
    transition: all 0.3s var(--ease);
}

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

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

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-4);
}

.gallery-grid figure {
    margin: 0;
    border-radius: var(--radius-md);
    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: var(--space-12) 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: var(--radius-pill);
    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: var(--space-6) 0 var(--space-8);
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-6);
}

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

.feature-grid strong {
    display: block;
    margin-bottom: var(--space-2);
    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: var(--radius-md);
    background: linear-gradient(
        135deg,
        var(--surface-2) 0%,
        rgba(255, 255, 255, 0) 100%
    );
    padding: var(--space-8);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--space-6);
}

.banner-content strong {
    display: block;
    margin-bottom: var(--space-2);
    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: var(--space-6);
    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: var(--space-12);
}

.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: var(--space-2);
    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: var(--space-4);
}

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

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

.plan-compare-table thead th {
    color: #fff;
    background: var(--surface-2);
    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;
}

.biz-page .content.narrow,
.biz-page .surface-card,
.biz-page .surface-card--accent,
.biz-page .works-policy-note,
.biz-page .table-scroll {
    min-width: 0;
    max-width: 100%;
}

.works-editorial-visual {
    margin-right: 0;
    margin-left: 0;
}

.biz-page .surface-card + .works-editorial-visual {
    margin-top: 72px !important;
}

.works-editorial-visual__media {
    position: relative;
    overflow: hidden;
    border: 1px solid rgba(219, 178, 120, 0.22);
    border-radius: 10px;
    background: #101114;
}

.works-editorial-visual__media::after {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.018);
}

.works-editorial-visual__media img {
    display: block;
    width: 100%;
    height: auto;
    aspect-ratio: 1440 / 757;
    object-fit: cover;
}

.works-editorial-visual__caption {
    display: grid;
    grid-template-columns: 44px minmax(0, 1fr) minmax(240px, 0.82fr);
    gap: var(--space-6);
    align-items: start;
    margin-top: 18px;
    padding: 0 var(--space-1);
}

.works-editorial-visual__index,
.works-editorial-visual__label {
    color: var(--brand);
    font-family: var(--font-en);
    font-size: 0.64rem;
    letter-spacing: 0.16em;
    line-height: 1.4;
}

.works-editorial-visual__label {
    display: block;
    margin-bottom: var(--space-2);
}

.works-editorial-visual__caption strong {
    display: block;
    color: #fff;
    font-family: var(--font-ja-display);
    font-size: clamp(1.08rem, 1.7vw, 1.35rem);
    font-weight: 500;
    letter-spacing: 0.035em;
    line-height: 1.7;
}

.works-editorial-visual__caption p {
    margin: 23px 0 0;
    color: var(--muted);
    font-family: var(--font-ja);
    font-size: 0.84rem;
    line-height: 1.85;
}

.works-ai-feature {
    display: grid;
    grid-template-columns: minmax(0, 0.82fr) minmax(420px, 1.18fr);
    gap: 42px;
    align-items: center;
}

.works-ai-visual {
    overflow: hidden;
    margin: 0;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-md);
    background: #14151a;
}

.works-ai-visual img {
    display: block;
    width: 100%;
    height: auto;
    aspect-ratio: 1200 / 630;
    object-fit: cover;
}

.works-ai-visual figcaption {
    padding: var(--space-3) var(--space-4);
    color: rgba(255, 255, 255, 0.54);
    font-family: var(--font-ja);
    font-size: 0.72rem;
    line-height: 1.65;
    border-top: 1px solid var(--border);
}

.biz-page .works-care-card {
    display: flex;
    flex-direction: column;
    height: 100%;
    padding: 0;
    overflow: hidden;
}

.works-care-card__visual {
    flex: 0 0 auto;
    margin: 0;
    overflow: hidden;
    background: #101114;
    border-bottom: 1px solid rgba(219, 178, 120, 0.18);
}

.works-care-card__visual img {
    display: block;
    width: 100%;
    height: auto;
    aspect-ratio: 1200 / 632;
    object-fit: cover;
}

.works-care-card__body {
    display: flex;
    flex: 1;
    flex-direction: column;
    padding: 34px 36px 38px;
}

.works-care-card__body > .eyebrow {
    margin-bottom: var(--space-5);
}

.works-care-card__body > .text-fine:last-child {
    margin-top: auto !important;
    padding-top: var(--space-6);
}

.biz-page {
    --works-rule: rgba(219, 178, 120, 0.22);
}

/* 撮影ページからエリアページへ渡す導線 */
.tok-area-links {
    padding: var(--space-8) 34px;
    border: 1px solid var(--border);
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.015);
}

.tok-area-links__head h3 {
    margin: 6px 0 10px;
    color: var(--brand);
    font-family: var(--font-ja);
    font-size: 1.1rem;
    font-weight: 600;
}

.tok-area-links__head > p:last-child {
    margin: 0;
    color: var(--muted);
    font-family: var(--font-ja);
    font-size: 0.86rem;
    line-height: 1.8;
}

.tok-area-links__list {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin: 22px 0 0;
    padding: 0;
    list-style: none;
}

.tok-area-links__list a {
    display: inline-flex;
    align-items: center;
    padding: var(--space-2) 18px;
    border: 1px solid var(--border);
    border-radius: 20px;
    color: rgba(255, 255, 255, 0.82);
    font-family: var(--font-ja);
    font-size: 0.84rem;
    text-decoration: none;
    white-space: nowrap;
    transition:
        border-color 0.3s var(--ease),
        background 0.3s var(--ease),
        color 0.3s var(--ease);
}

.tok-area-links__list a:hover,
.tok-area-links__list a:focus-visible {
    border-color: var(--border-focus);
    background: rgba(219, 178, 120, 0.07);
    color: var(--brand);
}

@media (max-width: 640px) {
    .tok-area-links {
        padding: 26px 22px;
    }
}

/* パンくず。階層が2段以上あるページでだけ出る */
.tok-breadcrumb {
    margin-bottom: 28px;
}

.tok-breadcrumb ol {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 6px 10px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.tok-breadcrumb li {
    display: flex;
    align-items: center;
    gap: 6px 10px;
    font-family: var(--font-ja);
    font-size: 0.74rem;
    line-height: 1.6;
}

.tok-breadcrumb li + li::before {
    content: "/";
    color: rgba(219, 178, 120, 0.45);
}

.tok-breadcrumb a {
    color: var(--muted);
    text-decoration: none;
    transition: color 0.2s var(--ease);
}

.tok-breadcrumb a:hover,
.tok-breadcrumb a:focus-visible {
    color: var(--brand);
}

.tok-breadcrumb [aria-current="page"] {
    color: rgba(255, 255, 255, 0.72);
}

/* サービス紹介カード。説明文の行数が違っても価格とボタンの高さを揃える */
.biz-service-card {
    display: flex;
    flex-direction: column;
}

.biz-service-card > .text-muted {
    flex: 1 1 auto;
}

.biz-service-card .works-plan-price {
    margin-top: var(--space-6);
    margin-bottom: 0;
    /* 3カラム時はカード内寸235pxに対し数字が267px必要ではみ出すため、
       数字を縮めたうえで収まらない場合は（税込）〜を折り返す */
    flex-wrap: wrap;
    row-gap: var(--space-1);
    white-space: normal;
}

.biz-service-card .works-plan-price strong {
    font-size: clamp(1.6rem, 2.1vw, 2.1rem);
    white-space: nowrap;
}

.biz-service-card .works-plan-price span,
.biz-service-card .works-plan-price__label {
    white-space: nowrap;
}

/* 事業案内バナーの行き先リンク。文中のインラインリンクは44px要件の対象外だが、
   スマホで押しにくいので高さだけ確保する（見た目は文中のリンクのまま） */
#business-services .cta-banner .text p a {
    display: inline-flex;
    align-items: center;
    min-height: 44px;
}

/* 本文中のリンクはブラウザ既定の青のままになりやすいので、ここで拾う */
.biz-page .text-muted a,
.biz-page .text-fine a,
.biz-page .works-inclusion-list a,
.biz-page .faq-list p a {
    color: var(--brand);
    text-decoration: underline;
    text-underline-offset: 3px;
    text-decoration-thickness: 1px;
    transition: opacity 0.2s var(--ease);
}

.biz-page .text-muted a:hover,
.biz-page .text-fine a:hover,
.biz-page .works-inclusion-list a:hover,
.biz-page .faq-list p a:hover {
    opacity: 0.75;
}

.biz-page [id] {
    scroll-margin-top: 104px;
}

.biz-page .section-header--compact h2 {
    font-size: clamp(1.35rem, 2.4vw, 1.85rem);
    line-height: 1.5;
}

.biz-page .works-value-layout h2,
.biz-page .works-policy-note h2 {
    font-size: clamp(1.45rem, 2.6vw, 2rem);
    line-height: 1.5;
}

.biz-page .works-hero-copy {
    max-width: 820px;
    margin-right: auto;
    margin-left: auto;
}

.biz-page .works-hero-copy h1 {
    max-width: 780px;
}

.biz-page .works-hero-copy .lead {
    max-width: 760px;
}

.biz-page .works-hero-actions {
    justify-content: center;
    margin-top: 28px;
}

.biz-page .works-hero-assurance {
    margin: 18px auto 0;
    color: rgba(255, 255, 255, 0.58);
    font-family: var(--font-ja);
    font-size: 0.8rem;
    line-height: 1.75;
}

.works-proof-strip {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    margin-top: 38px;
    border-top: 1px solid var(--works-rule);
    border-bottom: 1px solid var(--works-rule);
}

.works-proof-strip > div {
    display: grid;
    gap: 5px;
    padding: 22px var(--space-5);
    text-align: center;
    border-left: 1px solid var(--border);
}

.works-proof-strip > div:first-child {
    border-left: 0;
}

.works-proof-strip strong {
    color: #fff;
    font-family: var(--font-en);
    font-size: clamp(1.35rem, 2.4vw, 1.9rem);
    font-weight: 500;
    letter-spacing: 0.04em;
}

.works-proof-strip span {
    color: var(--muted);
    font-family: var(--font-ja);
    font-size: 0.72rem;
    line-height: 1.6;
}

.works-paths {
    display: grid;
    grid-template-columns: minmax(240px, 0.72fr) minmax(0, 1.28fr);
    gap: 54px;
    padding: 44px 46px;
    border: 1px solid var(--works-rule);
    border-radius: 10px;
    background:
        radial-gradient(circle at 0 0, rgba(219, 178, 120, 0.07), transparent 38%),
        rgba(255, 255, 255, 0.012);
}

.works-paths__intro h2 {
    margin-bottom: var(--space-4);
    font-size: clamp(1.55rem, 2.8vw, 2.1rem);
    line-height: 1.45;
}

.works-paths__intro > p:last-child {
    color: var(--muted);
    font-family: var(--font-ja);
    font-size: 0.86rem;
    line-height: 1.8;
}

.works-paths__links {
    display: grid;
}

.works-paths__links a {
    position: relative;
    display: grid;
    grid-template-columns: 112px minmax(0, 1fr);
    gap: var(--space-1) 22px;
    padding: 18px 42px 18px 0;
    color: inherit;
    text-decoration: none;
    border-top: 1px solid var(--border);
    transition: border-color 0.3s var(--ease);
}

/* インデントは中身だけを transform で動かす。padding を動かすと行の幅が変わり、
   説明文の折り返し位置 → 行の高さ → 下の行の位置、と連鎖して再計算が走る。
   説明が2行になるエリア一覧で、マウスを動かすたびにガタつく原因になっていた。 */
.works-paths__links a > * {
    transition: transform 0.3s var(--ease);
}

.works-paths__links a:last-child {
    border-bottom: 1px solid var(--border);
}

.works-paths__links a::after {
    content: "↘";
    position: absolute;
    top: 50%;
    right: 4px;
    color: var(--brand);
    transform: translateY(-50%);
}

.works-paths__links a:hover,
.works-paths__links a:focus-visible {
    border-color: rgba(219, 178, 120, 0.4);
}

.works-paths__links a:hover > *,
.works-paths__links a:focus-visible > * {
    transform: translateX(10px);
}

@media (prefers-reduced-motion: reduce) {
    .works-paths__links a:hover > *,
    .works-paths__links a:focus-visible > * {
        transform: none;
    }
}

.works-paths__links span {
    grid-row: 1 / 3;
    color: var(--brand);
    font-family: var(--font-en);
    font-size: 0.62rem;
    letter-spacing: 0.13em;
}

.works-paths__links strong {
    color: #fff;
    font-family: var(--font-ja);
    font-size: 0.98rem;
    font-weight: 500;
}

.works-paths__links small {
    color: var(--muted);
    font-family: var(--font-ja);
    font-size: 0.73rem;
    line-height: 1.6;
}

.works-plan-fit {
    min-height: 4.6em;
    margin: 18px 0 0;
    padding-left: 14px;
    color: rgba(255, 255, 255, 0.72);
    font-family: var(--font-ja);
    font-size: 0.78rem;
    line-height: 1.7;
    border-left: 1px solid var(--brand);
}

.works-plan-fit span {
    display: block;
    margin-bottom: 3px;
    color: var(--brand);
    font-family: var(--font-en);
    font-size: 0.6rem;
    letter-spacing: 0.13em;
}

.works-section-cta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--space-8);
    margin-top: 22px;
    padding: var(--space-6) 28px;
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    background: rgba(255, 255, 255, 0.012);
}

.works-section-cta p {
    margin: 0;
    color: var(--muted);
    font-family: var(--font-ja);
    font-size: 0.82rem;
    line-height: 1.75;
}

.works-section-cta strong {
    color: #fff;
    font-weight: 500;
}

.works-section-cta .btn {
    flex: 0 0 auto;
}

/* 横並びバナー内では cta-row の上マージンが縦位置をずらす */
.works-section-cta .cta-row {
    margin-top: 0;
    flex: 0 0 auto;
}

.works-ai-usecases {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    border-top: 1px solid rgba(219, 178, 120, 0.24);
    border-bottom: 1px solid rgba(219, 178, 120, 0.24);
}

.works-ai-usecases article {
    padding: 26px var(--space-6);
    border-left: 1px solid var(--border);
}

.works-ai-usecases article:first-child {
    border-left: 0;
}

.works-ai-usecases span {
    display: block;
    margin-bottom: 10px;
    color: var(--brand);
    font-size: 0.62rem;
    letter-spacing: 0.13em;
}

.works-ai-usecases strong {
    display: block;
    color: #fff;
    font-family: var(--font-ja);
    font-size: 1rem;
    font-weight: 500;
}

.works-ai-usecases p {
    margin: 10px 0 0;
    color: var(--muted);
    font-family: var(--font-ja);
    font-size: 0.78rem;
    line-height: 1.75;
}

.works-faq {
    padding: var(--space-12) 0 var(--space-2);
}

.works-faq .section-header {
    margin-bottom: 28px;
}

.works-faq details {
    padding: 0;
    overflow: hidden;
    background: rgba(255, 255, 255, 0.015);
}

.works-faq summary {
    padding: var(--space-5) var(--space-6);
    color: #fff;
    font-family: var(--font-ja);
    font-size: 0.92rem;
    line-height: 1.7;
}

.works-faq details p {
    margin: 0;
    /* 罫線の下に余白がなく本文が詰まっていたため、標準の details p と同じ間隔に */
    padding: 18px var(--space-6) var(--space-6);
    color: var(--muted);
    font-family: var(--font-ja);
    font-size: 0.875rem;
    line-height: 1.85;
}

.works-consult-flow {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    max-width: 820px;
    margin: var(--space-8) auto;
    padding: 0;
    list-style: none;
    border-top: 1px solid rgba(219, 178, 120, 0.24);
    border-bottom: 1px solid rgba(219, 178, 120, 0.24);
}

.works-consult-flow li {
    display: grid;
    gap: 6px;
    padding: 22px 18px;
    border-left: 1px solid var(--border);
}

.works-consult-flow li:first-child {
    border-left: 0;
}

.works-consult-flow span {
    color: var(--brand);
    font-size: 0.62rem;
    letter-spacing: 0.14em;
}

.works-consult-flow strong {
    color: #fff;
    font-family: var(--font-ja);
    font-size: 0.95rem;
    font-weight: 500;
}

.works-consult-flow small {
    color: var(--muted);
    font-family: var(--font-ja);
    font-size: 0.72rem;
    line-height: 1.6;
}

/* 番号ではなく時期を置く場合は、01/02/03 より少し強く見せる */
.works-consult-flow--season span {
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 0.08em;
}

.works-consult-alt {
    margin: 18px 0 0;
    color: var(--muted);
    font-family: var(--font-ja);
    font-size: 0.78rem;
}

.works-consult-alt a {
    color: var(--brand);
    text-underline-offset: 4px;
}

@media (max-width: 900px) {
    .works-editorial-visual__caption {
        grid-template-columns: 36px minmax(0, 1fr);
        gap: var(--space-4);
    }

    .works-editorial-visual__caption p {
        grid-column: 2;
        margin-top: 0;
    }

    .works-ai-feature {
        grid-template-columns: 1fr;
        gap: 28px;
    }

    .works-paths {
        grid-template-columns: 1fr;
        gap: 28px;
    }

    .works-section-cta {
        align-items: flex-start;
        flex-direction: column;
    }

    .works-ai-usecases {
        grid-template-columns: 1fr;
    }

    .works-ai-usecases article {
        border-top: 1px solid var(--border);
        border-left: 0;
    }

    .works-ai-usecases article:first-child {
        border-top: 0;
    }
}

@media (max-width: 640px) {
    .biz-page .surface-card + .works-editorial-visual {
        margin-top: var(--space-12) !important;
    }

    .works-editorial-visual__media {
        border-radius: var(--radius-md);
    }

    .works-editorial-visual__caption {
        grid-template-columns: 1fr;
        gap: 10px;
        margin-top: var(--space-4);
    }

    .works-editorial-visual__index {
        display: none;
    }

    .works-editorial-visual__caption p {
        grid-column: 1;
        margin-top: 0;
    }

    .biz-page .surface-card--accent.works-ai-section {
        padding: 28px var(--space-5);
    }

    .works-ai-visual figcaption {
        padding: 11px 13px;
    }

    .works-care-card__body {
        padding: 28px var(--space-6) 30px;
    }

    .biz-page .works-hero-copy h1 {
        font-size: clamp(1.85rem, 9.5vw, 2.45rem);
        line-height: 1.38;
    }

    .biz-page .works-hero-copy .lead br {
        display: none;
    }

    .biz-page .works-hero-actions {
        display: grid;
        width: 100%;
        gap: 10px;
    }

    .biz-page .works-hero-actions .btn {
        width: 100%;
    }

    .works-proof-strip {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        margin-top: 30px;
    }

    .works-proof-strip > div:nth-child(3) {
        border-left: 0;
    }

    .works-proof-strip > div:nth-child(n + 3) {
        border-top: 1px solid var(--border);
    }

    .works-proof-strip > div {
        padding: 18px var(--space-3);
    }

    .works-paths {
        padding: 30px var(--space-6);
    }

    .works-paths__links a {
        grid-template-columns: 1fr;
        gap: 6px;
        padding: 18px var(--space-8) 18px 0;
    }

    .works-paths__links span {
        grid-row: auto;
    }

    .works-plan-fit {
        min-height: 0;
    }

    .works-section-cta {
        padding: 22px var(--space-5);
    }

    .works-section-cta .btn {
        width: 100%;
    }

    .works-ai-usecases article {
        padding: 22px 18px;
    }

    .works-consult-flow {
        grid-template-columns: 1fr;
    }

    .works-consult-flow li {
        border-top: 1px solid var(--border);
        border-left: 0;
    }

    .works-consult-flow li:first-child {
        border-top: 0;
    }

    .biz-page #works-consult {
        padding: var(--space-8) 22px;
    }

    .biz-page #works-consult h2 {
        font-size: 1.5rem;
        line-height: 1.55;
    }
}

.works-partnership-flow {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 56px minmax(0, 1fr) 56px minmax(0, 1fr);
    align-items: center;
    gap: var(--space-4);
    margin-top: var(--space-12);
    padding: var(--space-8) 36px;
    border: 1px solid rgba(219, 178, 120, 0.2);
    border-radius: var(--radius-lg);
    background:
        radial-gradient(circle at 50% 0%, rgba(219, 178, 120, 0.09), transparent 45%),
        rgba(255, 255, 255, 0.018);
}

.works-partnership-flow__item {
    display: grid;
    grid-template-columns: 56px minmax(0, 1fr);
    grid-template-rows: auto auto;
    column-gap: 18px;
    align-items: center;
    min-width: 0;
}

.works-partnership-flow__number {
    grid-column: 2;
    color: var(--brand);
    font-family: var(--font-en);
    font-size: 0.65rem;
    letter-spacing: 0.18em;
    line-height: 1;
}

.works-partnership-flow__icon {
    grid-row: 1 / span 2;
    display: grid;
    width: 56px;
    height: 56px;
    place-items: center;
    color: var(--brand);
    border: 1px solid rgba(219, 178, 120, 0.32);
    border-radius: 50%;
    background: rgba(219, 178, 120, 0.045);
}

.works-partnership-flow__icon svg {
    width: 30px;
    height: 30px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.4;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.works-partnership-flow__item strong {
    grid-column: 2;
    margin-top: 5px;
    color: #fff;
    font-family: var(--font-ja);
    font-size: 1.08rem;
    font-weight: 500;
    letter-spacing: 0.06em;
}

.works-partnership-flow__item p {
    grid-column: 1 / -1;
    margin: 14px 0 0;
    color: var(--muted);
    font-family: var(--font-ja);
    font-size: 0.82rem;
    line-height: 1.75;
}

.works-partnership-flow__line {
    width: 100%;
    height: 1px;
    background: linear-gradient(90deg, rgba(219, 178, 120, 0.18), rgba(219, 178, 120, 0.75), rgba(219, 178, 120, 0.18));
}

.works-plan-grid {
    align-items: stretch;
}

.works-plan-card {
    display: flex;
    flex-direction: column;
    height: 100%;
    padding: 34px var(--space-8);
}

.works-plan-card--grow {
    border-color: rgba(219, 178, 120, 0.42);
    background:
        linear-gradient(145deg, rgba(219, 178, 120, 0.085), rgba(255, 255, 255, 0.015) 58%);
}

.works-plan-card__head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--space-4);
    margin-bottom: var(--space-6);
}

.works-plan-card__head .eyebrow {
    margin: 0;
}

.works-plan-card__mark {
    display: grid;
    flex: 0 0 auto;
    width: 42px;
    height: 42px;
    place-items: center;
    color: var(--brand);
    border: 1px solid rgba(219, 178, 120, 0.28);
    border-radius: 50%;
    background: rgba(219, 178, 120, 0.035);
}

.works-plan-card__mark svg {
    width: 24px;
    height: 24px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.4;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.works-plan-card__title {
    min-height: 3.1em;
    margin: 0;
    color: #fff;
    font-family: var(--font-ja-display);
    font-size: clamp(1.35rem, 1.8vw, 1.75rem);
    font-weight: 500;
    letter-spacing: 0.025em;
    line-height: 1.55;
    word-break: keep-all;
    overflow-wrap: normal;
}

.works-plan-card__summary {
    min-height: 5.6em;
    margin: 18px 0 0;
    color: var(--muted);
    font-family: var(--font-ja);
    font-size: 0.9rem;
    line-height: 1.85;
}

.works-plan-price {
    display: flex;
    align-items: baseline;
    flex-wrap: nowrap;
    gap: 0 var(--space-2);
    margin-top: var(--space-6);
    padding: 18px 0;
    color: var(--muted);
    font-family: var(--font-ja);
    white-space: nowrap;
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
}

.works-plan-price strong {
    color: #fff;
    font-family: var(--font-en);
    font-size: clamp(1.85rem, 2.75vw, 2.75rem);
    font-weight: 500;
    letter-spacing: 0.01em;
    line-height: 1;
}

.works-plan-price strong small {
    margin-left: 2px;
    font-family: var(--font-ja);
    font-size: 0.48em;
    font-weight: 400;
}

.works-plan-price span {
    color: var(--muted);
    font-size: 0.75rem;
}

.works-plan-price__label {
    letter-spacing: 0.04em;
}

.works-plan-price__tax {
    opacity: 0.82;
}

.works-inclusion-list {
    display: grid;
    gap: 10px;
    margin: var(--space-6) 0 0;
    padding: 0;
    list-style: none;
}

.works-inclusion-list li {
    position: relative;
    padding-left: var(--space-5);
    color: var(--muted);
    font-family: var(--font-ja);
    font-size: 0.9rem;
    line-height: 1.75;
}

.works-inclusion-list li::before {
    content: "";
    position: absolute;
    top: 0.78em;
    left: 0;
    width: 7px;
    height: 7px;
    border: 1px solid var(--brand);
    border-radius: 50%;
    transform: translateY(-50%);
}

.works-plan-card__foot {
    margin: auto 0 0;
    padding-top: var(--space-6);
    color: rgba(255, 255, 255, 0.46);
    font-family: var(--font-ja);
    font-size: 0.74rem;
    line-height: 1.7;
}

.works-plan-comparison {
    padding: 0;
    overflow: hidden;
}

.works-plan-comparison > summary {
    padding: var(--space-5) var(--space-6);
}

.works-plan-comparison > summary::after {
    content: "+";
    color: var(--brand);
    font-family: var(--font-en);
    font-size: 1.25rem;
    font-weight: 300;
    transition: transform 0.3s var(--ease);
}

.works-plan-comparison[open] > summary::after {
    transform: rotate(45deg);
}

.works-plan-comparison > .table-scroll,
.works-plan-comparison > .text-fine {
    margin-right: var(--space-6);
    margin-left: var(--space-6);
}

.works-plan-comparison > .text-fine {
    margin-bottom: var(--space-6);
}

.works-value-layout {
    display: grid;
    grid-template-columns: minmax(0, 1.05fr) minmax(320px, 0.95fr);
    gap: 56px;
    align-items: center;
}

.works-value-steps {
    display: grid;
    gap: 0;
    margin: 0;
    padding: 0;
    list-style: none;
    counter-reset: none;
}

.works-value-steps li {
    position: relative;
    display: grid;
    grid-template-columns: 38px minmax(0, 1fr);
    gap: var(--space-4);
    align-items: center;
    padding: 18px 0;
    border-bottom: 1px solid var(--border);
}

.works-value-steps li:first-child {
    border-top: 1px solid var(--border);
}

.works-value-steps li span {
    color: var(--brand);
    font-family: var(--font-en);
    font-size: 0.65rem;
    letter-spacing: 0.14em;
}

.works-value-steps li strong {
    color: #fff;
    font-family: var(--font-ja);
    font-size: 1rem;
    font-weight: 500;
    letter-spacing: 0.05em;
}

.works-price-grid {
    align-items: stretch;
}

.works-price-grid > article {
    position: relative;
    height: 100%;
}

.works-price-card--featured {
    position: relative;
    border-color: rgba(219, 178, 120, 0.42);
    background:
        linear-gradient(145deg, rgba(219, 178, 120, 0.09), rgba(255, 255, 255, 0.015) 58%);
}

.works-card-kicker {
    position: absolute;
    top: 18px;
    right: 18px;
    margin: 0;
    padding: 6px 9px;
    border: 1px solid rgba(219, 178, 120, 0.35);
    border-radius: var(--radius-pill);
    color: var(--brand);
    font-family: var(--font-en);
    font-size: 0.62rem;
    letter-spacing: 0.12em;
    line-height: 1;
}

.works-service-table {
    min-width: 760px;
}

.works-service-table thead th:first-child {
    width: 220px;
}

.works-service-table thead th:nth-child(2) {
    width: 180px;
}

/* 2列を等幅に。auto レイアウトだと「格安」側だけ細く折り返す */
.works-compare-table th:first-child {
    width: 22%;
}

.works-compare-table tbody td {
    width: 39%;
}

/* 相談内容で出し分ける項目。hidden 属性だけに頼らず明示的に消す */
.tok-cond[hidden] {
    display: none;
}

/* =========================
   BLOG POST TYPOGRAPHY
   長文を読み切ってもらうための組み。読み幅・行間・見出しの間を優先する。
========================= */
.blog-post-body {
    font-size: 1.02rem;
    line-height: 2.05;
    letter-spacing: 0.01em;
}

.blog-post-body > p {
    margin: 0 0 1.9em;
    color: rgba(249, 249, 250, 0.86);
}

/* 導入の一文だけ大きく。記事の入口を作る */
.blog-post-body > p:first-of-type {
    font-family: var(--font-ja);
    font-size: 1.16rem;
    line-height: 1.95;
    color: #fff;
}

.blog-post-body h2 {
    margin: 3.4em 0 1.2em;
    padding-top: 1.6em;
    border-top: 1px solid rgba(219, 178, 120, 0.22);
    font-family: var(--font-ja);
    font-size: 1.5rem;
    font-weight: 500;
    line-height: 1.55;
    letter-spacing: 0.01em;
}

.blog-post-body h2:first-child {
    margin-top: 0;
    padding-top: 0;
    border-top: 0;
}

.blog-post-body h3 {
    margin: 2.6em 0 0.9em;
    color: var(--brand);
    font-family: var(--font-ja);
    font-size: 1.1rem;
    font-weight: 600;
    line-height: 1.6;
}

.blog-post-body strong {
    color: #fff;
    font-weight: 600;
}

.blog-post-body ul,
.blog-post-body ol {
    margin: 0 0 1.9em;
    padding-left: 1.4em;
}

.blog-post-body li {
    margin-bottom: 0.7em;
    color: rgba(249, 249, 250, 0.86);
}

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

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

.blog-post-body blockquote p {
    margin: 0;
    color: var(--muted);
    font-size: 0.96rem;
}

/* 見出し直下の一枚。2.34:1 で書き出したものをそのまま置くので、切らない。 */
.works-hero-band {
    margin: 0 0 var(--space-8);
}

.works-hero-band img {
    display: block;
    width: 100%;
    height: auto;
    border-radius: var(--radius-md);
}

/* 企業撮影の作例。横スクロールで見せる。
   縦位置と横位置が混ざるので、高さだけ揃えて幅は元の比率に従わせ、構図を切らない。
   右端で次のカードが覗くことで、続きがあると分かるようにしている。 */
.works-reel {
    position: relative;
    margin-top: var(--space-6);
}

.works-reel__track {
    display: flex;
    gap: 14px;
    margin: 0;
    /* 左端はコンテナに揃える（vw計算はスクロールバー分ずれるので使わない）。
       右だけ画面外へ抜いて、次のカードを覗かせる。 */
    padding: 0 40px 0 0;
    margin-right: calc(50% - 50vw);
    list-style: none;
    overflow-x: auto;
    overscroll-behavior-x: contain;
    scroll-snap-type: x proximity;
    scrollbar-width: none;
}

.works-reel__track::-webkit-scrollbar {
    display: none;
}

.works-reel__track:focus-visible {
    outline: 2px solid var(--brand);
    outline-offset: 6px;
}

.works-reel__item {
    flex: 0 0 auto;
    /* 高さ固定・幅は比率。切らずに全体を見せる */
    width: calc(var(--reel-h, 420px) * var(--ratio));
    scroll-snap-align: start;
}

.works-reel__item figure {
    margin: 0;
}

.works-reel__item img {
    display: block;
    width: 100%;
    height: var(--reel-h, 420px);
    object-fit: cover;
    border-radius: 10px;
    background: var(--surface-1);
}

p.lead,
.text-muted,
.works-reel__item figcaption {
    text-wrap: pretty;
}

.works-reel__item figcaption {
    margin-top: 14px;
    color: var(--muted);
    font-family: var(--font-ja);
    font-size: 0.8rem;
    line-height: 1.75;
}

.works-reel__kind {
    display: block;
    margin-bottom: 4px;
    color: var(--brand);
    font-family: var(--font-en);
    font-size: 0.6rem;
    letter-spacing: 0.13em;
}

.works-reel__item figcaption strong {
    color: #fff;
    font-weight: 500;
}

.works-reel__item figcaption strong::after {
    content: "。";
}

.works-reel__nav {
    display: flex;
    gap: 10px;
    justify-content: flex-end;
    width: min(1000px, 92%);
    margin: var(--space-4) auto 0;
}

.works-reel__btn {
    display: grid;
    place-items: center;
    width: 44px;
    height: 44px;
    color: var(--brand);
    font-size: 1.1rem;
    line-height: 1;
    background: transparent;
    border: 1px solid var(--border);
    border-radius: 50%;
    cursor: pointer;
    transition: border-color 0.3s var(--ease), color 0.3s var(--ease);
}

.works-reel__btn:hover:not(:disabled),
.works-reel__btn:focus-visible {
    color: #fff;
    border-color: var(--brand);
}

.works-reel__btn:disabled {
    color: rgba(255, 255, 255, 0.22);
    cursor: default;
}

@media (max-width: 900px) {
    .works-reel__item {
        --reel-h: 300px;
    }
}

@media (max-width: 600px) {
    .works-reel__item {
        --reel-h: 240px;
    }
}

/* 本文中の画像。図ではなく挿絵として、前後をしっかり空ける */
.blog-post-body .wp-block-image {
    margin: 3em 0 !important;
}

.blog-post-body .wp-block-image img {
    display: block;
    width: 100%;
    height: auto;
    border-radius: var(--radius-md);
    border: 1px solid var(--border);
}

.blog-post-body a {
    color: var(--brand);
    text-underline-offset: 4px;
    text-decoration-thickness: 1px;
}

@media (max-width: 640px) {
    .blog-post-body {
        font-size: 0.98rem;
        line-height: 1.95;
    }

    .blog-post-body > p:first-of-type {
        font-size: 1.08rem;
    }

    .blog-post-body h2 {
        margin-top: 2.8em;
        font-size: 1.3rem;
    }
}

/* 本文の途中に置く、文字だけの視覚的な区切り。
   画像に文字を焼き込むとスマホで読めず、検索にもAIにも拾われないため、
   同じ役割をテキストで持たせる。 */
.blog-post-body .article-pull {
    margin: 3.2em 0;
    padding: 0 0 0 var(--space-8);
    border-left: 2px solid var(--brand);
}

.blog-post-body .article-pull p {
    margin: 0;
    color: #fff;
    font-family: var(--font-ja);
    font-size: 1.42rem;
    font-weight: 500;
    line-height: 1.78;
    letter-spacing: 0.01em;
}

@media (max-width: 640px) {
    .blog-post-body .article-pull {
        margin: 2.4em 0;
        padding-left: var(--space-5);
    }

    .blog-post-body .article-pull p {
        font-size: 1.16rem;
        line-height: 1.75;
    }
}

/* 目次（Table of Contents Plus）。プラグイン既定が白背景でテーマから浮くため揃える */
#toc_container {
    width: 100% !important;
    margin: 2.6em 0 !important;
    padding: 26px var(--space-6) !important;
    background: rgba(255, 255, 255, 0.02) !important;
    border: 1px solid var(--border) !important;
    border-radius: var(--radius-md);
    font-size: 0.94rem;
}

#toc_container .toc_title {
    margin-bottom: 14px;
    color: var(--brand);
    font-family: var(--font-ja);
    font-size: 0.86rem;
    font-weight: 500;
    letter-spacing: 0.08em;
}

#toc_container .toc_title a,
#toc_container .toc_toggle a {
    color: var(--muted);
    font-size: 0.8rem;
}

#toc_container .toc_list,
#toc_container .toc_list ul {
    margin: 0;
    padding-left: 0;
    list-style: none;
}

#toc_container .toc_list li {
    margin-bottom: 0.55em;
    line-height: 1.75;
}

#toc_container .toc_list ul {
    margin-top: 0.55em;
    padding-left: 1.1em;
}

#toc_container a {
    color: rgba(249, 249, 250, 0.8);
    text-decoration: none;
}

#toc_container a:hover {
    color: var(--brand);
}

#toc_container .toc_number {
    margin-right: 0.5em;
    color: var(--brand);
    font-family: var(--font-en);
    font-size: 0.82em;
}

/* 記事本文の表。ブロックエディタで書いても、貼り付けた素のtableでも同じ見た目になるようにする。
   plan-compare-table と違い min-width を置かないので、狭い画面では折り返して収まる。 */
.blog-post-body table {
    width: 100%;
    margin: var(--space-6) 0;
    border-collapse: collapse;
    border: 1px solid var(--border);
    background: rgba(255, 255, 255, 0.015);
    border-radius: 10px;
    overflow: hidden;
    font-size: 0.94rem;
}

.blog-post-body th,
.blog-post-body td {
    padding: 14px var(--space-4);
    border-bottom: 1px solid var(--border);
    text-align: left;
    vertical-align: top;
    line-height: 1.8;
}

.blog-post-body thead th {
    color: #fff;
    background: rgba(255, 255, 255, 0.05);
    font-weight: 500;
}

.blog-post-body tbody th {
    color: var(--brand);
    font-weight: 600;
    background: rgba(255, 255, 255, 0.015);
}

.blog-post-body tbody tr:last-child th,
.blog-post-body tbody tr:last-child td {
    border-bottom: none;
}

/* 表がはみ出す幅のときだけ、表の中だけを横スクロールさせる。
   figure には `margin: 0 !important` が当たっているので、
   余白は figure ではなく table 側に持たせる（上の .blog-post-body table）。 */
.blog-post-body .wp-block-table {
    max-width: 100%;
    overflow-x: auto;
}

/* グリッドの子は既定の min-width:auto なので、中に幅の広い表があると
   列がその最小幅まで広がり、ページ全体に横スクロールが出る。
   track 側の minmax(0,1fr) だけでは足りず、item 側にも 0 を入れる必要がある。 */
.blog-main,
.blog-post-body {
    min-width: 0;
}

@media (max-width: 640px) {
    .blog-post-body th,
    .blog-post-body td {
        padding: 12px var(--space-3);
    }

    .blog-post-body table {
        font-size: 0.88rem;
    }
}

.works-per-year,
.works-ai-shift {
    border-top: 1px solid rgba(219, 178, 120, 0.24);
    border-bottom: 1px solid rgba(219, 178, 120, 0.24);
    padding: 30px 0;
}

.works-per-year__lead,
.works-ai-shift__lead {
    margin: 0 0 var(--space-4);
    color: #fff;
    font-family: var(--font-ja);
    font-size: 1.14rem;
    font-weight: 500;
}

.works-per-year__list {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: var(--space-4);
    margin: var(--space-6) 0 0;
    padding: 0;
    list-style: none;
}

.works-per-year__list li {
    padding: 18px var(--space-6);
    border-left: 2px solid var(--border);
    background: rgba(255, 255, 255, 0.015);
}

.works-per-year__list span {
    display: block;
    margin-bottom: 6px;
    color: var(--brand);
    font-family: var(--font-en);
    font-size: 0.78rem;
    letter-spacing: 0.06em;
}

.works-per-year__list strong {
    display: block;
    color: #fff;
    font-family: var(--font-ja);
    font-size: 1rem;
    font-weight: 500;
}

.works-ai-shift__figures {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: var(--space-4);
}

.works-ai-shift__figures div {
    padding: 20px var(--space-6);
    border-left: 2px solid var(--brand);
    background: rgba(255, 255, 255, 0.015);
}

.works-ai-shift__figures strong {
    display: block;
    margin-bottom: 8px;
    color: var(--brand);
    font-family: var(--font-ja);
    font-size: 1.5rem;
    font-weight: 500;
    line-height: 1.2;
}

.works-ai-shift__figures span {
    color: var(--muted);
    font-size: 0.86rem;
    line-height: 1.75;
}

@media (max-width: 640px) {
    .works-per-year__list,
    .works-ai-shift__figures {
        grid-template-columns: 1fr;
    }
}

.works-photo-ladder {
    border-top: 1px solid rgba(219, 178, 120, 0.24);
    border-bottom: 1px solid rgba(219, 178, 120, 0.24);
    padding: 30px 0;
}

.works-photo-ladder__lead {
    margin: 0 0 var(--space-6);
    color: var(--muted);
    font-family: var(--font-ja);
    font-size: 1.05rem;
}

.works-photo-ladder__lead strong {
    color: #fff;
    font-weight: 500;
}

.works-photo-ladder__list {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: var(--space-4);
    margin: 0;
    padding: 0;
    list-style: none;
}

/* 3段の対比が崩れるくらいなら並べない */
@media (max-width: 640px) {
    .works-photo-ladder__list {
        grid-template-columns: 1fr;
    }
}

.works-photo-ladder__list li {
    padding: 18px var(--space-6);
    border-left: 2px solid var(--border);
    background: rgba(255, 255, 255, 0.015);
}

.works-photo-ladder__list li:last-child {
    border-left-color: var(--brand);
}

.works-photo-ladder__list span {
    display: block;
    margin-bottom: 8px;
    color: var(--brand);
    font-family: var(--font-en);
    font-size: 0.78rem;
    letter-spacing: 0.06em;
}

.works-photo-ladder__list strong {
    display: block;
    color: #fff;
    font-family: var(--font-ja);
    font-size: 1rem;
    font-weight: 500;
}

.works-photo-ladder__list small {
    display: block;
    margin-top: 6px;
    color: var(--muted);
    font-size: 0.84rem;
    line-height: 1.7;
}

.works-subsidy-eligibility {
    border-top: 1px solid rgba(219, 178, 120, 0.24);
    border-bottom: 1px solid rgba(219, 178, 120, 0.24);
    padding: 30px 0;
}

.works-subsidy-eligibility h3 {
    font-family: var(--font-ja);
    font-size: 1.14rem;
    font-weight: 500;
}

.works-subsidy-compare {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: var(--space-4);
}

/* auto-fit だと項目が2つしかないぶん空トラックが残り、右側が余る */
@media (max-width: 640px) {
    .works-subsidy-compare {
        grid-template-columns: 1fr;
    }
}

.works-subsidy-compare__item {
    padding: 20px var(--space-6);
    border-left: 2px solid var(--border);
    background: rgba(255, 255, 255, 0.015);
}

.works-subsidy-compare__item--yes {
    border-left-color: var(--brand);
}

.works-subsidy-compare__item .eyebrow {
    margin-bottom: 8px;
}

.works-subsidy-compare__item--yes .eyebrow {
    color: var(--brand);
}

.works-subsidy-compare__item p:last-child {
    margin: 0;
    color: var(--muted);
    font-size: 0.92rem;
    line-height: 1.75;
}

.works-subsidy-compare__item--yes p:last-child {
    color: #fff;
}

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

.works-policy-note .cta-row {
    flex-wrap: wrap;
    gap: var(--space-3);
}

details {
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    padding: var(--space-5) var(--space-6);
    background: var(--surface-light);
    transition: all 0.3s var(--ease);
}

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

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: var(--space-4) 0 0;
    color: var(--muted);
    font-size: 0.9rem;
    line-height: 1.7;
    padding-top: var(--space-4);
    border-top: 1px solid var(--border);
}

/* Contact Specifics */
.contact-card {
    background: #111114;
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    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: var(--space-5);
}

.contact-form-embed {
    margin-top: var(--space-10);
}

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

.contact-form-embed .wpcf7 form {
    display: grid;
    gap: var(--space-5);
}

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

.contact-form-embed .wpcf7-form-control-wrap {
    display: block;
    margin-top: var(--space-2);
}

.contact-form-embed .wpcf7-not-valid-tip {
    margin-top: var(--space-2);
    font-size: 0.8rem;
    color: #ffb1b1;
}

.contact-form-embed .wpcf7 form .wpcf7-response-output {
    margin: 0;
    padding: 14px var(--space-4);
    border-radius: var(--radius-md);
    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: var(--space-2) 0 0;
}

.form-notice {
    margin-bottom: var(--space-5);
    padding: 14px var(--space-4);
    border-radius: var(--radius-md);
    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: var(--space-2);
    font-size: 0.875rem;
    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: var(--radius-sm);
    padding: 14px var(--space-4);
    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.875rem;
    letter-spacing: 0.05em;
    background: var(--brand);
    color: #000;
    border-radius: var(--radius-sm);
    padding: 14px var(--space-6);
    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: var(--space-2);
    padding: 14px var(--space-2);
    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;
    }
}

@keyframes nav-blog-submenu-in {
    from {
        opacity: 0;
        transform: translateY(-6px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

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

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

.review-ask h3 {
    margin-bottom: var(--space-3);
}

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

.review-ask--referral {
    margin-top: var(--space-4);
    background: var(--surface-1);
}

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

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

.footer-columns {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: var(--space-10) var(--space-8);
    margin-top: var(--space-8);
    padding-top: var(--space-10);
    border-top: 1px solid var(--border);
}

.footer-col__label {
    margin: 0 0 14px;
    font-family: var(--font-ja);
    font-size: 0.875rem;
    letter-spacing: 0.08em;
    color: var(--text);
}

.footer-col__list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    /* リンク側のpaddingで間隔を確保するのでgapは持たせない（領域を重ねない） */
    gap: 0;
}

.footer-col__list a {
    color: var(--muted);
    font-size: 0.875rem;
    letter-spacing: 0.06em;
    line-height: 1.5;
    /* タップ領域44px（21pxの行高 + 上下12px） */
    display: block;
    padding: var(--space-3) 0;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-col__list a:hover,
.footer-col__list a:focus-visible {
    color: var(--brand);
    text-decoration: underline;
    text-underline-offset: 4px;
}

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

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: var(--space-4) var(--space-8);
    margin-top: var(--space-12);
    padding-top: var(--space-6);
    border-top: 1px solid var(--border);
}

.footer-meta {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 6px var(--space-5);
}

.footer-legal {
    color: #8a8a8a;
    font-family: var(--font-ja);
    /* タップ領域44px */
    display: inline-flex;
    align-items: center;
    min-height: 44px;
    font-size: 0.875rem;
    letter-spacing: 0.04em;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-legal:hover,
.footer-legal:focus-visible {
    color: var(--brand);
    text-decoration: underline;
    text-underline-offset: 4px;
}

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

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

.footer-sns {
    display: flex;
    /* 44pxの領域どうしが隣接するのでgapは0（アイコン間の見た目は24px） */
    gap: 0;
    align-items: center;
    margin: 0 -12px;
}

.footer-sns a {
    color: var(--muted);
    transition: all 0.3s var(--ease);
    display: flex;
    align-items: center;
    justify-content: center;
    /* アイコンは20pxだがタップ領域は44px確保する（負のmarginで重ねない） */
    width: 44px;
    height: 44px;
}

.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 (min-width: 981px) and (max-width: 1200px) {
    .site-header {
        padding-right: 2vw;
        padding-left: 2vw;
    }

    .site-header nav {
        gap: var(--space-3);
    }
}

@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: flex-start;
        align-items: center;
        gap: var(--space-6);
        padding: 100px var(--space-6) 60px;
        overflow-y: auto;
        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;
        /* タップ領域44px */
        display: inline-flex;
        align-items: center;
        min-height: 44px;
    }

    .nav-blog {
        display: flex;
        width: 100%;
        flex-direction: column;
        align-items: center;
    }

    .nav-blog__head {
        justify-content: center;
    }

    .site-header nav .nav-blog__toggle {
        width: 44px;
        height: 44px;
        margin-right: -34px;
    }

    .nav-blog__submenu,
    .nav-blog:hover > .nav-blog__submenu,
    .nav-blog:focus-within > .nav-blog__submenu {
        position: static;
        display: none;
        min-width: 0;
        width: min(100%, 320px);
        margin-top: var(--space-3);
        padding: var(--space-3) 0 0;
        background: transparent;
        border: 0;
        opacity: 1;
        visibility: visible;
        pointer-events: auto;
        transform: none;
        transition: none;
    }

    .nav-blog.is-open > .nav-blog__submenu {
        display: flex;
        flex-direction: column;
        gap: var(--space-2);
        transform: none;
        animation: nav-blog-submenu-in 0.22s var(--ease);
    }

    .site-header nav .nav-blog__submenu a {
        /* タップ領域44px */
        padding: 11px 14px;
        font-family: var(--font-ja);
        font-size: 0.95rem;
        letter-spacing: 0.05em;
        text-align: center;
    }

    .nav-blog.is-closed > .nav-blog__submenu {
        display: none;
    }

    .nav-blog__submenu::before {
        content: none;
    }

    /* モバイルオーバーレイ内のLINEボタンを表示 */
    .site-header nav .nav-line-btn {
        display: inline-flex;
        align-items: center;
        min-height: 44px;
        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: var(--space-8);
    }

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

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

    .flow-grid {
        grid-template-columns: 1fr;
        gap: var(--space-8);
        padding-left: var(--space-6);
    }

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

    .flow-grid li {
        padding-top: 0;
        padding-left: var(--space-12);
    }

    .contact-card {
        padding: var(--space-10) var(--space-6);
    }

    .space-between {
        flex-direction: column;
        gap: var(--space-6);
    }

    .footer-columns {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 36px var(--space-6);
    }

    .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: var(--space-4);
    }

    .socials a {
        margin-left: 0;
        margin-right: var(--space-6);
    }
}

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

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

.cta-banner h3 {
    font-size: 1.25rem;
    margin-bottom: var(--space-3);
    color: var(--brand);
    font-family: var(--font-ja-display);
    font-weight: 500;
}

.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: var(--space-8) var(--space-6);
        gap: var(--space-6);
    }

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

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

    .works-policy-note {
        padding: 28px var(--space-6);
    }

    .works-partnership-flow {
        grid-template-columns: 1fr;
        gap: 0;
        margin-top: 36px;
        padding: 28px var(--space-6);
    }

    .works-partnership-flow__item {
        width: 100%;
        max-width: 360px;
        margin: 0 auto;
    }

    .works-partnership-flow__item p {
        grid-column: 2;
        margin-top: var(--space-2);
    }

    .works-partnership-flow__line {
        width: 1px;
        height: 30px;
        margin: var(--space-3) auto;
        background: linear-gradient(180deg, rgba(219, 178, 120, 0.18), rgba(219, 178, 120, 0.75), rgba(219, 178, 120, 0.18));
    }

    .works-plan-card {
        padding: 30px 26px;
    }

    .works-plan-price {
        margin-top: var(--space-5);
        gap: 0 6px;
    }

    .works-plan-price strong {
        font-size: clamp(1.65rem, 8.7vw, 2.2rem);
    }

    .works-value-layout {
        grid-template-columns: 1fr;
        gap: 28px;
    }

    .works-plan-comparison > summary {
        padding: 18px var(--space-5);
        font-size: 0.92rem;
    }

    .works-plan-comparison > .table-scroll,
    .works-plan-comparison > .text-fine {
        margin-right: var(--space-5);
        margin-left: var(--space-5);
    }

    .works-card-kicker {
        position: static;
        display: inline-flex;
        margin-bottom: 18px;
    }
}

@media (max-width: 640px) {
    .works-plan-card__title,
    .works-plan-card__summary {
        min-height: 0;
    }
}

.premium-flow {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: var(--space-6);
    margin-top: var(--space-12);
}

.flow-item {
    position: relative;
    padding: var(--space-12) var(--space-8);
    background: rgba(255, 255, 255, 0.01);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    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: var(--shadow-md);
}

.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: var(--space-4);
    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;
}

/* 5工程のときは4カラム固定だと最後の1枚が余る。
   5 → 3 → 1 で折り返し、2カラム(2+2+1)の孤立を避ける。 */
.premium-flow--five {
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 14px;
}

.premium-flow--five .flow-item {
    padding: 30px 18px;
}

.premium-flow--five .flow-item h3 {
    font-size: 1.02rem;
    margin-bottom: var(--space-3);
}

.premium-flow--five .flow-item p {
    font-size: 0.84rem;
}

.premium-flow--five .flow-item .number {
    font-size: 2.8rem;
    right: 10px;
}

@media (max-width: 1100px) {
    .premium-flow--five {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

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

@media (max-width: 700px) {
    .premium-flow--five {
        grid-template-columns: 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: var(--space-6) !important;
}

.mt-4 {
    margin-top: var(--space-8) !important;
}

/* Premium Timeline - High End Design */
.premium-timeline {
    max-width: 900px;
    margin: 100px auto 0;
    position: relative;
    padding: var(--space-10) 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: var(--space-5) 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: var(--surface-2);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.05);
    padding: var(--space-8);
    border-radius: var(--radius-lg);
    transition: all 0.4s var(--ease);
}

.timeline-content:hover {
    background: var(--surface-3);
    border-color: rgba(219, 178, 120, 0.3);
    transform: translateY(-5px);
    box-shadow: var(--shadow-md);
}

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

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

.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 var(--space-2);
    }

    .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: var(--space-5);
    }

    .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: var(--space-5) var(--space-5) var(--space-5) 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 var(--border-strong);
    border-radius: var(--radius-pill);
    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: var(--radius-pill);
    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: var(--radius-pill);
    text-decoration: none;
    border: 1px solid var(--border-strong);
}

.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: var(--space-10) 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: var(--space-3) var(--space-6);
    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: var(--space-4);
}

.entry-content h1,
.entry-content h2,
.entry-content h3,
.entry-content h4 {
    margin-top: var(--space-8);
}

/* 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: var(--radius-lg);
    border: 1px solid var(--border);
}

.entry-content th,
.entry-content td {
    padding: var(--space-3) 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: var(--space-5) 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: var(--radius-sm);
    overflow: hidden;
}

.tok-availability-calendar-header {
    margin-bottom: var(--space-6);
}

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

.tok-availability-calendar-label {
    margin: 0 0 var(--space-4);
    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: var(--space-5);
}

.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: var(--space-2) var(--space-2);
}

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

.tok-availability-page-calendar .xcm-status {
    font-size: 0.78rem;
    margin-bottom: var(--space-1);
    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: var(--space-4);
    }

    .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 var(--space-1);
    }

    .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: var(--space-6) 28px;
    border-radius: var(--radius-lg);
    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: var(--space-5) 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 var(--space-5) !important;
    }

    #service-selection .service-card .card-body[style] {
        padding: var(--space-6) var(--space-5) !important;
    }

    #service-selection .service-card .btn {
        width: 100%;
        font-size: 0.78rem;
        letter-spacing: 0.06em;
        padding: var(--space-3) var(--space-4);
    }

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

    #service-selection .plan-compare-table th,
    #service-selection .plan-compare-table td {
        padding: var(--space-3) var(--space-2);
        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: var(--space-3);
}

/* ==============================================
   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: var(--space-1);
    padding: var(--space-5) var(--space-3);
    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: var(--radius-md);
    }

    .contact-trust-bar__item {
        flex-direction: row;
        justify-content: flex-start;
        gap: var(--space-3);
        padding: 14px var(--space-4);
        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: var(--space-6);
    margin-top: var(--space-8);
    text-align: center;
}

.contact-line-alt p {
    font-size: 0.92rem;
    margin-bottom: var(--space-3);
}

/* ==============================================
   Home: sub-link pair (availability + referral)
   ============================================== */
.home-sub-links {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr));
    gap: var(--space-4);
    margin-top: var(--space-4);
}

.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: var(--space-2);
}

@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: var(--space-6);
}

.hero-trust-bar__item {
    display: flex;
    align-items: baseline;
    gap: 6px;
    padding: 0 var(--space-5) 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: var(--space-5);
    border-left: 1px solid var(--border-strong);
}

.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: var(--surface-1);
    border: 1px solid var(--border);
    padding: 28px var(--space-8);
    border-radius: var(--radius-md);
    max-width: 820px;
    margin-left: auto;
    margin-right: auto;
}

.pricing-policy-note .eyebrow {
    margin-bottom: var(--space-3);
}

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

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

/* ==============================================
   FAQ: category headings
   ============================================== */
.faq-category-heading {
    margin-top: var(--space-12);
}

.faq-category-heading--first {
    margin-top: var(--space-6);
}

/* ==============================================
   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: var(--space-2);
}

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

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

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

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

/* ==============================================
   About / Wedding: surface card
   ============================================== */
.surface-card {
    background: var(--surface-1);
    border-radius: var(--radius-md);
    border: 1px solid var(--border);
    padding: var(--space-8);
}

.surface-card--lg {
    padding: var(--space-12);
}

.surface-card--mb {
    margin-bottom: var(--space-6);
}

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

.check-icon {
    color: var(--brand);
    margin-right: var(--space-2);
}

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

.award-list li {
    margin-bottom: var(--space-3);
}

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

/* ==============================================
   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: var(--space-2) var(--space-5);
    border-radius: 20px;
}

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

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

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

.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: var(--space-2);
}

/* ==============================================
   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: var(--space-4); }
.mb-2 { margin-bottom: var(--space-6); }
.mb-section { margin-bottom: var(--space-10); }
.mt-sm { margin-top: var(--space-3); }
.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-display); }

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

.surface-card--md { padding: var(--space-10); }
/* カード内の見出しは、スマホでは本文幅に対して大きすぎて
   文節が1行に収まらなくなる。画面幅に応じて落とす。 */
@media (max-width: 600px) {
    .surface-card--accent h2 {
        font-size: clamp(1.35rem, 5.6vw, 2.2rem);
    }
}

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

.card-body--surface {
    padding: var(--space-8);
    background: var(--surface-1);
    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: var(--radius-md); border: 1px solid var(--border); }
.img-mb { margin-bottom: var(--space-12); }
.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: var(--space-6); }
.plan-card-row__main { flex: 1; padding-right: var(--space-6); }
.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: var(--space-4);
    color: var(--brand);
    line-height: 1.5;
}

.plan-h4 { font-size: 1.2rem; margin-bottom: var(--space-2); }

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

.dl-profile {
    display: grid;
    grid-template-columns: 100px 1fr;
    gap: var(--space-4);
    margin: 0;
    line-height: 1.6;
}

.dl-price {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: var(--space-3) var(--space-6);
    margin: 0;
    line-height: 1.6;
}

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

.plan-compare__item {
    padding: var(--space-5);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    background: var(--surface-1);
}

.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: var(--space-6);
}

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

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

.about-profile {
    background: var(--surface-1);
    padding: var(--space-12);
    border-radius: var(--radius-md);
    display: flex;
    gap: var(--space-12);
}

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

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

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

/* ==============================================
   About: 写真とAIについて
   ============================================== */
.ai-policy-title {
    color: #fff;
    font-size: 1rem;
    line-height: 1.6;
    margin-bottom: var(--space-3);
}

.ai-policy-block + .ai-policy-block {
    margin-top: var(--space-8);
    padding-top: var(--space-8);
    border-top: 1px solid var(--border);
}

.ai-policy-links {
    list-style: none;
    margin: 0;
    padding: 0;
}

.ai-policy-links li + li {
    margin-top: 10px;
}

.ai-policy-links a {
    color: var(--brand);
    text-decoration: none;
    font-size: 0.9rem;
    line-height: 1.6;
    border-bottom: 1px solid transparent;
    transition: border-color 0.3s var(--ease);
}

.ai-policy-links a:hover,
.ai-policy-links a:focus-visible {
    border-color: var(--brand);
}

.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: var(--space-3); 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: var(--space-4) var(--space-3); }
.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: var(--surface-1);
    padding: var(--space-10);
    border-radius: var(--radius-md);
    border: 1px solid var(--border);
}

.episode-box__title { font-size: 1.35rem; margin-bottom: var(--space-4); color: #fff; }
.cta-heading { font-size: 2rem; margin-bottom: var(--space-6); }
.cta-intro { margin-bottom: var(--space-10); color: var(--muted); }
.gallery-caption { color: var(--muted); margin-top: var(--space-3); 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: var(--space-3); }
.mb-0 { margin-bottom: 0; }
.mb-4 { margin-bottom: var(--space-8); }
.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: var(--surface-1);
    border: 1px solid var(--border);
    padding: var(--space-6) 28px;
    border-radius: var(--radius-md);
    max-width: 860px;
    margin-left: auto;
    margin-right: auto;
}

.plan-guide-h4 { font-size: 1.1rem; margin-bottom: var(--space-5); color: #fff; }
.plan-compare__label { font-weight: 600; margin-bottom: var(--space-1); }
.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: var(--space-8); gap: var(--space-8); }
    .about-profile__photo { flex: unset; }
    .plan-compare { grid-template-columns: 1fr; }
}

/* =========================
   BLOG ARCHIVE
========================= */
.blog-archive {
    min-height: auto;
}

.blog-archive__header {
    max-width: 760px;
    margin-right: auto;
    margin-left: auto;
}

.blog-archive__header .lead {
    margin-top: var(--space-1);
}

.blog-category-filter {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 10px;
    margin: -12px auto var(--space-10);
}

.blog-category-filter__link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 38px;
    padding: 7px var(--space-4);
    color: var(--muted);
    font-family: var(--font-ja);
    font-size: 0.82rem;
    letter-spacing: 0.04em;
    text-decoration: none;
    background: var(--surface-1);
    border: 1px solid var(--border);
    border-radius: var(--radius-pill);
    transition:
        color 0.3s ease,
        border-color 0.3s ease,
        background 0.3s ease;
}

.blog-category-filter__link:hover,
.blog-category-filter__link.is-active {
    color: var(--text);
    background: rgba(219, 178, 120, 0.08);
    border-color: var(--border-focus);
}

.blog-archive-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: var(--space-8);
}

.blog-archive-card {
    display: flex;
    min-width: 0;
    flex-direction: column;
    overflow: hidden;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    transition:
        transform 0.35s var(--ease),
        border-color 0.35s ease,
        background 0.35s ease;
}

.blog-archive-card:hover {
    background: var(--surface-light);
    border-color: rgba(219, 178, 120, 0.3);
    transform: translateY(-4px);
}

.blog-archive-card__media {
    display: block;
    position: relative;
    overflow: hidden;
    background: #000;
    aspect-ratio: 4 / 3;
}

.blog-archive-card__media::after {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
    background: linear-gradient(to top, rgba(9, 9, 11, 0.16), transparent 45%);
}

.blog-archive-card__media img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.9;
    transition:
        transform 0.65s var(--ease),
        opacity 0.4s ease;
}

.blog-archive-card:hover .blog-archive-card__media img {
    opacity: 1;
    transform: scale(1.035);
}

.blog-archive-card__body {
    display: flex;
    flex: 1;
    flex-direction: column;
    padding: 28px;
}

.blog-archive-card__meta {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 7px;
    margin-bottom: 14px;
    color: var(--brand);
    font-size: 0.72rem;
    letter-spacing: 0.08em;
}

.blog-archive-card__categories {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-2);
}

.blog-archive-card__categories a {
    color: var(--brand);
    text-decoration: none;
    border-bottom: 1px solid transparent;
    transition: border-color 0.3s ease;
}

.blog-archive-card__categories a:hover {
    border-color: var(--brand);
}

.blog-archive-card__title {
    margin-bottom: 14px;
    font-size: clamp(1.25rem, 2.2vw, 1.55rem);
    line-height: 1.5;
}

.blog-archive-card__title a {
    color: var(--text);
    text-decoration: none;
    transition: color 0.3s ease;
}

.blog-archive-card__title a:hover {
    color: var(--brand);
}

.blog-archive-card__excerpt {
    flex: 1;
    margin-bottom: var(--space-6);
    color: var(--muted);
    font-family: var(--font-ja);
    font-size: 0.94rem;
    line-height: 1.9;
}

.blog-archive-card__more {
    align-self: flex-start;
    color: var(--text);
    font-size: 0.8rem;
    letter-spacing: 0.08em;
    text-decoration: none;
    border-bottom: 1px solid var(--border);
    transition:
        color 0.3s ease,
        border-color 0.3s ease;
}

.blog-archive-card__more:hover {
    color: var(--brand);
    border-color: var(--brand);
}

/* スクリーンリーダー用の見出しを隠す。WordPressが出力するが未定義で、
   「投稿のページ送り」がそのまま画面に出ていた。 */
.screen-reader-text {
    position: absolute !important;
    width: 1px;
    height: 1px;
    margin: -1px;
    padding: 0;
    overflow: hidden;
    clip: rect(0 0 0 0);
    clip-path: inset(50%);
    white-space: nowrap;
    border: 0;
}

.screen-reader-text:focus {
    position: static !important;
    width: auto;
    height: auto;
    margin: 0;
    overflow: visible;
    clip: auto;
    clip-path: none;
}

/* ページ送り。一覧のカテゴリチップと同じ語彙に揃える */
.blog-archive-pagination {
    margin-top: var(--space-12);
    padding-top: var(--space-10);
    border-top: 1px solid var(--border);
}

.blog-archive-pagination .nav-links {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: var(--space-2);
    margin: 0;
}

.blog-archive-pagination .page-numbers {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 44px;
    min-height: 44px;
    padding: 0 var(--space-4);
    color: var(--muted);
    font-family: var(--font-en);
    font-size: 0.9rem;
    letter-spacing: 0.04em;
    line-height: 1;
    text-decoration: none;
    background: var(--surface-1);
    border: 1px solid var(--border);
    border-radius: var(--radius-pill);
    transition:
        color 0.3s ease,
        border-color 0.3s ease,
        background 0.3s ease;
}

.blog-archive-pagination a.page-numbers:hover,
.blog-archive-pagination a.page-numbers:focus-visible {
    color: var(--text);
    background: rgba(219, 178, 120, 0.08);
    border-color: var(--border-focus);
}

.blog-archive-pagination .page-numbers.current {
    color: #09090b;
    font-weight: 600;
    background: var(--brand);
    border-color: var(--brand);
}

/* 「次へ」「前へ」は日本語なので幅を確保し、数字と区別する */
.blog-archive-pagination .page-numbers.next,
.blog-archive-pagination .page-numbers.prev {
    font-family: var(--font-ja);
    font-size: 0.84rem;
    color: var(--text);
}

.blog-archive-pagination .page-numbers.dots {
    min-width: 24px;
    padding: 0;
    background: transparent;
    border-color: transparent;
}

@media (max-width: 640px) {
    .blog-archive-pagination .page-numbers {
        min-width: 40px;
        min-height: 40px;
        padding: 0 var(--space-3);
    }
}

.blog-archive__empty {
    max-width: 720px;
    margin: 0 auto;
    text-align: center;
}

@media (max-width: 700px) {
    .blog-category-filter {
        justify-content: flex-start;
        margin-bottom: var(--space-8);
    }

    .blog-archive-grid {
        grid-template-columns: 1fr;
        gap: var(--space-6);
    }

    .blog-archive-card__body {
        padding: var(--space-6) var(--space-5) 26px;
    }

    .blog-archive-card__title {
        font-size: 1.25rem;
    }
}

/* =========================
   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;
}

.post-updated {
    margin-left: var(--space-3);
    color: var(--muted);
}

.post-updated::before {
    content: "/";
    margin-right: var(--space-3);
    opacity: 0.5;
}

.blog-cat-link {
    color: var(--brand);
    text-decoration: none;
    margin-left: var(--space-3);
    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 var(--space-8);
    border-radius: var(--radius-md);
    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: var(--space-3);
    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: var(--radius-md);
}

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

.blog-post-body blockquote {
    margin: 1.6em 0;
    padding: var(--space-5) 28px;
    border-left: 2px solid var(--brand);
    background: var(--surface-1);
    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: var(--space-4);
    margin-top: var(--space-12);
    padding-top: var(--space-8);
    border-top: 1px solid var(--border);
}

.post-nav__item {
    display: flex;
    flex-direction: column;
    gap: 6px;
    padding: var(--space-4) var(--space-5);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    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: var(--surface-1);
}

.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: var(--space-6);
}

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

.blog-side-card__title {
    font-size: 1.05rem;
    margin-bottom: var(--space-3);
    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: var(--space-4);
    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: var(--space-3);
}

.blog-author-card__bio {
    text-align: left;
    margin-bottom: var(--space-5);
}

.blog-side-cta__buttons {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-top: var(--space-4);
}

.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: var(--space-1);
    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: var(--space-12);
    }

    .blog-sidebar__sticky {
        position: static;
    }

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

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

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