/* 最適化されたindex.html用CSS - インラインCSSを外部化 */

/* フォント定義 */
@font-face {
    font-family: 'セザンヌ';
    src: url('https://cdn.jsdelivr.net/npm/@xz/fonts@1/dist/cezanne/cezanne.woff2') format('woff2');
    font-weight: normal;
    font-style: normal;
    font-display: swap;
}

/* 基本スタイル */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Noto Sans JP', sans-serif;
}

body {
    background-color: #f8f9fa;
    color: #333;
    line-height: 1.6;
}

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

/* ヘッダースタイル */
header {
    background-color: #fff;
    box-shadow: 0 1px 10px rgba(0, 0, 0, 0.1);
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
}

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

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

.logo img {
    height: 50px;
    margin-right: 15px;
}

.logo-text {
    font-size: 18px;
    font-weight: 700;
    color: #333;
}

.logo-text span {
    display: block;
    font-size: 14px;
    color: #777;
    font-weight: 400;
}

/* 言語切り替えボタンのスタイル */
.language-switch {
    display: flex;
    align-items: center;
    margin-left: 0;
}

/* ナビゲーション内の言語切り替えボタン用のスタイル */
nav ul li.language-switch {
    display: flex;
    align-items: center;
    margin-left: 30px;
}

nav ul li.language-switch:after {
    display: none;
}

.language-btn {
    background-color: transparent;
    border: 1px solid #ddd;
    border-radius: 4px;
    padding: 5px 10px;
    margin: 0 5px;
    cursor: pointer;
    font-size: 14px;
    transition: all 0.3s ease;
    text-decoration: none;
}

.language-btn:hover {
    background-color: #f0f0f0;
}

.language-btn.active {
    background-color: #2c3e50;
    color: white;
    border-color: #2c3e50;
}

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

nav ul li {
    margin-left: 30px;
}

nav ul li a {
    text-decoration: none;
    color: #333;
    font-weight: 500;
    transition: color 0.3s;
    position: relative;
    padding-bottom: 5px;
}

nav ul li a:after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    background: #2c3e50;
    bottom: 0;
    left: 0;
    transition: width 0.3s;
}

nav ul li a:hover {
    color: #2c3e50;
}

nav ul li a:hover:after {
    width: 100%;
}

.mobile-menu {
    display: none;
    cursor: pointer;
}

/* ヒーロー部分 */
.hero {
    height: 100vh;
    display: flex;
    align-items: center;
    background: linear-gradient(rgba(0, 0, 0, 0.4), rgba(0, 0, 0, 0.4)), url('../images/TopImage/topimage1.webp') center/cover no-repeat;
    color: #fff;
    text-align: center;
    margin-top: 0;
    /* Set dimensions to help browser allocate space before image loads */
    width: 100%;
    min-height: 600px;
    /* Improve performance with hardware acceleration */
    will-change: background-image;
    transform: translateZ(0);
    position: relative; /* Added for absolute positioning of hero-update-box */
}

.hero-title-wrapper {
    position: relative;
    display: inline-block;
    margin-bottom: 2.5rem;
}

