:root {
    /* カラー */
    --color-primary: #003894;           /* メインの紺（見出し、ボタン、リンク） */
    --color-text: #231815;              /* 本文テキスト */
    --color-white: #ffffff;
    --color-accent-green: #6BBC6E;      /* Q&A Interview用 */
  
    /* グラデーション */
    --gradient-header: linear-gradient(90deg, #013887 0%, #007CC8 100%);
    --gradient-btn: linear-gradient(90deg, #013887 1.37%, #003B8A 13.52%, #004796 25.61%, #005CA9 37.76%, #0077C4 49.8%, #007CC8 51.35%);
  
    /* フォント */
    --font-jp: "Noto Sans JP", sans-serif;
    --font-heading: "Barlow Semi Condensed", sans-serif;
    --font-zen: "Zen Kaku Gothic New", sans-serif;
  }

  body {
    font-family: var(--font-jp);
    color: var(--color-text);
    background: var(--color-white);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
  }

  /* 表示切り替え用ユーティリティ */
@media (max-width: 767px) {
	.pc-only { display: none !important; }
}
@media (min-width: 768px) {
	.sp-only { display: none !important; }
}

/* ============================
   .main 共通下余白
   (フッター前のデフォルトスペース、ページ側で override 可)
============================ */
.main {
  padding-bottom: 120px;
}
@media (max-width: 767px) {
  .main {
    padding-bottom: 60px;
  }
}

/* TOP: INFORMATIONセクションがフッターに接続 */
/* 求める人財像: .requirements-ideal 側で 362px 管理済み */
/* キャリア採用: 最下部の .c-magazine が padding-bottom 136px を持つ */
body.home .main,
body.page-template-page-requirements .main,
body.page-template-page-career .main,
.main:has(> .requirements) {
  padding-bottom: 0;
}

/* 新卒募集要項ページ: デザイン指定 147px */
body.page-template-page-bosyu .main {
  padding-bottom: 147px;
}

/* プライバシーポリシーページ: デザイン指定 PC 176px / SP 142px */
body.page-template-page-policy .main {
  padding-bottom: 176px;
}
@media (max-width: 767px) {
  body.page-template-page-policy .main {
    padding-bottom: 142px;
  }
}

/* 新入社員の声 一覧: デザイン指定 146px */
body.post-type-archive-newemployee .main {
  padding-bottom: 146px;
}
@media (max-width: 767px) {
  body.post-type-archive-newemployee .main {
    padding-bottom: 60px;
  }
}

/* 採用FAQページ: デザイン指定 264px */
body.page-template-page-faq .main {
  padding-bottom: 264px;
}

/* キャリア採用 サンクスページ: Figma ボタン下端 → フッター 155px */
body.page-template-page-career-thanks .main {
  padding-bottom: 155px;
}
@media (max-width: 767px) {
  body.page-template-page-career-thanks .main {
    padding-bottom: 80px;
  }
}

/* TOP の「Work and passion」枠に iframe で出す時 (?frame=1)。
   ヘッダー・フッターが無いぶん、ページ下端の余白も要らない */
body.is-frame .main {
  padding-bottom: 0;
}

/* ============================
   HEADER
============================ */
.header {
  background: var(--gradient-header);
  position: relative;
  z-index: 1000;
  width: 100%;
}

/* スクロールで固定表示 (JSでクラス付与、300px超え時) */
.header.is-fixed {
  position: fixed;
  top: 0;
  left: 0;
  animation: kry-header-slide-down 0.5s ease-in-out;
}

@keyframes kry-header-slide-down {
  from {
    transform: translateY(-100%);
  }
  to {
    transform: translateY(0);
  }
}

.header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 34px;
}

@media (max-width: 767px) {
  .header__inner {
    padding: 12px 20px;
  }
}

.header__logo {
  display: block;
  width: 336px;
}
@media (max-width: 767px) {
  .header__logo {
    width: 131px;                 /* SP は「KURIYAMA」のみのロゴ (header.php で出し分け) */
  }
}

.header__nav {
  display: flex;
  align-items: center;
  gap: 36px;
}

.header__btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 2px 15px 2px 23px;
  border:2px solid var(--color-white);
  color: var(--color-white);
  border-radius: 999px;
  font-size: 14px;
  letter-spacing: calc(2.8 / 14 * 1em);
  transition: opacity 0.3s;
}
/* SPではヘッダー内のボタンを非表示にし、
   ドロワー内に移動している (2026/07/21 クライアント確認済み)
   セレクタを .header 配下に限定することで、
   drawer 内に置いた .header__btn.sp-only は SP で表示される */
