@charset "utf-8";


/* 足あとを非表示 */
#footstep_wrap {
	display: none !important;
}

#mymainback {
	max-width: inherit;
	width: 100%;
	padding-top: 0;
}

/* リンクテキスト色 */
#main a {
	color: #333;
	color: var(--text-color, #333);
}

/* 重要なお知らせ */
#top_important {
	position: absolute;
	left: 0;
	top: 130px;
	display: grid;
	grid-template-columns: repeat(2, 1fr);
	grid-template-rows: -webkit-max-content 1fr;
	grid-template-rows:         max-content 1fr;
	gap: 20px;
	padding: 20px 30px;
	background-color: var(--tertiary-color);
	z-index: 1;
}

.top_important_ttl {
	grid-area: 1/1/2/2;
}
.top_important_ttl h2 {
	display: -webkit-flex;
	display:         flex;
	-webkit-align-items: center;
	        align-items: center;
	gap: 10px;
	position: relative;
	color: #fff;
	font-size: 3rem;
}
.top_important_ttl h2:before {
	content: "";
	width: 37px;
	height: 37px;
	background: url("/img/top/icon_important_white.png") no-repeat 0 0;
	background-size: cover;
}

.top_important_list {
	grid-area: 2/1/3/3;
}

#top_important ul {
	list-style: none;
}

#top_important ul li {
	width: 100%;
	display: table;
	box-sizing: border-box;
	margin: 0 0 15px;
	color: #fff;
}

#top_important ul li:last-child {
	margin-bottom: 0;
}

#top_important ul li > span {
	display: table-cell;
}

#top_important ul li > span.article_date {
	width: calc(11em + 10px);
}

#top_important ul li a {
	color: #fff;
}

#top_important .link_box {
	display: -webkit-flex;
	display:         flex;
	-webkit-flex-wrap: wrap;
	        flex-wrap: wrap;
	-webkit-justify-content: center;
	        justify-content: center;
	-webkit-align-items: flex-start;
	        align-items: flex-start;
	gap: 0;
}
#top_important .link_box a:after {
	content: none;
}
#top_important .link_box .link_ichiran {
	margin: 0;
}

#top_important .link_box span[class*=link_] a {
	display: block;
	border: 1px solid transparent;
	border-radius: 40px;
	background: #fff;
	color: var(--tertiary-color);
	font-size: 1.5rem;
	line-height: 1.8rem;
	text-decoration: none;
	padding: 10px 20px;
	font-weight: bold;
	text-align: center;
}
@media (any-hover: hover) {
	#top_important .link_box span[class*=link_] a:hover, #top_important .link_box span[class*=link_] a:focus {
                background: #fff;
                color: var(--tertiary-color);
                border: 1px solid transparent;
		text-decoration: underline;
	}
}

/* 防災メール連携（JavaScript） */
#main_box_emergency .box_top_emer {
	margin: 0 0 40px;
	padding: 30px 40px;
	background: #fffaec;
}

#main_box_emergency h2 {
	margin: 0 0 20px;
	padding: 0;
	color: #333;
	font-size: 2.4rem;
	text-align: center;
}

#main_box_emergency ul {
	margin: 0;
	padding: 0;
	list-style: none;
}

#main_box_emergency ul li {
	width: 100%;
	display: table;
	box-sizing: border-box;
	margin: 0 0 15px;
}

#main_box_emergency ul li:last-child {
	margin-bottom: 0;
}

#main_box_emergency ul li > span {
	display: table-cell;
}

#main_box_emergency ul li > span.emer_date {
	width: calc(14.5em + 10px);
}

#main_box_emergency ul li > span.emer_title > span {
	display: block;
	height: 1.5em;
	overflow: hidden;
	color: #333;
	text-decoration: underline;
	cursor: pointer;
}

#main_box_emergency ul li.emer_title_open > span.emer_title > span {
	height: auto;
	text-decoration: none;
}

#main_box_emergency .btn_emer {
	text-align: center;
	padding: 30px 0 0;
}

#main_box_emergency .btn_emer #emer_mail_open_all {
	display: inline-block;
	border: 1px solid transparent;
	border-radius: 0;
	background: #fff;
	color: #333;
	font-size: 1.5rem;
	line-height: 1.8rem;
	text-decoration: none;
	margin: 0;
	padding: 10px 20px;
	text-align: center;
	box-sizing: border-box;
	width: 260px;
	max-width: 100%;
}

