@charset "utf-8";
/*
Theme Name: osaka-mahjong
Theme URI: 
Description: 
Author: jan39
Author URI: http://jan39.com

*/

.scroll_up {
	transition: 0.7s ease-in-out;
	transform: translateY(10px);
	opacity: 0;
}
.scroll_up.on {
	transform: translateY(0);
	opacity: 1.0;
}
.fade_in {
	transition: 1.2s ease-in-out;
	opacity: 0;
}
.fade_in.on {
	opacity: 1.0;
}

:root{
	--font-color: #383838;
	--main-color: #111;
	--sub-color: #5D1416;
	--white-color: #FFF;
	--gray-color: #777;
	--light-gray-color: #fbfbfb;
	--border-color: #e5e5e5;
	--red-color: #f22;
	--light-red-color: #fff9f9;
}
* {
	min-height:0;
	min-width : 0;
}
.pc_none { display: none; }
.sp_none { display: block; }

body {
	font-family: "Noto Serif JP", sans-serif;
	font-weight: 500;
	font-style: normal;
	font-size: 18px;
	color: var(--font-color);
	line-height: 1.6;
	padding: 0;
	margin: 0;
	overflow-wrap: break-word;
}
h1 {
	text-align: center;
	font-size: 2.1rem;
	font-weight: 700;
	color: var(--main-color);
	letter-spacing: 0.04em;
}
h2 {
	position: relative;
	text-align: center;
	font-size: 1.8rem;
	font-weight: 600;
	color: var(--main-color);
	padding-bottom: 10px;
	margin: 20px 0 40px;
}
h2::after {
	content: "";
	position: absolute;
	left: 50%;
	bottom: 0;
	transform: translateX(-50%);
	width: 64px;
	height: 2px;
	background: var(--main-color);
}
h3 {
	font-size: 1.3rem;
	font-weight: 700;
	border-left: 5px var(--main-color) solid;
	padding-left: 15px;
	margin-bottom: 15px;
}
.title {
	position: relative;
	width: 100%;
	height: 400px;
	overflow: hidden;
}
.title img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	object-position: center;
	filter: brightness(0.8);
}
.title h1 {
	position: absolute;
	top: 50%;
	left: 50%;
	transform: translate(-50%, -50%);
	z-index: 2;
	background: rgba(255, 255, 255, 0.9);
	padding: 30px;
	width: 600px;
}

