/* ============================================================
   Design Tokens
   ============================================================ */
:root {
    /* --- Primitive: Navy scale --- */
    --navy-950: #000d1e;
    --navy-900: #001428;
    --navy-700: #001f3f;
    --navy-500: #0a3a6e;
    --navy-200: #b8cfe8;
    --navy-50:  #eef4fb;

    /* --- Primitive: Fire / Accent scale --- */
    --fire-700: #a83812;
    --fire-500: #d94a1c;
    --fire-300: #ff9a55;

    /* --- Primitive: Steel / Neutral scale --- */
    --steel-900: #0f172a;
    --steel-700: #334155;
    --steel-500: #64748b;
    --steel-300: #cbd5e1;
    --steel-200: #e2e8f0;
    --steel-100: #f1f5f9;
    --steel-50:  #f8fafc;

    /* --- Semantic: Brand --- */
    --color-brand:       var(--navy-700);
    --color-brand-dark:  var(--navy-900);
    --color-brand-hover: var(--navy-500);

    /* --- Semantic: Accent --- */
    --color-accent:      var(--fire-500);
    --color-accent-dark: var(--fire-700);

    /* --- Semantic: Text --- */
    --color-text:        var(--steel-900);
    --color-text-body:   var(--steel-700);
    --color-text-muted:  var(--steel-500);
    --color-text-invert: #ffffff;

    /* --- Semantic: Surface & Background --- */
    --color-surface:     #ffffff;
    --color-bg:          var(--steel-50);
    --color-bg-section:  var(--steel-100);
    --color-bg-dark:     var(--navy-700);

    /* --- Semantic: Border --- */
    --color-border:        var(--steel-200);
    --color-border-strong: var(--steel-300);

    /* --- Shadows (navy-tinted) --- */
    --shadow-sm: 0 1px 3px rgba(0, 31, 63, 0.08);
    --shadow-md: 0 4px 16px rgba(0, 31, 63, 0.12);
    --shadow-lg: 0 10px 32px rgba(0, 31, 63, 0.16);

    /* --- Border radius --- */
    --radius-sm:   4px;
    --radius-md:   8px;
    --radius-lg:   12px;
    --radius-full: 9999px;

    /* --- Transitions --- */
    --transition-ui:   0.2s ease;
    --transition-base: 0.3s ease;

    /* --- Typography --- */
    --font-body:    "Noto Sans JP", "Hiragino Kaku Gothic ProN", "Meiryo", sans-serif;
    --font-heading: "Zen Kaku Gothic Antique", "Hiragino Kaku Gothic ProN", "Meiryo", sans-serif;
}


/* ============================================================
   Base / Mobile first
   ============================================================ */

html {
    scroll-behavior: smooth;
}
body {
    font-family: var(--font-body);
    line-height: 1.8;
    color: var(--color-text-body);
    background-color: var(--color-bg);
}

h1, h2, h3 {
    font-family: var(--font-heading);
    font-weight: 900;
}

.container {
    width: 100%;
    margin: 0 auto;
    padding: 48px 16px;
}

.bg-light {
    background-color: var(--color-bg-section);
}

.bg-brand {
    background-color: var(--color-bg-dark);
    color: var(--color-text-invert);
}

br.pc_br { display: none; }

@media (min-width: 768px) {
    br.sp_br { display: none; }
    br.pc_br { display: block; }
}


/* --- Header --- */
header {
    position: fixed;
    top: 8px;
    left: 8px;
    right: 8px;
    background: rgba(0, 31, 63, 0);
    backdrop-filter: blur(16px);
    color: var(--color-text-invert);
    padding: 12px 0;
    border-radius: var(--radius-lg);
    border: 1px solid rgba(255, 255, 255, 0.12);
    box-shadow: none;
    z-index: 100;
    transition: background 0.35s ease, box-shadow 0.35s ease;
}

header.header--on-light {
    background: rgba(0, 31, 63, 0.82);
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.25);
}

header .container {
    max-width: none;
    padding: 0 16px;
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 0;
    font-family: var(--font-heading);
}

.header__burger {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 6px;
    width: 36px;
    height: 36px;
    color: inherit;
    flex-shrink: 0;
}

.header__burger span {
    display: block;
    width: 22px;
    height: 2px;
    background: currentColor;
    border-radius: 2px;
    transition: transform 0.3s ease, opacity 0.3s ease;
}

