/*
Theme Name: aem_theme2025
Theme URI: http://aem2021.jp/
Description: AEM用テーマ
Author: takasan99
Author URI: https://nagano-now.jp
Version: 1.0
*/
@charset "utf-8";
/******************************************************************************
/* body
*******************************************************************************/
body {
	font-family: Arial, YuGothic, "Yu Gothic", "Hiragino Kaku Gothic ProN", "ヒラギノ角ゴ ProN W3", "メイリオ", Meiryo, "ＭＳ ゴシック", sans-serif;
	color: #221815;
}
.clearfix:after,.clearfix:before {
clear:both;
display:table;
content:" ";
}
.cleared
{
  float: none;
  clear: both;
  margin: 0;
  padding: 0;
  border: none;
  font-size: 1px;
}
a {
  text-decoration: none;
}
ul {
	list-style-type: none;
}

table {
    margin: 20px 5px;
}
table td {
    padding: 5px;
}
/******************************************************************************
/* header
*******************************************************************************/
#header-mobile {
    display: none;
}
#toppc-header {
	background-color: #5DB646;
	background-size: 100%;
	margin: 0;
	padding: 0;
	width: 100%;
	height: 80px;
}

.header-info {
    width: 100%;
	margin: 0;
}
.header-logo {
	margin: 0;
	padding: 0px;
	float: left;
}
.header-logo img  {
	max-width: 856px;
	height: 80px;
}

#page-header {
	margin: 0;
	padding: 0;
	width: 100%;
	height: 400px;
}
#page-header img {
	width: 100%;
	height: 400px;
	object-fit: cover; 
}

/******************************************************************************
/* menu
*******************************************************************************/
.navi {
	margin: 0 auto;
	height: 100px;
}
ul.menu {
	margin: 20px 0 15px;
	list-style-type: none;
    display: flex;
    justify-content: center;
}

ul.menu li {
	text-align: center;
	line-height: 65px;
	border-left-width: 1px;
	border-left-style: solid;
	border-left-color: #221714;
	width: auto;
	height: 65px;
	padding: 0 30px;
}
ul.menu li a {
    font-weight: bold;
	text-decoration: none;
	display: block;
	font-size: 20px;
	color: #221714;
}
ul.menu li.mr a {
    font-weight: bold;
    font-size: 26px;
	font-style: italic;
	font-family: 'Fira Sans Italic', sans-serif;
}
/******************************************************************************
/* home-slide
*******************************************************************************/

.header-image {
	width: 1600px!important;
	height: 735px;
	margin: 0 auto;
}
.header-image img {
    width: 100%;
	height: 735px!important;
	margin: 0;
	padding: 0;
	object-fit: cover; 
}
/*----------------menu2----------------*/
.top-bk {
	background-color: #D8EACA;
	height: 200px;
}
.menu2 {
	margin: 0 auto;
	padding: 0;
	position: relative;
	width: 800px;
	z-index: 99;
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 15px;
	list-style: none;
}

.menu-info {
  flex: 1 1 50px; /* 最小100pxで広がるボックス */
  max-width: 100%;
  text-align: center;
  margin-top: -80px;
}

.menu-info img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* 小さな画面での調整（オプション） */
@media (max-width: 480px) {
  .menu-info {
    flex: 1 1 45%; /* 2列表示 */
  }
}
/******************************************************************************
/* main
*******************************************************************************/
/*--------article1----------*/
#main {
    width: 100%;
	margin: 0;
	padding: 0;
}
#haba, .container {
    margin: 0 auto;
	width: 1200px;
}

/*----------newpost-----------*/
#new-posts {
    display: flex;
    flex-wrap: wrap;
    gap: 1%;
	width: 1200px;
	margin: 0 auto;
}
#new-posts .new-post {
	margin: 15px 0 5px 1%;
    width: calc(32.333% - 1%);
	display: flex;
	flex-direction: column;
	font-size: 16px;
	color: #ffffff;
}
#new-posts .new-post-img {
    width: 100%;
	height: 250px;
    overflow: hidden;
}
#new-posts .new-post-img img {
    width: 100%;
	height: 250px;
	object-fit: cover;
}
.post-date {
    margin: 5px;
}
.new-post-info {
    margin: 10px 10px;
	font-size: 1em;
}

