@charset "UTF-8";

/* ==========================================================================
   Design tokens（Figma: dev / node 733:525）
   ========================================================================== */
:root {
  --color-main: #004c3a;
  --color-sub: #6c8650;
  --color-base: #f5f2e9;
  --color-border: #cdc7b6;
  --color-black: #222;
  --color-white: #fff;
  --color-tomato: #ea4e1e;
  --color-yellow: #fbca41;
  --color-recruit: #ef6125;
  --color-section-light: #f7fbf3;
  --marker-gradient: linear-gradient(90deg, #cdeccf, #eef5b0);

  --font-ja: "Noto Sans JP", "Hiragino Kaku Gothic ProN", "Hiragino Sans", Meiryo, sans-serif;
  --font-poppins: "Poppins", var(--font-ja);
  --font-montserrat: "Montserrat", var(--font-ja);
  --font-worksans: "Work Sans", var(--font-ja);

  --tracking: 0.05em;
  --header-h: 93px;
  --container: 1200px;
  --gutter: 40px;
}

/* ==========================================================================
   Base
   ========================================================================== */
*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: var(--header-h);
}

body {
  margin: 0;
  background: var(--color-base);
  color: var(--color-black);
  font-family: var(--font-ja);
  font-weight: 400;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

body.is-nav-open {
  overflow: hidden;
}

h1, h2, p, ul {
  margin: 0;
  padding: 0;
}

ul {
  list-style: none;
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  display: block;
  max-width: 100%;
}

button {
  font: inherit;
  cursor: pointer;
}

.container {
  width: min(var(--container), 100% - var(--gutter) * 2);
  margin-inline: auto;
}

/* ==========================================================================
   Header
   ========================================================================== */
.header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--color-white);
  border-bottom: 1px solid var(--color-border);
  transition: box-shadow 0.22s, border-color 0.22s;
}

.header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 48px;
  transition: padding 0.22s, height 0.22s;
}

/* スクロール後：高さを約8割に縮め、ロゴを少し小さく、影を付ける */
.header.is-scrolled {
  border-bottom-color: transparent;
  box-shadow: 0 3px 14px rgba(0, 46, 35, 0.12);
}

.header.is-scrolled .header__inner {
  padding-block: 10px;
}

.header.is-scrolled .header__nav {
  gap: 16px;
}

.header.is-scrolled .header__logo {
  transform: scale(0.86);
}

/* 英字ロゴ＋日本語ロゴ（2つ合わせて約319px＝従来ロゴの横幅） */
.header__logo {
  --logo-h: 21px; /* 日本語ロゴの高さ */
  display: flex;
  align-items: center;
  gap: calc(var(--logo-h) * 1.2);
  flex: none;
  transform-origin: left center;
  transition: transform 0.22s;
}

.header__logo img {
  width: auto;
  height: var(--logo-h);
}

/* 英字ロゴは日本語ロゴの8割の高さ */
.header__logo img:first-child {
  height: calc(var(--logo-h) * 0.8);
}

.header__nav {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 24px;
  transition: gap 0.22s;
}

.header__sub {
  display: flex;
  align-items: center;
  gap: 16px;
  font-size: 14px;
  line-height: 1;
  letter-spacing: var(--tracking);
}

.header__sub-item--divider {
  padding-right: 16px;
  border-right: 1px solid var(--color-border);
}

.header__main {
  display: flex;
  align-items: center;
  gap: 40px;
  font-size: 16px;
  font-weight: 700;
  line-height: 1;
  letter-spacing: var(--tracking);
}

/* メニュー5項目（ブランド一覧を追加）でも狭めの画面に収まるよう、間隔を詰める */
@media (max-width: 1240px) {
  .header__main {
    gap: 28px;
    font-size: 15px;
  }
}

.header__sub a,
.header__main a {
  display: inline-flex;
  align-items: center;
  gap: 2px;
  transition: color 0.2s;
}

.header__sub a:hover,
.header__main a:hover {
  color: var(--color-main);
}

/* メニュー：カーソルを合わせると下線（PCのみ。今いるページにも表示） */
@media (min-width: 1025px) {
  .header__main a {
    position: relative;
  }

  .header__main a::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: -8px;
    height: 2px;
    background: var(--color-main);
    transform: scaleX(0);
    transform-origin: left center;
    transition: transform 0.25s ease;
  }

  .header__main a:hover::after,
  .header__main a:focus-visible::after,
  .header__main a[aria-current="page"]::after {
    transform: scaleX(1);
  }
}

.header__toggle {
  display: none;
}

/* ==========================================================================
   Hero（メインビジュアル：無限ループスライド）
   ========================================================================== */
.hero {
  --slide-w: clamp(240px, 29.1667vw, 560px);
  --slide-h: calc(var(--slide-w) * 800 / 560);
  --slide-gap: calc(var(--slide-w) * 10 / 560);
  position: relative;
  padding-top: 32px;
  overflow: hidden;
}

.hero__slider {
  overflow: hidden;
}

.hero__track {
  display: flex;
  width: max-content;
  margin-left: calc(var(--slide-w) * -124 / 560);
  animation: hero-loop 96s linear infinite; /* 8枚で従来（4枚・48秒）と同じ速さ */
}

@keyframes hero-loop {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

.hero__slide {
  position: relative;
  flex: none;
  width: var(--slide-w);
  height: var(--slide-h);
  margin-right: var(--slide-gap);
  border-radius: 24px;
  overflow: hidden;
}

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

/* 1枚目は Figma のトリミング位置を再現 */
.hero__slide--crop img {
  position: absolute;
  top: 0;
  left: -12.17%;
  width: 224.23%;
  max-width: none;
  height: 100%;
  object-fit: fill;
}

.hero__slide--dim::after {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.1);
}

.hero__copy {
  position: absolute;
  z-index: 3;
  top: 50%;
  left: 50%;
  transform: translate(calc(-50% - 0.0667em), -50%);
  font-family: var(--font-poppins);
  font-size: clamp(34px, 6.25vw, 120px);
  font-weight: 700;
  line-height: 1.3;
  color: var(--color-white);
  text-align: center;
  text-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
  white-space: nowrap;
  pointer-events: none;
}

.hero__line {
  display: block;
}

/* 手書き風アンダーライン（文字サイズに追従） */
.hero__underline {
  position: absolute;
  top: 0.9573em;
  left: 1.2965em;
  width: 4.3002em;
  height: 0.3328em;
}

