/* =========================================
   Base CSS
   ========================================= */
:root {
    --primary: #FF6D00;
    --primary-light: #FFF8E1;
    --accent: #0056b3;
    --text-main: #111111;
    --text-sub: #444444;
    --bg-body: #ffffff;
    --font-jp: 'Noto Sans JP', sans-serif;
    --font-en: 'Oswald', sans-serif;
}

html {
    scroll-behavior: smooth;
}

/* モーダル表示中のスクロール禁止 */
body.modal-open {
    overflow: hidden !important;
    position: fixed;
    width: 100%;
    left: 0;
    right: 0;
    transition: none !important;
}

/* 基本設定 */
body {
    font-family: var(--font-jp);
    background-color: var(--bg-body);
    color: var(--text-main);
    line-height: 1.8;
    overflow-x: hidden;
    background-image: radial-gradient(#e5e5e5 1px, transparent 1px);
    background-size: 20px 20px;
    margin: 0;
    padding: 0;
    padding-top: clamp(60px, 10vw, 80px);
    /* ヘッダーの高さ分 */
}

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

a {
    text-decoration: none;
    transition: 0.3s;
    color: inherit;
}

ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 15px;
    position: relative;
    z-index: 2;
}

section {
    padding: 100px 0;
    position: relative;
    overflow: hidden;
}

/* 見出しデザイン */
.section-title {
    font-size: clamp(1.8rem, 5vw, 4rem);
    font-weight: 900;
    text-align: center;
    margin-bottom: clamp(30px, 6vw, 70px);
    font-family: var(--font-en);
    color: var(--text-main);
    text-transform: uppercase;
    position: relative;
    letter-spacing: 0.05em;
    transform: skewX(-5deg);
    word-break: break-word;
}

.section-title span {
    display: block;
    font-size: 1.2rem;
    font-family: var(--font-jp);
    color: var(--primary);
    margin-bottom: 5px;
    letter-spacing: 0.2em;
    font-weight: 700;
}

.section-title::after {
    content: '';
    display: block;
    width: 100px;
    height: 8px;
    background: var(--text-main);
    margin: 10px auto 0;
    transform: skewX(20deg);
}

/* ボタンデザイン */
.btn-main {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: var(--primary);
    color: #fff;
    padding: 18px 50px;
    font-size: 1.3rem;
    font-weight: 700;
    font-family: var(--font-en);
    letter-spacing: 0.05em;
    border: 2px solid #000;
    box-shadow: 6px 6px 0 #000;
    transition: all 0.2s ease;
    border-radius: 0;
    cursor: pointer;
    text-align: center;
}

.btn-main:hover {
    transform: translate(4px, 4px);
    box-shadow: 2px 2px 0 #000;
    background: #ff8f00;
}

.btn-secondary {
    display: inline-block;
    padding: 10px 30px;
    border: 2px solid #000;
    background: #fff;
    color: #000;
    font-weight: bold;
    cursor: pointer;
    transition: 0.3s;
}

.btn-secondary:hover {
    background: #000;
    color: #fff;
}

/* Header */
header {
    background: rgba(255, 255, 255, 0.95);
    border-bottom: 3px solid #000;
    height: clamp(60px, 10vw, 80px);
    display: flex;
    align-items: center;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 99999;
}

.header-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 10px;
}

.logo-area {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-shrink: 0;
}

.logo-img {
    height: clamp(20px, 5vw, 28px);
    width: auto;
}

.project-name {
    font-family: var(--font-en);
    font-size: clamp(0.7rem, 2.2vw, 1.2rem);
    line-height: 1.1;
    color: var(--text-main);
    border-left: 2px solid #000;
    padding-left: 8px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-weight: 700;
}

.project-name span {
    color: var(--primary);
    font-size: 0.8em;
    display: block;
}

/* PC Nav */
.header-nav {
    margin-left: auto;
    margin-right: 20px;
}

.header-nav ul {
    display: flex;
    gap: 20px;
    align-items: center;
}

.header-nav a {
    font-size: clamp(0.75rem, 1.2vw, 0.95rem);
    font-weight: 900;
    color: var(--text-main);
    position: relative;
    font-family: var(--font-jp);
    white-space: nowrap;
}

.header-nav a:hover {
    color: var(--primary);
}

/* Hamburger Menu Button */
.menu-toggle {
    display: block;
    font-size: 1.8rem;
    cursor: pointer;
    color: #000;
    border: none;
    background: none;
    z-index: 10001;
}

/* Mobile Menu Overlay */
.mobile-menu-overlay {
    position: fixed;
    top: clamp(60px, 10vw, 80px);
    left: 0;
    width: 100%;
    height: calc(100vh - clamp(60px, 10vw, 80px));
    background: #fff;
    z-index: 10000;
    display: none;
    flex-direction: column;
    padding: 20px;
    border-top: 3px solid #000;
    overflow-y: auto;
}

.mobile-menu-overlay.open {
    display: flex;
}

.mobile-menu-overlay ul {
    list-style: none;
    padding: 0;
    text-align: center;
}

.mobile-menu-overlay li {
    margin: 15px 0;
    border-bottom: 1px dashed #eee;
    padding-bottom: 10px;
}

.mobile-menu-overlay a {
    font-size: 1.2rem;
    font-weight: 900;
    color: #000;
    font-family: var(--font-jp);
}

