@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: 10px;
  text-align: center;
}

/* テキストのみ（罫線/影なし、PC同様カラー）※募集要項以外 */
/* 1) 通常リンク（nav-cta以外）をセンタリング */
nav#globalNav a:not(.nav-cta) {
  display: block;
  width: 100%;
  padding: 7px 0;
  background: none !important;
  border: 0 !important;
  box-shadow: none !important;
  border-radius: 0 !important;
  color: #31475d !important;
  font-weight: 500;
  text-align: center;           /* ← 追加：中央揃え */
  font-size: 15px;
}

/* 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: 76px;
    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;
    padding: 14px 42px;
    background: linear-gradient(320deg, var(--c-primary) 20%, var(--c-primary-2));
    color: #fff;
    font-weight: 800;
    border: none;
    border-radius: 3px;
    box-shadow: 0 10px 22px rgba(12,121,214,.35);
    text-decoration: none;
    white-space: nowrap;
    font-size: 18px;
  }
  .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;
  }
}

/*2026-02-09*/

/* ===== RECRUIT フロートバナー（SP：下部中央固定） ===== */
.recruit-float{
  right: auto;
  left: 50%;
  transform: translateX(-50%);
  bottom: calc(16px + env(safe-area-inset-bottom));
  width: min(92vw, 360px);
  height: 120px;
  border-radius: 16px;
}

/* SPではホバーの浮きは不要 */
.recruit-float:hover{ transform: translateX(-50%); }

/* ===== RECRUIT フロートバナー：SPは常に最前面 ===== */
@media (max-width: 767.98px){
  .recruit-float{
    position: fixed !important;
    z-index: 99999 !important;         /* これでほぼ勝つ */
    isolation: isolate;                 /* スタッキングコンテキストの干渉を軽減 */
    transform: translate3d(-50%,0,0) !important; /* iOS対策（GPU合成で前面維持しやすい） */
    pointer-events: auto;
  }
}

/* ===== Corporate News (SP) ===== */
@media (max-width: 767.98px){
  .corp-news{
    padding: 72px 0 80px;
  }

  .corp-news__head{
    margin-bottom: 34px;
  }

  .corp-news__ttl{
    font-size: 30px;
  }

  .corp-news__list{
    border-top: 1px solid #e9e9e9;
  }

  .corp-news__item{
    grid-template-columns: 1fr;
    row-gap: 10px;
    padding: 18px 6px;
  }

  .corp-news__date{
    font-size: 13px;
  }

  .corp-news__tag{
    height: 32px;
    padding: 0 14px;
    font-size: 13px;
  }

  .corp-news__title{
    font-size: 16px;
  }

  .corp-news__more{
    margin-top: 28px;
  }
}

/* corp-vision cards：SPは必ず1列（3行） */
@media (max-width: 767.98px){
  .corp-vision__cards{
    grid-template-columns: 1fr !important;
  }
}

/* ===== オーダーメイドの医療（SP） ===== */
@media (max-width: 767.98px){
  .corp-pm{
    padding: 76px 0 72px;
  }

  .corp-pm__ttl{
    font-size: 30px;
    margin-bottom: 26px;
  }

  .corp-pm__lead,
  .corp-pm__desc{
    font-size: 14px;
    line-height: 2.1;
  }

  .corp-pm__media{
    width: 100%;
    margin-top: 18px; /* SPは重なりすぎると読みにくいので解除寄り */
    transition-delay: .45s;
  }

  .corp-pm__more {
    margin: 30px 0 0;
  }

}

