/* ========================================
   認証・アカウントページ スタイル
   コンセプト: 墨と建築 — 静謐、信頼、知性
   ======================================== */

/* ── CSS変数 ─────────────────────────── */
:root {
    --auth-ink:          #0f1729;
    --auth-text:         #1a2332;
    --auth-text-mid:     #4a5568;
    --auth-text-mute:    #8892a4;
    --auth-surface:      #ffffff;
    --auth-bg:           #f7f8fa;
    --auth-bg-accent:    #eef0f4;
    --auth-border:       #d4d8e1;
    --auth-border-focus: #2d3a52;
    --auth-primary:      #1e2d4a;
    --auth-primary-hover:#263754;
    --auth-accent:       #8b6914;
    --auth-accent-light: #c49b2c;
    --auth-danger:       #b33d3d;
    --auth-danger-bg:    #fdf2f2;
    --auth-success:      #2d6a4f;
    --auth-success-bg:   #f0f7f4;
    --auth-info-bg:      #f0f3f8;
}

/* ── ベースレイアウト ─────────────────── */
.auth-body {
    font-family: 'Inter', 'Noto Sans JP', -apple-system, BlinkMacSystemFont, sans-serif;
    background: var(--auth-bg);
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 0;
    padding: 20px;
}

.auth-container {
    width: 100%;
    max-width: 540px;
}

.auth-card {
    background: var(--auth-surface);
    border-radius: 4px;
    padding: 44px 40px;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04),
                0 1px 3px rgba(0, 0, 0, 0.02);
    border: 1px solid var(--auth-border);
    border-top: 2px solid var(--auth-primary);
}

/* ── ヘッダー ────────────────────────── */
.auth-header {
    text-align: center;
    margin-bottom: 28px;
}

.auth-logo {
    font-size: 20px;
    font-weight: 700;
    color: var(--auth-ink);
    margin-bottom: 4px;
    letter-spacing: 0.08em;
}

.auth-subtitle {
    font-size: 12px;
    font-weight: 400;
    color: var(--auth-text-mute);
    letter-spacing: 0.12em;
}

/* ── タイトル ────────────────────────── */
.auth-title {
    font-size: 17px;
    font-weight: 600;
    text-align: center;
    margin-bottom: 24px;
    color: var(--auth-ink);
    letter-spacing: 0.02em;
}

