/* まどあかり不動産（架空）の見た目。夜の窓・紙の札・灯りの色 */
:root {
  --yoru: #141a2c;
  --yoru2: #1f2742;
  --kami: #f4ede0;
  --kami2: #ebe1cd;
  --sumi: #221e1a;
  --usuzumi: #615849;
  --sen: #cdbfa5;
  --hi: #e8a64a;
  --hi2: #f3c27a;
  --aka: #b4523d;
  --line: #2f8a4c;
  --mc: "Zen Old Mincho", "Yu Mincho", "YuMincho", "Hiragino Mincho ProN", "Noto Serif JP", serif;
  --go: "Zen Kaku Gothic New", "Hiragino Kaku Gothic ProN", "Hiragino Sans", "BIZ UDPGothic", "Yu Gothic", "Meiryo", sans-serif;
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-padding-top: 12px; }
body { margin: 0; background: var(--kami); color: var(--sumi); font-family: var(--go); font-weight: 400; line-height: 1.8; overflow-x: hidden; }
h1, h2, h3, p, ul, ol, dl, dd, figure, blockquote { margin: 0; padding: 0; }
ul, ol { list-style: none; }
a { color: inherit; }
img, svg { max-width: 100%; }
.mc { font-family: var(--mc); font-weight: 700; }
.ku { display: inline-block; }
p, h1, h2, h3, li, dd, blockquote, summary { word-break: auto-phrase; }
.e-dake { display: none; }
.e .e-dake { display: block; }
@media (max-width: 759.98px) { .pc { display: none; } }

