/*================================共通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 {
    padding-top: 2rem;
}

.contact_form .inquiry_form {
    max-width: 850px;
    margin: 0 auto;
}

/* 項目 */
.contact_form .contact_item {
    display: block;
    padding: 0;
    margin-bottom: 48px;
    border: none;
}

/* ラベル */
.contact_form .contact_article {
    width: 100%;
    display: flex;
    align-items: center;
    margin-bottom: 16px;
    font-size: 1rem;
    font-weight: 700;
    color: #2951a5;
    letter-spacing: 0.05em;
}

/* 必須マーク */
.contact_form span.need {
    background: #f7820e;
    color: #ffffff;
    font-size: 0.9rem;
    font-weight: 700;
    padding: 4px 12px;
    border-radius: 30px;
    margin-right: 12px;
}

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

/* 入力フィールド */
.contact_form input[type="text"],
.contact_form input[type="email"],
.contact_form input[type="tel"],
.contact_form textarea,
.contact_form select {
    width: 100%;
    appearance: none;
    border: 2px solid #CBD5E1;
    background: #ffffff;
    border-radius: 16px;
    padding: 16px 24px;
    font-size: 17px;
    line-height: 1.6;
    color: #1E293B;
    transition: all 0.25s ease;
    box-sizing: border-box;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.02);
}

/* hover */
.contact_form input:hover,
.contact_form textarea:hover,
.contact_form select:hover {
    border-color: #5D74A4;
}

/* focus */
.contact_form input:focus,
.contact_form textarea:focus,
.contact_form select:focus {
    outline: none;
    border-color: #FFA44A;
    box-shadow: 0 0 0 4px rgba(255, 164, 74, 0.2);
    transform: translateY(-2px);
}

.contact_form textarea {
    min-height: 220px;
    resize: vertical;
}

.contact_form .wrap {
    display: flex;
    flex-direction: column;
    gap: 16px;
    padding: 8px 0;
}

.contact_form .wrap label {
    display: inline-flex;
    align-items: center;
    color: #1E293B;
    cursor: pointer;
    line-height: 1.4;
}

.contact_form .wrap input[type="radio"],
.contact_form .wrap input[type="checkbox"] {
    margin: 0 12px 0 0;
    width: 20px;
    height: 20px;
    cursor: pointer;
    accent-color: #FFA44A;
}

.contact_form input.input_space_03 {
    margin-top: 8px;
    width: 100%;
    max-width: 400px;
}

/* placeholder */
.contact_form ::placeholder {
    color: #94A3B8;
}

/* メモ */
.contact_form span.memo {
    display: block;
    margin-top: 12px;
    font-size: 0.8rem;
    line-height: 1.7;
    color: #555;
    font-weight: 500;
    text-align: left;
}

/* ボタンエリア */
.contact_form .btnArea_submit,
.contact_form .btnArea_submit2 {
    margin-top: 64px;
    display: flex;
    justify-content: center;
    gap: 24px;
    flex-wrap: wrap;
}

/* ボタン */
.contact_form .btn {
    appearance: none;
    border: none;
    min-width: 260px;
    padding: 20px 40px;
    border-radius: 999px;
    background: #FFA44A;
    color: #ffffff;
    font-size: 17px;
    font-weight: 700;
    letter-spacing: 0.08em;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 8px 20px rgba(255, 164, 74, 0.25);
}

.contact_form .btn:hover {
    transform: translateY(-4px);
    background: #FF922B;
    box-shadow: 0 12px 24px rgba(255, 164, 74, 0.35);
}

/* 戻るボタン等（背景と同化しないよう白背景にメインカラーの枠線） */
.contact_form .btn.btnGY {
    background: #ffffff;
    color: #5D74A4;
    border: 2px solid #5D74A4;
    box-shadow: 0 4px 10px rgba(93, 116, 164, 0.05);
}

.contact_form .btn.btnGY:hover {
    background: #F8FAFC;
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(93, 116, 164, 0.15);
}

