/* ==========================================
   1. ベーススタイル & リセット
   ========================================== */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: 'Noto Sans JP', "Helvetica Neue", Arial, sans-serif;
    color: #111111;
    background-color: #fafdfd; 
    background-image: radial-gradient(#d3eceb 14%, transparent 14%);
    background-size: 16px 16px;
    overflow-x: hidden;
    line-height: 1.7;
    letter-spacing: 0.05em;
    -webkit-text-size-adjust: 100%;
    padding-top: 80px; 
}

#particles-js {
    position: fixed;
    width: 100%;
    height: 100%;
    z-index: -1;
    top: 0;
    left: 0;
    pointer-events: none;
    opacity: 0.4;
}

:root {
    --tiffany: #0ABAB5;
    --tiffany-dark: #00817e;
    --tiffany-light: #EBFBFA;
    --tiffany-neon: #00f5d4;
    --border-black: #111111;
    
    --bg-white: #ffffff;
    --bg-tiffany-tint: #f2fbfb;
    --bg-gray-tint: #f7fafc;
    --bg-pain-zone: #fff5f5;
    
    --pop-shadow: 6px 6px 0px #0ABAB5;
    --pop-shadow-dark: 6px 6px 0px #111111;
    --pop-shadow-large: 12px 12px 0px #111111;
    --hover-shadow: 2px 2px 0px #111111;
}

.top-line {
    width: 100%;
    height: 10px;
    background: linear-gradient(90deg, var(--tiffany-dark), var(--tiffany), var(--tiffany-neon), var(--tiffany-dark));
    background-size: 200% 100%;
    border-bottom: 4px solid var(--border-black);
    animation: lineMove 3s infinite linear;
    position: fixed;
    top: 0;
    left: 0;
    z-index: 1001;
}
@keyframes lineMove {
    0% { background-position: 0% 0; }
    100% { background-position: 200% 0; }
}

/* ==========================================
   2. グローバルナビゲーション（固定ヘッダー）
   ========================================== */
.global-nav {
    position: fixed;
    top: 10px; 
    left: 0;
    width: 100%;
    height: 70px;
    background: rgba(255, 255, 255, 0.95);
    border-bottom: 3px solid var(--border-black);
    z-index: 1000;
    display: flex;
    align-items: center;
    padding: 0 24px;
    backdrop-filter: blur(4px);
}

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

.nav-logo {
    text-decoration: none;
    display: flex;
    flex-direction: column;
}
.nav-logo .logo-main {
    font-family: 'Montserrat', sans-serif;
    font-size: 22px;
    font-weight: 900;
    color: var(--border-black);
    line-height: 1.1;
    letter-spacing: 0.05em;
}
.nav-logo .logo-sub {
    font-size: 10px;
    font-weight: 700;
    color: var(--tiffany-dark);
}

.nav-links {
    display: none; 
    list-style: none;
    gap: 24px;
}
.nav-links a {
    text-decoration: none;
    color: var(--border-black);
    font-weight: 700;
    font-size: 14px;
    transition: color 0.2s;
}
.nav-links a:hover {
    color: var(--tiffany);
}

.nav-cta-group {
    display: flex;
    align-items: center;
    gap: 16px;
}
.nav-phone {
    text-decoration: none;
    color: var(--border-black);
    font-family: 'Montserrat', sans-serif;
    font-weight: 800;
    font-size: 15px;
    display: none; 
}
.nav-btn {
    text-decoration: none;
    background: var(--tiffany);
    color: var(--border-black);
    border: 2px solid var(--border-black);
    padding: 6px 16px;
    font-weight: 900;
    font-size: 13px;
    border-radius: 6px;
    box-shadow: 3px 3px 0px var(--border-black);
    transition: all 0.1s;
}
.nav-btn:hover {
    transform: translate(1px, 1px);
    box-shadow: 2px 2px 0px var(--border-black);
}

/* ==========================================
   3. 共通セクション構造
   ========================================== */
