/* 自動生成: style.css を役割別に分割 (STEP2). 手動編集は各パーシャルで. */

/* ============================================================
   HERO
   ============================================================ */

.hero { padding-top: 0; }

.hero__group {
  max-width: none;
  margin: 0 auto;
  padding: 0 1%;   /* メインビジュアルは左右1%ずつ余白 */
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 24px;
}

.slider {
  width: 100%;
  height: 547px;
  border-radius: 20px;
  overflow: hidden;
  position: relative;
}

.slider__track { width: 100%; height: 100%; position: relative; }

.slide {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  align-items: flex-start;
  padding: 0 0 72px 90px;
  opacity: 0;
  transition: opacity .8s ease;
  pointer-events: none;
  overflow: hidden;
}

.slide.is-active { opacity: 1; pointer-events: auto; }

/* 写真レイヤー：ホバーで少しズーム（押せる印象。スライド自体は動かない） */

.slide::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: inherit;
  background-size: cover;
  background-position: center;
  transition: transform .6s ease;
  z-index: 0;
}

.slide.is-active:hover::before { transform: scale(1.06); }

/* スライド全面リンク：クリックで遷移（暗転なし） */

.slide__link { position: absolute; inset: 0; z-index: 3; display: block; cursor: pointer; }

.slide__txt { max-width: 90%; position: relative; z-index: 4; pointer-events: none; }

.slide__title {
  font-weight: 700;
  font-size: clamp(28px, 4vw, 48px);
  color: var(--white);
  text-shadow: 0 4px 4px rgba(0, 0, 0, .25);
  margin-bottom: 8px;
}

.slide__lead {
  font-weight: 700;
  font-size: 16px;
  line-height: 1.6;
  color: var(--white);
  text-shadow: 0 2px 6px rgba(0, 0, 0, .35);
}

/* --- Slide 3: VALUE POINT collage --- */

.slide--collage {
  justify-content: center;
  align-items: center;
  padding: 40px;
  text-align: center;
}

.slide--collage::before { display: none; }

/* 下寄せグラデーションは無効化 */

.slide--collage::after {                          /* 文字視認用のフラットな暗幕 */
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, .42);
  z-index: 1;
}

.collage {
  position: absolute;
  inset: 0 -90px;          /* 斜めの端が画面外に出るよう左右に拡張 */
  display: flex;
  gap: 5px;
  overflow: hidden;
  background: #fff;        /* パネル間の細い区切り線 */
  z-index: 0;
}

.collage__panel {
  position: relative;
  flex: 1;
  overflow: hidden;
  transform: skewX(-9deg);
}

.collage__img {
  position: absolute;
  inset: -8% -22%;
  background-size: cover;
  background-position: center;
  transform: skewX(9deg);  /* 画像は水平に戻す */
}

.slide__txt--center { max-width: 820px; text-align: center; }

.slide__title--en {
  font-family: var(--font-en);
  letter-spacing: .04em;
}

.slide--collage .slide__title { font-size: clamp(40px, 8vw, 108px); line-height: 1.1; margin-bottom: 16px; }

/* コラージュもホバーで少しズーム（押せる印象） */

.slide--collage .collage { transition: transform .6s ease; }

.slide--collage.is-active:hover .collage { transform: scale(1.05); }

.slider__controls {
  display: flex;
  align-items: center;
  gap: 20px;
}

.slider__arrow {
  width: 20px;
  height: 20px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: none;
  border: none;
  color: var(--primary);
  cursor: pointer;
}

.slider__arrow svg { width: 9px; height: 14px; }

.slider__dots { display: flex; gap: 10px; }

.slider__dots button {
  width: 11px;
  height: 11px;
  border-radius: 50%;
  border: 1.4px solid var(--primary);
  background: transparent;
  padding: 0;
  cursor: pointer;
  transition: background .25s;
}

.slider__dots button.is-active { background: var(--primary); }

/* ============================================================
   NEWS
   ============================================================ */

.news { padding: 60px 0; }

.news__group {
  max-width: var(--content);
  margin: 0 auto;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 60px;
}

.news__head {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 146px;
  flex-shrink: 0;
}

.news__list { flex: 1; }

/* ※ 1行分（.news__row / __meta / __cat / __text / __arrow）は
   お知らせ一覧・詳細でも使うため common.css に移動 */

