/* リセット & ベーススタイル */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-color: #0066cc;
    --primary-dark: #0052a3;
    --secondary-color: #003d7a;
    --accent-color: #00a0e9;
    --text-color: #333333;
    --text-light: #666666;
    --bg-color: #ffffff;
    --header-bg-color: #ffffff;
    --bg-light: #f5f9fa;
    --border-color: #e0e0e0;
    --success-color: #28a745;
    --warning-color: #ffc107;
    --error-color: #dc3545;
    --shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    --shadow-hover: 0 4px 16px rgba(0, 0, 0, 0.15);

    /* ネットビジネス型別カラー */
    --color-content: #9c27b0;
    --color-content-dark: #7b1fa2;
    --color-service: #ff9800;
    --color-service-dark: #f57c00;
    --color-product: #2196f3;
    --color-product-dark: #1976d2;
    --color-platform: #4caf50;
    --color-platform-dark: #388e3c;
    --color-affiliate: #e91e63;
    --color-affiliate-dark: #c2185b;
    --color-adbased: #ffc107;
    --color-adbased-dark: #ffa000;
    --color-membership: #f44336;
    --color-membership-dark: #d32f2f;
    --color-intermediation: #795548;
    --color-intermediation-dark: #5d4037;
    --color-network: #ff5722;
    --color-network-dark: #e64a19;
    --color-insight: #00bcd4;
    --color-insight-dark: #0097a7;
    --color-system: #607d8b;
    --color-system-dark: #455a64;
    --color-hybrid-start: #28a745;
    --color-hybrid-middle: #20c997;
    --color-hybrid-end: #17a2b8;
}

body {
    font-family: 'Yu Gothic', 'Hiragino Kaku Gothic ProN', 'Hiragino Sans', 'Meiryo', 'MS PGothic', sans-serif;
    color: var(--text-color);
    line-height: 1.6;
    background-color: var(--bg-color);
    background-image:
        linear-gradient(to right, rgba(11, 11, 11, 0.05) 1px, transparent 1px),
        linear-gradient(to bottom, rgba(0, 0, 0, 0.05) 1px, transparent 1px);
    background-size: 20px 20px;
    background-position: 0 0, 0 0;
}

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

/* ヘッダー */
.header {
    background: var(--primary-color);
    color: white;
    padding: 30px 0 0;
    box-shadow: var(--shadow);
}

.logo {
    font-size: 2.5rem;
    font-weight: bold;
    margin-bottom: 10px;
    text-align: center;
}

.subtitle {
    text-align: center;
    font-size: 1.1rem;
    opacity: 0.95;
}

/* グローバルメニュー */
.global-nav {
    background-color: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border-top: 1px solid rgba(255, 255, 255, 0.2);
    padding: 0;
    margin: 20px 0 0;
}

.global-nav .container {
    display: flex;
    justify-content: center;
    align-items: center;
}

.global-nav-list {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
    gap: 0;
}

.global-nav-item {
    margin: 0;
}

.global-nav-link {
    display: block;
    padding: 15px 20px;
    color: white;
    text-decoration: none;
    font-size: 1rem;
    font-weight: 500;
    transition: all 0.3s ease;
    border-bottom: 3px solid transparent;
}

.global-nav-link:hover {
    background-color: rgba(255, 255, 255, 0.15);
    border-bottom-color: white;
}

.global-nav-link.active {
    background-color: rgba(255, 255, 255, 0.2);
    border-bottom-color: white;
}

/* ハンバーガーメニューボタン */
.hamburger-btn {
    display: none;
    flex-direction: column;
    justify-content: space-around;
    width: 30px;
    height: 30px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0;
    z-index: 1001;
    position: relative;
}

.hamburger-btn span {
    width: 100%;
    height: 3px;
    background-color: white;
    border-radius: 3px;
    transition: all 0.3s ease;
    transform-origin: center;
}

.hamburger-btn.active span:nth-child(1) {
    transform: rotate(45deg) translate(8px, 8px);
}