.header__burger[aria-expanded="true"] span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}

.header__burger[aria-expanded="true"] span:nth-child(2) {
    opacity: 0;
    transform: scaleX(0);
}

.header__burger[aria-expanded="true"] span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
}

header nav {
    width: 100%;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.35s ease;
    font-weight: 400;
}

header nav.is-open {
    max-height: 300px;
}

header h1 {
    font-size: clamp(0.96rem, 0.836rem + 0.528vw, 1.2rem);
    font-weight: 900;
    line-height: 1.4;
}

header h1 a {
    color: inherit;
    text-decoration: none;
    word-break: keep-all;
}

.header__brand {
    display: flex;
    align-items: center;
    gap: 14px;
}

.header__tagline {
    display: none;
    font-size: 0.68rem;
    line-height: 1.55;
    color: rgba(255, 255, 255, 0.72);
    border-left: 1px solid rgba(255, 255, 255, 0.3);
    padding-left: 14px;
}

nav ul {
    display: flex;
    flex-direction: column;
    gap: 0;
    padding: 8px 0 4px;
}

nav ul li a {
    display: block;
    color: var(--color-text-invert);
    text-decoration: none;
    font-size: 0.95rem;
    font-weight: 400;
    padding: 10px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.btn-small {
    background: var(--color-accent);
    padding: 6px 12px;
    border-radius: var(--radius-sm);
    text-align: center;
    font-weight: 500;
}


/* --- Hero --- */
.hero {
    position: relative;
    overflow: hidden;
    min-height: 100vh;
    min-height: 100svh;
    display: flex;
    align-items: flex-end;
    justify-content: flex-start;
    text-align: left;
    color: var(--color-text-invert);
    padding: 80px 24px 24px;
}

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

.hero__slider {
    position: absolute;
    inset: 0;
}

.hero__slide {
    position: absolute;
    inset: 0;
    background-size: cover;
    opacity: 0;
    transition: opacity 1.5s ease;
}

.hero__slide::before {
    content: "";
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.42);
}

.hero__slide--active {
    opacity: 1;
}

.hero-content {
    position: relative;
    z-index: 1;
    max-width: 700px;
}

.hero-catch {
    font-family: var(--font-heading);
    font-weight: 900;
    font-size: clamp(4.2rem, 7vw, 6rem);
    line-height: 1.15;
    letter-spacing: -0.03em;
    text-shadow: 0 2px 16px rgba(0, 0, 0, 0.5);
    writing-mode: vertical-rl;
    position: absolute;
    top: 90px;
    right: 24px;
    z-index: 1;
}

.hero h2 {
    font-family: var(--font-body);
    font-size: clamp(1.8rem, 2.2vw, 2.2rem);
    font-weight: 900;
    line-height: 1.4;
    text-shadow: 0 1px 6px rgba(0, 0, 0, 0.5);
    margin: 32px 0 0;
}

.hero-company {
    margin-top: 16px;
    font-family: var(--font-body);
    font-weight: 900;
    font-size: 0.9rem;
    letter-spacing: 0.1em;
    color: rgba(255, 255, 255, 0.72);
    text-shadow: 0 1px 4px rgba(0, 0, 0, 0.5);
}


/* --- Hero CTA --- */
.hero-cta {
    background: var(--color-brand);
    color: var(--color-text-invert);
}

.hero-cta .container {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 24px;
    padding-top: 48px;
    padding-bottom: 48px;
}

.hero-cta__copy span {
    display: inline-block;
}

.hero-cta__copy {
    font-size: clamp(1rem, 0.9rem + 0.44vw, 1.2rem);
    line-height: 1.7;
    color: rgba(255, 255, 255, 0.9);
}

.hero-cta .btn-large {
    margin-top: 0;
}


/* --- Buttons --- */
.btn-large {
    display: inline-block;
    background: var(--color-accent);
    color: var(--color-text-invert);
    padding: 14px 28px;
    text-decoration: none;
    border-radius: var(--radius-sm);
    font-weight: bold;
    font-size: clamp(0.82rem, 0.5rem + 0.75vw, 0.95rem);
    white-space: nowrap;
    margin-top: 24px;
    transition: background var(--transition-base), transform var(--transition-base);
    box-shadow: var(--shadow-md);
}

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


/* --- Section Title --- */
.section-title {
    text-align: center;
    margin-bottom: 32px;
}

