/* 全体のスタイル */
body {
    font-family: "Noto Sans JP", sans-serif;
    color: #323538;
    background-color: #f7f7f7;
    margin: 0;
    padding: 0;
}

/* ==========================
   ヘッダー
========================== */
header {
    position: fixed;
    top: 0;
    width: 100%;
    background-color: rgb(255, 150, 0,0.9);
    color: white;
    padding: 12px 0;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

header .logo {
    font-size: 28px;
    font-weight: 600;
}

nav ul {
    list-style: none;
    display: flex;
    gap: 20px;
}

nav ul li a {
    font-size: 16px;
    font-weight: 500;
    transition: color 0.3s;
}

nav ul li a:hover {
    color: rgb(255, 150, 0);
}

.sp-br {
    display: none;
  }

@media screen and (max-width: 768px) {
    header .container {
        flex-direction: column;
        align-items: center;
    }
    
    nav ul {
        flex-direction: column;
        text-align: center;
        gap: 10px;
        margin-top: 10px;
    }
}

/* メインビジュアルセクション */
#service-page-visual {
    position: relative;
    height: 20vh;
    background-color: rgb(255, 150, 0);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding-top: 100px;
}

#service-page-visual h1 {
    font-size: 48px;
    font-weight: 700;
    margin: 0;
}

#service-page-visual p {
    font-size: 20px;
    margin-top: 10px;
}

/* サービス内容セクション */
#service-details {
    padding: 80px 0;
    background-color: #f9f9f9;
}

#service-details h2 {
    font-size: 36px;
    font-weight: 700;
    color:  rgb(255, 150, 0);
    margin-bottom: 50px;
    text-align: center;
}

/* サービスボックス */
.service-box {
    display: flex;
    align-items: flex-start;
    background-color: #fff;
    border-radius: 12px;
    padding: 30px;
    margin-bottom: 40px;
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s;
}

.service-box:hover {
    transform: translateY(-5px);
}

.service-content {
    margin-left: 20px;
    flex-grow: 1;
}

.service-image img {
    border-radius: 10px;
    width: 100%;
}

/* サービス名（h3）に色とサイズ */
h3.service-title {
    font-size: 28px;
    font-weight: 700;
    margin-bottom: 20px;
}

.elderly-title {
    color: #4CAF50; /* 高齢者向けサービスの色 */
}

.afterschool-title {
    color: #FF5722; /* 放課後デイサービスの色 */
}

.community-title {
    color: rgb(255, 150, 0); /* 地域交流サービスの色 */
}

/* h4のスタイル */
h4 {
    font-size: 22px;
    color: rgb(255, 150, 0);
    margin-bottom: 15px;
}

/* pのスタイル */
p {
    font-size: 18px;
    line-height: 1.6;
    color: #555;
}

/* テーブルスタイル */
.schedule-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 20px;
    background-color: #fff;
}

.schedule-table th,
.schedule-table td {
    padding: 15px;
    text-align: left;
    border: 1px solid #ddd;
}

.schedule-table th {
    background-color: rgb(255, 150, 0);
    color: white;
    font-weight: 600;
    font-size: 18px;
}

.schedule-table td {
    background-color: #f9f9f9;
    color: #555;
    font-size: 16px;
}

/* フッター */
footer {
    background-color: #fff;
    padding: 20px 0;
    text-align: center;
    font-size: 14px;
    color: #999;
    border-top: 1px solid #ddd;
}
.custom-image {
    width: 700px !important;  /* 横幅を強制的に600pxに設定 */
    height: 500px !important; /* 高さを強制的に500pxに設定 */
    object-fit: cover;
}
/* ==========================
   スマホ用 レスポンシブ対応
========================== */
@media screen and (max-width: 768px) {
    /* 📌 ヘッダーと本文の重なりを解消 */
    body {
        padding-top: 200px; /* スマホでもヘッダーの高さ分の余白を確保 */
    }

    /* 📌 ナビゲーションを縦並びに */
    header .container {
        flex-direction: column;
        align-items: center;
    }
    
    nav ul {
        flex-direction: column;
        text-align: center;
        gap: 12px; /* スマホでもバランス良く配置 */
        margin-top: 10px;
    }

    /* 📌 メインビジュアルの高さを適切に調整 */
    #service-page-visual {
        height: 30vh;
        padding: 20px;
    }

    #service-page-visual h1 {
        font-size: 32px; /* スマホでバランスよく表示 */
    }

    #service-page-visual p {
        font-size: 18px;
    }

    /* 📌 サービスボックスのレイアウトをスマホで見やすく調整 */
    .service-box {
        flex-direction: column;
        align-items: center;
        padding: 20px;
    }

    .service-content {
        margin-left: 0;
        margin-top: 20px;
        text-align: center;
    }

    .service-image img {
        width: 100%;
        max-width: 400px;
        height: auto;
        margin: 0 auto;
    }

    /* 📌 テーブルをスマホ用に最適化 */
    .schedule-table th,
    .schedule-table td {
        padding: 10px;
        font-size: 14px; /* スマホでの可読性を確保 */
    }

    /* 📌 画像サイズを調整 */
    .custom-image {
        width: 100% !important;
        height: auto !important;
    }
    .sp-br {
        display: block;
      }
}
p strong {
    display: inline-block;
    margin: 24px 0 8px; /* 上に24px・下に8pxの余白 */
    font-weight: bold;
}
