@charset "utf-8";

/* 海外交流活動 作り込み記事ページ */

/* ==================================================
PC
================================================== */

/* ヘッダ */
#header {
	position: relative;
	z-index: 999;
}
#header2 {
	position: relative;
}
#header2_box {
	position: absolute;
	top: 0px;
	left: 50%;
	-webkit-transform: translateX(-50%);
	    -ms-transform: translateX(-50%);
	        transform: translateX(-50%);
}

.header_nav ul li.h_voice a,
dl#moji_size dt,
dl#haikei_color dt {
	text-shadow: 0px 0px 2px #ffffff, 0px 0px 2px #ffffff, 0px 0px 2px #ffffff, 0px 0px 2px #ffffff, 0px 0px 2px #ffffff,
				 0px 0px 2px #ffffff, 0px 0px 2px #ffffff, 0px 0px 2px #ffffff, 0px 0px 2px #ffffff, 0px 0px 2px #ffffff,
				 0px 0px 2px #ffffff, 0px 0px 2px #ffffff, 0px 0px 2px #ffffff, 0px 0px 2px #ffffff, 0px 0px 2px #ffffff,
				 0px 0px 2px #ffffff, 0px 0px 2px #ffffff, 0px 0px 2px #ffffff, 0px 0px 2px #ffffff, 0px 0px 2px #ffffff,
				 0px 0px 2px #ffffff, 0px 0px 2px #ffffff, 0px 0px 2px #ffffff, 0px 0px 2px #ffffff, 0px 0px 2px #ffffff;
}

/* 本文 */
#mymainback {
	padding-top: 0px;
}

/* h1見出し */
#main_header {
	margin: 0px 0px 60px;
	width: 100%;
	height: 45rem;
	background: #f6f6f6;
	position: relative;
	overflow: hidden;
}
#main_header::before,
#main_header::after {
	content: '';
	display: block;
	position: absolute;
	z-index: 1;
	pointer-events: none;
}
#main_header::before {
	width: 100px;
	height: 1px;
	top: 22rem;
	left: calc(50% - 640px);
}
#main_header::after {
	width: 45vw;
	height: 45rem;
	background-color: transparent;
	background-repeat: no-repeat;
	background-position: right center;
	background-size: cover;
	border-radius: 220px 0px 0px 220px;
	top: 0px;
	right: 0px;
}

#main_header h1 {
	width: 1040px;
	max-width: none;
	height: 138px;
	margin: 0px;
	padding: 0px;
	position: absolute;
	top: 50%;
	left: 50%;
	-webkit-transform: translate(-50%,-50%);
	    -ms-transform: translate(-50%,-50%);
	        transform: translate(-50%,-50%);
	z-index: 2;
	text-align: left;
	text-indent: -9999em;
	overflow: hidden;
	border: none;
	background: none;
	background-color: transparent;
	background-repeat: no-repeat;
	background-position: left center;
}

/* 中華人民共和国 */
body:has(#diplomacy-cn) #main_header {
	background: #ffffe0;
}
body:has(#diplomacy-cn) #main_header::before {
	background: #dc143c;
	color: #ffffff;
}
body:has(#diplomacy-cn) #main_header::after {
	background-image: url("/img/sites/diplomacy/detail/img-cn.jpg");
}
body:has(#diplomacy-cn) #main_header h1 {
	background-image: url("/img/sites/diplomacy/detail/ttl-cn.png");
}

/* 大韓民国 */
body:has(#diplomacy-kr) #main_header {
	background: #edebea;
}
body:has(#diplomacy-kr) #main_header::before {
	background: #744214;
	color: #ffffff;
}
body:has(#diplomacy-kr) #main_header::after {
	background-image: url("/img/sites/diplomacy/detail/img-kr.jpg");
}
body:has(#diplomacy-kr) #main_header h1 {
	background-image: url("/img/sites/diplomacy/detail/ttl-kr.png");
}

/* アメリカ合衆国 */
body:has(#diplomacy-us) #main_header {
	background: #fff5d3;
}
body:has(#diplomacy-us) #main_header::before {
	background: #057384;
	color: #ffffff;
}
body:has(#diplomacy-us) #main_header::after {
	background-image: url("/img/sites/diplomacy/detail/img-us.jpg");
}
body:has(#diplomacy-us) #main_header h1 {
	background-image: url("/img/sites/diplomacy/detail/ttl-us.png");
}

/* タイ王国 */
body:has(#diplomacy-th) #main_header {
	background: #f8eff6;
}
body:has(#diplomacy-th) #main_header::before {
	background: #2d2a4a;
	color: #ffffff;
}
body:has(#diplomacy-th) #main_header::after {
	background-image: url("/img/sites/diplomacy/detail/img-th.jpg");
}
body:has(#diplomacy-th) #main_header h1 {
	background-image: url("/img/sites/diplomacy/detail/ttl-th.png");
}

