/* --- 基本設定 --- */
:root {
    --primary-color: #FF7F27; /* 訪問看護のオレンジ */
    --secondary-color: #ffe6d4; /* オレンジに合う薄い色 */
    --text-color: #333;
    --bg-light-color: #f7fafc;
    --base-font-size: 16px;
    --font-family: 'Noto Sans JP', sans-serif;
}
body {
    font-family: var(--font-family);
    font-size: var(--base-font-size);
    color: var(--text-color);
    line-height: 1.8;
    margin: 0;
}
img { max-width: 100%; height: auto; vertical-align: middle; }
a { text-decoration: none; color: var(--primary-color); transition: opacity 0.3s; }
a:hover { opacity: 0.7; }
.container { max-width: 1100px; margin: 0 auto; padding: 0 20px; }
.section-padding { padding: 80px 0; }
.section-title { text-align: center; font-size: 2rem; font-weight: 400; margin-top: 0; margin-bottom: 60px; }
.bg-light { background-color: var(--bg-light-color); }
.arrow-link { display: inline-block; padding-right: 1.2em; position: relative; }
.arrow-link::after { content: '→'; position: absolute; right: 0; }
.mt-40 { margin-top: 40px; }


/* --- ヘッダー --- */
.header {
    background-color: #fff;
    position: sticky;
    top: 0;
    z-index: 100;
}
.header-top {
    border-bottom: 1px solid #eee;
}
.header-top-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 80px;
}
.header-logo img { height: 40px; }
.header-contact { text-align: right; }
.tel-number { font-size: 1.5rem; font-weight: bold; margin: 0; }
.tel-number a { color: var(--primary-color); }
.hours { font-size: 0.8rem; margin: 0; }
.header-bottom {
    background-color: #fff;
    border-bottom: 1px solid #eee;
}
.gnav-list {
    display: flex;
    justify-content: center;
    list-style: none;
    margin: 0;
    padding: 0;
    align-items: center;
}
.gnav-item a {
    display: block;
    padding: 15px 25px;
    color: var(--text-color);
    font-size: 1rem;
    font-weight: 500;
}
.gnav-item .nav-btn {
    background-color: var(--primary-color);
    color: #fff;
    border-radius: 5px;
    margin-left: 15px;
}
.sp-menu-btn { display: none; } /* デスクトップでは非表示 */


/* --- ヒーローセクション (カルーセル対応) --- */
.hero {
    height: auto; 
    display: block;
    position: relative;
    padding: 0;
    overflow: hidden;
}
.hero-content-wrapper {
    width: 100%;
    position: relative; 
}
.carousel-container {
    width: 100%;
    overflow: hidden; 
    position: relative;
    touch-action: pan-y;
}
.carousel-track {
    display: flex;
    width: 400%; /* 画像4枚分 */
    transition: transform 0.5s ease-in-out;
}
.hero-image {
    width: 25%; /* 1枚分の幅 */
    flex-shrink: 0;
    position: relative;
}
.hero-image img {
    width: 100%;
    height: auto; 
    display: block;
}

/* カルーセル ドットナビゲーション */
.carousel-dots {
    text-align: center;
    padding: 10px 0;
    position: absolute;
    bottom: 10px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 10;
}
.dot {
    height: 10px;
    width: 10px;
    margin: 0 4px;
    background-color: rgba(255, 255, 255, 0.7);
    border-radius: 50%;
    display: inline-block;
    border: none;
    cursor: pointer;
    transition: background-color 0.3s ease;
}
.dot.active {
    background-color: var(--primary-color);
}


/* --- 精神科訪問看護とは？ (TOPページ) --- */
#about-intro {
    padding-top: 40px; 
}
.about-content {
    display: flex;
    align-items: center;
    gap: 50px;
}
.about-text { width: 50%; }
.about-img { width: 50%; }


