/* =============================================================================
   株式会社アースパワー — グローバルCSS
   モノトーン基調＋ブルーアクセント（epower.co.jp のトーンを踏襲）
   ========================================================================== */

:root {
  --accent: #1565c0;
  --accent-dark: #0d3c78;
  --navy: #15212e;
  --ink: #222;
  --muted: #667085;
  --line: #e3e6ea;
  --bg-soft: #f5f7fa;
  --maxw: 1080px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 70px; }
body {
  margin: 0;
  color: var(--ink);
  font-family: "Hiragino Kaku Gothic ProN", "Hiragino Sans", "Yu Gothic", "Noto Sans JP", Meiryo, sans-serif;
  line-height: 1.85;
  font-size: 16px;
  background: #fff;
  -webkit-text-size-adjust: 100%;
}
img { max-width: 100%; height: auto; }
a { color: var(--accent); }

/* ---------------------------------------------------------------- header */
.site-header { border-bottom: 1px solid var(--line); background: #fff; }
.site-header__inner {
  max-width: var(--maxw); margin: 0 auto; padding: 14px 16px;
  display: flex; align-items: center; gap: 20px; flex-wrap: wrap;
}
.site-logo { margin: 0; line-height: 0; }
.site-logo img { width: 220px; height: auto; }
.site-header__contact { margin-left: auto; text-align: right; }
.header-tel { margin: 0; font-size: 22px; font-weight: 700; }
.header-tel a { color: var(--navy); text-decoration: none; }
.header-tel a::before { content: "📞 "; font-size: 16px; }
.header-hours { margin: 0; font-size: 12px; color: var(--muted); }
.header-cta {
  background: var(--accent); color: #fff; text-decoration: none;
  padding: 12px 22px; border-radius: 4px; font-weight: 700; white-space: nowrap;
}
.header-cta:hover { background: var(--accent-dark); }

/* ------------------------------------------------------------------ nav */
.global-nav { background: var(--navy); position: relative; }
.global-nav__list {
  max-width: var(--maxw); margin: 0 auto; padding: 0;
  list-style: none; display: flex; flex-wrap: wrap;
}
.global-nav__list > li { position: relative; }
.global-nav__list > li > a {
  display: block; padding: 13px 16px; color: #fff; text-decoration: none;
  font-size: 14px; font-weight: 600;
}
.global-nav__list > li > a:hover { background: var(--accent); }
.global-nav .sub-menu {
  display: none; position: absolute; top: 100%; left: 0; z-index: 30;
  margin: 0; padding: 0; list-style: none; min-width: 200px;
  background: var(--navy); box-shadow: 0 6px 16px rgba(0,0,0,.25);
}
.global-nav .has-sub:hover .sub-menu,
.global-nav .has-sub:focus-within .sub-menu { display: block; }
.global-nav .sub-menu a {
  display: block; padding: 11px 16px; color: #fff; text-decoration: none;
  font-size: 13px; border-top: 1px solid rgba(255,255,255,.08);
}
.global-nav .sub-menu a:hover { background: var(--accent); }
.nav-toggle, .nav-toggle-label { display: none; }

/* ----------------------------------------------------------- breadcrumb */
.breadcrumb { background: var(--bg-soft); border-bottom: 1px solid var(--line); }
.breadcrumb ol {
  max-width: var(--maxw); margin: 0 auto; padding: 8px 16px;
  list-style: none; display: flex; flex-wrap: wrap; gap: 4px;
  font-size: 12px; color: var(--muted);
}
.breadcrumb li + li::before { content: "›"; margin: 0 6px; color: #aab; }
.breadcrumb a { color: var(--muted); text-decoration: none; }
.breadcrumb a:hover { color: var(--accent); }

/* ----------------------------------------------------------------- main */
.site-main { max-width: var(--maxw); margin: 0 auto; padding: 32px 16px 64px; }
.site-main.is-top { max-width: none; padding: 0 0 64px; }

.page-section { margin: 48px 0; }
.page-section > h2 {
  font-size: 26px; line-height: 1.4; color: var(--navy);
  border-left: 6px solid var(--accent); padding-left: 14px; margin: 0 0 22px;
}
.page-hero { margin: 8px 0 40px; }
.page-hero__en { color: var(--accent); font-weight: 700; letter-spacing: .2em; margin: 0; font-size: 14px; }
.page-hero h1 { font-size: 32px; color: var(--navy); margin: 4px 0 12px; line-height: 1.4; }
.page-hero__lead { color: var(--muted); margin: 0; }

.lead { font-size: 17px; }
.sub-heading { font-size: 20px; color: var(--navy); margin: 28px 0 12px; padding-bottom: 6px; border-bottom: 2px solid var(--accent); }

/* 汎用ボックス・表 */
.info-table { width: 100%; border-collapse: collapse; margin: 18px 0; }
.info-table th, .info-table td { border: 1px solid var(--line); padding: 12px 14px; text-align: left; vertical-align: top; }
.info-table th { background: var(--bg-soft); color: var(--navy); width: 28%; font-weight: 600; }

.point-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 16px; margin: 20px 0; padding: 0; list-style: none; }
.point-grid li { background: var(--bg-soft); border: 1px solid var(--line); border-radius: 8px; padding: 16px 18px; }
/* 既定: 文中の強調（「空室がなかなか埋まらない」等）— 色だけ付けて改行しない */
.point-grid li strong { color: var(--accent-dark); }
/* カード型（見出し＋説明文）: 見出しをブロック表示にする */
.point-grid--cards li strong { display: block; margin-bottom: 4px; }

.step-list { counter-reset: step; list-style: none; margin: 20px 0; padding: 0; }
.step-list > li {
  counter-increment: step; position: relative; margin: 0 0 14px;
  background: #fff; border: 1px solid var(--line); border-radius: 8px; padding: 16px 18px 16px 64px;
}
.step-list > li::before {
  content: counter(step); position: absolute; left: 16px; top: 16px;
  width: 32px; height: 32px; border-radius: 50%; background: var(--accent); color: #fff;
  display: flex; align-items: center; justify-content: center; font-weight: 700;
}
.step-list > li strong { color: var(--navy); display: block; margin-bottom: 2px; }

.faq-item { border: 1px solid var(--line); border-radius: 8px; margin: 0 0 12px; padding: 14px 18px; }
.faq-q { font-weight: 700; color: var(--navy); margin: 0 0 6px; }
.faq-q::before { content: "Q. "; color: var(--accent); }
.faq-a { margin: 0; }
.faq-a::before { content: "A. "; color: #c62828; font-weight: 700; }

.btn-primary {
  display: inline-block; background: var(--accent); color: #fff; text-decoration: none;
  font-weight: 700; padding: 14px 32px; border-radius: 6px; margin: 8px 0;
}
.btn-primary:hover { background: var(--accent-dark); }
.btn-ghost {
  display: inline-block; border: 2px solid var(--accent); color: var(--accent);
  text-decoration: none; font-weight: 700; padding: 12px 30px; border-radius: 6px; margin: 8px 0;
}
.btn-ghost:hover { background: var(--accent); color: #fff; }
.center { text-align: center; }

/* ------------------------------------------------------------ 物件カード */
.bukken-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 20px;
}
.bukken-card {
  display: flex; flex-direction: column; text-decoration: none; color: var(--ink);
  border: 1px solid var(--line); border-radius: 10px; overflow: hidden; background: #fff;
  transition: box-shadow .2s, transform .2s;
}
.bukken-card:hover { box-shadow: 0 8px 22px rgba(13,60,120,.16); transform: translateY(-2px); }
.bukken-card__img { position: relative; display: block; aspect-ratio: 4 / 3; background: var(--bg-soft); }
.bukken-card__img img { width: 100%; height: 100%; object-fit: cover; display: block; }
.bukken-card__noimg {
  display: flex; align-items: center; justify-content: center; height: 100%;
  color: #aab; font-weight: 700; letter-spacing: .15em;
}
.bukken-badge {
  position: absolute; top: 8px; left: 8px; background: var(--accent); color: #fff;
  font-size: 12px; font-weight: 700; padding: 3px 10px; border-radius: 3px;
}
.bukken-badge--closed { background: #9aa0a6; }
.bukken-card.is-closed .bukken-card__img img { filter: grayscale(.7); opacity: .75; }
.bukken-card__body { display: flex; flex-direction: column; gap: 2px; padding: 12px 14px 16px; }
.bukken-card__cat { font-size: 12px; color: var(--accent-dark); font-weight: 700; }
.bukken-card__title { font-size: 16px; font-weight: 700; color: var(--navy); line-height: 1.45; }
.bukken-card__price { color: #c62828; font-weight: 700; font-size: 18px; }
.bukken-card__price small { color: var(--muted); font-weight: 400; }
.bukken-card__addr, .bukken-card__access { font-size: 13px; color: var(--muted); line-height: 1.5; }
.bukken-empty { background: var(--bg-soft); border: 1px dashed var(--line); border-radius: 8px; padding: 22px; color: var(--muted); }

/* ------------------------------------------------------------ 物件詳細 */
.bukken-detail__header h1 { font-size: 30px; color: var(--navy); margin: 4px 0 18px; line-height: 1.4; }
.bukken-detail__cat { color: var(--accent-dark); font-weight: 700; margin: 0; font-size: 14px; }
.bukken-detail__cat .bukken-badge { position: static; margin-left: 10px; }
.bukken-gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 10px; margin: 0 0 12px; }
.bukken-gallery a:first-child { grid-column: 1 / -1; }
.bukken-gallery img { width: 100%; height: 100%; object-fit: cover; border-radius: 8px; aspect-ratio: 4 / 3; display: block; }
.bukken-gallery a:first-child img { aspect-ratio: 4 / 3; max-height: 560px; }
.bukken-table { width: 100%; border-collapse: collapse; margin: 12px 0; }
.bukken-table th, .bukken-table td { border: 1px solid var(--line); padding: 10px 14px; text-align: left; font-size: 15px; }
.bukken-table th { background: var(--bg-soft); color: var(--navy); width: 24%; font-weight: 600; white-space: nowrap; }
.bukken-price { color: #c62828; font-weight: 700; font-size: 20px; }
.bukken-note { font-size: 13px; color: var(--muted); }
.bukken-map { width: 100%; height: 360px; border: 1px solid var(--line); border-radius: 8px; }
.bukken-contact { background: var(--bg-soft); border-radius: 10px; padding: 24px 26px; }
.bukken-contact > h2 { border: none; padding-left: 0; font-size: 22px; }
.bukken-contact__tel a { font-size: 28px; font-weight: 700; color: var(--navy); text-decoration: none; }
.bukken-contact__tel small { display: block; color: var(--muted); }

/* ------------------------------------------------------- contact band */
.contact-band { background: var(--navy); color: #fff; padding: 44px 16px; }
.contact-band__inner { max-width: var(--maxw); margin: 0 auto; text-align: center; }
.contact-band__title { margin: 0 0 8px; font-size: 26px; }
.contact-band__lead { margin: 0 0 22px; color: #c4cdd8; }
.contact-band__actions { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; align-items: stretch; }
.contact-band__tel {
  background: #fff; color: var(--navy); border-radius: 8px; padding: 12px 28px;
  text-decoration: none; display: flex; flex-direction: column; line-height: 1.5;
}
.contact-band__tel-label { font-size: 12px; color: var(--muted); }
.contact-band__tel-number { font-size: 26px; font-weight: 700; }
.contact-band__tel-number::before { content: "📞 "; font-size: 18px; }
.contact-band__tel-hours { font-size: 11px; color: var(--muted); }
.contact-band__mail, .contact-band__line {
  display: flex; align-items: center; justify-content: center;
  border-radius: 8px; padding: 12px 30px; font-weight: 700; text-decoration: none;
}
.contact-band__mail { background: var(--accent); color: #fff; }
.contact-band__mail:hover { background: var(--accent-dark); }
.contact-band__line { background: #06c755; color: #fff; }
.contact-band__line:hover { background: #05a648; }

/* ---------------------------------------------------------------- footer */
.site-footer { background: #0e1620; color: #c4cdd8; font-size: 14px; }
.site-footer__inner {
  max-width: var(--maxw); margin: 0 auto; padding: 44px 16px 24px;
  display: flex; gap: 40px; flex-wrap: wrap;
}
.footer-company { max-width: 320px; }
.footer-logo { margin: 0 0 12px; }
.footer-logo img { filter: brightness(0) invert(1); opacity: .92; }
.footer-sns a { color: #fff; margin-right: 14px; }
.footer-nav { display: flex; gap: 40px; flex-wrap: wrap; }
.footer-nav__title { color: #fff; font-weight: 700; margin: 0 0 10px; }
.footer-nav ul { list-style: none; margin: 0; padding: 0; }
.footer-nav li { margin: 0 0 8px; }
.footer-nav a { color: #c4cdd8; text-decoration: none; }
.footer-nav a:hover { color: #fff; text-decoration: underline; }
.footer-copy { text-align: center; margin: 0; padding: 16px; border-top: 1px solid rgba(255,255,255,.08); font-size: 12px; color: #8a96a3; }

/* ------------------------------------------------------------- mobile */
@media (max-width: 820px) {
  .site-header__inner {
    flex-wrap: nowrap; justify-content: space-between; gap: 8px; padding: 10px 12px;
  }
  .site-logo { flex-shrink: 1; min-width: 0; }
  .site-logo img { width: 150px; }
  .site-header__contact { display: none; }
  .header-cta { padding: 9px 12px; font-size: 12px; flex-shrink: 0; }

  /* ハンバーガー（ナビバー内の通常フロー・右寄せ） */
  .nav-toggle-label {
    display: flex; flex-direction: column; justify-content: center; gap: 5px;
    width: 48px; height: 42px; padding: 11px 13px; cursor: pointer; margin-left: auto;
  }
  .nav-toggle-label span { display: block; height: 2px; background: #fff; border-radius: 2px; }
  .global-nav__list { display: none; flex-direction: column; }
  .nav-toggle:checked ~ .global-nav__list { display: flex; }
  .global-nav__list > li > a { border-top: 1px solid rgba(255,255,255,.08); }
  .global-nav .sub-menu { display: block; position: static; box-shadow: none; background: #0e1620; }

  .page-hero h1 { font-size: 24px; }
  .page-section > h2 { font-size: 21px; }
  .bukken-detail__header h1 { font-size: 23px; }
  .site-main { padding: 22px 14px 48px; }
}
