/* ======================================================================
   Seitaro Arai — Unified Stylesheet
   Path: /in/css/components.css
   Scope: Hero / Chips / Section Header / Cards / News / Map
   Notes:
   - Breakpoints consolidated at bottom (1200 / 920 / 768).
   - Shorthand removed for maintainability.
   ====================================================================== */


/* ======================================================================
   01) HERO
   - ヒーロービジュアル＋前景テキスト
   ====================================================================== */

.hero {
  position: relative;

  /* 背景 */
  background-color: var(--bg);
  background-image: none;
  background-repeat: no-repeat;
  background-position: 0% 0%;
  background-size: auto;

  /* 余白（下のみ可変余白は後段で指定） */
  padding-top: 0;
  padding-right: 0;
  padding-bottom: 0;  /* 下部は下段で clamp 指定 */
  padding-left: 0;
}

/* 下端余白（視覚バランス用） */
.hero {
  padding-bottom: clamp(180px, 25vh, 300px);
}

.hero-bg {
  position: relative;
  width: 100%;
  height: auto;
}

.hero-img {
  display: block;
  width: 100%;
  height: clamp(420px, 64vh, 760px);

  object-fit: cover;
  object-position: center center;
}

/* 前景の暗幕（スクリム） */
.hero-scrim {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;

  background-color: transparent;
  background-image: linear-gradient(
    180deg,
    rgba(0, 0, 0, 0.18),
    rgba(0, 0, 0, 0.10) 40%,
    rgba(255, 255, 255, 0.00) 85%
  );
  background-repeat: no-repeat;
  background-position: 0% 0%;
  background-size: auto;
}

/* 前景コンテンツ（テキスト塊） */
.hero-inner {
  position: relative;

  /* 画像上にせり上げる */
  margin-top: -40vh;

  /* 幅・位置 */
  max-width: var(--max);
  margin-right: auto;
  margin-bottom: 0;
  margin-left: auto;

  /* 内側余白 */
  padding-top: 28px;
  padding-right: 20px;
  padding-bottom: 28px;
  padding-left: 20px;

  /* 視覚 */
  border-top-left-radius: 16px;
  border-top-right-radius: 16px;
  border-bottom-right-radius: 16px;
  border-bottom-left-radius: 16px;

  z-index: 1; /* scrim より手前 */
}

.hero-title {
  color: #ffffff;
  text-shadow: 0 8px 24px rgba(0, 0, 0, 0.35);
}

.hero-sub {
  color: #eef5ff;
  text-shadow: 0 6px 18px rgba(0, 0, 0, 0.30);
}


/* ======================================================================
   02) SCROLL CUE
   - 画面下部のスクロール誘導
   ====================================================================== */

.scroll-cue {
  position: absolute;
  top: auto;
  right: auto;
  bottom: 22px;
  left: 50%;

  transform: translateX(-50%);

  background-color: rgba(13, 71, 161, 0.18);
  background-image: none;

  padding-top: 8px;
  padding-right: 14px;
  padding-bottom: 8px;
  padding-left: 14px;

  border-top-left-radius: 999px;
  border-top-right-radius: 999px;
  border-bottom-right-radius: 999px;
  border-bottom-left-radius: 999px;

  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);

  transition-property: transform;
  transition-duration: 0.15s;
  transition-timing-function: ease;
  transition-delay: 0s;

  z-index: 2;
}

.scroll-cue .arrow {
  width: 12px;
  height: 28px;
}

.scroll-cue:hover {
  transform: translateX(-50%) translateY(-1px);
}

.mvv-intro {
  text-align: center;
}
 
/* ======================================================================
   03) SECTION HEADER（見出し・英字見出し・下線・ホイール飾り）
   ====================================================================== */

.section-header {
  display: flex;
  align-items: flex-end;
  justify-content: flex-start;

  column-gap: 12px;
  row-gap: 12px;
  flex-wrap: wrap;

  margin-top: 0;
  margin-right: 0;
  margin-bottom: 1.6rem;
  margin-left: 0;
}

/* 英字アイブロウ */
.eyebrow-en {
  display: block;

  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  font-size: 0.78rem;
  color: var(--blue);

  position: relative;

  margin-top: 0;
  margin-right: 0;
  margin-bottom: 0.35rem;
  margin-left: 0;

  padding-top: 0;
  padding-right: 0;
  padding-bottom: 0;
  padding-left: 1.1rem; /* 左のライン分 */
}

.eyebrow-en::before {
  content: "";

  position: absolute;
  top: 0.6em;
  right: auto;
  bottom: auto;
  left: 0;

  width: 0.7rem;
  height: 2px;

  background-color: transparent;
  background-image: linear-gradient(90deg, var(--blue), var(--blue-2));
  background-repeat: no-repeat;
  background-position: 0% 0%;
  background-size: auto;

  border-top-left-radius: 2px;
  border-top-right-radius: 2px;
  border-bottom-right-radius: 2px;
  border-bottom-left-radius: 2px;
}

