/* --- Base Styles --- */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

:root {
    --md-primary: #0f68ba;
    --md-primary-light: #5497d1;
    --md-surface: rgba(255, 255, 255, 0.92);
    --md-text-main: #262626;
    --md-text-muted: #616161;
    --md-border: rgba(226, 232, 240, 0.8);
    --font-base: 'Noto Sans JP', sans-serif;
    --font-en: 'Plus Jakarta Sans', sans-serif;
}

body {
    font-family: var(--font-base);
    background-image: linear-gradient(rgba(242, 242, 242, 0.85), rgba(242, 242, 242, 0.85)), url('../images/background-image1.webp');
    background-repeat: no-repeat;
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    color: var(--md-text-main);
    line-height: 1.75;
    -webkit-font-smoothing: antialiased;
}

a {
    color: inherit;
    text-decoration: none;
    transition: color 0.3s ease;
}

img {
    max-width: 100%;
    height: auto;
    vertical-align: middle;
}

/* --- Header & Nav --- */
.site-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 100;
    background-color: transparent;
    border-bottom: 1px solid rgba(255, 255, 255, 0.15);
    transition: background-color 0.4s ease, box-shadow 0.4s ease, border-color 0.4s ease;
}

.site-header.sub-page-header,
.site-header.is-scrolled {
    background-color: #5497d1;
    border-bottom-color: transparent;
    box-shadow: 0 4px 12px rgba(15, 104, 186, 0.15);
}

.header-inner {
    width: 100%;
    max-width: 100%;
    padding: 24px 40px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
}

.logo img {
    height: 44px;
    width: auto;
    object-fit: contain;
}

.nav-list {
    list-style: none;
    display: flex;
    gap: 32px;
}

.nav-list a {
    font-size: 15px;
    font-weight: 500;
    color: #ffffff;
    padding-bottom: 4px;
    position: relative;
    opacity: 0.85;
    transition: opacity 0.3s ease;
}

.nav-list a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background-color: #ffffff;
    transition: width 0.3s ease;
}

.nav-list a:hover {
    opacity: 1;
}

.nav-list a:hover::after,
.nav-list a.active::after {
    width: 100%;
}

.nav-list a.active {
    opacity: 1;
    font-weight: 700;
}

.hamburger-menu {
    display: none;
}

/* --- Top Visual --- */
#top-visual {
    width: 100%;
    max-width: 100%;
    height: 100vh;
    overflow: hidden;
    background-color: #000;
}

.visual-img-wrap {
    width: 100%;
    height: 100%;
}

.visual-img-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center center;
    display: block;
    opacity: 0;
    filter: blur(20px);
    transform: scale(1.08);
    animation: topVisualIntro 1.0s cubic-bezier(0.25, 1, 0.5, 1) 0.5s forwards;
}

@keyframes topVisualIntro {
    0% {
        opacity: 0;
        filter: blur(20px);
        transform: scale(1.08);
    }
    100% {
        opacity: 1;
        filter: blur(0);
        transform: scale(1);
    }
}

/* --- Scroll Animation --- */
.js-fade {
    opacity: 0;
    transform: translateY(40px);
    will-change: transform, opacity;
    transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1), transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.js-fade.is-active {
    opacity: 1;
    transform: translateY(0);
}

/* --- Layout Containers --- */
.main-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 80px 24px 100px;
}

.sub-page-header ~ .main-content {
    padding-top: 140px;
}

.section-container {
    margin-bottom: 100px;
}

.section-container:last-child {
    margin-bottom: 0;
}

.section-header {
    text-align: left;
    margin-bottom: 40px;
    padding-left: 16px;
    border-left: 4px solid var(--md-primary);
}

.section-title {
    font-size: 28px;
    font-weight: 700;
    letter-spacing: 0.05em;
    color: var(--md-primary);
    line-height: 1.2;
}

.section-sub-title {
    display: block;
    font-family: var(--font-en);
    font-size: 13px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: var(--md-primary-light);
    margin-bottom: 4px;
}

/* --- Content Blocks --- */
.info-table-wrap,
.history-timeline,
.greeting-content,
.contact-form-wrap,
#greeting-section .greeting-content {
    background-color: var(--md-surface);
    padding: 40px;
    border-radius: 16px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.04);
    border: 1px solid var(--md-border);
    backdrop-filter: blur(8px);
    margin-top: 20px;
}

/* --- Corporate Info Table --- */
.info-table {
    display: flex;
    flex-direction: column;
}

.table-row {
    display: grid;
    grid-template-columns: 240px 1fr;
    gap: 24px;
    border-bottom: 1px solid var(--md-border);
}

.table-row:last-child {
    border-bottom: none;
}

.info-table dt {
    font-weight: 700;
    color: var(--md-primary);
    padding: 18px 0;
}

