/* ============================================================
   ベルウッドカンパニー コーポレートサイト — style.css
   ============================================================ */

/* --- デザイントークン --- */
:root {
  /* カラーパレット：明るく信頼感のあるトーン */
  --navy:        #0a1628;
  --navy-light:  #1d2d44;
  --white:       #ffffff;
  --off-white:   #f8f9fa;
  --light-gray:  #eef2f6;
  --text-main:   #1a1a2e;
  --text-sub:    #505a6d;
  --gold:        #c9a84c;
  --gold-light:  #dfc06a;
  --gold-dark:   #a8893a;
  --green:       #2d6a4f;
  --green-light: #40916c;
  
  /* フォント */
  --font-jp: 'Noto Sans JP', 'Hiragino Kaku Gothic ProN', sans-serif;
  --font-en: 'Cormorant Garamond', 'Times New Roman', serif;

  /* スペーシング */
  --section-pad: clamp(60px, 10vw, 120px);
  --container-max: 1100px;

  /* トランジション */
  --ease: cubic-bezier(0.4, 0, 0.2, 1);
}

/* --- リセット & ベース --- */
*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 80px;
  font-size: 16px;
}

body {
  font-family: var(--font-jp);
  background: var(--white);
  color: var(--text-main);
  line-height: 1.8;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

ul { list-style: none; }

.container {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 24px;
}

/* --- セクション共通 --- */
.sec.text-center {
  text-align: center;
}

/* 改行位置と表示の調整用ユーティリティ */
.keep-together { display: inline; }
.sp-only { display: none !important; }
.pc-only { display: block !important; }

@media (max-width: 768px) {
  .sp-only { display: block !important; }
  .pc-only { display: none !important; }
  .text-left-sp { text-align: left !important; display: inline-block; }
}

.section-header {
  text-align: center;
  margin-bottom: 56px;
}

.section-label {
  display: inline-block;
  background: var(--gold);
  color: var(--white);
  font-family: var(--font-en);
  font-size: 0.8rem;
  font-weight: 700;
  padding: 4px 16px;
  border-radius: 4px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 12px;
}

.section-title {
  font-family: var(--font-jp);
  font-size: clamp(1.4rem, 3vw, 1.8rem);
  font-weight: 700;
  letter-spacing: 0.06em;
  color: var(--navy);
  margin-top: 4px;
}

/* フェードインアニメーション */
.fade-in {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
}

.fade-in.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* ============================================================
   ヘッダー
   ============================================================ */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1100;
  padding: 16px 0;
  transition: all 0.4s var(--ease);
  /* ロゴや紺色の文字が綺麗に浮かび上がるよう、白のグラデーションをうっすら敷く */
  background: linear-gradient(to bottom, rgba(255, 255, 255, 0.6) 0%, rgba(255, 255, 255, 0) 100%);
}

.site-header.scrolled {
  background: rgba(255, 255, 255, 0.98);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
  padding: 8px 0;
  border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 40px;
}

/* ロゴ */
.logo {
  display: flex;
  align-items: center;
  gap: 12px;
}

.logo-image {
  height: 75px;
  width: auto;
  flex-shrink: 0;
  /* 背景の空に溶け込まないよう、ロゴ周囲に柔らかい白い光芒を付けて視認性を強化 */
  filter: drop-shadow(0 0 6px rgba(255, 255, 255, 0.9)) 
          drop-shadow(0 2px 10px rgba(255, 255, 255, 0.5));
  transition: all 0.3s var(--ease);
}

.logo-text {
  font-family: var(--font-en);
  font-size: 1.15rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  color: var(--navy);
  line-height: 1.2;
}

/* ナビゲーション */
.nav-list {
  display: flex;
  gap: 32px;
}

.nav-list a {
  font-family: var(--font-en);
  font-size: 0.95rem; /* 少し大きく */
  font-weight: 700; /* 太くして視認性を高める */
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--navy);
  position: relative;
  padding-bottom: 4px;
  transition: all 0.3s var(--ease);
  /* 強力な白の光彩（後光）で背景の空から文字を切り離す */
  text-shadow: 0 0 10px rgba(255, 255, 255, 0.9), 0 0 20px rgba(255, 255, 255, 0.8), 0 0 4px #ffffff;
}

.nav-list a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 1px;
  background: var(--gold);
  transition: width 0.3s var(--ease);
}

