/*
Theme Name: konsei-themes
Description: Custom theme for konsei-themes
Version: 1.0.0
*/

:root {
    /* color */
    --color-base: #FFF;
    --color-base-rgb: rgb(255 255 255 / 60%);
    --color-primary: #34597D;
    --color-gradient-light: #AEE3F4;
    --color-gradient-medium: #96A9BB;
    --color-gradient-dark: #34597D;
    --color-black: #0F1419;
    --color-black-light: #7A7A7A;
    --color-shadow: rgb(0 0 0 / 60%);
    --color-page-head: rgb(0 0 0 / 40%);

    /* font */
    --font-family: "Zen Old Mincho", serif;

    /* font size */
    --font-size-xs: 12px;
    --font-size-sm: 14px;
    --font-size-base: 16px;
    --font-size-medium: 20px;
    --font-size-large: 25px;
    --font-size-x-large: 32px;
    --font-size-xx-large: clamp(28px, calc( 28px + ((1vw - 8px) * 3)), 40px);

    /* font weight */
    --font-weight-regular: 400;
    --font-weight-bold: 700;

    /* line height */
    --line-height-normal: normal;
    --line-height-lg: 20px;
    --line-height-sxl: 24px;
    --line-height-xl: 30px;
    --line-height-xxl: 40px;

    /* letter spacing */
    --leading-trim: calc((1lh / 2) - 1em);

    /* transition */
    --transition-base: all 0.3s ease-in-out;
}

body {
    font-family: var(--font-family);
    font-size: var(--font-size-sm);
    line-height: var(--line-height-xl);
    color: var(--color-black);
    background-color: var(--color-base);
    opacity: 0;
    transition: opacity 0.3s ease-in-out;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body.page-loaded {
    opacity: 1;
}

@media (width >= 768px) {
    body {
        font-size: var(--font-size-base);
    }
}

body.is-menu-open {
    overflow: hidden;
}

body [data-lang="en"] {
    display: none;
}

body [data-lang="ja"] {
    display: block;
}

body[data-lang="en"] [data-lang="en"] {
    display: block;
}

body[data-lang="en"] [data-lang="ja"] {
    display: none;
}

::selection {
    color: var(--color-base);
    background-color: var(--color-primary);
}

::-webkit-selection {
    color: var(--color-base);
    background-color: var(--color-primary);
}


a {
    user-select: none;
    cursor: pointer;
    -webkit-user-drag: none;
}

img {
    display: block;
    width: 100%;
    height: auto;
    user-select: none;
    -webkit-user-drag: none;
}

.wrapper {
    padding: 30px 20px;
}

@media (width >= 768px) {
    .wrapper {
        max-width: 1240px;
        margin: 0 auto;
        padding: 60px 20px;
    }
}

main {
    margin-top: 80px;
}

@media (width >= 768px) {
    main {
        margin-top: 0;
        margin-left: 200px;
    }
}

.pc-only {
    display: none;
}

@media (width >= 768px) {
    .pc-only {
        display: block;
    }

    .sp-only {
        display: none;
    }
}


/* ==============================
Language Toggle
============================== */
.language-toggle {
    display: flex;
    gap: 10px;
    margin: 0 auto;
    margin-bottom: 30px;
    padding: 10px;
    color: var(--color-black-light);
    border: 1px solid var(--color-black);
    border-radius: 3px;
}

.language-toggle__line {
    display: block;
    width: 1px;
    background-color: var(--color-black);
    transform: rotate(24deg);
}

.language-toggle__text--active {
    color: var(--color-black);
    text-decoration: underline;
}

/* ==============================
Text Line
============================== */
.text__line {
    position: relative;
    display: inline-block;
    width: 1em;
    height: 100%;
    background-color: var(--color-black);
}

.text__line span {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
}


/* ==============================
page__head
============================== */
.page__head {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: end;
    width: 100vw;
    height: 200px;
    margin-right: calc(50% - 50vw);
    margin-left: calc(50% - 50vw);
    padding: 0 20px;
    color: var(--color-base);
}

.page__head::after {
    position: absolute;
    top: 0;
    left: 0;
    z-index: 10;
    width: 100%;
    height: 100%;
    background-color: var(--color-page-head);
    content: '';
}

.page__head-img {
    position: absolute;
    top: 0;
    left: 0;
    z-index: 1;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;

    img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        object-position: center;
    }
}