.linkbn {
    margin: 20px 0;
    display: flex;
    justify-content: center;
}
.button-01{
	font-size: 1em;
	color: #ffffff;
	line-height: 130%;
	padding: 0 1em;
	position: relative;
	background: #10347A;
	border: none;
	cursor: pointer;
	transition: 800ms ease all;
	outline: none;
}
.button-01:hover{
  background:#fff;
  color:#10347A;
}
/*------more-btn---------*/
.more-btn-wrapper {
  text-align: center;
  margin: 30px auto;
}


/*-------------article2-----------*/

.article2 {
	background-color: #5DB646;
	margin: 0;
	padding: 30px 0 50px;
	width: 100%;
	height: auto;
}
h2.titleB {
	text-align: center;
	margin-top: 50px;
	margin-bottom: 30px;
}
.article2 p {
	font-size: 20px;
	font-weight: bold;
	line-height: 180%;
}
ul.new-posts {
	margin: 0;
	list-style-type: none;
	position: relative;
	width: 950px;
	float: right;
}
li.new-post {
	line-height: 250%;
	width: 800px;
	flost: left;
}
.day {
    color: #ffffff;
	font-size: 20px;
	float: left;
	margin: 0 20px 0 0;
}
.post-title {
	margin: 0 0 0 5px;
}
.post-title a {
    color: #ffffff;
	font-size: 20px;
}
.page-navi {
	position: absolute;
	right: 20px;
	bottom: 0;
}
/*-----------sns--------------*/
.article3 {
	background-color: #D8EACA;
	margin: 0;
	position: relative;
	height: 450px;
}
.m-1 {
	position: absolute;
	left: 300px;
	top: 0px;
}
.m-2 {
	position: absolute;
	right: 150px;
	top: -80px;
	z-index: 99;
}
.m-1 img {
	max-width: 100%!important;
	height: auto!important;
}
.m-2 img {
	max-width: 100%!important;
	height: auto!important;
}

.sns-menu {
	margin: 0 auto;
	list-style-type: none;
	position: relative;
	width: 40%;
	float: right;
	z-index: 999;
}
.sns-menu li {
    margin: 30px 10px 5px;
	float: left;
}

/*----------posts----------*/
#posts {
    margin: 30px 0;
}
    .post {
        margin: 3% 0 5%;
    }

        .post-header {
			margin-bottom: 15px;
			position: relative;
			width: 100%;
		}

        .post-content p {
			font-size: 18px;
			line-height: 130%;
			letter-spacing: 1%;
			padding: 5px 10px;
			overflow: hidden;
		}
        .post-content a {
			color: #008C46;
		}
		.post-newcontent {
		    margin: 5px 20px;
			font-size: 16px;
			line-height: 120%;
			letter-spacing: 1%;
		}
h1.title {
	font-size: 42px;
	font-weight: bold;
	text-align: center;
	padding-top: 30px;
	margin-bottom: 50px;
}
h1.page-title, h1.pagetitle {
	font-size: 26px;
	background-color: #679A42;
	background-image: url(img/title-img.png);
	background-position: right center;
	background-repeat: no-repeat;
	color: #ffffff;
	padding: 0 0.5em 0 1.4em;
	line-height: 60px;
    width: 98%;
    height:60px;
	position: relative;
}
h1.single-title {
	font-size: 28px;
	font-weight: bold;
	margin: 20px 0px 20px 20px;
	padding-left: 20px;
	border-bottom-width: 1px;
	border-bottom-style: solid;
	border-bottom-color: #000000;
	padding-bottom: 0;
}
h2.titleP {
	background-image: url(img/title-img-l.png);
	background-position: left bottom;
	background-repeat: no-repeat;
	margin: 20px 0px 20px 20px;
	padding: 5% 0 5% 13%;
	border-bottom-width: 1px;
	border-bottom-style: solid;
	border-bottom-color: #000000;
	padding-bottom: 0;
	height: auto;
} 
h2.titleP a {
	font-size: 26px;
	font-weight: bold;
}
a {
    color: #221815;
}
h3.title {
	font-size: 18px;
	font-weight: bold;
	line-height: 120%;
	margin: 10px;
	padding: 0px 10px;
	border-bottom-width: 1px;
	border-bottom-style: solid;
	border-bottom-color: #666666;
}
/* 見出し装飾 */
h4 {
  border-bottom: 5px solid #699B43;
  position: relative;
  padding: 5px 5px 5px 40px;/*アイコン分のスペース*/
  margin: 10px 5px;
  font-size: 24px;
}

