@charset "utf-8";

/* ==========================================================================
   1. Global Variables & Settings
   ========================================================================== */
:root {
    /* Colors */
    --color-text: #333333;       /* 基本の黒 */
    --color-bg: #fdfdfd;         /* 背景の白 */
    --color-bg-secondary: #e9ecef; /* セクション背景のグレー */
    --color-accent: #007bff;     /* ★アクセントカラー（鮮やかな水色） */
    --color-white: #ffffff;
    
    /* Shadows */
    --shadow-hard: 5px 5px 0 #bbbbbb; /* ポップな影 */
    --shadow-soft: 0 4px 12px rgba(0, 0, 0, 0.08); /* ふわっとした影 */
    
    /* Sizes & Radius */
    --radius-sm: 5px;
    --radius-md: 8px;
    --radius-lg: 18px;
    --header-height: 80px; 
    --header-height-sp: 60px;
    
    /* Fonts */
    --font-primary: 'Noto Sans JP', sans-serif;
}

/* ==========================================================================
   2. Reset & Base Styles
   ========================================================================== */
*, *::before, *::after {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-primary);
    font-size: 16px;
    line-height: 1.6;
    color: var(--color-text);
    margin: 0;
    padding: 0;
    background-color: var(--color-bg);
    -webkit-font-smoothing: antialiased;
}

/* --- リンクテキストのホバー統一設定 --- */
a {
    color: var(--color-accent); /* 通常時はアクセントカラー */
    text-decoration: none;
    transition: all 0.3s ease;
}

a:hover, a:focus {
    color: var(--color-accent); /* 色は維持 */
    opacity: 0.7; /* 少し透けさせる */
    text-decoration: underline; /* 下線を出す */
}

/* 画像の基本設定 */
img {
    max-width: 100%;
    height: auto;
    vertical-align: bottom;
}

/* メインコンテンツの位置調整 */
main {
    padding-top: calc(var(--header-height) + 40px);
}

/* ==========================================================================
   3. UI Components (Buttons, Typography)
   ========================================================================== */

/* Section Layout */
.section, .section-primary, .section-secondary {
    padding: 60px 5%;
}
.section-primary { background-color: var(--color-bg); }
.section-secondary { background-color: var(--color-bg-secondary); }

/* Headlines */
.section-headline {
    text-align: center;
    font-size: 2.5rem;
    font-weight: bold;
    margin: 0 0 10px;
    position: relative;
    scroll-margin-top: calc(var(--header-height) + 20px);
}

.sub-text {
    font-size: 0.9rem;
    text-align: center;
    margin-bottom: 50px;
    opacity: 0.8;
    letter-spacing: 0.05em;
}

/* --- ボタンのホバー統一設定 --- */
.button, button {
    display: inline-block;
    color: var(--color-white);
    background-color: var(--color-text); /* 通常は黒 */
    font-weight: bold;
    text-align: center;
    padding: 15px 40px;
    text-decoration: none;
    border: none;
    border-radius: var(--radius-sm);
    box-shadow: var(--shadow-hard);
    transition: all 0.3s ease; /* アニメーションを滑らかに */
    cursor: pointer;
    font-size: 1rem;
}

/* ホバー時に背景をアクセントカラー（水色）に変更 */
.button:hover, button:hover {
    background-color: var(--color-accent); /* ★ここが変更点 */
    color: #fff;
    box-shadow: 2px 2px 0 #bbb;
    transform: translate(2px, 2px);
    text-decoration: none;
    opacity: 1;
}

.section-button {
    margin: 40px 0 20px;
    text-align: center;
}

/* ==========================================================================
   4. Header & Navigation (Desktop)
   ========================================================================== */
.header {
    width: 100%;
    height: var(--header-height);
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 4%;
    position: fixed;
    z-index: 1000;
    top: 0;
    left: 0;
    background-color: rgba(253, 253, 253, 0.85);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    box-shadow: 0 1px 0 rgba(0,0,0,0.05);
    transition: background-color 0.3s, padding 0.3s;
}

