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

html {
    scroll-behavior: smooth;
}

:root {
    /* カラー設定 */
    --primary-green: #059669;
    --secondary-green: #10b981;
    --accent-gold: #f59e0b;
    --danger-red: #ef4444;
    --warning-yellow: #fbbf24;
    --success-green: #10b981;
    --text-dark: #1f2937;
    --text-gray: #6b7280;
    --bg-light: #f9fafb;
    --bg-white: #ffffff;
    --border-gray: #e5e7eb;
    
    /* フォント設定 - UDフォント優先 */
    --font-family: "BIZ UDPゴシック", "BIZ UDPGothic", "UD デジタル 教科書体 NK-R", "游ゴシック", "Yu Gothic", "Hiragino Kaku Gothic ProN", "メイリオ", "Meiryo", sans-serif;
}

body {
    font-family: var(--font-family);
    color: var(--text-dark);
    line-height: 1.8;
    background-color: var(--bg-white);
}

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

.section {
    padding: 80px 0;
}

.section-header {
    text-align: center;
    margin-bottom: 60px;
}

.section-title {
    font-size: 2.5rem;
    font-weight: bold;
    margin-bottom: 20px;
    line-height: 1.4;
}

.section-subtitle {
    font-size: 1.1rem;
    color: var(--text-gray);
}

.highlight-green {
    color: var(--primary-green);
}

.highlight-blue {
    color: #2563eb;
}

.highlight-gold {
    color: var(--accent-gold);
}

.highlight-red {
    color: var(--danger-red);
}

/* ========================================
   ヘッダー
======================================== */
.header {
    background-color: var(--bg-white);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
    transition: all 0.3s ease;
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 0;
}

.logo a {
    font-size: 1.5rem;
    font-weight: bold;
    color: var(--primary-green);
    text-decoration: none;
}

.nav-list {
    display: flex;
    list-style: none;
    gap: 30px;
}

.nav-list a {
    text-decoration: none;
    color: var(--text-dark);
    font-weight: 500;
    transition: color 0.3s;
}

.nav-list a:hover {
    color: var(--primary-green);
}

.nav-cta {
    background-color: var(--accent-gold);
    color: white !important;
    padding: 10px 20px;
    border-radius: 50px;
    transition: background-color 0.3s;
}

.nav-cta:hover {
    background-color: #d97706;
}

.hamburger {
    display: none;
    flex-direction: column;
    background: none;
    border: none;
    cursor: pointer;
    padding: 5px;
}

.hamburger span {
    width: 25px;
    height: 3px;
    background-color: var(--text-dark);
    margin: 3px 0;
    transition: 0.3s;
}

/* ========================================
   ボタン
======================================== */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 15px 30px;
    border: none;
    border-radius: 50px;
    font-size: 1rem;
    font-weight: bold;
    font-family: var(--font-family);
    text-decoration: none;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-primary {
    background: linear-gradient(135deg, var(--accent-gold), #d97706);
    color: white;
    box-shadow: 0 4px 15px rgba(245, 158, 11, 0.3);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(245, 158, 11, 0.4);
}

.btn-large {
    padding: 18px 40px;
    font-size: 1.1rem;
}

.btn-icon {
    font-size: 1.2em;
}

/* ========================================
   ファーストビュー
======================================== */
.hero {
    position: relative;
    padding: 120px 0 80px;
    background: linear-gradient(135deg, var(--primary-green), var(--secondary-green));
    color: white;
    overflow: hidden;
}

.hero-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: 
        linear-gradient(135deg, rgba(5, 150, 105, 0.5), rgba(16, 185, 129, 0.5)),
        url('https://www.genspark.ai/api/files/s/uHKjepUi');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    pointer-events: none;
}

.hero-content {
    position: relative;
    text-align: center;
    max-width: 900px;
    margin: 0 auto;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background-color: rgba(255, 255, 255, 0.2);
    padding: 10px 20px;
    border-radius: 50px;
    margin-bottom: 30px;
    font-size: 0.95rem;
    backdrop-filter: blur(10px);
}

