/* ========================================
   リセット & 基本設定
======================================== */
*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    -webkit-tap-highlight-color: transparent;
}

html {
    font-size: 16px;
    scroll-behavior: smooth;
}

body {
    background-color: var(--color-white);
    font-family: var(--font-ja);
    color: var(--color-text);
    line-height: var(--body-line-height-sp);
    letter-spacing: var(--body-letter-spacing);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-y: scroll;
    overflow-x: hidden;
}

/* トップページ以外はヘッダーの高さ分のパディングを追加 */
/* FVを持たないページ用（今は全てのページがFVを持つのでコメントアウト） */
/* body:not(.page-index):not(.page-company):not(.page-electrical):not(.page-other-works):not(.page-works):not(.page-contact) {
    padding-top: var(--header-height-sp);
}

@media (min-width: 768px) {
    body:not(.page-index):not(.page-company):not(.page-electrical):not(.page-other-works):not(.page-works):not(.page-contact) {
        padding-top: var(--header-height-pc);
    }
} */

a {
    color: inherit;
    text-decoration: none;
}


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

ul, ol {
    list-style: none;
}

button {
    border: none;
    background: none;
    cursor: pointer;
    font-family: inherit;
}


/* ========================================
   CSS変数
======================================== */
:root {
    /* カラー - 青空イメージ（3段階の青） */
    --color-primary: #1976D2;      /* 標準の青（信頼感） */
    --color-secondary: #0288D1;    /* やや明るい青（親しみやすさ） */
    --color-third: #039BE5;        /* 明るい水色（爽やかさ） */

    --color-accent: #e7c248;
    
    --color-sky-blue: #4A90E2;     /* スカイブルー */
    --color-text: #333333;
    --color-white: #ffffff;
    --color-border: #F0F1F1;
    --color-gray: #6A6A6A;
    --color-dark-gray: #5E5E5E;
    --color-medium-gray: #898989;
    --color-contact-bg: #1c3152;
    --color-footer-bg: #2A2A2A;
    --color-light-gray: #F5F5F5;
    --color-lighter-gray: #e8e8e8;
    --color-light-blue-bg: #F0F7FF;  /* 薄い青背景 */
    
    /* ボタン用の濃い青 */
    --color-button-hover: #1565B0;
    
    /* セクション背景色 */
    --color-section-light: #F0F7FF;
    --color-section-white: #ffffff;
    
    /* フォント */
    --font-ja: 'Noto Sans JP', 'BIZ UDPGothic', 'Hiragino Sans', Meiryo, sans-serif;
    --font-en: 'Inter', 'Arial', sans-serif;
    
    /* レイアウト */
    --header-height-sp: 64px;
    --header-height-pc: 88px;
    --header-padding-sp: 1.25rem;
    --header-padding-pc: 2rem;
    --header-border-radius-sp: 1.5rem;
    --header-border-radius-pc: 2rem;
    --header-max-width: 75rem;
    --footer-border-radius-sp: 2.5rem;
    --footer-border-radius-pc: 3rem;
    --container-width-sp: 576px;
    --container-width-pc: 1300px;
    --section-content-width-sm: 576px;
    --section-content-width-lg: 1024px;

    --company-section-content-width-sm: 744px;
    --company-section-content-width-lg: 1024px;
    
    /* タイポグラフィ */
    --heading-line-height: 1.4;
    --heading-letter-spacing: 0.05em;
    
    --body-font-size-sp: 1.1rem;
    --body-font-size-pc: clamp(1.1rem, 2vw, 1.2rem);
    --body-line-height-sp: 1.8;
    --body-line-height-pc: 1.9;
    --body-letter-spacing: 0.05em;
    
    --section-title-en-sp: 0.75rem;
    --section-title-en-pc: 1rem;
    --section-title-ja-sp: 1.75rem;
    --section-title-ja-pc: 2.5rem;
    --section-title-letter-spacing-en: 0.08em;
    --section-title-letter-spacing-ja: 0.05em;
    
    --button-font-size-sp: 1rem;
    --button-font-size-pc: 1.1rem;
    --button-padding-sp: 1.25rem 2.5rem 1.25rem 1.5rem;
    --button-padding-pc: 1.5rem 3rem 1.5rem 1.75rem;
    --button-letter-spacing: 0.05em;
    --button-border-radius: 0.25rem;
    
    /* ボーダーラディウス */
    --border-radius-section: clamp(3.25rem, 6.5vw, 6rem);
    --border-radius-section-negative: clamp(-6rem, -6.5vw, -3.25rem);
    
    /* スペーシング */
    --padding-sp: 4rem 1.25rem;
    --padding-pc:  2rem;
    --section-padding-top-sp: 4rem;
    --section-padding-bottom-sp: 4rem;
    --section-padding-top-pc: 6rem;
    --section-padding-bottom-pc: 6rem;
    --section-gap-sp: 2rem;
    --section-gap-pc: 3rem;
}

@media (min-width: 768px) {
    body {
        line-height: var(--body-line-height-pc);
    }
}

/* ========================================
   ヘッダー
======================================== */
.header {
    width: 100%;
    height: var(--header-height-sp);
    background: var(--color-white);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05), inset 0 -1px 0 0 transparent;
    z-index: 1100;
    position: fixed;
    top: 0;
    left: 0;
    transition: background-color 0.3s ease, box-shadow 0.3s ease;
}

/* ヘッダーの左側に青い背景エリア（ロゴ用） */
.header-logo {
    height: 100%;  /* ヘッダーの高さいっぱい */
    display: flex;
    align-items: center;
    flex-shrink: 0;
    position: relative;
    padding-left: var(--header-padding-sp);
    padding-right: 20px;
    margin-left: calc(-1 * var(--header-padding-sp));
    background: var(--color-primary);
    box-shadow: inset -1px 0 0 0 transparent;
    transition: background-color 0.3s ease, opacity 0.3s ease, box-shadow 0.3s ease;
}

.header-logo:hover {
    opacity: 0.8;
}

@media (min-width: 576px) {
    .header-logo {
        width: 180px;
        justify-content: flex-start;
        padding-left: 1rem;
        padding-right: 1rem;
        margin-left: calc(-1 * var(--header-padding-sp));
    }
}

@media (min-width: 680px) {
    .header-logo {
        width: 200px;
        padding-left: 1.25rem;
        padding-right: 1.25rem;
    }
}

@media (min-width: 768px) {
    .header-logo {
        width: 240px;
        padding-left: 1.5rem;
        padding-right: 1.5rem;
        margin-left: calc(-1 * var(--header-padding-pc));
    }
}

@media (min-width: 1024px) {
    .header-logo {
        width: 320px;
        padding-left: 2rem;
        padding-right: 2rem;
    }
}

@media (min-width: 1200px) {
    .header-logo {
        width: 360px;
        padding-left: 2.25rem;
        padding-right: 2.25rem;
    }
}

.header-logo img {
    height: 36px;
    width: auto;
    /* iOS/Safariでの黒い縁取り対策（最低限） */
    -webkit-backface-visibility: hidden;
    backface-visibility: hidden;
}

@media (max-width: 575px) {
    .header-logo img {
        content: url('../images/nakamura-denko-white.png');
    }
}

@media (min-width: 576px) {
    .header-logo img {
        height: auto;
        width: 100%;
        max-width: 160px;
    }
}

@media (min-width: 680px) {
    .header-logo img {
        max-width: 180px;
    }
}

@media (min-width: 768px) {
    .header-logo img {
        max-width: 200px;
    }
}

@media (min-width: 1024px) {
    .header-logo img {
        max-width: 240px;
    }
}

@media (min-width: 1200px) {
    .header-logo img {
        max-width: 260px;
    }
}

/* トップページのヘッダー：初期状態（FV上） */
body.page-index .header {
    background: transparent;
    box-shadow: inset 0 -1px 0 0 rgba(255, 255, 255, 0.5);
}

/* トップページでFV上にいるときは透明 */
body.page-index .header-logo {
    background: transparent;
    box-shadow: inset -1px 0 0 0 rgba(255, 255, 255, 0.5);
}

/* スクロール後は青背景を表示 */
body.page-index .header.header-scrolled .header-logo {
    background: var(--color-primary);
    box-shadow: inset -1px 0 0 0 transparent;
}

body.page-index .header .nav-item a {
    color: var(--color-white);
    transition: color 0.3s ease;
}

body.page-index .header .menu-toggle span {
    background: var(--color-white);
    transition: background-color 0.3s ease;
}

body.page-index .header:not(.header-scrolled) .header-contact {
    background: transparent;
    border: 1px solid var(--color-white);
    transition: opacity 0.3s ease, transform 0.3s ease, border-color 0.3s ease, background-color 0.3s ease;
    opacity: 1;
}

body.page-index .header:not(.header-scrolled) .header-contact:hover {
    opacity: 0.8;
}

body.page-index .header:not(.header-scrolled) .header-contact-icon {
    border-right: 1px solid var(--color-white);
}

