@charset "utf-8";
@import url("https://fonts.googleapis.com/css2?family=Roboto+Slab:wght@300;400;500;700;900&family=Sora:wght@400;700&display=swap");

@import url('https://fonts.googleapis.com/css2?family=Roboto:ital,wght@0,100..900;1,100..900&display=swap');

:root {
    --color-primary: #C11920;
    --color-secondary: #EA5550;
    --color-dark: #21252f;
    --color-body: #FAFAFA;
    --line-color: #E3E3E3;
    --font-color: #333333;
    --box-shadow: 0 8px 22px rgba(0, 0, 0, 0.2);

    --fontsize-primary: 4rem;
    --fontsize-secondary: 3rem;
    --fontsize-tertiary: 2rem;
    --fontsize-quaternary: 1.5rem;
    --fontsize-quinary: 1.2rem;
    --fontsize-senary: 1rem;
    --fontsize-septenary: 0.8rem;

}

/* -------------------------------------------------------------------
Modern CSS Reset
------------------------------------------------------------------- */
*,
*::before,
*::after {
    box-sizing: border-box;
}

body,
h1,
h2,
h3,
h4,
h5,
h6,
p,
figure,
blockquote,
dl,
dd,
ul,
ol,
pre,
form,
fieldset,
legend {
    margin: 0;
    padding: 0;
}

html {
    -webkit-text-size-adjust: 100%;
    scroll-behavior: smooth;
    font-size: 100%;
    overflow-x: hidden;
}

body {
    line-height: 1.8;
    color: var(--font-color);
    font-family:
        -apple-system, BlinkMacSystemFont,
        "Segoe UI", "Helvetica Neue", Helvetica,
        "Noto Sans JP", "Hiragino Kaku Gothic ProN", "Meiryo",
        sans-serif;
    font-optical-sizing: auto;
    font-style: normal;
    font-variation-settings: "wdth" 100;
    overflow-x: hidden;
}

ul,
ol {
    list-style: none;
}

img,
picture,
video,
canvas,
svg {
    display: block;
    max-width: 100%;
    height: auto;
}

input,
button,
textarea,
select {
    font: inherit;
}

@media (prefers-reduced-motion: reduce) {
    html:focus-within {
        scroll-behavior: auto;
    }

    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
}

table {
    border-collapse: collapse;
    border-spacing: 0;
}

button,
[type="button"],
[type="reset"],
[type="submit"] {
    border: none;
    cursor: pointer;
    outline: none;
    padding: 0;
    appearance: none;
    transition: .3s;
}

button:hover,
[type="button"]:hover,
[type="reset"]:hover,
[type="submit"]:hover {
    opacity: .7;
}

hr {
    display: block;
    height: 1px;
    border: 0;
    border-top: 1px solid #ccc;
    margin: 1em 0;
    padding: 0;
}

main {
    display: block;
}

a {
    -webkit-tap-highlight-color: transparent;
    -webkit-transition: all 0.3s;
    transition: all 0.3s;
    text-decoration: none;
}

address {
    font-style: normal;
}

.font-w5 {
    font-weight: 500;
}

.font-w6 {
    font-weight: 600;
}

.font-w7 {
    font-weight: 700;
}

.fs-09 {
    font-size: 0.9rem;
}

.fs-40 {
    font-size: 4rem;
}
@media (max-width: 768px) {
    .fs-40 {
        font-size: 2.5rem;
    }
  }
@media (max-width: 468px) {
    .fs-40 {
        font-size: 2rem;
    }
  }


.kacoms_logo {
    width: 10rem;
}

/* ナビゲーションボタンのアニメーションの定義 */
@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.dropdown-toggle::after {
    display: none; !important
}

/* ドロップダウンが表示されるときにアニメーションを適用 */
.dropdown-menu.show {
    animation: fadeInDown 0.3s ease;
}

.btn-close {
    width: 0.5rem;
    height: 0.5rem;
}

.dropdown-menu {
    border: none;
    /* 枠線を消す */
    border-radius: 0;
    /* 角丸をなくす */
}

.dropdown-item {
    padding: 0.6rem 1rem;
    line-height: 1.6;
}

