/* =========================================================
   ROOT
========================================================= */

:root {

    --black: #111111;
    --dark: #171717;
    --dark-2: #202020;

    --white: #ffffff;
    --off-white: #f7f7f5;
    --gray-50: #f2f2f0;
    --gray-100: #e9e9e6;
    --gray-300: #c9c9c5;
    --gray-500: #777772;
    --gray-700: #444440;

    --yellow: #d8b600;
    --yellow-light: #f1d83a;

    --max-width: 1320px;

    --header-height: 88px;

    --ease: cubic-bezier(.22,.61,.36,1);
}


/* =========================================================
   RESET
========================================================= */

*,
*::before,
*::after {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    padding: 0;

    background: var(--white);
    color: var(--black);

    font-family:
        "Noto Sans JP",
        "Inter",
        sans-serif;

    line-height: 1.8;

    overflow-x: hidden;
}

body.menu-open {
    overflow: hidden;
}

img {
    display: block;
    width: 100%;
}

a {
    color: inherit;
    text-decoration: none;
}

button {
    font: inherit;
}

::selection {
    background: var(--black);
    color: var(--white);
}


/* =========================================================
   COMMON
========================================================= */

.container {
    width: min(
        calc(100% - 80px),
        var(--max-width)
    );

    margin-inline: auto;
}

.section {
    position: relative;
    padding: 150px 0;
}

.section-heading {
    display: grid;

    grid-template-columns: 100px 1fr;

    gap: 30px;

    margin-bottom: 90px;
}

.section-number {
    font-family: "Inter", sans-serif;

    font-size: 14px;
    font-weight: 600;

    letter-spacing: .1em;

    color: var(--yellow);

    padding-top: 7px;
}

.section-label {
    display: block;

    margin-bottom: 18px;

    font-family: "Inter", sans-serif;

    font-size: 11px;
    font-weight: 700;

    letter-spacing: .22em;

    color: var(--gray-500);
}

.section-heading h2 {
    margin: 0;

    font-size: clamp(36px, 4vw, 64px);

    line-height: 1.25;

    letter-spacing: -.04em;

    font-weight: 700;
}


/* =========================================================
   LOADER
========================================================= */

.page-loader {
    position: fixed;

    inset: 0;

    z-index: 9999;

    display: flex;

    align-items: center;
    justify-content: center;

    background: var(--black);

    transition:
        opacity .8s var(--ease),
        visibility .8s;
}

.page-loader.loaded {
    opacity: 0;
    visibility: hidden;
}

.loader-inner {
    width: 220px;
}

.loader-line {
    display: block;

    width: 100%;
    height: 1px;

    background: rgba(255,255,255,.2);

    overflow: hidden;

    position: relative;
}

.loader-line::after {
    content: "";

    position: absolute;

    top: 0;
    left: 0;

    width: 35%;
    height: 100%;

    background: var(--yellow);

    animation: loader 1.2s ease infinite;
}

.loader-text {
    display: block;

    margin-top: 15px;

    color: rgba(255,255,255,.6);

    font-family: "Inter", sans-serif;

    font-size: 9px;

    letter-spacing: .2em;
}

@keyframes loader {

    0% {
        transform: translateX(-100%);
    }

    100% {
        transform: translateX(400%);
    }

}


/* =========================================================
   HEADER
========================================================= */

.site-header {

    position: fixed;

    top: 0;
    left: 0;

    width: 100%;

    height: var(--header-height);

    z-index: 1000;

    color: var(--white);

    transition:
        background .35s ease,
        color .35s ease,
        box-shadow .35s ease;
}

.site-header.scrolled {

    color: var(--black);

    background:
        rgba(255,255,255,.94);

    backdrop-filter:
        blur(18px);

    box-shadow:
        0 1px 0 rgba(0,0,0,.08);
}

.header-inner {

    width:
        min(
            calc(100% - 80px),
            1440px
        );

    height: 100%;

    margin-inline: auto;

    display: flex;

    align-items: center;

    justify-content: space-between;
}

.header-logo {
    width: 115px;
}

.header-logo img {
  width: 100%;

  max-height: 45px;

  object-fit: contain;

  object-position: left center;
}