.nav-list a:hover,
.nav-list a.active {
  color: var(--gold-dark);
  text-shadow: 0 0 8px rgba(255, 255, 255, 0.4), 0 1px 1px rgba(0, 0, 0, 0.1);
}

.nav-list a:hover::after,
.nav-list a.active::after {
  width: 100%;
  background: var(--gold);
}

/* ハンバーガー */
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
  z-index: 1100;
}

.hamburger span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--gold);
  transition: transform 0.3s var(--ease), opacity 0.3s var(--ease);
}

.hamburger.active span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.hamburger.active span:nth-child(2) {
  opacity: 0;
}

.hamburger.active span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* ============================================================
   ヒーローセクション
   ============================================================ */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: url('images/hero_background.png') center center / cover no-repeat;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    rgba(255, 255, 255, 0.45) 0%,
    rgba(255, 255, 255, 0.55) 60%,
    var(--white) 100%
  );
  z-index: 1;
}

.hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  max-width: 1000px;
  width: 100%;
  margin: 0 auto;
}

.hero-sub {
  display: inline-block;
  font-family: var(--font-ja);
  font-size: 1.1rem;
  font-weight: 900;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--gold-dark);
  margin-bottom: 24px;
  padding: 10px 32px;
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(8px);
  border-radius: 100px;
  border: 1px solid var(--gold);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
  opacity: 0;
  animation: heroFadeUp 0.8s var(--ease) 0.3s forwards;
}

.hero-main {
  font-size: clamp(1.4rem, 4.2vw, 2.4rem);
  font-weight: 700;
  letter-spacing: 0.02em;
  line-height: 1.5;
  color: #334155; /* マイルドなスレートグレー */
  margin-bottom: 32px;
  opacity: 0;
  text-shadow: 0 0 20px rgba(255, 255, 255, 0.8);
  animation: heroFadeUp 0.8s var(--ease) 0.6s forwards;
  white-space: nowrap;
  width: 100%;
  max-width: 1000px;
}

@media (max-width: 767px) {
  .hero-main {
    white-space: normal;
    overflow-wrap: break-word;
  }
  .hero-statement {
    max-width: 310px;
    text-align: left;
    padding: 16px 20px;
  }
}

.hero-statement {
  font-size: clamp(0.8rem, 2vw, 0.9rem);
  line-height: 1.8;
  color: var(--text-sub);
  max-width: 720px;
  margin: 0 auto;
  opacity: 0;
  animation: heroFadeUp 0.8s var(--ease) 0.9s forwards;
  background: rgba(255, 255, 255, 0.7);
  backdrop-filter: blur(4px);
  border: 1px solid rgba(201, 168, 76, 0.3);
  border-radius: 8px;
  padding: 20px 24px;
}

.hero-scroll {
  position: absolute;
  bottom: 32px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  opacity: 0;
  animation: heroFadeUp 0.8s var(--ease) 1.2s forwards;
}

.hero-scroll span {
  font-family: var(--font-en);
  font-size: 0.65rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold);
}

.hero-scroll-line {
  width: 1px;
  height: 40px;
  background: var(--gold);
  animation: scrollPulse 2s ease-in-out infinite;
}

@keyframes heroFadeUp {
  from { opacity: 0; transform: translateY(24px); }
  to   { opacity: 1; transform: translateY(0); }
}

@keyframes scrollPulse {
  0%, 100% { opacity: 0.3; transform: scaleY(0.6); }
  50%      { opacity: 1;   transform: scaleY(1); }
}

/* ============================================================
   ピックアップ物件セクション
   ============================================================ */
.pickup {
  padding: 60px 0 0 0;
  background: var(--off-white);
}


.pickup-list {
  display: flex;
  flex-direction: column;
  gap: 20px;
  max-width: 800px;
  margin: 0 auto;
}

.pickup-banner {
  background: var(--white);
  border-left: 6px solid var(--gold);
  border-radius: 8px;
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.06);
  padding: 24px 32px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.pickup-title {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--navy);
  margin-top: 4px;
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.pickup-badge {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--gold-dark);
  border: 1px solid var(--gold);
  padding: 2px 8px;
  border-radius: 4px;
  letter-spacing: 0.05em;
  background-color: var(--white);
}

.pickup-detail {
  display: flex;
  align-items: baseline;
  gap: 16px;
  border-bottom: 1px dashed rgba(0,0,0,0.1);
  padding-bottom: 12px;
}

.pickup-price {
  font-size: 1.5rem;
  font-weight: 700;
  color: #c94c4c; /* アクセントカラーとして少し目立つ赤み（金系に調和） */
}

