/*================================共通cssですがサイトによって調整してください================================

*****注意事項*****
※レスポンシブ対応してありますが、各ページによって適宜修正・変更は行ってください
※不具合があった場合、伊藤までお知らせください
※修正・追加・入力するとスタイルが崩れる場合があるので、クラス名を追加するなどの対応をして修正を行ってください
*****************

【共通設定】
【ページ記事】page_block.php
【スクロール画像】slide_block.php→スライドpc・sp切り替え
【お問合わせ】contact2_block.php　※お問合わせのボタンの設定は各自で設定してください。『 /*ボタン設定 』で検索してください
【個人情報保護方針】pp_block.php
【サイトポリシー】site_policy_block.php
【サイトマップ】site_map_block.php
【フッター】footer_block.php
【フッターメニュー】foot_menu_block.php
【コピーライト】copyright_block.php
【更新履歴】topics_block.php ※モーダル部分のスタイルしか入れてません。アイコン等は各自で設定してください。
※※※※重要：setting.phpに下記を入れないと機能しません。※※※※　
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/swiper@9/swiper-bundle.min.css" />
<script src="https://cdn.jsdelivr.net/npm/swiper@9/swiper-bundle.min.js"></script>
==========================================================================================================*/

/*pc・sp・sp横 切り替え
----------------------*/
/* デフォルト（スマホ縦） */
.pc-only { display: none; }
.smart-land-only { display: none; }
.smart-only { display: block; }

/* スマホ横向き (Landscape) - 大型スマホ対応 */
@media screen and (max-width: 950px) and (orientation: landscape) {
    .pc-only { display: none !important; }
    .smart-only { display: none !important; }
    .smart-land-only { display: block !important; }
}

/* PC・タブレット (縦向き768px以上、横向き951px以上) */
@media screen and (min-width: 768px) and (orientation: portrait),
       screen and (min-width: 951px) and (orientation: landscape) {
    .smart-only { display: none !important; }
    .smart-land-only { display: none !important; }
    .pc-only { display: block !important; }
}

/*改行設定
----------------------*/
/* スマホ用<br> */
@media screen and (max-width:767px) {
	.br-sp { display: block; }
	.br-tb { display: none; }
	.br-pc { display: none; }
}
/* tablet 縦用<br> */
@media only screen and (min-width:768px) and (max-width:1023px) {
	.br-sp { display: none; }
	.br-tb { display: block; }
	.br-pc { display: none; }
}
/* pc用<br> */
@media screen and (min-width:1024px) {
	.br-sp { display: none; }
	.br-tb { display: none; }
	.br-pc { display: block; }
}

/*ページ記事 page_block.php
---------------------------------------------------------------------------*/
.page_block {
    width: 100%;
}
.img_box,
.img_box2{
	width: 100%;
}
.img_all_box{
	display:block;
	width:100%;
	margin:auto;
}
.text_contencts {
    width: 100%;
	margin-top: 1rem;
}
.page_text,
.page_text2 {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
	align-items: flex-start;
	column-gap: 30px;
}
.page_all_text{
	display:block;
	width:100%;
}
@media screen and (min-width:1280px){
	.text_contencts {
		width: calc((100% - 30px* 2) / 2);
		margin-top: 0;
	}
	.page_text {
		flex-direction: row;
	}
	.page_text2 {
		flex-direction: row-reverse;
	}
	.img_box,
	.img_box2 {
		width: calc((100% - 30px * 2) /2);
	}
}

/*スライドpc・sp切り替え slide_block.php
---------------------------------------------------------------------------*/
.smart-slide_only {
    display: block;
}
.pc-slide_only {
    display: none;
}
@media screen and (min-width:1024px){
    .pc-slide_only {
        display: block!important;
    }
    .smart-slide_only {
        display: none!important;
    }
}

/*お問合わせ contact2_block.php
---------------------------------------------------------------------------*/
a .tel {
    pointer-events: none;
    cursor: default;
    text-decoration: none;
}
.contact_form .inquiry_form {
    width: 70%;
    height: auto;
    margin: 40px auto;
    padding: 20px;
    border-radius: 8px;
}
/* 各フォーム項目（行）のスタイル */
.contact_item {
    display: flex;
    flex-wrap: wrap; /* スマホで折り返す */
    margin-bottom: 20px;
    padding: 15px 0;
    border-bottom: 1px dashed #8B7E74;
    align-items: flex-start; /* 項目名と入力エリアの配置を上端に */
}

