/* ============================================================
   098 すまいの窓口 サンプル不動産 — 地域密着型 不動産売買・賃貸仲介
   warm ivory / terracotta / sage ・ Zen Maru Gothic × Noto Sans JP
   ============================================================ */

:root {
  --bg:        #FAF6EF;
  --bg2:       #F3ECDF;
  --white:     #FFFFFF;
  --ink:       #2B2723;
  --ink-soft:  #5C544B;
  --terra:     #C4633E;  /* 装飾・大見出しアクセント用 */
  --terra-d:   #9E4A2B;  /* ボタン背景・小文字テキスト用（白文字 6.0:1 / ivory地 5.6:1） */
  --terra-darker: #813B21; /* hover用（白文字 8.1:1） */
  --sage:      #6E7F5C;
  --sage-d:    #4E5C42;  /* 白文字 7.1:1 */
  --sage-pale: #E7EBDF;
  --line:      #E4DACA;
  --radius:    22px;
  --radius-s:  14px;
  --shadow:    0 10px 34px rgba(70, 50, 30, .09);
  --font-head: 'Zen Maru Gothic', 'Noto Sans JP', sans-serif;
  --font-body: 'Noto Sans JP', sans-serif;
}

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

html { overflow-x: hidden; scroll-behavior: smooth; }
body {
  overflow-x: hidden;
  padding-top: 36px; /* デモバー分 */
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--bg);
  line-height: 1.85;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; }

.container { max-width: 1160px; margin: 0 auto; padding: 0 24px; }

