
/*----------------------------------------------------------------------------
モバイル用設定（1026～1199ｐｘ以下）
---------------------------------------------------------------------------*/
@media screen and (min-width:1025px) and ( max-width:1199px) {
.flex_test-box-news {
    display: flex;
    flex-direction: column;
    width: 100%;
    align-items: center;
    margin-top: 50vh;
    margin-bottom: 10px;
}
}

/*----------------------------------------------------------------------------
モバイル用設定（1024ｐｘ以下）
---------------------------------------------------------------------------*/
@media screen and (max-width:1025px) {
.hamburger-demo-menubox{
display: block;
}

.hide-pc {
    display: none;
  }

.small-img img{
    width: 50%;
  }
.br-sp {display: none; }
.br-pc {display: block; }
.mobafoot{
display: block;
}

/*-------------------------------------
flexboxの横分割
--------------------------------------*/
.flex_test-box {
    display: flex;
    flex-direction: column;
    width: 98%;
    align-items: center;
    margin-top: 10px;
}

.flex_test-box img{
    height: 100%;
}

.flex_test-box2 {
    display: flex;
    flex-direction: column;
    width: 100% !important;
    align-items: center;
    margin-top: 10px;
}

.flex_test-box2b {
    display: flex;
    flex-direction: column;
    height: 40vw;
    align-items: center;
}
.flex_test-box3 {
    display: flex;
    flex-direction: column;
    width: 100%;
    align-items: center;
}

.flex_test-item0 {
    padding: 0px;
    text-align:center;
}

.flex_test-item0:nth-child(1) {
    width: 100%; 
}

.flex_test-item3 {
    width: 100%;                 /* 幅指定 */
}
.flex_test-item3 img{
    width: 100%;                 /* 幅指定 */
    text-align:left;
}
.flex_test-item3 img.small-img{
    width: 50%;
  }
.flex_test-item3:nth-child(1) {
    width: 100%; 
    order: 2;
}
 
.flex_test-item3:nth-child(2) {
    width: 100%; 
    order: 1;
}

.flex_test-item4 {
  width: 100% !important; 
  display: flex;
  flex-direction: column; /* スマホのときは上から下に縦並び */
  gap: 5px;              /* 文字と画像の間のすき間 */
}

.about-text-group {
  width: 100%;
  text-align: center; 
}

.about-img-group {
  width: 100%;
}

.flex_test-item4:nth-child(1) {
    width: 100%; 
    order: 1;
}
 
.flex_test-item4:nth-child(2) {
    width: 100%; 
    order: 2;
    margin-top: 0; 
    
    /* 左右に少しだけクッション（余白）を入れて、窮屈さをなくす */
    padding-left: 20px;
    padding-right: 20px;
    box-sizing: border-box;
}

/* 文字の箱を広くして、見出しの出だしも揃える */
.flex_test-item4:nth-child(2) .catch_copy {
    width: 100%;       /* 290pxから100%（画面いっぱい）に広げる */
    text-align: left;  /* 行頭の左揃えはキープ */
}

.flex_test-item4 img{
    width: 100%;                 /* 幅指定 */
    margin-top:0;
    margin-left:0;

}


/* ==========================================================================
   会津塗りセクション専用（スマホ用レスポンシブ表示・他への影響ゼロ）
   ========================================================================== */

/* 全体の外枠箱（中身を100%に広げる設定） */
.aizu-container {
    display: flex;
    flex-direction: column;
    width: 100% !important;
    align-items: stretch; /* centerを廃止して中身を横幅いっぱいに */
    margin-top: 10px;
    box-sizing: border-box;
}

/* テキストエリアの箱 */
.aizu-text-item {
    width: 100% !important; 
    display: flex;
    flex-direction: column; 
    gap: 2px;              
    order: 2; /* 画像の下に配置 */
    padding-left: 50px;
    padding-right: 20px;
    box-sizing: border-box; /* パディングを含めて100%にする */
    position: relative;
    z-index: 1;
}

/* タイトル下の余白調整（元の<br><br>の代わり） */
.aizu-title-jp {
    display: block;
    margin-bottom: 20px;
}

/* 画像エリアの箱 */
.aizu-image-item {
    width: 100% !important; 
    order: 1; /* テキストの上に配置 */
    margin: 0px;              
    border-radius: 5px;        
    padding: 0px 50px 2px 0px;
    box-sizing: border-box;
    z-index: 9999;
}

/* 会津塗りセクション専用のフォントスタイル（元の数値を維持しつつ幅100%化） */
.aizu-text-style {
    font-size: max(3.3vw, 14px);
    line-height: 4vw;
    color: #fff;
    font-weight: 530;
    display: block; /* ブロック化して幅を認識させる */
    width: 100%;
}

/* キャッチコピー本体 */
.catch_copy {
    width: 100% !important; /* 画面いっぱいに広げる */
    text-align: left;       /* 行頭を左揃えにする */
}




    /* 親要素のフレックス方向を縦並びにし、左右の余白をリセット */
    .flex_test-box.sikiri3.top {
        display: flex;
        flex-direction: column;
        width: 90% !important;
        padding-left: 10px !important;  /* 必要最低限の左右余白 */
        padding-right: 10px !important;
        box-sizing: border-box;
    }
    /* 子要素（文字と画像）の横幅を画面いっぱいに広げる */
    .flex_test-item5 {
        width: 100% !important;
        max-width: 100% !important;
        flex: 0 0 100% !important;
        padding: 0 !important;          /* 内側の余白が広すぎる場合は調整 */
        box-sizing: border-box;
    }

    /* 画像も横幅いっぱいに拡大させる */
    .flex_test-item5 img {
        width: 100% !important;
        height: auto !important;
    }

.flex_test-item5:nth-child(1) {
    width: 50%; 
}
.flex_test-item5:nth-child(2) {
    width: 50%; 
}

    /* 親要素のフレックス方向を縦並びにし、左右の余白をリセット */
    .flex_test-box3.sikiri3.top {
        display: flex;
        flex-direction: column;
        width: 90% !important;
        padding-left: 10px !important;  /* 必要最低限の左右余白 */
        padding-right: 10px !important;
        box-sizing: border-box;
    }
    /* 子要素（文字と画像）の横幅を画面いっぱいに広げる */
    .flex_test-item5b {
        width: 100% !important;
        max-width: 100% !important;
        flex: 0 0 100% !important;
        padding: 0 !important;          /* 内側の余白が広すぎる場合は調整 */
        box-sizing: border-box;
    }

    /* 画像も横幅いっぱいに拡大させる */
    .flex_test-item5b img {
        width: 100% !important;
        height: auto !important;
    }

.flex_test-item5b:nth-child(1) {
    width: 50%; 
    order: 2;
}
.flex_test-item5b:nth-child(2) {
    width: 50%; 
    order: 1;
}

    /* 子要素（文字と画像）の横幅を画面いっぱいに広げる */
    .flex_test-item6 {
        width: 100% !important;
        max-width: 100% !important;
        flex: 0 0 100% !important;
        padding: 0 !important;          /* 内側の余白が広すぎる場合は調整 */
        box-sizing: border-box;
    }

    /* 画像も横幅いっぱいに拡大させる */
    .flex_test-item6 img {
        width: 100% !important;
        height: auto !important;
    }

.flex_test-item6:nth-child(1) {
    width: 100%; 
    text-align:left;
    max-width:100%;
}
 
.flex_test-item6:nth-child(2) {
    width: 100%; 
    text-align:left;
    max-width:100%;
}


    /* 親要素：子要素をすべて中央に集める */
    .flex_test-box.sikiri3{
        display: flex;
        flex-direction: column;
        align-items: center;       /* 左右の真ん中に集める */
        text-align: center;        /* 文字をセンター寄せにする */
        width: 90% !important;
        box-sizing: border-box;
    }

    /* 子要素：文字と画像のブロック */
    .flex_test-item8 {
        width: 100% !important;
        max-width: 100% !important;
        flex: 0 0 100% !important;
        box-sizing: border-box;
        margin-bottom: 20px;       /* 文字と画像の間に少し隙間をあける */
    }

    /* 画像：ブロック内で中央に配置する */
    .flex_test-item8 img {
        display: block;
        margin: 0 auto !important; /* 画像自体を中央に寄せる */
        max-width: 100% !important;
        height: auto !important;
    }


.flex_test-item8:nth-child(1) {
    width: 90%; 
    text-align:left;
     vertical-align:top;
    max-width:500px;
}
 
.flex_test-item8:nth-child(2) {
    width: 90%; 
    text-align:left;
    vertical-align:top;
    max-width:500px;
}
.flex_test-item8:nth-child(3) {
    width: 90%; 
    text-align:left;
    vertical-align:top;
    max-width:500px;
}

.flex_test-box-news {
    display: flex;
    flex-direction: column;
    width: 100%;
    align-items: center;
    margin-top: 130px;
    margin-bottom: 10px;
}
 
body {
    font-family: "Helvetica Neue",
    Arial,
    "Hiragino Kaku Gothic ProN",
    "Hiragino Sans",
    Meiryo,
    sans-serif;
    font-size: 24px;
    color: #333;
    padding-bottom: 100px;
    margin:auto;
    overflow-y: scroll;
    overflow-x: hidden;
}


.content{
    line-height: 1.6;
    padding-top: 0px;
    width: 100%;

}

a.anchor2 {
    display: block;
    padding-top: 10px;
    margin-top: -10px;
}
/*------------------------*/
/*------------------------*/
/*------- layout -------*/
ul.box {
  margin: auto;
  display: flex;
  flex-wrap: wrap;
  width: 100%;
}

ul.box li {
 margin-bottom: 10px;
 list-style-type:none;
 float: left;
 width: calc(100%);
}

ul.box2.ue2 {
 padding-top: -100px;
 list-style-type:none;
}

ul li{
list-style-type:none;

}

/*----------------------------
ヘッダー設定
----------------------------*/

.site-header{

    width: 100vw;
    height: 0px;
    background: #fff;
    position: sticky ;


}
/*----------------------------
ヘッダーメニュー
----------------------------*/
.gnav__menu{
 display: none;
}

/*----------------------------
ヘッダーメニューの項目
----------------------------*/
.gnav__menu__item{
display: none;
}

.gnav__menu__item a{
display: none;
}


/*---------------------------------------
box３クラス　フッター用表示
----------------------------------------*/
ul.box3 {
  width: 100%;
  height: 450px;
  max-height: 450px;
  margin-top: 10px;
  display: block;
  background-image:url(../img/footer_moba.jpg);
  background-repeat:  no-repeat;
  background-size:cover;
}
ul.box3 li {
  list-style-type:none;
  padding-top: 8px;
  margin-top: 2px;
  margin-bottom: 0px;
  margin-left: 15%;
}

ul.box3 li a {
    text-decoration: none;

}


/*----------------------------
フッター設定
----------------------------*/
.site-footer{
display: none;
}

.moba-footer{
    position: absolute;
    background-size:cover;
    flex-flow: column;
    display: flex;
    max-height: 530px;
    width: 99%;
    height: 530px;
}

.footer-logo img{
    text-align: right;
    margin-top: 0px; 
    margin-left:200px;
    margin-right:20px;
    vertical-align: bottom;
    z-index: 99;
}

.mobaend{
    color: #000;
    font-size: 14px;
    text-align: right;
    margin-top: 90px; 
    margin-left:0px;
    margin-right:20px;
    vertical-align: bottom;
    z-index: 99;
}
.mobaend2{
    color: #000;
    font-size: 20px;
    text-align: center;
    margin-top: 0px; 
    margin-left:0px;
    margin-right:0px;
    vertical-align: bottom;
}
.copyright2{
    color: #fff;
    font-size: 12px;
    text-align: right;
    margin-top: 90px; 
    margin-left:0px;
    margin-right:20px;
    vertical-align: bottom;
    z-index: 99;
}


/*----------------------------
フッターメニュー
----------------------------*/
.gnav__menu2{ 
display: none;
}

/*----------------------------
フッターメニューの項目
/*----------------------------
.gnav__menu2__item{
display: none;
}

.gnav__menu2__item a{
display: none;
}

/*----------------------------
ハンバーガーボタン
----------------------------*/
/* ハンバーガーメニューが開いているときは、body自体のスクロールを消す */
body.fixed {
  overflow: hidden;
}
/* hamburgerここから */
	/* inputを非表示 */
.input-hidden{
	display: none;
}
	/* label */
.hamburger-demo-switch{
	cursor: pointer;
	position: absolute;
	right: 3%;
	top: 0px; /* ハンバーガーアイコンの位置（上から） */
	z-index: 9999;
	width: 4em; /* アイコン（クリック可能領域）の幅 */
	height: 4em; /* アイコン（クリック可能領域の）高さ */
}
/* メニュー展開時にハンバーガーアイコンを固定 */
#hamburger-demo1:checked ~ .hamburger-demo-switch{
	position: fixed;
}
/* ハンバーガーアイコン */
.hamburger-switch-line1, .hamburger-switch-line1-before, .hamburger-switch-line1-after{
	width: 35px;
	height:10px;
	background: #999; /* ハンバーガーアイコンの色 */
	position: absolute;
	top: 20%;
	left: 70%;
	transition: .3s;
	content: "";
}
.hamburger-switch-line1{
        height: 4px;
        transform: translate(-50%, -50%);
}
.hamburger-switch-line1-before{
        height: 4px;
	transform: translate(-50%, -300%);
}
.hamburger-switch-line1-after{
        height: 4px;
	transform: translate(-50%, 200%);
}
#h-text {
	font-size:	15px;
	margin-top:	0px;
	position: absolute;
	right: 7%;
	top: 40px; 
	color:		#000000;
	text-align:center;
	display:	block;
}
#h-text1 {
	font-size:	30px;
	color:		#848484;
        margin-left:	0%;
	text-align:Left;
	display:	block;
}
#h-text2 {
	font-size:	20px;
	color:		#848484;
        margin-left:	15%;
	text-align:Left;
	display:	block;
}
/* ハンバーガーアイコン･アニメーション */
#hamburger-demo1:checked ~ .hamburger-demo-switch .hamburger-switch-line1{
	width: 0;
}
#hamburger-demo1:checked ~ .hamburger-demo-switch .hamburger-switch-line1-before{
	transform: rotate(45deg) translate(-40%, 325%);
}
#hamburger-demo1:checked ~ .hamburger-demo-switch .hamburger-switch-line1-after{
	transform: rotate(-45deg) translate(-40%, -325%);
}
/* メニューエリア */
.hamburger-demo-menuwrap{
	position: fixed;
	height: 100vh;
	background: #fafafa; /* メニューエリアの背景色 */
	padding: 3em 3% 2em;
	z-index: 9998;
	transition: .3s;
 	overflow-y: auto; /* メニュー自体はスクロールできるようにする */
  	overscroll-behavior: contain; /* ★これが背景の「つられスクロール」を完全にブロックします！ */
        overflow-x: hidden;
        max-height: 100vh;
	top: 0;
	left: 100%;
	width: 70%;
}
/* メニューリスト */
.hamburger-demo-menulist{
	margin-right: 1%;
	padding-left: 5% !important; /* !important不要な場合もあり */
	list-style: none;
        text-align: left;
        font-size: 1.4em;   
}

