/* キャンペーンに依存しない土台。色の差し替えは campaign.css で行います。 */
:root {
  --brand-blue: #0060a8;
  --ink: #222;
  --muted: #515966;
  --line: #dce1e7;
  --surface-gray: #f3f5f8;
  font-family: "Noto Sans JP", "Hiragino Kaku Gothic ProN", sans-serif;
  color: var(--ink);
  background: #fff;
  font-synthesis: none;
  color-scheme: light;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-bottom: 100px; }
body { margin: 0; font-size: 16px; line-height: 1.8; overflow-wrap: anywhere; }
[hidden] { display: none !important; }
img { display: block; max-width: 100%; }
a { color: var(--brand-blue); text-underline-offset: 4px; }
button, input, select { font: inherit; }
button, a, summary, input, select { -webkit-tap-highlight-color: transparent; }
button { cursor: pointer; }
button:disabled { cursor: default; }
:focus-visible { outline: 3px solid #0060a8; outline-offset: 4px; }
.page { width: 100%; max-width: 480px; margin-inline: auto; background: #fff; }
.site-header { display: flex; align-items: center; min-height: 56px; padding: 4px 20px; }
.logo-link { display: inline-flex; align-items: center; min-height: 44px; max-width: 100%; }
.logo { width: auto; height: 24px; object-fit: contain; }
.section { padding: 40px 20px; scroll-margin-top: 12px; }
.section-gray { background: var(--surface-gray); }
.section-title { margin: 0 0 24px; font-size: 24px; line-height: 1.6; font-weight: 900; letter-spacing: -.025em; }
.section:not(.campaign-section) > .section-title::after { content: ""; display: block; width: 36px; height: 4px; background: var(--brand-blue); margin-top: 12px; }
p, figure { margin: 0; }
.note { font-size: 14px; line-height: 1.75; }
.button { display: flex; justify-content: center; align-items: center; min-height: 52px; width: 100%; border: 1px solid transparent; border-radius: 6px; padding: 12px 10px; font-size: 16px; font-weight: 700; line-height: 1.6; text-align: center; text-decoration: none; }
.button-blue { background: var(--brand-blue); color: #fff; }
.button-outline { color: var(--brand-blue); background: #fff; border-color: var(--brand-blue); }
.button:disabled { color: #515966; background: #e5e8ed; border-color: #c5cbd3; }
.button + .button { margin-top: 10px; }
.amount { display: inline-flex; align-items: baseline; white-space: nowrap; gap: 3px; line-height: 1.4; font-variant-numeric: tabular-nums; }
.amount strong { font-size: 30px; letter-spacing: -.045em; font-weight: 900; }
.amount .unit { font-size: 14px; font-weight: 700; }
.property-list { display: grid; grid-auto-flow: column; grid-auto-columns: 84%; gap: 12px; margin-inline: -20px; padding: 2px 20px 8px; overflow-x: auto; scroll-snap-type: x mandatory; scroll-padding-inline: 20px; overscroll-behavior-x: contain; scrollbar-width: none; }
.property-list::-webkit-scrollbar { display: none; }
.property-list:focus-visible { outline-offset: -3px; }
.property-card { display: flex; flex-direction: column; scroll-snap-align: start; border: 1px solid var(--line); border-radius: 8px; overflow: hidden; background: #fff; }
.property-card .property-body { display: flex; flex-direction: column; flex: 1; }
.property-card .card-actions { margin-top: auto; padding-top: 12px; }
/* カードは横スライドで並べるため、縦の寸法を詰めています */
.property-card .property-photo { aspect-ratio: 16 / 9; overflow: hidden; }
.property-card .property-photo img { position: absolute; inset: 0; }
.property-card .room-type { position: absolute; top: 10px; left: 10px; margin: 0; padding: 0 8px; background: #fff; border: 0; border-radius: 3px; line-height: 1.7; }
.property-card .property-body { padding: 14px 14px 4px; }
.property-card .property-area { line-height: 1.5; }
.property-card .property-name { margin: 0 0 2px; font-size: 18px; line-height: 1.45; }
.property-card .property-meta { line-height: 1.6; }
.property-card .monthly-price { margin-top: 8px; gap: 6px; }
.property-card .amount strong { font-size: 26px; }
.property-card .note { line-height: 1.6; }
.property-card .deposit { margin-top: 6px; line-height: 1.6; }
.property-card .property-status { margin-top: 0; line-height: 1.6; }
.card-buttons { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.card-buttons .button { min-height: 48px; padding: 8px 4px; }
.card-buttons .button + .button { margin-top: 0; }
.property-card .more-link { margin-top: 2px; }
.carousel-nav { display: flex; align-items: center; justify-content: center; gap: 16px; margin-top: 12px; }
.button.carousel-arrow { flex: none; width: 44px; height: 44px; min-height: 44px; display: grid; place-items: center; padding: 0 0 3px; border: 1px solid var(--brand-blue); border-radius: 50%; background: #fff; color: var(--brand-blue); font-size: 26px; line-height: 1; }
.button.carousel-arrow:disabled { background: #fff; border-color: #c5cbd3; color: #8b96a3; }
.carousel-count { min-width: 4.5em; text-align: center; font-size: 16px; font-weight: 700; font-variant-numeric: tabular-nums; }
.carousel-hint { margin-top: 4px; text-align: center; font-size: 14px; color: var(--muted); }
.property-photo { position: relative; background: #e8ebee; aspect-ratio: 550 / 365; }
.property-photo img { width: 100%; height: 100%; object-fit: cover; }
.photo-pending { height: 100%; display: grid; place-items: center; color: var(--muted); font-size: 14px; }
.placeholder-label { position: absolute; top: 12px; right: 12px; padding: 2px 12px; background: #515966; color: #fff; font-size: 14px; font-weight: 700; border-radius: 3px; }
.property-body { padding: 20px 16px 12px; }
.property-area { font-size: 14px; color: var(--brand-blue); font-weight: 700; }
.property-name { margin: 4px 0 10px; font-size: 21px; font-weight: 900; line-height: 1.5; }
.property-meta { font-size: 14px; }
.room-type { display: inline-block; border: 1px solid var(--line); padding: 0 10px; margin: 10px 0 4px; font-size: 14px; }
.monthly-price { display: flex; align-items: baseline; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.monthly-price > span:first-child { font-size: 14px; font-weight: 700; }
.deposit { margin-top: 12px; font-size: 14px; }
.property-status { font-size: 14px; margin-top: 8px; color: var(--muted); }
.card-actions { margin-top: 18px; }
.more-link { display: flex; align-items: center; justify-content: center; min-height: 44px; width: 100%; margin-top: 6px; background: none; border: 0; font-size: 14px; text-decoration: underline; }
.more-link:disabled { color: var(--muted); text-decoration: none; }
.field-label { display: block; font-size: 16px; font-weight: 700; margin: 20px 0 8px; }
select, input { width: 100%; min-width: 0; min-height: 52px; padding: 12px; border: 1px solid #8b96a3; border-radius: 4px; background: #fff; color: var(--ink); font-size: 16px; }
/* 端末標準の矢印は右端に寄りすぎるため、矢印を自前で描いて内側（右16px）に置く */
select { -webkit-appearance: none; appearance: none; text-overflow: ellipsis; padding-right: 48px;
  background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='9' viewBox='0 0 14 9'%3E%3Cpath d='M1 1.5l6 6 6-6' fill='none' stroke='%230060a8' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") no-repeat right 16px center / 14px 9px; }
input[type="date"] { display: block; max-width: 100%; -webkit-appearance: none; }
.form-error { color: #aa1020; font-size: 14px; margin-top: 12px; }
.result { margin-top: 24px; }
.comparison { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); align-items: stretch; }
.total-normal, .total-campaign { padding: 16px 6px; text-align: center; background: #fff; border: 1px solid var(--line); }
.total-normal { border-radius: 6px 0 0 6px; border-right: 0; }
.total-campaign { border-radius: 0 6px 6px 0; }
.result-label { font-size: 14px; font-weight: 700; margin-bottom: 10px; }
.comparison .amount strong { font-size: clamp(23px, 6.2vw, 30px); }
.difference { display: flex; align-items: baseline; justify-content: center; gap: 12px; padding: 14px 0 0; font-weight: 700; }
.difference .amount strong { font-size: 28px; }
.result-note { margin-top: 12px; }
details { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
summary { cursor: pointer; min-height: 52px; padding: 16px 24px 16px 0; font-weight: 700; font-size: 16px; }
.breakdown { margin: 22px 0; }
table { width: 100%; border-collapse: collapse; font-size: 14px; }
.breakdown table { margin-bottom: 16px; table-layout: fixed; }
.breakdown th, .breakdown td { padding: 10px 4px; border-bottom: 1px solid var(--line); vertical-align: top; }
.breakdown th { text-align: left; font-weight: 400; width: 33%; }
.breakdown thead th { font-weight: 700; }
.breakdown td { text-align: right; font-variant-numeric: tabular-nums; }
.day-count { display: block; font-size: 14px; color: var(--muted); }
.life-gallery { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; }
.life-gallery img { width: 100%; height: 110px; object-fit: cover; }
.life-gallery img:first-child { grid-column: 1 / -1; height: auto; aspect-ratio: 1.5; }
figcaption { margin-top: 8px; color: var(--muted); }
.life-text { margin-top: 20px; }
/* 丸の中心（左5px・上15px＝STEP の行の中央）どうしを線でつなぐ。線は最初の丸から最後の丸まで */
.steps { list-style: none; padding: 0 0 0 8px; margin: 0; }
.steps li { position: relative; padding: 0 0 28px 30px; }
.steps li:last-child { padding-bottom: 0; }
.steps li::before { content: ""; position: absolute; z-index: 1; left: 0; top: 10px; width: 10px; height: 10px; border-radius: 50%; background: var(--brand-blue); }
.steps li:not(:last-child)::after { content: ""; position: absolute; left: 4px; top: 15px; bottom: -15px; width: 2px; background: #b9cddd; }
.step-label { font-size: 14px; font-weight: 700; color: var(--brand-blue); }
.steps h3 { margin: 2px 0 8px; font-size: 18px; }
.steps p { font-size: 14px; }
.faq-item p { padding: 0 0 18px; }
.faq-item + .faq-item { border-top: 0; }
#form form > .button { margin-top: 24px; }
#form .note { margin-top: 10px; }
.undecided { margin-top: 28px; font-size: 14px; text-align: center; }
.undecided span { display: block; }
.text-link { display: inline-flex; align-items: center; min-height: 44px; }
.site-footer { padding: 28px 20px calc(112px + env(safe-area-inset-bottom)); background: #0b2540; color: #fff; }
.site-footer .logo { max-width: 100%; height: auto; width: 230px; }
.site-footer a { color: #fff; }
.footer-links { display: flex; flex-wrap: wrap; gap: 0 20px; margin: 12px 0; }
.footer-links a { display: inline-flex; align-items: center; min-height: 44px; font-size: 14px; }
.copyright { font-size: 14px; }
.fixed-bar { position: fixed; z-index: 10; bottom: 0; left: 50%; transform: translateX(-50%); width: 100%; max-width: 480px; display: grid; grid-template-columns: 1fr 1fr; gap: 8px; padding: 10px 12px calc(10px + env(safe-area-inset-bottom)); background: #fff; border-top: 1px solid var(--line); box-shadow: 0 -3px 16px #0b254014; }
.fixed-bar .button { margin: 0; font-size: 14px; min-height: 48px; padding: 10px 6px; }
.visually-hidden { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; border: 0; }
.reveal { transition: opacity .45s ease, transform .45s ease; }
.reveal-pending { opacity: 0; transform: translateY(10px); }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .reveal-pending { opacity: 1; transform: none; }
}

/* PC（768px以上）はSPの列を中央に置き、外側は共通の背景画像（Figma「LP（PC 背景）」から書き出し）。
 * キャンペーンをまたいで共通で使う。左の余白にはロゴを置く（余白が狭い画面では出さない） */
@media (min-width: 768px) {
  body { background: #eef5fc url("../img/common/bg-lp.webp") center / cover no-repeat fixed; }
  .page { position: relative; z-index: 1; box-shadow: 0 0 32px #00366b24; }
}
@media (min-width: 1100px) {
  body::before {
    content: ""; position: fixed; z-index: 0; top: 50%; left: calc((100vw - 480px) / 4);
    width: min(341px, calc((100vw - 480px) / 2 - 64px)); aspect-ratio: 1140 / 129;
    transform: translate(-50%, -50%);
    background: url("../img/common/logo.png") center / contain no-repeat;
  }
}
