/* style.css */

/* ========================================
 * 各セクションのスタイル
 * ======================================== */

 #loader {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: #fff;
  z-index: 1000; /* ← hero-heart より後ろ */
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity 0.6s ease;
}

#loader.loaded {
  opacity: 0;
  pointer-events: none;
}


.loader-content {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.loader-text {
  font-size: 3rem;
  color: #fff;
  font-family: var(--font-family-base);
  opacity: 1;
  z-index: 2222;
  animation: none; /* ← アニメーションを除去 */
  text-shadow: 0px 4px 4px rgba(0, 0, 0, 0.5);
  position: absolute;
  top: 42%;
}


.load-heart {
  top: 50%;
  left: 50%;
  width: 20rem;
  transform: translate(-50%, -50%);
  z-index: 1001;
  animation: pulse 2.5s ease-in-out infinite;
  position: absolute;
}

@keyframes fadeIn {
  to {
    opacity: 1;
  }
}
@keyframes pulse {
  0%   { transform: translate(-50%, -50%) scale(1); opacity: 0.9; }
  50%  { transform: translate(-50%, -50%) scale(1.05); opacity: 1; }
  100% { transform: translate(-50%, -50%) scale(1); opacity: 0.9; }
}


@media screen and (max-width: 768px) {
  .load-heart {
    width: 10rem;
  }
}


/* ファーストビューアニメーション */
.hero-title,
.hero-lead {
  opacity: 0;
  transform: translateY(60px);
}

@media screen and (max-width: 768px) {
  .hero-title,
  .hero-lead {
    transform: translateY(10px);
  }
}
/* ファーストビュー */


.hero-section {
  position: relative;
    color: var(--color-white);
  /* padding: 128px 0; */
  padding: 0;           /* ← 余白をリセット */
  min-height: 500px;
  height: 100vh;        /* ← 確実に指定 */
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
}


.hero-section .l-container {
    position: relative;
    z-index: 2;
    text-align: center;
    font-family: var(--font-family-serif);
}
.hero-title {
    /* 最小値: 40px, 推奨値: 5vw (ビューポート幅の5%), 最大値: 80px */
    font-size: clamp(2.5rem, 5vw, 5rem);
    font-weight: bold;
    margin-bottom: var(--space-md);
    text-shadow: 0px 4px 4px rgba(0, 0, 0, 0.5);
}

.hero-title,
.hero-lead {
  position: relative;
  z-index: 3;
}

.hero-button-wrapper {
  display: flex;
  justify-content: center;
  align-items: center;
}

/* Slide 2 専用のロゴサイズ調整 */
.slide-2 .hero-button-logo {
  height: 30px;
  width: auto;
  display: block;
  padding-right: 1rem;
}

.hero-button-link {
  display: inline-flex;
  align-items: center;
  background-color:var(--color-primary);
  color: #fff;
  font-weight: bold;
  font-size: 1.5rem;
  padding: 1.2rem 5.4rem;
  text-decoration: none;
  border: 6px solid #fff;
  transition: background-color 0.3s ease;
}

.hero-button-link:hover {
  background-color: var(--color-primary-light-2);
  color: #fff;
}

.hero-button-text {
  margin-right: 1rem;
}

.hero-button-arrow {
  width: 1rem;
  height: auto;
  transition: transform 0.3s ease;
}

.hero-button-link:hover .hero-button-arrow {
  transform: translateX(10px); /* ←右にスライド */
}

.hero-button-arrow img {
  width: 1rem; /* 適宜調整 */
  height: auto;
  display: inline-block;
}



@media (max-width: 768px) {
    .hero-section {
        padding: 96px 0;
    }
    .hero-title {
        font-size: 2.0rem;
    }

    .hero-lead {
      font-size: 1.25rem; /* 16px */
  }
    .hero-button-text {
      font-size: 1.5rem;
      padding: 0 1rem;
    }

    .hero-button-text .arrow {
      font-size: 1.2rem;
    }

    .hero-button-link {
      font-size: 1.2rem;
      padding: 0.5rem 1.6rem;
      border-width: 4px;
    }

    .hero-button-arrow {
      width: 0.9rem;
    }

    .hero-button-text {
      margin-right: 0.8rem;
    }

    .hero-button-wrapper {
      padding: 1rem;
    }
    .hero-button-link:hover .hero-button-arrow {
      transform: translateX(5px); /* ←右にスライド */
    }

}
.hero-lead {
    /* 最小値: 24px, 推奨値: 3.5vw (ビューポート幅の3.5%), 最大値: 60px */
    font-size: clamp(24px, 3.5vw, 60px);
    font-weight: bold;
    line-height: var(--line-height-base);
    margin-bottom: var(--space-xl);
    text-shadow: 0px 4px 4px rgba(0, 0, 0, 0.5);
    letter-spacing: 0.1rem;
}

.hero-swiper .swiper-wrapper{
  height: 100%;
}

/* スライダーの親（フレックスコンテナに追従） */
.hero-swiper {
  position: relative;
  width: 100%;
  height: 100vh; /* 明示的にビュー高さ指定 */
}

.swiper-slide {
  position: relative;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  width: 100%;
  height: 100vh; /* スライドの高さを画面に固定 */
  display: flex;              /* ← 中央揃えのため追加 */
  justify-content: center;
  align-items: center;        /* ← 上下中央揃え */
}

.hero-swiper .swiper-slide::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
}