/* ===== 数字でわかる 修志会の魅力（SP） ===== */
@media (max-width: 767.98px){
  .corp-stats{
    padding: 76px 0 74px;
  }

  .corp-stats__ttl{
    font-size: 30px;
  }

  .corp-stats__grid{
    grid-template-columns: 1fr; /* 4行1列 */
    gap: 18px;
  }

  .stat-card{
    padding: 32px 28px 30px;
  }

  .stat-card__value{
    grid-template-columns: 56px 1fr;
    gap: 12px;
  }

  .stat-card__icon{
    width: 56px;
    height: 56px;
  }

  .stat-card__num .value{
    font-size: 52px;
  }

  .corp-stats__note{
    border-radius: 24px; /* SPは楕円だと窮屈なので角丸に */
    padding: 30px 30px;
  }
}

@media (max-width: 767.98px){
  .stat-card__value{
    display: flex;
    justify-content: center;
    gap: 30px;
  }
}

/* ===== 診療案内（SP） ===== */
@media (max-width: 767.98px){
  .corp-services{
    padding: 60px 0;
  }

  /* 縦書き見出し → 通常の横書き見出しに */
  .corp-services__sidehead{
    position: static;
    margin: 0 0 40px;
    text-align: center;
  }
  .corp-services__ttl{
    writing-mode: horizontal-tb;
    text-orientation: initial;
    font-size: 30px;
  }

  .corp-services__panel{
    padding: 30px;
  }

  .corp-services__intro{
    text-align: left;
    font-size: 14px;
    line-height: 2.0;
    margin-bottom: 38px;
  }

  /* 7行1列 */
  .corp-services__grid{
    grid-template-columns: 1fr;
    row-gap: 18px;
    column-gap: 0;
    padding: 0;
  }

  /* SPでは「福祉用具」だけ特別扱いしない（他カードと同仕様に揃える） */
  @media (max-width: 767.98px){
    .svc-card--wide{
      grid-column: auto;
      max-width: none;
      width: auto;
      justify-self: auto;
    }
  }

  .svc-card__label{
    padding: 24px 34px 24px 34px;
    font-size: 16px;
  }
}

@media (max-width: 767.98px){
  .pc-only{ display:none !important; }
  .sp-only{ display:block !important; }

  .corp-fac{
    padding: 76px 0 74px;
  }
  .corp-fac__ttl{ font-size: 30px; }

  .corp-fac__mapsp{
    width: 100%;
    height: auto;
    display: block;
    margin: 14px auto 100px;
  }

  /* エリア別リスト（1px枠＋角丸） */
  .corp-fac__listbox{
    margin-top: 18px;
    margin-bottom: 60px;
    border: 1px solid rgba(37,42,47,.18);
    border-radius: 18px;
    background: rgba(255,255,255,.55);
    padding: 14px 14px 6px;
  }

  .area{ margin: 0 0 14px; }
  .area__ttl{
    margin: 0 0 8px;
    font-weight: 900;
    letter-spacing: .06em;
    color: #252a2f;
    font-size: 13px;
  }
  .area__list{
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    gap: 8px;
  }
  .area__list a{
    display: block;
    padding: 10px 12px;
    border: 1px solid rgba(0,0,0,.08);
    border-radius: 12px;
    background: rgba(255,255,255,.70);
    text-decoration: none;
    color: #252a2f;
    font-weight: 700;
    font-size: 13px;
  }

  .corp-fac__cta{
    grid-template-columns: 1fr;
    gap: 30px;
  }
  .cta-card{ height: 200px; }
  .cta-card__jp{ font-size: 24px; }
}

