@charset "UTF-8";

/* =========================================================
   LP 共通スタイル
   ---------------------------------------------------------
   合意要件（4/23 メール 金井様）：
   - 画像投稿時は一切の書式指定をしない
   - 画像の上下余白なし、中央寄せ
   - リンク画像にアンダーラインなどの装飾がつかない
   - CTAボタン（画像）は余白高さを作っておく（クリック判定拡張）
   - 見出し書式 1個（lp-heading）をフォームの書式から選べばOK
   ========================================================= */

/* リセット最小限（元LPに合わせ html=62.5% / body=1.4rem ベース）
   ※ lp.css は LP single ページでのみ読み込まれるため、html 直指定で安全 */
*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
html {
    /* 元LP の html { font-size: 62.5% } を踏襲：以降の rem は 1rem=10px 換算 */
    font-size: 62.5%;
}
body.lp-body {
    font-family: '游ゴシック体', 'Yu Gothic', YuGothic, 'メイリオ', Meiryo, 'ヒラギノ角ゴ Pro W3', 'Hiragino Kaku Gothic Pro', 'ＭＳ ゴシック', sans-serif;
    font-size: 1.4rem;           /* = 14px */
    font-weight: 500;
    color: #000;
    line-height: 1.5;
    background: #f5f5f5;
    -webkit-text-size-adjust: 100%;
    overflow-x: hidden;
}
img {
    max-width: 100%;
    height: auto;
    vertical-align: bottom;
    image-rendering: -webkit-optimize-contrast;  /* 縮小画像のシャープさ */
}

/* =========================================================
   ヘッダー（元LP仕様：ロゴバーなし／フローティングハンバーガー＋右からドロワー）
   ---------------------------------------------------------
   - .lp-header   : DOM 上のラッパ（位置決めのみ）
   - .lp-hamburger: 右上に固定。スクロール600px以下では非表示
                    body.lp-open のときは×ボタンに変形
   - .lp-drawer   : 右からスライドする暗背景オーバーレイ
   ========================================================= */
.lp-header {
    position: relative;
}

/* ハンバーガー：右上フローティング、青グレー半透明背景の白3本線 */
.lp-hamburger {
    position: fixed;
    top: 15px;
    right: 15px;
    width: 45px;
    height: 45px;
    background: #4e7096d3;
    border: 0;
    padding: 0;
    cursor: pointer;
    z-index: 99;
    transition: opacity .35s, background .25s, visibility 0s linear .35s;
    opacity: 0;
    visibility: hidden;
}
/* PC幅（750px以上）では右マージンをフレーム端に揃える（500px枠の右上） */
@media screen and (min-width: 750px) {
    .lp-hamburger {
        right: calc(50% - 235px);
    }
}
/* JS が付ける .is-visible でフェードイン */
.lp-hamburger.is-visible {
    opacity: 1;
    visibility: visible;
    transition: opacity .35s, background .25s, visibility 0s;
}
.lp-hamburger__line {
    position: absolute;
    right: 7px;
    width: 70%;
    height: 1px;
    background: #fff;
    transition: transform .4s, top .4s, right .4s, opacity .2s;
}
.lp-hamburger__line:nth-child(1) { top: 25%; }
.lp-hamburger__line:nth-child(2) { top: 50%; }
.lp-hamburger__line:nth-child(3) { top: 75%; }
/* body.lp-open 時：×に変形 */
body.lp-open .lp-hamburger { background: transparent; }
body.lp-open .lp-hamburger__line:nth-child(1) {
    top: 50%; right: 6px; transform: rotate(45deg);
}
body.lp-open .lp-hamburger__line:nth-child(2) { opacity: 0; }
body.lp-open .lp-hamburger__line:nth-child(3) {
    top: 50%; right: 6px; transform: rotate(-45deg);
}

