/* ------------------------------------------------------------
  設定（ここだけ触れば全体のトーンを調整できます）
------------------------------------------------------------ */
:root{
  /* 色 */
  --brand: #15b9bf;        /* ブランドのティール */
  --brand-ink: #eaffff;    /* ティール背景上の文字色（白系） */
  --text: #222;            /* 基本文字色 */
  --muted: #6b7479;        /* 補助文字 */
  --line: #e3e6e8;         /* 罫線 */
  --field: #d9d9d9;        /* 入力欄のグレー */
  --err: #d33;             /* エラーテキスト */

  /* 背景（KV/ABOUTのミント系） */
  --mint-1:#c9f3f6;
  --mint-2:#84e1e9;
  --mint-soft-1:#e9fbfd;
  --mint-soft-2:#bfeff4;

  /* 幅 */
  --w-xl: 1200px;  /* ヘッダー/キービジュアルなど大きめ */
  --w-lg:  960px;  /* About/Outline/Service など本文系 */
  --w-md:  640px;  /* Contact などフォーム系 */

  /* 影など */
  --shadow-header: 0 2px 6px rgba(0,0,0,.06);

  /* ブレークポイント */
  --bp-md: 768px;
  --bp-sm: 480px;
}

/* ------------------------------------------------------------
  ベース
------------------------------------------------------------ */
*,
*::before,
*::after { box-sizing: border-box; }

html, body { margin: 0; padding: 0; color: var(--text); }

img { display: block; max-width: 100%; height: auto; }

/* 汎用コンテナ（用途別に幅を切り替え） */
.container { margin: 0 auto; padding: 40px 20px; }
.container--xl { max-width: var(--w-xl); }
.container--lg { max-width: var(--w-lg); }
.container--md { max-width: var(--w-md); }

/* 小見出しの共通トーン */
.eyebrow{
  font-size:12px;
  letter-spacing:.12em;
  color:#8a98a0;
  margin-bottom:6px;
}

/* ------------------------------------------------------------
  HEADER（横並び＋スクロール固定）
  マークアップ想定：
  <header class="header">
    <div class="header-inner container container--xl"> ... </div>
  </header>
------------------------------------------------------------ */
.header{
  position: sticky;            /* スクロール固定 */
  position: -webkit-sticky;
  top: 0;
  z-index: 1000;
  background: #fff;
  border-bottom: 1px solid #eee;
  box-shadow: var(--shadow-header);
}
.header-inner{
  display:flex;
  justify-content:space-between;
  align-items:center;
  gap:20px;
  padding:12px 20px;
}
.header-logo a{
  display:flex; align-items:center; gap:8px;
  text-decoration:none; color:#333; font-weight:700; font-size:18px;
}
.header-logo img{ height:24px; width:auto; }
.header-menu{ display:flex; gap:28px; }
.header-menu a{
  text-decoration:none; color:#333; font-size:14px; transition:color .2s;
}
.header-menu a:hover{ color: var(--brand); }

:root{ --header-h: 56px; } /* 実サイズに合わせて調整 */

/* ハンバーガー */
.hamburger{
  display:none;           /* PCで非表示、SPで表示（下の@mediaで切替） */
  position:relative;
  width:32px; height:24px;
  appearance:none; border:0; background:transparent; padding:0;
  cursor:pointer; -webkit-tap-highlight-color:transparent;
}
/* 1本のspanと疑似要素で3本線を作る */
.hamburger span,
.hamburger::before,
.hamburger::after{
  content:"";
  position:absolute; left:0; right:0;
  height:2px; background:#333; border-radius:2px;
  transition:transform .22s ease, opacity .22s ease, top .22s ease;
}
.hamburger span{ top:11px; }   /* 中央線 */
.hamburger::before{ top:3px; } /* 上線   */
.hamburger::after{  top:19px;} /* 下線   */