/* ベトナム社会主義共和国 */
body:has(#diplomacy-vn) #main_header {
	background: #fff2ed;
}
body:has(#diplomacy-vn) #main_header::before {
	background: #007b51;
	color: #ffffff;
}
body:has(#diplomacy-vn) #main_header::after {
	background-image: url("/img/sites/diplomacy/detail/img-vn.jpg");
}
body:has(#diplomacy-vn) #main_header h1 {
	background-image: url("/img/sites/diplomacy/detail/ttl-vn.png");
}

/* 台湾（中華民国） */
body:has(#diplomacy-tw) #main_header {
	background: #f8e9eb;
}
body:has(#diplomacy-tw) #main_header::before {
	background: #004aad;
	color: #ffffff;
}
body:has(#diplomacy-tw) #main_header::after {
	background-image: url("/img/sites/diplomacy/detail/img-tw.jpg");
}
body:has(#diplomacy-tw) #main_header h1 {
	background-image: url("/img/sites/diplomacy/detail/ttl-tw.png");
}

/* 各国の県人会等 */
body:has(#diplomacy-kenjinkai) #main_header {
	background: #f0faff;
}
body:has(#diplomacy-kenjinkai) #main_header::before {
	background: #227200;
	color: #ffffff;
}
body:has(#diplomacy-kenjinkai) #main_header::after {
	background-image: url("/img/sites/diplomacy/detail/img-kenjinkai.jpg");
}
body:has(#diplomacy-kenjinkai) #main_header h1 {
	background-image: url("/img/sites/diplomacy/detail/ttl-kenjinkai.png");
}

/* 執行部との共同事業 */
body:has(#diplomacy-shikkobu) #main_header {
	background: #f6f6f6;
}
body:has(#diplomacy-shikkobu) #main_header::before {
	background: #083895;
	color: #ffffff;
}
body:has(#diplomacy-shikkobu) #main_header::after {
	background-image: url("/img/sites/diplomacy/detail/img-shikkobu.jpg");
}
body:has(#diplomacy-shikkobu) #main_header h1 {
	background-image: url("/img/sites/diplomacy/detail/ttl-shikkobu.png");
}

/* 本文共通 */
#main_body h2 {
	margin: 0px 0px 40px;
	padding: 0px;
	border: none;
	background: none;
	font-size: 4.8rem;
	text-align: center;
}
#main_body .detail_free + .detail_free h2 {
	margin-top: 40px;
}

#main_body h3 {
	margin: 1.5em 0px 1em;
	padding: 0px 0px 0px 1.2em;
	border: none;
	background: none;
	font-size: 3.2rem;
	position: relative;
}
#main_body h3::before {
	content: '';
	display: block;
	width: 1em;
	height: 1em;
	background: #333333;
	color: #ffffff;
	border-radius: 100%;
	position: absolute;
	top: 0.3em;
	left: 0px;
}

#main_body h4 {
	margin: 1.5em 0px 1em;
	padding: 0px;
	border: none;
	background: none;
	font-size: 2.4rem;
}

#main_body h5 {
	margin: 1em 0px;
	padding: 0px;
	border: none;
	background: none;
	font-size: 2.2rem;
}

#main_body h6 {
	margin: 1em 0px;
	padding: 0px;
	border: none;
	background: none;
	font-size: 2rem;
}

#main_body > hr {
	border: none;
	border-top: 1px solid #333333;
	margin: 60px 0px;
}

#main_body div[class*="detail_"] {
	margin: 0px;
}

/* 歴史 */
.layout_history_box {
	display: -webkit-box;
	display: -ms-flexbox;
	display: flex;
	-ms-flex-wrap: nowrap;
	    flex-wrap: nowrap;
	-webkit-box-pack: start;
	    -ms-flex-pack: start;
	-webkit-box-pack: space-evenly;
	    -ms-flex-pack: space-evenly;
	        justify-content: space-evenly;
	-webkit-box-align: stretch;
	    -ms-flex-align: stretch;
	        align-items: stretch;
	overflow-x: auto;
	scroll-behavior: smooth;
	scrollbar-width: thin;
	scrollbar-color: #555555 #b4b4b4;
	scrollbar-gutter: auto;
	scrollbar-width: auto;
	scroll-snap-type: x mandatory;
}
#main_body .layout_history_box div.hide,
#main_body .layout_history_box div[class*="detail_"] {
	display: none;
}
#main_body .layout_history_box div.detail_free {
	-ms-flex-negative: 1;
	    flex-shrink: 1;
	display: block;
	width: 100%;
	max-width: 30%;
	min-width: calc(1080px / 7 - 10px);
	margin: 4rem 5px 40px;
	padding: 20px 15px 10px;
	-webkit-box-sizing: border-box;
	        box-sizing: border-box;
	background: #ebebeb;
	position: relative;
}
.font_size_changed #main_body .layout_history_box div.detail_free {
	min-width: 12rem;
}
#main_body .layout_history_box div.detail_free::before {
	content: '';
	display: block;
	width: 0px;
	height: 0px;
	border: calc(1080px / 14 - 5px) solid transparent;
	border-bottom: none;
	border-top-width: 20px;
	border-top-color: #ebebeb;
	position: absolute;
	top: 100%;
	left: 50%;
	-webkit-transform: translateX(-50%);
	    -ms-transform: translateX(-50%);
	        transform: translateX(-50%);
	pointer-events: none;
}
#main_body .layout_history_box div.detail_free h3 {
	margin: 0px;
	padding: 0px;
	border: none;
	background: none;
	font-size: 2.4rem;
	line-height: 3rem;
	text-align: center;
	position: absolute;
	top: -4rem;
	left: 0px;
	width: 100%;
}
#main_body .layout_history_box div.detail_free h3::before {
	display: none;
}
#main_body .layout_history_box div.detail_free h4 {
	margin: 0px;
	padding: 0px;
	border: none;
	background: none;
	font-size: 1.5rem;
	line-height: 1.5;
	letter-spacing: 0;
	text-align: center;
	min-height: calc(1.5em * 3);
}
#main_body .layout_history_box div.detail_free p {
	margin: 1em 0px 0px;
	font-size: 1.3rem;
	line-height: 1.5;
	letter-spacing: 0;
	text-align: center;
}

