/**
 * トップページ(public/index.html)の main 内コンテンツ用CSS。
 * トップページのセクションはすべてこのファイルにまとめる(現状はNEWSセクションのみ)。
 * main配下限定スコープ。
 * レイアウト寸法(padding/gap/width/border-width等)はXD実測値の直書き。
 * 全体を@layer base（base.cssと同じレイヤー）に入れている。
 * Tailwindのユーティリティは@layer utilitiesに入っており、レイヤー無しの通常CSSは
 * 詳細度に関係なく常にどのレイヤーよりも勝ってしまうため、このファイルをレイヤー無しのままにすると
 * 同じ要素にTailwindクラス（leading-[...]等）を併用しても効かない事故が起きる。
 * base.cssが各ページでこのファイルより先に読み込まれ@layer baseを宣言しているため、
 * ここで同じ名前のレイヤーを使うことで base → theme → utilities の順（後ろほど優先）に揃う。
 */
@layer base {

/* トップページのみ: 固定ヘッダー分の余白を無くし、ヒーローを画面最上部まで拡張する。
   base.css側のbody paddingは(header.css対策で)!importantのため、同じ@layer内では
   非!importantのこちらが負けてしまう。!importantで確実に上書きする。 */
body {
  padding-top: 0 !important;
}

main .mainvisual__pin-wrap {
  position: relative;
  height: 250vh;
}

main .mainvisual {
  position: sticky;
  top: 0;
  height: 100vh;
  overflow: hidden;
}

main .mainvisual__bg {
  position: absolute;
  inset: 0;
  background-image: url('/assets/img/top/main_pc.jpg');
  background-position: center center;
  background-repeat: no-repeat;
  background-size: cover;
  transform-origin: center center;
  animation: mainvisual-zoom 20s ease-out forwards;
}

@keyframes mainvisual-zoom {
  from {
    transform: scale(1);
  }
  to {
    transform: scale(1.12);
  }
}

main .mainvisual__overlay {
  position: absolute;
  inset: 0;
  background: #000;
  opacity: calc(0.3 * clamp(0, calc(var(--mv-progress, 0) / 0.45), 1));
}

main .mainvisual__inner {
  position: absolute;
  inset: 0;
}

main .mainvisual__lead-main {
  position: absolute;
  left: 50%;
  bottom: 20px;
  margin: 0;
  width: 96%;
  transform: translate(-50%, -40vh);
  animation: mainvisual-lead-dock 1.2s 0.3s cubic-bezier(0.16, 1, 0.3, 1) forwards;
  /* スクロールでフェードアウトし、下部固定のサブリード文と入れ替わる */
  opacity: clamp(0, calc(1 - (var(--mv-progress, 0) - 0.15) / 0.2), 1);
}

@keyframes mainvisual-lead-dock {
  from {
    transform: translate(-50%, -40vh);
  }
  to {
    transform: translate(-50%, 0);
  }
}

main .mainvisual__lead-sub {
  position: absolute;
  left: 50%;
  bottom: 40px;
  /* トップの .base_width_xl（width:95% / max-width:1306px / 中央寄せ）に合わせる */
  width: 95%;
  max-width: 1306px;
  margin: 0;
  font-family: "Zen Kaku Gothic New", "Noto Sans JP", "Hiragino Kaku Gothic ProN",
    "Hiragino Sans", Meiryo, sans-serif;
  font-size: 30px;
  font-weight: 700;
  color: var(--color-site-white);
  letter-spacing: 0.05em;
  /* メインのリード文と入れ替わりでフェードイン(進捗0.1〜0.45の間で早めに出す) */
  opacity: clamp(0, calc((var(--mv-progress, 0) - 0.1) / 0.35), 1);
  transform: translate(-50%, calc((1 - clamp(0, calc((var(--mv-progress, 0) - 0.1) / 0.35), 1)) * 20px));
}

/* タブレット/SPのみで効く追加の改行用<br>。PCでは非表示にして3行のまま */
main .mainvisual__lead-sub-break {
  display: none;
}

/* SPのみで効く、さらに追加の改行用<br> */
main .mainvisual__lead-sub-break-sp {
  display: none;
}

main .news,
main .news *,
main .news *::before,
main .news *::after {
  box-sizing: border-box;
}

main .news {
  /* 幅・中央寄せは .base_width(base.css)を併用する */
  padding-block: 93px 120px;
}

main .news__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 28px;
}

main .news__heading {
  margin: 0;
  font-family: "clarendon-text-pro", serif;
  font-size: 40px;
  line-height: normal;
  font-weight: 700;
  letter-spacing: normal;
  color: var(--color-site-primary);
}

