/* ================================================
   一般社団法人中小企業AI推進協会（AIPAS）
   スタイルシート
   バージョン: 2.0 - 2026-01-17 更新
   ================================================ */

/* ================================================
   リセット & 基本設定
   ================================================ */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --color-primary: #000000;
    --color-secondary: #333333;
    --color-text: #1a1a1a;
    --color-text-light: #666666;
    --color-border: #e0e0e0;
    --color-bg: #ffffff;
    --color-bg-alt: #fafafa;
    --color-accent: #0066ff;
    --color-navy: #1e3a5f;
    --spacing-xs: 8px;
    --spacing-sm: 16px;
    --spacing-md: 32px;
    --spacing-lg: 64px;
    --spacing-xl: 128px;
    --font-sans: 'Noto Sans JP', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-sans);
    font-size: 16px;
    line-height: 1.8;
    color: var(--color-text);
    background-color: var(--color-bg);
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    font-weight: 400;
    letter-spacing: 0.02em;
}

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

.section {
    padding: var(--spacing-xl) 0;
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.8s cubic-bezier(0.4, 0, 0.2, 1), 
                transform 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.section.visible {
    opacity: 1;
    transform: translateY(0);
}

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

/* ================================================
   ヘッダー
   ================================================ */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background-color: rgba(255, 255, 255, 0.95);
    box-shadow: 0 1px 0 rgba(0, 0, 0, 0.05);
    z-index: 1000;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    backdrop-filter: blur(20px);
    transform: translateY(0);
}

.header.scrolled {
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
    background-color: rgba(255, 255, 255, 0.98);
}

.header.hidden {
    transform: translateY(-100%);
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 0;
}

.logo {
    display: flex;
    align-items: center;
    gap: 12px;
}

.logo img {
    height: 50px;
    width: auto;
}

/* ロゴテキストは削除されました */

.nav-menu {
    display: flex;
    list-style: none;
    gap: 30px;
    align-items: center;
}

.nav-link {
    text-decoration: none;
    color: var(--text-dark);
    font-weight: 500;
    transition: color 0.3s ease;
    position: relative;
    /* タッチ操作の最適化 */
    -webkit-tap-highlight-color: transparent;
    padding: 8px 0;
}

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

.nav-link:hover,
.nav-link.active {
    color: var(--primary-color);
}

.nav-link:hover::after,
.nav-link.active::after {
    width: 100%;
}

/* 次の更新まで表示する「new!」点滅バッジ（活動報告の左肩に表示・iOSで確実に左肩になるよう containing block を明示） */
.label-with-badge {
    position: relative;
    display: inline-block;
    -webkit-transform: translateZ(0);
    transform: translateZ(0);
    isolation: isolate;
    -webkit-isolation: isolate;
}

.badge-new {
    position: absolute;
    top: -4px;
    left: -2px;
    z-index: 2;
    padding: 1px 5px;
    font-size: 0.55em;
    font-weight: 700;
    line-height: 1.2;
    color: var(--primary-color);
    background: rgba(0, 102, 204, 0.14);
    border-radius: 3px;
    white-space: nowrap;
    animation: badge-blink 1.5s ease-in-out infinite;
    -webkit-animation: badge-blink 1.5s ease-in-out infinite;
}

.section-title .label-with-badge {
    padding-top: 0.2em;
}

.section-title .badge-new {
    font-size: 0.45em;
    top: -2px;
    left: 0;
    padding: 2px 6px;
}

/* 活動報告セクション：最新項目の日付の左肩に new!（iOSで containing block を確実に） */
.activity-date.label-with-badge {
    position: relative;
    padding-top: 5px;
    -webkit-transform: translateZ(0);
    transform: translateZ(0);
}

.activity-date .badge-new {
    font-size: 0.5em;
    top: -2px;
    left: 0;
    padding: 2px 5px;
}

@keyframes badge-blink {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}

@-webkit-keyframes badge-blink {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}

.mobile-menu-toggle {
    display: none;
    font-size: 28px;
    color: var(--primary-color);
    cursor: pointer;
    padding: 10px;
    z-index: 1001;
    -webkit-tap-highlight-color: transparent;
    touch-action: manipulation;
}

/* ================================================
   ヒーローセクション（PKSHA洗練スタイル）
   ================================================ */
.hero {
    position: relative;
    min-height: 100vh;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    overflow: hidden;
}

.hero-background {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    overflow: hidden;
    background-color: #1a2a4a !important;
    background-image: none !important;
    background-size: auto !important;
    background-position: center !important;
    background-repeat: no-repeat !important;
    background-attachment: scroll !important;
}

.hero-gradient {
    display: none;
}

#nodeNetworkCanvas {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    pointer-events: none;
    display: block;
    -webkit-tap-highlight-color: transparent;
    touch-action: none;
}

.hero-content {
    position: relative;
    z-index: 3;
    text-align: center;
    max-width: 900px;
    margin: 0 auto;
    padding: var(--spacing-xl) var(--spacing-md);
    animation: heroFadeIn 1.2s cubic-bezier(0.4, 0, 0.2, 1) both;
}

.hero-label {
    display: inline-block;
    font-size: 0.875rem;
    font-weight: 600;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: var(--spacing-md);
    opacity: 0.9;
}

.hero-title {
    font-size: 6rem;
    font-weight: 900;
    line-height: 1.1;
    letter-spacing: -0.02em;
    color: #ffffff;
    margin-bottom: var(--spacing-lg);
    text-shadow: 0 4px 30px rgba(0, 0, 0, 0.4);
}

.title-line {
    display: block;
    opacity: 0;
    animation: titleSlideUp 0.8s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

.title-line:nth-child(1) {
    animation-delay: 0.2s;
}

.title-line:nth-child(2) {
    animation-delay: 0.4s;
}

.hero-lead {
    font-size: 1.3rem;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.95);
    margin-bottom: var(--spacing-sm);
    letter-spacing: 0.05em;
    opacity: 0;
    animation: fadeIn 0.8s ease forwards 0.6s;
    text-shadow: 0 1px 10px rgba(0, 0, 0, 0.2);
}

