/* ============================================================
   ICPA総合AIまもり隊 - ラグジュアリーデザインシステム
   Navy × Gold × Ivory
   Cormorant Garamond × Noto Serif JP × Noto Sans JP
   ============================================================ */

:root {
    /* Core palette */
    --ink: #0a1628;
    --ink-soft: #16243d;
    --ink-deep: #050b15;
    --gold: #c9a961;
    --gold-bright: #e4c373;
    --gold-deep: #a8893f;
    --ivory: #f8f4ec;
    --ivory-warm: #f1ebde;
    --paper: #fbf8f2;
    --line: rgba(201, 169, 97, 0.22);
    --line-soft: rgba(201, 169, 97, 0.12);
    --text-on-dark: #ede4d0;
    --text-on-dark-soft: rgba(237, 228, 208, 0.7);

    /* Topic accents */
    --c-infection: #c45a4f;
    --c-hygiene: #4a8a7b;
    --c-stress: #8e6db5;
    --c-nutrition: #c98a3f;

    /* Typography */
    --f-display: 'Cormorant Garamond', 'Noto Serif JP', serif;
    --f-serif: 'Noto Serif JP', 'Cormorant Garamond', serif;
    --f-sans: 'Noto Sans JP', -apple-system, BlinkMacSystemFont, sans-serif;

    /* Motion */
    --ease-luxe: cubic-bezier(0.16, 1, 0.3, 1);
    --ease-snap: cubic-bezier(0.4, 0, 0.2, 1);

    /* Shadows */
    --shadow-card: 0 30px 60px -20px rgba(10, 22, 40, 0.45),
                   0 18px 36px -18px rgba(10, 22, 40, 0.35);
    --shadow-glow-gold: 0 0 40px rgba(201, 169, 97, 0.35);
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    -webkit-tap-highlight-color: transparent;
}

html {
    font-size: 16px;
    -webkit-text-size-adjust: 100%;
    scroll-behavior: smooth;
}

body {
    font-family: var(--f-sans);
    color: var(--ink);
    background: var(--ivory);
    line-height: 1.7;
    letter-spacing: 0.02em;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    min-height: 100vh;
    min-height: 100dvh;
    overflow-x: hidden;
}

a { color: inherit; text-decoration: none; }
button { font: inherit; border: none; background: none; cursor: pointer; color: inherit; }
input { font: inherit; }

/* ============================================================
   背景パターン（紙の質感）
   ============================================================ */

.bg-pattern {
    position: fixed;
    inset: 0;
    z-index: -1;
    pointer-events: none;
    background:
        radial-gradient(ellipse 1200px 800px at 20% -10%, rgba(201, 169, 97, 0.08), transparent 60%),
        radial-gradient(ellipse 1000px 700px at 100% 100%, rgba(10, 22, 40, 0.06), transparent 55%),
        linear-gradient(180deg, var(--paper) 0%, var(--ivory) 100%);
}

.bg-pattern::after {
    content: '';
    position: absolute;
    inset: 0;
    background-image:
        repeating-linear-gradient(
            45deg,
            transparent 0,
            transparent 60px,
            rgba(10, 22, 40, 0.015) 60px,
            rgba(10, 22, 40, 0.015) 61px
        );
    opacity: 0.6;
}

/* ============================================================
   ヘッダー（共通）
   ============================================================ */

.site-header {
    position: sticky;
    top: 0;
    z-index: 100;
    background: linear-gradient(180deg, var(--ink-deep) 0%, var(--ink) 100%);
    border-bottom: 1px solid rgba(201, 169, 97, 0.35);
    box-shadow: 0 4px 20px rgba(10, 22, 40, 0.15);
    position: relative;
}

.site-header::after {
    content: '';
    position: absolute;
    left: 0;
    right: 0;
    bottom: -1px;
    height: 1px;
    background: linear-gradient(90deg, transparent 0%, var(--gold) 30%, var(--gold) 70%, transparent 100%);
    opacity: 0.6;
}

.brand {
    max-width: 1280px;
    margin: 0 auto;
    padding: 1.3rem 1.5rem;
    display: flex;
    align-items: center;
    gap: 1.2rem;
}

.brand-mark {
    font-family: var(--f-display);
    font-weight: 600;
    font-size: 1.55rem;
    letter-spacing: 0.22em;
    color: var(--gold-bright);
    padding: 0.5rem 1rem;
    border: 1px solid var(--gold);
    border-radius: 2px;
    position: relative;
    background: rgba(201, 169, 97, 0.06);
    text-shadow: 0 1px 4px rgba(0, 0, 0, 0.3);
}

.brand-mark::before,
.brand-mark::after {
    content: '';
    position: absolute;
    width: 6px;
    height: 6px;
    background: var(--gold-bright);
    border-radius: 50%;
    box-shadow: 0 0 6px rgba(228, 195, 115, 0.6);
}

.brand-mark::before { top: -3px; left: -3px; }
.brand-mark::after { bottom: -3px; right: -3px; }

.brand-name {
    display: flex;
    flex-direction: column;
    gap: 3px;
}

.brand-name-jp {
    font-family: var(--f-serif);
    font-weight: 600;
    font-size: 1.1rem;
    color: var(--text-on-dark);
    letter-spacing: 0.12em;
}

.brand-name-sub {
    font-size: 0.7rem;
    color: rgba(237, 228, 208, 0.55);
    letter-spacing: 0.14em;
    font-weight: 500;
}

/* ============================================================
   ホーム画面：ヒーロー
   ============================================================ */

.hero {
    padding: 3rem 1.5rem 5rem;
    max-width: 1280px;
    margin: 0 auto;
}

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

.hero-eyebrow {
    font-family: var(--f-display);
    font-size: 0.8rem;
    letter-spacing: 0.5em;
    color: var(--gold-deep);
    margin-bottom: 1.5rem;
    text-transform: uppercase;
    font-weight: 500;
    animation: fade-up 0.9s var(--ease-luxe) both;
    display: inline-block;
    position: relative;
}

.hero-eyebrow::before,
.hero-eyebrow::after {
    content: '';
    position: absolute;
    top: 50%;
    width: 30px;
    height: 1px;
    background: var(--gold);
    opacity: 0.5;
}

.hero-eyebrow::before { right: 100%; margin-right: 1rem; }
.hero-eyebrow::after { left: 100%; margin-left: 0.5rem; }

.hero-title {
    font-family: var(--f-serif);
    font-weight: 600;
    font-size: clamp(1.9rem, 5.5vw, 3.4rem);
    line-height: 1.4;
    color: var(--ink);
    letter-spacing: 0.04em;
    margin-bottom: 1.5rem;
    animation: fade-up 0.9s var(--ease-luxe) 0.15s both;
}

.hero-title-accent {
    position: relative;
    display: inline-block;
    color: var(--ink);
}

.hero-title-accent::after {
    content: '';
    position: absolute;
    left: 0;
    right: 0;
    bottom: -0.1em;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--gold) 20%, var(--gold) 80%, transparent);
    opacity: 0.8;
}

.hero-lead {
    font-family: var(--f-serif);
    font-size: clamp(0.95rem, 2vw, 1.05rem);
    color: rgba(10, 22, 40, 0.7);
    margin-bottom: 3rem;
    line-height: 2;
    animation: fade-up 0.9s var(--ease-luxe) 0.3s both;
}

.hero-instruction {
    display: inline-flex;
    align-items: center;
    gap: 0.7rem;
    padding: 0.6rem 1.3rem;
    background: var(--ink);
    color: var(--text-on-dark);
    border-radius: 100px;
    font-size: 0.8rem;
    letter-spacing: 0.15em;
    margin-bottom: 2.5rem;
    animation: fade-up 0.9s var(--ease-luxe) 0.45s both;
    box-shadow: var(--shadow-glow-gold);
}

.hero-instruction-num {
    color: var(--gold);
    font-weight: 700;
    animation: bounce-down 2s infinite;
}

@keyframes bounce-down {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(3px); }
}

/* ============================================================
   トピックカード（4分野）
   ============================================================ */

.topic-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 1.5rem;
    margin: 0 auto 3.5rem;
    max-width: 1100px;
}

/* 2×2 配置（4分野ぴったり用） */
.topic-grid-2x2 {
    grid-template-columns: repeat(2, 1fr);
    max-width: 880px;
}

/* 3×2 配置（6分野用） */
.topic-grid-3x2 {
    grid-template-columns: repeat(3, 1fr);
    max-width: 1180px;
}

@media (max-width: 980px) {
    .topic-grid-3x2 {
        grid-template-columns: repeat(2, 1fr);
        max-width: 780px;
    }
}

@media (max-width: 720px) {
    .topic-grid-2x2,
    .topic-grid-3x2 {
        grid-template-columns: 1fr;
    }
}

.topic-meta-special {
    color: #ffd86b !important;
}

.topic-card {
    position: relative;
    background: var(--ink);
    color: var(--text-on-dark);
    padding: 2.5rem 1.8rem 2rem;
    border-radius: 4px;
    overflow: hidden;
    transition: all 0.5s var(--ease-luxe);
    box-shadow: var(--shadow-card);
    border: 1px solid rgba(201, 169, 97, 0.2);
    text-align: left;
    animation: fade-up 0.9s var(--ease-luxe) both;
    display: flex;
    flex-direction: column;
    min-height: 320px;
}

/* topic-meta（Q&A件数表示など） */
.topic-meta {
    display: flex;
    gap: 1rem;
    margin-bottom: 1.2rem;
    padding-top: 0.8rem;
    border-top: 1px solid rgba(201, 169, 97, 0.15);
    flex-wrap: wrap;
}

.topic-meta-item {
    font-size: 0.7rem;
    color: var(--text-on-dark-soft);
    letter-spacing: 0.05em;
    display: inline-flex;
    align-items: center;
    color: var(--gold-bright);
}

.topic-cta-arrow {
    display: inline-block;
    transition: transform 0.4s var(--ease-luxe);
    margin-left: 4px;
}

.topic-card:hover .topic-cta-arrow {
    transform: translateX(4px);
}

.topic-card:nth-child(1) { animation-delay: 0.6s; }
.topic-card:nth-child(2) { animation-delay: 0.72s; }
.topic-card:nth-child(3) { animation-delay: 0.84s; }
.topic-card:nth-child(4) { animation-delay: 0.96s; }

.topic-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, transparent, var(--gold), transparent);
    transform: scaleX(0);
    transform-origin: center;
    transition: transform 0.6s var(--ease-luxe);
}

.topic-card::after {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle at center, rgba(201, 169, 97, 0.12), transparent 50%);
    opacity: 0;
    transition: opacity 0.6s var(--ease-luxe);
    pointer-events: none;
}

.topic-card:hover {
    transform: translateY(-4px);
    border-color: var(--gold);
}

.topic-card:hover::before { transform: scaleX(1); }
.topic-card:hover::after { opacity: 1; }

.topic-icon {
    width: 48px;
    height: 48px;
    margin-bottom: 1.5rem;
    color: var(--gold-bright);
    transition: transform 0.5s var(--ease-luxe);
}

.topic-card:hover .topic-icon { transform: scale(1.08); }

.topic-icon svg {
    width: 100%;
    height: 100%;
}

.topic-label {
    font-family: var(--f-display);
    font-size: 0.8rem;
    letter-spacing: 0.4em;
    color: var(--gold);
    opacity: 0.7;
    margin-bottom: 0.4rem;
}

.topic-title {
    font-family: var(--f-serif);
    font-weight: 600;
    font-size: 1.45rem;
    letter-spacing: 0.06em;
    margin-bottom: 0.9rem;
    color: var(--text-on-dark);
}

.topic-desc {
    font-size: 0.85rem;
    line-height: 1.85;
    color: var(--text-on-dark-soft);
    margin-bottom: auto;
    padding-bottom: 1.5rem;
}

.topic-cta {
    font-size: 0.78rem;
    letter-spacing: 0.18em;
    color: var(--gold-bright);
    padding-top: 1.2rem;
    border-top: 1px solid rgba(201, 169, 97, 0.2);
    transition: all 0.4s var(--ease-luxe);
    font-weight: 500;
}

.topic-card:hover .topic-cta {
    color: var(--gold);
    letter-spacing: 0.22em;
}

/* ============================================================
   ヒーロー下部のメタ情報
   ============================================================ */

.hero-foot {
    margin-top: 2rem;
    animation: fade-up 0.9s var(--ease-luxe) 1.2s both;
}

.hero-foot-row {
    display: inline-flex;
    align-items: center;
    gap: 1.5rem;
    padding: 1.2rem 2rem;
    background: rgba(255, 255, 255, 0.6);
    border: 1px solid var(--line);
    border-radius: 100px;
    backdrop-filter: blur(8px);
}

.hero-foot-item {
    text-align: center;
}

.hero-foot-label {
    font-size: 0.65rem;
    letter-spacing: 0.25em;
    color: var(--gold-deep);
    margin-bottom: 0.2rem;
    font-weight: 500;
}

.hero-foot-value {
    font-family: var(--f-serif);
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--ink);
    letter-spacing: 0.05em;
}

.hero-foot-divider {
    width: 1px;
    height: 28px;
    background: var(--line);
}

/* ============================================================
   フッター
   ============================================================ */

.site-footer {
    background: var(--ink-deep);
    color: var(--text-on-dark-soft);
    padding: 2.5rem 1.5rem;
    border-top: 1px solid rgba(201, 169, 97, 0.2);
}

.footer-inner {
    max-width: 1280px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1.5rem;
    flex-wrap: wrap;
}

.footer-brand {
    display: flex;
    align-items: center;
    gap: 0.9rem;
}

.footer-brand-mark {
    font-family: var(--f-display);
    font-weight: 600;
    font-size: 1.1rem;
    letter-spacing: 0.18em;
    color: var(--gold);
    padding: 0.3rem 0.7rem;
    border: 1px solid var(--gold);
}

.footer-brand-text {
    font-size: 0.8rem;
    color: var(--text-on-dark);
}

.footer-brand-sub {
    font-size: 0.7rem;
    color: var(--text-on-dark-soft);
    margin-top: 2px;
}

.footer-meta {
    text-align: right;
    font-size: 0.7rem;
    color: var(--text-on-dark-soft);
    line-height: 1.7;
}

.footer-copyright {
    margin-top: 0.3rem;
    font-family: var(--f-display);
    letter-spacing: 0.15em;
}

/* ============================================================
   チャット画面
   ============================================================ */

.page-chat {
    display: flex;
    flex-direction: column;
    height: 100vh;
    height: 100dvh;
    overflow: hidden;
    background: var(--ivory);
}

.chat-header {
    flex-shrink: 0;
    background: var(--ink);
    color: var(--text-on-dark);
    padding: 0.9rem 1.2rem;
    padding-top: max(0.9rem, env(safe-area-inset-top));
    display: flex;
    align-items: center;
    gap: 1rem;
    border-bottom: 1px solid rgba(201, 169, 97, 0.25);
    position: relative;
    z-index: 10;
}

.chat-header::after {
    content: '';
    position: absolute;
    left: 1.2rem;
    right: 1.2rem;
    bottom: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--gold) 20%, var(--gold) 80%, transparent);
    opacity: 0.5;
}

.chat-back {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--gold-bright);
    border: 1px solid rgba(201, 169, 97, 0.3);
    border-radius: 50%;
    transition: all 0.3s var(--ease-luxe);
    flex-shrink: 0;
}

.chat-back:hover {
    background: rgba(201, 169, 97, 0.1);
    border-color: var(--gold);
}

.chat-back svg {
    width: 18px;
    height: 18px;
}

.chat-header-title {
    flex: 1;
    min-width: 0;
}

.chat-header-main {
    font-family: var(--f-serif);
    font-weight: 600;
    font-size: 1.05rem;
    letter-spacing: 0.08em;
}

.chat-header-sub {
    font-size: 0.7rem;
    color: var(--text-on-dark-soft);
    margin-top: 2px;
    letter-spacing: 0.05em;
}

.chat-header-status {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    font-size: 0.7rem;
    color: var(--text-on-dark-soft);
    letter-spacing: 0.1em;
    flex-shrink: 0;
}

.chat-status-dot {
    width: 7px;
    height: 7px;
    background: #6dd47e;
    border-radius: 50%;
    box-shadow: 0 0 8px rgba(109, 212, 126, 0.6);
    animation: pulse-dot 2s infinite;
}

@keyframes pulse-dot {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}

/* チャット領域 */

.chat-area {
    flex: 1;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    padding: 1.5rem 1rem 1rem;
    background:
        radial-gradient(ellipse 800px 600px at 50% 0%, rgba(201, 169, 97, 0.06), transparent 50%),
        var(--paper);
    position: relative;
}

.chat-area::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image: repeating-linear-gradient(
        45deg,
        transparent 0,
        transparent 60px,
        rgba(10, 22, 40, 0.012) 60px,
        rgba(10, 22, 40, 0.012) 61px
    );
    pointer-events: none;
}

.msg {
    display: flex;
    gap: 0.7rem;
    margin-bottom: 1.2rem;
    max-width: 720px;
    margin-left: auto;
    margin-right: auto;
    animation: msg-in 0.5s var(--ease-luxe) both;
    position: relative;
}

@keyframes msg-in {
    from { opacity: 0; transform: translateY(8px); }
    to { opacity: 1; transform: translateY(0); }
}

.msg-bot { justify-content: flex-start; }
.msg-user { justify-content: flex-end; flex-direction: row-reverse; }

.msg-avatar {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: var(--ink);
    color: var(--gold-bright);
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--f-display);
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.1em;
    flex-shrink: 0;
    border: 1px solid var(--gold);
    box-shadow: 0 4px 12px rgba(10, 22, 40, 0.25);
}

.msg-user .msg-avatar {
    background: var(--paper);
    color: var(--ink);
    border: 1px solid var(--line);
}

.msg-bubble {
    max-width: calc(100% - 50px);
    padding: 0.9rem 1.2rem 1rem;
    background: #fff;
    border-radius: 4px;
    box-shadow: 0 4px 18px -8px rgba(10, 22, 40, 0.15);
    border: 1px solid var(--line-soft);
    position: relative;
}

.msg-user .msg-bubble {
    background: var(--ink);
    color: var(--text-on-dark);
    border-color: rgba(201, 169, 97, 0.2);
}

.msg-name {
    font-family: var(--f-display);
    font-size: 0.7rem;
    letter-spacing: 0.2em;
    color: var(--gold-deep);
    margin-bottom: 0.4rem;
    font-weight: 600;
    text-transform: uppercase;
}

.msg-user .msg-name {
    color: var(--gold-bright);
}

.msg-text {
    font-family: var(--f-sans);
    font-size: 0.95rem;
    line-height: 1.85;
    letter-spacing: 0.03em;
    color: inherit;
    word-break: break-word;
}

.msg-text strong {
    color: var(--gold-deep);
    font-weight: 700;
}

.msg-user .msg-text strong {
    color: var(--gold-bright);
}

/* タイピングインジケーター */

.msg-typing .msg-bubble {
    padding: 1.1rem 1.4rem;
}

.typing-dots {
    display: flex;
    gap: 6px;
    align-items: center;
    height: 18px;
}

.typing-dots span {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--gold);
    opacity: 0.4;
    animation: typing 1.2s infinite;
}

.typing-dots span:nth-child(2) { animation-delay: 0.15s; }
.typing-dots span:nth-child(3) { animation-delay: 0.3s; }

@keyframes typing {
    0%, 60%, 100% { opacity: 0.3; transform: translateY(0); }
    30% { opacity: 1; transform: translateY(-4px); }
}

/* ヒント */

.chat-tip {
    flex-shrink: 0;
    padding: 0.6rem 1.2rem;
    background: linear-gradient(180deg, rgba(201, 169, 97, 0.08), rgba(201, 169, 97, 0.04));
    color: var(--ink);
    font-size: 0.8rem;
    text-align: center;
    border-top: 1px solid var(--line-soft);
    border-bottom: 1px solid var(--line-soft);
    letter-spacing: 0.05em;
    transition: all 0.4s var(--ease-luxe);
}

.chat-tip.hidden {
    max-height: 0;
    padding-top: 0;
    padding-bottom: 0;
    border-width: 0;
    overflow: hidden;
    opacity: 0;
}

/* 入力エリア */

.chat-input-area {
    flex-shrink: 0;
    background: var(--ink);
    padding: 1rem 1rem 1.2rem;
    padding-bottom: max(1.2rem, env(safe-area-inset-bottom));
    border-top: 1px solid rgba(201, 169, 97, 0.2);
    position: relative;
}

.chat-input-area::before {
    content: '';
    position: absolute;
    left: 1rem;
    right: 1rem;
    top: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--gold) 20%, var(--gold) 80%, transparent);
    opacity: 0.4;
}

.chat-input-row {
    display: flex;
    align-items: center;
    gap: 0.7rem;
    max-width: 720px;
    margin: 0 auto;
}

.btn-mic {
    position: relative;
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--gold-bright), var(--gold-deep));
    color: var(--ink);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: all 0.3s var(--ease-luxe);
    box-shadow: 0 6px 20px rgba(201, 169, 97, 0.4),
                inset 0 1px 0 rgba(255, 255, 255, 0.3);
}

.btn-mic svg {
    width: 22px;
    height: 22px;
    position: relative;
    z-index: 2;
}

.btn-mic:hover {
    transform: scale(1.05);
    box-shadow: 0 8px 25px rgba(201, 169, 97, 0.55),
                inset 0 1px 0 rgba(255, 255, 255, 0.3);
}

.btn-mic:active {
    transform: scale(0.96);
}

.btn-mic-pulse {
    position: absolute;
    inset: -4px;
    border-radius: 50%;
    border: 2px solid var(--gold-bright);
    opacity: 0;
    pointer-events: none;
}

.btn-mic.recording .btn-mic-pulse {
    animation: mic-pulse 1.6s var(--ease-luxe) infinite;
}

.btn-mic.recording .btn-mic-pulse-2 {
    animation-delay: 0.5s;
}

.btn-mic.recording {
    background: linear-gradient(135deg, #ff6b6b, #c92a2a);
    box-shadow: 0 6px 20px rgba(220, 38, 38, 0.45);
    animation: recording-glow 1.6s ease-in-out infinite;
}

@keyframes mic-pulse {
    0% { opacity: 0.7; transform: scale(1); }
    100% { opacity: 0; transform: scale(1.6); }
}

@keyframes recording-glow {
    0%, 100% { box-shadow: 0 6px 20px rgba(220, 38, 38, 0.45); }
    50% { box-shadow: 0 6px 30px rgba(220, 38, 38, 0.7); }
}

.chat-input-text-wrap {
    flex: 1;
    position: relative;
    display: flex;
    align-items: center;
    background: rgba(255, 255, 255, 0.07);
    border: 1px solid rgba(201, 169, 97, 0.25);
    border-radius: 100px;
    padding: 0 0.4rem 0 1.3rem;
    transition: all 0.3s var(--ease-luxe);
}

.chat-input-text-wrap:focus-within {
    background: rgba(255, 255, 255, 0.12);
    border-color: var(--gold);
    box-shadow: 0 0 0 3px rgba(201, 169, 97, 0.15);
}

.chat-input {
    flex: 1;
    width: 100%;
    background: transparent;
    border: none;
    color: var(--text-on-dark);
    font-size: 0.95rem;
    padding: 0.95rem 0.5rem;
    outline: none;
    font-family: var(--f-sans);
}

.chat-input::placeholder {
    color: rgba(237, 228, 208, 0.4);
    font-size: 0.85rem;
}

.btn-send {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background: var(--gold);
    color: var(--ink);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: all 0.3s var(--ease-luxe);
    opacity: 0.6;
}

.btn-send svg {
    width: 18px;
    height: 18px;
    transform: translateX(1px);
}

.btn-send.active {
    opacity: 1;
}

.btn-send.active:hover {
    background: var(--gold-bright);
    transform: scale(1.05);
}

.chat-input-foot {
    margin-top: 0.7rem;
    max-width: 720px;
    margin-left: auto;
    margin-right: auto;
    text-align: center;
    font-size: 0.65rem;
    color: rgba(237, 228, 208, 0.45);
    letter-spacing: 0.1em;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.7rem;
    flex-wrap: wrap;
}

.chat-input-foot-divider {
    color: rgba(237, 228, 208, 0.2);
}

/* ============================================================
   質問例カード（チャット初回時に表示）
   ============================================================ */

.examples-card {
    max-width: 720px;
    margin: 1.5rem auto 0.5rem;
    padding: 1.5rem 1.2rem 1.2rem;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.75), rgba(255, 255, 255, 0.45));
    border: 1px solid var(--line);
    border-radius: 6px;
    backdrop-filter: blur(10px);
    box-shadow: 0 8px 24px -12px rgba(10, 22, 40, 0.15);
    animation: msg-in 0.6s var(--ease-luxe) 0.3s both;
    transition: all 0.4s var(--ease-luxe);
    position: relative;
}

.examples-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 50px;
    height: 1px;
    background: var(--gold);
    opacity: 0.5;
}

.examples-card.hidden {
    max-height: 0;
    opacity: 0;
    padding-top: 0;
    padding-bottom: 0;
    margin-top: 0;
    margin-bottom: 0;
    border-width: 0;
    overflow: hidden;
}

.examples-eyebrow {
    text-align: center;
    font-size: 0.7rem;
    letter-spacing: 0.25em;
    color: var(--gold-deep);
    margin-bottom: 1rem;
    font-weight: 500;
    font-family: var(--f-display);
}

.examples-list {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.example-item {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    width: 100%;
    padding: 0.9rem 1rem;
    background: rgba(255, 255, 255, 0.85);
    border: 1px solid var(--line-soft);
    border-radius: 4px;
    text-align: left;
    color: var(--ink);
    font-size: 0.88rem;
    line-height: 1.6;
    transition: all 0.3s var(--ease-luxe);
    cursor: pointer;
    font-family: var(--f-sans);
}

.example-item:hover,
.example-item:active {
    background: var(--ink);
    color: var(--text-on-dark);
    border-color: var(--gold);
    transform: translateX(2px);
}

.example-quote {
    font-family: var(--f-display);
    font-size: 1.4rem;
    color: var(--gold-deep);
    line-height: 1;
    flex-shrink: 0;
    transition: color 0.3s var(--ease-luxe);
}

.example-item:hover .example-quote,
.example-item:active .example-quote {
    color: var(--gold-bright);
}

.example-text {
    flex: 1;
    min-width: 0;
}

.example-arrow {
    color: var(--gold-deep);
    font-size: 0.95rem;
    flex-shrink: 0;
    transition: all 0.3s var(--ease-luxe);
}

.example-item:hover .example-arrow,
.example-item:active .example-arrow {
    color: var(--gold-bright);
    transform: translateX(3px);
}

.examples-foot {
    text-align: center;
    font-size: 0.72rem;
    color: rgba(10, 22, 40, 0.5);
    margin-top: 1rem;
    letter-spacing: 0.05em;
}

/* ============================================================
   入力エリア上部のマイクガイド
   ============================================================ */

.chat-mic-guide {
    max-width: 720px;
    margin: 0 auto 0.7rem;
    text-align: center;
    color: var(--gold-bright);
    font-size: 0.78rem;
    letter-spacing: 0.08em;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    transition: all 0.4s var(--ease-luxe);
}

.chat-mic-guide.hidden {
    max-height: 0;
    opacity: 0;
    margin-top: 0;
    margin-bottom: 0;
    overflow: hidden;
}

.chat-mic-guide-arrow {
    color: var(--gold);
    font-weight: 700;
    animation: bounce-down 2s infinite;
}

/* 録音中オーバーレイ */

/* hidden属性を確実に効かせる */
[hidden] {
    display: none !important;
}

.recording-overlay {
    position: fixed;
    inset: 0;
    background: rgba(5, 11, 21, 0.92);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    animation: fade-in 0.4s var(--ease-luxe);
}

@keyframes fade-in {
    from { opacity: 0; }
    to { opacity: 1; }
}

.recording-card {
    text-align: center;
    padding: 3rem 2rem;
    max-width: 360px;
    color: var(--text-on-dark);
}

.recording-visual {
    width: 140px;
    height: 140px;
    margin: 0 auto 2rem;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

.recording-circle {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--gold-bright), var(--gold-deep));
    box-shadow: 0 0 60px rgba(201, 169, 97, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--ink);
    animation: rec-breathe 2s ease-in-out infinite;
}

@keyframes rec-breathe {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.08); }
}

.recording-circle svg {
    width: 56px;
    height: 56px;
}

.recording-ring {
    position: absolute;
    inset: -10px;
    border-radius: 50%;
    border: 2px solid var(--gold);
    opacity: 0;
    animation: rec-ring 2s ease-out infinite;
}

.recording-ring-2 { animation-delay: 0.7s; }

@keyframes rec-ring {
    0% { opacity: 0.6; transform: scale(1); }
    100% { opacity: 0; transform: scale(1.4); }
}

.recording-title {
    font-family: var(--f-serif);
    font-size: 1.3rem;
    font-weight: 600;
    letter-spacing: 0.1em;
    margin-bottom: 0.6rem;
    color: var(--gold-bright);
}

.recording-desc {
    font-size: 0.85rem;
    color: var(--text-on-dark-soft);
    margin-bottom: 2rem;
    line-height: 1.8;
}

.recording-timer {
    font-family: var(--f-display);
    font-size: 2rem;
    font-weight: 500;
    letter-spacing: 0.1em;
    color: var(--gold-bright);
    margin-bottom: 2rem;
}

.recording-stop {
    background: var(--gold);
    color: var(--ink);
    padding: 0.85rem 2.5rem;
    border-radius: 100px;
    font-weight: 600;
    letter-spacing: 0.15em;
    font-size: 0.85rem;
    transition: all 0.3s var(--ease-luxe);
    box-shadow: 0 6px 20px rgba(201, 169, 97, 0.4);
}

.recording-stop:hover {
    background: var(--gold-bright);
    transform: scale(1.03);
}

/* 録音中：音声波形 */
.recording-wave {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
    height: 36px;
    margin: 0 auto 1.4rem;
}

.recording-wave span {
    display: block;
    width: 4px;
    background: linear-gradient(180deg, var(--gold-bright), var(--gold-deep));
    border-radius: 2px;
    animation: wave-bounce 1.2s ease-in-out infinite;
    transform-origin: center;
}

.recording-wave span:nth-child(1) { height: 12px; animation-delay: -1.2s; }
.recording-wave span:nth-child(2) { height: 22px; animation-delay: -1.1s; }
.recording-wave span:nth-child(3) { height: 30px; animation-delay: -1.0s; }
.recording-wave span:nth-child(4) { height: 18px; animation-delay: -0.9s; }
.recording-wave span:nth-child(5) { height: 28px; animation-delay: -0.8s; }
.recording-wave span:nth-child(6) { height: 14px; animation-delay: -0.7s; }
.recording-wave span:nth-child(7) { height: 24px; animation-delay: -0.6s; }
.recording-wave span:nth-child(8) { height: 32px; animation-delay: -0.5s; }
.recording-wave span:nth-child(9) { height: 16px; animation-delay: -0.4s; }
.recording-wave span:nth-child(10) { height: 22px; animation-delay: -0.3s; }

@keyframes wave-bounce {
    0%, 100% { transform: scaleY(0.4); opacity: 0.6; }
    50% { transform: scaleY(1); opacity: 1; }
}

/* 録音中：話しかけ例 */
.recording-examples {
    margin-bottom: 1.6rem;
    padding: 1rem 1.2rem;
    background: rgba(201, 169, 97, 0.08);
    border: 1px solid rgba(201, 169, 97, 0.2);
    border-radius: 4px;
}

.recording-examples-label {
    font-size: 0.65rem;
    letter-spacing: 0.25em;
    color: var(--gold-deep);
    margin-bottom: 0.5rem;
    font-weight: 500;
}

.recording-example-text {
    font-family: var(--f-serif);
    font-size: 0.92rem;
    color: var(--text-on-dark);
    line-height: 1.6;
    font-style: italic;
}

/* 録音中：キャンセルボタン */
.recording-cancel-row {
    margin-top: 1rem;
}

.recording-cancel {
    background: transparent;
    color: var(--text-on-dark-soft);
    font-size: 0.78rem;
    letter-spacing: 0.1em;
    padding: 0.4rem 1rem;
    border: 1px solid rgba(237, 228, 208, 0.15);
    border-radius: 100px;
    transition: all 0.3s var(--ease-luxe);
}

.recording-cancel:hover {
    color: var(--text-on-dark);
    border-color: rgba(237, 228, 208, 0.3);
}

/* 処理中オーバーレイ */

.processing-overlay {
    position: fixed;
    inset: 0;
    background: rgba(10, 22, 40, 0.7);
    backdrop-filter: blur(8px);
    z-index: 999;
    display: flex;
    align-items: center;
    justify-content: center;
    animation: fade-in 0.3s var(--ease-luxe);
}

.processing-card {
    background: var(--ink);
    color: var(--text-on-dark);
    padding: 2rem 3rem;
    border-radius: 4px;
    border: 1px solid var(--gold);
    text-align: center;
}

.processing-spinner {
    width: 40px;
    height: 40px;
    margin: 0 auto 1.2rem;
    border: 2px solid rgba(201, 169, 97, 0.2);
    border-top-color: var(--gold);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

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

.processing-text {
    font-family: var(--f-serif);
    font-size: 0.95rem;
    letter-spacing: 0.08em;
    color: var(--gold-bright);
}

/* ============================================================
   アニメーション
   ============================================================ */

@keyframes fade-up {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

/* ============================================================
   レスポンシブ調整
   ============================================================ */

@media (max-width: 640px) {
    .brand { padding: 0.9rem 1rem; }
    .brand-mark { font-size: 1.3rem; padding: 0.3rem 0.7rem; }
    .brand-name-jp { font-size: 0.95rem; }
    .brand-name-sub { font-size: 0.6rem; }

    .hero { padding: 2rem 1rem 3rem; }
    .hero-eyebrow { font-size: 0.7rem; letter-spacing: 0.4em; margin-bottom: 1rem; }
    .hero-lead { margin-bottom: 2rem; line-height: 1.9; }
    .hero-instruction { margin-bottom: 2rem; padding: 0.55rem 1.1rem; }

    .topic-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    .topic-card { padding: 2rem 1.5rem 1.8rem; min-height: auto; }
    .topic-title { font-size: 1.3rem; }

    .hero-foot-row { gap: 1rem; padding: 1rem 1.3rem; flex-wrap: wrap; }
    .hero-foot-item { flex: 1 1 auto; }

    .chat-header { padding: 0.8rem 0.9rem; padding-top: max(0.8rem, env(safe-area-inset-top)); }
    .chat-header-main { font-size: 0.95rem; }
    .chat-header-sub { font-size: 0.65rem; }

    .chat-area { padding: 1.2rem 0.8rem 0.8rem; }
    .msg-text { font-size: 0.9rem; }

    .chat-input-area { padding: 0.8rem 0.8rem 1rem; }
    .btn-mic { width: 50px; height: 50px; }
    .btn-mic svg { width: 20px; height: 20px; }
    .chat-input { font-size: 0.9rem; padding: 0.85rem 0.4rem; }
    .btn-send { width: 38px; height: 38px; }

    .footer-inner { flex-direction: column; text-align: center; }
    .footer-meta { text-align: center; }
}

/* ============================================================
   トピックカラー アクセント
   ============================================================ */

.page-chat.topic-infection .chat-status-dot { background: var(--c-infection); box-shadow: 0 0 8px rgba(196, 90, 79, 0.6); }
.page-chat.topic-hygiene .chat-status-dot { background: var(--c-hygiene); box-shadow: 0 0 8px rgba(74, 138, 123, 0.6); }
.page-chat.topic-stress .chat-status-dot { background: var(--c-stress); box-shadow: 0 0 8px rgba(142, 109, 181, 0.6); }
.page-chat.topic-nutrition .chat-status-dot { background: var(--c-nutrition); box-shadow: 0 0 8px rgba(201, 138, 63, 0.6); }

/* ============================================================
   ヒーロー：具体例表示
   ============================================================ */

.hero-examples {
    max-width: 680px;
    margin: 0 auto 2.5rem;
    padding: 1.8rem 1.8rem 1.5rem;
    background: rgba(255, 255, 255, 0.5);
    border: 1px solid var(--line);
    border-radius: 6px;
    backdrop-filter: blur(10px);
    position: relative;
    animation: fade-up 0.9s var(--ease-luxe) 0.45s both;
}

.hero-examples::before {
    content: '"';
    position: absolute;
    top: -8px;
    left: 18px;
    background: var(--paper);
    padding: 0 8px;
    font-family: var(--f-display);
    font-size: 1.6rem;
    color: var(--gold);
    line-height: 1;
}

.hero-examples-label {
    text-align: center;
    font-family: var(--f-display);
    font-size: 0.72rem;
    letter-spacing: 0.25em;
    color: var(--gold-deep);
    margin-bottom: 1rem;
}

.hero-examples-list {
    list-style: none;
    padding: 0;
    margin: 0 0 1.2rem;
}

.hero-examples-list li {
    font-family: var(--f-serif);
    font-size: 0.95rem;
    color: var(--ink);
    line-height: 1.9;
    padding-left: 1.5rem;
    position: relative;
    font-style: italic;
}

.hero-examples-list li::before {
    content: '— ';
    position: absolute;
    left: 0;
    color: var(--gold);
    font-style: normal;
}

.hero-examples-foot {
    text-align: center;
    font-size: 0.78rem;
    color: rgba(10, 22, 40, 0.6);
    line-height: 1.8;
    padding-top: 1rem;
    border-top: 1px solid var(--line-soft);
}

@media (max-width: 640px) {
    .hero-examples {
        padding: 1.5rem 1.2rem 1.2rem;
    }
    .hero-examples-list li {
        font-size: 0.88rem;
    }
}

/* ============================================================
   ブランドリンク（クリッカブル）
   ============================================================ */

.brand-link {
    display: flex;
    align-items: center;
    gap: 1rem;
    transition: opacity 0.3s var(--ease-luxe);
}

.brand-link:hover { opacity: 0.85; }

/* ============================================================
   パンくず
   ============================================================ */

.breadcrumb-bar {
    background: rgba(251, 248, 242, 0.6);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--line-soft);
    padding: 0.7rem 1.5rem;
}

.breadcrumb {
    max-width: 1100px;
    margin: 0 auto;
    font-size: 0.78rem;
    color: rgba(10, 22, 40, 0.6);
    letter-spacing: 0.05em;
    display: flex;
    align-items: center;
    gap: 0.6rem;
}

.breadcrumb a {
    color: var(--gold-deep);
    transition: color 0.3s var(--ease-luxe);
}

.breadcrumb a:hover { color: var(--ink); }

.breadcrumb-sep {
    color: var(--gold);
    font-weight: 300;
}

/* ============================================================
   topic.php - 分野ヒーロー
   ============================================================ */

.topic-page {
    max-width: 1000px;
    margin: 0 auto;
    padding: 3rem 1.5rem 5rem;
}

.topic-hero {
    text-align: center;
    margin-bottom: 3rem;
    animation: fade-up 0.8s var(--ease-luxe);
}

.topic-hero-eyebrow {
    font-family: var(--f-display);
    font-size: 0.75rem;
    letter-spacing: 0.5em;
    color: var(--gold);
    margin-bottom: 1rem;
    display: inline-block;
    position: relative;
}

.topic-hero-eyebrow::before,
.topic-hero-eyebrow::after {
    content: '';
    position: absolute;
    top: 50%;
    width: 28px;
    height: 1px;
    background: var(--gold);
    opacity: 0.5;
}

.topic-hero-eyebrow::before { right: 100%; margin-right: 0.8rem; }
.topic-hero-eyebrow::after { left: 100%; margin-left: 0.8rem; }

.topic-hero-title {
    font-family: var(--f-serif);
    font-weight: 600;
    font-size: clamp(1.8rem, 4.5vw, 2.6rem);
    color: var(--ink);
    letter-spacing: 0.08em;
    margin-bottom: 0.8rem;
    line-height: 1.4;
    position: relative;
    display: inline-block;
}

.topic-hero-title::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 50%;
    transform: translateX(-50%);
    width: 50px;
    height: 2px;
    background: var(--gold);
    opacity: 0.6;
}