.hero-badge {
    position: absolute;
    top: -28px;
    left: -18px;
    background: linear-gradient(135deg, #ff9945 0%, #ff4f6d 100%);
    color: #ffffff;
    text-decoration: none;
    font-weight: 700;
    font-size: 0.85rem;
    padding: 10px 18px;
    border-radius: 999px;
    letter-spacing: 0.08em;
    box-shadow: 0 12px 24px rgba(255, 79, 109, 0.35);
    transform: rotate(-5deg);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    animation: heroBadgePulse 3s ease-in-out infinite;
    z-index: 2;
    display: inline-block;
}

.hero-badge::after {
    content: '';
    position: absolute;
    top: 100%;
    left: 20%;
    width: 60%;
    height: 12px;
    background: rgba(255, 79, 109, 0.3);
    filter: blur(12px);
    opacity: 0.8;
}

.hero-badge:hover {
    transform: rotate(-3deg) scale(1.05);
    box-shadow: 0 18px 32px rgba(255, 79, 109, 0.45);
}

.hero-badge:focus-visible {
    outline: 3px solid rgba(255, 255, 255, 0.8);
    outline-offset: 4px;
}

@keyframes heroBadgePulse {
    0%, 100% {
        transform: rotate(-5deg) scale(1);
        box-shadow: 0 12px 24px rgba(255, 79, 109, 0.35);
    }
    50% {
        transform: rotate(-4deg) scale(1.04);
        box-shadow: 0 16px 28px rgba(255, 79, 109, 0.4);
    }
}

/* 構築感のあるタイトルアニメーション */
.particle-title {
    font-size: 3.5rem;
    font-weight: 900;
    text-align: center;
    margin-bottom: 2rem;
    position: relative;
    white-space: normal;
    word-wrap: break-word;
    word-break: keep-all;
    color: #ffffff;
    text-shadow: 0 0 3px rgba(255, 255, 255, 0.1);
    background: linear-gradient(135deg, 
        #ffffff 0%, 
        #ffffff 25%, 
        #ffffff 50%, 
        #ffffff 75%, 
        #ffffff 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    background-size: 200% 100%;
    animation: constructTitle 2s ease-out forwards;
    opacity: 0;
    transform: scale(0.8);
    padding: 0 20px;
    max-width: 100%;
    overflow-wrap: break-word;
}

.particle-title::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, 
        rgba(255, 255, 255, 0.1) 0%, 
        rgba(255, 255, 255, 0.3) 25%, 
        rgba(255, 255, 255, 0.5) 50%, 
        rgba(255, 255, 255, 0.3) 75%, 
        rgba(255, 255, 255, 0.1) 100%);
    background-size: 200% 100%;
    animation: constructParticles 2s ease-out forwards;
    z-index: -1;
    opacity: 0;
    border-radius: 10px;
}

.particle-title::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: repeating-linear-gradient(
        0deg,
        transparent 0px,
        transparent 1px,
        rgba(255, 255, 255, 0.1) 1px,
        rgba(255, 255, 255, 0.1) 2px
    );
    animation: constructScan 2s ease-out forwards;
    z-index: -2;
    opacity: 0;
}

@keyframes constructTitle {
    0% {
        opacity: 0;
        transform: scale(0.9) translateY(20px);
        background-position: -200% 0;
        text-shadow: 0 0 3px rgba(255, 255, 255, 0.1);
    }
    50% {
        opacity: 0.7;
        transform: scale(1.02) translateY(-2px);
        background-position: 0% 0;
        text-shadow: 0 0 5px rgba(255, 255, 255, 0.2);
    }
    100% {
        opacity: 1;
        transform: scale(1) translateY(0px);
        background-position: 100% 0;
        text-shadow: 0 0 6px rgba(255, 255, 255, 0.4);
    }
}

@keyframes constructParticles {
    0% {
        opacity: 0;
        background-position: -200% 0;
        transform: scale(0.8);
    }
    30% {
        opacity: 0.3;
        background-position: -100% 0;
        transform: scale(0.9);
    }
    70% {
        opacity: 0.6;
        background-position: 0% 0;
        transform: scale(1.05);
    }
    100% {
        opacity: 0.8;
        background-position: 100% 0;
        transform: scale(1);
    }
}

@keyframes constructScan {
    0% {
        opacity: 0;
        transform: translateY(-100%);
    }
    20% {
        opacity: 0.3;
        transform: translateY(-80%);
    }
    40% {
        opacity: 0.6;
        transform: translateY(-60%);
    }
    60% {
        opacity: 0.8;
        transform: translateY(-40%);
    }
    80% {
        opacity: 0.9;
        transform: translateY(-20%);
    }
    100% {
        opacity: 1;
        transform: translateY(0%);
    }
}

