/*
 Theme Name:  GeneratePress Child
 Theme URI:   https://example.com/
 Description: GeneratePress 用 子テーマ（不動産査定LP用・Zen丸ゴシック）
 Author:      Sugimoto
 Template:    generatepress
 Version:     1.0.1
*/

/* --------------------------------------------------------
   フォント設定：Zen Maru Gothic を全体に適用
-------------------------------------------------------- */
body {
  margin: 0;
  font-family: "Zen Maru Gothic", "YuGothic", "游ゴシック体", -apple-system, BlinkMacSystemFont,
    "Helvetica Neue", Arial, "Hiragino Kaku Gothic ProN", Meiryo, sans-serif;
  color: #333;
  line-height: 1.8;
  background: #FFF5E5;
}

h1, h2, h3, h4, h5, h6 {
  font-family: "Zen Maru Gothic", sans-serif;
  font-weight: 700;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
}

.page-wrap {
  background: #FFF5E5;
}

/* 共通レイアウト */

.page-template-page-lp .site-content { /* とりあえずトップだけ */
  display: block;
}

.container {
  width: 100%;
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 16px;
}

.section {
  padding: 56px 0;
}

.section__title {
  text-align: center;
  font-size: 1.6rem;
  margin: 0 0 32px;
}

.section__title span {
  color: #6fbf3b;
}

.section__title--left {
  text-align: left;
}

/* --------------------------------------------------------
   ヘッダー
-------------------------------------------------------- */

.lp-header {
  background: #FFF5E5;
  position: sticky;
  top: 0;
  z-index: 50;
}

.lp-header__inner {
  display: flex;
  align-items: center;   /* ★ ここを flex-start → center に */
  justify-content: space-between;
  padding: 18px 16px 10px;        /* 少し上に寄せて、下は余白控えめ */
  max-width: 1120px;
  margin: 0 auto;
}

/* ロゴまわり */

.lp-header__logo-link {
  display: flex;
  align-items: center;
  gap: 8px;
}

.lp-header__logo-img-wrap {
  display: block;
}

.site-logo__img {
  display: block;
}

/* ロゴサイズ（仮。デザイン見ながら調整） */
.site-logo__img--pc {
  width: 370px;
}

.site-logo__img--sp {
  width: 200px;
}

/* 初期状態はPCロゴだけ表示 */
.site-logo__img--sp {
  display: none;
}

/* html のクラスで切替（JSが付ける） */
.is-pc .site-logo__img--pc { display: block; }
.is-pc .site-logo__img--sp { display: none; }

.is-sp .site-logo__img--pc { display: none; }
.is-sp .site-logo__img--sp { display: block; }

/* サイト名・サブ（必要なら使う） */
.lp-header__site-name {
  font-weight: 700;
}

.lp-header__sub {
  font-size: 0.8rem;
  margin-left: 8px;
}

/* --------------------------------------------------------
   右上「加盟希望」ボタン
-------------------------------------------------------- */

.lp-header__cta {
  font-size: 0.9rem;
}

.lp-header__cta--partner {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 8px;
  border-radius: 8px;
  border: 2px solid #3B1F00;
  background: #ffffff;
  color: #3B1F00;
  font-size: 12px;
  font-weight: 700;
  line-height: 1.4;
  white-space: normal;   /* ★ ここを normal に */
  margin-top: -4px;   /* ★ 少しだけ上に持ち上げる */
}

/* 左の緑まるアイコン */
.lp-header__cta-icon {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: #7DD000; /* 緑 */
  position: relative;
  flex-shrink: 0;
}

/* ▶ マーク（白い三角） */
.lp-header__cta-icon::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 52%;
  transform: translate(-50%, -50%);
  width: 0;
  height: 0;
  border-left: 6px solid #fff;
  border-top: 4px solid transparent;
  border-bottom: 4px solid transparent;
}

/* 文字部分 */
.lp-header__cta-text {
  display: inline-block;
}

/* --------------------------------------------------------
   グローバルナビ（PC表示）
-------------------------------------------------------- */

.lp-global-nav__list {
  display: flex;
  align-items: center;
  gap: 24px;
  list-style: none;
  margin: 0;
  padding: 0;
  font-size: 0.9rem;
  color:#3B1F00;
  font-weight: bold;
}

