@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600&family=Noto+Sans+JP:wght@300;400;500;600&family=Noto+Serif+JP:wght@300;400;500;600&display=swap');

/* ========================================
   CSS VARIABLES & GLOBAL SETTINGS
   ======================================== */

:root {
    /* カラーパレット */
    --primary-color: #5096DF;
    --primary-dark: #3A5A7A;
    --secondary-color: #2c3e50;
    --text-color: #2c3e50;
    --text-muted: #7f8c8d;
    --text-light: rgba(255, 255, 255, 0.9);
    --background-color: #f5f5f5;
    --surface-color: #ffffff;
    --border-color: rgba(0, 0, 0, 0.06);
    --shadow-light: rgba(0, 0, 0, 0.08);
    --shadow-medium: rgba(0, 0, 0, 0.15);
    
    /* グラデーション */
    --gradient-primary: linear-gradient(135deg, #4C6B8B 0%, #3A5A7A 100%);
    --gradient-primary-soft: linear-gradient(135deg, var(--background-color) 0%, var(--surface-color) 100%);
    
    /* スペーシング */
    --section-padding: 100px 20px;
    --section-padding-small: 60px 20px;
    --section-padding-large: 120px 20px;
    --container-max-width: 1200px;
    --content-max-width: 900px;
    --card-padding: 32px 24px;
    --button-padding: 16px 40px;
    
    /* 角丸 */
    --border-radius-small: 8px;
    --border-radius-medium: 16px;
    --border-radius-large: 24px;
    --border-radius-pill: 50px;
    
    /* 影 */
    --shadow-card: 0 8px 32px var(--shadow-light);
    --shadow-card-hover: 0 24px 64px var(--shadow-medium);
    --shadow-button: 0 8px 32px rgba(116, 185, 255, 0.3);
    --shadow-button-hover: 0 16px 48px rgba(116, 185, 255, 0.4);
    
    /* フォントサイズ */
    --font-size-hero: 4.2rem;
    --font-size-title: 2rem;
    --font-size-subtitle: 1.3rem;
    --font-size-body: 1rem;
    --font-size-small: 0.9rem;
    
    /* トランジション */
    --transition-fast: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-medium: 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ========================================
   RESET & BASE STYLES
   ======================================== */

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

body {
    font-family: 'Inter', 'Noto Sans JP', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    line-height: 1.7;
    color: var(--text-color);
    font-weight: 400;
    background: var(--background-color);
}

/* スマホ専用改行 */
.sp-only {
    display: none;
}

@media (max-width: 768px) {
    .sp-only {
        display: inline;
    }
}

/* ========================================
   ANIMATIONS & TRANSITIONS
   ======================================== */

/* Scroll Animations */
.fade-in {
    opacity: 0;
    animation: fadeIn 1s ease-out forwards;
}

.fade-in-up {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s ease-out;
}

.fade-in-up.visible {
    opacity: 1;
    transform: translateY(0);
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

/* ========================================
   HEADER & NAVIGATION
   ======================================== */

/* Header */
.header {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border-color);
    padding: 15px 0;
    position: fixed;
    top: -100px;
    left: 0;
    right: 0;
    z-index: 1000;
    transition: all var(--transition-fast);
    transform: translateY(0);
}

.header.visible {
    top: 0;
    transform: translateY(0);
}

.header.scrolled {
    background: var(--secondary-color);
    box-shadow: var(--shadow-card);
    border-bottom: 1px solid rgba(0,0,0,0.12);
}

.header.scrolled .header-nav a {
    color: white;
}

.header.scrolled .header-nav .nav-item > a {
    color: white;
}

/* スクロール時のドロップダウンメニューは黒文字 */
.header.scrolled .header-nav .dropdown-menu a {
    color: var(--text-color);
}

.header.scrolled .header-nav .dropdown-menu a:hover {
    color: var(--primary-color);
}

.header.scrolled .header-nav .nav-item.has-dropdown > a::before {
    border-color: white;
}

.header.scrolled .header-nav .nav-item:hover > a {
    color: rgba(255, 255, 255, 0.8);
}

.header.scrolled .hamburger span {
    background: white;
}

.header-nav {
    max-width: var(--container-max-width);
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 40px;
    padding: 0 24px;
    font-size: 15px;
    font-weight: 500;
}

.header-nav a {
    color: #404040;
    text-decoration: none;
    position: relative;
    transition: all var(--transition-fast);
    padding: 8px 0;
}

.header-nav a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--gradient-primary);
    transition: width var(--transition-fast);
}

.header-nav a:hover {
    color: var(--primary-color);
}

.header-nav a:hover::after {
    width: 100%;
}

/* Hero Navigation */
.hero-nav {
    position: absolute;
    top: 30px;
    right: 30px;
    z-index: 10;
    display: flex;
    align-items: center;
    gap: 30px;
}

.hero-nav .nav-item {
    position: relative;
}

.hero-nav .nav-item > a {
    color: white;
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    position: relative;
    transition: all var(--transition-fast);
    padding: 8px 0;
    opacity: 0.9;
    display: flex;
    align-items: center;
    gap: 4px;
}

.hero-nav .nav-item > a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: white;
    transition: width var(--transition-fast);
}

.hero-nav .nav-item:hover > a {
    opacity: 1;
}

.hero-nav .nav-item:hover > a::after {
    width: 100%;
}

/* Dropdown Arrow */
.hero-nav .nav-item.has-dropdown > a::before {
    content: '';
    width: 6px;
    height: 6px;
    border-right: 2px solid white;
    border-bottom: 2px solid white;
    transform: rotate(45deg);
    margin-left: 6px;
    transition: transform var(--transition-fast);
    flex-shrink: 0;
}

.hero-nav .nav-item:hover.has-dropdown > a::before {
    transform: rotate(225deg);
}

/* Dropdown Menu */
.dropdown-menu {
    position: absolute;
    top: calc(100% + 16px);
    left: 0;
    background: var(--surface-color);
    border-radius: var(--border-radius-medium);
    box-shadow: var(--shadow-card);
    border: 1px solid var(--border-color);
    min-width: 200px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all var(--transition-fast);
    z-index: 1000;
}

