/* 2026年11月の世界の行事(死者の日・ディワリ・感謝祭)限定。常時読み込むため、すべて html.oce-world-on の下に書く。 */
html.oce-world-on .oce-world-mark {
	position: absolute;
	z-index: 3;
	top: 50%;
	right: 0;
	display: grid;
	place-items: center;
	width: 64px;
	height: 64px;
	padding: 0;
	border: 0;
	border-radius: 12px;
	background: transparent;
	overflow: visible;
	cursor: pointer;
	transform: translateY(-50%);
}
html.oce-world-on .oce-world-mark:hover,
html.oce-world-on .oce-world-mark:focus-visible { background: rgba(237,20,85,.12); }
html.oce-world-on .oce-world-mark:focus-visible,
html.oce-world-on .oce-world-close:focus-visible,
html.oce-world-on .oce-world-start:focus-visible,
html.oce-world-on .oce-world-retry:focus-visible,
html.oce-world-on .oce-world-option:focus-visible { outline: 3px solid #1d4c79; outline-offset: 1px; }
html.oce-world-on .oce-world-icon {
	display: block;
	width: 64px;
	height: 64px;
	background-repeat: no-repeat;
	background-position: center;
	background-size: contain;
	transform-origin: 50% 80%;
}
html.oce-world-on .oce-world-mark.is-calavera .oce-world-icon { background-image: url('../images/oce-world-calavera.png'); }
html.oce-world-on .oce-world-mark.is-marigold .oce-world-icon { background-image: url('../images/oce-world-marigold.png'); }
html.oce-world-on .oce-world-mark.is-diya .oce-world-icon { background-image: url('../images/oce-world-diya.png'); }
html.oce-world-on .oce-world-mark.is-turkey .oce-world-icon { background-image: url('../images/oce-world-turkey.png'); }
html.oce-world-on .oce-world-mark.is-leaf .oce-world-icon { background-image: url('../images/oce-world-leaf.png'); }
html.oce-world-on .oce-world-mark.is-papel-picado .oce-world-icon { background-image: url('../images/oce-world-papel-picado.png'); }
html.oce-world-on .oce-world-mark.is-pan-de-muerto .oce-world-icon { background-image: url('../images/oce-world-pan-de-muerto.png'); }
html.oce-world-on .oce-world-mark.is-candle .oce-world-icon { background-image: url('../images/oce-world-candle.png'); }
html.oce-world-on .oce-world-mark.is-rangoli .oce-world-icon { background-image: url('../images/oce-world-rangoli.png'); }
html.oce-world-on .oce-world-mark.is-lantern .oce-world-icon { background-image: url('../images/oce-world-lantern.png'); }
html.oce-world-on .oce-world-mark.is-laterne .oce-world-icon { background-image: url('../images/oce-world-laterne.png'); }
html.oce-world-on .oce-world-mark.is-goose .oce-world-icon { background-image: url('../images/oce-world-goose.png'); }
html.oce-world-on .oce-world-mark.is-bonfire .oce-world-icon { background-image: url('../images/oce-world-bonfire.png'); }
html.oce-world-on .oce-world-mark.is-cloak .oce-world-icon { background-image: url('../images/oce-world-cloak.png'); }
html.oce-world-on .oce-world-mark.is-horse .oce-world-icon { background-image: url('../images/oce-world-horse.png'); }
html.oce-world-on .oce-world-mark.is-ladoo .oce-world-icon { background-image: url('../images/oce-world-ladoo.png'); }
html.oce-world-on .oce-world-mark.is-sparkler .oce-world-icon { background-image: url('../images/oce-world-sparkler.png'); }
html.oce-world-on .oce-world-mark.is-pumpkin-pie .oce-world-icon { background-image: url('../images/oce-world-pumpkin-pie.png'); }
html.oce-world-on .oce-world-mark.is-cornucopia .oce-world-icon { background-image: url('../images/oce-world-cornucopia.png'); }
html.oce-world-on .oce-world-mark.is-corn .oce-world-icon { background-image: url('../images/oce-world-corn.png'); }
/* stg で日付を指定して確認するときだけ付く。10月のハロウィンのキャラが同じ位置に重なるのを避ける。 */
html.oce-world-preview .oce-halloween-mark { display: none !important; }
html.oce-world-on .oce-world-logo {
	top: -11px;
	right: auto;
	left: -56px;
	width: 44px;
	height: 44px;
	transform: none;
}
html.oce-world-on .oce-world-logo .oce-world-icon { width: 40px; height: 40px; }
html.oce-world-on .oce-world-gallery { top: 25%; right: 0; width: 56px; height: 56px; }
html.oce-world-on .oce-world-gallery .oce-world-icon { width: 56px; height: 56px; }
html.oce-world-on .oce-world-school { right: 0; width: 64px; height: 64px; }
html.oce-world-on .oce-world-voice { right: auto; left: 0; width: 64px; height: 64px; }
html.oce-world-on .oce-world-voice .oce-world-icon { width: 60px; height: 60px; }
html.oce-world-on .oce-world-section,
html.oce-world-on .oce-world-campus { right: 0; }
/* 講師ページの校舎見出しは中央寄せの inline-block。右の余白にマークを収め、校名と重ねない。 */
html.oce-world-on .lecturerList h3.oce-world-campus-host[class^="lecturer-title-"] { padding-right: 76px; }
html.oce-world-on #shibuyaCampus,
html.oce-world-on #ginzaCampus { scroll-margin-top: 88px; }
@media (min-width: 769px) {
	html.oce-world-on .oce-world-logo { top: -2px; left: 338px; }
	html.oce-world-on .oce-world-voice { left: max(0px, calc(50% - 390px)); }
}
@media (max-width: 360px) {
	html.oce-world-on #lessonFee .sectionTitle > h3:last-of-type .oce-world-mark,
	html.oce-world-on #lessonFee .sectionTitle > h3:last-of-type .oce-world-mark .oce-world-icon { width: 50px; height: 50px; }
}
/* 「レベルに応じて選べるコース」は 345px 未満で右端のマークに届くため、右に余白を取って文字をよける。 */
@media (max-width: 359px) {
	/* 320px ではロゴの左が 60px しかないため、画面端に寄りすぎないようロゴとの間を少し詰める。 */
	html.oce-world-on .oce-world-logo { left: -52px; }
	html.oce-world-on #courseLevel > .sectionTitle > h3 { box-sizing: border-box; padding-right: 64px; }
}

/* 画面に入った直後の1回きりの小さな跳ね。 */
html.oce-world-on .oce-world-mark.is-cue .oce-world-icon { animation: oce-world-bounce .7s ease-out 1; }
@keyframes oce-world-bounce {
	0%, 100% { transform: translateY(0); }
	35% { transform: translateY(-7px); }
	65% { transform: translateY(0); }
	82% { transform: translateY(-2px); }
}

/* ふだんの小さな浮き。ハロウィンと同じ形を3秒周期で、期間中ずっと繰り返す。
   マークは transform で縦位置を合わせ、アイコンは跳ね・行事の動きで transform を使うため、個別プロパティの translate / rotate で付ける。 */
html.oce-world-on .oce-world-mark { animation: oce-world-float 3s ease-in-out infinite; }
html.oce-world-on .oce-world-logo { animation: oce-world-rock 3s ease-in-out infinite; transform-origin: 50% 80%; }
@keyframes oce-world-float {
	0%, 4%, 22%, 100% { translate: 0 0; }
	13% { translate: 0 -4px; }
}
@keyframes oce-world-rock {
	0%, 4%, 22%, 100% { rotate: 0deg; }
	13% { rotate: -6deg; }
}

/* 行事ごとのときどきの動き。 */
html.oce-world-on .oce-world-petal {
	position: absolute;
	top: 30%;
	left: 50%;
	width: 8px;
	height: 11px;
	border-radius: 60% 0 60% 40%;
	background: #f28c28;
	opacity: 0;
	pointer-events: none;
	animation: oce-world-petal-fall 1.9s ease-in 1 forwards;
}
@keyframes oce-world-petal-fall {
	0% { opacity: 0; transform: translate(0, 0) rotate(0); }
	12% { opacity: 1; }
	55% { transform: translate(-6px, 30px) rotate(90deg); }
	100% { opacity: 0; transform: translate(6px, 62px) rotate(170deg); }
}
html.oce-world-on .oce-world-mark.oce-world-ev-diwali.is-motion .oce-world-icon,
html.oce-world-on .oce-world-mark.oce-world-ev-martin.is-motion .oce-world-icon { animation: oce-world-flicker 1.5s ease-in-out 1; }
/* 光の演出は炎・明かりのある絵(ディヤ・ランタン)だけ。それ以外は明るさと大きさの脈動のみ。 */
html.oce-world-on .oce-world-mark.is-diya.is-motion::after,
html.oce-world-on .oce-world-mark.is-lantern.is-motion::after,
html.oce-world-on .oce-world-mark.is-laterne.is-motion::after {
	content: '';
	position: absolute;
	top: 6%;
	left: 50%;
	width: 30px;
	height: 30px;
	margin-left: -15px;
	border-radius: 50%;
	background: radial-gradient(circle, rgba(255, 190, 80, .8) 0%, rgba(255, 190, 80, 0) 70%);
	opacity: 0;
	pointer-events: none;
	animation: oce-world-glow 1.5s ease-in-out 1;
}
/* ランタンは上端が吊り下げ金具なので、明かりの本体の中心に合わせて下げる。 */
html.oce-world-on .oce-world-mark.is-lantern.is-motion::after { top: 28%; }
/* 聖マルティン祭のランタンは棒の先に下げた丸い提灯なので、光は提灯の本体の中央に置く。 */
html.oce-world-on .oce-world-mark.is-laterne.is-motion::after { top: 40%; }
@keyframes oce-world-flicker {
	0%, 100% { filter: brightness(1); transform: scale(1); }
	20% { filter: brightness(1.25); transform: scale(1.05); }
	40% { filter: brightness(.95); transform: scale(.98); }
	65% { filter: brightness(1.2); transform: scale(1.04); }
}
@keyframes oce-world-glow {
	0%, 100% { opacity: 0; }
	25%, 65% { opacity: 1; }
}
html.oce-world-on .oce-world-drift {
	position: absolute;
	top: 20%;
	left: 50%;
	width: 16px;
	height: 16px;
	background: url('../images/oce-world-leaf.png') center / contain no-repeat;
	opacity: 0;
	pointer-events: none;
	animation: oce-world-leaf-drift 2.3s ease-in-out 1 forwards;
}
@keyframes oce-world-leaf-drift {
	0% { opacity: 0; transform: translate(0, 0) rotate(0); }
	12% { opacity: 1; }
	30% { transform: translate(-9px, 14px) rotate(-35deg); }
	55% { transform: translate(8px, 30px) rotate(30deg); }
	80% { opacity: 1; transform: translate(-6px, 48px) rotate(-20deg); }
	100% { opacity: 0; transform: translate(4px, 60px) rotate(15deg); }
}

html.oce-world-on .oce-world-overlay {
	position: fixed;
	inset: 0;
	z-index: 10020;
	display: flex;
	align-items: flex-end;
	justify-content: center;
	background: rgba(23, 37, 74, .48);
	overscroll-behavior: contain;
}

html.oce-world-on .oce-world-sheet {
	box-sizing: border-box;
	width: min(100%, 480px);
	max-height: 90vh;
	overflow: auto;
	padding: 20px 20px calc(22px + env(safe-area-inset-bottom));
	border-top: 5px solid #ed1455;
	border-radius: 16px 16px 0 0;
	background: #fff;
	color: #17254a;
	box-shadow: 0 -8px 32px rgba(0, 0, 0, .15);
}

html.oce-world-on .oce-world-close {
	float: right;
	width: 44px;
	height: 44px;
	border: 0;
	background: transparent;
	font-size: 27px;
	cursor: pointer;
}

html.oce-world-on .oce-world-head {
	display: flex;
	align-items: center;
	gap: 10px;
	margin: 4px 48px 12px 0;
}
html.oce-world-on .oce-world-flag {
	flex: none;
	width: 32px;
	height: 24px;
	border: 1px solid #e0e3ef;
}
html.oce-world-on .oce-world-sheet h2 {
	margin: 0;
	font-size: 22px;
	line-height: 1.3;
	color: #ed1455;
}
html.oce-world-on .oce-world-original {
	display: block;
	font-size: 14px;
	font-weight: 400;
	color: #4a5575;
}
html.oce-world-on .oce-world-country {
	margin: 0 0 8px;
	font-size: 14px;
	font-weight: 700;
	color: #4a5575;
}
html.oce-world-on .oce-world-text {
	margin: 0 0 14px;
	font-size: 16px;
	line-height: 1.7;
}
html.oce-world-on .oce-world-phrase {
	margin: 0 0 16px;
	padding: 10px 14px;
	border-radius: 9px;
	background: #fdf1f5;
}
html.oce-world-on .oce-world-phrase p { margin: 0; }
html.oce-world-on .oce-world-phrase-label { font-size: 13px; color: #4a5575; }
html.oce-world-on .oce-world-phrase-text { font-size: 20px; font-weight: 700; line-height: 1.5; }
html.oce-world-on .oce-world-phrase-ja { font-size: 14px; }
html.oce-world-on .oce-world-start,
html.oce-world-on .oce-world-retry {
	display: block;
	width: 100%;
	min-height: 48px;
	padding: 10px 13px;
	border: 0;
	border-radius: 9px;
	background: #ed1455;
	color: #fff;
	font: inherit;
	font-weight: 700;
	cursor: pointer;
}

html.oce-world-on .oce-world-question {
	margin: 0;
	font-size: 18px;
	font-weight: 700;
	line-height: 1.5;
}

html.oce-world-on .oce-world-options {
	display: grid;
	gap: 9px;
	margin: 16px 0;
}

html.oce-world-on .oce-world-options button {
	min-height: 48px;
	padding: 10px 13px;
	border: 1px solid #c8cce0;
	border-radius: 9px;
	background: #fff;
	color: #17254a;
	font: inherit;
	text-align: left;
	cursor: pointer;
}

html.oce-world-on .oce-world-options button[disabled] {
	cursor: default;
}

html.oce-world-on .oce-world-options button.is-correct,
html.oce-world-on .oce-world-result.is-correct {
	border-color: #38a268;
	background: #e8f7ed;
	color: #126039;
}

html.oce-world-on .oce-world-options button.is-wrong {
	border-color: #c75555;
	background: #fff0f0;
}

html.oce-world-on .oce-world-result {
	min-height: 24px;
	margin: 0;
	padding: 8px;
	border: 1px solid transparent;
	border-radius: 8px;
	font-weight: 700;
}
html.oce-world-on .oce-world-result.is-wrong {
	border-color: #c75555;
	background: #fff0f0;
	color: #842a2a;
}

/* 全問に答えたときの称賛。結果文の中(span)と、称賛画面(p)の両方で使う。 */
html.oce-world-on .oce-world-master {
	display: block;
	margin: 12px 0 16px;
	font-size: 18px;
	font-weight: 700;
	line-height: 1.5;
	color: #a80d3a;
}
html.oce-world-on .oce-world-result .oce-world-master { margin: 10px 0 0; }

@media (prefers-reduced-motion: reduce) {
	html.oce-world-on .oce-world-mark.is-cue .oce-world-icon,
	html.oce-world-on .oce-world-mark.oce-world-ev-diwali.is-motion .oce-world-icon,
	html.oce-world-on .oce-world-mark.oce-world-ev-martin.is-motion .oce-world-icon,
	html.oce-world-on .oce-world-mark.is-diya.is-motion::after,
	html.oce-world-on .oce-world-mark.is-lantern.is-motion::after,
	html.oce-world-on .oce-world-mark.is-laterne.is-motion::after,
	html.oce-world-on .oce-world-petal,
	html.oce-world-on .oce-world-drift,
	html.oce-world-on .oce-world-mark,
	html.oce-world-on .oce-world-logo { animation: none; }
	html.oce-world-on .oce-world-mark.is-diya.is-motion::after,
	html.oce-world-on .oce-world-mark.is-lantern.is-motion::after,
	html.oce-world-on .oce-world-mark.is-laterne.is-motion::after,
	html.oce-world-on .oce-world-petal,
	html.oce-world-on .oce-world-drift { display: none; }
}
