/* カスタム調整用CSS */
/* このファイルは既存のCSSを上書きするための微調整用CSSです */

:root {
    --shadow: 0 0 10px rgba(0, 0, 0, 0.2);
    --main-color: #048EF0;
}

/* サイドバナー設定 */
[class*="side_left"],
[class*="side_right"] {
    position: absolute;
    height: auto;
    left: 50%;
    z-index: 6;
    transform: translateX(-50%);
}

.side_left_1 {
    width: 39%;
    max-width: 500px;
    top: 60.6%;
    left: 71%;
    z-index: 10;
}

.side_left_2 {
    width: 100%;
    max-width: 500px;
    bottom: 25%;
}

.side_right.logo {
    width: 70%;
    max-width: 500px;
    height: fit-content;
    top: 10%;
}

.side_right_2 {
    width: 100%;
    height: fit-content;
    bottom: 0%;
}

.button_box {
    display: flex;
    flex-direction: column;
    gap: 3px;
    position: absolute;
    right: 15px;
    bottom: 10%;
    width: 47%;
    max-width: 500px;
}

.button_box a[class*="_button"] {
    display: block;
    aspect-ratio: 489.0266 / 226.592;
    border-radius: 5px;
    overflow: hidden;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

[class^="side_box_"] {
    position: fixed;
    width: calc(calc(100vw - 660px) * 0.5);
    height: 100%;
}

.side_box_left {
    left: 0;
    top: 0;
}

.side_box_right {
    right: 0;
    bottom: 0px;
}

.line_button {
    background-image: url(../image/side_line.png);
}

.form_button {
    background-image: url(../image/side_mail.png);
}

.tel_button {
    background-image: url(../image/side_tel.png);
}

.tel-header {
    background-color: #333;
}

.tel-number {
    color: #333;
}

.tel-container {
    width: 100%;
}

.tel-header {
    text-align: center;
    padding-top: 2px;
    padding-bottom: 1px;
    border-radius: 2px;
    margin-bottom: 0px;
}

.tel-header-text {
    display: block;
    color: #ffdc4a;
    font-size: 60%;
    line-height: 1em;
}

.tel-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-weight: bold;
    font-size: 1.125rem;
}

.tel-icon {
    width: 9%;
}

.tel-number {
    font-size: clamp(0px, 2.3vw, 22px);
    font-weight: 700;
    font-family: "Roboto Condensed", sans-serif;
    line-height: 1em;
    letter-spacing: -0.05em;
    white-space: nowrap;
    font-feature-settings: "palt";
}

@media (max-width: 660px) {
    .tel-container {
        display: none;
    }
}

@media screen and (min-width: 661px) {
    .tel_sp {
        display: none;
    }
}

@media (max-width: 1080px) {
    [class^="side_"] {
        display: none;
    }
}

/* YouTube動画のスタイル */
.youtube-section {
    background-color: #00008b;
}

.section-title {
    font-size: 24px;
    margin-bottom: 10px;
    color: #ffffff;
}

/* 全体のフォントサイズ調整 */
body::before {
    /* background-image: url(../image/bg.jpg); */
    background-size: 50%;
}

/* メインコンテンツ調整 */
main:not(#Confirm) {
    width: 60%;
    max-width: 660px;
    position: relative;
    z-index: 1;
}

main#top {
    background-color: #00008b;
}

/* ヘッダー調整 */
#header {
    background-color: #fff;
    min-height: 60px;
    /* 最小高さを設定 */
    max-height: 100px;
    /* 最大高さを制限 */
    padding: 0.5% 3%;
    /* 上下の余白を追加 */
    column-gap: 2%;
}

@media screen and (min-width: 1081px) {
    #header {
        display: none;
    }
}

header h1 {
    /* 最大高さを制限 */
    width: 20%;
    max-height: 90px;
}

@media (max-width: 660px) {
    header h1 {
        width: 50%;
    }
}

header h1 img {
    max-height: 70px;
}

header nav {
    max-width: 630px;
    width: 70%;
}

@media (max-width: 660px) {
    header nav {
        width: 50%;
    }
}

header nav ul {
    column-gap: 5%;
}

header nav ul li {
    width: 20%;
}

header nav ul li a {
    width: 100%;
}