@media (max-width: 767px) {
  .header .header__btn {
    display: none;
  }
}

.header__btn img {
    width: 8px;
}

.header__btn:hover {
  opacity: 0.8;
}

.header__hamburger {
  width: 40px;
  height: 30px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 6px;
}

.header__hamburger span {
  display: block;
  width: 30px;
  height: 2px;
  background: var(--color-white);
  transition: 0.3s;
}

/* ============================
   DRAWER MENU
============================ */
.drawer {
  position: fixed;
  top: 0;
  right: 0;                     /* 位置は固定。開閉は transform で制御 */
  width: 400px;
  max-width: 85vw;              /* 狭い端末では viewport の 85% まで縮む
                                    (% ではなく vw を使う: 横スクロール環境では
                                     % が containing block を viewport より広く見て
                                     縮小が効かないケースがあるため) */
  height: 100vh;
  background: rgba(1, 120, 196, 0.95);
  z-index: 1100;
  overflow-y: auto;
  --drawer-close-gap: 30px;     /* nav (右端から56px) と 閉じるボタン (26px) の位置差 */
  transform: translateX(100%);  /* 閉じている状態: 自分の幅ぶん右に逃げる */
  transition: transform 0.4s ease;
}

.drawer.is-open {
  transform: translateX(0);
}

/* SP: 画面幅いっぱい。左右余白は Figma (SP_MENU) 準拠
   メニュー 左55px / 矢印 右36px / 閉じる × は右15px・上24px */
@media (max-width: 767px) {
  .drawer {
    width: 100%;
    max-width: none;
    --drawer-close-gap: 32px;     /* 閉じる × を右15px に置いたうえで、メニューは右36px */
  }
}

.drawer__inner {
  /* 右 26px = 閉じるボタンの位置。nav・ボタンは --drawer-close-gap ぶん内側へ戻して右端から 56px
     左の clamp: 狭い端末では 24px, 400px 幅の drawer で最大 55px まで拡大
     320px viewport (drawer 272px) → 内側 padding 24px = 中身幅 224px 確保 */
  padding: 24px 26px 24px clamp(24px, 8vw, 55px);
}
@media (max-width: 767px) {
  .drawer__inner {
    padding: 13px 4px 24px 55px;  /* × が上24px・右15px に来る位置 (ボタン40px の内側で×は約18px) */
  }
}

.drawer__close {
  display: block;
  margin-left: auto;
  width: 40px;
  height: 40px;
  position: relative;
}

.drawer__close span {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 24px;
  height: 2px;
  background: var(--color-white);
}

.drawer__close span:nth-child(1) {
  transform: translate(-50%, -50%) rotate(45deg);
}

.drawer__close span:nth-child(2) {
  transform: translate(-50%, -50%) rotate(-45deg);
}

.drawer__nav {
  margin-top: 40px;
  padding-right: var(--drawer-close-gap);   /* 26 + 30 = 右端から 56px */
}

.drawer__list {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.drawer__link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 15px 0;
  color: var(--color-white);
  font-size: 16px;
  font-weight: 500;
  letter-spacing: calc(0.8 / 16 * 1em);
  transition: opacity 0.3s;
}

.drawer__link  img {
    width: 8px;

}

.drawer__link:hover {
  opacity: 0.7;
}
@media (max-width: 767px) {
  .drawer__link {
    padding: 13.5px 0;            /* 項目間隔 52.5px (Figma) */
    font-size: 14px;              /* Figma SP_MENU: 14px / 行送り 1.8 */
    line-height: 1.8;
  }
}

.drawer__arrow {
  font-size: 12px;
}

/* ドロワー内の「募集要項はこちら」ボタン (SP専用)
   .header__btn を流用しつつ、ドロワー内では block レベルで中央寄せ */