.hero-swiper .swiper-slide::before {
  background-color: rgba(0, 0, 0, 0.5);
}

.hero-swiper .swiper-button-next:after, .swiper-rtl .swiper-button-prev:after,
.hero-swiper .swiper-button-prev:after, .swiper-rtl .swiper-button-next:after{
  color: var(--color-primary);
}

.hero-heart-wrapper {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 20rem;
  height: 20rem;
  z-index: 1; /* 背景の上、テキストの下 */
  pointer-events: none;
}
.hero-heart-main {
  display: block;
  width: 100%;
  height: auto;
  margin: 0;
  padding: 0;
  vertical-align: middle;
  animation: pulseScale 2.5s ease-in-out infinite;
  transform-origin: center center; /* 中心拡縮 */
}

@keyframes pulseScale {
  0%   { transform: scale(1); opacity: 0.9; }
  50%  { transform: scale(1.05); opacity: 1; }
  100% { transform: scale(1); opacity: 0.9; }
}

/* スライドごとの中央配置 */
.hero-section .swiper-slide {
  display: flex;
  align-items: center;
  justify-content: center;
}

.slide-1 {
  background-image: url('../images/bg1.webp');
}

.slide-2 {
  background-image: url('../images/bg2.webp');
}

.slide-3 {
  background-image: url('../images/bg3.webp');
}

@media (max-width: 768px) {
  .hero-heart-wrapper,
  .load-heart {
    width: clamp(16rem, 30vw, 20rem);
    height: clamp(16rem, 30vw, 20rem);
  }
}




/* Philosophyセクション全体 */
.philosophy-section {
  padding: 96px 0;
  display: block;
  background-color: var(--color-white);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);

}

/* 各ブロック */
.philosophy-block {
  margin-bottom: var(--space-3xl);
}

.philosophy-content {
  display: flex;
  align-items: center;
  gap: var(--space-lg);
  flex-wrap: nowrap;
}


.philosophy-content.reverse {
  flex-direction: row-reverse;
}



.philosophy-title {
  font-size: clamp(2rem, 2vw + 0.5rem, 3rem);
  white-space: nowrap;
  white-space: nowrap;
  font-weight: bold;
  color: var(--color-primary);
  margin-bottom: var(--space-sm);
}

/* 疑似要素で線を追加 */
.philosophy-title::before,
.philosophy-title::after {
  content: "";
  display: inline-block;
  /* 幅を画面に応じて可変 */
  width: clamp(2rem, 10vw, 4rem);
  /* 線の太さも可変にする場合 */
  height: clamp(3px, 0.5vw, 5px);
  background-color: var(--color-primary); /* 赤色に揃える */
  border-radius: 999px;
  vertical-align: middle;
  margin: 0 1rem;
}

.philosophy-title::before {
  margin-right: 1rem;
}

.philosophy-title::after {
  margin-left: 1rem;
}

/* モバイル用調整（幅: 50px → 30px、太さ: 6px → 3px） */
@media (max-width: 768px) {
  .philosophy-title::before,
  .philosophy-title::after {
    width: 30px;
    height: 3px;
    margin: 0 0.5rem;
  }
}
.lead-title {
  font-size: clamp(2.0rem, 3vw + 0.2rem, 3.5rem);
  white-space: nowrap;
  font-weight: bold;
  color: var(--color-primary);
  margin-bottom: var(--space-sm);
}

.lead-subtitle {
  font-size: 28px;
  color: var(--color-primary);
  font-weight: bold;
  font-size: clamp(1.3rem, 1.4vw + 0.2rem, 1.75rem);
  white-space: nowrap;
  margin-bottom: 30px;
}

