/* Modern Clean CSS for kozin Website Renewal */

:root {
    --primary-color: #2143a0;
    --primary-dark: #1a3680;
    --primary-light: #3b82f6;
    --text-color: #1e293b;
    --text-light: #64748b;
    --bg-light: #f8fafc;
    --bg-white: #ffffff;
    --accent-red: #dc2626;
    --accent-red-hover: #b91c1c;
    --border-color: #e2e8f0;
    --max-width: 1200px;
    --font-family: '游ゴシック体', YuGothic, '游ゴシック Medium', 'Yu Gothic Medium', sans-serif;
}

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

body {
    font-family: var(--font-family);
    color: var(--text-color);
    background-color: var(--bg-light);
    line-height: 1.7;
}

.container {
    width: 100%;
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 20px;
}

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

/* Header */
.site-header {
    background-color: var(--bg-white);
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 15px 20px;
}

.logo {
    height: 48px;
    display: block;
}

.main-navigation .menu {
    display: flex;
    list-style: none;
    gap: 25px;
}

.main-navigation .menu a {
    text-decoration: none;
    color: var(--text-color);
    font-weight: 500;
    font-size: 15px;
    transition: color 0.3s;
}

.main-navigation .menu a:hover,
.main-navigation .menu a.active {
    color: var(--primary-color);
}

/* Hero Section (Index) */
.hero-section {
    position: relative;
    height: 450px;
    background-image: url('../images/index-hero-building.jpg');
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero-overlay {
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(15, 23, 42, 0.6);
}

.hero-content {
    position: relative;
    z-index: 1;
    color: var(--bg-white);
    text-align: center;
    padding: 0 20px;
}

.hero-content h1 {
    font-size: 2.2rem;
    font-weight: 700;
    line-height: 1.4;
}

.hero-content .highlight {
    color: #93c5fd;
    border-bottom: 2px solid #93c5fd;
}

/* Page Title Banner */
.page-title-banner {
    background-color: var(--primary-color);
    color: var(--bg-white);
    padding: 40px 0;
    text-align: center;
}

.page-title-banner h1 {
    font-size: 2rem;
    margin-bottom: 5px;
}

.page-title-banner .subtitle {
    font-size: 1.1rem;
    opacity: 0.8;
}

/* Main Content Structure */
.main-content {
    padding: 60px 20px;
}

.section-title {
    text-align: center;
    font-size: 1.8rem;
    margin-bottom: 40px;
    position: relative;
    padding-bottom: 10px;
    color: var(--primary-color);
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background-color: var(--primary-color);
}

/* Services Grid (Index) */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
    gap: 30px;
}

.service-card {
    background: var(--bg-white);
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 6px rgba(0,0,0,0.05);
    transition: transform 0.3s, box-shadow 0.3s;
}

.service-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 15px rgba(0,0,0,0.1);
}

.card-image img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    display: block;
}

.card-content {
    padding: 25px;
}

.card-content h3 {
    font-size: 1.2rem;
    margin-bottom: 12px;
    color: var(--primary-color);
}

.card-content h3 .sub-title {
    font-size: 0.95rem;
    color: var(--text-light);
}

.card-content p {
    color: var(--text-light);
    font-size: 14px;
    margin-bottom: 20px;
}

.btn-link {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 600;
    font-size: 14px;
}

/* Article & Blocks (Renewal Page) */
.page-article {
    max-width: 800px;
    margin: 0 auto;
}

.intro-lead {
    font-size: 1.15rem;
    margin-bottom: 40px;
    color: var(--text-light);
}

.content-block {
    background: var(--bg-white);
    padding: 40px;
    border-radius: 8px;
    margin-bottom: 30px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.02);
}

.content-block h2 {
    font-size: 1.4rem;
    color: var(--primary-color);
    margin-bottom: 20px;
    border-left: 4px solid var(--primary-color);
    padding-left: 12px;
}

.content-block h2 i {
    margin-right: 8px;
}

.warning-box {
    background-color: #fef2f2;
    border-left: 4px solid #ef4444;
    padding: 20px;
    margin: 20px 0;
    border-radius: 0 4px 4px 0;
}

.warning-box ul {
    list-style: none;
}

.warning-box li {
    margin-bottom: 10px;
    color: #991b1b;
}