/* 主見出し（下線＋右にホイール飾り） */
.section-title.visual-title {
  display: flex;
  align-items: center;
  justify-content: flex-start;

  column-gap: 12px;
  row-gap: 0;

  position: relative;
  overflow: visible;

  margin-top: 0;
  margin-right: 0;
  margin-bottom: 0;
  margin-left: 0;

  padding-top: 0;
  padding-right: 140px;  /* ホイール分の余白 */
  padding-bottom: 0.55rem;
  padding-left: 0;
}

.section-title.visual-title > span {
  display: inline-block;

  font-weight: 900;
  font-size: clamp(1.9rem, 2.4vw, 2.6rem);
  letter-spacing: 0.01em;
  line-height: 1.15;

  color: #0f172a;

  position: relative;
  z-index: 2;
}

/* 下線 */
.section-title.visual-title::after {
  content: "";

  position: absolute;
  top: auto;
  right: 140px;
  bottom: -8px;
  left: 0;

  height: 6px;

  background-color: transparent;
  background-image: linear-gradient(90deg, var(--blue) 0%, var(--blue-2) 100%);
  background-repeat: no-repeat;
  background-position: 0% 0%;
  background-size: auto;

  border-top-left-radius: 6px;
  border-top-right-radius: 6px;
  border-bottom-right-radius: 6px;
  border-bottom-left-radius: 6px;
}

/* 右側のホイール飾り */
.section-title.visual-title::before {
  content: "";

  position: absolute;
  top: 50%;
  right: 30px;
  bottom: auto;
  left: auto;

  transform: translateY(-50%);

  width: 120px;
  height: 120px;

  opacity: 0.18;
  pointer-events: none;

  background-color: transparent;
  background-image: url("../img/share/wheel-bg.webp");
  background-repeat: no-repeat;
  background-position: center center;
  background-size: contain;

  z-index: 0;
}

/* XL 版（トップ等での強調） */
.section-title.visual-title.-xl > span {
  font-size: clamp(2.2rem, 3.2vw, 3.2rem);
}

.section-title.visual-title.-xl::before {
  width: 170px;
  height: 170px;
  opacity: 0.14;
}

.section-title.visual-title.-xl::after {
  height: 8px;
}

/* セクション右上のリンク */
.section-header .section-link {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--blue);

  text-decoration-line: none;
  text-decoration-thickness: auto;
  text-decoration-style: solid;
  text-underline-offset: auto;

  border-bottom-width: 1px;
  border-bottom-style: solid;
  border-bottom-color: transparent;

  transition-property: border-color;
  transition-duration: 0.2s;
  transition-timing-function: ease;
  transition-delay: 0s;

  margin-top: 0;
  margin-right: 0;
  margin-bottom: 4px;
  margin-left: 0;
}

.section-header .section-link:hover {
  border-bottom-color: var(--blue);
}


/* ======================================================================
   04) BUSINESS GRID
   ====================================================================== */

.solutions {
  display: grid;
  align-items: stretch;
  justify-items: stretch;

  grid-template-columns: 1fr 1fr 1fr 1fr;
  column-gap: 20px;
  row-gap: 20px;
}


/* ======================================================================
   05) NEWS LIST
   ====================================================================== */

.news-list {
  display: grid;
  align-items: stretch;
  justify-items: stretch;

  column-gap: 18px;
  row-gap: 18px;
}

.news-item {
  display: flex;
  align-items: flex-start;
  justify-content: flex-start;

  column-gap: 20px;
  row-gap: 0;

  padding-top: 16px;
  padding-right: 0;
  padding-bottom: 16px;
  padding-left: 0;

  border-top-width: 0;
  border-right-width: 0;
  border-bottom-width: 1px;
  border-left-width: 0;
  border-top-style: none;
  border-right-style: none;
  border-bottom-style: solid;
  border-left-style: none;
  border-top-color: transparent;
  border-right-color: transparent;
  border-bottom-color: #e2e8f0;
  border-left-color: transparent;

  position: relative;
  left: 0;

  transition-property: left;
  transition-duration: 0.15s;
  transition-timing-function: ease;
  transition-delay: 0s;
}


.news-title {
  font-weight: 700;
}

.news-item:hover .news-title {
  text-decoration-line: underline;
  text-decoration-thickness: auto;
  text-decoration-style: solid;
  text-underline-offset: auto;
}

/* 軽い右矢印感（行全体をわずかに右へ） */
.news-item:hover {
  left: 2px;
}


/* ======================================================================
   06) MAP（Leaflet想定）
   ====================================================================== */

