﻿@charset "utf-8";
@import url('https://fonts.googleapis.com/css2?family=Noto+Sans+JP:wght@100..900&display=swap');
@import url('https://fonts.googleapis.com/css2?family=BIZ+UDPGothic&family=Lexend:wght@100..900&display=swap');

:root {
  --primary-color: #B61024;
  --secondary-color: #660712;
}

/* --- 基本設定 --- */
body {
    margin: 0;
    padding: 0;
    font-family: "Noto Sans JP", "Hiragino Kaku Gothic ProN", "Meiryo", sans-serif;
    line-height: 1.6;
    background:#f3f3f3;
    background-image:  url(images/bg.jpg);
    background-size:cover;
    background-position: center center;
    background-attachment: fixed;
    background-repeat: no-repeat;
    color: #444;
}

a {color:var(--primary-color);}
a:hover {color:#ff5165;}

/* ヘッダー（画面幅100%） */
#top-bar {
    padding: 0;
    width: 100%;
    /* position: sticky; */
    top: 0;
    z-index: 100;
}
#top-bar .inner {
    max-width: 1140px;
    margin: 0 auto;
    padding:0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background:var(--primary-color);
    box-shadow:8px 0 8px 0px rgba(0, 0, 0, 0.1), -8px 0 8px 0px rgba(0, 0, 0, 0.1);
}
#top-bar h1 { 
    margin: 0 auto; 
    font-family: "BIZ UDPGothic", "Hiragino Kaku Gothic ProN", "Meiryo", sans-serif;
    font-size: 2.4rem;
    font-weight: 900;
    letter-spacing: 0.05em;
    color:#fff;
    line-height: 1;
}
#top-bar h1 img { width: 100%; }

/* メイン枠 */
#wrapper {
    max-width: 1140px;
    margin: 0 auto;
    background-color: #fff;
    box-shadow:8px 0 8px 0px rgba(0, 0, 0, 0.1), -8px 0 8px 0px rgba(0, 0, 0, 0.1);
    clip-path: inset(-0.5px -100% 0 -100%);
}

#container {
    display: flex; 
    min-height: 500px; 
}

/* 左カラムメニュー */
#side-menu {
    width: 220px;
    background-color: var(--secondary-color);
}

#side-menu ul { list-style: none; margin: 0; padding: 0; }
#side-menu ul li a {
    display: block;
    padding: 15px 20px;
    color: #fff;
    text-decoration: none;
    border-bottom: 1px solid #b99d9d;
    font-size: 1rem;
    font-weight: 600;
}
#side-menu ul li:first-child {
    border-top: 1px solid #b99d9d;
}

#side-menu ul li a:hover {
    background-color: #fafafa;
    color: #3f2b2b;
}
#side-menu ul li a.active {
    background-color: var(--primary-color);
    color: #fff;
}

#side-menu .side-contact-sm {
    padding: 15px 20px;
}

/* 右メインコンテンツ */
#main-content { flex: 1;}
#main-content section { padding: 40px; }
#main-content h2 { color: var(--primary-color); border-bottom: 2px solid var(--primary-color); margin-top: 0; }

/* 右メインコンテンツ スマホ表示 */
@media (max-width: 800px) {
    #main-content section { padding: 20px; }
}

/* トップページ */
#toppage .main-visual img { width: 100%; height: auto; display: block; }

/* 会長挨拶 */
#greeting .president-profile {
    display: flex;
    align-items: flex-end;
    gap: 30px;
    padding-bottom:30px;
    border-bottom:1px solid #f0f0f0;
    margin-bottom: 30px;
}
#greeting .president-image {
    flex: 0 0 200px;
}
#greeting .president-image img {
    width: 100%;
    height: auto;
    border: 1px solid #f0f0f0;
    background: #fff;
}
#greeting .president-info {
    font-size: 1.1rem;
    line-height: 1.3;
    margin-bottom: 5px;
}
#greeting .president-info .president-name {
    font-size: 1.6rem;
    line-height: 1.8;
    font-weight: bold;
    letter-spacing: 0.1em;
}
#greeting .president-facility {
    font-size: 0.9rem;
    line-height: 1.5;
}
#greeting .greeting-message {
    line-height: 2;
    text-align: justify;
}
#greeting .greeting-message h3 {
    color:var(--primary-color);
}
#greeting .greeting-message p {
    margin-bottom: 2em;
}
#greeting .greeting-message dl {
    margin-bottom: 2em;
    border-left: 5px solid var(--primary-color);
}
#greeting .greeting-message dl dt {
    margin-left: 1em;
    font-weight: bold;
}
#greeting .greeting-message dl dd {
    margin-top: -2em;
    margin-left: 4em;
    margin-right: 3em;
}

