/* Fullscreen hero */
html, body {
	height: 100%;
}

body {
	margin: 0;
}

p {
	font-size: 1.2em;
}

.page-index .scroll-area {
	height: 100svh;
	overflow: auto;
	-webkit-overflow-scrolling: touch; /* for smooth scrolling on iOS */
}

.hero {
	position: relative;
	/* Fill viewport: use modern viewport units as fallback chain */
	height: 100vh;
	height: 100svh;
	height: 100dvh;
	width: 100vw;
	background: #0b0b0b; /* slider images will cover */
	color: #fff;
	z-index: 9999;
}

.vertical-title {
	position: absolute;
	left: 50%;
	top: 50%;
	transform: translate(-50%, -50%);
	writing-mode: vertical-rl;
	text-orientation: upright;
	letter-spacing: 0.2em;
    font-size: clamp(32px, 4vw, 48px);

	line-height: 1.1;
	text-shadow: 0 2px 12px rgba(0,0,0,0.5);
}

/* 固定言語切り替えボタン（メニューボタンの左） */
.fixed-language-switcher {
	position: fixed;
	top: 1.5rem;
	right: 7rem;
	z-index: 10001;
	transition: opacity 0.3s ease;
}

.fixed-lang-btn {
	background: rgba(46, 16, 49, 0.8) !important;
	border: 1px solid rgba(239, 192, 69, 0.3) !important;
	border-radius: 0.5rem !important;
	padding: 0.35rem 0.75rem 0 !important;
	cursor: pointer;
	transition: all 0.3s ease;
	backdrop-filter: blur(10px);
}

.fixed-lang-btn:hover {
	background: rgba(46, 16, 49, 0.95) !important;
	border-color: rgba(239, 192, 69, 0.5) !important;
	transform: scale(1.05);
}

.fixed-lang-btn small {
	line-height: 0.7rem;
}

/* 固定メニューボタン（常に右上） */
.menu-toggle-btn {
	position: fixed;
	top: 1.5rem;
	right: 1.5rem;
	z-index: 10001;
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 0.25rem;
	background: rgba(46, 16, 49, 0.8);
	border: 1px solid rgba(239, 192, 69, 0.3);
	border-radius: 0.5rem;
	padding: 0.75rem;
	cursor: pointer;
	transition: all 0.3s ease;
	backdrop-filter: blur(10px);
	min-width: 70px;
}

.menu-toggle-btn:hover {
	background: rgba(46, 16, 49, 0.95);
	border-color: rgba(239, 192, 69, 0.5);
	transform: scale(1.05);
}

.menu-icon {
	display: flex;
	flex-direction: column;
	gap: 4px;
	width: 24px;
}

.menu-icon-line {
	display: block;
	width: 100%;
	height: 2px;
	background: #fff;
	transition: all 0.3s ease;
}

.menu-toggle-btn.active .menu-icon-line:nth-child(1) {
	transform: rotate(45deg) translate(4.5px, 4.5px);
}

.menu-toggle-btn.active .menu-icon-line:nth-child(2) {
	opacity: 0;
}

.menu-toggle-btn.active .menu-icon-line:nth-child(3) {
	transform: rotate(-45deg) translate(4.5px, -4.5px);
}

.menu-text {
	color: #fff;
	font-size: 0.7rem;
	font-weight: 400;
	letter-spacing: 0.05em;
}

/* 全画面メニューオーバーレイ */
.menu-overlay {
	position: fixed;
	inset: 0;
	z-index: 10000;
	background: rgba(46, 16, 49, 0.98);
	backdrop-filter: blur(20px);
	display: flex;
	align-items: center;
	justify-content: center;
	opacity: 0;
	visibility: hidden;
	transition: opacity 0.4s ease, visibility 0.4s ease;
}

.menu-overlay.active {
	opacity: 1;
	visibility: visible;
}

