/* ベース設定 */
:root {
    /* 自然（森・林）をイメージした、薄めでポップなカラーパレット */
    --primary-color: #2E7D32;
    /* メインの緑（ロゴに合うしっかりした緑） */
    --secondary-color: #81C784;
    /* サブの明るい緑（葉っぱの色） */
    --accent-color: #FFC107;
    /* ポップなアクセント（カブトムシの元気なイメージ） */
    --text-color: #3e3e3e;
    --bg-color: #F1F8E9;
    /* 全体の背景（極薄い緑） */
    --light-bg-1: #E8F5E9;
    /* セクション背景1（薄い緑） */
    --light-bg-2: #FFF8E1;
    /* セクション背景2（薄い黄色/木漏れ日イメージ） */
    --white: #ffffff;
    --border-radius: 15px;
    --line-color: #00B900;
    /* LINEの色 */
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 100px;
    /* メニューバーの高さが大きくなった分ずらす */
}

body {
    font-family: 'Zen Maru Gothic', sans-serif;
    color: var(--text-color);
    background-color: var(--bg-color);
    margin: 0;
    padding: 0;
    line-height: 1.6;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    margin: 0;
    font-weight: 900;
}

a {
    text-decoration: none;
    color: inherit;
}

ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.section {
    padding: 60px 20px;
}