/* Hero update box styles */
.hero-update-box {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    background-color: rgba(255, 255, 255, 0.95);
    border-radius: 18px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
    padding: 15px 25px;
    display: flex;
    align-items: flex-start;
    gap: 15px;
    width: fit-content;
    max-width: 95%;
    min-width: 280px;
    border-left: 5px solid #2c3e50;
    z-index: 100;
    animation: fadeIn 0.5s ease-in-out;
    backdrop-filter: blur(10px);
    box-sizing: border-box;
}

.update-icon {
    font-size: 24px;
    color: #2c3e50;
    margin-top: 2px;
    flex-shrink: 0;
}

.update-content h3 {
    font-size: 18px;
    font-weight: 700;
    color: #333;
    margin-bottom: 10px;
    margin-top: 0;
}

.update-content p {
    margin: 5px !important;
    padding: 0 !important;
    font-size: 16px !important;
    line-height: 0.8 !important;
    letter-spacing: -0.5px !important;
    word-wrap: break-word;
    overflow-wrap: break-word;
    max-width: 100%;
}

.update-content p a {
    color: #4285f4 !important;
    text-decoration: none !important;
    transition: color 0.3s ease;
}

.update-content a {
    color: #2c3e50;
    text-decoration: none;
    transition: color 0.3s ease;
}

.update-content a:hover {
    color: #34495e;
    text-decoration: underline;
}



@keyframes pulse {
    0% {
        box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15), 0 5px 10px rgba(0, 0, 0, 0.05);
    }
    50% {
        box-shadow: 0 15px 30px rgba(0, 0, 0, 0.2), 0 8px 15px rgba(0, 0, 0, 0.1);
    }
    100% {
        box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15), 0 5px 10px rgba(0, 0, 0, 0.05);
    }
}

.hero-content {
    max-width: 850px;
    margin: 0 auto;
    padding: 0 20px;
    position: relative;
    z-index: 200;
    width: 100%;
    box-sizing: border-box;
}

.hero h1 {
    font-size: 3rem;
    margin-bottom: 20px;
    letter-spacing: 2px;
}

.hero p {
    font-size: 1.2rem;
    margin-bottom: 30px;
    padding: 0 10px;
    word-wrap: break-word;
    overflow-wrap: break-word;
    hyphens: auto;
    max-width: 100%;
}