.dropdown-item:hover {
    background-color: var(--color-body);
    /* 好きな色に変更（例：淡いピンク） */
    color: var(--color-primary);
    /* 文字色も変更可能 */
}

.single-item a,
.dropdown-menu a {
    display: inline-block;
    /* これがないとリンク範囲が全幅になる */
    position: relative;
    /* 相対位置指定 */
}

.dropdown-menu a::after {
    background-color: var(--color-secondary);
    /* 下線の色 */
    bottom: -2px;
    /* 要素の下端からの距離 */
    content: "";
    /* 要素に内容を追加 */
    height: 1px;
    /* 下線の高さ */
    left: 0;
    /* 要素の左端からの距離 */
    position: absolute;
    /* 絶対位置指定 */
    transform: scale(0, 1);
    /* 下線を横方向に0倍、縦方向に1倍に変形（非表示） */
    transform-origin: right top;
    /* 変形の原点を右上に指定 */
    transition: transform .3s;
    /* 変形をアニメーション化 */
    width: 100%;
    /* 要素の幅 */
}

/* リンクにホバーした際の下線の表示 */
.dropdown-menu a:hover::after {
    transform-origin: left top;
    /* 変形の原点を左上に指定 */
    transform: scale(1, 2);
    /* 下線を横方向に1倍、縦方向に1倍に変形（表示） */
}

.single-item a::after {
    position: absolute;
    left: 0;
    content: '';
    width: 100%;
    height: 2px;
    background: var(--color-secondary);
    bottom: -2px;
    transform: scale(0, 1);
    transform-origin: right top;
    /*変形（アンダーラインの伸長）の原点がaタグ（各メニュー）の右端*/
    transition: transform 0.3s;
    /*変形の時間*/
}

.single-item a:hover {
    font-weight: 600;
}

.single-item a:hover::after {
    transform: scale(1, 1);
    /*ホバー後、x軸方向に1（相対値）伸長*/
    transform-origin: left top;
    /*左から右に向かう*/
}

.top-p2 {
    /* トップページのみh2ではない部分*/
    color: var(--color-dark);
    font-size: var(--fontsize-primary);
    font-weight: 700;
    line-height: 100%;
}

.top-h2 {
    /* トップページのみh1ではない部分*/
    color: var(color-primary);
    font-size: var(--fontsize-quinary);
    font-weight: 500;
}

h1 {
    color: var(--color-dark);
    font-size: var(--fontsize-primary);
    font-weight: 700;
}

h2 {
    color: var(--color-primary);
    font-size: var(--quinary-primary);
    font-weight: 500;
}

a {
    color: var(--dark);
    text-decoration: none;
}

img {
    width: 100%;
}

.logo {
    width: 160px;
}

header {
    background-color: #FFF;
}

.navbar .nav-link {
    color: var(--font-color) !important;
    font-size: 1.5rem 1rem;
    font-weight: 500;
}

.btn {
    padding: 14px 18px;
    border-width: 2px;
    border-radius: 0;
    transition: .3s;
}

.btn:hover {
    opacity: .7;
}

.btn-nav {
    display: flex;
    justify-content: center;
    position: relative;
    margin: 0 auto;
    padding: 0.5rem 1em;
    border: none;
    border-bottom: 2px solid #EA5550;
    background-color: transparent;
    font-weight: 600;
    font-size: 1rem;
}

.btn-nav::after {
    position: absolute;
    bottom: -3px;
    left: 0;
    transform: scaleX(0);
    transform-origin: center left;
    width: 100%;
    height: 2px;
    background-color: #EA5550;
    content: '';
    transition: transform .3s ease;
}

.btn-nav:hover::after {
    transform: scaleX(1);
}

.arrow-btn, .arrow-btn-re {
    color: #FFF;
    background-color: var(--color-primary);
}

.arrow-btn::after {
    position: relative;
    top: 50%;
    right: 0;
    display: inline-block;
    content: "";
    color: #FFF;
    width: 11px;
    height: 11px;
    border: 2px solid #FFF;
    border-left: 0;
    border-bottom: 0;
    box-sizing: border-box;
    transform: rotate(45deg);
    margin-left: 16px;
}

