/* 本番追加スタイル — モバイルメニュー・フォーム補助（styles.css/pages.cssの後に読み込み） */

/* hidden属性を必ず効かせる
   ※ .cf-hint{display:flex} のようなクラス指定は、ブラウザ標準の
      [hidden]{display:none} より詳細度が高く打ち勝ってしまうため、
      明示的に打ち消しておく（過去に案内枠が消えない不具合あり）。 */
[hidden] { display: none !important; }

/* honeypot: 画面外へ（display:noneはボットが回避するため位置ずらし） */
.cf-hp {
  position: absolute !important;
  left: -9999px !important;
  top: -9999px !important;
  height: 1px; width: 1px; overflow: hidden;
}

/* 送信完了メッセージ */
#cf-done { text-align: center; padding: 56px 24px; }
#cf-done .cf-done-en {
  font-family: var(--serif, serif); font-style: italic;
  letter-spacing: .16em; opacity: .55; margin-bottom: 12px;
}
#cf-done h3 { font-size: 22px; margin: 0 0 14px; letter-spacing: .08em; }
#cf-done p { opacity: .75; line-height: 2; max-width: 480px; margin: 0 auto; }

/* ===== リフォーム: 施工前後の比較 ===== */
.ba-part { margin-bottom: 64px; }
.ba-part:last-child { margin-bottom: 0; }

.ba-title {
  font-family: var(--serif, serif);
  font-size: 19px; font-weight: 400; letter-spacing: .1em;
  margin: 0 0 20px; padding-bottom: 12px;
  border-bottom: 1px solid rgba(128,128,128,.2);
}
.ba-title span {
  font-family: var(--sans, sans-serif);
  font-size: 12px; letter-spacing: .14em; opacity: .55; margin-left: 14px;
}

/* BEFOREは元画像が205x205と小さいため拡大せず、AFTERを大きく見せる */
.ba-pair {
  display: grid;
  grid-template-columns: minmax(120px, 205px) 46px 1fr;
  align-items: center; gap: 0;
}
.ba-single { max-width: 62%; }

