/* ===== リセット & 基本設定 ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Noto Sans JP', sans-serif;
    color: #5A6C7D;
    line-height: 1.8;
    font-size: 16px;
}

h1, h2, h3, h4, h5, h6 {
    color: #2C3E50;
    font-weight: 700;
    line-height: 1.4;
}

a {
    text-decoration: none;
    color: inherit;
}

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

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

/* ===== ボタン ===== */
.btn {
    display: inline-block;
    padding: 14px 32px;
    border-radius: 8px;
    font-weight: 700;
    font-size: 16px;
    text-align: center;
    transition: all 0.3s ease;
    cursor: pointer;
    border: none;
}

.btn-primary {
    background-color: #FF6B35;
    color: #fff;
}

.btn-primary:hover {
    background-color: #E55A2B;
    transform: scale(1.05);
}

.btn-secondary {
    background-color: #fff;
    color: #1E3A5F;
    border: 2px solid #1E3A5F;
}

.btn-secondary:hover {
    background-color: #1E3A5F;
    color: #fff;
}

.btn-secondary-white {
    background-color: #fff;
    color: #1E3A5F;
    border: 2px solid #fff;
}

.btn-secondary-white:hover {
    background-color: transparent;
    color: #fff;
}

.btn-large {
    padding: 18px 48px;
    font-size: 18px;
}

.btn-cta {
    min-width: 280px;
}

/* ===== ヘッダー ===== */
.header {
    background-color: #fff;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
}

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

.logo {
    display: flex;
    align-items: center;
    gap: 12px;
}

.logo-icon {
    width: 40px;
    height: 40px;
    flex-shrink: 0;
}

.logo-text {
    font-size: 18px;
    font-weight: 700;
    color: #1E3A5F;
}

.nav {
    display: flex;
    gap: 22px;
    flex-wrap: wrap;
}

.nav-link {
    font-size: 14px;
    color: #2C3E50;
    transition: color 0.3s ease;
    white-space: nowrap;
}

.nav-link:hover {
    color: #FF6B35;
}

.btn-header {
    padding: 12px 24px;
}

