/* ==============================================
   五代会計事務所 - メインスタイルシート
   ============================================== */

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

:root {
    /* カラーパレット */
    --primary-blue: #2563a8;
    --primary-navy: #1e3a5f;
    --accent-orange: #f59e42;
    --accent-green: #5fa873;
    --bg-white: #ffffff;
    --bg-light-gray: #f8f9fa;
    --bg-lighter-gray: #f3f4f6;
    --text-dark: #2d3748;
    --text-gray: #4a5568;
    --text-light: #718096;
    --border-light: #e2e8f0;
    
    /* フォント */
    --font-main: 'Noto Sans JP', -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Hiragino Sans', sans-serif;
    
    /* スペーシング */
    --section-padding: 80px;
    --container-max-width: 1200px;
}

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

img {
    max-width: 100%;
    height: auto;
    display: block;
}

a {
    text-decoration: none;
    color: inherit;
    transition: all 0.3s ease;
}

ul, ol {
    list-style: none;
}

/* ----- コンテナ ----- */
.container {
    max-width: var(--container-max-width);
    margin: 0 auto;
    padding: 0 20px;
}

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

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

.logo {
    font-size: 24px;
    font-weight: 700;
    color: var(--primary-navy);
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.logo-main {
    font-size: 26px;
    letter-spacing: 0.05em;
}

.logo-sub {
    font-size: 13px;
    font-weight: 400;
    color: var(--text-gray);
    letter-spacing: 0.03em;
}

.nav-menu {
    display: flex;
    gap: 35px;
    align-items: center;
}

.nav-menu a {
    color: var(--text-dark);
    font-weight: 500;
    font-size: 15px;
    position: relative;
}

.nav-menu a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--primary-blue);
    transition: width 0.3s ease;
}

.nav-menu a:hover::after {
    width: 100%;
}

.nav-menu a:hover {
    color: var(--primary-blue);
}

.nav-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
    background: none;
    border: none;
}

.nav-toggle span {
    width: 28px;
    height: 3px;
    background-color: var(--primary-navy);
    transition: all 0.3s ease;
    border-radius: 2px;
}

/* ----- ヒーローセクション ----- */
.hero {
    background: linear-gradient(135deg, rgba(37, 99, 168, 0.92) 0%, rgba(30, 58, 95, 0.92) 100%),
                url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1200 600"><rect fill="%23f0f4f8" width="1200" height="600"/><g opacity="0.1"><circle cx="200" cy="100" r="80" fill="%232563a8"/><circle cx="800" cy="400" r="120" fill="%232563a8"/><circle cx="1000" cy="150" r="60" fill="%232563a8"/></g></svg>');
    background-size: cover;
    background-position: center;
    color: var(--bg-white);
    padding: 120px 0;
    text-align: center;
}

.hero-content {
    max-width: 800px;
    margin: 0 auto;
}

.hero-title {
    font-size: 48px;
    font-weight: 700;
    margin-bottom: 20px;
    line-height: 1.4;
    letter-spacing: 0.03em;
}

.hero-subtitle {
    font-size: 18px;
    line-height: 1.9;
    margin-bottom: 40px;
    font-weight: 400;
    opacity: 0.95;
}

.hero-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
}

/* ----- ボタン ----- */
.btn {
    display: inline-block;
    padding: 16px 40px;
    border-radius: 50px;
    font-weight: 600;
    font-size: 16px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    border: none;
    letter-spacing: 0.03em;
}

.btn-primary {
    background-color: var(--accent-orange);
    color: var(--bg-white);
    box-shadow: 0 4px 15px rgba(245, 158, 66, 0.3);
}

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