#main_box_emergency .btn_emer #emer_mail_open_all:hover, #main_box_emergency .btn_emer #emer_mail_open_all:focus {
	text-decoration: underline;
}

/* スライドショー */
#top_photo_wrap {
	position: relative;
	overflow: hidden;
	margin-top: -130px;
	margin-bottom: 60px;
	z-index: 0;
}

#top_photo {
	width: 100%;
	margin: 0 auto;
}

#top_photo_list {
	position: relative;
}

#top_photo_list .photo img {
	width: 100%;
	height: 740px;
	-o-object-fit: cover;
	   object-fit: cover;
}

/* タイトル */
.top_title {
	position: relative;
	width: 100%;
	padding-bottom: 10px;
	margin-bottom: 40px;
	text-align: center;
}
.top_title:before {
	content: "";
	position: absolute;
	left: 50%;
	bottom: 0;
	width: 86px;
	height: 0;
	margin-left: -43px;
	border-top: 3px solid var(--primary-color);
}

/*中の箱*/
.top_inner_box {
	width: min(100%, var(--content-width));
	margin: 0 auto;
}

/* 検索 */
#top_search_keyword2 {
	width: min(100%, 45rem);
	margin: 0 auto 60px;
}

#cse-search-box2 {
	width: 100%;
}

#cse-search-box2 .search_ttl {
	display: none;
}

#cse-search-box2 .search_ipt {
	display: -webkit-flex;
	display:         flex;
	-webkit-flex-wrap: wrap;
	        flex-wrap: wrap;
	-webkit-justify-content: center;
	        justify-content: center;
	-webkit-align-items: stretch;
	        align-items: stretch;
	width: 100%;
	margin: 0 auto;
	border: 1px solid var(--primary-color);
}

#tmp_query2 {
	display: inline-block;
	vertical-align: middle;
	box-sizing: border-box;
	width: calc(100% - 98px) !important;
	height: 55px !important;
	border: none !important;
}

#tmp_query2:focus,
#tmp_query2:not(:placeholder-shown) {
  background-image: none !important;
}

#submit2 {
	display: inline-block;
	vertical-align: middle;
	width: 98px;
	height: 55px;
	border: none;
	background: var(--primary-color);
	color: fff;
}

#cse_filetype2 {
	margin-top: 5px;
	text-align: right;
}

#cse_filetype2 fieldset {
	border: none;
}

#cse_filetype2 fieldset legend {
	display: none;
}

#cse_filetype2 fieldset span {
	font-size: 1.4rem;
	display: inline-block;
	vertical-align: middle;
}

#cse_filetype2 fieldset span input {
	margin: 3px 4px 5px 5px;
	vertical-align: middle;
}

/* タブ */
#top_tab_wrap {
	margin-bottom: 60px;
	padding: 0 30px;
}

#top_tab_wrap .top_inner_box {
	display: -webkit-flex;
	display:         flex;
	-webkit-flex-wrap: wrap;
	        flex-wrap: wrap;
}

#top_tab_title {
	width: 210px;
}

#top_tab_title ul {
	list-style: none;
	border-bottom: 2px solid transparent;
	display: -webkit-flex;
	display:         flex;
	-webkit-flex-direction: column;
	        flex-direction: column;
	gap: 20px;
}

#top_tab_title ul li {
	width: 100%;
}

#top_tab_title ul li button {
	display: -webkit-flex;
	display:         flex;
	-webkit-align-items: center;
	        align-items: center;
	gap: 10px;
	width: 100%;
	box-sizing: border-box;
	background-color: #fff;
	border: 1px solid transparent;
	color: var(--primary-color);
	font-size: 2rem;
	font-weight: bold;
	line-height: 1.8rem;
        letter-spacing: 2px;
	text-decoration: none;
	text-align: center;
	padding: 15px 20px;
	transition: .3s background-color, .3s color;
}
#top_tab_title ul li button:before {
	-webkit-flex-shrink: 0;
	        flex-shrink: 0;
	content: "";
	display: block;
	width: 10px;
	height: 10px;
	border: 1px solid var(--primary-color);
}
@media (any-hover: hover) {
	#top_tab_title ul li button:hover {
		text-decoration: underline;
	}
}

#top_tab_title ul li#tab-title-0 button {
	border-color: var(--primary-color);
}
#top_tab_title ul li#tab-title-0 button:before {
	border-color: transparent;
}

#top_tab_title ul li#tab-title-0.tab_on button {
	background-color: var(--primary-color);
	color: #fff;
}