@media (max-width: 660px) {
    header nav ul li a {
        max-width: 40px;
        max-height: 100%;
    }
}

.form_title {
    width: 100%;
    /* margin: 0px auto 20px; */
}

/* フッター調整 */
#top+.footer_wapper {
    width: 100%;
    max-width: 660px;
    margin: 0 auto;
    overflow: hidden;
}

footer {
    padding: 50px 0;
    background-color: #333;
    /* 暗い背景色を追加 */
}

.footer_link {
    padding-top: 0;
    margin-bottom: 50px;
}

.footer_link a {
    color: #fefefe;
    font-size: 16px;
}

.footer_link a:hover {
    color: #ccc;
}

.footer-divider {
    color: #fefefe;
    margin: 0 5px;
}

.copy {
    color: #fefefe;
    font-size: 12px;
}

/* メディアクエリ - タブレット表示調整 */
@media screen and (min-width: 781px) and (max-width: 1024px) {

    /* タブレット表示の調整 */
    header h1 {
        max-height: 70px;
    }

    header nav ul li a img {
        max-height: 35px;
    }
}

/* CTAセクションのスタイル設定 */
.first-view {
    position: relative;
}

.first-view .cta_button {
    position: absolute;
    bottom: -5.1%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 90%;
}

/* CTAセクションの装飾アイテム（右下に配置される画像） */
.cta::before {
    content: "";
    bottom: 3%;
    /* 下から3%の位置 */
    right: 7%;
    /* 右から7%の位置 */
    width: 48px;
    height: 50px;
    background-image: url(../image/CTA_item.png);
}

/* プライバシーポリシーと会社概要のスタイル */
body.privacy main {
    padding: 50px 0;

    section.contact {
        width: 80%;
        max-width: 660px;
        background-color: #fff;
    }
}

body.company main {
    padding: 50px 0;

    table {
        width: 100%;
        margin: 0;
    }

    th {
        background-color: var(--main-color);
        border-color: #333;
        color: #fff;
    }

    td {
        padding: 5px;
        border-color: #333;
    }
}

/* YouTube動画セクションのスタイル */
.youtube-wrapper {
    position: relative;
    width: 100%;
    max-width: 800px;
    margin: 0 auto;
    padding-bottom: 56.25%;
    /* 16:9のアスペクト比 */
    height: 0;
    overflow: hidden;
}

.youtube-wrapper iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    box-shadow: var(--shadow);
    border-radius: 5px;
}

/* スクロールのスムーズな動き */
html {
    scroll-behavior: smooth;
}

/* 全体のフォントサイズ調整 */
body::before {
    content: "";
    position: fixed;
    top: 0;
    left: 0;
    z-index: -1;
    width: 100%;
    height: 100%;
}

.youtube-section {
    padding: 4% 4.5% 3%;
    text-align: center;
}

.section-title {
    font-weight: bold;
}

/* メインコンテンツ調整 */
main:not(#Confirm) {
    width: 100%;
    margin: 0 auto;
}

body.top main:not(#Confirm) {
    box-shadow: var(--shadow);

    .left_box tr:not(:first-child) td {
        border-top: none;
    }

    .add_wapper {
        flex-direction: column;
    }

    .right_box {
        width: 100%;
    }

    .left_box {
        width: 100%;

        @media (max-width: 780px) {
            table th {
                border: none;
            }
        }
    }
}

body.privacy main:not(#Confirm) {
    width: 45%;
    max-width: 100%;
    height: 100%;
    background-color: transparent;
    padding: 50px 0;

    section.contact {
        width: 80%;
        max-width: 660px;
        border-radius: 10px;
        box-shadow: var(--shadow);
    }
}

@media screen and (max-width: 1080px) {
    body.privacy main:not(#Confirm) {
        width: 100%;
    }
}


body.company main:not(#Confirm) {
    .bosyu {
        width: 100%;
    }

    table {
        width: 100%;
        margin: 0;
    }

    .tbody {
        width: 100%;
    }

    th {
        font-weight: 700;
    }

    td {
        background-color: #fff;
        text-align: center;
    }

    /* 会社情報ページのコンテナ */
    .company-container {
        background-color: #fff;
    }
}