.menu-overlay-content {
	width: 100%;
	max-width: 800px;
	padding: 2rem;
	position: relative;
}

.menu-header {
	display: flex;
	justify-content: space-between;
	align-items: center;
	margin-bottom: 3rem;
	padding-bottom: 1.5rem;
	border-bottom: 1px solid rgba(239, 192, 69, 0.3);
}

.menu-logo {
	text-decoration: none;
}

.menu-logo img {
	max-width: 280px;
}

.menu-language-switcher .btn {
	background: rgba(255, 255, 255, 0.1);
	border-color: rgba(255, 255, 255, 0.3);
	color: #fff;
}

.menu-language-switcher .btn:hover {
	background: rgba(255, 255, 255, 0.2);
	border-color: rgba(239, 192, 69, 0.5);
}

.menu-nav {
	max-height: calc(100vh - 250px);
	overflow-y: auto;
}

.menu-nav-list {
	list-style: none;
	padding: 0;
	margin: 0;
}

.menu-nav-item {
	margin-bottom: 1rem;
}

.menu-nav-link {
	display: block;
	color: #fff;
	text-decoration: none;
	font-size: 1.5rem;
	padding: 0.75rem 1rem;
	border-left: 3px solid transparent;
	transition: all 0.3s ease;
	font-family: "Shippori Mincho", serif;
}

.menu-nav-link:hover {
	color: #EFC045;
	border-left-color: #EFC045;
	background: rgba(239, 192, 69, 0.1);
	padding-left: 1.5rem;
}

.menu-subnav {
	list-style: none;
	padding: 0;
	margin: 0.5rem 0 0 2rem;
}

.menu-subnav-link {
	display: block;
	color: rgba(255, 255, 255, 0.8);
	text-decoration: none;
	font-size: 1.1rem;
	padding: 0.5rem 1rem;
	transition: all 0.3s ease;
	font-family: "Shippori Mincho", serif;
}

.menu-subnav-link:hover {
	color: #EFC045;
	padding-left: 1.5rem;
}

/* モバイル対応 */
@media (max-width: 768px) {
	.fixed-language-switcher {
		top: 4rem;
		right: 0.5rem;
	}
	
	/* スマホ版のみ下スクロール時に半透明化 */
	.fixed-language-switcher.scrolling-down {
		opacity: 0.3;
	}
	
	.menu-toggle-btn.scrolling-down {
		opacity: 0.3;
	}

	html[lang="en"] .fixed-language-switcher {
        top: 0.5rem;
        right: 4rem;
	}

	.fixed-lang-btn {
		padding: 0.2rem 0.2rem 0 !important;
		font-size: 0.65rem;
	}

	.fixed-lang-btn small {
		font-size: 0.55rem !important;
		line-height: 0.7em !important;
	}

	.fixed-lang-btn i {
		font-size: 0.8rem;
	}

	.menu-toggle-btn {
		top: 0.5rem;
		right: 0.5rem;
		padding: 0.4rem 0.2rem;
		min-width: 48px;
		gap: 0.1rem;
		/* transition は上で定義済み */
	}

	.menu-icon {
		width: 18px;
	}

	.menu-icon-line {
		height: 2px;
	}

	.menu-text {
		font-size: 0.6rem;
	}

	.menu-overlay-content {
		padding: 1rem;
	}

	.menu-header {
		flex-direction: column;
		gap: 1rem;
		margin-bottom: 2rem;
	}

	.menu-logo img {
		max-width: 200px;
	}

	.menu-nav-link {
		font-size: 1.2rem;
		padding: 0.6rem 0.8rem;
	}

	.menu-subnav {
		margin-left: 1rem;
	}

	.menu-subnav-link {
		font-size: 1rem;
		padding: 0.4rem 0.8rem;
	}

	.device-ios p.vertical rt {
		margin-left: -6px;
	}

	.device-android p.vertical rt {
		margin-left: 0;
	}
}