/* 注記の帯 */
.demo-band { margin: 0; padding: 6px 16px; background: var(--yoru); color: #e9dfc9; font-size: 12px; line-height: 1.6; text-align: center; letter-spacing: .03em; }

/* 上の帯 */
.hd { display: flex; align-items: center; gap: 12px 26px; padding: 10px clamp(16px, 3vw, 36px); background: var(--kami); border-bottom: 1px solid var(--sen); }
.hd-logo { display: flex; align-items: center; gap: 10px; text-decoration: none; margin-right: auto; min-width: 0; }
.hd-mark { width: 34px; height: 34px; flex: none; }
.m-waku { fill: var(--yoru); }
.m-hi { fill: var(--hi); }
.hd-na { font-size: 21px; letter-spacing: .06em; white-space: nowrap; }
.hd-soe { font-size: 12px; color: var(--usuzumi); padding-left: 10px; border-left: 1px solid var(--sen); white-space: nowrap; }
.hd-nav { display: flex; gap: 22px; font-size: 14px; }
.hd-nav a { text-decoration: none; }
.hd-nav a:hover { text-decoration: underline; text-underline-offset: 4px; }
.hd-tel { display: grid; text-decoration: none; text-align: right; font-family: var(--mc); font-weight: 700; font-size: 20px; line-height: 1.2; letter-spacing: .04em; }
.hd-tel small { font-family: var(--go); font-weight: 400; font-size: 11px; color: var(--usuzumi); letter-spacing: 0; }
.hd-btn { display: inline-flex; align-items: center; min-height: 46px; padding: 0 20px; background: var(--yoru); color: #fff6e3; text-decoration: none; font-weight: 700; font-size: 15px; letter-spacing: .06em; border-radius: 2px; }
.hd-btn:hover { background: #2a3456; }
@media (max-width: 1100px) { .hd-nav { display: none; } }
@media (max-width: 759.98px) {
  .hd { padding: 8px 16px; gap: 10px; }
  .hd-soe, .hd-tel { display: none; }
  .hd-na { font-size: 18px; }
  .hd-mark { width: 28px; height: 28px; }
  .hd-btn { min-height: 40px; padding: 0 14px; font-size: 14px; }
}

/* ボタン */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 54px; padding: 0 26px; border: 0; border-radius: 2px; font: inherit; font-weight: 700; font-size: 16px; letter-spacing: .05em; text-decoration: none; cursor: pointer; }
.btn-hi { background: var(--hi); color: #1e1408; box-shadow: 0 0 0 1px rgba(0,0,0,.08), 0 6px 22px rgba(232,166,74,.35); }
.btn-hi:hover { background: var(--hi2); }
.btn-yoru { background: var(--yoru); color: #fff4de; }
.btn-yoru:hover { background: #2a3456; }
.btn-line { background: var(--line); color: #fff; }
.btn:focus-visible, .hd-btn:focus-visible, .mokuji button:focus-visible { outline: 3px solid var(--aka); outline-offset: 3px; }

/* ───── 物語（夜の窓） ───── */
.monogatari { position: relative; background: var(--yoru); color: #f3ead8; }
.butai { display: none; }
.ba { padding: 48px 16px; }
.fuda { max-width: 560px; margin: 0 auto; padding: 26px 26px 24px; background: var(--kami); color: var(--sumi); border: 1px solid var(--sen); }
.fuda + .fuda { margin-top: 16px; }
.fuda-ue, .fuda-toki { font-size: 13px; letter-spacing: .14em; color: var(--aka); font-weight: 700; }
.fuda-toki::before { content: ""; display: inline-block; width: 22px; height: 1px; margin-right: 10px; vertical-align: middle; background: currentColor; }
.fuda h1 { margin-top: 8px; font-size: clamp(30px, 3.3vw, 44px); line-height: 1.4; letter-spacing: .05em; }
.fuda h2 { margin-top: 6px; font-size: clamp(23px, 2.2vw, 29px); line-height: 1.45; letter-spacing: .05em; }
.fuda-sub { margin-top: 14px; font-size: 15.5px; line-height: 1.95; }
.fuda-text { margin-top: 10px; font-size: 15.5px; line-height: 1.95; }
.fuda-kazu { margin-top: 16px; padding-top: 14px; border-top: 1px solid var(--sen); font-size: 15px; letter-spacing: .04em; }
.fuda-kazu b { font-size: 30px; margin: 0 .12em; color: var(--sumi); letter-spacing: .02em; }
.fuda-iriguchi { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 20px; margin-top: 16px; }
.fuda-tel { display: grid; text-decoration: none; line-height: 1.3; }
.fuda-tel span { font-size: 22px; letter-spacing: .04em; }
.fuda-tel small { font-size: 12px; color: var(--usuzumi); }
.fuda-tebiki { margin-top: 18px; font-size: 13px; color: var(--usuzumi); display: flex; align-items: center; gap: 10px; }
.tebiki-mark { width: 14px; height: 22px; border: 1.5px solid var(--usuzumi); border-radius: 8px; position: relative; flex: none; }
.tebiki-mark::after { content: ""; position: absolute; left: 50%; top: 4px; width: 2px; height: 5px; margin-left: -1px; background: var(--aka); border-radius: 1px; animation: tebiki 1.8s ease-in-out infinite; }
@keyframes tebiki { 0%, 100% { transform: translateY(0); opacity: 1; } 60% { transform: translateY(7px); opacity: 0; } }
.fuda-owari .btn { margin-top: 18px; }

/* JS で絵が動くとき：舞台を貼り付け、札を重ねて出し入れする */
.e .monogatari { height: 900svh; }
.e .ba { display: none; }
.e .butai {
  display: block; position: sticky; top: 0; height: 100svh; overflow: hidden;
  background: radial-gradient(ellipse at 63% 47%, #3a3550 0%, #1c2236 45%, #10152a 100%);
}
.e .butai canvas { position: absolute; inset: 0; width: 100%; height: 100%; display: block; opacity: 0; transition: opacity .8s ease; }
.e .butai.ready canvas { opacity: 1; }
.e .fuda-waku { position: absolute; inset: 0; pointer-events: none; z-index: 2; }
.e .fuda {
  position: absolute; left: clamp(20px, 5vw, 72px); top: 50%; width: min(440px, 36vw); max-width: none; margin: 0;
  transform: translateY(calc(-50% + 14px)); opacity: 0; visibility: hidden;
  background: rgba(244, 237, 224, .94); box-shadow: 0 18px 50px rgba(5, 8, 20, .45);
  transition: opacity .45s ease, transform .6s cubic-bezier(.2,.7,.2,1), visibility 0s linear .45s;
}
.e .fuda.on { opacity: 1; visibility: visible; transform: translateY(-50%); pointer-events: auto; transition: opacity .55s ease, transform .7s cubic-bezier(.2,.7,.2,1), visibility 0s; }
.e .fuda-hajime { width: min(480px, 38vw); }
.e .fuda-owari { left: 50%; top: auto; bottom: clamp(24px, 7vh, 64px); width: min(560px, 90vw); text-align: center; transform: translate(-50%, 14px); background: rgba(20, 26, 44, .78); color: #f6ecd6; border-color: rgba(243, 194, 122, .45); backdrop-filter: blur(3px); }
.e .fuda-owari.on { transform: translate(-50%, 0); }
.e .fuda-owari .fuda-toki { color: var(--hi2); }
.e .fuda-owari .fuda-toki::before { display: none; }
.e .fuda-owari h2 { font-size: clamp(28px, 3vw, 40px); }

/* 右の目次 */
.mokuji { position: absolute; z-index: 3; right: clamp(12px, 2vw, 28px); top: 50%; transform: translateY(-50%); display: grid; gap: 4px; }
.mokuji button { display: flex; align-items: center; justify-content: flex-end; gap: 10px; min-height: 34px; padding: 0 0 0 8px; background: none; border: 0; color: rgba(243, 234, 216, .62); font: inherit; font-size: 13px; letter-spacing: .06em; cursor: pointer; text-shadow: 0 1px 8px rgba(5, 8, 20, .8); }
.mokuji button::after { content: ""; width: 8px; height: 8px; border-radius: 50%; border: 1.5px solid currentColor; flex: none; transition: background .3s, box-shadow .3s; }
.mokuji button.ima { color: #fff3da; }
.mokuji button.ima::after { background: var(--hi); border-color: var(--hi); box-shadow: 0 0 12px var(--hi); }
.mokuji button:hover { color: #fff3da; }

@media (max-width: 1100px) and (min-width: 760px) { .mokuji span { display: none; } }
@media (max-width: 759.98px) {
  .e .fuda, .e .fuda-hajime {
    left: 12px; right: 12px; width: auto; top: auto; bottom: max(12px, env(safe-area-inset-bottom));
    transform: translateY(14px); padding: 18px 18px 16px;
  }
  .e .fuda.on { transform: none; }
  .e .fuda-owari { left: 12px; transform: translateY(14px); width: auto; }
  .e .fuda-owari.on { transform: none; }
  .fuda h1 { font-size: 27px; line-height: 1.45; }
  .fuda h2 { font-size: 21px; }
  .fuda-sub, .fuda-text { font-size: 14.5px; line-height: 1.85; margin-top: 8px; }
  .fuda-kazu { margin-top: 10px; padding-top: 10px; font-size: 14px; }
  .fuda-kazu b { font-size: 25px; }
  .fuda-iriguchi { margin-top: 12px; gap: 10px 16px; }
  .fuda-iriguchi .btn { width: 100%; min-height: 50px; }
  .fuda-tebiki { margin-top: 10px; }
  .mokuji { top: 14px; right: 10px; transform: none; gap: 0; }
  .mokuji span { display: none; }
  .mokuji button { min-height: 26px; min-width: 26px; padding: 0; justify-content: center; }
}
@media (max-width: 759.98px) and (max-height: 700px) {
  .fuda h1 { font-size: 23px; }
  .fuda-sub { font-size: 13.5px; }
  .fuda-tebiki { display: none !important; }
}

/* ───── 下の段 ───── */
.dan { padding: clamp(56px, 8vw, 104px) clamp(16px, 4vw, 48px); }
.dan-naka { max-width: 1080px; margin: 0 auto; }
.dan-h { font-size: clamp(25px, 2.8vw, 36px); line-height: 1.5; letter-spacing: .05em; }
.dan-h2 { margin-top: clamp(48px, 6vw, 80px); }
.dan-lead { margin-top: 12px; color: var(--usuzumi); }
.dan-iriguchi { margin-top: 36px; }

.komari { background: var(--kami2); }
.komari-list { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 460px), 1fr)); gap: 16px; margin-top: 32px; }
.komari-list li { padding: 22px 24px; background: var(--kami); border-left: 4px solid var(--hi); }
.komari-q { font-size: 18px; line-height: 1.6; }
.komari-a { margin-top: 8px; font-size: 15px; color: #3b352d; }

.riyuu-list { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 470px), 1fr)); gap: 20px; margin-top: 34px; }
.riyuu-list > li { position: relative; padding: 28px 26px 26px 76px; background: #fffaf0; border: 1px solid var(--sen); }
.riyuu-ban { position: absolute; left: 22px; top: 22px; width: 38px; height: 38px; display: grid; place-items: center; background: var(--yoru); color: var(--hi2); font-size: 18px; border-radius: 50%; }
.riyuu-list h3 { font-size: 20px; line-height: 1.55; letter-spacing: .03em; }
.riyuu-list p { margin-top: 8px; font-size: 15px; }
.yoru-e { display: grid; grid-template-columns: repeat(6, 1fr); gap: 6px; margin-top: 16px; padding: 12px; background: var(--yoru); }
.yoru-e span { aspect-ratio: 4 / 3; background: #232b46; }
.yoru-e span:nth-child(2), .yoru-e span:nth-child(5) { background: linear-gradient(#f6d49a, #e7ac5f); box-shadow: 0 0 12px rgba(243, 194, 122, .55); }
.shitami { margin-top: 14px; padding: 14px 16px; background: #fbf4e4; border: 1px dashed #bda983; font-size: 14px; }
.shitami li { position: relative; padding-left: 26px; line-height: 1.7; }
.shitami li + li { margin-top: 6px; }
.shitami li::before { content: ""; position: absolute; left: 0; top: .3em; width: 14px; height: 14px; border: 1.5px solid var(--usuzumi); background: #fff; }
.shitami li::after { content: ""; position: absolute; left: 4px; top: calc(.3em + 2px); width: 5px; height: 9px; border: solid var(--aka); border-width: 0 2px 2px 0; transform: rotate(45deg); }

.heya { background: var(--yoru); color: #f3ead8; }
.heya .dan-lead { color: #c9bfae; }
.heya-list { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr)); gap: 20px; margin-top: 32px; }
.heya-list > li { display: flex; flex-direction: column; padding: 22px; background: var(--kami); color: var(--sumi); }
.madori { width: 100%; height: auto; aspect-ratio: 16 / 10; padding: 14px; background: #fbf6ea; border: 1px solid var(--sen); fill: none; stroke: var(--sumi); stroke-width: 2.2; stroke-linecap: square; }
.madori .mado { stroke: var(--hi); stroke-width: 4; }
.madori .to { stroke-width: 1.2; }
.madori .niwa { stroke: #6f9a5a; stroke-dasharray: 4 3; fill: rgba(111, 154, 90, .1); }
.madori .hatake { stroke: #6f9a5a; stroke-width: 2; }
.heya-list h3 { margin-top: 16px; font-size: 19px; line-height: 1.55; }
.heya-list p { margin-top: 6px; font-size: 14.5px; }
.heya-spec { display: grid; gap: 4px; margin: 14px 0 18px; padding-top: 12px; border-top: 1px solid var(--sen); font-size: 14px; }
.heya-spec div { display: flex; gap: 12px; }
.heya-spec dt { width: 6em; flex: none; color: var(--usuzumi); }
.heya-spec dd { font-weight: 700; }
.heya-list .btn { margin-top: auto; width: 100%; }

.service-list { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr)); gap: 0; margin-top: 30px; border-top: 2px solid var(--sumi); }
.service-list li { padding: 22px 20px 22px 0; border-bottom: 1px solid var(--sen); }
.service-list h3 { font-size: 19px; }
.service-list p { margin-top: 6px; font-size: 15px; }
.ryoukin { margin-top: 26px; padding: 22px 24px; background: var(--kami2); }
.ryoukin h3 { font-size: 18px; }
.ryoukin p { margin-top: 6px; font-size: 15px; }

.koe { background: var(--kami2); }
.koe-list { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 440px), 1fr)); gap: 20px; margin-top: 30px; }
.koe-list figure { padding: 28px 26px; background: var(--kami); border-top: 3px solid var(--hi); }
.koe-list blockquote { font-size: 17px; line-height: 1.95; font-weight: 400; }
.koe-list figcaption { margin-top: 14px; font-size: 13px; color: var(--usuzumi); }

.nagare-list { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 230px), 1fr)); gap: 14px; margin-top: 30px; counter-reset: n; }
.nagare-list li { position: relative; padding: 46px 20px 22px; background: #fffaf0; border: 1px solid var(--sen); counter-increment: n; }
.nagare-list li::before { content: counter(n); position: absolute; left: 20px; top: 14px; font-family: var(--mc); font-weight: 700; font-size: 22px; color: var(--aka); }
.nagare-kagi { background: var(--yoru) !important; color: #f6ecd6; border-color: var(--yoru) !important; }
.nagare-kagi::before { color: var(--hi2) !important; }
.nagare-list h3 { font-size: 18px; }
.nagare-list p { margin-top: 6px; font-size: 14.5px; }
.faq { margin-top: 24px; border-top: 1px solid var(--sen); }
.faq details { border-bottom: 1px solid var(--sen); }
.faq summary { position: relative; padding: 18px 40px 18px 0; font-weight: 700; font-size: 16px; cursor: pointer; list-style: none; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: ""; position: absolute; right: 8px; top: 50%; width: 10px; height: 10px; margin-top: -7px; border: solid var(--sumi); border-width: 0 2px 2px 0; transform: rotate(45deg); transition: transform .25s; }
.faq details[open] summary::after { transform: rotate(-135deg); margin-top: -2px; }
.faq details p { padding: 0 0 18px; font-size: 15px; color: #3b352d; }

.hito { background: var(--yoru2); color: #f3ead8; }
.hito-naka { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: 20px 48px; margin-top: 30px; align-items: start; }
.hito-yurai { grid-row: span 2; font-size: clamp(19px, 2vw, 24px); line-height: 2; font-weight: 400; padding-left: 22px; border-left: 3px solid var(--hi); }
.hito-daihyo { font-size: 15px; color: #d8cfbf; }
.tenpo { display: grid; gap: 0; border-top: 1px solid rgba(243, 234, 216, .25); font-size: 14.5px; }
.tenpo div { display: flex; gap: 14px; padding: 10px 0; border-bottom: 1px solid rgba(243, 234, 216, .25); }
.tenpo dt { width: 6.5em; flex: none; color: #b9b0a0; }
@media (max-width: 759.98px) { .hito-naka { grid-template-columns: 1fr; } .hito-yurai { grid-row: auto; } }

.shime { background: var(--kami); }
.shime-iriguchi { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 26px; }
.btn-tel { display: grid; justify-items: start; gap: 0; padding: 10px 26px; line-height: 1.35; text-align: left; }
.btn-tel span { font-size: 13px; }
.btn-tel b { font-family: var(--mc); font-size: 24px; letter-spacing: .04em; }
.btn-tel small { font-size: 12px; font-weight: 400; }
.btn-line { min-height: 84px; }
.yoyaku { display: grid; gap: 16px; max-width: 640px; margin-top: 40px; padding: clamp(22px, 4vw, 36px); background: #fffaf0; border: 1px solid var(--sen); }
.yoyaku h3 { font-size: 21px; }
.yoyaku label { display: grid; gap: 6px; font-size: 14px; font-weight: 700; }
.yoyaku input[type="text"], .yoyaku input[type="date"], .yoyaku textarea { width: 100%; min-height: 48px; padding: 10px 12px; font: inherit; font-family: "Hiragino Kaku Gothic ProN", "Yu Gothic", "Meiryo", sans-serif; font-size: 16px; font-weight: 400; background: #fff; color: var(--sumi); border: 1px solid #b6a888; border-radius: 2px; }
.yoyaku fieldset { margin: 0; padding: 0; border: 0; display: flex; flex-wrap: wrap; gap: 8px 22px; }
.yoyaku legend { width: 100%; padding: 0; margin-bottom: 6px; font-size: 14px; font-weight: 700; }
.yoyaku .radio { display: flex; align-items: center; gap: 8px; font-weight: 400; font-size: 15px; min-height: 40px; }
.yoyaku .radio input { width: 20px; height: 20px; accent-color: var(--yoru); }
.yoyaku .btn { justify-self: start; }
.yoyaku-kekka { padding: 12px 14px; background: var(--kami2); font-size: 14px; }
@media (max-width: 759.98px) { .shime-iriguchi .btn, .yoyaku .btn { width: 100%; } }

.ft { padding: 40px clamp(16px, 4vw, 48px) calc(40px + env(safe-area-inset-bottom)); background: var(--yoru); color: #e6dcc7; display: grid; gap: 8px; }
.ft-na { font-size: 20px; letter-spacing: .06em; }
.ft-soe { font-size: 13px; color: #c3b9a7; }
.ft-kakuu { margin-top: 10px; font-size: 13px; color: #c3b9a7; }
.ft-seisaku { font-size: 13px; color: #c3b9a7; }
.ft a { text-underline-offset: 3px; }

@media (prefers-reduced-motion: reduce) {
  .tebiki-mark::after { animation: none; }
  .e .fuda, .e .fuda.on { transition-duration: .2s; }
  .e .butai canvas { transition-duration: .2s; }
}
@media print {
  .e .monogatari { height: auto; }
  .e .butai { position: static; height: auto; background: none; }
  .e .butai canvas, .mokuji { display: none; }
  .e .fuda-waku { position: static; }
  .e .fuda, .e .fuda-owari { position: static; width: auto; margin: 12px 0; opacity: 1; visibility: visible; transform: none; background: #fff; color: #000; box-shadow: none; }
}