/* ============================================================
   SEARCH
   ============================================================ */

.search { background: var(--senary); padding: 80px 0; }

.search__group {
  max-width: var(--content);   /* 上のNEWSと同じ横幅 */
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.search__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 40px;
}

.search__title { font-size: 24px; font-weight: 600; line-height: 1.8; flex-shrink: 0; }

.search__desc { font-size: 14px; font-weight: 500; line-height: 2; max-width: 387px; }

.search__grid {
  display: grid;
  /* NEWSと同じ横幅に収めつつ1枚を広げる → 3カラム（折り返し解消） */
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.s-card {
  display: flex;
  flex-direction: column;
  border-radius: 10px;
  overflow: hidden;
  background: var(--white);
  transition: transform .25s, box-shadow .25s;
}

.s-card:hover { transform: translateY(-4px); box-shadow: 0 10px 24px rgba(0, 0, 0, .1); }

.s-card__photo { height: 150px; }

.s-card__photo img { width: 100%; height: 100%; object-fit: cover; }

.s-card__body {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 20px 16px;
  flex: 1;
}

.s-card__text {
  font-size: 14px;
  text-align: center;
  line-height: 1.9;
  width: 100%;
}

.s-card__text strong { font-weight: 700; }

.circle-arrow {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--primary);
  position: relative;
  flex-shrink: 0;
}

.circle-arrow::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 5px;
  height: 5px;
  border-top: 1.4px solid #fff;
  border-right: 1.4px solid #fff;
  transform: translate(-65%, -50%) rotate(45deg);
}

/* ============================================================
   SERVICE
   ============================================================ */

.service { position: relative; padding: 120px 0; overflow: hidden; }

.service__watermark {
  position: absolute;
  top: 90px;
  right: -10px;
  font-family: var(--font-en);
  font-weight: 700;
  font-size: 128px;
  color: rgba(178, 230, 228, .3);
  line-height: 1.2;
  pointer-events: none;
  z-index: 0;
}

.service__group {
  position: relative;
  z-index: 1;
  max-width: var(--wide);
  margin: 0 auto;
  padding: 0 var(--pad);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 32px;
}

.service__inner { display: flex; flex-direction: column; gap: 22px; width: 100%; }

.service__row { display: flex; gap: 20px; }

.service__row--top .svc-card { flex: 1; }

.service__row--bottom .svc-card { flex: 1; }

.svc-card {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  gap: 15px;
  min-height: 340px;
  padding: 40px 44px;
  background-size: cover;
  background-position: center;
  color: var(--white);
  overflow: hidden;
  transition: transform .3s;
}

.svc-card::before {   /* 写真レイヤー：ホバーで少しズーム（カード自体は動かない） */
  content: "";
  position: absolute;
  inset: 0;
  background-image: inherit;
  background-size: cover;
  background-position: center;
  transition: transform .6s ease;
  z-index: 0;
}

.svc-card::after {   /* 文字視認用グラデーション */
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0, 0, 0, .55), rgba(0, 0, 0, .05) 55%, rgba(0, 0, 0, .1));
  z-index: 1;
}

.svc-card:hover::before { transform: scale(1.07); }

.svc-card--lg { min-height: 457px; }

.svc-card__title,
.svc-card__text { position: relative; z-index: 2; text-shadow: 0 4px 6px rgba(0, 0, 0, .5); }

.svc-card__title { font-size: 24px; font-weight: 600; line-height: 1.4; }

.svc-card__title--sm { font-size: 20px; font-weight: 700; }

.svc-card__text { font-size: 12px; line-height: 1.7; text-align: left; }

.svc-card__text--sm { font-size: 12px; line-height: 1.6; }

.r-tl { border-top-left-radius: 30px; }

.r-tr { border-top-right-radius: 30px; }

.r-bl { border-bottom-left-radius: 30px; }

.r-br { border-bottom-right-radius: 30px; }

/* ============================================================
   STRENGTH / VALUE POINT
   ============================================================ */

.strength { padding-top: 0; }

.strength__head {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 32px;
  text-align: center;
  padding: 100px var(--pad) 0;
}

.strength__ja { font-size: 14px; }

.strength__ja b { color: var(--primary); font-size: 20px; font-weight: 700; }