#mainNavbar {
	background-color: rgba(46, 16, 49, 0.8);
	z-index: 10000;
}

#mainNavbar::after {
	content: '';
	position: absolute;
	bottom: 0;
	left: 0;
	right: 0;
	height: 3px;
	background: linear-gradient(to right, #EFC045, #FAEBB1);
}

#navbarSupportedContent {
	transition-duration: .4s;
	background-color: transparent;
	margin-right: calc(-.5 * var(--bs-gutter-x));
    margin-left: calc(-.5 * var(--bs-gutter-x));
}

/* デフォルトで大きめの文字サイズを適用 */
.lyric p {
  font-size: 1.2em;
}

/* 最初のlyricは文字数が多いため、元のサイズに戻す */
.lyric-container:first-of-type .lyric p {
  font-size: 1em !important;
}

/* Optional: navbar subtle transition once it becomes sticky */
.navbar.sticky-top {
	transition: box-shadow 200ms ease, background-color 200ms ease;
}

.navbar-brand, .nav-link, .navbar-toggler-icon, .navbar-toggler-text {
	/* color: #2E1031; */
	color: #fff !important;
}

.navbar.sticky-top.is-stuck {
	box-shadow: 0 6px 16px rgba(0,0,0,0.25);
}

.navbar-toggler-icon {
	height: 1em;
}

.navbar-toggler-text {
	font-size: 0.65rem;
}

.navbar-nav {
	display: flex;
	flex-direction: row;
	align-items: center;
	gap: 0; /* remove default gap */
}

.nav-item + .nav-item::before {
	content: '｜';
	display: inline-block;
	margin: 0 0.5em;
	color: #aaa;
}

/* Remove top border for the first nav item (mobile collapsed menu) */
.navbar-collapse .nav-item:first-child {
	border-top: none;
}

/* Dropdown menu styles for desktop */
@media (min-width: 1200px) {
	.navbar-nav .dropdown-menu {
		background-color: rgba(46, 16, 49, 0.95);
		border: 1px solid rgba(239, 192, 69, 0.3);
		margin-top: 0;
	}

	.navbar-nav .dropdown-item {
		color: #fff;
		padding: 0.5rem 1.5rem;
		transition: background-color 0.2s;
	}

	.navbar-nav .dropdown-item:hover,
	.navbar-nav .dropdown-item:focus {
		background-color: rgba(239, 192, 69, 0.2);
		color: #fff;
	}

	/* Show dropdown on hover */
	.navbar-nav .dropdown:hover .dropdown-menu {
		display: block;
	}

	/* Remove dropdown arrow spacing on desktop */
	.navbar-nav .dropdown-toggle::after {
		margin-left: 0.3em;
	}
}

.nav-link {
	display: inline-block;
}

@media (max-width: 1199.98px) {
	/* .navbar { height: 64px; } */
	.navbar.sticky-top.is-stuck {
		background-color: rgba(255,255,255,1) !important;
	}
	.navibar > .container-fluid {
		background-color: #fff !important;
	}

	.navbar-collapse .nav-item {
		width: 100%;
		text-align: center;
		padding: 12px 0 0;
		border-top: 1px dashed rgba(100, 100, 100, .5);
		margin-top: 12px;
	}

	.navbar-collapse .nav-item:last-child {
		border-bottom: 1px dashed rgba(100, 100, 100, .5);
		padding-bottom: 12px;
		margin-bottom: 12px;
	}

	/* Mobile dropdown styles */
	.navbar-collapse .dropdown-menu {
		background-color: rgba(46, 16, 49, 0.5);
		border: none;
		text-align: center;
		padding: 0;
		margin: 0;
	}

	.navbar-collapse .dropdown-item {
		color: #fff;
		padding: 8px 0;
		border-top: 1px dashed rgba(150, 150, 150, .3);
	}

	.navbar-collapse .dropdown-item:first-child {
		margin-top: 8px;
	}

	.navbar-collapse .dropdown-toggle::after {
		vertical-align: middle;
	}

	.navbar-nav {
		height: 100vh;
		flex-direction: column;
		align-items: stretch;
		gap: initial;
	}

	.nav-item + .nav-item::before {
		content: none;
		margin: 0;
	}

}