.drawer .header__btn {
  display: flex;                      /* .header__btn の inline-flex を上書き */
  width: fit-content;
  margin: 40px auto 0;                /* メニュー最終項目との間隔 + 水平中央 */
  /* inner の右 padding を閉じるボタン基準 (26px) にしたぶん、nav と同じ領域で中央に見えるよう戻す */
  transform: translateX(calc(var(--drawer-close-gap) / -2));
}

/* オーバーレイ */
.drawer-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100vh;
  background: rgba(0, 0, 0, 0.5);
  z-index: 1050;
  opacity: 0;
  visibility: hidden;
  transition: 0.3s;
}

.drawer-overlay.is-open {
  opacity: 1;
  visibility: visible;
}

/* body スクロール禁止
   overflow:hidden でスクロールバーが消える分、padding-right で補って
   背後コンテンツが右にずれるのを防ぐ (--kry-scrollbar-width は JS で注入) */
body.is-drawer-open {
  overflow: hidden;
  padding-right: var(--kry-scrollbar-width, 0);
}
/* ヘッダーがスクロールで position:fixed になっている場合、body の padding-right が
   届かないため、fixed ヘッダーにも同じ padding-right を適用 */
body.is-drawer-open .header.is-fixed {
  padding-right: var(--kry-scrollbar-width, 0);
}

/* ============================
   FOOTER (全ページ共通)
============================ */
.footer {
  padding: 12px 20px;
  background-color: var(--color-primary);
}
@media (max-width: 767px) {
  .footer {
    padding: 11px 20px 12px;
  }
}

.footer__inner {
  text-align: center;
}

.footer__link {
  display: inline-flex;
  align-items: center;
  color: var(--color-white);
  transition: opacity 0.3s;
}

.footer__link:hover {
  opacity: 0.8;
}

.footer__link-text {
  font-family: var(--font-zen);
  font-size: 14px;
  font-weight: 500;
  line-height: calc(20 / 14);
  letter-spacing: 0;
  text-align: center;
}
@media (max-width: 767px) {
  .footer__link-text {
    line-height: 1.67;
  }
}

.footer__link-icon {
  width: 14px;
  height: 14px;
}

.footer__copyright {
  margin-top: 14px;
  color: var(--color-white);
  font-family: var(--font-zen);
  font-size: 12px;
  font-weight: 500;
  line-height: calc(17 / 12);
  letter-spacing: 0;
  text-align: center;
}
@media (max-width: 767px) {
  .footer__copyright {
    margin-top: 12px;
    font-size: 10px;
    line-height: 1.67;
  }
}

/* ============================
   c-page-title (共通ページ見出し: JP + 区切り線 + EN)
============================ */
.c-page-title {
  text-align: center;
}

.c-page-title__jp {
  color: var(--color-primary);
  font-size: 32px;
  font-weight: 700;
  line-height: normal;
  text-align: center;
}
@media (max-width: 767px) {
  .c-page-title__jp {
    font-size: 16px;
  }
}

.c-page-title__line {
  display: block;
  width: 140px;
  height: 1px;
  margin: 42px auto 0;
  background: var(--color-primary);
}
@media (max-width: 767px) {
  .c-page-title__line {
    width: 90px;
    margin-top: 20px;
  }
}

.c-page-title__en {
  margin-top: 20px;
  color: var(--color-primary);
  font-family: var(--font-heading);
  font-size: 95px;
  font-weight: 500;
  line-height: normal;
  text-align: center;
}
@media (max-width: 767px) {
  .c-page-title__en {
    margin-top: 10px;
    font-size: 32px;
  }
}
/* 英字タイトル内の改行は狭い幅でのみ有効
   (新卒募集要項の Application / Requirements。1024px 未満は 95px だと1行に収まらない) */
@media (min-width: 1024px) {
  .c-page-title__en br {
    display: none;
  }
}

/* ============================
   c-breadcrumb (共通パンくずリスト)
   ※通常フロー配置。設置場所の要素の上端から 22px 下、左端から 60px の位置
============================ */
.c-breadcrumb {
  padding: 22px 20px 0 60px;
}
@media (max-width: 767px) {
  .c-breadcrumb {
    padding: 15px 30px 0;
  }
}

