@charset "UTF-8";

/* ==============================
   共通ユーティリティ
   ============================== */
:root {
  --mv-header-h: 90px;
  /* SPの固定ヘッダー高 */
  --hero-blue: var(--blue, #135ba4);
  --stroke-w: 1.2px;
  --wipe-dur: 1.0s;
  --wipe-ease: cubic-bezier(.2, .7, .2, 1);
}

/* 固定ヘッダー */
#header {
  position: fixed;
}

/* ボタン（hoverはポインタ環境のみ） */
section .wrap .contents a.btn::before {
  content: "";
  box-sizing: border-box;
  width: 2.66em;
  /* ← widows の誤記を修正 */
  height: 2.66em;
  border-radius: 50%;
  border: 1.1em solid #259b6c;
  transition: .3s;
}

@media (hover:hover) {
  section .wrap .contents a.btn:hover {
    color: #259b6c;
  }

  section .wrap .contents a.btn:hover::before {
    border: .8em solid #259b6c;
  }
}

/* ==============================
   HERO（テキスト部分）
   ============================== */
.hero {
  position: relative;
  background: #fff;
  padding: clamp(48px, 10vw, 80px) 0;
}

.hero .wrap .contents {
  display: grid;
  row-gap: clamp(16px, 3vw, 28px);
}

/* Title outline→fill ワイプ */
.hero__title {
  margin: 0 0 clamp(12px, 3vw, 24px);
  line-height: 1;
  position: relative;
}

.hero__title .sr-only {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  margin: -1px !important;
  padding: 0 !important;
  border: 0 !important;
  clip: rect(0 0 0 0) !important;
  clip-path: inset(50%) !important;
  overflow: hidden !important;
  white-space: nowrap !important;
}

.hero-title,
.hero-title * {
  text-decoration: none !important;
}

.hero-title {
  display: block;
  color: var(--hero-blue);
}

.hero-title__line {
  --descent-pad: .10em;
  display: grid;
  width: fit-content;
  grid-template-areas: "stack";
  justify-content: start;
  line-height: 1.12;
  margin: 0;
  padding-bottom: var(--descent-pad);
}

.hero-title__line>.txt,
.hero-title__line>.fill {
  grid-area: 1/1;
  white-space: nowrap;
  padding-bottom: var(--descent-pad);
}

.hero-title__line.t1 {
  font-family: "Poppins", sans-serif;
  font-weight: 800;
  font-size: clamp(44px, 6.2vw, 92px);
  letter-spacing: .005em;
  margin-bottom: .08em;
}

.hero-title__line.t2 {
  font-family: "Poppins", sans-serif;
  font-weight: 800;
  font-size: clamp(76px, 10vw, 164px);
  letter-spacing: .005em;
}

@media (max-width:768px) {
  .hero-title__line.t2 {
    font-family: "Poppins", sans-serif;
    font-weight: 800;
    font-size: clamp(42px, 10vw, 164px);
    letter-spacing: .005em;
  }
}

/* 輪郭 */
.hero-title__line .txt {
  color: transparent;
  pointer-events: none;
}

@supports (-webkit-text-stroke:1px black) {
  .hero-title__line .txt {
    -webkit-text-stroke: var(--stroke-w) var(--hero-blue);
    transition: opacity .35s ease calc(var(--wipe-dur) + 120ms);
  }

  .reveal.is-visible .hero-title__line .txt {
    opacity: .28;
  }
}

@supports not (-webkit-text-stroke:1px black) {
  .hero-title__line .txt {
    display: none;
  }
}

/* フィル */
.hero-title__line .fill {
  color: var(--hero-blue);
  opacity: 0;
  transition: opacity .48s ease 120ms;
}

.reveal.is-visible .hero-title__line .fill {
  opacity: 1;
}