.hero-text {
    font-size: 1.125rem;
    line-height: 1.8;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: var(--spacing-lg);
    opacity: 0;
    animation: fadeIn 0.8s ease forwards 0.8s;
    text-shadow: 0 1px 8px rgba(0, 0, 0, 0.2);
}

.hero-cta {
    opacity: 0;
    animation: fadeIn 0.8s ease forwards 1s;
}

/* ボタン（洗練版） */
.btn-minimal {
    display: inline-flex;
    align-items: center;
    gap: var(--spacing-xs);
    padding: 16px 36px;
    font-size: 1rem;
    font-weight: 500;
    color: #ffffff;
    background-color: rgba(255, 255, 255, 0.1);
    text-decoration: none;
    border: 2px solid rgba(255, 255, 255, 0.8);
    border-radius: 8px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    letter-spacing: 0.05em;
    position: relative;
    overflow: hidden;
    backdrop-filter: blur(10px);
}

.btn-minimal::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 0;
    height: 100%;
    background-color: rgba(255, 255, 255, 0.2);
    transition: width 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: -1;
}

.btn-minimal:hover::before {
    width: 100%;
}

.btn-minimal:hover {
    color: #ffffff;
    border-color: #ffffff;
    background-color: rgba(255, 255, 255, 0.15);
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
}

.btn-minimal svg {
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.btn-minimal:hover svg {
    transform: translateX(4px);
}

/* スクロールヒント */
.scroll-hint {
    position: absolute;
    bottom: var(--spacing-lg);
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--spacing-sm);
    z-index: 3;
    opacity: 0;
    animation: fadeIn 0.8s ease forwards 1.2s;
}

.scroll-line {
    width: 1px;
    height: 40px;
    background: linear-gradient(to bottom, var(--color-border), transparent);
    animation: scrollLineAnim 2s ease-in-out infinite;
}

.scroll-text {
    font-size: 0.6875rem;
    font-weight: 500;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--color-text-light);
    writing-mode: vertical-rl;
    opacity: 0.6;
}

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

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

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

@keyframes scrollLineAnim {
    0%, 100% {
        transform: translateY(0);
        opacity: 0;
    }
    50% {
        opacity: 1;
    }
    100% {
        transform: translateY(20px);
        opacity: 0;
    }
}

/* ================================================
   ボタン（超ダイナミック版）
   ================================================ */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 18px 36px;
    font-size: 1rem;
    font-weight: 700;
    text-decoration: none;
    border-radius: 12px;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    cursor: pointer;
    border: none;
    outline: none;
    position: relative;
    overflow: hidden;
    /* タッチ操作の最適化 */
    -webkit-tap-highlight-color: transparent;
    touch-action: manipulation;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
}

.btn:hover {
    transform: translateY(-5px) scale(1.02);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.4);
}

.btn:active {
    transform: translateY(-2px) scale(0.98);
}

.btn-primary {
    background: linear-gradient(135deg, #ffffff 0%, #e0e7ff 100%);
    color: var(--primary-color);
}

.btn-primary:hover {
    background: linear-gradient(135deg, #e0e7ff 0%, #ffffff 100%);
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.1);
    color: white;
    border: 2px solid rgba(255, 255, 255, 0.5);
    backdrop-filter: blur(10px);
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.2);
    border-color: white;
}

/* ================================================
   セクションヘッダー
   ================================================ */
.section-header {
    text-align: center;
    margin-bottom: var(--spacing-lg);
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s cubic-bezier(0.4, 0, 0.2, 1) 0.1s,
                transform 0.6s cubic-bezier(0.4, 0, 0.2, 1) 0.1s;
}

.section.visible .section-header {
    opacity: 1;
    transform: translateY(0);
}

.section-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--color-primary);
    margin-bottom: var(--spacing-sm);
    letter-spacing: -0.02em;
}

.section-subtitle {
    font-size: 0.875rem;
    color: var(--color-text-light);
    font-weight: 500;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

/* ================================================
   協会についてセクション
   ================================================ */
.about {
    position: relative;
    overflow: hidden;
}

/* 動く背景 */
.about-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    overflow: hidden;
}

.bg-pattern {
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background-image: 
        radial-gradient(circle at 20% 50%, rgba(0, 102, 255, 0.03) 0%, transparent 50%),
        radial-gradient(circle at 80% 80%, rgba(30, 91, 168, 0.03) 0%, transparent 50%),
        radial-gradient(circle at 40% 20%, rgba(96, 165, 250, 0.02) 0%, transparent 50%);
    animation: patternMove 30s ease-in-out infinite;
}

.bg-gradient {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, 
        rgba(248, 249, 250, 0.5) 0%, 
        rgba(255, 255, 255, 0.3) 50%,
        rgba(240, 245, 255, 0.4) 100%);
    animation: gradientFloat 20s ease-in-out infinite;
}

@keyframes patternMove {
    0%, 100% {
        transform: translate(0, 0) rotate(0deg);
    }
    33% {
        transform: translate(5%, 5%) rotate(120deg);
    }
    66% {
        transform: translate(-5%, 3%) rotate(240deg);
    }
}

@keyframes gradientFloat {
    0%, 100% {
        opacity: 1;
        transform: scale(1);
    }
    50% {
        opacity: 0.8;
        transform: scale(1.1);
    }
}

.about .container {
    position: relative;
    z-index: 1;
}

.about-content {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--spacing-lg);
}

.about-text h3 {
    font-size: 1.8rem;
    color: var(--color-primary);
    margin-bottom: var(--spacing-md);
    font-weight: 700;
    letter-spacing: -0.01em;
}

.about-text p {
    margin-bottom: var(--spacing-sm);
    font-size: 1.3rem;
    line-height: 1.8;
    color: var(--color-text);
}

