/* --- ベーススタイル --- */
body {
    font-family: 'Noto Sans JP', sans-serif;
    margin: 0;
    padding: 0;
    line-height: 1.7;
    color: #333;
    background-color: #fff;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 5%;
}

a {
    text-decoration: none;
    color: #007bff;
    transition: color 0.3s;
}

a:hover {
    color: #0056b3;
}

h1, h2, h3 {
    font-family: 'Montserrat', 'Noto Sans JP', sans-serif;
    font-weight: 700;
}


/* --- 1. HEADER スタイル --- */
.header {
    background-color: #fff;
    border-bottom: 1px solid #eee;
    padding: 10px 0; 
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.header-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 5%;
}

.header-logo {
    display: flex;
    align-items: center;
    color: #007bff;
    text-decoration: none;
}

.header-logo img {
    height: 40px;
    margin-right: 10px;
}

/* ロゴテキストのスタイル (PC用) */
.header-logo .site-title-logo {
    font-size: 1.4em;
    font-weight: 700;
    color: #1a237e;
    line-height: 1.2;
}

/* PC/タブレット用メニュー */
.site-menu ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex; 
}

.site-menu li a {
    display: block;
    padding: 10px 15px;
    color: #333;
    font-weight: 500;
}

.menu-toggle-button {
    display: none;
    background: none;
    border: none;
    font-size: 24px;
    cursor: pointer;
    color: #007bff;
}


/* --- 2. HERO SECTION スタイル --- */
.hero-section {
    background-color: #e3f2fd; 
    padding: 40px 5%;
}

.hero-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    max-width: 1200px;
    margin: 0 auto;
    gap: 40px;
}

.hero-text-content, .hero-image-content {
    flex: 1; 
}

.hero-text-content h1 {
    font-size: 2.8em;
    line-height: 1.2;
    margin-bottom: 20px;
    color: #1a237e; 
}

.hero-text-content .main-catch {
    color: #d32f2f; 
}

.hero-text-content .sub-catch {
    font-size: 1.2em;
    font-weight: 700;
    margin-bottom: 15px;
}

.hero-image-content img {
    max-width: 100%;
    height: auto;
    display: block;
    border-radius: 8px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    object-fit: contain; 
}

/* --- 2.2. SNS SECTION スタイル --- */
.sns-section {
    max-width: 1200px;
    margin: 20px auto; 
    text-align: center;
    padding: 0 5%;
}

.sns-buttons {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 20px;
}

.twitter-share-button {
    background-color: #1DA1F2;
    color: white;
    padding: 5px 10px;
    border-radius: 3px;
    font-weight: 500;
    font-size: 0.8em; 
    display: flex;
    align-items: center;
    gap: 5px;
}

/* --- 2.3. MAP INTRO (構造化) --- */
.map-intro-section {
    padding: 40px 0; 
    background-color: #f8f9fa; 
}

.map-intro-section h2.section-title {
    text-align: center;
    margin-bottom: 20px; 
    font-size: 2.2em;
    color: #1a237e;
}

.map-intro-content {
    display: flex;
    align-items: center;
    gap: 40px;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 5%;
}

.map-intro-text, .map-intro-image {
    flex: 1;
}

.map-intro-image img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

.map-intro-description {
    font-size: 1.1em;
    margin-bottom: 15px; 
}

.feature-list {
    list-style: none;
    padding: 0;
    margin: 15px 0; 
}

.feature-list li {
    font-size: 1.1em; 
    line-height: 1.6; 
    margin-bottom: 8px; 
    display: flex;
    align-items: flex-start;
}

.icon-point {
    color: #4caf50; 
    font-size: 1.2em;
    margin-right: 10px;
    line-height: 1.3;
}


/* --- 2.4. BUTTONS SECTION (横並びボタン) --- */
.buttons-section {
    padding: 20px 5%; 
    text-align: center;
}

.link-button-wrapper {
    display: flex;
    justify-content: center; /* ★★★ 修正後: ボタン全体を中央に配置 ★★★ 元はjustify-content: space-between;Flexコンテナの端と端に子要素を押しつけ：改修後）子要素（2つのボタン）を間隔を保ったまま、親コンテナ（max-width: 800px）の中心に配置 */
    gap: 30px;
    max-width: 800px; 
    margin: 0 auto;
}