/* 対応環境は mask ワイプ */
@supports (-webkit-mask-size:100% 100%) or (mask-size:100% 100%) {
  .hero-title__line .fill {
    opacity: 1;
    -webkit-mask-image: linear-gradient(#000, #000);
    mask-image: linear-gradient(#000, #000);
    -webkit-mask-repeat: no-repeat;
    mask-repeat: no-repeat;
    -webkit-mask-position: left top;
    mask-position: left top;
    -webkit-mask-size: 0% 120%;
    mask-size: 0% 120%;
    transition: -webkit-mask-size var(--wipe-dur) var(--wipe-ease) 120ms, mask-size var(--wipe-dur) var(--wipe-ease) 120ms;
    will-change: mask-size;
  }

  .reveal.is-visible .hero-title__line .fill {
    -webkit-mask-size: 100% 120%;
    mask-size: 100% 120%;
  }
}

@media (max-width:1024px) {
  :root {
    --stroke-w: 1px;
  }
}

@media (max-width:640px) {
  :root {
    --stroke-w: .9px;
  }
}

@media (prefers-reduced-motion:reduce) {
  .hero-title__line .fill {
    transition: none;
    opacity: 1;
    -webkit-mask-size: 100% 120%;
    mask-size: 100% 120%;
  }
}

html:not(.js) .hero-title__line .fill {
  opacity: 1;
  -webkit-mask-size: 100% 120%;
  mask-size: 100% 120%;
}

/* リード */
.hero__lead {
  color: var(--red);
  font-weight: 900 !important;
  line-height: 1.9;
  letter-spacing: .08em;
  font-size: clamp(16px, 1.8vw, 32px);
  margin-top: clamp(8px, 1.5vw, 12px);
}

@media (max-width:768px) {
  .hero {
    padding: clamp(32px, 12vw, 72px) 0;
  }

  .hero__lead {
    line-height: 1.7 !important;
    letter-spacing: .06em !important;
  }
}

.hero_wrap .hero_contents {
  width: calc(100% - 60px);
  margin: 0 auto;
}

/* 汎用セクション余白 */
.section {
  padding: clamp(48px, 10vw, 100px) 0;
}

.section__title {
  font-weight: 800;
  letter-spacing: .04em;
  color: #333;
  font-size: clamp(20px, 3.2vw, 32px);
  line-height: 1.3;
  margin-bottom: clamp(16px, 3vw, 28px);
}

.section__lead {
  font-size: clamp(14px, 2vw, 16px);
  line-height: 1.9;
  color: #333;
}

/* ==============================
   MV（PC=動画 / SP=静止画）
   ============================== */
/* PC：動画を全面表示 */
#mv {
  position: relative;
  width: 100%;
  height: 100dvh;
  /* PCは画面いっぱい */
  min-height: 420px;
  overflow: hidden;
}

#mv .wrap {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
}

#mv .wrap .contents {
  width: 100%;
  height: 100%;
  max-width: 100%;
}

#mv .wrap .contents h2 {
  position: relative;
  width: 100%;
  height: 100%;
  margin: 0;
}

#mv .wrap .contents h2 video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.pcOnly {
  display: block;
}

.spOnly {
  display: none;
}

/* SP：静止画だけ表示（動画は完全に殺す） */
@media (max-width: 768px) {
  #mv {
    height: auto;
    /* 余白の原因になるvh指定をやめる */
    margin-top: var(--mv-header-h);
    /* 固定ヘッダーぶんだけ下げる（90px想定） */
  }

  #mv .wrap {
    position: relative;
  }

  #mv .wrap .contents {
    height: auto;
  }

  #mv .wrap .contents h2 {
    height: auto;
  }

  /* 動画は見えない & レイアウトにも影響させない */
  #mv .wrap .contents h2 video.pcOnly {
    display: none !important;
    visibility: hidden !important;
    pointer-events: none !important;
  }

  /* 静止画は通常フローで表示 */
  #mv .wrap .contents h2 img.spOnly {
    display: block !important;
    position: static;
    width: 100%;
    height: auto;
  }

  .pcOnly {
    display: none !important;
  }

  .spOnly {
    display: block !important;
  }

  .scroll-down {
    display: none;
  }
}

/* スクロール誘導 */
.scroll-down {
  position: absolute;
  bottom: 50px;
  left: 50%;
  transform: translateX(-50%);
  width: 30px;
  height: 50px;
  border: 2px solid #000;
  border-radius: 30px;
  opacity: .75;
}

.scroll-down span {
  display: block;
  width: 6px;
  height: 6px;
  background: #000;
  border-radius: 50%;
  position: absolute;
  top: 10px;
  left: 50%;
  transform: translateX(-50%);
  animation: scroll-down 1.5s infinite;
}

