/* components/experts.css
   Mobile-first, clean and deduplicated
*/
#hero,
.hero {
  padding-top: 80px;
}

#hero {
  height: 90vh;
  background-image: url('/assets/img/hitachi.jpg');
  background-size: cover;        /* 要素全体を覆うように拡大縮小 */
  background-position: center;   /* 中央を基準にトリミング */
  background-repeat: no-repeat;
  color: #fff;
  display: flex;
  align-items: center;
}

/* hero title / lead (mobile-first) */
.hero__title {
  font-size: 1.8rem;
  line-height: 1.2;
}

/* hero title english */
.hero__title-en {
  display: block;
  font-size: 0.9rem;
  color: #959a9e;
  margin-top: 6px;
  font-weight: 600;
}
.company__content {
  margin-bottom: 40px; /* 好みで 16〜40px を調整 */
}
/* ---------- Base containers (mobile) from experts ---------- */
.company__image {
  width: 70%;  
  margin: 0 auto;
}

/* ---------- Desktop breakpoint (layout) ---------- */
@media (min-width: 640px) {
  .hero__title { font-size: 2.0rem; }
  .hero__title {
    /* responsive scaling on large screens */
    font-size: clamp(2.2rem, 3vw, 3rem);
    line-height: 1.15;
  }
  .company__content {
    display: flex;
    flex-direction: row;
    flex-wrap: nowrap;       /* 折り返しを防ぐ */
    align-items: center;
    justify-content: center;
    gap: 32px;
    margin-top: 18px;
  }

  .company__col--left {
    flex: 1 1 320px;
    min-width: 220px;
  }

  .company__col--right {
    flex: 1 1 420px;
    min-width: 280px;
  }

.company__image {
  width: 100%;
  aspect-ratio: 1 / 1;    /* 正方形に固定 */
  object-fit: cover;      /* 切り取りで枠を埋める */
  object-position: center;
  display: block;
  border-radius: 8px;
}

}
/* ---------- Base containers (mobile) ---------- */
/* hero inner containers (mobile base) */
.hero-inner,
.hero__inner {
  max-width: 650px;
  margin-left: 5%;
  padding: 0 16px;
}

.hero__columns,
.experts__content {
  display: flex;
  flex-direction: column;
  gap: var(--gap);
  align-items: stretch;
}
/* ---------- Titles / text (mobile-first) ---------- */


.experts__hero-title {
  font-size: 1.4rem;
  margin: 18px 0 8px 0;
  color: var(--color-ink);
  opacity: 0.95;
  text-align: center;
}

.top__lead {
  margin: 0;
  color: var(--color-sub);
  line-height: 1.7;
  padding: 0;
  border-left: none;
}

/* ---------- Action button ---------- */
.hero__actions { margin-top: 12px; }

.hero__action-link {
  display: inline-block;
  padding: 10px 14px;
  background: var(--accent);
  color: #fff;
  border-radius: 6px;
  text-decoration: none;
  font-weight: 600;
}


/* ---------- Tablet breakpoint ---------- */
@media (min-width: 640px) {
  .hero__inner,
  .experts__inner {
    padding: 28px;
    max-width: var(--max-width);
  }

  .hero__columns,
  .experts__content {
    gap: 24px;
  }

  .experts__hero-title { font-size: 1.6rem; }
}

/* ---------- Desktop breakpoint (layout) ---------- */
@media (min-width: 881px) {
  .hero__columns,
  .experts__content {
    flex-direction: row;
    gap: 32px;
    max-width: var(--max-width);
    margin-left: auto;
    margin-right: auto;
    align-items: flex-start;
  }


  .hero__col,
  .experts__col--left,
  .experts__col--right {
    /* 50% を解除して柔軟に */
    width: auto;
    flex: 1 1 0;
    min-width: 0; /* 子要素のオーバーフロー防止 */
  }

  .experts__col--left,
  .experts__col--right {
    margin-top: 50px;
  }

  .hero__col--left { display: flex; align-items: flex-start; justify-content: flex-start; }

  .experts__hero-title {
    /* 画面幅に応じて自然に拡大縮小 */
    font-size: 1.8rem;
    line-height: 1.15;
    text-align: left;
  }
  
  .experts__col--right { padding-left: 24px;}
  .top__lead {
    padding-left: 24px;
    border-left: 2px solid rgba(11,44,88,0.06);
    border-left-color: transparent;
    word-break: normal;
    overflow-wrap: break-word;

  }
}

