@import url("./components/h2.css");
@import url("./components/people-card.css");
@import url("./components/news-card.css");
@import url("./components/button.css");
@import url("./components/job-category-card.css");
@import url("./single.css");

/* 
 * Front Page Styles
 * フロントページ専用スタイル
 */

/* ===================================
 * Splide Custom Styles
 * =================================== */

/* Splideのデフォルトの矢印を表示 */
.splide__arrows {
  display: block;
}

.splide__arrow {
  display: flex !important;
  align-items: center;
  justify-content: center;
}

/* Splideのpagination余白をリセット */
.splide__pagination {
  padding: 0;
  margin: 0;
}

/* Splideの初期非表示を上書き */
.splide {
  visibility: visible !important;
}

.splide__track,
.splide__list,
.splide__slide {
  visibility: visible !important;
}

/* ===================================
 * Hero Section - スライダー
 * =================================== */

/* フロントページのみmainのmargin-topを0に */
.front-page {
  margin-top: 0 !important;
  max-width: 100% !important;
}

.hero {
  position: relative;
  width: 100%;
  max-width: 1920px;
  margin: 0 auto;
  height: 100dvh; /* ブラウザの表示領域の高さ */
  overflow: hidden;
  background-color: #fff; /* 白背景 */
}

.hero__slider {
  width: 100%;
  height: 100%;
}

.hero__slide {
  width: 100%;
  height: 100dvh; /* ブラウザの表示領域の高さ */
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  opacity: 0;
  transition: opacity 2s ease;
}

.hero__slide.is-visible {
  opacity: 1;
}

/* メインコピー */
.hero__copy-wrapper {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  z-index: 10;
  pointer-events: none;
}

.hero__copy {
  max-width: 1920px;
  margin: 0 auto;
  padding: 0 80px 124px;
}

.hero__copy-subtitle {
  color: var(--color-accent);
  font-size: clamp(16px, 1.67vw, 24px); /* 1440pxで24px */
  font-weight: var(--font-weight-light);
  line-height: 1.6;
  text-shadow: none;
  margin: 0;
  letter-spacing: 0.05em;
  transition:
    color 1.5s ease,
    text-shadow 1.5s ease;
}