#tab-title-1.tab_on button:before, #tab-title-2.tab_on button:before, #tab-title-3.tab_on button:before {
	background-color: var(--primary-color);
}

#top_tab_detail {
	-webkit-flex: 1;
	        flex: 1;
	border-bottom: 2px solid transparent;
	padding-left: 60px;
}

/* 新着情報（件数） */
.release_day {
	margin-bottom: 1em;
	font-size: 1.5rem;
}

.release_day span {
	display: inline-block;
	margin-right: 1em;
}

/* 新着情報（リスト） */
.top_tab_detail_list ul {
	margin: 0;
	padding: 0;
	list-style: none;
}

.top_tab_detail_list ul li {
	width: 100%;
	display: table;
	box-sizing: border-box;
	margin-bottom: 15px;
	padding-bottom: 15px;
	border-bottom: 1px solid var(--light-color);
}

.top_tab_detail_list ul li:last-child {
	margin-bottom: 0;
}

.top_tab_detail_list ul li > span {
	display: table-cell;
}

.top_tab_detail_list ul li > span.article_date {
	width: calc(11em + 10px);
}

/* 新着情報（情報はありません） */
.top_tab_detail_list p.no_data {
        padding-left: 95px;
}


/* 新着情報（newアイコン） */
.top_tab_detail_list img.icon_new {
	vertical-align: baseline;
	margin-left: .5em;
}

/* 新着情報（一覧・RSS） */
.top_tab_detail_box .link_box {
	-webkit-justify-content: center;
	        justify-content: center;
}
.top_tab_detail_box .link_box .link_rss {
	display: none;
}

.top_tab_detail_box2 .link_box .link_ichiran {
	margin-right: 265px;
	}

/* トピックス */
#top_topics {
	position: relative;
	width: 100%;
	padding: 0 30px 30px;
	margin-bottom: 60px;
}
#top_topics:before {
	content: "";
	position: absolute;
	left: 0;
	bottom: 0;
	width: 100%;
	height: 50%;
	background: rgba(var(--light-color-rgb), .48) url("/img/top/bg_topics.png") no-repeat 50% -50px;
	background-size: 2472px auto;
}
#top_topics .swiper {
	width: min(100%, var(--content-width));
	margin: 0 auto;
}
#top_topics .swiper-slide {
	display: -webkit-flex;
	display:         flex;
	-webkit-flex-direction: column;
	        flex-direction: column;
	-webkit-align-items: center;
	        align-items: center;
}
#top_topics .swiper-img {
	display: block;
	width: 100%;
	aspect-ratio: 310/200;
	margin-bottom: 10px;
	background-color: var(--light-color);
	border-radius: 5px;
	overflow: hidden;
}
#top_topics .swiper-img:empty {
	display: block;
	width: 100%;
	height: 100%;
	background: url("/img/common/noimage.png") no-repeat 50% 50%;
	background-size: cover;
}
#top_topics_swiper div ul p.no_data {
        margin: 0 auto;
}


/* トピックス（サムネイルなし） */
.topics_no_image_list {
	margin-top: 30px;
}

/* 情報を探す */
#top_info {
	margin-bottom: 60px;
	padding: 0 30px;
}

.top_info_link {
	list-style: none;
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	gap: 1px;
	background-color: var(--light-color);
	border-radius: 5px;
	box-shadow: 0 0 9px rgba(0, 0, 0, .15);
	overflow: hidden;
}
.top_info_link li {
	background-color: #fff;
}
.top_info_link a {
	display: -webkit-flex;
	display:         flex;
	-webkit-flex-direction: column;
	        flex-direction: column;
	-webkit-align-items: center;
	        align-items: center;
	-webkit-justify-content: center;
	        justify-content: center;
	gap: 10px;
	min-height: 200px;
	height: 100%;
	padding: 30px 10px;
	transition: .3s background-color, .3s color;
	text-decoration: none;
}
.top_info_link a:link {
	color: var(--text-color);
}
.top_info_link a img {
	width: 76px;
	height: auto;
	transition: .3s scale;
}
@media (any-hover: hover) {
	.top_info_link a:hover {
		background-color: rgba(var(--secondary-color-rgb), .2);
	}
	.top_info_link a:hover img {
		scale: 1.2;
	}
}

/* 厚真町のこと */
#top_about {
	position: relative;
	margin-bottom: 60px;
	background-color: rgba(var(--light-color-rgb), .48);
}

