/* ============================================================
   noir.css — kagemoto commission page
   ============================================================ */

/* ── 変数 ── */
:root {
    --ink: #0f0e0d;
    --paper: #f5f2ed;
    --mid: #7a7570;
    --rule: #c8c3bc;
    --ff-head: 'Bebas Neue', sans-serif;
    --ff-mono: 'DM Mono', monospace;
    --ff-body: 'EB Garamond', Georgia, serif;
}

/* ── ベース ── */
body {
    font-family: var(--ff-body);
    font-size: 17px;
    line-height: 1.65;
    background-color: var(--paper);
    color: var(--ink);
}

/* ── アベイラビリティバー ── */
.availability-bar {
    background: var(--ink);
    color: rgba(245,242,237,0.85);
    padding: 0.6rem 1.5rem;
    display: flex;
    align-items: center;
    gap: 1rem;
    flex-wrap: wrap;
}
.avail-dot {
    width: 8px; height: 8px;
    border-radius: 50%;
    background: #4caf50;
    flex-shrink: 0;
}
.avail-label {
    font-family: var(--ff-mono);
    font-size: 0.9rem;
    letter-spacing: 0.18em;
    text-transform: uppercase;
}
.avail-date {
    font-size: 0.88rem;
    color: rgba(245,242,237,0.45);
    margin-left: auto;
}

/* ── マストヘッド ── */
.masthead {
    background: var(--ink);
    color: var(--paper);
    padding: 3.5rem 2rem 3rem;
    text-align: center;
    position: relative;
    overflow: hidden;
}
.masthead::before {
    content: 'commission';
    position: absolute;
    font-family: var(--ff-head);
    font-size: 18vw;
    color: rgba(255,255,255,0.04);
    top: 50%; transform: translateY(-50%);
    left: 0; right: 0;
    letter-spacing: 0.05em;
    pointer-events: none;
    white-space: nowrap;
}
.masthead h1 {
    font-family: var(--ff-head);
    font-size: clamp(2.8rem, 9vw, 5.5rem);
    letter-spacing: 0.12em;
    color: var(--paper);
    position: relative;
    line-height: 1;
    margin-bottom: 0.6rem;
}
.masthead .sub {
    font-style: italic;
    font-size: 1.05rem;
    color: rgba(245,242,237,0.55);
    letter-spacing: 0.04em;
    position: relative;
}
.masthead .vgen-btn,
.masthead .skeb-btn {
    display: inline-block;
    padding: 0.6rem 2.4rem;
    border: 1px solid rgba(245,242,237,0.45);
    color: var(--paper);
    text-decoration: none;
    font-family: var(--ff-mono);
    font-size: 0.9rem;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    position: relative;
    transition: background 0.2s, color 0.2s, border-color 0.2s;
}
.masthead .vgen-btn:hover,
.masthead .skeb-btn:hover {
    background: var(--paper);
    color: var(--ink);
    border-color: var(--paper);
}

/* ── ナビゲーション ── */
nav {
    border-bottom: 1px solid var(--rule);
    background: var(--paper);
    position: sticky;
    top: 0;
    z-index: 100;
}
nav ul {
    display: flex;
    flex-wrap: wrap;     
    justify-content: center;
    gap: 0;
    list-style: none;
    max-width: 820px;
    margin: 0 auto;
    padding: 0;
}
nav a {
    display: block;
    padding: 0.85rem 1.4rem;
    font-family: var(--ff-mono);
    font-size: 0.9rem;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--mid);
    text-decoration: none;
    border-bottom: 2px solid transparent;
    transition: color 0.2s, border-color 0.2s;
}
nav a:hover {
    color: var(--ink);
    border-bottom-color: var(--ink);
}

/* ── セクション共通 ── */
.commission-section {
    max-width: 820px;
    margin: 0 auto;
    padding: 3rem 1.5rem;
    border-bottom: 1px solid var(--rule);
}
.commission-section:last-child { border-bottom: none; }

.section-label {
    font-family: var(--ff-mono);
    font-size: 0.66rem;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    color: var(--mid);
    margin-bottom: 0.8rem;
}
.commission-section h2 {
    font-family: var(--ff-head);
    font-size: 2.2rem;
    letter-spacing: 0.08em;
    margin-bottom: 1.5rem;
    border-bottom: none;
}

