@import url("https://fonts.googleapis.com/css?family=Noto+Sans+JP:300,700,400");

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: 'Noto Sans JP', sans-serif;
    line-height: 1.6;
}

/* ヘッダー */
.site-header {
  position: fixed;
  top: 0;
  width: 100%;
  background: #ffffff;
  border-bottom: 1px solid #e0e0e0;
  z-index: 1000;
}

.header-inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 20px;
  height: 70px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo img {
  height: 50px;
}

.logo2 {
  display: flex;
  justify-content: center;
  align-items: center;
}

.logo2 img {
  height: 30px;
}

.global-nav ul {
  display: flex;
  list-style: none;
  margin: 0;
  padding: 0;
}

.global-nav li {
  margin-left: 30px;
}

.global-nav a {
  text-decoration: none;
  color: #333;
  font-size: 14px;
  font-weight: 600;
  line-height: 70px;
}

.nav-toggle {
  display: none; /* モバイル時には表示 */
  flex-direction: column;
  justify-content: space-between;
  width: 24px;
  height: 18px;
  background: none;
  border: none;
  cursor: pointer;
}

.nav-toggle span {
  display: block;
  width: 100%;
  height: 2px;
  background: #333;
}

/* モバイル対応例 */
@media screen and (max-width: 768px) {
  .nav-toggle {
    display: flex;
  }
  .global-nav {
    display: none;
    position: absolute;
    top: 70px;
    left: 0;
    width: 100%;
    background: #fff;
  }
  .global-nav.open {
    display: block;
  }
  .global-nav ul {
    flex-direction: column;
  }
  .global-nav li {
    margin: 0;
  }
  .global-nav a {
    display: block;
    padding: 15px 20px;
    line-height: normal;
  }
}
/* ヘッダー */

.fas_button_round{
	border: none;
	padding: 0.5em 1em;
	height: 40px;
    width: 150px;
    margin-top: 20px;
	line-height: 1;
	background: var(--darkblue);
	color: var(--white);
	border-radius: 20px;
	font-size: var(--font-size-s);
    font-weight: 400;
	cursor: pointer;
    display: inline-block;
    white-space: nowrap;
}

@media screen and (max-width: 768px) {
    .fas_button_round {
       font-size: var(--font-size-xs);
    }
}

section {
    padding: 64px 0;
    border-top: 1px solid var(--lightgray2);
}

@media screen and (max-width: 768px) {
    section {
        padding: 32px 0 0 0;
    }
}

h2 {
    font-size: var(--font-size-l);
    font-weight: 500;
    color: var(--black);
    border-left: 5px solid var(--blue);
    padding-left: 16px;
}

h2.with-icon {
    border-left: none;
    padding-left: none;
    font-size: var(--font-size-ll);
    padding-left: 0%;
}

@media screen and (max-width: 768px) {
    h2.with-icon {
        font-size: var(--font-size-l);
    }
}

h2.with-icon i {
    margin-right: 8px;
    color: var(--blue);
}

a {
    text-decoration: none;
    color: var(--darkblue);
}

li {
    list-style: none;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
}

@media screen and (max-width: 768px) {
    .container {
        padding: 0 16px;
    }
}

.section-hero {
    display: flex;
    background-image: linear-gradient(rgba(0, 0, 0, 0.4), rgba(0, 0, 0, 0.4)), url(../img/hero_pc_rdp2.jpg);
    background-size: cover;
    height: 500px;
}

@media screen and (max-width: 768px) {
    .section-hero {
        padding-top: 100px;
        background-image: url(../img/hero_sp.png);
        height: 300px;
    }
}

.section-hero .container {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 16px;
    width: 100%;
}

@media screen and (max-width: 768px) {
    .section-hero .container {
        display: flex;
        flex-direction: column;
        gap: 16px;
        padding: 0 16px 32px 16px;
    }
}

.section-hero .hero-title {
    color: var(--white);
    font-size: 54px;
    padding-left: 16px;
    border-left: 5px solid var(--white);
}

@media screen and (max-width: 768px) {
    .section-hero .hero-title {
        color: var(--white);
        font-size: 32px
    }
}

.section-hero .hero-desc {
    color: var(--white);
    font-size: var(--font-size-l);
}