body.page-index .header .header-contact-icon-svg {
    color: var(--color-white);
    transition: color 0.3s ease;
}

body.page-index .header .header-contact-text {
    color: var(--color-white);
    transition: color 0.3s ease;
}

/* トップページのヘッダー：スクロール後（FVを過ぎた） */
body.page-index .header.header-scrolled {
    background: var(--color-white);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05), inset 0 -1px 0 0 transparent;
}

body.page-index .header.header-scrolled .nav-item a {
    color: var(--color-text);
}

body.page-index .header.header-scrolled .nav-item a:hover {
    color: var(--color-primary);
}

body.page-index .header.header-scrolled .menu-toggle span {
    background: var(--color-primary);
}

body.page-index .header.header-scrolled .header-contact {
    background: transparent;
    border: 1px solid var(--color-primary);
    transition: opacity 0.3s ease, transform 0.3s ease, border-color 0.3s ease, background-color 0.3s ease;
    opacity: 1;
}

body.page-index .header.header-scrolled .header-contact:hover {
    opacity: 0.8;
}

body.page-index .header.header-scrolled .header-contact-icon {
    border-right: 1px solid var(--color-primary);
}

body.page-index .header.header-scrolled .header-contact-icon-svg {
    color: var(--color-primary);
}

body.page-index .header.header-scrolled .header-contact-text {
    color: var(--color-primary);
}

/* =========================================
   トップページ以外のページに同じスタイルを適用
========================================= */
/* 下記のページでpage-hero上にいるときのヘッダースタイル */
body.page-company .header:not(.header-scrolled),
body.page-electrical .header:not(.header-scrolled),
body.page-other-works .header:not(.header-scrolled),
body.page-works .header:not(.header-scrolled),
body.page-contact .header:not(.header-scrolled) {
    background: transparent;
    box-shadow: inset 0 -1px 0 0 rgba(255, 255, 255, 0.6);
}

body.page-company .header:not(.header-scrolled) .header-logo,
body.page-electrical .header:not(.header-scrolled) .header-logo,
body.page-other-works .header:not(.header-scrolled) .header-logo,
body.page-works .header:not(.header-scrolled) .header-logo,
body.page-contact .header:not(.header-scrolled) .header-logo {
    background: transparent;
    box-shadow: inset -1px 0 0 0 rgba(255, 255, 255, 0.6);
}

body.page-company .header:not(.header-scrolled) .nav-item a,
body.page-electrical .header:not(.header-scrolled) .nav-item a,
body.page-other-works .header:not(.header-scrolled) .nav-item a,
body.page-works .header:not(.header-scrolled) .nav-item a,
body.page-contact .header:not(.header-scrolled) .nav-item a {
    color: var(--color-white);
}

body.page-company .header:not(.header-scrolled) .menu-toggle span,
body.page-electrical .header:not(.header-scrolled) .menu-toggle span,
body.page-other-works .header:not(.header-scrolled) .menu-toggle span,
body.page-works .header:not(.header-scrolled) .menu-toggle span,
body.page-contact .header:not(.header-scrolled) .menu-toggle span {
    background: var(--color-white);
}

body.page-company .header:not(.header-scrolled) .header-contact,
body.page-electrical .header:not(.header-scrolled) .header-contact,
body.page-other-works .header:not(.header-scrolled) .header-contact,
body.page-works .header:not(.header-scrolled) .header-contact,
body.page-contact .header:not(.header-scrolled) .header-contact {
    background: transparent;
    border: 1px solid var(--color-white);
    transition: opacity 0.3s ease, transform 0.3s ease, border-color 0.3s ease, background-color 0.3s ease;
}

body.page-company .header:not(.header-scrolled) .header-contact:hover,
body.page-electrical .header:not(.header-scrolled) .header-contact:hover,
body.page-other-works .header:not(.header-scrolled) .header-contact:hover,
body.page-works .header:not(.header-scrolled) .header-contact:hover,
body.page-contact .header:not(.header-scrolled) .header-contact:hover {
    opacity: 0.8;
}

body.page-company .header:not(.header-scrolled) .header-contact-icon,
body.page-electrical .header:not(.header-scrolled) .header-contact-icon,
body.page-other-works .header:not(.header-scrolled) .header-contact-icon,
body.page-works .header:not(.header-scrolled) .header-contact-icon,
body.page-contact .header:not(.header-scrolled) .header-contact-icon {
    border-right: 1px solid var(--color-white);
}

body.page-company .header:not(.header-scrolled) .header-contact-text,
body.page-electrical .header:not(.header-scrolled) .header-contact-text,
body.page-other-works .header:not(.header-scrolled) .header-contact-text,
body.page-works .header:not(.header-scrolled) .header-contact-text,
body.page-contact .header:not(.header-scrolled) .header-contact-text {
    color: var(--color-white);
}

/* page-heroを過ぎた後のヘッダースタイル */
body.page-company .header.header-scrolled,
body.page-electrical .header.header-scrolled,
body.page-other-works .header.header-scrolled,
body.page-works .header.header-scrolled,
body.page-contact .header.header-scrolled {
    background: var(--color-white);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05), inset 0 -1px 0 0 transparent;
}

body.page-company .header.header-scrolled .header-logo,
body.page-electrical .header.header-scrolled .header-logo,
body.page-other-works .header.header-scrolled .header-logo,
body.page-works .header.header-scrolled .header-logo,
body.page-contact .header.header-scrolled .header-logo {
    background: var(--color-primary);
    box-shadow: inset -1px 0 0 0 transparent;
}

body.page-company .header.header-scrolled .nav-item a,
body.page-electrical .header.header-scrolled .nav-item a,
body.page-other-works .header.header-scrolled .nav-item a,
body.page-works .header.header-scrolled .nav-item a,
body.page-contact .header.header-scrolled .nav-item a {
    color: var(--color-text);
}

body.page-company .header.header-scrolled .nav-item a:hover,
body.page-electrical .header.header-scrolled .nav-item a:hover,
body.page-other-works .header.header-scrolled .nav-item a:hover,
body.page-works .header.header-scrolled .nav-item a:hover,
body.page-contact .header.header-scrolled .nav-item a:hover {
    color: var(--color-primary);
}

body.page-company .header.header-scrolled .menu-toggle span,
body.page-electrical .header.header-scrolled .menu-toggle span,
body.page-other-works .header.header-scrolled .menu-toggle span,
body.page-works .header.header-scrolled .menu-toggle span,
body.page-contact .header.header-scrolled .menu-toggle span {
    background: var(--color-primary);
}

body.page-company .header.header-scrolled .header-contact,
body.page-electrical .header.header-scrolled .header-contact,
body.page-other-works .header.header-scrolled .header-contact,
body.page-works .header.header-scrolled .header-contact,
body.page-contact .header.header-scrolled .header-contact {
    background: transparent;
    border: 1px solid var(--color-primary);
    transition: opacity 0.3s ease, transform 0.3s ease, border-color 0.3s ease, background-color 0.3s ease;
}

body.page-company .header.header-scrolled .header-contact:hover,
body.page-electrical .header.header-scrolled .header-contact:hover,
body.page-other-works .header.header-scrolled .header-contact:hover,
body.page-works .header.header-scrolled .header-contact:hover,
body.page-contact .header.header-scrolled .header-contact:hover {
    opacity: 0.8;
}

body.page-company .header.header-scrolled .header-contact-icon,
body.page-electrical .header.header-scrolled .header-contact-icon,
body.page-other-works .header.header-scrolled .header-contact-icon,
body.page-works .header.header-scrolled .header-contact-icon,
body.page-contact .header.header-scrolled .header-contact-icon {
    border-right: 1px solid var(--color-primary);
}

body.page-company .header.header-scrolled .header-contact-text,
body.page-electrical .header.header-scrolled .header-contact-text,
body.page-other-works .header.header-scrolled .header-contact-text,
body.page-works .header.header-scrolled .header-contact-text,
body.page-contact .header.header-scrolled .header-contact-text {
    color: var(--color-primary);
}

@media (min-width: 768px) {
    .header {
        height: var(--header-height-pc);
    }
}

.header-container {
    margin: 0 auto;
    padding: 0 var(--header-padding-sp);
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: relative;
}

@media (min-width: 768px) {
    .header-container {
        padding: 0 var(--header-padding-pc);
    }
}



/* ハンバーガーメニュー（SP） */
.menu-toggle {
    position: absolute;
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
    width: 3.5rem;
    height: 3.5rem;
    background: transparent;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-end;
    gap: 0.375rem;
    cursor: pointer;
    z-index: 1300;
    padding: 0;
    transition: opacity 0.3s ease;
}

@media (min-width: 768px) {
    .menu-toggle {
        right: 32px;
        width: 4rem;
        height: 4rem;
    }
}

@media (min-width: 1024px) {
    .menu-toggle {
        display: none;
    }
}