.info-table dd {
    color: var(--md-text-main);
    padding: 18px 0;
}

/* --- History Timeline --- */
.timeline-list {
    list-style: none;
    display: flex;
    flex-direction: column;
}

.timeline-list li {
    display: flex;
    align-items: center;
    gap: 24px;
    border-bottom: 1px solid var(--md-border);
    padding: 18px 0;
}

.timeline-list li:first-child {
    padding-top: 0;
}

.timeline-list li:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.timeline-list .date {
    font-weight: 700;
    color: var(--md-primary);
    width: 140px;
    min-width: 140px;
    flex-shrink: 0;
    border-right: 1px solid var(--md-border);
    padding-right: 16px;
}

.timeline-list .content {
    color: var(--md-text-main);
}

/* --- Representative Message --- */
.greeting-content p {
    font-size: 15px;
    color: var(--md-text-main);
    margin-bottom: 16px;
}

.greeting-content p:last-child {
    margin-bottom: 0;
}

/* --- Contact Form Styles --- */
.form-container {
    background-color: var(--md-surface);
    padding: 40px;
    border-radius: 16px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.04);
    border: 1px solid var(--md-border);
    backdrop-filter: blur(8px);
    margin-top: 20px;
}

.maintenance-alert {
    background-color: #fff3cd;
    border: 1px solid #ffeeba;
    border-radius: 8px;
    padding: 24px;
    margin-bottom: 32px;
    color: #856404;
    line-height: 1.8;
}

.maintenance-title {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 8px;
    color: #721c24;
}

.contact-form {
    pointer-events: none;
    user-select: none;
    background-color: #e2e8f0;
    padding: 32px;
    border-radius: 12px;
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.contact-form .form-label,
.contact-form .form-control {
    opacity: 0.6;
}

.form-group {
    margin-bottom: 24px;
}

.form-label {
    display: block;
    font-weight: 700;
    color: var(--md-primary);
    margin-bottom: 8px;
    font-size: 15px;
}

.form-control {
    width: 100%;
    padding: 12px 16px;
    font-size: 15px;
    font-family: var(--font-base);
    color: var(--md-text-main);
    background-color: rgba(255, 255, 255, 0.5);
    border: 1px solid var(--md-border);
    border-radius: 6px;
}

textarea.form-control {
    resize: none;
}

.form-submit-wrap {
    text-align: center;
    margin-top: 32px;
}

.btn-submit {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    background-color: #94a3b8;
    font-weight: 700;
    font-size: 15px;
    padding: 14px 48px;
    border-radius: 6px;
    border: none;
}

/* --- Product Spec Table --- */
.spec-list table {
    width: 100%;
    border-collapse: collapse;
    background-color: var(--md-surface);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.04);
    border: 1px solid var(--md-border);
    margin-top: 24px;
}

.spec-list th,
.spec-list td {
    padding: 16px 24px;
    text-align: left;
    border-bottom: 1px solid var(--md-border);
}

.spec-list tr:last-child th,
.spec-list tr:last-child td {
    border-bottom: none;
}

.spec-list th {
    background-color: rgba(15, 104, 186, 0.05);
    font-weight: 700;
    color: var(--md-primary);
    width: 240px;
}

.spec-list td {
    color: var(--md-text-main);
}

/* --- Component Cards --- */
.card-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 32px;
}

.card-item {
    background-color: var(--md-surface);
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.04);
    border: 1px solid var(--md-border);
    backdrop-filter: blur(8px);
    display: flex;
    flex-direction: column;
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.card-item:hover {
    transform: translateY(-6px);
    box-shadow: 0 12px 30px rgba(15, 104, 186, 0.12);
}

.card-img {
    width: 100%;
    height: 240px;
    overflow: hidden;
    background-color: #f7fafc;
}

.card-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.card-item:hover .card-img img {
    transform: scale(1.05);
}

.card-body {
    padding: 32px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.card-title {
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 14px;
    color: var(--md-primary);
}

.card-text {
    font-size: 15px;
    color: var(--md-text-muted);
    line-height: 1.7;
    flex-grow: 1;
}

.card-item.horizontal {
    grid-column: span 2;
    flex-direction: row;
}

.card-item.horizontal .card-img {
    width: 40%;
    height: auto;
    min-height: 280px;
}

.card-item.horizontal .card-body {
    width: 60%;
}

.brand-sub {
    font-size: 14px;
    color: var(--md-primary-light);
    font-weight: 500;
}

/* --- Button --- */
.card-link-wrap {
    margin-top: 24px;
}

.btn-text {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: #ffffff;
    background-color: var(--md-primary);
    font-weight: 700;
    font-size: 14px;
    padding: 12px 24px;
    border-radius: 6px;
    border: none;
    position: relative;
    overflow: hidden;
    z-index: 1;
    transition: color 0.3s ease;
}

.btn-text::after {
    content: '→';
    display: inline-block;
    transition: transform 0.3s ease;
}

.btn-text::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: #0c4880;
    transform: scaleX(0);
    transform-origin: right;
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    z-index: -1;
}

