/* ============================================================
   Reset & Base
   ============================================================ */
*, *::before, *::after {
  margin: 0; padding: 0;
  box-sizing: border-box;
}

:root {
  --cyan:       #00BFD3;
  --bg:         #0C0C0C;
  --white:      #FFFFFF;
  --font-mincho:'Noto Serif JP','Shippori Mincho B1','Yu Mincho',serif;
  --font-optima:'Optima','Palatino Linotype',Georgia,serif;
  --font-avenir:'Avenir Next','Avenir','Century Gothic','Trebuchet MS',sans-serif;
  --font-sans:  'Noto Sans JP','Hiragino Sans','Meiryo',sans-serif;
}

html {
  scroll-behavior: smooth;
  overflow-x: hidden;
}

body {
  background: var(--bg);
  color: var(--white);
  font-family: var(--font-sans);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

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

br.sp-only { display: none; }
br.pc-only { 
  display: inline;
}

/* iOS Safari 再生ボタン非表示 */
video::-webkit-media-controls,
video::-webkit-media-controls-panel,
video::-webkit-media-controls-overlay-play-button,
video::-webkit-media-controls-start-playback-button {
  display: none !important;
  -webkit-appearance: none;
}

/* スクロールバーの幅 */
::-webkit-scrollbar {
  width: 8px;
}

/* スクロールバーの背景（トラック） */
::-webkit-scrollbar-track {
   background: none;
}

/* スクロールバーのつまみ（サム） */
::-webkit-scrollbar-thumb {
  background: #888;
  border-radius: 6px; /* 角を丸くする */
}

/* ホバー時のつまみの色 */
::-webkit-scrollbar-thumb:hover {
  background: #555;
}
/* ============================================================
   NAV — PC (≥1200px)
   ロゴ: top:37px left:40px
   タグライン: Optima 18px ls=0.48em cyan 中央
   ============================================================ */
.nav {
  position: absolute;
  top: 0; left: 0; right: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  padding: 37px 48px 0;
}

.nav-logo img {
  height: clamp(48px, 3.75vw, 72px);
  width: auto;
}

.nav-tagline {
  position: absolute;
  left: 50%;
  top: 50px;
  transform: translateX(-50%);
  font-family: var(--font-optima);
  font-size: clamp(13px, 0.94vw, 18px);
  font-weight: 400;
  letter-spacing: 0.48em;
  color: var(--cyan);
  white-space: nowrap;
}

/* ============================================================
   FV — PC
   ============================================================ */
.fv {
  position: relative;
  width: 100%;
  height: 100vh;
  min-height: 600px;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--bg);
}

.fv__video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.fv__video--sp { display: none; }

.fv__tint {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(to bottom, transparent 0%, transparent 60%, rgba(12,12,12,.96) 100%);
  pointer-events: none;
}

.fv__btm {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 35%;
  background: linear-gradient(to bottom, transparent, var(--bg));
  pointer-events: none;
}

.fv__body {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: clamp(12px, 1.04vw, 20px);
  margin-top: -3vh;
  padding: 0 24px;
}

.fv__merger {
  display: block;
  width: clamp(400px, 33.4vw, 642px);
  opacity: 0;
  animation: fadeUp 1.4s ease .9s forwards;
}
.fv__merger img { width: 100%; height: auto; display: block; }

.fv__accordion {
  text-align: center;
  opacity: 0;
  animation: fadeUp 1.4s ease 1.08s forwards;
}

.fv__accordion-btn {
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
  display: block;
}

.fv__accordion-label {
  width: clamp(220px, 15.3vw, 293px);
  height: auto;
  display: block;
  margin: 0 auto;
}

.fv__accordion-body {
  margin-top: .6em;
  font-size: clamp(13px, .83vw, 16px);
  line-height: 2;
  text-align: left;
  max-width: 30vw;
  margin-left: auto;
  margin-right: auto;
}

.fv__accordion-body[hidden] { display: none; }