@keyframes scroll-down {
  0% {
    top: 10px;
    opacity: 0;
  }

  50% {
    top: 20px;
    opacity: 1;
  }

  100% {
    top: 30px;
    opacity: 0;
  }
}

/* ==============================
   私たちの強み
   ============================== */
.section-about {
  padding: clamp(48px, 10vw, 100px) 0;
}

.section-about__header {
  margin-bottom: clamp(16px, 4vw, 32px);
}

.section-about__title {
  font-size: clamp(22px, 3.5vw, 32px);
  font-weight: 800;
  line-height: 1.4;
  letter-spacing: .04em;
  color: var(--blue);
}

.section-about__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(24px, 6vw, 48px);
  align-items: start;
}

.section-about__image img {
  max-width: 100%;
  height: auto;
  display: block;
}

.section-about__text {
  font-size: 1.6rem;
  line-height: 1.9;
  color: var(--black, #333);
  margin-bottom: 40px;
}

.section-about__text .em-red {
  color: var(--red);
  font-size: 20px;
  font-weight: 700;
}

.section-about__more {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-top: clamp(20px, 3vw, 28px);
  font-size: 18px;
  font-weight: 600;
  color: var(--black, #000);
  text-decoration: none;
  transition: opacity .25s ease;
}

.section-about__more:hover {
  opacity: .75;
}

.section-about__btn {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  width: 54px;
  height: 54px;
  border-radius: 50%;
  background: var(--blue);
  color: #fff;
  font-size: 22px;
  line-height: 1;
  transition: transform .25s ease, opacity .25s ease;
}

.section-about__btn:hover {
  transform: translateX(4px);
  opacity: .9;
}

@media (max-width:768px) {
  .section-about__grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .section-about__image {
    order: 1;
  }

  .section-about__body {
    order: 2;
  }
}

/* ==============================
   事業内容（右側大丸の青ベタ）
   ============================== */
/* ==============================
   Crossmedia（白帯＋山形青帯＋3サービス）
   ============================== */
.crossmedia {
  overflow: hidden;
}

/* 斜めの山形がはみ出さないように */

/* ── 上：白帯（見出し＋赤い2サークル） ── */
.crossmedia .section-services {
  background: #fff;
  padding: clamp(36px, 6vw, 64px) 0 0;
  color: inherit;
}

.section-services__header {
  margin-bottom: 80px;
}

.section-services__title {
  line-height: 1.5em;
}

/* 既存の「青いベタ」装飾を無効化（重要） */
.crossmedia .section-services::before {
  content: none !important;
}

/* ラベル/見出しは青系で */
.crossmedia .section-label--light {
  color: var(--blue, #135ba4);
}

.crossmedia .section-label--light::before {
  color: var(--blue, #135ba4);
}

.crossmedia .section-services__title {
  color: var(--blue, #135ba4);
}

/* 赤い円 × 赤い円 */
.pair {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  justify-items: center;
  gap: clamp(12px, 4vw, 48px);
  margin: clamp(16px, 4vw, 28px) auto clamp(18px, 5vw, 36px);
  width: calc(100% - 60px);
  max-width: 1100px;
}

.pair__circle {
  width: clamp(180px, 24vw, 260px);
  aspect-ratio: 1/1;
  border-radius: 50%;
  background: var(--red, #d82a2a);
  color: #fff;
  display: grid;
  place-items: center;
  text-align: center;
  padding: 14px;
  box-shadow: 0 10px 24px rgba(0, 0, 0, .12);
}

.pair__circle strong {
  font-size: clamp(14px, 1.6vw, 18px);
  font-weight: 800;
  margin-top: 50px;
  line-height: 1.5em;
}

@media (max-width:980px) {
  .pair__circle strong {
    margin-top: -10px;
  }
}

.pair__circle small {
  display: block;
  margin-top: -80px;
  line-height: 1.6;
  opacity: .95;
  font-size: 1.4rem;
}

@media (max-width:980px) {
  .pair__circle small {
    margin-top: -50px;
  }
}

.pair__x {
  /* 大きさと線の太さはここで調整 */
  --x-size: clamp(48px, 7vw, 96px);
  /* × の外形サイズ */
  --x-stroke: clamp(1.5px, .2vw, 6px);

  position: relative;
  display: inline-block;
  width: var(--x-size);
  height: var(--x-size);
  color: var(--red, #d82a2a);
  /* × の色 */
  font-size: 0;
}

.pair__x::before,
.pair__x::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  width: 100%;
  height: var(--x-stroke);
  background: currentColor;
  transform: translate(-50%, -50%) rotate(45deg);
  transform-origin: 50% 50%;
}

.pair__x::after {
  transform: translate(-50%, -50%) rotate(-45deg);
}

/* ── 下：青い帯（上端が山形） ── */
v

/* 見出しのゴーストボタン */
.crossmedia-tag {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 48px;
  padding: 0 32px;
  margin: 0 auto clamp(18px, 4vw, 36px);
  border: 1.6px solid rgba(255, 255, 255, .95);
  border-radius: 8px;
  color: #fff;
  font-weight: 800;
  letter-spacing: .28em;
  background: transparent;
  width: fit-content;
}

/* 青い帯本体 */
.crossmedia-body {
  position: relative;
  background: var(--blue, #135ba4);
  color: #fff;
  padding: clamp(56px, 8vw, 110px) 0 clamp(64px, 9vw, 120px);
  isolation: isolate;
  overflow: hidden;
}

/* 上端を「▽（谷）」にする白いくさび */
.crossmedia-body::before {
  content: "";
  position: absolute;
  left: -1px;
  /* ← 少しだけ広げる */
  right: -1px;
  top: -1px;
  height: calc(clamp(60px, 10vw, 160px) + 2px);
  /* ← 高さも+2px */
  background: #fff;
  clip-path: polygon(0 0, 50% 100%, 100% 0);
  z-index: 0;
  pointer-events: none;
  transform: translateZ(0);
}

/* 中身は手前に */
.crossmedia-body>* {
  position: relative;
  z-index: 1;
}

.crossmedia-service-wrap {
  margin-top: 200px;
}

/* 3サービス（既存HTMLをそのまま活用） */
.crossmedia-body .section-services__list {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(20px, 4vw, 40px);
  width: calc(100% - 60px);
  max-width: 1100px;
  margin: 0 auto;
  text-align: center;
}

p.crossmedia-tag {
  font-size: 3.6rem;
  font-size: var(--fs-36);
  text-align: center;
  border: 2px #fff solid;
  width: 60%;
  margin: 40px auto 80px;
  border-radius: 8px;
  color: #fff;
  padding: 12px 14px;
}

@media (max-width:980px) {
  p.crossmedia-tag {
    width: 90%;
  }
}

.crossmedia-body .service {
  display: grid;
  grid-template-rows: auto auto 1fr auto;
  row-gap: 10px;
}

.crossmedia-body .service__title {
  color: #fff;
  font-weight: 800;
  letter-spacing: .08em;
  font-size: 2.0rem;
  font-size: var(--fs-20);
}

.crossmedia-body .service__icon {
  width: clamp(280px, 16vw, 160px);
  height: auto;
  margin: 8px auto 6px;
  display: block;
  filter: drop-shadow(0 6px 14px rgba(0, 0, 0, .18));
}

.crossmedia-body .service__desc {
  color: rgba(255, 255, 255, .95);
  line-height: 1.9;
  font-size: 16px;
  text-align: left;
}



/* ── レスポンシブ ── */
@media (max-width: 900px) {
  .pair {
    grid-template-columns: 1fr;
    gap: 14px;
  }


  .crossmedia-body .section-services__list {
    grid-template-columns: 1fr;
  }

  .crossmedia-body {
    padding-bottom: clamp(56px, 12vw, 96px);
  }
}

/* ==============================
   BLOG
   ============================== */
#blog .wrap {
  padding: 60px 0;
}

#blog .wrap .contents {
  max-width: 1200px;
}

#blog .wrap .contents h2 {
  justify-items: center;
}

#blog .wrap .contents p.body {
  text-align: center;
  font-size: 2.4rem;
  line-height: 1.5;
  color: #1e6b7f;
  font-weight: 800;
  letter-spacing: .1em;
  margin-bottom: 1.5em;
}

#blog .wrap .contents .contents_inner {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-column-gap: 40px;
  margin-bottom: 50px;
}

#blog .wrap .contents .contents_inner .item .img {
  overflow: hidden;
}

#blog .wrap .contents .contents_inner .item .img img {
  aspect-ratio: 1.75;
  object-fit: cover;
  transition: .3s;
}

