@charset "UTF-8";

/* ==========================================================================
   Base
   ========================================================================== */
:root {
  --red: #cf122e;
  --black: #000;
  --white: #fff;
  --gray-bg: #f5f5f5;
  --font-sans: "Noto Sans JP", "Hiragino Sans", "Hiragino Kaku Gothic ProN", Meiryo, sans-serif;
  --font-serif: "Zen Old Mincho", "Hiragino Mincho ProN", "Yu Mincho", serif;
  --font-en: "Roboto", "Noto Sans JP", sans-serif;
  /* FV用：1440px 未満では縮小するための単位 */
  --u: min(1px, calc(100vw / 1440));
}

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

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  font-family: var(--font-sans);
  color: var(--black);
  background: var(--white);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, p, ul, ol, figure {
  margin: 0;
  padding: 0;
}

ul, ol {
  list-style: none;
}

img {
  max-width: 100%;
  height: auto;
  vertical-align: top;
}

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

button {
  font: inherit;
  color: inherit;
  background: none;
  border: 0;
  padding: 0;
  cursor: pointer;
}

.sp {
  display: none;
}

@media (max-width: 767px) {
  .pc {
    display: none;
  }
  .sp {
    display: inline;
  }
}

/* ==========================================================================
   Common parts
   ========================================================================== */
.inner {
  width: min(1200px, 100% - 80px);
  margin: 0 auto;
}

.section-title {
  font-family: var(--font-en);
  font-weight: 700;
  font-size: 40px;
  line-height: 36px;
  letter-spacing: 2px;
  text-align: center;
}

/* 縦書きの英字見出し */
.vtitle {
  flex-shrink: 0;
  width: 48px;
  font-family: var(--font-en);
  font-weight: 700;
  font-size: 40px;
  line-height: 48px;
  letter-spacing: 2px;
  writing-mode: vertical-rl;
  white-space: nowrap;
}

.vtitle--white {
  color: var(--white);
}

/* 丸い矢印ボタン */
.arrow-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  width: 24px;
  height: 24px;
  border-radius: 9999px;
  background: var(--red);
  transition: transform 0.3s;
}

.arrow-btn img {
  width: 14px;
  height: 14px;
  transform: rotate(-90deg);
}

.arrow-btn--white {
  background: var(--white);
}

.arrow-btn--s {
  width: 20px;
  height: 20px;
}

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

/* 画像のホバー */
.message__img img,
.culture__img img,
.story__img img {
  transition: transform 0.6s ease;
}

@media (hover: hover) {
  .message__item:hover .message__img img,
  .culture__item:hover .culture__img img,
  .story__card:hover .story__img img {
    transform: scale(1.05);
  }
}

@media (max-width: 767px) {
  .inner {
    width: calc(100% - 40px);
  }

  .section-title {
    font-size: 30px;
    line-height: 1.2;
  }

  .vtitle {
    width: auto;
    font-size: 30px;
    line-height: 1.2;
    writing-mode: horizontal-tb;
    text-align: center;
  }
}

/* ==========================================================================
   Header
   ========================================================================== */
.header {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 100;
  width: 100%;
  height: 100px;
  transition: background-color 0.5s ease, box-shadow 0.5s ease;
}

/* スクロールしたら白背景がふわっと入る */
.header.is-scrolled {
  background-color: rgba(255, 255, 255, 0.96);
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
}

.header__logo {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 40px;
  display: flex;
  align-items: center;
  padding-top: 8px;
}

