:root {
    --bg-color: #f4f5f7;
    --text-color: #333333;
    --accent-color: #2c3e50;
    --sub-text-color: #666666;
    --border-color: #dddddd;
    --white: #ffffff;
    --font-heading: 'Noto Sans JP', sans-serif;
    --font-body: 'Noto Sans JP', sans-serif;
    --spacing-section: 120px;
    --spacing-container: 24px;
}

/* 
   Dark mode preference or concept logic:
   The request asks for "Quiet" and "Not Cute".
   A muted, low-contrast monochrome theme works best.
   I will use a very dark grey/almost black theme as default to ensure it appeals to V-livers who often prefer dark mode, 
   and it feels "quiet".
*/

:root {
    --bg-color: #1a1a1a;
    --content-bg: #242424;
    --text-color: #e0e0e0;
    --accent-color: #8c9eff;
    /* Muted periwinkle or similar quiet color */
    --accent-hover: #536dfe;
    --sub-text-color: #a0a0a0;
    --border-color: #333333;
    --white: #1a1a1a;
    /* Re-mapped for dark theme logic if needed */
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: var(--font-body);
    background-color: var(--bg-color);
    color: var(--text-color);
    line-height: 1.8;
    letter-spacing: 0.05em;
    -webkit-font-smoothing: antialiased;
}

a {
    text-decoration: none;
    color: inherit;
    transition: opacity 0.3s ease;
}

a:hover {
    opacity: 0.7;
}

ul,
ol {
    list-style: none;
}

.container {
    max-width: 800px;
    margin: 0 auto;
    padding: 0 var(--spacing-container);
}

/* Utilities */
.text-link {
    color: var(--accent-color);
    border-bottom: 1px solid var(--accent-color);
    padding-bottom: 2px;
}

/* First View (FV) */
.fv {
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    background-color: var(--bg-color);
}

.fv-target {
    font-size: 0.9rem;
    color: var(--sub-text-color);
    margin-bottom: 2rem;
    display: block;
}

.fv-title {
    font-size: 2rem;
    font-weight: 500;
    line-height: 1.6;
    margin-bottom: 3rem;
}

@media (min-width: 768px) {
    .fv-title {
        font-size: 2.5rem;
    }
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 1rem 3rem;
    border: 1px solid var(--text-color);
    color: var(--text-color);
    background: transparent;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn:hover {
    background: var(--text-color);
    color: var(--bg-color);
}

.btn-primary {
    /* Simple outline style as requested: "Quiet" */
}

.btn-large {
    width: 100%;
    max-width: 400px;
    text-align: center;
    padding: 1.2rem;
}

/* Sections */
.section {
    padding: var(--spacing-section) 0;
}

.section-title {
    font-size: 1.2rem;
    font-weight: 400;
    color: var(--sub-text-color);
    margin-bottom: 3rem;
    text-align: center;
    position: relative;
    letter-spacing: 0.1em;
}

.section-title::after {
    content: '';
    display: block;
    width: 20px;
    height: 1px;
    background: var(--sub-text-color);
    margin: 1rem auto 0;
}

.section-desc {
    text-align: center;
    margin-bottom: 3rem;
    font-size: 0.95rem;
}

/* Service Grid */
.service-grid {
    display: grid;
    gap: 2rem;
}

@media (min-width: 768px) {
    .service-grid {
        grid-template-columns: 1fr 1fr;
    }
}

.service-col {
    background: var(--content-bg);
    padding: 2rem;
    border-radius: 4px;
}

.service-col h3 {
    font-size: 1.1rem;
    margin-bottom: 1.5rem;
    font-weight: 500;
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 0.5rem;
}

.list-check li {
    position: relative;
    padding-left: 1.5rem;
    margin-bottom: 0.8rem;
}

.list-check li::before {
    content: '✔';
    position: absolute;
    left: 0;
    color: var(--sub-text-color);
    font-size: 0.8rem;
    top: 0.2rem;
}

.list-cross li {
    position: relative;
    padding-left: 1.5rem;
    margin-bottom: 0.8rem;
    color: var(--sub-text-color);
}

.list-cross li::before {
    content: '×';
    position: absolute;
    left: 0;
    color: var(--sub-text-color);
    font-size: 0.8rem;
    top: 0.2rem;
}

/* Target */
.list-target {
    max-width: 600px;
    margin: 0 auto;
    border-left: 1px solid var(--border-color);
    padding-left: 2rem;
}

.list-target li {
    margin-bottom: 1.5rem;
    font-size: 1.1rem;
}

/* Role */
.role-content {
    text-align: center;
    margin-bottom: 2rem;
}

.role-content strong {
    font-weight: 700;
    border-bottom: 1px solid var(--text-color);
}

.demo-link-wrapper {
    text-align: center;
}

/* Pricing */
.pricing-box {
    background: var(--content-bg);
    padding: 3rem 2rem;
    max-width: 500px;
    margin: 0 auto;
    text-align: center;
}

.price-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid var(--border-color);
    padding: 1rem 0;
    margin-bottom: 1rem;
}