/* ===== ファーストビュー ===== */
.hero {
    position: relative;
    background: linear-gradient(135deg, #1E3A5F 0%, #2C5282 100%);
    min-height: 600px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 80px 20px;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('mockup_hero_section.png') center/cover no-repeat;
    opacity: 0.2;
}

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

.hero-title {
    font-size: 48px;
    color: #fff;
    margin-bottom: 24px;
    line-height: 1.3;
}

.hero-subtitle {
    font-size: 20px;
    color: #fff;
    margin-bottom: 40px;
    opacity: 0.95;
}

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

/* ===== セクション共通 ===== */
.section-title {
    font-size: 36px;
    text-align: center;
    margin-bottom: 60px;
    color: #2C3E50;
}

/* ===== 課題提示エリア ===== */
.problems {
    padding: 80px 20px;
    background-color: #F5F7FA;
}

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

.problem-card {
    background-color: #fff;
    padding: 40px 30px;
    border-radius: 12px;
    text-align: center;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

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

.problem-icon {
    font-size: 64px;
    margin-bottom: 24px;
}

.problem-title {
    font-size: 20px;
    color: #1E3A5F;
    margin-bottom: 16px;
}

.problem-text {
    font-size: 14px;
    color: #5A6C7D;
    margin-bottom: 24px;
}

.problem-link {
    color: #FF6B35;
    font-weight: 700;
    font-size: 15px;
}

.problem-link:hover {
    text-decoration: underline;
}

/* ===== ソリューション提示エリア ===== */
.solution {
    padding: 80px 20px;
    background-color: #fff;
}

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

/* テーブルのレスポンシブ対応 */
.solution-comparison {
    overflow-x: auto;
}

.comparison-table {
    width: 100%;
    /* min-width: 400px;  スマホ幅対応のため削除 */
    border-collapse: collapse;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    border-radius: 8px;
    overflow: hidden;
}


.comparison-table th {
    background-color: #1E3A5F;
    color: #fff;
    padding: 16px;
    font-weight: 700;
    text-align: center;
}

.comparison-table td {
    padding: 16px;
    text-align: center;
    border-bottom: 1px solid #E5E7EB;
}

.comparison-table td:first-child {
    font-weight: 700;
    color: #2C3E50;
    text-align: left;
}

.comparison-table .highlight {
    background-color: #D1FAE5;
    font-weight: 700;
    color: #065F46;
}

.solution-benefits {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.benefit-item {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 16px;
    background-color: #F5F7FA;
    border-radius: 8px;
}

.benefit-icon {
    font-size: 24px;
    color: #10B981;
    font-weight: 700;
    flex-shrink: 0;
}

.benefit-text {
    font-size: 16px;
    color: #2C3E50;
}

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

/* ===== ピラー記事への導線 ===== */
.pillar-article {
    padding: 80px 20px;
    background-color: #F5F7FA;
}

.article-card-large {
    display: grid;
    grid-template-columns: 400px 1fr;
    gap: 40px;
    background-color: #fff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
    transition: box-shadow 0.3s ease;
}

.article-card-large:hover {
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.15);
}

.article-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.article-content {
    padding: 40px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.article-category {
    display: inline-block;
    background-color: #FF6B35;
    color: #fff;
    padding: 6px 16px;
    border-radius: 20px;
    font-size: 14px;
    font-weight: 700;
    margin-bottom: 16px;
}

.category-case {
    background-color: #3B82F6;
}

.category-tax {
    background-color: #8B5CF6;
}

.article-title {
    font-size: 24px;
    color: #1E3A5F;
    margin-bottom: 16px;
}

.article-summary {
    font-size: 16px;
    color: #5A6C7D;
    margin-bottom: 20px;
    line-height: 1.7;
}

.article-meta {
    display: flex;
    gap: 24px;
    margin-bottom: 24px;
    font-size: 14px;
    color: #6B7280;
    flex-wrap: wrap;
}

.meta-item {
    display: flex;
    align-items: center;
    gap: 6px;
}

/* ===== 人気記事 ===== */
.popular-articles {
    padding: 80px 20px;
    background-color: #fff;
}

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

.article-card {
    background-color: #fff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

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

.article-card-image {
    width: 100%;
    height: 200px;
    overflow: hidden;
}

.article-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.article-card-content {
    padding: 24px;
}

.article-card-title {
    font-size: 18px;
    color: #1E3A5F;
    margin-bottom: 12px;
    line-height: 1.5;
}

.article-card-summary {
    font-size: 14px;
    color: #5A6C7D;
    margin-bottom: 16px;
}

.article-link {
    color: #FF6B35;
    font-weight: 700;
    font-size: 14px;
}

.article-link:hover {
    text-decoration: underline;
}

/* ===== フッター手前CTA ===== */
.footer-cta {
    background-color: #1E3A5F;
    padding: 80px 20px;
    text-align: center;
}

.footer-cta-title {
    font-size: 36px;
    color: #fff;
    margin-bottom: 16px;
}

.footer-cta-subtitle {
    font-size: 24px;
    color: #fff;
    margin-bottom: 24px;
}

.footer-cta-text {
    font-size: 18px;
    color: #fff;
    margin-bottom: 40px;
    opacity: 0.95;
}

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

/* ===== フッター ===== */
.footer {
    background-color: #2C3E50;
    color: #E5E7EB;
    padding: 60px 20px 30px;
}

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

.footer-title {
    color: #fff;
    font-size: 18px;
    margin-bottom: 16px;
}

.footer-text {
    font-size: 14px;
    line-height: 1.7;
}

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

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

.footer-links a {
    color: #E5E7EB;
    font-size: 14px;
    transition: color 0.3s ease;
}

.footer-links a:hover {
    color: #FF6B35;
}

.footer-bottom {
    text-align: center;
    padding-top: 30px;
    border-top: 1px solid #4B5563;
    font-size: 14px;
}

/* ===== レスポンシブ対応 ===== */

/* タブレット (1024px以下) */
@media (max-width: 1024px) {
    .container {
        padding: 0 16px;
    }
    
    .hero {
        min-height: 500px;
        padding: 60px 20px;
    }
    
    .hero-title {
        font-size: 36px;
    }
    
    .hero-subtitle {
        font-size: 18px;
    }
    
    .section-title {
        font-size: 32px;
        margin-bottom: 40px;
    }
    
    .problems {
        padding: 60px 20px;
    }
    
    .problems-grid {
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
        gap: 30px;
    }
    
    .solution {
        padding: 60px 20px;
    }
    
    .solution-content {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    .article-card-large {
        grid-template-columns: 1fr;
    }
    
    .article-image {
        height: 250px;
    }
    
    .article-image img {
        height: 100%;
    }
    
    .article-content {
        padding: 30px;
    }
    
    .pillar-article {
        padding: 60px 20px;
    }
    
    .footer-cta {
        padding: 60px 20px;
    }
    
    .footer-content {
        grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
        gap: 40px;
    }
}

/* スマートフォン (768px以下) */
@media (max-width: 768px) {
    body {
        font-size: 15px;
    }
    
    .logo-icon {
        width: 32px;
        height: 32px;
    }
    
    .logo-text {
        font-size: 14px;
    }
    
/* .nav {
        display: none;
    }  スマホでもナビ表示 */

    /* ヘッダーをシンプルに */
    .header-content {
        padding: 16px 0;
    }
    
    .hero {
        min-height: 400px;
        padding: 40px 16px;
    }
    
    .hero-title {
        font-size: 24px;
        margin-bottom: 16px;
    }
    
    .hero-subtitle {
        font-size: 15px;
        margin-bottom: 32px;
    }
    
    .hero-buttons {
        flex-direction: column;
        gap: 12px;
        width: 100%;
    }
    
    .section-title {
        font-size: 24px;
        margin-bottom: 32px;
        line-height: 1.4;
    }
    
    .btn {
        padding: 12px 24px;
        font-size: 15px;
    }
    
    .btn-large {
        width: 100%;
        padding: 16px 32px;
        font-size: 16px;
    }
    
    .btn-cta {
        min-width: auto;
    }
    
    .problems {
        padding: 40px 16px;
    }
    
    .problems-grid {
        grid-template-columns: 1fr;
        gap: 24px;
    }
    
    .problem-card {
        padding: 32px 24px;
    }
    
    .problem-icon {
        font-size: 48px;
        margin-bottom: 16px;
    }
    
    .problem-title {
        font-size: 18px;
    }
    
    .problem-text {
        font-size: 14px;
    }
    
    .solution {
        padding: 40px 16px;
    }
    
    .solution-content {
        gap: 32px;
    }
    
    .comparison-table {
        font-size: 14px;
    }
    
    .comparison-table th,
    .comparison-table td {
        padding: 12px 8px;
    }
    
    .benefit-item {
        padding: 12px;
        gap: 12px;
    }
    
    .benefit-icon {
        font-size: 20px;
    }
    
    .benefit-text {
        font-size: 14px;
    }
    
    .pillar-article {
        padding: 40px 16px;
    }
    
    .article-card-large {
        gap: 0;
    }
    
    .article-image {
        height: 200px;
    }
    
    .article-content {
        padding: 24px 20px;
    }
    
    .article-category {
        font-size: 12px;
        padding: 4px 12px;
    }
    
    .article-title {
        font-size: 20px;
        margin-bottom: 12px;
    }
    
    .article-summary {
        font-size: 14px;
        margin-bottom: 16px;
    }
    
    .article-meta {
        font-size: 12px;
        gap: 16px;
    }
    
    .articles-grid {
        grid-template-columns: 1fr;
        gap: 24px;
    }
    
    .article-card-image {
        height: 180px;
    }
    
    .article-card-content {
        padding: 20px;
    }
    
    .article-card-title {
        font-size: 16px;
    }
    
    .article-card-summary {
        font-size: 13px;
    }
    
    .footer-cta {
        padding: 40px 16px;
    }
    
    .footer-cta-title {
        font-size: 24px;
        margin-bottom: 12px;
    }
    
    .footer-cta-subtitle {
        font-size: 18px;
        margin-bottom: 16px;
    }
    
    .footer-cta-text {
        font-size: 15px;
        margin-bottom: 32px;
    }
    
    .footer-cta-buttons {
        flex-direction: column;
        gap: 12px;
    }
    
    .footer {
        padding: 40px 16px 24px;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        gap: 32px;
    }
    
    .footer-title {
        font-size: 16px;
    }
    
    .footer-text,
    .footer-links a {
        font-size: 13px;
    }
    
    .footer-bottom {
        font-size: 12px;
    }
}

/* 小型スマートフォン (480px以下) */
@media (max-width: 480px) {
    .hero-title {
        font-size: 20px;
    }
    
    .hero-subtitle {
        font-size: 14px;
    }
    
    .section-title {
        font-size: 20px;
    }
    
    .problem-icon {
        font-size: 40px;
    }
    
    .problem-title {
        font-size: 16px;
    }
    
    .article-title {
        font-size: 18px;
    }
    
    .footer-cta-title {
        font-size: 20px;
    }
    
    .footer-cta-subtitle {
        font-size: 16px;
    }
}

/* 横向き表示の最適化 */
@media (max-height: 500px) and (orientation: landscape) {
    .hero {
        min-height: 100vh;
    }
}

/* ===== ハンバーガーメニュー ===== */
.nav-toggle {
    display: none; /* PCでは非表示 */
    width: 40px;
    height: 40px;
    border: none;
    background: transparent;
    padding: 0;
    margin-left: auto;
    cursor: pointer;
    position: relative;
}

.nav-toggle span {
    position: absolute;
    left: 8px;
    right: 8px;
    height: 3px;
    background-color: #2C3E50;
    border-radius: 2px;
    transition: transform 0.25s ease, opacity 0.25s ease, top 0.25s ease, bottom 0.25s ease;
}

.nav-toggle span:nth-child(1) {
    top: 11px;
}

.nav-toggle span:nth-child(2) {
    top: 18px;
}

.nav-toggle span:nth-child(3) {
    bottom: 11px;
}

/* 開いた時のアイコン変形 */
.nav-toggle[aria-expanded="true"] span:nth-child(1) {
    top: 18px;
    transform: rotate(45deg);
}

.nav-toggle[aria-expanded="true"] span:nth-child(2) {
    opacity: 0;
}

.nav-toggle[aria-expanded="true"] span:nth-child(3) {
    bottom: 18px;
    transform: rotate(-45deg);
}

/* ===== スマホ向けレイアウト調整 ===== */
@media (max-width: 900px) {
    .header-content {
        align-items: center;
    }

    /* ハンバーガーボタンを表示 */
    .nav-toggle {
        display: block;
    }

    /* ナビはデフォルト非表示（ドロワー風） */
    .nav {
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background-color: #ffffff;
        display: flex;              /* ★ 追加：flex で表示 */
        flex-direction: column;
        gap: 0;
        max-height: 0;
        overflow: hidden;
        border-bottom: 1px solid #E5E7EB;
        transition: max-height 0.3s ease;
    }

    /* ヘッダーを相対配置にして、ナビを下に展開 */
    .header {
        position: sticky;
        top: 0;
        z-index: 1000;
    }

    .nav-link {
        padding: 14px 20px;
        border-top: 1px solid #F3F4F6;
        font-size: 15px;
        white-space: normal;        /* ★ 追加：スマホでは折り返しOKに */
    }

    /* 開いた状態 */
    .nav.is-open {
        max-height: 400px; /* メニュー数に合わせて余裕を持たせる */
    }

    /* ロゴが潰れないようフォントサイズ調整 */
    .logo-text {
        font-size: 15px;
    }
}


@media (max-width: 600px) {
    .hero {
        min-height: auto;
        padding: 60px 16px;
    }

    .hero-title {
        font-size: 28px;
    }

    .hero-subtitle {
        font-size: 16px;
        margin-bottom: 24px;
    }

    .hero-buttons .btn {
        width: 100%;
        max-width: 320px;
    }

    .section-title {
        font-size: 24px;
        margin-bottom: 32px;
    }

    .problems {
        padding: 60px 16px;
    }

    .solution {
        padding: 60px 16px;
    }
}