.header__logo a {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.header__logo img {
  width: 183px;
}

.header__logo-text {
  font-size: 12px;
  font-weight: 500;
  line-height: 28px;
  white-space: nowrap;
}

.header__nav {
  position: absolute;
  top: 30px;
  right: 40px;
  display: flex;
  align-items: center;
  gap: 40px;
}

.header__nav-list {
  display: flex;
  gap: 40px;
}

.header__nav-list a {
  font-family: var(--font-en);
  font-weight: 500;
  font-size: 16px;
  line-height: 20px;
  letter-spacing: 2px;
  transition: color 0.3s;
}

.header__nav-list a:hover {
  color: var(--red);
}

.header__entry {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  width: 150px;
  height: 40px;
  padding: 2px 16px 0 32px;
  border-radius: 9999px;
  background: var(--black);
  color: var(--white);
  font-size: 16px;
  font-weight: 500;
  line-height: 20px;
  white-space: nowrap;
  transition: background-color 0.3s;
}

.header__entry img {
  width: 12px;
  margin-left: 4px;
}

.header__entry:hover {
  background: var(--red);
}

.header__toggle {
  display: none;
}

/* タブレット幅：ナビが入りきらない幅ではロゴとナビを詰める */
@media (min-width: 768px) and (max-width: 1100px) {
  .header__logo {
    left: 24px;
  }
  .header__logo img {
    width: 150px;
  }
  .header__nav {
    right: 24px;
    gap: 20px;
  }
  .header__nav-list {
    gap: 18px;
  }
  .header__nav-list a {
    font-size: 14px;
    letter-spacing: 1px;
  }
  .header__entry {
    width: 130px;
    padding-left: 24px;
    font-size: 14px;
  }
}

@media (max-width: 900px) and (min-width: 768px) {
  .header__logo-text {
    display: none;
  }
}

@media (max-width: 767px) {
  .header {
    height: 64px;
  }

  .header__logo {
    left: 16px;
    padding-top: 4px;
  }

  .header__logo a {
    gap: 0;
  }

  .header__logo img {
    width: 120px;
  }

  .header__logo-text {
    font-size: 10px;
    line-height: 20px;
  }

  /* ハンバーガー */
  .header__toggle {
    position: fixed;
    top: 10px;
    right: 12px;
    z-index: 120;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 6px;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: var(--black);
  }

  .header__toggle span {
    display: block;
    width: 18px;
    height: 2px;
    background: var(--white);
    transition: transform 0.3s, opacity 0.3s;
  }

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

  .header__nav {
    position: fixed;
    inset: 0;
    z-index: 110;
    flex-direction: column;
    justify-content: center;
    gap: 40px;
    background: rgba(255, 255, 255, 0.97);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s, visibility 0.3s;
  }

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

  .header__nav-list {
    flex-direction: column;
    align-items: center;
    gap: 28px;
  }

  .header__nav-list a {
    font-size: 22px;
    font-weight: 700;
  }

  .header__entry {
    width: 220px;
    height: 52px;
    padding: 2px 16px 0 32px;
    font-size: 18px;
  }
}

/* ==========================================================================
   FirstView
   ========================================================================== */
.fv {
  position: relative;
  height: calc(800 * var(--u));
  overflow-x: clip;
}

.fv__inner {
  position: relative;
  width: calc(1440 * var(--u));
  height: 100%;
  margin: 0 auto;
}

.fv__bk {
  position: absolute;
  top: 0;
  left: calc(368 * var(--u));
  width: calc(1072 * var(--u));
  height: calc(800 * var(--u));
  overflow: hidden;
}

/* 1440px より広い画面では背景を右端まで伸ばす */
@media (min-width: 1441px) {
  .fv__bk {
    width: calc(1072px + (100vw - 1440px) / 2);
  }
}

.fv__bk img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: left top;
}

.fv__person {
  position: absolute;
  top: 0;
  left: calc(198 * var(--u));
  z-index: 1;
  width: calc(1242 * var(--u));
  pointer-events: none;
}

.fv__person img {
  width: 100%;
}

.fv__copy {
  position: absolute;
  top: calc(351.31 * var(--u));
  left: calc(51.39 * var(--u));
  z-index: 2;
  width: calc(624 * var(--u));
  aspect-ratio: 624 / 423;
}

/* コピーは行ごとにアニメーションさせるためパーツを重ねて配置（624×423 の枠に対する%） */
.fv__copy-parts {
  position: absolute;
  height: auto;
}

.fv__copy-sono {
  top: 4.319%;
  left: 8.635%;
  width: 31.529%;
}

.fv__copy-paint {
  top: 29.229%;
  left: 3.812%;
  width: 61.726%;
}

.fv__copy-kanousei {
  top: 33.229%;
  left: 7.26%;
  width: 53.92%;
}

.fv__copy-koete {
  top: 53.965%;
  left: 0;
  width: 97.907%;
}

.fv__copy-splash {
  top: 19.785%;
  left: 50.122%;
  width: 23.099%;
}

