main {
    margin-bottom: 100px !important;
}

.top_content_text {
    view-transition-name: kaigi_text;
}

.kaigi_top_content {
    margin: 60px auto 40px;

    & .kaigi_icon::before {
        content: "";
        display: inline-block;
        width: 40px;
        height: 40px;
        background-image: url('../image/kaigi.png');
        background-position: center;
        background-size: contain;
        view-transition-name: kaigi_icon;
    }
}

/* カードフリップアニメーション用CSS */
.flip-card-container {
    perspective: 1000px;
    display: block;
    margin-bottom: 30px;
    /* カード間のマージンを少し広げる */
}

.flip-card {
    position: relative;
    width: 100%;
    transform-style: preserve-3d;
    transition: transform 0.7s cubic-bezier(0.4, 0.2, 0.2, 1);
    transform: rotateY(180deg);
    /* 初期状態は裏向き */
    min-height: 90px;
    /* カードの最小高さを設定 (フォルダ風デザインに合わせて調整) */
}

/* フォルダの「タブ」部分を flip-card の疑似要素として定義 */
.flip-card::before {
    content: "";
    position: absolute;
    top: -19px;
    left: 0px;
    /* タブの位置 */
    width: 80px;
    /* タブの幅 */
    height: 20px;
    /* タブの高さ */
    background-color: #ffe4b5;
    /* タブの色 (少し濃い黄色) */
    border: 1px solid #f0e68c;
    border-bottom: none;
    /* 下のボーダーはなし */
    border-top-left-radius: 6px;
    /* タブの角丸 */
    border-top-right-radius: 6px;
    z-index: 2;
    /* カード面より手前に表示 */
    /* transform: translateZ(1px); */
    /* 3D空間で少し手前に出す（任意） */
    /* フリップアニメーションの影響を受けないようにする */
    /* ただし、親要素の transform-style: preserve-3d の影響は受ける */
}

.flip-card.is-flipped {
    transform: rotateY(0deg);
}

.flip-card-front,
.flip-card-back {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    -webkit-backface-visibility: hidden;
    backface-visibility: hidden;
    box-sizing: border-box;
    border-radius: 0px 8px 8px 8px;
    /* 角丸を少し大きく */
    display: flex;
    flex-direction: column;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    /* 軽い影を追加 */
}

.flip-card-front {
    background-color: #fffbe0;
    /* 黄色味がかった背景色 (フォルダのベースカラー) */
    border: 1px solid #f0e68c;
    /* 黄色系のボーダー */
}

.flip-card-back {
    transform: rotateY(180deg);
    background-color: #fff5cc;
    /* 裏面も黄色系 */
    border: 1px solid #f0e68c;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 15px;
}

.flip-card-back p {
    margin: 0;
    color: #775b00;
    /* 黄色に合う濃いめの文字色 */
    font-weight: bold;
}


.news_items_content {
    padding: 15px;
    /* 上のパディングをタブの分少し空ける */
    width: 100%;
    box-sizing: border-box;
    position: relative;
    /* タブのz-indexのため */
    z-index: 0;
}

.news_items_content h3 {
    margin-top: 0;
    margin-bottom: 0.5em;
    color: #8B4513;
    /* フォルダ内の文字色 (茶色系) */
}

.news_items_content p {
    margin-bottom: 0;
    color: #A0522D;
    /* フォルダ内の文字色 (少し薄い茶色系) */
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    display: block;
    width: 100%;
    font-size: 13px;
}

.loading-spinner {
    text-align: center;
    padding: 20px;
    font-style: italic;
    color: #777;
}

/* Login Modal Styles */
.login-modal {
    display: none;
    /* Hidden by default */
    position: fixed;
    /* Stay in place */
    z-index: 1000;
    /* Sit on top */
    left: 0;
    top: 0;
    width: 100%;
    /* Full width */
    height: 100%;
    /* Full height */
    overflow: auto;
    /* Enable scroll if needed */
    background-color: rgba(0, 0, 0, 0.6);
    /* Black w/ opacity */
    justify-content: center;
    /* Center horizontally */
    align-items: center;
    /* Center vertically */
}

.login-modal-content {
    background-color: #fefefe;
    margin: auto;
    /* Auto margin for centering (fallback) */
    padding: 30px;
    border: 1px solid #888;
    width: 90%;
    /* Could be more specific */
    max-width: 400px;
    /* Max width for larger screens */
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    position: relative;
}

.close-button {
    color: #aaa;
    position: absolute;
    top: 10px;
    right: 15px;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
}

.close-button:hover,
.close-button:focus {
    color: black;
    text-decoration: none;
    cursor: pointer;
}

.login-modal-content h3 {
    text-align: center;
    margin-bottom: 20px;
    color: #333;
}

.form-group {
    margin-bottom: 15px;
}

.form-group label {
    display: block;
    margin-bottom: 5px;
    font-weight: bold;
    color: #555;
}

.form-group input[type="text"],
.form-group input[type="password"] {
    width: 100%;
    /* Adjust for padding */
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
    box-sizing: border-box;
    /* Include padding in width */
}

.login-submit-button {
    background-color: #0073aa;
    /* WordPress primary blue */
    color: white;
    padding: 12px 20px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    width: 100%;
    font-size: 16px;
    margin-top: 20px;
}

.login-submit-button:hover {
    background-color: #005177;
}

.login-message {
    margin-top: 15px;
    padding: 10px;
    border-radius: 4px;
    text-align: center;
    font-weight: bold;
}

.login-message.error {
    background-color: #ffe0e0;
    color: #cc0000;
    border: 1px solid #cc0000;
}

.login-message.success {
    background-color: #e0ffe0;
    color: #008000;
    border: 1px solid #008000;
}

/* Button for login */
.login-button {
    background-color: #0073aa;
    /* WordPress primary blue */
    color: white;
    padding: 8px 15px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 16px;
    /* 見栄えを調整 */
    white-space: nowrap;
    /* Prevent wrapping */
    display: flex;
    /* アイコンとテキストを横並びにする */
    align-items: flex-start;
    /* 上下中央揃え */
    gap: 8px;
    /* アイコンとテキストの間隔 */
    line-height: 1;
    /* ボタンの高さを調整 */
}

.login-button:hover {
    background-color: #005177;
}

.login-icon {
    width: 18px;
    /* アイコンの幅 */
    height: 18px;
    /* アイコンの高さ */
}

/* Flexbox for header */
.page-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
}