@charset "UTF-8";

/* ============================================
 * 基本設定・リセット
 * (このファイル固有のトランジションやタブ要素のリセット)
 * ============================================ */
* {
    transition: .3s all;
}

html *,
html *:before,
html *:after {
    box-sizing: border-box;
    transition: 0.5s ease-in-out;
}

/* 特定要素のトランジションを無効化 */
html i,
html em,
html b,
html strong,
html span {
    transition: none;
}

/* before/after要素を背景として使用 */
*:before,
*:after {
    z-index: -1;
}

/* タブ/記事関連要素の基本リセット */
.tab_box {
    line-height: 1.15;
    -webkit-text-size-adjust: 100%;
    -webkit-tap-highlight-color: transparent;
}

.tab_box ul,
.tab_box ol {
    margin: 0;
    padding: 0;
    list-style: none;
}

.tab_box button {
    -webkit-appearance: none;
    appearance: none;
    vertical-align: middle;
    color: inherit;
    font: inherit;
    border: 0;
    background: transparent;
    padding: 0;
    margin: 0;
    outline: 0;
    border-radius: 0;
    text-align: inherit;
    cursor: pointer;
}

.tab_box a {
    text-decoration: none;
    color: inherit;
}

.tab_box h4 {
    font-size: inherit;
    line-height: inherit;
    font-weight: inherit;
    margin: 0;
}

/* ============================================
 * ファーストビュー（FV）
 * ============================================ */
h2 {
    background-image: url(../img/top/top-fv.jpg);
}

/* ============================================
 * お知らせセクション・アイコン
 * ============================================ */
h3 {
    text-align: center;
    margin-bottom: 2rem;
}

h4 {
    font-size: 14px;
    font-weight: 600;
}

/* お知らせアイコン */
.container-title::before {
    content: "";
    display: inline-block;
    width: 2em;
    height: 2em;
    background-image: url(https://img.icons8.com/?size=100&id=114605&format=png&color=000000);
    background-size: contain;
    background-repeat: no-repeat;
    vertical-align: middle;
    margin-right: 0.25em;
}

/* カレンダーアイコン */
.calendar-title::before {
    content: "";
    display: inline-block;
    width: 2em;
    height: 2em;
    background-image: url(https://img.icons8.com/?size=100&id=DzVh6MRkAbVz&format=png&color=000000);
    background-size: contain;
    background-repeat: no-repeat;
    vertical-align: middle;
    margin-right: 0.25em;
}

/* ============================================
 * 記事一覧・タブ
 * ============================================ */
.notice .wrapper {
    display: flex;
    justify-content: space-between;
}

.container {
    width: 45%;
    margin: auto;
}

/* 記事一覧コンテナ */
.b-articles {
    height: 500px;
    margin-top: 2rem;
    overflow-y: scroll;
}

/* タブボタンリスト */
.b-tabs {
    display: flex;
    justify-content: space-between;
    padding-bottom: 2px;
    filter: drop-shadow(0 4px 2px rgb(0 0 0 / .1));
}

.b-tabs li {
    display: block;
    width: calc(98% / 5);
}

.b-tabs button {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    height: 40px;
    padding: .5em 1em;
    opacity: .7;
    font-size: .8em;
    text-align: center;
    border-radius: 25px;
}

.b-tabs .active button,
.b-tabs button:hover {
    transform: translateY(2px);
    opacity: 1;
}

.b-tabs .active button {
    font-weight: 700;
    pointer-events: none;
}

/* 記事カード */
.b-post {
    position: relative;
    overflow: hidden;
}

/* ホバー時の背景アニメーション */
.b-post::before {
    content: "";
    display: block;
    width: 120%;
    height: 100%;
    position: absolute;
    right: 120%;
    transform-origin: left;
    transform: skewX(25deg);
    background-image: linear-gradient(150deg, #fff 0%, #fff 25%, #fef9d7 100%);
    z-index: -1;
    transition: .4s ease-out;
}

.b-post:hover::before {
    right: -10%;
}

.b-post a {
    display: flex;
    flex-wrap: wrap;
    padding: 30px 0 30px .8em;
    border-bottom: 1px dashed #ccc;
}

.b-postDate,
.e-postTitle {
    margin: .3em 0;
}

.b-postDate {
    display: flex;
    flex-direction: row-reverse;
    justify-content: flex-end;
    align-items: center;
}

.e-time {
    font-size: .9em;
}

.e-catName {
    display: inline-flex;
    align-items: center;
    margin: 0 1em;
    padding: .2em .5em;
    border-radius: 3px;
    font-size: .75em;
    color: #333333;
}

.e-postTitle {
    line-height: 1.5;
}

/* ============================================
 * カテゴリカラー (タブとバッジ共通)
 * ============================================ */
.cat-all button {
    background: #5C5C5C;
    color: #fff;
}

.cat-event button,
[data-cat="event"],
.badge.event {
    background: #FFF3B0;
}

.cat-benefits button,
[data-cat="benefits"],
.badge.benefits {
    background: #FFD6E0;
}

.cat-update button,
[data-cat="update"],
.badge.update {
    background: #D4F4DD;
}

.badge.holiday {
    background: #ffc6c6;
}

/* ============================================
 * カレンダー
 * ============================================ */
.calendar-box {
    width: 45%;
    margin: 0 auto;
}

.calendar-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 4px;
}

.day-cell {
    border: 1px solid #ddd;
    border-radius: 6px;
    padding: 4px;
    min-height: 60px;
    font-size: 10px;
    background: #fff;
}

.events {
    display: grid;
    gap: 4px;
    grid-auto-rows: min-content;
}

/* バッジスタイル */
.badge {
    max-width: 100%;
    display: block;
    font-size: 12px;
    padding: 2px 6px;
    border-radius: 6px;
    margin-top: 4px;
    color: #333;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 100%;
    cursor: pointer;
}

/* --- モーダル（詳細表示） --- */
.detail-modal {
    position: fixed;
    inset: 0;
    display: none;
    z-index: 1000;
}

.detail-modal.active {
    display: block;
}

.detail-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, .35);
}

