@charset "UTF-8";
/* =====================================================================
   NSP-Tech 共通スタイル（style.css）
   ---------------------------------------------------------------------
   ★色を変えたい場合：このファイル冒頭の :root { ... } の色コードを変更
   ★レイアウト/余白を変えたい場合：各セクションのCSSを編集
   ---------------------------------------------------------------------
   構成
     1. カラーテーマ・変数
     2. リセット・ベース
     3. ヘッダー / ナビ
     4. ボタン / 共通パーツ
     5. ヒーロー
     6. セクション共通
     7. About / Service / Value
     8. Interview カード・詳細
     9. NEWS 一覧・記事
    10. Recruit バナー
    11. お問い合わせフォーム
    12. SNS アイコン
    13. フッター
    14. アニメーション
    15. レスポンシブ（スマホ）
   ===================================================================== */


/* ===== 1. カラーテーマ・変数 ============================================ */
:root {
  /* メインカラー（NSP-Tech のアクセントカラー：上品ブルー（信頼感）） */
  --primary:        #166FC0;
  --primary-dark:   #0F548F;
  --primary-light:  #D6E5F2;
  --primary-bg:     #ffffff;

  /* テキスト */
  --text-main:      #1a1a1a;
  --text-sub:       #6b6b6b;
  --text-on-primary:#ffffff;

  /* グレー・枠 */
  --bg-soft:        #fafafa;
  --bg-grey:        #f4f4f4;
  --border:         #e8e8e8;
  --card-bg:        #ffffff;
  --card-shadow:    0 4px 20px rgba(0, 0, 0, 0.05);
  --card-shadow-hv: 0 10px 30px rgba(22, 111, 192, 0.12);

  /* フォント */
  --font-jp: "Noto Sans JP", "Hiragino Sans", "Yu Gothic", sans-serif;
  --font-en: "Montserrat", "Noto Sans JP", sans-serif;

  /* サイズ */
  --container-max: 1200px;
  --radius-pill:   9999px;
  --radius-card:   16px;
}


/* ===== 2. リセット・ベース ============================================== */
*,
*::before,
*::after { box-sizing: border-box; margin: 0; padding: 0; }

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  overflow-x: hidden;
  width: 100%;
}

body {
  font-family: var(--font-jp);
  color: var(--text-main);
  background: var(--primary-bg);
  line-height: 1.8;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  width: 100%;
  max-width: 100vw;
}

img, video {
  max-width: 100%;
  height: auto;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; height: auto; display: block; }
ul { list-style: none; }


/* ===== 3. ヘッダー / ナビ ============================================== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--border);
}

.header-inner {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 18px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  font-size: 22px;
  color: var(--text-main);
  letter-spacing: 0.02em;
  flex-shrink: 0;
  min-width: 0;
}
/* ロゴ画像（推奨：高さ 32〜36px の透過PNG/SVG） */
.logo-image {
  display: block;
  height: auto;
  max-height: 44px;
  width: auto;
  max-width: 240px;
  object-fit: contain;
  object-position: left center;
}
/* フッター（暗背景）でロゴを反転表示したい場合は filter を有効化
   .footer-brand .logo-image { filter: brightness(0) invert(1); }
*/

/* 旧スタイル：テキスト＋N の組み合わせ時用（HTML内で .logo-mark を使う場合のみ表示） */
.logo-mark {
  width: 32px;
  height: 32px;
  background: var(--primary);
  color: #fff;
  border-radius: 8px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-en);
  font-weight: 900;
  font-size: 16px;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 28px;
  font-size: 14px;
  font-weight: 500;
}
.nav-links a {
  position: relative;
  padding: 4px 0;
  transition: color 0.2s;
}
.nav-links a:hover { color: var(--primary); }
.nav-links a::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: -4px;
  height: 2px;
  background: var(--primary);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.25s ease;
}
.nav-links a:hover::after { transform: scaleX(1); }

.nav-links .nav-cta {
  background: var(--primary);
  color: #fff;
  padding: 10px 20px;
  border-radius: var(--radius-pill);
  font-weight: 600;
}
.nav-links .nav-cta::after { display: none; }
.nav-links .nav-cta:hover { background: var(--primary-dark); color: #fff; }

/* ハンバーガー（スマホ専用） */
.nav-toggle {
  display: none;
  background: transparent;
  border: none;
  cursor: pointer;
  width: 36px;
  height: 36px;
  flex-direction: column;
  justify-content: center;
  gap: 6px;
  padding: 0;
}
.nav-toggle span {
  display: block;
  height: 2px;
  background: var(--text-main);
  transition: transform 0.3s, opacity 0.3s;
}
.nav-toggle.is-open span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
.nav-toggle.is-open span:nth-child(2) { opacity: 0; }
.nav-toggle.is-open span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }


/* ===== 4. ボタン / 共通パーツ ========================================== */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 28px;
  border-radius: var(--radius-pill);
  background: var(--primary);
  color: var(--text-on-primary);
  font-weight: 600;
  font-size: 15px;
  transition: background 0.2s, transform 0.2s, box-shadow 0.2s;
  border: none;
  cursor: pointer;
  font-family: inherit;
}
.btn:hover {
  background: var(--primary-dark);
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(22, 111, 192, 0.25);
}
.btn .arrow { font-weight: 700; transition: transform 0.2s; }
.btn:hover .arrow { transform: translateX(4px); }