/* 項目名（ラベル）のスタイル */
.contact_article {
    flex: 0 0 300px;
    padding: 8px 15px;
    font-weight: bold;
    color: #3a3a3a;
    line-height: 1.5;
    text-align: left;
}

/* 入力必須マーク */
.contact_article .need {
    background-color: #E68C6A;
    color: #fff;
    display: inline-block;
    width: auto;
    margin-right: 8px;
    vertical-align: middle;
    padding: 2px 6px;
    border-radius: 4px;
}

/* 入力エリアのスタイル */
.contact_input_area {
    flex: 1; 
    padding: 8px 15px;
    text-align: left; 
}

/* テキスト入力フィールド、テキストエリアの共通スタイル */
.contact_input_area input[type="text"],
.contact_input_area textarea {
    max-width: 500px;
    width: 100%; 
    padding: 10px;
    border: 1px solid #8B7E74;
    border-radius: 4px;
    box-sizing: border-box;
    font-size: 16px;
}

.contact_input_area textarea {
    resize: vertical;
}

/* セレクトボックスのスタイル */
.contact_input_area select {
    width: 70%;
    height: 3rem;
    margin: 2% 0;
    font-size: 1rem;
    border: 1px solid #8B7E74;
}

/* ラジオボタン・チェックボックスのグループ */
.contact_input_area .wrap {
    display: inline-block;
    margin-right: 15px;
    margin-bottom: 5px;
}

/* 注釈（memo）のスタイル */
.contact_input_area .memo {
    text-align: left;
    display: block;
    font-size: 12px;
    color: #8B7E74;
    margin-top: 5px;
}

/* その他入力欄のスタイル */
.input_space_03 {
    width: 150px;
    padding: 8px;
    margin-left: 10px;
}

/* 確認ボタンエリアのスタイル */
.btnArea_submit {
    text-align: center;
    padding: 30px 0 10px;
}

/* 確認ボタンのスタイル */
.btn.btnWT {
    background-color: #E68C6A;
    color: #fff;
    border: none;
    padding: 12px 30px;
    font-size: 18px;
    border-radius: 4px;
    cursor: pointer;
    transition: background-color 0.3s;
    text-decoration: none;
    display: inline-block;
}

.btn.btnWT:hover {
    background-color: #D47A58;
}

/* ご入力内容にお間違いがないか、ご確認ください。 のテキスト */
.text_area {
    text-align: center;
    margin-top: 20px;
    padding: 10px;
}

/* 確認ボタンエリア */
.btnArea_submit {
    margin-top: 40px;
    text-align: center;
}

.btnArea_submit input[type="submit"] {
    background: #56A78E;
    color: #fff;
    border: none;
    padding: 15px 80px;
    font-size: 18px;
    font-weight: bold;
    border-radius: 50px;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(86, 167, 142, 0.3);
    transition: all 0.3s;
    outline: none;
    margin: 0 auto;
}

@media (hover: hover) and (pointer: fine) {
    .btnArea_submit input[type="submit"]:hover {
        transform: translateY(-2px);
        background: #458772;
        box-shadow: 0 6px 20px rgba(86, 167, 142, 0.4);
        opacity: 1;
    }
}

/*内容確認*/
dl.contact_confirm {
	display: flex;
	flex-flow: column;
	width: 100%;
    text-align: left;
    padding: 2em 0 0;
}
.contact_confirm dt {
	flex-basis: 35%;
    padding: 10px 20px 0;
	border-bottom: none;
    font-weight: bold;
}
.contact_confirm dd {
	flex-basis: 50%;
    padding: 10px 20px;
	border-bottom: 1px solid #8B7E74;
}