/* Menu 1 の li 内のリンク全体に下線アニメを適用 */
.lp-global-nav__list a {
  position: relative;
}

.lp-global-nav__list a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -2px;
  width: 0;
  height: 2px;
  background: #3B1F00;
  transition: width .2s;
}

.lp-global-nav__list a:hover::after {
  width: 100%;
}


/* --------------------------------------------------------
   ハンバーガー＆ドロワーメニュー（SP表示）
-------------------------------------------------------- */

/* ハンバーガー（2本線＋MENU） */
.lp-header__nav-toggle {
  border: none;
  background: transparent;
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  padding: 4px 0 4px 8px;
  cursor: pointer;
}

.lp-header__nav-toggle-lines {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.lp-header__nav-toggle-line {
  width: 28px;
  height: 4px;
  border-radius: 999px;
  background: #3B1F00; /* 濃い茶色 */
}

.lp-header__nav-toggle-label {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.12em;
  color: #3B1F00;
}

/* ドロワー全体 */
.lp-header__drawer {
  display: none;
  background: #FFF5E5;
  border-top: 1px solid #e0d2b9;
}

.lp-header__drawer-nav {
  max-width: 1120px;
  margin: 0 auto;
  padding: 12px 16px 16px;
}

.lp-header__drawer-list {
  list-style: none;
  margin: 0 0 8px;
  padding: 0;
}

.lp-header__drawer-list li + li {
  margin-top: 8px;
}

.lp-header__drawer-list a {
  display: block;
  padding: 6px 0;
}

.lp-header__drawer-cta {
  display: block;
  margin-top: 8px;
  padding: 8px 12px;
  border-radius: 8px;
  border: 1px solid #3B1F00;
  font-size: 0.85rem;
}

/* 開閉状態（JSで .is-nav-open を付与） */
.lp-header.is-nav-open .lp-header__drawer {
  display: block;
}

/* --------------------------------------------------------
   ボタン汎用
-------------------------------------------------------- */

/* 共通ボタン */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 20px;
  border-radius: 999px;
  font-weight: 700;
  border: none;
  cursor: pointer;
  font-family: "Zen Maru Gothic", sans-serif;
}

/* 立体っぽい緑ボタン */
.btn--primary {
  position: relative;
  background: #4DB200;          /* ベースの緑 */
  color: #fff;
  border-radius: 999px;
  padding: 18px 60px;            /* 文字まわりの余白はお好みで */
  font-size: 1.2rem;
  font-weight: 700;
  border: none;
  cursor: pointer;
  /* ボタンの下に落ちる影（外側のグレー部分） */
  box-shadow: 0 10px 0 #e6e6e6;
  overflow: visible;
}

/* 上部の光沢ライン（1本の線として表現） */
.btn--primary::before {
  content: "";
  position: absolute;
  left: 25px;                    /* 端から少し内側に寄せる */
  right: 25px;
  top: 6px;                     /* 上からの距離 */
  height: 3px;                  /* 線の太さ */
  background: #92dd5a;           /* 明るい緑 */
  border-radius: 999px;          /* カプセル形状の線 */
}

/* 下部の影ライン */
.btn--primary::after {
  content: "";
  position: absolute;
  left: 25px;
  right: 25px;
  bottom: 6px;                  /* 下からの距離 */
  height: 3px;
  background: #3a8e1a;           /* 濃い緑で影っぽく */
  border-radius: 999px;
  opacity: 0.85;
}

.btn--ghost {
  border-radius: 999px;
  border: 2px solid #7fd13b;
  color: #7fd13b;
  padding: 10px 20px;
  font-weight: 700;
  display: inline-block;
}

.btn--full {
  width: 100%;
}

.btn--large {
  padding: 16px 40px;
  font-size: 1.1rem;
}

/* ヘッダー右側：グロナビ＋加盟希望ボタン＋ハンバーガー */
.lp-header__right {
  display: flex;
  align-items: center;
  gap: 12px;        /* ナビとボタンの間の余白はお好みで */
  margin-left: auto;/* ロゴの右側いっぱいまで押し出す */
}

/* --------------------------------------------------------
   ヒーロー（タイトル画像＋リード）
-------------------------------------------------------- */