/* PCでは非表示にするクラス */
.sp-only {
    display: none;
}

@media (max-width: 900px) {
    .header-nav {
        display: none;
    }
}

/* アニメーション設定 */
.anim-target {
    opacity: 0;
}

.anim-zoom-in.visible {
    animation: zoomIn 0.8s cubic-bezier(0.25, 1, 0.5, 1) forwards;
}

@keyframes zoomIn {
    0% {
        transform: scale(0.5);
        opacity: 0;
    }

    100% {
        transform: scale(1);
        opacity: 1;
    }
}

.anim-slide-left.visible {
    animation: slideLeft 0.8s ease-out forwards;
}

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

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

.anim-slide-right.visible {
    animation: slideRight 0.8s ease-out forwards;
}

@keyframes slideRight {
    0% {
        transform: translateX(100px);
        opacity: 0;
    }

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

.anim-pop.visible {
    animation: popIn 0.6s cubic-bezier(0.68, -0.55, 0.265, 1.55) forwards;
}

@keyframes popIn {
    0% {
        transform: scale(0.8) translateY(20px);
        opacity: 0;
    }

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

.anim-flip.visible {
    animation: flipInX 0.8s ease-out forwards;
}

@keyframes flipInX {
    0% {
        transform: perspective(400px) rotateX(90deg);
        opacity: 0;
    }

    100% {
        transform: perspective(400px) rotateX(0deg);
        opacity: 1;
    }
}

/* テキストハイライト（マーカー風） */
.text-highlight {
    background: linear-gradient(transparent 60%, #ffeb3b 60%);
    /* 黄色のマーカー */
    font-weight: bold;
    padding: 0 2px;
    display: inline;
}

/* Tag */
.tag {
    display: inline-block;
    background: #000;
    color: #fff;
    padding: 3px 10px;
    font-size: 0.7rem;
    margin-right: 5px;
    font-weight: bold;
    transform: skewX(-10deg);
}

/* モーダル・スライダー・アコーディオン */
.modal-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    z-index: 100000;
}

.modal-overlay[style*="display: flex"] {
    display: flex !important;
    align-items: center;
    justify-content: center;
}

/* プレビューモーダルとspec-modalのz-indexを確実に適用 */
#preview-modal,
#spec-modal {
    z-index: 999999 !important;
}

/* spec-modalのコンテンツがヘッダーの下に隠れないように調整 */
#spec-modal .modal-content {
    margin-top: clamp(70px, 11vw, 90px);
    max-height: calc(90vh - clamp(70px, 11vw, 90px));
}

.modal-content {
    background: #fff;
    padding: 30px;
    max-width: 800px;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
    position: relative;
    border: 4px solid #000;
}

.modal-close {
    position: absolute;
    top: 10px;
    right: 15px;
    font-size: 2rem;
    cursor: pointer;
    color: #000;
    line-height: 1;
}

.preview-modal-content {
    background: transparent;
    border: none;
    padding: 0;
    text-align: center;
    pointer-events: none;
    position: relative;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.preview-modal-content img {
    max-height: 85vh;
    max-width: 90%;
    border: 4px solid #fff;
    pointer-events: auto;
}

.preview-close-btn {
    position: absolute;
    top: 20px;
    right: 20px;
    color: #fff;
    font-size: 3rem;
    cursor: pointer;
    pointer-events: auto;
    z-index: 10001;
}

.preview-nav-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    color: #fff;
    font-size: 3rem;
    cursor: pointer;
    pointer-events: auto;
    z-index: 10001;
    background: rgba(0, 0, 0, 0.3);
    padding: 10px;
    border-radius: 50%;
}

.preview-nav-btn.prev {
    left: 20px;
}

.preview-nav-btn.next {
    right: 20px;
}

.slider-container {
    position: relative;
    overflow: hidden;
    border-bottom: 2px solid #eee;
    margin-bottom: 15px;
}

.slider-wrapper {
    display: flex;
    transition: transform 0.3s ease;
}

.slider-slide {
    min-width: 100%;
}

.slider-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0, 0, 0, 0.5);
    color: #fff;
    border: none;
    width: 30px;
    height: 30px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}

.slider-btn.prev {
    left: 5px;
}

.slider-btn.next {
    right: 5px;
}

.accordion-content {
    display: none;
    margin-top: 20px;
    border-top: 2px solid #000;
    padding-top: 20px;
}

.accordion-content.open {
    display: block;
}

.plan-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.9rem;
    min-width: 700px;
}

.plan-table th,
.plan-table td {
    border: 1px solid #ccc;
    padding: 10px;
    text-align: center;
    vertical-align: middle;
}

.plan-table th {
    background: #f0f0f0;
    font-weight: bold;
    color: #000;
}

.table-scroll {
    overflow-x: auto;
}

.check-mark {
    color: var(--primary);
    font-size: 1.2rem;
}

.spec-table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 20px;
    table-layout: fixed; /* ★追加：列の幅を均等にする設定 */
}

.spec-table th,
.spec-table td {
    border: 1px solid #ddd;
    padding: 8px;
    text-align: center; /* ★変更：数値を見やすくするため中央揃えに変更 */
    vertical-align: middle; /* ★追加：上下も中央揃え */
}