/* ------------------------------------------- */
/* スマートフォン (max-width: 767px) */
/* ------------------------------------------- */
@media screen and (max-width: 767px) {
    .contact_form .inquiry_form {
        width: 95%;
        margin: 20px auto;
        padding: 10px;
    }

    .contact_item {
        padding: 10px 0;
    }

    .contact_article {
        flex: 0 0 100%;
        padding: 8px 10px;
        text-align: left;
    }
    
    .contact_article .need {
        margin-right: 5px;
    }

    .contact_input_area {
        flex: 0 0 100%;
        padding: 0 10px 8px;
    }
    
    .contact_input_area input[type="text"],
    .contact_input_area textarea {
        max-width: none;
    }
    
    dl.contact_confirm {
        padding: 1em 0;
    }
    .contact_confirm dt, .contact_confirm dd {
        flex-basis: 100%;
        padding: 10px;
    }
    
    .btnArea_submit {
        padding: 20px 0 0;
    }
    
    .contact_form .btnArea_submit2 {
        flex-wrap: wrap;
        padding-top: 1em;
    }
    .contact_form .btn {
        margin: 10px auto;
        width: 80%;
    }
}

/* タブレット (min-width: 768px and max-width: 1024px)
 ------------------------------------------- */
@media screen and (min-width: 768px) and (max-width: 1024px) { 
    /* フォーム全体 */
    .contact_form .inquiry_form {
        width: 90%; 
        padding: 20px;
    }

    /* 項目名（ラベル）のスタイル */
    .contact_article {
        /* 項目名の幅を調整し、入力エリアのスペースを広げる */
        flex: 0 0 250px; 
    }

    /* 入力エリアのスタイル */
    .contact_input_area {
        /* 入力エリアが自然に広がるよう flex: 1 を維持 */
        padding-right: 15px;
    }
    
    /* テキスト入力フィールド、テキストエリアの共通スタイル */
    .contact_input_area input[type="text"],
    .contact_input_area textarea {
        /* テキストエリアの max-width を調整し、フォーム全体に馴染ませる */
        max-width: 100%; 
    }
    
    /* 入力確認ページのボタン */
    .contact_form .btnArea_submit2 {
        /* ボタン同士の間隔を維持 */
        flex-wrap: nowrap;
    }
}

/*内容確認*/
dl.contact_confirm {
	display: flex;
	flex-flow: column;
	width: 100%;
    text-align: left;
    padding: 2em 0 0;
    justify-content: center;
}
.contact_confirm dt {
	flex-basis: 35%;
    padding: 10px 20px 0;
	border-bottom: none;
    font-weight: bold;
}
.contact_confirm dd {
	flex-basis: 50%;
    padding: 10px 20px;
	border-bottom: 1px solid #8B7E74;
}

/* 最終確認ボタンエリアのスタイル */
.btnArea_submit2 {
    display: flex;
    justify-content: center;
    gap: 20px;
    padding: 30px 0;
}

/* 送信ボタン */
.btnArea_submit2 .btn {
    background-color: #56A78E;
    color: #FFFFFF;
    border: none;
    border-radius: 5px;
    padding: 10px 30px;
    font-size: 16px;
    font-weight: bold;
    cursor: pointer;
    box-shadow: 0 4px 0 0 #458772;
    transition: all 0.2s;
    min-width: 120px;
    outline: none; 
}

.btnArea_submit2 .btn:hover {
    background-color: #56A78E;
    box-shadow: 0 2px 0 0 #458772;
}

.btnArea_submit2 .btn:active {
    background-color: #458772;
    box-shadow: none;
    transform: translateY(2px);
}

/* 戻るボタン */
.btnArea_submit2 .btnGY {
    background-color: #E0E0E0;
    color: #3a3a3a;
    border: 1px solid #8B7E74;
    box-shadow: none;
}

.btnArea_submit2 .btnGY:hover {
    background-color: #CCCCCC;
}

.btnArea_submit2 .btnGY:active {
    background-color: #B0B0B0;
    transform: none;
}

/* 共通スタイルの上書き */
.btnArea_submit2 .btnGY.btn {
    box-shadow: none;
}

@media screen and (min-width:768px){
    dl.contact_confirm{
		flex-flow: row wrap;
	}
    .contact_confirm dt {
        border-bottom: 1px solid #8B7E74;
        padding: 20px;
    }
    .contact_confirm dd {
        padding: 20px;
    }
}