.hero__copy-subtitle.is-white {
  color: white;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.hero__copy-text {
  color: var(--color-accent);
  font-size: clamp(32px, 3.89vw, 56px); /* 1440pxで56px */
  font-weight: var(--font-weight-bold);
  line-height: 1.35;
  text-shadow: none;
  margin: 0;
  min-height: 1.35em; /* line-heightと同じ値で最小1行分の高さを確保 */
  transition:
    color 2s ease,
    text-shadow 2s ease;
}

.hero__copy-text.is-white {
  color: white;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

/* Splideページネーション */
.hero__pagination {
  position: absolute;
  bottom: 80px !important;
  left: 50% !important;
  right: auto !important;
  transform: translateX(-50%) !important;
  z-index: 10;
  display: flex !important;
  justify-content: center;
  align-items: center;
  gap: 12px;
  width: auto !important;
}

.hero__pagination .splide__pagination__page {
  width: 12px;
  height: 12px;
  background: rgba(255, 255, 255, 0.5);
  opacity: 1;
  cursor: pointer;
  transition: all 0.3s ease;
  border-radius: 50%;
  border: none;
  padding: 0;
  margin: 0;
}

.hero__pagination .splide__pagination__page.is-active {
  background: white;
  transform: scale(1.2);
}

/* タブレット対応 */
@media (max-width: 1024px) {
  .hero__copy {
    padding: 0 40px 104px;
  }

  .hero__copy-subtitle {
    font-size: clamp(14px, 2vw, 20px);
    margin-bottom: 12px;
  }

  .hero__copy-text {
    font-size: clamp(28px, 4vw, 48px);
  }

  .hero__pagination {
    bottom: 64px !important;
  }
}

/* スマホ対応 */
@media (max-width: 768px) {
  .hero__copy {
    padding: 0 24px 80px;
  }

  .hero__copy-subtitle {
    font-size: clamp(12px, 2.5vw, 18px);
    margin-bottom: 8px;
  }

  .hero__copy-text {
    font-size: clamp(24px, 5vw, 36px);
  }
  .hero__pagination {
    bottom: 48px !important;
    gap: 8px;
  }

  .hero__pagination .splide__pagination__page {
    width: 10px;
    height: 10px;
  }
}

/* Hero typing animation */
.hero__copy-subtitle,
.hero__copy-text {
  opacity: 0;
}

.hero__copy-subtitle.is-typing,
.hero__copy-text.is-typing {
  opacity: 1;
}

.hero__copy-subtitle .char,
.hero__copy-text .char {
  opacity: 0;
  animation: fadeInChar 0.1s forwards;
}

@keyframes fadeInChar {
  to {
    opacity: 1;
  }
}

/* Typing cursor */
.typing-cursor {
  display: inline-block;
  width: 2px;
  height: 1em;
  background-color: var(--color-accent);
  margin-left: 2px;
  animation: blink 0.7s infinite;
  vertical-align: text-bottom;
}

@keyframes blink {
  0%,
  49% {
    opacity: 1;
  }
  50%,
  100% {
    opacity: 0;
  }
}

/* ===================================
 * About Section
 * =================================== */
.about {
  position: relative;
  width: 100%;
  max-width: 1920px;
  margin: -80px auto -80px; /* heroセクションと重なるように */
  padding: 80px 0; /* 上下のマイナスマージン分をパディングで相殺 */
  z-index: 5;
}

/* 背景を3分割 */
.about::before,
.about::after {
  content: "";
  position: absolute;
  left: 0;
  width: 100%;
  background-size: 100% 100%;
  background-repeat: no-repeat;
  z-index: -1;
}

/* 上の際 */
.about::before {
  top: 0;
  height: 120px; /* 上部の画像の高さに応じて調整 */
  background-image: url("../img/top/about/about-bg-top.png");
}

/* 下の際 */
.about::after {
  bottom: 0;
  height: 120px; /* 下部の画像の高さに応じて調整 */
  background-image: url("../img/top/about/about-bg-bottom.png");
}

/* コンテンツ部分の背景 */
.about__container {
  position: relative;
  width: 100%;
  max-width: 100%;
  margin: 0 auto;
  padding: 64px 0;
}

/* 中央部分の背景（コンテンツの高さに合わせる） */
.about__container::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: url("../img/top/about/about-bg-middle.png");
  background-size: 100% 100%;
  background-repeat: no-repeat;
  z-index: -1;
}

.about__content {
  display: flex;
  gap: 64px;
  margin: 64px auto;
  max-width: 780px;
}

/* 見出し */
.about__header {
  flex-shrink: 0;
}

.about__title-wrapper {
  display: flex;
  gap: 16px;
  align-items: flex-start;
}

.about__title-line {
  width: 1px;
  height: 80px;
  background-color: var(--color-main);
  flex-shrink: 0;
  transform-origin: top;
  transform: scaleY(0);
  transition: transform 1.2s cubic-bezier(0.4, 0, 0.2, 1);
}

.about__title-line.is-animated {
  transform: scaleY(1);
}

.about__title-text {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.about__title {
  font-size: 40px;
  font-weight: var(--font-weight-bold);
  color: var(--color-main);
  margin: 0;
  line-height: 1.2;
}

.about__subtitle {
  font-size: 14px;
  font-weight: var(--font-weight-light);
  color: var(--color-main);
  margin: 0;
  line-height: 1.6;
}

/* テキストコンテンツ */
.about__text {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.about__paragraph {
  font-size: 16px;
  line-height: 2;
  color: var(--color-text);
  margin: 0;
  opacity: 0;
  transform: translateY(30px);
  transition:
    opacity 1s ease,
    transform 1s ease;
}

.about__paragraph.is-animated {
  opacity: 1;
  transform: translateY(0);
}

.about__paragraph:nth-child(1) {
  transition-delay: 0s;
}

.about__paragraph:nth-child(2) {
  transition-delay: 0.8s;
}

.about__paragraph:nth-child(3) {
  transition-delay: 1.5s;
}

.about__paragraph:nth-child(4) {
  transition-delay: 2.2s;
}

/* 画像 */
.about__image {
  width: 100%;
  max-width: 1024px;
  margin: 64px auto 0;
}

.about__img {
  width: 100%;
  height: auto;
  display: block;
  opacity: 0;
  transform: scale(1.05);
  transition:
    opacity 1.5s ease,
    transform 1.5s ease;
}

.about__img.is-animated {
  opacity: 1;
  transform: scale(1);
}

/* タブレット対応 */
@media (max-width: 1024px) {
  .about {
    margin: -60px auto -60px;
    padding: 60px 0;
  }

  .about::before,
  .about::after {
    height: 80px;
  }

  .about__container {
    padding: 40px 0 60px;
  }

  .about__content {
    flex-direction: column;
    gap: 40px;
    margin-bottom: 40px;
  }

  .about__title {
    font-size: 36px;
  }

  .about__title-line {
    height: 70px;
  }

  .about__text {
    gap: 20px;
  }

  .about__image {
    margin-top: 40px;
  }
}

/* スマホ対応 */
@media (max-width: 768px) {
  .about {
    margin: -40px auto -40px;
    padding: 40px 0;
  }

  .about::before,
  .about::after {
    height: 60px;
  }

  .about__container {
    padding: 80px 0 40px 0;
  }

  .about__content {
    gap: 32px;
    margin-top: 0;
    margin-bottom: 32px;
  }

  .about__title-wrapper {
    gap: 12px;
    margin: 0 16px;
  }

  .about__title {
    font-size: 32px;
  }

  .about__subtitle {
    font-size: 12px;
  }

  .about__title-line {
    height: 60px;
  }

  .about__text {
    gap: 16px;
    margin: 0 16px;
  }

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

  .about__paragraph br {
    display: none; /* スマホでは改行を無効化 */
  }

  .about__image {
    margin-top: 32px;
  }

  .about__img {
    transform: scale(0.95);
  }

  .about__img.is-animated {
    transform: scale(1);
  }
}

/* ===================================
 * Field Section - 現場セクション
 * =================================== */

.section--field {
  padding: 120px 0;
  background-color: #fff;
  overflow: hidden;
}

.field__container {
  max-width: 1920px;
  margin: 0 auto;
  padding: 0;
}

/* スライダー */
.field-slider {
  position: relative;
  width: 100%;
  margin-top: 16px;
  opacity: 0;
  transform: translateY(30px);
  transition:
    opacity 1s ease,
    transform 1s ease;
}

.field-slider.is-animated {
  opacity: 1;
  transform: translateY(0);
}

.field-slider .splide__track {
  padding: 24px 0;
  max-width: 100%;
}

.field-slider .splide__list {
  max-width: 100%;
}

.field-slider .splide__slide {
  width: 400px;
}

.field-slider__empty {
  text-align: center;
  width: 100%;
  padding: 60px 20px;
  color: var(--color-text);
  font-size: 16px;
  margin: 0;
}

/* ナビゲーションボタン */
.field-slider__button-prev,
.field-slider__button-next {
  width: 106px !important;
  height: 106px !important;
  background-color: rgba(255, 255, 255, 0.8) !important;
  border: none !important;
  border-radius: 50% !important;
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 10;
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 1 !important;
}

.field-slider__button-prev:hover,
.field-slider__button-next:hover {
  background-color: rgba(255, 255, 255, 0.9) !important;
}

.field-slider__button-prev img,
.field-slider__button-next img {
  width: 32px;
  height: 32px;
  display: block;
}

.field-slider__button-next img {
  transform: scaleX(-1);
}

.field-slider__button-prev {
  left: max(20px, calc((100vw - 1280px) / 2 + 20px));
}

.field-slider__button-next {
  right: max(20px, calc((100vw - 1280px) / 2 + 20px));
}

.field-slider__button-prev:disabled,
.field-slider__button-next:disabled {
  opacity: 0.3 !important;
  cursor: not-allowed;
}

/* フィールドカード */
.field-card {
  background-color: #fff;
  overflow: hidden;
  transition: all 0.3s ease;
  cursor: pointer;
  height: 100%;
  max-width: 400px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
}

.field-card:hover {
  transform: translateY(-4px);
}

/* キャッチコピー */
.field-card__catchphrase {
  padding: 10px 24px;
  display: flex;
  align-items: center;
  gap: 16px;
  min-height: 60px;
}

.field-card__catchphrase::before {
  content: "";
  display: block;
  width: 1px;
  height: 40px;
  background-color: var(--color-accent);
  transform: rotate(45deg);
  flex-shrink: 0;
}

/* キャッチコピーがない場合のスペーサー */
.field-card__catchphrase:not(:has(*)) {
  padding: 0 !important;
  min-height: 80px;
}

.field-card__catchphrase:not(:has(*))::before {
  content: none !important;
  display: none !important;
}

.field-card__catchphrase-text {
  font-size: 20px;
  font-weight: 500;
  color: var(--color-accent);
  white-space: nowrap;
}

/* 画像 */
.field-card__image {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background-color: #f5f5f5;
  border-radius: 6px;
}

.field-card__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.field-card:hover .field-card__image img {
  transform: scale(1.05);
}

/* コンテンツ */
.field-card__content {
  padding: 10px 0;
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.field-card__title {
  font-size: 20px;
  font-weight: var(--font-weight-bold);
  color: var(--color-main);
  margin: 0;
  line-height: 1.4;
}

.field-card__location {
  font-size: 14px;
  font-weight: var(--font-weight-light);
  color: var(--color-text);
  margin: 0;
  line-height: 1.6;
}

/* タブレット対応 */
@media (max-width: 1024px) {
  .section--field {
    padding: 80px 0;
  }

  .field__header {
    margin-bottom: 40px;
    padding: 0 40px;
  }

  .field-slider {
    padding: 0 40px;
  }

  .field-slider__button-prev {
    left: 10px;
  }

  .field-slider__button-next {
    right: 10px;
  }

  .field-card__catchphrase {
    padding: 8px 16px;
    min-height: 54px;
  }

  .field-card__catchphrase:empty {
    padding: 0;
    min-height: 54px;
  }

  .field-card__catchphrase-text {
    font-size: 18px;
  }

  .field-card__title {
    font-size: 18px;
  }
}

/* スマホ対応 */
@media (max-width: 768px) {
  .section--field {
    padding: 60px 0;
  }

  .field__header {
    margin-bottom: 32px;
    padding: 0 16px;
  }

  .field__container {
    padding: 0;
  }

  .field-slider {
    margin-top: 40px;
    padding: 0;
  }

  .field-slider .splide__slide {
    width: calc(100vw - 80px);
    max-width: 320px;
  }

  .field-slider__button-prev,
  .field-slider__button-next {
    width: 48px !important;
    height: 48px !important;
  }

  .field-slider__button-prev img,
  .field-slider__button-next img {
    width: 20px;
    height: 20px;
  }

  .field-slider__button-prev {
    left: 8px !important;
  }

  .field-slider__button-next {
    right: 8px !important;
  }

  .field-card__catchphrase {
    padding: 8px 12px;
    min-height: 46px;
  }

  .field-card__catchphrase:not(:has(*)) {
    padding: 0 !important;
    min-height: 62px;
  }

  .field-card__catchphrase:not(:has(*))::before {
    content: none !important;
    display: none !important;
  }

  .field-card__catchphrase::before {
    height: 30px;
  }

  .field-card__catchphrase-text {
    font-size: 16px;
  }

  .field-card__content {
    padding: 16px;
  }

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

  .field-card__location {
    font-size: 12px;
  }
}

/* ===================================
 * Modal - モーダル
 * =================================== */

.modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 9999;
  display: none;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.modal--open {
  opacity: 1;
}

.modal__overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.8);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  overflow-y: auto;
  cursor: pointer;
}

.modal__content {
  position: relative;
  background-color: #fff;
  max-width: 900px;
  width: 96%;
  max-height: 70vh;
  overflow-y: auto;
  border-radius: 8px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
  cursor: default;
  padding: 60px 80px;
}

.modal__close {
  position: absolute;
  top: 20px;
  right: 20px;
  width: 40px;
  height: 40px;
  background: none;
  border: none;
  font-size: 28px;
  color: var(--color-main);
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
  z-index: 10;
}

.modal__close:hover {
  color: var(--color-accent);
  transform: rotate(90deg);
}

.modal__close:focus {
  outline: none;
}

.modal__header {
  margin-bottom: 40px;
}

.modal__title {
  font-size: 32px;
  font-weight: var(--font-weight-bold);
  color: var(--color-main);
  margin: 0 0 12px 0;
  line-height: 1.4;
}

.modal__location {
  font-size: 16px;
  font-weight: var(--font-weight-light);
  color: var(--color-text);
  margin: 0;
  line-height: 1.6;
}

.modal__image {
  width: 100%;
  margin-bottom: 40px;
  border-radius: 4px;
  overflow: hidden;
}

.modal__image img {
  width: 100%;
  height: auto;
  display: block;
}

.modal__body {
  font-size: 16px;
  line-height: 2;
  color: var(--color-text);
}

/* モーダルリンクセクション */
.modal__links {
  display: flex;
  gap: 16px;
  margin-top: 40px;
  padding-top: 32px;
  border-top: 1px solid #e0e0e0;
}

.modal__link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 24px;
  border-radius: 8px;
  text-decoration: none;
  font-size: 14px;
  font-weight: var(--font-weight-medium);
  transition: all 0.3s ease;
  border: 1px solid #e0e0e0;
  background-color: #fff;
}

.modal__link--instagram {
  color: #e4405f;
}

.modal__link--instagram:hover {
  background-color: #e4405f;
  color: #fff;
  border-color: #e4405f;
}

.modal__link--website {
  color: var(--color-main);
}

.modal__link--website:hover {
  background-color: var(--color-main);
  color: #fff;
  border-color: var(--color-main);
}

.modal__link-icon {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
}

/* single.cssのスタイルを適用するクラス */
.single-content h1,
.single-content h2,
.single-content h3,
.single-content h4,
.single-content h5,
.single-content h6,
.single-content p,
.single-content ul,
.single-content ol,
.single-content blockquote,
.single-content figure {
  /* single.cssのスタイルを継承 */
}

/* タブレット対応 */
@media (max-width: 1024px) {
  .modal__content {
    padding: 50px 40px;
  }

  .modal__close {
    top: 15px;
    right: 15px;
    width: 36px;
    height: 36px;
    font-size: 24px;
  }

  .modal__title {
    font-size: 28px;
  }

  .modal__location {
    font-size: 15px;
  }

  .modal__links {
    gap: 12px;
  }

  .modal__link {
    padding: 10px 20px;
    font-size: 13px;
  }

  .modal__link-icon {
    width: 18px;
    height: 18px;
  }
}

/* スマホ対応 */
@media (max-width: 768px) {
  .modal__overlay {
    padding: 0;
  }

  .modal__content {
    padding: 40px 24px;
    max-height: 85vh;
    max-width: 80%;
  }

  .modal__close {
    top: 10px;
    right: 10px;
    width: 32px;
    height: 32px;
    font-size: 20px;
  }

  .modal__header {
    margin-bottom: 32px;
  }

  .modal__title {
    font-size: 24px;
  }

  .modal__location {
    font-size: 14px;
  }

  .modal__image {
    margin-bottom: 32px;
  }

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

  .modal__links {
    flex-direction: column;
    gap: 12px;
    margin-top: 32px;
    padding-top: 24px;
  }

  .modal__link {
    width: 90%;
    justify-content: center;
    padding: 12px 16px;
  }
}

/* ===================================
 * People Section - 働く人セクション
 * =================================== */

.people {
  position: relative;
  width: 100%;
  max-width: 1920px;
  margin: -80px auto -80px;
  padding: 80px 0;
  z-index: 5;
}

/* 背景を3分割 */
.people::before,
.people::after {
  content: "";
  position: absolute;
  left: 0;
  width: 100%;
  background-size: 100% 100%;
  background-repeat: no-repeat;
  z-index: -1;
}

/* 上の際 */
.people::before {
  top: 0;
  height: 80px;
  background-image: url("../img/top/people/people-bg-top.png");
}

/* 下の際 */
.people::after {
  bottom: 0;
  height: 80px;
  background-image: url("../img/top/people/people-bg-bottom.png");
}

/* コンテンツ部分の背景 */
.people__container {
  position: relative;
  width: 100%;
  max-width: 100%;
  margin: 0 auto;
  padding: 120px 0 80px 0;
}

/* 中央部分の背景 */
.people__container::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: url("../img/top/people/people-bg-middle.png");
  background-size: 100% 100%;
  background-repeat: no-repeat;
  z-index: -1;
}