.strength__desc { font-size: 14px; line-height: 1.7; }

.vp { padding: 80px 0; }

.vp--alt { background: var(--senary); }

.vp__inner {
  position: relative;
  max-width: var(--wide);
  margin: 0 auto;
  padding: 0 var(--pad);
  display: flex;
  align-items: center;
  gap: 60px;
}

.vp__inner--reverse { justify-content: space-between; gap: 40px; }

.vp__img { flex-shrink: 0; width: 620px; max-width: 52%; }

.vp__img img { width: 100%; height: 353px; object-fit: cover; border-radius: 10px; }

.vp__txt { flex: 1; max-width: 478px; }

.vp__title { font-size: 24px; font-weight: 600; line-height: 1.4; margin-bottom: 16px; }

.vp__body { font-size: 14px; line-height: 1.7; margin-bottom: 32px; }

.vp__num {
  position: absolute;
  top: -60px;
  left: var(--pad);
  font-family: var(--font-num);
  font-weight: 700;
  font-size: 96px;
  color: var(--primary);
  line-height: 1;
  z-index: 2;
}

.vp__num--right { left: auto; right: var(--pad); }

.point-group { display: flex; gap: 24px; }

.point {
  width: 100px;
  height: 100px;
  border-radius: 50%;
  background: var(--primary);
  color: var(--white);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  letter-spacing: .05em;
}

.point b { font-size: 16px; font-weight: 700; line-height: 1.6; }

.point small { font-size: 10px; font-weight: 700; line-height: 1.6; }

.transportcase {
  max-width: var(--wide);
  margin: 40px auto 0;
  padding: 30px 38px 30px 62px;
  background: var(--white);
  border-radius: 30px;
  display: flex;
  align-items: center;
  gap: 40px;
}

.transportcase__txt { flex-shrink: 0; display: flex; flex-direction: column; gap: 8px; }