.section-title h2 {
    font-size: clamp(2rem, 3vw, 3rem);
    letter-spacing: 0.02em;
    line-height: 1.2;
    font-weight: 900;
    color: var(--color-brand);
    position: relative;
    padding-bottom: 16px;
}

.section-title p {
    color: var(--color-text-muted);
    font-size: 0.75rem;
    letter-spacing: 0.25em;
    text-transform: uppercase;
    margin-top: 16px;
}

.section-title h2::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 48px;
    height: 4px;
    border-radius: 2px;
    background: var(--color-accent);
}


/* --- Features (Sticky Scroll) --- */
#features {
    background: var(--color-surface);
    height: 300vh;
    height: 300svh;
    position: relative;
}

.features-sticky {
    position: sticky;
    top: 0;
    height: 100vh;
    height: 100svh;
    display: flex;
}

.features-left {
    flex: 1 1 auto;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 100px 24px 80px 24px;
    margin-left: 30px;
    overflow: hidden;
}

.features-right {
    display: none;
}

.features-progress {
    position: absolute;
    left: 16px;
    top: 50%;
    transform: translateY(-50%);
    display: flex;
    flex-direction: column;
    gap: 0;
    z-index: 2;
}

.features-progress__bar {
    width: 24px;
    height: 44px;
    position: relative;
    background: transparent;
}

.features-progress__bar::after {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 1px;
    height: 100%;
    background: rgba(15, 23, 42, 0.1);
    transition: background 0.4s ease;
}

.features-progress__bar.is-active::after {
    background: rgba(15, 23, 42, 0.55);
}

.features-label {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-bottom: 64px;
    flex-shrink: 0;
}

.features-label__ja {
    font-family: var(--font-heading);
    font-size: 0.82rem;
    font-weight: 700;
    letter-spacing: 0.14em;
    color: var(--color-text-muted);
}

.features-label__en {
    font-size: 0.68rem;
    letter-spacing: 0.3em;
    text-transform: uppercase;
    color: var(--color-text-muted);
    opacity: 0.6;
    padding-left: 18px;
    border-left: 1px solid var(--color-border);
}

.features-panels {
    position: relative;
    min-height: 360px;
    flex-shrink: 0;
}

.features-panel {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    opacity: 0;
    transform: translateX(25%);
    transition: opacity 0.7s ease-out, transform 0.7s ease-out;
    pointer-events: none;
}

.features-panel.is-active {
    opacity: 1;
    transform: translateX(0);
    pointer-events: auto;
}

.features-panel.is-prev {
    opacity: 0;
    transform: translateX(-25%);
}

.fp__count {
    font-size: 14px;
    letter-spacing: 0.18em;
    color: var(--color-text-muted);
    font-family: var(--font-heading);
    font-weight: 400;
    margin-bottom: 32px;
    line-height: 1;
}

.fp__en {
    font-size: 14px;
    letter-spacing: 0.22em;
    font-weight: 500;
    color: var(--color-text-muted);
    opacity: 0.55;
    text-transform: uppercase;
    margin-bottom: 24px;
    line-height: 1;
}

.fp__title {
    font-family: var(--font-heading);
    font-size: clamp(2.4rem, 4vw, 4rem);
    font-weight: 700;
    line-height: 1.15;
    letter-spacing: 0.01em;
    color: var(--color-text);
    margin-bottom: 40px;
}

.fp__body {
    font-size: 1rem;
    line-height: 2;
    color: var(--color-text-body);
}


/* --- Services --- */
.services-kicker {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-bottom: 48px;
    flex-shrink: 0;
}

.services-kicker__ja {
    font-family: var(--font-heading);
    font-size: 0.82rem;
    font-weight: 700;
    letter-spacing: 0.14em;
    color: var(--color-text-muted);
}

.services-kicker__en {
    font-size: 0.68rem;
    letter-spacing: 0.3em;
    text-transform: uppercase;
    color: var(--color-text-muted);
    opacity: 0.6;
    padding-left: 18px;
    border-left: 1px solid var(--color-border);
}

.services-main__ja {
    font-family: var(--font-heading);
    font-size: clamp(2.8rem, 5vw, 5rem);
    font-weight: 700;
    line-height: 1.1;
    letter-spacing: 0.01em;
    color: var(--color-text-invert);
    margin-bottom: 20px;
}