/* ファイルアップロード */
.file-drop-area {
    border: 3px dashed #CBD5E1;
    border-radius: 20px;
    padding: 48px 24px;
    background: #ffffff;
    text-align: center;
    transition: all 0.3s ease;
}

.file-drop-area:hover,
.file-drop-area.is-active {
    border-color: #FFA44A;
    background: rgba(255, 164, 74, 0.03);
    transform: translateY(-2px);
}

.file-drop-area .fake-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 14px 28px;
    border-radius: 999px;
    background: #5D74A4;
    color: #ffffff;
    font-size: 15px;
    font-weight: 700;
    margin-bottom: 16px;
    transition: background 0.3s ease;
}

.file-drop-area:hover .fake-btn {
    background: #4A5D84;
}

.file-drop-area .file-msg {
    display: block;
    color: #64748B;
    font-size: 15px;
    font-weight: 500;
}

/* 確認画面 */
dl.contact_confirm {
    background: #ffffff;
    border-radius: 24px;
    padding: 48px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.03);
}

.contact_confirm dt {
    font-size: 15px;
    font-weight: 700;
    color: #5D74A4;
    margin-bottom: 8px;
}

.contact_confirm dd {
    font-size: 17px;
    font-weight: 700;
    color: #1E293B;
    margin-bottom: 32px;
    padding-bottom: 24px;
    border-bottom: 2px dashed #E2E8F0;
}

.contact_confirm dd:last-child {
    margin-bottom: 0;
    padding-bottom: 0;
    border-bottom: none;
}

.contact_form .text_area {
    text-align: center;
}

/* スマートフォン */
@media screen and (max-width: 767px) {
    .contact_form {
        padding: 32px 16px;
    }

    .contact_form .btn {
        width: 100%;
        min-width: auto;
    }

    .file-drop-area {
        padding: 40px 20px;
    }

    dl.contact_confirm {
        padding: 32px 24px;
    }
}

/* タブレット：縦 */
@media screen and (min-width: 768px) and (max-width: 1024px) and (orientation: portrait) {
    .contact_form .inquiry_form {
        padding: 0 24px;
    }
}

/*個人情報保護方針 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: 0;
    padding: 0;
    box-sizing: border-box;
}
.sitemap_list dt,
.sitemap_list dd {
    box-sizing: border-box;
}

.sitemap_list dt {
    font-weight: bold;
    font-size: 1.1rem;
}

.sitemap_list dt .sm_list {
    position: relative;
    padding-left: 18px;
    color: #fff;
    text-decoration: none;
    transition: opacity 0.2s ease;
}

@media (hover: hover) and (pointer: fine) {
    .sitemap_list dt .sm_list:hover {
        opacity: 0.8;
    }
}

.sitemap_list dt .sm_list:before {
    content: "";
    position: absolute;
    top: 50%;
    left: 0;
    transform: translateY(-50%);
    width: 0;
    height: 0;
    padding-left: 3rem;
    border-width: 5px 0 5px 8px;
    border-style: solid;
    border-color: transparent transparent transparent #AEE2CB;
}

.sitemap_list dt .sm_clist {
    position: relative;
    padding-left: 18px;
}
.sitemap_list dt .sm_clist:before {
    content: "";
    position: absolute;
    top: 50%;
    left: 0;
    transform: translateY(-50%) rotate(45deg);
    width: 5px;
    height: 5px;
    border-top: 2px solid #93c9ff;
    border-right: 2px solid #93c9ff;
}

.sitemap_list dd {
    margin: 0;
}

.sitemap_list dd a {
    color: #E2ECF7;
    text-decoration: none;
    display: inline-block;
    padding: 2px 0;
    transition: color 0.2s ease;
}
.sitemap_list dd a:hover {
    color: #fff;
    text-decoration: underline;
}

/* スマートフォン (〜767px) */
@media screen and (max-width: 767px) {
    dl.sitemap_list {
        padding: 10px;
    }
    .sitemap_list dt {
        padding: 15px 10px 5px;
    }
    .sitemap_list dd {
        padding: 5px 10px 15px;
        border-bottom: 1px solid rgba(255, 255, 255, 0.15);
    }
    .sitemap_list dd:last-of-type {
        border-bottom: none;
    }
}