.hero__underline img {
  position: absolute;
  top: -7.51%;
  left: -0.58%;
  width: 101.16%;
  height: 115.02%;
  max-width: none;
}

/* --- キャッチコピーの登場アニメーション（文字はJSで分割） --- */
.hero__char {
  display: inline-block;
  opacity: 0;
}

.hero__copy.is-animated .hero__char {
  animation: hero-char-in 1.2s cubic-bezier(0.22, 0.8, 0.24, 1) both;
  animation-delay: calc(0.4s + var(--i) * 0.07s);
}

@keyframes hero-char-in {
  0% {
    opacity: 0;
    filter: blur(14px);
    transform: translateY(0.4em) scale(1.12);
  }
  60% {
    opacity: 1;
  }
  100% {
    opacity: 1;
    filter: blur(0);
    transform: none;
  }
}

/* 下線は文字が出そろってから左→右に描く */
.hero__copy[aria-label] .hero__underline {
  clip-path: inset(-30% 100% -30% 0);
}

.hero__copy.is-animated .hero__underline {
  animation: hero-underline-draw 0.9s cubic-bezier(0.65, 0, 0.35, 1) both;
  animation-delay: calc(0.4s + var(--char-count, 15) * 0.07s + 0.3s);
}

@keyframes hero-underline-draw {
  from { clip-path: inset(-30% 100% -30% 0); }
  to   { clip-path: inset(-30% -2% -30% -2%); }
}

/* ==========================================================================
   Hero タイプB：1枚絵のスライド（data-mode="slide" のとき表示）
   ========================================================================== */
.hero__fader {
  display: none;
}

.hero[data-mode="slide"] .hero__slider {
  display: none;
}

.hero[data-mode="slide"] .hero__fader {
  --fader-gap: clamp(12px, 1.6vw, 32px);
  position: relative;
  display: block;
  height: var(--slide-h);
  margin-inline: var(--fader-gap);
  border-radius: 24px;
  overflow: hidden;
  background: #1d2a24;
  isolation: isolate; /* 画像の重なり順をこの中だけで完結させる */
}

.hero__fader-list {
  position: absolute;
  inset: 0;
}

.hero__fader-item {
  position: absolute;
  inset: 0;
  overflow: hidden;
  visibility: hidden;
}

.hero__fader-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: var(--pos, center);
}

/* 文字を読みやすくする薄いグラデーション */
.hero__fader-item::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.05) 0%, rgba(0, 0, 0, 0.28) 100%);
}

/* 直前の画像：新しい画像が差し込む間だけ下に残す */
.hero__fader-item.is-prev {
  z-index: 1;
  visibility: visible;
}

.hero__fader-item.is-prev img {
  animation: fader-out 1.4s cubic-bezier(0.65, 0, 0.35, 1) both;
}

/* 表示中の画像：右から差し込み＋ゆっくりズーム */
.hero__fader-item.is-active {
  z-index: 2;
  visibility: visible;
  animation: fader-wipe 1.4s cubic-bezier(0.77, 0, 0.18, 1) both;
}

.hero__fader-item.is-active img {
  animation: fader-zoom 5s cubic-bezier(0.25, 0.6, 0.3, 1) both;
}

@keyframes fader-wipe {
  from { clip-path: inset(0 0 0 100%); }
  to   { clip-path: inset(0 0 0 0); }
}

@keyframes fader-zoom {
  from { transform: scale(1.18); }
  to   { transform: scale(1.02); }
}

@keyframes fader-out {
  from { transform: scale(1.02); }
  to   { transform: scale(1.02) translateX(-6%); filter: brightness(0.6); }
}

/* インジケーター（進行バー） */
.hero__dots {
  position: absolute;
  right: 32px;
  bottom: 28px;
  z-index: 3;
  display: flex;
  gap: 10px;
}

.hero__dot {
  position: relative;
  width: 56px;
  height: 20px;
  padding: 0;
  border: 0;
  background: none;
}

.hero__dot::before,
.hero__dot::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 0;
  height: 3px;
  border-radius: 2px;
  transform: translateY(-50%);
}

.hero__dot::before {
  right: 0;
  background: rgba(255, 255, 255, 0.4);
}

.hero__dot::after {
  width: 0;
  background: var(--color-yellow);
}

.hero__dot.is-active::after {
  animation: fader-progress var(--fader-interval, 4s) linear both;
}

.hero__dot:focus-visible {
  outline: 2px solid var(--color-white);
  outline-offset: 2px;
}

@keyframes fader-progress {
  from { width: 0; }
  to   { width: 100%; }
}

/* --- 切り替えボタン（確認用・左下固定） --- */
.hero-switch {
  position: fixed;
  left: 16px;
  bottom: 16px;
  z-index: 95;
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 5px;
  border-radius: 999px;
  background: rgba(0, 46, 35, 0.92);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
  backdrop-filter: blur(6px);
}

.hero-switch__label {
  padding: 0 8px 0 10px;
  font-family: var(--font-montserrat);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.15em;
  color: var(--color-yellow);
}

.hero-switch__btn {
  padding: 9px 16px;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: rgba(255, 255, 255, 0.75);
  font-size: 13px;
  font-weight: 700;
  line-height: 1;
  transition: background-color 0.2s, color 0.2s;
}

.hero-switch__btn:hover {
  color: var(--color-white);
}

.hero-switch__btn[aria-pressed="true"] {
  background: var(--color-white);
  color: var(--color-main);
}

.hero-switch__btn:focus-visible {
  outline: 2px solid var(--color-yellow);
  outline-offset: 2px;
}

/* ==========================================================================
   News
   ========================================================================== */
.news {
  padding-top: 64px;
}

.news__list {
  border-radius: 16px;
  overflow: hidden;
}

.news__item {
  background: var(--color-white);
}

.news__item + .news__item {
  border-top: 1px dashed var(--color-border);
}

.news__link {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 32px;
  transition: background-color 0.2s;
}

.news__link:hover {
  background: #fbfaf6;
}

.news__meta {
  display: flex;
  align-items: center;
  gap: 8px;
  flex: none;
}

.news__date {
  width: 112px;
  font-family: var(--font-poppins);
  font-size: 18px;
  font-weight: 700;
  line-height: 1.6;
  color: var(--color-main);
}