.menu-toggle span {
    width: 1.5rem;
    height: 2px;
    background: var(--color-primary);
    transition: all 0.3s ease;
    display: block;
    border-radius: 2px;
    /* iOS/Safariでのレンダリング最適化 */
    -webkit-backface-visibility: hidden;
    backface-visibility: hidden;
    transform: translateZ(0);
    -webkit-transform: translateZ(0);
}

@media (min-width: 768px) {
    .menu-toggle span {
        width: 2rem;
        height: 2px; /* 2.25pxから2pxに変更して整数値に */
    }
}

/* ナビゲーション（PC） */
.header-nav {
    display: none;
}

@media (min-width: 1024px) {
    .header-nav {
        display: block;
    }
}

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

.nav-item a {
    color: var(--color-text);
    font-size: 1rem;
    font-family: var(--font-ja);
    font-weight: 400;
    letter-spacing: 0.055em;
    transition: color 0.3s ease;
    white-space: nowrap;
}

.nav-item a:hover {
    color: var(--color-primary);
    opacity: 1;
}

/* PCナビゲーションリンクのホバーアニメーション（お問い合わせボタンを除く） */
@media (min-width: 1024px) {
    .nav-item a:not(.header-contact) {
        position: relative;
        display: inline-block;
    }
    
    .nav-item a:not(.header-contact)::after {
        content: '';
        position: absolute;
        bottom: -2px;
        left: 0;
        width: 100%;
        height: 1px;
        background: var(--color-primary);
        transform: scaleX(0);
        transform-origin: left;
        transition: transform 0.3s ease;
    }
    
    .nav-item a:not(.header-contact):hover::after {
        transform: scaleX(1);
    }
    
    /* 最上部にいるとき（header-scrolledクラスがない）：白線 */
    .header:not(.header-scrolled) .nav-item a:not(.header-contact)::after {
        background: var(--color-white);
    }
    
    /* スクロール後（header-scrolledクラスがある）：青線 */
    .header.header-scrolled .nav-item a:not(.header-contact)::after {
        background: var(--color-primary);
    }
}

/* お問い合わせボタン（PC） */
.header-contact {
    display: none;
}

@media (min-width: 1024px) {
    .header-contact {
        display: flex;
        align-items: center;
        gap: 0;
        padding: 0;
        height: 40px;
        background: transparent;
        border: 1px solid var(--color-primary);
        border-radius: 4px;
        cursor: pointer;
        transition: opacity 0.3s ease, transform 0.3s ease, border-color 0.3s ease, background-color 0.3s ease;
        text-decoration: none;
        opacity: 1;
    }
    
    .header-contact:hover {
        transform: translateY(-2px);
        opacity: 0.8;
    }
}

.header-contact-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 100%;
    border-right: 1px solid var(--color-primary);
    transition: border-color 0.3s ease;
    flex-shrink: 0;
    position: relative;
}

/* 青いアイコン（デフォルトで表示） */
.header-contact-icon-blue {
    width: 18px;
    height: 18px;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    opacity: 1;
    transition: opacity 0.3s ease;
}

/* 白いアイコン（デフォルトで非表示） */
.header-contact-icon-white {
    width: 18px;
    height: 18px;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    opacity: 0;
    transition: opacity 0.3s ease;
}

/* トップページ：FV上では白いアイコンを表示 */
body.page-index .header:not(.header-scrolled) .header-contact-icon-blue {
    opacity: 0;
}

body.page-index .header:not(.header-scrolled) .header-contact-icon-white {
    opacity: 1;
}

/* トップページ：スクロール後は青いアイコンを表示 */
body.page-index .header.header-scrolled .header-contact-icon-blue {
    opacity: 1;
}

body.page-index .header.header-scrolled .header-contact-icon-white {
    opacity: 0;
}

/* その他のページ：FV上では白いアイコンを表示 */
body.page-company .header:not(.header-scrolled) .header-contact-icon-blue,
body.page-electrical .header:not(.header-scrolled) .header-contact-icon-blue,
body.page-other-works .header:not(.header-scrolled) .header-contact-icon-blue,
body.page-works .header:not(.header-scrolled) .header-contact-icon-blue,
body.page-contact .header:not(.header-scrolled) .header-contact-icon-blue {
    opacity: 0;
}

body.page-company .header:not(.header-scrolled) .header-contact-icon-white,
body.page-electrical .header:not(.header-scrolled) .header-contact-icon-white,
body.page-other-works .header:not(.header-scrolled) .header-contact-icon-white,
body.page-works .header:not(.header-scrolled) .header-contact-icon-white,
body.page-contact .header:not(.header-scrolled) .header-contact-icon-white {
    opacity: 1;
}

/* その他のページ：スクロール後は青いアイコンを表示 */
body.page-company .header.header-scrolled .header-contact-icon-blue,
body.page-electrical .header.header-scrolled .header-contact-icon-blue,
body.page-other-works .header.header-scrolled .header-contact-icon-blue,
body.page-works .header.header-scrolled .header-contact-icon-blue,
body.page-contact .header.header-scrolled .header-contact-icon-blue {
    opacity: 1;
}

body.page-company .header.header-scrolled .header-contact-icon-white,
body.page-electrical .header.header-scrolled .header-contact-icon-white,
body.page-other-works .header.header-scrolled .header-contact-icon-white,
body.page-works .header.header-scrolled .header-contact-icon-white,
body.page-contact .header.header-scrolled .header-contact-icon-white {
    opacity: 0;
}

.header-contact-text {
    color: var(--color-primary);
    font-size: 0.875rem;
    font-family: var(--font-ja);
    font-weight: 500;
    letter-spacing: 0.03em;
    transition: color 0.3s ease;
    white-space: nowrap;
    padding: 0 16px;
}

/* モバイルメニューオーバーレイ */
.mobile-menu-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-secondary) 50%, var(--color-third) 100%);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
    z-index: 1200;
    overflow: hidden;
}

.mobile-menu-overlay.is-active {
    opacity: 1;
    visibility: visible;
}

.mobile-menu-close {
    position: fixed;
    right: 20px;
    top: calc(var(--header-height-sp) / 2);
    transform: translateY(-50%);
    width: 2rem;
    height: 2rem;
    background: transparent;
    border: none;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    justify-content: center;
    cursor: pointer;
    z-index: 1300;
    padding: 0;
}

@media (min-width: 768px) {
    .mobile-menu-close {
        top: calc(var(--header-height-pc) / 2);
        width: 4rem;
        height: 4rem;
        right: 32px;
    }
}

@media (min-width: 1024px) {
    .mobile-menu-close {
        display: none;
    }
}

.mobile-menu-close span {
    position: absolute;
    width: 1.75rem;
    height: 2.25px;
    background: var(--color-white);
    border-radius: 2px;
    transition: all 0.3s ease;
    display: block;
    /* iOS/Safariでのレンダリング最適化 */
    -webkit-backface-visibility: hidden;
    backface-visibility: hidden;
    transform: translateZ(0);
    -webkit-transform: translateZ(0);
}

@media (min-width: 768px) {
    .mobile-menu-close span {
        width: 2rem;
        height: 2px; /* 2.25pxから2pxに変更 */
    }
}

.mobile-menu-close span:nth-child(1) {
    transform: rotate(45deg);
}

.mobile-menu-close span:nth-child(2) {
    transform: rotate(-45deg);
}

body.menu-open .header-logo {
    opacity: 0;
    pointer-events: none;
}

body.menu-open .menu-toggle {
    opacity: 0;
    pointer-events: none;
}

.mobile-menu__inner {
    height: 100vh;
    padding: 1rem 1.25rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

@media (min-width: 768px) {
    .mobile-menu__inner {
        padding: 1rem 2rem;
    }
}


.mobile-menu__nav {
    width: 100%;
    max-width: 300px;
}

.mobile-menu__list {
    display: flex;
    flex-direction: column;
    gap: 0;
}

.mobile-menu__item {
    opacity: 0;
    transform: translateY(20px);
    padding: 8px 0;
}

.mobile-menu-overlay.is-active .mobile-menu__item {
    animation: fadeInUp 0.5s ease forwards;
}

.mobile-menu-overlay.is-active .mobile-menu__item:nth-child(1) { animation-delay: 0.1s; }
.mobile-menu-overlay.is-active .mobile-menu__item:nth-child(2) { animation-delay: 0.15s; }
.mobile-menu-overlay.is-active .mobile-menu__item:nth-child(3) { animation-delay: 0.2s; }
.mobile-menu-overlay.is-active .mobile-menu__item:nth-child(4) { animation-delay: 0.25s; }
.mobile-menu-overlay.is-active .mobile-menu__item:nth-child(5) { animation-delay: 0.3s; }
.mobile-menu-overlay.is-active .mobile-menu__item:nth-child(6) { animation-delay: 0.35s; }

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* リンクラッパー */
.mobile-menu__link-wrapper {
    display: flex;
    align-items: stretch;
    gap: 0;
}

/* リンク */
.mobile-menu__link {
    flex: 1;
    display: flex;
    align-items: stretch;
    justify-content: space-between;
    padding: 0;
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.8);
    border-radius: 0.25rem;
    color: var(--color-white);
    font-size: 1rem;
    font-family: var(--font-ja);
    font-weight: 400;
    letter-spacing: 0.05em;
    text-decoration: none;
    position: relative;
    overflow: hidden;
    transition: opacity 0.3s ease;
    min-height: 56px;
}