.hero-nav .nav-item:hover .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.dropdown-menu a {
    display: block;
    color: var(--text-color);
    text-decoration: none;
    padding: 12px 16px;
    font-size: 14px;
    transition: background-color var(--transition-fast);
    border-bottom: 1px solid rgba(0,0,0,0.05);
}

.dropdown-menu a:last-child {
    border-bottom: none;
}

.dropdown-menu a:hover {
    background-color: var(--background-color);
    color: var(--primary-color);
}

/* Header Navigation */
.header-nav .nav-item {
    position: relative;
}

.header-nav .nav-item > a {
    color: #404040;
    text-decoration: none;
    position: relative;
    transition: all var(--transition-fast);
    padding: 8px 0;
    display: flex;
    align-items: center;
    gap: 4px;
    font-size: 14px;
}

.header-nav .nav-item.has-dropdown > a::before {
    content: '';
    width: 6px;
    height: 6px;
    border-right: 2px solid #404040;
    border-bottom: 2px solid #404040;
    transform: rotate(45deg);
    margin-left: 6px;
    transition: all var(--transition-fast);
    flex-shrink: 0;
}

.header-nav .nav-item:hover.has-dropdown > a::before {
    transform: rotate(225deg);
    border-color: var(--primary-color);
}

.header-nav .nav-item > a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--gradient-primary);
    transition: width var(--transition-fast);
}

.header-nav .nav-item:hover > a {
    color: var(--primary-color);
}

.header-nav .nav-item:hover > a::after {
    width: 100%;
}

.header-nav .nav-item:hover .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

/* Search Icon */
.search-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: rgba(255,255,255,0.1);
    cursor: pointer;
    transition: all var(--transition-fast);
}

.hero-nav .search-icon {
    background: rgba(0,0,0,0.3);
}

.hero-nav .search-icon:hover {
    background: rgba(0,0,0,0.5);
}

.header-nav .search-icon {
    background: rgba(0,0,0,0.3);
}

.header-nav .search-icon:hover {
    background: rgba(0,0,0,0.5);
}

.search-icon svg {
    width: 16px;
    height: 16px;
    fill: currentColor;
}

/* Mobile Menu Updates */
.mobile-menu {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background: var(--gradient-primary);
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: stretch;
    padding: 80px 20px 20px;
    transform: translateX(-100%);
    transition: transform var(--transition-medium);
    z-index: 999;
    overflow-y: auto;
}

.mobile-menu.active {
    transform: translateX(0);
}

.mobile-menu .nav-item {
    margin-bottom: 8px;
    position: relative;
}

.mobile-menu .nav-item > a {
    color: white;
    text-decoration: none;
    font-size: 1.2rem;
    font-weight: 500;
    padding: 16px 0;
    display: block;
    border-bottom: 1px solid rgba(255,255,255,0.1);
    transition: opacity var(--transition-fast);
}

.mobile-menu .nav-item > a:hover {
    opacity: 0.8;
}

.mobile-menu .expand-btn {
    color: white;
    background: none;
    border: none;
    font-size: 1.2rem;
    cursor: pointer;
    padding: 4px;
    transition: transform var(--transition-fast);
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0;
}

.mobile-menu .expand-btn::before {
    content: '';
    width: 16px;
    height: 2px;
    background: white;
    position: absolute;
    transition: transform var(--transition-fast);
}

.mobile-menu .expand-btn::after {
    content: '';
    width: 2px;
    height: 16px;
    background: white;
    position: absolute;
    transition: transform var(--transition-fast);
}

.mobile-menu .expand-btn.active::before {
    transform: rotate(45deg);
}

.mobile-menu .expand-btn.active::after {
    transform: rotate(45deg);
}

.mobile-menu .submenu {
    display: none;
    padding-left: 20px;
}

.mobile-menu .submenu.active {
    display: block;
}

.mobile-menu .submenu a {
    color: rgba(255,255,255,0.8);
    text-decoration: none;
    font-size: 1rem;
    font-weight: 400;
    padding: 12px 0;
    display: block;
    border-bottom: 1px solid rgba(255,255,255,0.05);
    transition: color var(--transition-fast);
}

.mobile-menu .submenu a:hover {
    color: white;
}

/* ハンバーガーメニュー */
.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
    padding: 8px;
    z-index: 1001;
}

.hamburger span {
    width: 24px;
    height: 2px;
    background: white;
    margin: 3px 0;
    transition: all var(--transition-fast);
    transform-origin: center;
}

.hero .hamburger span {
    background: white;
}

.header .hamburger span {
    background: var(--text-color);
}

.hamburger.active span:nth-child(1) {
    transform: rotate(45deg) translate(6px, 6px);
}

.hamburger.active span:nth-child(2) {
    opacity: 0;
}

.hamburger.active span:nth-child(3) {
    transform: rotate(-45deg) translate(6px, -6px);
}

/* ========================================
   HERO & PAGE HEADER SECTIONS
   ======================================== */

