/* =========================================================
   株式会社Houseland 公式サイト
   - 色は正式ロゴの青（#00a1e9）と、同じ色味を深くした青だけ
   - 文字はすべて明朝体（Noto Serif JP。使用文字だけを fonts/ に同梱、OFL）。
     細い明朝でも読みやすいよう、本文は Medium（500）、見出し・強調は SemiBold（600）
   - 参考：三菱地所（ロゴ色の面＋明朝の言葉）、三井不動産（ロゴ色の細線）、
     ヒューリック（グループのロゴを並べる帯）、住友不動産（罫線だけの会社概要）
   ========================================================= */

@font-face {
  font-family: "HL Serif JP";
  src: url("fonts/serif-jp-500.woff2") format("woff2");
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "HL Serif JP";
  src: url("fonts/serif-jp-600.woff2") format("woff2");
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}

:root {
  --blue: #00a1e9;       /* ロゴの青（線・帯用） */
  --blue-deep: #0074a8;  /* ロゴの青を深くした色。ミッションの面・リンク文字（白とのコントラスト比 5.2:1） */
  --blue-dark: #00354c;  /* フッター */
  --ink: #231916;        /* ロゴの文字色。見出し用 */
  --text: #3a3a3a;
  --muted: #666;
  --line: #dde3e8;
  --tint: #f1f5f8;       /* 薄い青グレーの背景 */
  --white: #fff;

  --sans: "Hiragino Kaku Gothic ProN", "Hiragino Sans", "Noto Sans JP", "Noto Sans CJK JP",
          "Yu Gothic Medium", "YuGothic", "Meiryo", sans-serif;
  --serif: "HL Serif JP", "Noto Serif JP", "Hiragino Mincho ProN", "Yu Mincho", "YuMincho", "Noto Serif JP", "Noto Serif CJK JP", serif;

  --container: 1080px;
  --gutter: 40px;
  --header-h: 84px;
}

/* ---------- base ---------- */
*,
*::before,
*::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}
@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
}

body {
  margin: 0;
  font-family: var(--serif);   /* ページ内の文字はすべて明朝体にそろえる */
  font-weight: 500;
  font-size: 16px;
  line-height: 1.9;
  letter-spacing: .04em;
  color: var(--text);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
  /* 日本語の改行：<wbr> の位置（文節）で折り返し、収まらない場合だけ文字単位で折り返す */
  word-break: keep-all;
  overflow-wrap: break-word;  /* 古いブラウザ用 */
  overflow-wrap: anywhere;
  line-break: strict;
}

h1, h2, h3, p, ul, dl, dd, table { margin: 0; }
ul { padding: 0; list-style: none; }
a { color: var(--blue-deep); }
a[href^="tel:"] { white-space: nowrap; }  /* 電話番号をハイフンで改行させない */
img { display: block; max-width: 100%; height: auto; }
.nowrap { white-space: nowrap; }          /* 郵便番号・番地など */
#main:focus { outline: none; }            /* スキップリンクの移動先 */

:focus-visible {
  outline: 2px solid var(--blue-deep);
  outline-offset: 3px;
}

.visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px;
  margin: -1px; padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: absolute;
  left: 12px; top: -100px;
  z-index: 100;
  padding: 8px 14px;
  background: var(--ink);
  color: var(--white);
  font-size: 13px;
  text-decoration: none;
}
.skip-link:focus { top: 12px; }

.container {
  width: min(var(--container), 100% - var(--gutter) * 2);
  margin-inline: auto;
}

/* アンカーリンクで見出しが固定ヘッダーに隠れないように */
[id] { scroll-margin-top: var(--header-h); }

