/* ===================================
   基本設定とリセット
   =================================== */
:root {
    --color-primary: #4a9eff;
    --color-secondary: #ffd700;
    --color-accent: #ff6b9d;
    --color-bg-dark: #0a0e27;
    --color-bg-darker: #050810;
    --color-bg-section: #0f1432;
    --color-text-light: #ffffff;
    --color-text-muted: #a0a8c9;
    --color-border: rgba(74, 158, 255, 0.2);
    --gradient-primary: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    --gradient-hero: linear-gradient(180deg, rgba(10, 14, 39, 0.3) 0%, rgba(5, 8, 16, 0.9) 100%);
    --shadow-card: 0 8px 32px rgba(0, 0, 0, 0.4);
    --transition: all 0.3s ease;
}

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

html {
    scroll-behavior: smooth;
}

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

/* 星空背景レイヤー */
.stars-background {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    pointer-events: none;
    z-index: 1;
    overflow: hidden;
}

.stars-background::before,
.stars-background::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
}

/* 大きめの星 */
.stars-background::before {
    background-image: 
        radial-gradient(1.5px 1.5px at 20% 30%, white, transparent),
        radial-gradient(1.5px 1.5px at 60% 70%, white, transparent),
        radial-gradient(1.5px 1.5px at 50% 50%, white, transparent),
        radial-gradient(1.5px 1.5px at 80% 10%, white, transparent),
        radial-gradient(1.5px 1.5px at 90% 60%, white, transparent),
        radial-gradient(1.5px 1.5px at 33% 83%, white, transparent),
        radial-gradient(1.5px 1.5px at 15% 90%, white, transparent),
        radial-gradient(1.5px 1.5px at 45% 20%, white, transparent),
        radial-gradient(1.5px 1.5px at 75% 40%, white, transparent),
        radial-gradient(1.5px 1.5px at 10% 60%, white, transparent),
        radial-gradient(1.5px 1.5px at 25% 15%, white, transparent),
        radial-gradient(1.5px 1.5px at 85% 85%, white, transparent);
    background-size: 100% 100%;
    opacity: 0.15;
    animation: twinkleStars 10s ease-in-out infinite;
}

@keyframes twinkleStars {
    0%, 100% { opacity: 0.12; }
    50% { opacity: 0.18; }
}

/* より多くの小さな星 */
.stars-background::after {
    background-image: 
        radial-gradient(0.8px 0.8px at 10% 20%, rgba(255, 255, 255, 0.9), transparent),
        radial-gradient(0.8px 0.8px at 40% 40%, rgba(255, 255, 255, 0.9), transparent),
        radial-gradient(0.8px 0.8px at 70% 60%, rgba(255, 255, 255, 0.9), transparent),
        radial-gradient(0.8px 0.8px at 25% 75%, rgba(255, 255, 255, 0.9), transparent),
        radial-gradient(0.8px 0.8px at 85% 30%, rgba(255, 255, 255, 0.9), transparent),
        radial-gradient(0.8px 0.8px at 55% 15%, rgba(255, 255, 255, 0.9), transparent),
        radial-gradient(0.8px 0.8px at 95% 85%, rgba(255, 255, 255, 0.9), transparent),
        radial-gradient(0.8px 0.8px at 30% 50%, rgba(255, 255, 255, 0.9), transparent),
        radial-gradient(0.8px 0.8px at 65% 25%, rgba(255, 255, 255, 0.9), transparent),
        radial-gradient(0.8px 0.8px at 18% 45%, rgba(255, 255, 255, 0.9), transparent),
        radial-gradient(0.8px 0.8px at 88% 70%, rgba(255, 255, 255, 0.9), transparent),
        radial-gradient(0.8px 0.8px at 42% 88%, rgba(255, 255, 255, 0.9), transparent),
        radial-gradient(0.8px 0.8px at 5% 35%, rgba(255, 255, 255, 0.9), transparent),
        radial-gradient(0.8px 0.8px at 78% 5%, rgba(255, 255, 255, 0.9), transparent),
        radial-gradient(0.8px 0.8px at 52% 78%, rgba(255, 255, 255, 0.9), transparent);
    background-size: 100% 100%;
    opacity: 0.1;
    animation: twinkleStars 15s ease-in-out infinite reverse;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

a {
    color: var(--color-primary);
    text-decoration: none;
    transition: var(--transition);
}

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

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

/* ===================================
   ナビゲーション
   =================================== */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background: rgba(10, 14, 39, 0.95);
    backdrop-filter: blur(10px);
    z-index: 1000;
    padding: 1rem 0;
    box-shadow: 0 2px 20px rgba(74, 158, 255, 0.1);
}

.navbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--color-text-light);
}

.nav-logo .logo-icon {
    width: 45px;
    height: 45px;
    object-fit: contain;
    filter: drop-shadow(0 2px 8px rgba(255, 215, 0, 0.3));
}

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