.btn-outline {
  background: transparent;
  color: var(--text-main);
  border: 1.5px solid var(--text-main);
}
.btn-outline:hover { background: var(--text-main); color: #fff; box-shadow: none; }

/* 小サイズボタン（高さを抑えたい場合）：class に btn-sm を追加 */
.btn-sm {
  padding: 9px 20px;
  font-size: 13px;
}

/* Aboutページ：ヒーロー（左テキスト＋右イラスト） */
.about-page-hero {
  background: var(--bg-soft);
  padding: 28px 0 32px;
}
.about-page-hero-inner {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 24px;
}
.about-page-hero-text .page-tag {
  font-family: var(--font-en);
  color: var(--primary);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.2em;
  margin-bottom: 14px;
}
.about-page-hero-text h1 {
  font-size: 30px;
  font-weight: 800;
  line-height: 1.4;
  letter-spacing: 0.02em;
  margin-bottom: 14px;
}
.about-page-hero-text p {
  color: var(--text-sub);
  font-size: 15px;
  line-height: 1.85;
}
.about-page-hero-art {
  display: flex;
  justify-content: center;
  align-items: center;
}
.about-page-hero-art svg,
.about-page-hero-art .about-hero-illustration {
  width: 100%;
  max-width: 560px;
  height: auto;
  color: #c9c9c9;
  display: block;
}
@media (max-width: 768px) {
  .about-page-hero { padding: 20px 0 24px; }
  .about-page-hero-inner { padding: 0 20px; }
  .about-page-hero-inner { grid-template-columns: 1fr; gap: 24px; }
  .about-page-hero-text h1 { font-size: 22px; }
  .about-page-hero-art svg,
  .about-page-hero-art .about-hero-illustration { max-width: 360px; }
}

/* Aboutページ：価値観リスト（Our Values の各項目） */
.values-list {
  margin-top: 28px;
  display: flex;
  flex-direction: column;
  gap: 32px;
  max-width: 880px;
}
.values-item h3 {
  font-size: 22px;
  font-weight: 800;
  line-height: 1.5;
  letter-spacing: 0.02em;
  margin-bottom: 12px;
  color: var(--text-main);
}
.values-item p {
  font-size: 14px;
  line-height: 1.9;
  color: var(--text-sub);
}


/* Aboutページ／サービスページ：Case Study カード（2カラム） */
.case-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 28px;
  margin-top: 28px;
}
.case-item {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: 12px;
  overflow: hidden;
  transition: transform 0.25s, box-shadow 0.25s, border-color 0.25s;
}
.case-item:hover {
  transform: translateY(-4px);
  border-color: var(--primary-light);
  box-shadow: var(--card-shadow-hv);
}
/* ★プロジェクト名ヘッダー（ブルー背景） */
.case-title-bar {
  background: var(--primary);
  color: #fff;
  padding: 14px 22px;
  min-height: 64px;
  display: flex;
  align-items: center;
}
.case-title-bar h3 {
  font-size: 15px;
  font-weight: 800;
  line-height: 1.5;
  color: #fff;
  letter-spacing: 0.01em;
}
.case-body {
  padding: 22px 26px 26px;
}
.case-meta {
  color: var(--primary);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.05em;
  margin-bottom: 12px;
}
.case-body p:not(.case-meta) {
  font-size: 13px;
  line-height: 1.85;
  color: var(--text-sub);
}
@media (max-width: 768px) {
  .case-grid { grid-template-columns: 1fr; gap: 20px; }
}

/* Aboutページ：データセクション（PDFダウンロードカード） */
.data-heading {
  font-size: 24px;
  font-weight: 800;
  line-height: 1.5;
  letter-spacing: 0.02em;
  margin-bottom: 8px;
  color: var(--text-main);
}
.data-lead {
  font-size: 14px;
  line-height: 1.9;
  color: var(--text-sub);
  margin-bottom: 24px;
}
/* 縦並びレイアウト：大きな表紙画像＋下部にダウンロードボタン */
.data-download-area {
  margin: 28px auto 0;
  max-width: 760px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 24px;
}
.data-cover-link {
  display: block;
  width: 100%;
  border: 1px solid var(--border);
  border-radius: 12px;
  overflow: hidden;
  background: var(--bg-grey);
  transition: transform 0.25s, box-shadow 0.25s, border-color 0.25s;
}
.data-cover-link:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.08);
  border-color: var(--primary-light);
}
.data-cover-img {
  width: 100%;
  height: auto;
  display: block;
  aspect-ratio: 16 / 10;
  object-fit: cover;
}
.data-download-btn-large {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 28px;
  background: var(--primary);
  color: #fff;
  border-radius: 6px;
  font-size: 14px;
  font-weight: 700;
  transition: background 0.2s, transform 0.2s, box-shadow 0.2s;
}
.data-download-btn-large:hover {
  background: var(--primary-dark);
  transform: translateY(-2px);
  box-shadow: 0 6px 18px rgba(22, 111, 192, 0.25);
  color: #fff;
}
@media (max-width: 640px) {
  .data-download-area { gap: 18px; align-items: stretch; }
  .data-download-btn-large { justify-content: center; padding: 12px 24px; font-size: 14px; }
}

@media (max-width: 768px) {
  .values-list { gap: 24px; }
  .values-item h3 { font-size: 17px; }
  .values-item p { font-size: 13px; line-height: 1.8; }
}

