@charset "utf-8";

/*
 * File    : layout.css
 * Author  : STUDIO-JT
 *
 * GLOBAL
 * HEADER
 * FOOTER
 * CONTAINER
 * PAGE
 * SEARCH & TAXONOMY
 * 404
 * HOVER
 */



/* **************************************** *
 * GLOBAL
 * **************************************** */
html { font-size: 6.25%; }
html.safari.desktop { font-size: 1px; }

body { overflow-x: hidden; font-family: var(--font-primary); font-size: 16rem; word-break: keep-all; color: var(--color-black); background: var(--color-white); }
a { color: var(--color-primary); text-decoration: none; }

/* WRAP */
.wrap-full { padding: 0 40rem; margin: 0 auto; position: relative; }
.wrap-wide { max-width: 1520rem; margin: 0 auto; position: relative; }
.wrap { max-width: 1200rem; margin: 0 auto; position: relative; }
.wrap-narrow { max-width: 800rem; margin: 0 auto; position: relative; }



/* **************************************** *
 * HEADER
 * **************************************** */
#header { width: 100%; height: 96rem; position: absolute; top: 0; left: 0; background: var(--color-white); z-index: 500; transition: background-color .3s; }
#header.sticky { position: fixed; }

.header__inner { display: flex; align-items: center; justify-content: center; max-width: 1520rem; height: 100%; margin: 0 auto; position: relative; }

/* LOGO */
#logo { width: 164rem; height: 31rem; position: absolute; left: 0; top: 32rem; z-index: 2; }
#logo a { display: block; width: 100%; height: 100%; padding: 5rem 0; }
#logo a svg { display: block; width: 100%; height: 100%; }
#logo a svg path { fill: var(--color-primary); }

/* MENU */
.menu-container { padding-left: 14rem; }
.menu-container__overlay { width: 100vw; height: 0; position: absolute; top: calc(100% - 7rem); left: 0; margin-left: calc(-1 * ((100vw - 1520rem) / 2)); background: var(--color-white); overflow: hidden; }
.menu-container__overlay > span { display: block; width: 100%; height: 100%; border-bottom: 1px solid var(--color-gray-300); box-sizing: border-box; }

#menu { display: flex; }
#menu a { display: block; position: relative; color: var(--color-primary); transition: color .3s, opacity .3s; }
#menu a span { display: inline-block; position: relative; }
#menu a .jt-icon { position: absolute; right: 16rem; top: calc(50% - 2rem); translate: 0 -50%; opacity: 0; visibility: hidden; transition: opacity .3s; }
#menu a .jt-icon svg path { fill: currentColor; }

#menu ul.sub-menu { height: 0; overflow: hidden; opacity: 0; visibility: hidden; }

#menu > li { position: relative; }
#menu > li > a { padding: 27rem 20rem; font-size: var(--font-size-primary-10); line-height: var(--font-lineheight-primary-10); font-weight: 700; letter-spacing: var(--letter-spacing-01); }
#menu > li > a[target="_blank"] { padding-right: 34rem; }

#menu > li > ul { width: fit-content; position: absolute; top: 100%; left: 20rem; }
#menu > li > ul > li > a { padding: 6rem 0; font-size: var(--font-size-primary-11); line-height: var(--font-lineheight-primary-11); font-weight: 400; letter-spacing: var(--letter-spacing-01); white-space: pre; }
#menu > li > ul > li:first-child > a { padding-top: 0; }
#menu > li > ul > li:last-child > a { padding-bottom: 40rem; }
#menu > li > ul > li.current-menu-item > a > span, 
#menu > li > ul > li.current-menu-ancestor > a > span { text-decoration: underline; text-underline-offset: 5rem; }

/* SEARCH */
.search-controller { display: block; width: 40rem; height: 40rem; position: absolute; top: 28rem; right: 44rem; z-index: 2; }
.search-controller .jt-icon { display: block; width: 24rem; position: absolute; top: 50%; left: 50%; transform: translate3d(-50%, -50%, 0); }

/* LANGUAGE */
.lang-controller { position: absolute; top: 28rem; right: -8rem; z-index: 2; }

.lang-controller__btn { display: block; width: 40rem; height: 40rem; position: relative; }
.lang-controller__btn .jt-icon { display: block; width: 24rem; position: absolute; top: 50%; left: 50%; transform: translate3d(-50%, -50%, 0); }

.lang-controller__menu { width: 64rem; padding: 8rem 0; position: absolute; top: calc(100% + 4rem); left: 50%; background: var(--color-secondary); translate: -50% 0; opacity: 0; visibility: hidden; transition: opacity .3s cubic-bezier(.05, .9, .32, .96); }
.lang-controller__menu:before { content: ''; display: block; width: 100%; height: 4rem; position: absolute; left: 0; top: -4rem; }
.lang-controller__menu > li > a { display: block; padding: 8rem 0; text-align: center; color: var(--color-white); opacity: .6; transition: opacity .3s; }
.lang-controller__menu > li.lang-controller--current > a { opacity: 1; text-decoration: underline; text-underline-offset: 5rem; }

