/*
Theme Name: Kenko
Theme URI: https://kenko.example.jp/
Author: Kenko Co., Ltd.
Author URI: https://kenko.example.jp/
Description: 株式会社研工のコーポレートサイトテーマ。HTMLテンプレートから移植。
Version: 1.1.0
Requires at least: 6.0
Tested up to: 6.5
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: kenko
Tags: custom-theme, business, corporate, japanese
*/

@charset "UTF-8";

/* ==========================================================================
   Variables
   ========================================================================== */
   :root {
    /* Key color */
    --color-primary:#22c622;
    --color-primary-dark: #005a00;

    /* Point (slightly yellowish bright green) */
    --color-point: #7FBF00;

    /* Accent (deep red) */
    --color-accent-red: #8B0000;

    --color-text: #1f1f1f;
    --color-text-light: #5c5c5c;
    --color-bg-light: #f6f7f8;
    --color-white: #ffffff;

    /* Diagonal gradient (mid = #008000 / TL brighter / BR darker) */
    --gradient-primary: linear-gradient(135deg, #2BAE2B 0%, #008000 50%, #11a511 100%);
    /* Fonts */
    --font-en: 'Figtree', sans-serif;
    --font-jp: 'Noto Serif JP', serif;

    --width-container: 1200px;
    --sp-padding: 20px;
}

/* ==========================================================================
   Reset & Base
   ========================================================================== */
   *, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-jp);
    color: var(--color-text);
    line-height: 1.8;
    background-color: var(--color-white);
    -webkit-font-smoothing: antialiased;
}

a {
    text-decoration: none;
    color: inherit;
    transition: opacity 0.3s;
}

a:hover {
    opacity: 0.85;
}

img {
    max-width: 100%;
    height: auto;
    vertical-align: bottom;
}

li {
    list-style: none;
}

section[id] {
    scroll-margin-top: 90px;
}

/* Utility */
.l-container {
    width: 100%;
    max-width: var(--width-container);
    margin: 0 auto;
    padding: 0 var(--sp-padding);
    position: relative;
    top: 10%;
}

.l-section {
    padding: 80px 0;
}

.u-pc-only { display: none !important; }
.u-sp-only { display: block !important; }
.u-mt-20 { margin-top: 20px; }
.u-text-sm { font-size: 0.8em; }

@media (min-width: 768px) {
    .l-section { padding: 120px 0; }
    .u-pc-only { display: block !important; }
    .u-sp-only { display: none !important; }
}

/* ==========================================================================
   Scroll reveal
   ========================================================================== */
   .js-reveal {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 0.8s ease, transform 0.8s ease;
    will-change: opacity, transform;
}

.js-reveal.is-inview {
    opacity: 1;
    transform: translateY(0);
}

@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    .js-reveal {
        opacity: 1;
        transform: none;
        transition: none;
    }
    a {
        transition: none;
    }
}

/* ==========================================================================
   Components
   ========================================================================== */

/* Buttons (NO radius) */
.c-btn {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    padding: 14px 35px;
    background: var(--gradient-primary);
    color: var(--color-white);
    border: 1px solid transparent;
    border-radius: 0;
    font-weight: 700;
    font-size: 16px;
    letter-spacing: 0.05em;
    transition: transform 0.25s ease, filter 0.25s ease;
}

.c-btn:hover {
    opacity: 1;
    transform: translateY(-2px);
    filter: brightness(1.02);
}

.c-btn--primary {
    background: var(--color-primary);
}

.c-btn--header {
    padding: 10px 24px;
    font-size: 14px;
}

.c-btn--outline {
    background: transparent;
    border: 2px solid var(--color-primary);
    color: var(--color-primary);
}

.c-btn--outline:hover {
    background: var(--gradient-primary);
    border-color: transparent;
    color: var(--color-white);
    filter: none;
}

.c-btn--white {
    background: var(--color-white);
    border: 1px solid rgba(255,255,255,0.0);
    color: var(--color-primary);
}

.c-btn--white:hover {
    background: #f4f4f4;
    color: var(--color-primary);
    filter: none;
}

.c-btn--sm {
    padding: 10px 18px;
    font-size: 14px;
}

/* Titles */
.c-title {
    margin-bottom: 40px;
}

.c-title--left {
    text-align: left;
}

.c-title--center {
    text-align: center;
}

.c-title--center .c-title__ja {
    justify-content: center;
}

.c-title__en {
    display: block;
    color: var(--color-primary);
    font-family: var(--font-en);
    font-weight: 700;
    font-size: 36px;
    line-height: 1.2;
    letter-spacing: 0.02em;
    margin-bottom: 5px;
}

.c-title__ja {
    font-size: 14px;
    font-weight: 700;
    color: var(--color-text);
    display: flex;
    align-items: center;
}

.c-title__ja::before {
    content: '';
    display: inline-block;
    width: 30px;
    height: 1px;
    background: var(--gradient-primary);
    margin-right: 10px;
}

