/*================================共通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に下記を入れないと機能しません。※※※※　
<!-- SwiperのCSSを読み込み -->
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/swiper@9/swiper-bundle.min.css" />
<!-- SwiperのJSを読み込み -->
<script src="https://cdn.jsdelivr.net/npm/swiper@9/swiper-bundle.min.js"></script>
==========================================================================================================*/

/*pc・sp切り替え
----------------------*/
.smart-only {
    display: block;
}
.pc-only {
    display: none;
}
@media screen and (min-width:768px){
    .pc-only {
        display: block!important;
    }
    .smart-only {
        display: none!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:1024px) {
	.br-sp { display: none; }
	.br-tb { display: block; }
	.br-pc { display: none; }
}

/* pc用<br> */
@media screen and (min-width:1025px) {
	.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:1025px){
    .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: 100%;
    max-width: 800px; /* 大画面で横に広がりすぎないよう上限を設定 */
    margin: 40px auto;
    padding: 20px;
    border-radius: 8px;
    box-sizing: border-box;
}

/* 各フォーム項目（行）のスタイル */
.contact_item {
    display: flex;
    flex-wrap: wrap;
    margin-bottom: 20px;
    padding: 15px 0;
    border-bottom: 1px dashed #e0e0e0;
    align-items: flex-start;
}

/* 項目名（ラベル）のスタイル */
.contact_article {
    flex: 0 0 280px; /* 項目名の幅 */
    padding: 10px 15px 10px 0;
    font-weight: bold;
    color: #333;
    line-height: 1.5;
    text-align: left;
    box-sizing: border-box;
}

/* 入力必須マーク */
.contact_article .need {
    background-color: #e60000;
    color: #fff;
    display: inline-block;
    font-size: 0.9rem;
    margin-right: 8px;
    vertical-align: middle;
    padding: 6px 10px;
    border-radius: 4px;
    font-weight: bold;
}

/* 入力エリアのスタイル */
.contact_input_area {
    flex: 1;
    min-width: 0; /* Flexboxのはみ出し防止 */
    padding: 5px 0;
    text-align: left;
}

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

.contact_input_area textarea {
    resize: vertical;
    min-height: 120px;
}

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

.contact_input_area label {
    cursor: pointer;
}

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

/* その他入力欄のスタイル */
.input_space_03 {
    width: 100%;
    max-width: 250px;
    padding: 8px;
    margin: 5px 0 0 10px;
    box-sizing: border-box;
}

/* --- 「ご入力内容にお間違いがないか〜」のテキストエリア --- */
.text_area {
    text-align: center;
    margin-top: 40px;
    padding: 15px;
    background-color: #fff9e6;
    border: 1px solid #ffead0;
    border-radius: 8px;
    color: #5d4037;
    font-weight: bold;
}

/* --- 送信（確認）ボタンエリア --- */
.btnArea_submit {
    text-align: center;
    margin-top: 30px;
    padding: 10px 0;
}

/* --- 内容確認画面のボタンエリア --- */
.btnArea_submit2 {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 20px;
    padding: 30px 0;
}

/* ボタン共通スタイル */
.btn {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    padding: 12px 30px;
    font-size: 16px;
    font-weight: bold;
    border-radius: 4px;
    cursor: pointer;
    transition: background-color 0.3s, transform 0.2s, box-shadow 0.2s;
    text-decoration: none;
    border: none;
    outline: none;
    box-sizing: border-box;
    min-width: 160px;
    appearance: none;
}

/* WTボタン（オレンジ系） */
.btn.btnWT {
    background-color: #f39c12;
    color: #fff;
}
.btnArea_submit2 .btn.btnWT {
    background-color: #e67e22;
    box-shadow: 0 4px 0 0 #d35400;
}

@media (hover: hover) and (pointer: fine) {
    .btn.btnWT:hover { background-color: #e67e22; }
    .btnArea_submit2 .btn.btnWT:hover {
        background-color: #d35400;
        box-shadow: 0 2px 0 0 #a04000;
        transform: translateY(2px);
    }
}

/* GYボタン（戻る・グレー・ベージュ系） */
.btn.btnGY {
    background-color: #ffb366;
    color: #fff;
    border-radius: 25px; /* 元の丸みを維持 */
}
.btnArea_submit2 .btn.btnGY {
    background-color: #fff9e6;
    color: #5d4037;
    border: 1px solid #edbc8a;
    border-radius: 4px; /* 送信ボタンと形を合わせる */
}

@media (hover: hover) and (pointer: fine) {
    .btn.btnGY:hover { background-color: #ffc285; transform: translateY(-1px); }
    .btnArea_submit2 .btn.btnGY:hover { background-color: #f9ebbe; transform: none; }
}

.btnArea_submit2 .btn.btnGY:active {
    background-color: #e0d0a0;
}

/* --- 内容確認画面（dl.contact_confirm） --- */
dl.contact_confirm {
    display: flex;
    flex-wrap: wrap;
    width: 100%;
    text-align: left;
    padding: 2em 0 0;
    margin: 0;
}

.contact_confirm dt, 
.contact_confirm dd {
    box-sizing: border-box;
    margin: 0;
}

.contact_confirm dt {
    width: 100%;
    padding: 15px 10px 5px;
    font-weight: bold;
    border-bottom: none;
}

.contact_confirm dd {
    width: 100%;
    padding: 5px 10px 15px;
    border-bottom: 1px solid #ccc;
}

/* タブレット・PC */
@media screen and (min-width: 768px) {
    .contact_form .inquiry_form {
        width: 90%;
    }

    dl.contact_confirm dt {
        width: 35%;
        padding: 20px;
        border-bottom: 1px solid #ccc;
    }

    dl.contact_confirm dd {
        width: 65%;
        padding: 20px;
    }
}

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

    .contact_item {
        padding: 15px 0;
    }

    .contact_article {
        flex: 0 0 100%;
        padding: 0 0 10px 0;
    }

    .contact_input_area {
        flex: 0 0 100%;
        padding: 0;
    }

    .contact_input_area input[type="text"],
    .contact_input_area textarea {
        max-width: 100%;
    }

    .input_space_03 {
        width: calc(100% - 20px);
        margin: 10px 0 0 0;
    }

    .btn {
        width: 100%;
        max-width: 300px;
        margin: 0 auto;
    }
    
    .btnArea_submit2 {
        flex-direction: column;
        align-items: center;
        gap: 15px;
    }
}

/*個人情報保護方針 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 #ccc;
}
.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 #ccc;
}
.site_porlicy_list dt {
	 padding: 20px 0 0;
}

/*サイトマップ site_map_block.php
---------------------------------------------------------------------------*/
dl.sitemap_list {
	display: flex;
	flex-flow: column;
	width: 100%;
}
.sitemap_list dt {
    padding: 10px 20px 0;
	border-bottom: none;
    font-weight: bold;
}
.sitemap_list dt .sm_list {
    position: relative;
    padding-left: 15px;
    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 #ffa600;
}
.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 #93c9ff;
    border-right: 2px solid #93c9ff;
}
.sitemap_list dd {
    padding: 10px 20px;
	border-bottom: 1px solid #ccc;
}

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

/*会社概要 profile_block.php
---------------------------------------------------------------------------*/
table.table_profile{
	width: 100%;
    text-align: left;
    margin: 0 auto;
	margin: 2% auto;
}
table.table_profile tr{
	border: 1px solid #c7c7c7;
}
table.table_profile th,table.table_profile td {
	display: block;
    border-spacing: 0px;
	width: auto;
	padding: 10px;
}
table.table_profile th{
	background: #ededed;
}
@media screen and (min-width:768px){
	table.table_profile th{
		width: 20%;
	}
	table.table_profile th,table.table_profile td{
		display: table-cell;
		padding: 20px;
	}
}

/*フッター footer_block.php
---------------------------------------------------------------------------*/
footer .footerAddress {
	background: #7a9bd3;
    width: 100%;
}
footer ul.addressArea.flex {
    align-items: center;
    column-gap: 40px;
    flex-wrap: wrap;
    justify-content: center;
    list-style: none;
}
footer ul.addressArea.flex li {
    width: 100%;
    text-align: left;
}
figure.foot_logo {
    max-width: 50%;
    margin: 0 auto;
}
footer img.footerLogo {
	width: 100%;
    margin: 5% auto;
}
footer .addressArea p {
    font-size: 90%;
}

@media screen and (min-width: 1025px) {
    figure.foot_logo {
        max-width: 25%;
    }
}

/*フッターメニュー foot_menu_block.php
---------------------------------------------------------------------------*/
footer nav.footernav {
	display: none;
}

i.fas.fa-phone {
    margin-right: 1rem;
}

.footerinfo {
    padding: 4% 8%;
}

@media screen and (min-width:1025px){
	footer nav.footernav {
		display: flex;
		background: #7a9bd3;
		font-size: 0.8rem;
	}
	footer nav.footernav .inner.flex {
		justify-content: center;
		padding: 1% 0;
        display: flex;
        gap: 1rem;
	}

    a[href^="tel:"] {
        font-size: 1.8rem; /* または 18px など、任意の大きなサイズに設定 */
        font-weight: bold; /* オプション: さらに目立たせるために太字にする */
        text-decoration: none; /* オプション: 下線を消す */
        color: inherit; /* オプション: 色が青などに変わらないようにする */
    }
}

@media screen and (min-width: 1025px) and (max-width: 1150px) {
    footer nav.footernav {
        font-size: 0.7rem;
    }
    footer nav.footernav .inner.flex {
        gap: 0.5rem;
    }
}

/*コピーライト copyright_block.php
---------------------------------------------------------------------------*/
footer .footerCopyright {
    padding: 1% 0;
    background: #7a9bd3;
    font-size: 70%;
    color: #000;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    text-align: center;
}
footer a.copyright {
    color: #000;
}
footer .footerCopyright img {
    display: none;
}

/*更新履歴 topics_block.php
---------------------------------------------------------------------------*/
.ul_news .topics-item {
    border-bottom: 1px solid #e0e0e0; /* 下線で区切る */
    transition: background-color 0.3s ease;
}

ul.ul_news {
  width: 70%;
  margin: 0 auto;
}

/* 各ニュースアイテムのレイアウト */
.news-item {
    display: flex;
    align-items: center;
    padding: 1.2rem 1rem;
    flex-wrap: wrap; /* スマホで折り返せるように */
    gap: 15px;
}

/* カテゴリと日付の塊 */
.news_catdate {
    display: flex;
    align-items: center;
    gap: 10px;
    min-width: 160px;
}

/* NEWSラベル */
.icon.news {
    background-color: #0f0094; /* 落ち着いた黒。マザーライクのテーマ色があれば変更してください */
    color: #fff;
    font-size: 0.7rem;
    padding: 2px 8px;
    border-radius: 3px;
    font-weight: bold;
    letter-spacing: 0.05em;
}

/* 日付 */
.news_date {
    font-size: 0.9rem;
    color: #666;
    font-family: 'Arial', sans-serif;
}

/* NEWアイコン */
.newicon {
    color: #e63946; /* 注意を引く赤 */
    font-size: 0.75rem;
    font-weight: bold;
    border: 1px solid #e63946;
    padding: 1px 4px;
    border-radius: 2px;
    line-height: 1;
}

/* お知らせタイトル */
.news-item a {
    flex: 1;
    min-width: 280px;
    color: #333;
    text-decoration: none;
    font-size: 1rem;
    font-weight: 500;
    line-height: 1.5;
    transition: color 0.2s ease;
}

@media (hover: hover) and (pointer: fine) {
    .news-item a:hover {
        color: #007bff;
        text-decoration: underline;
    }
}

/* ページネーション */
.pagination {
    display: flex;
    gap: 8px;
    font-family: sans-serif;
    margin: 20px 0;
    justify-content: center;
}

.pagination a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 40px;
    height: 40px;
    padding: 0 12px;
    text-decoration: none;
    font-size: 1.1rem;
    font-weight: 500;
    border-radius: 4px;
    transition: all 0.3s ease;
    background-color: #F4E9D8;
    color: #5D4D37;
    border: 1px solid #E5D8C1;
}

@media (hover: hover) and (pointer: fine) {
    .pagination a:hover:not(.active) {
        background-color: #EBDCBE;
        border-color: #D6C29D;
        color: #3E3221;
    }
}

.pagination a.active {
    background-color: #8C704B;
    color: #FFFFFF;
    border-color: #8C704B;
    cursor: default;
}

.pagination a:last-child {
    font-size: 1.1rem;
    padding: 0 15px;
}

.pagination .dots {
    padding: 8px 16px;
    color: #999;
    display: inline-block;
}

/* タブレット */
@media screen and (min-width: 768px) and (max-width: 1024px) {
    ul.ul_news {
        width: 90%;
    }
    
    .news-item {
        padding: 1rem;
        gap: 12px;
    }

    .pagination {
        gap: 8px;
    }
    
    .pagination a {
        min-width: 42px;
        height: 42px;
    }
}

/* スマートフォン */
@media screen and (max-width: 767px) {
    ul.ul_news {
        width: 100%;
        box-sizing: border-box;
        margin: 2rem 0;
    }

    .news-item {
        flex-direction: column;
        align-items: flex-start;
        padding: 1rem 0.5rem;
        gap: 5px;
    }

    .news_catdate {
        width: 100%;
        min-width: auto;
    }

    .news-item a {
        width: 100%;
        line-height: 1.4;
    }
    
    .newicon {
        margin-left: 5px;
    }

    .pagination {
        gap: 6px;
        margin: 15px 0;
    }

    .pagination a {
        min-width: 36px;
        height: 36px;
        padding: 0 8px;
        font-size: 0.9rem;
    }

    .pagination a:last-child {
        font-size: 1rem;
        padding: 0 10px;
        min-width: auto; 
    }
}

/* お知らせ詳細スタイル */
/* 記事全体のコンテナ */
.news-detail {
    max-width: 900px;
    margin: 40px auto;
    padding: 0 20px;
    line-height: 1.8;
    color: #333;
}

/* タイトル */
.news-title {
    font-size: 1.2rem;
    font-weight: bold;
    margin-bottom: 10px;
    line-height: 1.4;
    color: #222;
    /* アクセント：タイトルの下に少し太めの線を引く */
    border-bottom: 3px solid #ffbdb6; /* 以前のボタン色に合わせたアクセント */
    padding-bottom: 15px;
}

/* 日付 */
.news-date {
    font-size: 0.95rem;
    color: #888;
    margin-bottom: 30px;
    text-align: right;
    font-family: 'Arial', sans-serif;
}

/* 本文エリア */
.news-body {
    margin-bottom: 50px;
    padding: 10px 0;
}

/* 本文内の改行や段落の調整 */
.news-body br {
    margin-bottom: 10px;
}

/* 一覧に戻るリンクのラップ */
.news-back {
    text-align: center;
    border-top: 1px solid #eee;
    padding-top: 30px;
    margin-top: 50px;
}

/* 一覧に戻るボタン（リンク） */
.news-back a {
    display: inline-block;
    background-color: #f5f5f5;
    color: #333;
    text-decoration: none;
    padding: 12px 40px;
    border-radius: 30px;
    font-size: 0.9rem;
    font-weight: bold;
    transition: all 0.3s ease;
    border: 1px solid #ddd;
}

.news-back a:hover {
    background-color: #333;
    color: #fff;
    border-color: #333;
    transform: translateX(-5px); /* 左に少し動くアニメーション */
}

/* --- レスポンシブ対応 (スマホ) --- */
@media screen and (max-width: 767px) {
    .news-detail {
        margin: 20px auto;
    }

    .news-title {
        font-size: 1.4rem;
        padding-bottom: 10px;
    }

    .news-body {
        font-size: 1rem;
    }

    .news-back a {
        width: 100%; /* スマホではボタンを横いっぱいに */
        box-sizing: border-box;
    }
}