/* Hero Section */
.hero {
    background: url('../images/fv.jpg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    color: white;
    text-align: center;
    padding: var(--section-padding-large);
    position: relative;
    overflow: hidden;
}

/* Page Header */
.page-header {
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    color: white;
    text-align: center;
    height: 400px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

/* ページ別背景画像 */
.page-header.history {
    background-image: url('../images/header-history.jpg');
}

.page-header.university {
    background-image: url('../images/university.jpg');
}

.page-header.tokyo-gakuen {
    background-image: url('../images/tokyo-gakuen.png');
}

.page-header.kansai-gakuen {
    background-image: url('../images/kansai-gakuen.jpg');
}

.page-header.sapporo {
    background-image: url('../images/sapporo-kinder.png');
}

.page-header.overseas {
    background-image: url('../images/overseas-school.jpg');
}

/* 創価大学部門別背景画像 */
.page-header.university-art {
    background-image: url('../images/thumb-univ-art.jpg');
}

.page-header.university-calligraphy {
    background-image: url('../images/thumb-univ-calligraphy.jpg');
}

.page-header.university-photo {
    background-image: url('../images/thumb-univ-photo.jpg');
}

.page-header.university-flower {
    background-image: url('../images/thumb-univ-flower.jpg');
}

/* 東京創価学園部門別背景画像 */
.page-header.tokyo-high {
    background-image: url('../images/thumb-tokyo-highschool.jpg');
}

.page-header.tokyo-junior {
    background-image: url('../images/thumb-tokyo-juniorschool.jpg');
}

.page-header.tokyo-elementary {
    background-image: url('../images/thumb-tokyo-elementaryschool.jpg');
}

/* 関西創価学園部門別背景画像 */
.page-header.kansai-high {
    background-image: url('../images/thumb-kansai-highschool.jpg');
}

.page-header.kansai-junior {
    background-image: url('../images/thumb-kansai-juniorschool.jpg');
}

.page-header.kansai-elementary {
    background-image: url('../images/thumb-kansai-elementaryschool.jpg');
}

/* 海外姉妹校部門別背景画像 */
.page-header.overseas-brazil {
    background-image: url('../images/thumb-brazil.jpg');
}

.page-header.overseas-korea {
    background-image: url('../images/thumb-korea.jpg');
}

.page-header.overseas-hongkong {
    background-image: url('../images/thumb-hongkong.jpg');
}

.page-header.overseas-singapore {
    background-image: url('../images/thumb-singapore.jpg');
}

.page-header.overseas-malaysia-kg {
    background-image: url('../images/thumb-malaysia.jpg');
}

.page-header.overseas-malaysia-school {
    background-image: url('../images/thumb-international-malaysia.jpg');
}

.page-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.4);
    z-index: 1;
}

.page-header-content {
    position: relative;
    z-index: 2;
    max-width: var(--content-max-width);
    margin: 0 auto;
}


.page-header-title {
    font-size: 3rem;
    font-weight: 500;
    margin-bottom: 16px;
    letter-spacing: 0.07em;
    line-height: 1.1;
    color: white;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.page-header-subtitle {
    font-family: 'Noto Sans JP', sans-serif;
    font-size: 1.2rem;
    font-weight: 300;
    opacity: 0.92;
    line-height: 1.5;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
    position: relative;
    display: inline-block;
}

.page-header-subtitle::before,
.page-header-subtitle::after {
    content: '';
    position: absolute;
    top: 50%;
    width: 32px;
    height: 1px;
    background: white;
    transform: translateY(-50%);
}

.page-header-subtitle::before {
    left: -48px;
}

.page-header-subtitle::after {
    right: -48px;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(circle at 20% 80%, rgba(116, 185, 255, 0.2) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(255, 255, 255, 0.1) 0%, transparent 50%);
    pointer-events: none;
}

.hero-content {
    position: relative;
    z-index: 1;
    max-width: var(--content-max-width);
    margin: 0 auto;
}

.hero h1 {
    font-size: var(--font-size-hero);
    font-weight: 500;
    margin-bottom: 16px;
    letter-spacing: 0.07em;
    line-height: 1.1;
    color: white;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.hero-number {
    font-size: 1.1rem;
    font-weight: 500;
    margin-bottom: 24px;
    opacity: 0.9;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.hero-subtitle {
    font-family: 'Noto Serif JP', serif;
    font-size: var(--font-size-subtitle);
    font-weight: 300;
    opacity: 0.92;
    margin-bottom: 48px;
    line-height: 1.5;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
    position: relative;
    display: inline-block;
}

.hero-subtitle::before,
.hero-subtitle::after {
    content: '';
    position: absolute;
    top: 50%;
    width: 32px;
    height: 1px;
    background: white;
    transform: translateY(-50%);
}

.hero-subtitle::before {
    left: -48px;
}

.hero-subtitle::after {
    right: -48px;
}

/* ========================================
   MAIN CONTENT SECTIONS
   ======================================== */

/* Video Section */
.video-section {
    padding: 60px 20px;
    background: #f8f9fa;
    text-align: center;
}

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

.section-title {
    font-size: 2rem;
    color: #2c3e50;
    margin-bottom: 40px;
    font-weight: 500;
    letter-spacing: -0.01em;
    line-height: 1.2;
}

.section-title::after {
    content: '';
    display: block;
    width: 60px;
    height: 3px;
    background: linear-gradient(90deg, #4C6B8B 0%, #3A5A7A 100%);
    margin: 20px auto 0;
    border-radius: 2px;
}

.mobile-break {
    display: none;
}

.video-container {
    max-width: 600px;
    margin: 0 auto 40px;
    border-radius: 12px;
    overflow: hidden;
}

.video-placeholder {
    width: 100%;
    height: 350px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
}

/* Origin Button */
.origin-button {
    display: inline-block;
    background: linear-gradient(rgba(76, 107, 139, 0.8), rgba(76, 107, 139, 0.8)), url('../images/fv.jpg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    color: white;
    padding: 20px 50px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    font-size: 1.1rem;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 8px 32px rgba(76, 107, 139, 0.3);
    position: relative;
    overflow: hidden;
    backdrop-filter: blur(10px);
}

.origin-button::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.3), transparent);
    transition: left 0.5s;
}

.origin-button:hover::before {
    left: 100%;
}

.origin-button:hover {
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 16px 48px rgba(76, 107, 139, 0.4);
}

/* Content Section */
.content-section {
    padding: var(--section-padding);
    background: var(--surface-color);
}

.content-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 24px;
    margin-bottom: 40px;
    justify-content: center;
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
}

.content-card {
    background: var(--surface-color);
    border-radius: 8px;
    overflow: hidden;
    box-shadow: var(--shadow-card);
    transition: all var(--transition-medium);
    border: 1px solid var(--border-color);
    width: 300px;
    flex: 0 0 300px;
    position: relative;
    text-decoration: none;
    display: block;
}

.content-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-card-hover);
    border-color: rgba(116, 185, 255, 0.2);
}

