/* ==========================================
   HERO — Split layout: text left / photo mosaic right
========================================== */
.hero {
  display: grid;
  grid-template-columns: 1fr 1fr;
  height: calc(100svh - 70px);
  min-height: 620px;
  max-height: 920px;
  overflow: hidden;
}
.hero-left {
  background: var(--color-primary);
  position: relative; overflow: hidden;
  display: flex; flex-direction: column; justify-content: center;
  padding: 4rem 3.5rem 4rem max(3.5rem, calc((100vw - 1140px) / 2 + 3.5rem));
}
.hero-left::before {
  content: '';
  position: absolute; inset: 0;
  background: url('../../img/hero/hero-okinawa-sea.webp') center/cover no-repeat;
  opacity: .12;
}
.hero-content { position: relative; z-index: 1; color: #fff; }
.hero-label {
  font-family: var(--font-en); font-size: .62rem;
  letter-spacing: .3em; text-transform: uppercase;
  color: var(--color-accent-lt); margin-bottom: 1.5rem;
  display: flex; align-items: center; gap: .75rem;
}
.hero-label::before { content: ''; width: 28px; height: 1px; background: var(--color-accent-lt); flex-shrink: 0; }
.hero h1 { font-size: clamp(1.9rem, 3.2vw, 3rem); line-height: 1.2; font-weight: 700; margin-bottom: 1.25rem; }
.hero h1 em { font-style: normal; color: var(--color-accent-lt); }
.hero-text { font-size: .95rem; line-height: 1.9; opacity: .85; margin-bottom: 1.5rem; }
.hero-badges { display: flex; flex-wrap: wrap; gap: .5rem; margin-bottom: 2.5rem; }
.hero-badge { font-size: .68rem; padding: .28rem .85rem; border: 1px solid rgba(255,255,255,.3); border-radius: 999px; color: rgba(255,255,255,.8); }
.hero-actions { display: flex; gap: 1rem; flex-wrap: wrap; }
.hero-scroll-ind {
  position: absolute; bottom: 2rem; left: 50%; transform: translateX(-50%);
  display: flex; flex-direction: column; align-items: center; gap: .4rem;
  font-family: var(--font-en); font-size: .6rem; letter-spacing: .25em;
  color: rgba(255,255,255,.45);
}
.hero-scroll-ind::after {
  content: ''; width: 1px; height: 42px;
  background: linear-gradient(to bottom, rgba(255,255,255,.5), transparent);
  animation: scroll-pulse 1.6s ease-in-out infinite;
}
@keyframes scroll-pulse {
  0%, 100% { opacity: 1; transform: scaleY(1); }
  50%       { opacity: .3; transform: scaleY(.55); }
}

/* Photo mosaic */
.hero-right {
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-template-rows: 1fr 1fr;
  gap: 4px;
}
.hero-right .ph { height: 100%; }
.hero-right .ph img { object-position: center 30%; }

/* ==========================================
   NEWS TICKER
========================================== */
.news-ticker {
  background: var(--color-primary); color: #fff;
  display: flex; align-items: center; overflow: hidden;
  height: 40px;
}
.ticker-label {
  flex-shrink: 0; background: var(--color-accent);
  padding: 0 1.25rem; height: 100%;
  display: flex; align-items: center;
  font-size: .72rem; font-weight: 700; letter-spacing: .12em;
  white-space: nowrap;
}
.ticker-track { overflow: hidden; flex: 1; height: 100%; }
.ticker-inner {
  display: flex; gap: 5rem; align-items: center; height: 100%;
  animation: ticker 35s linear infinite;
  white-space: nowrap; padding: 0 2rem;
  font-size: .82rem;
}
@keyframes ticker { from { transform: translateX(0); } to { transform: translateX(-50%); } }
.ticker-inner a { color: rgba(255,255,255,.8); transition: color var(--trans); }
.ticker-inner a:hover { color: #fff; }

/* ==========================================
   ABOUT — Offset photo grid left, content right
========================================== */
.home-about { background: var(--color-bg-white); }
.about-inner {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: var(--space-lg); align-items: center;
}
.about-photos {
  position: relative; min-height: 520px;
}
.about-photo-main {
  border-radius: var(--radius-lg); overflow: hidden;
  box-shadow: var(--shadow-lg);
  width: 82%; aspect-ratio: 4/3;
}
.about-photo-sub {
  border-radius: var(--radius-lg); overflow: hidden;
  box-shadow: var(--shadow-lg);
  width: 52%; aspect-ratio: 1/1;
  position: absolute; bottom: 0; right: 0;
  border: 5px solid #fff;
}
.about-content { padding-left: 1rem; }
.about-content .section-tag { display: flex; }
.about-content .sec-title { text-align: left; margin-bottom: 1.5rem; }
.about-content .sec-title h2::after { left: 0; transform: none; }
.about-lead { font-size: 1.05rem; line-height: 1.9; color: var(--color-text); margin-bottom: 1rem; font-weight: 500; }
.about-body { font-size: .9rem; line-height: 1.85; color: var(--color-text-lt); margin-bottom: 2rem; }
.about-stats {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: 1rem; margin-bottom: 2rem;
  border-top: 1px solid var(--color-border);
  border-bottom: 1px solid var(--color-border);
  padding: 1.5rem 0;
}
.about-stat { text-align: center; }
.about-stat-num {
  font-family: var(--font-en); font-size: 2.8rem; font-weight: 700;
  color: var(--color-accent); line-height: 1;
}
.about-stat-num span { font-size: 1.2rem; }
.about-stat-label { font-size: .78rem; color: var(--color-text-lt); margin-top: .4rem; }

/* ==========================================
   BUSINESS — Feature strip + 3 sub-cards
========================================== */
.home-business { background: var(--color-bg); }
.business-feature {
  display: grid; grid-template-columns: 1fr 1fr;
  border-radius: var(--radius-lg); overflow: hidden;
  box-shadow: var(--shadow-lg); margin-bottom: 1.75rem;
  min-height: 380px;
}
.business-feature-photo { position: relative; }
.business-feature-photo .ph { position: absolute; inset: 0; }
.business-feature-body {
  background: #fff; padding: 3rem 3.5rem;
  display: flex; flex-direction: column; justify-content: center;
}
.business-feature-num {
  font-family: var(--font-en); font-size: .65rem; font-weight: 700;
  letter-spacing: .22em; color: var(--color-accent); margin-bottom: 1.25rem;
}
.business-feature-body h3 {
  font-size: 1.6rem; color: var(--color-primary); margin-bottom: 1rem; font-weight: 700;
  line-height: 1.3;
}
.business-feature-body > p { font-size: .9rem; color: var(--color-text-lt); line-height: 1.85; margin-bottom: 1.75rem; }
.business-points { display: flex; flex-direction: column; gap: .6rem; }
.business-point {
  display: flex; align-items: center; gap: .7rem;
  font-size: .875rem; color: var(--color-text-lt);
}
.business-point::before { content: '→'; color: var(--color-accent); font-weight: 700; flex-shrink: 0; }
.business-sub-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; }
.business-cta { text-align: center; margin-top: 2.5rem; }

/* ==========================================
   STATS — Dark bg with photo overlay
========================================== */
.home-stats {
  position: relative; background: var(--color-primary);
  color: #fff; overflow: hidden;
}
.stats-bg {
  position: absolute; inset: 0;
}
.stats-bg .ph {
  position: absolute; inset: 0; opacity: .12;
}
.stats-content { position: relative; z-index: 1; }
.home-stats .sec-title .en { color: var(--color-accent-lt); }
.home-stats .sec-title h2 { color: #fff; }
.home-stats .sec-title h2::after { background: var(--color-accent-lt); }
.stats-row { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.25rem; }
.stat-item {
  text-align: center; padding: 2.5rem 1.5rem;
  border: 1px solid rgba(255,255,255,.12); border-radius: var(--radius-lg);
  background: rgba(255,255,255,.05);
  transition: background var(--trans), border-color var(--trans);
}
.stat-item:hover { background: rgba(255,255,255,.1); border-color: rgba(255,255,255,.25); }
.stat-num {
  font-family: var(--font-en); font-size: 4rem; font-weight: 700;
  color: var(--color-accent-lt); line-height: 1; margin-bottom: .25rem;
}
.stat-num span { font-size: 1.6rem; }
.stat-unit { font-size: .82rem; color: rgba(255,255,255,.65); margin-top: .5rem; }

/* ==========================================
   WORKS — Masonry grid
========================================== */
.home-works { background: var(--color-bg-white); }
.works-masonry {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  grid-template-rows: 240px 240px;
  gap: 1rem;
  margin-bottom: 1rem;
}
.works-masonry .work-card:first-child {
  grid-row: 1 / 3;
}
.works-masonry .work-card:first-child .ph {
  height: 100%; min-height: 480px;
}
.works-masonry .work-card .ph { height: 180px; }
.works-banner { margin-top: 1rem; }
.works-banner .work-card {
  flex-direction: row;
  min-height: 200px;
}
.works-banner .work-card .ph {
  width: 40%; min-height: 200px; flex-shrink: 0;
}
.works-banner .work-card .work-card-body {
  display: flex; flex-direction: column; justify-content: center;
  padding: 2rem 2.5rem;
}
.works-banner .work-title { font-size: 1.1rem; margin-bottom: .6rem; }
.works-cta { text-align: center; margin-top: 2.5rem; }

/* ==========================================
   QUALIFICATIONS — 3 cards + photo strip + list
========================================== */
.home-qual { background: var(--color-bg); }
.qual-cards {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem; margin-bottom: 3rem;
}
.staff-card {
  background: #fff; border-radius: var(--radius-lg);
  padding: 2rem 1.5rem; text-align: center;
  box-shadow: var(--shadow-sm);
}
.staff-card-photo {
  width: 96px; height: 96px; border-radius: 50%;
  margin: 0 auto 1.25rem; overflow: hidden;
  border: 3px solid var(--color-border);
  background: var(--color-bg);
}
.staff-card-photo img { width: 100%; height: 100%; object-fit: cover; display: block; }
.staff-card-name {
  font-size: 1.05rem; font-weight: 700; color: var(--color-primary);
  margin-bottom: .2rem;
}
.staff-card-role {
  font-size: .78rem; color: var(--color-text-lt);
  margin-bottom: 1rem;
}
.staff-card-quals { display: flex; flex-direction: column; gap: .4rem; }
.staff-card-qual {
  font-size: .75rem; background: var(--color-bg);
  padding: .3rem .75rem; border-radius: 20px;
  color: var(--color-text-lt); line-height: 1.5;
}
.qual-photo-strip {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: 1rem; margin-bottom: 3rem;
}
.qual-photo-strip .ph { border-radius: var(--radius-lg); overflow: hidden; }
.qual-list-section {
  background: #fff; border-radius: var(--radius-lg);
  padding: 2rem 2.5rem; box-shadow: var(--shadow-sm);
}
.qual-list-title {
  font-size: .9rem; font-weight: 700; color: var(--color-primary);
  margin-bottom: 1.25rem; padding-bottom: .75rem;
  border-bottom: 1px solid var(--color-border);
}
.qual-list {
  display: grid; grid-template-columns: repeat(2, 1fr); gap: .6rem 2rem;
}
.qual-list li {
  font-size: .875rem; color: var(--color-text-lt);
  padding-left: 1.1rem; position: relative; line-height: 1.6;
}
.qual-list li::before {
  content: '✓'; position: absolute; left: 0;
  color: var(--color-accent); font-weight: 700;
}

/* ==========================================
   SAFETY — Large photo left, items right
========================================== */
.home-safety { background: var(--color-bg-white); }
.safety-inner {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: var(--space-lg); align-items: start;
}
.safety-photo {
  border-radius: var(--radius-lg); overflow: hidden;
  box-shadow: var(--shadow-lg); position: sticky; top: 90px;
}
.safety-photo .ph { aspect-ratio: 4/5; }
.safety-items { display: flex; flex-direction: column; gap: 1.25rem; }
.safety-items .section-tag { display: flex; margin-bottom: 0; }
.safety-heading {
  font-size: clamp(1.5rem, 2.5vw, 2rem); font-weight: 700;
  color: var(--color-primary); margin-bottom: 2rem; line-height: 1.3;
}

/* ==========================================
   NEWS — Grid layout
========================================== */
.home-news { background: var(--color-bg); }
.home-news .sec-title { text-align: left; margin-bottom: 1.5rem; }
.home-news .sec-title h2::after { left: 0; transform: none; }
.news-layout { max-width: 760px; margin: 0 auto; }
.news-more { display: block; text-align: right; margin-top: 1rem; font-size: .85rem; color: var(--color-accent); font-weight: 500; }
.news-more:hover { text-decoration: underline; }
.news-sns-box { background: #fff; border-radius: var(--radius-lg); padding: 1.75rem; box-shadow: var(--shadow-sm); align-self: start; }
.news-sns-box h3 { font-size: .9rem; color: var(--color-primary); margin-bottom: 1.25rem; padding-bottom: .75rem; border-bottom: 1px solid var(--color-border); }
.sns-links { display: flex; flex-direction: column; gap: .75rem; }
.sns-link { display: flex; align-items: center; gap: .75rem; font-size: .875rem; color: var(--color-text-lt); transition: color var(--trans); }
.sns-link:hover { color: var(--color-accent); }
.sns-icon { width: 36px; height: 36px; border-radius: var(--radius); background: var(--color-bg); display: flex; align-items: center; justify-content: center; font-size: 1rem; flex-shrink: 0; }

/* ==========================================
   RECRUIT CTA — Photo background
========================================== */
.home-recruit {
  position: relative; overflow: hidden;
  color: #fff; text-align: center;
  /* セクション下padding はrecrut-content の padding-bottom で確保するため0に */
  padding-bottom: 0;
}
.recruit-bg {
  position: absolute; inset: 0;
}
.recruit-bg .ph { position: absolute; inset: 0; }
.recruit-bg::after {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(to bottom, rgba(27,58,107,.82) 0%, rgba(27,58,107,.72) 100%);
}
.recruit-content { position: relative; z-index: 1; padding-bottom: var(--space-xl); }
.home-recruit .sec-title .en { color: var(--color-accent-lt); }
.home-recruit .sec-title h2 { color: #fff; }
.home-recruit .sec-title h2::after { background: var(--color-accent-lt); }
.recruit-lead { opacity: .88; margin-bottom: 2rem; font-size: .975rem; line-height: 1.9; }
.recruit-photos-strip {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: .5rem;
  margin-top: var(--space-lg);
}
.recruit-photos-strip .ph { border-radius: var(--radius); }

/* ==========================================
   CONTACT CTA
========================================== */
.home-contact { background: var(--color-bg); text-align: center; }
.contact-cta-box {
  background: #fff; border-radius: var(--radius-lg);
  padding: 3.5rem; box-shadow: var(--shadow-md);
  max-width: 720px; margin: 0 auto;
}
.contact-cta-box .sec-title { margin-bottom: 1rem; }
.contact-cta-lead { color: var(--color-text-lt); margin-bottom: 1.5rem; font-size: .975rem; }
.contact-tel { font-family: var(--font-en); font-size: 2.4rem; font-weight: 700; color: var(--color-primary); margin: 1rem 0 .25rem; }
.contact-tel a { color: inherit; }
.contact-hours { font-size: .85rem; color: var(--color-text-lt); margin-bottom: 1.75rem; }

/* ==========================================
   RESPONSIVE — 1024px (tablet)
========================================== */
@media (max-width: 1024px) {
  /* Hero: 1 column / 写真モザイク非表示（タブレットではテキストのみ） */
  .hero { grid-template-columns: 1fr; }
  .hero-left {
    padding: 4rem 2rem;
    height: calc(100svh - 70px);
    min-height: 580px; max-height: 820px;
  }
  .hero-right { display: none; }

  /* About */
  .about-inner { grid-template-columns: 1fr; }
  .about-photos { min-height: 360px; }
  .about-content { padding-left: 0; }

  /* Business */
  .business-feature { grid-template-columns: 1fr; min-height: auto; }
  .business-feature-photo { height: 280px; position: relative; }
  .business-sub-grid { grid-template-columns: repeat(2, 1fr); }

  /* Stats */
  .stats-row { grid-template-columns: repeat(2, 1fr); }

  /* Works */
  .works-masonry { grid-template-columns: 1fr 1fr; grid-template-rows: auto; }
  .works-masonry .work-card:first-child { grid-row: auto; }
  .works-masonry .work-card:first-child .ph { height: auto; min-height: 220px; }
  .works-masonry .work-card .ph { height: 180px; }
  .works-banner .work-card { flex-direction: column; }
  .works-banner .work-card .ph { width: 100%; min-height: 220px; }

  /* Qualifications */
  .qual-cards { grid-template-columns: repeat(2, 1fr); }
  .qual-list { grid-template-columns: 1fr; }

  /* Safety */
  .safety-inner { grid-template-columns: 1fr; }
  .safety-photo { position: static; }

  /* News */
  .news-layout { grid-template-columns: 1fr; }
}

/* ==========================================
   RESPONSIVE — 768px (mobile)
========================================== */
@media (max-width: 768px) {
  /* Hero: テキスト上 + 写真モザイク下に縦積み */
  .hero {
    height: auto; min-height: auto; max-height: none;
    grid-template-rows: auto auto;
  }
  .hero-left {
    padding: 2.25rem 1.5rem 2.5rem;
    height: auto; min-height: auto; max-height: none;
    justify-content: flex-start;
  }
  .hero h1 { font-size: clamp(1.7rem, 7vw, 2.4rem); }
  /* 写真モザイクをスマホでは横ストリップとして復活 */
  .hero-right { display: grid; height: 200px; }

  /* About */
  .about-photos { min-height: 280px; overflow: visible; }
  .about-photo-main { width: 78%; }
  .about-photo-sub { width: 46%; border-width: 3px; }
  .about-stats { grid-template-columns: repeat(3, 1fr); }

  /* Business */
  .business-sub-grid { grid-template-columns: 1fr; }
  .business-feature-body { padding: 2rem 1.5rem; }
  .business-feature-num { margin-bottom: .75rem; }

  /* Stats */
  .stats-row { grid-template-columns: repeat(2, 1fr); gap: .75rem; }
  .stat-item { padding: 1.5rem .75rem; }
  .stat-num { font-size: 2.75rem; }
  .stat-num span { font-size: 1.2rem; }

  /* Works */
  .works-masonry { grid-template-columns: 1fr; }
  /* 1カラムでは first-child の ph を auto height に戻す */
  .works-masonry .work-card:first-child .ph { height: auto; min-height: 200px; }
  .works-masonry .work-card .ph { height: 180px; }

  /* Qualifications */
  .qual-cards { grid-template-columns: 1fr; }
  .qual-photo-strip { gap: .5rem; }
  .qual-list-section { padding: 1.5rem; }

  /* Recruit */
  .recruit-photos-strip { gap: .35rem; }

  /* Contact */
  .contact-cta-box { padding: 2rem 1.25rem; }
  .contact-tel { font-size: 1.85rem; }
}