/* --- 当ステーションの強み --- */
.strength-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    text-align: center;
}
.strength-item {
    background-color: #fff;
    padding: 30px 20px;
    border: 1px solid var(--secondary-color);
    border-radius: 10px; 
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.05);
}
.strength-icon {
    display: none; /* アイコン画像はDOMに残すが非表示に */
}
.strength-item h3 {
    color: var(--primary-color);
    font-size: 1.25rem;
    margin-top: 0;
    margin-bottom: 10px;
    border-bottom: 2px solid var(--secondary-color); 
    padding-bottom: 5px;
    display: inline-block;
}
.strength-item p {
    font-size: 0.9rem;
    margin: 0;
}


/* --- ご利用の流れ (TOPページ) --- */
.flow-container {
    display: flex;
    flex-direction: column;
    gap: 20px;
}
.flow-item {
    display: flex;
    align-items: stretch;
    background-color: #fff;
    box-shadow: 0 4px 10px rgba(0,0,0,0.05);
    border-radius: 8px;
    overflow: hidden;
}
.flow-header {
    flex: 0 0 200px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    padding: 20px;
    font-weight: bold;
    color: #fff;
    font-size: 1.2rem;
    text-align: center;
}
/* 矢印のスタイル */
.flow-header::before {
    content: '';
    position: absolute;
    top: 50%;
    right: -25px; 
    transform: translateY(-50%);
    width: 0;
    height: 0;
    border-style: solid;
    border-width: 25px 0 25px 25px;
    border-color: transparent transparent transparent var(--flow-color);
    z-index: 1;
}
.flow-body {
    flex-grow: 1;
    padding: 20px 40px;
    background-color: #fff;
}
.flow-body ul {
    list-style: none;
    padding: 0;
    margin: 0;
}
.flow-body li {
    position: relative;
    padding-left: 1.5em;
    margin-bottom: 0.5em;
}
.flow-body li::before {
    content: '・';
    position: absolute;
    left: 0;
    color: var(--primary-color);
}
/* 各ステップの色付け */
.flow-item:nth-child(1) .flow-header { background-color: #1EB9EF; --flow-color: #1EB9EF; }
.flow-item:nth-child(2) .flow-header { background-color: #FF7F27; --flow-color: #FF7F27; }
.flow-item:nth-child(3) .flow-header { background-color: #2cac7e; --flow-color: #2cac7e; }


/* --- 医療・福祉関係の方へ (TOPページ) --- */
.medical-relation {
    text-align: center;
}
.medical-text {
    max-width: 800px;
    margin: 0 auto 30px;
}


/* --- お問い合わせセクション (TOPページ) --- */
.contact-section {
    background-color: var(--secondary-color);
    text-align: center;
}
.contact-section .section-title {
    color: var(--primary-color);
}
.contact-section .contact-text {
    font-size: 1.1rem;
    margin-bottom: 40px;
}
.contact-section .nav-btn {
    background-color: var(--primary-color);
    color: #fff;
    padding: 15px 30px;
    border-radius: 5px;
    font-size: 1.1rem;
    display: inline-block;
}


/* --- 関連リンク --- */
.links-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}
.link-card {
    display: block;
    padding: 30px;
    background-color: #fff;
    border: 1px solid #ddd;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
    text-align: center;
    color: var(--text-color);
}
.link-card h3 {
    font-size: 1.25rem;
    margin-top: 0;
    margin-bottom: 10px;
    color: var(--primary-color);
}
.link-card p {
    font-size: 0.9rem;
    margin: 0;
}


/* --- フッター --- */
.footer {
    background-color: #3f454a;
    color: #fff;
    padding-top: 60px;
}
.footer a { color: #fff; }
.footer-container { display: flex; justify-content: space-between; padding-bottom: 40px; }
.footer-logo { height: 35px; margin-bottom: 20px; background: #fff; padding: 5px; border-radius: 3px; }
.footer-info p { font-size: 0.9rem; }
.footer-nav { display: flex; gap: 40px; }
.footer-nav ul { list-style: none; padding: 0; margin: 0; }
.footer-nav li { margin-bottom: 10px; }
.copyright { background-color: #333; text-align: center; padding: 15px 0; font-size: 0.8rem; }
.copyright p { margin: 0; }


/* --- レスポンシブ対応 (スマートフォン: 768px以下) --- */
@media (max-width: 768px) {
    .section-padding { padding: 60px 0; }
    .section-title { font-size: 1.8rem; margin-bottom: 40px; }
    
    /* ヘッダー (ナビゲーションをハンバーガーメニューに切り替え) */
    .header-top-container {
        flex-direction: column;
        height: auto;
        padding-top: 15px;
        padding-bottom: 15px;
    }
    .header-contact { text-align: center; margin-top: 10px; }
    
    .header-bottom { display: none; } 
    .header-bottom.is-open { 
        display: block; 
        position: fixed;
        top: 120px; 
        left: 0;
        width: 100%;
        height: calc(100vh - 120px);
        background-color: rgba(255, 255, 255, 0.95);
        z-index: 99;
        overflow-y: auto;
    }
    .gnav-list { flex-direction: column; padding-top: 30px; }
    .gnav-item a { padding: 15px; font-size: 1rem; }
    .gnav-item .nav-btn { margin-left: 0; margin-top: 15px; }

    .sp-menu-btn {
        display: block;
        background: none;
        border: none;
        cursor: pointer;
        padding: 0;
        width: 30px;
        height: 20px;
        position: absolute;
        top: 25px;
        right: 20px;
    }
    .sp-menu-btn span {
        display: block;
        width: 100%;
        height: 2px;
        background-color: var(--text-color);
        position: absolute;
        transition: transform 0.3s, opacity 0.3s;
    }
    .sp-menu-btn span:nth-child(1) { top: 0; }
    .sp-menu-btn span:nth-child(2) { top: 50%; transform: translateY(-50%); }
    .sp-menu-btn span:nth-child(3) { bottom: 0; }
    .sp-menu-btn.is-open span:nth-child(1) { top: 50%; transform: translateY(-50%) rotate(45deg); }
    .sp-menu-btn.is-open span:nth-child(2) { opacity: 0; }
    .sp-menu-btn.is-open span:nth-child(3) { bottom: 50%; transform: translateY(50%) rotate(-45deg); }
    
    /* ヒーロー */
    .hero { height: auto; } /* 画像の高さに合わせる */

    /* セクション */
    .about-content { flex-direction: column-reverse; gap: 30px; }
    .about-text, .about-img { width: 100%; }
    .about-img { margin-bottom: 20px; }

    /* ご利用の流れ (スマホでの縦並び最適化) */
    .flow-item {
        flex-direction: column;
        display: block;
    }
    .flow-header { 
        width: 100%;
        flex: auto;
        text-align: center;
    }
    .flow-body {
        padding: 20px;
    }
    .flow-header::before {
        /* スマホでは下に矢印 */
        border-width: 25px 25px 0 25px;
        border-color: var(--flow-color) transparent transparent transparent;
        bottom: -25px;
        top: auto;
        left: 50%;
        right: auto;
        transform: translateX(-50%);
    }

    .footer-container, .footer-nav { flex-direction: column; gap: 30px; }
    .footer-nav { gap: 0; }
}


/* --- service.html (サービス内容ページ) 用スタイル --- */

/* ページタイトル */
.page-hero {
    background-color: var(--secondary-color);
    padding: 40px 0;
    margin-bottom: 40px;
    text-align: center;
}
.page-title {
    font-size: 2.5rem;
    color: var(--primary-color);
    margin: 0;
    font-weight: 700;
}
.section-subtitle {
    font-size: 1.6rem;
    font-weight: 500;
    color: var(--primary-color);
    border-left: 5px solid var(--primary-color);
    padding-left: 15px;
    margin-bottom: 30px;
}

/* ボックススタイル（情報をまとめる） */
.box-style {
    background-color: #fff;
    border: 1px solid var(--secondary-color);
    border-radius: 8px;
    padding: 30px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.05);
}
.main-target-text {
    font-size: 1.1rem;
    font-weight: bold;
    color: #444;
}
.note-text {
    font-size: 0.9rem;
    padding-top: 15px;
    border-top: 1px dashed #ddd;
    margin-top: 15px;
}

/* サービス提供内容グリッド */
.service-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}
.service-item {
    background-color: #fff;
    border: 2px solid var(--primary-color);
    border-radius: 8px;
    padding: 25px;
}
.service-item-title {
    background-color: var(--primary-color);
    color: #fff;
    font-size: 1.25rem;
    text-align: center;
    padding: 10px 0;
    margin-top: -25px;
    margin-left: -25px;
    margin-right: -25px;
    border-bottom: 2px solid #fff;
}
.detail-list {
    list-style: none;
    padding: 0;
    margin-top: 15px;
}
.detail-list li {
    position: relative;
    padding-left: 1.5em;
    margin-bottom: 8px;
    font-size: 0.95rem;
}
.detail-list li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--primary-color);
    font-weight: bold;
}

/* 事業所案内テーブル */
.info-table-wrapper {
    max-width: 600px;
    margin: 0 auto;
}
.info-table {
    width: 100%;
    border-collapse: collapse;
}
.info-table th, .info-table td {
    padding: 15px;
    border: 1px solid #ddd;
    text-align: left;
    font-size: 0.95rem;
}
.info-table th {
    background-color: var(--secondary-color);
    width: 35%;
    font-weight: bold;
    color: var(--primary-color);
}
.mt-40 { margin-top: 40px; }


/* --- レスポンシブ対応 (サービス内容ページ) --- */
@media (max-width: 768px) {
    .page-title { font-size: 2rem; }
    .section-subtitle {
        font-size: 1.4rem;
        margin-left: 0;
        text-align: center;
        border-left: none;
        padding-left: 0;
        border-bottom: 2px solid var(--primary-color);
        padding-bottom: 5px;
    }
    .box-style { padding: 20px; }
    .service-grid {
        grid-template-columns: 1fr;
    }
    .info-table th { width: 100%; display: block; }
    .info-table td { width: 100%; display: block; }
}

/* --- service.html (サービス内容ページ) 用スタイルに追加・修正 --- */

/* 新しい強調用クラス (太字) */
.bold-text {
    font-weight: bold;
    color: var(--primary-color);
}
.summary-text .bold-text {
    /* サービス概要のメイン強調は色を変えず太字のみにしたい場合 */
    color: inherit;
    font-weight: bold;
}

/* 対象となる方：リスト構造の修正 */
.target-list-group {
    margin-bottom: 25px;
    padding-bottom: 20px;
    border-bottom: 1px dashed #eee;
}
.target-list-group:last-of-type {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}
.list-heading {
    font-weight: bold;
    color: var(--primary-color);
    margin-bottom: 10px;
    font-size: 1.1rem;
}

/* 症状のリスト（横並びのタグ風） */
.target-symptoms {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}
.target-symptoms li {
    background-color: var(--secondary-color);
    color: var(--text-color);
    padding: 6px 12px;
    border-radius: 4px;
    font-size: 0.95rem;
    font-weight: 500;
    border: 1px solid var(--primary-color);
}
.note-symptoms {
    font-size: 0.9rem;
    color: #666;
    margin-top: 10px;
    margin-bottom: 0;
    text-align: center;
}

/* 生活上の困りごとのリスト（点付きリスト） */
.target-needs {
    list-style: none;
    padding: 0;
    margin: 0;
    column-count: 2; /* 2列表示 */
    column-gap: 30px;
}
.target-needs li {
    position: relative;
    padding-left: 1.2em;
    margin-bottom: 8px;
    font-size: 0.95rem;
    line-height: 1.5;
    break-inside: avoid; /* リスト項目が途中で切れないように */
}
.target-needs li::before {
    content: '●';
    position: absolute;
    left: 0;
    color: var(--primary-color);
    font-size: 0.7em;
    top: 0.35em;
}

.bottom-note {
    margin-top: 30px;
    border-top: 1px dashed #ddd;
    padding-top: 15px;
}

/* --- レスポンシブ対応 (サービス内容ページ) に追記 --- */
@media (max-width: 768px) {
    /* 対象となる方 */
    .target-symptoms {
        justify-content: center; /* スマホで中央寄せ */
    }
    .target-needs {
        column-count: 1; /* スマホでは1列表示 */
    }
}


/* --- flow.html (ご利用の流れページ) 用スタイル --- */

/* ページタイトル（service.htmlと共通） */
.page-hero {
    background-color: var(--secondary-color);
    padding: 40px 0;
    margin-bottom: 40px;
    text-align: center;
}
.page-title {
    font-size: 2.5rem;
    color: var(--primary-color);
    margin: 0;
    font-weight: 700;
}
.section-subtitle {
    font-size: 1.6rem;
    font-weight: 500;
    color: var(--primary-color);
    border-left: 5px solid var(--primary-color);
    padding-left: 15px;
    margin-bottom: 30px;
}
.bold-text {
    font-weight: bold;
    color: var(--primary-color);
}

/* ご利用の流れのリストスタイル */
.flow-steps-list {
    position: relative;
    padding-left: 20px; /* 縦ラインのスペース */
}
/* 縦のライン */
.flow-steps-list::before {
    content: '';
    position: absolute;
    top: 0;
    left: 20px;
    width: 2px;
    height: 100%;
    background-color: var(--secondary-color);
}
.flow-step-item {
    position: relative;
    padding: 20px 0 30px 40px;
    margin-bottom: 10px;
}
/* ステップの数字を丸で囲む */
.step-number {
    position: absolute;
    left: 0;
    top: 25px;
    width: 40px;
    height: 40px;
    line-height: 40px;
    text-align: center;
    background-color: var(--primary-color);
    color: #fff;
    border-radius: 50%;
    font-size: 1.3rem;
    font-weight: bold;
    z-index: 2;
    border: 3px solid #fff;
}
.step-title {
    font-size: 1.4rem;
    color: var(--primary-color);
    margin-top: 0;
    margin-bottom: 10px;
    font-weight: 700;
}
.step-detail {
    font-size: 1rem;
    margin: 0;
    line-height: 1.7;
}

/* 費用・エリア情報ボックス */
.box-style {
    background-color: #fff;
    border: 1px solid var(--secondary-color);
    border-radius: 8px;
    padding: 30px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.05);
}
.fee-note { font-size: 1.1rem; }
.fee-list {
    list-style: none;
    padding-left: 1.5em;
}
.fee-list li {
    position: relative;
    margin-bottom: 8px;
}
.fee-list li::before {
    content: '▶';
    position: absolute;
    left: -1.5em;
    color: var(--primary-color);
    font-size: 0.8em;
}
.area-note {
    font-size: 0.9rem;
    margin-top: 20px;
    padding-top: 10px;
    border-top: 1px dashed #ddd;
}