/* 魔法のエフェクトアニメーション */
@keyframes magicEffect {
    0% {
        background-position: 0% 50%;
        filter: blur(3px);
        background-image: linear-gradient(90deg,
        #ffb6c1, #ffd700, #98fb98, #add8e6, #d8bfd8);
    }
    50% {
        background-position: 100% 50%;
        filter: blur(2px);
        background-image: linear-gradient(90deg,
        #ffb6c1, #ffd700, #98fb98, #add8e6, #d8bfd8);
    }
    70% {
        background-position: 0% 50%;
        filter: blur(1px);
        background-image: linear-gradient(90deg,
        #ffb6c1, #ffd700, #98fb98, #add8e6, #d8bfd8);
    }
    85% {
        background-position: 0% 50%;
        filter: blur(0.5px);
        background-image: linear-gradient(90deg,
        rgba(255, 182, 193, 0.7), rgba(255, 215, 0, 0.7), 
        rgba(152, 251, 152, 0.7), rgba(173, 216, 230, 0.7), 
        rgba(216, 191, 216, 0.7), rgba(255, 255, 255, 0.7));
    }
    90% {
        background-position: 0% 50%;
        filter: blur(0.4px);
        background-image: linear-gradient(90deg,
        rgba(255, 182, 193, 0.8), rgba(255, 215, 0, 0.8), 
        rgba(152, 251, 152, 0.8), rgba(173, 216, 230, 0.8), 
        rgba(216, 191, 216, 0.8), rgba(255, 255, 255, 0.8));
    }
    93% {
        background-position: 0% 50%;
        filter: blur(0.3px);
        background-image: linear-gradient(90deg,
        rgba(255, 200, 210, 0.85), rgba(255, 225, 100, 0.85), 
        rgba(180, 251, 180, 0.85), rgba(190, 225, 240, 0.85), 
        rgba(230, 210, 230, 0.85), rgba(255, 255, 255, 0.85));
    }
    96% {
        background-position: 0% 50%;
        filter: blur(0.2px);
        background-image: linear-gradient(90deg,
        rgba(255, 220, 230, 0.9), rgba(255, 235, 150, 0.9), 
        rgba(200, 251, 200, 0.9), rgba(210, 235, 245, 0.9), 
        rgba(240, 230, 240, 0.9), rgba(255, 255, 255, 0.9));
    }
    100% {
        background-position: 0% 50%;
        filter: blur(0px);
        /* 最終グラデーションでは完全に白へとフェードアウトさせる */
        background-image: linear-gradient(90deg,
        rgba(255, 255, 255, 0.95) 0%,
        rgba(255, 255, 255, 1) 100%
        );
    }
}

.magic-text-effect {
    position: relative;
    display: inline-block;
    padding: 10px 20px;
    margin: 5px 0;
    max-width: 100%;
    word-wrap: break-word;
    overflow-wrap: break-word;
    hyphens: auto;
}

/* Add blurred background with rounded corners */
.magic-text-effect::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(0, 0, 0, 0.22), rgba(0, 0, 0, 0.18));
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-radius: 30px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.12), 0 4px 8px rgba(0, 0, 0, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.1);
    z-index: -1;
}