.arrow-btn:hover,
.arrow-btn:active {
    color: #FFF;
    background-color: var(--color-primary);
    border-color: var(--color-primary);
}

.arrow-btn-re::before {
    position: relative;
    top: 50%;
    left: 0;
    display: inline-block;
    content: "";
    color: #FFF;
    width: 11px;
    height: 11px;
    border: 2px solid #FFF;
    border-left: 0;
    border-bottom: 0;
    box-sizing: border-box;
    transform: rotate(-135deg);
    margin-right: 16px;
}

.arrow-btn-re:hover,
.arrow-btn-re:active {
    color: #FFF;
    background-color: var(--color-primary);
    border-color: var(--color-primary);
}

.arrow-btn:disabled {
    background-color: #E9E9E9!important;
}

.arrow-btn:disabled::after {
    border-color: #797979;
}

.btn-return {
    color: var(--font-color);
    background-color: #E9E9E9;
}

.btn-return::before {
    position: relative;
    top: 50%;
    left: 0;
    display: inline-block;
    content: "";
    color: var(--font-color);
    width: 11px;
    height: 11px;
    border: 2px solid currentColor;
    border-left: 0;
    border-bottom: 0;
    box-sizing: border-box;
    transform: rotate(-135deg);
    margin-right: 16px;
}

.btn-return:hover,
.btn-return:active {
    background-color: #E9E9E9;
    border-color: #E9E9E9;
}

.nav-toggle-btn {
    display: block;
    position: relative;
    padding: 0.5rem;
    font-weight: 600;
    font-size: 1rem;
    text-decoration: none;
    background-color: transparent;
    border-bottom: 2px solid #EA5550;
}

.nav-arrow {
    margin-left: 0.5rem;
    font-size: 0.6rem;
    color: var(--color-secondary);
    vertical-align: middle;
    /* ← 縦位置を揃える */
}

.nav-toggle-btn::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    height: 2px;
    width: 100%;
    background-color: #EA5550;
    transform: scaleX(0);
    transform-origin: left center;
    transition: transform 0.3s ease;
}

.nav-toggle-btn:hover::after {
    transform: scaleX(1);
}

.hero {
    background-attachment: fixed;
    position: relative;
    z-index: 2;
    width: 100%;
    height: 80vh;
}

.video-wrapper video {
    width: 100%;
    height: 80vh;
    object-fit: cover;
    position: absolute;
    /*position: fixed;ビデオ固定*/
    top: 0;
    left: 0;
}

.video-wrapper .video-lead {
    position: absolute;
    top: 50%;
    left: 40%;
    z-index: 1;
    transform: translate(-50%, -50%);
}
@media screen and (min-width:968px) {
    .video-wrapper .video-lead {
      left: 25%;
    }
}

.video-title{
  font-size: 4rem;
  line-height: 4.5rem;
}
@media (max-width: 968px) {
    .video-title {
        font-size: 3.5rem;
        line-height: 4rem;
        width: 150%;
    }
  }
@media (max-width: 568px) {
    .video-title {
        font-size: 2.5rem;
        line-height: 3rem;
        width: 150%;
    }
  }

.video-subtitle{
  font-size: 1.2rem;
    line-height: 1.8rem;
    width: 150%;
}
@media (max-width: 568px) {
    .video-subtitle {
        font-size: 1rem;
        line-height: 1.5rem;
        width: 150%;
    }
  }

/* PC改行なし SP改行あり */
.video_pc_hide{
    display: none;
}
@media screen and (max-width:568px) {
    .video_pc_hide{
        display: block;
    }
}


.bg-image {
    background-position: center;
    background-size: cover;
    /*  background-attachment: fixed; */
    position: relative;
}

section {
    padding-top: 80px;
    padding-bottom: 80px;
}

.card-effect {
    box-shadow: var(--box-shadow);
    background-color: #fff;
    transition: all 0.35s ease;
}

.card-effect:hover {
    box-shadow: none;
    transform: translateY(5px);
}

.lead-text {
    font-size: var(--fontsize-quinary);
}

