/* =========================================
   Base Styles & Reset
========================================= */
html { scroll-behavior: smooth; }
body {
    font-family: 'Helvetica Neue', Arial, 'Hiragino Kaku Gothic ProN', 'Hiragino Sans', Meiryo, sans-serif;
    line-height: 1.9;
    color: #1e293b;
    margin: 0;
    padding: 0;
    background-color: #f8fafc;
    letter-spacing: 0.05em;
    overflow-x: hidden; /* 画面全体の不要な横揺れを防止 */
}
.container {
    max-width: 1100px; /* 4列が窮屈にならないよう最大幅を少し拡張 */
    margin: 0 auto;
    padding: 0 20px;
    box-sizing: border-box;
}
section {
    padding: 100px 0;
    background-color: #fff;
    margin-bottom: 2px;
    overflow: hidden; /* セクション内のはみ出しを防止 */
}
.bg-light { background-color: #f1f5f9; }
img { max-width: 100%; height: auto; display: block; }

/* Headings - Corporate Luxury Style */
h2 {
    text-align: center;
    font-size: 2rem;
    margin-bottom: 50px;
    color: #030e1b;
    position: relative;
    display: inline-block;
    padding-bottom: 15px;
    font-weight: 700;
    max-width: 100%;
}
h2::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 4px;
    background: linear-gradient(90deg, #dfba86, #b48a53); /* Corporate Beige Gold */
    border-radius: 2px;
}
.text-center { text-align: center; }

/* =========================================
   Sticky Header & Header CTA
========================================= */
.header-fixed {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background-color: #030e1b;
    box-shadow: 0 2px 10px rgba(0,0,0,0.2);
    z-index: 1000;
    padding: 10px 0;
}
.header-fixed .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.header-logo {
    height: 45px;
    max-width: 60%;
}
.header-cta-btn {
    background: linear-gradient(135deg, #f97316 0%, #ea580c 100%);
    color: #fff;
    font-weight: bold;
    text-decoration: none;
    padding: 8px 20px;
    font-size: 0.9rem;
    border-radius: 50px;
    box-shadow: 0 4px 10px rgba(234, 88, 12, 0.3);
    transition: all 0.3s ease;
    white-space: nowrap;
}
.header-cta-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(234, 88, 12, 0.4);
    background: linear-gradient(135deg, #ea580c 0%, #c2410c 100%);
}

/* =========================================
   CTA / Submit Button Style
========================================= */
.cta-btn-base {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #f97316 0%, #ea580c 100%);
    color: #fff;
    font-weight: bold;
    text-decoration: none;
    border-radius: 50px;
    box-shadow: 0 10px 20px rgba(234, 88, 12, 0.3);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    border: none;
    cursor: pointer;
    max-width: 100%;
    box-sizing: border-box;
    white-space: nowrap; /* ボタン内テキストの勝手な2行改行を防止 */
}
.cta-btn-base::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 50%;
    height: 100%;
    background: linear-gradient(to right, rgba(255,255,255,0) 0%, rgba(255,255,255,0.3) 50%, rgba(255,255,255,0) 100%);
    transform: skewX(-25deg);
    transition: all 0.7s ease;
}
.cta-btn-base:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 25px rgba(234, 88, 12, 0.4);
}
.cta-btn-base:hover::after {
    left: 200%;
}

/* FV CTA specific */
.cta-btn {
    padding: 20px 50px;
    font-size: 1.5rem;
}
.micro-copy {
    display: block;
    font-size: 0.95rem;
    margin-top: 15px;
    color: #64748b;
    font-weight: bold;
}

/* =========================================
   First View (FV)
========================================= */
.fv {
    background-image:
        linear-gradient(rgba(3, 14, 27, 0.6), rgba(3, 14, 27, 0.7)),
        url('../img/hero.png');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    text-align: center;
    padding: 180px 20px 120px;
    position: relative;
    border-bottom: 5px solid #dfba86;
}
/* iOS Safari など、background-attachment: fixed が正しく描画されず
   FV画像が表示されない端末（タッチ端末）では scroll に切り替える */
@media (hover: none) and (pointer: coarse) {
    .fv { background-attachment: scroll; }
}
.fv .catchphrase {
    display: inline-block;
    background-color: #dfba86;
    color: #030e1b;
    padding: 8px 24px;
    border-radius: 30px;
    font-weight: bold;
    font-size: 1rem;
    margin-bottom: 20px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
}
.fv h1 {
    font-size: 3.2rem;
    color: #ffffff;
    margin: 10px 0 20px;
    line-height: 1.3;
}
.fv .sub-title {
    font-size: 1.3rem;
    margin-bottom: 50px;
    font-weight: bold;
    color: #ffffff;
}

