/*
Theme Name: RyouLP Theme
Theme URI: https://example.com/ryoulp-theme
Author: CTS Corporation
Author URI: https://example.com
Description: A custom WordPress theme for CTS Corporation recruitment LP.
Version: 1.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Tags: custom-theme, responsive
Text Domain: ryoulp-theme
*/

:root {
    --primary-blue: #005baa;
    /* CTS Blue */
    --primary-dark: #0f2350;
    --accent-green: #28a745;
    /* CTA Green */
    --text-color: #333333;
    --bg-color: #ffffff;
    --light-gray: #f9f9f9;
    --white: #ffffff;
    --font-main: "Noto Sans JP", sans-serif;
}

* {
    box-sizing: border-box;
}

body {
    font-family: var(--font-main);
    color: var(--text-color);
    background-color: var(--bg-color);
    margin: 0;
    padding: 0;
    line-height: 1.6;
    overflow-x: hidden;
    /* Prevent horizontal scroll globally */
}

h1,
h2,
h3 {
    margin: 0;
    font-weight: 700;
}

a {
    text-decoration: none;
    color: inherit;
}

ul {
    list-style: none;
    padding: 0;
}

.container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Header */
header {
    background-color: var(--white);
    padding: 15px 0;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
}

.header-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 24px;
    color: var(--primary-blue);
    font-weight: bold;
    letter-spacing: 2px;
}

.nav-menu {
    display: flex;
    gap: 20px;
    align-items: center;
}

.nav-link {
    font-size: 0.9rem;
    font-weight: bold;
    color: #555;
}

.header-cta {
    background-color: var(--accent-green);
    color: var(--white);
    padding: 10px 25px;
    border-radius: 50px;
    font-weight: bold;
    font-size: 0.9rem;
    transition: opacity 0.3s;
}

.header-cta:hover {
    opacity: 0.9;
}

/* Hero Section */
.hero {
    margin-top: 70px;
    position: relative;
    height: 600px;
    overflow: hidden;
    background-color: #f0f0f0;
}

.hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
}

.hero-bg img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, rgba(255, 255, 255, 0.1) 0%, rgba(0, 0, 0, 0.4) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero-content {
    text-align: center;
    color: var(--white);
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.7);
    z-index: 2;
    padding: 20px;
}

.group-label {
    background-color: var(--primary-blue);
    color: white;
    display: inline-block;
    padding: 5px 15px;
    border-radius: 4px;
    font-weight: bold;
    margin-bottom: 15px;
    font-size: 1rem;
    letter-spacing: 1px;
    text-shadow: none;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
}

.hero-title {
    font-size: 4.5rem;
    /* Increased from 3.5rem */
    line-height: 1.3;
    margin-bottom: 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
}

.title-line {
    display: block;
    word-break: keep-all;
    overflow-wrap: break-word;
}

.hero-title .title-line:first-child {
    white-space: nowrap;
    /* Force single line on desktop */
}

.hero-title .title-line:last-child {
    font-size: 2rem;
    /* Smaller font for second line */
}

.hero-benefits {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
    margin-bottom: 20px;
}

.hero-benefits span {
    background-color: #ffd900;
    /* Gold/Yellow for high visibility */
    color: #333;
    padding: 5px 15px;
    border-radius: 20px;
    font-weight: bold;
    font-size: 0.9rem;
    text-shadow: none;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
}

.hero-subtitle {
    font-size: 1.5rem;
    margin-bottom: 40px;
    font-weight: bold;
}

.hero-buttons {
    display: flex;
    justify-content: center;
    gap: 20px;
}

.hero-btn {
    padding: 15px 40px;
    border-radius: 50px;
    font-weight: bold;
    font-size: 1.1rem;
    transition: transform 0.2s;
    text-shadow: none;
    /* Remove text shadow inherited from hero-content */
}

.hero-btn.white {
    background-color: var(--white);
    color: var(--primary-blue);
}

.hero-btn.green {
    background-color: var(--accent-green);
    color: var(--white);
}

.hero-btn:hover {
    transform: scale(1.05);
}

