/* 基本フォント設定 */
html {
    overflow-x: hidden;
}
body {
    font-family: 'Noto Sans JP', sans-serif;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    background-size: cover;                  /* 画面全体を覆うように調整 */
    background-position: center center;      /* 画像を中央に配置 */
    background-repeat: no-repeat;            /* 画像を繰り返さない */
    background-attachment: fixed;            /* スクロールしても背景を固定 */
    background-color: #ffffff;               /* 画像読み込み前の背景色 */
    overflow-x: hidden;
}
h1, h2, h3, .font-serif {
    font-family: 'Shippori Mincho', serif;
}


/* --- アニメーション定義 --- */
@keyframes drift {
    0% { transform: translateY(0px) translateX(0px) rotate(0deg); }
    25% { transform: translateY(-20px) translateX(15px) rotate(10deg); }
    50% { transform: translateY(10px) translateX(-10px) rotate(-5deg); }
    75% { transform: translateY(-15px) translateX(20px) rotate(8deg); }
    100% { transform: translateY(0px) translateX(0px) rotate(0deg); }
}

.reveal {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 1s cubic-bezier(0.165, 0.84, 0.44, 1), transform 1s cubic-bezier(0.165, 0.84, 0.44, 1);
}
.reveal.visible {
    opacity: 1;
    transform: translateY(0);
}

.title-underline {
    position: relative;
    display: inline-block;
    padding-bottom: 8px;
}
.title-underline::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background-color: #D66393;
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 1.2s cubic-bezier(0.19, 1, 0.22, 1);
}
.reveal.visible .title-underline::after {
    transform: scaleX(1);
}

/* === ここから新しいヘッダーデザインのスタイル (修正版) === */

/* メインヘッダーの新しいボタンスタイル */
.new-header-button {
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    padding: 8px 16px;
    border-radius: 8px; /* 角を少し丸く */
    transition: all 0.2s ease;
    font-size: 14px;
    white-space: nowrap;
}
/* ナビゲーションバーのリンクスタイル (高さを小さく修正) */
.new-nav-link {
    display: flex;
    padding: 12px 24px; /* 上下の余白を16pxから12pxに縮小 */
    font-weight: 500;
    color: #374151;
    transition: background-color 0.3s, color 0.3s;
    border-bottom: 4px solid transparent;
    height: 100%;
    align-items: center;
}

/* ナビゲーションのホバーエフェクト */
.new-nav-link:hover,
.dropdown-container:hover > .new-nav-link {
    background-color: #f676c2;
    color: white;
}

/* ★★★ ここからドロップダウンの表示/非表示を修正 (デザイン改修版) ★★★ */
/* ドロップダウンメニューの親要素 */
#desktop-nav .dropdown-container {
    position: relative;
}

/* ドロップダウンメニューのスタイル */
#desktop-nav .dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    width: 260px;
    border-radius: 0 0 8px 8px;
    border-top: 4px solid #f676c2;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
    background-color: white;
    z-index: 20;
    /* ↓↓↓【修正点】コンテナのpaddingを削除し、中のリンクで余白を管理 */
    padding: 0; 
    overflow: hidden; /* 角丸を子要素にも適用 */

    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transform: translateY(10px);
    transition: opacity 0.3s ease, transform 0.3s ease;
}

/* 親要素にホバーした時に表示する設定 */
#desktop-nav .dropdown-container:hover .dropdown-menu {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: translateY(0);
}

/* ↓↓↓ ドロップダウン内項目のデザイン（修正版）↓↓↓ */
#desktop-nav .dropdown-menu a {
    display: block;
    color: #374151; /* 通常時の文字色 (黒) */
    font-size: 15px;
    padding: 12px 20px;
    background-color: #ffdef1; /* 通常時の背景色 (薄いピンク) */
    border-bottom: 1px solid white; /* 区切り線を白に変更 */
    transition: background-color 0.2s ease, color 0.2s ease;
}

/* 最後の項目の区切り線を消す */
#desktop-nav .dropdown-menu a:last-child {
    border-bottom: none;
}

/* ドロップダウン内項目のホバーエフェクト */
#desktop-nav .dropdown-menu a:hover {
    background-color: white; /* ホバー時の背景色を白に変更 */
    color: #D66393; /* ホバー時の文字色をピンクに変更 */
}
/* モバイルメニューのスタイル調整 */
#mobile-menu .header-link,
#mobile-menu a {
    color: #374151;
    font-size: 1.1rem;
    font-weight: 500;
}
#mobile-menu .dropdown-menu {
    padding-top: 8px;
    padding-left: 16px;
}
/* === ここまで新しいヘッダーデザインのスタイル (修正版) === */

