:root {
    --primary: #1e3a8a;
    /* Deep Blue */
    --primary-light: #3b82f6;
    --primary-dark: #1e40af;
    --secondary: #f1f5f9;
    --text-main: #1e293b;
    --text-muted: #64748b;
    --bg-color: #f8fafc;
    --card-bg: #ffffff;
    --accent: #0ea5e9;
    /* Sky Blue */
    --accent-hover: #0284c7;
    --nav-height: 70px;
    --nav-bg: rgba(255, 255, 255, 0.9);
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 140px;
}

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

body {
    font-family: 'Inter', 'Noto Sans JP', sans-serif;
    background-color: var(--bg-color);
    color: var(--text-main);
    line-height: 1.6;
    overflow-x: hidden;
}

/* Navigation */
.navbar {
    position: sticky;
    top: 0;
    width: 100%;
    z-index: 1000;
    background: white;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

.nav-top {
    background: var(--nav-bg);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(226, 232, 240, 0.4);
    height: 50px;
}

.nav-container {
    max-width: 1200px;
    width: 100%;
    margin: 0 auto;
    padding: 0 1.5rem;
    height: 50px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav-actions {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-left: auto;
    flex-shrink: 0;
}

.nav-main-bar {
    background: #eff6ff;
    border-top: 1px solid #dbeafe;
    border-bottom: 1px solid #dbeafe;
}

.nav-branding {
    display: flex;
    align-items: center;
    flex: 0 1 auto;
}

.nav-cta {
    margin-left: auto;
    /* font-size: 0.8rem; */
}

.nav-logo {
    display: flex;
    align-items: center;
    gap: 1.25rem;
    font-size: 1rem;
    font-weight: 800;
    color: var(--primary-dark);
    text-decoration: none;
    letter-spacing: 0em;
    line-height: 2;
}

.nav-logo-text {
    border-left: 2px solid #e2e8f0;
    padding-left: 1rem;
}

@media (max-width: 480px) {
    .nav-logo {
        font-size: 0.75rem;
        white-space: normal;
        line-height: 1.2;
    }
}

.nav-links {
    display: flex;
    justify-content: space-between;
    /* これが「均等配置」のキモです */
    width: 100%;
    /* 親要素の幅いっぱいに広げます */
    padding: 0;
    /* 余計な余白があればリセット */
    list-style: none;
    align-items: center;
}

.nav-links li {
    flex: 1;
    /* 各項目が同じ幅を分け合います */
    text-align: center;
    /* 文字を各エリアの真ん中に寄せます */
}

.nav-links a {
    text-decoration: none;
    color: #1e3a8a;
    font-size: 0.95rem;
    font-weight: 700;
    padding: 0.8rem 0.5rem;
    transition: all 0.2s;
    opacity: 1;
    display: block;
}

.nav-links a:hover {
    color: #0ea5e9;
    background: rgba(14, 165, 233, 0.08);
    border-radius: 9999px;
}

.nav-cta {
    margin-left: auto;
}

.nav-cta:hover {
    background: var(--accent-hover);
    transform: translateY(-1px);
    box-shadow: 0 6px 15px rgba(14, 165, 233, 0.3);
}

.nav-logos {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.header-logo {
    height: 48px;
    width: auto;
    object-fit: contain;
}

@media (max-width: 900px) {
    .nav-branding {
        padding: 8px 0;
    }

    .nav-logo {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
        font-size: 0.9rem;
    }

    .nav-logo-text {
        border-left: none;
        padding-left: 0;
        line-height: 1.3;
    }

    .header-logo {
        height: 32px;
    }

    .nav-links {
        gap: 1.5rem;
        justify-content: flex-start;
        overflow-x: auto;
        white-space: nowrap;
        padding: 0 1rem;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
    }

    .nav-links::-webkit-scrollbar {
        display: none;
    }

    .nav-links a {
        font-size: 0.85rem;
        padding: 0.5rem 0;
    }
}

/* Mobile Toggle */
.nav-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
    z-index: 1100;
}

.nav-toggle span {
    display: block;
    width: 24px;
    height: 2px;
    background-color: var(--primary-dark);
    margin: 5px 0;
    transition: all 0.3s ease;
}

.nav-toggle.active span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}

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

.nav-toggle.active span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
}

@media (max-width: 900px) {
    .nav-toggle {
        display: none;
        /* Hide toggle since nav is persistent */
    }

    .nav-links {
        /* Reset drawer styles to allow horizontal bar */
        position: static;
        width: 100%;
        max-width: none;
        height: auto;
        background: transparent;
        flex-direction: row;
        box-shadow: none;
        padding: 0;
        gap: 1.5rem;
        opacity: 1;
        transform: none;
        transition: none;
    }

    .nav-links li {
        width: auto;
        margin: 0;
        opacity: 1;
        transform: none;
    }
}

.site-intro-label {
    display: inline-block;
    background: #eff6ff;
    color: #1e3a8a;
    /* 変数を使わずに直接色を入れてみて動くか試す */
    padding: 0.5rem 1.25rem;
    border-radius: 999px;
    /* ここに閉じカッコ } があるか確認！ */
}

