@charset "UTF-8";
/* ==========================================================================
   DRIVERS - 株式会社ポジドリ オウンドメディア
   コーポレートサイト（../style.css）とは独立したスタイルシート。
   kijika/ と同じく、このディレクトリ内で完結する構成にしています。
   ========================================================================== */

/* ===========================================================
   0. Design Tokens
   ここの値を変えるとメディア全体の見た目が一括で変わります。
   =========================================================== */
:root {
  --ink:        #000000;
  --paper:      #ffffff;
  --accent:     #ffee03;   /* コーポレートサイト準拠のイエロー */
  --accent-sub: #ffbf44;
  --gray-90:    #1a1a1a;
  --gray-60:    #666666;
  --gray-40:    #999999;
  --gray-20:    #dddddd;
  --gray-10:    #eeeeee;
  --gray-05:    #f6f6f6;

  --font-en: 'Inter', -apple-system, BlinkMacSystemFont, 'Helvetica Neue', Arial, sans-serif;
  --font-ja: 'Noto Sans JP', -apple-system, BlinkMacSystemFont, 'Hiragino Sans', 'Yu Gothic', sans-serif;

  /* コーポレートサイト共通ヘッダーの実高さ（padding 8px×2 + ロゴ 40px） */
  --header-h: 56px;
  /* ヘッダー（.header-inner）と同じ最大幅。左右パディングも 20px / 40px で
     揃えているため、本文の左端がヘッダーロゴの左端とぴったり一致します。
     変える場合は .header-inner の max-width も合わせてください。 */
  --wrap:     1320px;
  --wrap-narrow: 760px;   /* 記事本文の最適読み幅 */
  --radius:   4px;
  --ease:     cubic-bezier(0.22, 1, 0.36, 1);
}

@media (min-width: 1024px) {
  :root { --header-h: 72px; }
}

/* ===========================================================
   1. Base
   =========================================================== */
*,
*::before,
*::after { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  overflow-x: hidden;
  scroll-padding-top: calc(var(--header-h) + 16px);
}

