/* AIO/GEOスコア診断ツール - Similarweb風スタイルシート */

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

:root {
    --primary-color: #0066ff;
    --primary-hover: #0052cc;
    --bg-dark: #0a0e27;
    --bg-card: #1a1f3a;
    --bg-secondary: #252b47;
    --text-primary: #ffffff;
    --text-secondary: #b8c5d6;
    --text-muted: #8b95a8;
    --border-color: #2d3447;
    --success-color: #00d4aa;
    --warning-color: #ffb020;
    --error-color: #ff4757;
    --gradient-primary: linear-gradient(135deg, #0066ff 0%, #00d4aa 100%);
    --gradient-secondary: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}
html {
	scroll-behavior: smooth;
}
body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Hiragino Sans', 'Hiragino Kaku Gothic ProN', 'Meiryo', 'Noto Sans JP', sans-serif;
    line-height: 1.6;
    color: var(--text-primary);
    background: var(--bg-dark);
    min-height: 100vh;
}

.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 40px 20px;
}

header {
    text-align: center;
    margin-bottom: 20px;
    padding-bottom: 20px;
}

.site-name {
    font-size: 3rem;
    font-weight: 700;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 20px;
    letter-spacing: -0.02em;
}

h1 {
    font-size: 3rem;
    font-weight: 700;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 20px;
    letter-spacing: -0.02em;
}

.subtitle {
    color: var(--text-secondary);
    font-size: 1.1rem;
    max-width: 800px;
    margin: 0 auto;
    line-height: 1.8;
}

.subtitle a {
    color: var(--primary-color);
    text-decoration: none;
    transition: color 0.3s;
}

.subtitle a:hover {
    color: var(--primary-hover);
}

main {
    margin-bottom: 60px;
}

/* フォーム */
.diagnosis-form {
    background: var(--bg-card);
    padding: 40px;
    border-radius: 16px;
    border: 1px solid var(--border-color);
    max-width: 700px;
    margin: 0 auto;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
}

.form-group {
    margin-bottom: 24px;
}

.form-group label {
    display: block;
    margin-bottom: 12px;
    font-weight: 600;
    color: var(--text-primary);
    font-size: 0.95rem;
}

.form-group input[type="text"] {
    width: 100%;
    padding: 16px 20px;
    border: 2px solid var(--border-color);
    border-radius: 12px;
    font-size: 1rem;
    background: var(--bg-secondary);
    color: var(--text-primary);
    transition: all 0.3s;
}

.form-group input[type="text"]:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 4px rgba(0, 102, 255, 0.1);
}

.form-group input[type="text"]::placeholder {
    color: var(--text-muted);
}

.btn-primary {
    width: 100%;
    padding: 16px 24px;
    background: var(--gradient-primary);
    color: #fff;
    border: none;
    border-radius: 12px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    box-shadow: 0 4px 16px rgba(0, 102, 255, 0.3);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 24px rgba(0, 102, 255, 0.4);
}

.btn-primary:active {
    transform: translateY(0);
}