.lang-controller:hover .lang-controller__menu { opacity: 1; visibility: visible; }

/* MOBILE */
.small-menu-controller, 
.small-menu-container { display: none; }

/* INVERT */
#header.header--invert:not(.minimize):not(.header--open) { background: transparent; }
#header.header--invert:not(.minimize):not(.header--open) #logo a svg path { fill: var(--color-white); }
#header.header--invert:not(.minimize):not(.header--open) #menu > li > a { color: var(--color-white); }
#header.header--invert:not(.minimize):not(.header--open) .lang-controller__btn .jt-icon svg path { fill: var(--color-white); }
#header.header--invert:not(.minimize):not(.header--open) .search-controller .jt-icon svg path { fill: var(--color-white); }



/* **************************************** *
 * FOOTER
 * **************************************** */
#footer { width: 100%; padding: 56rem 40rem 40rem; position: relative; background: var(--color-primary); }

/* MENU */
#footer-menu { display: flex; flex-wrap: wrap; }
#footer-menu > li > a { display: flex; align-items: center; gap: 2rem; padding: 4rem 12rem; font-size: var(--font-size-primary-11); line-height: var(--font-lineheight-primary-11); font-weight: 700; letter-spacing: var(--letter-spacing-01); color: var(--color-white); opacity: .8; }
#footer-menu > li:first-child > a { padding-left: 0; }
#footer-menu > li:last-child > a { padding-right: 0; }
#footer-menu > li > a > span { display: block; position: relative; }
#footer-menu > li > a > span:after { content: ''; display: block; width: 100%; height: 1px; position: absolute; left: 0; bottom: 0; background: currentColor; transform-origin: 100% 50%; transform: scale3d(0, 1, 1); transition: transform .3s; }
#footer-menu > li > a > .jt-icon { display: block; width: 16rem; position: relative; }
#footer-menu > li > a > .jt-icon svg path { fill: var(--color-white); }
#footer-menu > li > a:not([target="_blank"]) > .jt-icon { display: none; }

#footer-menu ul.sub-menu { display: none; }

#footer-menu > li.menu-item--private > a { opacity: 1; }

/* DETAILS */
.footer__details { margin-top: 28rem; padding-top: 32rem; position: relative; border-top: 1px solid rgba(255, 255, 255, .5); }

/* INFO */
.footer__info { display: flex; flex-wrap: wrap; gap: 25rem; }
.footer__info > li { position: relative; color: var(--color-white); }
.footer__info > li:not(:last-child):after { content: ''; display: block; width: 1px; height: 12rem; position: absolute; right: -13rem; top: 50%; background: var(--color-white); opacity: .5; translate: 0 -50%; }

.footer__info a { color: inherit; }

/* COPYRIGHT */
.footer__copyright { margin-top: 16rem; color: var(--color-white); }

/* SOCIAL */
.footer__sns-container { position: absolute; right: 0; top: 33rem; }

.footer__sns { display: flex; flex-wrap: wrap; }
.footer__sns > li { display: block; width: 40rem; height: 40rem; }
.footer__sns > li > a { display: block; transition: opacity .3s; }
.footer__sns .jt-icon { display: block; width: 100%; }
.footer__sns .jt-icon path { fill: var(--color-white); }



/* **************************************** *
 * CONTAINER
 * **************************************** */
.main-container { --main-container-pb: 200rem; padding-top: 196rem; padding-bottom: var(--main-container-pb); }
.main-container:has(.article__visual) { padding-top: 0; }



/* **************************************** *
 * PAGE
 * **************************************** */
/* PAGE HEADER */
.article__header { margin-bottom: 48rem; }
.article__header-row { display: flex; justify-content: space-between; align-items: center; padding-bottom: 31rem; border-bottom: 1px solid var(--color-gray-500); }
.article__header-row.article__header-row--end { align-items: flex-end; }
.article__header-cell { position: relative; }

/* PAGE HEADER (VISUAL) */
.article__visual { width: 100%; height: 100vh; min-height: 100svh; max-height: -webkit-fill-available; position: relative; overflow: hidden; }

.article__visual-background { position: absolute; top: 0; right: 0; bottom: 0; left: 0; }
.article__visual-background:after { content: ''; width: 100%; height: 64.46%; position: absolute; top: 0; left: 0; background: linear-gradient(180deg, rgba(0, 0, 0, 1) 0%, rgba(0, 0, 0, 0) 100%); opacity: .5; }

.article__visual-content { width: 100%; position: absolute; left: 0; bottom: 60rem; }
.article__visual .article__title { color: var(--color-white); text-align: center; }

/* PAGE BODY */
.article__body { position: relative; min-height: 360rem; }



