:root {
    --main-blue: #003060;
    --accent-red: #d70035;
    --text-black: #1a1a1a;
    --white: #ffffff;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Noto Sans JP', sans-serif;
    color: var(--text-black);
    line-height: 1.6;
    background: var(--white);
    overflow-x: hidden;
}

/* Navbar */
.navbar {
    position: fixed;
    width: 100%;
    z-index: 1000;
    padding: 15px 40px;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(8px);
    border-bottom: 1px solid #eee;
}

.nav-container {
    max-width: 1400px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.school-name {
    font-family: 'Noto Serif JP', serif;
    font-size: 1.4rem;
    color: var(--main-blue);
}

.pref {
    font-size: 0.6rem;
    color: #888;
    letter-spacing: 0.2rem;
}

.desktop-nav ul {
    display: flex;
    list-style: none;
}

.desktop-nav li {
    margin-left: 40px;
}

.desktop-nav a {
    text-decoration: none;
    color: var(--text-black);
    font-size: 0.95rem;
    font-weight: 700;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.desktop-nav a span {
    font-size: 0.6rem;
    color: #999;
    font-weight: 400;
    margin-top: 2px;
}

.nav-active {
    color: var(--main-blue) !important;
    border-bottom: 2px solid var(--main-blue);
}

/* Hero Section */
.hero {
    position: relative;
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    padding-left: 10%;
    overflow: hidden;
}

.hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.hero-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: brightness(0.7);
}

.overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, rgba(0, 0, 0, 0.6) 0%, rgba(0, 0, 0, 0.2) 60%);
    z-index: 2;
}

.hero-content {
    position: relative;
    z-index: 10;
}

.main-copy {
    writing-mode: vertical-rl;
    font-family: 'Noto Serif JP', serif;
    font-size: clamp(3rem, 8vw, 5.5rem);
    color: var(--white);
    line-height: 1.4;
    letter-spacing: 0.6rem;
}

.indent {
    margin-top: 3rem;
}

.sub-copy {
    color: rgba(255, 255, 255, 0.7);
    letter-spacing: 0.3rem;
    margin-top: 20px;
    font-weight: 700;
}

/* News Section */
.container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 100px 20px;
}

.section-title {
    font-family: 'Noto Serif JP', serif;
    font-size: 2rem;
    border-bottom: 2px solid var(--main-blue);
    padding-bottom: 10px;
    margin-bottom: 40px;
}

.section-title span {
    font-size: 0.8rem;
    color: #999;
    margin-left: 20px;
    font-family: 'Noto Sans JP', sans-serif;
}

.news-item {
    display: flex;
    align-items: center;
    padding: 25px 0;
    border-bottom: 1px solid #eee;
    text-decoration: none;
    color: inherit;
    transition: 0.3s;
}

.news-item:hover {
    background: #f9f9f9;
    padding-left: 15px;
}

.badge {
    font-size: 0.7rem;
    padding: 4px 12px;
    color: #fff;
    margin-right: 20px;
    border-radius: 2px;
}

.exam {
    background: #666;
}

.club {
    background: var(--main-blue);
}

.info {
    background: var(--accent-red);
}

/* Footer */
.footer {
    background: #111;
    color: #888;
    padding: 60px 40px 20px;
}

.arg-legal {
    font-size: 0.7rem;
    color: #444;
    border-top: 1px solid #222;
    padding-top: 20px;
    margin-bottom: 10px;
}

/* クラブページ共通 */
.club-hero {
    height: 450px;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    background-size: cover;
    background-position: center;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 4;
}

.hero-title {
    z-index: 5;
    text-align: center;
}

.hero-title h2 {
    font-size: 4rem;
    font-family: 'Noto Serif JP', serif;
    letter-spacing: 0.5rem;
}

/* 部活動一覧ページ用スタイル */
.page-intro {
    text-align: center;
    padding: 100px 0 60px;
}

.page-title {
    font-family: 'Noto Serif JP', serif;
    font-size: 2.5rem;
    color: var(--main-blue);
}

.page-title span {
    display: block;
    font-size: 0.8rem;
    color: #999;
    margin-top: 10px;
    font-weight: 300;
}

.lead-text {
    margin-top: 20px;
    font-size: 1rem;
    color: #666;
    line-height: 1.8;
}

.cat-label {
    font-family: 'Noto Serif JP', serif;
    font-size: 1.5rem;
    border-bottom: 2px solid #eee;
    padding-bottom: 10px;
    margin: 60px 0 30px;
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
}

.cat-label span {
    font-size: 0.9rem;
    color: #bbb;
}

/* カードレイアウト */
.club-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
    gap: 30px;
}

.club-card {
    background: #fff;
    border: 1px solid #eee;
    text-decoration: none;
    color: inherit;
    transition: all 0.4s cubic-bezier(0.2, 1, 0.3, 1);
}

.club-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
}

.card-image {
    position: relative;
    height: 220px;
    overflow: hidden;
}

.card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: 0.5s;
}

.club-card:hover .card-image img {
    transform: scale(1.05);
}

.status-badge {
    position: absolute;
    top: 15px;
    left: 15px;
    background: var(--accent-red);
    color: #fff;
    font-size: 0.7rem;
    padding: 4px 12px;
    font-weight: 700;
}

.card-body {
    padding: 25px;
}

.card-body h4 {
    font-size: 1.25rem;
    color: var(--main-blue);
    margin-bottom: 10px;
}

