@charset "UTF-8";
/* 福井テレビ 経験者採用ページ（コーポレートサイト準拠カラー） */
:root {
  --brand: #e3007f;       /* メイン：福井テレビ マゼンタ */
  --brand-dark: #c2006c;  /* ホバー・濃い部分 */
  --brand-soft: #fde8f2;  /* 淡いピンク（背景） */
  --pink: #f997a8;        /* 装飾用ピンク */
  --heading: #333333;     /* 見出し */
  --ink: #404040;         /* 本文 */
  --muted: #707070;       /* 補足テキスト */
  --line: #e8e3e0;
  --bg: #ffffff;
  --bg-soft: #f5f3f2;     /* ウォームグレー（セクション背景） */
  --dark: #404040;        /* フッター */
  --radius: 14px;
  --max: 1080px;
}
* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: "Noto Sans JP", sans-serif;
  color: var(--ink);
  background: var(--bg);
  line-height: 1.8;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; }
img { max-width: 100%; display: block; }
.container { max-width: var(--max); margin: 0 auto; padding: 0 20px; }
.en { font-family: "Montserrat", sans-serif; letter-spacing: .12em; }

/* ===== Header ===== */
header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255,255,255,.96);
  backdrop-filter: blur(8px);
  border-top: 4px solid var(--brand);
  border-bottom: 1px solid var(--line);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; height: 64px; }
.logo { font-weight: 900; font-size: 18px; color: var(--heading); text-decoration: none; display: flex; align-items: center; gap: 10px; }
.logo-img { height: 46px; width: auto; }
.logo small { font-size: 12px; font-weight: 700; color: var(--brand); padding-left: 12px; border-left: 1px solid var(--line); line-height: 1.6; }
nav ul { display: flex; gap: 16px; list-style: none; font-size: 14px; font-weight: 500; }
nav a { text-decoration: none; }
nav a:hover { color: var(--brand); }
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  background: var(--brand); color: #fff; font-weight: 700;
  text-decoration: none; border-radius: 999px; padding: 10px 22px; font-size: 14px;
  transition: transform .15s, box-shadow .15s, background .15s;
}
.btn:hover { background: var(--brand-dark); transform: translateY(-2px); box-shadow: 0 6px 18px rgba(227,0,127,.35); }
.btn-lg { padding: 18px 44px; font-size: 17px; }

