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

body {
    font-family: 'Hiragino Kaku Gothic ProN', 'ヒラギノ角ゴ ProN W3', 'Meiryo', 'メイリオ', sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #fff;
}

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

/* ヘッダー */
.header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 1rem 0;
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

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

.logo h1 {
    font-size: 1.8rem;
    font-weight: bold;
}

.logo p {
    font-size: 0.9rem;
    opacity: 0.9;
}

.nav {
    display: flex;
    gap: 2rem;
}

.nav a {
    color: white;
    text-decoration: none;
    font-weight: 500;
    transition: opacity 0.3s;
}

.nav a:hover {
    opacity: 0.8;
}

/* ヒーローセクション */
.hero {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 50%, #f093fb 100%);
    color: white;
    padding: 120px 0 80px;
    min-height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(circle at 20% 80%, rgba(120, 119, 198, 0.3) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(255, 119, 198, 0.3) 0%, transparent 50%),
        radial-gradient(circle at 40% 40%, rgba(120, 219, 255, 0.2) 0%, transparent 50%);
    animation: gradientShift 8s ease-in-out infinite;
}

@keyframes gradientShift {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.8; }
}

/* 背景アニメーション */
.hero-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    z-index: 1;
}

.floating-icons {
    position: absolute;
    width: 100%;
    height: 100%;
}

.icon-item {
    position: absolute;
    font-size: 2rem;
    opacity: 0.1;
    animation: float 6s ease-in-out infinite;
    animation-delay: var(--delay);
}

.icon-item:nth-child(1) { top: 10%; left: 10%; }
.icon-item:nth-child(2) { top: 20%; right: 15%; }
.icon-item:nth-child(3) { bottom: 30%; left: 20%; }
.icon-item:nth-child(4) { top: 50%; right: 10%; }
.icon-item:nth-child(5) { bottom: 20%; right: 25%; }
.icon-item:nth-child(6) { top: 70%; left: 15%; }

@keyframes float {
    0%, 100% { transform: translateY(0px) rotate(0deg); opacity: 0.1; }
    50% { transform: translateY(-20px) rotate(180deg); opacity: 0.3; }
}

.geometric-shapes {
    position: absolute;
    width: 100%;
    height: 100%;
}

.shape {
    position: absolute;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 50%;
    animation: shapeFloat 10s linear infinite;
}

.shape-1 {
    width: 100px;
    height: 100px;
    top: 20%;
    left: 10%;
    animation-delay: 0s;
}

.shape-2 {
    width: 60px;
    height: 60px;
    top: 60%;
    right: 20%;
    animation-delay: 3s;
}

.shape-3 {
    width: 80px;
    height: 80px;
    bottom: 20%;
    left: 60%;
    animation-delay: 6s;
}

@keyframes shapeFloat {
    0% { transform: translateY(0px) rotate(0deg); }
    100% { transform: translateY(-100vh) rotate(360deg); }
}

.hero .container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
    position: relative;
    z-index: 2;
}

/* ヒーローバッジ */
.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(10px);
    padding: 0.5rem 1rem;
    border-radius: 25px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    margin-bottom: 1.5rem;
    animation: slideInDown 1s ease-out;
}

.badge-icon {
    font-size: 1.2rem;
    animation: bounce 2s infinite;
}

.badge-text {
    font-size: 0.9rem;
    font-weight: 600;
}

/* ヒーロータイトル */
.hero-title {
    font-size: 3rem;
    font-weight: bold;
    margin-bottom: 1.5rem;
    line-height: 1.2;
    animation: slideInLeft 1s ease-out 0.2s both;
}