.news__tag {
  padding: 4px 8px;
  border-radius: 2px;
  background: var(--color-tomato);
  color: var(--color-white);
  font-size: 16px;
  line-height: 1;
  letter-spacing: var(--tracking);
  white-space: nowrap;
}

.news__title {
  flex: 1;
  min-width: 0;
  font-size: 18px;
  line-height: 1;
  letter-spacing: var(--tracking);
}

.news__arrow {
  flex: none;
  transition: transform 0.2s;
}

.news__link:hover .news__arrow {
  transform: translateX(4px);
}

/* ==========================================================================
   About
   ========================================================================== */
.about {
  padding-block: 128px;
}

.about__inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 48px;
}

.about__dots {
  width: 178.667px;
  height: 8px;
}

.about__text {
  max-width: 1000px;
  font-size: 24px;
  font-weight: 700;
  line-height: 2.4;
  letter-spacing: var(--tracking);
}

.about__text p + p {
  margin-top: 40px;
}

/* ==========================================================================
   Brands
   ========================================================================== */
.brands {
  padding-block: 120px;
  background: var(--color-sub);
  border-radius: 24px 24px 0 0; /* スライドショーなど写真の枠と同じ角丸（スマホは16px） */
  color: var(--color-white);
}

.brands__head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 64px;
}

.section-title__en {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-montserrat);
  font-size: 24px;
  font-weight: 700;
  line-height: 1.2;
}

.section-title__ja {
  font-size: 52px;
  font-weight: 700;
  line-height: 1.6;
  letter-spacing: var(--tracking);
}

.btn-pill {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  flex: none;
  width: 400px;
  height: 84px;
  border-radius: 136px;
  background: var(--color-white);
  color: var(--color-main);
  font-size: 20px;
  font-weight: 700;
  line-height: 1;
  letter-spacing: var(--tracking);
  transition: opacity 0.2s;
}

.btn-pill img {
  position: absolute;
  top: 50%;
  right: 32px;
  transform: translateY(-50%);
  transition: right 0.2s;
}

.btn-pill:hover {
  opacity: 0.9;
}

.btn-pill:hover img {
  right: 26px;
}

/* --- 大きいカード（写真＋ロゴ） --- */
.brands__featured {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 36px;
  margin-bottom: 32px;
}

.feature-card {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.feature-card__visual {
  position: relative;
  aspect-ratio: 582 / 327;
  border-radius: 8px;
  overflow: hidden;
  transition: box-shadow 0.2s;
}

.feature-card__photo {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s;
}

/* 漁師小屋：Figma の配置（610×343 / top -10px）を再現 */
.feature-card__photo--offset {
  position: absolute;
  top: -3.06%;
  left: 0;
  width: 104.81%;
  max-width: none;
  height: 104.89%;
}

.feature-card:hover .feature-card__photo {
  transform: scale(1.04);
}

/* リンクだとわかるよう、マウスを乗せる（キーボードで選ぶ）と影を付ける */
.feature-card:is(:hover, :focus-visible) .feature-card__visual {
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.18);
}

.feature-card:focus-visible,
.brand-card:focus-visible {
  outline: none;
}

.feature-card__logo {
  position: absolute;
  bottom: 16px;
  left: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 51.55%;
  aspect-ratio: 2 / 1;
  border-radius: 8px;
  background: var(--color-white);
  overflow: hidden;
}

.logo-toriwakamaru {
  width: 72.33%;
  height: auto;
}

.logo-ryoushigoya {
  position: relative;
  display: block;
  width: 63.63%;
  aspect-ratio: 190.89 / 64.78;
  overflow: hidden;
}

.logo-ryoushigoya img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100.03%;
  height: 154.37%;
  max-width: none;
}

.feature-card__name {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 20px;
  font-weight: 700;
  line-height: 1;
  letter-spacing: var(--tracking);
}

/* --- ロゴカード --- */
.brands__grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 24px 20px;
}

.brand-card {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.brand-card__logo {
  display: flex;
  align-items: center;
  justify-content: center;
  aspect-ratio: 282 / 140;
  border-radius: 8px;
  background: var(--color-white);
  transition: box-shadow 0.2s, transform 0.2s;
}

/* --w: Figma上のロゴ幅(px) / カード幅 282px */
.brand-card__logo img {
  width: calc(var(--w) / 282 * 100%);
  height: auto;
}

.brand-card:is(:hover, :focus-visible) .brand-card__logo {
  transform: translateY(-3px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.18);
}

.brand-card__name {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 16px;
  font-weight: 700;
  line-height: 1.5;
}

.feature-card__name img,
.brand-card__name img {
  flex: none;
  transition: transform 0.2s;
}

/* 名前に下線を引き、矢印を右へ少し動かす */
.feature-card:is(:hover, :focus-visible) .feature-card__name,
.brand-card:is(:hover, :focus-visible) .brand-card__name {
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 4px;
}

.feature-card:is(:hover, :focus-visible) .feature-card__name img,
.brand-card:is(:hover, :focus-visible) .brand-card__name img {
  transform: translateX(4px);
}

/* 詳細ページがないブランド：見た目はほかと同じで、矢印アイコンなし（リンクにしない）。
   マウスを乗せても浮き上がらない */
.brand-card--nolink {
  cursor: default;
}

.brand-card--nolink:hover .brand-card__logo {
  transform: none;
  box-shadow: none;
}

.brand-card--nolink:hover .brand-card__name {
  text-decoration: none;
}

/* ==========================================================================
   Mission（Figma: node 735:985 ／ 配色はグリーン系に変更）
   --u: 1920px 幅を基準にした 1px。画面幅に合わせて縮小する
   ========================================================================== */
.mission {
  --u: min(1px, 100vw / 1920);
  position: relative;
  isolation: isolate;
  overflow: hidden;
  padding: calc(160 * var(--u)) 0 calc(160 * var(--u)) max(calc(120 * var(--u)), (100vw - 1920px) / 2 + 120px);
  background: var(--color-section-light);
}

/* 背景のぼかし円 */
.mission__blobs {
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
}

.mission__blob {
  position: absolute;
  max-width: none;
  mix-blend-mode: multiply;
}

.mission__blob--01 { left: calc(489 * var(--u)); top: calc(-637.5 * var(--u)); width: calc(1104 * var(--u)); height: calc(1104 * var(--u)); }
.mission__blob--02 { left: calc(1408 * var(--u)); top: calc(369.75 * var(--u)); width: calc(1076 * var(--u)); height: calc(1076 * var(--u)); }
.mission__blob--03 { left: calc(-93 * var(--u)); top: calc(283.75 * var(--u)); width: calc(1076 * var(--u)); height: calc(1076 * var(--u)); }

.mission__inner {
  display: flex;
  align-items: center;
}

.mission__body {
  flex: none;
  width: calc(820 * var(--u));
}

.mission__en {
  font-family: "Montserrat Subrayada", var(--font-montserrat);
  font-size: calc(40 * var(--u));
  font-weight: 700;
  line-height: 1;
  color: var(--color-main);
  mix-blend-mode: multiply;
}

.mission__title {
  margin-top: calc((16 + 128) * var(--u));
  font-size: calc(80 * var(--u));
  font-weight: 900;
  line-height: 1.4;
  white-space: nowrap;
}

.mission__line {
  display: block;
}

.mission__marker {
  display: inline-block;
  padding-inline: calc(10 * var(--u));
  background: var(--marker-gradient);
}

.mission__text {
  width: calc(736 * var(--u));
  margin-top: calc(40 * var(--u));
  font-size: max(14px, 18 * var(--u));
  line-height: 1.6;
}

.mission__btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: max(260px, 400 * var(--u));
  height: max(56px, 84 * var(--u));
  margin-top: calc(56 * var(--u));
  border-radius: 136px;
  background: var(--color-main);
  color: var(--color-white);
  font-size: max(16px, 24 * var(--u));
  font-weight: 900;
  line-height: 1.6;
  transition: opacity 0.2s;
}

