@charset "utf-8";

/* ===============================================
   common
=============================================== */

:root {
    --font-main: "Noto Sans JP", sans-serif;
    --font-en: "Alatsi", sans-serif;
    --color-main: #006367;
    --color-green: #00a63c;
    --color-bg: #fff7e7;

    --font-w-r: 400;
    --font-w-m: 500;
    --font-w-sb: 600;
    --font-w-b: 700;
    --font-w-eb: 800;
    --font-w-bl: 900;
}

body {
    overflow-x: hidden;
    line-height: 1.6em;
}

html, body {
    width: 100vw;
    font-family: var(--font-main);
    color: #231815;
    font-weight: var(--font-w-m);
    letter-spacing: 0.06em;
    font-feature-settings: "palt";
    box-sizing: border-box;
}

body * {
    letter-spacing: 0.05em;
    box-sizing: border-box;
}

.wrapper {
    width: 100%;
    min-height: 100vh;
    min-height: 100dvh;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.sp { display: none; }
.xl { display: none; }
@media screen and (max-width: 1200px) {
    .xl { display: block; }
}
@media screen and (max-width: 768px) {
    .pc { display: none; }
    .sp { display: block; }
}

img {
    max-width: 100%;
    vertical-align: bottom;
}

a {
    color: #231815;
    text-decoration: none;
    display: block;
    -webkit-font-smoothing: antialiased;
    backface-visibility: hidden;
    transition: opacity 0.4s, color 0.4s, background 0.4s;
}

a:hover,
button:hover {
    transition: opacity 0.4s, color 0.4s, background 0.4s;
}

a.hover:hover,
.hover a:hover {
    opacity: 0.6;
}

sub,
sup {
    font-size: 85%;
    line-height: 0;
    position: relative;
    vertical-align: baseline;
}

sup {
    top: -0.2em;
}

small {
    font-size: 0.75em;
}

#wrapper {
    width: 100vw;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    background-color: var(--color-bg);
}

#main {
    width: 100vw;
    position: relative;
    z-index: 1;
}

.inner {
    width: clamp(0px, 75vw, 900px);
    margin-left: auto;
    margin-right: auto;
    position: relative;
}

@media screen and (max-width: 768px) {
    .inner {
        width: 100%;
    }
}


/* ===============================================
   loading
=============================================== */
#loading {
	position: fixed;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	background: #fff;
	z-index: 99999;
	display: flex;
	align-items: center;
	justify-content: center;
    font-size: clamp(0px, 2.1vw, 25px);
	color: var(--color-main);
	pointer-events: auto;
}

#loading::before {
    content: "Loading";
    font-size: clamp(0px, 2.1vw, 25px);
    font-weight: bold;
}

#loading::after {
    content: "";
    display: inline-block;
    width: 1em;
    text-align: left;
    animation: dots 1s steps(3, end) infinite;
}

@keyframes dots {
    0%, 20% { content: ""; }
    40% { content: "."; }
    60% { content: ".."; }
    80%, 100% { content: "..."; }
}

@media screen and (max-width: 768px) {
    #loading,
    #loading::before {
        font-size: 8vw;
    }
}


/* ===============================================
   header
=============================================== */
#header {
    width: 100%;
    height: clamp(0px, 5.8vw, 70px);
    position: fixed;
    top: 0;
    left: 0;
    z-index: 999;
    pointer-events: none;
    transition: box-shadow 0.3s;
}

#header.is_scrolled #nav {
    box-shadow: 0 2px 8px rgba(0,0,0,0.2);
}

.header_inner {
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.header_inner .logo {
    margin-left: clamp(0px, 1.7vw, 20px);
    display: flex;
    align-items: center;
    pointer-events: auto;
	text-shadow:
        1px 1px 0 #fff,
        -1px -1px 0 #fff,
        -1px 1px 0 #fff,
        1px -1px 0 #fff,
        0px 1px 0 #fff,
        0-1px 0 #fff,
        -1px 0 0 #fff,
        1px 0 0 #fff;
}

.header_inner .logo img {
    width: clamp(0px, 4.6vw, 55px);
}

.header_inner  .logo p {
    font-size: clamp(0px, 1.2vw, 14px);
    font-weight: 700;
    line-height: 1.75em;
    color: var(--color-main);
    margin-left: 0.78em;
}

@media screen and (max-width: 768px) {
    #header {
        height: 15.5vw;
    }

    .header_inner .logo {
        margin-left: 3.5vw;
        position: relative;
        z-index: 1003;
    }

    .header_inner .logo img {
        width: 9vw;
        transition: all 0.4s;
    }

    .header_inner  .logo p {
        font-size: 3.2vw;
        line-height: 1.3em;
        transition: color 0.4s;
    }
}

/* ナビゲーション */
#nav {
    height: 100%;
    border-radius: 70px 0 0 70px;
    padding: 0 clamp(0px, 1.7vw, 20px) 0 clamp(0px, 3.3vw, 40px);
    display: flex;
    align-items: center;
    background-color: #fff;
    pointer-events: auto;
    position: relative;
    z-index: 1000;
}

