/* :rootでサイト共通の値を定義 */
:root {
  --color-primary: #005a9c;
  --color-accent: #ed6d35;
  --color-text: #333333;
  --color-text-light: #888888;
  --color-bg-light: #f7f9fc;
  --color-border: #ddd;
  --container-width: 960px;
  --container-padding: 1rem;
  --container-width: 960px;
  --color-border: #e0e0e0;
  --color-text-light: #777;
  --container-width: 960px;
  --color-primary: #005a9c;
  --color-border: #e0e0e0;
  --color-text-light: #555;
  --color-text: #333;
  --color-text-light: #888;
  --color-border: #e0e0e0;
  --color-link: #008000;
}

body {
  font-family: "Oswald", "IBM Plex Sans JP", sans-serif;
  color: var(--color-text);
  margin: 0;
  background-color: #fff;
}

/*--------------------------------------------------*/
/* --- 全体を包むラッパー --- */
.hero-wrapper {
  position: relative;
  background-color: var(--color-bg-light);
  min-height: 50vh; /* これで画像分の高さを確保 */
  width: 100%;
  overflow: hidden;
}

/* --- イラスト（画面右上に固定配置） --- */
.hero__visual {
  position: absolute;
  top: 0;
  right: 0;
  width: 100%;
  height: 50vh;
  z-index: 2;
}
.hero__visual img {
  width: 100%;
  height: 100%;
  height: 50vh;
  object-fit: contain;
  object-position: right center;
}

/* --- コンテンツコンテナ --- */
.hero {
  position: relative;
  max-width: var(--container-width);
  max-width: 1300px;
  margin: 0 auto;
  padding-top: 4rem;
}

/* --- 左カラム（テキスト） --- */
.hero__left-column {
  width: 55%;
  padding: 50px var(--container-padding);
  padding-bottom: 8rem;
  position: relative;
  z-index: 3;
}

/* --- テキストスタイル --- */
.hero__content {
  flex-grow: 1;
}
.hero__breadcrumb {
  font-size: clamp(0.75rem, 2vw, 0.875rem);
  margin: 0 0 1rem;
}
.hero__title {
  font-size: clamp(2.5rem, 10vw, 4.5rem);
  font-weight: 800;
  line-height: 1.1;
  margin: 0;
  color: #0076c8;
  color: #fcc800;
}
.hero__title .c-red {
  color: var(--color-accent);
}
.hero__subtitle {
  font-size: clamp(1rem, 4vw, 1.25rem);
  font-weight: bold;
  margin: 0.5rem 0 0;
}

/* --- 帯バナー（青帯） --- */
.hero__banner {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  z-index: 1;
}
.hero__banner-inner {
  background-color: var(--color-primary);
  color: white;
  padding: 1.5rem var(--container-padding);
  max-width: 55%;
}
.hero__banner h2 {
  font-size: clamp(1rem, 5vw, 1.75rem);
  margin: 0;
}

/*--------------------------------------------------*/
/* --- レスポンシブ対応 (768px以下) --- */
@media (max-width: 768px) {
  .hero-wrapper {
    min-height: 29vh; /* これで画像分の高さを確保 */
  }
  .hero__visual {
    position: absolute; /* PCと同じく右上固定 */
    top: 0;
    right: 0;
    width: 50vw; /* 画面幅の半分までに抑える */
    height: auto;
    z-index: 2;
    right: -18%;
    width: 90vw;
    height: auto;
  }

  .hero__visual img {
    width: 100%;
    height: auto;
    object-fit: contain;
    object-position: right top;
  }

  .hero__left-column {
    padding-top: 1rem;
    padding-bottom: 6rem;
    position: relative;
    z-index: 3;
  }

  .hero__banner {
    position: absolute;
    bottom: 0;
    left: 0;
    z-index: 1;
  }

  .hero__banner-inner {
    max-width: 90%;
  }
}

/* ----------------------------------------------------- */
.officers-list {
  padding: 4rem 0;
}

.officers-list__container {
  max-width: var(--container-width);
  margin: 0 auto;
  padding: 0 1rem;
  max-width: 1100px;
  padding: 5rem 2rem;
  padding-top: 0;
}

.section-title {
  font-size: 1.5rem;
  font-weight: bold;
  padding-bottom: 0.5rem;
  margin-bottom: 2.5rem;
  display: inline-block;
  border-bottom: 3px solid var(--color-primary);
}

