/*
Theme Name: オリジナルテーマ
*/

html {
	font-size: 62.5%;
	scroll-behavior: smooth; /* スムーススクロール */
	overflow-y: scroll;
	scroll-padding-top: 80px; /* ヘッダー固定でのアンカーリンク調整 */
}
html,
body,
.entry-body {
	font-family: "Hiragino Sans W3", "Hiragino Kaku Gothic ProN", "ヒラギノ角ゴ ProN W3", "メイリオ", Meiryo, "ＭＳ Ｐゴシック", "MS PGothic", 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 {
    position: sticky;
    top: 0;
    z-index: 1000;
    background: #0D0F32;
    color: #fff;
}
.site-header__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    max-width: 1200px;
    margin: 0 auto;
    padding: 12px 16px;
}
.site-logo a {
    color: #fff;
    text-decoration: none;
    font-weight: 700;
}

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

/* 3本線を絶対中央に配置 */
.hamburger__bar {
    position: absolute;
    left: 50%;
    top: 50%;
    width: 48px;
    height: 2px;
    background: #fff;
    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; }
}

/* ナビ（モバイル：オフキャンバス） */
.global-nav {
    position: fixed;
    inset: 0 0 0 auto; /* 右側からスライド */
    width: min(92vw, 500px);
    background: #101638;
    translate: 100% 0;
    transition: translate .28s ease;
    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,
.global-nav__list > li > a:focus {
    background: #1926A1;
    outline: none;
}

/* オーバーレイ */
.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;
}

/* デスクトップ（1024px以上で横並び） */
@media (min-width: 1024px) {
    .hamburger {
		display: none;
	}
    .global-nav {
        position: static;
        translate: 0 0 !important;
        width: auto;
        background: transparent;
        padding: 0;
        overflow: visible;
    }
    .global-nav__list {
        display: flex;
        gap: 20px;
    }
    .global-nav__list > li > a {
        padding: 8px 4px;
        border-radius: 6px;
    }
    .nav-overlay { display: none !important; }
}

/* スクロールロック（メニュー表示中にbodyへ付与） */
.body-lock {
    overflow: hidden;
    touch-action: none;
}

main.site-main {
	padding: 0 20px;
}
/* トップに戻る：浮動ボタン */
.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;
}

/* 表示状態 */
.back-to-top.is-visible {
    opacity: 1;
    visibility: visible;
}

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


