/*
  研修ページ 本体サイト寄せ(2026-11-20 見本)
  - 元のCSS(/makeup-training/_astro/index.uvpdyFtW.css)は一切変更せず、この後読みのファイルで上書きする。
  - 値の出典: isseiinc.jp の common.css(?ver=1639067276)と、本体のヘッダー・フッターのHTML(00_下準備の報告.md 3章)。
  - 「読み込み完了まで隠す」作り(html{visibility:hidden})は入れない。JSが止まっても本文は見える。
*/

/* 1. 色と書体の置き換え(元のCSSの変数を上書きする) */
:root {
  --paper: #ffffff;            /* 背景 白 */
  --blush: #f8f8f8;            /* 面の背景 薄グレー(本体 .l-spacer.-light-gray) */
  --peach: #eeeeee;            /* 押した瞬間の背景 */
  --rose-accent: #740b38;      /* 差し色 isseiワイン */
  --ink: #333333;              /* 本文の色(本体 body) */
  --cacao: #333333;            /* 補助の文字・濃い面(本体フッター #333) */
  --disabled-on-dark: #999999;
  --issei-wine: #740b38;
  --issei-border: #707070;     /* 本体 .c-button の枠の色 */
  --issei-footer-text: #bbbbbb;
  /* 本体 common.css と同じ並び。筑紫A丸が読めない時は Yu Gothic 等で表示される */
  --font-ja: fot-tsukuardgothic-std, "Yu Gothic", yugothic, "Hiragino Kaku Gothic ProN", "ヒラギノ角ゴ ProN W3", meiryo, メイリオ, sans-serif;
  --font-latin: var(--font-ja);
  --radius: 0;
}

html { scroll-padding-top: 72px; }

/* 2. 見出しは本体と同じ #333(変数 --ink のまま)。ワインは差し色だけに使う:
      ボタンとリンクの hover・小見出しの前の線(.kicker::before ほか --rose-accent)・番号・
      メニューの現在地・よくあるご質問の開閉の印・ページ先頭ボタン(本体でワインを使っている箇所に合わせた) */
.faq__q::before,
.faq__q::after { background: var(--issei-wine); }

/* 3. ボタン(角丸なし・枠線1px・hover でワイン塗り) */
.btn { border-radius: 0; border-width: 1px; }
.btn.btn--primary {
  background: #333333;
  border-color: #333333;
  color: #ffffff;
}
.btn.btn--secondary,
.hero__cta .btn.btn--secondary {
  background: #ffffff;
  border-color: var(--issei-border);
  color: #333333;
}
.contact .btn.contact__cta {
  background: #ffffff;
  border-color: #ffffff;
  color: #333333;
}
.btn.btn--primary:hover,
.btn.btn--primary:active,
.btn.btn--secondary:hover,
.btn.btn--secondary:active,
.hero__cta .btn.btn--secondary:hover,
.hero__cta .btn.btn--secondary:active,
.contact .btn.contact__cta:hover,
.contact .btn.contact__cta:active {
  background: var(--issei-wine);
  border-color: var(--issei-wine);
  color: #ffffff;
}

/* 4. 本体と同じヘッダー(白地・ロゴ・メニュー。1280px未満はメニューボタン) */
.issei-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: #ffffff;
  border-bottom: 1px solid #e5e5e5;
}
.issei-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  max-width: var(--page-max);   /* 本文の枠(.wrap)と左端をそろえる */
  min-height: 64px;
  margin-inline: auto;
  padding: 8px var(--gutter);
}
.issei-header__logo { margin: 0; max-width: none; line-height: 1; }
.issei-header__logo a {
  display: inline-flex;
  align-items: center;
  min-width: 44px;
  min-height: 48px;
}
.issei-header__logo img { display: block; width: auto; height: 26px; }
.issei-header__navi { display: none; }
.issei-header__navi ul {
  display: flex;
  align-items: center;
  gap: 24px;
}
.issei-header__navi a { justify-content: center; }
.issei-header__navi a,
.issei-drawer__panel a {
  display: flex;
  align-items: center;
  min-width: 44px;
  min-height: 48px;
  color: #333333;
  font-size: 16px;
  font-weight: 500;
  line-height: 1.5;
  text-decoration: none;
  transition: color var(--motion-ui) ease;
}
.issei-header__navi a:hover,
.issei-drawer__panel a:hover,
.issei-header__navi a[aria-current="page"],
.issei-drawer__panel a[aria-current="page"] { color: var(--issei-wine); }

