/* FLARE AICHI - 共通スタイル */

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

:root {
  --orange:  #e8621a;
  --orange2: #f5a623;
  --dark:    #2c2c2c;
  --gray:    #666;
  --light:   #f9f6f2;
  --white:   #ffffff;
  --max-w:   1100px;

  --deep-purple:  #4B1E6E;
  --vibrant-pink: #EB3C78;
  --sunburst:     #FAAA1E;
  --sprout-green: #B9D7C8;
  --feature-pink: #F0D2C8;
  --bloom-blue:   #C3E1EB;
}

body {
  font-family: "Hiragino Sans", "Hiragino Kaku Gothic ProN", "Noto Sans JP", sans-serif;
  font-size: 16px;
  line-height: 1.6;
  color: var(--dark);
  background: var(--white);
  background: url(images/footer-bg2026.png) bottom center / cover no-repeat;
}

a { color: var(--orange); text-decoration: none; }
a:hover { text-decoration: underline; }

img { max-width: 100%; height: auto; display: block; }

/* スマホ幅でだけ効かせる改行。PCでは無効化しておき、
   @media (max-width: 768px) 内で display: inline に戻す。
   （PC専用の改行は既存の .feature-break が逆の役割を担う） */
.sp-break { display: none; }

/* 折り返しが崩れる狭い画面でだけ効かせる改行。
   1行に収まらなくなる幅でのみ有効化したい場合に使う。 */
.sp-break-narrow { display: none; }

/* ===== ナビゲーション ===== */
nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255,255,255,0.96);
  border-bottom: 1px solid #eee;
  padding: 0 24px;
}
nav .nav-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 32px;
  height: 56px;
  flex-wrap: wrap;
}
nav .nav-logo {
  font-weight: 700;
  font-size: 15px;
  color: var(--dark);
  white-space: nowrap;
}
nav .nav-logo img { height: 52px; width: auto; display: inline-block; }
nav ul {
  list-style: none;
  display: flex;
  gap: 24px;
  flex-wrap: wrap;
  margin-left: auto;
}
nav ul li a {
  font-size: 14px;
  color: var(--dark);
  font-weight: 300;
}
nav ul li a:hover, nav ul li a.active { color: var(--orange); text-decoration: none; }
.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  /* タップ領域は44x44を確保しつつ、線の見た目は32x32のまま
     （box-sizing:border-box なので 44 - 6*2 = 32 が内側の描画領域） */
  width: 44px;
  height: 44px;
  padding: 6px;
  margin-right: -6px;
  border: none;
  background: none;
  cursor: pointer;
}
.nav-toggle span {
  display: block;
  width: 100%;
  height: 2px;
  background: var(--dark);
  border-radius: 2px;
  transition: transform 0.25s ease, opacity 0.25s ease;
}
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ===== メインコンテナ ===== */
.container {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 36px 72px 72px 72px;
	background-color:#fff;
}
.container-wide {
  max-width: min(1200px, 92vw);
  margin: 0 auto;
  padding: 36px 72px 72px 72px;
	background-color:#fff;
}
.organizer .container-wide {
  border-radius: 0 0 20px 20px;
}

/* ===== セクション共通 ===== */
section { 
	margin:0px 0;
	padding: 0px 0; 
}
section.alt-bg { background: var(--light); }

h1 { font-size: 2rem; line-height: 1.3;   font-weight: 600;}
h2 { font-size: 1.6rem; margin-bottom: 32px; text-align: center;   font-weight: 600;}
h3 { font-size: 1.2rem; margin-bottom: 12px;   font-weight: 500;}

/* ===== ヒーローセクション ===== */
.hero {
  position: relative;
  color: var(--white);
  text-align: center;
  overflow: hidden;
  min-height: calc(60vh - 56px);
  display: flex;
  align-items: center;
  justify-content: center;
}
.hero-video {
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  z-index: 0;
}
.hero-overlay {
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
  background: rgba(0,0,0,0.15);
  z-index: 1;
}
.hero-content {
  position: relative;
  z-index: 2;
  padding: 20px 24px 40px;
  width: 100%;
}
.hero-logo { max-width: 480px; margin: 0 auto 28px; }
/* 背景が明るいため、白に近い間は文字がほとんど読めない
   （実測：白 1.69:1／最終色 8.2:1）。演出は残しつつ読めない時間を
   最小にするため、35%地点で一気に濃色まで落としてから最終色へ寄せる。
   これで可読な状態になるまで約0.4秒（従来は約4.6秒）。 */