.warning-box li:last-child { margin-bottom: 0; }
.warning-box i { margin-right: 8px; }

.modern-quote {
    background-color: #f0fdf4;
    border-left: 4px solid #22c55e;
    padding: 25px;
    margin: 25px 0;
}

.modern-quote strong {
    display: block;
    color: #166534;
    font-size: 1.1rem;
    margin-bottom: 5px;
}

.accent-bg-block {
    background-color: #eff6ff;
    border: 1px solid #bfdbfe;
}

.cta-msg {
    margin-top: 15px;
    font-size: 1.1rem;
    color: var(--primary-dark);
}

.btn-primary {
    display: inline-block;
    background-color: var(--primary-color);
    color: var(--bg-white);
    padding: 12px 30px;
    text-decoration: none;
    border-radius: 4px;
    font-weight: 600;
    transition: background 0.3s;
}

.btn-primary:hover {
    background-color: var(--primary-dark);
}

/* Songai Page Styles */
.songai-hero {
    background-size: cover;
    background-position: center;
    padding: 80px 20px;
    text-align: center;
}

.hero-badge {
    display: inline-block;
    background-color: var(--accent-red);
    color: var(--bg-white);
    padding: 4px 12px;
    font-size: 12px;
    font-weight: 700;
    border-radius: 4px;
    margin-bottom: 15px;
}

.songai-hero h1 {
    font-size: 2.2rem;
    color: #0f172a;
    margin-bottom: 10px;
}

.problems-section {
    background: var(--bg-white);
    padding: 40px;
    border-radius: 8px;
    margin-bottom: 50px;
}

.problems-container {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 40px;
}

.problems-img {
    flex: 1;
    min-width: 280px;
}

.problems-img img {
    width: 100%;
    max-height: 250px;
    object-fit: contain;
}

.problems-list {
    flex: 1.5;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.bubble-think {
    background-color: #f1f5f9;
    padding: 15px 20px;
    border-radius: 8px;
    font-size: 15px;
    font-weight: 500;
    position: relative;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    margin-bottom: 50px;
}

.feature-card {
    background: var(--bg-white);
    padding: 35px 25px;
    text-align: center;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.02);
}

.feature-icon {
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 15px;
}

.feature-card h3 {
    margin-bottom: 10px;
    color: var(--primary-color);
}

/* Flow Section */
.flow-container {
    display: flex;
    flex-wrap: wrap;
    gap: 40px;
    background: var(--bg-white);
    padding: 40px;
    border-radius: 8px;
    margin-bottom: 50px;
}

.flow-main {
    flex: 1.5;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.flow-side-img {
    flex: 1;
    min-width: 280px;
}

.flow-side-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 4px;
}

.flow-step {
    display: flex;
    gap: 20px;
    align-items: flex-start;
}

.step-number {
    background-color: var(--primary-color);
    color: var(--bg-white);
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    flex-shrink: 0;
}

.step-content h4 {
    font-size: 1.1rem;
    margin-bottom: 2px;
}

.step-content p {
    color: var(--text-light);
    font-size: 14px;
}

/* Area Section */
.area-section {
    background: var(--bg-white);
    padding: 40px;
    border-radius: 8px;
    margin-bottom: 50px;
}

.area-container {
    display: flex;
    flex-wrap: wrap;
    gap: 40px;
    align-items: center;
}

.area-text {
    flex: 1.2;
}

