@charset "UTF-8";

/* --- 1. Base Variables & Reset --- */
:root {
    /* Palette: Deep Navy & Muted Gold */
    --primary-bg: #0f172a;
    /* Darkest Navy */
    --primary-text: #1e293b;
    /* Slate 800 */
    --accent-gold: #c5a059;
    /* Elegant Gold */
    --accent-gold-light: #e6c88b;
    --bg-light: #f4f4f5;
    /* Very Light Gray */
    --white: #ffffff;
    --border-color: #e2e8f0;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Noto Sans JP', sans-serif;
    color: var(--primary-text);
    line-height: 2.0;
    /* ゆったりとした行間 */
    margin: 0;
    padding: 0;
    background-color: var(--white);
    -webkit-font-smoothing: antialiased;
}

h1,
h2,
h3,
h4,
.serif {
    font-family: 'Noto Serif JP', serif;
    letter-spacing: 0.08em;
    /* 高級感を出すために文字間を広げる */
}

a {
    text-decoration: none;
    transition: all 0.4s ease;
    color: inherit;
}

/* --- 2. Layout & Utilities --- */
.container {
    max-width: 1140px;
    margin: 0 auto;
    padding: 0 24px;
}

.container-sm {
    max-width: 800px;
    margin: 0 auto;
    padding: 0 24px;
}

.section {
    padding: 100px 0;
}

.bg-light {
    background-color: var(--bg-light);
}

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

/* Image Overlay Helper */
.overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(15, 23, 42, 0.6);
    /* Dark Navy Overlay */
    z-index: 1;
}

/* Grid System */
.grid {
    display: grid;
    gap: 40px;
}

