/*
Theme Name: Tomi Creation
Theme URI: https://tomicreation.com
Author: Tomi Creation
Author URI: https://tomicreation.com
Description: AI動画制作サービス「Tomi Creation」の公式WordPressテーマ。ACFと連携したコンテンツ管理が可能です。
Version: 1.3.0
Requires at least: 6.0
Tested up to: 6.4
Requires PHP: 8.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: tomicreation
Tags: one-column, custom-menu, featured-images, full-width-template, custom-logo
*/

:root {
    /* Sci-Fi "Cyber-Elegant" Palette */
    --tc-primary: #00f2ff;
    /* Neon Cyan */
    --tc-primary-dark: #00c2cc;
    --tc-primary-light: #80f9ff;
    --tc-primary-glow: rgba(0, 242, 255, 0.4);

    --tc-secondary: #b100ff;
    /* Neon Purple */
    --tc-secondary-dark: #8a00cc;
    --tc-secondary-light: #d880ff;

    --tc-accent: #ffffff;
    /* Elegant White */
    --tc-accent-alt: #f0c33c;
    /* Elegant Gold */

    /* Cyber Neutral Colors - Optimized for Legibility */
    --tc-dark: #050510;
    /* Deep Space */
    --tc-dark-light: #0d0d1f;
    /* Slightly lighter base */
    --tc-gray: #9494b8;
    /* Brighter gray */
    --tc-gray-light: #dadae5;
    /* Much brighter gray */
    --tc-light: #f0f0f5;
    --tc-white: #ffffff;

    /* Futuristic Gradients */
    --tc-gradient-primary: linear-gradient(135deg, #00f2ff 0%, #b100ff 100%);
    --tc-gradient-dark: linear-gradient(180deg, #050510 0%, #0a0a20 100%);
    --tc-gradient-hero: linear-gradient(to bottom, rgba(5, 5, 16, 0.3) 0%, rgba(5, 5, 16, 0.7) 100%);
    --tc-gradient-glass: linear-gradient(135deg, rgba(255, 255, 255, 0.1) 0%, rgba(255, 255, 255, 0.05) 100%);

    /* Typography - More futuristic options */
    --tc-font-main: 'Outfit', 'Noto Sans JP', sans-serif;
    --tc-font-heading: 'Outfit', 'Noto Sans JP', sans-serif;
    /* Already quite good, stick with Outfit but track Orbitron if requested */

    /* Spacing */
    --tc-section-padding: 120px;
    --tc-container-width: 1200px;

    /* Sci-Fi Effects */
    --tc-glass-bg: rgba(16, 16, 37, 0.7);
    --tc-glass-border: rgba(0, 242, 255, 0.15);
    --tc-glass-blur: blur(12px);

    --tc-shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --tc-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -2px rgba(0, 0, 0, 0.1);
    --tc-shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -4px rgba(0, 0, 0, 0.1);
    --tc-shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 8px 10px -6px rgba(0, 0, 0, 0.1);
    --tc-shadow-glow: 0 0 20px var(--tc-primary-glow);
    --tc-shadow-neon: 0 0 15px rgba(177, 0, 255, 0.3);

    --tc-radius-sm: 8px;
    --tc-radius: 16px;
    --tc-radius-lg: 24px;
    --tc-radius-xl: 30px;

    --tc-transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Reset & Base */
*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: var(--tc-font-main);
    font-weight: 400;
    line-height: 1.8;
    color: var(--tc-dark);
    background-color: var(--tc-white);
    overflow-x: hidden;
}

/* Typography */
h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: var(--tc-font-heading);
    font-weight: 700;
    line-height: 1.3;
    color: var(--tc-white);
    /* Default to white for dark theme */
}

h1 {
    font-size: clamp(2.5rem, 5vw, 4rem);
}

h2 {
    font-size: clamp(2rem, 4vw, 3rem);
}

h3 {
    font-size: clamp(1.5rem, 3vw, 2rem);
}

h4 {
    font-size: clamp(1.25rem, 2vw, 1.5rem);
}

p {
    color: var(--tc-gray-light);
    /* Lighter gray for readability */
    margin-bottom: 1rem;
}

a {
    color: var(--tc-primary);
    text-decoration: none;
    transition: var(--tc-transition);
}

a:hover {
    color: var(--tc-primary-dark);
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* Container */
.tc-container {
    max-width: var(--tc-container-width);
    margin: 0 auto;
    padding: 0 20px;
}

/* Section Layouts */
.tc-section {
    padding: var(--tc-section-padding) 0;
    position: relative;
    overflow: hidden;
}

.tc-section--light {
    background-color: var(--tc-dark-light);
    /* Even "light" sections are now subtly dark */
}

.tc-section--dark {
    background-color: var(--tc-dark);
}

.tc-section--gradient {
    background: var(--tc-gradient-dark);
}

.tc-section--dark p {
    color: var(--tc-gray-light);
}

.tc-section--light {
    background-color: var(--tc-light);
}

/* Section Header */
.tc-section-header {
    text-align: center;
    margin-bottom: 60px;
}

.tc-section-header__label {
    display: inline-block;
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--tc-primary);
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 12px;
}

.tc-section-header__title {
    margin-bottom: 20px;
}

.tc-section-header__description {
    max-width: 600px;
    margin: 0 auto;
    font-size: 1.125rem;
}

/* Buttons */
.tc-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 16px 32px;
    font-family: var(--tc-font-main);
    font-size: 1rem;
    font-weight: 600;
    text-decoration: none;
    border: none;
    border-radius: var(--tc-radius);
    cursor: pointer;
    transition: var(--tc-transition);
}