/* (reverted) nav-hidden removed; using transform-based reveal in JS */

/* Demo content spacing below navbar when sticky */
main {
	display: block;
}

/* Smooth scroll behavior */
.scroll-area { scroll-behavior: smooth; }

p, ul li, ol li {
  font-family: "Shippori Mincho", serif;
  font-weight: 400;
  font-style: normal;
}

.access-info ul li, ol li {
	margin-bottom: 1.25em;
}

.access-info h4, .access-info h5 {
	border-bottom: 1px solid #ccc;
	padding-bottom: 0.5em;
}


/* Slick hero slider */
.section {
	/* Each section covers at least one viewport height */
	min-height: 100vh;
	min-height: 100svh;
	min-height: 100dvh;
}

.hero .hero-slider {
	position: absolute;
	inset: 0;
	width: 100vw;
	height: 100%;
	z-index: 0;
}

.hero .hero-slider .slide,
.hero .hero-slider .slide img { height: 100%; }

.hero .hero-slider .slide img {
	width: 100vw;
	object-fit: cover;
	object-position: center;
	display: block;
}

/* Ensure slick containers inherit full height */
.hero .slick-list,
.hero .slick-track { height: 100%; }

/* Yuji Syuku font helper (matches class in index.html) */
.yuji-syuku-regular {
	font-family: 'Yuji Syuku', serif;
}

/* Centered wrapper that contains side text and title */
.hero-title-group {
	position: absolute;
	top: 50%;
	left: 50%;
	transform: translate(-50%, -50%);
	display: flex;
	align-items: center;
	gap: 0;
	z-index: 2; /* above overlay */
}

.hero-side-text {
	color: #fff;
	writing-mode: vertical-rl;
	text-orientation: mixed;
	letter-spacing: 0.08em;
	line-height: 1.8;
	font-size: 1.2em;
	text-shadow: 0 2px 8px rgba(0,0,0,0.8);
    letter-spacing: 0.3em;
}

@media (max-width: 768px) {
	.hero-side-text {
		line-height: 1.4;
	}
	.device-ios .hero-side-text rt {
		margin-left: -6px;
	}

	.device-android .hero-side-text rt {
		margin-left: 0;
	}
}

/* Keep the big title styling after layout change */

/* Keep vertical title above slider */
.hero .vertical-title {
	z-index: 2;
	position: static; /* inside group */
	transform: none;
}

/* Optional: dark overlay for readability */
.hero::after {
	content: "";
	position: absolute;
	inset: 0;
	background: linear-gradient(rgba(0,0,0,0.35), rgba(0,0,0,0.35));
	z-index: 1;
	pointer-events: none;
}

/* Slick arrows & dots adjustments */
.slick-prev:before, .slick-next:before {
	color: #fff;
}

.hero .slick-dots {
	bottom: max(12px, env(safe-area-inset-bottom));
}

.yuji-syuku-regular {
  font-family: "Yuji Syuku", serif;
  font-weight: 400;
  font-style: normal;
}

.shippori-mincho-regular {
  font-family: "Shippori Mincho", serif;
  font-weight: 400;
  font-style: normal;
}

/* Force-hide slick arrows on all viewports */
.hero .slick-arrow,
.hero .slick-prev,
.hero .slick-next {
	display: none !important;
}

.hero .slick-prev:before,
.hero .slick-next:before {
	content: '' !important;
}

