@charset "UTF-8";

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: "Helvetica Neue", Arial, "Hiragino Kaku Gothic ProN", Meiryo, sans-serif;
    font-size: 14px;
    line-height: 1.6;
    letter-spacing: 0.05em;
    color: #333;
    background: #ffffff;
}

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

a {
    text-decoration: none;
    transition: 0.3s;
}

ul {
    list-style: none;
}

/* 変数管理（色の管理が楽になります） */
:root {
    --main-green: #4f7942;
    --dark-green: #2e6b4a;
    --light-green: #e8f5e9;
}

/* グローバルコンテナ */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* ============================================
   2. ヘッダー & ナビゲーション (Header)
   ============================================ */
.header {
    background: #ffffff;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05); 
    position: sticky;
    margin-bottom: 3px;
    top: 0;
    z-index: 1000;
	border-bottom: 4px solid var(--main-green); /* 太さ4pxの緑色ライン */
}

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

/* ロゴ */
.logo {
    position: relative;
}

.logo img {
    height: 30px;
    width: auto;
    transition: 0.3s;
}

.logo-pc { display: block; }
.logo-mobile { display: none; }

/* PCナビメニュー */
.nav-menu {
    display: flex;
    gap: 25px;
    align-items: center;
}

.nav-menu > li {
    position: relative;
}

.nav-menu > li > a {
    color: #444;
    font-weight: 550;
    font-size: 0.8rem;
    padding: 10px 0;
	letter-spacing: 0.02em;
}

.nav-menu > li > a:hover,
.nav-menu > li.active > a {
    color: var(--main-green);
}

.nav-menu > li.active::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 100%;
    height: 3px;
    background: var(--main-green);
}

/* ドロップダウン (PC) */
.has-submenu:hover .submenu {
    display: block;
    opacity: 1;
    visibility: visible;
}

.submenu {
    display: none;
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    background: #ffffff;
    min-width: 200px;
    box-shadow: 0 8px 20px rgba(0,0,0,0.12);
    border-radius: 10px;
    padding: 10px 0;
    z-index: 100;
}

.submenu li a {
    display: block;
    padding: 12px 20px;
    color: #555;
    font-size: 0.9rem;
}

.submenu li a:hover {
    background: var(--light-green);
    color: var(--main-green);
    font-weight: 700;
}

/* ハンバーガーメニュー隠し設定 */
.nav-toggle { display: none; }
.nav-toggle-label { display: none; }

/* ============================================
   3. フッター (Footer)
   ============================================ */
.footer {
    background: var(--dark-green);
    padding: 50px 0 30px; /* 全体の上下パディングを少し詰めました */
    text-align: center;
    color: #fff;
}

/* 記述が重複していた .footer-logo を削除し、wrapに統合整理 */
.footer-logo-wrap {
    width: 100%;
    text-align: center;
    margin-bottom: 20px; /* ロゴ下の余白を40pxから20pxへ大幅に短縮 */
}

.footer-logo-wrap img {
    max-width: 260px; /* ロゴサイズを少し控えめに調整 */
    height: auto;
    display: inline-block;
}

/* モバイル用の調整 */
@media (max-width: 768px) {
    .footer-logo-wrap img {
        max-width: 180px;
    }
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 30px; /* カテゴリ間の隙間を少し詰めました */
    max-width: 1100px;
    margin: 0 auto 30px; /* 下側の余白を40pxから30pxへ */
    text-align: left;
}

.footer-category h4 {
    font-size: 1.05rem;
    margin-bottom: 12px;
    border-bottom: 1px solid rgba(255,255,255,0.3);
    padding-bottom: 8px;
}

/* フッターのリンク基本設定 */
.footer-category li a {
    color: #e8f5e9;
    font-size: 0.9rem;
    position: relative;
    display: inline-block;
    padding: 4px 0; /* 行間を少しタイトに */
    transition: color 0.3s ease;
}

/* 下線アニメーション（既存のまま） */
.footer-category li a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: 0;
    left: 0;
    background-color: #ffffff;
    transition: width 0.35s ease;
}

.footer-category li a:hover {
    color: #fff;
}

.footer-category li a:hover::after {
    width: 100%;
}

.footer-divider {
    width: 100%; /* 線を端まで伸ばすか、お好みで90%に戻してください */
    margin: 0 auto 20px;
    border: none;
    border-top: 1px solid rgba(255,255,255,0.2);
}

.footer-copy {
    font-size: 0.75rem;
    color: #c8e6c9;
}

/* ============================================
   4. レスポンシブ (共通)
   ============================================ */
