/* ===============================
   Reset & Base
=============================== */
html,
body {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: "Zen Kaku Gothic New", Helvetica, sans-serif;
    color: #fff;
    background-color: #000;
}

ul {
    list-style: disc;
    padding-left: 1.5rem;
}

dl {
    margin-top: 1rem;
}

dt {
    margin-top: 0.5rem;
}

dd {
    margin: 0 0 0.5rem 1rem;
}

.lead {
    font-size: 1.1rem;
    margin-bottom: 1.5rem;
    line-height: 2;
}

/* Utility */
.pc-only {
    display: block;
}

.sp-only {
    display: none;
}

.mincho {
    font-family: Zen Old Mincho !important;
}

/* ===============================
   Containers
=============================== */
.frame {
    width: 100%;
    margin: 0 auto;
    position: relative;
}

.overlap {
    margin-top: 100px;
}

.top-container {
    max-width: 1483px;
    margin: 0 auto;
}

.container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 50px;
}

/* ===============================
   Section Header
=============================== */
.section-header {
    width: fit-content;
    position: relative;
    overflow: hidden;
}

.section-header .gradation {
  font-size: 60px;
  font-weight: 700;
  padding: 0 2rem;
  color: #fff;
  background: linear-gradient(90deg, #f22222 0%, #e32020 30%, #eddd53 100%);
  background-size: 200% 100%;
  background-repeat: no-repeat;
  opacity: 0;
}

.section-header.show .gradation {
  animation: gradationFlow 3s ease forwards; /* ← スクロール時に一度だけ再生 */
  opacity: 1;
}

@keyframes gradationFlow {
  0% {
    background-position: -200% 0; /* 左外から開始 */
    opacity: 0;
  }
  100% {
    background-position: 100% 0; /* 右端へ */
    opacity: 1;
  }
}

.section-header h2 .small {
    font-size: 0.5em;
}

.header-r {
    margin: 0 0 0 auto;
}

/* ===============================
   Hero Section
=============================== */
.hero-section {
    position: relative;
    width: 100%;
    height: 810px;
    background: #000;
	overflow: hidden;
}

.hero-section::-webkit-scrollbar{
  display: none;
}

.hero-bg {
    background: url(./img/bg_fv02.png) no-repeat;
    background-size: contain;
    width: 100%;
    height: 120%;
    z-index: -1;
    opacity: 0;
    animation: fade-in 3s linear forwards;
}

.hero-section h1 {
    font-size: 3vw;
    font-weight: 700;
    letter-spacing: 6px;
    line-height: 120px;
    text-shadow: 0 4px 7px #00000080;
}

.hero-section .chenge-before-you {
    position: absolute;
    top: 10%;
    left: 49px;
    font-size: 8vw;
	font-style: oblique;
    font-weight: 900;
    line-height: 1.0;
    font-family: Zen Old Mincho;
    text-shadow: 0 4px 7px #00000080;
    z-index: 1;
}

.hero-section .mosaic {
    opacity: 0;
    position: absolute;
    top: 3px;
}

/* ===============================
   Header
=============================== */
.site-header {
    color: #fff;
    padding: 10px 20px;
    font-family: "Noto Sans JP", sans-serif;
    height: 100px;
    position: fixed;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 100%;
    max-width: 1920px;
    display: flex;
    align-items: center;
    box-sizing: border-box;
    z-index: 1000;
    background: #000;
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
}

.header-left {
    display: flex;
    align-items: center;
    gap: 10px;
    flex: 1;
}

.head-logo {
	width: 150px;
	height: auto;
	vertical-align: middle;
}

.head-company {
	max-width: 242px;
	height: auto;
	vertical-align: middle;
}

.header-nav {
    margin-right: 25px;
}

.header-nav ul {
    display: flex;
    gap: 25px;
    list-style: none;
}

.header-nav ul li {
    text-align: center;
	line-height: 1.3;
}

.header-nav a {
    text-decoration: none;
    color: #AB903C;
    font-family: "Zen Kaku Gothic New";
    font-size: 16px;
    font-weight: 500;
    letter-spacing: 1.6px;
}

.header-nav a span {
    color: #FFF;
    font-size: 18px;
    font-weight: 500;
    letter-spacing: 1.8px;
}

.header-right {
    display: flex;
    align-items: center;
    gap: 15px;
}

.nav-contact {
    display: none;
}

.tel {
    font-family: "Zen Kaku Gothic New";
    font-size: 30px;
    font-weight: 500;
    letter-spacing: 3px;
    text-align: right;
    line-height: 1;
}

.contact-btn {
    background: #b90400;
    color: #fff;
    padding: 8px 15px;
    font-size: 18px;
    font-weight: 500;
    letter-spacing: 1.6px;
    text-decoration: none;
}

.contact-btn span {
    font-size: 16px;
}

.contact-btn:hover {
    background: #a00;
}

.hamburger {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 33px;
    height: 21px;
    background: transparent;
    border: none;
	padding-left: 0px;
    cursor: pointer;
    z-index: 1001;
}

.hamburger span {
    display: block;
    height: 3px;
    width: 100%;
    background: #fff;
    border-radius: 2px;
    transition: 0.3s;
}

/*.hamburger.active span:nth-child(1) {
    transform: rotate(45deg) translateY(10px);
}

.hamburger.active span:nth-child(2) {
    opacity: 0;
}

.hamburger.active span:nth-child(3) {
    transform: rotate(-45deg) translateY(-10px);
}*/

/* ===============================
   Intro Section
=============================== */
.intro-section {
    padding: 80px 50px 0;
    min-height: 700px;
}

.intro-section .text-wrapper-5 {
    font-size: 30px;
}

.text-wrapper-5,
.p {
    line-height: 2.0;
    visibility: hidden;
}

.intro-section .p {
    font-size: 50px;
    font-weight: 700;
    color: #b90400;
}

/* ===============================
   Video Section
=============================== */
.video-section {
    position: relative;
    text-align: center;
    overflow: hidden;
    width: 100%;
}

.video-section .overlap-2 {
    position: relative;
    overflow: hidden;
    width: 100%;
    height: 100vh;
    background-color: rgba(0, 0, 0, 0.3);
}

.video-section .overlap-2 .image-7 {
    position: absolute;
    top: -15%;
    left: 0;
    width: 100%;
    height: auto;
    pointer-events: none;
    z-index: 0;
    animation: fadeInOut 15s ease-in-out infinite;
}

@keyframes fadeInOut {

    0%,
    100% {
        opacity: 1;
    }

    50% {
        opacity: .7;
    }
}

.video-section .overlap-2 .image-8 {
    position: absolute;
    left: 0;
    bottom: -16%;
}

.video-play-button {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 20vw;
    max-width: 200px;
    background: transparent;
    border: none;
    cursor: pointer;
}

.video-play-button img {
    width: 100%;
    height: auto;
}

.PLSY-MOVIE {
    margin-top: 0.5rem;
    font-size: clamp(12px, 2vw, 18px);
    color: #fff;
}

.video-section .overlap-2 video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    object-fit: cover;
}