#blog .wrap .contents .contents_inner .item p {
  margin: 0 15px;
}

#blog .wrap .contents .contents_inner .item .postinfo {
  font-size: 1.4rem;
  padding: 15px 15px .33em;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-start;
}

#blog .wrap .contents .contents_inner .item .postinfo span.date {
  font-size: 1.4rem;
  font-weight: 600;
  color: #1e6b7f;
  margin-right: 10px;
}

#blog .wrap .contents .contents_inner .item .postinfo span.cat {
  display: grid;
  align-items: center;
  justify-content: center;
  padding: .5em 1em;
  border-radius: 1em;
  color: #fff;
  background: #1e6b7f;
  font-size: 1.2rem;
  margin: 3px;
}

#blog .wrap .contents .contents_inner .item:hover {
  opacity: .75;
}

#blog .wrap .contents .contents_inner .item:hover img {
  transform: scale(1.05);
}

#blog .wrap .contents .btn_wrap {
  text-align: center;
}

/* ==============================
   スライダー（画像/テキスト）
   ============================== */
#slider .wrap {
  overflow: hidden;
  position: relative;
  padding: 100px 0;
  background: #fff;
}

#slider .wrap .img_slider .swiper-wrapper {
  transition-timing-function: linear;
}

#slider .wrap .img_slider .swiper-wrapper .swiper-slide {
  width: 500px;
}