/* Aboutページ専用：装飾付きミッションヘッダー（左寄せ・コンパクト版） */
.mission-decorated {
  text-align: left;
  margin: 0 auto;
  padding: 16px 24px 28px;
  max-width: var(--container-max);
}
.mission-decorated .mission-label {
  display: flex;
  align-items: center;
  width: fit-content;
  gap: 14px;
  font-family: var(--font-en);
  color: var(--primary);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.05em;
  margin-bottom: 14px;
}
.mission-decorated .mission-label::after {
  content: "";
  width: 48px;
  height: 2px;
  background: var(--primary);
}
.mission-decorated .mission-heading {
  font-size: 24px;
  font-weight: 800;
  line-height: 1.7;
  letter-spacing: 0.04em;
  display: inline-block;
  padding: 0;
  color: var(--text-main);
}
/* ダブルクォート装飾は削除（プレーンなテキスト表示） */
.mission-decorated .mission-heading::before,
.mission-decorated .mission-heading::after {
  display: none;
}
@media (max-width: 768px) {
  .mission-decorated { padding: 24px 16px 40px; }
  .mission-decorated .mission-heading {
    font-size: 17px;
    padding: 0;
    line-height: 1.7;
  }
  .mission-decorated .mission-heading::before,
  .mission-decorated .mission-heading::after {
    font-size: 40px;
  }
  /* ダブルクォート装飾は削除（プレーンなテキスト表示） */
.mission-decorated .mission-heading::before,
.mission-decorated .mission-heading::after {
  display: none;
}
}

/* 矢印円＋テキスト型のリンクボタン（フラット） 例：「→  さらに詳しく知る」 */
.btn-arrow {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  color: var(--text-main);
  font-weight: 700;
  font-size: 15px;
  letter-spacing: 0.02em;
  transition: color 0.2s, gap 0.2s;
}
.btn-arrow::before {
  content: "→";
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--primary);
  color: #fff;
  font-size: 15px;
  font-weight: 700;
  flex-shrink: 0;
  transition: background 0.2s, transform 0.2s;
}
.btn-arrow:hover { color: var(--primary); gap: 18px; }
.btn-arrow:hover::before {
  background: var(--primary-dark);
  transform: translateX(2px);
}

.btn-row {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
}

/* パンくず */
.breadcrumb {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 16px 24px 20px;
  font-size: 13px;
  color: var(--text-sub);
}
.breadcrumb a { color: var(--primary); }
.breadcrumb a:hover { text-decoration: underline; }


/* ===== 5. ヒーロー（フルワイドカルーセル） ===========================
   3枚の画像が自動切替するキャリーセル形式。
   - .hero        … 外枠（高さ・サイズを管理）
   - .hero-slide  … 1枚分のスライド（画像＋キャッチコピー）
   - .hero-image  … 背景画像
   - .hero-caption… 画像上に重ねるテキストボックス
   - .hero-dots   … 下部のスライド切替ドット
================================================================== */
.hero {
  position: relative;
  width: 100%;
  height: 80vh;
  min-height: 480px;
  max-height: 800px;
  overflow: hidden;
  background: var(--bg-grey);
}

.hero-slides {
  position: relative;
  width: 100%;
  height: 100%;
}

.hero-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 1s ease;
  pointer-events: none;
}
.hero-slide.is-active {
  opacity: 1;
  pointer-events: auto;
  z-index: 1;
}

.hero-image {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  background-color: var(--bg-grey);
}
/* 画像と地面の境目を柔らかく見せる軽いグラデ */
.hero-image::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, rgba(0,0,0,0) 50%, rgba(0,0,0,0.15) 100%);
  pointer-events: none;
}

/* テキストオーバーレイ（リクルートさん風の白ボックス・横長スリム版） */
.hero-caption {
  position: absolute;
  left: 48px;
  bottom: 40px;                  /* ★PC位置（下からの距離。大きくすると上へ） */
  background: rgba(255, 255, 255, 0.95);
  padding: 14px 56px 14px 24px;  /* 右側に矢印ボタン用のスペースを確保 */
  max-width: 460px;              /* 横幅は据え置き */
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.08);
  /* スライド切替時の演出 */
  transform: translateY(24px);
  opacity: 0;
  transition: transform 0.9s 0.3s ease, opacity 0.9s 0.3s ease;
}
.hero-slide.is-active .hero-caption {
  transform: translateY(0);
  opacity: 1;
}

.hero-caption h1 {
  font-size: 22px;
  font-weight: 800;
  line-height: 1.35;
  margin-bottom: 4px;
  letter-spacing: 0.02em;
  color: var(--text-main);
}
.hero-caption p {
  color: var(--text-sub);
  font-size: 12px;
  margin-bottom: 0;              /* ★最下行に揃えるためマージンを削除 */
  line-height: 1.5;
}
/* 矢印ボタン：ボックスの右下に固定配置（小さめ） */
.hero-caption .hero-cta {
  position: absolute;
  right: 14px;
  bottom: 14px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;                    /* ★サイズダウン */
  height: 28px;
  border-radius: 50%;
  background: var(--primary);
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  transition: background 0.2s, transform 0.2s;
}
.hero-caption .hero-cta:hover {
  background: var(--primary-dark);
  transform: translateX(4px);
}