.fv__group3 {
  display: block;
  width: clamp(352px, 26vw, 500px);
  /* opacity: 0; */
  /* animation: fadeUp 1.4s ease 1.26s forwards; */
}
.fv__pic3_1 {
  opacity: 0;
  animation: fadeUp 1.4s ease 2s forwards;
}
.fv__pic3_2 {
  opacity: 0;
  animation: fadeUp 1.4s ease 3s forwards;
}
.fv__pic3_3 {
  opacity: 0;
  animation: fadeUp 1.4s ease 4s forwards;
}
.fv__group3 img { width: 100%; height: auto; display: block; }

/* ============================================================
   Strengths — PC
   ============================================================ */
.strengths {
  background: var(--bg);
  padding: clamp(80px, 8.7vw, 167px) 0 clamp(60px, 6.25vw, 120px);
  text-align: center;
}

.str-heading {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  margin-bottom: clamp(40px, 4.2vw, 80px);
}

.str-ja {
  font-family: var(--font-mincho);
  font-size: clamp(14px, 1.04vw, 20px);
  font-weight: 600;
  letter-spacing: .55em;
  color: rgba(255,255,255,.9);
}

.str-en {
  font-family: var(--font-optima);
  font-size: clamp(16px, 1.3vw, 25px);
  font-weight: 400;
  letter-spacing: .48em;
  color: var(--cyan);
}

.str-catch {
  font-family: var(--font-mincho);
  font-size: clamp(20px, 1.77vw, 34px);
  font-weight: 600;
  color: var(--cyan);
  letter-spacing: .07em;
  line-height: 2;
  margin-bottom: clamp(40px, 4.4vw, 84px);
}

.str-catch em {
  font-style: normal;
  color: var(--white);
}

.str-grid {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0;
  max-width: 1103px;
  margin: 0 auto;
}

.str-col {
  width: 367px;
  flex-shrink: 0;
  text-align: center;
  display: flex;
  flex-direction: column;
  gap: 9px;
}

.str-sep {
  width: 1px;
  flex-shrink: 0;
  background: var(--cyan);
  align-self: stretch;
  min-height: 156px;
}

.str-title {
  font-family: var(--font-mincho);
  font-size: clamp(18px, 1.3vw, 25px);
  font-weight: 600;
  letter-spacing: .1em;
  color: var(--cyan);
  line-height: 2;
}

.str-body {
  font-family: var(--font-sans);
  font-size: clamp(13px, .83vw, 16px);
  font-weight: 400;
  line-height: 2.1875;
  color: rgba(255,255,255,.9);
}

/* ============================================================
   Bottom — PC
   ============================================================ */
.bottom {
  background: var(--bg);
  padding: clamp(40px, 3.1vw, 60px) 40px clamp(40px, 3.1vw, 60px);
}

.bottom__inner {
  max-width: 1103px;
  margin: 0 auto;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: clamp(16px, 2vw, 40px);
}

.bottom__merger {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(14px, 1.2vw, 23px);
  white-space: nowrap;
}

.co-name {
  font-family: var(--font-avenir);
  font-size: clamp(14px, 1.04vw, 20px);
  font-weight: 700;
  color: rgba(255,255,255,.95);
  white-space: nowrap;
}

.co-fielding { letter-spacing: .47em; }
.co-techno   { letter-spacing: .09em; }

.fv__cross {
  font-family: var(--font-avenir);
  font-size: clamp(16px, 1.3vw, 25px);
  font-weight: 400;
  color: var(--cyan);
  line-height: 1;
}

.bottom__catch {
  font-family: var(--font-mincho);
  font-size: clamp(22px, 1.77vw, 34px);
  font-weight: 600;
  color: var(--cyan);
  letter-spacing: .8em;
  line-height: 2;
}

.bottom__logo img {
  height: clamp(56px, 6.15vw, 118px);
  width: auto;
  margin: 0 auto;
}

/* ============================================================
   Footer
   ============================================================ */
.footer {
  background: var(--bg);
  padding: clamp(30px, 3.1vw, 60px) 40px clamp(30px, 3.1vw, 60px);
  text-align: center;
}