/* ---------- header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--white);
  border-bottom: 1px solid var(--line);
  transition: box-shadow .3s ease;
}
.site-header.is-scrolled { box-shadow: 0 8px 20px -14px rgba(0, 30, 45, .4); }  /* f. スクロールしたら薄い影 */
.header-inner {
  min-height: var(--header-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  color: var(--ink);
  text-decoration: none;
}
.brand-logo { width: auto; height: 60px; }
.brand-name {
  font-size: 16px;
  font-weight: 600;
  letter-spacing: .05em;
  white-space: nowrap;
}

.site-nav ul {
  display: flex;
  align-items: center;
  gap: 32px;
}
.site-nav a {
  display: block;
  padding: 6px 0;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: .06em;
  color: var(--ink);
  text-decoration: none;
}
.site-nav a:hover { color: var(--blue-deep); }
.site-nav .nav-contact a {
  padding: 9px 20px;
  background: var(--blue-deep);
  color: var(--white);
}
.site-nav .nav-contact a:hover { background: var(--blue-dark); color: var(--white); }

.menu-button { display: none; }

/* ---------- ミッション（ロゴ色の面＋白い明朝） ---------- */
.hero-block {
  /* 下の内容と同じ幅で中央にそろえる */
  width: min(var(--container), 100% - var(--gutter) * 2);
  margin-inline: auto;
  background: var(--blue-deep);
  color: var(--white);
}
/* 最初の画面はミッションだけ（PC・スマホとも、青い面を画面の高さいっぱいに） */
.hero {
  display: flex;
  flex-direction: column;
  min-height: calc(100vh - var(--header-h));
  min-height: calc(100svh - var(--header-h));
  padding: 40px 0;
}
.hero-block {
  flex: 1;
  display: flex;
  align-items: center;
}
.hero-inner {
  max-width: calc(var(--container) - 0px);
  padding: 96px 80px 104px;
}
.hero-label {
  display: flex;
  align-items: center;
  gap: 14px;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: .2em;
  color: var(--white);
}
.hero-label::before {
  content: "";
  width: 32px;
  height: 1px;
  background: rgba(255, 255, 255, .7);
}
.mission {
  margin-top: 32px;
  font-family: var(--serif);
  font-size: clamp(30px, 4.6vw, 56px);
  font-weight: 600;
  line-height: 1.6;
  letter-spacing: .12em;
  color: var(--white);
  font-feature-settings: "palt";
}
.mission-line { display: block; }

/* トップ：背景写真の上に青い枠を重ねる */
.hero-photo {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  justify-content: center;
  padding: 72px 0;
  background: var(--blue-dark);
}
.hero-bg {
  position: absolute;
  inset: 0;
  z-index: -2;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.hero-photo .hero-block {
  flex: none;
  align-self: flex-start;
  width: auto;
  max-width: min(var(--container), 100% - var(--gutter) * 2);
  /* 左端は下の内容の端にそろえる */
  margin-left: calc((100% - min(var(--container), 100% - var(--gutter) * 2)) / 2);
  margin-right: 0;
}
.hero-photo .hero-inner { padding: 72px 72px 80px; }
/* 青い枠は使わず、写真の上に白い文字を直接置く。文字の後ろだけ写真をうっすら暗くして読みやすくする */
.hero-photo .hero-block { background: transparent; }
.hero-photo::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(90deg, rgba(0, 30, 45, .62) 0%, rgba(0, 30, 45, .42) 40%, rgba(0, 30, 45, .08) 72%, rgba(0, 30, 45, 0) 100%);
}
.hero-photo .hero-label,
.hero-photo .mission { text-shadow: 0 2px 14px rgba(0, 20, 30, .45); }
.hero-photo .hero-label::before { background: #fff; box-shadow: 0 1px 6px rgba(0, 20, 30, .4); }


/* ---------- sections ---------- */
.section { padding: 96px 0; }
.section-tint { background: var(--tint); }

.section-title {
  margin-bottom: 48px;
  text-align: left;
  font-family: var(--serif);
  font-size: 30px;
  font-weight: 600;
  line-height: 1.5;
  letter-spacing: .14em;
  color: var(--ink);
}
/* PC：左に見出し、右に中身（冊子のような2段組） */
@media (min-width: 901px) {
  .split {
    display: grid;
    grid-template-columns: 220px minmax(0, 1fr);
    column-gap: 64px;
    align-items: start;
  }
  .split > .section-title { margin-bottom: 0; }
}

/* ---------- 事業内容 ---------- */
/* 事業内容（案A）：事業名と説明文を横に2つ並べる */
.business-groups { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 48px; }
.business-group { padding-top: 26px; border-top: 2px solid var(--blue); }
.business-group-title { font-size: 23px; font-weight: 600; line-height: 1.5; letter-spacing: .1em; color: var(--ink); }
.business-desc { margin-top: 14px; font-size: 17px; line-height: 1.9; letter-spacing: .06em; color: var(--text); }
.business-note { margin-top: 12px; font-size: 14px; color: var(--muted); }
.business-note::before { content: "※ "; }

/* ---------- グループ会社（ロゴを並べる帯） ---------- */
.group-list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 28px;
}
.group-item {
  display: flex;
  flex-direction: column;
}
.group-logo {
  height: 200px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 28px;
  background: var(--white);
  border: 1px solid var(--line);
  transition: border-color .25s ease;
}
.group-item:hover .group-logo,
.group-item:focus-within .group-logo { border-color: var(--blue); }
.group-logo img {
  width: auto;
  max-width: 100%;
  max-height: 144px;
}
.group-logo-wide img { max-width: 78%; }  /* 横長のロゴは幅を抑えて、見た目の大きさを揃える */
.group-body { flex: 1; display: flex; flex-direction: column; }
.group-name {
  margin-top: 22px;
  font-size: 18px;
  font-weight: 600;
  line-height: 1.6;
  color: var(--ink);
}
.group-reading {
  display: block;
  font-size: 13px;
  font-weight: 500;
  color: var(--muted);
}
.group-text {
  margin-top: 6px;
  font-size: 15.5px;
  line-height: 1.8;
}
/* 運営施設 */
.group-facility { margin: 12px 0 0; }
/* CRASIOの説明は「／」の位置で2行に（幅の広い画面だけ改行を入れる） */
.br-wide { display: none; }
@media (min-width: 901px) { .br-wide { display: inline; } .sep-narrow { display: none; } }
.group-facility dt {
  font-size: 12.5px;
  font-weight: 600;
  letter-spacing: .14em;
  color: var(--muted);
}
.group-facility dd {
  margin: 2px 0 0;
  font-size: 15px;
  line-height: 1.7;
  color: var(--ink);
}
.group-link {
  margin-top: auto;   /* 4社とも「公式サイト」をカードの下端にそろえる */
  padding-top: 18px;
  align-self: flex-start;
  font-size: 14px;
  font-weight: 600;
  text-underline-offset: 4px;
}
.group-link::after { content: " ↗"; font-weight: 500; }

/* ---------- 会社概要 ---------- */
.profile {
  width: 100%;
  border-collapse: collapse;
  border-top: 1px solid var(--ink);
  font-size: 16.5px;
}
.profile th,
.profile td {
  padding: 22px 24px;
  border-bottom: 1px solid var(--line);
  text-align: left;
  vertical-align: top;
  line-height: 1.8;
}
.profile th {
  width: 11em;
  background: #f6f8fa;   /* 項目名の列にごく薄い色 */
  font-weight: 600;
  color: var(--ink);
  white-space: nowrap;
}

.profile-sub { display: block; font-size: 14px; line-height: 1.7; color: var(--muted); }
.profile-more { margin-top: 24px; text-align: right; }
.profile-more a { font-weight: 600; text-underline-offset: 4px; }
.profile-more a::after { content: " →"; }

/* ---------- お問い合わせ ---------- */
.contact-box {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin: 0;
  background: var(--white);
  border: 1px solid var(--line);
}
.contact-item {
  padding: 40px 32px 38px;
  text-align: center;
}
.contact-item + .contact-item { border-left: 1px solid var(--line); }
.contact-item dt {
  font-size: 14px;
  font-weight: 600;
  letter-spacing: .2em;
  color: var(--muted);
}
.contact-item dd { margin: 10px 0 0; }
.contact-item .contact-hours { margin-top: 6px; font-size: 14px; color: var(--muted); }
.contact-tel {
  font-size: 30px;
  font-weight: 600;
  letter-spacing: .06em;
  color: var(--ink);
  text-decoration: none;
}
.contact-item:has(.contact-mail) { display: flex; flex-direction: column; justify-content: center; }
.contact-mail {
  font-size: 18px;
  font-weight: 600;
  text-underline-offset: 5px;
}

/* ---------- footer ---------- */
.site-footer {
  background: var(--blue-dark);
  color: #d6e3ea;
  font-size: 14px;
  line-height: 1.85;
}
.footer-inner {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 24px 48px;
  padding: 56px 0 40px;
}
.footer-name {
  margin-bottom: 8px;
  font-family: var(--serif);
  font-size: 19px;
  font-weight: 600;
  letter-spacing: .08em;
  color: var(--white);
}
.footer-company a { color: inherit; text-decoration: none; }
.footer-nav ul {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 28px;
}
.footer-nav a {
  color: var(--white);
  text-decoration: none;
}
.footer-nav a:hover { text-decoration: underline; text-underline-offset: 4px; }
.site-footer :focus-visible { outline-color: var(--white); }
.footer-bottom {
  padding: 18px 0 30px;
  border-top: 1px solid rgba(255, 255, 255, .18);
  font-size: 12px;
  color: #a9c0cc;
}
.footer-bottom small { font-size: inherit; }
.footer-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 6px 24px; }
.footer-bottom a { color: inherit; text-underline-offset: 3px; }

