/* =====================================================
   SCRIPT Studio — guide.css
   privacy.html / terms.html 共通スタイル
===================================================== */

*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

:root {
    --bg: #faf8f5;
    --surface: #fff;
    --primary: #e07b54;
    --text: #2c2420;
    --text-sub: #7a6a60;
    --border: #ede8e2;
    --radius: 14px;
}

body {
    background: var(--bg);
    color: var(--text);
    font-family: 'Noto Sans JP', sans-serif;
    font-size: 15px;
    line-height: 1.9;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* ---- ヘッダー ---- */
header {
    background: var(--surface);
    border-bottom: 2px solid var(--border);
    position: sticky;
    top: 0;
    z-index: 10;
}

.header-inner {
    max-width: 760px;
    margin: 0 auto;
    padding: 0 20px;
    height: 52px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.logo {
    display: flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
    font-size: 16px;
    font-weight: 800;
    color: var(--primary);
    letter-spacing: 0.04em;
}

.logo span {
    font-style: italic;
}

.btn-back {
    font-size: 13px;
    font-weight: 700;
    color: var(--text-sub);
    background: none;
    border: none;
    cursor: pointer;
    text-decoration: none;
    padding: 8px 0;
    transition: color 0.15s;
}

.btn-back:hover {
    color: var(--primary);
}

/* ---- コンテンツ ---- */
main {
    max-width: 760px;
    margin: 0 auto;
    padding: 40px 20px 80px;
}

.page-title {
    font-size: 24px;
    font-weight: 900;
    margin-bottom: 6px;
}

.page-meta {
    font-size: 13px;
    color: var(--text-sub);
    margin-bottom: 40px;
    padding-bottom: 24px;
    border-bottom: 2px solid var(--border);
}

/* ---- セクション ---- */
section {
    margin-bottom: 40px;
}

h2 {
    font-size: 16px;
    font-weight: 800;
    margin-bottom: 12px;
    padding-left: 12px;
    border-left: 4px solid var(--primary);
}

p {
    color: var(--text-sub);
    margin-bottom: 10px;
    font-weight: 500;
}

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

a {
    color: var(--primary);
    text-decoration: none;
    font-weight: 700;
}

a:hover {
    text-decoration: underline;
}

/* ---- ハイライトボックス（privacy用） ---- */
.highlight-box {
    background: var(--surface);
    border: 2px solid var(--border);
    border-radius: var(--radius);
    padding: 20px 24px;
    margin-bottom: 16px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.highlight-box p {
    color: var(--text);
    font-weight: 700;
    margin: 0;
}

.highlight-box p::before {
    content: '✓ ';
    color: var(--primary);
}

/* ---- 注意ボックス（terms用） ---- */
.caution-box {
    background: #fff9f0;
    border: 2px solid #f0d9c8;
    border-radius: var(--radius);
    padding: 18px 22px;
    margin-bottom: 14px;
}

.caution-box p {
    color: #7a5030;
    font-weight: 600;
    margin-bottom: 6px;
}

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

.caution-box p::before {
    content: '⚠ ';
}

/* ---- 外部リンク注記 ---- */
.external-note {
    background: #fff9f0;
    border: 1px solid #f0d9c8;
    border-radius: 10px;
    padding: 14px 18px;
    font-size: 13px;
    color: #8a6a50;
    line-height: 1.7;
    font-weight: 500;
}


/* ---- 書式テーブル（guide.html） ---- */
.guide-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 13px;
    margin: 14px 0 18px;
}

.guide-table th,
.guide-table td {
    padding: 8px 12px;
    border: 1px solid var(--border);
    line-height: 1.7;
    color: var(--text-sub);
    vertical-align: top;
    font-weight: 500;
}

.guide-table th {
    background: #fdf3ee;
    color: var(--primary);
    font-weight: 700;
    white-space: nowrap;
}

.guide-table code {
    background: #fdf3ee;
    border: 1px solid #f0d4c4;
    color: var(--primary);
    padding: 1px 6px;
    border-radius: 6px;
    font-family: 'Courier New', monospace;
    font-size: 12px;
    font-weight: 700;
    white-space: nowrap;
}

/* 小画面では「例」列を非表示にしてレイアウト崩れを防ぐ */
@media (max-width: 480px) {
    .guide-table th:nth-child(3),
    .guide-table td:nth-child(3) {
        display: none;
    }
}

/* ---- フッター ---- */
footer {
    text-align: center;
    padding: 32px 20px;
    font-size: 12px;
    color: var(--text-sub);
    border-top: 2px solid var(--border);
}

footer a {
    font-weight: 700;
}

footer p + p {
    margin-top: 8px;
}

/* ---- レスポンシブ ---- */
@media (max-width: 480px) {
    main {
        padding: 28px 16px 60px;
    }

    .page-title {
        font-size: 20px;
    }
}