.desktop-nav {

    display: flex;

    align-items: center;

    gap: 34px;

    height: 100%;

    font-family: "Inter", sans-serif;

    font-size: 11px;

    font-weight: 600;

    letter-spacing: .12em;
}

.desktop-nav > a,
.nav-parent {

    position: relative;

    display: flex;

    align-items: center;

    height: 100%;
}

.desktop-nav > a::after,
.nav-parent::after {

    content: "";

    position: absolute;

    left: 0;
    bottom: 25px;

    width: 0;
    height: 1px;

    background: currentColor;

    transition:
        width .3s var(--ease);
}

.desktop-nav > a:hover::after,
.nav-parent:hover::after,
.desktop-nav > a.active::after {

    width: 100%;
}

.nav-dropdown {

    position: relative;

    height: 100%;
}

.nav-parent span {
    margin-left: 7px;
}

.dropdown-menu {

    position: absolute;

    top: 75px;
    left: -20px;

    width: 180px;

    padding: 12px;

    background:
        rgba(255,255,255,.98);

    color: var(--black);

    box-shadow:
        0 20px 50px
        rgba(0,0,0,.12);

    opacity: 0;

    visibility: hidden;

    transform:
        translateY(10px);

    transition:
        opacity .25s ease,
        visibility .25s ease,
        transform .25s ease;
}

.nav-dropdown:hover .dropdown-menu {

    opacity: 1;

    visibility: visible;

    transform:
        translateY(0);
}

.dropdown-menu a {

    display: block;

    padding: 13px 12px;

    font-size: 10px;

    letter-spacing: .08em;

    transition:
        background .2s ease,
        padding-left .2s ease;
}

.dropdown-menu a:hover,
.dropdown-menu a.active {

    background:
        var(--gray-50);

    padding-left: 18px;
}


/* =========================================================
   MENU TOGGLE
========================================================= */

.menu-toggle {
    display: none;

    width: 42px;
    height: 42px;

    padding: 0;

    border: 0;

    background: transparent;

    cursor: pointer;

    flex-direction: column;

    justify-content: center;

    gap: 6px;
}

.menu-toggle span {

    display: block;

    width: 26px;
    height: 1px;

    margin-left: auto;

    background: currentColor;

    transition:
        transform .3s ease,
        opacity .3s ease;
}

.menu-toggle.active span:nth-child(1) {
    transform:
        translateY(7px)
        rotate(45deg);
}

.menu-toggle.active span:nth-child(2) {
    opacity: 0;
}

.menu-toggle.active span:nth-child(3) {
    transform:
        translateY(-7px)
        rotate(-45deg);
}


/* =========================================================
   MOBILE MENU
========================================================= */

.mobile-menu {

    position: fixed;

    inset: 0;

    z-index: 900;

    background: var(--black);

    color: var(--white);

    visibility: hidden;

    opacity: 0;

    transition:
        opacity .4s ease,
        visibility .4s ease;
}

.mobile-menu.active {

    visibility: visible;
    opacity: 1;
}

.mobile-menu-inner {

    height: 100%;

    padding:
        calc(var(--header-height) + 50px)
        40px
        40px;

    display: flex;

    flex-direction: column;
}

.mobile-menu-label {

    margin-bottom: 45px;

    color: var(--gray-500);

    font-family: "Inter", sans-serif;

    font-size: 10px;

    letter-spacing: .2em;
}

.mobile-menu nav {

    display: flex;

    flex-direction: column;

    gap: 8px;
}

.mobile-menu nav > a {

    display: flex;

    align-items: baseline;

    gap: 20px;

    padding: 8px 0;

    font-family: "Inter", sans-serif;

    font-size: clamp(28px, 8vw, 48px);

    font-weight: 600;

    letter-spacing: -.04em;
}

.mobile-menu nav > a span,
.mobile-submenu span {

    color: var(--yellow);

    font-size: 9px;

    letter-spacing: .08em;
}

.mobile-submenu {

    margin:
        -2px
        0
        18px
        48px;

    display: flex;

    flex-direction: column;

    gap: 3px;
}

.mobile-submenu a {

    display: flex;

    gap: 15px;

    align-items: center;

    padding: 5px 0;

    color: var(--gray-500);

    font-size: 13px;
}

.mobile-submenu a.current {
    color: var(--white);
}