@media (min-width: 768px) {
    .mobile-menu__link {
        min-height: 64px;
        font-size: 1.1rem;
    }
}

.mobile-menu__link:hover {
    opacity: 1;
}

/* 塗りつぶしエフェクト用の背景 */
.mobile-menu__link-fill {
    position: absolute;
    left: 0;
    top: 0;
    right: clamp(2.5rem, 5vw, 3.5rem);
    height: 100%;
    background: var(--color-white);
    transform: translateX(-100%);
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 1;
    pointer-events: none;
}

.mobile-menu__link:hover .mobile-menu__link-fill {
    transform: translateX(0);
}

/* テキスト */
.mobile-menu__link-text {
    flex: 1;
    text-align: left;
    padding: clamp(0.75rem, 2vw, 1rem) clamp(1rem, 3vw, 1.5rem);
    display: flex;
    align-items: center;
    justify-content: flex-start;
    position: relative;
    z-index: 2;
    transition: color 0.3s ease;
    border-right: 1px solid rgba(255, 255, 255, 0.8);
}

.mobile-menu__link:hover .mobile-menu__link-text {
    color: var(--color-primary);
}

/* アイコンコンテナ */
.mobile-menu__link-icon {
    width: clamp(2.5rem, 5vw, 3.5rem);
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: clamp(0.75rem, 2vw, 1rem) clamp(0.5rem, 1vw, 0.75rem);
    position: relative;
    z-index: 2;
}

/* PNGアイコン */
.mobile-menu__icon-img {
    width: 16px;
    height: auto;
    opacity: 0;
    content: url('../images/nakamura-blue-denki.png');
    transition: opacity 0.3s ease, transform 0.3s ease;
}


.mobile-menu__link:hover .mobile-menu__icon-img {
    opacity: 0.9;
    content: url('../images/nakamura-white-denki.png');
}

/* 横線ラッパー */
.mobile-menu__icon-lines {
    position: relative;
    width: 0.5rem;
    flex-shrink: 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 0;
}

@media (min-width: 768px) {
    .mobile-menu__icon-lines {
        width: 0.75rem;
    }
}

/* 横線（上） */
.mobile-menu__icon-line-h1 {
    position: absolute;
    left: 0;
    top: 31%;
    width: 100%;
    height: 1px;
    background: rgba(255, 255, 255, 0.8);
    z-index: 3;
}

/* 横線（下） */
.mobile-menu__icon-line-h2 {
    position: absolute;
    left: 0;
    top: 69%;
    width: 100%;
    height: 1px;
    background: rgba(255, 255, 255, 0.8);
    z-index: 3;
}

@media (min-width: 1024px) {
    .mobile-menu-overlay {
        display: none;
    }
}

/* ========================================
   コンテナ
======================================== */
.container {
    max-width: var(--container-width-pc);
    margin: 0 auto;
    padding: 0 var(--padding-sp);
}

@media (min-width: 768px) {
    .container {
        padding: 0 var(--padding-pc);
    }
}

/* ========================================
   セクション
======================================== */

.sections-wrapper {
    display: flex;
    flex-direction: column;
    /* gap: 4rem; */
}

@media (min-width: 768px) {
    .sections-wrapper {
        /* gap: 6rem; */
    }
}

.section-inner {
    padding: 0 1.25rem;
    margin: 0 auto;
    width: 100%;
    max-width: var(--container-width-sp);
}

@media (min-width: 768px) {
    .section-inner {
        padding: 0 2rem;
        max-width: var(--container-width-pc);
    }
}

.section-title {
    font-size: var(--section-title-ja-sp);
    font-weight: 500;
    text-align: center;
    margin-bottom: 2rem;
    line-height: var(--heading-line-height);
    letter-spacing: var(--heading-letter-spacing);
}

@media (min-width: 768px) {
    .section-title {
        font-size: var(--section-title-ja-pc);
        margin-bottom: 3rem;
    }
}

.section-title-en {
    display: block;
    font-size: var(--section-title-en-sp);
    font-family: var(--font-en);
    font-weight: 400;
    color: var(--color-primary);
    margin-bottom: 0.5rem;
    letter-spacing: var(--section-title-letter-spacing-en);
}

@media (min-width: 768px) {
    .section-title-en {
        font-size: var(--section-title-en-pc);
    }
}

/* ========================================
   セクション区切り装飾
======================================== */
.section-divider {
    position: relative;
    width: 100%;
    margin-bottom: 2.5rem;
}

@media (min-width: 768px) {
    .section-divider {
        margin-bottom: 5rem;
    }
}

/* フッターのジグザグは上マージンなし、下マージンのみ */
.section-divider.divider-footer {
    margin-bottom: 2.5rem;
    margin-top: 0;
}

@media (min-width: 768px) {
    .section-divider.divider-footer {
        margin-bottom: 5rem;
    }
}

/* ========================================
   会社概要セクション用の電流装飾
======================================== */
/* 会社概要セクション上部の電流装飾 */
.company-intro-hero .section-divider:not(.section-divider-bottom) {
    margin-bottom: 3.25rem;
    /* ここにmarginなどのスタイルを記述 */
}

@media (min-width: 768px) {
    .company-intro-hero .section-divider:not(.section-divider-bottom) {
        margin-bottom: 5.25rem;
        /* ここにPC版のスタイルを記述 */
    }
}

/* 会社概要セクション下部の電流装飾 */
.company-intro-hero .section-divider-bottom {
    /* ここにmarginなどのスタイルを記述 */
    margin-top: 3.25rem!important;
}

@media (min-width: 768px) {
    .company-intro-hero .section-divider-bottom {
        /* ここにPC版のスタイルを記述 */

        margin-top: 5.25rem!important;
    }
}

/* ========================================
   フッターお問い合わせセクション用の電流装飾
======================================== */
/* フッターお問い合わせセクションの電流装飾 */
.contact-section .section-divider.divider-footer {
    margin-bottom: 2.25rem;
    /* ここにmarginなどのスタイルを記述 */
}

@media (min-width: 768px) {
    .contact-section .section-divider.divider-footer {
        margin-bottom: 4.5rem;
        /* ここにPC版のスタイルを記述 */
    }
}


.divider-svg {
    display: block;
    width: 100%;
    height: 34px;
    opacity: 0.25;
    visibility: hidden; /* 初期状態で完全に非表示 */
}

/* JavaScriptで準備完了後に表示 */
.divider-svg.ready {
    visibility: visible;
}

/* パスのアニメーション設定 */
.divider-path,
.divider-path-right,
.divider-path-footer {
    stroke-linejoin: round;
    stroke-linecap: round;
    stroke-dasharray: 1000;
    stroke-dashoffset: 1000;
    opacity: 0;
    transition: none; /* 初期状態ではtransitionなし */
}

/* JavaScriptでreadyクラス追加後にtransitionを有効化 */
.divider-path.ready,
.divider-path-right.ready,
.divider-path-footer.ready {
    opacity: 1;
    transition: stroke-dashoffset 1.5s cubic-bezier(0.4, 0, 0.2, 1); /* ここで有効化 */
}

/* transition無効化用クラス */
.section-divider.no-transition .divider-path,
.section-divider.no-transition .divider-path-right,
.section-divider.no-transition .divider-path-footer {
    transition: none !important;
}

/* ビューポートに入ったら線を描画 */
.section-divider.in-view .divider-path,
.section-divider.in-view .divider-path-right,
.section-divider.in-view .divider-path-footer {
    stroke-dashoffset: 0 !important;
}

/* 英語タイトルのアニメーション */
.section-title-en {
    position: relative;
    transition: color 0.6s ease 2.3s, background-color 0.6s ease 2.3s, padding 0.6s ease 2.3s; /* 線描画完了後に変化 */
    display: inline-block;
    --title-line-width: 0px; /* JavaScriptで設定される */
    padding: 0.5rem 1rem; /* 背景色用のパディング */
    border-radius: 0.25rem; /* ボタンと同じ角丸 */
}

/* ビューポートに入ったら背景色とテキスト色を変更 */
.section.in-view .section-title-en {
    background-color: var(--color-primary);
    color: var(--color-white);
}