.hamburger-btn.active span:nth-child(2) {
    opacity: 0;
}

.hamburger-btn.active span:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -7px);
}

/* モバイルメニュー */
@media (max-width: 768px) {
    .global-nav {
        position: relative;
    }

    .global-nav .container {
        flex-direction: row;
        align-items: center;
        justify-content: end;
        padding: 10px 20px;
        position: relative;
    }

    .hamburger-btn {
        display: flex;
        position: relative;
        top: auto;
        right: auto;
    }

    .global-nav-list {
        flex-direction: column;
        width: 100%;
        position: absolute;
        top: 100%;
        left: 0;
        background-color: rgba(0, 51, 122, 0.98);
        backdrop-filter: blur(10px);
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.3s ease;
        z-index: 1000;
        box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    }

    .global-nav-list.active {
        max-height: 500px;
    }

    .global-nav-item {
        width: 100%;
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    }

    .global-nav-link {
        padding: 15px 20px;
        width: 100%;
        border-bottom: none;
    }

    .global-nav-link:hover,
    .global-nav-link.active {
        background-color: rgba(255, 255, 255, 0.2);
        border-bottom: none;
    }
}

/* ヒーローセクション */
.hero {
    background: var(--header-bg-color);
    padding: 60px 0;
    text-align: center;
}

.hero-title {
    font-size: 2rem;
    font-weight: bold;
    color: var(--primary-color);
    margin-bottom: 20px;
    line-height: 1.4;
}

.hero-description {
    font-size: 1.1rem;
    color: var(--text-light);
    line-height: 1.8;
}

/* 診断フォーム */
.diagnosis-section {
    padding: 60px 0;
}

.diagnosis-form-wrapper {
    max-width: 800px;
    margin: 0 auto;
    background: white;
    padding: 40px;
    border-radius: 8px;
    box-shadow: var(--shadow);
}

.form-title {
    font-size: 1.8rem;
    color: var(--primary-color);
    margin-bottom: 30px;
    text-align: center;
    padding-bottom: 15px;
    border-bottom: 3px solid var(--primary-color);
}

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

.group-title {
    font-size: 1.3rem;
    color: var(--secondary-color);
    margin-bottom: 20px;
    padding-left: 10px;
    border-left: 4px solid var(--primary-color);
}

.question {
    margin-bottom: 25px;
}

.question label {
    font-weight: bold;
    margin-bottom: 10px;
    color: var(--text-color);
    font-size: 1rem;
}

.radio-group {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.radio-label {
    display: flex;
    align-items: center;
    padding: 12px 15px;
    border: 2px solid var(--border-color);
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.3s ease;
    background-color: var(--bg-light);
}

.radio-label:hover {
    border-color: var(--primary-color);
    background-color: #e8f0f8;
}

.radio-label input[type="radio"] {
    margin-right: 10px;
    width: 18px;
    height: 18px;
    cursor: pointer;
}

.radio-label input[type="radio"]:checked+span {
    color: var(--primary-color);
    font-weight: bold;
}

.radio-label:has(input[type="radio"]:checked) {
    border-color: var(--primary-color);
    background-color: #e8f0f8;
}

.submit-btn {
    width: 100%;
    padding: 18px;
    font-size: 1.2rem;
    font-weight: bold;
    color: white;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    border: none;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-top: 30px;
    box-shadow: var(--shadow);
}

.submit-btn:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-hover);
}

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

/* 特徴セクション */
.features-section {
    padding: 60px 0;
    background-color: var(--bg-light);
}

.section-title {
    font-size: 2rem;
    color: var(--primary-color);
    text-align: center;
    margin-bottom: 40px;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
}

.feature-card {
    background: white;
    padding: 30px;
    border-radius: 8px;
    box-shadow: var(--shadow);
    transition: all 0.3s ease;
}

.feature-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-hover);
}

.feature-card h4 {
    font-size: 1.3rem;
    color: var(--primary-color);
    margin-bottom: 15px;
}

