/* =========================================
   Variables & Reset
   ========================================= */
:root {
    --primary-blue: #003366;
    --accent-blue: #0056b3;
    --text-black: #1a1a1a;
    --text-gray: #666666;
    --bg-white: #ffffff;
    --bg-gray: #f4f5f7;
    --border-color: #e0e0e0;
    
    --font-en: 'Cormorant Garamond', serif;
    --font-jp: 'Shippori Mincho', serif;
    --font-base: 'Noto Sans JP', sans-serif;
}

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

body {
    font-family: var(--font-base);
    color: var(--text-black);
    line-height: 1.8;
    background-color: var(--bg-white);
    -webkit-font-smoothing: antialiased;
}

body.nav-open {
    overflow: hidden;
}

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

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 40px;
    position: relative;
}

.section {
    padding: 120px 0;
}

@media (max-width: 768px) {
    .section { padding: 80px 0; }
    .container { padding: 0 20px; }
}

/* ユーティリティ */
.text-center { text-align: center; }
.text-white { color: white !important; }
.bg-gray { background-color: var(--bg-gray); }

/* 見出し */
.section-head { margin-bottom: 80px; }
.section-title-en {
    font-family: var(--font-en);
    font-size: 4rem;
    color: var(--primary-blue);
    line-height: 1;
    margin-bottom: 10px;
    font-weight: 400;
}
.section-title-jp {
    font-family: var(--font-jp);
    font-size: 1.1rem;
    color: var(--text-black);
    letter-spacing: 0.1em;
}
.text-white .section-title-en, .text-white .section-title-jp { color: white; }

@media (max-width: 768px) {
    .section-title-en { font-size: 2.5rem; }
    .section-head { margin-bottom: 50px; text-align: center;}
}

/* =========================================
   Header & Navigation
   ========================================= */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    padding: 30px 40px;
    transition: all 0.4s ease;
    color: white;
    mix-blend-mode: exclusion;
}

@media (max-width: 768px) {
    .header {
        padding: 5%;
    }
}

.header-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative;
    z-index: 1002;
}

.header.nav-active {
    mix-blend-mode: normal;
}

.logo {
    font-family: var(--font-en);
    font-size: 1.5rem;
    font-weight: 700;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}
.logo a { color: white; }

.header-menu-btn {
    display: flex;
    align-items: center;
    gap: 15px;
    cursor: pointer;
    color: white;
}

.menu-label {
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 0.1em;
}

.hamburger {
    width: 30px;
    height: 14px;
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-items: flex-end;
}

.hamburger span {
    display: block;
    height: 1px;
    background-color: currentColor;
    width: 100%;
    transition: all 0.4s;
}
.hamburger span:nth-child(2) { width: 70%; }

.header.nav-active .hamburger span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
    width: 100%;
}
.header.nav-active .hamburger span:nth-child(2) {
    transform: rotate(-45deg) translate(4px, -5px);
    width: 100%;
}

.global-nav {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background: var(--primary-blue);
    z-index: 1001;
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.4s ease, visibility 0.4s ease;
}

.global-nav.active { opacity: 1; visibility: visible; }

.nav-list {
    text-align: center;
    list-style: none;
    padding: 0;
    margin: 0;
}

.nav-link {
    display: block;
    font-family: var(--font-en);
    font-size: 1.3rem;
    color: white;
    margin: 20px 0;
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.5s ease;
    letter-spacing: 0.1em;
}