/* Regular magic text effect animation */
.magic-text-effect.animate {
    background-image: linear-gradient(90deg, 
        #ffb6c1, #ffd700, #98fb98, #add8e6, #d8bfd8);
    background-size: 200% 100%;
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    text-fill-color: transparent;
    animation: magicEffect 4s ease-in-out forwards;
}

/* Blur text animation styles removed - using particle title instead */

/* Blur text char styles removed - using particle title instead */

/* Gradient shift animation removed - using particle title instead */

/* Blur text reveal animation removed - using particle title instead */

/* ボタン */
.cta-button {
    display: inline-block;
    background-color: #2c3e50;
    color: #fff;
    padding: 12px 30px;
    border-radius: 30px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(44, 62, 80, 0.3);
}

.cta-button:hover {
    background-color: #34495e;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(44, 62, 80, 0.4);
}

/* セクション共通 */
.section-header {
    text-align: center;
    margin-bottom: 60px;
}

.section-header h2 {
    font-size: 2.5rem;
    margin-bottom: 20px;
    color: #333;
    font-family: 'IPAex明朝', serif;
    word-wrap: break-word;
    overflow-wrap: break-word;
    hyphens: auto;
    padding: 0 20px;
    max-width: 100%;
}

/* 特徴セクションのタイトル */
.features-title {
    font-family: 'Shippori Mincho', '筑紫明朝', 'Tsukushi Mincho', serif;
    font-weight: 600;
    letter-spacing: 0.05em;
    line-height: 1.4;
    word-wrap: break-word;
    overflow-wrap: break-word;
    hyphens: auto;
    max-width: 100%;
}

.section-header p {
    font-size: 1.1rem;
    color: #777;
    max-width: 700px;
    margin: 0 auto;
    font-family: 'セザンヌ', sans-serif;
    word-wrap: break-word;
    overflow-wrap: break-word;
    hyphens: auto;
    padding: 0 20px;
}

/* 特徴部分 */
.features {
    padding: 80px 0;
    background-color: #fff;
}

/* 新しい学習パネルレイアウト */
.learning-panels {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0;
    margin-top: 40px;
    min-height: 600px;
    background-color: #000;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

.learning-panel {
    position: relative;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    transition: all 0.3s ease;
    cursor: pointer;
}

.learning-panel:hover {
    transform: scale(1.02);
    z-index: 2;
}

.learning-panel.expanded {
    transform: scale(1.05);
    z-index: 3;
}

.panel-image {
    flex: 1;
    position: relative;
    overflow: hidden;
}

.panel-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.learning-panel:hover .panel-image img {
    transform: scale(1.1);
}

.panel-content {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 30px;
    background: linear-gradient(90deg, rgba(0, 0, 0, 0.7) 0%, rgba(0, 0, 0, 0.3) 30%, rgba(255, 255, 255, 0.7) 70%, rgba(255, 255, 255, 0.9) 100%);
    color: #333;
    transition: all 0.3s ease;
}

.panel-title-vertical {
    writing-mode: vertical-rl;
    text-orientation: mixed;
    font-size: 48px;
    font-weight: 900;
    letter-spacing: 8px;
    color: white;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.8);
    position: absolute;
    left: 30px;
    top: 50%;
    transform: translateY(-50%);
    z-index: 3;
}

.panel-description {
    align-self: flex-end;
    max-width: 60%;
    margin-left: auto;
}

.panel-description p {
    font-size: 16px;
    line-height: 1.6;
    color: #333;
    text-shadow: 1px 1px 2px rgba(255, 255, 255, 0.9);
    margin: 0;
    font-weight: 600;
}

/* 詳細表示のスタイル */
.panel-details {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(90deg, rgba(255, 255, 255, 0.95) 0%, rgba(255, 255, 255, 0.9) 20%, rgba(255, 255, 255, 0.8) 100%);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 4;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px;
}

.panel-details.active {
    opacity: 1;
    visibility: visible;
}

.details-content {
    max-width: 80%;
    text-align: center;
    color: #333;
}

.details-content h3 {
    font-size: 28px;
    font-weight: 700;
    margin-bottom: 20px;
    color: #333;
}

.details-content > p {
    font-size: 18px;
    margin-bottom: 25px;
    color: #555;
    font-weight: 500;
}

.details-text {
    margin-bottom: 30px;
}

.details-text p {
    font-size: 16px;
    line-height: 1.7;
    margin-bottom: 15px;
    color: #666;
}

.details-content .more-details-link {
    display: inline-block;
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: white;
    padding: 12px 25px;
    border-radius: 25px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
}

.details-content .more-details-link:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(102, 126, 234, 0.3);
}

/* パネルの特別なスタイル（統一） */
.physical-panel .panel-title-vertical,
.digital-panel .panel-title-vertical {
    color: white;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.8);
}

/* 固定位置のくまゆ画像 */
.kumayu-fixed {
    position: fixed;
    bottom: 5%;
    right: 5%;
    z-index: 999;
    opacity: 0.8;
    transition: opacity 0.3s ease;
}

.kumayu-fixed:hover {
    opacity: 1;
}

.kumayu-link {
    display: block;
    text-decoration: none;
    position: relative;
    pointer-events: auto;
}

.kumayu-image {
    width: 120px;
    height: auto;
    max-width: 100%;
    filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.2));
    animation: float 3s ease-in-out infinite;
    transition: transform 0.3s ease;
}

.kumayu-link:hover .kumayu-image {
    transform: scale(1.05);
}

/* 吹き出しスタイル */
.kumayu-tooltip {
    position: absolute;
    bottom: 100%;
    right: 0;
    margin-bottom: 15px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: all 0.3s ease;
    pointer-events: none;
}

