﻿/* 共通バナー */
.floating-banner {
    position: fixed;
    width: 120px; /* バナーサイズ */
    height: auto;
    z-index: 1000;
    box-shadow: 0 4px 10px rgba(0,0,0,0.2);
    border-radius: 8px;
    transition: transform 0.3s;
}


/* 左下・右下に浮かせたい場合 */
#seminarBanner {
    bottom: 20px;
    right: 20px;
}

#magazineBanner {
    bottom: 160px;
    right: 20px;
}

/* hoverで少し動き */
.floating-banner:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 14px rgba(0,0,0,0.3);
}

/* 画像は丸角に */
.floating-banner img {
    width: 100%;
    height: auto;
    border-radius: 8px;
}
/* 全体のセクション中央揃え */
.sectionInner,
.course-container,
.cardContainerKikaku {
    max-width: 1200px; /* 幅を制限 */
    margin: 0 auto; /* 中央揃え */
    padding: 0 20px; /* 横の余白 */
    text-align: center; /* 中央揃え */
}

/* カードの並び調整 */
.cardContainerKikaku {
    display: flex;
    flex-wrap: wrap;
    justify-content: center; /* 中央揃え */
    gap: 20px;
}

    .cardContainerKikaku .card {
        flex: 0 0 260px; /* カードの幅 */
        box-shadow: 0 4px 10px rgba(0,0,0,0.1);
        border-radius: 8px;
        padding: 15px;
        background: #fff;
        transition: transform 0.3s;
    }

        .cardContainerKikaku .card:hover {
            transform: translateY(-5px);
        }

/* 各セクションの余白 */
.sectionKikaku,
.course-section,
.seminar {
    margin: 40px 0;
}

/* お知らせリスト全体 */
.boxListNew .listNew li {
    display: flex; /* 横並びに */
    align-items: flex-start; /* 上揃え */
    border-bottom: 1px solid #ddd;
    padding: 15px 10px;
    transition: background 0.2s;
}

.boxListNew {
    margin-bottom: 50px; /* 下に余白を確保 */
}

    /* 左側：日付 */
    .boxListNew .listNew li span {
        display: block;
        width: 100px; /* 日付幅固定 */
        font-size: 0.85rem;
        color: #666;
        margin-right: 15px;
        text-align: right;
    }

    /* 右側：カテゴリと本文 */
    .boxListNew .listNew li .listNewInner a {
        text-decoration: none;
        color: inherit;
    }

    .boxListNew .listNew li .listNewInner {
        flex: 1;
        display: flex;
        flex-direction: row; /* ← ここを column → row */
        align-items: center; /* 縦位置を揃える */
        gap: 10px; /* アイコンと本文の間隔 */
    }

    /*.boxListNew .listNew li .color-box {
        display: inline-block;
        padding: 3px 8px;
        border-radius: 6px;
        font-size: 0.75rem;
        margin-bottom: 5px;
        background: #e74c3c; /* メインカラー赤 */
    /*    color: #fff;
        width: fit-content;
    }*/

/* 本文 */
.boxListNew .listNew li p.black {
    margin: 0;
    font-size: 0.95rem;
    line-height: 1.4;
}

    /* Hover時背景色 */
    .boxListNew .listNew li:hover {
        background: #f9f9f9;
    }

/* 「過去のお知らせ」リンク */
.boxListNew > a p {
    text-align: right;
    font-weight: bold;
    color: #e74c3c;
    margin-top: 10px;
    transition: color 0.2s;
}

    .boxListNew > a p:hover {
        color: #c0392b;
    }

/* メインコンテンツの上部確保*/

.sectionKikaku {
    margin-top: 50px; /* 上部余白を50px確保 */
}


/* メインコンテンツ中央寄せ */

.sectionKikaku,
.course-section,
.seminar,
.course-container {
    max-width: 1200px; /* 全体の最大幅 */
    margin: 0 auto; /* 横中央寄せ */
    padding: 20px;
    text-align: center; /* タイトルやテキストを中央 */
}

    /* タイトル調整 */
    .sectionKikaku h2,
    .course-section h2,
    .seminar h2 {
        text-align: center;
        font-size: 2rem;
        margin-bottom: 20px;
    }

    .sectionKikaku h3,
    .course-section h3,
    .seminar h3 {
        text-align: center;
        font-size: 1.2rem;
        line-height: 1.6;
    }

