/* 
 * Design Theme: "Constructed Logic"
 * Concept: Trustworthy Navy + Sophisticated Gold/Beige. 
 * Style: Modern BtoB Design Agency. High contrast, generous whitespace, geometric precision.
 */
:root {
    --c-navy: #0B1C33;
    /* Deep Navy */
    --c-navy-light: #1A3050;
    /* Lighter Navy */
    --c-gold: #C4A77D;
    /* Elegant Beige Gold */
    --c-gold-light: #E8DCC8;
    --c-text: #333333;
    /* Slightly softer black */
    --c-text-muted: #777777;
    --c-white: #ffffff;
    --c-bg-light: #F9FAFB;
    /* Cleaner light gray */

    --f-main: 'Noto Sans JP', sans-serif;
    --f-en: 'Montserrat', sans-serif;

    --ease-out: cubic-bezier(0.25, 1, 0.5, 1);
    /* Smoother ease */
}

/* Reset */
*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--f-main);
    color: var(--c-text);
    line-height: 2.0;
    /* Increased for readability */
    font-size: 15px;
    /* Slightly smaller for BtoB elegance */
    background-color: var(--c-white);
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
    letter-spacing: 0.05em;
    /* Added global spacing for sophistication */
}

a {
    text-decoration: none;
    color: inherit;
    transition: all 0.3s var(--ease-out);
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    display: block;
}

/* Typography Utilities */
.en-font {
    font-family: var(--f-en);
    letter-spacing: 0.05em;
}

.fw-bold {
    font-weight: 700;
}

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

.text-gold {
    color: var(--c-gold);
}

.text-navy {
    color: var(--c-navy);
}

/* Layout Utilities */
.container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 24px;
    position: relative;
    z-index: 2;
}

.section {
    padding: 100px 0;
    position: relative;
}

.section-dark {
    background-color: var(--c-navy);
    color: var(--c-white);
}

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

/* Animation Classes */
.fade-up {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s var(--ease-out), transform 0.8s var(--ease-out);
}

.fade-up.visible {
    opacity: 1;
    transform: translateY(0);
}

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

.section-label {
    display: block;
    font-family: var(--f-en);
    font-size: 12px;
    font-weight: 600;
    color: var(--c-gold);
    letter-spacing: 0.25em;
    text-transform: uppercase;
    margin-bottom: 20px;
}

.section-title {
    font-size: 32px;
    font-weight: 500;
    /* Lighter weight for modern feel */
    letter-spacing: 0.1em;
    line-height: 1.5;
}

.section-dark .section-title {
    color: var(--c-white);
}

.section-header::after {
    content: "";
    display: block;
    width: 1px;
    height: 40px;
    background: var(--c-gold);
    margin: 24px auto 0;
}

/* Buttons */
.btn {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    padding: 16px 48px;
    font-weight: 500;
    font-size: 14px;
    letter-spacing: 0.15em;
    position: relative;
    overflow: hidden;
    border-radius: 4px;
    /* More formal than 50px */
    transition: all 0.4s var(--ease-out);
    z-index: 1;
}

.btn span {
    position: relative;
    z-index: 2;
}

.btn-gold {
    background: var(--c-gold);
    color: var(--c-white);
    box-shadow: 0 4px 12px rgba(196, 167, 125, 0.2);
}

.btn-gold::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #b59560;
    transform: scaleX(0);
    transform-origin: right;
    transition: transform 0.4s var(--ease-out);
    z-index: 1;
}

.btn-gold:hover::before {
    transform: scaleX(1);
    transform-origin: left;
}

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

.btn-outline {
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.3);
    color: var(--c-white);
}

.btn-outline:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.5);
}

/* Header */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 80px;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(12px);
    z-index: 1000;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    transition: all 0.3s;
}

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

.logo {
    font-family: var(--f-main);
    font-size: 24px;
    font-weight: 700;
    color: var(--c-navy);
    letter-spacing: 0.05em;
}

