:root {
    --primary: #33abaa;
    --primary-dark: #288b8a;
    --secondary: #c5a059;
    --navy: #001f3f;
    --dark: #0a121e;
    --light: #f8fafc;
    --white: #ffffff;
    --text: #334155;
    --text-light: #64748b;
    --glass: rgba(255, 255, 255, 0.7);
    --glass-border: rgba(255, 255, 255, 0.3);
    --shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    --transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

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

html {
    scroll-behavior: smooth;
}

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

h1, h2, h3, .logo {
    font-family: 'Outfit', sans-serif;
    font-weight: 700;
}

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

/* Navigation */
.nav-container {
    position: fixed;
    top: 1.5rem;
    left: 50%;
    transform: translateX(-50%);
    width: 90%;
    max-width: 1000px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.8rem 2rem;
    background: var(--glass);
    backdrop-filter: blur(12px);
    border: 1px solid var(--glass-border);
    border-radius: 100px;
    z-index: 1000;
    box-shadow: var(--shadow);
}

.logo {
    font-size: 1.5rem;
    color: var(--navy);
    letter-spacing: -1px;
}

.nav-links {
    display: flex;
    gap: 2rem;
    align-items: center;
}

.nav-links a {
    text-decoration: none;
    color: var(--text);
    font-size: 0.9rem;
    font-weight: 500;
    transition: var(--transition);
}

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

.cta-mini {
    padding: 0.5rem 1.2rem;
    background: var(--navy);
    color: var(--white) !important;
    border-radius: 50px;
}

/* Hero Section */
.hero {
    position: relative;
    padding: 12rem 0 8rem;
    min-height: 100vh;
    display: flex;
    align-items: center;
    background: url('assets/hero-bg.png') no-repeat center center/cover;
    overflow: hidden;
}

.hero-bg-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(248, 250, 252, 0.8) 0%, rgba(248, 250, 252, 0.4) 100%);
    z-index: 1;
}

.hero .container {
    position: relative;
    z-index: 2;
    text-align: center;
}

.badge {
    display: inline-block;
    padding: 0.5rem 1.5rem;
    background: var(--white);
    border: 1px solid var(--primary);
    color: var(--primary);
    border-radius: 100px;
    font-size: 0.8rem;
    font-weight: 600;
    margin-bottom: 2rem;
    letter-spacing: 2px;
}

.hero h1 {
    font-size: clamp(2.5rem, 5vw, 4.5rem);
    color: var(--navy);
    line-height: 1.1;
    margin-bottom: 2rem;
}

.hero h1 .small {
    font-size: 1.1rem;
    font-weight: 400;
    letter-spacing: 0.5rem;
    color: var(--text-light);
    display: block;
    margin-bottom: 1rem;
}