/* --- 共通ボタン スタイル --- */
.link-button {
    display: inline-block;
    padding: 15px 30px;
    font-size: 1.1em;
    font-weight: 700;
    border-radius: 5px;
    transition: background-color 0.3s, transform 0.1s;
    text-align: center;
    width: 40%; 
    max-width: 350px; 
}

.map-button {
    background-color: #4caf50; 
    color: white;
}

.howto-button {
    background-color: #ff9800; 
    color: white;
}

.map-button:hover, .howto-button:hover {
    transform: translateY(-2px);
}

/* --- 2.5. INFO & CONTACT SECTION スタイル --- */
.info-contact-section {
    padding: 20px 5%; 
    max-width: 1200px;
    margin: 0 auto;
}

.info-contact-section h2 {
    font-size: 2em;
    color: #1a237e;
    border-bottom: 2px solid #eee;
    padding-bottom: 10px;
    margin-bottom: 15px;
}

.info-contact-section p {
    font-size: 1.0em;
    line-height: 1.5;
    margin-bottom: 5px;
}


/* --- 3. FOOTER スタイル ---　gem20をコピーペースト */
.footer {
    background-color: #3f51b5; 
    color: white;
    padding: 20px 5%; 
}

.footer-logo img {
    height: 40px; 
}

.footer-inner {
    display: flex;
    justify-content: space-around;
    align-items: flex-start; 
    max-width: 1200px;
    margin: 0 auto 5px; 
    gap: 15px; 
}

.footer-menu {
    flex: 1;
    min-width: 300px; 
}

.footer-menu h3, .footer-address h3 {
    color: white; 
    font-size: 1.2em; 
    margin-top: 0; 
    margin-bottom: 10px;
}

.footer-menu ul {
    list-style: none;
    padding: 0;
    display: flex; 
    flex-wrap: wrap;
    gap: 5px 20px; 
    justify-content: flex-start; 
}

.footer-menu ul a {
    color: #000; 
    background-color: #f0f0f0; 
    padding: 3px 8px;
    border-radius: 3px;
    line-height: 1.3;
}

.footer-address {
    line-height: 1.4; 
}

.footer-address p {
    font-size: 0.9em;
    margin: 3px 0; 
}

.copyright {
    text-align: center;
    padding-top: 15px; 
    border-top: 1px solid #5c72c0; 
}

/* ================================================================= */
/* ★★★ モバイル対応 (max-width: 768px) - 最終修正エリア ★★★ */
/* ================================================================= */

@media (max-width: 768px) {
    
    /* --- 1. HEADER (モバイル時) --- */
    .header {
        padding: 5px 0; 
    }
    
    .header-logo img {
        height: 28px; 
    }
    
 /*   .site-menu { */
 /*       display: none;  */
 /*    }  */

    .menu-toggle-button {
        display: block; 
    }
    
    .header-logo .site-title-logo {
        font-size: 1.0em; 
        line-height: 1.1; 
        width: 195px; 
    }

   /* 【メニュー開閉機能の修正】 */
    /* ハンバーガーメニューがクリックされ、is-openクラスが付与されたとき */
/* 1. モバイル時のメニューの初期設定 (非表示) */
/* .site-menu は #global-nav と同じ要素です */
.site-menu {
    /* !important は不要です。これが残っていると開きません */
    display: none; 
    /* その他のPC用スタイルもここで上書きされ、消えていればOK */
}

/* 2. メニューが開いた状態の定義 (is-openが追加されたとき) */
#global-nav.is-open {
    display: block; /* 👈 display:none を確実に上書き */
    position: fixed; 
    top: 50px; /* ヘッダーの高さに合わせて調整してください */
    left: 0;
    width: 100%;
    height: 100%; 
    background-color: rgba(255, 255, 255, 0.98); 
    z-index: 998; 
    overflow-y: auto; 
}

/* 3. メニュー項目の縦並び */
#global-nav.is-open ul {
    flex-direction: column; 
    align-items: center; 
    padding-top: 20px;
}