/* Section heading wrapper: full width, vertical padding, cover background */
.section-head {
	min-height: 480px;
	padding: 2em 0;
	background-size: cover;
	background-position: top;
	background-repeat: no-repeat;
	display: flex;
	justify-content: center; /* center horizontally */
	width: 100vw; /* ビューポート幅いっぱい */
	margin-left: calc(-50vw + 50%); /* コンテナからはみ出す */
}
r
@media (max-width: 576px) {
	.section-head {
		min-height: 320px;
	}
}

.section-head .vertical-heading {
	color: #fff;
	text-shadow: black 0px 0px 15px
}

.section-head.bg-white .vertical-heading {
	color: #2E1031;
	text-shadow: none;
}

/* Section headings as vertical, centered horizontally */
.vertical-heading {
	writing-mode: vertical-rl;
	text-orientation: upright;
	margin: auto;
	letter-spacing: 0.4em;
    line-height: 2em;
}

.section-content {
	padding: 10em 0;
}

footer {
	min-height: 380px;
}
a.scroll-button {
	position: absolute;
	bottom: 90px;
	left: 50%; /* Center horizontally */
	right: auto; /* Reset right */
	transform: translate(-50%, -50%); /* Adjust for perfect centering */
	z-index: 2;
	display: inline-block;
	color: #fff;
	font : normal 400 20px/1 'Josefin Sans', sans-serif;
	letter-spacing: .1em;
	text-decoration: none;
	transition: opacity .3s;
}
a.scroll-button:hover {
	opacity: .5;
}

a.scroll-button span {
	position: absolute;
	top: 0;
	left: 50%;
	width: 46px;
	height: 46px;
	margin-left: -23px;
	border: 1px solid #fff;
	border-radius: 100%;
	box-sizing: border-box;
}
a.scroll-button span::after {
	position: absolute;
	top: 50%;
	left: 50%;
	content: '';
	width: 16px;
	height: 16px;
	margin: -12px 0 0 -8px;
	border-left: 1px solid #fff;
	border-bottom: 1px solid #fff;
	-webkit-transform: rotate(-45deg);
	transform: rotate(-45deg);
	box-sizing: border-box;
}
a.scroll-button span::before {
	position: absolute;
	top: 0;
	left: 0;
	z-index: -1;
	content: '';
	width: 44px;
	height: 44px;
	box-shadow: 0 0 0 0 rgba(255,255,255,.1);
	border-radius: 100%;
	opacity: 0;
	-webkit-animation: sdb03 3s infinite;
	animation: sdb03 3s infinite;
	box-sizing: border-box;
}
@-webkit-keyframes sdb03 {
  0% {
    opacity: 0;
  }
  30% {
    opacity: 1;
  }
  60% {
    box-shadow: 0 0 0 60px rgba(255,255,255,.1);
    opacity: 0;
  }
  100% {
    opacity: 0;
  }
}
@keyframes sdb03 {
  0% {
    opacity: 0;
  }
  30% {
    opacity: 1;
  }
  60% {
    box-shadow: 0 0 0 60px rgba(255,255,255,.1);
    opacity: 0;
  }
  100% {
    opacity: 0;
  }
}

.vertical {
	writing-mode: vertical-rl;
	text-orientation: mixed;
}

p.vertical {
	line-height: 2.3rem;
	letter-spacing: 4px;
	font-size: 1.2em;
	text-shadow: 0 2px 8px #fff;
}

#teachings-slider-container p.vertical {
	line-height: 1.5rem;
}

/* Lyric logo overlay */
.lyric-logo-overlay {
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	background-image: url('img/logo.svg');
	background-size: contain;
	background-repeat: no-repeat;
	background-position: center;
	background-blend-mode: overlay;
	/* background-color: rgba(255, 255, 255, 0.95); */
	opacity: 0;
	pointer-events: none;
	z-index: 10;
	transition: opacity 2s ease-in-out;
}

.lyric-logo-overlay.show {
	opacity: 1;
}

.lyric-container {
	padding-top: 6rem;
	padding-bottom: 3rem;
}

.lyric {
	display: flex;
	flex-direction: column;
	align-items: center; /* ← 子要素（p）を左右中央に */
}

