/* ============================================================
   共通ヘッダー（全ページ同じ見た目）
   トップ・職業訓練校を終えて・作品ページ・プライバシー・404 で共通。
   ロゴやメニューを変えるときは、各ページの <header class="pf-header"> と
   このファイルを直します。
   ============================================================ */
.pf-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 200;
  background: rgba(253, 252, 248, .88);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid #E8E5DE;
  font-family: 'Inter', 'Zen Maru Gothic', sans-serif;
  transition: transform .3s ease;
}
.pf-header__inner {
  box-sizing: border-box;
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  max-width: 1280px;
  height: 4rem;
  margin-inline: auto;
  padding-inline: clamp(1.5rem, 5vw, 3.5rem);
}

/* ロゴ */
.pf-header__logo { display: inline-flex; align-items: center; transition: opacity .35s; }
.pf-header__logo:hover { opacity: .7; }
.pf-header__logo img { display: block; width: auto; height: 2rem; }

/* メニュー（ホバーで下線がのびる） */
.pf-header__nav ul {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 2.5rem;
  margin: 0;
  padding: 0;
  list-style: none;
}
/* ページ側の箇条書きスタイル（「–」の飾りなど）を打ち消す */
.pf-header__nav li { position: static; padding: 0; font-size: 1rem; line-height: 1; }
.pf-header__nav li::before { content: none; }
.pf-header__nav a {
  position: relative;
  color: rgba(26, 26, 26, .62);
  font-size: .75rem;
  font-weight: 700;
  letter-spacing: .14em;
  line-height: 1.8;
  text-decoration: none;
  text-transform: uppercase;
  transition: color .35s cubic-bezier(.4, 0, .2, 1);
}
.pf-header__nav a::after {
  content: '';
  position: absolute;
  left: 0; bottom: -2px;
  width: 0; height: 1.5px;
  background: #1A1A1A;
  transition: width .35s cubic-bezier(.4, 0, .2, 1);
}
.pf-header__nav a:hover { color: #1A1A1A; }
.pf-header__nav a:hover::after { width: 100%; }
.pf-header__nav a:focus-visible { outline: 2px solid #1A1A1A; outline-offset: 3px; }

/* ハンバーガーボタン（スマホ幅だけ表示） */
.pf-header__toggle {
  display: none;
  position: relative;
  width: 44px; height: 44px;
  margin-right: -10px;
  padding: 0;
  border: 0;
  background: none;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}
.pf-header__toggle span {
  position: absolute;
  left: 12px; right: 12px;
  height: 2px;
  border-radius: 2px;
  background: #1A1A1A;
  transition: transform .3s ease, opacity .2s ease, top .3s ease;
}
.pf-header__toggle span:nth-child(1) { top: 15px; }
.pf-header__toggle span:nth-child(2) { top: 21px; }
.pf-header__toggle span:nth-child(3) { top: 27px; }
.pf-header__toggle[aria-expanded="true"] span:nth-child(1) { top: 21px; transform: rotate(45deg); }
.pf-header__toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.pf-header__toggle[aria-expanded="true"] span:nth-child(3) { top: 21px; transform: rotate(-45deg); }
.pf-header__toggle:focus-visible { outline: 2px solid #1A1A1A; outline-offset: 2px; border-radius: 8px; }

@media (max-width: 640px) {
  .pf-header__toggle { display: block; }
  /* メニューはヘッダーの下に開くパネル */
  .pf-header__nav {
    position: absolute;
    top: 100%; left: 0; right: 0;
    background: #FDFCF8;
    -webkit-backdrop-filter: blur(14px);
    backdrop-filter: blur(14px);
    border-bottom: 1px solid #E8E5DE;
    box-shadow: 0 16px 32px rgba(26, 26, 26, .06);
    visibility: hidden;
    opacity: 0;
    transform: translateY(-8px);
    transition: opacity .25s ease, transform .25s ease, visibility 0s linear .25s;
  }
  .pf-header.is-open .pf-header__nav {
    visibility: visible;
    opacity: 1;
    transform: none;
    transition: opacity .25s ease, transform .25s ease, visibility 0s;
  }
  .pf-header__nav ul {
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: .5rem clamp(1.5rem, 5vw, 3.5rem) 1.25rem;
  }
  .pf-header__nav li + li { border-top: 1px solid #EFECE6; }
  .pf-header__nav a {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem .25rem;
    font-size: .9rem;
    letter-spacing: .16em;
  }
  .pf-header__nav a::after {
    content: '→';
    position: static;
    width: auto; height: auto;
    background: none;
    color: rgba(26, 26, 26, .35);
    font-weight: 400;
    letter-spacing: 0;
    transition: transform .25s ease;
  }
  .pf-header__nav a:hover::after { width: auto; transform: translateX(3px); }
  .pf-header__nav a[aria-current="page"] { color: #1A1A1A; }
  .pf-header__nav a[aria-current="page"]::after { width: auto; color: #FFB5BA; }
  /* 開いている間はスクロールで隠れないように */
  .pf-header.is-open { transform: none !important; }
}

/* 今いるページのメニューに下線 */
.pf-header__nav a[aria-current="page"] { color: #1A1A1A; }
.pf-header__nav a[aria-current="page"]::after { width: 100%; }
