/* 
  KY1 Studio Clone Styles
  Replicating layout from: https://ky1kateikyoshi.studio.site 
*/

/* Variables */
:root {
    --primary-navy: #1F2E4D;
    --primary-green: #31A564;
    --accent-btn: #F0503D;
    /* Studio style orange-red */
    --accent-btn-hover: #D64230;
    --bg-white: #FFFFFF;
    --bg-light: #F7F7F7;
    /* Studio light background */
    --text-main: #333333;
    --text-sub: #777777;
    --border-color: #E2E8F0;
    --font-family: 'Noto Sans JP', sans-serif;
    --transition: all 0.25s ease;
}

/* Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: var(--font-family);
}

html {
    scroll-behavior: smooth;
    color: var(--text-main);
    background-color: var(--bg-white);
}

body {
    line-height: 1.8;
    font-size: 16px;
    letter-spacing: 0.5px;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* Layout */
.container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 40px;
}

section {
    padding: 100px 0;
}

.bg-light {
    background-color: var(--bg-light);
}

@media (max-width: 768px) {
    .container {
        padding: 0 20px;
    }

    section {
        padding: 60px 0;
    }
}

/* Section Headers */
.section-header {
    text-align: center;
    margin-bottom: 60px;
}

.section-en {
    display: block;
    color: var(--text-sub);
    font-size: 0.9rem;
    font-weight: 500;
    margin-bottom: 5px;
    letter-spacing: 1px;
}

.section-title {
    font-size: 2.2rem;
    font-weight: 700;
    color: var(--text-main);
}

/* Header & Nav */
.header {
    position: fixed;
    top: 0;
    width: 100%;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(5px);
    z-index: 1000;
    border-bottom: 1px solid var(--border-color);
}

.header-container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 15px 40px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo-text {
    font-size: 28px;
    font-weight: 900;
    color: var(--primary-navy);
    letter-spacing: -1px;
}

.logo-text span {
    color: var(--primary-green);
}

.nav-menu ul {
    display: flex;
    gap: 32px;
}

.nav-menu a {
    font-size: 0.95rem;
    font-weight: 500;
    color: var(--text-main);
}

.nav-menu a:hover {
    color: var(--text-sub);
}

/* Hero Section */
.hero {
    background-color: var(--bg-light);
    min-height: calc(100vh - 80px);
    /* Fill screen minus header */
    padding-top: 150px;
    /* Offset for header */
    display: flex;
    align-items: center;
}

.hero-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 60px;
}

.hero-content {
    flex: 1;
    max-width: 500px;
}

.hero-label {
    display: inline-block;
    color: var(--text-sub);
    font-size: 0.9rem;
    margin-bottom: 10px;
}

.hero-lead {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--primary-navy);
    line-height: 1.6;
    margin-bottom: 15px;
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 700;
    line-height: 1.3;
    margin-bottom: 30px;
    color: var(--text-main);
}

.hero-desc {
    margin-bottom: 40px;
}

.hero-benefits {
    list-style: none;
    padding: 0;
    margin-top: 10px;
}

.hero-benefits li {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--text-main);
    margin-bottom: 12px;
    display: flex;
    align-items: center;
}

.hero-benefits .check {
    color: var(--primary-green);
    font-size: 1.3rem;
    font-weight: 900;
    margin-right: 10px;
}

.hero-cta-wrapper {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.hero-microcopy {
    margin-top: 12px;
    font-size: 0.85rem;
    color: var(--text-sub);
    font-weight: 500;
    background: rgba(255, 255, 255, 0.7);
    padding: 8px 15px;
    border-radius: 20px;
    border: 1px solid var(--border-color);
}

.btn-primary {
    display: inline-flex;
    align-items: center;
    background-color: var(--accent-btn);
    color: #fff;
    padding: 16px 32px;
    border-radius: 8px;
    font-weight: 700;
    font-size: 1rem;
    box-shadow: 0 4px 10px rgba(240, 80, 61, 0.2);
}

.btn-primary .arrow {
    margin-left: 10px;
    transition: transform 0.2s;
}

.btn-primary:hover {
    background-color: var(--accent-btn-hover);
    color: #fff;
}

.btn-primary:hover .arrow {
    transform: translateX(5px);
}

.hero-image {
    flex: 1;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.08);
}

.hero-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

@media (max-width: 900px) {
    .hero-container {
        flex-direction: column;
        padding-top: 50px;
    }

    .hero-title {
        font-size: 2.8rem;
    }

    .hero-cta-wrapper {
        align-items: center;
        text-align: center;
    }

    .hero-microcopy {
        font-size: 0.8rem;
    }
}

