/* =====================================================
   anqie theme
   LP と下層ページで共有する配色・字組み。
   css/style.css のあとに読み込むこと（同ファイルの変数を上書きする）。
   ===================================================== */

:root {
    /* --- anqie トークン --- */
    --bg: #EDEDED;
    --surface: #FFFFFF;
    --card: #F4F4F4;
    --pill-gray: #F3F3F3;
    --ink: #000000;
    --ink-soft: rgba(0, 0, 0, 0.5);
    --ink-faint: rgba(0, 0, 0, 0.35);
    /* ワンポイントだけアイコンのドットのオレンジから */
    --accent: #F2A33C;

    --display: ui-rounded, "SF Pro Rounded", "Nunito", "M PLUS Rounded 1c", system-ui, sans-serif;
    --body: "Geist", -apple-system, BlinkMacSystemFont, "Hiragino Sans", "Hiragino Kaku Gothic ProN", "Noto Sans JP", "Segoe UI", system-ui, sans-serif;
    --ease-out: cubic-bezier(0.23, 1, 0.32, 1);

    /* --- css/style.css の変数を anqie 側に差し替える --- */
    --font-family: var(--body);
    --font-size-base: 17px;
    --line-height-base: 1.5;
    --bg-color: var(--bg);
    --bg-secondary: var(--card);
    --text-primary: var(--ink);
    --text-secondary: var(--ink-soft);
    --accent-color: var(--accent);
    --border-color: rgba(0, 0, 0, 0.08);
    --footer-bg-color: var(--bg);
    --footer-text-color: var(--ink-soft);
    --radius-sm: 14px;
    --radius-md: 24px;
}

html {
    scroll-behavior: smooth;
}

body {
    font-weight: 500;
    letter-spacing: -0.01em;
    -webkit-font-smoothing: antialiased;
}

/* =====================
   TYPOGRAPHY
===================== */
h1,
h2,
h3,
.h1,
.h2,
.h3,
.site-title {
    font-family: var(--display);
    letter-spacing: -0.02em;
}

.h1 {
    font-size: clamp(30px, 7vw, 40px);
    font-weight: 800;
    line-height: 1.15;
    letter-spacing: -0.03em;
}

.h2 {
    font-size: clamp(20px, 2.4vw, 24px);
    font-weight: 800;
    line-height: 1.3;
}

.h3 {
    font-size: 18px;
    font-weight: 800;
    line-height: 1.35;
}

p,
li {
    letter-spacing: -0.01em;
    line-height: 1.7;
}

strong {
    font-weight: 700;
}

.text-secondary {
    color: var(--ink-soft);
}

/* 本文中のリンクはワンポイントのオレンジ */
.section a:not(.btn):not(.ghost-btn):not(.contact-link):not(.guide-back):not(.anqie-footer-brand),
.note a {
    color: var(--accent);
    text-decoration: underline;
    text-underline-offset: 3px;
}

.contact-link {
    text-decoration-color: rgba(0, 0, 0, 0.3);
    text-underline-offset: 4px;
}

/* =====================
   COMPONENTS
===================== */
.btn {
    padding: 15px 24px;
    border-radius: 100px;
    background-color: var(--ink);
    color: #FFFFFF;
    font-size: 17px;
    font-weight: 600;
    letter-spacing: -0.02em;
    line-height: 1;
    transition: transform 0.16s var(--ease-out), background-color 0.15s ease;
}

.btn:hover {
    transform: translateY(-1px);
    background-color: #262626;
}

.btn:active {
    transform: scale(0.97);
}

.btn svg {
    width: 1.1em;
    height: 1.1em;
}

/* 戻る導線などの副次ボタン（LP の hero と同じ白ピル） */
.ghost-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 15px 22px;
    border-radius: 100px;
    border: 2px solid var(--pill-gray);
    background: var(--surface);
    color: var(--ink);
    font-size: 17px;
    font-weight: 600;
    letter-spacing: -0.02em;
    line-height: 1;
    transition: transform 0.16s var(--ease-out), border-color 0.15s ease;
}

.ghost-btn:hover {
    opacity: 1;
    transform: translateY(-1px);
    border-color: #E5E5E5;
}

.ghost-btn:active {
    transform: scale(0.97);
}

.ghost-btn svg {
    width: 16px;
    height: 16px;
}

@media (max-width: 768px) {
    .ghost-btn {
        font-size: 15px;
        padding: 13px 18px;
    }
}

.card,
.note {
    background-color: var(--card);
    border: none;
    border-radius: 24px;
}

.card {
    border-radius: 28px;
}

.card:hover {
    transform: translateY(-2px);
}

.note {
    padding: 20px 24px;
}

.note h3 {
    font-family: var(--display);
    font-weight: 800;
}

/* 言語切替（LP と同じ白いピル / privacy・terms・transaction） */
.lang-toggle {
    position: absolute;
    top: 18px;
    right: 20px;
    z-index: 200;
    display: inline-flex;
    align-items: center;
    gap: 2px;
    padding: 7px 12px;
    background: var(--surface);
    border: 2px solid var(--pill-gray);
    border-radius: 100px;
}

.lang-btn {
    background: none;
    border: none;
    cursor: pointer;
    font-family: var(--display);
    font-size: 14px;
    font-weight: 700;
    letter-spacing: -0.02em;
    color: var(--ink-faint);
    padding: 2px 5px;
    line-height: 1;
    transition: color 0.2s ease;
}

.lang-btn:hover {
    color: var(--ink);
}

.lang-btn.active {
    color: var(--ink);
}

.lang-sep {
    color: rgba(0, 0, 0, 0.18);
    font-size: 12px;
    line-height: 1;
}

/* 戻るリンク（guide ほか） */
.guide-back {
    color: var(--ink-soft);
    font-weight: 600;
}

.guide-back:hover {
    color: var(--ink);
    opacity: 1;
}

.guide-shot {
    border-radius: 24px;
    box-shadow: none;
}

/* 規約・ポリシーなどの長文ページ */
.privacy-content p,
.privacy-content li {
    color: rgba(0, 0, 0, 0.78);
}

.privacy-content .h1,
.privacy-content .h2,
.privacy-content .h3,
.privacy-content strong {
    color: var(--ink);
}

/* =====================
   FOOTER
===================== */
.site-footer.anqie-footer {
    background-color: var(--bg);
    color: var(--ink-soft);
    font-family: var(--body);
    font-size: 15px;
    font-weight: 500;
    letter-spacing: -0.01em;
    margin-top: 0;
    padding: 8px 0 56px;
}

.anqie-footer .anqie-footer-legal .contact-link {
    color: var(--ink-soft);
    font-weight: 600;
    text-decoration: none;
}

.anqie-footer .anqie-footer-legal .contact-link:hover {
    color: var(--ink);
    opacity: 1;
}

.anqie-footer .anqie-footer-brand-name {
    font-family: var(--display);
    font-weight: 800;
    letter-spacing: -0.02em;
    color: var(--ink);
    opacity: 1;
}

.anqie-footer .anqie-footer-brand-icon {
    border-radius: 12px;
}

.anqie-footer .anqie-footer-links > p {
    color: var(--ink-faint);
    font-size: 13px;
}

@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }
}
