/* ==============================
  Common
============================== */

@import url('https://fonts.googleapis.com/css2?family=Montserrat:ital,wght@0,700;1,700&display=swap');

section.home .section-header {
  margin-bottom: 60px;
  text-align: center;
}

section.home .section-header__sub {
  display: inline-block;
  margin-bottom: 12px;
  color: #16a3ff;
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: 0.18em;
}

section.home .section-header__title {
  margin: 0;
  color: #fff;
  font-size: 2.5rem;
  font-weight: 700;
  line-height: 1.4;
  letter-spacing: 0.08em;
	font-family: "Montserrat", sans-serif;
}


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

#hero {
  position: relative;
  width: 100%;
  min-height: 680px;
  overflow: hidden;
  background: #001a36;
}

.hero-swiper,
.hero-swiper .swiper-wrapper,
.hero-swiper .swiper-slide,
.hero-slide {
  width: 100%;
  height: 680px;
}

.hero-slide {
  position: relative;
}

.hero-slide__image {
  display: block;
  width: 100%;
  height: 100%;
}

.hero-slide__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-slide::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    linear-gradient(
      90deg,
      rgba(0, 18, 39, 0.92) 0%,
      rgba(0, 18, 39, 0.78) 34%,
      rgba(0, 18, 39, 0.28) 64%,
      rgba(0, 18, 39, 0.08) 100%
    );
  pointer-events: none;
}

.hero-content {
  position: absolute;
  inset: 0;
  z-index: 5;
  display: flex;
  align-items: center;
  pointer-events: none;
}

.hero-content__inner {
  width: min(1280px, calc(100% - 48px));
  margin: 0 auto;
  padding-top: 40px;
  color: #fff;
  pointer-events: auto;
}

.hero-title {
  margin: 0;
  color: #fff;
  font-size: clamp(38px, 4.2vw, 64px);
  font-weight: 700;
  line-height: 1.45;
  letter-spacing: 0.08em;
  text-shadow: 0 3px 14px rgba(0, 0, 0, 0.38);
}

.hero-lead {
  margin: 28px 0 0;
  color: #fff;
	font-size: 1.5rem;
  font-weight: 700;
  line-height: 2;
  letter-spacing: 0.04em;
}

.hero-buttons {
  display: flex;
  gap: 28px;
  margin-top: 40px;
}

.hero-button {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  width: 270px;
  min-height: 66px;
  padding: 0 28px;
  color: #fff;
  font-size: 16px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-decoration: none;
  transition: opacity 0.3s ease, transform 0.3s ease;
}

.hero-button:hover {
  opacity: 0.85;
  transform: translateY(-2px);
}

.hero-button span {
  position: relative;
  width: 18px;
  height: 1px;
  background: currentColor;
}

.hero-button span::after {
  content: "";
  position: absolute;
  right: 0;
  top: 50%;
  width: 7px;
  height: 7px;
  border-top: 1px solid currentColor;
  border-right: 1px solid currentColor;
  transform: translateY(-50%) rotate(45deg);
}

.hero-button--primary {
  background: linear-gradient(135deg, #005bbd 0%, #0074d9 100%);
}

.hero-button--outline {
  border: 1px solid rgba(255, 255, 255, 0.65);
  background: rgba(0, 0, 0, 0.18);
}

/* Swiper fade調整 */
.hero-swiper .swiper-slide {
  opacity: 0 !important;
}

.hero-swiper .swiper-slide-active {
  opacity: 1 !important;
}

.hero-swiper .swiper-slide img {
  transform: scale(1.04);
  transition: transform 8s ease;
}

.hero-swiper .swiper-slide-active img {
  transform: scale(1);
}

/* SP */
@media (max-width: 767px) {
  #hero {
    min-height: 640px;
  }

  .hero-swiper,
  .hero-swiper .swiper-wrapper,
  .hero-swiper .swiper-slide,
  .hero-slide {
    height: 640px;
  }

  .hero-slide::before {
    background:
      linear-gradient(
        180deg,
        rgba(0, 18, 39, 0.85) 0%,
        rgba(0, 18, 39, 0.76) 50%,
        rgba(0, 18, 39, 0.92) 100%
      );
  }

  .hero-content {
    align-items: flex-end;
  }

  .hero-content__inner {
    width: calc(100% - 40px);
    padding: 0 0 54px;
  }

  .hero-title {
    font-size: 32px;
    line-height: 1.55;
  }

  .hero-lead {
    margin-top: 20px;
    font-size: 14px;
    line-height: 1.9;
  }

  .hero-lead br {
    display: none;
  }
  .hero-buttons {
    flex-direction: column;
    gap: 14px;
    margin-top: 30px;
  }

  .hero-button {
    width: 100%;
    min-height: 58px;
    font-size: 15px;
  }
}


