@charset "UTF-8";
@import url('https://fonts.googleapis.com/css2?family=Noto+Sans+JP:wght@400;500;700&family=Noto+Serif+JP:wght@400;600&display=swap');

/* Reset & Base */
:root {
    --primary-color: #0f2b46;
    /* Deep Navy - Trust & Professionalism */
    --accent-color: #bfa37c;
    /* Muted Gold - Elegance */
    --text-color: #333333;
    --bg-light: #f9f9fc;
    --border-color: #e0e0e0;
    --white: #ffffff;
    --font-heading: "Noto Serif JP", "Yu Mincho", YuMincho, serif;
    --font-body: "Noto Sans JP", "Hiragino Kaku Gothic ProN", Meiryo, sans-serif;
}

body {
    margin: 0;
    padding: 0;
    font-family: var(--font-body);
    color: var(--text-color);
    background-color: var(--white);
    line-height: 1.8;
    /* Relaxed reading experience */
    -webkit-font-smoothing: antialiased;
    letter-spacing: 0.04em;
}

*,
*::before,
*::after {
    box-sizing: border-box;
}

a {
    color: var(--primary-color);
    text-decoration: none;
    transition: all 0.3s ease;
}

a:hover {
    color: var(--accent-color);
    opacity: 0.8;
}

/* Layout */
.container {
    max-width: 1080px;
    margin: 0 auto;
    padding: 0 40px;
}

/* Mobile responsive padding */
@media (max-width: 768px) {
    .container {
        padding: 0 20px;
    }
}

section {
    padding: 100px 0;
    border-bottom: 1px solid rgba(0, 0, 0, 0.03);
}

section:last-child {
    border-bottom: none;
}

/* Typography */
h1,
h2,
h3,
h4 {
    font-family: var(--font-heading);
    color: var(--primary-color);
    margin-top: 0;
}

h1 {
    font-size: 2.8rem;
    font-weight: 600;
    margin-bottom: 2.5rem;
    line-height: 1.4;
    text-align: center;
}

h2 {
    font-size: 2rem;
    font-weight: 600;
    margin-bottom: 40px;
    text-align: center;
    position: relative;
    padding-bottom: 15px;
}

h2::after {
    content: '';
    display: block;
    width: 60px;
    height: 3px;
    background-color: var(--accent-color);
    margin: 15px auto 0;
}

h3 {
    font-size: 1.4rem;
    font-weight: 600;
    margin-bottom: 15px;
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 10px;
}

p {
    margin-bottom: 1.8rem;
    color: #444;
}

.small {
    font-size: 0.9rem;
    color: #666;
}

/* Components */
.btn {
    display: inline-block;
    padding: 16px 48px;
    background-color: var(--primary-color);
    color: var(--white);
    border: 1px solid var(--primary-color);
    border-radius: 2px;
    /* Sharp, professional look */
    font-size: 1rem;
    font-family: var(--font-body);
    font-weight: 500;
    letter-spacing: 0.05em;
    cursor: pointer;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.btn:hover {
    background-color: var(--white);
    color: var(--primary-color);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.15);
    transform: translateY(-2px);
}

.price-table {
    width: 100%;
    border-collapse: collapse;
    margin: 40px 0;
    font-size: 1rem;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.03);
}

.price-table th,
.price-table td {
    border: 1px solid #eee;
    padding: 20px 25px;
    text-align: left;
}

.price-table th {
    background-color: var(--bg-light);
    color: var(--primary-color);
    font-weight: 600;
    width: 30%;
    font-family: var(--font-heading);
}

.price-table tr:hover td {
    background-color: #fdfdfd;
}

.rules-box {
    background-color: var(--white);
    border: 1px solid var(--border-color);
    border-left: 4px solid var(--accent-color);
    padding: 30px;
    margin: 40px 0;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.03);
}

.rules-box h3 {
    color: var(--primary-color);
    border-bottom: none;
    margin-top: 0;
    font-family: var(--font-heading);
}

.rules-box ul {
    margin: 0;
    padding-left: 20px;
}

.rules-box li {
    margin-bottom: 10px;
}

/* Header */
header {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid #eaeaea;
    position: sticky;
    top: 0;
    z-index: 100;
    padding: 15px 0;
}

nav ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    justify-content: center;
    gap: 40px;
}

nav a {
    color: var(--primary-color);
    font-weight: 500;
    font-size: 0.95rem;
    position: relative;
    padding: 5px 0;
}

nav a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 1px;
    bottom: 0;
    left: 0;
    background-color: var(--accent-color);
    transition: width 0.3s;
}

nav a:hover::after {
    width: 100%;
}

nav a:hover {
    color: var(--primary-color);
    /* Keep text color, distinct by underline */
}

/* Hero Section Specifics */
#hero {
    background: linear-gradient(135deg, #f5f7fa 0%, #eef1f5 100%);
    text-align: center;
    padding: 120px 0 100px;
}

