/*================================共通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: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;
    background-color: #f9f9f9;
}
/* 各フォーム項目（行）のスタイル */
.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 300px;
    padding: 8px 15px;
    font-weight: bold;
    color: #333;
    line-height: 1.5;
    text-align: left;
}

/* 入力必須マーク */
.contact_article .need {
    background-color: #e3342f;
    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: 400px;
    width: 100%; 
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 4px;
    box-sizing: border-box;
    font-size: 16px;
}

.contact_input_area textarea {
    resize: vertical;
}

/* ラジオボタン・チェックボックスのグループ */
.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: #666;
    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: #E38868; /* 青色 */
    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: #CF795B;
}

/* ご入力内容にお間違いがないか、ご確認ください。 のテキスト */
.text_area {
    text-align: center;
    margin-top: 20px;
    padding: 10px;
    background-color: #fff3cd; /* 薄い黄色 */
    border: 1px solid #ffeeba;
    color: #856404;
    border-radius: 4px;
}

/*入力確認ページのボタン*/
.contact_form .btnArea_submit2 {
    clear: both;
    padding-top: 2em;
    flex-wrap: nowrap;
    width: 100%;
    align-items: center;
    justify-content: center;
}
.contact_form .btn {
	margin: 1.5em;
}

/*内容確認*/
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 #ccc;
}

/* ------------------------------------------- */
/* スマートフォン (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;
        /* Flexboxは維持しつつ、子要素の幅設定で縦積みへ */
    }

    /* 項目名（ラベル）のスタイル */
    .contact_article {
        flex: 0 0 100%; /* 全幅を使用し、縦に積み重ねる */
        padding: 8px 10px 0; /* 下のパディングを減らす */
        text-align: left; /* 左揃えを維持 */
    }
    
    /* 必須マーク */
    .contact_article .need {
        /* SPで必須マークが邪魔にならないよう、横幅を調整 */
        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; /* 最大幅の制限を解除し、SPの幅に合わせる */
    }
    
    /* 入力確認ページの項目名・内容 */
    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;
    }
}

/*個人情報保護方針 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%;
    margin-top: 2rem;
}
.sitemap_list dt {
    padding: 10px 20px 0;
	border-bottom: none;
    font-weight: bold;
}
.sitemap_list dt .sm_list {
    position: relative;
    padding-left: 15px;
    color: #666;
    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 #ffa149;
}
.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;
	}
    .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: 70%;
  margin: 2% auto;
  border-collapse: collapse; /* セルの境界線を結合 */
  border-spacing: 0;
  border: 1px solid #c7c7c7;
}

/* 各行（tr）の境界線 */
table.table_profile tr {
  border-bottom: 1px solid #c7c7c7;
}
/* 最後の行は下線なし */
table.table_profile tr:last-child {
  border-bottom: none;
}

/* th（見出し）とtd（データ）の共通スタイル */
table.table_profile th,
table.table_profile td {
  display: block; /* モバイルではブロック要素として縦並びに */
  width: 100%;
  padding: 15px; /* パディングを統一 */
  text-align: left;
}

/* th（見出し）のスタイル */
table.table_profile th {
  background: #e99b81;
  color: #333333;
  font-weight: bold;
}

/* th（見出し）とtd（データ）の区切り線 */
table.table_profile tr th,
table.table_profile tr td {
  border-right: none;
}

/* タブレット・PC（768px以上）向けスタイル */
@media screen and (min-width: 768px) {
  table.table_profile th,
  table.table_profile td {
    display: table-cell; /* PCではテーブルセルとして横並びに */
    width: auto;
    padding: 20px;
  }
  
  /* thの幅を20%に固定 */
  table.table_profile th {
    width: 20%;
    /* PC表示での右側の境界線 */
    border-right: 1px solid #c7c7c7;
  }
}

/*フッター footer_block.php
---------------------------------------------------------------------------*/
footer {
    background-color: #e99b81;
    color: #f9f9f9;

}

.footerAddress {
  text-align: center;
  padding-top: 1rem;
}

