/* Corporate Trust Style */
:root {
    --color-primary: #003366;
    /* Navy */
    --color-secondary: #004d99;
    /* Lighter Navy */
    --color-accent: #cc0000;
    /* Red for simple accent if needed, but mainly blue/white */
    --color-text: #333333;
    --color-text-light: #666666;
    --color-bg: #ffffff;
    --color-bg-alt: #f5f7fa;
    --color-border: #dde2e6;

    --font-heading: 'Noto Sans JP', sans-serif;
    --font-body: 'Noto Sans JP', sans-serif;

    --container-width: 1100px;
    /* Slightly narrower for corporate feel */
    --section-spacing: 100px;
    --transition-speed: 0.3s;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: var(--font-body);
    color: var(--color-text);
    background-color: var(--color-bg);
    line-height: 1.6;
}

a {
    text-decoration: none;
    color: inherit;
    transition: all var(--transition-speed);
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* Utilities */
.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 20px;
}

.section {
    padding: var(--section-spacing) 0;
}

.section__title {
    font-size: 2.5rem;
    color: var(--color-primary);
    margin-bottom: 3rem;
    border-bottom: 2px solid var(--color-primary);
    padding-bottom: 0.5rem;
    display: inline-block;
}

.section__title-ja {
    font-size: 1rem;
    color: var(--color-text-light);
    margin-left: 1rem;
    font-weight: 400;
}

.btn {
    display: inline-block;
    padding: 12px 30px;
    font-size: 1rem;
    font-weight: 700;
    border-radius: 4px;
    text-align: center;
    cursor: pointer;
}

.btn--primary {
    background-color: var(--color-primary);
    color: #fff;
    border: 1px solid var(--color-primary);
}

.btn--primary:hover {
    background-color: #fff;
    color: var(--color-primary);
}

.btn--white {
    background-color: #fff;
    color: var(--color-primary);
    border: 1px solid #fff;
}

.btn--white:hover {
    background-color: var(--color-primary);
    color: #fff;
    border-color: var(--color-primary);
}

.btn--white-outline {
    background-color: transparent;
    color: #fff;
    border: 1px solid #fff;
}

.btn--white-outline:hover {
    background-color: #fff;
    color: var(--color-primary);
}

.btn--lg {
    padding: 15px 50px;
    font-size: 1.2rem;
}

.text-right {
    text-align: right;
    margin-top: 1rem;
}

.link-arrow {
    color: var(--color-primary);
    font-weight: 700;
}

.link-arrow::after {
    content: ' >';
}

.label {
    display: inline-block;
    padding: 2px 10px;
    font-size: 0.8rem;
    color: #fff;
    background-color: #999;
    border-radius: 2px;
}

.label--blue {
    background-color: var(--color-primary);
}

.label--gray {
    background-color: #999;
}

/* Header */
.header {
    background-color: #fff;
    border-bottom: 1px solid var(--color-border);
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    height: 80px;
    display: flex;
    align-items: center;
}

.header__container {
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--color-primary);
}

.nav__list {
    display: flex;
    align-items: center;
    gap: 2rem;
}

.nav__link {
    font-weight: 700;
    color: var(--color-primary);
}

.nav__link:hover {
    color: var(--color-secondary);
}

.hamburger {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    flex-direction: column;
    gap: 5px;
}

.hamburger span {
    display: block;
    width: 25px;
    height: 3px;
    background-color: var(--color-primary);
}

/* Hero */
.hero {
    height: 600px;
    /* PC height */
    background-color: #e0e0e0;
    /* Fallback */
    background-image: linear-gradient(rgba(0, 51, 102, 0.3), rgba(0, 51, 102, 0.3)), url('https://placehold.co/1920x1080/003366/FFFFFF/png?text=Corporate+Image');
    /* Placeholder Service */
    background-size: cover;
    background-position: center;
    position: relative;
    margin-top: 80px;
    /* Header Height */
    display: flex;
    align-items: center;
}

.hero__overlay {
    width: 100%;
}

.hero__content {
    background-color: rgba(0, 51, 102, 0.8);
    /* Semi-transparent blue box */
    padding: 3rem;
    color: #fff;
    max-width: 600px;
    margin-left: 20px;
    /* Left aligned box */
}

/* Allow hero content to align with container properly */
@media (min-width: 768px) {
    .hero__content {
        margin-left: 0;
        /* Reset margin and rely on container padding */
    }
}