@keyframes hero-text-color-fade {
  from { color: var(--white); }
  35%  { color: #333333; }
  to   { color: var(--dark); }
}
.hero-tagline {
  font-size: 1.05rem;
  color: var(--white);
  animation: hero-text-color-fade 1.2s linear forwards;
  margin-bottom: 20px;
  font-style: italic;
  letter-spacing: 0.04em;
}
.hero-subtitle {
  font-size: 1.8rem;
  font-weight: 400;
  color: var(--white);
  animation: hero-text-color-fade 1.2s linear forwards;
  line-height: 1.3;
  margin-bottom: 32px;
}
.hero-desc {
  max-width: min(1200px, 92vw);
  margin: 0 auto 32px;
  background: rgba(0,0,0,0.60);
  padding: 28px 40px;
  border-radius: 8px;
  font-size: 1.2rem;
  line-height: 1.55;
  text-align: center;
}
.hero-desc .kana {
  font-size: 0.7rem;
  display: block;
  text-align: center;
  margin-bottom: 4px;
  opacity: 0.8;
}
.btn {
  display: inline-block;
  background: var(--white);
  color: var(--orange);
  font-weight: 700;
  padding: 14px 40px;
  border-radius: 4px;
  font-size: 1rem;
  transition: opacity 0.2s;
}
.btn:hover { opacity: 0.85; text-decoration: none; }
.btn-closed {
  display: inline-block;
  background: rgba(255,255,255,0.2);
  color: var(--white);
  font-weight: 700;
  padding: 14px 40px;
  border-radius: 4px;
  font-size: 1rem;
  border: 2px solid rgba(255,255,255,0.5);
}
.btn-apply-now {
  display: inline-block;
  background: linear-gradient(45deg, rgb(235,60,120), rgb(250,170,30));
  color: var(--white);
  font-weight: 600;
  font-size: 1.5rem;
  padding: 14px 40px;
  border-radius: 12px;
  box-shadow: 2px 2px 8px rgba(0,0,0,0.2);
  transition: background 0.2s, color 0.2s;
}
.btn-apply-now:hover {
  background: linear-gradient(45deg, rgb(250,170,30), rgb(235,60,120));
  color: #fcfcfc;
  text-decoration: none;
}

/* ===== 応募締め切り／応募終了 ===== */
.apply-status-block {
  text-align: center;
  padding: 24px;
}
.apply-deadline {
  text-align: center;
  margin-top: 24px;
}
.deadline-date {
  font-size: 1.5em;
  font-weight: 700;
}
.apply-closed-line {
  text-align: center;
  margin-top: 12px;
}

/* ===== 特徴グリッド ===== */
.features-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 32px 24px;
  margin-top: 32px;
}
.feature-card {
  display: flex;
  flex-direction: column;
}
.feature-card h3 {
  font-weight: 600;
  font-size: 1.25rem;
   line-height: 1.3;
 text-align: center;
  color: #121212;
  margin-bottom: 12px;
}
.feature-card .card-body {
  flex: 1;
  border-radius: 10px;
  padding: 18px 18px 28px 28px;
  font-size: 1.05rem;
  line-height: 1.5;
  border: 2px solid;
}
.feature-card:nth-child(1) .card-body { border-color: #c8a830; background: url(images/feature1-intensive-course.png) no-repeat right 12px bottom 0px / 80px auto, #fdf8e4; }
.feature-card:nth-child(2) .card-body { border-color: #e8621a; background: url(images/feature2-mentors.png) no-repeat right 10px bottom 0px / 80px auto, #fef3eb; }
.feature-card:nth-child(3) .card-body { border-color: #c95070; background: url(images/feature3-running-mentor.png) no-repeat right 12px bottom -4px / 96px auto, #fceaed; }
.feature-card:nth-child(4) .card-body { border-color: #3ab0bc; background: url(images/feature4-women-community.png) no-repeat right 16px bottom -2px / 72px auto, #e8f8fa; }

/* ===== メッセージセクション ===== */
.message-section {
  display: flex;
  gap: 48px;
  align-items: flex-start;
}
.message-photo {
  flex-shrink: 0;
  width: 240px;
  border-radius: 8px;
  overflow: hidden;
}
.message-text { flex: 1; }
.message-text p { margin-bottom: 10px; line-height: 1.6; text-indent: 0.9em; font-size: 0.9rem; }
.message-credit {
  margin-top: 16px;
  text-align: right;
}

/* ===== コース比較 ===== */
.courses-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  column-gap: 12px;
  row-gap: 12px;
  margin-top: 32px;
}
.courses-grid .course-card:nth-child(1) {
  grid-column: 1 / -1;
  grid-row: 1;
}
.courses-grid .course-card:nth-child(2) {
  grid-column: 1 / -1;
  grid-row: 2;
}
.course-card {

  padding: 6px;
}
.course-card.sprout {
  background: #fff8f0;
  border: 2px solid #f5a623;
}
.course-card.bloom {
  background: #fff0f0;
  border: 2px solid #e8621a;
}
.course-card h3 {
  font-size: 1.2rem;
  color: var(--orange);
  margin-bottom: 8px;
}
.course-label {
  font-size: 0.85rem;
  background: var(--orange2);
  color: white;
  display: inline-block;
  padding: 3px 10px;
  border-radius: 20px;
  margin-bottom: 16px;
}
.course-card h4 {
  font-size: 1.2rem;
  line-height: 1.2;
  margin: 16px 0 6px;
}
.course-card h4 .paren {
  font-size: 0.8em;
}
.course-card h4:first-of-type {
  margin-top: 0;
}
.phase-requirements {
  display: flex;
  gap: 24px;
  align-items: stretch;
}
.phase-requirement {
  flex: 1;
  display: flex;
  flex-direction: column;
}
.phase-requirement:nth-child(1) { flex: 30 30 0; }
.phase-requirement:nth-child(2) { flex: 32 32 0; }
.phase-requirement:nth-child(3) { flex: 38 38 0; }
.phase-requirement-icon {
  display: block;
  width: 128px;
  height: 128px;
  object-fit: contain;
  margin-top: auto;
  align-self: center;
  padding-top: 0px;
}
#pre-startup{
  width: 96px;
  height: 96px;
}
.course-card ul {
  padding-left: 20px;
  font-size: 0.95rem;
}
.course-card ul li {
  line-height: 1.5;
  margin-bottom: 10px;
}
.course-card ul li:last-child { margin-bottom: 0; }

/* ===== 採択者リスト ===== */
.selected-list {
  font-size: 0.95rem;
  line-height: 1.7;
}
.selected-date {
  font-size: 0.85rem;
  color: var(--gray);
  margin-top: 8px;
}

.secondpage-header{
	background: url(images/flareaichi_headerbg2.jpg) center / cover no-repeat;
	padding: 60px 24px; 
	text-align:center;
}
.secondpage-header h1{
	color: var(--dark);
	font-size:1.8rem;	
}
/* ===== スケジュール ===== */
.schedule-chart img {
  border-radius: 12px;
  box-shadow: 0 4px 20px rgba(0,0,0,0.1);
  margin: 0 auto 48px;
}
.schedule-steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin: 32px 0;
}
.step-card {
  background: var(--white);
  border-radius: 12px;
  padding: 24px;
  text-align: center;
}
.step-card.step1 { border-top: 4px solid #f5c842; background: #fffbee; }
.step-card.step2 { border-top: 4px solid #e8621a; background: #fff5f0; }
.step-card.step3 { border-top: 4px solid #c0390a; background: #fff0f0; }
.step-card h3 { font-size: 1rem; margin-bottom: 8px; color: var(--dark); }
.step-card p { font-size: 0.88rem; color: var(--gray); }

/* 概要図：スマホでは縮小すると注釈が読めないため、タップで原寸を開けるようにする */
.schedule-chart-link {
  display: inline-block;
  text-decoration: none;
}
.schedule-chart-link:hover { text-decoration: none; }
.schedule-chart-hint { display: none; }

.schedule-table-wrap {
  width: 100%;
  overflow-x: auto;
  margin-top: 24px;
  -webkit-overflow-scrolling: touch;
}
.schedule-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.92rem;
}
.schedule-table td {
  padding: 12px 16px;
  border-bottom: 1px solid rgba(0,0,0,0.06);
  text-align: left;
  vertical-align: top;
}
.schedule-table td:first-child {
  width: 26%;
  font-weight: 500;
  white-space: nowrap;
}
/* ステップヘッダー行 */
.schedule-table .step-header-row td {
  font-weight: 600;
  font-size: 0.95rem;
  padding: 11px 16px;
  color: #fff;
  border-bottom: none;
}
.schedule-table .step1-header td { background: var(--sunburst); }
.schedule-table .step2-header td { background: var(--vibrant-pink); }
.schedule-table .step3-header td { background: var(--deep-purple); }
/* ステップデータ行 */
.schedule-table .step1-row td { background: rgba(255,241,212,0.3); }
.schedule-table .step2-row td { background: rgba(255,212,215,0.3); }
.schedule-table .step3-row td { background: rgba(216,237,241,0.3); }
.schedule-table .note-row td {
  font-size: 0.82rem;
  color: #888;
  text-align: right;
  border-bottom: none;
}

/* ===== 人物カード ===== */
.person-card {
  display: flex;
  gap: 32px;
  align-items: flex-start;
  padding: 32px 0;
  border-bottom: 1px solid #eee;
}
.person-card:last-child { border-bottom: none; }
.person-photo {
  flex-shrink: 0;
  width: 180px;
  border-radius: 8px;
  overflow: hidden;
  background: #f0f0f0;
}
.person-photo img { width: 100%; aspect-ratio: 1; object-fit: cover; object-position: top; }
.person-info { flex: 1; }
.person-role {
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--orange);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 4px;
}
.person-name { font-size: 1.25rem; font-weight: 700; margin-bottom: 2px; }
.person-org { font-size: 0.9rem; color: var(--gray); margin-bottom: 8px; }
.person-bio { font-size: 0.9rem; line-height: 1.5; color: var(--dark); }

/* サポートメンター グリッド */
.support-mentors {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 16px;
  margin-top: 24px;
}
.support-mentor-card {
  text-align: center;
  padding: 16px 12px;
  background: var(--light);
  border-radius: 8px;
  font-size: 0.85rem;
}
.support-mentor-card img {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  object-fit: cover;
  object-position: top;
  margin: 0 auto 10px;
  background: #ddd;
}
.support-mentor-card .name { font-weight: 600; margin-bottom: 4px; }
.support-mentor-card .org { color: var(--gray); font-size: 0.78rem; }

/* ===== 採択者グリッド ===== */
.entrepreneurs-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 28px;
  margin-top: 32px;
}
.entrepreneur-card {
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 2px 12px rgba(0,0,0,0.08);
}
.entrepreneur-card img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  object-position: top;
}
.entrepreneur-card-body {
  padding: 16px;
}
.entrepreneur-card-body .name { font-weight: 700; font-size: 1rem; margin-bottom: 2px; }
.entrepreneur-card-body .company { font-size: 0.82rem; color: var(--orange); font-weight: 600; margin-bottom: 6px; }
.entrepreneur-card-body .service { font-size: 0.8rem; color: var(--gray); margin-bottom: 6px; }
.entrepreneur-card-body .desc { font-size: 0.8rem; line-height: 1.6; color: var(--dark); }