h4:before {
  font-family: "Font Awesome 5 Free";
  content:"\f1b8";
  font-weight: 900;
  position: absolute;/*絶対位置*/
  font-size: 1.3em;/*サイズ*/
  left: 0;/*アイコンの位置*/
  top: 0;/*アイコンの位置*/
  color: #5DB646;/*アイコンの色*/
  font-weight: 900;
}
/*** Blog info ***/
.blog_info{
	font-size: 85%;
	color: #666000;
	margin: 0 0 20px;
	padding: 5px;
}
	.blog_info ul{ margin: 0;}
		.blog_info li{
			padding-left:20px;
			float: left;
			margin:-5px 15px 5px 5px !important;
			list-style: none !important;
			}
			.blog_info li a{color: #666;}
				div.blog_info li a:hover{color: #333;}

/*-------------footer-----------*/
#footer {
	background-color: #D8EACA;
	margin: 0;
	padding: 10px 0 0;
	width: 100%;
}
.footer-cont {
    width: 1200px;
	height: 150px;
	margin: 5px auto;
}
.footer-logo-bk {
	background-color: #5DB646;
	width: 100%;
	height: 80px;
}
.footer-logo img {
	float: right;
	max-width: 741px;
	height: 80px;
}
.footer-info {
	font-size: 22px;
	line-height: 150%;
	margin: 20px 0;
}
.footer-info strong {
	font-size: 22px;
	font-weight: bold;
	line-height: 150%;
}
.copyright {
	font-size: 14px;
	text-align: center;
	margin: 5px auto;
	padding: 0;
}
.totop {
	position: fixed;
	bottom: 15px;
	z-index: 12;
	right: 3%;
}
/******************************************************************************
/* itempage
*******************************************************************************/
.thumbimg-header {
	border-width: 1px;
	border-style: solid;
	border-color: #DBDBDB;
	position: relative;
	width: 100%;
	height: 200px;
	overflow: hidden;
}
h1.thumtitle {
	font-size: 42px!important;
	width: 75%;
    position:absolute;
    top: 50%;
	left: 20px;
    margin-top: -50px ;	
    letter-spacing: 7px;
    font-size:4em;
    line-height:0.95em;
    font-weight:bold;
    color: #221815;
    text-shadow:2px 2px 3px #4C6600;
}
.thumbimg {
	position: absolute;
	right: 0;
	top: 0px;
	max-width: 80%;
	z-index: 0;
	object-fit: cover; 
}
.item-info h2 {
  padding: 0.6em 0.7em;/*文字の上下 左右の余白*/
  color: #ffffff;/*文字色*/
  background: #221815;/*背景色*/
  border-left: solid 5px #5DB646;/*左線*/
  border-bottom: solid 3px #d7d7d7;/*下線*/
  font-size: 20px;
}
/******************************************************************************
/* itempage-tabmenu
*******************************************************************************/
.tab-wrap {
  display: flex;
  flex-wrap: wrap;
  margin:20px 0;
}
.tab-wrap:after {
  content: '';
  width: 100%;
  height: 3px;
  background-color: #698C00;
  display: block;
  order: -1;
}
.tab-label {
  color: White;
  background: LightGray;
  font-weight: bold;
  text-shadow: 0 -1px 0 rgba(0,0,0,.2);
  white-space: nowrap;
  text-align: center;
  padding: 10px .5em;
  order: -1;
  position: relative;
  z-index: 1;
  cursor: pointer;
  border-radius: 5px 5px 0 0;
  flex: 1;
}
.tab-label:not(:last-of-type) {
  margin-right: 5px;
}
.tab-content {
  width: 100%;
  height: 0;
  overflow: hidden;
  opacity: 0;
}
/* アクティブなタブ */
.tab-switch:checked+.tab-label {
  background-color: #698C00;
}
.tab-switch:checked+.tab-label+.tab-content {
  height: auto;
  overflow: auto;
  padding: 15px;
  opacity: 1;
  transition: .5s opacity;
  box-shadow: 0 0 3px rgba(0,0,0,.2);
}
/* ラジオボタン非表示 */
.tab-switch {
  display: none;
}
/*------------pdfreyout------------*/
.pdf-info {
    width: 80%;
	margin: 20px auto;
}
.pdf-info img {
    margin: 20px auto;
	max-width: 100%;
	height: auto;
}
.pdfname {
  position: relative;
  padding: 0.8em;
  background: #DFDFD0;
}

.pdfname:after {
  position: absolute;
  content: '';
  top: 100%;
  left: 30px;
  border: 15px solid transparent;
  border-top: 15px solid #DFDFD0;
  width: 0;
  height: 0;
}
/*-------------movie-url------------*/
.Box {
  position: relative;
  width: 100%;
  height: 0;
  padding-top: 56.25%;
}
.Box iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}