/* ---------- 404 ---------- */
.notfound { padding: 96px 0 120px; }
.notfound-title {
  font-family: var(--serif);
  font-size: clamp(22px, 3vw, 30px);
  font-weight: 600;
  line-height: 1.6;
  letter-spacing: .08em;
  color: var(--ink);
}
.notfound-links {
  margin-top: 32px;
  display: flex;
  flex-wrap: wrap;
  gap: 12px 28px;
  font-weight: 600;
}
.site-footer .footer-bottom:first-child { border-top: 0; }

/* =========================================================
   Houselandのページ・物件ページ
   ========================================================= */
.page-head {
  padding: 36px 0 72px;
  background: var(--white);
  border-bottom: 1px solid var(--line);
}
.page-head-slim { padding: 18px 0; }
.breadcrumb ol {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 0;
  margin: 0;
  padding: 0;
  list-style: none;
  font-size: 13px;
  color: var(--muted);
}
.breadcrumb li + li::before { content: "＞"; margin: 0 .6em; color: #9aa6b1; }
.breadcrumb a { color: var(--muted); }
.page-title {
  margin-top: 48px;
  font-size: clamp(30px, 4.2vw, 46px);
  font-weight: 600;
  line-height: 1.5;
  letter-spacing: .1em;
  color: var(--ink);
}

.page-lead {
  margin-top: 14px;
  font-size: 16px;
  letter-spacing: .1em;
  color: var(--muted);
}

.property-count {
  margin: -16px 0 28px;
  font-size: 16px;
  color: var(--ink);
}
.property-count .count-num { font-size: 26px; font-weight: 600; margin: 0 .15em; }

/* 自社所有物件：建物ごとのカード（PCは3列） */
.building-list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 32px 28px;
}
.building-card a {
  display: flex;
  flex-direction: column;
  height: 100%;
  background: var(--white);
  border: 1px solid var(--line);
  color: var(--text);
  text-decoration: none;
  transition: border-color .25s ease;
}
.building-card a:hover,
.building-card a:focus-visible { border-color: var(--blue); }
.building-card a:hover .building-name { color: var(--blue-deep); }
.building-photo {
  position: relative;
  aspect-ratio: 4 / 3;
  background: var(--tint);
  overflow: hidden;
}
.building-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .6s ease;
}
@media (prefers-reduced-motion: no-preference) {
  .building-card a:hover .building-photo img { transform: scale(1.04); }
}
.building-nophoto { position: absolute; inset: 0; display: grid; place-items: center; color: var(--muted); font-size: 13px; }
.building-body { padding: 20px 22px 22px; }
.building-type {
  display: inline-block;
  padding: 0 10px;
  border: 1px solid var(--line);
  font-size: 12.5px;
  line-height: 1.9;
  color: var(--ink);
}
.building-name {
  margin-top: 10px;
  font-size: 20px;
  font-weight: 600;
  line-height: 1.5;
  letter-spacing: .06em;
  color: var(--ink);
  text-wrap: balance;
  transition: color .25s ease;
}
.building-address { margin-top: 4px; font-size: 14.5px; color: var(--muted); }
.building-spec {
  margin: 14px 0 0;
  padding-top: 12px;
  border-top: 1px solid var(--line);
  font-size: 14px;
  line-height: 1.8;
}
.building-spec div { display: flex; gap: 1em; }
.building-spec dt { flex: none; width: 4.5em; color: var(--muted); }
.building-spec dd { margin: 0; color: var(--text); }

