/* ==========================================================================
   Variables
   ========================================================================== */
:root {
    /* Colors */
    --color-primary: #0371BDEE;
    /* Showa Blue */
    --color-primary-dark: #004a99;
    --color-primary-deep: #002d56;
    --color-accent: #8cc63f;
    /* Accent Green */
    --color-accent-dark: #7ab334;
    --color-text: #333333;
    --color-text-light: #cccccc;
    --color-text-muted: #999999;
    --color-bg-light: #f8f9fa;
    --color-white: #ffffff;
    --color-black: #000000;

    /* Layout */
    --header-height: 75px;
    --container-width: 1200px;
    --container-width-wide: 1400px;

    /* Transitions */
    --transition-base: 0.3s ease;
}

/* ==========================================================================
   Base
   ========================================================================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Noto Sans JP', sans-serif;
    color: var(--color-text);
    overflow-x: hidden;
}

/* Prevent scroll when menu is open */
body.is-open {
    overflow: hidden;
}

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

a {
    color: inherit;
    text-decoration: none;
    transition: var(--transition-base);
}

/* Titles use Serif for a premium feel as per the reference site */
h1,
h2,
h3,
.p-hero__main-title,
.c-section-title {
    font-family: 'Noto Serif JP', serif;
}

/* ==========================================================================
   Layout
   ========================================================================== */

/* Loading Screen */
.l-loading {
    position: fixed;
    top: 0;
    left: 0;
    z-index: 100000;
    width: 100%;
    height: 100%;
    background-color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
}

.l-loading.is-loaded {
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.8s ease-out, visibility 0.8s;
}

.l-loading__logo {
    width: 120px;
    height: auto;
    animation: pulse 1.5s infinite ease-in-out;
}

@keyframes pulse {
    0% {
        transform: scale(1);
        opacity: 0.7;
    }

    50% {
        transform: scale(1.05);
        opacity: 1;
    }

    100% {
        transform: scale(1);
        opacity: 0.7;
    }
}

/* Header */
.l-header {
    position: fixed;
    top: 0;
    left: 0;
    z-index: 9999;
    width: 100% !important;
    height: var(--header-height);
    background-color: var(--color-primary);
    color: var(--color-white);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
    border-bottom: 1px solid #FFF;
    display: flex;
    align-items: center;
}

.l-header__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 98%;
    max-width: var(--container-width-wide);
    margin: 0 auto;
    height: 100%;
}

.l-header__brand {
    display: flex;
    align-items: center;
    gap: 15px;
    flex-shrink: 0;
    margin: 0;
}

.l-header__logo {
    height: 54px;
    /* Slightly larger as per reference */
    width: auto;
}

.l-header__nav-list {
    display: flex;
    align-items: center;
    gap: 5px;
    /* Reduced gap since user snippet uses margin-left: 20px */
    list-style: none;
}

.l-header__nav-link {
    display: inline-block;
    text-align: center;
    font-size: 100%;
    line-height: 1.4;
    letter-spacing: 0.08em;
    margin: 0 0 0 15.2px;
    padding: 10px 10px;
    text-decoration: none;
    color: #FFF;
    font: 14px 'Poppins', sans-serif;
    border: 1px solid #ffffff00;
    border-radius: 5px;
}

.l-header__nav-link span {
    display: block;
    /* Keep stack even with inline-block parent */
    font-size: 9px;
    opacity: 0.5;
    letter-spacing: 0.15em;
    margin: 0;
    margin-top: -5px;
    text-align: center;
}

.l-header__nav-link:hover {
    color: #fffb26;
}

.l-header__nav-link:hover span {
    color: #FFF;
}


/* Hamburger Menu Button */
.l-header__hamburger {
    display: none;
    width: 45px;
    height: 40px;
    background: #fff;
    border: none;
    border-radius: 4px;
    position: relative;
    cursor: pointer;
    z-index: 10001;
    transition: background-color 0.3s;
}

.l-header__hamburger span {
    display: block;
    position: absolute;
    left: 50%;
    width: 25px;
    height: 2px;
    background-color: var(--color-primary);
    border-radius: 2px;
    transform: translateX(-50%);
    transition: 0.3s;
}

.l-header__hamburger span:nth-child(1) {
    top: 12px;
}

.l-header__hamburger span:nth-child(2) {
    top: 19px;
}

.l-header__hamburger span:nth-child(3) {
    top: 26px;
}

/* Open State Animation */
.l-header.is-open .l-header__hamburger {
    background-color: var(--color-primary);
    /* Match image close button bg */
}

