@charset "UTF-8";

/* ==========================================================
   page（ページ全体の枠・背景）
   トップページは自由配置のため、各セクションの __inner を
   幅1200pxで中央に置き、その中で Figma の座標どおりに配置する（背景・写真など横いっぱいの部分は除く）
   ========================================================== */
.l-page {
  position: relative;
  overflow-x: clip; /* hidden だと sticky が効かなくなるため clip を使う */
}

.l-page-bg__gradient {
  position: absolute;
  top: 538px;
  left: 0;
  right: 0;
  height: 2558px;
  background: var(--gradient-main-bg);
}

/* 葉の影の写真。Figma の「スクロール時に固定」を sticky で再現 */
.l-page-bg__photo {
  position: absolute;
  top: 537px;
  bottom: 0;
  left: 0;
  right: 0; /* 写真の左右に反転した写真を並べるため、横いっぱいの範囲にする（マスクの外は描かれないため） */
}

.l-page-bg__photo-sticky {
  position: sticky;
  top: 0;
  height: 745px;
  opacity: 0.7;
  mix-blend-mode: luminosity;
  mask-image: linear-gradient(to bottom, #000 60%, transparent); /* 写真の下の端で背景にぱつっと切り替わらないよう、ぼかして消す */
}

.l-page-bg__photo-sticky img {
  display: block;
  width: 1588px; /* 画面が広くても拡大しない */
  height: 100%;
  max-width: none;
  margin-left: calc(50% - 845px); /* 写真は横いっぱいに敷くため縮めない */
  object-fit: cover;
  mask-image: linear-gradient(to right, transparent, #000 400px, #000 calc(100% - 400px), transparent); /* 左右の写真と重なる 400px は、ぼかして左右の写真に切り替える（端がくっきり見えないようにする） */
}

/* 写真の左右に同じ写真を並べ、真ん中の写真と 400px 重ねて、ぼかしながら切り替える
   （反転してつなぐと模様が鏡写しになって不自然なため、重ねてなじませる）
   画面が写真（1588px）より広くても、真ん中だけでなく横いっぱいに木漏れ日が出る */
.l-page-bg__photo-sticky::before,
.l-page-bg__photo-sticky::after {
  position: absolute;
  top: 0;
  z-index: 1; /* 真ん中の写真の上に重ねる（::before は写真より先に描かれるため） */
  width: 1588px;
  height: 100%;
  background: url("../img/common_bg-photo.png") center / cover no-repeat;
  content: "";
}

.l-page-bg__photo-sticky::before {
  left: calc(50% - 845px - 1588px + 400px);
  mask-image: linear-gradient(to right, #000 calc(100% - 400px), transparent);
}

.l-page-bg__photo-sticky::after {
  left: calc(50% - 845px + 1588px - 400px);
  mask-image: linear-gradient(to left, #000 calc(100% - 400px), transparent);
}

/* ==========================================================
   section（セクション同士の間の余白）
   余白は上方向だけに付ける。値は theme.css の --space-section-* で画面幅ごとに切り替わる
   ========================================================== */
.l-section {
  margin-top: var(--space-section);
}

/* 共通ブロック（インタビュー・応募フォーム）の前など、間を広く取るセクション */
.l-section--large {
  margin-top: var(--space-section-large);
}

/* 下層ページの最初のセクション。固定ヘッダーに隠れないよう下げる */
.l-section--first {
  margin-top: var(--space-page-top);
}

/* 背景色・背景画像があるセクション：内側の余白は padding で取る */
.l-section--bg {
  padding-top: var(--space-section-bg);
  padding-bottom: var(--space-section-bg);
}

/* 下層ページの最初のセクションで、背景をページの一番上から敷くとき（l-section--bg と併記）
   上に白い隙間を作らないよう margin をなくし、固定ヘッダーの分は内側の余白で下げる */
.l-section--first-bg {
  margin-top: 0px;
  padding-top: var(--space-page-top);
}

/* 背景があるセクションが続くときは、間に白い隙間ができないよう margin をなくす */
.l-section--bg + .l-section--bg {
  margin-top: 0;
}

/* ==========================================================
   inner（中身の幅）
   中身は最大1000px（ヘッダーと同じ幅）で中央に置く。左右の余白は theme.css の --space-inner-side
   ========================================================== */
.l-inner {
  max-width: calc(1000px + var(--space-inner-side) * 2); /* 余白を足しても中身が1000pxになるようにする */
  margin-left: auto;
  margin-right: auto;
  padding-left: var(--space-inner-side);
  padding-right: var(--space-inner-side);
}

/* ==========================================================
   header
   ========================================================== */
/* スクロールしても常に画面の上に固定する（全画面幅共通） */
.l-header {
  position: fixed;
  top: 25px;
  left: 50%;
  z-index: 10;
  display: flex;
  align-items: flex-start; /* 子ページを開いて高さが伸びても、ロゴとメニューは上の行に置いたままにする */
  justify-content: space-between;
  width: calc(100% - 40px); /* 画面が狭いときは左右20pxずつ空ける */
  max-width: 1000px;
  height: 73px;
  overflow: hidden; /* 伸びている途中は、子ページのリストがヘッダーの外にはみ出して見えないようにする */
  padding: 9px 31px;
  background: var(--color-bg-white-alpha-90);
  border-radius: 27px;
  box-shadow: var(--shadow-header);
  font-family: var(--font-family-en);
  line-height: var(--line-height-base);
  transform: translateX(-50%);
  transition: height 0.5s, background-color 0.5s; /* 子ページを開いたときに、ヘッダーの下が伸びるようにする。ゆっくり伸ばすため 0.5s */
  view-transition-name: header; /* ページを切り替えても、ふわっと入れ替えずにその場に残す（page-transition） */
}

.l-header__logo {
  display: flex;
  align-items: center;
  height: 55px; /* 閉じているときのヘッダーの中の高さ（73px − 上下の padding） */
  margin: 0;
  color: var(--color-text);
  font-size: var(--font-size-16);
  font-weight: var(--font-weight-bold);
}

/* Mogic のロゴ画像と「採用サイト」の文字を横に並べる */
.l-header__logo-img {
  width: auto;
  height: 36px;
  margin-top: -13px; /* 画像で行が上に伸びないようにする（行の高さを文字だけで決め、文字の真ん中をメニューの文字とそろえるため） */
  margin-right: 6px;
  vertical-align: -6px; /* 画像の中の「Mogic」のベースラインは上から 82% の所にあるため、その下の余白（36px の 18%）だけ下げて、文字のベースラインとそろえる */
}

/* SP だけで表示する */
.l-header__menu-btn {
  display: none;
}

.l-header__nav {
  display: flex;
  align-items: center;
  height: 55px; /* ロゴと同じ行の高さ。子ページのリストまでホバーが途切れないよう、メニューはこの高さいっぱいにする */
  gap: 28px;
}

.l-header__list {
  display: flex;
  align-self: stretch;
  gap: 28px;
}

.l-header__item {
  position: relative;
  display: flex;
  align-items: center;
}

.l-header__link {
  position: relative;
  padding: 0;
  background: none;
  border: 0;
  color: var(--color-link);
  font-family: inherit;
  font-size: var(--font-size-14);
  font-weight: var(--font-weight-regular);
  line-height: inherit;
  transition: opacity 0.3s;
}

/* 子ページがあるメニュー（l-header__link--parent）は、押すと代表の子ページへ行くリンク。カーソルを乗せると子ページを開く */

/* 開いているときに出る下線 */
.l-header__link--parent::after {
  content: "";
  position: absolute;
  top: 100%;
  left: -3px;
  right: -3px;
  height: 6px;
  background: var(--color-header-nav-line);
  opacity: 0;
  transition: opacity 0.3s;
}

/* 今いるページのメニューには、開いているときと同じ下線をずっと出す（今いるページのリンクに aria-current を付ける。子ページなら親の項目に下線） */
.l-header__item:has([aria-current]) > .l-header__link::after {
  opacity: 1;
}

/* 子ページのリストを開いたとき、今いるページの文字を太くし、親の項目と同じ水色の帯を文字の下半分に敷く（太字だけでは分かりにくいため） */
.l-header__child-link[aria-current] {
  background: linear-gradient(transparent 60%, var(--color-header-nav-line) 60%);
  font-weight: var(--font-weight-bold);
}

/* 子ページのリスト。上の padding はホバーを途切れさせないための余白も兼ねる */
.l-header__child-list {
  position: absolute;
  top: 100%;
  left: 0;
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding-top: 9px;
  white-space: nowrap;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-4px); /* 開くときに少し下へ動かし、ヘッダーが伸びるのに合わせる */
  transition: opacity 0.5s, visibility 0.5s, transform 0.5s; /* ヘッダーが伸びる時間に合わせる */
}

.l-header__child-link {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  color: var(--color-link);
  font-size: var(--font-size-14);
  font-weight: var(--font-weight-regular);
  transition: opacity 0.3s;
}

/* 外部サイトに飛ぶ印（採用情報の雇用形態の入口と同じアイコン）。文字の大きさに合わせる */
.l-header__external {
  flex-shrink: 0;
  width: 1em;
  height: 1em;
}

/* 人を知る・よくある質問：子ページの代わりに、写真と紹介文の案内を開く（案内ごとそのページへのリンク） */
.l-header__link--feature::after {
  content: "";
  position: absolute;
  top: 100%;
  left: -3px;
  right: -3px;
  height: 6px;
  background: var(--color-header-nav-line);
  opacity: 0;
  transition: opacity 0.3s;
}

/* 項目の真下に、真ん中をそろえて開く。上の padding は、メニューから案内までホバーを途切れさせないための余白も兼ねる */
.l-header__feature {
  position: absolute;
  top: 100%;
  left: 50%;
  display: flex;
  align-items: center;
  gap: 16px;
  width: 400px;
  padding: 17px 20px 8px;
  color: var(--color-link);
  opacity: 0;
  visibility: hidden;
  transform: translateX(-50%); /* 真ん中をそろえる */
  transition: opacity 0.5s, visibility 0.5s; /* 位置は動かさず、ふわっと出すだけにする。時間はヘッダーが伸びる時間に合わせる */
}

.l-header__feature-photo {
  flex-shrink: 0;
  transition: opacity 0.3s;
  width: 150px;
  aspect-ratio: 566 / 350;
  overflow: hidden;
  border-radius: 17px 33px 17px 33px;
}

.l-header__feature-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.l-header__feature-body {
  display: flex;
  transition: opacity 0.3s;
  flex-direction: column;
  gap: 4px;
  font-family: var(--font-family-base); /* 案内の文は日本語の文章のため、本文と同じ書体にする */
}

.l-header__feature-title {
  font-size: var(--font-size-16);
  font-weight: var(--font-weight-bold);
}

.l-header__feature-text {
  font-size: var(--font-size-12);
  line-height: var(--line-height-base);
}

/* 折り返す位置を決めたい所は区切りごとに囲む */
.l-header__feature-line {
  display: inline-block;
}

.l-header__feature-more {
  margin-top: 4px;
  font-size: var(--font-size-12);
  font-weight: var(--font-weight-bold);
  text-decoration: underline;
  text-underline-position: from-font;
}

.l-header__feature-more::after {
  content: " →";
}

/* キーボード操作（Tab）で開いたとき */
.l-header__item--has-child:focus-within .l-header__link--parent::after,
.l-header__item--has-child:focus-within .l-header__child-list {
  opacity: 1;
  visibility: visible;
}

.l-header__item--has-child:focus-within .l-header__child-list {
  transform: none;
}

.l-header__item--feature:focus-within .l-header__link--feature::after,
.l-header__item--feature:focus-within .l-header__feature {
  opacity: 1;
  visibility: visible;
}

/* 案内が入る高さまで伸ばす */
.l-header:has(.l-header__item--feature:focus-within) {
  height: 202px;
  background: var(--color-white);
}

/* ヘッダーそのものを下に伸ばし、子ページのリストが入る高さにする */
.l-header:has(.l-header__item--has-child:focus-within) {
  height: 173px;
  background: var(--color-white); /* 後ろのページの文字が透けて子ページのリンクと重ならないよう、不透明にする */
}

/* 子ページが3つのメニューは、1行分（文字の高さ ＋ 間 14px）高く伸ばす */
.l-header:has(.l-header__item--child-03:focus-within) {
  height: 205px;
}

.l-header__entry {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 7px 17px; /* Figma（上下3px）より高くし、押しやすくする */
  background: var(--gradient-blue-cream);
  border: 1px solid var(--color-btn-border);
  border-radius: 37px;
  color: var(--color-link);
  font-size: var(--font-size-14);
  font-weight: var(--font-weight-regular);
  transition: opacity 0.3s;
}

.l-header__entry-icon {
  width: 12px;
  height: 12px;
}

@media (hover: hover) {
  .l-header__logo a:hover,
  a.l-header__link:hover,
  .l-header__child-link:hover,
  .l-header__entry:hover {
    opacity: 0.7;
  }

  /* 子ページがあるメニューにホバーしたら開く */
  .l-header__item--has-child:hover .l-header__link--parent::after,
  .l-header__item--has-child:hover .l-header__child-list {
    opacity: 1;
    visibility: visible;
  }

  .l-header__item--has-child:hover .l-header__child-list {
    transform: none;
  }

  .l-header:has(.l-header__item--has-child:hover) {
    height: 173px;
    background: var(--color-white);
  }

  .l-header:has(.l-header__item--child-03:hover) {
    height: 205px;
  }

  /* 人を知る・よくある質問にホバーしたら、写真と紹介文の案内を開く */
  .l-header__feature:hover .l-header__feature-photo,
  .l-header__feature:hover .l-header__feature-body {
    opacity: 0.7;
  }

  .l-header__item--feature:hover .l-header__link--feature::after,
  .l-header__item--feature:hover .l-header__feature {
    opacity: 1;
    visibility: visible;
  }

  .l-header:has(.l-header__item--feature:hover) {
    height: 202px;
    background: var(--color-white);
  }

  /* クリックなどでフォーカスが残って開いているメニューがあっても、ほかのメニューにホバーしたら、ホバーしている方だけを開く（2つ開いて文字が重ならないようにする） */
  .l-header__list:has(.l-header__item:hover) .l-header__item:not(:hover):not(:has([aria-current])) .l-header__link--parent::after,
  .l-header__list:has(.l-header__item:hover) .l-header__item:not(:hover) .l-header__child-list,
  .l-header__list:has(.l-header__item:hover) .l-header__item:not(:hover):not(:has([aria-current])) .l-header__link--feature::after,
  .l-header__list:has(.l-header__item:hover) .l-header__item:not(:hover) .l-header__feature {
    opacity: 0;
    visibility: hidden;
  }
}

/* ==========================================================
   footer
   ========================================================== */
.l-footer {
  position: relative;
  z-index: 1;
  background: var(--color-bg-footer);
  color: var(--color-white);
  line-height: var(--line-height-base);
}

/* ロゴの下に SNS を並べる */
.l-footer__sns {
  display: flex;
  gap: 24px;
  margin-top: 24px;
}

.l-footer__sns-link {
  display: block;
  transition: opacity 0.3s;
}

.l-footer__sns-icon {
  width: 21px;
  height: 21px;
}

/* 真ん中：ロゴとサイトのリンク（グロナビと同じまとまりで列に並べる） */
.l-footer__main {
  display: flex;
  gap: 48px;
  padding-top: 56px;
  padding-bottom: 56px;
}

.l-footer__brand {
  flex-shrink: 0;
}

.l-footer__logo {
  margin: 0;
  font-size: var(--font-size-20);
  font-weight: var(--font-weight-bold);
  white-space: nowrap; /* ロゴ画像と「採用サイト」の間で折り返さない */
}

/* ヘッダーのロゴと同じ比率で、文字の大きさに合わせて伸び縮みさせる（PC 20px・SP 16px） */
.l-footer__logo-img {
  width: auto;
  height: 2.25em; /* 文字 16px のときヘッダーと同じ 36px */
  margin-right: 0.375em;
  vertical-align: -0.4em; /* 画像の中の「Mogic」のベースライン（上から 82%）を文字のベースラインにそろえる（高さの 18%） */
  filter: brightness(0) invert(1); /* 青緑の背景に白い文字でそろえるため、ロゴを白1色にする（葉っぱの色も白になる） */
}

.l-footer__logo a {
  transition: opacity 0.3s;
}

.l-footer__nav {
  display: grid;
  flex: 1;
  grid-template-columns: repeat(3, 1fr); /* 6つのまとまりを3つずつ2段に並べる */
  gap: 32px 40px;
}

.l-footer__nav-title {
  margin: 0;
  padding-bottom: 6px;
  border-bottom: 1px solid var(--color-footer-line);
  font-size: var(--font-size-16);
  font-weight: var(--font-weight-bold);
}

.l-footer__nav-list {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-top: 10px;
}

.l-footer__nav-link {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: var(--font-size-12);
  transition: opacity 0.3s;
}

/* 外部サイトに飛ぶ印（ヘッダーと同じアイコン）。紺のアイコンを白にし、文字の大きさに合わせる */
.l-footer__external {
  flex-shrink: 0;
  width: 1em;
  height: 1em;
  filter: brightness(0) invert(1);
}

/* 一番下：コピーライト */
.l-footer__copyright {
  margin: 0;
  padding: 16px 20px;
  background: var(--color-footer-copyright-bg);
  font-size: var(--font-size-12);
  text-align: center;
}

@media (hover: hover) {
  .l-footer__sns-link:hover,
  .l-footer__logo a:hover,
  .l-footer__nav-link:hover {
    opacity: 0.7;
  }
}

/* ==========================================================
   entry-float（追従の応募ボタンの位置）
   全ページで同じ位置に出す。ヘッダーのメニューを開いたときは下に隠れるよう、ヘッダーより下の重なり順にする
   ========================================================== */
.l-entry-float {
  position: fixed;
  right: 35px;
  bottom: 35px;
  z-index: 5;
  view-transition-name: entry-float; /* ページを切り替えても、ふわっと入れ替えずにその場に残す（page-transition） */
}

/* ==========================================================
   page-transition（サイト内のページを切り替えるとき、前のページを薄く消しながら次のページをふわっと出す）
   ブラウザの View Transitions を使う。対応していないブラウザでは、動かずに普通に切り替わる
   ヘッダー・追従の応募ボタンは、どのページでも同じ位置にあるため、view-transition-name を付けてその場に残す
   動きを減らす設定のときは動かさない
   ========================================================== */
@view-transition {
  navigation: auto;
}

/* 前のページが消えて次のページが出るまでの間の背景。真っ白だとちかちかするため、サイトの地の色にする */
::view-transition {
  background: var(--gradient-main-bg);
}

/* 前のページがじんわり消えてから、次のページがじんわり出てくる（読み込んでいる感じを出すため）
   始まりと終わりをゆるやかにし（ease-in-out）、消える終わりと出る始まりを少しだけ重ねて、つなぎ目で止まって見えないようにする */
::view-transition-old(root) {
  animation: l-page-out 0.4s ease-in-out forwards;
}

::view-transition-new(root) {
  animation: l-page-in 0.7s ease-in-out 0.3s both; /* 全体で 1s。長く感じるという声があり、1.5s から短くした */
}

@keyframes l-page-out {
  to {
    opacity: 0;
  }
}

@keyframes l-page-in {
  from {
    opacity: 0;
    transform: translateY(12px); /* 大きく動かすと「じんわり」より「スッ」に見えるため、少しだけ浮かせる */
  }
}

/* その場に残す部品は、入れ替えの動きをかけず、次のページの姿をすぐに出す
   （ヘッダーの子ページを開いたまま押したとき、開いた高さから縮む姿が引き伸ばされて見えないよう、大きさの変化も止める） */
::view-transition-old(header),
::view-transition-old(entry-float) {
  display: none;
}

::view-transition-group(header),
::view-transition-group(entry-float),
::view-transition-new(header),
::view-transition-new(entry-float) {
  animation: none;
}

@media (prefers-reduced-motion: reduce) {
  @view-transition {
    navigation: none;
  }
}

/* ==========================================================
   タブレット・SP（1023px以下）：ヘッダーをハンバーガーメニューにする
   PC のメニューが1行に収まらなくなるため、ページの中身（767px）より広い幅から切り替える
   ========================================================== */
@media (max-width: 1023px) {
  /* ハンバーガーメニュー。ホバーができないため、子ページは最初から全部並べる */
  .l-header {
    top: 12px;
    flex-wrap: wrap;
    align-items: center;
    height: auto;
    min-height: 56px;
    padding: 0 8px 0 20px;
    border-radius: 24px;
  }

  /* メニューを開いても、ロゴは閉じているときと同じ高さ（56px）の真ん中に置く */
  .l-header__logo {
    height: auto;
    min-height: 56px;
    font-size: var(--font-size-16);
  }

  /* PC はロゴの画像を上にはみ出させて行の高さを文字だけで決めているが、高さの低いヘッダーでは画像の上（色の点）が端に付くため、はみ出させない
     文字とは「Mogic」のベースラインでそろえたまま（画像の下 18% 分下げる）、ロゴ全体をヘッダーの上下の真ん中に置く */
  .l-header__logo-img {
    height: 32px;
    margin-top: 0px;
    vertical-align: -6px;
  }

  .l-header__menu-btn {
    position: relative;
    display: block;
    width: 44px;
    height: 44px;
    padding: 0;
    background: none;
    border: 0;
  }

  .l-header__menu-line {
    position: absolute;
    left: 11px;
    width: 22px;
    height: 2px;
    background: var(--color-link);
    border-radius: 1px;
    transition: transform 0.3s, opacity 0.3s;
  }

  .l-header__menu-line:nth-child(1) {
    top: 14px;
  }

  .l-header__menu-line:nth-child(2) {
    top: 21px;
  }

  .l-header__menu-line:nth-child(3) {
    top: 28px;
  }

  /* 開いているときは × にする */
  .l-header.is-open .l-header__menu-line:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
  }

  .l-header.is-open .l-header__menu-line:nth-child(2) {
    opacity: 0;
  }

  .l-header.is-open .l-header__menu-line:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
  }

  .l-header__nav {
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 24px;
    width: 100%;
    height: auto;
    padding: 8px 12px 24px 0;
  }

  /* 開いているとき：背景を不透明に。外側の影でページ全体を暗くしてメニューに集中させる */
  .l-header.is-open {
    background: var(--color-white);
    box-shadow: var(--shadow-menu-overlay);
  }

  /* メニューが画面より長いときは、メニューの中だけスクロールする（56px はロゴの行の高さ） */
  .l-header.is-open .l-header__nav {
    display: flex;
    max-height: calc(100dvh - 24px - 56px);
    overflow-y: auto;
    overscroll-behavior: contain; /* 端までスクロールしても後ろのページに伝わらないようにする */
  }

  /* 開いている間は後ろのページをスクロールさせない */
  html:has(.l-header.is-open) {
    overflow: hidden;
  }

  .l-header__list {
    flex-direction: column;
    gap: 0;
  }

  .l-header__item {
    display: block;
    padding: 12px 0;
    border-top: 1px solid var(--color-btn-bg);
  }

  .l-header__item:first-child {
    border-top: 0;
  }

  .l-header__link {
    font-size: var(--font-size-16);
    font-weight: var(--font-weight-bold);
  }

  .l-header__link--parent::after {
    display: none;
  }

  .l-header__child-list {
    position: static;
    gap: 8px;
    padding: 8px 0 0 16px;
    opacity: 1;
    visibility: visible;
    transform: none;
  }

  .l-header__child-link {
    font-size: var(--font-size-16);
  }

  /* ハンバーガーメニューでは子ページ・案内を最初から全部見せるため、ほかのメニューにホバーしても隠さない（PC の「ホバーしている方だけを開く」を打ち消す） */
  .l-header__list:has(.l-header__item:hover) .l-header__item:not(:hover) .l-header__child-list,
  .l-header__list:has(.l-header__item:hover) .l-header__item:not(:hover) .l-header__feature {
    opacity: 1;
    visibility: visible;
  }

  /* ハンバーガーメニューでは「人を知る」などの文字のリンクを隠しているため、今いるページは案内の見出しに水色の帯を敷く（子ページと同じ見え方） */
  .l-header__item:has([aria-current]) .l-header__feature-title {
    justify-self: start; /* 帯を文字の幅だけにする */
    background: linear-gradient(transparent 60%, var(--color-header-nav-line) 60%);
  }

  /* ハンバーガーメニューでは、子ページにホバーしても高さを伸ばさない */
  .l-header:has(.l-header__item--has-child:hover),
  .l-header:has(.l-header__item--has-child:focus-within),
  .l-header:has(.l-header__item--child-03:hover),
  .l-header:has(.l-header__item--child-03:focus-within),
  .l-header:has(.l-header__item--feature:hover),
  .l-header:has(.l-header__item--feature:focus-within) {
    height: auto;
  }

  /* 人を知る・よくある質問：開く案内の代わりに、見出し＋小さな写真付きの行にして最初から見せる（全体がリンク）
     見出しはほかのメニュー（環境を知る など）と左をそろえ、写真と紹介文は子ページと同じだけ字下げする
     メニューの文字だけのリンクは、同じ所へ飛ぶため隠す */
  .l-header__link--feature {
    display: none;
  }

  .l-header__feature {
    position: static;
    display: grid;
    grid-template-columns: auto 1fr;
    grid-template-areas:
      "title title"
      "photo text";
    align-items: center;
    gap: 0 12px;
    width: auto;
    padding: 0;
    opacity: 1;
    visibility: visible;
    transform: none;
  }

  /* 中の見出し・紹介文を、上の格子に直接並べる */
  .l-header__feature-body {
    display: contents;
  }

  .l-header__feature-title {
    grid-area: title;
  }

  .l-header__feature-photo {
    grid-area: photo;
    width: 72px;
    margin: 8px 0 0 16px; /* 子ページのリストと同じ字下げ */
    border-radius: 8px 16px 8px 16px; /* 写真が小さいため、ほかの写真と同じ形のまま角を小さくする */
  }

  .l-header__feature-text {
    grid-area: text;
    margin-top: 8px;
  }

  .l-header__feature-more {
    display: none;
  }

  .l-header__entry {
    justify-content: center;
    padding: 8px 20px;
    font-size: var(--font-size-16);
  }
  /* footer：ロゴを上に置き、リンクを横幅いっぱいに並べる */
  .l-footer__main {
    flex-direction: column;
    gap: 32px;
  }

  .l-footer__brand {
    width: auto;
  }

}

/* ==========================================================
   SP（レイアウト）
   SP デザインはないため、PC デザインをもとに組み替えたレイアウト
   ========================================================== */
@media (max-width: 767px) {
  /* page */
  .l-page-bg {
    display: none;
  }

  /* footer：ロゴの下に、リンクを2列で並べる */
  .l-footer__main {
    flex-direction: column;
    gap: 32px;
    padding-top: 40px;
    padding-bottom: 40px;
  }

  .l-footer__brand {
    width: auto;
  }

  .l-footer__logo {
    font-size: var(--font-size-16);
  }

  .l-footer__sns {
    margin-top: 16px;
  }

  .l-footer__nav {
    grid-template-columns: repeat(2, 1fr);
    gap: 28px 20px;
  }

  /* entry-float */
  .l-entry-float {
    right: 20px;
    bottom: 20px;
  }
}
