/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Noto Sans JP', sans-serif;
    line-height: 1.6;
    color: #1a1a1a;
    background-color: #f9fafb;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
}

/* Header Styles */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 50;
    transition: all 0.3s ease;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(12px);
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
}

#header .container {
    margin: 0;
    max-width: none;
}

.header.scrolled {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(12px);
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
}

.header-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 4rem;
}

.logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}
.logo a{
    text-decoration: none;
}
/*.logo-icon {*/
/*  width: 2.5rem;*/
/*  height: 2.5rem;*/
/*  background: linear-gradient(135deg, #ec4899, #2563eb);*/
/*  border-radius: 50%;*/
/*  display: flex;*/
/*  align-items: center;*/
/*  justify-content: center;*/
/*  color: white;*/
/*  font-weight: bold;*/
/*  font-size: 0.875rem;*/
/*}*/
.logo-icon img {
    width: 2.5rem;
    height: 2.5rem;;
}

.logo-text h1 {
    font-size: 1.5rem;
    font-weight: bold;
    transition: color 0.3s ease;
    color: #1f2937;
}

.header.scrolled .logo-text h1 {
    color: #1f2937;
}

.logo-text p {
    font-size: 1rem;
    transition: color 0.3s ease;
    color: #6b7280;
}

.header.scrolled .logo-text p {
    color: #6b7280;
}

.desktop-nav {
    display: none;
    align-items: center;
    gap: 2rem;
}

/* 会長挨拶 */
.table_greeting{

}
.table_greeting tr{
    border:none;
}
.table_greeting tr td{
    border:none;
}
.table_greeting tr td.photo{
    width: 138px;
}
.table_greeting tr td.profile{
    text-align: left;
    vertical-align: bottom;
    font-weight: bold;
    padding-left: 1em;
}

@media (min-width: 1024px) {
    .desktop-nav {
        display: flex;
    }
}

.nav-link {
    font-size: 0.875rem;
    font-weight: 500;
    text-decoration: none;
    transition: all 0.3s ease;
    position: relative;
    color: white;
}

.header.scrolled .nav-link {
    color: #374151;
}

.nav-link:hover {
    transform: translateY(-2px);
    color: #fbbf24;
}

.header.scrolled .nav-link:hover {
    color: #2563eb;
}

.nav-link.active {
    color: #fbbf24;
}

.header.scrolled .nav-link.active {
    color: #2563eb;
}

.nav-link.active::after {
    content: '';
    position: absolute;
    bottom: -0.25rem;
    left: 0;
    right: 0;
    height: 2px;
    background: #fbbf24;
}

.header.scrolled .nav-link.active::after {
    background: #2563eb;
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.lang-toggle {
    display: none;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 0.75rem;
    border-radius: 0.5rem;
    font-size: 0.875rem;
    font-weight: 500;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    background: #2563eb;
    color: white;
}
.lang-toggle a{
	color:white;
	text-decoration:none;
}
.mobile-lang-toggle a{
	text-decoration:none;
}

@media (min-width: 768px) {
    .lang-toggle {
        display: flex;
    }


}

.header.scrolled .lang-toggle {
    background: #2563eb;
    color: white;
}

.lang-toggle:hover {
    transform: scale(1.05);
}

.header.scrolled .lang-toggle:hover {
    background: #1d4ed8;
}

.lang-toggle .icon {
    width: 1rem;
    height: 1rem;
}

.mobile-menu-btn {
    display: block;
    padding: 0.5rem;
    border-radius: 0.5rem;
    border: none;
    background: none;
    cursor: pointer;
    transition: all 0.3s ease;
    color: #374151;
}

@media (min-width: 1024px) {
    .mobile-menu-btn {
        display: none;
    }
}

.header.scrolled .mobile-menu-btn {
    color: #374151;
}

.mobile-menu-btn:hover {
    background: #f3f4f6;
}

.header.scrolled .mobile-menu-btn:hover {
    background: #f3f4f6;
}

.mobile-menu-btn svg {
    width: 1.5rem;
    height: 1.5rem;
}

.mobile-nav {
    display: none;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(12px);
    border-radius: 0.5rem;
    margin-top: 0.5rem;
    padding: 1rem;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);

    max-height: 80vh;   /* 画面の80%まで */
    overflow-y: auto;   /* 縦スクロール可能に */
    -webkit-overflow-scrolling: touch; /* iOSでスムーズスクロール */
}