.l-header.is-open .l-header__hamburger span {
    background-color: #fff;
}

.l-header.is-open .l-header__hamburger span:nth-child(1) {
    top: 19px;
    transform: translateX(-50%) rotate(45deg);
}

.l-header.is-open .l-header__hamburger span:nth-child(2) {
    opacity: 0;
}

.l-header.is-open .l-header__hamburger span:nth-child(3) {
    top: 19px;
    transform: translateX(-50%) rotate(-45deg);
}

/* Page Top Bar */
.p-page-top {
    background-color: #cccccc;
    text-align: center;
    padding: 26px 0 26px;
}

.p-page-top__link {
    font-size: 20px;
    font-weight: 400;
    letter-spacing: 0.27em;
    color: #636363;
    transform: scaleY(1.1);
}

/* Footer */
.l-footer {
    padding-top: 20px;
    background-color: #F0F3F5;
    color: #333;
    font-size: 14px;
}

.l-footer__inner {
    display: flex;
    justify-content: space-between;
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 12px 20px 30px;
}

/* --- 左側の会社情報全体の設定 --- */
/* --- 左側の会社情報エリア --- */
.l-footer__info {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    padding-right: 100px;
    padding-left: 80px;
    /* 中央線からの距離（ここを調整して今の位置に合わせます） */
    margin-top: -15px;
}

.l-footer__company-name {
    margin-bottom: 7px;
    font-size: 33.45px;
    font-weight: normal;
    font-family: "游明朝", YuMincho;
    letter-spacing: 0.005em;
    line-height: 1.2;
}

.l-footer__address,
.l-footer__tel {
    font-family: "游明朝", YuMincho;
    font-size: 14px;
    color: #444;
    margin-bottom: 1.5px;
}

/* --- 右側のメニューだけを調整する設定 --- */
/* --- 右側のメニューエリア --- */
.l-footer__nav {
    flex: 1;
    display: flex;
    justify-content: flex-start;
    /* 中央線からの距離（今は左へ突き抜けている状態を再現） */
    margin-left: -280px;
    /* マイナス値で中央線を越えて左へ移動 */
    gap: 133px;
    margin-top: -6px;
    margin-bottom: 6px;
}

.l-footer__nav-list {
    list-style: none;
}

.l-footer__nav-list li {
    margin-bottom: 12px;
}

.l-footer__nav-list a {
    color: #333;
    font-weight: normal;
    font-size: 12px;
    letter-spacing: 0.05em;
    font-family: 'Noto Sans JP', sans-serif;
    /* --- 縦長にするための追加設定 --- */
    display: inline-block;
    /* transformを有効にするために必要 */
    transform: scaleY(1.05);
    /* 縦の倍率（1.3倍）。好みの長さに調整してください */
    transform-origin: left top;
    /* 伸びる基準点を左上に固定 */
    line-height: 1.5;
}

.l-footer__nav-list a:hover {
    color: var(--color-primary);
}

.l-footer__copyright {
    padding: 20.12px 0;
    background: #3b4043;
    color: var(--color-white);
    font-family: Poppins, sans-serif;
    font-size: 12.2px;
    font-weight: 300;
    text-align: center;
    letter-spacing: 0.03em;
}

.l-footer__copyright-symbol {
    font-size: 0.6em;
    vertical-align: 0.2em;
    margin-right: 0px;
}

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

/* Buttons */
.c-btn {
    display: inline-block;
    padding: 15px 50px;
    border-radius: 2px;
    font-weight: bold;
    text-align: center;
    cursor: pointer;
}

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

.c-btn--primary:hover {
    background: #002d5e;
}

.c-btn--contact-header {
    padding: 0;
    /* Let the link styling handle padding */
    border: 0;
    /* Remove duplicate border */
    display: flex;
    align-items: center;
}

.c-btn--contact-header .l-header__nav-link {
    border: 0.1px solid var(--color-white);
    /* Keep border for contact only */
}

.c-btn--contact-header:hover .l-header__nav-link {
    background-color: var(--color-white);
    color: var(--color-primary);
}

.c-btn--accent {
    padding: 15px 30px;
    background-color: var(--color-accent);
    color: var(--color-white);
    border-radius: 4px;
}

.c-btn--accent:hover {
    background-color: var(--color-accent-dark);
    transform: translateY(-2px);
}

.c-btn--outline {
    border: 1px solid var(--color-primary-dark);
    color: var(--color-primary-dark);
    padding: 10px 30px;
}

