/* =====================================================================
   Con-Course — 公開側（News）自己完結スタイル
   Next.js の globals.css と同じデザイントークンを使用。
   静的サイト本体（Tailwind 生成 CSS）には依存しない。
   ===================================================================== */

:root {
  --font-sans: "Noto Sans JP", "Hiragino Kaku Gothic ProN", "Hiragino Sans",
    "Yu Gothic", Meiryo, system-ui, sans-serif;
  --font-mono: "IBM Plex Mono", ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace;

  --paper: #fcfbf8;
  --paper-warm: #f4f2ec;
  --ink: #1b1b1f;
  --ink-soft: #5d5d66;
  --ink-faint: #97969e;
  --brand: #c0392b;
  --brand-deep: #8e2a20;
  --line: #e7e4dc;

  --ease-out-quart: cubic-bezier(0.25, 1, 0.5, 1);
  --ease-out-expo: cubic-bezier(0.16, 1, 0.3, 1);
}

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font-sans);
  background: var(--paper);
  color: var(--ink);
  font-feature-settings: "palt";
  -webkit-font-smoothing: antialiased;
  line-height: 1.6;
}

a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
::selection { background: var(--brand); color: #fff; }

.container {
  max-width: 1440px;
  margin-inline: auto;
  padding-inline: 20px;
}
.container--narrow { max-width: 768px; }
@media (min-width: 640px) { .container { padding-inline: 32px; } }
@media (min-width: 1024px) { .container { padding-inline: 48px; } }

.mono { font-family: var(--font-mono); }
.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
}

/* ---------------------------------------------------------------------
   Header
   ------------------------------------------------------------------- */
.site-header {
  position: fixed; inset-inline: 0; top: 0; z-index: 50;
  border-bottom: 1px solid transparent;
  transition: background-color .5s ease, border-color .5s ease,
    backdrop-filter .5s ease, transform .5s var(--ease-out-quart);
}
.site-header.is-scrolled {
  background: rgba(252, 251, 248, .86);
  backdrop-filter: blur(14px);
  border-color: var(--line);
}
.site-header.is-hidden { transform: translateY(-100%); }

.header-inner {
  max-width: 1440px; margin-inline: auto;
  height: 80px; padding-inline: 20px;
  display: flex; align-items: center; justify-content: space-between;
}
@media (min-width: 640px) { .header-inner { padding-inline: 32px; } }
@media (min-width: 1024px) { .header-inner { padding-inline: 48px; } }

.logo {
  font-family: var(--font-mono); font-size: 17px; font-weight: 700;
  letter-spacing: .18em; color: var(--ink); position: relative; z-index: 60;
}

.nav-desktop { display: none; align-items: center; gap: 32px; }
@media (min-width: 1024px) { .nav-desktop { display: flex; } }

.nav-link {
  font-family: var(--font-mono); font-size: 11px; font-weight: 500;
  letter-spacing: .18em; color: var(--ink-soft);
  transition: color .3s var(--ease-out-quart); position: relative;
}
.nav-link:hover, .nav-link.is-active { color: var(--ink); }
.nav-link::after {
  content: ""; position: absolute; left: 0; bottom: -3px; width: 100%; height: 1px;
  background: currentColor; transform: scaleX(0); transform-origin: right center;
  transition: transform .45s var(--ease-out-quart);
}
.nav-link:hover::after, .nav-link.is-active::after {
  transform: scaleX(1); transform-origin: left center;
}

