/* ==================================

    Index - トップページ
    ・ローディング
    ・トップ画像
    ・アンカーリンク位置ズレ解消

================================== */

/* ==================================

    h - hタグ

================================== */

/*h1 {
    font-family: "mongoose", sans-serif;
    font-weight: 600;
    font-style: normal;
    font-style: italic;
    color: #FFFFFF;
    font-size: 8.0rem;
    line-height: 1.0;
}*/

h2 {
    text-align: left;
    font-size: 3.2rem;
    font-weight: bold;
    margin-top: 24px;
    margin-bottom: 24px;
}

h3 {
    text-align: center;
    font-size: 5.0rem;
    font-weight: bold;
    margin-bottom: 32px;
}

h4 {
    text-align: left;
    font-size: 2.4rem;
    font-weight: bold;
    margin-bottom: 32px;
    color: #FFFFFF;
}

h5 {
    text-align: left;
    font-size: 2.4rem;
    font-weight: bold;
    margin-bottom: 32px;
}

/*
.under_h {
    display: block;
    text-align: center;
    font-size: 1.4rem;
    padding-bottom: 64px;
}*/

section {
    margin: 0 auto 128px;
}



/* ==================================

    About Us - わたしたちについて

================================== */

.scroll-wrap {
    width: 100%;
    height: 50vh; /* 枠いっぱい（好きに変更可） */
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.scroll-row {
    display: flex;
    width: max-content;
    animation: scroll-left 50s linear infinite;
}

.scroll-row.reverse {
    animation: scroll-right 50s linear infinite;
}

.scroll-row img {
    width: 35vw;  /* 横幅を4枚で画面幅いっぱいに調整 */
    height: 40vh; /* 2行分にする */
    object-fit: cover;
}

@media (max-width: 1024px) {

    .scroll-wrap {
        height: auto;
    }

    .scroll-row img {
        width: 25vw;  /* 横幅を4枚で画面幅いっぱいに調整 */
        height: 15vh; /* 2行分にする */
        object-fit: cover;
    }

}

/* 左方向スクロール */
@keyframes scroll-left {
    from { transform: translateX(0); }
    to { transform: translateX(-50%); }
}

/* 右方向スクロール（交互で動きにリズム） */
@keyframes scroll-right {
    from { transform: translateX(-50%); }
    to { transform: translateX(0); }
}

.half-box {
    display: flex;
    width: 100%;
    height: 425px; /* 高さはお好みで */
    margin-top: 80px;
}

/* 左半分：テキスト */
.text-area {
    flex: 0 0 60%;
    display: flex;
    flex-direction: column;
    justify-content: center; /* 縦中央 */
    align-items: center;      /* 横中央 */
    background-color: #fff8d4;
    text-align: center;
}

/* 右半分：画像 */
.image-area {
    flex: 0 0 40%;
    overflow: hidden;
}

.image-area img {
    width: 100%;
    height: 100%;
    object-fit: cover; /* 枠いっぱいにトリミング */
}

.aboutus-left-box {
    width: 60%;
    padding: 48px 0;
    font-size: 2.0rem;
}

.aboutus-left-box h2 {
    text-align: center;
    font-size: 3.0rem;
    font-weight: bold;
    margin-top: 24px;
    margin-bottom: 24px;
    letter-spacing: 0.2em;
}

.aboutus-right-box {
    width: 40%;
}

@media (max-width: 1024px) {

    .half-box {
        display: block;       /* ← flex を解除して縦積みへ */
        height: auto;         /* ← 高さ固定を解除 */
        margin-top: 0;     /* お好みで調整 */
    }

    .text-area {
        width: 100%;          /* full width */
        padding: 40px 0;      /* 少し余白多めに */
        align-items: center;
    }

    .image-area {
        width: 100%;
        height: auto;         /* 親の高さ制御しない */
    }

    .image-area img {
        width: 100%;
        height: auto;
        object-fit: contain;  /* 切れ防止（cover → contain に変更） */
    }

    .aboutus-left-box {
        width: calc(100% - 24px);           /* 少し広めにして読みやすく */
        margin: 0 auto;
        font-size: 1.6rem;
    }

}


/* リンクボタン */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: space-between; /* テキストと矢印を左右に配置 */
    padding: 12px 20px;
    background-color: #FFFFFF;
    border-radius: 24px; /* 四方角丸 */
    color: #2C497F;
    text-decoration: none;
    font-weight: 600;
    box-shadow: 0 2px 6px rgba(0,0,0,0.1);
    transition: background 0.4s, transform 0.4s;
}

