﻿:root {
    --white-color: rgba(237, 237, 237, 1);
    --light-color: rgba(202, 196, 20, 1);
    --dark-color: rgba(10, 89, 44, 1);
    --green-text-color: rgba(30, 125, 36, 1);
    --normal-green-color: rgba(79, 205, 84, 1);
    --light-green-color: rgba(163, 219, 161, 1);
    --form-color: rgba(238, 249, 233, 1);
    --gray-color: rgba(243, 243, 245, 1);
    --gutter: 64px;
    --gap: 24px;
    --line-w: 3px;
    --line-color: rgba(226, 213, 50, 1);
}

:focus {
    outline: none !important;
    box-shadow: none !important;
}

html,
body {
    overflow-x: hidden;
}

body {
    margin: 0;
    font-family: sans-serif;
    caret-color: transparent;
}

input,
textarea {
    caret-color: auto;
}

nav .container {
    padding: 0;
    margin-bottom: 50px;
}

.container {
    padding: 0;
    margin-bottom: 100px;
}



h1 {
    font-size: medium;

}

.custom-hamburger {
    background-color: var(--dark-color);
    /* 濃い青背景 */
    border-radius: 0 0 0 10px;
    /* 左下だけ角丸 */
    padding: 10px 15px;
    position: fixed;
    top: 0;
    right: 0;
}

.navbar-toggler {
    border: none;
    padding: 0;
}

.hamburger-icon {
    width: 28px;
    height: 28px;
    fill: #cfd8dc;
    /* 薄いグレー */
}

.address div {
    margin: 4px 0;
}

#target {
    display: inline-block;
}

#navGhost {
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 100;
    background: linear-gradient(to bottom,
            white 65%,
            rgba(255, 255, 255, 0) 100%);
    padding: 5px 0px 0px 5px;
    opacity: 0;
    transition: opacity 0.3s ease, transform 0.3s ease;
    transform: translateY(-8px);
}

#navGhost.container {
    margin: 0;
    padding: 0;
}

#navGhost .companyname .logo {
    margin-left: 0rem;
}

@media (min-width: 768px) {
    #navGhost.show {
        opacity: 1;
        transform: translateY(0);
        color: var(--dark-color);
    }
}

@media (max-width: 768px) {
    #navGhost {
        opacity: 1;
        transform: translateY(0);
        color: var(--dark-color);
    }

    #navGhost .container {
        margin-left: 0rem;
    }

    .navbar-nav {
        background-color: white;
    }
}

.breadcrumbs a {
    color: black;
}

.breadcrumbs ol {
    margin: 1rem;
}

.breadcrumbs li {
    list-style: none;
    margin-left: 0px;
    padding-left: 0px;
    display: inline-block;
}

.breadcrumbs li:not(:last-of-type)::after {
    content: ">";
    margin: 1rem;
}


.companyname {
    font-size: 1.2rem;
    font-weight: bold;
    color: var(--dark-color);
    display: block;
    text-decoration-line: none !important;
}

h1 .companyname span {
    display: none;
}

.font-w {
    color: var(--white-color) !important;
}

.companyname:hover {
    color: var(--dark-color);
    text-decoration-line: none !important;
}

.companyname .logo {
    height: 5rem;
    margin-top: 0.2rem;
    margin-bottom: 1rem;
}



.vlinks {
    position: relative;
    isolation: isolate;
    display: flex;
    margin-left: 2rem;
    gap: 10px;
    width: min(980px, 100%);
}

.vlink {
    position: relative;
    writing-mode: vertical-lr;
    text-orientation: mixed;
    display: inline-block;
    white-space: nowrap;
    font-weight: 700;
    color: var(--dark-color);
    text-decoration: none;
    padding: 15px 10px;
    transition: color .2s, border-color .2s;
    z-index: 0;
    outline-offset: 4px;
    text-decoration-line: none;
    background-color: var(--gray-color);
}

.vlinks .selected,
.vlink:hover,
.vlink:focus-visible {
    color: var(--white-color);
    border-color: var(--dark-color);
    text-decoration-line: none;
    background-color: var(--dark-color);
    font-weight: bold;
}

.vlink::before {
    content: "";
    position: absolute;
    left: 50%;
    top: calc(-1.5rem);
    width: 2px;
    height: 2rem;
    background: var(--line-color);
    border-radius: var(--line-w);
    opacity: 0;
    pointer-events: none;
    z-index: 1;
    filter: drop-shadow(0 0 22px var(--light-color));
    transform: translateX(-50%) scaleY(0.6);
}

