/* ======================
    Hero Slider
======================= */
.hero-slider {
  position: relative;
  overflow: hidden;
  width: 100%;
  height: 100vh;
}

.hero-slider .image-slider {
  aspect-ratio: 16 / 9;
  height: 100%;
  position: relative;
  width: 100%;
}

.hero-slider .slides {
  height: 100%;
  position: relative;
  width: 100%;
}

.hero-slider .slide {
  height: 100%;
  left: 0;
  object-fit: cover;
  opacity: 0;
  position: absolute;
  top: 0;
  transition: opacity 1s ease-in-out;
  width: 100%;
}

.hero-slider .slide.active {
  opacity: 1;
}

/* オーバーレイ上にテキストを表示 */
.hero-overlay {
  position: absolute;
  text-align: center;
  color: var(--color-white);
  z-index: 2;
  padding: 2rem;
}
.hero-overlay h1 {
  font-family: Montserrat;
  font-size: var(--font-size-slogan);
  font-weight: 600;
  line-height: 1.0;
  text-align: left;
}
.hero-overlay h1 span{
  color: var(--color-light-blue);
}
.hero-overlay p {
  font-size: 1.2rem;
  font-weight: 700;
  text-align: left;
}
.hero-overlay.text {
  top: 130px;
}
.hero-overlay.logo {
  bottom: 10px;
  text-align: center;
  width: 100%;
}
.hero-overlay.logo img {
  width: 200px;
}

/* レスポンシブMobile用（～768px） */
@media screen and (max-width: 768px) {
  .hero-overlay h1 {
    font-size: 3rem;
  }
  .hero-overlay p {
    font-size: 1rem;
  }
  .hero-overlay.logo img {
    width: 120px;
  }
}

/* ======================
    News セクション (Slider)
======================= */
.news-section {
  background-color: var(--color-light-blue);
}
.news-section h2 {
  color: var(--color-white);
}
.news-section .pick-up-inner {
  margin: 0 auto;
  max-width: 1200px;
}
.pickup-slider {
  position: relative;
  overflow: hidden;
}
.pickup-slider-wrapper {
  display: flex;
  transition: transform 0.3s ease-in-out;
}
/* ==== ボタン類 ==== */

/* ボタンラッパ: スライダー右上に固めて配置 */
.pickup-controls {
  display: flex;
  gap: 0.8rem;   /* ボタン間の余白 */
  justify-content: end;
  margin-bottom: 10px;
}

/* 円形ボタン (prev/next) の共通スタイル */
.pickup-controls button {
  align-items: center;
  background-color: var(--color-light-blue);
  border-radius: 50%;
  border: 1px solid var(--color-white);
  color: var(--color-white);
  cursor: pointer;
  display: flex;
  font-size: 1.2rem;
  height: 50px;
  justify-content: center;
  line-height: 1;               /* 縦中央に矢印を配置 */
  transition: background-color 0.2s, color 0.2s, box-shadow 0.2s;
  width: 50px;
}
.pickup-controls button span {
  font-size: 26px;
  font-weight: 300;
}

.pickup-card {
  background-color: unset;
  color: var(--color-white);
}
.pickup-card-img {
  border-radius: 20px;
}

/* ホバー・フォーカス時の演出 */
.pickup-controls button:hover,
.pickup-controls button:focus {
  background-color: var(--color-white);
  color: var(--color-light-blue);
  box-shadow: 0 0 4px rgba(0,0,0,0.3);
}

/* レスポンシブMobile用（～768px） */
@media screen and (max-width: 768px) {
  .news-section {
    padding: 0px 16px 0px 16px;
  }
  .pick-up-section h2 {
    font-size: var(--font-size-mobile-h2);
    margin-bottom: 4px;
  }
  .pick-up-section .headline--subtitle {
    font-size: var(--font-size-mobile-subtitle);
  }
}

/* タブレット～PC (最大幅 1024px) */
@media screen and (min-width: 768px) {
  .pickup-card {
    flex: 0 0 calc((100% / 4) - (16px / 4));
    margin-right: 8px;
  }
}

/* ======================
    Vision セクション
======================= */
.vision-section .headline--secondary {
  color: var(--color-light-blue);
}

@media screen and (max-width: 768px) {
  .vision-section .mt-50 {
    margin-top: 30px;
  }
  .vision-section .headline--secondary {
    line-height: 3rem;
  }

  .vision-section .is-flex {
    flex-direction: column;
  }
}

/* ======================
    Value セクション
======================= */
.value-section .headline--secondary {
  color: var(--color-light-blue);
}