.description {
  max-width: 500px;        /* 任意の幅 */
  width: 100%;             /* 親に対して広がる（狭すぎを防止） */
}


.description p {
  font-size: 1rem;
  color: var(--color-gray-dark);
  line-height: 40px;
  margin-bottom: var(--space-md);
  background: #ffffff78;
  padding: 10px;
  border-radius: 20px;
}

.philosophy-values {
  position: relative;
}

.philosophy-values .philosophy-content{
 flex-direction: column;
}

.philosophy-values::after {
  content: "";
  position: absolute;
  bottom: 0;
  right: -50px;
  width: 100%;
  height: 100%;
 background: url("../../assets/images/values.webp") no-repeat bottom right;
    background-size: contain;
    opacity: var(--after-opacity, 0); /* GSAPから制御される */
    transition: none; /* GSAP制御に切り替えるため */
  pointer-events: none;
  z-index: 0;
}

.philosophy-values.after-visible::after {
  opacity: 0.8;
}

.philosophy-values .philosophy-content {
  position: relative;
  z-index: 1;
}


/* 左側のラッパー */
.text-area {
  flex: 1;
  min-width: 300px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  width: 100%;         /* ← これも重要：親内で全幅に広がる */
  max-width: 100%;     /* ← 意図しない制限を防ぐ */
}


.values-list {
  width: 100%;
  max-width: 100%; /* ← 変なmax-widthがかかってたら解除 */
  margin-bottom: var(--space-xl);
}


.values-grid {
  display: grid;
  grid-template-columns: auto 1fr; /* ← 左のアイコンにauto、右に余白を取る */
  gap: 30px var(--space-xl);
  list-style: none;
  padding: 0;
  margin: 0;
  justify-items: start;
  text-align: left;
  width: 100%; /* ← これが重要 */
}


.values-grid li {
  display: flex;
  align-items: center;
  font-size: 1rem;
  color: var(--color-gray-dark);
  gap: var(--space-sm);
}

.values-grid img {
  width: 2rem;
  height: 2rem;
}

/* レスポンシブ対応 */
@media screen and (max-width: 768px) {
  .values-grid {
    grid-template-columns: 1fr;
  }
}


/* レイアウト */
.text {
  flex: 1;
  min-width: 360px;
}

.visual {
  flex: 1;
  min-width: 300px;
  text-align: center;
}
.visual img {
  max-width: 100%;
  height: auto;
  max-width: clamp(300px, 40vw, 600px);
}


@media screen and (max-width: 768px) {
  .philosophy-section{
    padding: 40px 0;
  }
  .philosophy-block{
    margin-bottom: var(--space-md);
  }

  .philosophy-content {
    position: relative;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    overflow: hidden;
    min-height: 500px; /* 各背景画像の高さに応じて調整 */
  }

  /* PC版の画像は非表示 */
  .philosophy-content .visual {
    display: none;
  }

  /* テキストボックス：共通 */
  .philosophy-content .text,
  .philosophy-content .text-area {
    position: relative;
    z-index: 1;
    background-color: rgba(255, 255, 255, 0.85);
    padding: 0.5rem;
    width: 100%;
    /* min-width: 375px; */
    max-width: 500px;
    /* margin: 0 auto; */
    text-align: center;
  }

  /* === 共通：テキスト装飾 === */
  .philosophy-title {
    font-size: 1.5rem; /* 24px */
    font-weight: bold;
    color: var(--color-primary);
    margin-bottom: 1rem;
  }


  .lead-title{
    font-size: 1.5rem;

  }

  .lead-subtitle,
  .description p {
    font-size: 1rem;
    line-height: 1.7;
    margin-bottom: 1rem;
  }

  .lead-subtitle {
    font-weight: bold;
    color: var(--color-primary-light-1);
  }
  .description p{
    text-align: left;
  }
  .description p:last-child {
    margin-bottom: 0;
  }

  /* === ブロック別 背景画像 === */

  .philosophy-block.philosophy-mission {
    background-image: url('../../assets/images/mission.webp'); /* mission用画像 */
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    /* padding: 3rem 0; */
    position: relative;
  }

  .philosophy-block.philosophy-vision {
    background-image: url('../../assets/images/vision.webp'); /* vision用画像 */
    background-size: contain;
    background-position: center;
    background-repeat: no-repeat;
    /* padding: 3rem 0; */
    position: relative;
  }

  .philosophy-values::after {
    display: none !important;
    content: none !important;
    background: none !important;
  }


    .philosophy-values .text-area {
      display: flex;
      flex-direction: column-reverse;
      align-items: center;
      width: 100%;
    }

    .text-area .text {
      position: relative;
      z-index: 3;
      width: 100%;
      max-width: 500px;
      /* margin: 0 auto; */
      text-align: center;
    }

    .philosophy-block.philosophy-values::before {
      content: "";
      position: absolute;
      bottom: 0;
      left: 50%;
      transform: translateX(-50%);
      width: 120%;
      max-width: 480px;
      height: 100%;
      background-image: url('../../assets/images/values_sp.webp');
      background-size: contain;
      background-position: bottom center;
      background-repeat: no-repeat;
      z-index: 0;
    }

    .values-list {
      position: relative;
      z-index: 2;
      padding: 2rem 1rem;
      width: 90%;
      max-width: 500px;
      margin: 2rem auto 0;
      text-align: left;
    }




    .values-grid {
      position: relative;
      z-index: 2;
    }
  }