.nav-link:hover { color: #8daecf; }

.global-nav.active .nav-link { opacity: 1; transform: translateY(0); }

.global-nav.active .nav-link:nth-child(1) { transition-delay: 0.1s; }
.global-nav.active .nav-link:nth-child(2) { transition-delay: 0.15s; }
.global-nav.active .nav-link:nth-child(3) { transition-delay: 0.2s; }
.global-nav.active .nav-link:nth-child(4) { transition-delay: 0.25s; }
.global-nav.active .nav-link:nth-child(5) { transition-delay: 0.3s; }
.global-nav.active .nav-link:nth-child(6) { transition-delay: 0.35s; }
.global-nav.active .nav-link:nth-child(7) { transition-delay: 0.4s; }

/* =========================================
   Hero
   ========================================= */
.hero {
    position: relative;
    min-height: 100vh;
    background: radial-gradient(circle at 30% 50%, #004080 0%, #002244 100%);
    color: white;
    display: flex;
    align-items: center;
    overflow: hidden;
    padding-top: 80px;
}
.hero-bg-pattern {
    position: absolute;
    inset: 0;
    background-image: repeating-radial-gradient(circle at 100% 50%, transparent 0, transparent 40px, rgba(255,255,255,0.03) 41px, transparent 42px);
    pointer-events: none;
}
.hero-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
}
.hero-text { flex: 1; z-index: 2; padding-right: 20px; }
.hero-title-en {
    font-family: var(--font-en);
    font-size: 6rem;
    line-height: 0.95;
    margin-bottom: 30px;
    font-weight: 400;
}
.hero-title-jp {
    font-family: var(--font-jp);
    font-size: 1.8rem;
    margin-bottom: 30px;
    font-weight: 500;
    line-height: 1.4;
}
.hero-desc {
    font-size: 1rem;
    opacity: 0.8;
    line-height: 1.8;
    border-left: 1px solid rgba(255,255,255,0.3);
    padding-left: 20px;
}
.hero-image {
    flex: 1;
    height: 80vh;
    display: flex;
    justify-content: center;
    align-items: flex-end;
}
.hero-image img {
    max-height: 100%;
    width: auto;
    object-fit: contain;
    filter: brightness(0.9) contrast(1.1);
}
@media (max-width: 900px) {
    .hero { min-height: auto; padding: 120px 0 80px; display: block;}
    .hero-container { flex-direction: column-reverse; }
    .hero-text { margin-top: 40px; padding-right: 0;}
    .hero-title-en { font-size: 3.5rem; }
    .hero-title-jp { font-size: 5vw; }
    .hero-image { height: 40vh; width: 100%; }
    .hero-image img { width: 100%; height: 100%; object-fit: cover; object-position: top; }
}

/* =========================================
   About (2-Column Layout)
   ========================================= */
.about-wrapper {
    display: flex;
    align-items: center; /* 垂直方向中央 */
    justify-content: space-between;
    gap: 80px; /* テキストと画像の隙間 */
}

.about-info {
    flex: 1; /* 左側の幅 */
    max-width: 600px;
}

.about-head {
    margin-bottom: 40px; /* ここだけ少しマージンを狭く */
}

.lead-text {
    font-family: var(--font-jp);
    font-size: 1.5rem;
    line-height: 2;
    margin-bottom: 30px;
    color: var(--primary-blue);
}
.sub-text { font-size: 1rem; color: var(--text-gray); }

.about-image {
    flex: 1; /* 右側の幅 */
    position: relative;
}

.about-image img {
    width: 100%;
    height: auto;
    display: block;
    box-shadow: 0 20px 50px rgba(0,0,0,0.1);
    filter: grayscale(20%) contrast(1.05); /* 少し落ち着いたトーンに */
}

@media (max-width: 900px) {
    .about-wrapper {
        flex-direction: column;
        gap: 50px;
    }
    .about-info { max-width: 100%; }
    .lead-text {
        font-size: 6vw;
    }
}

/* =========================================
   Numbers
   ========================================= */
.numbers-section {
    position: relative;
    color: white;
    background-color: #002244;
}
.numbers-bg {
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, #003366 0%, #001a33 100%);
    z-index: 0;
}
.numbers-bg::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background-image: repeating-linear-gradient(45deg, transparent, transparent 20px, rgba(255,255,255,0.02) 20px, rgba(255,255,255,0.02) 21px);
}
.numbers-section .container { position: relative; z-index: 1; }
.numbers-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
    border-top: 1px solid rgba(255,255,255,0.2);
    padding-top: 60px;
}
.number-item { text-align: center; }
.num-label { font-size: 0.9rem; opacity: 0.7; margin-bottom: 10px; font-family: var(--font-jp); }
.num-value { color: white; margin-bottom: 10px; font-family: var(--font-en); }
.num-big { font-size: 4rem; font-weight: 400; }
.num-unit { font-size: 1.5rem; margin-left: 5px; }
.num-desc { font-size: 0.9rem; color: #8daecf; }
@media (max-width: 768px) {
    .numbers-grid { grid-template-columns: 1fr; gap: 60px; }
}

/* =========================================
   Service
   ========================================= */
.service-list { border-top: 1px solid var(--border-color); }
.service-row {
    display: flex;
    padding: 40px 0;
    border-bottom: 1px solid var(--border-color);
    transition: background-color 0.3s;
}
.service-row:hover { background-color: #f9f9f9; }
.service-num {
    font-family: var(--font-en);
    font-size: 1.5rem;
    color: var(--primary-blue);
    width: 80px;
    flex-shrink: 0;
    padding-top: 5px;
}
.service-info h3 {
    font-family: var(--font-jp);
    font-size: 1.5rem;
    margin-bottom: 15px;
    color: var(--primary-blue);
}
.service-info p { color: var(--text-gray); font-size: 0.95rem; }
@media (max-width: 768px) {
    .service-row { flex-direction: column; }
    .service-num { margin-bottom: 10px; }
}

/* =========================================
   Flow Section
   ========================================= */
.flow-container { max-width: 900px; margin: 0 auto; }
.flow-item { display: flex; margin-bottom: 0; }
.flow-left {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-right: 40px;
    min-width: 100px;
}
.flow-step {
    font-family: var(--font-en);
    font-size: 0.9rem;
    font-weight: 700;
    color: var(--primary-blue);
    margin-bottom: 10px;
    letter-spacing: 0.05em;
}
.flow-line {
    width: 1px;
    background-color: #cbd5e1;
    flex-grow: 1;
    min-height: 80px;
    position: relative;
}
.flow-item:last-child .flow-line { display: none; }
.flow-line::before {
    content: '';
    position: absolute;
    top: 0; left: 50%; transform: translateX(-50%);
    width: 7px; height: 7px;
    background-color: var(--primary-blue);
    border-radius: 50%;
}
.flow-item:last-child .flow-left { position: relative; }
.flow-item:last-child .flow-left::after {
    content: '';
    position: absolute;
    top: 25px; left: 50%; transform: translateX(-50%);
    width: 7px; height: 7px;
    background-color: var(--primary-blue);
    border-radius: 50%;
}
.flow-content { padding-bottom: 60px; flex: 1; }
.flow-content h3 {
    font-family: var(--font-jp);
    font-size: 1.3rem;
    margin-bottom: 10px;
    color: var(--primary-blue);
}
.flow-content p { font-size: 0.95rem; color: var(--text-gray); }
@media (max-width: 600px) {
    .flow-left { margin-right: 20px; min-width: 60px; }
    .flow-step { font-size: 0.7rem; }
    .flow-content h3 { font-size: 1.1rem; }
}

/* =========================================
   Case
   ========================================= */
.case-card-wrapper { display: flex; gap: 40px; }
.case-card {
    flex: 1;
    background: white;
    box-shadow: 0 20px 40px rgba(0,0,0,0.05);
    transition: transform 0.4s ease;
}
.case-card:hover { transform: translateY(-10px); }
.case-img { height: 250px; background-size: cover; background-position: center; }
.case-body { padding: 30px; }
.case-cat {
    display: inline-block;
    font-size: 0.75rem;
    color: var(--primary-blue);
    border: 1px solid var(--primary-blue);
    padding: 4px 12px;
    margin-bottom: 15px;
}
.case-card h3 {
    font-family: var(--font-jp);
    font-size: 1.3rem;
    margin-bottom: 15px;
    line-height: 1.4;
}
.case-card p { font-size: 0.9rem; color: var(--text-gray); }
@media (max-width: 768px) { .case-card-wrapper { flex-direction: column; } }

/* =========================================
   Contact
   ========================================= */
.contact-section {
    position: relative;
    background: url('https://images.unsplash.com/photo-1451187580459-43490279c0fa?auto=format&fit=crop&w=1600&q=80') no-repeat center center/cover;
    color: white;
    text-align: center;
    padding: 100px 0;
}
.contact-bg-overlay { position: absolute; inset: 0; background: rgba(0, 34, 68, 0.9); }
.contact-container { position: relative; z-index: 1; }
.contact-title-en { font-family: var(--font-en); font-size: 3.5rem; margin-bottom: 10px; }
.contact-title-jp { font-family: var(--font-jp); font-size: 1.5rem; margin-bottom: 30px; }
.contact-text { font-size: 1rem; opacity: 0.8; margin-bottom: 50px; line-height: 1.8; }

/* --- フォーム用スタイル追記 --- */
.contact-form {
    max-width: 800px;
    margin: 0 auto;
    text-align: left;
}

.form-row {
    display: flex;
    gap: 30px;
    margin-bottom: 25px;
}

.form-group {
    flex: 1;
    display: flex;
    flex-direction: column;
    margin-bottom: 25px;
}

.form-group label {
    font-size: 0.9rem;
    margin-bottom: 8px;
    font-weight: 500;
    font-family: var(--font-jp);
    opacity: 0.9;
}

.required {
    color: #ff6b6b;
    margin-left: 5px;
}

.form-group input,
.form-group select,
.form-group textarea {
    background: rgba(255, 255, 255, 0.05); /* 半透明の背景 */
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 4px;
    padding: 15px;
    color: white;
    font-size: 1rem;
    font-family: var(--font-base);
    transition: all 0.3s ease;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    background: rgba(255, 255, 255, 0.1);
    border-color: white;
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: rgba(255, 255, 255, 0.4);
}

/* Selectボックスの矢印カスタマイズ */
.select-wrapper {
    position: relative;
}
.select-wrapper::after {
    content: '▼';
    font-size: 0.8rem;
    color: white;
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
    pointer-events: none;
}
.form-group select {
    width: 100%;
    appearance: none;
    -webkit-appearance: none;
    cursor: pointer;
}
/* selectのoption文字色は黒にする（視認性のため） */
.form-group select option {
    background: #fff;
    color: #333;
}

/* ボタン調整 */
.contact-btn-area {
    text-align: center;
    margin-top: 20px;
}

.btn-primary {
    display: inline-block;
    background: linear-gradient(135deg, #0f3e6d 0%, #1a5c99 100%);
    color: white;
    padding: 18px 80px; /* 少し横長に */
    border: 1px solid rgba(255,255,255,0.3);
    transition: all 0.3s ease;
    text-align: center;
    cursor: pointer;
    font-family: inherit; /* フォント継承 */
}
.btn-primary:hover { background: white; color: var(--primary-blue); }
.btn-en { display: block; font-family: var(--font-en); font-size: 1.4rem; line-height: 1; }
.btn-jp { display: block; font-size: 0.8rem; margin-top: 5px; font-family: var(--font-jp); }

/* --- レスポンシブ調整 --- */
@media (max-width: 768px) {
    .contact-title-en {
        font-size: 11vw;
    }

    .contact-title-jp {
        font-size: 4vw;
    }

    .contact-text {
        font-size: 3.6vw;
    }

    .contact-section {
        padding: 16% 0;
    }

    /* フォームのスマホ対応 */
    .form-row {
        flex-direction: column;
        gap: 0;
        margin-bottom: 0;
    }
    
    .btn-primary {
        width: 100%; /* スマホでは幅いっぱい */
        padding: 18px 0;
    }
}

/* =========================================
   Footer
   ========================================= */
.footer { background-color: #0b111a; color: #555; padding: 60px 0; text-align: center; }
.footer-logo { font-family: var(--font-en); font-size: 1.5rem; color: white; margin-bottom: 20px; letter-spacing: 0.1em; }
.copyright { font-size: 0.8rem; }

/* Animations */
.fade-in { opacity: 0; transform: translateY(30px); transition: all 0.8s cubic-bezier(0.165, 0.84, 0.44, 1); }
.fade-in.visible { opacity: 1; transform: translateY(0); }



.br-sp {
    display: none;
}

.br-pc {
    display: block;
}

@media (max-width: 768px) {
    .br-sp {
        display: block;
    }

    .br-pc {
        display: none;
    }

    .menu-label {
        display: none;
    }
}



/* =========================================
   Floating Action Button (FAB)
   ========================================= */
.floating-btn {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 70px;
    height: 70px;
    background: linear-gradient(135deg, #003366 0%, #0056b3 100%); /* サイトのテーマカラー */
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 5px 20px rgba(0, 51, 102, 0.4);
    z-index: 2000; /* 最前面に表示 */
    transition: all 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

/* ホバー時の動き（少し浮き上がり、明るくなる） */
.floating-btn:hover {
    transform: translateY(-5px) scale(1.05);
    box-shadow: 0 10px 25px rgba(0, 51, 102, 0.5);
    background: linear-gradient(135deg, #004080 0%, #0066cc 100%);
}

/* アイコンの位置調整 */
.floating-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
}

/* スマホ表示時の調整 */
@media (max-width: 768px) {
    .floating-btn {
        width: 60px;
        height: 60px;
        bottom: 20px;
        right: 20px;
    }
    
    .floating-icon svg {
        width: 24px;
        height: 24px;
    }
}