@media screen and (max-width: 768px) {
    .section-hero .hero-desc {
        font-size: var(--font-size-s);
        font-weight: 400;
    }
}

.section-hero .hero-subdesc {
    color: var(--white);
    font-size: var(--font-size-s);
}

@media screen and (max-width: 768px) {
    .section-hero .hero-subdesc {
        font-size: var(--font-size-xs);
        font-weight: 400;
    }
}

.section-card .container {
    display: flex;
    flex-direction: column;
    gap: 32px;
}

@media screen and (max-width: 768px) {
    .section-card .container {
        gap: 16px;
    }
}

.grid.grid-4 {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
    width: 100%;
}

@media screen and (max-width: 768px) {
    .grid.grid-4 {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 24px;
        width: 100%;
    }
}

.grid.grid-3 {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    width: 100%;
}

@media screen and (max-width: 768px) {
    .grid.grid-3 {
        display: grid;
        grid-template-columns: repeat(1, 1fr);
        gap: 24px;
        width: 100%;
    }
}

.grid.grid-2 {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
    width: 100%;
}

@media screen and (max-width: 768px) {
    .grid.grid-2 {
        display: grid;
        grid-template-columns: repeat(1, 1fr);
        gap: 24px;
        width: 100%;
    }
}

.grid.grid-1 {
    display: grid;
    grid-template-columns: repeat(1, 1fr);
    gap: 24px;
    width: 100%;
}

.card {
    display: flex;
    width: 100%;
    flex-direction: column;
}

.case-card {
    display: flex;
    width: 100%;
    flex-direction: column;
}

a.card:hover {
    opacity: 0.5;
}

a.case-card:hover {
    opacity: 0.5;
}

.grid.grid-1 .card , .grid.grid-2 .card {
    flex-direction: row;
}

@media screen and (max-width: 768px) {
    .grid.grid-1 .card, .grid.grid-2 .card {
        flex-direction: column;
    }
}

.grid.grid-1 .case-card , .grid.grid-2 .case-card {
    flex-direction: row;
}

@media screen and (max-width: 768px) {
    .grid.grid-1 .case-card, .grid.grid-2 .case-card {
        flex-direction: column;
    }
}

.slider-wrapper {
    overflow: hidden; /* スライダー外を隠す */
    width: 100%; /* 親要素の幅を設定 */
    position: relative;
}

.slider {
    display: flex;
    flex-direction: row;
    transition: transform 0.5s ease-in-out; /* アニメーション */
}

.slider .card {
    display: flex;
    flex-direction: row;
    flex: 0 0 100%;
    clip-path: inset(0 0 0 0);
}

.slider .case-card {
    display: flex;
    flex-direction: row;
    flex: 0 0 100%;
    clip-path: inset(0 0 0 0);
}

@media screen and (max-width: 768px) {
    .slider .card  {
        flex: none;
        width: 100%;
        flex-direction: column;
    }

    .slider .case-card  {
        flex: none;
        width: 100%;
        flex-direction: column;
    }
}

.slider-button {
    display: flex;
    gap: 8px;
}

@media screen and (min-width: 769px) {
    .slider-button-sp  {
        display: none;
    }

    .slider-button-pc  {
        display: flex;
    }
}

@media screen and (max-width: 768px) {
    .slider-button-sp  {
        display: flex;
        justify-content: center;
        padding: 0 0 32px 0;
    }

    .slider-button-pc  {
        display: none;
    }
}


.slider-button .prev, .slider-button .next {
    display: flex;
    width: 48px;
    height: 48px;
    background: var(--darkblue);
    color: var(--white);
    justify-content: center;
    align-items: center;
}

.card-smn img {
    width: 100%;
    height: 237px;
    object-fit: cover;
}

.card-smnp img {
    margin: auto;
    display: block;
    width: 80%;
    height: 237px;
    object-fit: cover;
}

.card-val img {
    width: 237px;
    height: 100%;
    margin: auto;
    display: block;
}

.card-data img {
    width: 100%;
    height: 150px;
    object-fit: contain;
}

.grid.grid-1 .card .card-smn img, .grid.grid-2 .card .card-smn img {
    width: 200px;
    height: 100%;
    object-fit: cover;
}

@media screen and (max-width: 768px) {
    .grid.grid-1 .card .card-smn img, .grid.grid-2 .card .card-smn img {
        width: 100%;
    }
}