/* メニューボタン(JSを使わない details 方式) */
.issei-drawer__button {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  margin-right: -12px;
  cursor: pointer;
  list-style: none;
}
.issei-drawer__button::-webkit-details-marker { display: none; }
.issei-drawer__icon,
.issei-drawer__icon::before,
.issei-drawer__icon::after {
  display: block;
  width: 24px;
  height: 2px;
  background: #333333;
  transition: transform var(--motion-ui) ease, background-color var(--motion-ui) ease;
}
.issei-drawer__icon { position: relative; }
.issei-drawer__icon::before,
.issei-drawer__icon::after { content: ""; position: absolute; left: 0; }
.issei-drawer__icon::before { top: -8px; }
.issei-drawer__icon::after { top: 8px; }
.issei-drawer[open] .issei-drawer__icon { background: transparent; }
.issei-drawer[open] .issei-drawer__icon::before { transform: translateY(8px) rotate(45deg); }
.issei-drawer[open] .issei-drawer__icon::after { transform: translateY(-8px) rotate(-45deg); }
.issei-drawer__panel {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  max-height: calc(100vh - 64px);
  overflow-y: auto;
  padding: 8px var(--gutter) 24px;
  background: #ffffff;
  border-bottom: 1px solid #e5e5e5;
}
.issei-drawer__panel li { border-bottom: 1px solid #eeeeee; }

@media (width >= 768px) {
  .issei-header__logo img { height: 36px; }
}
@media (width >= 1280px) {
  .issei-header__logo img { height: 40px; }
  .issei-header__navi { display: block; }
  .issei-drawer { display: none; }
}

/* 5. ページ内のメニュー(元のヘッダーの項目と相談ボタンを、本体ヘッダーの下に残す) */
.page-nav.site-header { background: var(--blush); }
.page-nav .site-header__inner { min-height: 56px; }
.page-nav .site-header__nav { display: block; margin-left: 0; }
.page-nav .site-header__navlist {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0 4px;
}
.page-nav .site-header__navlink {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 44px;
  min-height: 44px;
  font-size: 16px;
  line-height: 1.5;
  text-decoration: none;
  text-underline-offset: .36em;
}
.page-nav .site-header__navlink:hover { color: var(--issei-wine); text-decoration: underline 1px; }
.page-nav .site-header__cta { display: none; }
@media (width >= 768px) {
  .page-nav .site-header__navlist { gap: 0 16px; }
  .page-nav .site-header__cta { display: inline-flex; }
  .page-nav .site-header__cta:hover { color: var(--issei-wine); }
}

/* 6. 講師(7名・同格。写真+名前+紹介文) */
.instructors__list .instructors__card:first-child { grid-column: auto; }
.instructors__profile {
  display: flex;
  align-items: center;
  gap: 16px;
}
.instructors__photo {
  flex: none;
  width: 120px;
  height: 120px;
  object-fit: cover;
  background: var(--blush);
}
.instructors__card .instructors__bio { margin-top: 16px; }
@media (width >= 768px) {
  .instructors__photo { width: 144px; height: 144px; }
}

/* 7. 運営会社(元のフッター)+ 会社概要へのリンク */
.company__more { margin-top: 24px; }

/* 8. 本体と同じフッター(#333 の濃いグレー・#bbb の文字) */
.issei-footer {
  background: #333333;
  color: var(--issei-footer-text);
  padding-block: 48px 32px;
}
.issei-footer__inner {
  display: grid;
  gap: 32px;
  max-width: var(--page-max);   /* 本文の枠(.wrap)と左端をそろえる */
  margin-inline: auto;
  padding-inline: var(--gutter);
}
.issei-footer p { max-width: none; }
.issei-footer__logo { margin: 0; line-height: 1; }
.issei-footer__logo a { display: inline-flex; align-items: center; min-height: 48px; }
.issei-footer__logo img { display: block; width: auto; height: 32px; }
.issei-footer__navi {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0 24px;
}
.issei-footer a {
  color: var(--issei-footer-text);
  text-decoration: none;
  transition: color var(--motion-ui) ease;
}
.issei-footer a:hover { color: #ffffff; }
.issei-footer__menu a,
.issei-footer__social a {
  display: inline-flex;
  align-items: center;
  min-width: 44px;
  min-height: 44px;
  font-size: 16px;
  line-height: 1.5;
}
.issei-footer__social { display: flex; flex-wrap: wrap; gap: 0 24px; }
.issei-footer__bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding-top: 24px;
  border-top: 1px solid #555555;
}
.issei-footer__copyright { margin: 0; }
.issei-footer__copyright small { font-size: 14px; letter-spacing: .04em; }
.issei-pagetop {
  position: relative;
  display: inline-flex;
  flex: none;
  width: 48px;
  height: 48px;
  background: var(--issei-wine);
}
.issei-pagetop::before {
  content: "";
  position: absolute;
  top: 21px;
  left: 18px;
  width: 12px;
  height: 12px;
  border-top: 2px solid #ffffff;
  border-left: 2px solid #ffffff;
  transform: rotate(45deg);
}
.issei-pagetop:hover { background: #5a082b; }
.issei-footer :focus-visible { outline-color: #ffffff; }
@media (width >= 768px) {
  .issei-footer { padding-block: 64px 32px; }
  .issei-footer__inner { grid-template-columns: 5fr 7fr; column-gap: 48px; }
  .issei-footer__logo img { height: 40px; }
  .issei-footer__nav-wrap { display: grid; grid-template-columns: 2fr 1fr; gap: 24px; }
  .issei-footer__social { flex-direction: column; align-items: flex-end; gap: 0; }
  .issei-footer__bottom { grid-column: 1 / -1; }
}

/* 9. 本番版(v2・2026-11-20)品質管理係の検収(76点)の指摘への対応 */
/* 9-1. スマホ: 本体ヘッダーの中に相談ボタン。ページ内メニューの帯は768px以上だけ(最初の画面の高さを原本に近づける) */
.issei-header__cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  margin-left: auto;
  padding: 0 14px;
  border: 1px solid #333333;
  background: #333333;
  color: #ffffff;
  font-size: 14px;
  line-height: 1.5;
  text-decoration: none;
  white-space: nowrap;
  transition: background-color var(--motion-ui) ease, border-color var(--motion-ui) ease;
}
.issei-header__cta:hover,
.issei-header__cta:active { background: var(--issei-wine); border-color: var(--issei-wine); color: #ffffff; }
.page-nav.site-header { display: none; }
@media (width >= 768px) {
  .issei-header__cta { display: none; }
  .page-nav.site-header { display: block; }
}
/* 9-2. 1280px以上: 本体と同じ寸法(高さ100px・ロゴ40px・メニューは左右32pxの余白・最後の項目は右の余白なし) */
@media (width >= 1280px) {
  html { scroll-padding-top: 108px; }
  .issei-header__inner { min-height: 100px; padding-block: 0; }
  .issei-header__navi ul { gap: 0; }
  .issei-header__navi a { min-height: 62px; padding: 0 32px; }
  .issei-header__navi li:last-child a { padding-right: 0; }
}
/* 9-3. 料金の決め方 */
.price__body p { max-width: 40em; }
.price__text + .price__text { margin-top: 12px; }
.price__doc { margin-top: 32px; }
.price__note { margin-top: 12px; color: #555555; }
/* 9-4. 相談の区画の研修の案内(PDF)への入口(濃い面) */
.contact__doc { margin-top: 16px; }
.contact__doc a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  color: #ffffff;
  text-decoration: underline 1px;
  text-underline-offset: .3em;
}
.contact__doc a:hover { text-decoration-thickness: 2px; }