.c-breadcrumb__list {
  display: flex;
  align-items: center;
  gap: 0;
  padding: 0;
  list-style: none;
}
@media (max-width: 767px) {
  .c-breadcrumb__list {
    flex-wrap: wrap;
  }
}

.c-breadcrumb__item {
  display: flex;
  align-items: center;
}

.c-breadcrumb__item:not(:last-child)::after {
  content: ">";
  margin: 0 12px;
  color: var(--color-primary);
  font-family: "Inter", sans-serif;
  font-size: 12px;
  font-weight: 400;
  line-height: normal;
}

.c-breadcrumb__link,
.c-breadcrumb__current {
  color: var(--color-primary);
  font-family: "Inter", sans-serif;
  font-size: 12px;
  font-weight: 400;
  line-height: normal;
}

.c-breadcrumb__link {
  transition: opacity 0.3s;
}

.c-breadcrumb__link:hover {
  opacity: 0.7;
}

/* ============================
   c-info-heading (共通お知らせ見出し: INFORMATION | お知らせ)
============================ */
.c-info-heading {
  display: flex;
  align-items: center;
  gap: 32px;
  margin-bottom: 16px;
}
@media (max-width: 767px) {
  .c-info-heading {
    gap: 10px;
    margin-bottom: 8px;
  }
}

.c-info-heading__en {
  color: var(--color-primary);
  font-family: var(--font-heading);
  font-size: 48px;
  font-weight: 500;
  line-height: 1;
  letter-spacing: 2px;
}
@media (max-width: 767px) {
  .c-info-heading__en {
    font-size: 24px;
  }
}

.c-info-heading__separator {
  display: block;
  width: 1px;
  height: 46px;
  background-color: var(--color-primary);
}
@media (max-width: 767px) {
  .c-info-heading__separator {
    height: 14px;
  }
}

.c-info-heading__jp {
  color: var(--color-primary);
  font-size: 18px;
  font-weight: 500;
}
@media (max-width: 767px) {
  .c-info-heading__jp {
    font-size: 14px;
  }
}

/* ============================
   c-info-list (共通お知らせ一覧)
============================ */
.c-info-list {
  margin-bottom: 40px;
  border-top: 2px solid #003894;
}
@media (max-width: 767px) {
  .c-info-list {
    margin-bottom: 20px;
  }
}

.c-info-list__item {
  border-bottom: 2px solid #003894;
}

.c-info-list__link {
  display: flex;
  align-items: center;
  gap: 32px;
  padding: 20px 8px;
  color: var(--color-primary);
  transition: opacity 0.3s;
}
@media (max-width: 767px) {
  .c-info-list__link {
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    gap: 6px;
    padding: 12px 4px;
  }
}

.c-info-list__link:hover {
  opacity: 0.7;
}

/* 日付 (+ 採用TOPICラベル) のまとまり。ラベル無しなら日付だけ = 従来と同じ位置 */
.c-info-list__meta {
  display: flex;
  align-items: center;
  gap: 32px;
  flex-shrink: 0;
}
/* ラベル → 本文の間隔はカード (c-info-topics) と揃えて 16px (親 gap 32 を相殺) */
.c-info-list__meta:has(.c-info-label) {
  margin-right: -16px;
}
@media (max-width: 767px) {
  .c-info-list__meta {
    flex-basis: 100%;             /* SP: 日付(+ラベル) を 1 行目に */
    gap: 12px;
  }
  .c-info-list__meta:has(.c-info-label) {
    margin-right: 0;
  }
}

.c-info-list__date {
  flex-shrink: 0;
  color: var(--color-primary);
  font-family: var(--font-heading);
  font-size: 18px;
  font-weight: 500;
  letter-spacing: 1px;
}
@media (max-width: 767px) {
  .c-info-list__date {
    font-size: 14px;
  }
}

.c-info-list__text {
  flex: 1;
  color: var(--color-text);
  font-size: 20px;
  line-height: 1.6;
}
@media (max-width: 767px) {
  .c-info-list__text {
    flex: 1;
    font-size: 16px;
  }
}