.video-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    z-index: 9999;
    justify-content: center;
    align-items: center;
}

.video-modal-content {
    position: relative;
    max-width: 80%;
    max-height: 80%;
    background: #000;
    border-radius: 8px;
    overflow: hidden;
}

.video-modal-close {
    position: absolute;
    top: 10px;
    right: 15px;
    font-size: 30px;
    color: #fff;
    cursor: pointer;
    z-index: 10000;
}

#popupVideo {
    width: 100%;
    height: auto;
    display: block;
}

/* ===============================
   About Section
=============================== */
.about-section {
    position: relative;
    padding: 180px 0;
    text-align: center;
    background: #000;
	overflow: hidden
}

.about-section .about-image {
    position: relative;
}

.about-section .overlap-3 {
    display: flex;
    justify-content: center;
    margin: 50px auto;
    max-width: 1483px;
}

.about-desc {
    margin: 0 auto;
    display: flex;
    max-width: 1200px;
    justify-content: space-between;
}

p.text-wrapper-7 {
    text-align: left;
}

img.image-14 {
    position: absolute;
    left: 80px;
	top:35%;
}

.service-link .text-wrapper-8 {
	margin-right:20px;
}

.overlap-group-3,
.overlap-group-4 {
    display: flex;
    background: #b90400;
    padding: 7px 25px;
    margin: 0 0 16px;
    justify-content: space-between;
}

/* ===============================
   Decorative Section
=============================== */
.decorative-section {
    padding: 100px 0;
    text-align: center;
    background: #000;
}

.decorative-section .overlap-5 {
    position: relative;
	margin: 1rem auto;
}

img.image-16 {
    width: 215px;
}

img.image-19 {
    position: absolute;
    top: 0;
    left: 0;
}

/* ===============================
   Service Section
=============================== */
.service-section {
    display: flex;
}

.service-inner {
    display: flex;
	justify-content: space-between;
    gap: 3rem;
    margin: 100px 0;
}

.service-left {
    position: sticky;
    top: 100px;
    height: 90vh;
    overflow: hidden;
    flex: 1;
    max-width: 50%;
    margin-left: calc(-50vw + 50%);
}

.service-left img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.service-right {
    flex: 1;
    max-width: 50%;
    padding: 4rem 2rem;
}

.service-right .service-num {
    max-width: 142px;
    margin: 0 0 3rem auto;
    display: block;
}

.service-title {
    color: #fff;
    padding: 13px 15px;
    font-size: 30px;
    font-weight: 700;
    width: fit-content;
    background: linear-gradient(90deg, #f22222 0%, #e32020 0%, #eddd53 100%);
}

.service-item {
    margin-bottom: 50vh;
    transition: opacity 0.5s ease;
}

.service-right .service-desc {
    margin-top: 3rem;
    padding: 0 2rem;
    line-height: 2.5;
}

#serviceImage {
    transition: opacity 0.6s ease;
}

.fade-out {
    opacity: 0;
}

.fade-in {
    opacity: 1;
}

/* ===============================
   Business Section
=============================== */
.business {
    position: relative;
    padding: 4rem 0;
    background-image: url(img/5-2.png);
    height: 131vh;
    background-size: 45%;
    background-repeat: no-repeat;
    background-position: 0 374px;
}

.business__decor {
    position: absolute;
    left: 0;
    right: 0;
    height: 120px;
    pointer-events: none;
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
}

.business__decor--top {
    top: -30px;
    background-image: url("img/deco/business-top.png");
}

.business__decor--bottom {
    bottom: -30px;
    background-image: url("img/deco/business-bottom.png");
}

.business__grid {
    display: grid;
    grid-template-columns: 1.1fr .9fr;
    gap: 2rem;
    align-items: start;
    margin-top: 15%;
}

.business__info p {
    margin: 2rem;
    line-height: 2.5;
    max-width: 550px;
}

.chip {
    width: 142px;
    margin: 0 120px 80px auto;
}

