/* =============================================================
   堀切1丁目シェアハウス LP
   スマホ（375px）基準。PCでは中央に最大520pxで表示
   ============================================================= */
:root {
  --blue: #2E8BE6;
  --blue-dark: #1C6FC2;
  --pale: #E8F4FF;
  --cta: #FF7A1A;
  --cta-dark: #E8650A;
  --red: #E53935;
  --green: #2E9E5B;
  --gray: #8A94A0;
  --gray-bg: #F3F5F7;
  --line: #D5DEE8;
  --text: #1E1E1E;
  --teal: #008F97;
  --gutter: 10px;
  --nav-h: 53px;
  --sub: #55657A;
  --white: #FFFFFF;
  --radius: 12px;
  --page: 520px;
  --header-h: 56px;
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }

html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + var(--nav-h) + 8px); -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: #DCE7F2;
  color: var(--text);
  font-family: ui-sans-serif, system-ui, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji";
  font-weight: 400;
  font-size: 16px;
  line-height: 1.75;
  overflow-x: hidden;
}
body.no-scroll { overflow: hidden; }
img { display: block; max-width: 100%; }
a { color: var(--blue-dark); }
h1, h2, h3, p, ul, ol, dl, dd, figure { margin: 0; }
ul, ol { padding: 0; list-style: none; }
button { font: inherit; color: inherit; }

/* 電話番号は Roboto の太字 */
[data-text="phone"], .tel-num { font-family: Roboto, sans-serif; font-weight: 700; letter-spacing: .01em; }

/* Material Icons（操作・装飾用のアイコン） */
.material-icons { font-size: 1.25em; line-height: 1; vertical-align: middle; user-select: none; }
.slider__btn .material-icons { font-size: 30px; }

.page {
  max-width: var(--page);
  margin: 0 auto;
  background: var(--white);
  min-height: 100vh;
  box-shadow: 0 0 24px rgba(31, 45, 61, .08);
}
.sp { display: inline; }
@media (min-width: 521px) { .sp { display: none; } }

