/*!
 * shukyaku-generator-lp / lpmaker-core.css
 * 共通スタイル。配色は CSS 変数 (--sg-lp-base-color, --sg-lp-cta-color) で
 * プリセットCSSから上書きされる。
 *
 * テーマCSSとの衝突を抑えるため、すべてのセレクタは .sg-lpmaker （body class）または
 * .sg-lp-* で限定し、テーマの h1/h2/p に直接スタイルを当てない。
 */

.sg-lpmaker {
    --sg-lp-base-color: #1A237E;
    --sg-lp-cta-color:  #B71C1C;
    --sg-lp-text-color: #222;
    --sg-lp-text-muted: #555;
    --sg-lp-bg:         #ffffff;
    --sg-lp-bg-alt:     #f6f8fb;
    --sg-lp-card-bg:    #ffffff;
    --sg-lp-card-border:#e8eaef;
    --sg-lp-font-stack: "Noto Sans JP", "Hiragino Kaku Gothic ProN", Meiryo, sans-serif;
    --sg-lp-radius:     12px;

    /* v1.9.6: 影で浮かせるのをやめた。層はベタ面と1pxの実線ボーダーで作る。
       変数は互換のため残す（プリセットやインラインCSSが参照しても壊れないように）。
       実際の box-shadow 宣言はこのファイルから撤去済み。残るのは .sg-lp-sticky-cta 系だけ
       （下部固定バーは「浮いていること」が機能上の意味を持つので例外）。 */
    --sg-lp-shadow:     none;

    /* v1.9.6: 動きの人格を1本に統一する。
       以降このファイルの transition / animation はすべてこの緩急を使う。
       🔴 2本目・3本目を足さないこと。増えた瞬間に統一感が壊れる。 */
    --sg-lp-ease:       cubic-bezier(0.19, 1, 0.22, 1);   /* 勢いよく出て、すーっと止まる */
}

/* ========== ベース ========== */
.sg-lp-main {
    color: var(--sg-lp-text-color);
    font-family: var(--sg-lp-font-stack);
    line-height: 1.85;
    letter-spacing: 0.02em;
}
.sg-lp-main--standard {
    margin: 0;
    padding: 0;
    background: #ffffff;
}
.sg-lp-main--circular {
    margin: 0 auto;
    padding: 0;
}
.sg-lp-wrapper {
    width: 100%;
    overflow-x: hidden;
}
.sg-lp-section {
    padding: clamp(48px, 8vw, 96px) 0;
}
.sg-lp-bg     { background: var(--sg-lp-bg); }
.sg-lp-bg-alt { background: var(--sg-lp-bg-alt); }

.sg-lp-container {
    max-width: 960px;
    margin: 0 auto;
    padding: 0 20px;
}

/* ========== 見出し ========== */
.sg-lp-heading {
    font-size: clamp(22px, 4vw, 32px);
    color: var(--sg-lp-base-color);
    text-align: center;
    margin: 0 0 28px;
    padding: 0 0 14px;
    position: relative;
    line-height: 1.5;
    font-weight: 700;
}
.sg-lp-heading::after {
    content: "";
    display: block;
    width: 64px;
    height: 4px;
    background: var(--sg-lp-cta-color);
    margin: 12px auto 0;
    border-radius: 2px;
}
.sg-lp-lead {
    text-align: center;
    color: var(--sg-lp-text-muted);
    max-width: 720px;
    margin: 0 auto 36px;
    font-size: clamp(15px, 2.4vw, 16px);
}

/* ========== HERO ========== */
.sg-lp-section--hero { padding: 0; }
.sg-lp-hero {
    position: relative;
    width: 100%;
}
.sg-lp-hero__media img {
    display: block;
    width: 100%;
    height: auto;
    margin: 0;
}
.sg-lp-hero__copy {
    max-width: 960px;
    margin: -40px auto 0;
    padding: 24px 24px 0;
    position: relative;
    background: transparent;
}
.sg-lp-hero__headline {
    font-size: clamp(22px, 4.4vw, 36px);
    color: var(--sg-lp-base-color);
    margin: 0 0 12px;
    line-height: 1.35;
    font-weight: 800;
}
.sg-lp-hero__sub {
    color: var(--sg-lp-text-muted);
    margin: 0;
    font-size: clamp(15px, 2.6vw, 17px);
}
.sg-lp-hero__cta {
    text-align: center;
    margin: 32px 0;
}

