@charset "utf-8";
@import url('https://fonts.googleapis.com/css2?family=Noto+Sans+JP:wght@400;500;700&family=Roboto:wght@400;500;700&family=Zen+Old+Mincho:wght@400;700;900&display=swap');

:root {
    /* Image Matched Theme (Deep Wine/Mauve) */
    --primary-color: #8A334E;
    /* Deep Wine/Mauve Red */
    --primary-dark: #5e1b2f;
    --primary-light: #b8627d;
    --accent-color: #C0A258;
    /* Muted Gold */
    --accent-hover: #a3873e;
    --text-main: #333333;
    --text-light: #666666;
    --bg-body: #fbfaf8;
    /* Warm off-white */
    --bg-white: #ffffff;
    --border-color: #e0e0e0;

    --header-height: 80px;
    --container-width: 1200px;

    --font-heading: 'Noto Sans JP', sans-serif;
    --font-body: 'Roboto', 'Noto Sans JP', sans-serif;

    --shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 15px rgba(0, 0, 0, 0.1);
}

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

body {
    font-family: var(--font-body);
    font-size: 16px;
    line-height: 1.6;
    color: var(--text-main);
    background-color: var(--bg-body);
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

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

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

ul {
    list-style: none;
}

/* Layout */
.container {
    width: 100%;
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 20px;
}

header {
    background-color: var(--bg-white);
    box-shadow: var(--shadow-sm);
    position: sticky;
    top: 0;
    z-index: 1000;
    height: var(--header-height);
    display: flex;
    align-items: center;
}

header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo a {
    display: flex;
    align-items: center;
    gap: 15px;
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 1.5rem;
    color: var(--primary-color);
}

.logo img {
    height: 50px;
    width: auto;
}

.logo-text {
    font-family: 'Zen Old Mincho', serif;
    font-weight: 700;
    color: var(--primary-color);
    letter-spacing: 0.05em;
    display: flex;
    flex-direction: column;
    justify-content: center;
    line-height: 1;
    text-align: left;
}

.company-type {
    font-size: 0.85rem;
    margin-bottom: 2px;
}

.company-name {
    font-size: 1.5rem;
}

/* Navigation */
.main-nav {
    display: flex;
    gap: 30px;
}

.main-nav a {
    font-weight: 500;
    color: var(--text-main);
    padding: 10px 0;
    position: relative;
}

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

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

.main-nav a:hover::after {
    width: 100%;
}

/* Mobile Menu Toggle */
.menu-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
    background: none;
    border: none;
    padding: 10px;
}

.menu-toggle span {
    display: block;
    width: 25px;
    height: 3px;
    background-color: var(--primary-color);
    border-radius: 3px;
    transition: all 0.3s ease;
}

/* Main Content */
main {
    flex: 1;
    padding: 40px 0;
}

/* Footer */
footer {
    background-color: var(--primary-color);
    color: var(--bg-white);
    padding: 40px 0 20px;
    margin-top: auto;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    margin-bottom: 40px;
}

.footer-section h3 {
    font-size: 1.2rem;
    font-weight: 700;
    margin-bottom: 20px;
    color: var(--accent-color);
}

.footer-section p,
.footer-section li {
    font-size: 0.95rem;
    margin-bottom: 10px;
    opacity: 0.9;
}

.footer-section ul li a:hover {
    color: var(--accent-color);
    text-decoration: underline;
}

.copyright {
    text-align: center;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 20px;
    font-size: 0.85rem;
    opacity: 0.7;
}

/* Typography Headings */
h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: var(--font-heading);
    color: var(--primary-color);
    margin-bottom: 1rem;
    line-height: 1.3;
}

h2 {
    font-size: 2rem;
    border-bottom: 2px solid var(--accent-color);
    padding-bottom: 10px;
    margin-bottom: 30px;
    display: inline-block;
}

h3 {
    font-size: 1.5rem;
    margin-top: 30px;
}

/* Utility / Components */
.btn {
    display: inline-block;
    padding: 12px 24px;
    background-color: var(--accent-color);
    color: white;
    font-weight: 700;
    border-radius: 5px;
    box-shadow: var(--shadow-md);
    transition: all 0.3s ease;
}

.btn:hover {
    background-color: var(--accent-hover);
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.card {
    background: var(--bg-white);
    border-radius: 10px;
    padding: 20px;
    box-shadow: var(--shadow-sm);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

/* Responsive */
@media (max-width: 819px) {
    :root {
        --header-height: 60px;
    }

    .menu-toggle {
        display: flex;
    }

    .main-nav {
        position: absolute;
        top: var(--header-height);
        left: 0;
        width: 100%;
        background-color: var(--bg-white);
        flex-direction: column;
        padding: 20px;
        box-shadow: var(--shadow-md);
        gap: 15px;
        clip-path: polygon(0 0, 100% 0, 100% 0, 0 0);
        /* Hidden */
        transition: clip-path 0.4s ease-in-out;
    }

    .main-nav.active {
        clip-path: polygon(0 0, 100% 0, 100% 100%, 0 100%);
    }

    .main-nav a {
        padding: 10px;
        border-bottom: 1px solid var(--border-color);
    }

    .logo a {
        font-size: 1.2rem;
    }

    h2 {
        font-size: 1.5rem;
    }
}

/* Forms */
.form-group {
    margin-bottom: 20px;
}

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

.required {
    color: #e53935;
    margin-left: 4px;
}

.form-control {
    width: 100%;
    padding: 10px 15px;
    border: 1px solid var(--border-color);
    border-radius: 4px;
    font-size: 1rem;
    font-family: inherit;
    transition: border-color 0.3s ease;
}

.form-control:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 2px rgba(0, 105, 92, 0.2);
}

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

.btn-submit {
    display: inline-block;
    padding: 12px 30px;
    background-color: var(--primary-color);
    color: white;
    font-weight: 700;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.3s ease;
    font-size: 1rem;
}

.btn-submit:hover {
    background-color: var(--primary-dark);
}

/* Company Info Table alternative (Definition List) */
.company-info-dl {
    display: grid;
    grid-template-columns: 120px 1fr;
    gap: 15px;
    border-top: 1px solid var(--border-color);
    padding-top: 15px;
    margin-top: 20px;
}

.company-info-dl dt {
    font-weight: 700;
    color: var(--primary-color);
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 15px;
    margin-bottom: 0;
}

.company-info-dl dd {
    margin-left: 0;
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 15px;
    margin-bottom: 0px;
    /* Reset margins for grid items */
}

/* For simple tables if needed */
.modern-table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 20px;
}

.modern-table th,
.modern-table td {
    padding: 12px 15px;
    border-bottom: 1px solid var(--border-color);
    text-align: left;
}

.modern-table th {
    background-color: #f9f9f9;
    font-weight: 700;
    color: var(--primary-dark);
    width: 20%;
    white-space: nowrap;
}

/* Image alignment utilities */
.img-float-right {
    float: right;
    margin-left: 20px;
    margin-bottom: 20px;
}

@media (max-width: 600px) {
    .company-info-dl {
        grid-template-columns: 1fr;
        gap: 5px;
    }

    .company-info-dl dt {
        border-bottom: none;
        padding-bottom: 0;
        margin-bottom: 0;
    }

    .company-info-dl dd {
        padding-bottom: 15px;
        margin-bottom: 10px;
    }

    .img-float-right {
        float: none;
        width: 100%;
        margin-left: 0;
    }

    .modern-table th,
    .modern-table td {
        display: block;
        width: 100%;
    }

    .modern-table th {
        background-color: transparent;
        padding-bottom: 5px;
        border-bottom: none;
    }
}
