@charset "UTF-8";

/* ==========================================================
   学生と未来 — Feature Article (営業用・作り込み記事) 追加スタイル
   style.css の後に読み込む。既存クラスは変更せず、拡張のみ。
   ========================================================== */

/* --- reading progress --- */
.read-progress {
  position: fixed;
  top: 0;
  left: 0;
  height: 3px;
  width: 0;
  background: var(--yellow);
  z-index: 2000;
  transition: width .1s linear;
}

/* --- sample notice --- */
.sample-bar {
  background: #FFF6E0;
  color: #8A5A00;
  font-size: 12px;
  text-align: center;
  padding: 6px 12px;
  border-bottom: 1px solid #FBE3A6;
}

.sample-bar strong { color: #B36B00; }

/* --- breadcrumb --- */
.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  font-size: 12px;
  color: #777;
  padding-top: 22px;
}

.breadcrumb a { color: var(--teal); }
.breadcrumb a:hover { text-decoration: underline; }
.breadcrumb li + li::before { content: "›"; margin-right: 6px; color: #aaa; }

/* --- meta row (date / category / read time) --- */
.article-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 18px;
  margin-top: 18px;
  font-size: 13px;
  color: #666;
}

.article-meta .tag {
  display: inline-block;
  font-size: 12px;
  font-weight: bold;
  color: var(--teal);
  border: 1px solid var(--teal);
  border-radius: 999px;
  padding: 1px 12px;
  background: #fff;
}

.article-meta .tag.accent {
  color: #fff;
  background: var(--yellow);
  border-color: var(--yellow);
}

/* --- hero visual (写真差し込み枠) --- */
.hero-visual {
  max-width: 900px;
  margin: 44px auto 0;
  border-radius: 16px;
  aspect-ratio: 16 / 9;
  position: relative;
  overflow: hidden;
  color: #fff;
  display: flex;
  align-items: flex-end;
  box-shadow: 0 14px 40px rgba(0, 34, 101, .14);
}

.hero-visual::before {
  content: "";
  position: absolute;
  width: 420px;
  height: 420px;
  border-radius: 50%;
  background: rgba(255, 255, 255, .12);
  top: -160px;
  left: -120px;
}

.hero-visual::after {
  content: "";
  position: absolute;
  width: 300px;
  height: 300px;
  border-radius: 50%;
  background: rgba(255, 255, 255, .1);
  bottom: -110px;
  right: -80px;
}

.hero-visual .mark {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  z-index: 1;
}

.hero-visual .mark .vol { font-size: 14px; letter-spacing: .25em; opacity: .9; }
.hero-visual .mark .company_mark { font-size: 48px; font-weight: 700; text-align: center; padding: 0 20px; }
.hero-visual .mark .sub { font-size: 14px; opacity: .85; letter-spacing: .05em; }

.hero-visual .caption {
  position: relative;
  z-index: 2;
  width: 100%;
  padding: 14px 22px;
  font-size: 12px;
  background: linear-gradient(to top, rgba(0, 0, 0, .35), transparent);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.hero-visual .caption .ph {
  border: 1px dashed rgba(255, 255, 255, .7);
  border-radius: 4px;
  padding: 1px 8px;
  font-size: 11px;
  letter-spacing: .05em;
}

/* --- 実写真モード --- */
.hero-visual.has-photo::before,
.hero-visual.has-photo::after { display: none; }

.hero-visual .photo {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
}

.interviewee .avatar.has-photo {
  overflow: hidden;
  background: #eee;
}

.interviewee .avatar.has-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.photo-ph > img {
  width: 100%;
  aspect-ratio: 16 / 8;
  object-fit: cover;
  border-radius: 14px;
  box-shadow: 0 10px 30px rgba(0, 34, 101, .12);
}

.photo-ph.wide > img { aspect-ratio: 16 / 6.5; }
.photo-grid .photo-ph > img { aspect-ratio: 4 / 3; }

/* 吹き出し・紹介・後記の丸アイコン(実画像) */
#event2 .avatar.has-photo,
.afterword .avatar.has-photo {
  overflow: hidden;
  background: #EAF5F5;
  padding: 0;
}

#event2 .avatar.has-photo img,
.afterword .avatar.has-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
}