.mission__btn img {
  transition: transform 0.2s;
}

.mission__btn:hover {
  opacity: 0.9;
}

.mission__btn:hover img {
  transform: translateX(4px);
}

/* --- 写真コラージュ（1036×679 を基準に等倍縮小） --- */
.mission__gallery {
  --g: calc(100cqw / 1036);
  position: relative;
  flex: none;
  width: calc(1036 * var(--u));
  aspect-ratio: 1036 / 679.25;
  container-type: inline-size;
}

.mission__photo,
.mission__slice {
  position: absolute;
  overflow: hidden;
}

.mission__photo {
  border-radius: calc(14.6 * var(--g));
}

.mission__photo img,
.mission__slice img {
  position: absolute;
  max-width: none;
}

.mission__photo--a { left: 0; top: calc(0.125 * var(--g)); width: calc(290 * var(--g)); height: calc(441 * var(--g)); }
.mission__photo--b { left: calc(321 * var(--g)); top: calc(0.125 * var(--g)); width: calc(365 * var(--g)); height: calc(441 * var(--g)); }
.mission__photo--c { left: 0; top: calc(464.69 * var(--g)); width: calc(685.84 * var(--g)); height: calc(214.35 * var(--g)); }
.mission__photo--d { left: calc(708.89 * var(--g)); top: 0; width: calc(327.18 * var(--g)); height: calc(327.18 * var(--g)); }
.mission__photo--e { left: calc(708.89 * var(--g)); top: calc(352.07 * var(--g)); width: calc(327.18 * var(--g)); height: calc(327.18 * var(--g)); }

.mission__photo--a img,
.mission__photo--e img {
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* 代表者の写真：顔が切れないよう上寄せでトリミング */
.mission__photo--ceo img {
  object-position: center 20%;
}

/* 以下、Figma のトリミング位置を再現 */
.mission__photo--b img { left: 0; top: -23.71%; width: 100%; height: 174.53%; }
.mission__photo--d img { left: -208.87%; top: -120.63%; width: 591.34%; height: 230.77%; }

.mission__slice--main { left: calc(29.23 * var(--g)); top: 0; width: calc(673.68 * var(--g)); height: calc(219.69 * var(--g)); }
.mission__slice--edge { left: 0; top: 0; width: calc(29.23 * var(--g)); height: calc(219.69 * var(--g)); }
.mission__slice--main img { left: 0; top: -9.66%; width: 191.18%; height: 229.4%; }
.mission__slice--edge img { left: -4303.23%; top: -9.66%; width: 4403.23%; height: 229.4%; }

/* 差し替えた写真（生成画像）：枠いっぱいに中央基準でトリミング。上の Figma 用の位置指定より優先 */
.mission__photo.mission__photo--cover img {
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* 縦長・横長の枠は顔が切れないよう少し上寄せ */
.mission__photo--b.mission__photo--cover img,
.mission__photo--c.mission__photo--cover img {
  object-position: center 30%;
}

/* ==========================================================================
   Recruit section（Figma: node 735:1028 ／ 配色はグリーン系に変更）
   ※ 右下固定の .recruit バナーと区別するため .career としています
   ========================================================================== */
.career {
  --u: min(1px, 100vw / 1920);
  position: relative;
  isolation: isolate;
  overflow: hidden;
  padding: calc(160 * var(--u)) max(calc(120 * var(--u)), (100vw - 1920px) / 2 + 120px);
  background: var(--color-section-light);
}

.career__blobs {
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
}

.career__blob {
  position: absolute;
  max-width: none;
  mix-blend-mode: multiply;
}

.career__blob--01 { left: calc(640 * var(--u)); top: calc(-312.5 * var(--u)); width: calc(1360 * var(--u)); height: calc(1360 * var(--u)); }
.career__blob--02 { left: calc(1255 * var(--u)); top: calc(705 * var(--u)); width: calc(1076 * var(--u)); height: calc(1076 * var(--u)); }
.career__blob--03 { left: calc(-552 * var(--u)); top: calc(766 * var(--u)); width: calc(1104 * var(--u)); height: calc(1104 * var(--u)); }
.career__blob--04 { left: calc(44 * var(--u)); top: calc(1470 * var(--u)); width: calc(1076 * var(--u)); height: calc(1076 * var(--u)); }

.career__inner {
  display: flex;
  align-items: flex-start;
}

.career__body {
  flex: none;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: calc(64 * var(--u));
}

.career__en {
  font-family: "Montserrat Subrayada", var(--font-montserrat);
  font-size: calc(40 * var(--u));
  font-weight: 700;
  line-height: 1;
  color: var(--color-main);
}

.career__title {
  display: flex;
  flex-direction: column;
  gap: calc(8 * var(--u));
  margin-top: calc(24 * var(--u) - 64 * var(--u)); /* RECRUIT〜見出し間は 24px */
  font-size: calc(88 * var(--u));
  font-weight: 900;
  line-height: 1.3;
  white-space: nowrap;
}

.career__line {
  display: flex;
  align-items: center;
  gap: calc(8 * var(--u));
}

.career__marker {
  padding-inline: calc(10 * var(--u));
  background: var(--marker-gradient);
}

.career__marker--tight {
  padding-right: calc(5 * var(--u));
}

.career__text {
  width: calc(483 * var(--u));
  min-width: 300px;
  font-size: max(14px, 18 * var(--u));
  line-height: 1.6;
}

.career__text p + p {
  margin-top: 1.6em;
}

.career__btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: max(260px, 400 * var(--u));
  height: max(56px, 84 * var(--u));
  border-radius: 136px;
  background: var(--color-main);
  color: var(--color-white);
  font-size: max(16px, 24 * var(--u));
  font-weight: 900;
  line-height: 1.6;
  transition: opacity 0.2s;
}

.career__btn img {
  transition: transform 0.2s;
}

.career__btn:hover {
  opacity: 0.9;
}

.career__btn:hover img {
  transform: translateX(4px);
}

/* --- 特徴カード --- */
.career__list {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: calc(48 * var(--u));
  padding-top: calc(64 * var(--u));
}

.career-card {
  display: flex;
  align-items: flex-start;
  gap: calc(32 * var(--u));
  padding: calc(40 * var(--u));
  border: 1px solid #d3dccb;
  border-radius: 16px;
  background: var(--color-white);
}

.career-card__image {
  flex: none;
  width: calc(381 * var(--u));
  aspect-ratio: 381 / 285;
  overflow: hidden;
}

.career-card__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.career-card__image--bottom img {
  object-position: bottom;
}

.career-card__content {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: calc(24 * var(--u));
}

.career-card__title {
  margin: 0;
  font-size: max(22px, 40 * var(--u));
  font-weight: 900;
  line-height: 1.4;
  color: var(--color-main);
}

.career-card__text {
  font-size: max(15px, 20 * var(--u));
  line-height: 1.8;
}

.career-card__text p + p {
  margin-top: 1.8em;
}

/* ==========================================================================
   Topics（お知らせ一覧：カテゴリ絞り込み付き）
   ※ ページ上部の .news と区別するため .topics としています
   ========================================================================== */
.topics {
  --u: min(1px, 100vw / 1920);
  padding: 120px max(calc(120 * var(--u)), (100vw - 1920px) / 2 + 120px);
  background: var(--color-base);
}

.topics__head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 56px;
}

