@charset "UTF-8";
/* ============================================================
custom.css — 案件調整用（いじる側）
基盤スタイルは style.css を参照
   ============================================================ */


/* ========================= CSS変数（案件ごとに変更） ========================= */

:root {
    /* カラー */
    --main-color: #080147;
    --header-color-bg: #fff;
    --header-tel-color-bg: #333;
    --header-tel-color-number: var(--header-tel-color-bg);
    --header-tel-color-text: var(--header-color-bg);
    --header-tel-color-icon: var(--header-tel-color-bg);
    --footer-text-color: #fefefe;
    --footer-text-color-hover: #fff;
    --youtube-color-bg: #fcf4ed;
    --shadow: 0 0 10px rgba(0, 0, 0, .2);

    /* 背景 */
    --background-left-bg: url(../image/bg_left.jpg) no-repeat center center / cover;
    --background-right-bg: url(../image/bg_right.jpg) no-repeat center center / cover;
    --background-static-bg: color-mix(in srgb, var(--main-color) 35%, #fff);
    --background-left-bg-company: var(--background-static-bg);
    --background-right-bg-company: var(--background-static-bg);
    --background-left-bg-privacy: var(--background-static-bg);
    --background-right-bg-privacy: var(--background-static-bg);
    --form-bg: url(../image/bg_form.jpg) no-repeat center center / cover;

    /* エラー */
    --error-color: #dc3545;

    /* CTA */
    --cta-h: 64px;
    --safe-bottom: 0px;
    --cta-pulse-scale: 1.03;
}


/* ========================= 全体 ========================= */

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Noto Sans JP', 'Hiragino Sans', 'Hiragino Kaku Gothic ProN', sans-serif;
}

/* ========================= 背景 ========================= */

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

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

body:not(.page-company, .page-privacy) #background-wrapper .bg_object_1 {
    background: var(--background-left-bg);
}

body:not(.page-company, .page-privacy) #background-wrapper .bg_object_2 {
    background: var(--background-right-bg);
}

body.page-company #background-wrapper .bg_object_1 {
    background: var(--background-left-bg-company);
}

body.page-company #background-wrapper .bg_object_2 {
    background: var(--background-right-bg-company);
}

body.page-privacy #background-wrapper .bg_object_1 {
    background: var(--background-left-bg-privacy);
}

body.page-privacy #background-wrapper .bg_object_2 {
    background: var(--background-right-bg-privacy);
}

/* SP：背景画像を非表示 → メインカラーに切り替え */
@media (max-width: 780px) {
    body:not(.page-company, .page-privacy) #background-wrapper .bg_object_1,
    body:not(.page-company, .page-privacy) #background-wrapper .bg_object_2 {
        background: var(--main-color);
    }
}


/* ========================= メインコンテンツ ========================= */

main:not(#Confirm) {
    width: 100%;
    margin: 0 auto;
    max-width: 660px;
    position: relative;
    z-index: 1;
}

main#top {
    background-color: var(--main-color);
}

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

@media (max-width: 780px) {
    main.page-main {
        margin-top: 8rem;
    }
}


/* ========================= ヘッダー ========================= */

/* PC幅（1080px以上）はサイドバナーがあるのでヘッダー非表示 */
@media (min-width: 1080px) {
    #header {
        display: none;
    }
}

header h1 {
    width: 20%;
    max-height: 90px;
    display: flex;
    align-items: center;
}

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

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

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

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

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

header nav ul li a {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    transition: all .2s ease;
}

/* PC用アイコン表示 / SP用非表示（デフォルト） */
.nav-icon-pc,
.tel-container {
    display: block;
}

.nav-icon-sp {
    display: none;
}

/* ロゴ：デフォルトはPC版表示、SP版非表示 */
.logo-pc { display: block; }
.logo-sp { display: none; }

/* タブレット以下（1080px以下）でSP版に切り替え */
@media (max-width: 1080px) {
    .logo-pc { display: none; }
    .logo-sp { display: block; }
}

.nav-label {
    display: none;
}

/* タブレット（781〜1080px） */
@media (max-width: 1080px) and (min-width: 781px) {
    header h1 img {
        max-height: 60px;
    }

    header nav ul li a img {
        max-height: 38px;
        width: auto;
    }
}

/* SP（780px以下） */
@media (max-width: 780px) {
    header h1 {
        width: 60%;
        max-height: 70px;
    }

    header nav {
        width: 55%;
        max-width: none;
    }

    header nav ul {
        gap: 0.25rem;
        justify-content: flex-end;
    }

    .nav-icon-sp {
        display: block;
        width: 44px;
        height: 44px;
    }

    .nav-icon-pc,
    .tel-container {
        display: none;
    }

    .nav-label {
        display: block;
        font-size: 0.625rem;
        color: #333;
        margin-top: 0.125rem;
        line-height: 1;
    }
}


/* ========================= 電話番号（ヘッダー内） ========================= */

.tel-container {
    width: 100%;
}

