hr { 
  margin-bottom: 2.5rem;
}

/* hero */
.top-hero {
    min-height: 560px;
    background: url("/image/hero.webp") center center / cover no-repeat;
}

.top-hero__inner {
    width: min(1200px, calc(100% - 48px));
    min-height: 560px;
    margin: 0 auto;
    display: flex;
    align-items: center;
}

.top-hero__copy {
    max-width: 650px;
    transform:translate(40px, -50px);
}

.top-hero__copy h1 {
    margin: 0;
    color: #123c80;
    font-size: clamp(36px, 4vw, 58px);
    font-weight: 700;
    line-height: 1.4;
    letter-spacing: .02em;
    text-shadow:
      1px 1px 0 #fff,
      2px 2px 0 #fff,
      3px 3px 4px rgba(255,255,255,.7);
  }

.top-hero__button,
.top-hero__button:link,
.top-hero__button:visited {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin-top: 34px;
  padding: 14px 28px;
  border: 1px solid rgba(0, 91, 172, 0.7);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.72);
  color: #005bac;
  font-size: 16px;
  font-weight: 700;
  line-height: 1;
  text-decoration: none;
  box-shadow: 0 4px 16px rgba(0, 59, 110, 0.1);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  transition:
    background-color 0.2s ease,
    color 0.2s ease,
    border-color 0.2s ease,
    box-shadow 0.2s ease;
}

.top-hero__button::after {
  content: "→";
  display: inline-block;
  transition: transform 0.2s ease;
}

.top-hero__button:hover,
.top-hero__button:focus-visible {
  background: #005bac;
  color: #fff;
  border-color: #005bac;
  text-decoration: none;
  box-shadow: 0 7px 20px rgba(0, 59, 110, 0.18);
}

.top-hero__button:hover::after,
.top-hero__button:focus-visible::after {
  transform: translateX(4px);
}

.top-hero__button:active {
  background: #004986;
  color: #fff;
  border-color: #004986;
  box-shadow: 0 3px 10px rgba(0, 59, 110, 0.14);
}

/* タブレット */
@media (min-width: 769px) and (max-width: 1100px) {
  .top-hero__inner {
    width: calc(100% - 64px);
    justify-content: center;
  }

  .top-hero__copy {
    width: min(650px, 72%);
    margin-right: 18%;
    transform:translate(0px, -50px);
  }
}

@media (max-width: 768px) {
  .top-hero {
    min-height: 480px;
    background-position: 68% center;
  }

  .top-hero__inner {
    width: calc(100% - 32px);
    min-height: 480px;
    margin: 0 auto;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
  }

  .top-hero__copy {
    width: 100%;
    text-align: center;
    transform:translate(0px, -50px);
  }

  .top-hero__copy h1 {
    position: relative;
    left: -0.12em;
    font-size: clamp(30px, 8vw, 42px);
    line-height: 1.45;
  }

  .top-hero__button,
  .top-hero__button:link,
  .top-hero__button:visited {
    margin-top: 26px;
    padding: 13px 26px;
    font-size: 15px;
  }
}

/* 3本の柱 */
.service-cards {
  position: relative;
  margin-top: 24px;
  padding: 0 24px 48px;
  z-index: 2;
}

.service-cards__inner {
  width: min(1200px, 100%);
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

.service-card,
.service-card:link,
.service-card:visited {
  display: flex;
  min-width: 0;
  min-height: 190px;
  padding: 26px 24px;
  align-items: flex-start;
  gap: 18px;
  color: #26384a;
  text-decoration: none;
  border: 1px solid rgba(0, 91, 172, 0.16);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.6);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-sizing: border-box;
  transition:
    border-color 0.2s ease,
    box-shadow 0.2s ease,
    background-color 0.2s ease;
}

.service-card:hover,
.service-card:focus-visible {
  color: #26384a;
  text-decoration: none;
  border-color: rgba(0, 91, 172, 0.35);
  background: rgba(255, 255, 255, 0.97);
  box-shadow: 0 16px 36px rgba(17, 78, 126, 0.15);
}

.service-card__icon {
  flex: 0 0 auto;
  display: flex;
  width: 52px;
  height: 52px;
  justify-content: center;
}