/* 建物のページ */
.building-page { padding-top: 40px; }
.building { max-width: 920px; margin-inline: auto; }
.building-title {
  margin: 10px 0 28px;
  font-size: clamp(26px, 3.4vw, 36px);
  font-weight: 600;
  line-height: 1.5;
  letter-spacing: .08em;
  color: var(--ink);
  text-wrap: balance;
}
.building-section-title {
  margin: 8px 0 16px;
  font-size: 22px;
  font-weight: 600;
  line-height: 1.5;
  letter-spacing: .1em;
  color: var(--ink);
}
.building-back { margin-top: 40px; }
.building-back a { text-underline-offset: 4px; }
.building-back a::before { content: "← "; }

.gallery { margin-bottom: 48px; }
.gallery-main {
  position: relative;
  background: #eef1f4;
  aspect-ratio: 4 / 3;
  max-height: 620px;
  width: 100%;
  overflow: hidden;
}
.gallery-main img { width: 100%; height: 100%; object-fit: contain; }
.gallery-prev, .gallery-next {
  position: absolute;
  top: 50%;
  width: 48px; height: 48px;
  margin-top: -24px;
  border: 0;
  background: rgba(0, 53, 76, .72);
  cursor: pointer;
}
.gallery-prev { left: 0; }
.gallery-next { right: 0; }
.gallery-prev::before, .gallery-next::before {
  content: "";
  position: absolute;
  top: 50%; left: 50%;
  width: 12px; height: 12px;
  border-top: 2px solid #fff;
  border-left: 2px solid #fff;
}
.gallery-prev::before { transform: translate(-30%, -50%) rotate(-45deg); }
.gallery-next::before { transform: translate(-70%, -50%) rotate(135deg); }
.gallery-count {
  position: absolute;
  right: 8px; bottom: 8px;
  padding: 0 10px;
  background: rgba(0, 0, 0, .55);
  color: #fff;
  font-size: 13px;
}
.gallery-caption { text-wrap: balance; margin-top: 8px; font-size: 14px; color: var(--muted); text-align: center; min-height: 1.9em; word-break: normal; }
.gallery-thumbs {
  margin-top: 12px;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(84px, 1fr));
  gap: 6px;
}
.gallery-thumbs a {
  display: block;
  border: 2px solid transparent;
  aspect-ratio: 4 / 3;
  overflow: hidden;
}
.gallery-thumbs a[aria-current="true"] { border-color: var(--blue-deep); }
.gallery-thumbs img { width: 100%; height: 100%; object-fit: cover; }
.gallery-empty { padding: 60px 0; text-align: center; background: var(--tint); color: var(--muted); }

.spec-table {
  width: 100%;
  table-layout: fixed;  /* 項目名の列が内容に押されて縮まないように */
  border-collapse: collapse;
  border-top: 1px solid var(--ink);
  font-size: 15.5px;
}
.spec-table th, .spec-table td {
  padding: 16px 20px;
  border-bottom: 1px solid var(--line);
  text-align: left;
  vertical-align: top;
  line-height: 1.8;
}
.spec-table th { width: 9em; background: #f6f8fa; font-weight: 600; color: var(--ink); word-break: keep-all; }
.spec-table td { word-break: normal; }

/* =========================================================
   v7：ボタン・自社物件の流れるカード・ミッション・メンバー・フォーム・プライバシーポリシー
   ========================================================= */
.button {
  display: inline-block;
  padding: 14px 34px;
  border: 1px solid var(--blue-deep);
  background: var(--white);
  color: var(--blue-deep);
  font: inherit;
  font-weight: 600;
  letter-spacing: .1em;
  text-decoration: none;
  cursor: pointer;
  transition: background-color .25s ease, color .25s ease;
}
.button::after { content: " →"; }
.button:hover { background: var(--blue-deep); color: var(--white); }
button.button::after { content: none; }
button.button:disabled { opacity: .6; cursor: default; }
.container.narrow { width: min(820px, 100% - var(--gutter) * 2); }

/* 自社所有物件（トップ）：横に流れるカード */
.carousel {
  overflow-x: auto;
  overscroll-behavior-x: contain;
  -webkit-overflow-scrolling: touch;
  padding: 4px 0 8px;
}
.js .carousel { scrollbar-width: none; }
.js .carousel::-webkit-scrollbar { display: none; }
.carousel-track {
  display: flex;
  gap: 24px;
  width: max-content;
  margin: 0;
  padding: 0 max(var(--gutter), (100vw - var(--container)) / 2);
}
.carousel-card { flex: none; width: 280px; }
.carousel-card a {
  display: block;
  height: 100%;
  background: var(--white);
  border: 1px solid var(--line);
  color: var(--text);
  text-decoration: none;
  transition: border-color .25s ease;
}
.carousel-card a:hover, .carousel-card a:focus-visible { border-color: var(--blue); }
.carousel-card a:hover .carousel-name { color: var(--blue-deep); }
.carousel-photo { aspect-ratio: 4 / 3; overflow: hidden; background: var(--tint); }
.carousel-photo img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s ease; }
@media (prefers-reduced-motion: no-preference) {
  .carousel-card a:hover .carousel-photo img { transform: scale(1.04); }
}
.carousel-type, .carousel-name, .carousel-address { margin-inline: 18px; }
.carousel-type {
  display: inline-block;
  margin-top: 16px;
  padding: 0 10px;
  border: 1px solid var(--line);
  font-size: 12px;
  line-height: 1.9;
  color: var(--ink);
}
.carousel-name { margin-top: 8px; font-size: 18px; font-weight: 600; line-height: 1.5; letter-spacing: .06em; color: var(--ink); text-wrap: balance; transition: color .25s ease; }
.carousel-address { margin-top: 2px; margin-bottom: 18px; font-size: 14px; color: var(--muted); }
.carousel-controls {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  width: min(var(--container), 100% - var(--gutter) * 2);
  margin: 20px auto 0;
}
.carousel-prev, .carousel-next {
  position: relative;
  width: 48px; height: 48px;
  border: 1px solid var(--blue-deep);
  background: var(--white);
  cursor: pointer;
  transition: background-color .25s ease;
}
.carousel-prev::before, .carousel-next::before {
  content: "";
  position: absolute;
  top: 50%; left: 50%;
  width: 10px; height: 10px;
  border-top: 2px solid var(--blue-deep);
  border-left: 2px solid var(--blue-deep);
}
.carousel-prev::before { transform: translate(-30%, -50%) rotate(-45deg); }
.carousel-next::before { transform: translate(-70%, -50%) rotate(135deg); }
.carousel-prev:hover, .carousel-next:hover { background: var(--blue-deep); }
.carousel-prev:hover::before, .carousel-next:hover::before { border-color: var(--white); }
.properties-more { margin-top: 36px; text-align: center; }
.properties-page { padding-top: 56px; }