/* --- 管理者パネル --- */
.switch { position: relative; display: inline-block; width: 60px; height: 34px; }
.switch input { opacity: 0; width: 0; height: 0; }
.slider { position: absolute; cursor: pointer; top: 0; left: 0; right: 0; bottom: 0; background-color: #ccc; transition: .4s; border-radius: 34px; }
.slider:before { position: absolute; content: ""; height: 26px; width: 26px; left: 4px; bottom: 4px; background-color: white; transition: .4s; border-radius: 50%; }
input:checked + .slider { background-color: #2196F3; }
input:checked + .slider:before { transform: translateX(26px); }

/* 各文字のアニメーション開始タイミングをずらしてウェーブ効果を作成 */
.wave-text span:nth-child(1) { animation-delay: 0.0s; }
.wave-text span:nth-child(2) { animation-delay: 0.1s; }
.wave-text span:nth-child(3) { animation-delay: 0.2s; }
.wave-text span:nth-child(4) { animation-delay: 0.3s; }
.wave-text span:nth-child(5) { animation-delay: 0.4s; }
.wave-text span:nth-child(6) { animation-delay: 0.5s; }

/* --- 目的から探すセクションのカード背景 --- */
.target-card {
    background-size: cover; /* 画像をカード全体に引き伸ばす */
    background-position: center; /* 画像の中央を表示 */
    color: white; /* カード内の基本の文字色を白に */
    text-shadow: 0 1px 4px rgba(0, 0, 0, 0.5); /* 文字に影をつけ、読みやすくする */
    position: relative; /* オーバーレイのための基準位置 */
    z-index: 1;
}

/* カード内の見出しと文章の文字色も白に上書き */
.target-card h3,
.target-card p {
    color: white !important; /* !importantで強制的に色を指定 */
}

/* 各カードの背景画像と、画像を少し暗くして文字を読みやすくするオーバーレイ */
#target-card-nyukyo {
    background-image: linear-gradient(rgba(13, 148, 136, 0.7), rgba(0, 0, 0, 0.5)), url('image/sample/hospice-1797305_1280.jpg');
}

#target-card-kazoku {
    background-image: linear-gradient(rgba(14, 165, 233, 0.7), rgba(0, 0, 0, 0.5)), url('image/sample/hospice-1797305_1280.jpg');
}

#target-card-shigoto {
    background-image: linear-gradient(rgba(101, 163, 13, 0.7), rgba(0, 0, 0, 0.5)), url('image/sample/hospice-1797305_1280.jpg');
}

/* サイドパネルのリンクのホバー効果を滑らかにする */
.fixed a {
    transition-property: transform;
    transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
    transition-duration: 150ms;
}

/* --- FAQアコーディオンのスタイル --- */
.faq-item {
    border: 1px solid #e5e7eb;
    border-radius: 0.5rem;
    overflow: hidden;
}
.faq-toggle {
    display: flex;
    align-items: center;
    width: 100%;
    text-align: left;
    padding: 1.25rem;
    font-weight: 600;
    background-color: #f9fafb;
    color: #1f2937;
    transition: background-color 0.2s;
}
.faq-toggle:hover {
    background-color: #f3f4f6;
}
.faq-icon-q {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2rem;
    height: 2rem;
    margin-right: 1rem;
    font-size: 1.25rem;
    font-weight: 700;
    color: white;
    background-color: #D66393;
    border-radius: 9999px;
    flex-shrink: 0;
}
.faq-question {
    flex-grow: 1;
}
.faq-icon-plus {
    position: relative;
    width: 1.5rem;
    height: 1.5rem;
    margin-left: 1rem;
    transition: transform 0.3s ease-in-out;
}
.faq-icon-plus::before,
.faq-icon-plus::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 1.25rem;
    height: 2px;
    background-color: #D66393;
    transform: translate(-50%, -50%);
    transition: transform 0.3s ease-in-out;
}
.faq-icon-plus::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 1.25rem;
    height: 2px;
    background-color: #D66393;
    transform: translate(-50%, -50%) rotate(90deg);
    transition: transform 0.3s ease-in-out; /* transitionはここに必要 */
}

/* [修正] :hover を .is-open クラスに変更 */
.faq-icon-plus.is-open {
    transform: rotate(135deg);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease-in-out, padding 0.4s ease-in-out;
    background-color: white;
    padding-left: 1.25rem;
    padding-right: 1.25rem;
}

.faq-answer p {
    padding: 1.5rem 0;
    border-top: 1px solid #e5e7eb;
    line-height: 1.75;
}

/* [修正] :hover を .is-open クラスに変更 */
.faq-answer.is-open {
    max-height: 500px; /* 十分な高さを確保 */
}

.faq-category-tag {
    display: inline-block;
    padding: 0.5rem 3.0rem;
    color: white;
    background-color: #D66393;
    border-radius: 9999px;
    font-weight: 600;
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
}

/* --- FAQセクションの色分け (#yasuragi) --- */
#yasuragi .faq-icon-q {
    background-color: #77A42D;
}

#yasuragi .faq-icon-plus::before,
#yasuragi .faq-icon-plus::after {
    background-color: #77A42D;
}

/* --- インタラクティブマップ --- */
.map-layout-container {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
}
.popup-row {
    display: flex;
    justify-content: center;
    gap: 2rem;
    width: 100%;
    max-width: 1024px;
    z-index: 12;
}
#map-container {
    position: relative;
    z-index: 10;
}
.pin-container {
    position: absolute;
    width: 18px;
    height: 18px;
    background-color: white;
    border: 3px solid #14B8A6;
    border-radius: 50%;
    transform: translate(-50%, -50%);
    z-index: 15;
    cursor: pointer;
    transition: all 0.2s ease;
}
.connector-lines {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 11;
}
.connector-lines line {
    stroke: #4B5563;
    stroke-width: 2;
    stroke-dasharray: 4 4;
    opacity: 0.6;
    transition: all 0.2s ease;
}

/* --- 新しいポップアップカードのスタイル --- */
.facility-card-link {
    display: block;
    width: 280px;
    text-decoration: none;
    color: inherit;
    transition: transform 0.3s ease;
}
.facility-card-link:hover,
.pin-container:hover + a,
.facility-card-link.highlight,
.pin-container.highlight + a {
    transform: translateY(-10px);
}
.facility-card {
    position: relative;
    filter: drop-shadow(0 8px 20px rgba(0, 0, 0, 0.08));
}
.cloud-svg {
    width: 100%;
    height: auto;
}
.card-content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 80%;
    text-align: center;
}
.popup-tag-new {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    color: white;
    font-size: 0.75rem;
    font-weight: bold;
    border-radius: 9999px;
    margin-bottom: 8px;
}
.card-title {
    font-size: 1rem;
    font-weight: 700;
    margin: 0 0 5px 0;
    color: #333;
}
.card-description {
    font-size: 12px;
    line-height: 1.5;
    margin: 0;
    color: #4A4A4A;
}