@media screen and (max-width: 768px) {
  .value-section .mt-50 {
    margin-top: 30px;
  }
  .value-section .headline--secondary {
    line-height: 3rem;
  }

  .value-section .is-flex {
    flex-direction: column;
  }
}

/* スライダー */
.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;
  }
}

/* ======================
    Service セクション
======================= */
.service-section {
  background-color: var(--color-light-blue);
  color: var(--color-white);
}
.service-section .headline{
  color: var(--color-white);
}

.service-section .grid-col-2 img  {
  border-radius: 30px;
}

@media screen and (max-width: 768px) {
  .service-section .mt-50 {
    margin-top: 30px;
  }
  .service-section .headline--secondary {
    line-height: 3rem;
  }

  .service-section .is-flex {
    flex-direction: column;
  }
}

/* ======================
    Material セクション
======================= */
.material-section {
  background-color: var(--color-light-blue);
  color: var(--color-white);
}
.material-section .headline{
  color: var(--color-white);
}

@media screen and (max-width: 768px) {
  .material-section .mt-50 {
    margin-top: 30px;
  }
  .material-section .headline--secondary {
    line-height: 3rem;
  }

  .material-section .is-flex {
    flex-direction: column;
  }
}

/* ======================
    Works セクション
======================= */
.works-section {
  background-color: var(--color-light-blue);
  color: var(--color-white);
}
.works-section .headline {
  color: var(--color-white);
}
.works-section img {
  border-radius: 30px;
}

@media screen and (max-width: 768px) {
  .works-section .mt-50 {
    margin-top: 30px;
  }
  .works-section .headline--secondary {
    line-height: 3rem;
  }

  .works-section .is-flex {
    flex-direction: column;
  }
}

/* ======================
    Sustainability セクション
======================= */
.sustainability-section .headline--secondary {
  color: var(--color-light-blue);
}

.sustainability-section .grid-col-2 img  {
  border-radius: 30px;
}

@media screen and (max-width: 768px) {
  .sustainability-section .mt-50 {
    margin-top: 30px;
  }
  .sustainability-section .headline--secondary {
    line-height: 3rem;
  }

  .sustainability-section .is-flex {
    flex-direction: column;
  }

  .round-button span {
    margin-left: 18px;
  }
}

/* ======================
    Certification セクション
======================= */
.certification-section {
  background-color: var(--color-light-blue);
  color: var(--color-white);
}
.certification-section .headline{
  color: var(--color-white);
}

.certification-section .is-flex img  {
  width: 200px;
}
.certification-list {
  width: 60%;
}

@media screen and (max-width: 768px) {
  .certification-section .mt-50 {
    margin-top: 30px;
  }
  .certification-section .headline--secondary {
    line-height: 3rem;
  }

  .certification-section .is-flex {
    flex-direction: column;
  }

  .certification-section .certification-list {
    width: 100%;
  }
}

/* ======================
    Policymark セクション
======================= */
.policymark-section .is-flex img  {
  width: 200px;
}

@media screen and (max-width: 768px) {
  .policymark-section .is-flex {
    flex-direction: column;
  }

  .policymark-section .certification-list {
    width: 100%;
  }
}

/* ======================
    50ANNIVERSARY リンク
======================= */
.info-box {
  bottom: 20px;
  padding: 1.5rem 0.5rem;
  position: fixed;
  right: 20px;
  z-index: 1000;
  width: auto;
}

/* 閉じるボタン */
.info-box-close {
  background: transparent;
  border: none;
  color: #fff;
  cursor: pointer;
  font-size: 2.0rem;
  line-height: 1;
  position: absolute;
  right: 0px;
  top: 0px;
}

.info-box.mobile {
  background-color: var(--color-primary);
  border-radius: 10px 0 0 10px;
  display: block;
  height: 160px;
  padding: 8px;
  position: fixed;
  right: 0px;
  top: 60%;
  transform: translateY(-50%);
  transition: top 0.6s ease;
  width: auto;
  z-index: 1000;
}

.info-box.mobile.scrolled {
  top: 85%;
}

/* リンク */
.info-box.mobile .info-box-link img {
  height: 100%;
}
.info-box.fc {
  background-color: var(--color-light-blue);
  top: 40%;
}

/* レスポンシブ対応 */
@media screen and (max-width: 768px) {
  .info-box.mobile {
    top: auto;
    bottom: 80px;
  }
  .info-box.fc {
    top: auto;
    bottom: 250px;
  }
}