body {
  margin: 0;
  font-family: var(--font-ja);
  font-size: 16px;
  font-weight: 400;
  line-height: 1.85;
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* コーポレートサイト本体は body 全体が italic ですが、
   メディアは長文を読ませるため本文はローマン体。
   ブランドらしさは英字見出し（.is-brand）で italic を継承します。 */
.is-brand {
  font-family: var(--font-en);
  font-style: italic;
  font-weight: 900;
  letter-spacing: 0.02em;
}

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

a {
  color: inherit;
  text-decoration: none;
  transition: color 0.25s var(--ease), opacity 0.25s var(--ease);
}

ul, ol { padding-left: 1.4em; }

figure { margin: 0; }

.wrap {
  width: 100%;
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 0 20px;
}
@media (min-width: 1024px) {
  .wrap { padding: 0 40px; }
}

.wrap-narrow {
  width: 100%;
  max-width: var(--wrap-narrow);
  margin: 0 auto;
  padding: 0 20px;
}

/* 改行位置を画面幅で出し分けるためのクラス。
   <br class="pc-only"> … 768px以上でだけ改行
   <br class="sp-only"> … 767px以下でだけ改行
   どちらも付けない <br> は全幅で改行される。 */
.pc-only { display: none; }
@media (min-width: 768px) {
  .pc-only { display: inline; }
}

.sp-only { display: inline; }
@media (min-width: 768px) {
  .sp-only { display: none; }
}

.visually-hidden {
  position: absolute;
  width: 1px; height: 1px;
  margin: -1px; padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

/* ===========================================================
   2. Header
   コーポレートサイト（../style.css）のヘッダーをそのまま移植したもの。
   このメディアは独立したCSSで完結させる方針のため複製しています。
   ../style.css 側のヘッダーを変更した場合は、ここも同じ内容に更新してください。
   ※ コーポレートサイトは body 全体が italic なので、見た目を合わせるため
     ヘッダー内だけ font-style: italic を指定しています。
   =========================================================== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: #fff;
  color: #000;
  border-bottom: 1px solid #eee;
  font-family: var(--font-en), var(--font-ja);
  font-style: italic;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: 1320px;
  margin: 0 auto;
  padding: 8px 20px;
}
@media (min-width: 1024px) {
  .header-inner { padding: 10px 40px; }
}

.logo {
  display: inline-flex;
  align-items: center;
  line-height: 0;
}
.logo-img {
  display: block;
  height: 40px;
  width: auto;
}
@media (min-width: 1024px) {
  .logo-img { height: 52px; }
}

.nav-toggle {
  display: inline-flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  width: 40px;
  height: 40px;
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 0;
}
.nav-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: #000;
  transition: transform 0.3s, opacity 0.3s;
}
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.nav-list {
  display: none;
  margin: 0;
  padding: 0;
  list-style: none;
}
.nav-list.is-open {
  display: flex;
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  flex-direction: column;
  background: #fff;
  padding: 16px 24px 32px;
  border-top: 1px solid #eee;
}
.nav-list.is-open li {
  border-bottom: 1px solid #eee;
}
.nav-list.is-open a {
  display: block;
  padding: 18px 8px;
  font-weight: 700;
  font-size: 16px;
  letter-spacing: 0.06em;
  color: #000;
}

@media (min-width: 1024px) {
  .nav-toggle { display: none; }
  .nav-list,
  .nav-list.is-open {
    display: flex;
    position: static;
    flex-direction: row;
    align-items: center;
    gap: 32px;
    padding: 0;
    border: none;
  }
  .nav-list li { border: none; }
  .nav-list a {
    display: inline-block;
    padding: 8px 0;
    font-size: 15px;
    font-weight: 500;
    letter-spacing: 0.08em;
    color: #000;
    position: relative;
    transition: color 0.2s;
  }
  .nav-list a::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: 0;
    width: 0;
    height: 1px;
    background: #ffbf44;
    transition: width 0.25s;
  }
  .nav-list a:hover { color: #ffbf44; }
  .nav-list a:hover::after { width: 100%; }
}

/* --- オウンドメディア「P-DRIVERS」への導線（黄色いピルボタン） ---
   .nav-list a / .nav-list.is-open a を確実に上書きするため、
   詳細度を上げたうえで上記ブロックより後ろに置いています。 */
.nav-list.is-open .nav-media-item { border-bottom: none; }

.nav-list a.nav-media {
  display: inline-block;
  margin-top: 10px;
  padding: 11px 22px;
  background: var(--accent);
  color: #000;
  border-radius: 100px;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.06em;
  white-space: nowrap;
  transition: background 0.25s, transform 0.25s;
}
.nav-list a.nav-media::after { display: none; }
.nav-list a.nav-media:hover {
  background: var(--accent-sub);
  color: #000;
  transform: translateY(-1px);
}

@media (min-width: 1024px) {
  .nav-list a.nav-media { margin-top: 0; }
}

/* ===========================================================
   3. Hero (メディアの顔)
   =========================================================== */
/* 背景（世界地図）。img/hero-bg.jpg は back.png を 1920px / JPEG 化したもの。 */
.dr-hero {
  position: relative;
  overflow: hidden;
  background-color: #e9e6e1;          /* 画像読み込み前のちらつき防止 */
  background-image: url("img/hero-bg.jpg");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  padding: 56px 0 64px;
  /* 縦幅は min-height で確保し、テキストは flex で天地中央に置く。
     背景の世界地図を大きく見せるための余白なので、
     文字量が増えても min-height を超えれば自然に伸びます。 */
  display: flex;
  align-items: center;
  min-height: 68vh;
}
@media (min-width: 768px) {
  .dr-hero { padding: 72px 0 80px; min-height: 620px; }
}
@media (min-width: 1280px) {
  .dr-hero { padding: 88px 0 96px; min-height: 630px; }
}


/* --- 人物シルエット（img/people.png）を置いたときだけ効く指定 ---
   現在 index.html では非表示にしていますが、<img class="dr-hero-people"> を
   戻すだけで下の余白と配置が自動で切り替わるようにしてあります。
   1280px未満はリード文の横に人物を置く幅が取れないため、本文の「下」に
   人物を配置し、そのぶん下パディングを厚くします。 */
.dr-hero:has(.dr-hero-people) { padding-bottom: 175px; }
@media (min-width: 768px) {
  .dr-hero:has(.dr-hero-people) { padding-bottom: 230px; }
}
/* 1280px以上はモックアップどおりの「本文左・人物右」の横並び。
   縦幅は .dr-hero 側の min-height をそのまま使います。 */
@media (min-width: 1280px) {
  .dr-hero:has(.dr-hero-people) { padding-bottom: 96px; }
}

/* 人物シルエット本体。person.png の不透明グレー背景を輝度キーで抜いた img/people.png。
   下端を接地させたいので bottom: 0 で右下に固定します。 */
.dr-hero-people {
  position: absolute;
  right: 0;
  bottom: 0;
  width: auto;
  height: 160px;
  max-width: 96%;
  object-fit: contain;
  object-position: right bottom;
  pointer-events: none;
}
@media (min-width: 768px) {
  .dr-hero-people { height: 210px; }
}
@media (min-width: 1280px) {
  .dr-hero-people {
    right: 3%;
    height: 58%;
    /* 本文の最長行（見出し含め約780px）に被らせないための保険。
       通常は height 側で決まり、狭い画面でだけこの上限が効く。 */
    max-width: calc(97vw - 800px);
  }
}

/* テキストは背景・人物より前面に。
   .dr-hero が flex なので、幅は明示しておく。 */
.dr-hero-inner {
  position: relative;
  z-index: 1;
  width: 100%;
}

/* 「P-DRIVERS」の1行組み。狭い画面では折り返します。 */
.dr-hero-title {
  margin: 0;
  font-family: var(--font-en);
  font-style: italic;
  font-weight: 900;
  font-size: clamp(38px, 10.5vw, 118px);
  line-height: 0.9;
  letter-spacing: -0.02em;
}

/* サブコピー（〜 世界を変えようとする挑戦者たち 〜） */
/* スマホでは「〜 … 〜」が1行に収まらなくなる直前の幅なので、
   font-size を可変にし字間も詰めて折り返しを防ぎます（360px端末対策）。 */
.dr-hero-sub {
  margin: 20px 0 0;
  font-size: clamp(14px, 4.5vw, 17px);
  font-weight: 700;
  letter-spacing: 0.06em;
  line-height: 1.6;
}
@media (min-width: 1024px) {
  .dr-hero-sub {
    font-size: 24px;
    letter-spacing: 0.1em;
    margin-top: 28px;
  }
}

/* 原稿の改行（.pc-only）をそのまま出せる幅を確保。
   幅で折り返させず、改行位置は HTML 側の <br> で決めます。
   斜体はコーポレートサイト（body 全体が italic）に合わせたもの。 */
.dr-hero-lead {
  margin: 24px 0 0;
  font-size: 15px;
  font-style: italic;
  line-height: 2;
  color: var(--gray-60);
}
@media (min-width: 1024px) {
  .dr-hero-lead { font-size: 16px; margin-top: 32px; }
}

/* --- スマホ（767px以下）だけの調整 ---
   見出しを最大まで大きく、サブコピーと説明文を小さくしてメリハリを付けます。

   見出しの計算式について：
   「P-DRIVERS」の字幅はフォントサイズの約 5.46 倍（実測）。
   表示可能幅は「画面幅 − .wrap の左右パディング 40px」なので、
   1行に収まる上限は (100vw - 40px) / 5.46。
   ここでは約3%の余裕をみて 5.6 で割っています。
   ※ メディア名を変えたら、この除数も実測し直してください。
   上限 80px は 768px 以上（10.5vw）との段差を作らないための値。 */
@media (max-width: 767px) {
  .dr-hero-title { font-size: clamp(38px, calc((100vw - 40px) / 5.6), 80px); }
  .dr-hero-sub   { font-size: clamp(11px, 3.5vw, 13.5px); }
  /* 360px以上は12px。それより狭いと指定改行の2行目
     （POSIDORIは〜前進させようとする）が折り返して「る」だけ
     行落ちするため、11pxまで縮めて防いでいます。 */
  .dr-hero-lead  { font-size: clamp(11px, 3.34vw, 12px); margin-top: 18px; }
}

/* 流れる帯 */
.dr-marquee {
  background: var(--ink);
  color: var(--paper);
  overflow: hidden;
  padding: 12px 0;
  white-space: nowrap;
}
/* トラックは「同じ中身のグループ」を横に並べたもの。
   1グループぶんだけ左へ動かして先頭に戻すことで、継ぎ目なくループします。
   --dr-marquee-groups … 並んでいるグループ数（drivers.js が画面幅に応じて書き換え）
   --dr-marquee-dur    … 1周にかける時間（グループ幅に比例させ、速度を一定に保つ） */
.dr-marquee-track {
  display: flex;
  width: max-content;
  animation: dr-marquee var(--dr-marquee-dur, 28s) linear infinite;
  will-change: transform;
}
/* 右側の padding は「次のグループとの間隔」。
   gap ではなくグループ内に持たせることで、1グループ幅＝1周ぶんの移動量が正確に一致します。 */
.dr-marquee-group {
  display: flex;
  gap: 40px;
  padding-right: 40px;
}
.dr-marquee span {
  font-family: var(--font-en);
  font-style: italic;
  font-weight: 800;
  font-size: 13px;
  letter-spacing: 0.16em;
}
.dr-marquee span::after {
  content: "●";
  margin-left: 40px;
  color: var(--accent);
  font-size: 8px;
  vertical-align: middle;
}
/* トラック全幅の 1/グループ数 ＝ ちょうど1グループぶん。
   グループが何個に増えても、この式なら移動量が常に1周ぶんになります。 */
@keyframes dr-marquee {
  from { transform: translateX(0); }
  to   { transform: translateX(calc(-100% / var(--dr-marquee-groups, 2))); }
}
@media (prefers-reduced-motion: reduce) {
  .dr-marquee-track { animation: none; }
}

/* ===========================================================
   4. Section 共通
   =========================================================== */
.dr-section {
  padding: 64px 0;
}
@media (min-width: 1024px) {
  .dr-section { padding: 96px 0; }
}

.dr-section-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 32px;
  padding-bottom: 16px;
  border-bottom: 2px solid var(--ink);
}
.dr-section-title {
  margin: 0;
  font-family: var(--font-en);
  font-style: italic;
  font-weight: 900;
  font-size: 24px;
  letter-spacing: 0.02em;
  line-height: 1.1;
}
@media (min-width: 1024px) {
  .dr-section-title { font-size: 32px; }
}
.dr-section-title small {
  display: block;
  margin-top: 6px;
  font-family: var(--font-ja);
  font-style: normal;
  font-weight: 500;
  font-size: 12px;
  letter-spacing: 0.08em;
  color: var(--gray-60);
}
.dr-section-more {
  flex-shrink: 0;
  font-family: var(--font-en);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  white-space: nowrap;
}
.dr-section-more:hover { color: var(--gray-40); }

/* ===========================================================
   5. Featured (注目記事)
   =========================================================== */
.dr-featured {
  display: grid;
  gap: 24px;
}
@media (min-width: 900px) {
  .dr-featured {
    grid-template-columns: 1.15fr 1fr;
    align-items: center;
    gap: 48px;
  }
}

/* 記事サムネイルの枠は 16:9。支給テンプレート（1482×832 等）の
   文字が切れないよう、画像と同じ比率に合わせています。 */
.dr-featured-thumb {
  position: relative;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: var(--gray-05);
}
.dr-featured-thumb img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 0.6s var(--ease);
}
.dr-featured:hover .dr-featured-thumb img { transform: scale(1.04); }