.fv__copy-wo {
  top: 23.069%;
  left: 60.53%;
  width: 32.788%;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

.fv__catch {
  position: absolute;
  top: calc(148 * var(--u));
  left: calc(1265 * var(--u));
  z-index: 2;
  width: calc(32 * var(--u));
  padding: calc(12 * var(--u)) 0 calc(15 * var(--u));
  background: var(--white);
  font-family: "Zen Kaku Gothic New", var(--font-sans);
  font-weight: 500;
  font-size: calc(24 * var(--u));
  line-height: calc(32 * var(--u));
  letter-spacing: -0.02em;
  writing-mode: vertical-rl;
  white-space: nowrap;
}

@media (max-width: 767px) {
  .fv {
    height: 138vw;
  }

  .fv__inner {
    width: 100%;
  }

  .fv__bk {
    left: 18vw;
    width: 82vw;
    height: 106vw;
  }

  .fv__person {
    top: 14vw;
    left: -9vw;
    width: 112vw;
  }

  .fv__copy {
    top: 78vw;
    left: 1vw;
    width: 88vw;
  }

  .fv__catch {
    top: 22vw;
    left: auto;
    right: 4vw;
    width: 26px;
    padding: 8px 0 4px;
    font-size: 17px;
    line-height: 26px;
  }
}

/* ==========================================================================
   Intro
   ========================================================================== */
.intro {
  position: relative;
  z-index: 2;
  padding: 100px 20px 104px;
}

.intro__text {
  font-family: var(--font-serif);
  font-weight: 500;
  font-size: 32px;
  line-height: 1.8;
  text-align: center;
}

.intro__hl {
  padding: 1px 4px 1px;
  background: linear-gradient(var(--black), var(--black)) no-repeat left center / 100% 100%;
  color: var(--white);
  -webkit-box-decoration-break: clone;
  box-decoration-break: clone;
}

@media (min-width: 768px) and (max-width: 1100px) {
  .intro__text {
    font-size: 22px;
  }
}

@media (max-width: 767px) {
  .intro {
    padding: 48px 16px 60px;
  }

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

  .intro__hl {
    padding: 2px 3px;
  }
}

/* ==========================================================================
   Photo loop
   ========================================================================== */
.loop {
  height: 560px;
  overflow: hidden;
}

.loop__track {
  display: flex;
  width: max-content;
  /* 参考サイトに合わせて約45px/秒で左へ流す（1グループ 1984px） */
  animation: loop 44s linear infinite;
}

.loop__group {
  display: flex;
  gap: 16px;
  padding-right: 16px;
}

.loop__item {
  overflow: hidden;
  border-radius: 10px;
}

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

.loop__item--sq {
  width: 480px;
  height: 480px;
}

.loop__col {
  display: flex;
  flex-direction: column;
  gap: 16px;
  width: 480px;
}

.loop__item--half {
  height: 232px;
}

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

@media (prefers-reduced-motion: reduce) {
  .loop__track {
    animation: none;
  }
}

@media (max-width: 767px) {
  .loop {
    height: 290px;
  }

  .loop__group {
    gap: 8px;
    padding-right: 8px;
  }

  .loop__item--sq {
    width: 240px;
    height: 240px;
  }

  .loop__col {
    gap: 8px;
    width: 240px;
  }

  .loop__item--half {
    height: 116px;
  }
}

/* ==========================================================================
   MESSAGE
   ========================================================================== */
.message {
  width: min(1320px, 100% - 40px);
  margin: 0 auto;
  padding: 80px 0;
  border-radius: 10px;
  background: var(--gray-bg);
}

.message__inner {
  display: flex;
  gap: 50px;
  width: min(1200px, 100% - 60px);
  margin: 0 auto;
}

.message__cols {
  display: flex;
  flex: 1;
  gap: 50px;
  min-width: 0;
}

.message__item {
  display: flex;
  flex: 1;
  flex-direction: column;
  gap: 20px;
  min-width: 0;
}

.message__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.message__title {
  font-weight: 700;
  font-size: 24px;
  line-height: 28px;
}

.message__lead {
  font-family: var(--font-serif);
  font-weight: 500;
  font-size: 20px;
  line-height: 27px;
}

.message__img {
  height: 280px;
  margin-top: 10px;
  overflow: hidden;
}

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

@media (min-width: 768px) and (max-width: 1100px) {
  .message__lead {
    font-size: 16px;
    line-height: 26px;
  }
  .message__img {
    height: auto;
    aspect-ratio: 526 / 280;
  }
}

@media (max-width: 767px) {
  .message {
    width: calc(100% - 32px);
    padding: 48px 0;
  }

  .message__inner {
    flex-direction: column;
    gap: 32px;
    width: calc(100% - 40px);
  }

  .message__cols {
    flex-direction: column;
    gap: 40px;
  }

  .message__item {
    gap: 14px;
  }

  .message__title {
    font-size: 20px;
  }

  .message__lead {
    font-size: 15px;
    line-height: 1.8;
  }

  .message__lead br {
    display: none;
  }

  .message__img {
    height: auto;
    margin-top: 4px;
    aspect-ratio: 526 / 280;
  }
}

/* ==========================================================================
   BUSINESS
   ========================================================================== */
.business {
  padding: 80px 0;
}

.business .section-title {
  margin-bottom: 60px;
}

.business__main {
  display: block;
  padding: 32px 32px 60px;
  border-radius: 10px;
  background: var(--red);
  color: var(--white);
  transition: opacity 0.3s;
}

.business__main:hover {
  opacity: 0.9;
}

.business__main-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 40px;
}

.business__main-title {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 20px;
}

.business__main-title h3 {
  font-weight: 700;
  font-size: 24px;
  line-height: 28px;
}

.business__badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 40px;
  padding: 2px 10px 2px 20px;
  border: 1px solid var(--white);
  border-radius: 20px;
  font-weight: 500;
  font-size: 16px;
  line-height: 28px;
}

.business__badge img {
  width: 18px;
}

.business__main-text {
  margin-top: 40px;
  font-family: var(--font-serif);
  font-weight: 500;
  font-size: 48px;
  line-height: 1.5;
  text-align: center;
}