.top_about_bg {
	position: relative;
	padding: 60px 30px;
	z-index: 0;
}
.top_about_bg:before, .top_about_bg:after {
	content: "";
	display: block;
	position: absolute;
	top: 0;
	width: calc(50% + 240px);
	height: 100%;
	background-repeat: no-repeat;
	z-index: -1;
}
.top_about_bg:before {
	left: 0;
	background-image: url("/img/top/bg_about_bottom.png");
	background-size: 1581px auto;
	background-position: right 0 bottom 0;
}
.top_about_bg:after {
	right: 0;
	background-image: url("/img/top/bg_about_top.png");
	background-size: 2218px auto;
	background-position: left 0 top 0;
}

.top_about_link {
	position: relative;
	list-style: none;
	display: grid;
	grid-template-columns: repeat(12, 1fr);
	grid-template-rows: repeat(7, 1fr);
	grid-template-rows: 1fr 1fr auto -webkit-max-content -webkit-max-content -webkit-max-content auto;
	grid-template-rows: 1fr 1fr auto max-content max-content max-content auto;
	gap: 30px;
	z-index: 3;
}
.top_about_link > li {
	background-color: #fff;
	border-radius: 5px;
	box-shadow: 0 0 9px rgba(0, 0, 0, .15);
}
.top_about_link li:first-child {
	grid-area: 1/1/4/7;
}
.top_about_link li:nth-child(2) {
	grid-area: 1/7/3/9;
}
.top_about_link li:nth-child(3) {
	grid-area: 1/9/3/11;
}
.top_about_link li:nth-child(4) {
	grid-area: 1/11/3/13;
}
.top_about_link li:nth-child(5) {
	grid-area: 3/7/4/10;
}
.top_about_link li:nth-child(6) {
	grid-area: 3/10/4/13;
}
.top_about_link li:nth-child(7) {
	grid-area: 4/1/7/13;
}
.top_about_link li:nth-child(8) {
	grid-area: 7/1/8/5;
}
.top_about_link li:nth-child(9) {
	grid-area: 7/5/8/9;
}
.top_about_link li:nth-child(10) {
	grid-area: 7/9/8/13;
}
.top_about_link a:link:not(.link_ichiran a) {
	color: var(--text-color);
	text-decoration: none;
}
@media (any-hover: hover) {
	.top_about_link a:hover {
		text-decoration: underline;
	}
}
.top_about_link > li > a {
	display: -webkit-flex;
	display:         flex;
	-webkit-justify-content: center;
	        justify-content: center;
	-webkit-align-items: center;
	        align-items: center;
	gap: 40px;
	height: 100%;
	padding: 20px 10px;
	text-align: center;
	line-height: 1.3;
	transition: .3s background-color, .3s color;
}
@media (any-hover: hover) {
        .top_about_link > li > a:hover, .top_about_link > li > a:focus{
                background-color: var(--secondary-color);
        }
        .top_about_link > li:nth-child(n+2):nth-child(-n+6) > a:hover, .top_about_link > li:nth-child(n+2):nth-child(-n+6) > a:focus {
                background-color: #FAF3E6;
        }
}
.top_about_link > li > a.column {
	-webkit-flex-direction: column;
	        flex-direction: column;
}
.top_about_link > li > a .icon {
	display: block;
}
.top_about_link > li > a .icon img {
	width: 50px;
	height: 50px;
	-o-object-fit: contain;
	   object-fit: contain;
	-o-object-position: center;
	   object-position: center;
}
.top_about_link > li > a .icon.note img {
	width: 73px;
}

.koho {
	padding: 30px 40px;
}
.koho h3 {
	font-size: 2.6rem;
}

.koho_inner {
	display: -webkit-flex;
	display:         flex;
	gap: 30px;
	margin-top: 30px;
}

.koho_img {
	width: 164px;
}
.koho_img img {
	box-shadow: 0 0 9px rgba(0, 0, 0, .15);
}

