/*
  スター★採用室 HP 共通の見た目
  色の決まり（2026-11-09〜10 本人。ゴール G-cd55「HPを新しいブランドカラーに替える」）：
  緑と金をやめた。色はどれも、参考にしたサイトのコードから抜いた値。
  ・白 #ffffff → 背景と箱（I&CO の FV の背景・フライホイールの円と同じ）
  ・くすんだ地 #f7f5f1 → FV・トップのヘッダー・記事の段の上の帯・サービスLPの名札の帯（ロロ・ピアーナのサイトの地。top.css の --fv-bg）
  ・粒の入った灰 #e3e3e3 → 以前の緑の所と、お問い合わせ・資料ダウンロードの段（assets/img/grain.png。アレテコの背景と同じ性質の粒を自作）。上の文字は #212121
  ・#212121 → 文字（I&CO の FV の文字）、フッターの帯、黒いボタン、枠。細い線や注記は #212121 を薄くして作る
  ・黄 #f6d200 → ★と、太字の下に引く帯だけ（フェラーリのサイトの色の決まり --f-color-global-yellow-600）。★にふちは付けない
  ・ボタンは黒（白い文字）と白（黒い枠）の2つだけ
  ・文字は原則 #212121（黒い面の上は白）。本当に強調したい所（サービスLPなど）だけ赤 #da291c（フェラーリのサイトの色の決まり）
  ・下線は黄で、ペンで引いた形（assets/img/pen-line.svg）
  ・サービスLPのイラストとグラフは、中身に合うカラフルな色を使ってよい（FV と名札の帯の地、黄の下線、文字の黒と赤の決まりは守る）
  差は色を足さず影で出す：枠の無い白い箱は I&CO と同じ filter: drop-shadow(rgba(0,0,0,.1) 0 0 15px)。
  枠は 1px の #212121（以前の 2.5px は太すぎた）で、枠のある箱には影を付けない。
  箱の片側だけに色の線を付けない。枠は細く四辺、強調は少し大きく塗りつぶす。
*/
:root {
  /* ロゴ（スター★採用室）：Noto Sans JP の800＋字間を詰め、黒の四角の枠で囲む（2026-11-09 本人。FVの名札と同じ形） */
  --logo: "Noto Sans JP", sans-serif;
  --logo-weight: 800;
  --ground: #ffffff;                                   /* 背景（白） */
  --ground-bg: #ffffff;
  --white: #ffffff;                                    /* 白い箱 */
  --soft: #ffffff;
  --grain: #e3e3e3;                                    /* 粒の灰の平均の色（画像が使えない所用） */
  --main: #e3e3e3;                                     /* 以前の緑の役：粒の灰 */
  --main-bg: #e3e3e3 url("/assets/img/grain.png");     /* 粒の灰の面に敷く（色の粒あり） */
  --main-2: #ffffff;
  --sunk: #e3e3e3 url("/assets/img/grain.png");        /* 写真の代わりの面など */
  --line: rgba(33, 33, 33, .15);                       /* 細い線（#212121 を薄く） */
  --black: #212121;                                    /* フッターの帯・黒いボタン */
  --black-2: #3d3d3d;                                  /* 黒いボタンに触れた時 */
  --red: #da291c;                                      /* 本当に強調したい言葉だけの赤（サービスLPなど）。フェラーリのサイトの色の決まり --f-color-global-red-600（2026-11-10） */
  --yellow: #f6d200;                                   /* ★・ポイントの帯。フェラーリのサイトの色の決まり --f-color-global-yellow-600（2026-11-10 本人決定） */
  --ink: #212121;
  --note: rgba(33, 33, 33, .72);
  --text: #212121;
  --text-sub: rgba(33, 33, 33, .72);                   /* 注記（#212121 を薄く） */
  --on-main: #212121;                                  /* 粒の灰の上の文字 */
  --on-main-note: rgba(33, 33, 33, .72);
  --on-black: #ffffff;                                 /* 黒いボタン・フッターの上の文字 */
  --float: drop-shadow(rgba(0, 0, 0, .1) 0px 0px 15px); /* 白い箱を浮かせる影。I&CO のフライホイールと同じ書き方（filter: drop-shadow）。使う時は filter: var(--float) */

  --display: "Noto Sans JP", "Hiragino Sans", "Yu Gothic", sans-serif;
  --body: "Noto Sans JP", "Hiragino Sans", "Yu Gothic", sans-serif;

  --wrap: 1120px;
  --gutter: max(20px, env(safe-area-inset-left, 0px));
  --radius: 10px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--ground-bg);
  color: var(--text);
  font-family: var(--body);
  font-size: 16px;
  line-height: 1.9;
  letter-spacing: 0.02em;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; }