/* ==============================
  DATA
============================== */

section.home#data {
  position: relative;
  overflow: hidden;
  padding: 100px 0;
	background-color:#f5f6f9
}


.home#data .section-header__title{
	color:#062b61;
}

section.home#data::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(
      90deg,
      rgba(0, 170, 255, 0.08) 0%,
      rgba(0, 170, 255, 0) 45%,
      rgba(0, 170, 255, 0.12) 100%
    );
  pointer-events: none;
}

section.home#data .container {
  position: relative;
  z-index: 2;
  width: min(1200px, calc(100% - 40px));
  margin: 0 auto;
}



section.home#data .data-list {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  margin: 0;
  padding: 0;
  list-style: none;
}

section.home#data .data-card {
  position: relative;
  padding: 0 40px;
  text-align: center;
}

section.home#data .data-card:not(:last-child)::after {
  content: "";
  position: absolute;
  top: 10px;
  right: 0;
  width: 1px;
  height: calc(100% - 20px);
  background:
    linear-gradient(
      180deg,
      rgba(255,255,255,0) 0%,
      rgba(255,255,255,0.18) 20%,
      rgba(255,255,255,0.18) 80%,
      rgba(255,255,255,0) 100%
    );
}

section.home#data .data-card__icon {
  display: flex;
	flex-direction:column;
  justify-content: center;
  align-items: center;
  height: 64px;
  margin-bottom: 26px;
}

section.home#data .data-card__icon img {
  width: 80px;
  height: auto;
  filter:
    brightness(0)
    saturate(100%)
    invert(50%)
    sepia(98%)
    saturate(1998%)
    hue-rotate(182deg)
    brightness(102%)
    contrast(101%);
}

section.home#data .data-card__title {
  margin: 0 0 24px;
  color: #062b61;
  font-size: 20px;
  font-weight: 700;
  line-height: 1.5;
  letter-spacing: 0.06em;
}

section.home#data .data-card__number {
  margin: 0;
  color: #062b61;
  font-size: 1.25rem;
  font-weight: 700;
  line-height: 1;
  letter-spacing: 0.04em;
}

section.home#data .data-card__number span {
  font-size: 2.25rem;
  font-weight: 700;
  line-height: 1;
  letter-spacing: 0;
}

section.home#data .data-card__text {
  margin: 28px 0 0;
  color: #666;
  font-size: 15px;
  font-weight: 500;
  line-height: 1.5;
  letter-spacing: 0.04em;
}

/* ==============================
  SP
============================== */

@media (max-width: 980px) {

  section.home#data {
    padding: 70px 0;
  }

  section.home#data .section-header {
    margin-bottom: 44px;
  }

  section.home#data .data-list {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  section.home#data .data-card {
    padding: 0;
  }

  section.home#data .data-card:not(:last-child)::after {
    top: auto;
    right: auto;
    bottom: -20px;
    left: 50%;
    width: 120px;
    height: 1px;
    transform: translateX(-50%);
  }

  section.home#data .data-card__icon {
    margin-bottom: 20px;
  }

  section.home#data .data-card__title {
    margin-bottom: 18px;
    font-size: 18px;
  }

  section.home#data .data-card__number {
    font-size: 20px;
  }

  section.home#data .data-card__number span {
    font-size: 56px;
  }

  section.home#data .data-card__text {
    margin-top: 20px;
    font-size: 14px;
    line-height: 1.9;
  }

}


/* ------------------------------------------------------------
 * Service
 * ------------------------------------------------------------ */

.home#service {
  padding: 80px 0;
  background: #f7f8fa;
}

.home#service .section-header__title{
	color:#062b61;
}

.service__inner {
  width: min(1280px, calc(100% - 40px));
  margin: 0 auto;
}

.service__header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 32px;
}

