/* 清原整骨院 デモサイト
   配色: iCure 系のティール緑 × 白（おしゃれ寄り）
   構成: okamoto55 系の分かりやすさ（大きい文字・明快な導線・電話番号を目立たせる） */

:root {
    --teal: #2ba8a0;
    --teal-dark: #1e7f79;
    --teal-pale: #e9f6f5;
    --teal-tint: #f4fafa;
    --orange: #f08300;
    --orange-dark: #d97400;
    --ink: #33393e;
    --ink-soft: #5a6268;
    --line: #dce6e5;
    --radius: 14px;
    --shadow: 0 2px 10px rgba(43, 168, 160, 0.12);
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: 90px; }

body {
    font-family: "IBM Plex Sans JP", "Hiragino Kaku Gothic ProN", "Yu Gothic", sans-serif;
    font-size: 18px;            /* お年寄りにも読みやすい大きめ基準 */
    line-height: 1.9;
    color: var(--ink);
    background: #fff;
}

img { max-width: 100%; }
a { color: var(--teal-dark); }

h1, h2, h3, .brand-name, .hero-catch {
    font-family: "Zen Maru Gothic", "IBM Plex Sans JP", sans-serif;
}

.sp-only { display: none; }
@media (max-width: 760px) {
    .sp-only { display: inline; }
    .pc-only { display: none; }
}

/* ===== 上部バー ===== */
.topbar { background: var(--teal-dark); color: #fff; text-align: center; padding: 6px 12px; }
.topbar-hours { font-size: 14px; }

/* ===== ヘッダー ===== */
.header {
    display: flex; align-items: center; justify-content: space-between; gap: 16px;
    max-width: 1100px; margin: 0 auto; padding: 14px 20px; flex-wrap: wrap;
}
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; color: var(--ink); }
.brand-mark {
    width: 56px; height: 56px; border-radius: 50%;
    background: linear-gradient(135deg, var(--teal), var(--teal-dark));
    color: #fff; font-size: 30px; font-weight: 900;
    display: flex; align-items: center; justify-content: center;
    font-family: "Zen Maru Gothic", sans-serif;
}
.brand-text { display: flex; flex-direction: column; }
.brand-name { font-size: 28px; font-weight: 900; line-height: 1.2; }
.brand-sub { font-size: 13px; color: var(--ink-soft); }