.footer__copy {
  font-family: var(--font-avenir);
  font-size: clamp(11px, .78vw, 15px);
  font-weight: 400;
  letter-spacing: .03em;
  color: rgba(255,255,255,.9);
}

/* ============================================================
   Animations
   ============================================================ */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(14px); }
  to   { opacity: 1; transform: translateY(0); }
}

.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 1.1s ease, transform 1.1s ease;
}
.reveal.visible { opacity: 1; transform: translateY(0); }

/* ============================================================
   Tablet (768px – 1199px)
   PC レイアウトをモバイル縦積みに切り替え + 中間サイズ
   ============================================================ */
@media (max-width: 1199px) {

/* スクロールバーの幅 */
::-webkit-scrollbar {
  width: 6px;
}

  /* br.sp-only をタブレットでも有効に */
  br.sp-only { display: inline; }

  /* ── NAV ── */
  .nav { padding: 24px 32px 0; }
  .nav-logo img { height: clamp(40px, 5.2vw, 56px); }
  .nav-tagline {
    font-size: clamp(12px, 1.56vw, 16px);
    top: 38px;
  }

  /* ── FV ── */
  .fv__video--pc { display: none; }
  .fv__video--sp {
    display: block;
    width: 100%;
    height: auto;
    bottom: auto;
    object-fit: initial;
    clip-path: inset(0);
  }
  .fv {
    height: 100svh;
    min-height: 600px;
    align-items: flex-start;
  }
  .fv__tint {
    background: linear-gradient(
      to bottom,
      rgba(0,0,0,.05) 0%,
      rgba(0,0,0,.05) 50%,
      rgba(12,12,12,.96) 100%
    );
  }
  .fv__btm { height: 25%; }
  .fv__body {
    padding: clamp(120px, 17svh, 160px) clamp(24px, 4vw, 48px) 0;
    margin-top: 0;
    align-items: center;
    text-align: center;
    width: 100%;
    gap: clamp(12px, 2svh, 24px);
  }
  .fv__merger { width: clamp(280px, 52vw, 480px); }
  .fv__accordion-label { width: clamp(220px, 32vw, 300px); }
  .fv__accordion-body {
    font-size: clamp(13px, 1.56vw, 16px);
    max-width: 60vw;
  }
  .fv__group3 { width: clamp(280px, 52vw, 480px); }

  /* ── Strengths ── */
  .strengths {
    padding: clamp(56px, 7.3vw, 80px) 0 clamp(40px, 5.2vw, 60px);
  }
  .str-heading { margin-bottom: clamp(24px, 3.1vw, 36px); }
  .str-ja { font-size: clamp(13px, 1.82vw, 16px); }
  .str-en { font-size: clamp(17px, 2.34vw, 22px); }
  .str-catch {
    font-size: clamp(22px, 3.1vw, 30px);
    letter-spacing: .05em;
    margin-bottom: clamp(28px, 3.9vw, 40px);
    padding: 0 clamp(24px, 4vw, 48px);
    text-align: center;
  }
  .str-grid {
    flex-direction: column;
    align-items: flex-start;
    gap: clamp(32px, 4.2vw, 48px);
    padding: 0 clamp(24px, 4vw, 48px) 0 calc(clamp(24px, 4vw, 48px) + 220px);
    max-width: 100%;
  }
  .str-sep { display: none; }
  .str-col {
    width: 100%; max-width: 560px; flex-shrink: 1;
    text-align: left;
    padding-left: 26px;
    border-left: 2px solid var(--cyan);
    gap: 8px;
  }
  .str-title {
    font-size: clamp(20px, 2.73vw, 25px);
    text-align: left;
    line-height: 2;
  }
  .str-body {
    font-size: clamp(14px, 1.82vw, 16px);
    text-align: left;
    line-height: 1.875;
  }

  /* ── Bottom ── */
  .bottom {
    padding: clamp(48px, 6.25vw, 72px) clamp(24px, 4vw, 48px) clamp(48px, 6.25vw, 72px);
  }
  .bottom__merger {
    flex-direction: column;
    gap: 6px;
  }
  .co-name { font-size: 20px; line-height: 1; }
  .co-fielding { letter-spacing: .26em; }
  .co-techno   { letter-spacing: .16em; }
  .fv__cross   { font-size: 16px; line-height: 1; }
  .bottom__catch {
    font-size: clamp(24px, 3.39vw, 30px);
    letter-spacing: .69em;
    line-height: 1.652;
    text-align: center;
    align-self: center;
    margin-left: 40px;
    white-space: nowrap;
  }
  .bottom__logo img {
    height: clamp(72px, 10.4vw, 100px);
  }

  /* ── Footer ── */
  .footer { padding: clamp(24px, 3.1vw, 36px) clamp(24px, 4vw, 40px); }
  .footer__copy { font-size: clamp(10px, 1.3vw, 13px); }
}