.header-logo img {
    width: 140px;
    height: auto;
    display: block;
    transition: opacity 0.3s;
}
.header-logo a:hover img { opacity: 0.7; }

/* Desktop Navigation */
.header-navlist {
    margin: 0;
    padding: 0;
    list-style: none;
    display: flex;
    align-items: center;
    gap: 25px;
}

.header-navitem > a {
    display: block;
    padding: 5px 0;
    color: var(--color-text); /* 通常は黒文字 */
    font-weight: bold;
    font-size: 0.95rem;
    text-decoration: none;
    position: relative;
    letter-spacing: 0.05em;
    transition: color 0.3s ease;
}

/* ホバーアニメーション */
.header-navitem > a:not(.cta-button)::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 50%;
    width: 0;
    height: 2px;
    background-color: var(--color-accent);
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    transform: translateX(-50%);
}
.header-navitem > a:not(.cta-button):hover::after { width: 100%; }
.header-navitem > a:not(.cta-button):hover { color: var(--color-accent); /* 文字色も水色へ */ }

/* Links CTA Button (基準となるデザイン) */
.header-navitem > a.cta-button {
    background-color: var(--color-text);
    color: var(--color-white);
    padding: 10px 24px;
    border-radius: 50px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 10px rgba(0,0,0,0.15);
}
.header-navitem > a.cta-button:hover {
    background-color: var(--color-accent); /* 背景が水色へ */
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(0,123,255,0.3);
    text-decoration: none;
}

/* ==========================================================================
   5. Hero Section (Top)
   ========================================================================== */
.top {
    min-height: 60vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding-left: 50px;
    align-items: flex-start;
}

.text {
    font-size: clamp(2rem, 5vw, 4rem);
    font-weight: bold;
    margin: 10px 0;
    line-height: 1.2;
    white-space: nowrap;
}

.text span {
    display: inline-block;
    transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}
.text span:hover {
    transform: translateY(-10px) rotate(-5deg) scale(1.1);
    color: var(--color-accent); /* 文字ホバーも水色 */
}

/* ==========================================================================
   6. Content Grid (Past, Goods, Comic)
   ========================================================================== */
/* グリッドコンテナ（NFTを削除） */
.past-container, .goods-container, .comic-container {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 30px;
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
}

/* カード共通設定（NFTを削除） */
.past, .goods, .comic {
    display: flex;
    flex-direction: column;
    text-decoration: none;
    color: var(--color-text);
    transition: transform 0.3s ease;
}

/* --- 画像の比率設定（ここを分離して最適化） --- */

/* 1. YouTubeショート用（縦長 9:16） */
.comic img {
    width: 100%;
    aspect-ratio: 9 / 16;
    object-fit: cover;
    border: 1px solid #000;
    border-radius: var(--radius-sm);
    box-shadow: 4px 4px 0 rgba(0,0,0,0.2);
    transition: transform 0.3s, box-shadow 0.3s;
}

/* 2. Past(ポスター) & Goods(本)用（A4比率 210:297） */
.past img, .goods img {
    width: 100%;
    aspect-ratio: 210 / 297; /* A4サイズ */
    object-fit: cover;
    border: 1px solid #ddd;  /* ポスター系は枠線を少し薄く上品に */
    border-radius: var(--radius-sm);
    box-shadow: 4px 4px 0 rgba(0,0,0,0.15);
    transition: transform 0.3s, box-shadow 0.3s;
}

/* ホバー時のアクション（共通） */
.past:hover img, .goods:hover img, .comic:hover img {
    transform: translate(-3px, -3px);
    box-shadow: 7px 7px 0 rgba(0,0,0,0.2);
}

/* タイトルテキスト */
.past h2, .goods h2, .comic h2 {
    margin-top: 15px;
    font-size: 1rem;
    font-weight: bold;
    text-align: center;
    line-height: 1.4;
    transition: color 0.3s ease;
}