#slider .wrap .img_slider .swiper-wrapper .swiper-slide img {
  display: block;
  border-radius: 20px;
}

#slider .wrap .text_slider {
  position: absolute;
  left: 50%;
  top: 24%;
  transform: translate(-50%, -50%) rotate(-7deg);
  width: 120%;
  pointer-events: none;
  z-index: 5;
  -webkit-mask-image: linear-gradient(to right, transparent 0%, black 10%, black 90%, transparent 100%);
  mask-image: linear-gradient(to right, transparent 0%, black 10%, black 90%, transparent 100%);
}

#slider .wrap .text_slider .swiper-wrapper {
  transition-timing-function: linear !important;
}

#slider .wrap .text_slider .swiper-slide {
  width: auto;
  padding-inline: 0;
  display: flex;
  align-items: center;
}

#slider .wrap .text_slider .slide--red {
  color: var(--red, #d82a2a);
}

#slider .wrap .text_slider .slide--blue {
  color: var(--blue, #135ba4);
}

#slider .wrap .text_slider .svg-word {
  height: clamp(90px, 8vw, 200px);
  width: auto;
  display: block;
}

#slider .wrap .text_slider .swiper-slide+.swiper-slide {
  margin-left: -160px;
}

#slider .wrap .text_slider .svg-word text {
  fill: transparent;
  stroke: currentColor;
  stroke-width: 5;
  vector-effect: non-scaling-stroke;
  paint-order: stroke fill;
  font-family: "Poppins", "Zen Kaku Gothic Antique", sans-serif;
  font-weight: 900;
  letter-spacing: .06em;
  font-size: 96px;
}

@media (max-width:600px) {
  #slider .wrap .text_slider {
    transform: translate(-50%, -50%) rotate(-6deg);
    width: 130%;
  }

  #slider .wrap .text_slider .svg-word {
    height: clamp(28px, 8vw, 56px);
  }
}

/* ------- テキスト帯：重なり幅を可変に -------- */
#slider .wrap .text_slider {
  /* 文字の重なり量（マイナスで重ねる） */
  --word-overlap: -180px;
  /* PC 基準 */
}

#slider .wrap .text_slider .swiper-slide+.swiper-slide {
  margin-left: var(--word-overlap);
}

/* 画面が狭くなるほど重なりを弱くする */
/* 画面幅に応じて段階的に弱める（以前よりも全体的に小さめ） */
@media (max-width: 1200px) {
  #slider .wrap .text_slider {
    --word-overlap: -110px;
  }
}