.topics__en {
  font-family: var(--font-montserrat);
  font-size: 16px;
  font-weight: 700;
  line-height: 1;
  letter-spacing: 0.2em;
  color: var(--color-main);
}

.topics__title {
  margin-top: 16px;
  font-size: 48px;
  font-weight: 700;
  line-height: 1.3;
  letter-spacing: var(--tracking);
}

.topics__more {
  display: inline-flex;
  align-items: center;
  gap: 24px;
  padding-bottom: 10px;
  border-bottom: 2px solid var(--color-main);
  color: var(--color-main);
  font-size: 18px;
  font-weight: 700;
  line-height: 1;
  letter-spacing: var(--tracking);
}

/* 矢印（→） */
.topics__more-arrow {
  position: relative;
  width: 18px;
  height: 2px;
  background: currentColor;
  transition: transform 0.2s;
}

.topics__more-arrow::after {
  content: "";
  position: absolute;
  top: 50%;
  right: 0;
  width: 9px;
  height: 9px;
  border-top: 2px solid currentColor;
  border-right: 2px solid currentColor;
  transform: translateY(-50%) rotate(45deg);
}

.topics__more:hover .topics__more-arrow {
  transform: translateX(4px);
}

.topics__body {
  display: grid;
  grid-template-columns: 240px minmax(0, 1fr);
  grid-template-rows: auto 1fr;
  column-gap: 48px;
}

/* --- カテゴリ切り替え --- */
.topics__filter {
  grid-row: 1 / 3;
  display: flex;
  flex-direction: column;
  align-self: start;
}

.topics__tab {
  padding: 20px 0;
  border: 0;
  border-bottom: 2px solid var(--color-border);
  background: none;
  color: #555;
  font-size: 18px;
  line-height: 1.4;
  letter-spacing: var(--tracking);
  text-align: left;
  transition: color 0.2s, border-color 0.2s;
}

.topics__tab:hover {
  color: var(--color-main);
}

.topics__tab.is-active {
  border-bottom-color: var(--color-main);
  color: var(--color-main);
  font-weight: 700;
}

.topics__tab:focus-visible {
  outline: 2px solid var(--color-main);
  outline-offset: 2px;
}

/* --- カード --- */
.topics__list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
}

.topic-card[hidden] {
  display: none;
}

.topic-card.is-entering {
  animation: topic-in 0.45s ease both;
}

@keyframes topic-in {
  from { opacity: 0; transform: translateY(12px); }
  to   { opacity: 1; transform: none; }
}

.topic-card__link {
  display: flex;
  flex-direction: column;
  height: 100%;
  border-radius: 16px;
  background: var(--color-white);
  overflow: hidden;
  transition: box-shadow 0.2s;
}

.topic-card__link:hover {
  box-shadow: 0 8px 24px rgba(0, 76, 58, 0.12);
}

.topic-card__image {
  aspect-ratio: 521 / 240;
  overflow: hidden;
}

.topic-card__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s;
}

/* アイキャッチ画像がない記事（WordPress版）：ロゴを中央に表示 */
.topic-card__image--noimage {
  display: grid;
  place-items: center;
  background: var(--color-base);
}

.topic-card__image--noimage img {
  width: 56%;
  height: auto;
  object-fit: contain;
}

.topic-card__link:hover .topic-card__image img {
  transform: scale(1.04);
}

.topic-card__body {
  padding: 24px 24px 28px;
}

.topic-card__meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  font-size: 14px;
  line-height: 1.4;
}

.topic-card__cat {
  font-weight: 700;
  color: var(--color-main);
}

.topic-card__meta time {
  color: #777;
}