.people__content {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 80px;
  display: flex;
  gap: 40px;
  align-items: flex-start;
}

/* 見出し */
.people__header {
  flex-shrink: 0;
}

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

.people__title {
  font-size: 40px;
  font-weight: var(--font-weight-black);
  color: var(--color-main);
  margin: 0;
  line-height: 1.2;
}

.people__subtitle {
  font-size: 14px;
  font-weight: var(--font-weight-light);
  color: var(--color-main);
  margin: 0;
  line-height: 1.6;
  writing-mode: vertical-rl;
  text-orientation: upright;
}

.people__title-line {
  width: 1px;
  height: 240px;
  background-color: var(--color-main);
  transform-origin: top;
  transform: scaleY(0);
  transition: transform 1.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.people__title-line.is-animated {
  transform: scaleY(1);
}

/* カードリストとボタンのラッパー */
.people__content > div:last-child {
  flex: 1;
  display: flex;
  gap: 40px;
  align-items: flex-start;
}

/* カードリスト */
.people__grid {
  flex: 1;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 120px 24px;
}

/* moreボタン */
.people__more {
  flex-shrink: 0;
  align-self: flex-end;
  opacity: 0;
  transform: translateY(30px);
  transition:
    opacity 1s ease,
    transform 1s ease;
  transition-delay: 0.9s;
}

.people__more.is-animated {
  opacity: 1;
  transform: translateY(0);
}

.people__more-link {
  display: inline-block;
  font-size: 18px;
  font-weight: var(--font-weight-medium);
  color: var(--color-main);
  text-decoration: none;
  transition: color 0.3s ease;
}

.people__more-link:hover {
  color: var(--color-accent);
}

/* タブレット対応 */
@media (max-width: 1024px) {
  .people {
    margin: -60px auto -60px;
    padding: 60px 0;
  }

  .people::before,
  .people::after {
    height: 61px;
  }

  .people__container {
    padding: 100px 0 60px;
  }

  .people__content {
    flex-direction: column;
    gap: 60px;
    padding: 40px;
  }

  .people__title-wrapper {
    flex-direction: row;
    gap: 16px;
  }

  .people__subtitle {
    writing-mode: horizontal-tb;
    text-orientation: mixed;
  }

  .people__title-line {
    width: 240px;
    height: 1px;
  }

  .people__grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 32px 20px;
  }

  .people__more {
    position: static;
    text-align: right;
    margin-top: 40px;
  }
}