@media (max-width: 900px) {
  #slider .wrap .text_slider {
    --word-overlap: -120px;
  }
}

@media (max-width: 600px) {
  #slider .wrap .text_slider {
    --word-overlap: -50px;
  }
}

@media (max-width: 480px) {
  #slider .wrap .text_slider {
    --word-overlap: -30px;
  }
}

/* ==============================
   チーム＆会社（2カラム）
   ============================== */
.section-duo {
  background: #f2f2f2;
  padding: clamp(56px, 9vw, 120px) 0;
}

.section-duo__grid {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(28px, 4vw, 56px);
  align-items: start;
}

.duo-card {
  display: grid;
  grid-template-rows: auto auto 1fr auto;
  row-gap: 10px;
  text-align: left;
}

.duo-card .section-label {
  font-size: 1.4rem;
  margin-bottom: 4px;
}

.duo-card .section-label::before {
  font-size: .7em;
  line-height: 1;
}

.duo-card__title {
  color: var(--red);
  font-weight: 900 !important;
  letter-spacing: .2em;
  line-height: 1.6;
  font-size: clamp(22px, 3.2vw, 34px);
  margin-bottom: 6px;
}

.duo-card__image {
  width: 70%;
  margin: 40px auto;
}

.duo-card__image img {
  display: block;
  max-width: min(420px, 90%);
  width: 100%;
  height: auto;
}

.duo-card .link-more {
  justify-self: start;
  margin-left: 0;
}

@media (max-width:900px) {
  .section-duo__grid {
    grid-template-columns: 1fr;
  }

  .duo-card__image img {
    max-width: 100%;
  }
}

/* =========================================================
   Home: News section  （アーカイブと同じトンマナ）
   対象HTML: <section id="news" class="home-news"> …
   ========================================================= */
section#news {
  margin: 160px auto;
}

/* コンテナ幅 */
.home-news .wrap {
  width: calc(100% - 60px);
  max-width: 1200px;
  margin: 0 auto 120px;
}

/* 見出し */
.home-news .section-label {
  display: inline-flex;
  align-items: center;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: .05em;
  color: #111;
  margin-bottom: 10px;
}

.home-news .section-label::before {
  content: "●";
  margin-right: 6px;
  color: var(--blue, #135ba4);
  font-size: .7em;
  line-height: 1;
}

.home-news .section-news__title {
  color: var(--blue, #135ba4);
  line-height: 1.5;
  margin: 0;
  font-size: clamp(22px, 3.2vw, 48px);
  font-weight: 900 !important;
  letter-spacing: 0.1em;
  display: grid;
  grid-row-gap: 0.5em;
  margin-bottom: 0.75em;
}

/* ===== レイアウト：左=一覧 / 右=サイド（HTMLは一覧→サイドの順） ===== */
.home-news .news-grid {
  display: grid;
  align-items: start;
  gap: 28px;
  grid-template-columns: minmax(0, 1fr) 240px;
  grid-template-areas: "main side";
  /* PCは一覧→サイド */
}

.home-news .home-news__grid {
  grid-area: main;
}

.home-news .news-side {
  grid-area: side;
}

/* SPは1カラムで“一覧→サイド”の順のまま */
@media (max-width: 980px) {
  .home-news .news-grid {
    grid-template-columns: 1fr;
    gap: 20px;
    grid-template-areas:
      "main"
      "side";
  }
}

/* ===== 一覧カード（アーカイブの .news-card と同等） ===== */
.home-news .home-news__grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
  min-width: 0;
}

@media (max-width: 980px) {
  .home-news .home-news__grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 640px) {
  .home-news .home-news__grid {
    grid-template-columns: 1fr;
  }
}

.home-news .news-card {
  display: flex;
  flex-direction: column;
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  overflow: hidden;
  transition: box-shadow .2s ease, transform .2s ease;
}

.home-news .news-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 24px rgba(0, 0, 0, .06);
}

.home-news .news-card__link {
  display: block;
  color: inherit;
  text-decoration: none;
}