/* Target Audience Grid */
.target-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    max-width: 1000px;
    margin: 0 auto;
}

.target-card {
    background: #fff;
    padding: 25px;
    border-radius: 12px;
    border: 1px solid var(--primary-navy);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    text-align: left;
}

.target-card h3 {
    color: var(--primary-navy);
    font-size: 1.1rem;
    margin-bottom: 10px;
    border-bottom: 2px solid var(--primary-green);
    display: inline-block;
    padding-bottom: 5px;
}

.target-card p {
    font-size: 0.95rem;
    color: var(--text-main);
    line-height: 1.6;
}

@media (max-width: 768px) {
    .target-grid {
        grid-template-columns: 1fr;
    }
}

/* Features Section */
.features-container {
    display: flex;
    gap: 60px;
    align-items: center;
}

.features-content {
    flex: 1;
}

.features-intro {
    margin-bottom: 40px;
    color: var(--text-main);
    line-height: 2;
}

.feature-cards {
    display: grid;
    grid-template-columns: 1fr;
    gap: 30px;
}

.feature-card {
    display: flex;
    gap: 20px;
    background: #fff;
    padding: 30px;
    border-radius: 12px;
    border: 1px solid var(--border-color);
}

.feature-icon {
    width: 32px;
    height: 32px;
    background: var(--primary-green);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    flex-shrink: 0;
}

.feature-text h3 {
    font-size: 1.2rem;
    margin-bottom: 10px;
}

.feature-text p {
    color: var(--text-sub);
    font-size: 0.95rem;
}

.features-image {
    flex: 1;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
}

.features-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

@media (max-width: 900px) {
    .features-container {
        flex-direction: column;
    }
}

.recommended-section {
    background: #fff;
    padding: 40px;
    border-radius: 12px;
    margin-top: 60px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
    border-top: 4px solid var(--primary-green);
}

.recommended-title {
    text-align: center;
    color: var(--primary-navy);
    font-size: 1.4rem;
    margin-bottom: 30px;
}

.recommended-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
}

.recommended-list li {
    display: flex;
    align-items: center;
    font-size: 1.05rem;
    color: var(--text-main);
    background: var(--bg-light);
    padding: 15px 20px;
    border-radius: 8px;
    transition: transform 0.2s;
}

.recommended-list li:hover {
    transform: translateX(5px);
}

.check-icon {
    color: var(--primary-green);
    font-weight: 900;
    margin-right: 12px;
    font-size: 1.2rem;
}

/* Price Section */
.price-comparison {
    display: flex;
    gap: 40px;
    max-width: 800px;
    margin: 0 auto;
}

.price-col {
    flex: 1;
    text-align: center;
}

.price-col-header {
    font-weight: 700;
    font-size: 1.2rem;
    margin-bottom: 20px;
    padding: 10px;
    border-bottom: 2px solid var(--border-color);
}

.price-col-header.highlight {
    color: var(--primary-navy);
    border-bottom-color: var(--primary-navy);
}

.price-bar-container {
    display: flex;
    flex-direction: column;
    gap: 15px;
    margin-top: auto;
}

.bar-overhead,
.bar-salary {
    padding: 20px;
    border-radius: 8px;
    font-weight: 700;
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
}

.bar-overhead {
    background-color: #fcebeb;
    color: #d32f2f;
}

.bar-difference {
    height: 55px;
    /* Adjust height so general matches KY1 total */
    border: 2px dashed #d32f2f;
    border-radius: 8px;
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    background-color: transparent;
}

.bar-salary {
    background-color: #e8f5e9;
    color: #2e7d32;
}

.bar-overhead.high {
    height: 230px;
}

.bar-overhead.low {
    height: 60px;
}

.bar-salary.low {
    height: 90px;
}

.bar-salary.high {
    height: 190px;
}