.c-info-list__more {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: var(--color-primary);
  font-family: var(--font-heading);
  font-size: 18px;
  font-weight: 500;
  letter-spacing: 2px;
}
@media (max-width: 767px) {
  .c-info-list__more {
    flex-shrink: 0;
    gap: 6px;
    font-size: 14px;
  }
  .c-info-list__more-label {
    display: none;
  }
}

.c-info-list__more-icon {
  width: 7px;
  height: 10px;
  flex-shrink: 0;
}

/* ============================
   c-info-label (採用TOPIC ラベル)
   c-info-topics のカードと c-info-list の行の両方で使う
============================ */
.c-info-label {
  display: inline-flex;
  align-items: center;
  flex-shrink: 0;
  height: 22px;
  padding: 0 6px;
  background-color: var(--color-primary);
  color: var(--color-white);
  font-family: var(--font-heading);
  font-size: 16px;
  font-weight: 500;
  line-height: 1;
  white-space: nowrap;
}
@media (max-width: 767px) {
  .c-info-label {
    height: 18px;
    padding: 0 5px;
    font-size: 13px;
  }
}

/* ============================
   c-info-topics (採用TOPIC カード: お知らせ上部・最大3件)
   Figma: 1012×70 / 白地 / 左 3px 紺線 / 影 0 0 20px 5px #D6E1F2 / カード間 16px
============================ */
.c-info-topics {
  display: grid;
  gap: 16px;
  margin-top: 62px;             /* Figma: 見出し → カード 75px (見出しの margin-bottom 16px とは相殺) */
}
@media (max-width: 767px) {
  .c-info-topics {
    gap: 12px;
    margin-top: 24px;
  }
}

/* カード → 下部リストの間隔 (Figma 58px)。リスト側の margin-top は無いのでここで付ける */
.c-info-topics + .c-info-list {
  margin-top: 58px;
}
@media (max-width: 767px) {
  .c-info-topics + .c-info-list {
    margin-top: 30px;
  }
}

.c-info-topics__link {
  display: flex;
  align-items: center;
  gap: 14px;                    /* ラベル → タイトル (Figma 14px) */
  min-height: 70px;
  padding: 12px 19px 12px 17px; /* 左: 3px 線 + 17px = 日付 x 20px */
  background-color: var(--color-white);
  border-left: 3px solid var(--color-primary);
  box-shadow: 0 0 20px 5px #D6E1F2;
  color: var(--color-primary);
  transition: opacity 0.3s;
}
@media (hover: hover) {
  .c-info-topics__link:hover {
    opacity: 0.7;
  }
}
@media (max-width: 767px) {
  .c-info-topics__link {
    display: grid;              /* SP: 1行目 日付+ラベル / 2行目 タイトル+矢印 */
    grid-template-columns: auto 1fr auto;
    grid-template-areas:
      "date  label ."
      "title title more";
    align-items: center;
    gap: 6px 10px;
    min-height: 0;
    padding: 12px 12px 12px 14px;
  }
}

.c-info-topics__date {
  flex-shrink: 0;
  margin-right: 28px;           /* 日付 → ラベル (Figma 42px = gap 14 + 28) */
  font-family: var(--font-heading);
  font-size: 18px;
  font-weight: 500;
  letter-spacing: 1px;
}
@media (max-width: 767px) {
  .c-info-topics__date {
    grid-area: date;
    margin-right: 0;
    font-size: 14px;
  }
}
@media (max-width: 767px) {
  .c-info-topics__link .c-info-label {
    grid-area: label;
    justify-self: start;
  }
}

.c-info-topics__title {
  flex: 1;
  color: var(--color-text);
  font-size: 20px;
  line-height: 1.5;
}
@media (max-width: 767px) {
  .c-info-topics__title {
    grid-area: title;
    font-size: 16px;
  }
}

.c-info-topics__more {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-family: var(--font-heading);
  font-size: 18px;
  font-weight: 500;
  letter-spacing: 2px;
}
@media (max-width: 767px) {
  .c-info-topics__more {
    grid-area: more;
    gap: 6px;
    font-size: 14px;
  }
  .c-info-topics__more-label {
    display: none;
  }
}

