/* ============================================================================
   Energize CAREERS 特設インタビュー記事ページ
   /careers/intern-story1 専用スタイル

   デザイントークン（色・フォント）は、ご提供いただいた /careers/ ページの
   スクリーンショットをピクセル解析して近似した値です。既存サイトの本物の
   CSS変数・Webフォントファイルが確認でき次第、下記 :root の値を差し替えて
   ご利用ください。
   ============================================================================ */

:root {
  /* --- ブランドカラー（/careers/ ページのスクリーンショットからの近似値） --- */
  --color-yellow: #FBC800;      /* ブランドアクセントカラー */
  --color-yellow-dark: #8A6800; /* 白背景でもAAコントラスト(4.5:1以上)を満たす濃色バリエーション */
  --color-black: #1A1A1A;       /* フッター等の濃い黒 */
  --color-dark: #3D3D3D;        /* タグ・見出し等のチャコール */
  --color-text: #2E2E2E;        /* 本文テキスト */
  --color-text-muted: #6B6B6B;  /* 補足テキスト */
  --color-border: #E5E1D8;
  --color-bg: #FFFFFF;
  --color-bg-warm: #FFFBF0;     /* 温かみのある淡いオフホワイト（記事セクション用） */
  --color-gray-100: #F7F7F5;
  --color-gray-200: #EFEFEC;

  /* --- フォント（近似指定。実際のWebフォントに差し替え可） --- */
  --font-heading: "Poppins", "Noto Sans JP", -apple-system, BlinkMacSystemFont, "Hiragino Kaku Gothic ProN", "Yu Gothic", "Meiryo", sans-serif;
  --font-body: "Noto Sans JP", -apple-system, BlinkMacSystemFont, "Hiragino Kaku Gothic ProN", "Yu Gothic", "Meiryo", sans-serif;

  /* --- レイアウト --- */
  --container-max: 1200px;
  --article-max: 780px;
  --gutter: 24px;
  --radius: 4px;

  --focus-ring: 3px solid #1E6FEB;
}

/* ============ Reset / base ============ */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--color-text);
  background: var(--color-bg);
  line-height: 1.85;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; height: auto; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, p, ol, ul, dl, figure, blockquote { margin: 0; padding: 0; }
ul, ol { list-style: none; }
button { font: inherit; background: none; border: none; cursor: pointer; }

a:focus-visible,
button:focus-visible,
[tabindex]:focus-visible {
  outline: var(--focus-ring);
  outline-offset: 2px;
}

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

.skip-link {
  position: absolute;
  left: 8px;
  top: -100px;
  background: var(--color-black);
  color: #fff;
  padding: 12px 18px;
  border-radius: var(--radius);
  z-index: 1000;
  transition: top .15s ease;
}
.skip-link:focus { top: 8px; }

.container {
  max-width: var(--container-max);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.container-narrow {
  max-width: var(--article-max);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

/* ============ ヘッダー ============ */
.site-header {
  background: #fff;
  border-bottom: 3px solid var(--color-yellow);
}
.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  padding-block: 16px;
}
.site-logo {
  display: flex;
  align-items: center;
  gap: 14px;
}
.site-logo__img {
  height: 34px;
  width: auto;
}
.site-logo__tagline {
  font-size: 0.68rem;
  color: #9A9A9A;
  letter-spacing: 0.02em;
  white-space: nowrap;
  display: none;
}
.site-header__utility {
  display: flex;
  align-items: center;
  gap: 20px;
  font-size: 0.85rem;
}
.site-header__back {
  font-weight: 600;
  color: var(--color-dark);
  border-bottom: 2px solid var(--color-yellow);
  padding-bottom: 2px;
}

@media (min-width: 600px) {
  .site-logo__tagline { display: inline; }
}
@media (min-width: 768px) {
  .site-logo__img { height: 42px; }
}

/* ============ パンくずリスト ============ */
.breadcrumb {
  padding-block: 14px;
  font-size: 0.8rem;
  color: var(--color-text-muted);
}
.breadcrumb ol {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.breadcrumb li:not(:last-child)::after {
  content: "\203A";
  margin-left: 6px;
  color: #C9C4B4;
}
.breadcrumb a { color: var(--color-text-muted); }
.breadcrumb a:hover { color: var(--color-dark); text-decoration: underline; }
.breadcrumb li[aria-current="page"] { color: var(--color-dark); font-weight: 600; }

/* ============ ファーストビュー（ヒーロー） ============ */
.hero {
  display: grid;
  gap: 28px;
  padding-block: 8px 40px;
}
.eyebrow {
  font-family: var(--font-heading);
  font-weight: 700;
  color: var(--color-yellow-dark);
  letter-spacing: 0.14em;
  font-size: 0.85rem;
  margin-bottom: 14px;
}
.hero__title {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: clamp(1.55rem, 4.4vw, 2.35rem);
  line-height: 1.5;
  color: var(--color-dark);
  letter-spacing: 0.01em;
  word-break: keep-all;
  overflow-wrap: anywhere;
}
.hero__name {
  margin-top: 18px;
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--color-text);
}
.hero__meta {
  margin-top: 10px;
  font-size: 0.8rem;
  color: var(--color-text-muted);
}
.hero__meta-category {
  background: var(--color-gray-200);
  padding: 4px 10px;
  border-radius: 999px;
}
.hero__figure {
  margin: 0;
}
.hero__img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  object-position: 50% 82%;
  border-radius: var(--radius);
  background: var(--color-gray-100);
}
.hero__figure figcaption {
  margin-top: 10px;
  font-size: 0.78rem;
  color: var(--color-text-muted);
  line-height: 1.7;
}

