@charset "utf-8";
/* ======= Smartphone styles (≤ 767.98px) ======= */

/* 横スクロール抑止（フルブリード要素・ナビ退避のはみ出し対策） */
html, body { overflow-x: hidden; }
:root { --container: 100vw; }

html, body { min-width: 0; }
body { font-size: 15px; }
.container { width: 92vw; margin: 0 auto; }
.k-container { width: 92vw; margin: 0 auto; }

/* Header / Hamburger / GlobalNav（全画面オーバーレイ） */
.header-wrap { height: 56px; position: relative; }
/* ロゴ枠のサイズ（横幅は端末に合わせて上限を設定する例） */
.logo {
  height: 50px;
  width: min(52vw, 280px);  /* 例：画面幅の約半分か280pxの小さい方 */
}

/* 画像は枠内で比率維持して収まる */
.logo img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}

/* 右上固定（前ターンの指定があればそのままでOK） */
.hamburger{
  display: block;
  position: fixed;
  right: 16px;
  width: 44px;
  height: 44px;
  border-radius: 3px;
  background: #1e4f9e;
  z-index: 110;
}

/* 線色：白背景でも青で視認性を確保（開閉とも同色でOK） */
.hamburger span{ background: #0A4E9C; }

/* 3本線→× のアニメ（既存の style.css の transform 指定が効きます） */
/* body.nav-open .hamburger span:nth-child(1){ transform: translateY(7px) rotate(45deg); }
   body.nav-open .hamburger span:nth-child(2){ opacity: 0; }
   body.nav-open .hamburger span:nth-child(3){ transform: translateY(-7px) rotate(-45deg); } */


body.nav-open .hamburger{
  /* background: transparent;     青のオーバーレイに馴染ませる */
  border-color: rgba(255,255,255,.35);
  box-shadow: none;
}
body.nav-open .hamburger span{
  background: #fff;            /* × の線は白に */
}

/* 3本線→× のアニメ（style.css の変形をそのまま利用） */
/* 既に style.css にある以下の変形が効きます：
   body.nav-open .hamburger span:nth-child(1){ transform: translateY(7px) rotate(45deg); }
   body.nav-open .hamburger span:nth-child(2){ opacity: 0; }
   body.nav-open .hamburger span:nth-child(3){ transform: translateY(-7px) rotate(-45deg); }
*/

/* これまでの nav#globalNav の transform/translateX 指定を削除し、以下に置換 */
nav#globalNav {
  position: fixed;
  inset: 0;                   /* 100vw x 100vh を完全に覆う */
  width: 100vw;
  height: 100vh;
  background: #fff;           /* 白で下層を完全に隠す */
  color: #0A4E9C;             /* テキストは濃い青で */
  display: flex;
  flex-direction: column;
  padding: 88px 24px 32px;    /* 上はヘッダー分 + 余白 */
  gap: 16px;
  opacity: 0;                 /* フェード制御 */
  visibility: hidden;
  pointer-events: none;
  transition: opacity .28s ease;  /* ← フェードイン */
  z-index: 100;
}
body.nav-open nav#globalNav {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}
body.nav-open { overflow: hidden; }   /* オーバーレイ中の背面スクロール禁止 */

/* メニュー項目（縦1列） */
nav#globalNav ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
	text-align: center;
}

/* テキストのみ（罫線/影なし、PC同様カラー）※募集要項以外 */
/* 1) 通常リンク（nav-cta以外）をセンタリング */
nav#globalNav a:not(.nav-cta) {
  display: block;
  width: 100%;
  padding: 12px 0;
  background: none !important;
  border: 0 !important;
  box-shadow: none !important;
  border-radius: 0 !important;
  color: #31475d !important;
  font-weight: 700;
  text-align: center;           /* ← 追加：中央揃え */
}

