/* === 1. 全体の基本設定（温かみと洗練） === */
body {
    font-family: "Helvetica Neue", Arial, "Hiragino Kaku Gothic ProN", "Hiragino Sans", "Segoe UI", Meiryo, sans-serif;
    line-height: 1.85;
    color: #3E4643; /* 少し柔らかい炭黒 */
    background-color: #F9F9F6; /* 温かみのあるオフホワイト */
    max-width: 1000px;
    margin: 0 auto;
    padding: 0 24px;
    -webkit-font-smoothing: antialiased;
}

/* === 2. 洗練されたヘッダー設定（グループ分け・スクロール固定版） === */
header {
    position: sticky;
    top: 0;
    z-index: 1000;
    background-color: rgba(249, 249, 246, 0.95); /* 背景を少し透けさせる */
    backdrop-filter: blur(8px); /* 背景ぼかし */
    padding: 16px 0 16px 0;
    border-bottom: 2px solid #E4EBE8;
    margin-bottom: 40px;
}
.site-title {
    font-size: 1.4rem;
    font-weight: 700;
    letter-spacing: 0.05em;
    color: #2C6B56;
    margin-bottom: 12px;
}

/* ナビゲーション全体のレイアウト */
.nav-container {
    display: flex;
    flex-direction: column;
    gap: 12px;
}
.nav-group {
    display: flex;
    flex-direction: column;
    gap: 6px;
}
/* グループのラベル（老人ホーム / デイサービス）の文字装飾 */
.group-label {
    font-size: 0.75rem;
    font-weight: 700;
    color: #8C9894;
    letter-spacing: 0.03em;
    padding-left: 4px;
}

/* ナビゲーションの横並び設定（スマホ時はみ出したら横スクロール可能） */
nav ul {
    list-style: none;
    display: flex;
    gap: 8px;
    padding: 0;
    margin: 0;
    overflow-x: auto;
    white-space: nowrap;
    -webkit-overflow-scrolling: touch;
}
nav ul::-webkit-scrollbar {
    display: none; /* スクロールバーを非表示 */
}
nav a {
    text-decoration: none;
    color: #626D6A;
    font-size: 0.85rem;
    font-weight: 600;
    padding: 6px 14px;
    border-radius: 20px;
    background-color: #EDF2F0;
    transition: all 0.3s ease;
}
nav a:hover {
    background-color: #2C6B56;
    color: #fff;
}

/* パソコンなどの広い画面では横並びにしてスッキリ見せる調整 */
@media (min-width: 768px) {
    .nav-container {
        flex-direction: row;
        gap: 24px;
    }
    .nav-group {
        border-left: 2px solid #E4EBE8;
        padding-left: 12px;
    }
    .nav-group:first-child {
        border-left: none;
        padding-left: 0;
    }
}
/* === 2. 洗練されたヘッダー設定（スクロール固定版） === */
header {
    /* ここから固定のための設定 */
    position: sticky;
    top: 0;
    z-index: 1000; /* 他のコンテンツより手前に表示 */
    background-color: rgba(249, 249, 246, 0.95); /* 背景（本体背景と同じ色）を少し透けさせる */
    backdrop-filter: blur(8px); /* 背景をほんのりぼかして今風のおしゃれに */
    /* ここまで */
    
    padding: 24px 0 20px 0; /* 固定時に邪魔にならないよう上下の余白を少しスマートに調整 */
    border-bottom: 2px solid #E4EBE8;
    margin-bottom: 40px;
}
.site-title {
    font-size: 1.4rem; /* 固定時に圧迫感が出ないよう少しだけサイズを微調整 */
    font-weight: 700;
    letter-spacing: 0.05em;
    color: #2C6B56;
    margin-bottom: 16px;
}
/* ナビゲーションを横並びスクロール（スマホ対応）かつ上品に */
nav ul {
    list-style: none;
    display: flex;
    gap: 8px;
    padding: 0;
    margin: 0;
    overflow-x: auto;
    white-space: nowrap;
    -webkit-overflow-scrolling: touch;
}
nav ul::-webkit-scrollbar {
    display: none; /* スクロールバーを非表示に */
}
nav a {
    text-decoration: none;
    color: #626D6A;
    font-size: 0.9rem;
    font-weight: 600;
    padding: 8px 18px;
    border-radius: 20px;
    background-color: #EDF2F0;
    transition: all 0.3s ease;
}
nav a:hover {
    background-color: #2C6B56;
    color: #fff;
}
/* === 3. メインコンテンツ・レイアウト === */
.page-title-area {
    text-align: center;
    margin-bottom: 50px;
}
.page-title-area h2 {
    font-size: 2rem;
    color: #1E4A3B;
    margin-bottom: 12px;
    position: relative;
    display: inline-block;
    padding-bottom: 15px;
}
.page-title-area h2::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background-color: #C3D3CC; /* アクセントの淡い緑 */
}
.lead-text {
    font-size: 1.05rem;
    color: #626D6A;
}