.btn-secondary {
    background-color: var(--bg-white);
    color: var(--primary-blue);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.btn-secondary:hover {
    background-color: var(--bg-lighter-gray);
    transform: translateY(-2px);
}

/* ----- セクション共通 ----- */
.section {
    padding: var(--section-padding) 0;
}

.section-bg-gray {
    background-color: var(--bg-light-gray);
}

.section-title {
    text-align: center;
    margin-bottom: 50px;
}

.section-title h2 {
    font-size: 36px;
    font-weight: 700;
    color: var(--primary-navy);
    margin-bottom: 15px;
    letter-spacing: 0.03em;
}

.section-title p {
    font-size: 16px;
    color: var(--text-gray);
    line-height: 1.8;
}

/* ----- 特徴セクション ----- */
.features {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 40px;
}

.feature-card {
    background-color: var(--bg-white);
    padding: 40px 30px;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
    transition: all 0.3s ease;
    text-align: center;
}

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

.feature-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 25px;
    background: linear-gradient(135deg, var(--primary-blue), var(--primary-navy));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 36px;
    color: var(--bg-white);
}

.feature-card h3 {
    font-size: 20px;
    font-weight: 700;
    color: var(--primary-navy);
    margin-bottom: 15px;
    letter-spacing: 0.02em;
}

.feature-card p {
    font-size: 15px;
    color: var(--text-gray);
    line-height: 1.8;
}

/* ----- サービスカード ----- */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 30px;
}

.service-card {
    background-color: var(--bg-white);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
    transition: all 0.3s ease;
}

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

.service-icon-wrapper {
    background: linear-gradient(135deg, var(--primary-blue), var(--primary-navy));
    padding: 30px;
    text-align: center;
}

.service-icon {
    font-size: 48px;
    color: var(--bg-white);
}

.service-content {
    padding: 30px;
}

.service-card h3 {
    font-size: 22px;
    font-weight: 700;
    color: var(--primary-navy);
    margin-bottom: 15px;
}

.service-card p {
    font-size: 15px;
    color: var(--text-gray);
    line-height: 1.8;
    margin-bottom: 20px;
}

.service-link {
    color: var(--primary-blue);
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

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

/* ----- ブログカード ----- */
.blog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 30px;
}

.blog-card {
    background-color: var(--bg-white);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
    transition: all 0.3s ease;
}

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

.blog-image {
    width: 100%;
    height: 200px;
    background: linear-gradient(135deg, var(--bg-lighter-gray), var(--bg-light-gray));
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 48px;
    color: var(--primary-blue);
}

.blog-content {
    padding: 25px;
}

.blog-category {
    display: inline-block;
    padding: 5px 15px;
    background-color: var(--primary-blue);
    color: var(--bg-white);
    font-size: 12px;
    font-weight: 600;
    border-radius: 20px;
    margin-bottom: 15px;
    letter-spacing: 0.03em;
}

.blog-card h3 {
    font-size: 18px;
    font-weight: 700;
    color: var(--primary-navy);
    margin-bottom: 10px;
    line-height: 1.6;
}

.blog-excerpt {
    font-size: 14px;
    color: var(--text-gray);
    line-height: 1.7;
    margin-bottom: 15px;
}

.blog-date {
    font-size: 13px;
    color: var(--text-light);
}

/* ----- お客様の声 ----- */
.testimonials {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.testimonial-card {
    background-color: var(--bg-white);
    padding: 35px;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
    position: relative;
}

.testimonial-quote {
    font-size: 60px;
    color: var(--primary-blue);
    opacity: 0.2;
    position: absolute;
    top: 20px;
    left: 25px;
}

.testimonial-text {
    font-size: 15px;
    color: var(--text-gray);
    line-height: 1.9;
    margin-bottom: 20px;
    position: relative;
    z-index: 1;
}

.testimonial-author {
    display: flex;
    align-items: center;
    gap: 15px;
}

.testimonial-avatar {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary-blue), var(--primary-navy));
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--bg-white);
    font-weight: 700;
}

.testimonial-info h4 {
    font-size: 16px;
    font-weight: 700;
    color: var(--primary-navy);
    margin-bottom: 3px;
}

.testimonial-info p {
    font-size: 13px;
    color: var(--text-light);
}

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

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

