@charset "UTF-8";

/* =========================================================
   農業・農村の風景 フォトコンテスト
   レスポンシブ対応CSS
   既存のphoto.cssは変更せず、こちらで上書きする
========================================================= */

/* -------------------------
   共通・画像
------------------------- */

#photomain {
	width: 100%;
	overflow: hidden;
	padding-bottom: 60px;
}

#photomain *,
#photomain *::before,
#photomain *::after {
	box-sizing: border-box;
}

#photomain img {
	max-width: 100%;
	height: auto;
	vertical-align: bottom;
}

#photo_con {
	width: 100%;
	max-width: 1000px;
	margin: 0 auto;
	padding: 0;
	float: none;
	position: relative;
	left: auto;
}

#photo_det {
	width: 90%;
	max-width: 900px;
	margin: 0 auto;
}

/* -------------------------
   メインビジュアル
------------------------- */

#photo_con h1 {
	width: 100%;
	margin: 0 auto 80px;
	padding: 0;
	float: none;
	position: static;
	text-align: center;
	text-indent: 0;
}

#photo_con h1 img {
	display: block;
	width: 100%;
	margin: 0 auto;
	padding: 0;
	height: auto;
}

/* -------------------------
   コンテンツ
------------------------- */

#photo_det .photo_det_inner {
	width: 100%;
	margin-bottom: 80px;
}

#photo_det .phototbl {
	width: 100%;
	max-width: 100%;
}

/* テーブル見出し（応募締切・入賞発表…／賞名）を太字に */
#photo_det .phototbl th {
	font-weight: bold;
}

/* 賞金テーブルの見出し幅（PCのみ） */
#photo_det .prize_tbl th {
	width: 300px;
	text-align: left;
}

#photo_det .cm {
	margin-bottom: 40px;
}

#photo_det .cm .phototbl {
	margin: 0 auto;
}

/* 全体の文字サイズ（PC） */
#photo_det .phototbl,
#photo_det .cm p {
	font-size: 16px;
}

.kitei .box_hide {
	font-size: 16px;
}

.attention ul li {
	font-size: 16px;
}

/* メール案内テーブル */
#photo_det .mail_tbl {
	margin-top: 40px;
}

#photo_det .mail_tbl .mail_lead {
	font-size: 17px;
}

/* 応募終了メッセージ（使う場合はコメントアウトを外す） */
#photo_det .end_msg {
	border: #FF0000 solid 3px;
	padding: 20px;
	width: 100%;
	max-width: 650px;
	color: #FF0000;
	margin: 0 auto 60px;
	font-size: 18px;
	font-weight: bold;
	text-align: center;
}

/* -------------------------
   見出し
------------------------- */

#photo_det h2 {
	width: 100%;
}

#photo_det h2.down {
	position: relative;
	cursor: pointer;
}

/* -------------------------
   応募規定の開閉
   （jQueryなし。JSで .open を付け外し）
------------------------- */

#photo_det .box_hide {
	display: none;
}

#photo_det .box_hide.open {
	display: block;
}

/* -------------------------
   応募ボタン
------------------------- */

.form {
	width: 100%;
	max-width: 900px;
	margin: 0 auto;
	padding-bottom: 10px; /* 応募ボタンの下の余白 */
	font-size: 16px;
}

/* 「上記に同意します」を太字に */
.form label {
	font-weight: bold;
}

.form .submit {
	max-width: 100%;
}

/* -------------------------
   主催・協賛・後援
------------------------- */

.support {
	width: 100%;
}

.support table {
	width: 100%;
}

/* 主催・協賛・後援の見出しを太字に */
.support th {
	font-weight: bold;
}

.support th,
.support td {
	padding-top: 5px;
	padding-bottom: 5px;
	font-size: 16px;
}

/* =========================================================
   タブレット
========================================================= */

@media screen and (max-width: 1020px) {

	#photo_con {
		width: 94%;
	}

	#photo_det {
		width: 94%;
	}

}

/* =========================================================
   スマートフォン
========================================================= */