/* --- ホバー/ハイライト時のスタイル --- */
.pin-container.highlight {
    background-color: #F87171;
    border-color: #F87171;
    transform: translate(-50%, -50%) scale(1.2);
}
.connector-lines line.highlight {
    stroke: #DC2626;
    stroke-width: 3;
    opacity: 1;
}

/* 管理者ログインボタンを見やすくするスタイル */
#admin-login-btn {
    /* 半透明の背景を追加して、どんな動画の上でも見えるようにする */
    background-color: rgba(0, 0, 0, 0.2);
    border-radius: 9999px; /* 円形にする */
    width: 44px;          /* サイズを固定 */
    height: 44px;
    padding: 0.5rem;      /* 内側の余白 */
    display: flex;
    align-items: center;
    justify-content: center;
}

/* --- 「目的から探す」セクションの背景スライドショー（スライド形式） --- */
#slideshow-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
}

.slideshow-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center center;
    /* transitionの対象をtransformに変更 */
    transition: transform 1.5s cubic-bezier(0.23, 1, 0.32, 1);
    /* 初期位置を右側画面外に設定 */
    transform: translateX(100%);
}

.slideshow-image.active {
    /* activeクラスが付いた画像は画面中央に表示 */
    transform: translateX(0);
}

.slideshow-image.prev {
    /* prevクラスが付いた画像は左側画面外へ移動 */
    transform: translateX(-100%);
}

.slideshow-image.no-transition {
    transition: none;
}

/* --- 採用情報バナーセクション（V6：画像を内側にカーブさせる修正） --- */
#recruit-banner {
    display: flex;
    flex-direction: column; /* モバイルでは縦並び */
    background-color: #f6b8d4; /* セクション全体の背景をピンクに */
    overflow: hidden;
    min-height: 400px;
}

/* PC表示（768px以上）では横並びに */
@media (min-width: 768px) {
    #recruit-banner {
        flex-direction: row;
        align-items: stretch;
    }
}

/* 左側：写真エリア */
#recruit-banner .banner-image {
    width: 100%;
    line-height: 0;
    position: relative; /* 擬似要素を配置する基準点 */
    overflow: hidden; /* はみ出した円（擬似要素）を隠す */
}

@media (min-width: 768px) {
    #recruit-banner .banner-image {
        flex-shrink: 0;
        width: 50%;
        z-index: 10;
    }

    /* ★★★ ここで画像を内側にへこませるカーブを作成します ★★★ */
    #recruit-banner .banner-image::before {
        content: '';
        position: absolute;
        top: 50%;
        right: 0; /* 右端に配置 */
        /* 円を右に半分、上に半分ずらして中央に配置 */
        transform: translate(50%, -50%);
        /* 隣のテキストエリアと同じピンク色の円を作成 */
        background-color: #f6b8d4;
        /* 円のサイズ（カーブの大きさを調整できます） */
        width: 250px;
        height: 150%;
        /* 円形にする */
        border-radius: 50%;
    }
}

#recruit-banner .banner-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* 右側：テキストエリア */
#recruit-banner .banner-content {
    color: white;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center; /* モバイルでは中央揃え */
    text-align: center;
    padding: 3rem 1.5rem;
    position: relative;
}

@media (min-width: 768px) {
    #recruit-banner .banner-content {
        flex: 1; /* 残りのスペースをすべて埋める */
        align-items: flex-start; /* PCでは左揃え */
        text-align: left;
        padding: 4rem; /* 全方向に均等なパディング */
        z-index: 5;
    }
}

/* (以下、テキストやボタンのスタイルは変更なし) */
#recruit-banner .banner-content h2,
#recruit-banner .banner-content p,
#recruit-banner .banner-content .flex {
    position: relative;
    z-index: 1;
}
#recruit-banner .banner-content h2 {
    font-size: clamp(2rem, 5vw, 3rem);
    font-weight: 700;
    line-height: 1.5;
    margin: 0;
}
#recruit-banner .banner-content p {
    font-size: 1.25rem;
    color: #fff;
    padding-top: 1.5rem;
    padding-bottom: 1.5rem;
    margin: 0;
    position: relative;
    width: 100%;
}
#recruit-banner .banner-content p::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 1px;
    background-color: rgba(255, 255, 255, 0.8);
}
@media (max-width: 767px) {
    #recruit-banner .banner-content p::before {
        margin: 0 auto;
        right: 0;
    }
}
#recruit-banner .banner-content .flex {
    margin-top: 1rem;
}
.cloud-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    /* 雲のカードサイズを大きくします (180px → 220px) */
    width: 220px;
    height: 220px;
    font-weight: bold;
    /* 文字サイズを大きくします (1.1rem → 1.25rem) */
    font-size: 1.25rem;
    text-decoration: none;
    color: #333;
    position: relative;
    background-image: url('image/body/cloud-button-bg.png');
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    transition: transform 0.25s ease, filter 0.25s ease;
    padding-bottom: 20px; /* サイズ変更に伴い、テキスト位置を微調整 */
    box-sizing: border-box;
}
.cloud-button span { position: relative; z-index: 2; }
.cloud-button span::after { content: ' >'; font-weight: normal; }
.cloud-button.cloud-pink span { color: #D66393; }
.cloud-button.cloud-blue span { color: #00AEEF; }
.cloud-button:hover { transform: translateY(-4px); filter: brightness(1.1); }
#recruit-banner .banner-content .cloud-button { margin: 0 0.5rem; }

/* --- サイドパネルのデザイン（採用情報ボタン V2） --- */

/* リンクコンテナ (PCサイズ) */
#side-panel-container {
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 200;
    width: 160px; /* PCでの円のサイズ */
    height: 160px; /* PCでの円のサイズ */
    transition: transform 0.3s ease;
    text-decoration: none;
}
#side-panel-container:hover {
    transform: translateY(-5px) scale(1.05); /* 少し浮き上がり、拡大する */
}

