/* =========================================
   general.css (SP only)
   - ベース #FFFFFF
   - アクセント #4A99D7
   - メイン(薄) #edf9ff
   - 参考CSSの h2/h3/page_links/frame を踏襲（スコープは  内）
========================================= */





/* general.css / lifestyle.css に入れてOK */
body.is-lp header,
body.is-lp footer,
body.is-lp #mainvisual,
body.is-lp .nav_wrap,
body.is-lp .sp_under_nav {
    display: none !important;
}

html {
    margin-top: 0 !important;
    padding: 0 !important;
}

html,
body {
    margin: 0 !important;
    padding: 0 !important;
}



/* ---- Scope Root ---- */
.mobile-wrapper {
    --base-color: #ffffff;
    --main-color: #4a99d7;
    /* 参考CSSの var(--main-color) を“濃い青”に寄せる */
    --sub-color: #F27A9C;
    /* 参考CSSの var(--sub-color) に合わせる */
    --bg-color: #ffffff;
    --pink: #F27A9C;
    --ink: #0b1d2a;
    --muted: rgba(11, 29, 42, 0.68);
    --line: #4A99D7;

    --radius: 14px;
    --radius-sm: 10px;

    --shadow: 0 14px 30px rgba(11, 29, 42, 0.08);
    --shadow-soft: 0 10px 22px rgba(11, 29, 42, 0.06);

    --font-jp: -apple-system, BlinkMacSystemFont, "Segoe UI",
        "Hiragino Sans", "Noto Sans JP", "Yu Gothic", "Meiryo", sans-serif;

    background: var(--bg-color);
    color: var(--ink);
    font-family: var(--font-jp);
    line-height: 1.75;
    -webkit-text-size-adjust: 100%;
    min-height: 100vh;
}

/* ---- Reset-ish ---- */
*,
*::before,
*::after {
    box-sizing: border-box;
}

img {
    max-width: 100%;
    height: auto;
}

a {
    color: inherit;
    text-decoration: none;
}

a:focus-visible,
summary:focus-visible,
button:focus-visible {
    outline: 4px solid rgba(74, 153, 215, 0.35);
    outline-offset: 2px;
    border-radius: 10px;
}

@media (prefers-reduced-motion: reduce) {
    * {
        transition: none !important;
        animation: none !important;
        scroll-behavior: auto !important;
    }
}

/* ---- Layout ---- */
.container {
    margin: 0;
    padding: 0;
}

.section {
    padding: 28px 0;
    margin: 1rem;
}

/* =========================================
   参考CSS（page_links / headings / frame02）
   ※  内にスコープ
========================================= */

/* page_links */
.page_links {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    gap: 10px;
}

.page_links li {
    margin: 0;
    padding: 0;
}

.page_links li a {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    height: 100%;
    padding: 10px 15px;
    background: transparent;
    border: 1px solid var(--sub-color);
    color: var(--sub-color);
    font-size: 1rem;
    text-align: center;
    transition: color 0.2s, background 0.2s, transform 0.06s;
    font-family: var(--font-jp);
    font-weight: 500;
    font-style: normal;
    border-radius: 10px;
}

.page_links li a:active {
    transform: translateY(1px);
}

.page_links li a:hover {
    background: rgba(74, 153, 215, 0.08);
}

/* headings */
h2:first-of-type,
h2+h3,
h3+h4,
h4+h5,
h5+h6 {
    margin-top: 0;
}

h2,
h3,
h4,
h5,
h6 {
    position: relative;
    z-index: 1;
    margin-top: 50px;
    line-height: 1.75;
    font-family: var(--font-jp);
    font-weight: 500;
    font-style: normal;
}

/* 参考CSS h2 */
h2 {
    padding: 50px 0 0;
    background: url(../images/logo_icon_colored.png) no-repeat center top / 48px auto;
    font-size: 1rem;
    letter-spacing: .1em;
    text-align: center;
    padding-left: 6px;
    margin-bottom: 2rem;
}

/* 参考CSS h3 */
h3 {
    display: inline-block;
    margin-bottom: 25px;
    padding: 10px 24px 11px;
    color: #ffffff;
    font-size: 1rem;
    text-align: left;
}

/* frame02 */
.frame02 {
    padding: 20px 25px;
    background: var(--bg-color);
    border: 1px solid var(--line);
    border-radius: var(--radius);
}

