/*====================================================================================
	ヘッダー　Header
====================================================================================*/
#gHeader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1001;
}
#gHeader .inner{
    margin: 20px 20px;
    padding: 8px 16px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background-color: var(--main-color-white);
    border: 1px solid var(--main-color-gray);
    border-radius: 50px;
}

/*-------hLogo------*/
#gHeader .hLogo img{
    height: auto;
    width: 180px;
}

/*-------header_center------*/
#gHeader .header_center{
    margin: 0 auto;
}
#gHeader .header_btn{
    display: flex;
    gap:30px;
}
#gHeader .header_btn a{
    display: inline-block;
    position: relative;

    color:color-mix(in srgb, var(--text-color-black) 50%, transparent);
    transition:color 0.4s ease;
}
#gHeader .header_btn a::after{
    content: "";
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 100%;
    height: 2px;
    background-color:var(--accent-color-1);

    opacity: 0;
    transition: opacity 0.4s ease;
}

/*------ ドロップダウン コンテンツ (デフォルトでは非表示) -----*/
.drop_down_content {
    display: none;
    position: absolute;
    min-width: 130px;
    background: var(--main-color-white);
}
.drop_down_content li a {
    padding:10px 0 0 5px;
    position: relative;
    display: inline-block;
    font-size: 1.6rem;
}
/* ホバー時にドロップダウンメニューを表示する */
.drop_down_menu:hover .drop_down_content {
    display: block;
}

/* ドロップダウンのコンテンツが表示されているときのドロップダウンボタンの背景色を変更 */
.drop_down_menu:hover .dropbtn {
    background-color: var(--turquoise);
}

/*-------header_right-------*/
#gHeader .header_right{
    padding:10px 20px;
    background:color-mix(in srgb, var(--accent-color-1) 10%, transparent);
    border-radius: 30px;
    display: flex;
    gap:30px;
    align-items: center;
    transition: background-color 0.4s ease;
}
#gHeader .vector-icon{
    padding-top: 3px;
}


/*-------vector-icon------*/
.vector-icon{
    position:relative;
    width:24px; /* アイコンサイズ */
    height:24px;
}
.vector-icon img{
    position:absolute;
    inset:0;
    width:100%;
    height:100%;
    object-fit:contain;
}

/*-------menu-button------*/
.menu-button {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    row-gap: 6px;
}
.menu-button__line,
.menu-button::before,
.menu-button::after {
    content: "";
    display: block;
    width: 28px;
    height: 2px;
    background-color: var(--text-color-black);
}
.menu-button.is-opened .menu-button__line {
    opacity: 0;
}

/*========= ナビゲーションのためのCSS ===============*/
#g-nav{
    /*position:fixed;にし、z-indexの数値を小さくして最背面へ*/
    position:fixed;
	z-index: -1;
	opacity: 0;/*はじめは透過0*/
    /*ナビの位置と形状*/
	top:0;
	width:100%;
    height: 100vh;/*ナビの高さ*/
	background:var(--main-color-white);
    /*動き*/
	transition: all 0.3s;
}

/*アクティブクラスがついたら透過なしにして最前面へ*/
#g-nav.panelactive{
	opacity: 1;
	z-index:999;
}

/*ナビゲーションの縦スクロール*/
#g-nav.panelactive #g-nav-list{
    /*ナビの数が増えた場合縦スクロール*/
    position: fixed;
    z-index: 999;
    width: 100%;
    height: 100vh;/*表示する高さ*/
    overflow: auto;
    -webkit-overflow-scrolling: touch;
}

/*ナビゲーション*/
#g-nav ul {
    display: none;
    /*ナビゲーション天地中央揃え*/
    position: absolute;
    z-index: 999;
    top:50%;
    left:50%;
    transform: translate(-50%,-50%);
}

#g-nav.panelactive ul {
    display: block;
}

/*リストのレイアウト設定*/

#g-nav li{
	list-style: none;
    text-align: left;
}

#g-nav li a{
    position: relative;
    display: block;
    padding: 20px 0 16px;
    font-size: 1.8rem;
    font-weight: 500;
    text-align: left;
    letter-spacing: 0.06em;
    opacity: 1;
    color: var(--text-color-black);
    border-bottom: 1px solid var(--main-color-gray);
}
#g-nav li a::before{
    position: absolute;
    content: "";
    display: inline-block;
    content: "";
    margin-top: -4px;
    top: 50%;
    left: -30px;
    width: 10px;
    height: 10px;
    vertical-align: top;
    border-radius: 5px;
    background-color: var(--accent-color-1);
}


@media all and (min-width: 769px) {
    .icon-hover{
        opacity:0;
    }

    /* ホバー時のドロップダウンリンクの色を変更する */
    .DropDownList a:hover {
        color: var(--main-color-white);
        background: var(--main-color-gray);
    }
    /*hover*/
    #gHeader .header_btn a:hover{
        color: var(--text-color-black);
    }

    #gHeader .header_btn a:hover::after{
        opacity: 1;
    }

    /*hover*/
    #gHeader .header_right:hover{
        background-color: var(--footer-color-bg);
    }

    #gHeader .header_right:hover .icon-hover{
        opacity:1;
    }

    #gHeader .header_right:hover .icon-default{
        opacity:0;
    }

    #gHeader .header_right:hover .menu-button__line,
    #gHeader .header_right:hover .menu-button::before,
    #gHeader .header_right:hover .menu-button::after{
        background:var(--main-color-white)
    }
}
@media all and (max-width: 768px) {
    #gHeader .header_center {
        display: none
    }
}