/* 開いた時は×に変形 */
.hamburger[aria-expanded="true"]::before{
  top:11px; transform:rotate(45deg);
}
.hamburger[aria-expanded="true"]::after{
  top:11px; transform:rotate(-45deg);
}
.hamburger[aria-expanded="true"] span{
  opacity:0;
}

/* SP：ドロワーメニュー */
@media (max-width: 768px){
  .hamburger{ display:inline-block; }

  .header-inner{ padding:12px 16px; }

  .header-menu{
    position: fixed;
    top: var(--header-h); left:0; right:0;
    background:#fff;
    border-top:1px solid #eee;
    display:flex; flex-direction:column; gap:0;
    padding:12px 20px 24px;
    /* ← ここがポイント：中身をスクロールできる */
    max-height: calc(100vh - var(--header-h));
    overflow-y: auto;

    /* 初期は非表示 */
    transform: translateY(-8px);
    opacity:0; visibility:hidden; pointer-events:none;
    transition: transform .2s ease, opacity .2s ease, visibility 0s .2s;
  }
  .header-menu.is-open{
    transform:none; opacity:1; visibility:visible; pointer-events:auto;
    transition: transform .2s ease, opacity .2s ease;
  }
  .header-menu a{
    padding:14px 4px; font-size:16px; border-bottom:1px solid #f2f2f2;
  }
  .header-menu a:last-child{ border-bottom:0; }
}



/* ------------------------------------------------------------
  KV（キービジュアル）
  マークアップ想定：
  <section class="kv">
    <div class="kv-inner container container--xl"><h1>...</h1></div>
  </section>
------------------------------------------------------------ */
.kv{
  background:
    radial-gradient(1000px 400px at 70% 20%, rgba(255,255,255,0.5), transparent 60%),
    radial-gradient(1200px 500px at 40% 70%, rgba(255,255,255,0.4), transparent 65%),
    linear-gradient(180deg, var(--mint-1) 0%, var(--mint-2) 100%);
  position: relative;
  overflow: hidden;
}
.kv-inner{
  min-height: 320px;
  display:flex; align-items:center;
  padding: 80px 20px;
}
.kv h1{
  margin:0;
  font-size: clamp(20px, 3.2vw, 34px);
  font-weight: 800;
  line-height: 1.6;
  color: var(--brand);
  letter-spacing: .02em;
  text-shadow: 0 1px 0 rgba(255,255,255,0.6);
}
@media (max-width: 768px){
  .kv-inner{ min-height:240px; padding:56px 16px; }
  .kv h1{ font-size:22px; line-height:1.8; }
}

