@charset "UTF-8";

/* =====================================================
   1. Design Tokens (:root) - 仕様 3.1
   ===================================================== */
:root {
  --ff-en: "Montserrat", system-ui, sans-serif;
  --ff-jp: "Noto Sans JP", system-ui, sans-serif;

  --fz-hero: clamp(60px, 8vw, 100px);
  --fz-h2: clamp(44px, 5.5vw, 70px);
  --fz-h3: clamp(40px, 5vw, 54px);
  --fz-body: 15px;
  --fz-sm: 12px;
  --fz-nav: 13px;

  --text: #111;
  --muted: #a0a0a0;
  --blue: #1e4ca3;
  --blue-weak: #8fb7ff;
  --concept-text: #1b3f86;
  --white: #fff;
  --line: #d9e6ff;
  --concept-bg: #eef5ff;
  --footer-bg: #0d2b54;
  --footer-text: rgba(255,255,255,.82);
  --recruit-grad: linear-gradient(90deg, #7aa7ff, #0c4ed2);

  --container: 1400px;
  --marker-col: 28px;
  --media-w: 800px;
  --media-h: 450px;
  --block-gap: 60px;
}

/* =====================================================
   2. Reset & Base - 仕様 1.2
   ===================================================== */
/* 見出しとp, figureのリセットはmain#top内のみに適用 */
main#top h1, main#top h2, main#top h3, main#top h4, main#top h5, main#top h6 { margin: 0; padding: 0; font-size: inherit; font-weight: inherit; }
main#top p, main#top figure { margin: 0; }

body {
  color: var(--text); background: #fff;
}
a { color: inherit; text-decoration: none; }

/* newoffice専用コンテンツにのみフォントとbox-sizingを適用 */
main#top,
main#top * {
  box-sizing: border-box;
}
main#top {
  font-family: var(--ff-jp);
  font-size: var(--fz-body);
}

/* =====================================================
   3. Role Classes - 仕様 3.2
   ===================================================== */
main#top .kicker { margin-bottom: 32px; }
main#top .kicker-en { font-family: var(--ff-en); font-size: 29px; font-weight: 500; color: var(--muted); letter-spacing: -0.5px; display: block; }
main#top .kicker-jp { font-family: var(--ff-jp); font-size: 18px; font-weight: 600; color: var(--muted); display: block; }
main#top .kicker-jp::before { content: "●"; color: inherit; margin-right: 8px; font-size: 12px; vertical-align: middle; }
main#top .kicker--dark .kicker-en, main#top .kicker--dark .kicker-jp { color: var(--text); }

main#top .hero-title { font-family: var(--ff-en); font-size: var(--fz-hero); font-weight: 500; line-height: 1.1; letter-spacing: -1px; }
main#top .hero-sub { font-family: var(--ff-jp); font-size: 25px; font-weight: 600; margin-top: 10px; }

main#top .concept-title { font-family: var(--ff-en); font-size: var(--fz-h2); font-weight: 500; color: var(--blue); letter-spacing: -1px; }
main#top .concept-lead { font-family: var(--ff-jp); font-size: 21px; font-weight: 600; color: #1a3a7a; letter-spacing: 0.02em; }
main#top .concept-body { font-family: var(--ff-jp); font-size: 17px; font-weight: 600; color: var(--concept-text); line-height: 1.9; }

main#top .ov-title { font-family: var(--ff-en); font-size: var(--fz-h3); font-weight: 300; color: var(--blue-weak); line-height: 1; }
main#top .ov-jp { font-family: var(--ff-jp); font-size: 17px; font-weight: 600; color: #4a4a4a; margin: 8px 0 14px; }

main#top .ov-badge {
  display: inline-block;
  align-self: flex-start;
  font-family: var(--ff-jp); font-size: 12px; padding: 6px 14px;
  border: 1px solid #b0b0b0; background: var(--white); color: var(--muted); margin-bottom: 20px;
}
main#top .ov-desc { font-family: var(--ff-jp); font-size: var(--fz-body); color: var(--text); line-height: 1.9; }

/* =====================================================
   4. Layout Components - 仕様 4 / 5
   ===================================================== */
main#top .container { max-width: var(--container); margin: 0 auto; padding: 0 24px; }
main#top .section { padding: 100px 0; }