/* 2) 「募集要項」はフル幅をやめてボタンサイズに */
nav#globalNav a.nav-cta {
  display: inline-block;        /* ← 変更：block→inline-block */
  width: auto;                  /* ← 追加：フル幅解除 */
  padding: 16px 38px;           /* ← ご指定どおり */
  text-align: center;
  background: linear-gradient(320deg, var(--c-primary) 20%, var(--c-primary-2));
  color: #fff;
  box-shadow: 0 10px 22px rgba(12,121,214,.35);
  border: none;
  border-radius: 3px;
  margin-top: 30px;
  font-weight: 800;
  align-self: center;           /* ← 追加：縦並びの中央に配置 */
}


/* ハンバーガー：3本線/× ともに青 */
.hamburger span { background: #ffffff !important; }
body.nav-open .hamburger span { background: #ffffff !important; }

/* 閉じるボタン（右上固定） */
nav#globalNav .nav-close{
  position: absolute;
  top: 18px;
  right: 18px;
  width: 44px; height: 44px;
  border-radius: 50%;
  border: 1px solid rgba(255,255,255,.5);
  background: rgba(255,255,255,.12);
  color: #fff;
  font-size: 22px;
  line-height: 1;
  display: grid; place-items: center;
  box-shadow: 0 4px 12px rgba(0,0,0,.25);
}

/* 横スクロール抑止（フルブリード要素のはみ出し対策） */
html, body { overflow-x: hidden; }

/* ===== フェードで閉じる用の“閉じ中”状態 ===== */
/* 開いている間：body.nav-open …（既存）
   閉じはじめ：body.nav-closing … ここで opacity だけ 0 にして visibility は維持 */
body.nav-closing nav#globalNav{
  opacity: 0;
  visibility: visible;
  pointer-events: none; /* クリックは無効化 */
  transition: opacity .28s ease; /* 開く時と同じ時間で */
}

/* 閉じ中も背景スクロール禁止（開いている時と同等） */
body.nav-open,
body.nav-closing{
  overflow: hidden;
}


/* Hero */
.hero-bg { height: 420px; }
.hero-copy .copy-wrap { width: 92vw; }
/* SPでのみ改行させる */
.sp-br { display: inline; } /* br要素なので display指定はあってもOK（改行として効きます） */

/* ヒーローの文字サイズをvw基準で可変（下限/上限つき） */
.hero-title{
  font-size: clamp(20px, 7vw, 34px);
  line-height: 1.6;
}
.hero-sub{
  font-size: clamp(13px, 4.2vw, 18px);
  line-height: 1.9;
}
/* hero-copy（テキスト）を前面、hero-logo（ロゴ）を背面へ */
.hero-copy{ z-index: 2; }
.hero-logo{ z-index: 1; }