/* チーム座談会 */
.team {
  display: flex;
  flex-direction: column;
  gap: 40px;
  margin-top: 60px;
}

.team__title {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 4px 24px;
  padding: 6px 0 6px 20px;
  border-left: 5px solid var(--red);
  line-height: 28px;
}

.team__title-main {
  font-weight: 700;
  font-size: 28px;
}

.team__title-sub {
  font-weight: 400;
  font-size: 24px;
}

.team__card {
  position: relative;
  display: block;
  padding: 31px;
  border: 1px solid var(--black);
  background: var(--white);
}

/* 枠線（写真の上に重ねる） */
.team__card::after {
  position: absolute;
  inset: -1px;
  z-index: 1;
  border: 1px solid var(--black);
  pointer-events: none;
  content: "";
}

/* 01の写真はカード上端からはみ出す（上辺の枠線は画像内に含む） */
.team__card--01::after {
  border-top: 0;
}

.team__img {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
}

.team__card--01 .team__img {
  top: -1px;
  bottom: auto;
  width: calc(586 / 1198 * 100%);
  transform: translateY(calc(-89 / 341 * 100%));
}

.team__card--02 .team__img {
  width: calc(621 / 1198 * 100%);
  overflow: hidden;
}

.team__img img {
  width: 100%;
}

.team__card--02 .team__img img {
  height: 100%;
  object-fit: cover;
  object-position: left top;
}

.team__card:hover .team__img {
  opacity: 0.9;
}

.team__body {
  position: relative;
  display: flex;
  align-items: flex-start;
  gap: 24px;
}

.team__num {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  width: 64px;
  height: 64px;
  font-family: var(--font-en);
  font-weight: 500;
  font-size: 24px;
  line-height: 24px;
  color: var(--white);
  isolation: isolate;
}

.team__num::before {
  position: absolute;
  top: -11.5px;
  left: -10.8px;
  z-index: -1;
  width: 86px;
  height: 86px;
  background: url(../images/top_team_number_bk.png) no-repeat center / contain;
  transform: rotate(-1deg);
  content: "";
}

.team__content {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 14px;
}

.team__tag {
  padding: 2px 11px;
  border: 1px solid var(--black);
  background: var(--white);
  font-weight: 500;
  font-size: 14px;
  line-height: 1.5;
}

.team__heading {
  margin-bottom: 2px;
  font-family: var(--font-serif);
  font-weight: 500;
  font-size: 32px;
  line-height: 32px;
}

.team__text {
  font-size: 14px;
  line-height: 25px;
}

.team__arrow {
  position: absolute;
  top: 31px;
  right: 31px;
  z-index: 1;
}

@media (min-width: 768px) and (max-width: 1100px) {
  .business__main-text {
    font-size: 36px;
  }
  .team__text br.pc {
    display: none;
  }
  /* タブレット幅では写真を上に置いて文字と重ならないようにする */
  .team__card {
    padding: 0;
  }
  .team__img,
  .team__card--01 .team__img,
  .team__card--02 .team__img {
    position: relative;
    top: 0;
    right: 0;
    width: 100%;
    aspect-ratio: 586 / 200;
    overflow: hidden;
    transform: none;
  }
  .team__img img {
    height: 100%;
    object-fit: cover;
    object-position: center bottom;
  }

  .team__card--01::after {
    border-top: 1px solid var(--black);
  }
  .team__body {
    padding: 28px 32px 32px;
  }
  .team__arrow {
    top: 16px;
    right: 16px;
  }
  .team__heading {
    font-size: 26px;
    line-height: 1.3;
  }
}

@media (max-width: 767px) {
  .business {
    padding: 60px 0;
  }

  .business .section-title {
    margin-bottom: 32px;
  }

  .business__main {
    padding: 20px 16px 36px;
  }

  .business__main-head {
    align-items: flex-start;
  }

  .business__main-title {
    flex-direction: column;
    align-items: flex-start;
  }

  .business__main-title h3 {
    font-size: 20px;
  }

  .business__badge {
    height: 32px;
    padding: 1px 12px 1px 14px;
    font-size: 14px;
  }

  .business__main-text {
    margin-top: 28px;
    font-size: 22px;
    line-height: 1.7;
  }

  .team {
    gap: 24px;
    margin-top: 48px;
  }

  .team__title {
    flex-direction: column;
    align-items: flex-start;
    padding: 2px 0 2px 14px;
    line-height: 1.5;
  }

  .team__title-main {
    font-size: 22px;
  }

  .team__title-sub {
    font-size: 16px;
  }

  .team__card {
    padding: 0;
  }

  .team__img,
  .team__card--01 .team__img,
  .team__card--02 .team__img {
    position: relative;
    top: 0;
    right: 0;
    width: 100%;
    aspect-ratio: 586 / 250;
    overflow: hidden;
    transform: none;
  }

  .team__img img {
    height: 100%;
    object-fit: cover;
    object-position: center bottom;
  }

  .team__card--01::after {
    border-top: 1px solid var(--black);
  }

  .team__body {
    gap: 14px;
    padding: 20px 16px 24px;
  }

  .team__num {
    width: 44px;
    height: 44px;
    font-size: 18px;
  }

  .team__num::before {
    top: -8px;
    left: -7.5px;
    width: 59px;
    height: 59px;
  }

  .team__content {
    gap: 10px;
    min-width: 0;
  }

  .team__tag {
    font-size: 12px;
    padding: 2px 10px;
  }

  .team__heading {
    font-size: 18px;
    line-height: 1.4;
  }

  .team__text {
    font-size: 13px;
  }

  .team__arrow {
    top: 12px;
    right: 12px;
  }
}