.mobile-menu-footer {

    margin-top: auto;

    padding-top: 30px;

    border-top:
        1px solid rgba(255,255,255,.12);

    display: flex;

    justify-content: space-between;

    color: var(--gray-500);

    font-family: "Inter", sans-serif;

    font-size: 8px;

    letter-spacing: .15em;
}


/* =========================================================
   HERO
========================================================= */

.electrical-hero {

    position: relative;

    min-height: 780px;

    height: 100vh;

    max-height: 1000px;

    overflow: hidden;

    background: var(--black);

    color: var(--white);
}

.hero-bg {

    position: absolute;

    inset: 0;

    background-image:
        url("https://www.ag-inc.net/image/1.png");

    background-size: cover;

    background-position: center;

    transform: scale(1.04);

    animation: heroZoom 12s ease-out forwards;
}

@keyframes heroZoom {

    from {
        transform: scale(1.08);
    }

    to {
        transform: scale(1);
    }

}

.hero-overlay {

    position: absolute;

    inset: 0;

    background:
        linear-gradient(
            90deg,
            rgba(0,0,0,.86) 0%,
            rgba(0,0,0,.68) 38%,
            rgba(0,0,0,.32) 65%,
            rgba(0,0,0,.7) 100%
        );
}


/* =========================================================
   HERO ENERGY LINES
   ※ テキストの右側だけに限定
========================================================= */

.hero-energy {

    position: absolute;

    top: 0;
    right: 0;

    width: 43%;
    height: 100%;

    z-index: 2;

    pointer-events: none;

    overflow: hidden;
}

.energy-line {

    position: absolute;

    height: 1px;

    background:
        linear-gradient(
            90deg,
            transparent,
            rgba(255,255,255,.15),
            rgba(255,220,60,.9),
            rgba(255,255,255,.1),
            transparent
        );

    transform-origin: left center;

    opacity: .8;

    filter:
        drop-shadow(0 0 5px rgba(255,210,50,.5));

}

.energy-line-1 {

    width: 80%;

    top: 38%;

    left: 10%;

    transform:
        rotate(-25deg);

    animation:
        energyMove1 5s ease-in-out infinite;
}

.energy-line-2 {

    width: 100%;

    top: 57%;

    left: 0;

    transform:
        rotate(20deg);

    animation:
        energyMove2 7s ease-in-out infinite;
}

.energy-line-3 {

    width: 65%;

    top: 72%;

    left: 22%;

    transform:
        rotate(-35deg);

    animation:
        energyMove3 6s ease-in-out infinite;
}

@keyframes energyMove1 {

    0%,100% {
        opacity: .25;
        transform:
            translateX(10%)
            rotate(-25deg);
    }

    50% {
        opacity: .9;
        transform:
            translateX(-5%)
            rotate(-25deg);
    }

}

@keyframes energyMove2 {

    0%,100% {
        opacity: .2;
        transform:
            translateX(-10%)
            rotate(20deg);
    }

    50% {
        opacity: .7;
        transform:
            translateX(5%)
            rotate(20deg);
    }

}

@keyframes energyMove3 {

    0%,100% {
        opacity: .2;
    }

    50% {
        opacity: .75;
    }

}

.energy-node {

    position: absolute;

    width: 5px;
    height: 5px;

    border-radius: 50%;

    background: var(--yellow);

    box-shadow:
        0 0 15px rgba(255,215,50,.8);

    animation: nodePulse 2.5s ease-in-out infinite;
}

.node-1 {
    top: 39%;
    left: 31%;
}

.node-2 {
    top: 56%;
    left: 63%;
    animation-delay: .7s;
}

.node-3 {
    top: 72%;
    left: 45%;
    animation-delay: 1.2s;
}

@keyframes nodePulse {

    0%,100% {
        opacity: .3;
        transform: scale(.7);
    }

    50% {
        opacity: 1;
        transform: scale(1.4);
    }

}


/* =========================================================
   HERO CONTENT
========================================================= */

.hero-container {

    position: relative;

    z-index: 5;

    height: 100%;

    display: flex;

    align-items: center;
}

.hero-content {

    width: 58%;

    padding-top: 50px;
}