.vlinks .selected::before,
.vlink:hover::before,
.vlink:focus-visible::before {
    opacity: 1;
    transform: translateX(-50%) scaleY(1);
}

.fixed-target {
    width: 60px;
    z-index: 500;
    position: fixed;
    top: 0;
    right: 0;
    color: #fff;
    overflow: visible;
    --y: 98%;
    /* 縦位置 */
    --color: var(--light-color);
    /* 線と矢印の色 */
    --thick: 2px;
    /* 線の太さ */
    --overhang: 120px;
    /* 左外の余白 */
    --head: 0.5rem;
    /* 矢印頭サイズ */
}

/* 線 */
.fixed-target::before {
    content: "";
    position: absolute;
    top: var(--y);
    left: calc(-1 * var(--overhang));
    /* ← ここで - 2px して終点を左に寄せる */
    width: calc(50% + var(--overhang) - 8px);
    border-top: var(--thick) solid var(--color);
    transform: scaleX(0);
    transform-origin: left;
}

/* 矢印頭 */
.fixed-target::after {
    content: "";
    position: absolute;
    left: calc(50% - var(--head));
    top: calc(var(--y) - var(--head) + 2px);
    width: 0;
    height: 0;
    border-left: var(--head) solid var(--color);
    border-top: var(--head) solid transparent;
    border-bottom: 0 solid transparent;

    opacity: 0;
    transform: translateY(var(--lift)) scaleY(0.6);
    transform-origin: bottom;
}

/* hover時：線 → 頭 */
.fixed-target:hover::before {
    transform: scaleX(1);
}

.fixed-target:hover::after {
    opacity: 1;
    transform: translateY(0) scaleY(1);
}

/* hover解除時：頭 → 線 */
.fixed-target:not(:hover)::after {
    opacity: 0;
    transform: translateY(var(--lift)) scaleY(0.6);
    /* すぐ消える */
}

.fixed-target:not(:hover)::before {
    transform: scaleX(0);
}

.slide-frame {
    position: relative;
    overflow: hidden;
}

.slide-frame .bg {
    position: absolute;
    width: 65%;
    height: 100%;
    right: 0;
    border-bottom-left-radius: 50px;
}

@media (max-width: 768px) {
    .slide-frame .bg {
        width: 90%;
    }
}

.slide-frame .slide-main {
    position: relative;
    z-index: 10;
}

.hero {
    height: 600px;
    display: grid;
    place-items: left;
    overflow: hidden;
}

.hero h2 {
    margin-left: 5rem;
    line-height: 1.5;
}

.hero .child {
    padding-top: 20px;
}

.hero-title {
    padding-left: 40px;
}

.sp-hero {
    padding-top: 170px;
}

@media (max-width: 768px) {
    .hero {
        height: 450px;
    }

    .hero h2 {
        margin-left: 1rem;
        margin-top: 8rem;
    }
}

.info h2 {
    margin-top: 2rem;
    margin-bottom: 2rem;
    margin-left: 1rem;
}

.info p {
    margin-left: 1rem;
    margin-right: 1rem;
    font-weight: bold;
}


@media (max-width: 768px) {
    .info p {
        margin-top: 1.5rem;
    }

    .top1 {
        margin-right: 2rem;
    }

    .top2 {
        margin-left: 2rem;
    }
}

.h2sp {
    margin-top: 0;
    margin-bottom: 0;
    font-size: 48px;
    line-height: 1.3;
}

.child {
    flex: 1;
}

.bg {
    background-repeat: no-repeat;
    background-size: cover;
}


section {
    margin-bottom: 5rem;
}

.visual {
    z-index: 1;
}

.img-fill {
    width: 100%;
    height: 450px;
    object-fit: cover;
    /* 縦横比を保ちつつトリミング */
    object-position: center;
    /* 中央基準で切り取り */
    display: block;
}


footer {
    background-color: var(--dark-color);
    color: white;
}

.copyright {
    padding-bottom: 0.5rem;
}

.company-panel {
    margin-left: 5rem;
}

@media (max-width: 768px) {
    .company-panel {
        margin-top: 3rem;
        margin-left: 2rem;
    }
}

@media (min-width: 768px) {
    footer.footer {
        padding-top: 90px;
    }
}


main {
    margin-bottom: 0;
}

footer {
    margin-top: 0;
}