.btn-contact {
  margin-left: 8px; display: inline-flex; align-items: center; gap: 8px;
  border: 1px solid rgba(27,27,31,.25); padding: 10px 24px;
  font-family: var(--font-mono); font-size: 11px; font-weight: 500; letter-spacing: .18em;
  color: var(--ink); position: relative; isolation: isolate; overflow: hidden;
  transition: color .4s var(--ease-out-quart), border-color .4s var(--ease-out-quart);
}
.btn-contact::before {
  content: ""; position: absolute; inset: 0; z-index: -1; background: var(--brand);
  transform: scaleX(0); transform-origin: right center;
  transition: transform .5s var(--ease-out-expo);
}
.btn-contact:hover { color: #fff; border-color: var(--brand); }
.btn-contact:hover::before { transform: scaleX(1); transform-origin: left center; }

/* hamburger */
.hamburger {
  position: relative; z-index: 60; display: flex; flex-direction: column;
  align-items: center; justify-content: center; gap: 7px;
  width: 48px; height: 48px; background: none; border: 0; cursor: pointer;
}
@media (min-width: 1024px) { .hamburger { display: none; } }
.hamburger span {
  display: block; width: 28px; height: 1px; background: var(--ink);
  transition: transform .5s var(--ease-out-expo), background-color .3s ease;
}
.hamburger.is-open span:nth-child(1) { transform: translateY(4px) rotate(45deg); }
.hamburger.is-open span:nth-child(2) { transform: translateY(-4px) rotate(-45deg); }
/* メニューを開いている間はロゴ・ハンバーガーを白く（暗いオーバーレイ上で視認できるように） */
.hamburger.is-open span { background: #fff; }
body.menu-open .logo { color: #fff; }

/* mobile menu */
.mobile-menu {
  position: fixed; inset: 0; z-index: 40; background: var(--ink);
  clip-path: inset(0 0 100% 0); transition: clip-path .7s var(--ease-out-expo);
  pointer-events: none;
}
.mobile-menu.is-open { clip-path: inset(0 0 0 0); pointer-events: auto; }
.mobile-menu-inner {
  height: 100%; display: flex; flex-direction: column;
  padding: 96px 32px calc(env(safe-area-inset-bottom) + 32px);
}
.mobile-nav { display: flex; flex: 1; flex-direction: column; justify-content: center; }
.mobile-nav a {
  display: flex; align-items: baseline; justify-content: space-between;
  border-bottom: 1px solid rgba(255,255,255,.1); padding: 20px 0;
  opacity: 0; transform: translateY(28px);
  transition: opacity .5s var(--ease-out-quart), transform .5s var(--ease-out-quart);
}
.mobile-menu.is-open .mobile-nav a { opacity: 1; transform: none; }
.mobile-nav .m-en {
  font-family: var(--font-mono); font-size: 24px; font-weight: 700; letter-spacing: .12em;
  color: #fff; transition: color .3s var(--ease-out-quart);
}
.mobile-nav a:hover .m-en { color: var(--brand); }
.mobile-nav .m-jp { font-size: 12px; letter-spacing: .2em; color: rgba(255,255,255,.4); }
.mobile-menu .m-foot {
  flex-shrink: 0; padding-top: 24px;
  font-family: var(--font-mono); font-size: 10px; letter-spacing: .2em;
  text-transform: uppercase; color: rgba(255,255,255,.5);
}

/* ---------------------------------------------------------------------
   Page hero (sub-page)
   ------------------------------------------------------------------- */
.page-hero {
  position: relative; overflow: hidden;
  border-bottom: 1px solid var(--line); background: var(--paper);
}
.page-hero__bg {
  position: absolute; right: 0; bottom: -20px; pointer-events: none; user-select: none;
  white-space: nowrap; font-family: var(--font-mono); font-weight: 700;
  font-size: 11vw; line-height: 1; color: transparent;
  -webkit-text-stroke: 1px rgba(27,27,31,.18);
}
.page-hero__inner {
  position: relative; max-width: 1440px; margin-inline: auto;
  padding: 144px 20px 64px;
}
@media (min-width: 640px) { .page-hero__inner { padding-inline: 32px; } }
@media (min-width: 768px) { .page-hero__inner { padding-top: 176px; padding-bottom: 96px; } }
@media (min-width: 1024px) { .page-hero__inner { padding-inline: 48px; } }
.page-hero--narrow .page-hero__inner { max-width: 768px; }

.crumbs {
  list-style: none; margin: 0 0 40px; padding: 0;
  display: flex; flex-wrap: wrap; align-items: center; gap: 8px;
  font-family: var(--font-mono); font-size: 10px; letter-spacing: .16em; color: var(--ink-faint);
}
.crumbs a { transition: color .3s; }
.crumbs a:hover { color: var(--ink); }
.crumbs .sep { color: var(--ink-faint); }
.crumbs .current { color: var(--ink-soft); }

.eyebrow {
  display: flex; align-items: center; gap: 16px;
  font-family: var(--font-mono); font-size: 11px; font-weight: 500;
  letter-spacing: .24em; text-transform: uppercase; color: var(--brand); margin: 0;
}
.eyebrow::before { content: ""; display: inline-block; width: 40px; height: 1px; background: var(--brand); }

.hero-title {
  margin: 24px 0 0; color: var(--ink); font-weight: 700;
  letter-spacing: .02em; line-height: 1.18; font-feature-settings: "palt";
  font-size: 2.25rem;
}
@media (min-width: 768px) { .hero-title { font-size: 3.75rem; } }
@media (min-width: 1024px) { .hero-title { font-size: 4.2rem; } }

.hero-lead {
  margin: 32px 0 0; max-width: 42rem; color: var(--ink-soft);
  font-size: 15px; line-height: 2.1;
}

/* article hero variants */
.article-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 16px; }
.article-meta time {
  font-family: var(--font-mono); font-size: 12px; letter-spacing: .12em; color: var(--ink-faint);
}
.tag {
  font-family: var(--font-mono); font-size: 10px; letter-spacing: .2em; text-transform: uppercase;
  color: var(--ink-soft); border: 1px solid var(--line); padding: 4px 10px;
}
.article-hero-title {
  margin: 24px 0 0; color: var(--ink); font-weight: 700; letter-spacing: .02em;
  line-height: 1.4; font-feature-settings: "palt"; font-size: 1.875rem;
}
@media (min-width: 768px) { .article-hero-title { font-size: 2.5rem; } }

/* ---------------------------------------------------------------------
   News list
   ------------------------------------------------------------------- */
.section { background: var(--paper); padding: 96px 0; }
@media (min-width: 768px) { .section { padding: 128px 0; } }

.news-list { list-style: none; margin: 0; padding: 0; }
.news-row {
  display: grid; grid-template-columns: 1fr auto; align-items: start; gap: 24px;
  border-bottom: 1px solid var(--line); padding: 36px 0;
  transition: background-color .3s var(--ease-out-quart);
}
.news-row:first-child { border-top: 1px solid var(--line); }
@media (min-width: 768px) { .news-row { padding-inline: 20px; } }
.news-row:hover { background: #fff; }
.news-row:hover .news-row__title { color: var(--brand); }
.news-row__title {
  margin: 16px 0 0; font-weight: 700; letter-spacing: .03em; line-height: 1.3;
  font-feature-settings: "palt"; color: var(--ink); font-size: 1.125rem;
  transition: color .3s var(--ease-out-quart);
}
@media (min-width: 768px) { .news-row__title { font-size: 1.25rem; } }
.news-row__excerpt { margin: 12px 0 0; font-size: 14px; line-height: 2; color: var(--ink-soft); }
.news-row__arrow {
  margin-top: 8px; flex-shrink: 0; color: var(--ink-faint);
  transition: color .3s var(--ease-out-quart), transform .4s var(--ease-out-quart);
}
.news-row:hover .news-row__arrow { color: var(--brand); transform: translate(4px, -4px); }
.empty-note { font-size: 14px; color: var(--ink-soft); }

/* ---------------------------------------------------------------------
   Article body  (= globals.css .article-body)
   ------------------------------------------------------------------- */
.article-figure {
  margin: 0 0 48px; aspect-ratio: 16 / 9; overflow: hidden; border: 1px solid var(--line);
}
.article-figure img { width: 100%; height: 100%; object-fit: cover; }

.article-body { color: var(--ink-soft); font-size: 15px; line-height: 2.2; }
.article-body > * + * { margin-top: 1.5rem; }
.article-body h2 {
  color: var(--ink); font-weight: 700; font-size: 1.25rem; letter-spacing: .03em;
  line-height: 1.6; margin-top: 2.75rem; padding-bottom: .85rem; border-bottom: 1px solid var(--line);
}
.article-body h3 {
  color: var(--ink); font-weight: 700; font-size: 1.05rem; letter-spacing: .03em; margin-top: 2.25rem;
}
.article-body a {
  color: var(--brand); text-decoration: underline; text-underline-offset: 3px;
  transition: color .3s var(--ease-out-quart);
}
.article-body a:hover { color: var(--brand-deep); }
.article-body strong { color: var(--ink); font-weight: 700; }
.article-body ul, .article-body ol { padding-left: 0; list-style: none; }
.article-body li { position: relative; padding-left: 1.3rem; }
.article-body li + li { margin-top: .6rem; }
.article-body ul > li::before {
  content: ""; position: absolute; left: 0; top: .95em; width: 5px; height: 5px;
  border-radius: 9999px; background: var(--brand);
}
.article-body hr { border: 0; border-top: 1px solid var(--line); margin: 2rem 0; }
.article-body img { width: 100%; border: 1px solid var(--line); }

/* --- 本文メディア（画像・動画・PDF） --- */
.article-body .media-figure { margin: 0; }
.article-body .media-figure img { width: 100%; display: block; border: 1px solid var(--line); }
.article-body .media-figure figcaption {
  margin-top: 10px; font-size: 12.5px; line-height: 1.8; color: var(--ink-faint); text-align: center;
}
.article-body .media-video { margin: 0; }
.article-body .media-video video {
  width: 100%; display: block; border: 1px solid var(--line); background: #000;
}
.article-body .media-embed {
  position: relative; width: 100%; aspect-ratio: 16 / 9;
  border: 1px solid var(--line); background: #000;
}
.article-body .media-embed iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }

.article-body .media-pdf { border: 1px solid var(--line); background: #fff; }
.article-body .media-pdf__preview {
  aspect-ratio: 4 / 3; border-bottom: 1px solid var(--line); background: var(--paper-warm);
}
.article-body .media-pdf__preview iframe { width: 100%; height: 100%; border: 0; display: block; }
.article-body .media-pdf__bar {
  display: flex; align-items: center; gap: 12px; padding: 14px 16px;
  color: var(--ink); text-decoration: none; transition: background-color .3s var(--ease-out-quart);
}
.article-body .media-pdf__bar:hover { background: var(--paper); color: var(--ink); }
.article-body .media-pdf__icon {
  flex-shrink: 0; font-family: var(--font-mono); font-size: 11px; font-weight: 700; letter-spacing: .08em;
  color: #fff; background: var(--brand); padding: 4px 8px; border-radius: 3px;
}
.article-body .media-pdf__name {
  flex: 1; min-width: 0; font-size: 14px; font-weight: 700; color: var(--ink);
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.article-body .media-pdf__act { flex-shrink: 0; font-size: 12px; color: var(--ink-soft); white-space: nowrap; }
@media (max-width: 600px) {
  .article-body .media-pdf__preview { aspect-ratio: 3 / 4; }
  .article-body .media-pdf__act { display: none; }
}

.back-link {
  margin-top: 64px; padding-top: 40px; border-top: 1px solid var(--line);
}
.back-link a {
  display: inline-flex; align-items: center; gap: 12px;
  font-size: 14px; font-weight: 700; letter-spacing: .06em; color: var(--ink);
}
.back-link .circle {
  display: inline-flex; align-items: center; justify-content: center;
  width: 36px; height: 36px; border-radius: 9999px; border: 1px solid rgba(27,27,31,.2);
  transition: background-color .3s, border-color .3s, color .3s;
}
.back-link a:hover .circle { background: var(--brand); border-color: var(--brand); color: #fff; }
.back-link a:hover .circle svg { transform: translateX(-4px); }
.back-link .circle svg { transition: transform .3s var(--ease-out-quart); }
.back-link .label { position: relative; }
.back-link a:hover .label { text-decoration: underline; text-underline-offset: 3px; }

/* ---------------------------------------------------------------------
   Footer
   ------------------------------------------------------------------- */
.site-footer { background: var(--ink); color: #fff; }
.footer-marquee {
  overflow: hidden; border-bottom: 1px solid rgba(255,255,255,.1); padding: 32px 0;
}
.marquee-track { display: flex; width: max-content; animation: cc-marquee 36s linear infinite; }
.marquee-track .grp { display: flex; flex-shrink: 0; align-items: center; }
.marquee-track .word {
  margin-inline: 40px; display: flex; align-items: center; gap: 40px;
  font-family: var(--font-mono); font-size: 14px; letter-spacing: .3em; color: rgba(255,255,255,.3);
}
.marquee-track .dot { width: 4px; height: 4px; border-radius: 9999px; background: var(--brand); }
@keyframes cc-marquee { from { transform: translateX(0); } to { transform: translateX(-50%); } }

.footer-main {
  max-width: 1440px; margin-inline: auto; padding: 80px 20px;
  display: grid; grid-template-columns: 1fr; gap: 64px;
}
@media (min-width: 640px) { .footer-main { padding-inline: 32px; } }
@media (min-width: 1024px) { .footer-main { padding-inline: 48px; grid-template-columns: 1fr 1fr; } }

.footer-logo { font-family: var(--font-mono); font-size: 1.875rem; font-weight: 700; letter-spacing: .16em; margin: 0; }
@media (min-width: 768px) { .footer-logo { font-size: 2.25rem; } }
.footer-desc { margin: 16px 0 0; font-size: 14px; line-height: 2; color: rgba(255,255,255,.5); }
.footer-label {
  font-family: var(--font-mono); font-size: 10px; letter-spacing: .2em; text-transform: uppercase;
  color: rgba(255,255,255,.35);
}
.footer-brands { margin-top: 40px; }
.footer-brands .row {
  margin-top: 20px; display: flex; flex-wrap: wrap; align-items: center; column-gap: 40px; row-gap: 24px;
}
.footer-brands a { opacity: .8; transition: opacity .3s; }
.footer-brands a:hover { opacity: 1; }
.footer-brands img { height: 32px; width: auto; }

.footer-cta {
  margin-top: 40px; display: inline-flex; align-items: center; gap: 12px;
  border: 1px solid rgba(255,255,255,.3); padding: 16px 32px;
  font-size: 14px; font-weight: 700; letter-spacing: .1em; color: #fff;
  position: relative; isolation: isolate; overflow: hidden;
  transition: border-color .4s var(--ease-out-quart);
}
.footer-cta::before {
  content: ""; position: absolute; inset: 0; z-index: -1; background: var(--brand);
  transform: scaleX(0); transform-origin: right center; transition: transform .5s var(--ease-out-expo);
}
.footer-cta:hover { border-color: var(--brand); }
.footer-cta:hover::before { transform: scaleX(1); transform-origin: left center; }

.footer-sitemap { list-style: none; margin: 24px 0 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; column-gap: 32px; }
.footer-sitemap li { border-bottom: 1px solid rgba(255,255,255,.1); }
.footer-sitemap a {
  display: flex; align-items: baseline; justify-content: space-between; padding: 16px 0;
  transition: color .3s;
}
.footer-sitemap a:hover { color: var(--brand); }
.footer-sitemap .s-en { font-family: var(--font-mono); font-size: 12px; font-weight: 500; letter-spacing: .18em; }
.footer-sitemap .s-jp { font-size: 10px; letter-spacing: .16em; color: rgba(255,255,255,.35); }

.footer-bottom {
  max-width: 1440px; margin: 0 auto; padding: 32px 20px 48px;
}
@media (min-width: 640px) { .footer-bottom { padding-inline: 32px; } }
@media (min-width: 1024px) { .footer-bottom { padding-inline: 48px; } }
.footer-bottom .copy {
  border-top: 1px solid rgba(255,255,255,.1); padding-top: 32px;
  font-size: 11px; letter-spacing: .08em; color: rgba(255,255,255,.35); margin: 0;
}

/* ---------------------------------------------------------------------
   Reveal on scroll  (data-reveal / JS toggles .is-inview)
   ------------------------------------------------------------------- */
[data-reveal] {
  opacity: 0; transform: translateY(28px);
  transition: opacity .9s var(--ease-out-quart), transform .9s var(--ease-out-quart);
  transition-delay: calc(var(--rd, 0) * 90ms); will-change: opacity, transform;
}
[data-reveal].is-inview { opacity: 1; transform: none; }

/* entrance for hero (no observer) */
@keyframes cc-fade { from { opacity: 0; } to { opacity: 1; } }
@keyframes cc-fade-up { from { opacity: 0; transform: translateY(24px); } to { opacity: 1; transform: none; } }
.anim-fade { animation: cc-fade 1.2s ease both; }
.anim-fade-up { animation: cc-fade-up 1s var(--ease-out-quart) both; }
.d-1 { animation-delay: .1s; } .d-2 { animation-delay: .22s; } .d-3 { animation-delay: .34s; }
.d-5 { animation-delay: .6s; } .d-6 { animation-delay: .75s; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
  [data-reveal] { opacity: 1 !important; transform: none !important; }
  html { scroll-behavior: auto; }
}