/* ドロワー：右からスライドする暗背景オーバーレイ */
.lp-drawer {
    position: fixed;
    top: 0;
    right: 0;
    width: 100%;
    height: 100vh;
    background: rgba(0,0,0,.8);
    color: #fff;
    display: flex;
    justify-content: center;
    visibility: hidden;
    opacity: 0;
    transform: translateX(100%);
    transition: transform .5s ease-in-out, opacity .5s ease-in-out, visibility 0s linear .5s;
    z-index: 50;
}
body.lp-open .lp-drawer {
    visibility: visible;
    opacity: 1;
    transform: translateX(0);
    transition: transform .5s ease-in-out, opacity .5s ease-in-out;
}
.lp-drawer__list {
    list-style: none;
    text-align: center;
    padding: 100px 0 40px;
    margin: 0;
}
.lp-drawer__item {
    margin-bottom: 15px;
    line-height: 1.4;
    transform: translateX(-150px);
    transition: transform .5s ease;
    transition-delay: .05s;
}
.lp-drawer__item:nth-child(2)  { transition-delay: .15s; }
.lp-drawer__item:nth-child(3)  { transition-delay: .25s; }
.lp-drawer__item:nth-child(4)  { transition-delay: .35s; }
.lp-drawer__item:nth-child(5)  { transition-delay: .45s; }
.lp-drawer__item:nth-child(6)  { transition-delay: .55s; }
.lp-drawer__item:nth-child(7)  { transition-delay: .65s; }
.lp-drawer__item:nth-child(8)  { transition-delay: .75s; }
.lp-drawer__item:nth-child(9)  { transition-delay: .85s; }
.lp-drawer__item:nth-child(10) { transition-delay: .95s; }
body.lp-open .lp-drawer__item { transform: translateX(0); }
.lp-drawer__link {
    display: inline-block;
    padding: 6px 0;
    color: #fff;
    text-decoration: none;
    font-size: 1.6rem;   /* = 16px */
}
.lp-drawer__link:hover { color: #c1c1c1; }

/* =========================================================
   メイン（the_content の出力エリア）
   ---------------------------------------------------------
   - 元LP同様、モバイル基準デザインを max-width 800px のフレームで中央寄せ
   - 画像はコンテナ全幅で表示（WYSIWYG の挿入時サイズに依存しない）
   - WP が img に付ける width="..."/height="..." 属性は CSS で上書き
   ========================================================= */
/* ---------------------------------------------------------
 * 元LP（lp-campaign202511.jibunhouse-hiroshima-chuo.jp）の
 * フレーム仕様に合わせる：
 *   - モバイル（〜749px）：フル幅
 *   - PC（750px以上）  ：max-width 500px 中央寄せ
 * --------------------------------------------------------- */
.lp-main { padding: 0; margin: 0; background: #f5f5f5; }
.lp-article {
    width: 100%;
    margin: 0 auto !important;
    padding: 0;
    background: #fff;
}
@media screen and (min-width: 750px) {
    .lp-article {
        max-width: 500px !important;
        /* 元LPの #frame と同じ強さの影（フレーム感をはっきり） */
        box-shadow: 0 0 30px 0px rgba(0, 0, 0, .30);
    }
}

/* 画像だけの段落 → 完全に余白ゼロ（元LPの <section><img></section> 連続と同等） */
.lp-article p:has(> img),
.lp-article p:has(> a > img),
.lp-article p:has(> .lp-anchor + img),
.lp-article p:has(> .lp-anchor + a > img) {
    margin: 0 !important;
    padding: 0 !important;
    text-align: center;
    line-height: 0;             /* p の行高による余白も消す */
}

/* テキスト段落（画像を含まない） → 読みやすさのため余白あり */
.lp-article p:not(:has(> img)):not(:has(> a > img)) {
    margin: 1em auto;
    padding: 0 1em;
}

/* 画像直前のアンカー span だけの段落（[lp-anchor] 単独行）は余白ゼロ */
.lp-article p:has(> .lp-anchor:only-child) {
    margin: 0 !important;
    padding: 0 !important;
    line-height: 0;
}

/* ★ 画像：コンテナ全幅・上下余白なし・中央
   - WP がimg にinline width/height 属性を付けても CSS で上書き
   - 配置クラス（alignleft等）も無効化（常に中央・全幅）*/
.lp-article img {
    display: block;
    width: 100%;
    max-width: 100%;
    height: auto;
    margin: 0 auto;
    padding: 0;
    border: 0;
}

/* WP挿入の配置クラスを無視（中央・全幅固定） */
.lp-article .alignleft,
.lp-article .alignright,
.lp-article .aligncenter,
.lp-article .alignnone {
    float: none !important;
    margin: 0 auto !important;
    display: block;
    text-align: center;
}

/* figure / wp-caption / wp-block-image（caption付き or ブロックエディタの画像） */
.lp-article figure,
.lp-article figure.wp-caption,
.lp-article div.wp-caption,
.lp-article figure.wp-block-image {
    margin: 0 auto !important;       /* ブロックエディタが付ける block-margin を無効化 */
    padding: 0;
    max-width: 100% !important;
    width: auto !important;
    text-align: center;
    line-height: 0;                  /* 画像直後の余白を消す */
}
.lp-article figure img,
.lp-article div.wp-caption img,
.lp-article figure.wp-block-image img { width: 100%; }
/* ブロックエディタの画像ブロックがアラインで付ける余白も無効化 */
.lp-article figure.wp-block-image.alignleft,
.lp-article figure.wp-block-image.alignright,
.lp-article figure.wp-block-image.aligncenter,
.lp-article figure.wp-block-image.alignnone,
.lp-article figure.wp-block-image.alignfull,
.lp-article figure.wp-block-image.alignwide {
    float: none !important;
    margin: 0 auto !important;
    width: 100% !important;
    max-width: 100% !important;
}
.lp-article figure figcaption,
.lp-article .wp-caption-text {
    padding: 8px 12px;
    font-size: 1.3rem;   /* = 13px */
    color: #666;
    text-align: center;
}

/* リンク画像：アンダーライン解除（CTA以外の素のリンク画像も全幅・装飾なし） */
.lp-article a:has(img):not(.lp-cta) {
    display: block;
    text-decoration: none;
    border: 0;
    margin: 0;
    padding: 0;
}
.lp-article a img { border: 0; }
.lp-article a:hover img { opacity: .9; transition: opacity .2s; }

/* 通常リンクは下線あり（テキストリンクは保持） */
.lp-article a:not(:has(img)) {
    color: #1f4e79;
    text-decoration: underline;
}

/* ★ 見出しクラス：
   - クラシック：書式メニューから挿入される .lp-heading
   - ブロックエディタ：見出しブロック → スタイル「LP見出し」→ .is-style-lp-heading */
.lp-article .lp-heading,
.lp-article h2.lp-heading,
.lp-article .is-style-lp-heading,
.lp-article h2.is-style-lp-heading {
    font-size: 2rem;     /* = 20px */
    font-weight: 700;
    text-align: center;
    margin: 2.2em auto 1em;
    padding: 0 1em;
    line-height: 1.4;
}

/* iframe（Google Map / 動画など）：中央寄せ・レスポンシブ */
.lp-article iframe {
    display: block;
    margin: 1em auto;
    max-width: 100%;
    border: 0;
}

/* =========================================================
   ショートコード由来の要素
   ---------------------------------------------------------
   [lp-anchor id="..."]  → <span class="lp-anchor">
   [lp-map place="..."]  → <div class="lp-map"><iframe>...
   [lp-cta img="..."]    → <a class="lp-cta"><img>...
   ========================================================= */

/* アンカー：見えない要素（固定ヘッダーバーは無いのでオフセット不要） */
.lp-article .lp-anchor {
    display: block;
    height: 0;
    width: 0;
    overflow: hidden;
    visibility: hidden;
}

/* Google Map：レスポンシブ */
.lp-article .lp-map {
    margin: 1em auto;
    max-width: 720px;
    padding: 0 1em;
}
.lp-article .lp-map iframe {
    width: 100%;
    height: 360px;
    margin: 0;
}
@media (min-width: 768px) {
    .lp-article .lp-map iframe { height: 450px; }
}

/* CTA ボタン：画像全体クリック領域 + 上下余白
   - 元LPの btn_reservation.png は 671x93px のロゴ風ボタン → ナチュラルサイズで中央表示 */
.lp-article a.lp-cta {
    display: block;
    margin: 24px auto;
    padding: 16px 0;
    text-align: center;
    text-decoration: none;
    border: 0;
}
.lp-article a.lp-cta img {
    display: inline-block;
    width: auto;            /* 全幅にしない：CTAは元サイズ寄りで中央表示 */
    max-width: 80%;
    height: auto;
    margin: 0 auto;
}
.lp-article a.lp-cta:hover img { opacity: .9; transition: opacity .2s; }

/* =========================================================
   CF7 フォーム（.inquiry-form 構造）
   ---------------------------------------------------------
   元LP（jibunhouse-hiroshima-chuo）のフォームデザイン踏襲：
   - 必須=青グレー (#4e7096)・任意=ベージュ (#e2e0d7) のバッジ
   - input/textarea/select=黒1px枠・白背景・focus時に青 (#004b9b)
   - 送信ボタン=青グレー背景・幅95%中央寄せ
   ========================================================= */
.lp-article .wpcf7 {
    margin: 1em auto;
    padding: 0;
}
.lp-article .wpcf7 form,
.lp-article .inquiry-form {
    line-height: 1.6;
    font-size: 1.6rem;   /* = 16px */
    color: #000;
}
.lp-article .inquiry-form {
    padding: 0 1em;
}

/* フィールドグループ */
.lp-article .form-group {
    margin-bottom: 22px;
}

/* ラベル */
.lp-article .form-label {
    display: block;
    margin-bottom: 8px;
    font-size: 1.6rem;   /* = 16px */
    font-weight: 500;
    line-height: 1.4;
}

/* 必須／任意バッジ（元LPの .hissu / .nini と同色） */
.lp-article .required,
.lp-article .optional {
    display: inline-block;
    margin-left: 6px;
    padding: 3px 7px;
    font-size: 1.3rem;   /* = 13px、元LPの .hissu/.nini と同サイズ */
    font-weight: normal;
    line-height: 1;
    border: 1px solid;
    border-radius: 3px;
    vertical-align: 2px;
}
.lp-article .required {
    color: #fff;
    background: #4e7096;
    border-color: #4e7096;
}
.lp-article .optional {
    color: #606060;
    background: #e2e0d7;
    border-color: #606060;
}

/* 注意書き */
.lp-article .form-note {
    margin: 4px 0 10px;
    font-size: 1.3rem;   /* = 13px */
    color: #666;
    line-height: 1.5;
}

/* テキスト系入力 */
.lp-article .inquiry-form input[type="text"],
.lp-article .inquiry-form input[type="email"],
.lp-article .inquiry-form input[type="tel"],
.lp-article .inquiry-form input[type="number"],
.lp-article .inquiry-form input[type="url"],
.lp-article .inquiry-form input[type="date"],
.lp-article .inquiry-form select,
.lp-article .inquiry-form textarea {
    width: 100%;
    padding: 16px 15px;
    border: 1px solid #000;
    background: #fff;
    box-sizing: border-box;
    font-family: inherit;
    font-size: 1.6rem;   /* = 16px、元LPと同値 */
    line-height: 1;
    -webkit-appearance: none;
    appearance: none;
    border-radius: 0;
    transition: border-color .3s;
}
.lp-article .inquiry-form select {
    padding: 16px 36px 16px 15px;
    background: #fff url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'><path fill='%23222' d='M6 8L0 0h12z'/></svg>") right 14px center/12px 8px no-repeat;
}
.lp-article .inquiry-form textarea {
    min-height: 6em;
    line-height: 1.6;
}
.lp-article .inquiry-form input:focus,
.lp-article .inquiry-form select:focus,
.lp-article .inquiry-form textarea:focus {
    outline: none;
    border-color: #004b9b;
}

/* 来店希望日：date と select を縦に並べる */
.lp-article .inquiry-form input[type="date"] + br + .wpcf7-form-control-wrap,
.lp-article .inquiry-form .wpcf7-date + br + .wpcf7-select {
    margin-top: 10px;
}
.lp-article .inquiry-form .wpcf7-form-control-wrap + .wpcf7-form-control-wrap {
    display: block;
    margin-top: 10px;
}

/* チェックボックス／ラジオ（CF7 の wpcf7-list-item 構造） */
.lp-article .checkbox-group {
    margin-top: 4px;
}
.lp-article .wpcf7-checkbox,
.lp-article .wpcf7-radio,
.lp-article .wpcf7-acceptance {
    display: block;
}
.lp-article .wpcf7-list-item {
    display: block;
    margin: 0 0 4px;
}
.lp-article .wpcf7-list-item label {
    display: inline-flex;
    align-items: center;
    cursor: pointer;
    line-height: 1.4;
    padding: 6px 0;
    font-weight: normal;
}
.lp-article .wpcf7-list-item input[type="checkbox"],
.lp-article .wpcf7-list-item input[type="radio"] {
    flex-shrink: 0;
    width: 18px;
    height: 18px;
    margin: 0 8px 0 0;
    accent-color: #4e7096;
}

/* 個人情報セクション */
.lp-article .privacy-section {
    margin-top: 28px;
    padding: 18px 16px;
    background: #f7f7f4;
    border: 1px solid #e2e0d7;
}
.lp-article .privacy-text {
    margin: 0 0 12px;
    font-size: 1.4rem;   /* = 14px */
    line-height: 1.65;
    text-align: left;
}
.lp-article .privacy-link {
    color: #004b9b;
    text-decoration: underline;
}
.lp-article .privacy-section .form-label {
    margin: 12px 0 8px;
    text-align: center;
}
.lp-article .privacy-checkbox {
    text-align: center;
}
.lp-article .privacy-checkbox label {
    font-weight: 500;
}

/* 送信ボタン（青グレー・幅95%中央寄せ） */
.lp-article .form-submit {
    margin: 32px auto 16px;
    text-align: center;
}
.lp-article .wpcf7-submit,
.lp-article .form-submit input[type="submit"] {
    display: block;
    width: 95%;
    max-width: 400px;
    margin: 0 auto;
    padding: 18px 24px;
    background: #4e7096;
    color: #fff;
    border: 1px solid #4e7096;
    font-family: inherit;
    font-size: 1.6rem;   /* = 16px */
    font-weight: 600;
    letter-spacing: 0.08em;
    cursor: pointer;
    -webkit-appearance: none;
    appearance: none;
    border-radius: 0;
    transition: opacity .3s;
}
.lp-article .wpcf7-submit:hover {
    opacity: .85;
}

/* CF7 エラー／レスポンス */
.lp-article .wpcf7-not-valid-tip {
    display: block;
    margin-top: 4px;
    color: #e70000;
    font-size: 1.3rem;   /* = 13px */
}
.lp-article .wpcf7-response-output {
    margin: 16px 1em !important;
    padding: 12px 16px !important;
    border: 1px solid #aaa !important;
    font-size: 1.4rem;   /* = 14px */
    line-height: 1.5;
}
.lp-article .wpcf7 form.invalid .wpcf7-response-output {
    border-color: #e70000 !important;
    color: #e70000;
    background: #ffe9e9;
}
.lp-article .wpcf7 form.sent .wpcf7-response-output {
    border-color: #46b450 !important;
    color: #46b450;
    background: #ecf7ec;
}
.lp-article .wpcf7-spinner {
    margin-left: 12px;
    vertical-align: middle;
}

/* =========================================================
   フッター固定CTA（.lp-fab）
   ---------------------------------------------------------
   - 元LPの sp_menu と同等：画面下部に固定、scroll > 600px で表示
   - 2ボタン横並び（電話 / フォームへ）。最大幅500pxで中央寄せ
   ========================================================= */
.lp-fab {
    position: fixed;
    left: 0;
    right: 0;
    bottom: -120px;            /* 初期は隠し */
    z-index: 49;
    width: 100%;
    transition: bottom .4s ease-out;
    pointer-events: none;
}
.lp-fab.is-visible {
    bottom: 0;
    pointer-events: auto;
}
.lp-fab__list {
    display: flex;
    width: 100%;
    max-width: 500px;          /* PC時もフレーム幅と揃える */
    margin: 0 auto;
    padding: 0;
    list-style: none;
}
.lp-fab__item {
    flex: 1 1 0;
    margin: 0;
}
.lp-fab__item a {
    display: block;
    line-height: 0;
    text-decoration: none;
    border: 0;
}
.lp-fab__item img {
    display: block;
    width: 100%;
    height: auto;
}
/* 固定CTAが表示されているとき、フッターと記事末尾をその分押し上げる */
body.lp-has-fab .lp-footer { padding-bottom: 80px; }

/* =========================================================
   フッター
   ========================================================= */
.lp-footer {
    margin-top: 3rem;
    padding: 2rem 1rem;
    background: #f7f7f7;
    text-align: center;
    color: #666;
}
.lp-footer__inner { max-width: 1200px; margin: 0 auto; }