.business__title {
    color: #fff;
    padding: 13px 15px;
    font-size: 30px;
    font-weight: 700;
    width: fit-content;
    background: linear-gradient(90deg, #f22222 0%, #e32020 0%, #eddd53 100%);
}

.chip--red {
    background: var(--red);
    color: #fff;
    border-radius: 4px;
    padding: .25rem .5rem;
}

.chip--gold {
    background: var(--gold);
    color: #fff;
    border-radius: 4px;
    padding: .25rem .5rem;
}

/* ===============================
   Page Hero (下層ページ共通)
=============================== */
.page-hero {
    margin-top: 100px;
    position: relative;
    color: #fff;
    padding: 5rem 2rem;
    width: 100%;
    height: 500px;
}

.page-hero .header-mosaic {
    position: absolute;
    width: 100%;
    height: auto;
    object-fit: cover;
    top: 0;
    left: 0;
    z-index: 0;
	opacity: 0;
}

.page-header {
    text-align: center;
    margin-bottom: 3rem;
    width: fit-content;
    position: absolute;
    top: 35%;
    left: 15%;
    z-index: 1;
}

.page-header h2 {
    font-family: Zen Old Mincho;
    font-size: 2.5rem;
    font-style: italic;
    margin: 0;
    letter-spacing: 0.1em;
}

.page-header p {
    font-size: 1.3rem;
    text-align: right;
}

/* ===============================
   Service (下層サービスページ)
=============================== */
.service-intro {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    align-items: center;
    position: relative;
    margin-top: 100px;
    z-index: 2;
}

.service-intro-text h3 {
    font-size: 40px;
    margin-bottom: 1rem;
    display: flex;
    gap: 0.5em;
    align-items: center;
    font-family: Zen Old Mincho;
    color: #ff9500;
}

.service-intro-text .icon {
    margin-right: 0.5rem;
}

.service-intro-text p {
    position: relative;
    z-index: 2;
    margin-right: -100px;
    padding: 3rem 5rem;
    border: 2px solid #ff9500;
    line-height: 2;
}

.service-intro-image img {
    width: 100%;
    height: auto;
}

#service {
    margin-top: 100px;
}

.service {
    position: relative;
    display: flex;
    gap: 2rem;
    margin-bottom: 4rem;
    align-items: stretch;
}

.service--alt {
    flex-direction: row-reverse;
}

.service-name {
    color: #fff;
    text-align: center;
    font-size: 30px;
    font-weight: 700;
    width: fit-content;
    background: linear-gradient(90deg, #f22222 0%, #e32020 0%, #eddd53 100%);
    position: absolute;
    width: 36%;
    line-height: 1.5;
    top: 100px;
}

.service-name .sub-title {
    display: block;
    font-size: 18px;
	text-align:center;
}

.service-logo {
    position: absolute;
    top: 232px;
    left: 11%;
    max-width: 200px;
}

.service-image {
    flex: 1;
}

.service-image img {
    max-width: 100%;
    object-fit: cover;
}

.service-content {
    background: #fff;
    color: #333;
    padding: 2rem;
    flex: 1;
    margin-top: 100px;
    margin-left: -25%;
}

.service-content h3 {
    font-size: 2rem;
    font-weight: bold;
    display: flex;
    align-items: center;
    gap: 0.5em;
    margin-bottom: 1rem;
}

.service-content h3 .title-icon {
    width: 24px;
    height: auto;
}

.service-content h3 span {
    display: block;
    font-size: 1rem;
    color: #666;
}

.service-content-l {
    background: #fff;
    color: #333;
    padding: 2rem;
    flex: 1;
    margin-top: 100px;
    margin-right: -25%;
    z-index: 1;
}

.service-content-l h3 {
    font-size: 2rem;
    font-weight: bold;
    display: flex;
    align-items: center;
    gap: 0.5em;
    margin-bottom: 1rem;
}

.service-details h4 {
    font-size: 1.2rem;
    margin-top: 1rem;
    color: #ed6d00;
    font-weight: 500;
}

.service-details .tbl {
    width: 100%;
    margin: 10px 0 30px;
    line-height: 2rem;
    letter-spacing: .15rem;
    font-weight: 500;
}

.service-details .tbl tr {
    border: 1px solid #666;
}

.service-details .tbl th {
    background: #fad1d0;
    text-align: left;
}

.service-details .tbl th,
.tbl td {
    padding: 5px;
    vertical-align: middle;
    font-weight: 300;
}

.service-details .tbl td:first-child {
    width: 15%;
    white-space: nowrap;
}

.service-details .tbl td span {
    color: #ed6d00;
    font-weight: 500;
}


/* ===============================
   Recruit (下層採用ページ)
=============================== */
.layout {
    display: grid;
    grid-template-columns: 340px 1fr;
    gap: 2rem;
    align-items: start;
    margin-top: 2rem;
}

.sidebar {
    position: sticky;
    top: 10rem;
    left: 2em;
    align-self: start;
    color: #fff;
    padding: 16px 0 40px 30px;
    height: max-content;
    background: url("img/bg-side.png") no-repeat center/cover;
    height: 440px;
}

.page-menu ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.page-menu li {
    margin: 0.8rem 0;
    font-size: 0.8rem;
}

.page-menu a {
    color: #fff;
    text-decoration: none;
    font-weight: bold;
}

.page-menu a.active {
    color: #FFC800;
    font-weight: bold;
}

.page-menu a:hover {
    color: #ff9500;
}

.content {
    max-width: 1483px;
    margin: 0 auto;
}

.content h3 {
    font-size: 40px;
    margin: 10rem 0 2rem;
    display: flex;
    gap: 0.5em;
    align-items: center;
    font-family: Zen Old Mincho;
    color: #ed6d00;
}

.sub-title {
    display: block;
    font-size: 18px;
    font-weight: normal;
    margin-bottom: 0.5em;
    text-align: right;
}

.section-recruit {
    margin-bottom: 4rem;
}

.divider {
    border-top: 2px solid #fff;
    margin: 1rem 0;
}

#keypoint h4 {
    color: #ed6d00;
    font-size: 1.8rem;
}

