/* 
 * 恋愛心理テスト - スタイルシート
 * ターゲット: 20代〜40代女性ユーザー
 * モバイルファースト設計
 */

:root {
    --primary-color: #E10080; 
    --primary-light: #F678B6;
    --primary-dark: #B10064;
    --secondary-color: #9c27b0;
    --secondary-light: #e1bee7;
    --accent-color: #ff9800;
    --text-color: #333333;
    --light-text: #757575;
    --background-color: #fafafa;
    --card-color: #ffffff;
    --shadow-color: rgba(0, 0, 0, 0.1);
    --gradient-start: #f8bbd0;
    --gradient-end: #bbdefb;
    --success-color: #4caf50;
    --warning-color: #ff9800;
    --error-color: #f44336;
    --border-radius: 12px;
    --card-border-radius: 16px;
    --button-border-radius: 30px;
    --transition-speed: 0.3s;
}

/* ベーススタイル - モバイルファースト */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Noto Sans JP', 'Hiragino Sans', 'Hiragino Kaku Gothic ProN', Meiryo, sans-serif;
    line-height: 1.6;
    color: var(--text-color);
    background-color: var(--background-color);
    overflow-x: hidden;
}

.container {
    width: 100%;
    padding: 0 20px;
    margin: 0 auto;
}

/* タイポグラフィ */
h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    line-height: 1.3;
    margin-bottom: 0.5em;
    color: var(--primary-dark);
}

h1 {
    font-size: 2rem;
    margin-bottom: 0.8em;
}

h2 {
    font-size: 1.75rem;
    margin-bottom: 0.7em;
}

h3 {
    font-size: 1.5rem;
}

p {
    margin-bottom: 1em;
}

.text-center {
    text-align: center;
}

.text-sm {
    font-size: 0.9rem;
}

.text-lg {
    font-size: 1.1rem;
}

.text-xl {
    font-size: 1.25rem;
}

.text-2xl {
    font-size: 1.5rem;
}

.text-3xl {
    font-size: 1.875rem;
}

.font-semibold {
    font-weight: 600;
}

.font-bold {
    font-weight: 700;
}

.theme-color {
    color: var(--primary-color);
}

.secondary-color {
    color: var(--secondary-color);
}

/* ヘッダー（シンプル化） */
.site-header {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
    padding: 1rem 0;
    box-shadow: 0 4px 6px var(--shadow-color);
    position: relative;
    z-index: 10;
}

.site-header .container {
    display: flex;
    justify-content: center;
    align-items: center;
}

.site-title {
    font-size: 1.75rem;
    font-weight: 700;
    color: white;
    text-decoration: none;
    text-align: center;
    display: block;
}

/* パンくずリスト（位置変更） */
.breadcrumb {
    background-color: #f5f5f5;
    padding: 0.75rem 0;
    font-size: 0.9rem;
    margin-bottom: 1rem;
}

.breadcrumb ul {
    display: flex;
    list-style: none;
}

.breadcrumb li {
    display: flex;
    align-items: center;
}

.breadcrumb li:not(:last-child)::after {
    content: '/';
    margin: 0 0.5rem;
    color: var(--light-text);
}

.breadcrumb a {
    color: var(--primary-color);
    text-decoration: none;
}

.breadcrumb a:hover {
    text-decoration: underline;
}

