/*================================共通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
---------------------------------------------------------------------------*/
.contact_form {
    width: 100%;
    box-sizing: border-box;
    font-family: sans-serif;
    color: #333;
    line-height: 1.6;
}

.contact_form *,
.contact_form *::before,
.contact_form *::after {
    box-sizing: border-box;
}

/* フォームの入力アイテム枠 */
.contact_item {
    display: flex;
    flex-flow: column;
    padding: 1.5rem 0;
    border-bottom: 1px dashed #ddd;
}

/* ラベル項目 */
.contact_article {
    font-weight: bold;
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 0.75rem;
}

/* 必須・任意バッジ */
.contact_form span.need {
    font-size: 0.75rem;
    color: #fff;
    background-color: #e53e3e; /* 赤 */
    padding: 0.2rem 0.6rem;
    border-radius: 4px;
    font-weight: bold;
}

/* 項目内のaタグ（リンク） */
.contact_article a {
    color: #3182ce;
    text-decoration: underline;
}
.contact_article a:hover {
    color: #2b6cb0;
    text-decoration: none;
}

/* 入力エリア */
.contact_input_area {
    width: 100%;
}

/* 各種フォーム部品の標準化 */
.contact_input_area input[type="text"],
.contact_input_area textarea,
.contact_form select {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid #ccc;
    border-radius: 4px;
    font-size: 1rem;
    background-color: #fff;
    transition: border-color 0.2s;
}

.contact_input_area input[type="text"]:focus,
.contact_input_area textarea:focus,
.contact_form select:focus {
    border-color: #3182ce;
    outline: none;
}

/* プレースホルダーのカラー */
::placeholder {
    color: #a0aec0;
}

/* 注記・注釈 */
.contact_form span.memo {
    display: block;
    font-size: 0.85rem;
    color: #718096;
    margin-top: 0.5rem;
    font-weight: normal;
}

/* チェックボックス・ラジオボタンの包み */
.contact_input_area .wrap {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    margin-bottom: 0.5rem;
}

.contact_input_area label {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    cursor: pointer;
    font-weight: normal;
}

/* その他入力欄 */
.contact_input_area input.input_space_03 {
    display: inline-block;
    width: auto;
    min-width: 200px;
    margin-left: 0.5rem;
}

/* ボタンエリア共通 */
.btnArea_submit,
.btnArea_submit2 {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    padding: 2.5rem 0;
    clear: both;
}

.contact_form .btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 160px;
    padding: 0.85rem 2rem;
    font-size: 1rem;
    font-weight: bold;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    transition: opacity 0.2s;
}

.contact_form .btn:hover {
    opacity: 0.85;
}

.contact_form .btnWT {
    background-color: #3182ce; /* 送信・確認（青） */
    color: #fff;
}

.contact_form .btnGY {
    background-color: #718096; /* 戻る（グレー） */
    color: #fff;
}

/* 内容確認用のdlリスト */
dl.contact_confirm {
    width: 100%;
    margin: 2rem 0;
    border-top: 1px solid #e2e8f0;
}

dl.contact_confirm dt {
    font-weight: bold;
    padding: 1rem;
    background-color: #f7fafc;
    border-bottom: 1px solid #e2e8f0;
}

dl.contact_confirm dd {
    padding: 1rem;
    margin: 0;
    border-bottom: 1px solid #e2e8f0;
}


/* スマートフォン (～767px) */
@media screen and (max-width: 767px) {
    .contact_item {
        padding: 1rem 0;
    }

    .contact_article {
        width: 100%;
    }

    .contact_input_area {
        width: 100%;
    }

    /* ボタンを縦並びにしてタップしやすく */
    .btnArea_submit,
    .btnArea_submit2 {
        flex-direction: column;
        align-items: stretch;
        gap: 1rem;
    }

    .contact_form .btn {
        width: 100%;
    }

    /* 確認画面もシンプルな縦並び */
    dl.contact_confirm dt,
    dl.contact_confirm dd {
        display: block;
        width: 100%;
        text-align: left;
    }
    
    dl.contact_confirm dt {
        border-bottom: none;
        padding-bottom: 0.25rem;
    }
}