.pickup-info {
  font-size: 1rem;
  color: var(--text-sub);
  font-weight: 500;
}

.pickup-desc {
  font-size: 0.9rem;
  color: var(--text-main);
  line-height: 1.6;
}

.pickup-badge-bottom {
  font-size: 0.7rem;
  color: #999;
  text-align: right;
  margin-top: 8px;
  letter-spacing: 0.05em;
}

@media (max-width: 767px) {
  .pickup-banner {
    padding: 20px;
  }
  .pickup-title {
    font-size: 1.15rem;
  }
  .pickup-price {
    font-size: 1.35rem;
  }
}

/* ============================================================
   サービスセクション
   ============================================================ */
.service {
  padding: var(--section-pad) 0;
  background: var(--off-white);
}

.service-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 28px;
}

.service-card {
  background: var(--white);
  border: 1px solid rgba(0, 0, 0, 0.05);
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.06);
  border-radius: 12px;
  overflow: hidden;
  transition: transform 0.4s var(--ease), box-shadow 0.4s var(--ease);
  display: flex;
  flex-direction: column;
  height: 100%;
}

.service-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.12);
}

.service-card-image {
  width: 100%;
  aspect-ratio: 16 / 9;
  overflow: hidden;
}

.service-card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s var(--ease);
}

.service-card:hover .service-card-image img {
  transform: scale(1.05);
}

.service-card-body {
  padding: 24px;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
}

.service-card-title {
  font-size: 1rem;
  font-weight: 700;
  color: var(--gold);
  margin-bottom: 14px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.service-card-title .icon {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
}

.service-card-text {
  font-size: 0.85rem;
  line-height: 1.9;
  color: var(--text-sub);
}

/* ============================================================
   会社概要セクション
   ============================================================ */
.company {
  padding: var(--section-pad) 0;
  background: var(--white);
}

.company-layout {
  max-width: 700px;
  margin: 0 auto;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: 40px 0;
}

.company-info-table {
  width: 100%;
  border-collapse: collapse;
}

.company-info-table th,
.company-info-table td {
  text-align: left;
  padding: 16px 0;
  font-size: 0.9rem;
  border-bottom: 1px solid rgba(0, 0, 0, 0.06);
  vertical-align: top;
}

/* 所在地を1行におさめるための調整 */
.company-info-table tr:nth-child(4) td {
  white-space: nowrap;
}

.company-info-table th {
  width: 120px;
  color: var(--gold);
  font-weight: 600;
  white-space: nowrap;
  padding-right: 24px;
}

.company-info-table td {
  color: var(--text-main);
}

@media (max-width: 767px) {
  .company-info-table, 
  .company-info-table tbody, 
  .company-info-table tr, 
  .company-info-table th, 
  .company-info-table td {
    display: block;
    width: 100%;
  }

  .company-info-table tr {
    padding: 16px 0;
    border-bottom: 1px solid rgba(0, 0, 0, 0.06);
  }

  .company-info-table th, 
  .company-info-table td {
    padding: 0;
    border-bottom: none;
  }

  .company-info-table th {
    margin-bottom: 8px;
  }

  /* 所在地が折り返されずにはみ出す問題の修正 */
  .company-info-table tr:nth-child(4) td {
    white-space: normal;
  }
}

.company-gallery {
  width: 100%;
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}

.gallery-item {
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
  background: var(--light-gray); /* 読み込み前のプレースホルダー */
}

.gallery-item img {
  width: 100%;
  height: 260px;
  object-fit: cover;
  transition: transform 0.4s var(--ease);
}

.gallery-item:hover img {
  transform: scale(1.05);
}

@media (max-width: 767px) {
  .gallery-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }
  .gallery-item img {
    height: 200px;
  }
}



/* ========== Access Section ========== */
.access {
  padding: 100px 0;
  background-color: var(--white);
}

.access-layout {
  display: grid;
  grid-template-columns: 1fr 1.5fr;
  gap: 60px;
  align-items: start;
}

.access-info {
  font-size: 1.1rem;
  line-height: 1.8;
  color: var(--text-main);
}

.access-address {
  margin-bottom: 30px;
}

.access-train {
  background-color: var(--off-white);
  padding: 20px;
  border-left: 4px solid var(--gold);
  font-weight: 500;
}

.access-map {
  border: 1px solid var(--border);
  filter: grayscale(20%);
  transition: filter 0.3s ease;
}