@media (max-width: 767.98px){
  .footer-bnr{
    padding: 60px 0;
  }

  .footer-bnr__grid{
    grid-template-columns: 1fr;
    gap: 30px;
  }

  .footer-bnr__card{
    height: 200px;
    border-radius: 18px;
  }
.footer-bnr__card{
  width: 100%;
  max-width: 100%;
}
  .footer-bnr__label{
    width: 190px;
    margin: 0 0 14px 14px;
    padding: 14px 18px;
  }

  .footer-bnr__en{ font-size: 24px; }
  .footer-bnr__jp{ font-size: 13px; }

  .corp-footer{
    padding: 60px 0;
    background: linear-gradient(
    180deg, #fbfafa 90%, #fff);
  }

  .corp-footer__top{
    grid-template-columns: 1fr;
    gap: 18px;
  }

  .corp-footer__logo img{ width: 260px; }

  .corp-footer__nav ul{
    grid-template-columns: 1fr;
    row-gap: 2px;
  }

  .corp-footer__bottom{
    flex-direction: column;
    align-items: flex-start;
    margin-top: 22px;
    gap: 12px;
  }

  .corp-footer__copy{
    white-space: normal;
    text-align: center;
    width: 100%;
  }

  .corp-footer__links li + li::before{
    margin: 0 10px;
  }

  .corp-footer__nav a {
    font-size: 14px;

  }

  /* ===== Hamburger button（SP）===== */
  .hamburger{
    background: #7c2f36 !important; /* ロゴと同色 */
    border: none !important;
  }

  .hamburger span{
    background: #fff !important;
  }

  /* ===== FV（SP）テキスト：サイズ統一＋折返し抑制 ===== */
  @media (max-width: 767.98px){
    .hero--corp .hero-copy{
      padding-left: 16px; /* SPは少し詰める */
      padding-right: 16px;
    }

    .hero--corp .copy-wrap{
      width: 100%;
      max-width: none;
    }

    /* 3行とも同じ文字サイズに統一（vwで可変＋上限下限） */
    .hero--corp .hero-line,
    .hero--corp .hero-line--sm,
    .hero--corp .hero-line--lg{
      font-size: clamp(16px, 4.6vw, 20px) !important;
      line-height: 1.6;
      white-space: nowrap;          /* ★折り返しを原則禁止 */
      padding: 10px 14px;
    }

    /* 画面が極端に狭い端末で万一溢れる場合の保険（任意） */
    .hero--corp .hero-lines{
      overflow: hidden;
    }
  }

  /* ===== corp-vision floats（SP：小さく＆左右端へ寄せる） ===== */
  @media (max-width: 767.98px){
    /* 全体的に少し小さく */
    .corp-vision__float{
      transform: scale(.85);
      transform-origin: center;
    }

    /* 端に寄せる（left/right をさらに縮める） */
    .corp-vision__float--lt{ left: -6px; top: 92px; }
    .corp-vision__float--lb{ left:  2px; top: 360px; }
    .corp-vision__float--rt{ right: -6px; top: 78px; }
    .corp-vision__float--rb{ right:  0px; top: 420px; }

    /* さらに小さくしたい場合（任意）：個別サイズも詰める */
    .corp-vision__float--lt{ width: 74px; height: 74px; }
    .corp-vision__float--rt{ width: 82px; height: 82px; }
    .corp-vision__float--lb{ width: 40px; height: 40px; }
    .corp-vision__float--rb{ width: 48px; height: 48px; }
  }

  /* ===== corp-vision text（SP：サイズ統一＋折り返し防止） ===== */
  @media (max-width: 767.98px){
    .corp-vision__lead,
    .corp-vision__quote{
      font-size: clamp(14px, 4vw, 16px) !important; /* 3行すべて同じ */
      line-height: 2.0;
      letter-spacing: .06em;
      white-space: nowrap; /* ★折り返ししない */
    }

    /* 余白も揃えて見た目を整える（任意） */
    .corp-vision__lead{ margin: 0; }
    .corp-vision__quote{ margin: 12px 0; }
  }

  .corp-vision{
    padding: 20px 0;
  }

  @media (max-width: 767.98px){
    .corp-vision__float--rb{
      top: 340px !important; /* lb(360px)と同等〜少し上 */
    }
  }

  /* ===== オーダーメイドの医療（SP）：ボタンと画像を少し重ねる ===== */
  @media (max-width: 767.98px){
    .corp-pm__head{
      position: relative;
      z-index: 2; /* ボタンを前面に */
    }

    .corp-pm__more{
      position: relative;
      z-index: 3;            /* 画像より手前 */
      margin-top: 18px;
      margin-bottom: -18px;  /* ★ここで画像に重ねる */
    }

    .corp-pm__media{
      position: relative;
      z-index: 1;
      margin-top: 0 !important; /* 以前のSP指定を打ち消す */
    }
  }

  .stat-card__desc {
    text-align: left;
    font-size: 14px;
  }

  .stat-card__value {
    margin: 30px 0 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 14px;
  }

  .corp-stats__note-ttl {
    font-size: 16px;
  }
  .corp-stats__note-txt {
    color: #252a2f;
    font-size: 14px;
    text-align: left;
  }

  /* ===== RECRUITフロート（SP調整）＋最下部の重なり防止 ===== */
  @media (max-width: 767.98px){

    /* 1) バナーのサイズ調整（高さを低く） */
    .recruit-float{
      height: 130px !important;  /* 低くする（必要なら120〜140で調整） */
      border-radius: 16px;
    }

    /* 2) 背景画像：顔が見切れないよう上寄せ */
    .recruit-float::before{
      background-position: center top !important; /* ★上起点 */
    }

    /* 3) RECRUIT文字を小さく */
    .recruit-float__label{
      font-size: 22px !important; /* 26→22目安 */
    }

    /* ついでに帯を少しコンパクトにしたい場合（任意） */
    .recruit-float__label::before,
    .recruit-float__label::after{
      height: 96px !important;   /* 元110px想定なら少し縮める */
    }

    /* 4) フッターと重ならないよう、常に下余白を確保 */
    body{
      padding-bottom: calc(130px + 16px + env(safe-area-inset-bottom)) !important;
      /* 130px = バナー高さ, 16px = 下の余白 */
    }
  }

  /* ===== Footer links（SP：4行で縦並び） ===== */
  @media (max-width: 767.98px){
    .corp-footer__links{
      flex-direction: column;
      align-items: flex-start;
      margin-bottom: 20px;
    }

    /* 区切り線「|」を消す */
    .corp-footer__links li + li::before{
      content: none !important;
      margin: 0 !important;
    }

    .corp-footer__links li{
      width: 100%;
    }

    .corp-footer__links a{
      display: block;
      padding: 8px 0; /* 行間 */
      font-size: 13px;
    }
  }

  /* ===== Footer links（SP：hover下線なし） ===== */
  @media (max-width: 767.98px){
    .corp-footer a:hover{
      text-decoration: none !important;
    }
  }

  nav a::after {
    display: none;
  }

}

@media (max-width: 767.98px){
  .hamburger{ position: fixed; } /* 既存のfixed運用を維持しつつ */

  .hamburger span{
    left: 50% !important;
    top: 50% !important;
  }
}

/* ===== Hamburger：OPEN時の×を中央に揃える ===== */
body.nav-open .hamburger span:nth-child(1),
body.nav-open .hamburger span:nth-child(3){
  top: 50% !important;
  left: 50% !important;
}

/* まず中央に戻してから回転 */
body.nav-open .hamburger span:nth-child(1){
  transform: translate(-50%, -50%) rotate(45deg) !important;
}
body.nav-open .hamburger span:nth-child(2){
  opacity: 0 !important;
}
body.nav-open .hamburger span:nth-child(3){
  transform: translate(-50%, -50%) rotate(-45deg) !important;
}

/* RECRUITフロート：全体を約2/3に縮小（SP） */
@media (max-width: 767.98px){
  .recruit-float{
    transform: translate3d(-50%,0,0) scale(0.67) !important;
    transform-origin: center bottom;
  }
}

@media (max-width: 767.98px){
  body{
    padding-bottom: calc(90px + 16px + env(safe-area-inset-bottom)) !important; /* 130px→約90px */
  }
}

/* =========================================================
Thoughts page (SP) : 修志会の想い
========================================================= */
@media (max-width: 767.98px){

  /* KV */
  .k-mainvisual--thoughts img{
    max-height: 160px;
    object-fit: cover;
  }

  .thought-sec__ttl{ font-size: 30px; }

  /* 導入 */
  .thought-hero{
    padding: 48px 0 54px;
  }
  .thought-hero__inner{
    padding: 30px 12px 26px;
  }
  .thought-hero__ttl{
    font-size: 30px;
    margin-bottom: 16px;
  }
  .thought-hero__lead{
    font-size: 14px;
    line-height: 2.1;
  }

  /* 装飾スクエア：SPは控えめに */
  .thought-hero__sq{ transform: scale(.80); transform-origin: center; }
  .thought-hero__sq--lt{ left: -6px; top: 40px; width: 74px; height: 74px; }
  .thought-hero__sq--rt{ right: -6px; top: 44px; width: 82px; height: 82px; }
  .thought-hero__sq--lm{ left: 10px; top: 168px; width: 38px; height: 38px; }
  .thought-hero__sq--rm{ right: 12px; top: 168px; width: 48px; height: 48px; }
  .thought-hero__sq--lb{ left: 6px; bottom: 22px; width: 44px; height: 44px; }
  .thought-hero__sq--rb{ right: 6px; bottom: 22px; width: 44px; height: 44px; }

  /* 3タイル */
  .thought-tiles{
    width: 100%;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
    margin-top: 26px;
  }
  .thought-tile__img{ height: 92px; }
  .thought-tile__cap{ height: 38px; font-size: 12px; }

  /* 経営理念 */
  .thought-philo{
    padding: 60px 0 66px;
  }
  .thought-philo__grid{
    grid-template-columns: 1fr;
    gap: 18px;
    margin-top: 26px;
  }
  .thought-philo__photo img{ height: 200px; }
  .thought-philo__catch{
    font-size: 20px;
    line-height: 1.9;
  }
  .thought-philo__body{
    font-size: 14px;
    line-height: 1.9;
  }
  .thought-philo__more{ justify-content: center; }

  /* 3ポイント */
  .thought-points{
    padding: 60px 0 66px;
  }
  .thought-points__list{
    margin-top: 26px;
    gap: 18px;
  }
  .thought-point{
    gap: 12px;
  }
  .thought-point--r,
  .thought-point--l{
    grid-template-columns: 1fr;
  }
  .thought-point__num{
    position: static;
    font-size: 36px;
    margin: 0 0 -6px;
  }
  .thought-point__img img{ height: 190px; }
  .thought-point__box{ padding: 18px 18px; }

  /* 6タイル */
  .thought-grid{
    padding: 60px 0 66px;
  }
  .thought-grid__tiles{
    margin-top: 26px;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
  }
  .tg-tile{ height: 140px; }
  .tg-tile--text p{ font-size: 13px; line-height: 1.7; }

  /* ご挨拶 */
  .thought-greet{
    padding: 60px 0 66px;
  }
  .thought-greet__hero{
    margin-top: 26px;
  }
  .thought-greet__hero img{
    height: 220px;
  }
  .thought-greet__quote{
    margin-top: -16px;
    padding: 14px 14px;
  }
  .thought-greet__block{
    margin-top: 28px;
    grid-template-columns: 1fr !important;
    gap: 14px;
  }
  .thought-greet__photo img{
    height: 210px;
  }

  /* 法人概要 */
  .thought-company{
    padding: 60px 0 66px;
  }
  .thought-company__grid{
    margin-top: 26px;
    grid-template-columns: 1fr;
    gap: 14px;
  }
  .thought-company__photo img{ height: 220px; }
  .thought-company__table .row{
    grid-template-columns: 92px 1fr;
    gap: 12px;
    padding: 10px 6px;
  }
}

/* =========================================================
微調整：修志会の想い（SP上書き）
========================================================= */
@media (max-width: 767.98px){

  #philosophy, #greeting, #company{
    scroll-margin-top: 88px;
  }

  .thought-sec__en{
    font-size: 10px;
    letter-spacing: .26em;
    margin-bottom: 8px;
  }
  .thought-sec__ttl{
    font-size: 28px;
    letter-spacing: .10em;
    line-height: 1.2;
  }

  /* 導入 */
  .thought-hero{
    padding: 44px 0 56px;
  }
  .thought-hero__inner{
    padding: 28px 10px 24px;
  }
  .thought-hero__ttl{
    font-size: 28px;
    letter-spacing: .12em;
    margin-bottom: 14px;
  }
  .thought-hero__lead{
    font-size: 13.5px;
    letter-spacing: .08em;
    line-height: 2.05;
  }

  /* 3タイル：SPでも“正方形＋重ねキャプション” */
  .thought-tiles{
    gap: 10px;
    margin-top: 22px;
  }
  .thought-tile{
    aspect-ratio: 1 / 1;
    border-radius: 10px;
  }
  .thought-tile__cap{
    height: 36px;
    font-size: 12px;
    letter-spacing: .08em;
  }

  /* 経営理念 */
  .thought-philo{
    padding: 56px 0 66px;
  }
  .thought-philo__grid{
    margin-top: 24px;
    gap: 16px;
  }
  .thought-philo__catch{
    font-size: 19px;
    letter-spacing: .06em;
    line-height: 1.85;
    margin-bottom: 14px;
  }
  .thought-philo__body{
    font-size: 13.5px;
    letter-spacing: .07em;
    line-height: 1.95;
  }

  /* 01/02/03：SPの“間”と高さ */
  .thought-points{
    padding: 56px 0 66px;
  }
  .thought-points__list{
    margin-top: 24px;
    gap: 18px;
  }
  .thought-point__num{
    font-size: 34px;
    letter-spacing: .10em;
    margin: 0 0 -4px;
  }
  .thought-point__box{
    padding: 16px 16px;
    border-radius: 10px;
  }
  .thought-point__ttl{
    font-size: 14px;
    letter-spacing: .07em;
  }
  .thought-point__desc{
    font-size: 13px;
    letter-spacing: .07em;
    line-height: 1.95;
  }
  .thought-point__img img{
    height: 200px;
  }

  /* 6タイル */
  .thought-grid{
    padding: 56px 0 66px;
  }
  .thought-grid__tiles{
    margin-top: 24px;
    gap: 10px;
  }
  .tg-tile{
    height: 146px;
    border-radius: 10px;
  }
  .tg-tile--text p{
    font-size: 12.8px;
    letter-spacing: .07em;
    line-height: 1.7;
  }

  /* ご挨拶 */
  .thought-greet{
    padding: 56px 0 66px;
  }
  .thought-greet__hero{
    margin-top: 24px;
  }
  .thought-greet__hero img{
    height: 230px;
  }
  .thought-greet__quote{
    margin-top: -14px;
    padding: 12px 12px;
  }
  .thought-greet__quote p{
    font-size: 12.8px;
    letter-spacing: .07em;
    line-height: 1.85;
  }
  .thought-greet__block{
    margin-top: 26px;
    gap: 14px;
  }
  .thought-greet__body{
    font-size: 13px;
    letter-spacing: .07em;
    line-height: 1.95;
  }
  .thought-greet__photo img{
    height: 220px;
  }

  /* 法人概要 */
  .thought-company{
    padding: 56px 0 66px;
  }
  .thought-company__grid{
    margin-top: 24px;
    gap: 14px;
  }
  .thought-company__photo img{
    height: 230px;
  }
  .thought-company__table .row{
    padding: 10px 6px;
  }
  .thought-company__table dt,
  .thought-company__table dd{
    letter-spacing: .07em;
    line-height: 1.9;
  }
}
@media (max-width: 767.98px){
  .thought-hero .corp-vision__cards{
    margin: 28px auto 0;
    gap: 12px;
  }
  .corp-card__btn.corp-card__btn--down{
    width: 52px;
    height: 52px;
    margin-top: 14px;
  }
  .corp-card__btn.corp-card__btn--down::before{
    top: 14px;
    height: 16px;
  }
  .corp-card__btn.corp-card__btn--down::after{
    top: 26px;
    width: 9px;
    height: 9px;
  }
}