/* タブレット：縦 */
@media screen and (min-width: 768px) and (max-width: 1024px) and (orientation: portrait) {
    .contact_item {
        flex-direction: row;
        align-items: flex-start;
        justify-content: space-between;
    }

    .contact_article {
        width: 35%;
        margin-bottom: 0;
        padding-top: 0.5rem;
    }

    .contact_input_area {
        width: 62%;
    }

    /* 確認画面の2カラム配置 */
    dl.contact_confirm {
        display: grid;
        grid-template-columns: 35% 65%;
    }

    dl.contact_confirm dt {
        border-bottom: 1px solid #e2e8f0;
        display: flex;
        align-items: center;
    }

    dl.contact_confirm dd {
        border-bottom: 1px solid #e2e8f0;
    }
}


/* タブレット：横 */
@media screen and (min-width: 768px) and (max-width: 1024px) and (orientation: landscape) {
    .contact_item {
        flex-direction: row;
        align-items: flex-start;
        justify-content: space-between;
        padding: 1.75rem 0;
    }

    .contact_article {
        width: 30%;
        margin-bottom: 0;
        padding-top: 0.5rem;
    }

    .contact_input_area {
        width: 67%;
    }

    dl.contact_confirm {
        display: grid;
        grid-template-columns: 30% 70%;
    }

    dl.contact_confirm dt {
        border-bottom: 1px solid #e2e8f0;
        display: flex;
        align-items: center;
        padding: 1.25rem;
    }

    dl.contact_confirm dd {
        border-bottom: 1px solid #e2e8f0;
        padding: 1.25rem;
    }
}


/* PCサイズ */
@media screen and (min-width: 1025px) {
    .contact_item {
        flex-direction: row;
        align-items: flex-start;
        justify-content: space-between;
        padding: 1.75rem 0;
    }

    .contact_article {
        width: 30%;
        margin-bottom: 0;
        padding-top: 0.5rem;
    }

    .contact_input_area {
        width: 67%;
    }

    dl.contact_confirm {
        display: grid;
        grid-template-columns: 30% 70%;
    }

    dl.contact_confirm dt {
        border-bottom: 1px solid #e2e8f0;
        display: flex;
        align-items: center;
        padding: 1.5rem;
        text-align: left;
    }

    dl.contact_confirm dd {
        border-bottom: 1px solid #e2e8f0;
        padding: 1.5rem;
        text-align: left;
    }
}

/*個人情報保護方針 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;
    color: #2b61ab;
    text-decoration: none;
    transition: color 0.2s ease;
}

.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 #3b82f6;
}

@media (hover: hover) and (pointer: fine) {
    .sitemap_list dt .sm_list:hover {
        color: #1d4ed8;
    }
}

.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 #60a5fa;
    border-right: 2px solid #60a5fa;
}

.sitemap_list dd {
    padding: 10px 20px;
    border-bottom: 1px solid #053472;
}

/* PC・タブレットサイズ */
@media screen and (min-width: 768px) {
    dl.sitemap_list {
        flex-flow: row wrap;
    }
    .sitemap_list dt {
        width: 25%;
        border-bottom: 1px solid #053472;
        padding: 20px;
    }
    .sitemap_list dd {
        width: 75%;
        padding: 20px;
        border-bottom: 1px solid #053472;
    }
}

/*会社概要 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
--------------------------------------------------------------------------- */
.foot_container {
    width: 100%;
    background-color: #ffffff;
    color: #333333;
    font-family: sans-serif;
}

.footerMainContent {
    width: 100%;
    padding: 30px 20px;
    box-sizing: border-box;
    border-top: 1px solid #e1e8f0;
}

.footerInner {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 30px;
}

.footerCompanyArea {
    display: flex;
    align-items: center;
    gap: 30px;
    flex: 2.2;
}

.footerCompanyArea .foot_logo {
    margin: 0;
    width: 260px;
    flex-shrink: 0;
}