/* White Title Variant for dark backgrounds */
.c-title--white .c-title__en { color: #fff; }
.c-title--white .c-title__ja { color: #fff; }
.c-title--white .c-title__ja::before { background: rgba(255,255,255,0.9); }

@media (min-width: 768px) {
    .c-title__en { font-size: 56px; }
    .c-title__ja { font-size: 16px; }
}

/* Link Arrow */
.c-link-arrow {
    display: inline-flex;
    align-items: center;
    font-weight: 700;
    font-size: 14px;
    color: var(--color-primary);
}

.c-link-arrow::after {
    content: '→';
    margin-left: 8px;
    transition: transform 0.3s;
}

.c-link-arrow:hover::after {
    transform: translateX(5px);
}

/* ==========================================================================
   Header (transparent -> glass)
   ========================================================================== */

   .l-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 70px;
    background: transparent;
    box-shadow: none;
    z-index: 1000;
}

/* Glass layer */
.l-header::before {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(255, 255, 255, 0.14);
    backdrop-filter: blur(12px) saturate(160%);
    -webkit-backdrop-filter: blur(12px) saturate(160%);
    border-bottom: 1px solid rgba(255,255,255,0.22);
    opacity: 0;
    transition: opacity 0.45s ease;
}

.l-header.is-scrolled {
    box-shadow: 0 10px 28px rgba(0,0,0,0.08);
}

.l-header.is-scrolled::before {
    opacity: 1;
}

.l-header__inner {
    position: relative;
    z-index: 1;
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 100%;
    padding: 0 var(--sp-padding);
    max-width: var(--width-container);
    margin: 0 auto;
}
.l-header__logo a {
    display: flex;
    align-items: center;
}
.l-header__logo img {
    height: 35px;
    width: auto;
    filter: brightness(0) invert(1);
    transition: filter 0.45s ease;
}
.l-header__logo p {
    width: auto;
    filter: brightness(0) invert(1);
    transition: filter 0.45s ease;
    font-size: 1.4rem;
    margin: 0 0 0 10px;
    letter-spacing: 0.2rem;
}

.l-header.is-scrolled .l-header__logo img {
    filter: none;
}

.l-header.is-scrolled .l-header__logo p {
    filter: none;
}

.l-header__nav {
    margin-left: auto;
    margin-right: 40px;
}

.l-header__list {
    display: flex;
    gap: 40px;
}

.l-header__item a {
    font-weight: 500;
    font-size: 15px;
    color: #fff;
    position: relative;
    transition: color 0.45s ease;
}

.l-header.is-scrolled .l-header__item a {
    color: var(--color-text);
}


.l-header__item a::after {
    content: '';
    position: absolute;
    bottom: -6px;
    left: 0;
    width: 0%;
    height: 2px;
    background: rgba(255,255,255,0.85);
    transition: width 0.3s, background 0.45s;
}

.l-header.is-scrolled .l-header__item a::after {
    background: var(--gradient-primary);
}

.l-header__item a:hover::after {
    width: 100%;
}

/* Header CTA (white outline -> gradient) */
.l-header .c-btn--header {
    background: transparent;
    border: 1px solid rgba(255,255,255,0.78);
    color: #fff;
}

.l-header.is-scrolled .c-btn--header {
    background: var(--color-primary);
    border-color: transparent;
    color: #fff;
}

/* Hamburger */
.l-header__menu-btn {
    width: 30px;
    height: 20px;
    position: relative;
    background: none;
    border: none;
    cursor: pointer;
}

.l-header__menu-btn span {
    position: absolute;
    width: 100%;
    height: 2px;
    background-color: #fff;
    left: 0;
    transition: background-color 0.45s ease;
}

.l-header.is-scrolled .l-header__menu-btn span {
    background-color: var(--color-text);
}

.l-header__menu-btn span:nth-child(1) { top: 0; }
.l-header__menu-btn span:nth-child(2) { top: 50%; transform: translateY(-50%); }
.l-header__menu-btn span:nth-child(3) { bottom: 0; }

/* ==========================================================================
   Main Visual (FV)
   ========================================================================== */

   .p-fv {
    position: relative;
    height: 100vh;
    min-height: 600px;
    display: flex;
    justify-content: center; /* Center */
    overflow: hidden;
    padding-top: 0px;
    text-align: center;
}

.p-fv__bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -2;
}
.p-fv__slides {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.p-fv__slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0;
    transition: opacity 1.2s ease-in-out;
}

.p-fv__slide.is-active {
    opacity: 1;
}
.p-fv__bg img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Dark + green-tinted overlay */
.p-fv::after {
    content: '';
    position: absolute;
    inset: 0;
    z-index: -1;
    background: linear-gradient(180deg, rgb(0 0 0 / 55%) 0%, rgb(0 0 0 / 0%) 78%);
}

.p-fv__content {
    position: relative;
    width: 100%;
    padding: 0 var(--sp-padding);
    color: #fff;
    text-shadow: 0 2px 10px rgba(0,0,0,0.45);
    padding-top: 70px;
}

.p-fv__brand {
    font-family: var(--font-en);
    font-weight: 700;
    letter-spacing: 0.06em;
    opacity: 0.92;
    margin-bottom: 14px;
}

.p-fv__copy-main {
    font-size: 29px;
    font-weight: 700;
    line-height: 1.4;
    margin-bottom: 20px;
}
.p-fv__copy-top {
    color: var(--color-primary);
}

.p-fv__copy-main-02 {
    margin-top: 50px;
}

.p-fv__copy-sub,
.p-fv__copy-catch {
    font-size: 16px;
    font-weight: 500;
}

@media (min-width: 768px) {
    .p-fv__copy-main { font-size: 56px; }
    .p-fv__copy-sub { font-size: 18px; margin-bottom: 20px; }
    .p-fv__copy-catch { font-size: 24px; margin-top: 20px; }
}