/* ホバー時にタイトル色変更 */
.past:hover h2, .goods:hover h2, .comic:hover h2 {
    color: var(--color-accent);
}

/* ==========================================================================
   7. About Section
   ========================================================================== */
.about-card {
    display: flex;
    align-items: center;
    justify-content: center;
    max-width: 1000px;
    margin: 0 auto 40px;
    background: var(--color-white);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-soft);
    padding: 40px;
    gap: 50px;
    transition: transform 0.3s ease;
}
.about-card:hover { transform: translateY(-3px); }

.about-card-img img {
    width: 250px;
    height: 250px;
    object-fit: cover;
    border-radius: var(--radius-lg);
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}
.about-card.reverse { flex-direction: row-reverse; }
.about-card-title { font-size: 1.5rem; font-weight: bold; margin-bottom: 15px; }
.about-subtitle { font-size: 0.9rem; color: #888; margin-left: 10px; font-weight: normal; }

.about-details summary {
    cursor: pointer;
    color: var(--color-accent);
    font-weight: bold;
    margin: 15px 0;
    list-style: none;
    transition: opacity 0.3s;
}
.about-details summary:hover { opacity: 0.7; }
.about-details summary::-webkit-details-marker { display: none; }

/* ==========================================================================
   8. Permission Section
   ========================================================================== */
.permission-container { max-width: 900px; margin: 0 auto; }
.permission-intro { text-align: center; margin-bottom: 40px; font-size: 1rem; line-height: 1.8; }
.permission-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(340px, 1fr)); gap: 30px; }

