@charset "UTF-8";

a{
    text-decoration: none;
    color: #ffffff;
}

h2 {
    font-size: 32px;
    border-bottom: solid 10px #1791c8;
    padding-bottom: 10px;
}

h2 small {
    display: block;
    font-size: 18px;
    padding-bottom: 5px;
    color: #1791c8;
}
.News {
    margin-top: 30px;
    padding: 20px;
    background-color: #ffffff;
    border: 1px solid #ddd;
    border-radius: 5px;
}

.News .news-list dt {
    font-weight: bold;
    font-size: 16px;
    margin-top: 15px;
    margin-bottom: 5px;
    color: #1791c8;
}

.News .news-list dd {
    /*margin-left: 20px;*/
    font-size: 14px;
    color: #555;
    line-height: 1.6;
}

.News .news-list dt span,
.News .news-list dd span{
   margin:0px 10px;
}

/* CTA Section */
.cta {
    margin-top: 30px;
}

.cta-container {
    display: flex; 
    flex-wrap: wrap; 
    gap: 20px;
}

.cta-item {
    flex: 1 1 calc(50% - 20px);
    text-align: center;
    padding: 0;
    max-width: 455px;
}

.cta-item h3 {
    margin-top: 10px;
    font-size: 24px;
    background-color: #1791c8;
    color: #ffffff;
    text-align: left;
    padding: 5px 10px;
    position: relative;
    max-width: 455px; /* 画像幅に合わせる */
    margin-left: auto;
    margin-right: auto;
    box-sizing: border-box;
    line-height: 1.5;
}

.cta-item h3 small {
    display: block;
    font-size: 14px;
    color: #ffffff;
}

.cta-item h3:after {
    content: '＞';
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 50px;
    color: #ffffff;
}

.cta-container .cta-item:first-child,
.cta-container .cta-item:nth-child(2) {
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
}

.cta-container .cta-item:first-child h3,
.cta-container .cta-item:nth-child(2) h3 {
    width: 100%; /* 画像幅にピッタリ合わせる */
    margin: 0 auto;
    padding: 5px 10px;
}

 /* 採用情報CTA*/
 .scroll-images {
    flex: 1 1 100%;
    position: relative; /* フッターに重ならないようにする */
    overflow: hidden; /* 画像が外に出ないように隠す */
    margin-bottom: 20px; /* フッターとの余白を追加 */
}


.cta-recruit-heading {
    position: absolute;
    font-size: 24px;
    background-color: #1791c8; /* 青い背景 */
    color: #ffffff;
    padding: 5px 10px;
    width: 100%;
    max-width:455px; /* 画像幅に合わせる */
    box-sizing: border-box;
    line-height: 1.5;
    z-index: 10; /* 上に表示 */
    top: 170px; /* 画像の上部に余白を追加 */
    left: 50%; /* 中央揃え */
}

.cta-recruit-heading small {
    display: block;
    font-size: 14px;
    color: #ffffff;
}

.cta-recruit-heading:after {
    content: '＞'; /* 「＞」マークを追加 */
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 50px;
    color: #ffffff;
}

/* 無限スクロール用 */

.scroll-set{
    position: relative;
}

.scroll-container {
    display: flex;
    width: calc(455px * 6); /* 画像幅 × 画像数 */
    animation: scroll 25s linear infinite; /* アニメーション時間を設定 */
    z-index: 0; /* 背景要素として表示 */
    position: relative; /* フッターに影響しないように調整 */
    max-width: 1000px;
}

/* スクロール部分に重なる文字 */
.recruit-overlay {
    position: absolute;
    font-size: clamp(16px, 4vw, 40px); /* 文字サイズ */
    font-weight: bold;
    color: #ffffff; /* 文字色 */
    white-space: nowrap;  /*文字が改行されないようにする */
    top:30px;
    left:20px;
    z-index: 10; /* 上に表示 */
}

/* 採用情報リンク設定*/
.scroll-link {
    position: relative;
    display: block;
    cursor: pointer; /* マウスカーソルをポインタにする */
    color: inherit; /* テキストカラーを親要素に合わせる */
}

.scroll-link:hover .recruit-overlay {
    text-shadow: 1px 1px 15px rgba(255, 255, 255, 0.9); /* ホバー時の強調 */
}

.scroll-link .scroll-container {
    pointer-events: auto; /* 画像もクリック可能にする */
}

.scroll-link .recruit-overlay {
    pointer-events: none; /* テキストがリンク操作を妨げないようにする */
}

/* アニメーションの定義 */
@keyframes scroll {
    from {
        transform: translateX(0);
    }
    to {
        transform: translateX(calc(-455px * 3)); /* 画像幅 × 3 */
    }
}

/* メディアクエリ */
@media (max-width: 770px) {
     .cta-recruit-heading {
        left: 0;
    }
    .recruit-overlay {
        left:0;
    }
    .scroll-images {
        margin-top: 20px;
    }
    .cta-item:nth-child(2){
        margin-top: 20px;
    }
    
/* CTA Section */
.cta-container {
    flex-direction: column; /* 1列に表示 */
}

.cta-item {
    display: block;
    max-width: 455px;
}

.cta-item{
    width:100%;
}

.cta-item h3 {
    font-size: 16px;
}

.cta-item h3 small {
    font-size: 12px;
}

.recruit-overlay {
    position: absolute;
    top: 30px; /* 画像上部からの距離 */
    left: 0; 
    font-size: clamp(14px, 3.8vw, 40px);
}

.cta-item h3::after {
    font-size: 45px;
}

.cta-recruit-heading {
    font-size: 16px;
}

.cta-recruit-heading small{
    font-size: 12px;
}

.cta-recruit-heading::after{
    font-size: 45px;
}

.cta-container{
    flex-wrap: nowrap;
}

.scroll-container img {
    width: 100%;
}

} 