.mobile-nav.open {
    display: block;
    animation: slideDown 0.3s ease-out;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.mobile-nav-link {
    display: block;
    padding: 0.75rem 1rem;
    font-size: 0.875rem;
    font-weight: 500;
    border-radius: 0.5rem;
    text-decoration: none;
    transition: all 0.3s ease;
    color: #374151;
}

.mobile-nav-link:hover {
    background: #f3f4f6;
}

.mobile-nav-link.active {
    background: #dbeafe;
    color: #2563eb;
}

.mobile-lang-toggle {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    width: 100%;
    margin-top: 1rem;
    padding: 0.75rem 1rem;
    background: #2563eb;
    color: white;
    border-radius: 0.5rem;
    font-size: 0.875rem;
    font-weight: 500;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
}

.mobile-lang-toggle:hover {
    background: #1d4ed8;
}

.mobile-lang-toggle .icon {
    width: 1rem;
    height: 1rem;
}
.mobile-lang-toggle a {
    color: white !important;
}
/* Sidebar Styles */
.sidebar {
    /*position: fixed;*/
    position: absolute;
    left: 0;
    top: 4rem;
    /*height: calc(100vh - 4rem);*/
    /*height: 100%;*/
    width: 16rem;
    background: white;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    z-index: 40;
    /*overflow-y: auto;*/
    animation: slideInLeft 0.6s ease-out;
}

@keyframes slideInLeft {
    from {
        transform: translateX(-100%);
    }
    to {
        transform: translateX(0);
    }
}

.sidebar-header {
    background: #14b8a6;
    color: white;
    padding: 0.75rem;
    text-align: center;
    font-size: 0.875rem;
    font-weight: 500;
}

.sidebar-nav {
    padding: 1rem 0;
}

.sidebar-link {
    display: block;
    padding: 0.75rem 1rem;
    font-size: 0.875rem;
    border-bottom: 1px solid #f3f4f6;
    text-decoration: none;
    color: #374151;
    transition: all 0.3s ease;
}

.sidebar-link:hover {
    background: #f9fafb;
}

.sidebar-link.active {
    background: #fdf2f8;
    color: #be185d;
    border-left: 4px solid #be185d;
}

.sidebar-link.highlight {
    background: #f0fdf4;
    color: #166534;
}

.sidebar-link.special {
    background: #fef2f2;
    color: #dc2626;
}

.sidebar-footer {
    padding: 1rem;
    border-top: 1px solid #e5e7eb;
}

.sidebar-footer p {
    font-size: 0.75rem;
    color: #6b7280;
    margin-bottom: 0.75rem;
}

.social-links {
    display: flex;
    gap: 0.5rem;
}

.social-link {
    width: 2rem;
    height: 2rem;
    background: #2563eb;
    border-radius: 0.25rem;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 0.75rem;
    font-weight: bold;
    text-decoration: none;
    transition: all 0.3s ease;
}

.social-link:hover {
    transform: scale(1.1);
    background: #1d4ed8;
}

/* Main Content */
.main-content {
    margin-left: 16rem;
    min-height: 900px;
    background:linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
}

@media (max-width: 1023px) {
    .main-content {
        margin-left: 0;
    }

    .sidebar {
        transform: translateX(-100%);
        animation: none;
    }
}

/* Hero Section */
.hero {
    position: relative;
    /*height: calc(100vh - 4rem);*/
    margin-top: 4rem;
    background-image: url('../img/top.jpg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    /*background: rgba(0, 0, 0, 0.2);*/
}

/* Page Header */
.page-header {
    margin-top: 4rem;
    padding: 1rem 0;
    background: linear-gradient(135deg, #e0e7ff 0%, #f3e8ff 50%, #fce7f3 100%);
    color: #374151;
    text-align: center;
    border-bottom: 1px solid #e5e7eb;
    position: relative;
    overflow: hidden;
}

.page-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    animation: shimmer 3s infinite;
}

@keyframes shimmer {
    0% {
        left: -100%;
    }
    100% {
        left: 100%;
    }
}

.page-header h1 {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    color: #374151;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
    position: relative;
    z-index: 1;
}

.page-header p {
    font-size: 0.725rem;
    padding: 0.5rem 0;
    position: relative;
    z-index: 1;
    opacity: 0.9;
}

/* Information Section */
.information {
    padding: 2rem 0;
    background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
    margin-top: 0;
    position: relative;
}

.information::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grain" width="100" height="100" patternUnits="userSpaceOnUse"><circle cx="25" cy="25" r="1" fill="rgba(0,0,0,0.02)"/><circle cx="75" cy="75" r="1" fill="rgba(0,0,0,0.01)"/><circle cx="50" cy="10" r="0.5" fill="rgba(0,0,0,0.015)"/></pattern></defs><rect width="100" height="100" fill="url(%23grain)"/></svg>');
    opacity: 0.3;
    pointer-events: none;
}

.information-content {
    max-width: 64rem;
    margin: 0 auto;
    padding: 0 2rem;
    position: relative;
    z-index: 1;
}

.section-header {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 2rem;
}

.section-header h2 {
    color: #1f2937;
    font-size: 1.5rem;
    font-weight: 700;
}

.news-card {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    border-radius: 1.5rem;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    height: 400px;
    overflow: hidden;
    position: relative;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.news-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #667eea, #764ba2, #f093fb, #f5576c);
    background-size: 300% 100%;
    animation: gradientShift 3s ease-in-out infinite;
}

@keyframes gradientShift {
    0%, 100% {
        background-position: 0 50%;
    }
    50% {
        background-position: 100% 50%;
    }
}

.news-card-content {
    height: 100%;
    overflow-y: auto;
    padding: 0.5rem 0;
}

.news-card-content::-webkit-scrollbar {
    width: 6px;
}

.news-card-content::-webkit-scrollbar-track {
    background: rgba(0, 0, 0, 0.05);
    border-radius: 3px;
}

.news-card-content::-webkit-scrollbar-thumb {
    background: linear-gradient(135deg, #667eea, #764ba2);
    border-radius: 3px;
}

.news-card-content::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(135deg, #5a67d8, #6b46c1);
}

.news-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem 1.5rem;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    animation: fadeInUp 0.6s ease-out forwards;
    opacity: 0;
    position: relative;
    overflow: hidden;
}

.news-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(102, 126, 234, 0.1), transparent);
    transition: left 0.5s ease;
}