.job-card {
    padding: 2.5rem;
    margin-bottom: 2rem;
}

.job-card h4 {
    color: #ed6d00;
    font-size: 1.8rem;
}

.job-card h4 .small {
    font-size: 1rem;
}

.job-card table {
    width: 100%;
    margin-bottom: 4rem;
}

.job-card table tr {
    border-bottom: 1px solid #fff;
}

.job-card table th,
.job-card table td {
    padding: 1.5rem 0;
    text-align: left;
    vertical-align: middle;
    font-weight: 300;
}

.employee {
    display: flex;
    align-items: flex-start;
    margin-bottom: 5rem;
    gap: 2rem;
}

.employee--reverse {
    flex-direction: row-reverse;
}

.employee__image {
    flex: 0 0 300px;
    text-align: center;
}

.employee__image img {
    height: auto;
}

.employee__year,
.employee__role {
    font-weight: bold;
}

.employee__text {
    flex: 1;
}

.employee__text h4 {
    font-size: 1.1rem;
    color: #890601;
    margin-bottom: 0.5rem;
}

.employee__text .voice {
    background: #fff;
    color: #333;
    border-radius: 5px;
    padding: 1rem 2rem;
    margin-bottom: 2rem;
}

/* ===============================
   Company (下層会社概要ページ)
=============================== */
.slogan-box {
    display: flex;
    justify-content: space-between;
    gap: 50px;.
}

.representative-photo {
    height: fit-content;
}

.slogan a {
    width: 200px;
    display: block;
    margin: 0 auto;
}

span.slogan-text {
    color: #ed6d00;
    font-weight: 600;
}

.slogan .img-right {
    margin-left: auto;
    display: block;
}

.philosophy {
    border: 2px solid #ff9500;
    padding: 1rem 4rem 3rem;
}

.philosophy h3 {
    font-size: 36px;
    margin: 3rem 0 1rem;
    display: block;
    color: #fff;
}

.border-leftnone,
.border-rightnone {
    position: relative;
    border: 1px solid #fff;
    margin: 40px auto 80px;
    padding: 20px;
    box-sizing: border-box;
}

.border-leftnone {
    border-left: none;
    margin-left: 0;
}

.border-rightnone {
    border-right: none;
    margin-right: 0;
}

.company-container {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 40px;
    max-width: 1200px;
    margin: 0 auto;
    align-items: start;
}

.company-left {
    text-align: center;
    padding: 40px 0 0 0;
}

.company-title {
    color: orange;
    font-size: 1.2rem;
    margin-bottom: 20px;
}

.company-logo {
    max-width: 180px;
    margin: 0 auto 15px;
}

.logo-bg-w {
    background: #fff;
    padding: 10px;
}

.company-name {
    font-size: 1.5rem;
    margin-bottom: 20px;
}

.company-name .accent {
    color: #e53935;
}