.tel-header {
    background-color: var(--header-tel-color-bg);
    text-align: center;
    padding: 2px 0 1px;
    border-radius: 2px;
}

.tel-header-text {
    display: block;
    color: var(--header-tel-color-text);
    font-size: 60%;
    line-height: 1;
}

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

.tel-icon {
    width: 9%;
    flex-shrink: 0;
    display: flex;
    align-items: center;
}

.tel-icon svg {
    width: 14px;
    height: auto;
}

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

.tel-icon-svg {
    fill: var(--header-tel-color-icon);
}


/* ========================= サイドバナー ========================= */

[class*="side_left"],
[class*="side_right"] {
    position: absolute;
    height: auto;
    left: 50%;
    z-index: -1;
    transform: translateX(-50%);
}

.side_left_1 {
    width: 70%;
    max-width: 430px;
    top: 35%;
}

.side_left_2 {
    width: 100%;
    max-width: 550px;
    bottom: 0;
}

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


.button_box {
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
    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((100vw - 660px) * .5);
    height: 100%;
}

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

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

.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);
}

.instagram_button {
    background-image: url(../image/side_instagram.png);
}

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



/* ========================= フォームカラー ========================= */

.form-title {
    width: 70%;
    margin: 0 auto 1.25rem;
}

#form a.button,
#form .link-primary {
    color: var(--main-color);
}

main:not(#Confirm) .form-submit-btn input[type="submit"].active {
    cursor: pointer;
    pointer-events: auto;
    background-color: var(--main-color);
    color: #fff;
    box-shadow: 0 4px 8px color-mix(in srgb, var(--main-color) 20%, transparent);
}

main#Confirm .submit-btn,
main#Thanks .input-btn,
main#Thanks .input-btn a {
    background-color: var(--main-color);
    color: #fff;
}

main#Thanks .input-btn:hover {
    box-shadow: 0 4px 8px color-mix(in srgb, var(--main-color) 30%, transparent);
}

.form-control:focus {
    border-color: var(--main-color);
    outline: 3px solid color-mix(in srgb, var(--main-color) 45%, transparent);
    background: #fff;
}

.form-radio input[type="radio"],
form input[type="checkbox"] {
    accent-color: var(--main-color);
}

.field-error {
    color: var(--error-color);
}

#privacy_error {
    color: var(--error-color) !important;
}

.form-row-inner input.error,
.form-row-inner textarea.error,
textarea#comment.error {
    border: solid 2px var(--error-color, #dc3545) !important;
}


/* ========================= YouTube ========================= */

.youtube-section {
    background-color: var(--youtube-color-bg);
    padding: 4% 4.5% 3%;
    text-align: center;
}

.youtube-wrapper {
    position: relative;
    width: 100%;
    max-width: 800px;
    margin: 0 auto;
    padding-bottom: 56.25%;
    height: 0;
    overflow: hidden;
}

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


/* ========================= セクション ========================= */

.section-title {
    font-size: 1.5rem;
    font-weight: bold;
    text-align: center;
    color: #333;
    padding-top: 2rem;
    margin-bottom: 0.625rem;
}


/* ========================= フッター ========================= */

/* TOP：max-width で中央寄せ */
body.top .footer-wrapper {
    width: 100%;
    max-width: 660px;
    margin: 0 auto;
    overflow: hidden;
}


/* ========================= トップページ ========================= */

body.top main:not(#Confirm) .info-card table {
    width: 100%;
    border-collapse: collapse;
}

body.top main:not(#Confirm) .info-card table th {
    background-color: #f5f5f5;
    text-align: center;
    font-weight: bold;
    border: 1px solid #ddd;
    color: #222;
}

body.top main:not(#Confirm) .info-card table td {
    background-color: #fff;
    border: 1px solid #ddd;
    color: #333;
}

body.top main:not(#Confirm) .table-box tr:not(:first-child) td {
    border-top: none;
}

body.top main:not(#Confirm) .map-box,
body.top main:not(#Confirm) .table-box {
    width: 100%;
}

/* フォームの .panel とパディングを揃える（PC・SP） */
body.top #form .info-card {
    padding: 2.2rem 2.8rem;
}

@media (max-width: 780px) {
    body.top #form .info-card {
        padding: 2rem;
    }
}

