/* 【色は「地色の上で4.5:1以上」を満たす値にしてある（2026-08-07）】
   `--accent-*-text` は必ず対になる `--accent-*-bg` の上に置かれる前提の文字色。
   淡い地色の上に淡い文字を置くと読めないので、文字側だけを暗くしてある
   （色相・彩度はそのまま。見た目の系統は変わらない）。
   ここを明るく戻すときは、対になる地色との比を測ってからにすること。 */
:root {
  --primary: #176dc1;          /* 旧 #1976d2。#f5f5f7 の上で 4.23→4.7 */
  --primary-dark: #0d47a1;
  --primary-light: #e3f2fd;
  --bg: #f5f9ff;
  --text: #1c2733;
  --text-light: #5b6b7a;
  --white: #ffffff;
  --radius: 22px;
  --shadow: 0 8px 24px rgba(25, 118, 210, 0.14);

  --accent-blue-bg: #e3f2fd;
  --accent-blue-text: #1565c0;   /* 5.03 */
  --accent-green-bg: #e3f9ec;
  --accent-green-text: #197d51;  /* 旧 #1b8a5a（3.94）→ 4.5 */
  --accent-purple-bg: #f1e9ff;
  --accent-purple-text: #7b3fe4; /* 4.86 */
  --accent-orange-bg: #fff1e0;
  --accent-orange-text: #a55b00; /* 旧 #e07b00（2.70）→ 4.5 */
  --accent-pink-bg: #ffe9f1;
  --accent-pink-text: #cb1a71;   /* 旧 #d81b78（4.18）→ 4.5 */
}

* {
  box-sizing: border-box;
}

/* 【hidden は display を持つ要素に負ける（2026-08-07）】
   `.site-nav-account { display: inline-flex }` のような指定があると、
   `hidden` を付けても消えない。実際、mypage のヘッダーで
   **中身が空の青いボタンだけが出ていた**（site-nav.js が読み込まれておらず、
   確定するまで hidden にしてあるボタンがそのまま見えていた）。
   admin.css には同じ理由で入れてある。学生向けのCSSにも同じ保険を置く。
   hidden を付けた要素を見せたい場面はどこにも無い。 */
[hidden] { display: none !important; }

/* 画面には出さないが、読み上げと見出し構造には残したいもの。
   `display:none` にすると読み上げからも消えるので、位置だけ画面外へ出す。
   （見出しが h1 → h3 と飛ぶと、読み上げ利用者には階層が1つ抜けて聞こえる） */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}

body {
  margin: 0;
  font-family: "Noto Sans JP", "Hiragino Sans", "Yu Gothic", sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.7;
  padding-bottom: 84px;
}

/* 段落の最終行に1〜2文字だけ残る不格好な折り返しを防ぐ（対応ブラウザのみ・無害） */
p {
  text-wrap: pretty;
}

/* 日本語を「文節」単位で改行し、語の途中で割れるのを防ぐ。
   例：「長期インター／ン先」→「長期インターン／先」。
   動的生成される企業カードの文章にも効くのが利点（HTMLに手を入れられないため）。
   未対応ブラウザでは通常の折り返しに戻るだけで無害。主要箇所は .nb でも二重に保護している。 */
h1, h2, h3, h4, p, strong, li, summary, label, figcaption,
.ap-lead, .ap-eyebrow, .company-card-title, .company-card-summary,
.company-card-company, .diag-hero-lead, .diag-hero-note, .ap-worry-quote {
  word-break: auto-phrase;
}

a {
  color: var(--primary);
}

img {
  max-width: 100%;
}

.container {
  max-width: 960px;
  margin: 0 auto;
  padding: 0 20px;
}

/* Header */
.site-header {
  background: var(--white);
  position: sticky;
  top: 0;
  z-index: 10;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  /* 中の要素を44pxにしたぶん、縦を詰めてヘッダーの高さを保つ */
  padding: 8px 20px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
  color: inherit;
  /* 画像は28pxだが、押せる高さは44px確保する。
     ヘッダーの縦paddingを詰めて相殺しているので、全体の高さは変わらない
     （固定バーが読む --header-h は site-nav.js が実測するので追従する） */
  min-height: 44px;
}

.logo-img {
  display: block;
  height: 28px;
  width: auto;
}

.logo-admin-label {
  font-size: clamp(12.0px, 3.85vw, 15px);
  font-weight: 700;
  color: var(--primary-dark);
}

.header-cta-group {
  display: flex;
  gap: 8px;
}

.header-cta {
  background: var(--primary);
  color: var(--white);
  padding: 8px 16px;
  border-radius: 999px;
  font-size: clamp(12px, 3.59vw, 14px);
  font-weight: 700;
  text-decoration: none;
  white-space: nowrap;
}

.header-cta-sub {
  background: #90a4ae;
}

.header-cta-diag {
  background: var(--accent-purple-bg);
  color: var(--accent-purple-text);
}

@media (max-width: 400px) {
  .site-header .container {
    /* 中の要素が44pxになったので、ここも詰めてヘッダーの高さを保つ */
    padding: 8px 16px;
  }

  .logo {
    font-size: clamp(14.4px, 4.62vw, 18px);
  }

  .header-cta-group {
    gap: 8px;
  }

  .header-cta {
    padding: 8px 12px;
    font-size: clamp(12px, 3.08vw, 12px);
  }
}

/* Hero */
.hero {
  position: relative;
  overflow: hidden;
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
  color: var(--white);
  text-align: center;
  padding: 64px 20px 56px;
}

.hero::before,
.hero::after {
  content: "";
  position: absolute;
  border-radius: 50%;
  filter: blur(40px);
  z-index: 0;
  opacity: 0.5;
  background: rgba(255, 255, 255, 0.4);
}

.hero::before {
  width: 220px;
  height: 220px;
  top: -70px;
  left: -70px;
}

.hero::after {
  width: 190px;
  height: 190px;
  bottom: -70px;
  right: -50px;
}

.hero .container {
  position: relative;
  z-index: 1;
}

.hero-flex {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 24px;
  flex-wrap: wrap;
  text-align: left;
}

.hero-text {
  position: relative;
  flex: 1 1 320px;
  text-align: center;
}