.arrow {
    width: 24px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    /*background-color: var(--primary);*/
    color: var(--color-dark);
    font-size: 1.25rem;
    /*border-radius: 100px;*/
    flex: none;
    padding-bottom: 0.5rem;
}


.txt-hvr-rd a:visited {
    color: var(--color-dark);
}

/* リンクのデフォルトスタイルを無効化し、下線を追加する */
.txt-hvr-rd a {
    display: inline-block;
    /* これがないとリンク範囲が全幅になる */
    position: relative;
    /* 相対位置指定 */
}

/* 下線のスタイル */
.txt-hvr-rd a::after {
    background-color: var(--color-secondary);
    /* 下線の色 */
    bottom: -4px;
    /* 要素の下端からの距離 */
    content: "";
    /* 要素に内容を追加 */
    height: 1px;
    /* 下線の高さ */
    left: 0;
    /* 要素の左端からの距離 */
    position: absolute;
    /* 絶対位置指定 */
    transform: scale(0, 1);
    /* 下線を横方向に0倍、縦方向に1倍に変形（非表示） */
    transform-origin: right top;
    /* 変形の原点を右上に指定 */
    transition: transform .5s;
    /* 変形をアニメーション化 */
    width: 100%;
    /* 要素の幅 */
}

.txt-hvr-rd a:hover {
    color: var(--color-primary);
}

/* リンクにホバーした際の下線の表示 */
.txt-hvr-rd a:hover::after {
    transform-origin: left top;
    /* 変形の原点を左上に指定 */
    transform: scale(1, 1);
    /* 下線を横方向に1倍、縦方向に1倍に変形（表示） */
}

/*リンクテキスト-白い線と白い文字*/
.txt-hvr-wh a:visited {
    color: #FFF;
}

.txt-hvr-wh a {
    display: inline-block;
    /* これがないとリンク範囲が全幅になる */
    position: relative;
    /* 相対位置指定 */
}

.txt-hvr-wh a::after {
    background-color: #FFF;
    /* 下線の色 */
    bottom: -4px;
    /* 要素の下端からの距離 */
    content: "";
    /* 要素に内容を追加 */
    height: 1px;
    /* 下線の高さ */
    left: 0;
    /* 要素の左端からの距離 */
    position: absolute;
    /* 絶対位置指定 */
    transform: scale(0, 1);
    /* 下線を横方向に0倍、縦方向に1倍に変形（非表示） */
    transform-origin: right top;
    /* 変形の原点を右上に指定 */
    transition: transform .3s;
    /* 変形をアニメーション化 */
    width: 100%;
    /* 要素の幅 */
}

/* リンクにホバーした際の下線の表示 */
.txt-hvr-wh a:hover::after {
    transform-origin: left top;
    /* 変形の原点を左上に指定 */
    transform: scale(1, 1);
    /* 下線を横方向に1倍、縦方向に1倍に変形（表示） */
}

.company {
    background-image: url(../img/top/AdobeStock_211460587_Preview.jpeg);
}

.contact {
    background-image: url(../img/top/AdobeStock_179199275_Preview.jpeg);
}

/* recruitment section */
@keyframes infinity-scroll-left {
    from {
        transform: translateX(0);
    }

    to {
        transform: translateX(-100%);
    }
}

.scroll-infinity__wrap {
    display: flex;
    overflow: hidden;
}

.scroll-infinity__list {
    display: flex;
    list-style: none;
    padding: 0
}

.scroll-infinity__list--left {
    animation: infinity-scroll-left 80s infinite linear 0.5s both;
}

.scroll-infinity:hover .scroll-infinity__list {
  animation-play-state: paused;
}

.scroll-infinity__item {
    /*width: calc(100vw / 6);*/
    width: 320px;
}

.square-bg {
    position: relative;
    width: 200px;
    height: 200px;
}

.square {
    position: absolute;
    width: 100px;
    height: 100px;
    background-color: blue;
}

.square1 {
    top: 20px;
    left: 20px;
    z-index: 1;
}

.square2 {
    top: 50px;
    left: 50px;
    background-color: red;
    z-index: 2;
}

.max-wd720 {
    max-width: 720px;
    width: 100%;
}