/* タブレット：縦 (768px〜1024px 縦画面) */
@media screen and (min-width: 768px) and (max-width: 1024px) and (orientation: portrait) {
    dl.sitemap_list {
        flex-flow: row wrap;
    }
    .sitemap_list dt {
        width: 40%;
        padding: 20px 15px;
        border-bottom: 1px solid rgba(255, 255, 255, 0.15);
        font-size: 0.8rem;
    }
    .sitemap_list dd {
        width: 60%;
        padding: 20px 15px;
        border-bottom: 1px solid rgba(255, 255, 255, 0.15);
    }
}

/* タブレット：横 (768px〜1024px 横画面) & PC用ベース */
@media screen and (min-width: 768px) and (max-width: 1024px) and (orientation: landscape) {
    dl.sitemap_list {
        flex-flow: row wrap;
    }
    .sitemap_list dt {
        width: 40%;
        padding: 25px 20px;
        border-bottom: 1px solid rgba(255, 255, 255, 0.15);
        font-size: 0.9rem;
    }
    .sitemap_list dd {
        width: 60%;
        padding: 25px 20px;
        border-bottom: 1px solid rgba(255, 255, 255, 0.15);
    }
}

/* PC */
@media screen and (min-width: 1025px) {
    dl.sitemap_list {
        flex-flow: row wrap;
    }
    .sitemap_list dt {
        width: 40%;
        padding: 25px 20px;
        border-bottom: 1px solid rgba(255, 255, 255, 0.15);
    }
    .sitemap_list dd {
        width: 60%;
        padding: 25px 20px;
        border-bottom: 1px solid rgba(255, 255, 255, 0.15);
    }
}

/*会社概要 profile_block.php
---------------------------------------------------------------------------*/
table.table_profile {
    width: 70%;
    margin: 0 auto;
    border-collapse: collapse;
    background: none;
}

table.table_profile tr {
    border-bottom: 1px solid #dcdfe5;
}

table.table_profile th,
table.table_profile td {
    padding: 32px 20px;
    vertical-align: top;
    box-sizing: border-box;
}

table.table_profile th {
    width: 26%;
    font-size: 1.1rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-align: left;
    position: relative;
    white-space: nowrap;
}

table.table_profile td {
    line-height: 2.1;
    font-weight: 400;
    letter-spacing: 0.02em;
}

table.table_profile td br + br {
    display: block;
    content: "";
    margin-top: 12px;
}

/* Googleマップ */
table.table_profile td iframe {
    display: block;
    margin-left: auto;
    margin-right: auto;
    max-width: 100%;
}

/* PC・タブレット表示時、マップ専用行のスタイル調整 */
table.table_profile tr.row_map td {
    padding: 0 0 32px 0;
    text-align: center; 
}
table.table_profile tr.row_map iframe {
    display: block;
    margin: 0 auto;
    width: 100%;         
    max-width: 100%; 
}

table.table_profile tr:has(+ tr.row_map) {
    border-bottom: none;
}

/* スマートフォン (767px以下) */
@media screen and (max-width: 767px) {
    table.table_profile {
        width: 100%; /* 全幅にして見やすく */
        margin: 20px auto;
    }

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

    table.table_profile tr {
        padding: 24px 0; /* 行ごとの上下余白を少しゆったりに */
    }

    table.table_profile th,
    table.table_profile td {
        display: block;
        width: 100%;
        padding: 0; /* tr側で余白をとるため、一旦0に */
        text-align: left;
    }

    table.table_profile th {
        margin-bottom: 8px; /* 項目名と内容の間のスキマ */
        font-size: 14px; /* 小さすぎたのを修正（tdとのバランス調整） */
        font-weight: 700;
        letter-spacing: 0.08em;
    }

    table.table_profile td {
        font-size: 14px; /* thと揃えて読みやすく */
        line-height: 1.8;
        padding-left: 0; /* 左側の謎の44px余白をカットして、縦のラインを揃える */
    }

    table.table_profile td iframe {
        width: 100%; 
    }
}