.grid.grid-1 .case-card .card-smn img, .grid.grid-2 .case-card .card-smn img {
    width: 200px;
    height: 100%;
    object-fit: cover;
}

@media screen and (max-width: 768px) {
    .grid.grid-1 .case-card .card-smn img, .grid.grid-2 .case-card .card-smn img {
        width: 100%;
    }
}

.slider .card .card-smn img {
    max-height: 301px;
    width: auto;
}

@media screen and (max-width: 768px) {
    .slider .card .card-smn img {
        max-height: 301px;
        width: 100%;
    }
}

.slider .case-card .card-smn img {
    max-height: 301px;
    width: auto;
}

@media screen and (max-width: 768px) {
    .slider .case-card .card-smn img {
        max-height: 301px;
        width: 100%;
    }
}


.card-content {
    display: flex;
    flex-direction: column;
    gap: 16px;
    padding: 24px 0 32px 0;
}


@media screen and (max-width: 768px) {
    .card-content  {
        padding: 16px 0 24px 0;
    }
}

.grid.grid-1 .card-content, .grid.grid-2 .card-content, .slider .card-content {
    padding: 0 0 24px 24px;
}

@media screen and (max-width: 768px) {
    .grid.grid-1 .card-content, .grid.grid-2 .card-content, .slider .card-content {
        padding: 16px 0 24px 0;
    }
}

.card-title {
    font-size: var(--font-size-xl);
    color: var(--darkblue);
    font-weight: 700;
}

@media screen and (max-width: 768px) {
    .card-title  {
        font-size: var(--font-size-m);
    }
}

.card-val-title {
    font-size: var(--font-size-xl);
    color: var(--darkblue);
    font-weight: 700;
    text-align: center;
}

@media screen and (max-width: 768px) {
    .card-val-title  {
        font-size: var(--font-size-m);
    }
}

.card-desc {
    display: -webkit-box;
    /* -webkit-line-clamp: 2; */
    -webkit-box-orient: vertical;
    overflow: hidden;
    /* text-overflow: ellipsis; */
    font-size: var(--font-size-m);
    font-weight: 400;
}

@media screen and (max-width: 768px) {
    .card-desc  {
        font-size: var(--font-size-s);
    }
}

.card-link-more {
    display: flex;
    flex-direction: row;
}

@media screen and (max-width: 768px) {
    .card-link-more {
        font-size: var(--font-size-s);
    }
}

.card-link-more p {
    position: relative;
    border-bottom: 1px solid var(--darkblue);
    padding-right: 16px;
    padding-bottom: 4px;
}

.card-link-more .arrow {
    display: block;
    width: 12px;
    border-bottom: 1px solid var(--darkblue);
    transform: rotate(45deg);
    transform-origin: 58% 45%;
}

.company-name {
    color: var(--lightblue);
}

@media screen and (max-width: 768px) {
    .grid {
        grid-template-columns: 1fr;
    }
}

.pict-list {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    gap: 8px;
}

.pict {
    padding: 4px 8px;
    font-size: 14px;
    color: var(--blue);
    background: var(--lightgray);
}

.pict-inverse {
    color: var(--white);
    background: var(--gray);
}

.pict-article {
    display: inline;
    color: var(--white);
    background: var(--orange);
    padding: 4px 12px;
    border-radius: 20px;
}

.pict-article i {
    margin-right: 4px;
}

.section-header {
    display: flex;
    justify-content: space-between;
    padding: 16px 0;
}

.section-link {
    display: flex;
    gap: 8px;
    color: var(--darkblue);
    font-size: var(--font-size-m);
    font-weight: 500;
}

@media screen and (max-width: 768px) {
    .section-link {
        font-size: var(--font-size-s);
    }
}

.carousel {
    padding-top: 32px;
}

.carousel-card {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    background-image: url("../img/noimage.png");
    background-size: cover;
    height: 540px;
    padding: 32px 48px 0 48px;
}

.tag-wrapper {
    display: flex;
    gap: 32px;
    background: var(--lightgray);
    padding: 24px;
}

@media screen and (max-width: 768px) {
    .tag-wrapper {
        flex-direction: column;
        padding: 32px 16px;
    }
}

