@charset "UTF-8";

/* ============================================================
   安永ビルヂング — 不動産事業サイト
   ダーク＆ゴールドのラグジュアリーテイスト
   ============================================================ */

:root {
  --bg: #0a0e16;
  --bg-2: #111726;
  --bg-3: #1a2236;
  --gold: #c9a962;
  --gold-2: #e8d5a3;
  --gold-3: #f5e6c0;
  --gold-dim: rgba(201, 169, 98, 0.15);
  --white: #f5f5f0;
  --muted: rgba(245, 245, 240, 0.55);
  --line: rgba(201, 169, 98, 0.2);
  --header-h: 72px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: "Noto Sans JP", "Hiragino Sans", "Yu Gothic", sans-serif;
  background: var(--bg);
  color: var(--white);
  line-height: 1.75;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
button { font-family: inherit; }
h1, h2, h3, h4, p, dl, dd { margin: 0; }

/* ---- ヘッダー ---- */
.header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  transition: background 0.4s var(--ease), height 0.3s var(--ease), border-color 0.4s;
}
.header.is-scrolled {
  background: rgba(10, 14, 22, 0.92);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  border-bottom: 1px solid var(--line);
}
.header--solid {
  background: rgba(10, 14, 22, 0.92);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  border-bottom: 1px solid var(--line);
}
.header-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 32px;
  height: var(--header-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.logo { display: block; flex-shrink: 0; line-height: 0; }
.logo img { height: 40px; width: auto; }

.nav { display: flex; align-items: center; gap: 32px; }
.nav a {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
  transition: color 0.2s;
}
.nav a:hover { color: var(--gold); }
.nav a.is-current { color: var(--gold); }

.menu-btn {
  display: none;
  background: none;
  border: 1px solid var(--line);
  color: var(--white);
  padding: 8px 14px;
  cursor: pointer;
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  border-radius: 8px;
}

/* ---- ヒーロー ---- */
.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  align-items: flex-end;
  padding: calc(var(--header-h) + 48px) 32px 80px;
}
.hero-bg {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(to top, var(--bg) 0%, transparent 40%),
    linear-gradient(to right, rgba(10, 14, 22, 0.92) 0%, rgba(10, 14, 22, 0.4) 100%),
    url("../image/hudousan.jpg") center / cover no-repeat;
}
.hero-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(var(--line) 1px, transparent 1px),
    linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: 80px 80px;
  opacity: 0.25;
  mask-image: linear-gradient(to bottom, transparent, black 30%, black 70%, transparent);
  -webkit-mask-image: linear-gradient(to bottom, transparent, black 30%, black 70%, transparent);
}
.hero-inner {
  position: relative;
  max-width: 1200px;
  margin: 0 auto;
  width: 100%;
}
.hero-tag {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-size: 0.75rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 28px;
}
.hero-tag::before {
  content: "";
  width: 40px; height: 1px;
  background: var(--gold);
}
.hero-title {
  font-family: "Noto Serif JP", serif;
  font-size: clamp(2.25rem, 6vw, 4rem);
  font-weight: 500;
  line-height: 1.2;
  margin: 0 0 24px;
  letter-spacing: 0.06em;
  max-width: 720px;
}
.hero-title span {
  display: block;
  font-size: 0.45em;
  color: var(--muted);
  letter-spacing: 0.16em;
  margin-bottom: 12px;
  font-family: "Noto Sans JP", sans-serif;
  font-weight: 400;
}
.hero-lead {
  max-width: 520px;
  color: var(--muted);
  font-size: 0.9375rem;
  margin: 0 0 40px;
}
.hero-actions { display: flex; flex-wrap: wrap; gap: 16px; }

/* ---- ボタン ---- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 28px;
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  transition: all 0.25s var(--ease);
}
.btn-gold { background: var(--gold); color: var(--bg); }
.btn-gold:hover { background: var(--gold-2); transform: translateY(-2px); }
.btn-ghost { border: 1px solid var(--line); color: var(--white); }
.btn-ghost:hover { border-color: var(--gold); color: var(--gold); }

/* ---- メトリクス ---- */
.metrics {
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: var(--bg-2);
}
.metrics-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
}
.metric {
  padding: 40px 32px;
  border-right: 1px solid var(--line);
  text-align: center;
  transition: background 0.2s;
}
.metric:last-child { border-right: none; }
.metric:hover { background: var(--bg-3); }
.metric-value {
  display: block;
  font-family: "Noto Serif JP", serif;
  font-size: clamp(2rem, 4vw, 2.75rem);
  color: var(--gold);
  line-height: 1;
  margin-bottom: 8px;
  transition: color 0.25s;
}
.metric:hover .metric-value { color: var(--gold-2); }
.metric-label {
  font-size: 0.75rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
}