/*個人情報保護方針 pp_block.php
---------------------------------------------------------------------------*/
dl.pp_list{
	display: flex;
	flex-flow: column;
	width: 100%;
}
.pp_list dt{
	font-weight: bold;
	font-size: 1.1em;
}
.pp_list dt,
.pp_list dd {
	flex-basis: 100%;
}
.pp_list dd {
	padding: 0 0 20px;
	border-bottom: 1px solid #8B7E74;
}
.pp_list dt {
	 padding: 20px 0 0;
}
.pp h3{
	padding: 0 0 2% 0;
}

/*サイトポリシー site_policy_block.php
---------------------------------------------------------------------------*/
dl.site_porlicy_list {
	display: flex;
	flex-flow: column;
	width: 100%;
}
.site_porlicy_list dt{
	font-weight: bold;
	font-size: 1.1em;
}
.site_porlicy_list dt,
.site_porlicy_list dd {
	flex-basis: 100%;
}
.site_porlicy_list dd {
	padding: 0 0 20px;
	border-bottom: 1px solid #8B7E74;
}
.site_porlicy_list dt {
	 padding: 20px 0 0;
}

/*サイトマップ site_map_block.php
---------------------------------------------------------------------------*/
dl.sitemap_list {
	display: flex;
	flex-flow: column;
	width: 90%;
    margin: 0 auto;
}
.sitemap_list dt {
    padding: 10px 20px 0;
	border-bottom: none;
    font-weight: bold;
}
.sitemap_list dt .sm_list {
    position: relative;
    padding-left: 15px;
    color: #3a3a3a;
    text-decoration: none;
}
.sitemap_list dt .sm_list:before {
    content: "";
    position: absolute;
    top: 0.25em;
    left: 0;
    width: 0;
    height: 0;
    border-width: 6px;
    border-style: solid;
    border-color: transparent transparent transparent #56A78E;
}
.sitemap_list dt .sm_clist {
    position: relative;
    padding-left: 15px;
}
.sitemap_list dt .sm_clist:before {
    content: "";
    position: absolute;
    top: 0.45em;
    left: 0;
    -webkit-transform: rotate(45deg);
    -ms-transform: rotate(45deg);
    transform: rotate(45deg);
    width: 5px;
    height: 5px;
    border-top: 2px solid #E68C6A;
    border-right: 2px solid #E68C6A;
}
.sitemap_list dd {
    padding: 10px 20px;
	border-bottom: 1px solid #8B7E74;
}

@media screen and (min-width:768px){
    dl.sitemap_list{
		flex-flow: row wrap;
        width: 70%;
	}
    .sitemap_list dt {
		width: 25%;
        border-bottom: 1px solid #8B7E74;
        padding: 20px;
    }
    .sitemap_list dd {
		width: 75%;
        padding: 20px;
    }
}

/*会社概要 profile_block.php
---------------------------------------------------------------------------*/
table.table_profile {
	width: 65%;
	margin: 30px auto;
	border-collapse: separate;
	border-spacing: 0 12px;
}

table.table_profile th,
table.table_profile td {
	padding: 14px 20px;
	vertical-align: middle;
	border-bottom: 1px dashed #8B7E74;
}

table.table_profile th {
	width: 30%;
	font-weight: 600;
	text-align: left;
}

table.table_profile td {
	width: 70%;
}

/* --- タブレット（768px 〜 1024px） --- */
@media screen and (min-width: 768px) and (max-width: 1024px) {
    table.table_profile {
        width: 90%;
    }
}

/* --- スマートフォン（767px以下） --- */
@media screen and (max-width: 767px) {
    table.table_profile {
        width: 100%;
        display: block;
    }

    table.table_profile tbody,
    table.table_profile tr {
        display: block;
        width: 100%;
    }

    table.table_profile th,
    table.table_profile td {
        display: block;
        width: 100% !important;
        box-sizing: border-box;
    }

    table.table_profile th {
        padding: 12px 15px 5px;
        border-bottom: none;
    }

    table.table_profile td {
        padding: 0 15px 15px;
    }
}

/*フッター footer_block.php
---------------------------------------------------------------------------*/
footer .footerAddress {
	background: #F0EFEC;
	padding: 3% 0 1%;
    width: 100%;
    font-weight: bolder;
}
footer ul.addressArea.flex {
    align-items: center;
    column-gap: 40px;
    flex-wrap: wrap;
    justify-content: center;
}

