/* ──────────────────────────────────────────
   Message
────────────────────────────────────────── */
/* 変数 */
:root {
  --header-height: 100px; /* ヘッダーの高さに合わせて調整 */
  --header-sp-height: 70px; /* ヘッダーの高さに合わせて調整(スマホ) */
}

/* ──────────────────────────────────────────
   リクルートトップ
──────────────────────────────────────────*/

/* ─── 固定写真レイヤー ─── */
/* 固定背景写真セクション */
.slider-section {
  height: 100vh;
  left: 0;
  overflow: hidden;
  position: fixed;
  top: var(--header-height);
  width: 100vw;
  z-index: -1;
}
/* 中央寄せコンテナ */
.slider-section .photo-container {
  border-radius: 30px;
  height: auto;
  margin: 0 auto;
  max-width: 1200px;
  overflow: hidden;
  position: relative;
  width: 100%;
}
/* 文字を見えるようにするカバーレイヤー */
.photo-layer {
  position: absolute;
  top: 0;
  left: 0;
  z-index: 1;
}
.photo-layer img {
  width: 100%;
}
/* 横に並べる wrapper */
.slider-section .photo-wrapper {
  display: flex;
  width: 400%;   /* スライド数×100% */
  height: 100%;
  transition: transform 1s ease-in-out;
  border-radius: 30px;
}
/* 各スライド */
.slider-section .photo-wrapper .slide {
  flex: 0 0 25%;    /* 100% / 4 */
  height: 100%;
  box-sizing: border-box;
}
.slider-section .photo-wrapper .slide img {
  display: block;
  width: 100%;
  height: auto;
  object-fit: cover;
}

@media screen and (max-width: 768px) {
  .slider-section {
    height: 90vh;
    top: var(--header-sp-height);
  }
  .slider-section .photo-container {
    max-width: 92%;
    height: 100%;
  }
  .slider-section .photo-layer img {
    height: 100vh;
  }
  .slider-section .photo-wrapper .slide img {
    height: 100%;
    width: auto;
  }
}


/* ─── スライド共通 ─── */
.cover-message-section {
  position: relative;
  height: 100vh;
  background: transparent;
  align-items: center;
  justify-content: center;
  padding: 2rem;
  box-sizing: border-box;
}
.cover-message-section.slide1 {
  color: var(--color-white);
}
.cover-message-section.slide2 {
  color: var(--color-text);
  background: rgba(255,255,255,0.8)
}
.cover-message-section .container {
  height: 100%;
  position: relative;
  width: 100%;
}
.cover-message-section.slide1 .text-marquee {
  margin-top: -188px;
}
.cover-message-section.slide1 .overlay {
  position: absolute;
  top: 30%;
  left: 5%;
}
.cover-message-section.slide1 .overlay h2 {
  font-size: var(--font-size-h3);
  line-height: 1.4;
}
.cover-message-section.slide2 .overlay {
  position: absolute;
  top: 30%;
  left: 5%;
}
.cover-message-section.slide2 .overlay .slogan {
  font-size: 2rem;
  font-weight: bold;
}
@media screen and (max-width: 768px) {
  .cover-message-section {
    padding: 1rem;
  }
  .cover-message-section.slide1 .overlay {
    top: 20%;
  }
  .cover-message-section.slide1 .overlay h2 {
    font-size: 2.6rem;
  }
  .cover-message-section.slide1 .text-marquee {
    margin-top: -95px;
  }
  .cover-message-section.slide2 .overlay {
    padding: 0 4px;
    top: 10%;
    left: 0;
  }
  .cover-message-section.slide2 .overlay .slogan {
    font-size: 1.5rem;
  }
}