.kumayu-fixed:hover .kumayu-tooltip {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.tooltip-content {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 12px 16px;
    border-radius: 20px;
    font-size: 14px;
    font-weight: 500;
    white-space: nowrap;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
    position: relative;
}

.tooltip-arrow {
    position: absolute;
    top: 100%;
    right: 20px;
    width: 0;
    height: 0;
    border-left: 8px solid transparent;
    border-right: 8px solid transparent;
    border-top: 8px solid #764ba2;
}

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

/* レスポンシブデザイン */
@media (max-width: 768px) {
    .hero-title-wrapper {
        margin-bottom: 2rem;
    }

    .hero-badge {
        top: -24px;
        left: -12px;
        font-size: 0.78rem;
        padding: 8px 16px;
    }

    .learning-panels {
        grid-template-columns: 1fr;
        min-height: auto;
    }
    
    .learning-panel {
        min-height: 400px;
    }
    
    .panel-title-vertical {
        font-size: 36px;
        letter-spacing: 4px;
        left: 20px;
    }
    
    .panel-content {
        padding: 20px;
    }
    
    .panel-description {
        max-width: 80%;
    }
    
    .panel-description p {
        font-size: 14px;
    }
    
    .panel-details {
        padding: 20px;
    }
    
    .details-content {
        max-width: 95%;
    }
    
    .details-content h3 {
        font-size: 24px;
    }
    
    .details-content > p {
        font-size: 16px;
    }
    
    .details-text p {
        font-size: 14px;
    }
}

@media (max-width: 480px) {
    .hero-title-wrapper {
        margin-bottom: 1.8rem;
    }

    .hero-badge {
        top: -18px;
        left: -4px;
        font-size: 0.72rem;
        padding: 6px 12px;
    }

    .particle-title {
        font-size: 1.5rem;
        line-height: 1.4;
        padding: 0 15px;
        word-break: normal;
        overflow-wrap: break-word;
    }

    .panel-title-vertical {
        font-size: 28px;
        letter-spacing: 2px;
        left: 15px;
    }
    
    .panel-content {
        padding: 15px;
    }
    
    .panel-description {
        max-width: 90%;
    }
    
    .panel-details {
        padding: 15px;
    }
    
    .details-content h3 {
        font-size: 20px;
    }
    
    .details-content > p {
        font-size: 14px;
    }
    
    .details-text p {
        font-size: 13px;
    }
}

/* 既存のfeatures-gridスタイル（後方互換性のため保持） */
.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.feature-card {
    background-color: #f8f9fa;
    border-radius: 10px;
    padding: 30px;
    transition: transform 0.3s, box-shadow 0.3s;
    position: relative;
    overflow: hidden;
    height: 400px;
}

.feature-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
    height: auto;
}

.feature-image {
    margin-bottom: 20px;
    overflow: hidden;
    position: relative;
}

.feature-image img {
    transition: transform 0.5s ease;
}

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

.feature-image-text {
    position: absolute;
    top: 10px;
    left: 10px;
    background-color: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
    color: white;
    padding: 10px 20px;
    border-radius: 5px;
    font-size: 2rem;
    font-weight: bold;
    z-index: 1;
    transition: opacity 0.3s ease;
}

.feature-card:hover .feature-image-text {
    opacity: 0;
}

.feature-card h3 {
    font-size: 1.5rem;
    margin-bottom: 15px;
}

.feature-details {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.5s ease;
    opacity: 0;
    margin-top: 15px;
}

.feature-card:hover .feature-details {
    max-height: 500px;
    opacity: 1;
}

.more-details-link {
    display: inline-block;
    margin-top: 15px;
    color: #2c3e50;
    text-decoration: none;
    font-weight: bold;
    transition: color 0.3s;
}

.more-details-link:hover {
    color: #34495e;
    text-decoration: underline;
}

/* ギャラリー */
.gallery {
    padding: 80px 0;
    background-color: #f8f9fa;
}

.gallery-container {
    width: 100%;
    overflow: hidden;
    position: relative;
}

.gallery-grid {
    display: flex;
    gap: 20px;
    margin-top: 20px;
    overflow-x: auto;
    padding: 20px 0;
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;
    position: relative;
    width: 100%;
    animation: autoScroll 60s linear infinite;
    animation-play-state: running;
    width: max-content;
}

.gallery-grid:hover {
    animation-play-state: paused;
}