.faq-question {
    padding: 25px 30px;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-weight: 600;
    font-size: 16px;
    color: var(--primary-navy);
    transition: background-color 0.3s ease;
}

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

.faq-question::after {
    content: '+';
    font-size: 28px;
    color: var(--primary-blue);
    transition: transform 0.3s ease;
}

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

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

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

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

/* ----- フォーム ----- */
.form-group {
    margin-bottom: 25px;
}

.form-label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: var(--primary-navy);
    font-size: 15px;
}

.form-label .required {
    color: #e53e3e;
    margin-left: 3px;
}

.form-input,
.form-textarea,
.form-select {
    width: 100%;
    padding: 14px 16px;
    border: 2px solid var(--border-light);
    border-radius: 8px;
    font-size: 15px;
    font-family: var(--font-main);
    transition: border-color 0.3s ease;
}

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

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

/* ----- コンタクト情報 ----- */
.contact-info {
    background-color: var(--bg-white);
    padding: 40px;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
}

.contact-item {
    display: flex;
    align-items: flex-start;
    gap: 20px;
    margin-bottom: 30px;
}

.contact-item:last-child {
    margin-bottom: 0;
}

.contact-icon {
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, var(--primary-blue), var(--primary-navy));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--bg-white);
    font-size: 22px;
    flex-shrink: 0;
}

.contact-details h3 {
    font-size: 18px;
    font-weight: 700;
    color: var(--primary-navy);
    margin-bottom: 8px;
}

.contact-details p {
    font-size: 15px;
    color: var(--text-gray);
    line-height: 1.7;
}

/* ----- 地図 ----- */
.map-container {
    width: 100%;
    height: 400px;
    background-color: var(--bg-light-gray);
    border-radius: 12px;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-light);
    font-size: 18px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
}

/* ----- フッター ----- */
.footer {
    background-color: var(--primary-navy);
    color: var(--bg-white);
    padding: 60px 0 30px;
}

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

.footer-section h3 {
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 20px;
    letter-spacing: 0.03em;
}

.footer-section p,
.footer-section a {
    font-size: 14px;
    line-height: 2;
    color: rgba(255, 255, 255, 0.85);
}

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

.footer-links {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.footer-bottom {
    text-align: center;
    padding-top: 30px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    font-size: 14px;
    color: rgba(255, 255, 255, 0.7);
}

/* ----- レスポンシブ対応 ----- */
@media (max-width: 768px) {
    :root {
        --section-padding: 60px;
    }
    
    .header-inner {
        padding: 15px 0;
    }
    
    .nav-menu {
        position: fixed;
        top: 70px;
        left: -100%;
        width: 100%;
        height: calc(100vh - 70px);
        background-color: var(--bg-white);
        flex-direction: column;
        padding: 30px;
        gap: 20px;
        transition: left 0.3s ease;
        box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
        align-items: flex-start;
    }
    
    .nav-menu.active {
        left: 0;
    }
    
    .nav-toggle {
        display: flex;
    }
    
    .hero {
        padding: 80px 0;
    }
    
    .hero-title {
        font-size: 32px;
    }
    
    .hero-subtitle {
        font-size: 16px;
    }
    
    .hero-buttons {
        flex-direction: column;
        align-items: stretch;
    }
    
    .btn {
        width: 100%;
    }
    
    .section-title h2 {
        font-size: 28px;
    }
    
    .features,
    .services-grid,
    .blog-grid,
    .testimonials {
        grid-template-columns: 1fr;
    }
    
    .contact-info {
        padding: 30px 20px;
    }
}

@media (max-width: 480px) {
    .logo-main {
        font-size: 20px;
    }
    
    .logo-sub {
        font-size: 11px;
    }
    
    .hero-title {
        font-size: 26px;
    }
    
    .section-title h2 {
        font-size: 24px;
    }
    
    .feature-card,
    .service-content {
        padding: 25px 20px;
    }
}