/* スライド2 のボタン */
.slogan-buttons {
  display: flex;
  gap: 1rem;
}
.btn {
  align-items: center;
  background: var(--color-secondary);
  color: var(--color-white);
  display: inline-flex;
  padding: 1.2rem 1.2rem;
  text-decoration: none;
  font-weight: bold;
  transition: background 0.3s;
}
.arrow:hover span.material-symbols-outlined {
  transform: translateX(4px);
}
.btn:hover span.material-symbols-outlined {
  transform: translateX(4px);
}
.btn.navy {
  background: var(--color-navy);
  color: var(--color-white);
}
.btn.green {
  background: var(--color-primary);
  color: var(--color-white);
}
.btn.red {
  background: var(--color-red);
  color: var(--color-white);
}
.btn.blue {
  background: var(--color-blue);
  color: var(--color-white);
}
.btn .circle-link {
  background-color: var(--color-white);
  height: 30px;
  margin-left: 1.5rem;
  width: 30px;
}
.btn .circle-link .material-symbols-outlined {
  color: var(--color-secondary);
}
.our-slogan-buttons .btn.navy .circle-link .material-symbols-outlined {
  color: var(--color-navy);
}
.our-slogan-buttons .btn.green .circle-link .material-symbols-outlined {
  color: var(--color-primary);
}
.btn.red .circle-link .material-symbols-outlined {
  color: var(--color-white);
}
.btn.blue .circle-link .material-symbols-outlined {
  color: var(--color-white);
}
.btn.red .circle-link {
  background-color: var(--color-red);
  border-color: var(--color-red);
}
.btn.blue .circle-link {
  background-color: var(--color-blue);
  border-color: var(--color-blue);
}
@media screen and (max-width: 768px) {
  .slogan-buttons {
    align-items: flex-start;
    flex-direction: column;
  }
}

/* ======================
   SCROLL -> の MARQUEE
======================= */
.scroll-marquee .marquee-item {
  color: var(--color-text);
}


/* ──────────────────────────────────────────
   共通
────────────────────────────────────────── */
/* ======================
   Marquee
======================= */
/* “窓” */
.text-marquee {
  bottom: 0.5rem;
  left: 0;
  overflow: hidden;
  pointer-events: none;
  width: 100%;
  z-index: 5;
}
/* 中身を横積み */
.text-marquee .marquee-content {
  display: inline-flex;
  height: var(--font-size-slogan);
  transform: translateX(0);
  white-space: nowrap;
}
/* テキスト */
.text-marquee .marquee-item {
  color: var(--color-white);
  font-size: var(--font-size-slogan);
  font-weight: bold;
  padding-right: 4rem;
}

@media screen and (max-width: 768px) {
  .text-marquee .marquee-content {
    height: 6rem;
  }
  .text-marquee .marquee-item {
    font-size: 6rem;
  }
}

.recruit-title {
  color: var(--color-white);
  font-size: 1.5rem;
  font-weight: bold;
  position: relative;
  padding-bottom: 0.5rem;
}
.recruit-title.secondary {
  color: var(--color-secondary);
}
.thin-container {
  padding: 0 40px;
}
@media screen and (max-width: 768px) {
  .thin-container {
    padding: 0;
  }
}

/* スライダー */
.auto-slider {
  width: 100%;
  overflow: hidden;
  position: relative;
}

.auto-slider .slider-track {
  display: flex;
  /* transform は JS で動かします */
}

.auto-slider .slide {
  flex: 0 0 20%; /* 5枚が常に並ぶよう幅を20%に */
  box-sizing: border-box;
  padding: 0.5rem;
  text-align: center;
}

.auto-slider .slide img {
  border-radius: 20px;
  width: 100%;
  height: auto;
  display: block;
}

.auto-slider .slide p {
  margin: 0.5rem 0 0;
  font-size: var(--font-size-label);
  color: var(--color-text);
}
@media screen and (max-width: 768px) {
  .auto-slider .slide img {
    width: auto;
    height: 300px;
  }
}


/* ======================
   LINKs
======================= */
.recruit-links-section {
  background-color: var(--color-secondary);
  color: var(--color-white);
  padding: 3rem 1rem;
}
.recruit-links-section .container {
  max-width: 1200px;
  margin: 0 auto;
}
.recruit-links-section a {
  color: var(--color-white);
  text-decoration: none;
}