/*-----
キーワード検索オーバーレイ search-overlay
-----*/
.search-overlay {
    margin: 0 0 0 0;
    padding: 160px 0 0 0;
    height: 100vh;
    width: 100%;
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    color: var(--text-color-black);
    background-color: var(--main-color-gray);
    z-index: 500;
    overflow-y: auto;
}
.search-overlay .inner {
    margin: 0 auto;
    padding: 0 5% 0 5%;
    width: 100%;
    max-width: 1280px;
}

/*-----
トグルボタンの切り替え search-toggle
-----*/
/* 通常時はCLOSEラベルを隠す */
.search-toggle-label {
    margin: 0 0 0 0;
    padding: 0 0 0 0;
    display: none;
    font-size: 1.5rem;
    font-weight: bold;
    color: var(--text-black);
}

/* 検索窓が開いている時（bodyに.search-openが付与された時）のスタイル */
body.search-open .vector-icon,
body.search-open .menu-button {
    display: none; /* アイコン類を隠す */
}
body.search-open .search-toggle-label {
    display: block; /* CLOSEの文字を出す */
}
body.search-open .header_right {
    background-color: #554e4a; /* 背景を濃い色に */
}
body.search-open .search-toggle-label {
    color: var(--main-white); /* 文字を白に */
}
form.search-form {
    display: flex;
}

/*-----
検索メインコンテンツ search-content
-----*/
.search-content {
    display: flex;
    flex-direction: row;
}
.search-title-box {
    margin: 0 0 4rem 0;
    padding: 0 0 0 0;
    width: 480px;
}
.search-main-title {
    margin: 0 0 0.5rem 0;
    font-size: 3.2rem;
}
.search-sub-title {
    margin: 0 0 0 0;
    font-size: 1.5rem; /* ガイドの最小単位 */
    color: var(--text-gray);
}
.search-input-wrap {
    margin: 0 0 5rem 0;
    padding: 0 0 0 0;
    display: flex;
    flex-direction: row;
    width: 400px;
}
.search-field {
    margin: 0 0 0 0;
    padding: 0 2rem 0 6rem;
    height: 8rem;
    width: 100%;
    font-size: 1.8rem;
    background-color: var(--main-color-white);
    border: 1px solid var(--main-color-gray);
    border-radius: 1rem;
}

/*-----
キーワードタグ search-tags
-----*/
.search-tags {
    display: flex;
    flex-wrap: wrap;
}
.search-tags a {
    margin: 8px;
    padding: 8px 24px;
    border-radius: 2rem;
    font-size: 1.6rem;
    text-decoration: none;
    color: var(--main-color-white);
    background-color: var(--accent-color-1);
}


/*-----
レスポンシブ responsive
-----*/
@media all and (max-width: 768px) {
    .search-overlay {
        padding: 6rem 0 0 0;
    }

    .search-main-title {
        font-size: 2.4rem;
    }

    .search-field {
        height: 6rem;
    }
}

/*-----
検索結果固有のスタイル search-results
-----*/
.no-results {
    margin: 0 0 0 0;
    padding: 10rem 0 10rem 0;
    text-align: center;
}
.no-posts {
    margin: 0 0 0 0;
    padding: 0 0 0 0;
    font-size: 1.8rem;
    color: var(--text-black);
}


/* ================================================
    SP メニューオーバーレイ
================================================ */
.sp-menu-overlay {
    display: none; /* JS で制御 */
    position: fixed;
    inset: 0;
    padding: 100px 30px 60px;
    background: var(--main-color-white);
    z-index: 1000;
    overflow-y: auto;
}

/* --- ナビ --- */
.sp-nav__list {
    list-style: none;
    margin: 0 0 40px;
    padding: 0;
}

.sp-nav__item {
    border-bottom: 1px solid #eee;
}

.sp-nav__item > a {
    display: block;
    padding: 18px 0;
    font-size: 18px;
    font-weight: 700;
    letter-spacing: 0.1em;
    color: var(--text-color-black);
    text-decoration: none;
}

/* カテゴリー子リスト */
.sp-nav__child {
    list-style: none;
    padding: 0 0 16px 16px;
    margin: 0;
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.sp-nav__child li a {
    display: inline-block;
    padding: 6px 14px;
    border: 1px solid #ddd;
    border-radius: 999px;
    font-size: 13px;
    color: var(--text-color-black);
    text-decoration: none;
}

.sp-nav__child li a:hover {
    background: #f5f0ec;
}

/* --- 検索 --- */
.sp-search {
    margin-top: 40px;
}

.sp-search__label {
    font-size: 13px;
    color: #999;
    margin-bottom: 10px;
    letter-spacing: 0.05em;
}

.sp-search__wrap {
    display: flex;
    align-items: center;
    border-bottom: 2px solid #333;
    gap: 10px;
    padding-bottom: 8px;
}

.sp-search__input {
    flex: 1;
    border: none;
    outline: none;
    font-size: 16px;
    background: transparent;
}

.sp-search__btn {
    background: none;
    border: none;
    padding: 0;
    cursor: pointer;
}

.sp-search__btn img {
    width: 20px;
    height: 20px;
}

/* PCでは非表示 */
@media screen and (min-width: 768px) {
    .sp-menu-overlay {
        display: none !important;
    }
}

/* 開いているとき ×（バツ）アイコン化 */
@media screen and (max-width: 767px) {
    .header_right.is-open .menu-button__line {
        background: transparent;
    }
    .header_right.is-open .menu-button__line::before {
        transform: rotate(45deg);
        top: 0;
    }
    .header_right.is-open .menu-button__line::after {
        transform: rotate(-45deg);
        top: 0;
    }
}