.badge {
    position: absolute;
    right: -20px;
    top: 50%;
    transform: translateY(-50%);
    background: var(--text-main);
    color: white;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.8rem;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

.bar-difference .badge.down {
    right: auto;
    left: 50%;
    transform: translate(-50%, -50%);
    top: 50%;
    position: absolute;
}

.badge.down {
    background: var(--accent-btn);
}

.badge.up {
    background: var(--primary-green);
}

@media (max-width: 600px) {
    .price-comparison {
        gap: 15px;
        /* Keep side-by-side, but reduce gap */
    }

    .price-col-header {
        font-size: 0.85rem;
        padding: 5px;
    }

    .bar-overhead,
    .bar-salary {
        padding: 10px;
        font-size: 0.85rem;
    }

    .badge {
        right: -5px;
        font-size: 0.7rem;
        padding: 4px 8px;
    }

    .bar-difference .badge.down {
        font-size: 0.8rem;
        font-weight: 700;
    }
}

/* Pricing & Comparison Tables */
.ky1-table {
    width: 100%;
    max-width: 800px;
    margin: 0 auto;
    border-collapse: collapse;
    background: #fff;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    border-radius: 8px;
    overflow: hidden;
}

.ky1-table th, .ky1-table td {
    padding: 15px 20px;
    border-bottom: 1px solid var(--border-color);
    text-align: left;
}

.ky1-table th {
    background-color: #f0f4f8;
    color: var(--primary-navy);
    font-weight: 700;
    width: 30%;
}

.ky1-table td {
    color: var(--text-main);
}

.ky1-table.comparison th {
    text-align: center;
    background-color: var(--primary-navy);
    color: #fff;
}

.ky1-table.comparison tbody th {
    background-color: #f0f4f8;
    color: var(--primary-navy);
    text-align: left;
}

.ky1-table.comparison td {
    text-align: center;
}

.ky1-table.comparison .highlight-col {
    background-color: rgba(49, 165, 100, 0.05);
    font-weight: 700;
    color: var(--primary-navy);
}

.ky1-table.comparison thead .highlight-col {
    background-color: var(--primary-green);
    color: #fff;
}

@media (max-width: 600px) {
    .ky1-table th, .ky1-table td {
        padding: 10px;
        font-size: 0.9rem;
    }
}

/* Achievements */
.achievements-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.achievement-stat {
    background: #fff;
    margin-top: 40px;
}

.achievement-card {
    background: #fff;
    border-radius: 12px;
    padding: 30px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    border-top: 5px solid var(--primary-green);
    display: flex;
    flex-direction: column;
}

.ach-header {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-bottom: 20px;
}

.ach-badge {
    background-color: var(--primary-navy);
    color: #fff;
    font-size: 0.85rem;
    font-weight: 700;
    padding: 6px 12px;
    border-radius: 20px;
    align-self: flex-start;
}

.ach-subject {
    font-weight: 700;
    color: var(--text-main);
    font-size: 1.1rem;
}

.ach-result {
    display: flex;
    align-items: baseline;
    justify-content: center;
    gap: 15px;
    margin-bottom: 25px;
    padding-bottom: 20px;
    border-bottom: 1px dashed var(--border-color);
}

.ach-result .before {
    font-size: 1.5rem;
    color: var(--text-sub);
    text-decoration: line-through;
}

.ach-result .arrow {
    font-size: 1.5rem;
    color: var(--primary-green);
    font-weight: 700;
}

.ach-result .after {
    font-size: 2.2rem;
    font-weight: 900;
    color: var(--accent-btn);
}

.ach-details {
    margin-bottom: 20px;
}

.ach-details p {
    font-size: 0.95rem;
    color: var(--text-main);
    margin-bottom: 8px;
    line-height: 1.6;
}

.ach-details strong {
    color: var(--primary-navy);
}

.ach-comment {
    background-color: rgba(49, 165, 100, 0.05);
    padding: 15px;
    border-radius: 8px;
    flex-grow: 1;
}

.ach-comment p {
    font-size: 0.95rem;
    color: var(--text-main);
    line-height: 1.6;
    font-style: italic;
}

@media (max-width: 900px) {
    .achievements-cards {
        grid-template-columns: 1fr;
    }
}

/* Flow Section */
.flow-steps {
    max-width: 600px;
    margin: 0 auto;
}

.flow-step {
    background: #fff;
    padding: 30px;
    border-radius: 12px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.03);
    border: 1px solid var(--border-color);
}

.step-number {
    font-size: 1.5rem;
    font-weight: 900;
    color: var(--primary-green);
    margin-bottom: 10px;
}

.step-content h3 {
    font-size: 1.2rem;
    margin-bottom: 10px;
}

.step-content p {
    color: var(--text-sub);
    font-size: 0.95rem;
}

.flow-arrow {
    text-align: center;
    color: var(--border-color);
    font-size: 24px;
    margin: 15px 0;
    height: 100%;
    z-index: 1000;
}

/* FAQ Section */
.faq-list {
    max-width: 800px;
    margin: 0 auto;
}

.faq-item {
    border-bottom: 1px solid var(--border-color);
    margin-bottom: 15px;
}

.faq-q {
    padding: 20px 0;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: color 0.3s;
}