.topic-hero-subtitle {
    font-family: var(--f-serif);
    font-size: 1rem;
    color: rgba(10, 22, 40, 0.65);
    margin-top: 1.4rem;
    line-height: 1.7;
}

/* ============================================================
   topic.php - 2つの入口カード
   ============================================================ */

.entry-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.2rem;
    margin-bottom: 4rem;
    animation: fade-up 0.8s var(--ease-luxe) 0.15s both;
}

@media (max-width: 720px) {
    .entry-grid {
        grid-template-columns: 1fr;
    }
}

.entry-card {
    background: var(--ink);
    color: var(--text-on-dark);
    border: 1px solid var(--gold);
    border-radius: 6px;
    overflow: hidden;
    transition: all 0.5s var(--ease-luxe);
    box-shadow: var(--shadow-card);
    position: relative;
}

.entry-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, transparent, var(--gold), transparent);
    transform: scaleX(0);
    transition: transform 0.5s var(--ease-luxe);
}

.entry-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 16px 40px -10px rgba(10, 22, 40, 0.4);
}

.entry-card:hover::before { transform: scaleX(1); }

.entry-card.entry-qa {
    background: linear-gradient(135deg, #fff, #f8f4ec);
    color: var(--ink);
    border-color: var(--line);
}

.entry-card-inner {
    padding: 1.8rem 1.5rem;
    display: flex;
    align-items: center;
    gap: 1.2rem;
}

.entry-icon-wrap {
    flex-shrink: 0;
}

.entry-icon {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--gold-bright), var(--gold-deep));
    color: var(--ink);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 6px 20px rgba(201, 169, 97, 0.4);
}

.entry-icon svg {
    width: 26px;
    height: 26px;
}

.entry-card.entry-qa .entry-icon {
    background: var(--ink);
    color: var(--gold-bright);
    box-shadow: 0 6px 20px rgba(10, 22, 40, 0.25);
}

.entry-text {
    flex: 1;
    min-width: 0;
}

.entry-eyebrow {
    font-family: var(--f-display);
    font-size: 0.7rem;
    letter-spacing: 0.3em;
    color: var(--gold-bright);
    margin-bottom: 0.3rem;
    font-weight: 600;
}

.entry-card.entry-qa .entry-eyebrow {
    color: var(--gold-deep);
}

.entry-title {
    font-family: var(--f-serif);
    font-weight: 600;
    font-size: 1.2rem;
    letter-spacing: 0.06em;
    margin-bottom: 0.5rem;
}

.entry-desc {
    font-size: 0.82rem;
    line-height: 1.7;
    opacity: 0.75;
    margin: 0;
}

.entry-arrow {
    flex-shrink: 0;
    font-size: 1.5rem;
    color: var(--gold);
    transition: transform 0.4s var(--ease-luxe);
}

.entry-card:hover .entry-arrow {
    transform: translateX(4px);
}

/* ============================================================
   topic.php - Q&Aセクション
   ============================================================ */

.qa-section {
    margin-bottom: 4rem;
    animation: fade-up 0.8s var(--ease-luxe) 0.3s both;
    scroll-margin-top: 80px;
}

.qa-section-header {
    text-align: center;
    margin-bottom: 2.5rem;
}

.qa-section-eyebrow {
    font-family: var(--f-display);
    font-size: 0.72rem;
    letter-spacing: 0.4em;
    color: var(--gold-deep);
    margin-bottom: 0.8rem;
    font-weight: 500;
}

.qa-section-title {
    font-family: var(--f-serif);
    font-weight: 600;
    font-size: clamp(1.4rem, 3.5vw, 1.9rem);
    color: var(--ink);
    letter-spacing: 0.08em;
    margin-bottom: 0.5rem;
}

.qa-section-lead {
    font-size: 0.9rem;
    color: rgba(10, 22, 40, 0.6);
    line-height: 1.7;
}

/* Q&Aアイテム */

.qa-list {
    display: flex;
    flex-direction: column;
    gap: 0.7rem;
}

.qa-item {
    background: rgba(255, 255, 255, 0.75);
    border: 1px solid var(--line);
    border-radius: 4px;
    overflow: hidden;
    transition: all 0.4s var(--ease-luxe);
    box-shadow: 0 4px 14px -8px rgba(10, 22, 40, 0.1);
}

.qa-item[open] {
    background: #fff;
    border-color: var(--gold);
    box-shadow: 0 10px 30px -12px rgba(10, 22, 40, 0.2);
}

.qa-question {
    display: flex;
    align-items: flex-start;
    gap: 0.9rem;
    padding: 1.1rem 1.3rem;
    cursor: pointer;
    list-style: none;
    transition: background 0.3s var(--ease-luxe);
    -webkit-tap-highlight-color: transparent;
}

.qa-question::-webkit-details-marker {
    display: none;
}

.qa-question:hover {
    background: rgba(201, 169, 97, 0.05);
}

.qa-num {
    font-family: var(--f-display);
    font-size: 0.95rem;
    color: var(--gold-deep);
    font-weight: 600;
    flex-shrink: 0;
    letter-spacing: 0.05em;
    padding-top: 1px;
}

.qa-q-text {
    flex: 1;
    font-family: var(--f-sans);
    font-size: 0.94rem;
    line-height: 1.7;
    color: var(--ink);
    font-weight: 500;
    padding-top: 1px;
}

.qa-toggle {
    flex-shrink: 0;
    color: var(--gold);
    transition: transform 0.4s var(--ease-luxe);
    width: 22px;
    height: 22px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.qa-toggle svg {
    width: 100%;
    height: 100%;
}

.qa-item[open] .qa-toggle {
    transform: rotate(180deg);
}

.qa-answer {
    padding: 0.4rem 1.5rem 1.6rem;
    border-top: 1px solid var(--line-soft);
    margin-top: -1px;
    animation: qa-open 0.4s var(--ease-luxe);
}

@keyframes qa-open {
    from { opacity: 0; transform: translateY(-4px); }
    to { opacity: 1; transform: translateY(0); }
}

.qa-a-label {
    font-family: var(--f-display);
    font-size: 0.65rem;
    letter-spacing: 0.3em;
    color: var(--gold-deep);
    margin: 1rem 0 0.8rem;
    font-weight: 600;
}

.qa-a-text {
    font-size: 0.92rem;
    line-height: 2;
    color: var(--ink);
    letter-spacing: 0.02em;
    padding: 1rem 1.2rem;
    background: rgba(201, 169, 97, 0.05);
    border-left: 3px solid var(--gold);
    border-radius: 0 4px 4px 0;
}

.qa-a-actions {
    margin-top: 1rem;
    text-align: right;
}

.qa-a-action {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    font-size: 0.82rem;
    color: var(--gold-deep);
    padding: 0.55rem 1.1rem;
    border: 1px solid var(--gold);
    border-radius: 100px;
    transition: all 0.3s var(--ease-luxe);
    letter-spacing: 0.05em;
}

.qa-a-action:hover {
    background: var(--ink);
    color: var(--gold-bright);
    border-color: var(--ink);
}

@media (max-width: 640px) {
    .qa-question {
        padding: 0.95rem 1rem;
        gap: 0.7rem;
    }
    .qa-q-text {
        font-size: 0.88rem;
    }
    .qa-answer {
        padding: 0.4rem 1rem 1.4rem;
    }
    .qa-a-text {
        font-size: 0.88rem;
        padding: 0.9rem 1rem;
    }
    .qa-a-action {
        font-size: 0.78rem;
    }
}

/* ============================================================
   topic.php - もっと相談するCTA
   ============================================================ */

.more-cta {
    background: var(--ink);
    color: var(--text-on-dark);
    border-radius: 8px;
    padding: 3rem 2rem;
    text-align: center;
    border: 1px solid rgba(201, 169, 97, 0.3);
    box-shadow: 0 20px 50px -15px rgba(10, 22, 40, 0.4);
    position: relative;
    overflow: hidden;
    animation: fade-up 0.8s var(--ease-luxe) 0.45s both;
}

.more-cta::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--gold), transparent);
}

.more-cta::after {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse at center top, rgba(201, 169, 97, 0.12), transparent 60%);
    pointer-events: none;
}

.more-cta-inner {
    position: relative;
    z-index: 1;
}

.more-cta-eyebrow {
    font-family: var(--f-display);
    font-size: 0.72rem;
    letter-spacing: 0.4em;
    color: var(--gold);
    margin-bottom: 0.8rem;
    font-weight: 500;
}

.more-cta-title {
    font-family: var(--f-serif);
    font-weight: 600;
    font-size: clamp(1.3rem, 3.5vw, 1.7rem);
    letter-spacing: 0.06em;
    margin-bottom: 0.8rem;
    color: var(--text-on-dark);
}

.more-cta-desc {
    font-size: 0.9rem;
    color: var(--text-on-dark-soft);
    margin-bottom: 1.8rem;
    line-height: 1.8;
}

.more-cta-button {
    display: inline-flex;
    align-items: center;
    background: linear-gradient(135deg, var(--gold-bright), var(--gold-deep));
    color: var(--ink);
    padding: 1rem 2.5rem;
    border-radius: 100px;
    font-weight: 600;
    font-size: 0.92rem;
    letter-spacing: 0.1em;
    transition: all 0.3s var(--ease-luxe);
    box-shadow: 0 8px 24px rgba(201, 169, 97, 0.45);
}

.more-cta-button:hover {
    transform: translateY(-2px) scale(1.02);
    box-shadow: 0 12px 30px rgba(201, 169, 97, 0.55);
}

@media (max-width: 640px) {
    .topic-page {
        padding: 2rem 1rem 3rem;
    }
    .topic-hero {
        margin-bottom: 2rem;
    }
    .entry-grid {
        margin-bottom: 2.5rem;
    }
    .entry-card-inner {
        padding: 1.4rem 1.2rem;
        gap: 0.9rem;
    }
    .entry-icon {
        width: 48px;
        height: 48px;
    }
    .entry-icon svg {
        width: 22px;
        height: 22px;
    }
    .entry-title {
        font-size: 1.05rem;
    }
    .entry-desc {
        font-size: 0.78rem;
    }
    .more-cta {
        padding: 2.5rem 1.3rem;
    }
    .qa-section {
        margin-bottom: 2.5rem;
    }
}

/* ============================================================
   6本目：ハラスメント分野のカラー
   ============================================================ */

.page-chat.topic-harassment .chat-status-dot {
    background: #d4af7f;
    box-shadow: 0 0 8px rgba(212, 175, 127, 0.6);
}

.page-chat.topic-kenkokeiei .chat-status-dot {
    background: #6b8e9e;
    box-shadow: 0 0 8px rgba(107, 142, 158, 0.6);
}

/* ============================================================
   harassment-gate.php - 経営者/従業員選択画面
   ============================================================ */

.gate-notice {
    max-width: 760px;
    margin: 0 auto 2.5rem;
    padding: 1.5rem 1.8rem;
    background: linear-gradient(180deg, rgba(212, 175, 127, 0.12), rgba(212, 175, 127, 0.06));
    border: 1px solid rgba(212, 175, 127, 0.35);
    border-radius: 6px;
    display: flex;
    align-items: flex-start;
    gap: 1.2rem;
    animation: fade-up 0.7s var(--ease-luxe);
}

.gate-notice-icon {
    width: 36px;
    height: 36px;
    flex-shrink: 0;
    color: #c08c4f;
    background: rgba(212, 175, 127, 0.18);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 7px;
}

.gate-notice-text strong {
    display: block;
    font-family: var(--f-serif);
    font-size: 1.05rem;
    color: var(--ink);
    margin-bottom: 0.4rem;
    letter-spacing: 0.05em;
    font-weight: 600;
}

.gate-notice-text p {
    font-size: 0.88rem;
    color: rgba(10, 22, 40, 0.7);
    line-height: 1.8;
    margin: 0;
}

.gate-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
    max-width: 1080px;
    margin: 0 auto 3rem;
    animation: fade-up 0.8s var(--ease-luxe) 0.15s both;
}

@media (max-width: 820px) {
    .gate-grid {
        grid-template-columns: 1fr;
    }
}

.gate-card {
    background: var(--ink);
    color: var(--text-on-dark);
    border-radius: 8px;
    overflow: hidden;
    box-shadow: var(--shadow-card);
    border: 1px solid rgba(201, 169, 97, 0.25);
    transition: all 0.5s var(--ease-luxe);
    position: relative;
}

.gate-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    transform: scaleX(0);
    transform-origin: center;
    transition: transform 0.5s var(--ease-luxe);
}

.gate-manager::before {
    background: linear-gradient(90deg, transparent, var(--gold), transparent);
}

.gate-employee::before {
    background: linear-gradient(90deg, transparent, #f1c5a3, transparent);
}

.gate-card:hover {
    transform: translateY(-4px);
    border-color: var(--gold);
}

.gate-card:hover::before { transform: scaleX(1); }

.gate-employee {
    background: linear-gradient(135deg, #fdfaf3, #f4ecd9);
    color: var(--ink);
    border-color: rgba(212, 175, 127, 0.35);
}

.gate-card-inner {
    padding: 2rem 1.8rem 1.8rem;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.gate-icon-wrap {
    margin-bottom: 1.4rem;
}

.gate-icon {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--gold-bright), var(--gold-deep));
    color: var(--ink);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 6px 20px rgba(201, 169, 97, 0.4);
}

.gate-icon svg {
    width: 26px;
    height: 26px;
}

.gate-employee .gate-icon {
    background: linear-gradient(135deg, #e8b894, #c89572);
    box-shadow: 0 6px 20px rgba(200, 149, 114, 0.35);
    color: #fff;
}

.gate-card-text {
    flex: 1;
}

.gate-card-eyebrow {
    font-family: var(--f-display);
    font-size: 0.7rem;
    letter-spacing: 0.35em;
    color: var(--gold-bright);
    margin-bottom: 0.5rem;
    font-weight: 600;
}

.gate-employee .gate-card-eyebrow {
    color: #b67849;
}

.gate-card-title {
    font-family: var(--f-serif);
    font-weight: 600;
    font-size: 1.4rem;
    letter-spacing: 0.06em;
    margin-bottom: 1rem;
    line-height: 1.4;
}

.gate-card-desc {
    font-size: 0.9rem;
    line-height: 1.85;
    margin-bottom: 1.2rem;
    opacity: 0.85;
}

.gate-card-desc strong {
    color: inherit;
}

.gate-manager .gate-card-desc strong {
    color: var(--gold-bright);
}

.gate-employee .gate-card-desc strong {
    color: #b67849;
}

.gate-card-list {
    list-style: none;
    padding: 0;
    margin: 0 0 1.5rem;
    border-top: 1px solid rgba(201, 169, 97, 0.15);
    padding-top: 1.2rem;
}

.gate-employee .gate-card-list {
    border-top-color: rgba(212, 175, 127, 0.25);
}

.gate-card-list li {
    font-size: 0.85rem;
    padding: 0.4rem 0 0.4rem 1.4rem;
    position: relative;
    opacity: 0.85;
}

.gate-card-list li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--gold);
    font-weight: 600;
}

.gate-employee .gate-card-list li::before {
    color: #b67849;
}

.gate-card-cta {
    margin-top: auto;
    padding-top: 1rem;
    border-top: 1px solid rgba(201, 169, 97, 0.2);
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 0.92rem;
    font-weight: 600;
    letter-spacing: 0.1em;
    color: var(--gold-bright);
}

.gate-employee .gate-card-cta {
    color: #b67849;
    border-top-color: rgba(212, 175, 127, 0.3);
}

.gate-card-arrow {
    font-size: 1.2rem;
    transition: transform 0.4s var(--ease-luxe);
}

.gate-card:hover .gate-card-arrow {
    transform: translateX(5px);
}

.gate-disclaimer {
    max-width: 760px;
    margin: 0 auto;
    padding: 1.4rem 1.6rem;
    background: rgba(255, 255, 255, 0.5);
    border-left: 3px solid var(--gold);
    border-radius: 0 4px 4px 0;
    animation: fade-up 0.8s var(--ease-luxe) 0.3s both;
}

.gate-disclaimer-inner p {
    font-size: 0.82rem;
    color: rgba(10, 22, 40, 0.7);
    line-height: 1.9;
    margin: 0;
}

.gate-disclaimer-inner strong {
    color: var(--ink);
    font-family: var(--f-serif);
    font-size: 0.92rem;
    display: block;
    margin-bottom: 0.4rem;
    letter-spacing: 0.05em;
}

/* ============================================================
   harassment-help.php - 被害者向け案内画面（最も慎重に）
   ============================================================ */

.page-help {
    background: linear-gradient(180deg, #fdfaf3 0%, #f6efe1 100%);
}

.help-page {
    max-width: 880px;
    margin: 0 auto;
    padding: 3rem 1.5rem 5rem;
}

.help-hero {
    text-align: center;
    margin-bottom: 3rem;
    animation: fade-up 0.8s var(--ease-luxe);
}

.help-hero-eyebrow {
    font-family: var(--f-display);
    font-size: 0.75rem;
    letter-spacing: 0.4em;
    color: #b67849;
    margin-bottom: 1rem;
    font-weight: 500;
}

.help-hero-title {
    font-family: var(--f-serif);
    font-weight: 600;
    font-size: clamp(1.6rem, 4.5vw, 2.4rem);
    color: var(--ink);
    letter-spacing: 0.06em;
    line-height: 1.6;
    margin-bottom: 1.5rem;
}

.help-hero-accent {
    color: #c08c4f;
    position: relative;
    display: inline-block;
}

.help-hero-accent::after {
    content: '';
    position: absolute;
    left: 0;
    right: 0;
    bottom: -0.1em;
    height: 2px;
    background: linear-gradient(90deg, transparent, #c08c4f 20%, #c08c4f 80%, transparent);
    opacity: 0.5;
}

.help-hero-message {
    max-width: 600px;
    margin: 0 auto;
    background: rgba(255, 255, 255, 0.7);
    padding: 1.8rem 2rem;
    border-radius: 6px;
    border: 1px solid rgba(212, 175, 127, 0.3);
    box-shadow: 0 8px 24px -12px rgba(10, 22, 40, 0.1);
}

.help-hero-message p {
    font-family: var(--f-serif);
    font-size: 0.95rem;
    color: var(--ink);
    line-height: 2.1;
    margin: 0 0 1rem;
}

.help-hero-message p:last-child {
    margin-bottom: 0;
}

.help-hero-message strong {
    color: #b67849;
}

/* 緊急窓口 */

.help-urgent {
    background: linear-gradient(135deg, #fff5e6, #ffe5cc);
    border: 2px solid rgba(212, 100, 79, 0.4);
    border-radius: 8px;
    padding: 1.8rem;
    margin-bottom: 3rem;
    box-shadow: 0 12px 30px -12px rgba(220, 80, 60, 0.2);
    animation: fade-up 0.8s var(--ease-luxe) 0.15s both;
}

.help-urgent-header {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    margin-bottom: 1.4rem;
    padding-bottom: 1.4rem;
    border-bottom: 1px solid rgba(212, 100, 79, 0.25);
}

.help-urgent-icon {
    width: 44px;
    height: 44px;
    flex-shrink: 0;
    background: linear-gradient(135deg, #e88064, #c4513b);
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 9px;
    box-shadow: 0 4px 12px rgba(220, 80, 60, 0.3);
}

.help-urgent-title strong {
    display: block;
    font-family: var(--f-serif);
    font-size: 1.05rem;
    font-weight: 600;
    color: var(--ink);
    letter-spacing: 0.05em;
    margin-bottom: 0.3rem;
}

.help-urgent-sub {
    font-size: 0.82rem;
    color: rgba(10, 22, 40, 0.65);
    letter-spacing: 0.05em;
}

.help-urgent-list {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.8rem;
}

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

.help-urgent-item {
    background: #fff;
    border: 1px solid rgba(212, 100, 79, 0.3);
    border-radius: 6px;
    padding: 1rem 1.2rem;
    transition: all 0.3s var(--ease-luxe);
    text-align: left;
    display: block;
}

.help-urgent-item:hover {
    transform: translateY(-2px);
    border-color: #c4513b;
    box-shadow: 0 8px 20px -8px rgba(220, 80, 60, 0.3);
}

.help-urgent-name {
    font-family: var(--f-serif);
    font-weight: 600;
    font-size: 0.95rem;
    color: var(--ink);
    letter-spacing: 0.04em;
    margin-bottom: 0.3rem;
}

.help-urgent-number {
    font-family: var(--f-display);
    font-size: 1.4rem;
    font-weight: 600;
    color: #c4513b;
    letter-spacing: 0.08em;
    margin-bottom: 0.3rem;
}

.help-urgent-desc {
    font-size: 0.75rem;
    color: rgba(10, 22, 40, 0.6);
    letter-spacing: 0.03em;
}

/* セクション共通 */

.help-section {
    margin-bottom: 3.5rem;
    animation: fade-up 0.8s var(--ease-luxe) 0.3s both;
}

.help-section-eyebrow {
    font-family: var(--f-display);
    font-size: 0.7rem;
    letter-spacing: 0.4em;
    color: #b67849;
    margin-bottom: 0.6rem;
    font-weight: 500;
}

.help-section-title {
    font-family: var(--f-serif);
    font-weight: 600;
    font-size: clamp(1.3rem, 3vw, 1.7rem);
    color: var(--ink);
    letter-spacing: 0.06em;
    margin-bottom: 0.8rem;
    line-height: 1.4;
}

.help-section-lead {
    font-size: 0.9rem;
    color: rgba(10, 22, 40, 0.65);
    line-height: 1.85;
    margin-bottom: 1.8rem;
}

.help-cards {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.help-card {
    background: rgba(255, 255, 255, 0.85);
    border: 1px solid rgba(212, 175, 127, 0.3);
    border-radius: 6px;
    padding: 1.4rem 1.5rem;
    display: flex;
    gap: 1.2rem;
    transition: all 0.4s var(--ease-luxe);
    box-shadow: 0 4px 14px -8px rgba(10, 22, 40, 0.1);
}

.help-card:hover {
    background: #fff;
    border-color: #c08c4f;
    transform: translateX(2px);
    box-shadow: 0 8px 20px -8px rgba(10, 22, 40, 0.15);
}

.help-card-num {
    font-family: var(--f-display);
    font-size: 1.1rem;
    color: #c08c4f;
    font-weight: 600;
    letter-spacing: 0.05em;
    flex-shrink: 0;
    padding-top: 2px;
}

.help-card-content {
    flex: 1;
    min-width: 0;
}

.help-card-name {
    font-family: var(--f-serif);
    font-weight: 600;
    font-size: 1.05rem;
    color: var(--ink);
    letter-spacing: 0.04em;
    margin-bottom: 0.2rem;
}

.help-card-org {
    font-size: 0.72rem;
    color: rgba(10, 22, 40, 0.55);
    letter-spacing: 0.08em;
    margin-bottom: 0.8rem;
    font-family: var(--f-display);
}

.help-card-desc {
    font-size: 0.85rem;
    color: var(--ink);
    line-height: 1.8;
    margin-bottom: 0.9rem;
    opacity: 0.85;
}

.help-card-meta {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
    margin-bottom: 0.9rem;
}

.help-card-tag {
    font-size: 0.7rem;
    letter-spacing: 0.05em;
    padding: 0.25rem 0.7rem;
    background: rgba(212, 175, 127, 0.15);
    color: #b67849;
    border-radius: 100px;
    border: 1px solid rgba(212, 175, 127, 0.3);
    font-weight: 500;
}

.help-card-link a {
    font-size: 0.82rem;
    color: #b67849;
    font-weight: 600;
    letter-spacing: 0.05em;
    transition: color 0.3s var(--ease-luxe);
}

.help-card-link a:hover {
    color: #8a5a2a;
}

/* メンタルケアセクションのメッセージボックス */

.help-message-box {
    background: rgba(255, 255, 255, 0.7);
    border: 1px solid rgba(212, 175, 127, 0.35);
    border-radius: 6px;
    padding: 1.6rem 1.8rem;
    margin-bottom: 1.5rem;
}

.help-message-box p {
    font-size: 0.9rem;
    color: var(--ink);
    line-height: 1.95;
    margin: 0 0 1rem;
}

.help-message-box p:last-child {
    margin-bottom: 0;
}

.help-message-box strong {
    color: #b67849;
    font-family: var(--f-serif);
    font-size: 0.95rem;
    font-weight: 600;
}

.help-message-box ul {
    list-style: none;
    padding: 0;
    margin: 0 0 1.2rem;
}

.help-message-box ul li {
    font-size: 0.88rem;
    color: var(--ink);
    line-height: 1.9;
    padding-left: 1.4rem;
    position: relative;
}

.help-message-box ul li::before {
    content: '●';
    position: absolute;
    left: 0;
    color: #c08c4f;
    font-size: 0.7em;
    top: 0.6em;
}

/* 最後のメッセージ */

.help-closing {
    background: linear-gradient(135deg, #4a3a2a, #2d1f12);
    color: #fdf6e8;
    border-radius: 8px;
    padding: 3rem 2rem;
    text-align: center;
    position: relative;
    overflow: hidden;
    border: 1px solid rgba(212, 175, 127, 0.3);
    box-shadow: 0 20px 50px -15px rgba(10, 22, 40, 0.3);
    animation: fade-up 0.8s var(--ease-luxe) 0.45s both;
}

.help-closing::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, transparent, #d4af7f, transparent);
}

.help-closing-inner {
    position: relative;
    z-index: 1;
    max-width: 580px;
    margin: 0 auto;
}

.help-closing-quote {
    font-family: var(--f-display);
    font-size: 3.5rem;
    color: #d4af7f;
    line-height: 1;
    margin-bottom: 0.5rem;
    opacity: 0.7;
}

.help-closing-message {
    font-family: var(--f-serif);
    font-weight: 600;
    font-size: clamp(1.4rem, 3.5vw, 1.9rem);
    color: #fdf6e8;
    letter-spacing: 0.08em;
    line-height: 1.6;
    margin-bottom: 1.2rem;
}

.help-closing-desc {
    font-family: var(--f-serif);
    font-size: 0.95rem;
    color: rgba(253, 246, 232, 0.85);
    line-height: 2.1;
    margin: 0;
}

.help-closing-desc strong {
    color: #d4af7f;
}

@media (max-width: 640px) {
    .help-page {
        padding: 2rem 1rem 3rem;
    }
    .help-hero-message {
        padding: 1.5rem 1.3rem;
    }
    .help-hero-message p {
        font-size: 0.88rem;
    }
    .help-urgent {
        padding: 1.4rem 1.2rem;
    }
    .help-card {
        padding: 1.2rem 1.2rem;
    }
    .help-closing {
        padding: 2.5rem 1.3rem;
    }
    .topic-page {
        padding: 2rem 1rem 3rem;
    }
}

/* ============================================================
   経営者の声カード（高級コンサル風）
   index.php ヒーロー直下
   ============================================================ */

.hero-voices {
    max-width: 1100px;
    margin: 0 auto 3rem;
    animation: fade-up 0.9s var(--ease-luxe) 0.45s both;
}

.hero-voices-eyebrow {
    text-align: center;
    font-family: var(--f-display);
    font-size: 0.75rem;
    letter-spacing: 0.4em;
    color: var(--gold-deep);
    margin-bottom: 2rem;
    font-weight: 500;
    position: relative;
    display: block;
}

.hero-voices-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.1rem;
    margin-bottom: 2rem;
}

@media (max-width: 920px) {
    .hero-voices-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 560px) {
    .hero-voices-grid {
        grid-template-columns: 1fr;
        gap: 0.8rem;
    }
}

.voice-card {
    background: rgba(255, 255, 255, 0.75);
    border: 1px solid var(--line);
    border-left: 3px solid var(--gold);
    border-radius: 2px;
    padding: 1.4rem 1.5rem 1.2rem;
    margin: 0;
    position: relative;
    transition: all 0.4s var(--ease-luxe);
    box-shadow: 0 4px 16px -8px rgba(10, 22, 40, 0.08);
    backdrop-filter: blur(10px);
}

.voice-card:hover {
    background: #fff;
    transform: translateY(-2px);
    border-left-color: var(--gold-bright);
    box-shadow: 0 12px 28px -10px rgba(10, 22, 40, 0.15);
}

.voice-card::before {
    content: '"';
    position: absolute;
    top: -8px;
    right: 14px;
    font-family: var(--f-display);
    font-size: 2.6rem;
    color: var(--gold);
    line-height: 1;
    opacity: 0.55;
    font-style: italic;
}

.voice-text {
    font-family: var(--f-serif);
    font-weight: 500;
    font-size: 0.93rem;
    color: var(--ink);
    line-height: 1.85;
    letter-spacing: 0.02em;
    margin: 0 0 0.8rem;
    padding-right: 1.4rem;
    quotes: none;
}

.voice-meta {
    font-family: var(--f-display);
    font-size: 0.7rem;
    letter-spacing: 0.25em;
    color: var(--gold-deep);
    text-transform: uppercase;
    font-weight: 500;
    padding-top: 0.6rem;
    border-top: 1px solid var(--line-soft);
}

.hero-voices-foot {
    text-align: center;
    font-size: 0.86rem;
    color: rgba(10, 22, 40, 0.65);
    line-height: 1.9;
    padding: 1.1rem 1.5rem;
    background: rgba(255, 255, 255, 0.5);
    border-top: 1px solid var(--line-soft);
    border-bottom: 1px solid var(--line-soft);
    max-width: 760px;
    margin: 0 auto;
    letter-spacing: 0.03em;
}

.hero-voices-divider {
    margin: 0 0.7rem;
    color: var(--gold);
    opacity: 0.6;
}

@media (max-width: 560px) {
    .hero-voices-eyebrow {
        font-size: 0.68rem;
        letter-spacing: 0.3em;
        margin-bottom: 1.4rem;
    }
    .voice-card {
        padding: 1.1rem 1.2rem 1rem;
    }
    .voice-text {
        font-size: 0.87rem;
        padding-right: 0.8rem;
    }
    .hero-voices-foot {
        font-size: 0.78rem;
        padding: 1rem 1.2rem;
    }
    .hero-voices-divider {
        display: none;
    }
}

/* ============================================================
   簡易ストレスチェック（セルフケア）
   ============================================================ */

.page-selfcheck {
    background: var(--ivory);
}

.selfcheck {
    max-width: 760px;
    margin: 0 auto;
    padding: 2.5rem 1.2rem 4rem;
}

.sc-step {
    animation: fade-up 0.6s var(--ease-luxe);
}

/* ============ STEP 1: 説明 ============ */

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

.sc-eyebrow {
    font-family: var(--f-display);
    font-size: 0.75rem;
    letter-spacing: 0.4em;
    color: var(--gold-deep);
    margin-bottom: 1rem;
    font-weight: 500;
}

.sc-title {
    font-family: var(--f-serif);
    font-weight: 600;
    font-size: clamp(1.7rem, 4.5vw, 2.4rem);
    color: var(--ink);
    letter-spacing: 0.08em;
    margin-bottom: 0.6rem;
    line-height: 1.4;
}

.sc-subtitle {
    font-family: var(--f-serif);
    font-size: 0.95rem;
    color: rgba(10, 22, 40, 0.6);
    margin-bottom: 2.5rem;
}

.sc-notice {
    background: rgba(255, 255, 255, 0.75);
    border: 1px solid var(--line);
    border-left: 3px solid var(--gold);
    border-radius: 2px;
    padding: 1.4rem 1.6rem;
    text-align: left;
    margin-bottom: 2rem;
    display: flex;
    gap: 1rem;
    align-items: flex-start;
}

.sc-notice-icon {
    width: 32px;
    height: 32px;
    flex-shrink: 0;
    color: var(--gold-deep);
    background: rgba(201, 169, 97, 0.12);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 6px;
}

.sc-notice-text strong {
    display: block;
    font-family: var(--f-serif);
    font-size: 1rem;
    color: var(--ink);
    margin-bottom: 0.6rem;
    letter-spacing: 0.05em;
    font-weight: 600;
}

.sc-notice-text ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.sc-notice-text li {
    font-size: 0.85rem;
    color: var(--ink);
    line-height: 1.8;
    padding-left: 1.1rem;
    position: relative;
    margin-bottom: 0.4rem;
}

.sc-notice-text li::before {
    content: '・';
    position: absolute;
    left: 0;
    color: var(--gold);
    font-weight: bold;
}

.sc-notice-text strong + ul li strong {
    color: var(--gold-deep);
    font-weight: 600;
    display: inline;
    margin: 0;
    font-family: var(--f-sans);
    font-size: inherit;
    letter-spacing: 0;
}

.sc-summary {
    display: inline-flex;
    align-items: center;
    gap: 1.5rem;
    padding: 1.2rem 2rem;
    background: var(--ink);
    color: var(--text-on-dark);
    border-radius: 100px;
    margin-bottom: 2rem;
    box-shadow: 0 10px 30px rgba(10, 22, 40, 0.2);
    border: 1px solid rgba(201, 169, 97, 0.3);
}

.sc-summary-item {
    text-align: center;
}

.sc-summary-num {
    font-family: var(--f-display);
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--gold-bright);
    letter-spacing: 0.05em;
    line-height: 1;
    margin-bottom: 4px;
}

.sc-summary-label {
    font-size: 0.65rem;
    letter-spacing: 0.2em;
    color: rgba(237, 228, 208, 0.7);
}

.sc-summary-divider {
    width: 1px;
    height: 30px;
    background: rgba(201, 169, 97, 0.3);
}

.sc-start-button {
    display: inline-flex;
    align-items: center;
    gap: 0.8rem;
    background: linear-gradient(135deg, var(--gold-bright), var(--gold-deep));
    color: var(--ink);
    padding: 1.1rem 3rem;
    border-radius: 100px;
    font-weight: 600;
    font-size: 1rem;
    letter-spacing: 0.12em;
    box-shadow: 0 10px 28px rgba(201, 169, 97, 0.45);
    transition: all 0.3s var(--ease-luxe);
    margin-bottom: 2rem;
    cursor: pointer;
}

.sc-start-button:hover {
    transform: translateY(-2px) scale(1.02);
    box-shadow: 0 14px 35px rgba(201, 169, 97, 0.55);
}

.sc-arrow {
    transition: transform 0.3s var(--ease-luxe);
}

.sc-start-button:hover .sc-arrow {
    transform: translateX(4px);
}

.sc-source {
    font-size: 0.72rem;
    color: rgba(10, 22, 40, 0.45);
    line-height: 1.8;
    letter-spacing: 0.04em;
}

/* ============ STEP 2: 質問 ============ */

.sc-progress {
    margin-bottom: 2rem;
}

.sc-progress-bar {
    height: 4px;
    background: rgba(201, 169, 97, 0.2);
    border-radius: 2px;
    overflow: hidden;
    margin-bottom: 0.6rem;
}

.sc-progress-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--gold-deep), var(--gold-bright));
    border-radius: 2px;
    transition: width 0.5s var(--ease-luxe);
    width: 0%;
}

.sc-progress-text {
    text-align: right;
    font-family: var(--f-display);
    font-size: 0.85rem;
    letter-spacing: 0.1em;
    color: var(--gold-deep);
    font-weight: 600;
}

.sc-progress-sep {
    margin: 0 6px;
    color: var(--line);
}

.sc-section-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1.5rem;
    padding: 1rem 1.3rem;
    background: rgba(255, 255, 255, 0.7);
    border-radius: 4px;
    border: 1px solid var(--line);
}