/* ===== 実施内容 記事 ===== */
.project-article {
  padding: 56px 0;
}
.project-article:nth-child(even) {
  background: var(--light);
}
.project-article h3 {
  font-size: 1.15rem;
  font-weight: 700;
  margin-bottom: 6px;
  line-height: 1.4;
  color: var(--orange);
  padding-bottom: 6px;
  border-bottom: 2px solid var(--orange2);
}
.article-date {
  text-align: right;
  font-size: 0.85rem;
  color: var(--gray);
  margin-bottom: 16px;
}
.project-article p {
  margin-bottom: 10px;
  line-height: 1.7;
  font-size: 0.95rem;
}

/* ===== FAQ ===== */
.faq-section h2 { text-align: left; }
.faq-item {
  border-bottom: 1px solid #eee;
  padding: 20px 0;
}
.faq-q {
  font-weight: 700;
  font-size: 1rem;
  margin-bottom: 8px;
  display: flex;
  gap: 12px;
  align-items: flex-start;
}
.faq-q::before {
  content: "Q";
  flex-shrink: 0;
  width: 28px;
  height: 28px;
  background: var(--orange);
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.85rem;
  font-weight: 700;
  line-height: 28px;
  text-align: center;
}
.faq-a {
  font-size: 0.95rem;
  line-height: 1.8;
  color: #444;
  padding-left: 40px;
}