.badge-icon {
    font-size: 1.5em;
}

.hero-main-visual {
    margin: 40px 0;
}

.hero-visual-image {
    max-width: 100%;
    height: auto;
    display: block;
    margin: 0 auto;
}

.hero-title {
    font-size: 3rem;
    font-weight: bold;
    margin-bottom: 30px;
    line-height: 1.3;
}

.hero-subtitle {
    font-size: 1.3rem;
    margin-bottom: 40px;
    line-height: 1.6;
    opacity: 0.95;
}

.hero-cta {
    margin-bottom: 40px;
}

.trust-badges {
    display: flex;
    justify-content: center;
    gap: 30px;
    flex-wrap: wrap;
}

.badge-item {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.95rem;
}

/* ========================================
   破産の危機セクション
======================================== */
.crisis-section {
    background-color: var(--bg-light);
}

.crisis-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-bottom: 60px;
}

.crisis-card {
    background-color: white;
    padding: 40px 30px;
    border-radius: 15px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    transition: transform 0.3s, box-shadow 0.3s;
}

.crisis-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.12);
}

.crisis-icon {
    font-size: 3rem;
    margin-bottom: 20px;
}

.crisis-card h3 {
    font-size: 1.5rem;
    margin-bottom: 15px;
    color: var(--danger-red);
}

.crisis-card p {
    color: var(--text-gray);
    line-height: 1.7;
}