/* --- FV Renewal 2025-2026 --- */

.p-fv__content {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start; /* 左寄せでモダンな印象に */
    text-align: left;
    height: 100%;
}

.p-fv__top-info {
    display: flex;
    gap: 20px;
    margin-bottom: 40px;
    font-size: 13px;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    padding-left: 15px;
}

.p-fv__brand-en { font-weight: 700; color: var(--color-primary); }
.p-fv__material { opacity: 0.8; }

.p-fv__main-group {
    max-width: 900px;
}

.p-fv__copy-en {
    display: block;
    font-family: var(--font-en);
    font-size: clamp(40px, 8vw, 100px);
    line-height: 0.9;
    margin-bottom: 10px;
    font-weight: 700;
    -webkit-text-stroke: 1px rgb(255 255 255 / 78%);
    color: #ffffff;
}

.p-fv__copy-ja {
    display: block;
    font-size: clamp(24px, 4vw, 48px);
    font-weight: 700;
    letter-spacing: 0.05em;
    color: #fff;
    margin-bottom: 30px;
}

.p-fv__copy-ja .u-num {
    font-family: var(--font-en);
    font-size: 1.4em;
    color: var(--color-primary);
}

.p-fv__copy-catch {
    font-size: 18px;
    line-height: 1.8;
    margin-bottom: 30px;
    font-weight: 500;
}

.p-fv__copy-catch span {
    background: linear-gradient(transparent 60%, rgba(34, 198, 34, 0.4) 40%); /* 蛍光ペン風の下線 */
}

.p-fv__badges {
    display: flex;
    gap: 10px;
}

.c-badge {
    font-size: 12px;
    border: 1px solid #fff;
    padding: 4px 12px;
    letter-spacing: 0.1em;
}

/* スクロールインジケーター（トレンド：細い縦線） */
.p-fv__scroll {
    position: absolute;
    bottom: 40px;
    right: var(--sp-padding);
    writing-mode: vertical-lr;
    font-family: var(--font-en);
    font-size: 11px;
    letter-spacing: 0.3em;
}

.p-fv__scroll::after {
    content: '';
    display: inline-block;
    width: 1px;
    height: 60px;
    background: #fff;
    margin-top: 15px;
    animation: scrollLine 2s infinite;
}

@keyframes scrollLine {
    0% { transform: scaleY(0); transform-origin: top; }
    50% { transform: scaleY(1); transform-origin: top; }
    51% { transform: scaleY(1); transform-origin: bottom; }
    100% { transform: scaleY(0); transform-origin: bottom; }
}

@media (max-width: 767px) {
    .p-fv__top-info { flex-direction: column; gap: 5px; }
    .p-fv__copy-en { font-size: 50px; }
    .p-fv__copy-catch { font-size: 15px; }
}
/* ==========================================================================
   Services
   ========================================================================== */

   .p-services {
    background-color: #fff;
    color: var(--color-text);
}

.p-services__header {
    margin-bottom: 60px;
}

.p-services__lead {
    color: var(--color-text-light);
}

@media (min-width: 768px) {
    .p-services__header {
        display: flex;
        justify-content: space-between;
        align-items: flex-end;
    }
    .p-services__lead {
        text-align: right;
        font-size: 16px;
        line-height: 1.8;
    }
}

.p-services__list {
    display: grid;
    gap: 30px;
}

.p-services__item {
    position: relative;
    display: block;
    overflow: hidden;
    color: #fff;
    background: #000;
    border-radius: 0;
    transform: translateY(24px);
    opacity: 0;
    transition: transform 0.65s cubic-bezier(0.165, 0.84, 0.44, 1), opacity 0.65s ease;
}

.p-services__item.is-inview {
    transform: translateY(0);
    opacity: 1;
}

.p-services__img img {
    width: 100%;
    height: 300px;
    object-fit: cover;
    transform: scale(1.02);
    transition: transform 0.7s ease;
}

/* black overlay */
.p-services__item::before {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,0.42);
    transition: background 0.4s ease;
    z-index: 1;
}

.p-services__body {
    position: absolute;
    inset: 0;
    z-index: 2;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 30px;
}

.p-services__name {
    color: #fff;
    font-size: 22px;
    margin-bottom: 12px;
    font-weight: 700;
}

.p-services__desc {
    font-size: 15px;
    color: rgba(255,255,255,0.9);
    margin-bottom: 18px;
}

.p-services .c-link-arrow {
    color: #fff;
}

.p-services .c-link-arrow::after {
    opacity: 0.95;
}

.p-services__item:hover {
    opacity: 1;
    transform: translateY(-6px);
}

.p-services__item:hover .p-services__img img {
    transform: scale(1.08);
}

.p-services__item:hover::before {
    background: rgba(0,0,0,0.52);
}

@media (min-width: 768px) {
    .p-services__list {
        grid-template-columns: repeat(3, 1fr);
    }
    .p-services__img img {
        height: 340px;
    }
}

/* ==========================================================================
   Strength (Why Us)
   ========================================================================== */

   .p-strength {
    position: relative;
    background: url('assets/images/whyus.jpg') no-repeat center/cover;
    color: #fff;
}

.p-strength::before {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,0.55);
}

.p-strength .l-container {
    position: relative;
    z-index: 1;
}

.p-strength__grid {
    display: grid;
    gap: 30px;
}

