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

:root {
    --primary-color: #17B5A3;
    --primary-glow: rgba(23, 181, 163, 0.5);
    --accent-color: #20D4BC;
    --dark-bg: #0A0E1A;
    --dark-bg-secondary: #0F1420;
    --dark-blue: #1A2332;
    --text-light: #E8EAED;
    --text-gray: #9BA3AF;
    --white: #FFFFFF;
    --border-light: rgba(255, 255, 255, 0.08);
    --border-primary: rgba(23, 181, 163, 0.3);
}

body {
    font-family: 'Noto Sans JP', 'Inter', sans-serif;
    line-height: 1.7;
    color: var(--text-light);
    background: var(--dark-bg);
    overflow-x: hidden;
}

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

/* ===== Decorative Elements ===== */
.wave-decoration {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    pointer-events: none;
    overflow: hidden;
}

.wave-decoration::before,
.wave-decoration::after {
    content: '';
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    animation: pulse 8s ease-in-out infinite;
}

.wave-decoration::before {
    width: 800px;
    height: 800px;
    background: radial-gradient(circle, var(--primary-glow) 0%, transparent 70%);
    top: -400px;
    right: -200px;
}

.wave-decoration::after {
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(32, 212, 188, 0.3) 0%, transparent 70%);
    bottom: -300px;
    left: -100px;
    filter: blur(100px);
    animation: pulse 10s ease-in-out infinite reverse;
}

@keyframes pulse {
    0%, 100% { opacity: 0.3; transform: scale(1); }
    50% { opacity: 0.6; transform: scale(1.1); }
}

/* ===== Header ===== */
.header {
    background: rgba(10, 14, 26, 0.8);
    backdrop-filter: blur(20px);
    padding: 20px 0;
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    border-bottom: 1px solid var(--border-light);
}

.header--menu-open {
    transform: none !important;
}

.header__container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative;
    z-index: 1004; /* ハンバーガーボタンが確実に最前面に */
}

.header__logo {
    display: flex;
    align-items: center;
    text-decoration: none;
    transition: opacity 0.3s ease;
}

.header__logo:hover {
    opacity: 0.8;
}

.header__logo-img {
    height: 80px;
    width: auto;
    max-width: 400px;
    object-fit: contain;
}

/* フォールバック用テキストロゴ */
.header__logo-text {
    font-size: 18px;
    font-weight: 700;
    font-family: 'Inter', sans-serif;
    letter-spacing: 0.5px;
    color: var(--white);
    text-decoration: none;
}

.header__logo-accent {
    color: var(--primary-color);
}


/* デスクトップ用ナビゲーション */
@media (min-width: 769px) {
    .header__nav--desktop {
        display: flex;
        align-items: center;
    }
    
    .header__nav--mobile {
        display: none !important;
    }
}


/* デスクトップではハンバーガーメニューを非表示 */
@media (min-width: 769px) {
    .header__hamburger {
        display: none;
    }
}

/* デスクトップ用ナビゲーションリスト */
@media (min-width: 769px) {
    .header__nav-list {
        display: flex;
        list-style: none;
        gap: 35px;
        align-items: center;
        margin: 0;
        padding: 0;
    }
}

/* デスクトップ用ナビゲーションリンク */
@media (min-width: 769px) {
    .header__nav-link {
        color: var(--text-gray);
        text-decoration: none;
        font-weight: 500;
        font-size: 14px;
        transition: color 0.3s;
        position: relative;
    }
}

/* デスクトップ用ホバー効果 */
@media (min-width: 769px) {
    .header__nav-link:hover {
        color: var(--primary-color);
    }

    .header__nav-link::after {
        content: '';
        position: absolute;
        bottom: -5px;
        left: 0;
        width: 0;
        height: 2px;
        background: var(--primary-color);
        transition: width 0.3s;
    }

    .header__nav-link:hover::after {
        width: 100%;
    }
}

/* ===== Hero Section ===== */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding: 120px 0 100px; /* ヘッダー分のマージンを追加 */
    background: linear-gradient(135deg, #0A0E1A 0%, #0F1B2E 50%, #0A0E1A 100%);
    overflow: hidden;
}

.hero__container {
    position: relative;
    z-index: 2;
}

.hero__subtitle-small {
    color: var(--primary-color);
    font-size: 14px;
    font-weight: 700;
    letter-spacing: 3px;
    text-transform: uppercase;
    margin-bottom: 30px;
    font-family: 'Inter', sans-serif;
}