@media (max-width: 1200px) {
	.lyric {
		background-position: 0 0;
	}
}

.lyric p {
	color: #2E1031;
	letter-spacing: 0.08em;
	font-size: 1.2rem;
	line-height: 2.4em;
    letter-spacing: 0.2em;
	margin: auto 2em;
	visibility: hidden;
}


@media (max-width: 576px) {
	.lyric p {
		font-size: 1rem; /* smaller size for mobile */
		line-height: 1.5em;
		margin: auto 1.5em;
	}
}

.full-width {
	width: 100vw; /* ビューポート幅いっぱい */
	margin-left: calc(-50vw + 50%); /* コンテナからはみ出す */
}

.bg-theme {
	background: linear-gradient(135deg, 
		#2E1031 0%, 
		#3a1a3e 25%, 
		#2E1031 50%, 
		#1f0a22 75%, 
		#2E1031 100%);
	background-size: 300% 300%;
	animation: gradientShift 15s ease-in-out infinite;
}

/* ゆるやかなグラデーションアニメーション */
@keyframes gradientShift {
	0%, 100% {
		background-position: 0% 50%;
	}
	50% {
		background-position: 100% 50%;
	}
}

h1, h2, h3, h4, h5, h6 {
	color: #2E1031;
}

.bg-theme p {
	color: #fff;
}

/* Line-by-line fade-in for lyrics */
@keyframes fadeInLine {
	from { opacity: 0; transform: translateY(8px); }
	to { opacity: 1; transform: translateY(0); }
}

.lyric-line {
	opacity: 0;
	display: inline-block;
	transform: translateY(8px);
	will-change: opacity, transform;
	/* text-shadow: 0 2px 12px rgba(0,0,0,0.5); */
}

.lyric.play p {
	visibility: visible;
}

.lyric.play .lyric-line {
	animation: fadeInLine 2200ms ease forwards;
}

.back-to-top {
  position: fixed;
  right: 40px;
  bottom: 20px;
  font-size: 2.5rem;
  cursor: pointer;
  z-index: 1000;
  display: inline-block;
  color: gray;
  opacity: 0.5;
  transition: opacity 0.3s;
  line-height: 7px;
  text-decoration: none;
  text-align: center;
}

.back-to-top:hover {
  opacity: 1.0;
  text-decoration: none;
  color: gray;
}

@media (max-width: 576px) {
	.back-to-top {
		right: 15px;
		bottom: 10px;
		font-size: 2rem;
	}
}

.bg-mioyagami-oshie {
	background-image: url('img/bg_oshie3.webp');
	background-size: cover;
	background-position: center;
	background-attachment: fixed;
}

#teachings-slider-container {
	background: url(img/misugata.webp) no-repeat left;
    background-position-y: top;
    background-blend-mode: screen;
    background-size: cover;
    background-position-x: center;
	min-height: 570px;
}

/* テキストを隠す既定を打ち消す */
.teachings-slider .slick-prev,
.teachings-slider .slick-next {
	font-size: 1rem;         /* ← 0 にされているのを戻す */
	line-height: 1.2;        /* ← 0 を戻す */
	color: inherit !important;  /* ← transparent を戻す */
	width: auto; height: auto;  /* 固定サイズを外すとレイアウトしやすい */
	background: transparent;
	writing-mode: vertical-rl;
 	text-orientation: upright;
	/* background: url('img/board.png') no-repeat center/cover; */
	background-color: gold;
	padding: 40px 10px;
	border-radius: 5px;
	letter-spacing: 8px;
}

.teachings-slider.slick-dotted.slick-slider {
    min-height: 500px;
}

/* 矢印アイコンの疑似要素を無効化 */
.teachings-slider .slick-prev::before,
.teachings-slider .slick-next::before {
	content: none !important;
}

.teachings-slider .slick-disabled { opacity: .35; pointer-events: none; }