.card-image {
    width: 100%;
    height: 240px;
    background: var(--gradient-primary);
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: var(--font-size-body);
    font-weight: 400;
    position: relative;
    overflow: hidden;
}

.card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

.card-image::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.4);
    z-index: 1;
}


.card-content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    padding: 24px 0;
    z-index: 2;
    text-align: center;
    width: 100%;
}

.card-title {
    font-size: 1.3rem;
    font-weight: 500;
    color: white;
    margin-bottom: 8px;
    line-height: 1.3;
    letter-spacing: -0.01em;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.5);
    white-space: nowrap;
}

.card-subtitle {
    color: rgba(255, 255, 255, 0.9);
    font-size: var(--font-size-body);
    font-weight: 400;
    line-height: 1.5;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.5);
}


/* Hero Info Styles */
.hero-info {
    margin-top: 40px;
}

.hero-info h3 {
    color: var(--primary-color);
    margin-bottom: 16px;
    font-size: var(--font-size-subtitle);
    font-weight: 500;
}

.hero-info p {
    color: var(--text-muted);
    font-size: var(--font-size-body);
    font-weight: 400;
}

/* Origin Section Styles */
.origin-section {
    background: #f8f9fa;
    padding: 50px 20px;
}

.origin-card {
    background: url('../images/paper_bg_dark.jpg')no-repeat center center;
    background-size: cover;
    padding: 48px 40px;
    border-radius: 8px;
    box-shadow: var(--shadow-card);
    text-align: center;
    max-width: 700px;
    margin: 0 auto;
    border: 1px solid var(--border-color);
    position: relative;
    overflow: hidden;
    backdrop-filter: blur(12px) saturate(1.2);
}

.origin-card h2 {
    color: white;
    margin-bottom: 24px;
    font-size: 1.9rem;
    font-weight: 500;
    letter-spacing: -0.01em;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.origin-card p {
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 36px;
    line-height: 1.7;
    font-size: 1.1rem;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
}

/* Content Section Styles */
.content-intro {
    text-align: center;
    margin-bottom: 40px;
    display:none;
}

.content-description {
    text-align: center;
    color: var(--text-muted);
    margin-bottom: 60px;
    font-size: 1.1rem;
    line-height: 1.6;
}

.content-footer {
    text-align: center;
    color: var(--text-muted);
    margin-top: 64px;
    font-size: 14px;
    line-height: 1.6;
}

/* History Grid */
.history-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 32px;
    margin-bottom: 40px;
    justify-content: center;
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
}

.history-card {
    background: var(--surface-color);
    border-radius: 8px;
    overflow: hidden;
    box-shadow: var(--shadow-card);
    transition: all var(--transition-medium);
    border: 1px solid var(--border-color);
    width: 350px;
    flex: 0 0 350px;
    position: relative;
}

.history-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-card-hover);
    border-color: rgba(76, 107, 139, 0.2);
}

.history-image {
    width: 100%;
    height: 200px;
    background: var(--gradient-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: var(--font-size-body);
    font-weight: 400;
    position: relative;
    overflow: hidden;
}

.history-image::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.4);
    z-index: 1;
}

.history-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    position: relative;
    z-index: 0;
}

.history-content {
    padding: 24px;
}

.history-title {
    font-size: 1.3rem;
    font-weight: 500;
    color: var(--text-color);
    margin-bottom: 12px;
    line-height: 1.3;
    letter-spacing: -0.01em;
}

.history-description {
    color: var(--text-muted);
    font-size: var(--font-size-body);
    font-weight: 400;
    line-height: 1.6;
}

/* Two Column Section */
.two-column-section {
    display: flex;
    flex-direction: column;
    gap: 80px;
    max-width: 1200px;
    margin: 0 auto;
}

.column-section {
    display: flex;
    gap: 60px;
    align-items: flex-start;
}

.column-section:nth-child(even) {
    flex-direction: row-reverse;
}

.column-content {
    flex: 1;
}

.column-title {
    font-size: 2rem;
    font-weight: 500;
    color:var(--primary-color);
    margin-bottom: 24px;
    letter-spacing: -0.01em;
    line-height: 1.2;
    position: relative;
    padding-bottom: 16px;
}

.column-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 40px;
    height: 2px;
    background: var(--primary-color);
}

.column-text {
    color: var(--text-muted);
    font-size: var(--font-size-body);
    line-height: 1.7;
}

.column-text p {
    margin-bottom: 20px;
}

.column-text p:last-child {
    margin-bottom: 0;
}

.column-image {
    flex: 1;
    max-width: 500px;
}

.column-image img {
    width: 100%;
    height: auto;
    box-shadow: var(--shadow-card);
}

.image-caption {
    margin-top: 12px;
    font-size: 0.9rem;
    color: var(--text-muted);
    text-align: center;
    font-style: italic;
}

/* History Timeline Section */
.history-timeline-section {
    padding: var(--section-padding);
    background: url('../images/paper_bg.jpg');
    background-repeat: repeat;
    text-align: center;
    position: relative;
}

.history-timeline-section .container {
    position: relative;
    z-index: 2;
}

/* Timeline */
.timeline {
    max-width: 800px;
    margin: 60px auto 0;
    position: relative;
    padding-left: 40px;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 13px;
    top: 0;
    bottom: 0;
    width: 2px;
    background: var(--secondary-color);
}

.timeline-item {
    position: relative;
    margin-bottom: 50px;
    text-align: left;
}

.timeline-item::before {
    content: '';
    position: absolute;
    left: -32px;
    top: 8px;
    width: 12px;
    height: 12px;
    background: var(--secondary-color);
    border-radius: 50%;
}

.timeline-year {
    font-size: 1.4rem;
    font-weight: 600;
    color: var(--secondary-color);
    margin-bottom: 16px;
    padding-left: 0;
}

.timeline-content {
    padding: 0;
}