.hero__title {
    font-size: 72px;
    font-weight: 900;
    line-height: 1.2;
    margin-bottom: 40px;
    background: linear-gradient(135deg, #FFFFFF 0%, var(--primary-color) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero__subtitle {
    font-size: 20px;
    line-height: 1.8;
    margin-bottom: 50px;
    color: var(--text-gray);
    max-width: 700px;
}

.hero__cta {
    display: flex;
    gap: 20px;
    align-items: center;
    justify-content: center;
}

/* ===== Common Card Styles ===== */
.glass-card {
    background: rgba(255, 255, 255, 0.03);
    backdrop-filter: blur(20px);
    border: 1px solid var(--border-light);
    border-radius: 20px;
    padding: 50px;
    transition: all 0.3s;
}

.glass-card:hover {
    background: rgba(255, 255, 255, 0.05);
    border-color: var(--border-primary);
    transform: translateY(-5px);
}

.card {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--border-light);
    border-radius: 16px;
    padding: 40px;
    transition: all 0.3s;
}

.card:hover {
    background: rgba(255, 255, 255, 0.04);
    border-color: var(--border-primary);
    transform: translateY(-5px);
}

.card--glow:hover {
    box-shadow: 0 10px 40px rgba(23, 181, 163, 0.2);
}

.card--top-border {
    border-top: 4px solid var(--primary-color);
}

/* ===== Section ===== */
.section {
    padding: 120px 0;
    position: relative;
}

/* ===== Award Philosophy ===== */
.award-philosophy {
    text-align: center;
    margin: 60px 0;
    padding: 40px 20px;
    background: linear-gradient(135deg, rgba(23, 181, 163, 0.1), rgba(32, 212, 188, 0.05));
    border: 2px solid rgba(23, 181, 163, 0.2);
    border-radius: 20px;
}

.award-philosophy__subtitle {
    font-size: 18px;
    color: var(--primary-color);
    font-weight: 600;
    margin-bottom: 20px;
    font-family: 'Inter', sans-serif;
}

.award-philosophy__title {
    font-size: 36px;
    font-weight: 900;
    line-height: 1.3;
    color: var(--white);
    margin: 0;
    background: linear-gradient(135deg, #FFFFFF 0%, var(--primary-color) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.section--alt {
    background: var(--dark-bg-secondary);
}

.cta-section {
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
    padding: 120px 0;
    position: relative;
}

.section-header {
    text-align: center;
    margin-bottom: 80px;
    position: relative;
    z-index: 1;
}

.section-label {
    color: var(--primary-color);
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 3px;
    text-transform: uppercase;
    margin-bottom: 20px;
    font-family: 'Inter', sans-serif;
}

.section-title {
    font-size: 48px;
    font-weight: 900;
    color: var(--white);
    margin-bottom: 25px;
}

.section-subtitle {
    font-size: 18px;
    color: var(--text-gray);
    line-height: 1.8;
    max-width: 800px;
    margin: 0 auto;
}

/* ===== Grid ===== */
.grid {
    display: grid;
    gap: 30px;
}

.grid--2-cols { grid-template-columns: repeat(2, 1fr); }
.grid--3-cols { grid-template-columns: repeat(3, 1fr); }
.grid--4-cols { grid-template-columns: repeat(4, 1fr); }

/* ===== Icon Wrapper ===== */
.icon-wrapper {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 25px;
}

.icon-wrapper--square {
    border-radius: 12px;
}

.icon-wrapper--light {
    background: rgba(23, 181, 163, 0.2);
}

.icon-wrapper svg {
    width: 32px;
    height: 32px;
    fill: var(--white);
}

.icon-wrapper--light svg {
    fill: var(--primary-color);
}

/* ===== Theme Card ===== */
.theme-card {
    background: rgba(255, 255, 255, 0.03);
    backdrop-filter: blur(20px);
    border: 1px solid var(--border-light);
    border-radius: 16px;
    padding: 40px;
    position: relative;
    overflow: hidden;
    transition: all 0.3s;
}

.theme-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-color), var(--accent-color));
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.3s;
}

.theme-card:hover {
    background: rgba(255, 255, 255, 0.05);
    border-color: var(--border-primary);
    transform: translateY(-8px);
}

.theme-card:hover::before {
    transform: scaleX(1);
}

.theme-card__number {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
    border-radius: 50%;
    font-size: 24px;
    font-weight: 900;
    color: var(--white);
    margin-bottom: 25px;
    font-family: 'Inter', sans-serif;
}

.theme-card__title {
    font-size: 22px;
    font-weight: 700;
    color: var(--white);
    margin-bottom: 20px;
    line-height: 1.4;
}