.hero-eyebrow {

    display: flex;

    align-items: center;

    gap: 13px;

    margin-bottom: 30px;

    color: rgba(255,255,255,.65);

    font-family: "Inter", sans-serif;

    font-size: 10px;

    font-weight: 600;

    letter-spacing: .2em;
}

.hero-eyebrow span {

    width: 28px;
    height: 1px;

    background: var(--yellow);
}

.hero-content h1 {

    margin: 0;

    font-size: clamp(52px, 6vw, 94px);

    line-height: 1.13;

    letter-spacing: -.06em;

    font-weight: 500;
}

.hero-content h1 strong {
    font-weight: 800;
}

.hero-description {

    margin:
        38px
        0
        0;

    color: rgba(255,255,255,.75);

    font-size: 16px;

    line-height: 2;
}

.hero-en {

    margin-top: 50px;

    color: rgba(255,255,255,.22);

    font-family: "Inter", sans-serif;

    font-size: 11px;

    line-height: 1.6;

    letter-spacing: .28em;

    font-weight: 600;
}

.hero-scroll {

    position: absolute;

    bottom: 45px;
    left: 40px;

    z-index: 5;

    display: flex;

    align-items: center;

    gap: 15px;

    color: rgba(255,255,255,.5);

    font-family: "Inter", sans-serif;

    font-size: 8px;

    letter-spacing: .2em;
}

.hero-scroll i {

    display: block;

    width: 45px;
    height: 1px;

    background: rgba(255,255,255,.3);

    position: relative;
}

.hero-scroll i::after {

    content: "";

    position: absolute;

    left: 0;
    top: 0;

    width: 15px;
    height: 1px;

    background: var(--yellow);

    animation: scrollLine 2s ease infinite;
}

@keyframes scrollLine {

    0% {
        transform: translateX(0);
    }

    100% {
        transform: translateX(30px);
    }

}


/* =========================================================
   INTRO
========================================================= */

.intro-section {
    background: var(--white);
}

.intro-grid {

    display: grid;

    grid-template-columns:
        1.35fr
        .65fr;

    gap: 120px;

    align-items: start;
}

.intro-lead .large-text {

    margin: 0 0 35px;

    font-size: clamp(24px, 2.5vw, 36px);

    line-height: 1.7;

    letter-spacing: -.03em;

    font-weight: 600;
}

.intro-lead > p:not(.large-text) {

    max-width: 680px;

    margin: 0;

    color: var(--gray-500);

    font-size: 14px;
}

.intro-side {

    padding-top: 15px;
}

.technical-box {

    position: relative;

    padding: 40px;

    min-height: 300px;

    background: var(--gray-50);

    border:
        1px solid var(--gray-100);

    overflow: hidden;
}

.technical-box::before {

    content: "";

    position: absolute;

    width: 100px;
    height: 100px;

    top: -50px;
    right: -50px;

    border:
        1px solid var(--gray-300);

    border-radius: 50%;
}

.technical-box span {

    display: block;

    color: var(--gray-500);

    font-family: "Inter", sans-serif;

    font-size: 9px;

    letter-spacing: .2em;
}

.technical-box strong {

    display: block;

    margin-top: 40px;

    font-family: "Inter", sans-serif;

    font-size: 22px;

    line-height: 1.35;

    letter-spacing: -.03em;
}

.technical-line {

    width: 50px;
    height: 2px;

    margin: 35px 0 18px;

    background: var(--yellow);
}

.technical-box small {

    color: var(--gray-500);

    font-family: "Inter", sans-serif;

    font-size: 8px;

    letter-spacing: .15em;
}


/* =========================================================
   SERVICES
========================================================= */

.service-area {

    background: var(--off-white);

    overflow: hidden;
}

.circuit-bg {

    position: absolute;

    inset: 0;

    opacity: .45;

    background-image:
        linear-gradient(
            90deg,
            transparent 49.9%,
            rgba(0,0,0,.04) 50%,
            transparent 50.1%
        ),
        linear-gradient(
            0deg,
            transparent 49.9%,
            rgba(0,0,0,.04) 50%,
            transparent 50.1%
        );

    background-size:
        80px 80px;

    pointer-events: none;
}

.service-grid {

    position: relative;

    display: grid;

    grid-template-columns:
        repeat(2, 1fr);

    gap: 1px;

    background: var(--gray-300);

    border:
        1px solid var(--gray-300);
}