.timeline-month {
    font-size: 1.1rem;
    font-weight: 500;
    color: var(--text-color);
    margin-bottom: 8px;
    margin-top: 16px;
}

.timeline-month:first-child {
    margin-top: 0;
}

.timeline-content p {
    color: var(--text-muted);
    font-size: var(--font-size-body);
    line-height: 1.7;
    margin-bottom: 12px;
}

.timeline-content p:last-child {
    margin-bottom: 0;
}

/* ========================================
   FOOTER & ADDITIONAL SECTIONS
   ======================================== */

/* Survey Section */
.survey-section {
    padding: var(--section-padding-small);
    background: var(--gradient-primary-soft);
    text-align: center;
}

.survey-card {
    background: var(--surface-color);
    padding: 48px 40px;
    border-radius: 8px;
    box-shadow: var(--shadow-card);
    max-width: 600px;
    margin: 0 auto;
    border: 1px solid var(--border-color);
    text-decoration: none;
    display: block;
    transition: all var(--transition-medium);
}

.survey-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-card-hover);
    border-color: rgba(116, 185, 255, 0.2);
}

.survey-card h3 {
    color: var(--primary-color);
    margin-bottom: 20px;
    font-size: 1.7rem;
    font-weight: 500;
    letter-spacing: -0.01em;
}

.survey-card p {
    color: var(--text-muted);
    font-size: 1.1rem;
    line-height: 1.6;
}

/* Links Section */
.links-section {
    padding: var(--section-padding-small);
    background: var(--gradient-primary);
    text-align: center;
    position: relative;
    overflow: hidden;
}

.links-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background:#76A6D6;
}

.links-title {
    color: white;
    font-size: 1.9rem;
    margin-bottom: 48px;
    font-weight: 500;
    letter-spacing: -0.01em;
    position: relative;
    z-index: 1;
}

.links-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 20px;
    max-width: 900px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

.link-button {
    background: rgba(255,255,255,0.15);
    backdrop-filter: blur(10px);
    color: white;
    padding: 18px 24px;
    border-radius: 8px;
    text-decoration: none;
    border: 1px solid rgba(255,255,255,0.2);
    transition: all var(--transition-medium);
    font-size: var(--font-size-body);
    font-weight: 500;
}

.link-button:hover {
    background: rgba(255,255,255,0.25);
    transform: translateY(-3px);
    box-shadow: 0 8px 32px rgba(0,0,0,0.2);
    border-color: rgba(255,255,255,0.4);
}

/* Footer */
.footer {
    background: var(--secondary-color);
    color: var(--text-light);
    text-align: center;
    padding: 48px 20px;
}

.footer p {
    font-size: var(--font-size-body);
    font-weight: 300;
}

/* ========================================
   BREAK CONTROL CLASSES
   ======================================== */

/* PC版での改行制御 */
.br-pc {
    display: inline;
}

/* モバイル版での改行制御 */
.br-mobile {
    display: none;
}

/* ========================================
   RESPONSIVE DESIGN - GENERAL
   ======================================== */

/* Responsive - Tablet and Mobile (1200px以下) */
@media (max-width: 1200px) {
    /* ヒーローセクション */
    .hero-nav .nav-item {
        display: none;
    }

    .hero-nav {
        position: absolute;
        top: 6px;
        right: 52px;
        display: flex;
        align-items: center;
        gap: 8px;
        padding: 16px;
        z-index: 1001;
    }

    .hero-nav .search-icon {
        display: flex;
        position: static;
    }

    .hero .hamburger {
        display: flex;
        position: absolute;
        top: 16px;
        right: 16px;
        z-index: 1001;
    }

    /* ヘッダー（スクロール後） */
    .header-nav {
        display: flex;
        justify-content: flex-end;
        align-items: center;
        gap: 12px;
    }

    .header-nav .nav-item {
        display: none;
    }

    .header-nav .search-icon {
        display: flex;
        order: 1;
    }

    .header-nav .hamburger {
        display: flex;
        order: 2;
    }
}

/* Responsive - Mobile (768px以下) */
@media (max-width: 768px) {
    :root {
        --font-size-hero: 3rem;
        --section-padding: 60px 20px;
        --section-padding-large: 80px 20px;
    }

    .hero-subtitle {
        font-size: 1.1rem;
    }

    .section-title {
        font-size: 1.6rem;
        line-height: 1.4;
    }

    .mobile-break {
        display: inline;
    }
    
    .content-grid {
        gap: 20px;
    }
    
    .content-card {
        width: 100%;
        flex: 1 1 100%;
        max-width: none;
    }
    
    .card-image {
        height: 180px;
    }
    
    .history-card {
        width: 100%;
        flex: 1 1 100%;
        max-width: none;
    }
    
    .page-header {
        height: 300px;
    }
    
    .page-header-title {
        font-size: 2.2rem;
    }
    
    .two-column-section {
        gap: 40px;
    }
    
    .column-section {
        flex-direction: column;
        gap: 30px;
    }
    
    .column-section:nth-child(even) {
        flex-direction: column;
    }
    
    .column-image {
        max-width: none;
    }
    
    .column-title {
        font-size: 1.6rem;
    }
    
    .timeline {
        padding-left: 30px;
        margin-top: 40px;
    }
    
    .timeline-item::before {
        left: -22px;
    }
    
    .timeline-year {
        font-size: 1.2rem;
        padding-left: 15px;
    }
    
    .timeline-content {
        padding: 0;
    }
    
    .timeline-month {
        font-size: 1rem;
    }

    .links-title {
        font-size: 1.6rem;
        line-height: 1.4;
    }
    
    .links-grid {
        grid-template-columns: 1fr;
    }

    .origin-section{
        padding: 50px 0;
    }
    .origin-card{
        border-radius: 0;
    }

    /* モバイル版での改行制御 */
    .br-pc {
        display: none;
    }
    
    .br-mobile {
        display: inline;
    }

}

@keyframes ripple {
    to {
        transform: scale(4);
        opacity: 0;
    }
}