@media (max-width: 767.98px){
  .thought-philo__grid{
    grid-template-columns: 1fr;
    gap: 18px;
  }
  .thought-philo__left{
    gap: 14px;
  }
  .thought-philo__catch{
    font-size: 22px;
    line-height: 1.9;
    letter-spacing: .06em;
  }
  .thought-philo__photo img{
    height: 260px;
  }
  .thought-philo__photo::after{
    height: 52px;
  }
  .thought-philo__body{
    font-size: 13.5px;
    line-height: 2.0;
  }
  .thought-philo__body p{
    margin-bottom: 16px;
  }
}

@media (max-width: 767.98px){
  .promise{
    padding: 64px 0 70px;
  }
  .promise__list{
    margin-top: 34px;
    gap: 42px;
  }

  .promise__item{
    grid-template-columns: 1fr !important;
  }

  .promise__img{
    width: 100%;
    justify-self: stretch !important;
    z-index: 2;
  }
  .promise__img img{
    height: 210px;
  }

  .promise__box{
    width: 100%;
    padding: 18px 18px 18px;
    margin: -22px 0 0 0 !important; /* 画像に軽く重ねる */
    z-index: 3;
  }

  .promise__num{
    left: 14px;
    top: -26px;
    font-size: 40px;
  }
  .promise__num--right{
    left: auto;
    right: 14px;
  }

  .promise__sq{
    width: 56px;
    height: 56px;
  }
  .promise__sq--l{ left: 10px; top: -14px; }
  .promise__sq--r{ right: 10px; bottom: -14px; }
}