.footerAddress .inner {
  display: inline-block;
  text-align: left;
}

.addressArea_add {
    display: flex;
    text-align: center;
}

img.footerLogo {
    width: 35%;
    list-style: none;
}

.footerAddress p {
    text-align: left;
    align-content: center;
    width: 60%;
    font-size: 1.5rem;
    line-height: 140%;
}

li.addressArea_map {
    list-style: none;
}

/* スマートフォン */
@media screen and (max-width: 767px) { 
    .addressArea_add {
        flex-direction: column; 
        gap: 20px;
        align-items: center;
        text-align: center;
    }

    img.footerLogo {
        width: 70%; 
        max-width: 200px;
    }

    .footerAddress p {
        width: 100%;
        text-align: center;
        font-size: 1rem;
        line-height: 1.6;
    }

    li.addressArea_map {
        text-align: center;
        margin-top: 15px;
    }
}

/* タブレット */
@media screen and (min-width: 768px) and (max-width: 1024px) { 
    .footerAddress {
        margin-top: 2rem;
    }
    .addressArea_add {
        gap: 20px;
        margin-bottom: 2rem;
        align-items: center;
    }

    img.footerLogo {
        width: 100%;
        max-width: 200px;
    }

    .footerAddress p {
        width: 60%;
        font-size: 1.2rem;
    }
}

/*フッターメニュー foot_menu_block.php
---------------------------------------------------------------------------*/
footer nav.footernav {
    display: none;
}
@media screen and (min-width:1024px){
    footer nav.footernav {
        display: block;
        font-size: 85%;
        color: #fff;
    }
    footer nav.footernav .inner.flex {
        justify-content: center;
        padding: 1% 0;
        border-top: solid 1px #fff;
        display: flex;
    }
    footer nav.footernav ul.title {
        margin: 0 1%;
    }
}

/*コピーライト copyright_block.php
---------------------------------------------------------------------------*/
.footerCopyright {
  text-align: center;
  align-content: center;
  font-size: 0.7rem;
  font-weight: 300;
  height: 3rem;
}

.footerCopyright span {
  display: inline-block;
  text-align: left;
}

/* スマートフォン */
@media screen and (max-width: 767px) { 
    .footerCopyright {
        font-size: 0.65rem;
    }
    
    .footerCopyright span {
        text-align: center;
    }
}

/* タブレット */
@media screen and (min-width: 768px) and (max-width: 1024px) { 
    .footerCopyright {
        font-size: 0.7rem;
    }
    
    .footerCopyright span {
        text-align: left;
    }
}

/*更新履歴 topics_block.php
---------------------------------------------------------------------------*/
/*モーダル*/
.modal {
    position: fixed;
    top: 0;
    left: 0;
    z-index: 9999;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.7);
    display: flex;
    align-items: center;
    justify-content: center;
}
.modal.hidden {
    display: none;
}
.modal-content {
	background: #fff;
	padding: 20px;
	max-width: 600px;
	width: 90%;
	max-height: 90vh;
	overflow-y: auto;
	position: relative;
	border-radius: 8px;
}
.modal-content h2 {
  font-size: 1.5rem;
}
.close-modal {
    position: absolute;
    top: 10px;
    right: 15px;
    background: #9d9d9d;
    color: #fff;
    padding: 5px;
    border-radius: 5px;
    font-size: 1.5rem;
    cursor: pointer;
    transition: background 0.3s;
    font-weight: bolder;
}
.modal.active {
	display: flex;
}
.hidden {
	display: none;
}
.mySwiper img {
	max-width: 100%;
	height: auto;
}
.modal-content h2{
    font-size: clamp(1.5rem, 3.2vw, 1.5rem);
	margin: 1em auto 0.5em;
}
.swiper-button-next:after,
.swiper-button-prev:after {
    color: #fff;
	font-weight: bold;
    text-shadow: 2px 3px 4px #000;
}
.swiper-horizontal>.swiper-pagination-bullets .swiper-pagination-bullet,
.swiper-pagination-horizontal.swiper-pagination-bullets .swiper-pagination-bullet {
    background: #333;
}