.btn-text:hover::before {
    transform: scaleX(1);
    transform-origin: left;
}

.btn-text:hover::after {
    transform: translateX(4px);
}

/* --- Footer --- */
.site-footer {
    background-color: #5497d1;
    color: #ffffff;
    padding: 60px 24px 40px;
    border-top: 1px solid rgba(255, 255, 255, 0.15);
}

.footer-inner {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 32px;
}

.footer-nav ul {
    list-style: none;
    display: flex;
    gap: 40px;
}

.footer-nav a {
    font-size: 14px;
    opacity: 0.8;
}

.footer-nav a:hover {
    opacity: 1;
}

.copyright {
    font-size: 13px;
    opacity: 0.7;
}

/* --- Responsive Adjustments --- */
@media screen and (max-width: 968px) {
    .pc-nav {
        display: none;
    }

    .hamburger-menu {
        display: block;
        position: relative;
    }

    .menu-btn {
        display: none;
    }

    .menu-icon {
        cursor: pointer;
        display: block;
        padding: 24px 8px;
        position: relative;
        user-select: none;
        z-index: 110;
    }

    .menu-icon .navicon {
        background: #ffffff;
        display: block;
        height: 2px;
        position: relative;
        transition: background .2s ease-out;
        width: 24px;
    }

    .menu-icon .navicon:before,
    .menu-icon .navicon:after {
        background: #ffffff;
        content: '';
        display: block;
        height: 100%;
        position: absolute;
        transition: all .2s ease-out;
        width: 100%;
    }

    .menu-icon .navicon:before {
        top: 7px;
    }

    .menu-icon .navicon:after {
        top: -7px;
    }

    .menu-btn:checked ~ .menu-icon .navicon {
        background: transparent;
    }

    .menu-btn:checked ~ .menu-icon .navicon:before {
        transform: rotate(-45deg);
        top: 0;
    }

    .menu-btn:checked ~ .menu-icon .navicon:after {
        transform: rotate(45deg);
        top: 0;
    }

    .menu-drawer {
        position: fixed;
        top: 0;
        right: -100%;
        width: 280px;
        height: 100vh;
        background-color: #ffffff;
        box-shadow: -4px 0 20px rgba(0, 0, 0, 0.15);
        padding: 100px 32px 40px;
        transition: right 0.3s cubic-bezier(0.16, 1, 0.3, 1);
        z-index: 105;
    }

    .menu-btn:checked ~ .menu-drawer {
        right: 0;
    }

    .menu-list {
        list-style: none;
        display: flex;
        flex-direction: column;
        gap: 24px;
    }

    .menu-list a {
        font-size: 16px;
        font-weight: 500;
        color: var(--md-text-main);
        display: block;
        padding: 8px 0;
        border-bottom: 1px solid var(--md-border);
    }

    .header-inner {
        padding: 16px 24px;
    }

    .logo img {
        height: 33px;
    }

    #top-visual {
        height: 420px;
    }

    .visual-img-wrap {
        height: 100%;
    }

    .visual-img-wrap img {
        width: 100%;
        height: 100%;
        object-fit: cover;
    }

    .info-table-wrap,
    .history-timeline,
    .greeting-content,
    .contact-form-wrap {
        padding: 24px;
    }

    .table-row {
        grid-template-columns: 1fr;
        gap: 0;
    }

    .info-table dt {
        padding-bottom: 4px;
    }

    .info-table dd {
        padding-top: 0;
        padding-bottom: 16px;
    }

    .timeline-list li {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
        padding: 16px 0;
    }

    .timeline-list .date {
        width: auto;
        min-width: 0;
        border-right: none;
        padding-right: 0;
    }

    .form-group {
        margin-bottom: 16px;
    }

    .btn-submit {
        width: 100%;
        padding: 14px 24px;
    }

    .spec-list th,
    .spec-list td {
        padding: 12px 16px;
    }

    .spec-list table,
    .spec-list tr,
    .spec-list th,
    .spec-list td {
        display: block;
        width: 100%;
    }

    .spec-list th {
        border-bottom: none;
        padding-bottom: 4px;
    }

    .card-grid {
        grid-template-columns: 1fr;
        gap: 24px;
    }

    .card-item.horizontal {
        grid-column: span 1;
        flex-direction: column;
    }

    .card-item.horizontal .card-img {
        width: 100%;
        height: 220px;
    }

    .card-item.horizontal .card-body {
        width: 100%;
    }

    .section-title {
        font-size: 24px;
    }

    .footer-nav ul {
        flex-direction: column;
        align-items: center;
        gap: 16px;
    }
}