@charset "utf-8";

body {
    font-family: 'Noto Sans JP', "Helvetica Neue", "Helvetica", "Hiragino Sans", "Hiragino Kaku Gothic ProN", "Arial", "Yu Gothic", "Meiryo", sans-serif;
    font-size: 16px;
    line-height: 1.5;
    color: #333;
}

label,
input,
select,
button {
    cursor: pointer;
}

/* 
Header
*/
.header {
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 50;
    position: fixed;
    background-color: #ccc;
    z-index: 20;
    top: 0;
    left: 0;
    box-shadow: 0 3px 6px rgba(0, 0, 0, .16);
    transform: translateY(0);
    transition: transform 0.28s ease;
    will-change: transform;
}

.header.header-hidden {
    transform: translateY(calc(-100% - 8px));
}

.header-logo {
    margin: 0;
    padding-left: 15px;
}

.header-logo>a {
    display: block;
    color: #333;
    text-decoration: none;
}

.header-list {
    margin: 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.header-text>a {
    display: block;
    color: #333;
    padding: 0 15px;
    font-weight: bold;
    position: relative;
    text-decoration: none;
}

.header-text>a::after {
    position: absolute;
    /*親要素であるaタグを基準に位置を指定*/
    left: 5px;
    /*アンダーラインを各メニュー（aタグ）の左端に指定*/
    content: '';
    /*本来は、擬似要素に入るテキストなどを’’内に指定。今回はアンダーラインなので何も記載しない*/
    width: 5px;
    /*アンダーラインを各aタグの幅に合わせる*/
    height: 28px;
    /*アンダーラインの高さ（太さ）*/
    background: #fb7e00;
    /*アンダーラインの色*/
    transform: scale(1, 0);
    transform-origin: left bottom;
    transition: 0.25s;
}

.header-text>a:hover::after {
    transform: scale(1, 1);
    /* visibility: visible; ホバー後、アンダーラインを可視化する */
    opacity: 1;
    transition: 0.25s;
}



/* 
開いているページの階層 
*/

.address-site {
    margin-top: 100px;
    padding: 0 35px;
    font-size: 14px;
}

/* 
toppage 
*/

.section-headline-back {
    width: 100%;
    height: calc(100% + 50px);
    /* 50px分高さを追加 */
    object-fit: cover;
    /* アスペクト比を維持しつつ、コンテナ全体を覆う */
    object-position: center top;
    /* 上を基準に中央配置 */

    position: absolute;
    top: -50px;
    /* 50px上にシフト */
    left: 0;

    background-color: #333;
    z-index: 10;
}

.section-headline {
    margin-top: 50px;
    height: 80vh;
    min-height: 80vh;
    /* 最小高さを確保 */
    position: relative;
    /* 相対位置基準にする */
    display: flex;
    justify-content: center;
    align-items: center;
    background-color: #333;
    overflow: hidden;
    /* はみ出した部分を隠す */
}

/* タブレット以上のサイズでheadlineが全て表示されるように調整 */
@media screen and (min-width: 647px) {
    .section-headline {
        height: auto;
        min-height: 80vh;
    }

    .div-headline {
        position: relative;
        /* absoluteからrelativeに変更 */
        margin-top: 50vh;
        bottom: auto;
        padding-bottom: 0;
    }
}

.img-brack {
    opacity: 0.45;
    position: absolute;
    width: 100%;
    top: 0;
    left: 0;
    height: 80vh;
}

.about {
    margin: 0;
    display: flex;
}



.div-headline {
    background-color: #ccc;
    margin-top: 50vh;
    overflow-y: auto;
    /* 内容が多すぎる場合にスクロールバーを表示 */
    width: 100%;
    z-index: 11;
    position: absolute;
    bottom: 0;
    /* 下端を揃える */
    padding-bottom: 20px;
    /* 下部に余白を追加 */
}

.div-headline::after {
    position: absolute;
    left: 0;
    top: 0;
    right: 0;
    -moz-box-shadow: 0px 0px 15px 10px #ccc;
    -webkit-box-shadow: 0px 0px 15px 10px #ccc;
    box-shadow: 0px 0px 15px 10px #ccc;
    content: " ";
}

.headline-h1 {
    text-align: center;
    color: black;

}

.headline-text {
    text-align: center;
    padding: 5px 50px;
    line-height: 1.7;
    color: black;
}

.container-headline {
    display: flex;
    justify-content: center;
    align-items: center;
    /* 上下中央揃え */
    min-height: 15vh;
    /* 最小高さを確保 */
    margin-top: 0;
    margin-bottom: 0;
}

.scroll-head {
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    width: 50px;
    height: 50px;
    margin-top: 0;
    /* margin-topを削除して中央揃えに */
    opacity: 0.8;
}

.section-news {
    background-color: white;
    display: flex;
    justify-content: center;
    /* 中央揃え */
    align-items: flex-start;
    /* 上揃え */
    flex-direction: column;
    /* 縦方向に並べる（デフォルト） */
    padding: 20px 0;
    /* 上下の余白を確保 */
}

.division-news {
    width: 100%;
    padding: 0 20px;
}

/* タブレット横画面以上で横並びレイアウト */
@media screen and (min-width: 768px) {
    .section-news {
        flex-direction: row;
        /* 横方向に並べる */
        align-items: flex-start;
        gap: 30px;
        padding: 20px 30px;
    }

    .section-news .division-news {
        flex: 1;
        min-width: 0;
        width: auto;
        max-width: 600px;
        /* 幅の制限を解除 */
        padding: 0;
    }

    .section-news .mastodon-container {
        flex: 1;
        min-width: 0;
        margin: 0;
        max-width: 600px;
        padding: 0;
    }

    .section-news .division-news>h1 {
        margin-left: 30px;
    }

    .section-news .horizontal-line {
        margin-left: 15px;
    }

    .section-news .link-info {
        margin-left: 30px;
    }

    #content ul {
        padding-left: 40px;
    }

    .news-list>li {
        max-width: 90%;
    }

    .division-news a {
        max-width: 90%;
    }
}