.topic-card__brand {
  margin-top: 14px;
  font-size: 15px;
  font-weight: 700;
  line-height: 1.5;
}

.topic-card__title {
  margin-top: 8px;
  font-size: 18px;
  font-weight: 700;
  line-height: 1.5;
  letter-spacing: var(--tracking);
}

.topics__empty {
  grid-column: 2;
  padding: 48px 0;
  color: #777;
  text-align: center;
}

/* ==========================================================================
   Footer（ヘッダーと同じメニュー構成）
   ========================================================================== */
.footer {
  padding: 88px 0 32px;
  background: var(--color-main);
  color: var(--color-white);
}

.footer__inner {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 48px;
  padding-bottom: 64px;
}

/* ロゴは白抜きで表示（ヘッダーと同じ比率：英字＝日本語の8割の高さ） */
.footer__logo {
  --logo-h: 22px;
  display: flex;
  align-items: center;
  gap: calc(var(--logo-h) * 1.2);
}

.footer__logo img {
  width: auto;
  height: var(--logo-h);
  filter: brightness(0) invert(1);
}

.footer__logo img:first-child {
  height: calc(var(--logo-h) * 0.8);
}

.footer__lead {
  margin-top: 24px;
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0.1em;
  opacity: 0.85;
}

.footer__nav {
  display: flex;
  gap: 72px;
}

.footer__main,
.footer__sub {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.footer__main {
  font-size: 16px;
  font-weight: 700;
  letter-spacing: var(--tracking);
}

.footer__sub {
  font-size: 14px;
  letter-spacing: var(--tracking);
}

.footer__nav a {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  line-height: 1.4;
  transition: opacity 0.2s;
}

.footer__nav a:hover {
  opacity: 0.7;
}

.footer__nav a img {
  filter: brightness(0) invert(1);
}

.footer__bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding-top: 28px;
  border-top: 1px solid rgba(255, 255, 255, 0.2);
}

.footer__copy {
  font-size: 12px;
  letter-spacing: 0.05em;
  opacity: 0.7;
}

/* ==========================================================================
   Recruit banner（右下固定）
   ========================================================================== */
/* --recruit-lift：上に戻るボタンが出ている間、その上に持ち上げる（js/main.js で設定） */
.recruit {
  --recruit-lift: 0px;
  position: fixed;
  right: 16px;
  bottom: calc(16px + var(--recruit-lift));
  z-index: 90;
  transition:
    transform 0.7s cubic-bezier(0.22, 1, 0.36, 1),
    opacity 0.4s ease,
    visibility 0.7s,
    bottom 0.3s ease;
}

/* スクロールで右からスライドイン（JS有効時のみ初期状態で隠す） */
.recruit.is-ready:not(.is-shown) {
  opacity: 0;
  visibility: hidden;
  transform: translateX(calc(100% + 40px));
  pointer-events: none;
}

/* ページ上部へ戻るボタン（js/main.js で追加） */
.pagetop {
  position: fixed;
  right: 16px;
  bottom: 16px;
  z-index: 91;
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: var(--color-main);
  box-shadow: 0 4px 12px rgba(0, 46, 35, 0.2);
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transform: translateY(8px);
  transition: opacity 0.25s, visibility 0.25s, transform 0.25s;
}

/* 上向きの矢印 */
.pagetop::before {
  content: "";
  width: 12px;
  height: 12px;
  margin-top: 5px;
  border-top: 2px solid var(--color-white);
  border-left: 2px solid var(--color-white);
  transform: rotate(45deg);
}

.pagetop.is-shown {
  opacity: 1;
  visibility: visible;
  transform: none;
}

.pagetop:hover {
  opacity: 0.85;
}

.pagetop:focus-visible {
  outline: 2px solid var(--color-main);
  outline-offset: 3px;
}

.recruit.is-hidden {
  opacity: 0;
  transform: translateY(16px);
  pointer-events: none;
}

.recruit__link {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 21px; /* Figma: 内側線3px + 余白24px */
  border: 3px solid var(--color-recruit);
  border-radius: 8px;
  background: var(--color-white);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
  transition: transform 0.2s;
}

.recruit__link:hover {
  transform: translateY(-3px);
}

.recruit__text {
  display: flex;
  flex-direction: column;
  gap: 11px;
}

.recruit__en {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-worksans);
  font-size: 24px;
  font-weight: 800;
  line-height: 1;
  color: var(--color-recruit);
}

.recruit__lead {
  font-size: 20px;
  font-weight: 700;
  line-height: 1.4;
  white-space: nowrap;
}

.recruit__image {
  position: relative;
  flex: none;
  width: 233px;
  height: 85px;
  overflow: hidden;
}

/* Figma のトリミング位置を再現 */
.recruit__image img {
  position: absolute;
  top: -11.24%;
  left: -2.99%;
  width: 220.5%;
  max-width: none;
  height: 235.1%;
}

/* 差し替えた写真（MISSIONの4人の写真と共通）：枠いっぱいに収め、顔が切れないよう少し上寄せ */
.recruit__image.recruit__image--cover img {
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 30%;
}

.recruit__close {
  position: absolute;
  top: -10px;
  right: -10px;
  width: 28px;
  height: 28px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: var(--color-black);
}

.recruit__close::before,
.recruit__close::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 12px;
  height: 2px;
  background: var(--color-white);
}

.recruit__close::before { transform: translate(-50%, -50%) rotate(45deg); }
.recruit__close::after  { transform: translate(-50%, -50%) rotate(-45deg); }

/* ==========================================================================
   Tablet（〜1024px）: ハンバーガーメニュー
   ========================================================================== */
