/* 基本設定 */
body {
    font-family: "Helvetica Neue", Arial, "Hiragino Kaku Gothic ProN", "Hiragino Sans", Meiryo, sans-serif;
    color: #333;
    line-height: 1.6;
    margin: 0;
    background-color: #f8f9fa;
}

.container {
	max-width: 1100px;
	margin: 0 auto;
	padding: 0 20px;
}

/* ヘッダー */
header {
    background: #fff;
    border-bottom: 3px solid #0073BB;
    padding: 15px 0;
    position: sticky;
    top: 0;
    z-index: 100;
}

.header-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 24px;
    color: #0073BB;
    margin: 0;
}

.logo span {
    font-size: 14px;
    display: block;
    color: #666;
}

.pc-nav ul {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
}

.pc-nav ul li a {
    text-decoration: none;
    color: #333;
    font-weight: bold;
    padding: 10px 15px;
    transition: 0.3s;
}

.pc-nav ul li a:hover {
    color: #0073BB;
}

/* メインビジュアル */
.main-visual {
    background: linear-gradient(rgba(0,115,187,0.7), rgba(0,115,187,0.7)), url('hero-img.jpg') center/cover;
    height: 300px;
    display: flex;
    align-items: center;
    color: #fff;
    text-align: center;
}

/* カードメニュー */
.menu-cards {
    margin-top: 40px; /* スライドショーの下に40pxの余白を作る（お好みで調整してください） */
    position: relative; /* 重なりの順序を安定させるために追加推奨 */
    z-index: 10;        /* 重なりの順序を安定させるために追加推奨 */
}
.card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 15px;
}

.card {
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 8px;
    padding: 20px;
    text-align: center;
    text-decoration: none;
    color: #0073BB;
    font-weight: bold;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    transition: transform 0.3s;
}

.card span {
    display: block;
    font-size: 11px;
    color: #666;
    margin-top: 5px;
}

.card:hover {
    transform: translateY(-5px);
    border-color: #F39800;
}

/* コンテンツセクション */
.content-section {
    padding: 60px 0;
    border-bottom: 1px dashed #ccc;
}

.content-section h2 {
    border-left: 5px solid #F39800;
    padding-left: 15px;
    margin-bottom: 30px;
}

/* フッター */
footer {
    background: #333;
    color: #fff;
    padding: 30px 0;
    text-align: center;
    margin-top: 50px;
}

/* テーブルのスタイル */
.table-wrapper {
    overflow-x: auto; /* スマホで横スクロール可能に */
    margin-bottom: 20px;
}
.design-table {
    width: 100%;
    border-collapse: collapse;
    background: #fff;
}
.design-table thead tr td {
}

.design-table th, .design-table td {
    border: 1px solid #ddd;
    padding: 12px;
    text-align: left;
}
.design-table thead tr .cell01 {
	background-color: #cecbce;
}
.design-table tbody tr .cell01 {
	background-color: #cecbce;
}


.design-table th {
    background: #f2f2f2;
    color: #0073BB;
}