/* ヒーローセクション（拡大） */
.hero {
    background: linear-gradient(135deg, var(--gradient-start), var(--gradient-end));
    padding: 4rem 0;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.expanded-hero {
    padding: 6rem 0;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: url('data:image/svg+xml;charset=utf8,%3Csvg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1440 320"%3E%3Cpath fill="%23ffffff" fill-opacity="0.1" d="M0,96L48,112C96,128,192,160,288,160C384,160,480,128,576,133.3C672,139,768,181,864,181.3C960,181,1056,139,1152,122.7C1248,107,1344,117,1392,122.7L1440,128L1440,320L1392,320C1344,320,1248,320,1152,320C1056,320,960,320,864,320C768,320,672,320,576,320C480,320,384,320,288,320C192,320,96,320,48,320L0,320Z"%3E%3C/path%3E%3C/svg%3E');
    background-size: cover;
    background-position: center bottom;
    opacity: 0.6;
    z-index: 0;
}

.hero-content {
    position: relative;
    z-index: 1;
    max-width: 800px;
    margin: 0 auto;
    padding: 0 2rem;
}

.hero h1 {
    color: white;
    font-size: 2.25rem;
    margin-bottom: 1.5rem;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.expanded-hero h1 {
    font-size: 3rem;
    margin-bottom: 2rem;
}

.hero-description {
    color: white;
    font-size: 1.1rem;
    margin-bottom: 2.5rem;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
    line-height: 1.8;
}

.expanded-hero .hero-description {
    font-size: 1.3rem;
    margin-bottom: 3rem;
}

/* ボタン */
.btn-primary {
    display: inline-block;
    background-color: var(--primary-color);
    color: white;
    font-weight: 600;
    text-decoration: none;
    padding: 0.75rem 2rem;
    border-radius: var(--button-border-radius);
    border: none;
    cursor: pointer;
    transition: all var(--transition-speed);
    box-shadow: 0 4px 6px rgba(233, 30, 99, 0.25);
    text-align: center;
}

.btn-primary:hover {
    background-color: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 6px 8px rgba(233, 30, 99, 0.3);
}

.btn-primary:active {
    transform: translateY(0);
    box-shadow: 0 2px 4px rgba(233, 30, 99, 0.2);
}

.btn-secondary {
    display: inline-block;
    background-color: var(--secondary-color);
    color: white;
    font-weight: 600;
    text-decoration: none;
    padding: 0.75rem 2rem;
    border-radius: var(--button-border-radius);
    border: none;
    cursor: pointer;
    transition: all var(--transition-speed);
    box-shadow: 0 4px 6px rgba(156, 39, 176, 0.25);
    text-align: center;
}

.btn-secondary:hover {
    background-color: #7b1fa2;
    transform: translateY(-2px);
    box-shadow: 0 6px 8px rgba(156, 39, 176, 0.3);
}

.btn-outline {
    display: inline-block;
    background-color: transparent;
    color: var(--primary-color);
    font-weight: 600;
    text-decoration: none;
    padding: 0.75rem 2rem;
    border-radius: var(--button-border-radius);
    border: 2px solid var(--primary-color);
    cursor: pointer;
    transition: all var(--transition-speed);
    text-align: center;
}

.btn-outline:hover {
    background-color: var(--primary-light);
    color: var(--primary-dark);
}

/* テスト開始ボタン */
.test-button {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
    font-size: 1.25rem;
    padding: 1rem 2.5rem;
    border-radius: var(--button-border-radius);
    border: none;
    cursor: pointer;
    transition: all var(--transition-speed);
    box-shadow: 0 6px 12px rgba(233, 30, 99, 0.3);
    position: relative;
    overflow: hidden;
}

.test-button::after {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(45deg, rgba(255, 255, 255, 0) 0%, rgba(255, 255, 255, 0.1) 50%, rgba(255, 255, 255, 0) 100%);
    transform: rotate(45deg);
    transition: all 0.5s;
    opacity: 0;
}

.test-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 15px rgba(233, 30, 99, 0.4);
}

.test-button:hover::after {
    left: 100%;
    opacity: 1;
}

.test-button:active {
    transform: translateY(0);
    box-shadow: 0 4px 8px rgba(233, 30, 99, 0.25);
}

/* セクション */
section {
    padding: 3rem 0;
}

.section-title {
    text-align: center;
    margin-bottom: 2rem;
}

.section-title h2 {
    display: inline-block;
    position: relative;
    padding-bottom: 0.5rem;
}

.section-title h2::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 25%;
    width: 50%;
    height: 3px;
    background: linear-gradient(to right, var(--primary-light), var(--primary-color), var(--primary-light));
    border-radius: 3px;
}

/* カード */
.card {
    background-color: var(--card-color);
    border-radius: var(--card-border-radius);
    box-shadow: 0 4px 10px var(--shadow-color);
    padding: 1.5rem;
    margin-bottom: 1.5rem;
    transition: transform var(--transition-speed), box-shadow var(--transition-speed);
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 15px var(--shadow-color);
}