/* ==========================================================================
   PEOPLE
   ========================================================================== */
.people {
  position: relative;
  padding: 80px 0;
  overflow: hidden;
  background: #222 url(../images/top_people_bk.jpg) no-repeat center / cover;
  color: var(--white);
}

.people__head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  width: min(1200px, 100% - 80px);
  margin: 0 auto;
}

.people__head .vtitle {
  align-self: stretch;
}

.people__bnr {
  position: relative;
  display: flex;
  align-items: center;
  width: 700px;
  max-width: calc(100% - 80px);
  height: 280px;
  padding-left: 40px;
  background: #222;
}

.people__bnr-text {
  position: relative;
  z-index: 1;
}

.people__bnr-title {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  font-weight: 700;
  font-size: 24px;
  line-height: 1.4;
}

.people__bnr-title .arrow-btn {
  margin-top: 7px;
}

.people__bnr-sub {
  margin-top: 20px;
  font-size: 16px;
  line-height: 24px;
}

.people__bnr-img {
  position: absolute;
  top: 6px;
  left: calc(316 / 700 * 100%);
  width: 358px;
}

/* CAREER STORY */
.story {
  margin-top: 50px;
}

.story__title {
  position: relative;
  width: min(1200px, 100%);
  margin: 0 auto;
  font-family: var(--font-en);
  font-weight: 700;
  text-align: center;
  white-space: nowrap;
}

.story__title-en {
  display: block;
  font-size: 140px;
  line-height: 120px;
  opacity: 0.2;
}

.story__title-ja {
  position: absolute;
  inset: 0;
  font-family: var(--font-sans);
  font-size: 24px;
  line-height: 120px;
}

.story__slider {
  position: relative;
  min-height: 477px;
  margin-top: 24px;
  overflow: hidden;
  touch-action: pan-y;
}

.story__track {
  display: flex;
  gap: 40px;
  width: max-content;
  will-change: transform;
}

.story__track.is-animating {
  transition: transform 0.6s ease;
}

.story__slide {
  width: 300px;
  flex-shrink: 0;
}

.story__card {
  display: block;
  user-select: none;
  -webkit-user-drag: none;
}

.story__card img {
  -webkit-user-drag: none;
}

.story__img {
  width: 300px;
  height: 400px;
  overflow: hidden;
  border-radius: 10px;
}

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

.story__name {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-top: 16px;
  font-weight: 700;
  font-size: 18px;
  line-height: 22px;
  letter-spacing: 1px;
}

.story__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 16px;
}

.story__tags span {
  padding: 2px 11px 3px;
  border: 1px solid var(--white);
  border-radius: 20px;
  font-size: 12px;
  line-height: 16px;
}

.story__dots {
  display: flex;
  justify-content: center;
  gap: 18px;
  margin-top: 50px;
}

@media (max-width: 767px) {
  .story__dots {
    margin-top: 16px;
  }
}

.story__dots button {
  position: relative;
  width: 28px;
  height: 20px;
}

.story__dots button::before {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: #6d6d6d;
  transform: translate(-50%, -50%);
  transition: background-color 0.3s;
  content: "";
}

.story__dots button.is-active::before {
  background: var(--white);
}

@media (min-width: 768px) and (max-width: 1100px) {
  .story__title-en {
    font-size: 100px;
  }
}

@media (max-width: 767px) {
  .people {
    padding: 60px 0;
  }

  .people__head {
    flex-direction: column;
    align-items: stretch;
    gap: 28px;
    width: calc(100% - 32px);
  }

  .people__bnr {
    flex-direction: column;
    align-items: stretch;
    width: 100%;
    max-width: none;
    height: auto;
    padding: 24px 0 0;
  }

  .people__bnr-text {
    padding: 0 20px;
  }

  .people__bnr-title {
    font-size: 20px;
  }

  .people__bnr-title .arrow-btn {
    margin-top: 4px;
  }

  .people__bnr-sub {
    margin-top: 8px;
    font-size: 14px;
  }

  .people__bnr-img {
    position: static;
    align-self: flex-end;
    width: 72%;
    margin-top: -12px;
  }

  .story {
    margin-top: 40px;
  }

  .story__title-en {
    font-size: 44px;
    line-height: 60px;
  }

  .story__title-ja {
    font-size: 18px;
    line-height: 60px;
  }

  .story__slider {
    min-height: 0;
    margin-top: 16px;
  }

  .story__track {
    gap: 20px;
  }

  .story__slide {
    width: 240px;
  }

  .story__img {
    width: 240px;
    height: 320px;
  }

  .story__name {
    font-size: 16px;
    margin-top: 12px;
  }

  .story__tags {
    margin-top: 10px;
  }
}