.dr-featured-title {
  margin: 12px 0 0;
  font-size: 22px;
  font-weight: 700;
  line-height: 1.5;
  letter-spacing: 0.01em;
}
@media (min-width: 1024px) {
  .dr-featured-title { font-size: 30px; }
}
.dr-featured-excerpt {
  margin: 16px 0 0;
  font-size: 14px;
  line-height: 1.9;
  color: var(--gray-60);
}

/* 「記事を読む →」の擬似ボタン。
   カード全体が <a> なので、入れ子にせず span で見た目だけ作っています。 */
.dr-featured-more {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 24px;
  padding-bottom: 4px;
  border-bottom: 2px solid var(--ink);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.08em;
  transition: gap 0.25s var(--ease);
}
.dr-featured:hover .dr-featured-more { gap: 14px; }

/* --- 記事が1本だけのときのレイアウト ---
   3カラムのグリッドに1枚だけ置くと余白が目立つため、
   横並びの大きなカードとして見せます。 */
@media (min-width: 900px) {
  .dr-featured--solo { gap: 56px; }
}

/* 更新予定の告知。記事が増えたら削除して構いません。 */
.dr-coming {
  margin: 48px 0 0;
  padding: 28px 20px;
  border: 1px dashed var(--gray-20);
  border-radius: var(--radius);
  text-align: center;
  font-size: 13px;
  letter-spacing: 0.06em;
  color: var(--gray-40);
}
.dr-coming::before {
  content: "COMING SOON";
  display: block;
  margin-bottom: 8px;
  font-family: var(--font-en);
  font-style: italic;
  font-weight: 800;
  font-size: 11px;
  letter-spacing: 0.14em;
  color: var(--ink);
}