/* --- 共通ボタン(.btn) : news固有ではなく独立コンポーネントとして定義 --- */

main .btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 32px;
  padding-inline: 22px;
  font-family: "Zen Kaku Gothic New", "Noto Sans JP", "Hiragino Kaku Gothic ProN",
    "Hiragino Sans", Meiryo, sans-serif;
  font-size: 14px;
  line-height: normal; /* 固定高さボックスのためコンパクトな行間にする */
  text-decoration: none;
  white-space: nowrap;
}

main .btn--outline {
  background: none;
  border: 1px solid var(--color-site-primary);
  color: var(--color-site-primary);
}

main .btn__icon {
  width: 10px;
  height: 9px;
}

main .news__all {
  position: relative;
  min-width: 170px;
  height: auto;
  padding: 16px 32px;
  font-size: 12px;
  line-height: 1;
}

main .news__all .btn__label {
  margin-inline: auto;
}

main .news__all .btn__icon {
  position: absolute;
  top: 50%;
  right: 8px;
  width: 13px;
  height: 11px;
  transform: translateY(-50%);
}

/* --- 2カラムレイアウト --- */

main .news__body {
  display: grid;
  grid-template-columns: 280px 1fr;
  align-items: start;
  gap: 0 38px;
}

/* --- カテゴリサイドバー --- */

main .news__category {
  background: #f4f6f7;
}

main .news__category-label {
  margin: 0;
  padding: 15px 24px;
  border-bottom: 1px solid var(--color-site-white);
  font-size: 14px;
  color: var(--color-site-primary);
}

main .news__category-list {
  display: flex;
  flex-direction: column;
  margin: 0;
  padding: 0;
  list-style: none;
}

main .news__category-tab {
  display: block;
  width: 100%;
  padding: 18px 24px;
  /* buttonのネイティブ外観(appearance:auto)がbox-shadow等で上端に
     ハイライト線を描画するため、appearance自体を無効化する。
     border:noneだけでは消えない */
  appearance: none;
  border: none;
  background: none;
  font-family: "Zen Kaku Gothic New", "Noto Sans JP", "Hiragino Kaku Gothic ProN",
    "Hiragino Sans", Meiryo, sans-serif;
  font-size: 14px;
  letter-spacing: 0.1em;
  /* サイドバーは実測box高さ283pxに対して直接指定するコンパクトな行間のため、
     60px相当の固定高さ行送りは使わずnormalにする */
  line-height: normal;
  color: var(--color-site-primary);
  text-align: left;
  cursor: pointer;
  opacity: 0.5;
}

main .news__category-item.is-active .news__category-tab {
  opacity: 1;
}

main .news__category-item:not(:last-child) {
  border-bottom: 1px solid var(--color-site-white);
}

/* --- ニュースリスト --- */

main .news__list {
  display: flex;
  flex-direction: column;
  /* .news__bodyのgrid-template-columns(280px 1fr)の1fr列自体がグリッドアイテムとして
     デフォルトmin-width:autoを持つため、中の1行固定タイトルの実寸に応じて列が
     コンテナ幅を超えて広がってしまう。min-width:0でグリッド計算上の内容量による
     下限を外し、実際の1fr幅に収める(text-overflow:ellipsisが効くための前提)。 */
  min-width: 0;
}

main .news__item {
  padding: 0 0 26px;
  border-bottom: 1px solid #98c1d6;
}

main .news__item:not(.is-hidden) ~ .news__item:not(.is-hidden) {
  padding-top: 26px;
}

main .news__item.is-hidden {
  display: none;
}

main .news__meta {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 22px;
}

main .news__date {
  font-size: 12px;
  font-family: "Montserrat", sans-serif;
  letter-spacing: 0.1em;
  /* .news__catと高さを揃えるため、60px相当の行送りではなくnormal */
  line-height: normal;
  color: var(--color-site-primary);
  /* Montserratはプロポーショナルフォントで数字ごとに幅が違うため、
     日付の桁数(YYYY.MM.DD)が同じでも実際の描画幅がずれ、
     隣の.news__cat(カテゴリタグ)の開始位置が行ごとに揃わない。
     幅を固定してどの日付でも.news__catの開始位置を揃える。 */
  min-width: 80px;
}