/* 見出し */
.section-heading {
  font-size: 1.25rem;
  font-weight: bold;
  text-transform: uppercase;
  margin: 0 0 1.5rem;
  border-bottom: 1px solid var(--color-border-light);
  padding-bottom: 0.5rem;
}

/* 各アイテム */
.info-item {
  border-bottom: 1px solid var(--color-border-light);
  padding: 1rem 0;
}

.info-item .circle-link {
  background-color: var(--color-white);
  height: 20px;
  width: 20px;
}
.info-item .circle-link .material-symbols-outlined {
  color: var(--color-secondary);
}

/* テキスト */
.info-item p {
  margin: 0;
  line-height: 1.4;
}

/* ======================
   INFORMATION
======================= */
.information-section {
  background-color: var(--color-secondary);
  color: var(--color-white);
}
.information-section .grid-col-2 {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 2fr;
  column-gap: 2rem;
  align-items: start;
}
@media screen and (max-width: 768px) {
  .information-section .grid-col-2 {
    grid-template-columns: repeat(1, 1fr);
  }
}

/* リスト */
.info-list {
  list-style: none;
  margin: 0;
  padding: 0;
}
.info-list li {
  display: flex;
  align-items: center;
  padding: 1.5rem 0;
  border-top: 1px solid var(--color-border-light);
}
.info-list li:last-child {
  border-bottom: 1px solid var(--color-border-light);
}
.info-list time {
  flex: 0 0 8rem;
  font-variant-numeric: tabular-nums;
}
.info-list p {
  margin: 0;
  padding-left: 1rem;
}

/* ======================
   パンくず
======================= */
.breadcrumb-section {
  background-color: var(--color-background-gray);
}

/* ======================
   OUR SERVICE
======================= */
.our-service-section {
  background-color: var(--color-background-gray);
}
.our-service--message {
  font-size: 1.5rem;
  font-weight: bold;
}
@media screen and (max-width: 768px) {
  .our-service-section .buttons {
    flex-direction: column;
    align-items: start;
  }
  .our-service-section .buttons .btn {
    justify-content: space-between;
    width: 280px;
  }
}

/* ======================
   INTERVIEW
======================= */
.interview-section {
  background-color: var(--color-white);
}
.interview-image img {
  border-radius: 20px;
}
.interview-card {
  display: block;
  margin: -100px 30px 0px 30px;
  padding: 20px 20px;
  position: relative;
}
.interview-card.red {
  background-color: var(--color-red);
}
.interview-card.blue {
  background-color: var(--color-blue);
}
.interview-card a {
  color: var(--color-white);
  text-decoration: none;
}
.interview-card .interview-card--title {
  font-size: var(--font-size-subtitle);
  font-weight: bold;
}
.interview-card .interview-card--name {
  font-size: var(--font-size-subtitle);
  margin-bottom: 4px;
}
.interview-card .circle-link {
  background-color: var(--color-white);
  height: 30px;
  width: 30px;
}
.interview-card.red .circle-link .material-symbols-outlined {
  color: var(--color-red);
}
.interview-card.blue .circle-link .material-symbols-outlined {
  color: var(--color-blue);
}
.interview-card a:hover .material-symbols-outlined {
  transform: translateX(4px);
}

/* ======================
   RECRUIT ENTRY
======================= */
.entry-section {
  background-color: var(--color-background-gray);
}
.entry-section .links-card {
  align-items: center;
  min-height: 180px;
  padding: 30px 30px;
}
.entry-section .links-card {
  border: 4px solid var(--color-secondary);
  background-color: var(--color-white);
}
.entry-section .links-card:hover {
  background-color: var(--color-secondary);
}
.entry-section .links-card .links-card-text {
  flex-grow: 1;
  padding-right: 40px;
}
.entry-section .links-card .links-card-title {
  color: var(--color-secondary);
  font-size: 1.5rem;
  font-weight: bold;
}
.entry-section .links-card:hover .links-card-title {
  color: var(--color-white);
}
.entry-section .links-card .links-card-message {
  color: var(--color-secondary);
  line-height: 1.2;
}
.entry-section .links-card:hover .links-card-message {
  color: var(--color-white);
}
.entry-section .links-card .circle-link {
  background-color: var(--color-white);
  height: 30px;
  width: 30px;
}
.entry-section .links-card:hover .circle-link {
  background-color: var(--color-white);
}
.entry-section .links-card .circle-link .material-symbols-outlined {
  color: var(--color-secondary);
}
.entry-section .links-card:hover .circle-link .material-symbols-outlined {
  transform: translateX(4px);
}
@media screen and (max-width: 768px) {
  .entry-section .links-card {
    min-height: 100px;
    padding: 10px 20px;
  }
  .entry-section .links-card .links-card-text {
    padding-right: 20px;
  }
  .entry-section .links-card .links-card-title {
    font-size: 1rem;
  }
  .entry-section .links-card .links-card-message {
    font-size: 0.8rem;
  }
}