section {
    padding: 100px 24px;
    text-align: center;
    width: 100%;
    border-bottom: 4px solid var(--border-black);
}

.section-inner {
    max-width: 1000px;
    margin: 0 auto;
    width: 100%;
}

section h2 {
    font-size: 28px;
    color: var(--border-black);
    margin-bottom: 50px;
    font-weight: 900;
    letter-spacing: 0.08em;
    line-height: 1.4;
    display: inline-block;
    background: var(--tiffany-light);
    padding: 12px 26px;
    border: 4px solid var(--border-black);
    box-shadow: var(--pop-shadow-dark);
    transform: rotate(-1.5deg) skewX(-4deg);
}

section h2 span {
    color: #ff0054;
    -webkit-text-stroke: 0.5px var(--border-black);
}

/* ==========================================
   4. ファーストビュー & 実績カウンター
   ========================================== */
.fv {
    padding: 100px 24px 60px;
    text-align: center;
    max-width: 850px;
    margin: 0 auto;
}

.fv-tag {
    display: inline-block;
    background: var(--tiffany-dark);
    color: #ffffff;
    font-size: 13px;
    font-weight: 900;
    padding: 8px 24px;
    border: 3px solid var(--border-black);
    border-radius: 6px;
    margin-bottom: 30px;
    transform: rotate(1.5deg);
    box-shadow: 4px 4px 0px var(--border-black);
    letter-spacing: 0.1em;
}

.glow {
    font-size: 38px;
    font-weight: 900;
    line-height: 1.5;
    color: var(--border-black);
    margin-bottom: 35px;
}

.glow span {
    color: #ffffff;
    background: var(--tiffany);
    padding: 2px 14px;
    border: 4px solid var(--border-black);
    box-shadow: 5px 5px 0px var(--border-black);
    display: inline-block;
    transform: rotate(-1deg);
}

.fv-lead {
    font-size: 15px;
    color: #222222;
    font-weight: 700;
    line-height: 1.9;
    text-align: center;
    max-width: 720px;
    margin: 45px auto 0;
}