.service-card {

    position: relative;

    min-height: 380px;

    padding: 42px;

    background: var(--white);

    overflow: hidden;

    transition:
        transform .5s var(--ease),
        background .4s ease,
        color .4s ease;
}

.service-card:hover {

    z-index: 2;

    background: var(--black);

    color: var(--white);

    transform: translateY(-6px);
}

.service-number {

    position: absolute;

    top: 30px;
    right: 35px;

    color: var(--gray-300);

    font-family: "Inter", sans-serif;

    font-size: 10px;

    letter-spacing: .15em;
}

.service-card:hover .service-number {
    color: rgba(255,255,255,.2);
}

.service-icon {

    width: 65px;
    height: 65px;

    margin-bottom: 55px;

    color: var(--black);

    transition:
        color .4s ease,
        transform .5s var(--ease);
}

.service-card:hover .service-icon {

    color: var(--yellow);

    transform: scale(1.08);
}

.service-icon svg {

    width: 100%;
    height: 100%;
}

.service-content span {

    display: block;

    margin-bottom: 12px;

    color: var(--gray-500);

    font-family: "Inter", sans-serif;

    font-size: 9px;

    letter-spacing: .17em;
}

.service-card:hover .service-content span {
    color: rgba(255,255,255,.5);
}

.service-content h3 {

    margin: 0 0 18px;

    font-size: 26px;

    line-height: 1.35;

    letter-spacing: -.03em;
}

.service-content p {

    max-width: 480px;

    margin: 0;

    color: var(--gray-500);

    font-size: 13px;
}

.service-card:hover .service-content p {
    color: rgba(255,255,255,.62);
}

.service-arrow {

    position: absolute;

    right: 38px;
    bottom: 35px;

    color: var(--gray-500);

    font-family: "Inter", sans-serif;

    font-size: 20px;

    transition:
        transform .35s ease,
        color .35s ease;
}

.service-card:hover .service-arrow {

    color: var(--yellow);

    transform: translateX(8px);
}


/* =========================================================
   DETAILS
========================================================= */

.details-section {
    background: var(--white);
}

.details-list {

    display: flex;

    flex-direction: column;

    gap: 150px;
}

.detail-item {

    display: grid;

    grid-template-columns:
        1.1fr
        .9fr;

    gap: 100px;

    align-items: center;
}

.detail-item.reverse {
    grid-template-columns:
        .9fr
        1.1fr;
}

.detail-item.reverse .detail-image {
    order: 2;
}

.detail-item.reverse .detail-content {
    order: 1;
}

.detail-image {

    position: relative;

    height: 550px;

    overflow: hidden;

    background: var(--gray-100);
}

.detail-image::after {

    content: "";

    position: absolute;

    inset: 0;

    background:
        linear-gradient(
            135deg,
            transparent 60%,
            rgba(0,0,0,.15)
        );
}

.detail-image img {

    height: 100%;

    object-fit: cover;

    transition:
        transform 1s var(--ease);
}

.detail-item:hover .detail-image img {
    transform: scale(1.05);
}

.detail-content span {

    display: block;

    margin-bottom: 20px;

    color: var(--yellow);

    font-family: "Inter", sans-serif;

    font-size: 10px;

    font-weight: 600;

    letter-spacing: .16em;
}

.detail-content h3 {

    margin: 0 0 28px;

    font-size: clamp(32px, 3.5vw, 50px);

    line-height: 1.3;

    letter-spacing: -.04em;
}

.detail-content p {

    max-width: 520px;

    margin: 0;

    color: var(--gray-500);

    font-size: 14px;

    line-height: 2.1;
}

.detail-line {

    width: 80px;
    height: 1px;

    margin-top: 40px;

    background: var(--black);
}


/* =========================================================
   PROJECTS
========================================================= */

.projects-section {
    background: var(--off-white);
}

.projects-grid {

    display: grid;

    grid-template-columns:
        1.2fr
        .8fr;

    gap: 30px;

    align-items: start;
}

.project-card {

    background: var(--white);
}

.project-card.large {
    margin-top: 70px;
}

.project-image {

    position: relative;

    height: 460px;

    overflow: hidden;
}

.project-card.large .project-image {
    height: 580px;
}