.btn .arrow {
    margin-left: 10px;
    font-weight: bold;
    transition: transform 0.4s;
}

.btn:hover {
    background-color: #D3B680;
    color: #FFFFFF;
    transform: translateY(-2px);
}

.btn:hover .arrow {
    transform: translateX(4px);
}



/* ==================================

    Service - サービスについて

================================== */

.marquee {
    overflow: hidden;          /* はみ出した部分を隠す */
    white-space: nowrap;       /* 改行せず横に並べる */
    box-sizing: border-box;
    width: 100%;               /* 横幅いっぱい */
}

.marquee p {
    font-size: 20.0rem;
    line-height: 1.5;
    font-weight: bold;
    color: #e8e3dd;
    opacity: 0.3;
    display: inline-block;
    padding-left: 10%;        /* 右端から出現させる */
    animation: scroll-text 50s linear infinite;
    margin: 0;
}

/* アニメーション */
@keyframes scroll-text {
    0% {
        transform: translateX(0);
    }
    100% {
        transform: translateX(-100%);
    }
}

.service-box {
    flex: 1;                        /* 残りの70%を占有 */
    background-color: #e8e3dd;      /* 背景色 */
    border-top-left-radius: 120px;   /* 左上だけ角丸 */
    min-height: 400px;
    position: relative;
    padding: 32px 0;
}

.service-box .btn {
    display: block;
}

.service-inner-box {
    width: 1200px;
    margin: 48px auto;
    text-align: center;
}

.service-inner-box p {
    font-size: 2.0rem;
}

.service-icon-box {
    margin: 16px 16px 0 16px;
}

.service-icon-box i {
    font-size: 5.0rem;
    text-align: center;
    display: block;
}

.service-icon-box p {
    padding: 8px 0;
}

.service-icon-bus i {
    font-size: 5.0rem;
    text-align: center;
    display: block;
}

.triangle-wrap {
    text-align: right;
}

.triangle-circle {
    display: block;
    width: 20px;               /* 円の幅 */
    height: 20px;              /* 円の高さ */
    background-color: #ef7d00;    /* 円の背景色 */
    border-radius: 50%;        /* 円にする */
    position: relative;
    margin: 0 0 0 auto;
}

/* 右向き三角を中央に配置 */
.triangle-circle::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);

    width: 0;
    height: 0;
    border-top: 4px solid transparent;   /* 三角の上辺 */
    border-bottom: 4px solid transparent;/* 三角の下辺 */
    border-left: 8px solid #fff;        /* 三角の右向き部分（色は白） */
}

.icon-bus i {
    color: #ef7d00;
}

.icon-bus .triangle-circle {
    background-color: #ef7d00;
}

.icon-book i {
    color: #236d0b;
}

.icon-book .triangle-circle {
    background-color: #236d0b;
}

.icon-trip i {
    color: #ff0049;
}

.icon-trip .triangle-circle {
    background-color: #ff0049;
}

.icon-bus p:before,
.icon-bus p:after,
.icon-book p:before,
.icon-book p:after {
    content: "　";
}

.service-img-box {
    width: 200px;
    position: absolute;
    bottom: -30px;
    right: 100px;
}

.service-box .btn {
    display: inline-flex;
    align-items: center;
    justify-content: space-between; /* テキストと矢印を左右に配置 */
    padding: 18px 18px;
    background-color: #FFFFFF;
    border-radius: 24px; /* 四方角丸 */
    color: #2C497F;
    text-decoration: none;
    font-weight: 600;
    box-shadow: 0 2px 6px rgba(0,0,0,0.1);
    transition: background 0.4s, transform 0.4s;
}