/* Hero メインCTA（診断するボタンと同じ色・iOSで確実に表示） */
.hero-cta-primary {
    background-color: #0066ff;
    background-image: -webkit-linear-gradient(135deg, #0066ff 0%, #00d4aa 100%);
    background-image: linear-gradient(135deg, #0066ff 0%, #00d4aa 100%);
    -webkit-tap-highlight-color: transparent;
    box-shadow: 0 4px 16px rgba(0, 102, 255, 0.3);
}
.hero-cta-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 24px rgba(0, 102, 255, 0.4);
}
.hero-cta-primary:active {
    transform: translateY(0);
}

.btn-secondary {
    display: inline-block;
    padding: 12px 24px;
    background: var(--bg-secondary);
    color: var(--text-primary);
    text-decoration: none;
    border-radius: 12px;
    font-weight: 600;
    transition: all 0.3s;
    border: 1px solid var(--border-color);
}

.btn-secondary:hover {
    background: var(--bg-card);
    border-color: var(--primary-color);
    color: var(--primary-color);
}

.error-message {
    max-width: 700px;
    margin: 0 auto 24px;
    padding: 16px 20px;
    background: rgba(255, 71, 87, 0.1);
    border: 1px solid var(--error-color);
    border-radius: 12px;
    color: var(--error-color);
}

.error-message p {
    margin: 0;
    font-weight: 600;
}

.notice {
    margin-top: 24px;
    padding: 20px;
    background: rgba(255, 176, 32, 0.1);
    border: 1px solid var(--warning-color);
    border-radius: 12px;
}

.notice p {
    margin-bottom: 8px;
    font-size: 0.9rem;
    color: var(--warning-color);
    line-height: 1.6;
}

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

.notice strong {
    color: var(--warning-color);
}

.faq {
    margin-top: 24px;
    padding: 20px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid #ffffff;
    border-radius: 12px;
}

.faq p {
    margin-bottom: 8px;
    font-size: 0.9rem;
    color: var(--text-secondary);
    line-height: 1.6;
}

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

.faq strong {
    color: #e0e0e0;
}

/* スコアセクション */
.score-section {
    margin-bottom: 40px;
    padding: 40px;
    background: var(--bg-card);
    border-radius: 16px;
    border: 1px solid var(--border-color);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
}

.score-section h2 {
    font-size: 1.8rem;
    margin-bottom: 32px;
    color: var(--text-primary);
    font-weight: 700;
}

.total-score {
    text-align: center;
    margin-bottom: 40px;
}

.score-circle {
    display: inline-block;
    width: 180px;
    height: 180px;
    border-radius: 50%;
    background: var(--gradient-primary);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: #fff;
    box-shadow: 0 8px 32px rgba(0, 102, 255, 0.4);
    position: relative;
    overflow: hidden;
}

.score-circle::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.1) 0%, transparent 70%);
}

.score-number {
    font-size: 4rem;
    font-weight: 700;
    line-height: 1;
    position: relative;
    z-index: 1;
}

.score-label {
    font-size: 1.1rem;
    margin-top: 8px;
    position: relative;
    z-index: 1;
    opacity: 0.9;
}

.score-breakdown {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
}

.score-item {
    padding: 24px;
    background: var(--bg-secondary);
    border-radius: 12px;
    border: 1px solid var(--border-color);
    transition: all 0.3s;
}

.score-item:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
}

.score-item.aio {
    border-left: 4px solid var(--primary-color);
}

.score-item.geo {
    border-left: 4px solid var(--success-color);
}

.score-item .score-label {
    font-weight: 600;
    margin-bottom: 12px;
    color: var(--text-primary);
    font-size: 0.95rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.score-item .score-value {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 16px;
    color: var(--text-primary);
}

.score-bar {
    height: 12px;
    background: var(--bg-dark);
    border-radius: 6px;
    overflow: hidden;
    position: relative;
}

.score-bar-fill {
    height: 100%;
    background: var(--gradient-primary);
    transition: width 0.5s ease-out;
    border-radius: 6px;
}

.score-item.geo .score-bar-fill {
    background: linear-gradient(90deg, var(--success-color) 0%, #00b894 100%);
}

.score-bar-small {
    height: 6px;
    background: var(--bg-dark);
    border-radius: 3px;
    overflow: hidden;
    margin-top: 8px;
}

/* 改善提案セクション */
.suggestions-section {
    margin-bottom: 40px;
    padding: 40px;
    background: var(--bg-card);
    border-radius: 16px;
    border: 1px solid var(--border-color);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
}

.suggestions-section h2 {
    font-size: 1.8rem;
    margin-bottom: 32px;
    color: var(--text-primary);
    font-weight: 700;
}

.suggestions-list {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.suggestion-item {
    display: flex;
    gap: 24px;
    padding: 24px;
    background: var(--bg-secondary);
    border-radius: 12px;
    border: 1px solid var(--border-color);
    border-left: 4px solid var(--warning-color);
    transition: all 0.3s;
}

.suggestion-item:hover {
    transform: translateX(4px);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.3);
}

.suggestion-number {
    flex-shrink: 0;
    width: 48px;
    height: 48px;
    background: var(--warning-color);
    color: #fff;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 1.4rem;
    box-shadow: 0 4px 12px rgba(255, 176, 32, 0.3);
}

.suggestion-content {
    flex: 1;
}

.suggestion-content h3 {
    font-size: 1.3rem;
    margin-bottom: 16px;
    color: var(--text-primary);
    font-weight: 600;
}

.suggestion-why,
.suggestion-how {
    margin-bottom: 16px;
}

.suggestion-why strong,
.suggestion-how strong {
    display: block;
    margin-bottom: 8px;
    color: var(--text-primary);
    font-weight: 600;
}

.suggestion-why p,
.suggestion-how p {
    color: var(--text-secondary);
    line-height: 1.8;
}

/* チェック項目セクション */
.items-section {
    margin-bottom: 40px;
    padding: 40px;
    background: var(--bg-card);
    border-radius: 16px;
    border: 1px solid var(--border-color);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
}

.items-section h2 {
    font-size: 1.8rem;
    margin-bottom: 32px;
    color: var(--text-primary);
    font-weight: 700;
}

.items-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 16px;
}

.item-card {
    padding: 20px;
    background: var(--bg-secondary);
    border-radius: 12px;
    border: 1px solid var(--border-color);
    border-left: 4px solid var(--text-muted);
    transition: all 0.3s;
}

.item-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.3);
}

