/* ========================================
   Chronote 使い方マニュアルページ専用スタイル
   ======================================== */

/* --- アンカースクロール: 固定ヘッダー分のオフセット --- */
.manual-flow__step[id],
.manual-section__inner[id],
.manual-section-heading[id] {
    scroll-margin-top: 120px;
}

/* --- セクション共通 --- */
.manual-section__inner {
    max-width: 960px;
    margin: 0 auto;
    padding: 80px 24px;
}

.manual-section__title {
    font-family: "Zen Maru Gothic", "Noto Sans JP", sans-serif;
    font-size: 28px;
    font-weight: 700;
    color: #1a1a1a;
    text-align: center;
    margin-bottom: 48px;
    letter-spacing: 0.05em;
}

/* 付録系セクション見出し（左右線付き） */
h2.manual-section-heading {
    font-family: "Noto Sans JP", sans-serif;
    font-size: 20px;
    font-weight: 700;
    color: #764ba2;
    text-align: center;
    margin-bottom: 36px;
    letter-spacing: 0.05em;
    display: flex !important;
    align-items: center;
    justify-content: center;
    gap: 20px;
    white-space: nowrap;
}

h2.manual-section-heading::before,
h2.manual-section-heading::after {
    content: '' !important;
    flex: 1 !important;
    height: 1px !important;
    min-width: 40px;
    display: block !important;
    position: static !important;
    width: auto !important;
    border: none !important;
}

h2.manual-section-heading::before,
h2.manual-section-heading::after {
    background: #999 !important;
}

/* --- ボタン共通 --- */
.manual-btn {
    display: inline-block;
    padding: 16px 40px;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    text-decoration: none;
    letter-spacing: 0.5px;
    transition: all 0.3s ease;
}

.manual-btn--primary {
    background: linear-gradient(135deg, #764ba2 0%, #667eea 100%);
    color: #ffffff;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.4);
}

.manual-btn--primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(102, 126, 234, 0.6);
    color: #ffffff;
    text-decoration: none;
}

.manual-btn--primary:active {
    transform: translateY(0);
}

button.manual-btn {
    border: none;
    cursor: pointer;
    font-family: inherit;
}

/* SP用改行 */
.manual-sp-br {
    display: none;
}


/* ========================================
   1. ヘッダーセクション
   ======================================== */
.manual-header {
    background: #f9f6f2;
}

.manual-header .manual-section__inner {
    padding-top: 0;
}

.manual-header__lead {
    font-size: 18px;
    line-height: 1.8;
    text-align: center;
    color: #333;
    margin-bottom: 48px;
}

.manual-header__em {
    color: #764ba2;
    font-size: 22px;
    font-weight: 700;
}

/* --- フロー目次（クリッカブル） --- */
.manual-flow-nav {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0;
    max-width: 520px;
    margin: 0 auto;
}

.manual-flow-nav__item {
    display: flex;
    align-items: center;
    gap: 12px;
    background: #ffffff;
    border: 1px solid #e5e0e8;
    border-radius: 12px;
    padding: 16px 24px;
    width: 100%;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
    text-decoration: none;
    transition: all 0.2s ease;
    cursor: pointer;
}

.manual-flow-nav__item:hover {
    border-color: #764ba2;
    background: #faf6ff;
    transform: translateY(-2px);
    box-shadow: 0 4px 16px rgba(118, 75, 162, 0.12);
    text-decoration: none;
}

.manual-flow-nav__badge {
    font-family: "Noto Sans JP", sans-serif;
    font-size: 11px;
    font-weight: 700;
    color: #ffffff;
    background: #764ba2;
    padding: 4px 10px;
    border-radius: 20px;
    letter-spacing: 0.05em;
    white-space: nowrap;
    flex-shrink: 0;
}

.manual-flow-nav__label {
    font-family: "Noto Sans JP", sans-serif;
    font-size: 15px;
    font-weight: 700;
    color: #1a1a1a;
    flex: 1;
}

.manual-flow-nav__arrow {
    width: 2px;
    height: 16px;
    background: #cdc4b7;
    margin: 0 auto;
}

/* 補助リンク（容量・FAQ・用語集） */
.manual-flow-nav__sub {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
    margin: 32px auto 0;
    max-width: 520px;
    width: 100%;
}

.manual-flow-nav__sub-link {
    font-size: 14px;
    font-weight: 600;
    color: #764ba2;
    text-decoration: none;
    padding: 6px 16px;
    border: 1px solid #e5e0e8;
    border-radius: 20px;
    background: #ffffff;
    transition: all 0.2s ease;
    text-align: center;
}