.nav_main {
    display: flex;
    align-items: center;
    gap: 0 clamp(0px, 2.9vw, 35px);
}

.nav_main a {
    font-size: clamp(0px, 1.33vw, 16px);
    font-weight: 700;
    letter-spacing: 0.06em;
    color: var(--color-main);
    background-image: linear-gradient(#006367, #006367);
    background-repeat: no-repeat;
    background-position: bottom right;
    background-size: 0 1px;
    transition: background-size 0.3s;
}

.nav_main a:hover {
    background-position: bottom left;
    background-size: 100% 1px;
}

.nav_contact {
    width: clamp(0px, 3.3vw, 40px);
    margin: 0 clamp(0px, 1.7vw, 20px) 0 clamp(0px, 2.1vw, 25px);
}

@media screen and (max-width: 768px) {
    #nav {
        width: 15.5vw;
        height: 7vw;
        border-radius: 7vw;
        padding: 0;
        margin-right: 5vw;
        justify-content: center;
        z-index: 1002;
    }

    .nav_main,
    .nav_contact {
        display: none;
    }
}

/* ハンバーガーボタン */
.hamburger {
    display: none;
    width: clamp(0px, 3.3vw, 40px);
    height: clamp(0px, 2.1vw, 25px);
    position: relative;
    cursor: pointer;
    z-index: 1001;
}

.hamburger span {
    width: 100%;
    height: clamp(0px, 0.3vw, 3px);
    border-radius: 3px;
    background: var(--color-main);
    display: block;
    position: absolute;
    transition: all 0.3s ease;
}
.hamburger span:nth-child(1) { top: 0; }
.hamburger span:nth-child(2) { top: clamp(0px, 0.9vw, 11px); }
.hamburger span:nth-child(3) { bottom: 0; }

/* 変化時 */
.hamburger.is_active span:nth-child(1) {
    transform: rotate(45deg);
    top: clamp(0px, 0.9vw, 11px);
}
.hamburger.is_active span:nth-child(2) {
    opacity: 0;
}
.hamburger.is_active span:nth-child(3) {
    transform: rotate(-45deg);
    bottom: clamp(0px, 0.9vw, 11px);
}

@media screen and (max-width: 768px) {
    .hamburger {
        display: block;
        width: 100%;
        height: 3.5vw;
    }

    .hamburger span {
        width: 5vw;
        height: 2px;
        border-radius: 2px;
        left: 0;
        right: 0;
        margin: auto;
    }
    .hamburger span:nth-child(2) { top: calc(50% - 1px); }

    .hamburger.is_active span:nth-child(1) {
        top: calc(50% - 1px);
    }
    .hamburger.is_active span:nth-child(3) {
        bottom: calc(50% - 1px);
    }
}

/* ナビゲーションメニュー */
.menu {
    position: fixed;
    top: 0;
    left: -100%;
    width: 70%;
    max-width: 250px;
    height: 100%;
    background: var(--color-main);
    box-shadow: 2px 0 8px rgba(0,0,0,0.2);
    padding: 60px 20px;
    transition: left 0.3s ease;
    pointer-events: auto;
    z-index: 1001;
}

.menu.is_active {
    left: 0;
}

.menu a {
    color: #fff;
}

.close_btn {
    width: 210px;
    max-width: 15.4%;
    aspect-ratio: 210 / 50;
    background-color: var(--color-blue);
    font-size: clamp(0px, 2.7vh, 30px);
    font-family: var(--font-en);
    letter-spacing: 0.3em;
    line-height: 1;
    color: #fff;
    border: 0;
    border-radius: 0 0 7px 7px;
    cursor: pointer;
    position: absolute;
    bottom: 0;
    right: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1;
    transition: background 0.4s, color 0.4s;
}

.close_btn:hover {
    background-color: var(--color-main);
    color: #fff;
}

.nav_overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.3);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.4s;
    z-index: 1000;
    pointer-events: auto;
}

.nav_overlay.is_active {
    opacity: 1;
    visibility: visible;
}

@media screen and (max-width: 768px) {
    .menu {
        width: 100vw;
        max-width: 100vw;
        height: 100dvh;
        padding: 22vw 0 13vw;
        box-shadow: none;
    }

    .close_btn {
        width: 45.5vw;
        max-width: 100%;
        height: 14vw;
        font-size: 6vw;
        border-radius: 0 0 2.1vw 0;
        position: relative;
        margin-left: auto;
    }
}