.division-news>h1 {
    line-height: 60px;
    margin-left: 16px;
    position: relative;
}

.division-news>h1::after {
    position: absolute;
    /*親要素であるaタグを基準に位置を指定*/
    left: -16px;
    /*アンダーラインを各メニュー（aタグ）の左端に指定*/
    content: '';
    /*本来は、擬似要素に入るテキストなどを’’内に指定。今回はアンダーラインなので何も記載しない*/
    width: 8px;
    /*アンダーラインを各aタグの幅に合わせる*/
    height: 50px;
    /*アンダーラインの高さ（太さ）*/
    background: #fb7e00;
    /*アンダーラインの色*/
    margin-top: 10px;
}

.news-list>li {
    line-height: 1.7;
    margin-left: 35px;
    margin-bottom: 12px;
    max-width: 100%;
}

.news-list li a {
    color: initial;
    text-decoration: underline dashed;
    margin-bottom: 15px;
}

.news-list li a:hover {
    color: #fb7e00;
    text-decoration: underline dashed;
    transition: 0.25s;
}

.division-news a {
    color: initial;
    text-decoration: underline;
    margin-bottom: 15px;
    display: flex;
    max-width: 100%;
}

.division-news a:hover {
    color: #fb7e00;
    text-decoration: underline dashed;
    transition: 0.25s;
}

.horizontal-line {
    margin-left: 0;
}

.link-info {
    margin-left: 0;
}

#content ul {
    padding-left: 20px;
}

/* 
Mastodon Timeline
 */
.mastodon-container {
    width: 100%;
    max-width: 600px;
    margin: 40px auto;
    padding: 0 20px;
}

.mastodon-timeline {
    background-color: #f8f9fa;
    border-radius: 12px;
    padding: 15px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.mastodon-timeline-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
    padding-bottom: 10px;
    border-bottom: 2px solid #fb7e00;
}

.mastodon-timeline-title {
    margin: 0;
    font-size: 1.5em;
    color: #333;
    font-weight: bold;
}

.mastodon-timeline-link {
    color: #fb7e00;
    text-decoration: none;
    font-size: 0.9em;
    transition: color 0.25s;
}

.mastodon-timeline-link:hover {
    color: #d66a00;
    text-decoration: underline;
}