.price-label {
    font-size: 1rem;
}

.price-value {
    font-size: 1.2rem;
    font-weight: 500;
}

.price-note {
    margin-top: 2rem;
    font-size: 0.85rem;
    color: var(--sub-text-color);
}

/* FAQ */
.faq-list {
    max-width: 600px;
    margin: 0 auto;
}

.faq-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 0;
    border-bottom: 1px solid var(--border-color);
}

.faq-item dt {
    font-weight: 500;
}

.faq-item dd {
    text-align: right;
    color: var(--sub-text-color);
}

/* Philosophy */
.philosophy-text {
    text-align: center;
    font-size: 1.1rem;
    line-height: 2;
}

/* Footer */
.footer {
    padding: 4rem 0 8rem;
    /* Extra padding at bottom */
    text-align: center;
}

/* ----------------------------------------------------
   V-Liver Introduction Page Template Styles
---------------------------------------------------- */

.liver-page .l-fv {
    height: auto;
    min-height: 90vh;
    padding: 100px 0 60px;
    flex-direction: column;
}

.l-fv-container {
    text-align: center;
    max-width: 600px;
    /* Narrower for focus */
}

.l-sub-copy {
    font-size: 1rem;
    color: var(--sub-text-color);
    margin-bottom: 1.5rem;
    letter-spacing: 0.1em;
}

.l-name {
    font-size: 2.2rem;
    font-weight: 700;
    margin-bottom: 3rem;
    letter-spacing: 0.1em;
}

.l-main-visual {
    margin: 0 auto 3rem;
    width: 100%;
    /* Max width constraint for image */
    max-width: 400px;
    aspect-ratio: 9/16;
    /* Portrait for Vtuber models */
    background-color: #2a2a2a;
    /* Placeholder bg */
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    overflow: hidden;
}

.img-placeholder {
    color: var(--sub-text-color);
    font-size: 0.9rem;
}

.l-fv-links {
    display: flex;
    justify-content: center;
    gap: 1rem;
}

.btn-outline {
    border: 1px solid var(--sub-text-color);
    border-radius: 50px;
    padding: 0.8rem 2rem;
    font-size: 0.9rem;
    color: var(--text-color);
}

.btn-outline:hover {
    border-color: var(--text-color);
    background: rgba(255, 255, 255, 0.05);
}

/* Profile List */
.profile-list {
    max-width: 600px;
    margin: 0 auto;
}

.profile-item {
    display: grid;
    grid-template-columns: 120px 1fr;
    padding: 1.5rem 0;
    border-bottom: 1px solid var(--border-color);
}

.profile-item dt {
    color: var(--sub-text-color);
    font-weight: normal;
}

.profile-item dd {
    line-height: 1.8;
}

@media (max-width: 600px) {
    .profile-item {
        display: block;
    }

    .profile-item dt {
        margin-bottom: 0.5rem;
        font-size: 0.9rem;
    }
}