input, textarea {
	padding: 5px;
	width: 100%;
	border: 1px #aaa solid;
	outline: none;
	line-height: 1.5;
}
input[type=checkbox] {
	width: auto;
}
a {
	color: var(--main-color);
}
button {
	cursor: pointer;
	padding: 10px 20px;
	margin: 5px;
	outline: none;
	color: var(--font-color);
	border: 1px #aaa solid;
	background: #F0F0F0;
	font-size: 1.0rem;
	letter-spacing: 1px;
	font-weight: 600;
	font-family: "Noto Serif JP";
}
input:focus, textarea:focus {
	background: #fffff8;
}
.wrap {
	width: 1200px;
	margin: 0 auto;
}
.wrap_min {
	width: 1024px;
	margin: 0 auto;
}
.w100 {
	width: 100%;
}
.wauto {
	width: auto;
}
.al_center {
	text-align: center;
}
.al_right {
	text-align: right;
}
.cl_red {
	color: var(--red-color);
}
.alert {
	color: var(--red-color);
	background: var(--light-red-color);
	padding: 10px 15px;
}
.bold {
	font-weight: bold;
}
.underline {
	text-decoration: underline;
}
.link, .post a {
	color: var(--sub-color);
}
.link:hover, .post a:hover {
	text-decoration: underline;
}
.list_num {
	list-style: decimal;
	margin-left: 20px;
}
.list {
	list-style: disc;
	margin-left: 20px;
}
.list_num li, .list li {
	margin: 0.5em 0;
}
strong {
	font-weight: bold;
}
small {
	font-size: 80%;
}
a {
	text-decoration: none;
	color: var(--font-color);
}
img {
	max-width: 100%;
}
p {
	margin: 1.0em 0;
}
dl {
	display: flex;
	gap: 25px;
	margin: 30px 0;
}
dt {
	width: 180px;
	background: var(--light-gray-color);
	padding: 5px 10px;
}
dd {
	width: calc(100% - 180px);
}
table {
	width: 100%;
	margin-bottom: 10px;
}
th, td {
	padding: 10px 20px;
	border: 1px var(--border-color) solid;
	vertical-align: middle;
}
th {
	background: var(--light-gray-color);
	font-weight: 700;
}
main {
}
section {
	margin: 60px 0;
}
header {
	padding: 15px;
	position: relative;
}
header .wrap {
	display: flex;
	justify-content: space-between;
	align-items: center;
}
.header_logo a {
	display: flex;
	gap: 7px;
	align-items: center;
}
.header_logo span, .header_logo h1 {
	font-size: 1.6rem;
	font-weight: 700;
	letter-spacing: 1px;
	color: var(--main-color);
	margin: 0;
}
.catchcopy {
	display: block;
	color: var(--gray-color);
	margin-bottom: 7px;
	font-size: 11px;
}
.header_menu {
	display: flex;
	align-items: center;
	gap: 40px;
}
.header_menu a {
	font-size: 1rem;
	font-weight: 700;
	letter-spacing: 0.08em;
	text-decoration: none;
	position: relative;
}
.header_menu a::after {
	content: "";
	position: absolute;
	left: 50%;
	bottom: -10px;
	transform: translateX(-50%);
	width: 0;
	height: 1px;
	background: var(--main-color);
	transition: width 0.3s ease;
}
.header_menu a:hover {
	opacity: 0.9;
}
.header_menu a:hover::after {
	width: 100%;
}
.header_menu_sp {
	display: none;
}
.icon_x:hover > .header_menu a::after {
	width: 0;
	height: 0 !important;
}
footer {
	background: var(--sub-color);
	color: var(--white-color);
	padding: 10px 15px 15px;
}
.footer_menu {
	display: flex;
	gap: 50px;
	justify-content: center;
	margin: 10px 0;
}
.footer_menu li a {
	color: var(--white-color);
}
.footer_menu li a:hover {
	text-decoration: underline;
}
.footer_banner {
	display: flex;
	gap: 20px;
	justify-content: center;
	margin: 20px 0;
}
.footer_banner img {
	max-width: 225px;
}
.box_flex {
	display: flex;
	gap: 40px;
	margin-bottom: 20px;
}
.about_flex li:nth-of-type(1){
	width: 66%;
}
.about_flex li:nth-of-type(2){
	width: 34%;
}
.message_flex li:nth-of-type(1){
	width: 25%;
}
.message_flex li:nth-of-type(2){
	width: 75%;
}
.box_info li {
	display: flex;
	gap: 20px;
	margin: 10px 0;
}
.box_info li span {
	display: block;
	width: 150px;
}
.box_gallery {
	display: flex;
	flex-wrap: wrap;
	gap: 20px;
	justify-content: center;
}
.box_gallery li {
	width: 32%;
}
.box_gallery li div {
	width: 100%;
	height: auto;
	aspect-ratio: 16 / 9;
	background: #ddd;
	display: flex;
	align-items: center;
	justify-content: center;
}
.box_teacher {
	display: flex;
	gap: 30px 10px;
	flex-wrap: wrap;
	justify-content: center;
}
.box_teacher li {
	width: 32%;
	position: relative;
}
.box_teacher li img {
	width: 100%;
	height: 260px;
	object-fit: contain;
	margin-bottom: 10px;
}
.box_teacher li a {
	color: var(--font-color);
}
.box_teacher li a:hover {
	transition: 0.5s;
	opacity: 0.8;
	text-decoration: none;
}
.teacher_jyukouzumi {
	background: var(--sub-color);
	color: var(--white-color);
	padding: 3px 7px 4px;
	margin-bottom: 4px;
	display: inline-block;
}
.detail_teacher {
	display: flex;
	gap: 30px;
}
.detail_teacher li:nth-of-type(1) {
	width: 30%;
}
.detail_teacher li:nth-of-type(2) {
	width: 70%;
}
.seiseki_pdf {
    width: 70%;
    margin: 0 auto;
}
.seiseki_pdf iframe {
    width: 100%;
    height: 1000px;
    border: none;
}
.seiseki_nav {
	display: flex;
	justify-content: space-between;
	align-items: center;
	margin-bottom: 20px;
}
.seiseki_nav .current {
	font-weight: 700;
	font-size: 1.6rem;
}
.moushikomi {
	display: flex;
	flex-wrap: wrap;
	gap: 5px;
}
.moushikomi .mwform-checkbox-field {
	display: block;
	width: 24%;
}
.moushikomi .mwform-checkbox-field {
	margin-left: 0 !important;
}