.c-info-topics__more-icon {
  width: 7px;
  height: 10px;
  flex-shrink: 0;
}

/* ============================
   c-fv (下層ページ共通 FV: 青系背景 + KURIYAMA RECRUIT ロゴ)
   使用: キャリア採用 / キャリア採用サンクス  (template-parts/fv-recruit.php)
============================ */
.c-fv {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 348px;                  /* Figma: 348.6 (他下層 FV と同じ高さ) */
  background-image: url(../images/career/career_fv_bg.jpg);
  background-repeat: no-repeat;
  background-position: center;
  background-size: cover;
}
@media (max-width: 767px) {
  .c-fv {
    height: 225px;                /* 他ページ SP FV と同傾向 (employee 200px) */
    background-image: url(../images/career/career_fv_bg_sp.jpg);
  }
}

.c-fv__logo {
  width: 340px;
  height: auto;
}
@media (max-width: 767px) {
  .c-fv__logo {
    width: 200px;
  }
}

/* ============================
   c-btn-solid (紺ベタ + 白文字 + 右端 >> + 左上/右下 角欠き の共通ボタン)
   Figma: 400×64 / Zen Kaku Gothic New 22px / 矢印 22px 右 32px
   使用: キャリア採用サンクス「TOPへ戻る」 (TOP の index-about__button と同形状)
============================ */
.c-btn-solid {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  max-width: 400px;
  min-height: 64px;
  margin-inline: auto;
  padding: 10px 60px 10px 20px;
  background-color: var(--color-primary);
  color: var(--color-white);
  font-family: var(--font-zen);
  font-size: 22px;
  font-weight: 500;
  line-height: 1.35;
  text-align: center;
  clip-path: polygon(15px 0, 100% 0, 100% calc(100% - 15px), calc(100% - 15px) 100%, 0 100%, 0 15px);
  transition: opacity 0.3s;
}
@media (hover: hover) {
  .c-btn-solid:hover {
    opacity: 0.8;
  }
}
@media (max-width: 767px) {
  .c-btn-solid {
    max-width: 320px;
    min-height: 52px;
    padding: 8px 44px 8px 16px;
    font-size: 16px;
    clip-path: polygon(10px 0, 100% 0, 100% calc(100% - 10px), calc(100% - 10px) 100%, 0 100%, 0 10px);
  }
}

.c-btn-solid__arrow {
  position: absolute;
  top: 50%;
  right: 32px;
  transform: translateY(-50%);
  width: 22px;
  height: auto;
}
@media (max-width: 767px) {
  .c-btn-solid__arrow {
    right: 16px;
    width: 16px;
  }
}

/* ============================
   c-btn-frame (四隅の間に4本の独立ライン枠ボタン)
============================ */
.c-btn-frame {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  max-width: 500px;
  height: 80px;
  color: var(--color-primary);
  font-family: "Inter", sans-serif;
  font-size: 22.6px;
  font-weight: 400;
  line-height: normal;
  transition: opacity 0.3s;
}
@media (max-width: 767px) {
  .c-btn-frame {
    max-width: 280px;
    height: 56px;
    margin-left: auto;
    margin-right: auto;
    font-size: 16px;
  }
}

/* 枠線は「上辺+左辺のL」と「下辺+右辺のL」を 15.33px / 19.16px ずらして重ねた形
   (Figma: 同じ矩形を斜めにずらした2枚重ね)。結果、右上と左下だけが欠ける */
.c-btn-frame::before {          /* 左上のL: 上辺 + 左辺 */
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 15.33px;
  bottom: 19.16px;
  border-top: 1px solid var(--color-primary);
  border-left: 1px solid var(--color-primary);
  pointer-events: none;
}
@media (max-width: 767px) {
  .c-btn-frame::before {
    right: 11px;
    bottom: 13px;
  }
}

.c-btn-frame::after {           /* 右下のL: 下辺 + 右辺 */
  content: '';
  position: absolute;
  top: 19.16px;
  left: 15.33px;
  right: 0;
  bottom: 0;
  border-bottom: 1px solid var(--color-primary);
  border-right: 1px solid var(--color-primary);
  pointer-events: none;
}
@media (max-width: 767px) {
  .c-btn-frame::after {
    top: 13px;
    left: 11px;
  }
}