.spec-table th {
    background: #f9f9f9;
    /* width: 30%;  <-- ★削除：この指定を消すことで均等になります */
    font-weight: bold;
}

/* 動画フレーム */
.video-responsive-wrapper {
    width: 100%;
    max-width: 800px;
    margin: 40px auto 0;
    position: relative;
    aspect-ratio: 16 / 9;
    overflow: hidden;
    background: #000;
    border: 3px solid #000;
    box-shadow: 8px 8px 0 rgba(0, 0, 0, 0.2);
    box-sizing: border-box;
}

.video-responsive-wrapper iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: 0;
}

.video-responsive-wrapper video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: contain;
    /* 動画全体を表示（余白は黒） */
    background: #000;
}

/* HERO Section */
.hero {
    min-height: 600px;
    height: auto;
    padding: 60px 0;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    /* 黒い影を薄くしました（0.3→0.1, 0.6→0.3） */
    background:
        linear-gradient(rgba(0, 0, 0, 0.1), rgba(0, 0, 0, 0.3)),
        url('/media/nft-manga-africa-no1/assets/z3_main-Visual_resize.jpg') center/cover no-repeat;
    animation: heroBgZoom 20s ease-out forwards;
}

.hero-content {
    max-width: 850px;
    width: 95%;
    position: relative;
    z-index: 2;
    border: 4px solid #000;
    padding: clamp(20px, 5vw, 30px);

    /* 背景を半透明（0.7）にし、すりガラス効果（blur）を追加 */
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    /* Safari用 */

    box-shadow: 10px 10px 0 var(--primary);
    transform: rotate(-1deg);
}

.hero-tag {
    background: #000;
    color: #fff;
    padding: 4px 15px;
    font-weight: 700;
    display: inline-block;
    margin-bottom: 20px;
    font-family: var(--font-en);
    letter-spacing: 0.1em;
    transform: skewX(-10deg);
    font-size: 0.9rem;
}

.hero-header-layout {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 40px;
    margin-bottom: 20px;
    padding-bottom: 20px;
    border-bottom: 1px dashed #ccc;
}

.hero-artist-area {
    display: flex;
    flex-direction: column;
    align-items: center;
    flex: 0 0 auto;
}

.hero-artist-img {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    border: 3px solid #000;
    margin-bottom: 10px;
}

.hero-artist-name {
    font-family: var(--font-en);
    font-size: 1.2rem;
    font-weight: 900;
    line-height: 1.1;
}

.hero-artist-jp {
    font-size: 0.6rem;
    font-weight: normal;
    color: #555;
}

.hero-title-area {
    text-align: center;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.hero-title {
    font-size: clamp(2.5rem, 5vw, 4rem);
    font-weight: 900;
    line-height: 1;
    margin-bottom: 0;
    color: var(--text-main);
    font-family: var(--font-en);
    text-transform: uppercase;
}

.hero-title-jp {
    font-size: 0.7rem;
    font-weight: 700;
    color: var(--text-main);
    margin-bottom: 5px;
    text-align: center;
}

.hero-subtitle {
    font-size: clamp(1.1rem, 2.5vw, 1.5rem);
    font-weight: 700;
    color: var(--primary);
    line-height: 1.3;
}

.hero-subtitle-jp {
    font-size: 0.5em;
    display: block;
    color: var(--text-sub);
    font-weight: normal;
}

@media (max-width: 600px) {
    .hero-header-layout {
        flex-direction: column;
        gap: 20px;
        text-align: center;
    }
}

.hero-text {
    font-weight: bold;
    margin-bottom: 15px;
    font-size: 0.95rem;
    line-height: 1.6;
}

.hero-message {
    font-size: 0.95rem;
    font-weight: bold;
    margin-bottom: 20px;
    line-height: 1.6;
    background: #f9f9f9;
    padding: 15px;
    border-radius: 10px;
}

.hero-message span {
    font-size: 1.1rem;
    color: var(--primary);
}

/* Intro Grid */
.intro-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.intro-img {
    border: 3px solid #000;
    box-shadow: 10px 10px 0 var(--accent);
    overflow: hidden;
}

.intro-text h3 {
    font-size: clamp(1.5rem, 4vw, 2rem);
    margin-bottom: 25px;
    color: #000;
    font-weight: 900;
    border-left: 8px solid var(--primary);
    padding-left: 20px;
}

.comic-balloon {
    background: #fff;
    border: 3px solid #000;
    padding: 40px;
    border-radius: 20px;
    position: relative;
    margin-top: 50px;
    box-shadow: 8px 8px 0 rgba(0, 0, 0, 0.1);
}

.comic-balloon::before {
    content: '';
    position: absolute;
    top: -20px;
    left: 50px;
    border-width: 0 20px 20px 20px;
    border-style: solid;
    border-color: transparent transparent #000 transparent;
}

.comic-balloon::after {
    content: '';
    position: absolute;
    top: -14px;
    left: 53px;
    border-width: 0 17px 17px 17px;
    border-style: solid;
    border-color: transparent transparent #fff transparent;
}

@media (max-width: 768px) {
    .intro-grid {
        grid-template-columns: 1fr;
    }
}

/* Preview Grid */
.preview-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
}

.preview-item img {
    border: 2px solid #000;
    transition: 0.3s;
    width: 100%;
}

