/* --- ✨✨✨ 店舗一覧ページ (store) 専用のスタイル ✨✨✨ --- */

/* --- 基本設定 --- */
:root {
    --main-red: #E60012;
    --dark-gray: #343A40;
    --light-gray: #F8F9FA;
    --text-color: #555;
    --base-font: 'Noto Sans JP', sans-serif;
    --heading-font: 'Poppins', sans-serif;
}

body {
    font-family: var(--base-font);
    margin: 0;
    color: var(--text-color);
    background-color: #fff;
    line-height: 1.8;
}

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

.section-title {
    font-family: var(--heading-font);
    font-size: 2.5rem;
    text-align: center;
    margin-bottom: 60px;
    color: var(--dark-gray);
}

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

/* --- ヘッダー --- */
.main-header {
    background-color: #fff;
    border-bottom: 1px solid #eee;
    padding: 15px 0;
    position: sticky;
    top: 0;
    z-index: 1000;
}

.main-header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.header-logo {
    font-family: var(--heading-font);
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--dark-gray);
    text-decoration: none;
}
.header-logo-image {
    max-height: 70px; /* ロゴの高さを指定 */
    width: auto;      /* 高さに合わせて幅を自動調整 */
}

.main-nav ul {
    margin: 0;
    padding: 0;
    list-style: none;
    display: flex;
    align-items: center;
    gap: 30px;
}

.main-nav ul li a {
    text-decoration: none;
    color: var(--text-color);
    font-weight: 700;
    font-size: 0.9rem;
    transition: color 0.3s;
}

.main-nav ul li a:hover {
    color: var(--main-red);
}

.nav-button {
    background-color: var(--main-red);
    color: #fff !important;
    padding: 10px 20px;
    border-radius: 5px;
    transition: opacity 0.3s;
}
.nav-button:hover {
    color: #fff !important;
    opacity: 0.85;
}

/* --- ヒーローセクション --- */
.hero {
    background: linear-gradient(rgba(0,0,0,0.5), rgba(0,0,0,0.5)), url('images/rangex_background.png') no-repeat center center/cover;
    color: #fff;
    text-align: center;
    padding: 150px 20px;
}

.hero-content h1 {
    font-family: var(--heading-font);
    font-size: 3.5rem;
    margin: 0 0 20px;
    line-height: 1.4;
}

.hero-content p {
    font-size: 1.2rem;
    max-width: 600px;
    margin: 0 auto 40px;
    opacity: 0.9;
}

.scroll-down-btn {
    font-weight: 700;
    color: #fff;
    text-decoration: none;
    font-size: 1rem;
    transition: opacity 0.3s;
}
.scroll-down-btn:hover {
    opacity: 0.8;
}
.scroll-down-btn i {
    margin-left: 8px;
}

/* --- 3つの魅力セクション --- */
.features-section {
    padding: 100px 0;
    background-color: var(--light-gray);
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
}

.feature-item {
    text-align: center;
}
.feature-item img {
    border-radius: 8px;
    margin-bottom: 25px;
}
.feature-item h3 {
    font-family: var(--heading-font);
    font-size: 1.5rem;
    color: var(--dark-gray);
    margin-bottom: 15px;
}

/* --- ギャラリーセクション --- */
.gallery-section {
    padding: 100px 0;
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 15px;
}
.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 8px;
}


/* --- 次のステップセクション --- */
.next-step-section {
    background-color: var(--light-gray);
    padding: 80px 0;
}
.next-step-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
}
.next-step-item {
    background-color: #fff;
    padding: 40px;
    border-radius: 8px;
    text-align: center;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
}
.next-step-item h3 {
    font-family: var(--heading-font);
    font-size: 1.8rem;
    margin-bottom: 15px;
    color: var(--dark-gray);
}
.next-step-item p {
    margin-bottom: 30px;
}
.cta-button {
    display: inline-block;
    background-color: var(--dark-gray);
    color: #fff;
    padding: 15px 40px;
    border-radius: 5px;
    text-decoration: none;
    font-weight: 700;
    transition: transform 0.3s, box-shadow 0.3s;
}
.cta-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
}
.cta-button.alt {
    background-color: var(--main-red);
}

/* --- フッター --- */
.main-footer {
    background-color: var(--dark-gray);
    color: #fff;
    padding: 30px 0;
    text-align: center;
    font-size: 0.9rem;
}

/* --- レスポンシブ対応 --- */
@media (max-width: 992px) {
    .features-grid, .gallery-grid, .next-step-container {
        grid-template-columns: 1fr;
    }
    .main-nav { display: none; } /* 簡単のため、一旦非表示にします！後でハンバーガーメニューにしましょう！*/
}

@media (max-width: 768px) {
    .section-title { font-size: 2rem; }
    .hero-content h1 { font-size: 2.5rem; }
    .features-section, .gallery-section { padding: 80px 0; }
}




/* ページタイトル */
.page-title-section {
    background-color: var(--dark-gray);
    color: #fff;
    text-align: center;
    padding: 60px 20px;
}
.page-title {
    font-family: var(--heading-font);
    font-size: 3rem;
    margin: 0;
    letter-spacing: 2px;
}
.page-subtitle {
    font-size: 1rem;
    margin: 5px 0 0;
    color: rgba(255,255,255,0.8);
}