.nav-menu a {
    color: var(--color-text-light);
    font-weight: 500;
    position: relative;
    padding: 0.5rem 0;
}

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

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

.nav-toggle {
    display: none;
    flex-direction: column;
    background: none;
    border: none;
    cursor: pointer;
    gap: 5px;
}

.nav-toggle span {
    width: 25px;
    height: 3px;
    background: var(--color-text-light);
    transition: var(--transition);
}

/* ===================================
   ヒーローセクション
   =================================== */
.hero {
    position: relative;
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    background: linear-gradient(180deg, #0a0e27 0%, #1a1f3a 100%);
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('../images/outdoor-observation.jpg');
    background-size: cover;
    background-position: center;
    opacity: 0.3;
    z-index: 0;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--gradient-hero);
    z-index: 1;
}

/* 星空アニメーション */
.stars {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 2;
}

.stars::before,
.stars::after {
    content: '';
    position: absolute;
    width: 2px;
    height: 2px;
    background: white;
    box-shadow: 
        100px 200px white,
        200px 100px white,
        300px 300px white,
        400px 150px white,
        500px 250px white,
        600px 100px white,
        700px 300px white,
        800px 200px white,
        900px 100px white,
        1000px 250px white,
        1100px 150px white,
        150px 350px white,
        250px 450px white,
        350px 50px white,
        450px 400px white,
        550px 200px white,
        650px 350px white,
        750px 450px white,
        850px 50px white,
        950px 400px white;
    animation: twinkle 3s infinite;
}

.stars::after {
    animation-delay: 1.5s;
}

@keyframes twinkle {
    0%, 100% { opacity: 0.3; }
    50% { opacity: 1; }
}

.hero-content {
    position: relative;
    z-index: 3;
    text-align: center;
    max-width: 800px;
    padding: 2rem;
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    line-height: 1.2;
    background: linear-gradient(90deg, #fff 0%, #ffd700 50%, #fff 100%);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: fadeInUp 1s ease;
}

.hero-subtitle {
    font-size: 1.5rem;
    color: var(--color-secondary);
    margin-bottom: 1.5rem;
    animation: fadeInUp 1s ease 0.2s both;
}

.hero-description {
    font-size: 1.1rem;
    color: var(--color-text-muted);
    margin-bottom: 2rem;
    line-height: 1.8;
    animation: fadeInUp 1s ease 0.4s both;
}

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

.scroll-indicator {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 3;
    text-align: center;
    color: var(--color-text-muted);
    animation: bounce 2s infinite;
}

.scroll-indicator span {
    display: block;
    font-size: 0.8rem;
    margin-bottom: 5px;
    letter-spacing: 2px;
}

.scroll-indicator i {
    font-size: 1.5rem;
}

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

/* ===================================
   ボタン
   =================================== */
.btn {
    display: inline-block;
    padding: 1rem 2.5rem;
    border-radius: 50px;
    font-weight: 600;
    text-align: center;
    cursor: pointer;
    transition: var(--transition);
    border: none;
    font-size: 1rem;
}

.btn-primary {
    background: var(--gradient-primary);
    color: var(--color-text-light);
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.4);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(102, 126, 234, 0.6);
}

/* ===================================
   セクション共通スタイル
   =================================== */
section {
    padding: 6rem 0;
    position: relative;
    z-index: 2;
}

.section-header {
    text-align: center;
    margin-bottom: 4rem;
}

.section-label {
    display: inline-block;
    color: var(--color-secondary);
    font-size: 0.9rem;
    font-weight: 600;
    letter-spacing: 3px;
    text-transform: uppercase;
    margin-bottom: 1rem;
}

.section-title {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: var(--color-text-light);
}

.section-description {
    color: var(--color-text-muted);
    font-size: 1.1rem;
    max-width: 600px;
    margin: 0 auto;
}

/* ===================================
   活動について
   =================================== */
.about {
    background: var(--color-bg-section);
}

.about-content {
    display: grid;
    grid-template-columns: 1.5fr 1fr;
    gap: 4rem;
    align-items: center;
}

.about-text h3 {
    font-size: 1.8rem;
    margin-bottom: 1.5rem;
    color: var(--color-secondary);
}

.about-text p {
    color: var(--color-text-muted);
    margin-bottom: 1.5rem;
}

.about-features {
    display: flex;
    gap: 2rem;
    margin-top: 2rem;
}

.about-feature-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    text-align: center;
}

.about-feature-item i {
    font-size: 2rem;
    color: var(--color-primary);
}

.about-image {
    display: flex;
    justify-content: center;
    align-items: center;
}

.about-image img {
    border-radius: 20px;
    box-shadow: var(--shadow-card);
    max-width: 100%;
}

/* ===================================
   実施内容
   =================================== */
