/* 基本設定 */
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: px;
	
}

/* ヘッダー */
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: 5px;
    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; /* お名前の前に少し余白 */
}

/* --- TASSページ専用スタイル --- */

/* メニューが多い場合の調整（2段・3段になっても綺麗に） */
.pc-nav ul {
    display: flex;
    flex-wrap: wrap; /* 折り返しを許可 */
    justify-content: center;
    gap: 8px;
    padding: 10px 0;
}

.pc-nav ul li a {
    font-size: 13px; /* 少し小さくして1行に入る確率を上げる */
    padding: 6px 10px;
    background: #f0f4f8;
    border-radius: 4px;
    white-space: nowrap;
}

/* スライドショーのフレキシブル化（親要素） */
.main-slider {
    width: 100%;
    overflow: hidden;
    background: #000; /* 写真が際立つよう黒背景 */
    margin: 20px 0;
}

/* スライドショー本体（以前の280px設定を継承） */
.slider-inner {
    display: flex !important;
    width: 4480px !important; /* 280px * 16枚 */
    animation: marquee 30s linear infinite !important;
}

.slide {
    width: 280px !important;
    height: 200px !important;
    flex-shrink: 0;
}

.slide img {
    width: 100%;
    height: 100%;
    object-fit: contain; /* 集合写真など比率が大事なものは contain が安全 */
}

/* お問い合わせエリアの装飾 */
.info-section {
    margin-top: 40px;
    border-left: 5px solid #0073bb;
    padding: 20px;
}

.info-section h3 {
    margin-top: 0;
    color: #0073bb;
}

/* スマホ表示の時はメニューをボタン形式にする */
@media (max-width: 768px) {
    .pc-nav ul li {
        width: 48%; /* 2列並びにする */
    }
    .pc-nav ul li a {
        display: block;
        text-align: center;
    }
}

/* --- 1枚表示のスライドショー設定 --- */

.single-slider-container {
    width: 100%;
    max-width: 620px;   /* ご希望の幅 */
    height: 450px;      /* ご希望の高さ */
    margin: 30px auto;  /* 中央配置 */
    position: relative;
    overflow: hidden;
    border: 5px solid #fff;
    box-shadow: 0 0 15px rgba(0,0,0,0.2);
}

.single-slider {
    width: 100%;
    height: 100%;
    position: relative;
}

.single-slide {
	width: 100%;
	height: 100%;
	position: absolute;
	top: 0;
	left: -1px;
	opacity: 0; /* 最初は透明 */
	animation: fadeSlider 20s infinite; /* 20秒で1周（枚数に合わせて調整） */
}

.single-slide img {
    width: 100%;
    height: 100%;
    object-fit: contain; /* 画像を切らずに収める */
    background-color: #333; /* 余白を暗くして写真を引き立てる */
}

/* 各画像の表示タイミングをずらす（5枚の場合の例） */
.single-slide:nth-child(1) { animation-delay: 0s; }
.single-slide:nth-child(2) { animation-delay: 4s; }
.single-slide:nth-child(3) { animation-delay: 8s; }
.single-slide:nth-child(4) { animation-delay: 12s; }
.single-slide:nth-child(5) { animation-delay: 16s; }

/* フェードアニメーション */
@keyframes fadeSlider {
    0% { opacity: 0; }
    5% { opacity: 1; }   /* 5%の地点でパッと表示 */
    20% { opacity: 1; }  /* 20%まで表示維持 */
    25% { opacity: 0; }  /* 消える */
    100% { opacity: 0; }
}

/* スマホ対応：画面が狭いときは高さを自動にして比率を保つ */
@media (max-width: 620px) {
    .single-slider-container {
        height: auto;
        aspect-ratio: 620 / 450; /* 比率を維持 */
    }
}
/* --- キャプション（説明文）の装飾 --- */
.slide-caption {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    background: rgba(0, 0, 0, 0.7); /* 半透明の黒背景 */
    color: #fff;
    text-align: center;
    padding: 10px 0;
    font-size: 14px;
    /* 画像と一緒に表示されるよう、親の.single-slideに含まれているため自動でフェードします */
}

/* 画像の高さをテキスト分だけ少し確保するために調整（任意） */
.single-slider-container {
    height: 500px; /* テキストが入る分、少し高く（450pxから500pxへ）すると余裕が出ます */
}

/* --- トップページ専用スタイル --- */

/* スライドショーの幅調整（9枚×2セット = 18枚の場合） */
/* 280px * 18 = 5040px */
.slider-inner {
    display: flex !important;
    width: 5040px !important; 
    animation: marquee-top 40s linear infinite !important;
}

/* 9枚分（280px * 9 = 2520px）動いたら戻す設定 */
@keyframes marquee-top {
    0% { transform: translateX(0); }
    100% { transform: translateX(-2520px); }
}

/* 導入文の装飾 */
.top-intro {
    text-align: center;
    font-size: 1.1rem;
    line-height: 1.8;
    color: #005a9c;
    margin-bottom: 40px;
    border-top: 4px solid #0073bb;
}

/* お知らせリストの微調整（カテゴリラベルなど） */
.label-info { background-color: #0073bb; }   /* 青 */
.label-event { background-color: #28a745; }  /* 緑 */
.label-update { background-color: #6c757d; } /* 灰 */

/* フッターを全幅にする設定 */
.main-footer {
    background: #333;
    color: #fff;
    padding: 20px 0;
    text-align: center;
    margin-top: 50px;
}

/* --- セクション間の間隔調整 --- */

/* 1. スライドショーと最新情報の間の余白を狭くする */
.main-slider {
    margin-bottom: 10px !important; /* 数値を小さくするほど狭くなります */
}

/* 2. 各セクション（最新情報、お問い合わせ等）の上下の余白を狭くする */
.content-section {
    padding-top: 10px !important;    /* セクション内の上の余白 */
    padding-bottom: 10px !important; /* セクション内の下の余白 */
    margin-top: 10px !important;     /* セクション外の上の余白 */
    margin-bottom: 10px !important;  /* セクション外の下の余白 */
}

/* 3. カードスタイル（背景白の枠）の上下余白を微調整 */
.card-style {
    margin-top: 5px !important;
    margin-bottom: 5px !important;
}

/* --- フッターの高さ調整 --- */
/* 1. フッター全体の余白を最小限にする */
footer, .main-footer {
    padding-top: 5px !important;
    padding-bottom: 5px !important;
    min-height: auto !important; /* 最低限の高さを解除 */
}

/* 2. footerの中にあるcontainerの余白を削る (これが原因の可能性大) */
footer .container, .main-footer .container {
    padding-top: 0 !important;
    padding-bottom: 0 !important;
    margin-top: 0 !important;
    margin-bottom: 0 !important;
}

/* 3. 中にあるテキストの上下余白も完全に消す */
footer p, .main-footer p, footer div {
    margin: 0 !important;
    padding: 5px 0 !important; /* 文字の上下に最低限の隙間だけ作る */
    line-height: 1.2 !important; /* 行間を詰める */