/*-------------item-title-------------*/
.post h3, h3.titleT {
  position: relative;
  padding: 5px 5px 5px 52px;
  margin: 10px 0;
  background: #221815;
  font-size: 20px;
  color: white;
  line-height: 1.3;
  z-index:-1;
}

.post h3:before, h3.titleT:before {
  position: absolute;
  content: '';
  left: -2px;
  top: -2px;
  border: none;
  border-left: solid 40px white;
  border-bottom: solid 79px transparent;
  z-index:-2;
}
/******************************************************************************
/* item-all
*******************************************************************************/
.item-infos {
    width: 98%;
	margin: 20px 0 20px 20px;
}
.item-box {
	border-width: 1px;
	border-style: solid;
	border-color: #DBDBDB;
	margin: 0px 0.8% 20px;
	padding: 0;
	position: relative;
	width: 18%;
	height: 300px;
	float: left;
}
.item-image {
	margin: 0;
	width:90%;
	height: 200px;
	padding: 5%;
	overflow: hidden;
}
.item-image img {
    width: 100%;
	height: auto;
	object-fit: cover; 
}
.item-title {
	text-align: center;
	margin: 5px;
	padding: 0;
	width: 95%;
}
.item-title a {
	font-size: 16px;
	font-weight: bold;
	color: #221815;
}
/*---------------------- 画像と文章の配列---------------------*/
.aligncenter {
  display: block;
  margin: 0 auto;
}
.alignright { float: right!important; }
.alignleft { float: left!important; }
.alignright, .alignleft {margin: 8px;}
 
img[class*="wp-image-"],img[class*="attachment-"] {
  height: auto;
  max-width: 100%;
}
 
.wp-caption
{
  border: 1px solid #ddd;
  text-align: center;
  background-color: #f3f3f3;
  padding-top: 4px;
  margin: 10px;
}

.wp-caption img
{
  margin: 0;
  padding: 0;
  border: 0 none;
}

.wp-caption p.wp-caption-text
{
  font-size: 11px;
  line-height: 17px;
  padding: 0 4px 5px;
  margin: 0;
}
/*-------------navibelow--------------*/
.nav-below {
	float: none;
	clear: both;
	margin-top: 30px;
}
.nav-below .nav-previous {
	float: left;
}
.nav-below .nav-next {
	float: right;
}
.nav-below .nav-previous, .nav-below .nav-next  {
  background-color: #fff;
  border: 2px solid #333;
  line-height: 50px;
}
.nav-below .nav-previous:hover, .nav-below .nav-next:hover  {
  background-color: #fff;
  border-color: #5DB646;
  color: #59b1eb;
}
.nav-below .nav-previous a, .nav-below .nav-next a {
  display: inline-block;
  width: 200px;
  height: 54px;
  text-align: center;
  text-decoration: none;
  line-height: 54px;
  outline: none;
}
.nav-below .nav-previous::before, .nav-below .nav-next::before,
.nav-below .nav-previous::after, .nav-below .nav-next::after {
  position: absolute;
  z-index: -1;
  display: block;
  content: '';
}
.nav-below .nav-previous, .nav-below .nav-next,
.nav-below .nav-previous::before, .nav-below .nav-next::before,
.nav-below .nav-previous::after, .nav-below .nav-next::after {
  -webkit-box-sizing: border-box;
  -moz-box-sizing: border-box;
  box-sizing: border-box;
  -webkit-transition: all .3s;
  transition: all .3s;
}