/* --- レスポンシブ対応 (ご利用の流れページ) --- */
@media (max-width: 768px) {
    .flow-steps-list {
        padding-left: 10px;
    }
    .flow-steps-list::before {
        left: 10px;
    }
    .flow-step-item {
        padding-left: 30px;
        padding-top: 10px;
        padding-bottom: 20px;
    }
    .step-number {
        left: 0;
        top: 0;
        width: 30px;
        height: 30px;
        line-height: 30px;
        font-size: 1.1rem;
    }
    .step-title {
        font-size: 1.2rem;
        padding-left: 20px;
    }
}



/* --- medical-welfare.html (医療・福祉関係の方へページ) 用スタイル --- */
/* ... 既存のスタイルは省略 ... */

/* 対象疾患 (タグ形式のリスト) */
.disease-list-wrapper {
    text-align: center;
    padding: 20px;
}
/* 以前の .disease-tags のスタイルを上書き/修正 */
.disease-tags-container {
    padding-bottom: 20px;
    margin-bottom: 20px;
    border-bottom: 1px dashed #ddd; /* 区切り線 */
}
.disease-tags-new {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 15px; /* タグ間のスペースを広く */
}
.disease-tags-new li {
    background-color: #fff;
    color: var(--primary-color);
    padding: 10px 20px;
    border-radius: 5px; /* 角丸を少し大きく */
    font-size: 1.1rem;
    font-weight: 500;
    border: 2px solid var(--primary-color); /* オレンジ色の枠線 */
    white-space: nowrap; /* 折り返さない */
}
.disease-small-note {
    font-size: 0.95rem;
    color: #666;
    margin-top: 15px;
    margin-bottom: 0;
}
.disease-note-bottom {
    font-size: 1.1rem;
    color: #444;
}