.transportcase__sub { font-size: 14px; font-weight: 700; letter-spacing: .05em; color: #000; }

.transportcase__main {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-size: 24px;
  font-weight: 700;
  letter-spacing: .05em;
  color: #000;
}

.ico-arrow-lg { width: 20px; height: 12px; color: var(--primary); }

.transportcase__cards {
  flex: 1;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

.tcase {
  position: relative;
  aspect-ratio: 1 / 1;
  border-radius: 30px;
  background-size: cover;
  background-position: center;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  transition: transform .25s;
}

.tcase::before { content: ""; position: absolute; inset: 0; background: rgba(0, 0, 0, .3); }

.tcase:hover { transform: scale(1.03); }

.tcase span {
  position: relative;
  z-index: 1;
  color: var(--white);
  font-size: 20px;
  font-weight: 700;
  letter-spacing: .05em;
}

/* ============================================================
   COMPANY
   ============================================================ */

.company { position: relative; padding: 120px 0; overflow: hidden; }

.company__watermark {
  position: absolute;
  top: 50%;
  right: 30px;
  transform: translateY(-50%);
  writing-mode: vertical-rl;
  font-family: var(--font-en);
  font-weight: 700;
  font-size: 128px;
  letter-spacing: .02em;
  color: var(--secondary);
  line-height: 1;
  pointer-events: none;
  z-index: 0;
}

.company__shape {
  position: absolute;
  top: 0;
  left: 20%;
  width: 60%;
  height: 100%;
  background: var(--secondary);
  clip-path: polygon(74.7% 0, 100% 0, 25.3% 100%, 0 100%);
  z-index: 0;
  pointer-events: none;
}

.company__group {
  position: relative;
  z-index: 1;
  max-width: var(--content);
  margin: 0 auto;
  padding: 0 var(--pad);
  display: flex;
  align-items: center;
  gap: 46px;
}

.company__text { width: 387px; flex-shrink: 0; display: flex; flex-direction: column; gap: 64px; }

.company__title { font-size: 32px; font-weight: 700; line-height: 1.4; }

.company__body { font-size: 14px; line-height: 1.7; margin-top: -40px; }

.company__img { flex: 1; }

.company__img img { width: 100%; max-width: 407px; border-radius: 6px; margin-left: auto; }

@media (max-width: 1024px) {
  .slider { height: 460px; }
  /* service watermark smaller */
  .service__watermark { font-size: 88px; }
  /* company shape hidden on tablet */
  .company__watermark { font-size: 96px; }
}

@media (max-width: 900px) {
  /* 狭い画面では端に張り付かないよう左右余白を確保（デスクトップは余白なし） */
  .news__group, .search__group { padding-inline: var(--pad); }
  .news__group { flex-direction: column; gap: 30px; }
  .news__head { flex-direction: row; align-items: center; justify-content: space-between; width: 100%; min-height: 0; }
  .search__grid { grid-template-columns: repeat(2, 1fr); }
  .search__head { flex-direction: column; align-items: flex-start; gap: 16px; }
  .search__desc { max-width: none; }
  /* strength cases 2-up */
  .transportcase { flex-direction: column; align-items: flex-start; padding: 30px; }
  .transportcase__cards { width: 100%; }
}

@media (max-width: 768px) {
  .hero__group { padding: 0 1%; }
  .slider { height: 380px; border-radius: 14px; }
  .slide { padding: 0 0 40px 24px; }
  .slide__lead { font-size: 13px; }
  /* service: top 2 stack, bottom 3 stack */
  .service { padding: 80px 0; }
  .service__row { flex-direction: column; }
  .svc-card, .svc-card--lg { min-height: 300px; }
  .r-tl, .r-tr, .r-bl, .r-br { border-radius: 0; }
  .service__row--top .svc-card:first-child { border-radius: 20px 20px 0 0; }
  .service__row--bottom .svc-card:last-child { border-radius: 0 0 20px 20px; }
  /* value point: stack image over text */
  .vp { padding: 70px 0 50px; }
  .vp__inner, .vp__inner--reverse { flex-direction: column; align-items: stretch; gap: 24px; }
  .vp__inner--reverse { flex-direction: column-reverse; }
  .vp__img { width: 100%; max-width: 100%; }
  .vp__img img { height: 240px; }
  .vp__txt { max-width: 100%; }
  .vp__num { top: -50px; font-size: 72px; }
  .vp__num--right { right: var(--pad); left: auto; }
  .point-group { justify-content: center; gap: 14px; }
  .point { width: 84px; height: 84px; }
  .transportcase__cards { grid-template-columns: repeat(2, 1fr); gap: 14px; }
  /* company */
  .company { padding: 80px 0; }
  .company__group { flex-direction: column; gap: 32px; }
  .company__text { width: 100%; gap: 32px; }
  .company__body { margin-top: 0; }
  .company__title { font-size: 26px; }
  .company__img img { margin: 0 auto; }
  .company__watermark { font-size: 72px; right: 6px; }
  .company__shape { left: 30%; width: 70%; }
}

@media (max-width: 460px) {
  .search__grid { grid-template-columns: 1fr; }
  .slide__title { font-size: 24px; }
}

/* ===== 事業紹介カード Coming Soon（構築中） ===== */

.svc-card--soon { cursor: default; }

.svc-card--soon:hover::before { transform: none; }

/* ホバーのズーム無効 */

.svc-card--soon::after { background: linear-gradient(to top, rgba(0,0,0,.62), rgba(0,0,0,.28) 55%, rgba(0,0,0,.35)); }

/* 少し暗くして準備中を示す */

.svc-card__soon {
  position: absolute;
  top: 18px; right: 18px;
  z-index: 3;
  background: rgba(255,255,255,.95);
  color: #333;
  font-family: var(--font-en);
  font-weight: 700;
  font-size: 12px;
  letter-spacing: .1em;
  padding: 7px 16px;
  border-radius: 30px;
  pointer-events: none;
}

/* ===== 事業紹介カード Coming Soon（構築中） ===== */

.svc-card--soon { cursor: default; }

.svc-card--soon:hover::before { transform: none; }

.svc-card--soon::after { background: linear-gradient(to top, rgba(0,0,0,.62), rgba(0,0,0,.28) 55%, rgba(0,0,0,.35)); }

.svc-card__soon {
  position: absolute;
  top: 18px; right: 18px;
  z-index: 3;
  background: rgba(255,255,255,.95);
  color: #333;
  font-family: var(--font-en);
  font-weight: 700;
  font-size: 12px;
  letter-spacing: .1em;
  padding: 7px 16px;
  border-radius: 30px;
  pointer-events: none;
}