.page-id-14 .page__head-img img { object-position: center top; }

.page__head-text {
    position: relative;
    z-index: 20;
    padding: 5px;
    font-size: var(--font-size-x-large);
    border-bottom: 1px solid var(--color-base);
}

@media (width >= 768px) {
    .page__head {
        width: 100%;
        height: calc( 100vw * 0.24 );
        margin-right: 0;
        margin-left: 0;
    }

    .page__head::after {
        display: none;
    }

    .page__head-img {
        width: 100%;
    }

    .page__head-text {
        display: flex;
        justify-content: flex-end;
        width: 100%;
        max-width: 1040px;
        margin: 0 auto;
        padding: 0;
        border-bottom: none;
        
        h1 {
            padding: 2%;
            font-size: var(--font-size-xx-large);
            color: white;
            background-color: rgba(0,0,0,0.3);
            border: 3px solid white;
        }
    }
}

/* ==============================
section__head
============================== */
.section__head {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;

    h2 {
        width: fit-content;
        font-size: var(--font-size-medium);
    }

    span {
        height: 1px;
        background-color: var(--color-black);
    }

    span:nth-of-type(1) {
        width: 30px;
    }

    span:nth-of-type(2) {
        flex: 1;
    }
}

.section__head--left {
    justify-content: start;

    span:nth-of-type(2) {
        display: none;
    }
}

@media (width >= 768px) {
    .section__head {
        h2 {
            font-size: var(--font-size-x-large);
        }
    }
}

/* ==============================
Header
============================== */
.header {
    position: fixed;
    top: 0;
    left: 0;
    z-index: 100;
    width: 100vw;
    height: 80px;
    padding: 0 15px;
    background-color: var(--color-base);
}

.header__inner {
    height: 100%;
}

.header__top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 100%;
}

.header__logo {
    display: block;
    width: 160px;
}

.header__title {
    display: none;
}

.header__inner .language-toggle {
    display: none;
}

/* ハンバーガーメニュー */
.hamburger {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 5px;
}

.hamburger__line {
    position: relative;
    width: 40px;
    height: 30px;
}

.hamburger__line span {
    position: absolute;
    top: 50%;
    left: 0;
    width: 100%;
    height: 1.5px;
    background-color: var(--color-black);
    transition: all 0.3s ease-in-out;
}

.hamburger__line span:nth-child(1) {
    top: 0;
}

.hamburger__line span:nth-child(2) {
    top: 50%;
    width: 60%;
    transform: translateY(-50%);
}

.hamburger__line span:nth-child(3) {
    top: 100%;
    transform: translateY(-100%);
}

.hamburger__text {
    font-size: var(--font-size-xs);
    line-height: var(--line-height-normal);
}

.hamburger.is-active .hamburger__line span:nth-child(1) {
    top: 50%;
    transform: translateY(-50%) rotate(45deg);
}

.hamburger.is-active .hamburger__line span:nth-child(2) {
    opacity: 0;
}

.hamburger.is-active .hamburger__line span:nth-child(3) {
    top: 50%;
    transform: translateY(-50%) rotate(-45deg);
}


@media (width >= 768px) {
    .header {
        width: 200px;
        height: 100vh;
        max-height: none;
        background-image: var(--header-bg);
        background-position: center;
        background-repeat: no-repeat;
        background-size: cover;
        box-shadow: 0 4px 4px 0 var(--color-shadow);
    }

    .header__inner {
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: space-between;
        height: 100%;
        padding: 60px 20px;
    }

    .header__top {
        flex-direction: column;
        align-items: center;
        justify-content: flex-start;
    }

    .header__title {
        display: flex;
        flex-direction: column;
        gap: 10px;
        margin-top: 30px;
        font-size: var(--font-size-medium);
        writing-mode: vertical-rl;
    }

    .header .language-toggle {
        display: flex;
        margin: 20px 0 0;
    }

    .hamburger {
        margin-top: 100px;
    }

    .hamburger__line {
        width: 50px;
        height: 40px;
    }
}