p { margin: 0; }
h1, h2, h3 { margin: 0; font-family: var(--display); font-weight: 700; line-height: 1.5; text-wrap: balance; letter-spacing: 0.02em; }
ul { margin: 0; padding: 0; list-style: none; }
:focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } * { transition: none !important; } }

.wrap {
  max-width: var(--wrap);
  margin: 0 auto;
  padding-left: max(20px, env(safe-area-inset-left, 0px));
  padding-right: max(20px, env(safe-area-inset-right, 0px));
}
.star { color: var(--yellow); }
.brand-logo { font-family: var(--logo); font-weight: var(--logo-weight); letter-spacing: -0.02em; }
/* ロゴ：名前を黒の四角の枠で囲み、白で塗る（2026-11-09 本人「HPのFVみたいに黒の四角の枠も含めてアイコンにしたい」）。
   黒の面（フッター）の上でも同じ形で、白い箱に黒い文字のまま置く */
.brand-logo.logo, .brand-logo.footer-logo {
  display: inline-block; justify-self: start; padding: .06em .5em .12em; line-height: 1.4;
  background: var(--white); color: var(--text); border: 1px solid var(--ink);
}
/* 段の見出しと強調の言葉に引く黄の下線。ペンで引いたような形（2026-11-10 本人「アレテコのニュアンスみたいに、黄色の下線をペンで書いたように」。黄は★と下線だけ） */
:root { --pen: url("/assets/img/pen-line.svg"); }
:root { --content-w: 1000px; } /* 中身の最大の幅（2026-11-15 本人。アレテコと同じ 1000px）。どのページのフッターもこれを使う */

/* 文字の大きさは役割ごとに7つだけ（2026-11-15 本人。アレテコの理念のページを参考に、役割を分けて大きさを決めた）
   本人「各テキストの役割を分けて、役割ごとにフォントサイズをルール決めしてほしいな」「全体的にOK」「主コピー（FV の枠の中）をさ、アルテコぐらい（40→30）大きくしたら変になるかな？」「その形で組む」
   どの幅でも「主コピー ＞ 段の見出し ＞ 中見出し ＞ リード ＞ 本文 ＞ 小さな字」の順を崩さない。大きい字だけ縮め、本文はほぼ縮めない（アレテコと同じ）。
   左が広い画面、右が800px未満（ヘッダーを畳む幅）。新しい字を足す時は、この7つのどれかに当てる。 */
:root {
  --t-main: 40px;   /* 主コピー（FV の枠の中）。入らない幅では入る大きさまで縮む（top.css） 40 → 30 */
  --t-h2: 32px;     /* 段の見出し（サービスの内容 など） 32 → 24 */
  --t-h3: 24px;     /* 中見出し（パネルの名前・お問い合わせの見出し・FV の名前の札） 24 → 20 */
  --t-lead: 18px;   /* リード（記事の題・FV の「という」「サービスを提供しています。」） 18 → 16 */
  --t-body: 16px;   /* 本文（段の説明・パネルの説明）16 → 15。行の高さは --lh-body（広い画面 1.7・800px未満 1.375。アレテコと同じ行の高さ）。2026-11-15 に一度アレテコと同じ 13px にしたが、本人「確かにこれは小さすぎるかも。。。文字サイズをさっきに戻して、行間だけ短縮するのが良いかも」で大きさは戻した */
  --lh-body: 1.7;
  --t-btn: 18px;    /* ボタンの字（ペンの丸のリンク） 18 → 15 */
  --t-small: 12px;  /* 小さな字（CLICK など） 12 → 11 */
}
@media (max-width: 799px) {
  :root { --t-main: 30px; --t-h2: 24px; --t-h3: 20px; --t-lead: 16px; --t-body: 15px; --lh-body: 1.375; --t-btn: 15px; --t-small: 11px; }
}
.u-mark { background: var(--pen) no-repeat left 0 bottom .02em / 100% .48em; padding: 0 .12em; -webkit-box-decoration-break: clone; box-decoration-break: clone; }
/* 文字は原則 #212121（黒い面の上は白）。本当に強調したい所だけ赤（2026-11-10 本人） */
.t-red { color: var(--red); }
/* 言葉のまとまりで折り返す */
.ph { display: inline-block; }