/* Section Common */
.c-section-container {
    max-width: 1000px;
    margin: 0 auto;
    padding: 100px 10px;
    text-align: center;
}

.c-section-label {
    display: block;
    margin-bottom: 10px;
    color: var(--color-primary-dark);
    font-size: 14px;
    font-weight: bold;
    letter-spacing: 0.2em;
}

.c-section-title {
    position: relative;
    margin-bottom: 20px;
    padding-bottom: 0px;
    font-size: 36px;
    /* Matched to reference title size */
    letter-spacing: 0.15em;
}

/* ==========================================================================
   Project Sections
   ========================================================================== */

/* Hero (Banner Style) */
.p-hero {
    position: relative;
    width: 100%;
    height: 600px;
    /* Matched to user request */
    margin-top: var(--header-height);
    overflow: hidden;
}

.p-hero__slider {
    width: 100%;
    height: 100%;
}

.p-hero__slide {
    position: relative;
    overflow: hidden;
    height: 100%;
}

.p-hero__slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 10s ease;
}

.swiper-slide-active .p-hero__slide img {
    transform: scale(1.15);
}

.p-hero__slide::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.4);
}

.p-hero__content {
    position: absolute;
    top: 0;
    left: 0;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    pointer-events: none;
}

.p-hero__text-box {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0;
    z-index: 20;
    background-color: rgba(0, 0, 0, 0.4);
    padding: 30px 50px;
    backdrop-filter: blur(2px);
}

.p-hero__main-txt {
    color: var(--color-white);
    text-align: center;
    font-family: 'Noto Serif JP', serif;
}

.p-hero__company {
    font-size: 55px;
    letter-spacing: 0.1em;
}

.p-hero__copy {
    font-size: 45px;
    font-weight: 700;
    letter-spacing: 0.05em;
}

.p-hero__lead {
    font-size: 45px;
    letter-spacing: 0.05em;
}

.p-hero__sub-txt {
    width: auto;
    max-width: 70%;
    height: auto;
}

/* Hero Swiper Pagination (Circular with Border) */
.p-hero .swiper-pagination {
    bottom: 30px !important;
}

.p-hero .swiper-pagination-bullet {
    width: 14px !important;
    height: 14px !important;
    border-radius: 50% !important;
    background: #444 !important;
    /* 濃い灰色 */
    border: 1px solid #fff !important;
    /* 白色の縁取り */
    opacity: 1 !important;
    margin: 0 8px !important;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.3);
    transition: all 0.3s ease;
}

.p-hero .swiper-pagination-bullet-active {
    background: var(--color-primary) !important;
    /* アクティブ時は青色 */
}

/* Intro */
.p-intro {
    width: 100%;
    padding: 0px 0;
    background-color: var(--color-bg-light);
    text-align: center;
}

.p-intro__inner {
    max-width: 900px;
    margin: 0 auto;
    padding: 0 20px;
}

.p-intro__main-copy {
    margin-bottom: 60px;
    color: var(--color-primary);
    font-size: 32px;
    font-weight: bold;
    line-height: 1.4;
    letter-spacing: 0.05em;
}

.p-intro__body {
    color: var(--color-text);
    font-size: 20px;
    line-height: 2.4;
}

.p-intro__body p {
    margin-bottom: 35px;
}

.p-intro__message {
    margin-bottom: 60px;
    /* Changed from margin-top */
    text-align: center;
}

@media (max-width: 768px) {
    .p-intro__message-text {
        font-size: 32px;
    }
}

.p-intro__action {
    margin-top: 60px;
}

/* アニメーション初期状態 */
.p-intro__main-copy,
.p-intro__body p {
    opacity: 0;
    transform: translateX(30px);
    transition: opacity 2s ease-out, transform 2s ease-out;
}

.p-intro__message {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 2s ease-out, transform 2s ease-out;
}

/* 表示時の状態（スローガン後の1行以外） */
.p-intro.is-typing-finished .p-intro__main-copy,
.p-intro.is-typing-finished .p-intro__body p:not(.js-last-sentence) {
    opacity: 1;
    transform: translateX(0);
}

.p-intro.is-show .p-intro__message {
    opacity: 1;
    transform: translateY(0);
}

