@charset "UTF-8";

/* =========================================
   1. Variables
   ========================================= */
:root {
    --c-text-primary: #111827;
    --c-text-secondary: #4b5563;
    --c-accent: #7f1d1d;        /* PIVOTE RED */
    --c-bg: #ffffff;
    --c-bg-sub: #f3f4f6;
    --c-border: #e5e7eb;
    
    --font-jp: "Noto Sans JP", sans-serif;
    --font-en: "Outfit", sans-serif;
}

/* =========================================
   2. Base Setup
   ========================================= */
*, *::before, *::after {
    box-sizing: border-box;
}

body {
    font-family: var(--font-jp);
    color: var(--c-text-primary);
    background-color: var(--c-bg);
    margin: 0;
    padding: 0;
    line-height: 1.8;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

a { text-decoration: none; color: inherit; transition: all 0.2s ease; }
ul { list-style: none; padding: 0; margin: 0; }
img { max-width: 100%; height: auto; vertical-align: bottom; }
.en { font-family: var(--font-en); letter-spacing: 0.05em; }

/* =========================================
   3. Layout Utility
   ========================================= */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding-left: 32px;
    padding-right: 32px;
}

.section { 
    padding-top: 100px;
    padding-bottom: 100px;
}

@media (max-width: 768px) {
    .container {
        padding-left: 24px;
        padding-right: 24px;
    }
    .section { 
        padding-top: 60px; 
        padding-bottom: 60px; 
    }
}

/* =========================================
   4. Header
   ========================================= */
.header {
    position: fixed;
    top: 0; width: 100%;
    height: 70px;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    z-index: 1000;
    border-bottom: 1px solid var(--c-border);
    display: flex;
    align-items: center;
}
.header-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding-left: 32px;
    padding-right: 32px;
}
.logo {
    font-family: var(--font-en);
    font-weight: 700;
    font-size: 1.25rem;
    color: var(--c-text-primary);
    line-height: 1.1;
    display: inline-block;
}
.nav ul { display: flex; gap: 32px; }
.nav a { font-weight: 700; font-size: 0.9rem; color: var(--c-text-primary); }
.nav a:hover, .nav a.active { color: var(--c-accent); }

.header-cta-pc {
    background: var(--c-text-primary);
    color: white;
    padding: 8px 20px;
    border-radius: 4px;
    font-weight: 700;
    font-size: 0.85rem;
}
.header-cta:hover { background: var(--c-accent); }

@media (max-width: 768px) {
    .header-inner { padding-left: 24px; padding-right: 24px; }
}

/* =========================================
   5. Hero (Blue Sky Version)
   ========================================= */
.hero {
    position: relative;
    width: 100%;
    height: 80vh;
    min-height: 600px;
    background-image: url('images/mainimg001.jpg'); 
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: white;
    padding-top: 70px;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(0, 0, 0, 0.2); 
    z-index: 1;}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 800px;
    padding: 0 24px;
}

.hero-tag {
    display: inline-block;
    background: var(--c-accent);
    color: white;
    font-weight: 700;
    font-size: 0.9rem;
    padding: 6px 16px;
    border-radius: 50px;
    margin-bottom: 24px;
    font-family: var(--font-en);
    letter-spacing: 0.1em;
}

.hero-title {
    font-size: clamp(1.4rem, 6vw, 3.5rem);
    line-height: 1.4;
    font-weight: 900;
    margin: 0 0 30px 0;
    letter-spacing: 0.05em;
    text-shadow: 2px 2px 0px #000000;
    word-break: keep-all; 
    overflow-wrap: normal;
}

.hero-title span {
    color: #b91c1c;
    text-shadow: none;        
    position: relative;
    border-bottom: none;
    font-weight: 900;
}

.hero-desc {
    font-size: 1.2rem;
    color: rgba(255,255,255,0.95);
    margin-bottom: 40px;
    font-weight: 500;
    line-height: 1.6;
    text-shadow: 0 2px 5px rgba(0,0,0,0.5);
    padding: 0 10px;
}

.hero .btn-large {
    background-color: var(--c-accent);
    border: none;
    color: white;
    box-shadow: 0 4px 15px rgba(0,0,0,0.3);
}

.hero .btn-large:hover {
    background-color: #991b1b;
    transform: translateY(-3px);
}

/* スマホ対応 */
@media (max-width: 768px) {
    .hero { height: auto; padding: 150px 0 100px; }
    .hero-title { font-size: 2.2rem; }
    .hero-desc br { display: none; }
}