@media screen and (max-width: 768px) {
    .nav_main_sp {
        width: 85vw;
        height: 100%;
        margin: 0 auto;
        -webkit-overflow-scrolling: touch;
        overflow-x: hidden;
        overflow-y: auto;
    }

    .nav_main_sp::-webkit-scrollbar {
        background: #fff7e7;
        width: 5px;
    }

    .nav_main_sp::-webkit-scrollbar-thumb {
        background-color: var(--color-green);
        border-radius: 5px;
    }

    .nav_main_sp li:not(:last-of-type) {
        border-bottom: 1px solid #fff;
    }

    .nav_main_sp li a {
        height: 12.5vw;
        font-size: 4vw;
        display: flex;
        align-items: center;
    }
}


.has-mega {
    position: relative;
}

.mega-menu {
    position: absolute;
    top: 100%;
    left: 0;
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: opacity 0.3s ease, transform 0.3s ease, visibility 0.3s;
    padding-top: clamp(0px, 1.8vw, 22px);
}

.mega-menu ul {
    width: clamp(0px, 32.5vw, 390px);
    background-color: var(--color-main);
    padding: clamp(0px, 2.5vw, 30px);
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
}

.nav_main .mega-menu ul li a {
    width: 100%;
    height: clamp(0px, 4.2vw, 50px);
    font-size: clamp(0px, 1.3vw, 15px);
    color: #fff;
    background-image: linear-gradient(#fff, #fff);
    background-size: 100% 1px;
    display: flex;
    align-items: center;
}

.nav_main .mega-menu ul li a:hover {
    color: var(--color-bg);
}

.nav_main .mega-menu ul li:last-of-type a {
    background-image: none;
}

/* ホバー時（親liにopenクラスが付いていないときのみ） */
.nav_main li.has-mega:hover:not(.open) .mega-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

/* JSで開いた場合 */
.nav_main li.has-mega.open .mega-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}



/* ===============================================
   footer
=============================================== */
#footer {
    width: 100%;
    margin-top: auto;
    background-color: #fff;
    position: relative;
    z-index: 2;
}

.footer_inner {
    width: 100%;
    padding: clamp(0px, 7.9vw, 95px) 0;
    display: flex;
    justify-content: center;
    align-items: center;
}

.footer_inner .logo {
    width: clamp(0px, 50vw, 600px);
    line-height: 0;
}

.footer_inner .logo img {
    width: clamp(0px, 40vw, 480px);
}

.footer_nav {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0.8em clamp(0px, 6.7vw, 80px);
    padding: clamp(0px, 0.7vw, 8px) 0 clamp(0px, 0.7vw, 8px) clamp(0px, 4.2vw, 50px);
    border-left: 1px solid var(--color-main);
}

.footer_nav li {
    display: flex;
}

.footer_nav a {
    font-size: clamp(0px, 1.3vw, 15px);
    font-weight: 700;
    line-height: 1;
    color: var(--color-main);
    display: inline-block;
    padding-bottom: 0.4em;
    background-image: linear-gradient(#006367, #006367);
    background-repeat: no-repeat;
    background-position: bottom right;
    background-size: 0 1px;
    transition: background-size 0.3s;
}

.footer_nav a:hover {
    background-position: bottom left;
    background-size: 100% 1px;
}

@media screen and (max-width: 768px) {
    .footer_inner {
        height: 25.5vw;
        padding: 0;
        flex-direction: column;
        gap: 3.5vw 0;
    }

    .footer_inner .logo {
        width: 80vw;
    }

    .footer_inner .logo img {
        width: 100%;
    }

    .footer_nav {
        display: none;
    }
}

#copyright {
    width: 100%;
    height: clamp(0px, 5.4vw, 65px);
    text-align: center;
    color: #fff;
    background-color: var(--color-main);
    display: flex;
    justify-content: center;
    align-items: center;
}

#copyright small {
    font-size: clamp(0px, 1.5vw, 18px);
    letter-spacing: 0.06em;
}

@media screen and (max-width: 768px) {
    #copyright {
        height: 8vw;
    }

    #copyright small {
        font-size: 2.1vw;
    }
}


/* ===============================================
   pagetop
=============================================== */
#pagetop {
    width: clamp(0px, 7.7vw, 92px);
    aspect-ratio: 1 / 1;
    background: url("../img/pagetop.svg") no-repeat center center / contain;
    transition: opacity 0.4s;
    overflow: hidden;
    white-space: nowrap;
    text-indent: 150%;
    cursor: pointer;
    position: fixed;
    right: clamp(0px, 1.4vw, 15px);
    bottom: clamp(0px, 2.5vw, 30px);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.4s ease, bottom 0.4s ease;
    z-index: 3;
}

#pagetop.is_scrolled {
    opacity: 1;
    pointer-events: auto;
    bottom: clamp(0px, 6.3vw, 75px);
}

#pagetop:hover {
    opacity: 0.6;
}

@media screen and (max-width: 768px) {
    #pagetop {
        width: 25vw;
        aspect-ratio: 420 / 100;
        background: url("../img/pagetop_sp.svg") no-repeat center center / contain;
        margin-top: 0;
        bottom: 3vw;
    }
    
    #pagetop.is_scrolled {
        bottom: 9vw;
    }
}
