:root {
    --bg-dark: #050b18;
    --bg-card: rgba(15, 23, 42, 0.6);
    --text-main: #f5f5f7;
    --text-muted: #86868b;
    --accent-primary: #3b82f6;
    --accent-secondary: #8b5cf6;
    --accent-green: #10b981;
    --gradient-main: linear-gradient(135deg, #3b82f6 0%, #8b5cf6 100%);
    --gradient-text: linear-gradient(to right, #60a5fa, #a78bfa);
    --border-glass: 1px solid rgba(255, 255, 255, 0.1);
}

.status-success {
    background: #22c55e33;
    color: #16a34a;
}

.status-primary {
    background: linear-gradient(135deg, #fde047 0%, #f59e0b 50%, #fde047 100%);
    background-size: 200% auto;
    color: #451a03;
    /* 視認性を高める深いアンバー/ブラウン */
    padding: 8px 24px;
    border-radius: 50px;
    font-size: 0.9rem;
    font-weight: 800;
    letter-spacing: 0.15rem;
    box-shadow: 0 10px 25px rgba(245, 158, 11, 0.4);
    border: 1px solid rgba(255, 255, 255, 0.4);
    margin-bottom: 1.5rem;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    position: relative;
    overflow: hidden;
    animation: status-shimmer 3s infinite linear, status-breathing 4s infinite ease-in-out;
}

@keyframes status-shimmer {
    0% {
        background-position: 0% center;
    }

    100% {
        background-position: 200% center;
    }
}

@keyframes status-breathing {

    0%,
    100% {
        transform: scale(1);
        box-shadow: 0 10px 25px rgba(245, 158, 11, 0.4);
    }

    50% {
        transform: scale(1.05);
        box-shadow: 0 15px 35px rgba(245, 158, 11, 0.6);
    }
}

.badge-icon {
    animation: badge-pulse 2s infinite ease-in-out;
}

@keyframes badge-pulse {

    0%,
    100% {
        transform: scale(1) rotate(0deg);
        opacity: 1;
    }

    50% {
        transform: scale(1.2) rotate(15deg);
        opacity: 0.8;
    }
}

.status-badge {
    padding: 4px 12px;
    border-radius: 12px;
    font-size: .75rem;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    margin-bottom: 1rem;
}

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

html {
    scroll-behavior: smooth;
}

html,
body {
    overflow-x: hidden;
    width: 100%;
}

body {
    font-family: 'Inter', 'Noto Sans JP', sans-serif;
    background-color: var(--bg-dark);
    color: var(--text-main);
    line-height: 1.6;
    /* テキスト選択全般の禁止（必要に応じて） */
    /* -webkit-user-select: none; */
}

/* 画像の保存・ドラッグを抑制 */
img {
    -webkit-user-drag: none;
    -khtml-user-drag: none;
    -moz-user-drag: none;
    -o-user-drag: none;
    user-select: none;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
}

body.no-scroll {
    overflow: hidden !important;
    height: 100vh !important;
}

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

/* Typography */
h1 {
    font-size: 4rem;
    line-height: 1.1;
    font-weight: 800;
    margin-bottom: 1.5rem;
    letter-spacing: -0.015em;
}

h2 {
    font-size: 2.5rem;
    line-height: 1.2;
    font-weight: 800;
    margin-bottom: 2rem;
    text-align: center;
    letter-spacing: -0.01em;
}

h3 {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.text-gradient {
    background: var(--gradient-text);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.text-accent-secondary {
    color: var(--accent-secondary);
}

.d-inline-block {
    display: inline-block;
}

/* Header */
.glass-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    background: rgba(5, 11, 24, 0.8);
    backdrop-filter: blur(20px);
    border-bottom: var(--border-glass);
}

.header-inner {
    height: 80px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.SiteHeader_logoGroup {
    display: flex;
    align-items: center;
    gap: 16px;
}

.SiteHeader_logo a {
    display: flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
    transition: opacity 0.3s;
}

.SiteHeader_logo a:hover {
    opacity: 0.8;
}

.logo-img {
    height: 52px;
    width: auto;
    object-fit: contain;
}

/* 垂直の仕切り線 */
.SiteHeader_titleDivider {
    width: 1px;
    height: 24px;
    background: rgba(255, 255, 255, 0.3);
    /* 白背景に合わせて薄く白っぽく */
    margin: 0 12px;
}

.SiteHeader_subTitle {
    font-size: 1.1rem;
    font-weight: 700;
    color: #fff;
    /* ホワイトに変更 */
    display: flex;
    flex-direction: row;
    /* 横並び */
    align-items: baseline;
}

.SiteHeader_subTitle ruby {
    ruby-align: center;
}

.SiteHeader_subTitle rt {
    font-size: 0.55em;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.6);
    /* ルビも白っぽく */
    letter-spacing: 0.05em;
}

@media (max-width: 600px) {
    .logo-img {
        height: 40px;
    }

    .SiteHeader_subTitle {
        font-size: 0.9rem;
    }

    .SiteHeader_logoGroup {
        gap: 8px;
    }
}

nav {
    display: flex;
    align-items: center;
    gap: 2rem;
}

.nav-links {
    list-style: none;
    display: flex;
    gap: 2rem;
}

.nav-links a {
    text-decoration: none;
    color: var(--text-muted);
    font-size: 0.95rem;
    font-weight: 600;
    transition: color 0.3s;
}

.nav-links a:hover {
    color: var(--text-main);
}

/* Buttons */
.btn {
    padding: 0.8rem 1.8rem;
    border-radius: 50px;
    font-size: 0.95rem;
    font-weight: 700;
    text-decoration: none;
    transition: all 0.3s ease;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.btn-primary {
    background: var(--gradient-main);
    color: white;
    box-shadow: 0 10px 20px rgba(59, 130, 246, 0.3);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 15px 30px rgba(59, 130, 246, 0.4);
}

.btn-outline {
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: var(--text-main);
}

.btn-outline:hover {
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(255, 255, 255, 0.5);
}

/* Hero Section */
.hero {
    padding-top: 180px;
    padding-bottom: 100px;
    position: relative;
}

.hero::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(59, 130, 246, 0.15) 0%, transparent 70%);
    z-index: -1;
}

.hero-inner {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 4rem;
    align-items: center;
}

.hero h1 {
    font-size: 4rem;
    line-height: 1.1;
    margin-bottom: 1.5rem;
}

.hero-sub {
    font-size: 1.5rem;
    color: var(--text-main);
    margin-bottom: 2.5rem;
    font-weight: 500;
    line-height: 1.8;
}

.text-blue-highlight {
    color: var(--accent-primary);
    font-weight: 800;
    position: relative;
    display: inline-block;
}

.text-blue-highlight::after {
    content: '';
    position: absolute;
    bottom: 2px;
    left: 0;
    width: 100%;
    height: 8px;
    background: rgba(59, 130, 246, 0.2);
    z-index: -1;
}

.hero-visual .image-wrapper {
    transform: perspective(1000px) rotateY(-5deg);
    transition: transform 0.5s;
}

.hero-visual .image-wrapper:hover {
    transform: perspective(1000px) rotateY(0deg);
}

.hero-visual img {
    width: 100%;
    border-radius: 12px;
    display: block;
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.5);
}

@media (max-width: 968px) {
    .hero-inner {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .hero h1 {
        font-size: 3rem;
    }

    .hero-visual {
        display: none;
    }
}

/* Glass Panel */
.glass-panel {
    background: var(--bg-card);
    backdrop-filter: blur(12px);
    border: var(--border-glass);
    border-radius: 24px;
}

/* Message Section */
.message-section {
    padding: 100px 0;
    position: relative;
}

.message-box {
    padding: 6rem 4rem;
    text-align: center;
}

.message-text {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 3rem;
    line-height: 1.6;
}

.message-text span {
    color: var(--accent-primary);
    display: block;
    font-size: 2.4rem;
    margin-top: 1rem;
}

.message-text.secondary {
    font-size: 1.5rem;
    color: var(--text-muted);
    font-weight: 400;
}

/* Transformation Section */

/* Mechanism Section (White Theme) */
.mechanism-section {
    background: #ffffff;
    color: #1d1d1f;
    padding: 120px 0;
    text-align: center;
}

.mechanism-section h2 {
    color: #1d1d1f;
    font-size: 3.5rem;
    font-weight: 800;
    margin-bottom: 5rem;
    letter-spacing: -0.02em;
}

/* Mechanism Section */
.mechanism-section {
    background: #ffffff;
    color: #1d1d1f;
    padding: 120px 0;
    text-align: center;
}

.mechanism-section h2 {
    color: #1d1d1f;
    font-size: 3.5rem;
    font-weight: 800;
    margin-bottom: 5rem;
    letter-spacing: -0.02em;
}

.mechanism-list {
    max-width: 1000px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 120px;
    /* セクション間の余白を広めにとる */
}

.mechanism-item {
    display: flex;
    align-items: center;
    gap: 4rem;
    text-align: left;
    position: relative;
}

.mechanism-num {
    font-family: 'Inter', sans-serif;
    font-size: 8rem;
    font-weight: 900;
    line-height: 1;
    color: transparent;
    -webkit-text-stroke: 1px rgba(0, 0, 0, 0.1);
    position: absolute;
    top: -40px;
    left: -20px;
    z-index: 0;
    pointer-events: none;
    opacity: 0.5;
}

.mechanism-content {
    flex: 1;
    z-index: 1;
    position: relative;
}

.mechanism-content h3 {
    font-size: 2.4rem;
    font-weight: 800;
    line-height: 1.3;
    margin-bottom: 1.5rem;
    color: #1d1d1f;
}

.mechanism-content p {
    font-size: 1.2rem;
    color: #424245;
    line-height: 1.8;
}

.mechanism-img {
    flex: 1;
    z-index: 1;
    border-radius: 24px;
    overflow: hidden;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.05);
    background: #f5f5f7;
}

.mechanism-img img {
    width: 100%;
    height: auto;
    display: block;
    transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.mechanism-item:hover .mechanism-img img {
    transform: scale(1.05);
}

/* 偶数番目は左右反転 */
.mechanism-item:nth-child(even) {
    flex-direction: row-reverse;
}

.mechanism-item:nth-child(even) .mechanism-num {
    left: auto;
    right: -20px;
}

@media (max-width: 968px) {
    .mechanism-section h2 {
        font-size: 2.5rem;
    }

    .mechanism-item {
        flex-direction: column !important;
        gap: 2rem;
        padding: 0 1.5rem;
    }

    .mechanism-num {
        font-size: 5rem;
        top: -20px;
        left: 0;
    }

    .mechanism-content h3 {
        font-size: 1.8rem;
    }

    .mechanism-list {
        gap: 80px;
    }
}


/* Share Section */
.share-section {
    padding: 60px 0;
    text-align: center;
    background: var(--bg-dark);
    position: relative;
}

.share-title {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--text-muted);
    margin-bottom: 2rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.share-buttons {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    flex-wrap: wrap;
}

.share-btn {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.4rem;
    color: var(--text-main);
    background: var(--bg-card);
    border: var(--border-glass);
    backdrop-filter: blur(10px);
    text-decoration: none;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.share-btn::before {
    content: '';
    position: absolute;
    inset: 0;
    background: var(--gradient-main);
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: -1;
}

.share-btn:hover {
    transform: translateY(-5px);
    border-color: rgba(255, 255, 255, 0.3);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.4);
    color: #fff;
}

.share-btn:hover::before {
    opacity: 1;
}

.share-btn.share-x:hover {
    background: #000;
    border-color: #333;
}

.share-btn.share-facebook:hover {
    background: #1877f2;
    border-color: #1877f2;
}

.share-btn.share-line:hover {
    background: #06c755;
    border-color: #06c755;
}

@media (max-width: 600px) {
    .share-section {
        padding: 40px 0;
    }

    .share-btn {
        width: 50px;
        height: 50px;
        font-size: 1.2rem;
    }
}

/* Footer */
footer {
    padding: 6rem 0;
    text-align: center;
    background: var(--bg-dark);
    border-top: var(--border-glass);
    color: var(--text-muted);
    font-size: 0.9rem;
}


/* Future Section */
.future-section {
    padding: 120px 0;
    background: linear-gradient(180deg, var(--bg-dark) 0%, rgba(59, 130, 246, 0.05) 50%, var(--bg-dark) 100%);
    position: relative;
    overflow: hidden;
}

.future-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2.5rem;
    margin-top: 4rem;
}

.future-card {
    background: var(--bg-card);
    border: var(--border-glass);
    padding: 3.5rem;
    border-radius: 40px;
    position: relative;
    overflow: hidden;
    transition: all 0.6s cubic-bezier(0.16, 1, 0.3, 1);
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
}

.future-card:hover {
    transform: translateY(-10px);
    border-color: rgba(255, 255, 255, 0.2);
    background: rgba(30, 41, 59, 0.8);
    box-shadow: 0 40px 80px rgba(0, 0, 0, 0.5);
}

.future-icon {
    width: 70px;
    height: 70px;
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    margin-bottom: 2rem;
}

.future-icon.color-blue {
    color: var(--accent-primary);
    background: rgba(59, 130, 246, 0.1);
    box-shadow: 0 10px 25px rgba(59, 130, 246, 0.2);
}

.future-icon.color-purple {
    color: var(--accent-secondary);
    background: rgba(139, 92, 246, 0.1);
    box-shadow: 0 10px 25px rgba(139, 92, 246, 0.2);
}

.future-content h3 {
    font-size: 2rem;
    margin-bottom: 1.2rem;
    font-weight: 800;
    letter-spacing: -0.02em;
}

.future-content p {
    color: var(--text-muted);
    font-size: 1.15rem;
    line-height: 1.8;
}

.future-tag {
    position: absolute;
    top: 2rem;
    right: 2.5rem;
    font-size: 0.75rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    padding: 6px 16px;
    border-radius: 50px;
    background: rgba(255, 255, 255, 0.05);
    color: rgba(255, 255, 255, 0.4);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

@media (max-width: 968px) {
    .future-grid {
        grid-template-columns: 1fr;
        padding: 0 1rem;
    }

    .future-card {
        padding: 2.5rem;
    }

    .future-content h3 {
        font-size: 1.6rem;
    }
}

/* Profile Section (Dark Theme) */
.profile-section {
    padding: 100px 0;
    color: var(--text-main);
    background: var(--bg-dark);
    /* ダークに戻す */
}

.profile-card {
    display: flex;
    align-items: center;
    gap: 3rem;
    padding: 4rem;
    max-width: 900px;
    margin: 0 auto;
    background: var(--bg-card);
    backdrop-filter: blur(20px);
    border-radius: 32px;
    border: var(--border-glass);
    transition: all 0.5s cubic-bezier(0.23, 1, 0.32, 1);
    position: relative;
}

.profile-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.4);
    background: rgba(30, 41, 59, 0.8);
    border-color: rgba(255, 255, 255, 0.2);
}

.profile-image {
    width: 180px;
    height: 180px;
    flex-shrink: 0;
    border-radius: 50%;
    overflow: hidden;
    border: 4px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

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

.profile-content h3 {
    font-size: 2.2rem;
    margin-bottom: 0.5rem;
    color: var(--text-main);
    font-weight: 700;
}

.profile-meta {
    color: var(--text-muted);
    font-weight: 600;
    margin-bottom: 1.5rem;
    font-size: 1.1rem;
}

.profile-message {
    color: var(--text-muted);
    font-size: 1.1rem;
    line-height: 1.8;
}

.profile-socials {
    display: flex;
    gap: 1.5rem;
    margin-top: 2rem;
}

.profile-social-link {
    color: var(--text-main);
    font-size: 1.6rem;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    text-decoration: none;
    opacity: 0.6;
}

.profile-social-link:hover {
    color: var(--accent-primary);
    opacity: 1;
    transform: scale(1.15);
}

@media (max-width: 600px) {
    .profile-card {
        flex-direction: column;
        text-align: center;
        padding: 2.5rem 1.5rem;
        gap: 1.5rem;
        margin: 0 20px;
    }

    .profile-image {
        width: 150px;
        height: 150px;
    }
}

/* Showcase Section */
.showcase-section {
    padding: 100px 0;
    text-align: center;
    background: rgba(59, 130, 246, 0.02);
}

.showcase-lead {
    color: var(--text-muted);
    margin-bottom: 4rem;
}

.showcase-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2.5rem;
    text-align: left;
}

.article-card {
    display: flex;
    flex-direction: column;
    height: 100%;
    transition: transform 0.3s ease;
    overflow: hidden;
    /* 子要素（画像）の角を丸めるため */
}

.article-card:hover {
    transform: translateY(-5px);
}

.card-media {
    width: 100%;
    aspect-ratio: 1 / 1;
    border-radius: 2px;
    background: #000;
    overflow: hidden;
    position: relative;
    cursor: zoom-in;
}

/* 画像を保護するための透明なオーバーレイ */
.card-media::after {
    content: '';
    position: absolute;
    inset: 0;
    z-index: 5;
    background: transparent;
}

/* Video Grid specific styles */
.video-grid {
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    max-width: 1000px;
    margin: 0 auto;
}

.video-card .card-media {
    aspect-ratio: 1 / 1;
    max-width: 350px;
    margin: 0 auto;
}

.media-badge {
    position: absolute;
    top: 1rem;
    left: 1rem;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(4px);
    color: #fff;
    font-size: 0.7rem;
    font-weight: 800;
    padding: 0.4rem 0.8rem;
    border-radius: 50px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    display: flex;
    align-items: center;
    gap: 0.4rem;
    z-index: 10;
    pointer-events: none;
}

.card-media img,
.card-media video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    cursor: zoom-in;
    transition: transform 0.3s ease;
}

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