.gallery-grid::-webkit-scrollbar {
    display: none;
}

.gallery-grid {
    -ms-overflow-style: none;
    scrollbar-width: none;
}

@keyframes autoScroll {
    0% { transform: translateX(0); }
    100% { transform: translateX(calc(-500px * 8)); }
}

.gallery-item {
    overflow: hidden;
    border-radius: 10px;
    position: relative;
    width: 500px;
    height: 500px;
    flex: 0 0 auto;
    cursor: pointer;
    text-decoration: none;
    color: inherit;
    display: block;
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s;
}

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

.gallery-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(transparent, rgba(0, 0, 0, 0.7));
    color: #fff;
    padding: 20px;
    opacity: 0;
    transition: opacity 0.3s;
}

.gallery-item:hover .gallery-overlay {
    opacity: 1;
}

/* ニュース */
.news {
    padding: 80px 0;
    background-color: #fff;
}

.news-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.news-card {
    background-color: #f8f9fa;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.news-image {
    height: 200px;
    overflow: hidden;
}

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

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

.news-content {
    padding: 20px;
}

.news-date {
    font-size: 0.9rem;
    color: #777;
    margin-bottom: 10px;
}

.news-title {
    font-size: 1.3rem;
    margin-bottom: 10px;
    transition: color 0.3s;
}

.news-card:hover .news-title {
    color: #2c3e50;
}

.news-excerpt {
    color: #555;
    margin-bottom: 15px;
    line-height: 1.5;
}

.read-more {
    display: inline-block;
    color: #2c3e50;
    font-weight: 600;
    text-decoration: none;
    transition: color 0.3s;
}

.read-more:hover {
    color: #34495e;
}

/* お問い合わせ */
.contact {
    padding: 80px 0;
    background-color: #e0e0e0;
}

.contact-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 50px;
    margin-top: 40px;
}

.contact-info h3 {
    font-size: 1.5rem;
    margin-bottom: 20px;
}

.contact-details {
    margin-bottom: 30px;
}

.contact-item {
    display: flex;
    align-items: flex-start;
    margin-bottom: 15px;
}

.contact-icon {
    color: #2c3e50;
    font-size: 20px;
    margin-right: 15px;
}

.contact-text {
    line-height: 1.4;
}

.contact-text strong {
    display: block;
    margin-bottom: 5px;
}

.contact-form input,
.contact-form textarea {
    width: 100%;
    padding: 12px 15px;
    margin-bottom: 20px;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-size: 1rem;
}

.contact-form textarea {
    height: 150px;
    resize: vertical;
}

.contact-form button {
    background-color: #2c3e50;
    color: #fff;
    border: none;
    padding: 12px 30px;
    border-radius: 30px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.3s;
}

.contact-form button:hover {
    background-color: #34495e;
}

/* フッター */
footer {
    background-color: #333;
    color: #fff;
    padding: 50px 0 20px;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 50px;
    margin-bottom: 40px;
}

.footer-column h3 {
    font-size: 1.3rem;
    margin-bottom: 20px;
    position: relative;
    padding-bottom: 10px;
}

.footer-column h3:after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 50px;
    height: 2px;
    background-color: #2c3e50;
}

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

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

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

.footer-links a:hover {
    color: #2c3e50;
}

.footer-bottom {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid #444;
    font-size: 0.9rem;
}

/* インスタグラム表示の中央揃え */
.instagram-container {
    text-align: center;
    margin: 0 auto;
    max-width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
}

.instagram-container iframe {
    margin: 0 auto;
    display: block;
    max-width: 100%;
}

/* インスタグラムの埋め込み要素も中央揃え */
.instagram-container > * {
    margin: 0 auto !important;
    display: block !important;
}

/* Instagram埋め込み要素の強制中央揃え */
.instagram-media {
    margin: 0 auto !important;
    display: block !important;
    text-align: center !important;
}