.news-item:hover::before {
    left: 100%;
}

.news-item:last-child {
    border-bottom: none;
}

.news-item:hover {
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.05), rgba(118, 75, 162, 0.05));
    transform: translateX(8px);
    box-shadow: 0 10px 25px -5px rgba(102, 126, 234, 0.2);
}

.news-meta {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    background: linear-gradient(135deg, #f8f9fa, #e9ecef);
    color: #495057;
    border: 1px solid #dee2e6;
    padding: 0.5rem 1rem;
    border-radius: 1rem;
    font-size: 0.875rem;
    font-weight: 600;
    box-shadow: 0 2px 4px -1px rgba(0, 0, 0, 0.1);
    min-width: 140px;
    justify-content: center;
}

.news-meta .icon {
    width: 1rem;
    height: 1rem;
    filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.1));
}

.news-title {
    font-weight: 600;
    text-decoration: none;
    color: #1f2937;
    transition: all 0.3s ease;
    margin: 0 1.5rem;
    flex: 1;
    font-size: 0.95rem;
    line-height: 1.5;
    position: relative;
}

.news-title:hover {
    color: #667eea;
    transform: translateY(-1px);
}

.news-title.blue {
    color: #2563eb;
    font-weight: 700;
}

.news-title.blue:hover {
    color: #1d4ed8;
    text-shadow: 0 2px 4px rgba(37, 99, 235, 0.2);
}

