/* Design System Variables */
:root {
    --primary-color: #2c3e50;
    --secondary-color: #34495e;
    --accent-color: #e67e22;
    --text-color: #333;
    --text-light: #666;
    --white: #fff;
    --bg-light: #f8f9fa;
    --transition: all 0.3s ease;
    --shadow-sm: 0 2px 10px rgba(0, 0, 0, 0.1);
    --shadow-md: 0 4px 20px rgba(0, 0, 0, 0.15);
    --shadow-lg: 0 10px 40px rgba(0, 0, 0, 0.2);
    --radius-sm: 8px;
    --radius-md: 16px;
    --radius-lg: 24px;
}

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

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

/* Typography */
h1,
h2,
h3,
h4 {
    font-weight: 700;
    line-height: 1.4;
}

h1 {
    font-size: clamp(2rem, 5vw, 3.5rem);
}

h2 {
    font-size: clamp(1.5rem, 3vw, 2.5rem);
    margin-bottom: 20px;
}

p {
    font-size: 1rem;
    line-height: 1.9;
}

/* Layout */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.section-padding {
    padding: 80px 0;
}

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

/* Utility Classes */
.btn {
    display: inline-block;
    padding: 15px 40px;
    background: var(--accent-color);
    color: var(--white);
    text-decoration: none;
    border-radius: 50px;
    font-weight: bold;
    transition: var(--transition);
}

.btn:hover {
    background: #d35400;
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.btn-secondary {
    background: var(--white);
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
}

/* Large Black Text Utility */
.text-large-black {
    color: #000 !important;
    font-weight: 700 !important;
    font-size: 1.5rem !important;
}

/* Hero Section */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.hero-content {
    max-width: 800px;
}

.hero-content h1 {
    margin-bottom: 20px;
}

.hero-badges {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
}

.hero-badge {
    background: rgba(255, 255, 255, 0.9);
    padding: 10px 20px;
    border-radius: 50px;
    font-size: 0.9rem;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 8px;
}

/* Premium Medal List */
.hero-medal-list {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
    margin-top: 30px;
    width: 100%;
}

.medal-item {
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    padding: 12px 20px;
    border-radius: 50px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    display: flex;
    flex-direction: row;
    align-items: center;
    text-align: left;
    border: 1px solid rgba(255, 255, 255, 0.5);
    width: 300px;
}

.medal-icon {
    width: 40px;
    height: auto;
    margin-bottom: 0;
    margin-right: 15px;
    filter: drop-shadow(0 2px 4px rgba(212, 175, 55, 0.4));
}

.medal-content {
    display: flex;
    flex-direction: column;
}

.medal-text {
    font-size: 0.85rem;
    color: var(--text-light);
}

.highlight-text {
    color: var(--accent-color);
    font-size: 1.1rem;
    display: block;
    margin-top: 0;
    font-weight: bold;
}

/* Problem Section Overlay */
.problems {
    background-color: #1a1a2e;
    color: white;
    position: relative;
}

.problem-overlay-wrapper {
    position: relative;
    border-radius: 20px;
    overflow: hidden;
    min-height: 600px;
}

.problem-bg-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    position: absolute;
    top: 0;
    left: 0;
    z-index: 1;
}

.problem-content-grid {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 2;
    display: grid;
    grid-template-columns: 1fr 1fr;
}

.problem-list-overlay {
    grid-column: 2;
    padding: 20px 40px;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    gap: 15px;
    background: linear-gradient(to left, rgba(26, 26, 46, 0.95) 0%, rgba(26, 26, 46, 0.8) 50%, rgba(26, 26, 46, 0) 100%);
}

.problem-card-negative {
    background: rgba(30, 30, 60, 0.95);
    border-left: 4px solid #7b61ff;
    padding: 18px 24px;
    border-radius: 12px;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.4);
    color: #e0e0e0;
    backdrop-filter: blur(5px);
}

.problem-card-negative h3 {
    margin-bottom: 5px;
    font-size: 1.1rem;
    color: #a29bfe;
}

.problem-card-negative p {
    font-size: 0.9rem;
    margin: 0;
}

/* Solution Section */
.solution {
    background: var(--white);
    color: var(--text-color);
}

.solution-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    align-items: center;
}

.reason-box h3 {
    font-size: 1.5rem;
    color: var(--accent-color);
    margin-bottom: 10px;
}

.reason-box h4 {
    margin-bottom: 5px;
}

.reason-box p {
    margin-top: 0;
}

/* Service/Product Cards */
.products-section {
    background: var(--white);
}

.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 40px;
}

.product-card {
    background: var(--white);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-md);
    transition: var(--transition);
    border: 1px solid #eee;
    display: flex;
    flex-direction: column;
    text-decoration: none;
    color: inherit;
}

.product-card:hover {
    box-shadow: var(--shadow-lg);
    transform: translateY(-10px);
    text-decoration: none;
}

.product-header {
    background: var(--primary-color);
    color: var(--white);
    padding: 30px;
    text-align: center;
}