/* スライド切替ドット */
.hero-dots {
  position: absolute;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 12px;
  z-index: 5;
}
.hero-dots button {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  border: 2px solid #fff;
  background: transparent;
  cursor: pointer;
  padding: 0;
  transition: background 0.2s, transform 0.2s;
  box-shadow: 0 0 6px rgba(0, 0, 0, 0.2);
}
.hero-dots button:hover { background: rgba(255, 255, 255, 0.5); }
.hero-dots button.is-active {
  background: #fff;
  transform: scale(1.2);
}


/* ===== 6. セクション共通 ============================================== */
.section {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 96px 24px;
}
.section-narrow {
  max-width: 880px;
  margin: 0 auto;
  padding: 96px 24px;
}

.section-tag {
  color: var(--primary);
  font-family: var(--font-en);
  font-size: 13px;
  letter-spacing: 0.2em;
  font-weight: 700;
  margin-bottom: 12px;
}
.section-title {
  font-size: 36px;
  font-weight: 800;
  line-height: 1.4;
  margin-bottom: 16px;
  letter-spacing: 0.02em;
}
.section-lead {
  font-size: 16px;
  color: var(--text-sub);
  margin-bottom: 40px;
}
.section-header {
  margin-bottom: 48px;
}
.section-header.center { text-align: center; }
.section-header.center .section-lead { max-width: 640px; margin-left: auto; margin-right: auto; }

.page-hero {
  background: var(--bg-soft);
  padding: 28px 0 32px;
}
.page-hero-inner {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 24px;
  text-align: left;
}
.page-hero .page-tag {
  font-family: var(--font-en);
  color: var(--primary);
  font-size: 13px;
  letter-spacing: 0.2em;
  font-weight: 700;
  margin-bottom: 14px;
}
.page-hero h1 {
  font-size: 30px;
  font-weight: 800;
  line-height: 1.4;
  letter-spacing: 0.02em;
  margin-bottom: 14px;
}
.page-hero p {
  color: var(--text-sub);
  font-size: 15px;
  line-height: 1.85;
}
@media (max-width: 768px) {
  .page-hero { padding: 20px 0 24px; }
  .page-hero-inner { padding: 0 20px; }
  .page-hero h1 { font-size: 22px; }
}


/* ===== 7. About / Service / Value ===================================== */
/* 価値観カード（about） */
.value-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
/* 縦並び4カード版（サービスセクション）：横長スリムなカードを縦に積む
   ★Gridで「タイトル列」「説明列」を固定 → 4カードで先頭位置がぴたり揃う */
.value-grid-4 {
  grid-template-columns: 1fr;
  gap: 12px;
}
.value-grid-4 .value-card {
  display: grid;
  grid-template-columns: 320px 1fr;   /* ★タイトル列を固定（説明文も揃う） */
  column-gap: 32px;
  align-items: center;
  padding: 16px 28px;
}
.value-grid-4 .value-card h3 {
  font-size: 17px;
  font-weight: 700;
  margin: 0;
  white-space: nowrap;                /* タイトル改行なし */
  line-height: 1.5;
}
.value-grid-4 .value-card p {
  font-size: 13px;
  line-height: 1.6;
  margin: 0;
  color: var(--text-sub);
}
/* スマホは縦並び（タイトル上・説明下）で読みやすく */
@media (max-width: 640px) {
  .value-grid-4 .value-card {
    grid-template-columns: 1fr;       /* 1列に戻す */
    row-gap: 6px;
    padding: 14px 20px;
  }
  .value-grid-4 .value-card h3 {
    white-space: normal;              /* スマホでは改行を許容 */
  }
}
.value-card {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-card);
  padding: 36px 28px;
  transition: transform 0.25s, box-shadow 0.25s, border-color 0.25s;
}
.value-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--card-shadow-hv);
  border-color: var(--primary-light);
}
.value-card .value-num {
  font-family: var(--font-en);
  color: var(--primary);
  font-size: 14px;
  font-weight: 800;
  letter-spacing: 0.1em;
  margin-bottom: 16px;
}
.value-card h3 {
  font-size: 20px;
  font-weight: 700;
  margin-bottom: 12px;
}
.value-card p {
  color: var(--text-sub);
  font-size: 15px;
}

/* 価値観カード：コンパクト一行版（Aboutセクション専用）
   .value-grid に .value-grid-compact を併記すると有効 */
.value-grid-compact .value-card {
  padding: 18px 24px;                /* 高さを抑えてスリムに */
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.value-grid-compact .value-card h3 {
  display: flex;                     /* 番号とタイトルを1行に */
  align-items: baseline;
  gap: 12px;
  font-size: 17px;
  font-weight: 700;
  margin-bottom: 6px;
  letter-spacing: 0.02em;
  white-space: nowrap;               /* 1行を強制 */
}
.value-grid-compact .value-card .value-num {
  margin-bottom: 0;                  /* 通常版のmargin解除 */
  flex-shrink: 0;
  color: var(--primary);             /* カラーは変更なし */
}
.value-grid-compact .value-card p {
  font-size: 13px;
  line-height: 1.6;
  margin: 0;
}

/* サービスブロック */
.service-block {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-card);
  padding: 20px 32px;
  margin-bottom: 14px;
}
.service-block .service-en { margin-bottom: 6px; }
.service-block h2 { font-size: 22px; margin-bottom: 8px; }
.service-block p { font-size: 14px; line-height: 1.8; }
.service-block:nth-child(even) .service-image { order: 2; }
.service-block .service-en {
  font-family: var(--font-en);
  color: var(--primary);
  font-size: 13px;
  letter-spacing: 0.2em;
  font-weight: 700;
  margin-bottom: 12px;
}
.service-block h2 {
  font-size: 28px;
  font-weight: 800;
  margin-bottom: 16px;
}
.service-block h3 {
  font-size: 18px;
  margin-top: 24px;
  margin-bottom: 8px;
  color: var(--primary-dark);
}
.service-block p { color: var(--text-sub); }
.service-image {
  aspect-ratio: 4 / 3;
  border-radius: 12px;
  background: var(--bg-grey);
  background-size: cover;
  background-position: center;
}