.cardContainerKikaku {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); /* カード幅を指定 */
    gap: 20px;
    margin-top: 30px;
}

    .cardContainerKikaku .card {
        background: #fff;
        border-radius: 8px;
        padding: 15px;
        box-shadow: 0 3px 10px rgba(0,0,0,0.1);
        transition: transform 0.3s, box-shadow 0.3s;
        text-align: center;
    }

        .cardContainerKikaku .card:hover {
            transform: translateY(-5px);
            box-shadow: 0 6px 14px rgba(0,0,0,0.15);
        }

        .cardContainerKikaku .card img {
            width: 100px;
            height: auto;
            margin-bottom: 10px;
        }

        .cardContainerKikaku .card p.black {
            font-weight: bold;
            margin: 5px 0;
        }

.course-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    align-items: center;
    margin: 40px auto;
    max-width: 1200px;
}

    .course-container .course-image img {
        width: 100%;
        height: auto;
        border-radius: 8px;
        box-shadow: 0 3px 10px rgba(0,0,0,0.1);
    }

    .course-container .course-description {
        text-align: center;
    }

/* ヘッダーと統一した赤系ボタン */

.seminar {
    background-image: url('../common/img/activeimage.png');
    background-size: cover; /* 背景画像を縮小せず全体にカバー */
    background-position: center;
    background-repeat: no-repeat;
    padding: 80px 20px; /* 上下に余白 */
    display: flex;
    justify-content: center; /* 横方向中央 */
    align-items: center; /* 縦方向中央 */
    text-align: center;
}

.seminar-inner {
    max-width: 1100px; /* テキストの横幅制限 */
    color: #fff; /* 文字色を白に */
    background-color: rgba(0,0,0,0.15); /* 背景色を薄めに */
    padding: 40px 20px; /* パディングを少し減らす */
    border-radius: 10px; /* 少し丸みをつける */
}

    .seminar-inner h2 {
        font-size: 2rem;
        margin-bottom: 20px;
    }

    .seminar-inner h3 {
        font-size: 1.2rem;
        line-height: 1.6;
        margin-bottom: 30px;
    }

    .seminar-inner .btn {
        margin: 5px;
    }

.seminar .btn {
    display: inline-block;
    padding: 10px 25px;
    margin: 10px;
    background-color: #ea5d5d; /* くすんだ赤ピンク */
    color: #fff;
    font-weight: bold;
    font-size: 1rem;
    border: none;
    border-radius: 8px;
    text-decoration: none;
    transition: all 0.3s ease;
}

    .seminar .btn:hover {
        background-color: #ff6464; /* ホバー時は少し明るめ */
        transform: translateY(-2px);
        box-shadow: 0 4px 12px rgba(0,0,0,0.2);
    }

/* 親をFlexにして左右並びに */
.course-flex {
    display: flex;
    align-items: center; /* 縦方向を中央揃え */
    justify-content: center; /* 横方向の中央揃え */
    gap: 40px; /* 写真と文字の間隔 */
    flex-wrap: wrap; /* 画面幅が狭くなったら縦並びに */
    padding: 40px 20px;
    background-color: #f9f9f9; /* 任意：背景色で目立たせる */
    border-radius: 10px; /* 柔らかい印象 */
}

/* 左側画像 */
.course-image img {
    max-width: 400px; /* 横幅の上限 */
    width: 100%; /* 小さい画面で縮小 */
    height: auto;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1); /* 軽い影で立体感 */
}

/* 右側文字 */
.course-description {
    max-width: 600px;
    text-align: left;
}

    .course-description h2 {
        font-size: 1.8rem;
        margin-bottom: 20px;
        color: #ea5d5d; /* くすんだ赤ピンクなど */
    }

    .course-description h3 {
        font-size: 1.1rem;
        line-height: 1.6;
        margin-bottom: 20px;
        color: #333;
    }

    /* ボタン */
    .course-description .btn {
        display: inline-block;
        padding: 10px 25px;
        background-color: #ea5d5d; /* くすんだ赤ピンク */
        color: #fff;
        font-weight: bold;
        border-radius: 8px;
        text-decoration: none;
        transition: all 0.3s ease;
    }

        .course-description .btn:hover {
            background-color: #ff6464;
            transform: translateY(-2px);
            box-shadow: 0 4px 12px rgba(0,0,0,0.2);
        }

/* レスポンシブ：スマホは縦並び */
@media screen and (max-width: 768px) {
    .course-flex {
        flex-direction: column;
        text-align: center;
    }

    .course-description {
        max-width: 100%;
    }
}

/* ページタイトル */
.seminar_title {
    font-size: 1.8em;
    text-align: center;
    color: #c33; /* 赤ピンク系 */
    margin: 5px 0 0px 0;
}