/* FV Badges */
.fv-points {
    display: flex;
    justify-content: center;
    gap: 30px;
    flex-wrap: wrap;
    margin-bottom: 40px;
}
.fv-point {
    background: linear-gradient(135deg, #030e1b 0%, #112240 100%);
    width: 160px;
    height: 160px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    font-weight: bold;
    color: #fff;
    box-shadow: 0 10px 20px rgba(0,0,0,0.3);
    border: 3px solid #dfba86;
    line-height: 1.4;
    font-size: 1.05rem;
    position: relative;
    box-sizing: border-box;
}
.fv-point::before {
    content: '';
    position: absolute;
    top: -6px; left: -6px; right: -6px; bottom: -6px;
    border: 1px dashed #dfba86;
    border-radius: 50%;
}
.fv-point .pt-label {
    color: #dfba86;
    font-size: 1.2rem;
    margin-bottom: 5px;
    letter-spacing: 0.1em;
}

/* =========================================
   Cards & Grids
========================================= */
.grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr); /* PC表示時にきっちり1行4列にする */
    gap: 20px;
    box-sizing: border-box;
    width: 100%;
}
.card {
    background: #fff;
    padding: 35px 22px;
    border-radius: 12px;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 1px solid #e2e8f0;
    border-top: 5px solid #030e1b;
    box-sizing: border-box;
}
.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(3, 14, 27, 0.08);
}
.card h3 {
    margin-top: 0;
    color: #030e1b;
    font-size: 1.15rem;
    border-bottom: 1px dashed #e2e8f0;
    padding-bottom: 10px;
    margin-bottom: 15px;
}