/* タイピング演出の初期状態 */
.p-intro__message-text {
    position: relative;
    opacity: 0;
    visibility: hidden;
    display: inline-block;
    color: var(--color-primary);
    font-family: 'Noto Serif JP', serif;
    font-size: 64px;
    font-weight: 700;
    line-height: 1.2;
    letter-spacing: 0.05em;
    text-shadow: 0 0 20px rgba(0, 113, 188, 0.1);
    min-height: 1.2em;
    /* レイアウトシフト防止 */
}

.p-intro__message-text.is-typing {
    opacity: 1;
    visibility: visible;
}

/* カーソルのスタイル（PCのテキストエディタ風） */
.p-intro__message-text::after {
    content: "";
    display: inline-block;
    width: 3px;
    /* 少し太くして存在感を出す */
    height: 1em;
    background-color: var(--color-primary);
    margin-left: 6px;
    vertical-align: middle;
    opacity: 0;
}

.p-intro__message-text.is-typing::after {
    animation: blink 0.8s infinite;
}

/* 入力完了後にカーソルを消す */
.p-intro__message-text.is-finished::after {
    display: none;
}

@keyframes blink {

    0%,
    100% {
        opacity: 1;
    }

    50% {
        opacity: 0;
    }
}

/* 時間差（スタッガー）設定 - タイピング完了後に順次表示 */
.p-intro.is-typing-finished .p-intro__main-copy {
    transition-delay: 0s;
}

.p-intro.is-typing-finished .p-intro__body p:nth-child(1) {
    transition-delay: 0.2s;
}

.p-intro.is-typing-finished .p-intro__body p:nth-child(2) {
    transition-delay: 0.4s;
}

.p-intro.is-typing-finished .p-intro__body p:nth-child(3) {
    transition-delay: 0.6s;
}

.p-intro.is-typing-finished .p-intro__body p:nth-child(4) {
    transition-delay: 0.8s;
}

.p-intro.is-show .p-intro__message {
    transition-delay: 0.1s;
    /* タイピングを最初に見せたいので早める */
}

/* 最後の1行はすべて完了した後に表示 */
.p-intro.is-typing-finished .p-intro__body p.js-last-sentence {
    opacity: 1;
    transform: translateX(0);
    transition-delay: 1.0s;
}

/* Service Intro */
.p-service-intro {
    position: relative;
    padding: 120px 0;
    background-color: #fff;
    overflow: hidden;
}

/* Dimming Overlay */
.p-service-intro::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.5s ease;
    z-index: 5;
}

.p-service-intro:has(.p-service-intro__img-wrapper:hover)::after {
    opacity: 1;
}

.p-service-intro__inner {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    padding: 0 20px;
    gap: 100px;
}

/* --- Animation Initial States & Transitions --- */
.p-service-intro__img-wrapper {
    position: relative;
    flex: 0 0 55%;
    /* 横幅を指定（現在は55%） */
    min-height: 400px;
    /* 縦幅を指定（現在は400px） */
    z-index: 10;
    /* Above the overlay */
}

/* --- Animation Initial States & Transitions --- */
.p-service-intro__img {
    position: relative;
    width: 100%;
    height: 100%;
    z-index: 10;
    opacity: 0;
    transform: translateX(-100px);
    transition: opacity 1.5s ease-out, transform 1.5s ease-out;
}

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

/* --- Branching Animation Styles --- */
.p-service-intro__branches {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 5;
}

.p-service-intro__branch-item {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 140px;
    height: 100px;
    border: 3px solid #0081cc;
    background: #fff;
    padding: 2px;
    opacity: 0;
    transform: translate(-50%, -50%) scale(0);
    transition: all 0.6s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
}

.p-service-intro__branch-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Branch Lines (Blue lines) */
.p-service-intro__branch-line {
    position: absolute;
    top: 50%;
    left: 50%;
    height: 3px;
    background-color: #0081cc;
    transform-origin: left center;
    z-index: -1;
    width: 0;
    opacity: 0;
    /* ホバーを外した時は一瞬で消えるように設定 */
    transition: width 0s, opacity 0s;
}

/* Hover States */
.p-service-intro__img-wrapper:hover .p-service-intro__branch-item {
    opacity: 1;
    transform: translate(var(--tx), var(--ty)) scale(1);
}

.p-service-intro__img-wrapper:hover .p-service-intro__branch-line {
    width: var(--line-len);
    transform: rotate(var(--line-deg));
    opacity: 1;
    /* ホバーした時だけアニメーションさせる */
    transition: width 0.6s ease, opacity 0.3s ease;
}

/* Individual positions and line parameters */
.item-1 {
    --tx: -400px;
    --ty: -350px;
    --line-len: 340px;
    --line-deg: 35deg;
    transition-delay: 0.1s;
}