.faq-q h3 {
    font-size: 1.1rem;
    color: var(--primary-navy);
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 15px;
}

.q-mark {
    color: var(--primary-green);
    font-size: 1.4rem;
    font-weight: 900;
}

.toggle-icon {
    font-size: 1.5rem;
    color: var(--primary-green);
    transition: transform 0.3s;
}

.faq-item.active .toggle-icon {
    transform: rotate(45deg);
}

.faq-a {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease, padding 0.4s ease;
}

.faq-item.active .faq-a {
    max-height: 300px;
    padding-bottom: 25px;
}

.faq-a p {
    font-size: 0.95rem;
    color: var(--text-main);
    line-height: 1.8;
    background-color: #f9f9f9;
    padding: 20px;
    border-radius: 8px;
    display: flex;
    gap: 15px;
    align-items: flex-start;
}

.a-mark {
    color: var(--accent-btn);
    font-size: 1.2rem;
    font-weight: 900;
}

/* Contact Section */
.form-container {
    max-width: 700px;
}

.contact-intro {
    text-align: center;
    margin-bottom: 40px;
    color: var(--text-sub);
}

.line-contact {
    text-align: center;
    background: #fff;
    padding: 60px 40px;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
}

.line-text {
    font-size: 1.1rem;
    color: var(--text-main);
    margin-bottom: 30px;
    line-height: 1.8;
}

.btn-line {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background-color: #06C755;
    /* Official LINE Green */
    color: #ffffff;
    padding: 20px 40px;
    border-radius: 8px;
    font-size: 1.2rem;
    font-weight: 700;
    text-decoration: none;
    transition: transform 0.2s, box-shadow 0.2s;
    box-shadow: 0 4px 15px rgba(6, 199, 85, 0.3);
}

.btn-line:hover {
    color: #ffffff;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(6, 199, 85, 0.4);
}

.line-icon {
    margin-right: 12px;
}

.contact-actions {
    display: flex;
    flex-direction: column;
    gap: 15px;
    align-items: center;
}

.btn-line,
.btn-form {
    width: 100%;
    max-width: 480px;
}

.btn-form {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background-color: var(--primary-navy);
    color: #ffffff;
    padding: 20px 40px;
    border-radius: 8px;
    font-size: 1.2rem;
    font-weight: 700;
    text-decoration: none;
    transition: transform 0.2s, box-shadow 0.2s;
    box-shadow: 0 4px 15px rgba(45, 58, 84, 0.3);
}

.btn-form:hover {
    color: #ffffff;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(45, 58, 84, 0.4);
}

.form-icon {
    margin-right: 12px;
}

@media (max-width: 600px) {
    .line-contact {
        padding: 40px 20px;
    }

    .btn-line,
    .btn-form {
        width: 100%;
        padding: 16px 20px;
        font-size: 1.1rem;
    }
}

/* Footer */
.footer {
    background: var(--primary-navy);
    color: #fff;
    padding: 40px 0;
    text-align: center;
}

.footer-logo .logo-text {
    color: #fff;
}

.copyright {
    color: rgba(255, 255, 255, 0.5);
    font-size: 0.85rem;
    margin-top: 15px;
}

/* Mobile Nav */
.hamburger {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    flex-direction: column;
    gap: 6px;
    z-index: 1001;
}

.hamburger span {
    width: 30px;
    height: 2px;
    background: var(--primary-navy);
    transition: var(--transition);
}

@media (max-width: 768px) {
    .header-container {
        padding: 15px 20px;
    }

    .hamburger {
        display: flex;
    }

    .nav-menu {
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background: rgba(255, 255, 255, 0.98);
        box-shadow: 0 10px 20px rgba(0, 0, 0, 0.05);
        border-top: 1px solid var(--border-color);
        clip-path: polygon(0 0, 100% 0, 100% 0, 0 0);
        transition: clip-path 0.3s ease-out;
    }

    .nav-menu.active {
        clip-path: polygon(0 0, 100% 0, 100% 100%, 0 100%);
    }

    .nav-menu ul {
        flex-direction: column;
        align-items: center;
        padding: 20px 0;
        gap: 20px;
    }

    /* Hamburger Animation */
    .hamburger.active span:nth-child(1) {
        transform: translateY(8px) rotate(45deg);
    }

    .hamburger.active span:nth-child(2) {
        opacity: 0;
    }

    .hamburger.active span:nth-child(3) {
        transform: translateY(-8px) rotate(-45deg);
    }
}

/* Utility Animations */
.fade-in-up {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-in-up.visible {
    opacity: 1;
    transform: translateY(0);
}