/*
Theme Name: 小泉不動産
Theme URI: https://koizumi-re.com
Author: 株式会社小泉不動産
Description: 株式会社小泉不動産 コーポレートサイト
Version: 1.0
*/

/* ── Variables ─────────────────────────────────────────── */
:root {
  --bg: #F7F6F3;
  --fg: #1B2A4A;
  --card: #FFFFFF;
  --muted: #E8EAF0;
  --muted-fg: #6B7591;
  --border: rgba(27, 42, 74, 0.12);
  --font-display: "Zen Old Mincho", serif;
  --font-sans: "Noto Sans JP", sans-serif;
  --font-mono: "DM Mono", monospace;
}

/* ── Reset & Base ──────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { font-size: 16px; scroll-behavior: smooth; }
body {
  background: var(--bg);
  color: var(--fg);
  font-family: var(--font-sans);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; }
a { text-decoration: none; color: inherit; }
button { cursor: pointer; border: none; background: none; font-family: inherit; }

/* ── Navigation ─────────────────────────────────────────── */
.site-nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.8);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  transition: all 0.5s;
}
.site-nav.scrolled {
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.05);
}
.nav-inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 1.5rem;
  height: 4rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.nav-logo {
  font-family: var(--font-display);
  font-size: 0.875rem;
  letter-spacing: 0.22em;
  color: rgba(27, 42, 74, 0.9);
  transition: color 0.3s;
}
.nav-logo:hover { color: var(--fg); }
.nav-links {
  display: flex;
  align-items: center;
  gap: 2rem;
  list-style: none;
}
.nav-links a {
  font-size: 0.6875rem;
  letter-spacing: 0.18em;
  color: rgba(27, 42, 74, 0.55);
  transition: color 0.3s;
}
.nav-links a:hover { color: var(--fg); }
.nav-toggle {
  display: none;
  color: rgba(27, 42, 74, 0.6);
  transition: color 0.3s;
  line-height: 1;
}
.nav-toggle:hover { color: var(--fg); }
.mobile-menu {
  display: none;
  background: var(--card);
  border-bottom: 1px solid var(--border);
  padding: 1.5rem;
  flex-direction: column;
  gap: 1.25rem;
}
.mobile-menu.open { display: flex; }
.mobile-menu a {
  font-size: 0.875rem;
  letter-spacing: 0.18em;
  color: rgba(27, 42, 74, 0.6);
  transition: color 0.3s;
}
.mobile-menu a:hover { color: var(--fg); }

/* ── Hero ─────────────────────────────────────────────── */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  overflow: hidden;
  background: var(--bg);
}
.hero-photo {
  position: absolute;
  right: 0; top: 0;
  height: 100%;
  width: 60%;
  object-fit: cover;
}
.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to right,
    #F7F6F3 0%,
    rgba(247,246,243,0.92) 45%,
    rgba(247,246,243,0.1) 100%
  );
}
.hero-overlay-v {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to top,
    rgba(247,246,243,0.6) 0%,
    transparent 50%,
    rgba(247,246,243,0.3) 100%
  );
}
.hero-content {
  position: relative;
  z-index: 10;
  max-width: 1280px;
  margin: 0 auto;
  padding: 8rem 1.5rem;
  width: 100%;
}
.hero-inner { max-width: 36rem; }
.hero-eyebrow {
  font-size: 0.625rem;
  letter-spacing: 0.5em;
  color: rgba(27,42,74,0.4);
  text-transform: uppercase;
  margin-bottom: 2.5rem;
}
.hero-title {
  font-family: var(--font-display);
  font-size: clamp(1.9rem, 4.2vw, 3.8rem);
  letter-spacing: 0.06em;
  line-height: 1.45;
  color: var(--fg);
  white-space: nowrap;
  margin-bottom: 2rem;
}
.hero-divider {
  width: 3.5rem;
  height: 1px;
  background: rgba(27,42,74,0.25);
  margin-bottom: 2rem;
}
.hero-sub {
  font-size: 0.875rem;
  color: rgba(27,42,74,0.55);
  line-height: 2.1;
  letter-spacing: 0.08em;
  white-space: nowrap;
  margin-bottom: 3rem;
}
.hero-cta {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 0.6875rem;
  letter-spacing: 0.3em;
  color: rgba(27,42,74,0.7);
  transition: color 0.3s;
}
.hero-cta:hover { color: var(--fg); }
.hero-cta svg { transition: transform 0.3s; }
.hero-cta:hover svg { transform: translate(2px, -2px); }
.scroll-indicator {
  position: absolute;
  bottom: 2.5rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  pointer-events: none;
}
.scroll-label {
  font-size: 0.5625rem;
  letter-spacing: 0.35em;
  color: rgba(27,42,74,0.25);
}
.scroll-line {
  width: 1px;
  height: 2.5rem;
  background: linear-gradient(to bottom, rgba(27,42,74,0.25), transparent);
  animation: pulse 2s infinite;
}
@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.3; }
}

/* ── Sections shared ────────────────────────────────────── */
.container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 1.5rem;
}
.section-label {
  font-size: 0.625rem;
  letter-spacing: 0.45em;
  color: rgba(27,42,74,0.35);
  margin-bottom: 1.75rem;
}
.section-title {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  color: var(--fg);
  line-height: 1.6;
}
.section-divider {
  width: 2.5rem;
  height: 1px;
  background: rgba(27,42,74,0.2);
  margin: 2rem 0;
}
.section-body {
  font-size: 0.8125rem;
  color: rgba(27,42,74,0.6);
  line-height: 2.2;
  letter-spacing: 0.06em;
}