.about-mission {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: var(--spacing-md);
    max-width: 1100px;
    margin: 0 auto;
}

/* ラッパー：裏アイコンをここに固定し、カードだけ浮かせる */
.mission-card-wrapper {
    position: relative;
    min-height: 280px;
}

.mission-card {
    position: relative;
    padding: var(--spacing-lg) var(--spacing-md);
    border-radius: 20px;
    text-align: center;
    color: var(--color-text);
    overflow: hidden;
    opacity: 1;
    transform: translateY(0);
    transition: transform 0.45s cubic-bezier(0.34, 1.56, 0.64, 1),
                box-shadow 0.45s ease,
                border-color 0.3s ease,
                background-color 0.3s ease;
    /* 透明感：裏アイコンがくっきり透けるようぼかしなし・半透明のみ */
    background: rgba(255, 255, 255, 0.38);
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    border: 1px solid rgba(255, 255, 255, 0.5);
    /* 奥行き感：多層シャドウ＋内側の光 */
    box-shadow: 0 1px 0 rgba(255, 255, 255, 0.7) inset,
                0 4px 12px rgba(0, 0, 0, 0.04),
                0 12px 32px rgba(0, 0, 0, 0.06),
                0 24px 56px rgba(0, 0, 0, 0.04);
}

.mission-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
    background: var(--color-navy);
    border-radius: 4px 0 0 4px;
    z-index: 2;
    box-shadow: 0 0 12px rgba(30, 58, 95, 0.25);
}

.mission-card:not(.visible) {
    opacity: 0;
    transform: translateY(30px);
}

/* カード内の動く背景（透明感・奥行き用の光の揺らぎ） */
.mission-bg {
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(ellipse 70% 60% at 50% -20%, rgba(255, 255, 255, 0.4) 0%, transparent 50%),
                radial-gradient(ellipse 50% 40% at 80% 80%, rgba(30, 58, 95, 0.06) 0%, transparent 45%);
    animation: missionBgFloat 18s ease-in-out infinite;
    pointer-events: none;
}

.mission-card-wrapper:nth-child(1) .mission-bg { animation-delay: 0s; }
.mission-card-wrapper:nth-child(2) .mission-bg { animation-delay: 6s; }
.mission-card-wrapper:nth-child(3) .mission-bg { animation-delay: 12s; }

@keyframes missionBgFloat {
    0%, 100% { transform: translate(0, 0) scale(1); opacity: 0.6; }
    50% { transform: translate(5%, 8%) scale(1.15); opacity: 0.9; }
}

.section.visible .mission-card {
    animation: cardFadeIn 0.6s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

.section.visible .mission-card:nth-child(1) { animation-delay: 0.2s; }
.section.visible .mission-card:nth-child(2) { animation-delay: 0.3s; }
.section.visible .mission-card:nth-child(3) { animation-delay: 0.4s; }

.mission-card:hover {
    transform: translateY(-10px) scale(1.015);
    background: rgba(255, 255, 255, 0.5);
    border-color: rgba(255, 255, 255, 0.65);
    box-shadow: 0 1px 0 rgba(255, 255, 255, 0.8) inset,
                0 8px 24px rgba(0, 0, 0, 0.06),
                0 24px 56px rgba(0, 0, 0, 0.1),
                0 40px 80px rgba(30, 58, 95, 0.08);
}

.mission-card:hover .mission-bg {
    animation-duration: 10s;
}

/* カード裏側の大きなアイコン（くっきり見えるよう不透明度上げ・ラッパーに固定） */
.mission-card-bg-icon {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: clamp(140px, 18vw, 200px);
    width: 1em;
    height: 1em;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--color-navy);
    opacity: 0.32;
    z-index: 0;
    pointer-events: none;
    transition: opacity 0.4s ease;
    -webkit-font-smoothing: antialiased;
    font-weight: 900;
}

.mission-card-wrapper:hover .mission-card-bg-icon {
    opacity: 0.42;
}

/* Visionカード用：横顔アイコン（SVG） */
.mission-card-bg-icon--humanoid {
    width: 1em;
    height: 1em;
}
.mission-card-bg-icon--humanoid svg {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
}
.mission-card-bg-icon--humanoid svg {
    fill: currentColor;
}


.mission-card h4 {
    font-size: 1.5rem;
    margin-bottom: var(--spacing-sm);
    font-weight: 700;
    position: relative;
    z-index: 1;
    letter-spacing: 0.02em;
    color: var(--color-primary);
}

.mission-card p {
    font-size: 1rem;
    line-height: 1.75;
    position: relative;
    z-index: 1;
    color: var(--color-text);
    letter-spacing: 0.01em;
}

/* ================================================
   事業内容セクション
   ================================================ */
.business {
    position: relative;
    overflow: hidden;
}

/* 浮遊する図形の背景 */
.section-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    overflow: hidden;
}

.floating-shapes {
    position: absolute;
    width: 100%;
    height: 100%;
}

.shape {
    position: absolute;
    border-radius: 50%;
    filter: blur(60px);
    opacity: 0.15;
    animation: floatShape 20s ease-in-out infinite;
}