.preview-item:hover img {
    transform: scale(1.02);
    box-shadow: 5px 5px 0 rgba(0, 0, 0, 0.2);
}

/* =========================================
   Plans Style (Updated for Turn 5)
   ========================================= */
.plans-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
}

@media (max-width: 768px) {
    .plans-grid {
        grid-template-columns: 1fr;
    }
}

/* カード本体：余白を調整し、overflow設定を削除（ボタンの影が切れないように） */
.plan-card {
    background: #fff;
    border: 3px solid #ddd;
    padding: 40px 20px;
    /* 左右の余白を少し狭めてボタンを収める */
    text-align: center;
    border-radius: 16px;
    transition: transform 0.3s, box-shadow 0.3s;
    position: relative;
    /* overflow: hidden;  <-- 削除（影が切れるのを防ぐため） */
    scroll-margin-top: 120px;
}

/* ホバー時の動き */
.plan-card:hover {
    transform: translateY(-5px);
}

/* バッジ：位置を枠線に合わせて微調整 */
.plan-badge {
    color: #fff;
    padding: 8px 25px;
    font-size: 1.1rem;
    font-weight: bold;
    display: inline-block;
    position: absolute;
    top: -3px;
    /* 枠線の上に被せる */
    left: -3px;
    border-radius: 13px 0 10px 0;
    /* カードの角丸に合わせる */
    font-family: var(--font-en);
    letter-spacing: 1px;
    z-index: 10;
}

/* 画像 */
.plan-img {
    width: 100%;
    max-width: 260px;
    height: 260px;
    object-fit: cover;
    margin: 30px auto 20px;
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.15);
    border: 1px solid #eee;
    background: #f4f4f4;
}

/* テキスト */
.plan-name {
    font-size: 1.6rem;
    font-weight: 900;
    margin-bottom: 10px;
    color: var(--text-main);
}

.plan-price {
    font-size: 2rem;
    font-weight: bold;
    font-family: var(--font-en);
    margin-bottom: 5px;
    letter-spacing: 0.05em;
}

.plan-goal {
    display: inline-block;
    background: #f4f4f4;
    padding: 5px 15px;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: bold;
    color: #666;
    margin-bottom: 25px;
}

.plan-desc {
    text-align: center;
    font-size: 0.95rem;
    line-height: 1.8;
    margin-bottom: 25px;
    color: #444;
}

/* 配色設定 */
/* PLAN 1: オレンジ */
.plan-orange {
    border-color: #FF9800;
    box-shadow: 0 5px 15px rgba(255, 152, 0, 0.15);
}

.plan-orange .plan-badge {
    background: #FF9800;
}

.plan-orange .plan-price {
    color: #E65100;
}

.plan-orange:hover {
    box-shadow: 0 8px 25px rgba(255, 152, 0, 0.3);
}

/* PLAN 2: グリーン */
.plan-green {
    border-color: #4CAF50;
    box-shadow: 0 5px 15px rgba(76, 175, 80, 0.15);
}

.plan-green .plan-badge {
    background: #4CAF50;
}

.plan-green .plan-price {
    color: #2E7D32;
}

.plan-green:hover {
    box-shadow: 0 8px 25px rgba(76, 175, 80, 0.3);
}


/* リターンアコーディオン */
.plan-return-wrapper {
    margin-top: 0;
    border-top: 2px dashed #eee;
    padding-top: 20px;
}

.plan-return-toggle {
    background: #f9f9f9;
    border: 1px solid #eee;
    width: 100%;
    text-align: center;
    font-weight: bold;
    color: var(--text-main);
    cursor: pointer;
    padding: 12px;
    font-size: 0.95rem;
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: all 0.3s;
}

.plan-return-toggle:hover {
    background: #eee;
}

.plan-return-toggle i {
    transition: transform 0.3s;
}

.plan-return-toggle.active i {
    transform: rotate(180deg);
}

.plan-return-content {
    display: none;
    margin-top: 15px;
    text-align: left;
    background: #fff;
    padding: 15px;
    border-radius: 8px;
    border: 2px solid #f0f0f0;
    font-size: 0.9rem;
}

.plan-return-content.open {
    display: block;
    animation: fadeIn 0.3s ease;
}

.plan-return-content ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.plan-return-content li {
    margin-bottom: 10px;
    padding-left: 1.4em;
    position: relative;
    line-height: 1.6;
    font-weight: bold;
    color: #333;
}

.plan-return-content li::before {
    content: '✔';
    color: var(--primary);
    position: absolute;
    left: 0;
    font-weight: 900;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(-5px);
    }

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

/* Countdown */
.countdown-area {
    text-align: center;
    background: #000;
    color: #fff;
    padding: 20px;
    margin-bottom: 50px;
    border: 4px solid var(--primary);
}

.countdown-timer {
    font-size: clamp(1.5rem, 4vw, 2.5rem);
    font-weight: 900;
    font-family: var(--font-en);
    color: var(--primary);
    margin-top: 10px;
}

/* Project Info */
.project-info-box {
    background: #fff;
    border: 3px solid #000;
    padding: 40px;
    margin-top: 80px;
    text-align: center;
    background-image:
        linear-gradient(rgba(255, 255, 255, 0.85), rgba(255, 255, 255, 0.85)),
        url('/media/nft-manga-africa-no1/assets/africa_lp_visual.jpg');
    background-size: cover;
    background-position: center;
    background-blend-mode: normal;
    background-color: rgba(255, 255, 255, 0.9);
}

