/* 変数の定義 */
:root {
    --primary-color: #f39800;
    --secondary-color: #6fb92c;
    --bg-color: #fff9f0;
    --text-color: #333;
    --white: #ffffff;
    --gray-light: #f9f9f9;
}

/* 基本リセット */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Noto Sans JP', sans-serif;
    line-height: 1.8;
    color: var(--text-color);
    background-color: var(--bg-color);
}

.container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 5%;
}

.bg-light {
    background-color: #fcefdc;
}

/* ヘッダー */
header {
    background-color: var(--white);
    padding: 1rem 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

.header-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 1.4rem;
    font-weight: bold;
    color: var(--primary-color);
}

nav ul {
    display: flex;
    list-style: none;
}

nav ul li {
    margin-left: 1.5rem;
}

nav ul li a {
    text-decoration: none;
    color: var(--text-color);
    font-weight: bold;
    font-size: 0.9rem;
    transition: color 0.3s;
}

nav ul li a:hover {
    color: var(--primary-color);
}

/* メインビジュアル */
.hero {
    height: 60vh;
    min-height: 400px;
    background: linear-gradient(rgba(0,0,0,0.3), rgba(0,0,0,0.3)), url('34128597_m.jpg') center/cover no-repeat;
    background-color: #ddd;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    text-align: center;
}

.hero-content h1 {
    font-size: clamp(1.5rem, 5vw, 2.5rem);
    margin-bottom: 1.5rem;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.5);
    line-height: 1.4;
}

.hero-content p {
    font-size: 1.1rem;
    background-color: rgba(243, 152, 0, 0.9);
    display: inline-block;
    padding: 0.5rem 1.5rem;
    border-radius: 50px;
}

/* セクション共通 */
section {
    padding: 5rem 0;
}

h2 {
    text-align: center;
    color: var(--primary-color);
    margin-bottom: 3rem;
    font-size: 1.8rem;
    position: relative;
    padding-bottom: 1rem;
}

h2::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 40px;
    height: 3px;
    background-color: var(--secondary-color);
}

/* コンセプト */
.concept-text {
    background-color: var(--white);
    padding: 3rem;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
    text-align: center;
}

.highlight {
    color: var(--primary-color);
    font-weight: bold;
    font-size: 1.2rem;
    display: block;
    margin-top: 1.5rem;
}

/* 強みカード */
.strengths-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 1.5rem;
}

.strength-card {
    background: var(--white);
    padding: 2rem;
    border-radius: 15px;
    text-align: center;
    transition: transform 0.3s, box-shadow 0.3s;
}

.strength-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.strength-card .icon {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.strength-card h3 {
    color: var(--secondary-color);
    margin-bottom: 1rem;
    font-size: 1.2rem;
}

/* 施設案内グリッドレイアウト */
.facility-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.facility-card {
    background: #fff;
    border-radius: 20px;
    overflow: hidden;
    text-decoration: none;
    color: inherit;
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
}

.facility-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(243, 152, 0, 0.15);
}

.facility-img {
    position: relative;
    width: 100%;
    height: 200px;
    overflow: hidden;
}

.facility-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.facility-card:hover .facility-img img {
    transform: scale(1.1);
}

/* エリアタグ */
.area-tag {
    position: absolute;
    top: 15px;
    left: 15px;
    background: rgba(111, 185, 44, 0.9); /* きゃんぱすグリーン */
    color: white;
    padding: 5px 15px;
    border-radius: 50px;
    font-size: 0.8rem;
    font-weight: bold;
}

.facility-info {
    padding: 25px;
    text-align: center;
}

.facility-info h3 {
    color: #333;
    font-size: 1.3rem;
    margin-bottom: 10px;
}

.facility-info p {
    color: #666;
    font-size: 0.95rem;
    margin-bottom: 20px;
}

.more-link {
    display: inline-block;
    color: var(--primary-color);
    font-weight: bold;
    font-size: 0.9rem;
    padding: 8px 20px;
    border: 2px solid var(--primary-color);
    border-radius: 50px;
    transition: all 0.3s;
}

.facility-card:hover .more-link {
    background-color: var(--primary-color);
    color: white;
}

/* スマホ用調整 */
@media (max-width: 768px) {
    .facility-grid {
        grid-template-columns: 1fr; /* スマホでは1枚ずつ */
    }
}




/* 料金表 */
.price-card {
    max-width: 600px;
    margin: 0 auto;
    background: var(--white);
    border: 2px solid var(--primary-color);
    border-radius: 20px;
    overflow: hidden;
}

.price-header {
    background-color: var(--primary-color);
    color: var(--white);
    padding: 1.2rem;
    text-align: center;
    font-size: 1.3rem;
    font-weight: bold;
}

.price-body {
    padding: 2rem;
}

.price-row {
    display: flex;
    justify-content: space-between;
    border-bottom: 1px solid #eee;
    padding: 0.8rem 0;
}

.price-row.total {
    border: none;
    font-weight: bold;
    font-size: 1.2rem;
    color: var(--primary-color);
    padding-top: 1.5rem;
}

.trial-banner {
    background-color: #ff5722;
    color: white;
    text-align: center;
    padding: 1rem;
    margin-top: 2rem;
    border-radius: 10px;
    font-weight: bold;
    font-size: 1.1rem;
}

/* フッター */
footer {
    background-color: #444;
    color: white;
    text-align: center;
    padding: 3rem 0;
}

.footer-name {
    font-weight: bold;
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
}

.copyright {
    margin-top: 1.5rem;
    font-size: 0.8rem;
    opacity: 0.7;
}

