/* 全体設定 */
body { 
    font-family: 'Noto Sans JP', sans-serif; 
    background-color: #fffaf0; 
    color: #5a4a42; 
    overflow-x: hidden;
    scroll-behavior: smooth;
}

h1, h2, h3, h4, .font-maru { 
    font-family: 'Kiwi Maru', serif; 
}

/* ブランドカラー */
.bg-warm-orange { background-color: #ff922b; }
.text-warm-orange { color: #ff922b; }
.bg-cream { background-color: #fff4e6; }
.border-warm { border-color: #ffd8a8; }

/* 装飾 */
.shadow-soft { 
    box-shadow: 0 10px 40px rgba(255, 146, 43, 0.15); 
}

.section-title { 
    text-align: center; 
    font-size: 2rem; 
    font-weight: bold; 
    margin-bottom: 3rem; 
    position: relative; 
    display: inline-block; 
    left: 50%; 
    transform: translateX(-50%); 
}

.section-title::after { 
    content: ''; 
    position: absolute; 
    bottom: -10px; 
    left: 0; 
    width: 100%; 
    height: 4px; 
    background: #ff922b; 
    border-radius: 2px; 
    opacity: 0.5; 
}

/* アコーディオン */
details summary::-webkit-details-marker { 
    display: none; 
}

/* パララックス設定 */
.parallax-section {
    background-image: url('https://images.unsplash.com/photo-1576091160550-2173dad99901?auto=format&fit=crop&q=80&w=2000');
    background-attachment: fixed;
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
    position: relative;
}

.parallax-overlay {
    background: rgba(0, 0, 0, 0.45); 
    backdrop-filter: blur(2px);     
}

.parallax-text {
    text-shadow: 0 2px 10px rgba(0,0,0,0.5); 
}

/* ============================================================
   波線（ウェーブ）の追加設定
   ============================================================ */
.wave-spacer {
    position: relative;
    height: 80px; /* 波の高さ */
    width: 100%;
    margin-top: -40px; /* 前のセクションに少し被せて隙間を消す */
    z-index: 10;
    line-height: 0;
}

.wave-spacer svg {
    width: 100%;
    height: 80px;
}

/* 白背景セクションへ向かう波の色 */
.to-white { fill: #ffffff; }

/* クリーム色セクションへ向かう波の色 */
.to-cream { fill: #fffaf0; }


@keyframes bounce-slow {
  0%, 100% { transform: translateY(-10%); }
  50% { transform: translateY(10%); }
}
.animate-bounce-slow {
  animation: bounce-slow 2s infinite;
}


/* ============================================================
   訪問看護サービスセクション（3列・中央寄せ）
   ============================================================ */

/* 1. 全体を囲む枠：左右に大きな余白を作り、中央に寄せる */
.about-section-outer {
    max-width: 1000px; /* コンテンツの最大幅を制限 */
    width: 90%;        /* 画面幅の90%に設定（左右に5%ずつの余白） */
    margin: 0 auto;    /* 左右中央に配置 */
    padding: 80px 0;   /* 上下の余白 */
}

/* 2. グリッド：3列に固定して隙間を作る */
.services-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr); /* 常に3列 */
    gap: 30px;                             /* カード同士の間隔 */
    margin-top: 50px;
}

/* 3. カードのデザイン */
.service-card {
    background: #ffffff;
    padding: 50px 25px;
    border-radius: 20px;
    text-align: center;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    border: 1px solid #f0f0f0;
    transition: all 0.3s ease;
    height: 100%;       /* カードの高さを揃える */
    display: flex;
    flex-direction: column;
    align-items: center;
}

/* 4. ホバー時の浮き上がり */
.service-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 40px rgba(255, 146, 43, 0.15);
    border-color: #ff922b;
}

/* 5. アイコンの装飾 */
.service-icon {
    width: 80px;
    height: 80px;
    background: #fff4e6;
    color: #ff922b;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 25px;
    font-size: 2rem;
    transition: all 0.3s ease;
}

.service-card:hover .service-icon {
    background: #ff922b;
    color: #ffffff;
}

/* 6. テキストのデザイン */
.service-card h3 {
    font-family: 'Kiwi Maru', serif;
    font-size: 1.3rem;
    margin-bottom: 15px;
    color: #5a4a42;
}

.service-card p {
    font-size: 0.95rem;
    line-height: 1.7;
    color: #7a6a5c;
}

/* 7. レスポンシブ（スマホ・タブレット対応） */
@media (max-width: 992px) {
    .services-grid {
        grid-template-columns: repeat(2, 1fr); /* タブレットは2列 */
    }
}

@media (max-width: 640px) {
    .about-section-outer {
        width: 95%; /* スマホは画面いっぱいに近くする */
    }
    .services-grid {
        grid-template-columns: 1fr; /* スマホは1列 */
    }
}

/* 導入文のスタイリング */
.about-intro {
    max-width: 800px;
    margin: 0 auto 50px; /* 下のグリッドとの間隔 */
    text-align: center;
}

.intro-catch {
    color: #ff922b;
    font-weight: bold;
    font-size: 1.1rem;
    margin-bottom: 10px;
    letter-spacing: 0.05em;
}

.intro-sub {
    font-family: 'Kiwi Maru', serif;
    font-size: 1.8rem;
    color: #5a4a42;
    margin-bottom: 25px;
    line-height: 1.4;
}

.intro-text {
    font-size: 1.05rem;
    line-height: 1.8;
    color: #7a6a5c;
    text-align: left; /* 長文は左寄せの方が読みやすいです */
    display: inline-block; /* 左寄せにしつつ、全体を中央に配置 */
}

/* スマホ対応 */
@media (max-width: 640px) {
    .intro-sub {
        font-size: 1.4rem;
    }
    .intro-text {
        font-size: 0.95rem;
        text-align: justify; /* スマホでは端を揃える */
    }
}

/* 1つ目の文言：オレンジの小さい文字 */
.intro-catch {
    color: #ff922b;
    font-weight: bold;
    font-size: 1.1rem;
    margin-bottom: 25px; /* ← ここを大きく（10pxから25pxに）しました */
    letter-spacing: 0.1em;
    display: block;
}

/* 2つ目の文言：大きな見出し文字 */
.intro-sub {
    font-family: 'Kiwi Maru', serif;
    font-size: 1.8rem;
    color: #5a4a42;
    margin-bottom: 35px; /* 下の説明文との間隔 */
    line-height: 1.4;
    font-weight: 700;
}


/* セクションごとに背景色を交互に変える設定 */

/* 偶数番目（2, 4, 6...個目）のセクションをクリーム色にする */
section:nth-of-type(even) {
    background-color: #fff4e6 !important; /* 薄いオレンジ系 */
}

/* 奇数番目（1, 3, 5...個目）のセクションは白にする */
section:nth-of-type(odd) {
    background-color: #ffffff !important;
}

/* 波線（セパレーター）自体の背景色も自動で合わせる */
/* 波線の直前のセクションが白なら、波線の背景も白にする必要があります */
.wave-spacer {
    background-color: #ffffff; /* 基本は白 */
    line-height: 0;
}

/* パターンA：白からクリームへ（下り） */
.wave-to-cream {
    background-color: #ffffff; /* 上のセクションの色 */
}
.wave-to-cream path {
    fill: #fff4e6; /* 下のセクションの色 */
}

/* パターンB：クリームから白へ（上り） */
.wave-to-white {
    background-color: #fff4e6; /* 上のセクションの色 */
}
.wave-to-white path {
    fill: #ffffff; /* 下のセクションの色 */
}

/* 共通設定 */
.wave-spacer {
    width: 100%;
    line-height: 0;
    overflow: hidden;
}
.wave-spacer svg {
    width: 100%;
    height: 80px; /* 波の高さ */
}

/* クリーム色の定義を統一 */
.bg-cream,
section:nth-of-type(even) { /* 偶数番目を自動で塗る場合 */
    background-color: #fff4e6 !important;
}

/* セパレーターの色もこれに合わせる */
.wave-to-cream path {
    fill: #fff4e6;
}

.wave-to-white {
    background-color: #fff4e6;
}

.wave-to-white path {
    fill: #ffffff;
}


.wave-spacer svg {
    width: 100%;
    /* ここを大きくすると波がダイナミックになります */
    height: 120px; 
    display: block;
    transform: scaleY(1.5); /* 縦方向に1.5倍に拡大 */
    transform-origin: bottom; /* 下側を基準に伸ばす */
}

/* 念のためコンテナ自体の高さ制限も外すか、合わせる */
.wave-spacer {
    width: 100%;
    height: auto; 
    line-height: 0;
    margin: 0; /* 隙間が空く場合はここを調整 */
}

.concept-section {
    padding-top: 50px !important;    /* 上の余白をたっぷり（100px〜120px）あける */
    padding-bottom: 20px !important; /* 下の余白も合わせて調整 */
    background-color: #fff4e6;        /* クリーム色背景 */
}


/* ご利用までの流れ*/

/* ガイドボックス（対象・料金） */
.guide-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
}

.guide-box {
    background: #fffaf0;
    padding: 35px;
    border-radius: 15px;
    border: 2px dashed #ffd8a8;
}

.guide-header {
    display: flex;
    align-items: center;
    margin-bottom: 15px;
    color: #ff922b;
}

.guide-header i {
    font-size: 1.5rem;
    margin-right: 15px;
}

.guide-header h3 {
    font-size: 1.3rem;
    margin: 0;
}

/* ステップ表示（流れ） */
.step-container {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-top: 50px;
}

.step-item {
    flex: 1;
    background: #ffffff;
    padding: 30px 20px;
    border-radius: 20px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.05);
    text-align: center;
    position: relative;
}

.step-number {
    display: inline-block;
    background: #ff922b;
    color: #ffffff;
    padding: 4px 15px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: bold;
    margin-bottom: 15px;
}

.step-item h4 {
    font-size: 1.1rem;
    margin-bottom: 15px;
    color: #5a4a42;
}

.step-item p {
    font-size: 0.9rem;
    text-align: left;
}

.step-arrow {
    align-self: center;
    padding: 0 10px;
    color: #ffd8a8;
    font-size: 1.5rem;
}

/* レスポンシブ */
@media (max-width: 992px) {
    .step-container {
        flex-direction: column;
        align-items: center;
    }
    .step-arrow {
        transform: rotate(90deg);
        padding: 20px 0;
    }
    .guide-grid {
        grid-template-columns: 1fr;
    }
}

/* --- ご利用までの流れ：モダン再現Ver --- */

.flow-timeline {
    max-width: 850px;
    margin: 80px auto;
    position: relative;
}

/* 縦のライン：極細で少しだけ透過させて「さりげなく」 */
.flow-timeline::before {
    content: "";
    position: absolute;
    left: 35px; /* 数字のセンター */
    top: 10px;
    bottom: 10px;
    width: 1px; /* 線の太さは1pxが一番オシャレです */
    background: #e0d8d0; /* 肌色に近いグレーで上品に */
    z-index: 1;
}

.flow-item {
    display: flex;
    position: relative;
    margin-bottom: 100px; /* 余白を贅沢に使う */
    z-index: 2;
}

.flow-item:last-child {
    margin-bottom: 0;
}

/* 数字：ベタ塗りせず、白背景に枠線だけで「抜け感」を */
.flow-number {
    flex: 0 0 70px;
    height: 70px;
    background: #fff;
    color: #ff922b;
    border: 1px solid #ff922b; /* 囲み線で上品に */
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.6rem;
    font-weight: 300; /* 数字はあえて細めに */
    font-family: 'Poppins', sans-serif; /* 欧文フォントを使うとおしゃれ */
    margin-right: 50px;
    box-shadow: 0 0 0 8px #fff; /* 背景と同化させて線を隠す */
}

/* コンテンツエリア */
.flow-card {
    flex: 1;
    padding-top: 5px;
}

.flow-card h3 {
    font-family: 'Kiwi Maru', serif;
    font-size: 1.6rem;
    color: #5a4a42;
    margin-bottom: 15px;
    letter-spacing: 0.05em;
}

.flow-card > p {
    font-size: 1rem;
    line-height: 1.8;
    color: #8c7b70;
    margin-bottom: 25px;
}

/* 役割分担：ここを一番おしゃれに */
.flow-roles {
    border-top: 1px solid #f0eee8; /* 上にだけ境界線 */
    padding-top: 20px;
}

.role-line {
    display: flex;
    margin-bottom: 12px;
    font-size: 0.95rem;
    line-height: 1.6;
}

/* 「ご家族」などのラベル：背景を塗らずに文字色とウェイトだけで表現 */
.role-line span {
    flex: 0 0 130px;
    color: #ff922b;
    font-weight: 700;
    font-size: 0.85rem;
    letter-spacing: 0.05em;
    position: relative;
}

/* ラベルの後ろに小さな矢印（参考サイト的なあしらい） */
.role-line span::after {
    content: "▶";
    font-size: 0.6rem;
    margin-left: 8px;
    vertical-align: middle;
    opacity: 0.5;
}

.role-line {
    color: #6a5a50;
}

/* スマホ対応 */
@media (max-width: 768px) {
    .flow-timeline::before { left: 25px; }
    .flow-number {
        flex: 0 0 50px;
        height: 50px;
        font-size: 1.2rem;
        margin-right: 25px;
    }
    .flow-card h3 { font-size: 1.3rem; }
    .role-line { flex-direction: column; }
    .role-line span { margin-bottom: 4px; }
}


/* --- ご利用までの流れ：洗練されたカードVer --- */

.flow-timeline {
    max-width: 900px;
    margin: 80px auto;
    position: relative;
    padding-left: 20px;
}

/* 繊細な縦ライン */
.flow-timeline::before {
    content: "";
    position: absolute;
    left: 55px; /* 数字の中心 */
    top: 0;
    bottom: 0;
    width: 1px;
    background: linear-gradient(to bottom, transparent, #ffd8a8 10%, #ffd8a8 90%, transparent);
    z-index: 1;
}

.flow-item {
    display: flex;
    align-items: flex-start;
    margin-bottom: 60px;
    position: relative;
    z-index: 2;
}

/* 左側の数字：二重円で高級感を */
.flow-number {
    flex: 0 0 70px;
    height: 70px;
    background: #fff;
    color: #ff922b;
    border: 1px solid #ff922b;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.4rem;
    font-weight: bold;
    margin-right: 40px;
    position: relative;
    box-shadow: 0 0 0 6px #fff; /* 線との重なりを自然に */
}

/* カード本体：柔らかい影と角丸 */
.flow-card {
    flex: 1;
    background: #ffffff;
    padding: 40px 35px 30px; /* 上を広めにあけてアイコンスペースを確保 */
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(160, 140, 120, 0.1); /* 暖色系の柔らかい影 */
    border: 1px solid rgba(255, 146, 43, 0.1);
    position: relative;
}

/* アイコン：カードの右上に浮かせる（参考イメージ再現） */
.flow-icon {
    position: absolute;
    top: -25px;
    right: 40px;
    width: 50px;
    height: 50px;
    background: #ff922b;
    color: #fff;
    border-radius: 15px; /* 少し角丸の四角でおしゃれに */
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.4rem;
    box-shadow: 0 8px 20px rgba(255, 146, 43, 0.3);
    transform: rotate(5deg); /* 少し傾けて遊び心を */
}

.flow-card h3 {
    font-family: 'Kiwi Maru', serif;
    font-size: 1.4rem;
    color: #5a4a42;
    margin-bottom: 15px;
}

.flow-card > p {
    font-size: 0.95rem;
    line-height: 1.7;
    color: #8c7b70;
    margin-bottom: 25px;
}

/* 役割分担エリア：カード内のセパレーター */
.flow-roles {
    border-top: 1px dashed #eee;
    padding-top: 20px;
}

.role-line {
    display: flex;
    font-size: 0.9rem;
    margin-bottom: 10px;
}

.role-line span {
    flex: 0 0 110px;
    color: #ff922b;
    font-weight: bold;
}

.role-line span::after {
    content: "：";
}

/* スマホ対応 */
@media (max-width: 768px) {
    .flow-timeline::before { left: 45px; }
    .flow-number {
        flex: 0 0 50px;
        height: 50px;
        font-size: 1rem;
        margin-right: 20px;
    }
    .flow-card { padding: 35px 20px 20px; }
    .flow-icon { 
        width: 40px; 
        height: 40px; 
        font-size: 1.1rem;
        top: -20px;
        right: 20px;
    }
    .role-line { flex-direction: column; }
}

/* --- 数字の背景色を交互に変える設定 --- */

/* 偶数番目（2番目、4番目...）の数字の色を反転 */
.flow-item:nth-child(even) .flow-number {
    background: #ff922b; /* オレンジ背景 */
    color: #ffffff;      /* 白文字 */
    border-color: #ff922b;
}

/* 奇数番目（1番目、3番目...）はそのまま（白背景・オレンジ文字） */
.flow-item:nth-child(odd) .flow-number {
    background: #ffffff;
    color: #ff922b;
    border: 1px solid #ff922b;
}


/* サブタイトル（チーム一丸となって〜） */
.flow .section-subtitle {
    display: block;          /* 1行を占有させて中央へ */
    text-align: center;
    font-size: 1.1rem;
    color: #8c7b70;
    margin: 0 auto;          /* 左右の余白を自動にして中央へ */
}


@media (max-width: 768px) {
    .role-line span {
        background: #fff4e6; /* 薄いオレンジ背景 */
        padding: 2px 6px;
        border-radius: 4px;
        margin-right: 8px;
        text-align: center;
        flex: 0 0 85px;
    }
    /* スパンの後の「：」を消すとおしゃれ */
    .role-line span::after { content: ""; }
}

/* --- 役割分担のスマホ調整（絶対に横並びを維持） --- */

.role-line {
    display: flex; /* 親要素をフレックスに */
    flex-direction: row !important; /* 強制的に横並びを維持 */
    align-items: flex-start;
    margin-bottom: 12px;
}

.role-line span {
    /* ラベル側の設定 */
    flex: 0 0 95px !important; /* ラベルの幅を95pxで固定 */
    width: 95px;
    font-weight: bold;
    color: #ff922b;
    font-size: 0.85rem;
    line-height: 1.5;
    margin-right: 10px;
}

/* 内容側のテキストが右側に回り込むように設定 */
.role-line p, 
.role-line div:not(span) {
    flex: 1; /* 残りの幅をすべて使う */
    font-size: 0.85rem;
    line-height: 1.5;
    margin: 0;
}

/* スマホ時のみの微調整 */
@media (max-width: 768px) {
    .role-line {
        padding-left: 0;
    }
    
    .role-line span {
        flex: 0 0 80px !important; /* スマホではラベルをさらに少し詰める */
        width: 80px;
        font-size: 0.75rem; /* 文字サイズを少し下げて1行に収まりやすく */
    }

    .flow-card {
        padding: 35px 20px 20px; /* カード内の余白をスマホ用に最適化 */
    }
}


/* または、タイムライン自体の最後に余白を作る */
.flow-timeline {
    margin-bottom: 0;
    padding-bottom: 0px; /* ここでも微調整可能 */
}