@media (max-width: 868px) {
    /* ロゴ切り替え */
    .logo-pc { display: none; }
    .logo-mobile { display: block; position: static; }
    .logo img { height: 45px; }

    /* モバイルメニュー */
    .nav-toggle-label {
        display: block;
        cursor: pointer;
        padding: 10px;
    }
    .nav-toggle-label span {
        display: block;
        width: 28px; height: 3px;
        background: #444; margin: 6px 0;
    }

    .nav-menu {
        display: none;
        flex-direction: column;
        position: absolute;
        top: 100%; left: 0; width: 100%;
        background: #fff;
        padding: 0; gap: 0;
        box-shadow: 0 10px 10px rgba(0,0,0,0.1);
    }

    .nav-toggle:checked ~ .nav-menu { display: flex; }

    .nav-menu > li {
        width: 100%;
        border-bottom: 1px solid #eee;
    }

    .nav-menu > li > a {
        display: block;
        padding: 20px;
        text-align: center;
        font-size: 1.1rem;
    }

    /* モバイルドロップダウン */
    .submenu {
        position: static;
        transform: none;
        width: 100%;
        box-shadow: none;
        background: #f9f9f9;
        display: none;
        opacity: 1;
        visibility: visible;
    }
    
    .nav-toggle:checked ~ .nav-menu .has-submenu input:checked ~ .submenu {
        display: block;
    }

    /* フッターレスポンシブ */
    .footer-grid {
        grid-template-columns: repeat(2, 1fr);
        text-align: center;
        padding: 0 20px;
    }
}

@media (max-width: 480px) {
    .footer-grid { grid-template-columns: 1fr; }
}

/* ============================================
   全ページ共通：背景固定設定 (bg-fixed-wrapper)
   ============================================ */
.bg-fixed-wrapper {
    position: relative;
    background-image: url("../images/top/top_03.jpg");
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    z-index: 0; /* ベース */
	width: 100%;
    overflow: hidden; /* 余白の突き抜けを防止 */
}

/* 背景をより白く、淡くする（0.5 → 0.8へ） */
.bg-fixed-wrapper::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(255, 255, 255, 0.8); /* 数値を上げると白が強くなります */
    z-index: -1;
    pointer-events: none;
}

/* 子要素（section）が背景に埋もれないようにする */
.bg-fixed-wrapper > section,
.bg-fixed-wrapper > div {
    position: relative;
    z-index: 1;
}

/* スマホでは背景固定を解除（動作が不安定になる機種が多いため） */
@media (max-width: 768px) {
    .bg-fixed-wrapper {
        background-attachment: scroll;
    }
}

/* --- トップに戻るボタンのスタイル --- */
.back-to-top {
    position: fixed;
    right: 20px;
    bottom: 20px;
    width: 50px;
    height: 50px;
    background-color: var(--main-green); /* common.cssのメイン緑を使用 */
    color: #fff;
    text-align: center;
    line-height: 50px;
    border-radius: 50%; /* 丸いボタンにする */
    font-size: 1.2rem;
    z-index: 9999;
    text-decoration: none;
    box-shadow: 0 4px 12px rgba(0,0,0,0.2);
    transition: all 0.3s ease;
    
    /* 最初は非表示にしたい場合は opacity: 0; を設定（後述のJSを使う場合） */
    display: block; 
}

.back-to-top:hover {
    background-color: var(--dark-green);
    transform: translateY(-5px); /* 少し浮き上がる演出 */
    color: #fff;
}

/* スマホでは少し小さく、端に寄せる調整 */
@media (max-width: 768px) {
    .back-to-top {
        width: 40px;
        height: 40px;
        line-height: 40px;
        right: 15px;
        bottom: 15px;
    }
}

/* ============================================
   5. 共通パーツ：回遊ナビゲーションボタン
   ============================================ */
.common-nav-section {
    max-width: 1000px;
    margin: 40px auto 80px;
    padding: 0 20px;
}

.common-nav-container {
    display: flex;
    justify-content: center;
    gap: 20px;
}

/* ボタン基本設定 */
.c-nav-btn {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 12px 5px 12px 5px;
    background: #fff;
    border: 2px solid var(--main-green);
    border-radius: 12px;
    text-decoration: none;
    transition: all 0.3s ease;
    box-shadow: 0 4px 10px rgba(0,0,0,0.05);
    text-align: center;
    min-height: 70px;
}

.c-nav-btn-en {
    font-size: 0.7rem;
    font-weight: bold;
    color: var(--main-green);
    margin-bottom: 2px;
    letter-spacing: 0.03em;
}

.c-nav-btn-jp {
    font-size: 1.1rem;
    font-weight: 700;
    color: #333;
}

/* ホバー演出 */
.c-nav-btn:hover {
    background: var(--main-green);
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.1);
}

.c-nav-btn:hover .c-nav-btn-en,
.c-nav-btn:hover .c-nav-btn-jp {
    color: #fff;
}

/* 現在地表示用（任意） */
.c-nav-btn.is-active {
    background: #f4f9f6;
    border-style: double;
    pointer-events: none;
    opacity: 0.8;
}

/* --- レスポンシブ (スマホ：縦並び) --- */
@media (max-width: 768px) {
    .common-nav-container {
        flex-direction: column;
        gap: 15px;
    }
    .c-nav-btn {
        padding: 15px;
        min-height: auto;
    }
    .c-nav-btn-jp {
        font-size: 0.95rem;
    }
}