.mastodon-posts {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.mastodon-post {
    background-color: white;
    border-radius: 8px;
    padding: 12px;
    border-left: 4px solid #fb7e00;
    transition: box-shadow 0.25s;
}

.mastodon-post:hover {
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
}

.mastodon-post-header {
    margin-bottom: 8px;
}

.mastodon-post-link {
    text-decoration: none;
    color: inherit;
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
}

.mastodon-post-author {
    display: flex;
    align-items: center;
    gap: 10px;
    flex: 1;
}

.mastodon-post-avatar {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    object-fit: cover;
    flex-shrink: 0;
}

.mastodon-post-author-info {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.mastodon-post-display-name {
    font-weight: bold;
    color: #333;
    font-size: 0.95em;
    line-height: 1.2;
}

.mastodon-post-username {
    font-size: 0.85em;
    color: #666;
    line-height: 1.2;
}

.mastodon-post-date {
    font-size: 0.85em;
    color: #666;
    white-space: nowrap;
    margin-left: 10px;
}

.mastodon-post-content {
    color: #333;
    line-height: 1.6;
    word-wrap: break-word;
    margin-top: 8px;
    padding-left: 58px;
    /* アバターの幅 + gap */
}

.mastodon-post-content a {
    color: #fb7e00;
    text-decoration: underline;
}

.mastodon-post-content a:hover {
    color: #d66a00;
}

.mastodon-custom-emoji {
    display: inline-block;
    width: 1.25em;
    height: 1.25em;
    margin: 0 0.05em;
    object-fit: contain;
    vertical-align: -0.25em;
}


.mastodon-post-media {
    margin-top: 10px;
    padding-left: 58px;
    /* Same padding as content */
    display: grid;
    gap: 2px;
    border-radius: 12px;
    overflow: hidden;
    margin-bottom: 5px;
}

.mastodon-media-link {
    display: block;
    width: 100%;
    height: 100%;
    text-decoration: none;
    position: relative;
}

.mastodon-media-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    background-color: #f0f0f0;
}

/* 1 Image */
.mastodon-media-count-1 {
    grid-template-columns: 1fr;
}

.mastodon-media-count-1 .mastodon-media-image {
    aspect-ratio: 1.91/1;
    /* Twitter card ratio */
    max-height: 300px;
    border: 1px solid rgba(0, 0, 0, 0.1);
}

/* 2 Images */
.mastodon-media-count-2 {
    grid-template-columns: 1fr 1fr;
    aspect-ratio: 16/9;
}

/* 3 Images - Big left, two small right */
.mastodon-media-count-3 {
    grid-template-columns: 1fr 1fr;
    grid-template-rows: 1fr 1fr;
    aspect-ratio: 16/9;
}

.mastodon-media-count-3 .mastodon-media-link:first-child {
    grid-row: 1 / 3;
}

/* 4 Images - 2x2 Grid */
.mastodon-media-count-4 {
    grid-template-columns: 1fr 1fr;
    grid-template-rows: 1fr 1fr;
    aspect-ratio: 16/9;
}

.mastodon-loading,
.mastodon-error,
.mastodon-empty {
    text-align: center;
    padding: 20px;
    color: #666;
}

.mastodon-error {
    color: #d32f2f;
}

/* 
footer
 */

.footer {
    background-color: #fb7e00;
    min-height: 20vh;
    width: 100%;
}

.timeline {
    display: flex;
    padding: 20px 40px;
}

.footer>ul {
    list-style: none;
    padding-top: 10px;
    display: flex;
    justify-content: center;
}

.footer-list>a {
    text-decoration: underline;
    color: initial;
}

.footer-list>a:hover {
    color: whitesmoke;
    text-decoration: underline dashed;
    transition: 0.25s;
}

.footer li:not(:last-child)::after {
    content: '|';
    margin: 0 15px;
}

.footer>p {
    text-align: center;
}

.footer-sns {
    display: flex;
    justify-content: center;
    border-radius: 50%;
}

.footer-icon {
    height: 5vh;
    margin: 0px 10px;
}

/* 
news_article
 */

.title {
    margin-left: 80px;
    margin-top: 20px;
    padding-left: 15px;
    border-left: 8px solid #fb7e00;
}

.subtitle {
    margin-left: 85px;
    margin-top: 0px;
    margin-bottom: 0px;
    position: relative;
}

.article-div {
    max-width: 100%;
    text-align: center;
}

.article-body {
    width: 70%;
    display: inline-block;
    text-align: left;
    word-break: keep-all;
    overflow-wrap: break-word;
}

.article-body>a:hover {
    color: #fb7e00;
    text-decoration: underline;
    transition: 0.25s;
    max-width: 90%;
}

.article-body:first-of-type {
    margin-top: 40px
}

.article-quote {
    box-sizing: border-box;
    width: 70%;
    display: inline-block;
    margin: 24px auto;
    padding: 18px 22px;
    border-left: 5px solid #fb7e00;
    background-color: #f8f9fa;
    text-align: left;
    line-height: 1.7;
    word-break: normal;
    overflow-wrap: break-word;
}

.article-quote p {
    margin: 0 0 14px;
}

.article-quote p:last-child {
    margin-bottom: 0;
}

.article-quote a {
    overflow-wrap: anywhere;
}

.article-img {
    padding: 10px 130px;
    width: 100%;
    max-width: 1000px;
    height: auto;
    margin: auto;
    display: block;
    background-color: #f0f0f0;
    min-height: 200px;
}

/* 
form
 */

.form {
    text-align: center;
    padding: 40px 130px 20px;
}

.form-text {
    width: 70vh;
    height: 2em;
    margin-bottom: 15px;
    margin-top: 5px;
    border-radius: 5px;
    padding: 15px 10px;
    border: 1px solid #333;
}

.form-box {
    width: 70vh;
    min-height: 20vh;
    margin: 10px 0;
    border-radius: 5px;
    padding: 10px;
}

.form-submit {
    margin: 0 25vh;
    font-weight: bold;
    padding: 5px 15px;
    border: 1px solid #333;
    border-radius: 5px;
}

.form-label {
    display: inline-block;
    width: 68vh;
    text-align: left;
}

.radio {
    width: 64vh;
    display: inline-block;
    text-align: left;
    padding: 10px 0;
}

.response_form {
    display: none;
    font-weight: bold;
    text-align: center;
}

/* 
お知らせ一覧
 */

.archive-body {
    padding-left: 30px;
    padding-right: 30px;
    text-align: center;
    counter-reset: archive-counter;
    /* カウンターをリセット */
}

.archive-list {
    display: inline-block;
    text-align: left;
    margin: 15px;
    width: 70%;
    counter-increment: archive-counter;
    /* カウンターを増やす */
    position: relative;
    /* 絶対配置の基準 */
    padding-left: 2.5em;
    /* ブラケット用のスペースを確保 */
}

.archive-list::before {
    content: '[' counter(archive-counter) '] ';
    /* ブラケットと番号を表示 */
    color: black;
    position: absolute;
    left: 0;
    top: 1.2em;
    /* archive-linkと縦位置を揃える */
    width: 2.5em;
    /* 固定幅でブラケットを配置 */
    text-align: left;
}

.archive-list>a::after {
    display: none;
    /* 既存のオレンジの線を非表示 */
}

.archive-time {
    font-size: 0.8em;
    margin-left: 0;
    /* padding-leftで既にインデントされているので不要 */
    display: block;
    /* ブロック要素として表示 */
}

.archive-link {
    text-decoration: none;
    color: initial;
    position: relative;
    display: inline;

}

.archive-link:hover {
    color: #fb7e00;
    text-decoration: underline;
    transition: 0.25s;
}

.header-text>a {
    display: block;
    color: #333;
    padding: 0 15px;
    font-weight: bold;
    position: relative;
    text-decoration: none;
}

.pub-eng {
    margin-top: 10px;
    font-size: 0.9em;
    margin-left: 0;
    /* padding-leftで既にインデントされているので不要 */
}

.bread {
    margin-top: 60px;
    margin-left: 20px;
    margin-right: 20px;
    display: flex;
    /* 子要素を横並びにする */
    flex-wrap: wrap;
    /* 項目が多いときは項目のあいだで折り返す */
    row-gap: 4px;
    list-style: none;
    /* デフォルトのリストスタイルを削除 */
    padding: 0;
}

.bread li {
    display: flex;
    white-space: nowrap;
    /* 「Home」などが語の途中で折り返されないようにする */
}

.bread li:not(:last-child):after {
    content: '>';
    margin: 0 6px;
}

/* ページネーション全体のスタイル */
.pagination-news {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 20px;
    /* ボタンとページネーションの間にスペースを追加 */
    margin-top: 20px;
    /* ページの下に余白を追加 */
}

/* ページネーションボタンのスタイル */
.pagination-news button {
    margin: 16px auto;
    font-weight: bold;
    padding: 5px 15px;
    cursor: pointer;
    border: 1px solid #ccc;
    border-radius: 5px;
    background-color: #f0f0f0;
    transition: background-color 0.3s;
}

/* ホバー時のボタンの色変更 */
.pagination-news button:hover {
    background-color: #ddd;
}

/* ページネーションリスト（番号）のスタイル */
#pagination {
    list-style: none;
    display: flex;
    gap: 15px;
    /* ページ番号の間にスペースを追加 */
    margin: 0;
    padding: 0;
}