main .news__cat {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 68px;
  height: 20px;
  padding-inline: 8px;
  border: 1px solid #7ba2b7;
  font-family: "Zen Kaku Gothic New", "Noto Sans JP", "Hiragino Kaku Gothic ProN",
    "Hiragino Sans", Meiryo, sans-serif;
  font-size: 14px;
  line-height: normal; /* 固定高さボックスのためコンパクトな行間にする */
  color: var(--color-site-primary);
}

main .news__title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  text-decoration: none;
}

main .news__title-text {
  font-family: "Zen Kaku Gothic New", "Noto Sans JP", "Hiragino Kaku Gothic ProN",
    "Hiragino Sans", Meiryo, sans-serif;
  /* font-sizeは指定せずmain(base.css)の基本フォントサイズ(16px/SP15px)を継承する */
  letter-spacing: 0.1em;
  line-height: 1.5;
  color: var(--color-site-primary);
  flex: 1 1 0%;
  min-width: 0;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
  /* letter-spacingとtext-overflow:ellipsisの併用時、最後の文字のあとの字間ぶんが
     クリップ領域にはみ出して省略記号自体が見えなくなるための保険 */
  padding-right: 0.1em;
}

main .news__title-arrow {
  flex: none;
  width: 13px;
  height: 11px;
}

main .top_feature {
  min-height: 700px;
}

/* わたしたちについて ↔ 技術と挑戦物語 のあいだ */
main .top_feature + .top_feature {
  margin-top: 50px;
}

main .parallax_bg {
  position: relative;
  z-index: 0;
  overflow: hidden;
}

main .parallax_bg::before {
  content: "";
  position: absolute;
  z-index: -1;
  top: -8%;
  left: 0;
  width: 100%;
  height: 116%;
  background-size: cover;
  background-repeat: no-repeat;
  background-position: center center;
  transform: translateY(var(--parallax-y, 0px));
  will-change: transform;
}

main .top_about::before {
  background-image: url('/assets/img/top/about_bg.jpg');
}

main .top_innovation::before {
  background-image: url('/assets/img/top/innovation_bg.jpg');
}

main .top_feature__inner {
  display: flex;
  min-height: 700px;
  flex-direction: column;
  justify-content: center;
  /* base_width_xlの中で.top_service__cardの左paddingに合わせて位置を揃える */
  padding-left: 70px;
  color: var(--color-site-white);
}

main .top_feature__lead {
  margin: 20px 0 0;
  font-family: "Zen Kaku Gothic New", "Noto Sans JP", "Hiragino Kaku Gothic ProN",
    "Hiragino Sans", Meiryo, sans-serif;
  font-size: 20px;
  font-weight: 700;
  text-shadow: 0 0 28px rgba(0, 75, 120, 1);
}

main .top_feature__link {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  width: fit-content;
  margin-top: 70px;
  padding-bottom: 9px;
  border-bottom: 1px solid var(--color-site-white);
  font-size: 14px;
  line-height: 1;
  font-weight: 700;
  color: var(--color-site-white);
  text-decoration: none;
  text-shadow: 0 0 28px rgba(0, 75, 120, 1);
}

main .top_feature__link-icon {
  width: 13px;
  height: 11px;
}

main .top_feature__coming-soon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 200px;
  min-height: 40px;
  margin-top: 70px;
  background: var(--color-site-white);
  font-size: 12px;
  letter-spacing: 0.1em;
  line-height: 1;
  color: var(--color-site-primary);
}

main .top_business {
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(320px, 0.75fr);
  gap: 100px;
  padding-block: 200px 180px;
}

main .top_business__visual {
  position: relative;
  min-height: 650px;
}

main .top_business__panel {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: flex-end;
  padding: 64px 70px;
  color: var(--color-site-white);
  text-decoration: none;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.5s ease;
}

main .top_business__panel::before {
  background-position: bottom center;
}

main .top_business__panel.is-active {
  opacity: 1;
  pointer-events: auto;
}

main .top_business__panel--medical::before {
  background-image: url('/assets/img/top/business_pc_bgv.jpg');
}

main .top_business__panel--life-science::before {
  background-image: url('/assets/img/top/lifescience_pc_bg.jpg');
}

main .top_business__copy {
  width: fit-content;
  max-width: 100%;
}

main .top_business__eyebrow {
  margin: 30px 0 20px;
  font-family: "Zen Kaku Gothic New", "Noto Sans JP", "Hiragino Kaku Gothic ProN",
    "Hiragino Sans", Meiryo, sans-serif;
  font-size: 15px;
}

main .top_business__lead {
  margin: 0;
  font-family: "Zen Kaku Gothic New", "Noto Sans JP", "Hiragino Kaku Gothic ProN",
    "Hiragino Sans", Meiryo, sans-serif;
  font-size: 30px;
}