/* ---------- 画像の代わりの灰色の枠 ---------- */
.media { display: block; position: relative; overflow: hidden; background: var(--gray-bg); }
.media img { width: 100%; height: 100%; object-fit: cover; }
.media--43 { aspect-ratio: 4 / 3; }
.media.has-missing { background: #C9CED4; }
.media.has-missing img { visibility: hidden; }
.media.has-missing::after {
  content: attr(data-ph);
  position: absolute; inset: 0;
  display: flex; align-items: center; justify-content: center;
  padding: 4px; text-align: center;
  color: #4A535D; font-size: 12px; line-height: 1.3; word-break: break-all;
}

/* ---------- 共通パーツ ---------- */
.section { padding: 48px var(--gutter); }
.section--pale { background: var(--pale); }
.section--sky {
  background: var(--pale) url("../images/bg-sky.jpg") center top / cover no-repeat;
}
/* セクション見出し：少し大きく太く、下に2色のライン */
.h2 {
  position: relative; margin-bottom: 28px; padding-bottom: 14px;
  font-size: 19px; font-weight: 800; line-height: 1.55; letter-spacing: .03em;
  text-align: center; color: var(--text); text-shadow: 0 1px 0 var(--white);
}
.h2::after {
  content: ""; position: absolute; left: 50%; bottom: 0; transform: translateX(-50%);
  width: 56px; height: 4px; border-radius: 2px;
  background: linear-gradient(90deg, var(--teal) 0 50%, var(--cta) 50% 100%);
}
/* 小見出し：セクション見出しと同じ形で一回り小さく */
.h3 {
  position: relative; margin: 36px 0 16px; padding-bottom: 10px;
  font-size: 18px; font-weight: 800; line-height: 1.5; letter-spacing: .03em;
  text-align: center; color: var(--text); text-shadow: 0 1px 0 var(--white);
}
.h3::after {
  content: ""; position: absolute; left: 50%; bottom: 0; transform: translateX(-50%);
  width: 40px; height: 3px; border-radius: 2px;
  background: linear-gradient(90deg, var(--teal) 0 50%, var(--cta) 50% 100%);
}
/* 下線なしの小見出し */
.h3--plain { padding-bottom: 0; }
.h3--plain::after { content: none; }
.red { color: var(--red); }
.orange { color: var(--cta); }
.note { font-size: 13px; color: var(--sub); line-height: 1.6; margin-top: 8px; }
.note-inline { font-size: 13px; color: var(--sub); }
.tbc { color: var(--red); font-weight: 700; }

.btn {
  display: flex; align-items: center; justify-content: center; gap: 6px;
  min-height: 56px; padding: 12px 16px;
  border: 0; border-radius: 999px;
  font-size: 18px; font-weight: 800; line-height: 1.35; letter-spacing: .02em; text-align: center; text-decoration: none;
  cursor: pointer; transition: transform .1s, background-color .15s;
}
.btn .material-icons { font-size: 22px; }
.btn:active { transform: scale(.98); }
.btn--cta { background: var(--cta); color: var(--white); box-shadow: 0 3px 0 var(--cta-dark); }
.btn--cta:hover { background: var(--cta-dark); }
.btn--lg { width: 100%; min-height: 60px; font-size: 19px; margin-top: 20px; }
.btn--sm { min-height: 40px; padding: 6px 14px; font-size: 15px; letter-spacing: 0; box-shadow: none; }
.btn--outline { width: 100%; margin-top: 16px; background: var(--white); color: var(--blue-dark); border: 2px solid var(--blue); }
.btn--tel { background: var(--white); color: var(--blue-dark); border: 2px solid var(--blue); }
.btn:disabled { opacity: .6; cursor: wait; }

.badge {
  display: inline-block; padding: 2px 10px; border-radius: 999px;
  font-size: 13px; font-weight: 700; line-height: 1.6; color: var(--white);
}
.badge--green { background: var(--green); }
.badge--red { background: var(--red); }
.badge--gray { background: var(--gray); }

.tags { display: flex; flex-wrap: wrap; gap: 8px; }
.tag {
  display: inline-block; padding: 4px 12px; border-radius: 999px;
  border: 1.5px solid currentColor; background: var(--white);
  font-size: 14px; font-weight: 700; line-height: 1.5;
}
.tag--blue { color: var(--blue-dark); }
.tag--orange { color: var(--cta-dark); }
.tag--red { color: var(--red); }

.tel-line { margin-top: 12px; text-align: center; font-size: 14px; color: var(--sub); }
.tel-line a { font-weight: 700; font-size: 17px; white-space: nowrap; }

/* ---------- 0. ヘッダー ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  height: var(--header-h);
  display: flex; align-items: center; justify-content: space-between; gap: 8px;
  padding: 0 var(--gutter);
  background: rgba(255, 255, 255, .96);
  border-bottom: 1px solid var(--line);
}
.site-header__logo { display: block; flex: 1; min-width: 0; max-width: 210px; }
.logo { width: 100%; height: 40px; background: transparent; }
.logo img { object-fit: contain; object-position: left center; }
.site-header__actions { display: flex; align-items: center; gap: 8px; flex-shrink: 0; }
.header-tel {
  display: flex; align-items: center; justify-content: center;
  width: 44px; height: 44px; border-radius: 50%;
  border: 2px solid var(--blue); color: var(--blue); font-size: 18px; text-decoration: none;
}

/* ---------- 1. ファーストビュー（参考LPの実測値） ---------- */
.fv { padding: 8px var(--gutter) 0; }
.fv__badges { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 16px; }
.fv-badge {
  display: inline-flex; align-items: center; gap: 4px;
  height: 32px; padding: 0 14px; border-radius: 9999px;
  font-size: 13px; font-weight: 700; line-height: 1;
}
.fv-badge .material-icons { font-size: 14px; }
.fv-badge--open { background: #EF4444; color: var(--white); }
.fv-badge--left { background: var(--white); color: #EF4444; border: 1px solid #EF4444; }
.fv-badge--full { background: var(--gray); color: var(--white); }
.fv__name { font-size: 20px; font-weight: 700; line-height: 30px; margin-bottom: 10px; }
.fv__sub { font-size: 12px; line-height: 18px; margin-bottom: 3px; }
.fv__updated { font-size: 11px; line-height: 16px; color: #9F9F9F; }

/* ---------- ページ内メニュー ---------- */
.page-nav {
  position: sticky; top: var(--header-h); z-index: 40;
  display: flex; align-items: center; gap: 0;
  height: var(--nav-h); margin-top: 20px; padding: 0 calc(var(--gutter) - 10px);
  background: rgba(255, 255, 255, .96);
  border-top: 1px solid #E6E7EA; border-bottom: 1px solid #E6E7EA;
  overflow-x: auto; scrollbar-width: none; white-space: nowrap;
}
.page-nav::-webkit-scrollbar { display: none; }
/* 5項目を画面幅いっぱいに均等に並べる（375pxでも「アクセス」まで収まる） */
.page-nav a {
  flex: 1 0 auto; display: inline-flex; align-items: center; justify-content: center; gap: 2px;
  padding: 8px 4px; font-size: 13px; font-weight: 700; line-height: 1.4;
  color: var(--text); text-decoration: none;
}
.page-nav .material-icons { font-size: 16px; color: var(--teal); }
.page-nav a + a { position: relative; }
.page-nav a + a::before {
  content: ""; position: absolute; left: 0; top: 50%; transform: translateY(-50%);
  width: 1px; height: 16px; background: #D5D7DB;
}

/* ---------- 1-2. 写真スライダー ---------- */
.slider-wrap { padding: 0; margin-bottom: 10px; }
.slider { position: relative; }
.media--32 { aspect-ratio: 3 / 2; }
.slider__track {
  display: flex; overflow-x: auto; scroll-snap-type: x mandatory;
  scrollbar-width: none; -webkit-overflow-scrolling: touch;
}
.slider__track::-webkit-scrollbar { display: none; }
.slide { flex: 0 0 100%; scroll-snap-align: start; scroll-snap-stop: always; }
/* 写真の左右の端・上下中央に、半透明の黒い四角＋白い矢印 */
.slider__btn {
  position: absolute; top: 50%; transform: translateY(-50%);
  width: 40px; height: 56px;
  border: 0; background: rgba(0, 0, 0, .45); color: var(--white);
  display: flex; align-items: center; justify-content: center; padding: 0; cursor: pointer; z-index: 2;
}
.slider__btn:hover { background: rgba(0, 0, 0, .6); }
.slider__btn--prev { left: 0; border-radius: 0 6px 6px 0; }
.slider__btn--next { right: 0; border-radius: 6px 0 0 6px; }
.slider__count {
  position: absolute; right: 8px; top: 8px;
  padding: 0 8px; border-radius: 4px;
  background: rgba(0, 0, 0, .55); color: var(--white); font-size: 12px; line-height: 22px;
}
/* 写真の説明は写真の左下に重ねる（どの部屋かの注記を写真のそばに出すため） */
.slider__caption {
  position: absolute; left: 8px; bottom: 8px; max-width: calc(100% - 136px);
  padding: 2px 8px; border-radius: 4px;
  background: rgba(0, 0, 0, .55); color: var(--white); font-size: 11px; line-height: 1.45;
}
.slider__list {
  position: absolute; right: 8px; bottom: 8px; z-index: 2;
  display: flex; align-items: center; gap: 4px; min-height: 32px; padding: 4px 10px; border-radius: 4px;
  background: rgba(0, 0, 0, .55); color: var(--white); font-size: 12px; font-weight: 700; text-decoration: none;
}
.slider__list .material-icons { font-size: 16px; }
/* サムネイル：隙間2px、高さ62px（写真250px＋上下2px＋62px＝約316px） */
.slider__thumbs {
  display: flex; gap: 2px; overflow-x: auto; padding: 2px 0;
  scrollbar-width: none;
}
.slider__thumbs::-webkit-scrollbar { display: none; }
.thumb {
  flex: 0 0 90px; padding: 0; border: 3px solid transparent;
  background: none; cursor: pointer; overflow: hidden;
}
.thumb .media.has-missing::after { font-size: 8px; }
.thumb.is-active { border-color: var(--cta); }
.back-link a { display: inline-flex; align-items: center; }

/* ---------- 1-3. POINT（灰色の箱＋左上にはみ出した緑のラベル） ---------- */
.point-box { padding: 0 var(--gutter) 40px; margin-top: 40px; }
/* 左に2行の文、右に丸い写真（2行の高さの真ん中に置く） */
.point-card {
  position: relative; display: grid; grid-template-columns: minmax(0, 1fr) 64px; align-items: center; gap: 2px 8px;
  margin-bottom: 10px; padding: 18px 10px 12px;
  background: #EFEFEF; border-radius: 8px;
}
.point-card__label {
  position: absolute; top: -12px; left: calc(-1 * var(--gutter));
  display: inline-flex; align-items: center; gap: 3px;
  padding: 4px 10px; border-radius: 0 2px 2px 0;
  background: var(--teal); color: var(--white);
  font-size: 11px; font-weight: 700; line-height: 1.2; letter-spacing: .04em;
}
.point-card__label .material-icons { font-size: 13px; }
.point-card__lead { font-size: 16px; font-weight: 700; line-height: 24px; color: var(--text); }
/* 2行目は写真の左に1行で収める。文字の幅は端末のフォントで変わるので、
   左の欄の幅から文字サイズを決め（約23文字分）、それでも入らないときは折り返す */
.point-card__title {
  grid-column: 1; overflow-wrap: anywhere;
  font-size: clamp(11px, calc((min(100vw, 520px) - 114px) / 23), 16px); font-weight: 700; line-height: 24px; color: var(--teal);
}
.point-card__photo {
  grid-column: 2; grid-row: 1 / span 2; align-self: center;
  width: 64px; height: 64px; border-radius: 50%; box-shadow: 0 0 0 3px var(--white);
}
.point-card__photo img { object-position: 40% 50%; }
.point-card__photo.has-missing::after { font-size: 6px; }
/* POINTのタグ：全部同じ見た目 */
.point-tags { display: flex; flex-wrap: wrap; gap: 5px; margin: 8px 0 16px; }
.point-tags li {
  display: inline-flex; align-items: center; gap: 3px;
  padding: 4px 12px; border-radius: 40px;
  background: var(--white); border: 1px solid #3C3C3C;
  font-size: 12px; font-weight: 700; line-height: 1.4; color: #333333;
}
.point-tags li::before { content: "sell"; font-family: "Material Icons"; font-size: 12px; font-weight: 400; line-height: 1; }

/* ---------- 料金サマリー ---------- */
.summary {
  margin-top: 20px; background: var(--white); border-radius: var(--radius);
  border: 2px solid var(--blue); overflow: hidden;
}
.summary > div { display: grid; grid-template-columns: 7.5em 1fr; border-top: 1px solid var(--line); }
.summary > div:first-child { border-top: 0; }
.summary dt { background: var(--pale); padding: 10px; font-size: 13px; font-weight: 700; line-height: 1.5; }
.summary dd { padding: 10px; font-weight: 700; line-height: 1.5; }
.summary-sub { display: block; font-size: 13px; font-weight: 500; color: var(--sub); }

/* ---------- 2. 空室状況 ---------- */
.room-cards { display: grid; gap: 20px; }
.room-card {
  position: relative; padding: 20px 16px; border-radius: var(--radius);
  border: 2px solid var(--line); background: var(--white);
}
.room-card--campaign { border: 3px solid var(--red); box-shadow: 0 6px 18px rgba(229, 57, 53, .15); }
.deco { position: absolute; top: -18px; right: -12px; width: 84px; height: 84px; background: transparent; z-index: 1; }
.deco img { object-fit: contain; }
.deco.has-missing { background: #C9CED4; border-radius: 8px; }
.room-card__head { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; padding-right: 64px; }
.room-no { font-size: 20px; font-weight: 600; margin-right: 4px; }
.room-price { margin-top: 12px; display: flex; align-items: baseline; flex-wrap: wrap; gap: 6px; }
.room-price strong { font-size: 32px; font-weight: 700; line-height: 1.2; }
.room-price--big .price-sale { font-size: 40px; color: var(--red); }
.price-regular { font-size: 18px; color: var(--sub); }
.room-price .arrow { color: var(--sub); }
.room-price .per { font-size: 14px; font-weight: 700; }
.room-save { margin-top: 4px; font-size: 14px; font-weight: 700; color: var(--red); display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.save-badge { background: var(--red); color: var(--white); border-radius: 6px; padding: 2px 8px; }
.room-common { font-size: 15px; font-weight: 700; color: var(--sub); margin-top: 2px; }
.room-photo { margin-top: 14px; }
.room-photo .media { border-radius: 8px; }
.room-spec { display: grid; grid-template-columns: 6em 1fr; gap: 4px 8px; margin: 12px 0 16px; font-size: 14px; }
.room-spec dt { color: var(--sub); }
.room-spec dd { font-weight: 700; }
.room-spec dd.tbc { color: var(--red); }
/* 間取り図 */
.floorplan__lead { font-size: 15px; line-height: 1.75; margin-bottom: 12px; }
.floorplan { margin: 0; }
.floorplan a { display: block; }
.floorplan__img { max-width: 360px; margin: 0 auto; background: var(--white); border: 1px solid var(--line); border-radius: 8px; }
.floorplan__img img { height: auto; object-fit: contain; }
.floorplan figcaption { text-align: center; }
/* 満室の部屋：空室と同じカードの上に「満室」を重ねる */
.room-cards--full { margin-top: 20px; }
.room-card--full { overflow: hidden; }
.room-card--full .room-spec { margin-bottom: 0; }
.room-card__cover {
  position: absolute; inset: 0; z-index: 2;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px;
  background: rgba(60, 66, 75, .62); color: var(--white);
}
.room-card__cover-label {
  padding: 6px 28px; border: 3px solid var(--white); border-radius: 8px;
  font-size: 32px; font-weight: 800; letter-spacing: .2em; line-height: 1.3;
}
.room-card__cover-sub { font-size: 14px; font-weight: 700; }

/* ---------- 3. 3つのポイント ---------- */
.points { display: grid; gap: 14px; }
.point {
  display: grid; grid-template-columns: 72px 1fr; gap: 14px; align-items: start;
  background: var(--white); border-radius: var(--radius); padding: 16px;
}
.icon { width: 72px; height: 72px; background: transparent; }
.icon img { object-fit: contain; }
.icon.has-missing { background: #C9CED4; border-radius: 10px; }
.icon.has-missing::after { font-size: 9px; }
.icon--sm { width: 48px; height: 48px; flex-shrink: 0; }
.icon--sm.has-missing::after { font-size: 7px; }
.point__title { font-size: 20px; font-weight: 600; color: var(--blue-dark); line-height: 1.4; margin-bottom: 4px; }

/* ---------- 4. 初期費用 ---------- */
.zero-list { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-bottom: 20px; }
.zero-list li {
  display: flex; flex-direction: column; align-items: center; gap: 2px;
  background: var(--pale); border-radius: var(--radius); padding: 12px 4px;
  font-size: 13px; font-weight: 700; text-align: center; line-height: 1.4;
}
.zero-list b { font-size: 22px; color: var(--cta-dark); }
.zero-list__plain { justify-content: center; }
.table-scroll { overflow-x: auto; }
.cost-table { width: 100%; border-collapse: collapse; font-size: 14px; line-height: 1.45; }
.cost-table th, .cost-table td { border: 1px solid var(--line); padding: 9px 8px; }
.cost-table thead th { background: var(--blue); color: var(--white); text-align: center; font-size: 15px; }
.cost-table thead th:first-child { background: var(--white); border-color: var(--white) var(--line) var(--line) var(--white); }
.cost-table tbody th { text-align: left; background: var(--gray-bg); font-weight: 500; width: 44%; }
.cost-table tbody th small { display: block; font-size: 12px; color: var(--sub); }
.cost-table td { text-align: right; white-space: nowrap; }
.cost-table td small { display: block; font-size: 12px; }
.cost-table .zero { color: var(--cta-dark); font-size: 17px; }
.cost-table .is-zero th { font-weight: 700; }
.cost-table .is-total th, .cost-table .is-total td { background: #FFF3E8; font-weight: 700; }
.cost-table .is-total strong { font-size: 18px; color: var(--red); }
.notes { margin-top: 10px; font-size: 13px; color: var(--sub); line-height: 1.6; }
.notes li { padding-left: 1em; text-indent: -1em; }
.notes li::before { content: "※"; }
/* 概算であることの注意書き */
.estimate-tag {
  display: inline-block; margin-left: 6px; padding: 0 8px; border-radius: 4px; vertical-align: middle;
  background: #FFF4E5; color: #B45309; border: 1px solid #F5C27A; font-size: 12px; font-weight: 700; line-height: 1.7;
}
/* 見出しの上の中央に置く「概算」 */
.estimate-tag--top { display: table; margin: 0 auto 6px; padding: 1px 14px; font-size: 14px; letter-spacing: .1em; text-shadow: none; }
.estimate-notice {
  display: flex; gap: 8px; align-items: flex-start; margin-bottom: 16px; padding: 12px;
  background: #FFF8EC; border: 1px solid #F5C27A; border-radius: 8px; font-size: 14px; line-height: 1.6; text-align: left;
}
.estimate-notice .material-icons { color: #B45309; font-size: 20px; margin-top: 1px; }
.estimate-notice b { color: #B45309; }
.notes li b { color: var(--text); }
.unneeded { display: grid; gap: 8px; }
.unneeded li {
  display: flex; align-items: center; gap: 12px;
  padding: 8px 12px; border-radius: 10px; background: var(--gray-bg); font-weight: 700;
}
.unneeded li::after { content: "不要"; margin-left: auto; color: var(--cta-dark); font-size: 14px; }

/* ---------- 5. 設備一覧 ---------- */
.equip { background: var(--white); border-radius: var(--radius); padding: 4px 16px 18px; }
.equip__title { font-size: 20px; font-weight: 600; margin: 14px 0 8px; padding-left: 10px; border-left: 4px solid var(--blue); line-height: 1.4; }
.photo-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
/* iPhoneのSafariはボタンの中身を上下中央に置くため、上詰めにする（説明文が短いカードの上に白い隙間が出ていた） */
.tile { display: flex; flex-direction: column; justify-content: flex-start; width: 100%; padding: 0; border: 0; background: var(--white); border-radius: 8px; overflow: hidden; cursor: zoom-in; text-align: left; }
.tile.is-more { display: none; }
.photo-grid.is-open .tile.is-more { display: flex; }
.tile .media { flex: none; width: 100%; }
.tile__cap { display: block; padding: 6px 8px; font-size: 12px; line-height: 1.45; }

/* ---------- 6. 暮らし ---------- */
.life { display: grid; gap: 18px; }
.life__item { background: var(--pale); border-radius: var(--radius); overflow: hidden; }
.life__item figcaption { padding: 12px 14px 16px; }
.life__item h3 { font-size: 20px; font-weight: 600; color: var(--blue-dark); }
.life__close { margin-top: 24px; text-align: center; font-size: 17px; font-weight: 700; line-height: 1.7; }

/* ---------- 7. 屋上 ---------- */
.rooftop-photo { border-radius: var(--radius); }
.checks { display: grid; gap: 8px; margin: 18px 0; }
.checks li {
  position: relative; padding: 10px 12px 10px 40px;
  background: var(--white); border-radius: 10px; font-weight: 700;
}
.checks li::before {
  content: "check"; font-family: "Material Icons"; position: absolute; left: 12px; top: 50%; transform: translateY(-50%);
  width: 20px; height: 20px; border-radius: 50%; background: var(--blue); color: var(--white);
  font-size: 16px; display: flex; align-items: center; justify-content: center;
}

/* ---------- 8. アクセス ---------- */
.access > div, .nearby li { display: grid; grid-template-columns: 5em 1fr; gap: 8px; padding: 10px 0; border-bottom: 1px solid var(--line); }
.access dt { font-weight: 700; color: var(--sub); font-size: 14px; }
.nearby { margin-top: 12px; }
.nearby li { grid-template-columns: 1fr auto; }
.nearby b { color: var(--blue-dark); }
.map { margin-top: 18px; border-radius: var(--radius); overflow: hidden; aspect-ratio: 4 / 3; background: var(--gray-bg); }
.map iframe { width: 100%; height: 100%; border: 0; display: block; }

/* ---------- 9. 流れ ---------- */
.flow { display: grid; gap: 10px; counter-reset: step; }
.flow li {
  position: relative; display: flex; align-items: center; gap: 12px;
  background: var(--white); border-radius: var(--radius); padding: 12px 14px;
}
.flow li + li::before {
  content: ""; position: absolute; top: -10px; left: 36px;
  border: 6px solid transparent; border-top: 7px solid var(--blue);
}
.flow__no { font-size: 12px; font-weight: 700; color: var(--blue); flex-shrink: 0; }
.flow__text { font-weight: 700; line-height: 1.5; }

/* ---------- 10. FAQ ---------- */
.faq details { border-bottom: 1px solid var(--line); }
.faq summary {
  list-style: none; cursor: pointer; position: relative;
  padding: 16px 36px 16px 32px; font-weight: 700; line-height: 1.5;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::before { content: "Q"; position: absolute; left: 4px; color: var(--blue); font-weight: 700; }
.faq summary::after { content: "expand_more"; font-family: "Material Icons"; font-size: 24px; line-height: 1; position: absolute; right: 4px; top: 50%; transform: translateY(-50%); color: var(--blue); transition: transform .2s; }
.faq details[open] summary::after { transform: translateY(-50%) rotate(180deg); }
.faq details p { padding: 0 8px 16px 32px; position: relative; }
.faq details p::before { content: "A"; position: absolute; left: 4px; color: var(--cta); font-weight: 700; }

/* ---------- 11. 物件概要 ---------- */
.overview { width: 100%; border-collapse: collapse; background: var(--white); font-size: 14px; line-height: 1.6; }
.overview th, .overview td { border: 1px solid var(--line); padding: 10px; text-align: left; vertical-align: top; }
.overview th { width: 7.5em; background: var(--gray-bg); font-weight: 700; }

/* ---------- 12. フォーム ---------- */
/* 電話の案内：オレンジの枠で囲み、番号を大きく。枠全体がタップで発信 */
.tel-box {
  display: flex; flex-direction: column; align-items: center; gap: 2px;
  margin-bottom: 20px; padding: 14px 12px 12px;
  background: var(--white); border: 2px solid var(--cta); border-radius: var(--radius);
  box-shadow: 0 3px 0 var(--cta-dark);
  color: var(--text); text-decoration: none; text-align: center; line-height: 1.4;
}
.tel-box:active { transform: translateY(1px); box-shadow: 0 2px 0 var(--cta-dark); }
.tel-box__label {
  display: inline-block; padding: 2px 12px; border-radius: 999px;
  background: #FFF1E6; color: var(--cta-dark); font-size: 13px; font-weight: 700;
}
.tel-box__num { display: inline-flex; align-items: center; gap: 6px; margin-top: 4px; color: var(--cta-dark); font-size: 28px; }
.tel-box__num .material-icons { font-size: 28px; }
.tel-box__hours { font-size: 13px; color: var(--sub); }
.form { background: var(--white); border-radius: var(--radius); padding: 20px 16px; }
.field { border: 0; margin: 0 0 20px; padding: 0; min-width: 0; }
.field__label { display: flex; align-items: center; gap: 8px; font-weight: 700; margin-bottom: 6px; padding: 0; }
.req, .opt { font-size: 12px; font-weight: 700; border-radius: 4px; padding: 1px 6px; line-height: 1.6; }
.req { background: var(--red); color: var(--white); }
.opt { background: var(--gray-bg); color: var(--sub); }
.field__hint { font-size: 13px; color: var(--sub); margin-bottom: 6px; line-height: 1.5; }
.field__error { color: var(--red); font-size: 14px; font-weight: 700; margin-top: 4px; line-height: 1.5; }
.field__error:empty { display: none; }
input[type="text"], input[type="tel"], input[type="email"], input[type="date"], select, textarea {
  width: 100%; min-height: 52px; padding: 12px; font: inherit; font-size: 16px; color: var(--text);
  border: 1.5px solid var(--line); border-radius: 10px; background: var(--white);
  -webkit-appearance: none; appearance: none;
}
select { background: var(--white) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8'%3E%3Cpath d='M1 1l5 5 5-5' fill='none' stroke='%2355657A' stroke-width='2'/%3E%3C/svg%3E") right 12px center no-repeat; padding-right: 32px; }
textarea { min-height: 110px; resize: vertical; }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--blue); box-shadow: 0 0 0 3px rgba(46, 139, 230, .2); }
[aria-invalid="true"] { border-color: var(--red) !important; background: #FFF5F5; }
/* 内見希望日時（第1〜第3希望） */
.visit-rows { display: grid; gap: 8px; }
.visit-row { display: grid; grid-template-columns: 4.2em 1fr 6.5em; gap: 6px; align-items: center; }
.visit-row__no { font-size: 13px; font-weight: 700; color: var(--sub); }
.visit-row input, .visit-row select { min-width: 0; padding-left: 8px; padding-right: 8px; }
.visit-row select { padding-right: 26px; background-position: right 8px center; }
.row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.choices { display: grid; gap: 8px; }
.choices--2 { grid-template-columns: 1fr 1fr; }
.choice { position: relative; display: block; cursor: pointer; }
.choice input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.choice span {
  display: flex; align-items: center; min-height: 52px; padding: 10px 12px 10px 40px;
  border: 1.5px solid var(--line); border-radius: 10px; font-size: 15px; line-height: 1.4;
  position: relative; background: var(--white);
}
.choice span::before {
  content: ""; position: absolute; left: 12px; top: 50%; transform: translateY(-50%);
  width: 20px; height: 20px; border: 2px solid var(--line); border-radius: 50%; background: var(--white);
}
.choice input[type="checkbox"] + span::before { border-radius: 5px; }
.choice input:checked + span { border-color: var(--blue); background: var(--pale); font-weight: 700; }
.choice input:checked + span::before { border-color: var(--blue); background: var(--blue); box-shadow: inset 0 0 0 3px var(--white); }
.choice input:focus-visible + span { box-shadow: 0 0 0 3px rgba(46, 139, 230, .35); }
.agree { display: flex; align-items: flex-start; gap: 10px; cursor: pointer; font-weight: 500; line-height: 1.6; }
.agree input { width: 24px; height: 24px; margin: 0; flex-shrink: 0; accent-color: var(--blue); }
.agree .req { margin-left: 6px; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form__assure { text-align: center; font-size: 14px; color: var(--sub); margin-top: 10px; font-weight: 700; }
.form__message { color: var(--red); font-weight: 700; margin-top: 10px; line-height: 1.6; }
.form__message:empty { display: none; }

/* ---------- 13. フッター ---------- */
.site-footer { padding: 32px var(--gutter) 24px; background: var(--text); color: #DDE5EE; font-size: 13px; line-height: 1.75; }
/* 固定バーがあるページでは、バーに隠れる分の余白をフッターの中に取る（白い帯を出さない） */
.page:has(.fixed-bar) .site-footer { padding-bottom: calc(24px + 76px + env(safe-area-inset-bottom)); }
.site-footer a { color: var(--white); }
.logo--footer { width: 180px; height: 48px; margin-bottom: 16px; background: var(--white); border-radius: 8px; padding: 4px 8px; }
.company dt { font-weight: 700; color: var(--white); margin-top: 10px; }
.site-footer p { margin-top: 14px; }
.copy { color: #9AA8B8; font-size: 12px; }

/* ---------- 固定フッターバー ---------- */
.fixed-bar {
  position: fixed; bottom: 0; left: 50%; z-index: 60;
  width: 100%; max-width: var(--page); transform: translateX(-50%);
  display: grid; grid-template-columns: 1fr 1.4fr; gap: 8px;
  padding: 8px var(--gutter) calc(8px + env(safe-area-inset-bottom));
  background: rgba(255, 255, 255, .96); border-top: 1px solid var(--line);
  transition: transform .25s, opacity .25s;
}
.fixed-bar .btn { min-height: 52px; box-shadow: none; }
.fixed-bar.is-hidden { transform: translate(-50%, 110%); opacity: 0; pointer-events: none; }

/* ---------- 全画面表示 ---------- */
.lightbox {
  position: fixed; inset: 0; z-index: 100;
  background: rgba(10, 18, 28, .94);
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  padding: 56px 0 24px;
}
.lightbox__media { width: 100%; max-width: 960px; background: transparent; }
.lightbox__media img { object-fit: contain; }
.lightbox__close {
  position: absolute; top: 8px; right: 8px; width: 48px; height: 48px;
  border: 0; border-radius: 50%; background: rgba(255, 255, 255, .15); color: var(--white);
  display: flex; align-items: center; justify-content: center; cursor: pointer;
}
.lightbox__prev { left: 8px; }
.lightbox__next { right: 8px; }
.lightbox__count { color: var(--white); margin-top: 10px; font-size: 14px; }
.lightbox__cap { color: #DDE5EE; font-size: 14px; padding: 4px 16px; text-align: center; line-height: 1.5; }

/* ---------- サンクス・プライバシー ---------- */
.simple { padding: 40px var(--gutter) 48px; }
.simple h1 { font-size: 20px; font-weight: 700; text-align: center; line-height: 1.45; }
.thanks-lead {
  margin: 24px 0; padding: 20px 16px; border-radius: var(--radius);
  background: var(--pale); font-size: 20px; font-weight: 700; text-align: center; line-height: 1.6; color: var(--blue-dark);
}
.simple p { margin-top: 12px; }
.simple h2 { font-size: 16px; font-weight: 700; margin: 28px 0 8px; }
.back-link { margin-top: 28px; text-align: center; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .btn, .fixed-bar { transition: none; }
}