footer ul.addressArea.flex li {
    width: 50%;
    display: flex;
    margin: 0 auto;
    align-items: center;
}

footer img.footerLogo {
	width: 100%;
}

footer figure {
    margin: 0;
    width: 75%;
    align-items: center;
}

footer .addressArea a {
    width: 50%;
}

footer .addressArea p {
    font-size: 0.9rem;
    text-align: left;
    margin: 0 auto;
    width: 50%;
}

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

  footer .footerAddress {
    padding: 8% 0 5%;
  }

  footer ul.addressArea.flex {
    flex-direction: column;
    row-gap: 20px;
  }

  footer ul.addressArea.flex li {
    width: 100%;
    flex-direction: column;
    align-items: center;
  }

  footer figure {
    width: 65%;
    margin: 1rem auto;
  }

  footer .addressArea p {
    width: 100%;
    text-align: center;
    font-size: 90%;
  }
}

@media screen and (min-width: 768px) and (max-width: 1024px) {

  footer .footerAddress {
    padding: 5% 0 3%;
  }

  footer ul.addressArea.flex li {
    width: 100%;
    justify-content: center;
  }

  footer figure {
    width: 50%;
  }

  footer .addressArea p {
    width: 45%;
    font-size: 95%;
  }
}

/*フッターメニュー foot_menu_block.php
---------------------------------------------------------------------------*/
footer nav.footernav {
	display: none;
}
@media screen and (min-width:1280px){
    footer nav.footernav {
        display: block;
        background: #F0EFEC;
        font-size: 85%;
        font-weight: bolder;
    }
    footer nav.footernav .inner.flex {
        position: relative;
        justify-content: center;
        padding: 2% 0 1% 0;
        display: flex;
    }
    
    footer nav.footernav .inner.flex::before {
        content: "";
        position: absolute;
        top: 0;
        left: 50%;
        transform: translateX(-50%);
        width: 60%;
        height: 1px;
        background-color: #3a3a3a;
    }

    footer nav.footernav ul.title {
        margin: 0 1%;
        font-size: 0.8rem;
    }
}

/*コピーライト copyright_block.php
---------------------------------------------------------------------------*/
footer .footerCopyright {
    padding: 1% 0;
    background: #F0EFEC;
    font-size: 70%;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    text-align: center;
}

footer .footerCopyright img {
    display: none;
}

@media screen and (max-width: 767px) {
  footer .footerCopyright {
    font-size: 65%;
    padding: 4% 0;
  }
}

@media screen and (min-width: 768px) and (max-width: 1024px) {
  footer .footerCopyright {
    font-size: 70%;
  }
}

/*更新履歴 topics_block.php
---------------------------------------------------------------------------*/
/* ニュース一覧スタイル */
ul.ul_news {
    list-style: none;
    margin: 1em auto;
    padding: 0;
    max-width: 800px;
    width: 90%;
}

ul.ul_news > li {
    padding: 1em;
    border-bottom: 1px solid #8B7E74;
    transition: background-color 0.3s ease;
}