@media (min-width: 1024px) {
  .hero {
    grid-template-columns: 1fr 560px;
    align-items: center;
    padding-block: 48px 64px;
  }
  .hero__title { font-size: clamp(1.9rem, 2.6vw, 2.5rem); }
  .hero__img {
    aspect-ratio: 3 / 2;
    object-position: 50% 88%;
  }
}

/* ============ 導入文 ============ */
.lead-section { padding-block: 8px 32px; }
.lead {
  font-size: 1.18rem;
  line-height: 2;
  color: var(--color-text);
  font-weight: 500;
}

/* ============ 引用ブロック（キークオート／最後のメッセージ） ============ */
.pull-quote {
  margin-block: 40px;
  padding: 32px clamp(20px, 5vw, 44px);
  border-left: 6px solid var(--color-yellow);
  background: var(--color-bg-warm);
  border-radius: 0 var(--radius) var(--radius) 0;
}
.pull-quote p {
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: clamp(1.15rem, 2.6vw, 1.5rem);
  line-height: 1.7;
  color: var(--color-dark);
}
.pull-quote--final {
  text-align: center;
  border-left: none;
  border-top: 6px solid var(--color-yellow);
  background: var(--color-dark);
  border-radius: var(--radius);
}
.pull-quote--final .pull-quote__word {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: clamp(1.8rem, 5vw, 2.6rem);
  color: var(--color-yellow);
  margin-bottom: 16px;
}
.pull-quote--final .pull-quote__note {
  font-family: var(--font-body);
  font-weight: 400;
  font-size: 1rem;
  line-height: 1.9;
  color: #F3F1E9;
  max-width: 46em;
  margin-inline: auto;
}

/* エディトリアル・コールアウト（成功だけでなく…の要約ボックス） */
.callout {
  margin-block: 32px;
  padding: 22px 26px;
  background: var(--color-gray-100);
  border-radius: var(--radius);
  border-left: 4px solid var(--color-dark);
}
.callout p {
  font-size: 0.98rem;
  font-weight: 600;
  color: var(--color-dark);
  line-height: 1.9;
}

/* ============ プロフィール ============ */
.profile {
  display: grid;
  gap: 20px;
  padding-block: 8px 24px;
}
.profile__figure { margin: 0; max-width: 320px; }
.profile__figure img {
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  object-position: 50% 12%;
  border-radius: var(--radius);
  background: var(--color-gray-100);
}
.profile__figure figcaption {
  margin-top: 10px;
  font-size: 0.78rem;
  color: var(--color-text-muted);
  line-height: 1.7;
}
.profile__body { align-self: center; }
.profile__name {
  font-weight: 700;
  font-size: 1.02rem;
  color: var(--color-dark);
  margin-bottom: 10px;
}
.profile__body p:not(.profile__name) {
  color: var(--color-text);
}

@media (min-width: 768px) {
  .profile {
    grid-template-columns: 260px 1fr;
    align-items: start;
  }
  .profile__figure { max-width: none; }
}

/* ============ インタビュー本文 ============ */
.interview-body { padding-block: 8px; }
.interview-body section { padding-block: 44px; }
.interview-body section + section { border-top: 1px solid var(--color-border); }

.interview-body h2 {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: clamp(1.25rem, 2.6vw, 1.55rem);
  color: var(--color-dark);
  line-height: 1.6;
  margin-bottom: 28px;
  padding-left: 16px;
  border-left: 5px solid var(--color-yellow);
}

.qa { margin-bottom: 30px; }
.qa:last-child { margin-bottom: 0; }
.qa__q {
  display: flex;
  gap: 10px;
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 1.02rem;
  color: var(--color-dark);
  line-height: 1.75;
  margin-bottom: 10px;
}
.qa__label {
  flex: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: var(--color-yellow);
  color: var(--color-dark);
  font-weight: 800;
  font-size: 0.85rem;
  margin-top: 2px;
}
.qa__a p {
  color: var(--color-text);
  margin-bottom: 14px;
}
.qa__a p:last-child { margin-bottom: 0; }

/* ============ ワイド画像（ACF集合写真） ============ */
.wide-figure {
  margin-block: 40px;
  margin-inline: calc((var(--article-max) - 100vw) / 2);
  width: 100vw;
  max-width: 100vw;
  padding-inline: var(--gutter);
}
.wide-figure__img {
  width: 100%;
  height: auto;
  border-radius: var(--radius);
  cursor: zoom-in;
  background: var(--color-gray-100);
}
.wide-figure figcaption {
  max-width: var(--article-max);
  margin: 12px auto 0;
  font-size: 0.8rem;
  color: var(--color-text-muted);
  line-height: 1.7;
}