@media screen and (max-width: 1200px) {
	body {
		font-size: 1rem;
	}
	.wrap {
		width: 100%;
	}
	section {
		padding: 0 15px;
		margin: 30px 0;
	}
	h1 {
	  font-size: 1.9rem;
	}
	h2 {
		font-size: 1.6rem;
	}
	h3, h4 {
		font-size: 1.2rem;
	}
	.title {
		height: 280px;
	}
}
@media screen and (max-width: 1024px) {
	.wrap_min {
		width: 100%;
	}
	dl {
		flex-wrap: wrap;
		gap: 10px;
		margin: 20px 0;
	}
	dt, dd {
		width: 100%;
	}
	.header_menu {
		display: none;
	}
	.header_menu_sp {
		display: block;
	}
	.seiseki_pdf {
		width: 100%;
	}
}
@media screen and (max-width: 800px) {
	body {
		font-size: 0.9rem;
	}
	.pc_none { display: block; }
	.sp_none { display: none; }
	main {
		margin-top: 65px !important;
	}
	section {
		padding: 0 12px;
	}
	h1 {
		font-size: 1.4rem;
	}
	h2 {
		font-size: 1.2rem;
		margin: 20px 0;
	}
	h3 {
		font-size: 1.05rem;
	}
	.title h1 {
		width: 95%;
		padding: 20px;
	}
	.title {
		height: 120px;
	}
	button {
		font-size: 0.9rem;
	}
	input, textarea {
		font-size: 16px;
	}
	th, td {
		padding: 7px 15px;
	}
	.googlemaps {
		aspect-ratio: 16/9;
		height: auto;
	}
	.catchcopy {
		margin-bottom: 5px;
	}
	header {
		padding: 5px 15px;
		position: fixed;
		top: 0;
		left: 0;
		background: var(--white-color);
		width: 100%;
		z-index: 999;
	}
	.header_logo img {
		width: 60px;
	}
	.header_logo span, .header_logo h1 {
		font-size: 1.3rem;
	}
	.footer_menu {
		gap: 20px;
		margin: 5px 0;
	}
	.footer_banner {
		flex-wrap: wrap;
		gap: 5px;
	}
	.footer_banner li {
		width: 100%;
	}
	.box_flex {
		flex-wrap: wrap;
		gap: 10px;
	}
	.box_flex li {
		width: 100%;
	}
	.flex_order {
		flex-direction: column;
	}
	.flex_order div:nth-of-type(1) {
		order: 2;
	}
	.flex_order div:nth-of-type(2) {
		order: 1;
	}
	.about_flex li:nth-of-type(1), .about_flex li:nth-of-type(2){
		width: 100%;
	}
	.message_flex li:nth-of-type(1), .message_flex li:nth-of-type(2){
		width: 100%;
	}
	.box_info li {
		flex-wrap: wrap;
		gap: 0;
	}
	.box_info li span {
		width: flex;
	}
	.box_gallery {
		flex-wrap: wrap;
		gap: 10px;
	}
	.box_gallery li {
		width: 100%;
	}
	.box_teacher {
		gap: 20px 10px;
	}
	.box_teacher li {
		width: 48%;
	}
	.box_teacher li img {
		height: 170px;
	}
	.detail_teacher {
		flex-wrap: wrap;
		gap: 10px;
	}
	.detail_teacher li:nth-of-type(1), .detail_teacher li:nth-of-type(2) {
		width: 100%;
	}
	.seiseki_nav a {
		margin: 0 10px;
	}
	.seiseki_nav .current {
	    font-size: 1.4rem;
	}
	.seiseki_pdf iframe {
		height: 450px;
	}
}
