/* =========================================================
   SAKURA A&P PARTNERS — 共通スタイル
   全ページ共通。ヒーローの時間帯は body の data-time / .hero--* で切替
   ========================================================= */

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: "Yu Gothic", "Meiryo", "Hiragino Sans", "Hiragino Kaku Gothic ProN", sans-serif;
  color: #fff;
  background: #0a0a0a;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }

.container { max-width: 1100px; margin: 0 auto; padding: 0 6%; }

/* ───── グローバルヘッダー ───── */
.site-header {
  position: absolute;
  top: 0; left: 0; right: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 26px 40px;
  opacity: 0;
  transform: translateY(-10px);
  transition: opacity 0.9s ease-out 0.3s, transform 0.9s ease-out 0.3s;
}
.site-header.show { opacity: 1; transform: none; }
.site-nav {
  display: flex;
  gap: 28px;
  font-size: 0.85rem;
  letter-spacing: 0.12em;
  font-family: "Helvetica Neue", "Arial", sans-serif;
}
.site-nav a {
  position: relative;
  padding-bottom: 4px;
  color: rgba(255,255,255,0.92);
  transition: color 0.3s;
}
.site-nav a::after {
  content: '';
  position: absolute; left: 0; bottom: 0;
  width: 0; height: 1px; background: #fff;
  transition: width 0.3s ease;
}
.site-nav a:hover::after,
.site-nav a.is-current::after { width: 100%; }
.site-nav a.is-current { color: #fff; }
.site-logo { display: block; line-height: 0; }
.site-logo img { height: 56px; width: auto; display: block; }
/* 暗い時間帯の背景では黒ロゴを白へ反転して視認性を確保 */
body[data-time="evening"] .site-logo img,
body[data-time="night"] .site-logo img { filter: invert(1); }

/* ───── HERO（共通） ───── */
.hero {
  position: relative;
  height: 100vh;
  min-height: 600px;
  width: 100%;
  overflow: hidden;
}
.hero--page { height: 58vh; min-height: 380px; }

/*
  動画差し替え手順（トップのメインビジュアル）:
  .hero__bg を残して poster 代わりにしつつ、直後に下記を追加するだけ。
    <video class="hero__video" autoplay muted loop playsinline poster="assets/img/hero-night.jpg">
      <source src="assets/video/hero.mp4" type="video/mp4">
    </video>
  ※ スマホ自動再生には muted / playsinline が必須。
*/
.hero__bg {
  position: absolute; inset: 0;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  transform: scale(1.08);
  opacity: 0;
  transition: opacity 1.6s ease-out, transform 12s ease-out;
  will-change: transform, opacity;
}
.hero__bg.loaded { opacity: 1; transform: scale(1); }
.hero__video {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  z-index: 1;
}
.hero__overlay {
  position: absolute; inset: 0;
  z-index: 2;
  pointer-events: none;
  background:
    linear-gradient(to bottom, rgba(0,0,0,0.15) 0%, rgba(0,0,0,0.45) 60%, rgba(0,0,0,0.75) 100%),
    linear-gradient(to right, rgba(0,0,0,0.45) 0%, transparent 50%);
}
/* 時間帯ごとの可読性調整（明るい画像ほど濃く） */
.hero--morning .hero__overlay {
  background:
    linear-gradient(to bottom, rgba(0,0,0,0.22) 0%, rgba(0,0,0,0.5) 60%, rgba(0,0,0,0.78) 100%),
    linear-gradient(to right, rgba(0,0,0,0.45) 0%, transparent 55%);
}
.hero--day .hero__overlay {
  background:
    linear-gradient(to bottom, rgba(0,0,0,0.28) 0%, rgba(0,0,0,0.55) 60%, rgba(0,0,0,0.8) 100%),
    linear-gradient(to right, rgba(0,0,0,0.5) 0%, transparent 55%);
}
.hero--evening .hero__overlay {
  background:
    linear-gradient(to bottom, rgba(0,0,0,0.18) 0%, rgba(0,0,0,0.45) 60%, rgba(0,0,0,0.75) 100%),
    linear-gradient(to right, rgba(0,0,0,0.4) 0%, transparent 50%);
}
.hero--night .hero__overlay {
  background:
    linear-gradient(to bottom, rgba(0,0,0,0.15) 0%, rgba(0,0,0,0.4) 60%, rgba(0,0,0,0.72) 100%),
    linear-gradient(to right, rgba(0,0,0,0.4) 0%, transparent 50%);
}

/* ───── HERO トップ用ステートメント ───── */
.hero__statement {
  position: absolute;
  left: 6%;
  bottom: 18%;
  z-index: 10;
  max-width: 90%;
}
.hero__statement__line {
  display: block;
  height: 2px; width: 0;
  background: #fff;
  margin-bottom: 24px;
  transition: width 1.4s cubic-bezier(0.22, 1, 0.36, 1) 0.6s;
}
.show .hero__statement__line,
.hero__statement.show .hero__statement__line { width: 72px; }
.hero__statement__text {
  display: block;
  font-size: clamp(2rem, 5.5vw, 4rem);
  font-weight: 200;
  letter-spacing: 0.14em;
  line-height: 1.15;
  font-family: "Helvetica Neue", "Arial", sans-serif;
  opacity: 0; transform: translateY(20px);
  transition: opacity 1.3s cubic-bezier(0.22, 1, 0.36, 1) 0.9s,
              transform 1.3s cubic-bezier(0.22, 1, 0.36, 1) 0.9s;
}
.hero__statement.show .hero__statement__text { opacity: 1; transform: none; }
.hero__statement__sub {
  display: block;
  margin-top: 22px;
  font-size: clamp(0.85rem, 1.6vw, 1.05rem);
  letter-spacing: 0.08em;
  color: rgba(255,255,255,0.85);
  opacity: 0; transform: translateY(20px);
  transition: opacity 1.3s ease 1.2s, transform 1.3s ease 1.2s;
}
.hero__statement.show .hero__statement__sub { opacity: 1; transform: none; }

/* ───── HERO 下層ページ用タイトル ───── */
.page-hero__inner {
  position: absolute;
  left: 6%; bottom: 22%;
  z-index: 10;
  max-width: 90%;
}
.page-hero__line {
  display: block; height: 2px; width: 0;
  background: #fff; margin-bottom: 20px;
  transition: width 1.4s cubic-bezier(0.22, 1, 0.36, 1) 0.5s;
}
.page-hero__inner.show .page-hero__line { width: 56px; }
.page-hero__en {
  display: block;
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  font-weight: 200;
  letter-spacing: 0.16em;
  font-family: "Helvetica Neue", "Arial", sans-serif;
  opacity: 0; transform: translateY(18px);
  transition: opacity 1.1s ease 0.7s, transform 1.1s ease 0.7s;
}
.page-hero__inner.show .page-hero__en { opacity: 1; transform: none; }
.page-hero__ja {
  display: block;
  margin-top: 12px;
  font-size: clamp(0.85rem, 1.6vw, 1.05rem);
  letter-spacing: 0.1em;
  color: rgba(255,255,255,0.85);
  opacity: 0; transform: translateY(18px);
  transition: opacity 1.1s ease 0.95s, transform 1.1s ease 0.95s;
}
.page-hero__inner.show .page-hero__ja { opacity: 1; transform: none; }

/* ───── スクロールインジケーター ───── */
.hero__scroll {
  position: absolute;
  bottom: 28px; left: 50%;
  transform: translateX(-50%);
  z-index: 10;
  font-size: 0.7rem; letter-spacing: 0.4em;
  color: rgba(255,255,255,0.7);
  opacity: 0;
  transition: opacity 1s ease-out 1.8s;
}
.hero__scroll.show { opacity: 1; }
.hero__scroll::after {
  content: '';
  display: block; width: 1px; height: 28px;
  background: rgba(255,255,255,0.6);
  margin: 10px auto 0;
  animation: scrollLine 2.2s ease-in-out infinite;
  transform-origin: top;
}
@keyframes scrollLine {
  0% { transform: scaleY(0); opacity: 0.6; }
  50% { transform: scaleY(1); opacity: 1; }
  100% { transform: scaleY(0); opacity: 0; transform-origin: bottom; }
}

/* ───── コンテンツセクション（汎用） ───── */
.section { padding: 110px 0; }
.section--alt { background: #101012; }
.section__label {
  font-size: 0.8rem; letter-spacing: 0.5em;
  color: #888; margin-bottom: 22px;
}
.section__title {
  font-size: clamp(1.6rem, 2.8vw, 2.2rem);
  font-weight: 400; line-height: 1.6;
  letter-spacing: 0.04em; margin-bottom: 30px;
}
.section__lead { color: #bbb; max-width: 760px; font-size: 1rem; }
.section__lead + .section__lead { margin-top: 20px; }

/* スクロール連動フェード */
[data-fade] { opacity: 0; transform: translateY(24px); transition: opacity 0.9s ease-out, transform 0.9s ease-out; }
[data-fade].visible { opacity: 1; transform: none; }

/* ───── 会社概要テーブル ───── */
.info-table { width: 100%; border-collapse: collapse; margin-top: 10px; }
.info-table th, .info-table td {
  text-align: left; padding: 18px 8px;
  border-bottom: 1px solid #222; vertical-align: top;
}
.info-table th {
  width: 30%; color: #9a9a9a; font-weight: 500;
  letter-spacing: 0.05em; white-space: nowrap;
}
.info-table td { color: #ddd; }
@media (max-width: 600px) {
  .info-table th, .info-table td { display: block; width: 100%; }
  .info-table th { border-bottom: none; padding-bottom: 4px; }
  .info-table td { padding-top: 4px; }
}

/* ───── 事業内容グリッド ───── */
.biz-grid {
  display: grid; grid-template-columns: repeat(2, 1fr);
  gap: 20px; margin-top: 16px;
}
.biz-card {
  border: 1px solid #222; padding: 30px 28px;
  transition: border-color 0.3s, transform 0.3s;
}
.biz-card:hover { border-color: #444; transform: translateY(-3px); }
.biz-card h3 { font-size: 1.05rem; font-weight: 600; margin-bottom: 12px; letter-spacing: 0.04em; }
.biz-card p { color: #999; font-size: 0.92rem; }

/* ───── 応募のながれ ステップ ───── */
.steps { margin-top: 16px; }
.step {
  display: flex; gap: 28px; align-items: flex-start;
  padding: 30px 0; border-bottom: 1px solid #222;
}
.step__num {
  font-size: 2.2rem; font-weight: 200; color: #555;
  min-width: 64px; line-height: 1;
  font-family: "Helvetica Neue", "Arial", sans-serif;
}
.step__body h3 { font-size: 1.1rem; font-weight: 600; margin-bottom: 8px; letter-spacing: 0.04em; }
.step__body p { color: #999; font-size: 0.95rem; }

/* ───── イベント詳細 ───── */
.timetable { list-style: none; margin-top: 12px; }
.timetable li {
  display: flex; gap: 20px; padding: 14px 0;
  border-bottom: 1px solid #1d1d1d; color: #ccc; font-size: 0.95rem;
}
.timetable li span.t { color: #8aa; min-width: 110px; font-family: "Helvetica Neue", "Arial", sans-serif; }
.event-note {
  margin-top: 30px; padding: 18px 22px;
  border-left: 2px solid #555; color: #999; font-size: 0.9rem; background: #0d0d0d;
}

/* ───── CONTACT / ボタン ───── */
.actions { display: flex; gap: 20px; flex-wrap: wrap; margin-top: 10px; }
.actions--center { justify-content: center; }
.btn {
  display: inline-block; padding: 16px 40px;
  border: 1px solid rgba(255,255,255,0.4);
  letter-spacing: 0.12em; font-size: 0.9rem;
  transition: background 0.3s, color 0.3s, border-color 0.3s;
}
.btn:hover { background: #fff; color: #0a0a0a; border-color: #fff; }
.btn--primary { background: rgba(255,255,255,0.92); color: #0a0a0a; }
.btn--primary:hover { background: #fff; }
.mail-fallback { margin-top: 26px; font-size: 0.85rem; color: #888; }
.mail-fallback a { color: #bbb; text-decoration: underline; text-underline-offset: 3px; }

/* ───── FOOTER ───── */
.footer {
  padding: 50px 6%;
  border-top: 1px solid #222;
  color: #666; font-size: 0.85rem; letter-spacing: 0.06em;
  display: flex; justify-content: space-between; align-items: center;
  flex-wrap: wrap; gap: 16px;
}
.footer__nav { display: flex; gap: 22px; flex-wrap: wrap; }
.footer__nav a:hover { color: #aaa; }

/* ───── レスポンシブ ───── */
@media (max-width: 768px) {
  .site-header { flex-direction: column; gap: 14px; padding: 16px; }
  .site-nav { gap: 16px; font-size: 0.72rem; flex-wrap: wrap; justify-content: center; }
  .site-logo { order: -1; }
  .site-logo img { height: 42px; }
  .hero__statement { left: 5%; right: 5%; bottom: 14%; }
  .hero__statement.show .hero__statement__line { width: 48px; }
  .page-hero__inner { left: 5%; right: 5%; bottom: 16%; }
  .section { padding: 70px 0; }
  .biz-grid { grid-template-columns: 1fr; }
  .step { gap: 16px; }
  .step__num { font-size: 1.6rem; min-width: 44px; }
  .footer { flex-direction: column; text-align: center; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
}