.feature-card p {
    color: var(--text-light);
    line-height: 1.8;
}

/* 診断結果ページ */
.result-section {
    padding: 60px 0;
}

.result-card {
    max-width: 1000px;
    margin: 0 auto;
    background: white;
    padding: 40px;
    border-radius: 8px;
    box-shadow: var(--shadow);
}

.result-title {
    font-size: 2rem;
    color: var(--primary-color);
    text-align: center;
    margin-bottom: 40px;
    padding-bottom: 20px;
    border-bottom: 3px solid var(--primary-color);
}

/* 占い師風の診断文 */
.fortune-reading {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    padding: 40px;
    border-radius: 12px;
    margin: 40px 0;
    border-left: 5px solid var(--primary-color);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.fortune-title {
    font-size: 1.8rem;
    color: var(--primary-color);
    text-align: center;
    margin-bottom: 30px;
    font-weight: bold;
}

.fortune-content {
    line-height: 2;
}

.fortune-paragraph {
    font-size: 1.2rem;
    color: var(--secondary-color);
    margin-top: 25px;
    margin-bottom: 15px;
    font-weight: bold;
    border-bottom: 2px solid var(--border-color);
    padding-bottom: 8px;
}

.fortune-paragraph:first-child {
    margin-top: 0;
}

.fortune-text {
    font-size: 1.1rem;
    color: var(--text-color);
    line-height: 2;
    margin-bottom: 20px;
    text-align: justify;
}

/* 上位3タイプセクション */
.top-types-section {
    margin-top: 50px;
}

.section-description {
    text-align: center;
    color: var(--text-light);
    margin-bottom: 30px;
    font-size: 1rem;
}

.recommended-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 25px;
    margin-top: 30px;
}

.result-business-card {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: all 0.3s ease;
    border: 2px solid transparent;
    cursor: pointer;
}

.result-business-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-hover);
}

.result-business-card[data-rank="1"] {
    border-color: #ffd700;
    box-shadow: 0 4px 16px rgba(255, 215, 0, 0.3);
}

.result-business-card[data-rank="2"] {
    border-color: #c0c0c0;
    box-shadow: 0 4px 16px rgba(192, 192, 192, 0.3);
}

.result-business-card[data-rank="3"] {
    border-color: #cd7f32;
    box-shadow: 0 4px 16px rgba(205, 127, 50, 0.3);
}

.result-business-card-header {
    padding: 20px;
    color: white;
    position: relative;
}

.result-business-card[data-business="content"] .result-business-card-header {
    background: linear-gradient(135deg, var(--color-content) 0%, var(--color-content-dark) 100%);
}

.result-business-card[data-business="service"] .result-business-card-header {
    background: linear-gradient(135deg, var(--color-service) 0%, var(--color-service-dark) 100%);
}

.result-business-card[data-business="product"] .result-business-card-header {
    background: linear-gradient(135deg, var(--color-product) 0%, var(--color-product-dark) 100%);
}

.result-business-card[data-business="platform"] .result-business-card-header {
    background: linear-gradient(135deg, var(--color-platform) 0%, var(--color-platform-dark) 100%);
}

.result-business-card[data-business="affiliate"] .result-business-card-header {
    background: linear-gradient(135deg, var(--color-affiliate) 0%, var(--color-affiliate-dark) 100%);
}

.result-business-card[data-business="adBased"] .result-business-card-header {
    background: linear-gradient(135deg, var(--color-adbased) 0%, var(--color-adbased-dark) 100%);
}

.result-business-card[data-business="membership"] .result-business-card-header {
    background: linear-gradient(135deg, var(--color-membership) 0%, var(--color-membership-dark) 100%);
}

.result-business-card[data-business="intermediation"] .result-business-card-header {
    background: linear-gradient(135deg, var(--color-intermediation) 0%, var(--color-intermediation-dark) 100%);
}

.result-business-card[data-business="network"] .result-business-card-header {
    background: linear-gradient(135deg, var(--color-network) 0%, var(--color-network-dark) 100%);
}