/* --- レスポンシブ対応 (医療・福祉関係の方へページ) に追記 --- */
@media (max-width: 768px) {
    /* ... 既存のスタイルは省略 ... */
    
    .disease-tags-container {
        padding-bottom: 10px;
        margin-bottom: 10px;
    }
    .disease-tags-new {
        justify-content: flex-start; /* スマホでは左寄せで配置 */
        gap: 8px;
    }
    .disease-tags-new li {
        font-size: 1rem;
        padding: 8px 15px;
    }
}


/* --- contact.html (お問い合わせページ) 用スタイル --- */

/* 電話情報ボックスを中央に配置し目立たせる */
.phone-info-box {
    max-width: 600px;
    margin: 40px auto;
    padding: 40px 20px;
    text-align: center;
    background-color: var(--secondary-color);
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}
.contact-main-message {
    text-align: center;
    font-size: 1.1rem;
    margin-bottom: 20px;
}
.contact-tel-number {
    font-size: 3rem;
    font-weight: bold;
    margin: 0;
}
.contact-tel-number a {
    color: var(--primary-color);
    text-decoration: none;
}
.contact-hours {
    font-size: 1.2rem;
    font-weight: 500;
    margin-top: 10px;
    margin-bottom: 5px;
}
.contact-note {
    font-size: 0.8rem;
    color: #666;
    margin-top: 15px;
}

