:root {
  --green: #2f5d50;
  --green-dark: #22463c;
  --cream: #faf7f1;
  --sand: #efe8dc;
  --ink: #2b2a27;
  --muted: #6b665c;
  --accent: #c8553d;
  --line: #ddd4c4;
}
* { box-sizing: border-box; }
body {
  margin: 0;
  background: var(--cream);
  color: var(--ink);
  font-family: "Hiragino Kaku Gothic ProN", "Noto Sans JP", "Yu Gothic", sans-serif;
  line-height: 1.8;
  font-size: 16px;
}
img { max-width: 100%; display: block; }
a { color: var(--green); }
.wrap { max-width: 960px; margin: 0 auto; padding: 0 16px; }

/* ヘッダー */
.site-header { background: #fff; border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 10; }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; height: 60px; }
.logo { font-weight: 700; font-size: 1.2rem; color: var(--green-dark); text-decoration: none; letter-spacing: .05em; }
.btn-mail {
  display: inline-block; background: var(--green); color: #fff; text-decoration: none;
  padding: 8px 16px; border-radius: 999px; font-size: .9rem; font-weight: 700;
}
.btn-mail:hover { background: var(--green-dark); }
.btn-mail.large { padding: 16px 32px; font-size: 1.1rem; }

/* ヒーロー */
.hero { background: var(--green); color: #fff; padding: 56px 0 48px; }
.hero p { margin: 0 0 8px; }
.hero h1 { font-size: clamp(1.5rem, 5vw, 2.2rem); line-height: 1.5; margin: 0 0 16px; }
.fee0 {
  display: inline-block; background: var(--accent); color: #fff; font-weight: 700;
  padding: 4px 14px; border-radius: 6px; letter-spacing: .03em;
}
.hero .fee0 { font-size: 1.3rem; margin-bottom: 16px; }

section { padding: 48px 0; }
section h2 { font-size: 1.4rem; margin: 0 0 24px; padding-left: 12px; border-left: 6px solid var(--green); }
.alt { background: var(--sand); }

/* 物件カード */
.cards { display: grid; gap: 20px; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }
.card { background: #fff; border: 1px solid var(--line); border-radius: 12px; overflow: hidden; text-decoration: none; color: inherit; display: flex; flex-direction: column; }
.card:hover { box-shadow: 0 4px 16px rgba(0,0,0,.08); }
.card img { aspect-ratio: 4 / 3; object-fit: cover; }
.card .body { padding: 16px; }
.card h3 { margin: 0 0 4px; font-size: 1.1rem; }
.card .price { font-size: 1.4rem; font-weight: 700; color: var(--accent); }
.card .price small { font-size: .85rem; color: var(--muted); font-weight: 400; }
.card .meta { color: var(--muted); font-size: .9rem; margin: 0; }
.status { display: inline-block; font-size: .8rem; font-weight: 700; padding: 2px 10px; border-radius: 4px; background: #e3efe9; color: var(--green-dark); margin-bottom: 6px; }
.status.full { background: #eee; color: #888; }

/* 流れ */
.flow { list-style: none; padding: 0; margin: 0; display: grid; gap: 12px; counter-reset: step; }
.flow li { background: #fff; border-radius: 10px; padding: 14px 16px 14px 56px; position: relative; border: 1px solid var(--line); }
.flow li::before {
  counter-increment: step; content: counter(step);
  position: absolute; left: 14px; top: 50%; transform: translateY(-50%);
  width: 30px; height: 30px; border-radius: 50%; background: var(--green); color: #fff;
  display: grid; place-items: center; font-weight: 700;
}

/* FAQ */
details { background: #fff; border: 1px solid var(--line); border-radius: 10px; padding: 12px 16px; margin-bottom: 10px; }
summary { font-weight: 700; cursor: pointer; }
details p { margin: 8px 0 0; }

/* 問い合わせ */
.contact { text-align: center; }
.contact p { margin: 0 0 20px; }

/* 物件詳細 */
.detail-head { padding: 32px 16px 16px; }
.detail-head h1 { margin: 8px 0 4px; font-size: clamp(1.4rem, 5vw, 2rem); }
.catch { font-size: 1.1rem; color: var(--green-dark); font-weight: 700; margin: 0; }
.gallery { display: grid; gap: 8px; grid-template-columns: repeat(2, 1fr); }
.gallery img { border-radius: 8px; aspect-ratio: 4 / 3; object-fit: cover; }
.gallery img:first-child, .gallery figure:first-child { grid-column: 1 / -1; }
.gallery figure { margin: 0; }
.gallery figure img { width: 100%; display: block; }
.gallery figcaption { font-size: .85rem; color: var(--muted); padding: 4px 2px 0; }
.gallery figure.plan img { object-fit: contain; background: #fff; border: 1px solid var(--line); }
.spec { width: 100%; border-collapse: collapse; background: #fff; }
.spec th, .spec td { border: 1px solid var(--line); padding: 10px 12px; text-align: left; vertical-align: top; }
.spec th { background: var(--sand); width: 32%; font-weight: 700; white-space: nowrap; }
.must { color: var(--accent); font-weight: 700; }
.map { width: 100%; height: 300px; border: 0; border-radius: 8px; }
.note { font-size: .85rem; color: var(--muted); }
.others { display: flex; gap: 12px; flex-wrap: wrap; }

/* フッター */
.site-footer { background: var(--green-dark); color: #d9e4df; padding: 32px 0; font-size: .9rem; }
.site-footer a { color: #fff; }

@media (max-width: 600px) {
  .spec th { width: 38%; white-space: normal; }
  .btn-mail { padding: 8px 12px; }
}

/* 入居時の費用（本小路one） */
.cost { background: #fff; }
.cost .wrap { border: 2px solid var(--green); border-radius: 12px; padding: 20px 16px; }
.cost h2 { margin-top: 0; }
.cost-lead { font-size: 1.15rem; font-weight: 700; color: var(--green-dark); margin: 0 0 12px; }

/* 保証会社・火災保険 */
section h3 { font-size: 1.1rem; margin: 24px 0 8px; color: var(--green-dark); }
section h2 + h3 { margin-top: 0; }
.flow .sub { margin: 8px 0; padding-left: 1.2em; }
.flow .sub li { background: none; border: 0; padding: 2px 0; }
.flow .sub li::before { content: none; }
.btn-dl { display: inline-block; margin: 8px 0 4px; padding: 8px 14px; border-radius: 8px; background: var(--green); color: #fff; text-decoration: none; font-weight: bold; }
.btn-dl:hover { background: var(--green-dark); }
.pick { background: #fff; border: 2px solid var(--accent); border-radius: 10px; padding: 14px 16px; margin: 12px 0 8px; }
.pick-title { margin: 0 0 6px; font-weight: 700; color: var(--accent); }
.pick ul { margin: 0; padding-left: 1.2em; }
.pick li { margin: 4px 0; }

/* ハート（お気に入り） */
.site-header .wrap > div { display: flex; gap: 8px; align-items: center; }
.fav-link {
  display: inline-flex; align-items: center; gap: 4px; text-decoration: none; color: var(--accent);
  border: 1.5px solid var(--accent); background: #fff; border-radius: 999px; padding: 6px 12px; font-size: .9rem; font-weight: 700; white-space: nowrap;
}
.fav-link:hover { background: #fdf0ec; }
.gallery .ph { position: relative; }
.heart {
  position: absolute; right: 10px; bottom: 10px; display: inline-flex; align-items: center; gap: 6px;
  border: 1.5px solid var(--accent); color: var(--accent); background: #fff; border-radius: 999px;
  padding: 6px 14px; font: inherit; font-weight: 700; font-size: 1rem; line-height: 1.2; cursor: pointer;
  box-shadow: 0 2px 8px rgba(0,0,0,.25);
}
.heart .ico { font-size: 1.25rem; line-height: 1; }
.heart .n:empty { display: none; }
.heart.on { background: var(--accent); color: #fff; }
.heart:active { transform: scale(.94); }
.card .price-row { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; }
.mini-heart { color: var(--accent); font-weight: 700; white-space: nowrap; }
.badge-video { display: inline-block; font-size: .8rem; font-weight: 700; padding: 2px 10px; border-radius: 4px; background: #2b2a27; color: #fff; margin-left: 4px; }
.fav-empty { background: #fff; border: 1px dashed var(--line); border-radius: 12px; padding: 24px 16px; text-align: center; color: var(--muted); }

/* お部屋の動画 */
.room-video { display: block; width: 100%; max-width: 360px; aspect-ratio: 9 / 16; margin: 0 auto; border-radius: 12px; background: #000; }

@media (max-width: 600px) {
  .site-header .wrap { gap: 8px; }
  .logo { font-size: 1rem; }
  .site-header .btn-mail { font-size: .8rem; padding: 6px 10px; }
  .fav-link { font-size: .8rem; padding: 5px 9px; }
}
@media (max-width: 420px) { .fav-word { display: none; } }
.bgm-pick { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 6px; max-width: 360px; margin: 10px auto 0; }
.bgm-pick span { font-size: .85rem; color: var(--muted); font-weight: 700; }
.bgm-pick button { font: inherit; font-size: .85rem; padding: 5px 12px; border-radius: 999px; border: 1px solid var(--green); background: #fff; color: var(--green); cursor: pointer; }
.bgm-pick button.on { background: var(--green); color: #fff; }

.updated { margin: -8px 0 16px; font-size: .9rem; color: #666; }
.campaign { display: inline-block; margin-top: 12px; padding: 10px 16px; background: #fff; color: var(--green); border-radius: 8px; text-decoration: none; font-size: .95rem; line-height: 1.5; }
.campaign strong { color: #c0392b; }
.nw { display: inline-block; }
.nearby { margin-bottom: 8px; }
.nearby .dist { color: var(--green-dark); font-weight: 700; font-size: .95rem; }
.wait .wrap { border: 2px dashed var(--green); border-radius: 12px; padding: 20px 16px; }
.wait-points { padding-left: 1.2em; margin: 0 0 16px; }
.wait-points li { margin-bottom: 4px; }
.wait-link { margin-top: 16px; font-size: .95rem; }
.wait-link a { color: var(--green-dark); font-weight: 700; }

/* LINE公式アカウント（友だち追加） */
.btn-line {
  display: inline-block; background: #06c755; color: #fff; text-decoration: none; font-weight: 700;
  padding: 10px 18px; border-radius: 8px;
}
.btn-line:hover { background: #05a548; }
.btn-line.large { padding: 16px 32px; font-size: 1.1rem; }
.line-box { margin-top: 24px; padding-top: 20px; border-top: 1px dashed var(--line); }
.line-box p { margin: 0 0 12px; }
.line-qr { display: block; width: 140px; height: 140px; margin: 12px auto 4px; }
.line-qr-note { font-size: .85rem; color: var(--muted); }
@media (max-width: 600px) { .line-qr, .line-qr-note { display: none; } }

/* ロゴのマーク（丸い紋） */
.logo { display: inline-flex; align-items: center; gap: 8px; }
.logo-mark { width: 34px; height: 34px; flex: none; }
@media (max-width: 600px) { .logo-mark { width: 28px; height: 28px; } }

/* 間取り図は横いっぱい・縦長のまま見せる（小さいと読めないため） */
.gallery figure.plan { grid-column: 1 / -1; }
.gallery figure.plan img { aspect-ratio: auto; max-height: 560px; }