/* =========================================
   FV（ファーストビュー）
========================================= */

/* --- スマホ（デフォルト）--- */
/* 背景画像＋FV画像を画面幅いっぱいに広げる */
.fv-section {
    position: relative;
    display: flex;
    width: 100vw;
    /* スマホでは画面幅いっぱい */
    justify-content: center;
    align-items: center;
    overflow: hidden;
    margin-bottom: 1.5rem;
}


/* --- タブレット以上（PC含む）--- */
@media (min-width: 768px) {
    .mobile-wrapper.naikalp .fv-section {
        width: 100%;
        /* main の max-width に合わせる */
        margin-left: auto;
        /* 念のため整列 */
        margin-right: auto;
    }
}


.fv-img {
    max-width: 100%;
    height: auto;
    max-height: 100%;
}


.introduction-section {
    margin: 1rem;
}

.intro-sub {
    display: flex;
    justify-content: flex-start;
    align-items: center;
    padding: 10px 15px;
    background: transparent;
    border: 1px solid var(--sub-color);
    color: var(--sub-color);
    font-size: 1rem;
    text-align: left;
    font-family: var(--font-jp);
    font-weight: 500;
    font-style: normal;
    border-radius: 10px;
    margin-bottom: 1rem;
}

/* CTA全体 */
.intro-cta {
    display: flex;
    gap: 1rem;
    margin: 16px 0;
}

/* 共通ボタン */
.intro-cta a {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 14px 0;
    font-size: 1rem;
    font-weight: 600;
    text-decoration: none;
    border-radius: 999px;
    /* 丸みを強く */
    transition: opacity 0.2s ease, transform 0.1s ease;
}

/* LINEボタン */
.btn-line {
    background-color: #06C755;
    color: #fff;
}

/* Webボタン */
.btn-web {
    background-color: var(--main-color);
    color: #fff;
}

/* タップ時のフィードバック */
.intro-cta a:active {
    transform: scale(0.97);
    opacity: 0.85;
}


.intro-note {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 10px 15px;
    background: transparent;
    border: 1px solid var(--sub-color);
    color: var(--sub-color);
    font-size: 1rem;
    text-align: left;
    font-family: var(--font-jp);
    font-weight: 500;
    font-style: normal;
    border-radius: 10px;
    margin-top: 1rem;
}

/* =========================================
セクション共通（見出し・リード）
========================================= */

.section-title {
    /* h2 の参考CSSが強いので、クラスは微調整だけ */
    font-size: 1.5rem;
}

.section-lead {
    margin: 0 0 14px;
    color: var(--muted);
    font-size: 1rem;
    line-height: 1.75;
}

/* =========================================
   02 症状チェック
========================================= */

.symptom-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

.card-symptom {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    height: 100%;
    padding: 10px 15px;
    background: transparent;
    border: 1px solid var(--main-color);
    color: var(--main-color);
    font-size: 1rem;
    text-align: center;
    transition: color 0.2s, ;
    font-family: var(--font-jp);
    font-weight: 500;
    font-style: normal;
    border-radius: 10px;
    flex-direction: column;
}

/* 症状テキスト */
.symptom-text {
    margin: 0;
    font-size: 1rem;
    line-height: 1.6;
    font-weight: 600;
}

/* ピクトグラム画像 */
.pictogram {
    width: 100%;
    /* 必要に応じて調整 */
    height: auto;
    display: block;
}


/* =========================================
   03 特徴
========================================= */

.feature-stack {
    display: grid;
    gap: 2rem;
    padding: 1rem;
}

.card-feature {
    background: #fff;
    border-radius: var(--radius);
    border: 1px solid var(--line);

    overflow: hidden;
}

.feature-title {
    /* h3 の参考CSSを活かす（display:inline-block のままだと折返しが崩れるので上書き） */
    display: block;
    margin: 0;
    width: 100%;
    padding: 0.5rem 1rem 0.5rem 1rem;
    box-sizing: border-box;
    font-size: 1.2rem;
    background: linear-gradient(45deg, #55c1ff, var(--main-color));
}

.feature-desc {
    color: var(--muted);
    font-size: 1rem;
    line-height: 1.75;
    padding: 1rem;
}

.map-wrapper {
    aspect-ratio: 1 / 1;
    /* ← 横幅基準で高さ決定 */
    border-radius: 8px;
    overflow: hidden;
    margin: 0 1rem 1rem 1rem;
}

.map-wrapper iframe {
    width: 100%;
    height: 100%;
}

/* =========================================
   feature list（医師資格）
========================================= */

.feature-list {
    list-style: none;
    margin: 0.5rem 0 1rem;
    padding: 0 2rem 1rem;
    box-sizing: border-box;

    display: grid;
    gap: 0.4rem;
}

.feature-list li {
    position: relative;
    padding-left: 1.2em;

    font-size: 0.95rem;
    line-height: 1.6;
    color: var(--muted);
}

/* シンプルなドット（医療サイト向け） */
.feature-list li::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0.55em;

    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--line);
}