/* Staggered animation for links */
.nav-links.active li:nth-child(1) {
    transition-delay: 0.1s;
}

.nav-links.active li:nth-child(2) {
    transition-delay: 0.15s;
}

.nav-links.active li:nth-child(3) {
    transition-delay: 0.2s;
}

.nav-links.active li:nth-child(4) {
    transition-delay: 0.25s;
}

.nav-links.active li:nth-child(5) {
    transition-delay: 0.3s;
}

/* .nav-links a {
    font-size: 1.1rem;
    display: block;
    padding: 0.5rem;
} */

/* .nav-cta {
    display: inline-block;
    margin-top: 1rem;
} */

.nav-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background: rgba(15, 23, 42, 0.5);
    backdrop-filter: blur(4px);
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 1040;
}

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

/* Hero Section */
.hero {
    position: relative;
    background: linear-gradient(135deg, var(--primary) 0%, #1e293b 100%);
    color: white;
    padding: 8rem 2rem 6rem;
    /* Increased significantly to 18rem to fully clear header */
    text-align: center;
    overflow: hidden;

}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
    padding-top: 4rem;
}

.badge {
    display: inline-block;
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(10px);
    padding: 0.5rem 1rem;
    border-radius: 9999px;
    font-size: 0.875rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
    letter-spacing: 0.05em;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.hero h1 {
    font-size: 2.8rem;
    font-weight: 700;
    margin-bottom: 0.75rem;
    line-height: 1.2;
}

.hero-subtitle {
    font-size: 1.15rem;
    font-weight: 500;
    opacity: 0.95;
    max-width: 800px;
    margin: 0 auto;
    letter-spacing: 0.02em;
}

.site-intro-section {
    background: var(--card-bg);
    border-radius: 20px;
    padding: 3rem 3rem;
    margin-bottom: 4rem;
    margin-top: 4rem;
    box-shadow: 0 20px 40px -15px rgba(15, 23, 42, 0.08);
    border: 1px solid #e2e8f0;
    text-align: left;
    position: relative;
    overflow: hidden;
}

.site-intro-header {
    margin-bottom: 2.5rem;
}

.site-intro-label {
    display: inline-block;
    background: #eff6ff;
    color: var(--primary-dark);
    padding: 0.5rem 1.25rem;
    border-radius: 9999px;
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    border: 1px solid #dbeafe;
}

.site-intro-container {
    display: flex;
    align-items: center;
    gap: 4rem;
}

.site-intro-illustration {
    flex: 1;
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
}

.site-intro-illustration img {
    max-width: 100%;
    height: auto;
    position: relative;
    z-index: 2;
    filter: drop-shadow(0 10px 20px rgba(0, 0, 0, 0.05));
    border-radius: 12px;
}

.intro-deco-circle {
    position: absolute;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle, rgba(14, 165, 233, 0.12) 0%, rgba(14, 165, 233, 0) 70%);
    border-radius: 50%;
    z-index: 1;
    transform: scale(1.5);
}

.site-intro-body {
    flex: 1.5;
}

.site-intro-heading {
    font-size: 1.6rem;
    font-weight: 800;
    color: var(--primary-dark);
    margin-bottom: 1.25rem;
    line-height: 1.4;
}

.site-intro-text {
    font-size: 0.95rem;
    line-height: 1.8;
    color: var(--text-main);
}

.hero-bg-shapes .shape {
    position: absolute;
    border-radius: 50%;
    filter: blur(60px);
    z-index: 1;
}

.shape-1 {
    background: rgba(59, 130, 246, 0.25);
    /* Chart Blue */
    width: 400px;
    height: 400px;
    top: -100px;
    right: -100px;
}

.shape-2 {
    background: rgba(249, 115, 22, 0.2);
    /* Chart Orange */
    width: 300px;
    height: 300px;
    bottom: -50px;
    left: -50px;
}

/* Container */
.container {
    max-width: 1000px;
    /* Widened slightly for balance */
    margin: -3rem auto 4rem;
    /* Reduced overlap to -3rem to clear hero text */
    padding: 0 1.5rem;
    position: relative;
    z-index: 10;
}

/* Cards */
.card {
    background: var(--card-bg);
    border-radius: 12px;
    padding: 2.5rem;
    margin-bottom: 2rem;
    box-shadow: 0 4px 20px rgba(15, 23, 42, 0.05);
    border: 1px solid #e2e8f0;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
}

.card-header {
    display: flex;
    align-items: center;
    margin-bottom: 1rem;
}

.icon-wrapper {
    background: var(--secondary);
    width: 48px;
    height: 48px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 1rem;
    color: var(--primary);
}

.icon-wrapper svg {
    width: 24px;
    height: 24px;
}

.card h2 {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-dark);
}

.section-desc {
    color: var(--text-muted);
    margin-bottom: 2rem;
    font-size: 1.05rem;
}

