@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;
}

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: url(../img/hero_pc.png);
    background-size: cover;
    height: 350px;
}

@media screen and (max-width: 768px) {
    .section-hero {
        background-image: url(../img/hero_sp.png);
        height: 350px;
    }
}

.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: 44px;
    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-m);
}

@media screen and (max-width: 768px) {
    .section-hero .hero-desc {
        font-size: var(--font-size-s);
        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-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;
}

a.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;
    }
}

.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);
}

@media screen and (max-width: 768px) {
    .slider .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;
}

.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%;
    }
}

.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%;
    }
}


.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: 500;
}

@media screen and (max-width: 768px) {
    .card-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;
    }
}

/* セクションごとのローディング状態をカバーするスタイル */
.section-loading-state {
    position: absolute; /* 親要素（section）を基準に配置 */
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(255, 255, 255, 0.9); /* 少し半透明の白背景 */
    display: flex; /* Flexboxでコンテンツを中央に配置 */
    justify-content: center;
    align-items: center;
    flex-direction: column; /* 縦並び */
    z-index: 100; /* セクション内の他のコンテンツの上に表示されるように高いz-indexを設定 */
    font-family: 'Noto Sans JP', sans-serif; /* Noto Sans JP を使用 */
    border-radius: 8px; /* 角を丸くする */
}

/* ローディングスピナーのスタイル */
.section-loading-state .loading-spinner {
    font-size: 3rem; /* スピナーのサイズ */
    color: #333; /* スピナーの色 */
    margin-bottom: 20px; /* エラーメッセージとの間にスペース */
}

/* エラーメッセージのスタイル */
.section-loading-state .error-message {
    font-size: 1.2rem; /* エラーメッセージの文字サイズ */
    color: #333; /* 文字色を黒に近い色に変更 */
    font-weight: bold; /* 太字 */
    text-align: center;
    display: none; /* 最初は非表示 */
    padding: 15px 30px; /* パディング */
    background-color: #e9ecef; /* 薄いグレーの背景に変更 */
    border: 1px solid #dee2e6; /* 枠線を少し濃いグレーに変更 */
    border-radius: 8px; /* 角を丸くする */
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1); /* 影 */
}