.tag-group {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.tag-title-wrapper {
    display: flex;
    justify-content: space-between;
    width: 100%;
}

.tag-title {
    font-weight: 500;   
}

.tag-title i {
    color: var(--blue);
    margin-right: 8px;
    font-size: var(--font-size-m);
}

.tag-toggle {
    display: none;
}

@media screen and (max-width: 768px) {
    .tag-toggle {
        display: block;
    }
}

ul.tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

ul.tags a {
    display: block;
    border-radius: 100px;
    padding:  4px 8px;
    border: 1px solid var(--lightgray2);
    background: var(--white);
    font-size: var(--font-size-s);
    color: var(--black);
}

ul.tags a.active {
    background: var(--blue);
    color: var(--white);
}

.tag-clear {
    display: flex;
    white-space: nowrap;
    align-items: end;
    text-decoration: underline;
}

.footer .footer-link-group {
    display: flex;
    flex-direction: column;
    gap: 16px;
    background: var(--lightgray);
    padding: 64px 64px 32px 64px;
}

@media screen and (max-width: 768px) {
    .footer .footer-link-group {
        padding: 64px 16px 32px 16px;
    }
    
}

.footer .footer-link {
    display: flex;
    flex-direction: row;
    gap: 16px;
}

@media screen and (max-width: 768px) {
    .footer .footer-link {
        flex-wrap: wrap;
    }
}

.footer .link-en {
    font-size: var(--font-size-xl);
    color: var(--black);
}

.footer .link-jp {
    font-size: var(--font-size-s);
    color: var(--black);
}

.footer .copyright {
    padding: 24px 64px 22px 64px;
    background: var(--darkblue);
    color: var(--white);
    font-size: var(--font-size-xs);
}

@media screen and (max-width: 768px) {
    .footer .copyright {
        padding: 16px;
    }
}


/* 既存のモーダルCSS */
.modal-overlay {
  display: none;
  position: fixed;
  z-index: 9999;
  inset: 0;
  background-color: rgba(0, 0, 0, 0.6);
  justify-content: center;
  align-items: center;
}

.modal-content {
  background: #fff;
  padding: 30px;
  border-radius: 8px;
  max-width: 980px;
  width: 90%;
  position: relative;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

.modal-close {
  position: absolute;
  top: 10px;
  right: 15px;
  font-size: 20px;
  cursor: pointer;
  border: none;
  background: none;
}

/* モーダル内画像スライダー用CSS */
.modal-image-slider {
  width: 100%;
  height: 300px;
  margin: 0 auto 20px auto;
  overflow: hidden;
  position: relative;
  border-radius: 8px;
  background: #f5f5f5;
}

.modal-slider-container {
  display: flex;
  height: 100%;
  animation: slideFlow 10s linear infinite;
}

.modal-slider-container img {
  height: 100%;
  width: auto;
  object-fit: cover;
  flex-shrink: 0;
  margin-right: 20px;
}

/* 左から右に流れるアニメーション */
@keyframes slideFlow {
  0% {
    transform: translateX(0);
  }
  100% {
    transform: translateX(-100%);
  }
}

/* ホバー時にアニメーション一時停止 */
.modal-image-slider:hover .modal-slider-container {
  animation-play-state: paused;
}

.modal-title {
  font-size: var(--font-size-xl);
  color: var(--darkblue);
  font-weight: 700;
}

@media screen and (max-width: 768px) {
  .modal-title {
    font-size: var(--font-size-m);
  }

  .modal-image-slider {
    height: 200px;
  }
}

.modal-desc {
  margin-top: 15px;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  overflow: hidden;
  font-size: var(--font-size-m);
  font-weight: 400;
}

@media screen and (max-width: 768px) {
  .modal-desc {
    font-size: var(--font-size-s);
  }
}

.modal-company {
  color: var(--lightblue);
}

.card-desc-long {
  display: none;
}

/* 画像スライダー用のスタイル */
.image-slider-wrapper {
  position: relative;
  overflow: hidden;
  width: 237px;
  height: 237px;
}

.image-slider-wrapper .card-smn {
  display: flex;
  height: 100%;
  transition: transform 0.5s ease-in-out;
  /* width と各画像の幅はJavaScriptで動的に設定 */
}

.image-slider-wrapper .card-smn img {
  height: 237px;
  object-fit: cover;
  flex-shrink: 0;
  /* width はJavaScriptで動的に設定 */
}