.result-business-card[data-business="insight"] .result-business-card-header {
    background: linear-gradient(135deg, var(--color-insight) 0%, var(--color-insight-dark) 100%);
}

.result-business-card[data-business="system"] .result-business-card-header {
    background: linear-gradient(135deg, var(--color-system) 0%, var(--color-system-dark) 100%);
}

.result-business-card[data-business="hybrid"] .result-business-card-header {
    background: linear-gradient(135deg, var(--color-hybrid-start) 0%, var(--color-hybrid-middle) 50%, var(--color-hybrid-end) 100%);
}

.rank-badge {
    display: inline-block;
    background-color: rgba(255, 255, 255, 0.3);
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: bold;
    margin-bottom: 10px;
}

.result-business-card-header h4 {
    font-size: 1.4rem;
    margin: 0;
    font-weight: bold;
}

.result-business-card-body {
    padding: 20px;
}

.result-business-card-body p {
    color: var(--text-color);
    line-height: 1.8;
    margin-bottom: 10px;
}

.top-type-badge {
    background: linear-gradient(135deg, #ffd700 0%, #ffed4e 100%);
    color: #333;
    padding: 10px 15px;
    border-radius: 6px;
    text-align: center;
    font-weight: bold;
    margin-top: 15px;
    font-size: 0.95rem;
}

.result-type {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--accent-color) 100%);
    color: white;
    padding: 25px;
    border-radius: 8px;
    margin-bottom: 30px;
    text-align: center;
}

/* 診断結果ページの型別カラー */
.result-type[data-type="content"] {
    background: linear-gradient(135deg, var(--color-content) 0%, var(--color-content-dark) 100%);
}

.result-type[data-type="service"] {
    background: linear-gradient(135deg, var(--color-service) 0%, var(--color-service-dark) 100%);
}

.result-type[data-type="product"] {
    background: linear-gradient(135deg, var(--color-product) 0%, var(--color-product-dark) 100%);
}

.result-type[data-type="platform"] {
    background: linear-gradient(135deg, var(--color-platform) 0%, var(--color-platform-dark) 100%);
}

.result-type[data-type="affiliate"] {
    background: linear-gradient(135deg, var(--color-affiliate) 0%, var(--color-affiliate-dark) 100%);
}

.result-type[data-type="adBased"] {
    background: linear-gradient(135deg, var(--color-adbased) 0%, var(--color-adbased-dark) 100%);
}

.result-type[data-type="membership"] {
    background: linear-gradient(135deg, var(--color-membership) 0%, var(--color-membership-dark) 100%);
}

.result-type[data-type="intermediation"] {
    background: linear-gradient(135deg, var(--color-intermediation) 0%, var(--color-intermediation-dark) 100%);
}

.result-type[data-type="network"] {
    background: linear-gradient(135deg, var(--color-network) 0%, var(--color-network-dark) 100%);
}

.result-type[data-type="insight"] {
    background: linear-gradient(135deg, var(--color-insight) 0%, var(--color-insight-dark) 100%);
}

.result-type[data-type="system"] {
    background: linear-gradient(135deg, var(--color-system) 0%, var(--color-system-dark) 100%);
}

.result-type[data-type="hybrid"] {
    background: linear-gradient(135deg, var(--color-hybrid-start) 0%, var(--color-hybrid-middle) 50%, var(--color-hybrid-end) 100%);
}

/* 推奨リストの型別カラー */
.recommended-list li[data-type="content"] {
    border-left-color: var(--color-content);
}

.recommended-list li[data-type="service"] {
    border-left-color: var(--color-service);
}

.recommended-list li[data-type="product"] {
    border-left-color: var(--color-product);
}

.recommended-list li[data-type="platform"] {
    border-left-color: var(--color-platform);
}

.recommended-list li[data-type="affiliate"] {
    border-left-color: var(--color-affiliate);
}

.recommended-list li[data-type="adBased"] {
    border-left-color: var(--color-adbased);
}