/* Manga Section */
.manga-section {
    padding: 80px 0;
    background-color: var(--white);
}

.section-title {
    text-align: center;
    font-size: 2rem;
    color: var(--text-color);
    margin-bottom: 50px;
}

.manga-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 15px;
}

.manga-panel {
    border: 2px solid #333;
    background: #fff;
    aspect-ratio: 1 / 1;
    /* Square panels */
    position: relative;
    overflow: hidden;
}

.manga-panel img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.manga-placeholder {
    width: 100%;
    height: 100%;
    background: #f4f4f4;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 10px;
    text-align: center;
}

.manga-text {
    font-size: 0.9rem;
    font-weight: bold;
    color: #333;
}

.manga-cta {
    text-align: center;
    margin-top: 40px;
}

.manga-cta-btn {
    display: inline-block;
    background-color: var(--primary-blue);
    color: var(--white);
    padding: 15px 50px;
    border-radius: 50px;
    font-size: 1.2rem;
    font-weight: bold;
    box-shadow: 0 4px 10px rgba(0, 91, 170, 0.3);
    text-align: center;
    /* Ensure text is centered */
}

/* Job Info Section */
.job-info {
    padding: 80px 0;
    background-color: var(--primary-blue);
    color: var(--white);
}

.job-info .section-title {
    color: var(--white);
}

.job-content {
    display: flex;
    gap: 40px;
    align-items: center;
}

.job-img {
    flex: 1;
}

.job-img img {
    width: 100%;
    border-radius: 10px;
    border: 4px solid var(--white);
}

.job-desc {
    flex: 1;
}

.job-desc h3 {
    font-size: 1.8rem;
    margin-bottom: 20px;
    border-bottom: 2px solid rgba(255, 255, 255, 0.3);
    padding-bottom: 10px;
}

/* Staff Voices */
.voices {
    padding: 80px 0;
    background-color: var(--light-gray);
}

.voice-grid {
    display: flex;
    justify-content: center;
    gap: 30px;
}

.voice-card {
    background: var(--white);
    padding: 30px;
    border-radius: 10px;
    width: 300px;
    text-align: center;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

.voice-img {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    background-color: #ddd;
    margin: 0 auto 20px;
    overflow: hidden;
}

.voice-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.voice-text {
    font-size: 0.9rem;
    font-style: italic;
    color: #555;
}

/* Footer */
footer {
    background-color: var(--primary-blue);
    color: var(--white);
    padding: 60px 0 20px;
}

.footer-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 40px;
    margin-bottom: 40px;
}

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

.footer-form {
    width: 100%;
    max-width: 600px;
    /* Limit width for better readability */
    background: var(--white);
    padding: 40px;
    border-radius: 10px;
    color: var(--text-color);
    margin: 0 auto;
}

.form-group {
    margin-bottom: 15px;
}

.form-group input {
    width: 100%;
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 5px;
    box-sizing: border-box;
    /* Ensure padding doesn't increase width */
}

.form-submit {
    width: 100%;
    background-color: var(--accent-green);
    color: var(--white);
    border: none;
    padding: 15px;
    border-radius: 5px;
    font-weight: bold;
    cursor: pointer;
}

.copyright {
    text-align: center;
    font-size: 0.8rem;
    opacity: 0.7;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 20px;
}

.job-content.reverse-layout {
    flex-direction: row-reverse;
}