/* 募集要項 */
.requirements-section h3 {
  font-size: 1.1rem;
  color: var(--orange);
  margin: 32px 0 12px;
  padding-bottom: 6px;
  border-bottom: 2px solid var(--orange2);
}
.requirements-section p { margin-bottom: 12px; font-size: 0.95rem; }
.requirements-section ul,
.requirements-section ol {
  padding-left: 24px;
  font-size: 0.95rem;
  line-height: 1.6;
  margin-bottom: 16px;
}
.requirements-section li {
  margin-bottom: 5px;
}

/* ===== フッター ===== */
footer {
  /*background: url(images/footer-bg2026.png) top center / cover no-repeat;*/
  color: var(--dark);
  padding: 48px 24px 32px;
  font-size: 0.88rem;
}
.footer-inner {
  display: flex;
  align-items: center;
  gap: 32px;
  text-align: left;
}
.footer-inner h4 {
  flex-shrink: 0;
}
.footer-inner h4 img {
  width: 273px;
}
.footer-inner-text {
  flex: 1;
}
.footer-inner-text p { margin-bottom: 10px; line-height: 1.6; text-indent: 0; font-size: 0.9rem; }
.footer-inner-text p:last-child { margin-bottom: 0; }
.footer-inner-spacer {
  flex-shrink: 0;
  width: 273px;
  margin-top: 30px;
}
.footer-inner-logos {
  flex: 1;
  margin-top: 30px;
}
.footer-logos {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 24px;
  flex-wrap: wrap;
  margin-bottom: 24px;
}
.footer-logos-main img { height: 42px; width: auto; object-fit: contain; }
.footer-logos-sub img  { height: 35px; width: auto; object-fit: contain; }
.footer-bottom {
  margin-top: 32px;
  padding-top: 16px;
  border-top: 1px solid #eee;
  font-size: 0.82rem;
  color: #999;
  text-align: center;
}
.footer-bottom-flame {
  margin-top: 0;
  padding: 0 24px 8px 24px;
  border-top: none;
  color: #121212;
}