/* グローバルナビメニュー */
.hampage {
    position: fixed;
    top: 80px;
    left: 0;
    z-index: 90;
    display: flex;
    align-items: flex-start;
    justify-content: center;
    width: 100%;
    height: calc(100vh - 80px);
    overflow-y: auto;
    background-color: var(--color-base-rgb);
    opacity: 0;
    transition:
        transform 0.3s ease-in-out,
        visibility 0.3s ease-in-out,
        opacity 0.3s ease-in-out;
    transform: translateY(30px);
    visibility: hidden;
    pointer-events: none;
    backdrop-filter: blur(10px);
}

.hampage .wrapper {
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    width: 100%;
    min-height: 100%;
}

.hampage.is-active {
    opacity: 1;
    transform: translateY(0);
    visibility: visible;
    pointer-events: auto;
}

body[data-lang="en"] .global-nav[data-lang="en"] {
    display: flex;
}

body[data-lang="en"] .global-nav[data-lang="ja"] {
    display: none;
}

body[data-lang="ja"] .global-nav[data-lang="en"] {
    display: none;
}

body[data-lang="ja"] .global-nav[data-lang="ja"] {
    display: flex;
}

.global-nav {
    display: flex;
    justify-content: center;
    padding: 30px 0;
}

.global-nav__list {
    display: flex;
    flex-direction: column;
    width: fit-content;
    max-width: 200px;
    text-align: start;
}

.global-nav__list li {
    padding-bottom: 30px;
    font-size: var(--font-size-medium);
}

.global-nav__list li a {
    display: block;
    width: 100%;
    padding: 0 20px;
}

.global-nav__list li:nth-of-type(8) {
    margin-bottom: 50px;
    padding-bottom: 0;
}

.global-nav__list li:nth-of-type(10) {
    padding-bottom: 0;
}

.global-nav__list li:nth-of-type(9) a,
.global-nav__list li:nth-of-type(10) a {
    display: block;
    width: 100%;
    height: 100%;
    padding: 10px 0;
}

.global-nav__list li:nth-of-type(9) a {
    text-align: center;
    border: 2px solid var(--color-primary);
}

.global-nav__list li:nth-of-type(10) a {
    color: var(--color-base);
    text-align: center;
    background-color: var(--color-primary);
}