@media (max-width: 480px) {
    .page-header-title{
        font-size: 26px;
    }
}

/* ========================================
   GALLERY PAGES SPECIFIC STYLES
   ======================================== */

/* Gallery Parent Page - Two Column Layout */
.content-grid.two-columns {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    max-width: 800px;
    margin: 0 auto;
}

.content-grid.two-columns .content-card {
    width: 100%;
    flex: none;
}

/* Gallery Artwork Pages - Individual Artwork Layout */
.artwork-section {
    padding: var(--section-padding);
    background: #F6F6F6;

.artwork-grid {
    display: flex;
    flex-direction: column;
    gap: 40px;
    max-width: 1200px;
    margin: 0 auto;
}

/* 賞がある作品（縦並び） */
.artwork-item {
    display: flex;
    gap: 40px;
    align-items: flex-start;
    justify-content: center;
    margin-bottom: 60px;
}

/* 賞がない作品のコンテナ（flexレイアウト） */
.artwork-grid-no-award {
    display: flex;
    flex-wrap: wrap;
    row-gap: 80px; /* 縦方向のgap */
    column-gap: 40px; /* 横方向のgap */
    max-width: 1200px;
    margin: 0 auto;
    justify-content: center; /* 中央寄せ */
}

/* 賞がない作品（カード形式：横並び） */
.artwork-item-no-award {
    display: flex;
    flex-direction: row; /* 横並び */
    gap: 8px;
    align-items: flex-start; /* 上揃え */
    /* 幅は内容に応じて自動調整 */
}

.artwork-item-no-award .artwork-image {
    flex: 0 0 auto; /* 画像サイズに応じて固定 */
    display: flex;
    justify-content: center;
    align-items: flex-start;
}

.artwork-item-no-award .artwork-image img {
    max-height: 300px; /* 最大高さ */
    max-width: 300px; /* 最大幅 */
    width: auto;
    height: auto; /* 高さは自動調整 */
    object-fit: contain;
}

.artwork-item-no-award .artwork-info-card {
    /* 賞あり作品と同じデザインを継承 */
}

.artwork-image {
    flex: 0 0 auto;
    max-width: 600px;
    overflow: hidden;
    transition: all var(--transition-medium);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #999;
    font-size: 1.2rem;
    background: linear-gradient(135deg, #f5f5f5 0%, #e8e8e8 100%);
    position: relative;
}

.artwork-image:hover {
    opacity: 0.8;
}

/* 画像読み込み中のアニメーション */
.artwork-image::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.3), transparent);
    animation: shimmer 1.5s infinite;
    z-index: 1;
}

.artwork-image img {
    width: auto;
    height: 400px;
    max-width: 100%;
    display: block;
    object-fit: contain;
    position: relative;
    z-index: 2;
}

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

.artwork-info-card {
    flex: 0 0 250px;
    background: var(--surface-color);
    border-radius: 4px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.08);
    border: 1px solid var(--border-color);
    padding: 32px;
    transition: all var(--transition-medium);
    text-align:center;
}

.artwork-title {
    font-size: 20px;
    font-weight: 500;
    color: var(--text-color);
    margin-bottom: 16px;
    line-height: 1.5;
    letter-spacing: -0.01em;
    word-break: keep-all;
    overflow-wrap: break-word;
    word-wrap: break-word;
}

.artwork-author {
    font-size: 1.1rem;
    font-weight: 500;
    color: var(--primary-color);
    margin-bottom: 8px;
}

.artwork-details {
    font-size: var(--font-size-body);
    color: var(--text-muted);
    margin-bottom: 8px;
    line-height: 1.5;
}

.artwork-award {
    font-size: var(--font-size-body);
    color: var(--primary-color);
    font-weight: 500;
    margin-bottom: 20px;
}

/* Award Colors */
/* 創立者賞 - 金色（最高賞） */
.artwork-award.gold {
    color: #FFD700;
    font-weight: 700;
}

/* 創価芸術展賞 - 銀色 */
.artwork-award.silver {
    color: #C0C0C0;
    font-weight: 600;
}

/* 優秀賞 - 銅色 */
.artwork-award.bronze {
    color: #CD7F32;
    font-weight: 600;
}

/* 奨励賞 - 黒太字 */
.artwork-award.black {
    color: #000000;
    font-weight: 700;
}

.artwork-comment {
    font-size: var(--font-size-small);
    color: var(--text-color);
    line-height: 1.6;
    margin-bottom: 15px;
    padding: 10px 15px;
    background-color: #f8f9fa;
    border-left: 3px solid var(--primary-color);
    border-radius: 4px;
    text-align: center;
}

.artwork-description {
    font-size: 14px;
    color: var(--text-color);
    line-height: 1.7;
    margin-bottom: 0;
    text-align: left;
}

/* ========================================
   LIGHTBOX FUNCTIONALITY
   ======================================== */

.lightbox {
    display: flex;
    position: fixed;
    z-index: 9999;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.9);
    backdrop-filter: blur(10px);
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity var(--transition-medium), visibility var(--transition-medium);
}

.lightbox.active {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}

.lightbox-content {
    position: relative;
    max-width: 80vw;
    max-height: 80vh;
    width: auto;
    height: auto;
    transform: scale(0.8);
    transition: transform var(--transition-medium);
    display: flex;
    align-items: center;
    justify-content: center;
}

.lightbox.active .lightbox-content {
    transform: scale(1);
}

.lightbox-image {
    max-width: 100%;
    max-height: 100%;
    width: auto;
    height: auto;
    border-radius: var(--border-radius-small);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
    object-fit: contain;
    display: block;
    position: relative;
}

.lightbox-close {
    position: absolute;
    top: -40px;
    right: 0;
    background: rgba(255, 255, 255, 0.9);
    border: none;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    font-weight: bold;
    color: var(--text-color);
    transition: all var(--transition-fast);
    z-index: 10000;
}

.lightbox-close:hover {
    background: white;
    transform: scale(1.1);
}

.lightbox-close::before {
    content: '×';
    line-height: 1;
}