.area-list {
    list-style: none;
    margin: 20px 0;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.area-list li {
    padding-left: 20px;
    position: relative;
}

.area-list li::before {
    content: '■';
    color: var(--primary-color);
    position: absolute;
    left: 0;
}

.area-note {
    font-size: 14px;
    color: var(--text-light);
}

.area-img {
    flex: 1;
    min-width: 280px;
}

.area-img img {
    width: 100%;
    border-radius: 4px;
}

/* Company Section Table */
.company-section {
    background: var(--bg-white);
    padding: 40px;
    border-radius: 8px;
    margin-bottom: 50px;
}

.company-table {
    width: 100%;
    border-collapse: collapse;
}

.company-table th,
.company-table td {
    padding: 15px 20px;
    border-bottom: 1px solid var(--border-color);
    text-align: left;
}

.company-table th {
    width: 25%;
    background-color: #f8fafc;
    color: var(--text-color);
    font-weight: 600;
}

/* Contact CTA */
.contact-cta {
    background-color: #0f172a;
    color: var(--bg-white);
    padding: 50px 40px;
    border-radius: 8px;
}

.contact-cta h2 {
    font-size: 1.8rem;
    margin-bottom: 10px;
}

.contact-cta p {
    opacity: 0.8;
    margin-bottom: 30px;
}

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

.btn-cta {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 15px 35px;
    text-decoration: none;
    color: var(--bg-white);
    border-radius: 6px;
    font-weight: 600;
    font-size: 1.1rem;
    min-width: 280px;
    transition: opacity 0.3s;
}

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

.btn-tel { background-color: var(--primary-color); }
.btn-email { background-color: var(--accent-red); }

.btn-cta .sub {
    font-size: 11px;
    font-weight: 400;
    opacity: 0.7;
    margin-top: 2px;
}

/* Footer */
.site-footer {
    background-color: var(--bg-white);
    border-top: 1px solid var(--border-color);
    padding: 40px 0;
    color: var(--text-light);
    font-size: 14px;
}

.footer-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
}

.footer-logo {
    height: 35px;
    margin-bottom: 10px;
}

/* Responsive Queries */
@media (max-width: 768px) {
    .header-container {
        flex-direction: column;
        gap: 15px;
    }
    .main-navigation .menu {
        gap: 15px;
        flex-wrap: wrap;
        justify-content: center;
    }
    .hero-content h1 {
        font-size: 1.6rem;
    }
    .problems-container,
    .flow-container,
    .area-container {
        flex-direction: column;
    }
    .company-table th,
    .company-table td {
        display: block;
        width: 100%;
    }
    .company-table th {
        border-bottom: none;
        padding-bottom: 5px;
    }
    .footer-container {
        flex-direction: column;
        text-align: center;
    }
}

/* ---- New Slider Styles ---- */
.hero-slider {
    position: relative;
    height: 550px;
    width: 100%;
    overflow: hidden;
    background-color: #000;
}

.hero-slide {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    opacity: 0;
    transition: opacity 1.5s ease-in-out;
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 0;
}

.hero-slide.active {
    opacity: 1;
    z-index: 1;
}

.hero-slide-overlay {
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(15, 23, 42, 0.55);
    z-index: 1;
}

.hero-slide-content {
    position: relative;
    z-index: 2;
    color: #fff;
    text-align: center;
    padding: 0 20px;
    transform: translateY(20px);
    opacity: 0;
    transition: all 1s ease 0.5s;
}

.hero-slide.active .hero-slide-content {
    transform: translateY(0);
    opacity: 1;
}

.hero-slide-content h2 {
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 15px;
    letter-spacing: 2px;
}

.hero-slide-content p {
    font-size: 1.4rem;
    font-weight: 500;
}

/* Slider Controls */
.slider-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255,255,255,0.2);
    color: #fff;
    border: none;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    font-size: 1.5rem;
    cursor: pointer;
    z-index: 3;
    transition: background 0.3s;
}

.slider-btn:hover { background: rgba(255,255,255,0.5); }
.prev-btn { left: 20px; }
.next-btn { right: 20px; }

.slider-dots {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 10px;
    z-index: 3;
}

.dot {
    width: 12px;
    height: 12px;
    background: rgba(255,255,255,0.5);
    border-radius: 50%;
    cursor: pointer;
    transition: background 0.3s;
}

.dot.active { background: #fff; }

/* ---- Projects Gallery Styles ---- */
.projects-gallery {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 25px;
    margin-top: 40px;
}

.project-item {
    background: var(--bg-white);
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 6px rgba(0,0,0,0.05);
}

.project-item img {
    width: 100%;
    height: 220px;
    object-fit: cover;
    display: block;
    transition: transform 0.4s ease;
}

.project-item:hover img {
    transform: scale(1.08);
}

.project-info {
    padding: 20px;
}

.project-info h3 {
    font-size: 1.1rem;
    color: var(--primary-dark);
    margin-bottom: 5px;
}

.project-cat {
    font-size: 0.9rem;
    color: var(--text-light);
}

/* Responsive updates for slider */
@media (max-width: 768px) {
    .hero-slide-content h2 { font-size: 2.2rem; }
    .hero-slide-content p { font-size: 1.1rem; }
}