.section__label {
  margin: 0 0 10px;
  color: #009fe8;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.12em;
}

.section__title {
  margin: 0;
  color: #111;
  font-size: 32px;
  font-weight: 800;
  line-height: 1.3;
}

.service__more {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: #009fe8;
  font-size: 14px;
  font-weight: 700;
  text-decoration: none;
}

.service__list {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 0.5rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.service__list .service__item{
	position:relative;
}

.service__list .service__item::after{
	content:'';
	display:block;
	position:absolute;
	width:1px;
	height:66%;
	background-color:#ccc;
	top:50%;
	right:-0.25rem;
	transform:translate(0, -50%)

}

.service__list .service__item:last-child::after{
	content:none;
	display:none;
}

.service__card {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  min-height: 260px;
  padding: 1rem;
  color: #fff;
  text-align: center;
  text-decoration: none;
  overflow: hidden;
}

.service__card::before {
  content: "";
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.service__card:hover::before {
  opacity: 1;
}

.service__icon {
  position: relative;
  z-index: 1;
  display: grid;
  place-items: center;
  min-height: 54px;
  margin-bottom: 24px;
  color: #00aeef;
  font-size: 38px;
  font-weight: 700;
  line-height: 1;
}

.service__name {
  position: relative;
  z-index: 1;
  margin: 0 0 18px;
  font-size: 1rem;
  font-weight: 800;
  line-height: 1.4;
color:#062b61;
}

.service__text {
  position: relative;
  z-index: 1;
  margin: 0;
  font-size: 0.85rem;
  font-weight: 500;
  line-height: 1.6;
	color:#555;
}

.service__arrow {
  position: relative;
  z-index: 1;
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  margin-top: auto;
  border: 1px solid rgba(255, 255, 255, 0.8);
  border-radius: 50%;
  font-size: 16px;
  transition: background 0.3s ease, color 0.3s ease;
}

.service__card:hover .service__arrow {
  color: #111;
  background: #fff;
}

@media (max-width: 980px) {
  .service__list {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 640px) {
  .home#service {
    padding: 56px 0;
  }

  .service__header {
    display: block;
  }

  .service__more {
    margin-top: 18px;
  }

  .service__list {
    grid-template-columns: repeat(2, 1fr);
  }

  .service__card {
    min-height: 230px;
    padding: 28px 14px 22px;
  }
}


/* ------------------------------------------------------------
 * Reason
 * ------------------------------------------------------------ */

.home#reason {
  position: relative;
  padding: 90px 0;
  overflow: hidden;

  background:
    linear-gradient(
      135deg,
      rgba(0, 12, 45, 0.78) 0%,
      rgba(0, 45, 120, 0.72) 45%,
      rgba(0, 95, 210, 0.66) 100%
    ),
    url("/wp-content/themes/ask/assets/images/home/reason__bg.webp")
    center center / cover no-repeat;
}
.home#reason::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(
      120deg,
      rgba(255,255,255,0.18) 0%,
      rgba(255,255,255,0.04) 30%,
      rgba(255,255,255,0) 60%
    );
  transform: skewX(-30deg);
  transform-origin: top;
}

.home#reason::after {
  content: "";
  position: absolute;
  top: -20%;
  right: -10%;
  width: 700px;
  height: 700px;
  background: radial-gradient(
    circle,
    rgba(255,255,255,0.18) 0%,
    rgba(255,255,255,0) 70%
  );
}

.reason__inner {
  position: relative;
  z-index: 1;
  width: min(1280px, calc(100% - 40px));
  margin: 0 auto;
}

.reason__header {
  margin-bottom: 56px;
}

.section__label {
  margin: 0 0 10px;
  color: rgba(255,255,255,0.75);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.14em;
}

.section__title {
  margin: 0;
  color: #fff;
  font-size: 42px;
  font-weight: 800;
  line-height: 1.3;
}

.reason__list {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  margin: 0;
  padding: 0;
  list-style: none;
}

.reason__item {
  position: relative;
  padding: 0 40px;
  text-align: center;
}

.reason__item:not(:last-child)::after {
  content: "";
  position: absolute;
  top: 10px;
  right: 0;
  width: 1px;
  height: 220px;
  background: rgba(255,255,255,0.25);
}