.koho_text {
	display: -webkit-flex;
	display:         flex;
	-webkit-flex-direction: column;
	        flex-direction: column;
	-webkit-justify-content: space-between;
	        justify-content: space-between;
}
.koho_text .balloon {
	position: relative;
	display: -webkit-flex;
	display:         flex;
	-webkit-flex-direction: column;
	        flex-direction: column;
}
.koho_text .balloon:before, .koho_text .balloon:after {
	content: "";
	display: block;
	width: 63px;
	height: 0;
	border-top: 1px solid var(--secondary-color);
}
.koho_text .balloon:before {
	margin-bottom: 20px;
	-webkit-transform: rotate(-10deg);
	        transform: rotate(-10deg);
}
.koho_text .balloon:after {
	margin-top: 19px;
	-webkit-transform: rotate(10deg);
	        transform: rotate(10deg);
}
.koho_text .link_box {
	-webkit-justify-content: center;
	        justify-content: center;
}
.koho_text .link_box .link_ichiran {
	margin: 0;
}
.koho_text .link_box .link_ichiran a {
	font-size: 1.8rem;
}

.about_child_link {
	list-style: none;
	display: -webkit-flex;
        justify-content: space-evenly;
        gap: 60px;
        padding: 40px 50px;
}
.about_child_link li {
	-webkit-flex: 1;
	        flex: 1;
        max-width: 160px;
}
.about_child_link a {
	display: -webkit-flex;
	display:         flex;
	-webkit-flex-direction: column;
	        flex-direction: column;
	-webkit-align-items: center;
	        align-items: center;
	gap: 15px;
}
.about_child_link a span {
	display: block;
	line-height: 1;
	overflow: hidden;
}
.about_child_link a img {
	transition: .3s scale;
}
@media (any-hover: hover) {
	.about_child_link a:hover img {
		scale: 1.1;
	}
}

/* 関連リンク */
#top_banner_2_list {
	padding: 0 30px;
}
#top_banner_2_list .swiper {
	padding: 9px;
}
#top_banner_2_list li {
	height: auto;
	background-color: #fff;
	border-radius: 5px;
	box-shadow: 0 0 9px rgba(0, 0, 0, .15);
}
#top_banner_2_list a {
	display: -webkit-flex;
	display:         flex;
	-webkit-flex-direction: column;
	        flex-direction: column;
	-webkit-align-items: center;
	        align-items: center;
	gap: 10px;
	margin: 0 auto;
	padding: 20px;
}

/* ミニカレンダー */
#top_calendar_detail {
	width: 100%;
}

#top_calendar_detail ul {
	margin: 0 0 20px;
	padding: 0;
	list-style: none;
	width: 100%;
	display: table;
}

#top_calendar_detail ul li {
	display: table-cell;
	vertical-align: middle;
}

#top_calendar_detail ul li.calendar_index_last {
	width: 4em;
	text-align: left;
}

#top_calendar_detail ul li.calendar_index_next {
	width: 4em;
	text-align: right;
}

#top_calendar_detail ul li.calendar_index_now {
	text-align: center;
}

table#top_calendar_table {
	width: 100%;
	border: 1px solid;
	border-collapse: collapse;
}

table#top_calendar_table th {
	border: 1px solid;
	font-weight: normal;
	text-align: center;
	padding: 10px 0;
	font-size: 80%;
}

table#top_calendar_table td {
	border: 1px solid;
	text-align: center;
	padding: 10px 0;
}

table#top_calendar_table td a {
	display: block;
}

.cal_sun {
	color: #900;
	background-color: #ffdde6;
}

.cal_mon, .cal_tue, .cal_wed, .cal_thu, .cal_fri {
	background-color: #f5f5f5;
}

.cal_sat {
	color: #009;
	background-color: #cdf;
}

.cal_hol {
	background-color: #ffdde6;
}

.cal_today {
	background-color: #ffff80;
}

#top_event_today {
	margin-top: 30px;
}

/* リンク */
.top_linklist {
	margin: 40px 0 0;
	display: -webkit-flex;
	display:         flex;
	-webkit-flex-wrap: nowrap;
	        flex-wrap: nowrap;
	-webkit-justify-content: flex-start;
	        justify-content: flex-start;
	-webkit-align-items: stretch;
	        align-items: stretch;
	gap: 20px;
}

.top_linklist_box {
	width: 100%;
	border: 2px solid;
	box-sizing: border-box;
}

.top_linklist_box h2 {
	background: #333;
	color: #fff;
	font-size: 1.8rem;
	margin: 0;
	padding: 15px 20px;
}

.top_linklist_box ul {
	margin: 0;
	padding: 20px 20px 20px 40px;
}

.top_linklist_box ul li {
	margin-bottom: 10px;
}

.top_linklist_box ul li:last-child {
	margin-bottom: 0;
}

/* 人口・世帯数 */
.top_jinkou {
	margin: 40px 0 0;
}

