@charset "utf-8";

:root {
	font-size: 20px;
	text-align: justify;
	text-justify: inter-word;
	word-break: break-all;
	line-break: anywhere;
	line-height: 180%;
	box-sizing: border-box;
	--main-color: rgb(122, 107, 70);
	/* --font-family: 'Inter', 'Noto Sans JP', sans-serif; */
	/* --font-family: 'Noto Serif JP', 'Inter', 'Noto Sans JP', sans-serif; */
	--font-family: 'Klee One', 'Inter', 'Noto Sans JP', sans-serif;
}

html {
	scroll-behavior: smooth;
	scroll-padding-top: 105px;
}

body {
	background-image: url("background-image.png");
	background-repeat: no-repeat;
	font-family: var(--font-family);
	background-size: cover;
	background-position: center;
	background-attachment: fixed;
	/* 背景を固定 */
	color: var(--main-color);
	padding: 0;
}

.container {
	overflow: scroll;
	backdrop-filter: blur(10px);
}

header {
	border-radius: 10px;
}

#report-index {
	position: sticky;
	top: 0;
	z-index: 7777;
}

nav {
	max-height: calc(100lvh - 4.25rem);
	overflow-y: scroll;
}

.bg-white {
	background: rgba(255, 255, 255, 0.92);
}

h1,
h2,
h3,
h4,
h5,
h6 {
	font-weight: 900;
}

*+:is(h2, h3, h4, h5, h6) {
	padding-top: 1em;
}

h2[class*="text-"] {
	opacity: 0.73;
}

h3[class*="text-"] {
	margin-bottom: 0.5em;
}

section[id] {
	margin: 4em auto;
}

p+p {
	margin-top: 1em;
}

iframe[src^="https://www.youtube"] {
	width: fit-content;
	aspect-ratio: 16/9;
}


/* Link styles */
.prose a {
	color: rgb(205, 120, 24);
	font-weight: 800;
	text-decoration: none;
	display: inline;
	transition: opacity 0.5s;
	position: relative;

	img {
		transform: translateY(-12%);
	}
}

.prose a[target="_self"],
.openModal {
	color: rgb(43, 72, 104);
	cursor: pointer;
	font-weight: bold;
}

.prose a:hover {
	/* text-decoration: underline; */
	opacity: 0.77;
}

.prose a:not([target="_self"])::after {
	content: '🔗';
	display: inline-block;
	margin-left: 0.1em;
	font-size: 0.4em;
	color: #94a3b8;
	/* slate-400 */
	text-decoration: none;
	transform: translateY(-15%);

}

.prose :is(*.under-line, u) {
	text-decoration: none;
	color: var(--main-color);
	background: linear-gradient(to top, rgba(255, 217, 0, 0.3) 0%, rgba(255, 217, 0, 0.3) 45%, rgba(255, 255, 255, 0) 45%, rgba(255, 255, 255, 0) 100%);
}

th {
	word-break: keep-all;
	/* line-break: anywhere; */
}

details>summary {
	list-style: none;

	.chevron {
		transition: transform 0.2s ease-in-out;
	}
}

details>summary::-webkit-details-marker {
	display: none;
}

details[open]>summary .chevron {
	transform: rotate(90deg);
}

input[type="check-box"],
input[type="text"],
textarea,
select,
select>option {
	background-color: #fff;
	background: #fff;
	cursor: pointer;
}

/* ===== モーダル画面 ===== */
.modal {
	display: none;
	position: fixed;
	z-index: 9999;
	width: 100%;
	height: 100%;
	top: 0;
	left: 0;
	overflow: hidden;
	background-color: rgba(0, 0, 0, 0.4);
}

