/*
Theme Name: dp-fresco子テーマ
Template: dp-fresco
*/

html {
	font-size: 62.5%;
	scroll-behavior: smooth; /* スムーススクロール */
	overflow-y: scroll;
	scroll-padding-top: 80px; /* ヘッダー固定でのアンカーリンク調整 */
}
html,
body,
.entry-body {
	font-family: "Noto Sans JP", sans-serif;
	font-size: 1rem;
	letter-spacing: 0.07em;
	-webkit-box-sizing: border-box;
	box-sizing: border-box;
	overflow-x: hidden;
}
b, strong {
    font-weight: bold;
}
h1, h2, h3, h4 {
	font-weight: bold;
}
img {
	max-width: 100%;
	height: auto;
}

.site-header {
    width: 100vw;
	height: 110px;
    -webkit-transition: all .2s;
    transition: all .2s;	
    background: #fff;
    border-bottom: 1px solid #eee;
    background: transparent;
    transition: background 0.3s ease, box-shadow 0.3s ease;
    position: relative;
    top: 0;
    z-index: 1000;
}

/* スクロール後 */
.site-header.is-down {
	height: 100px;
    position: fixed;
    top: 0;	
    left: 0;	
    background: #fff;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
}

.site-header__inner {
	height: 120px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin: 0 auto;
	margin-top: -10px;
    z-index: 1000;	
}

.site-logo img {
    height: 100px;
    vertical-align: middle;
	padding: 20px;
}

/* --- グローバルナビ --- */
.global-nav {
    display: flex;
    align-items: center;
	padding-bottom: 5px;
}

.global-nav__list {
    display: flex;
    list-style: none;
    gap: 40px;
    margin: 0;
    padding: 0;
}

.global-nav__list a {
    color: #000;
	display: block;
    font-family: "Didact Gothic", sans-serif;
    font-weight: 400;
    line-height: 1.3;
    margin-bottom: 5px;
    text-decoration: none;
    text-align: center;
    font-size: 1rem;
}
.global-nav__list a span {
	font-family: "Noto Sans JP", sans-serif;
	font-size: .6rem;
	display: block;
}

.nav__block {
	display: flex;
	flex-flow: column;
	margin-left: auto;
}
.nav__block--flex {
	display: flex;
	justify-content: flex-end;
	align-items: center;
	margin-bottom: 8px;
}
/* --- 検索 --- */
.header-search {
    margin-left: 20px;
	margin-top: 4px;
}
.header-search .search-form {
	margin: 0 auto;
}
.search-form input[type="search"] {
    border-radius: 20px;
	height: 36px;
}
.search-form input {
	font-size: .8rem;
}
button[type="submit"] {
	color: #ccc !important;
}
.searchform {
	position: relative;
	width: 100%;
	max-width: 250px; /* 必要に応じて調整 */
}
.searchform__inner {
	position: relative;
	width: 100%;
}
.searchform__inner input[type="search"] {
	width: 100%;
	padding: 0 36px 0 12px; /* 右側に余白を作る */
	border: 1px solid #ccc;
	border-radius: 4px;
	font-size: 14px;
	color: #333;
}
.searchform__inner button {
	position: absolute;
	right: 10px;
	top: 50%;
	transform: translateY(-50%);
	background: transparent;
	border: none;
	color: #ccc;
	cursor: pointer;
	padding: 0;
	line-height: 1;
}
.searchform__inner i {
	font-size: 20px;
	background: #fff;
}



/* --- 言語切替 --- */
.lang-switch {
    display: flex;
    margin-left: 20px;
	position: relative;
    z-index: 1001; /* 他のヘッダー要素より上 */
    pointer-events: auto;
}
.site-header::before,
.site-header::after {
    pointer-events: none !important;
}
.lang-btn {
    display: inline-block;
    padding: 2px 4px;
    width: 50px;
    height: 50px;
    border: 1px solid #fff;
    background: #444;
	font-family: "Didact Gothic", sans-serif;
	font-size: 1rem;
    color: #fff;
	line-height: 40px;
	text-align: center;
    text-decoration: none;
}

.lang-btn.active {
    background: #222;
}

/* --- CTAボタン --- */
.header-cta {
	height: 100%;
    display: flex;
    margin-left: 20px;
	text-align: center;
}

.header-cta .btn {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-decoration: none;
	font-family: "Didact Gothic", sans-serif;
    font-size: 1rem;
	font-weight: 600;	
    padding: 8px 16px;
    min-width: 110px;
}

.header-cta .btn.primary {
    background: #202f54;
	background-color: var(--deb-primary-color);
    color: #fff;
}