.reason__icon {
  display: grid;
  place-items: center;
  min-height: 90px;
  margin-bottom: 26px;
  color: #fff;
  font-size: 64px;
  font-weight: 200;
  line-height: 1;
}

.reason__icon span {
  font-size: 72px;
  font-weight: 200;
  letter-spacing: -0.03em;
}

.reason__title {
  margin: 0 0 18px;
  color: #fff;
  font-size: 28px;
  font-weight: 700;
  line-height: 1.5;
}

.reason__text {
  margin: 0;
  color: rgba(255,255,255,0.9);
  font-size: 15px;
  font-weight: 500;
  line-height: 2;
}

@media (max-width: 980px) {

  .home#reason {
    padding: 70px 0;
  }

  .section__title {
    font-size: 34px;
  }

  .reason__list {
    grid-template-columns: repeat(2, 1fr);
    gap: 50px 0;
  }

  .reason__item:nth-child(2)::after {
    display: none;
  }
}

@media (max-width: 640px) {

  .home#reason {
    padding: 56px 0;
  }

  .section__title {
    font-size: 28px;
  }

  .reason__list {
    grid-template-columns: 1fr;
    gap: 56px;
  }

  .reason__item {
    padding: 0;
  }

  .reason__item::after {
    display: none;
  }

  .reason__icon {
    min-height: auto;
    margin-bottom: 20px;
    font-size: 54px;
  }

  .reason__icon span {
    font-size: 58px;
  }

  .reason__title {
    font-size: 24px;
  }
}



/* ------------------------------------------------------------
 * Flow
 * ------------------------------------------------------------ */
.home#flow {
  padding: 48px 0 54px;
  background: linear-gradient(90deg, #002b62 0%, #003b82 50%, #002f6f 100%);
}

.flow__inner {
  width: min(1280px, calc(100% - 48px));
  margin: 0 auto;
}

.flow__header {
  margin-bottom: 34px;
  text-align: center;
  color: #fff;
}

.flow__title {
  margin: 0;
  font-size: 28px;
  font-weight: 700;
  letter-spacing: 0.04em;
}

.flow__lead {
  display: inline-block;
  margin: 0 0 0 14px;
  font-size: 15px;
  font-weight: 600;
}

.flow__list {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  margin: 0;
  padding: 0;
  list-style: none;
}

.flow__item {
  position: relative;
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  padding: 0 1.25rem;
  color: #fff;
}

.flow__item:not(:last-child)::after {
  content: "";
  position: absolute;
  top: 34px;
  right: -9px;
  width: 18px;
  height: 18px;
  border-top: 2px solid rgba(255,255,255,0.65);
  border-right: 2px solid rgba(255,255,255,0.65);
  transform: rotate(45deg);
}



.flow__icon {
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  color: #fff;
  font-size: 18px;
  font-weight: 700;
  line-height: 1;
  border-radius: 50%;
  background: #0d66bd;
}

.flow__body h3 {
  margin: 0 0 14px;
  font-size: 17px;
  font-weight: 700;
  line-height: 1.55;
}

.flow__body h3 span {
  font-size: 13px;
}

.flow__body p {
  margin: 0;
  color: rgba(255,255,255,0.86);
  font-size: 13px;
  font-weight: 500;
  line-height: 1.5;
}

@media (max-width: 980px) {
  .flow__list {
    grid-template-columns: 1fr;
    gap: 28px;
  }

  .flow__item {
    padding: 0 0 28px;
  }

  .flow__item:not(:first-child)::before {
    display: none;
  }

  .flow__item:not(:last-child)::after {
    top: auto;
    right: auto;
    bottom: 0;
    left: 21px;
    transform: rotate(135deg);
  }
}

@media (max-width: 640px) {
  .home#flow {
    padding: 42px 0;
  }

  .flow__inner {
    width: min(100% - 32px, 1280px);
  }

  .flow__title {
    font-size: 23px;
  }

  .flow__lead {
    display: block;
    margin: 8px 0 0;
    font-size: 13px;
  }
}

/* ------------------------------------------------------------
 * News
 * ------------------------------------------------------------ */

.home#news {
  padding: 34px 0;
  background: #fff;
}

.news__inner {
  display: grid;
  grid-template-columns: 150px 1fr;
  gap: 36px;
  width: min(1280px, calc(100% - 48px));
  margin: 0 auto;
}