/* レスポンシブ (スマホ対応) */
@media (max-width: 768px) {
    .header-inner {
        flex-direction: column;
        gap: 1rem;
    }
    nav ul li {
        margin: 0 0.5rem;
    }
    .concept-text {
        padding: 2rem 1.5rem;
    }
    .facility-box {
        flex-direction: column;
        padding: 1rem;
    }
    section {
        padding: 3.5rem 0;
    }
}

/* マップのスタイル */
.map-container {
    margin-top: 2rem;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.map-container iframe {
    display: block;
}

/* 会社概要のスタイル */
.company-card {
    background: var(--white);
    padding: 2rem;
    border-radius: 20px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
    max-width: 800px;
    margin: 0 auto;
}

.company-table {
    width: 100%;
    border-collapse: collapse;
}

.company-table th,
.company-table td {
    padding: 1.2rem;
    border-bottom: 1px solid #eee;
}

.company-table th {
    width: 30%;
    text-align: left;
    color: var(--primary-color);
    font-weight: bold;
    white-space: nowrap;
}

.company-table tr:last-child th,
.company-table tr:last-child td {
    border-bottom: none;
}

/* スマホ用調整 */
@media (max-width: 768px) {
    .company-table th,
    .company-table td {
        display: block;
        width: 100%;
        padding: 0.8rem 0;
    }
    .company-table th {
        border-bottom: none;
        padding-bottom: 0;
    }
    .company-card {
        padding: 1.5rem;
    }
}

/* ロゴ部分のリンク装飾を打ち消す */
.logo a {
    text-decoration: none; /* 下線を消す */
    color: inherit;        /* 親要素（.logo）の色を引き継ぐ */
    display: block;        /* クリック範囲を広げる */
}

/* ホバーした時に色が勝手に変わらないように固定、または微調整 */
.logo a:hover {
    text-decoration: none;
    color: var(--primary-color); /* オレンジ色を維持 */
    opacity: 0.8;                /* リンクであることを示すために少しだけ透明度を下げる（お好みで） */
}

/* 画像がない時の「開設予定」スタイル */
.facility-img.coming-soon {
    background: linear-gradient(135deg, #fcefdc 0%, #fff9f0 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.coming-soon-text {
    color: var(--primary-color);
    font-weight: bold;
    font-size: 1.5rem;
    line-height: 1.2;
}

.coming-soon-text span {
    font-size: 0.9rem;
    background: var(--primary-color);
    color: #fff;
    padding: 2px 10px;
    border-radius: 4px;
    display: inline-block;
    margin-top: 5px;
}

/* --- ハンバーガーメニューのスタイル --- */

/* PC表示ではボタンを隠す */
.hamburger {
    display: none;
    cursor: pointer;
    width: 30px;
    height: 24px;
    position: relative;
    z-index: 1001; /* メニューより上に配置 */
}

.hamburger span {
    display: block;
    width: 100%;
    height: 3px;
    background-color: var(--primary-color);
    position: absolute;
    transition: all 0.3s ease;
}

.hamburger span:nth-child(1) { top: 0; }
.hamburger span:nth-child(2) { top: 10px; }
.hamburger span:nth-child(3) { top: 20px; }

/* ボタンがアクティブな時（×印に変形） */
.hamburger.active span:nth-child(1) { transform: translateY(10px) rotate(45deg); }
.hamburger.active span:nth-child(2) { opacity: 0; }
.hamburger.active span:nth-child(3) { transform: translateY(-10px) rotate(-45deg); }

/* --- レスポンシブ設定 (スマホ用) --- */
@media (max-width: 768px) {
    .hamburger {
        display: block; /* スマホでボタンを表示 */
    }

    nav {
        position: fixed;
        top: 0;
        right: -100%; /* 最初は画面の外側に隠す */
        width: 80%;   /* メニューの横幅 */
        height: 100vh;
        background-color: rgba(255, 255, 255, 0.98);
        box-shadow: -5px 0 15px rgba(0,0,0,0.1);
        transition: all 0.4s ease;
        z-index: 1000;
        padding-top: 80px; /* ロゴと重ならないよう余白 */
    }

    nav.active {
        right: 0; /* 右からスライドイン */
    }

    nav ul {
        flex-direction: column;
        align-items: center;
    }

    nav ul li {
        margin: 1.5rem 0;
        margin-left: 0; /* PC用のマージンをリセット */
    }

    nav ul li a {
        font-size: 1.2rem;
    }
}

/* --- ヘッダー全体のレイアウト調整 --- */
.header-inner {
    display: flex;
    justify-content: space-between; /* これで左端と右端に分かれます */
    align-items: center;
    width: 100%;
}

/* --- レスポンシブ設定 (スマホ用) --- */
@media (max-width: 768px) {
    /* スマホでも横並びをキープ */
    .header-inner {
        flex-direction: row;
        padding: 0 15px; /* 画面端に密着しすぎないよう調整 */
    }

    /* ロゴが大きすぎてボタンを押し出さないよう調整 */
    .logo {
        font-size: 1.1rem; /* スマホ用に少し小さく */
        text-align: left;
        flex: 1; /* 余ったスペースを確保 */
    }

    .hamburger {
        display: block;
        margin-left: auto; /* 念のため右側に寄せる */
    }

    /* ナビゲーションメニュー（中略：以前のコードと同じ） */
    nav {
        position: fixed;
        /* ...その他の設定... */
    }
}

.pb-1em{padding-bottom: 1em;}
.pb-2em{padding-bottom: 2em;}
.pb-3em{padding-bottom: 3em;}
.pb-4em{padding-bottom: 4em;}
.pt-2em{padding-top:2em;}