.project-image img {

    width: 100%;
    height: 100%;

    object-fit: cover;

    transition:
        transform 1s var(--ease);
}

.project-card:hover .project-image img {
    transform: scale(1.05);
}

.project-overlay {

    position: absolute;

    inset: 0;

    background:
        linear-gradient(
            to top,
            rgba(0,0,0,.75),
            transparent 60%
        );
}

.project-meta {

    position: absolute;

    left: 35px;
    right: 35px;
    bottom: 30px;

    color: var(--white);
}

.project-meta span {

    display: block;

    margin-bottom: 10px;

    color: rgba(255,255,255,.55);

    font-family: "Inter", sans-serif;

    font-size: 9px;

    letter-spacing: .15em;
}

.project-meta h3 {

    margin: 0;

    font-size: 25px;

    line-height: 1.4;
}

.project-description {

    padding: 30px 35px 35px;

    color: var(--gray-500);

    font-size: 13px;

    line-height: 2;
}


/* =========================================================
   QUALIFICATIONS
========================================================= */

.qualification-section {
    background: var(--black);

    color: var(--white);
}

.qualification-layout {

    display: grid;

    grid-template-columns:
        .8fr
        1.2fr;

    gap: 150px;
}

.qualification-heading h2 {

    margin: 0 0 30px;

    font-size: clamp(40px, 4vw, 62px);

    line-height: 1.25;

    letter-spacing: -.05em;
}

.qualification-heading p {

    margin: 0;

    max-width: 420px;

    color: rgba(255,255,255,.5);

    font-size: 13px;
}

.qualification-heading .section-label {
    color: var(--yellow);
}

.qualification-list {

    border-top:
        1px solid rgba(255,255,255,.2);
}

.qualification-row {

    display: flex;

    align-items: center;

    justify-content: space-between;

    min-height: 125px;

    padding: 20px 0;

    border-bottom:
        1px solid rgba(255,255,255,.2);
}

.qualification-name {

    font-size: 16px;

    font-weight: 500;
}

.qualification-row strong {

    font-family: "Inter", sans-serif;

    font-size: clamp(42px, 5vw, 68px);

    line-height: 1;

    font-weight: 500;

    letter-spacing: -.05em;
}

.qualification-row strong small {

    margin-left: 7px;

    font-size: 12px;

    font-weight: 500;

    letter-spacing: .05em;
}


/* =========================================================
   SAFETY
========================================================= */

.safety-section {

    background: var(--gray-50);

    overflow: hidden;
}

.safety-grid-bg {

    position: absolute;

    top: 0;
    right: 0;

    width: 45%;
    height: 100%;

    opacity: .5;

    background-image:
        linear-gradient(
            90deg,
            transparent 49.5%,
            rgba(0,0,0,.05) 50%,
            transparent 50.5%
        ),
        linear-gradient(
            transparent 49.5%,
            rgba(0,0,0,.05) 50%,
            transparent 50.5%
        );

    background-size: 70px 70px;
}

.safety-top {

    position: relative;

    margin-bottom: 90px;
}

.safety-top h2 {

    margin: 0;

    font-size: clamp(42px, 5vw, 72px);

    line-height: 1.2;

    letter-spacing: -.05em;
}

.safety-grid {

    position: relative;

    display: grid;

    grid-template-columns:
        repeat(3, 1fr);

    gap: 1px;

    background: var(--gray-300);
}

.safety-card {

    min-height: 360px;

    padding: 45px;

    background: var(--white);
}

.safety-number {

    display: block;

    margin-bottom: 55px;

    color: var(--yellow);

    font-family: "Inter", sans-serif;

    font-size: 11px;

    letter-spacing: .15em;
}

.safety-card h3 {

    margin: 0 0 25px;

    font-size: 29px;

    line-height: 1.35;

    letter-spacing: -.04em;
}

.safety-card p {

    margin: 0;

    color: var(--gray-500);

    font-size: 13px;

    line-height: 2;
}


/* =========================================================
   MESSAGE
========================================================= */

.message-section {

    background: var(--white);
}

.message-grid {

    display: grid;

    grid-template-columns:
        .4fr
        1.6fr;

    gap: 100px;
}

.message-label {

    padding-top: 8px;

    color: var(--yellow);

    font-family: "Inter", sans-serif;

    font-size: 11px;

    font-weight: 700;

    letter-spacing: .2em;
}