.recommended-list li[data-type="membership"] {
    border-left-color: var(--color-membership);
}

.recommended-list li[data-type="intermediation"] {
    border-left-color: var(--color-intermediation);
}

.recommended-list li[data-type="network"] {
    border-left-color: var(--color-network);
}

.recommended-list li[data-type="insight"] {
    border-left-color: var(--color-insight);
}

.recommended-list li[data-type="system"] {
    border-left-color: var(--color-system);
}

.recommended-list li[data-type="hybrid"] {
    border-left-color: var(--color-hybrid-start);
}

.result-type h3 {
    font-size: 1.5rem;
    margin-bottom: 10px;
}

.result-section-title {
    font-size: 1.3rem;
    color: var(--secondary-color);
    margin: 30px 0 15px 0;
    padding-bottom: 10px;
    border-bottom: 2px solid var(--border-color);
}

.recommended-list,
.not-recommended-list {
    list-style: none;
    padding-left: 0;
}

.recommended-list li,
.not-recommended-list li {
    padding: 12px 15px;
    margin-bottom: 10px;
    border-radius: 6px;
    border-left: 4px solid;
}

.recommended-list li {
    background-color: #e8f5e9;
    border-left-color: var(--success-color);
}

.not-recommended-list li {
    background-color: #fff3e0;
    border-left-color: var(--warning-color);
}

.action-steps {
    background-color: var(--bg-light);
    padding: 25px;
    border-radius: 8px;
    margin-top: 20px;
}

.action-steps ol {
    padding-left: 25px;
}

.action-steps li {
    margin-bottom: 10px;
    line-height: 1.8;
}

.back-btn {
    display: inline-block;
    margin-top: 30px;
    padding: 12px 30px;
    background-color: var(--primary-color);
    color: white;
    text-decoration: none;
    border-radius: 6px;
    transition: all 0.3s ease;
}

.back-btn:hover {
    background-color: var(--primary-dark);
    transform: translateY(-2px);
}

/* SNS共有セクション */
.share-section {
    margin: 40px 0;
    padding: 30px;
    background: linear-gradient(135deg, #f5f9fa 0%, #e8f4f8 100%);
    border-radius: 12px;
    text-align: center;
}

.share-buttons {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 15px;
    margin-top: 25px;
}

.share-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 24px;
    border: none;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    color: white;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

.share-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

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

.share-btn svg {
    flex-shrink: 0;
}

.share-btn-x {
    background-color: #000000;
}

.share-btn-x:hover {
    background-color: #333333;
}

.share-btn-facebook {
    background-color: #1877F2;
}

.share-btn-facebook:hover {
    background-color: #166fe5;
}

.share-btn-instagram {
    background: linear-gradient(45deg, #f09433 0%, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888 100%);
}

.share-btn-instagram:hover {
    background: linear-gradient(45deg, #ffa64d 0%, #ff7a5c 25%, #e6683c 50%, #d63666 75%, #c62898 100%);
}

.share-btn-line {
    background-color: #06C755;
}

.share-btn-line:hover {
    background-color: #05b84a;
}

.share-btn-copy {
    background-color: var(--primary-color);
}

.share-btn-copy:hover {
    background-color: var(--primary-dark);
}

/* コピー通知 */
.copy-notification {
    position: fixed;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%) translateY(100px);
    background-color: var(--success-color);
    color: white;
    padding: 15px 30px;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
    z-index: 10000;
    opacity: 0;
    transition: all 0.3s ease;
    font-weight: 600;
}

.copy-notification.show {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
}

/* モバイル対応 */
@media (max-width: 768px) {
    .share-buttons {
        flex-direction: column;
        align-items: stretch;
    }

    .share-btn {
        width: 100%;
        justify-content: center;
    }

    .share-section {
        padding: 20px;
    }
}

/* ネットビジネス一覧 */
.businesses-section {
    padding: 60px 0;
}

.businesses-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.business-card {
    background: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: all 0.3s ease;
    cursor: pointer;
}

.business-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-hover);
}