/* ロゴだけ左に飛び出させる */
img.logo-f {
    height: 5rem;
    display: block;
}

.company-info {
    margin-left: 5rem;
    display: block;
}

.footer-nav ul {
    margin: 0;
    padding: 0;
    list-style: none;
    display: flex;
    align-items: center;
    gap: 16px;
    /* 文字と区切りのベース間隔 */
    flex-wrap: wrap;
    /* 画面が狭い時は折り返し */
}

.footer-nav li {
    display: flex;
    align-items: center;
}

/* 区切り線（最初以外に表示） */
.footer-nav li+li::before {
    content: "";
    display: inline-block;
    width: 1px;
    height: 1em;
    background: rgba(255, 255, 255, .6);
    margin: 0 8px;
}

/* リンク基本 */
.footer-nav a {
    color: #fff;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.footer-nav a:hover {
    text-decoration: underline;
}

/* Instagram アイコンだけは下線なし */
.footer-nav .icon-ig:hover .icon {
    text-decoration: none;
}

.icon-grid {
    display: grid;
    font-size: 0.8rem;
    grid-template-columns: repeat(2, 1fr);
    gap: 1px;
    /* 線の太さ＝gap */
    background: var(--normal-green-color);
    /* 線の色 */
}

@media (min-width: 992px) {
    .icon-grid {
        grid-template-columns: repeat(5, 1fr);
    }
}

.tile {
    background: #fff;
    /* タイルの背景色 */
    aspect-ratio: 1 / 1;
    display: grid;
    grid-template-rows: 1fr auto;
    place-items: center;
    padding: 0rem;
    min-width: 0;
    border: none;
    /* 念のためリセット */
}

/* 画像は枠内で縮小・はみ出さない */
.tile>img {
    max-width: 72%;
    max-height: 72%;
    object-fit: contain;
    /* 画像比率保持 */
}

.tile>label {
    margin-bottom: 1rem;
    text-align: center;
    text-wrap: nowrap;
    color: var(--green-text-color);
    font-weight: bold;
}


/* 「会社案内」ボタンに黄色い横線をつける */
.btn-dark {
    position: relative;
    /* ←基準にする */
    display: inline-flex;
    justify-content: center;
    align-items: center;
    width: 15rem;
    font-size: 1rem;
    background: var(--dark-color);
    border: 2px solid var(--dark-color);
    color: #fff;
    text-decoration: none;
    text-align: center;
    box-sizing: border-box;
}

.btn-dark:hover {
    background: #fff;
    color: var(--dark-color);
    text-decoration: none;
}

.btn-dark::after {
    content: "";
    position: absolute;
    right: -10px;
    top: 50%;
    transform: translateY(-50%) scaleX(0);
    width: 35px;
    height: 2px;
    background: var(--light-color);
}

.btn-dark:hover::after {
    transform: translateY(-50%) scaleX(1);
}

.intercom-link {
    padding: 0.5rem 1rem;
    border-radius: 15px;
    color: white;
    background-color: var(--light-color);
    border: 2px solid var(--light-color);
    font-weight: bold;
    text-decoration: none;
    height: 2.4rem;
}

.intercom-link:hover {
    color: var(--light-color);
    background-color: white;
    text-decoration: none;
}

.intercom-link-dummy,
.intercom-link-dummy2 {
    height: 2.4rem;
}

@media (max-width: 768px) {
    .intercom-link-dummy {
        display: none;
    }
}

.radius-bottom-left {
    border-bottom-left-radius: 50px;
}

.radius-bottom-right {
    border-bottom-right-radius: 50px;
}

.radius-top-right {
    border-top-right-radius: 50px;
}

.radius-top-left {
    border-top-left-radius: 50px;
}


.bg-frame {
    position: relative;
    width: 100%;
    background-size: cover;
    display: flex;
    color: white;
    padding-top: 2rem;
}

.bg-text {
    padding-left: 2rem;
    font-size: 1.2rem;
    line-height: 1.6;
}

.footer-bg1 {
    background-image: url("/img/door-footer.jpg");
    background-position: 50% 10%;
    height: 220px;
}

.footer-bg2 {
    background-image: url("/img/recruit-footer.jpg");
    background-position: 100% 20%;
    height: 220px;
}

.last-frame {
    margin-bottom: 0;
}

main {
    padding-bottom: 0px;
}

.field-validation-error {
    color: red;
}

.required::after {
    content: " *";
    color: red;
    font-weight: bold;
}