/* ---- セクション ---- */
.section { padding: 100px 32px; }
.section-inner { max-width: 1200px; margin: 0 auto; }
.section-title {
  font-family: "Noto Serif JP", serif;
  font-size: clamp(1.5rem, 3vw, 2.25rem);
  font-weight: 500;
  margin: 0 0 20px;
  letter-spacing: 0.04em;
}
.section-desc {
  max-width: 600px;
  color: var(--muted);
  font-size: 0.9375rem;
  margin: 0 0 56px;
}

/* ---- ピラー ---- */
.pillars {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2px;
  background: var(--line);
}
.pillar {
  background: var(--bg-3);
  padding: 48px 40px;
  position: relative;
  overflow: hidden;
  transition: transform 0.25s var(--ease);
}
.pillar::before {
  content: "";
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 2px;
  background: linear-gradient(90deg, var(--gold), transparent);
}
.pillar:hover { border-color: var(--gold); }
.pillar-num {
  font-family: "Noto Serif JP", serif;
  font-size: 3rem;
  color: rgba(201, 169, 98, 0.25);
  line-height: 1;
  margin-bottom: 20px;
}
.pillar h3 {
  font-family: "Noto Serif JP", serif;
  font-size: 1.25rem;
  font-weight: 500;
  margin: 0 0 12px;
}
.pillar p { font-size: 0.875rem; color: var(--muted); margin: 0 0 20px; }
.pillar-tags { display: flex; flex-wrap: wrap; gap: 8px; }
.pillar-tags span {
  font-size: 0.6875rem;
  padding: 4px 10px;
  border: 1px solid var(--line);
  color: var(--gold);
  letter-spacing: 0.06em;
  border-radius: 4px;
}

/* ---- インフォカード ---- */
.info-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 56px;
  counter-reset: info-card;
}
.info-card {
  background: var(--bg-3);
  border: 1px solid var(--line);
  padding: 40px 36px 36px;
  display: flex;
  flex-direction: column;
  position: relative;
  overflow: hidden;
  transition: transform 0.3s var(--ease), border-color 0.3s, box-shadow 0.3s;
}
.info-card::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--gold), transparent);
  opacity: 0.3;
  transition: opacity 0.3s;
}
.info-card::after {
  counter-increment: info-card;
  content: "0" counter(info-card);
  position: absolute;
  bottom: -8px; right: 20px;
  font-family: "Noto Serif JP", serif;
  font-size: 5.5rem;
  line-height: 1;
  color: rgba(201, 169, 98, 0.045);
  pointer-events: none;
  user-select: none;
}
.info-card:hover {
  transform: translateY(-4px);
  border-color: rgba(201, 169, 98, 0.5);
  box-shadow: 0 16px 48px rgba(201, 169, 98, 0.08);
}
.info-card:hover::before { opacity: 0.9; }
.info-card--featured {
  border-color: rgba(201, 169, 98, 0.3);
  background: linear-gradient(160deg, rgba(201, 169, 98, 0.06) 0%, var(--bg-3) 55%);
}
.info-card--featured::before { opacity: 0.8; }
.info-card--featured:hover { border-color: var(--gold); }
.info-card-title {
  font-family: "Noto Serif JP", serif;
  font-size: 1.25rem;
  font-weight: 500;
  margin: 0 0 16px;
  color: var(--white);
}
.info-card-desc {
  font-size: 0.875rem;
  color: var(--muted);
  margin: 0 0 28px;
  flex: 1;
  line-height: 1.85;
}
.info-card-btn { align-self: flex-start; }

/* ---- ストラテジー ---- */
.strategy {
  background: var(--bg-2);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.strategy-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}
.strategy-visual img {
  width: 100%;
  height: 400px;
  object-fit: cover;
  filter: grayscale(30%) contrast(1.05);
  border-radius: 4px;
}
.strategy-points { list-style: none; margin: 0; padding: 0; }
.strategy-points li {
  padding: 24px 0;
  border-bottom: 1px solid var(--line);
  display: grid;
  grid-template-columns: 48px 1fr;
  gap: 20px;
  align-items: start;
}
.strategy-points li:first-child { border-top: 1px solid var(--line); }
.point-num {
  font-family: "Noto Serif JP", serif;
  font-size: 1.25rem;
  color: var(--gold);
}
.point-body h4 { font-size: 0.9375rem; font-weight: 600; margin: 0 0 6px; }
.point-body p { font-size: 0.8125rem; color: var(--muted); margin: 0; }