.message-content {

    max-width: 850px;
}

.message-content h2 {

    margin: 0 0 45px;

    font-size: clamp(38px, 5vw, 70px);

    line-height: 1.25;

    letter-spacing: -.055em;
}

.message-content p {

    max-width: 680px;

    margin: 0 0 25px;

    color: var(--gray-500);

    font-size: 14px;

    line-height: 2.2;
}

.message-sign {

    display: flex;

    flex-direction: column;

    margin-top: 60px;

    padding-top: 25px;

    border-top:
        1px solid var(--gray-300);
}

.message-sign strong {

    font-family: "Inter", sans-serif;

    font-size: 20px;

    letter-spacing: .08em;
}

.message-sign span {

    margin-top: 4px;

    color: var(--gray-500);

    font-family: "Inter", sans-serif;

    font-size: 8px;

    letter-spacing: .2em;
}


/* =========================================================
   CTA
========================================================= */

.electrical-cta {

    background: var(--dark);

    color: var(--white);

    overflow: hidden;
}

.cta-pattern {

    position: absolute;

    inset: 0;

    opacity: .25;

    background-image:
        linear-gradient(
            90deg,
            transparent 49.8%,
            rgba(255,255,255,.06) 50%,
            transparent 50.2%
        );

    background-size: 100px 100%;
}

.cta-inner {

    position: relative;

    max-width: 900px;
}

.cta-inner .section-label {
    color: var(--yellow);
}

.cta-inner h2 {

    margin: 0;

    font-size: clamp(42px, 5vw, 72px);

    line-height: 1.25;

    letter-spacing: -.05em;
}

.cta-inner > p {

    margin: 30px 0 50px;

    color: rgba(255,255,255,.5);

    font-size: 14px;
}

.cta-actions {

    display: flex;

    align-items: center;

    gap: 40px;
}

.cta-button {

    display: flex;

    align-items: center;

    justify-content: space-between;

    width: 280px;

    min-height: 65px;

    padding: 0 25px;

    border:
        1px solid rgba(255,255,255,.35);

    background: transparent;

    color: var(--white);

    font-size: 13px;

    transition:
        background .3s ease,
        color .3s ease,
        border-color .3s ease;
}

.cta-button:hover {

    background: var(--white);

    border-color: var(--white);

    color: var(--black);
}

.cta-button strong {

    color: var(--yellow);

    font-family: "Inter", sans-serif;

    font-size: 20px;
}

.cta-tel {

    display: flex;

    flex-direction: column;

    gap: 4px;

    font-family: "Inter", sans-serif;

    font-size: 20px;

    letter-spacing: .05em;
}

.cta-tel small {

    color: var(--gray-500);

    font-size: 8px;

    letter-spacing: .2em;
}


/* =========================================================
   FOOTER
========================================================= */

.site-footer {

    background: var(--white);

    color: var(--black);

    padding: 85px 0 30px;

    border-top:
        1px solid var(--gray-100);
}

.footer-main {

    display: grid;

    grid-template-columns:
        1fr
        1fr;

    gap: 100px;

    padding-bottom: 70px;

    border-bottom:
        1px solid var(--gray-100);
}

.footer-brand img {

    width: 120px;

    margin-bottom: 25px;
}

.footer-brand p {

    margin: 0;

    color: var(--gray-500);

    font-size: 12px;

    line-height: 2;
}

.footer-nav {

    display: grid;

    grid-template-columns:
        repeat(3, 1fr);

    gap: 30px;
}

.footer-nav > div {

    display: flex;

    flex-direction: column;

    align-items: flex-start;
}

.footer-nav span {

    margin-bottom: 20px;

    color: var(--gray-500);

    font-family: "Inter", sans-serif;

    font-size: 8px;

    letter-spacing: .18em;
}

.footer-nav a {

    margin-bottom: 10px;

    font-size: 11px;

    transition: opacity .2s ease;
}

.footer-nav a:hover {
    opacity: .5;
}

.footer-bottom {

    display: flex;

    justify-content: space-between;

    gap: 20px;

    padding-top: 25px;

    color: var(--gray-500);

    font-family: "Inter", sans-serif;

    font-size: 8px;

    letter-spacing: .04em;
}