.modal-content {
	position: absolute;
	top: 50%;
	left: 50%;
	transform: translate(-50%, -50%);
	border-radius: 20px;
	padding: 70px 20px;
	background-color: #fff;
	/* border: 1px solid #888; */
	text-align: center;

	/* スクロールバーのトラック（背景）のスタイル */
	/*IE(Internet Explorer)・Microsoft Edge*/
	-ms-overflow-style: none;
	/*Firefox*/
	scrollbar-width: none;

	/* Chrome */
	&:-webkit-scrollbar {
		display: none;
	}

	iframe[id="modalFrame"] {
		width: 80vw;
		min-height: 75lvh;

		body {
			display: flex;
			justify-content: center;
			align-items: center;
			border: none;
		}
	}
}

.close {
	position: absolute;
	right: 20px;
	top: 10px;
	color: #aaa;
	font-size: 28px;
	font-weight: bold;
}

.close:hover,
.close:focus {
	color: black;
	text-decoration: none;
	cursor: pointer;
}

fixed-element {
	will-change: transform;
}

/* ===== ローディング画面 ===== */
/* Spinner */
#loading-screen {
	position: fixed;
	top: 0;
	left: 0;
	display: flex;
	justify-content: center;
	align-items: center;

	min-width: 100vw;
	min-height: 100lvh;
	width: 100%;
	min-height: 100%;
	background: #101;
	z-index: 9000;
}

.spinner {
	width: 100px;
	height: 100px;
	/* border: 4px solid #000;
	border-top-color: #fff; */
	border-radius: 50%;
	content: url("favicon/android-chrome-192x192.png");
	animation: spin 1s linear infinite;
}

.recaptcha-area{
	display:flex;
	width:100%;
	justify-content: center;
}
@keyframes spin {
	to {
		transform: rotate(360deg);
	}
}

caption {
	text-align: center;
	display: block;
}


/* ===== フッター ===== (このセクションに追記) */
footer {
	text-align: center;
	padding: 40px 5%;
	background: rgba(255, 255, 255, 0.3);
	border-radius: inherit;

	/* ===== フッターのソーシャルアイコン調整 ===== */
	.social-icon,
	.social-share-button img {
		height: 50px;
		aspect-ratio: 1/1;
		vertical-align: middle;
	}

	.social-links {
		margin: 1.5rem auto;
	}

	.social-links a {
		margin: 0 15px;
		display: inline-block;
		transition: transform 0.3s ease;
	}

	.social-links a:hover {
		transform: scale(1.1);
	}

}


/* スクロールバー全体のスタイル */
::-webkit-scrollbar {
	background: transparent;
	width: 10px;
}

/* スクロールバーのトラック（背景）のスタイル */
::-webkit-scrollbar-track {
	background: transparent;
	display: none;
}

/* スクロールバーのハンドル（つまみ）のスタイル */
::-webkit-scrollbar-thumb {
	/* background: #888; */
	border-radius: 10px;
	background: var(--main-color);
	/* background:#333; */
}

nav {
	/* スクロールバーのトラック（背景）のスタイル */
	/*IE(Internet Explorer)・Microsoft Edge*/
	-ms-overflow-style: none;
	/*Firefox*/
	scrollbar-width: none;

	/* Chrome */
	&:-webkit-scrollbar {
		display: none;
	}
}

.disabled {
	pointer-events: none;
	filter: grayscale(1.0);
}

@media (max-width: 768px) {
	:root {
		font-size: 18px;
	}

	body {
		background-image: none;
		background: #fff;
	}

	body>:is(div[class*="sm"][class*="p-6"], div[class*="p-4"]) {
		padding: 0;
	}

	div.max-w-6xl {
		width: 100vw;
	}

	header {
		border-bottom-right-radius: 0;
		border-bottom-left-radius: 0;
	}

	h2 {
		br {
			display: none;
		}
	}

	th {
		min-width: 30%;
		/* line-break: anywhere; */
	}

	footer {
		border-top-left-radius: 0;
		border-top-right-radius: 0;
	}

	table {

		td:not(:last-of-type),
		th:not(:last-of-type) {
			writing-mode: vertical-rl;
			text-orientation: upright;
			font-size: 14px;
		}
	}
}