/* --- Kijika バナー（../kijika/ への導線）---
   配色は kijika/kijika.css のブランドカラーに合わせています
   （ゴールド #edbf56 / ブラウン #b7732a）。
   PC : マスコット左 ／ 右に「注記・Kijikaロゴ＋説明・リンク」の3段
   SP : 縦積み。マスコットは Kijikaロゴの右隣に置く（下記グリッド参照） */
.dr-kijika {
  --kijika-gold: #edbf56;
  --kijika-brown: #b7732a;

  position: relative;
  margin: 32px 0 0;
  padding: 22px 18px;
  overflow: hidden;
  border-radius: 12px;
  background: #f7eeda;
  transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease);

  /* --- SP（〜767px）のレイアウト ---
     .dr-kijika-body / .dr-kijika-main を display:contents で透過させ、
     中の要素を直接このグリッドに並べています。
       1行目 : 注記（全幅）
       2行目 : Kijikaロゴ ＋ マスコット（下端で揃える）
       3行目 : 説明文（全幅）
       4行目 : リンク（全幅） */
  display: grid;
  grid-template-columns: auto 1fr;
  column-gap: 14px;
}
.dr-kijika:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 28px rgba(183, 115, 42, 0.18);
}

.dr-kijika-body,
.dr-kijika-main { display: contents; }

.dr-kijika-note   { grid-area: 1 / 1 / 2 / -1; }
.dr-kijika-logo   { grid-area: 2 / 1 / 3 / 2; align-self: end; }
.dr-kijika-mascot { grid-area: 2 / 2 / 3 / 3; align-self: end; justify-self: start; }
.dr-kijika-desc   { grid-area: 3 / 1 / 4 / -1; }
.dr-kijika-btn    { grid-area: 4 / 1 / 5 / -1; justify-self: start; }

.dr-kijika-mascot {
  width: auto;
  height: 82px;
  object-fit: contain;
}

.dr-kijika-note {
  margin: 0;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.02em;
  line-height: 1.6;
  color: var(--kijika-brown);
}

/* Kijikaロゴ。kijika/ と同じ Noto Serif JP 900 */
.dr-kijika-logo {
  margin: 10px 0 0;
  font-family: 'Noto Serif JP', serif;
  font-weight: 900;
  /* 375px以上は60px。それより狭いと右隣のマスコットが
     バナーの右端に迫るため、画面幅に応じて縮めています。 */
  font-size: clamp(48px, 16vw, 60px);
  line-height: 1.1;
  letter-spacing: 0.01em;
  color: var(--ink);
}

.dr-kijika-desc {
  /* SPではロゴのすぐ下に来ます。ロゴは line-height 1.1 の明朝60pxで
     行ボックスに余白がほとんど無いため、ここでしっかり間隔を取ります。
     （PC側は .dr-kijika-main の gap で間隔を取るので、この値は効きません） */
  margin: 18px 0 0;
  font-size: 12px;
  line-height: 1.8;
  color: #6b5c46;
}

/* リンクは記事カードの「記事を読む →」と同じ体裁（下線＋矢印）。
   バナーのトーンに合わせて色だけブラウンにしています。 */
.dr-kijika-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 14px;
  padding-bottom: 4px;
  border-bottom: 2px solid var(--kijika-brown);
  color: var(--kijika-brown);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.08em;
  white-space: nowrap;
  transition: gap 0.25s var(--ease);
}
.dr-kijika:hover .dr-kijika-btn { gap: 14px; }

/* --- PC（768px以上）: マスコットを左に置いた横並びレイアウト --- */
@media (min-width: 768px) {
  /* SPのグリッドを解除して、マスコット左・テキスト右の横並びに戻す */
  .dr-kijika {
    display: flex;
    align-items: center;
    gap: 40px;
    padding: 28px 48px;
    /* マスコット＋テキストのまとまりをバナー内で中央に置く */
    justify-content: center;
  }
  .dr-kijika-body { display: block; }

  /* SPで指定した grid-area / align-self を無効化 */
  .dr-kijika-note,
  .dr-kijika-logo,
  .dr-kijika-mascot,
  .dr-kijika-desc,
  .dr-kijika-btn {
    grid-area: auto;
    align-self: auto;
    justify-self: auto;
  }

  .dr-kijika-mascot { flex-shrink: 0; height: 155px; }

  .dr-kijika-note { font-size: 15px; }

  /* 「Kijika」ロゴと説明文を横並びにして天地中央で揃える */
  .dr-kijika-main {
    display: flex;
    align-items: center;
    gap: 32px;
    margin-top: 4px;
  }
  .dr-kijika-logo { margin: 0; font-size: 56px; }
  .dr-kijika-desc { margin: 0; font-size: 14px; }
  .dr-kijika-btn  { margin-top: 16px; }
}
@media (min-width: 1024px) {
  .dr-kijika-logo { font-size: 64px; }
  .dr-kijika-desc { font-size: 15px; }
}