.services-main__en {
    font-size: 14px;
    letter-spacing: 0.22em;
    font-weight: 500;
    color: var(--color-text-invert);
    opacity: 0.55;
    text-transform: uppercase;
}

.services-desc {
    font-size: 0.8rem;
    line-height: 2;
    color: rgba(255, 255, 255, 0.85);
    margin-top: 40px;
}

.services-divider {
    height: 1px;
    background: rgba(255, 255, 255, 0.12);
    margin: 56px 0;
}

.services-related__label {
    margin-bottom: 28px;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.services-related__label-ja::before {
    content: none;
}

.services-related__label-ja {
    font-family: var(--font-heading);
    font-size: 0.82rem;
    font-weight: 700;
    letter-spacing: 0.14em;
    color: var(--color-text-invert);
    opacity: 0.75;
}

.services-related__label-en {
    font-size: 11px;
    letter-spacing: 0.18em;
    font-weight: 500;
    color: var(--color-text-invert);
    opacity: 0.45;
    text-transform: uppercase;
}

.services-related__list {
    display: flex;
    flex-direction: column;
    list-style: none;
    gap: 28px;
    border-left: 1px solid rgba(255, 255, 255, 0.18);
    padding-left: 20px;
    margin-left: 16px;
}

.services-related__item {
    display: flex;
    flex-direction: column;
    gap: 5px;
    padding-left: 0.5em;
}

.services-related__name {
    font-family: var(--font-heading);
    font-size: clamp(1.2rem, 2vw, 1.8rem);
    font-weight: 600;
    line-height: 1.3;
    color: var(--color-text-invert);
    white-space: nowrap;
}

.services-related__desc {
    font-size: 0.78rem;
    letter-spacing: 0.04em;
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.45);
    padding-left: 1.4em;
    text-indent: -1.4em;
}

.services-related__desc > span {
    white-space: nowrap;
}

.services-related__desc::before {
    content: "— ";
}

.services-layout {
    display: flex;
    flex-direction: column;
}

.services-text-col {
    padding: 48px 16px;
}

.services-intro {
    display: flex;
    align-items: stretch;
    gap: 20px;
    margin-bottom: 40px;
}

.services-intro__text {
    flex: 1 1 65%;
    width: 65%;
}

.services-intro__image {
    flex: 0 0 35%;
    width: 35%;
    overflow: hidden;
}

.services-intro__image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.services-video-col {
    display: none;
}


/* --- Examples (加工例) --- */
#examples {
    background: var(--color-surface);
}

.examples-kicker {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
    margin-bottom: 64px;
}

.examples-kicker__ja {
    font-family: var(--font-heading);
    font-size: 0.82rem;
    font-weight: 700;
    letter-spacing: 0.14em;
    color: var(--color-text-muted);
}

.examples-kicker__en {
    font-size: 0.68rem;
    letter-spacing: 0.3em;
    text-transform: uppercase;
    color: var(--color-text-muted);
    opacity: 0.6;
    padding-left: 18px;
    border-left: 1px solid var(--color-border);
}

.examples-lead {
    max-width: 640px;
    margin: 0 auto 48px;
    font-size: 0.85rem;
    line-height: 2;
    color: var(--color-text-body);
    text-align: center;
}

.examples-grid {
    list-style: none;
    display: grid;
    grid-template-columns: 1fr;
    gap: 28px;
}

.examples-item {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.examples-item.is-visible {
    opacity: 1;
    transform: translateY(0);
}

.examples-item__link {
    display: block;
    width: 100%;
    background: none;
    border: none;
    padding: 0;
    cursor: pointer;
    text-align: left;
    font: inherit;
    color: inherit;
}

.examples-item__frame {
    position: relative;
    display: block;
    aspect-ratio: 1 / 1;
    overflow: hidden;
    border-radius: 6px;
    background: var(--color-bg-section);
}

.examples-item__frame img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.3s ease;
}

.examples-item__link:focus-visible .examples-item__frame img {
    transform: scale(1.02);
}

@media (hover: hover) {
    .examples-item__link:hover .examples-item__frame img {
        transform: scale(1.02);
    }
}

.examples-item__case {
    position: absolute;
    top: 0;
    left: 0;
    background: rgba(0, 31, 63, 0.88);
    color: #ffffff;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.08em;
    padding: 6px 12px;
    border-radius: 6px 0 6px 0;
}