.nav-menu a {
    font-size: 14px;
    font-weight: 500;
    margin-left: 32px;
    color: var(--c-navy);
}

.nav-menu a:hover {
    color: var(--c-gold);
}

.header-right {
    display: flex;
    align-items: center;
}

.header-btn {
    font-size: 13px;
    padding: 10px 24px;
    margin-left: 32px;
}

@media (max-width: 768px) {
    .nav-menu {
        display: none;
    }

    .header-inner {
        padding: 0 20px;
    }

    .header-btn {
        display: none;
    }
}

/* Hero */
.hero {
    position: relative;
    padding: 180px 0 120px;
    background-color: var(--c-navy);
    color: var(--c-white);
    overflow: hidden;
}

.hero-bg-lines {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0.1;
    pointer-events: none;
}

.line {
    position: absolute;
    background: rgba(255, 255, 255, 0.2);
}

.line:nth-child(1) {
    width: 1px;
    height: 100%;
    left: 15%;
    top: 0;
}

.line:nth-child(2) {
    width: 1px;
    height: 100%;
    left: 50%;
    top: 0;
}

.line:nth-child(3) {
    width: 1px;
    height: 100%;
    left: 85%;
    top: 0;
}

.line:nth-child(4) {
    width: 100%;
    height: 1px;
    top: 30%;
    left: 0;
}

.hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
}

.hero-h1-en {
    display: block;
    font-family: var(--f-en);
    font-weight: 700;
    font-size: 14px;
    letter-spacing: 0.3em;
    color: var(--c-gold);
    margin-bottom: 30px;
    text-transform: uppercase;
}

.hero h1 {
    font-size: 56px;
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 40px;
    letter-spacing: 0.05em;
}

.hero-sub {
    font-size: 24px;
    font-weight: 500;
    margin-bottom: 40px;
    display: inline-block;
    background: rgba(255, 255, 255, 0.05);
    padding: 16px 32px;
    border-left: 4px solid var(--c-gold);
}

.hero-lead {
    font-size: 16px;
    opacity: 0.8;
    margin-bottom: 60px;
    line-height: 2;
}

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

.hero-tags {
    margin-top: 60px;
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 12px;
}

.hero-tag {
    font-size: 12px;
    color: rgba(255, 255, 255, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.2);
    padding: 6px 16px;
    border-radius: 100px;
}

@media (max-width: 768px) {
    .hero h1 {
        font-size: 32px;
    }

    .hero-sub {
        font-size: 18px;
        width: 100%;
        text-align: left;
    }

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

/* Problem Section */
.problem-card {
    background: var(--c-white);
    padding: 60px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.02);
    /* Softer shadow */
    border: 1px solid rgba(0, 0, 0, 0.03);
    border-radius: 2px;
    max-width: 800px;
    margin: 0 auto;
}

.check-item {
    display: flex;
    align-items: flex-start;
    padding: 24px 0;
    border-bottom: 1px solid #f0f0f0;
    font-weight: 500;
    letter-spacing: 0.05em;
}

.check-item:last-child {
    border-bottom: none;
}

.check-item::before {
    content: "✓";
    color: var(--c-gold);
    font-weight: 900;
    margin-right: 20px;
    font-size: 18px;
    transform: translateY(2px);
}

/* Service Value */
.value-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
}

.value-card {
    background: var(--c-white);
    padding: 40px 30px;
    border-top: 3px solid var(--c-gold);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.03);
    transition: transform 0.4s;
    position: relative;
}

.value-card::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(180deg, rgba(247, 248, 250, 0) 0%, rgba(247, 248, 250, 0.8) 100%);
    opacity: 0;
    transition: opacity 0.4s;
    pointer-events: none;
}

.value-card:hover {
    transform: translateY(-10px);
}

.value-card:hover::before {
    opacity: 1;
}