/* 円形の本体 */
#side-panel-circle {
    width: 100%;
    height: 100%;
    border-radius: 9999px; /* 真円にする */
    background-color: #D66393; /* うねめの里ピンクカラー */
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    
    /* 中身（アイコンとテキスト）を縦に中央揃え */
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden; /* うねめちゃんがはみ出ないように */
}

/* テキストボックスのスタイル */
.side-panel-text {
    display: block;
    background-color: white;
    color: #333; /* 文字色 */
    font-weight: bold;
    font-size: 16px;
    padding: 4px 12px;
    border-radius: 4px;
    margin-top: 8px; /* アイコンとの間隔 */
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

/* うねめちゃんアイコンのサイズ調整 (PC) */
#side-panel-circle .character-hover-container {
    width: 80px; /* PCでのアイコンサイズ */
    height: 80px; /* PCでのアイコンサイズ */
    margin-top: 0; /* character.css のマージンをリセット */
}

/* スマートフォン向けのスタイル (767px以下) */
@media (max-width: 767px) {
    #side-panel-container {
        width: 120px; /* スマホでの円のサイズ */
        height: 120px; /* スマホでの円のサイズ */
        bottom: 15px;
        right: 15px;
    }

    /* うねめちゃんアイコンのサイズ調整 (スマホ) */
    #side-panel-circle .character-hover-container {
        width: 60px; /* スマホでのアイコンサイズ */
        height: 60px; /* スマホでのアイコンサイズ */
    }

    /* テキストボックスのスタイル (スマホ) */
    .side-panel-text {
        font-size: 12px;
        padding: 3px 10px;
        margin-top: 5px;
    }
}

/* --- New Footer Style --- */
#footer-info {
    font-size: 14px;
}

#footer-info .footer-heading {
    font-size: 1rem;
    font-weight: 700;
    color: #333;
    padding-bottom: 0.75rem;
    border-bottom: 1px solid #d1d5db;
}

#footer-info .footer-link-list a {
    transition: color 0.2s ease-in-out;
}

#footer-info .footer-link-list a:hover {
    color: #D66393; /* メインカラーのピンク */
    text-decoration: underline;
}

#footer-info .footer-tel-list a {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    text-decoration: none;
    transition: color 0.2s ease-in-out;
}

#footer-info .footer-tel-list a:hover {
    color: #D66393;
}

#footer-info .tel-icon {
    display: inline-block;
    width: 14px;
    height: 14px;
    border-radius: 50%;
    flex-shrink: 0;
    /* デザイン画像の葉っぱのアイコンを簡略化しています */
}

/* --- 法人概要ページ 理念セクション (画像版) --- */
.philosophy-cloud {
    /* テキストを中央に配置 */
    display: flex;
    align-items: center;
    justify-content: center;
    
    /* 文字のスタイル */
    font-size: 1.1rem;
    font-weight: 700;
    line-height: 1.6;
    text-align: center;

    /* 背景画像の設定 */
    background-size: contain;
    background-position: center;
    background-repeat: no-repeat;
    
    /* サイズとホバーエフェクト */
    min-height: 160px;
    transition: transform 0.3s ease;
}

.philosophy-cloud:hover {
    transform: translateY(-8px);
}

/* 各雲の画像と文字色を指定 */
.philosophy-cloud.cloud-pink {
    background-image: url('image/houjin-gaiyou/cloud-pink.png');
    color: #EC74B7;
}

.philosophy-cloud.cloud-blue {
    background-image: url('image/houjin-gaiyou/cloud-blue.png');
    color: #48A6E5;
}

.philosophy-cloud.cloud-green {
    background-image: url('image/houjin-gaiyou/cloud-green.png');
    color: #93C47D;
}

.philosophy-cloud.cloud-orange {
    background-image: url('image/houjin-gaiyou/cloud-orange.png');
    color: #F2A96A;
}

/* --- 沿革セクションのスタイル --- */
.history-title {
    color: white;
    font-size: 1.25rem; /* 18px */
    font-weight: 700;
    text-align: center;
    padding: 0.75rem 1rem; /* 12px 16px */
    border-radius: 9999px; /* 角を丸めてカプセル型に */
}

.history-title-pink {
    background-color: #D66393;
}

.history-title-blue {
    background-color: #3B82F6;
}

/* --- ユースエール認定ページ スタイル（詳細版） --- */
.data-section-title {
    font-size: 1.5rem; /* 24px */
    font-weight: 700;
    color: #D66393;
    position: relative;
    display: inline-block;
    padding-bottom: 0.75rem; /* 12px */
}

.data-section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 50px;
    height: 1px;
    background-color: #D66393;
}

.data-card {
    background-color: white;
    padding: 1.25rem; /* 20px */
    border-radius: 0.75rem; /* 12px */
    border: 1px solid #F3E8EE;
    box-shadow: 0 4px 15px rgba(236, 0, 140, 0.05);
    display: flex;
    align-items: center;
    gap: 1rem; /* 16px */
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.data-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(236, 0, 140, 0.1);
}

.data-card-icon {
     color: #D66393;
}

.data-card-title {
    font-size: 0.875rem; /* 14px */
    color: #6b7280;
}