/* --- 記事本文の中に置くバナー（.dr-kijika--article）---
   本文幅760pxに収めるため、トップより一回り小さくした横並び。
   縦幅はトップ（211px）と同程度になるよう各サイズを詰めています。 */
@media (min-width: 768px) {
  .dr-kijika--article {
    gap: 24px;
    padding: 24px 32px;
  }
  .dr-kijika--article .dr-kijika-mascot { height: 140px; }
  .dr-kijika--article .dr-kijika-note   { font-size: 13px; }
  .dr-kijika--article .dr-kijika-main   { gap: 20px; }
  .dr-kijika--article .dr-kijika-logo   { font-size: 44px; }
  .dr-kijika--article .dr-kijika-desc   { font-size: 13px; }
  .dr-kijika--article .dr-kijika-btn    { margin-top: 14px; }
}

/* ===========================================================
   6. Category Filter（記事が2本以上になったら使用）
   =========================================================== */
.dr-filter {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 32px;
  padding: 0;
  list-style: none;
}
.dr-filter-btn {
  padding: 8px 16px;
  background: transparent;
  border: 1px solid var(--gray-20);
  border-radius: 100px;
  font-family: inherit;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: var(--gray-60);
  cursor: pointer;
  transition: all 0.25s var(--ease);
}
.dr-filter-btn:hover {
  border-color: var(--ink);
  color: var(--ink);
}
.dr-filter-btn[aria-pressed="true"] {
  background: var(--ink);
  border-color: var(--ink);
  color: var(--paper);
}

/* ===========================================================
   7. Article Card / Grid
   =========================================================== */
.dr-grid {
  display: grid;
  gap: 40px 24px;
  grid-template-columns: 1fr;
  margin: 0;
  padding: 0;
  list-style: none;
}
@media (min-width: 640px) {
  .dr-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 1024px) {
  .dr-grid { grid-template-columns: repeat(3, 1fr); gap: 56px 32px; }
}

.dr-card { display: block; height: 100%; }
.dr-card[hidden] { display: none; }

.dr-card-thumb {
  position: relative;
  aspect-ratio: 16 / 9;   /* .dr-featured-thumb と揃える */
  overflow: hidden;
  background: var(--gray-05);
  margin-bottom: 14px;
}
.dr-card-thumb img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 0.6s var(--ease);
}
.dr-card:hover .dr-card-thumb img { transform: scale(1.05); }

.dr-card-title {
  margin: 8px 0 0;
  font-size: 17px;
  font-weight: 700;
  line-height: 1.6;
}
.dr-card:hover .dr-card-title { color: var(--gray-60); }

.dr-card-excerpt {
  margin: 10px 0 0;
  font-size: 13px;
  line-height: 1.85;
  color: var(--gray-60);
}

/* メタ情報（カテゴリ・日付） */
.dr-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  font-family: var(--font-en);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.08em;
  color: var(--gray-40);
}
.dr-cat {
  display: inline-block;
  padding: 4px 10px;
  background: var(--ink);
  color: var(--paper);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.1em;
}
.dr-cat--accent { background: var(--accent); color: var(--ink); }

.dr-empty {
  padding: 48px 0;
  text-align: center;
  font-size: 14px;
  color: var(--gray-40);
}

/* ===========================================================
   8. Newsletter / CTA
   =========================================================== */
.dr-cta {
  background: var(--ink);
  color: var(--paper);
  text-align: center;
  padding: 64px 0;
}
@media (min-width: 1024px) {
  .dr-cta { padding: 96px 0; }
}
.dr-cta-title {
  margin: 0;
  font-family: var(--font-en);
  font-style: italic;
  font-weight: 900;
  font-size: clamp(28px, 6vw, 52px);
  line-height: 1.1;
}
.dr-cta-lead {
  margin: 20px auto 0;
  max-width: 560px;
  font-size: 14px;
  line-height: 2;
  color: var(--gray-40);
}
.dr-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-top: 32px;
  padding: 16px 36px;
  background: var(--accent);
  color: var(--ink);
  font-weight: 700;
  font-size: 14px;
  letter-spacing: 0.06em;
  border-radius: 100px;
  transition: transform 0.25s var(--ease), background 0.25s;
}
.dr-btn:hover {
  background: var(--accent-sub);
  transform: translateY(-2px);
}

/* ===========================================================
   9. Footer
   =========================================================== */
.dr-footer {
  background: var(--ink);
  color: var(--gray-40);
  padding: 20px;
  text-align: center;
  border-top: 1px solid #222;
  /* body の line-height 1.85 は本文用で、フッターには広すぎるため詰めます */
  line-height: 1.5;
}
/* 左右パディングは .wrap と同じにして、フッターの左端も
   ヘッダーロゴの左端に揃えます。 */
@media (min-width: 1024px) {
  .dr-footer { padding: 18px 40px; }
}

.dr-footer-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  max-width: var(--wrap);
  margin: 0 auto;
}
/* PCでは縦積みをやめて1行に収め、縦幅を抑えます。 */
@media (min-width: 768px) {
  .dr-footer-inner {
    flex-direction: row;
    justify-content: space-between;
    gap: 24px;
  }
}