.teachings-slider .slick-dots {
  display: flex;
  justify-content: center;      /* 中央揃えなど調整 */
}

.slick-dots li button {
	font-size: 12px;
	color: #2E1031;
	padding: 2px;
	border-radius: 4px;
}
.slick-dots li button:before {
	top: -20px;
}

.slick-dots li button[aria-selected="true"] {
	background-color: #2E1031;
	color: #fff;
	font-weight: bold;
}

/* books-grid: hover zoom icon at bottom-right */
.books-grid a {
	position: relative;
	display: block;
}

/* 書籍・CD画像を上下中央に配置（行の中で各カラムの内容を中央寄せ） */
.books-grid > [class^="col-"],
.books-grid > [class*=" col-"] {
	display: flex;
	flex-direction: column; /* 子要素（画像、タイトル、リンク）を縦積み */
	align-items: center;     /* 縦軸の中央揃え（左右中央） */
	justify-content: center; /* 行の高さ内で上下中央 */
	text-align: center;      /* テキスト中央 */
}

/* 書籍タイトルの体裁 */
.books-grid .book-title {
	margin-top: .5rem;
	font-size: .95rem;
	line-height: 1.4;
	color: #000;
}

.books-grid a.book-img::after {
	content: "\f00e"; /* Font Awesome magnifying-glass */
	font-family: "Font Awesome 6 Free";
	font-weight: 900;
	position: absolute;
	top: 50%;
	left: 50%;
	width: 48px;
	height: 48px;
	border-radius: 50%;
	background: rgba(0,0,0,0.55);
	color: #fff;
	display: grid;
	place-items: center;
	font-size: 24px;
	line-height: 1;
	opacity: 0;
	transform: translate(-50%, -50%) scale(0.9);
	transition: opacity .2s ease, transform .2s ease;
	pointer-events: none; /* keep clicks for the anchor */
}

.books-grid a.book-img:hover::after,
.books-grid a.book-img:focus-visible::after {
	opacity: 1;
	transform: translate(-50%, -50%) scale(1);
}

.f-caption {
	margin-top: .25rem;
	font-size: 1.25rem;
	text-align: center;
}

.f-caption a {
	color: khaki;
}

.f-caption a:hover {
	color: rgba(240, 230, 140, 0.7);
}

.bg-white p,
.bg-light p {
	color: #000;
}

.py-10 {
	padding-top: 10rem !important;
	padding-bottom: 10rem !important;
}

#logo-title-yoko,
#menu-logo-title-yoko {
	width: 240px;
	margin-top: 5px;
}

#logo-title-tate {
	max-height: 420px;
	width: 4em;
	display: block;
	margin: auto;
}

@media (max-width: 576px) {
	#navbarSupportedContent {
		background-color: rgba(46, 16, 49, 1);
		position: relative;
		top: 10px;
	}

	.navbar-brand {
		padding-top:0;
	}

	#logo-title-tate {
		max-height: 280px;
		width: 3em;
	}

	#logo-title-yoko,
	#menu-logo-title-yoko {
		width: 180px;
		margin-top: 0px;
	}

	#hs-logo {
		font-size: 0.6rem;
	}

	.bg-mioyagami-oshie {
		background-attachment: scroll;
	}
}

/* iPad (portrait and landscape) */
@media (min-width: 577px) and (max-width: 1024px) {
	#navbarSupportedContent {
		background-color: rgba(46, 16, 49, 1);
		position: relative;
		top: 10px;
	}

	.navbar-brand {
		padding-top:0;
	}

	#logo-title-tate {
		max-height: 360px;
		width: 3.5em;
	}

	#logo-title-yoko,
	#menu-logo-title-yoko {
		width: 200px;
		margin-top: 1px;
	}

	#hs-logo {
		font-size: 0.70rem;
	}

	.bg-mioyagami-oshie {
		background-attachment: scroll;
	}
}