.shape-1 {
    width: 300px;
    height: 300px;
    background: linear-gradient(135deg, #60A5FA, #3B82F6);
    top: 10%;
    left: 10%;
    animation-delay: 0s;
}

.shape-2 {
    width: 250px;
    height: 250px;
    background: linear-gradient(135deg, #1E5BA8, #60A5FA);
    top: 60%;
    right: 15%;
    animation-delay: 7s;
}

.shape-3 {
    width: 200px;
    height: 200px;
    background: linear-gradient(135deg, #3B82F6, #1E5BA8);
    bottom: 20%;
    left: 50%;
    animation-delay: 14s;
}

@keyframes floatShape {
    0%, 100% {
        transform: translate(0, 0) scale(1);
    }
    33% {
        transform: translate(50px, -30px) scale(1.1);
    }
    66% {
        transform: translate(-30px, 50px) scale(0.9);
    }
}

.business .container {
    position: relative;
    z-index: 1;
}

.business-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: var(--spacing-md);
}

.business-card {
    background-color: var(--color-bg);
    padding: 40px;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    border: 1px solid var(--color-border);
    opacity: 1;
    transform: translateY(0);
}

.business-card:not(.visible) {
    opacity: 0;
    transform: translateY(30px);
}

.section.visible .business-card {
    animation: cardFadeIn 0.6s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

.section.visible .business-card:nth-child(1) {
    animation-delay: 0.1s;
}

.section.visible .business-card:nth-child(2) {
    animation-delay: 0.2s;
}

.section.visible .business-card:nth-child(3) {
    animation-delay: 0.3s;
}

.business-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.08);
    border-color: var(--color-primary);
}

.business-icon {
    width: 70px;
    height: 70px;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    border-radius: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 25px;
}

.business-icon i {
    font-size: 2rem;
    color: white;
}

.business-card h3 {
    font-size: 1.6rem;
    color: var(--primary-color);
    margin-bottom: 15px;
}

.business-card h4 {
    font-size: 1.2rem;
    color: var(--text-dark);
    margin-bottom: 20px;
    font-weight: 600;
}

.business-card p {
    color: var(--text-light);
    margin-bottom: 15px;
    line-height: 1.8;
}

.business-card p strong {
    color: var(--primary-color);
}

/* ================================================
   活動報告セクション
   ================================================ */
.activity-list {
    max-width: 900px;
    margin: 0 auto;
}

.activity-item {
    display: flex;
    gap: 30px;
    padding: 30px 0;
    border-bottom: 1px solid var(--color-border);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    opacity: 1;
    transform: translateX(0);
}

.activity-item:not(.visible) {
    opacity: 0;
    transform: translateX(-20px);
}

.section.visible .activity-item {
    animation: slideInLeft 0.6s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

.section.visible .activity-item:nth-child(1) { animation-delay: 0.1s; }
.section.visible .activity-item:nth-child(2) { animation-delay: 0.2s; }
.section.visible .activity-item:nth-child(3) { animation-delay: 0.3s; }
.section.visible .activity-item:nth-child(4) { animation-delay: 0.4s; }

@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-20px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

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

.activity-item:hover {
    background-color: var(--color-bg-alt);
    padding-left: 20px;
    padding-right: 20px;
    margin-left: -20px;
    margin-right: -20px;
}

.activity-date {
    flex-shrink: 0;
    width: 120px;
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--primary-color);
    padding-top: 5px;
}

.activity-content {
    flex: 1;
}

.activity-content h3 {
    font-size: 1.3rem;
    color: var(--text-dark);
    margin-bottom: 10px;
    font-weight: 600;
    line-height: 1.6;
}

.activity-content p {
    color: var(--text-light);
    line-height: 1.8;
    font-size: 1rem;
}

.activity-content a {
    color: var(--color-accent);
    text-decoration: none;
    transition: color 0.3s ease;
    border-bottom: 1px solid transparent;
}

.activity-content a:hover {
    color: var(--color-primary);
    border-bottom-color: var(--color-accent);
}

.activity-content h3 a {
    color: var(--text-dark);
    border-bottom: 1px solid transparent;
}

.activity-content h3 a:hover {
    color: var(--color-accent);
    border-bottom-color: var(--color-accent);
}

/* ================================================
   役員紹介セクション
   ================================================ */
.officers-intro {
    text-align: center;
    font-size: 1.1rem;
    margin-bottom: 50px;
    color: var(--text-light);
}

.officers-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 35px;
    max-width: 1200px;
    margin: 0 auto;
}

@media (max-width: 1200px) {
    .officers-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .officers-grid {
        grid-template-columns: 1fr;
    }
}

.officer-card {
    background-color: var(--color-bg);
    padding: 40px 30px;
    border-radius: 12px;
    text-align: center;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
    border: 1px solid var(--color-border);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    opacity: 1;
    transform: scale(1);
    position: relative;
    overflow: hidden;
}

.officer-card:not(.visible) {
    opacity: 0;
    transform: scale(0.95);
}

.section.visible .officer-card {
    animation: cardScaleIn 0.6s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

.section.visible .officer-card:nth-child(1) { animation-delay: 0.1s; }
.section.visible .officer-card:nth-child(2) { animation-delay: 0.2s; }
.section.visible .officer-card:nth-child(3) { animation-delay: 0.3s; }
.section.visible .officer-card:nth-child(4) { animation-delay: 0.4s; }

@keyframes cardScaleIn {
    from {
        opacity: 0;
        transform: scale(0.95);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

.officer-card:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.08);
    border-color: var(--color-primary);
}

.officer-photo {
    width: 180px;
    height: 180px;
    margin: 0 auto 25px;
    border-radius: 50%;
    overflow: hidden;
    border: 4px solid var(--color-border);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
}

.officer-photo::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(0, 0, 0, 0), rgba(0, 0, 0, 0.1));
    opacity: 0;
    transition: opacity 0.3s ease;
}

.officer-card:hover .officer-photo {
    border-color: var(--color-primary);
    transform: scale(1.05);
}

.officer-card:hover .officer-photo::after {
    opacity: 1;
}

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

.officer-card h3 {
    font-size: 1.5rem;
    color: var(--text-dark);
    margin-bottom: 10px;
}

.officer-title {
    font-size: 1rem;
    color: var(--primary-color);
    font-weight: 600;
    margin-bottom: 15px;
}

.officer-description {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(0, 0, 0, 0.95), rgba(26, 26, 26, 0.98));
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 30px;
    opacity: 0;
    visibility: hidden;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    border-radius: 12px;
    z-index: 10;
}