.map-wrap {
  position: relative;
}

.map {
  position: relative;
  z-index: 1;

  /* 枠線・角丸 */
  border-top-width: 1px;
  border-right-width: 1px;
  border-bottom-width: 1px;
  border-left-width: 1px;
  border-top-style: solid;
  border-right-style: solid;
  border-bottom-style: solid;
  border-left-style: solid;
  border-top-color: #e2e8f0;
  border-right-color: #e2e8f0;
  border-bottom-color: #e2e8f0;
  border-left-color: #e2e8f0;

  border-top-left-radius: 16px;
  border-top-right-radius: 16px;
  border-bottom-right-radius: 16px;
  border-bottom-left-radius: 16px;

  overflow-x: hidden;
  overflow-y: hidden;

  /* アスペクト・最小高さ */
  aspect-ratio: 2 / 1;
  min-height: 420px;
}

.leaflet-container {
  width: 100%;
  height: 100%;

  background-color: #eef6ff;
  background-image: none;
}

/* アニメ弧線（ネットワーク演出） */
.net-svg {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;

  pointer-events: none;
  z-index: 2;
}

.net-arc {
  fill: none;

  stroke: #64b5f6;
  stroke-width: 2.4;
  stroke-linecap: round;

  stroke-dasharray: 6 10;
  stroke-dashoffset: 0;

  /* チラつき軽減（リフレッシュレート差に配慮） */
  will-change: stroke-dashoffset;

  /* グロー感 */
  filter: drop-shadow(0 0 4px rgba(100, 181, 246, 0.6));

  opacity: 0.9;
  pointer-events: none;

  /* 統一：28s に一本化（原文の重複 21s/28s を整理） */
  animation-name: netDash;
  animation-duration: 28s;
  animation-timing-function: linear;
  animation-delay: 0s;
  animation-iteration-count: infinite;
  animation-fill-mode: none;
}

@keyframes netDash {
  from {
    stroke-dashoffset: 0;
  }
  to {
    stroke-dashoffset: -1000;
  }
}


/* ======================================================================
   07) NEWS “More” Button
   ====================================================================== */

.news-more {
  text-align: center;

  margin-top: 32px;
  margin-right: 0;
  margin-bottom: 0;
  margin-left: 0;
}

.news-more .btn {
  display: inline-block;

  /* 余白 */
  padding-top: 10px;
  padding-right: 28px;
  padding-bottom: 10px;
  padding-left: 28px;

  /* 枠線 */
  border-top-width: 1px;
  border-right-width: 1px;
  border-bottom-width: 1px;
  border-left-width: 1px;
  border-top-style: solid;
  border-right-style: solid;
  border-bottom-style: solid;
  border-left-style: solid;
  border-top-color: var(--blue);
  border-right-color: var(--blue);
  border-bottom-color: var(--blue);
  border-left-color: var(--blue);

  border-top-left-radius: 4px;
  border-top-right-radius: 4px;
  border-bottom-right-radius: 4px;
  border-bottom-left-radius: 4px;

  background-color: #ffffff;
  color: var(--blue);

  text-decoration-line: none;
  text-decoration-thickness: auto;
  text-decoration-style: solid;
  text-underline-offset: auto;

  font-size: 0.95rem;

  transition-property: background-color, color;
  transition-duration: 0.2s;
  transition-timing-function: ease;
  transition-delay: 0s;
}

.news-more .btn:hover {
  background-color: var(--blue);
  background-image: none;
  color: #ffffff;
}


/* ======================================================================
   08) MOTION PREFS
   ====================================================================== */

@media (prefers-reduced-motion: reduce) {
  .net-arc {
    animation-name: none;
    animation-duration: 0s;
  }
}


/* ======================================================================
   09) MEDIA QUERIES (Consolidated at bottom)
   - BP統一：1200 / 920 / 768
   - 旧 1024→1200、旧 860→920 へ丸め
   ====================================================================== */

/* < 1200px — 4列→2列 */
@media (max-width: 1200px) {
  .solutions {
    grid-template-columns: 1fr 1fr;
  }
}

/* < 920px — ヒーローの前景をさらにせり上げる（原仕様踏襲） */
@media (max-width: 920px) {
  .hero-inner {
    margin-top: -46vh;
  }
}

/* < 768px — グリッド1列化／飾りサイズ縮小 */
@media (max-width: 768px) {
  .solutions {
    grid-template-columns: 1fr;
  }

  .section-title.visual-title {
    padding-top: 0;
    padding-right: 96px;   /* 右のホイール幅を詰める */
    padding-bottom: 0.55rem;
    padding-left: 0;
  }

  .section-title.visual-title::before {
    right: 16px;
    width: 88px;
    height: 88px;
  }

  .section-title.visual-title::after {
    right: 96px;
  }
}
