/* 建築モール 公式サイト 共通スタイル（スマホ優先） */
:root {
  --red: #9b1c22;
  --red-dark: #7a151a;
  --ink: #222;
  --gray: #4d4d4f;
  --muted: #666;
  --line: #e2ddd5;
  --bg: #ffffff;
  --bg-soft: #f7f4ef;
  --yellow: #fff36b;
  --green: #06c755;
  --radius: 12px;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: "Hiragino Kaku Gothic ProN", "Hiragino Sans", "Noto Sans JP", Meiryo, sans-serif;
  font-size: 17px;
  line-height: 1.8;
  overflow-wrap: anywhere;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--red); }
h1, h2, h3 { line-height: 1.4; margin: 0 0 .6em; }
h1 { font-size: 1.6rem; }
h2 { font-size: 1.35rem; }
h3 { font-size: 1.1rem; }
p { margin: 0 0 1em; }
ul, ol { padding-left: 1.3em; margin: 0 0 1em; }

.wrap { max-width: 960px; margin: 0 auto; padding: 0 16px; }

/* ===== ヘッダー ===== */
.site-header {
  position: sticky; top: 0; z-index: 10;
  background: #fff;
  border-bottom: 1px solid var(--line);
}
.site-header .wrap {
  display: flex; align-items: center; justify-content: space-between;
  gap: 12px; min-height: 60px;
}
.logo img { width: 170px; }
.menu { position: relative; }
.menu summary {
  list-style: none; cursor: pointer;
  border: 2px solid var(--gray); border-radius: 8px;
  padding: 4px 12px; font-weight: bold; font-size: .95rem;
}
.menu summary::-webkit-details-marker { display: none; }
.menu[open] summary { background: var(--gray); color: #fff; }
.menu nav {
  position: absolute; right: 0; top: calc(100% + 8px);
  width: min(300px, calc(100vw - 32px));
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  box-shadow: 0 8px 24px rgba(0,0,0,.12);
  padding: 8px 0;
}
.menu nav a {
  display: block; padding: 10px 18px;
  color: var(--ink); text-decoration: none; font-weight: bold;
}
.menu nav a:hover, .menu nav a[aria-current="page"] { background: var(--bg-soft); color: var(--red); }

/* ===== 本文 ===== */
main { padding-bottom: 40px; }
.page-title {
  background: var(--bg-soft);
  border-bottom: 4px solid var(--red);
  padding: 28px 0 20px;
  margin-bottom: 28px;
}
.page-title h1 { margin: 0; }
.page-title p { margin: .4em 0 0; color: var(--muted); }
.breadcrumb { font-size: .85rem; color: var(--muted); margin-bottom: 6px; }
.breadcrumb a { color: var(--muted); }

section { margin: 0 0 40px; }
.section-title {
  border-left: 6px solid var(--red);
  padding-left: 12px;
}

/* ヒーロー（トップ） */
.hero { background: var(--bg-soft); padding: 32px 0 36px; margin-bottom: 36px; }
.hero h1 { font-size: 1.75rem; }
.hero h1 .accent { color: var(--red); }
.hero .lead { font-size: 1.05rem; }

/* ボタン */
.buttons { display: grid; gap: 12px; margin: 20px 0 0; }
.btn {
  display: block; text-align: center; text-decoration: none;
  font-weight: bold; font-size: 1.05rem;
  padding: 15px 16px; border-radius: 999px;
  border: 2px solid var(--red);
}
.btn-primary { background: var(--red); color: #fff; }
.btn-primary:hover { background: var(--red-dark); }
.btn-outline { background: #fff; color: var(--red); }
.btn-gray { background: #fff; color: var(--gray); border-color: var(--gray); }
.btn-line { background: var(--green); border-color: var(--green); color: #fff; }
.btn[aria-disabled="true"] { opacity: .55; pointer-events: none; }

/* カード */
.cards { display: grid; gap: 16px; }
.card {
  border: 1px solid var(--line); border-radius: var(--radius);
  padding: 18px; background: #fff;
}
.card h3 { color: var(--red); }
.card p:last-child, .card ul:last-child { margin-bottom: 0; }
a.card { display: block; color: inherit; text-decoration: none; }
a.card:hover { border-color: var(--red); }
a.card .more { color: var(--red); font-weight: bold; font-size: .95rem; }
.pillar { text-align: center; border-top: 5px solid var(--red); }
.pillar .num { font-size: .9rem; color: var(--muted); font-weight: bold; }
.pillar p { text-align: left; }

/* 流れ */
.steps { list-style: none; padding: 0; counter-reset: step; display: grid; gap: 12px; }
.steps li {
  counter-increment: step;
  border: 1px solid var(--line); border-radius: var(--radius);
  padding: 14px 16px 14px 60px; position: relative; font-weight: bold;
}
.steps li::before {
  content: counter(step);
  position: absolute; left: 14px; top: 50%; transform: translateY(-50%);
  width: 32px; height: 32px; border-radius: 50%;
  background: var(--red); color: #fff; text-align: center; line-height: 32px;
}

/* 価格 */
.price-box {
  border: 3px solid var(--red); border-radius: var(--radius);
  text-align: center; padding: 20px 16px;
}
.price-box .label { font-weight: bold; }
.price-box .price { font-size: 2.2rem; font-weight: bold; color: var(--red); line-height: 1.3; }
.price-box .price small { font-size: 1rem; color: var(--ink); }
.note { font-size: .9rem; color: var(--muted); }

/* 表 */
.table { width: 100%; border-collapse: collapse; margin-bottom: 1em; }
.table th, .table td { border: 1px solid var(--line); padding: 12px; text-align: left; vertical-align: top; }
.table th { background: var(--bg-soft); width: 34%; }
@media (max-width: 599px) {
  .table.stack th, .table.stack td { display: block; width: 100%; }
  .table.stack th { border-bottom: none; }
}

/* よくある質問 */
.faq details {
  border: 1px solid var(--line); border-radius: var(--radius);
  margin-bottom: 12px; background: #fff;
}
.faq summary { cursor: pointer; padding: 14px 16px; font-weight: bold; }
.faq summary::before { content: "Q. "; color: var(--red); }
.faq .answer { padding: 0 16px 14px; }
.faq .answer p { margin: 0; }

/* ===== 準備中（仮の表示） ===== */
.tbd {
  border: 2px dashed #c9a400;
  background: #fffbe0;
  border-radius: var(--radius);
  padding: 14px 16px;
  color: #5c4a00;
}
.tbd::before {
  content: "準備中";
  display: inline-block;
  background: #c9a400; color: #fff;
  font-size: .8rem; font-weight: bold;
  padding: 0 8px; border-radius: 4px; margin-right: 8px;
}
.tbd-inline {
  display: inline-block;
  border: 1px dashed #c9a400; background: #fffbe0; color: #5c4a00;
  font-size: .9em; padding: 0 6px; border-radius: 4px;
}
.video-box, .photo-box {
  border: 2px dashed #c9a400; background: #fffbe0; color: #5c4a00;
  border-radius: var(--radius);
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  text-align: center; padding: 16px; font-weight: bold;
}
.video-box { aspect-ratio: 16 / 9; width: 100%; }
.video-box .icon {
  width: 56px; height: 56px; border-radius: 50%; background: #c9a400; margin-bottom: 8px;
  position: relative;
}
.video-box .icon::after {
  content: ""; position: absolute; left: 22px; top: 16px;
  border-style: solid; border-width: 12px 0 12px 18px;
  border-color: transparent transparent transparent #fff;
}
.video-box small, .photo-box small { font-weight: normal; }
.photo-box { aspect-ratio: 4 / 3; width: 100%; max-width: 320px; }

/* 規約類 */
.legal h2 { font-size: 1.15rem; margin-top: 1.6em; }

/* ===== フッター ===== */
.site-footer { background: var(--gray); color: #fff; padding: 32px 0 24px; font-size: .95rem; }
.site-footer a { color: #fff; }
.footer-links { list-style: none; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 6px 16px; }
.footer-company { border-top: 1px solid rgba(255,255,255,.3); padding-top: 16px; margin-top: 16px; }
.footer-company p { margin: 0 0 .3em; }
.copyright { font-size: .8rem; opacity: .8; margin-top: 16px; }

/* ===== 画面が広いとき ===== */
@media (min-width: 700px) {
  body { font-size: 17px; }
  h1 { font-size: 2rem; }
  .hero { padding: 56px 0; }
  .hero h1 { font-size: 2.4rem; }
  .buttons { grid-template-columns: repeat(3, 1fr); }
  .buttons.two { grid-template-columns: repeat(2, 1fr); }
  .cards.col3 { grid-template-columns: repeat(3, 1fr); }
  .cards.col2 { grid-template-columns: repeat(2, 1fr); }
  .footer-links { grid-template-columns: repeat(3, 1fr); }
  .logo img { width: 210px; }
}

/* トップのキャッチ（見出しの上） */
.hero .tagline {
  display: inline-block;
  margin: 0 0 12px;
  padding: 2px 12px;
  border: 2px solid var(--red);
  border-radius: 999px;
  background: #fff;
  color: var(--red);
  font-weight: bold;
  font-size: clamp(12px, 3.9vw, 16px);
  white-space: nowrap;
  max-width: 100%;
}