.business-card-header {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--accent-color) 100%);
    color: white;
    padding: 20px;
}

/* ネットビジネス型別カラー */
.business-card[data-business="content"] .business-card-header {
    background: linear-gradient(135deg, var(--color-content) 0%, var(--color-content-dark) 100%);
}

.business-card[data-business="service"] .business-card-header {
    background: linear-gradient(135deg, var(--color-service) 0%, var(--color-service-dark) 100%);
}

.business-card[data-business="product"] .business-card-header {
    background: linear-gradient(135deg, var(--color-product) 0%, var(--color-product-dark) 100%);
}

.business-card[data-business="platform"] .business-card-header {
    background: linear-gradient(135deg, var(--color-platform) 0%, var(--color-platform-dark) 100%);
}

.business-card[data-business="affiliate"] .business-card-header {
    background: linear-gradient(135deg, var(--color-affiliate) 0%, var(--color-affiliate-dark) 100%);
}

.business-card[data-business="adBased"] .business-card-header {
    background: linear-gradient(135deg, var(--color-adbased) 0%, var(--color-adbased-dark) 100%);
}

.business-card[data-business="membership"] .business-card-header {
    background: linear-gradient(135deg, var(--color-membership) 0%, var(--color-membership-dark) 100%);
}

.business-card[data-business="intermediation"] .business-card-header {
    background: linear-gradient(135deg, var(--color-intermediation) 0%, var(--color-intermediation-dark) 100%);
}

.business-card[data-business="network"] .business-card-header {
    background: linear-gradient(135deg, var(--color-network) 0%, var(--color-network-dark) 100%);
}

.business-card[data-business="insight"] .business-card-header {
    background: linear-gradient(135deg, var(--color-insight) 0%, var(--color-insight-dark) 100%);
}

.business-card[data-business="system"] .business-card-header {
    background: linear-gradient(135deg, var(--color-system) 0%, var(--color-system-dark) 100%);
}

.business-card[data-business="hybrid"] .business-card-header {
    background: linear-gradient(135deg, var(--color-hybrid-start) 0%, var(--color-hybrid-middle) 50%, var(--color-hybrid-end) 100%);
}

.business-card-header h3 {
    font-size: 1.3rem;
}

.business-card-body {
    padding: 20px;
}

.business-card-body p {
    color: var(--text-light);
    line-height: 1.8;
    margin-bottom: 15px;
}

.business-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.tag {
    background-color: var(--bg-light);
    color: var(--primary-color);
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 0.85rem;
}

/* 詳細ページ */
.detail-section {
    padding: 60px 0;
}

.detail-card {
    max-width: 900px;
    margin: 0 auto;
    background: white;
    padding: 40px;
    border-radius: 8px;
    box-shadow: var(--shadow);
}

.detail-header {
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 3px solid var(--primary-color);
}

.detail-header h2 {
    font-size: 2rem;
    color: var(--primary-color);
    margin-bottom: 15px;
}

.detail-header h2 {
    font-size: 2rem;
    color: var(--primary-color);
    margin-bottom: 15px;
}

.detail-image {
    margin: 30px 0;
    text-align: center;
}

.detail-image img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    box-shadow: var(--shadow);
}

.detail-content {
    line-height: 1.8;
}

.detail-content h3 {
    font-size: 1.4rem;
    color: var(--secondary-color);
    margin: 25px 0 15px 0;
}

.detail-content ul,
.detail-content ol {
    margin-left: 25px;
    margin-bottom: 20px;
}

.detail-content li {
    margin-bottom: 8px;
}

/* 学術的根拠ページ */
.academic-section {
    padding: 60px 0;
}

.academic-content {
    max-width: 900px;
    margin: 0 auto;
    background: white;
    padding: 40px;
    border-radius: 8px;
    box-shadow: var(--shadow);
}

.academic-content h2 {
    font-size: 1.8rem;
    color: var(--primary-color);
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 2px solid var(--border-color);
}

