/* 基本のリセットと変数定義 */
:root {
    --color-primary: #4CAF50; /* 自然な緑 */
    --color-secondary: #8BC34A; /* 明るい緑 */
    --color-accent: #2196F3; /* 水色 */
    --color-text-dark: #333;
    --color-text-light: #fff;
    --color-background-light: #fefefe; /* より明るく清潔感 */
    --color-background-dark: #f0f8f0; /* 薄い緑がかった白 */
    --color-border: #ddd;
    --max-content-width: 1280px; /* メインコンテンツの最大幅 */
    --header-height: 60px; /* ヘッダーをコンパクトに */
}

*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: 'Noto Sans JP', sans-serif;
    line-height: 1.6;
    color: var(--color-text-dark);
    background-color: var(--color-background-light);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    scroll-behavior: smooth;
}

a {
    text-decoration: none;
    color: var(--color-primary);
}

a:hover {
    color: var(--color-accent);
}

ul {
    list-style: none;
}

/* ヘッダー */
.site-header {
    width: 100%;
    background-color: rgba(255, 255, 255, 0.95);
    padding: 10px 0;
    position: fixed;
    top: 0;
    left: 0;
    z-index: 1000;
    box-shadow: 0 2px 5px rgba(0,0,0,0.08);
}

.header-content {
    max-width: var(--max-content-width);
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 20px;
}

.logo a {
    font-size: 24px;
    font-weight: 700;
    color: var(--color-primary);
}

.main-nav ul {
    display: flex;
    gap: 20px;
}

.main-nav a {
    font-size: 15px;
    color: var(--color-text-dark);
    padding: 5px 0;
    position: relative;
    transition: color 0.3s ease;
}

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

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

.hamburger {
    display: none; /* デフォルトは非表示 */
    flex-direction: column;
    justify-content: space-around;
    width: 30px;
    height: 24px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0;
    z-index: 1010;
}

.hamburger .bar {
    width: 30px;
    height: 3px;
    background-color: var(--color-primary);
    border-radius: 10px;
    transition: all 0.3s ease-in-out;
}

/* ハンバーガーメニューのアクティブ状態 */
.hamburger.active .bar:nth-child(2) {
    opacity: 0;
}

.hamburger.active .bar:nth-child(1) {
    transform: translateY(10.5px) rotate(45deg);
}

.hamburger.active .bar:nth-child(3) {
    transform: translateY(-10.5px) rotate(-45deg);
}


/* ヒーローセクション（メインビジュアル） - 左に動画、右にテキスト */
.hero-section {
    width: 100%;
    min-height: 560px;
    background-color: var(--color-background-dark);
    margin-top: var(--header-height);
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 40px 20px;
}

.container_botom p{
    text-align:center;
}


.hero-inner-container {
    display: flex;
    align-items: center;
    max-width: var(--max-content-width);
    width: 100%;
    gap: 50px;
    background-image: url(img/a_00.jpg);
    background-repeat:no-repeat;
    background-color:rgba(255, 255, 255, 0.466);
    background-blend-mode:lighten;
}

.hero-video-wrapper {
    flex-shrink: 0;
    width: 640px;
    height: 480px;
    background-color: #000;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 8px 20px rgba(0,0,0,0.2);
    position: relative;
}

.hero-video-wrapper iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: none;
    display: block;
}

.hero-content {
    flex-grow: 1;
    text-align: left;
    color: var(--color-text-dark);
    padding-right: 20px;
}

.hero-content h1 {
    font-size: 52px;
    font-weight: 700;
    margin-bottom: 20px;
    line-height: 1.2;
    color: var(--color-primary);
    text-shadow: 2px 2px 10px #ffffff, -2px 2px 10px #ffffff, 2px -2px 10px #ffffff, -2px -2px 10px #ffffff;
}

.hero-content p {
    font-size: 20px;
    margin-bottom: 30px;
    color: #222222;
    text-shadow: none;
}

.btn-primary, .btn-secondary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 25px;
    border-radius: 25px;
    font-size: 16px;
    font-weight: 700;
    transition: all 0.3s ease;
    cursor: pointer;
    gap: 8px;
}

.btn-primary {
    background-color: var(--color-primary);
    color: var(--color-text-light);
    border: 2px solid var(--color-primary);
}

.btn-primary:hover {
    background-color: var(--color-secondary);
    border-color: var(--color-secondary);
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.2);
}

/* クイックリンクセクション (タブUI) */
.quick-links-section {
    background-color: var(--color-background-light);
    padding: 60px 0;
    text-align: center;
}

.quick-links-section .container {
    max-width: var(--max-content-width);
    margin: 0 auto;
    padding: 0 20px; /* パディングは維持 */
}