/* =========================================
   04 診療の流れ
========================================= */

.flow {
    display: grid;
    gap: 2rem;
}

/* 外側：三角形用 */
.flow-item {
    position: relative;
}

/* 内側：カード本体 */
.flow-item-inner {
    background: #fff;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    overflow: hidden;
    /* ← ここで角丸を守る */
}

/* タイトル内を横並びにする */
.flow-title {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    width: 100%;
    box-sizing: border-box;
    margin: 0;
    padding: 1.5rem 1.5rem 0.5rem 1.5rem;
    background-color: var(--base-color) !important;
}

/* 丸で囲う数字 */
.flow-step {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    width: 2.1em;
    height: 2.1em;
    border-radius: 999px;

    border: 2px solid var(--line);
    background: #fff;

    font-weight: 700;
    font-size: 1.2rem;
    line-height: 1;
    flex: 0 0 auto;
    color: var(--main-color);
}

/* タイトル文字 */
.flow-title-text {
    display: inline-block;
    line-height: 1.2;
    color: var(--main-color);
    font-size: 1.2rem;
}

/* テキスト */
.flow-text {
    padding: 0.5rem 1.5rem 1.5rem 1.5rem;
    color: var(--muted);
    font-size: 1rem;
    line-height: 1.75;
}

/* ▼ 下向き三角（最後以外） */
.flow-item:not(:last-child)::after {
    content: "";
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    bottom: -1.5rem;

    width: 0;
    height: 0;
    border-left: 12px solid transparent;
    border-right: 12px solid transparent;
    border-top: 14px solid var(--line);

    pointer-events: none;
    z-index: 2;
}



/* =========================================
   05 FAQ
========================================= */

/* ========== FAQ（参考CSSの「flow」系デザインを踏襲） ========== */


/* FAQ全体 */
.faq {
    margin-top: 24px;
    display: grid;
    gap: 14px;
}

/* 各FAQカード */
.faq-item {
    background: #fff;
    border-radius: 12px;
    border: 1px solid #e6edf3;
    overflow: hidden;
    transition: box-shadow 0.25s ease, border-color 0.25s ease;
}

/* 開いている状態 */
.faq-item[open] {
    border-color: var(--main-color);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.06);
}

/* 質問行 */
.faq-item summary {
    position: relative;
    padding: 16px 44px 16px 16px;
    font-size: 1rem;
    font-weight: 600;
    line-height: 1.6;
    cursor: pointer;
    list-style: none;
    color: #222;
}

/* デフォルト三角を消す */
.faq-item summary::-webkit-details-marker {
    display: none;
}

/* 開閉アイコン（＋／−） */
.faq-item summary::after {
    content: "+";
    position: absolute;
    right: 16px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 1rem;
    font-weight: 500;
    color: var(--main-color);
    transition: transform 0.2s ease;
}

/* open時は−に */
.faq-item[open] summary::after {
    content: "−";
}

/* 回答部分 */
.faq-body {
    padding: 0 16px 16px;
    font-size: 1rem;
    line-height: 1.8;
    color: #444;
}

/* A. を少し目立たせる */
.faq-body::first-letter {
    font-weight: 600;
    color: var(--main-color);
}

/* 強調文字 */
.faq-item summary strong {
    color: var(--main-color);
    font-weight: 700;
}

/* =========================================
   06 CTA
========================================= */

.cta-section {
    margin-top: 10px;
    padding: 1rem;
    margin: 1rem;
}

.cta-inner {
    display: grid;
    gap: 12px;
}

.cta-title {
    /* h2 の参考CSSをCTAでは軽くする */
    margin: 0 0 2px;
    padding: 0;
    background: none;
    letter-spacing: 0.04em;
    font-size: 1rem;
    text-align: center;
}