.academic-content h3 {
    font-size: 1.4rem;
    color: var(--secondary-color);
    margin: 30px 0 15px 0;
}

.academic-content h4 {
    font-size: 1.2rem;
    color: var(--text-color);
    margin: 20px 0 10px 0;
}

.academic-content p {
    line-height: 1.8;
    margin-bottom: 15px;
}

.academic-content ul,
.academic-content ol {
    margin-left: 25px;
    margin-bottom: 20px;
}

.academic-content li {
    margin-bottom: 8px;
}

.academic-content table {
    width: 100%;
    border-collapse: collapse;
    margin: 20px 0;
}

.academic-content table th,
.academic-content table td {
    padding: 12px;
    border: 1px solid var(--border-color);
    text-align: left;
}

.academic-content table th {
    background-color: var(--bg-light);
    font-weight: bold;
}

.academic-content blockquote {
    border-left: 4px solid var(--primary-color);
    padding-left: 20px;
    margin: 20px 0;
    font-style: italic;
    color: var(--text-light);
}

/* プライバシーポリシー・お問い合わせ */
.content-section {
    padding: 60px 0;
}

.content-card {
    max-width: 800px;
    margin: 0 auto;
    background: white;
    padding: 40px;
    border-radius: 8px;
    box-shadow: var(--shadow);
}

.content-card h2 {
    font-size: 2rem;
    color: var(--primary-color);
    margin-bottom: 30px;
    padding-bottom: 15px;
    border-bottom: 3px solid var(--primary-color);
}

.content-card h3 {
    font-size: 1.4rem;
    color: var(--secondary-color);
    margin: 25px 0 15px 0;
}

.content-card p {
    line-height: 1.8;
    margin-bottom: 15px;
}

.content-card ul,
.content-card ol {
    margin-left: 25px;
    margin-bottom: 20px;
}

.content-card li {
    margin-bottom: 8px;
}

.contact-form {
    margin-top: 30px;
}

.form-field {
    margin-bottom: 20px;
}

.form-field label {
    display: block;
    font-weight: bold;
    margin-bottom: 8px;
    color: var(--text-color);
}

.form-field input,
.form-field textarea {
    width: 100%;
    padding: 12px;
    border: 2px solid var(--border-color);
    border-radius: 6px;
    font-size: 1rem;
    font-family: inherit;
    transition: border-color 0.3s ease;
}

.form-field input:focus,
.form-field textarea:focus {
    outline: none;
    border-color: var(--primary-color);
}

.form-field textarea {
    min-height: 150px;
    resize: vertical;
}

/* フッター */
.footer {
    background-color: var(--secondary-color);
    color: white;
    padding: 40px 0 20px 0;
    margin-top: 60px;
}

.footer-nav {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 20px;
    margin-bottom: 20px;
}

.footer-nav a {
    color: white;
    text-decoration: none;
    transition: opacity 0.3s ease;
}

.footer-nav a:hover {
    opacity: 0.8;
}

.copyright {
    text-align: center;
    font-size: 0.9rem;
    opacity: 0.8;
}

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

    .subtitle {
        font-size: 1rem;
    }

    .hero-title {
        font-size: 1.5rem;
    }

    .hero-description {
        font-size: 1rem;
    }

    .diagnosis-form-wrapper {
        padding: 20px;
    }

    .form-title {
        font-size: 1.5rem;
    }

    .features-grid {
        grid-template-columns: 1fr;
    }

    .businesses-grid {
        grid-template-columns: 1fr;
    }

    .footer-nav {
        flex-direction: column;
        align-items: center;
        gap: 10px;
    }

    .fortune-reading {
        padding: 25px 20px;
    }

    .fortune-title {
        font-size: 1.5rem;
    }

    .fortune-paragraph {
        font-size: 1.1rem;
    }

    .fortune-text {
        font-size: 1rem;
    }

    .recommended-cards {
        grid-template-columns: 1fr;
    }

    .result-card {
        padding: 20px;
    }

    .detail-card {
        padding: 20px;
    }
    .container {
        padding: 0;
    }
}

