/*
Theme Name:   オネスト不動産 Child (Astra)
Theme URI:    https://example.com/
Description:  オネスト不動産株式会社／ミカタ仲介 大井町店 公式サイト用の Astra 子テーマ。相続・終活・不動産のワンストップ相談窓口サイト。親テーマに Astra が必要です。
Author:       オネスト不動産株式会社
Template:     astra
Version:      1.2.9
License:      GNU General Public License v2 or later
Text Domain:  onest-child
*/

/* =========================================================
   ※ デザイン本体の CSS です。
     文言・電話番号などは「外観 → カスタマイズ → オネスト不動産 サイト設定」から
     編集できます。お知らせは「お知らせ」投稿から追加できます。
   ========================================================= */

/* =========================================================
   オネスト不動産株式会社 / めーぷる品川大井町店
   ========================================================= */

:root {
  --green:        #2f6a4c;
  --green-dark:   #234f3a;
  --green-deep:   #1a3b2b;
  --orange:         #d9701f;
  --orange-light:   #f6a94e;
  --orange-dark:    #b4551a;
  --cream:        #fdf9f3;
  --cream-2:      #f7eddf;
  --ink:          #2b2a26;
  --muted:        #6d6b62;
  --line:         #e8ddcb;
  --white:        #ffffff;
  --shadow:       0 10px 30px rgba(26, 59, 43, .11);
  --shadow-sm:    0 4px 14px rgba(26, 59, 43, .08);
  --radius:       14px;
  --maxw:         1140px;
  --serif: "Noto Serif JP", "Hiragino Mincho ProN", "Yu Mincho", serif;
  --sans:  "Noto Sans JP", "Hiragino Kaku Gothic ProN", "Yu Gothic", Meiryo, sans-serif;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: var(--sans);
  color: var(--ink);
  background: var(--cream);
  font-size: 17px;
  line-height: 1.9;
  -webkit-font-smoothing: antialiased;
  letter-spacing: .02em;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }

.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }

.serif { font-family: var(--serif); }

section { padding: 84px 0; }