/* ======================
   固定ボタン
======================= */
.fixed-buttons {
  position: fixed;
  bottom: 3rem;
  right: 3rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  z-index: 1000;
}

.fixed-button {
  position: relative;
  display: flex;
}
.fixed-button .btn {
  width: 306px;
}
.fixed-button .close-btn {
  align-items: center;
  color: var(--color-white);
  cursor: pointer;
  display: flex;
  font-size: 2rem;
  justify-content: center;
  line-height: 1;
  height: 1.6rem;
  transition: background 0.2s;
  width: 1.6rem;
}
@media screen and (max-width: 768px) {
  .fixed-buttons {
    right: 1rem;
  }
  .fixed-button .btn {
    font-size: 0.8rem;
    padding: 0.8rem 0.8rem;
    width: 250px;
  }
}

/* ──────────────────────────────────────────
   メッセージ
────────────────────────────────────────── */
.message-cover-section {
  position: relative;
  width: 100%;
  /* 画面全高からヘッダー分を引いた領域 */
  height: calc(100vh - 0);
  padding-top: var(--header-height);

  /* 背景グラデーション：上半分ネイビー、下半分白 */
  background: linear-gradient(
    to bottom,
    var(--color-navy) 0%,
    var(--color-navy) 50%,
    var(--color-white) 50%,
    var(--color-white) 100%
  );
  overflow: hidden;
}
.message-cover-section.green {
  background: linear-gradient(
    to bottom,
    var(--color-primary) 0%,
    var(--color-primary) 50%,
    var(--color-white) 50%,
    var(--color-white) 100%
  );
}
.message-cover-section.red {
  background: linear-gradient(
    to bottom,
    var(--color-red) 0%,
    var(--color-red) 50%,
    var(--color-white) 50%,
    var(--color-white) 100%
  );
}
.message-cover-section.blue {
  background: linear-gradient(
    to bottom,
    var(--color-blue) 0%,
    var(--color-blue) 50%,
    var(--color-white) 50%,
    var(--color-white) 100%
  );
}

.message-cover-section .breadcrumb a,
.message-cover-section .breadcrumb li span,
.message-cover-section .breadcrumb li + li::before {
  color: var(--color-white);
}

/* ■ 写真＋オーバーレイをまとめるラッパー */
.message-cover-section .photo-container {
  position: relative;
  width: 100%;
  max-width: 1200px;    /* ← ここで全体幅を制限 */
  margin: 0 auto;    /* セクション内で中央寄せ */
}

.message-cover-section .photo-wrapper img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 30px;
}

/* ─テキストレイヤー─ */
.message-cover-section .message-overlay {
  position: absolute;
  top: 40%;
  left: 6%;
  max-width: 100%;
  background-color: rgba(255,255,255,0.8);
  border-radius: 12px;
  color: var(--color-text);
  padding: 2rem 2rem 2rem 2rem;
  z-index: 2;
}
.message-cover-section.interview .message-overlay {
  top: 15%;
}
.message-cover-section .message-label {
  color: var(--color-navy);
  font-size: 1rem;
  font-weight: bold;
  letter-spacing: 1px;
  margin: 0 0 0.5rem;
  text-transform: uppercase;
}
.message-cover-section.green .message-label {
  color: var(--color-primary);
}
.message-cover-section.red .message-label {
  color: var(--color-red);
}
.message-cover-section.blue .message-label {
  color: var(--color-blue);
}
.message-title {
  letter-spacing: 3px;
  margin: 2rem 0;
  font-size: 1.5rem;
  line-height: 1.5;
}
.message-position {
  font-size: 1rem;
}
.message-name {
  margin: 0;
  font-size: 1.25rem;
  font-weight: bold;
}