/* Responsive */
@media (max-width: 768px) {
    .hero-title {
        font-size: 1.8rem;
        padding: 0 10px;
    }

    .manga-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .job-content,
    .job-content.reverse-layout {
        flex-direction: column;
    }

    .job-desc h3 {
        text-align: center;
    }

    .voice-grid {
        flex-direction: column;
        align-items: center;
    }

    .footer-content {
        flex-direction: column;
        gap: 40px;
    }

    .footer-info,
    .footer-form {
        width: 100%;
    }

    .footer-form {
        padding: 20px;
        /* Adjust padding for mobile */
        box-sizing: border-box;
        /* Ensure padding is included in width */
    }

    .sp-br {
        display: none;
    }

    /* Mobile Header */
    header {
        position: relative;
        padding: 8px 0;
    }

    .logo {
        font-size: 18px;
    }

    .nav-menu {
        display: none;
    }

    .header-inner {
        justify-content: center;
    }

    .hero {
        margin-top: 0;
        height: auto;
        min-height: auto;
        /* Remove fixed height */
        display: block;
        overflow: hidden;
    }

    .hero-bg {
        position: absolute;
        height: 100%;
        width: 100%;
    }

    .hero-overlay {
        position: relative;
        height: auto;
        min-height: auto;
        /* Remove fixed height */
        background: rgba(0, 0, 0, 0.6);
        padding: 20px;
        display: flex;
        flex-direction: column;
        justify-content: flex-start;
        padding-top: 40px;
        /* Reduced padding */
        padding-bottom: 40px;
        /* Reduced padding */
    }

    .hero-content {
        padding: 40px 20px;
    }

    .hero-title {
        font-size: 1.8rem;
        padding: 0;
        margin-bottom: 25px;
        /* Increased from 15px */
    }

    .hero-title .title-line:first-child {
        font-size: 2.8rem;
        /* Increased from 2.3rem */
        line-height: 1.3;
        /* Increased line-height */
        margin-bottom: 10px;
        /* Add space between title lines */
        white-space: normal;
        /* Allow wrapping on mobile */
    }

    .hero-title .title-line:last-child {
        font-size: 1.6rem;
        /* Keep second line slightly smaller or standard */
    }

    .hero-subtitle {
        font-size: 1rem;
        margin-bottom: 30px;
        /* Increased from 20px */
        line-height: 1.8;
        /* Increased line-height */
    }

    .hero-benefits {
        gap: 8px;
        /* Increased gap */
        margin-bottom: 30px;
        /* Increased from 20px */
    }

    .hero-benefits span {
        font-size: 1rem;
        /* Increased from 0.8rem */
        padding: 5px 12px;
    }

    .hero-buttons {
        flex-direction: column;
        gap: 15px;
        width: 100%;
        align-items: center;
    }

    .hero-btn {
        width: 70%;
        /* Reduced from 80% */
        padding: 12px 20px;
        /* Slightly reduced padding */
        font-size: 1rem;
        white-space: nowrap;
        /* Prevent text wrapping */
        display: flex;
        justify-content: center;
        align-items: center;
        gap: 10px;
    }

    .manga-section .section-title {
        text-align: left;
    }

    .sp-br {
        display: block;
    }
}

/* Location Section */
.location-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    justify-content: center;
}

.location-card {
    border: 1px solid #ddd;
    padding: 20px;
    border-radius: 10px;
    width: 300px;
    background-color: #fff;
    display: flex;
    flex-direction: column;
}

.location-card iframe {
    margin-top: auto;
    width: 100%;
}

/* Contact Form 7 Styles */
.contact7 {
    width: 100%;
    margin-bottom: 30px;
}

.contact7 dt {
    font-weight: bold;
    margin-bottom: 8px;
    color: #333;
    display: flex;
    align-items: center;
    flex-wrap: wrap;
}

.contact7 dd {
    margin: 0 0 20px 0;
}

.contact7 input[type="text"],
.contact7 input[type="email"],
.contact7 input[type="tel"],
.contact7 textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid #ccc;
    border-radius: 5px;
    box-sizing: border-box;
    font-family: inherit;
    font-size: 1rem;
}

.contact7 textarea {
    height: 180px;
}

span.must {
    background: #ff4444;
    color: #fff;
    font-size: 0.75rem;
    padding: 3px 8px;
    border-radius: 4px;
    margin-left: 10px;
    vertical-align: middle;
}

span.optional {
    background: #999;
    color: #fff;
    font-size: 0.75rem;
    padding: 3px 8px;
    border-radius: 4px;
    margin-left: 10px;
    vertical-align: middle;
}

/* Privacy Box */
.privacy-box {
    background: #f9f9f9;
    padding: 20px;
    border: 1px solid #ddd;
    border-radius: 8px;
    margin-bottom: 25px;
    font-size: 0.9rem;
    line-height: 1.6;
    color: #555;
}

