/* ハーバーテック Webサイトのスタイル */

:root {
  color-scheme: light;
  --ivory: #f8f9f4;
  --white: #fff;
  --navy: #082e55;
  --ink: #16364b;
  --muted: #466076;
  --green: #21772d;
  --blue: #e7f5fc;
  --lime: #ecf5de;
  --yellow: #ffcf38;
  --line: #dce7e3;
  --radius: 24px;
  --numbers: "Nunito", "Avenir Next", "Hiragino Sans", "Yu Gothic", sans-serif;
}

* { box-sizing: border-box; }
html { scroll-padding-top: 103px; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--ivory);
  color: var(--ink);
  font-family: "Hiragino Sans", "Yu Gothic", "Noto Sans JP", Meiryo, sans-serif;
  line-height: 1.85;
  -webkit-text-size-adjust: 100%;
}
h1, h2, h3, p, figure { margin: 0; }
h1, h2, h3 { color: var(--navy); line-height: 1.42; line-break: strict; }
h2, h3 { text-wrap: wrap; }
/* ひと続きで読ませたい短い語句だけを保護。狭い画面では語句間で折り返す */
.keep-together { display: inline-block; white-space: nowrap; }

/* 見出しは単語の途中で折り返さない。余裕があれば必ず1行に収める。
   flex item の境界だけが改行位置となり、広い画面での不自然な均等折り返しを防ぐ。 */
.phrase-heading {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: flex-start;
  align-content: flex-start;
  width: 100%;
  max-width: 100%;
  gap: 0;
  text-wrap: nowrap;
}
.phrase-heading > .keep-together {
  display: block;
  flex: 0 0 auto;
  white-space: nowrap;
}