/* ---------- Small screen tweaks ---------- */
@media (max-width: 420px) {
  
}

/* ============================
   business / company sections
   モバイルファースト（1列→タブレットで3列）
   ============================ */
.business__image{
  text-align: center;
  margin: 1rem 0;
}
.business__image img{
  max-width: 100%;
  height: auto;
  display: block;
  margin: 0 auto;
  border-radius: 8px;
}


/* news component - uses existing root variables */
.news {
  background: var(--color-bg);
  color: var(--color-ink);
  font-family: var(--font-sans);
  padding: 28px 0;
}

.news .section__inner {
  width: 90%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 16px;
}

/* list layout */
.news__list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0; /* 区切り線を使うため gap は 0 */
}

/* item row */
.news__item {
  border: none;
  border-radius: 0;
  background: transparent;
  overflow: visible;
  transition: none;
}

/* 区切り線（前のアイテムとの間） */
.news__item + .news__item {
  border-top: 1px solid transparent;
  position: relative;
}
.news__item + .news__item::before {
  content: "";
  position: absolute;
  left: 14px;
  right: 14px;
  top: 0;
  height: 1px;
  background: linear-gradient(90deg, rgba(0,0,0,0) 0%, var(--color-divider) 40%, var(--color-divider) 60%, rgba(0,0,0,0) 100%);
  pointer-events: none;
}

/* link wrapper */
.news__item > a {
  display: flex;
  gap: 12px;
  align-items: center;
  text-decoration: none;
  color: inherit;
  padding: 12px 14px;
  transition: none;
}

/* date column */
.news__date {
  flex: 0 0 92px;
  min-width: 92px;
  font-size: 13px;
  color: var(--color-muted);
  line-height: 1.2;
  white-space: nowrap;
  text-align: left;
}

/* content column */
.news__content {
  flex: 1 1 auto;
  min-width: 0;
}

/* category label */
.news__category {
  display: inline-block;
  padding: 4px 8px;
  background: transparent;
  color: #f38d2e;
  border: 1px solid #f38d2e;
  border-radius: 0;
  font-size: 0.75rem;
  line-height: 1;
  font-weight: normal;
  letter-spacing: .02em;
  margin-bottom: 8px;
}

/* title */
.news__title {
  display: block;
  font-size: 16px;
  line-height: 1.45;
  color: var(--color-ink);
  font-weight: 600;
}

/* hover / focus 無効化 */
.news__item:hover,
.news__item:focus-within {
  background-color: var(--news-item-hover);
  box-shadow: none;
  transform: none;
}


.company__lead {
  letter-spacing: 0.05rem;
  font-weight: 500;
  text-align: center;
  color: var(--text);
  text-shadow:
    0 1px 0 rgba(165, 165, 165, 0.06),
    0 2px 6px rgba(10,111,191,0.10),
    0 6px 18px rgba(170, 170, 170, 0.08);
}

.business__image{
  width: 90%;
  margin: 0 auto;
  max-width: 500px;
  padding-bottom: 40px;
}