.top_jinkou h2 {
	margin: 0 0 20px;
	padding: 0;
	font-size: 2rem;
}

.top_jinkou_list {
	display: -webkit-flex;
	display:         flex;
	-webkit-flex-wrap: wrap;
	        flex-wrap: wrap;
	-webkit-justify-content: flex-start;
	        justify-content: flex-start;
	-webkit-align-items: flex-start;
	        align-items: flex-start;
	gap: 10px 20px;
}

.top_jinkou_list dl {
	display: -webkit-flex;
	display:         flex;
	-webkit-flex-wrap: wrap;
	        flex-wrap: wrap;
	-webkit-justify-content: flex-start;
	        justify-content: flex-start;
	-webkit-align-items: flex-start;
	        align-items: flex-start;
	margin: 0;
	padding: 0;
}

.top_jinkou_list dl dt {
	display: inline-block;
	margin: 0;
	padding: 0;
}

.top_jinkou_list dl dd {
	display: inline-block;
	margin: 0;
	padding: 0;
}

/* 時計 */
.top_tokei {
	margin: 40px 0 0;
}

.top_tokei h2 {
	margin: 0 0 20px;
	padding: 0;
	font-size: 2rem;
}

.top_tokei_img {
	width: 320px;
	height: 240px;
	position: relative;
}

#tokei_photo {
	width: 320px;
	height: 240px;
	position: relative;
	overflow: hidden;
}

#tokei_photo .clock-image {
	display: block;
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	-o-object-fit: contain;
	   object-fit: contain;
	opacity: 0;
	transition: opacity 1s ease-in-out;
}

#tokei_photo .clock-image.active {
	opacity: 1;
}

#tokei_time {
	position: absolute;
	top: 20px;
	right: 20px;
	z-index: 1;
	font-size: 3rem;
	font-weight: bold;
	line-height: 1;
	text-shadow: 0 0 3px #fff, 0 0 3px #fff, 0 0 3px #fff, 0 0 3px #fff, 0 0 3px #fff, 0 0 3px #fff, 0 0 3px #fff, 0 0 3px #fff, 0 0 3px #fff, 0 0 3px #fff, 0 0 3px #fff, 0 0 3px #fff, 0 0 3px #fff, 0 0 3px #fff, 0 0 3px #fff;
}

/* カウントダウン */
.count_down_box_wrap {
	margin: 40px 0 0;
	display: -webkit-flex;
	display:         flex;
	-webkit-flex-wrap: wrap;
	        flex-wrap: wrap;
	-webkit-justify-content: flex-start;
	        justify-content: flex-start;
	-webkit-align-items: stretch;
	        align-items: stretch;
	gap: 30px;
}

.count_down_box {
	width: calc(50% - 15px);
	box-sizing: border-box;
	background: #f6f6f6;
	padding: 20px;
}

.count_down_box2 {
	display: -webkit-flex;
	display:         flex;
	-webkit-flex-wrap: nowrap;
	        flex-wrap: nowrap;
	-webkit-justify-content: space-between;
	        justify-content: space-between;
	-webkit-align-items: flex-start;
	        align-items: flex-start;
}

.count_down_box2 > span {
	display: inline-block;
	box-sizing: border-box;
}

.count_down_box2 > span.count_img {
	width: 200px;
}

.count_down_box2 > span.count_img > span {
	display: block;
}

.count_down_box2 > span.count_img > span img {
	width: 100%;
	height: auto;
}

.count_down_box2 > span.count_txt {
	width: calc(100% - 220px);
}

.count_down_box2 > span.count_txt:only-child {
	width: 100%;
}

.count_down_box2 > span.count_txt > span {
	display: block;
}

.count_down_box2 > span.count_txt > span.count_comment {
	margin-top: 10px;
	font-size: 1.4rem;
}

.count_down_box2 > span.count_txt > span.count_day {
	margin-top: 10px;
	color: #c00;
	text-align: right;
}

.count_down_box2 > span.count_txt > span.count_day span {
	font-size: 3rem;
	font-weight: bold;
	line-height: 1;
	margin-left: .5em;
	margin-right: .25em;
}

/* バナー広告 */
ul.banner_list {
	margin: 0;
	padding: 0;
	list-style: none;
	display: -webkit-flex;
	display:         flex;
	-webkit-flex-wrap: wrap;
	        flex-wrap: wrap;
	-webkit-justify-content: flex-start;
	        justify-content: flex-start;
	-webkit-align-items: flex-start;
	        align-items: flex-start;
	gap: 20px;
}