.sc-section-letter {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background: var(--ink);
    color: var(--gold-bright);
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--f-display);
    font-size: 1.2rem;
    font-weight: 600;
    letter-spacing: 0.05em;
    border: 1px solid var(--gold);
    flex-shrink: 0;
}

.sc-section-A { background: linear-gradient(135deg, #1a2a44, #0a1628); }
.sc-section-B { background: linear-gradient(135deg, #2a1a44, #1a0a28); }
.sc-section-C { background: linear-gradient(135deg, #1a4434, #0a2818); }

.sc-section-info {
    flex: 1;
    min-width: 0;
}

.sc-section-label {
    font-family: var(--f-serif);
    font-weight: 600;
    font-size: 0.95rem;
    color: var(--ink);
    letter-spacing: 0.04em;
    line-height: 1.4;
    margin-bottom: 2px;
}

.sc-section-sub {
    font-size: 0.75rem;
    color: rgba(10, 22, 40, 0.55);
    line-height: 1.6;
}

.sc-question {
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 6px;
    padding: 2rem 1.8rem;
    margin-bottom: 1.5rem;
    box-shadow: 0 8px 24px -10px rgba(10, 22, 40, 0.15);
    position: relative;
}

.sc-question::before {
    content: '';
    position: absolute;
    top: 0;
    left: 1.8rem;
    right: 1.8rem;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--gold) 30%, var(--gold) 70%, transparent);
    opacity: 0.5;
}

.sc-question-num {
    font-family: var(--f-display);
    font-size: 0.85rem;
    letter-spacing: 0.25em;
    color: var(--gold-deep);
    font-weight: 600;
    margin-bottom: 0.6rem;
}

.sc-question-text {
    font-family: var(--f-serif);
    font-weight: 500;
    font-size: 1.1rem;
    color: var(--ink);
    line-height: 1.85;
    letter-spacing: 0.03em;
}

.sc-options {
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
    margin-bottom: 1.5rem;
}

.sc-option {
    display: flex;
    align-items: center;
    gap: 0.9rem;
    width: 100%;
    padding: 1.1rem 1.3rem;
    background: rgba(255, 255, 255, 0.85);
    border: 1px solid var(--line);
    border-radius: 4px;
    text-align: left;
    color: var(--ink);
    font-size: 0.95rem;
    line-height: 1.5;
    transition: all 0.25s var(--ease-luxe);
    cursor: pointer;
    font-family: var(--f-sans);
}

.sc-option:hover {
    background: #fff;
    border-color: var(--gold);
    transform: translateX(3px);
    box-shadow: 0 4px 14px -6px rgba(10, 22, 40, 0.12);
}

.sc-option-selected {
    background: var(--ink) !important;
    color: var(--text-on-dark);
    border-color: var(--gold) !important;
}

.sc-option-num {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: rgba(201, 169, 97, 0.12);
    color: var(--gold-deep);
    font-family: var(--f-display);
    font-size: 0.9rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: all 0.25s var(--ease-luxe);
}

.sc-option-selected .sc-option-num {
    background: var(--gold);
    color: var(--ink);
}

.sc-option-text {
    flex: 1;
}

.sc-quiz-foot {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-top: 1rem;
}

.sc-quiz-back {
    font-size: 0.85rem;
    color: var(--gold-deep);
    padding: 0.5rem 1.2rem;
    border: 1px solid var(--line);
    border-radius: 100px;
    background: transparent;
    transition: all 0.3s var(--ease-luxe);
    cursor: pointer;
    letter-spacing: 0.05em;
}

.sc-quiz-back:hover:not(:disabled) {
    background: var(--ink);
    color: var(--gold-bright);
    border-color: var(--ink);
}

.sc-quiz-back:disabled {
    opacity: 0.3;
    cursor: not-allowed;
}

.sc-quiz-help {
    font-size: 0.78rem;
    color: rgba(10, 22, 40, 0.5);
    font-style: italic;
    letter-spacing: 0.03em;
}

/* ============ STEP 3: 計算中 ============ */

.sc-calculating {
    text-align: center;
    padding: 5rem 1rem;
}

.sc-calc-spinner {
    width: 56px;
    height: 56px;
    margin: 0 auto 1.5rem;
    border: 3px solid rgba(201, 169, 97, 0.2);
    border-top-color: var(--gold);
    border-radius: 50%;
    animation: spin 0.9s linear infinite;
}

.sc-calc-text {
    font-family: var(--f-serif);
    font-size: 1.1rem;
    color: var(--ink);
    letter-spacing: 0.08em;
    margin-bottom: 0.5rem;
    font-weight: 600;
}

.sc-calc-sub {
    font-size: 0.85rem;
    color: rgba(10, 22, 40, 0.5);
    letter-spacing: 0.05em;
}

/* ============ STEP 4: 結果 ============ */

.sc-result-header {
    text-align: center;
    margin-bottom: 2.5rem;
}

.sc-result-eyebrow {
    font-family: var(--f-display);
    font-size: 0.75rem;
    letter-spacing: 0.4em;
    color: var(--gold-deep);
    margin-bottom: 0.8rem;
    font-weight: 500;
}

.sc-result-title {
    font-family: var(--f-serif);
    font-weight: 600;
    font-size: clamp(1.5rem, 4vw, 2rem);
    color: var(--ink);
    letter-spacing: 0.06em;
    margin-bottom: 0.5rem;
    line-height: 1.4;
}

.sc-result-date {
    font-family: var(--f-display);
    font-size: 0.85rem;
    color: var(--gold-deep);
    letter-spacing: 0.1em;
    font-weight: 500;
}

/* 総合判定 */
.sc-judgment {
    background: var(--ink);
    color: var(--text-on-dark);
    border-radius: 8px;
    padding: 2rem;
    text-align: center;
    margin-bottom: 2.5rem;
    border: 1px solid rgba(201, 169, 97, 0.3);
    box-shadow: 0 20px 50px -15px rgba(10, 22, 40, 0.4);
    position: relative;
    overflow: hidden;
}

.sc-judgment::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, transparent, var(--gold), transparent);
}

.sc-judgment-eyebrow {
    font-family: var(--f-display);
    font-size: 0.7rem;
    letter-spacing: 0.35em;
    color: var(--gold-bright);
    margin-bottom: 1rem;
    font-weight: 500;
}

.sc-judgment-level {
    font-family: var(--f-serif);
    font-size: clamp(1.8rem, 5vw, 2.6rem);
    font-weight: 600;
    letter-spacing: 0.1em;
    margin-bottom: 1rem;
    line-height: 1.2;
}

.sc-judgment-low .sc-judgment-level { color: #82c596; }
.sc-judgment-medium .sc-judgment-level { color: var(--gold-bright); }
.sc-judgment-high .sc-judgment-level { color: #e8a886; }

.sc-judgment-desc {
    font-family: var(--f-serif);
    font-size: 0.95rem;
    color: rgba(237, 228, 208, 0.85);
    line-height: 2;
    letter-spacing: 0.03em;
    max-width: 480px;
    margin: 0 auto;
}

/* 3領域スコア */
.sc-scores {
    background: rgba(255, 255, 255, 0.7);
    border: 1px solid var(--line);
    border-radius: 6px;
    padding: 1.5rem;
    margin-bottom: 2.5rem;
    display: flex;
    flex-direction: column;
    gap: 1.4rem;
}

.sc-score-item {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
}

.sc-score-letter {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: var(--ink);
    color: var(--gold-bright);
    font-family: var(--f-display);
    font-size: 1rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--gold);
    flex-shrink: 0;
}

.sc-score-content {
    flex: 1;
    min-width: 0;
}

.sc-score-name {
    font-family: var(--f-serif);
    font-weight: 600;
    font-size: 0.95rem;
    color: var(--ink);
    letter-spacing: 0.04em;
    margin-bottom: 0.6rem;
}

.sc-score-bar-wrap {
    height: 8px;
    background: rgba(201, 169, 97, 0.15);
    border-radius: 4px;
    overflow: hidden;
    margin-bottom: 0.5rem;
}

.sc-score-bar {
    height: 100%;
    width: 0;
    border-radius: 4px;
    transition: width 1s var(--ease-luxe);
}

.sc-bar-low { background: linear-gradient(90deg, #6dbb83, #82c596); }
.sc-bar-mid { background: linear-gradient(90deg, var(--gold-deep), var(--gold-bright)); }
.sc-bar-high { background: linear-gradient(90deg, #c47358, #e8a886); }

.sc-score-text {
    font-size: 0.82rem;
    color: rgba(10, 22, 40, 0.65);
    letter-spacing: 0.03em;
}

/* セルフケアアドバイス */
.sc-advice {
    background: linear-gradient(135deg, #fbf8f2, #f4ecd9);
    border: 1px solid var(--line);
    border-radius: 6px;
    padding: 2rem;
    margin-bottom: 2.5rem;
}

.sc-advice-eyebrow {
    font-family: var(--f-display);
    font-size: 0.7rem;
    letter-spacing: 0.35em;
    color: var(--gold-deep);
    margin-bottom: 0.5rem;
    font-weight: 500;
    text-align: center;
}

.sc-advice-title {
    font-family: var(--f-serif);
    font-weight: 600;
    font-size: 1.3rem;
    color: var(--ink);
    letter-spacing: 0.06em;
    margin-bottom: 1.5rem;
    text-align: center;
}

.sc-advice-list {
    display: flex;
    flex-direction: column;
    gap: 0.9rem;
}

.sc-advice-item {
    display: flex;
    gap: 0.9rem;
    padding: 1rem 1.2rem;
    background: rgba(255, 255, 255, 0.6);
    border: 1px solid rgba(201, 169, 97, 0.2);
    border-radius: 4px;
    transition: all 0.3s var(--ease-luxe);
}

.sc-advice-item:hover {
    background: #fff;
    transform: translateX(2px);
}

.sc-advice-icon {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: var(--gold);
    color: var(--ink);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    padding: 6px;
}

.sc-advice-body {
    flex: 1;
}

.sc-advice-name {
    font-family: var(--f-serif);
    font-weight: 600;
    font-size: 0.95rem;
    color: var(--ink);
    letter-spacing: 0.04em;
    margin-bottom: 0.3rem;
}

.sc-advice-desc {
    font-size: 0.85rem;
    color: rgba(10, 22, 40, 0.75);
    line-height: 1.85;
    letter-spacing: 0.02em;
}

/* 高ストレス時の緊急窓口 */
.sc-urgent {
    background: linear-gradient(135deg, #fff5e6, #ffe5cc);
    border: 2px solid rgba(212, 100, 79, 0.4);
    border-radius: 8px;
    padding: 1.8rem;
    margin-bottom: 2.5rem;
    box-shadow: 0 12px 30px -12px rgba(220, 80, 60, 0.2);
}

.sc-urgent-header {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    margin-bottom: 1.4rem;
    padding-bottom: 1.4rem;
    border-bottom: 1px solid rgba(212, 100, 79, 0.25);
}

.sc-urgent-icon {
    width: 44px;
    height: 44px;
    flex-shrink: 0;
    background: linear-gradient(135deg, #e88064, #c4513b);
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 9px;
    box-shadow: 0 4px 12px rgba(220, 80, 60, 0.3);
}

.sc-urgent-title strong {
    display: block;
    font-family: var(--f-serif);
    font-size: 1.05rem;
    font-weight: 600;
    color: var(--ink);
    letter-spacing: 0.05em;
    margin-bottom: 0.3rem;
}

.sc-urgent-sub {
    font-size: 0.82rem;
    color: rgba(10, 22, 40, 0.65);
    letter-spacing: 0.05em;
}

.sc-urgent-list {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.8rem;
}

@media (max-width: 560px) {
    .sc-urgent-list { grid-template-columns: 1fr; }
}

.sc-urgent-item {
    background: #fff;
    border: 1px solid rgba(212, 100, 79, 0.3);
    border-radius: 6px;
    padding: 1rem 1.2rem;
    transition: all 0.3s var(--ease-luxe);
    text-align: left;
    display: block;
}

.sc-urgent-item:hover {
    transform: translateY(-2px);
    border-color: #c4513b;
}

.sc-urgent-name {
    font-family: var(--f-serif);
    font-weight: 600;
    font-size: 0.95rem;
    color: var(--ink);
    margin-bottom: 0.3rem;
}

.sc-urgent-number {
    font-family: var(--f-display);
    font-size: 1.3rem;
    font-weight: 600;
    color: #c4513b;
    letter-spacing: 0.08em;
    margin-bottom: 0.3rem;
}

.sc-urgent-desc {
    font-size: 0.75rem;
    color: rgba(10, 22, 40, 0.6);
}

/* 注意書き */
.sc-disclaimer {
    background: rgba(255, 255, 255, 0.5);
    border-left: 3px solid var(--gold);
    padding: 1.4rem 1.6rem;
    margin-bottom: 2rem;
    border-radius: 0 4px 4px 0;
}

.sc-disclaimer p {
    font-size: 0.82rem;
    color: rgba(10, 22, 40, 0.7);
    line-height: 1.9;
    margin: 0 0 1rem;
}

.sc-disclaimer p:last-child { margin-bottom: 0; }

.sc-disclaimer strong {
    color: var(--ink);
    font-family: var(--f-serif);
    font-size: 0.9rem;
    font-weight: 600;
    display: block;
    margin-bottom: 0.3rem;
    letter-spacing: 0.04em;
}

/* アクション */
.sc-actions {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

.sc-action-primary,
.sc-action-secondary {
    padding: 0.9rem 1.8rem;
    border-radius: 100px;
    font-weight: 600;
    font-size: 0.88rem;
    letter-spacing: 0.08em;
    transition: all 0.3s var(--ease-luxe);
    text-align: center;
    cursor: pointer;
    font-family: var(--f-sans);
    display: inline-block;
}

.sc-action-primary {
    background: var(--ink);
    color: var(--gold-bright);
    border: 1px solid var(--gold);
}

.sc-action-primary:hover {
    background: var(--ink-deep);
    transform: translateY(-1px);
    box-shadow: 0 8px 20px rgba(10, 22, 40, 0.25);
}

.sc-action-secondary {
    background: transparent;
    color: var(--ink);
    border: 1px solid var(--line);
}

.sc-action-secondary:hover {
    background: rgba(255, 255, 255, 0.7);
    border-color: var(--gold);
}

@media (max-width: 560px) {
    .selfcheck { padding: 1.8rem 0.9rem 3rem; }
    .sc-notice { padding: 1.2rem 1.2rem; flex-direction: column; gap: 0.7rem; }
    .sc-notice-text li { font-size: 0.82rem; }
    .sc-summary { padding: 1rem 1.5rem; gap: 1rem; }
    .sc-summary-num { font-size: 1.2rem; }
    .sc-start-button { padding: 1rem 2rem; font-size: 0.95rem; }
    .sc-question { padding: 1.5rem 1.3rem; }
    .sc-question-text { font-size: 1rem; }
    .sc-option { padding: 0.95rem 1rem; font-size: 0.9rem; }
    .sc-judgment { padding: 1.8rem 1.3rem; }
    .sc-scores { padding: 1.2rem; }
    .sc-advice { padding: 1.5rem 1.2rem; }
    .sc-actions { flex-direction: column; }
    .sc-action-primary, .sc-action-secondary { width: 100%; }
}

/* ============================================================
   ストレスチェック分野の「簡易セルフチェックを試す」CTAカード
   ============================================================ */

.selfcheck-cta {
    margin-bottom: 3rem;
    animation: fade-up 0.8s var(--ease-luxe) 0.22s both;
}

.selfcheck-cta-card {
    display: block;
    background: linear-gradient(135deg, var(--ink), var(--ink-soft));
    color: var(--text-on-dark);
    border-radius: 8px;
    overflow: hidden;
    box-shadow: var(--shadow-card);
    border: 1px solid var(--gold);
    transition: all 0.5s var(--ease-luxe);
    position: relative;
}

.selfcheck-cta-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, transparent, var(--gold-bright), transparent);
    opacity: 0.8;
}

.selfcheck-cta-card::after {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse at top right, rgba(201, 169, 97, 0.15), transparent 50%);
    pointer-events: none;
}

.selfcheck-cta-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 20px 50px -15px rgba(10, 22, 40, 0.45);
    border-color: var(--gold-bright);
}

.selfcheck-cta-inner {
    padding: 2rem 2rem 1.8rem;
    display: flex;
    align-items: center;
    gap: 1.6rem;
    position: relative;
    z-index: 1;
}

.selfcheck-cta-icon {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--gold-bright), var(--gold-deep));
    color: var(--ink);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    box-shadow: 0 8px 24px rgba(201, 169, 97, 0.4);
    padding: 14px;
}

.selfcheck-cta-icon svg {
    width: 100%;
    height: 100%;
}

.selfcheck-cta-text {
    flex: 1;
    min-width: 0;
}

.selfcheck-cta-eyebrow {
    font-family: var(--f-display);
    font-size: 0.7rem;
    letter-spacing: 0.35em;
    color: var(--gold-bright);
    margin-bottom: 0.4rem;
    font-weight: 500;
}

.selfcheck-cta-title {
    font-family: var(--f-serif);
    font-weight: 600;
    font-size: 1.35rem;
    letter-spacing: 0.06em;
    margin-bottom: 0.7rem;
    line-height: 1.4;
}

.selfcheck-cta-desc {
    font-size: 0.88rem;
    line-height: 1.85;
    color: rgba(237, 228, 208, 0.85);
    margin-bottom: 1rem;
}

.selfcheck-cta-desc strong {
    color: var(--gold-bright);
    font-weight: 600;
}

.selfcheck-cta-meta {
    display: flex;
    gap: 0.4rem;
    flex-wrap: wrap;
}

.selfcheck-cta-tag {
    font-size: 0.68rem;
    letter-spacing: 0.05em;
    padding: 0.25rem 0.7rem;
    background: rgba(201, 169, 97, 0.12);
    color: var(--gold-bright);
    border-radius: 100px;
    border: 1px solid rgba(201, 169, 97, 0.3);
    font-weight: 500;
}

.selfcheck-cta-action {
    flex-shrink: 0;
    background: var(--gold);
    color: var(--ink);
    padding: 0.85rem 1.5rem;
    border-radius: 100px;
    font-weight: 600;
    font-size: 0.85rem;
    letter-spacing: 0.1em;
    display: flex;
    align-items: center;
    gap: 0.4rem;
    transition: all 0.3s var(--ease-luxe);
    box-shadow: 0 4px 12px rgba(201, 169, 97, 0.3);
}

.selfcheck-cta-card:hover .selfcheck-cta-action {
    background: var(--gold-bright);
    box-shadow: 0 6px 18px rgba(201, 169, 97, 0.45);
}

.selfcheck-cta-arrow {
    transition: transform 0.3s var(--ease-luxe);
}

.selfcheck-cta-card:hover .selfcheck-cta-arrow {
    transform: translateX(4px);
}

.selfcheck-cta-note {
    text-align: center;
    font-size: 0.78rem;
    color: rgba(10, 22, 40, 0.55);
    margin-top: 1rem;
    letter-spacing: 0.04em;
    font-style: italic;
}

@media (max-width: 720px) {
    .selfcheck-cta-inner {
        flex-direction: column;
        align-items: flex-start;
        padding: 1.6rem 1.4rem;
        gap: 1.2rem;
    }
    .selfcheck-cta-icon {
        width: 52px;
        height: 52px;
        padding: 12px;
    }
    .selfcheck-cta-title { font-size: 1.2rem; }
    .selfcheck-cta-desc { font-size: 0.82rem; }
    .selfcheck-cta-action {
        align-self: stretch;
        justify-content: center;
        padding: 0.95rem 1.5rem;
    }
}

/* ============================================================
   経営健康診断（AI統合機能）
   keiei-shindan.php / shindan-result.php
   ============================================================ */

.page-shindan, .page-shindan-result {
    background: var(--ivory);
}

.shindan {
    max-width: 800px;
    margin: 0 auto;
    padding: 2.5rem 1.2rem 4rem;
}

.sh-step { animation: fade-up 0.6s var(--ease-luxe); }

/* ============ STEP 1: 説明画面 ============ */

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

.sh-eyebrow {
    font-family: var(--f-display);
    font-size: 0.75rem;
    letter-spacing: 0.4em;
    color: var(--gold-deep);
    margin-bottom: 1rem;
    font-weight: 500;
}

.sh-title {
    font-family: var(--f-serif);
    font-weight: 600;
    font-size: clamp(1.9rem, 5vw, 2.8rem);
    color: var(--ink);
    letter-spacing: 0.08em;
    margin-bottom: 0.7rem;
    line-height: 1.4;
}

.sh-subtitle {
    font-family: var(--f-serif);
    font-size: 1rem;
    color: rgba(10, 22, 40, 0.65);
    line-height: 1.9;
    margin-bottom: 2.5rem;
    max-width: 520px;
    margin-left: auto;
    margin-right: auto;
}

.sh-features {
    text-align: left;
    margin-bottom: 2rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
}

.sh-feature-item {
    display: flex;
    gap: 1.2rem;
    padding: 1.1rem 1.4rem;
    background: rgba(255, 255, 255, 0.75);
    border: 1px solid var(--line);
    border-left: 3px solid var(--gold);
    border-radius: 4px;
}

.sh-feature-num {
    font-family: var(--f-display);
    font-size: 1.2rem;
    color: var(--gold-deep);
    font-weight: 600;
    letter-spacing: 0.1em;
    flex-shrink: 0;
    padding-top: 2px;
}

.sh-feature-text {
    flex: 1;
}

.sh-feature-text strong {
    display: block;
    font-family: var(--f-serif);
    font-weight: 600;
    font-size: 0.98rem;
    color: var(--ink);
    margin-bottom: 0.3rem;
    letter-spacing: 0.04em;
}

.sh-feature-text span {
    display: block;
    font-size: 0.82rem;
    color: rgba(10, 22, 40, 0.7);
    line-height: 1.75;
}

.sh-summary {
    display: inline-flex;
    align-items: center;
    gap: 1.5rem;
    padding: 1.2rem 2rem;
    background: var(--ink);
    color: var(--text-on-dark);
    border-radius: 100px;
    margin-bottom: 2rem;
    box-shadow: 0 10px 30px rgba(10, 22, 40, 0.2);
    border: 1px solid rgba(201, 169, 97, 0.3);
}

.sh-summary-item { text-align: center; }

.sh-summary-num {
    font-family: var(--f-display);
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--gold-bright);
    letter-spacing: 0.05em;
    line-height: 1;
    margin-bottom: 4px;
}

.sh-summary-label {
    font-size: 0.65rem;
    letter-spacing: 0.2em;
    color: rgba(237, 228, 208, 0.7);
}

.sh-summary-divider {
    width: 1px;
    height: 30px;
    background: rgba(201, 169, 97, 0.3);
}

.sh-start-button {
    display: inline-flex;
    align-items: center;
    gap: 0.8rem;
    background: linear-gradient(135deg, var(--gold-bright), var(--gold-deep));
    color: var(--ink);
    padding: 1.1rem 3rem;
    border-radius: 100px;
    font-weight: 600;
    font-size: 1.05rem;
    letter-spacing: 0.12em;
    box-shadow: 0 10px 28px rgba(201, 169, 97, 0.45);
    transition: all 0.3s var(--ease-luxe);
    margin-bottom: 2rem;
    cursor: pointer;
}

.sh-start-button:hover {
    transform: translateY(-2px) scale(1.02);
    box-shadow: 0 14px 35px rgba(201, 169, 97, 0.55);
}

.sh-arrow {
    transition: transform 0.3s var(--ease-luxe);
}

.sh-start-button:hover .sh-arrow {
    transform: translateX(4px);
}

.sh-source {
    font-size: 0.72rem;
    color: rgba(10, 22, 40, 0.5);
    line-height: 1.8;
    letter-spacing: 0.04em;
}

/* ============ STEP 2: 会社情報入力 ============ */

.sh-progress {
    margin-bottom: 2rem;
}

.sh-progress-bar {
    height: 4px;
    background: rgba(201, 169, 97, 0.2);
    border-radius: 2px;
    overflow: hidden;
    margin-bottom: 0.6rem;
}

.sh-progress-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--gold-deep), var(--gold-bright));
    border-radius: 2px;
    transition: width 0.5s var(--ease-luxe);
    width: 0%;
}

.sh-progress-text {
    text-align: right;
    font-family: var(--f-display);
    font-size: 0.85rem;
    letter-spacing: 0.1em;
    color: var(--gold-deep);
    font-weight: 600;
}

.sh-progress-sep {
    margin: 0 6px;
    color: var(--line);
}

.sh-company-header {
    text-align: center;
    margin-bottom: 2.5rem;
}

.sh-company-eyebrow {
    font-family: var(--f-display);
    font-size: 0.72rem;
    letter-spacing: 0.4em;
    color: var(--gold-deep);
    margin-bottom: 0.6rem;
    font-weight: 500;
}

.sh-company-title {
    font-family: var(--f-serif);
    font-weight: 600;
    font-size: clamp(1.3rem, 3.5vw, 1.7rem);
    color: var(--ink);
    letter-spacing: 0.06em;
    margin-bottom: 0.5rem;
    line-height: 1.5;
}

.sh-company-sub {
    font-size: 0.88rem;
    color: rgba(10, 22, 40, 0.65);
}

.sh-company-form {
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 6px;
    padding: 2rem 1.8rem;
    margin-bottom: 1.5rem;
    box-shadow: 0 8px 24px -10px rgba(10, 22, 40, 0.12);
}

.sh-form-field {
    margin-bottom: 1.8rem;
}

.sh-form-field:last-child {
    margin-bottom: 0;
}

.sh-form-label {
    display: block;
    font-family: var(--f-serif);
    font-weight: 600;
    font-size: 0.95rem;
    color: var(--ink);
    letter-spacing: 0.05em;
    margin-bottom: 1rem;
}

.sh-form-options {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
    gap: 0.6rem;
}

.sh-form-options-size {
    grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
}

.sh-form-option {
    padding: 0.85rem 1rem;
    background: rgba(255, 255, 255, 0.7);
    border: 1px solid var(--line);
    border-radius: 4px;
    color: var(--ink);
    font-size: 0.88rem;
    font-family: var(--f-sans);
    cursor: pointer;
    transition: all 0.25s var(--ease-luxe);
    text-align: center;
}

.sh-form-option:hover {
    background: #fff;
    border-color: var(--gold);
    transform: translateY(-1px);
}

.sh-form-option-selected {
    background: var(--ink) !important;
    color: var(--text-on-dark);
    border-color: var(--gold) !important;
    box-shadow: 0 4px 14px rgba(10, 22, 40, 0.25);
}

.sh-company-actions {
    text-align: center;
}

.sh-next-button {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    background: linear-gradient(135deg, var(--gold-bright), var(--gold-deep));
    color: var(--ink);
    padding: 0.95rem 2.5rem;
    border-radius: 100px;
    font-weight: 600;
    font-size: 0.95rem;
    letter-spacing: 0.1em;
    box-shadow: 0 8px 24px rgba(201, 169, 97, 0.4);
    transition: all 0.3s var(--ease-luxe);
    cursor: pointer;
}

.sh-next-button:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 12px 30px rgba(201, 169, 97, 0.5);
}

.sh-next-button:disabled {
    opacity: 0.35;
    cursor: not-allowed;
    background: var(--ink);
    color: rgba(237, 228, 208, 0.5);
    box-shadow: none;
}

/* ============ STEP 3: 質問画面 ============ */

.sh-section-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1.5rem;
    padding: 1rem 1.3rem;
    background: rgba(255, 255, 255, 0.7);
    border-radius: 4px;
    border: 1px solid var(--line);
}

.sh-section-icon {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background: var(--ink);
    color: var(--gold-bright);
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--gold);
    flex-shrink: 0;
    padding: 10px;
}

.sh-section-icon svg {
    width: 100%;
    height: 100%;
}

.sh-section-info {
    flex: 1;
    min-width: 0;
}

.sh-section-eyebrow {
    font-family: var(--f-display);
    font-size: 0.72rem;
    letter-spacing: 0.25em;
    color: var(--gold-deep);
    font-weight: 600;
    margin-bottom: 3px;
}

.sh-section-title {
    font-family: var(--f-serif);
    font-weight: 600;
    font-size: 1.05rem;
    color: var(--ink);
    letter-spacing: 0.04em;
}

.sh-question {
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 6px;
    padding: 2rem 1.8rem;
    margin-bottom: 1.5rem;
    box-shadow: 0 8px 24px -10px rgba(10, 22, 40, 0.15);
    position: relative;
}

.sh-question::before {
    content: '';
    position: absolute;
    top: 0;
    left: 1.8rem;
    right: 1.8rem;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--gold) 30%, var(--gold) 70%, transparent);
    opacity: 0.5;
}

.sh-question-num {
    font-family: var(--f-display);
    font-size: 0.85rem;
    letter-spacing: 0.25em;
    color: var(--gold-deep);
    font-weight: 600;
    margin-bottom: 0.6rem;
}

.sh-question-text {
    font-family: var(--f-serif);
    font-weight: 500;
    font-size: 1.1rem;
    color: var(--ink);
    line-height: 1.85;
    letter-spacing: 0.03em;
}

.sh-options {
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
    margin-bottom: 1.5rem;
}

.sh-option {
    display: flex;
    align-items: center;
    gap: 0.9rem;
    width: 100%;
    padding: 1.1rem 1.3rem;
    background: rgba(255, 255, 255, 0.85);
    border: 1px solid var(--line);
    border-radius: 4px;
    text-align: left;
    color: var(--ink);
    font-size: 0.92rem;
    line-height: 1.5;
    transition: all 0.25s var(--ease-luxe);
    cursor: pointer;
    font-family: var(--f-sans);
}

.sh-option:hover {
    background: #fff;
    border-color: var(--gold);
    transform: translateX(3px);
}

.sh-option-selected {
    background: var(--ink) !important;
    color: var(--text-on-dark);
    border-color: var(--gold) !important;
}

.sh-option-mark {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    border: 2px solid var(--line);
    flex-shrink: 0;
    position: relative;
    transition: all 0.25s var(--ease-luxe);
}

.sh-option-selected .sh-option-mark {
    border-color: var(--gold);
    background: var(--gold);
}

.sh-option-selected .sh-option-mark::after {
    content: '';
    position: absolute;
    inset: 4px;
    border-radius: 50%;
    background: var(--ink);
}

.sh-option-text {
    flex: 1;
}

.sh-quiz-foot {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-top: 1rem;
}

.sh-quiz-back {
    font-size: 0.85rem;
    color: var(--gold-deep);
    padding: 0.5rem 1.2rem;
    border: 1px solid var(--line);
    border-radius: 100px;
    background: transparent;
    transition: all 0.3s var(--ease-luxe);
    cursor: pointer;
    letter-spacing: 0.05em;
}

.sh-quiz-back:hover:not(:disabled) {
    background: var(--ink);
    color: var(--gold-bright);
    border-color: var(--ink);
}

.sh-quiz-back:disabled {
    opacity: 0.3;
    cursor: not-allowed;
}

.sh-quiz-help {
    font-size: 0.78rem;
    color: rgba(10, 22, 40, 0.5);
    font-style: italic;
    letter-spacing: 0.03em;
}

/* ============ STEP 4: 計算中 ============ */

.sh-calculating {
    text-align: center;
    padding: 4rem 1rem;
}

.sh-calc-visual {
    width: 140px;
    height: 140px;
    margin: 0 auto 2rem;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

.sh-calc-ring {
    position: absolute;
    inset: 0;
    border-radius: 50%;
    border: 2px solid var(--gold);
    opacity: 0;
    animation: sh-ring 2s ease-out infinite;
}

.sh-calc-ring-2 {
    animation-delay: 0.7s;
}

@keyframes sh-ring {
    0% { opacity: 0.6; transform: scale(0.8); }
    100% { opacity: 0; transform: scale(1.3); }
}

.sh-calc-center {
    width: 90px;
    height: 90px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--gold-bright), var(--gold-deep));
    color: var(--ink);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 22px;
    box-shadow: 0 0 40px rgba(201, 169, 97, 0.5);
    animation: sh-pulse 2s ease-in-out infinite;
}

@keyframes sh-pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.05); }
}

.sh-calc-text {
    font-family: var(--f-serif);
    font-size: 1.15rem;
    color: var(--ink);
    letter-spacing: 0.08em;
    margin-bottom: 0.5rem;
    font-weight: 600;
}

.sh-calc-sub {
    font-size: 0.85rem;
    color: rgba(10, 22, 40, 0.55);
    letter-spacing: 0.05em;
}

/* ============================================================
   結果画面 (shindan-result.php)
   ============================================================ */

.sr-main {
    max-width: 880px;
    margin: 0 auto;
    padding: 2.5rem 1.2rem 4rem;
}

.sr-empty {
    max-width: 600px;
    margin: 4rem auto;
    padding: 3rem 2rem;
    text-align: center;
}

.sr-empty-inner h2 {
    font-family: var(--f-serif);
    color: var(--ink);
    margin-bottom: 1rem;
}

.sr-empty-inner p {
    color: rgba(10, 22, 40, 0.65);
    margin-bottom: 2rem;
    line-height: 1.9;
}

.sr-empty-button {
    display: inline-block;
    background: var(--ink);
    color: var(--gold-bright);
    padding: 0.9rem 2rem;
    border-radius: 100px;
    border: 1px solid var(--gold);
    font-weight: 600;
    letter-spacing: 0.1em;
}

/* ヒーロー */
.sr-hero {
    text-align: center;
    margin-bottom: 2rem;
    animation: fade-up 0.7s var(--ease-luxe);
}

.sr-hero-eyebrow {
    font-family: var(--f-display);
    font-size: 0.75rem;
    letter-spacing: 0.4em;
    color: var(--gold-deep);
    margin-bottom: 0.8rem;
    font-weight: 500;
}

.sr-hero-title {
    font-family: var(--f-serif);
    font-weight: 600;
    font-size: clamp(1.7rem, 4.5vw, 2.4rem);
    color: var(--ink);
    letter-spacing: 0.08em;
    margin-bottom: 1rem;
    line-height: 1.4;
}

.sr-hero-meta {
    display: inline-flex;
    align-items: center;
    gap: 1rem;
    padding: 0.6rem 1.3rem;
    background: rgba(255, 255, 255, 0.65);
    border: 1px solid var(--line);
    border-radius: 100px;
    font-size: 0.82rem;
    color: var(--ink);
    letter-spacing: 0.05em;
}

.sr-hero-meta-sep {
    width: 1px;
    height: 14px;
    background: var(--gold);
    opacity: 0.5;
}

/* 総合スコア */
.sr-total {
    background: var(--ink);
    color: var(--text-on-dark);
    border-radius: 12px;
    padding: 3rem 2rem;
    margin-bottom: 2.5rem;
    text-align: center;
    box-shadow: 0 20px 50px -15px rgba(10, 22, 40, 0.4);
    border: 1px solid rgba(201, 169, 97, 0.3);
    position: relative;
    overflow: hidden;
    animation: fade-up 0.8s var(--ease-luxe) 0.1s both;
}

.sr-total::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, transparent, var(--gold-bright), transparent);
}

.sr-total::after {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse at top, rgba(201, 169, 97, 0.12), transparent 60%);
    pointer-events: none;
}

.sr-total-inner {
    position: relative;
    z-index: 1;
}

.sr-total-eyebrow {
    font-family: var(--f-display);
    font-size: 0.7rem;
    letter-spacing: 0.35em;
    color: var(--gold-bright);
    margin-bottom: 1.2rem;
    font-weight: 500;
}

.sr-total-circle {
    width: 200px;
    height: 200px;
    margin: 0 auto 1.5rem;
    position: relative;
}

.sr-total-svg {
    width: 100%;
    height: 100%;
}