/* ===============================
   DataBeeの強みセクション
   =============================== */
/* グレー背景 */
.strength-section {
  background-color: var(--color-background-light);
  padding: var(--space-2xl) 0;
  position: relative;
}

/* 白背景：常に画面の70%、左端に貼り付け */
.strength-box {
  background-color: var(--color-white);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1); /* ←奥行き */
  width: 70vw;
  margin-left: 0;
  margin-right: auto;
  padding: var(--space-xl) 0;
  position: relative;
  border-radius: 0 15px 15px 0;
}

/* .strength-box .l-container {
  margin-left: auto;
  margin-right: auto;
  padding-left: var(--space-sm);
  padding-right: var(--space-sm);
} */


/* リスト全体 */
.strength-list {
  display: flex;
  flex-direction: column;
  gap: var(--space-2xl);
}

/* 各ブロック */
.strength-item {
  position: relative;
  display: flex;
  align-items: center;
  min-height: 300px;
  margin-bottom: var(--space-2xl);
}

/* テキスト */
.strength-text {
  flex: 1;
  z-index: 2;
  position: relative;
  width: 500px;
  padding-right: 200px; /* ← 画像とぶつからないよう余白 */
}


/* 番号と見出し */
.strength-number {
  margin-bottom: var(--space-xl);
  position: relative;
}
.strength-number img {
  max-width: 125px;
  height: auto;
  display: block;
}

.strength-heading {
  position: absolute;
  top: 50%;
  left: 5%;
  transform: translateY(-50%);
  font-size: clamp(1rem, 2.9vw, 2.5rem);
  white-space: nowrap;
  font-weight: bold;
  color: var(--color-primary);
}

/* 本文 */
.strength-text p {
  font-size: 1rem;
  line-height: 40px;
  color: var(--color-gray-dark);
  width: 100%;
  max-width: 100%;
  word-break: normal;
}


/* ヘキサゴン画像：白背景右端に固定 */
.strength-image {
  position: absolute;
  top: 50%;
  right: -80px;
  transform: translate(65%, -50%); /* 画像の半分だけ外に出す */
  max-width: clamp(200px, 50vw, 500px); /* 自動で縮小 */
  width: 100%;
  z-index: 1;
  pointer-events: none;
}


@media screen and (max-width: 768px) {
  .strength-box {
    width: 100%;
    border-radius: initial;
  }


  .strength-text {
    max-width: 375px;
    width: 100%;
    padding-right: 0;
    padding-right: 0;
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-bottom: 1.5rem;
  }

  .strength-text p {
    font-size: 1rem;
    text-align: left;
    margin-top: 1rem;
    line-height: 1.7;
  }
  .strength-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    /* padding: 2rem 0; */
    margin-bottom: 1rem;
  }


  .strength-number {
    position: relative;
    text-align: center;
    display: inline-block;
  }

  .strength-image {

    display: none;
  }

  .strength-image img {
    width: 100%;
    height: auto;
    display: block;
  }


  .strength-heading {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 1.625rem;
    color: var(--color-primary);
    text-align: center;
    line-height: 1.7;
    z-index: 2;
    pointer-events: none;
  }
}


/* --- 数字で見るDataBeeセクション --- */
.data-section {
  background-color: var(--color-background-light);
  padding: var(--space-2xl) 0;

}

.data-grid {
  display: grid;
  grid-template-columns: 1fr 1fr; /* 上段は2カラム固定 */
  gap: var(--space-xl);
  margin-top: var(--space-xl);
}