.data-card-value {
    font-size: 2.25rem; /* 36px */
    font-weight: 700;
    color: #D66393;
    line-height: 1.2;
}

/* --- メッセージボックス (新デザイン) --- */
.message-box {
    position: relative;
    background-color: white;
    border-radius: 0.75rem; /* 12px */
    padding: 2.5rem 1.5rem 1.5rem 1.5rem; /* 上、左右、下の順 */
    border: 2px solid #F3E8EE;
    box-shadow: 0 4px 15px rgba(236, 0, 140, 0.05);
    margin-top: 2rem; /* タイトルが上の要素に被らないようにスペースを確保 */
}
.message-title {
    position: absolute;
    top: 0;
    left: 50%;
    transform: translate(-50%, -50%);
    color: white;
    font-weight: 700;
    font-size: 1.625rem;
    padding: 0.5rem 2.5rem;
    border-radius: 9999px;
    width: max-content; /* 中の文字の幅に合わせる */
    box-shadow: 0 2px 8px rgba(214, 99, 147, 0.25);
}
.message-title-pink {
    background-color: #D66393;
}
.message-title-orange {
    background-color: #DB8727;
}
.message-title-green {
    background-color: #77A42D;
}
.message-title-blue {
    background-color: #018CCF;
}
.message-title-yellow {
    background-color: #E8AF00;
}
.message-content {
    padding: 0;
    color: #4b5563;
    line-height: 1.8;
}

/* --- メッセージボックス (スマホ用重なり対策) --- */
@media (max-width: 767px) {

    .message-box {
        /* [修正] タイトルが折り返しても本文と重ならないよう、
           padding-top (ボックス内の上部の余白) を十分に確保します */
        padding-top: 4.5rem; /* 40px → 72px */
        
        /* [修正] タイトルの高さに合わせてボックス全体のマージンも調整 */
        margin-top: 3.5rem; /* 32px → 56px */
    }

    .message-title {
        /* [修正] タイトルの横幅を少し狭くして、折り返しやすくします */
        max-width: 85%;
        
        /* 前回からのスタイル */
        font-size: 1.125rem; /* 18px */
        padding: 0.5rem 1.5rem;
        width: auto;
        white-space: normal;
        text-align: center;
    }
}

/* 企業情報の詳細テーブル */
.detail-info-table td {
    padding: 1rem 1.5rem;
    vertical-align: top;
    font-size: 1.25rem;
}
.detail-info-table tr {
    border-bottom: 1px solid #e5e7eb;
}
.detail-info-table tr:last-child {
    border-bottom: none;
}
.detail-info-table td:first-child {
    background-color: #f9fafb;
    font-weight: 600;
    color: #374151;
    width: 240px;
}

/* --- 安心して働き続けるための取り組みセクション --- */

/* 各取り組みカードの親コンテナ */
.initiative-card-container {
    position: relative;
    padding-top: 2rem; /* タグの高さ分の余白 */
    margin-top: 3rem;
}

/* 各カードのタグ（共通スタイル） */
.initiative-tag {
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    color: white;
    font-weight: 700;
    font-size: 1.5rem; /* 18px */
    padding: 0.6rem 2.5rem;
    border-radius: 9999px;
    width: max-content; /* 中の文字の幅に合わせる */
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
    z-index: 10;
}

/* タグの色 */
.initiative-tag.tag-orange { background-color: #F97316; } /* オレンジ */
.initiative-tag.tag-green  { background-color: #10B981; } /* 緑 */
.initiative-tag.tag-blue   { background-color: #0EA5E9; } /* 青 */
.initiative-tag.tag-pink   { background-color: #EC4899; } /* ピンク */

/* カード本体 */
.initiative-card-body {
    position: relative;
    background-color: white;
    padding: 2.5rem 2rem;
    padding-top: 3.5rem; /* タグの高さ分を考慮して、上部の余白を多めに */
    border-radius: 0.75rem; /* 12px */
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    border: 1px solid #F3E8EE;
    font-size: 1.25rem;
}

.initiative-card-body p {
    color: #4b5563;
    line-height: 1.8;
}

.bg-image {
  /* 背景画像を指定 */
  background-image: url('image/body/jkalina-ZsBRkhBW8WA-unsplash.jpg');
  
  /* 繰り返さない */
  background-repeat: no-repeat;
  
  /* 画面いっぱいに表示 */
  background-size: cover;
  
  /* 常に中央に表示 */
  background-position: center;
  
  /* スクロールしても背景を固定する */
  background-attachment: fixed; /* */
}

/* --- [修正] 静的なヒーローセクション用のスタイル --- */

/* 背景ビデオとグラデーション */
.background-video {
    width: 100%; 
    height: 100%;
    object-fit: cover; /* 動画をアスペクト比を保ったまま全画面に広げる */
}
.hero-gradient {
    position: absolute; 
    inset: 0;
    /* 動画の下部を暗くして文字を読みやすくする */
    background: linear-gradient(to top, rgba(0,0,0,0.3), transparent 40%);
}

/* キャッチコピーの文字スタイル */
.main-catchphrase {
    font-size: clamp(2.5rem, 6vw, 4.5rem); 
    font-weight: bold; 
    line-height: 1.3;
    text-shadow: 0 2px 20px rgba(0,0,0,0.5); /* 文字に影をつける */
}
.sub-catchphrase {
    font-size: clamp(1rem, 2.5vw, 1.125rem); 
    max-width: 42rem;
    margin: 1.5rem auto 0; 
    text-shadow: 0 1px 10px rgba(0,0,0,0.5); /* 文字に影をつける */
}

/* --- 「目的から探す」セクション V2 (Flexboxベース修正版) --- */

/* タイトルタブ (変更なし) */
#target-nav .target-nav-title {
    background-color: #D66393;
    color: white;
    font-family: 'Shippori Mincho', serif;
    font-weight: bold;
    padding: 0.75rem 2.5rem;
    border-radius: 9999px;
    font-size: 1.75rem;
    position: absolute;
    top: 0;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 10;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    white-space: nowrap;
}

/* 白い背景ボックス (変更なし) */
#target-nav .target-nav-content-bg {
    background-color: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(8px);
    border-radius: 12px;
    padding: 2.5rem 1.5rem;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.05);
    margin-top: 2.5rem;
    position: relative;
}

/* [修正] 雲コンテナ (Flexboxに変更し、スマホは中央揃え) */
#target-nav .cloud-grid {
    display: flex;
    flex-direction: column; /* スマホは縦1列 */
    align-items: center;   /* スマホは中央揃え */
    gap: 1.5rem;
    margin-top: 2.5rem;
    width: 100%;
    float: none;
    margin-left: 0;
}