.project-info-title {
    font-size: 1.8rem;
    font-weight: 900;
    margin-bottom: 20px;
    font-family: var(--font-en);
}

/* Flow Style */
.flow-container {
    max-width: 900px;
    margin: 0 auto;
}

.flow-card {
    display: flex;
    gap: 30px;
    margin-bottom: 30px;
    background: #fff;
    padding: 30px;
    border: 2px solid #000;
    box-shadow: 8px 8px 0 #000;
    align-items: flex-start;
}

.flow-num {
    font-size: 3rem;
    font-weight: 900;
    color: #000;
    font-family: var(--font-en);
    line-height: 1;
    flex-shrink: 0;
    text-shadow: 3px 3px 0 var(--primary);
}

.flow-content h4 {
    font-size: 1.4rem;
    margin: 0 0 10px;
    font-weight: 900;
    border-bottom: 2px solid var(--primary);
    display: inline-block;
}

.flow-content p {
    font-size: 1rem;
    color: var(--text-sub);
    margin-bottom: 10px;
}

.flow-note {
    font-size: 0.8rem;
    color: #666;
    margin-top: 10px;
    background: #f0f0f0;
    padding: 10px;
}

/* Roadmap Style */
.roadmap-container {
    max-width: 800px;
    margin: 0 auto;
    position: relative;
    padding-left: 30px;
}

.roadmap-container::before {
    content: '';
    position: absolute;
    left: 19px;
    top: 0;
    bottom: 0;
    width: 6px;
    background: #e0e0e0;
    border-radius: 3px;
}

.roadmap-item {
    display: flex;
    margin-bottom: 50px;
    position: relative;
}

.roadmap-point {
    width: 50px;
    height: 50px;
    background: var(--primary);
    border-radius: 50%;
    border: 5px solid #fff;
    box-shadow: 0 0 0 3px #000;
    position: absolute;
    left: -36px;
    top: 0;
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-weight: 900;
    font-size: 1.2rem;
    font-family: var(--font-en);
}

.roadmap-content {
    margin-left: 40px;
    background: #fff;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 8px 8px 0 rgba(0, 0, 0, 0.1);
    width: 100%;
    border: 2px solid #000;
}

.roadmap-date {
    font-weight: 900;
    color: var(--primary);
    margin-bottom: 5px;
    font-family: var(--font-en);
    font-size: 1.2rem;
}

.roadmap-title {
    font-size: 1.4rem;
    font-weight: 900;
    margin-bottom: 10px;
    border-bottom: 2px solid #eee;
    padding-bottom: 5px;
}

/* Sponsor Style */
.sponsor-section {
    background: #111;
    color: #fff;
    text-align: center;
}

.sponsor-section .section-title {
    color: #fff;
}

.sponsor-section .section-title::after {
    background: #fff;
}

.sponsor-btn {
    background: #fff;
    color: #000;
    padding: 20px 60px;
    font-weight: 900;
    display: inline-block;
    margin-top: 30px;
    font-size: 1.2rem;
    border: 2px solid #fff;
    transition: 0.3s;
}

.sponsor-btn:hover {
    background: #000;
    color: #fff;
}

/* SNS Section */
.sns-section {
    background: #f0f8ff;
    text-align: center;
    padding: 80px 0;
}

.sns-icons {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 40px;
    flex-wrap: wrap;
}

.sns-icon-link {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 1.8rem;
    transition: transform 0.2s;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.2);
}

.sns-icon-link:hover {
    transform: scale(1.1);
}

.sns-x {
    background: #000;
}

.sns-line {
    background: #06C755;
}

.sns-discord {
    background: #5865F2;
}

.sns-mail {
    background: #1E90FF;
}

.sns-tiktok {
    background: #000;
}

.sns-youtube {
    background: #FF0000;
}