.external-link {
    width: 1.25rem;
    height: 1.25rem;
    color: #667eea;
    opacity: 0;
    transition: all 0.3s ease;
    background: rgba(102, 126, 234, 0.1);
    border-radius: 50%;
    padding: 0.25rem;
}

.news-item:hover .external-link {
    opacity: 1;
    transform: rotate(45deg) scale(1.1);
    background: rgba(102, 126, 234, 0.2);
}

/* Enhanced animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px) scale(0.95);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.news-item:nth-child(1) {
    animation-delay: 0.1s;
}

.news-item:nth-child(2) {
    animation-delay: 0.15s;
}

.news-item:nth-child(3) {
    animation-delay: 0.2s;
}

.news-item:nth-child(4) {
    animation-delay: 0.25s;
}

.news-item:nth-child(5) {
    animation-delay: 0.3s;
}

.news-item:nth-child(6) {
    animation-delay: 0.35s;
}

.news-item:nth-child(7) {
    animation-delay: 0.4s;
}

.news-item:nth-child(8) {
    animation-delay: 0.45s;
}

/* Event Overview Section */
.event-overview {
    padding: 3rem 0;
    /*background: white;*/
    background:linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
}

.overview-content {
    max-width: 64rem;
    margin: 0 auto;
    padding: 0 2rem;
}

.overview-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    margin-bottom: 3rem;
}

@media (max-width: 768px) {
    .overview-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    .table_greeting{
        width: 100%;
    }
    .table_greeting td{
        width: 100%;
        display: block;
    }
    .table_greeting tr td.photo{
        width: auto;
        text-align: center;
    }
    .table_greeting tr td.profile{
        text-align: center;
        vertical-align: bottom;
        padding-left: 0;
    }
    .table_greeting tr td.profile2{
        text-align: center;
        vertical-align: bottom;
    }
    .table_greeting{
        /*display: flex;*/
    }
    .table_greeting > td:nth-child(1) { order: 2; }
    .table_greeting > td:nth-child(2) { order: 1; }
}

.overview-card {
    background: #f8fafc;
    border-radius: 1rem;
    padding: 2rem;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    border: 1px solid #e2e8f0;
}

.overview-item {
    display: flex;
    margin-bottom: 1.5rem;
    align-items: flex-start;
}

.overview-item:last-child {
    margin-bottom: 0;
}

.overview-label {
    min-width: 120px;
    font-weight: 600;
    color: #374151;
    background: #e5e7eb;
    padding: 0.5rem 1rem;
    border-radius: 0.5rem;
    font-size: 0.875rem;
    /*margin-right: 1rem;*/
    margin: auto 1rem;
    text-align: center;
}

.overview-value {
    flex: 1;
    color: #1f2937;
    line-height: 1.6;
    padding: 0.5rem 0;
}

