/* カスタム調整用CSS */
/* このファイルは既存のCSSを上書きするための微調整用CSSです */

:root {
    --shadow: 0 0 10px rgba(0, 0, 0, 0.2);
    --main-color: #0190BF;
}

/* サイドバナー設定 */
[class*="side_left"],
[class*="side_right"] {
    position: absolute;
    height: auto;
    left: 50%;
    transform: translateX(-50%);
}
.side_left_1 {
    width: 90%;
    top: 80px;
}

.side_left_2 {
    width: 90%;
    bottom: -2%;
}

.side_right.logo {
    width: 80%;
    height: fit-content;
    top: 0%;
}

.button_box {
    display: flex;
    flex-direction: column;
    gap: 3px;
    right: 15px;
    bottom: 10%;
    width: 47%;
}
.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);
}

@media screen and (min-width: 661px) {
    .tel_sp {
        display: none;
    }
}

@media (max-width: 1080px) {
    [class^="side_"] {
        display: none;
    }
}
/* YouTube動画のスタイル */
.youtube-section {
    background-color: #fcf4ed;
}
.section-title {
    font-size: 24px;
    margin-bottom: 10px;
    color: #333;
}
/* 全体のフォントサイズ調整 */
body::before {
    background-image: url(../image/bg.jpg);
    background-size: 50%;
}
/* メインコンテンツ調整 */
main {
    width: 60%;
    max-width: 660px;
}

main#top {
    background-color: var(--main-color);
}
/* ヘッダー調整 */
#header {
    background-color: #f6f6f6;
    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 {
    padding-top: 0;
    background-color: #0190bf;
}
.form_title {
    width: 80%;
    padding-top: 30px;
    padding-bottom: 15px;
    margin: 0px auto;
    transform: translateX(8%);
}
/* フッター調整 */
#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: 0%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 78.4%;
}

/* 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 {
    width: 100%;
    margin: 0 auto;
}

body.top main {
    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 {
    width: 100%;
    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);
    }
}

body.company main {
    .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: 50%;
    }
}

header h1 a {
    display: block;
    height: fit-content;
}

header h1 img {
    width: 100%;
    height: auto;
}

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: url(../image/bg_left.jpg) no-repeat center center / cover;
}

#background_wapper .bg_object_2 {
    background: #c3e1ff;
}


/* レスポンシブ対応 */
@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%拡大 */
    }
}