/* サムネ（16:9・フォーカス/ホバーで軽く拡大） */
.home-news .news-card__thumb {
  overflow: hidden;
}

.home-news .news-card__thumb img {
  width: 100%;
  height: auto;
  display: block;
  transition: transform .35s ease;
}

.home-news .news-card:hover .news-card__thumb img,
.home-news .news-card:focus-within .news-card__thumb img {
  transform: scale(1.06);
}

/* アイキャッチ無い時のダミー */
.home-news .news-card__thumb .noimg {
  display: block;
  width: 100%;
  aspect-ratio: 16/9;
  background: #f3f4f6;
}

.home-news .news-card__title {
  padding: 12px 14px 0;
  font-size: 1.6rem;
  font-size: var(--fs-16);
  font-weight: 700;
  line-height: 1.6;
  color: #0f172a;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

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

.home-news .news-card__meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 10px 14px 14px;
}

.home-news .news-card__meta .date {
  font-size: 1.4rem;
  font-weight: 800;
  letter-spacing: .06em;
  color: #6b7280;
  white-space: nowrap;
}

.home-news .news-card__meta .cats {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  justify-content: flex-end;
}

/* バッジ（色はアーカイブと揃える） */
.home-news .news-card .badge {
  height: 24px;
  padding: 5px 10px;
  font-size: 1.4rem;
  border-radius: 999px;
  color: #fff;
  text-decoration: none;
}

.home-news .badge--oshirase,
.home-news .badge--news,
.home-news .badge--info {
  background: var(--blue, #135ba4);
}

.home-news .badge--area,
.home-news .badge--chiiki,
.home-news .badge--local {
  background: var(--red, #d82a2a);
}

/* ===== サイド：フィルタ（アーカイブと同じ見た目） ===== */
.home-news aside.news-side {
  text-align: left;
}

.home-news .filter-group+.filter-group {
  margin-top: 40px;
}

.home-news .filter-title {
  font-size: 1.6rem;
  font-size: var(--fs-16);
  letter-spacing: .12em;
  color: #0f172a;
  opacity: .8;
  margin-bottom: 40px;
}

.home-news .news-cats,
.home-news .news-years {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 10px;
}

/* ピル */
.home-news .pill {
  display: inline-flex;
  align-items: center;
  height: 34px;
  padding: 0 14px;
  border: 1px solid #d1d5db;
  border-radius: 999px;
  background: #fff;
  color: #0f172a;
  font-size: 1.6rem;
  font-size: var(--fs-16);
  font-weight: 700;
  text-decoration: none;
}

.home-news .pill.is-active {
  border-color: #111;
  color: #111;
  box-shadow: 0 0 0 2px #111 inset;
}

.home-news .pill:hover {
  border-color: #9ca3af;
}

.home-news .pill:focus-visible {
  outline: 2px solid color-mix(in oklab, var(--blue, #135ba4) 60%, white);
  outline-offset: 2px;
}

/* 年リンク */
.home-news .year-link {
  display: inline-block;
  color: #0f172a;
  font-weight: 800;
  text-decoration: none;
  font-size: 1.6rem;
  font-size: var(--fs-16);
}

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

/* モバイルではサイドのリストを2カラム化（ピルは全幅に） */
@media (max-width: 980px) {

  .home-news .news-cats,
  .home-news .news-years {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px 12px;
    text-align: center;
  }

  .home-news .news-cats .pill {
    width: 100%;
    justify-content: center;
  }

  .home-news .news-years .year-link {
    display: block;
    width: 100%;
    padding: 8px 0;
    border: 1px solid #d1d5db;
    border-radius: 999px;
  }

  .home-news .news-years .year-link.is-active {
    border-color: #111;
    box-shadow: 0 0 0 2px #111 inset;
  }
}

/* ====== Home News：サイドを左、一覧を右 ====== */
.home-news .news-grid {
  /* 左：サイド 右：メイン */
  grid-template-columns: 240px minmax(0, 1fr);
  grid-template-areas: "side main";
}

/* サイドをスクロール追従（任意） */
.home-news .news-side {
  position: sticky;
  top: 90px;
  /* 固定ヘッダーがあれば調整 */
  align-self: start;
}

/* 画面広めのときはサイド幅を少し広げる（任意） */
@media (min-width: 1280px) {
  .home-news .news-grid {
    grid-template-columns: 260px minmax(0, 1fr);
  }
}

/* SPはこれまで通り：メイン→サイドの縦並び */
@media (max-width: 980px) {
  .home-news .news-grid {
    grid-template-columns: 1fr;
    grid-template-areas:
      "main"
      "side";
  }

  .home-news .news-side {
    position: static;
    /* sticky解除 */
  }
}

/* カテゴリーピル：選択中は太枠に */
.news-cats .pill.is-active,
.news-cats .pill[aria-current="page"] {
  border-color: #111;
  color: #111;
  /* 枠を太く見せる：外側1px + 内側2px ＝ 視覚的に太枠 */
  box-shadow: 0 0 0 2px #111 inset;
}

/* ホバー/フォーカス時（選択中以外）は従来どおり */
.news-cats .pill:hover {
  border-color: #9ca3af;
}

.news-cats .pill:focus-visible {
  outline: 2px solid color-mix(in oklab, var(--blue, #135ba4) 60%, white);
  outline-offset: 2px;
}

/* ==============================
   レスポンシブまとめ
   ============================== */
@media (max-width:1300px) {
  #slider .wrap::before {
    right: 5px;
    left: auto;
  }
}

@media (max-width:1240px) {
  #strength .wrap .contents .contents_inner .img::before {
    right: 0%;
  }

  #service .wrap .contents::before {
    right: -20px;
  }

  #service .wrap .contents .contents_inner .img::before {
    left: 0;
  }
}

@media (max-width:1024px) {
  #strength .wrap .contents .contents_inner {
    grid-column-gap: 30px;
  }

  #strength .wrap .contents .contents_inner .detail p {
    max-width: 100%;
    line-height: 2;
  }

  #service .wrap .contents .contents_inner {
    grid-column-gap: 30px;
  }


  #blog .wrap .contents .contents_inner {
    grid-column-gap: 20px;
  }

  #slider .wrap .img_slider .swiper-wrapper .swiper-slide {
    width: 400px;
  }
}