/* スマホ対応 */
@media (max-width: 768px) {
  .people {
    margin: -40px auto -40px;
    padding: 40px 0;
  }

  .people::before {
    height: 40px;
  }
  .people::after {
    height: 41px;
  }

  .people__container {
    padding: 80px 0 40px;
  }

  .people__content {
    gap: 40px;
    align-items: center;
  }

  .people__content > div:last-child {
    flex-direction: column;
  }

  .people__title-wrapper {
    gap: 12px;
  }

  .people__title {
    font-size: 32px;
  }

  .people__subtitle {
    font-size: 12px;
  }

  .people__title-line {
    width: 120px;
  }

  .people__grid {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .people__more {
    align-self: center;
    margin-top: 32px;
  }

  .people__more-link {
    font-size: 16px;
  }
}

/* ===================================
 * Career Section - キャリアセクション
 * =================================== */

.career {
  padding: 120px 0;
  background-color: #fff;
}

.career__header {
  max-width: 1280px;
  margin: 0 auto 60px;
  padding: 0 80px;
}

.career__content {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 80px;
  display: flex;
  gap: 32px;
  align-items: center;
}

.career__text-wrapper {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.career__heading {
  font-size: 26px;
  font-weight: var(--font-weight-black);
  color: var(--color-main);
  margin: 0;
  line-height: 1.6;
  opacity: 0;
  transform: translateY(30px);
  transition:
    opacity 1s ease,
    transform 1s ease;
}

.career__heading.is-animated {
  opacity: 1;
  transform: translateY(0);
}

.career__description {
  font-size: 18px;
  font-weight: var(--font-weight-bold);
  color: var(--color-text);
  margin: 0;
  line-height: 2;
  opacity: 0;
  transform: translateY(30px);
  transition:
    opacity 1s ease,
    transform 1s ease;
  transition-delay: 0.2s;
}

.career__description.is-animated {
  opacity: 1;
  transform: translateY(0);
}

.career__button {
  align-self: flex-start;
  display: block;
  opacity: 0;
  transform: translateY(30px);
  transition:
    opacity 1s ease,
    transform 1s ease;
  transition-delay: 0.4s;
}

.career__button.is-animated {
  opacity: 1;
  transform: translateY(0);
}

.career__image {
  flex-shrink: 0;
  flex: 0 0 474px;
  aspect-ratio: 4 / 3;
  border-radius: 12px;
  overflow: hidden;
  opacity: 0;
  transition: opacity 1.5s ease;
  transition-delay: 0.3s;
}

.career__image.is-animated {
  opacity: 1;
}

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

/* タブレット対応 */
@media (max-width: 1024px) {
  .career {
    padding: 80px 0;
  }

  .career__header {
    margin-bottom: 40px;
    padding: 0 40px;
  }

  .career__content {
    padding: 0 40px;
    gap: 60px;
  }

  .career__heading {
    font-size: 24px;
  }

  .career__description {
    font-size: 16px;
  }

  .career__image {
    width: 320px;
    height: 320px;
  }
}

/* スマホ対応 */
@media (max-width: 768px) {
  .career {
    padding: 60px 0;
  }

  .career__header {
    margin-bottom: 32px;
    padding: 0 24px;
  }

  .career__content {
    flex-direction: column;
    padding: 0 24px;
    gap: 40px;
  }

  .career__text-wrapper {
    gap: 24px;
  }

  .career__heading {
    font-size: 20px;
  }

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

  .career__description br {
    display: none;
  }

  .career__image {
    width: 100%;
    height: auto;
    aspect-ratio: 16 / 9;
    flex: none;
  }
}

/* ===================================
 * Job Section - 募集要項セクション
 * =================================== */

.job {
  position: relative;
  padding: 20px 0;
}

.job::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 20px;
  background-image: url("../img/top/job/job-bg-top.png");
  background-size: 100% 100%;
  background-repeat: no-repeat;
  opacity: 0.5;
}

.job::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 20px;
  background-image: url("../img/top/job/job-bg-bottom.png");
  background-size: 100% 100%;
  background-repeat: no-repeat;
  opacity: 0.5;
  z-index: 2;
}