/* ==========================================================================
   CULTURE
   ========================================================================== */
.culture {
  padding: 80px 0;
  background: #f7f8fb;
}

.culture__inner {
  display: flex;
  gap: 50px;
  width: min(1200px, 100% - 80px);
  margin: 0 auto;
}

.culture__cols {
  display: flex;
  flex: 1;
  gap: 50px;
  min-width: 0;
}

.culture__item {
  display: flex;
  flex: 1;
  flex-direction: column;
  gap: 20px;
  min-width: 0;
}

.culture__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.culture__title {
  font-weight: 700;
  font-size: 24px;
  line-height: 28px;
}

.culture__text {
  font-size: 14px;
  line-height: 1.8;
}

.culture__img {
  aspect-ratio: 526 / 280;
  overflow: hidden;
}

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

@media (max-width: 1100px) {
  .culture__text br {
    display: none;
  }
}

@media (max-width: 767px) {
  .culture {
    padding: 60px 0;
  }

  .culture__inner {
    flex-direction: column-reverse;
    gap: 32px;
    width: calc(100% - 40px);
  }

  .culture__cols {
    flex-direction: column;
    gap: 40px;
  }

  .culture__item {
    gap: 14px;
  }

  .culture__title {
    font-size: 20px;
  }

  .culture__text {
    font-size: 13px;
  }
}

/* ==========================================================================
   RECRUIT
   ========================================================================== */
.recruit {
  padding: 80px 0;
}

.recruit__inner {
  display: flex;
  flex-direction: column;
  gap: 76px;
}

/* 選考フロー */
.flow__title {
  font-weight: 700;
  font-size: 24px;
  line-height: 28px;
  text-align: center;
}

.flow__list {
  position: relative;
  display: flex;
  justify-content: center;
  gap: 10px;
  margin-top: 40px;
}

.flow__list::before {
  position: absolute;
  top: 32px;
  left: 50%;
  width: calc(100% - 120px);
  max-width: 716px;
  height: 1px;
  background: var(--black);
  transform: translateX(-50%);
  content: "";
}

.flow__list li {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  width: 120px;
}

.flow__num {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 64px;
  height: 64px;
  border: 1px solid #101828;
  border-radius: 99px;
  background: var(--white);
  font-family: var(--font-en);
  font-weight: 700;
  font-size: 24px;
  line-height: 28px;
}

.flow__list li.is-current .flow__num {
  background: var(--black);
  color: var(--white);
}

.flow__label {
  font-weight: 500;
  font-size: 14px;
  line-height: 20px;
  text-align: center;
  white-space: nowrap;
}

/* 募集要項・よくある質問 */
.recruit__links {
  display: flex;
  gap: 40px;
}

.recruit__link {
  display: flex;
  flex: 1;
  flex-direction: column;
  gap: 20px;
  padding: 32px;
  border-radius: 16px;
  background: var(--gray-bg);
  transition: background-color 0.3s;
}

.recruit__link:hover {
  background: #ebebeb;
}

.recruit__link-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 32px;
}

.recruit__link h3 {
  font-weight: 700;
  font-size: 24px;
  line-height: 28px;
}

.recruit__link p {
  font-size: 14px;
  line-height: 20px;
}

/* ENTRY / MYPAGE */
.entry {
  scroll-margin-top: 40px;
}

.entry__head {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
}

.entry__lead {
  font-weight: 500;
  font-size: 16px;
  line-height: 20px;
  text-align: center;
}

.entry__list {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 24px 40px;
  margin-top: 40px;
}

.entry__list a {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}

.entry__logo {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 218px;
  height: 64px;
  overflow: hidden;
  border: 1px solid #d4d4d4;
  background: var(--white);
  transition: border-color 0.3s;
}

.entry__list a:hover .entry__logo {
  border-color: var(--black);
}

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

.entry__logo--ritres img {
  width: 143px;
  height: 20px;
  margin-top: 1px;
}

.entry__logo--caritasu img {
  width: 175px;
  height: 29px;
  margin: 2px 0 0 -2px;
}

.entry__label {
  display: flex;
  gap: 6px;
  font-size: 14px;
  line-height: 20px;
  white-space: nowrap;
}

.entry__label img {
  width: 10px;
  height: 10px;
  margin-top: 5px;
}