.features {
    background: var(--color-bg-dark);
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-bottom: 3rem;
}

.feature-card {
    background: var(--color-bg-section);
    padding: 2rem;
    border-radius: 20px;
    border: 1px solid var(--color-border);
    transition: var(--transition);
}

.feature-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-card);
    border-color: var(--color-primary);
}

.feature-icon {
    width: 70px;
    height: 70px;
    background: var(--gradient-primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
}

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

.feature-card h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: var(--color-text-light);
}

.feature-card p {
    color: var(--color-text-muted);
    margin-bottom: 1.5rem;
}

.feature-image {
    border-radius: 10px;
    overflow: hidden;
    margin-top: 1rem;
}

.feature-image img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    transition: var(--transition);
}

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

.digital-experience {
    background: var(--color-bg-section);
    padding: 2rem;
    border-radius: 20px;
    border: 1px solid var(--color-border);
}

.digital-experience h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: var(--color-primary);
}

.digital-experience h3 i {
    margin-right: 0.5rem;
}

.digital-experience p {
    color: var(--color-text-muted);
}

.observation-gallery {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
    margin-top: 2rem;
}

.observation-item {
    border-radius: 15px;
    overflow: hidden;
    border: 1px solid var(--color-border);
    transition: var(--transition);
    cursor: pointer;
}

.observation-item:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-card);
    border-color: var(--color-primary);
}

.observation-item img {
    width: 100%;
    height: 250px;
    object-fit: cover;
    display: block;
    transition: var(--transition);
}

.observation-item:hover img {
    transform: scale(1.1);
}

/* ===================================
   イベント情報
   =================================== */
.event {
    background: var(--color-bg-section);
}

.event-main {
    margin-bottom: 3rem;
}

.event-card-large {
    background: var(--color-bg-dark);
    border-radius: 20px;
    overflow: hidden;
    border: 1px solid var(--color-border);
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0;
}

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

.event-content {
    padding: 3rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.event-content h3 {
    font-size: 2rem;
    margin-bottom: 0.5rem;
    color: var(--color-text-light);
}

.event-subtitle {
    color: var(--color-secondary);
    font-size: 1.2rem;
    margin-bottom: 2rem;
}

.event-details {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.event-detail-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    color: var(--color-text-muted);
}

.event-detail-item i {
    color: var(--color-primary);
    font-size: 1.2rem;
}

.implementation-conditions {
    background: var(--color-bg-dark);
    padding: 2rem;
    border-radius: 20px;
    border: 1px solid var(--color-border);
}

.implementation-conditions h3 {
    font-size: 1.5rem;
    margin-bottom: 2rem;
    color: var(--color-primary);
}

.implementation-conditions h3 i {
    margin-right: 0.5rem;
}

.conditions-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

.condition-item {
    text-align: center;
}

.condition-item i {
    font-size: 2.5rem;
    color: var(--color-secondary);
    margin-bottom: 1rem;
}

.condition-item h4 {
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
    color: var(--color-text-light);
}

.condition-item p {
    color: var(--color-text-muted);
}

/* ===================================
   ギャラリー
   =================================== */
.gallery {
    background: var(--color-bg-dark);
}

.gallery-social {
    margin-top: 1.5rem;
}

.instagram-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.8rem 1.5rem;
    background: linear-gradient(135deg, #f09433 0%, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888 100%);
    color: white;
    border-radius: 50px;
    font-weight: 600;
    transition: var(--transition);
    box-shadow: 0 4px 15px rgba(188, 24, 136, 0.3);
}

.instagram-link:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(188, 24, 136, 0.5);
    color: white;
}

.instagram-link i {
    font-size: 1.2rem;
}

.instagram-embed-container {
    margin-top: 3rem;
}

.instagram-feed-wrapper {
    background: var(--color-bg-section);
    border-radius: 20px;
    padding: 2rem;
    border: 1px solid var(--color-border);
    box-shadow: var(--shadow-card);
    min-height: 400px;
}

/* Behold.soウィジェットのスタイル調整 */
.instagram-feed-wrapper behold-widget {
    display: block;
    width: 100%;
}

.instagram-cta {
    text-align: center;
    margin-top: 2rem;
}

.instagram-cta .btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.instagram-cta .btn i {
    font-size: 1.2rem;
}

/* レスポンシブ対応 */
@media (max-width: 768px) {
    .instagram-feed-wrapper {
        padding: 1rem;
    }
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
}

.gallery-item {
    position: relative;
    border-radius: 15px;
    overflow: hidden;
    aspect-ratio: 1;
    cursor: pointer;
    transition: var(--transition);
}

.gallery-item:hover {
    transform: scale(1.05);
    box-shadow: var(--shadow-card);
}

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

.gallery-item-generated {
    background: var(--color-bg-section);
    display: flex;
    align-items: center;
    justify-content: center;
}