main .top_business__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: 42px 0 0;
  padding: 0;
  list-style: none;
}

main .top_business__tag {
  padding: 8px 16px;
  border-radius: 999px;
  background: var(--color-site-white);
  font-family: "Zen Kaku Gothic New", "Noto Sans JP", "Hiragino Kaku Gothic ProN",
    "Hiragino Sans", Meiryo, sans-serif;
  font-size: 15px;
  color: var(--color-site-primary);
}

/* タブレット以下専用の矢印（a.panel 直下に absolute） */
main .top_business__arrow {
  display: none;
}

main .top_business__nav {
  align-self: center;
  padding-right: 10%;
}

main .top_business__links {
  margin-top: 58px;
}

main .top_business__link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 40px 0;
  border-top: 1px solid #98c1d6;
  font-family: "Zen Kaku Gothic New", "Noto Sans JP", "Hiragino Kaku Gothic ProN",
    "Hiragino Sans", Meiryo, sans-serif;
  font-size: 18px;
  line-height: 1;
  font-weight: 700;
  color: var(--color-site-primary);
  text-decoration: none;
}

main .top_business__link:last-child {
  border-bottom: 1px solid #98c1d6;
}

main .top_business__link-icon {
  width: 13px;
  height: 11px;
}

main .top_service {
  display: grid;
  gap: 40px;
}

main .top_service__card {
  position: relative;
  z-index: 0;
  overflow: hidden;
  display: flex;
  min-height: 280px;
  flex-direction: column;
  justify-content: center;
  padding: 80px 70px;
  background-color: #e0f4fc;
  color: var(--color-site-white);
  text-decoration: none;
}

main .top_service__card--products::before {
  background-image: url('/assets/img/top/products_bg.jpg');
}

main .top_service__card--medical::before {
  background-image: url('/assets/img/top/medical_bg.jpg');
  background-position: right 40% center;
}

main .top_service__en {
  margin-top: 15px;
  font-family: "clarendon-text-pro", serif;
  font-size: 48px;
  line-height: 1.15;
  font-weight: 700;
  letter-spacing: normal;
}

main .top_service__jp {
  margin-top: 12px;
  font-family: "Zen Kaku Gothic New", "Noto Sans JP", "Hiragino Kaku Gothic ProN",
    "Hiragino Sans", Meiryo, sans-serif;
  font-size: 18px;
  line-height: 1;
  font-weight: 500;
}

main .top_service__lead {
  margin-top: 36px;
  font-family: "Zen Kaku Gothic New", "Noto Sans JP", "Hiragino Kaku Gothic ProN",
    "Hiragino Sans", Meiryo, sans-serif;
  font-size: 16px;
  line-height: 1.8;
  font-weight: 700;
}

main .top_recruit {
  padding-block: 170px 190px;
}

main .top_recruit__heading {
  /* base_width(狭い方)をやめてbase_width_xlに変更(.top_serviceと同じ箱)。
     その上で.top_service__cardの左paddingを付け、base_width_xlの中での位置を揃える */
  margin-top: 0;
  margin-bottom: 40px;
  padding-left: 70px;
  font-family: "clarendon-text-pro", serif;
  font-size: 32px;
  line-height: 1;
  font-weight: 700;
  letter-spacing: normal;
  color: var(--color-site-primary);
}

main .top_recruit__banner {
  position: relative;
  z-index: 0;
  overflow: hidden;
  display: flex;
  /* PC限定: 1300:620の比率にする(タブレット/SPはmin-heightの固定値に戻す) */
  aspect-ratio: 1300 / 620;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background-color: #00a7e8;
  color: var(--color-site-white);
  text-align: center;
  text-decoration: none;
}

/* PC限定: 採用バナーの画像をマウスオーバーでズーム（.link-cardと同じ0.4s ease/1.08倍を採用） */
main .top_recruit__banner::before {
  content: "";
  position: absolute;
  z-index: -1;
  inset: 0;
  background-image: url('/assets/img/top/recruit_pc_bg.jpg');
  background-position: center center;
  background-repeat: no-repeat;
  background-size: cover;
  transition: transform 0.4s ease;
}

main .top_recruit__banner:hover::before {
  transform: scale(1.08);
}

main .top_recruit__copy {
  font-family: "clarendon-text-pro", serif;
  font-size: 54px;
  line-height: 1.25;
  font-weight: 700;
  letter-spacing: normal;
}