.news__title {
  margin: 0;
  padding-top: 8px;
  color: #003b82;
  font-size: 26px;
  font-weight: 700;
  line-height: 1.4;
}

.news__body {
  position: relative;
  padding-left: 40px;
  border-left: 1px solid #cfd7e2;
}

.news__list {
  margin: 0;
  padding: 0;
  list-style: none;
}

.news__item {
  border-bottom: 1px solid #e2e7ee;
}

.news__link {
  display: grid;
  grid-template-columns: 120px 1fr;
  gap: 24px;
  padding: 12px 0;
  color: #1b2d45;
  font-size: 14px;
  text-decoration: none;
}

.news__date {
  color: #5d6b7c;
  font-size: 13px;
}

.news__text {
  line-height: 1.7;
}

.news__more {
  margin-top: 12px;
  text-align: right;
}

.news__more a {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  color: #003b82;
  font-size: 14px;
  font-weight: 700;
  text-decoration: none;
}

@media (max-width: 768px) {

  .news__inner {
    display: block;
  }

  .news__title {
    margin-bottom: 18px;
  }

  .news__body {
    padding-left: 0;
    border-left: 0;
  }

  .news__link {
    grid-template-columns: 1fr;
    gap: 4px;
  }
}





/* ------------------------------------------------------------
 * 導入事例
 * ------------------------------------------------------------ */

section.home#case {
  padding: 80px 0;
  background: #fff;
}

.home#case .section-header__title{
	color:#062b61;
}

.case__inner {
  width: min(1280px, calc(100% - 40px));
  margin: 0 auto;
}

.case__heading {
  margin-bottom: 36px;
  text-align: center;
}

.case__title {
  margin: 0;
  color: #00346b;
  font-size: 30px;
  font-weight: 700;
  letter-spacing: 0.08em;
}

.case__sub {
  margin: 8px 0 0;
  color: #00346b;
  font-size: 15px;
  font-weight: 700;
}

.case__list {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  margin: 0;
  padding: 0;
  list-style: none;
border-radius:0.25rem;
}

.case-card {
  display: block;
  height: 100%;
  background: #fff;
  color: inherit;
  text-decoration: none;
  box-shadow: 0 6px 18px rgba(0, 38, 84, 0.12);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.case-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 28px rgba(0, 38, 84, 0.18);
}

.case-card__image {
  aspect-ratio: 4 / 3;
  overflow: hidden;
border-top-right-radius:0.25rem;
border-top-left-radius:0.25rem;
}

.case-card__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.case-card:hover .case-card__image img {
  transform: scale(1.06);
}

.case-card__body {
  padding: 20px 20px 24px;
}

.case-card__title {
  margin: 0 0 12px;
  color: #00346b;
  font-size: 18px;
  font-weight: 700;
  line-height: 1.6;
  text-align: center;
}

.case-card__label {
  display: block;
  width: fit-content;
  margin: 0 auto 16px;
  padding: 5px 18px;
  color: #fff;
  background: #003f86;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 700;
}

.case-card__text {
  margin: 0;
  color: #333;
  font-size: 14px;
  line-height: 1.9;
}

.case-card__more {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-top: 18px;
  color: #003f86;
  font-size: 14px;
  font-weight: 700;
}

.case-card__more::after {
  content: "→";
}

.case__button {
  margin-top: 34px;
  text-align: center;
}

.button--case {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 18px;
  min-width: 320px;
  min-height: 48px;
  border: 1px solid #003f86;
  color: #003f86;
  font-size: 15px;
  font-weight: 700;
  text-decoration: none;
  transition: background 0.3s ease, color 0.3s ease;
}

.button--case:hover {
  background: #003f86;
  color: #fff;
}

.button--case span {
  position: relative;
  width: 18px;
  height: 1px;
  background: currentColor;
}

.button--case span::after {
  content: "";
  position: absolute;
  right: 0;
  top: 50%;
  width: 7px;
  height: 7px;
  border-top: 1px solid currentColor;
  border-right: 1px solid currentColor;
  transform: translateY(-50%) rotate(45deg);
}

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

@media (max-width: 640px) {
  section.home#case {
    padding: 60px 0;
  }

  .case__list {
    grid-template-columns: 1fr;
  }

  .button--case {
    min-width: 100%;
  }
}