/* ---- タイムライン ---- */
.timeline { position: relative; padding-left: 32px; }
.timeline::before {
  content: "";
  position: absolute;
  left: 0; top: 8px; bottom: 8px;
  width: 1px;
  background: linear-gradient(to bottom, var(--gold), var(--line));
}
.timeline-item { position: relative; padding: 0 0 40px 32px; }
.timeline-item::before {
  content: "";
  position: absolute;
  left: -36px; top: 8px;
  width: 8px; height: 8px;
  background: var(--gold);
  border-radius: 50%;
  box-shadow: 0 0 12px rgba(201, 169, 98, 0.5);
}
.timeline-year {
  font-family: "Noto Serif JP", serif;
  font-size: 1.125rem;
  color: var(--gold);
  margin-bottom: 4px;
}
.timeline-text { font-size: 0.875rem; color: var(--muted); }

/* ---- トラスト ---- */
.trust { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.trust--two { grid-template-columns: 1fr 1fr; }
.trust-card {
  background: var(--bg-3);
  border: 1px solid var(--line);
  padding: 32px;
  transition: transform 0.25s var(--ease), border-color 0.25s, box-shadow 0.25s;
}
.trust-card:hover {
  transform: translateY(-4px);
  border-color: var(--gold);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.35);
}
.trust-card h3 {
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  margin: 0 0 12px;
  color: var(--gold);
}
.trust-card strong {
  display: block;
  font-family: "Noto Serif JP", serif;
  font-size: 1.125rem;
  color: var(--white);
  font-weight: 500;
  margin-bottom: 8px;
}
.trust-card p { font-size: 0.8125rem; color: var(--muted); margin: 0; }

/* ---- ビジネスカード ---- */
.business-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.business-card {
  background: var(--bg-3);
  border: 1px solid var(--line);
  padding: 32px;
  transition: transform 0.25s var(--ease), border-color 0.25s, box-shadow 0.25s;
}
.business-card:hover {
  transform: translateY(-4px);
  border-color: var(--gold);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.35);
}
.business-card h3 {
  font-family: "Noto Serif JP", serif;
  font-size: 1.0625rem;
  font-weight: 500;
  margin: 0 0 12px;
  color: var(--gold);
}
.business-card p { font-size: 0.875rem; color: var(--muted); margin: 0; }

/* ---- スプリットブロック ---- */
.split-block {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 32px;
  align-items: start;
  margin-bottom: 32px;
}
.split-block img {
  width: 100%;
  height: 220px;
  object-fit: cover;
  filter: grayscale(20%) contrast(1.05);
  border-radius: 4px;
}

/* ---- CTA ---- */
.cta-block {
  text-align: center;
  padding: 80px 32px;
  background:
    radial-gradient(ellipse at center, var(--gold-dim) 0%, transparent 70%),
    var(--bg);
  border-top: 1px solid var(--line);
}
.cta-block h2 {
  font-family: "Noto Serif JP", serif;
  font-size: clamp(1.25rem, 3vw, 1.75rem);
  font-weight: 500;
  margin: 0 0 12px;
}
.cta-block p { color: var(--muted); font-size: 0.875rem; margin: 0 0 32px; }

/* ---- フッター ---- */
.footer { border-top: 1px solid var(--line); padding: 48px 32px 32px; }
.footer-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  flex-wrap: wrap;
  gap: 32px;
}
.footer-brand { font-family: "Noto Serif JP", serif; font-size: 0.9375rem; margin: 0 0 8px; }
.footer-sub { font-size: 0.75rem; color: var(--muted); margin: 0; }
.footer-info { font-size: 0.75rem; color: var(--muted); font-style: normal; line-height: 1.9; margin-top: 8px; }
.footer-nav { display: flex; gap: 24px; flex-wrap: wrap; }
.footer-nav a {
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
  transition: color 0.2s;
}
.footer-nav a:hover { color: var(--gold); }
.footer-copy {
  width: 100%;
  text-align: center;
  font-size: 0.6875rem;
  color: rgba(245, 245, 240, 0.3);
  margin: 32px 0 0;
  padding-top: 32px;
  border-top: 1px solid var(--line);
}