.officers-list-ul {
  /* ulタグのクラス名を変更 */
  list-style: none;
  padding: 0;
  margin: 0;
  /*
  border: 1px solid var(--color-border); /* 全体を枠で囲む 
  */
  border-radius: 4px;
  overflow: hidden; /* 角丸を適用するため */
}

.officers-list-item {
  display: flex;
  flex-wrap: wrap; /* スマホ表示のために常に有効化 */
  align-items: center; /* 中央揃えに */
  padding: 1.25rem;
  border-bottom: 1px solid var(--color-border);
}
.officers-list-ul li:last-child {
  border-bottom: none; /* 最後の要素の下線を消す */
}

/* ヘッダー行専用のスタイル */
.officers-list-header {
  background-color: #f0f6fa;
  font-weight: bold;
  color: var(--color-primary);
}
.officers-list-header p {
  font-weight: bold; /* pタグも太字に */
}

/* 各カラムのスタイル */
.officers-list-item__position {
  flex: 0 0 130px; /* 役職カラムの幅 */
  font-weight: bold;
}

.officers-list-item__name {
  flex: 0 0 150px; /* 氏名カラムの幅 */
  font-size: 1.3rem;
}

.officers-list-item__company {
  flex: 1 1 300px; /* 会社名カラムは残りの幅をすべて使用 */
  margin: 0;
  color: var(--color-text);
  font-size: 1.35rem;
}
/* ヘッダーの会社名部分だけ文字色を戻す */
.officers-list-header .officers-list-item__company {
  color: inherit;
}

/* --- スマホ対応用のスタイル (768px以下) --- */
@media (max-width: 768px) {
  .officers-list__container {
    padding-top: 0;
    padding-left: 1rem;
    padding-right: 1rem;
  }
  .officers-list {
    padding: 2.5rem 0;
  }
  .section-title {
    font-size: 1.25rem;
    margin-bottom: 2rem;
  }
  .officers-list-item {
    padding: 1rem;
  }

  /* 役職と氏名を1行に */
  .officers-list-item__position {
    flex: 0 0 100px; /* 少し幅を詰める */
  }
  .officers-list-item__name {
    flex: 1; /* 残りの幅を氏名が取る */
    font-size: 1.25rem;
  }

  /* 会社名を改行して表示 */
  .officers-list-item__company {
    flex-basis: 100%; /* 幅100%で強制的に改行 */
    margin-top: 0.75rem; /* 上の行との間に余白 */
    padding-left: 0;
    font-size: 1.1rem;
  }
}

/* -------------------------------------------------------- */
/* --- 全体を囲むコンテナ --- */
.content-wrapper {
  max-width: 1040px;
  margin: 0 auto;
  padding: 5rem 2rem;
}

/* --- セクション共通のスタイル --- */
.section-label-en {
  font-size: 4.5rem;
  font-size: 3.8rem;
  font-weight: 900;
  line-height: 1.1;
  color: #000;
  color: #e9bc00;
  margin: 0;
  letter-spacing: 0.02em;
}

.catchphrase-jp {
  font-size: 2.75rem;
  font-weight: 700;
  line-height: 1.6;
  color: #000;
  margin: 0;
}

.section-divider {
  border: none;
  border-top: 1px solid #e0e0e0;
  margin: 5rem 0;
}

/* --- VISIONセクション (Flexboxを使用) --- */
.vision-section {
  display: flex;
  align-items: center;
  gap: 3rem;
}

.vision-section .label-column {
  flex: 0 0 200px; /* 左カラムの幅を固定 */
}

.vision-section .text-column {
  flex: 1;
}

/* --- MISSIONセクション (CSS Gridを使用) --- */
.mission-section {
  display: grid;
  /* 左カラム(ラベルと画像) と 右カラム(テキスト) */
  grid-template-columns: 300px 1fr;
  /* 1行目(ラベル), 2行目(画像) */
  grid-template-rows: auto 1fr;
  gap: 2rem 3rem; /* 行間 2rem, カラム間 3rem */
  margin-top: 3rem;
  background-color: #fff;
  padding: 15px;
  border-radius: 20px;
}

.mission-section .section-label-en {
  grid-column: 1 / 2;
  grid-row: 1 / 2;
}

.mission-section .image-column {
  grid-column: 1 / 2;
  grid-row: 2 / 3;
}

.mission-section .image-column img {
  width: 100%;
  height: auto;
  display: block;
}