/* 横線を引く演出（左寄せ：画面左端からタイトルの左側に線） */
.section-title-wrapper:not(.section-title-right) .section-title-en::before {
    content: '';
    position: absolute;
    left: calc(-1 * (var(--title-line-width) + 4px)); /* 画面左端に配置 */
    top: 50%;
    transform: translateY(-50%);
    width: 0;
    height: 2px;
    background: var(--color-primary);
    transition: width 0.8s ease 1.5s; /* セクション間装飾の後に開始 */
    opacity: 0.25;
}

/* ビューポートに入ったら線を引く（左寄せ） */
.section.in-view .section-title-wrapper:not(.section-title-right) .section-title-en::before {
    width: var(--title-line-width);
}

/* 横線を引く演出（右寄せ：タイトルの右側から画面右端に線） */
.section-title-right .section-title-en::after {
    content: '';
    position: absolute;
    right: calc(-1 * (var(--title-line-width) + 4px)); /* 画面右端に配置 */
    top: 50%;
    transform: translateY(-50%);
    width: 0;
    height: 2px;
    background: var(--color-primary);
    transition: width 0.8s ease 1.5s; /* セクション間装飾の後に開始 */
    opacity: 0.25;
}

/* ビューポートに入ったら線を引く（右寄せ） */
.section.in-view .section-title-right .section-title-en::after {
    width: var(--title-line-width);
}


/* ========================================
   セクション共通スタイル
======================================== */

/* セクションコンテナ */
.section-container {
    position: relative;
    z-index: 2;
    padding: 0 1.25rem;
    width: 100%;
    margin: 0 auto;
    max-width: var(--container-width-sp);
}

@media (min-width: 768px) {
    .section-container {
        padding: 0 2rem;
        max-width: var(--container-width-pc);
    }
}

/* タイトルラッパー */
.section-title-wrapper {
    margin-bottom: 2rem;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.5rem;
}

@media (min-width: 768px) {
    .section-title-wrapper {
        margin-bottom: 3rem;
    }
}

/* タイトル右寄せ */
.section-title-right {
    align-items: flex-end;
}

/* 英語タイトル */
.section-title-en {
    color: var(--color-primary);
    font-size: var(--section-title-en-sp);
    font-family: var(--font-en);
    font-weight: 400;
    letter-spacing: var(--section-title-letter-spacing-en);
}

@media (min-width: 768px) {
    .section-title-en {
        font-size: var(--section-title-en-pc);
    }
}

/* 日本語タイトル */
.section-title-ja {
    color: var(--color-text);
    font-size: var(--section-title-ja-sp);
    font-family: var(--font-ja);
    font-weight: 500;
    letter-spacing: var(--section-title-letter-spacing-ja);
}

@media (min-width: 768px) {
    .section-title-ja {
        font-size: var(--section-title-ja-pc);
    }
}

/* コンテンツラッパー */
.section-contents-wrapper {
    display: flex;
    flex-direction: column;
}

@media (min-width: 768px) {
    .section-contents-wrapper {
        flex-direction: row;
        align-items: center;
    }
}

/* モディファイア：常にcolumn方向 */
.section-contents-wrapper--column {
    flex-direction: column;
    gap: 1rem;
}

/* モディファイア：常にrow方向 */
.section-contents-wrapper--row {
    flex-direction: column;
    align-items: center;
    gap: 2rem;
}

@media (min-width: 768px) {
    .section-contents-wrapper--row {
        flex-direction: row;
    }
}

/* テキスト/コンテンツ部分 */
.section-text,
.section-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    width: 100%;
}

.section-text p,
.section-content p {
    color: var(--color-text);
    font-size: var(--body-font-size-sp);
    line-height: var(--body-line-height-sp);
    letter-spacing: var(--body-letter-spacing);
}

@media (min-width: 768px) {
    .section-text p,
    .section-content p {
        font-size: var(--body-font-size-pc);
        line-height: var(--body-line-height-pc);
    }
}

/* 画像部分 */
.section-image {
    flex: 1;
    border-radius: 0.5rem;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    position: relative;
}

.section-image img {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
    aspect-ratio: 16 / 10;
}

@media (min-width: 768px) {
    .section-image img {
        aspect-ratio: 4 / 3;
    }
}

/* リスト */
.section-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.section-list li {
    color: var(--color-text);
    font-size: var(--body-font-size-sp);
    line-height: var(--body-line-height-sp);
    letter-spacing: var(--body-letter-spacing);
    padding-left: 2.5rem;
    position: relative;
}

@media (min-width: 768px) {
    .section-list li {
        font-size: var(--body-font-size-pc);
        line-height: var(--body-line-height-pc);
    }
}

.section-list li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 1.5rem;
    height: 1.5rem;
    background-color: var(--color-primary);
    border-radius: 50%;
    background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="white" stroke-width="3" stroke-linecap="round" stroke-linejoin="round"><polyline points="20 6 9 17 4 12"/></svg>');
    background-size: 70%;
    background-position: center calc(50% + 1px);
    background-repeat: no-repeat;
}

/* ボタン配置 */
.section-button-wrapper {
    margin-top: 2rem;
    display: flex;
    justify-content: flex-end;
}

@media (min-width: 768px) {
    .section-button-wrapper {
        margin-top: 3rem;
    }
}

.section-button-left {
    justify-content: flex-start;
}

/* ========================================
   サブセクションコンテナ（共通）
======================================== */
.subsection-container {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 1.5rem;
    border-radius: 1rem;
    padding: 2.5rem 1.25rem;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
    max-width: var(--section-content-width-lg);
    width: 100%;
    margin: 0 auto;
}



/* 英語ラベル（左上に配置） */
.subsection-label {
    align-self: flex-start;
    font-family: 'Inter', sans-serif;
    font-size: 0.975rem;
    font-weight: 400;
    letter-spacing: 0.125em;
    color: var(--color-primary);
    opacity: 0.5;
    text-transform: uppercase;
    padding: 0.25rem 0.5rem;
    border-radius: 0.25rem;
    border: 1px solid var(--color-primary);
}

/* サブセクションヘッダー（ラベルとタイトルを囲む） */
.subsection-header {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    align-self: center;
    gap: 0.825rem;
}

@media (min-width: 576px) {
    .subsection-container {
        padding: 2.5rem 2rem;
    }
}

@media (min-width: 768px) {
    .subsection-container {
        padding: 3.5rem;
        gap: 2rem;
        max-width: 768px;
    }
    
    .subsection-label {
        font-size: 1.125rem;
    }
    
}

@media (min-width: 1024px) {
    .subsection-container {
        padding: 3.5rem 3rem;
        max-width: var(--section-content-width-lg);
    }
}

@media (min-width: 1200px) {
    .subsection-container {
        padding: 3.5rem 3rem;
    }

    .subsection-label {
        font-size: 1.25rem;
    }
}

/* 青背景サブセクション */
.subsection-blue {
    background: var(--color-section-light);
}

/* 白背景サブセクション */
.subsection-white {
    background: var(--color-white);
}

/* サブセクションタイトル */
.subsection-title {
    color: var(--color-text);
    font-size: 1.5rem;
    font-weight: 600;
    text-align: center;
    margin-bottom: 1rem;
    letter-spacing: 0.05em;
    position: relative;
    padding-bottom: 0.5rem;
    display: inline-block;
    width: auto;
}

@media (min-width: 768px) {
    .subsection-title {
        font-size: 1.875rem;
        margin-bottom: 1.5rem;
        padding-bottom: 0.625rem;
    }
}

/* サブセクションタイトル下線装飾（テキスト幅に合わせる） */
.subsection-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 3px;
    background: var(--color-primary);
    border-radius: 2px;
    transition: width 0.8s cubic-bezier(0.4, 0, 0.2, 1) 0.5s;
}

/* ビューポートに入ったら下線を描画 */
.subsection-container.in-view .subsection-title::after {
    width: 100%;
}

/* ========================================
   ボタン
======================================== */
.btn {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: var(--button-padding-sp);
    font-size: var(--button-font-size-sp);
    font-weight: 500;
    text-align: center;
    border-radius: 999px;
    letter-spacing: var(--button-letter-spacing);
    border: none;
    cursor: pointer;
    overflow: visible;
    transition: transform 0.3s ease, box-shadow 0.3s ease, background-color 0.3s ease;
}

@media (min-width: 768px) {
    .btn {
        padding: var(--button-padding-pc);
        font-size: var(--button-font-size-pc);
    }
}

.btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    opacity: 1;
}

.btn span {
    position: relative;
    display: flex;
    align-items: center;
    line-height: 1;
    transition: color 0.3s ease;
}

.btn::after {
    content: '›';
    font-size: 1.25rem;
    line-height: 1;
    position: absolute;
    right: 1rem;
    top: 50%;
    transform: translateY(calc(-50% - 2px));
    transition: transform 0.3s ease;
}

@media (min-width: 768px) {
    .btn::after {
        font-size: 1.5rem;
        right: 1.25rem;
        transform: translateY(calc(-50% - 3px));
    }
}

.btn:hover::after {
    transform: translateY(calc(-50% - 2px)) translateX(4px);
}