/* ボタン：白と黒の2つだけ（2026-11-09 本人）。地・白の上は黒＋白文字か白＋黒の枠、濃い灰の面の上は白＋黒文字 */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 52px; padding: 0 26px; border-radius: 999px;
  font-family: var(--body); font-weight: 700; font-size: 15px; letter-spacing: 0.06em;
  text-decoration: none; border: 1px solid transparent; cursor: pointer;
  transition: transform .15s ease, background-color .15s ease, color .15s ease;
}
.btn:hover { transform: translateY(-1px); }
.btn .arw { font-size: 13px; }
.btn-green { background: var(--black); color: var(--on-black); }
.btn-green:hover { background: var(--black-2); }
.btn-gold { background: var(--white); color: var(--text); }
.btn-gold:hover { background: var(--soft); }
.btn-line { background: transparent; color: var(--black); border-color: var(--black); }
.btn-line:hover { background: var(--white); }
.btn-line-white { background: transparent; color: var(--on-black); border-color: rgba(255,255,255,.6); }
.btn-line-white:hover { border-color: var(--on-black); }

/* ヘッダー
   参考：baigie.me のヘッダー（2026-10-27 本人の画像）。高さ約100px・中央寄りのメニュー・サービスの＋で開く大きな板・右に白と塗りのボタン。
   寸法を読み取って書き直したもの */
.site-header { position: relative; z-index: 50; background: transparent; }
body::before { content: ""; position: fixed; inset: 0 0 auto; height: env(safe-area-inset-top, 0px); z-index: 60; background: var(--ground-bg); }
.site-header .wrap { max-width: none; display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; height: 100px; padding-left: max(24px, 3.3vw); padding-right: max(24px, 2.6vw); }
.logo { justify-self: start; font-size: 24px; text-decoration: none; white-space: nowrap; color: var(--text); }
.gnav { display: flex; align-items: center; }
.gnav > a, .gnav > button.nav-item {
  position: relative; display: inline-flex; align-items: center; gap: 6px;
  padding: 10px 20px; height: 40px; font: 500 15px/1 var(--body); color: var(--text);
  text-decoration: none; background: none; border: 0; cursor: pointer; border-radius: 6px 6px 0 0;
}
.gnav > a:hover, .gnav > button.nav-item:hover { opacity: .7; }
/* 今いるページは、黄色のペンの下線（段の見出しと同じ pen-line.svg）。文字の下半分にかかり、文字は線の上（2026-11-15 本人「今の位置を下線引いてると思うんだけど、それを黄色のペンにしようか」） */
.gnav .is-current::after { content: ""; position: absolute; z-index: -1; left: 16px; right: 16px; bottom: 9px; height: 9px; background: var(--pen) no-repeat center / 100% 100%; }
.gnav .has-plus .is-current-text { position: relative; }
.plus { width: 16px; height: 16px; border: 1px solid var(--note); border-radius: 50%; position: relative; flex: none; }
.plus::before, .plus::after { content: ""; position: absolute; left: 50%; top: 50%; width: 8px; height: 1px; background: var(--ink); transform: translate(-50%, -50%); }
.plus::after { transform: translate(-50%, -50%) rotate(90deg); transition: transform .15s ease; }
.nav-item[aria-expanded="true"] .plus::after { transform: translate(-50%, -50%) rotate(0deg); }
.more { width: 22px; display: inline-flex; justify-content: space-between; }
.more i { width: 4px; height: 4px; border-radius: 50%; background: var(--ink); }
.head-cta { justify-self: end; display: flex; gap: 12px; }
.head-cta .btn { min-height: 38px; padding: 8px 16px 6px; font-size: 14px; font-weight: 500; line-height: 1.7; border-radius: 999px; letter-spacing: 0; transition: .2s; }
@media (hover: hover) { .head-cta .btn-green:hover { opacity: .7; } .head-cta .btn-line:hover { background: var(--soft); } }
.head-cta .btn-line { background: var(--white); color: var(--text); border: 1px solid var(--line); }
.head-cta .btn-green { background: var(--black); color: var(--on-black); border: 0; }
.menu-btn { display: none; }