.ba-fig { margin: 0; }
.ba-fig img {
  width: 100%; object-fit: cover; display: block;
  background: rgba(128,128,128,.08);
}
.ba-before img { aspect-ratio: 1/1; max-width: 205px; }
.ba-after img { aspect-ratio: 40/27; }
.ba-fig figcaption {
  display: flex; align-items: center; gap: 10px;
  margin-top: 10px; font-size: 12px; letter-spacing: .08em; opacity: .6;
}
.ba-tag {
  font-size: 10px; letter-spacing: .18em; padding: 4px 9px; line-height: 1;
}
.ba-tag-before { border: 1px solid currentColor; opacity: .7; }
.ba-tag-after { background: var(--fg, #111); color: var(--white, #fff); }

/* BEFORE側は少し沈める＝AFTERを主役に */
.ba-before img { filter: saturate(.72) brightness(.97); }

.ba-arrow {
  text-align: center; font-size: 20px; opacity: .35;
  align-self: center; padding-bottom: 22px;
}

@media (max-width: 760px) {
  .ba-pair { grid-template-columns: 140px 32px 1fr; gap: 0; }
  .ba-single { max-width: 100%; }
  .ba-arrow { padding-bottom: 22px; font-size: 15px; }
  .ba-title { font-size: 17px; }
  .ba-title span { display: block; margin: 6px 0 0; }
}

/* 公開中の物件が無いときの表示 */
.listings-empty {
  text-align: center;
  padding: 72px 24px 80px;
  border: 1px solid rgba(128,128,128,.22);
}
.listings-empty .le-mark { font-size: 26px; opacity: .3; margin-bottom: 18px; letter-spacing: .3em; }
.listings-empty h3 { font-size: 20px; font-weight: 400; letter-spacing: .08em; margin: 0 0 20px; }
.listings-empty p { opacity: .7; line-height: 2.2; margin: 0 auto; max-width: 560px; font-size: 14px; }
.le-actions { display: flex; flex-wrap: wrap; gap: 14px; justify-content: center; margin-top: 34px; }

/* 自社施工セクションのリード文 */
.built-lede { max-width: 720px; opacity: .78; line-height: 2.2; font-size: 14px; margin: 0 0 8px; }
.built-lede strong { font-weight: 500; opacity: 1; }

/* 成約カードの補足 */
.sold-detail { font-size: 12.5px; opacity: .6; line-height: 1.9; margin: 14px 0 0; }

/* 相談の種類を選んだ後に出る案内（選択肢の中で案内しないための受け皿） */
.cf-hint {
  display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 14px;
  margin: 12px 0 0; padding: 14px 16px;
  background: rgba(128,128,128,.09);
  border-left: 2px solid var(--fg, #111);
  font-size: 13px; line-height: 1.9;
}
.cf-hint-text { opacity: .78; }
.cf-hint-link {
  color: inherit; white-space: nowrap;
  border-bottom: 1px solid currentColor; text-decoration: none;
  padding-bottom: 1px;
}
.cf-hint-link:hover { opacity: .65; }

/* ===== 相談内容の振り分け（お問い合わせページ） ===== */
.triage-lede { max-width: 720px; opacity: .72; line-height: 2.1; font-size: 14px; margin: 0 0 36px; }
.triage-lede a { color: inherit; }

/* 4枚なので 1列 / 2×2 / 4列 のいずれかに揃える（3+1の半端を避ける） */
.triage-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0;
  border-top: 1px solid rgba(128,128,128,.22);
  border-left: 1px solid rgba(128,128,128,.22);
}
@media (min-width: 1240px) { .triage-grid { grid-template-columns: repeat(4, 1fr); } }
@media (max-width: 640px)  { .triage-grid { grid-template-columns: 1fr; } }
.triage-card {
  display: flex; flex-direction: column;
  padding: 36px 32px 30px;
  text-decoration: none; color: inherit;
  border-right: 1px solid rgba(128,128,128,.22);
  border-bottom: 1px solid rgba(128,128,128,.22);
  transition: background .25s, transform .25s;
  position: relative;
}
.triage-card:hover { background: rgba(128,128,128,.06); }
.triage-card.is-strong::before {
  content: ''; position: absolute; top: 0; left: 0; right: 0; height: 2px;
  background: var(--fg, #111);
}
.triage-no {
  font-family: var(--mono, monospace); font-size: 11px;
  letter-spacing: .2em; opacity: .35; margin-bottom: 18px;
}
.triage-en {
  font-family: var(--serif, serif); font-style: italic;
  font-size: 13px; letter-spacing: .1em; opacity: .5; margin-bottom: 8px;
}
.triage-jp {
  font-size: 19px; letter-spacing: .06em; line-height: 1.6;
  margin-bottom: 16px;
}
.triage-desc {
  font-size: 13px; line-height: 2; opacity: .68;
  margin-bottom: 26px; flex: 1;
}
.triage-cta {
  font-size: 13px; letter-spacing: .08em;
  display: inline-flex; align-items: center; gap: 10px;
  padding-top: 16px; border-top: 1px solid rgba(128,128,128,.22);
}
.triage-cta em { font-style: normal; transition: transform .25s; }
.triage-card:hover .triage-cta em { transform: translateX(6px); }

@media (max-width: 620px) {
  .triage-card { padding: 28px 22px 24px; }
  .triage-jp { font-size: 17px; }
}

/* ===== 管理委託フォーム ===== */
.mf-lede { max-width: 720px; opacity: .75; line-height: 2.1; font-size: 14px; margin: 0 0 40px; }
.mgmt-form { max-width: 760px; }
.mf-hp { position: absolute !important; left: -9999px !important; top: -9999px !important; height: 1px; width: 1px; overflow: hidden; }

.mf-fieldset { border: 0; margin: 0 0 46px; padding: 0; }
.mf-legend {
  font-family: var(--serif, serif); font-size: 17px; letter-spacing: .1em;
  padding: 0 0 12px; margin-bottom: 26px; width: 100%;
  border-bottom: 1px solid rgba(128,128,128,.25);
}
.mf-note { font-size: 12px; opacity: .55; margin: -14px 0 24px; }

.mf-field { margin-bottom: 24px; }
.mf-field > label {
  display: block; font-size: 13px; letter-spacing: .08em;
  margin-bottom: 9px; opacity: .85;
}
.mf-field .req {
  font-size: 10px; letter-spacing: .12em; margin-left: 10px;
  border: 1px solid currentColor; padding: 2px 7px; opacity: .6; vertical-align: 2px;
}
.mf-grid2 { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 0 24px; }

.mgmt-form input[type="text"],
.mgmt-form input[type="tel"],
.mgmt-form input[type="email"],
.mgmt-form select,
.mgmt-form textarea {
  width: 100%; box-sizing: border-box;
  padding: 13px 14px; font-size: 15px; font-family: inherit; color: inherit;
  background: var(--white, #fff);
  border: 1px solid rgba(128,128,128,.35); border-radius: 0;
  transition: border-color .2s;
}
.mgmt-form input:focus, .mgmt-form select:focus, .mgmt-form textarea:focus {
  outline: none; border-color: var(--fg, #111);
}
.mgmt-form textarea { line-height: 1.9; resize: vertical; }
.mgmt-form select { appearance: none; background-image: linear-gradient(45deg, transparent 50%, currentColor 50%), linear-gradient(135deg, currentColor 50%, transparent 50%); background-position: calc(100% - 18px) 50%, calc(100% - 13px) 50%; background-size: 5px 5px, 5px 5px; background-repeat: no-repeat; padding-right: 38px; }

/* 住所ブロック */
.mf-address { border-left: 2px solid rgba(128,128,128,.2); padding-left: 20px; }
.mf-zip-row { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-bottom: 16px; }
.mf-zip-mark { opacity: .5; font-size: 14px; }
.mf-zip-row input { width: 130px !important; }
.mf-zip-btn {
  font-family: inherit; font-size: 12px; letter-spacing: .06em;
  padding: 11px 18px; cursor: pointer;
  background: var(--fg, #111); color: var(--white, #fff); border: 1px solid var(--fg, #111);
  transition: opacity .2s;
}
.mf-zip-btn:hover { opacity: .82; }
.mf-zip-btn:disabled { opacity: .45; cursor: default; }
.mf-zip-msg { font-size: 12px; opacity: .6; }
.mf-zip-msg.is-ok { color: #1a7f4b; opacity: 1; }
.mf-zip-msg.is-err { color: #b3261e; opacity: 1; }

.mf-row { display: grid; grid-template-columns: 92px 1fr; gap: 14px; align-items: center; margin-bottom: 12px; }
.mf-row label { font-size: 12px; letter-spacing: .06em; opacity: .6; }

.mf-unit { display: flex; align-items: center; gap: 10px; }
.mf-unit input { width: 110px !important; }
.mf-unit span { font-size: 13px; opacity: .6; }

.mf-consent { display: flex; gap: 12px; align-items: flex-start; margin: 8px 0 30px; font-size: 13px; line-height: 1.9; }
.mf-consent input { margin-top: 5px; flex-shrink: 0; }
.mf-consent a { color: inherit; }

.mf-submit { display: flex; flex-wrap: wrap; gap: 22px; align-items: center; }
.mf-submit button:disabled { opacity: .35; cursor: not-allowed; }
.mf-submit-note { font-size: 12px; opacity: .55; line-height: 1.9; margin: 0; }
.mf-submit-note a { color: inherit; }

#mgmt-done, #assess-done { text-align: center; padding: 56px 24px; }
#mgmt-done .cf-done-en, #assess-done .cf-done-en { font-family: var(--serif, serif); font-style: italic; letter-spacing: .16em; opacity: .55; margin-bottom: 12px; }
#mgmt-done h3, #assess-done h3 { font-size: 22px; margin: 0 0 14px; letter-spacing: .08em; }
#mgmt-done p, #assess-done p { opacity: .75; line-height: 2; max-width: 520px; margin: 0 auto; }

/* 任意ラベル・チェックボックス群（査定フォーム） */
.mf-field .opt {
  font-size: 10px; letter-spacing: .12em; margin-left: 10px;
  border: 1px solid currentColor; padding: 2px 7px; opacity: .4; vertical-align: 2px;
}
.mf-checks { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 4px 20px; }
.mf-check {
  display: flex; align-items: center; gap: 10px;
  padding: 11px 0; font-size: 14px; cursor: pointer;
  border-bottom: 1px solid rgba(128,128,128,.14);
}
.mf-check input { flex-shrink: 0; }
.mf-other-text { margin-top: 14px; }
.mf-unit-pre { font-size: 13px; opacity: .6; }

@media (max-width: 620px) {
  .mf-address { padding-left: 14px; }
  .mf-row { grid-template-columns: 1fr; gap: 6px; }
  .mf-zip-row input { width: 120px !important; }
  .mf-grid2 { grid-template-columns: 1fr; }
}

/* ===== CTAストリップ / 連絡先カードの中間幅対策 =====
   styles.css は .cta-strip を 2カラムのまま ~700px まで維持し、
   .contact-methods は 900px まで3カラム。その間（900〜1200px）で
   右カラムが狭すぎて文字が1文字ずつ折り返していた。 */
@media (max-width: 1200px) {
  .cta-strip { grid-template-columns: 1fr; gap: 48px; }
  .cta-strip h3 { font-size: 42px; }
}
/* 収まらなければ自動で段数を減らす */
.contact-methods { grid-template-columns: repeat(auto-fit, minmax(232px, 1fr)); }
.cm-main { white-space: nowrap; }
.cm-body { min-width: 0; }

/* お知らせのリンク化（グリッドを壊さず全体をクリック可能に） */
.news-item-link {
  display: contents;
  color: inherit;
  text-decoration: none;
}

/* フッターの免許表記 */
.footer-license {
  display: flex; flex-wrap: wrap; gap: 6px 28px;
  margin-bottom: 14px; font-size: 11px; letter-spacing: .06em;
  opacity: .45; line-height: 1.9;
}

/* ブログ・コラム */
.post-body { max-width: 720px; }
.post-body p { line-height: 2.4; opacity: .82; margin: 0 0 26px; letter-spacing: .02em; }
.post-meta { display: flex; gap: 18px; align-items: center; margin-bottom: 34px; padding-bottom: 18px; border-bottom: 1px solid rgba(128,128,128,.2); }
.post-meta time { font-size: 13px; letter-spacing: .1em; opacity: .6; }
.post-cat, .post-list-cat { font-size: 10px; letter-spacing: .16em; border: 1px solid currentColor; padding: 4px 10px; opacity: .55; }

.post-list { list-style: none; margin: 0; padding: 0; }
.post-list a {
  display: grid; grid-template-columns: 110px 100px 1fr; gap: 6px 20px; align-items: center;
  padding: 26px 4px; text-decoration: none; color: inherit;
  border-bottom: 1px solid rgba(128,128,128,.14); transition: opacity .2s ease;
}
.post-list a:hover { opacity: .65; }
.post-list time { font-size: 13px; letter-spacing: .08em; opacity: .55; }
.post-list-cat { justify-self: start; }
.post-list-title { font-size: 16px; letter-spacing: .06em; }
.post-list-lede { grid-column: 3; font-size: 12.5px; opacity: .55; line-height: 1.9; }
@media (max-width: 700px) {
  .post-list a { grid-template-columns: 1fr; gap: 8px; }
  .post-list-lede { grid-column: 1; }
}

/* サイトマップページ */
.sitemap-block { margin-bottom: 46px; }
.sitemap-list {
  list-style: none; margin: 0; padding: 0;
  display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 2px 28px;
}
.sitemap-list a {
  display: block; padding: 9px 0; text-decoration: none; color: inherit;
  font-size: 13.5px; letter-spacing: .04em; opacity: .72;
  border-bottom: 1px solid rgba(128,128,128,.12); transition: opacity .2s ease;
}
.sitemap-list a:hover { opacity: 1; }

/* 物件カードのリンク（実データ差し替えで追加） */
.prop-links {
  display: flex; flex-wrap: wrap; gap: 14px;
  margin-top: 16px; padding-top: 14px;
  border-top: 1px solid rgba(128,128,128,.18);
}
.prop-cta {
  font-size: 12px; letter-spacing: .1em; text-decoration: none;
  color: inherit; opacity: .68; transition: opacity .2s ease;
  white-space: nowrap;
}
.prop-cta:hover { opacity: 1; }
.prop-cta-vr { font-weight: 500; opacity: .85; }
a.prop-img { display: block; }
.properties-all { margin-right: auto; align-self: center; }
.properties-head { flex-wrap: wrap; gap: 16px; }

/* ===== 施工実績 / リフォーム / 会社情報ページ ===== */
.gallery-tabs {
  display: flex; flex-wrap: wrap; gap: 6px 26px;
  list-style: none; margin: 0 0 42px; padding: 0 0 18px;
  border-bottom: 1px solid rgba(128,128,128,.2);
}
.gallery-tabs a {
  font-size: 13px; letter-spacing: .1em; text-decoration: none;
  color: inherit; opacity: .55; padding-bottom: 4px;
  border-bottom: 1px solid transparent; transition: opacity .2s ease;
}
.gallery-tabs a:hover { opacity: .9; }
.gallery-tabs a.is-current { opacity: 1; border-bottom-color: currentColor; }

.gallery-grid { grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); }
/* ギャラリーカードのVRバッジ
   ※ styles.css の .vr-badge は top:16px を持つため、bottom だけ足すと
      上下に引き伸ばされる。top:auto で必ず打ち消すこと。 */
.work-img { position: relative; display: block; }
.work-img .vr-badge {
  position: absolute;
  top: auto; right: auto;
  left: 14px; bottom: 14px;
  width: auto; height: auto;
  white-space: nowrap;
}

/* 詳細ページ */
.works-detail-head { max-width: 760px; margin: 0 0 40px; }
.wd-cat { font-size: 12px; letter-spacing: .18em; opacity: .5; margin-bottom: 14px; text-transform: uppercase; }
.wd-address { font-size: 19px; font-weight: 400; letter-spacing: .06em; margin: 0 0 18px; line-height: 1.7; }
.wd-intro { opacity: .75; line-height: 2.1; margin: 0; }

.wd-facts {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 0; margin: 0; border-top: 1px solid rgba(128,128,128,.2);
}
.wd-facts > div {
  display: flex; gap: 18px; padding: 16px 4px;
  border-bottom: 1px solid rgba(128,128,128,.14);
}
.wd-facts dt { font-size: 12px; letter-spacing: .1em; opacity: .5; min-width: 110px; flex-shrink: 0; }
.wd-facts dd { margin: 0; font-size: 14px; letter-spacing: .04em; }

/* 写真グリッド */
.gallery-photos {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 14px;
}
.gph { margin: 0; position: relative; overflow: hidden; background: rgba(128,128,128,.08); }
.gph img { width: 100%; height: 100%; aspect-ratio: 4/3; object-fit: cover; display: block; transition: transform .5s ease; }
.gph:hover img { transform: scale(1.03); }
.gph-before figcaption {
  position: absolute; top: 10px; left: 10px;
  background: rgba(0,0,0,.72); color: #fff;
  font-size: 10px; letter-spacing: .18em; padding: 5px 10px;
}

/* 360度ビュー埋め込み */
.vr-lede { opacity: .7; margin: 0 0 22px; font-size: 14px; letter-spacing: .04em; }
.vr-frame { position: relative; width: 100%; aspect-ratio: 16/9; background: #111; }
.vr-frame iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.vr-more { margin-top: 16px; }

.wd-nav { display: flex; flex-wrap: wrap; gap: 20px; align-items: center; justify-content: space-between; }

/* 会社情報・法務ページ */
.legal-body { max-width: 800px; }
.legal-body p { line-height: 2.2; opacity: .8; margin: 0 0 26px; }
.legal-h { font-size: 15px; letter-spacing: .08em; margin: 34px 0 12px; font-weight: 500; }
.legal-sign { margin-top: 48px; padding-top: 24px; border-top: 1px solid rgba(128,128,128,.2); font-size: 13px; line-height: 2; opacity: .7; }

.company-table { margin: 0; border-top: 1px solid rgba(128,128,128,.2); max-width: 880px; }
.company-table > div { display: flex; flex-wrap: wrap; gap: 10px 32px; padding: 20px 4px; border-bottom: 1px solid rgba(128,128,128,.14); }
.company-table dt { font-size: 12px; letter-spacing: .12em; opacity: .5; min-width: 130px; flex-shrink: 0; padding-top: 2px; }
.company-table dd { margin: 0; font-size: 14px; letter-spacing: .04em; line-height: 1.9; flex: 1; }
.company-note { margin-top: 20px; font-size: 12px; opacity: .5; }

@media (max-width: 700px) {
  .wd-facts dt, .company-table dt { min-width: 96px; }
  .gallery-photos { grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 8px; }
}

/* 物件カードのリンク（実データ差し替えで追加） */
@media (max-width: 900px) {
  nav.nav.menu-open { background: #101010; }
  nav.nav.menu-open .nav-menu {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 100%; left: 0; right: 0;
    background: #101010;
    border-top: 1px solid rgba(255,255,255,.12);
    padding: 18px 28px 26px;
    gap: 4px;
    z-index: 90;
  }
  nav.nav.menu-open .nav-menu a {
    display: block;
    padding: 12px 0;
    color: #fff;
    border-bottom: 1px solid rgba(255,255,255,.08);
  }
  nav.nav.menu-open .nav-menu a span { display: inline-block; margin-right: 10px; opacity: .5; }
  /* バーガー → ✕ */
  nav.nav.menu-open .nav-burger span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  nav.nav.menu-open .nav-burger span:nth-child(2) { opacity: 0; }
  nav.nav.menu-open .nav-burger span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
  nav.nav .nav-burger span { transition: transform .25s ease, opacity .2s ease; }
}