/* [修正] 雲カード (スマホ用の幅を指定) */
#target-nav a.cloud-card {
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    min-height: 220px;
    
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 2rem;
    text-decoration: none;
    
    position: relative;
    transition: transform 0.3s ease;
    box-sizing: border-box;
    
    /* [修正] スマホでの幅を指定 (はみ出ないように max-width も指定) */
    width: 260px;
    max-width: 100%;
    margin: 0; 
}

/* 各カードに背景画像を指定 (変更なし) */
#target-nav a.cloud-card.cloud-1 {
    background-image: url('image/body/cloud-style-1.png');
}
/* カード内の見出し (h3) (変更なし) */
#target-nav a.cloud-card h3 {
    font-size: 1.5rem;
    font-weight: 700;
    font-family: 'Shippori Mincho', serif;
    color: #D66393;
    line-height: 1.4;
    margin: 0;
    position: static;
    transform: none;
}

/* More+ ボタン (変更なし) */
#target-nav a.cloud-card .cloud-more-button {
    display: inline-block;
    background-color: #D66393;
    color: white;
    font-weight: bold;
    font-size: 1rem;
    padding: 6px 20px;
    border-radius: 9999px;
    margin-top: 1rem;
    transition: background-color 0.3s ease;
}

/* ホバー時リンク (変更なし) */
#target-nav a.cloud-card .cloud-hover-link {
    font-size: 1rem;
    font-weight: 500;
    color: #374151;
    margin-top: 0.5rem;
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: opacity 0.3s ease, transform 0.3s ease, visibility 0.3s;
}

/* カードホバー時のエフェクト (変更なし) */
#target-nav a.cloud-card:hover {
    transform: scale(1.05);
}
#target-nav a.cloud-card:hover .cloud-more-button {
    background-color: #c90079;
}
#target-nav a.cloud-card:hover .cloud-hover-link {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

/* [修正後] PC表示用のスタイル (左右の余白を両方打ち消す) */
@media (min-width: 768px) {
    #target-nav .cloud-grid {
        flex-direction: row;
        justify-content: space-between; /* 両端揃え */
        align-items: center; 
        
        /* [重要] 親のpadding (左右 2.5rem) を両方打ち消す */
        gap: 1rem;
        margin-left: -2.5rem;  /* 左の余白を-40px */
        margin-right: -2.5rem; /* [追加] 右の余白も-40px */
        
        /* [重要] 幅は自動計算に任せる */
        width: auto; 

        flex-wrap: wrap;
    }
    
    /* カード幅の指定 (変更なし) */
    #target-nav a.cloud-card {
        flex-basis: 260px;
        flex-grow: 0;
        flex-shrink: 0;
        width: auto;      
        max-width: 100%;  
    }
    
    /* 白い背景ボックス (変更なし) */
    #target-nav .target-nav-content-bg {
         padding: 2.5rem;
    }
}

/* --- モバイルメニュー V2 (全画面デザイン) [修正版] --- */

/* メニューのリンク項目 (共通スタイル) */
#mobile-menu .header-link,
#mobile-menu a {
    display: block;
    padding: 18px 20px;
    font-size: 1rem; /* 16px */
    font-weight: 600;
    color: #374151; /* 濃いグレー */
    border-bottom: 1px solid #f3f4f6; /* 薄いグレーの下線 */
    transition: background-color 0.2s;
    text-decoration: none;
}

/* リンク項目のホバー（タップ時） */
#mobile-menu .header-link:hover,
#mobile-menu a:hover {
    background-color: #fafafa; /* わずかに背景色を変える */
}

/* ドロップダウンの親コンテナ */
#mobile-menu .dropdown-container {
    position: relative;
}

/* [修正] ドロップダウンの親リンク (例: 「施設案内」) */
#mobile-menu .dropdown-container > a {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: none; /* リンク自体の下線は削除 */
}

/* [修正] ドロップダウン開閉アイコン (V字アイコンに変更) */
#mobile-menu .dropdown-container > a::after {
    display: none; /* ← 非表示に変更 */
}

/* [修正] 開いているドロップダウンのアイコン (上向きV字) */
#mobile-menu .dropdown-container .is-open + a::after {
    display: none; /* ← 非表示に変更 */
}

/* [修正] サブメニュー (ドロップダウンの中身) */
#mobile-menu .dropdown-menu {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease-out;
    background-color: #ffdef1; /* [修正] PC版に合わせた薄いピンク */
}

/* 開いているサブメニュー */
#mobile-menu .dropdown-menu.is-open {
    /* script.js によって is-open が付与されると開く */
    max-height: 500px; /* 十分な高さを確保 */
}