/* **************************************** *
 * SEARCH & TAXONOMY
 * **************************************** */
/* FORM */
.global-search-form { position: relative; }

.global-search-form__field { position: relative; }
.global-search-form__input { display: block; width: 100%; height: 76rem; margin: 0; padding: 0 50rem 0 56rem; font-size: var(--font-size-primary-07); line-height: var(--font-lineheight-primary-07); font-weight: 400; letter-spacing: var(--letter-spacing-01); text-overflow: ellipsis; background: transparent; border: solid var(--color-primary); border-width: 0 0 1px; border-radius: 0; outline: none; opacity: 1; box-sizing: border-box; }
.global-search-form__label { position: absolute; top: 22rem; left: 56rem; color: var(--color-gray-500); transition: opacity .26s; cursor: text; }

.global-search-form__submit { display: block; width: 36rem; height: 36rem; margin: 0; padding: 0; position: absolute; left: 0; top: 50%; background: none; border: none; cursor: pointer; transform: translate(0, -50%); }
.global-search-form__submit .jt-icon { display: block; width: 100%; position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); }

.global-search-form__reset { display: block; width: 30rem; height: 30rem; margin: 0; padding: 0; position: absolute; right: 0; top: 50%; background: none; border: none; cursor: pointer; transform: translate(0, -50%); opacity: 0; transition: opacity .15s; }
.global-search-form__reset:before { content: ''; width: 100%; height: 100%; position: absolute; top: 0; left: 0; background: var(--color-gray-700); border-radius: 50%; transition: background-color .3s; }
.global-search-form__reset .jt-icon { display: block; width: 12rem; position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); }
.global-search-form__reset .jt-icon path { fill: var(--color-white); }

.global-search-form.global-search-form--active .global-search-form__label { opacity: 0; visibility: hidden; }
.global-search-form.global-search-form--active .global-search-form__reset { opacity: 1; visibility: visible; }

/* MODAL */
.global-search-modal { display: none; width: 100%; height: 100%; position: fixed; top: 0; left: 0; background: rgba(0, 0, 0, .3); z-index: 9999; overflow: hidden; }
.global-search-modal__inner { padding: 80rem 0 104rem; position: relative; background: var(--color-white); }

.global-search-modal__close { width: 40rem; height: 40rem; margin: 0; padding: 0; position: absolute; top: 40rem; right: 90rem; background: transparent; border: none; opacity: 1; cursor: pointer; transition: rotate .3s; }
.global-search-modal__close .jt-icon { width: 32rem; position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); }

.global-search-modal__tag { margin-top: 24rem; }

/* PAGE */
.results-entries { display: flex; flex-direction: column; gap: 28rem; margin-top: 68rem; }
.results-entries__head { display: flex; justify-content: space-between; align-items: flex-end; }
.results-entries__title { display: flex; align-items: center; gap: 6rem; padding: 12rem 0; }
.results-entries__title h1 > span { color: var(--color-secondary); }

/* PAGE (SEARCH) */
body.search .global-search-form { margin-top: -20rem; }

/* PAGE (TAXONOMY) */
body[class*=tax-] .results-entries { margin-top: -12rem; }



/* **************************************** *
 * 404
 * **************************************** */
body.error404 .main-container { padding-top: 0; padding-bottom: 0; }

.error-404 { display: flex; align-items: center; justify-content: center; height: 100vh; }
.error-404__bg { width: 100%; height: 100%; position: absolute; top: 0; left: 0; background: var(--color-black) no-repeat center / cover; }
.error-404__content { text-align: center; color: var(--color-white); }
.error-404__content p { margin-top: 32rem; }
.error-404__controller { margin-top: 48rem; }

/* IOS 100vh helper */
html.ios .error-404 { min-height: 100svh; max-height: -webkit-fill-available; }



/* **************************************** *
 * HOVER
 * **************************************** */
@media (hover: hover) and (pointer: fine) {

    /* HEADER */
    #menu > li:hover > a { color: var(--color-gray-500); opacity: .8; }
    #menu > li:hover > a[target="_blank"] > .jt-icon { opacity: 1; visibility: visible; }
    #menu > li > ul > li > a:hover { color: var(--color-gray-500); }

    .search-controller:hover .jt-icon svg path { fill: var(--color-gray-500); }

    .lang-controller__btn:hover .jt-icon svg path { fill: var(--color-gray-500); }
    .lang-controller__menu > li > a:hover { opacity: 1; }

    /* FOOTER */
    #footer-menu > li:hover > a > span:after { transform-origin: 0% 50%; transform: scale3d(1, 1, 1); }
    
    .footer__sns > li > a:hover { opacity: .8; }

    /* SEARCH */
    .global-search-form__submit:hover .jt-icon svg path { fill: var(--color-gray-500); }
    .global-search-form__reset:hover:before { background: var(--color-gray-500); }

    .global-search-modal__close:hover { rotate: 90deg; }

}