body:where(.company, .privacy) main {
    display: grid;
    place-items: center;

    .section__ttl {
        font-weight: 700;
    }

    .form__txt {
        line-height: 1.75em;
    }
}

/* ヘッダー調整 */
header {
    height: auto;
    /* コンテンツに合わせて高さを自動調整 */
}

header h1 {
    /* 最大高さを制限 */
    display: flex;
    align-items: center;
}

@media (max-width: 660px) {
    header h1 {
        width: 35%;
    }
}

header h1 a {
    display: block;
    width: 100%;
}

header h1 img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

header nav {
    display: flex;
    justify-content: flex-end;
    align-items: center;
}

header nav ul {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    width: 100%;
}

header nav ul li {
    display: flex;
    align-items: center;
}

header nav ul li a {
    width: 100%;
    display: block;
    transition: all 0.2s ease;
}

/* フッター調整 */
footer {
    text-align: center;
}

.footer_link a {
    text-decoration: none;
    transition: color 0.3s ease;
}

/* CTAセクションのスタイル設定 */
.cta {
    position: relative;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

/* CTAボタンのスタイル設定 */
.cta_button {
    position: absolute;
    animation: cta-button-animation 1.5s ease infinite;
    /* 標準ブラウザ用アニメーション */
    -webkit-animation: cta-button-animation 1.5s ease infinite;
    /* Safari用アニメーション */
}

/* CTAセクションの装飾アイテム（右下に配置される画像） */
.cta::before {
    content: "";
    position: absolute;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

/* 会社情報テーブルのスタイル */
.company_tb table,
.bosyu table {
    width: 100%;
    border-collapse: collapse;
    margin: 20px 0;
}

.company_tb th,
.company_tb td,
.bosyu th,
.bosyu td {
    padding: 15px;
    border: 1px solid #ddd;
    position: relative;
}

.company_tb th {
    width: 30%;
    background-color: #f5f5f5;
    font-weight: bold;
    border-right: none;
}

/* セル内のコンテンツを縦横中央揃え */
.cell-content {
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    height: 100%;
    width: 100%;
    line-height: 1.5em;
}

/* レスポンシブ対応 */
@media screen and (max-width: 767px) {

    .company_tb th,
    .company_tb td,
    .bosyu th,
    .bosyu td {
        padding: 10px;
    }

    .company_tb th,
    .bosyu th {
        width: 40%;
    }
}

/* 会社情報ページのコンテナ */
.company-container {
    width: 100%;
    max-width: 800px;
    padding: 20px;
    border-radius: 5px;
    box-shadow: var(--shadow);
}

.company-container .section-title {
    text-align: center;
    margin-bottom: 20px;
    font-size: 24px;
    color: #333;
    border-bottom: 2px solid #f5f5f5;
    padding-bottom: 10px;
}

#background_wapper {
    position: fixed;
    top: 0;
    left: 0;
    z-index: -100;
    width: 100%;
    height: 100%;
    display: flex;
    background-color: #fcf4ed;
}

#background_wapper [class^="bg_object_"] {
    position: relative;
    width: 50%;
    height: 100%;
    overflow: hidden;
}

#background_wapper .bg_object_1 {
    background-color: #ff4e00;
}

#background_wapper .bg_object_2 {
    background-color: #00008b;
}


/* レスポンシブ対応 */
@media screen and (max-width: 767px) {
    .company-container {
        margin: 20px auto;
        padding: 15px;
    }

    .company-container .section-title {
        font-size: 20px;
    }
}

/* ボタンのパルスアニメーション定義（標準ブラウザ用） */
@keyframes cta-button-animation {
    0% {
        transform: translate(-50%, -50%) scale(1);
        /* 通常サイズ */
    }

    15% {
        transform: translate(-50%, -50%) scale(1.03);
        /* 3%拡大 */
    }

    30% {
        transform: translate(-50%, -50%) scale(1);
        /* 通常サイズに戻る */
    }

    45% {
        transform: translate(-50%, -50%) scale(1.03);
        /* 再度3%拡大 */
    }

    70% {
        transform: translate(-50%, -50%) scale(1);
        /* 通常サイズに戻る */
    }

    90% {
        transform: translate(-50%, -50%) scale(1.03);
        /* 最後に3%拡大 */
    }
}