/* 会社情報フレーム */
.company-frame {
  max-width: 900px;
  margin: 0 auto;
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-card);
  padding: 48px 56px;
}
.company-frame dl {
  display: grid;
  grid-template-columns: 200px 1fr;
  row-gap: 0;
  column-gap: 24px;
}
.company-frame dt {
  font-weight: 700;
  padding: 20px 0;
  border-bottom: 1px solid var(--border);
  color: var(--text-main);
  font-size: 14px;
}
.company-frame dd {
  padding: 20px 0;
  border-bottom: 1px solid var(--border);
  color: var(--text-sub);
}
.company-frame dt:last-of-type,
.company-frame dd:last-of-type { border-bottom: none; }


/* ===== STORY カード（note記事リンク用：16:9サムネイル＋タイトル） ===== */
.story-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.story-card {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-card);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  color: var(--text-main);
  transition: transform 0.25s, box-shadow 0.25s, border-color 0.25s;
}
.story-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--card-shadow-hv);
  border-color: var(--primary-light);
}
/* ★準備中カード（記事公開前のプレースホルダ表示） */
.story-card.is-coming-soon {
  cursor: default;
  pointer-events: none;
}
.story-card.is-coming-soon .story-thumb {
  /* 画像を非表示にしてフラットな「準備中」サムネに置き換え */
  background-image: none !important;
  background: repeating-linear-gradient(
    -45deg,
    var(--bg-grey),
    var(--bg-grey) 12px,
    #ececec 12px,
    #ececec 24px
  );
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}
.story-card.is-coming-soon .story-thumb::after {
  content: "準備中";
  display: inline-block;
  padding: 8px 22px;
  background: rgba(255, 255, 255, 0.92);
  color: var(--text-sub);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.2em;
  border: 1px solid var(--border);
  border-radius: var(--radius-pill);
}
.story-card.is-coming-soon .story-tag {
  color: var(--text-sub);
  letter-spacing: 0.18em;
}
.story-card.is-coming-soon .story-title {
  color: var(--text-sub);
}
.story-thumb {
  aspect-ratio: 16 / 9;       /* ★1280×720（16:9）のサムネイル枠 */
  background-size: cover;
  background-position: center;
  background-color: var(--bg-grey);
  background-repeat: no-repeat;
}
.story-body {
  padding: 18px 20px 22px;
  flex: 1;
}
.story-tag {
  font-size: 11px;
  letter-spacing: 0.15em;
  color: var(--primary);
  font-weight: 700;
  margin-bottom: 6px;
  font-family: var(--font-en);
}
.story-title {
  font-size: 16px;
  font-weight: 700;
  line-height: 1.55;
}
@media (max-width: 960px) {
  .story-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 640px) {
  .story-grid { grid-template-columns: 1fr; }
}

/* ===== 8. Interview カード・詳細 ====================================== */
.interview-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

.interview-card {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-card);
  overflow: hidden;
  transition: transform 0.25s, box-shadow 0.25s;
  display: flex;
  flex-direction: column;
}
.interview-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--card-shadow-hv);
}
.interview-photo {
  aspect-ratio: 4 / 5;
  background: var(--bg-grey);
  background-size: cover;
  background-position: center;
  position: relative;
  overflow: hidden;
}
.interview-photo::after {
  content: "INTERVIEW";
  position: absolute;
  left: 16px;
  bottom: 16px;
  font-family: var(--font-en);
  color: #fff;
  font-size: 11px;
  letter-spacing: 0.2em;
  font-weight: 800;
  padding: 6px 12px;
  background: var(--primary);
  border-radius: 4px;
}
.interview-body {
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  flex: 1;
}
.interview-meta {
  font-size: 12px;
  color: var(--text-sub);
  letter-spacing: 0.04em;
}
.interview-name {
  font-size: 22px;
  font-weight: 800;
  margin-top: 4px;
}
.interview-role {
  font-size: 13px;
  color: var(--primary);
  font-weight: 600;
}
.interview-catch {
  font-size: 18px;
  font-weight: 700;
  margin: 12px 0 4px;
  line-height: 1.6;
}
.interview-excerpt {
  font-size: 14px;
  color: var(--text-sub);
  flex: 1;
}
.interview-card .btn-detail {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--primary);
  font-weight: 700;
  font-size: 14px;
  margin-top: 12px;
  padding-top: 16px;
  border-top: 1px solid var(--border);
}

