/* Guide page */

:root {
    --guide-bg: #f7f4ee;
    --guide-text: #1f2933;
    --guide-sub: #4b5563;
    --guide-muted: #6b7280;
    --guide-border: rgba(31, 41, 51, 0.10);
    --guide-card: #ffffff;
    --guide-dark: #1f2933;
    --guide-accent: #b45309;
    --guide-accent-strong: #fbbf24;
    --guide-soft: #f7f4ee;
    --guide-shadow: 0 10px 28px rgba(31, 41, 51, 0.06);
    --guide-shadow-strong: 0 24px 70px rgba(31, 41, 51, 0.14);
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    color: var(--guide-text);
    background: var(--guide-bg);
    font-family: "Hiragino Kaku Gothic ProN", "Yu Gothic", "Yu Gothic Medium", Meiryo, sans-serif;
    line-height: 1.9;
}

a {
    color: inherit;
    text-decoration: none;
}

/* Header */

.site-header {
    position: sticky;
    top: 0;
    z-index: 100;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    max-width: 1120px;
    margin: 0 auto;
    padding: 12px 24px;
    background: var(--guide-bg);
    border-bottom: 1px solid var(--guide-border);
}

body::before {
    content: "";
    position: sticky;
    top: 0;
    z-index: 99;
    display: block;
    height: 0;
    background: var(--guide-bg);
}

.site-logo {
    display: inline-flex;
    align-items: center;
    color: var(--guide-text);
    font-size: 24px;
    font-weight: 900;
    letter-spacing: -0.04em;
    text-decoration: none;
    white-space: nowrap;
}

.site-nav {
    display: flex;
    align-items: center;
    gap: 18px;
    color: #374151;
    font-size: 14px;
    font-weight: 700;
}

.site-nav a {
    color: #374151;
    text-decoration: none;
}

.site-nav a:hover {
    opacity: 0.75;
}

/* Page base */

.guide-page {
    max-width: 1120px;
    margin: 0 auto;
    padding: 56px 24px 80px;
}

/* Hero */

.guide-hero {
    padding: 56px 0 40px;
    margin-bottom: 8px;
    background: transparent;
    border: 0;
    border-radius: 0;
    box-shadow: none;
}

.guide-label {
    margin: 0 0 14px;
    color: var(--guide-accent);
    font-size: 14px;
    font-weight: 800;
    letter-spacing: 0.06em;
    line-height: 1.6;
}

.guide-hero h1 {
    margin: 0;
    color: var(--guide-text);
    font-size: clamp(38px, 5vw, 58px);
    font-weight: 900;
    line-height: 1.25;
    letter-spacing: -0.04em;
    text-align: left;
}

.guide-lead {
    margin: 24px 0 0;
    max-width: 820px;
    color: var(--guide-text);
    font-size: 20px;
    font-weight: 800;
    line-height: 1.8;
}

.guide-hero p {
    max-width: 860px;
    margin: 18px 0 0;
    color: var(--guide-sub);
    font-size: 16px;
    line-height: 1.9;
}

/* Sections */

.guide-section {
    padding: 36px;
    margin-top: 24px;
    background: var(--guide-card);
    border: 1px solid var(--guide-border);
    border-radius: 22px;
    box-shadow: var(--guide-shadow);
}

.guide-section h2 {
    margin: 0 0 22px;
    padding-bottom: 16px;
    border-bottom: 1px solid var(--guide-border);
    color: var(--guide-text);
    font-size: clamp(24px, 3vw, 34px);
    font-weight: 900;
    line-height: 1.35;
    letter-spacing: -0.03em;
}

.guide-section h3 {
    margin: 30px 0 12px;
    color: var(--guide-text);
    font-size: 20px;
    font-weight: 900;
    line-height: 1.5;
}

.guide-section h3:first-child {
    margin-top: 0;
}

.guide-section p {
    margin: 0 0 16px;
    color: var(--guide-sub);
    font-size: 15px;
    line-height: 1.9;
}

/* Inner cards */

.guide-card {
    padding: 22px 24px;
    margin-top: 18px;
    background: #f7f4ee;
    border: 1px solid var(--guide-border);
    border-radius: 18px;
}

.guide-card h3 {
    margin-top: 0;
}

/* Role list */

.role-list {
    display: grid;
    gap: 0;
    margin: 0;
}

.role-list div {
    display: grid;
    grid-template-columns: 190px 1fr;
    gap: 18px;
    padding: 15px 0;
    border-top: 1px solid rgba(31, 41, 51, 0.10);
}

.role-list div:first-child {
    border-top: 0;
}

.role-list dt {
    color: var(--guide-text);
    font-weight: 900;
}

.role-list dd {
    margin: 0;
    color: var(--guide-sub);
    font-size: 15px;
    line-height: 1.8;
}

/* Message examples */

.message-example {
    padding: 18px 20px;
    margin: 18px 0;
    color: #ffffff;
    background: var(--guide-dark);
    border-radius: 16px;
    font-size: 16px;
    font-weight: 800;
    line-height: 1.8;
    letter-spacing: 0.01em;
}

.message-example.multiline {
    font-weight: 700;
}

/* Notes and lists */

.note {
    color: var(--guide-muted);
    font-size: 14px;
    line-height: 1.8;
}

.guide-list {
    margin: 0 0 16px;
    padding-left: 1.3em;
    color: var(--guide-sub);
    font-size: 15px;
    line-height: 1.9;
}

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

.guide-list strong {
    color: var(--guide-text);
}

.guide-warning {
    margin: 18px 0 20px;
    padding: 16px 18px;
    background: #fff7ed;
    border: 1px solid rgba(180, 83, 9, 0.28);
    border-left: 5px solid var(--guide-accent);
    border-radius: 14px;
}