/* ── Home (About) ───────────────────────────────────────── */
.section-home {
  padding: 8rem 1.5rem;
  background: var(--card);
}
.home-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}
.home-text p + p { margin-top: 1.25rem; }
.home-photo { position: relative; }
.home-photo img {
  width: 100%;
  aspect-ratio: 4/3;
  object-fit: cover;
  background: var(--muted);
}

/* ── Services ───────────────────────────────────────────── */
.section-services {
  padding: 8rem 1.5rem;
  background: var(--bg);
}
.services-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
}
.service-card {
  background: var(--bg);
  padding: 2.5rem 4rem;
  border: 1px solid var(--border);
  transition: background 0.3s;
}
.service-card:first-child { border-right: none; }
.service-card:hover { background: var(--card); }
.service-num {
  font-family: var(--font-mono);
  font-size: 0.625rem;
  letter-spacing: 0.35em;
  color: rgba(27,42,74,0.3);
  margin-bottom: 1.75rem;
}
.service-title {
  font-family: var(--font-display);
  font-size: 1.25rem;
  color: var(--fg);
  line-height: 1.5;
  margin-bottom: 1.25rem;
}
.service-line {
  width: 1.5rem;
  height: 1px;
  background: rgba(27,42,74,0.2);
  margin-bottom: 1.75rem;
  transition: width 0.5s;
}
.service-card:hover .service-line { width: 3.5rem; }
.service-desc {
  font-size: 0.8125rem;
  color: rgba(27,42,74,0.55);
  line-height: 2.2;
  letter-spacing: 0.04em;
}

/* ── Philosophy ─────────────────────────────────────────── */
.section-philosophy {
  padding: 10rem 1.5rem;
  position: relative;
  overflow: hidden;
  background: var(--fg);
}
.philosophy-photo {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.12;
}
.philosophy-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    rgba(27,42,74,0.6) 0%,
    transparent 50%,
    rgba(27,42,74,0.6) 100%
  );
}
.philosophy-content {
  position: relative;
  z-index: 10;
  max-width: 42rem;
  margin: 0 auto;
  text-align: center;
}
.philosophy-label {
  font-size: 0.625rem;
  letter-spacing: 0.5em;
  color: rgba(255,255,255,0.45);
  margin-bottom: 2.5rem;
}
.philosophy-title {
  font-family: var(--font-display);
  font-size: clamp(1.4rem, 3.2vw, 2.4rem);
  color: #fff;
  line-height: 1.55;
  white-space: nowrap;
  margin-bottom: 2.5rem;
}
.philosophy-divider {
  width: 3.5rem;
  height: 1px;
  background: rgba(255,255,255,0.25);
  margin: 0 auto 2.5rem;
}
.philosophy-body {
  font-size: 0.8125rem;
  color: rgba(255,255,255,0.6);
  line-height: 2.4;
  letter-spacing: 0.06em;
}

/* ── Company Info ───────────────────────────────────────── */
.section-company {
  padding: 8rem 1.5rem;
  background: var(--card);
  border-top: 1px solid var(--border);
}
.company-dl { max-width: 42rem; }
.company-row {
  display: grid;
  grid-template-columns: 8rem 1fr;
  gap: 2rem;
  padding: 1.5rem 0;
  border-top: 1px solid var(--border);
}
.company-row:last-child { border-bottom: 1px solid var(--border); }
.company-dt {
  font-size: 0.6875rem;
  letter-spacing: 0.2em;
  color: rgba(27,42,74,0.4);
  padding-top: 0.125rem;
}
.company-dd {
  font-size: 0.8125rem;
  color: rgba(27,42,74,0.75);
  letter-spacing: 0.06em;
  line-height: 1.75;
  white-space: pre-line;
}

/* ── Footer ──────────────────────────────────────────────── */
.site-footer {
  border-top: 1px solid var(--border);
  padding: 3rem 1.5rem;
  background: var(--bg);
}
.footer-inner {
  max-width: 1280px;
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1.25rem;
}
.footer-name {
  font-family: var(--font-display);
  font-size: 0.875rem;
  letter-spacing: 0.22em;
  color: rgba(27,42,74,0.4);
}
.footer-copy {
  font-size: 0.625rem;
  letter-spacing: 0.2em;
  color: rgba(27,42,74,0.3);
}
.footer-links { display: flex; gap: 1.5rem; list-style: none; }
.footer-links a {
  font-size: 0.625rem;
  letter-spacing: 0.08em;
  color: rgba(27,42,74,0.3);
  transition: color 0.3s;
}
.footer-links a:hover { color: rgba(27,42,74,0.6); }

/* ── Responsive ─────────────────────────────────────────── */
@media (max-width: 768px) {
  .nav-links { display: none; }
  .nav-toggle { display: block; }
  .hero-photo { width: 100%; opacity: 0.15; }
  .hero-overlay { background: linear-gradient(to right, #F7F6F3 0%, rgba(247,246,243,0.95) 100%); }
  .hero-title { white-space: normal; }
  .hero-sub { white-space: normal; }
  .home-grid { grid-template-columns: 1fr; }
  .services-grid { grid-template-columns: 1fr; }
  .service-card { padding: 2rem 1.5rem; }
  .service-card:first-child { border-right: 1px solid var(--border); border-bottom: none; }
  .philosophy-title { white-space: normal; }
  .company-row { grid-template-columns: 1fr; gap: 0.5rem; }
  .footer-inner { flex-direction: column; text-align: center; }
}
@media (min-width: 1024px) {
  .nav-inner { padding: 0 3rem; }
  .home-grid { gap: 7rem; }
}