.hero-image-wrap {
  position: relative;
  flex: 0 0 auto;
  width: 480px;
  height: 480px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero-blob {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 480px;
  height: 480px;
  transform: translate(-50%, -50%);
  z-index: 0;
}

.hero-blob path {
  fill: var(--white);
}

.hero-blob-accent {
  width: 400px;
  height: 400px;
  opacity: 0.35;
  animation: blob-wobble-2 9s ease-in-out infinite;
}

.hero-blob-main {
  animation: blob-wobble-1 7s ease-in-out infinite;
}

@keyframes blob-wobble-1 {
  0%, 100% { transform: translate(-50%, -50%) rotate(0deg) scale(1); }
  50% { transform: translate(-50%, -50%) rotate(8deg) scale(1.05); }
}

@keyframes blob-wobble-2 {
  0%, 100% { transform: translate(-46%, -54%) rotate(0deg) scale(1); }
  50% { transform: translate(-54%, -46%) rotate(-10deg) scale(0.95); }
}

.hero-illustration-img {
  position: relative;
  display: block;
  width: 280px;
  height: 280px;
  object-fit: contain;
  z-index: 1;
}

@media (max-width: 480px) {
  .hero-image-wrap {
    width: 380px;
    height: 380px;
  }

  .hero-illustration-img {
    width: 220px;
    height: 220px;
  }

  .hero-blob {
    width: 380px;
    height: 380px;
  }

  .hero-blob-accent {
    width: 320px;
    height: 320px;
  }
}

.hero h1 {
  margin: 0 0 16px;
  line-height: 1;
}

.h1-big {
  display: block;
  font-size: clamp(64.0px, 20.51vw, 80px);
  font-weight: 900;
  white-space: nowrap;
  line-height: 1.05;
}

.h1-small {
  display: block;
  font-size: clamp(17.6px, 5.64vw, 22px);
  font-weight: 700;
  white-space: nowrap;
  line-height: 1.5;
  margin-top: 8px;
  opacity: 0.92;
}

.hero .btn-primary {
  background: var(--white);
  color: var(--primary-dark);
}

.hero p {
  font-size: clamp(12.8px, 4.10vw, 16px);
  opacity: 0.92;
  margin: 0 0 28px;
}

/* Hero CTA カード */
.hero-cta-cards {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  margin: 32px -20px -16px;
}

.hero-cta-card {
  display: flex;
  align-items: center;
  gap: 16px;
  min-width: 270px;
  margin: 0 20px 16px;
  padding: 16px 22px;
  border-radius: 20px;
  text-decoration: none;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}

.hero-cta-card:hover {
  transform: translateY(-3px);
}

.hero-cta-card-icon {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  font-size: clamp(17.6px, 5.64vw, 22px);
}

.hero-cta-card-body {
  display: flex;
  flex-direction: column;
  gap: 3px;
  text-align: left;
}

.hero-cta-card-body strong {
  font-size: clamp(12.8px, 4.10vw, 16px);
  font-weight: 800;
  line-height: 1.3;
}

.hero-cta-card-body small {
  font-size: clamp(12px, 3.08vw, 12px);
  font-weight: 600;
  opacity: 0.78;
}

.hero-cta-card-arrow {
  margin-left: auto;
  font-size: clamp(14.4px, 4.62vw, 18px);
  font-weight: 900;
  transition: transform 0.15s ease;
}

.hero-cta-card:hover .hero-cta-card-arrow {
  transform: translateX(5px);
}

.hero-cta-card-main {
  background: var(--white);
  color: var(--primary-dark);
  box-shadow: 0 10px 26px rgba(13, 71, 161, 0.28);
}

.hero-cta-card-main .hero-cta-card-icon {
  background: var(--primary-light);
}

.hero-cta-card-main:hover {
  box-shadow: 0 14px 30px rgba(13, 71, 161, 0.36);
}

.hero-cta-card-sub {
  background: rgba(255, 255, 255, 0.14);
  color: var(--white);
  border: 1px solid rgba(255, 255, 255, 0.35);
}

.hero-cta-card-sub .hero-cta-card-icon {
  background: rgba(255, 255, 255, 0.18);
}

.hero-cta-card-sub:hover {
  background: rgba(255, 255, 255, 0.26);
}

@media (max-width: 480px) {
  /* スマホでは左右のネガティブマージン相殺をやめ、カードをコンテナ内に収める（はみ出し防止）。あわせてボタンを一回り小さく */
  .hero-cta-cards {
    margin: 26px 0 0;
    gap: 12px;
  }
  .hero-cta-card {
    min-width: 0;
    width: 100%;
    margin: 0;
    padding: 12px 16px;
    gap: 12px;
    border-radius: 16px;
  }
  .hero-cta-card-icon {
    width: 40px;
    height: 40px;
    font-size: clamp(16.0px, 5.13vw, 20px);
  }
  .hero-cta-card-body strong {
    font-size: clamp(12.0px, 3.85vw, 15px);
  }
  .hero-cta-card-body small {
    font-size: clamp(12px, 2.82vw, 13px);
  }
}

.section-sub {
  text-align: center;
  color: var(--text-light);
  font-size: clamp(12px, 3.59vw, 14px);
  margin: -20px 0 36px;
}

/* トップページの「すべての会社を見る」ボタン（companies.html への導線） */
.companies-more {
  text-align: center;
  margin-top: 36px;
}

/* 企業一覧ページ（companies.html）の見出しまわり */
.companies-page-section {
  padding-top: 40px;
}
.companies-page-title {
  text-align: center;
  margin-bottom: 12px;
}
.companies-page-count {
  text-align: center; /* スマホでは左（top.css の「本文は左にそろえる」で上書き） */
  color: var(--text-light);
  font-size: clamp(13.5px, 3.33vw, 14px); /* 12→13.5px（2026-09-17） */
  font-weight: 700;
  margin: 0 0 28px;
}

.btn-primary,
.form-submit,
.header-cta,
.line-btn {
  transition: transform 0.12s ease, box-shadow 0.12s ease;
}

.btn-primary:active,
.form-submit:active,
.header-cta:active,
.line-btn:active {
  transform: scale(0.96);
}

.btn-primary:hover,
.form-submit:hover {
  transform: translateY(-2px);
}

.btn-primary {
  display: inline-block;
  background: var(--primary);
  color: var(--white);
  font-weight: 800;
  padding: 16px 32px;
  border-radius: 999px;
  text-decoration: none;
  font-size: clamp(12.8px, 4.10vw, 16px);
  box-shadow: 0 6px 18px rgba(25, 118, 210, 0.3);
  border: none;
  cursor: pointer;
}

/* Section */
.section {
  padding: 72px 20px;
}

.section h2 {
  text-align: center;
  font-size: clamp(22.4px, 7.18vw, 28px);
  font-weight: 900;
  color: var(--primary-dark);
  margin: 0 0 12px;
  letter-spacing: -0.02em;
}

/* キーワードの黄色マーカーハイライト */
.marker {
  background: linear-gradient(transparent 55%, #ffd54f 55%);
  padding: 0 2px;
}

/* 悩み→解決セクション */
.ps-section {
  background: var(--bg);
}

.ps-row {
  display: flex;
  align-items: center;
  gap: 56px;
  margin-bottom: 72px;
}

.ps-row:last-child {
  margin-bottom: 0;
}

.ps-reverse {
  flex-direction: row-reverse;
}

.ps-text {
  flex: 1;
  min-width: 0;
}

.ps-img {
  flex: 0 0 220px;
}

.ps-img-wrap {
  width: 220px;
  height: 220px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.ps-img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.ps-num {
  font-size: clamp(76.8px, 24.62vw, 96px);
  font-weight: 900;
  color: rgba(25, 118, 210, 0.09);
  line-height: 1;
  margin-bottom: -14px;
  letter-spacing: -0.04em;
}

.ps-problem {
  background: #fff5f8;
  border-left: 4px solid var(--accent-pink-text);
  border-radius: 0 12px 12px 0;
  padding: 16px 20px;
}

.ps-tag {
  display: inline-block;
  font-size: clamp(12px, 2.82vw, 13px);
  font-weight: 700;
  color: var(--accent-pink-text);
  background: #fce4ec;
  padding: 3px 12px;
  border-radius: 999px;
  margin-bottom: 8px;
}

.ps-voice {
  font-size: clamp(14.4px, 4.62vw, 18px);
  font-weight: 700;
  color: var(--text);
  margin: 0;
  line-height: 1.6;
}

.ps-bridge {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 16px 0 12px;
}

.ps-bridge-line {
  display: block;
  width: 28px;
  height: 2px;
  background: var(--primary);
  flex-shrink: 0;
}

.ps-bridge-label {
  font-size: clamp(12px, 3.33vw, 13px);
  font-weight: 900;
  color: var(--primary);
  letter-spacing: 0.06em;
}

.ps-solution h3 {
  font-size: clamp(16.8px, 5.38vw, 21px);
  font-weight: 900;
  line-height: 1.55;
  margin: 0 0 12px;
  color: var(--text);
  letter-spacing: -0.01em;
}

.ps-solution p {
  font-size: clamp(12px, 3.59vw, 14px);
  color: var(--text-light);
  margin: 0;
  line-height: 1.85;
}

@media (max-width: 720px) {
  .ps-row,
  .ps-row.ps-reverse {
    flex-direction: column;
    gap: 24px;
    margin-bottom: 52px;
  }

  .ps-img {
    flex: 0 0 auto;
    align-self: center;
  }

  .ps-img-wrap {
    width: 160px;
    height: 160px;
  }

  .ps-num {
    font-size: clamp(51.2px, 16.41vw, 64px);
  }

  .ps-voice {
    font-size: clamp(12.8px, 4.10vw, 16px);
  }

  .ps-solution h3 {
    font-size: clamp(14.4px, 4.62vw, 18px);
  }
}

/* 各セクションの背景色 */
.steps-section  { background: var(--white); }
.companies-section { background: var(--bg); }
.benefits-section  { background: var(--white); }
.faq-section    { background: var(--bg); }

/* Steps */
.steps {
  display: flex;
  align-items: stretch;
  justify-content: center;
  flex-wrap: wrap;
  gap: 24px;
}

.step {
  position: relative;
  background: var(--white);
  border-radius: 30px 30px 30px 6px;
  box-shadow: var(--shadow);
  padding: 30px 20px 24px;
  text-align: center;
  flex: 1 1 220px;
  max-width: 260px;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.step:hover {
  transform: translateY(-6px) rotate(-1deg);
  box-shadow: 0 14px 30px rgba(25, 118, 210, 0.2);
}

.step-badge {
  position: absolute;
  top: -14px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--primary);
  color: var(--white);
  font-size: clamp(12px, 3.08vw, 12px);
  font-weight: 800;
  letter-spacing: 0.06em;
  padding: 4px 16px;
  border-radius: 999px;
  box-shadow: 0 4px 10px rgba(13, 71, 161, 0.3);
}

.step-icon-wrap {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 120px;
  height: 120px;
  border-radius: 42% 58% 53% 47% / 45% 41% 59% 55%;
  background: var(--accent-blue-bg);
  color: var(--accent-blue-text);
  overflow: hidden;
  margin: 14px auto 16px;
}

.step-icon-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.step:nth-child(2) .step-icon-wrap {
  border-radius: 58% 42% 47% 53% / 55% 59% 41% 45%;
}

.step h3 {
  min-height: 44px;
}

@media (max-width: 860px) {
  .steps {
    flex-direction: column;
    align-items: center;
    gap: 20px;
  }

  .step {
    max-width: 320px;
    width: 100%;
  }
}

/* Worries */
.worries-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}

@media (max-width: 600px) {
  .worries-grid {
    grid-template-columns: 1fr;
  }
}

.worry-card {
  background: var(--bg);
  border-radius: var(--radius);
  padding: 24px 20px;
  text-align: center;
}

.worry-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 150px;
  height: 150px;
  border-radius: 28px;
  background: var(--accent-pink-bg);
  color: var(--accent-pink-text);
  overflow: hidden;
  margin: 0 auto 16px;
}

.worry-icon img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.worry-card strong {
  display: block;
  font-size: clamp(12.0px, 3.85vw, 15px);
  margin-bottom: 8px;
  color: var(--text);
}

.worry-card p {
  font-size: clamp(12px, 3.33vw, 13px);
  color: var(--text-light);
  margin: 0;
}

.step h3 {
  margin: 0 0 8px;
  font-size: clamp(12.8px, 4.10vw, 16px);
}

.step p {
  font-size: clamp(12px, 3.59vw, 14px);
  color: var(--text-light);
  margin: 0;
}

/* Company cards */
.company-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(300px, 100%), 1fr));
  gap: 16px;
}

