@charset "utf-8";

/* ===========================
common
=========================== */

:root {
    --primary-white:#FFFFFF;
    --primary-blue:#295CCC;
    --accent-blue: #A8C4FF;
    --bg-blue-soft: #F0F5FF; 
    --bg-blue-ultra-soft: #F7FAFF;
    --bg-base: #FEFEFE; 
    --bg-blue-light: #E9EFFB; 
    /* store のみで使用　#EEF2FB */
    --bg-blue-lighter: #EEF2FB;

    /* ↓ ここから追加 ↓ */
    /* モーダル表示時（背景になじませる色） */
    --scroll-thumb-modal: rgba(0, 0, 0, 0);
    --scroll-track-modal: rgba(0, 0, 0, 0.8);
}

html {
    font-size: 62.5%;
}

body {
    font-family: "Zen Kaku Gothic New", Arial, sans-serif;
    color: var(--primary-blue);
    background-color: var(--bg-base);
    line-height: 1.6;
}

img {
    max-width: 100%;
    height: auto;
}

.topic {
    font-family: Aboreto;
    font-size: 5.2rem;
    line-height: 1;
    letter-spacing: 0.02em;
    margin-top: 16px;
    text-transform: uppercase;
}

.section__label {
    font-size: 1.2rem;
    line-height: 1;
    letter-spacing: -0.03em;
    padding-bottom: 7px;
    border-bottom: 1px solid var(--accent-blue);
    display: flex;
    align-items: center;
    gap: 8px;
    padding-top: 81px;
}

.section__label::before {
    content: '';
    display: block;
    width: 8px;
    height: 12px;
    background-color: #295CCC;
}

.more-btn {
    margin: 40px auto 0;
    text-align: center;
}

.more-btn button {
    font-family: Outfit;
    font-size: 1.6rem;
    font-weight: 300;
    line-height: 1;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    border: none;
    background: transparent;
    cursor: pointer;
    position: relative;
}

/* アイコン部分を相対配置 */
.btn-icon {
    position: relative;
    width: 18px;
    height: 18px;
    display: inline-block;
}

/* 2つの画像を重ねる */
.btn-icon img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    transition: opacity 0.3s ease; /* ←ここでフェード */
}

/* 通常状態 */
.btn-hover {
    opacity: 0;
}

/* hover時に切り替え */
button:hover .btn-hover {
    opacity: 1;
}

button:hover .btn-normal {
    opacity: 0;
}


.line {
    text-decoration: underline;           /* 下線を付ける */
    text-decoration-color: var(--accent-blue); /* 下線の色 */
    text-decoration-thickness: 1px;       /* 線の太さ */
    text-underline-offset: 2px;           /* 文字との間隔（任意で調整） */
}

.visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    margin: -1px;
    padding: 0;
    border: 0;
    clip: rect(0, 0, 0, 0);
    overflow: hidden;
    white-space: nowrap;
}

/* 見出しぼかし */
.inview-blur{
    opacity: 0;
    animation-duration: 1.2s;
    animation-fill-mode: both;
}

.inview-blur.blur{
    animation-name: imageBlurHeading;
    opacity: 1;
}