/* ========== CTA Button ========== */
/* v1.9.6: 「浮き上がって影が濃くなる」＝最もありふれたホバーをやめ、
   右端の円が左へ伸びてボタン全体を飲み込む動きに置き換える。

   設計の肝は、2つの時間をわざとズラすこと。
     - 円 → 全幅 : .5s  右から左へ一気に伸びて、すっと止まる
     - 文字色    : .1s  **背景が届く前に**変える。遅れると一瞬読めなくなる
   全部同じ時間にすると「ただ色が変わるボタン」になる。ここがこの部品の価値。

   文字色だけ linear なのは意図的。0.1秒の色補間は緩急を付けても知覚できず、
   要件は「背景より先に着く」ことだけなので、動きの統一（--sg-lp-ease）の対象外とする。

   円の色を rgba(0,0,0,.18) にしているのは、店舗がどんなCTA色を選んでも成立させるため。
   ブランド色に依存しないので、5プリセット＋AIおまかせ（既定色）すべてでそのまま動く。 */
.sg-lp-cta-btn {
    display: inline-block;
    position: relative;
    z-index: 0;                     /* 重ね合わせの文脈を作る（::after を背面に置くため） */
    overflow: hidden;
    background: var(--sg-lp-cta-color);
    color: #ffffff !important;
    text-decoration: none !important;
    padding: 18px 60px 18px 44px;   /* 右だけ円のぶん広げる */
    border-radius: 999px;
    font-weight: 700;
    font-size: clamp(15px, 2.6vw, 18px);
    transition: color .1s linear;
    border: none;
}
.sg-lp-cta-btn::after {
    content: "";
    position: absolute;
    right: 6px;
    top: 50%;
    transform: translateY(-50%);
    width: 34px;
    height: 34px;                   /* width と同値＝正円 */
    border-radius: 999px;
    background: rgba(0, 0, 0, .18);
    z-index: -1;                    /* 文字の背面に回る。親の z-index:0 が受け止めるので外へは抜けない */
    transition: width .5s var(--sg-lp-ease);
}
.sg-lp-cta-btn:hover::after { width: calc(100% - 12px); }
.sg-lp-cta-btn:hover { color: #ffffff !important; }
.sg-lp-cta-btn--lg {
    /* padding はショートハンド。ここで書き直さないと上の padding-right が 56px に戻る */
    padding: 22px 72px 22px 56px;
    font-size: clamp(16px, 3vw, 20px);
}
.sg-lp-cta-wrap {
    text-align: center;
    margin-top: 24px;
}

/* ========== Empathy ========== */
.sg-lp-pain-list {
    list-style: none;
    padding: 0;
    margin: 0 0 24px;
    display: grid;
    gap: 16px;
    grid-template-columns: 1fr;
}
@media (min-width: 640px) {
    .sg-lp-pain-list { grid-template-columns: repeat(3, 1fr); }
}
.sg-lp-pain-list__item {
    background: var(--sg-lp-card-bg);
    border: 1px solid var(--sg-lp-card-border);
    border-radius: var(--sg-lp-radius);
    padding: 20px;
    display: flex;
    gap: 12px;
    align-items: flex-start;
}
.sg-lp-pain-list__icon {
    flex: 0 0 auto;
    font-size: 26px;
    line-height: 1;
}
.sg-lp-pain-list__text {
    flex: 1 1 auto;
    font-size: 15px;
    color: var(--sg-lp-text-color);
}
.sg-lp-conclusion {
    text-align: center;
    font-weight: 700;
    color: var(--sg-lp-base-color);
    font-size: clamp(16px, 2.8vw, 18px);
    margin: 16px 0 0;
}

/* ========== USP ========== */
.sg-lp-usp-list {
    list-style: none;
    counter-reset: usp;
    padding: 0;
    margin: 0;
    display: grid;
    gap: 18px;
}
.sg-lp-usp-item {
    display: grid;
    grid-template-columns: 64px 1fr;
    gap: 16px;
    background: var(--sg-lp-card-bg);
    border: 1px solid var(--sg-lp-card-border);
    border-radius: var(--sg-lp-radius);
    padding: 24px;
    align-items: start;
}
.sg-lp-usp-item__num {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: var(--sg-lp-base-color);
    color: #fff;
    font-weight: 800;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
}
.sg-lp-usp-item__title {
    font-size: clamp(17px, 2.6vw, 20px);
    color: var(--sg-lp-base-color);
    margin: 0 0 8px;
}
.sg-lp-usp-item__body { margin: 0 0 8px; font-size: 15px; }

/* ========== Voice ========== */
.sg-lp-voice-grid {
    display: grid;
    gap: 18px;
    grid-template-columns: 1fr;
}
@media (min-width: 720px) {
    .sg-lp-voice-grid { grid-template-columns: repeat(2, 1fr); }
}
.sg-lp-voice-card {
    background: var(--sg-lp-card-bg);
    border: 1px solid var(--sg-lp-card-border);
    border-radius: var(--sg-lp-radius);
    padding: 22px;
}
.sg-lp-voice-card__meta {
    display: flex;
    justify-content: space-between;
    border-bottom: 1px solid var(--sg-lp-card-border);
    padding-bottom: 10px;
    margin-bottom: 12px;
    gap: 8px;
}
.sg-lp-voice-card__name { font-weight: 700; color: var(--sg-lp-base-color); font-size: 14px; }
.sg-lp-voice-card__rating { color: #f5a623; font-size: 16px; letter-spacing: 1px; }
.sg-lp-voice-card__title { font-size: 16px; color: var(--sg-lp-cta-color); margin: 0 0 10px; }
.sg-lp-voice-card__body { margin: 0 0 10px; font-size: 14.5px; }

/* ========== Endorsement ========== */
.sg-lp-endorse-grid {
    display: grid;
    gap: 18px;
    grid-template-columns: 1fr;
}
.sg-lp-endorse-card {
    background: var(--sg-lp-card-bg);
    border: 1px solid var(--sg-lp-card-border);
    border-radius: var(--sg-lp-radius);
    padding: 22px;
    display: grid;
    grid-template-columns: 1fr;
    gap: 14px;
    align-items: start;
}
@media (min-width: 720px) {
    .sg-lp-endorse-card { grid-template-columns: 120px 1fr; }
}
.sg-lp-endorse-card__photo {
    width: 120px;
    height: 120px;
    object-fit: cover;
    border-radius: 50%;
    border: 4px solid var(--sg-lp-bg-alt);
}
.sg-lp-endorse-card__title {
    color: var(--sg-lp-base-color);
    font-size: 18px;
    margin: 0 0 10px;
    border-left: 5px solid var(--sg-lp-cta-color);
    padding-left: 12px;
}
.sg-lp-endorse-card__credit { margin: 12px 0 0; font-size: 14px; color: var(--sg-lp-text-muted); }
.sg-lp-endorse-card__role { background: var(--sg-lp-base-color); color: #fff; padding: 2px 10px; border-radius: 999px; margin-right: 8px; font-size: 12px; }
.sg-lp-endorse-card__name { font-weight: 700; }
/* v1.9.5: 推薦者の写真が無いカードの崩れを直す。
   .sg-lp-endorse-card は 720px 以上で `120px 1fr`（写真前提の2カラム）。
   <img> が出ない（photo_url が空）と、本文が1列目＝**120px の写真枠**に落ちて
   極端に細くなる（実測: カード幅960px に対して本文幅120px = 13%）。
   手動指定の推薦者は写真が任意なので、この状態は普通に起こる。
   :first-child は「写真が無いときだけ」当たる＝写真ありのカードには影響しない
   （実測: 写真ありは 780px / 81% のまま不変）。 */
.sg-lp-endorse-card__body:first-child { grid-column: 1 / -1; }

/* ========== Profile ========== */
.sg-lp-profile {
    background: var(--sg-lp-card-bg);
    border: 1px solid var(--sg-lp-card-border);
    border-radius: var(--sg-lp-radius);
    padding: 28px;
    text-align: center;
}
.sg-lp-profile__photo {
    width: 160px;
    height: 160px;
    object-fit: cover;
    border-radius: 50%;
    margin: 0 auto 16px;
    display: block;
    /* v1.9.6: 影を外したので、白いリングでは台紙（白いカード）と見分けが付かない。
       推薦者・著者の写真と同じ扱いに揃える。 */
    border: 5px solid var(--sg-lp-bg-alt);
}
.sg-lp-profile__name { margin: 0 0 16px; color: var(--sg-lp-base-color); font-size: 20px; }
.sg-lp-profile__paragraph { text-align: left; margin: 0 0 14px; }
.sg-lp-profile__subhead {
    font-size: 16px;
    color: var(--sg-lp-base-color);
    margin: 22px 0 10px;
    text-align: left;
    border-bottom: 2px dotted var(--sg-lp-card-border);
    padding-bottom: 6px;
}
.sg-lp-profile__career ul, .sg-lp-profile__specialty ul {
    text-align: left;
    padding-left: 20px;
    margin: 0;
}
.sg-lp-profile__career li, .sg-lp-profile__specialty li { margin-bottom: 6px; }

/* ========== Price ========== */
.sg-lp-commitments {
    list-style: none;
    padding: 0;
    margin: 0 0 24px;
    display: grid;
    gap: 14px;
}
.sg-lp-commitments li {
    background: var(--sg-lp-card-bg);
    border: 1px solid var(--sg-lp-card-border);
    border-radius: var(--sg-lp-radius);
    padding: 18px 22px;
}
.sg-lp-commitments li strong {
    display: block;
    color: var(--sg-lp-base-color);
    margin-bottom: 6px;
    font-size: 16px;
}
.sg-lp-commitments li p { margin: 0; font-size: 14.5px; }
.sg-lp-price-info { margin: 12px 0; font-size: 14.5px; }

/* ========== FAQ ========== */
.sg-lp-faq-list {
    display: grid;
    gap: 12px;
}
.sg-lp-faq-item {
    background: var(--sg-lp-card-bg);
    border: 1px solid var(--sg-lp-card-border);
    border-radius: var(--sg-lp-radius);
    padding: 18px 22px;
}
.sg-lp-faq-item[open] { border-color: var(--sg-lp-base-color); }
.sg-lp-faq-item__q {
    font-weight: 700;
    color: var(--sg-lp-base-color);
    cursor: pointer;
    list-style: none;
    position: relative;
    padding-right: 24px;
}
.sg-lp-faq-item__q::-webkit-details-marker { display: none; }
.sg-lp-faq-item__q::after {
    content: "+";
    position: absolute;
    right: 4px;
    top: 0;
    color: var(--sg-lp-cta-color);
    font-size: 22px;
    line-height: 1;
}
.sg-lp-faq-item[open] .sg-lp-faq-item__q::after { content: "−"; }
.sg-lp-faq-item__a { margin-top: 10px; }
.sg-lp-faq-item__a p { margin: 0 0 8px; font-size: 14.5px; }

/* ========== Related ========== */
.sg-lp-related-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: grid;
    gap: 10px;
}
.sg-lp-related-list li {
    background: var(--sg-lp-card-bg);
    border: 1px solid var(--sg-lp-card-border);
    border-radius: var(--sg-lp-radius);
    transition: transform .2s var(--sg-lp-ease);
}
.sg-lp-related-list li:hover { transform: translateX(4px); }
.sg-lp-related-list a {
    display: block;
    padding: 16px 20px;
    color: var(--sg-lp-base-color);
    text-decoration: none;
    font-weight: 700;
}
.sg-lp-related-list__arrow { margin-right: 8px; color: var(--sg-lp-cta-color); }

/* ========== CTA Block ========== */
.sg-lp-cta-block { text-align: center; }
.sg-lp-cta-block__paragraph { font-size: 15.5px; margin: 0 0 14px; text-align: left; }
.sg-lp-cta-block__microcopy { font-size: 14px; color: var(--sg-lp-text-muted); margin: 12px 0 18px; }

/* ========== アニメーション ========== */
/* v1.9.6: 1.2秒かけて10pxだけ動く。「動いた」と気づかせず、しかし静止画ではない状態を作る。
   ⚠️ 移動量を増やすと途端に安くなる。将来ここを触るときも 30px を超えないこと。 */
.sg-lp-section {
    opacity: 0;
    transform: translateY(10px);
    transition: opacity 1.2s var(--sg-lp-ease), transform 1.2s var(--sg-lp-ease);
}
.sg-lp-section.is-visible, .sg-lp-section--hero { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
    .sg-lp-section { opacity: 1; transform: none; transition: none; }
    /* v1.9.6 追加: CTAの円も0.5秒かけて伸びる「動き」なので、ここで止める。
       ホバーすると即座に全幅になる＝反応は残したまま、動きだけ消える。
       ※ 上の .sg-lp-section の宣言は v1.9.5 のまま変更していない。 */
    .sg-lp-cta-btn, .sg-lp-cta-btn::after { transition: none; }
}

/* =========================================================
 * Phase 9 (v1.1) 追加 UI スタイル
 * 業種非依存：CSS変数で配色プリセットを継承する
 * ========================================================= */

/* ----- パンくず ----- */
.sg-lp-meta-bar {
    background: var(--sg-lp-bg-alt);
    border-bottom: 1px solid var(--sg-lp-card-border);
    padding: 10px 0;
}
.sg-lp-breadcrumbs {
    font-size: 13px;
    color: var(--sg-lp-text-muted);
}
.sg-lp-breadcrumbs ol {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}
.sg-lp-breadcrumbs a {
    color: var(--sg-lp-base-color);
    text-decoration: none;
}
.sg-lp-breadcrumbs a:hover { text-decoration: underline; }
.sg-lp-breadcrumbs__sep {
    margin: 0 6px;
    color: #aaa;
}

/* ----- 公開・更新日 ----- */
.sg-lp-date-block {
    margin-top: 6px;
    font-size: 12px;
    color: var(--sg-lp-text-muted);
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}
.sg-lp-date-block__mod {
    background: var(--sg-lp-base-color);
    color: #fff;
    padding: 2px 8px;
    border-radius: 999px;
    font-size: 11px;
}

/* ----- 自動目次 ----- */
.sg-lp-toc {
    max-width: 880px;
    margin: 24px auto;
    padding: 24px 28px;
    background: var(--sg-lp-card-bg);
    border: 1px solid var(--sg-lp-card-border);
    border-left: 5px solid var(--sg-lp-base-color);
    border-radius: var(--sg-lp-radius);
}
.sg-lp-toc__title {
    font-weight: 700;
    color: var(--sg-lp-base-color);
    font-size: 18px;
    margin-bottom: 14px;
    display: flex;
    align-items: center;
    gap: 8px;
}
.sg-lp-toc__title::before {
    content: "≡";
    color: var(--sg-lp-cta-color);
    font-size: 24px;
}
.sg-lp-toc__list {
    list-style: none;
    counter-reset: toc;
    padding: 0;
    margin: 0;
}
.sg-lp-toc__list li {
    border-bottom: 1px dashed var(--sg-lp-card-border);
}
.sg-lp-toc__list li:last-child { border-bottom: none; }
.sg-lp-toc__list a {
    display: block;
    padding: 10px 0;
    color: var(--sg-lp-text-color);
    text-decoration: none;
    transition: color .2s var(--sg-lp-ease);
}
.sg-lp-toc__list a:hover { color: var(--sg-lp-base-color); }
.sg-lp-toc__num {
    display: inline-block;
    color: var(--sg-lp-cta-color);
    font-weight: 700;
    margin-right: 8px;
    min-width: 24px;
}

/* ----- 著者カード ----- */
.sg-lp-author-card {
    max-width: 880px;
    margin: 60px auto 0;
    padding: 28px;
    background: var(--sg-lp-card-bg);
    border: 1px solid var(--sg-lp-card-border);
    border-radius: var(--sg-lp-radius);
    display: grid;
    grid-template-columns: 1fr;
    gap: 18px;
}
@media (min-width: 720px) {
    .sg-lp-author-card { grid-template-columns: 140px 1fr; }
}
.sg-lp-author-card__pic {
    display: block;
}
.sg-lp-author-card__photo {
    width: 140px;
    height: 140px;
    object-fit: cover;
    border-radius: 50%;
    border: 4px solid var(--sg-lp-bg-alt);
}
.sg-lp-author-card__label {
    display: inline-block;
    background: var(--sg-lp-base-color);
    color: #fff;
    padding: 3px 10px;
    border-radius: 999px;
    font-size: 11px;
    margin-bottom: 8px;
}
.sg-lp-author-card__name {
    display: block;
    font-size: 18px;
    color: var(--sg-lp-base-color);
    margin-bottom: 12px;
}
.sg-lp-author-card__role {
    font-size: 12px;
    color: var(--sg-lp-text-muted);
    font-weight: normal;
    margin-left: 6px;
}
.sg-lp-author-card__bio { margin: 0 0 10px; font-size: 14.5px; }
.sg-lp-author-card__eeat {
    margin: 0;
    font-size: 13.5px;
    color: var(--sg-lp-text-muted);
    background: var(--sg-lp-bg-alt);
    padding: 10px 14px;
    border-radius: 6px;
}

/* ----- 結論カード（記事冒頭強調） ----- */
.sg-conclusion-card {
    background: var(--sg-lp-bg-alt);
    /* v1.9.6: 影を外した。背景が bg-alt のセクションに置かれると台紙と同色になり
       左のバーしか見えなくなるので、細い実線で囲って輪郭を残す。
       border-left は border の後に書く（ショートハンドに上書きされないように）。 */
    border: 1px solid var(--sg-lp-card-border);
    border-left: 6px solid var(--sg-lp-cta-color);
    padding: 20px 24px;
    border-radius: 8px;
    margin: 0 0 32px;
}
.sg-conclusion-card__label {
    display: inline-block;
    background: var(--sg-lp-cta-color);
    color: #fff;
    padding: 3px 12px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 700;
    margin-bottom: 10px;
}
.sg-conclusion-card__body {
    margin: 0;
    font-size: 15.5px;
    font-weight: 500;
    line-height: 1.7;
}

/* =========================================================
 * Phase 13 (v1.3) 追加：追従CTAバー & Heroオーバーレイ
 * 配色は既存のCSS変数(--sg-lp-cta-color 等)を継承する。
 * ========================================================= */

/* ----- 追従CTAバー ----- */
.sg-lp-sticky-cta {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 9999;
    padding: 10px 16px;
    padding-bottom: calc(10px + env(safe-area-inset-bottom, 0px));
    background: rgba(255, 255, 255, 0.96);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    border-top: 1px solid var(--sg-lp-card-border);
    box-shadow: 0 -6px 20px rgba(0, 0, 0, 0.12);
    /* 既定は非表示。JSが .is-active を付与したときだけせり上がる */
    transform: translateY(110%);
    opacity: 0;
    visibility: hidden;
    transition: transform .35s var(--sg-lp-ease), opacity .35s var(--sg-lp-ease), visibility .35s var(--sg-lp-ease);
}
.sg-lp-sticky-cta.is-active {
    transform: translateY(0);
    opacity: 1;
    visibility: visible;
}
.sg-lp-sticky-cta__inner {
    max-width: 720px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 14px;
}
.sg-lp-sticky-cta__label {
    flex: 1 1 auto;
    font-size: 14px;
    font-weight: 700;
    color: var(--sg-lp-base-color);
    line-height: 1.4;
    text-align: left;
}
.sg-lp-sticky-cta__btn {
    flex: 0 0 auto;
    display: inline-block;
    background: var(--sg-lp-cta-color);
    color: #ffffff !important;
    text-decoration: none !important;
    padding: 14px 32px;
    border-radius: 999px;
    font-weight: 700;
    font-size: clamp(15px, 2.6vw, 17px);
    box-shadow: 0 6px 14px rgba(0, 0, 0, 0.18);
    transition: transform .2s var(--sg-lp-ease), box-shadow .2s var(--sg-lp-ease), opacity .2s var(--sg-lp-ease);
    border: none;
    white-space: nowrap;
}
.sg-lp-sticky-cta__btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 18px rgba(0, 0, 0, 0.22);
    opacity: 0.96;
}
/* ラベルが無い構成ではボタンを全幅化して押しやすくする */
.sg-lp-sticky-cta__inner:not(:has(.sg-lp-sticky-cta__label)) .sg-lp-sticky-cta__btn {
    flex: 1 1 auto;
    text-align: center;
}
@media (max-width: 600px) {
    .sg-lp-sticky-cta__label { display: none; }
    .sg-lp-sticky-cta__btn {
        flex: 1 1 auto;
        text-align: center;
        padding: 15px 24px;
    }
}
@media (prefers-reduced-motion: reduce) {
    .sg-lp-sticky-cta { transition: opacity .2s var(--sg-lp-ease), visibility .2s var(--sg-lp-ease); transform: none; }
    .sg-lp-sticky-cta.is-active { transform: none; }
}

/* ----- Hero オーバーレイモード ----- */
.sg-lp-hero--overlay {
    position: relative;
    display: block;
}
.sg-lp-hero--overlay .sg-lp-hero__media,
.sg-lp-hero--overlay .sg-lp-hero__media img {
    display: block;
    width: 100%;
    height: auto;
    margin: 0;
}
.sg-lp-hero--overlay .sg-lp-hero__overlay {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    top: 0;
    display: flex;
    align-items: flex-end;
    justify-content: center;
    /* 下側を暗くして文字の可読性を確保するスクリム */
    background: linear-gradient(180deg, rgba(0,0,0,0) 35%, rgba(0,0,0,0.55) 100%);
    padding: clamp(16px, 4vw, 48px);
}
.sg-lp-hero--overlay .sg-lp-hero__copy {
    max-width: 960px;
    width: 100%;
    margin: 0;
    padding: 0;
    background: transparent;
    text-align: center;
}
.sg-lp-hero--overlay .sg-lp-hero__headline {
    color: #ffffff;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.45);
    margin: 0 0 12px;
}
.sg-lp-hero--overlay .sg-lp-hero__sub {
    color: #f3f3f3;
    text-shadow: 0 1px 6px rgba(0, 0, 0, 0.45);
    margin: 0 0 20px;
}
.sg-lp-hero--overlay .sg-lp-hero__cta {
    margin: 0;
}
@media (max-width: 600px) {
    .sg-lp-hero--overlay .sg-lp-hero__overlay {
        align-items: flex-end;
        background: linear-gradient(180deg, rgba(0,0,0,0) 25%, rgba(0,0,0,0.6) 100%);
    }
}

/* ========== Gallery (v1.4.0 写真多め設定) ========== */
.sg-lp-gallery-grid {
    display: grid;
    gap: 14px;
    grid-template-columns: repeat(2, 1fr);
    margin: 0;
    padding: 0;
}
@media (min-width: 720px) {
    .sg-lp-gallery-grid { grid-template-columns: repeat(3, 1fr); }
}
.sg-lp-gallery-item {
    margin: 0;
    background: var(--sg-lp-card-bg);
    border: 1px solid var(--sg-lp-card-border);
    border-radius: var(--sg-lp-radius);
    overflow: hidden;
}
.sg-lp-gallery-item picture {
    display: block;
}
.sg-lp-gallery-item img {
    display: block;
    width: 100%;
    height: auto;
    aspect-ratio: 4 / 3;
    object-fit: cover;
    margin: 0;
    border-radius: 0;
}
.sg-lp-gallery-item figcaption {
    font-size: 12.5px;
    color: var(--sg-lp-text-muted);
    padding: 8px 12px;
    line-height: 1.5;
}

/* =========================================================
 * v1.5.0 追加: Hero高さ制御 / 中間CTA / 利用の流れ / アクセス
 * ========================================================= */

/* Hero 画像の高さ暴れを抑制（縦長写真でもファーストビューが崩れない）。
 * オーバーレイモード限定（文字を焼き込んでいない写真前提のため cover でも情報欠損しない）。
 * 非オーバーレイ（焼き込みバナー等）は従来どおり全体表示＝既存公開LPを一切クロップしない。 */
.sg-lp-hero--overlay .sg-lp-hero__media img {
    max-height: min(78vh, 680px);
    object-fit: cover;
}

/* ----- 中間CTA帯 ----- */
.sg-lp-section--midcta {
    padding: clamp(28px, 5vw, 48px) 0;
    background: var(--sg-lp-bg-alt);
    border-top: 1px solid var(--sg-lp-card-border);
    border-bottom: 1px solid var(--sg-lp-card-border);
}
.sg-lp-midcta { text-align: center; }
.sg-lp-midcta__label {
    margin: 0 0 14px;
    font-size: clamp(15px, 2.6vw, 17px);
    font-weight: 700;
    color: var(--sg-lp-base-color);
}

/* ----- 利用の流れ (flow) ----- */
.sg-lp-flow {
    list-style: none;
    padding: 0;
    margin: 0;
    display: grid;
    gap: 0;
}
.sg-lp-flow__step {
    position: relative;
    display: grid;
    grid-template-columns: 56px 1fr;
    gap: 16px;
    padding: 0 0 28px;
}
.sg-lp-flow__step:last-child { padding-bottom: 0; }
.sg-lp-flow__step::before {
    content: "";
    position: absolute;
    left: 27px;
    top: 48px;
    bottom: 0;
    width: 2px;
    background: var(--sg-lp-card-border);
}
.sg-lp-flow__step:last-child::before { display: none; }
.sg-lp-flow__num {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: var(--sg-lp-base-color);
    color: #fff;
    font-weight: 800;
    font-size: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    z-index: 1;
}
.sg-lp-flow__title {
    margin: 10px 0 8px;
    font-size: clamp(16px, 2.8vw, 19px);
    color: var(--sg-lp-base-color);
}
.sg-lp-flow__body { margin: 0; font-size: 14.5px; }

/* ----- アクセス (access / NAP) ----- */
.sg-lp-access {
    background: var(--sg-lp-card-bg);
    border: 1px solid var(--sg-lp-card-border);
    border-radius: var(--sg-lp-radius);
    padding: 26px 28px;
}
.sg-lp-access__list { margin: 0; }
.sg-lp-access__row {
    display: grid;
    grid-template-columns: 96px 1fr;
    gap: 12px;
    padding: 12px 0;
    border-bottom: 1px dashed var(--sg-lp-card-border);
}
.sg-lp-access__row:last-child { border-bottom: none; }
.sg-lp-access__row dt {
    font-weight: 700;
    color: var(--sg-lp-text-muted);
    font-size: 13.5px;
    padding-top: 2px;
}
.sg-lp-access__row dd { margin: 0; font-size: 15px; }
.sg-lp-access__tel {
    font-size: clamp(18px, 3.4vw, 22px);
    font-weight: 800;
    color: var(--sg-lp-base-color);
    text-decoration: none;
}
.sg-lp-access__tel:hover { text-decoration: underline; }
.sg-lp-access__map { margin-top: 18px; text-align: center; }
.sg-lp-access__map-btn {
    display: inline-block;
    padding: 12px 32px;
    border: 2px solid var(--sg-lp-base-color);
    border-radius: 999px;
    color: var(--sg-lp-base-color);
    font-weight: 700;
    font-size: 14.5px;
    text-decoration: none;
    transition: background .2s var(--sg-lp-ease), color .2s var(--sg-lp-ease);
}
.sg-lp-access__map-btn:hover {
    background: var(--sg-lp-base-color);
    color: #fff;
}
.sg-lp-access__note { margin: 14px 0 0; font-size: 13px; color: var(--sg-lp-text-muted); }

/* ========== 推薦者のご紹介 (v1.6.0 推薦の輪・LP末尾の低優先度配置) ========== */
.sg-lp-section--endorser_footer {
    padding: 20px 0 28px;
    background: var(--sg-lp-bg-alt);
    border-top: 1px solid var(--sg-lp-card-border);
}
.sg-lp-endorser-footer__heading {
    font-size: 13px;
    font-weight: 700;
    color: var(--sg-lp-text-muted);
    text-align: left;
    margin: 0 0 8px;
}
.sg-lp-endorser-footer__entry {
    margin: 0 0 4px;
    font-size: 12.5px;
    color: var(--sg-lp-text-muted);
    line-height: 1.7;
}
.sg-lp-endorser-footer__name {
    font-weight: 700;
    color: var(--sg-lp-text-muted);
}
a.sg-lp-endorser-footer__name {
    color: var(--sg-lp-base-color);
    text-decoration: underline;
}
.sg-lp-endorser-footer__meta { margin-left: 4px; }
.sg-lp-endorser-footer__area { margin-right: 4px; }
.sg-lp-endorser-footer__note {
    margin: 8px 0 0;
    font-size: 11.5px;
    color: var(--sg-lp-text-muted);
}