.v-icon {
    font-size: 40px;
    margin-bottom: 24px;
    color: var(--c-navy);
}

.v-title {
    font-size: 20px;
    margin-bottom: 16px;
    font-weight: 700;
    line-height: 1.5;
}

.v-desc {
    font-size: 15px;
    color: var(--c-text-muted);
}

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

/* Mechanism */
.mech-grid {
    display: grid;
    gap: 2px;
    background: rgba(255, 255, 255, 0.1);
}

.mech-item {
    background: var(--c-navy);
    padding: 60px 40px;
    position: relative;
    overflow: hidden;
    transition: background 0.3s;
}

.mech-item:hover {
    background: #0f2441;
}

.mech-num {
    font-family: var(--f-en);
    font-size: 60px;
    font-weight: 700;
    color: rgba(255, 255, 255, 0.05);
    position: absolute;
    top: 20px;
    right: 20px;
    line-height: 1;
}

.mech-h3 {
    font-size: 22px;
    color: var(--c-gold);
    margin-bottom: 24px;
    position: relative;
    z-index: 2;
}

.mech-p {
    color: rgba(255, 255, 255, 0.8);
    font-size: 15px;
    position: relative;
    z-index: 2;
}

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

/* Scope */
.scope-container {
    text-align: center;
}

.scope-badge {
    display: inline-block;
    margin: 6px;
    padding: 12px 24px;
    background: var(--c-white);
    border: 1px solid #ddd;
    color: var(--c-text);
    font-size: 14px;
    font-weight: 700;
    border-radius: 4px;
}

/* Contract Viz */
.contract-box {
    background: var(--c-white);
    border: 1px solid #eee;
    padding: 50px;
}

.contract-title {
    font-size: 20px;
    color: var(--c-navy);
    border-bottom: 2px solid var(--c-gold);
    display: inline-block;
    padding-bottom: 10px;
    margin-bottom: 30px;
    font-weight: 700;
}

.contract-list li {
    position: relative;
    padding-left: 24px;
    margin-bottom: 16px;
}

.contract-list li::before {
    content: "•";
    color: var(--c-gold);
    position: absolute;
    left: 0;
    top: 0;
    font-size: 1.2em;
}

.two-col-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
}

@media (max-width: 768px) {
    .two-col-grid {
        grid-template-columns: 1fr;
    }
}

/* Case & FAQ */
.case-block {
    background: var(--c-navy);
    color: var(--c-white);
    padding: 50px;
    border-radius: 8px;
    position: relative;
}

.case-block::after {
    content: "CASE";
    position: absolute;
    bottom: 20px;
    right: 30px;
    font-family: var(--f-en);
    font-size: 80px;
    font-weight: 700;
    color: rgba(255, 255, 255, 0.03);
    pointer-events: none;
}

.case-dl {
    display: grid;
    grid-template-columns: 80px 1fr;
    gap: 20px;
    margin-bottom: 20px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    padding-bottom: 20px;
}

.case-dl:last-child {
    border: none;
    padding-bottom: 0;
}

.case-dt {
    font-weight: 700;
    color: var(--c-gold);
}

.faq-item {
    background: var(--c-white);
    margin-bottom: 16px;
    border: 1px solid #eee;
    border-radius: 4px;
}

.faq-q {
    padding: 24px;
    font-weight: 700;
    cursor: pointer;
    position: relative;
}

.faq-q::after {
    content: "+";
    position: absolute;
    right: 24px;
    color: var(--c-gold);
    font-weight: 300;
    font-size: 24px;
    top: 50%;
    transform: translateY(-55%);
    transition: transform 0.3s;
}

.faq-item.active .faq-q::after {
    transform: translateY(-55%) rotate(45deg);
}

.faq-a {
    padding: 0 24px 24px;
    color: var(--c-text-muted);
    font-size: 15px;
    display: none;
}