.item-2 {
    --tx: -180px;
    --ty: -400px;
    --line-len: 270px;
    --line-deg: 70deg;
    transition-delay: 0.15s;
}

.item-3 {
    --tx: 120px;
    --ty: -340px;
    --line-len: 260px;
    --line-deg: 116deg;
    transition-delay: 0.2s;
}

.item-4 {
    --tx: -260px;
    --ty: 300px;
    --line-len: 300px;
    --line-deg: -35deg;
    transition-delay: 0.25s;
}

.item-5 {
    --tx: 140px;
    --ty: 270px;
    --line-len: 240px;
    --line-deg: 225deg;
    transition-delay: 0.3s;
}

/* Responsive adjustments for branches */
@media (max-width: 768px) {
    .p-service-intro__branches {
        display: none;
        /* Hide on small mobile to avoid layout mess */
    }
}

.p-service-intro__content {
    flex: 1;
    display: flex;
    background-color: #fff;
    opacity: 0;
    transform: translateX(100px);
    transition: opacity 1.5s ease-out, transform 1.5s ease-out;
}

.p-service-intro__text-box {
    position: relative;
    width: 100%;
    text-align: center;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 80px 0;
}

.p-service-intro__text-box::before {
    content: 'BUSINESS';
    position: absolute;
    top: 50px;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 110px;
    font-weight: bold;
    color: #f7f7f7;
    z-index: -1;
    font-family: 'Poppins', sans-serif;
    letter-spacing: 0.1em;
    pointer-events: none;
    line-height: 1;
}

.p-service-intro__title,
.p-service-intro__subtitle {
    opacity: 0;
    transform: translateY(-40px);
    transition: opacity 1.2s ease-out, transform 1.2s ease-out;
}

.p-service-intro__body,
.p-service-intro__action {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 1.2s ease-out, transform 1.2s ease-out;
}

/* --- Animation Active States (Triggered by .is-show) --- */
.p-service-intro.is-show .p-service-intro__img,
.p-service-intro.is-show .p-service-intro__content {
    opacity: 1;
    transform: translate(0);
}

.p-service-intro.is-show .p-service-intro__content {
    transition-delay: 0.3s;
}

.p-service-intro.is-show .p-service-intro__title {
    opacity: 1;
    transform: translateY(0);
    transition-delay: 0.8s;
}

.p-service-intro.is-show .p-service-intro__subtitle {
    opacity: 1;
    transform: translateY(0);
    transition-delay: 1.0s;
}

.p-service-intro.is-show .p-service-intro__body {
    opacity: 1;
    transform: translateY(0);
    transition-delay: 1.2s;
}

.p-service-intro.is-show .p-service-intro__action {
    opacity: 1;
    transform: translateY(0);
    transition-delay: 1.4s;
}

/* --- Base Element Styles --- */
.p-service-intro__title {
    font-size: 48px;
    letter-spacing: 0.2em;
    margin-bottom: 25px;
    color: #333;
    font-weight: bold;
}

.p-service-intro__subtitle {
    display: none;
    /* Hidden because we use the large background text instead */
}

.p-service-intro__body {
    font-size: 16px;
    line-height: 2;
    color: #444;
    margin-bottom: 30px;
}

.p-service-intro__body p {
    margin-bottom: 15px;
}

.p-service-intro__body p:last-child {
    margin-bottom: 0;
}

.c-btn--service {
    display: inline-block;
    background-color: #0081cc;
    color: #fff;
    padding: 16px 100px;
    border-radius: 40px;
    font-size: 18px;
    font-weight: bold;
    transition: all 0.3s ease;
}

.c-btn--service:hover {
    background-color: #005fa3;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 129, 204, 0.3);
}

@media (max-width: 992px) {
    .p-service-intro {
        padding: 60px 0;
    }

    .p-service-intro__inner {
        flex-direction: column;
    }

    .p-service-intro__img {
        flex: none;
        width: 100%;
        min-height: 300px;
        transform: translateY(-40px);
        /* Slide from top on mobile */
    }

    .p-service-intro__content {
        transform: translateY(40px);
        /* Slide from bottom on mobile */
    }

    .p-service-intro__text-box {
        padding: 50px 20px;
        border-top: none;
    }

    .p-service-intro__text-box::before {
        display: none;
    }

    .p-service-intro__title {
        font-size: 28px;
    }
}