/* ---- 下層ページ ---- */
.page-hero {
  padding: calc(var(--header-h) + 48px) 32px 48px;
  background: var(--bg-2);
  border-bottom: 1px solid var(--line);
  text-align: center;
}
.page-hero h1 {
  font-family: "Noto Serif JP", serif;
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: 500;
  margin: 0 0 12px;
  letter-spacing: 0.04em;
}
.page-hero p {
  margin: 0 auto;
  max-width: 560px;
  color: var(--muted);
  font-size: 0.9375rem;
}

.breadcrumbs {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 4px 8px;
  margin: 0 0 16px;
  font-size: 0.75rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
}
.breadcrumbs a { transition: color 0.2s; }
.breadcrumbs a:hover { color: var(--gold); }
.breadcrumbs .sep { opacity: 0.4; }
.breadcrumbs [aria-current="page"] { color: var(--gold); }

.page-body { width: min(960px, calc(100% - 48px)); margin: 0 auto; padding: 48px 0 80px; }
.page-section { margin-bottom: 48px; }
.page-section h2 {
  font-family: "Noto Serif JP", serif;
  font-size: 1.25rem;
  font-weight: 500;
  color: var(--white);
  margin: 0 0 20px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--line);
}

.data-row {
  display: grid;
  grid-template-columns: 160px 1fr;
  gap: 16px;
  padding: 14px 0;
  border-bottom: 1px solid var(--line);
  font-size: 0.9375rem;
}
.data-row:first-of-type { border-top: 1px solid var(--line); }
.data-row dt { color: var(--muted); font-weight: 500; }
.data-row dd { margin: 0; color: var(--white); }

.text-muted { color: var(--muted); font-size: 0.9375rem; margin: 0 0 24px; }
.page-section .text-muted:last-child { margin-bottom: 0; }

.page-links {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  justify-content: center;
  margin-top: 32px;
}

/* ---- リビール ---- */
.fade-in { opacity: 0; transform: translateY(32px); transition: opacity 0.7s var(--ease), transform 0.7s var(--ease); }
.fade-in.is-visible { opacity: 1; transform: translateY(0); }
.reveal { opacity: 0; transform: translateY(18px); transition: opacity 0.6s var(--ease), transform 0.6s var(--ease); }
.reveal.is-visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .fade-in, .reveal { opacity: 1; transform: none; transition: none; }
}

/* ---- フォーカス ---- */
a:focus-visible, button:focus-visible {
  outline: 2px solid rgba(201, 169, 98, 0.8);
  outline-offset: 3px;
}

/* ---- レスポンシブ ---- */
@media (max-width: 900px) {
  .metrics-inner { grid-template-columns: repeat(2, 1fr); }
  .metric:nth-child(2) { border-right: none; }
  .metric { border-bottom: 1px solid var(--line); }
  .pillars, .strategy-grid, .trust, .business-cards, .info-cards { grid-template-columns: 1fr; }
  .strategy-visual img { height: 260px; }
  .trust--two { grid-template-columns: 1fr; }
}

@media (max-width: 768px) {
  .split-block, .data-row { grid-template-columns: 1fr; }
  .section { padding: 72px 24px; }
}

@media (max-width: 728px) {
  .menu-btn { display: block; }
  .menu-btn[aria-expanded="true"] { border-color: var(--gold); color: var(--gold); }

  /* backdrop-filter は position:fixed の子孫の「包含ブロック」を作ってしまうため、
     ヘッダー内のドロワーが潰れて表示されない。モバイルでは不透明背景に置き換える。 */
  .header.is-scrolled,
  .header--solid {
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    background: rgba(10, 14, 22, 0.98);
  }

  .nav {
    position: fixed;
    z-index: 105;
    inset: var(--header-h) 0 0 0;
    background: rgba(10, 14, 22, 0.98);
    flex-direction: column;
    justify-content: center;
    gap: 8px;
    padding: 24px 24px max(24px, env(safe-area-inset-bottom));
    overflow-y: auto;
    overscroll-behavior: contain;
    -webkit-overflow-scrolling: touch;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 0.3s, visibility 0.3s;
  }
  .nav.is-open { opacity: 1; visibility: visible; pointer-events: auto; }
  .nav a {
    display: block;
    width: 100%;
    max-width: 360px;
    margin: 0 auto;
    padding: 16px 18px;
    font-size: 0.9375rem;
    text-align: center;
    color: var(--white);
    border-radius: 8px;
  }
  .nav a.is-current { color: var(--gold); background: rgba(201, 169, 98, 0.12); }

  body.nav-open {
    overflow: hidden;
    position: fixed;
    left: 0;
    right: 0;
    width: 100%;
  }
}