@media (max-width: 1024px) {

    /* 全体の箱をやわらかく */
    .service-box {
        border-top-left-radius: 80px;  /* 角丸を少し控えめに */
        padding: 40px 20px;
        min-height: auto;              /* 高さ固定を外す */
    }

    /* 中身の幅を100%に */
    .service-inner-box {
        width: 100%;
        max-width: 90%;
        margin: 32px auto;
        text-align: left;
    }

    /* 大きな見出しの余白調整 */
    .service-inner-box h3 {
        font-size: 2.8rem;
        margin-bottom: 16px;
    }

    .service-inner-box p {
        font-size: 1.8rem;
        line-height: 1.7;
    }


    /* アイコンボックス → 横3列はギュウギュウなので2列か縦並び */
    .flex-center {
        display: flex;
        flex-wrap: wrap;        /* 折り返し */
        justify-content: center;
        gap: 20px 16px;
    }

    .service-icon-box {
        width: 45%;             /* 2列に収まるサイズ感 */
        margin: 0;              /* 既存余白をリセット */
    }

    .service-icon-box i {
        font-size: 4.0rem;      /* ちょい縮める */
    }

    .service-box .btn {
        padding: 16px 16px;
        font-size: 1.6rem;
    }


    /* バス画像（絶対配置）を自然な位置に */
    .service-img-box {
        position: relative;     /* absoluteを解除して自然配置へ */
        width: 200px;
        margin: 40px auto 0;   /* 中央に置く */
        bottom: auto;
        right: auto;
    }

    .service-img-box img {
        width: 100%;
        height: auto;
    }

    /* marqueeの調整（フォントサイズ少し抑える） */
    .marquee p {
        font-size: 12rem;
        padding-left: 5%;
    }
}

@media (max-width: 768px) {
    .service-box .flex-center {
        flex-direction: column;
        gap: 20px; /* 各リンクの間隔 */
    }

    .service-icon-box {
        width: 100%;
        max-width: 320px; /* 横に広がりすぎ防止 */
        margin: 0 auto;
    }
}


/* ==================================

    Safety - 安全への取り組み

================================== */

.safety-box {
    flex: 1;                        /* 残りの70%を占有 */
    background-color: #2c497f;      /* 背景色 */
    border-top-left-radius: 120px;   /* 左上だけ角丸 */
    min-height: 400px;
    position: relative;
    padding: 32px 0;
}

.safety-inner-box {
    width: 1200px;
    margin: 48px auto;
    color: #FFFFFF;
}

.safety-title {
    font-size: 6.0rem;
    font-weight: 900;
    line-height: 1.2;
}

.safety-text-box {
    text-align: center;
    position: relative;
}

.safety-img-box {
    width: 800px;
    position: absolute;
    top: -400px;
    right: 0;
}

.between-img-box {
    width: 500px;
    margin: 120px 0 120px 64px;
}

.safety-btn {
    position: absolute;
    bottom: -100px;
    right: 20px;
}

.safety-abs-img-box {
    width: 200px;
    position: absolute;
    bottom: -170px;
    left: 20px;
}