#hero h1 {
    font-size: 3rem;
    margin-bottom: 1.5rem;
    color: var(--primary-color);
}

#hero p {
    font-size: 1.1rem;
    color: #555;
    max-width: 700px;
    margin: 0 auto 40px;
}

/* Cards (for Services/Cases) */
.card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 40px;
    margin-top: 50px;
}

.card {
    background: var(--white);
    padding: 30px;
    border: 1px solid #eee;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    border-color: transparent;
}

.card h3 {
    font-size: 1.3rem;
    margin-top: 0;
    border-bottom: 2px solid var(--bg-light);
    padding-bottom: 15px;
}

/* Fixed CTA */
.fixed-cta {
    position: fixed;
    bottom: 30px;
    right: 30px;
    background-color: var(--primary-color);
    color: var(--white);
    padding: 15px 35px;
    border-radius: 4px;
    box-shadow: 0 4px 20px rgba(15, 43, 70, 0.3);
    z-index: 1000;
    font-weight: 500;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    transition: all 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.fixed-cta span {
    font-size: 0.75rem;
    font-weight: normal;
    letter-spacing: 0.1em;
    opacity: 0.8;
    margin-bottom: 2px;
    display: block;
}

.fixed-cta:hover {
    background-color: #1a3c5e;
    transform: translateY(-2px);
    box-shadow: 0 6px 25px rgba(15, 43, 70, 0.4);
    opacity: 1;
}

/* Footer */
footer {
    background-color: var(--primary-color);
    color: rgba(255, 255, 255, 0.7);
    padding: 60px 0;
    font-size: 0.9rem;
}

footer p {
    color: inherit;
    margin: 0;
}/* ไปฅไธใEในใฟใคใซใๆขๅญใECSSใฎๆซๅฐพใซ่ฟฝๅ ใใฆใใ ใใ */

/* Form Styles */
.form-container {
    background-color: #fff;
    padding: 40px;
    border-radius: 4px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    max-width: 800px;
    margin: 0 auto;
}

.form-group {
    margin-bottom: 25px;
}

.form-label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: var(--primary-color);
}

.badge-required {
    display: inline-block;
    background-color: #d9534f;
    color: #fff;
    font-size: 0.75rem;
    padding: 2px 6px;
    border-radius: 2px;
    margin-left: 8px;
    vertical-align: middle;
}

.badge-optional {
    display: inline-block;
    background-color: #777;
    color: #fff;
    font-size: 0.75rem;
    padding: 2px 6px;
    border-radius: 2px;
    margin-left: 8px;
    vertical-align: middle;
}

.form-control {
    width: 100%;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 2px;
    font-size: 1rem;
    font-family: var(--font-body);
    transition: border-color 0.3s;
}

.form-control:focus {
    border-color: var(--primary-color);
    outline: none;
    box-shadow: 0 0 0 2px rgba(15, 43, 70, 0.1);
}

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

.radio-group,
.checkbox-group {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    padding-top: 5px;
}

.radio-label,
.checkbox-label {
    display: flex;
    align-items: center;
    cursor: pointer;
    font-weight: normal;
}

.radio-label input,
.checkbox-label input {
    margin-right: 8px;
    transform: scale(1.1);
}

.form-notice {
    background-color: #fff3cd;
    border: 1px solid #ffeeba;
    color: #856404;
    padding: 20px;
    border-radius: 4px;
    margin-bottom: 30px;
}

.form-notice h3 {
    color: #856404;
    font-size: 1.1rem;
    margin-top: 0;
    border-bottom: 1px solid #ffeeba;
    padding-bottom: 10px;
}

.form-notice ul {
    margin: 0;
    padding-left: 20px;
}

.form-notice li {
    margin-bottom: 5px;
}

.btn-submit {
    display: block;
    width: 100%;
    max-width: 400px;
    margin: 40px auto 0;
    padding: 18px;
    background-color: var(--primary-color);
    color: #fff;
    border: none;
    border-radius: 4px;
    font-size: 1.1rem;
    font-weight: bold;
    cursor: pointer;
    transition: background-color 0.3s;
}

.btn-submit:hover {
    background-color: #1a3c5e;
}

.spot-alert {
    border-left: 5px solid #d9534f;
    background-color: #fff5f5;
    padding: 20px;
    margin-bottom: 30px;
}

.spot-alert h3 {
    color: #d9534f;
    margin-top: 0;
    font-size: 1.2rem;
    border-bottom: none;
}

/* Toggle visibility based on checkbox */
.conditional-field {
    display: none;
    background-color: #f9f9fc;
    padding: 20px;
    border-radius: 4px;
    margin-top: 15px;
    border: 1px solid #e0e0e0;
}