/* 見出し */
.h-style-top {
    font-size: 64px;
    font-weight: bold;
    color: var(--font-color);
    line-height: 1.5;
}

.h-style-top p {
    color: var(--color-primary);
    font-size: 20px;
    font-weight: normal;
}

.h-style-line {
    font-size: 24px;
    font-weight: bold;
    border-left: 5px solid var(--color-primary);
    padding: 16px;
}

.h-style-border {
    font-size: 1.25rem;
    font-weight: bold;
    border-bottom: double 3px var(--color-secondary);
    padding: 16px;
}

.h-style-red {
    color: var(--color-primary);
    font-weight: bold;
    font-size: 20px;
    margin-bottom: 10px;
}

.pan {
    width: 100%;
    margin: 0 auto;
    padding: 20px 0 10px;
    background-color: var(--color-body);
    border-bottom: 1px solid #B4AFAF;
    position: relative;  /* スマホ横スクロール */
    overflow-x: auto; !impprtant /* スマホ横スクロール */
}

.pan ul {
    display: flex;
    flex-wrap: nowrap; /* スマホ横スクロール */
}

.pan ul::-webkit-scrollbar {
  display: none; /* スマホ横スクロールのバーを非表示 */
}

.pan li {
    padding-left: 16px;
    white-space: nowrap; /* スマホ横スクロール */
}

.pan li::before {
    content: "";
    display: inline-block;
    background-image: url(../img/common/arrow.svg);
    background-size: cover;
    background-repeat: no-repeat;
    width: 10px;
    height: 18px;
    color: #D8D8D8;
    margin-right: 16px;
    vertical-align: middle;
}

.pan li:first-child {
    padding-left: 0;
}

.pan li:first-child::before {
    display: none;
}

.pan li a {
    color: var(--main-color);
    font-size: 1rem;
}

@media screen and (max-width:868px) {
.pan ul::after {
  content: ""; /* スマホ横スクロールのバーを非表示 */
  position: absolute;
  top: 0;
  right: 0;
  width: 160px;
  height: 100%;
  background: linear-gradient(to left, white, transparent);
  pointer-events: none; /* クリックを妨げない */
}
  .pan ul{
    display:flex;
    overflow-x: scroll; !impprtant 
    white-space: nowrap;
  }
}

.progressbar {
    display: flex;
    gap: 1rem;
    margin-bottom: 40px;
}

.progressbar li {
    font-size: 20px;
    font-weight: bold;
    text-align: center;
    width: calc(100% / 3);
}

@media screen and (max-width:768px) {
    .progressbar li {
        font-size: 16px;
    }
}

.progressbar li span {
    display: block;
    background-color: #E9E9E9;
    color: var(--font-color);
    padding: 20px 16px;
    margin-bottom: 10px;
    position: relative;
}

.progressbar li.active span {
    display: block;
    background-color: var(--color-primary);
    color: #FFF;
    padding: 20px 16px;
    margin-bottom: 10px;
}

.progressbar li span::after {
    content: "▶";
    display: inline-block;
    position: absolute;
    right: 16px;
}

@media screen and (max-width:768px) {
    .progressbar li span::after {
        display: none;
    }
}

.list-come {
    margin-bottom: 40px;
    list-style: none;
}

.list-come li {
    padding-left: 1.5rem;
    position: relative;
}

.list-come li::before {
    content: "※";
    position: absolute;
    left: 0;
}

.form-contact .row {
    border: 1px solid var(--line-color);
    margin-bottom: -1px;
}

.form-contact .form_label_contact,
.form-contact .form_area_contact {
    padding: 10px;
}

.form-contact .form_label_contact {
    background-color: var(--color-body);
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-right: 1px solid var(--line-color);
    padding: 20px;
    font-weight: bold;
}

.form-contact .form_area_contact {
    display: flex;
    flex-direction: column;
    padding: 23px 20px 20px;
}

.errorMsg {
    border: 1px solid var(--color-primary);
    margin-bottom: 40px;
}

.errorMsg ul {
    padding: 16px 20px;
}

.errorMsg li {
    margin-bottom: 10px;
}

