/* ===========================
   JSOL 採用コンテンツインデックス
   =========================== */

:root {
  --red: #E40046;
  --red-dark: #AF272F;
  --dark: #1a1a2e;
  --navy: #141B4D;
  --gray: #666;
  --gray-light: #f5f5f5;
  --border: #e0e0e0;
  --white: #fff;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

body {
  font-family: 'Meiryo', 'Noto Sans JP', 'Hiragino Kaku Gothic ProN', sans-serif;
  color: var(--navy);
  background: var(--white);
  font-size: 14px;
  line-height: 1.7;
}

a { text-decoration: none; color: inherit; cursor: pointer; }
a:hover { opacity: 0.8; }
img { max-width: 100%; display: block; }

/* ===========================
   LAYOUT
   =========================== */

.l-inner {
  max-width: 1352px;
  margin: 0 auto;
  padding: 0 40px;
}

.l-inner--small {
  max-width: 1128px;
  margin: 0 auto;
  padding: 0 40px;
}

/* ===========================
   HEADER
   =========================== */
.site-header {
  background: var(--white);
}

/* --- Row 1: ロゴ行 --- */
.header-logo-inner {
  max-width: 1920px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 20px;
  padding-bottom: 10px;
  /* 左はl-innerと揃え、右はビューポート端。1920pxで固定 */
  padding-left: clamp(24px, calc((100vw - 1470px) / 2 + 64px), 295px);
}

.header-logo-group {
  display: flex;
  align-items: center;
  gap: 16px;
}

.logo-jsol {
  height: 30px;
  width: auto;
}

.logo-ntt {
  height: 22px;
  width: auto;
}

.logo-japan {
  height: 22px;
  width: auto;
}

.header-corporate-link {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  color: var(--navy);
  padding-right: 28px;
}

.header-corporate-link:hover { color: var(--red); }

/* SP専用コーポレートリンク（PC時は非表示） */
.header-corporate-link-sp { display: none; }

.icon-corporate {
  width: 14px;
  height: 14px;
}

/* --- Row 2: タイトル + ナビ行 --- */
.header-nav-area {
  background: transparent;
}

.header-nav-row {
  max-width: 1920px;
  margin: 0 auto;
  display: flex;
  align-items: flex-end; /* タイトルエリアをボタン下端に揃える */
}

.header-title-area {
  flex: 1;
  display: flex;
  align-items: center;
  /* height: 30px content + padding 4px*2 = 38px */
  height: 38px;
  padding-top: 4px;
  padding-bottom: 4px;
  padding-left: clamp(24px, calc((100vw - 1470px) / 2 + 64px), 295px);
  padding-right: 24px;
  background: rgba(20, 27, 77, 0.08);
}

.header-title {
  font-size: 13px;
  font-weight: 700;
  color: var(--dark);
  line-height: 1;
}

.header-nav-links {
  display: flex;
  flex-shrink: 0;
  gap: 1px;
}

.header-nav-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  height: 68px;
  padding: 20px 28px;
  color: var(--white);
  text-align: center;
  gap: 3px;
  min-width: 190px;
  transition: opacity 0.15s;
}

/* ホバー：各ボタンが独立して白アウトライン化 */
.header-nav-item { transition: background 0.2s, color 0.2s, box-shadow 0.2s; }

.header-nav-shinsotsu:hover {
  /* border-image は border-radius を無効化するため、padding-box/border-box 二重背景で代替 */
  background:
    linear-gradient(var(--white), var(--white)) padding-box,
    linear-gradient(var(--navy), var(--navy)) border-box;
  color: var(--navy);
  border-top: 2px solid transparent;
  border-left: 2px solid transparent;
  border-right: 2px solid transparent;
  border-bottom: none;
  border-top-left-radius: 16px;
}

.header-nav-career:hover {
  background: var(--white);
  color: var(--navy);
  position: relative;
}
.header-nav-career:hover::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 2px;
  border-radius: 2px 2px 0 0;
  background: var(--navy);
  z-index: 1;
  pointer-events: none;
}