/* トップ画像 */
.banner-img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 3px 8px rgba(0,0,0,0.2);
}

/* 概要テキスト */
h1 {
    margin-bottom: 0px; /* 下の余白を小さく */
}

h2, h3, h4 {
    text-align: left;
    line-height: 1.6;
    color: #333;
    margin: 15px auto;
    max-width: 900px;
}

    /* H3見出しアクセント（h2-h4と揃えつつ赤太文字・白→金→白グラデ） */
    h3.seminar_title {
        display: block;
        text-align: left;
        line-height: 1.6;
        font-weight: bold;
        color: #c33;
        font-size: 1.6em;
        border-radius: 5px;
        padding: 8px 15px;
        margin: 15px auto;
        max-width: 900px;
        box-shadow: 0 2px 7px rgba(0,0,0,0.3);
        /* 背景色を薄グレーに */
        background-color: #ffffff;
        /* 右斜めに4本、各色1本ずつ */
        background-image: 
            linear-gradient(135deg, #000000 0%, #000000 100%), /* 黒 */
            linear-gradient(135deg, #fabf1d 0%, #fabf1d 100%), /* 金 */
            linear-gradient(135deg, #139f03 0%, #139f03 100%), /* 緑 */
            linear-gradient(135deg, #fb1809 0%, #fb1809 100%); /* 赤 */
        background-repeat: no-repeat;
        background-size: 4px 100%; /* 線の太さと縦の長さ */
        background-position: right 0px top, right 10px top, right 20px top, right 30px top; /* 右端からの横位置 */
    }


    /* 活動内容リンク */
    h4 a {
        text-align: left;
        color: #c33;
        text-decoration: underline;
        margin-left: 10px;
    }

        h4 a:hover {
            color: #a22;
        }

/* 赤文字 */
.red {
    color: #c33;
    font-weight: bold;
}

/* ボタンPDF */
.btn-group {
    display: flex;
    justify-content: center;
    margin: 20px 0;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background-color: #c33;
    color: #fff;
    text-decoration: none;
    padding: 8px 16px;
    border-radius: 4px;
    margin: 5px;
    transition: 0.3s;
}

    .btn:hover {
        background-color: #a22;
    }

/* PDF用の小バッジ */
.btn__badge {
    background: #fff;
    color: #c33;
    font-size: 0.7em;
    margin-left: 5px;
    padding: 2px 4px;
    border-radius: 3px;
}

/* 表全体 */
table {
    width: 90%;
    max-width: 1000px;
    margin: 20px auto;
    border-collapse: collapse;
    font-size: 0.95em;
}

    table th, table td {
        border: 1px solid #ccc;
        padding: 10px 12px;
        text-align: left;
    }

    table th {
        background-color: #f2f2f2;
        font-weight: bold;
    }

    table tr:nth-child(even) {
        background-color: #fafafa;
    }

/* アクセス画像 */
.img {
    text-align: center;
    margin-top: 15px; /* 上の余白を狭く */
    margin-bottom: 20px; /* 下は元のまま */
}

/* 全体余白 */
body {
    font-family: "Yu Gothic UI", "Meiryo", "Hiragino Kaku Gothic Pro", "MS PGothic", sans-serif;
    font-weight: 500; /* 通常より少し太めで公的書類っぽく */
    color: #333;
    line-height: 1.6;
    margin: 0;
    padding: 0;
    background-color: #fff;
    text-align: center;
}

/* アンカー用スペース */
.anchor {
    display: block;
    height: 60px;
    margin-top: -60px; /* 固定ヘッダー対応 */
    visibility: hidden;
}

/* レスポンシブ対応 */
@media screen and (max-width: 768px) {
    h2, h3, h4 {
        font-size: 1em;
        max-width: 95%;
    }

    .btn-group {
        flex-direction: column;
        gap: 10px;
    }

    table {
        width: 100%;
        font-size: 0.85em;
    }
}

.benefits-box {
    border: 2px solid #c33; /* 赤ピンクの枠線 */
    background-color: #fde2e2; /* 薄い赤ピンク背景 */
    border-radius: 10px;
    padding: 15px 20px;
    display: inline-block; /* 中央に寄せる場合 */
    text-align: left; /* 箇条書きは左揃え */
    max-width: 600px; /* 幅を調整 */
    margin: 20px auto; /* 上下に余白を作り中央寄せ */
}

    .benefits-box ul {
        list-style-type: disc; /* 黒丸の箇条書き */
        padding-left: 20px;
    }

    .benefits-box li {
        margin-bottom: 12px;
        font-size: 1.1em;
    }

    .benefits-box a {
        color: #a02626;
        text-decoration: underline;
        margin-left: 5px;
    }

        .benefits-box a:hover {
            color: #800000;
        }
main {
    padding-top: 100px; /* ヘッダー実寸に合わせて調整 */
}

.slider {
    position: relative;
    overflow: hidden;
    width: 100%;
    height: 90vh;
    background: #fff; /* 余白部分の色 */
}

.slider__track {
    display: flex;
    transition: transform 0.5s ease;
}

.slider__slide {
    min-width: 100%;
    height: 100%;
    display: flex;
    align-items: center; /* 縦中央 */
    justify-content: center; /* 横中央 */
}

    .slider__slide img {
        max-width: 100%;
        max-height: 100%;
        object-fit: contain; /* ← トリミングしない */
        object-position: center;
        display: block;
    }

/* ナビゲーション矢印 */
.slider__arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0,0,0,0.5);
    color: #fff;
    border: none;
    width: 42px;
    height: 42px;
    border-radius: 999px;
    cursor: pointer;
    z-index: 2;
    display: grid;
    place-items: center;
    transition: background 0.2s;
}

    .slider__arrow:hover {
        background: rgba(0,0,0,0.7);
    }

.slider__arrow--prev {
    left: 20%;
}

.slider__arrow--next {
    right: 20%;
}

/* スライダー */
.slider__dots {
    position: absolute;
    left: 50%;
    bottom: 12px;
    transform: translateX(-50%);
    display: flex;
    gap: 8px;
    z-index: 2;
}

.slider__dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: rgba(255,255,255,0.5);
    cursor: pointer;
    border: 0;
    padding: 0;
}

    .slider__dot[aria-current="true"] {
        background: #fff;
    }

/* ユーザーが操作中はオートプレイ停止したように見せるためのヒント */
.slider:has(.slider__arrow:active),
.slider:has(.slider__dot:active) {
    /* optional: CSSで何か演出したい場合に使う */
}

/* アクセシビリティ（矢印のフォーカス枠など） */
.slider__arrow:focus,
.slider__dot:focus {
    outline: 2px solid #fff;
    outline-offset: 2px;
}

@media (max-width: 768px) {
    .slider__slide,
    .slider__slide img {
        height: 46vh;
    }
}

.cute-box {
    border: 2px solid #9dd9f3;
    background-color: #f0fbff;
    border-radius: 16px;
    padding: 16px 20px;
    width: fit-content;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.08);
    margin: 40px auto; /* ← これで中央寄せ */
}

    .cute-box ul {
        list-style: none; /* 黒点を消す */
        padding: 0;
        margin: 0;
    }

    .cute-box li {
        margin: 8px 0;
        text-align:left
    }

    .cute-box a {
        text-decoration: none;
        color: #2c7fb8; /* 優しい青 */
        font-weight: 500;
    }

        .cute-box a:hover {
            text-decoration: underline;
        }