.cta-lead {
    margin: 0;
    text-align: center;
    color: var(--muted);
    font-size: 1rem;
    line-height: 1.75;
}

.cta-buttons {
    display: grid;
    gap: 10px;
    margin-top: 4px;
}

/* セクション全体 */
.clinic-overview {
    margin-top: 48px;
}

/* 見出し */
.clinic-overview__title {
    text-align: center;
    font-size: 1rem;
    font-weight: 700;
    margin-bottom: 24px;
    letter-spacing: 0.05em;
}

/* 情報ブロック */
.clinic-info {
    background: #fff;
    font-size: 1rem;
    border: 3px solid var(--main-color);
    border-radius: 10px;
    padding: 2rem;
}

/* 定義リスト */
.clinic-info__list {
    display: flex;
    flex-direction: column;
}

/* 各項目 */
.clinic-info__item {
    padding: 16px 0;
    border-bottom: 1px dashed #cfe6f5;
}

/* 最後の線を消す */
.clinic-info__item:last-child {
    border-bottom: none;
}

/* ラベル */
.clinic-info__item dt {
    font-size: 1rem;
    font-weight: 600;
    color: #222;
    margin-bottom: 6px;
}

/* 内容 */
.clinic-info__item dd {
    margin: 0;
    font-size: 1rem;
    line-height: 1.7;
    color: #555;
}

/* 電話番号リンク */
.clinic-info__tel {
    color: var(--main-color);
    text-decoration: none;
    font-weight: 600;
}

/* タップ時のフィードバック */
.clinic-info__tel:active {
    opacity: 0.7;
}



/* =========================================
   Floating CTA（追従CTA）
   画面下固定・横並び・丸みデザイン
========================================= */

/* 追従エリア本体 */
.floating-cta {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 9999;

    display: flex;
    gap: 0.75rem;
    padding: 0.75rem 1rem;
    background: transparent;
}

.floating-cta a {
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.12);
    border-radius: 6px;
    /* 任意：角丸 */
}


/* ボタン共通（追従用） */
.floating-cta .btn-floating {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;

    padding: 0.95rem 1rem;
    border-radius: 999px;
    text-decoration: none;
    font-weight: 700;
    letter-spacing: 0.02em;
    border: 1px solid transparent;
    font-size: 1rem;
    white-space: nowrap;

    -webkit-tap-highlight-color: transparent;
    user-select: none;
    transition: opacity 0.2s ease, transform 0.1s ease;
}

/* ---- 既存の色設計を継承 ---- */

/* LINE：緑 */
.floating-cta .btn-line {
    background-color: #06C755;
    border-color: rgba(6, 199, 85, 0.45);
    color: #fff;
}

/* Web：青 */
.floating-cta .btn-web {
    background-color: var(--main-color, #0077b6);
    border-color: rgba(0, 119, 182, 0.45);
    color: #fff;
}

/* タップ時のフィードバック */
.floating-cta .btn-floating:active {
    transform: translateY(1px);
    opacity: 0.85;
}

/* ---- PCでは浮かせる ---- */
@media screen and (min-width: 768px) {
    .floating-cta {
        max-width: 420px;
        margin: 0 auto;
        bottom: 20px;

        border-radius: 999px;
        box-shadow: 0 4px 14px rgba(0, 0, 0, 0.12);
        padding: 0.75rem;
    }

    .floating-cta {
        box-shadow: none;
    }
}


/* PC幅では中央に寄せて白余白を確保 */
@media (min-width: 768px) {
    .mobile-wrapper.naikalp {
        max-width: 680px;
        /* iPad縦くらいの幅、好みで調整 */
        margin: 0 auto;
        /* 中央寄せ */
        background: #fff;
        /* 中央部分が白く見えるように */
    }
}

@media (min-width: 768px) {

    /* 本文は中央に */
    .mobile-wrapper.naikalp {
        max-width: 680px;
        margin: 0 auto;
        background: #fff;
    }

    /* セクション内のレイアウト要素も本文幅に合わせる */
    .mobile-wrapper.naikalp .container,
    .mobile-wrapper.naikalp .section,
    .mobile-wrapper.naikalp .faq,
    .mobile-wrapper.naikalp .feature-stack,
    .mobile-wrapper.naikalp .flow {
        max-width: 680px;
        margin: 0 auto;
        padding-left: 20px;
        padding-right: 20px;
    }
}