/* タブレット：縦 (768px〜1024px) */
@media screen and (min-width: 768px) and (max-width: 1024px) and (orientation: portrait) {
    table.table_profile {
        width: 90%; /* タブレット縦は横幅が狭いので、少し広げる */
    }

    table.table_profile th {
        width: 30%;
        font-size: 1rem;
    }

    table.table_profile td {
        font-size: 15px;
        line-height: 2;
    }

    table.table_profile th,
    table.table_profile td {
        padding: 28px 16px;
    }
}

/* タブレット：横 (768px〜1024px) */
@media screen and (min-width: 768px) and (max-width: 1024px) and (orientation: landscape) {
    table.table_profile {
        width: 80%; /* 画面幅に合わせて微調整 */
    }

    table.table_profile th {
        width: 28%;
    }

    table.table_profile th,
    table.table_profile td {
        padding: 30px 20px;
    }
}

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

footer .footerAddress {
    padding: 3% 0 1%; 
    width: 100%;
    box-sizing: border-box;
}

footer ul.addressArea.flex {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
    list-style: none;
    padding-left: 0;
    margin: 0;
}

footer ul.addressArea.flex li.addressArea_add {
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: center;
    text-align: left;
    width: 100%;
    max-width: 1200;
    gap: 5%;
}

footer .addressArea p {
    font-size: 110%;
    line-height: 1.8;
    text-align: left;
    margin: 0;
}

.companyname {
    display: flex;
    justify-content: flex-start;
    align-items: center;
    gap: 15px;
}

footer .addressArea p.foot_companyname {
    font-weight: bold;
    font-size: 2rem;
    margin: 0;
}

/* マップ関連のCSS（addressArea_map、iframe等）は削除しました */

footer figure {
    margin: 0;
}

footer img.footerLogo {
    width: 100%;
    max-width: 180px;
    display: block;
}

/* フッターメニュー foot_menu_block.php
---------------------------------------------------------------------------*/
footer nav.footernav {
    display: block;
    font-size: 0.7rem;
}

footer nav.footernav .inner.flex {
    display: flex;
    justify-content: center;
    padding: 1% 0;
}

footer nav.footernav ul.title {
    margin: 0 0.5rem;
}

/* コピーライト copyright_block.php
---------------------------------------------------------------------------*/
footer .footerCopyright {
    display: flex;
    padding: 1%;
    font-size: 0.7rem;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    text-align: center;
    border-top: 1px solid #333;
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
}

footer .footerCopyright img {
    display: none;
}

/* タブレット：横 */
@media screen and (min-width: 768px) and (max-width: 1024px) and (orientation: landscape) {
    footer nav.footernav {
        display: none;
    }

    footer img.footerLogo {
        max-width: 120px;
    }
}

/* タブレット：縦 */
@media screen and (min-width: 768px) and (max-width: 1024px) and (orientation: portrait) {
    footer nav.footernav {
        display: none;
    }

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

/* スマートフォン */
@media screen and (max-width: 767px) { 
    footer .footerAddress {
        padding: 8% 5% 5%;
    }

    footer ul.addressArea.flex li.addressArea_add {
        flex-direction: column;
        text-align: center;
        gap: 15px;
    }
    
    footer .addressArea p {
        font-size: 0.95rem;
        text-align: center;
    }

    .companyname {
        justify-content: center;
    }

    footer .addressArea p.foot_companyname {
        font-size: 1.3rem;
    }

    footer img.footerLogo {
        max-width: 75px;
    }

    footer nav.footernav {
        display: none;
    }

    footer .footerCopyright {
        padding: 4% 1%;
    }
}