.cute-box2 {
    border: 2px solid #000000;
    background-color: #ffffff;
    border-radius: 16px;
    padding: 16px 20px;
    width: fit-content;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.08);
    margin: 40px auto; /* ← これで中央寄せ */
}

    .cute-box2 ul {
        list-style: none; /* 黒点を消す */
        padding: 0;
        margin: 0;
    }

    .cute-box2 li {
        margin: 8px 0;
        text-align: left
    }

    .cute-box2 a {
        text-decoration: none;
        color: rgba(0,0,0,0.15); /* 優しい青 */
        font-weight: 500;
    }

        .cute-box2 a:hover {
            text-decoration: underline;
        }

.banner_t {
    width: 100%;
}

.banner_t-img {
    width: 100%;
    height: auto;
    display: block; /* 画像下の余白防止 */
}

/* 表示カテゴリー用 共通スタイル */
.color-box {
    text-align: center;
    color: white;
    font-size: 13px;
    height: 25px;
    width: 65px;
    line-height: 25px;
    border-radius: 6px;
}

/* カテゴリー別背景色 */
.color-01 {
    background-color: #ea5d5d;
}
/* 出版 */
.color-02 {
    background-color: #B1505F;
}
/* 研修 */
.color-03 {
    background-color: #837553;
}
/* 組織認証 */
.color-04 {
    background-color: #825D9B;
}
/* 要員認証 */
.color-05 {
    background-color: #B2522A;
}
/* QC検定 */
.color-06 {
    background-color: #177014;
}
/* 規格開発 */
.color-07 {
    background-color: #044497;
}
/* その他 */