.hamburger-demo-menulist li{  
  height:100%;
  padding: 5px;
  width: 100%;
  border-bottom: 1px solid #dcdcdc;
}

.hamburger-demo-menulist li a{
	text-decoration: none;
	color: #333; /* メニューリストの文字色 */
	display: block;
	padding: .3em 0;
}
.hamburger-demo-menulist li:hover{
  background :#ddd;
}
.hamburger-demo-menulist li:last-child {
  padding-bottom: 10px;
  border-bottom: none;
  margin-bottom: 50px;
  border-bottom: 1px solid #dcdcdc;
}

/* メニューエリア･アニメーション */
	/* 右から */
#hamburger-demo1:checked ~ .hamburger-demo-menuwrap{
	left: 30%;
}
	/* コンテンツカバー */
#hamburger-demo1:checked ~ .hamburger-demo-cover{
	position: fixed;
	width: 100%;
	height: 100%;
	top: 0;
	left: 0;
	z-index: 9997;
	background: rgba(3,3,3,.5);
	display: block;
}



/*----------------------------
ボトムナビゲーション
----------------------------*/
ul.bottom-menu {
    position: fixed ;
    left:0;
    bottom:0;
    width: 100%;
    height:50px;/*アイコン枠の高さ*/
    margin:0;
    padding:0;
    background-color:white;/*背景色*/
    border-top:2px solid gray;/*バーの上線*/
    border-bottom:2px solid gray;/*バーの下線*/
    z-index:30;
    padding-bottom:env(safe-area-inset-bottom);
}