/* ── フォーム ────────────────────────── */
.auth-form {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.auth-field label {
    display: block;
    font-size: 12px;
    font-weight: 600;
    color: var(--auth-text-mid);
    margin-bottom: 6px;
    letter-spacing: 0.04em;
}

.auth-field input {
    width: 100%;
    padding: 11px 14px;
    border: 1px solid var(--auth-border);
    border-radius: 3px;
    font-size: 14px;
    font-family: 'Inter', 'Noto Sans JP', sans-serif;
    color: var(--auth-text);
    background: var(--auth-surface);
    transition: border-color 0.15s ease;
    box-sizing: border-box;
}

.auth-field input::placeholder {
    color: var(--auth-text-mute);
}

.auth-field input:focus {
    outline: none;
    border-color: var(--auth-border-focus);
    box-shadow: none;
}

/* ── ボタン ──────────────────────────── */
.auth-button {
    display: inline-block;
    width: 100%;
    padding: 13px;
    background: var(--auth-primary);
    color: #ffffff;
    border: none;
    border-radius: 3px;
    font-size: 14px;
    font-weight: 600;
    font-family: 'Inter', 'Noto Sans JP', sans-serif;
    cursor: pointer;
    transition: background-color 0.15s ease;
    text-align: center;
    text-decoration: none;
    margin-top: 8px;
    box-sizing: border-box;
    letter-spacing: 0.04em;
}

.auth-button:hover {
    background: var(--auth-primary-hover);
}

.auth-button:active {
    background: #17253d;
}

.auth-button-secondary {
    background: transparent;
    color: var(--auth-primary);
    border: 1px solid var(--auth-primary);
}

.auth-button-secondary:hover {
    background: var(--auth-primary);
    color: #ffffff;
}

/* ── リンク ──────────────────────────── */
.auth-links {
    text-align: center;
    margin-top: 20px;
}

.auth-links a {
    display: block;
    margin-bottom: 8px;
    color: var(--auth-accent);
    font-size: 13px;
    text-decoration: none;
    transition: color 0.15s ease;
    letter-spacing: 0.01em;
}

.auth-links a:last-child {
    margin-bottom: 0;
}

.auth-links a:hover {
    color: var(--auth-accent-light);
}

/* ── アラート ────────────────────────── */
.auth-alert {
    padding: 12px 16px;
    border-radius: 3px;
    font-size: 13px;
    margin-bottom: 16px;
    border-left: 3px solid;
    border-top: none;
    border-right: none;
    border-bottom: none;
}

.auth-alert-error {
    background: var(--auth-danger-bg);
    border-left-color: var(--auth-danger);
    color: var(--auth-danger);
}

.auth-alert-success {
    background: var(--auth-success-bg);
    border-left-color: var(--auth-success);
    color: var(--auth-success);
}

.auth-alert-info {
    background: var(--auth-info-bg);
    border-left-color: var(--auth-primary);
    color: var(--auth-primary);
}

/* ── フッター ────────────────────────── */
.auth-footer {
    text-align: center;
    font-size: 11px;
    color: var(--auth-text-mute);
    margin-top: 24px;
    letter-spacing: 0.04em;
}

/* ── 説明文 ──────────────────────────── */
.auth-description {
    font-size: 13px;
    color: var(--auth-text-mid);
    text-align: center;
    margin-bottom: 20px;
    line-height: 1.6;
}

/* ── アカウント情報 ──────────────────── */
.account-info {
    margin-bottom: 24px;
}

.account-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 14px 0;
    border-bottom: 1px solid var(--auth-bg-accent);
}

.account-row:last-child {
    border-bottom: none;
}

.account-label {
    font-size: 12px;
    font-weight: 600;
    color: var(--auth-text-mid);
    letter-spacing: 0.04em;
}

.account-value {
    font-size: 14px;
    font-weight: 500;
    color: var(--auth-text);
}

.plan-badge {
    padding: 3px 10px;
    border-radius: 3px;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.06em;
}

.plan-free {
    background: var(--auth-bg-accent);
    color: var(--auth-text-mid);
}

.plan-pro {
    background: #e8e0cc;
    color: var(--auth-accent);
}

.plan-business {
    background: #d6dbe6;
    color: var(--auth-primary);
}

.account-actions {
    display: flex;
    gap: 12px;
    margin-bottom: 8px;
}

.account-actions .auth-button {
    flex: 1;
}

/* ── プラン管理セクション ────────────── */
.plan-manage-section {
    background: var(--auth-bg);
    border: 1px solid var(--auth-border);
    border-radius: 4px;
    padding: 16px;
    margin-bottom: 16px;
}

.plan-change-option {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
}

.plan-change-option p {
    margin: 0;
}

@media (max-width: 640px) {
    .plan-change-option {
        flex-direction: column;
        align-items: stretch;
    }
    .plan-change-option .auth-button {
        width: 100%;
        text-align: center;
    }
}

/* ── 料金プラン ──────────────────────── */
.pricing-grid {
    display: flex;
    flex-direction: column;
    gap: 16px;
    margin-bottom: 20px;
}

.pricing-card {
    border: 1px solid var(--auth-border);
    border-radius: 4px;
    padding: 24px;
    text-align: center;
    position: relative;
    transition: border-color 0.2s ease;
}

.pricing-card:hover {
    border-color: var(--auth-text-mid);
}

.pricing-highlight {
    border-color: var(--auth-accent);
    border-width: 2px;
}

.pricing-current {
    border-color: var(--auth-success);
}