.dr-footer-logo {
  margin: 0;
  font-family: var(--font-en);
  font-style: italic;
  font-weight: 900;
  font-size: 16px;
  color: var(--paper);
  letter-spacing: 0.04em;
  white-space: nowrap;
}
.dr-footer-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 6px 18px;
  margin: 0;
  padding: 0;
  list-style: none;
  font-size: 12px;
}
@media (min-width: 1024px) {
  .dr-footer-links { font-size: 13px; gap: 6px 24px; }
}
.dr-footer-links a:hover { color: var(--accent); }
.dr-footer-copy {
  margin: 0;
  font-family: var(--font-en);
  font-size: 11px;
  letter-spacing: 0.06em;
  color: #555;
}

/* ===========================================================
   10. 記事ページ (article-template.html)
   =========================================================== */
.dr-breadcrumb {
  /* .wrap-narrow の左右パディングを消さないよう padding-top だけを指定 */
  padding-top: 20px;
  font-size: 12px;
  color: var(--gray-40);
}
.dr-breadcrumb ol {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.dr-breadcrumb li + li::before {
  content: "/";
  margin-right: 8px;
  color: var(--gray-20);
}
.dr-breadcrumb a:hover { color: var(--ink); }

.dr-article-head {
  /* 一括指定にすると .wrap-narrow の左右パディング（20px）が
     打ち消されて見出しだけ画面端に張り付くので、上下だけを指定する。 */
  padding-top: 28px;
  padding-bottom: 36px;
}
.dr-article-title {
  margin: 14px 0 0;
  font-size: 27px;
  font-weight: 700;
  line-height: 1.5;
  letter-spacing: 0.01em;
}
@media (min-width: 1024px) {
  .dr-article-title { font-size: 40px; line-height: 1.45; }
}

/* --- リード文。本文より一段大きく、左に罫線を引いて導入だと分かるように --- */
.dr-article-lead {
  margin: 24px 0 0;
  padding-left: 18px;
  border-left: 3px solid var(--accent);
  font-size: 15px;
  line-height: 2;
  color: var(--gray-60);
}
@media (min-width: 1024px) {
  .dr-article-lead { margin-top: 28px; padding-left: 22px; font-size: 17px; }
}

/* --- タグ（#〜） --- */
.dr-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 22px 0 0;
  padding: 0;
  list-style: none;
}
.dr-tags li {
  padding: 5px 13px;
  border: 1px solid var(--gray-20);
  border-radius: 100px;
  font-size: 12px;
  letter-spacing: 0.04em;
  color: var(--gray-60);
}

/* --- クレジット（取材・執筆／撮影／編集） --- */
.dr-credits {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 20px;
  margin: 20px 0 0;
  padding: 0;
  list-style: none;
  font-size: 12px;
  line-height: 1.8;
  color: var(--gray-40);
}
.dr-credits dt {
  display: inline;
  margin-right: 6px;
}
.dr-credits dd {
  display: inline;
  margin: 0;
  color: var(--gray-60);
}
.dr-credits div { display: inline-block; }

.dr-article-hero {
  /* .wrap-narrow の中央寄せ（margin: 0 auto）を打ち消さないこと */
  margin-bottom: 40px;
  aspect-ratio: 16 / 9;
  background: var(--gray-05);
}
.dr-article-hero img {
  width: 100%; height: 100%;
  object-fit: cover;
}

/* --- 本文タイポグラフィ ---
   .dr-body の中は素の HTML タグをそのまま書けば整います。 */
.dr-body {
  font-size: 16px;
  line-height: 2;
  letter-spacing: 0.02em;
}
@media (min-width: 1024px) {
  .dr-body { font-size: 17px; }
}

/* 段落間の余白はここで一括管理する。
   個別要素側で margin を打ち消すと（例: .dr-body p { margin: 0 }）
   詳細度で勝ってしまい段落が詰まるので、まとめて 0 にしてから足している。
   セクション（.dr-sec）で1階層深くなった要素にも同じ指定を効かせる。 */
.dr-body > *,
.dr-body .dr-sec > * { margin: 0; }
.dr-body > * + *,
.dr-body .dr-sec > * + * { margin-top: 1.6em; }

.dr-body h2 {
  margin-top: 2.8em;
  margin-bottom: 1em;
  padding-left: 16px;
  border-left: 5px solid var(--accent);
  font-size: 21px;
  font-weight: 700;
  line-height: 1.6;
}
@media (min-width: 1024px) {
  .dr-body h2 { font-size: 25px; }
}

.dr-body h3 {
  margin-top: 2.2em;
  margin-bottom: 0.8em;
  font-size: 18px;
  font-weight: 700;
  line-height: 1.6;
}
@media (min-width: 1024px) {
  .dr-body h3 { font-size: 20px; }
}


.dr-body a {
  color: var(--ink);
  border-bottom: 1px solid var(--accent);
  box-shadow: inset 0 -0.4em 0 var(--accent);
}
.dr-body a:hover { box-shadow: inset 0 -1em 0 var(--accent); }

.dr-body ul,
.dr-body ol { padding-left: 1.5em; }
.dr-body li + li { margin-top: 0.5em; }
.dr-body ul li::marker { color: var(--accent-sub); }

.dr-body blockquote {
  margin: 2em 0;
  padding: 20px 24px;
  background: var(--gray-05);
  border-left: 3px solid var(--gray-20);
  font-size: 15px;
  color: var(--gray-60);
}
.dr-body blockquote > * + * { margin-top: 1em; }

.dr-body figure { margin: 2.4em 0; }
.dr-body figcaption {
  margin-top: 10px;
  font-size: 12px;
  color: var(--gray-40);
  text-align: center;
}

.dr-body hr {
  margin: 3em 0;
  border: none;
  border-top: 1px solid var(--gray-10);
}

