@charset "UTF-8";
/* =========================================================
   ハートフルスクール 追加パーツ（htf テーマ用）
   ・卒業生インタビュー  .htf-iv（ポップアップ .htf-ivm）
   ・よくある質問        .htf-faq
   ・比較表              .htf-cmp
   ・YouTubeショート     .htf-shorts
   ・申込ボタン          .htf-cta
   すべて .htf-parts の中だけに効くように書いています。
   SPは style_s.css（max-width:480px / body zoom:1.205）に合わせています。
   ========================================================= */

.htf-parts {
  --htf-orange: #ef9301;
  --htf-orange-d: #d97f00;
  --htf-teal: #01a3a1;
  --htf-brown: #716240;
  --htf-beige: #fbf7ee;
  --htf-line: #e8dcc0;
  margin: 10px 0 30px;
  color: #555;
  text-align: left;
  clear: both;
}
.htf-parts *,
.htf-parts *::before,
.htf-parts *::after { box-sizing: border-box; }
#main .htf-parts p { padding: 0; margin: 0; }
.htf-parts ul,
.htf-parts li { list-style: none; margin: 0; padding: 0; }
.htf-parts img { max-width: 100%; height: auto; border: 0; vertical-align: top; }
.htf-parts .htf-lead { margin: 0 0 16px; font-size: 14px; line-height: 1.9; }
#main .htf-parts .htf-lead { padding: 0; }