/* 会長挨拶 スマホ表示 */
@media (max-width: 930px) {
    #greeting .president-image {
        width:280px;
    }
    #greeting .president-profile {
        flex-direction: column; /* 縦並びにする */
        align-items: center;
        gap: 20px;
    }
}

/* 開催概要 */
#outline table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 20px;
    border-top: 1px solid #ddd;
}

#outline table th,
#outline table td {
    padding: 15px 20px;
    border-bottom: 1px solid #ddd;
    text-align: left;
}

#outline table th {
    background-color: #f9f2f2;
    color: var(--secondary-color);
    width: 25%;
    font-weight: 600;
    white-space: nowrap;
}

#outline table td {
    background-color: #fff;
    color: #333;
    line-height: 1.5;
}

/* 開催概要 スマホ表示 */
@media (max-width: 800px) {
    #outline table th,
    #outline table td {
        display: block;
        width: 100%;
        box-sizing: border-box;
    }
    
    #outline table th {
        border-bottom: none;
        padding: 8px 20px;
    }
    
    #outline table td {
        padding-top: 5px;
    }
}

/* 関連リンク */
#link .link-list {
    list-style: none;
    padding: 0;
    margin: 20px 0;
    border-top: 1px solid #eee;
}
#link .link-list li {
    border-bottom: 1px solid #eee;
}
#link .link-list li a {
    display: block;
    padding: 15px 10px;
    text-decoration: none;
    color: #444;
}
#link .link-list li a i {
    color: var(--primary-color);
}
#link .link-list li a:hover {
    background-color: #f9f9f9;
    color: var(--primary-color);
}

#link .link-name {
    display: block;
    font-weight: bold;
    font-size: 1.1rem;
    margin-bottom: 3px;
}
#link .link-url {
    display: block;
    font-size: 0.9rem;
    color: #888;
}

/* 関連リンク スマホ表示 */
@media (max-width: 800px) {
    #link .link-name {
        font-size: 1rem;
    }
    #link .link-url {
        font-size: 0.8rem;
        word-break: break-all; /* 長いURLが画面からはみ出さないように改行させる */
    }
}

/* フッター */
#main-footer {
    background-color: #46262a;
    color: #fff;
    width: 100%; 
    padding: 20px 0 0;
    margin-top: 0;
}
.footer-header {
    max-width: 1140px;
    margin: 0 auto;
    padding: 0 20px;
}
.footer-header h2 {font-weight: normal;}
.footer-inner {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items:align-items;
    max-width: 1140px;
    margin: 0 auto;
    padding: 20px;
}

.footer-info {
    flex: 1; /* 均等に横並び */
    min-width: 0;
}
.footer-info h3 {
    margin:0;
    display: inline-block;
    padding-bottom:5px;
    border-bottom: 2px solid #b99d9d;
}

.footer-copy {
    text-align: center;
    width: 100%;
    padding: 20px 0;
    background:#2e2c2c;
    font-size: 0.8rem;
}

/* フッター スマホ表示 */
@media (max-width: 800px) {

    .footer-inner { flex-direction: column; align-items: flex-start; }

    .footer-info {
        flex: none;
        width: 100%; 
        margin-bottom: 20px;
    }
}

/* メインメニュー スマホ表示 */
@media (max-width: 800px) {
    .menu-btn {
        display: block;
        width: 80px;
        height: 24px;
        position: relative;
        margin: 0 5px;
    }
    .menu-btn span {
        display: block;
        width: 100%;
        height: 3px;
        background: #fff;
        position: absolute;
        transition: 0.3s;
    }
    .menu-btn span:nth-child(1) { top: 0; }
    .menu-btn span:nth-child(2) { top: 10px; }
    .menu-btn span:nth-child(3) { top: 20px; }

    .menu-btn.active span:nth-child(1) { transform: translateY(10px) rotate(-45deg); }
    .menu-btn.active span:nth-child(2) { opacity: 0; }
    .menu-btn.active span:nth-child(3) { transform: translateY(-10px) rotate(45deg); }

    #side-menu {
        position: fixed;
        top: 0; left: -260px;
        width: 260px; height: 100%;
        z-index: 200;
        transition: 0.4s;
        background-color: var(--secondary-color);
        padding-top: 60px;
        display: flex;
        flex-direction: column;
    }
    #side-menu.open { left: 0; }
    
    .side-contact-sm {
        display: block;
        margin-top: auto;
        padding: 20px;
        background: var(--primary-color);
        font-size: 0.8rem;
    }

    .menu-overlay {
        display: none;
        position: fixed;
        top: 0; left: 0;
        width: 100%; height: 100%;
        background: rgba(0,0,0,0.5);
        z-index: 150;
    }
    .menu-overlay.show { display: block; }
}