/* 2カラムレイアウト */
.flex-container {
    display: flex;
    gap: 40px;
    margin-bottom: 60px;
    align-items: center;
}
.flex-item {
    flex: 1;
    min-width: 300px;
}
.flex-item h3 {
    font-size: 1.4rem;
    color: #1E4A3B;
    margin-bottom: 15px;
}

/* 画像をおしゃれに見せる */
.styled-image {
    width: 100%;
    height: auto;
    border-radius: 12px;
    box-shadow: 0 10px 25px rgba(44, 107, 86, 0.08); /* 柔らかい影 */
}

/* === 4. セクション・見出しのデザイン === */
section {
    background: #fff;
    border-radius: 16px;
    padding: 40px;
    margin-bottom: 40px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.02);
    border: 1px solid #EFF3F1;
}
section h3 {
    font-size: 1.4rem;
    color: #1E4A3B;
    margin-bottom: 24px;
    display: flex;
    align-items: center;
}
section h3::before {
    content: '';
    display: inline-block;
    width: 6px;
    height: 24px;
    background-color: #2C6B56;
    margin-right: 12px;
    border-radius: 3px;
}
section h4 {
    font-size: 1.1rem;
    color: #2C6B56;
    margin: 30px 0 12px 0;
}

/* === 5. 洗練された料金表・情報テーブル === */
.notice-text {
    font-size: 0.85rem;
    color: #929E9A;
    margin-bottom: 20px;
}
.info-table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 20px;
}
.info-table th, .info-table td {
    padding: 16px 20px;
    font-size: 0.95rem;
    border-bottom: 1px solid #E4EBE8;
    text-align: left;
}
.info-table thead th {
    background-color: #F2F6F4;
    color: #1E4A3B;
    font-weight: 700;
    border-bottom: 2px solid #C3D3CC;
}
.info-table tbody th {
    font-weight: 600;
    color: #3E4643;
    width: 35%;
    background-color: #FAFBFB;
}
.info-table tbody tr:hover {
    background-color: #F7FAF9; /* マウスを乗せると優しく色が変わる */
}

/* === 6. トップページ用のカード型グリッド（追加分） === */
.facility-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 24px;
}
.facility-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    background: #fff;
    border: 1px solid #E4EBE8;
    border-radius: 12px;
    padding: 24px;
    text-decoration: none;
    color: #3E4643;
    font-weight: 600;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    box-shadow: 0 4px 10px rgba(0,0,0,0.01);
}
.facility-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 30px rgba(44, 107, 86, 0.12);
    border-color: #2C6B56;
    color: #2C6B56;
}

/* === 7. フッター設定 === */
footer {
    text-align: center;
    padding: 40px 0;
    margin-top: 60px;
    border-top: 1px solid #E4EBE8;
    font-size: 0.85rem;
    color: #929E9A;
}

/* === スマホ用の表示微調整 === */
@media (max-width: 768px) {
    .flex-container {
        flex-direction: column;
        gap: 24px;
    }
    section {
        padding: 24px;
    }
    .info-table th, .info-table td {
        padding: 12px 14px;
        font-size: 0.9rem;
    }
}
/* === 8. お問い合わせフォームのデザイン（新規追加） === */
.contact-form {
    max-width: 600px;
    margin: 0 auto;
    padding-top: 20px;
}
.form-group {
    margin-bottom: 24px;
    display: flex;
    flex-direction: column;
}
.form-group label {
    font-size: 0.95rem;
    font-weight: 600;
    color: #1E4A3B;
    margin-bottom: 8px;
    display: flex;
    align-items: center;
}
.form-group .required {
    background-color: #E65A5A;
    color: #fff;
    font-size: 0.75rem;
    padding: 2px 6px;
    border-radius: 4px;
    margin-left: 8px;
    font-weight: normal;
}
.form-group input[type="text"],
.form-group input[type="email"],
.form-group input[type="tel"],
.form-group textarea {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid #C3D3CC;
    border-radius: 8px;
    background-color: #FAFAFA;
    font-family: inherit;
    font-size: 0.95rem;
    color: #3E4643;
    box-sizing: border-box;
    transition: all 0.3s ease;
}
/* 入力中の枠線の色をおしゃれな緑に */
.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #2C6B56;
    background-color: #fff;
    box-shadow: 0 0 0 4px rgba(44, 107, 86, 0.1);
}
.form-submit {
    text-align: center;
    margin-top: 32px;
}
/* 送信ボタンをアースグリーンの上品なデザインに */
.submit-btn {
    background-color: #2C6B56;
    color: #fff;
    border: none;
    padding: 14px 48px;
    font-size: 1rem;
    font-weight: 600;
    border-radius: 30px;
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(44, 107, 86, 0.2);
    transition: all 0.3s ease;
}
.submit-btn:hover {
    background-color: #1E4A3B;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(44, 107, 86, 0.3);
}

/* ブログ箇条書きの余白微調整 */
.blog-list {
    padding-left: 0;
    margin: 0;
}