.officer-description p {
    color: white;
    font-size: 0.95rem;
    line-height: 1.7;
    text-align: center;
    margin: 0;
    transform: translateY(20px);
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.officer-card:hover .officer-description {
    opacity: 1;
    visibility: visible;
}

.officer-card:hover .officer-description p {
    transform: translateY(0);
}

/* スマホでのタップ時表示 */
.officer-card.active-mobile .officer-description {
    opacity: 1;
    visibility: visible;
}

.officer-card.active-mobile .officer-description p {
    transform: translateY(0);
}

/* ================================================
   ビジョンセクション
   ================================================ */
.vision {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    color: white;
    text-align: center;
    padding: 100px 20px;
}

.vision-content h2 {
    font-size: 2.5rem;
    margin-bottom: 40px;
    font-weight: 700;
}

.vision-text {
    font-size: 1.3rem;
    line-height: 2;
    margin-bottom: 25px;
}

/* ================================================
   お問い合わせセクション
   ================================================ */
.contact-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: start;
}

.contact-form-box {
    background: linear-gradient(135deg, #f8fafc 0%, #e7f0fd 100%);
    padding: 25px 20px;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(30, 91, 168, 0.06);
    text-align: center;
    border: 1px solid rgba(59, 130, 246, 0.1);
    position: relative;
    overflow: hidden;
    max-width: 100%;
    height: fit-content;
}

.contact-form-box::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(59, 130, 246, 0.04) 0%, transparent 70%);
    animation: pulse 8s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% { transform: translate(0, 0) scale(1); }
    50% { transform: translate(10px, 10px) scale(1.1); }
}

.form-description {
    margin-bottom: 20px;
    position: relative;
    z-index: 1;
}

.form-description p {
    color: var(--text-dark);
    font-size: 0.9rem;
    line-height: 1.6;
    margin-bottom: 8px;
    font-weight: 500;
}

.form-description p:first-child {
    font-size: 1rem;
    font-weight: 600;
    color: var(--primary-color);
}

.btn-contact-form {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 24px;
    font-size: 0.95rem;
    font-weight: 600;
    background: linear-gradient(135deg, #1E5BA8 0%, #3B82F6 50%, #60A5FA 100%);
    color: white;
    border: none;
    border-radius: 40px;
    text-decoration: none;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 4px 12px rgba(30, 91, 168, 0.3);
    position: relative;
    z-index: 2;
    overflow: hidden;
}

.btn-contact-form::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.6s ease;
}

.btn-contact-form:hover::before {
    left: 100%;
}

.btn-contact-form:hover {
    transform: translateY(-2px) scale(1.02);
    box-shadow: 0 8px 20px rgba(30, 91, 168, 0.45);
}

.btn-contact-form:active {
    transform: translateY(-1px) scale(1.01);
}

.btn-contact-form i {
    font-size: 1rem;
    animation: iconBounce 2s ease-in-out infinite;
}

@keyframes iconBounce {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-4px); }
}

.form-note {
    margin-top: 12px;
    font-size: 0.8rem;
    color: var(--text-light);
    opacity: 0.75;
    position: relative;
    z-index: 1;
    font-weight: 500;
}

.contact-info {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.info-card {
    background-color: var(--bg-white);
    padding: 25px;
    border-radius: 12px;
    box-shadow: var(--shadow);
    transition: all 0.3s ease;
}

.info-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-lg);
}

.info-card i {
    font-size: 2rem;
    color: var(--primary-color);
    margin-bottom: 12px;
}

.info-card h3 {
    font-size: 1.1rem;
    color: var(--primary-color);
    margin-bottom: 8px;
}

.info-card p {
    color: var(--text-light);
    line-height: 1.7;
    font-size: 0.95rem;
}

.info-card a {
    color: var(--primary-color);
    text-decoration: none;
    transition: color 0.3s ease;
}

.info-card a:hover {
    color: var(--secondary-color);
}

.contact-social {
    margin-top: 14px;
    padding-top: 14px;
    border-top: 1px solid var(--color-border);
}

.contact-social a {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    color: var(--color-primary);
}

.contact-social a:hover {
    color: var(--color-secondary);
}

/* メール・所在地アイコンと同じデザイン（2rem・primary色） */
.contact-social .fab,
.contact-social i {
    font-size: 2rem;
    color: var(--color-primary);
    margin-bottom: 0;
    transition: color 0.3s ease;
}

.contact-social a:hover .fab,
.contact-social a:hover i {
    color: var(--color-secondary);
}

/* ================================================
   フッター
   ================================================ */
.footer {
    background-color: var(--text-dark);
    color: white;
    padding: 60px 0 20px;
}

.footer-content {
    display: grid;
    grid-template-columns: 2fr 1fr 1.5fr;
    gap: 50px;
    margin-bottom: 40px;
}

.footer-logo {
    display: flex;
    flex-direction: column;
}

.footer-logo p {
    margin-bottom: 10px;
    line-height: 1.6;
    font-weight: 600;
    font-size: 1.1rem;
}

.footer-logo p:first-child {
    font-size: 1.2rem;
    color: white;
}

.footer-en {
    font-size: 0.9rem;
    opacity: 0.8;
}

.footer-links h4,
.footer-contact h4 {
    font-size: 1.2rem;
    margin-bottom: 20px;
    color: var(--secondary-color);
}

.footer-links ul {
    list-style: none;
}

.footer-links li {
    margin-bottom: 12px;
}

.footer-links a {
    color: white;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-links a:hover {
    color: var(--secondary-color);
}

.footer-contact p {
    margin-bottom: 15px;
    line-height: 1.8;
}

.footer-contact i {
    margin-right: 10px;
    color: var(--secondary-color);
}

.footer-bottom {
    text-align: center;
    padding-top: 30px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.7);
}

/* ================================================
   トップに戻るボタン
   ================================================ */
.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    display: none;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    box-shadow: var(--shadow-lg);
    transition: all 0.3s ease;
    z-index: 999;
}