.pricing-name {
    font-size: 16px;
    font-weight: 700;
    color: var(--auth-ink);
    margin-bottom: 4px;
    letter-spacing: 0.02em;
}

.pricing-price {
    font-size: 28px;
    font-weight: 700;
    color: var(--auth-ink);
    margin-bottom: 12px;
}

.pricing-price span {
    font-size: 14px;
    font-weight: 400;
    color: var(--auth-text-mid);
}

.pricing-features {
    list-style: none;
    padding: 0;
    text-align: left;
    margin-bottom: 16px;
}

.pricing-features li {
    padding: 4px 0;
    font-size: 13px;
    color: var(--auth-text-mid);
}

.pricing-features li::before {
    content: "\2713 ";
    color: var(--auth-success);
    font-weight: bold;
}

.pricing-badge {
    display: inline-block;
    padding: 6px 16px;
    background: var(--auth-success-bg);
    color: var(--auth-success);
    border-radius: 3px;
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 0.04em;
}

.pricing-card .auth-button {
    margin-top: 0;
}

/* ── 利用規約チェックボックス ─────────── */
.terms-field {
    margin-top: 4px;
}

.terms-checkbox {
    display: flex;
    align-items: center;
    gap: 13px;
    font-size: 13px;
    color: var(--auth-text-mid);
    cursor: pointer;
}

.terms-checkbox input[type="checkbox"] {
    width: 16px;
    height: 16px;
    margin: 0;
    accent-color: var(--auth-primary);
    flex-shrink: 0;
}

.terms-checkbox a {
    color: var(--auth-accent);
    text-decoration: underline;
    text-underline-offset: 2px;
    text-decoration-color: rgba(139, 105, 20, 0.3);
}

.terms-checkbox a:hover {
    text-decoration-color: var(--auth-accent);
}

/* ── 利用規約ページ (legal-) ─────────── */
.legal-body {
    font-family: 'Inter', 'Noto Sans JP', -apple-system, BlinkMacSystemFont, sans-serif;
    background: var(--auth-bg);
    min-height: 100vh;
    margin: 0;
    padding: 40px 20px;
}

.legal-container {
    width: 100%;
    max-width: 720px;
    margin: 0 auto;
}

.legal-card {
    background: var(--auth-surface);
    border-radius: 4px;
    padding: 48px 44px;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04);
    border: 1px solid var(--auth-border);
    border-top: 2px solid var(--auth-primary);
}

.legal-header {
    margin-bottom: 32px;
    padding-bottom: 20px;
    border-bottom: 1px solid var(--auth-bg-accent);
}

.legal-back-link {
    font-size: 13px;
    color: var(--auth-accent);
    text-decoration: none;
    display: inline-block;
    margin-bottom: 16px;
}

.legal-back-link:hover {
    color: var(--auth-accent-light);
}

.legal-title {
    font-size: 22px;
    font-weight: 700;
    color: var(--auth-ink);
    letter-spacing: 0.04em;
}

.legal-updated {
    font-size: 12px;
    color: var(--auth-text-mute);
    margin-top: 4px;
}

.legal-intro {
    font-size: 14px;
    line-height: 1.9;
    color: var(--auth-text-mid);
    margin-bottom: 24px;
}

.legal-content {
    font-size: 14px;
    line-height: 1.9;
    color: var(--auth-text);
    margin-bottom: 32px;
}

.legal-section {
    margin-bottom: 24px;
}

.legal-section h2 {
    font-size: 15px;
    font-weight: 600;
    color: var(--auth-ink);
    margin-bottom: 8px;
    padding-left: 12px;
    border-left: 3px solid var(--auth-accent);
}

.legal-section p {
    font-size: 14px;
    color: var(--auth-text-mid);
    line-height: 1.9;
    margin-bottom: 8px;
}

.legal-section ul {
    padding-left: 20px;
    margin-bottom: 8px;
}

.legal-section li {
    font-size: 14px;
    color: var(--auth-text-mid);
    line-height: 1.9;
    margin-bottom: 4px;
}