/* Instagramのリンク要素も中央揃え */
.instagram-container a {
    margin: 0 auto !important;
    display: block !important;
    text-align: center !important;
}

/* アニメーション */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* レスポンシブ対応 */
@media (max-width: 768px) {
    .header-container {
        padding: 15px;
    }

    .logo-text {
        font-size: 16px;
    }

    .logo-text span {
        font-size: 12px;
    }

    nav {
        position: fixed;
        top: 80px;
        left: 0;
        width: 100%;
        background-color: #fff;
        padding: 20px;
        box-shadow: 0 5px 10px rgba(0, 0, 0, 0.1);
        transform: translateY(-150%);
        transition: transform 0.3s;
        z-index: 999;
    }

    nav.active {
        transform: translateY(0);
    }

    nav ul {
        flex-direction: column;
    }

    nav ul li {
        margin: 10px 0;
    }

    .mobile-menu {
        display: block;
    }

    .hero h1 {
        font-size: 2rem;
        padding: 0 20px;
        word-wrap: break-word;
        overflow-wrap: break-word;
    }

    .particle-title {
        font-size: 2rem;
        line-height: 1.3;
        padding: 0 20px;
    }

    .hero p {
        font-size: 1rem;
        padding: 0 20px;
        word-wrap: break-word;
        overflow-wrap: break-word;
    }

    .section-header h2 {
        font-size: 2rem;
        padding: 0 20px;
        word-wrap: break-word;
        overflow-wrap: break-word;
    }

    .news-grid,
    .contact-grid {
        grid-template-columns: 1fr;
    }

    .update-box {
        flex-direction: column;
        text-align: center;
        padding: 15px;
    }

    .update-icon {
        margin-right: 0;
        margin-bottom: 10px;
    }

    .hero-content {
        display: flex;
        flex-direction: column;
        align-items: center;
    }

    .hero-content p {
        margin-bottom: 15px;
        max-width: 100%;
        text-align: center;
        font-size: 0.9rem;
        line-height: 1.4;
    }

    .hero-update-box {
        flex-direction: column;
        text-align: center;
        padding: 12px 15px;
        bottom: 15px;
        width: fit-content;
        max-width: 95%;
        min-width: 280px;
        justify-content: center;
        gap: 10px;
        left: 50%;
        transform: translateX(-50%);
        box-sizing: border-box;
    }

    .hero-update-box .update-icon {
        margin: 0;
        font-size: 20px;
    }

    .update-content h3 {
        font-size: 16px;
        margin-bottom: 8px;
    }

    /* モバイルでの最新情報テキスト修正 */
    .update-content p {
        margin: 8px !important;
        padding: 0 !important;
        font-size: 14px !important;
        line-height: 1.4 !important;
        letter-spacing: 0px !important;
        word-wrap: break-word;
        overflow-wrap: break-word;
        max-width: 100%;
    }

    /* モバイルでのくまゆ画像 */
    .kumayu-fixed {
        right: 3%;
        opacity: 0.7;
    }

    .kumayu-image {
        width: 80px;
    }

    /* モバイルでは吹き出しを非表示 */
    .kumayu-tooltip {
        display: none;
    }
}

/* より小さな画面でのくまゆ画像 */
@media (max-width: 480px) {
    .kumayu-fixed {
        right: 2%;
        opacity: 0.6;
    }

    .kumayu-image {
        width: 60px;
    }

    /* より小さな画面での最新情報テキスト修正 */
    .update-content p {
        margin: 6px !important;
        padding: 0 !important;
        font-size: 13px !important;
        line-height: 1.3 !important;
        letter-spacing: 0px !important;
        word-wrap: break-word;
        overflow-wrap: break-word;
        max-width: 100%;
    }

    .hero-update-box {
        padding: 10px 12px;
        min-width: 260px;
        max-width: 90%;
    }

    .update-content h3 {
        font-size: 14px;
        margin-bottom: 6px;
    }
}