main .top_recruit__link {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  margin-top: 32px;
  font-family: "Zen Kaku Gothic New", "Noto Sans JP", "Hiragino Kaku Gothic ProN",
    "Hiragino Sans", Meiryo, sans-serif;
  font-size: 16px;
  line-height: 1;
  font-weight: 700;
}

main .top_recruit__link-icon {
  width: 13px;
  height: 11px;
}

main .top_corporate {
  padding-bottom: 180px;
}

/* PC限定: リンクカードの画像をマウスオーバーでズーム（.top_service__cardと同じ0.4s ease/1.08倍を採用） */
main .top_corporate .link-card__image::before {
  transition: transform 0.4s ease;
}

main .top_corporate .link-card:hover .link-card__image::before {
  transform: scale(1.08);
}

main .top_corporate__primary {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 32px;
}

main .top_corporate__secondary {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 32px;
  margin-top: 120px;
}

main .link-card__image--profile::before {
  background-image: url('/assets/img/top/profile_bg.jpg');
}

main .link-card__image--sustainability::before {
  background-image: url('/assets/img/top/sustainability_bg.jpg');
}

main .link-card__image--group::before {
  background-image: url('/assets/img/top/group_bg.jpg');
}

main .link-card__image--history::before {
  background-image: url('/assets/img/top/history_bg.jpg');
}

main .link-card__image--disclosure::before {
  background-image: url('/assets/img/top/disclosure_bg.jpg');
}

main .top_contact {
  min-height: 100vh;
  background-color: #8fb4d1;
  color: var(--color-site-white);
}

main .top_contact::before {
  background-image: url('/assets/img/top/contact_bg.jpg');
}

main .top_contact__inner {
  display: grid;
  min-height: 100vh;
  width: 95%;
  max-width: 1500px;
  margin-inline: auto;
  padding-inline: 70px;
  grid-template-columns: minmax(0, 0.8fr) minmax(360px, 1fr);
  align-items: center;
  gap: 80px;
}

main .top_contact__heading {
  margin: 0;
}

main .top_contact__en {
  display: block;
  font-family: "clarendon-text-pro", serif;
  font-size: 54px;
  line-height: 1;
  font-weight: 700;
  letter-spacing: normal;
}

main .top_contact__jp {
  display: block;
  margin-top: 18px;
  font-family: "Zen Kaku Gothic New", "Noto Sans JP", "Hiragino Kaku Gothic ProN",
    "Hiragino Sans", Meiryo, sans-serif;
  font-size: 20px;
  line-height: 1;
  font-weight: 700;
}

main .top_contact__link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 90px;
  padding: 0 34px 0 48px;
  border: 1px solid rgba(255, 255, 255, 0.75);
  font-size: 14px;
  line-height: 1;
  font-weight: 700;
  color: var(--color-site-white);
  text-decoration: none;
  transition: background-color 0.2s ease, color 0.2s ease;
}

main .top_contact__link:hover {
  background-color: rgba(255, 255, 255, 0.7)!important;
  color: var(--color-site-primary);
}

main .top_contact__link-icon {
  display: inline-block;
  width: 13px;
  height: 11px;
  background-image: url('/assets/img/icon/arrow_right_white.svg');
  background-repeat: no-repeat;
  background-size: contain;
}

main .top_contact__link:hover .top_contact__link-icon {
  background-image: url('/assets/img/icon/arrow_right_blue.svg');
}

main .penguin_white{
  display: inline-block;
  margin-bottom: 15px;
  width: 65px;
  height: 44px;
  background-image: url('/assets/img/icon/penguin_white.svg');
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center center;
}

main .penguin_blue{
  display: inline-block;
  width: 65px;
  height: 44px;
  margin-bottom: 15px;
  background-image: url('/assets/img/icon/penguin_blue.svg');
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center center;
}

main .top_common_heading{
  display: flex;
  flex-direction: column;
  justify-content: center;
}

main .top_common_heading.white{
  color: var(--color-site-white);
  text-shadow: 0 0 30px rgba(0, 75, 120, 1);
}
main .top_common_heading.blue{
  color: var(--color-site-primary);
}

main .top_common_heading .en{
  font-family: "clarendon-text-pro", serif;
  font-size: 62px;
  font-weight: bold;
  letter-spacing: normal;
  line-height: 1.25;
}

main .top_common_heading .jp{
  font-size: 20px;
}

/* =====================================================================
   レスポンシブ(すべてここにまとめる。ブレークポイントは 980px / 640px)
   ===================================================================== */