.c-btn-frame:hover {
  opacity: 0.7;
}

/* --- --green: 緑バリエーション (新入社員の声 詳細で使用) ---
   枠線・テキスト色のみ差し替え。角欠きラインの位置・サイズは共通と同じ */
.c-btn-frame--green {
  color: var(--color-accent-green);
}
.c-btn-frame--green::before {
  border-color: var(--color-accent-green);
}
.c-btn-frame--green::after {
  border-color: var(--color-accent-green);
}

.c-btn-frame__arrow {
  position: absolute;
  right: 37px;
  top: 50%;
  transform: translateY(-50%);
  width: 25px;
  height: 14px;
}
@media (max-width: 767px) {
  .c-btn-frame__arrow {
    right: 20px;
    width: 20px;
    height: 11px;
  }
}
/* ============================
   C-MAGAZINE (クリヤマガジン導線)
   使用: TOP / キャリア採用  (template-parts/magazine.php)
   SP (Figma 390×550): グラデ下地 (全幅) + 中身をまとめた画像 (340×408) + ボタン 280×52
     → PC の見出し/吹き出し/サムネは .pc-only、SP 画像は .sp-only で切替
============================ */
.c-magazine {
  padding-top: 20px;
  padding-bottom: 136px;
}
@media (max-width: 767px) {
  .c-magazine {
    padding-top: 0;
    /* 44px = ボタンの負マージンでセクション下端からはみ出す __bg の高さ。
       同値にすると、はみ出したグラデーションがそのままボタン下の余白になり、
       白帯を挟まずに次のセクション (TOP: INFORMATION / キャリア採用: フッター) と接続する */
    padding-bottom: 44px;
  }
}

.c-magazine__inner {
  max-width: 1268px;
  margin-inline: auto;
  padding-inline: 20px;
}
@media (max-width: 767px) {
  .c-magazine__inner {
    padding-inline: 0;            /* SP はグラデ下地を全幅に */
  }
}

.c-magazine__bg {
  padding: 60px 40px 91px;
  background-image: url(../images/top/index_magazine_bg.png);
  background-repeat: no-repeat;
  background-position: center top;
  background-size: cover;
}
@media (max-width: 767px) {
  .c-magazine__bg {
    padding: 35px 25px 107px;     /* 下 = ボタン重なり 52 + 隙間 11 + 下余白 44 */
    background-image: linear-gradient(151deg, rgba(143, 168, 208, 0.3) 0%, rgba(145, 225, 248, 0.3) 50%, rgba(110, 155, 199, 0.3) 100%);
    background-color: var(--color-white);
  }
}

/* SP のみの中身画像 (見出し・ロゴ・サムネ 3 枚・絶賛配信中) */
.c-magazine__sp-visual {
  width: 100%;
  max-width: 420px;               /* 767px 近辺で間延びしないよう上限 */
  height: auto;
  margin-inline: auto;
}

/* --- 見出しエリア (PC) --- */
.c-magazine__head {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 10px;
}

/* 768〜1227px はコンテナ幅 (1228) 基準の vw で比例縮小 (PC の見た目を維持)。値 = PC値 / 1228 * 100vw */
.c-magazine__balloon {
  flex-shrink: 0;
  width: clamp(112px, 14.66vw, 180px);   /* 180。固定幅で lazy 読込前も領域確保 (CLS 対策) */
}

/* .c-magazine__head-text: 内部は左揃え。タイトルと「クリヤマガジン」の左端が揃う */

.c-magazine__title {
  color: #FFF;
  -webkit-text-stroke: 3.33px var(--color-primary);
  paint-order: stroke fill;
  font-family: "Inter", sans-serif;
  font-size: clamp(32px, 4.21vw, 51.7px);   /* 51.7 */
  line-height: normal;            /* body の 1.6 を打ち消し */
  white-space: nowrap;
  text-align: left;
}

.c-magazine__title + .c-magazine__brand {
  margin-top: clamp(14px, 1.95vw, 24px);
}

.c-magazine__brand {
  display: flex;
  justify-content: flex-start;
  align-items: center;
  gap: clamp(10px, 1.47vw, 18px);
}