@media (min-width: 768px) {
    .examples-item__case { font-size: 12px; }

    .examples-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 32px;
    }
}


/* --- Lightbox --- */
.lightbox {
    position: fixed;
    inset: 0;
    z-index: 200;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 13, 30, 0.92);
    padding: 24px;
}

.lightbox[hidden] {
    display: none;
}

.lightbox__figure {
    max-width: 900px;
    width: 100%;
    margin: 0;
    text-align: center;
}

.lightbox__img {
    display: block;
    width: 100%;
    max-height: 78vh;
    object-fit: contain;
    border-radius: 6px;
}

.lightbox__close,
.lightbox__nav {
    position: absolute;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 9999px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.6);
    color: #fff;
    cursor: pointer;
    transition: background 0.2s ease;
    line-height: 1;
}

.lightbox__close:hover,
.lightbox__nav:hover {
    background: rgba(255, 255, 255, 0.2);
}

.lightbox__close {
    top: 20px;
    right: 20px;
    width: 40px;
    height: 40px;
    font-size: 20px;
}

.lightbox__nav {
    top: 50%;
    transform: translateY(-50%);
    width: 48px;
    height: 48px;
}

.lightbox__nav--prev { left: 16px; }
.lightbox__nav--next { right: 16px; }

@media (min-width: 768px) {
    .lightbox__close { top: 32px; right: 32px; }
    .lightbox__nav--prev { left: 32px; }
    .lightbox__nav--next { right: 32px; }
}


/* --- Company --- */
#company {
    background: var(--color-bg-section);
}

.company-kicker {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
    margin-bottom: 64px;
}

.company-kicker__ja {
    font-family: var(--font-heading);
    font-size: 0.82rem;
    font-weight: 700;
    letter-spacing: 0.14em;
    color: var(--color-text-muted);
}

.company-kicker__en {
    font-size: 0.68rem;
    letter-spacing: 0.3em;
    text-transform: uppercase;
    color: var(--color-text-muted);
    opacity: 0.6;
    padding-left: 18px;
    border-left: 1px solid var(--color-border);
}

.company-story {
    max-width: 640px;
    margin: 0 auto 72px;
    font-size: 0.85rem;
    line-height: 2;
    color: var(--color-text-body);
    text-align: center;
}


.company-info {
    max-width: 640px;
    margin: 0 auto 72px;
}

.company-info__row {
    display: flex;
    align-items: baseline;
    gap: 32px;
    padding: 14px 0;
    border-bottom: 1px solid var(--color-border);
}

.company-info__row:last-child {
    border-bottom: none;
}

.company-info__label {
    font-size: 0.75rem;
    letter-spacing: 0.06em;
    color: var(--color-text-muted);
    flex: 0 0 80px;
}

.company-info__value {
    font-size: 0.9rem;
    line-height: 1.7;
    color: var(--color-text-body);
    letter-spacing: 0.01em;
}

.company-info__row--equip {
    align-items: flex-start;
    gap: 12px;
}

.company-equip {
    list-style: none;
    width: 100%;
}

.company-equip__item {
    display: grid;
    grid-template-columns: 1fr auto;
    column-gap: 5em;
    row-gap: 1px;
    padding: 6px 0;
    border-bottom: 1px solid var(--color-border);
    font-size: 0.82rem;
}

.company-equip__item:last-child {
    border-bottom: none;
}

.company-equip__name {
    grid-column: 1;
    grid-row: 1;
    font-weight: 600;
    color: var(--color-text);
    line-height: 1.5;
}

.company-equip__spec {
    grid-column: 1;
    grid-row: 2;
    font-size: 0.73rem;
    color: var(--color-text-muted);
    line-height: 1.5;
}

.company-equip__qty {
    grid-column: 2;
    grid-row: 1 / span 2;
    align-self: center;
    font-size: 0.78rem;
    color: var(--color-text-muted);
    white-space: nowrap;
}

.company-equip__item--group {
    display: block;
    padding: 6px 0;
    border-bottom: 1px solid var(--color-border);
}

.company-equip__item--group .company-equip__name {
    font-size: 0.82rem;
    margin-bottom: 4px;
}

.company-equip__sub {
    list-style: none;
    padding-left: 0.75em;
    border-left: 2px solid var(--color-border);
}

.company-equip__sub-item {
    display: flex;
    justify-content: space-between;
    gap: 10px;
    padding: 2px 0;
    font-size: 0.78rem;
    color: var(--color-text-muted);
}