/* ============================================================
   SP (≤767px)
   Figma SP frame: 375px 基準
   ============================================================ */
@media (max-width: 767px) {
br.pc-only {
  display: none;
}
  /* ── NAV ── */
  .nav { padding: 17px 0 0 9px; align-items: flex-start; }
  .nav-logo img { height: 40px; }
  .nav-tagline {
    position: absolute;
    left: 17px;
    top: 69px;
    transform: none;
    writing-mode: vertical-lr;
    text-orientation: mixed;
    font-size: 14px;
    letter-spacing: .48em;
    white-space: nowrap;
  }

  /* ── FV ── */
  /* 動画を in-flow にして FV 高さ = 動画自然高さ に */
  .fv {
    height: auto;
    min-height: 0;
    display: block;
    overflow: visible;
  }
  .fv__video--sp {
    position: static;
    inset: unset;
    clip-path: none;
  }
  /* body を絶対配置で動画に重ねる */
  .fv__body {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    width: 100%;
    padding: clamp(100px, 17.875svh, 143px) 22px 0;
    gap: clamp(10px, 2.5svh, 20px);
  }
  .fv__merger { width: clamp(240px, 78vw, 292px); }
  .fv__accordion-label { width: clamp(200px, 53vw, 220px); }
  .fv__accordion-body {
    font-size: 13px;
    max-width: 85vw;
  }
  .fv__group3 { width: clamp(247px, 78.4vw, 314px); margin-top: 50px; }

  /* ── SP FV グラデーション ── */
  .fv__tint {
    background: linear-gradient(
      to bottom,
      rgba(0,0,0,.05) 0%,
      rgba(0,0,0,.05) 60%,
      rgba(12,12,12,.3) 100%
    );
  }
  /* 動画下部→背景色へのフェード（境界を消す） */
  .fv__btm { display: block; height: 28%; }

  /* ── Strengths ── */
  .strengths {
    margin-top: 50px;
    padding: clamp(40px, 8vw, 56px) 0 clamp(30px, 6vw, 50px);
  }
  .str-heading { margin-bottom: 18px; }
  .str-ja { font-size: 14px; letter-spacing: .55em; }
  .str-en { font-size: 19px; letter-spacing: .48em; }
  .str-catch {
    font-size: 27px;
    letter-spacing: .07em;
    margin-bottom: clamp(20px, 5vw, 30px);
    padding: 0 30px;
    text-align: left;
  }
  .str-grid {
    gap: 40px;
    padding: 0 clamp(34px, 4vw, 18px);
  }
  .str-title { font-size: 25px; }
  .str-body  { font-size: 16px; line-height: 1.875; }

  /* ── Bottom ── */
  .bottom {
    padding: clamp(40px, 6svh, 60px) clamp(16px, 4vw, 30px) clamp(40px, 6svh, 56px);
  }
  .bottom__catch {
    font-size: 29px;
    letter-spacing: .69em;
    margin-left: 40px;
    white-space: nowrap;
  }
  .bottom__logo img { height: clamp(64px, 24.25vw, 97px); }

  /* ── Footer ── */
  .footer { padding: clamp(20px, 4vw, 30px) 16px; }
  .footer__copy { font-size: 10px; }
}

