/* リセットCSS */
*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* 基本設定 */
html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: 'Noto Sans JP', 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    font-weight: 400;
    line-height: 1.6;
    color: #333;
    background-color: #ffffff;
    overflow-x: hidden;
}

@font-face {
    font-family: 'aoharu';
    src: url('./aoharu-marker-mini/aoharu-marker-mini/aoharu-marker-mini.ttf') format('truetype');
}

/* 共通コンテナ */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* ========================
   ナビゲーション
======================== */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(44, 169, 225, 0.1);
    transition: all 0.3s ease;
}

.navbar.scrolled {
    background: rgba(255, 255, 255, 0.98);
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.1);
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 70px;
}

.nav-logo .logo-text {
    font-family: 'aoharu', sans-serif;
    font-size: 2rem;
    font-weight: 700;
    color: #2ca9e1;
    text-decoration: none;
    letter-spacing: 0.05em;
}

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

.nav-link {
    text-decoration: none;
    color: #333;
    font-weight: 500;
    padding: 0.5rem 1rem;
    border-radius: 25px;
    transition: all 0.3s ease;
    position: relative;
}

.nav-link:hover,
.nav-link.active {
    color: #2ca9e1;
    background: rgba(44, 169, 225, 0.1);
}

.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
    gap: 4px;
}

.bar {
    width: 25px;
    height: 3px;
    background: #333;
    border-radius: 2px;
    transition: 0.3s;
}

/* ========================
   ヒーローセクション
======================== */
.hero-section {
    position: relative;
    width: 100vw;
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.hero-background {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: url('./images/background/bg1.jpg');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
}

.sky-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(180deg,
            rgba(44, 169, 225, 0.1) 0%,
            rgba(135, 206, 235, 0.2) 30%,
            rgba(44, 169, 225, 0.3) 70%,
            rgba(30, 144, 255, 0.4) 100%);
    animation: skyShimmer 8s ease-in-out infinite;
}

.hero-content {
    position: relative;
    z-index: 10;
    text-align: center;
    color: white;
    max-width: 800px;
    padding: 0 20px;
}

.hero-text {
    animation: fadeInUp 1.5s ease-out;
}

.main-title {
    font-family: 'aoharu', 'aoharu', 'Noto Sans JP', sans-serif;
    font-size: clamp(4rem, 12vw, 8rem);
    font-weight: 900;
    margin-bottom: 1.5rem;
    letter-spacing: 0.1em;
    animation: titleGlow 4s ease-in-out infinite alternate;
}