/* Business Showcase */
.p-business {
    display: flex;
    width: 100%;
    height: 450px;
    gap: 4px;
    /* Small gap between panels for clarity */
    background-color: var(--color-white);
    overflow: hidden;
}

.p-business__item {
    position: relative;
    flex: 1;
    overflow: hidden;
    color: var(--color-white);
    /* Initial state for animation: RIGHT TO LEFT */
    opacity: 0;
    transform: translateX(30px);
    transition: opacity 2.5s ease-out, transform 2.5s ease-out;
    /* Slowed down to 2.5s */
}

/* Trigger class added by JS */
.p-business.is-show .p-business__item {
    opacity: 1;
    transform: translateX(0);
}

/* Staggered delays */
.p-business.is-show .p-business__item:nth-child(2) {
    transition-delay: 0.3s;
}

.p-business.is-show .p-business__item:nth-child(3) {
    transition-delay: 0.6s;
}

/* Desktop only animation (fallback for mobile to avoid issues) */
@media (max-width: 992px) {
    .p-business__item {
        opacity: 1;
        transform: none;
    }
}

.p-business__img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.p-business__item:hover .p-business__img {
    transform: scale(1.05);
}

.p-business__overlay {
    position: absolute;
    top: 0;
    left: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.4);
    transition: background-color 0.3s;
}

.p-business__item:hover .p-business__overlay {
    background-color: rgba(0, 0, 0, 0.6);
}

.p-business__frame {
    width: 320px;
    max-width: 90%;
    height: 200px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    border: 1px solid var(--color-white);
    text-align: center;
    padding: 20px;
}

.p-business__title {
    margin-bottom: 15px;
    font-size: 1.8rem;
    /* Larger title size */
    font-weight: bold;
    letter-spacing: 0.15em;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.8);
}

.p-business__concept {
    font-size: 1rem;
    line-height: 1.8;
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.9);
}

/* News Section (Replacing Compliance) */
.p-news {
    background-color: #ffffff;
    padding: 100px 0;
}

.p-news__card {
    background: #0071bc;
    padding: 80px 40px;
    max-width: 900px;
    margin: 0 auto;
    text-align: center;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
}

.p-news .c-section-title {
    margin-bottom: 5px;
    font-size: 32px;
    letter-spacing: 0.3em;
    color: #fff;
}

.p-news__sub-title {
    display: block;
    font-family: 'Poppins', sans-serif;
    font-size: 14px;
    color: #000;
    letter-spacing: 0.4em;
    margin-bottom: 40px;
}

.p-news__list {
    max-width: 650px;
    margin: 0 auto 40px;
    border-top: 1px solid #eee;
    list-style: none;
}

.p-news__item {
    border-bottom: 1px solid #eee;
}

.p-news__link {
    display: flex;
    padding: 25px 10px;
    gap: 30px;
    font-size: 15px;
    color: #333;
    transition: background-color 0.3s;
}

.p-news__date {
    color: #fff;
    font-family: 'Poppins', sans-serif;
    min-width: 100px;
    text-align: left;
}

.p-news__txt {
    text-align: left;
    color: #fff;
}

.p-news__btn {
    background-color: #fff;
    color: #0081cc;
    padding: 14px 70px;
    border-radius: 35px;
    font-size: 16px;
    font-weight: bold;
    display: inline-block;
    transition: var(--transition-base);
}

.p-news__btn:hover {
    background-color: var(--color-primary-dark);
    transform: translateY(-2px);
    color: #fff;
}

/* Contact Box */
.p-contact-box {
    padding: 120px 20px;
    background-image: url('../images/business_img04.png');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    position: relative;
}

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

.p-contact-box__card {
    position: relative;
    z-index: 10;
    max-width: 800px;
    margin: 0 auto;
    background: rgba(255, 255, 255, 0.9);
    /* 少し透かす */
    backdrop-filter: blur(10px);
    /* 背景をぼかす */
    padding: 80px 40px;
    text-align: center;
    border-radius: 8px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);

    /* アニメーション用初期状態 */
    opacity: 0;
    transform: translateY(50px);
    transition: opacity 1.2s ease, transform 1.2s ease;
}

/* 表示された時の状態 */
.p-contact-box.is-show .p-contact-box__card {
    opacity: 1;
    transform: translateY(0);
}

.p-contact-box__title {
    margin-bottom: 30px;
    font-family: 'Noto Serif JP', serif;
    font-size: 36px;
    letter-spacing: 0.2em;
}