.header-nav-shinsotsu {
  border-top-left-radius: 16px;
  background: var(--navy);
}
.header-nav-career    {
  background: var(--navy);
}

.nav-item-main {
  font-size: 12px;
  display: block;
}

.nav-item-sub {
  font-size: 12px;
  display: block;
}


/* ===========================
   HERO / FEATURED SECTION
   =========================== */
.section-latest {
  background: linear-gradient(90deg, var(--Color-Core-PrimaryC, #141B4D) 30.29%, var(--Color-Core-Secondary, #AF272F) 100%);
  overflow: hidden;
  padding: 0;
}

/* タイトルエリア：carousel-track-container と同じ幅・センタリングで左端を揃える */
.section-latest .section-header {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 4px;
  max-width: 1370px;
  width: 100%;
  margin-left: auto;
  margin-right: auto;
  padding: 56px 0 20px 24px;
  position: relative;
  top: 70px;
  margin-top: -70px;
}

.section-latest .section-label {
  font-size: 16px;
  font-weight: 700;
  color: var(--white);
  letter-spacing: 1px;
}

.section-latest .section-title-ja {
  font-size: 24px;
  font-weight: 500;
  color: var(--white);
  line-height: 1.2;
}

.section-title-deco {
  display: flex;
  align-items: center;
  gap: 4px;
  margin-top: 10px;
}

.section-title-deco span {
  height: 3px;
  border-radius: 1px;
  width: 32px;
}

.section-title-deco span:nth-child(1) {
  display: block;
  background: #EDE04B;
}

.section-title-deco span:nth-child(2) {
  display: block;
  background: #E6E6E6;
}

.section-title-deco span:nth-child(3) {
  display: block;
  background: #E6E6E6;
}

/* 右エリア：カルーセル（残り全幅） */
.carousel-wrapper {
  flex: 1;
  min-width: 0;
  position: relative;
  padding: 0 0 20px 0;
  margin: 0;
}

.carousel-track-container {
  overflow: hidden;
  position: relative;
  height: 500px;
  max-width: 1340px;
  margin: 0 auto;
}

.carousel-track {
  position: relative;
  height: 100%;
}

/* ── Base card: offscreen right by default ── */
.carousel-card {
  position: absolute;
  bottom: 0;
  background: var(--white);
  overflow: hidden;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  width: 400px;
  left: 1400px;
  opacity: 0;
  pointer-events: none;
  z-index: 1;
}

/* ── Position states with transitions ── */
.carousel-card.pos-center,
.carousel-card.pos-prev,
.carousel-card.pos-next,
.carousel-card.pos-hidden-left,
.carousel-card.pos-hidden-right {
  transition: left 0.52s cubic-bezier(0.4, 0, 0.2, 1),
              width 0.52s cubic-bezier(0.4, 0, 0.2, 1),
              height 0.52s cubic-bezier(0.4, 0, 0.2, 1),
              opacity 0.4s ease;
}

/* 中央カード */
.carousel-card.pos-center {
  width: 36.5%;
  height: 500px;
  left: 31.39%;
  opacity: 1;
  z-index: 3;
  pointer-events: auto;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.45);
}

/* 左サイドカード: 高さは中央と揃えて平行移動にする */
.carousel-card.pos-prev {
  width: 29.2%;
  height: 405px;
  left: 0;
  opacity: 0.85;
  z-index: 2;
}

/* 右サイドカード: 高さは中央と揃えて平行移動にする */
.carousel-card.pos-next {
  width: 29.2%;
  height: 405px;
  left: 70.07%;
  opacity: 0.85;
  z-index: 2;
}

.carousel-card.pos-hidden-left {
  width: 29.2%;
  height: 505px;
  left: -31.39%;
  opacity: 0;
  z-index: 1;
}

.carousel-card.pos-hidden-right {
  width: 29.2%;
  height: 505px;
  left: 99.27%;
  opacity: 0;
  z-index: 1;
}

/* ===========================
   SHARED CARD INNER
   =========================== */
.card-thumb-wrap {
  position: relative;
  flex-shrink: 0;
  overflow: hidden;
}

.card-thumb {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
  position: relative;
  z-index: 1;
}

.card-thumb-placeholder {
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, #2a2a4a, #1a3a5c);
  display: flex;
  align-items: center;
  justify-content: center;
}

/* ── ぼかし背景 ── */
.thumb-blur-bg {
  display: block;
  position: absolute;
  inset: -20px;
  background-size: cover;
  background-position: center;
  filter: blur(20px);
  z-index: 0;
}

/* カテゴリバッジ：サムネイル左上に重ねる */
.card-badge {
  position: absolute;
  top: 0;
  left: 0;
  z-index: 2;
  border-radius: 0 0 4px 0;
}

.card-body {
  display: flex;
  flex-direction: column;
  flex: 1;
  padding: 24px 0 9px;
}

.card-date {
  font-size: 12px;
  margin-bottom: 10px;
}

.card-title {
  font-size: 18px;
  font-weight: 700;
  line-height: 1.6;
  margin-bottom: 8px;
  overflow: hidden;
}

.card-summary {
  font-size: 12px;
  color: var(--gray);
  line-height: 1.6;
  margin-bottom: 8px;
  overflow: hidden;
}

.card-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  margin-top: 10px;
  padding-top: 6px;
  margin-bottom: 5px;
}