.tc-btn--primary {
    background: var(--tc-gradient-primary);
    color: var(--tc-white);
    box-shadow: var(--tc-shadow-lg);
}

.tc-btn--primary:hover {
    transform: translateY(-3px);
    box-shadow: var(--tc-shadow-xl), var(--tc-shadow-glow);
    color: var(--tc-white);
}

.tc-btn--outline {
    background: transparent;
    color: var(--tc-white);
    border: 2px solid rgba(255, 255, 255, 0.5);
}

.tc-btn--outline:hover {
    background: var(--tc-white);
    color: var(--tc-primary);
    border-color: var(--tc-white);
}

.tc-btn--secondary {
    background: var(--tc-white);
    color: var(--tc-primary);
    box-shadow: var(--tc-shadow);
}

.tc-btn--secondary:hover {
    transform: translateY(-3px);
    box-shadow: var(--tc-shadow-lg);
}

.tc-btn--large {
    padding: 20px 40px;
    font-size: 1.125rem;
}

/* Cards */
.tc-card {
    background: var(--tc-white);
    border-radius: var(--tc-radius-lg);
    padding: 40px;
    box-shadow: var(--tc-shadow);
    transition: var(--tc-transition);
}

.tc-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--tc-shadow-xl);
}

.tc-card--glass {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

/* Grid */
.tc-grid {
    display: grid;
    gap: 30px;
}

.tc-grid--2 {
    grid-template-columns: repeat(2, 1fr);
}

.tc-grid--3 {
    grid-template-columns: repeat(3, 1fr);
}

.tc-grid--4 {
    grid-template-columns: repeat(4, 1fr);
}

@media (max-width: 1024px) {

    .tc-grid--3,
    .tc-grid--4 {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {

    .tc-grid--2,
    .tc-grid--3,
    .tc-grid--4 {
        grid-template-columns: 1fr;
    }

    :root {
        --tc-section-padding: 60px;
    }
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes float {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-10px);
    }
}

@keyframes pulse {

    0%,
    100% {
        opacity: 1;
    }

    50% {
        opacity: 0.7;
    }
}

.tc-animate-fadeInUp {
    animation: fadeInUp 0.6s ease forwards;
}

.tc-animate-float {
    animation: float 3s ease-in-out infinite;
}

/* ==========================================================================
   Profile Section
   ========================================================================== */

.tc-profile {
    background-color: var(--tc-dark);
}

.tc-profile__wrapper {
    display: grid;
    grid-template-columns: 0.8fr 1.2fr;
    gap: 60px;
    align-items: center;
}

.tc-profile__visual {
    position: relative;
    padding-right: 20px;
}

.tc-profile__image-box {
    position: relative;
    z-index: 2;
    border-radius: var(--tc-radius-lg);
    overflow: hidden;
    box-shadow: var(--tc-shadow-xl), var(--tc-shadow-glow);
}

.tc-profile__image-box::after {
    content: '';
    position: absolute;
    inset: 0;
    box-shadow: inset 0 0 40px rgba(0, 0, 0, 0.3);
}

.tc-profile__decoration {
    position: absolute;
    top: -20px;
    right: 0;
    width: 200px;
    height: 100%;
    border: 2px solid var(--tc-primary);
    border-radius: var(--tc-radius-lg);
    z-index: 1;
    opacity: 0.5;
}

.tc-profile__text {
    /* Styles for the text container handled by .tc-card in PHP */
}

.tc-profile__label {
    display: inline-block;
    color: var(--tc-primary);
    font-weight: 700;
    font-size: 0.9rem;
    letter-spacing: 3px;
    margin-bottom: 20px;
    text-transform: uppercase;
}

.tc-profile__name-group {
    margin-bottom: 25px;
}

.tc-profile__name-ja {
    font-size: 3rem;
    margin-bottom: 8px;
    color: var(--tc-white);
    text-shadow: 0 0 15px var(--tc-primary-glow);
}

.tc-profile__name-en {
    font-size: 1.2rem;
    color: var(--tc-gray-light);
    font-family: var(--tc-font-heading);
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.tc-profile__title {
    font-size: 1.3rem;
    color: var(--tc-primary);
    font-weight: 700;
    margin-bottom: 35px;
}

.tc-profile__content {
    font-size: 1.1rem;
    line-height: 1.8;
    color: var(--tc-gray-light);
}

.tc-profile__tagline {
    color: var(--tc-white);
    font-size: 1.2rem;
    margin-bottom: 20px;
}

.tc-profile__quote {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--tc-white);
    border-left: 4px solid var(--tc-primary);
    padding-left: 20px;
    margin: 35px 0;
    font-style: italic;
    background: rgba(0, 242, 255, 0.05);
    padding: 20px 30px;
    border-radius: 0 var(--tc-radius) var(--tc-radius) 0;
}

@media (max-width: 991px) {
    .tc-profile__wrapper {
        grid-template-columns: 1fr;
        gap: 50px;
    }

    .tc-profile__visual {
        max-width: 400px;
        margin: 0 auto;
        padding-right: 0;
    }

    .tc-profile__name-ja {
        font-size: 2.2rem;
    }
}

/* ==========================================================================
   Pricing Section - Feature List Visibility Fix
   ========================================================================== */

.tc-pricing__card {
    background: var(--tc-glass-bg);
    backdrop-filter: var(--tc-glass-blur);
    -webkit-backdrop-filter: var(--tc-glass-blur);
    border: 1px solid var(--tc-glass-border);
    border-radius: var(--tc-radius-lg);
    padding: 40px 30px;
    position: relative;
    transition: var(--tc-transition);
}

.tc-pricing__card:hover {
    transform: translateY(-5px);
    box-shadow: var(--tc-shadow-glow);
    border-color: var(--tc-primary);
}

.tc-pricing__card--popular {
    border-color: var(--tc-primary);
    box-shadow: 0 0 30px rgba(0, 242, 255, 0.15);
}

.tc-pricing__badge {
    position: absolute;
    top: -12px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--tc-gradient-primary);
    color: var(--tc-white);
    font-size: 0.75rem;
    font-weight: 700;
    padding: 6px 20px;
    border-radius: 20px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.tc-pricing__name {
    font-size: 1.5rem;
    color: var(--tc-primary);
    margin-bottom: 10px;
    text-shadow: 0 0 10px rgba(0, 242, 255, 0.3);
}

.tc-pricing__desc {
    color: var(--tc-gray-light);
    font-size: 0.9rem;
    line-height: 1.5;
    min-height: 50px;
}

.tc-pricing__price-area {
    margin: 30px 0;
    text-align: center;
}

.tc-pricing__amount {
    font-size: 3.5rem;
    font-weight: 700;
    color: var(--tc-white);
    text-shadow: 0 0 20px rgba(0, 242, 255, 0.3);
}

.tc-pricing__currency {
    font-size: 1.5rem;
    color: var(--tc-primary);
}

.tc-pricing__currency--prefix {
    vertical-align: super;
    margin-right: 5px;
}

.tc-pricing__currency--suffix {
    margin-left: 5px;
}

.tc-pricing__from {
    font-size: 1.2rem;
    color: var(--tc-gray-light);
    margin-left: 5px;
}

/* Feature list - CRITICAL for visibility */
.tc-pricing__features {
    list-style: none;
    padding: 0;
    margin: 25px 0;
    border-top: 1px solid rgba(0, 242, 255, 0.1);
    padding-top: 25px;
}

.tc-pricing__features li {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    margin-bottom: 15px;
    color: var(--tc-gray-light);
    font-size: 0.95rem;
    line-height: 1.5;
}

.tc-pricing__features li svg {
    width: 18px;
    height: 18px;
    flex-shrink: 0;
    color: var(--tc-primary);
    margin-top: 2px;
}

.tc-pricing__features li span {
    color: var(--tc-gray-light);
    font-weight: 400;
}

.tc-pricing__footer {
    margin-top: 30px;
}

.tc-pricing__cta {
    width: 100%;
    text-align: center;
}

/* ==========================================================================
   Music Video Section - Gallery
   ========================================================================== */

.tc-musicvideo__gallery {
    margin: 60px 0;
}

.tc-mv-item {
    background: var(--tc-glass-bg);
    border: 1px solid var(--tc-glass-border);
    border-radius: var(--tc-radius);
    overflow: hidden;
    transition: var(--tc-transition);
}

.tc-mv-item:hover {
    transform: translateY(-5px);
    box-shadow: var(--tc-shadow-glow);
    border-color: var(--tc-primary);
}

.tc-mv-item__media {
    position: relative;
    width: 100%;
    padding-top: 56.25%;
    /* 16:9 Aspect Ratio */
    background: #000;
}

.tc-mv-item__media iframe,
.tc-mv-item__media img,
.tc-mv-item__media .tc-video-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* ==========================================================================
   Character Design Section
   ========================================================================== */

.tc-character__samples {
    display: flex;
    flex-direction: column;
    gap: 80px;
    margin-top: 60px;
}

.tc-char-sample {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 40px;
    align-items: center;
}

.tc-char-sample--reverse {
    grid-template-columns: 1.5fr 1fr;
    direction: rtl;
    /* Visual trick for reversing */
}

.tc-char-sample--reverse .tc-char-sample__content {
    direction: ltr;
    /* Reset text direction */
}

.tc-char-sample--reverse .tc-char-sample__visuals {
    direction: ltr;
    /* Reset visuals direction */
}

.tc-char-sample__caption {
    font-size: 2rem;
    background: var(--tc-gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 20px;
}

.tc-char-sample__labels {
    display: flex;
    align-items: center;
    gap: 15px;
    font-family: var(--tc-font-mono);
    font-size: 0.9rem;
    color: var(--tc-gray-light);
}

.tc-label {
    padding: 5px 12px;
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.tc-label--before {
    color: var(--tc-gray);
}

.tc-label--after {
    color: var(--tc-primary);
    border-color: var(--tc-primary);
    background: rgba(0, 242, 255, 0.1);
}

.tc-arrow {
    color: var(--tc-primary);
}

.tc-char-sample__visuals {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 20px;
    align-items: center;
}

.tc-char-visual {
    position: relative;
    border-radius: var(--tc-radius);
    overflow: hidden;
    border: 1px solid var(--tc-glass-border);
    background: var(--tc-glass-bg);
}

.tc-char-visual--before {
    transform: perspective(1000px) rotateY(10deg);
    box-shadow: -10px 10px 30px rgba(0, 0, 0, 0.5);
    z-index: 1;
}

.tc-char-visual--after {
    transform: perspective(1000px) rotateY(-5deg) scale(1.1);
    box-shadow: 0 20px 50px rgba(0, 242, 255, 0.2);
    z-index: 2;
    border-color: var(--tc-primary);
}

.tc-char-visual img,
.tc-char-visual iframe {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
}

.tc-char-visual--before img {
    aspect-ratio: 1/1;
    /* Square for portraits */
}

.tc-char-visual--after .tc-video-container {
    aspect-ratio: 16/9;
}

.tc-placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, 0.5);
    color: var(--tc-gray);
    width: 100%;
    height: 100%;
    min-height: 200px;
}

@media (max-width: 991px) {

    .tc-char-sample,
    .tc-char-sample--reverse {
        grid-template-columns: 1fr;
        direction: ltr;
        gap: 30px;
    }

    .tc-char-sample__visuals {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .tc-char-visual--before,
    .tc-char-visual--after {
        transform: none;
    }
}