/* ファーストビューのセクション */
.first-view {
  position: relative;
  width: 100vw;
  height: 100vh;
  min-height: 506px; /* 画像が16:9なら 900px × 9 ÷ 16 = 506px */
  display: flex;
  align-items: center;
  background-size: contain;
  background-position: center center;
  justify-content: flex-start;
  box-sizing: border-box;
}

/* ファーストビューの動く矢印 */
.scroll-circle {
  position: absolute;
  bottom: -70px;       /* ファーストビューの下に70pxはみ出す */
  left: -80px;
  z-index: 10;         /* vision-section より前に表示 */
  width: 300px;
  height: 300px;
  cursor: pointer;
  /* アニメーション用 */
  opacity: 0;           /* 初期は透明 */
  transform: translateY(20px);  /* 少し下にずらす */
  transition: opacity 1.5s ease, transform 1.5s ease;
}

.scroll-circle.start {
  opacity: 1;
  transform: translateY(0);
}

.scroll-svg.pc { display: block; }
.scroll-svg.sp { display: none; }

.scroll-svg svg {
  width: 100%;
  height: 100%;
}

/* 動画 - パララックス対応 */
.first-view.parallax-hero .parallax-bg .fv-video {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 1;
}

/* 従来の動画スタイル（互換性のため残す） */
.fv-video {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 1;
}

/* ファーストビューコンテンツ */
.fv-content {
  position: relative;
  z-index: 2;
  text-align: left;
  color: var(--color-title);
  max-width: 600px;
  margin-left: 10rem;
  margin-right: auto;
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  align-items: flex-start;
}

/* メインタイトル */
.main-title {
  font-family: var(--font-family-special-1);
  font-size: var(--font-size-title);
  letter-spacing: var(--letter-spacing-title);
  color: var(--color-title);
  font-weight: bold;
  margin: 0 0 1rem 0;
  line-height: var(--lh-main-title);
  white-space: nowrap;
  height: 144px;
}

.main-title br {
  white-space: normal;
}

/* サブタイトル */
.sub-title {
  font-family: var(--font-family-default);
  font-size: var(--font-size-label);
  color: var(--color-title);
  letter-spacing: 0.2em;
  font-weight: 600;
  margin: 0;
  line-height: var(--lh-sub-title);
  min-height: 3.6em;
  white-space: normal;
}

/* タイプライター用 */
.typewriter-text, .typewriter-sub-text {
  display: inline;
  white-space: pre;
  text-align: left;
  line-height: inherit; 
  vertical-align: top;
}

.typewriter-text {
  text-align: left;
}

.cursor, .cursor-sub {
  animation: blink 1s infinite;
  color: black;
  display: none; /* 初期状態では非表示 */
  vertical-align: top;
}

@keyframes blink {
  0%, 50% { opacity: 1; }
  51%, 100% { opacity: 0; }
}

/* ===============================
   ビジョンセクション
=============================== */
.vision-section {
  background-color: #F2F2F2;
  text-align: center;
  position: relative;
  z-index: 0;
  padding-top: 10rem; /* 画像の上に余白を追加 */
}

.vision-bg {
  position: relative; /* headerを絶対配置するための親 */
  width: 100vw;
  margin-left: calc(50% - 50vw);
}

.vision-bg img {
  width: 100%; /* 横幅いっぱい */
  height: auto; /* 縦横比を維持 */
  display: block;
}

/* 画像スタックコンテナ */
.vision-image-stack {
  position: relative;
  width: 100%;
  height: auto;
  overflow: hidden; /* はみ出る部分を隠す */
}

/* 重ねる画像の基本スタイル */
.vision-layer {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 1.5s ease, transform 1.5s ease;
  transition-delay: 0s;
}

/* 1枚目：背景画像 */
.vision-layer[data-layer="1"] {
  opacity: 1;
  transform: translateX(0) translateY(20%);
}

/* 2枚目：ロゴ（背景の上に重ねる） */
.vision-layer[data-layer="2"] {
  position: absolute;
  top: 10%; /* タイトル下の位置に調整 */
  left: 50%;
  width: 40%;
  height: auto;
  opacity: 0;
  transform: translateX(-50%) translateY(20px);
  transition: opacity 1.5s ease, transform 1.5s ease;
  transition-delay: 0s;
  object-fit: contain;
  object-position: center top;
  z-index: 2;
}