.card-grid {
    display: grid;
    grid-template-columns: repeat(1, 1fr);
    gap: 1.5rem;
}

/* 特徴セクション */
.features {
    background-color: #f5f5f5;
}

.feature-icon {
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
}

/* テスト戻るリンク */
.test-navigation {
    margin-bottom: 1.5rem;
}

.back-link {
    display: inline-flex;
    align-items: center;
    color: var(--primary-dark);
    text-decoration: none;
    font-size: 0.95rem;
    font-weight: 500;
    transition: color var(--transition-speed);
}

.back-link i {
    margin-right: 0.5rem;
}

.back-link:hover {
    color: var(--primary-color);
}

/* テストセクション */
.test-section {
    background-color: white;
    border-radius: var(--border-radius);
    box-shadow: 0 4px 15px var(--shadow-color);
    padding: 2rem;
    margin-bottom: 2rem;
}

.question-container {
    margin-bottom: 2rem;
}

.question-title {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: var(--primary-dark);
}

.options-container {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.option-label {
    display: flex;
    align-items: center;
    padding: 0.75rem 1rem;
    border-radius: var(--border-radius);
    background-color: #f5f5f5;
    cursor: pointer;
    transition: background-color var(--transition-speed);
}

.option-label:hover {
    background-color: var(--primary-light);
}

.option-label input[type="radio"] {
    margin-right: 0.75rem;
}

/* ナビゲーションボタン */
.test-nav-buttons {
    display: flex;
    justify-content: space-between;
    margin-top: 2rem;
}

/* ローディングセクション */
.loading-section {
    text-align: center;
    padding: 3rem 0;
}

.analysis-container {
    max-width: 500px;
    margin: 0 auto;
}

.analysis-progress-container {
    height: 10px;
    background-color: #f5f5f5;
    border-radius: 5px;
    margin: 2rem 0;
    overflow: hidden;
}

.analysis-progress {
    height: 100%;
    background: linear-gradient(to right, var(--primary-color), var(--secondary-color));
    width: 0;
    transition: width 0.3s ease;
}

/* 結果セクション */
.results-section {
    padding: 3rem 0;
}

.result-card {
    background-color: white;
    border-radius: var(--card-border-radius);
    box-shadow: 0 10px 25px var(--shadow-color);
    padding: 2rem;
    margin-bottom: 2rem;
    position: relative;
    overflow: hidden;
}

.result-card::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 150px;
    height: 150px;
    background: linear-gradient(135deg, transparent 50%, rgba(233, 30, 99, 0.1) 50%);
    z-index: 0;
}

.result-header {
    text-align: center;
    margin-bottom: 2rem;
    position: relative;
    z-index: 1;
}