.service-card__icon svg {
  width: 40px;
  height: 40px;
  fill: none;
  stroke: #0868b9;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.service-card__body {
  display: flex;
  min-width: 0;
  min-height: 138px;
  flex: 1;
  flex-direction: column;
}

.service-card h2 {
  position: relative;
  margin: 2px 0 10px;
  color: #123c80;
  font-size: 21px;
  font-weight: 700;
  line-height: 1.35;
  letter-spacing: 0.02em;
}

.service-card h2::after{
    content: "";
    position: absolute;
    left: 0;
    bottom: 0;
    width: 40px;
    height: 2px;
    background: #123c80;
}

.service-card p {
  margin: 0;
  color: #536575;
  font-size: 14px;
  line-height: 1.75;
}

.service-card__link {
  display: inline-flex;
  margin-top: auto;
  padding-top: 14px;
  align-items: center;
  gap: 8px;
  color: #005bac;
  font-size: 14px;
  font-weight: 700;
  line-height: 1;
}

.service-card__link::after {
  content: "→";
  transition: transform 0.2s ease;
}

.service-card:hover .service-card__link::after,
.service-card:focus-visible .service-card__link::after {
  transform: translateX(4px);
}

@media (max-width: 768px) {
  .service-cards {
    margin-top: 24px;
    padding: 0 20px 40px;
  }

  .service-cards__inner {
    grid-template-columns: 1fr;
    gap: 14px;
  }

  .service-card,
  .service-card:link,
  .service-card:visited {
    min-height: 0;
    padding: 22px;
  }

  .service-card__body {
    min-height: 0;
  }

  .service-card__link {
    margin-top: 14px;
  }
}

@media (max-width: 480px) {
  .service-cards {
    margin-top: -18px;
    padding: 0 16px 32px;
  }

  .service-card,
  .service-card:link,
  .service-card:visited {
    padding: 20px 18px;
    gap: 14px;
    border-radius: 12px;
  }

  .service-card__icon {
    width: 46px;
    height: 46px;
    border-radius: 11px;
  }

  .service-card__icon svg {
    width: 26px;
    height: 26px;
  }

  .service-card h2 {
    margin-top: 0;
    font-size: 19px;
  }

  .service-card p {
    font-size: 13px;
    line-height: 1.65;
  }
}

/* コンテンツ */
/* ==========================
   Feature section
========================== */

.feature-section {
  width: min(1200px, calc(100% - 48px));
  margin: 72px auto 64px;
}

.feature-item {
  display: flex;
  align-items: center;
  gap: 48px;
  margin-bottom: 64px;
}

.feature-item:last-child {
  margin-bottom: 0;
}

.feature-item.reverse {
  flex-direction: row-reverse;
}

.feature-image {
  flex: 0 0 44%;
  min-width: 0;
}

.feature-image img {
  display: block;
  width: 100%;
  height: 280px;
  object-fit: cover;
  border-radius: 8px;
}

.feature-content {
  flex: 1 1 56%;
  min-width: 0;
}

.feature-content h2 {
  position: relative;
  padding-left: 18px;
  margin: 0 0 16px;
  color: #335284;
  font-size: clamp(24px, 2.4vw, 30px);
  font-weight: 700;
  line-height: 1.4;
  letter-spacing: 0.01em;
}

.feature-content h2::before {
  content: "";
  position: absolute;
  top: 0.2em;
  bottom: 0.2em;
  left: 0;
  width: 4px;
  background: #005bac;
}

.feature-content p {
  margin: 0;
  color: #333;
  font-size: 16px;
  line-height: 1.9;
}

/* タブレット */

/* スマホ */
@media (max-width: 768px) {
  .feature-section {
    width: calc(100% - 32px);
    margin: 44px auto 52px;
  }

  .feature-item,
  .feature-item.reverse {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 18px;
    margin-bottom: 44px;
  }

  .feature-content {
    display: contents;
  }

  .feature-content h2 {
    order: 1;
    margin: 0;
    font-size: 22px;
    line-height: 1.45;
  }

  .feature-image {
    order: 2;
    width: 88%;
    margin: 0 auto;
  }

  .feature-image img {
    display: block;
    width: 100%;
    height: auto;
    aspect-ratio: 16 / 9;
    object-fit: cover;
    border-radius: 10px;
  }

  .feature-content p {
    order: 3;
    margin: 0;
    font-size: 14px;
    line-height: 1.8;
  }
}