/* ===== レスポンシブ ===== */
@media (max-width: 1024px) {
  .features-grid { grid-template-columns: 1fr 1fr; }
}

/* --- スケジュール表：横スクロールをやめて日付＋内容の縦積みカードにする ---
   PC用の2列レイアウトは日付列がnowrapのため最小幅637pxで固定される。
   コンテナ幅がこれを下回るのは画面幅848px以下（92vw - 左右72pxパディング）
   なので、そこまでをカード表示に切り替える。タブレット縦持ちを含む。 */
@media (max-width: 848px) {
  .schedule-table-wrap { overflow-x: visible; }
  .schedule-table,
  .schedule-table tbody,
  .schedule-table tr,
  .schedule-table td {
    display: block;
    width: 100%;
  }
  .schedule-table td { border-bottom: none; }
  /* PC用の nowrap を必ず解除する。フェーズ見出しの行も td:first-child なので
     ここで一括して戻さないと、見出しの長文が表の最小幅を押し広げてしまう */
  .schedule-table td:first-child {
    width: auto;
    white-space: normal;
  }
  .schedule-table .step-header-row td { padding: 12px 14px; }
  /* 日付は内容の上に小見出しとして置く */
  .schedule-table tr:not(.step-header-row) td:first-child {
    font-weight: 700;
    padding: 12px 14px 2px;
  }
  .schedule-table tr:not(.step-header-row) td:last-child {
    padding: 0 14px 14px;
    border-bottom: 1px solid rgba(0,0,0,0.08);
  }
}