/*--------------companytable----------------*/
table.company{
  width: 100%;
  border-collapse: collapse;
}

table.company tr{
  border-bottom: solid 2px white;
}

table.company tr:last-child{
  border-bottom: none;
}

table.company th{
  position: relative;
  width: 30%;
  background-color: #5DB646;
  color: white;
  text-align: center;
  padding: 15px 0;
}

table.company th:after{
  display: block;
  content: "";
  width: 0px;
  height: 0px;
  position: absolute;
  top:calc(50% - 10px);
  right:-10px;
  border-left: 10px solid #5DB646;
  border-top: 10px solid transparent;
  border-bottom: 10px solid transparent;
}

table.company td{
  text-align: left;
  width: 70%;
  background-color: #eee;
  padding: 10px 5px 10px 30px;
}
/* --- お問い合わせフォーム --- */
/* デザインカスタマイズ */
div.wpcf7 { background:#fafafa; border:1px solid #ddd; padding:0px; -moz-border-radius:10px; -khtml-border-radius:10px; -webkit-border-radius:10px; border-radius:10px; margin:0 0 30px 0; }
div.wpcf7 p { padding:20px 20px 0; margin:0; font-size:14px; }
div.wpcf7 input, .wpcf7 textarea { border:1px solid #ccc; padding:8px; font-size:14px; }
div.wpcf7 textarea { width:97.5%; height:300px; }
div.wpcf7 input.wpcf7-submit {
   cursor:pointer; color:#fff; font-weight:bold; font-size:14px; width:200px; height:45px; margin:0 auto; display:block;
   -moz-border-radius:5px; -khtml-border-radius:5px; -webkit-border-radius:5px; border-radius:5px;
   background:#333; box-shadow: 0px 0px 3px 0px rgba(0, 0, 0, 0.5), inset 0px 32px 0px -12px #808080; border:1px solid #666;
}
div.wpcf7 input.wpcf7-submit:hover { background:#006080; box-shadow: 0px 0px 3px 0px rgba(0, 0, 0, 0.5), inset 0px 32px 0px -12px #007ea8; border:1px solid #006080; }
.wpcf7 input.wpcf7-submit:active { box-shadow:none; bottom:-2px; position:relative; }
.wpcf7 input:focus, .wpcf7 textarea:focus { border:1px solid #009de1; }
.wpcf7-captchac { border:1px solid #ccc; }
 
 
/* エラー個所をわかりやすく表示 */
.wpcf7 .wpcf7-not-valid { background: #ffb6c1; }
.wpcf7 span.wpcf7-not-valid-tip {font-size: 80%;}
.wpcf7 .wpcf7-response-output {margin: 10px 0 0; padding: 8px 35px 8px 14px; text-shadow: 0 1px 0 rgba(255, 255, 255, 0.5);
    -webkit-border-radius: 4px; -moz-border-radius: 4px; border-radius: 4px; }
.wpcf7 .wpcf7-validation-errors {color: #B94A48; background-color: #F2DEDE; border: 1px solid #EED3D7;}
.wpcf7 .wpcf7-mail-sent-ok {color: #3A87AD; background-color: #D9EDF7; border: 1px solid #BCE8F1;}
 
/* 必須赤色表示 */
.wpcf7 .required { color: #f00;}
/* 任意緑色表示 */
.wpcf7 .any{ color: #080;}