/* Steps (Self Analysis) */
.steps {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.step {
    padding-left: 1.5rem;
    border-left: 3px solid var(--primary-light);
}

.step h3 {
    font-size: 1.125rem;
    color: var(--text-main);
    margin-bottom: 0.5rem;
}

/* Process Flow Diagram (Infographic Style) */
/* Chevron Process Flow Diagram */
.chevron-wrapper {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 2.5rem 1.5rem;
    margin-bottom: 2rem;
    text-align: center;
}

.diagram-title {
    font-size: 1.1rem;
    color: var(--text-main);
    margin-bottom: 2rem;
    font-weight: 700;
}

.chevron-container {
    display: flex;
    max-width: 900px;
    margin: 0 auto;
    gap: 4px;
    /* White gap between steps */
}

.chev-step {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    padding: 2.5rem 1.25rem 2rem 2.25rem;
    color: white;
    text-align: left;
    clip-path: polygon(calc(100% - 20px) 0, 100% 50%, calc(100% - 20px) 100%, 0 100%, 20px 50%, 0 0);
    min-height: 180px;
}

.chev-step:first-child {
    clip-path: polygon(calc(100% - 20px) 0, 100% 50%, calc(100% - 20px) 100%, 0 100%, 0 0);
    padding-left: 2rem;
}

.chev-step:last-child {
    clip-path: polygon(100% 0, 100% 50%, 100% 100%, 0 100%, 20px 50%, 0 0);
    padding-right: 2rem;
}

.chev-label {
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 2px;
    opacity: 0.9;
    margin-bottom: 8px;
    text-transform: uppercase;
    font-family: Arial, sans-serif;
}

.chev-title {
    font-size: 1.05rem;
    font-weight: 700;
    margin-bottom: 12px;
    line-height: 1.3;
}

.chev-desc {
    font-size: 0.8rem;
    line-height: 1.5;
    opacity: 0.95;
}

/* Future Vision Card */
.future-vision-card {
    background: #f8fafc;
    border-left: 4px solid var(--primary);
    border-radius: 8px;
    padding: 1.5rem;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
    margin-top: 0.5rem;
}

.future-header h4 {
    color: var(--primary-dark);
    font-size: 1rem;
    font-weight: 700;
    margin-bottom: 0.75rem;
}

.future-body p {
    font-size: 0.95rem;
    color: var(--text-main);
    margin-bottom: 0;
}

.mt-diagram {
    margin-top: 2rem;
}

/* Document Cards Diagram */
.doc-cards-container {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
}

.doc-card {
    background: white;
    border-top: 5px solid var(--primary-light);
    border-radius: 12px;
    padding: 2rem 1.5rem;
    text-align: center;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.03);
    transition: transform 0.3s ease;
}

.doc-card.highlight {
    border-top-color: var(--accent);

}

.doc-card:hover {
    transform: translateY(-5px);
}

.doc-icon {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.doc-card h4 {
    font-size: 1.1rem;
    color: var(--primary-dark);
    margin-bottom: 0.75rem;
}

.doc-card p {
    font-size: 0.85rem;
    color: var(--text-muted);
    line-height: 1.5;
}

.doc-sublist {
    list-style: none;
    text-align: left;
    font-size: 0.8rem;
    color: var(--text-main);
    padding: 0;
}

.doc-sublist li {
    margin-bottom: 6px;
    position: relative;
    padding-left: 14px;
}

.doc-sublist li::before {
    content: "•";
    color: var(--accent);
    position: absolute;
    left: 0;
    font-weight: bold;
}

/* Grooming Checklist Box */
.grooming-box {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-left: 4px solid var(--accent);
    border-radius: 8px;
    padding: 1.5rem;
    margin-bottom: 2rem;
}

.grooming-header {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 0.5rem;
}

.grooming-icon {
    font-size: 1.5rem;
}

.grooming-header h3 {
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--primary-dark);
    margin: 0;
}

.grooming-desc {
    font-size: 0.9rem;
    color: var(--text-muted);
    margin-bottom: 1.25rem;
}

.grooming-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.grooming-list li {
    display: flex;
    flex-direction: column;
    background: white;
    padding: 0.75rem 1rem;
    border-radius: 6px;
    border: 1px solid #f1f5f9;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.02);
}

.grooming-list li strong {
    color: var(--primary);
    font-size: 0.95rem;
    margin-bottom: 0.25rem;
}

.grooming-list li span {
    font-size: 0.85rem;
    color: var(--text-main);
    line-height: 1.5;
}

/* Grooming Diagram Layout (For grooming.html) */
.grooming-diagram-container {
    position: relative;
    max-width: 900px;
    margin: 0 auto 3rem;
    display: flex;
    justify-content: center;
    background: #f8fafc;
    border-radius: 16px;
    padding: 3rem 0;
    min-height: 680px;
    border: 1px solid #e2e8f0;
    overflow: hidden;
}