.theme-card__text {
    font-size: 15px;
    color: var(--text-gray);
    line-height: 1.8;
}

.theme-card__text + .theme-card__text {
    margin-top: 15px;
}

.theme-card__text strong {
    color: var(--white);
}

/* ===== Award Card ===== */
.award-card__badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(23, 181, 163, 0.15);
    border: 1px solid var(--border-primary);
    padding: 8px 16px;
    border-radius: 50px;
    font-size: 13px;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 20px;
    font-family: 'Inter', sans-serif;
}

.award-card__title {
    font-size: 28px;
    font-weight: 900;
    color: var(--white);
    margin-bottom: 15px;
}

.award-card__text {
    font-size: 15px;
    color: var(--text-gray);
    line-height: 1.8;
}

/* ===== Stats ===== */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    margin: 60px 0;
}

.stat-card {
    text-align: center;
    padding: 50px 30px;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--border-light);
    border-radius: 16px;
    position: relative;
    overflow: hidden;
}

.stat-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, transparent, rgba(23, 181, 163, 0.05));
    opacity: 0;
    transition: opacity 0.3s;
}

.stat-card:hover::before {
    opacity: 1;
}

.stat-card__number {
    font-size: 56px;
    font-weight: 900;
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 15px;
    font-family: 'Inter', sans-serif;
}

.stat-card__label {
    font-size: 16px;
    color: var(--text-gray);
    font-weight: 500;
}

/* ===== Photo Gallery ===== */
.ceremony-photo {
    border-radius: 16px;
    overflow: hidden;
    position: relative;
    transition: transform 0.3s;
    border: 1px solid var(--border-light);
}

.ceremony-photo::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, transparent 60%, rgba(10, 14, 26, 0.8) 100%);
    opacity: 0;
    transition: opacity 0.3s;
}

.ceremony-photo:hover {
    transform: scale(1.05);
}

.ceremony-photo:hover::after {
    opacity: 1;
}

.ceremony-photo img {
    width: 100%;
    aspect-ratio: 3 / 2;
    object-fit: cover;
    display: block;
}

/* ===== Judge Card ===== */
.judge-card {
    text-align: center;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--border-light);
    border-radius: 16px;
    padding: 40px 30px;
    transition: all 0.3s;
}

.judge-card:hover {
    background: rgba(255, 255, 255, 0.04);
    border-color: var(--border-primary);
    transform: translateY(-8px);
}

.judge-card__img-wrapper {
    width: 120px;
    height: 120px;
    margin: 0 auto 25px;
    border-radius: 50%;
    overflow: hidden;
    border: 3px solid var(--primary-color);
    position: relative;
    background: transparent;
}

.judge-card__img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    position: relative;
    z-index: 2;
    border-radius: 50%;
}

/* ===== Committee Card Styles ===== */
.committee-card__cta {
    margin-top: 20px;
}

.committee-card__btn--small {
    font-size: 14px;
    padding: 12px 24px;
}

/* ===== Utility Classes ===== */
.text-gray-small {
    color: var(--text-gray);
    font-size: 14px;
}

.section-title--large {
    font-size: 28px;
    font-weight: 700;
    color: var(--white);
    margin-bottom: 25px;
}

.section-subtitle--large {
    font-size: 16px;
    line-height: 2;
}

.section-label--sponsor {
    font-size: 18px;
    font-weight: 700;
    color: var(--primary-color);
    text-align: center;
    margin-bottom: 30px;
    font-family: 'Inter', sans-serif;
    letter-spacing: 2px;
}

.sponsor-info {
    font-size: 16px;
    color: var(--white);
    line-height: 1.8;
}

.sponsor-info--small {
    font-size: 14px;
    color: var(--text-gray);
}

.sponsor-description {
    font-size: 16px;
    color: var(--text-gray);
    line-height: 1.8;
    margin-bottom: 25px;
}

/* ===== Common Layout Classes ===== */
.text-center {
    text-align: center;
}

.mb-15 {
    margin-bottom: 15px;
}

.mb-25 {
    margin-bottom: 25px;
}

.mb-30 {
    margin-bottom: 30px;
}

.mb-50 {
    margin-bottom: 50px;
}

.mb-60 {
    margin-bottom: 60px;
}

.mt-50 {
    margin-top: 50px;
}

.max-w-800 {
    max-width: 800px;
    margin: 0 auto;
}

.award-section-heading {
    font-size: 24px;
    font-weight: 700;
    color: var(--primary-color);
    text-align: center;
    margin-bottom: 40px;
    font-family: 'Inter', sans-serif;
    display: block;
}