@media (max-width: 1024px) {
  :root {
    --header-h: 64px;
  }

  .header__inner {
    height: var(--header-h);
    padding: 0 20px;
  }

  .header.is-scrolled {
    --header-h: 56px;
  }

  .header.is-scrolled .header__inner {
    padding-block: 0;
  }

  .header__logo {
    --logo-h: 16.9px;
  }

  .header__toggle {
    position: relative;
    display: block;
    width: 44px;
    height: 44px;
    margin-right: -8px;
    padding: 0;
    border: 0;
    background: none;
  }

  .header__toggle span {
    position: absolute;
    left: 10px;
    width: 24px;
    height: 2px;
    border-radius: 1px;
    background: var(--color-main);
    transition: transform 0.3s, opacity 0.3s;
  }

  .header__toggle span:nth-child(1) { top: 14px; }
  .header__toggle span:nth-child(2) { top: 21px; }
  .header__toggle span:nth-child(3) { top: 28px; }

  .header__toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .header__toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
  .header__toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

  .header__nav {
    position: fixed;
    top: var(--header-h);
    right: 0;
    bottom: 0;
    left: 0;
    flex-direction: column-reverse;
    align-items: stretch;
    justify-content: flex-end;
    gap: 32px;
    padding: 16px 20px 40px;
    background: var(--color-white);
    overflow-y: auto;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s, visibility 0.3s;
  }

  .header__nav.is-open {
    opacity: 1;
    visibility: visible;
  }

  .header__main {
    flex-direction: column;
    align-items: stretch;
    gap: 0;
  }

  .header__main li {
    border-bottom: 1px solid var(--color-border);
  }

  .header__main a {
    display: flex;
    padding: 20px 4px;
  }

  .header__sub {
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
  }

  .header__sub-item--divider {
    padding-right: 0;
    border-right: 0;
  }

  .brands__grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

/* ==========================================================================
   Smartphone（〜767px）
   ========================================================================== */
@media (max-width: 767px) {
  :root {
    --gutter: 20px;
  }

  .header__logo {
    --logo-h: 15.8px;
  }

  /* スマホではスクロールしてもヘッダーを縮めない（影だけ付ける） */
  .header.is-scrolled {
    --header-h: 64px;
  }

  .header.is-scrolled .header__logo {
    transform: none;
  }

  /* Hero */
  .hero {
    --slide-w: 240px;
    padding-top: 16px;
  }

  .hero__slide {
    border-radius: 16px;
  }

  /* News */
  .news {
    padding-top: 40px;
  }

  .news__list {
    border-radius: 12px;
  }

  .news__link {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 10px 12px;
    padding: 20px;
  }

  .news__meta {
    grid-column: 1;
    grid-row: 1;
  }

  .news__date {
    width: auto;
    font-size: 15px;
  }

  .news__tag {
    font-size: 12px;
  }

  .news__title {
    grid-column: 1;
    grid-row: 2;
    font-size: 15px;
    line-height: 1.5;
  }

  .news__arrow {
    grid-column: 2;
    grid-row: 1 / 3;
  }

  /* About */
  .about {
    padding-block: 72px;
  }

  .about__inner {
    gap: 32px;
  }

  .about__text {
    font-size: 16px;
    line-height: 2.1;
  }

  .about__text p + p {
    margin-top: 24px;
  }

  /* Brands */
  .brands {
    padding-block: 64px 80px;
    border-radius: 16px 16px 0 0;
  }

  .brands__head {
    flex-direction: column;
    align-items: stretch;
    margin-bottom: 32px;
  }

  .section-title__en {
    font-size: 16px;
  }

  .section-title__ja {
    font-size: 34px;
  }

  .btn-pill {
    width: 100%;
    height: 60px;
    font-size: 16px;
  }

  .btn-pill img {
    right: 24px;
  }

  .brands__featured {
    grid-template-columns: 1fr;
    gap: 24px;
    margin-bottom: 24px;
  }

  .feature-card__logo {
    bottom: 10px;
    left: 10px;
    width: 46%;
  }

  .feature-card__name {
    font-size: 16px;
  }

  .brands__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 20px 12px;
  }

  .brand-card__name {
    gap: 4px;
    font-size: 13px;
    line-height: 1.4;
  }

  /* Hero タイプB */
  .hero[data-mode="slide"] .hero__fader {
    border-radius: 16px;
  }

  .hero__dots {
    right: 16px;
    bottom: 14px;
    gap: 6px;
  }

  .hero__dot {
    width: 32px;
  }

  /* 切り替えボタンは採用バナーの上に配置 */
  .hero-switch {
    left: 12px;
    bottom: 116px;
  }

  .hero-switch__label {
    display: none;
  }

  .hero-switch__btn {
    padding: 8px 12px;
    font-size: 12px;
  }

  /* Footer */
  .footer {
    padding: 56px 0 112px; /* 固定の採用バナーと重ならないよう下に余白 */
  }

  .footer__inner {
    flex-direction: column;
    gap: 40px;
    padding-bottom: 40px;
  }

  .footer__logo {
    --logo-h: 17px;
  }

  .footer__lead {
    margin-top: 18px;
    font-size: 14px;
  }

  .footer__nav {
    flex-direction: column;
    gap: 28px;
    width: 100%;
  }

  .footer__main {
    gap: 0;
    font-size: 15px;
  }

  .footer__main li {
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
  }

  .footer__main li:first-child {
    border-top: 1px solid rgba(255, 255, 255, 0.2);
  }

  .footer__main a {
    display: flex;
    padding: 16px 2px;
  }

  .footer__sub {
    gap: 16px;
    font-size: 13px;
  }

  .footer__bottom {
    flex-direction: column-reverse;
    gap: 20px;
    padding-top: 24px;
  }

  /* Recruit */
  .recruit {
    right: 12px;
    bottom: calc(12px + var(--recruit-lift));
  }

  /* 上に戻るボタンもバナーと右端をそろえる */
  .pagetop {
    right: 12px;
    bottom: 12px;
  }

  .recruit__link {
    gap: 10px;
    padding: 12px 14px;
    border-width: 2px;
  }

  .recruit__text {
    gap: 6px;
  }

  .recruit__en {
    gap: 6px;
    font-size: 18px;
  }

  .recruit__lead {
    font-size: 13px;
  }

  .recruit__image {
    width: 110px;
    height: 40px;
  }

  .recruit__close {
    top: -8px;
    right: -8px;
    width: 24px;
    height: 24px;
  }
}

/* ==========================================================================
   Mission: タブレット・スマホ（縦積み）
   ========================================================================== */