.message-cover-section .text-marquee {
  margin-top: -60px;
  position: relative;
  z-index: 5;
}
.message-cover-section .marquee-item {
  color: var(--color-navy);
}
.message-cover-section.green .marquee-item {
  color: var(--color-primary);
}
.message-cover-section.red .marquee-item {
  color: var(--color-red);
}
.message-cover-section.blue .marquee-item {
  color: var(--color-blue);
}
@media screen and (max-width: 768px) {
  .message-cover-section {
    padding-top: var(--header-sp-height);
  }
  .message-cover-section .photo-container {
    padding: 0 16px;
  }
  .message-cover-section .message-overlay {
    top: auto;
    bottom: 4%;
    left: 0;
  }
  .message-cover-section.interview .message-overlay {
    top: auto;
  }
  .message-cover-section .text-marquee {
    margin-top: -40px;
  }
}

/* メッセージ */
.message-section img {
  object-fit: cover;
  width: 100%;
}
.message-header {
  font-size: var(--font-size-subtitle);
  font-weight: 700;
}
.message-subheader {
  letter-spacing: 2px;
  font-size: var(--font-size-subtitle);
  font-weight: 700;
}
.message-section.green .message-header {
  color: var(--color-primary);
}

/* ──────────────────────────────────────────
   インタビュー
──────────────────────────────────────────*/
/* メッセージ */
.story-section img {
  object-fit: cover;
  width: 100%;
}
.story-section .grid-col-2 img {
  border-radius: 30px;
}
.message-header {
  font-size: var(--font-size-subtitle);
  font-weight: 700;
}
.story-section.red .message-header {
  color: var(--color-red);
}
.story-section.blue .message-header {
  color: var(--color-blue);
}
@media screen and (max-width: 768px) {
  .story-section .container.py-50 {
    padding-top: 0;
  }
  .story-section .grid-col-2 .message-body.mb-50 {
    margin-bottom: 0;
  }
}

.career-plan-section {
  color: var(--color-white);
}
.career-plan-section.red {
  background-color: var(--color-red);
}
.career-plan-section.blue {
  background-color: var(--color-blue);
}
.career-plan-section .grid-col-2 img {
  border-radius: 30px;
}

.schedule-container {
  max-width: 800px;
  margin: 0 auto;
  margin-top: 50px;
}
.schedule-box {
  background-color: #f15a5a; /* 赤系背景 */
  border-radius: 16px;
  color: #fff;
  display: flex;
  padding: 2rem;
}
.red .schedule-box {
  background-color: var(--color-red);
}
.blue .schedule-box {
  background-color: var(--color-blue);
}
.schedule-header {
  margin-bottom: 1.5rem;
  margin-right: 2rem;;
}
.schedule-subtitle {
  text-transform: uppercase;
  margin: 0;
}
.schedule-title {
  font-size: 1.6rem;
  letter-spacing: 2px;
  margin: 0.25rem 0 0;
}

/* タイムラインエリア */
.schedule-body {
  position: relative;
  padding-left: 3rem;
  padding-right: 3rem;
}
.timeline-line {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 134px;
  width: 2px;
  background: #fff;
  transform: translateX(-50%);
}

/* タイムポイント */
.timeline-items {
  list-style: none;
  margin: 0;
  padding: 8px 0;
}
.timeline-item {
  position: relative;
  display: flex;
  align-items: center;
  margin-bottom: 1.4rem;
}
.timeline-item:last-child {
  margin-bottom: 0;
}
.timeline-item .time {
  width: 4rem;
  text-align: right;
  font-size: 0.9rem;
  flex-shrink: 0;
}
.timeline-item .dot {
  display: block;
  width: 0.8rem;
  height: 0.8rem;
  background: #fff;
  border-radius: 50%;
  margin: 0 1rem;
  flex-shrink: 0;
}
.timeline-item .dot.yellow {
  background: var(--color-yellow);
}
.timeline-item .event {
  font-size: 0.95rem;
  line-height: 1.2;
  flex: 1;
}

