/* ==========================================================================
   Variables (Visual Density & Texture)
   ========================================================================== */
:root {
    --color-primary: #a98036;
    /* Gold */
    --color-primary-light: #eaddcf;
    /* Light Gold Tint */
    --color-text-main: #2b2b2b;
    /* Softer Black */
    --color-text-light: #5e5e5e;

    --color-bg-body: #ffffff;
    --color-bg-warm: #faf9f6;
    /* Warm Paper White */
    --color-bg-gray: #f5f5f5;
    /* Light Gray */
    --color-bg-accent: #f8f6f2;
    /* Beige/Gold Tint Background */

    --color-border: #e0e0e0;
    --color-border-accent: #d4c5a9;
    /* Gold-ish Border */

    --font-stack: "Helvetica Neue", "Arial", "Hiragino Kaku Gothic ProN", "Hiragino Sans", "Meiryo", sans-serif;
    --font-size-base: 15px;
    --line-height-base: 1.7;
    /* Reduced from 1.8 for density */

    --spacing-xs: 8px;
    --spacing-sm: 12px;
    --spacing-md: 24px;
    --spacing-lg: 50px;
    /* Reduced considerably */
    --spacing-xl: 60px;
    /* Maximum padding limiter */

    --container-width: 1200px;
}

/* ==========================================================================
   Reset & Base
   ========================================================================== */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    font-size: var(--font-size-base);
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-stack);
    color: var(--color-text-main);
    background-color: var(--color-bg-body);
    line-height: var(--line-height-base);
    -webkit-font-smoothing: antialiased;
    letter-spacing: 0.04em;
}

a {
    color: inherit;
    text-decoration: none;
    transition: all 0.3s ease;
}

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

ul,
ol {
    list-style: none;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* ==========================================================================
   Typography (Structured)
   ========================================================================== */
h1,
h2,
h3,
h4,
h5,
h6 {
    font-weight: 500;
    /* Reverted to Medium for presence */
    line-height: 1.35;
    color: var(--color-text-main);
    letter-spacing: 0.05em;
    margin-bottom: 12px;
}

h1 {
    font-size: 2.2rem;
}

h2 {
    font-size: 1.8rem;
    margin-bottom: 30px;
}

h3 {
    font-size: 1.15rem;
    /* Slightly smaller */
    font-weight: 600;
    margin-bottom: 10px;
}

h4 {
    font-size: 0.95rem;
    /* Refined */
    font-weight: 600;
}

/* Mobile Typography Overrides */
@media (max-width: 768px) {
    h1 {
        font-size: 1.75rem;
        /* Drastic reduction from 2.2rem */
    }

    h2 {
        font-size: 1.45rem;
        /* Drastic reduction from 1.8rem */
        margin-bottom: 20px;
    }

    h3 {
        font-size: 1.1rem;
    }

    .hero-slogan {
        font-size: 1.8rem !important;
        /* Force reduction for mobile hero */
        line-height: 1.4 !important;
    }

    .hero-description {
        font-size: 0.9rem !important;
        line-height: 1.6 !important;
    }
}

p {
    margin-bottom: 24px;
    color: var(--color-text-light);
}

.text-justify {
    text-align: justify;
}

/* ==========================================================================
   Components
   ========================================================================== */
.container {
    width: 90%;
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 var(--spacing-sm);
}

/* Buttons (Solid & Elegant) */
.btn {
    display: inline-block;
    padding: 14px 36px;
    background-color: var(--color-primary);
    color: #ffffff;
    font-size: 0.95rem;
    letter-spacing: 0.05em;
    border: 1px solid var(--color-primary);
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: center;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
    /* Subtle shadow */
}

.btn:hover {
    background-color: #926f2d;
    border-color: #926f2d;
    color: #ffffff;
    transform: translateY(-1px);
}

.btn-outline {
    background-color: #fff;
    color: var(--color-text-main);
    border: 1px solid var(--color-border);
}

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

/* Section Title (Decorated) */
.section-title {
    font-size: 1.8rem;
    text-align: center;
    margin-bottom: var(--spacing-lg);
    position: relative;
    padding-bottom: 25px;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    /* Thicker accent */
    background-color: var(--color-primary);
}

/* Left Aligned Title with Accent */
.section-title-left {
    text-align: left;
    margin-bottom: var(--spacing-md);
    padding-left: 15px;
    border-left: 4px solid var(--color-primary);
    /* Gold vertical bar */
    line-height: 1.2;
}

/* Content Cards (Density) */
.grid-item {
    background-color: #ffffff;
    padding: 30px;
    border: 1px solid var(--color-border);
    border-top: 3px solid var(--color-border);
    /* Subtle top accent */
    transition: all 0.3s ease;
}

.grid-item:hover {
    border-top-color: var(--color-primary);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.03);
}

/* Forms */
input[type="text"],
input[type="email"],
textarea,
select {
    width: 100%;
    padding: 14px;
    border: 1px solid var(--color-border);
    background-color: #fbfbfb;
    font-size: 0.95rem;
    border-radius: 0;
    -webkit-appearance: none;
    appearance: none;
}

input:focus,
textarea:focus {
    outline: none;
    border-color: var(--color-primary);
    background-color: #fff;
}

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

label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    font-size: 0.9rem;
}

/* Tables */
table {
    width: 100%;
    border-collapse: collapse;
    background: #fff;
    border: 1px solid var(--color-border);
}

th,
td {
    padding: 18px;
    border-bottom: 1px solid #eee;
    text-align: left;
}

th {
    background-color: var(--color-bg-warm);
    font-weight: 500;
    width: 30%;
    color: var(--color-text-main);
}