/* 店舗リストセクション */
.store-list-section {
    padding: 80px 0;
}

/* 地図のプレースホルダー */
.map-placeholder {
    width: 100%;
    height: 300px;
    background-color: #b4e7bc;
    border-radius: 8px;
    margin-bottom: 60px;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 1.5rem;
    color: #adb5bd;
}

/* 店舗グリッド */
.store-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

/* 店舗カード */
.store-card {
    background-color: #fff;
    border: 1px solid #eee;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
    transition: transform 0.3s, box-shadow 0.3s;
}
.store-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.1);
}

.store-card-image {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.store-card-body {
    padding: 25px;
}

.store-card-title {
    font-family: var(--heading-font);
    font-size: 1.4rem;
    margin: 0 0 15px;
    color: var(--dark-gray);
}

.store-card-address,
.store-card-tel {
    margin: 0 0 10px;
    color: var(--text-color);
    font-size: 0.9rem;
}
.store-card i {
    margin-right: 8px;
    color: var(--main-red);
}

.store-card-button {
    display: block;
    background-color: var(--main-red);
    color: #fff;
    text-align: center;
    padding: 12px;
    border-radius: 5px;
    text-decoration: none;
    font-weight: 700;
    margin-top: 20px;
    transition: opacity 0.3s;
}
.store-card-button:hover {
    opacity: 0.85;
}

/* 準備中の店舗 */
.store-card.is-coming-soon {
    opacity: 0.6;
}
.store-card.is-coming-soon:hover {
    transform: none;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
}


/* レスポンシブ調整 */
@media (max-width: 992px) {
    .store-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}
@media (max-width: 768px) {
    .store-grid {
        grid-template-columns: 1fr;
    }
}

/* --- ✨✨✨ ハンバーガーメニュー用のスタイル ✨✨✨ --- */

.hamburger-button {
    display: none; /* PCでは非表示 */
    background: none;
    border: none;
    cursor: pointer;
    padding: 10px;
    z-index: 1001; /* メニューより手前に表示 */
}
.hamburger-line {
    display: block;
    width: 25px;
    height: 3px;
    background-color: var(--dark-gray);
    margin: 5px 0;
    transition: all 0.3s ease-in-out;
}

/* --- ✨✨✨ ハンバーガーメニュー用のスタイル ✨✨✨ --- */

.hamburger-button {
    display: none; /* PCでは非表示 */
    background: none;
    border: none;
    cursor: pointer;
    padding: 10px;
    z-index: 1001; /* メニューより手前に表示 */
}
.hamburger-line {
    display: block;
    width: 25px;
    height: 3px;
    background-color: var(--dark-gray);
    margin: 5px 0;
    transition: all 0.3s ease-in-out;
}

/* --- ✨✨✨ ハンバーガーメニュー用のスタイル ✨✨✨ --- */

.hamburger-button {
    display: none; /* PCでは非表示 */
    background: none;
    border: none;
    cursor: pointer;
    padding: 10px;
    z-index: 1001; /* メニューより手前に表示 */
}
.hamburger-line {
    display: block;
    width: 25px;
    height: 3px;
    background-color: var(--dark-gray);
    margin: 5px 0;
    transition: all 0.3s ease-in-out;
}

/* スマホ表示のときだけハンバーガーメニューを有効に */
@media (max-width: 992px) {
    .hamburger-button {
        display: block; /* スマホでは表示 */
    }

    .main-nav {
        display: block;
        position: fixed;
        top: 0;
        right: -100%; /* 最初は画面の右外に隠す */
        width: 80%;
        max-width: 300px;
        height: 100vh;
        background-color: #fff;
        box-shadow: -5px 0 15px rgba(0,0,0,0.1);
        padding-top: 80px;
        transition: right 0.4s ease-in-out;
        overflow-y: auto; /* ✨追加！ メニューが長くなった場合にスクロールできるように */
    }

    .main-nav.is-active {
        right: 0; /* is-activeクラスが付いたらスライドイン！ */
    }

    .main-nav ul {
        flex-direction: column;
        align-items: flex-start;
        gap: 0;
    }
    .main-nav ul li {
        width: 100%;
    }

    .main-nav ul li a {
        display: block;
        padding: 15px 30px;
        width: 100%;
        box-sizing: border-box; /* paddingを含めて幅100%に */
    }

    .nav-button {
        padding: 12px 15px;  /* 左右の余白を少し小さく */
        font-size: 0.9rem;   /* 文字の大きさを少し小さく */
        margin: 15px 30px;
        text-align: center;
        white-space: nowrap; /* ✨文字が改行しないようにするおまじない！ */
}

    /* ボタンがアクティブになったら×印にアニメーション */
    .hamburger-button.is-active .hamburger-line:nth-child(1) {
        transform: translateY(8px) rotate(45deg);
    }
    .hamburger-button.is-active .hamburger-line:nth-child(2) {
        opacity: 0;
    }
    .hamburger-button.is-active .hamburger-line:nth-child(3) {
        transform: translateY(-8px) rotate(-45deg);
    }
}