.legal-section a {
    color: var(--auth-accent);
}

.legal-table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 12px;
}

.legal-table th,
.legal-table td {
    font-size: 14px;
    line-height: 1.9;
    padding: 8px 12px;
    border-bottom: 1px solid var(--auth-bg-accent);
    text-align: left;
    vertical-align: top;
}

.legal-table th {
    width: 30%;
    color: var(--auth-text);
    font-weight: 500;
    background: var(--auth-bg);
}

.legal-table td {
    color: var(--auth-text-mid);
}

.legal-footer {
    margin-top: 32px;
    padding-top: 20px;
    border-top: 1px solid var(--auth-bg-accent);
    text-align: center;
    font-size: 13px;
}

.legal-footer-link {
    color: var(--auth-accent);
    text-decoration: none;
}

.legal-footer-link:hover {
    color: var(--auth-accent-light);
}

.legal-footer-sep {
    color: var(--auth-text-mute);
    margin: 0 8px;
}

/* ── Cookie同意バナー ──────────────────── */
.cookie-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: var(--auth-surface);
    border-top: 1px solid var(--auth-border);
    padding: 14px 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    z-index: 9999;
    box-shadow: 0 -2px 8px rgba(0, 0, 0, 0.06);
}

.cookie-banner-text {
    font-size: 13px;
    color: var(--auth-text-mid);
    margin: 0;
    line-height: 1.5;
}

.cookie-banner-text a {
    color: var(--auth-accent);
    text-decoration: none;
}

.cookie-banner-text a:hover {
    color: var(--auth-accent-light);
}

.cookie-banner-button {
    background: var(--auth-primary);
    color: #fff;
    border: none;
    padding: 8px 20px;
    font-size: 13px;
    font-weight: 500;
    border-radius: var(--auth-radius, 4px);
    cursor: pointer;
    white-space: nowrap;
    font-family: 'Inter', 'Noto Sans JP', sans-serif;
}

.cookie-banner-button:hover {
    background: var(--auth-primary-hover);
}

/* ========================================
   ランディングページ
   ======================================== */

.landing-body {
    font-family: 'Inter', 'Noto Sans JP', -apple-system, BlinkMacSystemFont, sans-serif;
    background: var(--auth-bg);
    margin: 0;
    padding: 0;
    color: var(--auth-text);
}

/* ── LP: ヘッダー ──────────────────── */
.landing-header {
    background: var(--auth-primary);
    padding: 0 24px;
}

.landing-header-inner {
    max-width: 1080px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 60px;
}

.landing-logo {
    display: flex;
    align-items: baseline;
    gap: 8px;
}

.landing-logo-text {
    font-size: 16px;
    font-weight: 700;
    color: #fff;
    letter-spacing: 0.06em;
}

.landing-logo-sub {
    font-size: 11px;
    color: rgba(255, 255, 255, 0.6);
    letter-spacing: 0.08em;
}

.landing-nav {
    display: flex;
    align-items: center;
    gap: 16px;
}

.landing-nav-link {
    color: rgba(255, 255, 255, 0.85);
    text-decoration: none;
    font-size: 13px;
    font-weight: 500;
}

.landing-nav-link:hover {
    color: #fff;
}

.landing-nav-cta {
    background: var(--auth-accent);
    color: #fff;
    text-decoration: none;
    font-size: 13px;
    font-weight: 600;
    padding: 8px 20px;
    border-radius: 3px;
    letter-spacing: 0.02em;
}

.landing-nav-cta:hover {
    background: var(--auth-accent-light);
}