.p-contact-box__title span {
    display: block;
    margin-top: 10px;
    font-family: 'Poppins', sans-serif;
    font-size: 14px;
    color: var(--color-text-muted);
    letter-spacing: 0.4em;
}

.p-contact-box__lead {
    margin-bottom: 40px;
    font-size: 16px;
}

.p-contact-box__tel {
    margin-bottom: 10px;
    font-family: 'Poppins', sans-serif;
    font-size: 52px;
    font-weight: bold;
    line-height: 1;
    color: #444;
}

.p-contact-box__time {
    margin-bottom: 40px;
    font-size: 14px;
    color: var(--color-text-muted);
}

.p-contact-box__btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background-color: #0081cc;
    color: var(--color-white);
    padding: 18px 60px;
    font-size: 18px;
    font-weight: bold;
    border-radius: 40px;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.p-contact-box__btn::after {
    content: '→';
    margin-left: 10px;
    transition: transform 0.3s ease;
}

.p-contact-box__btn:hover {
    background-color: var(--color-primary);
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(0, 113, 188, 0.3);
}

.p-contact-box__btn:hover::after {
    transform: translateX(5px);
}

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

.p-access .c-section-container {
    padding-bottom: 0px;
    /* タイトル下の余白を詰める */
}

.p-access__map-wrapper {
    position: relative;
    width: 100%;
    height: 412px;
    margin-top: 0;
    /* マップ上の余白をなくす */
}

.p-access__map {
    width: 100%;
    height: 100%;
}

.p-access__map iframe {
    width: 100%;
    height: 100%;
    filter: grayscale(20%);
    border: 0;
}

.p-access__info {
    position: absolute;
    top: 15px;
    left: 15px;
    z-index: 10;
}