.card-body p {
    font-size: 0.9rem;
    color: #666;
    line-height: 1.6;
    height: 3.2em;
    overflow: hidden;
}

.more-link {
    display: inline-block;
    margin-top: 15px;
    font-size: 0.8rem;
    font-weight: 700;
    color: var(--main-blue);
    border-bottom: 1px solid var(--main-blue);
}

/* 各部活のテーマカラーと背景 */
.soccer-bg {
    background-image: url('https://images.unsplash.com/photo-1543351611-58f69d7c1781?q=80&w=2000');
}

.soccer-bg .hero-overlay {
    background: rgba(0, 20, 40, 0.6);
}

.baseball-bg {
    background-image: url('https://images.unsplash.com/photo-1508344928928-7165b67de128?q=80&w=2000');
}

.baseball-bg .hero-overlay {
    background: rgba(10, 10, 10, 0.6);
}

.volleyball-bg {
    background-image: url('https://images.unsplash.com/photo-1626248596376-e26477292202?q=80&w=2000');
}

.volleyball-bg .hero-overlay {
    background: rgba(10, 20, 30, 0.55);
}

.basketball-bg {
    background-image: url('https://images.unsplash.com/photo-1546519638-68e109498ffc?q=80&w=2000');
}

.basketball-bg .hero-overlay {
    background: rgba(30, 10, 0, 0.6);
}

.brassband-bg {
    background-image: url('https://images.unsplash.com/photo-1511192336575-5a79af67a629?q=80&w=2000');
}

.brassband-bg .hero-overlay {
    background: rgba(20, 20, 20, 0.6);
}

.lightmusic-bg {
    background-image: url('https://images.unsplash.com/photo-1501612780327-45045538702b?q=80&w=2000');
}

.lightmusic-bg .hero-overlay {
    background: rgba(30, 0, 20, 0.6);
}

.art-bg {
    background-image: url('https://images.unsplash.com/photo-1513364776144-60967b0f800f?q=80&w=2000');
}

.art-bg .hero-overlay {
    background: rgba(20, 20, 40, 0.5);
}

.about-bg {
    background-image: url('https://images.unsplash.com/photo-1523050854058-8df90110c9f1?q=80&w=2000');
}

.about-bg .hero-overlay {
    background: rgba(30, 30, 30, 0.5);
}

.academics-bg {
    background-image: url('https://images.unsplash.com/photo-1481627834876-b7833e8f5570?q=80&w=2000');
}

.academics-bg .hero-overlay {
    background: rgba(0, 48, 96, 0.55);
}

/* レイアウト */
.content-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 50px;
    padding: 80px 20px;
}

.section-label {
    border-left: 5px solid var(--main-blue);
    padding-left: 15px;
    margin: 40px 0 20px;
    font-size: 1.4rem;
}

.result-table {
    width: 100%;
    border-collapse: collapse;
}

.result-table th,
.result-table td {
    padding: 15px;
    border-bottom: 1px solid #eee;
    text-align: left;
}

.status-box {
    background: #f0f4f8;
    padding: 30px;
    border-radius: 4px;
}

.alert {
    color: var(--accent-red);
    font-weight: bold;
    margin-top: 15px;
    font-size: 0.85rem;
}

/* 学校紹介ページ用 */
.about-section {
    margin-bottom: 80px;
}

.greeting-grid {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 40px;
    align-items: center;
}

.greeting-img img {
    width: 100%;
    border-radius: 4px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.greeting-title {
    font-family: 'Noto Serif JP', serif;
    font-size: 1.5rem;
    margin-bottom: 20px;
    line-height: 1.4;
    color: var(--main-blue);
}

.philosophy-box {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    text-align: center;
}

.philosophy-item {
    background: #f9f9f9;
    padding: 30px;
    border-radius: 4px;
    border-top: 3px solid var(--main-blue);
}

.philosophy-item h4 {
    font-size: 1.2rem;
    margin-bottom: 10px;
    color: var(--main-blue);
}

.history-table {
    width: 100%;
    border-collapse: collapse;
}

.history-table th {
    width: 15%;
    text-align: center;
    background: #f0f4f8;
    color: var(--main-blue);
}

.history-table td {
    padding: 15px;
}

.access-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 40px;
    align-items: center;
}

.access-info {
    background: #f9f9f9;
    padding: 30px;
    height: 100%;
}

.access-info hr {
    border: none;
    border-top: 1px solid #eee;
    margin: 20px 0;
}

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

.access-info li {
    margin-bottom: 10px;
}

.feature-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
}

.feature-item {
    background: #f9f9f9;
    padding: 30px;
}

.feature-item h4 {
    margin-bottom: 10px;
}

/* コース紹介・カリキュラム */
.course-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
    margin-top: 30px;
}

.course-item {
    background: #fff;
    border: 1px solid #eee;
    padding: 25px;
    border-radius: 4px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
}

.course-item h4 {
    color: var(--main-blue);
    border-bottom: 2px solid var(--accent-red);
    padding-bottom: 10px;
    margin-bottom: 15px;
    font-size: 1.2rem;
}

.curriculum-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 20px;
}

.curriculum-table th,
.curriculum-table td {
    border: 1px solid #ddd;
    padding: 15px;
    vertical-align: top;
}

.curriculum-table th {
    background: #f0f4f8;
    color: var(--main-blue);
    text-align: center;
    font-weight: bold;
}

.curriculum-table td {
    background: #fff;
}