.crisis-stat {
    text-align: center;
    background: linear-gradient(135deg, var(--danger-red), #dc2626);
    color: white;
    padding: 50px;
    border-radius: 20px;
}

.stat-number {
    font-size: 5rem;
    font-weight: bold;
    margin-bottom: 20px;
}

.stat-number span {
    font-size: 0.6em;
}

.stat-text {
    font-size: 1.3rem;
    line-height: 1.5;
}

/* ========================================
   ライフプランセクション
======================================== */
.lifeplan-timeline {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 40px;
}

.timeline-item {
    position: relative;
}

.timeline-badge {
    display: inline-block;
    padding: 8px 20px;
    border-radius: 50px;
    color: white;
    font-weight: bold;
    margin-bottom: 20px;
}

.timeline-badge-blue {
    background: linear-gradient(135deg, #2563eb, #1d4ed8);
}

.timeline-badge-green {
    background: linear-gradient(135deg, var(--success-green), #059669);
}

.timeline-badge-gold {
    background: linear-gradient(135deg, var(--accent-gold), #d97706);
}

.timeline-card {
    background-color: white;
    padding: 30px;
    border-radius: 15px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

.timeline-card h3 {
    font-size: 1.5rem;
    margin-bottom: 10px;
}

.timeline-period {
    color: var(--text-gray);
    font-size: 0.95rem;
    margin-bottom: 20px;
}

.timeline-list {
    list-style: none;
}

.timeline-list li {
    padding: 10px 0;
    border-bottom: 1px solid var(--border-gray);
}

.timeline-list li:last-child {
    border-bottom: none;
}

/* ========================================
   比較セクション
======================================== */
.comparison-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 40px;
}

.comparison-card {
    background-color: white;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.1);
}

.comparison-header {
    padding: 30px;
    text-align: center;
    color: white;
}

.comparison-failure .comparison-header {
    background: linear-gradient(135deg, var(--danger-red), #dc2626);
}

.comparison-success .comparison-header {
    background: linear-gradient(135deg, var(--success-green), #059669);
}

.comparison-icon {
    font-size: 3rem;
    display: block;
    margin-bottom: 10px;
}

.comparison-header h3 {
    font-size: 1.8rem;
}

.comparison-content {
    padding: 30px;
}

.comparison-item {
    padding: 20px 0;
    border-bottom: 1px solid var(--border-gray);
}

.comparison-item:last-child {
    border-bottom: none;
}

.comparison-item h4 {
    font-size: 1rem;
    color: var(--text-gray);
    margin-bottom: 10px;
}

.comparison-item .number {
    font-size: 2rem;
    font-weight: bold;
    margin-bottom: 10px;
}

.comparison-item .number.danger {
    color: var(--danger-red);
}

.comparison-item .number.success {
    color: var(--success-green);
}

.comparison-item .note {
    font-size: 0.9rem;
    color: var(--text-gray);
}

/* ========================================
   シミュレーションセクション
======================================== */
.simulation-section {
    background-color: var(--bg-light);
}

.simulation-container {
    background-color: white;
    border-radius: 20px;
    padding: 40px;
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.1);
}

.simulation-inputs {
    background-color: var(--bg-light);
    padding: 30px;
    border-radius: 15px;
    margin-bottom: 40px;
}

.simulation-inputs h3 {
    margin-bottom: 25px;
    color: var(--primary-green);
}

.input-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 0;
    border-bottom: 1px solid var(--border-gray);
}

.input-row:last-child {
    border-bottom: none;
}

.input-row label {
    font-weight: 500;
}

.input-value {
    font-size: 1.3rem;
    font-weight: bold;
    color: var(--primary-green);
}

.simulation-results h3 {
    margin-bottom: 30px;
    text-align: center;
    font-size: 1.8rem;
}

.scenario-item {
    padding: 25px;
    border-radius: 12px;
    margin-bottom: 20px;
}

.scenario-danger {
    background-color: #fef2f2;
    border-left: 5px solid var(--danger-red);
}

.scenario-warning {
    background-color: #fffbeb;
    border-left: 5px solid var(--warning-yellow);
}

.scenario-success {
    background-color: #f0fdf4;
    border-left: 5px solid var(--success-green);
}

.scenario-label {
    font-weight: bold;
    margin-bottom: 10px;
    font-size: 1.1rem;
}

.scenario-result {
    font-size: 1.5rem;
    font-weight: bold;
    margin-bottom: 10px;
}

.scenario-danger .scenario-result {
    color: var(--danger-red);
}

.scenario-warning .scenario-result {
    color: var(--warning-yellow);
}

.scenario-success .scenario-result {
    color: var(--success-green);
}

.scenario-item p {
    color: var(--text-gray);
}

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

/* ========================================
   サービスセクション
======================================== */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
}

.service-card {
    background: linear-gradient(135deg, #f0fdf4 0%, white 100%);
    padding: 40px 30px;
    border-radius: 15px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    transition: transform 0.3s, box-shadow 0.3s;
}

.service-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.12);
}

.service-icon {
    font-size: 3rem;
    margin-bottom: 20px;
}

.service-card h3 {
    font-size: 1.5rem;
    margin-bottom: 20px;
    color: var(--primary-green);
}

.service-list {
    list-style: none;
}

.service-list li {
    padding: 10px 0;
    padding-left: 25px;
    position: relative;
}

.service-list li::before {
    content: "✓";
    position: absolute;
    left: 0;
    color: var(--success-green);
    font-weight: bold;
}

/* ========================================
   代表メッセージセクション
======================================== */
.message-section {
    background-color: var(--bg-light);
}

.message-content {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 60px;
    align-items: start;
}

.representative-photo {
    width: 100%;
    max-width: 300px;
    border-radius: 15px;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.15);
}

.message-text {
    font-size: 1.05rem;
    line-height: 2;
}

.message-greeting {
    font-size: 1.3rem;
    font-weight: bold;
    color: var(--primary-green);
    margin-bottom: 20px;
}

.message-highlight {
    font-size: 1.2rem;
    font-weight: bold;
    color: var(--danger-red);
    margin: 30px 0;
    padding: 20px;
    background-color: #fef2f2;
    border-left: 5px solid var(--danger-red);
    border-radius: 5px;
}