.section-title {
    text-align: center;
    margin-top: 80px;
    /* 前のセクション画像から十分な余白を開ける */
    margin-bottom: 50px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.en-title {
    font-size: 1rem;
    color: var(--secondary-color);
    letter-spacing: 2px;
    margin-bottom: 5px;
    font-weight: 700;
}

.ja-title {
    font-size: 2.2rem;
    color: var(--primary-color);
    position: relative;
    display: inline-block;
    padding: 0 10px;
}

.ja-title::after {
    content: '';
    position: absolute;
    bottom: 5px;
    left: 0;
    width: 100%;
    height: 12px;
    background-color: rgba(255, 193, 7, 0.4);
    /* ポップな黄色のマーカー帯 */
    z-index: -1;
    border-radius: 6px;
}

.section-title .icon {
    margin-right: 10px;
}

.bg-light-green {
    background: linear-gradient(135deg, #E8F5E9 0%, #F1F8E9 100%);
    /* LP風 斜め区切りデザイン */
    clip-path: polygon(0 4vw, 100% 0, 100% calc(100% - 4vw), 0 100%);
    padding-top: calc(60px + 4vw);
    padding-bottom: calc(60px + 4vw);
    margin-top: -4vw;
    margin-bottom: -4vw;
    position: relative;
    z-index: 1;
}

.bg-light-orange {
    background: linear-gradient(135deg, #FFF8E1 0%, #FFFDF7 100%);
}

.bg-light-blue {
    background: linear-gradient(135deg, #E8F5E9 0%, #F1F8E9 100%);
}

.bg-gray {
    background-color: var(--gray-bg);
    /* 上部だけ斜めにするデザイン */
    clip-path: polygon(0 0, 100% 4vw, 100% 100%, 0 100%);
    padding-top: calc(60px + 4vw);
    margin-top: -4vw;
    position: relative;
    z-index: 1;
}

/* ----- ナビゲーションバー ----- */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    background-color: rgba(255, 255, 255, 0.95);
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    z-index: 1000;
    transition: all 0.3s ease;
}

.navbar-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 20px;
    max-width: 1200px;
    margin: 0 auto;
}

.logo-link {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    /* 左端に寄せる */
}

.logo-img {
    height: 80px;
    /* ここを50pxから80pxに変更して大きくする */
    width: auto;
    object-fit: contain;
    flex-shrink: 0;
    /* 画像が文字に潰されないようにする */
    transition: transform 0.3s;
}

.logo-img:hover {
    transform: scale(1.05);
    /* ホバーですこし大きく */
}

/* ロゴ横のテキスト用スタイル */
.logo-text {
    font-size: 1.8rem;
    font-weight: 900;
    color: var(--primary-color);
    margin-left: 15px;
    /* 画像とテキストが被らないように十分な余白を追加 */
    white-space: nowrap;
}

.nav-menu ul {
    display: flex;
    align-items: center;
    gap: 20px;
}

.nav-menu a {
    font-weight: 700;
    padding: 10px;
    border-radius: 8px;
    transition: background-color 0.3s, color 0.3s;
}

.nav-menu a:hover {
    background-color: var(--light-orange);
    color: var(--primary-color);
}

/* ドロップダウンメニュー (その他) */
.dropdown {
    position: relative;
    display: inline-block;
}

.dropdown-content {
    display: none;
    position: absolute;
    background-color: white;
    min-width: 220px;
    box-shadow: 0px 8px 16px 0px rgba(0, 0, 0, 0.2);
    z-index: 1;
    border-radius: 8px;
    top: 100%;
    right: 0;
    overflow: hidden;
}

.dropdown-content a {
    color: black;
    padding: 12px 16px;
    text-decoration: none;
    display: block;
    font-size: 0.9rem;
}

.dropdown-content a:hover {
    background-color: #f1f1f1;
}

.dropdown:hover .dropdown-content {
    display: block;
}

/* ハンバーガーメニュー */
.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
    gap: 5px;
}

.hamburger span {
    width: 25px;
    height: 3px;
    background-color: var(--text-color);
    border-radius: 3px;
    transition: all 0.3s ease;
}

/* ----- ヒーローセクション ----- */
.hero-section {
    margin-top: 100px;
    /* メニューの高さが大きくなった分 */
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    padding: 60px 20px;
    background: linear-gradient(rgba(241, 248, 233, 0.6), rgba(220, 237, 200, 0.6)), url('images/hero_bg.png') center/cover no-repeat;
    min-height: 70vh;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
}

.hero-content {
    flex: 1;
    min-width: 300px;
    max-width: 500px;
    padding: 20px;
}

.hero-title {
    font-size: 3rem;
    font-weight: 900;
    line-height: 1.3;
    color: var(--primary-color);
    margin-bottom: 20px;
    text-shadow: 3px 3px 0px rgba(255, 255, 255, 0.9), 0px 4px 10px rgba(0, 0, 0, 0.1);
}

.hero-subtitle {
    font-size: 1.2rem;
    margin-bottom: 30px;
    font-weight: 900;
    color: var(--text-color);
    text-shadow: 2px 2px 0px rgba(255, 255, 255, 0.9);
}

.btn-primary {
    display: inline-block;
    background-color: var(--primary-color);
    color: white;
    padding: 15px 30px;
    border-radius: 50px;
    font-size: 1.2rem;
    font-weight: 900;
    box-shadow: 0 4px 0 #D84315;
    transition: transform 0.1s, box-shadow 0.1s;
}

.btn-primary:active {
    transform: translateY(4px);
    box-shadow: 0 0px 0 #D84315;
}

.hero-image-container {
    flex: 1;
    min-width: 300px;
    text-align: center;
}

.hero-img {
    max-width: 100%;
    height: auto;
    filter: drop-shadow(5px 5px 10px rgba(0, 0, 0, 0.2));
}

.floating {
    animation: float 3s ease-in-out infinite;
}

@keyframes float {
    0% {
        transform: translateY(0px);
    }

    50% {
        transform: translateY(-15px);
    }

    100% {
        transform: translateY(0px);
    }
}

/* ----- 画像コンテンツセクション ----- */
.image-center {
    display: flex;
    justify-content: center;
    align-items: center;
    max-width: 1000px;
    margin: 0 auto;
}

.image-stack {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 30px;
    max-width: 1000px;
    margin: 0 auto;
}

.content-img {
    max-width: 100%;
    height: auto;
    border-radius: 12px;
    box-shadow: 0 15px 35px rgba(46, 125, 50, 0.08);
    /* ふわっと柔らかい緑の影 */
    transition: transform 0.3s;
}

.content-img:hover {
    transform: translateY(-5px);
}

/* Q&A画像用のスタイル */
.qa-images {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
}

/* 上2枚（質問1と質問2）のサイズを大きくして文字を読みやすくする */
.qa-img-equal {
    width: 100%;
    max-width: 700px;
    /* 十分な大きさを確保（拡大不要なサイズ） */
    height: auto;
    object-fit: contain;
    border-radius: 12px;
    box-shadow: 0 15px 35px rgba(46, 125, 50, 0.08);
    /* 影を柔らかく */
}

/* 3枚目は横幅をいっぱいに広げる */
.qa-img-full {
    width: 100%;
    max-width: 800px;
    height: auto;
    object-fit: contain;
    border-radius: 12px;
    box-shadow: 0 15px 35px rgba(46, 125, 50, 0.08);
    /* 影を柔らかく */
}

/* ----- 公式LINE ----- */
.line-section {
    text-align: center;
}

.line-color {
    color: var(--line-color);
    text-shadow: none;
}

.line-qr-container {
    margin-top: 30px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
}

.qr-code {
    width: 250px;
    height: 250px;
    border: 4px solid var(--line-color);
    border-radius: 10px;
    padding: 10px;
    background: white;
}

.btn-line {
    background-color: var(--line-color);
    color: white;
    font-weight: 900;
    padding: 15px 40px;
    border-radius: 50px;
    font-size: 1.2rem;
    box-shadow: 0 4px 0 #008000;
    transition: all 0.2s;
}

.btn-line:active {
    transform: translateY(4px);
    box-shadow: 0 0px 0 #008000;
}

/* ----- 特定商取引法 ----- */
.law-table-container {
    max-width: 800px;
    margin: 0 auto;
    background: white;
    padding: 30px;
    border-radius: 15px;
    box-shadow: 0 15px 35px rgba(46, 125, 50, 0.08);
    /* 影を柔らかく */
    overflow-x: auto;
}

.law-table {
    width: 100%;
    border-collapse: collapse;
}

.law-table th,
.law-table td {
    padding: 15px;
    border: 1px solid #ddd;
    font-size: 0.95rem;
}

.law-table th {
    background-color: var(--light-orange);
    color: var(--text-color);
    width: 30%;
    text-align: left;
    white-space: nowrap;
}

/* PC専用の改行（スマホでは非表示になる改行が必要な場合用） */
.sp-br {
    display: none;
}

/* ----- フッター ----- */
footer {
    background-color: #333;
    color: white;
    text-align: center;
    padding: 20px;
    font-size: 0.9rem;
}

/* ----- レスポンシブ対応 ----- */
@media screen and (max-width: 768px) {
    .nav-menu {
        position: absolute;
        top: 60px;
        left: -100%;
        background-color: white;
        width: 100%;
        flex-direction: column;
        text-align: center;
        transition: 0.3s;
        box-shadow: 0 5px 10px rgba(0, 0, 0, 0.1);
        opacity: 0;
        visibility: hidden;
    }

    .nav-menu.active {
        left: 0;
        opacity: 1;
        visibility: visible;
    }

    .nav-menu ul {
        flex-direction: column;
        gap: 0;
        padding: 20px 0;
    }

    .nav-menu ul li {
        width: 100%;
    }

    .nav-menu a,
    .dropbtn {
        display: block;
        padding: 15px;
        width: 100%;
        border-bottom: 1px solid #eee;
    }

    .dropdown-content {
        position: static;
        box-shadow: none;
        background-color: #f9f9f9;
        display: none;
    }

    .dropdown.active .dropdown-content {
        display: block;
    }

    .hamburger {
        display: flex;
        text-align: center;
    }

    .hero-title {
        font-size: 1.9rem;
        line-height: 1.3;
        margin-bottom: 12px;
    }

    .hero-section {
        margin-top: 60px;
        flex-direction: column;
        padding-top: 170px;
        /* 背景の境目と被らないように上部の余白を大幅に増やす（さらに下に移動） */
        padding-bottom: 40px;
        /* 上下の余白を揃える */
        padding-left: 20px;
        /* はみ出し防止の余白 */
        padding-right: 20px;
        min-height: auto;
    }

    .hero-content {
        padding: 0 20px;
        /* サイドに少し余白を追加 */
        min-width: 0;
        width: 100%;
        box-sizing: border-box;
        text-align: center;
        /* 追加：中央揃えにする */
        margin-top: 0;
        /* padding-topで調整するためここは0にリセット */
        margin-bottom: 20px;
        /* 下の余白も縮小 */
    }

    .hero-subtitle {
        font-size: 1.2rem;
        /* サブタイトルを大きく */
        margin-bottom: 20px;
        /* 余白を少し広げる */
    }

    .btn-primary {
        padding: 12px 24px;
        /* ボタンサイズを少し大きく */
        font-size: 1.1rem;
    }

    .hero-img {
        max-width: 65%;
        /* 画像サイズを大きく */
        margin-top: 15px;
        /* ボタンと画像の間の余白を調整 */
        margin-bottom: 0;
    }

    /* スマホ専用の改行 */
    .sp-br {
        display: block;
    }

    .logo-text {
        font-size: 1.2rem;
        /* スマホではロゴテキストを小さく横幅に収める */
    }

    .section-title {
        margin-top: 30px;
        margin-bottom: 20px;
    }

    .ja-title {
        font-size: 1.35rem;
        /* スマホで1行に収めるため少し縮小 */
    }

    /* さらに幅が狭いスマホ（iPhone SEなど）への対応 */
    @media screen and (max-width: 400px) {
        .ja-title {
            font-size: 1.2rem;
            letter-spacing: -0.5px;
            /* 文字間を少し詰める */
        }
    }

    .law-table-container {
        padding: 15px;
        /* スマホでは余白を小さくして画面に収める */
    }

    .law-table th,
    .law-table td {
        display: block;
        width: 100%;
        box-sizing: border-box;
        /* コンテンツが枠からはみ出ないようにする */
    }

    .law-table th {
        background-color: var(--primary-color);
        color: white;
    }
}