.ul_news li {
    list-style: none;
    padding: 15px 0;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.news_head {
    display: flex;
    align-items: center;
    gap: 10px;
}

.news_body {
    display: flex;
    align-items: flex-start;
    gap: 10px;
}

.news_date {
  font-size: 0.9rem;
  color: #8B7E74;
  min-width: 65px;
}

span.newicon {
  display: inline-block;
  background-color: #E68C6A;
  color: #ffffff;
  font-size: 0.85rem;
  font-weight: bold;
  padding: 1px 10px;
  margin-right: 15px;
  border-radius: 5px;
}

span.icon.news {
    color: #56A78E;
    font-weight: bold;
    margin-right: 3.5%;
}

/* ニュース詳細スタイル */
.news-detail {
    max-width: 900px;
    margin: 50px auto;
    padding: 40px 36px;
}

.news-title {
    font-size: 1.9rem;
    font-weight: 800;
    line-height: 1.4;
    margin-bottom: 8px;
    color: #3a3a3a;
    position: relative;
    padding: 2% 0;
    border-bottom: 1px solid #8B7E74;
}

.news-date {
    font-size: 0.9rem;
    color: #8B7E74;
    margin-bottom: 28px;
    text-align: right;
}

.news-body {
    line-height: 1.9;
    padding: 26px 28px;
}

.news-back {
    margin-top: 36px;
    text-align: center;
}

.news-back a {
    display: inline-block;
    font-size: 0.95rem;
    font-weight: 700;
    color: #56A78E;
    text-decoration: none;
    padding: 10px 24px;
    border-radius: 30px;
    border: 2px solid #56A78E;
    transition: all .3s ease;
}

@media (hover: hover) and (pointer: fine) {
    .news-back a:hover {
        background: #56A78E;
        color: #fff;
    }
}

/* ページネーション */
.pagination {
    display: flex;
    justify-content: center;
    gap: 6px;
    margin: 30px 0;
}

.pagination a {
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 40px;
    height: 40px;
    text-decoration: none;
    font-weight: 600;
    font-family: sans-serif;
    font-size: 14px;
    color: #3a3a3a;
    background-color: #FFFBEB;
    border: 2px solid #56A78E;
    border-radius: 8px;
    transition: all 0.2s ease-in-out;
}

@media (hover: hover) and (pointer: fine) {
    .pagination a:hover:not(.active) {
        background-color: #56A78E;
        color: #fff;
        transform: translateY(-2px);
        box-shadow: 0 4px 8px rgba(86, 167, 142, 0.3);
    }
}

.pagination a.active {
    background-color: #56A78E;
    border-color: #56A78E;
    color: #ffffff;
    cursor: default;
    box-shadow: inset 0 2px 4px rgba(0,0,0,0.1);
}

/* =========================================
   スマートフォンの設定 (767px以下)
   ========================================= */
@media screen and (max-width: 767px) {

  /* --- ニュース一覧 (List) --- */
  ul.ul_news {
    width: 96%; /* 画面幅いっぱい使う */
    margin: 1em auto;
  }

  /* リスト内の余白を少し詰める */
  ul.ul_news > li {
    padding: 0.8em 0.5em; 
  }

  .ul_news li {
    gap: 5px; /* 行間を少し狭める */
  }

  /* 日付とアイコンの文字サイズ調整 */
  .news_date {
    font-size: 1rem;
  }

  span.newicon {
    font-size: 0.75rem;
    padding: 1px 8px;
    margin-right: 10px;
  }

  /* --- ニュース詳細 (Detail) --- */
  .news-detail {
    /* PCの大きな余白(40px 36px)をスマホ用に縮小 */
    margin: 20px auto;
    padding: 20px 15px; 
    width: 94%; /* 画面幅に対して少し余裕を持たせる */
    box-sizing: border-box; /* paddingを含めた幅計算にする */
  }

  .news-title {
    /* タイトル文字サイズを小さくして改行崩れを防ぐ */
    font-size: 1.4rem;
    line-height: 1.3;
    margin-bottom: 15px;
  }

  .news-date {
    font-size: 0.8rem;
    margin-bottom: 20px;
  }

  .news-body {
    padding: 10px 0; 
    font-size: 0.95rem;
    line-height: 1.7;
  }

  .news-back {
    margin-top: 25px;
  }
  
  .news-back a {
    width: 65%;
    font-size: 0.9rem;
    padding: 0.4rem 0;
    text-align: center;
    box-sizing: border-box;
  }

  .pagination {
        gap: 4px;
        margin: 20px 0;
        flex-wrap: wrap;
    }

    .pagination a {
        min-width: 36px;
        height: 36px;
        font-size: 13px;
        border-width: 1.5px;
        border-radius: 6px;
    }
}

/* タブレット */
@media screen and (min-width: 768px) and (max-width: 1024px) {
  ul.ul_news {
    width: 92%;
  }

  .news-detail {
    padding: 30px 25px;
    margin: 40px auto;
    width: 90%;
  }

  .news-title {
    font-size: 1.7rem;
  }

  .news-body {
    padding: 20px 10px;
  }

  .pagination {
        gap: 5px;
        margin: 25px 0;
    }

    .pagination a {
        min-width: 38px;
        height: 38px;
    }
}