main#top .hero { padding-top: 80px; padding-bottom: 80px; }
main#top .hero .container { padding-left: 0; padding-right: 0; }
main#top .hero-title, main#top .hero-sub { padding-left: 100px; }
main#top .hero-media { margin-top: 32px; position: relative; overflow: hidden; background: #e9eef7; }
main#top .hero-track { display: flex; transition: transform 700ms ease; }
main#top .hero-track img { width: 100%; height: 600px; flex-shrink: 0; object-fit: cover; }

main#top .concept { background: var(--concept-bg); }
main#top .concept .container { padding-left: 100px; padding-right: 100px; }
main#top .concept-grid { display: grid; grid-template-columns: 540px 1fr; gap: 60px; align-items: start; }
main#top .concept-header { margin-bottom: 0; }
main#top .concept-left { align-self: start; }
main#top .concept-lead-row { display: flex; align-items: center; gap: 20px; margin-top: 0; }
main#top .concept-rule { width: 70px; height: 2px; background: var(--blue); flex-shrink: 0; }
main#top .concept-right p + p { margin-top: 32px; }

main#top .overview { padding-top: 80px; padding-bottom: 0; }
main#top .overview .container { position: relative; padding-left: 100px; padding-right: 0; }
main#top .ov-block {
  position: relative;
  display: grid; grid-template-columns: var(--marker-col) 1fr var(--media-w);
  grid-template-rows: auto var(--block-gap); column-gap: 40px;
}
main#top .ov-text { grid-row: 1; display: flex; flex-direction: column; height: 100%; align-items: flex-start; }


main#top .ov-marker { grid-row: 1 / span 2; position: relative; display: flex; justify-content: center; }
main#top .ov-marker::before {
  content: "";
  position: absolute;
  top: 17px;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--white);
  border: 1px solid var(--blue);
  z-index: 2;
}
main#top .ov-marker::after {
  content: ""; position: absolute;
  top: 0; bottom: 0;
  width: 1px; background: var(--blue);
  z-index: 1; /* Ensure line is behind circles */
}
/* The new scroll-marker will be positioned by JS */
main#top .scroll-marker {
  position: absolute;
  width: 24px;
  height: 24px;
  background: var(--blue);
  border-radius: 50%;
  z-index: 3;
  left: 102px; /* container padding-left(100) + (marker-col(28)/2) - (self-width(24)/2) */
  top: 0;
  opacity: 0; /* Hide until JS is ready and sets opacity to 1 */
  transform: translateY(0);
  will-change: transform; /* Performance hint */
  transition: transform 0.4s cubic-bezier(0.2, 0, 0, 1);
}


main#top .ov-block.is-first .ov-marker::after { top: 27px; }
main#top .ov-block.is-last .ov-marker::after { bottom: auto; height: 27px; }

main#top .ov-media { grid-row: 1; position: relative; background: #fff; border: 1px solid rgba(0,0,0,.1); width: 100%; }
main#top .ov-media img { display: block; width: 100%; height: auto; object-fit: contain; cursor: zoom-in; }
main#top .ov-controls { grid-row: 2; grid-column: 3; display: flex; padding-top: 10px; gap: 10px; }

/* UI Parts */
main#top .hero-arrow, main#top .ov-arrow {
  position: absolute; top: 50%; transform: translateY(-50%); z-index: 3;
  cursor: pointer; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  width: 70px; height: 70px;
  font-size: 0;
}
main#top .hero-arrow::before, main#top .ov-arrow::before {
  content: '';
  display: block;
  width: 18px; height: 18px;
  border-top: 2px solid #fff;
  border-right: 2px solid #fff;
}
main#top .hero-arrow--prev::before, main#top .ov-arrow--prev::before {
  transform: rotate(-135deg);
  margin-left: 10px;
}
main#top .hero-arrow--next::before, main#top .ov-arrow--next::before {
  transform: rotate(45deg);
  margin-right: 10px;
}
main#top .hero-arrow { border: 2px solid rgba(255,255,255,.65); background: rgba(0,0,0,.22); }
main#top .hero-arrow--prev { left: 18px; }
main#top .hero-arrow--next { right: 18px; }
main#top .hero-dots { position: absolute; bottom: 14px; width: 100%; display: flex; justify-content: center; gap: 10px; }

main#top .ov-arrow { border: 2px solid #fff; background: rgba(0,0,0,.16); }
main#top .ov-arrow--prev { left: 16px; }
main#top .ov-arrow--next { right: 16px; }

main#top .dotbtn { width: 8px; height: 8px; border-radius: 50%; border: 0; padding: 0; background: rgba(255,255,255,.55); cursor: pointer; }
main#top .dotbtn.is-active { background: rgba(0,0,0,.6); }