.detail-content {
    position: absolute;
    right: 50%;
    transform: translateX(50%);
    top: 8%;
    width: min(640px, 92vw);
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 12px;
    box-shadow: 0 10px 28px rgba(0, 0, 0, .25);
    animation: modalIn .22s ease;
}

.detail-close {
    position: absolute;
    right: 10px;
    top: 10px;
    background: transparent;
    border: none;
    font-size: 20px;
    cursor: pointer;
}

.detail-body {
    padding: 16px 18px;
    color: #06344C;
    font-size: 14px;
    line-height: 1.6;
}

/* モーダルアニメーション */
@keyframes modalIn {
    from {
        opacity: 0;
        transform: translateX(50%) scale(.98);
    }

    to {
        opacity: 1;
        transform: translateX(50%) scale(1);
    }
}

/* サイドパネル表示オプション */
.detail-modal.side .detail-content {
    right: 0;
    transform: none;
    top: 0;
    height: 100vh;
    width: min(420px, 92vw);
    border-radius: 0;
}

/* ============================================
 * 情報MAP（ボタンアニメーション）
 * ============================================ */

/* デスクトップレイアウト */
.wrap {
    width: 100%;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    justify-content: space-between;
}

.wrap img {
    width: 30%;
    margin-right: 20px;
}

@media screen and (max-width: 1400px) {
    .wrap {
        width: 100%;
        display: grid;
        grid-template-columns: repeat(2, 1fr);
    }

    .wrap img {
        width: 30%;
        margin-right: 20px;
    }
}

@media screen and (max-width: 800px) {
    .wrap {
        width: 100%;
        display: block;
    }

    .wrap img {
        width: 30%;
        margin-right: 20px;
    }
}

/* ボタン共通スタイル */
[class^="btn-"] {
    position: relative;
    display: flex;
    overflow: hidden;
    width: 100%;
    height: 130px;
    max-width: 340px;
    margin: 1rem auto;
    text-transform: uppercase;
    border: 3px solid currentColor;
    border-radius: 10px;
    font-size: 14px;
    align-items: center;
    color: #333333;
    padding: 10px;
}

/* ==== btn-1 (丸が広がる) ==== */
.btn-1 {
    border-color: #FFF3B0;
}

.btn-1 span {
    position: absolute;
    top: 50%;
    left: 50%;
    display: block;
    width: 0;
    height: 0;
    border-radius: 50%;
    background-color: #FFF3B0;
    transition: width 0.4s ease-in-out, height 0.4s ease-in-out;
    transform: translate(-50%, -50%);
    z-index: -1;
}

.btn-1:hover {
    border: #fff;
}

.btn-1:hover span {
    width: 200%;
    height: 200%;
}

.btn-1:active {
    background-color: #fff3b0;
}

/* ==== btn-2 (縦線が伸びる) ==== */
.btn-2 {
    border-color: #D4F4DD;
}

.btn-2:before,
.btn-2:after,
.btn-2 span:before,
.btn-2 span:after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 25%;
    height: 0;
    background-color: #D4F4DD;
}

.btn-2:after {
    left: 50%;
}

.btn-2 span:before {
    left: 25%;
    bottom: 0;
    top: auto;
}

.btn-2 span:after {
    left: 75%;
    bottom: 0;
    top: auto;
}

.btn-2:hover:before,
.btn-2:hover:after,
.btn-2:hover span:before,
.btn-2:hover span:after {
    height: 130px;
}

/* ==== btn-3 (上下から覆う) ==== */
.btn-3 {
    border-color: #B0BCFF;
}

.btn-3:before,
.btn-3:after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #B0BCFF;
}

.btn-3:before {
    transform: translateY(-100%);
}

.btn-3:after {
    transform: translateY(100%);
}