/* 事業領域: 1100px前後でBUSINESS見出しが折り返されず横スクロールバーが出るため、
   タブレット超〜1200px以下だけgapと見出しサイズを詰める(base.cssの1200px用パターンと同じ考え方) */
@media only screen and (max-width: 1200px) and (min-width: 981px) {
  main .top_business {
    gap: 60px;
  }

  main .top_business__nav .top_common_heading .en {
    font-size: 50px;
  }
}

/* PC限定: 630:260の比率にする(タブレット/SPは共通のmin-height指定のまま) */
@media only screen and (min-width: 981px) {
  main .top_corporate .link-card__image {
    aspect-ratio: 630 / 260;
    min-height: 0;
  }

  /* グループ拠点・あゆみ沿革・公表事項のみ410:260 */
  main .top_corporate .link-card__image--tight {
    aspect-ratio: 410 / 260;
  }
}

@media only screen and (max-width: 980px) {
  main .news {
    padding-block: 80px 96px;
  }

  main .news__body {
    grid-template-columns: 180px 1fr;
  }

  main .mainvisual__lead-sub {
    font-size: 24px;
  }

  main .mainvisual__lead-sub-break {
    display: inline;
  }

  main .top_about::before {
    background-position: right 20% center;
  }

  main .top_feature,
  main .top_feature__inner {
    min-height: 700px;
  }

  main .top_feature__inner {
    padding-left: 0;
  }

  main .top_feature + .top_feature {
    margin-top: 36px;
  }

  /* _design/top/sp/03.png: 事業領域は「見出し→画像→テキスト」を縦積み。画像上のテキスト重ねはやめる(タブレット以下で適用) */
  main .top_business {
    display: flex;
    flex-direction: column;
    gap: 32px;
    padding-block: 140px 140px;
  }

  main .top_business__nav {
    order: 1;
    align-self: stretch;
    padding-right: 0;
  }

  main .top_business__links {
    display: none;
  }

  main .top_business__visual {
    order: 2;
    display: flex;
    flex-direction: column;
    gap: 32px;
    min-height: 0;
  }

  main .top_business__panel {
    position: relative;
    display: block;
    min-height: 0;
    padding: 0 0 32px;
    opacity: 1;
    pointer-events: auto;
    transition: none;
    background-image: none;
    border-bottom: 1px solid #98c1d6;
  }

  main .top_business__panel::before {
    /* パララックスはPC限定。タブレット以下は静止した通常フローの画像ブロックに戻す */
    position: static;
    transform: none;
    content: "";
    display: block;
    height: 420px;
    margin-bottom: 24px;
    background-position: center center;
    background-repeat: no-repeat;
    background-size: cover;
  }

  main .top_business__panel--medical::before {
    background-image: url('/assets/img/top/business_pc_bgv.jpg');
  }

  main .top_business__panel--life-science::before {
    background-image: url('/assets/img/top/lifescience_pc_bg.jpg');
  }

  main .top_business__copy {
    position: relative;
    color: var(--color-site-primary);
  }

  main .top_business__eyebrow,
  main .top_business__lead {
    text-shadow: none;
  }

  main .top_business__lead {
    font-size: 17px;
    letter-spacing: 0.03em;
  }
  

  main .top_business__tag {
    border: 1px solid var(--color-site-primary);
    background: var(--color-site-white);
    color: var(--color-site-primary);
    box-shadow: none;
    font-size: 13px;
  }

  main .top_business__arrow {
    display: block;
    position: absolute;
    right: 0;
    bottom: 30px;
    width: 13px;
    height: 11px;
    background-image: url('/assets/img/icon/arrow_right_blue.svg');
    background-repeat: no-repeat;
    background-size: contain;
  }

  main .top_service {
    gap: 30px;
  }

  main .top_service__en{
    font-size: 32px;
    margin-top: 10px;
  }

  main .top_service__en,
  main .top_service__jp,
  main .top_service__lead {
    /* わたしたちについて（.top_common_heading.white）と同じ */
    text-shadow: 0 0 30px rgba(0, 75, 120, 0.7);
  }

  /* _design/top/sp/04.png: RECRUITは見出しはガター内、バナーのみ画面幅いっぱいに(バナー自身がbase_width_xlを持たないため個別に離脱させる) */
  main .top_recruit {
    padding-block: 135px 145px;
  }

  main .top_recruit__heading {
    margin-bottom: 24px;
    font-size: 28px;
  }

  main .top_recruit__banner {
    aspect-ratio: auto;
    min-height: 400px;
  }

  main .top_recruit__copy {
    font-size: 40px;
  }

  /* タブレットで3列/2列が窮屈なため段組みを調整 */
  main .top_corporate {
    padding-bottom: 140px;
  }

  main .top_corporate__primary {
    gap: 24px;
  }

  main .top_corporate__secondary {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 24px;
    margin-top: 110px;
  }

  /* CONTACT: 2カラムだと窮屈なため、SPと同じレイアウトにする */
  main .top_contact {
    min-height: 480px;
  }

  main .top_contact__inner {
    grid-template-columns: 1fr;
    min-height: 480px;
    gap: 24px;
    padding-block: 60px;
  }

  main .top_contact__en {
    font-size: 32px;
  }

  main .top_contact__link {
    min-height: 70px;
    padding: 0 24px;
  }

  main .top_common_heading .en {
    font-size: 42px;
  }
}