/* 下段をネスト：中で60% + 40% */
.data-grid-row-2col {
  display: grid;
  grid-template-columns: 3fr 2fr; /* ← 60% / 40% 相当 */
  gap: var(--space-xl);
  grid-column: span 2;
}

/* 下段をネスト：中で均等 */
.data-grid-row-evenly {
  display: grid;
  grid-template-columns: 1fr 1%; /* ← 50% / 50% 相当 */
  gap: var(--space-xl);
  grid-column: span 2;
}

.data-card img {
  max-width: 100%;
  height: auto;
  display: block;
  margin: 0 auto;
}

/* box-sizingリセット（全体に適用されていない場合） */
*,
*::before,
*::after {
  box-sizing: border-box;
}




.data-card {
  background-color: #fff;
  border-radius: var(--radius);
  padding: var(--space-lg);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.06);
  text-align: center;

}

.data-card-text{
  margin-bottom: var(--space-lg);
  white-space: nowrap;       /* ← 折り返し禁止 */
  text-overflow: ellipsis;   /* ← はみ出した部分に「…」を付ける */
}

.data-card--column {
  display: flex;
  flex-direction: column;
  justify-content: center; /* ←縦中央揃え */
  text-align: center;
}

.data-card--left .data-value {
  text-align: left;
  font-size: clamp(1.5rem, 2vw, 2rem);
}

.data-card--flex{
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 30px;
}

.data-label {
  font-weight: bold;
  font-size: 1.1rem;
  color: var(--color-gray-dark);
  margin-bottom: var(--space-xs);
}

.data-value {
  font-size: clamp(1.0rem, 2vw, 2rem);
  font-weight: bold;
  color: var(--color-gray-dark);
  line-height: 1.2;
}

.data-note {
  font-size: 0.8rem;
  color: var(--color-gray-medium);
  white-space: wrap;
}

.highlight {
  color: var(--color-primary);
  font-weight: bold;
  font-size: clamp(1.5rem, 4vw, 4rem);
  padding: 0 var(--space-xs);
}



.data-value-inner{
  display: flex;
  gap: 1rem;
  align-items: center;
  }

/* スマホ：すべて1カラム */
@media screen and (max-width: 768px) {
  .data-grid {
    grid-template-columns: 1fr;
    position: relative;
    gap: var(--space-lg);
  }
  .data-grid-row-2col {
    grid-template-columns: 1fr;
    grid-column: auto;
  }

  .data-value{
    font-size: clamp(0.6rem, 4vw, 1.25rem);

  }

  .data-value-inner{
  display: flex;

  }
  .data-card{
    padding: var(--space-sm);
  }

  .data-card--flex{
    flex-direction: column;
  }

.data-card .data-card-icon{
  min-width: 100px;

}
  .highlight {
    font-size: 2.5rem;

  }

  .hide-on-mobile{
    display: none;
  }
}

/* ==============================
   プロダクト・サービス セクション
============================== */
.product-section {
  background-color: var(--color-white);
  padding: var(--space-2xl) 0;
}

.product-intro {
  position: relative;
  text-align: center;
  padding: var(--space-2xl) 0;
  background-color: var(--color-white);
  min-height: 470px; /* 画像と同じ高さを確保 */
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 4rem;
}


.product-intro::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 470px;
  height: 470px;
  background-image: url(../../assets/images/our_services_top.webp); /* ←背景画像のパスに変更してください */
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
  z-index: 0;

}

.product-intro-inner {
  position: relative;
  z-index: 1;
  margin: 0 auto;
  padding: 0 1rem;
}

.product-intro-title {
  font-size: clamp(1.5rem, 2vw + 1rem, 2.5rem);
  font-weight: bold;
  margin-bottom: var(--space-md);
  color: var(--color-gray-dark);
}

.product-lead {
  font-size: 1.5rem;
  line-height: 1.8;
  font-weight: bold;
  color: var(--color-gray-dark);
}

.text-red {
  color: var(--color-primary);
  font-weight: bold;
}

.product-card-list {
  display: flex;
  flex-direction: column;
  gap: 2rem;
  margin: 0 auto;
  padding: 0;
  list-style: none;
  max-width: 900px;
  padding-bottom: 36px;
}

.product-card {
  display: flex;
  background-color: #fff;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
  overflow: hidden;
  width: 100%;
  min-height: 146px;
  position: relative;
  align-items: stretch; /* ← 高さを揃える */
}



.product-card-link {
  color: inherit; /* リンク全体の文字色を継承（ホバー時に色が変わらないように） */
  text-decoration: none;
  display: flex;
  align-items: stretch;
}

