/* ===== Page Hero ===== */
.page-hero {
    background: var(--color-navy);
    padding: 160px 0 80px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.page-hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse at center, rgba(247,148,29,0.1) 0%, transparent 70%);
}

.page-hero .container { position: relative; z-index: 1; }

.page-hero-label {
    display: inline-block;
    color: var(--color-orange);
    font-weight: 700;
    font-size: 0.78rem;
    letter-spacing: 0.2em;
    margin-bottom: 16px;
}

.page-hero h1 {
    font-size: clamp(1.8rem, 4vw, 2.8rem);
    font-weight: 900;
    color: var(--color-white);
    line-height: 1.3;
    margin-bottom: 16px;
}

.page-hero-sub {
    color: rgba(255,255,255,0.6);
    font-size: 1rem;
}

/* ===== Account Page ===== */
.account-body {
    padding: 60px 0 100px;
    background: var(--color-bg);
    min-height: 60vh;
}

.account-wrap {
    max-width: 720px;
    margin: 0 auto;
}

/* ローディング */
.account-loading {
    display: flex;
    justify-content: center;
    padding: 80px 0;
}

.loading-spinner {
    width: 48px;
    height: 48px;
    border: 4px solid rgba(247,148,29,0.2);
    border-top-color: var(--color-orange);
    border-radius: 50%;
    animation: acSpin 0.8s linear infinite;
}

@keyframes acSpin { to { transform: rotate(360deg); } }

/* ログインカード */
.account-card {
    background: var(--color-white);
    border-radius: var(--radius);
    padding: 60px 40px;
    text-align: center;
    box-shadow: 0 4px 24px rgba(0,0,0,0.06);
}

.account-login-icon img {
    width: 100px;
    height: auto;
    margin-bottom: 24px;
    animation: solaAcBounce 3s ease-in-out infinite;
}

@keyframes solaAcBounce {
    0%, 100% { transform: translateY(0); }
    50%       { transform: translateY(-10px); }
}

.account-card h2 {
    font-size: 1.4rem;
    font-weight: 900;
    color: var(--color-text);
    margin-bottom: 12px;
}

.account-card > p {
    color: var(--color-text-muted);
    font-size: 0.9rem;
    line-height: 1.8;
    margin-bottom: 32px;
}

/* Googleログインボタン */
.btn-google {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: var(--color-orange);
    color: var(--color-white);
    border: none;
    border-radius: 50px;
    padding: 14px 36px;
    font-size: 1rem;
    font-weight: 700;
    cursor: pointer;
    transition: background 0.2s, transform 0.2s;
    font-family: var(--font-main);
}

.btn-google:hover {
    background: var(--color-orange-light);
    transform: translateY(-2px);
}

/* プロフィール */
.account-profile {
    background: var(--color-white);
    border-radius: var(--radius);
    padding: 24px 32px;
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 24px;
    box-shadow: 0 2px 12px rgba(0,0,0,0.06);
}

.account-avatar {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    object-fit: cover;
    flex-shrink: 0;
    border: 2px solid rgba(247,148,29,0.3);
}

.account-profile-info { flex: 1; }

.account-name {
    font-weight: 700;
    font-size: 1rem;
    color: var(--color-text);
    margin-bottom: 2px;
}

.account-email {
    font-size: 0.85rem;
    color: var(--color-text-muted);
}

.btn-logout {
    background: transparent;
    border: 1px solid #ddd;
    border-radius: 50px;
    padding: 8px 20px;
    font-size: 0.85rem;
    color: var(--color-text-muted);
    cursor: pointer;
    transition: var(--transition);
    white-space: nowrap;
    font-family: var(--font-main);
}

.btn-logout:hover {
    border-color: var(--color-orange);
    color: var(--color-orange);
}

/* APIキーセクション */
.account-section {
    background: var(--color-white);
    border-radius: var(--radius);
    padding: 32px;
    box-shadow: 0 2px 12px rgba(0,0,0,0.06);
}

.account-section h2 {
    font-size: 1.2rem;
    font-weight: 900;
    color: var(--color-text);
    margin-bottom: 8px;
}

.account-section > p {
    font-size: 0.88rem;
    color: var(--color-text-muted);
    line-height: 1.8;
    margin-bottom: 24px;
}

.account-apikey-wrap {
    margin-bottom: 24px;
}

.apikey-input-row {
    display: flex;
    gap: 8px;
    margin-bottom: 8px;
}

.apikey-input {
    flex: 1;
    border: 1px solid #ddd;
    border-radius: 8px;
    padding: 12px 16px;
    font-size: 0.9rem;
    font-family: monospace;
    color: var(--color-text);
    outline: none;
    transition: border-color 0.2s;
}

.apikey-input:focus { border-color: var(--color-orange); }

.apikey-toggle {
    background: #f5f5f5;
    border: 1px solid #ddd;
    border-radius: 8px;
    padding: 12px 14px;
    cursor: pointer;
    font-size: 1rem;
    transition: background 0.2s;
}

.apikey-toggle:hover { background: #eee; }

.apikey-status {
    font-size: 0.82rem;
    min-height: 1.2em;
    margin-bottom: 16px;
    font-weight: 700;
}

.apikey-status--success { color: #10b981; }
.apikey-status--warning { color: #f59e0b; }
.apikey-status--error   { color: #ef4444; }

.apikey-actions {
    display: flex;
    gap: 16px;
    align-items: center;
}

.btn-text-danger {
    background: none;
    border: none;
    color: #ef4444;
    font-size: 0.85rem;
    cursor: pointer;
    padding: 0;
    text-decoration: underline;
    font-family: var(--font-main);
}

.btn-text-danger:hover { opacity: 0.75; }

/* APIキー取得ガイド */
.apikey-guide {
    background: var(--color-bg);
    border-radius: 8px;
    padding: 20px 24px;
    margin-top: 12px;
}

.apikey-guide-title {
    font-weight: 700;
    font-size: 0.85rem;
    color: var(--color-text);
    margin-bottom: 10px;
}

.apikey-guide ol {
    padding-left: 20px;
    font-size: 0.85rem;
    color: var(--color-text-muted);
    line-height: 2;
}

/* Responsive */
@media (max-width: 768px) {
    .account-card { padding: 40px 24px; }
    .account-profile { flex-wrap: wrap; padding: 20px; }
    .account-section { padding: 24px 20px; }
    .apikey-input-row { flex-direction: column; }
    .apikey-actions { flex-wrap: wrap; }
}