.tab-container {
    max-width: 100%; /* 親要素の幅に合わせる */
    margin: 0 auto;
    background-color: var(--color-background-dark);
    border-radius: 8px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.05);
    padding: 20px;
}

.tab-container input[type="radio"] {
    display: none;
}

.tab-buttons {
    display: flex;
    justify-content: space-around;
    gap: 10px;
    margin-bottom: 20px;
}

.tab-button {
    flex: 1;
    padding: 15px 10px;
    background-color: var(--color-text-light);
    color: var(--color-primary);
    border-radius: 8px;
    cursor: pointer;
    font-weight: 700;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.tab-button i {
    font-size: 24px;
}

.tab-button:hover {
    background-color: var(--color-background-light);
}

/* タブが選択されたときのスタイルを修正 */
#tab1:checked ~ .tab-buttons label[for="tab1"],
#tab2:checked ~ .tab-buttons label[for="tab2"],
#tab3:checked ~ .tab-buttons label[for="tab3"],
#tab4:checked ~ .tab-buttons label[for="tab4"] {
    background-color: var(--color-primary);
    color: var(--color-text-light);
}

/* 修正箇所：タブコンテンツの表示・非表示を修正 */
.tab-content {
    display: none; /* デフォルトで全て非表示 */
    text-align: left;
    animation: fadein 0.5s ease-in-out;
    background-color: var(--color-text-light);
    padding: 30px;
    border-radius: 8px;
}

.tab-container #tab1:checked ~ .tab-content-wrapper #tab1-content,
.tab-container #tab2:checked ~ .tab-content-wrapper #tab2-content,
.tab-container #tab3:checked ~ .tab-content-wrapper #tab3-content,
.tab-container #tab4:checked ~ .tab-content-wrapper #tab4-content {
    display: block; /* 選択されたタブのコンテンツのみ表示 */
}

/* コンテンツラッパーのスタイルは不要になったので削除または修正 */
.tab-content-wrapper {
    /* 以前のバージョンで使っていたスタイルを削除または調整 */
    background-color: transparent;
    padding: 0;
    min-height: auto;
}

.tab-content h3 {
    font-size: 24px;
    margin-bottom: 10px;
    color: var(--color-primary);
}

.tab-content p {
    font-size: 16px;
    margin-bottom: 20px;
}

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

/* 動画カルーセルセクション */
.video-carousel-section {
    background-color: var(--color-background-light);
    padding: 60px 0;
    text-align: center;
}

.video-carousel-section h2 {
    font-size: 32px;
    color: var(--color-primary);
    margin-bottom: 30px;
}

.video-carousel {
    display: flex;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scroll-snap-type: x mandatory;
    padding-bottom: 20px;
    margin-bottom: 30px;
    gap: 20px;
    justify-content: flex-start;
    max-width: var(--max-content-width);
    margin: 0 auto 30px auto;
    padding-left: 20px;
    padding-right: 20px;
}

.video-item {
    flex: 0 0 auto;
    width: 300px;
    background-color: var(--color-text-light);
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 10px rgba(0,0,0,0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    text-align: left;
    scroll-snap-align: start;
    position: relative;
    cursor: pointer; /* ポップアップ用 */
}

.video-item:nth-child(1){ background-image: url(img/a_01.jpg); }
.video-item:nth-child(2){ background-image: url(img/a_02.jpg);  background-position: 0cap; }
.video-item:nth-child(3){ background-image: url(img/a_03.jpg); }
.video-item:nth-child(4){ background-image: url(img/a_04.jpg); }

/* 文字装飾追加 */
.hero-content h1 {
    text-shadow: 2px 2px 10px #ffffff, -2px 2px 10px #ffffff, 2px -2px 10px #ffffff, -2px -2px 10px #ffffff;
}

.video-carousel h4 {
    color: #ffffff;
    text-shadow: 2px 2px 10px #ffffff, -2px 2px 10px #ffffff, 2px -2px 10px #ffffff, -2px -2px 10px #ffffff;
}
.video-item p {
    text-shadow: 2px 2px 10px #ffffff, -2px 2px 10px #ffffff, 2px -2px 10px #ffffff, -2px -2px 10px #ffffff;
}

.video-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 15px rgba(0,0,0,0.12);
}

.video-item img {
    width: 100%;
    height: 168px;
    object-fit: cover;
}

.video-item h4 {
    font-size: 18px;
    margin: 12px 12px 5px 12px;
    color: var(--color-text-dark);
}

.video-item p {
    font-size: 13px;
    color: #202020;
    margin: 0 12px 12px 12px;
}