#main_body .layout_history_box > div:nth-child(7n+1) h3 {
	color: #2c02b5;
}
#main_body .layout_history_box > div:nth-child(7n+2) h3 {
	color: #660edd;
}
#main_body .layout_history_box > div:nth-child(7n+3) h3 {
	color: #0e76be;
}
#main_body .layout_history_box > div:nth-child(7n+4) h3 {
	color: #097a3c;
}
#main_body .layout_history_box > div:nth-child(7n+5) h3 {
	color: #ba4404;
}
#main_body .layout_history_box > div:nth-child(7n+6) h3 {
	color: #b91504;
}
#main_body .layout_history_box > div:nth-child(7n+7) h3 {
	color: #d403c3;
}

/* メッセージ */
#main_body .layout_message h2 {
	text-transform: uppercase;
}

.layout_message_box {
	display: -webkit-box;
	display: -ms-flexbox;
	display: flex;
	-ms-flex-wrap: wrap;
	    flex-wrap: wrap;
	-webkit-box-pack: justify;
	    -ms-flex-pack: justify;
	        justify-content: space-between;
	-webkit-box-align: start;
	    -ms-flex-align: start;
	        align-items: flex-start;
	gap: 60px 80px;
}
#main_body .layout_message_box div.hide {
	display: none;
}
#main_body .layout_message_box div.detail_free {
	width: calc(50% - 40px);
}
#main_body .layout_message_box div.detail_free p {
	margin: 0px;
}
#main_body .layout_message_box div.detail_free p + p {
	margin-top: 1em;
}

#main_body .layout_message_box div.detail_free p:has(img) {
	width: 100%;
	height: auto;
	aspect-ratio: 4 / 3;
}
#main_body .layout_message_box div.detail_free p:has(img) img {
	width: 100% !important;
	height: 100% !important;
	-o-object-fit: contain;
	   object-fit: contain;
	-o-object-position: center;
	   object-position: center;
	vertical-align: top;
}
#main_body .layout_message_box div.detail_free p:has(img) img[src*="warn.gif"] {
	width: 15px !important;
	height: 15px !important;
}

#main_body .layout_message_box div.detail_free h3 {
	margin: 0px 0px 1em;
	padding: 0px;
	font-size: 2.4rem;
}
#main_body .layout_message_box div.detail_free h3::before {
	display: none;
}

/* ==================================================
PC ここまで
================================================== */

/* ==================================================
背景色変更 / 印刷ページ
================================================== */

/* ========== 背景色変更 ========== */

.color_change #main_header h1 {
	text-indent: 0;
	height: auto;
}
.color_change #main_header::before {
	background: #ffffff !important;
}

.color_change #main_body .layout_history_box div.detail_free::before {
	display: none;
}

/* ========== 印刷ページ ========== */

.view_print_mode #main_header {
	height: auto;
}
.view_print_mode #main_header::before,
.view_print_mode #main_header::after {
	display: none !important;
}
.view_print_mode #main_header h1 {
	background: none !important;
	width: auto;
	max-width: none;
	height: auto;
	text-indent: 0;
	position: static;
	-webkit-transform: none;
	    -ms-transform: none;
	        transform: none;
	text-align: center;
	padding: 30px 20px;
}

/* 印刷 */
@media print {
	#header2_box {
		position: static;
		-webkit-transform: none;
		    -ms-transform: none;
		        transform: none;
	}
}
/* 印刷 ここまで */

/* ==================================================
背景色変更 / 印刷ページ ここまで
================================================== */