.award-card__grid {
    gap: 40px;
    align-items: center;
}

.award-card__project {
    margin-top: 12px;
    font-weight: 600;
}

.award-card__evaluation {
    margin-top: 18px;
    line-height: 1.8;
}

.award-card__list {
    display: grid;
    gap: 24px;
}

.award-card__list .card {
    padding: 30px;
}

@media (max-width: 768px) {
    .award-card__grid {
        grid-template-columns: 1fr;
        gap: 24px;
    }
}

.judge-card__img-wrapper svg {
    width: 60%;
    height: 60%;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    fill: var(--primary-color);
}

.judge-card__name {
    font-size: 20px;
    font-weight: 700;
    color: var(--white);
    margin-bottom: 10px;
}

.judge-card__title {
    font-size: 13px;
    color: var(--text-gray);
    line-height: 1.6;
}

/* ===== Timeline ===== */
.current-phase {
    color: var(--primary-color);
    font-size: 20px;
    font-weight: 700;
    display: inline-block;
    padding: 8px 20px;
    background: rgba(23, 181, 163, 0.1);
    border-radius: 8px;
    margin-bottom: 10px;
}

.deadline-emphasis {
    color: var(--accent-color);
    font-size: 18px;
    font-weight: 600;
}

.timeline {
    position: relative;
    max-width: 800px;
    margin: 0 auto;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 30px;
    top: 0;
    bottom: 0;
    width: 2px;
    background: linear-gradient(180deg, var(--primary-color), var(--accent-color));
}

.timeline-item {
    position: relative;
    padding-left: 80px;
    padding-bottom: 50px;
    transition: all 0.3s ease;
}

.timeline-item::before {
    content: '';
    position: absolute;
    left: 20px;
    top: 8px;
    width: 20px;
    height: 20px;
    background: var(--text-gray);
    border-radius: 50%;
    border: 4px solid var(--dark-bg);
    box-shadow: 0 0 10px rgba(155, 163, 175, 0.3);
    transition: all 0.3s ease;
}

.timeline-item--active::before {
    background: var(--primary-color);
    box-shadow: 0 0 20px var(--primary-glow);
    animation: pulse-timeline 2s ease-in-out infinite;
}

.timeline-item--upcoming::before {
    background: var(--accent-color);
    box-shadow: 0 0 15px rgba(32, 212, 188, 0.5);
}

@keyframes pulse-timeline {
    0%, 100% { transform: scale(1); opacity: 1; }
    50% { transform: scale(1.2); opacity: 0.8; }
}

.timeline-item__date {
    font-size: 18px;
    font-weight: 700;
    color: var(--text-gray);
    margin-bottom: 10px;
    font-family: 'Inter', sans-serif;
    transition: color 0.3s ease;
}

.timeline-item--active .timeline-item__date,
.timeline-item--upcoming .timeline-item__date {
    color: var(--primary-color);
}

.timeline-item__title {
    font-size: 16px;
    color: var(--text-light);
    line-height: 1.6;
    margin-bottom: 5px;
}

.timeline-item__status {
    display: inline-block;
    font-size: 12px;
    font-weight: 700;
    color: var(--white);
    background: var(--primary-color);
    padding: 4px 12px;
    border-radius: 20px;
    margin-top: 8px;
    font-family: 'Inter', sans-serif;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* ===== Inline CTA ===== */
.inline-cta {
    padding: 60px 0;
    background: rgba(23, 181, 163, 0.05);
    border-top: 1px solid var(--border-primary);
    border-bottom: 1px solid var(--border-primary);
}

.inline-cta--alt {
    background: linear-gradient(135deg, rgba(23, 181, 163, 0.08), rgba(32, 212, 188, 0.05));
}

.inline-cta__content {
    text-align: center;
    max-width: 700px;
    margin: 0 auto;
}

.inline-cta__title {
    font-size: 28px;
    font-weight: 700;
    color: var(--white);
    margin-bottom: 15px;
    line-height: 1.4;
}

.inline-cta__text {
    font-size: 16px;
    color: var(--text-gray);
    margin-bottom: 30px;
    line-height: 1.8;
}

.inline-cta__buttons {
    display: flex;
    gap: 15px;
    justify-content: center;
    flex-wrap: wrap;
}

/* ===== CTA Section ===== */
.cta-section {
    padding: 120px 0;
    position: relative;
    background: linear-gradient(135deg, var(--dark-bg) 0%, var(--dark-blue) 100%);
    overflow: hidden;
}

.cta-section::before {
    content: '';
    position: absolute;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, var(--primary-glow) 0%, transparent 70%);
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    filter: blur(100px);
}