/* セクション全体の余白 */
.hero {
  padding: 0 0 40px;
}

/* 視覚には見せないが SEO 的に残す H1 */
.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  border: 0;
  overflow: hidden;
  clip: rect(0,0,0,0);
  clip-path: inset(50%);
  white-space: nowrap;
}

/* タイトル画像コンテナをページ中央に */
.hero-heading {
  max-width: 980px;        /* PC デザインに近い幅。890 のままでも OK */
  margin: 0 auto 18px;     /* H1ブロックとリードの距離 */
  padding: 0 16px;
  text-align: center;
}

/* PC / SP 共通で画像ロゴを拡大縮小 */
.hero-title-image {
  display: block;
  width: 100%;
  height: auto;
  max-width: 980px;   /* ここは好みで 900〜1000px くらいで調整 */
  margin: 0 auto;
  transform: translateY(32px);   /* PC：タイトル画像を下にずらす量 */
}

/* キャッチコピー */
.hero-lead {
  margin: 0 0 32px;
  font-size: 1.4rem;
  font-weight: bold;
  text-align: center;
  color: #3B1F00;
}

/* 下段：カード2列（PC） */

.hero-panel__title {
  margin: 0 0 16px;
  font-size: 1.8rem;
  font-weight: 700;
  text-align: center;
  color: #3B1F00;
}
/* --------------------------------------------------------
   ヒーロー：装飾イラスト（PC / SP 共通）
-------------------------------------------------------- */

/* 下段：カード2列（PC） */
.hero-panels {
  display: grid;
  grid-template-columns: 2fr 1.4fr;
  gap: 24px;
  align-items: stretch;
}

/* ★ これだけ残す */
.hero-panel {
  position: relative;
  background: #fff;
  border-radius: 24px;
  padding: 24px 24px 20px;
  box-shadow: 0 6px 12px rgba(0,0,0,0.06);
  z-index: 10;        /* カードを前面に */
}

/* 装飾のベース */
.hero-deco {
  position: absolute;
  pointer-events: none;
}

/* ルーペ女性：上側をカードの中に隠して、下から覗かせる */
.hero-deco--pc-left {
  left: -25px;    /* 横位置。お好みで調整 */
  top: -35px;     /* マイナスにするとカードの縁に隠れる */
}

.hero-deco--pc-left img {
  width: 140px;
  height: auto;
  max-width: none;
}

/* 家を持っている女性 */
.hero-deco--pc-right img {
  max-width: none;   /* 親幅 0 の影響を受けないように */
  width: 160px;
  height: auto;
  z-index: 20;
}

/* 吹き出し共通 */
.hero-deco__balloon {
  display: inline-block;
  padding: 8px 12px;
  background: #fff;
  border-radius: 16px;
  border: 2px solid #3B1F00;
  font-size: 0.85rem;
  line-height: 1.4;
}

/* PC：右カードの女性＋吹き出し */
.hero-deco--pc-right {
  right: -40px;
  bottom: -40px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}

/* SP：フォーム上の女性＋吹き出し */
.hero-deco--sp-top {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  margin-bottom: 12px;  /* 下のフォームとの間隔 */
}

.hero-deco--sp-top .hero-deco__balloon {
  max-width: 8em;
}

/* 住所から査定パネル：左フォーム＋右マップ */

.hero-panel__body {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 1.1fr);
  gap: 16px;
  align-items: stretch;
}

.hero-steps .form-step + .form-step {
  margin-top: 5px;
}

/* mapエリア（後で中身差し替え） */
.hero-map__placeholder {
  width: 100%;
  height: 100%;
  min-height: 200px;
  border-radius: 16px;
  background: #d4e3f4;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.85rem;
  color: #555;
}

/* 郵便番号パネル */

.hero-panel__body--zip {
  display: flex;
  flex-direction: column;
  gap: 12px;
  align-items: flex-start;
}

.hero-zip__label {
  font-size: 0.9rem;
  display: block;
}

.hero-zip__input {
  width: 100%;
  border: none;
  outline: none;
  background: transparent;   /* グレー背景を消す */
  font-size: 1.3rem;
  color: #3B1F00;
  font-family: inherit;
}

.hero-zip__btn {
  margin-top: 4px;
}