.footerCompanyArea .foot_logo img {
    width: 100%;
    height: auto;
    display: block;
}

.footerCompanyArea .companyAddress {
    flex-grow: 1;
}

.footerCompanyArea .companyAddress p {
    margin: 0;
    font-size: 0.9rem;
    line-height: 1.6;
    color: #333333;
    white-space: nowrap;
    text-align: left;
}

/* スマートフォン */
@media screen and (max-width: 767px) {
    .footerInner {
        flex-direction: column;
        align-items: center;
        text-align: center;
        gap: 30px;
    }
    .footerCompanyArea {
        flex-direction: column;
        align-items: center;
        text-align: center;
        width: 100%;
        gap: 15px;
    }
    .footerCompanyArea .foot_logo {
        width: 240px;
    }
    .footerCompanyArea .companyAddress p {
        text-align: center;
        white-space: normal;
    }
}

/* タブレット：縦 */
@media screen and (min-width: 768px) and (max-width: 1024px) and (orientation: portrait) {
    .footerInner {
        justify-content: center; /* 全体を中央寄せ */
        gap: 30px;
    }
    .footerCompanyArea {
        flex: initial; /* flexの固定倍率を解除 */
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
    }
    .footerCompanyArea .foot_logo {
        width: 220px;
    }
    .footerCompanyArea .companyAddress p {
        white-space: normal;
    }
}

/* タブレット：横 */
@media screen and (min-width: 768px) and (max-width: 1024px) and (orientation: landscape) {
    .footerInner {
        justify-content: space-between;
        gap: 30px;
    }
    .footerCompanyArea {
        flex: initial; /* flexの固定倍率を解除 */
        gap: 20px;
    }
    .footerCompanyArea .foot_logo {
        width: 220px;
    }
    .footerCompanyArea .companyAddress p {
        white-space: normal;
    }
}

/* フッターメニュー foot_menu_block.php
--------------------------------------------------------------------------- */
footer nav.footernav {
    display: block;
    padding-left: 25px;
    border-left: 1px solid #cbd5e1;
    flex: auto; 
}

footer nav.footernav .menu-wrap {
    display: grid;
    grid-template-columns: repeat(2, max-content); 
    gap: 12px 40px;
}

footer nav.footernav ul.title {
    margin: 0;
    padding: 0;
    list-style: none;
}

footer nav.footernav ul.title li a {
    color: #333333;
    text-decoration: none;
    font-size: 0.8rem;
    transition: color 0.2s;
    display: block;
    white-space: nowrap; 
}

footer nav.footernav ul.title li a:hover {
    color: #2b61ab;
}

/* スマートフォン */
@media screen and (max-width: 767px) {
    footer nav.footernav {
        border-left: none; 
        border-top: 1px dashed #cbd5e1; 
        border-bottom: 1px dashed #cbd5e1;
        padding: 20px 0;
        width: 100%;
    }
    footer nav.footernav .menu-wrap {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px 15px;
        max-width: 340px;
        margin: 0 auto;
        text-align: left;
    }
    footer nav.footernav ul.title li a {
        white-space: normal; 
    }
}

/* タブレット：縦 */
@media screen and (min-width: 768px) and (max-width: 1024px) and (orientation: portrait) {
    footer nav.footernav {
        flex: initial; /* flexの伸長を解除 */
        padding-left: 25px;
    }
}

/* タブレット：横 */
@media screen and (min-width: 768px) and (max-width: 1024px) and (orientation: landscape) {
    footer nav.footernav {
        flex: initial; /* flexの伸長を解除 */
        padding-left: 25px;
    }
    footer nav.footernav .menu-wrap {
        gap: 12px 25px;
    }
}

/* コピーライト copyright_block.php
--------------------------------------------------------------------------- */
footer .footerCopyright {
    padding: 20px 0;
    background: #ffffff;
    font-size: 0.75rem;
    color: #363636;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    gap: 8px;
    font-weight: 400;
}

footer a.copyright {
    color: #363636;
    text-decoration: none;
}