/* [修正] サブメニュー内のリンク */
#mobile-menu .dropdown-menu a {
    padding-left: 36px; /* インデントする */
    font-size: 0.95rem; /* 少し小さく */
    font-weight: 500;
    color: #374151; /* [修正] 文字色を黒に */
    border-bottom: 1px solid white; /* [修正] PC版に合わせた区切り線 */
}

/* [修正] サブメニュー内のホバーエフェクト */
#mobile-menu .dropdown-menu a:hover {
    background-color: white;
    color: #D66393;
}

/* サブメニュー内の最後のリンクの下線を削除 */
#mobile-menu .dropdown-menu a:last-child {
    border-bottom: none;
}
/* --- インタラクティブマップ (V2 デザイン案) --- */

/* セクション全体の余白と町のイラスト設定 */
#interactive-facilities {
    padding-bottom: 150px; /* 町のイラスト分の余白 */
    z-index: 1;
}

/* 町のイラスト */
.town-illustration-bg {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 120px; /* イラストの高さに合わせて調整 */
    background-image: url('image/body/town_color.png');
    background-repeat: repeat-x;
    background-position: bottom center;
    /* イラストのピクセルが荒れないよう auto 100% (高さ基準) に設定 */
    background-size: auto 100%;
    z-index: 5;
}

/* * ==============================================================
 * PC用スタイル (画面幅 1220px 以上)
 * ==============================================================
 */
@media (min-width: 1220px) {
    /* マップレイアウトコンテナ (V2) */
    .map-layout-container {
        position: relative;
        display: grid;
        grid-template-columns: 70rem; /* 1120px */
        grid-template-areas: "map";
        justify-content: center;
        align-items: center;
        min-width: 1220px; /* PCの最小幅 */
        min-height: 768px; /* カード3枚が収まる高さ */
        max-width: 80rem; 
        margin-left: auto;
        margin-right: auto;
        z-index: 10;
    }

    /* 左右のカードコンテナ */
    .map-cards-left {
        position: absolute;
        top: 50%;
        left: 50px; /* PCの配置 */
        transform: translateY(-50%);
        display: flex;
        flex-direction: column;
        gap: 1.5rem;
        justify-content: center;
        align-items: flex-start;
        z-index: 12;
    }
    .map-cards-right {
        position: absolute;
        top: 50%;
        right: 50px; /* PCの配置 */
        transform: translateY(-50%);
        display: flex;
        flex-direction: column;
        gap: 1.5rem;
        justify-content: center;
        align-items: flex-end;
        z-index: 12;
    }

    /* マップ本体 (中央) */
    #map-container {
        grid-area: map;
        z-index: 10;
        width: 70rem; /* PCのマップ幅 */
        margin: 0 auto;
        position: relative;
    }

    /* --- 新しい雲カードのスタイル --- */
    .facility-card-new {
        display: block;
        width: 340px; /* PCの雲の幅 */
        height: 240px; /* PCの雲の高さ */
        background-size: contain;
        background-repeat: no-repeat;
        background-position: center;
        text-decoration: none;
        color: inherit;
        transition: transform 0.3s ease;
        position: relative;
    }
    
    .popup-tag-new {
        display: inline-block;
        padding: 0.25rem 0.75rem;
        color: white;
        font-size: 1.0rem; /* PCのタグ文字サイズ */
        font-weight: bold;
        border-radius: 9999px;
        margin-bottom: 8px;
    }

    .card-title-new {
        font-size: 1.75rem; /* PCのタイトル文字サイズ */
        font-weight: 700;
        margin: 0 0 5px 0;
    }

    .card-description-new {
        font-size: 16px; /* PCの説明文文字サイズ */
        line-height: 1.5;
        margin: 0;
        color: #4A4A4A;
    }
} /* --- PC用スタイルここまで --- */

/* * ==============================================================
 * タブレット・スマホ用スタイル (画面幅 1219px 以下)
 * (PC用を全体的に 0.5倍 程度に縮小)
 * ==============================================================
 */
@media (max-width: 1219px) {
    /* マップレイアウトコンテナ (V2) */
    .map-layout-container {
        position: relative;
        display: grid;
        grid-template-columns: 35rem; /* 70rem * 0.5 = 35rem (560px) */
        grid-template-areas: "map";
        justify-content: center;
        align-items: center;
        min-width: 610px; /* 1220px * 0.5 */
        min-height: 384px; /* 768px * 0.5 */
        max-width: 80rem; 
        margin-left: auto;
        margin-right: auto;
        z-index: 10;
    }

    /* 左右のカードコンテナ */
    .map-cards-left {
        position: absolute;
        top: 50%;
        left: 25px; /* 50px * 0.5 */
        transform: translateY(-50%);
        display: flex;
        flex-direction: column;
        gap: 0.75rem; /* 1.5rem * 0.5 */
        justify-content: center;
        align-items: flex-start;
        z-index: 12;
    }
    .map-cards-right {
        position: absolute;
        top: 50%;
        right: 25px; /* 50px * 0.5 */
        transform: translateY(-50%);
        display: flex;
        flex-direction: column;
        gap: 0.75rem; /* 1.5rem * 0.5 */
        justify-content: center;
        align-items: flex-end;
        z-index: 12;
    }

    /* マップ本体 (中央) */
    #map-container {
        grid-area: map;
        z-index: 10;
        width: 35rem; /* 70rem * 0.5 */
        margin: 0 auto;
        position: relative;
    }

    /* --- 新しい雲カードのスタイル --- */
    .facility-card-new {
        display: block;
        width: 170px; /* 340px * 0.5 */
        height: 120px; /* 240px * 0.5 */
        background-size: contain;
        background-repeat: no-repeat;
        background-position: center;
        text-decoration: none;
        color: inherit;
        transition: transform 0.3s ease;
        position: relative;
    }
    
    /* カード内のコンテンツ (パディング調整) */
    .card-content-new {
        padding-bottom: 5px; /* 縮小に合わせて調整 */
    }

    .popup-tag-new {
        display: inline-block;
        padding: 0.15rem 0.5rem; /* 縮小に合わせて調整 */
        color: white;
        font-size: 0.75rem; /* 12px (これ以上小さくすると読みにくい) */
        font-weight: bold;
        border-radius: 9999px;
        margin-bottom: 4px; /* 縮小に合わせて調整 */
    }

    .card-title-new {
        font-size: 0.9rem; /* 14.4px (調整) */
        font-weight: 700;
        margin: 0 0 2px 0; /* 縮小に合わせて調整 */
    }

    .card-description-new {
        font-size: 11px; /* (調整) */
        line-height: 1.4; /* 縮小に合わせて調整 */
        margin: 0;
        color: #4A4A4A;
    }
} /* --- タブレット・スマホ用スタイルここまで --- */