.company-equip__sub-name {
    color: var(--color-text-body);
}

@media (min-width: 768px) {
    .company-info__row--equip { gap: 32px; }
}

.company-map {
    max-width: 640px;
    margin: 0 auto;
    overflow: hidden;
    border-radius: 4px;
}

.company-map__iframe {
    width: 100%;
    height: 360px;
    border: 0;
    display: block;
}

@media (min-width: 768px) {
    .company-map__iframe { height: 420px; }
}


/* --- Contact --- */
.contact-area {
    background: var(--navy-950);
    color: var(--color-text-invert);
    text-align: center;
}

.contact-area .container {
    padding-top: 100px;
    padding-bottom: 100px;
}

.contact-heading {
    font-size: clamp(1.6rem, 2.4vw, 2.2rem);
    font-weight: 700;
    line-height: 1.4;
    letter-spacing: 0.01em;
    margin-bottom: 20px;
}

.contact-sub {
    font-size: 0.95rem;
    line-height: 1.6;
    opacity: 0.75;
    margin-bottom: 48px;
}

.contact-disclaimer {
    font-size: 0.8rem;
    line-height: 1.6;
    opacity: 0.65;
    margin-top: 3.2em;
}

.contact-action {
    margin-bottom: 36px;
}

.contact-btn {
    display: inline-block;
    padding: 16px 36px;
    background: var(--fire-500);
    color: #fff;
    border-radius: 4px;
    text-decoration: none;
    font-size: 0.95rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    transition: background var(--transition-ui);
}

.contact-btn:hover {
    background: var(--fire-700);
}

.contact-note {
    font-size: 0.75rem;
    line-height: 1.8;
    opacity: 0.65;
    max-width: 60ch;
    margin: 0 auto 0;
}


/* --- Footer --- */
footer {
    text-align: center;
    padding: 8px 16px;
    font-size: 0.8rem;
    background: var(--navy-900);
    color: var(--steel-300);
}
footer a {
    text-decoration: none;
}


/* --- Scroll Top --- */
.scroll-top {
    position: fixed;
    right: 24px;
    bottom: 16px;
    width: 40px;
    height: 40px;
    border-radius: 9999px;
    background: rgba(0, 31, 63, 0.35);
    border: 1px solid rgba(255, 255, 255, 0.12);
    color: rgba(255, 255, 255, 0.8);
    font-size: 14px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transform: translateY(10px);
    pointer-events: none;
    transition: opacity 0.3s ease, transform 0.3s ease, background 0.2s ease;
    z-index: 99;
    line-height: 1;
}

.scroll-top.is-visible {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
}

.scroll-top.is-visible:hover {
    background: rgba(0, 31, 63, 0.55);
    transform: translateY(-2px);
}


/* --- SP Fixed CTA --- */
.sp-cta {
    position: fixed;
    left: 20px;
    bottom: 16px;
    padding: 0 18px;
    height: 40px;
    line-height: 40px;
    background: rgba(168, 56, 18, 0.95);
    color: #fff;
    border-radius: 9999px;
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-decoration: none;
    opacity: 0;
    transform: translateY(8px);
    pointer-events: none;
    transition: opacity 0.3s ease, transform 0.3s ease;
    z-index: 98;
}

.sp-cta.is-visible {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
}

@media (min-width: 768px) {
    .sp-cta {
        display: none;
    }
}


/* ============================================================
   Tablet (768px+)
   ============================================================ */