/* 開いた時：ページを暗くし、押した所を白いタブにして、下の大きな板とつなげる */
.mega-veil { position: fixed; inset: 0; z-index: 45; background: rgba(0, 0, 0, .42); }
.mega-veil[hidden] { display: none; }
.site-header.mega-open { background: #818181; }
.site-header.mega-open .logo, .site-header.mega-open .gnav > a, .site-header.mega-open .gnav > .nav-item[aria-expanded="false"], .site-header.mega-open .head-cta { opacity: .35; }
.gnav > button.nav-item[aria-expanded="true"] { background: var(--white); opacity: 1 !important; z-index: 2; }
.mega {
  position: absolute; z-index: 1; left: max(24px, 4.2vw); right: max(24px, 4.2vw); top: 70px;
  background: var(--white); border-radius: 8px; padding: 58px 48px 64px;
  display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 0 24px;
}
.mega .mega-col h3 { white-space: nowrap; }
.mega[hidden] { display: none; }
.mega-col h3 { font-family: var(--display); font-size: 22px; font-weight: 700; line-height: 1.4; }
.mega-col h3 a { text-decoration: none; display: inline-flex; align-items: center; gap: 10px; }
.mega-col h3 a span { text-decoration: underline; text-underline-offset: 5px; text-decoration-thickness: 1px; }
.mega-col .en { display: block; margin-top: 4px; font-family: "Helvetica Neue", Arial, sans-serif; font-size: 11px; font-weight: 500; color: var(--text-sub); letter-spacing: 0.02em; }
.mega-col ul { margin-top: 38px; display: grid; gap: 15px; }
.mega-col li a { display: grid; grid-template-columns: 16px minmax(0, 1fr); gap: 12px; align-items: start; font-size: 15px; font-weight: 500; line-height: 1.6; text-decoration: none; color: var(--text); }
.mega-col li a:hover span { text-decoration: underline; text-underline-offset: 4px; }
.arrow-c { width: 16px; height: 16px; margin-top: 4px; border: 1px solid var(--ink); border-radius: 50%; position: relative; flex: none; }
.arrow-c::before { content: ""; position: absolute; left: 3px; top: 7px; width: 8px; height: 1px; background: var(--ink); }
.arrow-c::after { content: ""; position: absolute; left: 7px; top: 5px; width: 4px; height: 4px; border-top: 1px solid var(--ink); border-right: 1px solid var(--ink); transform: rotate(45deg); }
.mega-col h3 .arrow-c { margin-top: 0; transform: translateY(.06em); } /* 日本語の字は箱の中で少し下寄りなので、字の見た目の中心に合わせる */
.more-panel { position: absolute; z-index: 1; top: 70px; background: var(--white); border-radius: 8px; padding: 24px 28px; min-width: 240px; }
.more-panel[hidden] { display: none; }
.more-panel ul { display: grid; gap: 14px; }

/* 見出しの型 */
.sec { padding-block: 112px; }
.sec-head { display: grid; gap: 14px; margin-bottom: 48px; }
.eyebrow { font-family: var(--body); font-size: 13px; font-weight: 700; letter-spacing: 0.18em; color: var(--text); display: flex; align-items: center; gap: 10px; }
.eyebrow::before { content: "★"; color: var(--yellow); letter-spacing: 0; }
.sec-head h2 { font-size: clamp(26px, 3.4vw, 36px); }
.sec-head p { color: var(--text-sub); max-width: 40em; }

/* フッター
   参考：baigie.me の .p-footer（左にロゴ、右寄りに2列、下にコピーライト）。#242422 → 深緑、灰色の小見出し → 白の60％ */
.site-footer { background: var(--black); color: var(--on-black); padding: 70px 50px 73px; } /* 左右の余白はほかの段と同じ 50px（1023px以下は 24px） */
.footer-inner { max-width: var(--content-w); margin: 0 auto; } /* 最大1000px（2026-11-15 本人「フッターメニューも最大幅1000pxに統一しようか！」） */
.footer-top { display: grid; grid-template-columns: 1fr 327px 225px; align-items: start; }
.footer-logo { font-size: 24px; text-decoration: none; color: var(--on-black); }
.footer-section-title { font-size: 17px; font-weight: 500; line-height: 1.7; color: rgba(255, 255, 255, .6); }
.footer-section ul { margin-top: 14px; display: grid; gap: 9px; }
.footer-section a { font-size: 14px; font-weight: 500; line-height: 1.7; color: var(--on-black); text-decoration: none; }
.footer-bottom { margin-top: 104px; display: grid; grid-template-columns: 1fr 552px; align-items: center; }
.footer-copy { font-size: 14px; font-weight: 300; line-height: 1.7; }
.footer-sub { font-size: 13px; font-weight: 500; color: var(--on-black); text-decoration: none; justify-self: start; }
.u-text-hover-in {
  display: inline; background-image: linear-gradient(90deg, var(--on-black), var(--on-black)); background-repeat: no-repeat;
  background-position: 100% 100%; background-size: 0 1px; transition: background-size .4s cubic-bezier(.39, .575, .565, 1);
}
@media (hover: hover) { .u-text-hover-in:hover { background-position: 0 100%; background-size: 100% 1px; } }
@media (max-width: 1023px) {
  .site-footer { padding: 56px 24px 96px; }
  .footer-top { grid-template-columns: 1fr 1fr; gap: 40px 24px; }
  .footer-logo { grid-column: 1 / -1; }
  .footer-bottom { margin-top: 56px; grid-template-columns: 1fr; gap: 12px; }
}

/* 狭い幅：メニューと右のボタンを消し、左下にメニューボタンだけを固定（参考：baigie.me。境目は 2026-11-15 に 1024px から 800px へ） */
.sp-menu-btn, .sp-menu { display: none; }

/* 800〜1023px：記事2本が横に並ぶ間は、ヘッダーのメニューを出したまま詰める（2026-11-15 本人「SVにある記事２本が横並びになっているうちはヘッダーメニューを表示させておこう」） */
@media (max-width: 1023px) {
  .site-header .wrap { height: 72px; }
  .logo { font-size: 20px; }
  .sec { padding-block: 80px; }
  .gnav > a, .gnav > button.nav-item { padding: 10px 12px; font-size: 14px; }
  .gnav .is-current::after { left: 9px; right: 9px; }
}
/* 800px未満（記事が縦に並ぶ幅）：メニューと右のボタンを消し、左下のメニューボタンだけにする */
@media (max-width: 799px) {
  .gnav, .head-cta, .mega, .more-panel, .mega-veil { display: none !important; }
  /* ヘッダーのメニューが消える幅では、左上のロゴも消し、ヘッダーごと畳む（2026-11-15 本人「ヘッダーメニューがなくなったタイミングで左上のアイコンも非表示にしようか」） */
  .site-header { display: none; }
  .site-header .wrap { grid-template-columns: 1fr; }

  .sp-menu-btn {
    display: block; position: fixed; z-index: 70;
    left: calc(18px + env(safe-area-inset-left, 0px)); bottom: calc(23px + env(safe-area-inset-bottom, 0px));
    width: 66px; height: 40px; border: 0; border-radius: 3px; background: var(--black); cursor: pointer;
    box-shadow: 0 0 0 1px rgba(255, 255, 255, .35); /* 深緑のフッターの上でも見えるように */
  }
  .sp-menu-btn::before, .sp-menu-btn::after {
    content: ""; position: absolute; left: 18px; width: 30px; height: 1px; background: var(--on-black);
    transition: transform .3s ease, top .3s ease;
  }
  .sp-menu-btn::before { top: 16px; }
  .sp-menu-btn::after { top: 23px; }
  .sp-menu-btn[aria-expanded="true"]::before { top: 20px; transform: rotate(20deg); }
  .sp-menu-btn[aria-expanded="true"]::after { top: 20px; transform: rotate(-20deg); }

  .sp-menu {
    display: block; position: fixed; inset: 0; z-index: 65; overflow-y: auto;
    background: var(--ground-bg);
    padding: 40px max(24px, env(safe-area-inset-right, 0px)) 120px max(24px, env(safe-area-inset-left, 0px));
  }
  .sp-menu[hidden] { display: none; }
  .sp-menu .mega-col { padding-block: 24px; border-bottom: 1px solid var(--line); }
  .sp-menu .mega-col:first-child { padding-top: 0; }
  .sp-menu .mega-col ul { margin-top: 18px; }
  .sp-menu .mega-col h3 { font-size: 20px; }
}

/* スマホのメニュー：灰の地にロロ・ピアーナ色（#f7f5f1）の区切り線。中身はヘッダーのメニューと同じ並び＋問い合わせと資料（2026-11-16 本人「ハンバーガーメニューは灰の背景にロロ・ピアーナ色の区切り線で表現しようか！」） */
@media (max-width: 799px) {
  .sp-menu { background: var(--main-bg); }
  .sp-menu ul { display: block; }
  .sp-menu li a { display: flex; align-items: center; gap: 12px; padding: 18px 2px; border-bottom: 1px solid #f7f5f1; text-decoration: none; color: var(--ink); }
  .sp-menu li a .arrow-c { margin-top: 0; }
  .sp-menu__main li a { font-size: 20px; font-weight: 700; line-height: 1.4; }
  .sp-menu__main li:first-child a { border-top: 1px solid #f7f5f1; }
  .sp-menu__sub { margin-top: 40px; }
  .sp-menu__sub li:first-child a { border-top: 1px solid #f7f5f1; }
  .sp-menu__sub li a { font-size: 15px; font-weight: 500; line-height: 1.6; }
}