.mission-section .text-column {
  grid-column: 2 / 3;
  grid-row: 1 / 3; /* テキストを1行目から2行目までまたがせる */
  padding-top: 0.5rem; /* 見出しとの高さを微調整 */
}

.mission-section .text-column p {
  font-size: 0.95rem;
  font-size: 1.15rem;
  line-height: 2.2;
  margin: 0 0 2rem 0;
}
.mission-section .text-column p span {
  font-size: 2rem;
  font-weight: bold;
}
.mission-section .text-column .catchphrase-jp {
  margin-top: 3rem;
}

/* --- スマホ対応 (レスポンシブ) --- */
@media (max-width: 768px) {
  .content-wrapper {
    padding: 3rem 1rem;
  }

  .section-label-en {
    font-size: 2.5rem;
  }

  .catchphrase-jp {
    font-size: 1.75rem;
  }

  .section-divider {
    margin: 3rem 0;
  }

  /* Visionセクションを縦積みに */
  .vision-section {
    flex-direction: column;
    align-items: flex-start;
    gap: 1.5rem;
  }

  .vision-section .label-column {
    flex-basis: auto; /* 幅固定を解除 */
  }

  /* Missionセクションを縦積みに */
  .mission-section {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
  }

  .mission-section .text-column {
    padding-top: 0;
  }

  .mission-section .text-column p {
    font-size: 0.9rem;
    line-height: 1.9;
    margin-bottom: 1.5rem;
  }

  .mission-section .text-column .catchphrase-jp {
    margin-top: 2rem;
  }
}

/*-------------------------------------------------------*/
.company-profile {
  padding: 5rem 2rem;
  max-width: 1100px;
  margin: 0 auto;
  background-color: #ffffd6;
}

.company-profile__title-en {
  font-size: 4.5rem;
  font-weight: normal;
  margin: 0 0 0.5rem 0;
  color: var(--color-primary);
}

.company-profile__title-jp {
  font-size: 1.1rem;
  font-weight: bold;
  margin: 0 0 3rem 0;
  color: var(--color-primary);
}

.company-profile__list {
  margin: 0;
  padding: 0;
  list-style: none;
  display: flex;
  flex-wrap: wrap; /* アイテムを折り返す */
  gap: 3rem 4rem; /* 行間 3rem, カラム間 4rem */
}

.company-profile__item {
  padding-top: 2.5rem;
  border-top: 1px solid var(--color-border);
  flex: 1 1 30%; /* PCでは基本3カラムになるように幅を指定 */
  min-width: 280px; /* カラムの最小幅 */
}

.company-profile__item dt {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  margin-bottom: 0.8rem;
}

.company-profile__item .label-jp {
  font-size: 0.9rem;
  font-weight: bold;
  color: var(--color-primary);
}

.company-profile__item .label-en {
  font-size: 0.8rem;
  font-size: 1rem;
  color: var(--color-text-light);
}

.company-profile__item dd {
  margin: 0;
  font-size: 1rem;
  font-size: 1.25rem;
  line-height: 1.8;
  font-weight: 500;
}

.map-link {
  display: inline-block;
  margin-top: 0.8rem;
  color: var(--color-link);
  text-decoration: none;
  font-weight: bold;
}
.map-link:hover {
  text-decoration: underline;
}

.map-link svg {
  width: 1em;
  height: 1em;
  vertical-align: -0.1em;
  margin-left: 0.2em;
}

/* --- スマホ対応 (768px以下) --- */
@media (max-width: 768px) {
  .company-profile {
    padding: 3rem 1.5rem;
  }

  .company-profile__title-en {
    font-size: 3rem;
  }

  .company-profile__title-jp {
    font-size: 1rem;
    margin-bottom: 2rem;
  }

  .company-profile__list {
    display: block; /* Flexboxを解除して縦積みに */
  }

  .company-profile__item {
    width: 100%; /* 幅を100%に */
    padding-top: 1.5rem;
    margin-top: 1.5rem;
  }

  /* 最初のアイテムの上の余白と線を消す */
  .company-profile__list li:first-child {
    margin-top: 0;
  }
}

/* ----------アニメーション ---------------------*/

/* イージング関数を定義 */
:root {
  --ease-out-quint: cubic-bezier(0.22, 1, 0.36, 1);
}

/* アニメーションのコンテナ */
.animate-mask {
  position: relative;
  overflow: hidden; /* はみ出した要素を隠す（最重要） */
}