.cta-section__container {
    position: relative;
    z-index: 1;
    text-align: center;
}

.cta-section__title {
    font-size: 56px;
    font-weight: 900;
    margin-bottom: 30px;
    line-height: 1.3;
    color: var(--white);
}

.cta-section__subtitle {
    font-size: 18px;
    margin-bottom: 50px;
    line-height: 1.8;
    color: var(--text-gray);
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

/* ===== Button ===== */
.btn {
    display: inline-block;
    padding: 18px 50px;
    border-radius: 50px;
    font-weight: 700;
    text-decoration: none;
    transition: all 0.3s;
    font-size: 16px;
    border: none;
    cursor: pointer;
    position: relative;
    overflow: hidden;
    font-family: 'Inter', sans-serif;
}

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

.btn:hover::before {
    left: 100%;
}

.btn--primary {
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
    color: var(--white);
    box-shadow: 0 10px 40px rgba(23, 181, 163, 0.3);
}

.btn--primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 15px 50px rgba(23, 181, 163, 0.4);
}

.btn--secondary {
    background: transparent;
    color: var(--white);
    border: 2px solid rgba(255, 255, 255, 0.2);
}

.btn--secondary:hover {
    border-color: var(--primary-color);
    background: rgba(23, 181, 163, 0.1);
}

.btn--outline {
    background: transparent;
    color: var(--text-light);
    border: 2px solid var(--border-light);
}

.btn--outline:hover {
    border-color: var(--primary-color);
    color: var(--primary-color);
    background: rgba(23, 181, 163, 0.05);
}

/* ===== Criteria List ===== */
.criteria-list {
    max-width: 900px;
    margin: 0 auto;
}

.criteria-item {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--border-light);
    border-radius: 12px;
    padding: 30px;
    margin-bottom: 20px;
    transition: all 0.3s;
}

.criteria-item:hover {
    background: rgba(255, 255, 255, 0.04);
    border-color: var(--border-primary);
}

.criteria-item--highlight {
    background: rgba(23, 181, 163, 0.05);
    border-color: var(--border-primary);
}

.criteria-item__title {
    font-size: 20px;
    font-weight: 700;
    color: var(--white);
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    gap: 12px;
}

.criteria-item__title::before {
    content: '';
    width: 6px;
    height: 6px;
    background: var(--primary-color);
    border-radius: 50%;
    box-shadow: 0 0 10px var(--primary-glow);
}

.criteria-item__content {
    padding-left: 18px;
}

.criteria-item__text {
    font-size: 15px;
    color: var(--text-gray);
    line-height: 1.8;
}

.criteria-item__text + .criteria-item__text {
    margin-top: 15px;
}

.criteria-item__example {
    margin-top: 20px;
    padding: 20px;
    background: rgba(23, 181, 163, 0.05);
    border-left: 3px solid var(--primary-color);
    border-radius: 8px;
}

.criteria-item__example strong {
    color: var(--primary-color);
    font-size: 14px;
    font-weight: 700;
    display: block;
    margin-bottom: 10px;
    font-family: 'Inter', sans-serif;
    letter-spacing: 0.5px;
}

.criteria-item__example p {
    font-size: 14px;
    color: var(--text-gray);
    line-height: 1.8;
    font-style: italic;
}

.form-time-estimate {
    display: inline-block;
    color: var(--primary-color);
    font-weight: 600;
    font-size: 16px;
    margin-top: 10px;
    padding: 8px 16px;
    background: rgba(23, 181, 163, 0.1);
    border-radius: 8px;
}

/* ===== Utility Classes ===== */
.text-center { text-align: center; }
.text-left { text-align: left; }
.text-right { text-align: right; }

/* Margin utilities */
.mb-15 { margin-bottom: 15px; }
.mb-20 { margin-bottom: 20px; }
.mb-30 { margin-bottom: 30px; }
.mb-40 { margin-bottom: 40px; }
.mb-50 { margin-bottom: 50px; }
.mb-60 { margin-bottom: 60px; }
.mt-50 { margin-top: 50px; }

/* Max width utilities */
.max-w-800 { max-width: 800px; margin-left: auto; margin-right: auto; }
.max-w-900 { max-width: 900px; margin-left: auto; margin-right: auto; }

/* Display utilities */
.d-block { display: block; }
.d-inline { display: inline; }
.d-inline-block { display: inline-block; }
.d-flex { display: flex; }
.d-grid { display: grid; }