@media (max-width: 780px) {
    body.top main:not(#Confirm) table th,
    body.top main:not(#Confirm) table td {
        border: none;
    }

    /* display:grid(1400px rule)を打ち消してテーブルを全幅に戻す */
    body.top main:not(#Confirm) .table-box table {
        display: table;
        width: 100%;
    }
}


/* ========================= 会社概要 / プライバシー 共通 ========================= */

body:where(.page-company, .page-privacy) main {
    display: grid;
    place-items: center;
    padding: 4rem 1.25rem;
}

body:where(.page-company, .page-privacy) main.page-main:not(#Confirm) {
    margin-top: 5rem;
    margin-bottom: 5rem;
}

body:where(.page-company, .page-privacy) .section-title {
    font-size: 1.6rem;
    font-weight: 700;
    text-align: center;
    color: #222;
    margin-bottom: 2rem;
    padding-bottom: 0.875rem;
    border-bottom: 2px solid var(--main-color);
    letter-spacing: .08em;
}

body:where(.page-company, .page-privacy) main .form-txt {
    line-height: 1.75;
}


/* ========================= 会社概要ページ ========================= */

body.page-company main:not(#Confirm) section.company-table,
body.page-company main:not(#Confirm) .inner {
    width: 100%;
    max-width: 860px;
}

body.page-company main:not(#Confirm) .info-card {
    border-radius: 10px;
    box-shadow: 0 2px 16px rgba(0,0,0,.1);
    padding: 1.75rem 2rem;
}

/* style.css の .table-box table td { display: block } を会社ページのみ打ち消す */
body.page-company main:not(#Confirm) .table-box table td {
    display: table-cell;
}

body.page-company .info-card table {
    width: 100%;
    border-collapse: collapse;
}

body.page-company .info-card table th {
    background-color: #f5f5f5;
    text-align: center;
    font-weight: bold;
    border: 1px solid #ddd;
    color: #222;
}

body.page-company .info-card table td {
    background-color: #fff;
    border: 1px solid #ddd;
    color: #333;
}

body.page-company .map-box iframe {
    height: 200px;
    border-radius: 4px;
}


/* ========================= プライバシーポリシーページ ========================= */

body.page-privacy main:not(#Confirm) {
    width: 100%;
    background-color: transparent;
}

body.page-privacy main:not(#Confirm) .inner {
    width: 100%;
    max-width: 720px;
}

body.page-privacy main:not(#Confirm) section.page-section {
    width: 100%;
    background-color: #fff;
    border-radius: 10px;
    box-shadow: 0 2px 16px rgba(0,0,0,.1);
    padding: 1.75rem 2rem;
}

body.page-privacy .inner p {
    font-size: .95rem;
    line-height: 1.9;
    color: #444;
    margin-bottom: 1rem;
}

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



@media (max-width: 780px) {

    body.page-company main:not(#Confirm) .info-card {
        padding: 1.25rem 1rem;
    }

    body.page-privacy main:not(#Confirm) section.page-section {
        padding: 1.25rem 1rem;
    }

    body:where(.page-company, .page-privacy) main.page-main:not(#Confirm) {
        margin-top: 4rem;
        margin-bottom: 6rem;
    }
}



/* ========================= CTAボタン（first-view） ========================= */

.first-view {
    position: relative;
}

.first-view .cta-btn {
    position: absolute;
    left: 50%;
    width: 92%;
    transform: translate(-50%, -50%);
    animation: cta-button-animation 1.5s ease infinite;
}

/* bottom だけ個別指定 */
.first-view.control_1 .cta-btn {
    bottom: -3%;
}

.first-view.control_2 .cta-btn {
    bottom: -2%;
}

.first-view.control_3 .cta-btn {
    bottom: -1.2%;
}

.first-view.control_4 .cta-btn {
    bottom: -1.9%;
}

.cta {
    position: relative;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.cta::before {
    content: "";
    position: absolute;
    bottom: 3%;
    right: 7%;
    width: 48px;
    height: 50px;
    background-image: url(../image/CTA_item.png);
    background-size: contain;
    background-repeat: no-repeat;
}

@keyframes cta-button-animation {
    0% {
        transform: translate(-50%, -50%) scale(1);
    }

    15% {
        transform: translate(-50%, -50%) scale(var(--cta-pulse-scale));
    }

    30% {
        transform: translate(-50%, -50%) scale(1);
    }

    45% {
        transform: translate(-50%, -50%) scale(var(--cta-pulse-scale));
    }

    70% {
        transform: translate(-50%, -50%) scale(1);
    }

    90% {
        transform: translate(-50%, -50%) scale(var(--cta-pulse-scale));
    }
}


/* ========================= 固定CTAバー（SP） ========================= */

.fixed-cta {
    display: none;
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 2147483000;
    padding-bottom: var(--safe-bottom);
    background: transparent;
    pointer-events: none;
    transform: translateY(100%);
    opacity: 0;
    visibility: hidden;
    transition: transform .28s ease, opacity .28s ease, visibility .28s linear;
}

.fixed-cta>* {
    pointer-events: auto;
}

.fixed-cta .cta-img {
    flex: 1 1 0;
    display: block;
}

.fixed-cta .cta-img img {
    display: block;
    width: 100%;
    height: auto;
}

.fixed-cta.is-visible {
    transform: translateY(0);
    opacity: 1;
    visibility: visible;
}

.fixed-cta[data-debug="show"] {
    transform: none;
    opacity: 1;
    visibility: visible;
}

@media (max-width: 780px) {
    :root {
        --safe-bottom: env(safe-area-inset-bottom);
    }

    body {
        padding-bottom: calc(var(--cta-h) + var(--safe-bottom));
    }

    .fixed-cta {
        display: flex;
    }
}