/* マスク本体（色のついたレイヤー）の基本設定 */
.animate-mask::before {
  content: "";
  position: absolute;
  top: 0;
  width: 100%;
  height: 100%;
  background-color: #202f55; /* マスクの色。サイトのテーマカラー等に変更可 */
  transition: transform 1s var(--ease-out-quint);
}

/* コンテンツ本体（見出し、段落、画像など）の基本設定 */
.animate-mask > * {
  display: block; /* transformを適用するため */
  transition: transform 1s var(--ease-out-quint);
  margin: 0; /* ★★★ この1行を追加してマージンをリセット ★★★ */
}
.animate-mask > p > span {
  display: inline;
}

/* --- 左側の要素（左から右へカーテンが開く） --- */
.vision-section .label-column .animate-mask::before,
.mission-section .label-column .animate-mask::before,
.mission-section .image-column .animate-mask::before {
  left: 0;
  transform: scaleX(1); /* 初期状態: 左から右へ100%の幅 */
  transform-origin: left;
}
.vision-section .label-column .animate-mask > *,
.mission-section .label-column .animate-mask > *,
.mission-section .image-column .animate-mask > * {
  transform: translateX(101%); /* 初期状態: 右に隠す */
}

/* 左側要素のアニメーション後 */
.js-scroll-trigger.is-active .vision-section .label-column .animate-mask::before,
.js-scroll-trigger.is-active .mission-section .label-column .animate-mask::before,
.js-scroll-trigger.is-active .mission-section .image-column .animate-mask::before {
  transform: scaleX(0); /* 幅を0にして消す */
}
.js-scroll-trigger.is-active .vision-section .label-column .animate-mask > *,
.js-scroll-trigger.is-active .mission-section .label-column .animate-mask > *,
.js-scroll-trigger.is-active .mission-section .image-column .animate-mask > * {
  transform: translateX(0); /* 定位置に戻す */
}

/* --- 右側の要素（右から左へカーテンが開く） --- */
.vision-section .text-column .animate-mask::before,
.mission-section .text-column .animate-mask::before {
  right: 0;
  transform: scaleX(1); /* 初期状態: 右から左へ100%の幅 */
  transform-origin: right;
}
.vision-section .text-column .animate-mask > *,
.mission-section .text-column .animate-mask > * {
  transform: translateX(-101%); /* 初期状態: 左に隠す */
}

/* 右側要素のアニメーション後 */
.js-scroll-trigger.is-active .vision-section .text-column .animate-mask::before,
.js-scroll-trigger.is-active .mission-section .text-column .animate-mask::before {
  transform: scaleX(0); /* 幅を0にして消す */
}
.js-scroll-trigger.is-active .vision-section .text-column .animate-mask > *,
.js-scroll-trigger.is-active .mission-section .text-column .animate-mask > * {
  transform: translateX(0); /* 定位置に戻す */
}

/* --- 区切り線のアニメーション（縦バージョンと同じ） --- */
.animate-mask .section-divider {
  transform: translateY(101%);
}
.js-scroll-trigger.is-active .animate-mask .section-divider {
  transform: translateY(0);
}
.animate-mask > .section-divider {
  width: 100%; /* hrは幅指定が必要 */
}

/* --- 全体の時間差（カスケード）設定（変更なし） --- */
.js-scroll-trigger.is-active .vision-section .label-column .animate-mask,
.js-scroll-trigger.is-active .vision-section .text-column .animate-mask {
  transition-delay: 0.1s;
}
.js-scroll-trigger.is-active > .animate-mask {
  /* hrのコンテナ */
  transition-delay: 0.2s;
}
.js-scroll-trigger.is-active .mission-section .label-column .animate-mask {
  transition-delay: 0.3s;
}
.js-scroll-trigger.is-active .mission-section .image-column .animate-mask {
  transition-delay: 0.4s;
}
.js-scroll-trigger.is-active .mission-section .text-column .animate-mask:nth-of-type(1) {
  transition-delay: 0.5s;
}
.js-scroll-trigger.is-active .mission-section .text-column .animate-mask:nth-of-type(2) {
  transition-delay: 0.6s;
}
.js-scroll-trigger.is-active .mission-section .text-column .animate-mask:nth-of-type(3) {
  transition-delay: 0.7s;
}
.js-scroll-trigger.is-active .mission-section .text-column .animate-mask:nth-of-type(4) {
  transition-delay: 0.8s;
}