.job__inner {
  position: relative;
  z-index: 1;
}

.job__inner::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: url("../img/top/job/job-bg-middle.png");
  background-size: 100% 100%;
  background-repeat: repeat-y;
  opacity: 0.5;
  z-index: -1;
}

.job__header {
  max-width: 1280px;
  margin: 0 auto 40px;
  padding: 64px 0 0 0;
}

.job__title-wrapper {
  display: flex;
  align-items: center;
  gap: 16px;
}

.job__title {
  font-size: 40px;
  font-weight: var(--font-weight-black);
  color: var(--color-main);
  margin: 0;
  line-height: 1.2;
}

.job__subtitle {
  font-size: 14px;
  font-weight: var(--font-weight-light);
  color: var(--color-main);
  margin: 0;
  line-height: 1.6;
}

.job__title-line {
  width: 240px;
  height: 1px;
  background-color: var(--color-main);
  transform-origin: left;
  transform: scaleX(0);
  transition: transform 1.2s cubic-bezier(0.4, 0, 0.2, 1);
}

.job__title-line.is-animated {
  transform: scaleX(1);
}

/* エントリーボタン */
.job__entry {
  display: flex;
  justify-content: center;
  align-items: center;
  padding-bottom: 64px;
}

.job__entry-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--color-main);
  color: var(--color-white);
  text-decoration: none;
  padding: 18px 0;
  border-radius: 40px;
  box-shadow: inset 0 0 0 4px var(--color-main);
  font-weight: var(--font-weight-bold);
  font-size: var(--font-size-24);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
  width: 140px;
}