/* Floating CTA */
.floating-cta {
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 9900;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.cta-btn {
    display: block;
    padding: 12px 15px;
    border: 2px solid #000;
    font-weight: 900;
    color: #fff;
    text-align: center;
    box-shadow: 4px 4px 0 #000;
    font-size: 0.95rem;
    transition: 0.2s;
}

.cta-btn:hover {
    transform: translate(2px, 2px);
    box-shadow: 2px 2px 0 #000;
}

.cta-btn.plans {
    background: var(--primary);
}

.cta-btn.goods {
    background: var(--accent);
}

.cta-btn.camp {
    background: #e63b2e;
    border-color: #b02c22;
}

/* Footer */
footer {
    background: #000;
    color: #888;
    text-align: center;
    padding: 40px;
    font-size: 0.8rem;
    font-family: var(--font-en);
}

/* =========================================
   CAMPFIRE Section
   ========================================= */
.campfire-box {
    background: #fff;
    border: 3px solid #e63b2e;
    /* CAMPFIRE Red */
    border-radius: 10px;
    padding: 40px;
    box-shadow: 10px 10px 0 rgba(230, 59, 46, 0.2);
    text-align: center;
}

.campfire-img-area {
    margin-bottom: 30px;
    transition: transform 0.3s;
}

.campfire-img-area:hover {
    transform: scale(1.02);
}

.campfire-img {
    width: 100%;
    max-width: 650px;
    /* 450pxから650pxへ拡大 */
    margin: 0 auto;
    border: 2px solid #000;
    box-shadow: 5px 5px 0 rgba(0, 0, 0, 0.2);
}

.campfire-head {
    font-size: clamp(1.2rem, 4vw, 1.6rem);
    font-weight: 900;
    margin-bottom: 20px;
    color: #e63b2e;
    line-height: 1.4;
    border-bottom: 2px dashed #e63b2e;
    display: inline-block;
    padding-bottom: 10px;
}

.campfire-desc {
    font-weight: bold;
    margin-bottom: 30px;
    line-height: 1.8;
    font-size: 1rem;
}

.btn-camp {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    background: #e63b2e;
    color: #fff;
    padding: 15px 40px;
    font-size: 1.1rem;
    font-weight: 900;
    font-family: var(--font-en);
    border-radius: 50px;
    box-shadow: 0 5px 15px rgba(230, 59, 46, 0.4);
    transition: all 0.3s ease;
    text-decoration: none;
}

.btn-camp:hover {
    background: #c42b1f;
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(230, 59, 46, 0.6);
    color: #fff;
}

/* スマホ対応 */
@media (max-width: 600px) {
    .campfire-box {
        padding: 20px;
    }

    .campfire-desc {
        font-size: 0.9rem;
        text-align: left;
    }

    .btn-camp {
        width: 100%;
        padding: 15px 20px;
        font-size: 1rem;
        box-sizing: border-box;
    }

    /* スマホでのCTA調整 */
    .floating-cta {
        bottom: 15px;
        right: 10px;
        gap: 8px;
    }

    .cta-btn {
        padding: 10px 12px;
        font-size: 0.8rem;
    }
}

/* =========================================
   Project Goals Section (Missing Styles)
   ========================================= */

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

.goal-card-target {
    background: #fff;
    border: 3px solid #000;
    padding: 25px;
    position: relative;
    box-shadow: 6px 6px 0 var(--primary);
    display: flex;
    flex-direction: column;
    height: 100%;
    box-sizing: border-box;
    text-align: center;
    /* テキストを中央揃え */
}

.goal-icon {
    font-size: 2.5rem;
    margin-bottom: 5px !important;
    /* 余白調整済み */
    color: var(--text-main);
}

.goal-title {
    font-size: 1.3rem;
    font-weight: 900;
    margin-bottom: 10px;
    margin-top: 0 !important;
    /* 余白調整済み */
    padding-top: 0 !important;
    /* 余白調整済み */
    border-bottom: 2px solid var(--primary);
    display: inline-block;
    align-self: center;
}

.goal-amount {
    font-size: 1.4rem;
    font-weight: 900;
    color: var(--primary);
    font-family: var(--font-en);
    display: block;
    margin-bottom: 15px;
}

.goal-desc {
    font-weight: bold;
    margin-bottom: 15px;
    font-size: 0.95rem;
    text-align: center;
}

.goal-link {
    background: #000;
    color: #fff;
    padding: 12px 10px;
    font-size: 0.9rem;
    font-weight: bold;
    display: block;
    margin-top: auto;
    text-decoration: none;
    transition: all 0.3s ease;
    cursor: pointer;
}

.goal-link:hover {
    background: var(--primary);
    color: #fff;
    transform: translateY(-3px);
    box-shadow: 0 5px 10px rgba(0, 0, 0, 0.2);
}

@media (max-width: 900px) {
    .goal-card-target {
        margin-bottom: 10px;
    }
}

/* =========================================
   Mobile Optimization (Add to the end of style.css)
   ========================================= */
@media (max-width: 600px) {

    /* --- Hero Section 修正 --- */
    .hero-content {
        width: 85%;
        padding: 20px 15px;
    }

    .hero-title {
        font-size: 1.8rem !important;
        margin-bottom: 5px;
    }

    .hero-subtitle {
        font-size: 1rem;
        margin-bottom: 15px;
    }

    .hero-subtitle-jp {
        font-size: 0.7rem;
    }

    .hero-text {
        font-size: 0.85rem;
        line-height: 1.6;
        text-align: center;
    }

    .hero-message {
        font-size: 0.85rem;
        padding: 15px;
    }

    .hero-message span {
        font-size: 1rem;
    }

    /* --- Button & CTA 修正 --- */
    .btn-main {
        padding: 12px 20px;
        font-size: 1rem;
        width: 100%;
        box-sizing: border-box;
        box-shadow: 4px 4px 0 #000;
    }

    .btn-main:hover {
        transform: translate(2px, 2px);
        box-shadow: 2px 2px 0 #000;
    }

    /* --- General Typography 修正 --- */
    .section-title {
        font-size: 1.8rem;
        margin-bottom: 30px;
    }

    .section-title span {
        font-size: 0.9rem;
    }

    .intro-text h3,
    .project-info-title {
        font-size: 1.3rem;
        border-left-width: 5px;
        padding-left: 15px;
    }

    .comic-balloon {
        padding: 20px;
    }

    .comic-balloon h4 {
        font-size: 1rem;
    }

    .comic-balloon p {
        font-size: 0.85rem;
        line-height: 1.5;
    }

    /* --- Project Info (ABOUT) 修正 --- */
    #about-project .project-info-box p {
        font-size: 0.85rem;
        line-height: 1.6 !important;
    }

    /* スマホの時だけ表示（改行）させる */
    .sp-only {
        display: block;
    }

    /* --- 長文を1行に収めるための自動縮小設定 --- */
    .fit-text-sp {
        white-space: nowrap;
        /* 自動改行（折り返し）を禁止 */
        font-size: 3.2vw !important;
        /* 画面幅に合わせて文字サイズを調整 */
        width: 100%;
        box-sizing: border-box;
        padding: 0 2px;
    }

    /* 特に文字数が多い注釈部分（※〜）はさらに小さくして収める */
    .fit-text-sp span {
        font-size: 2.4vw !important;
        display: inline-block;
    }

}