.message-closing {
    font-size: 1.1rem;
    font-weight: bold;
    margin-top: 30px;
    color: var(--primary-green);
}

.signature {
    margin-top: 30px;
}

.signature-image {
    max-width: 200px;
}

/* ========================================
   サービスフローセクション
======================================== */
.flow-steps {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 20px;
}

.flow-step {
    background-color: white;
    padding: 30px 25px;
    border-radius: 15px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    flex: 1;
    min-width: 200px;
    max-width: 250px;
    text-align: center;
}

.flow-number {
    background: linear-gradient(135deg, var(--primary-green), var(--secondary-green));
    color: white;
    padding: 8px 20px;
    border-radius: 50px;
    font-weight: bold;
    display: inline-block;
    margin-bottom: 15px;
}

.flow-content h3 {
    font-size: 1.2rem;
    margin-bottom: 10px;
}

.flow-content p {
    font-size: 0.9rem;
    color: var(--text-gray);
}

.flow-arrow {
    font-size: 2rem;
    color: var(--primary-green);
    font-weight: bold;
}

/* ========================================
   FAQセクション
======================================== */
.faq-section {
    background-color: var(--bg-light);
}

.faq-list {
    max-width: 900px;
    margin: 0 auto;
}

.faq-item {
    background-color: white;
    margin-bottom: 15px;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.faq-question {
    width: 100%;
    padding: 25px 30px;
    background-color: white;
    border: none;
    text-align: left;
    font-size: 1.1rem;
    font-weight: bold;
    font-family: var(--font-family);
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: background-color 0.3s;
}

.faq-question:hover {
    background-color: var(--bg-light);
}

.faq-icon {
    font-size: 1.5rem;
    color: var(--primary-green);
    transition: transform 0.3s;
}

.faq-item.active .faq-icon {
    transform: rotate(45deg);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease, padding 0.3s ease;
    padding: 0 30px;
}

.faq-item.active .faq-answer {
    max-height: 500px;
    padding: 0 30px 25px 30px;
}

.faq-answer p {
    color: var(--text-gray);
    line-height: 1.8;
}

/* ========================================
   お問い合わせセクション
======================================== */
.contact-section {
    background: linear-gradient(135deg, var(--primary-green), var(--secondary-green));
    color: white;
}

.contact-section .section-title,
.contact-section .section-subtitle {
    color: white;
}

.contact-container {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 40px;
    margin-top: 40px;
}

.contact-form-wrapper {
    background-color: white;
    padding: 40px;
    border-radius: 20px;
    box-shadow: 0 8px 40px rgba(0, 0, 0, 0.15);
}

/* Googleフォーム用スタイル */
.google-form-container {
    width: 100%;
    overflow: hidden;
    border-radius: 10px;
}

.google-form-container iframe {
    width: 100%;
    min-height: 1200px;
    border: none;
    border-radius: 10px;
}

.contact-form {
    color: var(--text-dark);
}

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

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    font-family: var(--font-family);
}

.required {
    color: var(--danger-red);
    font-size: 0.85rem;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 12px 15px;
    border: 2px solid var(--border-gray);
    border-radius: 8px;
    font-size: 1rem;
    font-family: var(--font-family);
    transition: border-color 0.3s;
}

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

.error-message {
    color: var(--danger-red);
    font-size: 0.85rem;
    margin-top: 5px;
    display: block;
}

.form-submit {
    text-align: center;
    margin-top: 30px;
}

.form-note {
    text-align: center;
    margin-top: 20px;
    font-size: 0.9rem;
    color: var(--text-gray);
}

.form-success {
    text-align: center;
    padding: 60px 40px;
}

.success-icon {
    font-size: 5rem;
    margin-bottom: 20px;
}

.form-success h3 {
    font-size: 1.8rem;
    margin-bottom: 15px;
    color: var(--success-green);
}