/* 比較表のスタイル */
.comparison-table-section {
    margin-top: 60px;
}

.table-wrapper {
    overflow-x: auto;
    margin-bottom: 40px;
    box-shadow: var(--shadow);
    border-radius: 8px;
    background: var(--bg-color);
}

.comparison-table {
    width: 100%;
    border-collapse: collapse;
    background: var(--bg-color);
    font-size: 0.95rem;
}

.comparison-table thead {
    background: var(--primary-color);
    color: white;
}

.comparison-table th {
    padding: 15px 12px;
    text-align: left;
    font-weight: 600;
    white-space: nowrap;
    border-bottom: 2px solid var(--primary-dark);
}

.comparison-table th:first-child {
    position: sticky;
    left: 0;
    background: var(--primary-color);
    z-index: 10;
    min-width: 180px;
}

.comparison-table tbody tr {
    border-bottom: 1px solid var(--border-color);
    transition: background-color 0.2s ease;
}

.comparison-table tbody tr:hover {
    background-color: var(--bg-light);
}

.comparison-table tbody tr:nth-child(even) {
    background-color: rgba(0, 0, 0, 0.02);
}

.comparison-table tbody tr:nth-child(even):hover {
    background-color: var(--bg-light);
}

.comparison-table td {
    padding: 12px;
    vertical-align: middle;
}

.comparison-table td:first-child {
    position: sticky;
    left: 0;
    background: inherit;
    z-index: 5;
    font-weight: 600;
    min-width: 180px;
}

.comparison-table tbody tr:nth-child(even) td:first-child {
    background-color: rgba(0, 0, 0, 0.02);
}

.comparison-table tbody tr:hover td:first-child {
    background-color: var(--bg-light);
}

/* バッジスタイル */
.badge {
    display: inline-block;
    padding: 4px 10px;
    border-radius: 12px;
    font-size: 0.85rem;
    font-weight: 600;
    white-space: nowrap;
}

.badge-high {
    background-color: #ffebee;
    color: #c62828;
}

.badge-medium {
    background-color: #fff3e0;
    color: #e65100;
}

.badge-low {
    background-color: #e8f5e9;
    color: #2e7d32;
}

.badge-short {
    background-color: #e3f2fd;
    color: #1565c0;
}

.badge-long {
    background-color: #f3e5f5;
    color: #7b1fa2;
}

.badge-front {
    background-color: #fff9c4;
    color: #f57f17;
}

.badge-back {
    background-color: #e0f2f1;
    color: #00695c;
}

.badge-hybrid {
    background-color: #e8f5e9;
    color: #1b5e20;
}

.table-legend {
    background: var(--bg-light);
    padding: 20px;
    border-radius: 8px;
    margin-bottom: 30px;
    border: 1px solid var(--border-color);
}

.table-legend h3 {
    margin-bottom: 15px;
    font-size: 1.2rem;
    color: var(--text-color);
}

.table-legend>div {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 15px;
}

.table-legend>div>div {
    font-size: 0.9rem;
    line-height: 1.8;
}

.table-legend strong {
    display: block;
    margin-bottom: 5px;
    color: var(--text-color);
}

/* レスポンシブ対応 */
@media (max-width: 768px) {
    .comparison-table {
        font-size: 0.85rem;
    }

    .comparison-table th,
    .comparison-table td {
        padding: 10px 8px;
    }

    .comparison-table th:first-child,
    .comparison-table td:first-child {
        min-width: 150px;
    }

    .badge {
        font-size: 0.75rem;
        padding: 3px 8px;
    }

    .table-legend>div {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .comparison-table {
        font-size: 0.75rem;
    }

    .comparison-table th,
    .comparison-table td {
        padding: 8px 6px;
    }

    .comparison-table th:first-child,
    .comparison-table td:first-child {
        min-width: 120px;
    }
}