.p-strength__item {
    background: rgba(255,255,255,0.08);
    border: 1px solid rgba(255,255,255,0.18);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    padding: 38px 30px;
    border-radius: 0;
}

.p-strength__head {
    font-size: 18px;
    color: #fff;
    margin-bottom: 12px;
    padding-left: 12px;
    border-left: 4px solid var(--color-point);
}

.p-strength__text {
    font-size: 14px;
    line-height: 1.8;
    color: rgba(255,255,255,0.9);
}

@media (min-width: 768px) {
    .p-strength__grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 1024px) {
    .p-strength__grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

/* ==========================================================================
   About
   ========================================================================== */

   .p-about {
    background-color: #fff;
}

.p-about__inner {
    display: flex;
    flex-direction: column;
    gap: 60px;
}

.p-about__img {
    position: relative;
}

.p-about__img-main,
.p-about__img-sub {
    border-radius: 0;
    box-shadow: none;
}

.p-about__img-main {
    display: block;
    width: 100%;
}

.p-about__img-sub {
    position: absolute;
    width: 62%;
    right: -6%;
    bottom: -10%;
    border: 6px solid rgba(255,255,255,0.92);
}

.p-about__lead {
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 30px;
    line-height: 1.6;
}

.p-about__text {
    margin-bottom: 40px;
    font-size: 16px;
    color: var(--color-text-light);
}

@media (min-width: 768px) {
    .p-about__inner {
        flex-direction: row;
        align-items: center;
    }
    .p-about__img { flex: 1; }
    .p-about__content { flex: 1; padding-left: 60px; }
    .p-about__img-sub { right: -10%; bottom: -12%; }
}

/* ==========================================================================
   Flow & Equipment
   ========================================================================== */

   .p-flow-equip {
    background-color: var(--color-bg-light);
}

.p-flow-equip__inner {
    display: flex;
    flex-direction: column;
    gap: 60px;
}

.p-flow-list {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.p-flow-list__item {
    background: #fff;
    padding: 20px;
    font-weight: 700;
    position: relative;
    display: flex;
    align-items: center;
    box-shadow: 0 3px 10px rgba(0,0,0,0.05);
    border-radius: 0;
}

.p-flow-list__num {
    display: inline-block;
    color: var(--color-accent-red);
    font-family: var(--font-en);
    font-size: 18px;
    font-weight: 700;
    margin-right: 15px;
    border-right: 1px solid #ddd;
    padding-right: 15px;
}

.p-equip-list__row {
    display: flex;
    justify-content: space-between;
    border-bottom: 1px solid #ddd;
    padding: 20px 0;
    font-size: 16px;
}

.p-equip-list__row dt { font-weight: 700; }

@media (min-width: 768px) {
    .p-flow-equip__inner {
        flex-direction: row;
        align-items: flex-start;
    }
    .p-flow-equip__block { flex: 1; }
    .p-flow-equip__block:first-child { margin-right: 60px; }
}

/* ==========================================================================
   Recruit
   ========================================================================== */

   .p-recruit {
    padding: 0;
}

.p-recruit__banner {
    position: relative;
    padding: 100px 50px;
    text-align: center;
    background-image: url('assets/images/rec.jpg');
    background-repeat: no-repeat;
    background-size: cover;


    /* ★ここで上にずらす（数値を調整してください） */
    background-position: 70% 15%;

    color: #fff;
}

.p-recruit__banner::before {
    content: '';
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(0,0,0,0.45);
}

.p-recruit__content {
    position: relative;
    z-index: 1;
}

.p-recruit__title {
    font-size: 28px;
    margin-bottom: 40px;
    font-weight: 700;
}

/* Recruit banner: PCだけ上下を広く */
@media (min-width: 900px){
  .p-recruit__banner{
    padding-top: 130px;
    padding-bottom: 130px;
  }
}

@media (min-width: 768px) {
    .p-recruit__title { 
        font-size: 36px; 

    }
}

/* ==========================================================================
   Common CTA
   ========================================================================== */

   .p-cta {
    background-color: #fff;
    text-align: center;
    padding: 100px 0;
}

.p-cta__inner {
    max-width: 800px;
    margin: 0 auto;
}

.p-cta__title {
    font-size: 32px;
    color: var(--color-primary);
    margin-bottom: 15px;
    font-weight: 700;
}

.p-cta__text {
    margin-bottom: 40px;
    font-size: 16px;
    color: var(--color-text-light);
}

.p-cta__actions {
    display: flex;
    flex-direction: column;
    gap: 20px;
    justify-content: center;
    align-items: center;
}

.p-cta__tel {
    font-size: 30px;
    font-weight: 700;
    color: var(--color-text);
    display: flex;
    flex-direction: column;
    align-items: center;
    line-height: 1.05;
}

.p-cta__tel-icon {
    color: var(--color-accent-red);
}

.p-cta__tel-sub {
    font-size: 13px;
    font-weight: normal;
    margin-top: 6px;
    color: #777;
}

.p-cta__btn {
    min-width: 300px;
}

@media (min-width: 768px) {
    .p-cta__actions { flex-direction: row; gap: 50px; align-items: center; }
    .p-cta__tel { flex-direction: row; gap: 15px; }
    .p-cta__tel-sub { margin-top: 0; }
}


/* Access */
.p-access {
    background-color: var(--color-bg-light);
}

.p-access__grid {
    display: grid;
    gap: 30px;
}

.p-access__item {
    background: #fff;
    border: 1px solid rgba(0, 0, 0, 0.08);
    padding: 28px 22px;
}

.p-access__name {
    font-size: 22px;
    font-weight: 700;
    margin-bottom: 10px;
    color: var(--color-primary);
}

.p-access__address {
    color: var(--color-text-light);
    margin-bottom: 18px;
    font-size: 15px;
    line-height: 1.8;
}

.p-access__map iframe {
    width: 100%;
    height: 280px;
    border: 0;
}

.p-access__actions {
    margin-top: 18px;
}

@media (min-width: 768px) {
    .p-access__grid {
        grid-template-columns: 1fr 1fr;
        gap: 40px;
    }

    .p-access__item {
        padding: 32px 28px;
    }

    .p-access__map iframe {
        height: 320px;
    }
}


/* ==========================================================================
   Footer
   ========================================================================== */

   .l-footer {
    background-color: #111;
    color: #fff;
    padding: 80px 0 30px;
    font-size: 14px;
}

.l-footer__info {
    margin-bottom: 50px;
}

.l-footer__logo {
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 25px;
}

.l-footer__nav-list {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-bottom: 40px;
}

.l-footer__nav-list a {
    color: #d0d0d0;
}

.l-footer__nav-list a:hover {
    color: #fff;
}

.l-footer__links {
    display: flex;
    gap: 30px;
    font-size: 13px;
    color: #9a9a9a;
    margin-bottom: 40px;
}

.l-footer__copyright {
    text-align: center;
    color: #777;
    border-top: 1px solid #2a2a2a;
    padding-top: 30px;
    font-family: var(--font-en);
}

@media (min-width: 768px) {
    .l-footer__inner {
        display: flex;
        justify-content: space-between;
        align-items: flex-start;
    }
    .l-footer__nav {
        text-align: right;
    }
    .l-footer__nav-list {
        display: flex;
        gap: 30px;
        justify-content: flex-end;
    }
    .l-footer__links {
        justify-content: flex-end;
    }
}

/* ==========================================================================
   Fixed footer CTA (TEL + Contact)
   ========================================================================== */

   .c-float-cta {
    position: fixed;
    left: 0;
    bottom: 0;
    width: 100%;
    display: flex;
    z-index: 100;
}

.c-float-cta__btn {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    height: 64px;
    font-weight: 700;
    letter-spacing: 0.02em;
    border-radius: 0;
    border-top: 1px solid rgba(0,0,0,0.08);
}

.c-float-cta__btn--tel {
    background: rgba(255,255,255,0.96);
    
    border-right: 1px solid rgba(0,0,0,0.08);
}

.c-float-cta__btn--contact {
    background: var(--color-primary);
    color: #fff;
}

.c-float-cta__icon {
    color: var(--color-accent-red);
}

@media (min-width: 768px) {
    /* Desktop: bottom-right floating group */
    body {
        padding-bottom: 0;
    }
    .c-float-cta {
        left: auto;
        width: auto;
        right: 20px;
        bottom: 20px;
        gap: 12px;
    }
    .c-float-cta__btn {
        flex: 0 0 auto;
        height: 56px;
        padding: 0 24px;
        border: 1px solid rgba(0,0,0,0.12);
        box-shadow: 0 10px 30px rgba(0,0,0,0.12);
    }
    .c-float-cta__btn--tel {
        border-right: 1px solid rgba(0,0,0,0.12);
    }
}

@media (max-width: 767px) {
    /* Prevent fixed CTA from covering content */
    body {
        padding-bottom: calc(64px + env(safe-area-inset-bottom));
    }
    .c-float-cta {
        padding-bottom: env(safe-area-inset-bottom);
    }
}

/* =========================
   Drawer (Hamburger Menu)
========================= */
.l-drawer {
  position: fixed;
  inset: 0;
  z-index: 9999;
  opacity: 0;
  pointer-events: none;
  transition: opacity .25s ease;
}

.l-drawer.is-open {
  opacity: 1;
  pointer-events: auto;
}

.l-drawer__overlay {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,.55);
}

.l-drawer__panel {
  position: absolute;
  top: 0;
  right: 0;
  width: min(92vw, 420px);
  height: 100%;
  background: #fff;
  transform: translateX(100%);
  transition: transform .25s ease;
  display: flex;
  flex-direction: column;
}

.l-drawer.is-open .l-drawer__panel {
  transform: translateX(0);
}

.l-drawer__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 16px;
  border-bottom: 1px solid rgba(0,0,0,.1);
}