h1 { font-size: clamp(2.65rem, 4.55vw, 4rem); font-weight: 900; letter-spacing: -.065em; font-feature-settings: "palt"; }
h2 { font-size: clamp(1.8rem, 3.5vw, 3rem); font-weight: 850; letter-spacing: -.045em; }
h3 { font-size: 1.25rem; font-weight: 800; }
a { color: inherit; }
img { display: block; max-width: 100%; height: auto; }
a:focus-visible, summary:focus-visible {
  outline: 3px solid #007dc6;
  outline-offset: 4px;
  border-radius: 5px;
}
.wrap { width: min(1180px, calc(100% - 64px)); margin-inline: auto; }
.section { padding: clamp(62px, 8.6vw, 112px) 0; }
/* 見出しは余裕のある幅を使い、本文のみ読みやすい行長に制限 */
.section-lead { max-width: 100%; }
.section-lead > p { max-width: 62rem; }
.section-lead p { margin-top: 14px; color: var(--muted); }
.courses .section-lead > p { max-width: 66rem; }
.center { margin-inline: auto; text-align: center; }
.number { font-family: var(--numbers); font-variant-numeric: tabular-nums; }
.skip {
  position: absolute;
  z-index: 5;
  inset: 8px auto auto 8px;
  padding: 8px 16px;
  background: var(--white);
  transform: translateY(-150%);
}
.skip:focus { transform: translateY(0); }
.button {
  white-space: nowrap;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .7em;
  min-height: 50px;
  padding: 12px 22px;
  border-radius: 100px;
  background: var(--navy);
  color: var(--white);
  text-decoration: none;
  font-weight: 750;
  font-size: .94rem;
  line-height: 1.45;
  transition: background-color .18s ease, transform .18s ease;
}
.button:hover { background: #194b70; transform: translateY(-2px); }
.button-sun { background: var(--yellow); color: var(--navy); }
.button-sun:hover { background: #ffdc67; }
.text-link {
  white-space: nowrap;
  display: inline-flex;
  gap: .55em;
  min-height: 44px;
  align-items: center;
  color: var(--navy);
  font-weight: 760;
  text-underline-offset: .25em;
  text-decoration-color: #7797a8;
}
.text-link:hover { text-decoration-color: currentColor; }

.site-header {
  position: sticky;
  z-index: 4;
  top: 0;
  background: var(--ivory);
  border-bottom: 1px solid #e5ebe5;
}
.header-row {
  display: flex;
  min-height: 84px;
  align-items: center;
  justify-content: space-between;
  gap: 22px;
}
.brand { flex: 0 1 216px; display: block; }
.brand img { width: 100%; }
.site-nav { display: flex; align-items: center; gap: clamp(12px, 2.1vw, 30px); margin-left: auto; }
.site-nav a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  color: var(--navy);
  font-size: .875rem;
  font-weight: 750;
  text-decoration: none;
  white-space: nowrap;
}
.site-nav a:hover { text-decoration: underline; text-underline-offset: .3em; }
.header-action { flex: none; font-size: .875rem; min-height: 45px; padding: 10px 19px; }

.hero { padding: clamp(34px, 5.3vw, 74px) 0 0; }
.hero-grid {
  display: grid;
  grid-template-columns: .98fr 1.02fr;
  align-items: center;
  gap: clamp(25px, 4vw, 66px);
}
.intro-label {
  display: inline-flex;
  flex-wrap: wrap;
  max-width: 100%;
  align-items: center;
  gap: 10px;
  color: var(--green);
  font-size: clamp(.79rem, 1.3vw, .98rem);
  font-weight: 800;
  margin-bottom: 19px;
}
.intro-label::before { content: ""; flex: 0 0 22px; height: 3px; background: #62b250; border-radius: 4px; }
/* キャッチコピーは意図した2行を維持。色は後半だけに適用 */
.hero h1 .hero-line { display: block; white-space: nowrap; }
.hero h1 .hero-highlight {
  color: var(--green);
  background: linear-gradient(transparent 77%, #ffe188 77%, #ffe188 93%, transparent 93%);
}
.hero-copy {
  max-width: 30em;
  margin-top: 20px;
  font-size: clamp(.94rem, 1.6vw, 1.12rem);
  color: var(--ink);
}
.hero-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 25px; margin-top: 30px; }
/* メインビジュアルは一枚の透過イラスト。旧・画像合成と装飾の重複を撤去 */
.hero-art {
  min-width: 0;
  width: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
}
.hero-art .hero-illustration {
  display: block;
  width: 100%;
  max-width: 620px;
  height: auto;
  object-fit: contain;
}
.hero-facts {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-top: clamp(28px, 5vw, 61px);
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 19px 19px 0 0;
  border-bottom: 0;
  padding: 16px 0;
}
.hero-facts div { display: flex; align-items: baseline; justify-content: center; flex-wrap: wrap; gap: 1px 12px; padding: 0 13px; }
.hero-facts div + div { border-left: 1px solid var(--line); }
.hero-facts dt { color: var(--green); font-size: .79rem; font-weight: 800; white-space: nowrap; }
.hero-facts dd { color: var(--navy); font-size: 1.02rem; font-weight: 780; margin: 0; }

.courses { background: var(--white); }
.course-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 22px;
  margin-top: 30px;
}
.course-card {
  min-width: 0;
  display: flex;
  flex-direction: column;
  border-radius: var(--radius);
  border: 1px solid #cadfea;
  background: #f5fbff;
  overflow: hidden;
}
.robot-card { border-color: #d6e7c0; background: #f6faef; }
.course-visual {
  display: grid;
  place-items: center;
  height: 236px;
  padding: 24px;
  background:
    radial-gradient(#86b8da 1px, transparent 1px) 0 0 / 18px 18px,
    #ddf0fc;
}
.robot-card .course-visual {
  background:
    radial-gradient(#98be74 1px, transparent 1px) 0 0 / 18px 18px,
    #e9f4d9;
}
.game-window {
  border: 6px solid #fff;
  border-bottom-width: 9px;
  border-radius: 13px;
  overflow: hidden;
  box-shadow: 0 7px 0 #98bfd1;
  transform: rotate(-4deg);
  width: min(238px, 79%);
}
.game-window img { width: 100%; }
.course-visual .robot-art { width: 291px; max-width: 87%; }
.course-copy { padding: clamp(20px, 3vw, 33px); display: flex; flex-direction: column; flex: 1; align-items: flex-start; }
.course-copy h3 { font-size: clamp(1.2rem, 2.25vw, 1.55rem); }
.course-copy p { margin: 9px 0 7px; color: var(--muted); }
.course-copy a { margin-top: auto; }

.curriculum { background: #eff4ea; }
.project-grid {
  list-style: none;
  padding: 0;
  margin: 32px 0 26px;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}
.project-grid li {
  min-width: 0;
  background: var(--white);
  overflow: hidden;
  border-radius: 16px;
  border: 1px solid #dce7d7;
}
.project-grid img { width: 100%; aspect-ratio: 1.28; object-fit: cover; }
.project-text { padding: 15px 16px 18px; }
.project-level { color: var(--green); font-size: .79rem; font-weight: 800; margin-bottom: 4px; }
.project-text h3 { font-size: .98rem; }
.project-text p:last-child { color: var(--muted); font-size: .83rem; margin-top: 6px; }
.disclosures { display: grid; gap: 10px; }
details { background: var(--white); border: 1px solid var(--line); border-radius: 14px; }
summary {
  display: flex;
  padding: 16px 19px;
  min-height: 54px;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  font-weight: 750;
  color: var(--navy);
  cursor: pointer;
  list-style: none;
  line-height: 1.55;
}
summary::-webkit-details-marker { display: none; }
summary::after {
  content: "";
  flex: 0 0 8px;
  height: 8px;
  border: solid var(--green);
  border-width: 0 2px 2px 0;
  transform: translateY(-2px) rotate(45deg);
}
details[open] summary::after { transform: translateY(2px) rotate(225deg); }
.detail-content { padding: 2px 19px 19px; }
.sample img { width: min(100%, 960px); border-radius: 7px; }
.sample figcaption { color: var(--muted); font-size: .83rem; margin-top: 7px; }
.lesson-list { padding-left: 26px; margin: 3px 0 0; columns: 2; column-gap: 44px; }
.lesson-list li { padding-block: 3px; break-inside: avoid; }

.robot-section { background: var(--white); }
.split { display: grid; grid-template-columns: 1fr 1fr; align-items: center; gap: clamp(28px, 6.2vw, 82px); }
.board { padding: clamp(16px, 3.8vw, 34px); border-radius: var(--radius); background: var(--blue); }
.board img { width: 100%; }
.board figcaption { margin-top: 9px; color: var(--muted); font-size: .79rem; text-align: right; }
.robot-steps { list-style: none; margin: 22px 0 0; padding: 0; display: grid; gap: 10px; }
.robot-steps li {
  min-width: 0;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 3px;
  border-top: 1px solid var(--line);
  padding: 13px 0 4px;
  line-height: 1.65;
}
.robot-steps li strong {
  display: block;
  max-width: 100%;
  font-size: clamp(.95rem, 1.7vw, 1.08rem);
  line-height: 1.55;
  white-space: normal;
  overflow-wrap: anywhere;
}
.robot-steps li .robot-step-description { display: block; max-width: 100%; color: var(--muted); font-size: .96rem; line-height: 1.75; }
.robot-steps strong { color: var(--green); }

.lesson { border-top: 1px solid var(--line); }
.lesson .split { align-items: start; }
.lesson .section-lead .credit { margin-top: 24px; font-size: .83rem; }
.timeline {
  background: var(--white);
  border-radius: var(--radius);
  border: 1px solid var(--line);
  padding: clamp(19px, 3.1vw, 32px);
}
.timeline ol { list-style: none; padding: 0; margin: 9px 0 0; }
.timeline li { display: grid; grid-template-columns: 64px 1fr; align-items: baseline; gap: 11px; padding: 9px 0; }
.timeline li + li { border-top: 1px solid var(--line); }
.timeline time { color: var(--green); font-size: .89rem; font-weight: 800; white-space: nowrap; }

.fees { background: var(--blue); }
.fee-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 17px;
  max-width: 900px;
  margin: 30px auto 0;
}
.fee-card {
  padding: clamp(18px, 3.5vw, 32px);
  border-radius: 19px;
  background: var(--white);
  border-top: 5px solid #51a3d6;
}
.fee-card:nth-child(2) { border-top-color: #79b947; }
.fee-card h3 { font-size: 1.02rem; }
.tuition { color: var(--navy); line-height: 1.19; margin: 12px 0 20px; font-weight: 700; }
.tuition strong { font-size: clamp(2.2rem, 4.5vw, 3.3rem); font-weight: 850; letter-spacing: -.045em; }
.tuition small { font-size: .77rem; color: var(--muted); }
.fee-list { margin: 0; font-size: .88rem; }
.fee-list div { display: flex; justify-content: space-between; gap: 10px; padding: 9px 0; border-top: 1px solid var(--line); }
.fee-list dd { color: var(--navy); font-weight: 800; margin: 0; white-space: nowrap; }


.faq { background: var(--white); }
.faq .wrap { max-width: 850px; }
.faq .disclosures { margin-top: 26px; }

.trial { padding: 0 0 clamp(40px, 6.5vw, 80px); background: var(--white); }
.trial-panel {
  display: grid;
  grid-template-columns: 1.5fr .5fr;
  align-items: center;
  gap: 22px;
  border-radius: 28px;
  padding: clamp(25px, 5vw, 62px);
  background: var(--navy);
  color: var(--white);
}
.trial-panel h2 { color: var(--white); margin-bottom: 10px; }
.trial-panel p { max-width: 38rem; color: #e5f4ff; }
.trial-panel img { max-width: 168px; justify-self: center; }
.trial-status { display: inline-block; color: #ffe383; font-weight: 800; font-size: .86rem; margin-bottom: 8px; }
footer { padding: 25px 0; border-top: 1px solid var(--line); color: var(--muted); font-size: .86rem; }
.footer-row { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 9px 20px; }
.footer-row strong { color: var(--navy); margin-right: 1em; }
.footer-row a { text-underline-offset: .2em; }

@media (max-width: 1000px) {
  .wrap { width: min(1180px, calc(100% - 48px)); }
  .header-row { gap: 15px; }
  .brand { flex-basis: 190px; }
  .site-nav { gap: 14px; }
  .site-nav a { font-size: .81rem; }
  .header-action { font-size: .81rem; padding-inline: 15px; }
  .hero-grid { gap: 26px; }
  h1 { font-size: clamp(2.55rem, 4.95vw, 3.95rem); }
}

@media (max-width: 780px) {
  html { scroll-padding-top: 118px; }
  .wrap { width: calc(100% - 36px); }
  .header-row { display: grid; min-height: 0; grid-template-columns: minmax(0, 1fr) auto; gap: 0 14px; padding-top: 10px; }
  .brand { max-width: 167px; }
  .header-action { grid-area: 1 / 2; }
  .site-nav { grid-row: 2; grid-column: 1 / -1; justify-content: space-between; margin: 0; gap: 4px; }
  .hero-grid, .split { grid-template-columns: minmax(0, 1fr); }
  .hero-art { width: min(100%, 510px); justify-self: center; }
  .hero h1 { font-size: clamp(1.7rem, 8vw, 3.8rem); }
  .hero-actions { margin-top: 22px; }
  .hero-facts div { flex-direction: column; align-items: center; text-align: center; padding-inline: 6px; }
  .hero-facts dd { font-size: .84rem; }
  .project-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .course-visual { height: 210px; padding: 16px; }
}

@media (max-width: 535px) {
  .hero { padding-top: 30px; }
  .hero-facts { margin-bottom: 0; padding: 10px 0; }
  .hero-facts dt { font-size: .69rem; }
  .hero-facts dd { font-size: .74rem; }
  .hero-actions { gap: 7px 15px; }
  .hero-actions .button { padding: 10px 15px; min-height: 45px; font-size: .85rem; }
  .hero-actions .text-link { font-size: .85rem; }
  .course-grid, .fee-grid { grid-template-columns: minmax(0, 1fr); gap: 15px; }
  .course-visual { height: 196px; padding: 16px; }
  .course-visual .robot-art { width: 240px; }
  .game-window { width: 205px; max-width: 80%; }
  .project-grid { gap: 9px; }
  .project-text { padding: 10px 11px 13px; }
  .project-text h3 { font-size: .89rem; }
  .project-text p:last-child { font-size: .75rem; }
  .lesson-list { columns: auto; }
  .trial-panel { grid-template-columns: minmax(0, 1fr); }
  .trial-panel img { justify-self: end; max-width: 96px; }
}

/* 小さなスマートフォンでも「2つのコース」が分断されない文字サイズに */
@media (max-width: 390px) {
  h2 { font-size: clamp(1.45rem, 6.5vw, 1.7rem); }
  /* 極小画面では数値・単位を切り離さず、特徴を縦並びにする */
  .hero-facts { grid-template-columns: minmax(0, 1fr); }
  .hero-facts div { flex-direction: row; gap: 8px; padding: 7px 12px; }
  .hero-facts div + div { border-left: 0; border-top: 1px solid var(--line); }
  .hero-facts dd { white-space: nowrap; font-size: .84rem; }
}

@media (max-width: 350px) {
  .header-action { padding-inline: 9px; font-size: .75rem; }
  .site-nav a { font-size: .75rem; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .button { transition: none; }
}

/* 完成したロボットの持ち帰り案内 */
.takehome-note { color: #21772d; font-size: .9rem; font-weight: 800; line-height: 1.6; margin: -5px 0 17px; }

/* 2026-11-19 LINE受付セクション（既存のデザインを保持） */
.trial-panel { grid-template-columns: minmax(0,1.2fr) minmax(225px,.8fr); gap: clamp(24px, 4vw, 52px); }
.trial-copy { position:relative; min-width:0; }
.trial-copy p { line-height:1.85; }
.trial-copy .trial-hint { margin-top:12px; font-size:.88rem; color:#cde6f5; }
.trial-copy .line-button { margin-top:22px; }
.trial-panel .trial-mascot { max-width:105px; margin-top:22px; margin-left:auto; }
.qr-panel { border-radius:22px; background:#fff; padding:clamp(16px,2.4vw,26px); text-align:center; color:var(--navy); display:flex; flex-direction:column; align-items:center; gap:7px; }
.qr-panel .qr-label { color:var(--navy); font-weight:850; font-size:1.03rem; }
.qr-panel a { display:block; width:100%; max-width:248px; border-radius:12px; overflow:hidden; }
.trial-panel .line-qr { width:100%; max-width:none; height:auto; image-rendering:auto; }
.qr-panel .qr-caption { color:#415f74; font-size:.79rem; line-height:1.5; }
@media(max-width:780px) { .trial-panel {grid-template-columns:minmax(0,1fr) minmax(200px,.67fr)} }
@media(max-width:600px) { .trial-panel{grid-template-columns:minmax(0,1fr)} .qr-panel { width:min(100%,340px); justify-self:center; margin-inline:auto; } .trial-panel .trial-mascot { display:none; } .trial-copy .line-button{white-space:normal;text-align:center;} }


/* 2026-11-20: 新カリキュラム（共通 → 2分岐 → Python） */
@media (min-width: 1001px) {
  .brand { flex-basis: 250px; }
}
@media (max-width: 1000px) and (min-width: 781px) {
  .brand { flex-basis: 206px; }
}
@media (max-width: 780px) {
  .brand { max-width: 185px; }
}
.learning-path {
  margin: 34px auto 34px;
  max-width: 980px;
  display: flex;
  flex-direction: column;
  align-items: stretch;
}
.path-node {
  min-width: 0;
  border-radius: 20px;
  border: 2px solid #d6e7e2;
  padding: 24px 28px;
  background: #fff;
  box-shadow: 0 7px 24px rgba(8,46,85,.045);
}
.path-common { background: #fff9e7; border-color: #f7db82; text-align: center; }
.path-common h3 { font-size: clamp(1.15rem, 2.3vw, 1.5rem); }
.path-common h3 small { font-size: .75em; }
.path-programming { background: #f0f9ff; border-color: #b5daef; }
.path-robot { background: #f2f9e9; border-color: #c5e0ac; }
.path-python { background: #f8f5ff; border-color: #dcd0ee; text-align: center; }
.path-branches { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 18px; }
.path-branches .path-node { height: 100%; }
.path-node h3 { font-size: clamp(1.12rem, 2.2vw, 1.35rem); margin: 2px 0 3px; }
.path-node p { color: var(--muted); font-size: .91rem; line-height: 1.7; }
.path-node .path-levels { color: var(--navy); font-size: 1.22rem; font-weight: 900; margin: 7px 0; }
.path-levels span { color: var(--green); padding: 0 10px; }
.path-label { display: inline-block; color: #34627c; font-size: .76rem; font-weight: 850; letter-spacing: .03em; }
.path-connector { display: flex; align-items: center; flex-direction: column; padding: 7px 0 11px; color: #4a788d; line-height: 1.15; }
.path-connector span { font-size: 1.28rem; }
.path-connector em { font-size: .78rem; font-style: normal; font-weight: 750; }
.small-pill { display: inline-flex; align-items: center; vertical-align: middle; background: #e9e0ff; color: #4c3980; font-size: .68rem; border-radius: 99px; font-weight: 800; padding: 3px 11px; margin-left: 8px; }
.course-grade { display: block; font-size: .85rem; color: var(--green); margin-top: 1px; }
.fee-course-note { font-size: .87em; color: var(--muted); font-weight: 750; }
.fees-note, .fees-python { max-width: 900px; margin: 13px auto 0; font-size: .86rem; color: #375369; }
.fees-python { margin-top: 10px; }
.robot-curriculum { margin-top: 35px; }
.robot-curriculum h3 { font-size: clamp(1.25rem,2vw,1.6rem); }
.robot-curriculum-intro { max-width: 75ch; color: var(--muted); font-size: .92rem; margin: 8px 0 18px; }
.robot-curriculum details { border-color: #d2e3d5; }
.table-scroll { overflow-x: auto; max-width: 100%; border-radius: 9px; border: 1px solid #dce6e9; }
.table-scroll:focus-visible { outline: 3px solid #007dc6; outline-offset: 3px; }
.curriculum-table { width: 100%; min-width: 850px; border-collapse: collapse; font-size: .85rem; line-height: 1.55; }
.curriculum-table caption { text-align: left; padding: 11px 12px; font-size: .9rem; font-weight: 750; color: var(--navy); }
.curriculum-table thead th { background: #e3f2ee; text-align: left; color: var(--navy); font-weight: 800; border: 1px solid #ccdcd9; padding: 10px 11px; }
.curriculum-table tbody th, .curriculum-table tbody td { border: 1px solid #e1e9e7; padding: 9px 11px; vertical-align: top; }
.curriculum-table tbody tr:nth-child(even) { background: #f9fbf9; }
.curriculum-table .month-cell { white-space: nowrap; text-align: center; color: var(--green); font-size: .82rem; background: #f3f8ee; font-weight: 850; vertical-align: middle; }
.curriculum-table .lesson-num { width: 40px; text-align: center; }
.curriculum-table th:nth-child(3) { min-width: 185px; }
.curriculum-table th:nth-child(4) { min-width: 150px; }
.curriculum-table th:nth-child(5) { min-width: 260px; }
.curriculum-disclaimer { color: #5e7081; font-size: .8rem; line-height: 1.7; margin-top: 11px; }
@media (max-width: 640px) {
  .path-branches { grid-template-columns: minmax(0,1fr); gap: 12px; }
  .learning-path { margin-top: 24px; }
  .path-node { padding: 19px 18px; }
  .path-connector { padding: 6px 0; }
  .robot-curriculum { margin-top: 28px; }
  .robot-curriculum .detail-content { padding: 0 9px 14px; }
  .curriculum-table { font-size: .79rem; }
}

/* 開いた授業表の横幅が画面全体へはみ出さないようにする */
.robot-curriculum .curriculum-detail { overflow: hidden; }


/* 2026-11-20 コース紹介の重複を解消：3枚の画像付きカードで学習経路を示す */
.learning-path { max-width: 1080px; }
.learning-path .course-grid { margin-top: 0; }
.learning-path .common-card {
  width: min(100%, 660px);
  margin-inline: auto;
  background: #fffcf1;
  border-color: #f0d997;
}
.common-card .course-visual {
  background: radial-gradient(#e4bb67 1px, transparent 1px) 0 0 / 18px 18px, #fff4cf;
}
.common-card .game-window { width: min(255px, 81%); }
.common-card .common-tag {
  margin: 0 0 6px;
  color: #88600f;
  font-size: .78rem;
  font-weight: 850;
  letter-spacing: .035em;
}
.common-card .course-copy { align-items: center; text-align: center; }
.common-card .course-grade { color: #6d7f19; }
.common-card .course-copy a { margin-top: 13px; }
.learning-path .course-grid .course-copy a { margin-top: auto; padding-top: 18px; }
.learning-path .path-python { width: 100%; }

/* 対象・少人数・授業：見出しの直後で必ず改行 */
.hero-facts div {
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  gap: 5px;
}
.hero-facts dt { display: block; }
.hero-facts dd {
  display: block;
  white-space: normal;
  text-align: center;
}
@media (max-width: 535px) {
  .hero-facts { padding-block: 13px; }
  .hero-facts div { gap: 5px; }
  .hero-facts dd { line-height: 1.5; }
}
@media (max-width: 390px) {
  .hero-facts div { flex-direction: column; }
}