/* 3枚目：人物（一番上に重ねる） */
.vision-layer[data-layer="3"] {
  position: absolute;
  top: 0;
  left: 5rem;
  right: 5rem;
  width: calc(100% - 10rem); /* 左右5remずつの余白（合計10rem） */
  height: calc(100% - 11.2rem); /* 下部から11.2rem上にするため高さ調整 */
  object-fit: contain;
  object-position: center bottom; /* 人物は下部に配置 */
  z-index: 3;
}

/* アニメーション開始後の表示状態 */
.vision-layer.start {
  opacity: 1;
  transform: translateY(0);
}

/* ロゴの中央配置を維持 */
.vision-layer[data-layer="2"].start {
  opacity: 1;
  transform: translateY(0) translateX(-50%);
}

.vision-header {
  position: absolute; /* 親 .vision-bg を基準に絶対配置 */
  top: 0; /* 画像の上に被せる高さ（上寄せ） */
  left: 0; /* 幅全体で中央揃えにするため左端固定 */
  right: 0; /* 幅全体で中央揃えにするため右端固定 */
  width: 100%;
  transform: translateY(-50%); /* 縦方向の中央合わせ */
  text-align: center; /* 横中央揃え */
  z-index: 5; /* 画像より前面に表示 */
}

.vision-header.animate-on-scroll {
  opacity: 0;
  transform: translateY(-50%) translateY(20px); /* 最終位置から+20px下 */
  transition: all 1s ease-out;
}

.vision-header.animate-on-scroll.start {
  opacity: 1;
  transform: translateY(-50%) translateY(0); /* 最終位置に戻す */
}

/* 本文コンテンツ */
.vision-content {
  font-family: var(--font-family-default);
  position: relative;
  width: 100vw; /* 画面横いっぱいに表示 */
  margin: -8rem 0 0 0; /* 左右マージンを0にして画面いっぱい */
  margin-left: calc(50% - 50vw); /* 画面いっぱいに表示するための調整 */
  padding: 4rem 2rem; /* 上下のパディングを増やし、左右は適度に */
  border-radius: 0; /* 角丸を削除 */
  background-color: #F6F6F6;
  z-index: 10; /* 画像より前面に表示 */
  text-align: center; /* 文字を中央配置 */
}

.vision-text {
  font-size: var(--font-size-text-m);
  font-weight: bold;
  line-height: var(--lh-text-m);
  letter-spacing: var(--letter-spacing-text-m);
  color: var(--color-main);
  margin: 0 auto 2rem auto; /* 中央配置 */
  max-width: 1200px; /* 文字の最大幅を制限 */
}

.vision-text:last-child {
  margin-bottom: 0;
}

/* ===============================
   事業紹介セクション
=============================== */
.service-section {
  position: relative;
  padding: 10rem 0;
  overflow: hidden;
  min-height: 100vh;
  display: flex;
  align-items: center;
  background-color: #F6F6F6;
  z-index: 1;
}

.service-background {
  position: absolute;
  top: 290px;
  left: -10%;
  width: 75%;
  height: calc(100% - 420px);
  background-image: url('../images/shutterstock_2312901213.jpg');
  background-size: cover;
  background-position: center;
  z-index: 1;
  border-radius: 0px 20px 20px 0px;
  opacity: 0;
}

.service-background.start {
  animation: slideInLeftWithOpacity 1.5s ease-out 0.2s forwards;
}

.service-overlay {
  position: absolute;
  top: 220px;
  right: -10%;
  width: 85%;
  height: calc(100% - 420px);
  background: rgba(255, 255, 255, 0.9);
  z-index: 2;
  border-radius: 20px;
  opacity: 0;
}

.service-overlay.start {
  animation: slideInRight 1.5s ease-out 1.7s forwards;
}

.service-vertical-text {
  position: absolute;
  font-family: var(--font-family-special-2);
  line-height: 1;
  font-weight: 400;
  left: 0;
  top: 290px;
  writing-mode: vertical-rl;
  text-orientation: mixed;
  font-size: 6rem;
  color: rgba(0, 0, 0, 0.2);
  letter-spacing: 0.2em;
  z-index: 1;
  opacity: 0;
}

.service-vertical-text.start {
  animation: fadeInUp 1s ease-out 1.9s forwards;
}

.service-container {
  position: relative;
  z-index: 3;
  max-width: 1200px;
  margin: 0 auto;
  width: 100%;
}

.service-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem; /* アイテム同士の余白を削減 */
  padding: 2rem; /* 外側の余白を広げる */
  margin-bottom: 4rem;
}

.service-item {
  padding: 1rem;
  text-align: center;
  opacity: 0;
  transform: translateY(50px);
}

.service-item.start {
  animation: fadeInUp 1s ease-out 2s forwards;
}

