﻿/* =========================
色設計
========================= */
:root {
    --header-background-color: rgba(48, 48, 48, 1);
    --footer-background-color: rgba(48, 48, 48, 1);
    --base-background-color: rgba(250, 250, 250, 1);
    --string-white-color: rgba(250, 250, 250, 1);
    --base-font-color: rgba(48, 48, 48, 1);

    --border-color-in-bgblack: rgba(250, 250, 250, 0.2);

    --box-background-highlight: rgba(0, 52, 139, 0.03);

    --box-shadow-strong: rgba(0,0,0,0.5);
    --box-shadow-medium: rgba(0,0,0,0.2);
    --box-shadow-light: rgba(0, 0, 0, 0.12);
    --box-shadow-lighter: rgba(0,0,0,0.08);

    --white-deep: rgba(230, 240, 255, 1); /* 見出し、強調したい文字 */
    --white-strong: rgba(210, 225, 250, 1); /* メインの文章 */
    --white-medium: rgba(180, 205, 240, 1); /* サブテキスト、アイコン */
    --white-light: rgba(150, 180, 230, 1); /* 注釈、補助テキスト */
    --white-lighter: rgba(120, 160, 215, 1); /* 非アクティブな状態など */

    --blue-deep:    rgba(0, 52, 139, 1);
    --blue-strong:  rgba(20, 75, 160, 1);
    --blue-medium:  rgba(50, 105, 190, 1);
    --blue-light:   rgba(90, 145, 220, 1);
    --blue-lighter: rgba(140, 185, 250, 1);

    --table-row-hilight: rgba(255, 255, 255, 0.05);
    --table-row-hilight-strong: rgba(255, 255, 255, 0.1);

}
html {
    scroll-behavior: smooth;
    font-size: clamp(16px, 1.6vw, 18px);
/*    background-color: var(--base-background-color);*/
    /* 左から右へのグラデーション */
    background: linear-gradient(to right, rgb(0, 0, 7), rgb(0, 52, 139), rgb(0, 0, 7));
}
body {
    font-family: sans-serif;
    color: var(--white-strong);
    margin: 0;
    line-height: 1.8;
    overflow-x: hidden;
}
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 clamp(16px, 4vw, 24px);
    overflow-x: hidden;
}

/* h1使って文字を隠した状態でもクローラーに無視されないようにするためのCSS(display:none; visibility: hiddenは無視される) */
.visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    border: 0;
}

.nobrk {
    display: inline-block;
    white-space: nowrap;
}

.text-block 
{
    display: inline-block;
}

a,
a:visited {
    color: inherit;
    text-decoration: none;
}

.hero {
    font-size: clamp(36px, 5vw, 64px);
    font-weight: 700;
    line-height: 1.2;
}

h1 {
    font-size: clamp(32px, 4.5vw, 54px);
}

h2 {
    font-size: clamp(22px, 4vw, 40px);
}

h3 {
    font-size: clamp(20px, 2vw, 32px)
}
h2, h3, h4 {
    scroll-margin-top: clamp(85px, 5vw, 90px);
}

.head-line {
    border-top: 2px solid var(--orange-strong);
    border-bottom: 2px solid var(--orange-strong);
    margin: 10px auto 10px;
}



/* ===== SPテキスト切替 ===== */
.pc-text {
    display: none;
}

.sp-text {
    display: inline;
}

@media (min-width: 768px) {
    .pc-text {
        display: inline;
    }

    .sp-text {
        display: none;
    }
}
@media (max-width: 767px) {
    .container {
        width: 95%;
        margin: 0 auto;
    }

}

/* 階層の間に入る区切りマーク「 > 」を自動付与 */
.breadcrumb li:not(:last-child)::after {
    content: ">";
    margin-left: 0.6em;
    margin-right: 0.6em;
    color: var(--breadcrumb-link-color);
    font-size: 0.75rem;
}

/* リンクをホバーした時だけサイトカラーに変化 */
.breadcrumb a:hover {
    color: var(--orange-strong);
    text-decoration: underline;
}

/* リンク要素（ホバーできるボタン）の挙動 */
.page-numbers:hover:not(.current-page) {
    background-color: var(--orange-lighter);
    border-color: var(--orange-medium);
    color: var(--orange-deep);
    transform: translateY(-1px);
}

/* 送信ボタン共通 */
.submit-btn {
    background: var(--orange-strong);
    color: var(--cta-color) !important;
    border: none;
    padding: clamp(14px, 1.5vw, 18px) clamp(40px, 6vw, 80px);
    font-size: clamp(16px, 1.2vw, 18px);
    font-weight: 700;
    border-radius: 2rem;
    cursor: pointer;
    box-shadow: 0 0.25rem 0.9375rem var(--flowDialog-button-shadow);
    transition: all 0.3s ease;
}

.submit-btn:hover {
    color: var(--orange-deep) !important;
    background: var(--orange-light);
    transform: translateY(-0.125em);
    box-shadow: 0 0.375rem 1.25rem var(--box-shadow-light);
}

/* リンク系ボタン共通(index(法人向け/個人向け) / customer-servicesの診断ボタン は個別設定) */
.link-btn {
    display: inline-block;
    padding: clamp(12px, 1.8vw, 16px) clamp(32px, 6vw, 64px);
    background: var(--orange-strong) !important;
    color: var(--cta-color) !important;
    font-weight: 700;
    font-size: clamp(15px, 1.8vw, 16px);
    border-radius: 2rem;
    box-shadow: 0 0.25rem 0.9375rem var(--button-shadow-standard);
    transition: all 0.25s ease;
}

.link-btn:hover {
    color: var(--orange-deep) !important;
    background: var(--orange-light) !important;
    box-shadow: 0 0.375rem 1.25rem var(--button-shadow-light);
    transform: translateY(-1px);
}

/* ヘッダ画像 */
.service-category-catch-copy {
    position: relative;
    width: 100%;
    border-radius: 1rem;
    overflow: hidden;
}

.service-category-catch-copy figure img {
    width: 100%;
    height: auto;
    display: block;
    aspect-ratio: 1536 / 700;
}

/* 小ページのヘッダ */
.page-header-visual {
    position: relative;
    width: 100%;
    height: clamp(150px, 22vw, 350px); /* 画面幅に応じて150px〜350pxへ滑らかに可変 */
    overflow: hidden;
    border-radius: 1rem;
    margin-bottom: clamp(24px, 4vw, 48px);
}

.page-header-visual figure,
.page-header-visual img {
    width: 100%;
    height: 100%;
    aspect-ratio: 1152/350;
}

.page-header-visual img {
    object-fit: cover; /* 横長でも縦長でも中央を基準に綺麗にフィット */
    object-position: center;
}