.form-success p {
    color: var(--text-gray);
    line-height: 1.8;
}

.contact-info {
    color: white;
}

.info-card {
    background-color: rgba(255, 255, 255, 0.1);
    padding: 30px;
    border-radius: 15px;
    backdrop-filter: blur(10px);
    margin-bottom: 30px;
}

.info-card h3 {
    font-size: 1.3rem;
    margin-bottom: 15px;
}

.phone-number {
    font-size: 2rem;
    font-weight: bold;
    margin: 20px 0;
}

.phone-number a {
    color: white;
    text-decoration: none;
}

.info-hours {
    font-size: 0.95rem;
    opacity: 0.9;
}

.info-items {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.info-item {
    display: flex;
    align-items: center;
    gap: 10px;
    background-color: rgba(255, 255, 255, 0.1);
    padding: 15px 20px;
    border-radius: 10px;
    backdrop-filter: blur(10px);
}

.info-icon {
    font-size: 1.3em;
}

/* ========================================
   フッター
======================================== */
.footer {
    background-color: #1f2937;
    color: white;
    padding: 60px 0 30px;
}

.footer-content {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 40px;
    margin-bottom: 40px;
}

.footer-logo h3 {
    font-size: 1.5rem;
    margin-bottom: 15px;
    color: var(--secondary-green);
}

.footer-logo p {
    color: #9ca3af;
}

.footer-links h4 {
    margin-bottom: 20px;
    font-size: 1.1rem;
}

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

.footer-links ul li {
    margin-bottom: 12px;
}

.footer-links a {
    color: #9ca3af;
    text-decoration: none;
    transition: color 0.3s;
}

.footer-links a:hover {
    color: var(--secondary-green);
}

.footer-bottom {
    text-align: center;
    padding-top: 30px;
    border-top: 1px solid #374151;
    color: #9ca3af;
}

/* ========================================
   ページトップボタン
======================================== */
.page-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, var(--primary-green), var(--secondary-green));
    color: white;
    border: none;
    border-radius: 50%;
    font-size: 1.5rem;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    z-index: 999;
}

.page-top.show {
    opacity: 1;
    visibility: visible;
}

.page-top:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

/* ========================================
   レスポンシブ
======================================== */
@media (max-width: 768px) {
    .section {
        padding: 60px 0;
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    .hamburger {
        display: flex;
    }
    
    .nav {
        position: fixed;
        top: 70px;
        left: -100%;
        width: 100%;
        background-color: white;
        box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
        transition: left 0.3s ease;
        z-index: 999;
    }
    
    .nav.active {
        left: 0;
    }
    
    .nav-list {
        flex-direction: column;
        padding: 20px;
        gap: 0;
    }
    
    .nav-list li {
        width: 100%;
        border-bottom: 1px solid var(--border-gray);
    }
    
    .nav-list a {
        display: block;
        padding: 15px 0;
    }
    
    .hero-title {
        font-size: 2rem;
    }
    
    .hero-subtitle {
        font-size: 1.1rem;
    }
    
    .crisis-cards,
    .lifeplan-timeline,
    .services-grid {
        grid-template-columns: 1fr;
    }
    
    .comparison-grid {
        grid-template-columns: 1fr;
    }
    
    .message-content {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    .flow-steps {
        flex-direction: column;
    }
    
    .flow-arrow {
        transform: rotate(90deg);
    }
    
    .contact-container {
        grid-template-columns: 1fr;
    }
    
    .contact-form-wrapper {
        padding: 20px;
    }
    
    .google-form-container iframe {
        min-height: 1000px;
    }
    
    .form-row {
        grid-template-columns: 1fr;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
    }
    
    .sp-only {
        display: inline;
    }
}

@media (min-width: 769px) {
    .sp-only {
        display: none;
    }
}

/* ========================================
   アニメーション
======================================== */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

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