.grooming-diagram-image {
    position: relative;
    z-index: 1;
    width: 250px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.grooming-diagram-image img {
    max-width: 100%;
    height: auto;
    filter: drop-shadow(0 10px 15px rgba(0, 0, 0, 0.05));
}

.diagram-point {
    position: absolute;
    width: 280px;
    background: white;
    padding: 1.25rem;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    z-index: 2;
    border-top: 4px solid;
    transition: transform 0.2s;
}

.diagram-point:hover {
    transform: translateY(-2px);
    z-index: 3;
}

.male-point {
    border-top-color: #3b82f6;
}

.female-point {
    border-top-color: #ec4899;
}

.diagram-point h4 {
    font-size: 1.05rem;
    margin-bottom: 0.5rem;
    font-weight: 700;
}

.male-point h4 {
    color: #1e40af;
}

.female-point h4 {
    color: #be185d;
}

.diagram-point p {
    font-size: 0.85rem;
    line-height: 1.6;
    color: var(--text-main);
    margin: 0;
}

/* Connecting Dashed Lines */
.diagram-point::before {
    content: '';
    position: absolute;
    width: 60px;
    height: 0;
    border-top: 2px dashed #cbd5e1;
    top: 25px;
}

.point-left::before {
    right: -60px;
}

.point-right::before {
    left: -60px;
}

.diagram-point::after {
    content: '';
    position: absolute;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #cbd5e1;
    top: 21px;
}

.point-left::after {
    right: -60px;
}

.point-right::after {
    left: -60px;
}

/* Specific Positions */
/* Male */
.m-hair {
    top: 5%;
    left: 2%;
}

.m-face {
    top: 18%;
    right: 2%;
}

.m-suit {
    top: 38%;
    left: 2%;
}

.m-shirt {
    top: 55%;
    right: 2%;
}

.m-shoes {
    bottom: 5%;
    left: 2%;
}

/* Female */
.f-hair {
    top: 5%;
    left: 2%;
}

.f-makeup {
    top: 18%;
    right: 2%;
}

.f-suit {
    top: 38%;
    left: 2%;
}

.f-hands {
    top: 55%;
    right: 2%;
}

.f-shoes {
    bottom: 5%;
    left: 2%;
}

/* Mobile fallback */
@media (max-width: 850px) {
    .grooming-diagram-container {
        flex-direction: column;
        align-items: center;
        padding: 2rem 1.5rem;
        min-height: auto;
    }

    .grooming-diagram-image {
        width: 200px;
        margin-bottom: 2rem;
    }

    .diagram-point {
        position: static;
        width: 100%;
        margin-bottom: 1rem;
    }

    .diagram-point::before,
    .diagram-point::after {
        display: none;
    }
}

/* Interview Chat Diagram */
.chat-diagram {
    display: flex;
    flex-direction: column;
    gap: 1.2rem;
    background: #f1f5f9;
    padding: 2rem;
    border-radius: 16px;
}

.chat-row {
    display: flex;
    width: 100%;
}

.chat-row.right {
    justify-content: flex-end;
    margin-bottom: 0.5rem;
}

.chat-bubble {
    max-width: 85%;
    padding: 1rem 1.25rem;
    border-radius: 16px;
    display: flex;
    align-items: flex-start;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

.q-bubble {
    background: white;
    border-bottom-left-radius: 4px;
}

.a-bubble {
    background: var(--primary-light);
    color: white;
    border-bottom-right-radius: 4px;
}

.chat-label {
    font-weight: 700;
    margin-right: 0.75rem;
    font-size: 1.2rem;
    line-height: 1;
}

.q-bubble .chat-label {
    color: var(--primary);
}

.a-bubble .chat-label {
    color: #e0f2fe;
}

.chat-text {
    font-size: 0.95rem;
    line-height: 1.5;
}

.chat-text small {
    opacity: 0.8;
    font-size: 0.75rem;
    display: block;
    margin-top: 2px;
}

/* Rejection List (Failure reasons) */
.border-warning {
    border-top: 4px solid #f59e0b;
}

.warning-icon {
    background: #fef3c7;
    color: #d97706;
}

.warning-icon svg {
    width: 28px;
    height: 28px;
}

.ng-cards-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1.5rem;
    margin-top: 1.5rem;
}

.ng-card {
    background: #fffbeb;
    border: 2px dashed #fcd34d;
    border-radius: 16px;
    padding: 1.5rem 1.5rem 2rem;
    width: calc(33.333% - 1rem);
    min-width: 250px;
    position: relative;
    overflow: hidden;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.02);
    transition: transform 0.3s;
    text-align: left;
}

.ng-card:hover {
    transform: scale(1.03);
    box-shadow: 0 8px 15px rgba(245, 158, 11, 0.1);
}

.ng-watermark {
    position: absolute;
    bottom: -15px;
    right: -5px;
    font-size: 6rem;
    font-weight: 900;
    color: rgba(251, 191, 36, 0.15);
    transform: rotate(-10deg);
    pointer-events: none;
    line-height: 1;
}