.item-card.ok {
    border-left-color: var(--success-color);
}

.item-card.warning {
    border-left-color: var(--warning-color);
}

.item-card.ng {
    border-left-color: var(--error-color);
}

.item-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
}

.item-name {
    font-weight: 600;
    color: var(--text-primary);
}

.item-category {
    font-size: 0.75rem;
    padding: 4px 10px;
    background: var(--bg-dark);
    border-radius: 6px;
    color: var(--text-secondary);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.item-score {
    margin-bottom: 12px;
}

.score-text {
    font-size: 0.9rem;
    color: var(--text-secondary);
    font-weight: 600;
}

.item-note {
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-top: 8px;
    line-height: 1.5;
}

/* 抽出情報セクション */
.extracted-section {
    margin-bottom: 40px;
    padding: 40px;
    background: var(--bg-card);
    border-radius: 16px;
    border: 1px solid var(--border-color);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
}

.extracted-section h2 {
    font-size: 1.8rem;
    margin-bottom: 32px;
    color: var(--text-primary);
    font-weight: 700;
}

.extracted-info {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.info-row {
    padding: 16px 20px;
    background: var(--bg-secondary);
    border-radius: 12px;
    display: flex;
    gap: 16px;
    border: 1px solid var(--border-color);
    transition: all 0.3s;
}

.info-row:hover {
    background: var(--bg-card);
    border-color: var(--primary-color);
}

.info-row strong {
    min-width: 180px;
    color: var(--text-primary);
    font-weight: 600;
}

.info-row span {
    color: var(--text-secondary);
    word-break: break-all;
    flex: 1;
}

.extracted-info .ogp-preview-image {
    max-width: 240px;
    height: auto;
    display: block;
    border-radius: 8px;
    margin-top: 8px;
}

.actions {
    text-align: center;
    margin-top: 40px;
}

footer {
    text-align: center;
    padding-top: 40px;
    border-top: 1px solid var(--border-color);
    color: var(--text-muted);
    font-size: 0.9rem;
}

footer a {
    color: #4da6ff;
    text-decoration: none;
    transition: color 0.3s;
}

footer a:hover {
    color: #ffffff;
}

.footer-links,
.sns-links,
.contact-info {
    margin-top: 5px;
}

.footer-links a,
.sns-links a,
.contact-info a {
    color: #4da6ff;
    text-decoration: none;
    transition: color 0.3s;
    margin: 0 8px;
}

.footer-links a:hover,
.sns-links a:hover,
.contact-info a:hover {
    color: #ffffff;
}

/* レスポンシブ */
@media (max-width: 768px) {
    .container {
        padding: 20px 16px;
    }
    
    h1 {
        font-size: 2rem;
    }

    .site-name {
        font-size: 2rem;
    }
    
    .subtitle {
        font-size: 1rem;
    }
    
    .diagnosis-form {
        padding: 24px;
    }
    
    .score-section,
    .suggestions-section,
    .items-section,
    .extracted-section {
        padding: 24px;
    }
    
    .score-circle {
        width: 140px;
        height: 140px;
    }
    
    .score-number {
        font-size: 3rem;
    }
    
    .score-breakdown {
        grid-template-columns: 1fr;
    }
    
    .items-list {
        grid-template-columns: 1fr;
    }
    
    .suggestion-item {
        flex-direction: column;
    }
    
    .info-row {
        flex-direction: column;
        gap: 8px;
    }
    
    .info-row strong {
        min-width: auto;
    }
}

.update-date {
    text-align: center;
    margin-top: 24px;
    padding: 16px;
}

.update-date p {
    margin: 0;
    color: var(--text-muted);
    font-size: 0.9rem;
}
