/* =========================================================
   ENロジカル 法人研修 LP
   原本 (en-logical.com) のデザイントークンに忠実
   - 主色  #30416B / アクセント #128DB1
   - 英字ラベル #BFBFBF / 罫線 #CDD9E7 / 淡背景 rgba(211,222,235,.2)
   - 和文 IBM Plex Sans JP / 英字 Jost・Heebo・Poppins
   ========================================================= */
:root {
  --primary: #30416B;
  --accent: #128DB1;
  --purple: #65689F;
  --link: #1A57B1;
  --en-grey: #BFBFBF;
  --border: #CDD9E7;
  --bg-soft: rgba(211, 222, 235, 0.2);
  --bg-grad: linear-gradient(120deg, #afc5e6 0%, rgba(217, 221, 231, 0.78) 41%, rgba(248, 230, 235, 0.76) 59%, #f5efdc 100%);
  --text: #30416B;
  --maxw: 1290px;
  --ease: cubic-bezier(.22, .61, .36, 1);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: "IBM Plex Sans JP", sans-serif;
  font-weight: 300;
  color: var(--text);
  background: #fff;
  line-height: 1.8;
  letter-spacing: .02em;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
::selection { background: var(--accent); color: #fff; }

.cw { width: min(100% - 48px, var(--maxw)); margin-inline: auto; }
.bgc-soft { background-color: var(--bg-soft); }

/* ============ HEADER ============ */
.header {
  position: fixed; inset: 0 0 auto; z-index: 9999;
  padding: 22px clamp(20px, 3vw, 40px);
  transition: background .3s, padding .3s, box-shadow .3s;
}
.header.is-scrolled {
  background: rgba(255, 255, 255, 0.86);
  backdrop-filter: blur(12px);
  padding-top: 14px; padding-bottom: 14px;
  box-shadow: 0 6px 24px rgba(48, 65, 107, 0.07);
}
.header__inner { display: flex; align-items: center; justify-content: space-between; }
.header__left { display: flex; align-items: center; gap: 18px; }
.header__back {
  display: inline-flex; align-items: center; gap: 7px;
  font-family: "Jost", sans-serif; font-size: 12.5px; font-weight: 500; letter-spacing: .04em;
  color: var(--primary); background: #fff;
  padding: 9px 16px; border-radius: 50px; border: 1px solid var(--border);
  transition: color .25s, border-color .25s, transform .25s, box-shadow .25s;
}
.header__back svg { transition: transform .3s var(--ease); }
.header__back:hover { color: var(--accent); border-color: var(--accent); transform: translateY(-1px); box-shadow: 0 6px 18px rgba(18, 141, 177, .14); }
.header__back:hover svg { transform: translateX(-3px); }
.header__logo { display: flex; align-items: center; gap: 10px; }
.header__mark {
  width: 16px; height: 16px; background: var(--primary); transform: rotate(45deg);
  position: relative;
}
.header__mark::after {
  content: ""; position: absolute; right: -5px; top: -5px;
  width: 7px; height: 7px; background: var(--accent);
}
.header__name { font-weight: 600; font-size: 18px; letter-spacing: .04em; color: var(--primary); }
.header__name small { font-size: .62em; font-weight: 500; opacity: .7; margin-right: 2px; }

.header__nav { display: flex; align-items: center; gap: 16px; }
.header__ul {
  display: flex; align-items: center; list-style: none; margin: 0;
  background: #fff; padding: 12px 30px; border-radius: 50px;
  box-shadow: 0 4px 20px rgba(48, 65, 107, 0.08);
}
.header__li { margin-right: 26px; }
.header__li:last-child { margin-right: 0; }
.header__li > a {
  display: flex; flex-direction: column; align-items: center; gap: 2px;
  color: var(--primary); transition: color .25s;
}
.header__li .en { font-family: "Jost", sans-serif; font-size: 12px; font-weight: 500; letter-spacing: .08em; }
.header__li .ja { font-size: 10.5px; font-weight: 400; color: var(--purple); }
.header__li > a:hover { color: var(--accent); }
.header__li > a:hover .ja { color: var(--accent); }
.header__contact {
  font-family: "Jost", sans-serif; font-weight: 500; letter-spacing: .08em;
  color: #fff; background: var(--accent);
  padding: 13px 26px; border-radius: 50px; font-size: 13px;
  transition: background .25s, transform .25s, box-shadow .25s;
}
.header__contact:hover { background: #0f7896; transform: translateY(-1px); box-shadow: 0 8px 22px rgba(18, 141, 177, .3); }

/* ============ FIRST VIEW ============ */
.sub-fv { padding-top: clamp(110px, 10vw, 150px); overflow: hidden; }
.sub-fv__inner { display: flex; justify-content: space-between; align-items: flex-end; gap: 30px; }
.sub-fv__left { padding-left: clamp(24px, 5vw, 75px); padding-bottom: clamp(30px, 5vw, 70px); }
.sub-fv__ttl {
  margin: 0; font-family: "IBM Plex Sans JP", sans-serif; font-weight: 500;
  font-size: clamp(26px, 4vw, 40px); letter-spacing: .08em; color: var(--primary); line-height: 1.4;
}
.sub-fv__en {
  margin: 16px 0 0; font-family: "Heebo", sans-serif; font-weight: 700;
  font-size: clamp(15px, 1.6vw, 18px); letter-spacing: .14em; color: var(--accent);
}
.sub-fv__bread { display: flex; align-items: center; gap: 8px; margin-top: clamp(40px, 7vw, 90px); font-family: "Heebo", sans-serif; font-weight: 300; font-size: 13px; }
.sub-fv__bread a { color: var(--link); }
.sub-fv__bread .now { color: #656565; }

.sub-fv__right {
  width: clamp(280px, 38vw, 540px); aspect-ratio: 540 / 360;
  background: var(--bg-grad);
  border-bottom-left-radius: 15px;
  position: relative; overflow: hidden;
}
.sub-fv__visual { position: absolute; inset: 0; }
.sub-fv__visual .dia {
  position: absolute; transform: rotate(45deg); border-radius: 8px;
  background: rgba(255, 255, 255, 0.45); box-shadow: 0 10px 30px rgba(48, 65, 107, .12);
}
.sub-fv__visual .d1 { width: 38%; aspect-ratio: 1; top: 16%; right: 12%; background: rgba(255, 255, 255, 0.55); }
.sub-fv__visual .d2 { width: 26%; aspect-ratio: 1; bottom: 14%; left: 18%; background: rgba(48, 65, 107, 0.10); }
.sub-fv__visual .d3 { width: 18%; aspect-ratio: 1; top: 22%; left: 30%; background: rgba(18, 141, 177, 0.18); }

/* ============ SECTION COMMON ============ */
.sub-main { padding-top: clamp(60px, 7vw, 100px); }
.se { padding: clamp(64px, 7vw, 100px) 0; }

.sub-head { margin-bottom: clamp(34px, 4vw, 50px); }
.sub-head__ja {
  margin: 0; font-family: "IBM Plex Sans JP", sans-serif; font-weight: 400;
  font-size: clamp(20px, 2.4vw, 24px); letter-spacing: .06em; color: var(--primary); line-height: 1.5;
}
.sub-head__en {
  margin: 4px 0 0; font-family: "Heebo", sans-serif; font-weight: 300;
  font-size: 16px; letter-spacing: .1em; color: var(--en-grey);
}
.sub-head__note { margin: 10px 0 0; font-family: "Heebo", sans-serif; font-weight: 300; font-size: 14px; color: var(--en-grey); letter-spacing: .04em; }
.sub-head--center { text-align: center; }

/* ============ OVERVIEW ============ */
.overview__txt {
  margin: 0; font-weight: 300; font-size: clamp(15px, 1.4vw, 17px); line-height: 2.1;
  max-width: 900px; padding-bottom: clamp(28px, 3vw, 40px); border-bottom: 1px solid var(--border);
}

/* ============ CURRICULUM ============ */
.ct__grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(28px, 3.5vw, 50px);
}
.ct {
  background: #fff; border: 1px solid var(--border); border-radius: 12px;
  padding: 22px 22px 28px; display: flex; flex-direction: column;
  transition: transform .4s var(--ease), box-shadow .4s var(--ease), border-color .4s;
}
.ct:hover { transform: translateY(-6px); box-shadow: 0 24px 50px -26px rgba(48, 65, 107, .3); border-color: transparent; }

/* square thumbnail */
.ct__thumb {
  position: relative; width: 100%; aspect-ratio: 1 / 1; border-radius: 10px;
  overflow: hidden; margin-bottom: 24px;
}
.ct__thumb img {
  width: 100%; height: 100%; object-fit: cover; display: block;
  transition: transform .5s var(--ease);
}
.ct:hover .ct__thumb img { transform: scale(1.04); }
/* subtle gloss only for gradient placeholders (no <img>) */
.ct__thumb:not(:has(img))::after {
  content: ""; position: absolute; inset: 0;
  background: radial-gradient(120% 120% at 78% 12%, rgba(255, 255, 255, .22), transparent 55%);
}
.ct__cat {
  position: absolute; top: 14px; left: 14px; z-index: 1;
  font-size: 11px; font-weight: 600; letter-spacing: .04em; color: #fff;
  padding: 5px 13px; border: 1px solid rgba(255, 255, 255, .6); border-radius: 50px;
}
.ct__no {
  position: absolute; right: 16px; bottom: 8px; z-index: 1;
  font-family: "Jost", sans-serif; font-weight: 500; font-size: 56px;
  color: rgba(255, 255, 255, .92); line-height: 1;
}

/* thumbnail palettes — brand slate / teal family */
.th--genai  { background: linear-gradient(140deg, #3a5089 0%, #30416b 60%, #232f50 100%); }
.th--genai2 { background: linear-gradient(140deg, #2f6f93 0%, #30416b 70%, #243353 100%); }
.th--dx     { background: linear-gradient(140deg, #1f93b0 0%, #2a6f8c 60%, #30416b 100%); }
.th--llm    { background: linear-gradient(140deg, #5666a0 0%, #3a4a7c 60%, #2a3354 100%); }
.th--live   { background: linear-gradient(140deg, #128db1 0%, #1a6f93 55%, #30416b 100%); }
.th--claude { background: linear-gradient(140deg, #7d86b5 0%, #565f93 60%, #353f6b 100%); }
.th--web    { background: linear-gradient(140deg, #16a8b0 0%, #128db1 55%, #2a5f7e 100%); }
.th--sns    { background: linear-gradient(140deg, #4a9fc0 0%, #2a7fa3 55%, #30416b 100%); }

.ct__h3 {
  margin: 0 0 16px; text-align: center; font-family: "IBM Plex Sans JP", sans-serif;
  font-weight: 600; font-size: clamp(17px, 1.5vw, 20px); line-height: 1.5; color: var(--primary);
}
.ct__h3 small { display: block; font-size: 12px; font-weight: 400; color: var(--purple); margin-top: 6px; line-height: 1.5; }
.ct__sm {
  margin: 0 0 18px; text-align: center; font-weight: 600; font-size: 12px;
  color: var(--primary); letter-spacing: .03em; line-height: 1.9;
}
.ct__meta {
  margin: 0 0 18px; display: flex; flex-direction: column; gap: 1px;
  background: var(--border); border: 1px solid var(--border); border-radius: 8px; overflow: hidden;
}
.ct__meta > div { background: #fff; display: flex; gap: 10px; align-items: baseline; padding: 9px 14px; }
.ct__meta dt { margin: 0; flex: 0 0 4.5em; font-size: 11px; font-weight: 600; color: var(--purple); letter-spacing: .03em; }
.ct__meta dd { margin: 0; font-size: 13px; font-weight: 500; color: var(--primary); }
.ct__txt { margin: 0; font-weight: 300; font-size: 14px; line-height: 2; color: var(--primary); }
.ct__tag {
  align-self: flex-start; margin-top: 14px; font-family: "Jost", sans-serif; font-size: 12px;
  font-weight: 500; letter-spacing: .04em; color: var(--accent);
  border: 1px solid var(--accent); padding: 4px 14px; border-radius: 50px;
}

/* ============ FEATURE ============ */
.fe__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(24px, 3vw, 40px); }
.fe {
  padding: 34px 30px 38px; border: 1px solid var(--border); border-radius: 12px; background: #fff;
  transition: transform .35s var(--ease), box-shadow .35s var(--ease);
}
.fe:hover { transform: translateY(-5px); box-shadow: 0 20px 44px -24px rgba(48, 65, 107, .28); }
.fe__no { font-family: "Jost", sans-serif; font-weight: 500; font-size: 13px; letter-spacing: .1em; color: var(--accent); }
.fe h3 { margin: 14px 0 12px; font-weight: 600; font-size: 19px; line-height: 1.5; color: var(--primary); }
.fe p { margin: 0; font-weight: 300; font-size: 14px; line-height: 1.95; color: var(--primary); }

/* ============ CONTACT ============ */
.contact__box {
  text-align: center; max-width: 820px; margin-inline: auto;
  padding: clamp(40px, 5vw, 64px); border-radius: 16px;
  background: var(--bg-grad);
}
.contact__txt { margin: 0 0 30px; font-weight: 400; font-size: 15.5px; line-height: 2.1; color: var(--primary); }
.contact__btn {
  display: inline-flex; align-items: center; gap: 10px;
  background: var(--accent); color: #fff; font-weight: 500; font-size: 15px; letter-spacing: .02em;
  padding: 16px 36px; border-radius: 50px;
  transition: background .25s, transform .25s, box-shadow .25s;
}
.contact__btn svg { transition: transform .35s var(--ease); }
.contact__btn:hover { background: #0f7896; transform: translateY(-2px); box-shadow: 0 14px 32px -12px rgba(18, 141, 177, .55); }
.contact__btn:hover svg { transform: translateX(4px); }
.contact__note { margin: 22px 0 0; font-size: 12.5px; font-weight: 300; color: var(--purple); }

/* ============ FOOTER ============ */
.footer { padding: clamp(48px, 6vw, 72px) clamp(24px, 4vw, 48px) 30px; border-top: 1px solid #e4e4e4; color: var(--primary); }
.footer__inner {
  width: min(100%, var(--maxw)); margin-inline: auto;
  display: flex; justify-content: space-between; align-items: center; gap: 26px; flex-wrap: wrap;
}
.footer__brand .header__name { font-size: 20px; }
.footer__txt { margin: 10px 0 0; font-size: 12.5px; font-weight: 300; color: var(--purple); }
.footer__nav { display: flex; gap: 28px; flex-wrap: wrap; }
.footer__nav a { font-size: 14px; font-weight: 400; transition: color .25s; }
.footer__nav a:hover { color: var(--accent); }
.footer__copy { width: min(100%, var(--maxw)); margin: 26px auto 0; text-align: center; font-family: "Heebo", sans-serif; font-weight: 300; font-size: 12px; color: var(--en-grey); }

/* ============ REVEAL ============ */
.js-reveal { opacity: 0; transform: translateY(28px); transition: opacity .85s var(--ease), transform .85s var(--ease); }
.js-reveal.is-in { opacity: 1; transform: none; }
.ct.js-reveal { transition-delay: .05s; }
@media (prefers-reduced-motion: reduce) { .js-reveal { opacity: 1; transform: none; } }

/* ============ RESPONSIVE ============ */
@media (max-width: 980px) {
  .ct__grid { grid-template-columns: repeat(2, 1fr); }
  .fe__grid { grid-template-columns: 1fr; }
}
@media (max-width: 768px) {
  .header { padding: 12px 18px; }
  .header__ul { display: none; }
  .sub-fv__inner { flex-direction: column; align-items: stretch; gap: 28px; }
  .sub-fv__left { padding-left: 24px; }
  .sub-fv__right { width: 100%; align-self: flex-end; }
  .ct__grid { grid-template-columns: 1fr; }
  .footer__inner { flex-direction: column; align-items: flex-start; }
}
@media (max-width: 520px) {
  .header__left { gap: 10px; }
  .header__back { padding: 9px 12px; }
  .header__back span { display: none; }
}
@media (max-width: 440px) {
  .header__name { font-size: 16px; }
}