/* ==========================
   最新情報
========================== */

/* 最新情報の一覧部分 */
.news-list {
  max-height: 600px;
  overflow-y: auto;
  overflow-x: hidden;
  padding-right: 16px;
  scrollbar-gutter: stable;
}
@media screen and (max-width: 600px) {
  .news-list {
    max-height: 560px;
    padding-right: 8px;
  }
}

.news-wrap{
    max-width:1200px;
    margin:0 auto;
    padding: 0 16px;
}

#news + br + .container {
  padding-top: 1rem !important;
}

.news-wrap > h2 {
  position: relative;
  display: inline-block;
  left: 50%;
  transform: translateX(-50%);
  margin-bottom: 2.5rem !important;
  padding-bottom: 12px;
  color: #123c80;
  font-weight: 700;
}

.news-wrap > h2::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: 0;
  width: 64px;
  height: 3px;
  transform: translateX(-50%);
  background: linear-gradient(90deg, #005bac, #4aa3df);
  border-radius: 2px;
}

/* 各ニュース */
#news + br + .container .media {
  display: flex;
  align-items: flex-start;
  margin: 0 !important;
  padding: 22px 0;
  border-bottom: 1px solid #e4eaf0;
}

/* 元HTMLのhrは非表示 */
#news + br + .container hr {
  display: none;
}

/* 画像サイズは元CSSを活かす */
#news + br + .container .media > .mr-3 {
  flex: 0 0 auto;
  margin-right: 24px !important;
}

#news + br + .container .media img {
  flex-shrink: 0;
}

/* 本文 */
#news + br + .container .media-body {
  min-width: 0;
  padding-left: 0 !important;
  padding-right: 0 !important;
}

#news + br + .container .media-body h5 {
  margin: 0 0 8px;
  color: #123c80;
  font-size: 1.3rem;
  font-weight: 700;
  line-height: 1.5;
}

#news + br + .container .badge {
  margin-bottom: 8px !important;
  padding: 4px 9px;
  border-radius: 3px;
  background: #e8f1f8 !important;
  color: #315b7d !important;
  font-size: 0.78rem;
  font-weight: 600;
}

#news + br + .container .media-body p {
  margin: 6px 0 0;
  color: #333;
  line-height: 1.8;
}

#news + br + .container .media-body a,
#news + br + .container .media-body a:visited {
  color: #005bac;
  text-decoration: none;
}

#news + br + .container .media-body a:hover,
#news + br + .container .media-body a:focus {
  color: #004787;
  text-decoration: underline;
}

/* スマホ */
@media (max-width: 768px) {
  #news + br + .container {
    padding-left: 20px !important;
    padding-right: 20px !important;
  }

  #news + br + .container h2 {
    margin-bottom: 1.8rem !important;
  }

  #news + br + .container .media {
    padding: 18px 0;
  }

  #news + br + .container .media > .mr-3 {
    margin-right: 16px !important;
  }

  #news + br + .container .media-body h5 {
    font-size: 1.08rem;
    line-height: 1.45;
  }

  #news + br + .container .media-body p {
    font-size: 0.92rem;
    line-height: 1.7;
  }

  .period {
    display: none;
  }
}

/* 狭いスマホ */
@media (max-width: 480px) {
  #news + br + .container .media {
    display: block;
  }

  #news + br + .container .media > .mr-3 {
    margin: 0 0 14px !important;
  }

  .period {
    display: none;
  }
}



/* ==========================
   Hero Product Banner
========================== */

.hero {
    position: relative;
    overflow: hidden;
}

.hero-product-banner {
    position: absolute;
    top: 130px;
    right: 10%;
    width: min(560px, 32vw);
    z-index: 5;
    pointer-events: auto;
    animation: bannerFade .8s ease;
}

.hero-product-banner a{
    display:block;
}