/* =========================================
   Plan Return Details (Updated)
   ========================================= */

/* アコーディオンの中身のコンテナ */
.plan-return-content {
    display: none;
    margin-top: 15px;
    text-align: left;
    background: #fff;
    padding: 20px;
    border-radius: 8px;
    border: 2px solid #f0f0f0;
    font-size: 0.9rem;
}

.plan-return-content.open {
    display: block;
    animation: fadeIn 0.3s ease;
}

/* 詳細リストのグループ */
.return-detail-group {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

/* 各リターン項目 */
.return-item {
    margin: 0;
    padding-bottom: 15px;
    border-bottom: 1px dashed #ddd;
}

.return-item:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

/* リターン項目タイトル */
.return-item dt {
    font-weight: 900;
    color: var(--text-main);
    font-size: 1rem;
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.return-item dt i {
    color: var(--primary);
    font-size: 1.1rem;
}

/* リターン項目説明文 */
.return-item dd {
    margin: 0;
    padding-left: 1.6em;
    /* アイコン分インデント */
    color: #444;
    line-height: 1.6;
    font-size: 0.9rem;
}

/* 注釈テキスト */
.return-note {
    display: block;
    margin-top: 5px;
    font-size: 0.8rem;
    color: #888;
}

/* テキストリンク */
.text-link {
    color: var(--accent);
    text-decoration: underline;
    font-size: 0.85rem;
    transition: opacity 0.2s;
}

.text-link:hover {
    opacity: 0.7;
}

/* スマホ調整 */
@media (max-width: 600px) {
    .plan-return-content {
        padding: 15px;
    }

    .return-item dt {
        font-size: 0.95rem;
    }

    .return-item dd {
        padding-left: 0;
        /* スマホではインデント解除してスペース確保 */
        font-size: 0.85rem;
    }
}

/* =========================================
   Goods Section Styles
   ========================================= */

/* グッズグリッド */
.goods-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    margin-top: 30px;
}

@media (max-width: 900px) {
    .goods-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }
}

/* スマホ対応 */
@media (max-width: 600px) {
    .goods-grid {
        grid-template-columns: 1fr; /* ★ここを修正：強制的に1列にする */
        gap: 20px;
    }

    .goods-name {
        font-size: 1rem;
        min-height: 45px;
    }

    .goods-price {
        font-size: 1.3rem;
    }
}

/* グッズカード */
.goods-card {
    background: #fff;
    border: 3px solid #000;
    padding: 0;
    position: relative;
    box-shadow: 6px 6px 0 rgba(0, 0, 0, 0.2);
    display: flex;
    flex-direction: column;
    transition: all 0.3s ease;
    overflow: hidden;
}

.goods-card:hover {
    transform: translateY(-5px);
    box-shadow: 8px 8px 0 rgba(0, 0, 0, 0.3);
}

/* グッズバッジ */
.goods-badge {
    position: absolute;
    top: 15px;
    right: 15px;
    background: var(--primary);
    color: #fff;
    padding: 5px 15px;
    font-size: 0.75rem;
    font-weight: 900;
    z-index: 10;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    box-shadow: 2px 2px 0 #000;
}

/* グッズ画像エリア */
.goods-img-wrapper {
    width: 100%;
    aspect-ratio: 1 / 1;
    overflow: hidden;
    background: #f5f5f5;
    display: flex;
    align-items: center;
    justify-content: center;
}

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

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

/* グッズ画像スライダー */
.goods-img-slider {
    width: 100%;
    aspect-ratio: 1 / 1;
    position: relative;
    overflow: hidden;
    background: #f5f5f5;
}

.goods-slider-wrapper {
    display: flex;
    transition: transform 0.3s ease;
    height: 100%;
}

.goods-slide {
    min-width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.goods-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* スライダーボタン */
.goods-slider-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0, 0, 0, 0.5);
    color: #fff;
    border: none;
    width: 35px;
    height: 35px;
    cursor: pointer;
    font-size: 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10;
    transition: background 0.3s ease;
}

.goods-slider-btn:hover {
    background: rgba(0, 0, 0, 0.8);
}

.goods-slider-btn.prev {
    left: 10px;
}

.goods-slider-btn.next {
    right: 10px;
}

/* スライダードット */
.goods-slider-dots {
    position: absolute;
    bottom: 10px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 8px;
    z-index: 10;
}

.goods-slider-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.5);
    cursor: pointer;
    transition: background 0.3s ease;
}