@media (max-width:768px) {

  .scroll-down {
    display: none;
  }

  /* strength */
  #strength .wrap {
    padding: 60px 0;
  }

  #strength .wrap .contents .contents_inner {
    grid-template-columns: 1fr;
  }

  #strength .wrap .contents .contents_inner .detail {
    display: contents;
  }

  #strength .wrap .contents .contents_inner .detail p {
    font-size: 1.4rem;
    margin-bottom: 2.5em;
  }

  #strength .wrap .contents .contents_inner .detail p.body {
    font-size: 2rem;
  }

  #strength .wrap .contents .contents_inner .img {
    padding-top: 50px;
  }

  #strength .wrap .contents .contents_inner .img img {
    width: 100%;
    max-width: 100%;
    margin-right: 0;
    border-radius: 20px;
  }

  #strength .wrap .contents .contents_inner .img::before {
    width: 100px;
    height: 100px;
    right: 20px;
  }

  /* service */
  #service .wrap {
    padding: 45px 0 90px;
  }

  #service .wrap .contents::before {
    width: 100vw;
    height: calc(100% + 90px);
    right: -10px;
  }

  #service .wrap .contents .contents_inner {
    grid-template-columns: 1fr;
  }

  #service .wrap .contents .contents_inner .detail {
    grid-area: unset;
    display: contents;
  }

  #service .wrap .contents .contents_inner .detail p {
    font-size: 1.4rem;
    margin-bottom: 2.5em;
  }

  #service .wrap .contents .contents_inner .detail p.body {
    font-size: 2rem;
  }

  #service .wrap .contents .contents_inner .img {
    padding-top: 50px;
  }

  #service .wrap .contents .contents_inner .img img {
    width: 100%;
    max-width: 100%;
    margin-left: 0;
    border-radius: 20px;
  }

  #service .wrap .contents .contents_inner .img::before {
    width: 100px;
    height: 100px;
    right: 20px;
    left: auto;
  }


  /* slider */
  #slider .wrap {
    padding: 45px 0;
  }

  #slider .wrap .img_slider .swiper-wrapper .swiper-slide {
    width: 280px;
  }
}