.title-line {
    display: inline-block;
    background: linear-gradient(45deg, #ffffff, #f0f8ff, #ffffff);
    background-size: 200% 200%;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: gradientShift 3s ease-in-out infinite;
}

.main-catchphrase {
    font-family: 'aoharu', 'Noto Sans JP', sans-serif;
    font-size: clamp(60px, 4vw, 2.5rem);
    font-weight: 300;
    letter-spacing: 0.1em;
    margin-bottom: 3rem;
    color: #ecf7c0;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
    animation: fadeIn 2s ease-out 0.5s both;
    white-space: nowrap;
}

.hero-buttons {
    display: flex;
    gap: 1.5rem;
    justify-content: center;
    flex-wrap: wrap;
    animation: fadeIn 2s ease-out 1s both;
}

.btn {
    padding: 1rem 2.5rem;
    border: none;
    border-radius: 60px;
    font-size: 1.1rem;
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    z-index: 1;
}

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

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

.btn-primary {
    background: linear-gradient(45deg, #2ca9e1, #1e90ff);
    color: white;
    box-shadow: 0 4px 15px rgba(44, 169, 225, 0.3);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(44, 169, 225, 0.4);
}

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

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: white;
    transform: translateY(-2px);
}

.scroll-indicator {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    animation: bounce 2s infinite;
}

.scroll-arrow {
    width: 24px;
    height: 24px;
    border-right: 2px solid rgba(255, 255, 255, 0.8);
    border-bottom: 2px solid rgba(255, 255, 255, 0.8);
    transform: rotate(45deg);
}

/* ========================
   コンテンツセクション
======================== */
section {
    padding: 100px 0;
}

.section-title {
    font-size: clamp(2.5rem, 5vw, 4rem);
    font-weight: 700;
    text-align: center;
    margin-bottom: 4rem;
    color: #333;
    position: relative;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 100px;
    height: 4px;
    background: linear-gradient(45deg, #2ca9e1, #1e90ff);
    border-radius: 2px;
}

/* ストーリーセクション */
.story-section {
    background: linear-gradient(135deg, #f8fdff 0%, #e3f2fd 100%);
}

.story-content {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
}

.story-text h3 {
    font-size: clamp(1.5rem, 3vw, 2.2rem);
    font-weight: 600;
    margin-bottom: 2rem;
    color: #2ca9e1;
}

.story-text p {
    font-size: 1.2rem;
    line-height: 1.8;
    color: #555;
}

/* キャラクターセクション */
.characters-section {
    background: #ffffff;
}

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

.character-card {
    background: white;
    border-radius: 20px;
    padding: 2rem;
    text-align: center;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    border: 1px solid rgba(44, 169, 225, 0.1);
}

.character-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 60px rgba(44, 169, 225, 0.2);
}

.character-image {
    width: 160px;
    height: 160px;
    margin: 0 auto 1.5rem;
    border-radius: 50%;
    overflow: hidden;
    background: linear-gradient(45deg, #2ca9e1, #87CEEB);
}

.placeholder-image {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: 600;
    font-size: 0.9rem;
}

.character-name {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: #333;
}

.character-description {
    color: #666;
    line-height: 1.6;
}

/* ニュースセクション */
.news-section {
    background: linear-gradient(135deg, #f0f8ff 0%, #e6f3ff 100%);
}

.news-grid {
    display: grid;
    gap: 2rem;
    margin-top: 3rem;
}

.news-item {
    background: white;
    padding: 2rem;
    border-radius: 15px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    border-left: 4px solid #2ca9e1;
}

.news-item:hover {
    transform: translateX(5px);
    box-shadow: 0 10px 30px rgba(44, 169, 225, 0.15);
}

.news-date {
    color: #2ca9e1;
    font-weight: 600;
    font-size: 0.9rem;
    margin-bottom: 0.5rem;
}

.news-title {
    font-size: 1.3rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: #333;
}

.news-summary {
    color: #666;
    line-height: 1.6;
}

/* スタッフセクション */
.staff-section {
    background: #ffffff;
}

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

.staff-item {
    text-align: center;
    padding: 2rem;
    background: linear-gradient(135deg, #f8fdff 0%, #e3f2fd 100%);
    border-radius: 15px;
    transition: all 0.3s ease;
}

.staff-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(44, 169, 225, 0.1);
}

.staff-role {
    font-size: 0.9rem;
    color: #2ca9e1;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.staff-name {
    font-size: 1.2rem;
    font-weight: 600;
    color: #333;
}

/* フッター */
.footer {
    background: linear-gradient(135deg, #1e3c72 0%, #2a5298 100%);
    color: white;
    padding: 3rem 0 1rem;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
}

.footer-logo .logo-text {
    font-family: 'aoharu', sans-serif;
    font-size: 2rem;
    font-weight: 700;
    color: white;
}

.footer-links {
    display: flex;
    gap: 2rem;
}

.footer-links a {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-links a:hover {
    color: white;
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.2);
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.9rem;
}

/* ========================
   アニメーション
======================== */
@keyframes fadeInUp {
    0% {
        opacity: 0;
        transform: translateY(30px);
    }

    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeIn {
    0% {
        opacity: 0;
    }

    100% {
        opacity: 1;
    }
}

@keyframes titleGlow {
    0% {
        text-shadow:
            0 0 20px rgba(44, 169, 225, 0.6),
            0 0 60px rgba(44, 169, 225, 0.4),
            4px 4px 8px rgba(0, 0, 0, 0.6);
    }

    100% {
        text-shadow:
            0 0 30px rgba(44, 169, 225, 0.8),
            0 0 60px rgba(44, 169, 225, 0.6),
            4px 4px 8px rgba(0, 0, 0, 0.6);
    }
}

@keyframes gradientShift {

    0%,
    100% {
        background-position: 0% 50%;
    }

    50% {
        background-position: 100% 50%;
    }
}

@keyframes skyShimmer {

    0%,
    100% {
        opacity: 0.8;
    }

    50% {
        opacity: 1;
    }
}

@keyframes bounce {

    0%,
    20%,
    50%,
    80%,
    100% {
        transform: translateX(-50%) translateY(0);
    }

    40% {
        transform: translateX(-50%) translateY(-10px);
    }

    60% {
        transform: translateX(-50%) translateY(-5px);
    }
}

/* ========================
   レスポンシブデザイン
======================== */
@media (max-width: 768px) {
    .navbar {
        padding: 0 15px;
    }

    .nav-container {
        height: 60px;
    }

    .nav-menu {
        position: fixed;
        left: -100%;
        top: 60px;
        flex-direction: column;
        background-color: rgba(255, 255, 255, 0.98);
        width: 100%;
        text-align: center;
        transition: 0.3s;
        box-shadow: 0 10px 27px rgba(0, 0, 0, 0.05);
        backdrop-filter: blur(20px);
        padding: 2rem 0;
        gap: 1rem;
    }

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

    .hamburger {
        display: flex;
    }

    .hamburger.active .bar:nth-child(2) {
        opacity: 0;
    }

    .hamburger.active .bar:nth-child(1) {
        transform: translateY(7px) rotate(45deg);
    }

    .hamburger.active .bar:nth-child(3) {
        transform: translateY(-7px) rotate(-45deg);
    }

    .hero-section {
        padding: 0 15px;
    }

    .hero-buttons {
        flex-direction: column;
        align-items: center;
        gap: 1rem;
    }

    .btn {
        width: 100%;
        max-width: 280px;
    }

    .character-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .character-card {
        padding: 1.5rem;
    }

    .staff-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
    }

    .footer-content {
        flex-direction: column;
        gap: 2rem;
    }

    .footer-links {
        flex-wrap: wrap;
        justify-content: center;
        gap: 1rem;
    }

    section {
        padding: 60px 0;
    }

    .container {
        padding: 0 15px;
    }
}

@media (max-width: 480px) {
    .nav-logo .logo-text {
        font-size: 1.5rem;
    }

    .main-title {
        font-size: clamp(3rem, 10vw, 5rem);
    }

    .main-catchphrase {
        font-size: clamp(60px, 4vw, 1.8rem);
        white-space: nowrap;
    }

    .section-title {
        font-size: clamp(2rem, 6vw, 3rem);
    }

    .character-image {
        width: 120px;
        height: 120px;
    }

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

    .story-text p {
        font-size: 1rem;
    }

    .news-item {
        padding: 1.5rem;
    }

    .staff-item {
        padding: 1.5rem;
    }
}

@media (max-height: 600px) {
    .hero-section {
        height: auto;
        min-height: 100vh;
        padding: 100px 20px 60px;
    }

    .main-title {
        font-size: clamp(2.5rem, 8vw, 4rem);
        margin-bottom: 1rem;
    }

    .main-catchphrase {
        font-size: clamp(60px, 3vw, 1.5rem);
        margin-bottom: 2rem;
        white-space: nowrap;
    }
}

/* ダークモード対応 */
@media (prefers-color-scheme: dark) {
    .navbar {
        background: rgba(30, 30, 30, 0.95);
    }

    .nav-link {
        color: #e0e0e0;
    }

    .nav-link:hover,
    .nav-link.active {
        color: #87CEEB;
        background: rgba(135, 206, 235, 0.1);
    }

    .section-title {
        color: #e0e0e0;
    }

    .story-text p {
        color: #b0b0b0;
    }

    .character-description,
    .news-summary {
        color: #a0a0a0;
    }
}

/* アクセシビリティ: アニメーション無効設定 */
@media (prefers-reduced-motion: reduce) {

    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }

    .scroll-indicator {
        animation: none;
    }
}

/* プリント用スタイル */
@media print {

    .navbar,
    .scroll-indicator,
    .hero-buttons {
        display: none;
    }

    .hero-section {
        height: auto;
        background: white;
        color: black;
    }

    .main-title,
    .main-catchphrase {
        color: black;
        text-shadow: none;
    }
}

.btn {
    padding: 1rem 2.5rem;
    border: none;
    border-radius: 60px;
    font-size: 1.1rem;
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    z-index: 1;
}

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

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

.btn-primary {
    background: linear-gradient(45deg, #2ca9e1, #1e90ff);
    color: white;
    box-shadow: 0 4px 15px rgba(44, 169, 225, 0.3);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(44, 169, 225, 0.4);
}

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

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: white;
    transform: translateY(-2px);
}

.scroll-indicator {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    animation: bounce 2s infinite;
}

.scroll-arrow {
    width: 24px;
    height: 24px;
    border-right: 2px solid rgba(255, 255, 255, 0.8);
    border-bottom: 2px solid rgba(255, 255, 255, 0.8);
    transform: rotate(45deg);
}

/* アニメーション */
@keyframes fadeInUp {
    0% {
        opacity: 0;
        transform: translateY(60px);
    }

    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeIn {
    0% {
        opacity: 0;
    }

    100% {
        opacity: 1;
    }
}

@keyframes titleGlow {
    0% {
        text-shadow:
            0 0 10px rgba(44, 169, 225, 0.5),
            0 0 20px rgba(44, 169, 225, 0.3),
            2px 2px 4px rgba(0, 0, 0, 0.5);
    }

    100% {
        text-shadow:
            0 0 15px rgba(44, 169, 225, 0.8),
            0 0 30px rgba(44, 169, 225, 0.5),
            2px 2px 4px rgba(0, 0, 0, 0.5);
    }
}

@keyframes skyShimmer {

    0%,
    100% {
        opacity: 0.3;
    }

    50% {
        opacity: 0.6;
    }
}

@keyframes float1 {
    0% {
        transform: translateX(-100px);
    }

    100% {
        transform: translateX(calc(100vw + 100px));
    }
}

@keyframes float2 {
    0% {
        transform: translateX(calc(100vw + 80px));
    }

    100% {
        transform: translateX(-80px);
    }
}

@keyframes float3 {
    0% {
        transform: translateX(-60px) translateY(0px);
    }

    50% {
        transform: translateX(calc(50vw + 30px)) translateY(-20px);
    }

    100% {
        transform: translateX(calc(100vw + 60px)) translateY(0px);
    }
}

/* レスポンシブデザイン */
@media (max-width: 768px) {
    .container {
        background-attachment: scroll;
    }

    .title {
        font-size: clamp(2.5rem, 10vw, 4rem);
        margin-bottom: 0.8rem;
    }

    .catchphrase {
        font-size: clamp(1rem, 4vw, 1.5rem);
        padding: 0 1rem;
    }

    .cloud-1,
    .cloud-2,
    .cloud-3 {
        display: none;
    }
}

@media (max-width: 480px) {
    .hero {
        padding: 0 1rem;
    }

    .title {
        font-size: clamp(2rem, 8vw, 3rem);
    }

    .catchphrase {
        font-size: clamp(0.9rem, 3.5vw, 1.2rem);
    }
}

/* 高さが低い画面への対応 */
@media (max-height: 600px) {
    .title {
        font-size: clamp(2rem, 6vw, 3.5rem);
        margin-bottom: 0.5rem;
    }

    .catchphrase {
        font-size: clamp(0.9rem, 2.5vw, 1.3rem);
    }
}