/* ── Style & Range ブロック ── */
.style-blocks {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1px;
    background: var(--rule);
    border: 1px solid var(--rule);
    margin-bottom: 2rem;
}
.style-block {
    background: var(--paper);
    padding: 1.4rem 1.2rem;
}
.style-block-label {
    font-family: var(--ff-mono);
    font-size: 0.62rem;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    color: var(--mid);
    margin-bottom: 0.8rem;
}
.style-list {
    list-style: none;
    padding: 0;
    margin: 0;
}
.style-list li {
    font-size: 0.95rem;
    line-height: 1.6;
    color: var(--mid);
    margin-bottom: 0.5rem;
    position: relative;
    padding-left: 1.1rem;
}
.style-list li::before {
    content: "—";
    position: absolute;
    left: 0;
    color: var(--rule);
    font-family: var(--ff-mono);
}
.style-list strong {
    color: var(--ink);
}

/* ── ユーティリティ ── */
.gap-top { margin-top: 2rem; }

/* ── セクション末尾CTA ── */
.section-cta {
    margin-top: 2.5rem;
    border-top: 1px dashed var(--rule);
    padding-top: 2rem;
    display: flex;
    align-items: center;
    gap: 2rem;
    flex-wrap: wrap;
}
.section-cta p {
    font-style: italic;
    color: var(--mid);
    font-size: 1rem;
    margin: 0;
    flex: 1;
}
.section-cta .vgen-btn,
.section-cta .site-btn,
.section-cta .tsunagu-btn {
    border: 1px solid var(--ink);
    color: var(--ink);
    white-space: nowrap;
    flex-shrink: 0;
}
.section-cta .vgen-btn:hover,
.section-cta .site-btn:hover,
.section-cta .tsunagu-btn:hover {
    background: var(--ink);
    color: var(--paper);
}

/* ── プロセス ── */
.flow-steps { display: flex; flex-direction: column; }
.flow-step {
    display: grid;
    grid-template-columns: 3rem 1fr;
    border: 1px solid var(--rule);
    border-top: none;
}
.flow-step:first-child { border-top: 1px solid var(--rule); }
.step-num {
    background: var(--ink);
    color: var(--paper);
    display: flex; align-items: center; justify-content: center;
    font-family: var(--ff-head);
    font-size: 1.15rem;
    letter-spacing: 0.05em;
}
.step-body { padding: 0.9rem 1.2rem; }
.step-title {
    font-family: var(--ff-mono);
    font-size: 0.875rem;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    margin-bottom: 0.25rem;
}
.step-desc { font-size: 1rem; color: var(--mid); line-height: 1.45; }


/* ── ギャラリー ── */
#gallery > p { font-size: 1rem; color: var(--mid); margin-bottom: 1rem; }

/* ── 日本語セクション ── */
#ja-section { background: #f0ede8; }
#ja-section h2 { font-family: var(--ff-head); font-size: 2rem; letter-spacing: 0.08em; }
#ja-section p { font-size: 0.95rem; line-height: 1.8; margin-bottom: 1.2rem; }

/* 共通ボタンレイアウト */
.cta-buttons, .ja-cta-buttons {
    display: flex;
    justify-content: center;
    gap: 1rem;
    flex-wrap: wrap;
    margin-top: 2rem;
}
.ja-cta-buttons {
    margin-top: 1.5rem;
    margin-bottom: 2rem;
    justify-content: flex-start;
}

/* VGen / Skeb / Tsunagu / site ボタン共通ベース */
.vgen-btn, .skeb-btn, .tsunagu-btn, .site-btn {
    display: inline-block;
    padding: 0.6rem 2.4rem;
    text-decoration: none;
    font-family: var(--ff-mono);
    font-size: 0.9rem;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    transition: background 0.2s, color 0.2s, border-color 0.2s;
}

/* マストヘッド用ボタンスタイル */
.masthead .cta-buttons {
    margin-top: 2rem;
}

/* 日本語セクション用ボタンスタイル */
#ja-section .ja-btn {
    border: 1px solid var(--ink);
    color: var(--ink);
    font-size: 0.85rem;
    padding: 0.6rem 1.8rem;
    letter-spacing: 0.1em;
}
#ja-section .ja-btn:hover {
    background: var(--ink);
    color: var(--paper);
}