.errorMsg li::before {
    content: "・";
    color: var(--color-primary);
}

.errorMsg li:last-child {
    margin-bottom: none;
}

.arrow-link {
    text-decoration: none;
    color: #005DD6;
    padding: 5px 5px 5px 20px;
    display: inline-block;
    white-space: nowrap;
    position: relative;
}

.arrow-link::before {
    position: absolute;
    top: 50%;
    left: 0;
    display: inline-block;
    content: "";
    color: var(--font-color);
    width: 11px;
    height: 11px;
    border: 2px solid var(--font-color);
    border-left: 0;
    border-bottom: 0;
    box-sizing: border-box;
    transform: translateY(-50%) rotate(45deg);
}

.arrow-link:hover {
    text-decoration: underline;
}

.arrow-link-red {
    text-decoration: none;
    padding: 5px 20px 5px 5px;
    display: inline-block;
    white-space: nowrap;
    position: relative;
}

.arrow-link-red::before {
    position: absolute;
    top: 50%;
    right: 0;
    display: inline-block;
    content: "";
    color: var(--color-primary);
    width: 11px;
    height: 11px;
    border: 2px solid var(--color-primary);
    border-left: 0;
    border-bottom: 0;
    box-sizing: border-box;
    transform: translateY(-50%) rotate(45deg);
}


.text-link {
    color: var(--bs-link-color);
}

.text-link:hover {
    text-decoration: underline;
}

.required {
    color: var(--color-primary);
    border: 1px solid var(--color-primary);
    padding: 2px 10px 3px;
    border-radius: 4px;
}

.bg-gray {
    background-color: #E9E9E9!important;
}

.attention {
    width: 80%;
    margin: auto;
    padding: 40px;
}

.link-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.link-list li {
    border-bottom: 1px solid #ddd;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: .3s;
}

.link-list li a {
    color: #000;
    text-decoration: none;
    flex-grow: 1;
    padding: 1rem 0;
}

.link-list li:hover {
    background-color: rgba(234, 85, 80, .3);
}

.link-list li i {
    font-size: 0.9rem;
    color: #666;
}

.border-box {
    border: 1px solid #B3B3B3;
    padding: 20px;
}

.tate-line {
    border-left: 1px solid #B3B3B3;
}

.list-design .list-title {
    font-weight: bold;
}

.list-design > ul {
    list-style-type: disc;
    padding-left: 20px;
}

.list-disc {
    list-style-type: disc;
    padding-left: 20px;
}

.decimal-style {
    list-style-type: decimal;
    padding-left: 1.5rem;
}

.table-bordered.table-side-line-none > :not(caption) > * > * {
    border-width: var(--bs-border-width) 0;
}

.font-red {
    color: var(--color-primary);
}

@media (max-width: 767px) {
    .tate-line {
        border-left: none;
        border-top: 1px solid #B3B3B3;
    }
}

@media (max-width: 468px) {
    .h-style-top {
        font-size: 45px;
    }
    
    .h-style-top p {
        font-size: 18px;
    }
}




.footer-top {
    background-color: var(--color-dark);
}

.footer-md {
    max-width: 800px;
    width: 100%;
}

.list-main {
    font-size: var(--fontsize-quinary);
}

.list-small {
    font-size: var(--fontsize-septenary);
}

.footer-end {
    background-color: #FFF;
}

.footer-logo {
    width: 160px;
}

.footer-c {
    font-size: 0.7rem;
}

.pagetop a {
    position: fixed;
    display: flex;
    align-items: center;
    justify-content: center;
    right: 20px;
    bottom: 20px;
    width: 50px;
    height: 50px;
    background: var(--color-primary);
    border: none;
    cursor: pointer;
    z-index: 10;
}

.pagetop a::after {
    position: absolute;
    top: 50%;
    left: 50%;
    display: inline-block;
    content: "";
    color: #FFF;
    width: 11px;
    height: 11px;
    border: 2px solid currentColor;
    border-left: 0;
    border-bottom: 0;
    box-sizing: border-box;
    transform: translate(-50%, -50%) rotate(-45deg);
    margin-top: 4px;
}

.pagetop a:hover {
    opacity: .7;
}