@media only screen and (max-width: 640px) {
  /* _design/top/sp/01.png: heroはPCと同じピン留め演出を継続、文字サイズのみ調整 */
  main .mainvisual__lead-main {
    /* dvhはアドレスバーの出し引きに合わせてリアルタイムに変化するため、
       100vh(常にlvh相当=アドレスバー非表示時の広い方で安定)との差を使うと
       スクロール中にbottom値が動いてリード文がガクッとずれて見えてしまう。
       svh(アドレスバー表示時=一番狭い方)は常に一定の値なので、100vh - 100svhは
       スクロールに関係なく常に同じ値(アドレスバーの最大高さ分)になり、
       表示中ずっと余白を確保したままガタつきなく位置が固定される。
       .mainvisualのsticky pin+250vhスクロール計算には影響しない(bottomの値のみの調整) */
    bottom: calc(20px + (100vh - 100svh));
  }

  main .mainvisual__lead-sub {
    /* トップの .base_width_xl（SP: width:90% / max-width:100%）に合わせる */
    width: 90%;
    max-width: 100%;
    font-size: 22px;
    bottom: calc(40px + (100vh - 100svh));
  }

  main .mainvisual__lead-sub-break-sp {
    display: inline;
  }

  /* _design/top/sp/03.png: PRODUCTS&TECHNOLOGY / FOR MEDICAL PROFESSIONALS 専用SP画像に切替(タブレットはPCと同じ画像) */
  main .top_service__card--products::before {
    background-image: url('/assets/img/top/products_sp_bg.jpg');
  }

  main .top_service__card--medical::before {
    background-image: url('/assets/img/top/medical_sp_bg.jpg');
    background-position: center center;
    background-size: cover;
  }

  /* _design/top/sp/01.png: NEWS 見出し+ALL NEWSを分離し、カテゴリ→リスト→ALL NEWSの縦並びに再構成 */
  main .news {
    display: flex;
    flex-direction: column;
    padding-block: 45px 70px;
  }

  main .news__head {
    display: contents;
  }

  main .news__heading {
    order: 1;
    margin-bottom: 24px;
    font-size: 28px;
  }

  main .news__body {
    order: 2;
    display: flex;
    flex-direction: column;
    gap: 24px;
  }

  main .news__category,
  main .news__list {
    width: 100%;
  }

  main .news__all {
    order: 3;
    margin: 32px auto 0;
  }

  main .news__category-label {
    text-align: center;
  }

  main .news__category-list {
    display: grid;
    width: 100%;
    grid-template-columns: repeat(2, 1fr);
  }

  main .news__category-tab {
    padding: 12px 10px;
    text-align: center;
  }

  main .news__category-item[data-category="すべて"] {
    grid-column: 1 / -1;
  }

  main .news__category-item[data-category="原薬・医薬"] {
    order: 1;
  }

  main .news__category-item[data-category="企業"] {
    order: 2;
  }

  main .news__category-item[data-category="ライフサイエンス"] {
    order: 3;
  }

  main .news__category-item[data-category="SDGs"] {
    order: 4;
  }

  main .news__category-item:not(:last-child) {
    border-bottom: none;
  }

  main .news__category-item {
    border: 1px solid var(--color-site-white);
  }

  main .news__title-text {
    white-space: normal;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
  }

  main .news__title-arrow {
    display: none;
  }

  /* _design/top/sp/02.png: わたしたちについて / 技術と挑戦物語 */
  main .top_about::before {
    background-position: right 27% center;
  }

  main .top_innovation::before {
    background-position: left 45% center;
  }

  main .top_feature {
    min-height: 640px;
  }

  main .top_feature + .top_feature {
    margin-top: 20px;
  }

  main .top_feature__inner {
    min-height: 640px;
  }

  main .penguin_white,
  main .penguin_blue {
    margin-bottom: 10px;
    width: 48px;
    height: 32px;
  }

  main .top_common_heading .en {
    font-size: 40px;
  }

  main .top_common_heading .jp {
    font-size: 18px;
  }

  main .top_feature__lead {
    font-size: 20px;
  }

  main .top_feature__link,
  main .top_feature__coming-soon {
    margin-top: 40px;
  }

  /* _design/top/sp/03.png: 事業領域(タブレットの縦積みに対するSP固有の微調整) */
  main .top_business {
    padding-block: 90px 100px;
  }

  main .top_business__tags {
    margin-top: 30px;
    gap: 8px;
  }

  main .top_business__tag {
    padding: 8px 12px;
  }

  main .top_business__visual {
    gap: 60px;
  }

  main .top_business__panel::before {
    height: 300px;
  }

  /* 専用SP画像に切替(タブレットはPCと同じ画像) */
  main .top_business__panel--medical::before {
    background-image: url('/assets/img/top/business_sp_bg.jpg');
  }

  main .top_business__panel--life-science::before {
    background-image: url('/assets/img/top/lifescience_sp_bg.jpg');
  }

  main .top_business__copy {
    position: relative;
    width: 95%;
    margin-inline: auto;
    padding-bottom: 32px;
    border-bottom: 1px solid #98c1d6;
  }

  main .top_business__panel {
    padding-bottom: 0;
    border-bottom: none;
  }

  /* _design/top/sp/03.png: PRODUCTS&TECHNOLOGY / FOR MEDICAL PROFESSIONALS */
  main .top_service {
    gap: 40px;
  }

  main .top_service__card {
    min-height: 400px;
    padding: 40px calc(5% + 15px);
  }

  main .top_service__lead{
    font-size: 14px;
    margin-top: 30px;
  }

  main .top_service__en {
    font-size: 28px;
  }

  /* _design/top/sp/04.png: RECRUIT */
  main .top_recruit {
    padding-block: 100px;
  }

  main .top_recruit__heading {
    margin-bottom: 24px;
    padding-left: 15px;
    font-size: 24px;
  }

  main .top_recruit__banner {
    aspect-ratio: auto;
    min-height: 560px;
  }

  main .top_recruit__banner::before {
    background-image: url('/assets/img/top/recruit_sp_bg.jpg');
  }

  main .top_recruit__banner:hover::before {
    transform: none;
  }

  main .top_recruit__copy {
    line-height: 1.05;
  }

  /* _design/top/sp/04.png: COMPANY等コーポレートカード */
  main .top_corporate {
    padding-bottom: 100px;
  }

  main .top_corporate .link-card:hover .link-card__image::before {
    transform: none;
  }

  main .top_recruit__link{
    margin-top: 20px;
  }

  main .top_corporate__primary,
  main .top_corporate__secondary {
    grid-template-columns: 1fr;
    gap: 60px;
  }
  main .top_corporate__secondary{
    margin-top: 100px;
    gap: 22px;
  }

  /* 企業概要・サステナビリティはbase.cssの220px上書きをさらに260pxへ戻す */
  main .link-card__image--profile,
  main .link-card__image--sustainability {
    min-height: 260px;
  }
  main .link-card__image--profile::before {
    background-image: url('/assets/img/top/profile_sp_bg.jpg');
  }

  main .link-card__image--sustainability::before {
    background-image: url('/assets/img/top/sustainability_sp_bg.jpg');
  }

  /* SP限定: 335:260の比率にする(PCは630:260) */
  main .top_corporate .link-card__image {
    aspect-ratio: 335 / 260;
    min-height: 0;
  }

  /* グループ拠点・あゆみ沿革・公表事項(--tight)のみ335:200 */
  main .top_corporate .link-card__image--tight {
    aspect-ratio: 335 / 200;
  }

  main .link-card__image--group,
  main .link-card__image--history,
  main .link-card__image--disclosure {
    min-height: 200px;
  }

  /* _design/top/sp/05.png: CONTACT (footerは今回対象外) */
  main .top_contact {
    min-height: 480px;
  }

  main .top_contact__inner {
    grid-template-columns: 1fr;
    align-content: center;
    min-height: 475px;
    width: 90%;
    max-width: 100%;
    padding-inline: 15px;
    gap: 24px;
    padding-block: 60px;
  }

  main .top_contact__en {
    font-size: 30px;
  }

  main .top_contact__link {
    min-height: 70px;
    padding: 0 30px;
    margin-top: 35px;
  }
}

}