.header-actions { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.header-tel { text-decoration: none; color: var(--ink); text-align: right; }
.header-tel-label { display: block; font-size: 12px; color: var(--ink-soft); }
.header-tel-number { font-size: 26px; font-weight: 900; color: var(--teal-dark); letter-spacing: 0.02em; }

.btn-reserve {
    background: var(--orange); color: #fff; text-decoration: none;
    padding: 12px 22px; border-radius: 999px; font-weight: 700; font-size: 17px;
    box-shadow: 0 3px 0 var(--orange-dark); text-align: center; line-height: 1.4;
    transition: transform 0.1s;
}
.btn-reserve:hover { transform: translateY(1px); }
.btn-reserve-sub { display: block; font-size: 11px; font-weight: 500; }

/* ===== グローバルナビ ===== */
.gnav {
    display: flex; justify-content: center; gap: 4px; flex-wrap: wrap;
    background: var(--teal); padding: 0 8px;
    position: sticky; top: 0; z-index: 50;
}
.gnav-item {
    color: #fff; text-decoration: none; font-weight: 700; font-size: 17px;
    padding: 14px 22px; display: flex; align-items: center; gap: 8px;
}
.gnav-item:hover { background: var(--teal-dark); }
.gnav-icon { font-size: 18px; }

/* ===== ヒーロー ===== */
.hero {
    background:
        radial-gradient(ellipse at 80% 10%, rgba(255,255,255,0.5), transparent 55%),
        linear-gradient(150deg, var(--teal-pale) 0%, #d4eeec 55%, #c3e6e3 100%);
    padding: 64px 20px;
}
.hero-inner { max-width: 900px; margin: 0 auto; text-align: center; }
.hero-catch { font-size: 44px; font-weight: 900; color: var(--teal-dark); line-height: 1.4; margin-bottom: 18px; }
.hero-lead { font-size: 19px; margin-bottom: 34px; }

.hero-cta { display: flex; justify-content: center; gap: 20px; flex-wrap: wrap; }
.hero-cta-tel, .hero-cta-web {
    display: flex; flex-direction: column; align-items: center; justify-content: center;
    min-width: 300px; padding: 14px 30px; border-radius: var(--radius);
    text-decoration: none; box-shadow: var(--shadow);
}
.hero-cta-tel { background: #fff; border: 3px solid var(--teal); color: var(--ink); }
.hero-cta-web { background: var(--orange); color: #fff; box-shadow: 0 4px 0 var(--orange-dark); }
.hero-cta-web:hover { transform: translateY(1px); }
.hero-cta-label { font-size: 13px; }
.hero-cta-number { font-size: 30px; font-weight: 900; color: var(--teal-dark); }
.hero-cta-main { font-size: 24px; font-weight: 900; }

/* ===== セクション共通 ===== */
.section { max-width: 1000px; margin: 0 auto; padding: 56px 20px; }
.section-tint { max-width: none; background: var(--teal-tint); }
.section-tint > * { max-width: 1000px; margin-left: auto; margin-right: auto; }

.section-title {
    text-align: center; font-size: 32px; font-weight: 900; margin-bottom: 36px; line-height: 1.4;
}
.section-title-en {
    display: block; font-size: 14px; letter-spacing: 0.25em; color: var(--teal);
    font-family: "IBM Plex Sans JP", sans-serif; font-weight: 700;
}
.section-more { text-align: center; margin-top: 28px; }
.section-more a { font-size: 18px; font-weight: 700; }
.note { font-size: 14px; color: var(--ink-soft); margin-top: 10px; }

/* ===== お悩みカード ===== */
.card-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 20px; }
.care-card {
    background: #fff; border: 2px solid var(--line); border-radius: var(--radius);
    padding: 26px 20px; text-decoration: none; color: var(--ink); text-align: center;
    display: flex; flex-direction: column; gap: 8px; box-shadow: var(--shadow);
    transition: border-color 0.15s, transform 0.15s;
}
.care-card:hover { border-color: var(--teal); transform: translateY(-3px); }
.care-card-icon { font-size: 44px; }
.care-card-name { font-size: 20px; font-weight: 900; color: var(--teal-dark); }
.care-card-desc { font-size: 15px; color: var(--ink-soft); line-height: 1.7; }

/* ===== 選ばれる理由 ===== */
.reason-list { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 24px; }
.reason-item {
    background: #fff; border-radius: var(--radius); padding: 30px 24px 24px;
    box-shadow: var(--shadow); position: relative; text-align: center;
}
.reason-num {
    position: absolute; top: -18px; left: 50%; transform: translateX(-50%);
    width: 40px; height: 40px; border-radius: 50%; background: var(--teal); color: #fff;
    font-weight: 900; font-size: 20px; display: flex; align-items: center; justify-content: center;
}
.reason-item h3 { font-size: 20px; color: var(--teal-dark); margin: 8px 0 10px; }
.reason-item p { font-size: 15.5px; text-align: left; }

/* ===== 来院の流れ ===== */
.flow-list { list-style: none; max-width: 700px; margin: 0 auto; display: flex; flex-direction: column; gap: 14px; }
.flow-list li {
    background: #fff; border: 2px solid var(--line); border-radius: var(--radius);
    padding: 18px 22px 18px 74px; position: relative; font-size: 16.5px;
}
.flow-list li b { font-size: 19px; color: var(--teal-dark); }
.flow-step {
    position: absolute; left: 18px; top: 50%; transform: translateY(-50%);
    width: 40px; height: 40px; border-radius: 50%; background: var(--teal-pale); color: var(--teal-dark);
    font-weight: 900; font-size: 20px; display: flex; align-items: center; justify-content: center;
}

/* ===== SNS ===== */
.sns-lead { text-align: center; margin: -16px 0 30px; }
.sns-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 24px; }
.sns-box {
    background: #fff; border-radius: var(--radius); box-shadow: var(--shadow);
    padding: 20px; display: flex; flex-direction: column; gap: 12px;
}
.sns-box-title { font-size: 20px; color: var(--teal-dark); text-align: center; }
.insta-frame { width: 100%; height: 480px; border: none; border-radius: 8px; }
.sns-fallback { font-size: 13.5px; color: var(--ink-soft); text-align: center; }

/* ===== アクセス・受付時間 ===== */
.access-summary { display: flex; justify-content: center; }
.access-name, .footer-name { font-size: 22px; font-weight: 900; color: var(--teal-dark); }
.access-detail { margin-top: 18px; text-align: center; }

.hours-table, .price-table {
    border-collapse: collapse; margin: 18px auto 0; width: 100%; max-width: 700px; background: #fff;
}
.hours-table th, .hours-table td, .price-table th, .price-table td {
    border: 1px solid var(--line); padding: 12px 14px; text-align: center; font-size: 17px;
}
.hours-table th, .price-table th { background: var(--teal-pale); color: var(--teal-dark); }
.hours-table .ok { color: var(--teal-dark); font-weight: 900; font-size: 20px; }
.hours-table .ng { color: #c0392b; }
.hours-table small { display: block; font-size: 11px; font-weight: 400; }
.price-table .free { color: var(--orange-dark); font-weight: 900; font-size: 20px; }
.hours-table-lg { max-width: 100%; }

/* ===== ページヘッダー（下層） ===== */
.page-header {
    background: linear-gradient(150deg, var(--teal-pale), #d4eeec);
    text-align: center; padding: 44px 20px;
}
.page-title { font-size: 36px; font-weight: 900; color: var(--teal-dark); }
.page-lead { margin-top: 8px; font-size: 17px; }

/* ===== 施術詳細 ===== */
.service-detail { display: flex; gap: 24px; align-items: flex-start; max-width: 800px; margin: 0 auto; }
.service-icon { font-size: 60px; flex-shrink: 0; }
.service-detail p { margin-bottom: 10px; }

/* ===== 院内写真（プレースホルダー） ===== */
.photo-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 20px; }
.photo-card { text-align: center; }
.photo-ph {
    background: linear-gradient(135deg, var(--teal-pale), #d4eeec);
    border-radius: var(--radius); height: 180px; display: flex; align-items: center; justify-content: center;
    font-size: 22px; font-weight: 700; color: var(--teal-dark);
}
.photo-card figcaption { font-size: 14.5px; color: var(--ink-soft); margin-top: 8px; }

/* ===== 地図 ===== */
.map-frame-wrap { border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); }
.map-frame { width: 100%; height: 420px; border: none; display: block; }

/* ===== FAQ ===== */
.faq-list { max-width: 760px; margin: 0 auto; display: flex; flex-direction: column; gap: 18px; }
.faq-item { background: #fff; border: 2px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.faq-item dt {
    background: var(--teal-pale); font-weight: 900; font-size: 19px; color: var(--teal-dark);
    padding: 14px 20px; display: flex; gap: 12px; align-items: baseline;
}
.faq-item dd { padding: 16px 20px; display: flex; gap: 12px; align-items: baseline; }
.faq-q, .faq-a {
    flex-shrink: 0; width: 32px; height: 32px; border-radius: 50%;
    display: inline-flex; align-items: center; justify-content: center;
    font-weight: 900; font-size: 17px; align-self: flex-start;
}
.faq-q { background: var(--teal); color: #fff; }
.faq-a { background: var(--orange); color: #fff; }

/* ===== CTAバンド ===== */
.cta-band {
    background: linear-gradient(135deg, var(--teal), var(--teal-dark));
    text-align: center; padding: 44px 20px; margin-top: 20px;
}
.cta-band-text { color: #fff; font-size: 24px; font-weight: 900; margin-bottom: 24px; }

/* ===== フッター ===== */
.footer { background: #2e3a3d; color: #dfe7e6; padding: 44px 20px 80px; }
.footer a { color: #9fd8d3; }
.footer-inner {
    max-width: 1000px; margin: 0 auto; display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 30px;
}
.footer-col { display: flex; flex-direction: column; gap: 6px; font-size: 15px; }
.footer-name { color: #fff; }
.footer-heading { font-weight: 700; color: #fff; border-bottom: 1px solid #4a5a5d; padding-bottom: 6px; }
.footer-tel { font-size: 20px; font-weight: 900; }
.footer-hours td { padding: 2px 10px 2px 0; font-size: 14.5px; vertical-align: top; }
.footer-copy { text-align: center; margin-top: 30px; font-size: 13px; color: #9aa8a7; }

/* ===== モバイル固定CTA ===== */
.mobile-cta { display: none; }

/* ===== Blazor エラーUI（既定IDを流用） ===== */
#blazor-error-ui { display: none; position: fixed; bottom: 0; left: 0; right: 0; background: #fff3cd; padding: 12px; z-index: 999; }

/* ===== レスポンシブ ===== */
@media (max-width: 760px) {
    body { font-size: 16.5px; }
    .header { flex-direction: column; align-items: center; text-align: center; }
    .header-tel { display: none; }        /* モバイルは下部固定CTAに集約 */
    .btn-reserve { display: none; }
    .gnav-item { font-size: 14px; padding: 11px 10px; gap: 4px; }
    .hero { padding: 44px 16px; }
    .hero-catch { font-size: 30px; }
    .hero-lead { font-size: 16.5px; }
    .hero-cta-tel, .hero-cta-web { min-width: 260px; width: 100%; }
    .section { padding: 40px 16px; }
    .section-title { font-size: 25px; }
    .service-detail { flex-direction: column; align-items: center; gap: 10px; }
    .hours-table th, .hours-table td { padding: 8px 6px; font-size: 14px; }

    .mobile-cta {
        display: flex; position: fixed; bottom: 0; left: 0; right: 0; z-index: 100;
        box-shadow: 0 -3px 12px rgba(0,0,0,0.18);
    }
    .mobile-cta a {
        flex: 1; text-align: center; padding: 15px 8px; font-size: 17px; font-weight: 900;
        text-decoration: none; color: #fff;
    }
    .mobile-cta-tel { background: var(--teal-dark); }
    .mobile-cta-web { background: var(--orange); }
}
