@charset "UTF-8";
/* CSS Document */

header.Header {
    background-color: #e60013;
    position: sticky;
    top: 0;
    z-index: 3;
}
header.Header::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: -35px;
    height: 35px;
    background: #e60012;
    clip-path: ellipse(60% 35px at 50% 0%);
}

div.Header__Inner {
    display: flex;
    flex-direction: row;
    align-items: center;
    height: auto;
    justify-content: space-between;
    padding-top: 15px;
}

div.Header__Inner picture {
    width: clamp(80px, 18vw, 100px);
}

div.Header__Inner ul.Header__List {
    display: flex;
    justify-content: flex-end;
}

div.Header__Inner ul.Header__List li {
    color: white;
    font-weight: bold;
    font-size: large;
}

div.Header__Inner ul.Header__List li.Header__Column,
div.Header__Inner ul.Header__List li.Header__Recommendation,
div.Header__Inner ul.Header__List li.Header__Contact {
    margin-left: 15px;
}
li.Header__Find {
    position: relative;
}
.Header__Find {
    position: relative;
}
.Header__Find > ul {
    position: absolute;
    top: 100%;
    left: 0;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-6px);
    pointer-events: none;
    transition: opacity .18s ease, transform .18s ease, visibility .18s ease;
    background: #fff;
    z-index: 1000;
}
div.Header__Inner ul.Header__List li.Header__Find:hover > ul,
div.Header__Inner ul.Header__List li.Header__Find:focus-within > ul {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
    pointer-events: auto;

    width: max-content;
    padding: 0.5em 1em;
    left: 50%;
    transform: translateX(-50%);
    border: solid 5px #e60013;
    border-radius: 5px;
    color: black;
}

div.Header__Inner ul.Header__List li.Header__Find--Category,
div.Header__Inner ul.Header__List li.Header__Find--Area {
    padding-bottom: 0.5em;
    border-bottom: dotted 1px gray;
}
div.Header__Inner ul.Header__List li.Header__Find--Area,
div.Header__Inner ul.Header__List li.Header__Find--Train {
    margin-top: 0.5em;
}
li.Header__Find--Category a,
li.Header__Find--Area a,
li.Header__Find--Train a {
    color: black;
    font-weight: normal;
}
.Header__Hamburger {
    display: none;
    border: none;
    background: transparent;
    padding: 10px;
    cursor: pointer;
}
.Header__HamburgerLine {
    display: block;
    width: 28px;
    height: 2px;
    background: #fff;
    margin: 6px 0;
}
.Header__SpMenu {
    display: none;
    position: fixed;
    top: 0;
    right: 0;
    width: min(86vw, 360px);
    height: 100vh;
    background: #e60013;
    transform: translateX(100%);
    transition: transform .25s ease;
    z-index: 2000;
    padding: 60px 20px 20px;
    overflow: auto;
}
.Header__Overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,.45);
    opacity: 0;
    visibility: hidden;
    transition: opacity .25s ease, visibility .25s ease;
    z-index: 1900;
}
.Header__Close {
    position: absolute;
    top: 14px;
    right: 14px;
    border: none;
    background: transparent;
    font-size: 32px;
    line-height: 1;
    cursor: pointer;
    color: #fff;
}

/* SPメニュー内リスト */
.Header__List--Sp {
    list-style: none;
    padding: 0;
    margin: 0;
    width: 100%;
}
.Header__List--Sp li {
    margin: 0;
}
.Header__List--Sp a,
.Header__SpToggle {
    display: block;
    width: 100%;
    padding: 14px 10px;
    color: #fff;
    text-decoration: none;
    font-weight: bold;
    border-bottom: 1px solid rgba(255,255,255,.25);
}
.Header__SpToggle {
    background: none;
    border: none;
    text-align: left;
    cursor: pointer;
}
.Header__SpSub {
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    transform: translateY(-4px);
    transition: max-height .25s ease, opacity .2s ease, transform .25s ease;
    padding-left: 10px;
}
.Header__Item--Sp--HasChild.is-open > .Header__SpSub {
    max-height: 300px;
    opacity: 1;
    transform: translateY(0);
}

/* 開いた状態（JSが.Headerにis-openを付ける） */
.Header.is-open .Header__SpMenu {
    transform: translateX(0);
	width: fit-content;	
}
.Header.is-open .Header__Overlay {
    opacity: 1;
    visibility: visible;
}
@media (max-width: 768px) {
	div.Header__Inner ul.Header__List {
    	display: none;
	}	
    .Header__Hamburger {
        display: block;
    }
    .Header__SpMenu {
        display: block;
    }
    .Header__Overlay {
        display: block;
    }
}