.btn-3:hover:before {
    transform: translateY(-50%);
}

.btn-3:hover:after {
    transform: translateY(50%);
}

/* ==== btn-4 (上下から薄い背景が広がる) ==== */
.btn-4 {
    border-color: #FFD6E0;
}

.btn-4:before,
.btn-4:after,
.btn-4 span:before,
.btn-4 span:after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 0;
    background-color: rgba(255, 214, 224, 0.25);
    transition: 0.4s ease-in-out;
}

.btn-4:after,
.btn-4 span:before {
    top: auto;
    bottom: 0;
}

.btn-4 span:before,
.btn-4 span:after {
    transition-delay: 0.4s;
}

.btn-4:hover:before,
.btn-4:hover:after,
.btn-4:hover span:before,
.btn-4:hover span:after {
    height: 130px;
}

/* ==== btn-5 (左右から薄い背景が広がる) ==== */
.btn-5 {
    border-color: #6ECFF6;
}

.btn-5:before,
.btn-5:after,
.btn-5 span:before,
.btn-5 span:after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 0;
    height: 130px;
    background-color: rgba(110, 207, 246, 0.25);
    transition: 0.4s;
}

.btn-5:after,
.btn-5 span:before {
    left: auto;
    right: 0;
}

.btn-5 span:before,
.btn-5 span:after {
    transition-delay: 0.4s;
}

.btn-5:hover:before,
.btn-5:hover:after,
.btn-5:hover span:before,
.btn-5:hover span:after {
    width: 340px;
}

/* ==== btn-6 (中央から丸が広がるアニメーション) ==== */
@keyframes criss-cross-left {
    0% {
        left: -20px;
    }

    50% {
        left: 50%;
        width: 20px;
        height: 20px;
    }

    100% {
        left: 50%;
        width: 375px;
        height: 375px;
    }
}

@keyframes criss-cross-right {
    0% {
        right: -20px;
    }

    50% {
        right: 50%;
        width: 20px;
        height: 20px;
    }

    100% {
        right: 50%;
        width: 375px;
        height: 375px;
    }
}

.btn-6 {
    border-color: #e74c3c;
    position: relative;
}

.btn-6:before,
.btn-6:after {
    content: '';
    position: absolute;
    top: 50%;
    width: 20px;
    height: 20px;
    background-color: #e74c3c;
    border-radius: 50%;
}

.btn-6:before {
    left: -20px;
    transform: translate(-50%, -50%);
}

.btn-6:after {
    right: -20px;
    transform: translate(50%, -50%);
}

.btn-6:hover:before {
    animation: criss-cross-left 0.8s both alternate;
}

.btn-6:hover:after {
    animation: criss-cross-right 0.8s both alternate;
}

/* ============================================
 * Photoセクション
 * ============================================ */
.photo .wrapper {
    display: flex;
    justify-content: space-between;
}

/* 授与式・会議エリア */
.award,
.meeting {
    width: 45%;
}

.swiper-wrapper {
    width: 100%;
}

.swiper-slide img {
    border-radius: 10px;
}

/* 受賞者インタビュー */
.interview {
    width: 100%;
    margin: 30px auto 0;
    text-align: center;
}

.winner {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
}

.winner img {
    width: 50%;
    border-radius: 50%;
}

/* 朝礼動画 */
.movie video {
    width: 100%;
    border-radius: 10px;
}

.goal {
    margin: 30px 0 0 0;
    text-align: center;
    font-size: 20px;
}

/* ============================================
 * Media Queries (スマートフォン対応)
 * ============================================ */
@media screen and (max-width: 767px) {

    /* --- お知らせセクション --- */
    .notice .wrapper {
        display: block;
    }

    .container {
        width: 100%;
    }

    .b-articles {
        width: 100%;
        height: 50svh;
    }

    .tab_box {
        margin-bottom: 1rem;
    }

    .container .btn {
        margin-bottom: 2rem;
    }

    /* --- カレンダー --- */
    .calendar-box {
        width: 100%;
        margin: 0 auto;
    }

    .calendar-grid {
        gap: 2px;
    }

    /* --- 情報MAP --- */
    .wrap img {
        width: 25%;
        margin-right: 20px;
    }

    /* --- Photoセクション --- */
    .photo .wrapper {
        display: block;
    }

    .award,
    .meeting {
        width: 100%;
    }

    .swiper-wrapper {
        width: 100%;
    }

    .interview {
        margin-bottom: 2rem;
    }

    .winner img {
        width: 90%;
    }

    .goal {
        font-size: 15px;
    }
}





/*font
英語
font-family: "Quicksand", sans-serif;
font-weight: Light-300,Regular-400,Medium-500,SemiBold-600,Bold-700;

日本語
font-family: "Murecho", sans-serif;
font-weight: Thin-100,ExtraLight-200,Light-300,Regular-400,Medium-500,SemiBold-600,Bold-700,ExtraBold-800,Black-900;
*/