/* ボタンのパルスアニメーション定義（Safari用） */
@-webkit-keyframes cta-button-animation {
    0% {
        -webkit-transform: translate(-50%, -50%) scale(1);
        /* 通常サイズ */
    }

    15% {
        -webkit-transform: translate(-50%, -50%) scale(1.03);
        /* 3%拡大 */
    }

    30% {
        -webkit-transform: translate(-50%, -50%) scale(1);
        /* 通常サイズに戻る */
    }

    45% {
        -webkit-transform: translate(-50%, -50%) scale(1.03);
        /* 再度3%拡大 */
    }

    70% {
        -webkit-transform: translate(-50%, -50%) scale(1);
        /* 通常サイズに戻る */
    }

    90% {
        -webkit-transform: translate(-50%, -50%) scale(1.03);
        /* 最後に3%拡大 */
    }
}

/* 必須ラベル */
.must {
    color: #ffffff;
    background-color: #e21000;
    padding: 2px 8px;
    font-size: 75%;
    font-weight: bold;
    margin: 0 auto 0 5px;
}

/* 入力欄共通 */
input[type="text"],
input[type="email"],
input[type="tel"],
input[type="password"],
select {
    background-color: #e6e6e6;
    width: 100%;
    border: 0;
    margin: 7px 0;
    height: 35px;
    font-family: 'Noto Sans JP', sans-serif;
    padding: 0.5em;
    box-sizing: border-box;
}

/* チェックボックス */
input[type="checkbox"] {
    width: 15px;
    height: 15px;
    vertical-align: middle;
    margin-right: 5px;
}

/* 見出し余白 */
.ttl_box02 h2 img {
    padding: 50px 0 0;
}

/* フォーム内テキスト */
.form__txt {
    color: #000000;
    text-align: center;
}

/* リンク */
a {
    color: #000;
}

/* 段落 */
p {
    font-size: 0.9rem;
    line-height: 1.6;
}

/* レスポンシブ対応 */
@media (max-width: 780px) {
    .ttl_box02 h2 img {
        max-width: 100%;
    }
}

@media (max-width: 1200px) {
    .panel {
        padding: 30px;
        width: 100%;
    }
}

/* フォーム全体 */
.panel_wapper {
    background: #f9f9f9;
    padding: 20px;
    border-radius: 10px;
}

/* ラベル整列 */
label {
    display: block;
    font-weight: bold;
    margin-bottom: 5px;
}

/* フォームグループ */
.flx_box03 {
    margin-bottom: 20px;
}

/* 送信ボタンエリア */
.form_submit_btn {
    text-align: center;
    margin-top: 30px;
}

/* フォーム行の余白調整 */
.flx_box03 {
    display: flex;
    flex-direction: column;
    margin-bottom: 20px;
}

/* ラベル内の必須マークを右寄せにしすぎない */
label .must {
    display: inline-block;
    margin-left: 8px;
}

/* セレクト + その他入力欄：縦並び */
#building,
#building_other {
    margin-top: 5px;
}

/* チェックボックス整列 */
input[type="checkbox"] {
    transform: scale(1.2);
    margin-right: 6px;
    vertical-align: middle;
}

.input-button.submit__btn {
    background: #00008b;
    color: #fff;
    padding: 5px 30px;
    font-size: 1rem;
    border: none;
    border-radius: 4px;
    cursor: pointer;
}

img.scroll-fade-up.mascot1 {
    position: absolute;
    width: 30%;
    top: 25%;
    left: 58%;
}

.image-wrapper_1 {
    position: relative;
}

img.scroll-fade-up.mascot2 {
    position: absolute;
    width: 28%;
    top: 1%;
    left: 74%;
}

img.scroll-fade-up.mascot3 {
    position: absolute;
    width: 30%;
    top: 81%;
    left: 31%;
}

/* SPバナーの基本スタイル */
.sp-banner {
    display: none;
    position: fixed;
    bottom: 0;
    width: 100%;
    z-index: 9999;
}

.sp-banner img {
    width: 100%;
    height: auto;
}

/* 768px以下（スマホ）で表示 */
@media screen and (max-width: 768px) {
    .sp-banner {
        display: block;
    }
}