/* ページ番号のスタイル */
#pagination li {
    font-size: 16px;
    cursor: pointer;
}

/* 現在のページ番号の強調表示 */
#pagination li.bold {
    font-weight: bold;
    color: #007BFF;
}

/* 無効なボタン（前へ、次へ）のスタイル */
.pagination-news button:disabled {
    background-color: #ccc;
    cursor: not-allowed;
}

/* 
Demo 
*/

.archive-list iframe {
    width: 100%;
    height: auto;
    aspect-ratio: 16 / 9;
    /* YouTube の標準比率を維持 */
    border: none;
}

.link-music {
    color: #333;
    padding-bottom: 30px;
}

.link-music:hover {
    color: #fb7e00;
    text-decoration: underline dashed;
    transition: 0.25s;
}

.list-head {
    width: 70%;
    display: inline-block;
    text-align: left;
    word-break: keep-all;
    overflow-wrap: break-word;
    margin-bottom: 0px;
}

.demo-body {
    width: 75%;
    display: inline-block;
    text-align: left;
    word-break: keep-all;
    overflow-wrap: break-word;
    margin-top: 0px;
}

.demo-list {
    display: inline-block;
    text-align: left;
    margin: 15px;
    width: 70%;
}

.demo-link {
    text-decoration: underline;
    color: initial;
    position: relative;
    display: inline;
    margin-bottom: 0px;
}