.manual-flow-nav__sub-link:hover {
    border-color: #764ba2;
    background: #faf6ff;
    text-decoration: none;
}


/* ========================================
   ラベル（無料・有料・オプション）共通
   ======================================== */
.manual-flow__label {
    font-size: 12px;
    font-weight: 700;
    padding: 2px 12px;
    border-radius: 20px;
    flex-shrink: 0;
}

.manual-flow__label--free {
    background: #d4edda;
    color: #155724;
}

.manual-flow__label--paid {
    background: #f0ebf5;
    color: #764ba2;
}

.manual-flow__label--option {
    background: #e8e4df;
    color: #666;
}


/* ========================================
   2. ステップフロー
   ======================================== */
.manual-flow {
    position: relative;
    padding-left: 100px;
}

/* --- 左の縦ライン --- */
.manual-flow::before {
    content: '';
    position: absolute;
    left: 46px;
    top: 14px;
    bottom: -32px;
    width: 2px;
    background: #e0dbd5;
}

/* --- 各ステップ --- */
.manual-flow__step {
    position: relative;
    padding-bottom: 6rem;
}

.manual-flow__step:last-child {
    padding-bottom: 0;
}

/* --- ステップヘッダー --- */
.manual-flow__header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 12px;
    flex-wrap: wrap;
}

.manual-flow__badge {
    position: absolute;
    left: -90px;
    font-family: "Noto Sans JP", sans-serif;
    font-size: 11px;
    font-weight: 700;
    color: #ffffff;
    background: #764ba2;
    padding: 6px 14px;
    border-radius: 20px;
    letter-spacing: 0.05em;
    white-space: nowrap;
    z-index: 1;
}

.manual-flow__title {
    font-family: "Noto Sans JP", sans-serif;
    font-size: 22px;
    font-weight: 700;
    color: #1a1a1a;
}

.manual-flow__desc {
    font-size: 15px;
    color: #555;
    line-height: 1.8;
    margin-bottom: 32px;
}


/* ========================================
   2b. サブセクション（1-1, 1-2 など）
   ======================================== */
.manual-subsection {
    margin-bottom: 48px;
    padding-top: 8px;
}

.manual-subsection:last-child {
    margin-bottom: 0;
}

.manual-subsection__header {
    display: flex;
    align-items: baseline;
    gap: 10px;
    margin-bottom: 16px;
    padding-bottom: 10px;
    border-bottom: 2px solid #f0ebf5;
}

.manual-subsection__number {
    font-family: "Noto Sans JP", sans-serif;
    font-size: 13px;
    font-weight: 700;
    color: #764ba2;
    background: #f0ebf5;
    padding: 2px 8px;
    border-radius: 4px;
    flex-shrink: 0;
    position: relative;
    top: -4px;
}

.manual-subsection__title {
    font-family: "Noto Sans JP", sans-serif;
    font-size: 18px;
    font-weight: 700;
    color: #1a1a1a;
    margin: 0;
}

.manual-subsection__body {
    font-size: 15px;
    color: #444;
    line-height: 1.8;
}

.manual-subsection__body p {
    margin-bottom: 16px;
}

.manual-subsection__body p:last-child {
    margin-bottom: 0;
}


/* ========================================
   4. スクリーンショット
   ======================================== */
.manual-screenshot {
    display: block;
    margin: 24px 0;
}

.manual-screenshot img {
    width: 100%;
    height: auto;
    border-radius: 8px;
    border: 1px solid #e5e0e8;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
    display: block;
}

.manual-screenshot__caption {
    font-size: 13px;
    color: #888;
    text-align: center;
    margin-top: 8px;
    line-height: 1.5;
}

/* グリッドレイアウト */
.manual-screenshot-grid {
    display: grid;
    gap: 16px;
    margin: 24px 0;
}

.manual-screenshot-grid--2col {
    grid-template-columns: repeat(2, 1fr);
}

.manual-screenshot-grid--3col {
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
}

.manual-screenshot-grid .manual-screenshot {
    margin: 0;
}


/* ========================================
   5. 情報ボックス（ヒント・注意・警告）
   ======================================== */
.manual-box {
    border-radius: 8px;
    padding: 14px 18px;
    margin: 20px 0;
    border-left: 4px solid;
    font-size: 14px;
    line-height: 1.7;
}

.manual-box--tip {
    border-left-color: #667eea;
    background: rgba(102, 126, 234, 0.06);
}

.manual-box--caution {
    border-left-color: #d69e2e;
    background: rgba(214, 158, 46, 0.06);
}

.manual-box--warning {
    border-left-color: #e53e3e;
    background: rgba(229, 62, 62, 0.06);
}