.hero__title {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    line-height: 1.2;
}

.hero__subtitle {
    font-size: 1.1rem;
    margin-bottom: 2rem;
    opacity: 0.9;
}

/* News */
.news {
    background-color: #fff;
}

.news__table-wrapper {
    overflow-x: auto;
}

.news__table {
    width: 100%;
    border-collapse: collapse;
}

.news__row {
    border-bottom: 1px solid var(--color-border);
}

.news__row:first-child {
    border-top: 1px solid var(--color-border);
}

.news__date,
.news__cat,
.news__text {
    padding: 1.2rem 1rem;
    vertical-align: middle;
}

.news__date {
    width: 120px;
    color: var(--color-text-light);
    font-family: inherit;
}

.news__cat {
    width: 120px;
}

.news__text a:hover {
    text-decoration: underline;
    color: var(--color-primary);
}

/* Service */
.service {
    background-color: var(--color-bg-alt);
}

.service__grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

.service__card {
    background-color: #fff;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s;
}

.service__card:hover {
    transform: translateY(-5px);
}

.placeholder-blue {
    background-color: var(--color-primary);
    height: 200px;
    opacity: 0.8;
}

.service__name {
    padding: 1.5rem 1.5rem 0.5rem;
    font-size: 1.3rem;
    color: var(--color-primary);
}

.service__desc {
    padding: 0 1.5rem 1.5rem;
    color: var(--color-text-light);
    font-size: 0.9rem;
}

/* Company */
.company__container {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 4rem;
}

.company__list {
    border-top: 2px solid var(--color-primary);
}

.company__row {
    display: flex;
    border-bottom: 1px solid var(--color-border);
    padding: 1rem 0;
}

.company__row dt {
    width: 150px;
    font-weight: 700;
}

.company__row dd {
    flex: 1;
}

.placeholder-gray {
    background-color: #ddd;
    height: 100%;
    min-height: 300px;
}

/* Contact */
.contact {
    background-color: var(--color-primary);
    color: #fff;
    text-align: center;
    padding: 80px 0;
}

.contact__title {
    font-size: 2rem;
    margin-bottom: 1.5rem;
}

.contact__text {
    margin-bottom: 2.5rem;
    opacity: 0.9;
}

/* Footer */
.footer {
    background-color: #f5f5f5;
    padding-top: 60px;
    color: var(--color-text);
}

.footer__container {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    padding-bottom: 40px;
}

.footer__address {
    font-style: normal;
    margin-top: 1rem;
    line-height: 1.8;
    color: var(--color-text-light);
}

.footer__nav {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem 2rem;
    max-width: 500px;
}

.footer__nav a {
    font-weight: 500;
    font-size: 0.9rem;
}

.footer__nav a:hover {
    color: var(--color-primary);
}

.footer__bottom {
    background-color: var(--color-primary);
    color: #fff;
    padding: 1rem 0;
    text-align: center;
    font-size: 0.8rem;
}

/* Mobile */
@media (max-width: 768px) {
    :root {
        --section-spacing: 60px;
    }

    .hero__content {
        margin: 0 20px;
        /* Add margin back for mobile */
    }

    .nav {
        position: fixed;
        top: 80px;
        right: -100%;
        width: 100%;
        height: calc(100vh - 80px);
        background-color: #fff;
        transition: right 0.3s;
        padding: 2rem;
    }

    .nav.active {
        right: 0;
    }

    .nav__list {
        flex-direction: column;
        align-items: flex-start;
        gap: 1.5rem;
    }

    .nav__item {
        width: 100%;
        border-bottom: 1px solid var(--color-border);
        padding-bottom: 1rem;
    }

    .hamburger {
        display: flex;
    }

    .service__grid {
        grid-template-columns: 1fr;
    }

    .company__container {
        grid-template-columns: 1fr;
    }

    .company__img {
        height: 200px;
        order: -1;
        /* Image first on mobile? Or hidden? Let's keep it below. */
        order: 0;
    }

    .news__date {
        display: block;
        width: 100%;
        padding-bottom: 0;
    }

    .news__cat {
        display: inline-block;
        width: auto;
        padding-top: 0.5rem;
        padding-bottom: 0.5rem;
    }

    .news__text {
        display: block;
        padding-top: 0;
    }

    .news__row {
        display: block;
        padding: 1rem 0;
    }

    .footer__container {
        flex-direction: column;
        gap: 2rem;
    }
}