.dr-body table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
}
.dr-body th,
.dr-body td {
  padding: 12px 14px;
  border: 1px solid var(--gray-10);
  text-align: left;
}
.dr-body th { background: var(--gray-05); font-weight: 700; }

/* 本文中の囲み（ポイント枠） */
.dr-note {
  padding: 24px;
  background: #fffdf0;
  border: 1px solid var(--accent);
  border-radius: var(--radius);
  font-size: 15px;
}
.dr-note-label {
  display: inline-block;
  margin-bottom: 8px;
  font-family: var(--font-en);
  font-style: italic;
  font-weight: 800;
  font-size: 12px;
  letter-spacing: 0.1em;
}

/* 目次（INDEX）。連番を擬似要素で振り、罫線で区切る */
.dr-toc {
  margin: 40px 0;
  padding: 24px 24px 8px;
  background: var(--gray-05);
  border-radius: var(--radius);
  counter-reset: toc;
}
@media (min-width: 1024px) {
  .dr-toc { padding: 28px 32px 12px; }
}
.dr-toc-title {
  margin: 0 0 4px;
  font-family: var(--font-en);
  font-style: italic;
  font-weight: 800;
  font-size: 13px;
  letter-spacing: 0.14em;
}
.dr-toc ol {
  margin: 0;
  padding: 0;
  list-style: none;
  font-size: 14px;
}
.dr-toc li {
  counter-increment: toc;
  border-bottom: 1px solid var(--gray-20);
}
.dr-toc a {
  display: flex;
  gap: 12px;
  padding: 14px 0;
  line-height: 1.6;
  transition: color 0.2s var(--ease);
}
.dr-toc a::before {
  content: counter(toc, decimal-leading-zero);
  flex-shrink: 0;
  font-family: var(--font-en);
  font-weight: 700;
  font-size: 12px;
  color: var(--gray-40);
  padding-top: 0.2em;
}
.dr-toc a:hover { color: var(--gray-60); }

/* --- セクションの切り替わり ---
   長いインタビューでも節目がはっきり分かるよう、
   「太い罫線 → 連番 → 英字ラベル → 大きな見出し」の
   ひとかたまりでセクションの開始を示します。
   連番は CSS カウンタなので、HTML 側には英字ラベルだけ書きます。 */
.dr-body { counter-reset: dr-section; }

/* セクションのまとまり。本文には背景を敷かず、
   見出しブロック（.dr-sec-head）だけを黄色にして節目を示します。 */
.dr-body .dr-sec { margin: 0; padding: 0; }

/* セクションの見出しブロック（連番＋英字ラベル＋大見出し）。
   負のマージンとパディングで背景だけを本文の左右にはみ出させ、
   文字の位置は本文と揃えています。 */