@media (max-width: 768px) {
  h1 { font-size: 1.5rem; }
  h2 { font-size: 1.3rem; }
  section { padding: 40px 0; }

  /* --- 左右パディングの圧縮（PC用の72px等はスマホでは幅を食いすぎる） --- */
  nav { padding: 0 16px; }
  .container,
  .container-wide { padding: 24px 16px 40px; }
  .secondpage-header { padding: 40px 16px; }
  /* --- ヒーローの文字サイズ ---
     基準は副題。<br>で区切った2行がそれぞれ1行に収まる大きさを --hero-sub に置き、
     タグラインと説明文をそこから比率で導いて「タグライン < 説明文 < 副題」の
     階層を全幅で保つ。
     --hero-sub の根拠：最長行「〜あなたの情熱が世界を照らす光になる！」の実測が
     18.97em。端末のフォント差を見込んで19.5emで割る。分母は .hero-content の
     左右パディング16px×2を引いた幅。画面が広いときは従来の1.8remで頭打ち。
     clampの下限は、副題に引きずられて本文が読めない大きさになるのを防ぐため。
     上限は元のサイズで、今より大きくならないようにしている。 */
  .hero-content {
    padding: 16px 16px 32px;
    --hero-sub: min(1.8rem, calc((100vw - 32px) / 19.5));
  }
  /* ロゴ：スマホでは横幅いっぱいに出ていたので75%に抑える。
     min()で元の480px上限も残しているため、ロゴが480pxに収まっている
     広い画面（672px以上）では従来どおりのサイズのまま。 */
  .hero-logo { max-width: min(480px, 75%); }
  .hero-subtitle { font-size: var(--hero-sub); }
  .hero-desc     { font-size: clamp(13px, calc(var(--hero-sub) * 0.8), 1.2rem); }
  .hero-tagline  { font-size: clamp(12px, calc(var(--hero-sub) * 0.7), 1.05rem); }
  .apply-status-block { padding: 16px 0; }
  /* nowrap: 余白を詰めても端数丸めで1文字だけ折り返す事故を防ぐ */
  .btn-apply-now { padding: 16px 20px; white-space: nowrap; }
  /* 下パディングはPC版の余白（約60px）に合わせる。詰めると本文最終行が
     右下の背景アイコンに重なるため */
  .feature-card .card-body { padding: 16px 16px 60px; }
  .step-card { padding: 20px 16px; }
  .person-card { padding: 24px 0; }
  .project-article { padding: 40px 0; }
  .requirements-section ul,
  .requirements-section ol { padding-left: 20px; }
  footer { padding: 32px 16px 24px; }
  .footer-bottom-flame { padding: 0 8px 8px; }

  /* --- 概要図：拡大できることを示す --- */
  .schedule-chart-hint {
    display: inline-block;
    margin-top: 10px;
    padding: 5px 14px;
    border: 1px solid var(--orange2);
    border-radius: 999px;
    font-size: 0.82rem;
    color: var(--orange);
    line-height: 1.4;
  }

  /* --- FAQアコーディオン（スマホのみ） ---
     html.js が付いているとき＝JSが動く環境でのみ折りたたむ。
     開くときの高さは faq.js が実測して max-height に入れる（打ち切りを防ぐため
     固定値は置かない）。 */
  .js .faq-item .faq-a {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.28s ease;
  }
  .js .faq-item .faq-q {
    cursor: pointer;
    /* 上下8pxで質問行のタップ領域を44px以上にする（Qバッジが28px） */
    padding: 8px 0;
    margin-bottom: 0;
    -webkit-tap-highlight-color: transparent;
  }
  .js .faq-item.is-open .faq-q { margin-bottom: 8px; }
  /* 開閉を示すシェブロン */
  .js .faq-item .faq-q::after {
    content: "";
    flex-shrink: 0;
    margin-left: auto;
    margin-top: 8px;
    width: 9px;
    height: 9px;
    border-right: 2px solid var(--orange);
    border-bottom: 2px solid var(--orange);
    transform: rotate(45deg);
    transition: transform 0.25s ease;
  }
  .js .faq-item.is-open .faq-q::after { transform: rotate(-135deg); }

  .message-section { flex-direction: column; }
  .message-photo { width: 160px; }
  .courses-grid { grid-template-columns: 1fr; }
  .features-grid { grid-template-columns: 1fr; }
  .feature-break { display: none; }
  .sp-break { display: inline; }
  .phase-requirements { flex-direction: column; }
  .phase-requirement:nth-child(1),
  .phase-requirement:nth-child(2),
  .phase-requirement:nth-child(3) { flex: none; }
  .person-card { flex-direction: column; }
  .person-photo { width: 140px; }
  .schedule-steps { grid-template-columns: 1fr; }
  .hero-desc { padding: 20px; }
  nav .nav-inner { gap: 16px; height: auto; padding: 12px 0; flex-wrap: nowrap; }
  .nav-toggle { display: flex; margin-left: auto; }
  nav ul {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    margin-left: 0;
    flex-direction: column;
    gap: 0;
    background: #fff;
    border-bottom: 1px solid #eee;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
  }
  nav ul.nav-open { max-height: 400px; }
  nav ul li { width: 100%; }
  nav ul li a {
    display: block;
    padding: 14px 24px;
    border-bottom: 1px solid #f5f5f5;
  }
  .footer-inner { flex-direction: column; align-items: stretch; }
  .footer-inner h4 img { margin: 0 auto; }
  .footer-inner-spacer { display: none; }
}