@media (min-width: 768px) {
    .grid-2 {
        grid-template-columns: 1fr 1fr;
    }

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

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

@media (min-width: 1024px) {
    .grid-4 {
        grid-template-columns: repeat(4, 1fr);
    }
}

/* --- 3. Header (Glassmorphism & Responsive) --- */
header {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    position: fixed;
    width: 100%;
    top: 0;
    left: 0;
    z-index: 1000;
    height: 80px;
    display: flex;
    align-items: center;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.header-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    max-width: 1140px;
    margin: 0 auto;
    padding: 0 24px;
}

.logo {
    font-size: 1.6rem;
    font-weight: 700;
    color: var(--primary-bg);
    font-family: 'Noto Serif JP', serif;
    z-index: 1001;
    /* Above mobile menu */
}

/* Navigation - Default (Desktop) */
.nav-menu {
    display: flex;
    align-items: center;
    gap: 30px;
}

.nav-link {
    font-size: 0.9rem;
    font-weight: 500;
    position: relative;
    cursor: pointer;
}

.nav-link::after {
    content: '';
    position: absolute;
    width: 0;
    height: 1px;
    bottom: -5px;
    left: 0;
    background: var(--accent-gold);
    transition: width 0.3s;
}

.nav-link:hover::after {
    width: 100%;
}

.header-cta {
    background-color: var(--primary-bg);
    color: var(--accent-gold) !important;
    border: 1px solid var(--primary-bg);
    padding: 12px 28px;
    border-radius: 2px;
    font-weight: 600;
    font-size: 0.9rem;
    letter-spacing: 0.05em;
    transition: all 0.3s;
}

.header-cta:hover {
    background-color: transparent;
    color: var(--primary-bg) !important;
}

/* Mobile Hamburger Menu */
.hamburger {
    display: none;
    cursor: pointer;
    z-index: 1001;
}

.hamburger div {
    width: 25px;
    height: 3px;
    background: var(--primary-bg);
    margin: 5px 0;
    transition: 0.4s;
}

/* Mobile Responsive Styles */
@media (max-width: 768px) {
    .hamburger {
        display: block;
    }

    .nav-menu {
        position: fixed;
        top: 0;
        right: -100%;
        width: 70%;
        height: 100vh;
        background: #fff;
        flex-direction: column;
        justify-content: center;
        box-shadow: -5px 0 15px rgba(0, 0, 0, 0.1);
        transition: 0.4s cubic-bezier(0.4, 0, 0.2, 1);
        padding-top: 60px;
        display: flex;
    }

    .nav-menu.active {
        right: 0;
    }

    /* Hamburger Animation */
    .hamburger.active div:nth-child(1) {
        transform: rotate(-45deg) translate(-5px, 6px);
    }

    .hamburger.active div:nth-child(2) {
        opacity: 0;
    }

    .hamburger.active div:nth-child(3) {
        transform: rotate(45deg) translate(-5px, -6px);
    }

    /* Adjust Hero Text on Mobile */
    .hero-content h1 {
        font-size: 2rem;
    }

    .section-title {
        font-size: 1.8rem;
    }

    /* Stack grid items on mobile */
    .grid-2,
    .grid-3,
    .grid-4 {
        grid-template-columns: 1fr;
    }

    /* Adjust CEO grid */
    .ceo-grid {
        grid-template-columns: 1fr;
    }
}

/* --- 4. Hero Section (Parallax & Cinematic) --- */
.hero {
    background-image: url('https://images.unsplash.com/photo-1504307651254-35680f356dfd?ixlib=rb-1.2.1&auto=format&fit=crop&w=2000&q=80');
    background-attachment: fixed;
    /* Parallax Effect */
    background-position: center;
    background-size: cover;
    height: 90vh;
    /* Full screen impact */
    min-height: 600px;
    display: flex;
    align-items: center;
    position: relative;
    color: var(--white);
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 800px;
}

.hero-tag {
    border: 1px solid var(--accent-gold);
    color: var(--accent-gold);
    padding: 8px 16px;
    font-size: 0.85rem;
    letter-spacing: 0.15em;
    display: inline-block;
    margin-bottom: 24px;
    background: rgba(0, 0, 0, 0.2);
}

.hero-content h1 {
    font-size: 2.8rem;
    line-height: 1.4;
    margin-bottom: 24px;
    font-weight: 600;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.hero-content p {
    font-size: 1.1rem;
    margin-bottom: 40px;
    opacity: 0.9;
}

.btn-gold {
    background: linear-gradient(135deg, var(--accent-gold), #a3823b);
    color: var(--white);
    padding: 18px 40px;
    font-size: 1.1rem;
    border-radius: 2px;
    display: inline-block;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.15);
}

.btn-gold:hover {
    transform: translateY(-2px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.2);
}

/* Sub Hero (For subpages) */
.sub-hero {
    background: var(--primary-bg);
    color: white;
    height: 350px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    margin-top: 80px;
    /* Offset for fixed header */
}

/* --- 5. Titles Design --- */
.section-header {
    margin-bottom: 60px;
    text-align: center;
}

.section-subtitle {
    color: var(--accent-gold);
    font-size: 0.9rem;
    letter-spacing: 0.2em;
    display: block;
    margin-bottom: 16px;
    font-weight: 600;
}

.section-title {
    font-size: 2.2rem;
    color: var(--primary-bg);
    margin: 0;
    position: relative;
    display: inline-block;
    padding-bottom: 20px;
}

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

/* Utility for Left Align Header */
.section-header-left {
    text-align: left;
    margin-bottom: 40px;
}

.section-header-left .section-title {
    display: inline-block;
    position: relative;
    padding-bottom: 15px;
}

.section-header-left .section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    transform: none;
    width: 60px;
    height: 3px;
    background-color: var(--accent-gold);
}

/* --- 6. Problem Section (Minimalist) --- */
.problem-card {
    background: var(--white);
    padding: 40px 30px;
    border: 1px solid var(--border-color);
    position: relative;
    transition: 0.4s;
    height: 100%;
}

.problem-card:hover {
    border-color: var(--accent-gold);
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
}

.problem-num {
    font-size: 3rem;
    font-family: 'Noto Serif JP', serif;
    color: rgba(197, 160, 89, 0.2);
    /* Faded Gold */
    position: absolute;
    top: 20px;
    right: 20px;
    font-weight: 700;
}

.problem-card h3 {
    font-size: 1.4rem;
    margin-bottom: 20px;
    color: var(--primary-bg);
    position: relative;
    z-index: 1;
}

/* --- 7. Parallax Divider Image --- */
.parallax-divider {
    background-image: url('https://images.unsplash.com/photo-1581094794329-c8112a89af12?ixlib=rb-1.2.1&auto=format&fit=crop&w=2000&q=80');
    background-attachment: fixed;
    background-size: cover;
    background-position: center;
    height: 400px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.divider-text {
    position: relative;
    z-index: 2;
    color: white;
    font-size: 1.8rem;
    font-family: 'Noto Serif JP', serif;
    text-align: center;
    padding: 0 20px;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
}

/* --- 8. Service Section (Image Cards) --- */
.service-card {
    background: var(--white);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    transition: 0.4s;
    overflow: hidden;
    /* For Image Zoom */
    border-radius: 4px;
}

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

.service-img-wrapper {
    height: 200px;
    overflow: hidden;
    position: relative;
}

.service-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s;
}

.service-card:hover .service-img {
    transform: scale(1.1);
    /* Zoom Effect */
}

.service-body {
    padding: 30px;
}

.service-step {
    color: var(--accent-gold);
    font-weight: 700;
    font-size: 0.8rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    margin-bottom: 10px;
    display: block;
}

.service-body h3 {
    font-size: 1.3rem;
    margin-bottom: 15px;
    color: var(--primary-bg);
}

.service-body p {
    font-size: 0.95rem;
    color: #64748b;
    line-height: 1.8;
}

/* --- 9. FAQ Section --- */
.faq-item {
    margin-bottom: 20px;
    border-bottom: 1px solid var(--border-color);
}

summary {
    padding: 24px 0;
    cursor: pointer;
    font-weight: 600;
    font-size: 1.1rem;
    position: relative;
    list-style: none;
    color: var(--primary-bg);
    transition: 0.3s;
}

summary:hover {
    color: var(--accent-gold);
}

summary::-webkit-details-marker {
    display: none;
}

summary::after {
    content: '+';
    position: absolute;
    right: 10px;
    font-weight: 300;
    font-size: 1.5rem;
    color: var(--accent-gold);
}

details[open] summary::after {
    content: '-';
}

.faq-content {
    padding: 0 0 30px 0;
    color: #475569;
    font-size: 1rem;
    line-height: 1.9;
}

/* --- 10. CEO & Company (Magazine Style) --- */
.ceo-section {
    background-color: var(--white);
    position: relative;
    overflow: hidden;
}

.ceo-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 60px;
    align-items: start;
    /* Fix: changed from center to start to remove whitespace */
}