.company-card {
  position: relative;
  display: block;
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
  text-decoration: none;
  color: inherit;
  border: 1px solid #edf2f8;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.company-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 14px 30px rgba(25, 118, 210, 0.16);
}

/* ヘッダー帯：ロゴ＋会社名＋職種タグ */
.company-card-head {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  background: var(--bg);
  border-bottom: 1px solid #eaf1f8;
}

.company-card-logo {
  flex: 0 0 auto;
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: var(--white);
  border: 1px solid #e6edf5;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

.company-card-logo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.company-card-logo-fallback {
  font-size: clamp(14.4px, 4.62vw, 18px);
  font-weight: 800;
  color: var(--primary-dark);
}

.company-card-head-text {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.company-card-company {
  font-size: clamp(12px, 3.59vw, 14px);
  font-weight: 800;
  color: var(--text);
  line-height: 1.3;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.company-card-head .tag {
  margin-bottom: 0;
  align-self: flex-start;
}

/* 本文：大タイトル＋サブ説明＋メタ＋くわしく見る。右下にサムネイル */
.company-card-body {
  position: relative;
  padding: 16px 16px;
}

.company-card--has-thumb .company-card-body {
  padding-right: 134px;
  min-height: 122px;
}

.company-card-title {
  margin: 0 0 4px;
  font-size: clamp(12.8px, 4.10vw, 16px);
  font-weight: 800;
  color: var(--text);
  line-height: 1.45;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  overflow: hidden;
}

.company-card-summary {
  margin: 0 0 12px;
  font-size: clamp(12px, 3.21vw, 12.5px);
  color: var(--text-light);
  line-height: 1.6;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  overflow: hidden;
}

.company-card-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 16px;
  margin-bottom: 12px;
}

.company-card-meta span {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: clamp(12px, 3.08vw, 12px);
  font-weight: 600;
  color: var(--text-light);
}

.company-card-meta svg {
  width: 14px;
  height: 14px;
  flex-shrink: 0;
  color: var(--primary);
}

.company-card-more {
  display: inline-block;
  font-size: clamp(12px, 3.33vw, 13px);
  font-weight: 700;
  color: var(--primary);
}

.company-card-thumb {
  position: absolute;
  right: 18px;
  bottom: 16px;
  width: 104px;
  height: 76px;
  border-radius: 12px;
  overflow: hidden;
  background: linear-gradient(135deg, var(--primary-light), var(--accent-blue-bg));
}

.company-card-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* タグ（カード・企業詳細ページ共通の色システム。踏襲） */
.company-card .tag,
.company-detail-card .tag {
  display: inline-block;
  background: var(--accent-blue-bg);
  color: var(--accent-blue-text);
  font-size: clamp(12px, 2.82vw, 13px);
  font-weight: 700;
  padding: 4px 11px;
  border-radius: 999px;
  margin-bottom: 12px;
}

.company-card .tag.tag-1, .company-detail-card .tag.tag-1 { background: var(--accent-blue-bg); color: var(--accent-blue-text); }
.company-card .tag.tag-2, .company-detail-card .tag.tag-2 { background: var(--accent-green-bg); color: #197f53; }
.company-card .tag.tag-3, .company-detail-card .tag.tag-3 { background: var(--accent-purple-bg); color: var(--accent-purple-text); }
.company-card .tag.tag-4, .company-detail-card .tag.tag-4 { background: var(--accent-orange-bg); color: #a65b00; }
.company-card .tag.tag-5, .company-detail-card .tag.tag-5 { background: var(--accent-pink-bg); color: #cd1a72; }
/* 「その他」と、選択肢に無い職種（古い自由入力）。色で意味を持たせない */
.company-card .tag.tag-6, .company-detail-card .tag.tag-6 { background: #eef1f5; color: var(--text-light); }

.empty-note {
  text-align: center;
  color: var(--text-light);
  font-size: clamp(12px, 3.59vw, 14px);
}

/* トップページ・診断マッチ欄とも1列で横長カードを並べる */
/* 画面が広いぶんだけ列を増やす（2026-08-04）。
   1列固定だったので、PC（幅1040px）ではカード1枚が1040px×731pxまで広がり、
   **1画面に1.4枚しか入らなかった**。画像が幅いっぱいに伸びるのが主因。

   auto-fill ではなく auto-fit にしてある。掲載が2件のときに auto-fill だと
   3列分の枠が作られて右に空の列が残る。auto-fit なら残った幅を分け合う。
   下限 320px は、カードの中の「長期になったら 時給1200円・週2〜3日」が
   折り返さずに収まる幅（実測）。 */
.company-grid.company-grid-list {
  /* min() で包む。素の minmax(320px,...) は列がそれ以下に縮めないので、
     320px幅の端末では列が画面をはみ出して横スクロールが出ていた（実測20px） */
  grid-template-columns: repeat(auto-fit, minmax(min(320px, 100%), 1fr));
  gap: 16px;
}

/* スマホ調整 */
@media (max-width: 600px) {
  .company-card-head {
    padding: 11px 16px;
    gap: 12px;
  }

  .company-card-logo {
    width: 38px;
    height: 38px;
    border-radius: 10px;
  }

  .company-card-company {
    font-size: clamp(12px, 3.33vw, 13px);
  }

  .company-card-head .tag {
    font-size: 10px;
    padding: 3px 8px;
  }

  .company-card-body {
    padding: 12px 16px;
  }

  .company-card--has-thumb .company-card-body {
    padding-right: 98px;
    min-height: 96px;
  }

  .company-card-title {
    font-size: clamp(12px, 3.59vw, 14px);
  }

  .company-card-summary {
    /* 【書き間違いの修正・2026-09-17】clamp の上限(11.5px)が下限(12px)より小さく、
       どの幅でも 12px 固定になっていた（clamp は下限が勝つ）。意図どおりの範囲に直す */
    font-size: clamp(12.5px, 2.95vw, 13.5px);
    margin-bottom: 8px;
  }

  .company-card-meta {
    gap: 4px 12px;
    margin-bottom: 8px;
  }

  .company-card-meta span {
    font-size: clamp(12px, 2.82vw, 13px);
  }

  .company-card-thumb {
    width: 76px;
    height: 58px;
    right: 12px;
    bottom: 12px;
    border-radius: 10px;
  }
}

/* Benefits */
.benefits {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}

@media (max-width: 600px) {
  .benefits {
    grid-template-columns: 1fr;
  }
}

.benefit {
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 22px 20px;
  font-size: clamp(12px, 3.59vw, 14px);
  text-align: center;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.benefit:hover {
  transform: translateY(-4px);
  box-shadow: 0 14px 30px rgba(25, 118, 210, 0.2);
}

.benefit p {
  margin: 0;
  color: var(--text-light);
}

.benefit-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 110px;
  height: 110px;
  border-radius: 24px;
  background: var(--primary-light);
  color: var(--primary-dark);
  overflow: hidden;
  margin: 0 auto 14px;
}

.benefit-icon img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.benefit strong {
  display: block;
  color: var(--primary-dark);
  font-size: clamp(12.0px, 3.85vw, 15px);
  margin-bottom: 8px;
}

/* Company detail */
/* 「← 戻る」は本文の上に1つだけ置かれる離れたリンクなので、
   文章中のリンクとは違って44pxの当たり判定が要る（実測24pxしかなかった）。
   見た目を変えずに当たり判定だけ広げるため、marginを削ってpaddingへ振り替える */
.back-link {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  margin-bottom: 8px;
  padding: 0 4px;
  font-size: clamp(12px, 3.59vw, 14px);
  font-weight: 700;
  color: var(--primary);
  text-decoration: none;
}

.company-detail-card {
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
  padding: 0 32px 32px;
  max-width: 640px;
  margin: 0 auto;
}

.company-detail-hero {
  position: relative;
  width: calc(100% + 64px);
  aspect-ratio: 16 / 9;
  margin: 0 -32px 38px;
  background: var(--primary-light);
}

.company-detail-hero.no-image {
  background: linear-gradient(135deg, var(--primary-light), var(--accent-blue-bg));
}

.company-detail-hero img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.company-detail-icon-wrap {
  position: absolute;
  left: 0;
  bottom: -26px;
  width: 64px;
  height: 64px;
  border-radius: 50%;
  border: 3px solid var(--white);
  background: var(--white);
  box-shadow: var(--shadow);
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

.company-detail-icon-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.company-detail-icon-fallback {
  font-size: clamp(17.6px, 5.64vw, 22px);
  font-weight: 800;
  color: var(--primary-dark);
}

.company-detail-card h1 {
  margin: 0 0 16px;
  font-size: clamp(19.2px, 6.15vw, 24px);
  color: var(--primary-dark);
}

.company-detail-card .meta {
  font-size: clamp(12px, 3.59vw, 14px);
  color: var(--text-light);
  margin-bottom: 16px;
}

.company-detail-card p {
  font-size: clamp(12.0px, 3.85vw, 15px);
  margin: 0;
}

/* FAQ */
.faq-item {
  background: var(--white);
  border-radius: 16px;
  box-shadow: var(--shadow);
  margin-bottom: 12px;
  padding: 4px 16px;
}

.faq-item summary {
  cursor: pointer;
  font-weight: 700;
  padding: 16px 0;
}

.faq-item p {
  margin: 0 0 16px;
  font-size: clamp(12px, 3.59vw, 14px);
  color: var(--text-light);
}

/* Form */
.apply-form {
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 28px;
  max-width: 480px;
  margin: 0 auto;
}

.form-group {
  margin-bottom: 16px;
}

.form-group label {
  display: block;
  font-size: clamp(12px, 3.59vw, 14px);
  font-weight: 700;
  margin-bottom: 8px;
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 12px 16px;
  border: 1px solid #cfd8e3;
  border-radius: 8px;
  /* 【2026-09-16】clamp(12px, 3.85vw, 15px) だった。iPhone は **16px 未満の入力欄に
     フォーカスすると画面を自動で拡大する**ので、マイページの項目を触るたびに
     ページが拡大し、指で縮めて戻す必要があった。一覧の検索窓は前から 16px にしてある */
  font-size: 16px;
  background: var(--white);
}

.flow-steps {
  list-style: none;
  display: inline-block;
  text-align: left;
  margin: 20px 0;
  padding: 0;
}

.flow-steps li {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: clamp(12px, 3.59vw, 14px);
  margin-bottom: 12px;
}

.flow-steps li:last-child {
  margin-bottom: 0;
}

.flow-step-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--primary-light);
  color: var(--primary-dark);
  font-size: clamp(12px, 3.08vw, 12px);
  font-weight: 800;
}

.form-submit {
  width: 100%;
  background: var(--primary);
  color: var(--white);
  border: none;
  padding: 16px;
  border-radius: 999px;
  font-size: clamp(12.8px, 4.10vw, 16px);
  font-weight: 800;
  cursor: pointer;
}

.form-submit:hover {
  background: var(--primary-dark);
}

.thanks-box {
  text-align: center;
  display: none;
}

.thanks-box.show {
  display: block;
}

.apply-form.hide {
  display: none;
}

/* 【白文字 on #06C755 は 2.26:1 で基準（4.5）に届かない。**意図して残している。**
   LINE の利用条件でボタンの色を変えられないため（同じ注記が pre.css にもある）。
   audit.js はこれを毎回 contrast として挙げるが、既知として無視してよい。
   一方、**文中の強調に LINE 緑を使うのは対象外**（ボタンではないので濃い緑にする。
   company-detail.css の .apply-done-lead b を 2026-09-15 に #058037 へ直した） */
.line-btn {
  display: inline-block;
  margin-top: 16px;
  background: #06c755;
  color: var(--white);
  padding: 12px 28px;
  border-radius: 999px;
  text-decoration: none;
  font-weight: 800;
}

/* Floating CTA (アプリっぽい固定ボタン) */
.fab-cta {
  position: fixed;
  right: 20px;
  bottom: 20px;
  background: var(--primary);
  color: var(--white);
  padding: 16px 26px;
  border-radius: 999px;
  text-decoration: none;
  font-weight: 800;
  font-size: clamp(12.0px, 3.85vw, 15px);
  box-shadow: 0 10px 24px rgba(13, 71, 161, 0.35);
  z-index: 50;
  transition: transform 0.12s ease;
}

.fab-cta:active {
  transform: scale(0.95);
}

/* Hero wave divider */
.hero-wave {
  position: absolute;
  left: 0;
  right: 0;
  bottom: -1px;
  width: 100%;
  display: block;
  z-index: 1;
}

/* 背景にぼんやりした図形を置いて奥行きを出すセクション */
.section-decor {
  position: relative;
  overflow: hidden;
}

.section-decor::before,
.section-decor::after {
  content: "";
  position: absolute;
  border-radius: 50%;
  filter: blur(50px);
  z-index: 0;
  opacity: 0.65;
}

.section-decor::before {
  width: 280px;
  height: 280px;
  background: var(--accent-purple-bg);
  top: -100px;
  right: -100px;
}

.section-decor::after {
  width: 220px;
  height: 220px;
  background: var(--accent-green-bg);
  bottom: -80px;
  left: -80px;
}

.section-decor > .container {
  position: relative;
  z-index: 1;
}

/* 追加のぼかし図形（色のバリエーション用、インラインで配置） */
.bg-blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(45px);
  z-index: 0;
  opacity: 0.55;
  pointer-events: none;
}

/* キラキラアクセント */
.sparkle {
  position: absolute;
  pointer-events: none;
  animation: sparkle-twinkle 2.4s ease-in-out infinite;
}

.sparkle.sparkle-delay {
  animation-delay: 0.8s;
}

.sparkle.sparkle-delay2 {
  animation-delay: 1.5s;
}

@keyframes sparkle-twinkle {
  0%, 100% { opacity: 0.25; transform: scale(0.8) rotate(0deg); }
  50% { opacity: 1; transform: scale(1.15) rotate(10deg); }
}

/* 見出し下の手描き風アンダーライン */
.heading-squiggle {
  display: block;
  margin: -24px auto 24px;
  position: relative;
  z-index: 1;
}

/* 波形の区切り線 */
.wave-divider {
  display: block;
  line-height: 0;
  position: relative;
  z-index: 1;
}

.wave-divider svg {
  width: 100%;
  height: 40px;
  display: block;
}

/* 【スクロールで浮き上がる動きは 2026-08-07 にやめた】
   `opacity:0` から始めて画面に入ったら戻す作りだったが、**サイト中の文字が
   スクロールのたびに遅れて出てくるので、読みながら進むと目が何度も止まり、
   「重いサイト」に見えていた。**
   クラス（`.reveal`）はHTMLとJSの各所に残っているので、**ここで無効にする**。
   1つずつ外して回ると、必ずどこかに付け忘れ・消し忘れが出る。
   `reveal.js` の `setupReveal()` も何もしない。

   **ホバーの浮き上がり・診断カードの3D・シートのせり上がりなど、
   操作に応じた動きは残してある。** 消したのは「スクロールしただけで
   出てくる」ものだけ。 */
.reveal,
.reveal.is-visible {
  opacity: 1;
  transform: none;
  transition: none;
}

/* hero 内の登録 CTA（.hero-register-sub）は 2026-09-17 に削除（オーナー指示） */

.hero-companies-link {
  color: rgba(255, 255, 255, 0.9);
  font-size: clamp(12.0px, 3.85vw, 15px);
  font-weight: 700;
  text-decoration: none;
}

.hero-companies-link:hover {
  color: var(--white);
  text-decoration: underline;
}

.hero-login-text {
  font-size: clamp(12px, 3.33vw, 13px);
  color: rgba(255, 255, 255, 0.65);
}

.hero-login-text a {
  color: rgba(255, 255, 255, 0.9);
  font-weight: 700;
  text-decoration: underline;
}

/* Footer */
.site-footer {
  text-align: center;
  padding: 28px 20px;
  font-size: clamp(12px, 3.33vw, 13px);
  color: var(--text-light);
}
/* フッターのリンクは、狭い画面でも語の途中で折り返さない
   （「ヘルプ・お問い合わせ」が「お問／い合わせ」と割れていた）。 */
.site-footer a { white-space: nowrap; }
/* 【2026-09-16】区切り文字「／」をやめ、間隔で分ける。
   文字で区切ると、折り返したときに区切りだけが行末に残った。
   上下の padding は、指で押せる高さを稼ぐぶん（本文中のリンク扱いなので44pxは求めない） */
.site-footer-links {
  margin-top: 6px;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0 18px;
  font-size: 13px;
}
/* 高さ32px → 44px（2026-09-17）。指で押す下限を下回っていて、
   隣のリンク（利用規約↔プライバシーポリシー）を押し間違えやすかった */
.site-footer-links a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0;
}

@media (max-width: 480px) {
  .hero h1 {
    font-size: clamp(19.2px, 6.15vw, 24px);
  }
}


/* ===== 体験日程の選択（企業詳細ページの応募フォーム） ===== */
.slot-option {
  display: block; border: 1px solid #d5dee8; border-radius: 12px;
  padding: 12px 16px; margin-bottom: 12px; cursor: pointer;
  transition: border-color 0.15s, background 0.15s;
}
.slot-option:hover { border-color: var(--primary); }
.slot-option:has(input:checked) {
  border-color: var(--primary); background: #f2f8ff;
  box-shadow: 0 0 0 1px var(--primary) inset;
}
.slot-option.is-applied { opacity: 0.55; cursor: default; background: #f7f9fb; }
.slot-option.is-applied:hover { border-color: #d5dee8; }

.slot-option input { margin-right: 12px; }
/* 「日程を相談して応募」（2026-08-12）。日付の選択肢と見分けが付くように破線＋青 */
.slot-option-consult { border-style: dashed; background: #f5f9ff; }
.slot-option-consult .slot-option-date { color: #1976d2; }
.slot-option-body { display: inline-flex; flex-direction: column; gap: 2px; vertical-align: middle; }
.slot-option-date { font-weight: 800; font-size: 15px; }
.slot-option-detail { font-size: 12px; color: var(--text-light); }
.slot-option-remain { font-size: 12px; color: var(--primary); font-weight: 700; }
.slot-option.is-applied .slot-option-remain { color: var(--text-light); }

.slot-empty {
  border: 1px dashed #d5dee8; border-radius: 12px; padding: 16px;
  font-size: 13px; color: var(--text-light); line-height: 1.8; text-align: center; margin: 0;
}

.apply-error { color: #c62828; font-size: 13px; margin: 12px 0 0; }

/* ============================================================
   共通ハンバーガーメニュー（js/site-nav.js）2026-07-31
   全ページのヘッダーで使うため、top.css ではなく style.css に置く
   （chat.html のように top.css を読まないページでも使うため）。
   ============================================================ */

/* .ap-nav はもともと top.css（body.top-apple 限定）にしか無かった。
   top.css を読まないページでもヘッダーが横並びになるよう、
   低い詳細度で土台だけ用意しておく（テーマ側の gap 26px は上書きされない）。 */
.ap-nav {
  display: flex;
  align-items: center;
  gap: 16px;
}

/* ヘッダー右のアカウントボタン。
   ログイン中は本人の名前が入るので、長い名前でヘッダーが崩れないよう
   幅の上限を決めて省略する。 */
.site-nav-account {
  max-width: 8.5em;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
/* 名前が入っているときだけ、押せる「自分のアカウント」らしさを少し足す */
.site-nav-account.is-account::before {
  content: "";
  display: inline-block;
  width: 6px;
  height: 6px;
  margin-right: 8px;
  border-radius: 50%;
  background: currentColor;
  vertical-align: middle;
  opacity: 0.55;
}
/* top.css を読まないページ（chat.html 等）でも形になるようにしておく。
   `body.top-apple .ap-nav-cta`（0,2,0）のほうが詳細度で勝つので、
   トップ系のページの見た目は変わらない。

   【`:not(.ap-nav-cta)` を外した（2026-08-07）】
   chat.html の要素は `class="ap-nav-cta site-nav-account"` の**両方**を持つ。
   ところが body は `chat-page` なので `body.top-apple .ap-nav-cta` は当たらず、
   `:not(.ap-nav-cta)` でこの保険からも外れて、**下線付きのただのリンク
   （高さ27px）になっていた。** 「.ap-nav-cta があるページではそちらが勝つ」
   という前提が、top-apple でないページでは成り立っていなかった。 */
.site-nav-account {
  display: inline-flex;
  align-items: center;
  min-height: 44px;   /* 指で押す下限 */
  padding: 8px 16px;
  border-radius: 999px;
  background: var(--primary);
  color: var(--white);
  font-size: 13px;
  font-weight: 700;
  text-decoration: none;
}

/* スマホ幅のヘッダー：[就活イベント][マイページ][≡] を**1行のまま**収める
   （2026-08-18 オーナー指示。右下の浮きチップは邪魔なのでやめた）。
   ロゴは原寸のまま（flex-shrink:0）、代わりにボタン2つを細身にする。
   極端に狭い画面（〜350px）では、site-nav.js が持つ短いラベル
   （就活イベント→イベント／長期インターン→インターン）に切り替える。
   body を頭に付けているのは、top.css の同名ルール（後読み）に詳細度で勝つため。 */
.nav-cross-short { display: none; }
@media (max-width: 480px) {
  body .site-header .logo {
    flex-shrink: 0;
  }
  body .site-header .container .ap-nav {
    gap: 8px;
  }
  /* 高さは44を守る（指で押す下限）。以前は40px・11.5pxまで詰めていたが、
     UI監査（audit.js）のタップ領域・文字サイズ両方に全ページで引っかかっていた。
     幅は文字サイズ+0.5pxぶんしか増えないので、390pxでも1行に収まる */
  body .site-header .ap-nav #site-nav-cross {
    min-height: 44px;
    padding: 6px 10px;
    font-size: 12px;
  }
  body .site-header .ap-nav .site-nav-account {
    min-height: 44px;
    padding: 6px 12px;
    font-size: 12.5px;
    max-width: 7em;
  }
}
@media (max-width: 350px) {
  body .site-header .container {
    padding-left: 12px;
    padding-right: 12px;
  }
  body .site-header .container .ap-nav {
    gap: 6px;
  }
  body .site-header .ap-nav #site-nav-cross .nav-cross-full { display: none; }
  body .site-header .ap-nav #site-nav-cross .nav-cross-short { display: inline; }
  body .site-header .ap-nav .site-nav-account {
    max-width: 5.5em;
    padding: 6px 10px;
  }
}

.site-nav-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  /* 指で押す下限の44px（40x40 だった） */
  width: 44px;
  height: 44px;
  padding: 0;
  border: none;
  border-radius: 12px;
  background: transparent;
  color: var(--text, #1d1d1f);
  cursor: pointer;
  transition: background 0.15s ease;
}
.site-nav-toggle:hover {
  background: rgba(0, 0, 0, 0.05);
}
.site-nav-toggle svg {
  width: 23px;
  height: 23px;
}
/* 通知の赤い点（2026-09-17）。未読メッセージ・未回答のふりかえりがあるときだけ js/site-nav.js が has-dot を付ける。
   ハンバーガーは3本線の右上に重ね、白いふちで線から切り離す（線と点がくっつくと形が読めない） */
.site-nav-toggle { position: relative; }
.site-nav-toggle.has-dot::after,
.site-nav-item.has-dot::after {
  content: "";
  flex-shrink: 0;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #e5392f;
}
.site-nav-toggle.has-dot::after {
  position: absolute;
  top: 8px;
  right: 7px;
  box-shadow: 0 0 0 2px #fff;
}

/* ---- ドロワー本体 ---- */
.site-nav-drawer {
  position: fixed;
  inset: 0;
  z-index: 1000;
}
.site-nav-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(15, 25, 45, 0.42);
  opacity: 0;
  transition: opacity 0.24s ease;
}
.site-nav-drawer.is-open .site-nav-backdrop {
  opacity: 1;
}
.site-nav-panel {
  position: absolute;
  top: 0;
  right: 0;
  width: min(310px, 84vw);
  height: 100%;
  display: flex;
  flex-direction: column;
  background: #fff;
  box-shadow: -18px 0 50px rgba(15, 25, 45, 0.16);
  transform: translateX(100%);
  transition: transform 0.24s cubic-bezier(0.22, 0.7, 0.3, 1);
  overflow-y: auto;
}
.site-nav-drawer.is-open .site-nav-panel {
  transform: translateX(0);
}
@media (prefers-reduced-motion: reduce) {
  .site-nav-backdrop,
  .site-nav-panel {
    transition: none;
  }
}

/* 開いている間は後ろのページをスクロールさせない */
body.site-nav-locked {
  overflow: hidden;
}

.site-nav-panel-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 16px 12px;
}
.site-nav-panel-title {
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.08em;
  color: var(--text-light, #6e6e73);
}
.site-nav-close {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  padding: 0;
  border: none;
  border-radius: 10px;
  background: transparent;
  color: var(--text, #1d1d1f);
  cursor: pointer;
}
.site-nav-close:hover {
  background: rgba(0, 0, 0, 0.05);
}
.site-nav-close svg {
  width: 19px;
  height: 19px;
}

.site-nav-list {
  list-style: none;
  margin: 0;
  padding: 4px 12px 0;
  flex: 1 1 auto;
}
.site-nav-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  width: 100%;
  padding: 16px 16px;
  border: none;
  border-radius: 14px;
  background: transparent;
  font-family: inherit;
  font-size: 14.5px;
  font-weight: 700;
  color: var(--text, #1d1d1f);
  text-align: left;
  text-decoration: none;
  cursor: pointer;
}
.site-nav-item:hover {
  background: var(--bg, #f5f7fa);
}
.site-nav-item.is-active {
  background: var(--accent-blue-bg, #e8f1ff);
  color: var(--primary-dark, #16418a);
}
.site-nav-item.is-soon {
  color: var(--text-light, #6e6e73);
}
.site-nav-badge {
  flex-shrink: 0;
  padding: 2px 8px;
  border-radius: 999px;
  background: var(--bg, #f5f7fa);
  font-size: 11.5px; /* 10.5→11.5px（2026-09-17）。サイトでいちばん小さい文字だった */
  font-weight: 700;
  color: var(--text-light, #6e6e73);
}
.site-nav-soon-note {
  margin: 2px 16px 0;
  padding: 12px 12px;
  border-radius: 12px;
  background: #fff8e8;
  border: 1px solid #f3e0b5;
  font-size: 12px;
  line-height: 1.7;
}

.site-nav-foot {
  padding: 16px 16px 22px;
  border-top: 1px solid rgba(0, 0, 0, 0.07);
  margin-top: 12px;
}
.site-nav-logout {
  width: 100%;
  padding: 12px;
  border: 1px solid var(--line, #e0e6ed);
  border-radius: 12px;
  background: #fff;
  font-family: inherit;
  font-size: 13.5px;
  font-weight: 700;
  color: var(--text-light, #6e6e73);
  cursor: pointer;
}
.site-nav-logout:hover:not(:disabled) {
  background: #fff5f5;
  border-color: #f0c9c9;
  color: #c62828;
}
.site-nav-logout:disabled {
  opacity: 0.5;
  cursor: default;
}
.site-nav-legal {
  display: flex;
  gap: 16px;
  justify-content: center;
  margin-top: 16px;
}
.site-nav-legal a {
  font-size: 12.5px; /* 11.5→12.5px（2026-09-17）。押す的でもあるので小さすぎない */
  color: var(--text-light, #6e6e73);
}

/* ===== 入力とボタンの当たり判定・余白のリズム（2026-08-06） =====
   375px で実測したところ、フォームの入力欄はすべて42pxで、指で押す下限の
   44pxを満たしていなかった（padding 12px + 文字14.4px + 枠2px）。
   余白も 6/10/14/18px が混在し、4の倍数から外れていた。
   4pt刻みにそろえると、縦のリズムが1つの規則で説明できる。 */
.form-group input,
.form-group select,
.form-group textarea {
  min-height: 44px;
}
.form-group {
  /* 18px → 16px。4の倍数にそろえる */
  margin-bottom: 16px;
}
.form-group label {
  /* 6px → 8px。ラベルと入力の距離は、項目どうしの距離(16px)の半分にして
     「ラベルはこの入力のもの」と見えるようにする */
  margin-bottom: 8px;
}

/* チェックボックスとラジオは、入力欄の 44px 指定の対象外にする。
   まとめて min-height を当てたら四角が巨大になり、ラベルが次の行へ押し出された */
.form-group input[type="checkbox"],
.form-group input[type="radio"],
.checkbox-label input,
.radio-chip input {
  min-height: 0;
  width: auto;
}

/* ============================================================
   アイコン（2026-08-07：絵文字からSVGへ）
   ------------------------------------------------------------
   絵文字は端末ごとに絵柄・色・太さが違う。同じ画面でも見る人によって
   線の太さがバラバラになり、揃っていない印象になる。線画のSVGに統一した。
   定義は js/icons.js（HTMLには同じ形を直接書いてある）。

   大きさは em で指定する。置いた場所の文字サイズに追従するので、
   文字だけ大きくしてアイコンが取り残される、が起きない。
   色は currentColor なので、hover や is-active の色替えにも自動でついてくる。
   ============================================================ */
.icon {
  width: 1.15em;
  height: 1.15em;
  flex: 0 0 auto;
  display: inline-block;
  vertical-align: -0.18em;
}

/* ===== 「行ける日がない方へ」の候補日カレンダー（company.js） ===== */
/* 【2026-09-16】内側の余白は 14px だった。カレンダーは7列なので、余白と
   マスの間隔がそのまま1マスの大きさに効く。35px しかなく、指で押す下限（44px）を
   下回っていた。日付は押し間違えると別の日で申し込むことになるので、ここは詰める */
.consult-cal-wrap { margin: 12px 0 4px; padding: 14px 8px; border: 1px solid #e3eaf3; border-radius: 12px; background: #f8fafc; }
.consult-cal-lead { margin: 0 0 12px; font-size: 14px; color: #5b6b7a; }
.consult-cal-lead strong { color: var(--primary); }
/* 「選んだ日は応募と同時に届く」の説明（2026-08-24）。
   カレンダーの下に置く。送る前に何が起きるかが分からないと、
   選ぶだけで応募されるのかと不安になって手が止まる */
.consult-cal-note { margin: 12px 0 0; font-size: 12.5px; line-height: 1.7; color: #5b6b7a; }
/* 「あと◯日選べます」。チップの並びに馴染ませつつ、押せるものではないと分かる色 */
.sched-picked-rest { font-size: 12.5px; color: #8a94a6; margin-left: 4px; }
.sched-cal-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 10px; }
.sched-cal-title { font-weight: 800; font-size: 15px; }
.sched-nav { width: 34px; height: 34px; border-radius: 8px; border: 1px solid #d5dee8; background: #fff; color: var(--primary); font-size: 18px; cursor: pointer; }
.sched-nav:hover:not(:disabled) { background: #eef4ff; }
.sched-nav:disabled { opacity: 0.35; cursor: default; }
/* 【minmax(0, 1fr) にしてある（2026-09-22）】`1fr` は「最小でも中身の幅」なので、
   下の .sched-cell が持つ aspect-ratio と min-height:44px から**幅 44px の最小**が伝わり、
   7列 × 44px ＋ 隙間 = 326px が要求されていた。カードの中は 390px の端末で 290px しかなく、
   **土曜の列が外にはみ出して切れていた**（スマホで日が選べない・2026-09-22 オーナー報告）。
   列を minmax(0, 1fr) に、マスに min-width: 0 を入れて、狭いときは縮むようにする。 */
.sched-grid { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 3px; }
.sched-wd { text-align: center; font-size: 12px; color: #8a94a6; padding: 4px 0; font-weight: 700; }
.sched-wd.is-sun { color: #d9534f; }
.sched-wd.is-sat { color: #2f6fed; }
.sched-cell {
  aspect-ratio: 1 / 1; display: flex; align-items: center; justify-content: center;
  border: 1px solid transparent; border-radius: 8px; background: #fff;
  color: #333; font-size: 15px; font-family: inherit; cursor: pointer; padding: 0;
  /* これが無いと、grid の中身の既定（min-width: auto）で上の aspect-ratio と
     min-height から幅 44px が下限として効き、列が縮まずに外へあふれる */
  min-width: 0;
}
/* 【高さだけ 44px を守る（2026-09-22 に書き直し）】指で押す下限は 44px だが、
   7列ぶんの幅は 390px の端末では取れない。**横は縮め、縦は 44px を保つ**。
   横 41px × 縦 44px なら、隣の日を押し間違える距離ではない（隙間 3px も効いている）。
   以前はここで幅まで 44px を要求してしまい、土曜が画面の外に出ていた */
.sched-cell:not(.is-empty) { min-height: 44px; }
.sched-cell:hover:not(:disabled):not(.is-empty):not(.is-picked) { background: #e3edff; }
.sched-cell.is-picked { background: var(--primary); color: #fff; font-weight: 800; }
.sched-cell:disabled { opacity: 0.3; cursor: default; background: none; }
.sched-cell.is-empty { background: none; cursor: default; }
.sched-picked { margin-top: 14px; font-size: 14px; line-height: 2; }
.sched-picked-label { color: var(--text-light); margin-right: 4px; }
.sched-chip { display: inline-block; background: #e3edff; color: #1b56b0; font-weight: 700; border-radius: 999px; padding: 4px 12px; margin: 0 6px 6px 0; }
.sched-picked-empty { color: #8a94a6; }

/* ===== ページ全面のロード画面（2026-08-24） =====
   全面ロード中は「ヘッダー＋これだけ」を出す（オーナー指示）。
   以前は「読み込み中です…」の文字だけで、止まっているのか
   動いているのか区別が付かなかった。動く図形で「働いている」と伝える。

   形が円→多角形→円と変わりながら回るスピナー。
   色はサイトの --primary（青）。対象は company-admin / chat /
   company / company-profile の4ページの全面ロードだけで、
   ダッシュボード内の部分的な「読み込み中…」（一覧のプレースホルダ）は
   文字のまま（画面の主役ではないので、動くものを増やさない）。 */
.page-loading {
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 20px; padding: 20px; text-align: center;
  /* 【画面の縦中央に置く（2026-08-24・オーナー指摘）】
     以前は上からの余白（18vh）で置いていたため、中身が短い＝ページが低く、
     **フッターがロード中だけ画面の上のほうへ迫り上がって見えていた。**
     ヘッダー（約60px）を引いた画面いっぱいの高さを確保して中央寄せする。
     これでフッターは必ず画面の下（スクロールしないと見えない位置）に落ち、
     読み込みが終わると本来の位置に戻る。
     svh はスマホのアドレスバーを除いた実際の見えている高さ。
     未対応ブラウザは直前の vh 行が効く（少し下にはみ出るだけで無害） */
  min-height: calc(100vh - 160px);
  min-height: calc(100svh - 160px);
}
.page-loading p { margin: 0; font-size: 15px; font-weight: 700; color: var(--text-light); }
.morph-spinner {
  width: 48px; height: 48px; background: var(--primary);
  animation: smoothMorph 3s ease-in-out infinite;
}
@keyframes smoothMorph {
  0%   { transform: scale(1)    rotate(0deg);   border-radius: 50%; }
  20%  { transform: scale(0.9)  rotate(72deg);  border-radius: 35%; }
  40%  { transform: scale(1.1)  rotate(144deg); border-radius: 15%; }
  60%  { transform: scale(0.85) rotate(216deg); border-radius: 8%; }
  80%  { transform: scale(1.05) rotate(288deg); border-radius: 25%; }
  100% { transform: scale(1)    rotate(360deg); border-radius: 50%; }
}
/* 動きを減らす設定の人には回さない（酔い対策）。丸のまま淡く明滅させる */
@media (prefers-reduced-motion: reduce) {
  .morph-spinner { animation: spinnerPulse 2s ease-in-out infinite; border-radius: 50%; }
  @keyframes spinnerPulse { 0%, 100% { opacity: 1; } 50% { opacity: 0.35; } }
}


/* ===== 面談の候補日と、日ごとの参加できる時間枠（2026-09-06） =====
   1時間刻みで10枠 × 3日 ＝ 30個ある。**全部を開いて並べない。**
   開くのは1日だけで、閉じている日は「9月7日（月） 18:00〜20:00」の
   1行に畳む。畳んだままでも何を選んだかが読めるので、
   3日ぶんを見直すのに開き直さなくてよい。 */
.cal-days { list-style: none; margin: 12px 0 0; padding: 0; }
.cal-day {
  border: 1px solid #dbe4ef;
  border-radius: 12px;
  background: #fff;
  margin-bottom: 8px;
  overflow: hidden;
}
/* まだ時間を選んでいない日。**送れない状態が見た目で分かる** */
.cal-day.is-empty { border-color: #f0c2c2; }
.cal-day.is-open { border-color: var(--primary, #176dc1); }

.cal-day-head { display: flex; align-items: stretch; }
/* 行のほとんどが開閉ボタン。狙って押す必要がないほど広くする */
.cal-day-toggle {
  flex: 1 1 auto;
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 4px 10px 12px;
  border: none;
  background: none;
  font: inherit;
  text-align: left;
  cursor: pointer;
}
.cal-day-num {
  flex: 0 0 auto;
  width: 20px; height: 20px;
  display: inline-flex; align-items: center; justify-content: center;
  border-radius: 50%;
  background: var(--primary, #176dc1); color: #fff;
  font-size: 11.5px; font-weight: 800;
}
.cal-day-date { flex: 0 0 auto; font-size: 14px; font-weight: 800; }
/* 畳んでいるときに見える「何を選んだか」。**日付より右に、控えめに。**
   長い選択（「10:00〜13:00、18:00〜20:00」）でも1行に収める */
.cal-day-sum {
  flex: 1 1 auto;
  min-width: 0;
  font-size: 12px;
  color: var(--primary, #176dc1);
  font-weight: 700;
  text-align: right;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.cal-day.is-empty .cal-day-sum { color: #c0392b; }
.cal-day-caret {
  flex: 0 0 auto;
  color: #8a94a6;
  font-size: 12px;
  transition: transform .15s;
  transform: rotate(-90deg);
}
.cal-day-toggle[aria-expanded="true"] .cal-day-caret { transform: none; }
/* 候補から外す。開閉ボタンの中に入れ子にできない（button の中に button は
   置けない）ので、横に並べてある */
.cal-day-drop {
  flex: 0 0 auto;
  width: 40px;
  border: none; background: none; cursor: pointer;
  color: #8a94a6; font-size: 14px; line-height: 1;
}
.cal-day-drop:hover { background: #f1f4f8; color: #333; }

.cal-day-body { padding: 0 12px 12px; border-top: 1px solid #eef2f7; }
.cal-hours-lead { margin: 10px 0 8px; font-size: 12.5px; color: #5b6b7a; }
.cal-hours-lead strong { color: var(--primary, #176dc1); }

/* 【5列×2行に固定】10枠がちょうど収まる。折り返しに任せると
   端数の行だけボタンが横に伸びて、同じ重さの選択肢が違う大きさで並ぶ */
.cal-hours {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 5px;
}
.cal-hour {
  min-height: 40px;
  padding: 4px 2px;
  border: 1px solid #dbe4ef;
  border-radius: 8px;
  background: #fff;
  font: inherit;
  font-size: 12.5px;
  font-weight: 700;
  color: #33404f;
  cursor: pointer;
  transition: background .12s, border-color .12s, color .12s;
}
.cal-hour:hover { border-color: var(--primary, #176dc1); }
.cal-hour.is-on {
  background: var(--primary, #176dc1);
  border-color: var(--primary, #176dc1);
  color: #fff;
}

/* 「終日可能」は10枠すべてと同じ意味で、他と同時には選べない。
   格子の中に入れると11個目の枠に見えるので、行を分けて全幅にする */
.cal-allday {
  display: block;
  width: 100%;
  min-height: 40px;
  margin-top: 5px;
  padding: 8px;
  border: 1px dashed #b9c8dc;
  border-radius: 8px;
  background: #fff;
  font: inherit;
  font-size: 12.5px;
  font-weight: 700;
  color: #33404f;
  cursor: pointer;
}
.cal-allday:hover { border-color: var(--primary, #176dc1); }
.cal-allday.is-on {
  background: var(--primary, #176dc1);
  border-color: var(--primary, #176dc1);
  border-style: solid;
  color: #fff;
}

.sched-picked-rest { margin: 0 0 10px; font-size: 13px; color: #8a94a6; }

/* 狭い画面では時刻の文字を少しだけ詰める（12pxを下限に保つ） */
@media (max-width: 380px) {
  .cal-hour { font-size: 12px; }
  .cal-day-sum { font-size: 11.5px; }
}

/* ログインしている人にだけ出すメニュー項目（2026-09-16）。
   クラスは js/site-nav.js の applyAuthState が body に付ける。
   認証が取れないときは未ログイン扱い＝出さない（ヘッダーのボタンと同じ扱い） */
body:not(.is-signed-in) .site-nav-list li[data-auth] { display: none; }

/* 未ログインのときにメニューの下へ出す入口 */
.site-nav-login {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  border-radius: 999px;
  background: var(--primary);
  color: #fff;
  font-size: 14px;
  font-weight: 700;
  text-decoration: none;
}
.site-nav-login[hidden] { display: none; }

/* キーボードで辿ったときの印（2026-09-16）。
   自分で組み立てた押せるもの（トップの条件バーの値ボタン、体験内容のカード）は
   ブラウザ既定の枠が出ないようにしてあり、どこにいるか分からなかった。
   :focus-visible なので、指やマウスで押したときには出ない */
body.top-apple .ap-search-value:focus-visible,
body.top-apple .flipcard:focus-visible,
body.top-apple .ap-search-opt:focus-visible {
  outline: 2px solid var(--primary);
  outline-offset: 2px;
  border-radius: 8px;
}

/* 3日選び終えたあとに4つ目を押したときの案内（2026-09-16）。
   それまでは何も起きず、なぜ選べないのかが画面に出ていなかった */
.sched-limit-note {
  margin: 10px 0 0;
  padding: 9px 12px;
  border-radius: 10px;
  background: #fff6e5;
  color: #7a4b00;
  font-size: 13px;
  line-height: 1.7;
}
.sched-limit-note[hidden] { display: none; }

/* 運営会社ページの表（2026-09-17）。
   項目名の列に width:9em が入っているため、390px では中身の列に 180px しか残らず、
   「東京都千代田区四番町2 / 番地1」「代表取締役社長　中野 / 敬太」のように
   意味の切れ目でないところで折り返していた。
   狭い画面では項目名と中身を縦に積み、中身に画面いっぱいの幅を渡す。
   **!important が要るのは、幅と余白が HTML の style 属性で直接指定されているため。** */
@media (max-width: 560px) {
  .info-table th,
  .info-table td {
    display: block;
    width: auto !important;
  }
  .info-table th { padding: 14px 0 2px !important; }
  .info-table td { padding: 0 0 14px !important; }
}

/* 規約・プライバシーポリシー・運営会社の節見出し（2026-09-17）。
   .section h2 は中央ぞろえ・28px・太さ900で、本文（左ぞろえ）と基準の線がずれていた。
   文書として読むものなので左にそろえ、一段小さくする。
   **管理画面も .section h2 を使うので、.ap-container の中のものだけに当てる**
   （規約系だけが .ap-container を使っている。admin/company-admin は使っていない）。 */
.section .ap-container h2 {
  text-align: left;
  font-size: clamp(19px, 5.1vw, 23px);
  font-weight: 800;
  margin-top: 34px;
  letter-spacing: -0.01em;
}
.section .ap-container > p:first-child + h2,
.section .ap-container > h2:first-child {
  margin-top: 0;
}

/* ===== 生年月日の年・月・日（2026-09-22・オーナー指示）=====
   `input type=date` は端末ごとに操作が違い、スマホでは十数年前まで送るのが遠い。
   周りの欄（学年・分野・卒業予定年度）と同じ select にそろえた。
   .form-group select は width:100% なので、ここで3つに割り直す。
   年は4桁ぶん広く取る（「2005」が入りきらないと何の欄か分からない）。 */
.birthday-row { display: flex; gap: 6px; }
.form-group .birthday-row .birthday-part {
  width: auto;
  flex: 1 1 0;
  min-width: 0;   /* flex の中身は既定で縮まない。入れないと3つで画面をはみ出す */
  /* 横 16px のままだと、矢印に押されて「10日」の「日」が切れる（390px で実測） */
  padding-inline: 10px;
}
.form-group .birthday-row .birthday-part:first-child { flex: 1.5 1 0; }