#event2 .avatar.has-photo img[src*="student"],
.afterword .avatar.has-photo img[src*="student"] { object-position: center 20%; }

.avatar.flip img { transform: scaleX(-1); }

/* --- interviewee card --- */
.interviewee {
  max-width: 900px;
  margin: 36px auto 0;
  display: flex;
  gap: 34px;
  align-items: center;
  background: #fff;
  border: 1px solid #E6EFEF;
  border-radius: 16px;
  padding: 30px 36px;
  box-shadow: 0 6px 24px rgba(39, 141, 141, .08);
}

.interviewee .avatar {
  flex: 0 0 150px;
  width: 150px;
  height: 150px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 48px;
  font-weight: 700;
  box-shadow: 0 6px 20px rgba(0, 0, 0, .14);
  position: relative;
}

.interviewee .avatar .ph {
  position: absolute;
  bottom: -6px;
  right: -6px;
  background: #fff;
  color: #777;
  font-size: 10px;
  font-weight: normal;
  border: 1px dashed #bbb;
  border-radius: 999px;
  padding: 2px 8px;
  letter-spacing: .05em;
}

.interviewee .who .role { font-size: 14px; color: #666; }
.interviewee .who .name { font-size: 32px; font-weight: 700; line-height: 1.3; margin-top: 2px; }
.interviewee .who .name small { font-size: 14px; color: #888; font-weight: normal; margin-left: 10px; }
.interviewee .who .bio {
  font-size: 14px;
  line-height: 1.9;
  color: #444;
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px solid #EEF3F3;
}

/* --- company facts + stats --- */
.company-panel {
  max-width: 900px;
  margin: 36px auto 0;
  background: var(--teal-bg);
  border-radius: 16px;
  padding: 34px 36px;
}

.company-panel .head {
  display: flex;
  align-items: center;
  gap: 22px;
}

.company-panel .head .logoimg {
  flex: 0 0 92px;
  width: 92px;
  height: 92px;
  border-radius: 50%;
  background: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 28px;
  font-weight: 700;
  color: var(--teal);
  box-shadow: 0 4px 14px rgba(39, 141, 141, .16);
}

.company-panel .head .logoimg.has-logo {
  flex-basis: 124px;
  width: 124px;
  height: 124px;
  border-radius: 18px;
  padding: 6px;
}

.company-panel .head .logoimg.has-logo img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.company-panel .head .cname { font-size: 22px; font-weight: 700; }
.company-panel .head .mission { font-size: 14px; color: #444; margin-top: 4px; line-height: 1.8; }

.company-panel dl {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px 28px;
  margin-top: 24px;
  font-size: 14px;
}

.company-panel dl > div {
  display: flex;
  gap: 12px;
  background: #fff;
  border-radius: 10px;
  padding: 10px 14px;
}

.company-panel dt { flex: 0 0 84px; color: var(--teal); font-weight: bold; }
.company-panel dd { flex: 1; color: #333; }

.stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
  margin-top: 22px;
}

.stats .stat {
  background: #fff;
  border-radius: 12px;
  padding: 18px 14px 14px;
  text-align: center;
  border-top: 4px solid var(--teal);
}

.stats .stat:nth-child(2n) { border-top-color: var(--yellow); }

.stats .num {
  font-size: 34px;
  font-weight: 700;
  color: var(--teal);
  line-height: 1.1;
  letter-spacing: -.01em;
}

.stats .num small { font-size: 15px; margin-left: 2px; }
.stats .label { font-size: 12px; color: #666; margin-top: 6px; }

.company-panel .note {
  font-size: 11px;
  color: #7a8a8a;
  margin-top: 12px;
  text-align: right;
}

/* --- この記事でわかること --- */
.toc {
  max-width: 900px;
  margin: 44px auto 0;
  border: 2px solid var(--teal);
  border-radius: 14px;
  padding: 24px 30px 22px;
  position: relative;
  background: #fff;
}

.toc .toc-title {
  position: absolute;
  top: -14px;
  left: 24px;
  background: #fff;
  color: var(--teal);
  font-weight: 700;
  font-size: 15px;
  padding: 0 10px;
}

.toc ol { counter-reset: toc; }

.toc li {
  counter-increment: toc;
  display: flex;
  gap: 14px;
  align-items: flex-start;
  padding: 8px 0;
  font-size: 15px;
  line-height: 1.7;
}

.toc li + li { border-top: 1px dashed #DCE9E9; }

.toc li::before {
  content: "0" counter(toc);
  flex: 0 0 auto;
  font-weight: 700;
  color: var(--yellow);
  font-size: 18px;
  line-height: 1.4;
}

.toc li a { color: var(--ink); }
.toc li a:hover { color: var(--teal); }

/* --- 章番号付きカテゴリバー拡張 --- */
#event2 .itembox .chap {
  font-size: 13px;
  letter-spacing: .2em;
  opacity: .85;
  font-weight: 500;
  margin-right: 6px;
}

/* --- 写真差し込み枠 --- */
.photo-ph {
  margin: 44px auto;
  max-width: 900px;
}

.photo-ph .frame {
  aspect-ratio: 16 / 8;
  border-radius: 14px;
  border: 2px dashed var(--teal-pale);
  background: repeating-linear-gradient(135deg, #F4FAFA 0 12px, #fff 12px 24px);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  color: var(--teal);
}

.photo-ph.wide .frame { aspect-ratio: 16 / 6; }

.photo-ph .frame svg { width: 40px; height: 40px; }
.photo-ph .frame .ph-label { font-size: 12px; letter-spacing: .15em; font-weight: bold; }
.photo-ph .frame .ph-hint { font-size: 12px; color: #6a8f8f; }

.photo-ph figcaption {
  font-size: 13px;
  color: #666;
  margin-top: 10px;
  text-align: center;
}

.photo-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
  max-width: 900px;
  margin: 44px auto;
}

.photo-grid .photo-ph { margin: 0; }
.photo-grid .photo-ph .frame { aspect-ratio: 4 / 3; }

/* --- pull quote --- */
.pullquote {
  max-width: 820px;
  margin: 56px auto;
  padding: 34px 40px 30px 54px;
  position: relative;
  color: var(--teal);
  font-size: 26px;
  font-weight: 700;
  line-height: 1.6;
  border-left: 6px solid var(--yellow);
  background: linear-gradient(90deg, #F4FAFA, #fff);
  border-radius: 0 16px 16px 0;
}

.pullquote::before {
  content: "“";
  position: absolute;
  top: 6px;
  left: 16px;
  font-size: 70px;
  line-height: 1;
  color: var(--yellow);
  opacity: .7;
  font-family: Georgia, serif;
}

.pullquote cite {
  display: block;
  margin-top: 14px;
  font-size: 14px;
  font-weight: normal;
  font-style: normal;
  color: #666;
}

/* --- keywords --- */
.keywords {
  max-width: 900px;
  margin: 48px auto 0;
}

.keywords .kw-title {
  text-align: center;
  font-size: 22px;
  font-weight: 700;
  margin-bottom: 22px;
}

.keywords .kw-title span { color: var(--teal); }

.keywords .grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

.keywords .kw {
  background: #fff;
  border: 1px solid #E6EFEF;
  border-radius: 14px;
  padding: 24px 22px 22px;
  box-shadow: 0 6px 20px rgba(39, 141, 141, .07);
  position: relative;
  overflow: hidden;
}

.keywords .kw::before {
  content: attr(data-n);
  position: absolute;
  top: -10px;
  right: 12px;
  font-size: 64px;
  font-weight: 700;
  color: var(--teal-bg);
  line-height: 1;
}

.keywords .kw h4 {
  font-size: 18px;
  color: var(--teal);
  margin-bottom: 10px;
  position: relative;
}

.keywords .kw p { font-size: 14px; line-height: 1.9; color: #444; position: relative; }

/* --- 取材後記 --- */
.afterword {
  max-width: 900px;
  margin: 70px auto 0;
}

.afterword .aw-title {
  display: flex;
  align-items: center;
  gap: 14px;
  font-size: 22px;
  font-weight: 700;
  margin-bottom: 26px;
}

.afterword .aw-title::before,
.afterword .aw-title::after {
  content: "";
  flex: 1;
  height: 2px;
  background: var(--teal);
}

.afterword .cards {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 22px;
}

.afterword .card {
  background: var(--bubble);
  border-radius: 16px;
  padding: 24px 26px;
}

.afterword .card .who {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 12px;
}

.afterword .card .avatar {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-weight: 700;
  font-size: 18px;
}

.afterword .card .who .n { font-weight: 700; font-size: 16px; }
.afterword .card .who .u { font-size: 12px; color: #666; }
.afterword .card p { font-size: 14px; line-height: 1.95; color: #444; }

/* --- 採用情報 / 企業CTA --- */
.recruit {
  max-width: 900px;
  margin: 64px auto 0;
  background: var(--teal);
  color: #fff;
  border-radius: 18px;
  padding: 40px 40px 36px;
  position: relative;
  overflow: hidden;
}

.recruit::before {
  content: "";
  position: absolute;
  width: 320px;
  height: 320px;
  border-radius: 50%;
  background: rgba(255, 255, 255, .1);
  top: -140px;
  right: -100px;
}

.recruit .r-head {
  position: relative;
  z-index: 1;
  font-size: 13px;
  letter-spacing: .25em;
  opacity: .9;
}

.recruit h3 {
  position: relative;
  z-index: 1;
  font-size: 26px;
  margin-top: 6px;
  line-height: 1.4;
}

.recruit .r-body {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 22px 30px;
  margin-top: 24px;
}

.recruit .r-item {
  background: rgba(255, 255, 255, .12);
  border-radius: 12px;
  padding: 16px 18px;
}

.recruit .r-item .k { font-size: 12px; opacity: .85; letter-spacing: .1em; }
.recruit .r-item .v { font-size: 16px; font-weight: 700; margin-top: 4px; line-height: 1.6; }
.recruit .r-item .v small { font-size: 12px; font-weight: normal; opacity: .9; }

.recruit .r-cta {
  position: relative;
  z-index: 1;
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  align-items: center;
  margin-top: 26px;
}

.recruit .btn {
  display: inline-block;
  background: var(--yellow);
  color: #fff;
  font-weight: bold;
  padding: 12px 36px;
  border-radius: 999px;
  box-shadow: 0 4px 0 rgba(0, 0, 0, .15);
  transition: transform .15s, box-shadow .15s;
}

.recruit .btn.ghost {
  background: transparent;
  border: 2px solid rgba(255, 255, 255, .8);
  box-shadow: none;
}

.recruit .btn:hover { transform: translateY(2px); box-shadow: 0 2px 0 rgba(0, 0, 0, .15); }
.recruit .btn.ghost:hover { background: rgba(255, 255, 255, .12); }
.recruit .r-note { font-size: 12px; opacity: .8; width: 100%; }

/* --- share --- */
.share {
  max-width: 900px;
  margin: 50px auto 0;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
}

.share .label { font-size: 13px; color: #666; font-weight: bold; margin-right: 6px; }

.share a,
.share button {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font);
  font-size: 13px;
  font-weight: bold;
  color: #333;
  background: #fff;
  border: 1px solid #ddd;
  border-radius: 999px;
  padding: 8px 16px;
  cursor: pointer;
  transition: border-color .2s, color .2s, background .2s;
}

.share a:hover,
.share button:hover { border-color: var(--teal); color: var(--teal); }
.share svg { width: 16px; height: 16px; }
.share button.copied { background: var(--teal-bg); border-color: var(--teal); color: var(--teal); }

/* --- related --- */
.related {
  max-width: 900px;
  margin: 64px auto 0;
}

.related .rel-title {
  font-size: 20px;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 18px;
}

.related .rel-title::before {
  content: "";
  width: 10px;
  height: 22px;
  background: var(--teal);
}

.related .grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

.related .rel {
  display: block;
  background: #fff;
  border: 1px solid #eee;
  border-radius: 14px;
  overflow: hidden;
  transition: box-shadow .2s, transform .2s;
}

.related .rel:hover { box-shadow: 0 8px 28px rgba(39, 141, 141, .18); transform: translateY(-3px); }

.related .rel .thumb {
  height: 120px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: #fff;
  gap: 4px;
  position: relative;
  overflow: hidden;
}

.related .rel .thumb::before {
  content: "";
  position: absolute;
  width: 140px;
  height: 140px;
  border-radius: 50%;
  background: rgba(255, 255, 255, .12);
  top: -50px;
  left: -40px;
}

.related .rel .thumb .vol { font-size: 11px; letter-spacing: .15em; position: relative; }
.related .rel .thumb .company_mark { font-size: 20px; font-weight: 700; position: relative; }
.related .rel .body { padding: 14px 16px 16px; }
.related .rel .body .c { font-size: 12px; color: var(--teal); font-weight: bold; }
.related .rel .body .t { font-size: 14px; font-weight: 700; line-height: 1.5; margin-top: 4px; color: var(--ink); }

/* --- responsive --- */
@media screen and (max-width: 768px) {
  .hero-visual { aspect-ratio: 4 / 3; border-radius: 12px; margin-top: 28px; }
  .hero-visual .mark .company_mark { font-size: 30px; }
  .hero-visual .caption { font-size: 11px; padding: 10px 14px; flex-direction: column; align-items: flex-start; gap: 6px; }
  .hero-visual .caption .ph { white-space: nowrap; }

  #event2 .itembox .itemtext { display: flex; flex-direction: column; line-height: 1.3; }
  #event2 .itembox .chap { font-size: 11px; margin: 0; }

  .interviewee { flex-direction: column; text-align: center; padding: 26px 22px; gap: 18px; }
  .interviewee .avatar { width: 120px; height: 120px; flex: none; font-size: 40px; }
  .interviewee .who .name { font-size: 26px; }
  .interviewee .who .name small { display: block; margin: 4px 0 0; }

  .company-panel { padding: 24px 20px; }
  .company-panel .head { flex-direction: column; text-align: center; }
  .company-panel dl { grid-template-columns: 1fr; }
  .stats { grid-template-columns: 1fr 1fr; }
  .stats .num { font-size: 28px; }

  .toc { padding: 22px 20px 16px; }

  .photo-grid { grid-template-columns: 1fr; }

  .pullquote { font-size: 19px; padding: 26px 22px 22px 40px; margin: 40px auto; }
  .pullquote::before { font-size: 50px; left: 10px; }

  .keywords .grid { grid-template-columns: 1fr; }
  .afterword .cards { grid-template-columns: 1fr; }

  .recruit { padding: 28px 22px; }
  .recruit h3 { font-size: 21px; }
  .recruit .r-body { grid-template-columns: 1fr; }

  .related .grid { grid-template-columns: 1fr; }
}

/* ==========================================================
   Print / PDF 書き出し (scripts/export_feature.py)
   ========================================================== */
@media print {
  .site-header, .read-progress, .share, .backbtn, #footer a { display: none !important; }
  .fade-up { opacity: 1 !important; transform: none !important; }
  body { -webkit-print-color-adjust: exact; print-color-adjust: exact; }
  #interview_mv2 .titlebox { padding-top: 0 !important; }
  .breadcrumb { display: none; }
  .hero-visual, .interviewee, .company-panel, .toc, .interviewbox,
  #event2 .quistionbox, .photo-ph, .photo-grid, .pullquote, .keywords .kw,
  .afterword .card, .recruit, .related .rel, .closing, #event2 .ttl {
    break-inside: avoid; page-break-inside: avoid;
  }
  #event2 .itembox { break-after: avoid; page-break-after: avoid; break-inside: avoid; }
  .keywords .kw-title, .afterword .aw-title, .related .rel-title { break-after: avoid; }
  .hero-visual { box-shadow: none; }
  #footer .body { padding: 20px 24px; font-size: 0; }
  #footer .copy { font-size: 12px; margin-top: 0; }
}