.hero h1 .highlight {
    background: linear-gradient(to right, var(--primary), var(--secondary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero-sub {
    font-size: 1.2rem;
    max-width: 600px;
    margin: 0 auto 3rem;
    color: var(--text-light);
}

.hero-cta {
    display: flex;
    gap: 1.5rem;
    justify-content: center;
}

.btn {
    padding: 1rem 2.5rem;
    border-radius: 100px;
    text-decoration: none;
    font-weight: 600;
    transition: var(--transition);
    cursor: pointer;
}

.btn-primary {
    background: var(--navy);
    color: var(--white);
    box-shadow: 0 15px 30px rgba(0, 31, 63, 0.2);
}

.btn-primary:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 40px rgba(0, 31, 63, 0.3);
}

.btn-outline {
    border: 1px solid var(--navy);
    color: var(--navy);
}

.btn-outline:hover {
    background: var(--navy);
    color: var(--white);
}

/* Sections */
section {
    padding: 8rem 0;
}

.section-title {
    font-size: 2.5rem;
    color: var(--navy);
    text-align: center;
    margin-bottom: 4rem;
    position: relative;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -1rem;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background: var(--primary);
}

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

.problem-card {
    background: var(--white);
    padding: 3rem 2rem;
    border-radius: 24px;
    box-shadow: var(--shadow);
    text-align: center;
    transition: var(--transition);
    border: 1px solid transparent;
}

.problem-card:hover {
    transform: translateY(-10px);
    border-color: var(--primary-dark);
}

.icon-box {
    width: 80px;
    height: 80px;
    margin: 0 auto 2rem;
}

.icon-box img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.problem-card h3 {
    font-size: 1.25rem;
    margin-bottom: 1rem;
    color: var(--navy);
}

.problem-card p {
    font-size: 0.95rem;
    color: var(--text-light);
}

.problem-footer {
    text-align: center;
    margin-top: 4rem;
    font-size: 1.1rem;
    font-weight: 500;
    color: var(--navy);
}

/* About Section */
.flex-row {
    display: flex;
    align-items: center;
    gap: 4rem;
}

.about-image {
    flex: 1;
}

.image-frame {
    position: relative;
    padding: 2rem;
    background: var(--white);
    border-radius: 40px;
    box-shadow: 0 40px 80px rgba(0, 31, 63, 0.05); /* 非常に微細な影 */
    border: 1px solid #f1f5f9;
    overflow: hidden;
    aspect-ratio: 1/1;
    display: flex;
    align-items: center;
    justify-content: center;
}

.image-frame img {
    width: 75%; /* キャラクターの魅力を伝えるためのサイズ調整 */
    height: auto;
    display: block;
    z-index: 2;
    filter: drop-shadow(0 15px 30px rgba(0,0,0,0.1));
}

.image-frame::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 30%;
    background: linear-gradient(to top, rgba(51, 171, 170, 0.05), transparent);
    z-index: 1;
}

.about-content {
    flex: 1.5;
}

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

.align-left::after {
    left: 0;
    transform: none;
}

.profile-intro {
    font-size: 1.1rem;
    margin-bottom: 2rem;
}

.bold {
    font-weight: 700;
    color: var(--primary);
}

.quote-box {
    margin: 2rem 0;
    padding: 2rem;
    background: var(--light);
    border-left: 4px solid var(--secondary);
    font-style: italic;
    font-weight: 500;
    font-size: 1.2rem;
    color: var(--navy);
}

/* Value Section */
.value-grid {
    display: flex;
    flex-direction: column;
    gap: 3rem;
}

.value-item {
    display: flex;
    gap: 2rem;
    align-items: flex-start;
}

.value-num {
    font-size: 3rem;
    font-weight: 700;
    color: rgba(51, 171, 170, 0.2);
    font-family: 'Outfit';
    line-height: 1;
}

.value-text h3 {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
    color: var(--navy);
}

/* Plan Section */
.plan-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    justify-content: center;
}

.plan-card {
    background: var(--white);
    padding: 3rem 2rem;
    border-radius: 24px;
    text-align: center;
    position: relative;
    box-shadow: var(--shadow);
    transition: var(--transition);
    border: 1px solid #f1f5f9;
}

.plan-card.featured {
    transform: scale(1.05);
    border-color: var(--primary-dark);
    box-shadow: 0 30px 60px rgba(0, 31, 63, 0.1);
    z-index: 2;
}

.plan-card:hover {
    transform: translateY(-5px);
}

.plan-card.featured:hover {
    transform: scale(1.05) translateY(-5px);
}