.hero-product-banner img{
    display:block;
    width:100%;
    height:auto;
    border-radius:8px;
    box-shadow:
        0 18px 50px rgba(0,0,0,.14);
    transition:
        transform .25s ease,
        box-shadow .25s ease;
}

.hero-product-banner img:hover{
    transform:
        translateY(-4px);
    box-shadow:
        0 24px 60px rgba(0,0,0,.18);
}

@keyframes bannerFade{
    from{
        opacity:0;
        transform:
            translateY(20px);
    }

    to{
        opacity:1;
        transform:none;
    }
}

/* ---------- Tablet ---------- */

@media (max-width:991px){

    .hero-product-banner{
        top:80%;
        right:6%;
        width:min(390px,42vw);
    }
}

/* ---------- Smartphone ---------- */

/* スマホ */
@media (max-width: 768px) {
  .top-hero {
    overflow: visible;
    padding-bottom: 20px;
  }

  .hero-product-banner {
    position: static;
    width: min(320px, calc(100% - 32px));
    margin: -116px auto 0;
  }

  .hero-product-banner img {
    border-radius: 5px;
    box-shadow: 0 6px 18px rgba(20, 55, 90, 0.13);
  }
}

/* 狭いスマホ */
@media (max-width: 480px) {
  .hero-product-banner {
    width: calc(100% - 28px);
    margin-top: -116px;
  }
}

/* **************** */

/* 最新情報の一覧部分 */
.news-list {
  max-height: 600px;
  overflow-y: auto;
  overflow-x: hidden;
  padding-right: 16px;
  scrollbar-gutter: stable;
}
@media screen and (max-width: 600px) {
  .news-list {
    max-height: 560px;
    padding-right: 8px;
  }
}




.hero-slider {
  display: grid;
  position: relative;
  overflow: hidden;
}

.hero-slide {
  grid-area: 1 / 1;
  width: 100%;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 1.6s ease-in-out;
}

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

.hero-slide--second {
  background-image: none;
  background-color: #e8eef2;
}

.hero-slider__prev,
.hero-slider__next {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);

  border: 0;
  background: transparent;

  color: rgba(196,196,196,.75);
  font-size: 48px;
  line-height: 1;

  cursor: pointer;
  transition: .2s;
}

.hero-slider__prev:hover,
.hero-slider__next:hover{
  color:#fff;
}

.hero-slider__prev {
  left: 20px;
}

.hero-slider__next {
  right: 20px;
}

.hero-slider__prev,
.hero-slider__next {
  outline: none;
}

.hero-slider__prev:focus,
.hero-slider__next:focus,
.hero-slider__prev:focus-visible,
.hero-slider__next:focus-visible {
  outline: none;
  box-shadow: none;
}

.hero-slider__dots {
  position: absolute;
  z-index: 20;
  bottom: 20px;
  left: 50%;
  display: flex;
  gap: 10px;
  transform: translateX(-50%);
}

.hero-slider__dot {
  width: 10px;
  height: 10px;
  padding: 0;
  border: 1px solid #fff;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.4);
  cursor: pointer;
}

.hero-slider__dot.is-active {
  background: #fff;
}









/* ==========================
   Campus Force Hero
========================== */

.hero-slide--second {
  min-height: 560px;
  background-image: url("/image/hero-cf.webp");
  background-repeat: no-repeat;
  background-position: center center;
  background-size: min(1600px, 100vw) auto;
  background-color: #e8eef2;
}

.hero-slide--second .top-hero__inner {
  min-height: 560px;
  display: flex;
  align-items: center;
  justify-content: flex-end;
}

.hero-slide--second .top-hero__copy {
  width: min(42%, 510px);
  margin-right: 2%;
  transform: translateY(-20px);
}

.hero-slide--second .top-hero__copy h1 {
  margin: 0;
  color: #17324d;
  font-size: clamp(34px, 3.4vw, 50px);
  line-height: 1.35;
  text-shadow: none;
}

.hero-slide--second .top-hero__label {
  margin: 0 0 16px;
  color: #2876bd;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.12em;
}