.guide-warning p {
    margin: 0 0 8px;
    color: var(--guide-text);
    font-size: 14px;
    line-height: 1.85;
}

.guide-warning p:last-child {
    margin-bottom: 0;
}

.guide-warning strong {
    color: var(--guide-accent);
    font-weight: 900;
}

.primary-button-disabled {
    cursor: default;
    opacity: 0.65;
    pointer-events: none;
}

/* Buttons */

.guide-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    margin-top: 24px;
}

.guide-actions.centered {
    justify-content: center;
}

.primary-button,
.secondary-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 48px;
    padding: 0 22px;
    border-radius: 999px;
    font-weight: 800;
    text-decoration: none;
    box-sizing: border-box;
}

.primary-button {
    min-width: 260px;
    color: #ffffff;
    background: var(--guide-dark);
    box-shadow: 0 10px 24px rgba(31, 41, 51, 0.22);
}

.primary-button:hover {
    opacity: 0.88;
}

.secondary-button {
    color: var(--guide-text);
    background: #ffffff;
    border: 1px solid var(--guide-border);
}

.secondary-button:hover {
    opacity: 0.82;
}

.text-link {
    display: inline-flex;
    align-items: center;
    min-height: 48px;
    color: var(--guide-sub);
    font-weight: 800;
}

.text-link:hover {
    text-decoration: underline;
}

/* Screenshot placeholders */

.guide-screenshot-placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 220px;
    margin-top: 28px;
    padding: 24px;
    color: var(--guide-muted);
    background: #f7f4ee;
    border: 2px dashed rgba(31, 41, 51, 0.18);
    border-radius: 20px;
    text-align: center;
    font-size: 14px;
    font-weight: 800;
    line-height: 1.8;
}

/* CTA */

.guide-cta {
    padding: 48px 32px;
    margin-top: 32px;
    color: #ffffff;
    text-align: center;
    background: var(--guide-dark);
    border-radius: 28px;
    box-shadow: var(--guide-shadow-strong);
}

.guide-cta h2 {
    margin: 0;
    color: #ffffff;
    font-size: clamp(24px, 4vw, 34px);
    font-weight: 900;
    line-height: 1.45;
    letter-spacing: -0.03em;
}

.guide-cta .primary-button {
    color: var(--guide-dark);
    background: #ffffff;
    box-shadow: none;
}

.guide-cta .text-link {
    color: rgba(255, 255, 255, 0.82);
}

/* LINE QR */

.guide-line-qr-card {
    display: grid;
    grid-template-columns: 220px 1fr;
    gap: 24px;
    align-items: center;
    margin: 22px 0 28px;
    padding: 24px;
    background: #f7f4ee;
    border: 1px solid var(--guide-border);
    border-radius: 20px;
}

.guide-line-qr {
    display: flex;
    align-items: center;
    justify-content: center;
}

.guide-line-qr img {
    display: block;
    width: 180px;
    max-width: 100%;
    height: auto;
    padding: 10px;
    background: #ffffff;
    border: 1px solid rgba(31, 41, 51, 0.10);
    border-radius: 16px;
    box-shadow: 0 8px 20px rgba(31, 41, 51, 0.08);
}

.guide-line-qr-text p:last-child {
    margin-bottom: 0;
}

/* Images */

.guide-screenshot {
    margin-top: 28px;
    text-align: center;
}

.guide-screenshot img {
    display: block;
    width: 100%;
    max-width: 860px;
    height: auto;
    margin: 0 auto;
    border-radius: 18px;
    border: 1px solid rgba(31, 41, 51, 0.10);
    box-shadow: 0 10px 28px rgba(31, 41, 51, 0.10);
}

.guide-screenshot-caption {
    margin: 10px 0 0;
    color: #6b7280;
    font-size: 13px;
    line-height: 1.7;
}

.guide-screenshot-phone-small img {
    max-width: 220px;
}

.guide-screenshot-pair {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 24px;
    align-items: start;
    margin: 24px 0 32px;
}

.guide-screenshot-pair .guide-screenshot {
    margin: 0;
}

/* Responsive */

@media (max-width: 900px) {
    .site-header {
        gap: 16px;
    }

    .site-nav {
        gap: 10px;
        font-size: 13px;
    }

    .guide-page {
        padding-top: 40px;
    }

    .role-list div {
        grid-template-columns: 1fr;
        gap: 4px;
    }
}

@media (max-width: 640px) {
    .site-header {
        padding: 14px 18px;
    }

    .site-logo {
        font-size: 20px;
    }

    .site-nav {
        gap: 8px;
        font-size: 13px;
    }

    .guide-page {
        padding: 32px 18px 64px;
    }

    .guide-hero {
        padding: 34px 24px;
        border-radius: 24px;
    }

    .guide-hero h1 {
        font-size: 36px;
    }

    .guide-lead {
        font-size: 18px;
    }

    .guide-section {
        padding: 26px 22px;
        border-radius: 20px;
    }

    .guide-section h2 {
        font-size: 24px;
    }

    .guide-section h3 {
        font-size: 18px;
    }

    .guide-actions {
        flex-direction: column;
    }

    .primary-button,
    .secondary-button {
        width: 100%;
    }

    .guide-screenshot-placeholder {
        min-height: 160px;
    }

    .guide-cta {
        padding: 36px 22px;
        border-radius: 24px;
    }

    .guide-line-qr-card {
        grid-template-columns: 1fr;
        gap: 16px;
        padding: 18px;
        text-align: center;
    }

    .guide-line-qr img {
        width: 190px;
        max-width: 100%;
    }

    .guide-screenshot-pair {
        grid-template-columns: 1fr;
        gap: 20px;
    }
}