/* Flexbox utilities */
.flex-center { display: flex; align-items: center; justify-content: center; }
.flex-between { display: flex; align-items: center; justify-content: space-between; }
.flex-column { flex-direction: column; }

/* Spacing utilities */
.p-0 { padding: 0; }
.p-1 { padding: 0.25rem; }
.p-2 { padding: 0.5rem; }
.p-3 { padding: 0.75rem; }
.p-4 { padding: 1rem; }

/* Color utilities */
.text-primary { color: var(--primary-color); }
.text-white { color: var(--white); }
.text-gray { color: var(--text-gray); }
.text-light { color: var(--text-light); }

/* ===== Footer ===== */
.footer {
    background: var(--dark-bg-secondary);
    border-top: 1px solid var(--border-light);
    padding: 80px 0 40px;
}

.footer__container {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 60px;
    margin-bottom: 50px;
}

.footer__logo {
    margin-bottom: 20px;
}

.footer__logo-img {
    height: 70px;
    width: auto;
    max-width: 300px;
    object-fit: contain;
    filter: brightness(0.9);
}

/* フォールバック用テキストロゴ */
.footer__logo-text {
    font-size: 20px;
    font-weight: 700;
    color: var(--white);
    margin-bottom: 20px;
    font-family: 'Inter', sans-serif;
}

.footer__organizer {
    font-size: 14px;
    color: var(--text-gray);
    line-height: 1.8;
}

.footer__nav-list {
    list-style: none;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
}

.footer__nav-link {
    color: var(--text-gray);
    text-decoration: none;
    transition: color 0.3s;
    font-size: 14px;
}

.footer__nav-link:hover {
    color: var(--primary-color);
}

.footer__bottom {
    border-top: 1px solid var(--border-light);
    padding-top: 30px;
    text-align: center;
}

.footer__copyright {
    font-size: 14px;
    color: var(--text-gray);
}