.conditional-field.active {
    display: block;
    animation: fadeIn 0.3s ease-in-out;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(-10px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Case Study Styles */
.case-card {
    background: #fff;
    border: 1px solid #e0e0e0;
    margin-bottom: 40px;
    padding: 30px;
    border-radius: 4px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.02);
}

.case-header {
    border-bottom: 2px solid var(--bg-light);
    margin-bottom: 20px;
    padding-bottom: 15px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
}

.case-title {
    font-size: 1.4rem;
    color: var(--primary-color);
    font-weight: bold;
    margin: 0;
    font-family: var(--font-heading);
}

.case-tag {
    background: var(--primary-color);
    color: #fff;
    padding: 4px 12px;
    font-size: 0.85rem;
    border-radius: 2px;
}

.case-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-top: 20px;
}

@media(max-width: 768px){ .case-grid { grid-template-columns: 1fr; } }

.case-block {
    background: #fdfdfd;
    padding: 20px;
    border-radius: 4px;
    border: 1px solid #eee;
}

.case-block h4 {
    font-size: 1rem;
    color: var(--primary-color);
    margin-bottom: 10px;
    border-bottom: 1px dashed #ddd;
    padding-bottom: 5px;
}

.cta-box {
    background-color: var(--bg-light);
    padding: 40px;
    text-align: center;
    margin-top: 60px;
    border-radius: 4px;
    border: 1px solid #eee;
}


/* Scope Banner */
.scope-banner {
    background-color: #fff;
    border-top: 4px solid var(--accent-color);
    border-bottom: 1px solid #e0e0e0;
    padding: 50px 0;
    text-align: center;
}

.scope-banner h2 {
    font-size: 1.3rem;
    margin-bottom: 20px;
    color: var(--primary-color);
    border-bottom: none;
    position: relative;
    display: inline-block;
    padding-bottom: 0;
}

.scope-banner h2::after {
    display: none;
}

.scope-banner p {
    font-size: 0.95rem;
    max-width: 800px;
    margin: 0 auto 10px;
    line-height: 1.6;
}

.scope-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 15px;
    margin: 30px 0;
}

.scope-item {
    background: #f9f9fc;
    padding: 12px 20px;
    border-radius: 4px;
    border: 1px solid #eee;
    font-weight: 500;
    font-size: 0.9rem;
    color: #444;
    display: flex;
    align-items: center;
}

.scope-item strong {
    margin-right: 8px;
    font-size: 1.1rem;
}

.scope-links {
    margin-top: 25px;
    font-size: 0.9rem;
}

.scope-links a {
    margin: 0 15px;
    text-decoration: underline;
    color: #666;
    font-weight: 500;
}

.scope-links a:hover {
    color: var(--primary-color);
}


/* Plan Selection Cards */
.plan-selection-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 15px;
    margin: 30px 0;
}

@media (max-width: 768px) {
    .plan-selection-grid {
        grid-template-columns: 1fr;
    }
}

.plan-card {
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 6px;
    padding: 20px;
    text-align: center;
    cursor: pointer;
    transition: all 0.2s ease;
}

.plan-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
    border-color: var(--primary-color);
}

.plan-card.recommended {
    border: 2px solid var(--accent-color);
    position: relative;
    background: #fffcf5;
}

.plan-card .badge-rec {
    position: absolute;
    top: -12px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--accent-color);
    color: #fff;
    font-size: 0.8rem;
    padding: 2px 10px;
    border-radius: 10px;
    font-weight: bold;
}


/* Diagnostic Tool */
.diagnostic-box {
    background: #eef5f9;
    padding: 30px;
    border-radius: 8px;
    margin: 40px 0;
    border: 1px solid #dcdcdc;
}

.diagnostic-step {
    margin-bottom: 25px;
}

.diagnostic-step h4 {
    margin-top: 0;
    font-size: 1.1rem;
    color: #444;
    margin-bottom: 10px;
}

.diag-options {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.diag-btn {
    background: #fff;
    border: 1px solid #ccc;
    padding: 10px 15px;
    border-radius: 4px;
    cursor: pointer;
    flex: 1;
    text-align: center;
    transition: all 0.2s;
}

.diag-btn:hover, .diag-btn.selected {
    background: var(--primary-color);
    color: #fff;
    border-color: var(--primary-color);
}

#diagnostic-result {
    display: none;
    margin-top: 25px;
    padding-top: 20px;
    border-top: 1px dashed #bbb;
    animation: fadeIn 0.5s;
}


/* Mobile adjustments for main content spacing */
@media (max-width: 768px) {
    main .container {
        padding-top: 20px !important; /* ฉoตใฬ]๐l฿้ */
    }
    
    main h1 {
        margin-bottom: 20px; /* h1บฬ]๐ฒฎ */
        font-size: 1.8rem;
    }

    main h2 {
        margin-top: 30px; /* h2ใฬ]๐ฒฎ */
        font-size: 1.4rem;
    }
    
    section {
        margin-bottom: 30px; /* ZNVิฬ]๐ฒฎ */
    }
}