.product-header.insta-header {
    background: linear-gradient(45deg, #f09433 0%, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888 100%);
}

.product-header.line-header {
    background: #06C755;
}

.product-header.video-header {
    background: #333;
}

.product-body {
    padding: 30px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.product-body h4 {
    margin-bottom: 3px;
}

.product-body p {
    margin: 0 0 10px 0;
    line-height: 1.5;
}

.product-cta {
    margin-top: auto;
    text-align: right;
    font-weight: bold;
    color: var(--accent-color);
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 10px;
}

/* LINE CTA Button */
.line-cta-wrapper {
    position: relative;
    display: inline-block;
    margin: 20px 0;
}

.line-cta-btn {
    display: inline-block;
    padding: 18px 50px;
    background: #06C755;
    color: #fff;
    text-decoration: none;
    border-radius: 50px;
    font-weight: bold;
    font-size: 1.2rem;
    transition: var(--transition);
    box-shadow: 0 8px 25px rgba(6, 199, 85, 0.4);
    position: relative;
}

.line-cta-btn:hover {
    background: #05b34c;
    transform: translateY(-3px);
    box-shadow: 0 12px 35px rgba(6, 199, 85, 0.5);
}

.line-cta-tap {
    position: absolute;
    bottom: -15px;
    right: -30px;
    width: 60px;
    height: auto;
    pointer-events: none;
    animation: tap-bounce 1.5s ease-in-out infinite;
}

@keyframes tap-bounce {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-8px);
    }
}

/* Footer & CTA */
.final-cta {
    background: var(--bg-light);
    text-align: center;
}

footer {
    background: #111;
    color: #888;
    padding: 40px 0;
    text-align: center;
}

/* Mobile Responsive */
@media (max-width: 768px) {
    h1 {
        font-size: 1.8rem;
    }

    h2 {
        font-size: 1.6rem;
    }

    .solution-grid {
        grid-template-columns: 1fr;
    }

    .hero-badges {
        flex-direction: column;
    }

    .hero-medal-list {
        grid-template-columns: 1fr;
    }

    .medal-item {
        width: 100%;
        max-width: 100%;
    }

    /* Hero background adjustment for mobile */
    .hero {
        background-position: center top !important;
        background-size: cover !important;
        min-height: auto !important;
        padding: 40px 0 !important;
    }

    /* Problems section note text - left align on mobile */
    .problems .text-center p {
        text-align: left !important;
    }

    /* Problems Section Mobile */
    .problems .text-center h2 {
        font-size: 1.5rem;
    }

    .problem-content-grid {
        grid-template-columns: 1fr;
        position: relative;
    }

    .problem-list-overlay {
        grid-column: 1;
        background: rgba(26, 26, 46, 0.95);
        padding: 20px 15px;
        width: 100%;
    }

    .problem-overlay-wrapper {
        min-height: auto;
    }

    .problem-bg-img {
        position: relative;
        height: 250px;
        object-position: center;
    }

    .problem-card-negative {
        width: 100%;
        margin: 0;
    }

    /* Products Section Mobile - center align header */
    .products-section>.container>.text-center {
        text-align: center !important;
    }

    .products-section>.container>.text-center h2,
    .products-section>.container>.text-center p {
        text-align: center !important;
    }

    .product-grid {
        grid-template-columns: 1fr;
    }

    .btn {
        width: 100%;
        text-align: center;
    }
}

/* Common Service Page Styles */
.content-section {
    padding: 60px 0;
}

.content-section:nth-child(even) {
    background: var(--bg-light);
}

.lead-text {
    font-size: 1.3rem;
    line-height: 1.9;
    margin-bottom: 30px;
}

/* Price Table */
.price-table {
    width: 100%;
    border-collapse: collapse;
    margin: 30px 0;
    font-size: 0.95rem;
}

.price-table th,
.price-table td {
    border: 1px solid #ddd;
    padding: 12px 15px;
    text-align: left;
}

.price-table th {
    background: var(--primary-color);
    color: white;
    font-weight: 600;
}

.price-table tr:nth-child(even) {
    background: #eeeeee;
}

.price-table .price {
    color: #333;
}

/* Feature List */
.feature-list {
    list-style: none;
    padding: 0;
}

.feature-list li {
    padding: 12px 0;
    border-bottom: 1px solid #eee;
    padding-left: 25px;
    position: relative;
}

.feature-list li::before {
    content: "✓";
    position: absolute;
    left: 0;
    color: var(--accent-color);
    font-weight: bold;
}

/* Rule List */
.rule-list {
    background: #f8f9fa;
    padding: 25px;
    border-radius: 8px;
}

.rule-list h4 {
    color: var(--primary-color);
    margin-bottom: 8px;
}

.rule-list p {
    margin-bottom: 15px;
    font-size: 0.95rem;
}

/* Mobile Responsive for Tables */
@media (max-width: 768px) {
    .content-section {
        padding: 50px 0;
    }

    .content-section h2 {
        margin-bottom: 25px;
    }

    .price-table {
        font-size: 0.7rem;
        table-layout: fixed;
        width: 100%;
    }

    .price-table th:first-child,
    .price-table td:first-child {
        width: 25%;
    }

    .price-table th,
    .price-table td {
        padding: 6px 4px;
        word-break: break-word;
    }
}