/* Simple Link List */
.link-list-simple {
    max-width: 500px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.link-list-simple li a {
    display: block;
    text-align: center;
    padding: 1.2rem;
    background: var(--content-bg);
    border-radius: 4px;
    transition: transform 0.2s ease, background 0.2s ease;
}

.link-list-simple li a:hover {
    transform: translateY(-2px);
    background: #2f2f2f;
}

/* History Timeline */
.history-note {
    text-align: center;
    font-size: 0.85rem;
    color: var(--sub-text-color);
    margin-bottom: 2rem;
}

.history-timeline {
    max-width: 700px;
    margin: 0 auto;
    border-left: 1px solid var(--border-color);
    padding-left: 2rem;
}

.history-item {
    margin-bottom: 2.5rem;
    position: relative;
}

/* Timeline dot */
.history-item::before {
    content: '';
    position: absolute;
    left: -2.35rem;
    /* Adjust based on padding/border */
    top: 0.4rem;
    width: 10px;
    height: 10px;
    background: var(--bg-color);
    border: 1px solid var(--sub-text-color);
    border-radius: 50%;
}

.history-item time {
    display: block;
    font-size: 0.9rem;
    color: var(--sub-text-color);
    margin-bottom: 0.5rem;
}

.history-content {
    background: var(--content-bg);
    padding: 1.5rem;
    border-radius: 4px;
    margin-top: 0.5rem;
}

.tag {
    display: inline-block;
    padding: 0.2rem 0.6rem;
    font-size: 0.75rem;
    border-radius: 2px;
    margin-bottom: 0.8rem;
    background: #333;
    color: #ccc;
}

.tag-live {
    border-left: 3px solid #e57373;
}

/* Red accent for live */
.tag-video {
    border-left: 3px solid #64b5f6;
}

/* Blue for video */
.tag-info {
    border-left: 3px solid #81c784;
}

/* Green for info */

.history-content p {
    font-size: 1rem;
    line-height: 1.6;
}

/* Footer specialized for liver page */
.l-footer .footer-links {
    margin-bottom: 2rem;
}

.l-footer .footer-links a {
    color: var(--sub-text-color);
    font-size: 0.9rem;
    border-bottom: 1px solid transparent;
}

.l-footer .footer-links a:hover {
    border-color: var(--sub-text-color);
}

.service-name-small {
    font-size: 0.8rem;
    color: var(--sub-text-color);
    opacity: 0.6;
    margin-bottom: 0.5rem;
}

.ad-free-badge {
    font-size: 0.75rem;
    color: var(--sub-text-color);
    letter-spacing: 0.2em;
    opacity: 0.4;
}

/* ----------------------------------------------------
   YouTube Feed Styles
---------------------------------------------------- */
.l-youtube {
    padding-bottom: 0;
    /* Adjust spacing */
}

/* Full width scroll container wrapper could be wider than standard container if desired, 
   but keeping it within container for consistency with "Quiet" design */
.youtube-feed-wrapper {
    width: 100%;
    margin: 0 auto;
    overflow-x: auto;
    overflow-y: hidden;
    white-space: nowrap;
    -webkit-overflow-scrolling: touch;
    padding-bottom: 1.5rem;
    /* Space for scrollbar */

    /* Scrollbar styling for Webkit */
    scrollbar-width: thin;
    scrollbar-color: var(--sub-text-color) var(--bg-color);
}

.youtube-feed-wrapper::-webkit-scrollbar {
    height: 6px;
}

.youtube-feed-wrapper::-webkit-scrollbar-track {
    background: var(--bg-color);
}

.youtube-feed-wrapper::-webkit-scrollbar-thumb {
    background-color: #444;
    border-radius: 3px;
}

.youtube-list {
    display: inline-flex;
    gap: 1.5rem;
    padding: 0 4px;
    /* Tiny padding to prevent cut-off at edges */
}

.youtube-card {
    display: flex;
    flex-direction: column;
    width: 260px;
    background: var(--content-bg);
    border-radius: 4px;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    white-space: normal;
    /* Allow text wrapping inside card */
    flex-shrink: 0;
    text-decoration: none;
    border: 1px solid transparent;
}

.youtube-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.5);
    border-color: #333;
    opacity: 1 !important;
    /* Override global a:hover opacity */
}