/* ─── DEMO BAR ─────────────────────────────────────────── */
#demo-bar {
  position: fixed; top: 0; left: 0; right: 0; z-index: 2000;
  background: rgba(43, 39, 35, .97);
  border-bottom: 1px solid rgba(255,255,255,.08);
  padding: 7px 0;
}
.demo-bar-inner {
  display: flex; align-items: center; justify-content: center; gap: 10px;
  font-size: .7rem; color: rgba(255,255,255,.45);
}
.demo-badge {
  font-size: .54rem; font-weight: 700; letter-spacing: .16em; text-transform: uppercase;
  background: rgba(196, 99, 62, .25); color: #F0B9A0;
  padding: 3px 10px; border-radius: 99px; flex-shrink: 0;
}
.demo-link { color: #F0B9A0; font-weight: 700; text-decoration: underline; text-underline-offset: 2px; }
.demo-copy { color: rgba(255,255,255,.22); font-size: .62rem; margin-left: 4px; }
@media (max-width: 640px) { .demo-copy { display: none; } }

/* ─── HEADER ───────────────────────────────────────────── */
.site-header {
  position: fixed; top: 36px; left: 0; right: 0; z-index: 1000;
  background: rgba(250, 246, 239, .92);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
  transition: box-shadow .3s;
}
.site-header.is-scrolled { box-shadow: 0 4px 20px rgba(70,50,30,.08); }
.header-inner {
  display: flex; align-items: center; justify-content: space-between;
  height: 74px; gap: 20px;
}
.site-logo { display: flex; align-items: center; gap: 10px; font-family: var(--font-head); }
.site-logo .logo-mark { width: 34px; height: 34px; flex-shrink: 0; }
.site-logo .logo-text { display: flex; flex-direction: column; line-height: 1.3; }
.site-logo .logo-sub { font-size: .6rem; letter-spacing: .14em; color: var(--terra-d); font-weight: 700; }
.site-logo .logo-main { font-size: 1.05rem; font-weight: 800; letter-spacing: .04em; }

.header-nav { display: flex; align-items: center; gap: 26px; }
.header-nav a { font-size: .86rem; font-weight: 500; position: relative; padding: 6px 0; }
.header-nav a::after {
  content: ""; position: absolute; left: 0; bottom: 0; width: 0; height: 2px;
  background: var(--terra); border-radius: 2px; transition: width .3s;
}
.header-nav a:hover::after { width: 100%; }

.header-cta,
.header-nav a.header-cta {
  background: var(--terra-d); color: #fff; font-weight: 700;
  padding: 11px 22px; border-radius: 99px; font-size: .84rem;
  transition: background .3s;
}
.header-cta:hover,
.header-nav a.header-cta:hover { background: var(--terra-darker); color: #fff; }
.header-nav a.header-cta::after { display: none; }

/* モバイルnav用パーツ（PCでは非表示） */
.mobile-nav-close, .mobile-nav-home { display: none; }

.hamburger {
  display: none; background: none; border: none; cursor: pointer;
  font-size: 1.5rem; color: var(--ink); line-height: 1; padding: 8px;
}

/* ─── REVEAL（CSS-only・JS非依存） ─────────────────────── */
.reveal { opacity: 1; animation: reveal-in .9s cubic-bezier(.2, .7, .2, 1) both; }
@keyframes reveal-in {
  from { opacity: 0; transform: translateY(18px); }
  to   { opacity: 1; transform: none; }
}
.reveal-up  { animation-delay: .08s; }
.reveal-up2 { animation-delay: .18s; }
.reveal-up3 { animation-delay: .28s; }
@media (prefers-reduced-motion: reduce) {
  .reveal, .reveal-up, .reveal-up2, .reveal-up3 { animation: none; opacity: 1; transform: none; }
}

/* ─── HERO（上下スタック型） ────────────────────────────── */
.hero { padding: 128px 0 0; }
.hero-copy { text-align: center; max-width: 780px; margin: 0 auto 48px; }
.hero-eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: .78rem; font-weight: 700; letter-spacing: .18em;
  color: var(--sage-d); background: var(--sage-pale);
  padding: 6px 18px; border-radius: 99px; margin-bottom: 26px;
}
.hero h1 {
  font-family: var(--font-head);
  font-size: clamp(40px, 6vw, 74px);
  font-weight: 900; letter-spacing: .04em; line-height: 1.35;
  margin-bottom: 20px;
}
.hero h1 .accent { color: var(--terra); }
.hero-lead { font-size: 1.02rem; color: var(--ink-soft); margin-bottom: 34px; }
.hero-cta { display: flex; justify-content: center; gap: 16px; flex-wrap: wrap; }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font-family: var(--font-head); font-weight: 700; font-size: .95rem;
  padding: 16px 38px; border-radius: 99px; border: none; cursor: pointer;
  transition: background .3s, color .3s, transform .2s;
}
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--terra-d); color: #fff; }
.btn-primary:hover, .btn-primary:focus { background: var(--terra-darker); color: #fff; }
.btn-ghost { background: transparent; color: var(--ink); border: 2px solid var(--ink); }
.btn-ghost:hover, .btn-ghost:focus { background: var(--ink); color: var(--bg); }
.btn-sage { background: var(--sage-d); color: #fff; }
.btn-sage:hover, .btn-sage:focus { background: #3E4A34; color: #fff; }

.hero-visual { border-radius: var(--radius) var(--radius) 0 0; overflow: hidden; max-height: 560px; }
.hero-visual img { width: 100%; height: 560px; object-fit: cover; }

/* ─── NEWS STRIP（上部配置） ────────────────────────────── */
.news-strip { background: var(--white); border-bottom: 1px solid var(--line); }
.news-strip .container { display: flex; align-items: center; gap: 24px; padding-top: 18px; padding-bottom: 18px; }
.news-strip-label {
  font-family: var(--font-head); font-weight: 800; font-size: .82rem;
  color: var(--terra-d); letter-spacing: .12em; flex-shrink: 0;
}
.news-strip-list { flex: 1; min-width: 0; }
.news-strip-item { display: flex; align-items: baseline; gap: 16px; font-size: .88rem; }
.news-strip-item time { color: var(--ink-soft); font-size: .78rem; flex-shrink: 0; }
.news-strip-item .news-tag {
  font-size: .68rem; font-weight: 700; color: var(--sage-d);
  background: var(--sage-pale); border-radius: 99px; padding: 2px 12px; flex-shrink: 0;
}
.news-strip-item a { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.news-strip-item a:hover { color: var(--terra-d); text-decoration: underline; text-underline-offset: 3px; }
.news-strip-more { font-size: .8rem; font-weight: 700; color: var(--terra-d); flex-shrink: 0; }
.news-strip-more:hover { text-decoration: underline; text-underline-offset: 3px; }

/* ─── SECTION 共通 ─────────────────────────────────────── */
.section { padding: 96px 0; }
.section-alt { background: var(--bg2); }
.section-head { text-align: center; margin-bottom: 56px; }
.section-en {
  display: block; font-size: .74rem; font-weight: 700; letter-spacing: .26em;
  text-transform: uppercase; color: var(--terra-d); margin-bottom: 12px;
}
.section-title {
  font-family: var(--font-head); font-size: clamp(26px, 3.4vw, 40px);
  font-weight: 800; letter-spacing: .04em;
}
.section-lead { max-width: 640px; margin: 18px auto 0; color: var(--ink-soft); font-size: .95rem; }

/* ─── REASON（選ばれる理由） ────────────────────────────── */
.reason-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.reason-card {
  background: var(--white); border-radius: var(--radius);
  padding: 38px 32px; box-shadow: var(--shadow);
}
.reason-head { display: flex; align-items: center; gap: 14px; margin-bottom: 14px; }
.reason-icon {
  flex-shrink: 0; width: 46px; height: 46px; border-radius: 14px;
  background: var(--sage-pale); display: flex; align-items: center; justify-content: center;
}
.reason-icon svg { width: 24px; height: 24px; stroke: var(--sage-d); }
.reason-num { font-size: .7rem; font-weight: 700; letter-spacing: .2em; color: var(--terra-d); display: block; }
.reason-title { font-family: var(--font-head); font-size: 1.12rem; font-weight: 800; line-height: 1.5; }
.reason-card p { font-size: .9rem; color: var(--ink-soft); }

/* ─── SERVICE ──────────────────────────────────────────── */
.service-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.service-card {
  background: var(--white); border-radius: var(--radius); overflow: hidden;
  box-shadow: var(--shadow); display: flex; flex-direction: column;
  transition: transform .3s;
}
.service-card:hover { transform: translateY(-6px); }
.service-card img { height: 210px; width: 100%; object-fit: cover; }
.service-body { padding: 28px 28px 32px; flex: 1; display: flex; flex-direction: column; }
.service-head { display: flex; align-items: center; gap: 12px; margin-bottom: 12px; }
.service-icon {
  flex-shrink: 0; width: 40px; height: 40px; border-radius: 12px;
  background: #F6E3D8; display: flex; align-items: center; justify-content: center;
}
.service-icon svg { width: 22px; height: 22px; stroke: var(--terra-d); }
.service-title { font-family: var(--font-head); font-size: 1.1rem; font-weight: 800; }
.service-body p { font-size: .9rem; color: var(--ink-soft); flex: 1; }
.service-link {
  margin-top: 18px; font-size: .84rem; font-weight: 700; color: var(--terra-d);
  display: inline-flex; align-items: center; gap: 6px;
}
.service-link:hover { text-decoration: underline; text-underline-offset: 3px; }

/* ─── PROPERTY（物件ピックアップ） ──────────────────────── */
.property-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.property-card {
  background: var(--white); border-radius: var(--radius); overflow: hidden;
  box-shadow: var(--shadow); transition: transform .3s;
}
.property-card:hover { transform: translateY(-6px); }
.property-thumb { position: relative; }
.property-thumb img { height: 220px; width: 100%; object-fit: cover; }
.property-badge {
  position: absolute; top: 14px; left: 14px;
  font-size: .7rem; font-weight: 700; letter-spacing: .08em;
  background: var(--terra-d); color: #fff;
  padding: 5px 14px; border-radius: 99px;
}
.property-badge.badge-rent { background: var(--sage-d); }
.property-body { padding: 24px 26px 28px; }
.property-name { font-family: var(--font-head); font-size: 1.04rem; font-weight: 800; margin-bottom: 6px; }
.property-price { font-size: 1.2rem; font-weight: 800; color: var(--terra-d); margin-bottom: 12px; }
.property-price small { font-size: .74rem; font-weight: 500; color: var(--ink-soft); margin-left: 4px; }
.property-spec { display: flex; flex-wrap: wrap; gap: 8px; }
.property-spec span {
  font-size: .72rem; color: var(--ink-soft);
  background: var(--bg2); border-radius: 8px; padding: 4px 10px;
}
.property-note { text-align: center; margin-top: 34px; font-size: .8rem; color: var(--ink-soft); }

/* ─── STAFF ────────────────────────────────────────────── */
.staff-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.staff-card { text-align: center; }
.staff-card img {
  width: 100%; aspect-ratio: 3 / 4; object-fit: cover;
  border-radius: var(--radius); box-shadow: var(--shadow); margin-bottom: 20px;
}
.staff-role { font-size: .74rem; font-weight: 700; letter-spacing: .14em; color: var(--sage-d); display: block; margin-bottom: 4px; }
.staff-name { font-family: var(--font-head); font-size: 1.16rem; font-weight: 800; margin-bottom: 10px; }
.staff-card p { font-size: .86rem; color: var(--ink-soft); text-align: left; }

/* ─── ACCESS ───────────────────────────────────────────── */
.access-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: center; }
.access-photo img { border-radius: var(--radius); box-shadow: var(--shadow); width: 100%; height: 400px; object-fit: cover; }
.access-info h3 { font-family: var(--font-head); font-size: 1.3rem; font-weight: 800; margin-bottom: 20px; }
.access-table { width: 100%; border-collapse: collapse; font-size: .9rem; }
.access-table th, .access-table td { padding: 13px 8px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
.access-table th { width: 108px; color: var(--terra-d); font-weight: 700; white-space: nowrap; }

/* ─── CTA BAND ─────────────────────────────────────────── */
.cta-band { background: var(--ink); border-radius: var(--radius); padding: 72px 40px; text-align: center; color: #fff; }
.cta-band h2 { font-family: var(--font-head); font-size: clamp(24px, 3vw, 36px); font-weight: 800; margin-bottom: 14px; }
.cta-band p { color: rgba(255,255,255,.75); font-size: .94rem; margin-bottom: 30px; }
.cta-band .btn-primary { background: var(--terra); color: #fff; }
.cta-band .btn-primary:hover, .cta-band .btn-primary:focus { background: #D97B54; color: #fff; }
.cta-band .cta-tel { font-family: var(--font-head); font-size: 1.7rem; font-weight: 800; color: #fff; letter-spacing: .04em; }
.cta-band .cta-tel-note { font-size: .76rem; color: rgba(255,255,255,.6); margin: 6px 0 0; }
.cta-actions { display: flex; align-items: center; justify-content: center; gap: 38px; flex-wrap: wrap; }

/* ─── FOOTER ───────────────────────────────────────────── */
.site-footer { background: var(--bg2); border-top: 1px solid var(--line); padding: 64px 0 36px; margin-top: 96px; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 48px; margin-bottom: 44px; }
.footer-brand .site-logo { margin-bottom: 16px; }
.footer-brand p { font-size: .82rem; color: var(--ink-soft); }
.footer-col h4 { font-family: var(--font-head); font-size: .88rem; font-weight: 800; margin-bottom: 16px; color: var(--terra-d); }
.footer-col li { margin-bottom: 10px; }
.footer-col a { font-size: .86rem; color: var(--ink-soft); }
.footer-col a:hover { color: var(--terra-d); text-decoration: underline; text-underline-offset: 3px; }
.footer-bottom { border-top: 1px solid var(--line); padding-top: 24px; display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; }
.footer-bottom small { font-size: .74rem; color: var(--ink-soft); }
.footer-license { font-size: .74rem; color: var(--ink-soft); }

/* ─── サブページ共通 ────────────────────────────────────── */
.page-hero { padding: 150px 0 64px; text-align: center; background: var(--bg2); border-bottom: 1px solid var(--line); }
.page-hero .section-en { margin-bottom: 8px; }
.page-hero h1 { font-family: var(--font-head); font-size: clamp(30px, 4.4vw, 50px); font-weight: 900; letter-spacing: .05em; }
.page-hero p { color: var(--ink-soft); margin-top: 14px; font-size: .92rem; }

.breadcrumb { padding: 16px 0; font-size: .76rem; color: var(--ink-soft); }
.breadcrumb a:hover { color: var(--terra-d); text-decoration: underline; }
.breadcrumb .sep { margin: 0 8px; color: var(--line); }

/* ─── ABOUT ────────────────────────────────────────────── */
.about-message { display: grid; grid-template-columns: 1fr 1.2fr; gap: 48px; align-items: center; }
.about-message img { border-radius: var(--radius); box-shadow: var(--shadow); width: 100%; height: 440px; object-fit: cover; }
.about-message h2 { font-family: var(--font-head); font-size: clamp(22px, 2.8vw, 32px); font-weight: 800; line-height: 1.6; margin-bottom: 20px; }
.about-message p { font-size: .94rem; color: var(--ink-soft); margin-bottom: 16px; }
.about-sign { font-family: var(--font-head); font-weight: 800; font-size: 1rem; margin-top: 12px; }
.about-sign small { display: block; font-weight: 500; font-size: .76rem; color: var(--ink-soft); margin-bottom: 4px; }

.company-table { width: 100%; border-collapse: collapse; font-size: .92rem; max-width: 820px; margin: 0 auto; }
.company-table th, .company-table td { padding: 18px 12px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
.company-table th { width: 180px; color: var(--terra-d); font-weight: 700; white-space: nowrap; }

/* ─── SERVICE ページ ───────────────────────────────────── */
.service-detail { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: center; margin-bottom: 88px; }
.service-detail:last-child { margin-bottom: 0; }
.service-detail.is-flip .service-detail-photo { order: 2; }
.service-detail-photo img { border-radius: var(--radius); box-shadow: var(--shadow); width: 100%; height: 380px; object-fit: cover; }
.service-detail h3 { font-family: var(--font-head); font-size: 1.5rem; font-weight: 800; margin-bottom: 16px; }
.service-detail h3 .service-detail-en { display: block; font-size: .7rem; letter-spacing: .22em; color: var(--terra-d); text-transform: uppercase; margin-bottom: 8px; }
.service-detail p { font-size: .92rem; color: var(--ink-soft); margin-bottom: 14px; }
.service-points { margin-top: 18px; }
.service-points li { display: flex; align-items: baseline; gap: 10px; font-size: .88rem; margin-bottom: 10px; }
.service-points li::before { content: ""; flex-shrink: 0; width: 8px; height: 8px; border-radius: 99px; background: var(--terra); transform: translateY(-1px); }

/* ─── FLOW ─────────────────────────────────────────────── */
.flow-list { max-width: 760px; margin: 0 auto; }
.flow-item {
  display: flex; gap: 24px; background: var(--white); border-radius: var(--radius);
  padding: 28px 32px; box-shadow: var(--shadow); margin-bottom: 20px;
}
.flow-num {
  flex-shrink: 0; width: 52px; height: 52px; border-radius: 99px;
  background: var(--terra-d); color: #fff; display: flex; align-items: center; justify-content: center;
  font-family: var(--font-head); font-weight: 800; font-size: 1.1rem;
}
.flow-body h4 { font-family: var(--font-head); font-size: 1.05rem; font-weight: 800; margin-bottom: 6px; }
.flow-body p { font-size: .88rem; color: var(--ink-soft); }

/* ─── CONTACT ──────────────────────────────────────────── */
.contact-grid { display: grid; grid-template-columns: 1.3fr 1fr; gap: 48px; align-items: start; }
.contact-form-wrap { background: var(--white); border-radius: var(--radius); padding: 44px 42px; box-shadow: var(--shadow); }
.contact-form-wrap h3 { font-family: var(--font-head); font-size: 1.2rem; font-weight: 800; margin-bottom: 24px; }
.form-field { margin-bottom: 22px; }
.form-field label { display: block; font-size: .84rem; font-weight: 700; margin-bottom: 8px; }
.form-required {
  font-size: .64rem; font-weight: 700; color: #fff; background: var(--terra-d);
  border-radius: 6px; padding: 2px 8px; margin-left: 8px; vertical-align: 1px;
}
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form-field input, .form-field select, .form-field textarea {
  width: 100%; padding: 13px 16px; font-size: .94rem; font-family: var(--font-body);
  border: 1.5px solid var(--line); border-radius: var(--radius-s);
  background: var(--bg); color: var(--ink); transition: border-color .3s;
}
.form-field input:focus, .form-field select:focus, .form-field textarea:focus {
  outline: none; border-color: var(--terra-d);
}
.form-field textarea { min-height: 150px; resize: vertical; }
.form-submit-wrap { text-align: center; margin-top: 30px; }
.form-note { font-size: .76rem; color: var(--ink-soft); margin-top: 14px; }
.form-demo-msg {
  margin-top: 16px; font-size: .84rem; font-weight: 700; color: var(--sage-d);
  background: var(--sage-pale); border-radius: var(--radius-s); padding: 12px 18px;
}

.contact-side { display: flex; flex-direction: column; gap: 28px; }
.contact-info-card { background: var(--white); border-radius: var(--radius); padding: 32px; box-shadow: var(--shadow); }
.contact-info-card h3 { font-family: var(--font-head); font-size: 1.05rem; font-weight: 800; margin-bottom: 14px; }
.contact-info-card p { font-size: .86rem; color: var(--ink-soft); margin-bottom: 8px; }
.contact-tel { font-family: var(--font-head); font-size: 1.6rem; font-weight: 800; color: var(--terra-d); letter-spacing: .03em; }
.map-placeholder {
  border-radius: var(--radius); background: var(--bg2); border: 1.5px dashed var(--line);
  height: 240px; display: flex; align-items: center; justify-content: center;
  font-size: .8rem; color: var(--ink-soft); text-align: center; padding: 20px;
}

/* ─── PRIVACY / 記事 ───────────────────────────────────── */
.prose { max-width: 760px; margin: 0 auto; }
.prose h2 { font-family: var(--font-head); font-size: 1.2rem; font-weight: 800; margin: 44px 0 14px; padding-left: 14px; border-left: 4px solid var(--terra); }
.prose p, .prose li { font-size: .92rem; color: var(--ink-soft); margin-bottom: 12px; }
.prose ul { padding-left: 4px; }
.prose ul li { display: flex; gap: 10px; }
.prose ul li::before { content: "・"; color: var(--terra-d); flex-shrink: 0; }

/* ─── NEWS 一覧・記事 ──────────────────────────────────── */
.news-list { max-width: 760px; margin: 0 auto; }
.news-list-item {
  display: flex; align-items: baseline; gap: 20px;
  background: var(--white); border-radius: var(--radius-s);
  padding: 22px 28px; box-shadow: var(--shadow); margin-bottom: 16px;
  transition: transform .25s;
}
.news-list-item:hover { transform: translateX(6px); }
.news-list-item time { font-size: .78rem; color: var(--ink-soft); flex-shrink: 0; }
.news-list-item .news-tag {
  font-size: .68rem; font-weight: 700; color: var(--sage-d);
  background: var(--sage-pale); border-radius: 99px; padding: 2px 12px; flex-shrink: 0;
}
.news-list-item .news-title { font-size: .92rem; font-weight: 500; }
.article-head { text-align: center; margin-bottom: 44px; }
.article-head time { font-size: .8rem; color: var(--ink-soft); display: block; margin-bottom: 10px; }
.article-head h1 { font-family: var(--font-head); font-size: clamp(24px, 3.2vw, 34px); font-weight: 800; line-height: 1.6; }
.article-back { text-align: center; margin-top: 48px; }

/* ============================================================
   MOBILE
   ============================================================ */
@media (max-width: 900px) {

  .hamburger { display: block; z-index: 1100; position: relative; }

  /* ── ハンバーガー透け防止 3点セット + 暖簾ドロップ ── */
  .header-nav {
    position: fixed; inset: 0;
    background: var(--bg); /* 不透明ソリッド */
    z-index: 1000;
    display: flex; flex-direction: column; align-items: center; justify-content: center;
    gap: 8px;
    clip-path: inset(0 0 100% 0);
    visibility: hidden;
    transition: clip-path .55s cubic-bezier(.7, 0, .25, 1), visibility 0s .55s;
  }
  .header-nav.is-open {
    clip-path: inset(0 0 0% 0);
    visibility: visible;
    transition: clip-path .55s cubic-bezier(.7, 0, .25, 1), visibility 0s 0s;
  }
  .header-nav a {
    font-family: var(--font-head); font-size: 1.15rem; font-weight: 800;
    padding: 12px 0; opacity: 0; transform: translateY(-14px);
    transition: opacity .4s, transform .4s;
  }
  .header-nav.is-open a { opacity: 1; transform: none; }
  .header-nav.is-open a:nth-child(1) { transition-delay: .16s; }
  .header-nav.is-open a:nth-child(2) { transition-delay: .24s; }
  .header-nav.is-open a:nth-child(3) { transition-delay: .32s; }
  .header-nav.is-open a:nth-child(4) { transition-delay: .40s; }
  .header-nav.is-open a:nth-child(5) { transition-delay: .48s; }
  .header-nav.is-open a:nth-child(6) { transition-delay: .56s; }
  .header-nav.is-open a:nth-child(7) { transition-delay: .64s; }
  .header-nav.is-open a:nth-child(8) { transition-delay: .72s; }
  .header-nav.is-open a:nth-child(9) { transition-delay: .80s; }
  .header-nav a::after { display: none; }

  .site-header,
  .site-header.is-scrolled,
  .site-header.menu-active {
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
  }
  .site-header.menu-active {
    background: var(--bg) !important;
  }

  /* 閉じるボタン・HOMEリンク（モバイルのみ表示） */
  .mobile-nav-close {
    display: block; position: absolute; top: 56px; right: 22px;
    background: none; border: 1.5px solid var(--ink); border-radius: 99px;
    font-family: var(--font-head); font-weight: 700; font-size: .86rem;
    color: var(--ink); padding: 9px 20px; cursor: pointer;
    opacity: 0; transition: opacity .4s .2s;
  }
  .header-nav.is-open .mobile-nav-close { opacity: 1; }
  .mobile-nav-home {
    display: inline-block; margin-top: 10px;
    background: var(--terra-d); color: #fff !important; border-radius: 99px;
    padding: 12px 40px !important;
  }
  .header-nav a.mobile-nav-home:hover { background: var(--terra-darker); }

  .header-nav a.header-cta { background: transparent; color: var(--terra-d); padding: 12px 0; }

  /* グリッド1カラム化 */
  .reason-grid, .service-grid, .property-grid, .staff-grid { grid-template-columns: 1fr; }
  .access-grid, .about-message, .service-detail { grid-template-columns: 1fr; }
  .service-detail.is-flip .service-detail-photo { order: 0; }
  .footer-grid { grid-template-columns: 1fr; gap: 32px; }

  .hero { padding-top: 108px; }
  .hero-visual img { height: 380px; }
  .about-message img { height: 320px; }
  .section { padding: 68px 0; }

  .news-strip .container { flex-wrap: wrap; gap: 10px; }
  .news-strip-item a { white-space: normal; }
}

@media (max-width: 767px) {

  /* ── contact スマホ縦1カラム（2階層・強化版） ── */
  .contact-grid, .contact-layout, .contact-wrap, .contact-flex,
  [class*="contact-grid"], [class*="contact-layout"], [class*="contact-wrap"] {
    display: block !important;
    grid-template-columns: 1fr !important;
    flex-direction: column !important;
    gap: 32px;
  }
  .contact-side { margin-top: 32px; }

  .form-row, .form-grid, .form-2col, .form-pair, .input-row, .input-grid,
  [class*="form-row"], [class*="form-grid"], [class*="two-col"] {
    display: block !important;
    grid-template-columns: 1fr !important;
  }
  form input[type="text"], form input[type="email"], form input[type="tel"],
  form input[type="number"], form textarea, form select,
  .form-row > input, .form-row > textarea, .form-row > select,
  .form-row > div, .form-grid > * {
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box;
  }
  .form-row, .form-grid { margin-bottom: 1rem; }
  .form-row .form-field { margin-bottom: 22px; }

  .contact-form-wrap { padding: 32px 24px; }
  .cta-band { padding: 52px 24px; }
  .flow-item { flex-direction: column; gap: 14px; padding: 24px; }
  .news-list-item { flex-wrap: wrap; gap: 10px; }
}