@media screen and (max-width: 620px) {

	/* -------------------------
	   全体
	------------------------- */

	#photomain {
		padding-bottom: 30px;
	}

	#photo_con {
		width: 100%;
		padding: 0 15px;
	}

	#photo_det {
		width: 100%;
	}

	/* -------------------------
	   メインビジュアル
	------------------------- */

	#photo_con h1 {
		margin-bottom: 35px;
	}

	/* -------------------------
	   各コンテンツ
	------------------------- */

	#photo_det .photo_det_inner {
		margin-bottom: 45px;
		font-size: 15px;
		line-height: 1.8;
		letter-spacing: 0.02em;
	}

	/* -------------------------
	   テーブル
	   PC：横並び
	   SP：縦並び
	------------------------- */

	#photo_det .phototbl {
		width: 100%;
		font-size: 15px;
	}

	#photo_det .phototbl tr {
		display: block;
		width: 100%;
		padding: 12px 0;
		border-bottom: 1px dotted #999;
	}

	#photo_det .phototbl th {
		display: block;
		width: 100%;
		padding: 0 0 6px;
		border-bottom: none;
		font-weight: bold;
	}

	#photo_det .phototbl td {
		display: block;
		width: 100%;
		padding: 0;
		border-bottom: none;
		line-height: 1.8;
		overflow-wrap: break-word;
	}

	/* 賞金テーブルの幅指定を解除 */
	#photo_det .prize_tbl th {
		width: 100%;
	}

	/* -------------------------
	   セクション見出し
	------------------------- */

	#photo_det h2 {
		font-size: 18px;
		line-height: 1.5;
		padding: 13px 12px;
		margin-bottom: 20px;
		border-radius: 8px;
	}

	#photo_det h2 small {
		display: block;
		font-size: 12px;
		margin: 3px 0 0;
	}

	/* 開閉ボタン */

	#photo_det h2.down {
		padding-right: 90px;
	}

	#photo_det h2 span {
		width: 65px;
		height: 27px;
		font-size: 11px;
		right: 10px;
		top: 50%;
		transform: translateY(-50%);
	}

	#photo_det h2 span::before {
		margin-right: 5px;
	}

	/* -------------------------
	   応募規定
	------------------------- */

	.kitei p {
		margin-bottom: 10px;
	}

	.kitei p:not(.t) {
		text-indent: -1em;
		padding-left: 1em;
	}

	.kitei .box_hide {
		font-size: 14px;
		line-height: 1.9;
		overflow-wrap: break-word;
	}

	/* -------------------------
	   注意事項
	------------------------- */

	.attention ul {
		padding: 0;
	}

	.attention ul li {
		font-size: 14px;
		line-height: 1.8;
		margin-bottom: 12px;
	}

	/* -------------------------
	   テレビCM・賞金
	------------------------- */

	.cm {
		margin-bottom: 40px;
	}

	#photo_det .cm p {
		font-size: 15px;
	}

	/* -------------------------
	   応募フォーム
	------------------------- */

	.form {
		font-size: 15px;
		line-height: 1.8;
		margin-bottom: 0;
		padding-bottom: 10px;
	}

	.form label {
		display: inline-block;
	}

	.form input[type="checkbox"] {
		width: 18px;
		height: 18px;
		vertical-align: middle;
	}

	.form .submit {
		width: 100%;
		height: 65px;
		font-size: 19px;
		border-radius: 12px;
	}

	/* -------------------------
	   メール応募案内テーブル
	------------------------- */

	#photo_det .mail_tbl {
		margin-top: 25px;
		font-size: 14px;
	}

	#photo_det .mail_tbl .mail_lead {
		font-size: 15px;
	}

	/* -------------------------
	   主催・協賛・後援
	------------------------- */

	.support {
		margin-top: 30px;
		margin-bottom: 30px;
		padding: 15px;
		font-size: 14px;
		border-radius: 8px;
	}

	.support table {
		width: 100%;
	}

	.support table tr {
		display: block;
		margin-bottom: 10px;
	}

	.support table th {
		display: block;
		width: 100%;
		padding: 0;
		font-weight: bold;
	}

	.support table th,
	.support table td {
		font-size: 14px;
	}

	.support table td {
		display: block;
		width: 100%;
		padding: 0;
		line-height: 1.7;
	}

	/* -------------------------
	   結果ボタン（使用する場合）
	------------------------- */

	.btn_kekka {
		margin-bottom: 40px;
	}

	.btn_kekka a {
		width: 100%;
		height: 65px;
		font-size: 20px;
		border-radius: 12px;
	}

}

/* ヘッダーのタイトル：PCのみ */
@media screen and (min-width: 621px) {
	.header_info_inr h1 {
		font-size: 22px;
		padding: 8px 0 0 66px;
		line-height: 32px;
	}
}