/* ---------- Section headings ---------- */
.sec-head { text-align: center; margin-bottom: 52px; }
.sec-head .en {
  display: block;
  font-family: var(--serif);
  font-size: .82rem;
  letter-spacing: .32em;
  color: var(--orange);
  font-weight: 600;
  margin-bottom: 12px;
  text-transform: uppercase;
}
.sec-head h2 {
  font-family: var(--serif);
  font-size: 2.05rem;
  font-weight: 700;
  color: var(--green-deep);
  line-height: 1.5;
}
.sec-head p { color: var(--muted); margin-top: 16px; font-size: 1rem; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 16px 34px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 1.02rem;
  transition: transform .18s ease, box-shadow .18s ease, background .18s;
  border: 2px solid transparent;
  cursor: pointer;
}
.btn-gold { background: var(--orange); color: #fff; box-shadow: var(--shadow-sm); }
.btn-gold:hover { background: var(--orange-light); transform: translateY(-2px); }
.btn-green { background: var(--green); color: #fff; }
.btn-green:hover { background: var(--green-dark); transform: translateY(-2px); }
.btn-ghost { background: transparent; color: #fff; border-color: rgba(255,255,255,.75); }
.btn-ghost:hover { background: rgba(255,255,255,.14); }
.btn-outline { background:#fff; color: var(--green-dark); border-color: var(--green); }
.btn-outline:hover { background: var(--green); color:#fff; }

/* =========================================================
   Header
   ========================================================= */
.topbar {
  background: var(--green-deep);
  color: #efe9db;
  font-size: .82rem;
  letter-spacing: .06em;
}
.topbar .wrap { display: flex; justify-content: space-between; align-items: center; min-height: 38px; flex-wrap: wrap; gap: 6px; }
.topbar .assoc { color: var(--orange-light); }

.header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(255,255,255,.96);
  backdrop-filter: blur(6px);
  border-bottom: 1px solid var(--line);
}
.header .wrap { display: flex; align-items: center; justify-content: space-between; min-height: 76px; max-width: 1320px; gap: 20px; }
.brand { display: flex; align-items: center; gap: 14px; flex: none; }
.brand .brand-logo { height: 42px; width: auto; flex: none; }
.brand .brand-sep { width: 1px; height: 38px; background: var(--line); flex: none; }
.brand .txt b { font-family: var(--serif); font-size: 1.02rem; color: var(--green-deep); display: block; line-height: 1.3; letter-spacing: .02em; white-space: nowrap; }
.brand .txt span { font-size: .66rem; color: var(--muted); letter-spacing: .08em; white-space: nowrap; }

.nav { display: flex; align-items: center; gap: 18px; }
.nav a.link { font-size: .9rem; font-weight: 500; color: var(--ink); transition: color .15s; white-space: nowrap; }
.nav a.link:hover { color: var(--green); }
.nav .tel { text-align: right; line-height: 1.25; }
.nav .tel small { display:block; font-size: .66rem; color: var(--muted); letter-spacing: .1em; }
.nav .tel b { font-family: var(--serif); font-size: 1.32rem; color: var(--green-deep); letter-spacing: .02em; }
.nav .cta { padding: 12px 22px; font-size: .92rem; }

.nav-toggle { display: none; background: none; border: 0; cursor: pointer; padding: 8px; }
.nav-toggle span { display: block; width: 26px; height: 2px; background: var(--green-deep); margin: 6px 0; transition: .25s; }

/* =========================================================
   Hero
   ========================================================= */
.hero { position: relative; color: #fff; overflow: hidden; padding: 0; }
.hero-img { position: absolute; inset: 0; }
.hero-img img { width: 100%; height: 100%; object-fit: cover; object-position: 60% center; }
.hero-img::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(100deg, rgba(18,44,31,.93) 0%, rgba(32,74,54,.76) 38%, rgba(150,70,24,.46) 76%, rgba(214,110,32,.20) 100%);
}
.hero-inner { position: relative; z-index: 2; padding: 122px 0 128px; }
.hero .badge {
  display: inline-block; background: rgba(255,255,255,.14);
  border: 1px solid rgba(255,255,255,.4); border-radius: 999px;
  padding: 8px 20px; font-size: .82rem; letter-spacing: .08em; margin-bottom: 26px;
  backdrop-filter: blur(4px);
}
.hero h1 {
  font-family: var(--serif); font-weight: 700;
  font-size: clamp(2rem, 4.4vw, 3.25rem); line-height: 1.5;
  text-shadow: 0 2px 20px rgba(0,0,0,.3); margin-bottom: 12px;
}
.hero h1 .em { color: var(--orange-light); }
.hero .lead {
  font-size: clamp(1rem, 1.5vw, 1.18rem); max-width: 640px;
  margin: 22px 0 40px; line-height: 2; text-shadow: 0 1px 12px rgba(0,0,0,.35);
}
.hero-cta { display: flex; gap: 16px; flex-wrap: wrap; }
.hero-facts {
  position: relative; z-index: 2; display: flex; flex-wrap: wrap; gap: 0;
  border-top: 1px solid rgba(255,255,255,.22);
}
.hero-facts .item { flex: 1; min-width: 150px; padding: 24px 10px; text-align: center; border-right: 1px solid rgba(255,255,255,.18); }
.hero-facts .item:last-child { border-right: 0; }
.hero-facts b { font-family: var(--serif); font-size: 1.9rem; color: var(--orange-light); display: block; line-height: 1.1; }
.hero-facts span { font-size: .82rem; letter-spacing: .06em; opacity: .92; }

/* =========================================================
   Worries
   ========================================================= */
.worries { background: var(--cream-2); }
.worry-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.worry {
  background: #fff; border-radius: var(--radius); padding: 30px 28px;
  box-shadow: var(--shadow-sm); border: 1px solid var(--line);
  display: flex; gap: 16px; align-items: flex-start;
}
.worry .q {
  flex: none; width: 40px; height: 40px; border-radius: 50%;
  background: var(--cream-2); color: var(--green); font-family: var(--serif);
  font-weight: 700; font-size: 1.3rem; display: grid; place-items: center;
  border: 2px solid var(--green);
}
.worry p { font-size: .98rem; line-height: 1.8; }
.worries .lead-to {
  text-align: center; margin-top: 46px; font-family: var(--serif);
  font-size: 1.4rem; color: var(--green-deep); font-weight: 700;
}
.worries .lead-to span { color: var(--orange); }

/* =========================================================
   Services
   ========================================================= */
.svc-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.svc {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 32px 26px; box-shadow: var(--shadow-sm);
  transition: transform .2s, box-shadow .2s; position: relative; overflow: hidden;
}
.svc::before { content:""; position:absolute; left:0; top:0; height: 4px; width: 100%; background: linear-gradient(90deg,var(--green),var(--orange)); transform: scaleX(0); transform-origin: left; transition: transform .25s; }
.svc:hover { transform: translateY(-5px); box-shadow: var(--shadow); }
.svc:hover::before { transform: scaleX(1); }
.svc .ico {
  width: 58px; height: 58px; border-radius: 14px; margin-bottom: 18px;
  background: var(--cream); display: grid; place-items: center;
  color: var(--green);
}
.svc .ico svg { width: 30px; height: 30px; }
.svc h3 { font-family: var(--serif); font-size: 1.16rem; color: var(--green-deep); margin-bottom: 10px; }
.svc p { font-size: .9rem; color: var(--muted); line-height: 1.8; }

/* =========================================================
   Reasons (strengths)
   ========================================================= */
.reasons { background: linear-gradient(180deg, var(--green-deep), var(--green-dark)); color:#fdf1e4; }
.reasons .sec-head h2 { color: #fff; }
.reasons .sec-head .en { color: var(--orange-light); }
.reason-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 26px; }
.reason {
  display: flex; gap: 22px; align-items: flex-start;
  background: rgba(255,255,255,.055); border: 1px solid rgba(255,255,255,.12);
  border-radius: var(--radius); padding: 30px 30px;
}
.reason .num {
  flex: none; font-family: var(--serif); font-size: 1.5rem; font-weight: 700;
  color: var(--green-deep); width: 54px; height: 54px; border-radius: 50%;
  background: var(--orange-light); display: grid; place-items: center;
}
.reason h3 { font-family: var(--serif); font-size: 1.28rem; color: #fff; margin-bottom: 10px; }
.reason p { font-size: .95rem; color: #eed9c2; line-height: 1.85; }
.experts { text-align: center; margin-top: 44px; }
.experts p { color: #eed9c2; margin-bottom: 18px; font-size: .95rem; }
.expert-tags { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; }
.expert-tags span {
  background: rgba(255,255,255,.1); border: 1px solid rgba(255,255,255,.25);
  border-radius: 999px; padding: 9px 22px; font-size: .92rem; color: #fff;
}

/* =========================================================
   Message (代表挨拶)
   ========================================================= */
.message { background: var(--cream); }
.msg-top { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: 50px; align-items: start; margin-bottom: 46px; }
.msg-photo { position: relative; }
.msg-photo img { width: 100%; height: auto; aspect-ratio: 4 / 5; object-fit: cover; object-position: center 18%; border-radius: var(--radius); box-shadow: var(--shadow); display: block; }
/* 署名は写真の下の独立テキスト（写真には重ねない） */
.msg-photo .sig { margin-top: 18px; text-align: center; }
.msg-photo .sig small { font-size: .8rem; color: var(--muted); display: block; margin-bottom: 3px; letter-spacing: .12em; }
.msg-photo .sig b { font-family: var(--serif); font-size: 1.4rem; color: var(--green-deep); display: block; letter-spacing: .12em; }
.msg-lead .en { color: var(--orange); font-family: var(--serif); letter-spacing: .3em; font-size: .8rem; font-weight: 600; }
.msg-lead h2 { font-family: var(--serif); font-size: 2rem; line-height: 1.55; color: var(--green-deep); margin: 12px 0 22px; }
.msg-lead h2 span { color: var(--orange); }
.msg-lead p { color: #4a4842; line-height: 2; }

.msg-body { background:#fff; border:1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow-sm); padding: 48px clamp(24px,5vw,64px); }
.msg-body h3 {
  font-family: var(--serif); font-size: 1.32rem; color: var(--green);
  margin: 34px 0 14px; padding-left: 16px; border-left: 4px solid var(--orange);
}
.msg-body h3:first-child { margin-top: 0; }
.msg-body p { margin-bottom: 18px; line-height: 2.05; color: #3f3d37; }
.msg-body .pull {
  font-family: var(--serif); font-size: 1.18rem; color: var(--green-deep);
  background: var(--cream); border-radius: 12px; padding: 22px 28px; margin: 26px 0;
  border-left: 4px solid var(--green); font-weight: 500;
}
.msg-sign { text-align: right; margin-top: 30px; font-family: var(--serif); color: var(--green-deep); }
.msg-sign b { font-size: 1.35rem; letter-spacing: .08em; }

/* =========================================================
   Flow
   ========================================================= */
.flow-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.step {
  background:#fff; border:1px solid var(--line); border-radius: var(--radius);
  padding: 34px 24px 30px; text-align: center; position: relative; box-shadow: var(--shadow-sm);
}
.step .n {
  font-family: var(--serif); font-size: .8rem; letter-spacing: .2em; color: var(--orange);
  font-weight: 700;
}
.step .circle {
  width: 72px; height: 72px; border-radius: 50%; margin: 14px auto 18px;
  background: var(--cream); border: 2px solid var(--green); color: var(--green);
  display: grid; place-items: center;
}
.step .circle svg { width: 34px; height: 34px; }
.step h3 { font-family: var(--serif); font-size: 1.12rem; color: var(--green-deep); margin-bottom: 8px; }
.step p { font-size: .86rem; color: var(--muted); }
.step:not(:last-child)::after {
  content: "›"; position: absolute; right: -14px; top: 50%; transform: translateY(-50%);
  font-size: 2rem; color: var(--orange); z-index: 2;
}

/* =========================================================
   Topics / News
   ========================================================= */
.topics { background: var(--cream-2); }
.topic-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 22px; }
.topic {
  background:#fff; border-radius: var(--radius); border:1px solid var(--line);
  box-shadow: var(--shadow-sm); overflow: hidden;
}
.topic .tag { background: var(--green); color:#fff; font-size: .74rem; letter-spacing: .1em; padding: 7px 16px; display: inline-block; font-weight: 600; }
.topic .tag.warn { background: #b3241b; }
.topic .body { padding: 22px 26px 28px; }
.topic h3 { font-family: var(--serif); font-size: 1.15rem; color: var(--green-deep); margin-bottom: 12px; line-height: 1.5; }
.topic p { font-size: .9rem; color: var(--muted); line-height: 1.85; }
.topic .deadline { margin-top: 14px; font-weight: 700; color: #b3241b; font-size: .9rem; }

/* =========================================================
   Consultation banner
   ========================================================= */
.consult {
  position: relative; color:#fff; text-align:center; overflow:hidden;
}
.consult .bg { position:absolute; inset:0; }
.consult .bg img { width:100%; height:100%; object-fit: cover; object-position: center 35%; }
.consult .bg::after { content:""; position:absolute; inset:0; background: linear-gradient(rgba(150,68,22,.90), rgba(110,48,14,.93)); }
.consult .inner { position: relative; z-index: 2; padding: 8px 0; }
.consult .en { color: var(--orange-light); font-family: var(--serif); letter-spacing: .3em; font-size: .82rem; }
.consult h2 { font-family: var(--serif); font-size: clamp(1.6rem,3vw,2.3rem); margin: 14px 0 18px; line-height: 1.5; }
.consult p { max-width: 660px; margin: 0 auto 20px; color:#f6e4d0; line-height: 2; }
.consult .free {
  display:inline-block; background: var(--orange); color:#fff; font-weight: 700;
  border-radius: 999px; padding: 8px 26px; margin-bottom: 26px; font-size: .95rem;
}
.consult .points { display:flex; justify-content:center; flex-wrap:wrap; gap: 12px; margin: 26px 0 34px; }
.consult .points span { background: rgba(255,255,255,.1); border:1px solid rgba(255,255,255,.28); border-radius: 8px; padding: 8px 18px; font-size: .88rem; }

/* --- オレンジ背景（相談バナー）の上では配色を反転して視認性を確保 --- */
.consult .en { color: #ffe6cc; }
.consult .free { background: var(--green); color: #fff; }
.consult .btn-gold { background: #fff; color: var(--orange-dark); }
.consult .btn-gold:hover { background: var(--cream); color: var(--orange-dark); transform: translateY(-2px); }

/* =========================================================
   Company profile
   ========================================================= */
.company .grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: 46px; align-items: start; }
.profile-table { width: 100%; border-collapse: collapse; background:#fff; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-sm); border:1px solid var(--line); }
.profile-table th, .profile-table td { text-align: left; padding: 18px 22px; border-bottom: 1px solid var(--line); font-size: .95rem; vertical-align: top; }
.profile-table tr:last-child th, .profile-table tr:last-child td { border-bottom: 0; }
.profile-table th { background: var(--cream); color: var(--green-deep); font-family: var(--serif); font-weight: 600; width: 34%; white-space: nowrap; }
.company .photo-stack { display: grid; gap: 18px; }
.company .photo-stack img { border-radius: var(--radius); box-shadow: var(--shadow-sm); width: 100%; height: 100%; object-fit: cover; }
.map { margin-top: 46px; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-sm); border:1px solid var(--line); }
.map iframe { width: 100%; height: 360px; border: 0; display:block; }

/* =========================================================
   Contact
   ========================================================= */
.contact { background: linear-gradient(180deg, var(--cream), var(--cream-2)); }
.contact-grid { display: grid; grid-template-columns: 1fr 1.1fr; gap: 46px; align-items: stretch; }
.contact-info {
  background: linear-gradient(160deg, var(--green-dark), var(--green-deep)); color:#fff;
  border-radius: var(--radius); padding: 44px 40px; box-shadow: var(--shadow);
}
.contact-info h3 { font-family: var(--serif); font-size: 1.4rem; margin-bottom: 8px; }
.contact-info .sub { color:#e4cfb6; font-size: .9rem; margin-bottom: 28px; }
.contact-info .tel-big { font-family: var(--serif); font-size: 2.5rem; letter-spacing: .02em; line-height: 1.2; color: var(--orange-light); }
.contact-info .tel-big a { color: inherit; }
.contact-info dl { margin-top: 26px; display: grid; grid-template-columns: auto 1fr; gap: 10px 18px; font-size: .92rem; }
.contact-info dt { color: var(--orange-light); font-family: var(--serif); }
.contact-info dd { color:#f6e4d0; }

.contact-form { background:#fff; border:1px solid var(--line); border-radius: var(--radius); padding: 40px; box-shadow: var(--shadow-sm); }
.contact-form h3 { font-family: var(--serif); font-size: 1.3rem; color: var(--green-deep); margin-bottom: 22px; }
.field { margin-bottom: 18px; }
.field label { display:block; font-size: .88rem; font-weight: 600; margin-bottom: 7px; color: var(--green-deep); }
.field label .req { color:#b3241b; font-size: .75rem; margin-left: 6px; }
.field input, .field textarea, .field select {
  width: 100%; padding: 13px 15px; border: 1px solid var(--line); border-radius: 10px;
  font-family: var(--sans); font-size: 1rem; background: var(--cream); color: var(--ink);
  transition: border .15s, box-shadow .15s;
}
.field input:focus, .field textarea:focus, .field select:focus { outline: none; border-color: var(--green); box-shadow: 0 0 0 3px rgba(47,106,76,.18); background:#fff; }
.field textarea { min-height: 120px; resize: vertical; }
.form-note { font-size: .8rem; color: var(--muted); margin-top: 6px; }
.contact-form .btn { width: 100%; justify-content: center; margin-top: 8px; }

/* =========================================================
   Footer
   ========================================================= */
.footer { background: var(--green-deep); color: #e4cfb6; padding: 60px 0 28px; }
.footer .grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 40px; margin-bottom: 40px; }
.footer .brand-f .footer-logo { height: 42px; width: auto; margin-bottom: 18px; }
.footer .brand-f b { font-family: var(--serif); color:#fff; font-size: 1.2rem; display:block; margin-bottom: 12px; }
.footer .brand-f p { font-size: .88rem; line-height: 1.9; }
.footer h4 { font-family: var(--serif); color: var(--orange-light); font-size: .95rem; margin-bottom: 16px; letter-spacing: .08em; }
.footer ul { list-style: none; }
.footer ul li { margin-bottom: 10px; }
.footer ul li a { font-size: .88rem; transition: color .15s; }
.footer ul li a:hover { color:#fff; }
.footer .copy { border-top: 1px solid rgba(255,255,255,.14); padding-top: 22px; text-align: center; font-size: .78rem; color: #bfa88c; }

/* ---------- Floating mobile CTA ---------- */
.float-cta { display: none; }

/* =========================================================
   Responsive
   ========================================================= */
@media (max-width: 980px) {
  .svc-grid { grid-template-columns: repeat(2,1fr); }
  .flow-grid { grid-template-columns: repeat(2,1fr); }
  .worry-grid { grid-template-columns: repeat(2,1fr); }
  .topic-grid { grid-template-columns: 1fr; }
  .reason-grid { grid-template-columns: 1fr; }
  .msg-top { grid-template-columns: 1fr; }
  .msg-photo { max-width: 420px; margin: 0 auto; }
  .company .grid, .contact-grid { grid-template-columns: 1fr; }
  .step:not(:last-child)::after { display: none; }
}

@media (max-width: 900px) {
  body { font-size: 16px; }
  section { padding: 60px 0; }
  .sec-head h2 { font-size: 1.6rem; }
  .nav .link, .nav .tel { display: none; }
  .nav-toggle { display: block; }
  .header .wrap { min-height: 64px; }
  .brand { gap: 10px; }
  .brand .brand-logo { height: 34px; }
  .brand .brand-sep { display: none; }
  .brand .txt span { display: none; }
  .brand .txt b { font-size: .82rem; }
  .nav { gap: 12px; }
  .nav .cta { display: none; }

  .mobile-menu { position: fixed; inset: 0 0 0 auto; width: 78%; max-width: 320px; background:#fff; box-shadow: -6px 0 30px rgba(0,0,0,.2); transform: translateX(100%); transition: transform .3s; z-index: 200; padding: 80px 26px 30px; overflow-y:auto; }
  .mobile-menu.open { transform: translateX(0); }
  .mobile-menu a { display:block; padding: 14px 0; border-bottom: 1px solid var(--line); font-weight: 500; }
  .mobile-menu .btn { width:100%; justify-content:center; margin-top: 20px; }
  .mm-close { position:absolute; top: 22px; right: 22px; font-size: 1.8rem; background:none; border:0; color: var(--green-deep); cursor:pointer; }
  .backdrop { position: fixed; inset:0; background: rgba(0,0,0,.4); z-index: 150; opacity:0; pointer-events:none; transition: opacity .3s; }
  .backdrop.open { opacity:1; pointer-events:auto; }

  .worry-grid { grid-template-columns: 1fr; }
  .svc-grid { grid-template-columns: 1fr; }
  .flow-grid { grid-template-columns: 1fr; }
  .hero-inner { padding: 80px 0 90px; }
  .hero-facts .item { flex: 1 1 50%; border-bottom: 1px solid rgba(255,255,255,.18); }
  .contact-info, .contact-form { padding: 30px 24px; }
  .msg-body { padding: 30px 22px; }

  .float-cta { display: flex; position: fixed; bottom: 0; left: 0; right: 0; z-index: 90; box-shadow: 0 -4px 20px rgba(0,0,0,.15); }
  .float-cta a { flex: 1; text-align: center; padding: 15px 6px; font-weight: 700; font-size: .95rem; color:#fff; display:flex; flex-direction:column; gap:2px; }
  .float-cta a small { font-size: .66rem; opacity:.85; font-weight: 400; }
  .float-cta .fc-tel { background: var(--green); }
  .float-cta .fc-form { background: var(--orange); }
  body { padding-bottom: 64px; }
}

@media (min-width: 901px) { .mobile-menu, .backdrop { display: none; } }

/* =========================================================
   WordPress / Astra 用の追加スタイル
   ========================================================= */

/* --- Astra のコンテナ・余白を打ち消してフル幅にする --- */
#page, .site, .site-content, .ast-container, .entry-content {
  max-width: none; width: auto; margin: 0; padding: 0;
}
.ast-page-builder-template .site-content > .ast-container { max-width: none; padding: 0; }
.site-content .ast-container { display: block; }

/* --- 管理バー表示時のヘッダー位置調整 --- */
body.admin-bar .header { top: 32px; }
@media (max-width: 782px) { body.admin-bar .header { top: 46px; } }

/* --- Astra のデフォルト見出し・リンク色をリセット --- */
.entry-content a { text-decoration: none; }
h1,h2,h3,h4 { margin: 0; }

/* =========================================================
   お知らせ・相談会情報（WordPress 投稿から自動表示）
   ========================================================= */
.news { background: var(--cream); }
.news-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.news-card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  box-shadow: var(--shadow-sm); overflow: hidden; display: flex; flex-direction: column;
  transition: transform .2s, box-shadow .2s;
}
.news-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.news-card .thumb { aspect-ratio: 16/9; overflow: hidden; background: var(--cream-2); }
.news-card .thumb img { width: 100%; height: 100%; object-fit: cover; }
.news-card .body { padding: 24px 26px 28px; flex: 1; display: flex; flex-direction: column; }
.news-card time {
  font-family: var(--serif); font-size: .8rem; color: var(--orange);
  letter-spacing: .1em; font-weight: 600;
}
.news-card h3 {
  font-family: var(--serif); font-size: 1.12rem; color: var(--green-deep);
  margin: 8px 0 12px; line-height: 1.6;
}
.news-card p { font-size: .9rem; color: var(--muted); line-height: 1.85; }
.news-card .more {
  margin-top: auto; padding-top: 16px; font-size: .86rem;
  color: var(--green); font-weight: 700;
}
.news-more { text-align: center; margin-top: 44px; }

/* --- お知らせ 詳細・一覧ページ --- */
.page-head {
  background: linear-gradient(180deg, var(--green-deep), var(--green-dark));
  color: #fff; padding: 60px 0; text-align: center;
}
.page-head h1 { font-family: var(--serif); font-size: 1.9rem; }
.page-head .en {
  display: block; color: var(--orange-light); font-family: var(--serif);
  letter-spacing: .3em; font-size: .8rem; margin-bottom: 10px;
}
.single-wrap { max-width: 820px; margin: 0 auto; padding: 70px 24px; }
.single-wrap time { color: var(--orange); font-family: var(--serif); letter-spacing: .1em; font-weight: 600; }
.single-wrap h1 {
  font-family: var(--serif); font-size: 1.8rem; color: var(--green-deep);
  margin: 10px 0 30px; line-height: 1.6; padding-bottom: 22px; border-bottom: 2px solid var(--line);
}
.single-body { line-height: 2.05; }
.single-body p { margin-bottom: 20px; }
.single-body h2 {
  font-family: var(--serif); font-size: 1.35rem; color: var(--green);
  margin: 34px 0 14px; padding-left: 16px; border-left: 4px solid var(--orange);
}
.single-body h3 { font-family: var(--serif); font-size: 1.15rem; color: var(--green-deep); margin: 26px 0 12px; }
.single-body img { border-radius: var(--radius); margin: 20px 0; }
.single-body ul, .single-body ol { margin: 0 0 20px 1.4em; }
.single-body li { margin-bottom: 8px; }
.back-link { text-align: center; margin-top: 50px; }

@media (max-width: 900px) {
  .news-grid { grid-template-columns: 1fr; }
  .page-head h1 { font-size: 1.45rem; }
  .single-wrap { padding: 46px 22px; }
  .single-wrap h1 { font-size: 1.35rem; }
}

/* =========================================================
   品川区で不動産を売るなら知っておきたい3つの落とし穴
   ========================================================= */
.pitfalls { background: var(--cream-2); }
.pitfalls .sec-head h2 { line-height: 1.45; }
.pitfall-list { display: grid; gap: 22px; }
.pitfall {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  box-shadow: var(--shadow-sm); padding: 34px 38px;
  display: grid; grid-template-columns: auto 1fr; gap: 8px 30px; align-items: start;
  position: relative; overflow: hidden;
}
.pitfall::before {
  content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 5px;
  background: linear-gradient(var(--orange), var(--green));
}
.pitfall .pit-no {
  grid-row: span 2; align-self: center; text-align: center;
  font-family: var(--serif); color: #fff; background: var(--green-deep);
  border-radius: 12px; padding: 16px 8px; min-width: 92px;
}
.pitfall .pit-no b { display: block; font-size: 2.1rem; line-height: 1; color: var(--orange-light); }
.pitfall .pit-no span { font-size: .68rem; letter-spacing: .18em; }
.pitfall h3 {
  font-family: var(--serif); font-size: 1.32rem; color: var(--green-deep);
  line-height: 1.5; align-self: center;
}
.pitfall .pit-body { grid-column: 2; }
.pitfall .pit-body p { color: #4a4842; line-height: 1.95; font-size: .97rem; }
.pitfall .pit-body .hl {
  display: inline-block; margin-top: 12px; font-weight: 700; color: var(--orange-dark);
  font-size: .93rem; border-bottom: 2px solid var(--orange-light); padding-bottom: 1px;
}

/* 解説動画エリア */
.pitfall-video { margin-top: 40px; }
.pitfall-video .frame {
  position: relative; width: 100%; max-width: 860px; margin: 0 auto;
  aspect-ratio: 16/9; border-radius: var(--radius); overflow: hidden;
  box-shadow: var(--shadow); background: var(--green-deep);
}
.pitfall-video .frame iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.pitfall-video .ph {
  position: absolute; inset: 0; display: flex; flex-direction: column;
  align-items: center; justify-content: center; gap: 14px; color: #fff; text-align: center;
  background: linear-gradient(135deg, var(--green-deep), var(--green-dark));
}
.pitfall-video .ph .play {
  width: 74px; height: 74px; border-radius: 50%; background: var(--orange);
  display: grid; place-items: center; box-shadow: 0 8px 24px rgba(0,0,0,.3);
}
.pitfall-video .ph .play svg { width: 30px; height: 30px; fill: #fff; margin-left: 4px; }
.pitfall-video .ph b { font-family: var(--serif); font-size: 1.15rem; }
.pitfall-video .ph span { font-size: .85rem; color: #e4cfb6; }
.pitfall-cta { text-align: center; margin-top: 40px; }

/* =========================================================
   対応エリア 帯
   ========================================================= */
.area-band { background: var(--green-deep); color: #fff; padding: 46px 0; }
.area-band .wrap { text-align: center; }
.area-band .en { color: var(--orange-light); font-family: var(--serif); letter-spacing: .3em; font-size: .78rem; }
.area-band h2 { font-family: var(--serif); font-size: 1.5rem; margin: 10px 0 8px; }
.area-band .sub { color: #e4cfb6; font-size: .92rem; margin-bottom: 24px; }
.area-tags { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; max-width: 900px; margin: 0 auto; }
.area-tags span {
  background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.22);
  border-radius: 999px; padding: 8px 18px; font-size: .9rem;
}

@media (max-width: 760px) {
  .pitfall { grid-template-columns: 1fr; gap: 14px; padding: 26px 22px; text-align: center; }
  .pitfall .pit-no { grid-row: auto; display: inline-flex; gap: 8px; align-items: baseline; padding: 8px 18px; margin: 0 auto; }
  .pitfall .pit-no b { font-size: 1.4rem; }
  .pitfall .pit-body { grid-column: 1; text-align: left; }
  .pitfall h3 { text-align: left; }
}

/* =========================================================
   修正対応（2026-08）— 上書きスタイル
   ========================================================= */

/* 新ロゴ（オネスト不動産）のサイズ */
.brand .brand-logo { height: 50px; }

/* 落とし穴の要点：下線折り返しの崩れを解消し、独立した行に */
.pitfall .pit-body .hl {
  display: block; margin-top: 16px; padding: 6px 0 6px 14px;
  border-bottom: none; border-left: 3px solid var(--orange-light);
  color: var(--orange-dark); font-weight: 700; font-size: .95rem; line-height: 1.7;
}

/* 重要トピックは2枚に（相続土地国庫帰属制度を削除したため中央寄せ2列） */
.topic-grid { grid-template-columns: repeat(2, 1fr); max-width: 780px; margin-left: auto; margin-right: auto; }

/* --- スマホ表示の崩れ修正 --- */
@media (max-width: 760px) {
  /* フッター：3列→1列（縦書き崩れの解消） */
  .footer .grid { grid-template-columns: 1fr; gap: 30px; }

  /* 代表の想い：署名バッジの枠バランス（重なり解消） */
  .msg-photo { margin-bottom: 20px; }
  .msg-photo .sig {
    position: static; right: auto; bottom: auto;
    display: inline-block; margin-top: 14px;
  }
  .msg-photo { text-align: center; }
}

@media (max-width: 980px) {
  .topic-grid { grid-template-columns: 1fr; max-width: none; }
}

/* ヒーローのバッジをオレンジに（オレンジ色での指示対応） */
.hero .badge { background: rgba(217,112,31,.92); border-color: rgba(255,255,255,.35); color:#fff; font-weight:600; }

/* フッター：オネスト不動産ロゴ（上）＋ミカタ仲介ロゴ（下）の縦積み */
.footer .brand-f .footer-logo-main { width: 214px; height: auto; display: block; margin-bottom: 18px; }
.footer .brand-f .footer-logo { height: 48px; margin-bottom: 20px; }

/* 会社概要：ミカタ仲介の加盟店に関する小さな注記 */
.profile-table .fc-note { display: block; font-size: .78rem; color: var(--muted); margin: 3px 0 9px; line-height: 1.5; }