.card-body {
    padding: 2rem;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.card-date {
    font-size: 0.8rem;
    color: var(--accent-primary);
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.card-title {
    font-size: 1.2rem;
    font-weight: 700;
    margin-bottom: 1rem;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 1;
    line-clamp: 1;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.card-summary {
    font-size: 0.9rem;
    color: var(--text-muted);
    margin-bottom: 1.5rem;
    line-height: 1.6;
    flex-grow: 1;
}

.card-actions {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 1.5rem;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.share-x {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--text-main);
    text-decoration: none;
    font-size: 0.85rem;
    font-weight: 700;
    padding: 0.5rem 1rem;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 50px;
    transition: all 0.2s;
}

.share-x:hover,
.btn-easy:hover {
    background: var(--accent-primary) !important;
    color: #fff !important;
}

.loading-spinner {
    grid-column: 1 / -1;
    padding: 4rem;
    color: var(--text-muted);
    font-style: italic;
}

/* Image Expansion Modal */
.image-modal {
    display: none;
    position: fixed;
    z-index: 2000;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.image-modal.active {
    display: flex;
    justify-content: center;
    align-items: flex-start !important;
    overflow-y: auto;
    padding: 2rem 1rem !important;
    animation: fadeIn 0.3s forwards;
    scroll-behavior: auto;
}

/* やさしい日本語専用モーダル */
.easy-japanese-modal {
    display: none;
    position: fixed;
    z-index: 3000;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(8px);
    padding: 2rem;
    align-items: center;
    justify-content: center;
}

.easy-japanese-modal.active {
    display: flex;
    animation: fadeIn 0.3s forwards;
}

.easy-japanese-modal .modal-content {
    background: var(--bg-dark);
    max-width: 800px;
    width: 90%;
    height: 700px;
    max-height: 85vh;
    padding: 3.5rem;
    border-radius: 32px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    cursor: default;
    position: relative;
    display: flex;
    flex-direction: column;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
    overflow: hidden;
    /* Fix header */
}

.modal-title {
    font-size: 1.6rem;
    line-height: 1.4;
    margin-bottom: 2rem;
    color: var(--text-main);
    width: 100%;
    padding-right: 40px;
    margin-top: 0;
    flex-shrink: 0;
    /* Fix header */
}

.modal-text-body {
    line-height: 1.8;
    white-space: pre-wrap;
    word-break: break-word;
}

.ai-text {
    color: var(--text-main);
    font-size: 1.15rem;
}

.original-text {
    color: var(--text-muted);
    font-size: 1rem;
}

.easy-japanese-modal .modal-close {
    position: absolute;
    top: 2rem;
    right: 2rem;
    background: rgba(255, 255, 255, 0.05);
    border: none;
    color: #fff;
    font-size: 1.5rem;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s;
    z-index: 100;
}

.easy-japanese-modal .modal-close:hover {
    background: rgba(255, 255, 255, 0.15);
    transform: rotate(90deg);
}

/* Tab Navigation */
.modal-tabs {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 2rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    width: 100%;
    overflow-x: auto;
    scrollbar-width: none;
    -ms-overflow-style: none;
    flex-wrap: nowrap;
    flex-shrink: 0;
    /* Fix header */
}

.modal-tabs::-webkit-scrollbar {
    display: none;
}

.modal-tab {
    padding: 0.8rem 1rem;
    color: var(--text-muted);
    font-weight: 700;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.3s;
    border-bottom: 2px solid transparent;
    margin-bottom: -1px;
    white-space: nowrap;
    flex-shrink: 0;
}

.modal-tab.active {
    color: var(--accent-primary);
    border-bottom-color: var(--accent-primary);
}

.modal-tab:hover:not(.active) {
    color: var(--text-main);
}

.tab-pane {
    display: none;
    width: 100%;
    overflow-y: auto;
    flex-grow: 1;
    padding-right: 1.5rem;
    margin-right: -1rem;
    /* Adjust for scrollbar space */
}

/* Custom Scrollbar for Modal Content */
.tab-pane::-webkit-scrollbar {
    width: 6px;
}

.tab-pane::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 10px;
}

.tab-pane::-webkit-scrollbar-thumb {
    background: rgba(59, 130, 246, 0.3);
    border-radius: 10px;
}

.tab-pane::-webkit-scrollbar-thumb:hover {
    background: rgba(59, 130, 246, 0.5);
}

.tab-pane.active {
    display: block;
    animation: fadeIn 0.3s forwards;
}

.modal-backdrop {
    position: fixed;
    /* absolute から fixed に変更してスクロールに追従 */
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.9);
    backdrop-filter: blur(15px);
    z-index: -1;
    /* コンテンツの背後に配置 */
}

.modal-content {
    max-width: 90%;
    max-height: 90%;
    position: relative;
    z-index: 2001;
    display: flex;
    justify-content: center;
    align-items: center;
    margin: auto;
}

.modal-content img {
    max-width: 100%;
    max-height: 90vh;
    border-radius: 8px;
    box-shadow: 0 0 50px rgba(0, 0, 0, 0.5);
    object-fit: contain;
    cursor: default;
}

.modal-close {
    position: fixed;
    top: 30px;
    right: 30px;
    color: #fff;
    font-size: 1.8rem;
    cursor: pointer;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    padding: 0;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

.modal-close:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: scale(1.1);
}

@media (max-width: 600px) {
    .modal-close {
        top: 20px;
        right: 20px;
        width: 50px;
        height: 50px;
        font-size: 1.5rem;
    }
}

.modal-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: #fff;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 10;
    backdrop-filter: blur(10px);
}

.modal-arrow:hover {
    background: rgba(255, 255, 255, 0.15);
    transform: translateY(-50%) scale(1.1);
    border-color: rgba(255, 255, 255, 0.3);
}

.modal-arrow.prev {
    left: 2rem;
}

.modal-arrow.next {
    right: 2rem;
}

@media (max-width: 968px) {
    .modal-arrow {
        width: 44px;
        height: 44px;
        font-size: 1.1rem;
    }

    .modal-arrow.prev {
        left: 1rem;
    }

    .modal-arrow.next {
        right: 1rem;
    }
}

/* Animations */
.fade-in {
    animation: fadeInUp 1s ease-out forwards;
}

.fade-in-delay {
    animation: fadeInUp 1s 0.2s ease-out forwards;
    opacity: 0;
}

.fade-in-delay-2 {
    animation: fadeInUp 1s 0.4s ease-out forwards;
    opacity: 0;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(40px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Responsive */
@media (max-width: 968px) {
    .hero h1 {
        font-size: 3rem;
    }

    .hero-inner {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 0;
    }

    nav {
        display: none;
    }

    .hero-visual .image-wrapper {
        transform: none;
    }

    .message-text {
        font-size: 1.6rem;
    }

    .message-text span {
        font-size: 2rem;
    }

    .punchline {
        font-size: 2.5rem;
    }

}

/* 以前ここにメディアクエリがありましたが、下部に移動します */

/* Gov Section (Bento Grid) */
.gov-section {
    padding: 120px 0;
    text-align: center;
    background: var(--bg-main);
    /* ダークに戻す */
}

.gov-section h2 {
    font-size: 3.5rem;
    font-weight: 800;
    margin-bottom: 5rem;
}

.gov-statement {
    background: #1d1d1f;
    border-radius: 32px;
    padding: 5rem 3rem;
    margin-bottom: 4rem;
    text-align: center;
    border: 1px solid rgba(255, 255, 255, 0.05);
    position: relative;
    overflow: hidden;
}

.statement-icon {
    font-size: 3rem;
    margin-bottom: 2rem;
}

.gov-statement h3 {
    font-size: 3.2rem;
    font-weight: 800;
    line-height: 1.2;
    color: #fff;
}

.color-teal {
    color: #4dcaf5;
}

.text-teal {
    background: linear-gradient(135deg, #4dcaf5, #199ce8);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

@media (max-width: 600px) {
    .hero h1 {
        font-size: 2.1rem;
        line-height: 1.3;
    }

    h2 {
        font-size: 1.8rem;
        line-height: 1.3;
    }

    .container {
        padding: 0 1.25rem;
    }

    .hero {
        padding-top: 110px;
        padding-bottom: 40px;
    }

    .hero-sub {
        font-size: 1rem;
        margin-bottom: 2rem;
    }

    .message-box {
        padding: 3rem 1.25rem;
    }

    .message-text {
        font-size: 1.25rem;
        margin-bottom: 1.5rem;
    }

    .message-text span {
        font-size: 1.5rem;
    }

    .message-text.secondary {
        font-size: 1rem;
    }

    .showcase-section {
        padding: 60px 0;
    }

    .showcase-grid {
        gap: 1.5rem;
        grid-template-columns: 1fr;
        /* 改訂: 1列にしてインフォグラフィックを見やすく */
    }

    .video-grid {
        grid-template-columns: 1fr;
    }

    .gov-statement {
        padding: 3rem 1.5rem;
        border-radius: 24px;
        margin-bottom: 2.5rem;
    }

    .gov-statement h3 {
        font-size: 1.6rem;
        /* 改訂: 画面に収まるサイズに調整 */
        line-height: 1.4;
    }

    .statement-icon {
        font-size: 2rem;
        margin-bottom: 1.5rem;
    }
}

.bento-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    grid-template-rows: repeat(2, minmax(240px, auto));
    gap: 24px;
    max-width: 1200px;
    margin: 0 auto;
}

.bento-tile {
    background: #1d1d1f;
    border-radius: 32px;
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    text-align: left;
    transition: transform 0.4s cubic-bezier(0.2, 1, 0.2, 1);
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.bento-tile:hover {
    transform: scale(1.02);
}

.tile-content {
    padding: 2.5rem;
    z-index: 2;
    height: 100%;
}

.tile-plus {
    position: absolute;
    bottom: 1.5rem;
    right: 1.5rem;
    width: 36px;
    height: 36px;
    background: #ffffff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #1d1d1f;
    font-size: 1.1rem;
    cursor: pointer;
    z-index: 10;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.bento-tile h3,
.bento-tile p {
    padding-right: 40px;
    /* ボタンとの衝突を避けるための余白 */
}

.tile-plus:hover {
    transform: scale(1.1) rotate(90deg);
    background: #f5f5f7;
}

/* タイルのサイズ定義 */
.tile-feature {
    grid-column: span 4;
    grid-row: span 1;
}

.tile-half {
    grid-column: span 2;
    grid-row: span 1;
}

.tile-small {
    grid-column: span 1;
    grid-row: span 1;
}

.feature-layout {
    display: flex;
    align-items: center;
    gap: 3rem;
    height: 100%;
}

@media (max-width: 768px) {
    .feature-layout {
        flex-direction: column;
        align-items: flex-start;
        gap: 1.5rem;
    }
}

.tile-glow {
    border: none;
}

.tile-glow::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: inherit;
    padding: 2px;
    /* Border width */
    background: linear-gradient(135deg, #0071e3, #6e27c3, #ac39ff, #f5914d);
    -webkit-mask:
        linear-gradient(#fff 0 0) content-box,
        linear-gradient(#fff 0 0);
    mask:
        linear-gradient(#fff 0 0) content-box,
        linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    opacity: 0.5;
}

.tile-glow .tile-content {
    display: flex;
    align-items: center;
    gap: 2rem;
    height: 100%;
}

.tile-icon-wrap {
    width: 80px;
    height: 80px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.5rem;
    color: #0071e3;
}

.bento-tile h3 {
    font-size: 1.8rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: #fff;
    line-height: 1.2;
}

.bento-tile p {
    color: #a1a1a6;
    font-size: 1rem;
    line-height: 1.5;
}

.tile-icon {
    font-size: 2rem;
    margin-bottom: 1.5rem;
}

.color-yellow {
    color: #ffcc00;
    /* 鮮やかなイエロー */
}

.color-green {
    color: var(--accent-green);
}

/* レスポンシブ (スマホ版は1列にする) */
@media (max-width: 968px) {
    .bento-grid {
        grid-template-columns: 1fr;
        grid-template-rows: auto;
        padding: 0 1.5rem;
    }

    .tile-feature,
    .tile-half,
    .tile-small {
        grid-column: span 1 !important;
        grid-row: auto !important;
    }

    .gov-section h2 {
        font-size: 2.5rem;
    }
}


/* Material Texture (Subtle Noise) */
.glass-panel::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.65' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)'/%3E%3C/svg%3E");
    opacity: 0.015;
    /* 極めて微かなノイズ */
    pointer-events: none;
    border-radius: inherit;
    z-index: -1;
}

/* Subtle Inner Edge Highlight (Lightcatching edge) */
.glass-panel {
    box-shadow:
        inset 0 1px 1px rgba(255, 255, 255, 0.05),
        0 20px 40px rgba(0, 0, 0, 0.3);
    position: relative;
    z-index: 1;
}

/* Bento Modal (Apple Style) */
.bento-modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.4);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: all 0.4s ease;
}

.bento-modal-overlay.active {
    opacity: 1;
    visibility: visible;
}

.bento-modal-window {
    background: #ffffff;
    width: 90%;
    max-width: 680px;
    max-height: 85vh;
    border-radius: 32px;
    position: relative;
    padding: 4rem 3rem;
    overflow-y: auto;
    transform: scale(0.9) translateY(20px);
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.2);
    color: #1d1d1f;
}

.bento-modal-overlay.active .bento-modal-window {
    transform: scale(1) translateY(0);
}

.bento-modal-close {
    position: absolute;
    top: 2rem;
    right: 2rem;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: #f5f5f7;
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    color: #1d1d1f;
    cursor: pointer;
    transition: all 0.2s;
    z-index: 10;
}

.bento-modal-close:hover {
    background: #e8e8ed;
    transform: scale(1.1);
}

.bento-modal-body h2 {
    font-size: 3rem;
    font-weight: 800;
    margin-bottom: 2.5rem;
    color: #1d1d1f;
    line-height: 1.1;
    text-align: left;
}

.modal-text-content h4 {
    font-size: 1.2rem;
    font-weight: 700;
    margin: 2rem 0 0.8rem;
    color: #1d1d1f;
}

.modal-text-content p {
    font-size: 1.1rem;
    line-height: 1.6;
    color: #424245;
    margin-bottom: 1.2rem;
}

.modal-text-content ul {
    list-style: none;
    padding: 0;
    margin-bottom: 2rem;
}

.modal-text-content li {
    padding: 1rem;
    background: #f5f5f7;
    border-radius: 12px;
    margin-bottom: 0.8rem;
    font-size: 1rem;
    color: #1d1d1f;
}

.modal-text-content li strong {
    display: block;
    color: #000;
    margin-bottom: 0.2rem;
}

@media (max-width: 600px) {
    .bento-modal-window {
        padding: 3rem 1.5rem;
        border-radius: 24px;
    }

    .bento-modal-body h2 {
        font-size: 2rem;
    }
}

/* Modal Link Style */
.further-link {
    display: inline-block;
    color: #0066cc;
    text-decoration: none;
    font-size: 1.1rem;
    font-weight: 500;
    margin-top: 1rem;
    transition: all 0.3s;
}

.further-link:hover {
    color: #004499;
    text-decoration: underline;
}

.further-link i {
    font-size: 0.9rem;
    margin-left: 4px;
}

/* Scroll Reveal Animation */
.reveal {
    opacity: 0;
    transform: translateY(40px);
    transition: all 1.2s cubic-bezier(0.16, 1, 0.3, 1);
    pointer-events: none;
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
}

/* スタッガー（時間差）用の遅延 */
.reveal-delay-1 {
    transition-delay: 0.1s;
}

.reveal-delay-2 {
    transition-delay: 0.2s;
}

.reveal-delay-3 {
    transition-delay: 0.3s;
}