.permission-card {
    background: var(--color-white);
    border-radius: var(--radius-md);
    padding: 30px;
    box-shadow: var(--shadow-soft);
    border-top: 4px solid var(--color-text);
    transition: transform 0.3s ease;
}
.permission-card:hover { transform: translateY(-3px); }
.permission-card-title { font-size: 1.2rem; font-weight: bold; margin-bottom: 15px; padding-bottom: 10px; border-bottom: 1px solid #eee; }
.permission-card-text { font-size: 0.95rem; line-height: 1.8; color: #555; }
.permission-card-text strong { color: #d9534f; background: rgba(217, 83, 79, 0.1); padding: 0 4px; }
.permission-note, .permission-example { font-size: 0.85rem; color: #888; display: block; margin-top: 5px; }
.permission-example { background: #f9f9f9; padding: 10px; margin-top: 10px; border-left: 3px solid #ccc; }
.permission-list { margin: 0; padding-left: 20px; }
.permission-list li { margin-bottom: 10px; font-size: 0.95rem; color: #555; }

/* ==========================================================================
   9. Forms (Contact) & FAQ
   ========================================================================== */
.faq-container, .form-container { max-width: 800px; margin: 0 auto; }

.faq {
    background: var(--color-white);
    border-radius: var(--radius-md);
    padding: 20px 25px;
    margin-bottom: 20px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
    border-left: 5px solid var(--color-accent);
}
.faq-question { font-size: 1.1rem; font-weight: bold; margin-bottom: 10px; }

.form-container {
    max-width: 700px;
    background: var(--color-white);
    padding: 40px;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-soft);
}
.form-group { margin-bottom: 25px; }
.form-label { display: block; font-weight: bold; margin-bottom: 8px; font-size: 0.95rem; }
.badge-required { background-color: #ff4d4f; color: #fff; font-size: 0.7rem; padding: 2px 6px; border-radius: 4px; margin-left: 6px; }

.form-input, .form-textarea, .form-select {
    width: 100%;
    padding: 12px 15px;
    font-size: 1rem;
    border: 1px solid #ddd;
    border-radius: var(--radius-md);
    background-color: #fafafa;
    transition: all 0.3s ease;
    appearance: none;
}
.form-input:focus, .form-textarea:focus, .form-select:focus {
    border-color: var(--color-accent);
    background-color: #fff;
    box-shadow: 0 0 0 4px rgba(0, 123, 255, 0.1);
    outline: none;
}
.form-textarea { resize: vertical; min-height: 120px; }
.select-wrapper { position: relative; }
.select-wrapper::after {
    content: ''; position: absolute; top: 50%; right: 15px;
    width: 8px; height: 8px;
    border-right: 2px solid #666; border-bottom: 2px solid #666;
    transform: translateY(-60%) rotate(45deg); pointer-events: none;
}

/* ==========================================================================
   10. Footer (Compact)
   ========================================================================== */
.footer {
    width: 100%;
    background-color: var(--color-text);
    color: #fff;
    padding: 30px 20px;
    margin-top: 0;
    position: relative;
    z-index: 10;
}
.footer-container {
    max-width: 1000px;
    margin: 0 auto;
    display: flex; flex-direction: column; align-items: center; gap: 20px;
}
.footer-links-wrapper { display: flex; flex-direction: column; align-items: center; gap: 10px; }
.footer-links-text { font-size: 0.8rem; color: rgba(255, 255, 255, 0.6); margin: 0; letter-spacing: 0.1em; font-weight: bold; }
.footer-links-btn { display: inline-block; transition: transform 0.3s cubic-bezier(0.25, 0.8, 0.25, 1); }
.footer-links-btn:hover { transform: scale(1.05); }
.footer-links-img { max-width: 100px; height: auto; display: block; }

.footer-bottom {
    width: 100%;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 15px;
    text-align: center;
}
.footer-copy { font-size: 0.75rem; color: rgba(255, 255, 255, 0.5); letter-spacing: 0.05em; }

/* ==========================================================================
   11. Floating Elements (Left: reCAPTCHA / Right: PageTop)
   ========================================================================== */

/* Page Top Button (右下) */
.pagetop {
    position: fixed;
    right: 20px;
    bottom: 20px;
    width: 50px;
    height: 50px;
    background-color: var(--color-text); /* 通常黒 */
    color: #fff;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 2147483647; 
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    box-shadow: 0 4px 10px rgba(0,0,0,0.2);
    cursor: pointer;
}

.pagetop.active {
    opacity: 1;
    visibility: visible;
    bottom: 30px;
}

/* ホバー時に水色に変更 */
.pagetop:hover {
    background-color: var(--color-accent); /* ★ここが変更点 */
    transform: scale(1.1);
    box-shadow: 0 6px 15px rgba(0,0,0,0.3);
}

.pagetop svg { width: 24px; height: 24px; stroke-width: 3px; }

/* reCAPTCHA (Control via JS) */
.grecaptcha-badge { 
    width: 70px !important;
    overflow: hidden !important;
    transition: opacity 0.3s ease, visibility 0.3s ease !important;
    
    left: 0 !important;
    right: auto !important;
    bottom: 0 !important;
    z-index: 9999 !important;

    opacity: 0 !important;
    visibility: hidden !important;
    pointer-events: none !important;
}

.grecaptcha-badge.show {
    opacity: 1 !important;
    visibility: visible !important;
    pointer-events: auto !important;
}
.grecaptcha-badge.show:hover { width: 256px !important; }

/* ==========================================================================
   12. Mobile Responsive (SP Overrides)
   ========================================================================== */
@media screen and (max-width: 1024px) {
    
    /* Layout */
    main { padding-top: calc(var(--header-height-sp) + 20px); }
    .section, .section-primary, .section-secondary { padding: 40px 20px; }
    .section-headline { font-size: 2rem; margin-bottom: 20px; }
    .sub-text { font-size: 0.85rem; margin-bottom: 30px; }

    /* Header & Menu */
    .header { padding: 0 20px; height: var(--header-height-sp); }
    .header-logo img { width: 100px; }

    .hamburger {
        display: block; position: fixed; z-index: 1100;
        right: 20px; top: 18px; width: 30px; height: 24px; cursor: pointer;
        -webkit-tap-highlight-color: transparent;
    }
    .hamburger span {
        display: block; position: absolute; width: 100%; height: 2px;
        background: var(--color-text); border-radius: 2px;
        transition: all 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    }
    .hamburger span:nth-child(1) { top: 0; }
    .hamburger span:nth-child(2) { top: 50%; transform: translateY(-50%); }
    .hamburger span:nth-child(3) { bottom: 0; }
    .hamburger.active span:nth-child(1) { top: 50%; transform: translateY(-50%) rotate(45deg); background: #fff; }
    .hamburger.active span:nth-child(2) { opacity: 0; }
    .hamburger.active span:nth-child(3) { bottom: 50%; transform: translateY(50%) rotate(-45deg); background: #fff; }

    .header-nav {
        position: fixed; top: 0; right: 0; width: 100%; height: 100dvh;
        background: rgba(20, 20, 20, 0.98);
        display: flex; justify-content: center; align-items: center;
        opacity: 0; visibility: hidden; transition: opacity 0.3s ease, visibility 0.3s ease;
        z-index: 1050; backdrop-filter: blur(5px);
    }
    .header-nav.open { opacity: 1; visibility: visible; }
    .header-navlist { flex-direction: column; gap: 25px; text-align: center; width: 100%; max-height: 80vh; overflow-y: auto; padding: 20px 0; }
    .header-navitem > a { font-size: 1.3rem; color: #fff; padding: 5px 20px; }
    .header-navitem > a:hover { color: var(--color-accent); }
    .header-navitem > a.cta-button { background-color: #fff; color: #333; margin-top: 15px; padding: 12px 50px; }

    /* Top Section */
    .top { padding: 0 5%; min-height: 50vh; align-items: center; text-align: center; }
    .text { font-size: 8vw; margin: 5px 0; width: 100%; white-space: nowrap; }

/* Floating Elements (SP: Right for Button, Left for Recaptcha) */
    .pagetop {
        display: flex !important;
        left: auto !important;
        right: 15px !important;
        /* セーフエリアを考慮した位置に配置 */
        bottom: calc(15px + env(safe-area-inset-bottom)) !important;
        pointer-events: auto !important;
        /* ここでは非表示状態を維持（activeクラスで表示させるため） */
    }
    .pagetop.active { 
        /* 表示を強制する */
        opacity: 1 !important;
        visibility: visible !important;
        /* 出現位置もセーフエリア考慮 */
        bottom: calc(25px + env(safe-area-inset-bottom)) !important; 
    }
    
    .grecaptcha-badge { 
        /* 幅制限を解除してアイコンが見えるようにする */
        width: auto !important; 
        overflow: visible !important;
        transition: all 0.3s ease !important;
        left: 0 !important;
        right: auto !important;
        /* セーフエリア考慮（必要に応じて微調整） */
        bottom: calc(0px + env(safe-area-inset-bottom)) !important;
        z-index: 9999 !important;
    }

    /* Grids & Others */
    .past-container, .goods-container, .comic-container, .nft-container { grid-template-columns: repeat(2, 1fr); gap: 15px; padding: 0; }
    .about-card, .about-card.reverse { flex-direction: column; padding: 30px 20px; text-align: center; gap: 20px; }
    .about-card-img img { width: 100%; max-width: 280px; height: 280px; }
    .about-subtitle { display: block; margin: 5px 0 0; margin-left: 0; }
    .form-container { padding: 25px 20px; background: transparent; box-shadow: none; }
    .form-input, .form-textarea, .form-select { font-size: 16px; }
    .footer { padding: 30px 20px; margin-top: 0; }
    .footer-links-img { max-width: 90px; }
}

@media screen and (min-width: 1025px) {
    .hamburger { display: none; }
}

/* ==========================================================================
   13. Loading Spinner (For YouTube & Dynamic Content)
   ========================================================================== */
.loading-spinner {
    width: 40px;
    height: 40px;
    margin: 50px auto;
    border: 4px solid rgba(0, 123, 255, 0.1);
    border-left-color: var(--color-accent); /* 水色のアクセント */
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}