@media (max-width: 1000px) and (min-width: 768px) {
  .flow__list li {
    width: 100px;
  }
  .flow__list {
    gap: 4px;
  }
}

@media (max-width: 767px) {
  .recruit {
    padding: 60px 0;
  }

  .recruit__inner {
    gap: 48px;
  }

  .flow__title {
    font-size: 20px;
  }

  /* SPは縦並びのフロー */
  .flow__list {
    flex-direction: column;
    align-items: flex-start;
    gap: 14px;
    width: fit-content;
    margin: 24px auto 0;
  }

  .flow__list::before {
    top: 22px;
    bottom: 22px;
    left: 22px;
    width: 1px;
    height: auto;
    transform: none;
  }

  .flow__list li {
    flex-direction: row;
    gap: 16px;
    width: auto;
  }

  .flow__num {
    width: 44px;
    height: 44px;
    font-size: 18px;
  }

  .flow__label {
    font-size: 15px;
  }

  .recruit__links {
    flex-direction: column;
    gap: 16px;
  }

  .recruit__link {
    gap: 12px;
    padding: 20px;
    border-radius: 12px;
  }

  .recruit__link h3 {
    font-size: 20px;
  }

  .recruit__link p {
    font-size: 13px;
    line-height: 1.6;
  }

  .entry__lead {
    font-size: 14px;
  }

  .entry__head {
    gap: 12px;
  }

  .entry__list {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px 8px;
    margin-top: 28px;
  }

  .entry__list a {
    gap: 8px;
  }

  .entry__logo {
    width: 100%;
    height: auto;
    aspect-ratio: 218 / 64;
  }

  .entry__logo--ritres img {
    width: 66%;
    height: auto;
  }

  .entry__logo--caritasu img {
    width: 80%;
    height: auto;
  }

  .entry__label {
    gap: 3px;
    font-size: 10px;
    line-height: 16px;
    white-space: normal;
    text-align: center;
  }

  .entry__label img {
    margin-top: 3px;
  }
}

/* ==========================================================================
   Footer
   ========================================================================== */
.footer {
  padding: 60px 40px 40px;
  box-shadow: inset 0 1px 0 var(--black);
}

.footer__top {
  display: flex;
  justify-content: space-between;
  gap: 40px;
}

.footer__company {
  display: flex;
  flex-direction: column;
  gap: 16px;
  flex-shrink: 0;
}

.footer__company img {
  width: 143px;
}

.footer__company p {
  font-weight: 500;
  font-size: 14px;
  line-height: 20px;
}

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

.footer__col {
  width: 189px;
}

.footer__col-title {
  font-family: var(--font-en);
  font-weight: 700;
  font-size: 16px;
  line-height: 20px;
  letter-spacing: 2px;
}

.footer__list {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-top: 32px;
  font-size: 14px;
  line-height: 20px;
}

.footer__list a.is-lh {
  line-height: 1.5;
}

/* デザインではリストの高さが132pxで固定（中身ははみ出して表示） */
@media (min-width: 1241px) {
  .footer__list--people {
    height: 132px;
  }
}

.footer__sublist {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 8px;
  font-size: 12px;
  line-height: 20px;
}

.footer a:hover {
  color: var(--red);
}

.footer__bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  margin-top: 32px;
  padding-top: 25px;
}

.footer__links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 40px;
  font-size: 13px;
  line-height: 16px;
}

.footer__copy {
  flex-shrink: 0;
  font-family: var(--font-en);
  font-size: 12px;
  line-height: 16px;
  letter-spacing: 1px;
}

.footer__copy small {
  font-size: inherit;
}

@media (max-width: 1240px) {
  .footer__top {
    flex-direction: column;
  }
  .footer__nav {
    flex-wrap: wrap;
    row-gap: 32px;
  }
  .footer__col {
    width: 170px;
  }
}

@media (max-width: 767px) {
  .footer {
    padding: 40px 20px 24px;
  }

  .footer__top {
    gap: 32px;
  }

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

  .footer__col {
    width: auto;
  }

  .footer__col-title {
    font-size: 14px;
  }

  .footer__list {
    gap: 10px;
    margin-top: 14px;
    font-size: 13px;
  }

  .footer__bottom {
    flex-direction: column;
    align-items: flex-start;
    gap: 24px;
    margin-top: 32px;
    padding-top: 24px;
    border-top: 1px solid #e5e5e5;
  }

  .footer__links {
    flex-direction: column;
    gap: 12px;
    font-size: 12px;
  }

  .footer__copy {
    align-self: center;
  }
}

/* ==========================================================================
   Animation
   ========================================================================== */

/* ---- メインビジュアル ------------------------------------------------ */
.fv__light {
  display: none;
}

.is-anim .fv__light {
  position: absolute;
  inset: 0;
  z-index: 3;
  display: block;
  background: radial-gradient(circle at 45% 50%, rgba(255, 255, 255, 1) 0%, rgba(255, 252, 244, 0.9) 35%, rgba(255, 255, 255, 0) 70%);
  opacity: 0;
  pointer-events: none;
}