.l-drawer__title {
  font-weight: 700;
  letter-spacing: .08em;
}

.l-drawer__close {
  border: 0;
  background: transparent;
  font-size: 28px;
  line-height: 1;
  cursor: pointer;
}

.l-drawer__list {
  padding: 10px 0;
  margin: 0;
  list-style: none;
  overflow: auto;
  -webkit-overflow-scrolling: touch;
}

.l-drawer__item a,
.l-drawer__toggle {
  display: flex;
  width: 100%;
  align-items: center;
  justify-content: space-between;
  padding: 14px 16px;
  color: inherit;
  text-decoration: none;
  border: 0;
  background: transparent;
  cursor: pointer;
  font: inherit;
}

.l-drawer__item a:hover,
.l-drawer__toggle:hover {
  background: rgba(0,0,0,.04);
}

.l-drawer__item--parent {
  border-top: 1px solid rgba(0,0,0,.06);
  border-bottom: 1px solid rgba(0,0,0,.06);
}

.l-drawer__chev {
  display: inline-block;
  transition: transform .2s ease;
  opacity: .8;
}

.l-drawer__toggle[aria-expanded="true"] .l-drawer__chev {
  transform: rotate(180deg);
}

.l-drawer__sublist {
  list-style: none;
  margin: 0;
  padding: 0;
  background: rgba(0,0,0,.02);
}