.achievements {
    display: flex;
    flex-direction: column;
    gap: 24px;
    margin-top: 60px;
    background: #ffffff;
    padding: 35px 24px;
    border: 5px solid var(--border-black);
    border-radius: 20px;
    box-shadow: var(--pop-shadow-large);
    background-image: radial-gradient(#e6f5f4 12%, transparent 12%);
    background-size: 14px 14px;
}

.achieve-item {
    padding: 15px 0;
    border-bottom: 4px solid var(--border-black);
}
.achieve-item:last-child {
    border-bottom: none;
}

.achieve-item .lbl {
    font-size: 14px;
    color: var(--border-black);
    font-weight: 900;
    display: block;
    margin-bottom: 6px;
}

.achieve-item div {
    font-family: 'Montserrat', sans-serif;
}

.achieve-item .num {
    font-size: 56px;
    font-weight: 900;
    background: linear-gradient(135deg, var(--tiffany-dark) 0%, var(--tiffany) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    line-height: 1;
    filter: drop-shadow(3px 3px 0px var(--tiffany-light));
}

.achieve-item .unit {
    font-size: 18px;
    font-weight: 900;
    color: var(--border-black);
    margin-left: 2px;
    font-family: 'Noto Sans JP', sans-serif;
}

.achieve-item .sub-lbl {
    font-size: 12px;
    color: #555555;
    font-weight: 700;
    display: block;
    margin-top: 6px;
}

.logo-slider-zone {
    margin-top: 65px;
    width: 100%;
    overflow: hidden;
}
.slider-title {
    font-size: 13px;
    color: var(--border-black);
    font-weight: 900;
    margin-bottom: 15px;
}
.logo-slider {
    width: 100%;
    display: flex;
    position: relative;
    padding: 14px 0;
    background: var(--tiffany); 
    border-top: 4px solid var(--border-black);
    border-bottom: 4px solid var(--border-black);
    transform: rotate(-1deg); 
    box-shadow: 4px 4px 0px var(--border-black);
}
.logo-track {
    display: flex;
    gap: 50px;
    white-space: nowrap;
    width: max-content;
    animation: scrollLogos 25s linear infinite !important;
}
.logo-track span {
    font-family: 'Montserrat', sans-serif;
    font-size: 14px;
    font-weight: 900;
    color: #ffffff; 
    letter-spacing: 0.12em;
}

@keyframes scrollLogos {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

/* ==========================================
   5. ボタンコンポーネント
   ========================================== */
.cta-buttons {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 14px;
    margin-top: 45px;
    width: 100%;
}

.btn-main, .btn-sub, .btn-white {
    width: 100%;
    max-width: 320px;
    padding: 16px 24px;
    border-radius: 14px; 
    border: 3.5px solid var(--border-black);
    text-decoration: none;
    font-weight: 900;
    font-size: 16px;
    text-align: center;
    transition: all 0.1s cubic-bezier(0.175, 0.885, 0.32, 1.275); 
    position: relative;
    overflow: hidden;
    display: block;
    letter-spacing: 0.05em;
    box-shadow: 5px 5px 0px var(--border-black);
}

.btn-main {
    background: var(--tiffany);
    color: var(--border-black);
}
.btn-main:hover, .btn-sub:hover, .btn-white:hover {
    transform: scale(0.97) translate(3px, 3px);
    box-shadow: 2px 2px 0px var(--border-black);
}

.btn-sub {
    background: #ffffff;
    color: var(--border-black);
}

.btn-white {
    background: var(--tiffany-light);
    color: var(--border-black);
}

.sparkle::after {
    content: "";
    position: absolute;
    top: 0;
    left: -150%;
    width: 45%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.7), transparent);
    transform: skewX(-20deg);
    animation: sparkleMove 3s infinite linear;
}
@keyframes sparkleMove {
    0% { left: -150%; }
    100% { left: 150%; }
}

/* ==========================================
   6. 課題提起セクション
   ========================================== */
.pain-point {
    background: var(--bg-pain-zone);
}
.pain-box {
    display: flex;
    flex-direction: column;
    gap: 20px;
    max-width: 550px;
    margin: 0 auto 30px;
}
.pain-card {
    background: #ffffff;
    padding: 24px;
    border-radius: 16px;
    border: 3.5px solid var(--border-black);
    display: flex;
    align-items: flex-start;
    text-align: left;
    box-shadow: 6px 6px 0px #111111;
}
.pain-check {
    color: #ff0054;
    font-weight: 900;
    font-size: 24px;
    margin-right: 16px;
    line-height: 1.2;
    flex-shrink: 0;
}
.pain-card p {
    font-size: 15px;
    color: var(--border-black);
    font-weight: 700;
    line-height: 1.6;
}
.pain-card strong {
    color: #ffffff;
    background: #ff0054;
    padding: 2px 6px;
    border: 2px solid var(--border-black);
    display: inline-block;
    transform: rotate(-1deg);
}
.pain-solution-lead {
    font-size: 22px;
    font-weight: 900;
    color: var(--tiffany-dark);
    margin-top: 35px;
    letter-spacing: 0.05em;
    -webkit-text-stroke: 0.5px var(--border-black);
    text-shadow: 2px 2px 0px var(--tiffany-light);
}

/* ==========================================
   7. 提供サービス
   ========================================== */
.services {
    background: #ffffff;
}

.service-box {
    display: flex;
    flex-direction: column;
    gap: 45px;
    max-width: 450px;
    margin: 0 auto;
}

.service-item {
    background: #ffffff;
    padding: 55px 24px 35px;
    border-radius: 24px;
    border: 4px solid var(--border-black); 
    box-shadow: var(--pop-shadow); 
    text-align: center; 
    position: relative;
    transition: all 0.15s ease;
}
.service-item:hover {
    transform: translate(3px, 3px);
    box-shadow: 3px 3px 0px var(--tiffany-dark);
}

.benefit-badge {
    position: absolute;
    top: -18px;
    left: 50%;
    transform: translateX(-50%) rotate(-1.5deg);
    background: var(--tiffany-dark); 
    color: #ffffff;
    font-size: 12px;
    font-weight: 900;
    padding: 6px 20px;
    border: 3px solid var(--border-black);
    white-space: nowrap;
    box-shadow: 4px 4px 0px var(--border-black);
    letter-spacing: 0.05em;
}
.badge-orange { background: var(--tiffany); }
.badge-purple { background: var(--tiffany-neon); color: var(--border-black); }

.service-icon {
    width: 64px;
    height: 64px;
    background: var(--tiffany-light);
    border: 3.5px solid var(--border-black);
    border-radius: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 24px; 
    box-shadow: 3px 3px 0px var(--border-black);
}

.service-icon svg {
    width: 28px !important;
    height: 28px !important;
    fill: var(--border-black); 
}

.service-item h3 {
    font-size: 22px;
    color: var(--border-black);
    margin-bottom: 12px;
    font-weight: 900;
    text-align: center; 
    letter-spacing: 0.05em;
}

.service-desc {
    font-size: 14px;
    color: #222222;
    font-weight: 700;
    margin-bottom: 25px;
    line-height: 1.7;
    text-align: center; 
}

.service-points {
    list-style: none;
    border-top: 4px solid var(--border-black); 
    padding-top: 20px;
    display: inline-block;
    text-align: left;
    max-width: 100%;
}

.service-points li {
    font-size: 13px;
    color: var(--border-black);
    font-weight: 700;
    margin-bottom: 10px;
    display: flex;
    align-items: flex-start;
    line-height: 1.5;
}

.service-points li::before {
    content: "✓";
    color: var(--tiffany-dark);
    -webkit-text-stroke: 0.5px var(--border-black);
    font-weight: 900;
    font-size: 16px;
    margin-right: 10px;
}

/* ==========================================
   8. 完全バックアップチーム
   ========================================== */
.team {
    background: var(--bg-blue-tint);
}

.team-inner {
    background: #ffffff;
    border: 4px solid var(--border-black);
    border-radius: 20px;
    padding: 40px 24px;
    position: relative;
    max-width: 450px;
    margin: 0 auto;
    box-shadow: 6px 6px 0px #111111;
}

.team-badge {
    position: absolute;
    top: -16px;
    left: 50%;
    transform: translateX(-50%) rotate(1deg);
    background: var(--tiffany);
    border: 3px solid var(--border-black);
    color: var(--border-black);
    font-size: 13px;
    font-weight: 900;
    padding: 4px 22px;
    box-shadow: 3px 3px 0px var(--border-black);
    white-space: nowrap;
}

.team-box {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
}

.img-wrapper {
    width: 180px;
    height: 180px;
    border-radius: 16px;
    overflow: hidden;
    border: 3px solid var(--border-black);
    box-shadow: 5px 5px 0px var(--border-black);
}

.img-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.team-desc {
    font-size: 14px;
    color: #222222;
    font-weight: 700;
    text-align: left;
    line-height: 1.8;
}

/* ==========================================
   9. プロフェッショナルメンバー（スマホ基準）
   ========================================== */
.members {
    background: #ffffff;
}

.members .member-box {
    background: #ffffff;
    border: 4px solid var(--border-black);
    border-radius: 20px;
    padding: 50px 24px 40px; /* ★上側にバッジが載るためパディングを調整 */
    max-width: 450px;
    margin: 0 auto;
    display: flex;
    flex-direction: column; 
    align-items: center;
    gap: 24px;
    box-shadow: 6px 6px 0px #111111; 
    position: relative; /* ★バッジを絶対配置するための起点 */
}

/* ★大手術：h3の見出しをteam-badgeと同一の「外にはみ出る絶対配置バッジ」に大改造 */
.member-content h3 {
    position: absolute;
    top: -16px;
    left: 50%;
    transform: translateX(-50%) rotate(-1deg); /* カートゥーン風の傾き */
    font-size: 13px;
    font-weight: 900;
    background: var(--tiffany); /* team-badgeと同じティファニー */
    color: var(--border-black);
    display: inline-block;
    padding: 6px 22px;
    border: 3px solid var(--border-black);
    box-shadow: 3px 3px 0px var(--border-black);
    white-space: nowrap;
}

.member-content {
    text-align: center; 
    width: 100%;
}

.member-content p {
    font-size: 14px;
    color: #222222;
    font-weight: 700;
    line-height: 1.8;
    text-align: left; 
}

/* ==========================================
   10. 最終CTA
   ========================================== */
.cta-final {
    background: linear-gradient(180deg, var(--bg-tiffany-tint) 0%, #ffffff 100%);
    border-top: 3px solid var(--border-black);
    padding: 90px 24px 110px;
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.cta-final h2 {
    font-size: 32px;
    background: #ffffff;
    border: 4px solid var(--border-black);
    padding: 12px 24px;
    box-shadow: 6px 6px 0px #111111;
    transform: rotate(-1deg) skewX(-2deg);
}

.cta-box {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 25px;
    width: 100%;
    max-width: 450px;
    margin-top: 30px;
    margin-bottom: 40px;
}

.cta-text {
    font-size: 15px;
    color: var(--border-black);
    font-weight: 900;
    text-align: center;
    line-height: 1.8;
}

/* ==========================================
   11. 会社概要セクション（Company Profile）
   ========================================== */
.company-section {
    background: var(--bg-gray-tint);
}

.company-table-wrapper {
    width: 100%;
    max-width: 750px;
    margin: 0 auto;
    background: #ffffff;
    border: 4px solid var(--border-black);
    border-radius: 20px;
    box-shadow: var(--pop-shadow);
    overflow: hidden;
    padding: 10px;
}

.company-table {
    width: 100%;
    border-collapse: collapse;
    text-align: left;
}

.company-table tr {
    border-bottom: 3px dashed #edf2f7;
}
.company-table tr:last-child {
    border-bottom: none;
}

.company-table th, .company-table td {
    padding: 20px 16px;
    font-size: 14px;
    vertical-align: top;
}

.company-table th {
    width: 30%;
    color: var(--border-black);
    font-weight: 900;
    background: var(--tiffany-light);
    border-right: 3px solid var(--border-black);
    text-align: center;
    border-radius: 10px;
    display: block; 
    margin-bottom: 8px;
}

.company-table td {
    color: #222222;
    font-weight: 700;
    display: block; 
}

.company-link {
    color: var(--tiffany-dark);
    text-decoration: none;
    border-bottom: 2px solid var(--tiffany);
    padding-bottom: 2px;
}
.company-link:hover {
    color: var(--border-black);
    border-color: var(--border-black);
}

/* ==========================================
   12. メメインフッター（Pマーク・プライバシーポリシー対応）
   ========================================== */
.main-footer {
    background: var(--bg-white);
    padding: 50px 24px;
    border-top: 4px solid var(--border-black);
    text-align: center;
}

.footer-inner {
    max-width: 1000px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 24px;
}

.footer-left, .footer-right {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
}

.footer-logo {
    font-family: 'Montserrat', sans-serif;
    font-size: 26px;
    font-weight: 900;
    color: var(--border-black);
    text-decoration: none;
    letter-spacing: 0.05em;
    background: var(--tiffany-light);
    border: 3px solid var(--border-black);
    padding: 4px 20px;
    box-shadow: 4px 4px 0px var(--border-black);
    transform: rotate(-1deg);
    display: inline-block;
}

.footer-copy {
    font-size: 12px;
    font-weight: 700;
    color: #666666;
}

.footer-policy-link {
    font-size: 13px;
    font-weight: 700;
    color: var(--border-black);
    text-decoration: none;
    border-bottom: 2px solid var(--tiffany);
    padding-bottom: 2px;
    transition: color 0.2s;
}
.footer-policy-link:hover {
    color: var(--tiffany-dark);
}

.footer-pmark {
    display: flex;
    align-items: center;
    gap: 10px;
    background: #ffffff;
    border: 2px solid var(--border-black);
    padding: 6px 12px;
    border-radius: 8px;
    box-shadow: 3px 3px 0px var(--tiffany-light);
}

.footer-pmark img {
    height: 32px;
    width: auto;
    display: block;
}

.pmark-dummy-txt {
    font-size: 10px;
    font-weight: 900;
    color: var(--border-black);
    line-height: 1.2;
    text-align: left;
}

/* ==========================================
   13. メディアクエリ (PC表示用: 768px以上)
   ========================================== */
@media (min-width: 768px) {
    section { padding: 110px 20px; }
    .fv { padding: 120px 20px 80px; }
    .glow { font-size: 52px; }
    .fv-lead { font-size: 16px; }
    section h2 { font-size: 36px; }
    
    .nav-links { display: flex; }
    .nav-phone { display: inline-block; }
    
    /* 会社概要テーブルPC設定 */
    .company-table th, .company-table td {
        display: table-cell;
        margin-bottom: 0;
    }
    .company-table th {
        text-align: left;
        border-radius: 0;
    }

    /* フッターPC設定 */
    .footer-inner {
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
    }
    .footer-left, .footer-right {
        flex-direction: row;
        align-items: center;
        gap: 20px;
    }

    .cta-buttons {
        flex-direction: row;
        justify-content: center;
        gap: 20px;
    }

    .achievements {
        flex-direction: row;
        justify-content: space-around;
        padding: 40px;
        gap: 15px;
    }
    .achieve-item {
        flex: 1;
        border-right: 4px dashed var(--border-black);
        border-bottom: none;
        padding: 0;
    }

    .pain-box {
        flex-direction: row;
        justify-content: center;
        max-width: 1000px;
        gap: 24px;
    }
    .pain-card {
        flex: 1;
        max-width: 320px;
    }

    .service-box {
        flex-direction: row;
        justify-content: center;
        align-items: stretch;
        max-width: 1000px;
        gap: 28px;
    }
    .service-item {
        flex: 1;
        max-width: 320px;
        padding: 55px 24px 40px;
    }

    /* バックアップチーム */
    .team-inner {
        max-width: 800px;
        padding: 50px;
    }
    .team-box {
        flex-direction: row;
        gap: 40px;
        text-align: left;
    }
    .img-wrapper {
        width: 180px;
        height: 180px;
        flex-shrink: 0;
    }
    .team-desc {
        flex: 1;
        font-size: 15px;
    }

    /* プロフェッショナルメンバー（PC回り込み＋上部はみ出しバッジ完全両立設定） */
    .members .member-box {
        max-width: 800px; 
        flex-direction: row; 
        align-items: flex-start;
        gap: 40px;
        padding: 55px 50px 50px; /* バッジが載るため上側余白を多めに */
    }
    
    /* PC表示のバッジ位置：左揃えにするか迷うところですが、team-badge（中央寄せ）のルールと美しく同期させるため、PCでも「上部中央固定」をキープしてカードとの統一感を出します */
    .member-content h3 {
        top: -16px;
        left: 50%;
        transform: translateX(-50%) rotate(-1deg);
    }
    
    .members .img-wrapper {
        flex-shrink: 0; 
        margin-top: 15px; /* バッジとの干渉を避けるため画像の上を少し下げる */
    }
    .member-content {
        text-align: left; 
        flex: 1;
        margin-top: 15px; /* テキストの上も揃える */
    }
    .member-content p {
        font-size: 15px;
    }

    /* 最終CTA */
    .cta-final {
        padding: 120px 20px 140px;
    }
    .cta-box {
        max-width: 800px;
        flex-direction: row;
        gap: 40px;
        text-align: left;
    }
    .cta-text {
        text-align: left;
        font-size: 16px;
        flex: 1;
    }
}