/* ---------- 申込ボタン ---------- */
.htf-cta {
  margin: 28px 0 0;
  padding: 22px 16px 24px;
  border-radius: 12px;
  background: #fff6e6;
  text-align: center;
}
#main .htf-parts .htf-cta__text {
  margin: 0 0 14px;
  font-size: 15px;
  font-weight: bold;
  line-height: 1.7;
  color: #444;
}
.htf-parts a.htf-btn,
.htf-parts a.htf-btn:link,
.htf-parts a.htf-btn:visited {
  display: inline-block;
  min-width: 280px;
  padding: 13px 28px;
  border-radius: 999px;
  background: var(--htf-orange);
  color: #fff;
  font-size: 16px;
  font-weight: bold;
  line-height: 1.5;
  text-decoration: none;
  box-shadow: 0 3px 0 var(--htf-orange-d);
  transition: transform .15s, box-shadow .15s;
}
.htf-parts a.htf-btn:hover { transform: translateY(2px); box-shadow: 0 1px 0 var(--htf-orange-d); color: #fff; }
.htf-parts a.htf-btn::after { content: " ›"; }
.htf-parts a.htf-link,
.htf-parts a.htf-link:link,
.htf-parts a.htf-link:visited { color: var(--htf-teal); text-decoration: underline; }

/* ---------- 卒業生インタビュー：バナー ---------- */
.htf-iv__list {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}
.htf-parts a.htf-iv__card,
.htf-parts a.htf-iv__card:link,
.htf-parts a.htf-iv__card:visited {
  display: flex;
  flex-direction: column;
  height: 100%;
  border: 1px solid var(--htf-line);
  border-radius: 12px;
  background: #fff;
  overflow: hidden;
  color: inherit;
  text-decoration: none;
  box-shadow: 0 3px 10px rgba(113, 98, 64, .12);
  transition: transform .2s, box-shadow .2s;
}
.htf-parts a.htf-iv__card:hover { transform: translateY(-3px); box-shadow: 0 6px 16px rgba(113, 98, 64, .2); }
.htf-iv__thumb { display: block; width: 100%; aspect-ratio: 3 / 2; object-fit: cover; }
.htf-iv__body { display: flex; flex-direction: column; flex-grow: 1; padding: 12px 14px 14px; }
.htf-iv__name { font-size: 13px; line-height: 1.4; color: var(--htf-brown); }
.htf-iv__catch {
  margin: 4px 0 12px;
  font-family: 游明朝, "Yu Mincho", YuMincho, "Hiragino Mincho ProN", serif;
  font-size: 19px;
  font-weight: bold;
  line-height: 1.5;
  color: #333;
}
.htf-iv__catch > span { display: inline-block; }
.htf-iv__more {
  margin-top: auto;
  align-self: flex-start;
  padding: 3px 14px;
  border-radius: 999px;
  background: var(--htf-orange);
  color: #fff;
  font-size: 12px;
  line-height: 1.7;
}
.htf-iv__more::after { content: " ›"; }

/* ---------- 卒業生インタビュー：本文 ---------- */
.htf-iv__article {
  margin: 36px 0 0;
  padding: 26px 26px 28px;
  border-radius: 14px;
  background: var(--htf-beige);
}
.htf-iv__article + .htf-iv__article { margin-top: 28px; }
.htf-ivm .htf-iv__label { margin: 0; font-size: 13px; color: var(--htf-brown); }
.htf-ivm .htf-iv__title {
  margin: 2px 0 20px;
  padding: 0 0 12px;
  border-bottom: 1px solid #d9c896;
  font-family: 游明朝, "Yu Mincho", YuMincho, "Hiragino Mincho ProN", serif;
  font-size: 23px;
  font-weight: bold;
  line-height: 1.5;
  color: #333;
}
.htf-ivm h3.htf-iv__q {
  display: flow-root;
  overflow: hidden;
  margin: 24px 0 8px;
  padding: 0 0 0 12px;
  border: 0;
  border-left: 4px solid var(--htf-orange);
  font-family: 游明朝, "Yu Mincho", YuMincho, "Hiragino Mincho ProN", serif;
  font-size: 17px;
  font-weight: bold;
  line-height: 1.6;
  color: #b56f00;
  text-shadow: none;
  background: none;
}
.htf-ivm h3.htf-iv__q:first-of-type { margin-top: 0; }
.htf-ivm .htf-iv__a { margin: 0; font-size: 14px; line-height: 1.95; color: #555; }
.htf-iv__img { width: 44%; border-radius: 10px; margin-top: 24px; }
.htf-iv__img--l { float: left; margin-right: 20px; margin-bottom: 10px; }
.htf-iv__img--r { float: right; margin-left: 20px; margin-bottom: 10px; }
.htf-clear { clear: both; }

/* ---------- 卒業生インタビュー：ポップアップ ----------
   htf-parts.js が開いたときに <body> の直下へ移動します。 */
.htf-ivm {
  position: fixed;
  inset: 0;
  z-index: 100000;
  display: none;
  align-items: center;
  justify-content: center;
  margin: 0;
  padding: 24px;
  background: rgba(40, 30, 10, .6);
}
.htf-ivm.is-open { display: flex; }
.htf-parts.htf-ivm { margin: 0; clear: none; }
.htf-ivm__box {
  position: relative;
  width: 100%;
  max-width: 760px;
  max-height: 100%;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior: contain;
  padding: 36px 40px 40px;
  border-radius: 14px;
  background: var(--htf-beige);
  text-align: left;
  box-shadow: 0 10px 40px rgba(0, 0, 0, .3);
}
.htf-ivm__close {
  position: sticky;
  top: 0;
  float: right;
  margin: -20px -24px 0 0;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: var(--htf-orange);
  font-size: 0;
  line-height: 0;
  cursor: pointer;
  z-index: 2;
  box-shadow: 0 0 0 4px var(--htf-beige);
  -webkit-appearance: none;
  appearance: none;
}
.htf-ivm__close::before,
.htf-ivm__close::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 20px;
  height: 2px;
  margin: -1px 0 0 -10px;
  border-radius: 2px;
  background: #fff;
  transform: rotate(45deg);
}
.htf-ivm__close::after { transform: rotate(-45deg); }
.htf-ivm__close:hover { background: var(--htf-orange-d); }
.htf-ivm .htf-ivm__panel { display: none; margin: 0; padding: 0; border-radius: 0; background: none; }
.htf-ivm .htf-ivm__panel.is-active { display: block; }
.htf-ivm p { margin: 0; padding: 0; }
.htf-ivm .htf-cta__text { margin: 0 0 14px; font-size: 15px; font-weight: bold; line-height: 1.7; color: #444; }
html.htf-ivm-lock,
html.htf-ivm-lock body { overflow: hidden; }

/* ---------- 比較表 ---------- */
.htf-cmp__badges {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0 0 16px !important;
}
.htf-cmp__badges li {
  padding: 2px 14px !important;
  border: 1px solid #d9c896;
  border-radius: 999px;
  background: var(--htf-beige);
  color: var(--htf-brown);
  font-size: 13px;
  line-height: 1.8;
}
.htf-cmp__wrap { overflow: hidden; border-radius: 12px; box-shadow: 0 3px 12px rgba(113, 98, 64, .14); }
.htf-cmp__table {
  width: 100%;
  margin: 0;
  border-collapse: collapse;
  border-spacing: 0;
  table-layout: fixed;
  background: #fff;
  font-size: 14px;
  line-height: 1.6;
}
.htf-cmp__table col.htf-cmp__c1 { width: 19%; }
.htf-cmp__table col.htf-cmp__c2 { width: 45%; }
.htf-cmp__table col.htf-cmp__c3 { width: 36%; }
.htf-cmp__table th,
.htf-cmp__table td {
  padding: 12px 12px;
  border: 0;
  border-bottom: 1px solid #efe6d2;
  vertical-align: middle;
  text-align: left;
}
.htf-cmp__table tbody tr:last-child th,
.htf-cmp__table tbody tr:last-child td { border-bottom: 0; }
.htf-cmp__table thead th {
  padding: 12px 8px;
  border-bottom: 0;
  text-align: center;
  font-size: 15px;
  font-weight: bold;
  line-height: 1.4;
}
.htf-cmp__table thead .htf-cmp__h1 { background: #f2ead7; color: var(--htf-brown); font-size: 13px; }
.htf-cmp__table thead .htf-cmp__h2 { background: var(--htf-orange); color: #fff; }
.htf-cmp__table thead .htf-cmp__h3 { background: #8c8c8c; color: #fff; }
.htf-cmp__table tbody th {
  background: #fbf6ea;
  color: var(--htf-brown);
  font-size: 13px;
  font-weight: bold;
  text-align: center;
}
.htf-cmp__table .htf-cmp__hf {
  background: #fff4e3;
  color: #333;
  font-weight: bold;
  border-left: 3px solid var(--htf-orange);
  border-right: 3px solid var(--htf-orange);
}
.htf-cmp__table tbody tr:last-child .htf-cmp__hf { border-bottom: 3px solid var(--htf-orange); }
.htf-cmp__table .htf-cmp__ot { background: #fafafa; color: #777; font-weight: normal; font-size: 13px; }
.htf-cmp__cell { display: flex; align-items: flex-start; gap: 6px; }
.htf-cmp__mark { flex-shrink: 0; font-size: 16px; line-height: 1.45; font-weight: bold; }
.htf-cmp__hf .htf-cmp__mark { color: var(--htf-orange); }
.htf-cmp__ot .htf-cmp__mark { color: #b5b5b5; }
.htf-cmp__em { color: #d46a00; }
.htf-cmp__notes { margin: 10px 0 0 !important; font-size: 12px; line-height: 1.7; color: #888; }

/* ---------- よくある質問 ---------- */
.htf-faq__item {
  margin: 0 0 10px;
  border: 1px solid var(--htf-line);
  border-radius: 10px;
  background: #fff;
  overflow: hidden;
}
.htf-faq__item[open] { box-shadow: 0 3px 12px rgba(113, 98, 64, .12); }
.htf-faq__q {
  position: relative;
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 14px 48px 14px 14px;
  cursor: pointer;
  list-style: none;
  font-size: 15px;
  font-weight: bold;
  line-height: 1.6;
  color: #444;
}
.htf-faq__q::-webkit-details-marker { display: none; }
.htf-faq__q::marker { content: ""; }
.htf-faq__q:hover { background: #fffaf0; }
.htf-faq__mark {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--htf-orange);
  color: #fff;
  font-family: Georgia, serif;
  font-size: 15px;
  font-weight: bold;
  line-height: 1;
}
.htf-faq__text { padding-top: 1px; }
.htf-faq__q::before,
.htf-faq__q::after {
  content: "";
  position: absolute;
  top: 50%;
  right: 18px;
  width: 14px;
  height: 2px;
  margin-top: -1px;
  border-radius: 2px;
  background: var(--htf-orange);
  transition: transform .25s;
}
.htf-faq__q::after { transform: rotate(90deg); }
.htf-faq__item[open] > .htf-faq__q::after { transform: rotate(0deg); }
.htf-faq__a {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin: 0 14px;
  padding: 12px 0 16px;
  border-top: 1px dashed #e3d3a6;
}
.htf-faq__a .htf-faq__mark { background: var(--htf-teal); }
#main .htf-parts .htf-faq__a p { margin: 0; padding: 1px 0 0; font-size: 14px; line-height: 1.85; color: #555; }
#main .htf-parts .htf-faq__a p + p { margin-top: .6em; }
.htf-faq__item[open] .htf-faq__a { animation: htfFaqIn .25s ease; }
@keyframes htfFaqIn { from { opacity: 0; transform: translateY(-4px); } to { opacity: 1; transform: none; } }
.htf-faq__more { margin: 14px 0 0; text-align: right; font-size: 14px; }

/* ---------- YouTubeショート（[htf_shorts] ショートコード） ----------
   PC：4本表示＋残りは横スクロール／SP：1本の幅42%で横スクロール */
.htf-shorts__list {
  display: flex;
  gap: 14px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  padding-bottom: 10px;
  scrollbar-width: thin;
  scrollbar-color: #e0c99a transparent;
}
.htf-shorts__list::-webkit-scrollbar { height: 6px; }
.htf-shorts__list::-webkit-scrollbar-thumb { background: #e0c99a; border-radius: 3px; }
.htf-shorts__item {
  flex: 0 0 calc((100% - 42px) / 4);
  min-width: 0;
  scroll-snap-align: start;
}
.htf-parts .htf-shorts__thumb {
  position: relative;
  display: block;
  width: 100%;
  aspect-ratio: 9 / 16;
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: 12px;
  overflow: hidden;
  background: #000;
  cursor: pointer;
  -webkit-appearance: none;
  appearance: none;
}
.htf-parts .htf-shorts__thumb img {
  display: block;
  width: 100%;
  max-width: none;
  height: 100%;
  object-fit: cover;
  transition: transform .3s;
}
.htf-parts .htf-shorts__thumb:hover img { transform: scale(1.04); }
.htf-parts .htf-shorts__thumb::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 52px;
  height: 52px;
  margin: -26px 0 0 -26px;
  border-radius: 50%;
  background: rgba(0, 0, 0, .6) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='%23fff' d='M8 5v14l11-7z'/%3E%3C/svg%3E") center / 26px no-repeat;
}
.htf-parts .htf-shorts__thumb:focus-visible { outline: 3px solid var(--htf-orange); outline-offset: 2px; }
#main .htf-parts .htf-shorts__title {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  margin: 6px 2px 0;
  padding: 0;
  font-size: 13px;
  line-height: 1.45;
  color: #555;
}
#main .htf-parts .htf-shorts__msg { margin: 0; padding: 0; font-size: 13px; color: #888; }

/* ショート動画のポップアップ（htf-parts.js が <body> の直下へ移動） */
.htf-ytm {
  position: fixed;
  inset: 0;
  z-index: 100000;
  display: none;
  align-items: center;
  justify-content: center;
  margin: 0;
  padding: 0;
  background: rgba(0, 0, 0, .85);
}
.htf-parts.htf-ytm { margin: 0; clear: none; }
.htf-ytm.is-open { display: flex; animation: htfYtIn .2s ease-out; }
@keyframes htfYtIn { from { opacity: 0; } to { opacity: 1; } }
.htf-ytm__inner { position: relative; width: 300px; height: 533px; }
.htf-ytm__player,
.htf-ytm__player iframe {
  display: block;
  width: 100%;
  height: 100%;
  border: 0;
  border-radius: 12px;
  background: #000;
}
.htf-ytm__close {
  position: absolute;
  top: -48px;
  right: 0;
  width: 40px;
  height: 40px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, .18);
  font-size: 0;
  line-height: 0;
  cursor: pointer;
  -webkit-appearance: none;
  appearance: none;
}
.htf-ytm__close::before,
.htf-ytm__close::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 18px;
  height: 2px;
  margin: -1px 0 0 -9px;
  border-radius: 2px;
  background: #fff;
  transform: rotate(45deg);
}
.htf-ytm__close::after { transform: rotate(-45deg); }
.htf-ytm__close:hover { background: rgba(255, 255, 255, .3); }
.htf-ytm__close:focus-visible { outline: 3px solid #fff; outline-offset: 2px; }

/* ---------- SP（style_s.css と同じ 480px 以下 / body zoom 1.205） ---------- */
@media only screen and (max-width: 480px) {
  .htf-parts { margin: 8px 10px 24px; }
  .htf-parts .htf-lead { font-size: 12px; }
  .htf-cta { margin-top: 20px; padding: 16px 10px 18px; }
  #main .htf-parts .htf-cta__text { font-size: 12.5px; margin-bottom: 10px; }
  .htf-parts a.htf-btn, .htf-parts a.htf-btn:link, .htf-parts a.htf-btn:visited { min-width: 0; width: 100%; padding: 11px 10px; font-size: 13.5px; }

  .htf-iv__list { gap: 8px; }
  .htf-iv__body { padding: 8px 8px 10px; }
  .htf-iv__name { font-size: 10.5px; }
  .htf-iv__catch { font-size: 13px; margin: 2px 0 8px; line-height: 1.45; }
  .htf-iv__more { font-size: 10px; padding: 2px 9px; }
  .htf-iv__article { margin-top: 24px; padding: 16px 12px 18px; border-radius: 10px; }
  .htf-ivm .htf-iv__label { font-size: 11px; }
  .htf-ivm .htf-iv__title { font-size: 17px; margin-bottom: 14px; padding-bottom: 8px; }
  .htf-ivm h3.htf-iv__q { font-size: 13.5px; margin: 18px 0 6px; padding-left: 8px; border-left-width: 3px; }
  .htf-ivm .htf-iv__a { font-size: 12px; line-height: 1.85; }
  .htf-iv__img { width: 48%; margin-top: 16px; border-radius: 8px; }
  .htf-iv__img--l { margin-right: 10px; margin-bottom: 4px; }
  .htf-iv__img--r { margin-left: 10px; margin-bottom: 4px; }
  .htf-ivm { padding: 10px; }
  .htf-ivm__box { padding: 24px 14px 24px; border-radius: 12px; }
  .htf-ivm__close { margin: -14px -6px 0 0; width: 36px; height: 36px; }
  .htf-ivm__close::before, .htf-ivm__close::after { width: 16px; margin-left: -8px; }
  .htf-ivm .htf-cta__text { font-size: 12.5px; margin-bottom: 10px; }

  .htf-cmp__badges { gap: 5px; margin-bottom: 10px !important; }
  .htf-cmp__badges li { padding: 1px 8px !important; font-size: 10.5px; }
  .htf-cmp__wrap { border-radius: 8px; }
  .htf-cmp__table { font-size: 11px; line-height: 1.5; }
  .htf-cmp__table col.htf-cmp__c1 { width: 21%; }
  .htf-cmp__table col.htf-cmp__c2 { width: 44%; }
  .htf-cmp__table col.htf-cmp__c3 { width: 35%; }
  .htf-cmp__table th, .htf-cmp__table td { padding: 8px 4px; }
  .htf-cmp__table thead th { padding: 8px 3px; font-size: 11px; }
  .htf-cmp__table thead .htf-cmp__h1 { font-size: 9.5px; }
  .htf-cmp__table tbody th { font-size: 10px; line-height: 1.35; }
  .htf-cmp__table .htf-cmp__ot { font-size: 10px; }
  .htf-cmp__table .htf-cmp__hf { border-left-width: 2px; border-right-width: 2px; }
  .htf-cmp__table tbody tr:last-child .htf-cmp__hf { border-bottom-width: 2px; }
  .htf-cmp__cell { gap: 3px; }
  .htf-cmp__mark { font-size: 11.5px; line-height: 1.5; }
  .htf-cmp__notes { font-size: 9.5px; }

  .htf-faq__q { gap: 8px; padding: 10px 36px 10px 10px; font-size: 12.5px; line-height: 1.55; }
  .htf-faq__q::before, .htf-faq__q::after { right: 12px; width: 11px; }
  .htf-faq__mark { width: 22px; height: 22px; font-size: 12px; }
  .htf-faq__a { gap: 8px; margin: 0 10px; padding: 10px 0 12px; }
  #main .htf-parts .htf-faq__a p { font-size: 12px; line-height: 1.8; }
  .htf-faq__more { font-size: 12px; }

  .htf-shorts__list { gap: 10px; }
  .htf-shorts__item { flex-basis: 42%; }
  .htf-parts .htf-shorts__thumb { border-radius: 10px; }
  .htf-parts .htf-shorts__thumb::after { width: 40px; height: 40px; margin: -20px 0 0 -20px; background-size: 20px; }
  #main .htf-parts .htf-shorts__title { font-size: 11px; }
  #main .htf-parts .htf-shorts__msg { font-size: 11px; }
}

/* SPだけ改行 */
.htf-parts .htf-sp { display: none; }
@media only screen and (max-width: 480px) {
  .htf-parts .htf-sp { display: inline; }
}