.l-drawer__sublist a {
  padding-left: 28px;
  font-size: 0.95em;
}

.l-drawer__item--cta {
  margin-top: 10px;
  padding: 0 16px;
}

.l-drawer__cta {
  display: block;
  text-align: center;
  padding: 14px 16px;
  border-radius: 999px;
  background: var(--color-primary);
  color: #fff !important;
  text-decoration: none;
  font-weight: 700;
}

body.is-drawer-open {
  overflow: hidden;
}


/* =========================
   Sub pages (Services)
========================= */
.p-subhero { position: relative; padding-top: 70px; }
.p-fv--sub { height: 52vh; min-height: 420px; }
@media (min-width: 768px) {
  .p-fv--sub { height: 55vh; min-height: 520px; }
}
.p-breadcrumb{ color: rgba(255,255,255,.92); font-size: 14px; margin-top: 10px; }
.p-breadcrumb a{ color: rgba(255,255,255,.95); text-decoration: underline; }

.p-pagelead { max-width: 920px; margin: 0 auto; color: var(--color-text-light); font-size: 16px; line-height: 2; }
.p-pagelead  {text-align: center;}
.p-kvpoints { display: grid; gap: 14px; margin-top: 22px; }
@media (min-width: 768px){ .p-kvpoints{ grid-template-columns: repeat(2, 1fr); } }
.p-kvpoints__item { background: var(--color-bg-light); border-left: 4px solid var(--color-primary); padding: 14px 16px; line-height: 1.9; }