/* instructor-mentor.html の見出し「運営・講師・メンター紹介」専用。
   この見出しは28.8pxで345.61px必要、.secondpage-header の左右padding32pxを
   足すと377.61pxが1行に収まる下限。378px以上の端末は1行のまま残したいので、
   377px以下でだけ「メンター」の後ろで改行する。
   （これを入れないと360px・375pxで「介」1文字だけが行に取り残される） */
@media (max-width: 377px) {
  .sp-break-narrow { display: inline; }
}

/* ===== 横向き（画面が低いとき）のヒーロー圧縮 =====
   横向きの画面高は390〜430px程度しかなく、通常のヒーロー（約793〜873px）は
   2画面ぶんを占めてしまう。最初の画面にロゴしか映らない状態を避けるため、
   文字サイズと余白を詰めて1画面に収める。
   max-width:1024px は、PCブラウザの窓を低くしただけの場合に
   スマホ用の圧縮が効いてしまうのを防ぐため（横向きスマホは最大932px）。
   縦向きとPCには一切影響しない。 */
@media (orientation: landscape) and (max-height: 500px) and (max-width: 1024px) {
  /* ナビの固定を解除して、スクロール後は画面全部を本文に使えるようにする。
     横向きの画面高は390〜430pxしかなく、固定のままだとナビが常時
     14〜22%を占め続けるため。
     static ではなく relative にしているのは、ハンバーガーメニュー（nav ul）が
     position:absolute; top:100% で nav を基準に配置されているから。
     static にすると基準が画面全体になり、メニューが画面下端に飛んでしまう。 */
  nav { position: relative; }

  /* padding:0 は必須。768px以下では section { padding: 40px 0 } が
     .hero にも効いており、上下で80px加算されてしまうため */
  .hero { min-height: 0; padding: 0; }
  .hero-content { padding: 10px 16px 14px; }
  .hero-tagline { font-size: 0.8rem; margin-bottom: 6px; }
  .hero-logo { max-width: 150px; margin: 0 auto 8px; }
  .hero-subtitle { font-size: 1.1rem; line-height: 1.25; margin-bottom: 10px; }
  .hero-desc {
    font-size: 0.8rem;
    line-height: 1.45;
    padding: 10px 16px;
    margin-bottom: 0;
  }
}

/* 横向きでさらに画面が低い機種（iPhone SE / 6・7・8 の 667x375 など）。
   これらはスマホ用レイアウトのためナビが84pxあり、使える高さが291pxしか
   残らない。上の圧縮だけでは23px足りないので、ロゴと余白をもう一段詰める。 */
@media (orientation: landscape) and (max-height: 380px) and (max-width: 1024px) {
  .hero-content { padding: 8px 12px 10px; }
  .hero-tagline { margin-bottom: 4px; }
  .hero-logo { max-width: 110px; }
}