@media (min-width: 1160px) {
  .wide-figure {
    margin-inline: calc((var(--article-max) - 1040px) / 2);
    width: 1040px;
    padding-inline: 0;
  }
}

/* ============ 成長サイクル（4ステップ） ============ */
.growth-cycle {
  display: flex;
  flex-direction: column;
  gap: 0;
  margin-block: 32px;
  padding: 28px 20px;
  background: var(--color-gray-100);
  border-radius: var(--radius);
}
.growth-cycle li {
  display: flex;
  align-items: center;
  gap: 16px;
  padding-block: 14px;
}
.growth-cycle li:not(:last-child) {
  border-bottom: 1px dashed var(--color-border);
  position: relative;
}
.growth-cycle__num {
  flex: none;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--color-dark);
  color: var(--color-yellow);
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 1.1rem;
  display: flex;
  align-items: center;
  justify-content: center;
}
.growth-cycle__label {
  font-weight: 700;
  color: var(--color-dark);
  font-size: 1.02rem;
}

@media (min-width: 768px) {
  .growth-cycle {
    flex-direction: row;
    align-items: stretch;
  }
  .growth-cycle li {
    flex: 1 1 0;
    flex-direction: column;
    gap: 10px;
    text-align: center;
    padding-block: 4px;
    border-bottom: none !important;
  }
  .growth-cycle li:not(:last-child)::after {
    content: "";
    position: absolute;
    right: -4px;
    top: 50%;
    transform: translateY(-50%);
    border-style: solid;
    border-width: 6px 0 6px 8px;
    border-color: transparent transparent transparent #C9C4B4;
  }
}

/* ============ CTA ============ */
.cta {
  margin-block: 56px 40px;
  padding: clamp(32px, 6vw, 52px) clamp(20px, 6vw, 48px);
  background: var(--color-dark);
  border-radius: 8px;
  text-align: center;
}
.cta h2 {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: clamp(1.3rem, 3vw, 1.7rem);
  color: #fff;
  line-height: 1.6;
  margin-bottom: 16px;
}
.cta p {
  color: #E8E5D8;
  line-height: 1.9;
  max-width: 44em;
  margin-inline: auto;
}
.cta__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  justify-content: center;
  margin-top: 28px;
}
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 15px 30px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 0.98rem;
  min-width: 220px;
  transition: transform .15s ease, opacity .15s ease;
}
.btn--primary {
  background: var(--color-yellow);
  color: var(--color-dark);
}
.btn--outline {
  background: transparent;
  color: #fff;
  border: 2px solid var(--color-yellow);
}
.btn:hover { opacity: 0.85; }
@media (hover: hover) {
  .btn:hover { transform: translateY(-1px); }
}
.cta__note {
  margin-top: 24px;
  font-size: 0.76rem;
  color: #B9B6A8;
  line-height: 1.8;
  max-width: 46em;
  margin-inline: auto;
}

/* ============ 関連導線 ============ */
.related-links { padding-block: 8px 60px; }
.related-links ul {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}
.related-links a {
  display: inline-block;
  padding: 12px 22px;
  border: 1px solid var(--color-border);
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--color-dark);
}
.related-links a:hover { border-color: var(--color-yellow); background: var(--color-bg-warm); }

/* ============ 画像拡大ダイアログ ============ */
.image-dialog {
  border: none;
  border-radius: 8px;
  padding: 0;
  max-width: min(94vw, 1400px);
  max-height: 90vh;
  background: #000;
}
.image-dialog::backdrop { background: rgba(0,0,0,0.72); }
.image-dialog img {
  display: block;
  width: 100%;
  height: auto;
  max-height: 90vh;
  object-fit: contain;
}
.image-dialog__close {
  position: absolute;
  top: 8px;
  right: 8px;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(0,0,0,0.6);
  color: #fff;
  font-size: 1.4rem;
  line-height: 1;
  z-index: 2;
}

/* ============ フッター ============ */
.site-footer {
  margin-top: 40px;
  background: var(--color-gray-100);
  border-top: 1px solid var(--color-border);
}
.site-footer__inner {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  justify-content: space-between;
  align-items: center;
  padding-block: 28px;
}
.site-footer__logo {
  display: block;
  opacity: 0.85;
}
.site-footer__logo img {
  height: 28px;
  width: auto;
}
.site-footer__copyright {
  font-size: 0.72rem;
  color: var(--color-text-muted);
  margin-top: 6px;
}
.site-footer__right {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 20px;
}
.site-footer__links {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  font-size: 0.78rem;
}
.site-footer__links a:hover { text-decoration: underline; }
.site-footer__totop {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--color-yellow);
  color: var(--color-dark);
  font-weight: 700;
  font-size: 0.75rem;
  padding: 10px 16px;
  border-radius: 999px;
}

/* ============ レスポンシブ微調整 ============ */
@media (max-width: 389px) {
  .hero__title { font-size: 1.4rem; }
}