ul.banner_list li {
	width: calc(25% - 15px);
}

ul.banner_list li img {
	width: 100%;
	height: auto;
}

/* ==================================================
スマートフォン
================================================== */
@media screen and (max-width: 1080px) {
	#mymainback {
		margin: 0;
		padding-bottom: 60px;
	}
	#main_a {
		display: -webkit-flex;
		display:         flex;
		-webkit-flex-direction: column;
		        flex-direction: column;
	}
	/* 重要なお知らせ */
	#top_important {
		top: 75px;
	}
        #top_important .link_box span[class*=link_] a:hover {
                color: var(--tertiary-color);
                background: #fff;
                text-decoration: underline;
        }
	/* 防災メール連携（JavaScript） */
	#main_box_emergency .box_top_emer {
		padding: 30px 20px;
	}
	#main_box_emergency h2 {
		font-size: 2rem;
	}
	#main_box_emergency ul li {
		width: auto;
		display: block;
	}
	#main_box_emergency ul li > span {
		display: block;
	}
	#main_box_emergency ul li > span.emer_date {
		width: auto;
	}
	#main_box_emergency .btn_emer #emer_mail_open_all {
		font-size: 1.3rem;
	}
	/* スライドショー */
	#top_photo_wrap {
		margin-top: -75px;
	}
	#top_photo_list .photo img {
		height: 540px;
	}
	/* キーワード検索 */
	#top_search_keyword2 {
		padding: 0 15px;
	}
	/* 新着情報（件数） */
	.release_day {
		font-size: 1.3rem;
	}
	/* 新着情報（リスト） */
        #top_tab_detail {
                padding-left: 3%;
        }
	.top_tab_detail_list ul li {
		width: auto;
		display: block;
		position: relative;
	}
	.top_tab_detail_list ul li > span {
		display: block;
	}
	.top_tab_detail_list ul li > span.article_date {
		width: auto;
	}
        .top_tab_detail_list p.no_data {
                padding-left: 0;
        }

	/* 新着情報（一覧・RSS） */
	.top_tab_detail_box .link_box span[class*=link_] a {
		font-size: 1.3rem;
	}
        .top_tab_detail_box2 .link_box .link_ichiran {
                margin-right: 235px;
        }
        #main .top_tab_detail_box2 .link_ichiran a {
                min-width: 190px;
        }


	/* 厚真町のこと */
	.top_about_bg {
		padding: 60px 15px;
	}
	.top_about_bg:before, .top_about_bg:after {
		width: 100%;
	}
	.top_about_bg:before {
		left: 0;
		background-size: 1264px auto;
		background-position: right 50% bottom 0;
	}
	.top_about_bg:after {
		right: 0;
		background-size: 1824px auto;
		background-position: right 0 top -14%;
	}
	.top_about_link {
		display: -webkit-flex;
		display:         flex;
		-webkit-flex-direction: column;
		        flex-direction: column;
		gap: 30px;
		max-width: 480px;
		margin: 0 auto;
	}
	.top_about_link br {
		display: none;
	}
	.top_about_link > li > a {
		-webkit-justify-content: flex-start;
		        justify-content: flex-start;
		gap: 20px;
		padding: 20px;
		text-align: left;
	}
	.top_about_link > li > a.column {
		-webkit-flex-direction: row;
		        flex-direction: row;
		-webkit-align-items: center;
		        align-items: center;
	}
	.top_about_link > li > a .icon {
		width: 80px;
		height: 50px;
	}
	.top_about_link > li > a .icon.note {
		width: 80px;
	}
	.top_about_link > li > a .icon img {
		display: block;
		margin: 0 auto;
	}
        .top_about_link li:nth-of-type(8) a, .top_about_link li:nth-of-type(9) a, .top_about_link li:nth-of-type(10) a {
                justify-content: center;
        }


	.koho {
		padding: 20px;
	}
	.koho h3 {
		font-size: 2.2rem;
	}
	.koho_inner {
		-webkit-align-items: center;
		        align-items: center;
		gap: 20px;
		margin-top: 15px;
	}
	.koho_img {
		width: 116px;
	}
	.koho_text .balloon {
		font-size: 1.3rem;
	}
	.koho_text .link_box .link_ichiran {
		margin-top: 30px;
	}
	.koho_text .link_box .link_ichiran a {
		font-size: 1.6rem;
	}
	.koho_text .link_ichiran a {
                gap: 15px !important;
	}
	.about_child_link {
		-webkit-flex-wrap: wrap;
		        flex-wrap: wrap;
		gap: 0;
		padding: 15px;
	}
	.about_child_link li {
		-webkit-flex: auto;
		        flex: auto;
		width: 50%;
		padding: 15px;
	}
	/* 関連リンク */
	#top_banner_2_list a {
		padding: 15px;
	}
	/* リンク */
	.top_linklist {
		-webkit-flex-wrap: wrap;
		        flex-wrap: wrap;
		gap: 15px;
	}
	.top_linklist_box {
		width: 100%;
	}
	.top_linklist_box h2 label[for*=acc_ttl_label], .top_linklist_box h2.acc_title.accordion .accordion_icon {
		margin: -15px -20px; /* h2 の padding の値をマイナスにして指定する */
		padding: 15px 20px; /* h2 の padding と同じ値を指定する */
		padding-right: 40px;
		background-position: right 20px top 50%;
		background-image: url("/img/sp/acc_open_white.png");
	}
	.top_linklist_box h2.acc_open label[for*=acc_ttl_label], .top_linklist_box h2.acc_title.accordion.acc_open .accordion_icon {
		background-image: url("/img/sp/acc_close_white.png");
	}
	/* カウントダウン */
	.count_down_box_wrap {
		display: block;
	}
	.count_down_box {
		width: auto;
	}
	.count_down_box:nth-child(n+2) {
		margin-top: 15px;
	}
	.count_down_box2 > span.count_img {
		width: 120px;
	}
	.count_down_box2 > span.count_txt {
		width: calc(100% - 140px);
	}
	/* バナー広告 */
	ul.banner_list {
		gap: 10px;
	}
	ul.banner_list li {
		width: calc(50% - 5px);
		max-width: 200px;
	}
}
@media screen and (max-width: 767px) {
	/* 重要なお知らせ */
	#top_important {
		display: -webkit-flex;
		display:         flex;
		-webkit-flex-direction: column;
		        flex-direction: column;
		position: relative;
		top: 0;
		padding: 30px 20px;
	}
	#top_important h2 {
		font-size: 2rem;
	}
	#top_important ul li {
		width: auto;
		display: block;
	}
	#top_important ul li > span {
		display: block;
	}
	#top_important ul li > span.article_date {
		width: auto;
	}
	#top_important .link_box {
		-webkit-justify-content: center;
		        justify-content: center;
	}
	#top_important .link_box span[class*=link_] a {
		font-size: 1.3rem;
	}
	/* スライドショー */
	#top_important + #top_photo_wrap {
		margin-top: 0;
	}
	#top_photo_list .photo img {
		height: 400px;
	}
	/* タブ */
	#top_tab_wrap {
		padding: 0 15px;
	}
	#top_tab_wrap .top_inner_box {
		display: -webkit-flex;
		display:         flex;
		-webkit-flex-direction: column;
		        flex-direction: column;
	}
	#top_tab_title {
		width: 100%;
	}
	#top_tab_title ul {
		-webkit-flex-direction: row;
		        flex-direction: row;
		-webkit-flex-wrap: wrap;
		        flex-wrap: wrap;
		-webkit-justify-content: space-between;
		        justify-content: space-between;
		gap: 10px;
	}
	#top_tab_title ul li {
		width: auto;
	}
	#top_tab_title ul li button {
		font-size: 1.6rem;
		line-height: 1.4rem;
		padding: 15px 0;
	}
	#top_tab_title ul li button:before {
		-webkit-flex-shrink: 0;
		        flex-shrink: 0;
		content: "";
		display: block;
		width: 10px;
		height: 10px;
		border: 1px solid var(--primary-color);
	}
	#top_tab_title ul li#tab-title-0 {
		width: 100%;
	}
	#top_tab_detail {
		padding-left: 0;
	}
        .top_tab_detail_box2 .link_box .link_ichiran {
                margin-right: 0px;
        }

	/* トピックス */
	#top_topics {
		padding: 0 0 30px;
	}
	/* 情報を探す */
	#top_info {
		padding: 0 15px;
	}
	.top_info_link {
		grid-template-columns: repeat(2, 1fr);
	}
	.top_info_link a {
		min-height: 150px;
		padding: 20px 5px;
	}
	/* 関連リンク */
	#top_banner_2_list {
		padding: 0;
	}
}
/* ==================================================
スマートフォン ここまで
================================================== */