.card-link {
  text-align: right;
  display: block;
}

/* ── タグ共通（カテゴリバッジ用ベースサイズ） ── */
.tag {
  font-size: 17px;
  padding: 8px 15px;
  font-weight: 700;
  white-space: nowrap;
}

.tag-shinsostu {
  background: linear-gradient(90deg, var(--Color-Core-PrimaryC, var(--navy)) 30.29%, var(--Color-Core-Secondary, var(--red)) 100%);
  color: var(--white);
  font-size: 14px;
  font-weight: 500;
  padding: 4px 12px;
}

.tag-career {
  background: linear-gradient(90deg, var(--Color-Core-PrimaryC, var(--navy)) 30.29%, var(--Color-Core-Secondary, var(--red)) 100%);
  color: var(--white);
  font-size: 14px;
  font-weight: 500;
  padding: 4px 12px;
}

/* コンテンツテーマ・コンテンツ種類タグ（カード下部・独立サイズ） */
.tag-outline {
  font-size: 15px;
  padding: 3px 10px;
  text-align: center;
  border-radius: 6px;
  border: 1.25px solid rgba(0,0,0,0.1);
  white-space: normal;
  background-color: var(--white);
}

/* ── カルーセルカード内部の上書き ── */
/* 左右サイドカード: タイトル18px・日付&タグ12px */
.carousel-card .card-title    { font-size: 18px; -webkit-line-clamp: 3; }
.carousel-card .card-date     { font-size: 12px; }
.carousel-card .tag-outline   { font-size: 12px; }
.carousel-card .card-link   { font-size: 12px; }
.carousel-card .card-body   { padding: 24px; }

/* タイトル：中央カードは35文字版、左右サイドカードは26文字版を表示 */
.carousel-card .card-title-short { display: none; }
.carousel-card .card-title-side  { display: none; }
.carousel-card.pos-prev .card-title-side,
.carousel-card.pos-next .card-title-side,
.carousel-card.pos-hidden-left .card-title-side,
.carousel-card.pos-hidden-right .card-title-side { display: inline; }
.carousel-card.pos-center .card-title-short { display: inline; }

/* 中央カード: タイトル22px・日付&タグ15px */
.carousel-card.pos-center .card-title    { font-size: 22px; -webkit-line-clamp: 4; }
.carousel-card.pos-center .card-date     { font-size: 15px; }
.carousel-card.pos-center .tag-outline   { font-size: 15px; }
.carousel-card.pos-center .card-link   { font-size: 15px; }
/* .carousel-card.pos-center .card-tags   { margin-bottom: 5px; } */
.carousel-card.pos-center .card-body   { padding: 30px; }