.btn-detail {
    display: inline-block;
    background: linear-gradient(90deg, #f22222 0%, #e32020 0%, #eddd53 100%);
    color: #fff;
    padding: 10px 20px;
    font-weight: bold;
    text-align: center;
    text-decoration: none;
    transition: 0.3s;
}

.btn-detail:hover {
    background: #ff9800;
}

.company-right {
    padding: 20px;
}

.company-right table {
    width: 100%;
    margin-bottom: 4rem;
}

.company-right table tr {
    border-bottom: 1px solid #fff;
}

.company-right table th,
.company-right table td {
    padding: 1.5rem 0;
    vertical-align: middle;
    font-weight: 300;
}

.company-info {
    display: grid;
    grid-template-columns: 100px 1fr;
    gap: 10px 20px;
}

.company-info dt {
    font-weight: bold;
    border-bottom: 1px solid #444;
}

.company-info dd {
    margin: 0;
    border-bottom: 1px solid #444;
}

.company-media {
    max-width: 880px;
    margin: 0 auto;
}

.company-photo {
    max-width: 100%;
    margin-bottom: 20px;
}

/* ===============================
   Company (下層お問い合わせページ)
=============================== */
.contact {
    position: relative;
    padding-top: 100px;
    text-align: center;
}

.privacypolicy {
	padding:0 1rem;
}

.privacypolicy h3 {
    font-weight: 500;
    font-size: 1.2rem;
    text-align: center;
    margin: 2rem 0;
    display: block;
    color: #fff;
}

.privacypolicy h4 {
    color: #ed6d00;
    font-weight: 500;
	font-size: 1.1rem;
}

.contact-inner {
    margin: 100px 0;
}

.contact__decor {
    position: absolute;
    top: 0;
    bottom: 0;
    width: min(40%, 520px);
    pointer-events: none;
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
}

.contact__decor--left {
    top: -2%;
    left: 0;
    background-image: url("img/deco/contact-grid-left.png");
}

.contact__decor--right {
    right: 0;
    background-image: url("img/deco/contact-grid-right.png");
}

.contact__decor2 {
    position: absolute;
    bottom: 0;
    width: 56%;
    pointer-events: none;
    background-size: contain;
    background-repeat: no-repeat;
}

.contact__decor2--right {
    top: 40%;
    right: 0;
    background-image: url("img/deco/2-1.png");
}

.contact__lead {
    max-width: 760px;
    margin: 1rem auto;
}

.contact .contact-methods {
    display: flex;
    gap: 1rem;
    justify-content: center;
    margin-top: 1.25rem;
}

.contact-buttons {
    display: flex;
    justify-content: center;
    gap: 100px;
    flex-wrap: wrap;
    margin: 30px 0;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    background: #b90400;
    color: #fff;
    padding: 12px 24px;
    font-size: 25px;
    font-weight: bold;
    text-decoration: none;
    transition: 0.3s;
}

.btn:hover {
    background: #a00;
}

.intro-contact {
	margin: 4rem 0;
    text-align: center;
}
.intro-contact .tel{
	font-family: Zen Old Mincho;
	color:#b90400;
    text-align: center;
}

/* contact form */
.contact-form-table table {
  max-width: 800px;
  border-collapse: collapse;
  margin: 0 auto;
  color: #fff;
}

.contact-form-table th,
.contact-form-table td {
  padding: 1rem;
  border-bottom: 1px solid #fff;
  vertical-align: top;
}

/* 最後の行だけ下線を消す */
.contact-form-table tr:last-child th,
.contact-form-table tr:last-child td {
  border-bottom: none;
}

.contact-form-table th {
  width: 40%;
  font-weight: normal;
  text-align: left;
  vertical-align: middle;
  border-right: 1px solid #fff;
}

.contact-form-table .required {
  color: #e60000;
  font-size: 0.9em;
  margin-left: 0.3em;
}

.contact-form-table input[type="text"],
.contact-form-table input[type="tel"],
.contact-form-table input[type="email"],
.contact-form-table textarea {
  width:100%;
  padding: 0.8rem;
  border: 1px solid #ccc;
  border-radius: 4px;
  background: #f9f9f9;
  color: #000;
}

.contact-form-table .zip1,
.contact-form-table .zip2 {
  width: 70px;
  display: inline-block;
}

.contact-form-table textarea {
  min-height: 150px;
  resize: vertical;
}

.contact-form-table .wpcf7-list-item {
  display: inline-block;
  margin-right: 1.5rem;
}

/* 郵便番号ブロック */
.contact-form-table .address-post {
  margin-bottom: 0.5em;
}

.contact-form-table .zip1 {
  width: 70px!important;   /* 3桁用 */
  display: inline-block;
  margin-right: 0.5em;
}

.contact-form-table .zip2 {
  width: 100px!important;  /* 4桁用 */
  display: inline-block;
  margin-left: 0.5em;
}

.form-submit {
  text-align: center;
  margin-top: 2rem;
}

.form-submit input[type="submit"] {
  background: linear-gradient(to right, #d40000, #ff9900);
  color: #fff;
  border: none;
  padding: 1rem 3rem;
  font-size: 1.2rem;
  cursor: pointer;
  transition: opacity 0.3s;
  display: inline-block;
}

.form-submit input[type="submit"]:hover {
  opacity: 0.8;
}

/* ===============================
   Footer
=============================== */
.footer {
    background: #000;
    color: #fff;
}

.footer-inner {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    align-items: baseline;
}

.footer-left {
    width: 50%;
}

.footer-right {
    width: 50%;
    text-align: center;
}

.footer-logo {
    width: 242px;
    height: auto;
    vertical-align: middle;
}

.footer-company-info {
    line-height: 1.6;
    margin-left: 121px;
    margin-top: 20px;
    letter-spacing: 1.8px;
}

.footer-company-info .red {
    color: red;
}

.footer-sns {
    display: flex;
    justify-content: center;
    gap: 5rem;
    font-size: 1.5rem;
}

.footer-sns a {
    color: #fff;
    transition: 0.3s;
}

.footer-sns a:hover {
    color: #ccc;
}

.footer-nav {
    margin-top: 81px;
}

.footer-nav ul {
    list-style: none;
    display: flex;
    justify-content: center;
    gap: 2rem;
    margin: 0;
    padding: 0;
}

.footer-nav a {
    color: #fff;
    text-decoration: none;
    transition: 0.3s;
}

.footer-nav a:hover {
    color: #ff9500;
}

.copyright {
    text-align: center;
    padding: 20px 0;
}

#toTopBtn {
    position: fixed;
    bottom: 20px;
    right: 20px;
    width: 50px;
    height: 50px;
    border: none;
    background: #ff9500;
    color: #fff;
    font-size: 20px;
    cursor: pointer;
    display: none;
    /* 最初は非表示 */
    transition: opacity 0.3s ease;
    z-index: 1000;
}

#toTopBtn.show {
    display: block;
    opacity: 0.8;
}

#toTopBtn:hover {
    opacity: 1;
}

/* ===============================
   Interview Section
=============================== */
.interview {
    background: #ed6d00;
    color: #000;
    padding: 4rem 2rem;
    text-align: center;
    position: relative;
}

.interview__title {
    color: #ffffff;
    font-size: 60px;
    font-weight: 700;
    width: fit-content;
}

.interview__decor {
    position: absolute;
    left: 0;
    right: 0;
    height: 120px;
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    pointer-events: none;
}

.interview__decor--top {
    top: -40px;
    background-image: url("img/deco/interview-top.png");
}

.interview__decor--bottom {
    bottom: -40px;
    background-image: url("img/deco/interview-bottom.png");
}

.interview__lead {
    margin-top: .5rem;
    text-align: left;
    color: #fff;
}

.interview__cards {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
    margin: 2rem 0 1.5rem;
}

.card {
    background: #cfcfcf;
    height: 220px;
    border-radius: 6px;
}

.card--highlight {
    background: #e6e6e6;
    position: relative;
}

.card__num {
    position: absolute;
    right: .6rem;
    bottom: .6rem;
    font-family: "Zen Old Mincho", serif;
    font-size: 2rem;
    opacity: .8;
}

.interview-nav {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
}

.interview-nav button {
    background: #000;
    color: #fff;
    border-radius: 4px;
    padding: .5rem 1rem;
}