@media (min-width: 768px) {
    .btn:hover::after {
        transform: translateY(calc(-50% - 3px)) translateX(5px);
    }
}

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

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

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

.btn-outline:hover {
    background: var(--color-primary);
    color: var(--color-white);
}

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

.btn-white:hover {
    background: var(--color-light-gray);
}

/* ========================================
   フッターラッパー
======================================== */
.footer-wrapper {
    background: var(--color-primary);
}

/* ========================================
   お問い合わせセクション（フッター内）
======================================== */
.contact-section {
    padding: 3.5rem 0;
    background: var(--color-contact-bg);
    overflow: hidden;
    position: relative;
    z-index: 2;
    border-bottom: 1px solid rgba(255, 255, 255, 0.75);
}

@media (min-width: 768px) {
    .contact-section {
        padding: 4.25rem 0 4.75rem;
    }
}

.contact-container {
    width: 100%;
    position: relative;
    max-width: var(--container-width-sp);
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: clamp(2rem, 4vw, 3rem);
}

@media (min-width: 768px) {
    .contact-container {
        max-width: var(--container-width-pc);
    }
}


.contact-header {
    display: flex;
    flex-direction: column;
    gap: 2rem;
    text-align: center;
    align-items: center;
    padding: 0 1.25rem;
}

@media (min-width: 768px) {
    .contact-header {
        padding: 0 2rem;
    }
}

.contact-title {
    color: var(--color-white);
    font-size: clamp(2rem, 9vw, 5rem);
    font-family: var(--font-en);
    font-weight: 400;
    letter-spacing: 0.1em;
    line-height: 1;
}

.contact-subtitle {
    color: var(--color-white);
    font-size: clamp(1.1rem, 2vw, 1.2rem);
    font-family: var(--font-ja);
    font-weight: 400;
    letter-spacing: 0.05em;
    text-align: left;
}

@media (min-width: 768px) {
    .contact-subtitle {
        text-align: center;
    }
}

/* お問い合わせボックスセクション */
.contact-boxes-section {
    background: var(--color-contact-bg);
    border-bottom: 1px solid rgba(255, 255, 255, 0.75);
    overflow: hidden;
    position: relative;
    z-index: 2;
}


@media (min-width: 768px) {
    .contact-boxes-container {
        max-width: var(--container-width-pc);
        width: 100%;
        margin: 0 auto;
    }

    .contact-boxes-section {
        padding: 0 2rem;
    }
}

.contact-boxes {
    display: flex;
    flex-direction: column;
}

@media (min-width: 768px) {
    .contact-boxes {
        flex-direction: row;
    }
}

.contact-box-container {
    background: transparent;
    padding: clamp(2rem, 4vw, 3rem) 0;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: flex-start;
    gap: clamp(2rem, 4vw, 3rem);
    border-bottom: 1px solid rgba(255, 255, 255, 0.75);
    text-decoration: none;
    transition: background-color 0.3s ease;
    cursor: pointer;
    text-align: center;
}

/* TELボックスは全体がリンクではないのでカーソルをdefaultに */
.contact-box-container:not([href]) {
    cursor: default;
}

.contact-box-container:last-child {
    border-bottom: none;
}

@media (min-width: 768px) {
    .contact-box-container {
        flex: 1;
        border-bottom: none;
        border-right: 1px solid rgba(255, 255, 255, 0.75);
        padding: clamp(2rem, 4vw, 3rem) clamp(1.25rem, 3vw, 4rem);
    }

    .contact-box-container:first-child {
        padding: clamp(2rem, 4vw, 3rem) 4rem clamp(2rem, 4vw, 3rem) 0;
    }
    
    .contact-box-container:last-child {
        padding: clamp(2rem, 4vw, 3rem) 2rem;
        border-right: none;
        border-bottom: none;
    }
}


.contact-box {
    display: flex;
    flex-direction: column;
    width: 100%;
    margin: 0 auto;
    max-width: var(--container-width-sp);
    gap: 3rem;
    padding: 0 1.25rem;
}

@media (min-width: 576px) {
    .contact-box {
        gap: 3.5rem;
    }

}

@media (min-width: 768px) {
    .contact-box {
        max-width: var(--container-width-pc);
        gap: 4rem;
        padding: 0;
    }

}

.contact-box-header {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 0;
    border: 1.5px solid rgba(255, 255, 255, 0.8);
    border-radius: 6px;
    padding: 0;
    width: fit-content;
}

.contact-box-icon {
    width: clamp(48px, 6vw, 56px);
    height: clamp(48px, 6vw, 56px);
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: transparent;
    border-right: 1.5px solid rgba(255, 255, 255, 0.8);
    border-radius: 0;
    padding: 12px;
}

@media (min-width: 768px) {
    .contact-box-icon {
        padding: 14px;
    }
}

.contact-box-icon svg {
    color: var(--color-white);
}

.contact-box-title {
    color: var(--color-white);
    font-size: clamp(1.25rem, 2.5vw, 1.75rem);
    font-family: var(--font-en);
    font-weight: 400;
    letter-spacing: 0.05em;
    line-height: 1;
    padding: 0 clamp(1rem, 2vw, 1.5rem);
}

.contact-box-content {
    color: var(--color-white);
    font-size: clamp(1rem, 2vw, 1.2rem);
    font-family: var(--font-ja);
    font-weight: 400;
    letter-spacing: 0.05em;
    text-align: left;
    line-height: 1.6;
}

/* MAIL FORMボックス：body-font-sizeを使用 */
.contact-box-container:first-child .contact-box-content {
    font-size: var(--body-font-size-sp);
}

@media (min-width: 768px) {
    .contact-box-container:first-child .contact-box-content {
        font-size: var(--body-font-size-pc);
    }
}

/* TELボックス：電話番号を大きく */
.contact-box-container:last-child .contact-box-content {
    font-size: clamp(1.5rem, 3vw, 2rem);
    font-weight: 600;
    line-height: 1.4;
}

/* TELボックス：コンテンツコンテナ */
.contact-box-content-container {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    text-align: left;
}

/* TELボックス：電話番号 */
.tel-number {
    color: var(--color-white);
    font-size: clamp(1.75rem, 3vw, 2rem);
    font-family: var(--font-ja);
    font-weight: 600;
    letter-spacing: 0.05em;
    line-height: 1.4;
    transition: color 0.3s ease;
    text-decoration: none;
    display: inline-block;
    cursor: pointer;
}

.tel-number:hover {
    color: var(--color-accent);
}

/* TELボックス：営業時間 */
.tel-hours {
    color: rgba(255, 255, 255, 0.95);
    font-size: clamp(0.95rem, 1.9vw, 1.05rem);
    font-family: var(--font-ja);
    font-weight: 400;
    letter-spacing: 0.05em;
}

/* TELボックス：お急ぎの方は */
.tel-urgent {
    color: rgba(255, 255, 255, 0.9);
    font-size: clamp(0.9rem, 1.8vw, 1rem);
    font-family: var(--font-ja);
    font-weight: 400;
    letter-spacing: 0.05em;
}

/* お問い合わせボックス：矢印ボタン */
.contact-box-content-wrapper {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    gap: 1rem;
}

.contact-arrow-wrapper {
    position: relative;
    width: clamp(64px, 10vw, 80px);
    height: clamp(64px, 10vw, 80px);
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.3s ease;
}

/* MAIL FORMボックス：PC時のみボタンを右に32pxずらす */
@media (min-width: 768px) {
    .contact-box-container:first-child .contact-arrow-wrapper {
        transform: translateX(32px);
    }
}

/* 背景円：細い枠線デザイン */
.contact-arrow-wrapper::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 100%;
    height: 100%;
    background: transparent;
    border: 1.5px solid var(--color-white);
    border-radius: 50%;
    transition: border-color 0.5s ease;
    z-index: 1;
}

.contact-box-container:hover .contact-arrow-wrapper::before {
    border-color: var(--color-white);
}

.contact-arrow-svg {
    position: relative;
    width: 70%;
    height: auto;
    color: var(--color-white);
    z-index: 3;
    transition: color 0.5s ease;
    /* SVGのアンチエイリアシング改善 */
    shape-rendering: geometricPrecision;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    transform: translateZ(0);
    backface-visibility: hidden;
    will-change: transform;
    /* 高解像度ディスプレイ用の最適化 */
    image-rendering: -webkit-optimize-contrast;
    image-rendering: crisp-edges;
}

.contact-box-container:hover .contact-arrow-svg {
    color: var(--color-accent);
}

/* SVGパスの描画アニメーション */
/* 波線部分 */
.contact-arrow-svg .arrow-wave {
    stroke-dasharray: 70;
    stroke-dashoffset: 0; /* デフォルトは表示 */
}