/* ===== Hero ===== */
.hero {
  position: relative; overflow: hidden;
  background: linear-gradient(135deg, #ffffff 0%, #fff4f9 45%, var(--brand-soft) 100%);
  color: var(--heading); padding: 55px 0 60px;
}
.hero::before, .hero::after { content: ""; position: absolute; border-radius: 50%; }
.hero::before { width: 520px; height: 520px; right: -140px; top: -140px; background: rgba(249,151,168,.28); }
.hero::after  { width: 300px; height: 300px; right: 140px; bottom: -170px; border: 3px solid rgba(227,0,127,.35); }
.hero-label { display: inline-block; font-size: 13px; font-weight: 800; color: var(--brand); margin-bottom: 18px; }
.hero h1 { font-size: clamp(32px, 6vw, 58px); font-weight: 900; line-height: 1.35; margin-bottom: 24px; }
.hero h1 em { font-style: normal; color: var(--brand); }
.hero p { font-size: clamp(15px, 2vw, 18px); color: var(--ink); max-width: 560px; margin-bottom: 40px; }
.hero-badges { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 40px; }
.hero-badges span { background: #fff; border: 1px solid var(--brand); color: var(--brand); border-radius: 999px; padding: 4px 16px; font-size: 13px; font-weight: 500; }

/* ===== Section common ===== */
section { padding: 48px 0; }
.sec-soft { background: var(--bg-soft); }
.sec-head { text-align: center; margin-bottom: 56px; }
.sec-head .en { display: block; color: var(--brand); font-size: 13px; font-weight: 800; margin-bottom: 6px; }
.sec-head h2 { font-size: clamp(24px, 4vw, 34px); font-weight: 900; color: var(--heading); }
.sec-head h2::after { content: ""; display: block; width: 40px; height: 4px; border-radius: 2px; background: var(--brand); margin: 14px auto 0; }
.sec-head p { color: var(--muted); margin-top: 16px; }

/* ===== Message ===== */
.message { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
.ph {
  aspect-ratio: 4/3; border-radius: var(--radius);
  background: repeating-linear-gradient(45deg, #f5f3f2 0 12px, #efeae7 12px 24px);
  display: grid; place-items: center; color: var(--muted); font-size: 13px;
  overflow: hidden;
}
.ph img { width: 100%; height: 100%; object-fit: cover; }
.message h3 { font-size: 24px; font-weight: 900; color: var(--heading); line-height: 1.6; margin-bottom: 20px; }
.message h3 em { font-style: normal; color: var(--brand); }
.message p + p { margin-top: 14px; }

/* ===== Jobs ===== */
.jobs { display: grid; grid-template-columns: repeat(2, 1fr); gap: 28px; }
.job {
  background: #fff; border-radius: var(--radius); overflow: hidden;
  box-shadow: 0 4px 24px rgba(64,64,64,.08);
  display: flex; flex-direction: column;
}
.job .ph { border-radius: 0; aspect-ratio: 16/9; }
.job-body { padding: 28px; }
.job-tag { display: inline-block; background: var(--brand); color: #fff; font-size: 12px; font-weight: 500; padding: 2px 14px; border-radius: 999px; margin-bottom: 10px; }
.job h3 { font-size: 22px; font-weight: 900; color: var(--heading); margin-bottom: 10px; }
.job p { color: var(--muted); font-size: 15px; }
.job ul { margin-top: 14px; padding-left: 1.2em; font-size: 14px; }
.job li::marker { color: var(--brand); }
.note { text-align: center; margin-top: 28px; font-size: 14px; color: var(--muted); }

/* ===== Requirements table ===== */
.req { background: #fff; border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); }
.req dl { display: grid; grid-template-columns: 200px 1fr; }
.req dt, .req dd { padding: 24px 28px; border-bottom: 1px solid var(--line); }
.req dt { background: var(--brand-soft); font-weight: 700; color: var(--heading); }
.req dl > *:nth-last-child(-n+2) { border-bottom: none; }
.req dd small { display: block; color: var(--muted); margin-top: 6px; }
.req ol { padding-left: 1.4em; }

/* ===== Flow ===== */
.flow { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; list-style: none; counter-reset: step; }
.flow li {
  position: relative; background: #fff; border-radius: var(--radius);
  border: 2px solid var(--brand-soft);
  padding: 32px 20px 26px; text-align: center;
}
.flow li::before {
  counter-increment: step; content: "STEP " counter(step);
  font-family: "Montserrat", sans-serif; font-weight: 800; font-size: 12px; letter-spacing: .1em;
  color: var(--brand); display: block; margin-bottom: 8px;
}
.flow li:not(:last-child)::after {
  content: ""; position: absolute; right: -15px; top: 50%; transform: translateY(-50%);
  border: 8px solid transparent; border-left: 10px solid var(--pink);
}
.flow h3 { font-size: 18px; color: var(--heading); margin-bottom: 8px; }
.flow p { font-size: 13px; color: var(--muted); }

/* ===== Entry（淡いピンクの背景＋マゼンタのボタン） ===== */
.entry {
  background: linear-gradient(180deg, #fdf0f6 0%, #fbe6ef 100%);
  border-top: 1px solid #f6d3e3; border-bottom: 1px solid #f6d3e3;
  text-align: center;
}
.entry-box { max-width: 720px; margin: 0 auto; }
.entry-notes { margin: 36px auto 0; text-align: left; background: #fff; border: 1px solid #f6d3e3; border-radius: var(--radius); padding: 22px 28px; font-size: 14px; color: var(--muted); list-style: none; }
.entry-notes li { padding-left: 1.2em; text-indent: -1.2em; }
.entry-notes li + li { margin-top: 6px; }
.entry-notes li::before { content: "※ "; color: var(--brand); }
.entry .btn { margin-top: 36px; }

/* ===== FAQ ===== */
.faq { max-width: 800px; margin: 0 auto; }
.faq details { background: #fff; border: 1px solid var(--line); border-radius: 10px; margin-bottom: 12px; }
.faq details[open] { border-color: var(--pink); }
.faq summary { cursor: pointer; padding: 20px 52px 20px 24px; font-weight: 700; color: var(--heading); list-style: none; position: relative; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::before { content: "Q."; color: var(--brand); font-family: "Montserrat", sans-serif; margin-right: 10px; }
.faq summary::after { content: "+"; position: absolute; right: 24px; top: 50%; transform: translateY(-50%); font-size: 22px; color: var(--brand); }
.faq details[open] summary::after { content: "−"; }
.faq .a { padding: 0 24px 22px; color: var(--muted); }

/* ===== Contact ===== */
.contact { text-align: center; }
.contact-card { display: inline-block; border: 2px solid var(--brand); border-radius: var(--radius); padding: 36px 56px; }
.contact-card .dept { font-weight: 700; color: var(--heading); }
.tel { display: block; font-family: "Montserrat", sans-serif; font-size: clamp(28px, 5vw, 40px); font-weight: 800; color: var(--brand); text-decoration: none; margin: 8px 0 4px; letter-spacing: .04em; }
.contact-card small { color: var(--muted); }

footer { background: var(--dark); color: rgba(255,255,255,.8); text-align: center; padding: 28px 0; font-size: 12px; }

/* ===== Interview ===== */
section[id] { scroll-margin-top: 68px; } /* 固定ヘッダーで見出しが隠れないように */
.iv-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.iv-card {
  background: #fff; border-radius: var(--radius); overflow: hidden;
  box-shadow: 0 4px 24px rgba(64,64,64,.08);
  display: flex; flex-direction: column;
}
.iv-photo { aspect-ratio: 4/5; }
.iv-card .iv-photo { border-radius: 0; }
.iv-card-body { padding: 24px; display: flex; flex-direction: column; flex: 1; }
.iv-card-body .job-tag { align-self: flex-start; }
.iv-catch { font-size: 19px; font-weight: 900; color: var(--heading); line-height: 1.6; margin: 4px 0 14px; }
.iv-catch em, .iv-title em { font-style: normal; color: var(--brand); }
.iv-name { font-weight: 700; }
.iv-name small { display: block; font-weight: 400; font-size: 13px; color: var(--muted); }
.iv-more {
  margin-top: auto; padding-top: 18px; background: none; border: none; cursor: pointer;
  font: inherit; font-weight: 700; color: var(--brand); text-align: left;
  display: flex; align-items: center; justify-content: space-between; gap: 8px;
  border-top: 1px solid var(--line);
}
.iv-more::after { content: "→"; transition: transform .15s; }
.iv-more span { font-size: 12px; font-weight: 500; color: var(--muted); margin-left: auto; }
.iv-more:hover::after { transform: translateX(4px); }

.iv-modal {
  width: min(820px, calc(100% - 32px)); max-height: 90vh;
  margin: auto; padding: 0; border: none; border-radius: var(--radius);
  color: var(--ink); overscroll-behavior: contain;
}
.iv-modal::backdrop { background: rgba(64,64,64,.75); }
body:has(.iv-modal[open]) { overflow: hidden; }
.iv-modal-inner { position: relative; padding: 48px 56px; }
.iv-close {
  position: sticky; top: 0; float: right; margin: -32px -40px 0 0; z-index: 2;
  width: 44px; height: 44px; border-radius: 50%; border: none; cursor: pointer;
  background: var(--brand); color: #fff; font-size: 22px; line-height: 1;
}
.iv-head { display: grid; grid-template-columns: 220px 1fr; gap: 32px; align-items: center; margin-bottom: 36px; }
.iv-title { font-size: 26px; font-weight: 900; color: var(--heading); line-height: 1.5; margin: 6px 0 14px; }
.iv-lead { background: var(--bg-soft); border-radius: 10px; padding: 20px 24px; font-size: 15px; color: var(--muted); margin-bottom: 8px; }
.iv-body h4 {
  font-size: 17px; color: var(--heading); margin: 36px 0 12px;
  padding-left: 14px; border-left: 4px solid var(--brand); line-height: 1.6;
}
.iv-body p { font-size: 15.5px; line-height: 2; }
.iv-video { margin: 0 0 28px; }
.iv-video-frame { aspect-ratio: 16/9; border-radius: 10px; overflow: hidden; background: #000; }
.iv-video.tall .iv-video-frame { aspect-ratio: 9/16; width: min(300px, 75%); margin: 0 auto; }
.iv-video-frame iframe { width: 100%; height: 100%; border: 0; display: block; }
.iv-video-local { position: relative; display: block; width: 100%; height: 100%; color: #fff; text-decoration: none; }
.iv-video-local img { width: 100%; height: 100%; object-fit: cover; opacity: .3; }
.iv-video-local span { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; font-weight: 700; text-align: center; padding: 12px; }
.iv-video-local small { font-size: 12px; font-weight: 400; }
.iv-video figcaption { font-size: 13px; color: var(--muted); text-align: center; margin-top: 8px; }
.iv-foot { text-align: center; margin-top: 44px; padding-top: 32px; border-top: 1px solid var(--line); }

/* ===== Mobile fixed CTA ===== */
.sp-cta { display: none; }

/* ===== Responsive ===== */
.logo, nav a, .header-cta { white-space: nowrap; }
@media (max-width: 1180px) {
  nav ul { gap: 14px; font-size: 13px; }
}
@media (max-width: 1040px) {
  nav { display: none; }
}
@media (max-width: 860px) {
  section { padding: 36px 0; }
  .hero { padding: 40px 0 45px; }
  .hero::before { width: 320px; height: 320px; right: -120px; top: -100px; }
  .message, .jobs { grid-template-columns: 1fr; gap: 32px; }
  .req dl { grid-template-columns: 1fr; }
  .req dt { border-bottom: none; padding-bottom: 10px; }
  .req dd { padding-top: 14px; }
  .req dl > dt:last-of-type { border-bottom: none; }
  .flow { grid-template-columns: 1fr; gap: 26px; }
  .flow li:not(:last-child)::after { right: 50%; top: auto; bottom: -25px; transform: translateX(50%); border: 8px solid transparent; border-top: 10px solid var(--pink); }
  .contact-card { padding: 28px 20px; display: block; }
  .header-cta { display: none; }
  .sp-cta {
    display: block; position: fixed; left: 0; right: 0; bottom: 0; z-index: 60;
    padding: 10px 16px; background: rgba(255,255,255,.96); border-top: 1px solid var(--line);
  }
  .sp-cta .btn { width: 100%; padding: 14px; font-size: 16px; }
  footer:has(~ .sp-cta:not([hidden])) { padding-bottom: 90px; }
  .iv-grid { grid-template-columns: 1fr; gap: 24px; }
  .iv-card { flex-direction: row; }
  .iv-card .iv-photo { width: 38%; flex-shrink: 0; aspect-ratio: auto; }
  .iv-card-body { padding: 18px; }
  .iv-catch { font-size: 16px; }
  .iv-more { font-size: 13px; white-space: nowrap; gap: 6px; }
  .iv-more span { font-size: 11px; }
  .iv-modal { width: 100%; max-width: 100%; height: 100%; max-height: 100%; border-radius: 0; }
  .iv-modal-inner { padding: 24px 20px 40px; }
  .iv-close { margin: -8px -4px 0 0; }
  .iv-head { grid-template-columns: 1fr; gap: 20px; }
  .iv-head .iv-photo { aspect-ratio: 4/3; }
  .iv-title { font-size: 22px; }
}

.hero-inner { position: relative; z-index: 1; }

/* =========================================================
   新卒版の演出（わくわく感）
   差し色：コーポレートサイトでも使われているイエロー・ミント
   ========================================================= */
:root { --amber: #ffb300; --mint: #19c1a0; --mint-dark: #0f8a73; /* 白文字を乗せる用 */ }

/* ---- ファーストビュー ---- */
.hero-label {
  background: #fff; border-radius: 999px; padding: 5px 16px 5px 12px;
  box-shadow: 0 4px 14px rgba(227,0,127,.12);
  display: inline-flex; align-items: center; gap: 8px;
}
.hero-label::before { /* ON AIR ランプ */
  content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--brand);
  box-shadow: 0 0 0 0 rgba(227,0,127,.6); animation: onair 1.6s infinite;
}
@keyframes onair {
  0% { box-shadow: 0 0 0 0 rgba(227,0,127,.6); }
  70% { box-shadow: 0 0 0 8px rgba(227,0,127,0); }
  100% { box-shadow: 0 0 0 0 rgba(227,0,127,0); }
}
.hero h1 em { background: linear-gradient(transparent 68%, rgba(255,179,0,.45) 68%); padding: 0 .08em; }
.hero-inner > * { animation: fadeUp .8s cubic-bezier(.2,.7,.2,1) both; }
.hero-inner > :nth-child(2) { animation-delay: .12s; }
.hero-inner > :nth-child(3) { animation-delay: .24s; }
.hero-inner > :nth-child(4) { animation-delay: .36s; }
.hero-inner > :nth-child(5) { animation-delay: .48s; }
.hero-inner > :nth-child(6) { animation-delay: .6s; }
@keyframes fadeUp { from { opacity: 0; transform: translateY(24px); } to { opacity: 1; transform: none; } }
.hero-badges span:nth-child(4n+1) { border-color: var(--brand); color: var(--brand); }
.hero-badges span:nth-child(4n+2) { border-color: var(--amber); color: #b37a00; }
.hero-badges span:nth-child(4n+3) { border-color: var(--mint); color: #0e8a72; }
.hero-badges span:nth-child(4n)   { border-color: var(--pink); color: #d1557a; }
.hero .btn-lg { animation: fadeUp .8s .48s cubic-bezier(.2,.7,.2,1) both, pulse 2.4s 1.6s infinite; }
@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgba(227,0,127,.45); }
  70% { box-shadow: 0 0 0 16px rgba(227,0,127,0); }
  100% { box-shadow: 0 0 0 0 rgba(227,0,127,0); }
}

/* ふわふわ浮かぶ図形 */
.hero-deco { position: absolute; inset: 0; pointer-events: none; }
.hero-deco i { position: absolute; display: block; border-radius: 50%; animation: float 7s ease-in-out infinite; }
.hero-deco i:nth-child(1) { width: 26px; height: 26px; background: var(--amber); right: 32%; top: 18%; }
.hero-deco i:nth-child(2) { width: 70px; height: 70px; border: 6px solid var(--mint); right: 10%; top: 58%; animation-duration: 9s; animation-delay: -2s; }
.hero-deco i:nth-child(3) { width: 14px; height: 14px; background: var(--brand); right: 22%; top: 36%; animation-duration: 5s; }
.hero-deco i:nth-child(4) { width: 120px; height: 120px; background: rgba(255,179,0,.18); right: 26%; bottom: 8%; animation-duration: 11s; animation-delay: -4s; }
.hero-deco i:nth-child(5) { width: 18px; height: 18px; border: 4px solid var(--brand); right: 6%; top: 22%; animation-duration: 6s; animation-delay: -1s; }
.hero-deco i:nth-child(6) { width: 40px; height: 40px; border-radius: 10px; background: rgba(25,193,160,.25); left: 52%; top: 12%; animation-duration: 8s; animation-delay: -3s; }
@keyframes float {
  0%, 100% { transform: translate(0, 0) rotate(0); }
  50% { transform: translate(0, -18px) rotate(25deg); }
}

/* ---- 流れる帯（ニュース速報風） ---- */
.ticker { background: var(--heading); color: #fff; overflow: hidden; padding: 12px 0; font-size: 14px; font-weight: 700; }
.ticker-track { display: flex; width: max-content; animation: ticker 32s linear infinite; }
.ticker-group { display: flex; flex-shrink: 0; }
.ticker-group span { white-space: nowrap; }
.ticker-group span::after { content: "✦"; color: var(--amber); margin: 0 24px; }
.ticker-group span:nth-child(3n+2)::after { color: var(--mint); }
.ticker-group span:nth-child(3n)::after { color: var(--pink); }
@keyframes ticker { to { transform: translateX(-50%); } }

/* ---- 見出し：3色のアンダーライン ---- */
.sec-head h2::after { width: 60px; background: linear-gradient(90deg, var(--brand) 0 40%, var(--amber) 40% 70%, var(--mint) 70%); }

/* ---- 背景：ドット柄 ---- */
.sec-soft {
  background-color: var(--bg-soft);
  background-image: radial-gradient(rgba(227,0,127,.09) 1.6px, transparent 1.6px);
  background-size: 22px 22px;
}

/* ---- ボタン：光が走る ---- */
.btn { position: relative; overflow: hidden; }
.btn::before {
  content: ""; position: absolute; top: 0; left: -80%; width: 50%; height: 100%;
  background: linear-gradient(110deg, transparent, rgba(255,255,255,.45), transparent);
  transform: skewX(-20deg); transition: left .6s;
}
.btn:hover::before { left: 130%; }

/* ---- 職種カード ---- */
.job { transition: translate .25s, box-shadow .25s; }
.job:hover { translate: 0 -6px; box-shadow: 0 14px 34px rgba(227,0,127,.16); }
.job .ph img { transition: transform .5s; }
.job:hover .ph img { transform: scale(1.05); }
.job:nth-child(2) .job-tag { background: var(--mint-dark); }

/* ---- 選考の流れ：番号バッジ ---- */
.flow li { padding-top: 40px; margin-top: 16px; }
.flow li::before {
  position: absolute; top: -16px; left: 50%; translate: -50% 0;
  background: var(--brand); color: #fff; border-radius: 999px; padding: 4px 14px; margin: 0;
}
.flow li:nth-child(4n+2)::before { background: var(--amber); color: var(--heading); }
.flow li:nth-child(4n+3)::before { background: var(--mint-dark); }
.flow li:nth-child(4n)::before { background: var(--pink); color: var(--heading); }
.flow li:last-child { border-color: var(--brand); }
.flow li:last-child h3 { color: var(--brand); }

/* ---- 社員インタビュー：カラフルなカード ---- */
.iv-card { border-top: 6px solid var(--brand); transition: rotate .3s, translate .3s, box-shadow .3s; }
.iv-card:nth-child(3n+2) { border-top-color: var(--amber); }
.iv-card:nth-child(3n) { border-top-color: var(--mint); }
.iv-card:nth-child(3n+2) .job-tag { background: var(--amber); color: var(--heading); }
.iv-card:nth-child(3n) .job-tag { background: var(--mint-dark); }
@media (min-width: 861px) {
  .iv-card:nth-child(odd) { rotate: -1.2deg; }
  .iv-card:nth-child(even) { rotate: 1.2deg; translate: 0 14px; }
  .iv-card:hover { rotate: 0deg; translate: 0 -6px; box-shadow: 0 16px 36px rgba(64,64,64,.16); }
}

/* ---- 応募方法：やわらかい図形 ---- */
.entry { position: relative; overflow: hidden; }
.entry::before, .entry::after { content: ""; position: absolute; border-radius: 50%; pointer-events: none; }
.entry::before { width: 180px; height: 180px; background: rgba(255,179,0,.16); left: -50px; top: -40px; }
.entry::after { width: 120px; height: 120px; border: 8px solid rgba(25,193,160,.22); right: 6%; bottom: -30px; }
.entry .container { position: relative; z-index: 1; }

/* ---- FAQ ---- */
.faq summary::before { color: #fff; background: var(--brand); border-radius: 50%; width: 26px; height: 26px; display: inline-grid; place-items: center; font-size: 12px; margin-right: 12px; }
.faq details:nth-child(3n+2) summary::before { background: var(--mint-dark); }
.faq details:nth-child(3n) summary::before { background: var(--amber); }

/* ---- ファーストビューのボタン ---- */
.hero-cta { display: flex; flex-wrap: wrap; gap: 14px; }
.hero .hero-cta .btn-lg { animation: pulse 2.4s 1.6s infinite; }
.hero .hero-cta .btn-ghost { animation: none; background: #fff; color: var(--brand); box-shadow: inset 0 0 0 2px var(--brand); }
.hero .hero-cta .btn-ghost:hover { background: var(--brand-soft); box-shadow: inset 0 0 0 2px var(--brand); }

/* ---- NEW表示（js/main.js が最終日まで表示） ---- */
.new-badge {
  display: inline-block; background: var(--brand); color: #fff;
  font-family: "Montserrat", sans-serif; font-size: 8.5px; font-weight: 800; letter-spacing: .04em; line-height: 1;
  border-radius: 3px; padding: 2px 4px;
}
/* メニュー：項目名の右上に小さく載せる（項目名の幅や位置は変えない） */
nav a { position: relative; }
nav .new-badge { position: absolute; right: 0; bottom: 100%; margin-bottom: -3px; }
.hero-news:has(.ev-news:not([hidden])) { display: flex; flex-direction: column; align-items: flex-start; gap: 8px; margin: -16px 0 28px; }
.ev-news {
  display: inline-flex; align-items: center; gap: 10px; color: var(--heading); text-decoration: none;
  font-size: 13px; font-weight: 500; background: #fff; border: 1px solid var(--line); border-radius: 999px; padding: 6px 16px 6px 12px;
}
.ev-news:hover { color: var(--brand); }
.ev-news span { flex-shrink: 0; background: var(--brand); color: #fff; font-family: "Montserrat", sans-serif; font-size: 8.5px; font-weight: 800; letter-spacing: .04em; line-height: 1; border-radius: 3px; padding: 2px 4px; }
[hidden] { display: none !important; } /* NEW・表示期間・スイッチによる非表示を、ボタン等のdisplay指定より優先する */

/* ---- イベントのご案内 ---- */
.ev-tags { display: flex; align-items: center; gap: 8px; margin-bottom: 10px; }
.ev-tags .job-tag { margin-bottom: 0; }
/* カード：右上の角に小さく載せる */
.ev-card { position: relative; }
.ev-tags .new-badge { position: absolute; top: 14px; right: 14px; font-size: 9.5px; padding: 3px 5px; }
#events { background: #fffaf0; }
.ev-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 28px; }
/* イベントが1つだけのときは、2つ並びのときと同じ幅で中央に置く */
.ev-grid > .ev-card:only-child,
.ev-grid.is-single > .ev-card:not([hidden]) { grid-column: 1 / -1; justify-self: center; width: calc((100% - 28px) / 2); }
.ev-card {
  background: #fff; border-radius: var(--radius); border-top: 6px solid var(--brand);
  box-shadow: 0 4px 24px rgba(64,64,64,.08); padding: 32px;
  display: flex; flex-direction: column; transition: translate .25s, box-shadow .25s;
}
.ev-card:hover { translate: 0 -4px; box-shadow: 0 14px 34px rgba(227,0,127,.14); }
.ev-card .job-tag { align-self: flex-start; }
.ev-card h3 { font-size: 24px; font-weight: 900; color: var(--heading); margin-bottom: 12px; }
.ev-desc { font-size: 15px; margin-bottom: 20px; }
.ev-dates { background: var(--brand-soft); border-radius: 10px; padding: 14px 20px; margin-bottom: 20px; }
.ev-dates b { display: block; font-size: 13px; color: var(--brand); margin-bottom: 2px; }
.ev-dates ul { list-style: none; }
.ev-dates li { font-weight: 700; color: var(--heading); }
.ev-info { display: grid; grid-template-columns: 76px 1fr; gap: 6px 12px; font-size: 14px; margin-bottom: 24px; }
.ev-info dt { font-weight: 700; color: var(--heading); }
.ev-btn { margin-top: auto; padding: 14px 22px; font-size: 15px; }
.ev-card:nth-child(even) { border-top-color: var(--mint-dark); }
.ev-card:nth-child(even) .job-tag { background: var(--mint-dark); }
.ev-card:nth-child(even) .ev-dates { background: #e7f7f3; }
.ev-card:nth-child(even) .ev-dates b { color: var(--mint-dark); }

/* ---- メンテナンス中 ---- */
.maintenance { padding: 48px 0; text-align: center; background: var(--bg-soft); }
.maintenance h2 { font-size: clamp(22px, 4vw, 32px); font-weight: 900; color: var(--heading); margin-bottom: 14px; }
.maintenance p { color: var(--ink); }

/* ---- トップページの案内枠 ---- */
.about-teaser { text-align: center; background: linear-gradient(135deg, #ffffff 0%, #fff4f9 45%, var(--brand-soft) 100%); }
.about-teaser .sec-head { margin-bottom: 32px; }

/* ---- 別ページ「福井テレビはこんなとこ」 ---- */
nav a[aria-current="page"] { color: var(--brand); font-weight: 700; }
.page-hero {
  padding: 32px 0 28px; text-align: center;
  background: linear-gradient(135deg, #ffffff 0%, #fff4f9 45%, var(--brand-soft) 100%);
}
.page-hero h1 { font-size: clamp(28px, 5vw, 44px); font-weight: 900; color: var(--heading); line-height: 1.35; margin-bottom: 14px; }
.page-hero p { color: var(--ink); margin-bottom: 28px; }
.page-nav { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; }
.page-nav a {
  background: #fff; border: 1px solid var(--brand); color: var(--brand); border-radius: 999px;
  padding: 6px 20px; font-size: 14px; font-weight: 700; text-decoration: none;
}
.page-nav a:hover { background: var(--brand-soft); }
.page-cta { text-align: center; }
.page-cta .sec-head { margin-bottom: 32px; }
.page-cta .hero-cta { justify-content: center; }
.page-cta .btn-ghost { background: #fff; color: var(--brand); box-shadow: inset 0 0 0 2px var(--brand); }
.page-cta .btn-ghost:hover { background: var(--brand-soft); box-shadow: inset 0 0 0 2px var(--brand); }

/* ---- 特集 ---- */
.ft-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.ft-card {
  background: #fff; border-radius: var(--radius); overflow: hidden;
  box-shadow: 0 4px 24px rgba(64,64,64,.08); display: flex; flex-direction: column;
  transition: translate .25s, box-shadow .25s;
}
.ft-card:hover { translate: 0 -4px; box-shadow: 0 14px 34px rgba(64,64,64,.14); }
.ft-card .ph { border-radius: 0; aspect-ratio: 16/10; }
.ft-card-body { padding: 20px 22px 22px; display: flex; flex-direction: column; flex: 1; }
.ft-card-body .job-tag { align-self: flex-start; }
.ft-card h3 { font-size: 18px; font-weight: 900; color: var(--heading); line-height: 1.5; margin-bottom: 8px; }
.ft-summary { font-size: 14px; color: var(--muted); line-height: 1.7; margin-bottom: 14px; }
.ft-hero { aspect-ratio: 16/9; margin-bottom: 20px; }
.ft-blocks { margin-top: 12px; }
.ft-block { margin-top: 32px; }
.ft-block h4 { font-size: 17px; color: var(--heading); margin-bottom: 10px; padding-left: 14px; border-left: 4px solid var(--brand); line-height: 1.6; }
.ft-block p { font-size: 15px; line-height: 1.95; }
.ft-block p + p { margin-top: 10px; }
.ft-block.has-image { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; align-items: start; }
.ft-block.has-image:nth-child(even) .ft-text { order: 2; }
.ft-block .ph { aspect-ratio: 4/3; }
@media (max-width: 960px) {
  .ft-grid { grid-template-columns: 1fr 1fr; gap: 16px; }
}
@media (max-width: 640px) {
  .ft-grid { grid-template-columns: 1fr; }
  .ft-block.has-image { grid-template-columns: 1fr; gap: 12px; }
  .ft-block.has-image:nth-child(even) .ft-text { order: 0; }
}

/* ---- 数字で見る福井テレビ ---- */
#about { background: #fffaf0; }
.ab-card { background: #fff; border-radius: var(--radius); box-shadow: 0 4px 24px rgba(64,64,64,.08); padding: 24px; }
.ab-card h3 { font-size: 15px; font-weight: 700; color: var(--heading); }
.ab-comment { font-size: 13px; color: var(--muted); line-height: 1.6; }
.ab-stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.ab-stat { display: flex; flex-direction: column; }
.ab-stat:nth-child(4n+1) { border-top: 6px solid var(--brand); }
.ab-stat:nth-child(4n+2) { border-top: 6px solid var(--amber); }
.ab-stat:nth-child(4n+3) { border-top: 6px solid var(--mint); }
.ab-stat:nth-child(4n) { border-top: 6px solid var(--pink); }
.ab-value { color: var(--heading); margin: 6px 0 8px; line-height: 1.2; }
.ab-value .ab-num { font-family: "Montserrat", sans-serif; font-size: 44px; font-weight: 800; letter-spacing: -.01em; }
.ab-value small { font-size: 16px; font-weight: 700; margin-left: 3px; }
.ab-meter { height: 8px; border-radius: 4px; background: var(--brand-soft); margin-bottom: 10px; }
.ab-meter i { display: block; height: 100%; border-radius: 4px; background: var(--brand); transition: width 1s cubic-bezier(.2,.7,.2,1) .2s; }
.ab-ratio { margin-top: 20px; }
.ab-seg { display: flex; gap: 2px; height: 28px; margin: 12px 0 10px; }
.ab-seg span { display: flex; align-items: center; padding-left: 10px; border-radius: 4px; color: #fff; font-size: 13px; font-weight: 700; white-space: nowrap; }
.ab-seg .c1, .ab-legend .c1 { background: var(--brand); }
/* 内訳の色は色覚シミュレーションで検証済み（マゼンタ×緑系は赤緑色覚で判別しにくいため、2色目は青） */
.ab-seg .c2, .ab-legend .c2 { background: #2f62d9; }
.ab-seg .c3, .ab-legend .c3 { background: var(--mint); color: var(--heading); }
.ab-legend { display: flex; flex-wrap: wrap; gap: 4px 18px; list-style: none; font-size: 13px; color: var(--ink); margin-bottom: 8px; }
.ab-legend li { display: flex; align-items: center; gap: 6px; }
.ab-legend i { width: 10px; height: 10px; border-radius: 3px; }
.ab-subhead { text-align: center; margin: 48px 0 20px; }
.ab-subhead h3 { font-size: 20px; font-weight: 900; color: var(--heading); }
.ab-subhead p { font-size: 13px; color: var(--muted); }
.ab-ranks { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.ab-rank h3 { font-size: 16px; font-weight: 900; margin-bottom: 14px; }
.ab-rank ol { list-style: none; display: flex; flex-direction: column; gap: 12px; }
.ab-rank li { display: grid; grid-template-columns: 26px 1fr; gap: 8px; align-items: start; }
.ab-rno {
  width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center;
  background: var(--bg-soft); color: var(--muted); font-family: "Montserrat", sans-serif; font-size: 12px; font-weight: 800;
}
.ab-rank li:nth-child(1) .ab-rno { background: var(--amber); color: var(--heading); }
.ab-rank li:nth-child(2) .ab-rno { background: #d5d5d5; color: var(--heading); }
.ab-rank li:nth-child(3) .ab-rno { background: #e4bb8f; color: var(--heading); }
.ab-rhead { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; font-size: 13px; line-height: 1.5; margin-bottom: 4px; }
.ab-rank li:first-child .ab-rname { font-weight: 700; color: var(--heading); }
.ab-rval { color: var(--heading); white-space: nowrap; }
.ab-bar { height: 8px; }
.ab-bar i { display: block; height: 100%; border-radius: 0 4px 4px 0; background: var(--pink); transition: width 1s cubic-bezier(.2,.7,.2,1) .2s; }
.ab-rank li:first-child .ab-bar i { background: var(--brand); }
.js-reveal .ab-card:not(.is-in) .ab-meter i, .js-reveal .ab-card:not(.is-in) .ab-bar i { width: 0 !important; }
@media (max-width: 960px) {
  .ab-stats { grid-template-columns: repeat(2, 1fr); gap: 14px; }
  .ab-ranks { grid-template-columns: 1fr; gap: 14px; }
}
@media (max-width: 480px) {
  .ab-card { padding: 18px 16px; }
  .ab-value .ab-num { font-size: 36px; }
}

/* ---- 動画でみる福井テレビ ---- */
.vd-grid { display: flex; flex-wrap: wrap; justify-content: center; gap: 28px 20px; }
.vd-grid + .vd-grid { margin-top: 32px; }
.vd-card { width: calc((100% - 40px) / 3); }
.vd-card.tall { width: calc((100% - 60px) / 4); }
.vd-card figure { margin: 0 0 12px; }
.vd-card.tall .iv-video-frame { aspect-ratio: 9/16; }
.vd-card h3 { font-size: 16px; font-weight: 700; color: var(--heading); line-height: 1.5; margin-bottom: 4px; }
.vd-card p { font-size: 14px; color: var(--muted); line-height: 1.7; }
.vd-card.tall h3 { font-size: 15px; }
.vd-card.tall p { font-size: 13px; }
@media (max-width: 700px) {
  .vd-grid { gap: 24px 14px; }
  .vd-card { width: 100%; }
  .vd-card.tall { width: calc((100% - 14px) / 2); }
}

/* ---- 公式SNS ---- */
#sns { padding-bottom: 0; }
.sns-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; max-width: 900px; margin: 0 auto; }
.sns-link {
  display: flex; align-items: center; gap: 16px; padding: 18px 22px; text-decoration: none;
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  transition: translate .2s, box-shadow .2s;
}
.sns-link:hover { translate: 0 -3px; box-shadow: 0 10px 26px rgba(64,64,64,.12); }
.sns-icon { width: 48px; height: 48px; border-radius: 50%; display: grid; place-items: center; color: #fff; flex-shrink: 0; }
.sns-icon svg { width: 24px; height: 24px; }
.sns-x .sns-icon { background: #111; }
.sns-instagram .sns-icon { background: linear-gradient(45deg, #f09433, #dc2743 50%, #bc1888); }
.sns-youtube .sns-icon { background: #e60000; }
.sns-name { font-weight: 800; color: var(--heading); line-height: 1.5; }
.sns-name small { display: block; font-size: 12px; font-weight: 500; color: var(--muted); }

@media (max-width: 860px) {
  .ev-grid, .sns-grid { grid-template-columns: 1fr; gap: 16px; }
  .ev-card { padding: 24px 20px; }
  .ev-grid > .ev-card:only-child,
  .ev-grid.is-single > .ev-card:not([hidden]) { width: auto; justify-self: stretch; }
  .hero-news:has(.ev-news:not([hidden])) { margin: -20px 0 24px; gap: 6px; }
  .ev-news { font-size: 12.5px; gap: 7px; padding: 5px 12px 5px 10px; }
  .ev-dates { padding: 12px 14px; }
  .ev-dates li { font-size: 13.5px; white-space: nowrap; }
  #sns { padding-bottom: 0; }
}

/* ---- スクロールでふわっと表示（js/main.js と連動） ---- */
.js-reveal .reveal { transition: opacity .7s ease, translate .7s cubic-bezier(.2,.7,.2,1), rotate .3s, box-shadow .3s; }
.js-reveal .reveal:not(.is-in) { opacity: 0; translate: 0 28px; }

@media (max-width: 860px) {
  .hero-deco i:nth-child(2) { width: 44px; height: 44px; border-width: 4px; right: 6%; top: auto; bottom: 6%; }
  .hero-deco i:nth-child(4) { width: 80px; height: 80px; right: 4%; bottom: 20%; }
  .hero-deco i:nth-child(6) { left: auto; right: 8%; top: 10%; }
  .ticker { font-size: 13px; padding: 10px 0; }
  .hero-label { font-size: 11px; letter-spacing: .06em; white-space: nowrap; }
  .message h3 { font-size: 19px; }
}

/* 動きを減らす設定の人には、アニメーションを止める */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .js-reveal .reveal:not(.is-in) { opacity: 1; translate: none; }
}