.gallery-item-generated > div {
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
}

/* ===================================
   お問い合わせ
   =================================== */
.contact {
    background: var(--color-bg-section);
}

.contact-content {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 3rem;
}

.contact-info {
    background: var(--color-bg-dark);
    padding: 2rem;
    border-radius: 20px;
    border: 1px solid var(--color-border);
    height: fit-content;
}

.contact-info h3 {
    font-size: 1.5rem;
    margin-bottom: 2rem;
    color: var(--color-primary);
}

.contact-info h3 i {
    margin-right: 0.5rem;
}

.info-item {
    display: flex;
    gap: 1rem;
    margin-bottom: 2rem;
    padding-bottom: 2rem;
    border-bottom: 1px solid var(--color-border);
}

.info-item:last-of-type {
    border-bottom: none;
}

.info-item i {
    font-size: 1.5rem;
    color: var(--color-secondary);
    margin-top: 0.2rem;
}

.info-item strong {
    display: block;
    margin-bottom: 0.3rem;
    color: var(--color-text-light);
}

.info-item p {
    color: var(--color-text-muted);
}

.info-item a {
    color: var(--color-primary);
    font-size: 1.2rem;
    font-weight: 600;
}

.info-box {
    background: var(--color-bg-section);
    padding: 1.5rem;
    border-radius: 10px;
    margin-top: 2rem;
}

.info-box h4 {
    color: var(--color-secondary);
    margin-bottom: 0.5rem;
}

.info-box p {
    color: var(--color-text-muted);
    font-size: 0.9rem;
}

.contact-form-wrapper {
    background: var(--color-bg-dark);
    padding: 2rem;
    border-radius: 20px;
    border: 1px solid var(--color-border);
    overflow: hidden;
}

.google-form-container {
    width: 100%;
    min-height: 800px;
    border-radius: 10px;
    overflow: hidden;
    position: relative;
    max-height: 950px; /* 下部を隠すための最大高さ */
}

.google-form-container iframe {
    width: 100%;
    height: 1050px; /* 実際より高く設定 */
    border: none;
    border-radius: 10px;
    margin-bottom: -100px; /* 下部を隠す */
}

/* レスポンシブ対応 */
@media (max-width: 768px) {
    .google-form-container {
        min-height: 900px;
        max-height: 1050px;
    }
    
    .google-form-container iframe {
        height: 1200px;
        margin-bottom: -150px;
    }
}

/* ===================================
   フッター
   =================================== */
.footer {
    background: var(--color-bg-darker);
    padding: 3rem 0;
    text-align: center;
    border-top: 1px solid var(--color-border);
    position: relative;
    z-index: 2;
}

.footer-content {
    max-width: 600px;
    margin: 0 auto;
}

.footer-logo {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.footer-logo .logo-icon {
    width: 80px;
    height: 80px;
    object-fit: contain;
    filter: drop-shadow(0 2px 8px rgba(255, 215, 0, 0.3));
}

.footer-text {
    color: var(--color-text-muted);
    margin-bottom: 1.5rem;
}

.footer-social {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin: 1.5rem 0;
}

.social-link {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    transition: var(--transition);
    border: 2px solid transparent;
}

.social-link.facebook {
    background: #1877f2;
    color: white;
}

.social-link.facebook:hover {
    background: #145dbf;
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(24, 119, 242, 0.4);
}

.social-link.instagram {
    background: linear-gradient(135deg, #f09433 0%, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888 100%);
    color: white;
}

.social-link.instagram:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(188, 24, 136, 0.4);
}

.footer-copyright {
    color: var(--color-text-muted);
    font-size: 0.9rem;
    margin-top: 1.5rem;
}

/* ===================================
   レスポンシブデザイン
   =================================== */
@media (max-width: 768px) {
    .nav-menu {
        position: fixed;
        top: 70px;
        left: -100%;
        width: 100%;
        flex-direction: column;
        background: rgba(10, 14, 39, 0.98);
        padding: 2rem;
        gap: 1rem;
        transition: left 0.3s ease;
    }

    .nav-menu.active {
        left: 0;
    }

    .nav-toggle {
        display: flex;
    }

    .hero-title {
        font-size: 2rem;
    }

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

    .hero-description {
        font-size: 1rem;
    }

    .section-title {
        font-size: 1.8rem;
    }

    .about-content,
    .event-card-large,
    .contact-content {
        grid-template-columns: 1fr;
    }

    .event-image {
        height: 300px;
    }

    .features-grid,
    .conditions-grid,
    .gallery-grid {
        grid-template-columns: 1fr;
    }

    section {
        padding: 4rem 0;
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 1.5rem;
    }

    .section-title {
        font-size: 1.5rem;
    }

    .btn {
        padding: 0.8rem 2rem;
        font-size: 0.9rem;
    }
}