/* ===== Mobile Navigation ===== */
@media (max-width: 768px) {
    /* デスクトップメニューを非表示 */
    .header__nav--desktop {
        display: none !important;
    }
    
    /* モバイルメニュー - body直下なのでtransformの影響を受けない */
    .header__nav--mobile {
        display: none;
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background: rgba(0, 0, 0, 0.95);
        z-index: 9999;
        align-items: center;
        justify-content: center;
    }
    
    .header__nav--mobile.is-open {
        display: flex !important;
    }
    
    .header__nav-list {
        display: flex;
        flex-direction: column;
        gap: 30px;
        text-align: center;
        list-style: none;
        padding: 0;
        margin: 0;
        width: 100%;
        max-width: 400px;
    }
    
    .header__nav-link {
        display: block;
        padding: 15px 30px;
        font-size: 18px;
        font-weight: 600;
        color: var(--white);
        text-decoration: none;
        border-radius: 8px;
        transition: all 0.3s ease;
        min-height: 50px;
        display: flex;
        align-items: center;
        justify-content: center;
    }
    
    .header__nav-link:hover {
        background: rgba(23, 181, 163, 0.2);
        color: var(--primary-color);
    }
    
    /* ハンバーガーメニューボタン */
    .header__hamburger {
        display: flex;
        flex-direction: column;
        justify-content: space-around;
        width: 30px;
        height: 30px;
        background: none;
        border: none;
        cursor: pointer;
        padding: 0;
        z-index: 10001;
        position: relative;
    }
    
    .header__hamburger-line {
        width: 100%;
        height: 3px;
        background: var(--white);
        border-radius: 2px;
        transition: all 0.3s ease;
    }
    
    .header__hamburger[aria-expanded="true"] .header__hamburger-line:nth-child(1) {
        transform: rotate(45deg) translate(6px, 6px);
    }
    
    .header__hamburger[aria-expanded="true"] .header__hamburger-line:nth-child(2) {
        opacity: 0;
    }
    
    .header__hamburger[aria-expanded="true"] .header__hamburger-line:nth-child(3) {
        transform: rotate(-45deg) translate(6px, -6px);
    }
    
    /* ロゴのサイズ調整 */
    .header__logo-img {
        height: 50px;
        max-width: 200px;
    }
    
    /* ヒーローセクションの調整 */
    .hero {
        min-height: 80vh;
        padding: 100px 0 60px;
    }
    
    .hero__title { 
        font-size: 32px; /* より読みやすいサイズに */
        line-height: 1.2;
        margin-bottom: 20px;
        text-align: center; /* モバイルでは中央揃え */
    }
    
    .hero__subtitle { 
        font-size: 16px;
        line-height: 1.7;
        text-align: center;
        max-width: 90%; /* 画面端からの余白確保 */
        margin: 0 auto 40px;
    }
    
    .hero__cta { 
        flex-direction: column; 
        gap: 15px;
    }
    
    .hero__cta-buttons {
        flex-direction: column;
        align-items: center;
        width: 100%;
    }
    
    /* ボタンのタッチターゲット改善 */
    .btn {
        min-height: 48px;
        padding: 16px 32px;
        font-size: 16px;
        font-weight: 600;
        border-radius: 12px;
        transition: all 0.2s ease;
        position: relative;
        overflow: hidden;
    }
    
    .btn--large {
        min-height: 56px; /* より大きなタッチターゲット */
        padding: 20px 40px;
        font-size: 17px;
        border-radius: 14px;
    }
    
    /* タッチフィードバックの改善 */
    .btn:active {
        transform: scale(0.98);
    }
    
    .btn::before {
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background: rgba(255, 255, 255, 0.1);
        opacity: 0;
        transition: opacity 0.2s ease;
    }
    
    .btn:active::before {
        opacity: 1;
    }
    
    /* フォントサイズの改善 */
    .section { 
        padding: 50px 0; /* より適切なスペーシング */
    }
    
    .section-title { 
        font-size: 28px; /* より読みやすく */
        line-height: 1.3;
        text-align: center;
        margin-bottom: 16px;
    }
    
    .section-subtitle {
        font-size: 16px;
        line-height: 1.7;
        text-align: center;
        max-width: 85%;
        margin: 0 auto 40px;
        color: var(--text-gray);
    }
    
    .text-gray-small {
        font-size: 15px; /* 14px から改善 */
        line-height: 1.6;
    }
    
    /* カードとグリッドの改善 */
    .grid--2-cols,
    .grid--3-cols,
    .grid--4-cols { 
        grid-template-columns: 1fr;
        gap: 24px; /* より適切なスペーシング */
    }
    
    .stats-grid { 
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .glass-card { 
        padding: 28px 24px; /* 縦方向により多くのスペース */
        margin: 0 8px; /* 画面端からの余白 */
    }
    
    .theme-card,
    .card {
        padding: 28px 24px;
        margin: 0 8px;
        border-radius: 16px; /* より現代的な角丸 */
    }
    
    .theme-card__title,
    .award-card__title {
        font-size: 20px;
        line-height: 1.4;
    }
    
    .theme-card__text,
    .award-card__text {
        font-size: 15px;
        line-height: 1.7;
    }
    
    /* インラインCTAのモバイル対応 */
    .inline-cta {
        padding: 40px 20px;
        margin: 30px 0;
        border-radius: 20px;
        background: linear-gradient(135deg, rgba(23, 181, 163, 0.05), rgba(23, 181, 163, 0.1));
        border: 1px solid rgba(23, 181, 163, 0.1);
    }
    
    .inline-cta__title {
        font-size: 22px;
        line-height: 1.4;
        text-align: center;
        margin-bottom: 12px;
    }
    
    .inline-cta__text {
        font-size: 15px;
        text-align: center;
        margin-bottom: 24px;
        line-height: 1.7;
    }
    
    .inline-cta__buttons {
        flex-direction: column;
        gap: 12px;
        width: 100%;
    }
    
    .inline-cta__buttons .btn {
        width: 100%;
        max-width: 320px;
    }
    
    /* タイムライン */
    .timeline { padding-left: 0; }
    .timeline::before { left: 15px; }
    .timeline-item { padding-left: 50px; }
    .timeline-item::before { left: 6px; }
    
    .timeline-item__date {
        font-size: 16px;
    }
    
    .timeline-item__title {
        font-size: 15px;
    }
    
    .current-phase {
        font-size: 18px;
        padding: 6px 15px;
    }
    
    .deadline-emphasis {
        font-size: 16px;
    }
    
    /* フッター */
    .footer__logo-img {
        height: 50px;
        max-width: 200px;
    }
    
    .footer__container {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    .footer__nav-list {
        grid-template-columns: 1fr;
        gap: 12px;
    }
    
    .footer__nav-link {
        padding: 10px 0;
        min-height: 44px;
        display: flex;
        align-items: center;
    }
    
    /* CTA セクション */
    .cta-section { 
        padding: 80px 0;
    }
    
    .cta-section__title { 
        font-size: 32px;
        line-height: 1.3;
    }
    
    .cta-section__subtitle {
        font-size: 16px;
        line-height: 1.7;
    }
}

/* ===== New CTA Button Styles ===== */
.hero__cta-buttons {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
    justify-content: center;
}

.footer__cta {
    margin-top: 30px;
    text-align: center;
}

.footer__cta-buttons {
    display: flex;
    gap: 15px;
    justify-content: center;
    flex-wrap: wrap;
}

/* ===== モバイル専用の追加最適化 ===== */
@media (max-width: 768px) {
    /* スクロールパフォーマンスの改善 */
    * {
        -webkit-overflow-scrolling: touch;
    }
    
    /* タップハイライトの無効化 */
    * {
        -webkit-tap-highlight-color: transparent;
    }
    
    /* フォーカス表示の改善 */
    .btn:focus,
    .header__nav-link:focus,
    .footer__nav-link:focus {
        outline: 2px solid var(--primary-color);
        outline-offset: 2px;
    }
    
    /* 画像の最適化 */
    img {
        height: auto;
        max-width: 100%;
        object-fit: cover;
    }
    
    /* テキスト選択の改善 */
    .hero__title,
    .section-title {
        user-select: none; /* タイトルは選択不可 */
    }
    
    /* 長いテキストの処理 */
    .text-overflow {
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
    }
    
    /* CTAボタンの統合 */
    .hero__cta-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .hero__cta-buttons .btn {
        width: 100%;
        max-width: 300px;
    }
    
    .footer__cta-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .footer__cta-buttons .btn {
        width: 100%;
        max-width: 280px;
    }
    
    /* フッターの改善 */
    .footer {
        padding: 50px 0 30px;
    }
    
    .footer__content {
        text-align: center;
    }
    
    .footer__nav-list {
        flex-direction: column;
        gap: 20px;
        margin: 30px 0;
    }
    
    .footer__nav-link {
        font-size: 16px;
        padding: 12px 0;
        min-height: 44px;
        display: flex;
        align-items: center;
        justify-content: center;
    }
    
    .footer__copyright {
        font-size: 14px;
        margin-top: 30px;
        padding-top: 20px;
        border-top: 1px solid rgba(255, 255, 255, 0.1);
    }
    
    /* Award Philosophy Mobile */
    .award-philosophy {
        margin: 40px 0;
        padding: 30px 15px;
    }
    
    .award-philosophy__subtitle {
        font-size: 16px;
        margin-bottom: 15px;
    }
    
    .award-philosophy__title {
        font-size: 28px;
        line-height: 1.2;
    }
}

.btn--full-width {
    width: 100%;
    text-align: center;
}

/* ===== モバイル特有の機能追加 ===== */
@media (max-width: 768px) {
    /* プルトゥリフレッシュの無効化 */
    body {
        overscroll-behavior-y: contain;
    }
    
    /* 横スクロールの防止 */
    html, body {
        overflow-x: hidden;
        max-width: 100vw;
    }
    
    /* セーフエリアの対応（iPhone X以降） */
    .header {
        padding-top: env(safe-area-inset-top);
        height: auto; /* 高さを自動調整 */
    }
    
    .footer {
        padding-bottom: env(safe-area-inset-bottom);
    }
    
    /* ダークモード対応の改善 */
    @media (prefers-color-scheme: dark) {
        .glass-card,
        .theme-card,
        .card {
            background: rgba(255, 255, 255, 0.05);
            border: 1px solid rgba(255, 255, 255, 0.1);
        }
    }
    
    /* 高コントラストモード対応 */
    @media (prefers-contrast: high) {
        .btn {
            border: 3px solid currentColor;
            font-weight: 700;
        }
        
        .glass-card,
        .theme-card,
        .card {
            border: 2px solid var(--primary-color);
        }
    }
    
    /* 動きを減らす設定への対応 */
    @media (prefers-reduced-motion: reduce) {
        .btn,
        .header__nav,
        .header__hamburger-line {
            transition: none;
        }
        
        .btn:active {
            transform: none;
        }
    }
}

/* ===== Partners Grid ===== */
.partners-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    gap: 20px;
    justify-content: center;
    margin-bottom: 40px;
}

.partner-logo {
    background: var(--white);
    border-radius: 12px;
    padding: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100px;
    transition: all 0.3s;
    border: 1px solid var(--border-light);
}

.partner-logo:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(23, 181, 163, 0.2);
    border-color: var(--primary-color);
}

.partner-logo img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    width: auto;
    height: auto;
}

@media (max-width: 480px) {
    .partners-grid {
        grid-template-columns: 1fr;
        gap: 28px;
        justify-items: center;
    }

    .partner-logo {
        width: 100%;
        max-width: 320px;
    }
}