@media (width >= 768px) {
    .hampage {
        top: 0;
        left: 200px;
        height: 100vh;
        max-width: 360px;
        padding-bottom: 0;
        background-color: var(--color-base);
        box-shadow: 0 0 10px 0 rgb(0 0 0 / 10%);
        transition: var(--transition-base);
        transform: translateX(-20%);
        backdrop-filter: none;
    }

    .hampage.is-active {
        transform: translateX(0);
    }

    .hampage .wrapper {
        display: flex;
        flex-direction: column;
        justify-content: center;
        margin-top: 0;
        padding: 60px 30px;
    }

    .global-nav {
        justify-content: left;
        padding: 0;
    }

    .global-nav__list {
        width: 100%;
        max-width: none;
    }

    .global-nav__list li {
        padding-bottom: 40px;
    }

    .global-nav__list li a {
        position: relative;
        display: block;
        width: fit-content;
        padding: 0;
    }

    .global-nav__list li a::after {
        position: absolute;
        bottom: -2px;
        left: 0;
        display: block;
        width: 0;
        height: 2px;
        background-color: var(--color-gradient-dark);
        transition: var(--transition-base);
        content: '';
    }

    .global-nav__list li a:hover::after {
        width: 100%;
    }

    .global-nav__list li:nth-of-type(9) a,
    .global-nav__list li:nth-of-type(10) a {
        width: 300px;
        height: 60px;
        max-width: none;
        padding: 15px 0;
    }

    .global-nav__list li:nth-of-type(10) a::after,
    .global-nav__list li:nth-of-type(9) a::after {
        display: none;
    }

    .global-nav__list li:nth-of-type(9) a:hover::after,
    .global-nav__list li:nth-of-type(10) a:hover::after {
        display: none;
    }

    .global-nav__list li:nth-of-type(9) {
        margin-top: 60px;
        padding-bottom: 20px;
    }

    .global-nav__list li:nth-of-type(9) a {
        background-color: var(--color-base);
        transition: var(--transition-base);
    }

    .global-nav__list li:nth-of-type(10) a {
        color: var(--color-black);
        background-color: var(--color-base);
        border: 2px solid var(--color-gradient-dark);
        transition: var(--transition-base);
    }

    .global-nav__list li:nth-of-type(9):hover a {
        color: var(--color-base);
        background-color: var(--color-primary);
    }


    .global-nav__list li:nth-of-type(10):hover a {
        color: var(--color-base);
        background-image: url('./images/button__bg.png');
        background-size: cover;
        border: 1px solid var(--color-primary);
    }

    .hampage .language-toggle {
        display: none;
    }
}

/* ==============================
Footer
============================== */
.footer {
    line-height: var(--line-height-normal);
    background-color: var(--color-base);
}

.footer__inner {
	position: relative;
    display: flex;
    flex-direction: column;
    padding: 30px 20px 0;
}

.footer__content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    white-space: nowrap;
}

.footer__logo {
    max-width: 200px;
    margin-bottom: 20px;
}

.footer__sns > a {
    width: 30px;
    height: 30px;
}

.footer__sns {
    display: flex;
    gap: 15px;
}

.footer__map {
    position: relative;
    width: 100%;
    height: auto;
    max-width: 100%;
    min-height: 240px;
    margin-top: 30px;
    padding-bottom: 30px;
}

.footer__map iframe {
    width: 100%;
    height: 100%;
    min-height: 240px;
}

.siboken__image {
    position: absolute;
    top: 0;
    right: 0;
    z-index: 10;
    width: 60px;
    height: 60px;
    transform: translateY(-50%);
}


.footer__copy {
    padding: 10px 0;
    color: var(--color-base);
    text-align: center;
    background-color: var(--color-primary);
}

.footer__copy small {
    font-size: 14px;
}



@media (min-width:768px) and (max-width:1023px) {
	.siboken__image {
	    position: absolute;
	    top: 250px;
	    right: 15%;
	    z-index: 10;
	    width: 100px;
	    height: 100px;
	    transform: translateY(-50%); } }


@media (width >= 1024px) {
    .footer {
        margin-left: 200px;

    }

    .footer__inner {
        display: flex;
        flex-direction: row-reverse;
        align-items: end;
        justify-content: space-between;
        max-width: 1040px;
        margin: 0 auto 60px;
    }

    .footer__content {
        align-items: start;
        width: fit-content;
        margin: 0 auto;
        margin-left: 50px;
    }

    .footer__logo {
        margin-bottom: 0;
    }

    .footer__content p,
    .footer__sns {
        padding-left: 30px;
    }

    .footer__content p:nth-of-type(2),
    .footer__content p:nth-of-type(4),
    .footer__sns {
        margin-top: 10px;
    }

    .footer__sns {
        gap: 15px;
    }

    .footer__map {
        flex: 1;
        max-width: 50%;
        min-height: 300px;
        margin-top: 0;
        padding-bottom: 0;

        iframe {
            min-height: 300px;
        }
    }

    .siboken__image {
        position: relative;
        width: 100px;
        height:100px;
        transform: translateY(0);
    }
}

/* ==============================
movie
============================== */
.movie .wrapper {
    padding-top: 60px;
}