.plan-badge {
    position: absolute;
    top: -1rem;
    left: 50%;
    transform: translateX(-50%);
    background: var(--secondary);
    color: var(--white);
    padding: 0.4rem 1.5rem;
    border-radius: 50px;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.price {
    font-size: 4rem;
    font-weight: 700;
    color: var(--navy);
    margin: 2rem 0;
    font-family: 'Outfit';
}

.price .unit {
    font-size: 1rem;
    color: var(--text-light);
}

.plan-features {
    list-style: none;
    margin-bottom: 3rem;
    text-align: left;
}

.plan-features li {
    padding: 0.8rem 0;
    border-bottom: 1px solid #f1f5f9;
    color: var(--text);
    display: flex;
    align-items: center;
}

.plan-features li::before {
    content: '✓';
    margin-right: 1rem;
    color: var(--primary);
    font-weight: bold;
}

.full-width {
    width: 100%;
}

/* Footer */
.footer {
    padding: 5rem 0;
    background: var(--navy);
    color: rgba(255,255,255,0.6);
    text-align: center;
}

.footer-copy {
    margin-bottom: 2rem;
    font-size: 0.9rem;
}

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

.footer-links a {
    color: rgba(255,255,255,0.4);
    text-decoration: none;
    font-size: 0.8rem;
    transition: var(--transition);
}

.footer-links a:hover {
    color: var(--primary);
}

/* Animations */
.fade-in {
    opacity: 0;
    transform: translateY(30px);
    animation: fadeInUp 1s forwards;
}

.fade-in-delay {
    opacity: 0;
    transform: translateY(30px);
    animation: fadeInUp 1s 0.3s forwards;
}

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

.reveal { opacity: 0; transform: translateY(40px); transition: var(--transition); }
.reveal.active { opacity: 1; transform: translateY(0); }

/* Join Page / Form Styles */
.join-page {
    background-color: var(--light);
}

.join-main {
    padding: 10rem 0 6rem;
    min-height: 80vh;
}

.containerSmall {
    max-width: 900px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

.form-card {
    background: var(--white);
    padding: 3rem;
    border-radius: 32px;
    box-shadow: 0 40px 80px rgba(0, 31, 63, 0.05);
    border: 1px solid #f1f5f9;
}

.form-header {
    text-align: center;
    margin-bottom: 3rem;
}

.form-header h1 {
    font-size: 2rem;
    color: var(--navy);
    margin-bottom: 1rem;
}

.form-header p {
    color: var(--text-light);
    font-size: 0.95rem;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--navy);
    margin-bottom: 0.5rem;
}

.form-control {
    width: 100%;
    padding: 1rem 1.2rem;
    border-radius: 12px;
    border: 1px solid #e2e8f0;
    background: #f8fafc;
    font-family: inherit;
    font-size: 1rem;
    color: var(--text);
    transition: var(--transition);
}

.form-control:focus {
    outline: none;
    border-color: var(--primary);
    background: var(--white);
    box-shadow: 0 0 0 4px rgba(51, 171, 170, 0.1);
}

.form-hint {
    display: block;
    margin-top: 0.5rem;
    font-size: 0.75rem;
    color: var(--text-light);
}

.form-row {
    display: flex;
    gap: 1.5rem;
}

.dual-select {
    display: flex;
    gap: 1rem;
}

.dual-select select:first-child {
    flex: 1.2;
}

.dual-select select:last-child {
    flex: 2.8;
}

.form-group.half {
    flex: 1;
}

.premium-only-fields {
    background: rgba(197, 160, 89, 0.03);
    padding: 2rem;
    border-radius: 20px;
    border: 1px dashed var(--secondary);
    margin: 2rem 0;
    transition: var(--transition);
}

.premium-notice {
    font-size: 0.8rem;
    color: var(--secondary);
    font-weight: 500;
    margin-top: 1rem;
}

.hidden {
    display: none;
    opacity: 0;
    pointer-events: none;
}

.form-footer {
    margin-top: 3rem;
}

.terms-check {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    margin-bottom: 2rem;
    font-size: 0.85rem;
    color: var(--text-light);
}

.terms-check a {
    color: var(--primary);
    text-decoration: none;
    font-weight: 600;
}

@media (max-width: 640px) {
    .form-card { padding: 2rem 1.5rem; }
    .form-row { flex-direction: column; gap: 0; }
}

/* Legal Page Styles */
.legal-main {
    padding: 10rem 0 8rem;
    min-height: 100vh;
}

.legal-content {
    background: var(--white);
    padding: 4rem;
    border-radius: 32px;
    box-shadow: 0 40px 80px rgba(0, 31, 63, 0.05);
    border: 1px solid #f1f5f9;
}

.legal-content h1 {
    font-size: 2.2rem;
    color: var(--navy);
    margin-bottom: 3rem;
    text-align: center;
}

.legal-content h2 {
    font-size: 1.4rem;
    color: var(--navy);
    margin: 3rem 0 1.5rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid var(--primary);
}

.legal-content p {
    margin-bottom: 1.5rem;
    color: var(--text);
    font-size: 1rem;
}

.legal-table {
    width: 100%;
    border-collapse: collapse;
    margin: 2rem 0;
}

.legal-table th, .legal-table td {
    padding: 1.5rem;
    border: 1px solid #e2e8f0;
    text-align: left;
}

.legal-table th {
    background: #f8fafc;
    width: 30%;
    color: var(--navy);
    font-weight: 600;
}

.legal-list {
    margin: 1.5rem 0 2rem 1.5rem;
    list-style: disc;
}

.legal-list li {
    margin-bottom: 0.8rem;
}

.legal-footer-note {
    margin-top: 4rem;
    padding-top: 2rem;
    border-top: 1px solid #e2e8f0;
    font-size: 0.9rem;
    color: var(--text-light);
    text-align: center;
}

@media (max-width: 768px) {
    .legal-content { padding: 2rem 1.5rem; }
    .legal-table th, .legal-table td { display: block; width: 100%; }
    .legal-table th { background: #f1f5f9; border-bottom: none; }
}

/* Utilities */
.flex-between {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.5rem;
}

.btn-text {
    background: none;
    border: none;
    color: var(--primary);
    font-size: 0.8rem;
    font-weight: 600;
    cursor: pointer;
    text-decoration: underline;
    padding: 0;
    transition: var(--transition);
}

.btn-text:hover {
    color: var(--navy);
}

.error-text {
    color: #ef4444;
    font-size: 0.8rem;
    margin-top: 0.5rem;
    font-weight: 500;
}

.hidden {
    display: none !important;
}

/* Modal Styles */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 31, 63, 0.8);
    backdrop-filter: blur(8px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2000;
    transition: var(--transition);
}

.modal-content {
    background: var(--white);
    width: 90%;
    max-width: 1000px;
    max-height: 85vh;
    border-radius: 32px;
    overflow: hidden;
    position: relative;
    box-shadow: 0 50px 100px rgba(0,0,0,0.3);
}

.modal-header {
    padding: 2rem 3rem;
    border-bottom: 1px solid #f1f5f9;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.modal-header h2 {
    font-size: 1.5rem;
    color: var(--navy);
}

.close-btn {
    background: none;
    border: none;
    font-size: 2rem;
    cursor: pointer;
    color: var(--text-light);
    transition: var(--transition);
    line-height: 1;
}

.close-btn:hover {
    color: var(--navy);
}

.modal-body {
    padding: 3rem;
    overflow-y: auto;
    max-height: calc(85vh - 120px);
}

.area-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 2rem;
}