.hero-slide--second .top-hero__description {
  margin: 24px 0 0;
  color: #4b6175;
  font-size: 18px;
  line-height: 1.8;
}

.hero-slide--second .top-hero__button,
.hero-slide--second .top-hero__button:link,
.hero-slide--second .top-hero__button:visited {
  background: #005bac;
  color: #fff;
  border-color: #005bac;
  box-shadow: 0 4px 12px rgba(0, 91, 172, 0.14);
}

.hero-slide--second .top-hero__button:hover,
.hero-slide--second .top-hero__button:focus-visible {
  background: #00498a;
  color: #fff;
  border-color: #00498a;
}


/* タブレット */
@media (min-width: 769px) and (max-width: 1100px) {
  .hero-slide--second {
    background-position: 42% center;
  }

  .hero-slide--second .top-hero__inner {
    width: calc(100% - 48px);
    justify-content: flex-end;
    text-align: left;
  }

  .hero-slide--second .top-hero__copy {
    width: min(40%, 510px);
    margin-left: auto;
    margin-right: 2%;
    transform: translateY(-10px);

    display: flex;
    flex-direction: column;
    align-items: flex-start;

    text-align: left;
  }

  .hero-slide--second .top-hero__copy h1 {
    font-size: clamp(34px, 4.6vw, 48px);
    text-shadow:
      1px 1px 0 #fff,
      2px 2px 0 #fff,
      3px 3px 4px rgba(255,255,255,.7);
  }
}


/* スマホ */
@media (max-width: 768px) {
  .hero-slide--second {
    min-height: 480px;
    padding-bottom: 20px;
    background-size: cover;
    background-position: center center;
  }

  .hero-slide--second .top-hero__inner {
    width: calc(100% - 32px);
    min-height: 480px;
    margin: 0 auto;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: flex-end;
  }

  .hero-slide--second .top-hero__copy {
    width: 90%;
    margin-left: auto;
    padding-right: 10px;
    transform: translateY(-40px);
    text-align: left; /* 追加 */
  }

  .hero-slide--second .top-hero__copy h1 {
    left: auto;
    font-size: clamp(24px, 5.5vw, 34px);
    line-height: 1.4;
    text-shadow:
      1px 1px 0 #fff,
      2px 2px 0 #fff,
      3px 3px 4px rgba(255,255,255,.7);
  }

  .hero-slide--second .top-hero__label {
    margin-bottom: 12px;
    font-size: 12px;
  }

  .hero-slide--second .top-hero__description {
    margin-top: 16px;
    font-size: 14px;
    line-height: 1.7;
  }
}

@media (max-width: 480px) {
  .hero-slide--second .top-hero__inner {
    width: calc(100% - 24px);
  }

  .hero-slide--second .top-hero__copy {
    width: 56%;
    transform: translateY(-44px);
    text-align: left;
  }

  .hero-slide--second .top-hero__copy h1 {
    font-size: clamp(24px, 7vw, 34px);
    text-shadow:
      1px 1px 0 #fff,
      2px 2px 0 #fff,
      3px 3px 4px rgba(255,255,255,.7);
  }

  .hero-slide--second .top-hero__description {
    font-size: 13px;
  }
}

@media (max-width: 768px) {
  .hero-slide--second .top-hero__inner {
    justify-content: center;
  }

  .hero-slide--second .top-hero__copy {
    box-sizing: border-box;
    width: 90%;
    margin: 0 auto;
    padding: 22px 0px;

    display: flex;
    flex-direction: column;
    align-items: center;

    text-align: center;
    transform: translateY(-30px);

    background: rgba(255, 255, 255, 0);
    box-shadow: 0 6px 20px rgba(20, 55, 90, 0.1);

    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
  }

  .hero-slide--second .top-hero__copy h1,
  .hero-slide--second .top-hero__label,
  .hero-slide--second .top-hero__description {
    text-align: center;
  }

  .hero-slide--second .top-hero__button {
    margin-left: auto;
    margin-right: auto;
  }
}

@media (max-width: 480px) {
  .hero-slide--second .top-hero__copy {
    width: calc(100% - 40px);
    padding: 20px 16px;
    transform: translateY(-24px);
  }
}