.video-item .play-btn {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background-color: rgba(0, 0, 0, 0.6);
    color: var(--color-text-light);
    border-radius: 50%;
    width: 60px;
    height: 60px;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 28px;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.video-item:hover .play-btn {
    opacity: 1;
}

/* ポップアップ（モーダル）のスタイル */
.modal {
    display: none; /* 初期状態では非表示 */
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(5px);
}

.modal-content {
    background-color: #fefefe;
    margin: 10% auto;
    padding: 20px;
    border: 1px solid #888;
    width: 90%;
    max-width: 800px;
    position: relative;
    border-radius: 10px;
}

.close-btn {
    color: #aaa;
    float: right;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
}

.close-btn:hover,
.close-btn:focus {
    color: #000;
    text-decoration: none;
}

.modal-video-wrapper {
    position: relative;
    padding-bottom: 56.25%; /* 16:9のアスペクト比 */
    height: 0;
    overflow: hidden;
}

.modal-video-wrapper iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}


/* Q&Aセクション（アコーディオン） */
.faq-section {
    background-color: var(--color-background-dark);
    padding: 60px 0;
    text-align: center;
}

.faq-section h2 {
    font-size: 32px;
    color: var(--color-text-dark);
    margin-bottom: 30px;
}

.accordion-item {
    max-width: 900px;
    margin: 0 auto 15px auto;
    border: 1px solid var(--color-border);
    border-radius: 8px;
    overflow: hidden;
    background-color: var(--color-text-light);
    text-align: left;
}

.accordion-toggle {
    display: none;
}

.accordion-header {
    display: block;
    padding: 15px 20px;
    font-size: 18px;
    font-weight: 700;
    color: var(--color-text-dark);
    cursor: pointer;
    background-color: var(--color-background-light);
    position: relative;
    user-select: none;
}

.accordion-header::after {
    content: '\25B6';
    position: absolute;
    right: 20px;
    top: 50%;
    transform: translateY(-50%) rotate(0deg);
    transition: transform 0.3s ease;
    color: var(--color-primary);
}

.accordion-toggle:checked + .accordion-header::after {
    transform: translateY(-50%) rotate(90deg);
}

.accordion-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease-out;
    padding: 0 20px;
}

.accordion-toggle:checked + .accordion-header + .accordion-content {
    max-height: 200px;
    padding: 15px 20px;
}

.accordion-content p {
    font-size: 16px;
    color: #555;
}

/* お問い合わせセクション */
.contact-section {
    background-color: var(--color-primary);
    color: var(--color-text-light);
    padding: 50px 0;
    text-align: center;
}

.contact-section h2 {
    font-size: 32px;
    margin-bottom: 15px;
    text-shadow: 1px 1px 3px rgba(0,0,0,0.2);
}

.contact-section p {
    font-size: 18px;
    margin-bottom: 25px;
}

.resizeimage img { width: 100%; }

/* フッター */
.site-footer {
    background-color: var(--color-text-dark);
    color: var(--color-text-light);
    padding: 20px 0;
    font-size: 13px;
    text-align: center;
}

.site-footer .container_botom {
    display: block;
    max-width: 1224px;
    margin: 0 auto;
    padding: 0 20px;
}

.site-footer img {
    max-width: 100%;
    height: auto;
    display: block;
    margin-bottom: 10px;
}

.site-footer p {
    text-align: center;
    margin-top: 10px;
}


/* レスポンシブ対応 */
@media (max-width: 992px) {
    .hero-inner-container {
        flex-direction: column;
        text-align: center;
        gap: 30px;
    }
    
    .hero-video-wrapper {
        width: 100%;
        height: 400px;
    }

    .hero-content {
        padding-right: 0;
    }

    .hero-content h1 {
        font-size: 40px;
    }

    .hero-content p {
        font-size: 16px;
    }

    .tab-buttons {
        flex-wrap: wrap;
    }
    .tab-button {
        flex: 1 1 45%;
    }

/* 二画面レスポンシブ対応 */
.contact-section{
    img{max-width: 100%;
    height: auto;}
}



}

@media (max-width: 768px) {
    .header-content {
        padding: 0 15px;
    }

    .main-nav {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100vh;
        background-color: rgba(255, 255, 255, 0.98);
        display: none;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        opacity: 0;
        transition: opacity 0.5s ease;
        z-index: 999;
    }
    
    .main-nav.active {
        display: flex;
        opacity: 1;
    }

    .main-nav ul {
        flex-direction: column;
        gap: 30px;
        text-align: center;
    }

    .main-nav a {
        font-size: 24px;
        color: var(--color-text-dark);
    }
    
    .hamburger {
        display: flex;
    }

    .logo a {
        font-size: 20px;
    }
    
    .search-box {
        display: none;
    }

    .hero-video-wrapper {
        height: 300px;
    }
    
    .tab-buttons {
        flex-direction: column;
    }
/* 二画面レスポンシブ対応 */
.contact-section{
    img{max-width: 100%;
    height: auto;}
}


}