body {
    font-family: "游ゴシック体", YuGothic, "Noto Sans JP", sans-serif;
    background-color: #fdeff2;
    line-height: 1.6;
    color: #333;
}

a {
    color: #f8a7c0;
    text-decoration: none;
    position: relative;
}

a::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: -2px;
    width: 0;
    height: 2px;
    background-color: #f4a6c0;
    transition: width 0.3s ease-in-out;
}

a:hover::after {
    width: 100%;
}

.hero,
.h1 {
    background-color: #fff;
    padding: 80px 20px;
    text-align: center;
    margin-bottom: 20px;
    text-shadow: 2px 2px 10px rgba(0, 0, 0, 0.5);
    /* 文字に影をつけて視認性UP */
    background-image: url("水玉背景.jpeg");
    /* 背景画像のURLを入れる */
    background-size: cover;
    /* 画像をヘッダー全体にフィット */
    background-position: center;
    /* 画像を中央配置 */
    background-repeat: no-repeat;
    /* 繰り返しを防ぐ */
}

.hero img {
    max-width: 300px;
    height: auto;
    margin-bottom: 20px;
}

.header-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    /* 画像を全体にフィット */
    z-index: -1;
    /* 背景に配置 */
}

/* メニューバー */
.navbar {
    background-color: white;
    padding: 10px 0;
    text-align: center;
    box-shadow: 0px 4px 6px rgba(0, 0, 0, 0.1);
    margin-bottom: 20px; /* メニューバーの下に余白を追加 */
}

.navbar .navbar-nav {
    margin: auto;
    display: flex;
    justify-content: center;
}

.navbar-nav .nav-link {
    color: #333;
    padding: 10px 15px;
    transition: background-color 0.3s ease, color 0.3s ease;
}

.navbar-nav .nav-link:hover {
    background-color: #fce4ec;
    /* 淡い桜色 */
    color: #e57373;
    /* 背景より濃い桜色 */
    border-radius: 5px;
}


/* サイドバー */
.sidebar {
    height: 100vh;
    width: 250px;
    position: fixed;
    top: 0;
    left: -250px;
    background-color: white;
    box-shadow: 2px 0 5px rgba(0, 0, 0, 0.1);
    transition: left 0.3s;
    z-index: 1000;
    padding-top: 60px;
}

.sidebar.active {
    left: 0;
}

.sidebar .sidebar-header {
    padding: 20px;
    text-align: center;
    font-size: 1.2rem;
    background-color: #f8c8dc;
    color: black;
}

.sidebar ul {
    list-style: none;
    padding: 0;
}

.sidebar ul li {
    padding: 15px;
    text-align: center;
}

.sidebar ul li a {
    color: black;
    display: block;
    padding: 10px;
    transition: background-color 0.3s ease, color 0.3s ease;
}

.sidebar ul li a:hover {
    background-color: #fce4ec;
    color: #e57373;
    border-radius: 5px;
}

/* サイドバーボタン */
.toggle-btn {
    position: fixed;
    top: 20px;
    left: 20px;
    background-color: #f8c8dc;
    border: none;
    padding: 10px;
    cursor: pointer;
    z-index: 1100;
    border-radius: 5px;
}

.content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 30px;
    /* ボックス間の余白 */
}

.content-box {
    width: 70%;
    /* ボックスの幅 */
    max-width: 800px;
    /* 最大幅の制限 */
    background-color: white;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 2px 2px 10px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease-in-out;
}



.greeting-box h2,
.content-box h2{
    color: #f4a6c0;
    border-bottom: 2px solid #f8c8dc;
    padding-bottom: 10px;
    margin-bottom: 15px;
}

.subtext {
    font-size: 0.6em; /* h2に対して60%のサイズ */
    color: #f4a6c0;    /* h2と同じ色 */
    margin-left: 10px; /* タイトルとの間に余白 */
    font-weight: normal; /* 小さく軽めの表示に */
  }  

/* 挨拶ボックスもコンテンツエリアと統一 */
.greeting-box {
    background-color: white;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 2px 2px 10px rgba(0, 0, 0, 0.1);
    margin-top: 30px;
    margin-bottom: 30px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.page-image {
    width: 20%;
    /* 幅はコンテンツの8割程度 */
    max-width: 300px;
    /* 最大幅を設定 */
    border-radius: 10px;
    /* 角を丸める */
    box-shadow: 2px 2px 10px rgba(0, 0, 0, 0.1);
    /* 柔らかい影 */
}

/* コンテンツと写真を横並びにする */
.content-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    max-width: 1200px;
    gap: 10;
}

/* 交互に配置 */
.content-row.reverse {
    flex-direction: row-reverse;
}

/* 施設概要・アクセスのデザイン */
.facility-info {
    text-align: center;
    padding: 50px 20px;
    background-color: #ffffff;
    /* 背景を白にする */
}

/* h2のデザイン（下線を追加） */
.facility-info h2 {
    font-size: 1.8em;
    color: #333;
    display: inline-block;
    border-bottom: 3px solid #333;
    /* ピンクの下線 */
    padding-bottom: 5px;
    margin-bottom: 20px;
}