/* カルーセルサムネイル固定高さ */
.carousel-card .card-thumb-wrap {
  height: 200px;
  transition: height 0.52s cubic-bezier(0.4, 0, 0.2, 1);
}
.carousel-card.pos-center .card-thumb-wrap { height: 250px; }

.carousel-card .card-summary { display: none; }


/* ナビゲーション：カード間に配置
   カードは .carousel-track-container（max-width:1340px・中央寄せ）基準の%配置なので、
   nav も同じ幅に揃えてボタンをカードと同じ%座標系で置く */
.carousel-nav {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  max-width: 1340px;
  margin: 0 auto;
  pointer-events: none;
  z-index: 10;
}

/* 左ボタン: gap中央 = (左カード右端29.2% + 中央カード左端31.39%) / 2 */
#carousel-prev {
  position: absolute;
  top: 40%;
  transform: translate(-50%, -50%);
  left: 30.3%;
  pointer-events: all;
}

/* 右ボタン: gap中央 = (中央カード右端67.89% + 右カード左端70.07%) / 2 */
#carousel-next {
  position: absolute;
  top: 40%;
  transform: translate(-50%, -50%);
  left: 68.98%;
  pointer-events: all;
}

.carousel-btn {
  background: none;
  border: none;
  padding: 0;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity 0.15s;
}

.carousel-btn:hover { opacity: 0.8; }
.carousel-btn img { width: 80px; height: 80px; }

/* ===========================
   FILTER SECTION
   =========================== */