@media (max-width: 1024px) {
  .mission {
    --u: calc(100vw / 1920);
    padding: 96px var(--gutter);
  }

  .mission__blob--01 { left: 20%; top: -320px; width: 640px; height: 640px; }
  .mission__blob--02 { left: auto; right: -320px; top: auto; bottom: -200px; width: 640px; height: 640px; }
  .mission__blob--03 { left: -300px; top: 30%; width: 640px; height: 640px; }

  .mission__inner {
    flex-direction: column;
    align-items: stretch;
    gap: 56px;
  }

  .mission__body {
    width: auto;
  }

  .mission__en {
    font-size: 32px;
  }

  .mission__title {
    margin-top: 48px;
    font-size: clamp(28px, 7vw, 60px);
  }

  .mission__marker {
    padding-inline: 0.125em;
  }

  .mission__text {
    width: auto;
    max-width: 736px;
    margin-top: 28px;
    font-size: 16px;
    line-height: 1.8;
  }

  .mission__btn {
    width: min(400px, 100%);
    height: 64px;
    margin-top: 40px;
    font-size: 18px;
  }

  .mission__gallery {
    width: 100%;
  }
}

@media (max-width: 767px) {
  .mission {
    padding-block: 72px;
  }

  .mission__inner {
    gap: 40px;
  }

  .mission__en {
    font-size: 24px;
  }

  .mission__title {
    margin-top: 32px;
  }

  .mission__text {
    font-size: 15px;
  }

  .mission__btn {
    width: 100%;
    height: 60px;
    font-size: 16px;
  }

  .mission__photo {
    border-radius: 8px;
  }
}

/* ==========================================================================
   Recruit section: タブレット・スマホ
   ========================================================================== */
@media (max-width: 1024px) {
  .career {
    padding: 96px var(--gutter);
  }

  .career__blob--01 { left: 30%; top: -300px; width: 800px; height: 800px; }
  .career__blob--02 { left: auto; right: -360px; top: 45%; width: 720px; height: 720px; }
  .career__blob--03 { left: -380px; top: 30%; width: 720px; height: 720px; }
  .career__blob--04 { left: 0; top: auto; bottom: -360px; width: 720px; height: 720px; }

  .career__inner {
    flex-direction: column;
    align-items: stretch;
    gap: 56px;
  }

  .career__body {
    gap: 40px;
  }

  .career__en {
    font-size: 32px;
  }

  .career__title {
    gap: 4px;
    margin-top: -16px;
    font-size: clamp(36px, 8vw, 64px);
  }

  .career__line {
    gap: 0.1em;
  }

  .career__marker {
    padding-inline: 0.12em;
  }

  .career__marker--tight {
    padding-right: 0.06em;
  }

  .career__text {
    width: auto;
    min-width: 0;
    max-width: 640px;
    font-size: 16px;
    line-height: 1.8;
  }

  .career__btn {
    width: min(400px, 100%);
    height: 64px;
    font-size: 18px;
  }

  .career__list {
    gap: 24px;
    padding-top: 0;
  }

  .career-card {
    gap: 24px;
    padding: 24px;
  }

  .career-card__image {
    width: 40%;
  }

  .career-card__content {
    gap: 12px;
  }

  .career-card__title {
    font-size: 24px;
  }

  .career-card__text {
    font-size: 15px;
  }

  .career-card__text p + p {
    margin-top: 1em;
  }
}

@media (max-width: 767px) {
  .career {
    padding-block: 72px;
  }

  .career__inner {
    gap: 40px;
  }

  .career__body {
    gap: 32px;
  }

  .career__en {
    font-size: 24px;
  }

  .career__title {
    margin-top: -20px;
  }

  .career__text {
    font-size: 15px;
  }

  .career__btn {
    width: 100%;
    height: 60px;
    font-size: 16px;
  }

  .career__list {
    gap: 20px;
  }

  .career-card {
    flex-direction: column;
    gap: 16px;
    padding: 16px 16px 24px;
    border-radius: 12px;
  }

  .career-card__image {
    width: 100%;
    border-radius: 8px;
  }

  .career-card__content {
    padding-inline: 4px;
  }

  .career-card__title {
    font-size: 21px;
  }

  .career-card__text {
    font-size: 14px;
  }
}

/* ==========================================================================
   Topics: タブレット・スマホ
   ========================================================================== */
@media (max-width: 1024px) {
  .topics {
    padding: 96px var(--gutter);
  }

  .topics__head {
    margin-bottom: 40px;
  }

  .topics__title {
    font-size: 40px;
  }

  /* カテゴリは横並びのタブに */
  .topics__body {
    display: block;
  }

  .topics__filter {
    flex-direction: row;
    gap: 24px;
    margin: 0 calc(var(--gutter) * -1) 32px;
    padding: 0 var(--gutter);
    overflow-x: auto;
    scrollbar-width: none;
  }

  .topics__filter::-webkit-scrollbar {
    display: none;
  }

  .topics__tab {
    flex: none;
    padding: 12px 0;
    font-size: 16px;
    white-space: nowrap;
  }

  .topics__list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 20px;
  }
}

@media (max-width: 767px) {
  .topics {
    padding-block: 72px;
  }

  .topics__head {
    align-items: flex-end;
    margin-bottom: 32px;
  }

  .topics__en {
    font-size: 13px;
  }

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

  .topics__more {
    gap: 12px;
    padding-bottom: 6px;
    font-size: 14px;
  }

  .topics__filter {
    gap: 20px;
    margin-bottom: 24px;
  }

  .topics__tab {
    font-size: 15px;
  }

  .topics__list {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .topic-card__link {
    border-radius: 12px;
  }

  .topic-card__body {
    padding: 18px 18px 22px;
  }

  .topic-card__title {
    font-size: 16px;
  }
}

/* 小型スマホ（〜360px）ではロゴとメニューボタンの間隔を確保 */
@media (max-width: 360px) {
  .header__logo {
    --logo-h: 13.5px;
  }
}

/* ==========================================================================
   Reduced motion
   ========================================================================== */
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .hero__track {
    animation: none;
  }

  .hero__char {
    opacity: 1;
  }

  .hero__copy.is-animated .hero__char,
  .hero__copy.is-animated .hero__underline {
    animation: none;
  }

  .hero__copy[aria-label] .hero__underline {
    clip-path: none;
  }

  .topic-card.is-entering {
    animation: none;
  }

  .header,
  .header__inner,
  .header__nav,
  .header__logo {
    transition: none;
  }

  .recruit {
    transition: opacity 0.2s;
  }

  .recruit.is-ready:not(.is-shown) {
    transform: none;
  }

  .hero__fader-item.is-active,
  .hero__fader-item.is-active img,
  .hero__fader-item.is-prev img {
    animation: none;
  }

  .hero__fader-item.is-prev {
    visibility: hidden;
  }
}
