/* =========================================================
   TSUGINOTE NETWORK / FOOTER FINALE（ネットワーク導線 05）
   既存クラスとの衝突を避けるため tn-network__* で名前空間化
   ※ 日次更新の対象外。site.css 直後に読み込む。
   ========================================================= */

.tn-network {
  --tn-learn: #2f6de0;
  --tn-local: #c4622e;
  --tn-science: #6c4bd6;
  --tn-fun: #E5217A;
  --tn-quiz: #E8A317;
  position: relative;
  z-index: 2;
  overflow: hidden;
  color: var(--paper, #f4f1e8);
  background: var(--ink, #101010);
}

.tn-network__inner {
  max-width: 1320px;
  margin: 0 auto;
  padding: clamp(44px, 6vw, 76px) 28px 0;
}

.tn-network__intro {
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(280px, .7fr);
  gap: clamp(28px, 5vw, 64px);
  align-items: end;
  margin-bottom: clamp(28px, 4vw, 44px);
}

.tn-network__eyebrow,
.tn-network__number {
  font-family: "JetBrains Mono", monospace;
  font-size: 10px;
  letter-spacing: .12em;
  text-transform: uppercase;
}

.tn-network__eyebrow {
  display: block;
  margin-bottom: 14px;
  color: var(--green, #0ac25a);
}

.tn-network__title {
  margin: 0;
  font-family: "Archivo", "Zen Kaku Gothic New", sans-serif;
  font-size: clamp(36px, 5.2vw, 66px);
  font-weight: 800;
  line-height: .96;
  letter-spacing: -.055em;
}

.tn-network__dot { color: var(--green, #0ac25a); }

.tn-network__lead {
  margin: 0 0 6px;
  color: rgba(244, 241, 232, .7);
  font-family: "Shippori Mincho B1", serif;
  font-size: 14px;
  line-height: 1.85;
}

.tn-network__grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  border-top: 1px solid rgba(244, 241, 232, .35);
}

.tn-network__card {
  position: relative;
  min-height: 0;
  display: flex;
  flex-direction: column;
  padding: 24px 26px 22px;
  color: var(--paper, #f4f1e8);
  border-right: 1px solid rgba(244, 241, 232, .28);
  transition: background-color .2s ease, transform .2s ease;
}

.tn-network__card:last-child { border-right: 0; }

.tn-network__card:hover {
  color: var(--paper, #f4f1e8);
  background: rgba(244, 241, 232, .065);
  transform: translateY(-6px);
}

.tn-network__card:focus-visible {
  z-index: 1;
  outline: 3px solid var(--green, #0ac25a);
  outline-offset: -3px;
}

.tn-network__number { color: rgba(244, 241, 232, .6); }

.tn-network__lockup {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  margin: 16px 0 14px;
}

.tn-network__genre {
  font-family: "Zen Kaku Gothic New", sans-serif;
  font-size: clamp(26px, 2.6vw, 34px);
  font-weight: 900;
  letter-spacing: .06em;
  line-height: 1;
  white-space: nowrap;
}

.tn-network__no {
  color: rgba(244, 241, 232, .38);
  font-weight: 700;
  margin-left: .04em;
}

.tn-network__card--learn .tn-network__genre { color: var(--tn-learn); }
.tn-network__card--local .tn-network__genre { color: var(--tn-local); }
.tn-network__card--science .tn-network__genre { color: var(--tn-science); }
.tn-network__card--fun .tn-network__genre { color: var(--tn-fun); }
.tn-network__card--quiz .tn-network__genre { color: var(--tn-quiz); }

.tn-network__logo {
  width: auto;
  max-width: 62%;
  height: 40px;
  margin: 0;
  object-fit: contain;
  object-position: left center;
  filter: brightness(0) invert(.96);
}

.tn-network__description {
  max-width: 27em;
  min-height: 0;
  margin: 0 0 18px;
  color: rgba(244, 241, 232, .7);
  font-size: 13px;
  line-height: 1.85;
}

.tn-network__cta {
  margin-top: auto;
  font-size: 13px;
  font-weight: 700;
}

.tn-network__line {
  width: 100%;
  height: 4px;
  margin-top: 16px;
  background: var(--green, #0ac25a);
}

.tn-network__card--learn .tn-network__line { background: var(--tn-learn); }
.tn-network__card--local .tn-network__line { background: var(--tn-local); }
.tn-network__card--science .tn-network__line { background: var(--tn-science); }
.tn-network__card--fun .tn-network__line { background: var(--tn-fun); }

@media (max-width: 900px) {
  .tn-network__intro { grid-template-columns: 1fr; }
  .tn-network__grid { grid-template-columns: 1fr; }
  .tn-network__card {
    border-right: 0;
    border-bottom: 1px solid rgba(244, 241, 232, .28);
  }
  .tn-network__card:last-child { border-bottom: 0; }
  .tn-network__lockup { margin: 14px 0 12px; }
}

@media (max-width: 600px) {
  .tn-network__inner { padding: 44px 20px 0; }
  .tn-network__title { font-size: clamp(34px, 11vw, 50px); }
  .tn-network__lead { font-size: 13.5px; }
  .tn-network__card { padding: 22px 20px 20px; }
}

@media (prefers-reduced-motion: reduce) {
  .tn-network__card { transition: none; }
  .tn-network__card:hover { transform: none; }
}