/* 再生前の状態 */
.is-anim .fv__bk,
.is-anim .fv__person,
.is-anim .fv__catch,
.is-anim .fv__copy-parts {
  opacity: 0;
}

.is-anim .fv.is-play .fv__light {
  animation: fvLight 1.6s ease-out both;
}

/* 02 メッセージ：筆で書くように左から1行ずつ */
.is-anim .fv.is-play .fv__copy-sono,
.is-anim .fv.is-play .fv__copy-kanousei,
.is-anim .fv.is-play .fv__copy-wo,
.is-anim .fv.is-play .fv__copy-koete {
  -webkit-mask-image: linear-gradient(90deg, #000 0 45%, transparent 55% 100%);
  mask-image: linear-gradient(90deg, #000 0 45%, transparent 55% 100%);
  -webkit-mask-size: 220% 100%;
  mask-size: 220% 100%;
  -webkit-mask-repeat: no-repeat;
  mask-repeat: no-repeat;
  animation: fvWrite 0.9s cubic-bezier(0.45, 0, 0.3, 1) both;
}

.is-anim .fv.is-play .fv__copy-sono {
  animation-delay: 0.6s;
}

/* 「可能性」：赤い筆のスワイプ → 文字 → 飛沫 */
.is-anim .fv.is-play .fv__copy-paint {
  -webkit-mask-image: linear-gradient(90deg, #000 0 47%, transparent 53% 100%);
  mask-image: linear-gradient(90deg, #000 0 47%, transparent 53% 100%);
  -webkit-mask-size: 220% 100%;
  mask-size: 220% 100%;
  -webkit-mask-repeat: no-repeat;
  mask-repeat: no-repeat;
  animation: fvWrite 0.55s cubic-bezier(0.7, 0, 0.3, 1) 1.35s both;
}

.is-anim .fv.is-play .fv__copy-kanousei {
  animation-duration: 0.7s;
  animation-delay: 1.65s;
}

.is-anim .fv.is-play .fv__copy-splash {
  transform-origin: 30% 60%;
  animation: fvSplash 0.5s cubic-bezier(0.2, 1.4, 0.4, 1) 1.85s both;
}

.is-anim .fv.is-play .fv__copy-wo {
  animation-duration: 0.6s;
  animation-delay: 2.05s;
}

.is-anim .fv.is-play .fv__copy-koete {
  animation-duration: 1.1s;
  animation-delay: 2.6s;
}

/* 03 扉がひらく：右からスライド */
.is-anim .fv.is-play .fv__bk {
  animation: fvDoor 1.3s cubic-bezier(0.22, 1, 0.36, 1) 3.5s both;
}

/* 04 人物の登場 */
.is-anim .fv.is-play .fv__person {
  animation: fvPerson 1.6s cubic-bezier(0.22, 1, 0.36, 1) 4.2s both;
}

/* 05 サブコピー */
.is-anim .fv.is-play .fv__catch {
  animation: fvFadeUp 1s ease-out 5.4s both;
}

/* 06 余韻：全体がわずかに明るく */
.is-anim .fv.is-play .fv__inner {
  animation: fvBright 2s ease-in-out 6.1s both;
}

@keyframes fvLight {
  0% { opacity: 0; transform: scale(0.6); }
  40% { opacity: 1; }
  100% { opacity: 0; transform: scale(1.4); }
}

@keyframes fvWrite {
  from { opacity: 1; -webkit-mask-position: 100% 0; mask-position: 100% 0; }
  to { opacity: 1; -webkit-mask-position: 0 0; mask-position: 0 0; }
}

@keyframes fvSplash {
  from { opacity: 0; transform: scale(0.3) rotate(-12deg); }
  to { opacity: 1; transform: scale(1) rotate(0); }
}

@keyframes fvDoor {
  from { opacity: 0; transform: translateX(30%); }
  to { opacity: 1; transform: translateX(0); }
}

@keyframes fvPerson {
  from { opacity: 0; transform: translateY(24px) scale(1.03); }
  to { opacity: 1; transform: none; }
}

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

@keyframes fvBright {
  0% { filter: brightness(1); }
  40% { filter: brightness(1.08); }
  100% { filter: brightness(1); }
}

/* ---- スクロールでふわっと表示 ---------------------------------------- */
.is-anim .js-reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 1.2s ease, transform 1.2s ease;
}

.is-anim .js-reveal.is-show {
  opacity: 1;
  transform: none;
}

/* 黒塗りのハイライト：左から右へマーカーを引くように */
.is-anim .js-reveal .intro__hl {
  background-size: 0% 100%;
  transition: background-size 1s cubic-bezier(0.65, 0, 0.35, 1) 0.2s;
}

.is-anim .js-reveal.is-show .intro__hl {
  background-size: 100% 100%;
}