/* --- Footer Section --- */
footer {
    background: var(--navy);
    color: white;
    padding: 3rem 0;
    margin-top: 4rem;
    position: relative;
    z-index: 100;
}

.footer-links {
    display: flex;
    justify-content: center;
    gap: 2rem;
    margin-top: 1.5rem;
    flex-wrap: wrap;
}

.footer-links a {
    color: rgba(255, 255, 255, 0.8) !important;
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 500;
    transition: all 0.3s ease;
}

.footer-links a:hover {
    color: white !important;
    text-decoration: underline;
}

/* --- Modal Enhancements --- */
.modal-body#area-list-container {
    max-height: 70vh;
    overflow-y: auto;
    padding: 2rem;
}

.area-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1.5rem;
}

.area-card {
    background: #f8faff;
    border-radius: 12px;
    padding: 1.5rem;
    border-top: 4px solid var(--primary);
    box-shadow: 0 4px 12px rgba(0,0,0,0.05);
}

.area-card h3 {
    font-size: 1.1rem;
    color: var(--navy);
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid #e0e6f0;
}

.area-card ul {
    list-style: none;
    padding: 0;
}

.area-card li {
    font-size: 0.85rem;
    line-height: 1.6;
    margin-bottom: 0.5rem;
    color: var(--text);
}

.sold-out-text {
    color: #94a3b8 !important;
    text-decoration: line-through;
}

/* --- Responsive Adjustments --- */
@media (max-width: 600px) {
    .dual-select {
        flex-direction: column;
        gap: 0.5rem;
    }
    .footer-links {
        gap: 1rem;
    }
}