.title-highlight {
    background: linear-gradient(45deg, #ffd700, #ffed4e);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    display: inline-block;
    animation: glow 2s ease-in-out infinite alternate;
}

.title-main {
    display: inline-block;
    animation: slideInLeft 1s ease-out 0.4s both;
}

.title-accent {
    background: linear-gradient(45deg, #ff6b6b, #ee5a24);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    display: inline-block;
    animation: slideInLeft 1s ease-out 0.6s both;
}

@keyframes glow {
    from { text-shadow: 0 0 20px rgba(255, 215, 0, 0.5); }
    to { text-shadow: 0 0 30px rgba(255, 215, 0, 0.8); }
}

.hero-description {
    font-size: 1.2rem;
    margin-bottom: 2rem;
    opacity: 0.9;
    animation: slideInLeft 1s ease-out 0.8s both;
}

.highlight-text {
    background: linear-gradient(45deg, #ffd700, #ffed4e);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-weight: 700;
}

/* ヒーロー統計 */
.hero-stats {
    display: flex;
    gap: 2rem;
    margin-bottom: 2.5rem;
}

.stat {
    text-align: center;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    padding: 1.5rem 1rem;
    border-radius: 15px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    transition: transform 0.3s, box-shadow 0.3s;
    animation: fadeInUp 1s ease-out 1s both;
}

.stat:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.stat-icon {
    font-size: 2rem;
    margin-bottom: 0.5rem;
    animation: bounce 2s infinite;
}

.stat .number {
    display: inline-block;
    font-size: 2rem;
    font-weight: bold;
    color: #ffd700;
}

.stat .unit {
    font-size: 1rem;
    color: #ffd700;
    margin-left: 0.2rem;
}

.stat .label {
    display: block;
    font-size: 0.9rem;
    opacity: 0.8;
    margin-top: 0.5rem;
}

/* CTAコンテナ */
.cta-container {
    text-align: center;
    margin-bottom: 2rem;
    animation: fadeInUp 1s ease-out 1.2s both;
}

.cta-button {
    background: linear-gradient(45deg, #ff6b6b, #ee5a24, #ff6b6b);
    background-size: 200% 100%;
    color: white;
    border: none;
    padding: 1.2rem 3rem;
    font-size: 1.1rem;
    font-weight: bold;
    border-radius: 50px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 8px 25px rgba(255, 107, 107, 0.4);
    position: relative;
    overflow: hidden;
    display: inline-flex;
    align-items: center;
    gap: 1rem;
}

.cta-button::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
    transition: left 0.5s;
}

.cta-button:hover::before {
    left: 100%;
}

.cta-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 35px rgba(255, 107, 107, 0.6);
    background-position: 100% 0;
}

.pulse {
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% { box-shadow: 0 8px 25px rgba(255, 107, 107, 0.4); }
    50% { box-shadow: 0 8px 25px rgba(255, 107, 107, 0.8), 0 0 0 10px rgba(255, 107, 107, 0.1); }
    100% { box-shadow: 0 8px 25px rgba(255, 107, 107, 0.4); }
}

.button-icon {
    font-size: 1.2rem;
    animation: rocket 1s ease-in-out infinite alternate;
}

@keyframes rocket {
    from { transform: translateX(0px); }
    to { transform: translateX(3px); }
}

.cta-note {
    margin-top: 1rem;
    font-size: 0.9rem;
    opacity: 0.8;
    color: #ffd700;
}

/* 信頼指標 */
.trust-indicators {
    display: flex;
    justify-content: center;
    gap: 2rem;
    animation: fadeInUp 1s ease-out 1.4s both;
}

.trust-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    background: rgba(255, 255, 255, 0.1);
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.8rem;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.trust-icon {
    font-size: 1rem;
}

/* カウンターアニメーション */
.counter {
    display: inline-block;
}

/* 基本アニメーション */
@keyframes slideInDown {
    from { opacity: 0; transform: translateY(-30px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes slideInLeft {
    from { opacity: 0; transform: translateX(-50px); }
    to { opacity: 1; transform: translateX(0); }
}

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

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% { transform: translateY(0); }
    40% { transform: translateY(-10px); }
    60% { transform: translateY(-5px); }
}

/* ブラウザモックアップ */
.mockup-browser {
    background: white;
    border-radius: 15px;
    box-shadow: 
        0 25px 50px rgba(0,0,0,0.25),
        0 0 0 1px rgba(255,255,255,0.05);
    overflow: hidden;
    position: relative;
    animation: fadeInRight 1s ease-out 0.5s both;
}

.floating {
    animation: browserFloat 3s ease-in-out infinite;
}

@keyframes browserFloat {
    0%, 100% { transform: translateY(0px) rotate(0deg); }
    50% { transform: translateY(-10px) rotate(1deg); }
}

@keyframes fadeInRight {
    from { opacity: 0; transform: translateX(50px); }
    to { opacity: 1; transform: translateX(0); }
}

.browser-header {
    background: linear-gradient(135deg, #f8f9fa, #e9ecef);
    padding: 12px 16px;
    border-bottom: 1px solid #dee2e6;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.browser-buttons {
    display: flex;
    gap: 8px;
}

.btn-close, .btn-minimize, .btn-maximize {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    position: relative;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-close {
    background: linear-gradient(135deg, #ff5f56, #ff3b30);
}

.btn-minimize {
    background: linear-gradient(135deg, #ffbd2e, #ff9500);
}

.btn-maximize {
    background: linear-gradient(135deg, #27ca3f, #30d158);
}

.btn-close:hover, .btn-minimize:hover, .btn-maximize:hover {
    transform: scale(1.1);
    box-shadow: 0 2px 8px rgba(0,0,0,0.3);
}

.browser-url {
    flex: 1;
    margin-left: 1rem;
    background: rgba(255,255,255,0.8);
    padding: 6px 12px;
    border-radius: 8px;
    border: 1px solid #dee2e6;
}

.url-text {
    font-size: 0.8rem;
    color: #666;
    font-family: 'Monaco', 'Consolas', monospace;
}

.browser-content {
    padding: 2rem;
    color: #333;
    background: linear-gradient(135deg, #f8f9ff, #fff);
}

.preview-header {
    margin-bottom: 1.5rem;
    text-align: center;
}

.preview-header h3 {
    color: #667eea;
    font-size: 1.3rem;
    margin-bottom: 1rem;
    background: linear-gradient(45deg, #667eea, #764ba2);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.progress-bar {
    width: 100%;
    height: 6px;
    background: #e9ecef;
    border-radius: 3px;
    overflow: hidden;
    position: relative;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #667eea, #764ba2);
    border-radius: 3px;
    animation: progressFill 3s ease-in-out infinite;
}

@keyframes progressFill {
    0% { width: 0%; }
    50% { width: 75%; }
    100% { width: 100%; }
}

.form-items {
    space-y: 1rem;
}

.form-item {
    background: linear-gradient(135deg, #f8f9fa, #e9ecef);
    padding: 1rem;
    margin-bottom: 1rem;
    border-radius: 8px;
    border-left: 4px solid #667eea;
    position: relative;
    overflow: hidden;
    font-size: 0.9rem;
    animation: slideInUp 0.8s ease-out both;
}

.form-item:nth-child(1) { animation-delay: 1.5s; }
.form-item:nth-child(2) { animation-delay: 1.7s; }
.form-item:nth-child(3) { animation-delay: 1.9s; }

.typing::after {
    content: '|';
    animation: blink 1s infinite;
    color: #667eea;
}

@keyframes blink {
    0%, 50% { opacity: 1; }
    51%, 100% { opacity: 0; }
}

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

.form-result {
    margin-top: 1.5rem;
    padding: 1rem;
    background: linear-gradient(135deg, #e8f5e9, #f0fff0);
    border-radius: 8px;
    border: 2px solid #27ca3f;
    animation: bounceIn 1s ease-out 2.5s both;
}

.result-highlight {
    text-align: center;
    color: #27ca3f;
    font-weight: bold;
    font-size: 0.9rem;
}

@keyframes bounceIn {
    0% { opacity: 0; transform: scale(0.3); }
    50% { opacity: 1; transform: scale(1.05); }
    70% { transform: scale(0.9); }
    100% { opacity: 1; transform: scale(1); }
}

/* 装飾要素 */
.decoration-elements {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 1;
}

.glow-orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(40px);
    animation: orbFloat 4s ease-in-out infinite;
}

.glow-1 {
    width: 200px;
    height: 200px;
    background: rgba(102, 126, 234, 0.3);
    top: -50px;
    right: -50px;
    animation-delay: 0s;
}

.glow-2 {
    width: 150px;
    height: 150px;
    background: rgba(255, 107, 107, 0.3);
    bottom: -30px;
    left: -30px;
    animation-delay: 2s;
}

@keyframes orbFloat {
    0%, 100% { transform: translate(0px, 0px) scale(1); }
    50% { transform: translate(10px, -10px) scale(1.1); }
}

.success-icons {
    position: absolute;
    top: 50%;
    right: -20px;
    transform: translateY(-50%);
}

.success-icon {
    background: rgba(255,255,255,0.9);
    border-radius: 50%;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 10px;
    font-size: 1.2rem;
    animation: popIn 0.6s ease-out both;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

.success-icon:nth-child(1) { animation-delay: 3s; }
.success-icon:nth-child(2) { animation-delay: 3.2s; }
.success-icon:nth-child(3) { animation-delay: 3.4s; }

@keyframes popIn {
    0% { opacity: 0; transform: scale(0) rotate(180deg); }
    100% { opacity: 1; transform: scale(1) rotate(0deg); }
}

/* 診断セクション */
.diagnosis-section {
    padding: 80px 0;
    background: #f8f9fa;
}

.diagnosis-section h2 {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 1rem;
    color: #333;
}

.section-description {
    text-align: center;
    font-size: 1.1rem;
    color: #666;
    margin-bottom: 3rem;
}

.diagnosis-form {
    background: white;
    padding: 3rem;
    border-radius: 15px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    max-width: 800px;
    margin: 0 auto;
}

/* ステップ */
.step {
    display: none;
}

.step.active {
    display: block;
}

.step-header {
    display: flex;
    align-items: center;
    margin-bottom: 2rem;
}

.step-number {
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: white;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    margin-right: 1rem;
}

.step-header h3 {
    font-size: 1.5rem;
    color: #333;
}

/* フォームグループ */
.form-group {
    margin-bottom: 2rem;
}

.form-group label {
    display: block;
    font-weight: bold;
    margin-bottom: 1rem;
    color: #333;
}

.radio-group, .checkbox-group {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
}

.radio-item, .checkbox-item {
    display: flex;
    align-items: center;
    padding: 1rem;
    border: 2px solid #e1e8ed;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s;
    background: white;
}

.radio-item:hover, .checkbox-item:hover {
    border-color: #667eea;
    background: #f8f9ff;
}

.radio-item input, .checkbox-item input {
    margin-right: 0.8rem;
    transform: scale(1.2);
}

.radio-item input:checked + span,
.checkbox-item input:checked + span {
    color: #667eea;
    font-weight: bold;
}

.radio-item:has(input:checked),
.checkbox-item:has(input:checked) {
    border-color: #667eea;
    background: linear-gradient(135deg, #f8f9ff, #e8eaff);
}

/* ナビゲーションボタン */
.form-navigation {
    display: flex;
    justify-content: space-between;
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 1px solid #e1e8ed;
}

.btn-primary, .btn-secondary {
    padding: 0.8rem 2rem;
    border: none;
    border-radius: 25px;
    font-size: 1rem;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s;
}

.btn-primary {
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: white;
}

.btn-primary:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.4);
}

.btn-secondary {
    background: #f8f9fa;
    color: #666;
    border: 2px solid #e1e8ed;
}

.btn-secondary:hover {
    background: #e9ecef;
}

/* 結果セクション */
.results-section {
    padding: 80px 0;
    background: white;
}

.results-section h2 {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 3rem;
    color: #333;
}

/* 結果セクション全体 */
.results-section {
    padding: 80px 0;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 50%, #f093fb 100%);
    color: white;
    position: relative;
    overflow: hidden;
}

.results-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(circle at 20% 80%, rgba(120, 119, 198, 0.3) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(255, 119, 198, 0.3) 0%, transparent 50%),
        radial-gradient(circle at 40% 40%, rgba(120, 219, 255, 0.2) 0%, transparent 50%);
    animation: gradientShift 8s ease-in-out infinite;
}

.results-section .container {
    position: relative;
    z-index: 2;
}

.results-section h2 {
    text-align: center;
    font-size: 3rem;
    margin-bottom: 3rem;
    background: linear-gradient(135deg, #ffffff, #f0f8ff);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: slideInDown 1s ease-out;
}

/* 結果カード */
.result-card {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    padding: 2.5rem;
    border-radius: 25px;
    margin-bottom: 2rem;
    position: relative;
    overflow: hidden;
    box-shadow: 
        0 25px 45px rgba(0, 0, 0, 0.1),
        inset 0 1px 0 rgba(255, 255, 255, 0.2);
    animation: fadeInUp 0.8s ease-out;
    transition: all 0.4s ease;
}

.result-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.1), transparent);
    transition: left 0.8s;
}

.result-card:hover {
    transform: translateY(-10px) scale(1.02);
    box-shadow: 
        0 35px 60px rgba(0, 0, 0, 0.2),
        inset 0 1px 0 rgba(255, 255, 255, 0.3),
        0 0 40px rgba(255, 255, 255, 0.1);
}

.result-card:hover::before {
    left: 100%;
}

.result-card h3 {
    color: #ffffff;
    font-size: 1.8rem;
    margin-bottom: 1.5rem;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
    background: linear-gradient(135deg, #ffffff, #e0f2fe);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.result-amount {
    font-size: 2.5rem;
    font-weight: bold;
    background: linear-gradient(135deg, #ff6b6b, #ffd93d);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 1rem;
    animation: pulse 2s infinite;
    text-shadow: 0 0 20px rgba(255, 107, 107, 0.3);
}

.result-details {
    list-style: none;
    margin: 1.5rem 0;
}

.result-details li {
    padding: 0.8rem 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.9);
    position: relative;
    padding-left: 2rem;
    transition: all 0.3s ease;
}

.result-details li:hover {
    color: #ffffff;
    padding-left: 2.5rem;
}

.result-details li:before {
    content: "✨";
    position: absolute;
    left: 0;
    color: #ffd93d;
    font-weight: bold;
    animation: sparkle 1.5s ease-in-out infinite;
}

@keyframes sparkle {
    0%, 100% { transform: scale(1) rotate(0deg); opacity: 1; }
    50% { transform: scale(1.2) rotate(180deg); opacity: 0.8; }
}

/* 適合率バッジ */
.match-rate-badge {
    position: absolute;
    top: 20px;
    right: 20px;
    background: linear-gradient(135deg, #27ca3f, #00ff88);
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-weight: bold;
    box-shadow: 0 4px 15px rgba(39, 202, 63, 0.4);
    animation: bounceIn 1s ease-out 0.5s both;
}

@keyframes bounceIn {
    0% { transform: scale(0.3); opacity: 0; }
    50% { transform: scale(1.05); }
    70% { transform: scale(0.9); }
    100% { transform: scale(1); opacity: 1; }
}

/* 結果ヘッダー */
.results-header {
    text-align: center;
    margin-bottom: 3rem;
    position: relative;
}

.results-celebration {
    font-size: 4rem;
    margin-bottom: 1rem;
    animation: bounce 2s infinite;
}

.results-title {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    background: linear-gradient(135deg, #ffd93d, #ff6b6b);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: slideInUp 1s ease-out 0.3s both;
}

.results-subtitle {
    font-size: 1.2rem;
    opacity: 0.9;
    animation: fadeIn 1s ease-out 0.6s both;
}

/* 結果統計 */
.results-stats {
    display: flex;
    justify-content: center;
    gap: 3rem;
    margin: 3rem 0;
    flex-wrap: wrap;
}

.result-stat {
    text-align: center;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    padding: 1.5rem 2rem;
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    animation: fadeInUp 1s ease-out;
}

.result-stat-number {
    font-size: 2.5rem;
    font-weight: bold;
    background: linear-gradient(135deg, #ffd93d, #ffffff);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    display: block;
}

.result-stat-label {
    font-size: 0.9rem;
    opacity: 0.8;
    margin-top: 0.5rem;
}

/* CTA セクション */
.results-cta {
    text-align: center;
    margin-top: 4rem;
    padding: 3rem;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(20px);
    border-radius: 25px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    position: relative;
    overflow: hidden;
}

.results-cta::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%);
    animation: rotate 10s linear infinite;
}

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

.results-cta h3 {
    font-size: 2rem;
    margin-bottom: 1rem;
    background: linear-gradient(135deg, #ffffff, #ffd93d);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    position: relative;
    z-index: 2;
}

.results-cta p {
    font-size: 1.1rem;
    margin-bottom: 2rem;
    opacity: 0.9;
    position: relative;
    z-index: 2;
}

.results-cta-button {
    background: linear-gradient(135deg, #ff6b6b, #ffd93d);
    color: white;
    padding: 1rem 3rem;
    border: none;
    border-radius: 50px;
    font-size: 1.2rem;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    z-index: 2;
    box-shadow: 0 8px 25px rgba(255, 107, 107, 0.4);
    overflow: hidden;
}

.results-cta-button::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
    transition: left 0.5s;
}

.results-cta-button:hover {
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 15px 35px rgba(255, 107, 107, 0.6);
}

.results-cta-button:hover::before {
    left: 100%;
}

/* 装飾要素 */
.results-decorations {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 1;
}

.result-floating-icon {
    position: absolute;
    font-size: 2rem;
    opacity: 0.1;
    animation: float 6s ease-in-out infinite;
}

.result-floating-icon:nth-child(1) {
    top: 10%;
    left: 10%;
    animation-delay: 0s;
}

.result-floating-icon:nth-child(2) {
    top: 20%;
    right: 15%;
    animation-delay: 1s;
}

.result-floating-icon:nth-child(3) {
    bottom: 30%;
    left: 5%;
    animation-delay: 2s;
}

.result-floating-icon:nth-child(4) {
    bottom: 10%;
    right: 10%;
    animation-delay: 3s;
}

/* サービス概要セクション */
.about-section {
    padding: 80px 0;
    background: #f8f9fa;
}

.about-section h2 {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 3rem;
    color: #333;
}

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

.feature-card {
    background: white;
    padding: 2.5rem 2rem;
    border-radius: 15px;
    text-align: center;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    transition: transform 0.3s;
}

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

.feature-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.feature-card h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: #333;
}

.feature-card p {
    color: #666;
    line-height: 1.6;
}

/* 活用事例セクション */
.examples-section {
    padding: 80px 0;
    background: white;
}

.examples-section h2 {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 3rem;
    color: #333;
}

.examples-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
}

.example-card {
    background: linear-gradient(135deg, #f8f9ff, #e8eaff);
    padding: 2rem;
    border-radius: 15px;
    border-top: 5px solid #667eea;
}

.example-card h3 {
    font-size: 1.3rem;
    margin-bottom: 1rem;
    color: #333;
}

.amount {
    font-size: 1.8rem;
    font-weight: bold;
    color: #ff6b6b;
    margin-bottom: 1rem;
}

.example-card p {
    margin-bottom: 1rem;
    color: #666;
}

.example-card ul {
    list-style: none;
}

.example-card li {
    padding: 0.3rem 0;
    color: #555;
}

.example-card li:before {
    content: "•";
    color: #667eea;
    font-weight: bold;
    margin-right: 0.5rem;
}

/* フッター */
.footer {
    background: #2c3e50;
    color: white;
    padding: 3rem 0 1rem;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.footer-section h3 {
    margin-bottom: 1rem;
    color: #ecf0f1;
}

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

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

.footer-section a {
    color: #bdc3c7;
    text-decoration: none;
    transition: color 0.3s;
}

.footer-section a:hover {
    color: #ecf0f1;
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid #34495e;
    color: #bdc3c7;
}

/* レスポンシブデザイン */
@media (max-width: 768px) {
    .container {
        padding: 0 15px;
    }
    
    .hero .container {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 2rem;
    }
    
    .hero-content h2 {
        font-size: 2rem;
        line-height: 1.3;
        margin-bottom: 1rem;
    }
    
    .hero-description {
        font-size: 1rem;
        margin-bottom: 1.5rem;
    }
    
    .hero-stats {
        justify-content: center;
        gap: 1rem;
        flex-wrap: wrap;
    }
    
    .stat {
        min-width: 80px;
    }
    
    .stat .number {
        font-size: 1.5rem;
    }
    
    .cta-button {
        padding: 0.8rem 2rem;
        font-size: 1rem;
    }
    
    .nav {
        display: none;
    }
    
    .diagnosis-form {
        padding: 2rem 1rem;
        margin: 0 10px;
    }
    
    .radio-group, .checkbox-group {
        grid-template-columns: 1fr;
        gap: 0.8rem;
    }
    
    .radio-item, .checkbox-item {
        padding: 0.8rem;
        font-size: 0.9rem;
    }
    
    .examples-grid {
        grid-template-columns: 1fr;
    }
    
    .features-grid {
        grid-template-columns: 1fr;
    }
    
    .feature-card {
        padding: 2rem 1.5rem;
    }
    
    .example-card {
        margin: 0 10px 2rem 10px;
    }
    
    .mockup-browser {
        display: none;
    }
    
    .section-description {
        font-size: 1rem;
        padding: 0 10px;
    }
    
    .step-header h3 {
        font-size: 1.2rem;
    }
    
    .form-navigation {
        flex-direction: column;
        gap: 1rem;
    }
    
    .btn-primary, .btn-secondary {
        width: 100%;
        padding: 1rem;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 10px;
    }
    
    .hero {
        padding: 120px 0 60px;
    }
    
    .hero-content h2 {
        font-size: 1.6rem;
        line-height: 1.3;
        margin-bottom: 1rem;
    }
    
    .hero-description {
        font-size: 0.95rem;
        margin-bottom: 1.5rem;
    }
    
    .hero-stats {
        gap: 0.8rem;
        margin-bottom: 2rem;
    }
    
    .stat .number {
        font-size: 1.3rem;
    }
    
    .stat .label {
        font-size: 0.8rem;
    }
    
    .cta-button {
        padding: 0.8rem 1.5rem;
        font-size: 0.95rem;
        width: 100%;
        max-width: 300px;
    }
    
    .diagnosis-section {
        padding: 60px 0;
    }
    
    .diagnosis-section h2 {
        font-size: 2rem;
        padding: 0 10px;
    }
    
    .diagnosis-form {
        padding: 1.5rem 0.8rem;
        margin: 0 5px;
        border-radius: 10px;
    }
    
    .step-header {
        margin-bottom: 1.5rem;
    }
    
    .step-number {
        width: 35px;
        height: 35px;
        font-size: 0.9rem;
    }
    
    .step-header h3 {
        font-size: 1.1rem;
    }
    
    .form-group label {
        font-size: 0.95rem;
        margin-bottom: 0.8rem;
    }
    
    .radio-item, .checkbox-item {
        padding: 0.7rem;
        font-size: 0.85rem;
    }
    
    .radio-item input, .checkbox-item input {
        transform: scale(1.1);
    }
    
    .about-section, .examples-section {
        padding: 60px 0;
    }
    
    .about-section h2, .examples-section h2 {
        font-size: 2rem;
        padding: 0 10px;
    }
    
    .feature-card {
        padding: 1.5rem 1rem;
        margin: 0 5px 1.5rem 5px;
    }
    
    .feature-icon {
        font-size: 2.5rem;
    }
    
    .example-card {
        padding: 1.5rem;
        margin: 0 5px 1.5rem 5px;
    }
    
    .amount {
        font-size: 1.5rem;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 1.5rem;
    }
    
    .header {
        padding: 0.8rem 0;
    }
    
    .logo h1 {
        font-size: 1.4rem;
    }
    
    .logo p {
        font-size: 0.8rem;
    }
}

/* 極小画面対応 */
@media (max-width: 360px) {
    .container {
        padding: 0 8px;
    }
    
    .hero-content h2 {
        font-size: 1.4rem;
    }
    
    .hero-stats {
        flex-direction: column;
        align-items: center;
        gap: 1rem;
    }
    
    .stat {
        display: flex;
        align-items: center;
        gap: 0.5rem;
    }
    
    .stat .number, .stat .label {
        display: inline;
    }
    
    .diagnosis-form {
        padding: 1rem 0.5rem;
        margin: 0 2px;
    }
    
    .radio-item, .checkbox-item {
        padding: 0.6rem;
        font-size: 0.8rem;
    }
    
    .form-navigation {
        padding-top: 1.5rem;
    }
    
    .btn-primary, .btn-secondary {
        padding: 0.8rem;
        font-size: 0.9rem;
    }
    
    /* 結果セクション 極小画面対応 */
    .results-section h2 {
        font-size: 1.8rem;
    }
    
    .results-title {
        font-size: 1.6rem;
    }
    
    .results-celebration {
        font-size: 2.5rem;
    }
    
    .result-card {
        padding: 1rem;
        border-radius: 15px;
    }
    
    .result-card h3 {
        font-size: 1.2rem;
    }
    
    .result-amount {
        font-size: 1.5rem;
    }
    
    .results-stats {
        gap: 1rem;
    }
    
    .result-stat {
        padding: 1rem;
    }
    
    .result-stat-number {
        font-size: 1.8rem;
    }
    
    .result-floating-icon {
        display: none;
    }
}

/* 結果セクション 追加レスポンシブ対応 */
@media (max-width: 768px) {
    .results-section h2 {
        font-size: 2.5rem;
    }
    
    .results-title {
        font-size: 2rem;
    }
    
    .results-stats {
        flex-direction: column;
        gap: 1.5rem;
    }
    
    .result-card {
        margin-bottom: 1.5rem;
    }
    
    .result-card h3 {
        font-size: 1.5rem;
    }
    
    .result-amount {
        font-size: 2rem;
    }
    
    .results-cta {
        padding: 2rem 1.5rem;
    }
    
    .results-cta h3 {
        font-size: 1.8rem;
    }
}

@media (max-width: 480px) {
    .results-section h2 {
        font-size: 2rem;
    }
    
    .results-title {
        font-size: 1.8rem;
    }
    
    .results-celebration {
        font-size: 3rem;
    }
    
    .result-card {
        padding: 1.5rem 1rem;
    }
    
    .result-card h3 {
        font-size: 1.3rem;
    }
    
    .result-amount {
        font-size: 1.8rem;
    }
    
    .match-rate-badge {
        position: static;
        display: inline-block;
        margin-bottom: 1rem;
        font-size: 0.9rem;
        padding: 0.4rem 0.8rem;
    }
    
    .results-cta {
        padding: 2rem 1rem;
    }
    
    .results-cta h3 {
        font-size: 1.5rem;
    }
    
    .results-cta-button {
        font-size: 1rem;
        padding: 0.8rem 2rem;
        width: 100%;
        max-width: 300px;
    }
    
    .result-stat-number {
        font-size: 2rem;
    }
}

/* ローディングアニメーション */
@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.loading-container {
    animation: fadeIn 0.5s ease-out;
}

/* 政府公式バッジ */
.official-badge {
    animation: bounceIn 0.8s ease-out;
}

/* 詳細モーダルアニメーション */
#subsidyModal {
    animation: fadeIn 0.3s ease-out;
}

#subsidyModal > div {
    animation: slideInUp 0.4s ease-out;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

/* 拡張検索セクション */
.advanced-search-section {
    padding: 80px 0;
    background: linear-gradient(135deg, #f8f9ff, #e8eaff);
}

.advanced-search-section h2 {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 1rem;
    color: #333;
}

.advanced-search-section .section-description {
    text-align: center;
    font-size: 1.1rem;
    color: #666;
    margin-bottom: 3rem;
}

/* 検索タブ */
.search-tabs {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    margin-bottom: 2rem;
}

.tab-button {
    background: white;
    border: 2px solid #e1e8ed;
    padding: 1rem 2rem;
    border-radius: 10px;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    color: #666;
}

.tab-button:hover {
    border-color: #667eea;
    color: #667eea;
}

.tab-button.active {
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: white;
    border-color: #667eea;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.3);
}

/* タブコンテンツ */
.search-tab-content {
    display: none;
    background: white;
    border-radius: 20px;
    padding: 2rem;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.search-tab-content.active {
    display: block;
}

/* キーワード検索 */
.search-input-container {
    display: flex;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.keyword-search-input {
    flex: 1;
    padding: 1rem 1.5rem;
    border: 2px solid #e1e8ed;
    border-radius: 50px;
    font-size: 1.1rem;
    transition: border-color 0.3s ease;
}

.keyword-search-input:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.search-button {
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: white;
    border: none;
    padding: 1rem 2rem;
    border-radius: 50px;
    font-size: 1.1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    min-width: 120px;
}

.search-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(102, 126, 234, 0.4);
}

.search-button.primary {
    background: linear-gradient(135deg, #ff6b6b, #ffd93d);
}

.clear-button {
    background: #f8f9fa;
    color: #666;
    border: 2px solid #e1e8ed;
    padding: 1rem 2rem;
    border-radius: 50px;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

.clear-button:hover {
    background: #e9ecef;
    border-color: #ced4da;
}

/* 検索候補タグ */
.search-suggestions {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.suggestion-label {
    font-weight: 500;
    color: #666;
    margin-right: 0.5rem;
}

.suggestion-tag {
    background: #f8f9fa;
    border: 1px solid #e1e8ed;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

.suggestion-tag:hover {
    background: #667eea;
    color: white;
    border-color: #667eea;
}

/* 条件検索 */
.condition-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.condition-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
    color: #333;
}

.condition-select {
    width: 100%;
    padding: 0.8rem 1rem;
    border: 2px solid #e1e8ed;
    border-radius: 10px;
    font-size: 1rem;
    background: white;
    transition: border-color 0.3s ease;
}

.condition-select:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

/* 検索オプション */
.search-options {
    margin-bottom: 2rem;
}

.checkbox-option {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    cursor: pointer;
    font-size: 1rem;
    color: #333;
}

.checkbox-option input[type="checkbox"] {
    display: none;
}

.checkmark {
    width: 20px;
    height: 20px;
    border: 2px solid #e1e8ed;
    border-radius: 4px;
    position: relative;
    transition: all 0.3s ease;
}

.checkbox-option input[type="checkbox"]:checked + .checkmark {
    background: #667eea;
    border-color: #667eea;
}

.checkbox-option input[type="checkbox"]:checked + .checkmark::after {
    content: '✓';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: white;
    font-size: 14px;
    font-weight: bold;
}

/* 条件検索ボタン */
.conditions-search-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
}

/* レスポンシブ対応 */
@media (max-width: 768px) {
    .search-tabs {
        flex-direction: column;
        align-items: center;
    }
    
    .tab-button {
        width: 100%;
        max-width: 300px;
    }
    
    .search-input-container {
        flex-direction: column;
    }
    
    .condition-grid {
        grid-template-columns: 1fr;
    }
    
    .conditions-search-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .search-button, .clear-button {
        width: 100%;
        max-width: 300px;
    }
    
    .search-suggestions {
        justify-content: center;
    }
}