.c-magazine__brand-jp {
  color: var(--color-primary);
  font-family: "Inter", sans-serif;
  font-size: clamp(18px, 2.39vw, 29.3px);   /* 29.3 */
  line-height: normal;
  white-space: nowrap;
}

.c-magazine__brand-logo {
  width: clamp(255px, 33.22vw, 408px);   /* 408 */
  height: auto;
}

/* --- サムネイル3枚 (PC) --- */
.c-magazine__thumbs {
  display: flex;
  justify-content: center;
  gap: clamp(24px, 3.42vw, 42px);
  margin-top: clamp(28px, 3.75vw, 46px);
}

/* 3枚の元画像は比率がわずかに違う (663x440 / 673x441 / 674x442) ため、
   そのまま並べると下端が最大 3px ずれる。枠を一番縦長の比率で固定して高さを揃える。

   画像に紺のボーダーが含まれるので cover は使えない (縁が切れる)。
   contain + object-position: bottom で、下端をぴったり揃えつつ縁を残す。
   比率差は約1.3%なので、02/03 の上に出る余白は 3px 弱 */
.c-magazine__thumb {
  flex: 1 1 0;
  min-width: 0;
  aspect-ratio: 663 / 440;
}

.c-magazine__thumb img {
  height: 100%;
  object-fit: contain;
  object-position: bottom;
}

/* --- CTAボタン (背景画像から下にはみ出す) ---
   ラッパーに drop-shadow を適用することで、
   テキスト・矢印にシャドウがかからず、::before のクリップ形状にだけ影が乗る */
.c-magazine__btn-wrap {
  width: fit-content;
  margin: clamp(-45px, -3.66vw, -28px) auto 0;   /* -45: ボタン高さの約半分を重ねる */
  filter: drop-shadow(11.344px 11.344px 17.016px rgba(8, 57, 99, 0.32));
}
@media (max-width: 767px) {
  .c-magazine__btn-wrap {
    width: 280px;                 /* Figma: 280×52、グラデ下地の内側 (下 44px) */
    margin-top: -96px;
    padding: 3px;                 /* 白フレーム 3px */
    background-color: var(--color-white);
    filter: none;
  }
}

.c-magazine__btn {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  width: clamp(310px, 40.31vw, 495px);   /* 495 */
  height: clamp(50px, 6.51vw, 80px);     /* 80 */
  transition: opacity 0.3s;
}
@media (max-width: 767px) {
  .c-magazine__btn {
    width: 100%;
    height: 46px;                 /* 3px 枠込みで 52px */
  }
}

.c-magazine__btn::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(90deg, #013887 1.37%, #003B8A 13.52%, #004796 25.61%, #005CA9 37.76%, #0077C4 49.8%, #007CC8 51.35%);
  clip-path: polygon(15px 0, 100% 0, 100% calc(100% - 15px), calc(100% - 15px) 100%, 0 100%, 0 15px);
}
@media (max-width: 767px) {
  .c-magazine__btn::before {
    background: var(--color-primary);   /* Figma SP は単色 #003894 */
    clip-path: polygon(10px 0, 100% 0, 100% calc(100% - 10px), calc(100% - 10px) 100%, 0 100%, 0 10px);
  }
}

@media (hover: hover) {
  .c-magazine__btn:hover {
    opacity: 0.85;
  }
}

.c-magazine__btn-text {
  color: #FFF;
  font-size: clamp(15px, 1.95vw, 24px);  /* 24 */
  font-weight: 700;
  line-height: normal;
  letter-spacing: calc(4.8 / 24 * 1em);
  text-align: center;
}
@media (max-width: 767px) {
  .c-magazine__btn-text {
    font-size: 14px;
    letter-spacing: calc(2.8 / 14 * 1em);
  }
}

.c-magazine__btn-arrow {
  position: absolute;
  top: 50%;
  right: clamp(24px, 3.26vw, 40px);
  transform: translateY(-50%);
  width: clamp(16px, 1.95vw, 24px);
  height: auto;
}
@media (max-width: 767px) {
  .c-magazine__btn-arrow {
    display: none;                /* SP デザインは矢印なし */
  }
}