.nav-line {
    width: 140px;
    height: 2px;
    background: #000;
    display: inline-block;
}

/* ===============================
   People Slider
=============================== */
.people {
    background: #FF9500;
    overflow: hidden;
}

.ps {
    position: relative;
	--gap: 16px;
}

.ps__viewport {
    outline: none;
}

.ps__track {
    display: flex;
    gap: var(--gap);
    will-change: transform;
    transform: translate3d(0, 0, 0);
    transition: transform .45s ease;
}

.ps__slide {
    flex: 0 0 auto;
    width: calc((100% - var(--gap)*2) / 3);
    transition: transform .4s ease, opacity .4s ease;
    transform: translateY(0);
    opacity: .6;
}

.ps__slide.active {
    transform: translateY(-60px);
    opacity: 1;
    z-index: 2;
}

.ps__nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 20px;
    color: #fff;
    font-weight: bold;
    width: 400px;
    margin: 50px auto 70px;
}

.ps__prev,
.ps__next {
    background: none;
    border: none;
    color: #fff;
    font-size: 14px;
    cursor: pointer;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.ps__line {
    flex: 1;
    height: 1px;
    background: #fff;
    margin: 0 20px;
}

.ps__dots {
    display: none;
    gap: 8px;
    justify-content: center;
    margin-top: 14px;
}

.ps__dots button {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #fff4;
    border: none;
}

.ps__dots button[aria-current="true"] {
    background: #fff;
}

.person {
    background: #b4b4b4;
    overflow: hidden;
    box-shadow: 0 8px 24px rgba(0, 0, 0, .25);
    display: grid;
    grid-template-rows: auto 1fr;
}

.person img {
    display: block;
    width: 100%;
    aspect-ratio: 4/3;
    object-fit: cover;
}

.person__meta {
    padding: 1rem;
}

.person__name {
    font-size: 1.1rem;
}

.person__role {
    color: #ed6d00;
    font-weight: 700;
    margin: .25rem 0 .5rem;
}

.person__copy {
    font-size: .95rem;
    opacity: .9;
}

/* ===============================
   Recruit Box
=============================== */
.recruit {
    background: #FF9500;
    color: #000;
    padding: 4rem 0;
    text-align: center;
}

.recruit__title {
    color: #ffffff;
    font-size: 60px;
    font-weight: 700;
    width: fit-content;
}

.recruit_box {
    display: flex;
    align-items: flex-start;
    margin-bottom: 50px;
	gap: 50px;
}

.box_l {
    flex: 0 0 53%;
}

.box_r {
    flex: 1;
    margin-top: 4rem;
}

.recruit__lead {
    margin: 0 auto 1.5rem;
    margin-top: .5rem;
    text-align: left;
    color: #fff;
    line-height: 2.5;
}

.recruit__gallery {
    display: flex;
    justify-content: center;
    margin: 1.5rem 0;
}

.recruit__gallery img {
    width: 100%;
}

a.btn.entry-btn {
    background: #fff;
    color: #ff9500;
    padding: 15px 50px;
    font-size: 60px;
    font-weight: 700;
    display: block;
    max-width: 400px;
    line-height: 0.5;
    margin: 0 auto;
    text-align: center;
}

a.btn.entry-btn .small {
    font-size: 18px;
    font-weight: 700;
}

a.btn.entry-btn:hover {
    background: #bd935c;
}

/* ===============================
   Animations
=============================== */
.fadeup-target {
    opacity: 0;
    transform: translateY(30px);
    transition: all 1s ease-out;
}

.fadeup-target.show {
    opacity: 1;
    transform: translateY(0);
}

.fadein-target {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 1s ease, transform 1s ease;
}

.fadein-target.visible {
    opacity: 1;
    transform: translateY(0);
}

.fade-up {
    opacity: 0;
    transform: translateY(30px);
    animation: fadeUp 1s ease-out forwards;
}

@keyframes fadeUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in {
    animation: fade-in 4s forwards;
}

@keyframes fade-in {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

.fade-in-reveal {
  animation: fade-in-reveal 1.2s ease-out forwards;
}

@keyframes fade-in-reveal {
  0% {
    opacity: 0;
    clip-path: inset(50% 50% 50% 50%);
  }
  70% {
    opacity: 0.8;
    clip-path: inset(-5% -5% -5% -5%); /* 少しはみ出して広がる */
  }
  100% {
	opacity: 1;
    clip-path: inset(0% 0% 0% 0%);
  }
}

.delay-1 {
    animation-delay: 0.5s;
}

.delay-2 {
    animation-delay: 1.5s;
}

.delay-3 {
    animation-delay: 3.0s;
}

.delay-4 {
    animation-delay: 3.5s;
}

/* ===== marquee ===== */
.marquee {
    margin-top: -89px;
    width: 100%;
    height: 278px;
    /* 画像の高さに合わせる */
    background: url("img/footer-catch.webp") repeat-x;
    background-size: auto 100%;
    /* 高さをフィット */
    animation: scroll-bg 30s linear infinite;
}

@keyframes scroll-bg {
    to {
        background-position: -3650px 0;
    }

    from {
        background-position: 0 0;
    }
}

/* ===============================
   Falling Squares
=============================== */
.fall_spuare {
    background: #000;
}

.falling-squares {
    position: relative;
    width: 100%;
    height: 400px;
    overflow: hidden;
}

.square {
    position: absolute;
    background: #FF9500;
    will-change: transform;
    border: 1px solid #000000;
}

@keyframes fall {
    0% {
        transform: translateY(0) rotate(0deg);
    }

    100% {
        transform: translateY(90vh) rotate(360deg);
    }
}

.square.animate {
    animation: fall 4s ease forwards;
}

.square:nth-child(1) {
    left: 10%;
    animation-delay: 0s;
}

.square:nth-child(2) {
    left: 30%;
    animation-delay: 0.3s;
}

.square:nth-child(3) {
    left: 50%;
    animation-delay: 0.6s;
}

.square:nth-child(4) {
    left: 70%;
    animation-delay: 0.9s;
}

.square:nth-child(5) {
    left: 90%;
    animation-delay: 1.2s;
}

/* ===============================
   Tablet (<=1024px)
=============================== */
@media (max-width: 1024px) {

    /* Header */
	.site-header {
		height: 50px;
		padding: 10px 10px;
	}
	
    .header-left {
        flex: 0.5;
    }

    .header-right,
    .tel {
        display: none;
    }

    .nav-contact {
        display: block;
    }

    .hamburger {
        display: flex;
    }

    .header-nav {
        position: fixed;
        top: 50px;
        right: -100%;
        width: 100%;
        padding: 2rem 0;
        margin: 0;
        background: rgba(0, 0, 0, .8);
        flex-direction: column;
        align-items: center;
        transition: right .3s ease;
    }

    .header-nav.open {
        right: 0;
    }

    .header-nav ul {
        flex-direction: column;
        gap: 20px;
        margin: 0;
        padding: 0;
    }

    .intro {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .service {
        flex-direction: column;
    }

    .service--alt {
        flex-direction: column;
    }

    .interview__list {
        flex-direction: column;
    }

    .ps__slide {
        width: calc((100% - var(--gap)) / 2);
    }

}

/* ===============================
   Smartphone (<=768px)
=============================== */
@media (max-width: 768px) {
    body {
        font-size: 14px;
    }

    .pc-only {
        display: none;
    }

    .sp-only {
        display: block;
    }

    .top-container {
        margin: 0 4%;
    }

    .container {
        padding: 0 4%;
    }

	.head-company {
    	max-width: 100px;
	}
	
	.lead {
		font-size: 1.0rem;
		text-align: left;
	}
	
    /* Service Intro */
    .service-intro {
        grid-template-columns: 1fr;
        grid-template-areas: "image" "text";
        gap: 1.5rem;
    }

    .service-intro-text {
        grid-area: text;
    }

    .service-intro-image {
        grid-area: image;
    }

    .service-intro-text h3 {
        font-size: 28px;
        justify-content: center;
    }

    .service-intro-text p {
        padding: 15px 20px;
        text-align: left;
        width: 100%;
    }

    /* Employee */
    .employee {
        flex-direction: column;
        align-items: center;
    }

    .job-card {
        padding: 0.5rem;
    }

    /* People Slider */
    .ps__slide {
        width: 100%;
    }

    /* Hero */
    .hero h1 {
        font-size: 2rem;
    }

    .hero-bg {
        background-size: cover;
        /* 拡大して全幅にフィット */
        background-position: center;
        /* 中央部分を表示 */
        height: 100vh;
        /* 必要なら全画面高さ */
    }

    .hero-section .chenge-before-you {
        top: 30%;
        left: 5%;
        font-size: 13vw;
    }

    .hero-section h1 {
        font-size: 5vw;
    }

    .mosaic img.all {
        width: 100%;
        height: 100vh;
        object-fit: cover;
        object-position: center;
    }

    .intro-section {
        padding: 10% 0;
    }

    .intro-section .text-wrapper-5 {
        font-size: 1.2rem;
    }

    .intro-section .p {
        font-size: 1.5rem;
    }

    .service__content {
        padding: 1.5rem;
    }

    .service__content h3 {
        font-size: 1.2rem;
    }

    .video-section .overlap-2 {
        height: 295px;
    }

    .video-modal {
        justify-content: left;
    }

    #popupVideo {
        width: 60%;
    }

    .section-header .gradation {
        font-size: 2rem;
        padding: 0 10px;
    }
	
	.about-section {
    	padding: 50px 0;
	}

    .about-section .overlap-3 {
        flex-wrap: wrap;
    }

    .about-section .overlap-3 img {
        flex: 1 1 calc(50% - 10px);
    }

    .about-desc {
        display: contents;
    }

    nav.service-navigation {
        margin: 50px 0;
    }

    .service-inner-sp {
        margin: 50px auto;
    }

    .service-left {
        position: initial;
        height: auto;
        overflow: hidden;
        flex: 1;
        max-width: 100%;
        margin-left: calc(-50vw + 50%);
    }

    .service-right {
        flex: initial;
        max-width: 100%;
        padding: 0;
    }

    .service-title {
        font-size: 1.3rem;
        width: 100%;
        padding: 10px 0;
        line-height: 1.0;
        text-align: center;
    }

    .service-title .small {
        font-size: 1rem;
    }

    .service-right .service-desc {
        margin-top: 1rem;
        line-height: 2;
        padding: 0;
    }

    .service-item {
        margin-bottom: 120px;
        position: relative;
    }

    .service-item .service-img {
        position: relative;
        margin-bottom: 40px;
    }

    .service-right .service-num {
        max-width: 100px;
        position: absolute;
        right: 0;
        bottom: -73px;
    }

    .section-header {
        width: 100%;
    }
	
	#toTopBtn {
    	display:none!important;
	}

    /*下層ページ共通*/
    .page-hero {
		margin-top: 50px;
        height: auto;
        overflow-x: hidden;
    }

    .page-header {
        left: 5%;
    }

    .content h3 {
        font-size: 1.5rem;
        margin: 2rem 0 1rem;
    }

    .page-hero .header-mosaic {
        position: absolute;
        width: 100%;
        height: 100%;
        object-fit: cover;
        object-position: center;
        top: 0;
        left: 0;
        z-index: 0;
        transform: scale(1.5);
        transform-origin: center;
    }

    /*serviceページ*/
    .service {
        position: relative;
        margin-bottom: 4rem;
        align-items: stretch;
    }

    .service-name {
        position: absolute;
        top: 50px;
        width: 100%;
        font-size: 30px;
        font-weight: 700;
        line-height: 1.5;
    }

    .service-content,
    .service-content-l {
        background: #fff;
        color: #333;
        padding: 2rem 1.5rem;
        margin-top: -220px;
        margin-left: 0;
        margin-right: 0;
    }

    .service-logo {
        position: absolute;
        top: 150px;
        max-width: 200px;
        right: 0;
        left: 0;
        margin: 0 auto;
    }

    /*recruitページ*/
    .layout {
        display: initial;
    }

    .sidebar {
        position: initial;
        height: max-content;
        background: url(img/bg-side.png) no-repeat center / cover;
        height: auto;
        margin-top: 3rem;
    }
	
	.job-card h4 {
    	font-size: 1.2rem;
	}

    .job-card h4 .small {
        font-size: 1rem;
        text-align: right;
        display: block;
    }

    .job-card table th,
    .job-card table td {
        padding: 1.5rem 5px;
    }

    .job-card table th:first-child {
        width: 15%;
        white-space: nowrap;
    }
	
	.employee__image {
	    flex: unset;
	}

    .employee__text .voice {
        padding: 1rem 1rem;
    }

    /*companyページ*/
    .philosophy {
        padding: 1rem;
    }

    .company-container {
        display: initial;
    }
	
	.slogan-box {
    flex-direction: column;
	}

    .slogan .img-right {
        width: 150px;
    }

    .slogan a {
        margin: 2rem auto;
    }

    .border-leftnone,
    .border-rightnone {
        padding: 1rem;
    }

    .company-right {
        padding: 1rem 0;
    }
	
	/*contact*/
	.intro-contact {
	    margin: 2rem 0;
	}
	.contact-form-table th {
    	width: 25%;
	}
	.contact-form-table th, .contact-form-table td {
    	padding: 10px;
	}
	.contact-form-table p {
    	font-size: 0.9em;
	}
	.contact-form-table .required {
    	font-size: 0.8em;
	}

    /*footer*/
    .people {
        padding: 80px 0;
    }

    .interview__title {
        width: 100%;
        font-size: 3rem;
        text-align: center;
    }

    .recruit {
        padding: 80px 0;
    }

    .recruit_box {
        display: initial;
    }

    .recruit__title {
        font-size: 3rem;
        width: 100%;
        line-height: 1;
    }

    .recruit__lead {
        margin: 2rem 0;
        line-height: 2;
    }

    .recruit__gallery {
        display: initial;
        margin: 0;
    }

    .recruit__gallery img {
        width: 100%;
    }

    .marquee {
        margin-top: -39px;
        width: 100%;
        height: 106px;
        background: url(img/footer-catch.webp) repeat-x;
        background-size: auto 100%;
        animation: scroll-bg 30s linear infinite;
    }

    a.btn.entry-btn {
        margin: 20px auto;
    }

    .contact {
        overflow-x: hidden;
    }

    .contact-inner {
        font-size: 2em;
    }

    .contact-buttons {
        gap: 30px;
    }

    .contact__decor {
        position: absolute;
        top: 0;
        bottom: 0;
        width: 100%;
        /* pointer-events: none; */
        background-size: contain;
        background-repeat: no-repeat;
        z-index: -2;
    }

    .contact__decor--left {
        top: -2%;
        left: -70%;
        background-image: url(img/deco/contact-grid-left.png);
    }

    .contact__decor--right {
        top: 20%;
        right: -70%;
        background-image: url(img/deco/contact-grid-right.png);
    }

    .contact__decor2 {
        width: 200%;
        z-index: -1;
    }

    .contact__decor2--right {
        top: 30%;
        right: -112px;
        background-image: url(img/deco/2-1.png);
    }

    .footer-inner {
        display: initial;
    }

    .footer-left,
    .footer-right {
        width: 100%;
        text-align: center;
        margin: 3rem 0;
    }

    .footer-company-info {
        margin-left: 0;
        letter-spacing: 1.8px;
    }
	
	.footer-logo {
		margin-top:15px;
	}

    .footer-link {
        display: flex;
        justify-content: space-between;
    }

    .footer-nav {
        margin-top: 0;
    }

    .footer-nav ul {
        display: initial;
        text-align: left;
        ;
    }

    .footer-nav ul li span {
        color: #FF9500;
        font-weight: bold;
        margin-right: 10px;
    }

    .footer-sns {
        display: flex;
        justify-content: flex-start;
        gap: 1rem;
        font-size: 1.5rem;
        flex-direction: column;
        margin-right: 3rem;
    }

    /*spのみ下固定のボタン群*/
    .footer-fixed {
        position: fixed;
        bottom: 0;
        left: 0;
        width: 100%;
        display: flex;
        z-index: 1000;
    }

    .footer-fixed .footer-btn {
        flex: 1;
        color: #fff;
        text-align: center;
        padding: 10px 0;
        font-size: 0.85rem;
        text-decoration: none;
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
    }

    .footer-fixed .footer-btn i {
        font-size: 1.2rem;
        margin-bottom: 2px;
    }

    .footer-fixed .tel {
        background: #8c7932;
    }

    .footer-fixed .mail {
        background: #999;
    }

    .footer-fixed .recruit {
        background: #c00;
    }

    .footer-fixed .pagetop {
        background: #f90;
    }



}