/* ── LP: ヒーロー ──────────────────── */
.landing-hero {
    background: linear-gradient(135deg, var(--auth-primary) 0%, #263754 100%);
    padding: 80px 24px 72px;
    text-align: center;
}

.landing-hero-inner {
    max-width: 680px;
    margin: 0 auto;
}

.landing-hero-title {
    font-size: 36px;
    font-weight: 700;
    color: #fff;
    line-height: 1.4;
    margin-bottom: 20px;
    letter-spacing: 0.02em;
}

.landing-hero-desc {
    font-size: 15px;
    color: rgba(255, 255, 255, 0.8);
    line-height: 1.8;
    margin-bottom: 32px;
}

.landing-hero-cta {
    display: inline-block;
    background: var(--auth-accent);
    color: #fff;
    text-decoration: none;
    font-size: 15px;
    font-weight: 600;
    padding: 14px 36px;
    border-radius: 3px;
    letter-spacing: 0.04em;
    transition: background 0.15s ease;
}

.landing-hero-cta:hover {
    background: var(--auth-accent-light);
}

.landing-hero-note {
    font-size: 12px;
    color: rgba(255, 255, 255, 0.5);
    margin-top: 12px;
}

/* ── LP: セクション共通 ────────────── */
.landing-section-inner {
    max-width: 1080px;
    margin: 0 auto;
    padding: 0 24px;
}

.landing-section-title {
    font-size: 22px;
    font-weight: 700;
    color: var(--auth-ink);
    text-align: center;
    margin-bottom: 40px;
    letter-spacing: 0.02em;
}

/* ── LP: 機能紹介 ──────────────────── */
.landing-features {
    padding: 72px 0;
    background: var(--auth-surface);
}

.landing-features-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.landing-feature-card {
    padding: 32px 24px;
    border: 1px solid var(--auth-border);
    border-radius: 4px;
    text-align: center;
}

.landing-feature-icon {
    font-size: 32px;
    margin-bottom: 12px;
}

.landing-feature-name {
    font-size: 16px;
    font-weight: 700;
    color: var(--auth-ink);
    margin-bottom: 8px;
}

.landing-feature-desc {
    font-size: 13px;
    color: var(--auth-text-mid);
    line-height: 1.8;
}

/* ── LP: 無料トライアル ────────────── */
.landing-trial {
    padding: 64px 0;
    background: var(--auth-bg);
}

.landing-trial-card {
    max-width: 640px;
    margin: 0 auto;
    background: var(--auth-surface);
    border: 1px solid var(--auth-border);
    border-left: 3px solid var(--auth-accent);
    border-radius: 4px;
    padding: 36px 40px;
}

.landing-trial-title {
    font-size: 18px;
    font-weight: 700;
    color: var(--auth-ink);
    margin-bottom: 8px;
}

.landing-trial-desc {
    font-size: 14px;
    color: var(--auth-text-mid);
    line-height: 1.7;
    margin-bottom: 20px;
}

.landing-trial-desc strong {
    color: var(--auth-text);
    font-weight: 600;
}

.landing-trial-features {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.landing-trial-item {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 14px;
    color: var(--auth-text);
}

.landing-trial-check {
    color: var(--auth-success);
    font-weight: 700;
    font-size: 15px;
}

/* ── LP: 料金プラン ────────────────── */
.landing-pricing {
    padding: 72px 0;
    background: var(--auth-surface);
}

.landing-pricing-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    align-items: start;
}

.landing-pricing-card {
    border: 1px solid var(--auth-border);
    border-radius: 4px;
    padding: 32px 24px;
    text-align: center;
    position: relative;
}

.landing-pricing-highlight {
    border-color: var(--auth-accent);
    border-width: 2px;
}

.landing-pricing-badge {
    position: absolute;
    top: -12px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--auth-accent);
    color: #fff;
    font-size: 11px;
    font-weight: 600;
    padding: 3px 14px;
    border-radius: 10px;
    letter-spacing: 0.06em;
}

.landing-pricing-name {
    font-size: 16px;
    font-weight: 700;
    color: var(--auth-ink);
    margin-bottom: 4px;
}

.landing-pricing-price {
    font-size: 32px;
    font-weight: 700;
    color: var(--auth-ink);
    margin-bottom: 16px;
}

.landing-pricing-price span {
    font-size: 14px;
    font-weight: 400;
    color: var(--auth-text-mid);
}