/* ── 描画範囲ガイド ── */
.range-guide-container {
    margin-top: 3rem;
    border-top: 1px dashed var(--rule);
    padding-top: 2rem;
}
.range-guide-container h3 {
    font-family: var(--ff-head);
    font-size: 1.6rem;
    letter-spacing: 0.08em;
    margin-bottom: 0.5rem;
}
.range-guide-desc {
    font-size: 0.95rem;
    color: var(--mid);
    margin-bottom: 1.5rem;
    line-height: 1.5;
}
.range-guide-img-wrapper {
    width: 100%;
    border: 1px solid var(--rule);
    background: var(--paper);
    padding: 0.5rem;
    box-sizing: border-box;
}
.range-guide-img {
    width: 100%;
    display: block;
    height: auto;
}

/* ── 利用規約（ToS）の拡張 ── */
.tos-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2.5rem;
    margin-top: 1.5rem;
}
.tos-block h3 {
    font-family: var(--ff-mono);
    font-size: 0.95rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--ink);
    margin-bottom: 1.2rem;
    border-bottom: 2px solid var(--ink);
    padding-bottom: 0.4rem;
}
.tos-sub-block {
    margin-bottom: 1.5rem;
}
.tos-sub-block h4 {
    font-family: var(--ff-mono);
    font-size: 0.82rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--mid);
    margin-bottom: 0.5rem;
}
.tos-block ul, .tos-sub-block ul {
    list-style: none;
    padding: 0;
    margin: 0;
}
.tos-block li, .tos-sub-block li {
    font-size: 0.95rem;
    line-height: 1.6;
    color: var(--mid);
    margin-bottom: 0.6rem;
    position: relative;
    padding-left: 1.1rem;
}
.tos-block li::before, .tos-sub-block li::before {
    content: "—";
    position: absolute;
    left: 0;
    color: var(--mid);
    font-family: var(--ff-mono);
}
.tos-block strong {
    color: var(--ink);
}

/* ── 日本語セクションの規約 ── */
.ja-guidelines {
    margin-top: 3rem;
    border-top: 1px dashed var(--rule);
    padding-top: 2rem;
}
.ja-guidelines h3 {
    font-family: var(--ff-head);
    font-size: 1.6rem;
    letter-spacing: 0.08em;
    margin-bottom: 1.2rem;
    color: var(--ink);
}
.ja-guide-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2.5rem;
}
.ja-guide-block h4 {
    font-family: var(--ff-mono);
    font-size: 0.9rem;
    letter-spacing: 0.1em;
    color: var(--ink);
    margin-bottom: 0.8rem;
    border-bottom: 2px solid var(--ink);
    padding-bottom: 0.4rem;
}
.ja-guide-block ul {
    list-style: none;
    padding: 0;
    margin: 0;
}
.ja-guide-block li {
    font-size: 0.9rem;
    line-height: 1.7;
    color: var(--mid);
    margin-bottom: 0.6rem;
    position: relative;
    padding-left: 1.1rem;
}
.ja-guide-block li::before {
    content: "・";
    position: absolute;
    left: 0;
    color: var(--mid);
}
.ja-guide-block strong {
    color: var(--ink);
}

/* ── ページトップに戻るボタン ── */
.back-to-top {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    width: 44px;
    height: 44px;
    background: var(--ink);
    color: var(--paper);
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s, visibility 0.3s, background 0.2s;
    z-index: 200;
}
.back-to-top.show {
    opacity: 1;
    visibility: visible;
}
.back-to-top:hover {
    background: var(--mid);
}

/* ── フッター ── */
footer {
    text-align: center;
    padding: 2rem 1.5rem;
    border-top: 1px solid var(--rule);
    font-size: 0.9rem;
    color: var(--mid);
}
footer a {
    color: var(--mid);
    text-decoration: none;
}
footer a:hover {
    color: var(--ink);
}

/* ── レスポンシブ ── */
@media (max-width: 768px) {
    .tos-container, .ja-guide-container {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    .ja-cta-buttons {
        flex-direction: column;
        align-items: stretch;
    }
    #ja-section .ja-btn {
        text-align: center;
    }
}
@media (max-width: 600px) {
    .style-blocks { grid-template-columns: 1fr; }
    .section-cta { flex-direction: column; align-items: flex-start; }
}