.job__entry-text {
  position: relative;
  padding-left: 24px;
}

.job__entry-text::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 0px;
  width: 10px;
  height: 10px;
  background: var(--color-white);
  border-radius: 40px;
  opacity: 1;
  transition: opacity 0.3s ease;
  z-index: 0;
  display: inline-block;
  transform: translateY(-50%);
}

.job__entry-button::before {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(255, 255, 255, 0.3),
    transparent
  );
  transition: left 0.5s ease;
}

.job__entry-button:hover::before {
  left: 100%;
}

.job__entry-button:hover {
  transform: translateY(2px);
}

/* タブレット対応 */
@media (max-width: 1024px) {
  .job {
    padding: 20px 0;
  }

  .job__header {
    margin-bottom: 40px;
    padding: 40px;
  }

  .job__title {
    font-size: 36px;
  }

  .job__title-line {
    width: 180px;
  }

  .job__entry {
    margin-top: 48px;
    padding-bottom: 48px;
  }
}

/* スマホ対応 */
@media (max-width: 768px) {
  .job {
    padding: 20px 0;
  }

  .job__header {
    margin-bottom: 32px;
    padding: 0 24px;
  }

  .job__title-wrapper {
    gap: 12px;
    padding-top: 40px;
  }

  .job__title {
    font-size: 32px;
  }

  .job__subtitle {
    font-size: 12px;
  }

  .job__title-line {
    width: 120px;
  }

  .job__entry {
    margin-top: 40px;
    padding-bottom: 40px;
  }

  .job__entry-button {
    padding: 16px 0;
    width: 120px;
    font-size: var(--font-size-20);
  }

  .job__entry-text {
    padding-left: 20px;
  }

  .job__entry-text::before {
    width: 8px;
    height: 8px;
  }
}