.movie__iframe {
    width: 100vw;
    height: 260px;
    margin-right: calc(50% - 50vw);
    margin-left: calc(50% - 50vw);    
}

.movie__flex {
    display: flex;
    flex-direction: column;
    gap: 5px;
    margin-top: 5px;
    line-height: var(--line-height-normal)
}

.movie__top {
    display: flex;
    flex-wrap: wrap;
    gap: 5px 20px;
    width: 100%;
}

.movie__inner {
    display: flex;
    gap: 15px;
}

.movie__inner p {
    white-space: nowrap;
}

@media (width >= 768px) {
    .movie {
        .wrapper {
            max-width: 1040px;
            padding: 60px 20px;
        }

        .movie__iframe {
            width: 100%;
            height: 550px;
            margin: 0;
        }

    }

    .movie__flex {
        flex-direction: row;
        justify-content: space-between
    }

    .movie__top {
        gap: 50px;
        width: fit-content;
    }

    .movie__bottom {
        width: fit-content;
        text-align: left;
    }
}

/* ==============================
contact
============================== */
.contact {
    .contact__inner {
        margin-top: 50px;
    }

    .contact__left p {
        font-size: var(--font-size-base);
        line-height: var(--line-height-sxl);
    }
}

.contact__buttons {
    display: flex;
    gap: 20px;
    margin-top: 50px;

    a {
        display: block;
        width: 100%;
        padding: 10px 0;
        text-align: center;
        border: 2px solid var(--color-gradient-dark)
    }
}

.contact__list {
    display: flex;
    flex-direction: column;
    gap: 5px;
    margin-top: 50px;
    line-height: var(--line-height-normal);
}

.contact__calendar {
    margin-top: 10px;
}

.contact__button {
    position: relative;

    span {
        position: relative;
        z-index: 30;
        display: block;
        font-size: var(--font-size-base);
        color: var(--color-base);
    }

    img {
        position: absolute;
        top: 0;
        left: 0;
        z-index: 10;
        width: 100%;
        height: 100%;
        object-fit: cover;
        object-position: center;
    }
}

.contact__button::after {
    position: absolute;
    top: 0;
    left: 0;
    z-index: 20;
    width: 100%;
    height: 100%;
    background: var(--color-page-head);
    opacity: 0.5;
    content: '';
}

@media (width >= 768px) {
    .contact .wrapper {
        max-width: 1040px;
    }

    .contact__inner {
        display: flex;
        justify-content: space-between;
        gap: 40px;
    }

    .contact__left {
        flex: 1;
    }

    .contact {
        .contact__left p {
            line-height: var(--line-height-xl);
        }
    }

    .contact__buttons {
        flex-direction: column;
        gap: 20px;
    }

    .contact__buttons a {
        width: 100%;
        max-width: 300px;
    }

    .contact__button {
        transition: var(--transition-base);

        span {
            color: var(--color-black);
        }

        img {
            visibility: hidden;
        }
    }

    .contact__button:hover {
        span {
            color: var(--color-base);
        }

        img {
            visibility: visible;
        }

        &::after {
            visibility: visible;
        }
    }

    .contact__buttons a:nth-of-type(1) {
        transition: var(--transition-base);

        &:hover {
            color: var(--color-base);
            background-color: var(--color-primary);
        }
    }

    .contact__button::after {
        opacity: 0;
        visibility: hidden;
    }

    .contact__right {
        display: flex;
        flex-direction: column-reverse;
        width: 55%;
    }

    .contact__calendar {
        height: 330px;
        margin-top: 0;
    }

    .contact__list {
        margin-top: 10px;
        font-size: var(--font-size-medium);
    }

    .contact__calendar iframe {
        height: 330px;
    }
}

/* 投稿記事 */
.single__content {
	p,
	ul { margin-bottom: 20px; }

	a:hover { color: var(--color-primary); }

	ul {
	padding-left: 40px;
	list-style: disc; }

	li { margin-bottom: 10px; }
}