.back-to-top:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(30, 91, 168, 0.4);
}

.back-to-top.show {
    display: flex;
}

/* ================================================
   アニメーション
   ================================================ */
@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

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

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

.fade-in {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

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

/* ================================================
   レスポンシブデザイン
   ================================================ */

/* デスクトップ専用（明示的に設定） */
@media (min-width: 1025px) {
    .hero-title {
        font-size: 6rem;
        color: #ffffff;
        text-shadow: 0 4px 30px rgba(0, 0, 0, 0.4);
    }
    
    .hero-lead {
        font-size: 1.3rem;
        color: rgba(255, 255, 255, 0.95);
    }
    
    .hero-text {
        font-size: 1.125rem;
        color: rgba(255, 255, 255, 0.9);
    }
    
    .hero-label {
        color: rgba(255, 255, 255, 0.9);
    }
    
    .hero-background {
        background-color: #1a2a4a !important;
        background-image: none !important;
    }
    
    .officers-grid {
        grid-template-columns: repeat(4, 1fr);
    }
    
    .btn-minimal {
        color: #ffffff;
        border-color: rgba(255, 255, 255, 0.8);
        background-color: rgba(255, 255, 255, 0.1);
    }
}

/* タブレット（iPad含む） */
@media (max-width: 1024px) {
    .section {
        padding: var(--spacing-lg) 0;
    }
    
    .contact-content {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        gap: var(--spacing-md);
    }
    
    /* iPadでヒーローをビューポート高さいっぱいに（ノードキャンバス用） */
    .hero {
        min-height: 100vh;
        height: 100vh;
    }
    
    /* 動く背景のパフォーマンス最適化 */
    .shape {
        filter: blur(40px);
    }
    
    .bg-pattern,
    .hero-gradient::before,
    .hero-gradient::after {
        animation-duration: 40s;
    }
}

/* スマートフォン */
@media (max-width: 768px) {
    /* ナビゲーションメニュー */
    .nav-menu {
        position: fixed;
        top: 80px;
        left: -100%;
        width: 100%;
        height: calc(100vh - 80px);
        background-color: white;
        flex-direction: column;
        padding: 40px 20px;
        box-shadow: var(--shadow-lg);
        transition: left 0.3s ease;
        gap: 20px;
        z-index: 999;
        overflow-y: auto;
    }
    
    .nav-menu.active {
        left: 0;
    }
    
    .nav-menu li {
        width: 100%;
        text-align: center;
    }
    
    .nav-link {
        display: block;
        padding: 15px 20px;
        font-size: 1.1rem;
        border-bottom: 1px solid var(--border-color);
    }
    
    .nav-link::after {
        display: none;
    }
    
    .mobile-menu-toggle {
        display: block;
        position: relative;
        z-index: 1001;
    }
    
    /* 動く背景のモバイル最適化 */
    .shape-3 {
        display: none;
    }
    
    .shape {
        filter: blur(30px);
        opacity: 0.1;
    }
    
    .shape-1, .shape-2 {
        width: 200px;
        height: 200px;
    }
    
    .bg-pattern {
        animation-duration: 50s;
    }
    
    .mission-bg {
        animation-duration: 20s;
    }
    
    .hero-gradient::before,
    .hero-gradient::after {
        animation-duration: 40s;
    }
    
    /* ヒーローセクション（全画面維持・パディングは hero-content のみ） */
    .hero {
        padding: 0;
        min-height: 100vh;
    }
    
    .hero-content {
        padding: var(--spacing-lg) var(--spacing-md);
    }
    
    .hero-background {
        background-color: #1a2a4a !important;
        background-image: none !important;
    }
    
    .hero-title {
        font-size: 2.5rem;
        margin-bottom: var(--spacing-md);
    }
    
    .hero-lead {
        font-size: 1.1rem;
        margin-bottom: var(--spacing-sm);
    }
    
    .hero-text {
        font-size: 1rem;
        margin-bottom: var(--spacing-md);
    }
    
    .btn-minimal {
        width: 100%;
        justify-content: center;
        padding: 14px 28px;
        font-size: 0.95rem;
    }
    
    .scroll-hint {
        bottom: var(--spacing-md);
    }
    
    .scroll-line {
        height: 30px;
    }
    
    /* セクション */
    .section {
        padding: 50px 0;
    }
    
    .section-header {
        margin-bottom: 40px;
    }
    
    .section-title {
        font-size: 1.8rem;
    }
    
    .section-subtitle {
        font-size: 1rem;
    }
    
    /* 協会について */
    .about-text h3 {
        font-size: 1.4rem;
        line-height: 1.5;
    }
    
    .about-text p {
        font-size: 0.95rem;
    }
    
    .about-mission {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .mission-card {
        padding: 28px 24px;
    }
    
    .mission-card-wrapper .mission-card-bg-icon {
        font-size: clamp(120px, 16vw, 160px);
    }
    
    .mission-card h4 {
        font-size: 1.3rem;
    }
    
    /* 事業内容 */
    .business-grid,
    .officers-grid {
        grid-template-columns: 1fr;
        gap: 25px;
    }
    
    .business-card {
        padding: 30px 20px;
    }
    
    .business-card h3 {
        font-size: 1.4rem;
    }
    
    .business-card h4 {
        font-size: 1.1rem;
    }
    
    .business-card p {
        font-size: 0.95rem;
    }
    
    /* 役員写真 */
    .officer-photo {
        width: 150px;
        height: 150px;
    }
    
    .officer-description {
        padding: 20px;
    }
    
    .officer-description p {
        font-size: 0.85rem;
        line-height: 1.6;
    }
    
    /* 活動報告 */
    .activity-list {
        padding: 0 10px;
    }
    
    .activity-item {
        flex-direction: column;
        gap: 12px;
        padding: 25px 0;
    }
    
    .activity-item:hover {
        padding-left: 10px;
        padding-right: 10px;
        margin-left: -10px;
        margin-right: -10px;
    }
    
    .activity-date {
        width: auto;
        font-size: 0.95rem;
        padding-top: 0;
    }
    
    .activity-content h3 {
        font-size: 1.15rem;
        line-height: 1.5;
    }
    
    .activity-content p {
        font-size: 0.9rem;
        line-height: 1.7;
    }
    
    /* 役員紹介 */
    .officers-intro {
        font-size: 1rem;
        margin-bottom: 35px;
    }
    
    .officer-card {
        padding: 30px 20px;
    }
    
    .officer-icon {
        width: 80px;
        height: 80px;
    }
    
    .officer-icon i {
        font-size: 2.5rem;
    }
    
    .officer-card h3 {
        font-size: 1.3rem;
    }
    
    /* ビジョン */
    .vision {
        padding: 60px 20px;
    }
    
    .vision-content h2 {
        font-size: 1.8rem;
        margin-bottom: 30px;
    }
    
    .vision-text {
        font-size: 1.05rem;
        line-height: 1.8;
    }
    
    /* お問い合わせ */
    .contact-form-box {
        padding: 20px 15px;
    }
    
    .form-description p {
        font-size: 0.85rem;
    }
    
    .form-description p:first-child {
        font-size: 0.95rem;
    }
    
    .btn-contact-form {
        padding: 10px 20px;
        font-size: 0.9rem;
        gap: 6px;
    }
    
    .btn-contact-form i {
        font-size: 0.95rem;
    }
    
    .info-card {
        padding: 20px 18px;
    }
    
    .info-card i {
        font-size: 1.8rem;
    }
    
    .info-card h3 {
        font-size: 1.05rem;
    }
    
    .info-card p {
        font-size: 0.9rem;
    }
    
    /* フッター */
    .footer {
        padding: 40px 0 20px;
    }
    
    .footer-content {
        gap: 30px;
    }
    
    .footer-logo p {
        font-size: 0.95rem;
    }
    
    .footer-logo p:first-child {
        font-size: 1rem;
    }
    
    .footer-links h4,
    .footer-contact h4 {
        font-size: 1.1rem;
    }
    
    .footer-contact p {
        font-size: 0.9rem;
    }
    
    .footer-bottom p {
        font-size: 0.85rem;
    }
}

/* 小型スマートフォン（iPhone SE等）*/
@media (max-width: 480px) {
    /* ヘッダー */
    .header-content {
        padding: 12px 0;
    }
    
    .logo img {
        height: 38px;
    }
    
    /* ヒーロー */
    .hero {
        padding: 0;
    }
    
    .hero-content {
        padding: var(--spacing-md) var(--spacing-sm);
    }
    
    .hero-title {
        font-size: 2rem;
    }
    
    .hero-lead {
        font-size: 1rem;
    }
    
    .hero-text {
        font-size: 0.95rem;
    }
    
    .btn-minimal {
        padding: 12px 24px;
        font-size: 0.9rem;
    }
    
    .scroll-hint {
        bottom: var(--spacing-sm);
    }
    
    /* セクション */
    .section {
        padding: 40px 0;
    }
    
    .section-title {
        font-size: 1.6rem;
    }
    
    .section-subtitle {
        font-size: 0.95rem;
    }
    
    /* 協会について */
    .about-text h3 {
        font-size: 1.25rem;
    }
    
    .about-text p {
        font-size: 0.9rem;
    }
    
    .mission-card {
        padding: 24px 20px;
    }
    
    .mission-card-wrapper .mission-card-bg-icon {
        font-size: clamp(100px, 28vw, 140px);
    }
    
    .mission-card h4 {
        font-size: 1.2rem;
    }
    
    .mission-card p {
        font-size: 0.9rem;
    }
    
    /* 事業内容 */
    .business-card {
        padding: 25px 15px;
    }
    
    .business-icon {
        width: 60px;
        height: 60px;
    }
    
    .business-icon i {
        font-size: 1.75rem;
    }
    
    .business-card h3 {
        font-size: 1.3rem;
    }
    
    .business-card h4 {
        font-size: 1.05rem;
    }
    
    .business-card p {
        font-size: 0.9rem;
    }
    
    /* 役員写真 */
    .officer-photo {
        width: 120px;
        height: 120px;
        border-width: 3px;
    }
    
    .officer-card h3 {
        font-size: 1.2rem;
    }
    
    .officer-title {
        font-size: 0.9rem;
    }
    
    .officer-description {
        padding: 15px;
    }
    
    .officer-description p {
        font-size: 0.8rem;
        line-height: 1.5;
    }
    
    /* 活動報告 */
    .activity-item {
        padding: 20px 0;
    }
    
    .activity-date {
        font-size: 0.9rem;
    }
    
    .activity-content h3 {
        font-size: 1.05rem;
    }
    
    .activity-content p {
        font-size: 0.85rem;
    }
    
    /* 役員紹介 */
    .officer-card {
        padding: 25px 15px;
    }
    
    .officer-icon {
        width: 70px;
        height: 70px;
    }
    
    .officer-icon i {
        font-size: 2.2rem;
    }
    
    .officer-card h3 {
        font-size: 1.2rem;
    }
    
    .officer-title {
        font-size: 0.95rem;
    }
    
    /* ビジョン */
    .vision {
        padding: 50px 15px;
    }
    
    .vision-content h2 {
        font-size: 1.6rem;
    }
    
    .vision-text {
        font-size: 1rem;
    }
    
    /* お問い合わせ */
    .contact-form-box {
        padding: 18px 12px;
    }
    
    .form-description p {
        font-size: 0.8rem;
        margin-bottom: 6px;
    }
    
    .form-description p:first-child {
        font-size: 0.9rem;
    }
    
    .btn-contact-form {
        padding: 10px 18px;
        font-size: 0.85rem;
        gap: 6px;
        width: 80%;
        max-width: 280px;
    }
    
    .btn-contact-form i {
        font-size: 0.9rem;
    }
    
    .info-card {
        padding: 18px 15px;
    }
    
    .info-card i {
        font-size: 1.6rem;
    }
    
    .info-card h3 {
        font-size: 1rem;
    }
    
    .info-card p {
        font-size: 0.85rem;
    }
    
    /* トップに戻るボタン */
    .back-to-top {
        width: 45px;
        height: 45px;
        bottom: 20px;
        right: 20px;
        font-size: 1.3rem;
    }
}

/* ================================================
   画像ポップアップ
   ================================================ */
.activity-item-clickable {
    cursor: pointer;
    position: relative;
}

.activity-item-clickable:hover {
    background-color: var(--color-bg-alt);
    padding-left: 20px;
    padding-right: 20px;
    margin-left: -20px;
    margin-right: -20px;
}

.activity-view-images {
    margin-top: 15px;
    color: var(--color-accent);
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: all 0.3s ease;
}

.activity-item-clickable:hover .activity-view-images {
    color: var(--color-primary);
    transform: translateX(5px);
}

.activity-view-images i {
    font-size: 1rem;
}

.image-popup {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 10000;
    display: none;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.image-popup.active {
    display: flex;
    opacity: 1;
}

.popup-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.9);
    backdrop-filter: blur(5px);
}

.popup-content {
    position: relative;
    z-index: 10001;
    max-width: 95vw;
    max-height: 95vh;
    width: 95vw;
    height: 95vh;
    background-color: var(--color-bg);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
    display: flex;
    flex-direction: column;
    transform: scale(0.9);
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

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

.popup-close {
    position: absolute;
    top: 15px;
    right: 15px;
    width: 40px;
    height: 40px;
    background-color: rgba(0, 0, 0, 0.6);
    border: none;
    border-radius: 50%;
    color: white;
    font-size: 1.2rem;
    cursor: pointer;
    z-index: 10002;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.popup-close:hover {
    background-color: rgba(0, 0, 0, 0.8);
    transform: rotate(90deg);
}

.popup-image-container {
    position: relative;
    width: 100%;
    height: 85vh;
    flex: 1;
    min-height: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    padding: 20px;
}

.popup-image-wrapper {
    position: relative;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.popup-image {
    position: absolute;
    max-width: calc(100% - 40px);
    max-height: calc(100% - 40px);
    width: auto;
    height: auto;
    object-fit: contain;
    opacity: 0;
    transform: scale(0.95);
    transition: opacity 0.4s ease, transform 0.4s ease;
}

.popup-image.active {
    opacity: 1;
    transform: scale(1);
    z-index: 1;
}

.popup-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 50px;
    height: 50px;
    background-color: rgba(0, 0, 0, 0.6);
    border: none;
    border-radius: 50%;
    color: white;
    font-size: 1.2rem;
    cursor: pointer;
    z-index: 10002;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.popup-nav:hover {
    background-color: rgba(0, 0, 0, 0.8);
    transform: translateY(-50%) scale(1.1);
}

.popup-prev {
    left: 20px;
}

.popup-next {
    right: 20px;
}

.popup-counter {
    padding: 15px 20px;
    text-align: center;
    background-color: var(--color-bg-alt);
    color: var(--color-text);
    font-size: 0.9rem;
    border-top: 1px solid var(--color-border);
}

.popup-counter .current-image {
    font-weight: 700;
    color: var(--color-primary);
}

/* スマホ用の下部「閉じる」ボタン（PCでは非表示） */
.popup-close-bottom {
    display: none;
}

/* iPhone・スマホ：ポップアップを画面内に収め、閉じるを確実に */
@media (max-width: 768px) {
    .image-popup.active {
        padding: env(safe-area-inset-top, 0) env(safe-area-inset-right, 0) env(safe-area-inset-bottom, 0) env(safe-area-inset-left, 0);
        box-sizing: border-box;
        align-items: center;
        justify-content: center;
    }

    /* 高さを抑えて閉じるボタンが常に画面内に収まるように */
    .popup-content {
        max-width: min(96vw, calc(100vw - 24px));
        max-height: min(75dvh, 75vh, calc(100dvh - 120px));
        width: 100%;
        height: auto;
        min-height: 0;
        flex: none;
        display: flex;
        flex-direction: column;
        overflow: hidden;
    }

    .popup-image-container {
        flex: 1;
        min-height: 120px;
        height: 45vh;
        max-height: min(50dvh, calc(100dvh - 200px));
        padding: 10px;
    }

    .popup-image {
        max-width: calc(100% - 20px);
        max-height: calc(100% - 20px);
    }

    .popup-nav {
        width: 40px;
        height: 40px;
        font-size: 1rem;
    }

    .popup-prev {
        left: 10px;
    }

    .popup-next {
        right: 10px;
    }

    /* 右上閉じる：ビューポートに固定（popup-contentの外に配置済みのため確実に表示） */
    .image-popup .popup-close {
        position: fixed;
        top: max(12px, env(safe-area-inset-top));
        right: max(12px, env(safe-area-inset-right));
        width: 48px;
        height: 48px;
        min-width: 48px;
        min-height: 48px;
        font-size: 1.3rem;
        z-index: 10100;
        -webkit-tap-highlight-color: transparent;
        background-color: rgba(0, 0, 0, 0.75);
    }

    .popup-counter {
        padding-bottom: env(safe-area-inset-bottom, 16px);
    }

    /* 下部「閉じる」：常に画面内で確実にタップ可能 */
    .popup-close-bottom {
        display: block;
        margin-top: 14px;
        padding: 14px 24px;
        width: 100%;
        max-width: 220px;
        margin-left: auto;
        margin-right: auto;
        font-size: 1.05rem;
        font-weight: 600;
        color: #fff;
        background: var(--color-navy, #1e3a5f);
        border: none;
        border-radius: 8px;
        cursor: pointer;
        -webkit-tap-highlight-color: transparent;
    }
}