.overview-description {
    background: linear-gradient(135deg, #f0f9ff 0%, #e0f2fe 100%);
    border-radius: 1rem;
    padding: 2rem;
    border-left: 4px solid #0ea5e9;
}

.overview-description h3 {
    color: #0c4a6e;
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.overview-description p {
    color: #374151;
    line-height: 1.7;
    margin-bottom: 1rem;
}

.overview-description p:last-child {
    margin-bottom: 0;
}

/* Additional Information */
.additional-info {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.info-section {
    background: #f8fafc;
    border-radius: 1rem;
    padding: 2rem;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    border: 1px solid #e2e8f0;
}

.info-section h3 {
    color: #1f2937;
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 1rem;
    border-bottom: 2px solid #667eea;
    padding-bottom: 0.5rem;
}

.info-section ul {
    list-style: none;
    padding: 0;
}

.info-section li {
    padding: 0.5rem 0;
    border-bottom: 1px solid #e5e7eb;
    position: relative;
    padding-left: 1.5rem;
}

.info-section li:before {
    content: '•';
    color: #667eea;
    font-weight: bold;
    position: absolute;
    left: 0;
}

.info-section li:last-child {
    border-bottom: none;
}

.fee-table {
    background: white;
    border-radius: 0.5rem;
    overflow: hidden;
    box-shadow: 0 2px 4px -1px rgba(0, 0, 0, 0.1);
}

.fee-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 1.5rem;
    border-bottom: 1px solid #e5e7eb;
}

.fee-row:last-child {
    border-bottom: none;
}

.fee-category {
    font-weight: 600;
    color: #374151;
}

.fee-amount {
    font-weight: 700;
    color: #667eea;
    font-size: 1.125rem;
}

.news-card {
    background: white;
    border-radius: 0.5rem;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
    height: 320px;
    /*overflow: hidden;*/
    overflow: auto;
}

.news-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    /*padding: 1.5rem;*/
    padding: 0.6rem 1.5rem;
    border-bottom: 1px solid #f3f4f6;
    transition: all 0.3s ease;
    animation: fadeInUp 0.6s ease-out forwards;
    opacity: 0;
}

.news-item:last-child {
    border-bottom: none;
}

.news-item:hover {
    background: #f9fafb;
}

.news-item:nth-child(1) {
    animation-delay: 0.1s;
}

.news-item:nth-child(2) {
    animation-delay: 0.2s;
}

.news-item:nth-child(3) {
    animation-delay: 0.3s;
}

.news-item:nth-child(4) {
    animation-delay: 0.4s;
}

.news-item:nth-child(5) {
    animation-delay: 0.5s;
}

.news-item:nth-child(6) {
    animation-delay: 0.6s;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.news-meta {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: #6b7280;
}

.news-meta .icon {
    width: 1rem;
    height: 1rem;
}

.news-meta span {
    font-size: 0.875rem;
    font-weight: 500;
}

.news-title {
    font-weight: 500;
    text-decoration: none;
    color: #1f2937;
    transition: all 0.3s ease;
    margin: 0 1rem;
    flex: 1;
}

.news-title:hover {
    text-decoration: underline;
    color: #6b7280;
}

.news-title.blue {
    color: #2563eb;
}

.news-title.blue:hover {
    color: #1d4ed8;
}

.external-link {
    width: 1rem;
    height: 1rem;
    color: #9ca3af;
    opacity: 0;
    transition: all 0.3s ease;
}

.news-item:hover .external-link {
    opacity: 1;
}

/* Responsive Design */
@media (max-width: 767px) {
    .logo-text {
        /*display: none;*/
    }

    .logo-text h1 {
        font-size: 1rem;
        /*font-weight: bold;*/
        /*transition: color 0.3s ease;*/
        /*color: #1f2937;*/
    }

    .logo-text p {
        font-size: 0.7rem;
        /*transition: color 0.3s ease;*/
        /*color: #6b7280;*/
    }

    .information-content {
        padding: 0 1rem;
    }

    .news-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
    }

    .news-meta {
        order: 1;
    }

    .news-title {
        order: 2;
        margin: 0;
    }

    .external-link {
        order: 3;
        opacity: 1;
    }
}

/* Utility Classes */
.hidden {
    display: none;
}

.icon {
    width: 1.5rem;
    height: 1.5rem;
}

.footer {
    border-top: solid 1px silver;
    text-align: center;
    padding: 10px 0;
}