.faq-item.active .faq-a {
    display: block;
    animation: fadeIn 0.3s;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Form */
.form-wrapper {
    background: var(--c-white);
    padding: 60px;
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.08);
    border-radius: 8px;
    max-width: 700px;
    margin: 0 auto;
}

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

.form-label {
    display: block;
    margin-bottom: 10px;
    font-weight: 700;
    font-size: 14px;
    letter-spacing: 0.05em;
}

.form-req {
    font-size: 11px;
    color: var(--c-gold);
    border: 1px solid var(--c-gold);
    padding: 2px 6px;
    margin-left: 8px;
    vertical-align: 2px;
}

.form-control {
    width: 100%;
    padding: 16px;
    background: #F7F8FA;
    border: 1px solid transparent;
    font-size: 16px;
    transition: all 0.3s;
}

.form-control:focus {
    background: #fff;
    border-color: var(--c-navy);
    outline: none;
}

.submit-btn {
    width: 100%;
    padding: 20px;
    background: var(--c-navy);
    color: var(--c-white);
    border: none;
    font-size: 18px;
    font-weight: 700;
    letter-spacing: 0.1em;
    cursor: pointer;
    transition: background 0.3s;
}

.submit-btn:hover {
    background: #1A3050;
}

/* Footer */
.footer {
    background: var(--c-navy);
    color: rgba(255, 255, 255, 0.6);
    padding: 80px 0 30px;
    font-size: 13px;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.footer-logo {
    font-size: 24px;
    color: #fff;
    font-family: var(--f-main);
    font-weight: 700;
    margin-bottom: 30px;
    display: inline-block;
}

.footer-links a {
    color: #fff;
    margin-right: 30px;
    font-weight: 500;
}

.copyright {
    margin-top: 80px;
    text-align: center;
    font-family: var(--f-en);
    letter-spacing: 0.1em;
    opacity: 0.4;
}

/* Subpage Settings */
.sub-hero {
    padding: 140px 0 80px;
    background: var(--c-navy);
    color: var(--c-white);
    text-align: center;
}

.sub-hero h1 {
    font-size: 36px;
    font-weight: 700;
    letter-spacing: 0.1em;
    margin-bottom: 16px;
}

.sub-leadin {
    color: var(--c-gold);
    font-family: var(--f-en);
    font-weight: 700;
    letter-spacing: 0.2em;
    font-size: 14px;
    margin-bottom: 16px;
}

.page-content {
    padding: 80px 0;
    min-height: 60vh;
}

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

.table-layout th,
.table-layout td {
    border-bottom: 1px solid #eee;
    padding: 24px;
    text-align: left;
}

.table-layout th {
    width: 25%;
    color: var(--c-navy);
    font-weight: 700;
}

.privacy-section {
    margin-bottom: 40px;
}

.privacy-section h2 {
    font-size: 20px;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 2px solid var(--c-gold);
}

.privacy-section p {
    margin-bottom: 16px;
    font-size: 15px;
    color: var(--c-text-muted);
}

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

    /* Layout Reset */
    .section {
        padding: 60px 0;
    }

    .container {
        padding: 0 20px;
    }

    /* Header */
    .header {
        height: 60px;
    }

    .header-inner {
        padding: 0 16px;
    }

    .logo {
        font-size: 20px;
    }

    /* Hero */
    .hero {
        padding: 100px 0 60px;
    }

    .hero h1 {
        font-size: 28px;
        margin-bottom: 24px;
    }

    .hero-sub {
        font-size: 16px;
        padding: 12px 20px;
        margin-bottom: 30px;
        border-left-width: 3px;
    }

    .hero-lead {
        font-size: 14px;
        margin-bottom: 40px;
        text-align: left;
    }

    /* Typography */
    .section-title {
        font-size: 24px;
    }

    .section-header {
        margin-bottom: 50px;
    }

    /* Buttons */
    .btn {
        width: 100%;
        padding: 14px 20px;
    }

    /* Problem Section */
    .problem-card {
        padding: 30px 20px;
    }

    .check-item {
        font-size: 14px;
        padding: 16px 0;
    }

    /* Mechanics */
    .mech-item {
        padding: 40px 24px;
    }

    .mech-num {
        font-size: 40px;
        top: 10px;
        right: 10px;
    }

    .mech-h3 {
        font-size: 20px;
    }

    /* Case Study */
    .case-block {
        padding: 30px 20px;
    }

    .case-block::after {
        font-size: 40px;
        bottom: 10px;
        right: 10px;
    }

    .case-dl {
        grid-template-columns: 1fr;
        gap: 8px;
        border-bottom: 1px dashed rgba(255, 255, 255, 0.1);
    }

    .case-dt {
        color: var(--c-gold);
        margin-bottom: 4px;
    }

    /* Form */
    .form-wrapper {
        padding: 30px 20px;
    }

    /* Footer */
    .footer {
        padding: 60px 0 30px;
        text-align: left;
    }

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

    .footer-links {
        display: flex;
        flex-direction: column;
        gap: 16px;
        margin-top: 30px;
    }

    .footer-links a {
        margin-right: 0;
        display: block;
        padding-bottom: 10px;
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    }

    .copyright {
        text-align: left;
        margin-top: 40px;
        font-size: 10px;
    }

    /* Subpage */
    .sub-hero {
        padding: 100px 0 60px;
    }

    .sub-hero h1 {
        font-size: 24px;
    }

    .table-layout th,
    .table-layout td {
        display: block;
        width: 100%;
        padding: 12px 0;
    }

    .table-layout th {
        border-bottom: none;
        padding-bottom: 4px;
        color: var(--c-navy-light);
    }

    .table-layout td {
        padding-top: 0;
        border-bottom: 1px solid #eee;
    }

    /* Hamburger Menu Styles */
    .nav-toggle {
        display: block;
        position: relative;
        width: 30px;
        height: 20px;
        z-index: 1002;
        cursor: pointer;
    }

    .nav-toggle span {
        display: block;
        position: absolute;
        width: 100%;
        height: 2px;
        background: var(--c-navy);
        transition: all 0.3s;
    }

    .nav-toggle span:nth-child(1) {
        top: 0;
    }

    .nav-toggle span:nth-child(2) {
        top: 9px;
    }

    .nav-toggle span:nth-child(3) {
        bottom: 0;
    }

    .nav-open .nav-toggle span:nth-child(1) {
        transform: rotate(45deg);
        top: 9px;
    }

    .nav-open .nav-toggle span:nth-child(2) {
        opacity: 0;
    }

    .nav-open .nav-toggle span:nth-child(3) {
        transform: rotate(-45deg);
        bottom: 9px;
    }

    .sp-nav {
        position: fixed;
        top: 0;
        right: -100%;
        width: 80%;
        height: 100vh;
        background: var(--c-white);
        z-index: 1001;
        transition: right 0.4s var(--ease-out);
        padding: 80px 40px;
        box-shadow: -10px 0 30px rgba(0, 0, 0, 0.1);
    }

    .nav-open .sp-nav {
        right: 0;
    }

    .sp-nav a {
        display: block;
        font-size: 16px;
        font-weight: 700;
        padding: 20px 0;
        border-bottom: 1px solid #eee;
        color: var(--c-navy);
    }

    .sp-overlay {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background: rgba(0, 0, 0, 0.5);
        z-index: 1000;
        opacity: 0;
        visibility: hidden;
        transition: all 0.3s;
    }

    .nav-open .sp-overlay {
        opacity: 1;
        visibility: visible;
    }
}

/* Base styles for toggle (hidden on desktop only) */
@media (min-width: 769px) {

    .nav-toggle,
    .sp-nav,
    .sp-overlay {
        display: none;
    }
}