/* =========================================================
   REVEAL ANIMATION
========================================================= */

.reveal {

    opacity: 0;

    transform:
        translateY(35px);

    transition:
        opacity .9s var(--ease),
        transform .9s var(--ease);
}

.reveal.visible {

    opacity: 1;

    transform:
        translateY(0);
}


/* =========================================================
   RESPONSIVE
========================================================= */

@media (max-width: 1100px) {

    :root {
        --header-height: 75px;
    }

    .desktop-nav {
        display: none;
    }

    .menu-toggle {
        display: flex;
    }

    .container {
        width: min(
            calc(100% - 50px),
            var(--max-width)
        );
    }

    .header-inner {
        width: calc(100% - 50px);
    }

    .hero-content {
        width: 65%;
    }

    .intro-grid {
        gap: 60px;
    }

    .detail-item,
    .detail-item.reverse {
        grid-template-columns: 1fr;
        gap: 50px;
    }

    .detail-item.reverse .detail-image,
    .detail-item.reverse .detail-content {
        order: initial;
    }

    .detail-image {
        height: 500px;
    }

    .qualification-layout {
        gap: 70px;
    }

}


@media (max-width: 800px) {

    .section {
        padding: 100px 0;
    }

    .section-heading {
        grid-template-columns: 55px 1fr;
        gap: 15px;

        margin-bottom: 60px;
    }

    .section-heading h2 {
        font-size: 38px;
    }

    .intro-grid {
        grid-template-columns: 1fr;
        gap: 50px;
    }

    .intro-side {
        padding-top: 0;
    }

    .service-grid {
        grid-template-columns: 1fr;
    }

    .service-card {
        min-height: 340px;
    }

    .projects-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .project-card.large {
        margin-top: 0;
    }

    .project-image,
    .project-card.large .project-image {
        height: 420px;
    }

    .qualification-layout {
        grid-template-columns: 1fr;
        gap: 70px;
    }

    .safety-grid {
        grid-template-columns: 1fr;
    }

    .message-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .footer-main {
        grid-template-columns: 1fr;
        gap: 60px;
    }

}


@media (max-width: 600px) {

    .container {
        width: calc(100% - 40px);
    }

    .header-inner {
        width: calc(100% - 40px);
    }

    .hero-content {
        width: 100%;
        padding-top: 20px;
    }

    .electrical-hero {
        min-height: 720px;
    }

    .hero-content h1 {
        font-size: clamp(44px, 12vw, 65px);
    }

    .hero-description {
        font-size: 14px;
    }

    /*
       スマホではラインを右下に限定。
       文字との重なりを防止。
    */
    .hero-energy {
        width: 100%;
        height: 42%;

        top: auto;
        bottom: 0;

        opacity: .65;
    }

    .energy-line-1 {
        top: 20%;
    }

    .energy-line-2 {
        top: 48%;
    }

    .energy-line-3 {
        top: 75%;
    }

    .hero-scroll {
        left: 20px;
        bottom: 25px;
    }

    .technical-box {
        min-height: 250px;
        padding: 30px;
    }

    .details-list {
        gap: 90px;
    }

    .detail-image {
        height: 350px;
    }

    .project-image,
    .project-card.large .project-image {
        height: 330px;
    }

    .project-meta {
        left: 25px;
        right: 25px;
        bottom: 25px;
    }

    .project-meta h3 {
        font-size: 20px;
    }

    .project-description {
        padding: 25px;
    }

    .qualification-row {
        min-height: 100px;
    }

    .qualification-row strong {
        font-size: 48px;
    }

    .safety-card {
        min-height: auto;
        padding: 35px;
    }

    .cta-actions {
        flex-direction: column;
        align-items: flex-start;
        gap: 30px;
    }

    .cta-button {
        width: 100%;
    }

    .footer-nav {
        grid-template-columns: 1fr 1fr;
        gap: 40px 20px;
    }

    .footer-bottom {
        flex-direction: column;
    }

}


/* =========================================================
   REDUCED MOTION
========================================================= */

@media (prefers-reduced-motion: reduce) {

    html {
        scroll-behavior: auto;
    }

    *,
    *::before,
    *::after {
        animation-duration: .01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: .01ms !important;
    }

}