.product-card-link:hover {
  color: inherit !important; /* 明示的に全体ホバー色変化を防止 */
}

.product-card-link:hover .card-title {
  color: inherit !important; /* タイトルだけは確実に色を変えない */
}

.product-card-link:hover .card-description {
  color: var(--color-primary); /* 説明文だけ赤のままに */
}


.card-img {
  flex-shrink: 0;
  flex: 0 0 auto;
  max-width: 340px;
  width: 100%;
  background-color: var(--color-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}
.card-img,
.card-content {
  height: 100%; /* 子要素を同じ高さに */
}
.card-img img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}

.card-text {
  padding: 1.5rem;
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.card-title {
  font-size: 1.25rem;
  font-weight: bold;
  margin-bottom: 0.5rem;
  color: #333;
  font-size: calc(14px + 0.5vw); /* 例: 約14〜18px程度で変化 */
  /* white-space: nowrap; */
}

.card-description {
  font-size: calc(12px + 0.4vw); /* 例: 約12〜15px程度で変化 */
  font-weight: bold;
  line-height: 1.6;
  color: var(--color-primary);
  /* white-space: nowrap; */
}

.card-icon {
  position: absolute;
  bottom: 0;
  right: 0;
  width: 30px;
  height: 30px;
}

.card-icon img {
  width: 100%;
  height: 100%;
  display: block;
}

@media (max-width: 768px) {

  .product-intro{
    min-height: 300px;
    padding: 0;
    margin: 4rem 0;
  }

  .product-intro-title{
    font-size: clamp(1.25rem, 2vw + 1rem, 2.0rem);
  }
  .product-lead{
    text-align: left;
    font-size: 1rem;
  }
  .product-lead br{
    display: none;
  }

  .product-intro::before {
    width: 300px;
    height: 300px;
  }


  .product-swiper {
    width: 100vw;
    margin-left: calc(-50vw + 50%);
    position: relative;
  }

  .product-swiper .swiper-wrapper {
    flex-direction: row !important;
    align-items: stretch;
  }

  .product-swiper .swiper-slide {
    max-width: 375px;
    width: 75%;
    flex-shrink: 0 !important;
    display: flex;
    flex-direction: column;
    justify-content: center;
    background: #fff;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    /* overflow: hidden; */
  }


  .product-card-list {
    gap: 1rem;
    max-width: 100%;
    padding-bottom: 56px;
  }



  .card-body {
    padding: 1rem;
    width: 100%;
  }

  .card-footer {
    text-align: right;
    width: 100%;
    bottom: 0;
  }
  .card-footer img {
  display: inline-block;
  }

  .link-icon {
    width: 30px;
    height: 30px;
  }

  /* swiperボタン */

  .swiper-button-prev::after,
.swiper-button-next::after {
  display: none;
}

  /* ボタン全体 */
.custom-swiper-button {
  width: 40px;
  height: 40px;
  background-color: #fff;
  border: 1px solid #ccc;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 10;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

/* 前ボタン */
.swiper-button-prev.custom-swiper-button {
  left: 5px; /* お好みで調整 */
}

/* 次ボタン */
.swiper-button-next.custom-swiper-button {
  right: 5px; /* お好みで調整 */
}

/* 中の画像 */
.custom-swiper-button img {
  width: 12px;
  height: auto;
}


  /* .product-swiper-button-prev,
  .product-swiper-button-next {
    top: 50%;
    transform: translateY(-50%);
    z-index: 10;
  }

  .product-swiper-button-prev {
    left: 8px;
  }

  .product-swiper-button-next {
    right: 8px;
  } */



}

/* ========== Culture Section ========== */

.culture-section {
  background-color: var(--color-background-light);
  padding: 100px 0;
}

.culture-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-direction: column;
  gap: 4rem;
}

.culture-text {
  flex: 1;
}


.culture-image {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.5rem; /* 段間の余白を最小限に */
}

.culture-row {
  display: flex;
  gap: 2rem; /* 横の余白を確保 */
  justify-content: center;
}

.culture-row img {
  width: clamp(200px, 30vw, 420px);
  height: auto;
}



@media (max-width: 768px) {

  .culture-content {
    gap: 2rem;
  }

  .culture-image img:nth-child(1),
  .culture-image img:nth-child(2) {
    display: none;
  }

  .culture-image{
    gap: 0;
  }

  .culture-row img {
    min-width: 338px;
    height: auto;
  }

}

/* ========== recruit Section ========== */

.recruit-section {
  position: relative;
  background-color: var(--color-background-light);
  overflow: visible; /* ←念のため */
  padding: 4rem;
  z-index: 0;

}

/* 背景画像用（前面に重ねる） */
.recruit-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: url('../../assets/images/bg-recruit-shape.webp') no-repeat center center;
  background-size: cover;
  pointer-events: none; /* 背景画像がクリックを邪魔しない */
  z-index: 0;
}
/* 中身のテキスト・画像 */
.recruit-inner {
  position: relative;
  z-index: 1;
  max-width: 1440px;
  width: 100%;
  margin: 0 auto;
  display: flex;
  flex-wrap: nowrap; /* wrapさせない（横並び固定） */
  align-items: center;
  justify-content: center;
  gap: 2rem;
}
.recruit-left {
  display: flex;
  flex-direction: column;
  flex: 1;
  gap: 1.5rem;
}