main#top .ov-controls .dotbtn { background: rgba(47,111,217,.35); width: 10px; height: 10px; }
main#top .ov-controls .dotbtn.is-active { background: var(--blue); }

main#top .hero-arrow:disabled, main#top .ov-arrow:disabled { opacity: 0.15; cursor: not-allowed; pointer-events: none; }

main#top .section#recruit { padding-top: 80px; }
main#top .recruit-banner { padding: 50px 100px; background: var(--recruit-grad); color: #fff; }
main#top .rb-grid { display: flex; justify-content: space-between; align-items: center; gap: 24px; }
main#top .recruit-title { font-family: var(--ff-en); font-size: 56px; font-weight: 400; }
main#top .recruit-jp { font-family: var(--ff-jp); font-size: 14px; margin: 6px 0 14px; }
main#top .recruit-body { font-family: var(--ff-jp); font-size: 14px; line-height: 1.8; }
main#top .recruit-cta { font-size: 42px; color: #fff; }

main#top .lightbox {
  display: none;
  position: fixed;
  top: 0; left: 0;
  width: 100%; height: 100%;
  background: rgba(0,0,0,.9);
  z-index: 999;
  align-items: center;
  justify-content: center;
}
main#top .lightbox[aria-hidden="false"] { display: flex; }
main#top .lightbox-img { max-width: 90%; max-height: 90vh; object-fit: contain; cursor: zoom-out; }
main#top .lightbox-close {
  position: absolute;
  top: 24px; right: 24px;
  width: 48px; height: 48px;
  background: rgba(255,255,255,.15);
  border: 1px solid rgba(255,255,255,.3);
  color: #fff;
  font-size: 32px;
  cursor: pointer;
  border-radius: 50%;
  transition: background .2s;
}
main#top .lightbox-close:hover { background: rgba(255,255,255,.25); }

/* =====================================================
   5. Responsive - 仕様 4 / 5
   ===================================================== */
@media (max-width: 980px) {
  main#top .ov-block {
    grid-template-columns: var(--marker-col) 1fr;
    grid-template-areas: "marker text" "marker media" "marker dots";
    grid-template-rows: auto auto auto;
    row-gap: 20px;
  }
  main#top .ov-marker { grid-area: marker; }
  main#top .ov-text { grid-area: text; align-items: flex-start; }
  main#top .ov-media { grid-area: media; width: 100%; max-width: 100%; }
  main#top .ov-controls {
    grid-area: dots;
    padding-top: 0; /* 画像との間隔を詰める */
    margin-bottom: 40px; /* 次のブロックとの間隔を確保 */
  }

  /* 画像が1枚の場合は2行構成にする */
  main#top .ov-block:has(.is-single) {
    grid-template-areas: "marker text" "marker media";
    grid-template-rows: auto auto;
  }
  main#top .ov-block:has(.is-single) .ov-media {
    margin-bottom: 40px; /* 次のブロックとの間隔を確保 */
  }

  main#top .concept-grid { grid-template-columns: 1fr; }
  main#top .rb-grid { flex-direction: column; text-align: center; }
  main#top .ov-desc { margin-top: 20px; }
}

@media (max-width: 768px) {
  /* 横パディングの調整 */
  main#top .hero-title, main#top .hero-sub { padding-left: 24px; }
  main#top .concept .container { padding-left: 24px; padding-right: 24px; }
  main#top .overview .container { padding-left: 24px; }
  main#top .recruit-banner { padding: 40px 24px; }

  /* スクロールマーカーの位置調整 */
  main#top .scroll-marker {
    left: 26px; /* 24 (padding) + 14 (marker-col中心) - 12 (自身の半径) */
  }

  /* ヒーロー画像の高さ調整 */
  main#top .hero-track img { height: 400px; }

  /* スライダー矢印ボタンのサイズ調整 */
  main#top .hero-arrow, main#top .ov-arrow {
    width: 50px;
    height: 50px;
  }
  main#top .hero-arrow::before, main#top .ov-arrow::before {
    width: 14px;
    height: 14px;
  }
}

@media (max-width: 480px) {
  /* ヒーロー画像のさらなる高さ調整 */
  main#top .hero-track img { height: 300px; }

  /* フォントサイズの調整 */
  :root {
    --fz-hero: 40px;
    --fz-h2: 32px;
    --fz-h3: 28px;
  }
}

/* スライダー用ユーティリティ (JS連動) */
main#top .js-slider.is-single .ov-arrow,
main#top .js-slider.is-single + .ov-controls {
  display: none !important;
}