.manual-box__label {
    font-weight: 700;
    margin-bottom: 4px;
    display: block;
}

.manual-box--tip .manual-box__label { color: #667eea; }
.manual-box--caution .manual-box__label { color: #d69e2e; }
.manual-box--warning .manual-box__label { color: #e53e3e; }

.manual-box__text {
    color: #444;
    margin: 0;
}


/* ========================================
   6. テーブル
   ======================================== */
.post_content table.manual-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 14px;
    margin: 16px 0;
    border-bottom: 1px solid #e8e4df;
}

.manual-table th {
    background: #f5f3f0;
    font-weight: 700;
    color: #1a1a1a;
    padding: 10px 14px;
    text-align: left;
    border-bottom: 2px solid #e0dbd5;
}

.manual-table td {
    padding: 10px 14px;
    color: #444;
    border-bottom: 1px solid #e8e4df;
    vertical-align: top;
}

.manual-table tr:last-child td {
    border-bottom: none;
}

.manual-table .manual-table__em {
    color: #764ba2;
    font-weight: 700;
}


/* ========================================
   7. 手順リスト
   ======================================== */
.manual-steps {
    list-style: none;
    padding: 0;
    margin: 16px 0;
    counter-reset: manual-step;
}

.manual-steps__item {
    position: relative;
    padding: 0 0 16px 44px;
    font-size: 15px;
    color: #444;
    line-height: 1.7;
    counter-increment: manual-step;
}

.manual-steps__item:last-child {
    padding-bottom: 0;
}

.manual-steps__item::before {
    content: counter(manual-step);
    position: absolute;
    left: 0;
    top: -3px;
    width: 28px;
    height: 28px;
    background: #764ba2;
    color: #ffffff;
    font-size: 13px;
    font-weight: 700;
    font-family: "Noto Sans JP", sans-serif;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* 通常のulリスト */
.manual-list {
    list-style: none;
    padding: 0;
    margin: 12px 0;
}

.manual-list li {
    font-size: 14px;
    color: #555;
    line-height: 1.7;
    padding: 3px 0 3px 18px;
    position: relative;
}

.manual-list li::before {
    content: '・';
    position: absolute;
    left: 2px;
    color: #999;
}


/* ========================================
   8. 料金カード（STEP 4用）
   ======================================== */
.manual-pricing-card {
    background: #ffffff;
    border: 2px solid #764ba2;
    border-radius: 16px;
    padding: 36px 32px;
    margin-top: 40px;
    margin-bottom: 24px;
    box-shadow: 0 4px 20px rgba(118, 75, 162, 0.08);
}

.manual-pricing-card__title {
    font-size: 17px;
    font-weight: 700;
    color: #764ba2;
    margin-bottom: 16px;
}

.manual-pricing-card__price {
    display: flex;
    align-items: baseline;
    justify-content: center;
    gap: 4px;
    margin-bottom: 8px;
}

.manual-pricing-card__price-number {
    font-size: 52px;
    font-weight: 700;
    color: #764ba2;
    font-family: "Noto Sans JP", sans-serif;
}

.manual-pricing-card__price-unit {
    font-size: 20px;
    font-weight: 700;
    color: #1a1a1a;
}

.manual-pricing-card__price-note {
    font-size: 14px;
    color: #555;
    text-align: justify;
    margin-bottom: 28px;
}

/* サブカード（オプション） */
.manual-sub-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    margin-bottom: 24px;
}

.manual-sub-card {
    background: #ffffff;
    border: 1px solid #e5e0e8;
    border-radius: 12px;
    padding: 24px;
    text-align: center;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

.manual-sub-card__title {
    font-family: "Noto Sans JP", sans-serif;
    font-size: 15px;
    font-weight: 700;
    color: #1a1a1a;
    margin-bottom: 8px;
}

.manual-sub-card__price {
    font-size: 22px;
    font-weight: 700;
    color: #764ba2;
    margin-bottom: 8px;
    text-align: center;
}

.manual-sub-card__desc {
    font-size: 14px;
    color: #555;
    text-align: justify;
}

/* 税別注記 */
.manual-tax-note {
    text-align: justify;
    font-size: 13px;
    color: #888;
    margin-top: 8px;
}


/* ========================================
   9. 容量ボックス（容量セクション用）
   ======================================== */
.manual-capacity {
    background: linear-gradient(135deg, #f0ebf5 0%, #e8eaf6 100%);
    border-radius: 12px;
    padding: 2px;
    margin-bottom: 24px;
    max-width: 480px;
    margin-left: auto;
    margin-right: auto;
}

.manual-capacity__inner {
    background: #ffffff;
    border-radius: 10px;
    padding: 32px 24px;
    text-align: center;
}

.manual-capacity__main {
    display: flex;
    align-items: baseline;
    justify-content: center;
    gap: 8px;
    margin-bottom: 10px;
}

.manual-capacity__number {
    font-size: 42px;
    font-weight: 700;
    color: #764ba2;
    font-family: "Noto Sans JP", sans-serif;
}

.manual-capacity__unit {
    font-size: 18px;
    font-weight: 600;
    color: #1a1a1a;
}

.manual-capacity__note {
    font-size: 14px;
    color: #555;
}

/* 容量メーターサンプル */
.manual-capacity-meter {
    background: #f5f3f0;
    border-radius: 8px;
    padding: 16px 20px;
    margin: 12px 0;
}

.manual-capacity-meter__label {
    font-size: 13px;
    color: #666;
    margin-bottom: 6px;
}

.manual-capacity-meter__bar-wrap {
    background: #e8e4df;
    border-radius: 4px;
    height: 10px;
    overflow: hidden;
}

.manual-capacity-meter__bar {
    height: 100%;
    border-radius: 4px;
    transition: width 0.3s ease;
}

.manual-capacity-meter__bar--green { background: #38a169; }
.manual-capacity-meter__bar--yellow { background: #d69e2e; }
.manual-capacity-meter__bar--red { background: #e53e3e; }


/* ========================================
   10. FAQ セクション
   ======================================== */
.manual-faq {
    margin-top: 8px;
}

.manual-faq__item {
    margin-bottom: 32px;
    padding-bottom: 32px;
    border-bottom: 1px solid #e8e4df;
}

.manual-faq__item:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

.manual-faq__question {
    font-size: 16px;
    font-weight: 700;
    color: #1a1a1a;
    margin-bottom: 10px;
    padding-left: 28px;
    position: relative;
    line-height: 1.5;
}

.manual-faq__question::before {
    content: 'Q';
    position: absolute;
    left: 0;
    top: 0;
    width: 20px;
    height: 20px;
    background: #764ba2;
    color: #ffffff;
    font-size: 12px;
    font-weight: 700;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
    padding-top: 1px;
}

.manual-faq__answer {
    font-size: 15px;
    color: #555;
    line-height: 1.8;
    padding-left: 28px;
    border-left: none;
    margin: 0;
}


/* ========================================
   11. 用語集
   ======================================== */
.manual-glossary {
    margin-top: 8px;
}

.manual-glossary__term {
    font-weight: 700;
    color: #1a1a1a;
    white-space: nowrap;
    padding-right: 20px;
    width: 160px;
}


/* ========================================
   12. CTA（原稿用紙背景）
   ======================================== */
.manual-cta {
    background: #f9f6f2;
    color: #1a1a1a;
    text-align: center;
    position: relative;
    overflow: hidden;
}

/* 原稿用紙パターン */
.manual-cta::before {
    content: '';
    position: absolute;
    inset: 0;
    background:
        repeating-linear-gradient(
            to right,
            transparent 0px,
            transparent 37px,
            #f9f6f2 37px,
            #f9f6f2 46px
        ),
        repeating-linear-gradient(
            to right,
            #cdc4b7 0px,
            #cdc4b7 1px,
            transparent 1px,
            transparent 36px,
            #cdc4b7 36px,
            #cdc4b7 37px,
            transparent 37px,
            transparent 46px
        ),
        repeating-linear-gradient(
            to bottom,
            transparent 0px,
            transparent 31px,
            #d8d0c5 31px,
            #d8d0c5 32px
        );
    background-size: 46px 32px, 46px 32px, 46px 32px;
    pointer-events: none;
    z-index: 0;
}

/* 天地グラデーション */
.manual-cta::after {
    content: '';
    position: absolute;
    inset: 0;
    background:
        linear-gradient(to bottom, #f9f6f2 0%, transparent 12%),
        linear-gradient(to top, #f9f6f2 0%, transparent 12%);
    pointer-events: none;
    z-index: 0;
}

.manual-cta .manual-section__inner {
    padding: 100px 24px 80px;
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.manual-cta__message {
    font-family: "Noto Serif JP", serif;
    font-size: 2rem;
    font-weight: 700;
    color: #1a1a1a;
    margin-bottom: 20px;
    line-height: 1.4;
    letter-spacing: 0.05em;
}

.manual-cta__sub {
    font-size: 17px;
    font-weight: 400;
    color: #555;
    line-height: 1.8;
    margin-bottom: 40px;
}

.manual-cta__buttons {
    margin-bottom: 0;
}


/* ========================================
   レスポンシブ
   ======================================== */

/* タブレット */
@media (max-width: 768px) {
    .manual-section__inner {
        padding: 60px 20px;
    }

    .manual-section__title {
        font-size: 24px;
        margin-bottom: 36px;
    }

    h2.manual-section-heading {
        font-size: 18px;
        gap: 16px;
        margin-bottom: 28px;
    }

    .manual-sp-br {
        display: inline;
    }

    /* ヘッダー */
    .manual-header__lead {
        font-size: 16px;
        text-align: justify;
    }

    .manual-header__lead br {
        display: none;
    }

    .manual-header__em {
        font-size: 19px;
    }

    /* フロー */
    .manual-flow {
        padding-left: 75px;
    }

    .manual-flow::before {
        left: 36px;
    }

    .manual-flow__badge {
        left: -67px;
        font-size: 10px;
        padding: 5px 12px;
    }

    .manual-flow__title {
        font-size: 20px;
    }

    .manual-flow__step {
        padding-bottom: 40px;
    }

    /* サブセクション */
    .manual-subsection__title {
        font-size: 17px;
    }

    /* スクリーンショット */
    .manual-screenshot-grid--2col {
        grid-template-columns: 1fr;
    }

    .manual-screenshot-grid--3col {
        grid-template-columns: repeat(2, 1fr);
    }

    /* 料金カード */
    .manual-pricing-card {
        padding: 28px 20px;
    }

    .manual-pricing-card__price-number {
        font-size: 40px;
    }

    .manual-sub-grid {
        grid-template-columns: 1fr;
    }

    /* 容量 */
    .manual-capacity__number {
        font-size: 36px;
    }

    /* CTA */
    .manual-cta__message {
        font-size: 1.7rem;
    }

    .manual-cta__sub {
        font-size: 15px;
    }
}

/* モバイル */
@media (max-width: 480px) {
    .manual-section__inner {
        padding: 48px 24px;
    }

    .manual-section__title {
        font-size: 22px;
        margin-bottom: 28px;
    }

    .manual-btn {
        padding: 14px 32px;
        font-size: 15px;
    }

    /* フロー */
    .manual-flow {
        padding-left: 0;
    }

    .manual-flow::before {
        display: none;
    }

    .manual-flow__header {
        flex-wrap: wrap;
        align-items: center;
    }

    .manual-flow__badge {
        position: static;
        flex: 0 0 100%;
        display: flex;
        justify-content: center;
        align-items: center;
        font-size: 10px;
        padding: 6px 16px;
        margin-bottom: 8px;
        font-size: 18px;
        border-radius: 20px;
        background: #764ba2;
    }

    .manual-flow__title {
        font-size: 18px;
    }

    .manual-flow__desc {
        font-size: 15px;
    }

    .manual-flow__step {
        padding-bottom: 32px;
    }

    /* サブセクション */
    .manual-subsection {
        margin-bottom: 36px;
    }

    /* スクリーンショット */
    .manual-screenshot-grid--3col {
        grid-template-columns: 1fr;
    }

    /* フロー目次 */
    .manual-flow-nav__item {
        padding: 12px 24px;
    }

    .manual-flow-nav__label {
        font-size: 14px;
    }

    .manual-flow-nav__sub {
        gap: 8px;
    }

    .manual-flow-nav__sub-link {
        font-size: 13px;
        padding: 5px 10px;
    }

    /* 料金カード */
    .manual-pricing-card {
        padding: 24px 24px;
    }

    .manual-pricing-card__price-number {
        font-size: 34px;
    }

    .manual-pricing-card__price-note {
        text-align: justify;
    }

    .manual-tax-note {
        text-align: justify;
    }

    /* 容量 */
    .manual-capacity__number {
        font-size: 32px;
    }

    .manual-capacity__unit {
        font-size: 16px;
    }

    /* CTA */
    .manual-cta .manual-section__inner {
        padding: 64px 24px;
    }

    .manual-cta__message {
        font-size: 1.4rem;
    }

    .manual-cta__sub {
        font-size: 14px;
    }

    /* テーブル */
    .manual-table th,
    .manual-table td {
        padding: 10px 12px;
    }

    .manual-table th:first-child,
    .manual-table td:first-child {
        width: calc(6em + 8px + 5px);
    }

    .manual-half-table th:first-child,
    .manual-half-table td:first-child,
    .manual-glossary th:first-child,
    .manual-glossary td:first-child {
        width: 50%;
    }

    /* アンカースクロール: モバイルヘッダー分のオフセット調整 */
    .manual-flow__step[id],
    .manual-section__inner[id],
    .manual-section-heading[id] {
        scroll-margin-top: 70px;
    }

}