/* =========================================
   Trust Section
========================================= */
.trust {
    background: #030e1b;
    color: #fff;
    text-align: center;
    padding: 100px 20px;
}
.trust h2 { color: #fff; margin-bottom: 30px;}
.trust h2::after { background: #dfba86; }
.trust p { font-size: 1.1rem; max-width: 800px; margin: 0 auto; line-height: 2; color: #cbd5e1; }

/* =========================================
   Table Responsive Wrapper
========================================= */
.table-responsive {
    width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    margin-top: 30px;
}
table {
    width: 100%;
    border-collapse: collapse;
    background: #fff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 6px rgba(0,0,0,0.02);
    border: 1px solid #e2e8f0;
}
th, td {
    border: 1px solid #e2e8f0;
    padding: 25px;
    text-align: left;
    box-sizing: border-box;
}
th {
    background-color: #f8fafc;
    width: 30%;
    font-weight: bold;
    color: #030e1b;
    font-size: 1.1rem;
}
td strong { color: #c2410c; font-size: 1.1rem; display: block; margin-bottom: 5px; }

/* =========================================
   Achievements Badges
========================================= */
.achievements {
    display: flex;
    justify-content: center;
    gap: 30px;
    flex-wrap: wrap;
    margin-top: 40px;
    box-sizing: border-box;
}
.badge {
    text-align: center;
    background: #fff;
    border: 2px solid #e2e8f0;
    border-radius: 50%;
    width: 220px;
    height: 220px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    box-shadow: 0 10px 25px rgba(0,0,0,0.02);
    box-sizing: border-box;
}
.badge .badge-title { font-size: 1.1rem; color: #030e1b; font-weight: bold; margin-bottom: 5px; }
.badge .badge-desc { font-size: 0.95rem; color: #64748b; font-weight: bold; margin-top: 5px; }
.badge .number {
    display: block;
    font-size: 3rem;
    font-weight: bold;
    color: #ea580c;
    line-height: 1.2;
}

/* 中間CTAボックス */
.mid-cta-box {
    background: #f8fafc;
    padding: 50px 20px;
    border-radius: 12px;
    border: 1px solid #cbd5e1;
    width: 100%;
    box-sizing: border-box;
}
.mid-cta-box .cta-text-primary {
    font-size: 1.15rem;
    font-weight: bold;
    margin-bottom: 30px;
    color: #030e1b;
    white-space: nowrap; /* PC表示での勝手な改行を防止 */
}

/* =========================================
   Flow (Steps)
========================================= */
.flow-container {
    max-width: 700px;
    margin: 0 auto;
    position: relative;
    padding-left: 30px;
    box-sizing: border-box;
}
.flow-container::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 2px;
    background: #cbd5e1;
}
.step-card {
    background: #fff;
    padding: 25px;
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.02);
    margin-bottom: 25px;
    position: relative;
    border: 1px solid #e2e8f0;
    box-sizing: border-box;
}
.step-card::before {
    content: '';
    position: absolute;
    left: -36px;
    top: 32px;
    width: 10px;
    height: 10px;
    background: #030e1b;
    border-radius: 50%;
    border: 3px solid #fff;
}
.step-card h3 {
    color: #030e1b;
    margin-top: 0;
    font-size: 1.2rem;
}

/* =========================================
   FAQ (Accordion)
========================================= */
.faq-wrapper { max-width: 800px; margin: 0 auto; box-sizing: border-box;}
details {
    background: #fff;
    border: 1px solid #e2e8f0;
    margin-bottom: 15px;
    border-radius: 8px;
    padding: 20px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.01);
    transition: all 0.3s;
    box-sizing: border-box;
}
details[open] { border-color: #030e1b; box-shadow: 0 4px 10px rgba(3, 14, 27, 0.05); }
summary {
    font-weight: bold;
    font-size: 1.1rem;
    cursor: pointer;
    list-style: none;
    color: #030e1b;
    display: flex;
    justify-content: space-between;
    align-items: center;
}
summary::-webkit-details-marker { display: none; }
summary::after {
    content: '+';
    font-size: 1.5rem;
    color: #dfba86;
    transition: transform 0.3s;
}
details[open] summary::after { content: '−'; }
details p {
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px dashed #cbd5e1;
    color: #475569;
}

/* =========================================
   Form Section (Contact)
========================================= */
.form-container {
    background: #fff;
    border-radius: 12px;
    padding: 40px;
    max-width: 650px;
    margin: 40px auto 0;
    box-shadow: 0 15px 30px rgba(0,0,0,0.15);
    color: #334155;
    text-align: left;
    box-sizing: border-box;
}
.form-group {
    margin-bottom: 25px;
}
.form-group label {
    display: block;
    font-weight: bold;
    margin-bottom: 10px;
    color: #030e1b;
}
.form-group label span.required {
    background: #b91c1c;
    color: #fff;
    font-size: 0.8rem;
    padding: 3px 8px;
    border-radius: 4px;
    margin-left: 10px;
    vertical-align: middle;
    font-weight: normal;
}
.form-group label span.optional {
    background: #64748b;
    color: #fff;
    font-size: 0.8rem;
    padding: 3px 8px;
    border-radius: 4px;
    margin-left: 10px;
    vertical-align: middle;
    font-weight: normal;
}
.form-control {
    width: 100%;
    padding: 15px;
    border: 1px solid #cbd5e1;
    border-radius: 6px;
    font-size: 1rem;
    box-sizing: border-box;
    transition: border-color 0.3s, box-shadow 0.3s;
    font-family: inherit;
    color: #030e1b;
}
.form-control:focus {
    outline: none;
    border-color: #030e1b;
    box-shadow: 0 0 0 3px rgba(3,14,27,0.1);
}

select.form-control {
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" viewBox="0 0 24 24" fill="none" stroke="%23030e1b" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><polyline points="6 9 12 15 18 9"></polyline></svg>');
    background-repeat: no-repeat;
    background-position: right 15px center;
    padding-right: 40px;
    cursor: pointer;
}

.radio-btn-group {
    display: flex;
    gap: 15px;
}
.radio-btn-wrapper {
    flex: 1;
}
.radio-btn-wrapper input[type="radio"] {
    display: none;
}
.radio-btn-wrapper label {
    display: block;
    text-align: center;
    padding: 15px;
    border: 1px solid #cbd5e1;
    border-radius: 6px;
    cursor: pointer;
    font-weight: bold;
    color: #475569;
    background-color: #f8fafc;
    transition: all 0.2s;
    margin-bottom: 0;
    box-sizing: border-box;
}
.radio-btn-wrapper input[type="radio"]:checked + label {
    background-color: #f1f5f9;
    color: #030e1b;
    border-color: #030e1b;
}

textarea.form-control {
    resize: vertical;
    min-height: 120px;
}

.form-submit-wrapper {
    margin-top: 30px;
    text-align: center;
}
.submit-btn-orange {
    width: 100%;
    padding: 20px;
    font-size: 1.4rem;
}

/* =========================================
   Contact Section (overrides)
========================================= */
.contact-section {
    background: linear-gradient(135deg, #030e1b 0%, #112240 100%);
    color: #fff;
    padding: 100px 0;
}
.contact-section h2 {
    color: #fff;
    border-bottom: none;
    margin-bottom: 20px;
    font-size: 1.6rem;
}
.contact-section h2::after { display: none; }
.contact-lead {
    font-size: 1.1rem;
    margin-bottom: 20px;
    color: #cbd5e1;
}

/* =========================================
   Thanks Page
========================================= */
.thanks-main {
    min-height: 70vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #030e1b 0%, #112240 100%);
    padding: 160px 20px 100px;
    text-align: center;
}
.thanks-card {
    background: #fff;
    max-width: 680px;
    width: 100%;
    margin: 0 auto;
    padding: 60px 40px;
    border-radius: 16px;
    box-shadow: 0 20px 40px rgba(0,0,0,0.25);
    border-top: 6px solid #dfba86;
    box-sizing: border-box;
}
.thanks-check {
    width: 84px;
    height: 84px;
    margin: 0 auto 30px;
    border-radius: 50%;
    background: linear-gradient(135deg, #f97316 0%, #ea580c 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 10px 20px rgba(234, 88, 12, 0.3);
}
.thanks-check svg { width: 44px; height: 44px; display: block; }
.thanks-card h1 {
    font-size: 1.9rem;
    color: #030e1b;
    margin: 0 0 20px;
    line-height: 1.4;
}
.thanks-card p {
    color: #475569;
    font-size: 1.05rem;
    line-height: 1.9;
    margin: 0 auto 16px;
    max-width: 540px;
}
.thanks-note {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    padding: 24px;
    margin: 30px auto 0;
    max-width: 540px;
    text-align: left;
}
.thanks-note h2 {
    display: block;
    text-align: left;
    font-size: 1.1rem;
    margin: 0 0 12px;
    padding-bottom: 0;
}
.thanks-note h2::after { display: none; }
.thanks-note p {
    margin: 0;
    text-align: left;
    font-size: 0.98rem;
}
.thanks-back {
    margin-top: 36px;
}

/* =========================================
   Footer (Branding Area)
========================================= */
.footer-branding {
    background-color: #030e1b;
    color: #fff;
    padding: 80px 0;
    text-align: left;
    border-top: 3px solid #dfba86;
}
.footer-logo {
    height: 45px;
    margin-bottom: 30px;
    max-width: 100%;
}
.footer-text {
    max-width: 600px;
    font-size: 1rem;
    line-height: 1.8;
    color: #cbd5e1;
    margin-bottom: 40px;
}
.copyright {
    border-top: 1px solid rgba(255,255,255,0.1);
    padding-top: 20px;
    font-size: 0.85rem;
    color: #94a3b8;
}

/* =========================================
   Responsive Settings
========================================= */
@media (max-width: 992px) {
    .grid { grid-template-columns: repeat(2, 1fr); } /* タブレット時は2列x2段に調整 */
    .mid-cta-box .cta-text-primary { white-space: normal; } /* 画面幅が狭いときは自動改行を許可 */
}

@media (max-width: 768px) {
    section { padding: 60px 0; }

    /* モバイル環境でh2の文字サイズを最適化 */
    h2 { font-size: 1.4rem; margin-bottom: 35px; padding-bottom: 12px; }
    h2::after { width: 45px; height: 3px; }

    .fv { background-attachment: scroll; } /* モバイル幅でも fixed を無効化（保険） */
    .fv h1 { font-size: 2.2rem; }
    .fv-point { width: 130px; height: 130px; font-size: 0.9rem; }
    .fv-point .pt-label { font-size: 1rem; }

    /* スマホ表示では悩みをすべて1列の縦並びにする */
    .grid { grid-template-columns: 1fr; }

    table, th, td, tr { display: block; width: 100%; box-sizing: border-box; }
    th { padding-bottom: 10px; background-color: #f8fafc; border-bottom: none; }
    td { border-top: none; padding-top: 10px; padding-bottom: 25px; }

    .badge { width: 180px; height: 180px; }
    .badge .number { font-size: 2.2rem; }
    .form-container { padding: 30px 20px; }
    .radio-btn-group { gap: 10px; }
    .header-cta-btn { padding: 6px 12px; font-size: 0.8rem; }

    /* スマホ時にメインCTAボタンが2行に崩れないよう縮小調整 */
    .cta-btn { padding: 16px 20px; font-size: 1.1rem; }
    .submit-btn-orange { padding: 16px 20px; font-size: 1.1rem; }

    .mid-cta-box .cta-text-primary { font-size: 1.2rem; white-space: normal; }

    .bg-light .container > div.company-flex {
        flex-direction: column !important;
        padding: 30px 20px !important;
        gap: 20px !important;
    }

    .thanks-main { padding: 120px 16px 80px; }
    .thanks-card { padding: 44px 24px; }
    .thanks-card h1 { font-size: 1.45rem; }
}