.access-map:hover {
  filter: grayscale(0%);
}

@media (max-width: 767px) {
  .access-layout {
    grid-template-columns: 1fr;
    gap: 40px;
  }
}

/* ========== Track Record Section ========== */
.track-record {
  padding: 100px 0;
  background-color: var(--off-white);
}

.timeline {
  max-width: 720px;
  margin: 0 auto;
  position: relative;
  padding-left: 32px;
}

.timeline::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 2px;
  background: linear-gradient(180deg, var(--gold), rgba(201, 168, 76, 0.2));
}

.timeline-item {
  position: relative;
  padding: 0 0 40px 28px;
}

.timeline-item:last-child {
  padding-bottom: 0;
}

.timeline-item::before {
  content: '';
  position: absolute;
  left: -37px;
  top: 6px;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--gold);
  border: 3px solid var(--off-white);
  box-shadow: 0 0 0 3px rgba(201, 168, 76, 0.2);
}

.timeline-category {
  display: inline-block;
  font-weight: 700;
  font-size: 0.85rem;
  letter-spacing: 0.05em;
  color: var(--white);
  background-color: var(--gold);
  padding: 4px 12px;
  border-radius: 4px;
  margin-bottom: 12px;
}

.timeline-text {
  font-size: 0.88rem;
  line-height: 1.9;
  color: var(--text-sub);
  background: var(--white);
  border: 1px solid rgba(0, 0, 0, 0.05);
  border-radius: 8px;
  padding: 20px 24px;
  transition: border-color 0.3s var(--ease);
}

.timeline-item:hover .timeline-text {
  border-color: rgba(201, 168, 76, 0.15);
}

/* ============================================================
   お問い合わせ / フッター
   ============================================================ */
.contact {
  padding: var(--section-pad) 0;
  background: var(--white);
  text-align: center;
}

.contact-notice {
  font-size: 0.9rem;
  line-height: 1.9;
  color: var(--text-sub);
  margin-bottom: 24px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

.contact-tel {
  font-family: var(--font-en);
  font-size: clamp(1.4rem, 3vw, 2rem);
  font-weight: 600;
  color: var(--gold);
  letter-spacing: 0.08em;
  display: inline-flex;
  align-items: center;
  gap: 12px;
}

.contact-tel .icon {
  width: 28px;
  height: 28px;
}

.contact-hours {
  margin-top: 16px;
  font-weight: 500;
  font-size: 1.1rem;
  color: var(--navy);
  letter-spacing: 0.05em;
}

.site-footer {
  background: var(--navy);
  border-top: 1px solid rgba(255, 255, 255, 0.04);
  padding: 28px 0;
  text-align: center;
}

.footer-copy {
  font-family: var(--font-en);
  font-size: 0.7rem;
  letter-spacing: 0.12em;
  color: var(--text-secondary);
}

/* ============================================================
   レスポンシブ (標準ブレイクポイント設定)
   ============================================================ */

/* タブレット (幅 1023px 以下) */
@media (max-width: 1023px) {
  .header-inner {
    padding: 0 24px;
  }
  .nav-list {
    gap: 16px;
  }
  .nav-list a {
    font-size: 0.85rem;
    letter-spacing: 0.1em;
  }
  .service-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
  }
  .company-layout {
    grid-template-columns: 1fr;
    gap: 36px;
  }
}

/* モバイル (幅 767px 以下) */
@media (max-width: 767px) {
  .logo-image {
    height: 60px; /* モバイル時は少し大きさを抑える */
  }

  .hamburger {
    display: flex;
  }

  .main-nav {
    position: fixed;
    top: 0;
    right: -100%;
    width: 280px;
    height: 100vh;
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    padding: 100px 40px 40px;
    transition: right 0.4s var(--ease);
    z-index: 1050;
  }

  .main-nav.open {
    right: 0;
  }

  .nav-list {
    flex-direction: column;
    gap: 24px;
  }

  .nav-list a {
    font-size: 1rem;
    letter-spacing: 0.18em;
  }

  .hero-main {
    font-size: clamp(1.2rem, 5vw, 1.8rem);
  }

  .service-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .service-card-image {
    height: 160px;
  }

  .timeline {
    padding-left: 24px;
  }

  .timeline-item {
    padding-left: 20px;
  }

  .timeline-item::before {
    left: -29px;
  }
}

/* モバイルメニュー背景オーバーレイ */
.nav-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.5);
  z-index: 1040;
}

.nav-overlay.active {
  display: block;
}