ul.bottom-menu li {
    float:left;
    width:20%;/*メニューアイコンを5つ並べる*/
    background-color:white;/*背景色*/
    list-style-type:none;
    text-align:center;
    font-size:18px;/*アイコンのサイズ*/}

.bottom-menu li a {
    display: block;
    color:dimgray;/*アイコンと文字の色*/
    padding-top:10px;
    padding-bottom:5px;
    line-height:10px;
    text-decoration:none;}

.bottom-menu li a:hover {
    color:lightgray;/*マウスオーバー時の色*/}

/* === 展開メニュー === */
ul.menu-second-level {
    visibility: hidden;
    opacity: 0;
    z-index:1;}

ul.menu-second-level li a{
    border-top:1px dotted gray;/*展開の枠点線*/
        font-size:0.8em;/*展開メニューの文字サイズ*/
        line-height:28px;/*文字の縦幅*/}

.menu-second-level li a:hover {
    height:100%;
    transition: 1.0s; /*動きを見せる*/
    background: lavender;/*マウスオーバーの色*/}

li.menu-width-max ul.menu-second-level {
    position: absolute ;
    bottom: 40px;/*メニュー高さ*/
    transition: 0.5s; /*動きを見せる*/
    left: 0;
    box-sizing: border-box;
    width: 100%;
    padding:0;}

li.menu-width-max:hover ul.menu-second-level {
    bottom: 40px;/*メニュー高さ*/
    visibility: visible;
    opacity: 1;}

li.menu-width-max ul.menu-second-level li {
    float: left;
    background-color:whitesmoke;/*背景色*/
    width: 50%;/*2階層目に2つメニューを並べる*/
    border: none;}



/*スマホの時だけ ボトムメニュー分フッタを底上げ*/
@media(max-width: 1024px){ 
#footer{margin-bottom:50px;}
}
}