/* assets/css/layout/main.css */

/**************************************************************
  Header
**************************************************************/
.l-header {
    position: fixed;
    inset: 0.0 0.0 auto 0.0;
    width: 100.0%;
    background-color: var(--color-base);
    border-bottom: 1px solid var(--color-border-light);
    z-index: 10001;
}

.l-header__top {
    background-color: var(--color-main);
    color: #ffffff;
}

.l-header__top-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: min(100.0%, var(--content-width));
    margin-inline: auto;
    padding-inline: var(--inline-gutter);
}

.l-header__tagline {
    font-size: 11px;
    font-weight: 700;
}

.l-header__contact-group {
    display: flex;
    align-items: center;
    gap: 24px;
    padding-block: 8px;
}

.l-header__info {
    display: flex;
    gap: 16px;
    font-size: 11px;
    font-weight: 500;
}

.l-header__tel-list {
    display: flex;
    gap: 16px;
    font-size: 12px;
}

.l-header__tel-item {
    font-weight: 700;
}

.l-header__tel-item a {
    color: inherit;
}

.l-header__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: min(100.0%, var(--content-width));
    margin-inline: auto;
    padding-block: 16px;
    padding-inline: var(--inline-gutter);
    position: static;
}

.l-header__logo {
    flex-shrink: 0;
    line-height: 1.0;
}

.l-header__logo img {
    display: block;
    height: auto;
}

.l-header__nav {
    margin-left: auto;
    margin-right: 40px;
}

@media screen and (max-width: 1024px) {
    .l-header__nav {
        display: none;
    }
}

.l-header__nav-list {
    display: flex;
    align-items: center;
    gap: 32px;
}

.l-header__nav-item {
    position: static;
}

.l-header__nav-item>a {
    display: block;
    padding-block: 10px;
    font-weight: 600;
    font-size: 15px;
    color: var(--color-text-main);
    position: relative;
}

.l-header__nav-item>a::after {
    content: "";
    position: absolute;
    bottom: 0.0;
    left: 0.0;
    width: 0.0;
    height: 2px;
    background-color: var(--color-main);
    transition: width 0.3s ease;
}

@media (any-hover: hover) {
    .l-header__nav-item>a:hover::after {
        width: 100.0%;
    }
}

.l-header__mega {
    position: absolute;
    top: 100.0%;
    left: 0.0;
    width: 100.0vw;
    background-color: #ffffff;
    box-shadow: 0.0 20px 40px rgba(0, 0, 0, 0.10);
    border-top: 1px solid var(--color-border-light);
    opacity: 0.0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: -1;
    pointer-events: none;
}

/* マウス移動時の隙間を埋める補助要素 */
.l-header__mega::before {
    content: "";
    position: absolute;
    top: -30px;
    left: 0.0;
    width: 100.0%;
    height: 30px;
    background-color: transparent;
}

.l-header__mega.is-active {
    opacity: 1.0;
    visibility: visible;
    pointer-events: auto;
}

.l-header__mega-inner {
    display: grid;
    grid-template-columns: repeat(3, 1fr) 300px;
    gap: 40px;
    width: min(100.0%, var(--content-width));
    margin-inline: auto;
    padding: 48px var(--inline-gutter);
}

.l-header__mega-col {
    display: flex;
    flex-direction: column;
}

.l-header__mega-title {
    font-size: 16px;
    font-weight: 700;
    color: var(--color-text-main);
    margin-bottom: 20px;
    border-left: 4px solid var(--color-main);
    padding-left: 12px;
    line-height: 1.2;
}

.l-header__mega-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.l-header__mega-list li a {
    font-size: 14px;
    color: var(--color-text-main);
    transition: color 0.2s;
}

@media (any-hover: hover) {
    .l-header__mega-list li a:hover {
        color: var(--color-main);
    }
}

.l-header__mega-visual {
    background-color: var(--color-surface-light);
    padding: 24px;
    border-radius: 8px;
}

.l-header__mega-banner p {
    font-weight: 700;
    font-size: 18px;
    line-height: 1.5;
    margin-bottom: 16px;
    color: var(--color-text-main);
}

.l-header__mega-banner .c-button {
    width: 100.0%;
    min-width: auto;
}

.l-header__actions {
    flex-shrink: 0;
}