/* ===================================
 * Membership Section - メンバー登録セクション
 * =================================== */

.membership {
  position: relative;
  background-color: #faf4ed;
  padding: 0 0 20px 0;
  margin-top: -10px;
}

.membership::after {
  content: "";
  position: absolute;
  bottom: -120px;
  left: 0;
  width: 100%;
  height: 120px;
  background-image: url("../img/top/membership/membership-bg-bottom.png");
  background-size: 100% 100%;
  background-repeat: no-repeat;
}

.membership__inner {
  position: relative;
  z-index: 1;
  padding: 64px 0;
}

.membership__content {
  max-width: 1280px;
  margin: 60px auto 0;
  padding: 0 80px;
  display: flex;
  align-items: center;
  gap: 60px;
}

.membership__image {
  flex-shrink: 0;
  width: 50%;
  opacity: 0;
  transition: opacity 1.5s ease;
  transition-delay: 0.3s;
}

.membership__image.is-animated {
  opacity: 1;
}

.membership__image img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 6px;
}

.membership__text {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 32px;
}

.membership__button-wrapper {
  opacity: 0;
  transform: translateY(30px);
  transition:
    opacity 1s ease,
    transform 1s ease;
  transition-delay: 0.4s;
}

.membership__button-wrapper.is-animated {
  opacity: 1;
  transform: translateY(0);
}