/* 施設写真エリア */
.facility-photos {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-bottom: 30px;
}

/* 施設写真のスタイル（横に大きく調整） */
.facility-photo {
    width: 35%;
    /* 以前は 30% → 少し横に広げる */
    max-width: 300px;
    /* 以前は 250px → 少し拡大 */
    border-radius: 15px;
    box-shadow: 2px 2px 10px rgba(0, 0, 0, 0.2);
}

/* 施設情報エリア（背景を #fce4ec に） */
.facility-details {
    background-color: #ffffff;
    /* 淡いピンクの背景 */
    padding: 30px;
    border-radius: 10px;
    box-shadow: 2px 2px 10px rgba(0, 0, 0, 0.1);
    max-width: 900px;
    margin: 0 auto;
}

/* 各項目のデザイン */
.facility-item {
    display: flex;
    width: 100%;
    padding: 15px;
    border-radius: 10px;
    text-align: left;
}

.facility-item h3 {
    font-size: 18px;
    font-weight: bold;
    margin: 0;
    width: 150px;
    color: #f4a6c0;
    border-bottom: 2px solid #f8c8dc;
    padding-bottom: 10px;
    margin-bottom: 15px;
    /* 固定幅で揃える */
}

.facility-item p {
    margin: 0;
    flex: 1;
    /* 残りのスペースを埋める */
    text-align: left;
}

.link-image {
    width: 25px;
    /* 幅を200pxに */
    height: auto;
    /* 高さは自動調整 */
    max-width: 100%;
    /* 親要素の幅を超えないように */
    height: auto;
}

.facility-photo {
    max-height: 300px;
    /* 適宜調整 */
    object-fit: cover;
    /* 画像の縦横比を維持したまま拡大縮小 */
}

.text-map-container {
    display: flex;
    align-items: center; /* 縦方向の中央揃え */
    justify-content: flex-start; /* 左寄せ */
    gap: 10px; /* 文字と写真の間の余白 */
    flex-wrap: wrap; /* スマホで縦並びにする */
}

.text-list {
    min-width: 150px; /* 文字部分の最小幅を設定 */
}

.map-container {
    flex-shrink: 0; /* 画像の縮小を防ぐ */
    max-width: 250px;
    min-width: 200px;
}


.map-image {
    width: 100%; /* スマホで横幅いっぱいにする */
    max-width: 250px; /* PCでは大きくなりすぎないようにする */
    height: auto; /* 縦横比を維持 */
    margin-left: 150px; /* 画像と文章の間に余白を追加 */
    border-radius: 10px; /* 角を少し丸める（他の画像と統一感を出すため） */
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
    padding: 4px;
    background-color: #fff;
    margin-bottom: 20px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.map-image:hover {
    transform: scale(1.02);
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.2);
  }

.care-options {
    display: flex;
    justify-content: center;
    gap: 15px;
    flex-wrap: nowrap; /* 折り返しなし */
    margin-top: 20px;
    max-width: 800px; /* コンテンツ幅を制限 */
    margin-left: auto;
    margin-right: auto;
    overflow-x: auto; /* 横スクロールを許可（小さい画面向け） */
}
.content-box2 {
    background-color: #f4a6c0;
    padding: 20px;
    border-radius: 10px;
    text-align: center;
}

.care-types {
    display: flex;
    justify-content: center;
    gap: 15px;
    flex-wrap: wrap;
    margin-top: 15px;
}

.care-item {
    background-color: white;
    padding: 15px 20px;
    border-radius: 10px;
    box-shadow: 2px 2px 10px rgba(0, 0, 0, 0.1);
    font-size: 1.2em;
    font-weight: bold;
    color: #d9538e;
    text-align: center;
    min-width: 120px;
}

.care-item:hover {
    transform: scale(1.05);
}

.content-box:last-of-type {
    margin-bottom: 50px; /* 一番下のボックスの下の余白を広くする */
}

/* スマホ時のレイアウトを調整 */
@media (max-width: 768px) {
    .content-row {
        flex-direction: column !important;
        /* スマホ時は縦並び */
        align-items: center;
        text-align: center;
    }

    .content-row.reverse {
        flex-direction: column !important;
        /* 逆順も通常の順番に */
    }

    .page-image {
        width: 90%;
        /* 画像の幅を調整 */
        max-width: 300px;
        /* 最大幅を指定 */
        margin-bottom: 10px;
    }

    .content-box {
        width: 90%;
        /* コンテンツの幅も調整 */
        text-align: left;
    }

    .care-options {
        flex-wrap: wrap; /* 狭い画面では折り返し */
    }

    .care-item {
        width: 45%; /* 2列にする */
    }

    .map-image {
        margin-left: 0;
        margin-right: auto;
        margin-left: auto;
        display: block;
      }
}

@media (max-width: 480px) {
    .care-item {
        width: 100%; /* 狭い画面では1列 */
    }
}