.hero-usage {
  margin-top: 20px;
  font-size: 0.8rem;
  font-weight: bold;
  text-align: center;
}

/* --------------------------------------------------------
   レスポンシブ：SPはH1改行＋住所カードのみ
-------------------------------------------------------- */

@media (max-width: 767px) {

   /* ヒーロータイトル画像とリードの SP 調整 */
  .hero {
    padding-top: 24px;
  }

  .hero-heading {
    padding: 0 12px;
    margin-bottom: 20px;
    transform: translateY(-32px); /* SP：全体を上に持ち上げる量 */
  }

  .hero-title-image {
    max-width: 100%;
  }

  .hero-lead {
    margin: 0 1em 2em;
    font-size: 1.6rem;
    line-height: 1.2;
  }

  .hero-panels {
    grid-template-columns: 1fr;  /* 1列 */
    gap: 16px;
  }

  /* 住所カード内はフォームのみ1カラム */
  .hero-panel__body {
    grid-template-columns: 1fr;
  }

  .hero-map {
    display: none; /* SPでは地図非表示 */
  }

  /* 郵便番号パネルはSPでは使わない */
  .hero-panel--zip {
    display: none;
  }

  .hero-panel {
    padding: 20px 16px 18px;
    border-radius: 16px;
  }

  .hero-usage {
    margin-top: 12px;
    font-size: 0.75rem;
  }
}

/* PC側で sp-only を隠す指定は既存のままでOK */
/* .sp-only { display:inline; }
   @media (min-width:768px){ .sp-only{ display:none; } } */


/* --------------------------------------------------------
   選ばれる理由
-------------------------------------------------------- */

.reason__items {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
}

.reason-item {
  background: #fff;
  border-radius: 16px;
  padding: 20px;
}

.reason-item__num {
  font-weight: 700;
  color: #7fd13b;
  margin: 0 0 4px;
}

.reason-item__title {
  margin: 0 0 8px;
  font-size: 1.1rem;
}

/* --------------------------------------------------------
   写真＋説明
-------------------------------------------------------- */