/* インタビュー詳細ページ */
.interview-detail {
  max-width: 880px;
  margin: 0 auto;
  padding: 60px 24px 80px;
}
.interview-detail-hero {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 40px;
  margin-bottom: 56px;
  align-items: center;
}
.interview-detail-photo {
  aspect-ratio: 4 / 5;
  border-radius: var(--radius-card);
  background: var(--bg-grey);
  background-size: cover;
  background-position: center;
}
.interview-detail-info .interview-meta { font-size: 13px; }
.interview-detail-info h1 {
  font-size: 36px;
  font-weight: 800;
  line-height: 1.4;
  margin: 12px 0 16px;
}
.interview-detail-info .interview-name {
  font-size: 18px;
  margin-top: 24px;
}
.interview-section {
  margin-bottom: 40px;
}
.interview-section h2 {
  font-size: 22px;
  font-weight: 800;
  margin-bottom: 16px;
  padding-left: 16px;
  border-left: 4px solid var(--primary);
}
.interview-section p {
  margin-bottom: 16px;
  color: var(--text-main);
}


/* ===== 9. NEWS 一覧・記事 ============================================= */
.news-list { display: grid; gap: 12px; }

.news-row {
  display: grid;
  grid-template-columns: 120px 140px 1fr;
  gap: 24px;
  padding: 24px;
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: 12px;
  align-items: center;
  transition: transform 0.2s, box-shadow 0.2s, border-color 0.2s;
}
.news-row:hover {
  transform: translateX(4px);
  border-color: var(--primary-light);
  box-shadow: var(--card-shadow);
}
.news-date {
  color: var(--text-main);
  font-weight: 700;
  font-family: var(--font-en);
  letter-spacing: 0.04em;
}
.news-tag {
  display: inline-block;
  padding: 4px 14px;
  background: var(--primary-light);
  color: var(--primary-dark);
  border-radius: var(--radius-pill);
  font-size: 12px;
  font-weight: 600;
  width: fit-content;
  white-space: nowrap;
}
.news-title { font-weight: 500; }

/* コンパクト版（トップページのNEWSセクション専用）
   class に news-list-compact を併記。日付＋タイトルのみのスリムな1行表示 */
.news-list-compact {
  gap: 0;
  border-top: 1px solid var(--border);
}
.news-list-compact .news-row {
  grid-template-columns: 130px 1fr;
  gap: 32px;
  padding: 14px 8px;
  background: transparent;
  border: none;
  border-bottom: 1px solid var(--border);
  border-radius: 0;
}
.news-list-compact .news-row:hover {
  transform: none;
  box-shadow: none;
  background: rgba(255, 147, 130, 0.04);
}
.news-list-compact .news-row:hover .news-title {
  color: var(--primary);
}
.news-list-compact .news-date {
  font-size: 13px;
  color: var(--text-sub);
  font-weight: 600;
}
.news-list-compact .news-title {
  font-size: 14px;
  transition: color 0.2s;
}

/* スマホでは日付と見出しの縦間隔を詰める */
@media (max-width: 768px) {
  .news-list-compact .news-row {
    row-gap: 5px;
    padding: 10px 4px;
  }
  .news-list-compact .news-date {
    font-size: 12px;
    line-height: 1.3;
  }
  .news-list-compact .news-title {
    font-size: 13px;
    line-height: 1.4;
  }
}

/* NEWS 詳細 */
.article {
  max-width: 760px;
  margin: 0 auto;
  padding: 60px 24px 80px;
}
.article-meta {
  display: flex;
  gap: 16px;
  align-items: center;
  margin-bottom: 16px;
  color: var(--text-sub);
  font-size: 14px;
}
.article-meta .news-date {
  font-size: 14px;
}
.article-title {
  font-size: 32px;
  font-weight: 800;
  line-height: 1.5;
  margin-bottom: 40px;
  padding-bottom: 32px;
  border-bottom: 1px solid var(--border);
}
.article-body {
  font-size: 16px;
  line-height: 1.9;
}
.article-body p { margin-bottom: 20px; }
.article-body h2 {
  font-size: 22px;
  font-weight: 800;
  margin: 40px 0 16px;
  padding-left: 16px;
  border-left: 4px solid var(--primary);
}
.article-body a {
  color: var(--primary-dark);
  text-decoration: underline;
}
.article-back {
  margin-top: 56px;
  padding-top: 32px;
  border-top: 1px solid var(--border);
  text-align: center;
}
/* STORY記事のヒーロー画像（記事冒頭のキービジュアル） */
.article-hero {
  max-width: 960px;
  margin: 40px auto 0;
  padding: 0 24px;
}
.article-hero-image {
  aspect-ratio: 16 / 9;
  background-size: cover;
  background-position: center;
  background-color: var(--bg-grey);
  border-radius: var(--radius-card);
}


/* ===== 10. Recruit バナー ============================================= */
.recruit-banner {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
  color: #fff;
  border-radius: var(--radius-card);
  padding: 64px 48px;
  text-align: center;
  margin: 96px auto;
  max-width: var(--container-max);
  position: relative;
  overflow: hidden;
}
.recruit-banner::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(circle at 20% 20%, rgba(255,255,255,0.15) 0%, transparent 30%),
    radial-gradient(circle at 80% 80%, rgba(255,255,255,0.1) 0%, transparent 30%);
  pointer-events: none;
}
.recruit-banner > * { position: relative; }
.recruit-banner .recruit-en {
  font-family: var(--font-en);
  font-size: 14px;
  letter-spacing: 0.2em;
  margin-bottom: 12px;
  font-weight: 700;
  opacity: 0.9;
}
.recruit-banner h2 {
  font-family: var(--font-en);
  font-size: 44px;
  margin-bottom: 12px;
  font-weight: 800;
}
.recruit-banner .recruit-lead {
  font-size: 17px;
  margin-bottom: 8px;
  font-weight: 700;
}
.recruit-banner .recruit-desc {
  max-width: 620px;
  margin: 0 auto 28px;
  opacity: 0.95;
}
.recruit-banner .btn-row { justify-content: center; }
.recruit-banner .btn {
  background: #fff;
  color: var(--primary-dark);
}
.recruit-banner .btn:hover { background: var(--primary-light); color: var(--primary-dark); }