.sr-total-center {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.sr-total-number {
    font-family: var(--f-display);
    font-size: 4rem;
    font-weight: 600;
    color: var(--gold-bright);
    letter-spacing: 0.02em;
    line-height: 1;
}

.sr-total-unit {
    font-family: var(--f-display);
    font-size: 0.9rem;
    color: rgba(237, 228, 208, 0.5);
    letter-spacing: 0.1em;
    margin-top: 0.3rem;
}

.sr-total-judge {
    display: inline-block;
    padding: 0.6rem 1.5rem;
    border-radius: 100px;
    font-family: var(--f-serif);
    font-weight: 600;
    font-size: 1rem;
    letter-spacing: 0.06em;
}

.sr-judge-excellent { background: rgba(109, 187, 131, 0.15); color: #82c596; border: 1px solid rgba(109, 187, 131, 0.4); }
.sr-judge-good { background: rgba(201, 169, 97, 0.15); color: var(--gold-bright); border: 1px solid var(--gold); }
.sr-judge-caution { background: rgba(212, 175, 127, 0.15); color: #e0b378; border: 1px solid rgba(212, 175, 127, 0.4); }
.sr-judge-urgent { background: rgba(196, 90, 79, 0.15); color: #e88064; border: 1px solid rgba(196, 90, 79, 0.4); }

/* AI総括 */
.sr-summary {
    background: linear-gradient(135deg, #fbf8f2, #f4ecd9);
    border: 1px solid var(--line);
    border-left: 4px solid var(--gold);
    border-radius: 0 8px 8px 0;
    padding: 2rem 2rem;
    margin-bottom: 2.5rem;
    animation: fade-up 0.8s var(--ease-luxe) 0.2s both;
}

.sr-summary-eyebrow {
    font-family: var(--f-display);
    font-size: 0.7rem;
    letter-spacing: 0.35em;
    color: var(--gold-deep);
    margin-bottom: 0.5rem;
    font-weight: 500;
}

.sr-summary-title {
    font-family: var(--f-serif);
    font-weight: 600;
    font-size: 1.3rem;
    color: var(--ink);
    letter-spacing: 0.05em;
    margin-bottom: 1.2rem;
}

.sr-summary-text {
    font-family: var(--f-serif);
    font-size: 1rem;
    color: var(--ink);
    line-height: 2.1;
    letter-spacing: 0.02em;
}

/* 6本柱別スコア */
.sr-scores {
    margin-bottom: 2.5rem;
    animation: fade-up 0.8s var(--ease-luxe) 0.3s both;
}

.sr-scores-header {
    margin-bottom: 1.5rem;
}

.sr-scores-eyebrow {
    font-family: var(--f-display);
    font-size: 0.7rem;
    letter-spacing: 0.35em;
    color: var(--gold-deep);
    margin-bottom: 0.5rem;
    font-weight: 500;
}

.sr-scores-title {
    font-family: var(--f-serif);
    font-weight: 600;
    font-size: 1.5rem;
    color: var(--ink);
    letter-spacing: 0.06em;
}

.sr-scores-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
}

@media (max-width: 600px) {
    .sr-scores-grid { grid-template-columns: 1fr; }
}

.sr-score-card {
    display: block;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 6px;
    padding: 1.3rem 1.4rem;
    transition: all 0.4s var(--ease-luxe);
    box-shadow: 0 4px 14px -6px rgba(10, 22, 40, 0.1);
}

.sr-score-card:hover {
    transform: translateY(-3px);
    border-color: var(--gold);
    box-shadow: 0 12px 28px -10px rgba(10, 22, 40, 0.2);
}

.sr-score-card-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.8rem;
    margin-bottom: 0.8rem;
}

.sr-score-card-name {
    font-family: var(--f-serif);
    font-weight: 600;
    font-size: 0.95rem;
    color: var(--ink);
    letter-spacing: 0.04em;
}

.sr-score-card-badge {
    font-size: 0.7rem;
    letter-spacing: 0.05em;
    padding: 0.2rem 0.6rem;
    border-radius: 100px;
    font-weight: 600;
    flex-shrink: 0;
}

.sr-badge-excellent { background: rgba(109, 187, 131, 0.15); color: #4a8a5e; }
.sr-badge-good { background: rgba(201, 169, 97, 0.15); color: var(--gold-deep); }
.sr-badge-caution { background: rgba(212, 175, 127, 0.18); color: #b67849; }
.sr-badge-urgent { background: rgba(196, 90, 79, 0.18); color: #b8442f; }

.sr-score-card-number {
    display: flex;
    align-items: baseline;
    gap: 0.3rem;
    margin-bottom: 0.7rem;
}

.sr-score-card-num-val {
    font-family: var(--f-display);
    font-size: 2rem;
    font-weight: 600;
    color: var(--ink);
    letter-spacing: 0.02em;
    line-height: 1;
}

.sr-score-card-num-unit {
    font-family: var(--f-display);
    font-size: 0.85rem;
    color: rgba(10, 22, 40, 0.4);
    letter-spacing: 0.08em;
}

.sr-score-card-bar-wrap {
    height: 6px;
    background: rgba(201, 169, 97, 0.15);
    border-radius: 3px;
    overflow: hidden;
    margin-bottom: 0.9rem;
}

.sr-score-card-bar {
    height: 100%;
    width: 0;
    border-radius: 3px;
    transition: width 1.4s var(--ease-luxe);
}

.sr-bar-excellent { background: linear-gradient(90deg, #6dbb83, #82c596); }
.sr-bar-good { background: linear-gradient(90deg, var(--gold-deep), var(--gold-bright)); }
.sr-bar-caution { background: linear-gradient(90deg, #c08c4f, #d4a578); }
.sr-bar-urgent { background: linear-gradient(90deg, #c47358, #e8a886); }

.sr-score-card-link {
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 0.78rem;
    color: var(--gold-deep);
    letter-spacing: 0.05em;
    font-weight: 500;
    padding-top: 0.5rem;
    border-top: 1px solid var(--line-soft);
}

.sr-score-card-arrow {
    transition: transform 0.3s var(--ease-luxe);
}

.sr-score-card:hover .sr-score-card-arrow {
    transform: translateX(3px);
}

/* アドバイスセクション共通 */
.sr-urgent-section,
.sr-improvements-section,
.sr-strengths-section {
    margin-bottom: 2.5rem;
    animation: fade-up 0.8s var(--ease-luxe) 0.4s both;
}

.sr-urgent-eyebrow,
.sr-improvements-eyebrow,
.sr-strengths-eyebrow {
    font-family: var(--f-display);
    font-size: 0.7rem;
    letter-spacing: 0.35em;
    margin-bottom: 0.5rem;
    font-weight: 500;
}

.sr-urgent-eyebrow { color: #b8442f; }
.sr-improvements-eyebrow { color: var(--gold-deep); }
.sr-strengths-eyebrow { color: #4a8a5e; }

.sr-urgent-title,
.sr-improvements-title,
.sr-strengths-title {
    font-family: var(--f-serif);
    font-weight: 600;
    font-size: 1.4rem;
    color: var(--ink);
    letter-spacing: 0.06em;
    margin-bottom: 1.2rem;
}

.sr-urgent-list,
.sr-improvements-list,
.sr-strengths-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.sr-advice-card {
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 8px;
    padding: 1.4rem 1.6rem;
    box-shadow: 0 6px 18px -10px rgba(10, 22, 40, 0.15);
    transition: all 0.3s var(--ease-luxe);
}

.sr-advice-card:hover {
    box-shadow: 0 12px 28px -10px rgba(10, 22, 40, 0.2);
    transform: translateY(-2px);
}

.sr-card-urgent {
    border-left: 4px solid #c4513b;
    background: linear-gradient(135deg, #fff5ef, #fff);
}

.sr-card-improvement {
    border-left: 4px solid var(--gold);
}

.sr-card-strength {
    border-left: 4px solid #6dbb83;
    background: linear-gradient(135deg, #f4faf6, #fff);
}

.sr-advice-card-header {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    margin-bottom: 1rem;
}

.sr-advice-card-num {
    font-family: var(--f-display);
    font-size: 1.4rem;
    font-weight: 600;
    color: var(--gold-deep);
    letter-spacing: 0.05em;
    line-height: 1;
    flex-shrink: 0;
    padding-top: 3px;
}

.sr-card-urgent .sr-advice-card-num { color: #b8442f; }
.sr-card-strength .sr-advice-card-num { color: #4a8a5e; }

.sr-advice-card-meta {
    flex: 1;
}

.sr-advice-card-area {
    font-family: var(--f-display);
    font-size: 0.7rem;
    letter-spacing: 0.2em;
    color: var(--gold-deep);
    text-transform: uppercase;
    font-weight: 600;
    margin-bottom: 0.3rem;
}

.sr-advice-card-title {
    font-family: var(--f-serif);
    font-weight: 600;
    font-size: 1.1rem;
    color: var(--ink);
    letter-spacing: 0.04em;
    line-height: 1.5;
}

.sr-advice-card-body {
    padding-left: calc(1.4rem + 1rem);
}

.sr-advice-card-secondary {
    margin-top: 0.8rem;
    padding-top: 0.8rem;
    border-top: 1px dashed var(--line-soft);
}

.sr-advice-card-label {
    font-family: var(--f-display);
    font-size: 0.68rem;
    letter-spacing: 0.18em;
    color: var(--gold-deep);
    text-transform: uppercase;
    font-weight: 600;
    margin-bottom: 0.4rem;
}

.sr-advice-card-text {
    font-size: 0.92rem;
    color: var(--ink);
    line-height: 1.95;
    letter-spacing: 0.02em;
}

@media (max-width: 560px) {
    .sr-advice-card { padding: 1.2rem 1.2rem; }
    .sr-advice-card-body { padding-left: 0; }
}

/* 業種特有 */
.sr-industry-section {
    background: linear-gradient(135deg, #fbf8f2, #f4ecd9);
    border: 1px solid var(--line);
    border-radius: 8px;
    padding: 1.6rem 1.8rem;
    margin-bottom: 2.5rem;
    display: flex;
    gap: 1.2rem;
    align-items: flex-start;
    animation: fade-up 0.8s var(--ease-luxe) 0.5s both;
}

.sr-industry-icon {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--gold);
    color: var(--ink);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 9px;
    flex-shrink: 0;
}

.sr-industry-content { flex: 1; }

.sr-industry-label {
    font-family: var(--f-display);
    font-size: 0.72rem;
    letter-spacing: 0.25em;
    color: var(--gold-deep);
    text-transform: uppercase;
    font-weight: 600;
    margin-bottom: 0.4rem;
}

.sr-industry-text {
    font-size: 0.92rem;
    color: var(--ink);
    line-height: 1.95;
    letter-spacing: 0.02em;
}

/* フォールバック */
.sr-fallback {
    background: rgba(255, 245, 230, 0.7);
    border: 1px solid rgba(212, 100, 79, 0.3);
    border-radius: 6px;
    padding: 1.4rem 1.6rem;
    margin-bottom: 2.5rem;
    display: flex;
    gap: 1rem;
    align-items: flex-start;
}

.sr-fallback-icon {
    font-size: 1.5rem;
    color: #b8442f;
    flex-shrink: 0;
}

.sr-fallback-text strong {
    display: block;
    font-family: var(--f-serif);
    color: var(--ink);
    margin-bottom: 0.3rem;
    font-size: 0.95rem;
    letter-spacing: 0.04em;
}

.sr-fallback-text p {
    font-size: 0.85rem;
    color: rgba(10, 22, 40, 0.7);
    line-height: 1.8;
    margin: 0;
}

/* 次のアクション */
.sr-actions {
    margin-bottom: 2.5rem;
    animation: fade-up 0.8s var(--ease-luxe) 0.6s both;
}

.sr-actions-eyebrow {
    font-family: var(--f-display);
    font-size: 0.7rem;
    letter-spacing: 0.35em;
    color: var(--gold-deep);
    margin-bottom: 0.5rem;
    font-weight: 500;
}

.sr-actions-title {
    font-family: var(--f-serif);
    font-weight: 600;
    font-size: 1.4rem;
    color: var(--ink);
    letter-spacing: 0.06em;
    margin-bottom: 1.2rem;
}

.sr-actions-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 0.8rem;
}

.sr-action-item {
    display: flex;
    align-items: center;
    gap: 1.2rem;
    padding: 1.2rem 1.5rem;
    background: rgba(255, 255, 255, 0.85);
    border: 1px solid var(--line);
    border-radius: 6px;
    color: var(--ink);
    cursor: pointer;
    transition: all 0.3s var(--ease-luxe);
    text-align: left;
    font-family: var(--f-sans);
    width: 100%;
}

.sr-action-item:hover {
    background: #fff;
    border-color: var(--gold);
    transform: translateX(3px);
}

.sr-action-icon {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: var(--gold);
    color: var(--ink);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 8px;
    flex-shrink: 0;
}

.sr-action-icon svg { width: 100%; height: 100%; }

.sr-action-body { flex: 1; }

.sr-action-name {
    font-family: var(--f-serif);
    font-weight: 600;
    font-size: 1rem;
    color: var(--ink);
    margin-bottom: 0.2rem;
    letter-spacing: 0.04em;
}

.sr-action-desc {
    font-size: 0.8rem;
    color: rgba(10, 22, 40, 0.6);
    letter-spacing: 0.03em;
}

.sr-action-arrow {
    color: var(--gold-deep);
    font-size: 1.2rem;
    transition: transform 0.3s var(--ease-luxe);
}

.sr-action-item:hover .sr-action-arrow {
    transform: translateX(4px);
}

/* 注意書き */
.sr-disclaimer {
    background: rgba(255, 255, 255, 0.5);
    border-left: 3px solid var(--gold);
    padding: 1.4rem 1.6rem;
    border-radius: 0 4px 4px 0;
    animation: fade-up 0.8s var(--ease-luxe) 0.7s both;
}

.sr-disclaimer p {
    font-size: 0.82rem;
    color: rgba(10, 22, 40, 0.7);
    line-height: 1.95;
    margin: 0;
}

.sr-disclaimer strong {
    color: var(--ink);
    font-family: var(--f-serif);
    font-size: 0.9rem;
    font-weight: 600;
    display: block;
    margin-bottom: 0.3rem;
    letter-spacing: 0.04em;
}

/* 印刷時 */
@media (max-width: 600px) {
    .shindan, .sr-main {
        padding: 1.5rem 0.9rem 2.5rem;
    }
    .sh-features { gap: 0.6rem; }
    .sh-feature-item { padding: 0.9rem 1rem; gap: 0.8rem; }
    .sh-feature-text strong { font-size: 0.92rem; }
    .sh-feature-text span { font-size: 0.78rem; }
    .sh-summary { padding: 1rem 1.5rem; gap: 1rem; }
    .sh-summary-num { font-size: 1.2rem; }
    .sh-start-button { padding: 1rem 2rem; font-size: 0.95rem; }
    .sh-company-form { padding: 1.5rem 1.3rem; }
    .sh-form-options { grid-template-columns: repeat(2, 1fr); }
    .sh-question { padding: 1.5rem 1.3rem; }
    .sh-question-text { font-size: 1rem; }
    .sh-option { padding: 0.95rem 1rem; font-size: 0.88rem; }
    .sr-total { padding: 2rem 1.3rem; }
    .sr-total-circle { width: 160px; height: 160px; }
    .sr-total-number { font-size: 3rem; }
    .sr-summary { padding: 1.5rem 1.3rem; }
    .sr-summary-text { font-size: 0.92rem; }
}

/* ============================================================
   AI経営健康診断CTA（index.phpの旗艦機能）
   ============================================================ */

.hero-shindan-cta {
    display: block;
    max-width: 760px;
    margin: 0 auto 2.5rem;
    background: linear-gradient(135deg, var(--ink-deep), var(--ink), var(--ink-soft));
    border-radius: 12px;
    padding: 0;
    box-shadow: 0 24px 60px -20px rgba(10, 22, 40, 0.5),
                0 0 0 1px var(--gold);
    transition: all 0.5s var(--ease-luxe);
    overflow: hidden;
    position: relative;
    animation: fade-up 0.9s var(--ease-luxe) 0.55s both;
}

.hero-shindan-cta::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, transparent, var(--gold-bright), transparent);
    opacity: 0.9;
}

.hero-shindan-glow {
    position: absolute;
    top: -50%;
    right: -20%;
    width: 60%;
    height: 200%;
    background: radial-gradient(ellipse, rgba(228, 195, 115, 0.18), transparent 50%);
    pointer-events: none;
    animation: shindan-glow 6s ease-in-out infinite;
}

@keyframes shindan-glow {
    0%, 100% { opacity: 0.7; transform: translateX(0); }
    50% { opacity: 1; transform: translateX(-15px); }
}

.hero-shindan-cta:hover {
    transform: translateY(-4px);
    box-shadow: 0 30px 70px -20px rgba(10, 22, 40, 0.6),
                0 0 0 1px var(--gold-bright);
}

.hero-shindan-inner {
    position: relative;
    z-index: 1;
    padding: 2.5rem 2.2rem;
    text-align: center;
    color: var(--text-on-dark);
}

.hero-shindan-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.4rem 1rem;
    background: rgba(201, 169, 97, 0.15);
    border: 1px solid var(--gold);
    border-radius: 100px;
    font-family: var(--f-display);
    font-size: 0.72rem;
    letter-spacing: 0.3em;
    color: var(--gold-bright);
    margin-bottom: 1.2rem;
    font-weight: 600;
}

.hero-shindan-badge-icon {
    color: var(--gold-bright);
    font-size: 0.85rem;
    text-shadow: 0 0 8px rgba(228, 195, 115, 0.6);
}

.hero-shindan-title {
    font-family: var(--f-serif);
    font-weight: 600;
    font-size: clamp(1.5rem, 4vw, 2rem);
    letter-spacing: 0.08em;
    color: var(--text-on-dark);
    margin-bottom: 1rem;
    line-height: 1.5;
}

.hero-shindan-accent {
    color: var(--gold-bright);
    position: relative;
    display: inline-block;
}

.hero-shindan-accent::after {
    content: '';
    position: absolute;
    left: 0;
    right: 0;
    bottom: -4px;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--gold-bright) 20%, var(--gold-bright) 80%, transparent);
    opacity: 0.7;
}

.hero-shindan-desc {
    font-family: var(--f-serif);
    font-size: 0.95rem;
    color: rgba(237, 228, 208, 0.85);
    line-height: 2;
    margin-bottom: 1.5rem;
    letter-spacing: 0.03em;
}

.hero-shindan-desc strong {
    color: var(--gold-bright);
    font-weight: 600;
}

.hero-shindan-meta {
    display: inline-flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.4rem 1.2rem;
    margin-bottom: 1.8rem;
    padding: 0.8rem 1.2rem;
    background: rgba(201, 169, 97, 0.08);
    border: 1px solid rgba(201, 169, 97, 0.25);
    border-radius: 100px;
}

.hero-shindan-meta-item {
    font-size: 0.78rem;
    color: var(--gold-bright);
    letter-spacing: 0.04em;
    display: inline-flex;
    align-items: center;
}

.hero-shindan-button {
    display: inline-flex;
    align-items: center;
    gap: 0.7rem;
    background: linear-gradient(135deg, var(--gold-bright), var(--gold-deep));
    color: var(--ink);
    padding: 1.1rem 2.8rem;
    border-radius: 100px;
    font-weight: 600;
    font-size: 1rem;
    letter-spacing: 0.12em;
    box-shadow: 0 8px 24px rgba(201, 169, 97, 0.45);
    transition: all 0.3s var(--ease-luxe);
}

.hero-shindan-cta:hover .hero-shindan-button {
    background: linear-gradient(135deg, #f0d088, var(--gold-bright));
    box-shadow: 0 12px 32px rgba(201, 169, 97, 0.6);
    transform: scale(1.03);
}

.hero-shindan-arrow {
    font-size: 1.1rem;
    transition: transform 0.3s var(--ease-luxe);
}

.hero-shindan-cta:hover .hero-shindan-arrow {
    transform: translateX(4px);
}

@media (max-width: 560px) {
    .hero-shindan-inner {
        padding: 2rem 1.4rem;
    }
    .hero-shindan-meta {
        flex-direction: column;
        gap: 0.4rem;
        padding: 0.8rem 1rem;
        border-radius: 8px;
    }
    .hero-shindan-button {
        padding: 1rem 2rem;
        font-size: 0.95rem;
    }
}

/* ============================================================
   ⭐ 印刷専用レイアウト（A4 2枚）
   1枚目：サマリー + 6領域スコア + AI総括
   2枚目：詳細アドバイス（緊急・改善・強み・業種別）
   ============================================================ */

/* 画面では非表示の印刷ヘッダー・フッター */
.print-only {
    display: none !important;
}

/* ============================================================
   ⭐ 印刷専用レイアウト（A4 厳密2枚）v2
   1ページ目：ヘッダー + 会社情報 + 総合スコア + AI総括 + 6領域スコア
   2ページ目：緊急 + 改善 + 強み + 業種別 + 注意書き
   ============================================================ */

@media print {

    /* ─── ページ設定（A4 + 余白） ─── */
    @page {
        size: A4 portrait;
        margin: 11mm 14mm 11mm 14mm;
    }

    /* ─── 全要素のリセット ─── */
    * {
        background: transparent !important;
        box-shadow: none !important;
        text-shadow: none !important;
        animation: none !important;
        transition: none !important;
        transform: none !important;
    }

    html, body {
        background: #fff !important;
        color: #0a1628 !important;
        font-size: 9.5pt !important;
        line-height: 1.5 !important;
        -webkit-print-color-adjust: exact !important;
        print-color-adjust: exact !important;
        color-adjust: exact !important;
    }

    /* ─── 非表示要素 ─── */
    .site-header,
    .breadcrumb-bar,
    .site-footer,
    .bg-pattern,
    .sr-actions,
    .sr-empty,
    .sr-fallback,
    .sr-hero,
    .sr-hero-meta,
    .sr-score-card-link,
    .sr-score-card-arrow {
        display: none !important;
    }

    .print-only {
        display: block !important;
    }

    .sr-main {
        padding: 0 !important;
        max-width: 100% !important;
        margin: 0 !important;
    }

    /* ─────────────────────────
       1ページ目：ヘッダー
       ───────────────────────── */
    .print-header {
        display: flex !important;
        align-items: center;
        justify-content: space-between;
        padding-bottom: 2.5mm;
        margin-bottom: 4mm;
        border-bottom: 1pt solid #0a1628;
    }

    .print-header-brand {
        display: flex !important;
        align-items: center;
        gap: 3mm;
    }

    .print-header-logo {
        font-family: 'Cormorant Garamond', serif !important;
        font-weight: 600 !important;
        font-size: 12pt !important;
        letter-spacing: 0.18em !important;
        color: #0a1628 !important;
        padding: 1mm 2mm !important;
        border: 0.5pt solid #a8893f !important;
    }

    .print-header-name {
        font-family: 'Noto Serif JP', serif !important;
        font-weight: 600 !important;
        font-size: 8.5pt !important;
        color: #0a1628 !important;
        letter-spacing: 0.06em !important;
        line-height: 1.3 !important;
    }

    .print-header-name span {
        display: block !important;
        font-size: 6.5pt !important;
        color: #666 !important;
        font-weight: normal !important;
        letter-spacing: 0.04em !important;
    }

    .print-header-title {
        font-family: 'Noto Serif JP', serif !important;
        font-weight: 600 !important;
        font-size: 11pt !important;
        color: #0a1628 !important;
        letter-spacing: 0.08em !important;
        text-align: right !important;
        line-height: 1.4 !important;
    }

    .print-header-title span {
        display: block !important;
        font-size: 7pt !important;
        color: #a8893f !important;
        letter-spacing: 0.15em !important;
        font-weight: 500 !important;
        margin-bottom: 0.5mm !important;
        font-family: 'Cormorant Garamond', serif !important;
    }

    /* ─── 会社情報バー ─── */
    .print-company-bar {
        display: flex !important;
        gap: 6mm;
        padding: 2mm 4mm;
        background: #f8f4ec !important;
        border-left: 1.5pt solid #a8893f;
        margin-bottom: 4mm;
        font-size: 8pt;
        page-break-inside: avoid;
    }

    .print-company-item {
        display: flex !important;
        gap: 1.5mm;
        align-items: baseline;
    }

    .print-company-label {
        font-family: 'Cormorant Garamond', serif !important;
        color: #a8893f !important;
        font-size: 6.5pt !important;
        letter-spacing: 0.12em !important;
        font-weight: 600 !important;
    }

    .print-company-value {
        font-family: 'Noto Serif JP', serif !important;
        font-weight: 600 !important;
        color: #0a1628 !important;
        font-size: 9pt !important;
        letter-spacing: 0.03em !important;
    }

    /* ─────────────────────────
       1ページ目：総合スコア（横並びコンパクト）
       ───────────────────────── */
    .sr-total {
        page-break-inside: avoid;
        padding: 6mm 0 !important;
        margin: 0 0 5mm 0 !important;
        background: #fff !important;
        color: #0a1628 !important;
        border: none !important;
        border-top: 0.5pt solid #ddd !important;
        border-bottom: 0.5pt solid #ddd !important;
        border-radius: 0 !important;
        overflow: visible !important;
    }

    .sr-total::before,
    .sr-total::after { display: none !important; }

    .sr-total-inner {
        display: flex !important;
        align-items: center;
        justify-content: space-around;
        gap: 8mm;
    }

    .sr-total-eyebrow { display: none !important; }

    .sr-total-circle {
        width: 40mm !important;
        height: 40mm !important;
        margin: 0 !important;
        flex-shrink: 0;
        position: relative !important;
    }

    .sr-total-svg {
        width: 100% !important;
        height: 100% !important;
        display: block !important;
    }

    .sr-total-svg circle:first-of-type { stroke: #e8e0c8 !important; }
    .sr-total-svg circle:nth-of-type(2) { stroke: #a8893f !important; }

    .sr-total-center {
        position: absolute !important;
        top: 0 !important;
        left: 0 !important;
        right: 0 !important;
        bottom: 0 !important;
        display: flex !important;
        flex-direction: column !important;
        align-items: center !important;
        justify-content: center !important;
        text-align: center !important;
    }

    .sr-total-number {
        color: #0a1628 !important;
        font-size: 28pt !important;
        font-family: 'Cormorant Garamond', serif !important;
        line-height: 1 !important;
        font-weight: 600 !important;
        display: block !important;
    }

    .sr-total-unit {
        color: #999 !important;
        font-size: 7pt !important;
        margin-top: 1mm !important;
        display: block !important;
    }

    .sr-total-judge {
        font-family: 'Noto Serif JP', serif !important;
        font-size: 11pt !important;
        font-weight: 600 !important;
        color: #0a1628 !important;
        padding: 2mm 5mm !important;
        background: transparent !important;
        border: 0.8pt solid #a8893f !important;
        border-radius: 0 !important;
        letter-spacing: 0.05em !important;
    }

    .print-total-meta {
        display: block !important;
        flex: 1;
    }

    .print-total-meta-label {
        font-family: 'Cormorant Garamond', serif !important;
        font-size: 8pt !important;
        letter-spacing: 0.2em !important;
        color: #a8893f !important;
        margin-bottom: 1.5mm !important;
    }

    .print-total-meta-title {
        font-family: 'Noto Serif JP', serif !important;
        font-weight: 600 !important;
        font-size: 13pt !important;
        color: #0a1628 !important;
        margin-bottom: 2mm !important;
        letter-spacing: 0.05em !important;
    }

    .print-total-meta-date {
        font-family: 'Cormorant Garamond', serif !important;
        font-size: 9pt !important;
        color: #666 !important;
        letter-spacing: 0.05em !important;
    }

    /* ─────────────────────────
       1ページ目：AI総括（コンパクト）
       ───────────────────────── */
    .sr-summary {
        page-break-inside: avoid;
        padding: 4mm 5mm !important;
        margin: 0 0 5mm 0 !important;
        background: #fbf8f2 !important;
        border-left: 1.5pt solid #a8893f !important;
        border-radius: 0 !important;
        border-right: none !important;
        border-top: none !important;
        border-bottom: none !important;
    }

    .sr-summary-eyebrow {
        font-family: 'Cormorant Garamond', serif !important;
        font-size: 7pt !important;
        letter-spacing: 0.22em !important;
        color: #a8893f !important;
        margin-bottom: 0.8mm !important;
    }

    .sr-summary-title {
        font-family: 'Noto Serif JP', serif !important;
        font-size: 11.5pt !important;
        color: #0a1628 !important;
        margin-bottom: 2mm !important;
        letter-spacing: 0.05em !important;
    }

    .sr-summary-text {
        font-family: 'Noto Serif JP', serif !important;
        font-size: 10pt !important;
        color: #0a1628 !important;
        line-height: 1.85 !important;
        letter-spacing: 0.02em !important;
    }

    /* ─────────────────────────
       1ページ目：6領域スコア（タイト）
       ───────────────────────── */
    .sr-scores {
        margin: 0 !important;
        page-break-inside: avoid;
    }

    .sr-scores-header { margin-bottom: 3mm !important; }

    .sr-scores-eyebrow {
        font-family: 'Cormorant Garamond', serif !important;
        font-size: 7pt !important;
        letter-spacing: 0.22em !important;
        color: #a8893f !important;
        margin-bottom: 0.8mm !important;
    }

    .sr-scores-title {
        font-family: 'Noto Serif JP', serif !important;
        font-size: 11.5pt !important;
        color: #0a1628 !important;
        letter-spacing: 0.05em !important;
    }

    .sr-scores-grid {
        display: grid !important;
        grid-template-columns: 1fr 1fr !important;
        gap: 3mm !important;
    }

    .sr-score-card {
        background: #fff !important;
        border: 0.5pt solid #ccc !important;
        border-radius: 0 !important;
        padding: 3mm 4mm !important;
        page-break-inside: avoid;
    }

    .sr-score-card-header {
        margin-bottom: 1.5mm !important;
        gap: 2mm !important;
        align-items: center !important;
    }

    .sr-score-card-name {
        font-family: 'Noto Serif JP', serif !important;
        font-size: 9pt !important;
        color: #0a1628 !important;
        letter-spacing: 0.04em !important;
        line-height: 1.3 !important;
    }

    .sr-score-card-badge {
        font-size: 7pt !important;
        padding: 0.4mm 2mm !important;
        background: #f1ebde !important;
        color: #0a1628 !important;
        border: 0.4pt solid #a8893f !important;
        border-radius: 0 !important;
    }

    .sr-badge-excellent { background: #f0f7f2 !important; border-color: #4a8a5e !important; color: #4a8a5e !important; }
    .sr-badge-good { background: #fbf8f2 !important; border-color: #a8893f !important; color: #a8893f !important; }
    .sr-badge-caution { background: #fdf6ec !important; border-color: #b67849 !important; color: #b67849 !important; }
    .sr-badge-urgent { background: #fcf0ec !important; border-color: #b8442f !important; color: #b8442f !important; }

    .sr-score-card-number { margin-bottom: 1.5mm !important; }

    .sr-score-card-num-val {
        font-family: 'Cormorant Garamond', serif !important;
        font-size: 18pt !important;
        color: #0a1628 !important;
        line-height: 1 !important;
    }

    .sr-score-card-num-unit {
        font-family: 'Cormorant Garamond', serif !important;
        font-size: 8pt !important;
        color: #999 !important;
    }

    .sr-score-card-bar-wrap {
        background: #f0eae0 !important;
        height: 2mm !important;
        margin-bottom: 0 !important;
        border-radius: 0 !important;
    }

    .sr-score-card-bar { border-radius: 0 !important; }

    .sr-bar-excellent { background: #4a8a5e !important; }
    .sr-bar-good { background: #a8893f !important; }
    .sr-bar-caution { background: #b67849 !important; }
    .sr-bar-urgent { background: #b8442f !important; }

    /* ─── 1枚目末フッター ─── */
    .print-footer-page1 {
        display: block !important;
        text-align: center;
        font-family: 'Cormorant Garamond', serif !important;
        font-size: 6.5pt !important;
        color: #999 !important;
        letter-spacing: 0.12em !important;
        padding-top: 2mm;
        margin-top: 4mm;
        border-top: 0.3pt solid #ddd;
    }

    /* ─── 改ページ ─── */
    .print-page-break {
        display: block !important;
        page-break-before: always !important;
        height: 0 !important;
    }

    /* ─── 2枚目ヘッダー ─── */
    .print-header-page2 {
        display: flex !important;
        align-items: center;
        justify-content: space-between;
        padding-bottom: 2mm;
        margin-bottom: 4mm;
        border-bottom: 0.5pt solid #a8893f;
    }

    .print-header-page2-brand {
        font-family: 'Cormorant Garamond', serif !important;
        font-weight: 600 !important;
        font-size: 9.5pt !important;
        color: #0a1628 !important;
        letter-spacing: 0.13em !important;
    }

    .print-header-page2-title {
        font-family: 'Noto Serif JP', serif !important;
        font-size: 8pt !important;
        color: #a8893f !important;
        letter-spacing: 0.06em !important;
    }

    /* ─────────────────────────
       2ページ目：アドバイス（コンパクト）
       ───────────────────────── */
    .sr-urgent-section,
    .sr-improvements-section,
    .sr-strengths-section {
        margin: 0 0 3.5mm 0 !important;
    }

    .sr-urgent-eyebrow,
    .sr-improvements-eyebrow,
    .sr-strengths-eyebrow {
        font-family: 'Cormorant Garamond', serif !important;
        font-size: 6.5pt !important;
        letter-spacing: 0.2em !important;
        margin-bottom: 0.3mm !important;
    }

    .sr-urgent-eyebrow { color: #b8442f !important; }
    .sr-improvements-eyebrow { color: #a8893f !important; }
    .sr-strengths-eyebrow { color: #4a8a5e !important; }

    .sr-urgent-title,
    .sr-improvements-title,
    .sr-strengths-title {
        font-family: 'Noto Serif JP', serif !important;
        font-size: 9.5pt !important;
        color: #0a1628 !important;
        margin-bottom: 1.5mm !important;
        letter-spacing: 0.04em !important;
        padding-bottom: 1mm !important;
        border-bottom: 0.3pt solid #ddd !important;
    }

    .sr-urgent-list,
    .sr-improvements-list,
    .sr-strengths-list {
        display: flex !important;
        flex-direction: column !important;
        gap: 1.8mm !important;
    }

    .sr-advice-card {
        background: #fff !important;
        border: none !important;
        border-left: 1.5pt solid #a8893f !important;
        border-radius: 0 !important;
        padding: 1.5mm 3mm !important;
        box-shadow: none !important;
        page-break-inside: avoid;
    }

    .sr-card-urgent {
        border-left-color: #b8442f !important;
        background: #fefaf8 !important;
    }

    .sr-card-improvement { border-left-color: #a8893f !important; }

    .sr-card-strength {
        border-left-color: #4a8a5e !important;
        background: #f8fcf9 !important;
    }

    .sr-advice-card-header {
        margin-bottom: 1mm !important;
        gap: 2mm !important;
    }

    .sr-advice-card-num {
        font-family: 'Cormorant Garamond', serif !important;
        font-size: 9.5pt !important;
        color: #a8893f !important;
        padding-top: 0 !important;
        line-height: 1.2 !important;
    }

    .sr-card-urgent .sr-advice-card-num { color: #b8442f !important; }
    .sr-card-strength .sr-advice-card-num { color: #4a8a5e !important; }

    .sr-advice-card-area {
        font-family: 'Cormorant Garamond', serif !important;
        font-size: 6.5pt !important;
        letter-spacing: 0.15em !important;
        color: #a8893f !important;
        margin-bottom: 0.3mm !important;
    }

    .sr-advice-card-title {
        font-family: 'Noto Serif JP', serif !important;
        font-size: 9pt !important;
        color: #0a1628 !important;
        letter-spacing: 0.03em !important;
        line-height: 1.3 !important;
    }

    .sr-advice-card-body {
        padding-left: 0 !important;
        margin-bottom: 0 !important;
    }

    .sr-advice-card-secondary {
        margin-top: 1mm !important;
        padding-top: 1mm !important;
        border-top: 0.3pt dashed #ddd !important;
    }

    .sr-advice-card-label {
        font-family: 'Cormorant Garamond', serif !important;
        font-size: 6pt !important;
        letter-spacing: 0.15em !important;
        color: #a8893f !important;
        margin-bottom: 0.3mm !important;
    }

    .sr-advice-card-text {
        font-size: 8pt !important;
        color: #0a1628 !important;
        line-height: 1.55 !important;
        letter-spacing: 0 !important;
    }

    /* ─── 業種別 ─── */
    .sr-industry-section {
        background: #fbf8f2 !important;
        border: none !important;
        border-left: 1.5pt solid #a8893f !important;
        border-radius: 0 !important;
        padding: 2mm 4mm !important;
        margin: 0 0 3mm 0 !important;
        page-break-inside: avoid;
        display: flex !important;
        gap: 0 !important;
    }

    .sr-industry-icon { display: none !important; }

    .sr-industry-label {
        font-family: 'Cormorant Garamond', serif !important;
        font-size: 6.5pt !important;
        letter-spacing: 0.15em !important;
        color: #a8893f !important;
        margin-bottom: 0.5mm !important;
    }

    .sr-industry-text {
        font-size: 8pt !important;
        color: #0a1628 !important;
        line-height: 1.55 !important;
    }

    /* ─── 注意書き ─── */
    .sr-disclaimer {
        margin: 0 !important;
        padding: 2mm 3mm !important;
        background: #f8f4ec !important;
        border-left: 0.8pt solid #a8893f !important;
        border-radius: 0 !important;
        page-break-inside: avoid;
    }

    .sr-disclaimer p {
        font-size: 7pt !important;
        color: #555 !important;
        line-height: 1.5 !important;
    }

    .sr-disclaimer strong {
        font-family: 'Noto Serif JP', serif !important;
        font-size: 7.5pt !important;
        color: #0a1628 !important;
    }

    /* ─── 2枚目末フッター ─── */
    .print-footer-page2 {
        display: block !important;
        margin-top: 3mm;
        text-align: center;
        font-family: 'Cormorant Garamond', serif !important;
        font-size: 6.5pt !important;
        color: #999 !important;
        letter-spacing: 0.12em !important;
        padding-top: 1.5mm;
        border-top: 0.3pt solid #ddd;
    }

    a {
        color: #0a1628 !important;
        text-decoration: none !important;
    }
}

/* ============================================================
   規制翻訳エンジン（Phase 2）
   yakusu.php
   ============================================================ */

.page-yakusu {
    background: var(--ivory);
}

.yakusu {
    max-width: 880px;
    margin: 0 auto;
    padding: 2.5rem 1.2rem 4rem;
}

.yk-step { animation: fade-up 0.6s var(--ease-luxe); }

/* ============ STEP 1: 説明＋会社情報 ============ */
.yk-intro { text-align: center; }

.yk-eyebrow {
    font-family: var(--f-display);
    font-size: 0.75rem;
    letter-spacing: 0.4em;
    color: var(--gold-deep);
    margin-bottom: 1rem;
    font-weight: 500;
}

.yk-title {
    font-family: var(--f-serif);
    font-weight: 600;
    font-size: clamp(1.9rem, 5vw, 2.6rem);
    color: var(--ink);
    letter-spacing: 0.08em;
    margin-bottom: 0.7rem;
    line-height: 1.4;
}

.yk-subtitle {
    font-family: var(--f-serif);
    font-size: 1rem;
    color: rgba(10, 22, 40, 0.7);
    line-height: 2;
    margin-bottom: 2.5rem;
    max-width: 580px;
    margin-left: auto;
    margin-right: auto;
}

.yk-features {
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
    max-width: 600px;
    margin: 0 auto 2.5rem;
    text-align: left;
}

.yk-feature-item {
    display: flex;
    gap: 1.2rem;
    padding: 1.1rem 1.4rem;
    background: rgba(255, 255, 255, 0.75);
    border: 1px solid var(--line);
    border-left: 3px solid var(--gold);
    border-radius: 4px;
}

.yk-feature-num {
    font-family: var(--f-display);
    font-size: 1.2rem;
    color: var(--gold-deep);
    font-weight: 600;
    letter-spacing: 0.1em;
    flex-shrink: 0;
    padding-top: 2px;
}

.yk-feature-text strong {
    display: block;
    font-family: var(--f-serif);
    font-weight: 600;
    font-size: 0.98rem;
    color: var(--ink);
    margin-bottom: 0.3rem;
}

.yk-feature-text span {
    display: block;
    font-size: 0.82rem;
    color: rgba(10, 22, 40, 0.7);
    line-height: 1.75;
}

.yk-company-form {
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 6px;
    padding: 2rem 1.8rem;
    margin-bottom: 1.5rem;
    box-shadow: 0 8px 24px -10px rgba(10, 22, 40, 0.12);
    text-align: left;
}

.yk-form-heading {
    font-family: var(--f-serif);
    font-weight: 600;
    font-size: 1.1rem;
    color: var(--ink);
    letter-spacing: 0.05em;
    margin-bottom: 1.5rem;
    text-align: center;
}

.yk-form-field {
    margin-bottom: 1.5rem;
}

.yk-form-label {
    display: block;
    font-family: var(--f-serif);
    font-weight: 600;
    font-size: 0.92rem;
    color: var(--ink);
    letter-spacing: 0.05em;
    margin-bottom: 0.8rem;
}

.yk-form-options {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
    gap: 0.5rem;
}

.yk-form-options-size {
    grid-template-columns: repeat(auto-fill, minmax(110px, 1fr));
}

.yk-form-option {
    padding: 0.8rem 0.9rem;
    background: rgba(255, 255, 255, 0.7);
    border: 1px solid var(--line);
    border-radius: 4px;
    color: var(--ink);
    font-size: 0.86rem;
    font-family: var(--f-sans);
    cursor: pointer;
    transition: all 0.25s var(--ease-luxe);
    text-align: center;
}

.yk-form-option:hover {
    background: #fff;
    border-color: var(--gold);
    transform: translateY(-1px);
}

.yk-form-option-selected {
    background: var(--ink) !important;
    color: var(--text-on-dark);
    border-color: var(--gold) !important;
    box-shadow: 0 4px 14px rgba(10, 22, 40, 0.25);
}

.yk-start-button {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    background: linear-gradient(135deg, var(--gold-bright), var(--gold-deep));
    color: var(--ink);
    padding: 1.1rem 2.8rem;
    border-radius: 100px;
    font-weight: 600;
    font-size: 1rem;
    letter-spacing: 0.1em;
    box-shadow: 0 10px 28px rgba(201, 169, 97, 0.4);
    transition: all 0.3s var(--ease-luxe);
    cursor: pointer;
    margin-top: 1rem;
}

.yk-start-button:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 14px 35px rgba(201, 169, 97, 0.5);
}

.yk-start-button:disabled {
    opacity: 0.35;
    cursor: not-allowed;
    background: var(--ink);
    color: rgba(237, 228, 208, 0.5);
    box-shadow: none;
}

.yk-arrow { transition: transform 0.3s var(--ease-luxe); }
.yk-start-button:hover .yk-arrow { transform: translateX(4px); }

.yk-source {
    font-size: 0.78rem;
    color: rgba(10, 22, 40, 0.55);
    line-height: 1.85;
    letter-spacing: 0.04em;
    max-width: 580px;
    margin: 0 auto;
}

/* ============ メイン画面 ============ */

.yk-context-bar {
    display: flex;
    align-items: center;
    gap: 2rem;
    padding: 1rem 1.5rem;
    background: linear-gradient(135deg, var(--ink), var(--ink-soft));
    border-radius: 8px;
    margin-bottom: 2.5rem;
    color: var(--text-on-dark);
    box-shadow: 0 8px 24px -10px rgba(10, 22, 40, 0.3);
    border: 1px solid rgba(201, 169, 97, 0.3);
}

.yk-context-item {
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
}

.yk-context-label {
    font-family: var(--f-display);
    font-size: 0.65rem;
    letter-spacing: 0.25em;
    color: var(--gold-bright);
    font-weight: 600;
}

.yk-context-value {
    font-family: var(--f-serif);
    font-weight: 600;
    font-size: 0.95rem;
    color: var(--text-on-dark);
    letter-spacing: 0.04em;
}

.yk-context-change {
    margin-left: auto;
    font-size: 0.75rem;
    color: var(--gold-bright);
    padding: 0.4rem 1rem;
    border: 1px solid var(--gold);
    border-radius: 100px;
    background: transparent;
    cursor: pointer;
    transition: all 0.3s var(--ease-luxe);
    letter-spacing: 0.05em;
}

.yk-context-change:hover {
    background: var(--gold);
    color: var(--ink);
}

@media (max-width: 560px) {
    .yk-context-bar {
        flex-wrap: wrap;
        gap: 0.8rem 1.5rem;
        padding: 0.9rem 1.2rem;
    }
    .yk-context-change { margin-left: 0; }
}

/* ============ セクション共通 ============ */

.yk-search-section,
.yk-timeline-section {
    margin-bottom: 3rem;
    padding-bottom: 2.5rem;
    border-bottom: 1px solid var(--line);
}

.yk-timeline-section { border-bottom: none; }

.yk-section-eyebrow {
    font-family: var(--f-display);
    font-size: 0.72rem;
    letter-spacing: 0.4em;
    color: var(--gold-deep);
    margin-bottom: 0.6rem;
    font-weight: 500;
}

.yk-section-title {
    font-family: var(--f-serif);
    font-weight: 600;
    font-size: 1.4rem;
    color: var(--ink);
    letter-spacing: 0.06em;
    margin-bottom: 0.7rem;
    line-height: 1.4;
}

.yk-section-desc {
    font-size: 0.9rem;
    color: rgba(10, 22, 40, 0.65);
    line-height: 1.85;
    margin-bottom: 1.5rem;
}

/* ============ 検索ボックス ============ */

.yk-search-box {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 1.2rem;
}

.yk-search-input {
    flex: 1;
    padding: 1rem 1.2rem;
    background: #fff;
    border: 1.5px solid var(--line);
    border-radius: 6px;
    font-size: 1rem;
    font-family: var(--f-sans);
    color: var(--ink);
    transition: all 0.25s var(--ease-luxe);
}

.yk-search-input:focus {
    outline: none;
    border-color: var(--gold);
    box-shadow: 0 0 0 3px rgba(201, 169, 97, 0.15);
}

.yk-search-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0 1.5rem;
    background: linear-gradient(135deg, var(--gold-bright), var(--gold-deep));
    color: var(--ink);
    border-radius: 6px;
    font-weight: 600;
    font-size: 0.92rem;
    letter-spacing: 0.06em;
    cursor: pointer;
    transition: all 0.3s var(--ease-luxe);
    box-shadow: 0 6px 18px rgba(201, 169, 97, 0.35);
}

.yk-search-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 10px 24px rgba(201, 169, 97, 0.45);
}

.yk-search-btn svg {
    width: 18px;
    height: 18px;
}

@media (max-width: 560px) {
    .yk-search-box { flex-direction: column; }
    .yk-search-btn { padding: 0.9rem 1.5rem; justify-content: center; }
}

/* 人気キーワード */
.yk-popular {
    margin-bottom: 1.5rem;
}

.yk-popular-label {
    font-size: 0.78rem;
    color: rgba(10, 22, 40, 0.55);
    margin-bottom: 0.6rem;
    letter-spacing: 0.04em;
}

.yk-popular-list {
    display: flex;
    gap: 0.4rem;
    flex-wrap: wrap;
}

.yk-popular-tag {
    padding: 0.4rem 0.9rem;
    background: rgba(255, 255, 255, 0.6);
    border: 1px solid var(--line);
    border-radius: 100px;
    color: var(--ink);
    font-size: 0.82rem;
    cursor: pointer;
    transition: all 0.25s var(--ease-luxe);
    font-family: var(--f-sans);
}

.yk-popular-tag:hover {
    background: var(--ink);
    color: var(--gold-bright);
    border-color: var(--gold);
}

/* ============ 検索結果 ============ */

.yk-search-result,
.yk-timeline-result {
    margin-top: 1.5rem;
}

.yk-result-card,
.yk-timeline-card {
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 8px;
    padding: 2rem 1.8rem;
    box-shadow: 0 12px 32px -12px rgba(10, 22, 40, 0.15);
    animation: fade-up 0.5s var(--ease-luxe);
}

.yk-result-header,
.yk-timeline-header {
    padding-bottom: 1.2rem;
    border-bottom: 1px solid var(--line-soft);
    margin-bottom: 1.5rem;
}

.yk-result-eyebrow {
    font-family: var(--f-display);
    font-size: 0.7rem;
    letter-spacing: 0.35em;
    color: var(--gold-deep);
    margin-bottom: 0.5rem;
    font-weight: 500;
}

.yk-result-title {
    font-family: var(--f-serif);
    font-weight: 600;
    font-size: 1.3rem;
    color: var(--ink);
    letter-spacing: 0.05em;
    line-height: 1.4;
    margin-bottom: 0.4rem;
    display: flex;
    align-items: center;
    gap: 0.6rem;
    flex-wrap: wrap;
}

.yk-result-badge {
    font-size: 0.65rem;
    padding: 0.25rem 0.7rem;
    border-radius: 100px;
    background: rgba(201, 169, 97, 0.15);
    color: var(--gold-deep);
    border: 1px solid rgba(201, 169, 97, 0.4);
    font-weight: 500;
    letter-spacing: 0.05em;
}

.yk-badge-partial {
    background: rgba(212, 175, 127, 0.15);
    color: #b67849;
    border-color: rgba(212, 175, 127, 0.4);
}

.yk-result-context {
    font-family: var(--f-display);
    font-size: 0.78rem;
    letter-spacing: 0.15em;
    color: var(--gold-deep);
    font-weight: 500;
}

.yk-result-summary {
    background: linear-gradient(135deg, #fbf8f2, #f4ecd9);
    padding: 1.3rem 1.5rem;
    border-left: 3px solid var(--gold);
    border-radius: 0 4px 4px 0;
    margin-bottom: 1.5rem;
}

.yk-result-summary p {
    font-family: var(--f-serif);
    font-size: 0.95rem;
    color: var(--ink);
    line-height: 1.95;
    margin: 0;
}

.yk-result-sections {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.yk-result-section {
    padding: 1rem 1.2rem;
    background: rgba(255, 255, 255, 0.7);
    border: 1px solid var(--line);
    border-radius: 4px;
}

.yk-result-section-label {
    font-family: var(--f-serif);
    font-weight: 600;
    font-size: 0.92rem;
    color: var(--gold-deep);
    margin-bottom: 0.5rem;
    letter-spacing: 0.04em;
}

.yk-result-section-content {
    font-size: 0.9rem;
    color: var(--ink);
    line-height: 1.85;
}

.yk-result-steps {
    background: var(--ink);
    color: var(--text-on-dark);
    padding: 1.5rem 1.6rem;
    border-radius: 6px;
    margin-bottom: 1.5rem;
}

.yk-result-steps-label {
    font-family: var(--f-display);
    font-size: 0.72rem;
    letter-spacing: 0.3em;
    color: var(--gold-bright);
    margin-bottom: 1rem;
    font-weight: 500;
}

.yk-result-steps-list {
    list-style: none;
    padding: 0;
    margin: 0;
    counter-reset: steps;
}

.yk-result-steps-list li {
    display: flex;
    align-items: flex-start;
    gap: 0.8rem;
    padding: 0.6rem 0;
    border-bottom: 1px solid rgba(201, 169, 97, 0.2);
    font-size: 0.92rem;
    line-height: 1.7;
    color: rgba(237, 228, 208, 0.95);
}

.yk-result-steps-list li:last-child { border-bottom: none; }

.yk-step-num {
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: var(--gold);
    color: var(--ink);
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--f-display);
    font-size: 0.78rem;
    font-weight: 600;
    flex-shrink: 0;
    margin-top: 1px;
}

.yk-result-cautions {
    background: rgba(255, 245, 230, 0.7);
    border: 1px solid rgba(212, 100, 79, 0.3);
    border-left: 3px solid #c4513b;
    padding: 1rem 1.3rem;
    border-radius: 0 4px 4px 0;
    margin-bottom: 1.5rem;
}

.yk-result-cautions-label {
    font-family: var(--f-serif);
    font-weight: 600;
    font-size: 0.88rem;
    color: #b8442f;
    margin-bottom: 0.4rem;
    letter-spacing: 0.04em;
}

.yk-result-cautions p {
    font-size: 0.85rem;
    color: var(--ink);
    line-height: 1.85;
    margin: 0;
}

.yk-result-footer {
    padding-top: 1rem;
    border-top: 1px solid var(--line-soft);
    text-align: center;
}

.yk-result-footer p {
    font-size: 0.76rem;
    color: rgba(10, 22, 40, 0.55);
    margin: 0;
    font-style: italic;
}

/* 範囲外・不明・エラー */
.yk-result-outofscope,
.yk-result-unknown,
.yk-result-error {
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 8px;
    padding: 1.8rem;
    display: flex;
    gap: 1.2rem;
    box-shadow: 0 8px 20px -8px rgba(10, 22, 40, 0.1);
    animation: fade-up 0.5s var(--ease-luxe);
}

.yk-result-outofscope { border-left: 4px solid #c4513b; }
.yk-result-unknown { border-left: 4px solid #b67849; }
.yk-result-error { border-left: 4px solid #b8442f; background: #fefaf8; }

.yk-result-icon {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: rgba(196, 81, 59, 0.12);
    color: #b8442f;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--f-display);
    font-size: 1.3rem;
    font-weight: 600;
    flex-shrink: 0;
}

.yk-result-unknown .yk-result-icon {
    background: rgba(212, 175, 127, 0.18);
    color: #b67849;
}

.yk-result-text strong {
    display: block;
    font-family: var(--f-serif);
    font-weight: 600;
    font-size: 1rem;
    color: var(--ink);
    margin-bottom: 0.5rem;
    letter-spacing: 0.04em;
}

.yk-result-text p {
    font-size: 0.88rem;
    color: rgba(10, 22, 40, 0.85);
    line-height: 1.85;
    margin: 0 0 0.6rem;
}

.yk-result-suggest {
    padding-top: 0.6rem;
    border-top: 1px dashed var(--line);
    font-size: 0.82rem !important;
    color: rgba(10, 22, 40, 0.65) !important;
}

/* ============ タイムライン ============ */

.yk-timeline-actions {
    text-align: center;
    margin-bottom: 1.5rem;
}

.yk-timeline-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    padding: 1rem 2rem;
    background: var(--ink);
    color: var(--gold-bright);
    border: 1px solid var(--gold);
    border-radius: 100px;
    font-weight: 600;
    font-size: 0.95rem;
    letter-spacing: 0.08em;
    cursor: pointer;
    transition: all 0.3s var(--ease-luxe);
    box-shadow: 0 8px 24px -8px rgba(10, 22, 40, 0.3);
}

.yk-timeline-btn:hover {
    background: var(--ink-deep);
    transform: translateY(-2px);
    box-shadow: 0 12px 30px -8px rgba(10, 22, 40, 0.4);
}

.yk-timeline-btn svg {
    width: 18px;
    height: 18px;
}

.yk-timeline-note {
    font-size: 0.78rem;
    color: rgba(10, 22, 40, 0.5);
    margin-top: 0.8rem;
    font-style: italic;
}

.yk-timeline-summary {
    background: linear-gradient(135deg, #fbf8f2, #f4ecd9);
    padding: 1.2rem 1.5rem;
    border-left: 3px solid var(--gold);
    margin-bottom: 1.5rem;
    border-radius: 0 4px 4px 0;
}

.yk-timeline-summary p {
    font-family: var(--f-serif);
    font-size: 0.95rem;
    color: var(--ink);
    line-height: 1.9;
    margin: 0;
}

.yk-timeline-list {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    margin-bottom: 1.5rem;
}

.yk-timeline-period {
    background: rgba(255, 255, 255, 0.8);
    border: 1px solid var(--line);
    border-radius: 8px;
    padding: 1.5rem 1.6rem;
    position: relative;
}

.yk-prio-high {
    border-left: 4px solid #b8442f;
    background: linear-gradient(135deg, #fefaf8, #fff);
}

.yk-prio-medium {
    border-left: 4px solid var(--gold);
    background: linear-gradient(135deg, #fefbf5, #fff);
}

.yk-prio-low {
    border-left: 4px solid #6dbb83;
    background: linear-gradient(135deg, #f8fcf9, #fff);
}

.yk-timeline-period-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1.2rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--line-soft);
}

.yk-timeline-period-num {
    font-family: var(--f-display);
    font-size: 1.6rem;
    color: var(--gold-deep);
    font-weight: 600;
    letter-spacing: 0.04em;
    line-height: 1;
    flex-shrink: 0;
}

.yk-prio-high .yk-timeline-period-num { color: #b8442f; }
.yk-prio-low .yk-timeline-period-num { color: #4a8a5e; }

.yk-timeline-period-prio {
    font-family: var(--f-display);
    font-size: 0.7rem;
    letter-spacing: 0.25em;
    color: var(--gold-deep);
    font-weight: 600;
    margin-bottom: 0.2rem;
    text-transform: uppercase;
}

.yk-prio-high .yk-timeline-period-prio { color: #b8442f; }
.yk-prio-low .yk-timeline-period-prio { color: #4a8a5e; }

.yk-timeline-period-name {
    font-family: var(--f-serif);
    font-weight: 600;
    font-size: 1.1rem;
    color: var(--ink);
    letter-spacing: 0.04em;
}

.yk-timeline-items {
    display: flex;
    flex-direction: column;
    gap: 0.9rem;
}

.yk-timeline-item {
    padding: 0.9rem 1.1rem;
    background: rgba(255, 255, 255, 0.7);
    border: 1px solid var(--line-soft);
    border-radius: 4px;
}

.yk-timeline-item-area {
    font-family: var(--f-display);
    font-size: 0.7rem;
    letter-spacing: 0.2em;
    color: var(--gold-deep);
    text-transform: uppercase;
    font-weight: 600;
    margin-bottom: 0.3rem;
}

.yk-timeline-item-title {
    font-family: var(--f-serif);
    font-weight: 600;
    font-size: 1rem;
    color: var(--ink);
    margin-bottom: 0.7rem;
    letter-spacing: 0.04em;
    line-height: 1.5;
}

.yk-timeline-item-body {
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
}

.yk-timeline-item-row {
    display: flex;
    gap: 0.8rem;
    align-items: flex-start;
}

.yk-timeline-item-label {
    font-family: var(--f-display);
    font-size: 0.68rem;
    letter-spacing: 0.15em;
    color: var(--gold-deep);
    font-weight: 600;
    text-transform: uppercase;
    flex-shrink: 0;
    width: 50px;
    padding-top: 2px;
}

.yk-timeline-item-text {
    flex: 1;
    font-size: 0.85rem;
    color: var(--ink);
    line-height: 1.7;
}

/* ============ 注意書き ============ */
.yk-disclaimer {
    background: rgba(255, 255, 255, 0.5);
    border-left: 3px solid var(--gold);
    padding: 1.3rem 1.5rem;
    border-radius: 0 4px 4px 0;
    margin-top: 2rem;
}

.yk-disclaimer p {
    font-size: 0.82rem;
    color: rgba(10, 22, 40, 0.7);
    line-height: 1.9;
    margin: 0;
}

.yk-disclaimer strong {
    color: var(--ink);
    font-family: var(--f-serif);
    font-size: 0.9rem;
    font-weight: 600;
    display: block;
    margin-bottom: 0.3rem;
}

/* ============ ローディングオーバーレイ ============ */
.yk-loading {
    position: fixed;
    inset: 0;
    background: rgba(10, 22, 40, 0.6);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    animation: fade-up 0.3s var(--ease-luxe);
}

.yk-loading-inner {
    background: var(--ink);
    color: var(--text-on-dark);
    padding: 2.5rem 3rem;
    border-radius: 12px;
    border: 1px solid var(--gold);
    text-align: center;
    box-shadow: 0 30px 80px rgba(0, 0, 0, 0.5);
    max-width: 360px;
}

.yk-loading-visual {
    width: 80px;
    height: 80px;
    margin: 0 auto 1.5rem;
    position: relative;
}

.yk-loading-ring {
    position: absolute;
    inset: 0;
    border-radius: 50%;
    border: 2px solid var(--gold);
    opacity: 0;
    animation: yk-ring 2s ease-out infinite;
}

.yk-loading-ring-2 { animation-delay: 0.7s; }

@keyframes yk-ring {
    0% { opacity: 0.6; transform: scale(0.7); }
    100% { opacity: 0; transform: scale(1.3); }
}

.yk-loading-visual::after {
    content: '';
    position: absolute;
    inset: 20px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--gold-bright), var(--gold-deep));
    box-shadow: 0 0 30px rgba(201, 169, 97, 0.5);
    animation: yk-pulse 2s ease-in-out infinite;
}

@keyframes yk-pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.1); }
}

.yk-loading-text {
    font-family: var(--f-serif);
    font-size: 1.05rem;
    color: var(--text-on-dark);
    margin-bottom: 0.5rem;
    letter-spacing: 0.06em;
    font-weight: 600;
}

.yk-loading-sub {
    font-size: 0.82rem;
    color: rgba(237, 228, 208, 0.7);
    letter-spacing: 0.05em;
}

/* レスポンシブ */
@media (max-width: 600px) {
    .yakusu { padding: 1.8rem 0.9rem 3rem; }
    .yk-features { gap: 0.6rem; }
    .yk-feature-item { padding: 0.9rem 1rem; }
    .yk-company-form { padding: 1.5rem 1.2rem; }
    .yk-form-options { grid-template-columns: repeat(2, 1fr); }
    .yk-search-section, .yk-timeline-section {
        margin-bottom: 2.2rem; padding-bottom: 1.8rem;
    }
    .yk-section-title { font-size: 1.2rem; }
    .yk-result-card, .yk-timeline-card { padding: 1.4rem 1.3rem; }
    .yk-result-title { font-size: 1.1rem; }
    .yk-timeline-period { padding: 1.2rem 1.2rem; }
    .yk-timeline-item { padding: 0.8rem 0.9rem; }
    .yk-timeline-item-row { flex-direction: column; gap: 0.2rem; }
    .yk-timeline-item-label { width: auto; }
    .yk-loading-inner { padding: 2rem 2rem; margin: 0 1rem; }
}

/* ============================================================
   トップ画面：AI機能セクション（2つ並列）
   ============================================================ */

.hero-ai-section {
    max-width: 1100px;
    margin: 0 auto 2.5rem;
    animation: fade-up 0.9s var(--ease-luxe) 0.55s both;
}

.hero-ai-eyebrow {
    text-align: center;
    font-family: var(--f-display);
    font-size: 0.78rem;
    letter-spacing: 0.4em;
    color: var(--gold-deep);
    margin-bottom: 1.5rem;
    font-weight: 500;
}

.hero-ai-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.1rem;
}

@media (min-width: 1280px) {
    .hero-ai-grid {
        grid-template-columns: repeat(5, 1fr);
    }
}

/* ノートPC幅（641〜1279px）: 2列×3行、5枚目は中央配置 */
@media (min-width: 641px) and (max-width: 1279px) {
    .hero-ai-grid .hero-ai-card:nth-child(5) {
        grid-column: 1 / -1;
        max-width: calc(50% - 0.55rem);
        margin-left: auto;
        margin-right: auto;
        width: 100%;
    }
}

@media (max-width: 640px) {
    .hero-ai-grid {
        grid-template-columns: 1fr;
    }
}

.hero-ai-card {
    display: block;
    background: linear-gradient(135deg, var(--ink-deep), var(--ink), var(--ink-soft));
    border-radius: 12px;
    box-shadow: 0 20px 50px -20px rgba(10, 22, 40, 0.5),
                0 0 0 1px var(--gold);
    transition: all 0.5s var(--ease-luxe);
    overflow: hidden;
    position: relative;
    color: var(--text-on-dark);
}

.hero-ai-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, transparent, var(--gold-bright), transparent);
    opacity: 0.9;
}

.hero-ai-glow {
    position: absolute;
    top: -50%;
    right: -20%;
    width: 80%;
    height: 200%;
    background: radial-gradient(ellipse, rgba(228, 195, 115, 0.15), transparent 50%);
    pointer-events: none;
    animation: hero-ai-glow 8s ease-in-out infinite;
}

.hero-ai-yakusu .hero-ai-glow {
    animation-delay: 2s;
    background: radial-gradient(ellipse, rgba(228, 195, 115, 0.12), transparent 50%);
}

@keyframes hero-ai-glow {
    0%, 100% { opacity: 0.6; transform: translateX(0); }
    50% { opacity: 1; transform: translateX(-15px); }
}

.hero-ai-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 30px 70px -20px rgba(10, 22, 40, 0.6),
                0 0 0 1px var(--gold-bright);
}

.hero-ai-inner {
    position: relative;
    z-index: 1;
    padding: 2.2rem 2rem 2rem;
}

.hero-ai-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.35rem 0.9rem;
    background: rgba(201, 169, 97, 0.15);
    border: 1px solid var(--gold);
    border-radius: 100px;
    font-family: var(--f-display);
    font-size: 0.68rem;
    letter-spacing: 0.3em;
    color: var(--gold-bright);
    margin-bottom: 1.2rem;
    font-weight: 600;
}

.hero-ai-badge-icon {
    color: var(--gold-bright);
    font-size: 0.85rem;
    text-shadow: 0 0 8px rgba(228, 195, 115, 0.6);
}

.hero-ai-title {
    font-family: var(--f-serif);
    font-weight: 600;
    font-size: clamp(1.4rem, 3vw, 1.7rem);
    letter-spacing: 0.06em;
    color: var(--text-on-dark);
    margin-bottom: 0.8rem;
    line-height: 1.4;
}

.hero-ai-accent {
    color: var(--gold-bright);
    position: relative;
}

.hero-ai-accent::after {
    content: '';
    position: absolute;
    left: 0;
    right: 0;
    bottom: -3px;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--gold-bright) 30%, var(--gold-bright) 70%, transparent);
    opacity: 0.6;
}

.hero-ai-desc {
    font-family: var(--f-serif);
    font-size: 0.9rem;
    color: rgba(237, 228, 208, 0.85);
    line-height: 1.95;
    margin-bottom: 1.2rem;
    letter-spacing: 0.02em;
}

.hero-ai-meta {
    display: flex;
    gap: 0.5rem;
    align-items: center;
    margin-bottom: 1.5rem;
    padding: 0.6rem 1rem;
    background: rgba(201, 169, 97, 0.08);
    border: 1px solid rgba(201, 169, 97, 0.25);
    border-radius: 100px;
    flex-wrap: wrap;
}

.hero-ai-meta-item {
    font-size: 0.75rem;
    color: var(--gold-bright);
    letter-spacing: 0.04em;
}

.hero-ai-meta-dot {
    color: rgba(201, 169, 97, 0.5);
    margin: 0 0.2rem;
}

.hero-ai-button {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    background: linear-gradient(135deg, var(--gold-bright), var(--gold-deep));
    color: var(--ink);
    padding: 0.95rem 2rem;
    border-radius: 100px;
    font-weight: 600;
    font-size: 0.92rem;
    letter-spacing: 0.1em;
    box-shadow: 0 6px 18px rgba(201, 169, 97, 0.4);
    transition: all 0.3s var(--ease-luxe);
}

.hero-ai-card:hover .hero-ai-button {
    background: linear-gradient(135deg, #f0d088, var(--gold-bright));
    box-shadow: 0 10px 24px rgba(201, 169, 97, 0.55);
}

.hero-ai-arrow {
    transition: transform 0.3s var(--ease-luxe);
}

.hero-ai-card:hover .hero-ai-arrow {
    transform: translateX(4px);
}

@media (max-width: 560px) {
    .hero-ai-inner { padding: 1.8rem 1.5rem; }
    .hero-ai-title { font-size: 1.3rem; }
    .hero-ai-desc { font-size: 0.85rem; }
}

/* ============================================================
   TODOリスト自動生成（Phase 3）
   todo.php
   ============================================================ */

.page-todo {
    background: var(--ivory);
}

.todo {
    max-width: 920px;
    margin: 0 auto;
    padding: 2.5rem 1.2rem 4rem;
}

.td-step { animation: fade-up 0.6s var(--ease-luxe); }

/* ============ 復元バナー ============ */
.td-restore-banner {
    background: linear-gradient(135deg, #fbf8f2, #f4ecd9);
    border: 1px solid var(--gold);
    border-radius: 8px;
    padding: 1.3rem 1.5rem;
    margin-bottom: 2rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.5rem;
    box-shadow: 0 8px 24px -10px rgba(201, 169, 97, 0.3);
    animation: fade-up 0.5s var(--ease-luxe);
}

.td-restore-text strong {
    display: block;
    font-family: var(--f-serif);
    font-weight: 600;
    font-size: 0.95rem;
    color: var(--ink);
    margin-bottom: 0.3rem;
    letter-spacing: 0.04em;
}

.td-restore-text span {
    font-family: var(--f-display);
    font-size: 0.78rem;
    color: var(--gold-deep);
    letter-spacing: 0.05em;
}

.td-restore-actions {
    display: flex;
    gap: 0.5rem;
    flex-shrink: 0;
}

.td-restore-yes, .td-restore-no {
    padding: 0.55rem 1.1rem;
    border-radius: 100px;
    font-size: 0.82rem;
    font-family: var(--f-sans);
    cursor: pointer;
    transition: all 0.25s var(--ease-luxe);
    letter-spacing: 0.04em;
    font-weight: 600;
}

.td-restore-yes {
    background: var(--ink);
    color: var(--gold-bright);
    border: 1px solid var(--gold);
}

.td-restore-yes:hover {
    background: var(--ink-deep);
    transform: translateY(-1px);
}

.td-restore-no {
    background: transparent;
    color: var(--ink);
    border: 1px solid var(--line);
}

.td-restore-no:hover {
    border-color: var(--gold);
}

@media (max-width: 560px) {
    .td-restore-banner {
        flex-direction: column;
        align-items: flex-start;
    }
    .td-restore-actions {
        width: 100%;
    }
    .td-restore-yes, .td-restore-no {
        flex: 1;
    }
}

/* ============ STEP 1: 入口画面 ============ */
.td-intro { text-align: center; }

.td-eyebrow {
    font-family: var(--f-display);
    font-size: 0.75rem;
    letter-spacing: 0.4em;
    color: var(--gold-deep);
    margin-bottom: 1rem;
    font-weight: 500;
}

.td-title {
    font-family: var(--f-serif);
    font-weight: 600;
    font-size: clamp(1.9rem, 5vw, 2.6rem);
    color: var(--ink);
    letter-spacing: 0.08em;
    margin-bottom: 0.7rem;
    line-height: 1.4;
}

.td-subtitle {
    font-family: var(--f-serif);
    font-size: 1rem;
    color: rgba(10, 22, 40, 0.7);
    line-height: 2;
    margin-bottom: 2.5rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.td-features {
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
    max-width: 620px;
    margin: 0 auto 2.5rem;
    text-align: left;
}

.td-feature-item {
    display: flex;
    gap: 1.2rem;
    padding: 1.1rem 1.4rem;
    background: rgba(255, 255, 255, 0.75);
    border: 1px solid var(--line);
    border-left: 3px solid var(--gold);
    border-radius: 4px;
}

.td-feature-num {
    font-family: var(--f-display);
    font-size: 1.2rem;
    color: var(--gold-deep);
    font-weight: 600;
    letter-spacing: 0.1em;
    flex-shrink: 0;
    padding-top: 2px;
}

.td-feature-text strong {
    display: block;
    font-family: var(--f-serif);
    font-weight: 600;
    font-size: 0.98rem;
    color: var(--ink);
    margin-bottom: 0.3rem;
}

.td-feature-text span {
    display: block;
    font-size: 0.82rem;
    color: rgba(10, 22, 40, 0.7);
    line-height: 1.75;
}

.td-company-form {
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 6px;
    padding: 2rem 1.8rem;
    margin-bottom: 1.5rem;
    box-shadow: 0 8px 24px -10px rgba(10, 22, 40, 0.12);
    text-align: left;
}

.td-form-heading {
    font-family: var(--f-serif);
    font-weight: 600;
    font-size: 1.15rem;
    color: var(--ink);
    letter-spacing: 0.05em;
    margin-bottom: 1.5rem;
    text-align: center;
}

.td-form-field {
    margin-bottom: 1.8rem;
}

.td-form-field:last-child {
    margin-bottom: 0;
}

.td-form-label {
    display: block;
    font-family: var(--f-serif);
    font-weight: 600;
    font-size: 0.95rem;
    color: var(--ink);
    letter-spacing: 0.05em;
    margin-bottom: 0.8rem;
}

.td-form-options {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
    gap: 0.5rem;
}

.td-form-options-size {
    grid-template-columns: repeat(auto-fill, minmax(110px, 1fr));
}

.td-form-option {
    padding: 0.8rem 0.9rem;
    background: rgba(255, 255, 255, 0.7);
    border: 1px solid var(--line);
    border-radius: 4px;
    color: var(--ink);
    font-size: 0.86rem;
    font-family: var(--f-sans);
    cursor: pointer;
    transition: all 0.25s var(--ease-luxe);
    text-align: center;
}

.td-form-option:hover {
    background: #fff;
    border-color: var(--gold);
    transform: translateY(-1px);
}

.td-form-option-selected {
    background: var(--ink) !important;
    color: var(--text-on-dark);
    border-color: var(--gold) !important;
    box-shadow: 0 4px 14px rgba(10, 22, 40, 0.25);
}

/* 6本柱選択 */
.td-form-pillars {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
    gap: 0.5rem;
}

.td-pillar {
    display: flex;
    align-items: center;
    gap: 0.7rem;
    padding: 0.9rem 1rem;
    background: rgba(255, 255, 255, 0.7);
    border: 1px solid var(--line);
    border-radius: 4px;
    color: var(--ink);
    font-size: 0.88rem;
    font-family: var(--f-sans);
    cursor: pointer;
    transition: all 0.25s var(--ease-luxe);
    text-align: left;
}

.td-pillar:hover {
    background: #fff;
    border-color: var(--gold);
}

.td-pillar-all {
    background: linear-gradient(135deg, #fbf8f2, #f4ecd9);
    border-color: var(--gold);
    font-weight: 600;
}

.td-pillar-check {
    width: 18px;
    height: 18px;
    border: 2px solid var(--line);
    border-radius: 3px;
    flex-shrink: 0;
    position: relative;
    transition: all 0.25s var(--ease-luxe);
}

.td-pillar-selected {
    background: var(--ink) !important;
    color: var(--text-on-dark) !important;
    border-color: var(--gold) !important;
}

.td-pillar-selected .td-pillar-check {
    background: var(--gold);
    border-color: var(--gold);
}

.td-pillar-selected .td-pillar-check::after {
    content: '✓';
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--ink);
    font-size: 0.85rem;
    font-weight: 700;
}

.td-pillar-text {
    flex: 1;
}

.td-generate-button {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    background: linear-gradient(135deg, var(--gold-bright), var(--gold-deep));
    color: var(--ink);
    padding: 1.1rem 2.8rem;
    border-radius: 100px;
    font-weight: 600;
    font-size: 1rem;
    letter-spacing: 0.1em;
    box-shadow: 0 10px 28px rgba(201, 169, 97, 0.4);
    transition: all 0.3s var(--ease-luxe);
    cursor: pointer;
    margin-top: 1.5rem;
    width: 100%;
    justify-content: center;
}

.td-generate-button:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 14px 35px rgba(201, 169, 97, 0.5);
}

.td-generate-button:disabled {
    opacity: 0.35;
    cursor: not-allowed;
    background: var(--ink);
    color: rgba(237, 228, 208, 0.5);
    box-shadow: none;
}

.td-arrow { transition: transform 0.3s var(--ease-luxe); }
.td-generate-button:hover:not(:disabled) .td-arrow { transform: translateX(4px); }

.td-source {
    font-size: 0.78rem;
    color: rgba(10, 22, 40, 0.55);
    line-height: 1.85;
    letter-spacing: 0.04em;
    max-width: 580px;
    margin: 0 auto;
}

/* ============ STEP 2: 結果画面 ============ */

.td-result-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.5rem;
    padding: 1.2rem 1.5rem;
    background: linear-gradient(135deg, var(--ink), var(--ink-soft));
    color: var(--text-on-dark);
    border-radius: 8px;
    margin-bottom: 2rem;
    border: 1px solid rgba(201, 169, 97, 0.3);
    box-shadow: 0 8px 24px -10px rgba(10, 22, 40, 0.3);
}

.td-result-meta {
    display: flex;
    gap: 1.5rem;
    flex-wrap: wrap;
}

.td-result-meta-item {
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
}

.td-meta-label {
    font-family: var(--f-display);
    font-size: 0.65rem;
    letter-spacing: 0.25em;
    color: var(--gold-bright);
    font-weight: 600;
}

.td-meta-value {
    font-family: var(--f-serif);
    font-weight: 600;
    font-size: 0.92rem;
    color: var(--text-on-dark);
    letter-spacing: 0.04em;
}

.td-restart-btn {
    font-size: 0.78rem;
    color: var(--gold-bright);
    padding: 0.45rem 1.1rem;
    border: 1px solid var(--gold);
    border-radius: 100px;
    background: transparent;
    cursor: pointer;
    transition: all 0.3s var(--ease-luxe);
    letter-spacing: 0.05em;
}

.td-restart-btn:hover {
    background: var(--gold);
    color: var(--ink);
}

@media (max-width: 560px) {
    .td-result-header {
        flex-direction: column;
        align-items: flex-start;
        padding: 1rem 1.2rem;
    }
}

.td-result-title-block {
    margin-bottom: 2rem;
}

.td-result-eyebrow {
    font-family: var(--f-display);
    font-size: 0.75rem;
    letter-spacing: 0.4em;
    color: var(--gold-deep);
    margin-bottom: 0.6rem;
    font-weight: 500;
}

.td-result-title {
    font-family: var(--f-serif);
    font-weight: 600;
    font-size: clamp(1.6rem, 4vw, 2rem);
    color: var(--ink);
    letter-spacing: 0.06em;
    margin-bottom: 1rem;
    line-height: 1.4;
}

.td-result-summary {
    font-family: var(--f-serif);
    font-size: 0.95rem;
    color: var(--ink);
    line-height: 1.95;
    padding: 1.3rem 1.5rem;
    background: linear-gradient(135deg, #fbf8f2, #f4ecd9);
    border-left: 3px solid var(--gold);
    border-radius: 0 4px 4px 0;
    margin: 0;
}

/* 進捗バー */
.td-progress {
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 6px;
    padding: 1.2rem 1.5rem;
    margin-bottom: 1.5rem;
    box-shadow: 0 4px 14px -6px rgba(10, 22, 40, 0.1);
}

.td-progress-info {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 0.8rem;
}

.td-progress-label {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-family: var(--f-serif);
    font-weight: 600;
    font-size: 0.95rem;
    color: var(--ink);
    letter-spacing: 0.05em;
}

.td-progress-icon {
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: var(--gold);
    color: var(--ink);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.8rem;
    font-weight: 700;
}

.td-progress-stats {
    font-family: var(--f-display);
    font-size: 0.95rem;
    color: var(--ink);
    letter-spacing: 0.04em;
}

.td-progress-done {
    font-size: 1.3rem;
    color: var(--gold-deep);
    font-weight: 600;
}

.td-progress-sep {
    color: var(--line);
    margin: 0 4px;
}

.td-progress-total {
    color: rgba(10, 22, 40, 0.5);
}

.td-progress-percent {
    margin-left: 0.8rem;
    padding: 0.2rem 0.7rem;
    background: var(--ink);
    color: var(--gold-bright);
    border-radius: 100px;
    font-size: 0.78rem;
    letter-spacing: 0.08em;
    font-weight: 600;
}

.td-progress-bar {
    height: 8px;
    background: rgba(201, 169, 97, 0.15);
    border-radius: 4px;
    overflow: hidden;
}

.td-progress-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--gold-deep), var(--gold-bright));
    border-radius: 4px;
    width: 0%;
    transition: width 0.6s var(--ease-luxe);
}

/* フィルター */
.td-filters {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
    flex-wrap: wrap;
}

.td-filter {
    padding: 0.55rem 1rem;
    background: rgba(255, 255, 255, 0.7);
    border: 1px solid var(--line);
    border-radius: 100px;
    color: var(--ink);
    font-size: 0.85rem;
    font-family: var(--f-sans);
    cursor: pointer;
    transition: all 0.25s var(--ease-luxe);
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
}

.td-filter:hover {
    background: #fff;
    border-color: var(--gold);
}

.td-filter-active {
    background: var(--ink) !important;
    color: var(--text-on-dark) !important;
    border-color: var(--gold) !important;
}

.td-filter-count {
    padding: 0.1rem 0.5rem;
    background: rgba(201, 169, 97, 0.15);
    color: var(--gold-deep);
    border-radius: 100px;
    font-size: 0.72rem;
    font-weight: 600;
    letter-spacing: 0.04em;
}

.td-filter-active .td-filter-count {
    background: var(--gold);
    color: var(--ink);
}

/* リスト */
.td-list {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.td-group {
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 6px 18px -10px rgba(10, 22, 40, 0.1);
}

.td-group-header {
    background: linear-gradient(135deg, var(--ink), var(--ink-soft));
    color: var(--text-on-dark);
    padding: 1rem 1.5rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-bottom: 1px solid rgba(201, 169, 97, 0.2);
}

.td-group-name {
    font-family: var(--f-serif);
    font-weight: 600;
    font-size: 1.05rem;
    color: var(--gold-bright);
    letter-spacing: 0.06em;
}

.td-group-count {
    font-family: var(--f-display);
    font-size: 0.78rem;
    letter-spacing: 0.08em;
    color: rgba(237, 228, 208, 0.7);
}

.td-group-items {
    padding: 0.5rem;
}

.td-item {
    display: flex;
    gap: 1rem;
    padding: 1rem 1.2rem;
    border-bottom: 1px solid var(--line-soft);
    transition: all 0.25s var(--ease-luxe);
}

.td-item:last-child { border-bottom: none; }

.td-item:hover {
    background: rgba(255, 255, 255, 0.5);
}

.td-item-done {
    opacity: 0.55;
}

.td-item-done .td-item-title {
    text-decoration: line-through;
    color: rgba(10, 22, 40, 0.55);
}

.td-item-check {
    flex-shrink: 0;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0;
    margin-top: 1px;
}

.td-check-box {
    width: 22px;
    height: 22px;
    border: 2px solid var(--line);
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #fff;
    color: var(--ink);
    font-size: 0.9rem;
    font-weight: 700;
    transition: all 0.25s var(--ease-luxe);
}

.td-item-check:hover .td-check-box {
    border-color: var(--gold);
    background: rgba(201, 169, 97, 0.05);
}

.td-item-done .td-check-box {
    background: var(--gold);
    border-color: var(--gold);
    color: var(--ink);
}

.td-item-body {
    flex: 1;
    min-width: 0;
}

.td-item-header {
    display: flex;
    align-items: flex-start;
    gap: 0.8rem;
    justify-content: space-between;
    margin-bottom: 0.4rem;
}

.td-item-title {
    font-family: var(--f-serif);
    font-weight: 600;
    font-size: 0.98rem;
    color: var(--ink);
    line-height: 1.5;
    letter-spacing: 0.03em;
}

.td-item-prio {
    flex-shrink: 0;
    width: 26px;
    height: 26px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.78rem;
    font-weight: 600;
    letter-spacing: 0;
}

.td-prio-high {
    background: rgba(184, 68, 47, 0.12);
    color: #b8442f;
    border: 1px solid rgba(184, 68, 47, 0.3);
}

.td-prio-medium {
    background: rgba(201, 169, 97, 0.15);
    color: var(--gold-deep);
    border: 1px solid rgba(201, 169, 97, 0.35);
}

.td-prio-low {
    background: rgba(74, 138, 94, 0.12);
    color: #4a8a5e;
    border: 1px solid rgba(74, 138, 94, 0.3);
}

.td-item-expand {
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0.3rem 0;
    color: var(--gold-deep);
    font-size: 0.78rem;
    letter-spacing: 0.04em;
    font-family: var(--f-sans);
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    transition: color 0.25s var(--ease-luxe);
}

.td-item-expand:hover {
    color: var(--gold);
}

.td-item-expand-icon {
    transition: transform 0.25s var(--ease-luxe);
    font-size: 0.75rem;
}

.td-item-expand-open .td-item-expand-icon {
    transform: rotate(180deg);
}

.td-item-detail {
    margin-top: 0.6rem;
    padding: 0.9rem 1.1rem;
    background: rgba(251, 248, 242, 0.7);
    border-left: 2px solid var(--gold);
    border-radius: 0 4px 4px 0;
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
    animation: fade-up 0.3s var(--ease-luxe);
}

.td-item-section-label {
    font-family: var(--f-display);
    font-size: 0.68rem;
    letter-spacing: 0.18em;
    color: var(--gold-deep);
    text-transform: uppercase;
    font-weight: 600;
    margin-bottom: 0.3rem;
}

.td-item-section-text {
    font-size: 0.85rem;
    color: var(--ink);
    line-height: 1.85;
    letter-spacing: 0.01em;
}

.td-empty {
    text-align: center;
    padding: 3rem 1.5rem;
    background: rgba(255, 255, 255, 0.5);
    border: 1px dashed var(--line);
    border-radius: 8px;
}

.td-empty-icon {
    font-size: 2.5rem;
    color: var(--line);
    margin-bottom: 0.5rem;
}

.td-empty-text {
    color: rgba(10, 22, 40, 0.55);
    font-size: 0.9rem;
    letter-spacing: 0.04em;
}

/* アクション */
.td-actions {
    display: flex;
    gap: 0.6rem;
    margin-bottom: 2rem;
    flex-wrap: wrap;
}

.td-action-btn {
    flex: 1;
    min-width: 140px;
    padding: 0.85rem 1.4rem;
    border-radius: 100px;
    font-weight: 600;
    font-size: 0.85rem;
    letter-spacing: 0.06em;
    transition: all 0.3s var(--ease-luxe);
    cursor: pointer;
    font-family: var(--f-sans);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.td-action-print {
    background: var(--ink);
    color: var(--gold-bright);
    border: 1px solid var(--gold);
}

.td-action-print:hover {
    background: var(--ink-deep);
    transform: translateY(-1px);
    box-shadow: 0 6px 16px rgba(10, 22, 40, 0.25);
}

.td-action-print svg {
    width: 16px;
    height: 16px;
}

.td-action-clear {
    background: transparent;
    color: var(--ink);
    border: 1px solid var(--line);
}

.td-action-clear:hover {
    border-color: #b8442f;
    color: #b8442f;
}

.td-action-regen {
    background: transparent;
    color: var(--ink);
    border: 1px solid var(--line);
}

.td-action-regen:hover {
    border-color: var(--gold);
    background: rgba(201, 169, 97, 0.05);
}

@media (max-width: 560px) {
    .td-action-btn { width: 100%; flex: none; }
}

/* 注意書き */
.td-disclaimer {
    background: rgba(255, 255, 255, 0.5);
    border-left: 3px solid var(--gold);
    padding: 1.3rem 1.5rem;
    border-radius: 0 4px 4px 0;
}

.td-disclaimer p {
    font-size: 0.82rem;
    color: rgba(10, 22, 40, 0.7);
    line-height: 1.9;
    margin: 0;
}

.td-disclaimer strong {
    color: var(--ink);
    font-family: var(--f-serif);
    font-size: 0.9rem;
    font-weight: 600;
    display: block;
    margin-bottom: 0.3rem;
}

/* ローディング */
.td-loading {
    position: fixed;
    inset: 0;
    background: rgba(10, 22, 40, 0.6);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    animation: fade-up 0.3s var(--ease-luxe);
}

.td-loading-inner {
    background: var(--ink);
    color: var(--text-on-dark);
    padding: 2.5rem 3rem;
    border-radius: 12px;
    border: 1px solid var(--gold);
    text-align: center;
    box-shadow: 0 30px 80px rgba(0, 0, 0, 0.5);
    max-width: 380px;
}

.td-loading-visual {
    width: 80px;
    height: 80px;
    margin: 0 auto 1.5rem;
    position: relative;
}

.td-loading-ring {
    position: absolute;
    inset: 0;
    border-radius: 50%;
    border: 2px solid var(--gold);
    opacity: 0;
    animation: td-ring 2s ease-out infinite;
}

.td-loading-ring-2 { animation-delay: 0.7s; }

@keyframes td-ring {
    0% { opacity: 0.6; transform: scale(0.7); }
    100% { opacity: 0; transform: scale(1.3); }
}

.td-loading-visual::after {
    content: '✓';
    position: absolute;
    inset: 20px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--gold-bright), var(--gold-deep));
    color: var(--ink);
    font-size: 1.5rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 0 30px rgba(201, 169, 97, 0.5);
    animation: td-pulse 2s ease-in-out infinite;
}

@keyframes td-pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.1); }
}

.td-loading-text {
    font-family: var(--f-serif);
    font-size: 1.05rem;
    color: var(--text-on-dark);
    margin-bottom: 0.5rem;
    letter-spacing: 0.06em;
    font-weight: 600;
}

.td-loading-sub {
    font-size: 0.82rem;
    color: rgba(237, 228, 208, 0.7);
    letter-spacing: 0.05em;
}

/* ============ レスポンシブ ============ */
@media (max-width: 600px) {
    .todo { padding: 1.8rem 0.9rem 3rem; }
    .td-features { gap: 0.6rem; }
    .td-feature-item { padding: 0.9rem 1rem; }
    .td-company-form { padding: 1.5rem 1.2rem; }
    .td-form-options { grid-template-columns: repeat(2, 1fr); }
    .td-form-pillars { grid-template-columns: 1fr; }
    .td-pillar { padding: 0.85rem 0.95rem; }
    .td-item { padding: 0.9rem 1rem; }
    .td-item-title { font-size: 0.92rem; }
}

/* ============ 印刷用 ============ */
@media print {
    @page {
        size: A4 portrait;
        margin: 12mm 14mm;
    }

    .site-header,
    .breadcrumb-bar,
    .site-footer,
    .bg-pattern,
    .td-restart-btn,
    .td-filters,
    .td-actions,
    .td-loading,
    .td-restore-banner,
    .td-item-expand,
    .td-item-detail {
        display: none !important;
    }

    html, body {
        background: #fff !important;
        color: #000 !important;
        font-size: 9.5pt !important;
    }

    .todo { padding: 0 !important; max-width: 100% !important; }

    .td-result-header {
        background: #fff !important;
        color: #000 !important;
        padding: 0 0 4mm 0 !important;
        border: none !important;
        border-bottom: 1pt solid #0a1628 !important;
        border-radius: 0 !important;
        box-shadow: none !important;
        margin-bottom: 5mm !important;
        page-break-inside: avoid;
    }

    .td-meta-label { color: #a8893f !important; font-size: 7pt !important; }
    .td-meta-value { color: #0a1628 !important; font-size: 9.5pt !important; }

    .td-result-title-block { margin-bottom: 4mm !important; }
    .td-result-eyebrow { color: #a8893f !important; font-size: 7pt !important; }
    .td-result-title { color: #0a1628 !important; font-size: 14pt !important; margin-bottom: 2mm !important; }

    .td-result-summary {
        background: #fbf8f2 !important;
        border-left: 2pt solid #a8893f !important;
        padding: 3mm 4mm !important;
        font-size: 9pt !important;
        color: #0a1628 !important;
        line-height: 1.6 !important;
    }

    .td-progress {
        page-break-inside: avoid;
        padding: 2mm 3mm !important;
        margin-bottom: 4mm !important;
        background: #fff !important;
        border: 0.5pt solid #ccc !important;
        box-shadow: none !important;
    }

    .td-progress-info { margin-bottom: 1.5mm !important; }
    .td-progress-icon { background: #a8893f !important; color: #fff !important; }
    .td-progress-done { color: #a8893f !important; font-size: 11pt !important; }
    .td-progress-percent { background: #0a1628 !important; color: #fff !important; }
    .td-progress-bar { height: 3mm !important; background: #f0eae0 !important; }
    .td-progress-fill { background: #a8893f !important; }

    .td-list { gap: 4mm !important; margin-bottom: 4mm !important; }

    .td-group {
        page-break-inside: auto;
        border: 0.5pt solid #ccc !important;
        box-shadow: none !important;
        border-radius: 0 !important;
    }

    .td-group-header {
        background: #fbf8f2 !important;
        color: #0a1628 !important;
        padding: 2mm 4mm !important;
        border-bottom: 0.5pt solid #ccc !important;
    }

    .td-group-name { color: #a8893f !important; font-size: 10pt !important; }
    .td-group-count { color: #666 !important; font-size: 7pt !important; }

    .td-group-items { padding: 0 !important; }

    .td-item {
        padding: 2mm 4mm !important;
        border-bottom: 0.3pt dotted #ccc !important;
        page-break-inside: avoid;
    }

    .td-check-box {
        background: #fff !important;
        border: 1pt solid #0a1628 !important;
        width: 14px !important;
        height: 14px !important;
    }

    .td-item-done .td-check-box {
        background: #a8893f !important;
        color: #fff !important;
        border-color: #a8893f !important;
    }

    .td-item-title { font-size: 9pt !important; color: #0a1628 !important; }

    .td-item-prio {
        width: 18px !important;
        height: 18px !important;
        font-size: 7pt !important;
        border: 0.5pt solid !important;
    }

    .td-prio-high { background: #fcf0ec !important; color: #b8442f !important; border-color: #b8442f !important; }
    .td-prio-medium { background: #fbf8f2 !important; color: #a8893f !important; border-color: #a8893f !important; }
    .td-prio-low { background: #f0f7f2 !important; color: #4a8a5e !important; border-color: #4a8a5e !important; }

    .td-disclaimer {
        background: #f8f4ec !important;
        padding: 2mm 3mm !important;
        font-size: 7pt !important;
        margin-top: 4mm !important;
        page-break-inside: avoid;
    }

    .td-disclaimer p { font-size: 7pt !important; color: #555 !important; line-height: 1.5 !important; }
    .td-disclaimer strong { font-size: 7.5pt !important; color: #0a1628 !important; }
}

/* ============================================================
   Phase 4: AI文書ドラフト生成
   bunsho.php / bunsho-result.php
   ============================================================ */

.page-bunsho, .page-bunsho-result {
    background: var(--ivory);
}

.bunsho {
    max-width: 920px;
    margin: 0 auto;
    padding: 2.5rem 1.2rem 4rem;
}

.bn-step { animation: fade-up 0.6s var(--ease-luxe); }

/* ============ 説明＋警告 ============ */
.bn-intro { }

.bn-eyebrow {
    font-family: var(--f-display);
    font-size: 0.75rem;
    letter-spacing: 0.4em;
    color: var(--gold-deep);
    margin-bottom: 1rem;
    font-weight: 500;
    text-align: center;
}

.bn-title {
    font-family: var(--f-serif);
    font-weight: 600;
    font-size: clamp(1.9rem, 5vw, 2.6rem);
    color: var(--ink);
    letter-spacing: 0.08em;
    margin-bottom: 0.7rem;
    line-height: 1.4;
    text-align: center;
}

.bn-subtitle {
    font-family: var(--f-serif);
    font-size: 1rem;
    color: rgba(10, 22, 40, 0.7);
    line-height: 2;
    margin-bottom: 2.5rem;
    max-width: 640px;
    margin-left: auto;
    margin-right: auto;
    text-align: center;
}

.bn-subtitle strong {
    color: #b8442f;
    font-weight: 600;
}

/* 警告 */
.bn-warning {
    background: linear-gradient(135deg, #fff5ef, #fff);
    border: 2px solid rgba(196, 81, 59, 0.35);
    border-left: 4px solid #c4513b;
    border-radius: 8px;
    padding: 1.4rem 1.6rem;
    margin-bottom: 2.5rem;
    display: flex;
    gap: 1.2rem;
    align-items: flex-start;
    box-shadow: 0 8px 24px -12px rgba(196, 81, 59, 0.25);
}

.bn-warning-icon {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: linear-gradient(135deg, #e88064, #c4513b);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    font-size: 1.1rem;
    font-weight: 700;
    box-shadow: 0 4px 12px rgba(196, 81, 59, 0.35);
}

.bn-warning-text strong {
    display: block;
    font-family: var(--f-serif);
    font-weight: 600;
    font-size: 1rem;
    color: #b8442f;
    margin-bottom: 0.5rem;
    letter-spacing: 0.05em;
}

.bn-warning-text p {
    font-size: 0.88rem;
    color: var(--ink);
    line-height: 1.9;
    margin: 0;
}

.bn-warning-text strong + p strong {
    color: #b8442f;
    font-weight: 600;
}

/* セクション見出し */
.bn-section-eyebrow {
    font-family: var(--f-display);
    font-size: 0.72rem;
    letter-spacing: 0.4em;
    color: var(--gold-deep);
    margin-bottom: 0.5rem;
    font-weight: 500;
}

.bn-section-title {
    font-family: var(--f-serif);
    font-weight: 600;
    font-size: 1.4rem;
    color: var(--ink);
    letter-spacing: 0.06em;
    margin-bottom: 1.2rem;
    line-height: 1.4;
}

/* 文書カード（3つ） */
.bn-doc-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 0.8rem;
    margin-bottom: 2rem;
}

@media (min-width: 720px) {
    .bn-doc-grid {
        grid-template-columns: 1fr 1fr 1fr;
    }
}

.bn-doc-card {
    display: flex;
    flex-direction: column;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 8px;
    padding: 1.4rem 1.4rem 1.5rem;
    text-align: left;
    cursor: pointer;
    transition: all 0.3s var(--ease-luxe);
    position: relative;
    overflow: hidden;
    box-shadow: 0 4px 14px -6px rgba(10, 22, 40, 0.08);
}

.bn-doc-card:hover {
    transform: translateY(-3px);
    border-color: var(--gold);
    box-shadow: 0 14px 32px -12px rgba(10, 22, 40, 0.2);
}

.bn-doc-card-selected {
    background: linear-gradient(135deg, var(--ink), var(--ink-soft)) !important;
    color: var(--text-on-dark) !important;
    border-color: var(--gold) !important;
    box-shadow: 0 16px 35px -10px rgba(10, 22, 40, 0.4) !important;
}

.bn-doc-card-selected::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 3px;
    background: linear-gradient(90deg, transparent, var(--gold-bright), transparent);
}

.bn-doc-icon {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: rgba(201, 169, 97, 0.12);
    color: var(--gold-deep);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 10px;
    margin-bottom: 1rem;
    transition: all 0.3s var(--ease-luxe);
    flex-shrink: 0;
}

.bn-doc-card-selected .bn-doc-icon {
    background: var(--gold);
    color: var(--ink);
}

.bn-doc-icon svg {
    width: 100%; height: 100%;
}

.bn-doc-content {
    flex: 1;
    margin-bottom: 0.5rem;
}

.bn-doc-pillar {
    font-family: var(--f-display);
    font-size: 0.7rem;
    letter-spacing: 0.18em;
    color: var(--gold-deep);
    font-weight: 600;
    margin-bottom: 0.4rem;
    text-transform: uppercase;
}

.bn-doc-card-selected .bn-doc-pillar { color: var(--gold-bright); }

.bn-doc-name {
    font-family: var(--f-serif);
    font-weight: 600;
    font-size: 1.05rem;
    color: var(--ink);
    margin-bottom: 0.6rem;
    letter-spacing: 0.04em;
    line-height: 1.4;
}

.bn-doc-card-selected .bn-doc-name { color: var(--text-on-dark); }

.bn-doc-desc {
    font-size: 0.82rem;
    line-height: 1.7;
    color: rgba(10, 22, 40, 0.7);
    margin-bottom: 0.8rem;
}

.bn-doc-card-selected .bn-doc-desc { color: rgba(237, 228, 208, 0.85); }

.bn-doc-pages {
    font-family: var(--f-display);
    font-size: 0.7rem;
    letter-spacing: 0.08em;
    color: var(--gold-deep);
    font-weight: 500;
}

.bn-doc-card-selected .bn-doc-pages { color: var(--gold-bright); }

.bn-doc-check {
    position: absolute;
    top: 1rem;
    right: 1rem;
    width: 22px;
    height: 22px;
    border: 2px solid var(--line);
    border-radius: 50%;
    transition: all 0.3s var(--ease-luxe);
}

.bn-doc-card-selected .bn-doc-check {
    background: var(--gold);
    border-color: var(--gold);
}

.bn-doc-card-selected .bn-doc-check::after {
    content: '✓';
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--ink);
    font-size: 0.78rem;
    font-weight: 700;
}

/* フォーム */
.bn-form {
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 8px;
    padding: 2rem 1.8rem;
    margin-bottom: 1.5rem;
    box-shadow: 0 10px 28px -12px rgba(10, 22, 40, 0.12);
    animation: fade-up 0.5s var(--ease-luxe);
}

.bn-form-field {
    margin-bottom: 1.6rem;
}

.bn-form-field:last-child { margin-bottom: 0; }

.bn-form-label {
    display: block;
    font-family: var(--f-serif);
    font-weight: 600;
    font-size: 0.95rem;
    color: var(--ink);
    letter-spacing: 0.05em;
    margin-bottom: 0.8rem;
}

.bn-required {
    font-size: 0.65rem;
    padding: 0.15rem 0.5rem;
    background: rgba(184, 68, 47, 0.12);
    color: #b8442f;
    border-radius: 100px;
    border: 1px solid rgba(184, 68, 47, 0.3);
    font-weight: 500;
    letter-spacing: 0.05em;
    margin-left: 0.5rem;
    vertical-align: middle;
}

.bn-form-input {
    width: 100%;
    padding: 0.95rem 1.1rem;
    background: rgba(255, 255, 255, 0.7);
    border: 1.5px solid var(--line);
    border-radius: 4px;
    font-size: 0.95rem;
    font-family: var(--f-sans);
    color: var(--ink);
    transition: all 0.25s var(--ease-luxe);
}

.bn-form-input:focus {
    outline: none;
    border-color: var(--gold);
    box-shadow: 0 0 0 3px rgba(201, 169, 97, 0.12);
    background: #fff;
}

.bn-form-options {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
    gap: 0.5rem;
}

.bn-form-options-size {
    grid-template-columns: repeat(auto-fill, minmax(110px, 1fr));
}

.bn-form-option {
    padding: 0.8rem 0.9rem;
    background: rgba(255, 255, 255, 0.7);
    border: 1px solid var(--line);
    border-radius: 4px;
    color: var(--ink);
    font-size: 0.85rem;
    font-family: var(--f-sans);
    cursor: pointer;
    transition: all 0.25s var(--ease-luxe);
    text-align: center;
}

.bn-form-option:hover {
    background: #fff;
    border-color: var(--gold);
    transform: translateY(-1px);
}

.bn-form-option-selected {
    background: var(--ink) !important;
    color: var(--text-on-dark);
    border-color: var(--gold) !important;
    box-shadow: 0 4px 14px rgba(10, 22, 40, 0.25);
}

.bn-generate-button {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    background: linear-gradient(135deg, var(--gold-bright), var(--gold-deep));
    color: var(--ink);
    padding: 1.1rem 2.8rem;
    border-radius: 100px;
    font-weight: 600;
    font-size: 1rem;
    letter-spacing: 0.1em;
    box-shadow: 0 10px 28px rgba(201, 169, 97, 0.4);
    transition: all 0.3s var(--ease-luxe);
    cursor: pointer;
    margin-top: 1rem;
    width: 100%;
    justify-content: center;
}

.bn-generate-button:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 14px 35px rgba(201, 169, 97, 0.5);
}

.bn-generate-button:disabled {
    opacity: 0.35;
    cursor: not-allowed;
    background: var(--ink);
    color: rgba(237, 228, 208, 0.5);
    box-shadow: none;
}

.bn-arrow { transition: transform 0.3s var(--ease-luxe); }
.bn-generate-button:hover:not(:disabled) .bn-arrow { transform: translateX(4px); }

.bn-source {
    font-size: 0.8rem;
    color: rgba(10, 22, 40, 0.6);
    line-height: 1.85;
    letter-spacing: 0.04em;
    max-width: 600px;
    margin: 0 auto;
    text-align: center;
}

.bn-source strong {
    color: #b8442f;
    font-weight: 600;
}

/* ============ ローディング ============ */
.bn-loading {
    position: fixed;
    inset: 0;
    background: rgba(10, 22, 40, 0.6);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    animation: fade-up 0.3s var(--ease-luxe);
}

.bn-loading-inner {
    background: var(--ink);
    color: var(--text-on-dark);
    padding: 2.5rem 3rem;
    border-radius: 12px;
    border: 1px solid var(--gold);
    text-align: center;
    box-shadow: 0 30px 80px rgba(0, 0, 0, 0.5);
    max-width: 380px;
}

.bn-loading-visual {
    width: 80px;
    height: 80px;
    margin: 0 auto 1.5rem;
    position: relative;
}

.bn-loading-ring {
    position: absolute;
    inset: 0;
    border-radius: 50%;
    border: 2px solid var(--gold);
    opacity: 0;
    animation: bn-ring 2s ease-out infinite;
}

.bn-loading-ring-2 { animation-delay: 0.7s; }

@keyframes bn-ring {
    0% { opacity: 0.6; transform: scale(0.7); }
    100% { opacity: 0; transform: scale(1.3); }
}

.bn-loading-visual::after {
    content: '';
    position: absolute;
    inset: 20px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--gold-bright), var(--gold-deep));
    box-shadow: 0 0 30px rgba(201, 169, 97, 0.5);
    animation: bn-pulse 2s ease-in-out infinite;
}

@keyframes bn-pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.1); }
}

.bn-loading-text {
    font-family: var(--f-serif);
    font-size: 1.05rem;
    color: var(--text-on-dark);
    margin-bottom: 0.5rem;
    letter-spacing: 0.06em;
    font-weight: 600;
}

.bn-loading-sub {
    font-size: 0.82rem;
    color: rgba(237, 228, 208, 0.7);
    letter-spacing: 0.05em;
}

/* ============================================================
   結果画面 bunsho-result.php
   ============================================================ */

.br-main {
    max-width: 900px;
    margin: 0 auto;
    padding: 2rem 1.2rem 4rem;
}

.br-empty {
    max-width: 600px;
    margin: 4rem auto;
    padding: 3rem 2rem;
    text-align: center;
}

.br-empty h2 {
    font-family: var(--f-serif);
    color: var(--ink);
    margin-bottom: 1rem;
}

.br-empty p {
    color: rgba(10, 22, 40, 0.65);
    margin-bottom: 2rem;
    line-height: 1.9;
}

.br-empty-button {
    display: inline-block;
    background: var(--ink);
    color: var(--gold-bright);
    padding: 0.9rem 2rem;
    border-radius: 100px;
    border: 1px solid var(--gold);
    font-weight: 600;
    letter-spacing: 0.1em;
}

/* アクションバー */
.br-action-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.5rem;
    padding: 1rem 1.4rem;
    background: linear-gradient(135deg, var(--ink), var(--ink-soft));
    color: var(--text-on-dark);
    border-radius: 8px;
    margin-bottom: 1.5rem;
    border: 1px solid rgba(201, 169, 97, 0.3);
    box-shadow: 0 8px 22px -10px rgba(10, 22, 40, 0.3);
}

.br-action-label {
    font-family: var(--f-display);
    font-size: 0.7rem;
    letter-spacing: 0.25em;
    color: var(--gold-bright);
    font-weight: 600;
    margin-bottom: 0.3rem;
}

.br-action-meta {
    font-family: var(--f-serif);
    font-size: 0.85rem;
    color: rgba(237, 228, 208, 0.85);
    letter-spacing: 0.04em;
}

.br-action-sep {
    margin: 0 0.5rem;
    color: rgba(201, 169, 97, 0.5);
}

.br-action-buttons {
    display: flex;
    gap: 0.5rem;
    flex-shrink: 0;
}

.br-action-btn {
    padding: 0.55rem 1.1rem;
    border-radius: 100px;
    font-size: 0.8rem;
    font-family: var(--f-sans);
    cursor: pointer;
    transition: all 0.3s var(--ease-luxe);
    letter-spacing: 0.04em;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
}

.br-action-print {
    background: var(--gold);
    color: var(--ink);
    border: 1px solid var(--gold);
}

.br-action-print:hover {
    background: var(--gold-bright);
    transform: translateY(-1px);
}

.br-action-copy {
    background: transparent;
    color: var(--gold-bright);
    border: 1px solid var(--gold);
}

.br-action-copy:hover {
    background: var(--gold);
    color: var(--ink);
}

.br-action-back {
    background: transparent;
    color: rgba(237, 228, 208, 0.7);
    border: 1px solid rgba(201, 169, 97, 0.3);
}

.br-action-back:hover {
    color: var(--text-on-dark);
    border-color: var(--gold);
}

@media (max-width: 700px) {
    .br-action-bar {
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
    }
    .br-action-buttons { flex-wrap: wrap; }
    .br-action-btn { font-size: 0.78rem; padding: 0.5rem 0.9rem; }
}

/* ドラフト警告 */
.br-draft-warning {
    background: linear-gradient(135deg, #fff5ef, #fff);
    border: 1.5px solid rgba(196, 81, 59, 0.4);
    border-left: 4px solid #c4513b;
    border-radius: 6px;
    padding: 1.1rem 1.4rem;
    margin-bottom: 2rem;
    display: flex;
    gap: 1rem;
    align-items: flex-start;
}

.br-draft-warning-icon {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: linear-gradient(135deg, #e88064, #c4513b);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    font-size: 0.9rem;
    font-weight: 700;
}

.br-draft-warning-text strong {
    display: block;
    font-family: var(--f-serif);
    font-weight: 600;
    font-size: 0.92rem;
    color: #b8442f;
    margin-bottom: 0.3rem;
    letter-spacing: 0.04em;
}

.br-draft-warning-text p {
    font-size: 0.82rem;
    color: var(--ink);
    line-height: 1.85;
    margin: 0;
}

/* 文書本体 */
.br-document {
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 8px;
    padding: 3.5rem 3rem 3rem;
    position: relative;
    overflow: hidden;
    box-shadow: 0 16px 50px -16px rgba(10, 22, 40, 0.2);
    margin-bottom: 2.5rem;
    font-family: var(--f-serif);
}

/* DRAFT透かし */
.br-watermark {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) rotate(-30deg);
    font-family: var(--f-display);
    font-size: 10rem;
    font-weight: 600;
    color: rgba(196, 81, 59, 0.06);
    letter-spacing: 0.15em;
    pointer-events: none;
    user-select: none;
    z-index: 0;
}

.br-doc-header,
.br-doc-preamble,
.br-doc-sections,
.br-doc-supplementary,
.br-doc-footer {
    position: relative;
    z-index: 1;
}

.br-doc-header {
    text-align: center;
    margin-bottom: 2rem;
    padding-bottom: 1.8rem;
    border-bottom: 2px solid var(--ink);
}

.br-doc-title {
    font-family: var(--f-serif);
    font-weight: 600;
    font-size: 1.7rem;
    color: var(--ink);
    letter-spacing: 0.12em;
    line-height: 1.5;
    margin-bottom: 0.7rem;
}

.br-doc-subtitle {
    font-family: var(--f-display);
    font-size: 0.78rem;
    letter-spacing: 0.25em;
    color: #b8442f;
    font-weight: 500;
}

.br-doc-preamble {
    font-family: var(--f-serif);
    font-size: 0.95rem;
    color: var(--ink);
    line-height: 2.1;
    margin-bottom: 2rem;
    padding: 1.2rem 1.5rem;
    background: rgba(201, 169, 97, 0.06);
    border-left: 3px solid var(--gold);
    border-radius: 0 4px 4px 0;
    letter-spacing: 0.04em;
}

.br-doc-section {
    margin-bottom: 1.6rem;
    page-break-inside: avoid;
}

.br-doc-section-heading {
    font-family: var(--f-serif);
    font-weight: 600;
    font-size: 1.05rem;
    color: var(--ink);
    letter-spacing: 0.08em;
    margin-bottom: 0.7rem;
    padding-bottom: 0.4rem;
    border-bottom: 1px solid rgba(201, 169, 97, 0.4);
}

.br-doc-section-body {
    font-family: var(--f-serif);
    font-size: 0.94rem;
    color: var(--ink);
    line-height: 2.05;
    letter-spacing: 0.03em;
    padding-left: 0.5rem;
}

.br-doc-supplementary {
    margin-top: 2rem;
    padding: 1.3rem 1.5rem;
    background: rgba(255, 255, 255, 0.7);
    border: 1px dashed var(--line);
    border-radius: 4px;
}

.br-doc-supplementary-label {
    font-family: var(--f-serif);
    font-weight: 600;
    font-size: 0.95rem;
    color: var(--gold-deep);
    margin-bottom: 0.5rem;
    letter-spacing: 0.06em;
}

.br-doc-supplementary-text {
    font-family: var(--f-serif);
    font-size: 0.9rem;
    color: var(--ink);
    line-height: 1.9;
}

.br-doc-footer {
    margin-top: 2.5rem;
    padding-top: 1.5rem;
}

.br-doc-footer-line {
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--gold) 30%, var(--gold) 70%, transparent);
    opacity: 0.4;
    margin-bottom: 1.2rem;
}

.br-doc-footer-text {
    text-align: center;
}

.br-doc-footer-meta {
    font-family: var(--f-display);
    font-size: 0.88rem;
    color: var(--gold-deep);
    letter-spacing: 0.08em;
    margin-bottom: 0.5rem;
}

.br-doc-footer-source {
    font-size: 0.75rem;
    color: rgba(10, 22, 40, 0.55);
    margin-bottom: 0.3rem;
    letter-spacing: 0.04em;
}

.br-doc-footer-warning {
    font-size: 0.72rem;
    color: #b8442f;
    letter-spacing: 0.04em;
    font-weight: 500;
}

@media (max-width: 600px) {
    .br-document { padding: 2rem 1.4rem 1.8rem; }
    .br-doc-title { font-size: 1.3rem; }
    .br-watermark { font-size: 5rem; }
}

/* 専門家チェックリスト */
.br-checklist-section {
    background: linear-gradient(135deg, #fbf8f2, #f4ecd9);
    border: 1px solid var(--line);
    border-left: 4px solid var(--gold);
    border-radius: 0 8px 8px 0;
    padding: 2rem 2rem;
    margin-bottom: 2rem;
}

.br-checklist-header {
    margin-bottom: 1.5rem;
}

.br-checklist-eyebrow {
    font-family: var(--f-display);
    font-size: 0.7rem;
    letter-spacing: 0.35em;
    color: var(--gold-deep);
    margin-bottom: 0.5rem;
    font-weight: 500;
}

.br-checklist-title {
    font-family: var(--f-serif);
    font-weight: 600;
    font-size: 1.3rem;
    color: var(--ink);
    letter-spacing: 0.06em;
    margin-bottom: 0.4rem;
}

.br-checklist-desc {
    font-size: 0.86rem;
    color: rgba(10, 22, 40, 0.65);
    line-height: 1.7;
    margin: 0;
}

.br-checklist {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 0.7rem;
}

.br-checklist-item {
    display: flex;
    align-items: flex-start;
    gap: 0.9rem;
    padding: 0.95rem 1.2rem;
    background: rgba(255, 255, 255, 0.85);
    border: 1px solid var(--line);
    border-radius: 4px;
    transition: all 0.3s var(--ease-luxe);
}

.br-checklist-item:hover {
    background: #fff;
    transform: translateX(3px);
    border-color: var(--gold);
}

.br-checklist-num {
    font-family: var(--f-display);
    font-size: 0.95rem;
    color: var(--gold-deep);
    font-weight: 600;
    letter-spacing: 0.04em;
    flex-shrink: 0;
    width: 30px;
    padding-top: 1px;
}

.br-checklist-text {
    flex: 1;
    font-size: 0.9rem;
    color: var(--ink);
    line-height: 1.85;
    letter-spacing: 0.02em;
}

/* 注意書き */
.br-disclaimer {
    background: rgba(255, 255, 255, 0.5);
    border-left: 3px solid var(--gold);
    padding: 1.3rem 1.5rem;
    border-radius: 0 4px 4px 0;
}

.br-disclaimer p {
    font-size: 0.8rem;
    color: rgba(10, 22, 40, 0.7);
    line-height: 1.9;
    margin: 0;
}

.br-disclaimer strong {
    color: var(--ink);
    font-family: var(--f-serif);
    font-size: 0.88rem;
    font-weight: 600;
    display: block;
    margin-bottom: 0.3rem;
}

/* ============ 印刷時 ============ */
@media print {
    @page {
        size: A4 portrait;
        margin: 14mm 16mm;
    }

    * {
        background: transparent !important;
        box-shadow: none !important;
        text-shadow: none !important;
        animation: none !important;
        transition: none !important;
    }

    html, body {
        background: #fff !important;
        color: #000 !important;
        font-size: 10pt !important;
    }

    .site-header,
    .breadcrumb-bar,
    .site-footer,
    .bg-pattern,
    .br-action-bar,
    .br-empty,
    .br-loading {
        display: none !important;
    }

    .br-main { padding: 0 !important; max-width: 100% !important; }

    /* ドラフト警告は印刷時も表示（重要） */
    .br-draft-warning {
        background: #fff5ef !important;
        border: 1pt solid #c4513b !important;
        border-left: 3pt solid #c4513b !important;
        padding: 3mm 4mm !important;
        margin-bottom: 5mm !important;
        page-break-inside: avoid;
    }

    .br-draft-warning-icon {
        background: #c4513b !important;
        color: #fff !important;
        width: 18px !important;
        height: 18px !important;
        font-size: 0.7rem !important;
    }

    .br-draft-warning-text strong { color: #b8442f !important; font-size: 9pt !important; }
    .br-draft-warning-text p { color: #000 !important; font-size: 8.5pt !important; }

    /* 文書本体 */
    .br-document {
        background: #fff !important;
        border: none !important;
        padding: 0 !important;
        margin: 0 !important;
        box-shadow: none !important;
        page-break-inside: auto;
    }

    /* DRAFT透かしを印刷でも表示 */
    .br-watermark {
        display: block !important;
        color: rgba(196, 81, 59, 0.08) !important;
        font-size: 8rem !important;
    }

    .br-doc-header {
        page-break-after: avoid;
        margin-bottom: 6mm !important;
        padding-bottom: 4mm !important;
        border-bottom: 1pt solid #0a1628 !important;
    }

    .br-doc-title { font-size: 16pt !important; color: #0a1628 !important; }
    .br-doc-subtitle { color: #b8442f !important; font-size: 8pt !important; }

    .br-doc-preamble {
        font-size: 9.5pt !important;
        line-height: 1.85 !important;
        padding: 3mm 4mm !important;
        background: #fbf8f2 !important;
        border-left: 2pt solid #a8893f !important;
        margin-bottom: 5mm !important;
    }

    .br-doc-section {
        page-break-inside: avoid;
        margin-bottom: 4mm !important;
    }

    .br-doc-section-heading {
        font-size: 11pt !important;
        color: #0a1628 !important;
        border-bottom: 0.5pt solid #a8893f !important;
        padding-bottom: 1.5mm !important;
        margin-bottom: 2mm !important;
    }

    .br-doc-section-body {
        font-size: 9.5pt !important;
        line-height: 1.85 !important;
        color: #0a1628 !important;
    }

    .br-doc-supplementary {
        background: #fff !important;
        border: 0.5pt dashed #ccc !important;
        padding: 3mm 4mm !important;
        margin-top: 5mm !important;
        page-break-inside: avoid;
    }

    .br-doc-supplementary-label { color: #a8893f !important; font-size: 9pt !important; }
    .br-doc-supplementary-text { font-size: 8.5pt !important; color: #0a1628 !important; }

    .br-doc-footer { margin-top: 6mm !important; padding-top: 3mm !important; page-break-inside: avoid; }
    .br-doc-footer-line { background: #a8893f !important; height: 0.5pt !important; opacity: 0.4 !important; }
    .br-doc-footer-meta { color: #a8893f !important; font-size: 8pt !important; }
    .br-doc-footer-source { color: #666 !important; font-size: 7pt !important; }
    .br-doc-footer-warning { color: #b8442f !important; font-size: 7pt !important; }

    /* チェックリストは新ページ */
    .br-checklist-section {
        page-break-before: always;
        background: #fff !important;
        border: 0.5pt solid #a8893f !important;
        border-left: 2pt solid #a8893f !important;
        padding: 6mm 8mm !important;
        margin: 0 !important;
    }

    .br-checklist-eyebrow { color: #a8893f !important; font-size: 7pt !important; }
    .br-checklist-title { color: #0a1628 !important; font-size: 12pt !important; }
    .br-checklist-desc { color: #666 !important; font-size: 8.5pt !important; }

    .br-checklist { gap: 2mm !important; }
    .br-checklist-item {
        background: #fff !important;
        border: 0.5pt solid #ccc !important;
        padding: 2mm 3mm !important;
        page-break-inside: avoid;
    }

    .br-checklist-num { color: #a8893f !important; font-size: 9pt !important; width: 18px !important; }
    .br-checklist-text { color: #0a1628 !important; font-size: 8.5pt !important; line-height: 1.6 !important; }

    .br-disclaimer { display: none !important; }
}

/* レスポンシブ */
@media (max-width: 600px) {
    .bunsho, .br-main { padding: 1.8rem 0.9rem 3rem; }
    .bn-warning { padding: 1.1rem 1.2rem; gap: 0.8rem; }
    .bn-warning-text strong { font-size: 0.92rem; }
    .bn-warning-text p { font-size: 0.82rem; }
    .bn-doc-card { padding: 1.2rem 1.2rem; }
    .bn-form { padding: 1.5rem 1.2rem; }
    .bn-form-options { grid-template-columns: repeat(2, 1fr); }
}

/* ============================================================
   TODO エラー表示（インライン）
   ============================================================ */
.td-inline-error {
    background: linear-gradient(135deg, #fff5ef, #fff);
    border: 1.5px solid rgba(196, 81, 59, 0.4);
    border-left: 4px solid #c4513b;
    border-radius: 6px;
    padding: 1.2rem 1.4rem;
    margin: 1.5rem 0;
    display: flex;
    gap: 1rem;
    align-items: flex-start;
    box-shadow: 0 8px 22px -10px rgba(196, 81, 59, 0.3);
    animation: fade-up 0.4s var(--ease-luxe);
}

.td-inline-error-icon {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: linear-gradient(135deg, #e88064, #c4513b);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    font-size: 1rem;
    font-weight: 700;
}

.td-inline-error-text {
    flex: 1;
}

.td-inline-error-text strong {
    display: block;
    font-family: var(--f-serif);
    font-weight: 600;
    font-size: 0.98rem;
    color: #b8442f;
    margin-bottom: 0.4rem;
    letter-spacing: 0.04em;
}

.td-inline-error-text p {
    font-size: 0.85rem;
    color: var(--ink);
    line-height: 1.85;
    margin: 0;
}

.td-inline-error-close {
    background: transparent;
    border: none;
    color: rgba(184, 68, 47, 0.6);
    font-size: 1.4rem;
    cursor: pointer;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.25s var(--ease-luxe);
    flex-shrink: 0;
    padding: 0;
}

.td-inline-error-close:hover {
    background: rgba(184, 68, 47, 0.1);
    color: #b8442f;
}

/* ============================================================
   Phase 5: AIコンシェルジュ
   concierge.php
   ============================================================ */

.page-concierge {
    background: var(--ivory);
}

.concierge {
    max-width: 880px;
    margin: 0 auto;
    padding: 2.5rem 1.2rem 4rem;
}

.cn-step { animation: fade-up 0.6s var(--ease-luxe); }

/* ============ STEP 1: 入力画面 ============ */
.cn-intro { text-align: center; }

.cn-eyebrow {
    font-family: var(--f-display);
    font-size: 0.75rem;
    letter-spacing: 0.4em;
    color: var(--gold-deep);
    margin-bottom: 1rem;
    font-weight: 500;
}

.cn-title {
    font-family: var(--f-serif);
    font-weight: 600;
    font-size: clamp(1.9rem, 5vw, 2.6rem);
    color: var(--ink);
    letter-spacing: 0.08em;
    margin-bottom: 0.7rem;
    line-height: 1.4;
}

.cn-subtitle {
    font-family: var(--f-serif);
    font-size: 1rem;
    color: rgba(10, 22, 40, 0.7);
    line-height: 2;
    margin-bottom: 2.5rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

/* 入力エリア */
.cn-input-area {
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 10px;
    padding: 1.5rem 1.5rem 1rem;
    margin-bottom: 2rem;
    box-shadow: 0 12px 32px -14px rgba(10, 22, 40, 0.15);
    text-align: left;
}

.cn-input-box {
    position: relative;
}

.cn-textarea {
    width: 100%;
    padding: 1rem 1.2rem;
    background: rgba(251, 248, 242, 0.4);
    border: 1.5px solid var(--line);
    border-radius: 6px;
    font-size: 1rem;
    line-height: 1.85;
    font-family: var(--f-sans);
    color: var(--ink);
    transition: all 0.25s var(--ease-luxe);
    resize: vertical;
    min-height: 80px;
    max-height: 300px;
}

.cn-textarea:focus {
    outline: none;
    border-color: var(--gold);
    box-shadow: 0 0 0 3px rgba(201, 169, 97, 0.12);
    background: #fff;
}

.cn-input-actions {
    display: flex;
    gap: 0.6rem;
    margin-top: 0.8rem;
    flex-wrap: wrap;
}

.cn-mic-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.3rem;
    background: rgba(255, 255, 255, 0.7);
    border: 1.5px solid var(--line);
    border-radius: 100px;
    color: var(--ink);
    font-size: 0.88rem;
    font-family: var(--f-sans);
    cursor: pointer;
    transition: all 0.3s var(--ease-luxe);
}

.cn-mic-btn:hover {
    background: var(--ink);
    color: var(--gold-bright);
    border-color: var(--gold);
}

.cn-mic-btn svg {
    width: 18px;
    height: 18px;
}

.cn-mic-recording {
    background: linear-gradient(135deg, #e88064, #c4513b) !important;
    color: #fff !important;
    border-color: #c4513b !important;
    animation: cn-mic-pulse 1.5s ease-in-out infinite;
}

@keyframes cn-mic-pulse {
    0%, 100% { box-shadow: 0 0 0 0 rgba(196, 81, 59, 0.4); }
    50% { box-shadow: 0 0 0 10px rgba(196, 81, 59, 0); }
}

.cn-send-btn {
    flex: 1;
    min-width: 160px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.85rem 1.5rem;
    background: linear-gradient(135deg, var(--gold-bright), var(--gold-deep));
    color: var(--ink);
    border-radius: 100px;
    font-weight: 600;
    font-size: 0.95rem;
    letter-spacing: 0.08em;
    cursor: pointer;
    transition: all 0.3s var(--ease-luxe);
    box-shadow: 0 8px 22px rgba(201, 169, 97, 0.4);
}

.cn-send-btn:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 12px 28px rgba(201, 169, 97, 0.5);
}

.cn-send-btn:disabled {
    opacity: 0.35;
    cursor: not-allowed;
    background: var(--ink);
    color: rgba(237, 228, 208, 0.5);
    box-shadow: none;
}

.cn-arrow { transition: transform 0.3s var(--ease-luxe); }
.cn-send-btn:hover:not(:disabled) .cn-arrow { transform: translateX(4px); }

.cn-counter {
    text-align: right;
    font-size: 0.75rem;
    color: rgba(10, 22, 40, 0.5);
    margin-top: 0.5rem;
    font-family: var(--f-display);
    letter-spacing: 0.04em;
}

/* 録音インジケータ */
.cn-recording {
    background: #fff;
    border: 1.5px solid var(--gold);
    border-radius: 100px;
    padding: 0.6rem 0.7rem;
    margin: 1rem 0 0;
    display: flex;
    align-items: center;
    gap: 0.7rem;
    box-shadow: 0 8px 24px -10px rgba(10, 22, 40, 0.2);
    animation: fade-up 0.3s var(--ease-luxe);
}

/* キャンセル（×）ボタン */
.cn-rec-cancel {
    flex-shrink: 0;
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: #f1ebde;
    color: var(--ink);
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.25s var(--ease-luxe);
}

.cn-rec-cancel:hover {
    background: var(--ink);
    color: #fff;
}

.cn-rec-cancel svg {
    width: 18px;
    height: 18px;
}

/* 波形Canvas */
.cn-waveform {
    flex: 1;
    height: 38px;
    min-width: 0;
    display: block;
}

/* タイマー表示 */
.cn-rec-timer {
    flex-shrink: 0;
    font-family: var(--f-display);
    font-size: 0.95rem;
    color: var(--ink);
    font-weight: 600;
    letter-spacing: 0.04em;
    padding: 0 0.5rem;
    min-width: 42px;
    text-align: center;
}

/* 確定（✓）ボタン */
.cn-rec-confirm {
    flex-shrink: 0;
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--gold-bright), var(--gold-deep));
    color: var(--ink);
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.25s var(--ease-luxe);
    box-shadow: 0 4px 14px rgba(201, 169, 97, 0.4);
}

.cn-rec-confirm:hover {
    transform: scale(1.05);
    box-shadow: 0 6px 18px rgba(201, 169, 97, 0.55);
}

.cn-rec-confirm svg {
    width: 20px;
    height: 20px;
}

@media (max-width: 560px) {
    .cn-recording {
        padding: 0.5rem 0.6rem;
        gap: 0.5rem;
    }
    .cn-rec-cancel, .cn-rec-confirm {
        width: 36px;
        height: 36px;
    }
    .cn-rec-timer {
        font-size: 0.85rem;
        min-width: 36px;
        padding: 0 0.3rem;
    }
}

@media (max-width: 560px) {
    .cn-input-actions { flex-direction: column; }
    .cn-mic-btn { justify-content: center; }
}

/* よくある悩み */
.cn-common {
    margin-bottom: 2rem;
}

.cn-common-label {
    font-family: var(--f-display);
    font-size: 0.75rem;
    letter-spacing: 0.3em;
    color: var(--gold-deep);
    margin-bottom: 1.2rem;
    font-weight: 500;
}

.cn-common-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 0.6rem;
}

.cn-common-btn {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    padding: 0.95rem 1.1rem;
    background: rgba(255, 255, 255, 0.7);
    border: 1px solid var(--line);
    border-radius: 6px;
    color: var(--ink);
    font-size: 0.88rem;
    font-family: var(--f-sans);
    cursor: pointer;
    transition: all 0.25s var(--ease-luxe);
    text-align: left;
    line-height: 1.5;
}

.cn-common-btn:hover {
    background: #fff;
    border-color: var(--gold);
    transform: translateY(-2px);
    box-shadow: 0 6px 16px -6px rgba(10, 22, 40, 0.15);
}

.cn-common-icon {
    font-size: 1.3rem;
    flex-shrink: 0;
}

.cn-common-text {
    flex: 1;
}

/* 注意書き */
.cn-notice {
    background: rgba(255, 255, 255, 0.5);
    border-left: 3px solid var(--gold);
    padding: 1.1rem 1.4rem;
    border-radius: 0 4px 4px 0;
    text-align: left;
}

.cn-notice p {
    font-size: 0.8rem;
    color: rgba(10, 22, 40, 0.7);
    line-height: 1.85;
    margin: 0;
}

.cn-notice strong {
    color: #b8442f;
    font-weight: 600;
}

/* ============ STEP 2: 結果画面 ============ */

.cn-user-message {
    background: linear-gradient(135deg, #fbf8f2, #f4ecd9);
    border-left: 3px solid var(--gold);
    padding: 1.3rem 1.5rem;
    border-radius: 0 6px 6px 0;
    margin-bottom: 1.5rem;
}

.cn-user-label {
    font-family: var(--f-display);
    font-size: 0.7rem;
    letter-spacing: 0.3em;
    color: var(--gold-deep);
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.cn-user-text {
    font-family: var(--f-serif);
    font-size: 0.95rem;
    color: var(--ink);
    line-height: 1.9;
    letter-spacing: 0.03em;
}

.cn-ai-understanding {
    background: linear-gradient(135deg, var(--ink), var(--ink-soft));
    color: var(--text-on-dark);
    padding: 1.5rem 1.7rem;
    border-radius: 8px;
    margin-bottom: 2rem;
    display: flex;
    gap: 1.2rem;
    align-items: flex-start;
    border: 1px solid rgba(201, 169, 97, 0.3);
    box-shadow: 0 12px 30px -12px rgba(10, 22, 40, 0.35);
    position: relative;
    overflow: hidden;
}

.cn-ai-understanding::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--gold-bright), transparent);
}

.cn-ai-icon {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--gold-bright), var(--gold-deep));
    color: var(--ink);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 9px;
    flex-shrink: 0;
}

.cn-ai-icon svg { width: 100%; height: 100%; }

.cn-ai-text {
    flex: 1;
    font-family: var(--f-serif);
    font-size: 1rem;
    color: var(--text-on-dark);
    line-height: 2;
    letter-spacing: 0.03em;
}

/* 緊急時警告 */
.cn-emergency {
    background: linear-gradient(135deg, #fff5ef, #fff);
    border: 2px solid #c4513b;
    border-left: 4px solid #c4513b;
    border-radius: 8px;
    padding: 1.4rem 1.6rem;
    margin-bottom: 2rem;
    display: flex;
    gap: 1.2rem;
    align-items: flex-start;
    box-shadow: 0 12px 30px -12px rgba(196, 81, 59, 0.3);
}

.cn-emergency-icon {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: linear-gradient(135deg, #e88064, #c4513b);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    font-size: 1.3rem;
    font-weight: 700;
}

.cn-emergency-text {
    flex: 1;
}

.cn-emergency-text strong {
    display: block;
    font-family: var(--f-serif);
    font-size: 1.05rem;
    color: #b8442f;
    margin-bottom: 0.5rem;
    letter-spacing: 0.05em;
}

.cn-emergency-text p {
    font-size: 0.9rem;
    color: var(--ink);
    line-height: 1.9;
    margin: 0 0 1rem;
}

.cn-emergency-contacts {
    display: flex;
    gap: 0.6rem;
    flex-wrap: wrap;
}

.cn-emergency-link {
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
    padding: 0.7rem 1.1rem;
    background: #fff;
    border: 1.5px solid #c4513b;
    border-radius: 6px;
    text-decoration: none;
    transition: all 0.25s var(--ease-luxe);
    flex: 1;
    min-width: 150px;
}

.cn-emergency-link:hover {
    background: #c4513b;
    color: #fff;
}

.cn-emergency-link span {
    font-size: 0.78rem;
    color: var(--ink);
    transition: color 0.25s var(--ease-luxe);
}

.cn-emergency-link:hover span {
    color: #fff;
}

.cn-emergency-num {
    font-family: var(--f-display) !important;
    font-size: 1.05rem !important;
    color: #c4513b !important;
    font-weight: 600 !important;
    letter-spacing: 0.05em !important;
}

.cn-emergency-link:hover .cn-emergency-num {
    color: #fff !important;
}

/* 範囲外 */
.cn-out-of-scope {
    background: linear-gradient(135deg, #fdf6ec, #fff);
    border: 1.5px solid rgba(212, 175, 127, 0.5);
    border-left: 4px solid #b67849;
    border-radius: 8px;
    padding: 1.4rem 1.6rem;
    margin-bottom: 2rem;
    display: flex;
    gap: 1.2rem;
    align-items: flex-start;
}

.cn-out-icon {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: rgba(212, 175, 127, 0.25);
    color: #b67849;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    font-family: var(--f-display);
    font-size: 1.1rem;
    font-weight: 700;
    border: 1.5px solid rgba(212, 175, 127, 0.5);
}

.cn-out-text strong {
    display: block;
    font-family: var(--f-serif);
    font-size: 1rem;
    color: var(--ink);
    margin-bottom: 0.5rem;
    letter-spacing: 0.04em;
}

.cn-out-text p {
    font-size: 0.88rem;
    color: rgba(10, 22, 40, 0.8);
    line-height: 1.85;
    margin: 0 0 0.5rem;
}

.cn-out-suggest {
    padding-top: 0.6rem;
    border-top: 1px dashed rgba(212, 175, 127, 0.5);
    font-size: 0.82rem !important;
    color: rgba(10, 22, 40, 0.65) !important;
}

/* おすすめサービス */
.cn-suggestions {
    margin-bottom: 2rem;
}

.cn-suggestions-eyebrow {
    font-family: var(--f-display);
    font-size: 0.7rem;
    letter-spacing: 0.4em;
    color: var(--gold-deep);
    margin-bottom: 0.5rem;
    font-weight: 500;
}

.cn-suggestions-title {
    font-family: var(--f-serif);
    font-weight: 600;
    font-size: 1.4rem;
    color: var(--ink);
    letter-spacing: 0.06em;
    margin-bottom: 1.3rem;
}

.cn-suggestions-list {
    display: flex;
    flex-direction: column;
    gap: 0.9rem;
}

.cn-suggest-card {
    display: flex;
    align-items: center;
    gap: 1.2rem;
    padding: 1.3rem 1.5rem;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 8px;
    color: var(--ink);
    text-decoration: none;
    transition: all 0.4s var(--ease-luxe);
    box-shadow: 0 6px 18px -10px rgba(10, 22, 40, 0.12);
    position: relative;
    overflow: hidden;
}

.cn-suggest-card::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 4px;
    background: linear-gradient(180deg, var(--gold-bright), var(--gold-deep));
    transform: scaleY(0.4);
    transform-origin: center;
    transition: transform 0.3s var(--ease-luxe);
}

.cn-suggest-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 16px 36px -12px rgba(10, 22, 40, 0.2);
    border-color: var(--gold);
}

.cn-suggest-card:hover::before {
    transform: scaleY(1);
}

.cn-suggest-rank {
    font-family: var(--f-display);
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--gold-deep);
    letter-spacing: 0.04em;
    flex-shrink: 0;
}

.cn-suggest-icon {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: rgba(201, 169, 97, 0.12);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    flex-shrink: 0;
}

.cn-suggest-content {
    flex: 1;
    min-width: 0;
}

.cn-suggest-name {
    font-family: var(--f-serif);
    font-weight: 600;
    font-size: 1.05rem;
    color: var(--ink);
    margin-bottom: 0.3rem;
    letter-spacing: 0.05em;
}

.cn-suggest-reason {
    font-size: 0.88rem;
    color: var(--ink);
    line-height: 1.7;
    margin-bottom: 0.3rem;
}

.cn-suggest-desc {
    font-size: 0.78rem;
    color: rgba(10, 22, 40, 0.55);
    letter-spacing: 0.02em;
}

.cn-suggest-arrow {
    font-size: 1.3rem;
    color: var(--gold-deep);
    transition: transform 0.3s var(--ease-luxe);
    flex-shrink: 0;
}

.cn-suggest-card:hover .cn-suggest-arrow {
    transform: translateX(5px);
    color: var(--gold);
}

@media (max-width: 600px) {
    .cn-suggest-card { padding: 1.1rem 1.2rem; gap: 0.9rem; }
    .cn-suggest-rank { font-size: 1.2rem; }
    .cn-suggest-icon { width: 38px; height: 38px; font-size: 1.2rem; }
    .cn-suggest-name { font-size: 0.95rem; }
    .cn-suggest-reason { font-size: 0.82rem; }
}

.cn-no-suggest {
    padding: 1.5rem;
    text-align: center;
    background: rgba(255, 255, 255, 0.5);
    border: 1px dashed var(--line);
    border-radius: 6px;
    color: rgba(10, 22, 40, 0.6);
    font-size: 0.9rem;
    line-height: 1.8;
}

/* アクション */
.cn-result-actions {
    text-align: center;
    margin-bottom: 2rem;
}

.cn-retry-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.85rem 1.8rem;
    background: transparent;
    color: var(--ink);
    border: 1px solid var(--line);
    border-radius: 100px;
    cursor: pointer;
    font-size: 0.9rem;
    transition: all 0.3s var(--ease-luxe);
    font-family: var(--f-sans);
    letter-spacing: 0.06em;
}

.cn-retry-btn:hover {
    background: var(--ink);
    color: var(--gold-bright);
    border-color: var(--gold);
}

/* 注意書き */
.cn-disclaimer {
    background: rgba(255, 255, 255, 0.5);
    border-left: 3px solid var(--gold);
    padding: 1.3rem 1.5rem;
    border-radius: 0 4px 4px 0;
}

.cn-disclaimer p {
    font-size: 0.8rem;
    color: rgba(10, 22, 40, 0.7);
    line-height: 1.85;
    margin: 0;
}

.cn-disclaimer strong {
    color: var(--ink);
    font-family: var(--f-serif);
    font-size: 0.88rem;
    font-weight: 600;
    display: block;
    margin-bottom: 0.3rem;
}

/* ============ ローディング ============ */
.cn-loading {
    position: fixed;
    inset: 0;
    background: rgba(10, 22, 40, 0.6);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    animation: fade-up 0.3s var(--ease-luxe);
}

.cn-loading-inner {
    background: var(--ink);
    color: var(--text-on-dark);
    padding: 2.5rem 3rem;
    border-radius: 12px;
    border: 1px solid var(--gold);
    text-align: center;
    box-shadow: 0 30px 80px rgba(0, 0, 0, 0.5);
    max-width: 380px;
}

.cn-loading-visual {
    width: 80px;
    height: 80px;
    margin: 0 auto 1.5rem;
    position: relative;
}

.cn-loading-ring {
    position: absolute;
    inset: 0;
    border-radius: 50%;
    border: 2px solid var(--gold);
    opacity: 0;
    animation: cn-ring 2s ease-out infinite;
}

.cn-loading-ring-2 { animation-delay: 0.7s; }

@keyframes cn-ring {
    0% { opacity: 0.6; transform: scale(0.7); }
    100% { opacity: 0; transform: scale(1.3); }
}

.cn-loading-visual::after {
    content: '';
    position: absolute;
    inset: 20px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--gold-bright), var(--gold-deep));
    box-shadow: 0 0 30px rgba(201, 169, 97, 0.5);
    animation: cn-pulse 2s ease-in-out infinite;
}

@keyframes cn-pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.1); }
}

.cn-loading-text {
    font-family: var(--f-serif);
    font-size: 1.05rem;
    color: var(--text-on-dark);
    margin-bottom: 0.5rem;
    letter-spacing: 0.06em;
    font-weight: 600;
}

.cn-loading-sub {
    font-size: 0.82rem;
    color: rgba(237, 228, 208, 0.7);
    letter-spacing: 0.05em;
}

@media (max-width: 600px) {
    .concierge { padding: 1.8rem 0.9rem 3rem; }
    .cn-input-area { padding: 1.2rem 1.2rem 0.9rem; }
    .cn-textarea { font-size: 0.95rem; }
    .cn-common-grid { grid-template-columns: 1fr; }
    .cn-ai-understanding { padding: 1.2rem 1.3rem; gap: 0.9rem; }
    .cn-ai-text { font-size: 0.92rem; }
    .cn-emergency-contacts { flex-direction: column; }
}

/* 超ワイド画面で5列に並べた時、カードを少しコンパクトに */
@media (min-width: 1280px) {
    .hero-ai-grid .hero-ai-inner { padding: 1.6rem 1.4rem 1.4rem; }
    .hero-ai-grid .hero-ai-title { font-size: 1.25rem; }
    .hero-ai-grid .hero-ai-desc { font-size: 0.82rem; line-height: 1.85; }
    .hero-ai-grid .hero-ai-meta { padding: 0.45rem 0.8rem; }
    .hero-ai-grid .hero-ai-meta-item { font-size: 0.7rem; }
    .hero-ai-grid .hero-ai-button { padding: 0.75rem 1.4rem; font-size: 0.82rem; }
}

/* ============================================================
   Phase 6: AIマニュアル（本格装丁）
   prefix: .mn-
   ============================================================ */

/* モード切替タブ */
.bn-mode-tabs {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.6rem;
    margin-bottom: 1.8rem;
}

.bn-mode-tab {
    background: rgba(255, 255, 255, 0.7);
    border: 1.5px solid var(--line);
    border-radius: 8px;
    padding: 1.1rem 1.3rem;
    cursor: pointer;
    transition: all 0.3s var(--ease-luxe);
    text-align: left;
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
    font-family: var(--f-sans);
}

.bn-mode-tab:hover {
    background: #fff;
    border-color: var(--gold);
    transform: translateY(-1px);
}

.bn-mode-active {
    background: linear-gradient(135deg, var(--ink), var(--ink-soft)) !important;
    border-color: var(--gold) !important;
    color: var(--text-on-dark) !important;
    box-shadow: 0 8px 22px -10px rgba(10, 22, 40, 0.4);
}

.bn-mode-eyebrow {
    font-family: var(--f-display);
    font-size: 0.7rem;
    letter-spacing: 0.3em;
    color: var(--gold-deep);
    font-weight: 600;
}

.bn-mode-active .bn-mode-eyebrow {
    color: var(--gold-bright);
}

.bn-mode-name {
    font-family: var(--f-serif);
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--ink);
    letter-spacing: 0.06em;
    margin: 0.15rem 0;
}

.bn-mode-active .bn-mode-name {
    color: var(--text-on-dark);
}

.bn-mode-desc {
    font-size: 0.78rem;
    color: rgba(10, 22, 40, 0.6);
    letter-spacing: 0.03em;
}

.bn-mode-active .bn-mode-desc {
    color: rgba(237, 228, 208, 0.8);
}

/* マニュアルカード（ベースは規程と同じ、差別化のためアクセント） */
.bn-card-manual {
    border-top: 3px solid var(--gold) !important;
}

.bn-card-manual.bn-doc-card-selected {
    border-top: 3px solid var(--gold-bright) !important;
}

/* ============================================================
   マニュアル本体（br-main 内に動的挿入）
   ============================================================ */
.mn-document {
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 8px;
    padding: 0;
    overflow: hidden;
    box-shadow: 0 16px 50px -16px rgba(10, 22, 40, 0.2);
    margin-bottom: 2.5rem;
    font-family: var(--f-serif);
    position: relative;
}

/* DRAFT 透かし */
.mn-watermark {
    position: absolute;
    top: 45%;
    left: 50%;
    transform: translate(-50%, -50%) rotate(-30deg);
    font-family: var(--f-display);
    font-size: 12rem;
    font-weight: 600;
    color: rgba(196, 81, 59, 0.05);
    letter-spacing: 0.15em;
    pointer-events: none;
    user-select: none;
    z-index: 0;
}

.mn-document > * {
    position: relative;
    z-index: 1;
}

/* ─── 表紙 ─── */
.mn-cover {
    background: linear-gradient(180deg, #fbf8f2 0%, #fff 100%);
    padding: 4rem 3.5rem 3rem;
    border-bottom: 1px solid var(--line);
    text-align: center;
}

.mn-cover-eyebrow {
    font-family: var(--f-display);
    font-size: 0.8rem;
    letter-spacing: 0.5em;
    color: var(--gold-deep);
    font-weight: 500;
    margin-bottom: 1.5rem;
}

.mn-cover-issuer {
    font-family: var(--f-serif);
    font-weight: 600;
    font-size: 1rem;
    color: var(--ink);
    letter-spacing: 0.15em;
    margin-bottom: 1.2rem;
    padding: 0.6rem 1.5rem;
    border: 1px solid var(--gold);
    display: inline-block;
    background: rgba(255, 255, 255, 0.6);
}

.mn-cover-title {
    font-family: var(--f-serif);
    font-weight: 600;
    font-size: clamp(1.6rem, 4vw, 2.2rem);
    color: var(--ink);
    letter-spacing: 0.1em;
    line-height: 1.5;
    margin: 1rem auto 0.8rem;
    max-width: 600px;
}

.mn-cover-subtitle {
    font-family: var(--f-serif);
    font-size: 0.95rem;
    color: rgba(10, 22, 40, 0.7);
    line-height: 1.85;
    letter-spacing: 0.06em;
    margin-bottom: 2.5rem;
    max-width: 580px;
    margin-left: auto;
    margin-right: auto;
}

.mn-cover-meta {
    display: flex;
    justify-content: center;
    gap: 2.5rem;
    padding: 1.4rem 0;
    border-top: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
    margin: 2rem 0;
    flex-wrap: wrap;
}

.mn-cover-meta-row {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.3rem;
}

.mn-cover-meta-label {
    font-family: var(--f-display);
    font-size: 0.7rem;
    letter-spacing: 0.25em;
    color: var(--gold-deep);
    font-weight: 600;
}

.mn-cover-meta-value {
    font-family: var(--f-serif);
    font-size: 0.95rem;
    color: var(--ink);
    font-weight: 600;
    letter-spacing: 0.05em;
}

.mn-cover-revision {
    margin: 2rem auto;
    max-width: 580px;
    text-align: left;
}

.mn-cover-revision-label {
    font-family: var(--f-display);
    font-size: 0.7rem;
    letter-spacing: 0.25em;
    color: var(--gold-deep);
    font-weight: 600;
    margin-bottom: 0.7rem;
    text-align: center;
}

.mn-revision-table {
    width: 100%;
    border-collapse: collapse;
    font-family: var(--f-sans);
    font-size: 0.82rem;
}

.mn-revision-table thead th {
    background: var(--ink);
    color: var(--gold-bright);
    padding: 0.5rem 0.7rem;
    font-weight: 600;
    letter-spacing: 0.06em;
    border: 1px solid var(--ink);
    text-align: center;
}

.mn-revision-table tbody td {
    padding: 0.6rem 0.7rem;
    border: 1px solid var(--line);
    color: var(--ink);
    background: #fff;
}

.mn-cover-footer {
    margin-top: 2rem;
    padding-top: 1.5rem;
    border-top: 1px dashed var(--line);
    font-size: 0.78rem;
    color: rgba(10, 22, 40, 0.6);
    line-height: 1.85;
}

.mn-cover-source {
    margin-top: 0.5rem;
    font-family: var(--f-display);
    font-size: 0.72rem;
    letter-spacing: 0.15em;
    color: var(--gold-deep);
}

/* ─── 前文 ─── */
.mn-preface {
    padding: 2.5rem 3rem 1.5rem;
}

.mn-preface-label {
    font-family: var(--f-display);
    font-size: 0.7rem;
    letter-spacing: 0.4em;
    color: var(--gold-deep);
    font-weight: 500;
    margin-bottom: 0.5rem;
}

.mn-preface-title {
    font-family: var(--f-serif);
    font-weight: 600;
    font-size: 1.5rem;
    color: var(--ink);
    letter-spacing: 0.08em;
    margin-bottom: 1.2rem;
    padding-bottom: 0.8rem;
    border-bottom: 2px solid var(--gold);
}

.mn-preface-text {
    font-family: var(--f-serif);
    font-size: 1rem;
    line-height: 2.1;
    color: var(--ink);
    letter-spacing: 0.03em;
    margin: 0;
}

/* ─── 目次 ─── */
.mn-toc {
    padding: 1.5rem 3rem 2.5rem;
    border-bottom: 1px dashed var(--line);
}

.mn-toc-label {
    font-family: var(--f-display);
    font-size: 0.7rem;
    letter-spacing: 0.4em;
    color: var(--gold-deep);
    font-weight: 500;
    margin-bottom: 0.5rem;
}

.mn-toc-title {
    font-family: var(--f-serif);
    font-weight: 600;
    font-size: 1.3rem;
    color: var(--ink);
    letter-spacing: 0.08em;
    margin-bottom: 1.2rem;
}

.mn-toc-list {
    list-style: none;
    padding: 0;
    margin: 0;
    counter-reset: toc;
}

.mn-toc-item {
    display: flex;
    align-items: baseline;
    gap: 0.8rem;
    padding: 0.55rem 0;
    border-bottom: 1px dotted var(--line);
}

.mn-toc-num {
    font-family: var(--f-display);
    font-size: 0.95rem;
    color: var(--gold-deep);
    font-weight: 600;
    letter-spacing: 0.05em;
    flex-shrink: 0;
    width: 36px;
}

.mn-toc-name {
    font-family: var(--f-serif);
    font-size: 0.95rem;
    color: var(--ink);
    letter-spacing: 0.04em;
    flex-shrink: 0;
}

.mn-toc-dots {
    flex: 1;
    border-bottom: 1px dotted rgba(10, 22, 40, 0.25);
    margin-bottom: 0.3rem;
}

/* ─── 章 ─── */
.mn-chapter {
    padding: 2.5rem 3rem 2rem;
    border-bottom: 1px dashed var(--line);
    page-break-before: always;
}

.mn-chapter:first-of-type {
    page-break-before: auto;
}

.mn-chapter:last-of-type {
    border-bottom: none;
}

.mn-ch-header {
    margin-bottom: 1.8rem;
    padding-bottom: 1.2rem;
    border-bottom: 2px solid var(--ink);
    page-break-after: avoid;
}

.mn-ch-eyebrow {
    font-family: var(--f-display);
    font-size: 0.72rem;
    letter-spacing: 0.4em;
    color: var(--gold-deep);
    font-weight: 500;
    margin-bottom: 0.6rem;
}

.mn-ch-numblock {
    display: flex;
    align-items: baseline;
    gap: 1.2rem;
}

.mn-ch-num {
    font-family: var(--f-display);
    font-size: 3.2rem;
    font-weight: 600;
    color: var(--gold);
    letter-spacing: 0.02em;
    line-height: 1;
}

.mn-ch-title {
    font-family: var(--f-serif);
    font-weight: 600;
    font-size: 1.55rem;
    color: var(--ink);
    letter-spacing: 0.08em;
    line-height: 1.45;
    margin: 0;
    flex: 1;
}

.mn-ch-intro {
    font-family: var(--f-serif);
    font-size: 0.95rem;
    line-height: 2;
    color: var(--ink);
    letter-spacing: 0.03em;
    padding: 1.1rem 1.4rem;
    background: linear-gradient(135deg, #fbf8f2, #f4ecd9);
    border-left: 3px solid var(--gold);
    border-radius: 0 4px 4px 0;
    margin-bottom: 1.8rem;
}

.mn-ch-intro p {
    margin: 0;
}

/* ─── STEPブロック ─── */
.mn-steps {
    margin-bottom: 1.8rem;
    display: flex;
    flex-direction: column;
    gap: 1.2rem;
}

.mn-step {
    background: #fff;
    border: 1px solid var(--line);
    border-left: 4px solid var(--gold);
    border-radius: 0 6px 6px 0;
    padding: 1.2rem 1.5rem;
    page-break-inside: avoid;
}

.mn-step-head {
    display: flex;
    align-items: center;
    gap: 0.9rem;
    margin-bottom: 0.8rem;
    padding-bottom: 0.7rem;
    border-bottom: 1px solid var(--line-soft);
}

.mn-step-num {
    font-family: var(--f-display);
    font-size: 0.8rem;
    letter-spacing: 0.2em;
    color: #fff;
    background: var(--ink);
    padding: 0.35rem 0.85rem;
    border-radius: 100px;
    font-weight: 600;
    flex-shrink: 0;
}

.mn-step-title {
    font-family: var(--f-serif);
    font-weight: 600;
    font-size: 1.05rem;
    color: var(--ink);
    letter-spacing: 0.05em;
    line-height: 1.5;
    margin: 0;
    flex: 1;
}

.mn-step-detail {
    font-family: var(--f-serif);
    font-size: 0.92rem;
    line-height: 1.95;
    color: var(--ink);
    letter-spacing: 0.02em;
    margin-bottom: 0.8rem;
}

.mn-step-points {
    background: rgba(201, 169, 97, 0.06);
    border-left: 2px solid var(--gold);
    padding: 0.8rem 1.1rem;
    margin: 0.8rem 0;
    border-radius: 0 4px 4px 0;
}

.mn-step-points-label {
    font-family: var(--f-display);
    font-size: 0.7rem;
    letter-spacing: 0.2em;
    color: var(--gold-deep);
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.mn-step-points ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.mn-step-points li {
    padding: 0.3rem 0 0.3rem 1.4rem;
    position: relative;
    font-size: 0.88rem;
    line-height: 1.75;
    color: var(--ink);
}

.mn-step-points li::before {
    content: '◆';
    position: absolute;
    left: 0;
    color: var(--gold-deep);
    font-size: 0.75rem;
}

.mn-step-caution {
    background: linear-gradient(135deg, #fff5ef, #fff);
    border: 1px solid rgba(196, 81, 59, 0.3);
    border-left: 3px solid #c4513b;
    padding: 0.75rem 1.1rem;
    margin-top: 0.8rem;
    border-radius: 0 4px 4px 0;
}

.mn-step-caution-label {
    font-family: var(--f-serif);
    font-weight: 600;
    font-size: 0.85rem;
    color: #b8442f;
    margin-bottom: 0.3rem;
    letter-spacing: 0.04em;
}

.mn-step-caution-text {
    font-size: 0.85rem;
    color: var(--ink);
    line-height: 1.8;
}

/* ─── 共通ブロックラベル ─── */
.mn-block-label {
    font-family: var(--f-serif);
    font-weight: 600;
    font-size: 1rem;
    color: var(--ink);
    letter-spacing: 0.06em;
    margin-bottom: 0.9rem;
    padding-bottom: 0.4rem;
    border-bottom: 1px solid var(--gold);
    display: inline-block;
}

/* ─── チェックリスト ─── */
.mn-checklist-block {
    background: #fdfaf2;
    border: 1px solid var(--line);
    border-radius: 6px;
    padding: 1.2rem 1.5rem;
    margin-bottom: 1.5rem;
    page-break-inside: avoid;
}

.mn-checklist {
    list-style: none;
    padding: 0;
    margin: 0;
}

.mn-checklist-item {
    display: flex;
    gap: 0.8rem;
    align-items: flex-start;
    padding: 0.55rem 0;
    border-bottom: 1px dotted var(--line);
}

.mn-checklist-item:last-child {
    border-bottom: none;
}

.mn-checkbox {
    width: 18px;
    height: 18px;
    border: 1.5px solid var(--ink);
    border-radius: 3px;
    flex-shrink: 0;
    margin-top: 2px;
}

.mn-checklist-text {
    flex: 1;
    font-family: var(--f-serif);
    font-size: 0.9rem;
    line-height: 1.85;
    color: var(--ink);
    letter-spacing: 0.02em;
}

/* ─── フローチャート ─── */
.mn-flow-block {
    margin-bottom: 1.5rem;
}

.mn-flow {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.mn-flow-step {
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 6px;
    padding: 1.1rem 1.3rem;
    page-break-inside: avoid;
}

.mn-flow-q {
    display: flex;
    align-items: baseline;
    gap: 0.7rem;
    font-family: var(--f-serif);
    font-weight: 600;
    font-size: 0.95rem;
    color: var(--ink);
    margin-bottom: 0.8rem;
    line-height: 1.6;
}

.mn-flow-qnum {
    font-family: var(--f-display);
    font-size: 0.8rem;
    letter-spacing: 0.1em;
    color: #fff;
    background: var(--gold-deep);
    padding: 0.25rem 0.6rem;
    border-radius: 100px;
    font-weight: 600;
    flex-shrink: 0;
}

.mn-flow-branches {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.6rem;
    margin-top: 0.5rem;
}

.mn-flow-branch {
    padding: 0.7rem 0.9rem;
    border-radius: 4px;
    font-size: 0.85rem;
    line-height: 1.7;
    color: var(--ink);
    display: flex;
    align-items: flex-start;
    gap: 0.6rem;
}

.mn-flow-yes {
    background: rgba(74, 138, 94, 0.08);
    border-left: 3px solid #4a8a5e;
}

.mn-flow-no {
    background: rgba(196, 81, 59, 0.08);
    border-left: 3px solid #c4513b;
}

.mn-flow-label {
    font-family: var(--f-display);
    font-size: 0.7rem;
    letter-spacing: 0.15em;
    font-weight: 700;
    flex-shrink: 0;
    padding-top: 1px;
}

.mn-flow-yes .mn-flow-label { color: #4a8a5e; }
.mn-flow-no .mn-flow-label { color: #c4513b; }

@media (max-width: 600px) {
    .mn-flow-branches {
        grid-template-columns: 1fr;
    }
}

/* ─── 連絡先表 ─── */
.mn-contacts-block {
    margin-bottom: 1.5rem;
}

.mn-contacts-table {
    width: 100%;
    border-collapse: collapse;
    font-family: var(--f-sans);
    font-size: 0.86rem;
}

.mn-contacts-table thead th {
    background: var(--ink);
    color: var(--gold-bright);
    padding: 0.6rem 0.7rem;
    font-weight: 600;
    letter-spacing: 0.06em;
    border: 1px solid var(--ink);
    text-align: left;
}

.mn-contacts-table tbody td {
    padding: 0.7rem 0.7rem;
    border: 1px solid var(--line);
    color: var(--ink);
    background: #fff;
    line-height: 1.6;
}

.mn-contacts-table tbody tr:nth-child(even) td {
    background: #fbf8f2;
}

/* ─── 記録項目 ─── */
.mn-records-block {
    background: #fdfaf2;
    border: 1px solid var(--line);
    border-radius: 6px;
    padding: 1.2rem 1.5rem;
    margin-bottom: 1.5rem;
}

.mn-records {
    list-style: none;
    padding: 0;
    margin: 0;
    counter-reset: rec;
}

.mn-records li {
    counter-increment: rec;
    padding: 0.45rem 0 0.45rem 2rem;
    position: relative;
    font-family: var(--f-serif);
    font-size: 0.9rem;
    line-height: 1.85;
    color: var(--ink);
    border-bottom: 1px dotted var(--line);
}

.mn-records li:last-child { border-bottom: none; }

.mn-records li::before {
    content: counter(rec, decimal-leading-zero);
    position: absolute;
    left: 0;
    font-family: var(--f-display);
    font-size: 0.85rem;
    color: var(--gold-deep);
    font-weight: 600;
    letter-spacing: 0.05em;
    top: 0.55rem;
}

/* ─── FAQ ─── */
.mn-faq-block {
    margin-bottom: 1.5rem;
}

.mn-faq {
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
}

.mn-faq-item {
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 6px;
    padding: 1rem 1.3rem;
    page-break-inside: avoid;
}

.mn-faq-q {
    display: flex;
    gap: 0.7rem;
    font-family: var(--f-serif);
    font-weight: 600;
    font-size: 0.93rem;
    color: var(--ink);
    line-height: 1.65;
    margin-bottom: 0.7rem;
    padding-bottom: 0.6rem;
    border-bottom: 1px dashed var(--line);
}

.mn-faq-qmark {
    font-family: var(--f-display);
    font-size: 1rem;
    color: var(--gold-deep);
    font-weight: 700;
    flex-shrink: 0;
}

.mn-faq-a {
    display: flex;
    gap: 0.7rem;
    font-family: var(--f-serif);
    font-size: 0.9rem;
    color: var(--ink);
    line-height: 1.95;
    letter-spacing: 0.02em;
}

.mn-faq-amark {
    font-family: var(--f-display);
    font-size: 1rem;
    color: var(--ink);
    font-weight: 700;
    flex-shrink: 0;
}

/* ─── 巻末資料 ─── */
.mn-appendices {
    padding: 2.5rem 3rem 2rem;
    background: #fdfaf2;
    border-top: 1px dashed var(--line);
    page-break-before: always;
}

.mn-app-label {
    font-family: var(--f-display);
    font-size: 0.7rem;
    letter-spacing: 0.4em;
    color: var(--gold-deep);
    font-weight: 500;
    margin-bottom: 0.5rem;
}

.mn-app-title {
    font-family: var(--f-serif);
    font-weight: 600;
    font-size: 1.4rem;
    color: var(--ink);
    letter-spacing: 0.08em;
    margin-bottom: 1.5rem;
    padding-bottom: 0.7rem;
    border-bottom: 2px solid var(--gold);
}

.mn-app-item {
    margin-bottom: 1.5rem;
    page-break-inside: avoid;
}

.mn-app-item-title {
    font-family: var(--f-serif);
    font-weight: 600;
    font-size: 1.05rem;
    color: var(--ink);
    letter-spacing: 0.05em;
    margin-bottom: 0.7rem;
    padding-bottom: 0.4rem;
    border-bottom: 1px solid var(--line);
    display: flex;
    align-items: baseline;
    gap: 0.8rem;
}

.mn-app-item-num {
    font-family: var(--f-display);
    font-size: 0.95rem;
    color: var(--gold-deep);
    font-weight: 600;
    letter-spacing: 0.04em;
}

.mn-app-item-content {
    font-family: var(--f-serif);
    font-size: 0.9rem;
    line-height: 1.95;
    color: var(--ink);
    padding-left: 1.2rem;
}

/* ─── 奥付 ─── */
.mn-colophon {
    padding: 2rem 3rem 2.5rem;
    background: var(--ink);
    color: var(--text-on-dark);
    text-align: center;
    page-break-before: always;
}

.mn-colophon-line {
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--gold) 30%, var(--gold) 70%, transparent);
    margin-bottom: 1.3rem;
}

.mn-colophon-title {
    font-family: var(--f-serif);
    font-weight: 600;
    font-size: 1.1rem;
    color: var(--gold-bright);
    letter-spacing: 0.1em;
    margin-bottom: 1rem;
    line-height: 1.5;
}

.mn-colophon-detail {
    font-size: 0.85rem;
    color: rgba(237, 228, 208, 0.8);
    line-height: 2;
    letter-spacing: 0.04em;
    margin-bottom: 1rem;
}

.mn-colophon-warning {
    font-size: 0.78rem;
    color: rgba(237, 228, 208, 0.6);
    line-height: 1.85;
    padding-top: 1rem;
    border-top: 1px dashed rgba(201, 169, 97, 0.3);
    max-width: 580px;
    margin: 0 auto;
}

/* レスポンシブ */
@media (max-width: 700px) {
    .mn-cover { padding: 2.5rem 1.5rem 2rem; }
    .mn-cover-meta { gap: 1.2rem; }
    .mn-cover-title { font-size: 1.5rem; }
    .mn-preface, .mn-toc, .mn-chapter, .mn-appendices, .mn-colophon { padding-left: 1.5rem; padding-right: 1.5rem; }
    .mn-ch-num { font-size: 2.4rem; }
    .mn-ch-title { font-size: 1.25rem; }
    .mn-step { padding: 1rem 1.1rem; }
    .mn-step-head { flex-wrap: wrap; }
    .mn-contacts-table { font-size: 0.78rem; }
    .mn-contacts-table th, .mn-contacts-table td { padding: 0.45rem 0.4rem; }
    .mn-watermark { font-size: 6rem; }
}

/* ============================================================
   印刷時のマニュアル
   ============================================================ */
@media print {
    body.mode-manual .br-action-bar,
    body.mode-manual .br-draft-warning,
    body.mode-manual .br-checklist-section,
    body.mode-manual .br-disclaimer,
    body.mode-manual #br-document {
        display: none !important;
    }

    body.mode-manual .mn-document {
        background: #fff !important;
        border: none !important;
        padding: 0 !important;
        margin: 0 !important;
        box-shadow: none !important;
    }

    body.mode-manual .mn-cover {
        padding: 0 0 6mm !important;
        background: #fff !important;
        border-bottom: 1pt solid #0a1628 !important;
        page-break-after: always;
    }

    body.mode-manual .mn-cover-title { font-size: 22pt !important; }
    body.mode-manual .mn-cover-subtitle { font-size: 10pt !important; }
    body.mode-manual .mn-cover-eyebrow { color: #a8893f !important; font-size: 8pt !important; }
    body.mode-manual .mn-cover-issuer { color: #0a1628 !important; border-color: #a8893f !important; background: #fff !important; }
    body.mode-manual .mn-cover-meta { border-color: #ccc !important; }
    body.mode-manual .mn-cover-meta-label { color: #a8893f !important; }
    body.mode-manual .mn-revision-table thead th { background: #0a1628 !important; color: #e4c373 !important; }
    body.mode-manual .mn-revision-table tbody td { background: #fff !important; }

    body.mode-manual .mn-preface,
    body.mode-manual .mn-toc {
        padding: 5mm 0 !important;
        page-break-inside: avoid;
    }

    body.mode-manual .mn-toc { page-break-after: always; }

    body.mode-manual .mn-preface-text {
        font-size: 10pt !important;
        line-height: 1.85 !important;
    }

    body.mode-manual .mn-chapter {
        padding: 5mm 0 !important;
        page-break-before: always;
        border-bottom: none !important;
    }

    body.mode-manual .mn-chapter:first-of-type {
        page-break-before: always;
    }

    body.mode-manual .mn-ch-num { color: #a8893f !important; font-size: 28pt !important; }
    body.mode-manual .mn-ch-title { font-size: 16pt !important; color: #0a1628 !important; }
    body.mode-manual .mn-ch-header { border-bottom: 1.5pt solid #0a1628 !important; }

    body.mode-manual .mn-ch-intro {
        background: #fbf8f2 !important;
        border-left: 2pt solid #a8893f !important;
        font-size: 9.5pt !important;
        line-height: 1.85 !important;
        padding: 3mm 4mm !important;
    }

    body.mode-manual .mn-step {
        background: #fff !important;
        border: 0.5pt solid #ccc !important;
        border-left: 2pt solid #a8893f !important;
        padding: 3mm 4mm !important;
    }

    body.mode-manual .mn-step-num {
        background: #0a1628 !important;
        color: #fff !important;
        font-size: 7pt !important;
    }

    body.mode-manual .mn-step-title { color: #0a1628 !important; font-size: 10.5pt !important; }
    body.mode-manual .mn-step-detail { color: #0a1628 !important; font-size: 9pt !important; }
    body.mode-manual .mn-step-points {
        background: #fbf8f2 !important;
        border-left: 1.5pt solid #a8893f !important;
        padding: 2mm 3mm !important;
    }
    body.mode-manual .mn-step-points-label { color: #a8893f !important; }
    body.mode-manual .mn-step-caution {
        background: #fff5ef !important;
        border: 0.5pt solid #c4513b !important;
        border-left: 1.5pt solid #c4513b !important;
    }
    body.mode-manual .mn-step-caution-label { color: #b8442f !important; }

    body.mode-manual .mn-block-label {
        border-bottom: 1pt solid #a8893f !important;
        color: #0a1628 !important;
        font-size: 10pt !important;
    }

    body.mode-manual .mn-checklist-block,
    body.mode-manual .mn-records-block {
        background: #fdfaf2 !important;
        border: 0.5pt solid #ccc !important;
        padding: 3mm 4mm !important;
    }

    body.mode-manual .mn-checkbox {
        border: 1pt solid #0a1628 !important;
        background: #fff !important;
        width: 12px !important;
        height: 12px !important;
    }

    body.mode-manual .mn-checklist-text,
    body.mode-manual .mn-records li { font-size: 9pt !important; color: #0a1628 !important; }
    body.mode-manual .mn-records li::before { color: #a8893f !important; }

    body.mode-manual .mn-flow-step {
        background: #fff !important;
        border: 0.5pt solid #ccc !important;
        padding: 3mm !important;
    }
    body.mode-manual .mn-flow-q { color: #0a1628 !important; font-size: 9.5pt !important; }
    body.mode-manual .mn-flow-qnum {
        background: #a8893f !important;
        color: #fff !important;
        font-size: 7pt !important;
    }
    body.mode-manual .mn-flow-yes { background: #f0f7f2 !important; border-left: 1.5pt solid #4a8a5e !important; }
    body.mode-manual .mn-flow-no { background: #fff5ef !important; border-left: 1.5pt solid #c4513b !important; }
    body.mode-manual .mn-flow-yes .mn-flow-label { color: #4a8a5e !important; }
    body.mode-manual .mn-flow-no .mn-flow-label { color: #c4513b !important; }

    body.mode-manual .mn-contacts-table thead th {
        background: #0a1628 !important;
        color: #e4c373 !important;
        font-size: 8.5pt !important;
    }
    body.mode-manual .mn-contacts-table tbody td { font-size: 8.5pt !important; background: #fff !important; }
    body.mode-manual .mn-contacts-table tbody tr:nth-child(even) td { background: #fbf8f2 !important; }

    body.mode-manual .mn-faq-item {
        background: #fff !important;
        border: 0.5pt solid #ccc !important;
        padding: 2mm 3mm !important;
    }
    body.mode-manual .mn-faq-q { color: #0a1628 !important; font-size: 9pt !important; }
    body.mode-manual .mn-faq-a { color: #0a1628 !important; font-size: 8.5pt !important; }
    body.mode-manual .mn-faq-qmark, body.mode-manual .mn-faq-amark { color: #a8893f !important; }

    body.mode-manual .mn-appendices {
        page-break-before: always;
        background: #fff !important;
        padding: 5mm 0 !important;
    }

    body.mode-manual .mn-colophon {
        background: #0a1628 !important;
        color: #e4c373 !important;
        padding: 5mm 8mm !important;
        page-break-before: always;
        -webkit-print-color-adjust: exact !important;
        print-color-adjust: exact !important;
    }

    body.mode-manual .mn-watermark {
        display: block !important;
        font-size: 7rem !important;
        color: rgba(196, 81, 59, 0.06) !important;
    }
}

/* ============================================================
   マニュアル段階生成 - 進捗バー
   ============================================================ */
.bn-progress-wrap {
    width: 100%;
    height: 6px;
    background: rgba(201, 169, 97, 0.18);
    border-radius: 100px;
    overflow: hidden;
    margin: 0.8rem auto 0.5rem;
    max-width: 280px;
}

.bn-progress-bar {
    height: 100%;
    background: linear-gradient(90deg, var(--gold), var(--gold-bright));
    border-radius: 100px;
    width: 0%;
    transition: width 0.5s var(--ease-luxe);
    box-shadow: 0 0 10px rgba(201, 169, 97, 0.5);
}

.bn-progress-pct {
    font-family: var(--f-display);
    font-size: 0.78rem;
    color: var(--gold-bright);
    letter-spacing: 0.1em;
    font-weight: 600;
    margin-top: 0.3rem;
}

/* ============================================================
   会員ログイン・入会案内ページ
   ============================================================ */

/* ─── ログインページ ─── */
.page-login {
    background: linear-gradient(135deg, var(--ivory), #f3ecd9);
}

.lg-main {
    max-width: 480px;
    margin: 0 auto;
    padding: 3rem 1.5rem 4rem;
}

.lg-card {
    background: #fff;
    border-radius: 12px;
    padding: 3rem 2.5rem;
    box-shadow: 0 18px 50px -20px rgba(10, 22, 40, 0.25);
    border: 1px solid var(--line);
    text-align: center;
    animation: fade-up 0.6s var(--ease-luxe);
}

.lg-eyebrow {
    font-family: var(--f-display);
    font-size: 0.75rem;
    letter-spacing: 0.4em;
    color: var(--gold-deep);
    font-weight: 500;
    margin-bottom: 1rem;
}

.lg-title {
    font-family: var(--f-serif);
    font-weight: 600;
    font-size: 1.7rem;
    color: var(--ink);
    letter-spacing: 0.08em;
    margin-bottom: 0.8rem;
}

.lg-subtitle {
    font-family: var(--f-serif);
    font-size: 0.92rem;
    color: rgba(10, 22, 40, 0.7);
    line-height: 2;
    margin-bottom: 2rem;
}

.lg-error {
    background: linear-gradient(135deg, #fff5ef, #fff);
    border: 1.5px solid #c4513b;
    border-left: 4px solid #c4513b;
    padding: 0.9rem 1.1rem;
    border-radius: 6px;
    color: #b8442f;
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
    display: flex;
    gap: 0.8rem;
    align-items: center;
    text-align: left;
}

.lg-error-icon {
    width: 26px;
    height: 26px;
    border-radius: 50%;
    background: #c4513b;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    font-weight: 700;
}

.lg-form {
    margin-bottom: 1.5rem;
}

.lg-field {
    margin-bottom: 1.3rem;
    text-align: left;
}

.lg-label {
    display: block;
    font-family: var(--f-serif);
    font-weight: 600;
    font-size: 0.9rem;
    color: var(--ink);
    letter-spacing: 0.05em;
    margin-bottom: 0.6rem;
}

.lg-input {
    width: 100%;
    padding: 1rem 1.2rem;
    background: rgba(251, 248, 242, 0.5);
    border: 1.5px solid var(--line);
    border-radius: 6px;
    font-size: 1rem;
    font-family: var(--f-sans);
    color: var(--ink);
    transition: all 0.25s var(--ease-luxe);
    box-sizing: border-box;
}

.lg-input:focus {
    outline: none;
    border-color: var(--gold);
    box-shadow: 0 0 0 3px rgba(201, 169, 97, 0.15);
    background: #fff;
}

.lg-submit {
    width: 100%;
    padding: 1rem 1.5rem;
    background: linear-gradient(135deg, var(--gold-bright), var(--gold-deep));
    color: var(--ink);
    border-radius: 100px;
    font-weight: 600;
    font-size: 1rem;
    letter-spacing: 0.1em;
    cursor: pointer;
    transition: all 0.3s var(--ease-luxe);
    box-shadow: 0 10px 28px rgba(201, 169, 97, 0.4);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.lg-submit:hover {
    transform: translateY(-2px);
    box-shadow: 0 14px 35px rgba(201, 169, 97, 0.5);
}

.lg-arrow { transition: transform 0.3s var(--ease-luxe); }
.lg-submit:hover .lg-arrow { transform: translateX(4px); }

.lg-divider {
    margin: 1.8rem 0 1.5rem;
    position: relative;
    text-align: center;
    color: rgba(10, 22, 40, 0.45);
    font-family: var(--f-display);
    font-size: 0.8rem;
    letter-spacing: 0.2em;
}

.lg-divider::before,
.lg-divider::after {
    content: '';
    position: absolute;
    top: 50%;
    width: calc(50% - 2rem);
    height: 1px;
    background: var(--line);
}

.lg-divider::before { left: 0; }
.lg-divider::after { right: 0; }

.lg-cta {
    padding: 1.4rem;
    background: rgba(251, 248, 242, 0.5);
    border: 1px dashed var(--line);
    border-radius: 8px;
    margin-bottom: 1.5rem;
}

.lg-cta p {
    font-size: 0.88rem;
    color: var(--ink);
    margin: 0 0 0.9rem;
    line-height: 1.85;
}

.lg-cta-button {
    display: inline-block;
    background: transparent;
    color: var(--gold-deep);
    border: 1.5px solid var(--gold);
    padding: 0.65rem 1.4rem;
    border-radius: 100px;
    font-size: 0.85rem;
    font-weight: 600;
    letter-spacing: 0.06em;
    transition: all 0.25s var(--ease-luxe);
    text-decoration: none;
}

.lg-cta-button:hover {
    background: var(--ink);
    color: var(--gold-bright);
    border-color: var(--gold);
}

.lg-public {
    text-align: center;
    font-size: 0.82rem;
}

.lg-public a {
    color: rgba(10, 22, 40, 0.55);
    text-decoration: none;
    letter-spacing: 0.04em;
}

.lg-public a:hover {
    color: var(--gold-deep);
}

/* ─── 入会案内ページ join.php ─── */
.page-join {
    background: var(--ivory);
}

.jn-main {
    max-width: 760px;
    margin: 0 auto;
    padding: 2.5rem 1.5rem 4rem;
}

/* ヒーロー */
.jn-hero {
    text-align: center;
    margin-bottom: 3rem;
    padding: 3rem 1.5rem;
    background: linear-gradient(135deg, var(--ink), var(--ink-soft));
    color: var(--text-on-dark);
    border-radius: 12px;
    border: 1px solid rgba(201, 169, 97, 0.3);
    box-shadow: 0 18px 50px -20px rgba(10, 22, 40, 0.35);
    position: relative;
    overflow: hidden;
}

.jn-hero::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 3px;
    background: linear-gradient(90deg, transparent, var(--gold-bright), transparent);
}

.jn-eyebrow {
    font-family: var(--f-display);
    font-size: 0.78rem;
    letter-spacing: 0.45em;
    color: var(--gold-bright);
    font-weight: 500;
    margin-bottom: 1.3rem;
}

.jn-title {
    font-family: var(--f-serif);
    font-weight: 600;
    font-size: clamp(1.6rem, 4.5vw, 2.2rem);
    letter-spacing: 0.08em;
    line-height: 1.55;
    margin-bottom: 1.5rem;
    color: var(--text-on-dark);
}

.jn-accent {
    color: var(--gold-bright);
}

.jn-lead {
    font-family: var(--f-serif);
    font-size: 1rem;
    color: rgba(237, 228, 208, 0.9);
    line-height: 2;
    max-width: 580px;
    margin: 0 auto;
}

/* 会員価値 */
.jn-value {
    margin-bottom: 3rem;
    text-align: center;
}

.jn-value-eyebrow {
    font-family: var(--f-display);
    font-size: 0.75rem;
    letter-spacing: 0.4em;
    color: var(--gold-deep);
    font-weight: 500;
    margin-bottom: 1.5rem;
}

.jn-value-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1rem;
}

.jn-value-item {
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 8px;
    padding: 1.4rem 1.3rem;
    text-align: left;
    transition: all 0.3s var(--ease-luxe);
    box-shadow: 0 6px 18px -10px rgba(10, 22, 40, 0.12);
}

.jn-value-item:hover {
    transform: translateY(-2px);
    border-color: var(--gold);
    box-shadow: 0 12px 28px -10px rgba(10, 22, 40, 0.2);
}

.jn-value-icon {
    font-size: 2rem;
    margin-bottom: 0.6rem;
}

.jn-value-name {
    font-family: var(--f-serif);
    font-weight: 600;
    font-size: 1.05rem;
    color: var(--ink);
    margin-bottom: 0.5rem;
    letter-spacing: 0.05em;
}

.jn-value-desc {
    font-size: 0.85rem;
    color: rgba(10, 22, 40, 0.7);
    line-height: 1.75;
}

/* 価格 */
.jn-pricing {
    margin-bottom: 3rem;
    text-align: center;
}

.jn-pricing-eyebrow {
    font-family: var(--f-display);
    font-size: 0.75rem;
    letter-spacing: 0.4em;
    color: var(--gold-deep);
    font-weight: 500;
    margin-bottom: 0.6rem;
}

.jn-pricing-title {
    font-family: var(--f-serif);
    font-weight: 600;
    font-size: 1.5rem;
    color: var(--ink);
    letter-spacing: 0.08em;
    margin-bottom: 1.5rem;
}

.jn-pricing-card {
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 12px;
    padding: 2rem 2rem;
    box-shadow: 0 14px 40px -16px rgba(10, 22, 40, 0.18);
    max-width: 560px;
    margin: 0 auto;
}

.jn-pricing-tier {
    font-family: var(--f-display);
    font-size: 0.85rem;
    letter-spacing: 0.3em;
    color: var(--gold-deep);
    font-weight: 600;
    background: rgba(201, 169, 97, 0.12);
    padding: 0.4rem 1rem;
    border-radius: 100px;
    display: inline-block;
    margin-bottom: 1.3rem;
}

.jn-pricing-rows {
    margin-bottom: 1.8rem;
}

.jn-pricing-row {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    padding: 0.8rem 0;
    border-bottom: 1px solid var(--line-soft);
}

.jn-pricing-row:last-child {
    border-bottom: none;
}

.jn-pricing-total {
    border-top: 2px solid var(--gold) !important;
    border-bottom: none !important;
    padding-top: 1rem !important;
    margin-top: 0.4rem;
}

.jn-pricing-label {
    font-family: var(--f-serif);
    font-size: 0.95rem;
    color: var(--ink);
    font-weight: 500;
}

.jn-pricing-total .jn-pricing-label {
    font-weight: 600;
    font-size: 1rem;
}

.jn-pricing-amount {
    font-family: var(--f-display);
    font-size: 1.3rem;
    font-weight: 600;
    color: var(--ink);
    letter-spacing: 0.04em;
}

.jn-pricing-total .jn-pricing-amount {
    font-size: 1.5rem;
    color: var(--gold-deep);
}

.jn-pricing-unit {
    font-size: 0.85rem;
    color: rgba(10, 22, 40, 0.55);
    font-weight: 400;
}

.jn-pricing-compare {
    background: linear-gradient(135deg, #fbf8f2, #f4ecd9);
    border-left: 3px solid var(--gold);
    padding: 1.2rem 1.4rem;
    border-radius: 0 6px 6px 0;
    text-align: left;
}

.jn-pricing-compare-label {
    font-family: var(--f-display);
    font-size: 0.72rem;
    letter-spacing: 0.2em;
    color: var(--gold-deep);
    font-weight: 600;
    margin-bottom: 0.6rem;
}

.jn-pricing-compare-list {
    font-size: 0.86rem;
    color: var(--ink);
    line-height: 2;
}

.jn-pricing-compare-list strong {
    color: var(--gold-deep);
    font-weight: 600;
}

.jn-pricing-compare-conclusion {
    margin-top: 0.7rem;
    padding-top: 0.7rem;
    border-top: 1px dashed rgba(201, 169, 97, 0.4);
    font-size: 0.95rem;
    color: var(--ink);
    font-family: var(--f-serif);
    font-weight: 600;
}

.jn-pricing-compare-conclusion strong {
    color: var(--gold-deep);
    font-size: 1.1rem;
}

/* CTA */
.jn-cta {
    text-align: center;
    margin-bottom: 2.5rem;
}

.jn-cta-title {
    font-family: var(--f-serif);
    font-weight: 600;
    font-size: 1.4rem;
    color: var(--ink);
    letter-spacing: 0.08em;
    margin-bottom: 0.8rem;
}

.jn-cta-text {
    font-family: var(--f-serif);
    font-size: 0.95rem;
    color: rgba(10, 22, 40, 0.75);
    line-height: 2;
    margin-bottom: 1.8rem;
}

.jn-contact-card {
    background: var(--ink);
    color: var(--text-on-dark);
    padding: 2rem 2rem;
    border-radius: 10px;
    border: 1px solid var(--gold);
    max-width: 480px;
    margin: 0 auto 2rem;
    box-shadow: 0 12px 32px -12px rgba(10, 22, 40, 0.3);
}

.jn-contact-label {
    font-family: var(--f-display);
    font-size: 0.75rem;
    letter-spacing: 0.35em;
    color: var(--gold-bright);
    font-weight: 600;
    margin-bottom: 0.7rem;
}

.jn-contact-org {
    font-family: var(--f-serif);
    font-weight: 600;
    font-size: 1.05rem;
    color: var(--gold-bright);
    margin-bottom: 0.4rem;
    letter-spacing: 0.05em;
}

.jn-contact-addr {
    font-size: 0.85rem;
    color: rgba(237, 228, 208, 0.75);
    margin-bottom: 1.3rem;
}

.jn-contact-btn {
    display: block;
    background: transparent;
    color: var(--gold-bright);
    border: 1px solid rgba(201, 169, 97, 0.5);
    padding: 0.9rem 1.4rem;
    border-radius: 8px;
    text-decoration: none;
    transition: all 0.3s var(--ease-luxe);
}

.jn-contact-btn:hover {
    background: var(--gold);
    color: var(--ink);
    border-color: var(--gold);
}

.jn-contact-btn-label {
    display: block;
    font-size: 0.75rem;
    letter-spacing: 0.15em;
    margin-bottom: 0.3rem;
}

.jn-contact-btn-value {
    display: block;
    font-family: var(--f-display);
    font-size: 1.05rem;
    font-weight: 600;
    letter-spacing: 0.05em;
}

.jn-login-link {
    padding: 1.4rem;
    background: rgba(255, 255, 255, 0.5);
    border: 1px dashed var(--line);
    border-radius: 8px;
    max-width: 380px;
    margin: 0 auto;
}

.jn-login-link p {
    font-size: 0.86rem;
    color: rgba(10, 22, 40, 0.7);
    margin: 0 0 0.7rem;
}

.jn-login-btn {
    display: inline-block;
    background: transparent;
    color: var(--ink);
    border: 1.5px solid var(--line);
    padding: 0.6rem 1.4rem;
    border-radius: 100px;
    font-size: 0.85rem;
    text-decoration: none;
    transition: all 0.25s var(--ease-luxe);
    letter-spacing: 0.06em;
}

.jn-login-btn:hover {
    background: var(--ink);
    color: var(--gold-bright);
    border-color: var(--gold);
}

.jn-back {
    text-align: center;
    padding-top: 1rem;
}

.jn-back-link {
    color: rgba(10, 22, 40, 0.55);
    text-decoration: none;
    font-size: 0.85rem;
    letter-spacing: 0.04em;
}

.jn-back-link:hover {
    color: var(--gold-deep);
}

@media (max-width: 600px) {
    .jn-main { padding: 1.8rem 1rem 3rem; }
    .lg-card { padding: 2rem 1.5rem; }
    .jn-hero { padding: 2rem 1.2rem; }
    .jn-pricing-card { padding: 1.5rem 1.3rem; }
    .jn-contact-card { padding: 1.5rem 1.3rem; }
    .jn-value-grid { grid-template-columns: 1fr; }
}

/* ============================================================
   サイトヘッダーのログイン表示
   ============================================================ */
.site-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.site-header-auth {
    display: flex;
    align-items: center;
    gap: 0.7rem;
    flex-shrink: 0;
}

.site-auth-status {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-family: var(--f-display);
    font-size: 0.72rem;
    letter-spacing: 0.15em;
    color: var(--gold-bright);
    font-weight: 600;
    padding: 0.3rem 0.7rem;
    background: rgba(201, 169, 97, 0.12);
    border-radius: 100px;
    border: 1px solid rgba(201, 169, 97, 0.4);
}

.site-auth-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--gold-bright);
    box-shadow: 0 0 8px var(--gold-bright);
    animation: site-auth-pulse 2s ease-in-out infinite;
}

@keyframes site-auth-pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}

.site-auth-btn {
    display: inline-flex;
    align-items: center;
    padding: 0.4rem 1rem;
    border-radius: 100px;
    font-size: 0.78rem;
    font-family: var(--f-sans);
    letter-spacing: 0.06em;
    transition: all 0.25s var(--ease-luxe);
    text-decoration: none;
    font-weight: 600;
}

.site-auth-login {
    background: var(--gold);
    color: var(--ink);
    border: 1px solid var(--gold);
}

.site-auth-login:hover {
    background: var(--gold-bright);
    transform: translateY(-1px);
}

.site-auth-logout {
    background: transparent;
    color: rgba(237, 228, 208, 0.7);
    border: 1px solid rgba(201, 169, 97, 0.4);
}

.site-auth-logout:hover {
    color: var(--gold-bright);
    border-color: var(--gold);
}

@media (max-width: 640px) {
    .site-header {
        flex-direction: column;
        gap: 0.7rem;
    }
    .site-header-auth {
        font-size: 0.7rem;
    }
}