/* =========================================
   6. Numbers Bar
   ========================================= */
.numbers-bar { background: var(--c-text-primary); color: white; padding: 60px 0; }
.numbers-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 40px; text-align: center; }
.num-item { border-right: 1px solid rgba(255,255,255,0.2); padding: 0 20px; }
.num-item:last-child { border-right: none; }
.num-val { font-family: var(--font-en); font-size: 3.5rem; font-weight: 700; line-height: 1; display: block; }
.num-unit { font-size: 1rem; font-weight: 500; margin-left: 5px; }
.num-label { font-size: 0.9rem; font-weight: 700; opacity: 0.8; margin-top: 10px; display: block; }

@media (max-width: 768px) {
    .num-val { font-size: 2.5rem; }
    .numbers-grid { gap: 20px; }
}

/* =========================================
   7. Concept
   ========================================= */
.section-label { font-family: var(--font-en); font-size: 0.9rem; color: var(--c-accent); font-weight: 700; text-transform: uppercase; letter-spacing: 0.1em; margin-bottom: 16px; display: block; }
.section-heading { font-size: 2rem; font-weight: 900; margin: 0 0 60px 0; }
.concept-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; margin-top: 40px; }
.concept-card { border-radius: 16px; padding: 40px; transition: transform 0.3s; background-size: cover; background-position: center; position: relative; overflow: hidden; background-color: var(--c-bg-sub); color: var(--c-text-primary); }
.concept-card:hover { transform: translateY(-5px); }
.concept-card.has-img-bg { color: white; text-shadow: 0 2px 10px rgba(0,0,0,0.5); }
.concept-card.has-img-bg::before { content: ''; position: absolute; top: 0; left: 0; width: 100%; height: 100%; background: linear-gradient(to bottom, rgba(0,0,0,0.3), rgba(0,0,0,0.7)); z-index: 1; }
.concept-card > * { position: relative; z-index: 2; }
.concept-card.navy-bg { background-color: #0f172a; color: white; }
.concept-card.navy-bg h3, .concept-card.navy-bg p, .concept-card.navy-bg .en { color: white !important; opacity: 0.95; }
.concept-card h3 { font-size: 1.4rem; font-weight: 900; margin: 0 0 16px 0; }
.concept-card p { font-size: 0.95rem; opacity: 0.95; margin: 0; line-height: 1.8; }

@media (max-width: 768px) {
    .concept-grid { grid-template-columns: 1fr; }
    .concept-card { padding: 30px; }
}

/* =========================================
   8. Services
   ========================================= */
.service-list { display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; }
.service-item { border: 1px solid var(--c-border); border-radius: 16px; overflow: hidden; background: white; transition: box-shadow 0.3s; display: flex; flex-direction: column; }
.service-item:hover { box-shadow: 0 12px 24px -10px rgba(0,0,0,0.1); border-color: var(--c-accent); }
.service-img { width: 100%; height: 200px; object-fit: cover; border-bottom: 1px solid var(--c-border); }
.service-body { padding: 30px; flex-grow: 1; display: flex; flex-direction: column; }

.service-detail {
    scroll-margin-top: 100px;
}

.service-icon { font-family: var(--font-en); font-size: 1.2rem; color: var(--c-accent); font-weight: 900; margin-bottom: 10px; display: block; }
.service-item h3 { font-size: 1.25rem; font-weight: 900; margin: 0 0 16px 0; line-height: 1.4; }
.service-item p { font-size: 0.9rem; color: var(--c-text-secondary); line-height: 1.7; flex-grow: 1; margin-bottom: 20px; }
.tags-wrap { margin-top: auto; }
.service-tag { display: inline-block; background: #f3f4f6; padding: 4px 8px; border-radius: 4px; font-size: 0.75rem; font-weight: 700; margin-right: 8px; color: var(--c-text-secondary); }

@media (max-width: 900px) {
    .service-list { grid-template-columns: 1fr; }
}

/* =========================================
   9. About Us
   ========================================= */
.about-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; }
.about-card { background: var(--c-bg-sub); border-radius: 16px; padding: 40px; position: relative; overflow: hidden; transition: background 0.3s; display: flex; flex-direction: column; justify-content: center; min-height: 300px; }
.about-bg { position: absolute; top: 0; left: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0.1; transition: opacity 0.3s; }
    .about-card:hover .about-bg.profile-img {
    opacity: 0.25;
    transform: scale(1.05);
}
.about-card:hover .about-bg { opacity: 0.2; }
.about-content { position: relative; z-index: 2; }
.about-label { font-family: var(--font-en); font-weight: 700; color: var(--c-text-secondary); margin-bottom: 10px; display: block; }
.about-title { font-size: 1.8rem; font-weight: 900; margin-bottom: 20px; }
.about-link { font-weight: 700; border-bottom: 2px solid var(--c-text-primary); padding-bottom: 2px; display: inline-block; }

@media (max-width: 768px) {
    .about-grid { grid-template-columns: 1fr; }
}

/* =========================================
   10. Footer
   ========================================= */
.footer { background: var(--c-text-primary); color: white; padding: 80px 0 40px; text-align: center; }
.footer-cta { margin-bottom: 60px; }

.footer-cta h2 { 
    font-size: 1.25rem !important; 
    font-weight: 700 !important;
    margin-bottom: 30px !important;
    line-height: 1.8 !important;
    display: inline-block;
    width: 100%;
    max-width: 900px;
}

.btn-large {
    display: inline-block;
    background-color: var(--c-accent); 
    color: white;
    padding: 18px 48px;
    border-radius: 50px;
    font-weight: 900;
    font-size: 1.1rem;
    transition: all 0.3s ease;
    border: none;
    box-shadow: 0 4px 15px rgba(185, 28, 28, 0.4);
    letter-spacing: 0.05em;
    text-decoration: none;
}

/* ホバー時の動き */
.btn-large:hover {
    background-color: #991b1b;
    color: white;
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(185, 28, 28, 0.6);
}

.footer-social { display: flex; justify-content: center; gap: 30px; margin-bottom: 40px; flex-wrap: wrap; }
.social-link { color: #9ca3af; transition: color 0.3s; display: flex; align-items: center; gap: 8px; text-decoration: none; font-weight: 700; font-size: 0.9rem; }
.social-link:hover { color: white; }
.social-icon { width: 24px; height: 24px; fill: currentColor; }

.footer-links { display: flex; justify-content: center; gap: 30px; margin-top: 40px; padding-top: 20px; border-top: 1px solid rgba(255,255,255,0.1); }
.footer-links a { font-size: 0.8rem; color: #9ca3af; text-decoration: none; }
.footer-links a:hover { color: white; text-decoration: underline; }

.footer-copy { margin-top: 20px; font-size: 0.75rem; color: #6b7280; font-family: var(--font-en); }

@media (max-width: 768px) {
    .footer-cta h2 { font-size: 1.0rem !important; line-height: 1.6 !important; }
    .footer-links { flex-direction: column; gap: 15px; }
    .footer-social { gap: 20px; }
}

/* =========================================
   11. Privacy Policy Style
   ========================================= */
.policy-box { background: white; padding: 60px; border: 1px solid var(--c-border); border-radius: 16px; max-width: 900px; margin: 0 auto; }
.policy-item { margin-bottom: 40px; }
.policy-title { font-size: 1.2rem; font-weight: 700; margin-bottom: 15px; padding-left: 15px; border-left: 4px solid var(--c-accent); line-height: 1.4; }
.policy-text { font-size: 0.95rem; line-height: 1.8; color: var(--c-text-secondary); }
.policy-list { margin-top: 10px; padding-left: 20px; list-style: disc; color: var(--c-text-secondary); }
.policy-list li { margin-bottom: 5px; }
@media (max-width: 768px) { .policy-box { padding: 30px; } }

/* =========================================
   12. Office Outline (Profile Page)
   ========================================= */
.office-outline { margin-top: 80px; border-top: 1px solid var(--c-border); padding-top: 80px; }
.outline-table { width: 100%; border-collapse: collapse; }
.outline-table th, .outline-table td { padding: 20px; border-bottom: 1px solid var(--c-border); text-align: left; font-size: 0.95rem; }
.outline-table th { width: 30%; font-weight: 700; color: var(--c-text-primary); background: #f9fafb; }
.outline-table td { color: var(--c-text-secondary); }
@media (max-width: 768px) { 
    .outline-table th, .outline-table td { display: block; width: 100%; } 
    .outline-table th { background: transparent; padding-bottom: 5px; border-bottom: none; }
    .outline-table td { padding-top: 0; padding-bottom: 30px; }
}


/* =========================================
   13. Timeline (History) 
   ========================================= */
.timeline { 
    border-left: 2px solid var(--c-border); 
    margin-left: 10px; 
    padding-left: 40px; 
    margin-top: 40px;
}

.tl-item { 
    position: relative; 
    margin-bottom: 60px; 
}

.tl-item:last-child {
    margin-bottom: 0;
}

/* 左側の丸い点 */
.tl-item::before { 
    content: ''; 
    position: absolute; 
    left: -49px; 
    top: 5px; 
    width: 16px; 
    height: 16px; 
    background: var(--c-bg); 
    border: 4px solid var(--c-accent); 
    border-radius: 50%; 
    box-sizing: border-box;
    z-index: 1;
}

.tl-year { 
    font-family: var(--font-en); 
    font-weight: 700; 
    color: var(--c-accent); 
    display: block; 
    margin-bottom: 5px; 
}

.tl-title { 
    font-size: 1.3rem; 
    font-weight: 900; 
    margin: 0 0 10px 0; 
    color: var(--c-text-primary);
}

.tl-item p {
    margin: 0;
    font-size: 0.95rem;
    color: var(--c-text-secondary);
    line-height: 1.8;
}

/* スマホ用調整 */
@media (max-width: 768px) {
    .timeline { 
        padding-left: 25px; 
        margin-left: 5px; 
    }
    .tl-item::before { 
        left: -34px; 
    } 
}

/* =========================================
   14. Components (Sub Pages)
   ========================================= */
.page-head { padding-top: 160px; padding-bottom: 60px; background: var(--c-bg-sub); border-bottom: 1px solid var(--c-border); }
.page-title { font-family: var(--font-en); font-size: 3rem; font-weight: 900; margin: 0 0 20px 0; line-height: 1.2; letter-spacing: -0.02em; }
.page-desc { font-size: 1.1rem; color: var(--c-text-secondary); max-width: 800px; font-weight: 500; }

.service-detail.text-only { margin-bottom: 100px; padding-bottom: 80px; border-bottom: 1px solid var(--c-border); }
.service-detail:last-child { border-bottom: none; }
.sd-header { display: flex; align-items: center; gap: 20px; margin-bottom: 30px; }
.sd-icon { font-family: var(--font-en); font-size: 2rem; font-weight: 900; color: var(--c-accent); }
.sd-title { font-size: 2.5rem; font-weight: 900; margin: 0; }

.sd-body-text { max-width: 900px; margin: 0 auto; }
.lead-text { font-size: 1.1rem; line-height: 2.0; margin-bottom: 50px; color: var(--c-text-primary); font-weight: 500; border-left: 4px solid var(--c-accent); padding-left: 20px; }
.sd-sub-title { font-size: 1.2rem; font-weight: 900; margin: 0 0 20px 0; color: var(--c-text-primary); }

.sd-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; }
.sd-list li { position: relative; padding-left: 20px; margin-bottom: 12px; color: var(--c-text-secondary); }
.sd-list li::before { content: "•"; color: var(--c-accent); font-weight: bold; position: absolute; left: 0; }

.fee-section-inline { 
    background: var(--c-bg-sub); 
    padding: 40px; 
    border-radius: 12px; 
    margin-top: 60px; 
}
.fee-row { display: flex; justify-content: space-between; align-items: flex-start; border-bottom: 1px solid #e5e7eb; padding-bottom: 15px; margin-bottom: 15px; font-size: 0.9rem; }
.fee-row:last-child { border-bottom: none; margin-bottom: 0; padding-bottom: 0; }
.fee-label { font-weight: 700; min-width: 100px; padding-top: 2px; }
.fee-content { text-align: right; display: flex; flex-direction: column; }
.fee-val { font-weight: 700; color: var(--c-text-primary); font-size: 1rem; line-height: 1.4; }
.fee-note { font-size: 0.8rem; color: #64748b; margin-top: 4px; }
.text-sm { font-size: 0.9rem; color: var(--c-text-secondary); line-height: 1.6; }

.logic-title { 
    font-size: 1.2rem;
    font-weight: 700; 
    color: var(--c-accent); 
    margin-bottom: 10px;
    display: block; 
    letter-spacing: 0.05em;
}

.logic-text { font-size: 1rem; line-height: 1.8; color: var(--c-text-secondary); margin-bottom: 20px; }

@media (max-width: 900px) {
    .sd-title { font-size: 2rem; }
    .sd-cols { grid-template-columns: 1fr; gap: 30px; }
    .fee-row { flex-direction: column; align-items: flex-start; }
    .fee-content { text-align: left; margin-top: 5px; }
    .page-title { font-size: 2.5rem; }
}

/* Profile Grid */
.profile-hero-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; margin-bottom: 80px; }
@media (max-width: 768px) {
    .profile-hero-grid { grid-template-columns: 1fr; gap: 40px; }
}

/* Timeline & Form */
.card-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 40px; }
.card { background: white; border: 1px solid var(--c-border); border-radius: 16px; padding: 40px; transition: box-shadow 0.3s; }
.form-box { max-width: 700px; margin: 0 auto; }
.form-group { margin-bottom: 24px; }
.form-control { width: 100%; padding: 16px; border: 1px solid var(--c-border); border-radius: 8px; font-size: 1rem; box-sizing: border-box; }
textarea.form-control { height: 200px; resize: vertical; }
.timeline { border-left: 2px solid var(--c-border); margin-left: 10px; padding-left: 40px; }
.tl-item { position: relative; margin-bottom: 60px; }
.tl-item::before { content: ''; position: absolute; left: -49px; top: 5px; width: 16px; height: 16px; background: var(--c-bg); border: 4px solid var(--c-accent); border-radius: 50%; }
.tl-year { font-family: var(--font-en); font-weight: 700; color: var(--c-accent); display: block; margin-bottom: 5px; }
.tl-title { font-size: 1.5rem; font-weight: 700; margin: 0 0 10px 0; }

@media (max-width: 768px) {
    .card-grid { grid-template-columns: 1fr; }
    .timeline { padding-left: 25px; }
    .tl-item::before { left: -34px; } 
}

/* =========================================
   16. Mobile Menu (Hamburger)
   ========================================= */

/* --- 共通設定 --- */
.hamburger { display: none; } /* PCでは非表示 */
.header-cta-mobile { display: none; } /* PCではメニュー内のボタン非表示 */

/* --- スマホ表示 (768px以下) --- */
@media (max-width: 768px) {
    
    /* 1. ハンバーガーボタンの出現 */
    .hamburger {
        display: block;
        position: relative;
        width: 48px;
        height: 48px;
        background: transparent;
        border: none;
        cursor: pointer;
        z-index: 1100;
    }
    
    /* 3本線のデザイン */
    .hamburger span {
        display: block;
        width: 26px;
        height: 2px;
        background-color: var(--c-text-primary);
        position: absolute;
        left: 50%;
        transform: translateX(-50%);
        transition: all 0.3s;
    }
    .hamburger span:nth-child(1) { top: 16px; }
    .hamburger span:nth-child(2) { top: 23px; }
    .hamburger span:nth-child(3) { top: 30px; }

    /* 開いた時の×印アニメーション */
    .hamburger.active span:nth-child(1) { top: 23px; transform: translateX(-50%) rotate(45deg); }
    .hamburger.active span:nth-child(2) { opacity: 0; }
    .hamburger.active span:nth-child(3) { top: 23px; transform: translateX(-50%) rotate(-45deg); }

    /* 2. PC用のボタンを消す */
    .header-cta-pc { display: none; }

    /* 3. ナビゲーションメニューのスマホ化 */
    .nav {
        position: fixed;
        top: 70px; /* ヘッダーの高さ分下げる */
        left: 0;
        width: 100%;
        height: calc(100vh - 70px);
        background: rgba(255, 255, 255, 0.98); /* 背景白 */
        transform: translateX(100%); /* 最初は右に隠す */
        transition: transform 0.3s ease-in-out;
        z-index: 1000;
        display: flex;
        flex-direction: column;
        justify-content: center; /* 上下中央寄せ */
        align-items: center;
    }

    /* メニューが開いた時 */
    .nav.active {
        transform: translateX(0); /* 出てくる */
    }

    .nav ul {
        flex-direction: column; /* 縦並び */
        gap: 30px;
        text-align: center;
    }

    .nav a {
        font-size: 1.5rem; /* 文字大きく */
        font-weight: 900;
        font-family: var(--font-en);
    }

    /* スマホメニュー内のContactボタン */
    .header-cta-mobile {
        display: inline-block;
        background: var(--c-accent);
        color: white !important;
        padding: 12px 40px;
        border-radius: 50px;
        margin-top: 20px;
        font-size: 1.2rem !important;
    }
}