.dr-body .dr-sec > .dr-sec-head {
  margin: 5em -20px 0;
  padding: 20px 20px 24px;
  /* ブランドイエロー（--accent）を白で薄めた色。
     色みは同じままトーンだけ落としています。
     濃さを変えるときは 16% の数値だけ調整してください。 */
  background: #fffcd7;                                    /* 非対応ブラウザ用 */
  background: color-mix(in srgb, var(--accent) 16%, #fff);
  /* 区切り線は透明度を落とさないブランドイエロー */
  border-top: 3px solid var(--accent);
}
@media (min-width: 768px) {
  .dr-body .dr-sec > .dr-sec-head {
    margin: 5.5em -28px 0;
    padding: 24px 28px 28px;
  }
}
/* 最初のセクションは目次のすぐ下なので上の余白を詰める */
.dr-body > .dr-sec:first-child > .dr-sec-head { margin-top: 0; }

/* 連番＋英字ラベル。余白と罫線は親（.dr-sec-head）が持つ */
.dr-body .dr-section-label {
  display: flex;
  align-items: center;
  gap: 14px;
  margin: 0;
  font-family: var(--font-en);
  font-style: italic;
  font-weight: 800;
  font-size: 12px;
  letter-spacing: 0.14em;
  line-height: 1.4;
  color: #7a6a00;              /* 黄色地でも読めるよう、ラベルは濃い黄土色に */
}
.dr-body .dr-section-label::before {
  counter-increment: dr-section;
  content: counter(dr-section, decimal-leading-zero);
  font-size: 24px;
  line-height: 1;
  letter-spacing: 0.02em;
  color: var(--ink);
}

/* ラベル直後の h2 は、黄色の面がすでに節目を示しているので
   黄色い縦罫は付けず、サイズで見せる */
.dr-body .dr-section-label + h2 {
  margin-top: 0.4em;
  margin-bottom: 0;
  padding-left: 0;
  border-left: none;
  font-size: 23px;
}
@media (min-width: 1024px) {
  .dr-body .dr-section-label::before { font-size: 28px; }
  .dr-body .dr-section-label + h2 { font-size: 28px; }
}

/* --- インタビュー書式 ---
   質問は「——」始まりの太字、回答は話者名を添える。
   参考にした各メディアで共通して使われている形式です。 */
.dr-body .dr-q {
  /* 質問の手前は大きく空ける。次のQ&Aの組が始まる区切りになります。 */
  margin-top: 2.9em;
  font-weight: 700;
  color: var(--ink);
}
.dr-body .dr-q::before {
  content: "——";
  margin-right: 0.5em;
  color: var(--gray-40);
  letter-spacing: -0.1em;
}

/* 質問の直後の回答だけを詰めて、Q&Aを1つのかたまりに見せる。
   組の中は 0.6em、組と組の間は上の 2.9em。この差で
   「質問＋回答で1セット」という区切りが目で分かるようにしています。

   ▼ セレクタの注意
   回答は素の <p>（話者名を出す場合のみ .dr-a）なので、p を対象にします。
   .dr-q + .dr-a と書くと .dr-a を付けていない記事では効きません。
   また段落余白の一括指定（.dr-body .dr-sec > * + *）は詳細度 0,2,0 なので、
   要素セレクタを1つ含むこの書き方（0,2,1）で確実に上書きされます。 */
.dr-body .dr-q + p { margin-top: 0.6em; }

.dr-body .dr-a > .dr-speaker {
  font-weight: 700;
  margin-right: 0.2em;
}
.dr-body .dr-a > .dr-speaker::after { content: "："; }

/* --- プルクオート（印象的な発言を大きく見せる）---
   h2 と見分けが付くよう、左罫線ではなく上下の細罫で挟む形にしています。 */
.dr-body .dr-pullquote {
  margin: 2.8em 0;
  padding: 1.1em 0;
  border-top: 1px solid var(--gray-20);
  border-bottom: 1px solid var(--gray-20);
  font-size: 1.3em;
  font-weight: 700;
  line-height: 1.75;
  letter-spacing: 0.01em;
  color: var(--ink);
  text-indent: -0.4em;    /* 行頭の「 を罫線の左端に揃える */
}
.dr-body .dr-pullquote::before { content: "「"; }
.dr-body .dr-pullquote::after  { content: "」"; }

/* --- 本文幅を超える大きな図版 --- */
@media (min-width: 900px) {
  .dr-body figure.is-wide {
    /* .wrap-narrow（760px）からはみ出して、左右に均等に広がる */
    width: min(1000px, calc(100vw - 48px));
    margin-left: 50%;
    transform: translateX(-50%);
  }
}

/* --- 登場人物のプロフィールカード --- */
.dr-profiles {
  display: grid;
  gap: 16px;
  margin: 40px 0;
  padding: 24px;
  background: var(--gray-05);
  border-radius: var(--radius);
}
@media (min-width: 700px) {
  .dr-profiles { grid-template-columns: repeat(2, 1fr); gap: 24px 32px; padding: 32px; }
}
.dr-profile {
  display: flex;
  gap: 14px;
  align-items: flex-start;
}
.dr-profile img {
  flex-shrink: 0;
  width: 60px; height: 60px;
  border-radius: 50%;
  object-fit: cover;
  background: var(--gray-10);
}
.dr-profile-name {
  margin: 0;
  font-size: 15px;
  font-weight: 700;
  line-height: 1.5;
}
.dr-profile-role {
  margin: 4px 0 0;
  font-size: 12px;
  line-height: 1.7;
  color: var(--gray-60);
}
.dr-profile-bio {
  margin: 10px 0 0;
  font-size: 13px;
  line-height: 1.9;
  color: var(--gray-60);
}
/* 登場者が1人のときは2カラムにせず全幅で使う */
@media (min-width: 700px) {
  .dr-profiles--single { grid-template-columns: 1fr; }
}

/* 著者ボックス */
.dr-author {
  display: flex;
  gap: 16px;
  align-items: flex-start;
  margin: 56px 0 0;
  padding: 24px;
  border: 1px solid var(--gray-10);
  border-radius: var(--radius);
}
.dr-author-img {
  flex-shrink: 0;
  width: 56px; height: 56px;
  border-radius: 50%;
  object-fit: cover;
  background: var(--gray-05);
}
.dr-author-name {
  margin: 0;
  font-size: 15px;
  font-weight: 700;
}
.dr-author-role {
  margin: 2px 0 0;
  font-size: 12px;
  color: var(--gray-40);
}
.dr-author-bio {
  margin: 10px 0 0;
  font-size: 13px;
  line-height: 1.8;
  color: var(--gray-60);
}

/* シェア */
.dr-share {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 40px 0 0;
  padding-top: 24px;
  border-top: 1px solid var(--gray-10);
}
.dr-share-label {
  font-family: var(--font-en);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.1em;
  color: var(--gray-40);
}
.dr-share a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px; height: 36px;
  border: 1px solid var(--gray-20);
  border-radius: 50%;
  font-size: 12px;
  font-weight: 700;
}
.dr-share a:hover {
  background: var(--ink);
  border-color: var(--ink);
  color: var(--paper);
}

/* ※ PC で本文の左脇に縦に固定表示していたシェアレール（.dr-share-rail）は
      2026-08-13 に廃止しました。シェアは記事末尾の .dr-share に一本化しています。 */

/* 関連記事 */
.dr-related {
  background: var(--gray-05);
  text-align: center;
  /* 直前の要素（Kijikaバナー・執筆者ボックス）と
     グレーの背景がくっつかないよう、上に余白を取る。
     そのぶん .dr-section の上下パディングは詰める。 */
  margin-top: 72px;
  padding-top: 56px;
  padding-bottom: 56px;
}
@media (min-width: 1024px) {
  .dr-related { margin-top: 96px; }
}

/* --- 記事が1本だけのとき、関連記事の代わりに出す一覧への導線 --- */
.dr-backlink-lead {
  margin: 0 0 20px;
  font-size: 14px;
  letter-spacing: 0.06em;
  color: var(--gray-60);
}
.dr-backlink {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 15px 34px;
  border: 1px solid var(--ink);
  border-radius: 100px;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.06em;
  transition: background 0.25s var(--ease), color 0.25s var(--ease);
}
.dr-backlink:hover {
  background: var(--ink);
  color: var(--paper);
}

/* ===========================================================
   11. スクロールで浮かび上がる演出
   =========================================================== */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
}
.reveal.is-visible {
  opacity: 1;
  transform: none;
}
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
}