.membership__heading {
  font-size: 26px;
  font-weight: var(--font-weight-bold);
  color: var(--color-main);
  line-height: 1.8;
  margin: 0;
  opacity: 0;
  transform: translateY(30px);
  transition:
    opacity 1s ease,
    transform 1s ease;
}

.membership__heading.is-animated {
  opacity: 1;
  transform: translateY(0);
}

.membership__description {
  display: flex;
  flex-direction: column;
  gap: 24px;
  opacity: 0;
  transform: translateY(30px);
  transition:
    opacity 1s ease,
    transform 1s ease;
  transition-delay: 0.2s;
}

.membership__description.is-animated {
  opacity: 1;
  transform: translateY(0);
}

.membership__description p {
  font-size: 16px;
  font-weight: var(--font-weight-regular);
  color: var(--color-main);
  line-height: 1.8;
  margin: 0;
}

/* タブレット対応 */
@media (max-width: 1024px) {
  .membership__inner {
    padding: 80px 0;
  }

  .membership__content {
    margin-top: 40px;
    padding: 0 40px;
    gap: 40px;
  }

  .membership__image {
    width: 360px;
  }

  .membership__heading {
    font-size: 18px;
  }

  .membership__description p {
    font-size: 14px;
  }

  .membership::after {
    bottom: -60px;
    height: 60px;
  }
}

/* ===================================
 * News Section - お知らせセクション
 * =================================== */

.news {
  background-color: #fff;
  padding: 120px 0;
}

.news__inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 80px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 60px;
}

.news__list {
  width: 100%;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}

.news__empty {
  font-size: 16px;
  color: var(--color-main);
  text-align: center;
}

.news__button {
  display: flex;
  justify-content: center;
  opacity: 0;
  transform: translateY(30px);
  transition:
    opacity 1s ease,
    transform 1s ease;
  transition-delay: 0.45s;
}

.news__button.is-animated {
  opacity: 1;
  transform: translateY(0);
}

/* タブレット対応 */
@media (max-width: 1024px) {
  .news {
    padding: 80px 0;
  }

  .news__inner {
    padding: 0 40px;
    gap: 40px;
  }

  .news__list {
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
  }
}

/* スマホ対応 */
@media (max-width: 768px) {
  .news {
    padding: 60px 0;
  }

  .news__inner {
    padding: 0 24px;
    gap: 32px;
  }

  .news__list {
    grid-template-columns: 1fr;
    gap: 20px;
  }
}

/* スマホ対応 */
@media (max-width: 768px) {
  .membership__inner {
    padding: 60px 0;
  }

  .membership__content {
    margin-top: 32px;
    padding: 0 24px;
    flex-direction: column;
    gap: 32px;
  }

  .membership__image {
    width: 100%;
  }

  .membership__text {
    gap: 24px;
  }

  .membership__heading {
    font-size: 20px;
  }

  .membership__description {
    gap: 16px;
  }

  .membership__description p {
    font-size: 14px;
  }
}