.recruit-pc,
.recruit-text {
  flex: 0 0 60%;
  width: 100%;
}
.recruit-text {
  flex: 1;
  min-width: 320px;
  order: 1;
}

.recruit-heading {
  font-size: 2.5rem;
  color: var(--color-primary);
  font-weight: bold;
  display: inline-block;
  padding-bottom: 0.5rem;
  margin-bottom: 1rem;
}

.recruit-heading::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  height: 2px;
  width: 100%;
  background-color: #e60033;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.8s ease;
}

.recruit-heading.is-visible::after {
  transform: scaleX(1);
}

.recruit-subheading {
  font-size: 1.5rem;
  font-weight: bold;
  margin-bottom: 1.5rem;
}
.recruit-subheading span {
  color: var(--color-primary);
}

.recruit-description {
  font-size: 1rem;
  line-height: 1.8;
  margin-bottom: 2rem;
}


/* .btn-base {
  display: inline-block;
  background-color: var(--color-primary);
  color: #fff;
  padding: 0.75rem 1.5rem;
  border-radius: 9999px;
  font-weight: bold;
  text-decoration: none;
  font-size: 0.95rem;
  transition: background-color 0.3s ease;
}

.btn-base:hover {
  background-color: #cc002e;
} */

.recruit-image {
  flex: 0 0 40%;
  max-width: 600px;
  text-align: center;
  order: 2;
}

.recruit-image img {
  width: 100%;
  max-width: 600px;
  height: auto;
}

/* スマホ版レイアウト（画像→テキストの順） */

@media (max-width: 768px) {

  .recruit-description {
    text-align: left;
  }


  .recruit-heading{
    font-size: 2rem;
  }

  .recruit-inner {
    flex-direction: column;
    text-align: center;
    align-items: center;
  }
  .recruit-left {
    display: contents; /* ← 中身だけを表示し、ラップ要素を消す */
  }
  .recruit-pc{
    order: 1;
  }

  .recruit-text {
    text-align: center;
    order: 3;
  }


  .recruit-text, .recruit-image {
    width: 100%;
    text-align: center;
  }
  .recruit-image {
    min-width: 300px;
    order: 2;
  }

}

.company-section {
  background-color: var(--color-white);
  padding: var(--space-2xl) 0;
}

.company-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-xl);
}

.company-image,
.company-text {
  flex: 1;
}

.company-image img {
  max-width: 100%;
  height: auto;
  display: block;
}

.company-logo {
  width: 410px;
  height: auto;
  margin-bottom: var(--space-md);
}

.company-description {
  font-size: 1rem;
  line-height: 1.9;
  color: var(--color-gray-dark);
  margin-bottom: var(--space-xl);
  display: inline-block;
  max-width: 454px;
}

.company-button-wrapper {
  margin-top: var(--space-md);
}

.text-red {
  color: var(--color-primary);
  font-weight: bold;
}

/* レスポンシブ：縦並び + 順番変更 */
@media screen and (max-width: 768px) {

  .company-section {
    padding: var(--space-2xl) 0;
  }
  .company-inner {
    flex-direction: column;
    gap: var(--space-md);
  }

  .company-image {
    order: 1;
    max-width: 330px;
  }

  .company-text {
    order: 2;
    text-align: center;
  }

  .company-logo {
    margin: 0 auto var(--space-md);
    width: 150px;
  }

  .company-description {
    text-align: left;
  }
}


/* ==== Top: News cards ==== */
.home-news-head{ margin-bottom: 1rem; }

.home-news-eyebrow{ font-weight:700; line-height:1; margin:0; }