@media (min-width: 768px) {
    .services-desc { font-size: 1rem; }

    .hero-catch {
        writing-mode: horizontal-tb;
        position: relative;
        z-index: 1;
        top: auto;
        right: auto;
        margin-bottom: 20px;
        white-space: nowrap;
    }

    .hero {
        flex-direction: column;
        align-items: flex-start;
        justify-content: flex-end;
    }

    .container {
        padding: 60px 24px;
    }

    header .container {
        padding: 0 24px;
        flex-wrap: nowrap;
    }

    .header__burger {
        display: none;
    }

    header nav {
        width: auto;
        max-height: none;
        overflow: visible;
    }

    .header__tagline {
        display: block;
        white-space: nowrap;
    }

    nav ul {
        flex-direction: row;
        align-items: center;
        gap: 0;
        padding: 0;
    }

    nav ul li {
        margin-left: 20px;
    }

    nav ul li a {
        display: inline;
        padding: 0;
        border-bottom: none;
        font-size: clamp(0.78rem, 0.4rem + 0.65vw, 0.9rem);
        white-space: nowrap;
    }

    .hero {
        padding: 90px 48px 72px;
    }

    .hero-cta .container {
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
        text-align: left;
        padding-top: 40px;
        padding-bottom: 40px;
    }

    .features-left {
        flex: 0 0 65%;
        width: 65%;
        padding: 100px 48px 80px 48px;
    }

    .features-progress {
        display: none;
    }

    .features-left {
        margin-left: 0;
    }

    .features-right {
        display: flex;
        flex: 0 0 35%;
        width: 35%;
        position: relative;
        align-items: center;
        justify-content: center;
        overflow: hidden;
    }

    .features-right__line {
        position: absolute;
        left: 0;
        top: 20%;
        height: 60%;
        width: 1px;
        background: var(--color-border);
    }

    .features-right__nums {
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 20px;
    }

    .fp-deco-num {
        font-family: var(--font-heading);
        font-size: clamp(3rem, 5vw, 5rem);
        font-weight: 900;
        letter-spacing: 0.06em;
        color: var(--steel-300);
        opacity: 0.15;
        transition: opacity 0.7s ease-out;
        line-height: 1;
    }

    .fp-deco-num.is-active {
        opacity: 1;
    }

    .services-layout {
        flex-direction: row;
        min-height: 100vh;
        min-height: 100svh;
    }

    .services-kicker {
        margin-bottom: 80px;
    }

    .services-text-col {
        flex: 1 1 auto;
        padding: 80px 48px;
    }

    .services-intro {
        display: block;
    }

    .services-intro__image {
        display: none;
    }

    .services-video-col {
        display: block;
        flex: 0 0 40%;
        width: 40%;
        position: relative;
        overflow: hidden;
        border: 24px solid var(--color-bg-dark);
    }

    .services-video-col img {
        position: absolute;
        inset: 0;
        width: 100%;
        height: 100%;
        object-fit: cover;
        object-position: center;
    }

    /*.services-video-col::after {
        content: "";
        position: absolute;
        inset: 0;
        z-index: 1;
        background-image: radial-gradient(circle, rgba(0, 31, 63, 0.3) 1px, transparent 1px);
        background-size: 4px 4px;
        pointer-events: none;
    }*/

    .services-related__label-ja::before {
        content: "―";
        color: rgba(255, 255, 255, 0.25);
        font-size: 0.9rem;
        letter-spacing: 0;
        margin-right: 8px;
    }

    .services-related__list {
        flex-direction: row;
        gap: 0;
        justify-content: space-between;
        align-items: flex-start;
        border-left: none;
        padding-left: 0;
    }


    .scroll-top {
        bottom: 24px;
    }
}


/* ============================================================
   Desktop (1100px+)
   ============================================================ */
@media (min-width: 1100px) {
    .container {
        max-width: 1100px;
        padding: 96px 20px;
    }

    .hero {
        padding: 80px 80px 80px;
    }

    .btn-large {
        padding: 15px 40px;
        margin-top: 30px;
    }

    .features-left {
        padding-left: max(48px, calc((100vw - 1100px) / 2 + 48px));
    }

    .services-text-col {
        padding-left: max(48px, calc((100vw - 1100px) / 2 + 48px));
    }

    .section-title {
        margin-bottom: 40px;
    }

    .contact-area {
        padding: 80px 20px;
    }

    .contact-buttons {
        margin-top: 30px;
    }

    .btn-tel,
    .btn-mail {
        padding: 15px 30px;
        margin: 0 10px;
    }
}


/* ============================================================
   Scroll Animations
   ============================================================ */
[data-animate] {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

[data-animate].is-visible {
    opacity: 1;
    transform: translateY(0);
}

[data-delay="1"] { transition-delay: 0.10s; }
[data-delay="2"] { transition-delay: 0.20s; }
[data-delay="3"] { transition-delay: 0.30s; }
[data-delay="4"] { transition-delay: 0.40s; }

@media (prefers-reduced-motion: reduce) {
    [data-animate],
    .examples-item {
        opacity: 1;
        transform: none;
        transition: none;
    }

    .features-panel,
    .fp-deco-num {
        transition: none;
    }
}