.result-icon {
    font-size: 3rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.result-title {
    font-size: 2rem;
    color: var(--primary-dark);
    margin-bottom: 0.5rem;
}

.result-subtitle {
    font-size: 1.25rem;
    color: var(--light-text);
}

.result-content {
    position: relative;
    z-index: 1;
}

.result-section {
    margin-bottom: 1.5rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid #f0f0f0;
}

.result-section:last-child {
    border-bottom: none;
}

.result-section-title {
    font-size: 1.25rem;
    color: var(--primary-color);
    margin-bottom: 0.75rem;
    display: flex;
    align-items: center;
}

.result-section-title i {
    margin-right: 0.75rem;
}

/* タロットカード */
.tarot-card-container {
    perspective: 1000px;
    width: 250px;
    height: 400px;
    margin: 0 auto 2rem;
}

.tarot-card {
    width: 100%;
    height: 100%;
    position: relative;
    transform-style: preserve-3d;
    transition: transform 1s;
}

.tarot-card.flipped {
    transform: rotateY(180deg);
}

.tarot-card-front, .tarot-card-back {
    position: absolute;
    width: 100%;
    height: 100%;
    backface-visibility: hidden;
    border-radius: 15px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.tarot-card-front {
    background: linear-gradient(135deg, #7b1fa2, #e91e63);
    color: white;
    font-size: 4rem;
}

.tarot-card-back {
    background-color: white;
    transform: rotateY(180deg);
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    border: 1px solid var(--primary-light);
}

.tarot-card-icon {
    font-size: 4rem;
    color: var(--primary-color);
    margin-bottom: 2rem;
}

.tarot-card-title {
    font-size: 1.5rem;
    color: var(--primary-dark);
    font-weight: 700;
}

/* 相性セクション */
.compatibility-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1rem;
    margin-top: 1rem;
}

.compatibility-item {
    background-color: #f9f9f9;
    border-radius: var(--border-radius);
    padding: 1rem;
}

.compatibility-item h4 {
    color: var(--primary-color);
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
}

/* アドバイスセクション */
.advice-list {
    list-style-type: none;
    padding-left: 0;
}

.advice-list li {
    position: relative;
    padding-left: 1.5rem;
    margin-bottom: 0.75rem;
}

.advice-list li::before {
    content: '\f0eb';
    font-family: 'Font Awesome 5 Free';
    position: absolute;
    left: 0;
    top: 0.1rem;
    color: var(--primary-color);
}

/* シェアセクション */
.share-section {
    text-align: center;
    margin-top: 2rem;
    margin-bottom: 2rem;
}

.share-title {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--primary-dark);
    margin-bottom: 1rem;
}

.share-buttons {
    display: flex;
    justify-content: center;
    gap: 1rem;
}

.share-button {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    color: white;
    font-size: 1.25rem;
    transition: transform var(--transition-speed);
}

.share-button:hover {
    transform: scale(1.1);
}

.share-twitter {
    background-color: #1da1f2;
}

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

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

/* アクションボタン */
.action-buttons {
    display: grid;
    grid-template-columns: 1fr;
    gap: 0.75rem;
    margin-top: 1.5rem;
}

/* フッター（シンプル化） */
.site-footer {
    background-color: #f8f8f8;
    padding: 3rem 0 1.5rem;
    border-top: 1px solid #eaeaea;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(1, 1fr);
    gap: 2rem;
    margin-bottom: 2rem;
    justify-content: space-between;
}

.footer-section h3 {
    color: var(--primary-color);
    font-size: 1.25rem;
    margin-bottom: 1rem;
    font-weight: 600;
}

.footer-section ul {
    list-style: none;
}

.footer-section li {
    margin-bottom: 0.5rem;
}

.footer-section a {
    color: var(--text-color);
    text-decoration: none;
    transition: color var(--transition-speed);
}

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

.footer-bottom {
    text-align: center;
    padding-top: 1.5rem;
    border-top: 1px solid #eaeaea;
}

/* トップに戻るボタン */
.back-to-top {
    position: fixed;
    bottom: 20px;
    right: 20px;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background-color: var(--primary-color);
    color: white;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
    transition: all var(--transition-speed);
    z-index: 100;
    opacity: 0;
    visibility: hidden;
}

.back-to-top.visible {
    opacity: 1;
    visibility: visible;
}

.back-to-top:hover {
    background-color: var(--primary-dark);
    transform: translateY(-3px);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.3);
}

/* ユーティリティクラス */
.hidden {
    display: none !important;
}

.animate-fade-in {
    animation: fadeIn 0.5s ease-in-out;
}

.animate-pulse {
    animation: pulse 0.5s ease-in-out;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.03); }
    100% { transform: scale(1); }
}