/* ダウンロードリストのスタイル */
.download-list {
    list-style: none;
    padding: 0;
}
.download-list li {
    background: #fff;
    border: 1px solid #eee;
    padding: 15px;
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    border-radius: 5px;
}
.file-type {
    font-size: 10px;
    font-weight: bold;
    color: #fff;
    padding: 2px 6px;
    border-radius: 3px;
    margin-right: 15px;
}
.pdf { background: #e74c3c; }
.word { background: #2980b9; }
.excel { background: #27ae60; }

/* ボタンのスタイル */
.btn-pdf {
    display: inline-block;
    background: #0073BB;
    color: #fff;
    padding: 10px 20px;
    text-decoration: none;
    border-radius: 25px;
    transition: 0.3s;
}
.btn-pdf:hover {
    background: #F39800;
}

/* 役員セクション内の微調整 */
.president-intro {
    background: #f9fbfd; /* 挨拶エリアを少し強調 */
    border-left: 5px solid #0073BB;
}

.message-layout {
    display: flex;
    gap: 20px;
    align-items: center;
}

.president-photo {
    flex: 0 0 120px; /* トップページ用は少し小さめに設定 */
}

.photo-placeholder {
    width: 120px;
    height: 150px;
    background: #ddd;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 4px;
    font-size: 12px;
}

.signature {
    text-align: right;
    margin-bottom: 0;
    font-weight: bold;
}

/* スマホ対応 */
@media (max-width: 600px) {
    .message-layout {
        flex-direction: column;
        text-align: center;
    }
    .signature {
        text-align: center;
    }
}

/* 加盟団体セクションのスタイル */
.group-category {
    margin-bottom: 30px;
}

.category-title {
    font-size: 18px;
    color: #0073BB;
    border-bottom: 1px solid #eee;
    padding-bottom: 8px;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
}

.category-title::before {
    content: "●";
    color: #F39800;
    margin-right: 10px;
    font-size: 12px;
}

.group-tags {
    display: flex;
    flex-wrap: wrap; /* 折り返しを許可 */
    gap: 10px;
}

.tag {
    background: #f0f4f8;
    border: 1px solid #d1d9e0;
    color: #444;
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 14px;
    transition: 0.2s;
}

.tag:hover {
    background: #0073BB;
    color: #fff;
    border-color: #0073BB;
    cursor: default;
}

/* スマホ対応 */
@media (max-width: 600px) {
    .tag {
        font-size: 13px;
        padding: 5px 10px;
    }
}

/* 団体の紹介用のレイアウト */
.about-vision {
    border-top: 4px solid #F39800; /* アクセントカラー */
}

.vision-text {
    font-size: 18px;
    line-height: 1.8;
    color: #444;
    text-align: center;
    padding: 10px 0;
}

.about-grid {
    display: flex;
    gap: 20px;
    margin-top: 20px;
}

.about-item {
    flex: 1;
}

/* タイムラインのデザイン */
.timeline {
    border-left: 2px solid #0073BB;
    padding-left: 20px;
    margin-left: 10px;
    position: relative;
}

.timeline-item {
    margin-bottom: 20px;
    position: relative;
}

.timeline-item::before {
    content: "";
    position: absolute;
    left: -27px;
    top: 5px;
    width: 12px;
    height: 12px;
    background: #fff;
    border: 2px solid #0073BB;
    border-radius: 50%;
}

.timeline-item.highlight::before {
    background: #F39800;
    border-color: #F39800;
}

.timeline-item .year {
    font-weight: bold;
    color: #0073BB;
    display: block;
    font-size: 14px;
}

.timeline-item p {
    margin: 5px 0 0 0;
    font-size: 15px;
}

/* スマホ対応 */
@media (max-width: 768px) {
    .about-grid {
        flex-direction: column;
    }
    .vision-text {
        font-size: 16px;
    }
}

/* --- 4枚並びのカルーセル設定 (スライドショー）--- */

.main-slider {
    width: 100%;
    overflow: hidden; /* はみ出た画像は見せない */
    position: relative;
    height:200px; /* 画像の高さを調整 */
    background: #fff;
}

.slider-container {
    width: 100%;
    height:100%;
}

/* --- 無限ループ・スライドショーの設定 --- */
.slider-inner {
    display: flex;
    /* 280px × 16枚分 の横幅を確保 */
    width: calc(280px * 16); 
    /* 30秒で1周（数字を小さくすると速くなります） */
    animation: marquee 30s linear infinite;
}

.slide {
    /* 画像1枚の幅と高さを固定 */
    width: 280px; 
    height: 200px;
    flex-shrink: 0;
    padding: 0; /* 隙間をなくす */
}

.slide img {
    width: 100%;
    height: 100%;
    object-fit: cover; /* 枠に合わせて綺麗に切り抜き */
    vertical-align: bottom;
}

/* アニメーション：8枚分（2240px）動いたら、瞬時に0に戻す */
@keyframes marquee {
    0% {
        transform: translateX(0);
    }
    100% {
        /* 280px × 8枚 = -2240px */
        transform: translateX(calc(-280px * 8));
    }
}

/* 【追加機能】マウスを乗せた時に一時停止させる（親切設計） */
.slider-inner:hover {
    animation-play-state: paused;
}

/* アニメーションの終点を「280px × 8枚分」に合わせる */
@keyframes marquee {
    0% {
        transform: translateX(0);
    }
    100% {
        /* 8枚分移動した瞬間にループさせる */
        transform: translateX(calc(-280px * 8));
    }
}

.slide img {
    width: 280px;
    height: 200px;
}

/* 文字のオーバーレイ（画像の上で固定） */
.slider-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 115, 187, 0.2); /* 協会カラーの青を薄く被せる */
    display: flex;
    align-items: center;
    justify-content: center;
    pointer-events: none; /* 下の画像をクリック可能にする */
    z-index: 10;
}

.slider-title {
	color: #fff;
	font-size: 14px;
	font-weight: bold;
	text-shadow: 0 0 15px rgba(0,0,0,0.5);
	background: rgba(0, 115, 187, 0.6); /* 文字の背景を少し濃く */
	padding: 10px 30px;
	border-radius: 50px;
}

/* アニメーション：8枚分流れたら最初に戻る */
@keyframes marquee {
    0% { transform: translateX(0); }
    100% { transform: translateX(calc(-25% * 8)); } /* 8枚分移動 */
}

/* スマホ対応：スマホでは2枚表示にする */
@media (max-width: 768px) {
    .main-slider { height: 200px; }
    .slide { width: 50%; } /* スマホは1/2サイズ */
    .slider-title { font-size: 20px; padding: 5px 15px; }
    @keyframes marquee {
        100% { transform: translateX(calc(-50% * 8)); }
    }
}

/* ナビゲーションの修正 */
.pc-nav ul {
    display: flex;
    flex-wrap: wrap;       /* ★折り返しを許可する */
    justify-content: flex-end; /* 基本は右寄せ */
    gap: 10px;             /* 項目間の隙間 */
    list-style: none;
    margin: 0;
    padding: 0;
}

/* 画面が小さくなった時の調整 */
@media (max-width: 768px) {
    .header-inner {
        flex-direction: column; /* ロゴとメニューを縦に並べる */
        align-items: center;    /* 中央に寄せる */
        text-align: center;
    }

    .pc-nav {
        width: 100%;
        margin-top: 10px;      /* ロゴとの間に少し隙間を作る */
    }

    .pc-nav ul {
        justify-content: center; /* 2段になった時に中央に並べる */
    }

    .pc-nav ul li a {
        font-size: 13px;       /* スマホ等では少し文字を小さく */
        padding: 8px 10px;     /* タップしやすいように少し上下を広げる */
        display: block;
        background: #f0f4f8;   /* 2段時にボタンらしく見えるよう薄く色付け（任意） */
        border-radius: 4px;
    }
}

/* スライダーの外枠：ここも幅を固定or制限すると安定します */
.main-slider {
    width: 100%;
    overflow: hidden;
    height: 200px;
    background: #fff;
}

/* スライダーの中身：16枚分（280px * 16 = 4480px）を強制指定 */
.slider-inner {
    display: flex !important; /* 強制的に横並び */
    width: 4480px !important; /* 280px * 16枚 */
    animation: marquee 30s linear infinite !important;
}

/* 各スライド：幅280pxを強制指定 */
.slide {
    width: 280px !important;
    height: 200px !important;
    flex-shrink: 0 !important;
    padding: 0 !important;
    margin: 0 !important;
}

.slide img {
    width: 280px !important;
    height: 200px !important;
    object-fit: cover;
}

/* アニメーション：8枚分（2240px）動いたら0に戻す */
@keyframes marquee {
    0% {
        transform: translateX(0);
    }
    100% {
        /* 280px * 8枚 = 2240px */
        transform: translateX(-2240px);
    }
}


.design-table thead tr td {

}

/* --- テーブル内の画像レスポンシブ設定 --- */

.event-table td img {
    /* 1. セルの幅（td）に合わせて、はみ出さないように縮小する */
    max-width: 100% !important; 
    
    /* 2. 画像が元々小さい場合に、無理やり大きくならないよう上限を決める */
    /* 150pxはお好みのサイズ（100px〜200px程度）に調整してください */
    width: 150px; 
    
    /* 3. 横幅に合わせて高さも自動で変え、比率を保つ */
    height: auto !important;
    
    /* 4. 画像の周りに少し余白を作ると見やすくなります */
    margin: 5px 0;
    display: block; /* 画像の下にできる謎の隙間を消す設定 */
}

/* スマホなど画面が極端に狭い時、画像をさらに小さくする場合 */
@media (max-width: 480px) {
    .event-table td img {
        width: 80px; /* スマホではさらにコンパクトに */
    }
}

/* --- テーブル内の集合写真などを可変にする設定 --- */

.event-table td img {
    /* 1. 横幅を100%にすることで、親の枠（td）に合わせて縮小するようにします */
    width: 100% !important;
    
    /* 2. 最大幅を制限（集合写真なら少し大きめの600px〜800px程度がおすすめ） */
    /* 画面が800pxより広ければ800pxで止まり、狭ければ画面に合わせて縮みます */
    max-width: 800px !important; 
    
    /* 3. 高さは自動調整にして、写真が縦に潰れないようにします */
    height: auto !important;
    
    /* 4. 写真を中央に寄せる設定 */
    display: block;
    margin: 10px auto;
}

/* スマホ用の微調整（画面幅が600px以下の場合） */
@media (max-width: 600px) {
    .event-table td {
        padding: 5px; /* 余白を削って写真を大きく見せる */
    }
}

/* --- 功労者表彰セクションの調整 --- */

/* 1. 顕彰タイトルの中央揃え */
.award-year-title {
    text-align: center;
    font-size: 1.2rem;
    font-weight: bold;
    margin: 20px 0;
    color: #333;
}

/* 2. 部門名の背景水色 ＆ 中央揃え */
.event-table td.category-header {
    background-color: #e0f2ff !important; /* 明るい水色 */
    text-align: center !important;        /* 中央揃え */
    font-weight: bold;
    padding: 10px;
    color: #005a9c;                       /* 少し濃い青字で読みやすく */
}

/* 表全体の文字配置の基本設定（お名前などは左寄せを維持） */
.event-table td.pos-name {
    text-align: left;
    padding-left: 20px; /* お名前の前に少し余白 */
}