/* ===== 採用セクション（フラット版・左テキスト＋右ボタン2枚） =====
   トップページ用のシンプルなCTA。背景なし、横並び2カラム */
.recruit-row {
  max-width: var(--container-max);
  margin: 96px auto;
  padding: 32px 24px 64px;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 64px;
  align-items: center;
}
.recruit-row-text h2 {
  font-size: 34px;
  font-weight: 800;
  line-height: 1.55;
  letter-spacing: 0.02em;
  margin-bottom: 20px;
}
.recruit-row-text p {
  color: var(--text-sub);
  font-size: 15px;
  line-height: 1.85;
}
.recruit-row-buttons {
  display: flex;
  flex-direction: column;
  gap: 12px;
  min-width: 340px;
}
.recruit-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 28px;
  background: #1a1a1a;
  color: #fff;
  border-radius: 100px;
  font-weight: 600;
  font-size: 15px;
  letter-spacing: 0.02em;
  transition: background 0.2s, transform 0.2s, box-shadow 0.2s;
}
.recruit-link:hover {
  background: var(--primary);
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
  color: #fff;
}
.recruit-link i {
  font-size: 13px;
  margin-left: 16px;
  opacity: 0.85;
}
@media (max-width: 768px) {
  .recruit-row {
    grid-template-columns: 1fr;
    gap: 32px;
    margin: 64px auto;
    padding: 24px 20px 48px;
  }
  .recruit-row-text h2 { font-size: 24px; }
  .recruit-row-buttons { min-width: 0; }
  .recruit-link { padding: 16px 24px; font-size: 14px; }
}


/* ===== 11. お問い合わせフォーム ========================================= */
.contact-form {
  max-width: 720px;
  margin: 0 auto;
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-card);
  padding: 48px;
  display: grid;
  gap: 20px;
}
.contact-form .form-row { display: grid; gap: 8px; }
.contact-form label {
  font-weight: 700;
  font-size: 14px;
}
.contact-form label .required {
  color: var(--primary);
  font-size: 12px;
  margin-left: 6px;
}
.contact-form input,
.contact-form textarea,
.contact-form select {
  width: 100%;
  padding: 14px 16px;
  border: 1px solid var(--border);
  border-radius: 8px;
  font-family: inherit;
  font-size: 15px;
  background: #fff;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.contact-form input:focus,
.contact-form textarea:focus,
.contact-form select:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(255, 147, 130, 0.15);
  outline: none;
}
.contact-form textarea { min-height: 160px; resize: vertical; }
.contact-form .form-actions { text-align: center; margin-top: 8px; }
.contact-form button[type="submit"] {
  padding: 16px 48px;
  background: var(--primary);
  color: #fff;
  border: none;
  border-radius: var(--radius-pill);
  font-size: 16px;
  font-weight: 700;
  cursor: pointer;
  transition: background 0.2s, transform 0.2s;
}
.contact-form button[type="submit"]:hover {
  background: var(--primary-dark);
  transform: translateY(-2px);
}


/* ===== 12. SNS アイコン =============================================== */
.sns-list {
  display: flex;
  align-items: center;
  gap: 12px;
}
.sns-list a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--bg-grey);
  color: var(--text-main);
  transition: background 0.2s, color 0.2s, transform 0.2s;
  font-size: 16px;
}
.sns-list a:hover {
  background: var(--primary);
  color: #fff;
  transform: translateY(-2px);
}

/* ヘッダー内SNSはやや小さく */
.header-sns { display: none; }
.header-sns a { width: 32px; height: 32px; font-size: 14px; }