/* スマホ時の微調整 */
@media screen and (max-width: 768px) {
  .schedule-box {
    flex-direction: column;
  }
  .schedule-body {
    padding-left: 0;
    padding-right: 0;
  }
  .timeline-line {
    left: 75px;
  }
}

/* ──────────────────────────────────────────
   ヘッダーナビ
──────────────────────────────────────────*/
#main-nav {
  display: none;
}
.hamburger {
  display: flex;
  flex-direction: column;
  justify-content: space-around;
  width: 2.6rem;
  height: 2.2rem;
  cursor: pointer;
}
.mobile-nav {
  background: var(--color-white);
  border-radius: 10px;
  box-shadow: -4px 0 8px rgba(0,0,0,0.2);
  display: block;
  margin: 8px;
  max-width: 300px;
  opacity: 0;
  padding: 1.5rem;
  position: fixed;
  top: 0;
  transition: opacity 0.3s ease, visibility 0.3s ease;
  right: 0;
  width: 80%;
  visibility: hidden;
  z-index: 1000;
}
/* 開いた状態 */
.mobile-nav.open {
  opacity: 1;
  visibility: visible;
}
.mobile-nav-close {
  background: transparent;
  border: none;
  color: var(--color-text);
  font-size: 1.2rem;
  position: absolute;
  top: 1rem; right: 1rem;
  cursor: pointer;
}
/* メニューリスト */
.mobile-menu {
  list-style: none;
  margin: 3rem 0 0;
  padding: 0;
}
/* 各項目共通 */
.mobile-menu li {
  margin-bottom: 1rem;
}

/* お問い合わせ以外のリンク */
.mobile-menu li:not(.has-submenu):not(.contact) a {
  color: var(--color-text);
  display: block;
  font-size: 1rem;
  padding: 0 0 0.5rem 0;
  text-decoration: none;
}

/* サブメニューを持つアイテム */
.has-submenu .submenu-header {
  align-items: center;
  display: flex;
  justify-content: space-between;
  cursor: pointer;
}
.has-submenu .submenu-header span {
  font-size: 1rem;
  color: var(--color-text);
}
.has-submenu .submenu-toggle {
  background-color: var(--color-primary);
  border: 1px solid var(--color-primary);
  border-radius: 50%;
  font-size: 1rem;
  transition: transform 0.3s;
}
.has-submenu .submenu-toggle span {
  color: var(--color-white);
}
/* サブメニュー本体 */
.submenu {
  list-style: none;
  margin: 0.5rem 0 0 1rem;
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease;
  padding: 0;
}
/* サブメニュー内リンク */
.submenu li a {
  color: #666;
  display: block;
  font-size: 0.9rem;
  padding: 0.3rem 0;
  text-decoration: none;
}
/* open 状態 */
.has-submenu.open .submenu {
  max-height: 500px; /* 展開時に十分な高さ */
  margin: 1rem 0 0 1rem;
}
.has-submenu.open .submenu-toggle {
  transform: rotate(180deg);
}
/* お問い合わせボタンだけ特別 */
.mobile-menu li.contact a {
  color: var(--color-white);
  background-color: var(--color-secondary);
  display: inline-block;
  font-size: 1rem;
  padding: 0.5rem 1rem;
  border: 2px solid var(--color-secondary);
  border-radius: 2rem;
  text-decoration: none;
}
/* スクロール中のPC用ヘッダーナビ背景 */
.header.fixed .header-fixed-bg {
  display: none;
}
/* ハンバーガーメニューの色 */
.hamburger p {
  color: var(--color-secondary);
}
.hamburger span {
  background-color: var(--color-secondary);
}
.header.fixed .hamburger span {
  background-color: var(--color-secondary);
}