@media (min-width: 1025px) and (max-width: 1200px) {
	#navbarSupportedContent {
		background-color: rgba(46, 16, 49, 1);
		position: relative;
		top: 10px;
	}


	.navbar-brand {
		padding-top:0;
	}

	#logo-title-tate {
		max-height: 400px;
		width: 3.8em;
	}

	#logo-title-yoko,
	#menu-logo-title-yoko {
		width: 220px;
		margin-top: 0px;
	}

	#hs-logo {
		font-size: 0.75rem;
	}
}

#heroLanguageDropdown::after,
#languageDropdown::after {
	margin-left: auto !important;
}

html[lang="en"] .hero-title-group {
	top: unset;
	left: unset;
	transform: none;
	margin-left: 1em;
}

html[lang="en"] #teachings-slider-container p.vertical {
	margin-left: 1.5em;
	margin-right: 1.5em;
	line-height: 1.8em;
}

html[lang="en"] .teachings-slider .slick-prev,
html[lang="en"] .teachings-slider .slick-next {
  font-size: 12px;
  letter-spacing: 0;
}

html[lang="en"] .bg-mioyagami-oshie .vertical-heading {
	float: inline-start;
}

/* 日本語時は縦書き */
html[lang="ja"] .vertical {
  writing-mode: vertical-rl;
  text-orientation: upright;
}

html[lang="ja"] .vertical .dash,
html[lang="ja"] .vertical-heading .dash  {
  display: inline-block;
  transform: rotate(90deg);
  writing-mode: horizontal-tb;
  text-orientation: mixed;
  padding: 10px 0;
}

html[lang="en"] .section {
	/* Each section covers at least one viewport height */
	min-height: initial;
	min-height: initial;
	min-height: initial;
}


/* 英語時は横書き */
html[lang="en"] .vertical {
  writing-mode: horizontal-tb;
  text-orientation: mixed;
  font-size: 16px;
  line-height: 1.5;
  letter-spacing: normal;
}

/* 英語時の縦書き見出しも横書きに */
html[lang="en"] .vertical-heading {
  writing-mode: horizontal-tb;
  transform: none; /* 中央寄せも調整 */
  margin: 1rem auto;
  letter-spacing: normal;
  line-height: 1.4;
  align-self: center;
}

/* 言語別フォント */
html[lang="ja"] body {
  font-family: 'Shippori Mincho', serif;
}

html[lang="en"] body {
  font-family: 'Georgia', serif;
}

html[lang="en"] .navbar-nav .nav-item .nav-link {
	font-size: 13px;
}

/* 御由緒セクション: 英語表示時は左から右へ順序変更 */
@media (min-width: 576px) {
	/* スマホサイズでは元の順序のまま */
	html[lang="en"] #goyuisyo .order-sm-1 { order: 2 !important; }
	html[lang="en"] #goyuisyo .order-sm-2 { order: 1 !important; }
	html[lang="en"] #goyuisyo .order-sm-3 { order: 4 !important; }
	html[lang="en"] #goyuisyo .order-sm-4 { order: 3 !important; }
}

@media (min-width: 1200px) {
	/* PC表示時: 英語では左から右の順序に変更 */
	html[lang="en"] #goyuisyo .order-xl-1 { order: 2 !important; }
	html[lang="en"] #goyuisyo .order-xl-2 { order: 1 !important; }
	html[lang="en"] #goyuisyo .order-xl-3 { order: 4 !important; }
	html[lang="en"] #goyuisyo .order-xl-4 { order: 3 !important; }
}

/* 印刷時の設定 */
@media print {
	/* メニューボタンと言語切り替えボタンを非表示 */
	.menu-toggle-btn,
	.fixed-language-switcher {
		display: none !important;
	}
	
	/* その他の印刷時の最適化 */
	.back-to-top {
		display: none !important;
	}
	
	.menu-overlay {
		display: none !important;
	}
}