@media (min-width: 900px) {
    .ceo-grid {
        grid-template-columns: 1fr 1fr;
    }
}

.ceo-image-container {
    position: relative;
}

/* Stylish Border Frame */
.ceo-image-container::before {
    content: '';
    position: absolute;
    top: 20px;
    left: -20px;
    width: 100%;
    height: 100%;
    border: 2px solid var(--accent-gold);
    z-index: 0;
    display: none;
}

@media (min-width: 768px) {
    .ceo-image-container::before {
        display: block;
    }
}

.ceo-img {
    width: 100%;
    height: auto;
    min-height: 500px;
    object-fit: cover;
    position: relative;
    z-index: 1;
    filter: sepia(10%) contrast(105%);
    /* slightly refined tone */
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
}

.quote-box {
    border-left: 3px solid var(--accent-gold);
    padding-left: 20px;
    /* Reduced from 30px to look more aligned */
    margin: 30px 0;
}

.quote-text {
    font-size: 1.2rem;
    font-family: 'Noto Serif JP', serif;
    color: var(--primary-bg);
    line-height: 1.8;
    font-style: italic;
}

/* Company Table */
.company-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.95rem;
}

.company-table th {
    width: 30%;
    text-align: left;
    padding: 20px 0;
    border-bottom: 1px solid var(--border-color);
    color: var(--primary-bg);
    font-weight: 600;
}

.company-table td {
    padding: 20px 0;
    border-bottom: 1px solid var(--border-color);
    color: #475569;
}

/* --- 11. CTA (Full Width Image) --- */
.cta-section {
    background-image: url('https://images.unsplash.com/photo-1454165804606-c3d57bc86b40?ixlib=rb-1.2.1&auto=format&fit=crop&w=1950&q=80');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    padding: 120px 0;
    position: relative;
    color: white;
    text-align: center;
}

.cta-content {
    position: relative;
    z-index: 2;
}

/* --- 12. Footer --- */
footer {
    background: var(--primary-bg);
    color: #94a3b8;
    padding: 80px 0 30px;
    font-size: 0.9rem;
}

.footer-logo {
    font-size: 1.8rem;
    color: var(--white);
    font-family: 'Noto Serif JP', serif;
    margin-bottom: 20px;
    display: inline-block;
}

.footer-links {
    margin: 40px 0;
    display: flex;
    justify-content: center;
    gap: 40px;
    flex-wrap: wrap;
}

.footer-links a:hover {
    color: var(--accent-gold);
}

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

/* --- Forms (For Contact Page) --- */
.form-group {
    margin-bottom: 30px;
}

label {
    display: block;
    font-weight: bold;
    margin-bottom: 10px;
    color: var(--primary-bg);
}

input[type="text"],
input[type="email"],
textarea {
    width: 100%;
    padding: 15px;
    border: 1px solid #ccc;
    border-radius: 4px;
    font-size: 1rem;
    font-family: inherit;
    box-sizing: border-box;
    /* Important for width: 100% */
}

textarea {
    height: 200px;
    resize: vertical;
}

button[type="submit"] {
    background: linear-gradient(135deg, var(--accent-gold), #a3823b);
    color: white;
    border: none;
    padding: 18px 50px;
    font-size: 1.1rem;
    font-weight: bold;
    cursor: pointer;
    display: block;
    margin: 0 auto;
    transition: 0.3s;
    width: 100%;
    max-width: 300px;
    border-radius: 2px;
}

button[type="submit"]:hover {
    opacity: 0.9;
    transform: translateY(-2px);
}

/* Privacy Box Small */
.privacy-box {
    background: #f8fafc;
    padding: 20px;
    font-size: 0.8rem;
    height: 150px;
    overflow-y: scroll;
    border: 1px solid #ddd;
    margin-bottom: 20px;
    color: #666;
}

/* Privacy Page Content */
.privacy-content h2 {
    font-size: 1.3rem;
    margin-top: 40px;
    margin-bottom: 15px;
    color: var(--primary-bg);
    border-left: 4px solid var(--accent-gold);
    padding-left: 15px;
}

.privacy-content p {
    margin-bottom: 20px;
    font-size: 1rem;
}