.landing-pricing-features {
    list-style: none;
    padding: 0;
    text-align: left;
    margin-bottom: 24px;
}

.landing-pricing-features li {
    padding: 5px 0;
    font-size: 13px;
    color: var(--auth-text-mid);
}

.landing-pricing-features li::before {
    content: "\2713 ";
    color: var(--auth-success);
    font-weight: bold;
}

.landing-pricing-btn {
    display: inline-block;
    width: 100%;
    padding: 12px;
    background: var(--auth-primary);
    color: #fff;
    text-decoration: none;
    font-size: 14px;
    font-weight: 600;
    border-radius: 3px;
    letter-spacing: 0.04em;
    box-sizing: border-box;
    text-align: center;
}

.landing-pricing-btn:hover {
    background: var(--auth-primary-hover);
}

.landing-pricing-btn-secondary {
    background: transparent;
    color: var(--auth-primary);
    border: 1px solid var(--auth-primary);
}

.landing-pricing-btn-secondary:hover {
    background: var(--auth-primary);
    color: #fff;
}

/* ── LP: フッター ──────────────────── */
.landing-footer {
    padding: 32px 0;
    background: var(--auth-bg);
    border-top: 1px solid var(--auth-border);
    text-align: center;
}

.landing-footer-source {
    font-size: 12px;
    color: var(--auth-text-mute);
    margin-bottom: 8px;
}

.landing-footer-links {
    font-size: 12px;
}

.landing-footer-links a {
    color: var(--auth-accent);
    text-decoration: none;
}

.landing-footer-links a:hover {
    color: var(--auth-accent-light);
}

.landing-footer-sep {
    color: var(--auth-text-mute);
    margin: 0 6px;
}

/* ── LP: レスポンシブ ──────────────── */
@media (max-width: 768px) {
    .landing-hero {
        padding: 56px 24px 48px;
    }

    .landing-hero-title {
        font-size: 26px;
    }

    .landing-hero-desc {
        font-size: 14px;
    }

    .landing-hero-desc br {
        display: none;
    }

    .landing-features-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .landing-pricing-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .landing-trial-card {
        padding: 24px 20px;
    }
}

@media (max-width: 480px) {
    .landing-header-inner {
        height: 52px;
    }

    .landing-logo-sub {
        display: none;
    }

    .landing-hero-title {
        font-size: 22px;
    }

    .landing-hero-title br {
        display: none;
    }

    .landing-hero-cta {
        width: 100%;
        box-sizing: border-box;
        text-align: center;
    }

    .landing-section-title {
        font-size: 18px;
        margin-bottom: 28px;
    }
}

/* ── レスポンシブ（タブレット） ────────── */
@media (max-width: 768px) {
    .account-actions {
        flex-direction: column;
    }

    .cookie-banner {
        flex-direction: column;
        gap: 10px;
        text-align: center;
        padding: 12px 16px;
    }
}

/* ── レスポンシブ（モバイル） ────────────── */
@media (max-width: 480px) {
    .auth-body {
        padding: 12px;
        align-items: flex-start;
        padding-top: 40px;
    }

    .auth-card {
        padding: 28px 20px;
        border-radius: 3px;
    }

    .auth-header {
        margin-bottom: 20px;
    }

    .auth-logo {
        font-size: 18px;
    }

    .auth-title {
        font-size: 16px;
        margin-bottom: 16px;
    }

    .auth-form {
        gap: 12px;
    }

    .auth-field input {
        padding: 9px 12px;
        font-size: 14px;
    }

    .auth-button {
        padding: 11px;
        font-size: 14px;
        min-height: 44px;
    }

    .pricing-card {
        padding: 16px;
    }

    .pricing-price {
        font-size: 24px;
    }

    .account-row {
        flex-direction: column;
        align-items: flex-start;
        gap: 4px;
    }

    .legal-card {
        padding: 28px 20px;
    }

    .legal-table th {
        width: 40%;
    }
}