#global-nav.is-open li {
    width: 100%; 
    border-bottom: 1px solid #eee;
}

#global-nav.is-open li a {
    display: block;
    padding: 15px 0;
    font-size: 1.1em;
    text-align: center;
    color: #333;
}

    /* --- 2. HERO SECTION (モバイル時) --- */
    .hero-section {
        padding: 15px 5% 10px; 
    }

    .hero-inner {
        flex-direction: column; 
        gap: 10px; 
    }
    
    .hero-image-content {
        order: 2; 
    }
    
    .hero-text-content {
        order: 1; 
    }

    /* 【修正開始】 ヒーローセクションの画像表示不具合を修正 */
    .hero-image-content img {
        /* object-fit: contain; が原因で画像が小さくなっていた可能性があるため削除 */
        /* max-width: 100%; と display: block; のみで画像を横幅いっぱいに表示させる */
        /* width: 100%; を追加し、親要素いっぱいに広げる */
        width: 100%; 
        object-fit: cover; /* 画像が欠ける可能性はあるが、領域を埋めるために設定 */
        height: auto;
    }
    /* 【修正終了】 */

    /* --- 2.2. SNS SECTION (モバイル時) --- */
    .sns-section {
        margin: 0 auto 5px; 
        padding: 5px 5%; 
    }

    /* --- 2.3. MAP INTRO (モバイル時) --- */
    .map-intro-section {
        padding: 10px 0; 
    }
    
    .map-intro-section h2.section-title {
        font-size: 1.6em;
        margin-bottom: 10px; 
    }

    .map-intro-content {
        flex-direction: column; 
        padding: 0 5%;
        gap: 0; 
    }
    
    .map-intro-image {
        order: 1; 
        margin-bottom: 8px; 
    }

    .map-intro-text {
        order: 2; 
    }
    
    .map-intro-description {
        margin-bottom: 5px;
    }
    
    .feature-list {
        margin: 5px 0 10px; 
    }

    .feature-list li {
        font-size: 0.95em; 
        margin-bottom: 3px; 
    }
    
    /* --- 2.4. BUTTONS SECTION (モバイル時) --- */
    .buttons-section {
        padding: 10px 5%; 
    }
    
    .link-button {
        width: 45%; 
        font-size: 1.0em;
        padding: 12px 20px; 
    }

    /* --- 2.5. INFO & CONTACT SECTION (モバイル時) --- */
    .info-contact-section {
        padding: 15px 5%; 
    }
    
    .info-contact-section h2 {
        font-size: 1.8em; 
        margin-bottom: 8px; 
    }
    
    .info-contact-section p {
        font-size: 1.0em; 
        line-height: 1.4;
        margin-bottom: 2px;
    }
    
    /* --- 3. FOOTER (モバイル時)  gem20の該当部分を使用--- */
    .footer {
        /* [問題点 8] 上下paddingをさらに最小限に */
        padding: 10px 5%; 
    }

    .footer-logo img {
        height: 28px; 
    }

    .footer-inner {
        flex-direction: column; 
        align-items: center;
        text-align: center;
        /* [問題点 8] 要素間の隙間をさらに削減 */
        gap: 8px; 
        margin-bottom: 3px;
    }
    
    .footer-menu h3, .footer-address h3 {
        margin-bottom: 5px;
        font-size: 1.1em; /* タイトルサイズも詰める */
    }
    
    .footer-address {
        line-height: 1.3;
        margin-bottom: 5px; /* アドレス全体の下マージンを詰める */
    }

    .footer-address p {
        font-size: 0.9em; /* フォントサイズを微調整 */
        margin: 2px 0; 
    }

    /* [問題点 8] モバイル時のフッターメニューデザイン調整 */
    .footer-menu ul {
        flex-direction: column;
        align-items: center;
        gap: 0px; 
        margin-bottom: 5px; /* リスト全体の下マージンを詰める */
    }

    .footer-menu ul a {
        width: auto;
        padding: 1px 0; /* パディングをさらに削減 */
        background: none; 
        color: white; 
        line-height: 1.4;
        font-size: 0.9em; /* リンクテキストのサイズを微調整 */
    }
    
    .copyright {
        padding-top: 8px;
    }
}