.contact-box-container:hover .contact-arrow-svg .arrow-wave {
    animation: redrawWave 0.8s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

/* 矢印の先端部分（上） */
.contact-arrow-svg .arrow-head-top {
    stroke-dasharray: 7;
    stroke-dashoffset: 0; /* デフォルトは表示 */
}

.contact-box-container:hover .contact-arrow-svg .arrow-head-top {
    animation: redrawArrowHeadDelayed 1.0s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

/* 矢印の先端部分（下） */
.contact-arrow-svg .arrow-head-bottom {
    stroke-dasharray: 7;
    stroke-dashoffset: 0; /* デフォルトは表示 */
}

.contact-box-container:hover .contact-arrow-svg .arrow-head-bottom {
    animation: redrawArrowHeadDelayed 1.0s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

/* 波線再描画アニメーション */
@keyframes redrawWave {
    0% {
        stroke-dashoffset: 0;
    }
    1% {
        stroke-dashoffset: 70;
    }
    100% {
        stroke-dashoffset: 0;
    }
}

/* 矢印先端再描画アニメーション（遅延版） */
@keyframes redrawArrowHeadDelayed {
    0% {
        stroke-dashoffset: 0;
    }
    1% {
        stroke-dashoffset: 7;
    }
    60% {
        stroke-dashoffset: 7;
    }
    100% {
        stroke-dashoffset: 0;
    }
}

.contact-box-container:hover .contact-arrow-wrapper {
    transform: translateX(4px);
}

/* PC版：MAIL FORMのホバー時は32px + 4px */
@media (min-width: 768px) {
    .contact-box-container:first-child:hover .contact-arrow-wrapper {
        transform: translateX(36px);
    }
}

/* ========================================
   フッター
======================================== */
.footer {
    background: var(--color-footer-bg);
    padding: 3.5rem 0 1rem;
    overflow: hidden;
    position: relative;
    z-index: 3;
}

@media (min-width: 768px) {
    .footer {
        padding: 3.5rem 2rem 1rem;
    }
}

.footer-container {
    max-width: var(--container-width-sp);
    width: 100%;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: clamp(1rem, 3vw, 1rem);
    padding: 0 1.25rem;
}

@media (min-width: 768px) {
    .footer-container {
        max-width: var(--container-width-pc);
        padding: 0;
    }
}

.footer-content {
    position: relative;
    padding-bottom: clamp(2.5rem, 2vw, 3rem);
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
    display: flex;
    flex-direction: column;
    gap: clamp(2.5rem, 2vw, 3rem);
}

.footer-logo {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    transition: opacity 0.3s ease;
    width: max-content;
}

.footer-logo:hover {
    opacity: 0.8;
}

.footer-logo img {
    height: clamp(40px, 5vw, 48px);
    width: auto;
}

.footer-main {
    display: flex;
    flex-direction: column;
    gap: 3rem;
}

@media (min-width: 768px) {
    .footer-main {
        flex-direction: row;
        justify-content: space-between;
        align-items: flex-start;
    }
}

.footer-section-title {
    color: var(--color-white);
    font-size: 1.2rem;
    font-family: var(--font-ja);
    font-weight: 500;
    letter-spacing: 0.05em;
    margin-bottom: clamp(1rem, 2vw, 1.5rem);
    padding-left: 1rem;
    position: relative;
}


@media (min-width: 768px) {
    .footer-section-title {
        padding-left: 1.25rem;
    }
}

.footer-section-title::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 11px;
    height: 31px;
    background-image: url('../images/nakamura-blue-denki.png');
    background-repeat: no-repeat;
    background-position: center;
    background-size: contain;
    opacity: 0.75;
}

@media (min-width: 768px) {
    .footer-section-title::before {
        width: 12px;
        height: 32px;
    }
}

.footer-nav {
    display: flex;
    flex-direction: column;
}

@media (min-width: 768px) {
    .footer-nav {
        flex: 1;
    }
}

.footer-nav-columns {
    display: flex;
    gap: clamp(2rem, 4vw, 3rem);
    flex-wrap: wrap;
}

@media (min-width: 768px) {
    .footer-nav-columns {
        gap: clamp(2rem, 5vw, 4rem);
    }
}

.footer-info {
    display: flex;
    flex-direction: column;
}

@media (min-width: 768px) {
    .footer-info {
        flex: 1;
    }
}

.footer-details {
    display: flex;
    flex-direction: column;
    gap: clamp(0.5rem, 1.5vw, 0.75rem);
    color: rgba(255, 255, 255, 0.85);
    font-size: clamp(0.875rem, 2vw, 0.9rem);
    font-family: var(--font-ja);
    line-height: 1.8;
    text-align: left;
}

.footer-nav-column {
    display: flex;
    flex-direction: column;
    gap: clamp(1rem, 2vw, 1.5rem);
}

.footer-nav-link {
    color: var(--color-white);
    font-size: 1rem;
    font-family: var(--font-ja);
    letter-spacing: 0.05em;
    transition: color 0.3s ease;
    white-space: nowrap;
    position: relative;
    display: inline-block;
    width: fit-content;
}

.footer-nav-link::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 100%;
    height: 1px;
    background: var(--color-sky-blue);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.3s ease;
}

.footer-nav-link:hover::after {
    transform: scaleX(1);
}

.footer-nav-link:hover {
    color: var(--color-sky-blue);
    opacity: 1;
}

.footer-bottom {
    text-align: center;
}

.footer-copyright {
    color: var(--color-white);
    font-size: 0.75rem;
    font-family: var(--font-ja);
    letter-spacing: 0.05em;
}

/* ========================================
   ページトップボタン
======================================== */
body.menu-open #page-top {
    display: none;
}

#page-top a {
    display: flex;
    justify-content: center;
    align-items: center;
    background: var(--color-primary);
    border-radius: 0.325rem;
    width: 48px;
    height: 48px;
    color: var(--color-white);
    text-align: center;
    text-decoration: none;
    transition: all 0.3s;
    position: relative;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

#page-top a::before {
    content: "\f077";
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    display: block;
    color: var(--color-white);
    font-size: 1.375rem;
    /* transform: translateY(1px); */
    
}

#page-top a:hover {
    background: var(--color-button-hover);
    opacity: 1;
    transform: translateY(-3px);
}

#page-top {
    position: fixed;
    right: 0.75rem;
    bottom: 0.75rem;
    z-index: 2000;
    opacity: 0;
    transform: translateY(100px);
}

@media (min-width: 768px) {
    #page-top {
        right: 1rem;
        bottom: 1rem;
    }
    
    #page-top a {
        width: 52px;
        height: 52px;
        border-radius: 0.35rem;
    }
    
    #page-top a::before {
        font-size: 1.6rem;
    }
}

#page-top.UpMove {
    animation: UpAnime 0.5s forwards;
}

@keyframes UpAnime {
    from {
        opacity: 0;
        transform: translateY(100px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

#page-top.DownMove {
    animation: DownAnime 0.5s forwards;
}

@keyframes DownAnime {
    from {
        opacity: 1;
        transform: translateY(0);
    }
    to {
        opacity: 0;
        transform: translateY(100px);
    }
}

/* ========================================
   ユーティリティ
======================================== */
.sp-only {
    display: block;
}

.pc-only {
    display: none;
}

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

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

.mt-1 { margin-top: 0.5rem; }
.mt-2 { margin-top: 1rem; }
.mt-3 { margin-top: 2rem; }
.mt-4 { margin-top: 3rem; }

.mb-1 { margin-bottom: 0.5rem; }
.mb-2 { margin-bottom: 1rem; }
.mb-3 { margin-bottom: 2rem; }
.mb-4 { margin-bottom: 3rem; }

/* ========================================
   ページヒーロー（共通スタイル）
======================================== */
.page-hero {
    position: relative;
    aspect-ratio: 16 / 10;
    width: 100%;
    min-height: 320px;
    display: flex;
    align-items: flex-end;
    justify-content: flex-start;
    overflow: visible;
}

/* 背景画像 */
.page-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    z-index: -1;
}

/* 下側の黒いグラデーションオーバーレイ */
.page-hero::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 40%;
    background: linear-gradient(
    to top, 
    rgba(0, 0, 0, 0.5) 0%, 
    rgba(0, 0, 0, 0.2) 50%, /* 中間で少し薄くする */
    transparent 100%
);
    z-index: 0;
    pointer-events: none;
}

@media (min-width: 568px) {
    .page-hero {
        min-height: 400px;
    }
}

@media (min-width: 768px) {
    .page-hero {
        max-height: 640px;
    }
}

@media (min-width: 1024px) {
    .page-hero {
        max-height: 680px;
    }
}

@media (min-width: 1200px) {
    .page-hero {
        max-height: 720px;
    }
}