.service-image {
  width: 100%;
  height: 200px;
  margin: 0 auto 1.5rem auto;
  max-width: 320px;
  overflow: hidden;
}

.service-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  background: #e2e8f0;
}

.service-name {
  font-family: var(--font-family-default);
  color: var(--color-title);
  font-weight: bold;
  font-size: var(--font-size-sec-label);
  line-height: var(--lh-label);
  letter-spacing: 0.5px;
  margin: 0 0 0.5rem 0;
  text-transform: uppercase;
  margin: 0 0 1rem 0;
  line-height: 1.4;
}

.service-description {
  font-family: var(--font-family-default);
  font-size: var(--font-size-text-s);
  line-height: var(--lh-text-s);
  letter-spacing: var(--letter-spacing-text-m);
  color: var(--color-text);
  margin: 0;
  text-align: left;
}

.service-more {
  font-family: var(--font-family-special-2);
  font-weight: bold;
  font-size: var(--font-size-sec-label);
  line-height: var(--lh-label);
  color: var(--color-title);
  letter-spacing: var(--letter-spacing-sec-label);
  bottom: 2rem;
  text-align: right;
  opacity: 0;
  transform: translateY(30px);
}

.read-more-btn {
  position: relative;
  font-family: var(--font-family-special-2);
  color: var(--color-title);
  text-decoration: none;
  font-weight: bold;
  font-size: 1rem;
  letter-spacing: 0.05em;
  transition: color 0.3s ease;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

.arrow-circle-container {
  position: relative;
  display: inline-block;
  width: 40px;
  height: 40px;
}

.arrow-circle-container img {
  position: relative;
  width: 100%;
  height: 100%;
  object-fit: contain;
  z-index: 2;
}

.circle-animation {
  position: absolute;
  top: 0;
  left: 8px; /* 右にずらして矢印の中央に配置 */
  width: 100%;
  height: 100%;
  z-index: 1;
}

.circle-animation circle {
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-dasharray: 0 126; /* 初期状態：弧0、空白126（円周の約1/3） */
  transform-origin: center;
  stroke-linecap: round;
  transform: rotate(-140deg);
  stroke: var(--color-title);
  opacity: 0; /* 初期状態では透明 */
}

.read-more-btn:hover .circle-animation circle {
  opacity: 1;
  animation: draw-arc 0.8s ease-in-out forwards;
}

/* 弧を描くアニメーション */
@keyframes draw-arc {
  0% { 
    stroke-dasharray: 0 126; 
  }
  99.9%, 100% { 
    stroke-dasharray: 90 126; 
  }
}

/* 白背景用（about-section等） */
.read-more-btn.white .circle-animation circle {
  stroke: white;
  opacity: 0; /* 初期状態では透明 */
}

.read-more-btn.white:hover .circle-animation circle {
  stroke: white;
  opacity: 1; /* ホバー時に表示 */
  animation: draw-arc 0.8s ease-in-out forwards;
}

/* 採用情報セクション用の弧アニメーション */
.sub-section:hover .circle-animation circle {
  stroke: white;
  opacity: 1; /* ホバー時に表示 */
  animation: draw-arc 0.8s ease-in-out forwards;
}


/* ===============================
   Winrichの強みセクション
=============================== */
.strength-section {
  position: relative;
  padding: 5rem 2rem 10rem 2rem;
  overflow: hidden;
  min-height: 100vh;
  display: flex;
  align-items: center;
  background-color: #F6F6F6;
  padding-bottom: 20rem; /* 薄グレーの背景を次のセクションまで伸ばす */
  margin-bottom: 0;
}

.strength-background {
  position: absolute;
  top: 240px;
  right: -10%;
  width: 85%;
  height: calc(100% - 480px);
  min-height: 600px;
  padding-bottom: 100px;
  background-image: url('../images/shutterstock_2312901213.jpg');
  background-size: cover;
  background-position: center;
  z-index: 1;
  border-radius: 20px 0 0 20px;
  opacity: 0;
}

.strength-background.start {
  animation: slideInRightWithOpacity 1.5s ease-out 0.2s forwards;
}

.strength-overlay {
  position: absolute;
  top: 160px;
  left: -10%;
  width: 75%;
  height: calc(100% - 480px);
  min-height: 600px; /* vertical-textが収まる最低限の高さを確保 */
  padding-bottom: 100px; /* 背景の下部を追加 */
  background: rgba(255, 255, 255, 0.9);
  z-index: 2;
  border-radius: 20px;
  opacity: 0;
}

.strength-overlay.start {
  animation: slideInLeft 1.5s ease-out 1.7s forwards;
}

.strength-vertical-text {
  position: absolute;
  font-family: var(--font-family-special-2);
  line-height: 1;
  font-weight: 400;
  right: 0;
  top: 220px; /* 背景画像に合わせて調整 なお余白-20pxを考慮 */
  writing-mode: sideways-rl;
  text-orientation: mixed;
  font-size: 6rem;
  color: rgba(0, 0, 0, 0.2);
  letter-spacing: 0.2em;
  z-index: 3;
  opacity: 0;
  transform: translateY(-30px);
}

.strength-vertical-text.start {
  animation: fadeInUpRotate 1s ease-out 1.9s forwards;
}

.strength-container {
  position: relative;
  z-index: 3;
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
}

.strength-grid {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 4rem;
}

.strength-item {
  overflow: visible; 
  padding: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4rem;
  width: 100%;
  max-width: 1200px;
  margin: 0;
}

.strength-item .strength-image img {
  width: 100%; /* 横幅を親要素に合わせる */
  flex: 1;
  height: auto; /* 縦横比を維持 */
  max-width: 600px; /* 最大幅を設定 */
  object-fit: contain; /* 画像が見切れないように表示 */
}

.strength-image,
.strength-content {
  z-index: 3;
  opacity: 0;
  transform: translateY(50px);
}

.strength-image.start {
  animation: fadeInUp 1s ease-out 2s forwards;
}

.strength-item .strength-content {
  flex: 1;
  text-align: left;
  max-width: 40%;
}

.strength-content.start {
  animation: fadeInUp 1s ease-out 2.2s forwards;
}

.strength-item .strength-name {
  font-family: var(--font-family-default);
  font-size: var(--font-size-text-m);
  font-weight: bold;
  letter-spacing: var(--letter-spacing-text-m);
  margin-bottom: 1.5rem;
  white-space: nowrap;
  color: var(--color-title);
}

.strength-item .strength-name br {
  white-space: normal;
}

.strength-item .strength-description {
  font-family: var(--font-family-default);
  font-size: var(--font-size-sec-label);
  letter-spacing: var(--letter-spacing-sec-title);
  font-weight: 500;
  margin: 0;
  line-height: 1.8;
  color: var(--color-text);
}

/* ===============================
   会社概要セクション
=============================== */
.about-section {
  padding: 5rem 0;
  font-family: var(--font-family-default);
  background-color: var(--color-title);
  font-size: var(--font-size-sec-label);
  letter-spacing: var(--letter-spacing-sec-title);
  line-height: var(--lh-label);
  color: white;
}

.about-container {
  max-width: 1400px;
  margin: 0;
  padding: 0;
}

.about-vertical-text {
  position: absolute;
  font-family: var(--font-family-special-2);
  line-height: 1;
  font-weight: 400;
  left: 0;
  top: 0;
  writing-mode: vertical-rl;
  text-orientation: mixed;
  font-size: 6rem;
  color: rgba(0, 0, 0, 0.2);
  letter-spacing: 0.2em;
  z-index: 1;
  opacity: 0;
}

.about-vertical-text.start {
  animation: fadeInUp 1s ease-out 1s forwards;
}

.about-content {
  display: flex;
  align-items: stretch;
  gap: 0;
  margin-bottom: 4rem;
  min-height: 60vh;
}

.about-image {
  flex: 2;
  max-width: none;
  display: flex;
  opacity: 0;
  transform: translateX(-50px);
}

.about-image.start {
  animation: slideInLeft 1s ease-out 0.2s forwards;
}

.about-image img {
  width: 100%;
  height: 100%;
  max-height: 800px;
  object-fit: cover;
  border-radius: 0 20px 20px 0;
}

.about-text {
  flex: 1.5;
  max-width: none;
  padding: 4rem 3rem 4rem 4rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.about-header {
  margin-bottom: 4rem;
}

.about-label {
  font-family: var(--font-family-special-2);
  font-size: var(--font-size-label);
  line-height: var(--lh-label);
  color: white;
  letter-spacing: var(--letter-spacing-label);
  text-transform: uppercase;
}

.about-title {
  font-family: var(--font-family-default);
  font-size: var(--font-size-title);
  line-height: var(--lh-main-title);
  font-weight: bold;
  color: white;
  margin: 0;
  letter-spacing: var(--letter-spacing-sec-title);
}

.about-description {
  margin-bottom: 2rem;
  opacity: 0;
  transform: translateY(30px);
}

.about-description.start {
  animation: fadeInUp 1s ease-out 0.5s forwards;
}

.about-description p {
  font-family: var(--font-family-default);
  font-size: var(--font-size-sec-label);
  letter-spacing: var(--letter-spacing-sec-title);
  font-weight: 400;
  margin: 0;
  line-height: 1.8;
  color: white;
}

.about-description p:last-child {
  margin-bottom: 0;
}

.about-more {
  text-align: right;
}

.about-more .read-more-btn {
  color: white;
  text-decoration: none;
  font-weight: bold;
  font-size: 1rem;
  letter-spacing: 0.05em;
  transition: color 0.3s ease;
}

.about-more .read-more-btn:hover {
  color: white;
}

/* ハイライトボックス */
.highlight-box {
  position: relative;
  display: inline-block;
  overflow: hidden;
  font-weight: 500;
  margin-right: 0.5rem;
}

.highlight-box::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background-color: white;
  transition: left 1s ease;
  transition-delay: 1.2s;
  z-index: -1;
}

.highlight-box span {
  position: relative;
  z-index: 2;
  color: white;
  transition: color 0.3s ease 1.2s;
}

.highlight-box.start span {
  color: var(--color-title);
}

.highlight-box.start::before {
  left: 0;
}

/* 下線アニメーション */
.underline-animation {
  position: relative;
  display: inline-block;
  white-space: nowrap;
}

.underline-animation::after {
  content: '';
  position: absolute;
  bottom: -0.08em; 
  left: 0;
  width: 0;
  height: 2px;
  background-color: white;
  transition: width 1s ease;
  transition-delay: var(--underline-delay, 0ms);
}

.underline-animation.start::after {
  width: 100%;
}

/* アニメーション定義 */

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* strengthセクションのみ特殊 */
@keyframes fadeInUpRotate {
  from {
    opacity: 0;
    transform: translateY(30px) rotate(180deg);
  }
  to {
    opacity: 1;
    transform: translateY(0) rotate(180deg);
  }
}

@keyframes slideInLeft {
  from {
    opacity: 0;
    transform: translateX(-50px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

/* backgroundのみ特殊 */
@keyframes slideInLeftWithOpacity {
  from {
    left: -100%;
    opacity: 0;
  }
  to {
    left: 0;
    opacity: 0.6; /* アニメーション後に半透明 */
  }
}

@keyframes slideInRightWithOpacity {
  from {
    right: -100%;
    opacity: 0;
  }
  to {
    right: 0;
    opacity: 0.6;
  }
}

@keyframes slideInRight {
  from {
    opacity: 0;
    transform: translateX(150px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes underlineExpand {
  from {
    width: 0;
  }
  to {
    width: 100%;
  }
}

/* サブセクション */
.about-sub-sections {
  display: block; /* グリッドレイアウトを解除 */
}

.sub-section {
  position: relative;
  overflow: hidden;
  height: 200px;
  cursor: pointer;
  transition: transform 0.3s ease;
}

/* 画像全体のリンク */
.sub-section-main-link {
  display: block;
  position: relative;
  width: 100%;
  height: 100%;
  text-decoration: none;
  color: inherit;
}

.sub-section-main-link:hover {
  color: inherit;
  text-decoration: none;
}

.sub-section-image {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}

.sub-section-image::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(45, 47, 47, 0.5); /* #2d2f2fを50%の透明度で適用 */
  z-index: 1;
  transition: background 0.3s ease; /* スムーズな変化を追加 */
}

.sub-section:hover .sub-section-image::before {
  background: rgba(45, 47, 47, 0.9); /* ホバー時に90%の透明度 */
}

.sub-section-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center center;
  filter: brightness(0.7);
}

.sub-section-content {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: transparent; /* オーバーレイを削除 */
  padding: 3rem;
  color: white;
  z-index: 2; /* オーバーレイより前面に表示 */
}

.sub-section-title {
  font-family: var(--font-family-default);
  font-size: var(--font-size-title);
  line-height: var(--lh-main-title);
  font-weight: bold;
  color: white;
  margin: 0;
  letter-spacing: var(--letter-spacing-sec-title);
}

.sub-section-label {
  font-family: var(--font-family-special-2);
  font-size: var(--font-size-label);
  line-height: var(--lh-label);
  color: white;
  letter-spacing: var(--letter-spacing-label);
  text-transform: uppercase;
}

.sub-section-link {
  position: absolute;
  top: 50%;
  right: 1rem; /* 画像内に収まるよう右端から少し内側に配置 */
  transform: translateY(-50%);
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none; /* クリックイベントを親のリンクに委譲 */
}

.sub-section-link img {
  width: 60px;
  height: auto;
  padding: 2rem;
}

/* サブセクション内の矢印コンテナ */
.sub-section-link .arrow-circle-container {
  width: 40px;
  height: 40px;
  padding: 0; /* パディングを削除して他のREAD MOREと統一 */
}

.sub-section-link .arrow-circle-container img {
  position: relative;
  width: 100%;
  height: 100%;
  object-fit: contain;
  z-index: 2;
  padding: 0; /* パディングをリセット */
}

.sub-section-link .circle-animation {
  position: absolute;
  top: 0;
  left: 8px; /* 他のREAD MOREボタンと同じ調整値 */
  width: 100%;
  height: 100%;
  z-index: 1;
}

/* サブセクションコンテナ */
.about-sub-container {
  max-width: 800px;
  margin: 0 auto;
  padding: 2rem;
  text-align: center;
}

/* ===============================
   ニュースセクション
=============================== */
.news-section {
  position: relative;
  width: 100vw;
  margin: 0 auto;
  padding: 5rem 0;
  background-color: var(--color-title);
  color: white;
  min-height: 100vh;
  display: flex;
  align-items: start;
  overflow: hidden;
  background-image: url('../images/news-bg.png');
  background-position: bottom center;
  background-repeat: no-repeat;
  background-size: cover;
}

.news-container {
  position: relative;
  z-index: 2;
  max-width: 1200px;
  margin: 0 auto;
  width: 100%;
  display: flex;
  align-items: flex-start;
  gap: 4rem;
}

.news-header {
  flex-shrink: 0;
  width: auto;
  text-align: left;
}

.news-label {
  font-family: var(--font-family-special-2);
  font-size: var(--font-size-label);
  line-height: var(--lh-label);
  color: white;
  letter-spacing: var(--letter-spacing-label);
  text-transform: uppercase;
}

.news-title {
  font-family: var(--font-family-default);
  font-size: var(--font-size-title);
  line-height: var(--lh-main-title);
  font-weight: bold;
  color: white;
  margin: 0;
  letter-spacing: var(--letter-spacing-sec-title);
}

.news-content {
  flex: 1;
}

.news-list {
  margin-bottom: 4rem;
}

.news-item {
  padding: 1.5rem 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.2);
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  transition: all 0.3s ease;
}

.news-item:last-child {
  border-bottom: none;
}

.news-date {
  font-size: 0.9rem;
  color: white;
  letter-spacing: 0.05em;
  font-weight: 500;
}

.news-title-text {
  font-size: 1.2rem;
  font-weight: normal;
  color: white;
  margin: 0;
  line-height: 1.4;
}

.news-more {
  text-align: right;
  padding-top: 5rem;
}

.news-more .read-more-btn {
  color: white;
  text-decoration: none;
  font-weight: bold;
  font-size: 1rem;
  letter-spacing: 0.05em;
  transition: color 0.3s ease;
  display: inline-flex;
  align-items: center;
}

.news-more .read-more-btn:hover {
  color: white;
}

/* ===============================
   レスポンシブ
=============================== */
@media (max-width: 768px) {
  :root {
    --font-size-title: 54.79px;
  }

  .first-view {
    justify-content: flex-start; /* モバイル時は左寄せベース */
    padding-left: 0;
  }

  /* モバイル時のメインタイトル */
  .main-title {
    font-family: var(--font-family-special-1);
    font-size: var(--mobile-font-size-fv-title);
    letter-spacing: var(--mobile-letter-spacing-title);
    color: var(--color-title);
    font-weight: bold;
    margin: 0 0 0.5rem 0;
    line-height: var(--mobile-lh-fv-title);
    white-space: nowrap;
    height: auto;
    text-align: left;
  }

  .main-title br {
    white-space: normal;
  }

  /* サブタイトル */
  .sub-title {
    font-family: var(--font-family-default);
    font-size: var(--mobile-font-size-fv-subtitle);
    color: var(--color-title);
    letter-spacing: var(--mobile-letter-spacing-text);
    font-weight: 600;
    margin: 0;
    line-height: var(--mobile-lh-fv-subtitle);
    min-height: 3.6em;
    white-space: normal;
    text-align: left;
  }

  .fv-content {
    padding: 0 1rem;
    margin-left: 0;
    margin-right: 0;
    max-width: 100%; /* モバイル時は幅制限を緩和 */
    width: auto;
  }

  /* モバイル時のスクロール円 */
  .scroll-svg.pc { display: none; }
  .scroll-svg.sp { display: block; }

  .scroll-circle {
  position: absolute;
  bottom: -130px; /* 矢印の位置をさらに下げる */
  left: -70px;
  transform: translateY(20%);
  width: 300px;   /* 必要に応じてサイズ調整 */
  height: 300px;
  z-index: 10;
  opacity: 0;
  transition: opacity 1.5s ease, transform 1.5s ease;
}

.scroll-circle.start {
  opacity: 1;
  transform: translateY(0);
}

  /* モバイル時のフッター */
  .site-footer {
    padding: 1.5rem 1rem;
  }

  .footer-bottom {
    padding: 0 1rem;
  }

  .footer-bottom p {
    font-size: 0.8rem;
  }

  /* モバイル時のビジョンセクション */
  .vision-section {
    padding: 8rem 0 0 0;
  }

  .vision-content {
    width: 100vw;
    margin: 0;
    margin-left: calc(50% - 50vw);
    padding: 1rem 3rem 3rem 3rem;
    box-sizing: border-box;
  }

  .vision-title {
    font-size: var(--mobile-font-size-sec-title);
  }

  /* モバイルでは .vision-header を画像上に配置 */
  .vision-header {
    position: absolute; /* 画像上に重ねるため絶対位置に戻す */
    top: 5%; /* 画像の上部に配置 */
    left: 0;
    right: 0;
    width: 100%;
    transform: none; /* transformをリセット */
    text-align: center;
    z-index: 5; /* 画像より前面に表示 */
    margin-top: 0; /* マージンをリセット */
  }

  .vision-logo img {
    height: 60px;
  }

  .vision-text {
    font-size: var(--mobile-font-size-main-text);
    line-height: var(--mobile-lh-main-text);
    letter-spacing: var(--mobile-letter-spacing-text);
    max-width: 100%;
    word-wrap: break-word;
    overflow-wrap: break-word;
  }

  /* モバイル時の画像レイヤー調整 */
  .vision-layer[data-layer="1"] {
    width: 250%;
    height: auto;
  }

  .vision-layer[data-layer="2"] {
    z-index: 2;
    width: 100%;
    height: auto;
    top: 20%; /* 2枚目も上に移動 */
  }

  .vision-layer[data-layer="3"] {
    height: 40%;
    width: auto;
    left: -90%;
    top: 55%;
  }

  /* モバイル時の事業紹介セクション */
  .service-section {
    padding: 4rem 0; /* 左右のパディングを削除して画面いっぱいに */
    min-height: auto;
    background-color: #F6F6F6;
  }

  .service-container {
    padding: 0; /* コンテナのパディングも削除 */
    max-width: 100%; /* 最大幅を画面いっぱいに */
  }

  .service-background {
    top: 180px;
    left: -5%;
    width: 95%;
    height: calc(100% - 230px);
    border-radius: 0 20px 20px 0;
    opacity: 0;
  }

  .service-overlay {
    top: 120px;
    right: -5%; /* オーバーレイを表示されるように調整 */
    width: 95%;
    height: calc(100% - 230px);
    background: rgba(255, 255, 255, 0.95);
    border-radius: 20px 0 0 20px;
    opacity: 0;
  }

  .service-vertical-text {
    display: none; /* モバイル時は縦テキストを非表示 */
  }

  .service-title {
    font-size: 1.8rem;
  }

  .service-grid {
    grid-template-columns: 1fr;
    gap: 1rem; /* 間隔を少し狭く */
    padding: 1rem; /* 左右のパディングを最小に */
    margin-bottom: 0;
  }

  .service-item {
    padding: 2rem 1rem; /* 左右のパディングを調整 */
    text-align: center;
    opacity: 0;
    transform: translateY(50px);
  }

  .service-image {
    height: 180px;
    margin-bottom: 1.5rem;
  }

  .service-name {
    font-size: var(--mobile-font-size-sub-title);
    margin-bottom: 1rem;
    line-height: 1.4;
  }

  .service-description {
    font-size: var(--mobile-font-size-sub-text);
    line-height: var(--mobile-lh-sub-text);
    letter-spacing: var(--mobile-letter-spacing-text);
  }

  .service-more {
    text-align: right;
    margin-right: 2rem;
    margin-top: 0;
  }

  /* モバイル時のWinrichの強みセクション */
  .strength-section {
    padding: 3rem 1rem;
    padding-bottom: 10rem; /* 下部に余白を追加 */
    min-height: auto;
  }

  .strength-container {
    padding: 0;
  }

  /* モバイル時は背景とオーバーレイを表示 */
  .strength-background {
    top: 140px;
    height: 640px; /* 固定の高さに変更 */
    width: 95%;
    border-radius: 20px 0 0 20px;
    opacity: 0;
  }

  .strength-overlay {
    top: 90px;
    height: 640px; /* 固定の高さに変更 */
    width: 95%;
    left: -5%;
    border-radius: 0 20px 20px 0;
    opacity: 0;
  }

  .strength-background.start {
    animation: slideInRightWithOpacity 1.5s ease-out 0.2s forwards;
  }

  .strength-overlay.start {
    animation: slideInLeft 1.5s ease-out 1.7s forwards;
  }

  .strength-vertical-text {
    display: none; /* モバイル時は縦テキストを非表示 */
  }

  .strength-grid {
    justify-content: center;
  }

  .strength-item {
    padding: 1rem;
    flex-direction: column;
    text-align: center;
    gap: 1.5rem;
    max-width: 100%;
  }

  .strength-item .strength-image {
    width: 100%;
    max-width: 300px;
    height: 300px;
    margin: 0 auto;
  }

  .strength-item .strength-content {
    text-align: center;
    max-width: 100%;
  }

  .strength-item .strength-name {
    font-size: 1.3rem;
    white-space: normal;
    line-height: 1.4;
    text-align: left;
    margin: 1rem auto;
    max-width: 100%;
    width: fit-content;
  }

  .strength-item .strength-description {
    font-size: 0.9rem;
    text-align: left;
  }

  .strength-more {
    text-align: center;
    margin-top: 2rem;
  }

  /* モバイル時の会社概要セクション */
  .about-section {
    padding: 3rem 0;
  }

  .about-image img {
    width: 95%;
}

  .about-header {
    margin-bottom: 3rem;
    text-align: center;
  }

  .about-vertical-text {
    font-size: 2rem;
  }

  .about-content {
    flex-direction: column;
    gap: 0;
    margin-bottom: 1rem;
    min-height: auto;
  }

  .about-image {
    max-width: 100%;
  }

  .about-image img {
    height: 250px;
  }

  .about-text {
    max-width: 100%;
    padding: 2rem 1rem;
  }

  .about-title {
    font-size: var(--mobile-font-size-sec-title);
  }

  .about-description p {
    font-size: var(--mobile-font-size-main-text);
    line-height: var(--mobile-lh-main-text);
    letter-spacing: var(--mobile-letter-spacing-text);
  }

  /* モバイル版の下線アニメーション修正 */
  .underline-animation {
    background-image: linear-gradient(currentColor, currentColor);
    background-size: 0% 2px;
    background-position: 0 100%;
    background-repeat: no-repeat;
    display: inline;
    white-space: normal; /* 改行を許可 */
    word-wrap: break-word; /* 長い単語を改行 */
    overflow-wrap: break-word; /* 単語の途中でも改行 */
    transition: background-size 1s ease;
    transition-delay: var(--underline-delay, 0ms);
  }

  .underline-animation.start {
    background-size: 100% 2px; /* 最終的に下線が表示される */
  }

  .about-sub-container {
    padding: 0 1rem;
  }

  .about-sub-sections {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  .sub-section {
    height: 150px;
  }

  .sub-section-content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    padding: 1rem;
    text-align: center;
    width: calc(100% - 2rem);
  }

  .sub-section-title {
    font-size: 1.3rem;
  }

  /* モバイル時はホバーアニメーションを無効化 */
  .read-more-btn:hover .circle-animation circle {
    opacity: 0;
    animation: none;
  }

  .sub-section:hover .circle-animation circle {
    opacity: 0;
    animation: none;
  }

  /* モバイル時のニュースセクション */
  .news-section {
    width: 100% !important;
    margin: 0;
    padding: 3rem 1rem;
    min-height: auto;
    box-sizing: border-box;
  }

  .news-container {
    flex-direction: column;
    gap: 2rem;
  }

  .news-content {
    width: 100%;
  }

  .news-header {
    width: 100%;
    margin-bottom: 3rem;
    text-align: center;
  }

  .news-title {
    font-size: 2rem;
    text-align: center !important;
  }

  .news-item {
    padding: 1rem 0;
  }

  .news-item:hover {
    padding-left: 0.5rem;
  }

  .news-title-text {
    font-size: 1.1rem;
  }

  .news-list {
    margin-bottom: 0;
  }

  .news-more {
    text-align: right;
    margin-top: 2rem;
  }


}

@media (min-width: 1440px) {
  .main-title {
    margin-bottom: 2rem; /* メインタイトルとサブタイトルの間隔を広げる */
  }
}