@media (max-width: 1024px) {

    /* 安全性BOXの角丸とパディングを少し調整 */
    .safety-box {
        border-top-left-radius: 80px;
        padding: 40px 20px;
        min-height: auto; /* 高さ固定解除 */
    }

    /* 中央幅を調整 */
    .safety-inner-box {
        width: 100%;
        max-width: 90%;
        margin: 0 auto;
        text-align: center; /* 中央揃え */
        padding-top: 20px;
    }

    .safety-inner-box h4 {
        text-align: center;
    }
    
    /* タイトルフォントサイズを少し縮小 */
    .safety-title {
        font-size: 4.0rem;
    }

    /* 画像は絶対配置をやめて自然に */
    .safety-img-box {
        position: relative;
        width: 100%;
        max-width: 600px;
        margin: 0 auto 24px auto; /* 上に余白、中央寄せ */
        top: auto;
        right: auto;
    }

    .safety-img-box img {
        width: 100%;
        height: auto;
    }

    /* ボタンはテキストの下に自然配置 */
    .safety-btn {
        position: relative;
        bottom: auto;
        right: auto;
        margin-top: 24px;
        text-align: center;
    }

    /* 認定証の丸画像も自然配置に */
    .safety-abs-img-box {
        position: relative;
        width: 150px;
        margin: 24px auto 0 auto;
        bottom: auto;
        left: auto;
    }

    .safety-abs-img-box img {
        width: 100%;
        height: auto;
    }

    /* 本文のテキスト行間調整 */
    .safety-text-box p {
        font-size: 1.8rem;
        line-height: 1.7;
    }

    .between-img-box {
        width: 200px;
        margin: 0 auto 64px;
    }

}


/* ==================================

    News - お知らせ

================================== */

section#news {
    margin-top: -128px;
}

.news-box {
    background-color: #eaeaea;
    padding: 64px 0;
}

.news-inner-box {
    width: 1200px;
    margin: 48px auto;
}

.news-inner-box img {
    width: 200px;
}

.news-title {
    font-size: 6.0rem;
    font-weight: 900;
    line-height: 1.2;
}

@media (max-width: 1024px) {

    .news-inner-box .flex-start {
        display: block;
    }

    .news-inner-box {
        width: calc(100% - 24px);
        margin: 48px auto;
    }

    .news-inner-box img {
        width: 200px;
        margin: 64px auto;
    }

    .news-title {
        text-align: center;
    }

    .news-inner-box h5 {
        text-align: center;
    }

}

.news-text-box {
    margin: 0 auto;
    text-align: center;
}

.news-list {
    list-style: none;
    padding: 0;
    margin: 0;
    background: none;
}

.news-list li {
    display: flex;
    align-items: center;
    background: #fff;
    border-radius: 12px 0 0 0; /* 左上だけ角丸 */
    padding: 16px 24px;
    margin-bottom: 12px;
    box-shadow: 0 2px 6px rgba(0,0,0,0.05);
}

.news-list .date {
    font-size: 14px;
    margin-right: 12px;
    white-space: nowrap;
}

.news-list .tag {
    font-size: 1.4rem;
    color: #fff;
    background: #2c497f;
    padding: 2px 24px;
    border-radius: 24px;
    margin-right: 12px;
}

.news-list .title {
    flex: 1;
    text-align: left;
    margin-right: 48px;
}

.news-list .arrow {
    display: flex;
    align-items: center;
    justify-content: center;
    background: #2c497f;
    color: #fff;
    text-decoration: none;
    font-weight: bold;
    border-radius: 50%;
    width: 28px;
    height: 28px;
}

.news-list .arrow:hover {
    background-color: #D3B680;
    transform: translateX(4px); /* 右に移動 */
}


@media (max-width: 768px) {

    /* li を完全に縦 */
    .news-list li {
        display: block;
        padding: 16px;
    }

    /* 日付：1行 */
    .news-list .date {
        display: block;
        font-size: 1.2rem;
        margin-bottom: 4px;
        white-space: normal; /* 念のため */
    }

    /* タイトル：1行（複数行OK） */
    .news-list .title {
        display: block;
        flex: none;          /* ← これ重要 */
        margin: 6px 0 12px;
        font-size: 1.6rem;
        line-height: 1.6;
        text-align: left;
    }

    .news-list .arrow {
        display: inline-flex;              /* 丸を維持 */
        justify-content: center;
        align-items: center;

        background: #2c497f;
        color: #fff;
        font-weight: bold;
        border-radius: 50%;
        width: 28px;
        height: 28px;
        margin-left: auto;                 /* 右寄せ */
    }

    /* →を右に寄せるためのラッパー役 */
    .news-list li {
        display: flex;
        flex-direction: column;            /* 縦並び */
        align-items: flex-start;
    }

}