.home-news-eyebrow .dot{ color: var(--color-primary); margin-right:.25rem; }

.home-news-sub{ margin:.25rem 0 0; color:#b8b8b8; font-size:.9rem; }

.home-news-outer{ position: relative; }

.home-news-grid{
  display:grid;
  grid-template-columns: repeat(3, minmax(0,1fr));
  gap: 24px;
}


.home-news-card{
  background:#fff;
  border:1px solid #eee;
  overflow:hidden;
}
.home-news-link{
  display:block;
  color:inherit;
  text-decoration:none;
}

/* サムネ（正方形）＋右上ラベル */
.home-news-thumb{
  position: relative;
  aspect-ratio: 33 / 20;
  width: 100%;
  background: #f2f2f2;
  overflow: hidden;
  margin: 0;                /* 念のため */
}
/* グローバルの img { height:auto } に勝つ */
.home-news-thumb > img{
  display: block;
  width: 100%;
  height: 100% !important;  /* ← ここが肝 */
  object-fit: cover;
}

/* no-image */
.home-news-thumb .noimg{
  display: block;
  width: 100%;
  height: 100%;
  background: #e9e9e9;
}

/* 右上バッジ */
.home-news-badge{
  position:absolute; top:8px; right:8px;
  background: var(--color-primary);
  color:#fff;
  font-size:1rem;
  font-weight:700;
  line-height:1;
  padding:.5rem 1.2rem;
  letter-spacing:.08em;
  border: 1px solid var(--color-white);
}

/* テキスト */
.home-news-body{ padding: 1rem; }
.home-news-date{
  display:block;
  font-size:.85rem;
  color: var(--color-primary);
  font-weight:700;
  margin: .25rem 0 .25rem;
}
.home-news-title{
  margin:0 0 .35rem;
  font-weight:700;
  line-height:1.5;
  font-size: clamp(1rem, .3vw + .95rem, 1.1rem);
}
.home-news-excerpt{
  margin:0;
  color:#555;
  line-height:1.6;
  display:-webkit-box;
  -webkit-line-clamp: 2;  /* 2行で省略 */
  -webkit-box-orient: vertical;
  overflow:hidden;
}

.home-news-link:hover .home-news-title{ text-decoration: underline; }

/* もっと見る */
.home-news-more{ margin-top: 1.75rem; text-align:center; }
.home-news-more-btn{
  display:inline-flex; align-items:center; gap:.5rem;
  background: var(--color-primary);
  color:#fff; text-decoration:none; font-weight:700;
  padding: .75rem 1.5rem;
  border-radius: 999px;
}
.home-news-more-btn .arrow{ font-size:1.1rem; line-height:1; }
.home-news-more-btn:hover{ filter: brightness(1.05); }


@media (max-width: 1024px){
  .home-news-grid{ grid-template-columns: repeat(2, minmax(0,1fr)); }
}
@media (max-width:768px){
  /* SP：1枚スライダー（横スクロールをJSで制御） */
  .home-news-grid{
    display: flex;
    overflow-x: auto;            /* ← auto に変更 */
    overscroll-behavior-x: contain;
    -webkit-overflow-scrolling: touch;
    gap: 16px;
    scroll-behavior: smooth;
    scroll-snap-type: x mandatory; /* 任意：スナップ */
  }
  .home-news-card{
    flex: 0 0 100%;
    scroll-snap-align: start;    /* 任意：スナップ */
  }
  .home-news-nav{
    all: unset;
    display:block;
    position:absolute;
    top:50%; transform:translateY(-50%);
    width:36px; height:36px; z-index:10; cursor:pointer;
    background-color:#fff; border-radius:50%;
    box-shadow:0 2px 6px rgba(0,0,0,.15);
    background-repeat:no-repeat; background-position:center;
    background-size:auto 18px; /* 画像比率を保持 */
  }
  .home-news-nav.prev{ left:-6px;  background-image:url('../../assets/images/cn_icon_arrow_left.webp'); }
  .home-news-nav.next{ right:-6px; background-image:url('../../assets/images/cn_icon_arrow_right.webp'); }
  .home-news-nav[disabled]{ opacity:.35; pointer-events:none; }
}


@media (max-width:768px){
  [data-home-news-list]{
    display:flex !important;
    overflow-x:auto !important;
    gap:16px !important;
    scroll-behavior:smooth;
    -webkit-overflow-scrolling:touch;
  }
  [data-home-news-list] .home-news-card{
    flex:0 0 100% !important;  /* 1画面=1枚 */
  }
}