.demo-link:hover {
    color: #fb7e00;
    text-decoration: underline dashed;
    transition: 0.25s;
}

.demo-eng {
    margin-top: 0px;
    font-size: 0.9em;
}

.input_video {
    display: none;
}

.output_canvas {
    width: 90%;
    /* コンテナ内でキャンバスをフィットさせる */
    height: auto;
    /* アスペクト比を保つ */
    max-width: 1200px;
}

.chart_mediapipe {
    width: 80%;
    height: auto;
    max-width: 100%;
    margin-right: 20px;
}

@media (min-width: 800px) {
    .content_demo_mediapipe {
        display: flex;
        flex-wrap: wrap;
        align-items: center;
        justify-content: center;
        /* 追加：中央揃え */
        width: 100%;
        /* 修正: コンテナ全体の幅 */
        max-width: 100%;
        /* 修正: 横幅の制限をなくす */
        padding-left: 20px;
        /* 修正: 左右中央揃え */
        padding-right: 20px;
    }

    .output_canvas,
    .chart_mediapipe {
        max-width: 50%;
        flex: 1;
        width: 100%;
        /* 修正: 横幅を適切に調整 */
        height: auto;
        /* アスペクト比を保つ */
    }

    .chart_mediapipe {
        max-height: 337px;
    }
}

.demo-img {
    padding: 0px 0px;
    width: 70%;
    max-width: 1000px;
    height: auto;
    margin: auto;
}

.demo-caption {
    margin-bottom: 30px;
}

.landmark-grid-container {
    display: none;
    /* グリッド表示を無効化 */
}

.reference-body {
    width: 80%;
    display: inline-block;
    text-align: left;
    word-break: keep-all;
    overflow-wrap: break-word;
    counter-reset: ref-counter;
    /* カウンターをリセット */
    padding-right: 20px;
}

.reference-list {
    width: 80%;
    display: inline-block;
    text-align: left;
    word-break: keep-all;
    overflow-wrap: break-word;
    counter-increment: ref-counter;
    /* カウンターを増やす */
    padding-right: 20px;
    margin-bottom: 10px;
}