/* レスポンシブデザイン */
@media (min-width: 576px) {
    .container {
        max-width: 540px;
    }
    
    .hero h1 {
        font-size: 2.5rem;
    }
    
    .hero-description {
        font-size: 1.2rem;
    }
    
    .action-buttons {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .expanded-hero h1 {
        font-size: 3.5rem;
    }
}

@media (min-width: 768px) {
    .container {
        max-width: 720px;
    }
    
    .card-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .hero h1 {
        font-size: 2.75rem;
    }
    
    .footer-content {
        grid-template-columns: repeat(3, 1fr);
    }
    
    .compatibility-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .action-buttons {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (min-width: 992px) {
    .container {
        max-width: 960px;
    }
    
    .card-grid {
        grid-template-columns: repeat(3, 1fr);
    }
    
    .hero h1 {
        font-size: 3rem;
    }
    
    .expanded-hero h1 {
        font-size: 4rem;
    }
    
    .expanded-hero .hero-description {
        font-size: 1.5rem;
    }
    
    .result-actions {
        display: flex;
        align-items: center;
        justify-content: space-between;
    }
    
    .share-section {
        margin-bottom: 0;
        flex: 0 0 40%;
    }
    
    .action-buttons {
        margin-top: 0;
        flex: 0 0 55%;
    }
}

@media (min-width: 1200px) {
    .container {
        max-width: 1140px;
    }
}

/* 恋愛心理テスト - コントラスト改善用スタイル */

/* CSSルート変数の上書き - より濃い色を定義 */
:root {
    --gradient-start: #f06292; /* 元の#f8bbd0より濃いピンク */
    --gradient-end: #90caf9;   /* 元の#bbdefbより濃い青 */
}

/* ヒーローセクションの背景を調整 */
.hero, .expanded-hero {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    position: relative;
}

/* テキストの読みやすさを向上するためのオーバーレイ追加 */
.hero::before, .expanded-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0.25); /* 黒のオーバーレイで明るい背景を暗くする */
    z-index: 0;
}

/* 波模様の背景を調整 */
.hero::after, .expanded-hero::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: url('data:image/svg+xml;charset=utf8,%3Csvg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1440 320"%3E%3Cpath fill="%23ffffff" fill-opacity="0.1" d="M0,96L48,112C96,128,192,160,288,160C384,160,480,128,576,133.3C672,139,768,181,864,181.3C960,181,1056,139,1152,122.7C1248,107,1344,117,1392,122.7L1440,128L1440,320L1392,320C1344,320,1248,320,1152,320C1056,320,960,320,864,320C768,320,672,320,576,320C480,320,384,320,288,320C192,320,96,320,48,320L0,320Z"%3E%3C/path%3E%3C/svg%3E');
    background-size: cover;
    background-position: center bottom;
    opacity: 0.4; /* 元の0.6から下げて背景をさらに暗く */
    z-index: 0;
}

/* テキストの強調 */
.hero h1, .expanded-hero h1 {
    color: white;
    text-shadow: 0 2px 5px rgba(0, 0, 0, 0.4); /* より強いシャドウ */
    font-weight: 800;
}

.hero-description {
    color: white;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.4);
    font-weight: 500;
}

/* ヒーローコンテンツの相対位置を調整 */
.hero-content {
    position: relative;
    z-index: 2; /* ::beforeと::afterのz-indexが0なので、それより大きい値 */
}

/* テスト開始ボタンの強調 */
.test-button {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.35); /* より強いシャドウ */
    border: 2px solid rgba(255, 255, 255, 0.3); /* 白い境界線を追加して目立たせる */
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
}

/* モバイル向けの追加調整 */
@media (max-width: 768px) {
    .hero h1, .expanded-hero h1 {
        font-size: 2.5rem;
        text-shadow: 0 2px 6px rgba(0, 0, 0, 0.5);
    }
    
    .hero-description {
        font-size: 1.1rem;
        line-height: 1.6;
        text-shadow: 0 1px 4px rgba(0, 0, 0, 0.5);
    }
    
    /* モバイルではさらに背景を暗くする */
    .hero::before, .expanded-hero::before {
        background-color: rgba(0, 0, 0, 0.35);
    }
    
    /* テストボタンをさらに目立たせる */
    .test-button {
        padding: 1.2rem 3rem;
        font-size: 1.3rem;
        border: 2px solid rgba(255, 255, 255, 0.5);
        box-shadow: 0 6px 15px rgba(0, 0, 0, 0.4);
    }
}

/* CSSルート変数の上書き - より濃い色を定義 */
:root {
    --gradient-start: #F678B6; /* 新しいメインカラーに合わせて調整 */
    --gradient-end: #90caf9;   /* 青色はそのまま */
}