.artwork-image {
    cursor: pointer;
}

.artwork-image a {
    display: block;
    line-height: 0;
    text-decoration: none;
    border: none;
    outline: none;
}

.artwork-image a:hover {
    opacity: 0.9;
}

/* Simple Lightbox用のスタイル調整 */
.slb_close,
.slb_nav_close,
.slb_nav .slb_close,
.slb_controls button,
.slb_controls .slb_close {
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
    pointer-events: auto !important;
    position: absolute !important;
    z-index: 99999 !important;
    cursor: pointer !important;
}

/* Simple Lightboxのオーバーレイもクリック可能に */
.slb_overlay {
    cursor: pointer !important;
}

/* ========================================
   SEARCH PANEL
   ======================================== */

.search-panel {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    width: 100% !important;
    background: var(--surface-color);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
    z-index: 9999 !important;
    transform: translateY(-100%) !important;
    transition: transform var(--transition-medium) !important;
    max-height: 90vh;
    overflow-y: auto;
    visibility: hidden;
    opacity: 0;
}

.search-panel.active {
    transform: translateY(0) !important;
    visibility: visible !important;
    opacity: 1 !important;
}

.search-panel-inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 30px 40px;
}

.search-panel-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.search-panel-header h2 {
    font-size: 24px;
    font-weight: 600;
    color: var(--text-color);
    margin: 0;
}

.search-panel-close {
    background: none;
    border: none;
    font-size: 32px;
    color: var(--text-muted);
    cursor: pointer;
    line-height: 1;
    padding: 0;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all var(--transition-fast);
}

.search-panel-close:hover {
    background: rgba(0, 0, 0, 0.05);
    color: var(--text-color);
}

.search-form {
    margin-bottom: 30px;
}

.search-input-wrapper {
    display: flex;
    gap: 12px;
    align-items: stretch;
}

.search-field {
    flex: 1;
    padding: 16px 20px;
    font-size: 16px;
    border: 2px solid var(--border-color);
    border-radius: 8px;
    background: var(--background-color);
    color: var(--text-color);
    transition: border-color var(--transition-fast);
}

.search-field:focus {
    outline: none;
    border-color: var(--primary-color);
}

.search-submit {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 16px 32px;
    font-size: 16px;
    font-weight: 600;
    background: var(--primary-color);
    color: white;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: all var(--transition-fast);
    white-space: nowrap;
}

.search-submit:hover {
    background: #c62828;
    box-shadow: 0 4px 12px rgba(211, 47, 47, 0.3);
}

.search-submit svg {
    width: 18px;
    height: 18px;
    fill: white;
}

.search-results-container {
    min-height: 200px;
}

.search-placeholder {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 60px 20px;
    color: var(--text-muted);
    text-align: center;
}

.search-placeholder svg {
    fill: var(--text-muted);
    opacity: 0.3;
    margin-bottom: 16px;
}

.search-placeholder p {
    font-size: 16px;
    margin: 0;
}

.search-loading {
    text-align: center;
    padding: 40px 20px;
    color: var(--text-muted);
}

.search-results-header {
    margin-bottom: 30px;
    padding-bottom: 15px;
    border-bottom: 2px solid var(--border-color);
}

.search-results-header h3 {
    font-size: 18px;
    font-weight: 600;
    color: var(--text-color);
    margin: 0;
}

.search-results-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 30px;
}

.search-result-item {
    background: var(--background-color);
    border-radius: 8px;
    overflow: hidden;
    transition: all var(--transition-fast);
    border: 1px solid var(--border-color);
}

.search-result-item:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    transform: translateY(-2px);
}

.search-result-image {
    width: 100%;
    height: 200px;
    overflow: hidden;
    background: #f0f0f0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.search-result-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.search-result-info {
    padding: 20px;
}

.search-result-title {
    font-size: 16px;
    font-weight: 600;
    color: var(--text-color);
    margin-bottom: 8px;
}

.search-result-author {
    font-size: 14px;
    color: var(--primary-color);
    margin-bottom: 4px;
}

.search-result-details {
    font-size: 13px;
    color: var(--text-muted);
}

.search-no-results {
    text-align: center;
    padding: 60px 20px;
    color: var(--text-muted);
}

.search-no-results p {
    font-size: 16px;
    margin: 10px 0;
}

@media (max-width: 768px) {
    .search-panel-inner {
        padding: 20px;
    }

    .search-panel-header h2 {
        font-size: 20px;
    }

    .search-input-wrapper {
        flex-direction: column;
        gap: 10px;
    }

    .search-field,
    .search-submit {
        padding: 14px 18px;
        font-size: 15px;
    }

    .search-results-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
}