.header-cta .btn.red {
    background: #d00;
    color: #fff;
}
.btn:not([class*="btn-"]) {
    border: none;
}
.site-main {
	max-width: 1200px;
    width: 94%;
    margin-right: auto;
    margin-left: auto;	
}
.home section {
	margin-bottom: 80px;
}
.header-banner-content #banner_title h2 {
    font-family: "Didact Gothic", sans-serif;	
}
.header-banner-content #banner_caption {
    position: relative;
    margin: 4vw auto auto;
    line-height: 1.8;
    font-size: 1.5rem;
    max-width: 980px;
    text-align: left;
}
.site-footer {
	max-width: 1200px;
    width: 94%;
    margin-right: auto;
    margin-left: auto;		
}
/* --- ハンバーガー（SP用） --- */
.hamburger {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 28px;
    height: 20px;
    border: none;
    background: none;
}

.hamburger__bar {
    height: 2px;
    width: 100%;
    background: #000;
}
/*
.header-banner-outer {
	max-height: 70vh;
}
.header-banner-content {
    position: relative;
	top: 40%;
    max-height: 100%;
}
*/


/* DigiPress スライダー画像の強制表示 */

.hd_slider,
.swiper-container,
.swiper-wrapper,
.swiper-slide,
.sl-media.sl-img {
    height: 100vh;
    min-height: 500px;
    background-size: cover;
    background-position: center center;
    background-repeat: no-repeat;
}

.swiper-container:not(.style-fade):not(.style-horizontal):not(.style-vertical):not(.aslider) {
    margin-top: 0;
}
.caption tr2 {
	font-size: 2rem;
}

/* ページヘッダー */
.ct-whole {
	line-height: 0;
}
.ct-whole .hd-title.single-title span::before,
.ct-whole .hd-title.single-title span::after {
	display: none;
}
.ct-whole.singular .hd-title {
	font-weight: 400;
}
body.page-id-18 figure {
	display: none;
}

body.page-id-18 .content-wrap {
    min-width: 1180px;
    margin: 0 auto;
    padding: 0;
}
h2.title {
    font-size: 3rem;
    font-family: 'Didact Gothic', sans-serif;
    font-weight: 400;
	font-weight: 600 !important;
    color: #DD210E;
	color: var(--deb-primary-color);
    margin-right: 70px;	
}
h2.title span {
	font-size: 1.8rem;
    font-weight: bold;
	color: #000;
    line-height: 1;
    margin-bottom: 40px;	
}
.pickup_product {
	margin: 50px auto;
}
table.c-list_news p {
	margin: 0 0 0.5em;
}



/* タブレット */
@media (max-width: 1024px) {
    .hd_slider,
    .swiper-container {
        height: 70vh;
        min-height: 400px;
    }
}

/* スマホ */
@media (max-width: 600px) {
    .hd_slider,
    .swiper-container {
        height: 60vh;
        min-height: 300px;
    }
}



@media screen and (min-width: 1024px) {
	.under_1023 {
		display: none;
	}

}

@media screen and (max-width: 1240px) {
    .swiper-slide.style-fade .sl-content .caption,
	.swiper-slide.style-fade .sl-content .title_cap_btn,
	.swiper-slide.style-vertical .sl-content .caption,
	.swiper-slide.style-vertical .sl-content .title_cap_btn,
	.swiper-slide.style-horizontal .sl-content .caption,
	.swiper-slide.style-horizontal .sl-content .title_cap_btn,
	.swiper-slide.style-cube .sl-content .caption,
	.swiper-slide.style-cube .sl-content .title_cap_btn {
        font-size: 1.1rem !important;
    }	
}

/* ハンバーガー */
.hamburger {
    position: relative;
    width: 60px;
    height: 60px;
    background: transparent;
    border: 0;
    cursor: pointer;
}

/* 3本線を絶対中央に配置 */
.hamburger__bar {
    position: absolute;
    left: 50%;
    top: 50%;
    width: 48px;
    height: 2px;
    background: #000;
    transform: translate(-50%, -50%); /* 中央基準 */
    transition: transform .25s ease, opacity .2s ease;
    transform-origin: center center;   /* 念押し */
}

/* 初期並び（上・中・下）：中央から上下にだけずらす */
.hamburger__bar:nth-child(1) {
    transform: translate(-50%, calc(-50% - 18px));
}
.hamburger__bar:nth-child(2) {
    opacity: 1;
}
.hamburger__bar:nth-child(3) {
    transform: translate(-50%, calc(-50% + 18px));
}