.p-cardgrid { display: grid; gap: 18px; }
@media (min-width: 768px){ .p-cardgrid{ grid-template-columns: repeat(3, 1fr); gap: 22px; } }
.p-card { border: 1px solid rgba(0,0,0,.08); background: #fff; overflow: hidden; }
.p-card__img img{ width:100%; height:220px; object-fit: cover; display:block; }
.p-card__body{ padding: 18px 16px; }
.p-card__title{ font-weight: 700; margin-bottom: 6px; }
.p-card__text{ color: var(--color-text-light); font-size: 14px; line-height: 1.8; }

.p-spec { background: var(--color-bg-light); }
.p-spec__grid{ display:grid; gap:18px; }
@media (min-width: 768px){ .p-spec__grid{ grid-template-columns: 1fr 1fr; gap: 26px; } }
.p-spec__box{ background:#fff; border:1px solid rgba(0,0,0,.08); border-left:4px solid var(--color-primary); padding: 20px 18px; }
.p-spec__box h3{ font-size: 18px; margin-bottom: 8px; }
.p-spec__box ul{ padding-left: 18px; margin: 0; }
.p-spec__box li{ list-style: disc; color: var(--color-text-light); line-height: 1.9; margin: 4px 0; }

.p-faq { max-width: 980px; margin: 0 auto; }
.p-faq__item{ border-top: 1px solid rgba(0,0,0,.12); padding: 18px 0; }
.p-faq__q{ font-weight: 700; }
.p-faq__a{ color: var(--color-text-light); margin-top: 6px; line-height: 1.9; }

.p-related__grid{ display:grid; gap:18px; }
@media (min-width: 768px){ .p-related__grid{ grid-template-columns: 1fr 1fr; gap: 22px; } }
.p-related__card{ position: relative; overflow: hidden; background:#000; color:#fff; display:block; }
.p-related__card::before{ content:''; position:absolute; inset:0; background:rgba(0,0,0,.45); z-index: 1; }
.p-related__card img{ width:100%; height:240px; object-fit: cover; transform: scale(1.02); display:block; }
.p-related__body{ position:absolute; inset:0; display:flex; flex-direction:column; justify-content:flex-end; padding:22px; z-index: 2; }
.p-related__title{ font-size: 22px; font-weight:700; margin-bottom: 8px; }
.p-related__desc{ font-size: 14px; color: rgba(255,255,255,.9); margin-bottom: 12px; }



/* =========================
   Drawer (Hamburger Menu)
========================= */
.l-drawer {
  position: fixed;
  inset: 0;
  z-index: 9999;
  opacity: 0;
  pointer-events: none;
  transition: opacity .25s ease;
}
.l-drawer.is-open { opacity: 1; pointer-events: auto; }
.l-drawer__overlay { position: absolute; inset: 0; background: rgba(0,0,0,.55); }

.l-drawer__panel {
  position: absolute;
  top: 0;
  right: 0;
  width: min(92vw, 420px);
  height: 100%;
  background: #fff;
  transform: translateX(100%);
  transition: transform .25s ease;
  display: flex;
  flex-direction: column;
}
.l-drawer.is-open .l-drawer__panel { transform: translateX(0); }

.l-drawer__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 16px;
  border-bottom: 1px solid rgba(0,0,0,.1);
}
.l-drawer__title { font-weight: 700; letter-spacing: .08em; }
.l-drawer__close { border: 0; background: transparent; font-size: 28px; line-height: 1; cursor: pointer; }

.l-drawer__list { padding: 10px 0; margin: 0; list-style: none; overflow: auto; -webkit-overflow-scrolling: touch; }

.l-drawer__item a,
.l-drawer__toggle {
  display: flex;
  width: 100%;
  align-items: center;
  justify-content: space-between;
  padding: 14px 16px;
  color: inherit;
  text-decoration: none;
  border: 0;
  background: transparent;
  cursor: pointer;
  font: inherit;
}
.l-drawer__item a:hover,
.l-drawer__toggle:hover { background: rgba(0,0,0,.04); }

.l-drawer__item--parent {
  border-top: 1px solid rgba(0,0,0,.06);
  border-bottom: 1px solid rgba(0,0,0,.06);
}
.l-drawer__chev { display: inline-block; transition: transform .2s ease; opacity: .8; }
.l-drawer__toggle[aria-expanded="true"] .l-drawer__chev { transform: rotate(180deg); }

.l-drawer__sublist { list-style: none; margin: 0; padding: 0; background: rgba(0,0,0,.02); }
.l-drawer__sublist a { padding-left: 28px; font-size: 0.95em; }

.l-drawer__item--cta { margin-top: 10px; padding: 0 16px; }
.l-drawer__cta {
  display: block;
  text-align: center;
  padding: 14px 16px;
  border-radius: 999px;
  background: var(--color-primary);
  color: #fff !important;
  text-decoration: none;
  font-weight: 700;
}

body.is-drawer-open { overflow: hidden; }


/* 下層ページ：ヘッダーをFVにかぶせる（上の余白を消す） */
.l-header--sub + .l-main .p-subhero {
  padding-top: 0 !important;
}

/* =========================
   Equipment page helpers
========================= */
.p-equip-title{
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 12px;
  padding-left: 12px;
  border-left: 4px solid var(--color-primary);
}

.p-equip-note{
  margin-top: 14px;
  color: var(--color-text-light);
  font-size: 14px;
  line-height: 1.8;
  text-align: center;
}

.p-equip-grid{
  margin-top: 40px;
}

/* =========================
   Company page
========================= */
.p-company__table,
.p-history__table{
  width: 100%;
  border-collapse: collapse;
  background: rgba(255,255,255,0.9);
  border: 1px solid rgba(0,0,0,0.08);
  border-radius: 16px;
  overflow: hidden;
}

.p-company__table th,
.p-company__table td,
.p-history__table th,
.p-history__table td{
  padding: 16px 18px;
  border-bottom: 1px solid rgba(0,0,0,0.06);
  vertical-align: top;
  line-height: 1.8;
}

.p-company__table th,
.p-history__table th{
  width: 26%;
  font-weight: 700;
  background: rgba(0,0,0,0.03);
  color: var(--color-text);
}

.p-company__table tr:last-child th,
.p-company__table tr:last-child td,
.p-history__table tr:last-child th,
.p-history__table tr:last-child td{
  border-bottom: none;
}

.p-service-list__items{
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 12px;
}

.p-service-list__items li{
  padding: 14px 16px;
  border: 1px solid rgba(0,0,0,0.08);
  border-radius: 14px;
  background: rgba(255,255,255,0.9);
}



@media (max-width: 900px){
  .p-company__table th,
  .p-history__table th{
    width: 34%;
  }
}

@media (max-width: 640px){
  .p-access__grid{
    grid-template-columns: 1fr;
  }
  .p-company__table th,
  .p-history__table th{
    width: 38%;
  }
  .p-access__map iframe{
    height: 300px;
  }
}


/* =========================
   Recruit page
========================= */
.p-recruit-page__table{
  width: 100%;
  border-collapse: collapse;
  background: rgba(255,255,255,0.9);
  border: 1px solid rgba(0,0,0,0.08);
  border-radius: 16px;
  overflow: hidden;
}

.p-recruit-page__table th,
.p-recruit-page__table td{
  padding: 16px 18px;
  border-bottom: 1px solid rgba(0,0,0,0.06);
  vertical-align: top;
  line-height: 1.9;
}

.p-recruit-page__table th{
  width: 26%;
  font-weight: 700;
  background: rgba(0,0,0,0.03);
  color: var(--color-text);
}

.p-recruit-page__table tr:last-child th,
.p-recruit-page__table tr:last-child td{
  border-bottom: none;
}

.p-recruit-page__note{
  margin-top: 14px;
  color: var(--color-text-light);
  font-size: 14px;
  line-height: 1.8;
}

@media (max-width: 900px){
  .p-recruit-page__table th{ width: 34%; }
}

@media (max-width: 640px){
  .p-recruit-page__table th{ width: 38%; }
}

/* =========================================
   Sub pages header: always visible on FV
   （下層は最初からガラス背景＋黒文字にする）
========================================= */
.l-header--sub {
  box-shadow: 0 10px 28px rgba(0,0,0,0.08);
}

/* 透明レイヤーを常時表示（= is-scrolled相当） */
.l-header--sub::before {
  opacity: 1 !important;
  background: rgba(255, 255, 255, 0.86);
  backdrop-filter: blur(12px) saturate(160%);
  -webkit-backdrop-filter: blur(12px) saturate(160%);
  border-bottom: 1px solid rgba(0,0,0,0.08);
}

/* ロゴ・ナビ・ハンバーガーは黒系に固定 */
.l-header--sub .l-header__logo img,
.l-header--sub .l-header__logo p {
  filter: none !important;
}

.l-header--sub .l-header__item a {
  color: var(--color-text) !important;
}

.l-header--sub .l-header__item a::after {
  background: var(--gradient-primary) !important;
}

.l-header--sub .l-header__menu-btn span {
  background-color: var(--color-text) !important;
}

/* ヘッダーCTAも下層は常にグラデに */
.l-header--sub .c-btn--header {
  background: var(--gradient-primary) !important;
  border-color: transparent !important;
  color: #fff !important;
}
/* =========================================
   Sub pages: remove header spacer on FV
========================================= */
.p-fv,
.p-fv--sub{
  padding-top: 0 !important;
}

/* もし .p-subhero 側で押している場合に備えて */
.p-subhero{
  margin-top: 0 !important;
  padding-top: 0 !important;
}

/* それでも上に余白が残る場合（ヘッダー高さ分の"空白"が入ってる） */
.l-main{
  padding-top: 0 !important;
}

/* =========================
   Contact page
========================= */
.p-contact-form{
  border: 1px solid rgba(0,0,0,0.08);
  border-radius: 18px;
  background: rgba(255,255,255,0.9);
  padding: 22px;
}

.p-contact-form__grid{
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.p-contact-form__field--full{
  grid-column: 1 / -1;
}

.p-contact-form__label{
  display: block;
  font-weight: 700;
  margin: 0 0 8px;
}

.p-contact-form__req{
  display: inline-block;
  margin-left: 8px;
  font-size: 12px;
  font-weight: 700;
  color: #fff;
  background: var(--color-primary);
  padding: 2px 8px;
  border-radius: 999px;
}

.p-contact-form__input,
.p-contact-form__textarea{
  width: 100%;
  border: 1px solid rgba(0,0,0,0.14);
  border-radius: 12px;
  padding: 12px 12px;
  font-size: 16px;
  background: rgba(255,255,255,0.95);
}

.p-contact-form__textarea{
  resize: vertical;
  min-height: 180px;
}

.p-contact-form__check{
  display: flex;
  gap: 10px;
  align-items: flex-start;
  line-height: 1.7;
  color: var(--color-text);
}

.p-contact-form__check input{
  margin-top: 4px;
}

.p-contact-form__actions{
  margin-top: 18px;
  display: grid;
  gap: 10px;
}

.p-contact-form__submit{
  width: 100%;
}

.p-contact-form__hint{
  font-size: 13px;
  color: var(--color-text-light);
  line-height: 1.7;
  margin: 0;
}

@media (max-width: 640px){
  .p-contact-form__grid{
    grid-template-columns: 1fr;
  }
}

/* =========================
   Privacy page
========================= */
.p-privacy{
  border: 1px solid rgba(0,0,0,0.08);
  border-radius: 18px;
  background: rgba(255,255,255,0.9);
  padding: 24px;
}

.p-privacy__lead{
  margin: 0 0 18px;
  line-height: 2;
}

.p-privacy__block{
  padding-top: 16px;
  border-top: 1px solid rgba(0,0,0,0.06);
  margin-top: 16px;
}

.p-privacy__block:first-child{
  border-top: none;
  padding-top: 0;
  margin-top: 0;
}

.p-privacy__title{
  margin: 0 0 10px;
  font-size: 18px;
  font-weight: 700;
  padding-left: 12px;
  border-left: 4px solid var(--color-primary);
}

.p-privacy__list{
  margin: 12px 0 0;
  padding-left: 18px;
  line-height: 2;
}

.p-privacy__block--contact{
  background: rgba(0,0,0,0.03);
  border-radius: 14px;
  padding: 16px;
}

@media (max-width: 640px){
  .p-privacy{
    padding: 18px;
  }
}

/* =========================================
   Breadcrumb right after FV (no gap)
========================================= */
.p-breadcrumb-wrap{
  padding: 10px 0 0;
  background: var(--color-bg, #fff);
}

.p-breadcrumb--below{
  margin: 0;
  text-align: left;
  font-size: 13px;
  line-height: 1.6;
  opacity: 0.75;
}

.p-breadcrumb--below,
.p-breadcrumb--below a{
  color: var(--color-text) !important;
}

.p-breadcrumb--below a{
  text-decoration: none;
  font-weight: 700;
}

.p-breadcrumb--below span[aria-hidden="true"]{
  margin: 0 6px;
}

body.page-recruit .p-fv--sub .p-fv__bg img{
  object-position: 40% 10% !important;  /* 5%→10%→15% で調整 */
}


/* =========================================
   Header logo: always keep same appearance
   （ロゴだけはスクロールで色を変えない）
========================================= */
.l-header .l-header__logo img{
  filter: none !important;          /* 白化/反転などを無効化 */
}

.l-header .l-header__logo p{
  color: var(--color-text) !important;  /* ロゴ横の文字も固定したい場合 */
}

/* =========================================
   Tablet (768px〜1023px): ハンバーガーメニュー
========================================= */
@media (min-width: 768px) and (max-width: 1023px) {
  .l-header__nav.u-pc-only,
  .l-header__cta.u-pc-only {
    display: none !important;
  }
  .l-header__menu-btn.u-sp-only {
    display: block !important;
  }
}

/* =========================================
   Tablet (768px〜1023px): p-pagelead テキスト折り返し修正
========================================= */
@media (min-width: 768px) and (max-width: 1023px) {
  .p-pagelead {
    max-width: 580px;
  }
}