/* * ==============================================================
 * 共通スタイル (PC・スマホ共通)
 * ==============================================================
 */

/* SVGコネクタ */
.connector-lines {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 11;
}
.connector-lines line {
    stroke-width: 2;
    stroke-dasharray: 4 4;
    opacity: 0.8;
    transition: all 0.2s ease;
}

/* カードホバー */
.facility-card-new:hover,
.facility-card-new.highlight {
    transform: translateY(-8px) scale(1.03);
    filter: drop-shadow(0 4px 10px rgba(0,0,0,0.1));
}

/* 雲画像の割り当て */
.card-pink { background-image: url('image/body/cloud-5.png'); }
.card-green { background-image: url('image/body/cloud-1.png'); }
.card-blue { background-image: url('image/body/cloud-4.png'); }
.card-orange { background-image: url('image/body/cloud-3.png'); }
.card-yellow { background-image: url('image/body/cloud-2.png'); }

/* カード内のコンテンツ (共通) */
.card-content-new {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 75%; /* 雲の内側に収まるように */
    text-align: center;
    padding-bottom: 10px; /* 雲の形に合わせて微調整 */
}

/* タグの色 (共通) */
.tag-pink { background-color: #D66393; }
.tag-green { background-color: #8BC34A; }
.tag-blue { background-color: #00AEEF; }
.tag-orange { background-color: #F57C00; }
.tag-yellow { background-color: #FBB03B; }

/* タイトルの文字色 (共通) */
.card-pink .card-title-new { color: #D66393; }
.card-green .card-title-new { color: #8BC34A; }
.card-blue .card-title-new { color: #00AEEF; }
.card-orange .card-title-new { color: #F57C00; }
.card-yellow .card-title-new { color: #FBB03B; }


/* --- ホバー/ハイライト時のスタイル (共通) --- */
.pin-container.highlight {
    background-color: #F87171;
    border-color: #F87171;
    transform: translate(-50%, -50%) scale(1.2);
}
.connector-lines line.highlight {
    stroke-width: 3;
    opacity: 1;
    stroke-dasharray: none; /* ハイライト時は実線に */
}

/* --- 古いスタイルを確実に無効化 (共通) --- */
.facility-card-link, .facility-card, .cloud-svg {
    display: none;
}
/* --- インタラクティブマップ 色のカスタマイズ (V2) (共通) --- */

/* 1. ピンの「平常時」の色を施設カラーに変更 */
#pin-uneme { border-color: #D66393; }
#pin-yasuragi { border-color: #8BC34A; }
#pin-haruhime { border-color: #00AEEF; }
#pin-emifuru { border-color: #F57C00; }
#pin-center { border-color: #FBB03B; }

/* 2. 線の「平常時」の色を施設カラーに変更 */
line[data-pin="pin-uneme"] { stroke: #D66393; }
line[data-pin="pin-yasuragi"] { stroke: #8BC34A; }
line[data-pin="pin-haruhime"] { stroke: #00AEEF; }
line[data-pin="pin-emifuru"] { stroke: #F57C00; }
line[data-pin="pin-center"] { stroke: #FBB03B; }


/* 3. ピンの「ハイライト時」の色を施設カラーに変更 */
#pin-uneme.highlight { background-color: #D66393; border-color: #D66393; }
#pin-yasuragi.highlight { background-color: #8BC34A; border-color: #8BC34A; }
#pin-haruhime.highlight { background-color: #00AEEF; border-color: #00AEEF; }
#pin-emifuru.highlight { background-color: #F57C00; border-color: #F57C00; }
#pin-center.highlight { background-color: #FBB03B; border-color: #FBB03B; }

/* 4. 線の「ハイライト時」の色を施設カラーに変更 */
line[data-pin="pin-uneme"].highlight { stroke: #D66393; }
line[data-pin="pin-yasuragi"].highlight { stroke: #8BC34A; }
line[data-pin="pin-haruhime"].highlight { stroke: #00AEEF; }
line[data-pin="pin-emifuru"].highlight { stroke: #F57C00; }
line[data-pin="pin-center"].highlight { stroke: #FBB03B; }

/* --- インタラクティブマップ 横スクロール対応 --- */
#interactive-facilities .container {
    overflow-x: auto; /* 横にはみ出た場合にスクロールバーを表示 */
    -webkit-overflow-scrolling: touch; /* iOSでの慣性スクロールを有効化 */
    padding-bottom: 1rem; /* スクロールバーが表示されても隠れないよう余白を追加 */
}

/* --- [個別調整] はるひめ (card-blue) のテキストはみ出し調整 --- */
.card-blue .card-content-new {
    width: 70%; /* 他のカード(75%)より少し狭くして改行を促す */
}