/* フッター内SNSは白丸ベース */
.footer-sns a {
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
}
.footer-sns a:hover { background: #fff; color: var(--primary-dark); }


/* ===== 13. フッター =================================================== */
.site-footer {
  background: #1a1a1a;
  color: #fff;
  padding: 64px 24px 24px;
  margin-top: 64px;
}
.footer-inner {
  max-width: var(--container-max);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.2fr 2fr;
  gap: 48px;
}
.footer-brand .logo { color: #fff; }
.footer-brand .logo-mark { background: var(--primary); }
.footer-address {
  margin-top: 20px;
  font-size: 14px;
  line-height: 1.9;
  color: rgba(255, 255, 255, 0.7);
}
.footer-sns-wrap { margin-top: 24px; }
.footer-sns-label {
  font-family: var(--font-en);
  font-size: 12px;
  letter-spacing: 0.2em;
  margin-bottom: 12px;
  color: rgba(255, 255, 255, 0.6);
}

.footer-links {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px 24px;
  font-size: 14px;
}
.footer-links a {
  color: rgba(255, 255, 255, 0.85);
  padding: 4px 0;
  transition: color 0.2s;
}
.footer-links a:hover { color: var(--primary); }

.footer-bottom {
  max-width: var(--container-max);
  margin: 48px auto 0;
  padding-top: 24px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  font-size: 12px;
  color: rgba(255, 255, 255, 0.5);
  text-align: center;
}
.footer-bottom a { color: rgba(255, 255, 255, 0.7); }
.footer-bottom a:hover { color: #fff; }


/* ===== 14. アニメーション ============================================= */
.fade-in {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.fade-in.is-visible {
  opacity: 1;
  transform: translateY(0);
}

@keyframes fadeUp {
  from { opacity: 0; transform: translateY(20px); }
  to   { opacity: 1; transform: translateY(0); }
}


/* ===== 15. レスポンシブ（スマホ） ===================================== */
@media (max-width: 960px) {
  .hero { height: 70vh; min-height: 420px; }
  .hero-caption {
    left: 32px;
    bottom: 0;
    max-width: 340px;
    padding: 12px 44px 12px 20px;
  }
  .hero-caption h1 { font-size: 18px; }
  .hero-caption p { font-size: 11px; }
  .hero-caption .hero-cta { width: 26px; height: 26px; right: 12px; bottom: 12px; font-size: 12px; }

  .service-block {
    grid-template-columns: 1fr;
    gap: 24px;
    padding: 32px 24px;
  }
  .service-block:nth-child(even) .service-image { order: 0; }

  .interview-grid { grid-template-columns: repeat(2, 1fr); }
  .interview-detail-hero { grid-template-columns: 1fr; }
}

@media (max-width: 768px) {
  /* ナビ：ハンバーガー化 */
  .nav-links {
    position: fixed;
    top: 71px;
    left: 0; right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    background: #fff;
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
    padding: 16px 24px;
    display: none;
    max-height: calc(100vh - 71px);
    overflow-y: auto;
  }
  .nav-links.is-open { display: flex; }
  .nav-links a {
    padding: 14px 0;
    border-bottom: 1px solid var(--border);
    font-size: 15px;
  }
  .nav-links a::after { display: none; }
  .nav-links a:last-child { border-bottom: none; }
  .nav-links .nav-cta {
    margin-top: 12px;
    text-align: center;
    padding: 14px 20px;
  }
  .nav-toggle { display: flex; }

  /* ヘッダー内SNSはスマホでは非表示 */
  .header-sns { display: none; }

  /* ★スマホでもロゴを必ず表示・左寄せ */
  .header-inner { padding: 14px 16px 14px 0; }
  .logo {
    margin-left: -10px;
  }
  .logo-image {
    max-height: 36px;
    max-width: 180px;
    object-position: left center;
  }

  /* セクション余白 */
  .section { padding: 64px 20px; }
  .section-narrow { padding: 64px 20px; }
  .section-title { font-size: 28px; }
  .page-hero { padding: 56px 20px 40px; }
  .page-hero h1 { font-size: 30px; }

  /* ヒーロー（スマホ：コンパクトサイズ） */
  .hero { height: 70vh; min-height: 380px; }
  .hero-caption {
    left: 16px;
    right: auto;                  /* ★画面いっぱいに広がらないように */
    bottom: 48px;                 /* ドットの上にちょこんと配置 */
    max-width: 250px;             /* ★スマホでもコンパクトな箱に */
    padding: 9px 32px 9px 14px;
  }
  .hero-caption h1 {
    font-size: 15px;
    line-height: 1.4;
    margin-bottom: 2px;
  }
  .hero-caption p {
    font-size: 10px;
    line-height: 1.5;
    margin-bottom: 0;
  }
  .hero-caption .hero-cta {
    width: 22px;
    height: 22px;
    right: 8px;
    bottom: 8px;
    font-size: 10px;
  }
  .hero-dots { bottom: 16px; }

  /* グリッド */
  .value-grid,
  .value-grid.value-grid-compact,
  .value-grid.value-grid-4 {
    grid-template-columns: 1fr !important;
    gap: 12px;
  }
  .story-grid { grid-template-columns: 1fr !important; }
  .case-grid { grid-template-columns: 1fr !important; }
  .service-grid { grid-template-columns: 1fr !important; }
  .interview-grid { grid-template-columns: 1fr; }
  .news-row { grid-template-columns: auto auto; row-gap: 8px; }
  .news-row .news-title { grid-column: 1 / -1; }
  .company-frame { padding: 24px; }
  .company-frame dl { grid-template-columns: 1fr; }
  .company-frame dt { padding: 16px 0 4px; border-bottom: none; }
  .company-frame dd { padding: 0 0 16px; }

  /* フォーム */
  .contact-form { padding: 24px; }

  /* recruit banner */
  .recruit-banner { padding: 48px 24px; margin: 64px 20px; }
  .recruit-banner h2 { font-size: 32px; }

  /* article */
  .article-title { font-size: 24px; }
  .interview-detail-info h1 { font-size: 26px; }

  /* footer */
  .site-footer { padding: 56px 20px 24px; }
  .footer-inner { grid-template-columns: 1fr; gap: 32px; }
  .footer-links { grid-template-columns: 1fr; }
  /* フッターのロゴも左端まで寄せる */
  .footer-brand .logo {
    margin-left: -10px;
  }
}

@media (min-width: 769px) {
  /* PC時のみヘッダーSNSを表示（オプション） */
  .header-sns { display: flex; }
}