.p-access__map-link {
    display: inline-flex;
    align-items: center;
    padding: 8px 15px;
    background-color: #fff;
    color: #333;
    text-decoration: none;
    font-size: 13px;
    font-weight: normal;
    border: 1px solid #ccc;
    border-radius: 2px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.p-access__map-link::after {
    content: '\2197';
    margin-left: 8px;
    font-size: 12px;
    color: var(--color-primary);
}

.p-access__map-link:hover {
    background-color: #fcfcfc;
    border-color: #999;
}




/* ==========================================================================
   Responsive
   ========================================================================== */

/* Tablets (max-width: 992px) */
@media (max-width: 992px) {
    .l-header__hamburger {
        display: block;
        /* Show hamburger on mobile */
    }

    .l-header__nav {
        position: fixed;
        top: -100%;
        /* Slide from top */
        left: 0;
        width: 100%;
        height: auto;
        /* Changed to auto to fit content like the image */
        max-height: calc(100vh - var(--header-height));
        background-color: #ffffff;
        /* White background as per image */
        padding: 0;
        transition: 0.5s ease-in-out;
        /* Smooth slide-down animation */
        z-index: 10000;
        overflow-y: auto;
        box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
    }

    .l-header.is-open .l-header__nav {
        top: var(--header-height);
        /* Slide down to below header */
    }

    .l-header__nav-list {
        flex-direction: column;
        gap: 0;
        width: 100%;
    }

    .l-header__nav-list li {
        width: 100%;
    }

    .l-header__nav-link {
        width: 100%;
        padding: 15px 15px;
        margin: 0;
        font-size: 17.5px;
        color: #333333 !important;
        /* Dark text on white bg */
        border-bottom: 1px solid #eeeeee;
        /* Thin lines between items */
        border-radius: 0;
        text-align: center;
        display: block;
    }

    .l-header__nav-link span {
        display: none;
        /* Hide English text in mobile menu as per image */
    }

    .c-btn--contact-header {
        width: 100%;
        padding: 15px 20px;
        background-color: #f8f8f8;
        /* Light gray padding area */
    }

    .c-btn--contact-header .l-header__nav-link {
        background-color: var(--color-primary-dark);
        /* Large blue button */
        color: #ffffff !important;
        border: none;
        border-radius: 4px;
        padding: 12px;
        font-weight: bold;
    }

    .c-btn--contact-header:hover .l-header__nav-link {
        background-color: var(--color-white);
        color: var(--color-primary);
    }

    .p-contact-box {
        background-attachment: scroll;
        /* Prevent issues on mobile */
        padding: 60px 20px;
    }

    .p-contact-box__card {
        padding: 40px 20px;
    }

    .p-contact-box__title {
        font-size: 28px;
    }

    .p-contact-box__tel {
        font-size: 32px;
    }

    .p-news__card {
        padding: 40px 20px;
    }

    .p-news__link {
        flex-direction: column;
        gap: 8px;
        padding: 15px 10px;
    }

    .p-news__date {
        min-width: auto;
    }

    .p-business {
        height: auto;
        /* Allow items to stack naturally */
        gap: 10px;
        /* More space between panels on mobile */
    }

    .p-business__item {
        height: 350px;
    }

    .l-footer__inner {
        flex-direction: column;
        align-items: center;
        text-align: center;
        gap: 50px;
    }

    .l-footer__brand {
        max-width: 100%;
    }

    .l-footer__logo {
        margin: 0 auto 20px;
    }

    .l-footer__links {
        align-items: center;
    }

    .l-footer__nav-list {
        flex-wrap: wrap;
        justify-content: center;
    }

    .l-footer__contact {
        flex-direction: column;
        gap: 20px;
        padding: 20px;
    }

    .l-footer__nav {
        flex-direction: column;
        gap: 30px;
    }

    .l-footer__company-name {
        font-size: 24px;
    }
}

/* Phones (max-width: 768px) */
@media (max-width: 768px) {
    .p-hero {
        height: 400px;
    }

    .p-hero__main-txt {
        max-width: 95%;
    }

    .p-hero__text-box {
        padding: 20px 25px;
    }

    .p-hero__company {
        font-size: 16px;
    }

    .p-hero__copy {
        font-size: 28px;
    }

    .p-hero__lead {
        font-size: 18px;
    }

    .p-intro {
        padding: 80px 0;
    }

    .p-intro__main-copy {
        font-size: 22px;
    }

    .p-intro__body {
        font-size: 16px;
        line-height: 2.2;
    }

    .p-intro__slogan {
        font-size: 18px;
    }

    .p-business {
        flex-direction: column;
        height: auto;
    }

    .p-business__item {
        width: 100%;
        height: 250px;
    }

    .p-business__frame {
        padding: 20px;
    }

    .p-business__title {
        font-size: 1.25rem;
    }

    .p-access__map-wrapper {
        display: flex;
        flex-direction: column;
        height: auto;
    }

    .p-access__info {
        position: static;
        order: 1;
        width: 100%;
        transform: none;
    }

    .p-access__map {
        order: 2;
        height: 300px;
    }

    .l-footer__bottom-inner {
        flex-direction: column;
        gap: 10px;
    }

    .l-footer__bottom-nav {
        flex-wrap: wrap;
        justify-content: center;
    }

    .p-contact-box__tel {
        font-size: 24px;
    }

    .p-news__btn {
        padding: 12px 50px;
        font-size: 14px;
    }
}

/* ==========================================================================
   Vehicles Page (所有車両)
   ========================================================================== */
.p-vehicles {
    padding-bottom: 150px;
}

.p-vehicles__category {
    margin-bottom: 80px;
    text-align: left;
}

.p-vehicles__heading-box {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 30px;
}

.p-vehicles__heading-icon {
    width: 24px;
    height: auto;
}

.p-vehicles__heading {
    font-size: 24px;
    font-weight: bold;
    color: var(--color-primary-deep);
    border-bottom: 2px solid var(--color-accent);
    padding-bottom: 10px;
    display: inline-flex;
    align-items: baseline;
    gap: 15px;
}

.p-vehicles__heading span {
    font-size: 14px;
    color: var(--color-text-muted);
    font-family: 'Poppins', sans-serif;
    letter-spacing: 0.1em;
    font-weight: normal;
}

.p-vehicles__grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.p-vehicles__item {
    display: flex;
    flex-direction: column;
}

.p-vehicles__thumb {
    margin-bottom: 15px;
    overflow: hidden;
    aspect-ratio: 4 / 3;
    border-radius: 4px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
}

.p-vehicles__thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.p-vehicles__item:hover .p-vehicles__thumb img {
    transform: scale(1.05);
}

.p-vehicles__name {
    text-align: center;
    font-size: 16px;
    font-weight: bold;
    color: var(--color-text);
}

/* スマホ対応 */
@media screen and (max-width: 768px) {
    .p-vehicles {
        padding-bottom: 60px;
    }

    .p-vehicles__category {
        margin-bottom: 50px;
    }

    .p-vehicles__heading {
        font-size: 20px;
        flex-direction: column;
        gap: 5px;
        align-items: flex-start;
    }

    .p-vehicles__grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
    }

    .p-vehicles__name {
        font-size: 13px;
    }
}