.youtube-thumb-outer {
    width: 100%;
    aspect-ratio: 16 / 9;
    overflow: hidden;
    background: #000;
}

.youtube-thumb {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.youtube-card:hover .youtube-thumb {
    transform: scale(1.05);
}

.youtube-info {
    padding: 1rem;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.youtube-title {
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--text-color);
    margin-bottom: 0.5rem;
    line-height: 1.5;

    /* Multi-line truncation (2 lines) */
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.youtube-date {
    font-size: 0.75rem;
    color: var(--sub-text-color);
    margin-top: auto;
    /* Push to bottom */
}

.loading-text,
.error-text {
    text-align: center;
    color: var(--sub-text-color);
    padding: 2rem;
    width: 100%;
    display: block;
}

/* ----------------------------------------------------
   Application Form Styles
---------------------------------------------------- */
.apply-header {
    text-align: center;
    padding: 6rem 0 3rem;
}

.page-title {
    font-size: 1.8rem;
    font-weight: 500;
    margin-bottom: 0.5rem;
    letter-spacing: 0.05em;
}

.page-subtitle {
    font-size: 0.9rem;
    color: var(--sub-text-color);
}

.apply-form {
    background: var(--content-bg);
    padding: 3rem;
    border-radius: 4px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
}

.form-section {
    margin-bottom: 3rem;
}

.form-section-title {
    font-size: 1.1rem;
    margin-bottom: 1.5rem;
    border-left: 3px solid var(--accent-color);
    padding-left: 1rem;
    line-height: 1.2;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
    font-size: 0.95rem;
}

.required {
    background: #e57373;
    color: #fff;
    font-size: 0.7rem;
    padding: 2px 6px;
    border-radius: 2px;
    margin-left: 8px;
    vertical-align: middle;
}

.form-input,
.form-textarea {
    width: 100%;
    padding: 0.8rem 1rem;
    background: var(--bg-color);
    border: 1px solid var(--border-color);
    color: var(--text-color);
    border-radius: 4px;
    font-size: 1rem;
    font-family: inherit;
    transition: border-color 0.3s;
}

.form-input:focus,
.form-textarea:focus {
    outline: none;
    border-color: var(--accent-color);
}

.form-note {
    font-size: 0.8rem;
    color: var(--sub-text-color);
    margin-top: 0.5rem;
}

/* Radio Cards */
.radio-group {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.radio-card {
    position: relative;
    cursor: pointer;
}

.radio-card input {
    position: absolute;
    opacity: 0;
}

.radio-card-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.2rem;
    border: 1px solid var(--border-color);
    border-radius: 4px;
    transition: all 0.2s;
}

.radio-card input:checked+.radio-card-content {
    border-color: var(--accent-color);
    background: rgba(140, 158, 255, 0.05);
}

.plan-name {
    font-weight: 500;
}

.plan-price {
    font-weight: 700;
    font-size: 1.1rem;
}

/* Simple Radio */
.radio-group-simple {
    display: flex;
    gap: 2rem;
    margin-bottom: 1.5rem;
}

.radio-label {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    cursor: pointer;
}

.payment-info-box {
    background: var(--bg-color);
    padding: 1.5rem;
    border-radius: 4px;
    font-size: 0.9rem;
    color: var(--sub-text-color);
    line-height: 1.6;
}

/* Terms */
.terms-box {
    height: 150px;
    overflow-y: scroll;
    border: 1px solid var(--border-color);
    padding: 1rem;
    margin-bottom: 1rem;
    background: var(--bg-color);
    font-size: 0.85rem;
    color: var(--sub-text-color);
}

.checkbox-label {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    cursor: pointer;
}

/* Actions */
.form-actions {
    text-align: center;
    margin-top: 3rem;
}

.btn-submit {
    width: 100%;
    margin-bottom: 1rem;
    background: var(--accent-color);
    /* Use accent for submission */
    color: #fff;
    border: none;
    padding: 1.2rem;
}

.btn-submit:hover {
    background: var(--accent-hover);
}

.form-back-link {
    text-align: center;
    margin-top: 2rem;
    font-size: 0.9rem;
}

.error-message {
    color: #e57373;
    margin-top: 1rem;
}

@media (max-width: 600px) {
    .apply-form {
        padding: 1.5rem;
    }

    .radio-group-simple {
        flex-direction: column;
        gap: 1rem;
    }
}

/* ----------------------------------------------------
   Contract Single Page Styles (contract.html)
---------------------------------------------------- */
.contract-single-page {
    background-color: #111;
    /* Dark background */
    color: var(--text-color);
    overflow-x: hidden;
}

.contract-layout {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

@media (min-width: 1024px) {
    .contract-layout {
        flex-direction: row;
    }
}

/* Sidebar (Left: Form) */
.contract-sidebar {
    width: 100%;
    padding: 2rem;
    background: var(--bg-color);
    border-right: 1px solid var(--border-color);
    overflow-y: auto;
}

@media (min-width: 1024px) {
    .contract-sidebar {
        width: 400px;
        /* Fixed width sidebar for input */
        flex-shrink: 0;
        height: 100vh;
        position: sticky;
        top: 0;
    }
}

.contract-header {
    margin-bottom: 2rem;
    padding-bottom: 2rem;
    border-bottom: 1px solid var(--border-color);
}

.contract-header h1 {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
}

.contract-header p {
    font-size: 0.9rem;
    color: var(--sub-text-color);
}

.c-section {
    margin-bottom: 2.5rem;
}

.c-title {
    font-size: 1rem;
    color: var(--accent-color);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: 1rem;
    font-weight: 700;
}

.overview-box {
    background: var(--content-bg);
    padding: 1rem;
    border-radius: 4px;
    font-size: 0.9rem;
}

.ov-row {
    display: flex;
    justify-content: space-between;
    margin-bottom: 0.5rem;
}

.ov-note {
    margin-top: 1rem;
    font-size: 0.8rem;
    color: var(--sub-text-color);
    line-height: 1.5;
}

/* Preview Area (Right) */
.contract-preview {
    flex-grow: 1;
    background: #000;
    /* Darker bg for preview contrast */
    padding: 2rem;
    display: flex;
    justify-content: center;
    align-items: flex-start;
    position: relative;
}

.preview-label {
    position: absolute;
    top: 1rem;
    left: 2rem;
    background: rgba(255, 255, 255, 0.1);
    padding: 0.4rem 1rem;
    border-radius: 20px;
    font-size: 0.8rem;
    color: var(--sub-text-color);
    pointer-events: none;
    z-index: 10;
}

.preview-frame-container {
    width: 100%;
    max-width: 800px;
    /* Limit preview width */
    background: var(--bg-color);
    /* Match liver page bg */
    box-shadow: 0 0 50px rgba(0, 0, 0, 0.5);
    min-height: 90vh;
    /* Simulate full page */
    position: relative;
    /* Ensure styles from liver-page work inside */
}

/* Ensure font sizes relative to root are consistent inside preview if needed */
.preview-inner {
    /* Just a wrapper to apply .liver-page class context */
    position: relative;
}

/* Stripe Mock */
.stripe-mock {
    background: #fff;
    padding: 12px;
    border-radius: 4px;
    color: #333;
    font-family: monospace;
    margin-bottom: 1rem;
}

.stripe-row {
    display: flex;
    gap: 1rem;
    align-items: center;
}

.payment-note {
    font-size: 0.8rem;
    color: var(--sub-text-color);
    margin-bottom: 1rem;
}

.btn-submit:disabled {
    background: #333;
    color: #666;
    border-color: #333;
    cursor: not-allowed;
}

.btn-submit.active {
    background: var(--accent-color);
    color: #fff;
}