/* Search Results Page Header */
.page-header.search-results {
    background: linear-gradient(135deg, var(--primary-color) 0%, #c62828 100%);
}

/* ========================================
   ANCHOR LINKS & DEPARTMENT SECTIONS
   ======================================== */

.anchor-links {
    display: flex;
    justify-content: center;
    gap: 32px;
    margin-bottom: 60px;
    padding-bottom: 20px;
}

.anchor-link {
    color: var(--secondary-color);
    text-decoration: none;
    font-weight: 500;
    font-size: 1.1rem;
    padding: 8px 16px;
    transition: all var(--transition-medium);
    position: relative;
    border-bottom: 1px solid var(--secondary-color);
    display: inline-flex;
    align-items: center;
    gap: 16px;
}

.anchor-link::after {
    content: '';
    width: 6px;
    height: 6px;
    border-right: 2px solid var(--secondary-color);
    border-bottom: 2px solid var(--secondary-color);
    transform: rotate(45deg);
    margin-left: 6px;
    transition: all var(--transition-fast);
    flex-shrink: 0;
}

.anchor-link:hover {
    color: var(--accent-color);
    border-bottom-color: var(--accent-color);
}

.anchor-link:hover::after {
    border-right-color: var(--accent-color);
    border-bottom-color: var(--accent-color);
    transform: rotate(225deg);
}

.department-section {
    margin-bottom: 80px;
}

.department-title {
    font-size: 2.2rem;
    font-weight: 600;
    color: var(--text-color);
    text-align: center;
    margin-bottom: 40px;
    padding-bottom: 16px;
    border-bottom: 1px solid var(--secondary-color);
    position: relative;
}

.department-title::after {
    content: '';
    position: absolute;
    bottom: -3px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background: var(--accent-color);
}

/* ========================================
   RESPONSIVE DESIGN - GALLERY PAGES
   ======================================== */
@media (max-width: 1024px) {
    /* Artwork Layout - Tablet */
    .artwork-item {
        gap: 24px;
    }

    /* 賞なし作品もタブレットでは1カラム（flexで自動調整） */
    .artwork-item-no-award {
        flex: 1 1 100%; /* タブレットでは1カラム */
        max-width: 100%;
        flex-direction: column; /* カード内も縦並び */
        align-items: center;
    }

    .artwork-item-no-award .artwork-image img {
        max-width: 100%;
    }

    .artwork-image {
        flex: 0 0 auto;
        max-width: 500px;
    }

    .artwork-image img {
        height: 350px;
        width: auto;
    }

    .artwork-info-card {
        flex: 0 0 350px;
        padding: 24px;
    }
}

@media (max-width: 768px) {
    /* Two Column Layout - Mobile */
    .content-grid.two-columns {
        grid-template-columns: 1fr;
        gap: 24px;
    }
    
    /* Artwork Layout - Mobile */
    .artwork-item {
        flex-direction: column;
        gap: 24px;
        margin-bottom: 40px;
    }

    .artwork-image {
        flex: none;
        width: 100%;
        max-width: 100%;
    }

    .artwork-image img {
        height: auto;
        max-height: 400px;
        width: 100%;
        max-width: 100%;
    }

    .artwork-info-card {
        flex: none;
        width: 100%;
        padding: 24px;
    }

    .artwork-title {
        font-size: 18px;
        margin-bottom: 8px;
    }

    /* Anchor Links - Mobile */
    .anchor-links {
        flex-direction: column;
        gap: 16px;
        padding-bottom: 20px;
    }

    .anchor-link {
        text-align: center;
        justify-content: space-between;
        padding: 12px 16px;
    }

    /* Department Title - Mobile */
    .department-title {
        font-size: 1.8rem;
    }

    .department-section {
        margin-bottom: 60px;
    }
}

/* ========================================
   ARTWORK IMAGE SLIDER
   ======================================== */

.artwork-image-slider {
    position: relative;
    width: auto;
    height: 400px;
    max-width: 600px;
    overflow: hidden;
    background: linear-gradient(135deg, #f5f5f5 0%, #e8e8e8 100%);
}

.artwork-image-slider .slider-track {
    display: flex;
    transition: transform 0.3s ease;
    height: 100%;
    width: 100%;
}

.artwork-image-slider .slider-slide {
    min-width: 100%;
    width: 100%;
    height: 100%;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

/* スライダー画像読み込み中のアニメーション */
.artwork-image-slider .slider-slide::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.3), transparent);
    animation: shimmer 1.5s infinite;
    z-index: 1;
    pointer-events: none;
}

.artwork-image-slider .slider-slide a {
    position: relative;
    z-index: 2;
}

.artwork-image-slider .slider-slide a {
    display: flex;
    align-items: center;
    justify-content: center;
    max-width: 100%;
    max-height: 100%;
}

.artwork-image-slider .slider-slide img {
    width: auto;
    height: 400px;
    max-width: 600px;
    max-height: 400px;
    min-width: 50px;
    min-height: 50px;
    display: block;
    object-fit: contain;
    background: linear-gradient(135deg, #f5f5f5 0%, #e8e8e8 100%);
}

/* Slider Navigation Buttons */
.slider-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.9);
    border: none;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10;
    transition: all 0.2s ease;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

.slider-nav:hover {
    background: white;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25);
    transform: translateY(-50%) scale(1.1);
}

.slider-nav.prev {
    left: 10px;
}

.slider-nav.next {
    right: 10px;
}

.slider-nav::before {
    content: '';
    border: solid #333;
    border-width: 0 2px 2px 0;
    padding: 4px;
}

.slider-nav.prev::before {
    transform: rotate(135deg);
    margin-left: 3px;
}

.slider-nav.next::before {
    transform: rotate(-45deg);
    margin-right: 3px;
}

/* Slider Indicators (Dots) */
.slider-indicators {
    position: absolute;
    bottom: 12px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 8px;
    z-index: 10;
}

.slider-indicator {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.5);
    border: 1px solid rgba(255, 255, 255, 0.8);
    cursor: pointer;
    transition: all 0.2s ease;
}

.slider-indicator.active {
    background: white;
    width: 24px;
    border-radius: 4px;
}

.slider-indicator:hover {
    background: rgba(255, 255, 255, 0.8);
}

/* 画像枚数バッジ */
.image-count-badge {
    position: absolute;
    top: 10px;
    right: 10px;
    background: rgba(0, 0, 0, 0.7);
    color: white;
    padding: 4px 10px;
    border-radius: 12px;
    font-size: 13px;
    font-weight: 600;
    z-index: 10;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    letter-spacing: 0.5px;
}

/* スライダーのレスポンシブ対応 */
@media (max-width: 1024px) {
    .artwork-image-slider {
        height: 350px;
        max-width: 500px;
    }

    .artwork-image-slider .slider-slide img {
        height: 350px;
        max-width: 500px;
        max-height: 350px;
    }
}

@media (max-width: 768px) {
    .artwork-image-slider {
        height: 400px;
        width: 100%;
        max-width: 100%;
    }

    .artwork-image-slider .slider-slide img {
        height: auto;
        width: 100%;
        max-width: 100%;
        max-height: 400px;
    }

    .artwork-item-no-award .artwork-image-slider {
        height: 300px;
    }

    .artwork-item-no-award .artwork-image-slider .slider-slide img {
        max-height: 300px;
    }
}