.goods-slider-dot.active {
    background: #fff;
}


/* グッズ情報 */
.goods-name {
    font-size: 1.1rem;
    font-weight: 900;
    margin: 15px 15px 10px;
    min-height: 50px;
    line-height: 1.4;
    text-align: center; /* ★追加：グッズ名を中央揃え */
}

.goods-price {
    font-size: 1.5rem;
    font-weight: 900;
    color: var(--primary);
    font-family: var(--font-en);
    margin: 0 15px 15px;
    text-align: center; /* ★追加：価格を中央揃え */
}

/* グッズボタン */
.goods-card .btn-spec {
    background: #fff;
    border: 2px solid #000;
    color: #000;
    padding: 10px 20px;
    font-size: 0.9rem;
    font-weight: 900;
    cursor: pointer;
    transition: all 0.3s ease;
    margin: 0 15px 10px;
}

.goods-card .btn-spec:hover {
    background: #000;
    color: #fff;
}

.goods-card .btn-main {
    margin: 0 15px 15px;
    width: 240px;
    max-width: 90%;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
}

/* スマホ対応 */
@media (max-width: 600px) {
    .goods-grid {
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
        gap: 20px;
    }

    .goods-card .btn-main {
        width: calc(100% - 40px); /* スマホでは幅広に戻す */
        max-width: 100%;
    }

    .goods-name {
        font-size: 1rem;
        min-height: 45px;
    }

    .goods-price {
        font-size: 1.3rem;
    }
}

/* =========================================
   Refactored Inline Styles
   ========================================= */
.hero-title {
    font-size: clamp(2rem, 5vw, 3.5rem);
}

.hero-title-jp {
    text-align: center;
}

.hero-subtitle-jp {
    text-align: center;
}

.relative-z2 {
    position: relative;
    z-index: 2;
}

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

.text-left {
    text-align: left;
}

.mb-10 {
    margin-bottom: 10px;
}

.mb-15 {
    margin-bottom: 15px;
}

.mb-20 {
    margin-bottom: 20px;
}

.mb-30 {
    margin-bottom: 30px;
}

.mb-40 {
    margin-bottom: 40px;
}

.mt-8 {
    margin-top: 8px;
}

.mt-10 {
    margin-top: 10px;
}

.mt-20 {
    margin-top: 20px;
}

.mt-30 {
    margin-top: 30px;
}

.mt-40 {
    margin-top: 40px;
}

.pt-20 {
    padding-top: 20px;
}

.border-top-black {
    border-top: 2px solid #000;
}

.text-bold {
    font-weight: bold;
}

.fw-500 {
    font-weight: 500;
}

.fw-900 {
    font-weight: 900;
}

.text-normal {
    font-weight: normal;
}

.text-sub {
    color: var(--text-sub);
}

.text-primary {
    color: var(--primary);
}

.text-camp {
    color: #e63b2e;
}

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

.text-white {
    color: #fff;
}

.text-gray {
    color: #666;
}

.text-underline {
    text-decoration: underline;
}

.d-block {
    display: block;
}

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

.d-flex {
    display: flex;
}

.align-center {
    align-items: center;
}

.justify-center {
    justify-content: center;
}

.gap-30 {
    gap: 30px;
}

.flex-wrap {
    flex-wrap: wrap;
}

.w-100 {
    width: 100%;
}

.line-height-16 {
    line-height: 1.6;
}

.line-height-2 {
    line-height: 2;
}

.font-md {
    font-size: 1.1rem;
}

.font-sm {
    font-size: 0.9rem;
}

.font-xs {
    font-size: 0.8rem;
}

.font-xxs {
    font-size: 0.7rem;
}

.bg-primary-light {
    background: var(--primary-light);
}

.bg-pale-red {
    background: #fff5f5;
}

.bg-gray-light {
    background: #f9f9f9;
}

.border-bottom-black {
    border-bottom: 3px solid #000;
}

/* Specific Refactors */
.artist-img-wrapper {
    text-align: center;
}

.artist-img {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    border: 4px solid #000;
    box-shadow: 5px 5px 0 var(--primary);
}

.artist-name-en {
    font-size: 2rem;
    font-weight: 900;
    margin: 0;
    font-family: var(--font-en);
}

.artist-desc {
    max-width: 800px;
    margin: 0 auto;
    font-weight: 500;
    position: relative;
    z-index: 2;
}

.preview-btn {
    border-radius: 30px;
}

.countdown-header {
    font-weight: bold;
    line-height: 1.6;
}

.plans-wrapper {
    position: relative;
    z-index: 2;
    max-width: 900px;
    margin: 0 auto;
}

.goods-buy-btn {
    padding: 12px 20px;
    font-size: 1rem;
    width: 100%;
    margin: 15px 0 0;
}

.plan-buy-btn {
    padding: 15px 20px;
    font-size: 1.2rem;
    width: 90%;
    margin: 25px auto 0;
    display: flex;
}

.roadmap-link-wrapper {
    margin-top: 10px;
    font-size: 0.85rem;
}

.roadmap-link {
    color: var(--accent);
    text-decoration: underline;
}

.roadmap-point-current {
    background: #fff;
    color: #000;
    border-color: #000;
}

.roadmap-content-current {
    border-color: var(--primary);
}