.about__inner {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.image-placeholder {
  width: 100%;
  padding-top: 56%;
  border-radius: 999px;
  background: #d4e3f4;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #555;
  font-size: 0.9rem;
}

/* --------------------------------------------------------
   スマホで簡単査定
-------------------------------------------------------- */

.sp-easy {
  background: #e5f6d8;
}

.sp-easy__inner {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.sp-easy__lead {
  font-weight: 700;
  margin-bottom: 8px;
}

.sp-easy__zip {
  margin-bottom: 8px;
}

/* --------------------------------------------------------
   ご利用者の声
-------------------------------------------------------- */

.voice__items {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
}

.voice-card {
  background: #fff;
  border-radius: 16px;
  padding: 20px;
  border-left: 6px solid #7fd13b;
}

.voice-card__label {
  font-size: 0.85rem;
  margin: 0 0 8px;
}

.voice-card__price {
  font-weight: 700;
  margin: 0 0 8px;
  color: #7a5c00;
}

/* --------------------------------------------------------
   フッターCTA
-------------------------------------------------------- */

.footer-cta {
  background: #7fd13b;
  color: #fff;
}

.footer-cta__inner {
  text-align: center;
}

.footer-cta__text {
  margin-bottom: 16px;
}

/* LPフッター */
.lp-footer {
  background: #4a4a4a;
  color: #fff;
  font-size: 0.8rem;
  padding: 16px 0;
}

.lp-footer__inner {
  text-align: center;
}

/* PC専用表示 */
.pc-only {
  display: none;
}
/* --------------------------------------------------------
   スマホ専用表示切替
-------------------------------------------------------- */

.sp-only {
  display: inline;
}

/* --------------------------------------------------------
   レスポンシブ（共通）
-------------------------------------------------------- */

@media (min-width: 768px) {
  .pc-only {
    display: block;
  }
  .sp-only {
    display: none;
  }

  .hero__inner {
    flex-direction: row;
    align-items: flex-start;
  }

  .hero__text {
    flex: 1 1 50%;
    padding-right: 24px;
  }

  .hero__form-wrap {
    flex: 1 1 50%;
  }

  .reason__items {
    grid-template-columns: repeat(3, 1fr);
  }

  .about__inner {
    flex-direction: row;
    align-items: center;
  }

  .about__image,
  .about__text {
    flex: 1 1 50%;
  }

  .sp-easy__inner {
    flex-direction: row;
    align-items: center;
  }

  .sp-easy__text {
    flex: 1 1 55%;
    padding-right: 24px;
  }

  .sp-easy__box {
    flex: 1 1 45%;
  }

  .voice__items {
    grid-template-columns: repeat(3, 1fr);
  }
}

/* --------------------------------------------------------
   レスポンシブ（ヘッダー）
-------------------------------------------------------- */

/* SP（〜767px） */
@media (max-width: 767px) {
  /* コーポレートナビはSPでは非表示 */
  .lp-global-nav {
    display: none;
  }

  /* ハンバーガーを右端、加盟ボタンをその左に */
  .lp-header__inner {
    justify-content: space-between;
  }

  .lp-header__logo {
    order: 0;
    margin-right: 12px;
  }

  .lp-header__cta--partner {
    order: 1;
    font-size: 11px;
    padding: 4px 10px;
    white-space: normal;
  }

  .lp-header__nav-toggle {
    order: 2;
    padding: 6px 8px;
  }
}

/* PC（768px〜） */
@media (min-width: 768px) {
  /* PCではハンバーガー非表示（ドロワーも開かない想定） */
  .lp-header__nav-toggle {
    display: none;
  }
}
/* ===== STEP バッジ全体 ===== */
.form-step {
  display: flex;
  align-items: center;
  gap: 20px;
  margin-bottom: 5px;
}

.form-step__field {
  flex: 1;
}

/* 左の濃茶の縦長バッジ */
.form-step__badge {
  width: 50px;
  min-height: 70px;
  border-radius: 10px;
  background: #3B1F00;
  color: #fff;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}

.form-step__step {
  font-size: 16px;
  font-weight: 700;
}

.form-step__num {
  font-size: 40px;
  font-weight: 700;
  line-height: 1;
  margin-top: -10px;
}

/* ラベル「都道府県を選択を選択」など */
.form-step__label {
  margin: 0;
  font-size: 18px;
  font-weight: 700;
  color: #3B1F00;
}

/* ===== セレクトの外枠（白＋濃茶ベタ影） ===== */
.form-select {
  position: relative;
  display: inline-block;
  background: #ffffff;
  border: 1px solid #3B1F00;
  border-radius: 10px;
  padding: 0 22px;          /* 左右だけ余白。上下は select 側で調整 */
  margin-top: 0px;
  box-shadow: 4px 4px 0 #3B1F00; /* 郵便番号と同じベタ影 */
}

/* 以前の影用 ::after は不要なので無効化 */
.form-select::after {
  content: none;
}

/* セレクト本体 */
.form-select__control {
  width: 100%;
  border: none;
  background: transparent;
  padding: 5px 40px 5px 0px; /* 上下の高さ＋右は矢印分の余白 */
  font-size: 16px;
  font-weight: 500;
  color: #3B1F00;
  font-family: "Zen Maru Gothic", sans-serif;
  outline: none;
  appearance: none;  /* デフォルト矢印を消す */
  cursor: pointer;
}

/* ▼ 矢印（右の茶色いカギ括弧風） */
.form-select::before {
  content: "⌵";
  position: absolute;
  right: 26px;
  top: 30%;
  transform: translateY(-50%);
  font-size: 28px;
  color: #3B1F00;
  pointer-events: none;
  font-weight: 700;

}

/* ★ 郵便番号の外枠 */
.zip-field {
  position: relative;
  display: inline-block;
  background: #ffffff;
  border: 1px solid #3B1F00;
  border-radius: 10px;
  padding: 5px;    /* ← 余白調整 */
  margin-top: 0;
  box-shadow: 4px 4px 0 #3B1F00;
}

/* ★ 中のinput（白背景・余白なし） */
.zip-field__control,
.hero-zip__input {
  width: 100%;
  border: none !important;
  outline: none !important;
  background: #fff !important;
  padding: 0 !important;
  font-size: 16px;
  line-height: 1;
  color: #3B1F00;
  font-family: inherit;
}

.zip-field__control::placeholder,
.hero-zip__input::placeholder {
  color: #d3d3d3;
}