@keyframes imageBlurHeading {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

/* 画像ぼかし */
.inview-blur-img{
    opacity: 0;
    animation-duration: 1.2s;
    animation-fill-mode: both;
    animation-delay: 0.1s;
}

.inview-blur-img.blur{
    animation-name: imageBlurImg;
    opacity: 1;
}

@keyframes imageBlurImg {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

/* ページ読み込み時のフェードイン */
#container {
    animation: fadein 0.8s ease-out forwards;
    opacity: 0; /* 初期は透明 */
}

@keyframes fadein {
    0% { opacity: 0; }
    100% { opacity: 1; }
}


.txt-opacity {
    transition-property: opacity;
    transition-duration: 0.3s;
}
.txt-opacity:hover {
    opacity: 0.6; 
}

/* common tb pc */
@media screen and (min-width: 768px){
    .topic {
        font-size: 8.8rem;
        letter-spacing: 0.02em;
        margin-top: 48px;
    }

    .more {
        margin-top: 56px;
    }

    .section__label {
        padding-top: 203px;
    }

    .section__label::before {
        height: 14px;
    }

    .more-btn {
        margin: 56px auto 0;
        text-align: center;
    }
}
/* tb pc 768px */

/* pc　ぼかし調整 */
@media screen and (min-width: 1024px){
    .inview-blur{
        animation-duration: 1.6s;
    }

    .inview-blur-img{
        animation-duration: 1.2s;
        animation-delay: 0.2s;
    }

    /* トップ画像ぼかし */
    .inview-blur-top{
        opacity: 0;
        animation-duration: 1.4s;
        animation-fill-mode: both;
        animation-delay: 0.5s;
    }

    .inview-blur-top.blur{
        animation-name: imageBlurTop;
    }

    @keyframes imageBlurTop {
        from {
            opacity: 0;
        }
        to {
            opacity: 1;
        }
    }

    .galleryBtn__item {
        transition: background-color .2s ease, color .2s ease;
    }

    .galleryBtn__item:hover {
        background-color: var(--primary-blue);
        color: var(--primary-white);
    }

    .nav-opacity {
        padding-bottom: 5px;
        background-image: linear-gradient(#4178ee,#4178ee);
        background-repeat: no-repeat;
        background-position: bottom right;
        background-size: 0 1px;
        transition: background-size 0.4s;
    }

    .nav-opacity:hover{
        background-position: bottom left;
        background-size: 100% 1px;
    }

    /* .line　下線を消す
    .line {
        text-decoration: underline;
        text-decoration-color: var(--accent-blue);
        text-decoration-thickness: 1px;
        text-underline-offset: 2px;
        transition: text-decoration-color 0.2s ease; 
    }

    .line:hover {
        text-decoration-color: transparent;
    } */

    .line {
    transition-property: opacity;
    transition-duration: 0.3s;
    }
    .line:hover {
        opacity: 0.6; 
    }

}

/* ===========================
header
=========================== */
.header {
    padding: 0 5.3%;
    height: 56px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.header__topic,
.nav__topic {
    padding-bottom: 2px;
    width: 105px;
    flex-shrink: 0;
}

.header__topic img,
.nav__topic img {
    width: 100%;
    height: auto;
    display: block;
    flex-shrink: 0;
}

/* .navの初期表示 */
.nav {
    background: var(--bg-base);
    width: 100%;
    height: 100vh;
    position: fixed;
    top: 0;
    left: 0;
    pointer-events: none;
	z-index: -1;
	opacity: 0;
	transition: all 0.4s;
}

.nav__header {
    padding: 0 5.3%;
    height: 56px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.nav__list {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 24px;
    display: none;
    position: absolute;
    z-index: 999;
    top:20%;
    left:50%;
    transform: translateX(-50%);
}

.nav__link {
    margin-top: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.nav__link img {
    height: 25px;
    width: auto;
}

.nav__link a {
    padding: 12px 8px;
}

.nav__btn {
    display: block;
    width: 51px;
    height: auto;
    cursor: pointer;
}

.nav__item {
    text-align: center; 
}

.nav__item a{
	text-decoration: none;
	padding:12px;
	display: block;
    font-family: Outfit;
    font-size: 1.8rem;
    font-weight: 300;
    line-height: 1.2;
    letter-spacing: 0.09em;
}

.header__btn {
    position: fixed;
    top: 3px;
    right: 5.3%;
    display: block;
    width: 51px;
    height: auto;
    cursor: pointer;
    z-index: 9999;
}

.header__btn img {
    display: block;
    width: 100%;
    height: auto;
}


/*========= nav展開 ===============*/
.main {
    position: relative;
    z-index: 0;  /* 基準になるレイヤー */
}

.mainblur {
    filter: blur(1px);
}

/* メニュー開いたときに .main 全体を白で覆う疑似要素 */
.mainblur::before {
    content: "";
    position: fixed;
    inset: 0;                  /* top:0; right:0; bottom:0; left:0 と同じ */
    background-color: var(--bg-base);    /* navの白に合わせる */

    z-index: 900;              /* コンテンツより上、nav(999)より下くらいに調整 */
    pointer-events: none;      /* オーバーレイがクリック邪魔しないように */
}

/* .header__topic {
    transition: opacity 0.3s ease;
    opacity: 1;
}

.header__topic.fadeout {
    opacity: 0;
}

.header__topic.is-hidden {
    display: none;
} */


.active {
    display: none;
}

.nav.panelactive{
    opacity: 1;
    z-index: 999;
    pointer-events: auto;
}

.nav.panelactive .g-nav-list{
    position: fixed;
    z-index: 999; 
    width: 100%;
    height: 100vh;
    overflow: auto;
    -webkit-overflow-scrolling: touch;
}

.nav.panelactive ul {
    display: block;
}

.header__btn{
	position:fixed;
    z-index: 9999;/*ボタンを最前面に*/
	cursor: pointer;
}

/* ===========================
GALLERY ＋
=========================== */
.nav__item {
    position: relative;
}

/* GALLERY と ＋ を横並び＆中央寄せ（スマホ） */
.plus-box__inner {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
}

/* ＋ボタン */
.plus-toggle {
    position: relative;
    width: 18px;
    height: 18px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}

/* ＋の横棒・縦棒を疑似要素で描く */
.plus-toggle::before,
.plus-toggle::after {
    content: '';
    position: absolute;
    background-color: var(--primary-blue);
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
}

/* 横棒 */
.plus-toggle::before {
    width: 18px;
    height: 1px;
}

/* 縦棒 */
.plus-toggle::after {
    width: 1px;
    height: 18px;
}

/* 「GALLERY＋」の左右の余白を等しくする */
.plus-box__inner {
    padding-right: 12px;
}

#gallery-submenu {
    padding-right: 12px;
}

/* 開いているときは縦棒だけ消して「−」にする */
.plus-box.is-open .plus-toggle::after {
    opacity: 0;
}
/* サブメニュー本体（閉じた状態） */
.plus-menu {
    position: static;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease;
}

.plus-menu li a {
    font-family: Outfit;
    font-size: 1.2rem;
    font-weight: 300;
    line-height: 1.2;
    letter-spacing: 0.09em;
    display: inline-block;
}

.plus-box.is-open .plus-menu {
    max-height: 200px;
}

/* 開いたときのアニメーション */
@keyframes simpleFadeIn {
    0% {
        opacity: 0;
        transform: translateY(-5px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

/* .plus-box に is-open が付いたとき展開 */
.plus-box.is-open .plus-menu {
    max-height: 200px;
    animation: simpleFadeIn 0.3s ease;
}

/* is-open のときは ＋ を − 表示に（見た目） */
.plus-box.is-open .plus-toggle {
    border-color: var(--primary-blue);
}

.nav .plus-menu {
    position: static;
    transform: none;
}

.nav .plus-box a {
    padding-right: 0;
}


/* ロゴも追従 */

@media screen and (max-width: 767px) {
    .header {
        position: sticky;
        top: 0;
        left: 0;
        right: 0;
        z-index: 100;
    }

    .header__btn {
        position: absolute;
        top: 3px;
        right: 5.3%;
        width: 51px;
        height: auto;
        cursor: pointer;
        z-index: 101;
    }
}

/* 768〜1199px：タブレット（＋タップで開閉） */
@media screen and (min-width: 768px) and (max-width: 1199px){
    .plus-box.is-open .plus-menu {
        opacity: 1;
        visibility: visible;
        transform: translateY(0);
    }
}

/* header tb */
@media screen and (min-width: 768px){
    .mainblur{
        filter: none;
    }

    .nav {
        background: transparent;
        width: auto;
        height: auto;
        position: static;
        pointer-events: auto; 
        opacity: 1;
        z-index: auto;
    }

    .nav__list {
        display: flex;        
        position: static;
        top: auto;
        left: auto;
        transform: none;
        flex-direction: row;
        align-items: center;
        gap: 16px;
        padding-top: 2px;
    }

    .header__inner {
        width: 100%;
        padding: 0 7.3%;
        height: 60px;
        display: flex;
        align-items: center;
        justify-content: space-between;
    }

    .g-nav-list {
        position: static;
        width: auto;
        height: auto;
        overflow: visible;
    }

    .nav__item a {
        padding: 0;
        letter-spacing: 0;
        font-size: 1.6rem;
        line-height: 1.6;
        display: flex;
        align-items: center;
        font-weight: 400;
    }

    .nav__item::after {
        content: '';
        display: block;
        height: 16px;
        width: 1px;
        background-color: var(--accent-blue);
    }

    .nav__item {
        display: flex;
        align-items: center;
        gap: 16px;
    }

    .plus-box__inner {
        padding: 0;
    }

    /* GALLERY の後ろの縦線は消す */
    #g-nav li.plus-box a::after {
        display: none;
        content: none;
    }

    /* CONTACT だけ消す */
    .nav__item--last::after {
        content: none;
    }

    .nav__header {
        display: none;
    }

    .header__btn {
        display: none;
    }

    .header {
        padding: 0;
        height: 60px;
        margin: 0 auto;
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        z-index: 100;
        background-color: var(--bg-base);
    }

    .header__topic,
    .nav__topic {
        padding-top: 1px;
        width: 115px;
        flex-shrink: 0;
    }

    /* ===== GALLERY + ＋ （PC表示） ===== */
    .plus-box__inner {
        justify-content: flex-start; 
        gap: 2px; 
        position: relative;
    }

    .plus-toggle {
        width: 12px;
        height: 12px;
    }

    .plus-toggle::before {
        width: 12px;
        height: 1px;
    }

    /*gallery opacity */
    /* .plus-box__inner:hover .plus-toggle::before {
        opacity: 0.5;
    }

    .plus-box__inner:hover .nav-opacity {
        opacity: 0.5;
    } */

    .plus-toggle::after {
        width: 1px;
        height: 12px;
    }

    .nav .plus-menu {
        display: block;           
        position: absolute;
        left: -16px;
        top: 28px;
        background: transparent;
        max-height: none;
        overflow: visible;
        opacity: 0;
        visibility: hidden;
        text-align: left;
        transition:
            opacity 0.2s ease,
            transform 0.2s ease,
            visibility 0.2s ease;
        z-index: 200;       
        background-color: var(--bg-base);
        padding:0 0 8px 16px;
        border-radius: 2px;
    }

    #gallery-submenu {
        padding-right: 18px;
    }

    .plus-menu li a {
        font-size: 1.6rem;
        line-height: 1.6;
        letter-spacing: 0;
        display: inline-block;
        font-weight: 400;
    }

    .plus-menu li {
        padding: 6px 0;
    }

    .plus-menu li:first-of-type {
        padding-top: 9px;
    }

    /* .plus-box:hover .plus-menu {
        opacity: 1;
        visibility: visible;
        transform: translateY(0);
    } */

    .plus-box.is-open .plus-menu {
        max-height: none;
    }

    .nav__link {
        display: none;
    }

    /* 既存の疑似要素に追加推奨 */
    .plus-toggle::before,
    .plus-toggle::after {
        transition: opacity .2s ease; /* ← 追加 */
    }

    /* base（SP〜PC共通）には今まで通り残す */
    .plus-box.is-open .plus-toggle::after {
        opacity: 0;  /* SPではクリックで「−」 */
    }

    /* .plus-box:hover .plus-toggle::after {
        opacity: 0;
    } */

    /* スクロール途中でヘッダーが消え、上にスクロールすると復活 */
    #header {
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        z-index: 100;
    }

    #header.UpMove{
        animation: UpAnime 0.6s forwards;
    }

    @keyframes UpAnime{
        from {
            opacity: 1;
            top: 0;
        }
        to {
            opacity: 0;
            top: -100px;
        }
    }

    /*　下に下がる動き　*/
    #header.DownMove{
        animation: DownAnime 0.3s forwards;
    }

    @keyframes DownAnime{
        from {
            opacity: 0;
            top: -100px;
        }
        to {
            opacity: 1;
            top: 0;
        }
    }
}
/* tb 768px */

/* 1200px以上だけ hover でサブメニュー表示 */
@media screen and (min-width: 1200px){
    .plus-box:hover .plus-menu {
        opacity: 1;
        visibility: visible;
        transform: translateY(0);
    }

    /* ホバー中だけ縦棒を消して「−」にする */
    .plus-box:hover .plus-toggle::after {
        opacity: 0;
    }
}

/* header oc */
@media screen and (min-width: 1440px){
    .header {
        padding: 0 8.3%;
    }

    .header__inner {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0;
    }
}

/* ===========================
footer
=========================== */
.copy {
    font-family: Outfit;
    font-weight: 300;
    line-height: 1;
    text-align: center;
    padding: 97px 0 12px;
    /* padding: 97px 0 32px; */
    font-size: 1.2rem;
    background-color: var(--bg-base);
}

/* footer tb pc */
@media screen and (min-width: 768px){
    .copy {
        padding: 92px 0 24px;
    }
}
/* tb pc 768px */

/* ====== scrollbar-gutter（ガタつき防止）====== */
html {
    scrollbar-gutter: stable;
}

@media screen and (min-width: 1024px){

    /* ====== モーダル時だけスクロールバーをカスタム ====== */

    html.is-modalOpen {
        scrollbar-color: var(--scroll-thumb-modal) var(--scroll-track-modal); /* Firefox */
    }

    html.is-modalOpen::-webkit-scrollbar-track {
        background: var(--scroll-track-modal);
    }

    html.is-modalOpen::-webkit-scrollbar-thumb {
        background: var(--scroll-thumb-modal);
    }

    /* ===== TOPページだけスクロールバーを消す ===== */
    html.no-scrollbar {
        scrollbar-width: none; /* Firefox */
    }

    /* Chrome / Edge / Safari */
    html.no-scrollbar::-webkit-scrollbar {
        display: none;
    }
}



/* --- common.css の最後あたりここ ---- */

@media (prefers-reduced-motion: reduce) {
    #container {
        animation: none !important;
        opacity: 1 !important;
    }

    .inview-blur,
    .inview-blur-img,
    .inview-blur-top {
        animation: none !important;
        opacity: 1 !important;
        transform: none !important;
    }
}