/* News */
.news { padding: 36px 0; }
.news-head { flex-direction: column; align-items: flex-start; gap: 10px; margin-bottom: 16px; }
.news-head .desc { text-align: left; max-width: none; font-size: 15px; }
.eyebrow {
  font-weight: 400; letter-spacing: .18em; color: var(--c-primary);
  font-size: clamp(20px, 6vw, 25px);
  display: inline-block; position: relative;
  padding-bottom: 6px; margin-bottom: 6px; line-height: 1.2;
  width: max-content; max-width: 100%;
  font-family: "Klee One", cursive; font-style: italic;
}
.news-list { border-top: none; }
.news-row { grid-template-columns: 1fr; gap: 6px; padding: 12px 0; }
.news-row div:nth-child(1){ color:#7189a1; font-size: 15px; font-weight:600; }
.news-row div:nth-child(2){ font-size: 15px; }

/* ===== About（SPでもPC同様：縦長3枚を横並び＋順次フェードイン） ===== */


.about p {
  color: rgba(255,255,255,1);
  font-size: 16px;
  line-height: 2.3;
}

.about-grid{
  grid-template-columns: 1fr;   /* テキスト段落は1カラムのまま */
}

/* 写真は3カラム固定にして横並び */
.about-photos{
  display: grid;
  grid-template-columns: repeat(3, 1fr);  /* ← 3枚横並び */
  gap: 12px;
}

/* 縦長比率を統一（3:5 ＝ポートレート寄り） */
.about-photos .ph{
  position: relative;
  overflow: hidden;
  aspect-ratio: 3 / 5;          /* ← 縦長に見せる要（width:100%に対して高さを決定） */
  height: auto;                  /* 明示の高さ指定を無効化 */
  opacity: 0;                    /* 既存アニメ前提を再確認 */
  transform: translateY(28px);
}

/* 画像はカバーでトリミング */
.about-photos .ph img{
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* フェードインは既存の .ph.in を踏襲（JSで順次 add） */
.about-photos .ph.in{
  opacity: 1;
  transform: translateY(0);
  transition: opacity .8s ease, transform .8s ease;
}

/* PC同様の段差（任意）：軽い段差を残す場合は以下を有効化
.about-photos .ph:nth-child(1){ margin-top: 0; }
.about-photos .ph:nth-child(2){ margin-top: 12px; }
.about-photos .ph:nth-child(3){ margin-top: 24px; }
*/


/* Videos */
.videos { padding: 48px 0 110px; }
.video-grid { gap: 24px; }
.video-title { font-size: 24px; }
.video-cast { font-size: 20px; text-align: left; margin-bottom: 20px; }

.grad-a, .grad-b { width: 100%; margin: 0; padding-bottom: 20px; }
.grad-a {margin-bottom: 70px;}
.video-head { margin: 0 0 16px; padding-right: 0; }
.grad-b .video-title { padding-left: 0; }
.ytbox { width: 100%; }

.grad-b .ytbox {
  margin-left: 0;
}

.grad-b .video-head {
  padding-right: 0;
}

/* ===== Facts（SP版・決定版）========================================
   目的：
   (1) すべての .icon を中央寄せ
   (2) .value の高さ差で <p class="desc"> の開始位置がズレないよう、上段の高さを統一
   レイアウト：2列×3行のカードグリッド
=================================================================== */

/* 2列×3行の安定グリッド */
.fact-grid{
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  column-gap: 14px;
  row-gap: 14px;
}
.fact{ min-width: 0; } /* 子要素の縮小を許容（はみ出し防止） */

/* カード内の2段構成：上段（アイコン + 数値行）／下段（desc） */
.fact .body{
  display: grid;
  grid-template-rows: auto auto; /* 1段目=上段 / 2段目=desc */
  row-gap: 10px;
}

/* ── 上段コンテナ：アイコン＋数値＋単位（ここで高さを統一） ── */
.fact .body > div{
  /* 同じ“行”に並ぶカードのdesc開始位置が揃うよう、上段に共通の最小高さを与える */
  min-height: clamp(64px, 18vw, 120px);
  /* アイコンは1行目で2列ぶち抜き、数値+単位は2行目で横並び中央 */
  display: grid;
  grid-template-areas:
    "icon icon"
    "val  unit";
  grid-template-columns: auto auto;
  grid-auto-rows: auto;
  place-items: center;   /* 全要素を中央寄せ（水平・垂直） */
  text-align: center;
  width: 100%;
  min-width: 0;
}

/* (1) すべての .icon を中央寄せ（grid-area も指定） */
.fact .icon{
  grid-area: icon;
  display: flex;
  align-items: center;
  justify-content: center; /* ← 中央寄せ */
}
.fact .icon img{
  width: clamp(28px, 10vw, 56px);
  height: auto;
  display: block;
}

/* 数値＋単位（2行目）を横並び中央に */
.fact .value{
  grid-area: val;
  justify-self: end;
  white-space: nowrap;
  font-size: clamp(22px, 8.5vw, 44px);
  line-height: 1;
  letter-spacing: 0;
}
.fact .unit{
  grid-area: unit;
  justify-self: start;
  white-space: nowrap;
  margin-left: 0; /* 余白は列間隔で管理 */
  font-size: clamp(12px, 3.8vw, 18px);
  line-height: 1;
}

/* (2) 下段の説明文は“常に上から”開始させて、行頭をそろえる */
.fact .desc{
  align-self: start; /* ← ここが効くポイント */
  margin-top: 0;
  font-size: 15px;
  line-height: 1.9;
}

/* ===== [SP Patch] Facts: ring を完全センタリング ===== */

/* ringは 2カラムぶち抜き+中央寄せにする（val/unit ではなく単独表示の扱い） */
.fact .value.ring{
  grid-column: 1 / -1;        /* 2列ぶち抜き */
  justify-self: center;       /* 水平中央 */
  align-self: center;         /* 垂直中央 */
  position: relative;
  display: grid;
  place-items: center;

  /* 正方形コンテナにしてSVGを中央フィット */
  width: clamp(90px, 30vw, 150px);
  aspect-ratio: 1 / 1;

  /* 文字（span）は中央に重ねる */
  font-size: clamp(16px, 4.8vw, 22px);
  font-weight: 900;
  color: #589de5;
}

/* SP時：単位の下付け量を少し控えめに */
.fact .value:not(.ring) + .unit{
  margin-left: -0.6em;
  letter-spacing: -0.015em;
  transform: translateY(0.42em);
}

/* SVGをコンテナいっぱいに、厳密中央へ */
.fact .value.ring svg{
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  transform: rotate(-90deg);  /* 既存仕様を踏襲（開始位置調整） */
  display: block;
}

/* circleがコンテナ内できっちり収まるように（viewBox 114基準） */
.fact .value.ring circle{
  fill: transparent;
  stroke: #e5eef8;
  stroke-width: 8;            /* 既存に合わせる */
  stroke-dasharray: 345;
  stroke-dashoffset: 345;
  transition: stroke-dashoffset 1.2s ease;
}

/* 「値+単位」レイアウト用のユニット側ハックを無効化（ring時のズレ防止） */
.fact .unit{
  height: auto !important;
  padding-top: 0 !important;
  align-items: initial !important;
}

/* 既存の上段コンテナ内グリッドに対応：
   ring がある場合は unit を消して1要素だけで中央に */
.fact .body > div:has(.value.ring){
  grid-template-areas:
    "icon icon"
    "ring ring";
  grid-template-columns: 1fr 1fr;
  row-gap: 10px;
}

/* ring のグリッドエリア名（補助） */
.fact .value.ring{ grid-area: ring; }

/* アイコンは常に中央（念のため再指定） */
.fact .icon{
  display: flex;
  align-items: center;
  justify-content: center;
}
.fact .icon img{
  display: block;
  width: clamp(28px, 10vw, 56px);
  height: auto;
}


/* Guide */
.guide { padding: 60px 0 80px; }
.guide-grid { grid-template-columns: 1fr; }
.guide-card img { height: 200px; }

/* Jobs */
.jobs { padding: 56px 0; }
.job-list { gap: 16px; }
.job { grid-template-columns: 1fr; gap: 10px; padding: 12px 0; }
.job .img { height: 160px; }
.job .txt { padding-right: 0; }
.job h3 { font-size: 22px; }
.job p { font-size: 15px; line-height: 1.9; }
/* 旧：記事最下部の線は使わない */
.job::after { content: none !important; }

/* 線を「写真の下部」に被せる（SP） */
.job .img { position: relative; }
.job .img::after{
  content: "";
  position: absolute;
  bottom: 8px;           /* ← 上部→下部へ（SPは少し詰める） */
  left: 10px;
  right: 0;
  height: 1px;
  z-index: 2;
  pointer-events: none;
  background: linear-gradient(
    90deg,
    rgba(255,255,255,.92) 0 110px,
    #e0e5ea 110px 100%
  );
}

/* SPの job レイアウト：1行目=img, 2行目=txt+arrow */
.job{
  display: grid;
  grid-template-columns: 1fr auto;       /* ← txt / arrow */
  grid-template-areas:
    "img  img"
    "txt  arrow";
  gap: 10px;
}

/* それぞれの配置 */
.job .img   { grid-area: img; }
.job .txt   { grid-area: txt; align-self: center; }
.job .arrow { grid-area: arrow; align-self: center; }

/* 既存のPC用絶対配置を無効化（SPのみ） */
.job .arrow{
  position: static !important;
  transform: none !important;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  background: linear-gradient(90deg, var(--c-primary), var(--c-primary-2));
  color: #fff;
  font-weight: 900;
  text-decoration: none;                /* リンク化対策 */
  margin-left: 10px;                    /* txtとの距離 */
}
/* カード全体をクリック可能にする透明ヒットエリア */
.job { position: relative; }
.job .job-hit{
  position: absolute;
  inset: 0;                /* 記事全体を覆う */
  z-index: 3;              /* 上に置いてクリック拾う（視覚は透明） */
  background: transparent;
  text-decoration: none;
  /* アクセシビリティ（キーボードフォーカス見えるように） */
  outline: none;
}
.job .job-hit:focus-visible{
  outline: 3px solid #93c5fd;
  outline-offset: 4px;
  border-radius: 12px;     /* 角丸はお好みで */
}

/* 見た目（丸矢印）はそのまま。ボタンらしくカーソル */
.job .arrow{ cursor: pointer; }

/* クリック時の小さなフィードバック（任意） */
.job:active { transform: translateY(0.5px); }


/* Voices（フルブリード維持、余白調整） */
.slider {
  width: 100vw;
  margin-left: calc(50% - 50vw);
  margin-right: calc(50% - 50vw);
  padding: 0 72px; /* 矢印下に画像が被らない余白 */
}
.track { gap: 18px; }
.voice { min-width: 82vw; max-width: 82vw; flex-basis: 82vw; }
.voice .thumb { height: 48vw; }
.slider .btn { width: 56px; height: 56px; font-size: 0; }
.slider .btn[data-prev] { left: 16px; }
.slider .btn[data-next] { right: 16px; }

/* CTA */
.jobs-cta { padding: 80px 0 100px; }
.job-cta-grid { grid-template-columns: 1fr; gap: 16px; }
.job-cta { padding: 20px; }
.job-cta .jp { font-size: 22px; }
.job-cta .en { font-size: 14px; }

/* Footer */
.footer-wrap { padding: 72px 0; }
.footer-top { grid-template-columns: 1fr; gap: 24px;  background-position: bottom center !important; /* 既存の top を上書き */
  background-repeat: no-repeat;
  background-size: cover; }
.footer-logo img { width: 240px; }
.footer-links { width: 100%; }
.footer-links ul { width: 100%; }

/* Closing */
.closing .img { height: 50vh; border-radius: 0;}
/* ===== Closing（SP）：キャプションを幅100vw＆一行表示 ===== */
.closing .caption{
  top: 8vh;                 /* 最上部から30pxに固定 */
  left: 50%;
  transform: translateX(-50%);
  width: 100vw;
  max-width: 100vw;
  box-sizing: border-box;
  padding: 0 4vw;
  text-align: center;
  /* もと white-space: nowrap; */
  white-space: wrap;
  font-size: clamp(14px, 5.2vw, 22px);
  line-height: 1.3;
}

/* 文字アニメ用の各文字spanが折り返し要因にならないよう念のため */
.closing .caption .char{
  white-space: inherit;         /* 親の nowrap を継承 */
}



.sec-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 28px;
  margin-bottom: 30px;
		flex-wrap: wrap;

}

.sec-head .desc {
  width: 100%;
  text-align: left;
  font-size: 16px;
  line-height: 1.8;
	margin-top: 0;
}


.section-title {
  font-size: 36px;
  font-weight: 800;
  letter-spacing: .1em;
  color: var(--c-section-title);
  line-height: 1.4;
	margin: 10px 0 0 0;
}

/* ヘッダーを固定表示に */
header{
  position: fixed !important;
  top: 0; left: 0; right: 0;
  z-index: 120; /* nav#globalNav(100)より前面 */
  background: rgba(255,255,255,.96);
  backdrop-filter: saturate(160%) blur(10px);
  border-bottom: 1px solid #eef2f7;
}

/* コンテンツの潜り込み防止（安全領域も考慮） */
body{
  padding-top: calc(var(--sp-header-h) + env(safe-area-inset-top, 0px));
}

/* ヘッダー内レイアウトを高さに合わせる */
.header-wrap{
  height: calc(var(--sp-header-h) + env(safe-area-inset-top, 0px));
  position: relative;
  align-items: center;
}

/* ロゴを見やすく（高さ基準で拡大） */
.logo { height: var(--sp-header-h); display: flex; align-items: center; }
.logo img{
  height: 50px;          /* ご希望の 50px に固定 */
  width: auto !important;
  display: block;
}

/* ===== SP固定ボタン（募集要項 & pagetop） ===== */
@media (max-width: 767.98px){
  /* コンテンツが隠れないように下に余白（固定バーの高さ相当） */

  .sp-fab-wrap{
    position: fixed;
    left: 0; right: 0; bottom: 0;
    height: auto;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    padding: 12px 16px calc(12px + env(safe-area-inset-bottom)) 16px;

    z-index: 95; /* nav#globalNav=100 より下、header=120 より下だが最前面帯としては十分 */
  }

  /* navオーバーレイ表示中は非表示（誤タップ防止） */
  body.nav-open .sp-fab-wrap,
  body.nav-closing .sp-fab-wrap{
    opacity: 0; pointer-events: none;
    transition: opacity .2s ease;
  }

  /* 募集要項（ヘッダーの .nav-cta と同デザイン） */
  .sp-fab-apply{
    display: inline-block;
    min-width: 14em;
    padding: 14px 42px;
    background: linear-gradient(320deg, var(--c-primary) 20%, var(--c-primary-2));
    color: #fff;
    font-weight: 800;
    text-align: center;
    border: none;
  border-radius: 3px;
    box-shadow: 0 10px 22px rgba(12,121,214,.35);
    text-decoration: none;
    white-space: nowrap;
		font-size: 14px;
  }
  .sp-fab-apply:nth-child(2){
    background: linear-gradient(320deg, #783539 20%, #b65157);
  }
  .sp-fab-apply:active{ opacity: .9; }

.sp-fab-top {
  position: absolute;
  right: 16px;
  bottom: calc(16px + env(safe-area-inset-bottom));
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: #ffffff;
  box-shadow: 0 8px 18px rgba(0,0,0,.18);
  border: none;
  padding: 0;
  display: grid;
  place-items: center;
  cursor: pointer;
}
.sp-fab-top:active { opacity: .9; }

}


/* ===== Facts（SP：1列表示に変更）===== */
@media (max-width: 767.98px) {
  .fact-grid {
    display: grid;
    grid-template-columns: 1fr; /* ← 1列固定 */
    row-gap: 18px;              /* 各カード間の余白 */
  }

  .fact {
    border-left: none !important;
    border-right: none !important;
    border-top: 1px solid #d7e3f1;
    border-bottom: 1px solid #d7e3f1;
    padding: 18px 12px;
  }

/* 各項目の見出しとアイコン（上段）との間隔を確保 */
.fact .head{
  display: block;
  text-align: center;
  margin: 0 auto;
  /* ↓ 追加：下のアイコンとの距離 */
  margin-bottom: clamp(10px, 3.6vw, 18px);
  font-size: 18px;
  padding: 12px 22px;
}


  .fact .body {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
		margin-top: 0;
  }

  .fact .desc {
    font-size: 14px;
    line-height: 1.8;
    text-align: left; /* ← テキストは左寄せのままでも自然 */
    width: 100%;
    margin-top: 10px;
  }
}