.reference-list::before {
    content: "[" counter(ref-counter) "] ";
    /* カウンターを [1], [2] のように表示 */
}



/* ===== スマホ用のメニュー ===== */
.menu-icon {
    display: none;
    /* PCでは非表示 */
    font-size: 28px;
    padding-right: 10px;
    cursor: pointer;
}

/* スマホサイズ（768px以下）の設定 */
@media screen and (max-width: 795px) {

    /* ヘッダー */
    .menu-icon {
        display: block;
        /* ハンバーガーメニュー表示 */
    }

    .header-nav {
        display: none;
        /* 初期状態でメニューを隠す */
        position: absolute;
        top: 50px;
        right: 0;
        width: 100%;
        background-color: black;
        text-align: center;
        transition: 0.25s;
        opacity: 0.8;
    }

    .header-list {
        flex-direction: column;
    }

    .header-text a {
        padding: 15px;
        font-size: 18px;
        display: block;
        color: white;
        border-bottom: 1px solid #555;
    }
}

/* 改行が異なるとき（647px以下）の設定 */
@media screen and (min-width: 647px) {
    .br-sp {
        display: none;
    }
}



@media screen and (max-width: 647px) {

    /* About */
    .section-headline {
        height: auto;
        min-height: 80vh;
    }

    .section-headline-back {
        height: 100%;
        min-height: 80vh;
    }

    .div-headline {
        background-color: #ccc;
        margin-top: 30vh;
        width: 100%;
        z-index: 11;
        position: absolute;
        bottom: 0;
    }

    .div-headline::after {
        position: absolute;
        left: 0;
        top: 0;
        right: 0;
        -moz-box-shadow: 0px 0px 15px 10px #ccc;
        -webkit-box-shadow: 0px 0px 15px 10px #ccc;
        box-shadow: 0px 0px 15px 10px #ccc;
        content: " ";
    }

    .headline-h1 {
        text-align: center;
        color: black;

    }

    .headline-text {
        text-align: center;
        padding: 5px 20px;
        line-height: 1.7;
        color: black;
        word-break: break-word;
        /* 長い単語がある場合に適切に折り返す */
        white-space: normal;
        /* 通常の改行を許可 */
        line-height: 1.6;
        /* 行間を広めにして読みやすく */
    }

    .container-headline {
        display: flex;
        justify-content: center;
        align-items: center;
        /* 上下中央揃え */
        min-height: 15vh;
        /* 最小高さを確保 */
        margin-top: 0;
        margin-bottom: 0;
    }


    /* footer */

    .footer {
        background-color: #fb7e00;
        height: 35vh;
        width: 100%;
    }

    .footer>ul {
        list-style-type: disc;
        padding-top: 10px;
        margin-left: 30px;
        display: flex;
        flex-direction: column;
        justify-content: center;
    }

    .footer-list>a {
        text-decoration: underline;
        color: initial;
    }

    .footer-list>a:hover {
        color: whitesmoke;
        text-decoration: underline dashed;
        transition: 0.25s;
    }

    .footer li:not(:last-child)::after {
        content: '';
        margin: 0 15px;
    }

    .footer>p {
        text-align: center;
    }

    .footer-sns {
        display: flex;
        justify-content: center;
        border-radius: 50%;
    }

    .footer-icon {
        height: 5vh;
        margin: 0px 10px;
    }

    /* News */

    .title {
        margin-left: 30px;
        position: relative;
        border-left: 8px solid #fb7e00;
    }

    .subtitle {
        margin-left: 35px;
        margin-top: 0px;
        margin-bottom: 0px;
        position: relative;
    }

    .news-archive h1 {
        margin-left: 30px;
        position: relative;
        border-left: 8px solid #fb7e00;
    }

    /* 
    お知らせ一覧
    */

    .archive-body {
        padding-left: 30px;
        padding-right: 30px;
        text-align: center;
    }

    .archive-list {
        display: inline-block;
        text-align: left;
        margin: 15px;
        width: 100%;
    }

    /* 
    news_article
    */

    .title {
        margin-left: 30px;
        margin-top: 20px;
        padding-left: 15px;
        border-left: 8px solid #fb7e00;
    }

    .article-div {
        max-width: 100%;
        text-align: center;
    }

    .article-body {
        width: 85%;
        display: inline-block;
        text-align: left;
        word-break: keep-all;
        overflow-wrap: break-word;
    }

    .list-head {
        width: 85%;
        display: inline-block;
        text-align: left;
        word-break: keep-all;
        overflow-wrap: break-word;
    }

    .article-body>a:hover {
        color: #fb7e00;
        text-decoration: underline;
        transition: 0.25s;
        max-width: 85%;
    }

    .article-body:first-of-type {
        margin-top: 10px
    }

    .article-quote {
        width: 85%;
        margin: 18px auto;
        padding: 15px 16px;
    }

    .article-img {
        padding: 10px 10px;
        width: 100%;
        height: auto;
        display: block;
        background-color: #f0f0f0;
        min-height: 200px;
    }

    .demo-img {
        padding: 10px 10px;
        width: 100%;
        height: auto;
    }

    /* 
    form
    */

    .form {
        text-align: center;
        padding: 10px 5px 10px;
        max-width: 90%;
        /* スマホで横幅を超えないように調整 */
        margin: 0 auto;
    }

    .form-text {
        width: 90%;
        /* 画面幅に応じて可変 */
        max-width: 600px;
        /* 最大幅を設定 */
        height: 2em;
        margin-bottom: 15px;
        margin-top: 5px;
        border-radius: 5px;
        padding: 15px 10px;
        border: 1px solid #333;
    }

    .form-box {
        width: 90%;
        /* 画面幅に応じて調整 */
        max-width: 600px;
        /* 最大幅を設定 */
        min-height: 20vh;
        margin: 10px 0;
        border-radius: 5px;
        padding: 10px;
    }

    .form-submit {
        margin: 10px auto;
        font-weight: bold;
        padding: 5px 15px;
        border: 1px solid #333;
        border-radius: 5px;
    }

    .form-label {
        width: 88%;
        /* 幅を制限しすぎない */
        text-align: left;
    }

    .radio {
        width: 84%;
        display: inline-block;
        text-align: left;
        padding: 10px 0;
    }

    /* Demo */

    .demo-body {
        width: 85%;
        padding-left: 14px;
        display: inline-block;
        text-align: left;
        word-break: keep-all;
        overflow-wrap: break-word;
    }

    .demo-list {
        display: inline-block;
        text-align: left;
        margin-left: 0px;
        width: 100%;
    }

    .demo-link {
        text-decoration: underline;
        color: initial;
        position: relative;
        display: inline;
    }

    .demo-link:hover {
        color: #fb7e00;
        text-decoration: underline dashed;
        transition: 0.25s;
    }

    .reference-body {
        width: 100%;
        display: inline-block;
        text-align: left;
        word-break: keep-all;
        overflow-wrap: break-word;
        counter-reset: ref-counter;
        /* カウンターをリセット */
    }

    .reference-list {
        width: 100%;
        display: inline-block;
        text-align: left;
        word-break: keep-all;
        overflow-wrap: break-word;
        counter-increment: ref-counter;
        /* カウンターを増やす */
    }

    .demo-img {
        padding: 0px 0px;
        width: 85%;
        max-width: 1000px;
        height: auto;
        margin: auto;
    }

    /* Mastodon Timeline (スマホ用) */
    .mastodon-container {
        padding: 0 20px;
        margin: 30px auto;
    }

    .mastodon-timeline {
        padding: 12px;
    }

    .mastodon-timeline-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
        margin-bottom: 10px;
        padding-bottom: 8px;
    }

    .mastodon-timeline-title {
        font-size: 1.3em;
    }

    .mastodon-posts {
        gap: 10px;
    }

    .mastodon-post {
        padding: 10px;
    }

    .mastodon-post-avatar {
        width: 40px;
        height: 40px;
    }

    .mastodon-post-author {
        gap: 8px;
    }

    .mastodon-post-display-name {
        font-size: 0.9em;
    }

    .mastodon-post-username {
        font-size: 0.8em;
    }

    .mastodon-post-date {
        font-size: 0.75em;
    }

    .mastodon-post-content {
        font-size: 0.9em;
        padding-left: 48px;
        /* アバターの幅 + gap */
        margin-top: 6px;
    }

}