/* footer link */
.section__footer {
  margin-top: 18px;
  text-align: center;
}
.news .section__footer a {
  color: var(--color-accent);
  text-decoration: none;
  font-weight: 600;
}
/* ボタン風リンク */
.section__footer .btn-top {
  display: inline-block;
  padding: 10px 20px;           /* 上下 10px、左右 20px */
  border: 1.5px solid #000;       /* 細い黒枠 */
  border-radius: 20px;          /* 角丸（好みで調整） */
  background: #fff;             /* 背景色（画像と同じ白） */
  color: var(--color-ink);   /* テキスト色 */
  text-decoration: none;
  font-weight: 600;
  font-size: 14px;              /* 文字サイズ（必要に応じ調整） */
  line-height: 1;               /* 垂直中央揃えを安定させる */
  box-sizing: border-box;
  -webkit-font-smoothing: antialiased;
  transition: background-color .2s ease, color .2s ease;
}

/* ホバー時の微調整（任意） */
.section__footer .btn-top:hover,
.section__footer .btn-top:focus {
  background: var(--color-ink);
  color: #fff;
  outline: none;
  text-decoration: none;
}

/* responsive adjustments */
@media (min-width: var(--break-md)) {
  .news__item > a {
    padding: 16px 18px;
  }
  .news__date {
    flex-basis: 120px;
    min-width: 120px;
    font-size: 14px;
  }
  .news__title {
    font-size: 17px;
  }
}

@media (max-width: 420px) {
  .news__item > a {
    flex-direction: column;
    align-items: stretch;
  }
  .news__date {
    min-width: auto;
    margin-bottom: 8px;
  }
  .news__item > a::after {
    align-self: flex-end;
    margin-top: 6px;
    margin-left: 0;
  }
}

@media (prefers-reduced-motion: reduce) {
  .news__item,
  .news__item > a {
    transition: none;
  }
}

/* コンテナ */
.carousel {
  width: 100%;
  overflow: hidden;
  position: relative;
  margin-bottom: 20px;
}

/* ビューポートラッパー（任意だが安定する） */
.carousel__viewport {
  overflow: hidden;
}

/* トラックを横並びに固定 */
.carousel__track {
  display: flex;
  flex-direction: row;
  flex-wrap: nowrap;
  gap: 0px;
  transition: transform 600ms ease;
  will-change: transform;
  align-items: stretch;
}

/* 各スライド：固定幅（1枚ずつ移動する単位） */
.carousel__slide {
  flex: 0 0 280px; /* 固定幅。必要なら 240/320/clamp に変更 */
  box-sizing: border-box;
  padding: 0;
}

/* 画像の縦伸びを防ぐ */
.carousel__slide img,
.carousel__image {
  width: 100%;
  height: 180px; /* 固定高さで見た目を揃える */
  display: block;
  object-fit: cover;
  object-position: center;
  border-radius: 8px;
}

/* 矢印ボタン（共通） */
.carousel__prev,
.carousel__next {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1px solid rgba(0,0,0,0.08);
  background: rgba(255,255,255,0.95);
  display: inline-flex;            /* 中央揃えに安定 */
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 20;
  box-shadow: 0 2px 6px rgba(0,0,0,0.08);
  padding: 0;                       /* 余白を消す */
  line-height: 0;                   /* テキスト行高さで広がらないように */
  overflow: hidden;                 /* 中身がはみ出しても親は広がらない */
  font-size: 18px;                  /* ボタン自体のフォントサイズ（任意） */
}

.recruit__message {
   text-align: center; 
   padding-bottom: 18px;
  }

/* 左右位置 */
.carousel__prev { left: 8px; }
.carousel__next { right: 8px; }

/* 小さい画面でボタンを少し小さくする */
@media (max-width: 480px) {
  .carousel__prev,
  .carousel__next {
    width: 36px;
    height: 36px;
    font-size: 18px;
  }
}


/* prefers-reduced-motion */
@media (prefers-reduced-motion: reduce) {
  .carousel__track { transition: none; }
}

/* デスクトップ調整 */
@media (min-width: 881px) {
  .carousel { max-width: 960px; margin-left: auto; margin-right: auto; }
  .carousel__slide { flex: 0 0 320px; }
  .carousel__slide img { height: 200px; }
}