/* 開いたとき：中央に集合してからクロスに回転 */
.hamburger.is-active .hamburger__bar:nth-child(1) {
    transform: translate(-50%, -50%) rotate(45deg);
}
.hamburger.is-active .hamburger__bar:nth-child(2) {
    opacity: 0;
}
.hamburger.is-active .hamburger__bar:nth-child(3) {
    transform: translate(-50%, -50%) rotate(-45deg);
}

/* モーション配慮（任意） */
@media (prefers-reduced-motion: reduce) {
    .hamburger__bar { transition: none; }
}

/* --- レスポンシブ対応 --- */
@media (max-width: 1023px) {
	.over_1024 {
		display: none;
	}
    .global-nav {
        position: fixed;
        top: 0;
        right: -100%;
        width: 80%;
        height: 100vh;
        flex-direction: column;
        background: #fff;
        padding: 60px 20px;
        transition: right 0.3s ease;
		z-index: 20;
        overflow-y: auto;
    }
    .global-nav.open {
        right: 0;
    }
    .nav-overlay {
        position: fixed;
        inset: 0;
        background: rgba(0, 0, 0, 0.5);
        z-index: 10;
    }	
    .hamburger {
        display: flex;
    }
    .header-cta {
        flex-direction: column;
        width: 100%;
    }
	/* ナビ（モバイル：オフキャンバス） */
	.global-nav {
		position: fixed;
		inset: 0 0 0 auto; /* 右側からスライド */
		width: min(92vw, 500px);
		background: #101638;
		translate: 100% 0;
		transition: translate .28s ease;
		display: block;
		padding: 24px 20px 40px;
		overflow-y: auto;
	}
	.global-nav.is-open {
		translate: 0 0;
		margin-top: 100px;
	}
	.global-nav__list {
		list-style: none;
		margin: 0;
		padding: 0;
	}
	.global-nav__list > li > a {
		display: block;
		padding: 14px 8px;
		color: #fff;
		text-decoration: none;
	}
	.global-nav__list > li > a:hover {
		background: #1926A1;
		outline: none;
	}
    /* メニューリスト（縦書き防止） */
    .global-nav__list {
        display: flex;
        flex-direction: column;
        align-items: flex-start;
        list-style: none;
        padding: 0;
        gap: 12px;
        writing-mode: horizontal-tb; /* ← 縦書きを強制的に解除 */
    }

    .global-nav__list a {
        font-size: 1.2rem;
        text-decoration: none;
        color: #fff;
        display: block;
		text-align: left;
		z-index: 999;
    }
	.global-nav__list a span {
		font-size: .8rem;
	}
	/* オーバーレイ */
	.nav-overlay {
		position: fixed;
		inset: 0;
		background: rgba(0,0,0,.4);
		opacity: 0;
		pointer-events: none;
		transition: opacity .28s ease;
		margin-top: 100px;
	}
	.nav-overlay.is-open {
		opacity: 1;
		pointer-events: auto;
	}	
}

@media screen and (max-width: 600px) {
	.header-search {
		display: none;
	}
	.lang-switch {
		margin-right: 20px;
	}	
	.global-nav {
		width: min(100vw, 500px);
	}	
    .global-nav__list {
        gap: 0;
    }	
}

body.home .ct-whole,
body.page #sidebar {
	display: none;
}
/* トップに戻る：浮動ボタン */
.back-to-top {
    position: fixed;
    right: 16px;
    bottom: 16px;
    z-index: 1000;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: transparent; /* 画像のみ表示 */
    opacity: 0;
    visibility: hidden;
    transform: translateY(0);
    transition: opacity 0.25s ease, visibility 0.25s ease, transform 0.25s ease;
    /* フッター手前で持ち上げるオフセット（JSで更新） */
    transform: translateY(calc(var(--bt-offset, 0px) * -1));
}
.back-to-top img {
    display: block;
    width: 60px;
    height: 60px;
    transition: transform 0.2s ease, opacity 0.2s ease;
}
.back-to-top:hover img {
    transform: scale(1.06);
    opacity: 0.9;
}

/* 非表示設定 */
.ct-whole .hd-meta,
.second_row,
#comments_area,
.author_info {
    display: none;
}
.single-article:not(.has_profile):not(.as-home)::before,
.single-article:not(.has_profile):not(.as-home)::after {
    content: none;
}

/* 英語ページだけに適用 */
html[lang="en"] .en_none,
html[lang="en"] a.btn.primary,
html[lang="en"] h2.title span {
    display: none;
}
/* 表示状態 */
.back-to-top.is-visible {
    opacity: 1;
    visibility: visible;
}

/* 低速回線・ユーザー設定配慮 */
@media (prefers-reduced-motion: reduce) {
    .back-to-top,
    .back-to-top img {
        transition: none;
    }
}