@media (max-width: 767.98px){
  .policy{
    padding: 62px 0 70px;
  }
  .policy__ttl{
    font-size: 20px;
  }
  .policy__grid{
    margin-top: 34px;
    gap: 16px;
  }
  .policy__pair{
    grid-template-columns: 1fr;
    gap: 16px;
  }
  .policy__pair--single{
    grid-template-columns: 1fr;
  }
  .policy__pair--single .policy__card{
    grid-column: auto;
  }
  .policy__card{
    min-height: 180px;
  }
  .policy__card--text,
  .policy__split-text{
    font-size: 16px;
    line-height: 2.0;
    padding: 20px 16px;
  }
  .policy__split-img img{
    min-height: 180px;
  }
}

@media (max-width: 767.98px){
  .greet{
    padding: 62px 0 72px;
  }
  .greet-head__ttl{
    font-size: 28px;
  }
  .greet-hero{
    margin-top: 26px;
  }
  .greet-hero img{
    height: 230px;
  }
  .greet-quote{
    margin-top: -18px;
    padding: 14px 14px;
  }
  .greet-quote p{
    font-size: 12.5px;
    line-height: 1.9;
    text-align: left;
  }

  .greet-person{
    margin-top: 46px;
  }
  .greet-person__grid{
    grid-template-columns: 1fr !important;
    gap: 16px;
  }
  .greet-person__photo img{
    height: 220px;
  }
  .greet-person__ttl{
    font-size: 16px;
  }
  .greet-person__h{
    margin-top: 18px;
  }
}

@media (max-width: 767.98px){
  .greet-person__title{
    padding-bottom: 30px;
    margin-bottom: 18px;
  }
  .greet-person__ttl{
    font-size: 16px;
    line-height: 1.55;
  }
  .greet-person__line{
    bottom: 10px;
    background: linear-gradient(
    to right,
    #7b3a3a 0%,
    #7b3a3a 58%,
    #c7cdd6 58%,
    #c7cdd6 100%
    );
  }
  .greet-person__name{
    bottom: 18px;
    font-size: 12px;
  }
}