/* ミッション・ビジョン・バリュー */
.mvv-list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 40px;
}
.mvv-item { padding-top: 26px; border-top: 2px solid var(--blue); }
.mvv-label { font-size: 21px; font-weight: 600; line-height: 1.5; letter-spacing: .14em; color: var(--ink); }
.mvv-text {
  margin-top: 14px;
  font-size: 18px;
  font-weight: 500;
  line-height: 2;
  letter-spacing: .06em;
  color: var(--ink);
}
.mvv-text + .mvv-text { margin-top: 12px; }
.mvv-values { margin-top: 14px; }
.mvv-values li {
  padding: 4px 0;
  font-size: 16.5px;
  line-height: 1.8;
  color: var(--ink);
}
.mvv-values li:first-child { padding-top: 0; }

/* メンバー */
.member-list {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 32px 28px;
}
.member img { width: 100%; aspect-ratio: 3 / 4; object-fit: cover; background: #e9edf0; }
.member-name { margin-top: 14px; font-size: 19px; font-weight: 600; letter-spacing: .14em; color: var(--ink); }
.member-role { margin-top: 2px; font-size: 13px; letter-spacing: .14em; color: var(--muted); }

/* お問い合わせ（トップ）からフォームへ */
.contact-form-link { margin-top: 28px; text-align: center; }

/* お問い合わせフォーム */
.form-page { padding-top: 48px; }
.contact-box-small { margin-bottom: 64px; }
.form-title { margin-bottom: 8px; font-size: 22px; font-weight: 600; letter-spacing: .1em; color: var(--ink); }
.form-lead { margin-bottom: 28px; font-size: 14.5px; color: var(--muted); }
.req, .opt {
  display: inline-block;
  margin-left: 10px;
  padding: 0 7px;
  font-size: 11.5px;
  font-weight: 600;
  line-height: 1.8;
  letter-spacing: .08em;
  vertical-align: .15em;
}
.req { background: var(--blue-deep); color: var(--white); }
.opt { border: 1px solid var(--line); color: var(--muted); }
.form-lead .req { margin: 0 4px 0 0; }
.form-row { margin: 0 0 24px; padding: 0; border: 0; }
.form-row > label, .form-row > legend { display: block; margin-bottom: 8px; padding: 0; font-weight: 600; color: var(--ink); }
.contact-form input[type="text"], .contact-form input[type="email"], .contact-form input[type="tel"], .contact-form textarea {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid #c9d2d9;
  border-radius: 0;
  background: var(--white);
  font: inherit;
  font-size: 16px;   /* iPhoneで入力時に拡大されない大きさ */
  color: var(--text);
}
.contact-form textarea { resize: vertical; min-height: 180px; line-height: 1.8; }
.contact-form input:focus, .contact-form textarea:focus { outline: 2px solid var(--blue); outline-offset: 0; border-color: var(--blue); }
.form-choices { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px 20px; }
.form-choices label, .form-agree label { display: flex; align-items: center; gap: 10px; cursor: pointer; }
.form-choices input, .form-agree input { width: 18px; height: 18px; margin: 0; flex: none; accent-color: var(--blue-deep); }
.form-agree label { flex-wrap: wrap; font-weight: 500; }
.form-row.is-invalid input[type="text"], .form-row.is-invalid input[type="email"], .form-row.is-invalid textarea { border-color: #b3261e; }
.form-row.is-invalid > label, .form-row.is-invalid > legend { color: #b3261e; }
.form-error { margin-bottom: 20px; padding: 14px 16px; border: 1px solid #b3261e; background: #fdf3f2; color: #8c1d16; font-size: 15px; }
.form-error:focus { outline: none; }
.form-submit { margin-top: 32px; text-align: center; }
.form-submit .button { min-width: 240px; padding: 16px 40px; background: var(--blue-deep); color: var(--white); }
.form-submit .button:hover { background: var(--blue-dark); border-color: var(--blue-dark); }
.form-honeypot { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-done { padding: 40px 24px; border: 1px solid var(--line); text-align: center; }
.form-done:focus { outline: none; }
.form-done-title { margin-bottom: 12px; font-size: 22px; font-weight: 600; color: var(--ink); }
.form-done p + p { margin-top: 8px; }

/* プライバシーポリシー */
.policy { padding-top: 48px; }
.policy p, .policy li, .policy dd, .policy dt { font-size: 15.5px; line-height: 2; word-break: normal; }
.policy h2 { margin: 40px 0 10px; font-size: 18px; font-weight: 600; letter-spacing: .06em; color: var(--ink); }
.policy h3 { margin: 18px 0 6px; font-size: 16px; font-weight: 600; color: var(--ink); }
.policy p + p { margin-top: 10px; }
.policy-date { margin-bottom: 20px; font-size: 14px !important; color: var(--muted); text-align: right; }
.policy-list { margin: 6px 0 0; padding: 0; list-style: none; counter-reset: pol; }
.policy-list li { counter-increment: pol; position: relative; padding-left: 2.6em; }
.policy-list li::before { content: "(" counter(pol) ")"; position: absolute; left: 0; }
.policy-contact { margin: 10px 0 0; }
.policy-contact div { display: flex; gap: 1em; }
.policy-contact dt { flex: none; width: 5em; color: var(--muted); }
.policy-contact dd { margin: 0; }

/* =========================================================
   動き（動きを減らす設定の端末では動かさない）
   ========================================================= */
@media (prefers-reduced-motion: no-preference) {
  /* a. 最初の写真がごくゆっくり寄る */
  .hero-bg { animation: hl-zoom 14s ease-out both; }
  /* b. 企業理念の文字を順に表示 */
  .hero-label, .mission-line { animation: hl-fade 1.2s ease both; }
  .hero-label { animation-delay: .3s; }
  .mission-line:nth-child(1) { animation-delay: .7s; }
  .mission-line:nth-child(2) { animation-delay: 1.2s; }
}
@keyframes hl-zoom { from { transform: scale(1); } to { transform: scale(1.06); } }
@keyframes hl-fade { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
/* c・e. 画面に入ったら下から浮き上がる（JavaScriptが動くときだけ .reveal が付く） */
.reveal { opacity: 0; transform: translateY(18px); }
.reveal.is-visible { opacity: 1; transform: none; transition: opacity .9s ease, transform .9s ease; }

/* =========================================================
   タブレット以下
   ========================================================= */
@media (max-width: 1024px) {
  .member-list { grid-template-columns: repeat(2, minmax(0, 1fr)); max-width: 640px; }
}

@media (max-width: 900px) {
  .hero-inner { padding: 80px 56px 88px; }
  /* タブレット：1社ずつ、ロゴを左・文字を右に */
  .group-list { grid-template-columns: 1fr; gap: 20px; }
  .group-item {
    display: grid;
    grid-template-columns: 220px minmax(0, 1fr);
    column-gap: 28px;
    align-items: center;
  }
  .group-logo { height: 160px; padding: 20px; }
  .group-logo img { max-height: 116px; }
  .group-name { margin-top: 0; }
  .group-link { padding-top: 14px; }
  .mvv-list { grid-template-columns: 1fr; gap: 32px; }
  .building-list { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px 20px; }
  .hero-photo .hero-inner { padding: 64px 48px 72px; }
}

@media (max-width: 860px) {
  :root { --gutter: 24px; --header-h: 68px; }

  .brand-logo { height: 48px; }
  .brand-name { font-size: 15px; }

  /* JS 有効時のみ、ナビをハンバーガーメニューに格納する */
  .js .menu-button {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    min-height: 44px;
    margin-right: -10px;
    padding: 10px;
    background: none;
    border: 0;
    color: var(--ink);
    font: inherit;
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
  }
  .menu-icon,
  .menu-icon::before,
  .menu-icon::after {
    display: block;
    width: 22px;
    height: 2px;
    background: currentColor;
  }
  .menu-icon { position: relative; }
  .menu-icon::before,
  .menu-icon::after { content: ""; position: absolute; left: 0; }
  .menu-icon::before { top: -7px; }
  .menu-icon::after { top: 7px; }
  .menu-button[aria-expanded="true"] .menu-icon { background: transparent; }
  .menu-button[aria-expanded="true"] .menu-icon::before { transform: translateY(7px) rotate(45deg); }
  .menu-button[aria-expanded="true"] .menu-icon::after { transform: translateY(-7px) rotate(-45deg); }

  .js .site-nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    max-height: calc(100vh - var(--header-h));
    max-height: calc(100dvh - var(--header-h));
    overflow-y: auto;
    overscroll-behavior: contain;
    background: var(--white);
    border-bottom: 1px solid var(--line);
    box-shadow: 0 12px 20px -12px rgba(0, 0, 0, .18);
  }
  .js .site-nav.is-open { display: block; }
  .js .site-nav ul {
    display: block;
    width: min(var(--container), 100% - var(--gutter) * 2);
    margin-inline: auto;
    padding: 4px 0 20px;
  }
  .js .site-nav li + li { border-top: 1px solid var(--line); }
  .js .site-nav a { padding: 16px 0; font-size: 16px; }
  .js .site-nav li.nav-contact { border-top: 0; padding-top: 12px; }
  .js .site-nav .nav-contact a { padding: 14px 0; text-align: center; }

  /* JS 無効時はナビを折り返して表示 */
  /* JS が動かない環境（iPhone の「ファイル」アプリのプレビュー等）では、メニューを1行で表示 */
  html:not(.js) .header-inner { flex-wrap: wrap; row-gap: 0; padding: 10px 0 4px; }
  html:not(.js) .site-nav { width: 100%; }
  html:not(.js) .site-nav ul { justify-content: space-between; gap: 0 8px; flex-wrap: nowrap; }
  html:not(.js) .site-nav a { padding: 8px 0; font-size: 12px; letter-spacing: .02em; white-space: nowrap; }
  html:not(.js) .site-nav .nav-contact a { padding: 8px 0; background: none; color: var(--blue-deep); }

  .hero { padding: 24px 0; }
  .section { padding: 72px 0; }
}

@media (max-width: 640px) {
  body { font-size: 15px; }

  .hero { padding: 16px 0; }
  .hero-inner { padding: 56px 28px 64px; }
  .mission {
    margin-top: 22px;
    font-size: clamp(24px, 7.4vw, 32px);
    letter-spacing: .08em;
  }

  .section { padding: 60px 0; }
  .section-title { margin-bottom: 36px; font-size: 24px; }

  /* スマホ：2つの事業を縦に並べる */
  .business-groups { grid-template-columns: 1fr; gap: 36px; }
  .business-row { grid-template-columns: 1fr; gap: 8px; }

  /* トップ：スマホは写真を上に見せ、青い枠を下側に */
  .hero-photo .hero-block { align-self: center; width: calc(100% - var(--gutter) * 2); max-width: none; margin-inline: auto; }
  .hero-photo .hero-inner { padding: 40px 8px 46px; }
  .hero-photo { justify-content: center; padding: 0; }
  .hero-photo::before { background: linear-gradient(90deg, rgba(0, 30, 45, .62) 0%, rgba(0, 30, 45, .4) 55%, rgba(0, 30, 45, .12) 100%); }

  /* 自社所有物件：スマホは2列（写真＋物件名＋所在地） */
  .page-head-slim { padding: 12px 0; }
  .building-list { gap: 14px 12px; }
  .building-body { padding: 12px 12px 14px; }
  .building-type { padding: 0 6px; font-size: 11px; }
  .building-name { margin-top: 6px; font-size: 16px; letter-spacing: .02em; }
  .building-address { font-size: 12.5px; line-height: 1.7; }
  .building-spec { display: none; }
  .building-page { padding-top: 24px; }
  .carousel-card { width: 220px; }
  .carousel-track { gap: 14px; }
  .carousel-name { font-size: 16px; }
  .carousel-type, .carousel-name, .carousel-address { margin-inline: 14px; }
  .carousel-address { font-size: 13px; }
  .member-list { gap: 24px 14px; }
  .member-name { font-size: 16px; letter-spacing: .08em; }
  .mvv-text { font-size: 16.5px; }
  .mvv-values li { font-size: 15.5px; }
  .form-choices { grid-template-columns: 1fr; }
  .contact-box-small { margin-bottom: 48px; }
  .policy-date { text-align: left; }
  .gallery-thumbs { grid-template-columns: repeat(auto-fill, minmax(58px, 1fr)); gap: 4px; }
  .spec-table { font-size: 14.5px; }
  .spec-table th { width: 6.5em; padding: 12px 10px; }
  .spec-table td { padding: 12px 10px; }

  .group-item { display: flex; align-items: stretch; }
  .group-logo { height: 170px; }
  .group-logo img { max-height: 120px; }
  .group-name { margin-top: 16px; }

  .profile { font-size: 15px; }
  .profile th { width: 6.8em; padding: 16px 10px; }
  .profile td { padding: 16px 12px; }

  /* お問い合わせ：縦に並べ、電話番号はタップしやすいボタンの形に */
  .contact-box { grid-template-columns: 1fr; }
  .contact-item { padding: 28px 18px 26px; }
  .contact-item + .contact-item { border-left: 0; border-top: 1px solid var(--line); }
  .contact-tel {
    display: block;
    max-width: 320px;
    margin-inline: auto;
    padding: 10px 8px 12px;
    border: 1px solid var(--blue-deep);
    font-size: 24px;
    line-height: 1.4;
  }
  .contact-tel::before { content: "電話をかける"; display: block; font-size: 12px; line-height: 1.6; letter-spacing: .14em; color: var(--blue-deep); }
  .contact-mail { font-size: 16px; }
  .page-head { padding: 20px 0 44px; }
  .page-title { margin-top: 28px; }
  .page-lead { font-size: 14px; }

  .footer-inner { flex-direction: column; padding-top: 44px; }
}

@media (max-width: 420px) {
  .spec-table th, .spec-table td { display: block; width: auto; }
  .spec-table th { border-bottom: 0; padding: 8px 10px 4px; }
  .spec-table td { padding: 4px 10px 10px; }
  /* 狭い画面では会社概要の表を「項目名の下に内容」の縦並びにする */
  .profile th,
  .profile td { display: block; width: auto; }
  .profile th { padding: 10px 10px 8px; border-bottom: 0; }
  .profile td { padding: 10px 10px 16px; }
  .hero-inner { padding: 48px 22px 56px; }
  .contact-item { padding: 24px 12px 22px; }
  .contact-mail { font-size: 15px; letter-spacing: 0; }
}

@media (max-width: 360px) {
  :root { --gutter: 18px; }
  .brand { gap: 10px; }
  .brand-logo { height: 42px; }
  .brand-name { font-size: 13px; }
  .contact-mail { font-size: 13px; }
  html:not(.js) .site-nav a { font-size: 10.5px; letter-spacing: 0; }
  html:not(.js) .site-nav ul { gap: 0 4px; }
}

@media (max-width: 300px) {
  .building-list { grid-template-columns: 1fr; }
  html:not(.js) .site-nav ul { flex-wrap: wrap; justify-content: flex-start; gap: 0 10px; }
}

/* ---------- print（色の面は印刷されないため、文字を黒にする） ---------- */
@media print {
  @page { margin: 14mm 12mm; }
  body { font-size: 10.5pt; color: #000; }
  .container { width: 100%; }
  .site-header { position: static; }
  .menu-button, .skip-link, .site-nav, .footer-nav { display: none !important; }
  .hero { padding: 4mm 0 0; display: block; min-height: 0; }
  .hero-bg { display: none; }
  .hero-label, .mission-line, .reveal { animation: none !important; opacity: 1 !important; transform: none !important; }
  .carousel-controls, .contact-form, .form-title, .form-lead { display: none !important; }
  .carousel { overflow: visible; }
  .carousel-track { flex-wrap: wrap; width: auto; padding: 0; }
  .hero-photo { padding: 0; background: none; }
  .hero-photo::before { display: none; }
  .hero-photo .hero-label, .hero-photo .mission { text-shadow: none; }
  .hero-photo .hero-block { margin: 0; }
  .hero-block { display: block; width: 100%; background: none; color: #000; border: 1px solid #000; }
  .hero-inner { padding: 8mm; }
  .hero-label, .mission { color: #000; }
  .hero-label::before { background: #000; }
  .mission { font-size: 22pt; }
  .section { padding: 6mm 0; }
  .section-title { margin-bottom: 5mm; break-after: avoid; }
  .group-list { grid-template-columns: repeat(3, 1fr); gap: 4mm; }
  .group-item { display: flex; }
  .group-logo { height: 26mm; padding: 2mm; border: 1px solid #ccc; }
  .group-logo img { max-height: 22mm; }
  .group-item, .profile tr, .contact-item { break-inside: avoid; }
  .contact-tel::before { content: none; }
  .profile th { background: none; }
  .group-link::after { content: "（" attr(href) "）"; font-weight: 500; font-size: 8.5pt; color: #333; }
  .contact-box { border: 1px solid #ccc; }
  .site-footer { background: none; color: #000; break-inside: avoid; }
  .site-footer * { color: #000 !important; }
  .footer-bottom { border-color: #999; }
}

/* そのほかの自社所有物件（写真の無い建物の表） */
.others-title { margin: 64px 0 18px; font-size: 22px; font-weight: 600; letter-spacing: .1em; color: var(--ink); }
.others-table { width: 100%; border-collapse: collapse; background: var(--white); border-top: 2px solid var(--blue); font-size: 15.5px; }
.others-table th, .others-table td { padding: 14px 18px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: middle; }
.others-table thead th { font-size: 13px; font-weight: 600; letter-spacing: .14em; color: var(--muted); background: #f6f8fa; }
.others-table tbody th { font-weight: 600; color: var(--ink); }

/* ===== スマホ（2026-11-25） ===== */
@media (max-width: 640px) {
  /* そのほかの自社所有物件：表をやめて、1棟ずつ「名前／種別・所在地・築年月」の2行に */
  .others-title { margin-top: 48px; font-size: 19px; }
  .others-table thead { display: none; }
  .others-table, .others-table tbody, .others-table tr { display: block; width: 100%; }
  .others-table tr { padding: 14px 16px 15px; border-bottom: 1px solid var(--line); }
  .others-table th, .others-table td { display: inline; padding: 0; border: 0; font-size: 13.5px; color: var(--muted); }
  .others-table tbody th { display: block; margin-bottom: 4px; font-size: 16.5px; color: var(--ink); }
  .others-table td:empty { display: none; }
  .others-table td:not(:empty) ~ td:not(:empty)::before { content: "／"; margin: 0 .4em; color: #b8c2ca; }
  /* グループ会社：ロゴを左に小さく、文字を右に */
  .group-list { gap: 28px; }
  .group-item { display: grid; grid-template-columns: 112px minmax(0, 1fr); column-gap: 16px; align-items: start; }
  .group-logo { height: 112px; padding: 12px; }
  .group-logo img { max-height: 84px; }
  .group-name { margin-top: 0; font-size: 16.5px; }
  .group-text { font-size: 14px; }
  .group-link { padding-top: 10px; }
}
@media (max-width: 640px) and (min-width: 340px) {
  /* 会社概要：項目名と中身を横に並べる */
  .profile th, .profile td { display: table-cell; }
  .profile th { width: 6.6em; padding: 14px 10px; border-bottom: 1px solid var(--line); }
  .profile td { padding: 14px 12px; }
}