.privacy-title {
    text-align: center;
    margin: 0 0 15px 0;
    color: var(--primary-blue);
    font-size: 1.1rem;
    font-weight: bold;
}

/* Acceptance & Submit */
.acceptance-container {
    text-align: center;
    margin-bottom: 30px;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
}

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

.submit-container input[type="submit"] {
    width: 100%;
    max-width: 400px;
    background-color: var(--accent-green);
    color: var(--white);
    border: none;
    padding: 15px 30px;
    border-radius: 50px;
    font-weight: bold;
    font-size: 1.2rem;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.submit-container input[type="submit"]:hover {
    opacity: 0.9;
    transform: translateY(-2px);
    box-shadow: 0 6px 8px rgba(0, 0, 0, 0.15);
}

/* CF7 Response Output */
.wpcf7-response-output {
    border-radius: 5px;
    margin: 20px 0;
    padding: 15px !important;
    font-weight: bold;
    text-align: center;
}

/* Mobile Adjustments */
@media (max-width: 768px) {

    .contact7 input[type="text"],
    .contact7 input[type="email"],
    .contact7 input[type="tel"],
    .contact7 textarea {
        font-size: 16px;
        /* Prevent zoom on iOS */
    }

    .submit-container input[type="submit"] {
        width: 100%;
    }
}

/* LINE Apply Button Styles */
.line-apply-section {
    text-align: center;
    margin-bottom: 30px;
    background-color: #f0fdf4;
    /* Very light green bg */
    padding: 20px;
    border-radius: 10px;
    border: 2px solid #06c755;
}

.line-apply-text {
    font-weight: bold;
    color: #06c755;
    margin-bottom: 15px;
    font-size: 1.1rem;
    line-height: 1.4;
}

.line-apply-btn {
    display: inline-block;
    background-color: #06c755;
    /* LINE Green */
    color: #fff;
    padding: 15px 40px;
    border-radius: 50px;
    font-weight: bold;
    font-size: 1.2rem;
    text-decoration: none;
    transition: opacity 0.3s, transform 0.2s;
    box-shadow: 0 4px 10px rgba(6, 199, 85, 0.3);
    width: 100%;
    max-width: 400px;
}

.line-apply-btn:hover {
    opacity: 0.9;
    transform: translateY(-2px);
    color: #fff;
}

.line-apply-btn i {
    margin-right: 10px;
    font-size: 1.4rem;
    vertical-align: middle;
}

.line-separator {
    text-align: center;
    margin: 20px 0 30px;
    position: relative;
    z-index: 1;
}

.line-separator::before {
    content: "";
    position: absolute;
    top: 50%;
    left: 0;
    width: 100%;
    height: 1px;
    background-color: #ddd;
    z-index: -1;
}

.line-separator span {
    background-color: #fff;
    padding: 0 15px;
    color: #777;
    font-size: 0.9rem;
}

/* Recruitment Guidelines */
.recruitment-guidelines {
    padding: 80px 0;
    background-color: #fff;
}

.guidelines-wrapper {
    max-width: 900px;
    margin: 0 auto;
    border-top: 1px solid #ddd;
}

.guidelines-row {
    display: flex;
    border-bottom: 1px solid #ddd;
}

.guidelines-row dt {
    width: 30%;
    background-color: #f9f9f9;
    padding: 20px;
    font-weight: bold;
    display: flex;
    align-items: center;
    color: var(--primary-blue);
}

.guidelines-row dd {
    width: 70%;
    padding: 20px;
    margin: 0;
}

.guidelines-row dd p {
    margin-bottom: 10px;
}

.guidelines-row dd p:last-child {
    margin-bottom: 0;
}

@media (max-width: 768px) {
    .guidelines-row {
        flex-direction: column;
    }

    .guidelines-row dt {
        width: 100%;
        background-color: #f0f0f0;
        padding: 15px;
    }

    .guidelines-row dd {
        width: 100%;
        padding: 15px;
    }
}