.page-hero-container {
    width: 100%;
    padding: 0 1.25rem 3rem;
    text-align: left;
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

@media (min-width: 375px) {
    .page-hero-container {
        padding: 0 1.25rem 3.25rem;
    }
}

@media (min-width: 576px) {
    .page-hero-container {
        padding: 0 1.25rem 3.5rem;
    }
}

@media (min-width: 768px) {
    .page-hero-container {
        padding: 0 2rem 4.375rem;
    }
}

@media (min-width: 1024px) {
    .page-hero-container {
        padding: 0 2rem 4.75rem;
    }
}

@media (min-width: 1200px) {
    .page-hero-container {
        padding: 0 2rem 5rem;
    }
}

.page-hero-title {
    color: var(--color-white);
    font-size: 1.8rem;
    font-family: var(--font-ja);
    font-weight: 500;
    letter-spacing: var(--section-title-letter-spacing-ja);
    line-height: 1.0;
    text-shadow: 
        0 2px 4px color-mix(in srgb, var(--color-primary) 50%, transparent),
        0 4px 8px color-mix(in srgb, var(--color-primary) 30%, transparent);
    opacity: 0;
    animation: fadeInUp 1.0s ease 0.5s forwards;
}

@media (min-width: 375px) {
    .page-hero-title {
        font-size: 2rem;
    }
}

@media (min-width: 475px) {
    .page-hero-title {
        font-size: 2.25rem;
    }
}

@media (min-width: 576px) {
    .page-hero-title {
        font-size: 2.875rem;
    }
}

@media (min-width: 768px) {
    .page-hero-title {
        font-size: 3.5rem;
    }
}

@media (min-width: 1024px) {
    .page-hero-title {
        font-size: 4rem;
    }
}

@media (min-width: 1200px) {
    .page-hero-title {
        font-size: 4.5rem;
    }
}

/* ページヒーロータイトルのフェードインアップアニメーション */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ========================================
   セクションアイコン装飾（共通）
======================================== */
/* 右側配置 */
.section-icon-right::before {
    content: '';
    position: absolute;
    top: 0;
    right: 1.25rem;
    width: 60px;
    height: 60px;
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    opacity: 0.125;
    z-index: 0;
    pointer-events: none;
}

@media (min-width: 768px) {
    .section-icon-right::before {
        width: 80px;
        height: 80px;
        right: 2rem;
    }
}

/* 左側配置 */
.section-icon-left::before {
    content: '';
    position: absolute;
    top: 0;
    left: 1.25rem;
    width: 60px;
    height: 60px;
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    opacity: 0.125;
    z-index: 0;
    pointer-events: none;
}

@media (min-width: 768px) {
    .section-icon-left::before {
        width: 80px;
        height: 80px;
        left: 2rem;
    }
}

/* 枠線付きアイコン（右側） */
.section-icon-bordered-right::before {
    content: '';
    position: absolute;
    top: 0;
    right: 1.25rem;
    width: 56px;
    height: 56px;
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    opacity: 0.125;
    z-index: 0;
    pointer-events: none;
    border: 2px solid var(--color-primary);
    border-radius: 6px;
    padding: 6px;
}

@media (min-width: 768px) {
    .section-icon-bordered-right::before {
        width: 68px;
        height: 68px;
        right: 2rem;
        border-radius: 8px;
        padding: 8px;
    }
}

/* 枠線付きアイコン（左側） */
.section-icon-bordered-left::before {
    content: '';
    position: absolute;
    top: 0;
    left: 1.25rem;
    width: 56px;
    height: 56px;
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    opacity: 0.125;
    z-index: 0;
    pointer-events: none;
    border: 2px solid var(--color-primary);
    border-radius: 6px;
    padding: 6px;
}

@media (min-width: 768px) {
    .section-icon-bordered-left::before {
        width: 68px;
        height: 68px;
        left: 2rem;
        border-radius: 8px;
        padding: 8px;
    }
}

/* ========================================
   ボタンスタイル（全ページ共通）
======================================== */
/* ボタンラッパー */
.btn-wrapper {
    display: inline-flex;
    align-items: stretch;
    gap: 0;
}

.btn-company-intro {
    display: inline-flex;
    align-items: stretch;
    justify-content: space-between;
    padding: 0;
    min-width: clamp(10rem, 20vw, 12rem);
    background: transparent;
    border: 1px solid var(--color-white);
    border-radius: 0.25rem;
    color: var(--color-white);
    font-size: clamp(0.95rem, 2.5vw, 1.1rem);
    font-family: var(--font-ja);
    font-weight: 400;
    letter-spacing: 0.05em;
    text-decoration: none;
    cursor: pointer;
    transition: opacity 0.3s ease;
    position: relative;
    overflow: hidden;
}

/* 塗りつぶしエフェクト用の背景 */
.btn-company-intro-fill {
    position: absolute;
    left: 0;
    top: 0;
    right: clamp(2rem, 4vw, 3rem);
    height: 100%;
    background: var(--color-white);
    transform: translateX(-100%);
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 1;
    pointer-events: none;
}

.btn-company-intro:hover .btn-company-intro-fill {
    transform: translateX(0);
}

/* 横線ラッパー */
.btn-lines-wrapper {
    position: relative;
    width: 0.5rem;
    flex-shrink: 0;
}

@media (min-width: 768px) {
    .btn-lines-wrapper {
        width: 0.75rem;
    }
}

/* 横線（上） */
.btn-line-h1 {
    position: absolute;
    left: 0;
    top: 31%;
    width: 100%;
    height: 1px;
    background: var(--color-primary);
    z-index: 3;
}

/* 横線（下） */
.btn-line-h2 {
    position: absolute;
    left: 0;
    top: 69%;
    width: 100%;
    height: 1px;
    background: var(--color-primary);
    z-index: 3;
}

/* 会社概要イントロセクション内のボタンの横線を白に */
.company-intro-hero .btn-line-h1,
.company-intro-hero .btn-line-h2 {
    background: var(--color-white);
}

.btn-company-intro:hover {
    opacity: 1;
}

/* ホバー時のテキスト色変更 */
.btn-company-intro:hover span:nth-child(2) {
    color: var(--color-primary);
}

.btn-company-intro span:nth-child(2) {
    flex: 1;
    text-align: center;
    padding: clamp(0.75rem, 2vw, 1rem) clamp(1.5rem, 4.5vw, 2.25rem) clamp(0.75rem, 2vw, 1rem) clamp(1rem, 3vw, 1.5rem);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    z-index: 2;
    transition: color 0.3s ease;
    border-right: 1px solid var(--color-white);
}

.btn-company-intro-deco {
    width: clamp(2rem, 4vw, 3rem);
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: clamp(0.75rem, 2vw, 1rem) clamp(0.25rem, 2vw, 0.5rem);
    position: relative;
    z-index: 2;
}

/* 雷マークの画像 */
.btn-company-intro-deco::before {
    content: '';
    display: block;
    width: 14px;
    height: auto;
    aspect-ratio: 16 / 36;
    background-image: url('../images/nakamura-blue-denki.png');
    background-size: contain;
    background-position: center;
    background-repeat: no-repeat;
    opacity: 0;
    transition: opacity 0.3s ease, transform 0.3s ease;
}

@media (min-width: 768px) {
    .btn-company-intro-deco::before {
        width: 16px;
    }
}

/* ホバー時に雷マークを表示 */
.btn-company-intro:hover .btn-company-intro-deco::before {
    opacity: 0.9;
    transform: scale(1);
}

/* 青背景セクション用（白背景に配置する場合） */
.btn-company-intro-blue {
    border-color: var(--color-primary);
    color: var(--color-primary);
}

/* 青ボタンのテキスト部分の縦線の色 */
.btn-company-intro-blue span:nth-child(2) {
    border-right-color: var(--color-primary);
}

/* 青ボタンの横線の色 */
.btn-company-intro-blue .btn-line-h1,
.btn-company-intro-blue .btn-line-h2 {
    background: var(--color-primary);
}

/* 青ボタンの塗りつぶし背景 */
.btn-company-intro-blue .btn-company-intro-fill {
    background: var(--color-primary);
}

.btn-company-intro-blue:hover {
    opacity: 1;
}

/* 青ボタンのホバー時のテキスト色変更 */
.btn-company-intro-blue:hover span:nth-child(2) {
    color: var(--color-white);
}

.btn-company-intro-blue:hover i {
    color: var(--color-white);
}

/* 会社概要セクション（白ボタン）のホバー時は白い雷マーク */
.company-intro-hero .btn-company-intro:hover .btn-company-intro-deco::before {
    background-image: url('../images/nakamura-white-denki.png');
}

/* それ以外のセクション（青ボタン）のホバー時は青い雷マーク */
.btn-company-intro-blue:hover .btn-company-intro-deco::before {
    background-image: url('../images/nakamura-blue-denki.png');
}

/* SVG矢印（後方互換性のため残す） */
.btn-company-intro-arrow {
    width: clamp(1.5rem, 4vw, 2.75rem);
    height: clamp(1.5rem, 4vw, 2.75rem);
    flex-shrink: 0;
    color: var(--color-white);
    transition: transform 0.3s ease;
}

.btn-company-intro:hover .btn-company-intro-arrow {
    transform: translateX(0.25rem);
}