/* 医療・福祉関係者向け情報 */
.medical-contact-text {
    text-align: center;
    margin-bottom: 20px;
}
.contact-fax-number {
    text-align: center;
    font-size: 1.3rem;
    margin: 10px 0 20px 0;
}

/* ご連絡いただく際のお願い */
.contact-guidance {
    max-width: 700px;
    margin: 60px auto 0;
    padding-top: 20px;
    border-top: 2px dashed var(--secondary-color);
}
.guidance-title {
    text-align: center;
    color: var(--primary-color);
    font-size: 1.4rem;
    margin-top: 0;
}
.guidance-list {
    list-style: none;
    padding: 0;
    max-width: 500px;
    margin: 0 auto;
}
.guidance-list li {
    position: relative;
    padding-left: 1.5em;
    margin-bottom: 8px;
    font-size: 0.95rem;
}
.guidance-list li::before {
    content: '→';
    position: absolute;
    left: 0;
    color: var(--primary-color);
    font-weight: bold;
}

/* 事業所所在地 */
.office-location-box {
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
}
.map-placeholder {
    height: 300px; /* 地図の仮の高さ */
    background-color: #e0e0e0;
    margin-top: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid #ccc;
    color: #666;
}

/* --- レスポンシブ対応 (お問い合わせページ) --- */
@media (max-width: 768px) {
    .contact-tel-number {
        font-size: 2.5rem;
    }
    .contact-hours {
        font-size: 1rem;
    }
    .phone-info-box {
        padding: 30px 15px;
        margin: 30px auto;
    }
    .contact-guidance {
        margin-top: 40px;
    }
}