.section-filter {
  padding: 20px 0 56px;
  background: linear-gradient(90deg, var(--Color-Core-PrimaryC, #141B4D) 30.29%, var(--Color-Core-Secondary, #AF272F) 100%);
  border-top: 1px solid var(--white);
}

/* .section-filter-inner {
  max-width: 1312px;
  margin: 0 auto;
  padding: 0 64px;
} */

.filter-heading {
  display: flex;
  align-items: center;
  gap: 16px;
}

.filter-heading-icon {
  flex-shrink: 0;
}

.filter-heading-text {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.filter-label-en {
  font-size: 16px;
  font-weight: 700;
  color: var(--white);
}

.filter-heading h2 {
  font-size: 24px;
  font-weight: 500;
  color: var(--white);
  line-height: 1.2;
}

.filter-group {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.filter-group:not(:first-child) {
  margin-top: 32px;
}

.filter-group-label-row {
  display: flex;
  align-items: center;
  gap: 8px;
}

.filter-group-label {
  font-size: 16px;
  font-weight: 700;
  color: var(--white);
}

.filter-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.filter-tag {
  font-size: 16px;
  padding: 12px 16px;
  border: 1px solid var(--navy);
  background-color: var(--white);
  color: #000;
  border-radius: 6px;
  transition: all 0.15s;
  font-weight: 700;
  cursor: pointer;
}

.filter-tag, .filter-tag * { cursor: pointer; }

@media (hover: hover) and (pointer: fine) {
  .filter-tag:hover {
    border-color: var(--red);
    color: var(--white);
    background: var(--red);
  }
}

.filter-tag.active {
  background: var(--red);
  color: var(--white);
  border-color: var(--red);
}

.filter-note {
  font-size: 12px;
  color: rgba(255,255,255,0.55);
}

.filter-divider {
  border: none;
  border-top: 1px solid rgba(255, 255, 255, 0.50);
  margin: 24px 0 32px;
}

.filter-actions {
  display: flex;
  gap: 12px;
  margin-top: 48px;
}

.btn-reset {
  flex: 0 0 auto;
  width: 30%;
  padding: 16px 32px;
  border: 2px solid rgba(255, 255, 255, 0.50);
  border-radius: 6px;
  background: transparent;
  color: var(--white);
  font-size: 20px;
  font-weight: 700;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: inherit;
  transition: all 0.15s;
}

.btn-reset:hover { background: rgba(255,255,255,0.1); }

.btn-search {
  flex: 1;
  padding: 16px 32px;
  border: none;
  border-radius: 6px;
  background: var(--red);
  color: var(--white);
  font-size: 20px;
  font-weight: 700;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font-family: inherit;
  transition: all 0.15s;
  width: 70%;
}

.btn-search:hover { background: var(--red-dark); }

.result-count-badge {
  background: var(--white);
  color: var(--red);
  border-radius: 9999px;
  padding: 4px 12px;
  font-size: 18px;
  font-weight: 500;
}

.result-count-badge span {
  font-size: 14px;
  font-weight: 500;
}

/* ===========================
   ARTICLES SECTION
   =========================== */
.section-articles {
  padding: 40px 0;
  background: var(--white);
}

/* .section-articles-inner {
  max-width: 1440px;
  margin: 0 auto;
  padding: 0 64px;
} */

.articles-header {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  margin-bottom: 48px;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--border);
  gap: 32px;
}

.articles-header-left {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.articles-header .label {
  font-size: 16px;
  font-weight: 700;
}

.articles-header h2 {
  font-size: 24px;
  font-weight: 500;
  letter-spacing: 2px;
}

.btn-back-to-list {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 24px;
  background: var(--navy);
  color: var(--white);
  border: none;
  border-radius: 6px;
  font-size: 16px;
  font-weight: 700;
  cursor: pointer;
  font-family: inherit;
  white-space: nowrap;
  transition: opacity 0.15s;
}

.btn-back-to-list:hover { opacity: 0.8; }

.articles-count {
  font-size: 13px;
  color: var(--gray);
  margin-left: auto;
}

.articles-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 36px;
  margin-bottom: 40px;
}

/* ── グリッドカード ── */
.grid-card {
  position: relative;
  overflow: hidden;
  border-radius: 4px;
  cursor: pointer;
  height: 450px;
}

/* サムネイル：カード上部に固定 */
.grid-card .card-thumb-wrap {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 150px;
  z-index: 1;
}

/* カードボディ：通常はサムネイル下から始まり、ホバーで上端まで広がる */
.grid-card-content {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  top: 150px; /* グリッドカードサムネイル固定高さ */
  background: var(--white);
  padding: 16px 20px;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  z-index: 2;
  transition: top 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

/* グラジェント背景：ホバー時にフェードイン */
.grid-card-content::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(160deg, #141B4D 0%, #80122a 100%);
  opacity: 0;
  z-index: 0;
  transition: opacity 0.4s;
  pointer-events: none;
}

/* テキスト等のコンテンツはグラジェント層の手前に */
.grid-card-content > * {
  position: relative;
  z-index: 1;
}

.grid-card:hover .grid-card-content {
  top: 0;
}

.grid-card:hover .grid-card-content::after {
  opacity: 1;
}

.grid-card-content .card-date {
  font-size: 12px;
  color: var(--navy);
  margin-bottom: 8px;
  flex-shrink: 0;
  transition: color 0.3s;
}

.grid-card-content .card-title {
  font-size: 15px;
  font-weight: 700;
  color: var(--navy);
  line-height: 1.6;
  margin-bottom: 10px;
  display: -webkit-box;
  -webkit-line-clamp: 4;
  line-clamp: 4;
  -webkit-box-orient: vertical;
  overflow: hidden;
  flex-shrink: 0;
  transition: color 0.3s;
}

/* 通常表示：50文字 */
.card-summary-short {
  font-size: 13px;
  color: var(--gray);
  line-height: 1.6;
  flex-shrink: 0;
  transition: color 0.3s;
}

/* ホバー時のみ表示：全文 */
.card-summary-full {
  display: none;
  font-size: 13px;
  color: var(--gray);
  line-height: 1.6;
  flex-shrink: 0;
}

.grid-card:hover .card-summary-short { display: none; }
.grid-card:hover .card-summary-full  {
  display: block;
  color: var(--white);
}

.grid-card-content .card-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 10px;
  padding-top: 12px;
  flex-shrink: 0;
}

.grid-card-content .card-link {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 4px;
  font-size: 12px;
  color: var(--navy);
  font-weight: 700;
  flex-shrink: 0;
  transition: color 0.3s;
}

/* コンパクトタグ（グリッドカード用） */
.tag-compact {
  font-size: 11px;
  padding: 3px 10px;
  border: 1px solid var(--border);
  border-radius: 3px;
  color: var(--navy);
  background: transparent;
  white-space: nowrap;
  transition: color 0.3s, border-color 0.3s;
}

/* ホバー時のカラー変更 */
.grid-card:hover .grid-card-content .card-date  { color: var(--white); }
.grid-card:hover .grid-card-content .card-title { color: var(--white); font-weight: 900; }
.grid-card:hover .grid-card-content .card-link  { color: var(--white) ; }
.grid-card:hover .tag-compact {
  border-color: rgba(255, 255, 255, 0.5);
  color: var(--white);
}

.card-link-icon img { transition: filter 0.3s; }
.grid-card:hover .card-link-icon img { filter: brightness(0) invert(1); }


/* ===========================
   PAGINATION
   =========================== */
.pagination {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 4px;
  margin-top: 72px;
}

.page-btn {
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 2px solid transparent;
  border-radius: 50%;
  background: transparent;
  color: var(--navy);
  font-size: 18px;
  font-weight: 700;
  cursor: pointer;
  font-family: inherit;
  transition: border-color 0.15s, color 0.15s;
}

.page-btn:hover {
  border-color: var(--navy);
}

.page-btn.active {
  background: linear-gradient(135deg, #141B4D 0%, #80122a 100%);
  color: var(--white);
  border-color: transparent;
}

.page-btn.active:hover { border-color: transparent; }

/* 前へ / 次へ ボタン：円なし */
.pagination > .page-btn:first-child,
.pagination > .page-btn:last-child {
  font-size: 18px;
  font-weight: 900;
}
.pagination > .page-btn:first-child:hover,
.pagination > .page-btn:last-child:hover {
  border-color: transparent;
  color: var(--red);
}

.page-btn.ellipsis {
  border: none;
  background: none;
  cursor: default;
  letter-spacing: 2px;
}
.page-btn.ellipsis:hover { border: none; color: var(--navy); }

.page-btn:disabled { opacity: 0.35; cursor: default; }
.page-btn:disabled:hover { border-color: transparent; color: var(--navy); }

/* ===========================
   FOOTER
   =========================== */
.site-footer {
  background: var(--white);
  border-top: 1px solid rgba(0, 0, 0, 0.1);
  padding: 10px 0;
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.footer-left {
  display: flex;
  align-items: center;
  gap: 28px;
}

.footer-site-links {
  display: flex;
  align-items: center;
  gap: 16px;
}

.footer-site-link {
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: 12px;
  font-weight: 700;
  transition: opacity 0.15s;
}
.footer-site-link:hover { opacity: 0.65; }

.footer-social-links {
  display: flex;
  align-items: center;
  gap: 16px;
}

.footer-social-link {
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--navy);
  transition: opacity 0.15s;
}
.footer-social-link:hover { opacity: 0.7; }

.footer-social-facebook  { color: #1877F2; }
.footer-social-instagram { color: #E1306C; }
.footer-social-youtube   { color: #FF0000; }
.footer-social-linkedin  { color: #0A66C2; }

.footer-copy {
  font-size: 11px;
  color: var(--navy);
}

/* ===========================
   NO RESULTS
   =========================== */
.no-results {
  grid-column: 1 / -1;
  text-align: center;
  padding: 60px 20px;
  color: var(--gray);
}

/* ===========================
   RESPONSIVE (SP)
   =========================== */
@media (max-width: 767px) {

  /* ── LAYOUT ── */
  .l-inner, .l-inner--small { padding: 0 16px; }

  /* ── HEADER ── */

  /* Row 1：ロゴ行を大きく */
  .header-logo-inner {
    padding: 20px 20px !important;
  }
  .logo-jsol  { height: 35px; }
  .logo-ntt   { height: 20px; }
  .logo-japan { height: 20px; }
  .header-corporate-link { display: none; } /* PC版コーポレートリンク非表示 */

  /* Row 2：タイトル + SP用コーポレートリンク */
  .header-nav-row { flex-wrap: wrap; align-items: stretch; }

  .header-title-area {
    flex: 1;
    padding-left: 20px !important;
    padding-right: 12px;
    height: auto;
    min-height: 46px;
  }
  .header-title { font-size: 12px; font-weight: 900; }

  .header-corporate-link-sp {
    display: flex;
    align-items: center;
    gap: 5px;
    font-size: 12px;
    font-weight: 600;
    color: var(--navy);
    background: rgba(20, 27, 77, 0.08);
    padding: 0 16px 0 0;
    flex-shrink: 0;
    white-space: nowrap;
    text-decoration: none;
    transition: color 0.15s;
  }
  .header-corporate-link-sp:hover { color: var(--red); }

  /* Row 3：ナビボタン フル幅2列 */
  .header-nav-links {
    flex: 0 0 100%;
    gap: 1px;
    margin-bottom: 1px;
  }
  .header-nav-item {
    flex: 1;
    min-width: 0;
    height: auto;
    min-height: 64px;
    padding: 10px 12px;
  }
  .header-nav-shinsotsu { border-top-left-radius: 0; }

  .header-nav-shinsotsu:hover {
    border-top-left-radius: 0px;
  }
  .nav-item-main { font-size: 12px; }
  .nav-item-sub  { font-size: 10px; display: block; } /* SP で表示 */

  /* ── SECTION LATEST ── */
  .section-latest { 
    background: var(--navy);
    padding: 0 0 20px;
  }

  .section-latest .section-header {
    max-width: 100%;
    padding: 20px 24px 0px;
    top: 0;
    margin-top: 0px;
  }
  .section-latest .section-label  { font-size: 12px; }
  .section-latest .section-title-ja { font-size: 18px; }

  /* ── CAROUSEL SP：1枚表示 ── */
  .carousel-track-container {
    height: 400px;
    max-width: 100%;
  }

  /* 全カード：SPで角丸（トランジション中も一貫させる） */
  /* .carousel-card { border-radius: 12px; } */

  /* 中央カード：画面幅いっぱい */
  .carousel-card.pos-center {
    width: 86%;
    height: 370px;
    left: 7%;
  }

  /* サイドカード：完全に画面外へ（高さは中央と揃えて平行移動にする） */
  .carousel-card.pos-prev {
    width: 86%;
    height: 370px;
    left: -92%;
    opacity: 0;
  }
  .carousel-card.pos-next {
    width: 86%;
    height: 370px;
    left: 100%;
    opacity: 0;
  }
  .carousel-card.pos-hidden-left  { width: 86%; height: 370px; left: -100%; opacity: 0; }
  .carousel-card.pos-hidden-right { width: 86%; height: 370px; left: 110%;  opacity: 0; }

  /* サムネイル高さ：全カード共通 */
  .carousel-card .card-thumb-wrap        { height: 160px; }
  .carousel-card.pos-center .card-thumb-wrap { height: 160px; }

  /* 矢印ボタン：画面左右端 */
  #carousel-prev { left: 6px; transform: translateY(-50%); }
  #carousel-next { right: 6px; left: auto; transform: translateY(-50%); }
  .carousel-btn img { width: 38px; height: 38px; }

  /* ── カルーセルカード内スタイル：全カード共通値に統一（切替時ちらつき防止） ── */
  /* PC の pos-center 専用拡大スタイルを打ち消し、全状態で同じ値にする */
  .carousel-card              .card-title,
  .carousel-card.pos-center   .card-title { font-size: 15px; -webkit-line-clamp: 3; line-clamp: 3; }

  .carousel-card              .card-date,
  .carousel-card.pos-center   .card-date  { font-size: 12px; }

  .carousel-card              .card-link,
  .carousel-card.pos-center   .card-link  { font-size: 13px; }

  .carousel-card              .card-tags,
  .carousel-card.pos-center   .card-tags  { margin-bottom: 10px; }

  .carousel-card              .card-body,
  .carousel-card.pos-center   .card-body  { padding: 16px; }

  .carousel-card              .tag-outline,
  .carousel-card.pos-center   .tag-outline { font-size: 12px; }

  /* ── FILTER ── */
  .section-filter { 
    padding: 24px 0 64px;
    background: var(--navy);
  }

  .filter-heading { gap: 10px; margin-bottom: 16px; }
  .filter-heading-icon { width: 28px; height: 28px; }
  .filter-heading-text h2 { font-size: 18px; }
  .filter-label-en { font-size: 10px; }

  .filter-group { gap: 8px; }
  .filter-group-label { font-size: 12px; min-width: auto; }
  .filter-tag { font-size: 16px; padding: 6px 10px; min-width: auto; }

  .filter-actions {
    flex-direction: column;
    gap: 8px;
    margin-top: 24px;
  }
  .btn-reset  { width: 100%; font-size: 16px; padding: 12px 16px; }
  .btn-search { width: 100%; font-size: 18px; padding: 12px 16px; }

  /* ── ARTICLES ── */
  .section-articles { padding: 24px 0; }

  .articles-header { margin-bottom: 16px; padding-bottom: 12px; }
  .articles-header-left .label { 
    font-size: 16px;
    font-weight: 700;
   }
  #articles-count { font-size: 18px; }

  .btn-back-to-list { font-size: 12px; padding: 8px 14px; }

  /* グリッド：2列（500px以下は1列） */
  .articles-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 34px;
  }

  /* グリッドカード SP */
  .grid-card { height: 450px; }
  .grid-card .card-thumb-wrap {
    height: 170px;
  }
  .grid-card-content {
    top: 170px;
    padding: 10px 12px;
  }
  .grid-card-content .card-date  {
    font-size: 12px;
    margin-bottom: 5px;
    font-weight: 700;
  }
  .grid-card-content .card-title {
    font-size: 18px;
    -webkit-line-clamp: 3;
    line-clamp: 3;
    margin-bottom: 8px;
  }
  .card-summary-short { font-size: 14px; line-height: 1.5; }
  .grid-card-content .card-tags  { gap: 4px; padding-top: 16px; }
  .tag-compact { font-size: 10px; padding: 2px 7px; }
  .grid-card-content .card-link  { font-size: 11px; margin-top: 6px; }

  /* SP：ホバー無効（タップ誤動作防止） */
  .grid-card:hover .grid-card-content         { top: 170px; background: var(--white); }
  .grid-card:hover .grid-card-content::after  { opacity: 0; }
  .grid-card:hover .card-summary-short        { display: block; }
  .grid-card:hover .card-summary-full         { display: none; }
  .grid-card:hover .grid-card-content .card-date  { color: var(--gray); }
  .grid-card:hover .grid-card-content .card-title { color: var(--navy); font-weight: 700; }
  .grid-card:hover .grid-card-content .card-link  { color: var(--red); }
  .grid-card:hover .tag-compact               { border-color: var(--border); color: var(--navy); }
  .grid-card:hover .card-link-icon img        { filter: none; }

  /* ── PAGINATION ── */
  .pagination { gap: 2px; margin-top: 24px; }
  .page-btn   { width: 48px; height: 48px; font-size: 18px; }

  /* ── FOOTER ── */
  .footer-inner {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
    padding: 16px;
  }
  .footer-left { flex-direction: column; align-items: flex-start; gap: 12px; width: 100%; }
  .footer-site-links {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px 12px;
    width: 100%;
  }
  .footer-site-link  { font-size: 11px; }
  .footer-copy { font-size: 10px; }

  .footer-social-links {
    width: 32px;
    height: 32px;
  }
}

/* ===========================
   RESPONSIVE: SP（500px未満）
   =========================== */
@media (max-width: 499px) {
  /* グリッド：1列 */
  .articles-grid {
    grid-template-columns: repeat(1, 1fr);
  }
}