.ng-icon {
    font-size: 2.2rem;
    margin-bottom: 0.75rem;
    display: inline-block;
    background: white;
    padding: 0.5rem;
    border-radius: 12px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.ng-card h4 {
    color: #b45309;
    font-size: 1.05rem;
    margin-bottom: 0.75rem;
    border-bottom: 1px solid #fde68a;
    padding-bottom: 0.5rem;
    font-weight: 700;
}

.ng-card p {
    font-size: 0.85rem;
    color: #78350f;
    line-height: 1.6;
    position: relative;
    z-index: 2;
}

/* CTA Section */
.cta-section {
    background: linear-gradient(135deg, var(--accent) 0%, #0284c7 100%);
    color: white;
    border-radius: 16px;
    padding: 3rem 2rem;
    text-align: center;
    box-shadow: 0 10px 25px -5px rgba(14, 165, 233, 0.3);
}

.cta-content h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

.cta-content p {
    margin-bottom: 2rem;
    opacity: 0.9;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.cta-button-group {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1.25rem;
    margin-top: 0.5rem;
}

.cta-button {
    background: white;
    color: var(--accent);
    border: none;
    padding: 1rem 2.5rem;
    font-size: 1.125rem;
    font-weight: 700;
    border-radius: 9999px;
    cursor: pointer;
    transition: transform 0.2s, box-shadow 0.2s;
    font-family: inherit;
}

.cta-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
}

.cta-button-subtle {
    background: transparent;
    color: white;
    border: 1px solid rgba(255, 255, 255, 0.5);
    padding: 0.85rem 2rem;
    font-size: 1rem;
    font-weight: 500;
    border-radius: 9999px;
    cursor: pointer;
    transition: all 0.2s ease;
    font-family: inherit;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.cta-button-subtle:hover {
    background: rgba(255, 255, 255, 0.12);
    border-color: white;
    transform: translateY(-2px);
}

.action-btn {
    background: linear-gradient(135deg, #0ea5e9 0%, #2563eb 100%);
    color: #ffffff !important;
    padding: 0.72rem 1.4rem;
    border-radius: 9999px;
    font-weight: 700;
    font-size: 0.92rem;
    letter-spacing: 0.02em;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    white-space: nowrap;
    border: 1px solid rgba(255, 255, 255, 0.25);
    box-shadow:
        0 10px 24px rgba(37, 99, 235, 0.22),
        inset 0 1px 0 rgba(255, 255, 255, 0.22);
    transition: transform 0.2s ease, box-shadow 0.2s ease, filter 0.2s ease;
    position: relative;
    overflow: hidden;
}

.action-btn::before {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: 9999px;
    background: radial-gradient(circle, rgba(255,255,255,0.7) 0%, transparent 60%);
    opacity: 0;
    transition: opacity 0.25s ease;
}

.action-btn:hover::before {
    opacity: 1;
}

.action-btn:hover {
    transform: translateY(-2px) scale(1.05); /* ←少し大きく */
    filter: brightness(1.08);
    box-shadow:
        0 16px 40px rgba(37, 99, 235, 0.3),
        0 0 0 8px rgba(14, 165, 233, 0.18); /* ←広げる */
}

.action-btn svg {
    margin-right: 0.45rem;
    width: 18px;
    height: 18px;
    flex-shrink: 0;
}

/* Animations */
.fade-in {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

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

/* Title Links */
.title-link {
    color: inherit;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    transition: color 0.2s ease;
}

.title-link:hover {
    color: var(--primary-light);
}

.title-link .link-hint {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--accent);
    margin-left: 1rem;
    padding: 0.25rem 0.8rem;
    background: #f0f9ff;
    border-radius: 999px;
    border: 1px solid #bae6fd;
    transition: all 0.2s ease;
}

.title-link:hover .link-hint {
    background: var(--accent);
    color: white;
    transform: translateX(4px);
    box-shadow: 0 4px 10px rgba(14, 165, 233, 0.2);
}

/* Grooming & Appearance Section */
.grooming-container {
    padding: 1rem 0;
}

.tabs-nav {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 2rem;
    border-bottom: 1px solid #e2e8f0;
    padding-bottom: 0px;
}

.tab-btn {
    padding: 0.75rem 2.5rem;
    border: none;
    background: none;
    font-size: 1rem;
    font-weight: 700;
    color: var(--text-muted);
    cursor: pointer;
    position: relative;
    transition: all 0.3s ease;
}

.tab-btn::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: var(--accent);
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

.tab-btn.active {
    color: var(--primary);
}

.tab-btn.active::after {
    transform: scaleX(1);
}

.tab-content {
    display: none;
    animation: fadeIn 0.4s ease;
}

.tab-content.active {
    display: block;
}

.grooming-grid {
    display: flex;
    gap: 3rem;
    align-items: flex-start;
}

.grooming-illu {
    flex: 1;
    max-width: 320px;
    background: #f8fafc;
    border-radius: 20px;
    padding: 1.5rem;
    position: relative;
}

.grooming-illu img {
    width: 100%;
    height: auto;
    border-radius: 12px;
    display: block;
}

.grooming-checklist {
    flex: 1.5;
}

.checklist-group {
    margin-bottom: 1.5rem;
}

.checklist-group h4 {
    font-size: 1.05rem;
    color: var(--primary-dark);
    margin-bottom: 0.75rem;
    border-left: 4px solid var(--accent);
    padding-left: 0.75rem;
}

.checklist-items {
    list-style: none;
    padding: 0;
    display: grid;
    grid-template-columns: 1fr;
    gap: 0.75rem;
}

.checklist-items li {
    background: white;
    border-radius: 8px;
    border: 1px solid #f1f5f9;
    transition: all 0.2s ease;
    overflow: hidden;
}

.checklist-items li:hover {
    border-color: #cbd5e1;
    transform: translateX(4px);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.02);
}

.check-label {
    display: flex;
    align-items: center;
    padding: 0.8rem 1rem;
    cursor: pointer;
    font-size: 0.95rem;
    color: var(--text-main);
    width: 100%;
}

.check-label input[type="checkbox"] {
    appearance: none;
    -webkit-appearance: none;
    width: 22px;
    height: 22px;
    border: 2px solid #cbd5e1;
    border-radius: 6px;
    margin-right: 1rem;
    position: relative;
    cursor: pointer;
    transition: all 0.2s ease;
    flex-shrink: 0;
    background: white;
}

.check-label input[type="checkbox"]:checked {
    background-color: #10b981;
    border-color: #10b981;
}

.check-label input[type="checkbox"]:checked::after {
    content: '';
    position: absolute;
    top: 40%;
    left: 50%;
    transform: translate(-50%, -50%) rotate(45deg);
    width: 5px;
    height: 10px;
    border: solid white;
    border-width: 0 2px 2px 0;
}

.check-label input[type="checkbox"]:checked+.check-text {
    color: var(--text-muted);
    text-decoration: line-through;
}

/* Progress Bar */
.progress-wrapper {
    background: white;
    border-radius: 12px;
    padding: 1.25rem 2rem;
    margin-bottom: 2rem;
    display: flex;
    align-items: center;
    gap: 1.5rem;
    border: 1px solid #f1f5f9;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.02);
}

.progress-bar-container {
    flex: 1;
    background: #e2e8f0;
    height: 12px;
    border-radius: 999px;
    overflow: hidden;
    position: relative;
    box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.1);
}

.progress-bar {
    height: 100%;
    background: linear-gradient(90deg, var(--accent), #38bdf8);
    width: 0%;
    border-radius: 999px;
    transition: width 0.5s cubic-bezier(0.4, 0, 0.2, 1), background 0.3s ease;
    position: relative;
}

.progress-bar.completed {
    background: linear-gradient(90deg, #10b981, #34d399);
}

.progress-bar::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(45deg,
            rgba(255, 255, 255, 0.2) 25%,
            transparent 25%,
            transparent 50%,
            rgba(255, 255, 255, 0.2) 50%,
            rgba(255, 255, 255, 0.2) 75%,
            transparent 75%,
            transparent);
    background-size: 1.5rem 1.5rem;
    animation: stripemove 1s linear infinite;
    opacity: 0.8;
}

@keyframes stripemove {
    0% {
        background-position: 1.5rem 0;
    }

    100% {
        background-position: 0 0;
    }
}

.progress-text {
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--primary-dark);
    white-space: nowrap;
}

.progress-count {
    color: var(--accent);
    font-size: 1.25rem;
    transition: color 0.3s ease;
}

@media (max-width: 600px) {
    .progress-wrapper {
        flex-direction: column;
        align-items: stretch;
        gap: 0.75rem;
        padding: 1rem;
    }

    .progress-text {
        text-align: right;
    }
}

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

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

/* Responsive amendments for grooming */
@media (max-width: 900px) {
    .grooming-grid {
        flex-direction: column;
        align-items: center;
        gap: 2rem;
    }

    .checklist-items {
        grid-template-columns: 1fr;
    }

    .grooming-illu {
        max-width: 250px;
    }
}

@media (max-width: 600px) {
    .tab-btn {
        padding: 0.75rem 1rem;
        flex: 1;
    }
}

@media (max-width: 900px) {
    .nav-actions {
        gap: 0.5rem;
    }

    .action-btn {
        padding: 0.62rem 1rem;
        font-size: 0.85rem;
        min-height: 40px;
    }
}

@media (max-width: 600px) {
    .nav-container {
        padding: 0 0.75rem;
    }

    .action-btn {
        padding: 0.55rem 0.85rem;
        font-size: 0.78rem;
        min-height: 38px;
    }
}

@media (max-width: 480px) {
    .action-btn {
        padding: 0.5rem 0.75rem;
        font-size: 0.74rem;
        min-height: 36px;
    }
}

/* Responsive */
@media (max-width: 768px) {
    .doc-cards-container {
        grid-template-columns: 1fr;
    }

    .chat-diagram {
        padding: 1rem;
    }

    .chat-bubble {
        max-width: 95%;
    }

    .grid-steps {
        grid-template-columns: 1fr;
    }

    .ng-card {
        width: calc(50% - 0.75rem);
    }

    .hero h1 {
        font-size: 2rem;
    }

    .container {
        margin-top: -2rem;
    }

    .card {
        padding: 1.5rem;
    }

    .chevron-container {
        flex-direction: column;
        gap: 8px;
    }

    .chev-step {
        clip-path: polygon(0 0, 100% 0, 100% calc(100% - 20px), 50% 100%, 0 calc(100% - 20px));
        padding: 2rem 2rem 3.5rem 2rem;
        min-height: 140px;
        text-align: center;
    }

    .chev-step:first-child {
        clip-path: polygon(0 0, 100% 0, 100% calc(100% - 20px), 50% 100%, 0 calc(100% - 20px));
        padding-left: 2rem;
    }

    .chev-step:last-child {
        clip-path: polygon(0 0, 100% 0, 100% 100%, 0 100%);
        padding-bottom: 2rem;
    }

    .site-intro-section {
        padding: 3rem 1.5rem;
        text-align: center;
    }

    .site-intro-container {
        flex-direction: column;
        gap: 2rem;
    }

    .site-intro-illustration {
        max-width: 260px;
        margin: 0 auto;
    }

    .site-intro-heading {
        font-size: 1.4rem;
        margin-bottom: 1rem;
    }
}

@media (max-width: 480px) {
    .ng-card {
        width: 100%;
    }
}

/* Document Diagram Layout */
.doc-diagram-container {
    display: flex;
    gap: 3rem;
    align-items: stretch;
    margin: 4rem 0;
}

.doc-annotations {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 2rem;
    padding-right: 1rem;
}

.annotation-item {
    display: flex;
    gap: 1.25rem;
    position: relative;
}

.annotation-item:not(:last-child)::after {
    content: '';
    position: absolute;
    left: 16px;
    top: 34px;
    bottom: -2rem;
    width: 2px;
    background: #e2e8f0;
    z-index: 0;
}

.anno-num {
    background: #4f7499;
    color: white;
    width: 34px;
    height: 34px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 1rem;
    flex-shrink: 0;
    z-index: 1;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.anno-text {
    flex: 1;
    padding-top: 0.3rem;
}

.anno-title {
    color: #1e293b;
    font-size: 1.05rem;
    margin-bottom: 0.5rem;
    font-weight: 700;
}

.anno-text p {
    font-size: 0.85rem;
    line-height: 1.6;
    color: #475569;
}

.doc-mockup {
    flex: 1.5;
    background: white;
    border: 1px solid #cbd5e1;
    padding: 2.5rem 3rem;
    box-shadow: 0 15px 40px -10px rgba(0, 0, 0, 0.12);
    position: relative;
    max-width: 800px;
    width: 600px;
    min-height: 848px;
    /* Correct A4 height for 600px width (600 * 1.414) */
    margin: 0 auto;
    font-size: 0.72rem;
}

.doc-title-mock {
    text-align: center;
    font-size: 0.9rem;
    font-weight: bold;
    letter-spacing: 0.8em;
    margin-bottom: 1.2rem;
    padding-top: 0.5rem;
    color: #0f172a;
    border-bottom: 1px solid #0f172a;
    display: inline-block;
    width: auto;
    margin-left: auto;
    margin-right: auto;
    left: 50%;
    transform: translateX(-50%);
    position: relative;
    padding-bottom: 0.15rem;
}

.doc-tip-container {
    text-align: center;
    margin-top: -0.8rem;
    margin-bottom: 1.5rem;
}

.doc-tip-badge {
    display: inline-block;
    background: #fff7ed;
    color: #9a3412;
    border: 1px solid #ffedd5;
    padding: 0.2rem 0.8rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
}

.doc-date-name {
    text-align: right;
    font-size: 0.75rem;
    color: #334155;
    margin-bottom: 1.2rem;
    line-height: 1.3;
}

.doc-date-name span {
    text-decoration: underline;
    margin-left: 0.5rem;
    padding: 0 0.5rem;
}

.doc-section-mock {
    margin-bottom: 1.2rem;
}

.doc-section-mock h4 {
    font-size: 0.8rem;
    color: #0f172a;
    margin-bottom: 0.4rem;
    display: flex;
    align-items: center;
    font-weight: bold;
    border-bottom: 1px solid #e2e8f0;
    padding-bottom: 0.25rem;
}

.doc-section-mock h4::before {
    content: "■";
    margin-right: 0.5rem;
    font-size: 0.7rem;
}

.doc-section-mock p,
.doc-section-mock ul {
    font-size: 0.7rem;
    color: #334155;
    line-height: 1.3;
    margin-left: 1.2rem;
    margin-bottom: 0;
}

.doc-section-mock ul {
    list-style-type: none;
    padding-left: 0;
}

.doc-section-mock li {
    margin-bottom: 0.3rem;
}

.doc-section-mock li::before {
    content: "・";
    margin-right: 0.3rem;
}

.red-text {
    color: #ef4444;
}

@media (max-width: 1024px) {
    .doc-diagram-container {
        flex-direction: column;
        align-items: center;
        width: 100%;
        overflow-x: hidden;
    }

    .doc-annotations {
        width: 100%;
        margin-bottom: 2rem;
    }

    .doc-mockup {
        width: 100% !important;
        max-width: 100%;
        padding: 1rem 0.6rem;
        min-height: auto;
        aspect-ratio: 1 / 1.414;
        font-size: 0.55rem;
        box-sizing: border-box;
        overflow: hidden;
        word-break: break-all;
    }

    .doc-title-mock {
        font-size: 0.68rem;
        letter-spacing: 0.2em;
        margin-bottom: 0.4rem;
    }

    .doc-date-name {
        font-size: 0.52rem;
        margin-bottom: 0.4rem;
    }

    .doc-section-mock {
        margin-bottom: 0.3rem;
    }

    .doc-section-mock h4 {
        font-size: 0.6rem;
        margin-bottom: 0.12rem;
        padding-bottom: 0.12rem;
    }

    .doc-section-mock p,
    .doc-section-mock ul {
        font-size: 0.52rem;
        line-height: 1.15;
        margin-left: 0.5rem;
    }

    .doc-section-mock li {
        margin-bottom: 0.08rem;
    }

    .doc-tip-container {
        margin-top: -0.2rem;
        margin-bottom: 0.4rem;
    }

    .doc-tip-badge {
        font-size: 0.5rem;
        padding: 0.05rem 0.35rem;
    }

    .annotation-item:not(:last-child)::after {
        display: none;
    }
}

/* Footer */
.site-footer {
    background-color: #ffffff;
    border-top: 1px solid #e2e8f0;
    padding: 3rem 1.5rem;
    margin-top: 4rem;
    text-align: center;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
}

.footer-logo {
    font-size: 1.1rem;
    font-weight: 800;
    color: var(--primary-dark);
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
}

.footer-logo span {
    color: var(--accent);
}

.message {
    color: #96a4e0;
    font-size: 0.9rem;
    letter-spacing: 0.02em;
}

.copyright {
    color: var(--text-muted);
    font-size: 0.5rem;
    letter-spacing: 0.02em;
}

@media (max-width: 768px) {
    .site-footer {
        padding: 2.5rem 1rem;
    }
}

@media (max-width: 480px) {
    .nav-top .nav-container {
        height: auto;
        min-height: 50px;
        padding: 0.5rem 0.75rem;
        align-items: flex-start;
        gap: 0.5rem;
    }

    .nav-branding {
        flex: 1 1 auto;
        min-width: 0;
    }

    .nav-logo {
        gap: 0.5rem;
        align-items: flex-start;
    }

    .nav-logos {
        gap: 0.4rem;
        flex-shrink: 0;
    }

    .header-logo {
        height: 20px;
    }

    .nav-logo-text {
        display: block;
        font-size: 0.58rem;
        line-height: 1.25;
        padding-left: 0.5rem;
        word-break: break-word;
        overflow-wrap: anywhere;
    }

    .nav-actions {
        flex-shrink: 0;
        align-self: flex-start;
    }

    .action-btn {
        padding: 0.38rem 0.6rem;
        font-size: 0.68rem;
        min-height: 32px;
        box-shadow:
            0 8px 18px rgba(37, 99, 235, 0.18),
            inset 0 1px 0 rgba(255, 255, 255, 0.22);
    }

    .nav-main-bar .nav-container {
        height: auto;
        padding: 0 0.5rem;
    }

    .nav-links {
        gap: 0.25rem;
        justify-content: space-between;
        overflow-x: auto;
        white-space: nowrap;
        padding: 0.35rem 0;
    }

    .nav-links li {
        flex: 0 0 auto;
    }

    .nav-links a {
        font-size: 0.72rem;
        padding: 0.45rem 0.55rem;
    }
}

@media (max-width: 900px) {
    .nav-top .nav-container {
        height: auto;
        min-height: 50px;
        align-items: center;
    }

    .nav-branding {
        min-width: 0;
        flex: 1 1 auto;
    }

    .nav-logo {
        flex-direction: row;
        align-items: center;
        gap: 0.5rem;
        white-space: nowrap;
    }

    .nav-logo-text {
        border-left: 2px solid #e2e8f0;
        padding-left: 0.5rem;
        line-height: 1.2;
        font-size: 0.72rem;
        white-space: nowrap;
        word-break: keep-all;
        overflow-wrap: normal;
    }

    .header-logo {
        height: 28px;
        width: auto;
        flex-shrink: 0;
    }
}

@media (max-width: 480px) {
    .nav-top .nav-container {
        padding: 0.5rem 0.75rem;
        align-items: center;
    }

    .nav-logo {
        flex-direction: row;
        align-items: center;
        gap: 0.4rem;
    }

    .nav-logo-text {
        display: block;
        font-size: 0.62rem;
        line-height: 1.15;
        padding-left: 0.45rem;
        white-space: nowrap;
        word-break: keep-all;
        overflow-wrap: normal;
    }

    .header-logo {
        height: 18px;
    }

    .nav-actions {
        align-self: center;
    }
}