/* ------------------------------------------------------------
  ABOUT（背景ミント＋Vision/Value）
  マークアップ想定：
  <section class="about">
    <div class="about-bg">
      <div class="container container--lg"> ... </div>
    </div>
  </section>
------------------------------------------------------------ */
.about{
  background:
    linear-gradient(90deg,#e8e8e8 0 16px,transparent 16px calc(100% - 16px),#e8e8e8 calc(100% - 16px)),
    linear-gradient(180deg, var(--mint-soft-1), var(--mint-soft-2));
  position: relative;
}
.about::before{
  content:"";
  position:absolute; inset:0 0 auto 0; height:10px;
  background:linear-gradient(90deg, rgba(39,184,193,.15), rgba(39,184,193,.5), rgba(39,184,193,.15));
}
.about-bg{
  background:
    radial-gradient(900px 300px at 75% 20%, rgba(255,255,255,.55), transparent 60%),
    radial-gradient(1100px 400px at 55% 65%, rgba(255,255,255,.45), transparent 65%);
}

/* セクション見出し */
.section-title{
  font-size:36px; line-height:1.2; font-weight:800;
  color:#2cb6c2; /* Aboutの見出しカラー */
  margin:4px 0 24px;
}

/* ブロック見出し（Vision/Value） */
.block{ margin-top:28px; }
.block + .block{ margin-top:42px; }
.block-title{
  font-size:28px; font-weight:700; letter-spacing:.02em; color:#1a2f36;
  padding:18px 0 14px; margin-bottom:18px;
  border-bottom:2px solid rgba(0,0,0,.08);
}

/* Vision */
.vision-lead{
  font-size:20px; font-weight:800; color:#0f3044;
  line-height:1.9; margin-bottom:12px;
}
.vision-text{ font-size:14px; color:#5e6a70; }

/* Value（定義リスト2カラム） */
.values{ display:grid; gap:18px; margin-top:12px; }
.value{
  display:grid;
  grid-template-columns: 30% 1fr; /* 左：項目 / 右：説明 */
  gap:24px 28px;
  padding:14px 0;
  border-bottom:1px solid rgba(0,0,0,.08);
}
.values .value:last-child{ border-bottom:none; }
.values dt{ font-weight:800; color:#0f3044; line-height:1.9; }
.values dd{ margin:0; color:#4c5d62; line-height:1.9; font-size:14px; }

@media (max-width: 768px){
  .section-title{ font-size:30px; }
  .block-title{ font-size:24px; }
  .vision-lead{ font-size:18px; }
  .value{ grid-template-columns: 1fr; gap:6px; }
  .values dt{ font-size:16px; }
}

/* ------------------------------------------------------------
  OUTLINE（会社概要テーブル）
  マークアップ想定：
  <section class="outline">
    <div class="container container--lg"> ... </div>
  </section>
------------------------------------------------------------ */
.outline-title{
  margin-top:6px; font-size:34px; line-height:1.2; font-weight:800;
  color: var(--brand);
}
.outline-list{ margin-top:28px; border-top:1px solid var(--line); }
.outline-list .row{
  display:grid; grid-template-columns:160px 1fr;
  gap:24px; align-items:center;
  padding:18px 0; border-bottom:1px solid var(--line);
}
.outline-list dt{ color:#3a4449; font-weight:700; letter-spacing:.02em; }
.outline-list dd{ color:var(--text); line-height:1.9; font-feature-settings:"palt"; }
.outline-list dd .muted{ color:#586268; }

@media (max-width: 768px){
  .outline-title{ font-size:30px; }
  .outline-list .row{ grid-template-columns:120px 1fr; padding:16px 0; }
}
@media (max-width: 480px){
  .outline-list .row{ grid-template-columns: 1fr; gap:8px; align-items:start; }
  .outline-list dt{ color:#68747a; }
}

/* ------------------------------------------------------------
  MESSAGE（代表挨拶）
------------------------------------------------------------ */
.message{
  background:#fff;
  position:relative;
}
.message .container{ padding-top: 40px; padding-bottom: 40px; }
.message-title{
  font-size:34px; line-height:1.2; font-weight:800;
  color: var(--brand);
  margin: 6px 0 24px;
}

/* レイアウト */
.message-grid{
  display:grid;
  grid-template-columns: 44% 1fr;  /* 左：写真 / 右：テキスト */
  gap: 28px;
  align-items: start;
}

/* 写真のフレーム表現（右下にティールの角飾り） */
.message-photo{
  margin:0;
  position:relative;
  isolation:isolate;
}
.message-photo img{
  width:100%;
  height:auto;
  display:block;
  border-radius: 4px;
  box-shadow: 0 6px 18px rgba(0,0,0,.06);
}
/* 右下のアクセント枠 */
.message-photo::after{
  content:"";
  position:absolute;
  right:-12px; bottom:-12px;
  width: 86%;
  height: 26%;
  background: var(--brand);
  z-index:-1;
  border-radius: 2px;
  opacity:.9;
}

/* 本文 */
.message-body{ color:#334047; }
.message-quote{
  font-weight:800;
  color:#0f3044;
  margin:4px 0 12px;
}
.message-body p{
  line-height:1.9;
  margin: 0 0 12px;
  font-size:14px;
}
.message-sign{
  margin-top: 18px;
  text-align:right;
  font-feature-settings: "palt";
}

/* SP レスポンシブ */
@media (max-width: 768px){
  .message-title{ font-size:30px; }
  .message-grid{
    grid-template-columns: 1fr;
    gap: 18px;
  }
  .message-photo::after{
    right:-10px; bottom:-10px;
    width: 70%;
    height: 18%;
  }
}

/* ------------------------------------------------------------
  CASES（他社事例）＋画像追加対応
------------------------------------------------------------ */
.cases { background:#fff; position:relative; }
.cases .container { padding-top: 40px; padding-bottom: 40px; }

.cases-title{
  font-size:34px; font-weight:800; color:var(--brand);
  margin:6px 0 20px;
}

.case{
  background:#fff;
  border:1px solid var(--line);
  border-radius:10px;
  padding:24px;
  box-shadow:0 6px 18px rgba(0,0,0,.04);
}

.case p {
font-size:12px;
}

.case-head{
  display:grid;
  grid-template-columns:auto 1fr;
  gap:14px;
  align-items:center;
  margin-bottom:12px;
}
.case-title{
  margin:0;
  font-size:18px;
  line-height:1.6;
  font-weight:800;
  color:#0f3044;
}
.case .chip{ box-shadow:0 0 0 2px rgba(0,0,0,.05) inset; }

/* 写真 */
.case-photo{
  margin:16px 0 22px;
  position:relative;
  border-radius:8px;
  overflow:hidden;
}
.case-photo img{
  width:100%;
  height:auto;
  display:block;
  border-radius:8px;
  box-shadow:0 4px 12px rgba(0,0,0,.08);
}

/* メタ情報 */
.case-meta{
  margin:10px 0 20px;
  border-top:1px solid var(--line);
  border-bottom:1px solid var(--line);
}
.case-meta .row{
  display:grid;
  grid-template-columns:160px 1fr;
  gap:20px;
  align-items:start;
  padding:12px 0;
  border-bottom:1px solid var(--line);
}
.case-meta .row:last-child{ border-bottom:none; }
.case-meta dt{ font-weight:700; color:#3a4449; }
.case-meta dd{ margin:0; color:#334047; }

/* 本文レイアウト */
.case-grid{
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:28px;
  margin-top:16px;
}
.case-block-title{
  font-size:14px;
  font-weight:800;
  color:#1a2f36;
  margin:12px 0 8px;
  padding-top:6px;
  border-top:2px solid rgba(0,0,0,.06);
}
.case-list{  margin:0 0 12px; color:#334047; font-size:12px; }
.case-list li{ margin:6px 0; line-height:1.8; }

/* 成果チェックマーク */
.case-list.is-check li{
  list-style:none;
  position:relative;
  padding-left:22px;
}
.case-list.is-check li::before{
  content:"";
  position:absolute;
  left:0; top:.45em;
  width:14px; height:10px;
  border-left:3px solid var(--brand);
  border-bottom:3px solid var(--brand);
  transform:rotate(-45deg);
}

/* お客様の声 */
.voice{
  margin-top:16px;
  background:linear-gradient(180deg, var(--mint-soft-1), var(--mint-soft-2));
  border-left:4px solid var(--brand);
  border-radius:8px;
}
.voice blockquote{
  margin:0;
  padding:14px 14px 8px;
}
.voice p{ margin:0 0 8px; font-size:14px; color:#0f3044; }
.voice figcaption{
  font-size:12px;
  color:#6b7479;
  padding:0 14px 12px;
  text-align:right;
}

/* レスポンシブ */
@media (max-width: 768px){
  .case-head {
display:flex;
flex-direction: column;}
  .cases-title{ font-size:30px; }
  .case-meta .row{ grid-template-columns:120px 1fr; }
  .case-grid{ grid-template-columns:1fr; gap:18px; }
  .case-photo img{ border-radius:6px; }
}
@media (max-width: 480px){
  .case{ padding:16px; }
  .case-meta .row{ grid-template-columns:1fr; gap:6px; }
}


/* ------------------------------------------------------------
  SERVICE（事業内容カード）
  マークアップ想定：
  <section class="service">
    <div class="container container--lg"> ... </div>
  </section>
  - .service-card.is-teal ＝ 水色背景（文字は白）
  - .service-card.is-gray ＝ グレー背景（文字は水色）
------------------------------------------------------------ */
.service-title{
  font-size:34px; font-weight:800; color:var(--brand); margin-bottom:18px;
}
.for-clients{
  color:var(--brand); margin:8px 0 14px; font-weight:600;
}

/* カード共通 */
.service-card{
  border-radius:8px;
  padding:18px 18px 20px;
  margin:16px 0 20px;
}
.card-head{
  display:grid; grid-template-columns: 140px 1fr; gap:18px;
  align-items:center; margin-bottom:10px;
}
.card-title{ font-size:16px; font-weight:800; letter-spacing:.02em; border-bottom:1px solid}
.card-body p{ line-height:1.5; margin-top:6px; font-size:12px;}
.card-body .sub{ font-weight:800; margin-top:14px; border-bottom:1px solid;}

/* 左のラベル（白いチップ＋三角） */
.chip{
  display:inline-block; background:#fff; color:#222;
  font-weight:800; padding:8px 18px; border-radius:6px; position:relative;
  box-shadow:0 0 0 2px rgba(0,0,0,.04) inset;
}
.chip::after{
  content:""; position:absolute; top:50%; right:-10px; transform:translateY(-50%);
  border:10px solid transparent; border-left-color:#fff; /* 右向き三角 */
}

/* 配色：水色背景 → 白文字 */
.service-card.is-teal{
  background: var(--brand);
  color: var(--brand-ink);
}
.service-card.is-teal .card-title,
.service-card.is-teal .card-body{ color: var(--brand-ink); }

/* 配色：グレー背景 → 水色文字 */
.service-card.is-gray{
  background:#ececec;
  color: var(--brand);
}
.service-card.is-gray .card-title,
.service-card.is-gray .card-body{ color: var(--brand); }
.service-card.is-gray .chip{ box-shadow:0 0 0 2px rgba(0,0,0,.05) inset; }

.service-card .card-body p + p{ margin-top:14px; }

@media (max-width: 768px){
  .card-head{ grid-template-columns:120px 1fr; }
}
@media (max-width: 480px){
  .service-title{ font-size:30px; }
  .card-head{ grid-template-columns:1fr; gap:16px; }
  .chip{ width:max-content; }
}

/* ------------------------------------------------------------
  CONTACT（お問い合わせフォーム）
  マークアップ想定：
  <section class="contact">
    <div class="container container--md"> ... </div>
  </section>
------------------------------------------------------------ */
.contact .title{
  font-size:34px; font-weight:800; color:var(--brand); margin-bottom:20px;
}
.form{ display:grid; gap:0px; color:var(--text); }
.field{ display:grid; gap:8px; }
.field label, .field legend{ font-size:14px; color:#3a4246; font-weight:700; margin-bottom: 8px;}

/* 入力欄 */
input[type="text"],
input[type="email"],
input[type="tel"],
textarea{
  width:100%;
  padding:12px 14px;
  background: var(--field);
  border:1px solid var(--line);
  border-radius:0;
  outline:none;
  font:inherit;
}
textarea{ resize:vertical; min-height: 140px; }

/* ラジオ行 */
.radio-list{ display:grid; gap:0px; }
.radio-row{
  display:flex; align-items:center; gap:12px;
  background: var(--field);
  border:1px solid var(--line);
  padding:10px 14px; cursor:pointer;
}
.radio-row input{ position:absolute; opacity:0; pointer-events:none; }
.radio-ui{
  width:18px; height:18px; border:2px solid #666; border-radius:50%;
  display:inline-block; position:relative; flex:0 0 18px;
}
.radio-row input:checked + .radio-ui::after{
  content:""; position:absolute; inset:3px; border-radius:50%; background:#333;
}
.radio-text{ color:#111; }

/* 送信ボタン */
.submit{
  display:block; width:100%;
  padding:12px 16px; border:none; cursor:pointer;
  background: var(--brand); color:#fff; font-weight:700;
  text-align: center;
}
.submit:disabled{ opacity:.6; cursor:not-allowed; }

/* メッセージ */
.err{ color:var(--err); font-size:12px; min-height:1em; }
.note{ margin-top:6px; color:var(--muted); }

/* Contact 見出しのSP調整 */
@media (max-width: 480px){
  .contact .title{ font-size:30px; }
}

/* ------------------------------------------------------------
  余白の調整（必要に応じて）
  - About/Service/Outline は .container--lg（幅960）
  - Contact は .container--md（幅640）
  - Header/KV は .container--xl（幅1200）
------------------------------------------------------------ */

/* ==== テーマの初期値（未選択時） ==== */
.contact {
  --topic-accent: var(--brand);         /* ボタンや選択中行の基調色 */
  --topic-ink: #fff;                    /* アクセント上の文字色 */
  --topic-bg-soft: transparent;         /* フォーム背面のうっすら背景 */
}

/* ==== 値ごとにテーマ切り替え（CSSだけでOK） ==== */
.contact:has(input[name="topic"][value="人材紹介について"]:checked){
  --topic-accent:#15b9bf;               /* ティール */
  --topic-bg-soft:#e8fafb;
}
.contact:has(input[name="topic"][value="コンサルティングについて"]:checked){
  --topic-accent:#6e5fd3;               /* パープル */
  --topic-bg-soft:#f1effd;
}
.contact:has(input[name="topic"][value="育成・研修について"]:checked){
  --topic-accent:#f08a1e;               /* オレンジ */
  --topic-bg-soft:#fff3e6;
}
.contact:has(input[name="topic"][value="その他"]:checked){
  --topic-accent:#6b7479;               /* グレー */
  --topic-bg-soft:#f5f6f7;
}

/* ==== フォームエリアの背景をほんのり変更（任意） ==== */
.contact .container.container--md{
  background: var(--topic-bg-soft);
  border-radius: 12px;
  transition: background .25s ease;
}

/* ==== 選択中のラジオ行を強調 ==== */
.radio-row{
  display:flex; align-items:center; gap:12px;
  background: var(--field);
  border:1px solid var(--line);
  padding:10px 14px; cursor:pointer;
  border-radius: 6px;
  transition: background .2s ease, color .2s ease, border-color .2s ease;
}

/* チェックされた行だけ色反転（背景：アクセント／文字：白） */
.radio-row:has(input:checked){
  background: var(--topic-accent);
  border-color: transparent;
  color: var(--topic-ink);
}

/* 行内のテキスト色＆カスタム丸を反転 */
.radio-row:has(input:checked) .radio-text{ color: var(--topic-ink); }
.radio-ui{
  width:18px; height:18px; border:2px solid #666; border-radius:50%;
  display:inline-block; position:relative; flex:0 0 18px;
  background: transparent;
  transition: border-color .2s ease, background .2s ease;
}
.radio-row:has(input:checked) .radio-ui{
  border-color: var(--topic-ink);
  background: transparent;
}
.radio-row input:checked + .radio-ui::after{
  content:""; position:absolute; inset:3px; border-radius:50%;
  background: var(--topic-ink);
}

/* ==== 送信ボタンもテーマ色に連動 ==== */
.submit{
  display:block; width:100%;
  padding:12px 16px; border:none; cursor:pointer;
  background: var(--topic-accent);
  color: var(--topic-ink);
  font-weight:700;
  transition: opacity .2s ease, transform .02s ease;
}
.submit:active{ transform: translateY(1px); }

/* ==== アクセシビリティ（キーボード操作時の枠） ==== */
.radio-row:focus-within{
  outline: 3px solid color-mix(in srgb, var(--topic-accent), #fff 60%);
  outline-offset: 2px;
}

/* 既存：.radio-text のデフォルト色は残す（選択時は上で反転） */
.radio-text{ color:#111; }

@media (max-width: 480px){
.br-sp {
display:none;
}
}

.br-pc {
display:block;
}