/* ========================================
   リセットCSS・基本設定
======================================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    /* カラー設定 */
    --color-primary: #2B7BBF;      /* 塗装ブルー */
    --color-primary-dark: #1E5A8C;
    --color-secondary: #FF6B35;     /* アクセントオレンジ */
    --color-accent: #4ECDC4;        /* アクセントターコイズ */
    --color-text: #333333;
    --color-title: #4a4a4a;
    --color-text-light: #6a6a6a;
    --color-bg: #FFFFFF;
    --color-bg-light: #F8F9FA;
    --color-border: #E0E0E0;
    --color-contact-bg: #fafafa;
    --works-overlay-opacity: 0.55; /* 施工実績セクション 白オーバーレイ透明度 */

    /* フレーム共通色 */
    --color-frame: #3a3a3a;                    /* セクションブロック・ボーダー全般 */
    --color-frame-bg: rgba(42, 42, 42, 0.85);  /* ナビ背景・バッジ等（半透明版） */
    
    /* ペンキカラー */
    --color-paint-1: rgba(43, 123, 191, 0.15);
    --color-paint-2: rgba(255, 107, 53, 0.15);
    --color-paint-3: rgba(78, 205, 196, 0.15);
    
    /* フォント設定 */
    --font-family: 'MPLUS1p', 'Noto Sans JP', sans-serif;
    --font-heading: 'Dela Gothic One', 'Noto Sans JP', sans-serif;
    --font-en: 'Archivo', sans-serif;

    --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;
    
    /* 角丸 */
    --radius-xs: 0.25rem; /* バッジ・タグなど極小UI */
    --radius-sm: 0.5rem;   /* カード・画像など小さめUI */
    --radius-md: 0.75rem;  /* コンテナ・ボックス系 */
    --radius-lg: 1rem;     /* 大きめコンテナ */

    /* スペーシング */
    --spacing-xxs: 0.5rem;
    --spacing-xs: 0.75rem;
    --spacing-sm: 1.5rem;
    --spacing-md: 2rem;
    --spacing-lg: 3rem;
    --spacing-lger: 3.5rem;
    --spacing-xl: 4rem;
    --spacing-xxl: 5.5rem;
    --spacing-xxlger: 6rem;
    --spacing-xxlgest: 8.25rem;
    --spacing-3xl: 8rem;
    --spacing-moslg: 10rem;
    
    /* ブレイクポイント */
    --breakpoint-tablet: 768px;
    --breakpoint-desktop: 1024px;
    
    /* セクションコンテンツ幅 */
    --section-content-width-sm: 576px;
    --section-content-width-md: 768px;
    --section-content-width-lg: 1024px;
    --section-content-width-exlg: 1105px;

    /* 落ち影 */
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.04);   /* 静的な小要素（テーブル・ボックス） */
    --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.08);  /* インタラクティブ要素の通常状態 */
    --shadow-lg: 0 8px 20px rgba(0, 0, 0, 0.12);  /* インタラクティブ要素のホバー時 */

    --frame-width-sm: 0.5rem;
    --frame-width-md: 0.75rem;
    --frame-width-lg: 1rem;
    --frame-width-xl: 1.25rem;
}

html {
    font-size: 16px;
    scroll-behavior: smooth;
    overflow-x: hidden;
    overscroll-behavior-y: none;
}

/* Chromeのスクロール復元による初回表示ずれを防ぐ */
html:not(.js-ready) {
    scroll-behavior: auto;
}

body {
    font-family: var(--font-family);
    color: var(--color-text);
    background-color: var(--color-bg);
    line-height: var(--body-line-height-sp);
    overflow-x: hidden;
    overscroll-behavior-x: none;
    touch-action: pan-y;
}





body.menu-open {
    /* モバイルメニュー背面のスクロールを許可 */
}


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

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

/* ========================================
   共通レイアウト
======================================== */

/* セクションコンテナ */
.section-container {
    max-width: var(--section-content-width-sm);
    margin: 0 auto;
    width: 100%;
}


@media (min-width: 768px) {
    .section-container {
        max-width: var(--section-content-width-md);
    }
}

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

@media (min-width: 1200px) {
    .section-container {
        max-width: var(--section-content-width-exlg);
    }
}

/* レスポンシブ表示切り替え */
.sp-only {
    display: inline;
}

.pc-only {
    display: none;
}

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


/* ========================================
   ヘッダー（モバイル）
======================================== */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background-color: transparent;
    z-index: 1002;
    height: 72px;
    transition: background-color 0.3s ease, background-image 0.3s ease, top 0.3s ease;
    pointer-events: none; /* ヘッダー透明部分はクリックを透過 */
}

/* インタラクティブな要素はクリック可能に戻す */
.header__inner,
.header__logo,
.header__nav,
.header__menu-trigger,
.header__cta-mobile,
.header__mobile-nav {
    pointer-events: auto;
}

/* トップページ：FVセクションのみ上ライン分下げ、それ以外はtop:0 */
body.page-index .header {
    top: 0;
    transition: background-color 0.3s ease, top 0.3s ease;
}

body.page-index.section-fv .header {
    top: var(--frame-width-sm);
}

@media (min-width: 768px) {
    body.page-index.section-fv .header {
        top: var(--frame-width-md);
    }
}

@media (min-width: 1024px) {
    body.page-index.section-fv .header {
        top: var(--frame-width-lg);
    }
}

/* サブページ：page-hero 内にいる間はヘッダーを frame-width 分下げる */
body.in-page-hero .header {
    top: var(--frame-width-sm);
    transition: background-color 0.3s ease, top 0.3s ease;
}

@media (min-width: 768px) {
    body.in-page-hero .header {
        top: var(--frame-width-md);
    }
}

@media (min-width: 1024px) {
    body.in-page-hero .header {
        top: var(--frame-width-lg);
    }
}

/* セクションごとのヘッダー背景色 - トップページは常に透明 */

/* セクションごとのロゴテキスト色（ビビッド背景なので白色） */
body.section-company .header__logo-text,
body.section-service .header__logo-text,
body.section-works .header__logo-text,
body.section-reason .header__logo-text,
body.section-contact .header__logo-text,
body.section-news .header__logo-text {
    color: #ffffff;
}

body.section-company .header__logo-catchcopy,
body.section-service .header__logo-catchcopy,
body.section-works .header__logo-catchcopy,
body.section-reason .header__logo-catchcopy,
body.section-contact .header__logo-catchcopy,
body.section-news .header__logo-catchcopy {
    color: rgba(255, 255, 255, 0.9);
}

/* ヘッダーロゴ画像 */
.header__logo-img {
    height: 58px;
    width: 148px;
    background-size: contain;
    background-position: left center;
    background-repeat: no-repeat;
    background-image: url('../images/logo-fv.webp');
    transition: background-image 0.3s ease;
    display: block;
}

/* FVを出たら共通ロゴに切り替え */
body.section-company .header__logo-img { background-image: url('../images/logo-scrolled.webp'); }
body.section-service .header__logo-img { background-image: url('../images/logo-scrolled.webp'); }
body.section-works   .header__logo-img { background-image: url('../images/logo-scrolled.webp'); }
body.section-reason  .header__logo-img { background-image: url('../images/logo-scrolled.webp'); }
body.section-contact .header__logo-img { background-image: url('../images/logo-scrolled.webp'); }
body.section-news    .header__logo-img { background-image: url('../images/logo-scrolled.webp'); }

@media (min-width: 576px) {
    .header__logo-img {
        height: 62px;
        width: 160px;
    }
}

@media (min-width: 768px) {
    .header__logo-img {
        height: 62px;
        width: 156px;
    }
}

@media (min-width: 1024px) {
    .header__logo-img {
        height: 80px;
        width: 192px;
    }
}

@media (min-width: 1200px) {
    .header__logo-img {
        height: 84px;
        width: 204px;
    }
}


/* ハンバーガーバー：全セクション白 */
body.section-company .header__toggle span,
body.section-service .header__toggle span,
body.section-works   .header__toggle span,
body.section-reason  .header__toggle span,
body.section-contact .header__toggle span,
body.section-news    .header__toggle span { background-color: #ffffff; }

/* MENUテキスト：全セクション白 */
body.section-company .header__menu-text,
body.section-service .header__menu-text,
body.section-works   .header__menu-text,
body.section-reason  .header__menu-text,
body.section-contact .header__menu-text,
body.section-news    .header__menu-text { color: #ffffff; }

/* お問い合わせボタン：白背景＋セクションカラーのテキスト */
body.section-company .header__cta-mobile,
body.section-service .header__cta-mobile,
body.section-works .header__cta-mobile,
body.section-reason .header__cta-mobile,
body.section-contact .header__cta-mobile,
body.section-news .header__cta-mobile {
    background-color: #ffffff;
}

body.section-company .header__cta-mobile { color: #333333; }
body.section-company .header__cta-icon i { color: #333333; }
body.section-service .header__cta-mobile { color: #333333; }
body.section-service .header__cta-icon i { color: #333333; }
body.section-works .header__cta-mobile   { color: #333333; }
body.section-works .header__cta-icon i   { color: #333333; }
body.section-reason .header__cta-mobile  { color: #333333; }
body.section-reason .header__cta-icon i  { color: #333333; }
body.section-contact .header__cta-mobile { color: #333333; }
body.section-contact .header__cta-icon i { color: #333333; }
body.section-news .header__cta-mobile    { color: #333333; }
body.section-news .header__cta-icon i   { color: #333333; }

@media (min-width: 768px) {
    body.section-company .header__cta-text { color: #333333; }
    body.section-service .header__cta-text { color: #333333; }
    body.section-works .header__cta-text   { color: #333333; }
    body.section-reason .header__cta-text  { color: #333333; }
    body.section-contact .header__cta-text { color: #333333; }
    body.section-news .header__cta-text    { color: #333333; }
}

/* PCナビゲーション：セクションごとにナビリスト全体の背景色をカプセル型で変更 */
@media (min-width: 1024px) {
    /* 全セクション共通：リスト全体をカプセル型に */
    body.section-fv .header__nav-list,
    body.section-company .header__nav-list,
    body.section-service .header__nav-list,
    body.section-works .header__nav-list,
    body.section-reason .header__nav-list,
    body.section-contact .header__nav-list,
    body.section-news .header__nav-list {
        border-radius: 50px;
        overflow: hidden;
        transition: background-color 0.3s ease;
    }

    /* テキスト色：全セクション共通で白固定 */
    .header__nav-text-ja {
        color: #ffffff;
    }

    .header__nav-text-en {
        color: rgba(255, 255, 255, 0.75);
    }

    /* 全セクション統一：グレー */
    body.section-fv .header__nav-list {
        background-color: var(--color-frame-bg);
    }

    /* 会社案内 */
    body.section-company .header__nav-list {
        background-color: var(--color-frame-bg);
    }

    /* 事業内容 */
    body.section-service .header__nav-list {
        background-color: var(--color-frame-bg);
    }

    /* 施工実績 */
    body.section-works .header__nav-list {
        background-color: var(--color-frame-bg);
    }

    /* 選ばれる理由 */
    body.section-reason .header__nav-list {
        background-color: var(--color-frame-bg);
    }

    /* お問い合わせ */
    body.section-contact .header__nav-list {
        background-color: var(--color-frame-bg);
    }

    /* 新着情報 */
    body.section-news .header__nav-list {
        background-color: var(--color-frame-bg);
    }
}

.header__inner {
    width: 100%;
    height: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--frame-width-sm);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--spacing-sm);
}

/* ロゴ（左側配置） */
.header__logo {
    position: relative;
    flex: 0 0 auto;
    height: auto;
    max-height: 60px;
    min-width: 120px;
    display: flex;
    align-items: center;
}

.header__logo > a {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    height: auto;
    padding: 0;
    transition: opacity 0.3s ease;
}

.header__logo > a:hover {
    opacity: 0.9;
}

.header__logo-catchcopy {
    font-size: 10px;
    font-weight: 500;
    color: var(--color-text-light);
    white-space: nowrap;
    position: relative;
    z-index: 1;
    letter-spacing: 0.5px;
    line-height: 1;
    transition: color 0.3s ease;
}

.header__logo-text {
    font-size: 1.25rem;
    font-weight: 400;
    color: #1a1a1a;
    white-space: nowrap;
    position: relative;
    z-index: 1;
    line-height: 1;
    transition: color 0.3s ease;
    font-family: var(--font-heading);
}

/* PCナビゲーション（モバイルでは非表示） */
.header__nav {
    display: none;
}

/* ハンバーガーメニュー（モバイル） */
.header__menu-trigger {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 4px;
    flex: 0 0 auto;
    z-index: 10001;
    transition: none;
    position: relative;
    width: 44px;
    height: 44px;
}

/* インク背景画像を疑似要素で一回り大きく配置 */
.header__menu-trigger::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -51%);
    width: 120px;
    height: 120px;
    transition: background-image 0.3s ease, transform 0.3s ease;
    background-image: url('../images/menu-deco.png');
    background-size: contain;
    background-position: center;
    background-repeat: no-repeat;
    z-index: 0;
    transition: background-image 0.3s ease, transform 0.3s ease;
    pointer-events: none;
}

.header__menu-trigger:hover::before {
    transform: translate(-50%, -51%) scale(1.05);
}

/* ハンバーガーメニュー背景画像：1024px未満では常時 menu-deco.png を使用 */

/* メニューオープン時：位置はヘッダー内のまま変えない */

.header__toggle {
    display: flex;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px;
    position: relative;
    z-index: 1;
    transition: transform 0.3s ease;
}

.header__toggle span {
    display: block;
    width: 24px;
    height: 3px;
    background-color: #ffffff; /* FV青インク背景なので白 */
    border-radius: 2px;
    transition: all 0.3s ease, background-color 0.3s ease;
}

/* メニューオープン時：全セクション白 */
body.menu-open.section-fv .header__toggle span,
body.menu-open.section-company .header__toggle span,
body.menu-open.section-service .header__toggle span,
body.menu-open.section-works   .header__toggle span,
body.menu-open.section-reason  .header__toggle span,
body.menu-open.section-contact .header__toggle span { background-color: #ffffff; }

.header__toggle.is-active span:nth-child(1) {
    transform: translateY(8px) rotate(45deg);
}

.header__toggle.is-active span:nth-child(2) {
    opacity: 0;
    transform: scaleX(0);
}

.header__toggle.is-active span:nth-child(3) {
    transform: translateY(-8px) rotate(-45deg);
}

/* 768px以上はspanのheightが3pxになるのでtranslateYを調整 */
@media (min-width: 768px) {
    .header__toggle.is-active span:nth-child(1) {
        transform: translateY(8px) rotate(45deg);
    }
    .header__toggle.is-active span:nth-child(3) {
        transform: translateY(-8px) rotate(-45deg);
    }
}

.header__menu-text {
    font-size: 9px;
    color: #ffffff; /* FV青インク背景なので白 */
    font-weight: 500;
    line-height: 1;
    transition: color 0.3s ease;
    position: relative;
    z-index: 1;
}

/* 「メニュー」文字は ::before で、「とじる」は ::after で重ねる */
.header__menu-text::before {
    content: attr(data-open);
    display: block;
}

.header__menu-text::after {
    content: attr(data-close);
    display: none;
}

/* メニューオープン時：全セクション白 */
body.menu-open .header__menu-text,
body.menu-open.section-fv .header__menu-text,
body.menu-open.section-company .header__menu-text,
body.menu-open.section-service .header__menu-text,
body.menu-open.section-works   .header__menu-text,
body.menu-open.section-reason  .header__menu-text,
body.menu-open.section-contact .header__menu-text { color: #ffffff; }

body.menu-open .header__menu-text::before {
    display: none;
}

body.menu-open .header__menu-text::after {
    display: block;
}

/* お問い合わせボタン（モバイル：アイコンのみ） */
.header__cta-mobile {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0;
    background-color: var(--color-primary);
    color: #fff;
    padding: 10px;
    border-radius: 50%;
    width: 44px;
    height: 44px;
    flex: 0 0 auto;
    z-index: 10;
    transition: background-color 0.3s ease, color 0.3s ease;
}

.header__cta-mobile:hover {
    background-color: var(--color-primary-dark);
    opacity: 1;
}

.header__cta-icon {
    font-size: 18px;
    transition: color 0.3s ease;
}

.header__cta-icon i {
    transition: color 0.3s ease;
}

.header__cta-text {
    display: none;
    transition: color 0.3s ease;
}

/* ========================================
   モバイルナビゲーションメニュー（フルスクリーン）
======================================== */
.header__mobile-nav {
    display: block;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100dvh;
    background-image: url('../images/header-wall.webp');
    background-size: 576px calc(576px * 1240 / 1748);
    background-position: center top;
    background-repeat: repeat;
    transform: translateX(-100%);
    transition: transform 0.45s cubic-bezier(0.4, 0, 0.2, 1);
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    z-index: 10000;
}

.header__mobile-nav.is-open {
    transform: translateX(0);
}

@media (min-width: 768px) {
    .header__mobile-nav {
        background-size: 768px calc(768px * 1240 / 1748);
    }
}

.header__mobile-nav-inner {
    position: relative;
    z-index: 1;
    height: 100dvh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 5rem 1.5rem 3rem;
}

/* ナビリスト幅制約 */
.header__mobile-nav-list {
    list-style: none;
    padding: 0;
    width: 100%;
    max-width: 240px;
    display: flex;
    flex-direction: column;
    gap: 0;
}

.header__mobile-nav-link {
    display: flex;
    align-items: center;
    gap: 0;
    padding: 1.1rem 1.5rem 1.1rem 1rem;
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--color-title);
    text-decoration: none;
    position: relative;
    overflow: hidden;
    transition: color 0.3s ease, background-color 0.3s ease, letter-spacing 0.3s ease;
    letter-spacing: var(--body-letter-spacing);
}

.header__mobile-nav-link:hover {
    color: #ffffff;
}

.header__mobile-nav-link:hover {
    .mobile-nav-text-ja {
        color: #fff;
    }
    .mobile-nav-text-en {
        color: #fff;
    }
}

/* デコ画像：左→右 クリップリビール */
.mobile-nav-deco {
    position: absolute;
    inset: 0;
    background-size: 100% 100%;
    background-position: center;
    background-repeat: no-repeat;
    clip-path: inset(0 100% 0 0);
    transition: clip-path 0.55s cubic-bezier(0.4, 0, 0.2, 1);
    pointer-events: none;
    z-index: 0;
}

.header__mobile-nav-link:hover .mobile-nav-deco {
    clip-path: inset(0 0% 0 0);
}

/* ========================================
   モバイルナビ デコ画像：高さ小（sm-nav）/ 高さ大（nav-deco）
======================================== */
/* デフォルト：sm-nav（小さい画面向け） */
.mobile-nav-deco--home    { background-image: url('../images/sm-nav.png'); }
.mobile-nav-deco--service { background-image: url('../images/sm-nav02.png'); }
.mobile-nav-deco--works   { background-image: url('../images/sm-nav03.png'); }
.mobile-nav-deco--reason  { background-image: url('../images/sm-nav04.png'); }
.mobile-nav-deco--company { background-image: url('../images/sm-nav01.png'); }
.mobile-nav-deco--contact { background-image: url('../images/sm-nav05.png'); }

/* 高さ668px以上：nav-deco（大きい画面向け） */
@media (min-height: 668px) {
    .mobile-nav-deco--home    { background-image: url('../images/nav-deco01.png'); }
    .mobile-nav-deco--service { background-image: url('../images/nav-deco02.png'); }
    .mobile-nav-deco--works   { background-image: url('../images/nav-deco03.png'); }
    .mobile-nav-deco--reason  { background-image: url('../images/nav-deco04.png'); }
    .mobile-nav-deco--company { background-image: url('../images/nav-deco05.png'); }
    .mobile-nav-deco--contact { background-image: url('../images/nav-deco06.png'); }
}

/* アクティブページ：英語テキストの中央にデコアイコンを表示（PC headerと同じ挙動） */
.header__mobile-nav-link.is-active .mobile-nav-text-en::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 36px;
    height: 36px;
    background-size: contain;
    background-position: center;
    background-repeat: no-repeat;
    opacity: 0.4;
    pointer-events: none;
    z-index: 0;
}

/* ホバー時は非表示 */
.header__mobile-nav-link.is-active:hover .mobile-nav-text-en::before {
    opacity: 0;
}

/* 各ページ別デコ画像 */
.header__mobile-nav-link--home.is-active    .mobile-nav-text-en::before { background-image: url('../images/header-deco01.png'); }
.header__mobile-nav-link--service.is-active .mobile-nav-text-en::before { background-image: url('../images/header-deco02.png'); }
.header__mobile-nav-link--works.is-active   .mobile-nav-text-en::before { background-image: url('../images/header-deco03.png'); }
.header__mobile-nav-link--reason.is-active  .mobile-nav-text-en::before { background-image: url('../images/header-deco04.png'); }
.header__mobile-nav-link--company.is-active .mobile-nav-text-en::before { background-image: url('../images/header-deco05.png'); }
.header__mobile-nav-link--contact.is-active .mobile-nav-text-en::before { background-image: url('../images/header-deco06.png'); }

.mobile-nav-text {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
}

.mobile-nav-text-ja {
    font-size: 1.25rem;
    font-weight: 700;
    line-height: 1.2;
    text-align: center;
}

.mobile-nav-text-en {
    font-size: 0.68rem;
    font-weight: 400;
    color: var(--color-text-light);
    letter-spacing: 0.1em;
    margin-top: 0.2rem;
    font-family: var(--font-en);
    text-transform: uppercase;
    text-align: center;
    position: relative;
}



/* 電話ボタン（モバイルメニュー内） */
.mobile-nav-tel-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.625rem;
    margin-top: 1rem;
    padding: 1rem 2.5rem;
    background-color: var(--color-secondary);
    color: #ffffff;
    font-size: 1.05rem;
    font-weight: 700;
    border-radius: 50px;
    text-decoration: none;
    letter-spacing: 0.08em;
    transition: background-color 0.3s ease, transform 0.3s ease;
    width: 100%;
    max-width: 240px;
}

.mobile-nav-tel-btn:hover {
    background-color: #FF8456;
    transform: translateY(-2px);
    color: #ffffff;
}

/* ========================================
   ハンバーガーメニュー サイズ調整（768px未満・576px未満）
======================================== */
/* 768px未満：トリガー38px・インク画像100px（元120px）・バー20px */
@media (max-width: 767px) {
    .header__menu-trigger {
        width: 38px;
        height: 38px;
    }
    .header__menu-trigger::before {
        width: 112px;
        height: 112px;
    }
    .header__toggle span {
        width: 20px;
    }
    .header__menu-text {
        font-size: 8px;
    }
    .header__cta-mobile {
        width: 38px;
        height: 38px;
    }
    .header__cta-icon {
        font-size: 16px;
    }
}

/* 576px未満：トリガー34px・インク画像88px・バー18px */
@media (max-width: 575px) {
    .header__menu-trigger {
        width: 34px;
        height: 34px;
    }
    .header__menu-trigger::before {
        width: 104px;
        height: 104px;
    }

    .header__menu-text {
        font-size: 7px;
    }
    .header__cta-mobile {
        width: 34px;
        height: 34px;
    }
    .header__cta-icon {
        font-size: 14px;
    }
}

/* ========================================
   モバイルメニュー 小さい画面対応
======================================== */

/* 高さ667px以下 */
@media (max-height: 667px) {
    .header__mobile-nav-inner {
        padding: 3.5rem 1.5rem 2rem;
    }

    .header__mobile-nav-link {
        padding: 0.7rem 1.5rem 0.7rem 1rem;
    }

    .mobile-nav-text-ja {
        font-size: 1rem;
    }

    .mobile-nav-text-en {
        font-size: 0.6rem;
        margin-top: 0.125rem;
    }

    .mobile-nav-tel-btn {
        padding: 0.75rem 1.5rem;
        font-size: 0.9rem;
        margin-top: 0.75rem;
    }
}

/* 高さ480px以下 */
@media (max-height: 480px) {
    .header__mobile-nav-inner {
        padding: 3rem 1.5rem 1.5rem;
    }

    .header__mobile-nav-link {
        padding: 0.5rem 1.5rem 0.5rem 1rem;
    }

    .mobile-nav-text-ja {
        font-size: 0.875rem;
    }

    .mobile-nav-text-en {
        font-size: 0.55rem;
        margin-top: 0.0625rem;
    }

    .mobile-nav-tel-btn {
        padding: 0.625rem 1.25rem;
        font-size: 0.8rem;
        margin-top: 0.5rem;
    }
}

/* ========================================
   ヘッダー（タブレット：768px以上）
======================================== */
@media (min-width: 768px) {
    .header__inner {
        padding: 0 var(--frame-width-md);
    }

    .header__logo-catchcopy {
        font-size: 10px;
    }
    
    .header__logo-text {
        font-size: 1.5rem;
    }
    
    /* お問い合わせボタン：テキストも表示 */
    .header__cta-mobile {
        padding: 8px 16px;
        border-radius: 50px;
        width: auto;
        height: auto;
        gap: 2px;
    }
    
    .header__cta-icon {
        font-size: 14px;
    }
    
    .header__cta-text {
        display: block;
        font-size: 11px;
    }
}

/* ========================================
   ヘッダー（PC：1024px以上）
======================================== */
@media (min-width: 1024px) {
    .header {
        height: 104px;
    }
    
    .header__inner {
        padding: 0 var(--spacing-md);
        gap: var(--spacing-lg);
    }
    
    /* ロゴ：左側配置 */
    .header__logo {
        position: relative;
        left: auto;
        transform: none;
        height: 100%;
        max-height: none;
        flex: 0 0 auto;
    }
    
    .header__logo > a {
        height: 100%;
    }
    
    /* PCナビゲーション表示（グループ化・右寄せ） */
    .header__nav {
        display: flex;
        margin-left: auto;
    }
    
    .header__nav-list {
        display: flex;
        align-items: center;
        gap: 0;
        list-style: none;
    }
    
    .header__nav-item {
        flex: 0 0 auto;
        display: flex;
    }
    
    .header__nav-link {
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 8px;
        font-size: 14px;
        font-weight: 500;
        color: var(--color-title);
        position: relative;
        padding: 18px 16px;
        white-space: nowrap;
        min-width: 100px;
        transition: color 0.3s ease;
    }
    
    .header__nav-text-ja {
        font-size: 14px;
        font-weight: 600;
        line-height: 1.2;
        position: relative;
    }
    
    .header__nav-text-en {
        font-size: 10px;
        font-weight: 400;
        letter-spacing: 0.1em;
        text-transform: uppercase;
        font-family: var(--font-en);
        color: rgba(255, 255, 255, 0.65);
        line-height: 1;
        position: relative;
        transition: color 0.3s ease;
    }

    .header__nav-link:hover .header__nav-text-en,
    .header__nav-link.is-active .header__nav-text-en {
        color: #ffffff;
    }
    
    /* 英語テキスト部分に装飾画像用の疑似要素 */
    .header__nav-text-en::before {
        content: '';
        position: absolute;
        top: 50%;
        left: 50%;
        transform: translate(-50%, -50%);
        width: 32px;
        height: 32px;
        background-size: contain;
        background-position: center;
        background-repeat: no-repeat;
        opacity: 0;
        transition: opacity 0.3s ease;
        z-index: 0;
    }

    .header__nav-link:hover .header__nav-text-en::before,
    .header__nav-link.is-active .header__nav-text-en::before {
        opacity: 0.4;
    }
    .header__nav-link--home      .header__nav-text-en::before { background-image: url('../images/header-deco01.png'); }
    .header__nav-link--company   .header__nav-text-en::before { background-image: url('../images/header-deco05.png'); }
    .header__nav-link--business  .header__nav-text-en::before { background-image: url('../images/header-deco02.png'); }
    .header__nav-link--works     .header__nav-text-en::before { background-image: url('../images/header-deco03.png'); }
    .header__nav-link--strengths .header__nav-text-en::before { background-image: url('../images/header-deco04.png'); }
    .header__nav-link--contact   .header__nav-text-en::before { background-image: url('../images/header-deco06.png'); }
    
    /* モバイルメニュー非表示 */
    .header__menu-trigger {
        display: none;
    }
    
    .header__mobile-nav {
        display: none;
    }
}

@media (min-width: 1200px) {
    .header__nav-link {
        padding: 20px 18px;
        min-width: 105px;
    }

    .header__nav-text-ja {
        font-size: 14.5px;
    }

    .header__nav-text-en {
        font-size: 10.5px;
    }
}

/* ========================================
   セクションタイトル（共通）
======================================== */
.title__header {
    margin-bottom: var(--spacing-md);
}

/* タイトルの配置パターン */
.title__header--center {
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.title__header--left {
    text-align: left;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.title__header--right {
    text-align: right;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
}

.title__en {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: var(--spacing-xxs);
    font-family: var(--font-en);
}

/* セクションごとのtitle__enカラー（前セクションの色で視線誘導） */
.sec--company .title__en { color: #d04b6e; }  /* マゼンタ */
.sec--service .title__en { color: #22b573; }  /* グリーン */
.sec--works   .title__en { color: #4d90ab; }  /* ブルー */
.sec--reason  .title__en { color: #f0c838; }  /* イエロー */
.contact      .title__en { color: #52b2cc; }  /* 水色 */

@media (min-width: 768px) {
    .title__en {
        font-size: 16px;
        letter-spacing: 1.5px;
    }
}

@media (min-width: 1024px) {
    .title__en {
        font-size: 17px;
        letter-spacing: 2px;
    }
}

.title__deco {
    width: 24px;
    height: 24px;
    object-fit: contain;
    flex-shrink: 0;
    transform-origin: center center;
    /* デフォルトは通常状態 */
}

@media (min-width: 768px) {
    .title__deco {
        width: 28px;
        height: 28px;
    }
}

/* ========================================
   セクションタイトルデコ ポップアニメーション
   IntersectionObserver で .is-deco-pop を付与
======================================== */
@keyframes deco-pop {
    0%   { transform: scale(1);    }
    30%  { transform: scale(1.55); }
    55%  { transform: scale(0.88); }
    75%  { transform: scale(1.18); }
    90%  { transform: scale(0.96); }
    100% { transform: scale(1);    }
}

.title__deco.is-deco-pop {
    animation: deco-pop 0.65s cubic-bezier(0.22, 0.61, 0.36, 1) 0.3s forwards;
}

.title__ja {
    font-size: 24px;
    font-weight: 400;
    color: var(--color-text);
    font-family: var(--font-heading);
}

@media (min-width: 768px) {
    .title__ja {
        font-size: 28px;
    }
}

@media (min-width: 1024px) {
    .title__ja {
        font-size: 36px;
    }
}

/* ========================================
   お問い合わせセクション
======================================== */
.contact {
    padding: 5rem var(--spacing-sm);
    text-align: left;
    position: relative;
}

@media (min-width: 576px) {
    .contact {
        padding: var(--spacing-xxlger) var(--spacing-md);
    }
}

@media (min-width: 768px) {
    .contact {
        padding: 7rem var(--spacing-md);
    }
}

@media (min-width: 1024px) {
    .contact {
        padding: 8.25rem var(--spacing-lg);
    }
}

.contact__content {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

@media (min-width: 768px) {
    .contact__content {
        flex-direction: row;
        justify-content: space-between;
        gap: 3rem;
    }
}

@media (min-width: 1024px) {
    .contact__content {
        gap: 3.5rem;
    }
}

.contact__text-wrapper {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

@media (min-width: 768px) {
    .contact__text-wrapper {
        flex: 1;
        max-width: 35rem;
    }
}

.contact__info-wrapper {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

@media (min-width: 768px) {
    .contact__info-wrapper {
        width: 50%;
    }
}

.contact__text {
    color: var(--color-text);
    font-size: var(--body-font-size-sp);
    line-height: var(--body-line-height-sp);
    letter-spacing: var(--body-letter-spacing);
    font-weight: 500;
}

.contact__highlight {
    color: var(--color-text);
    font-weight: 700;
    display: inline;
    background-image: linear-gradient(to right, rgba(82, 178, 204, 0.4) 0%, rgba(82, 178, 204, 0.4) 100%);
    background-repeat: no-repeat;
    background-size: 100% 45%;
    background-position: 0 100%;
    padding-bottom: 0;
}

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

.contact__info-box {
    background: var(--color-white);
    padding: 1.25rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    border-radius: 0.5rem;
    text-decoration: none;
    transition: transform 0.3s ease, box-shadow 0.3s ease, background-color 0.3s ease;
    cursor: pointer;
    width: 100%;
}

@media (min-width: 768px) {
    .contact__info-box {
        padding: 1.5rem;
        gap: 1rem;
        border-radius: 1rem;
    }
}

@media (min-width: 1024px) {
    .contact__info-box {
        padding: 1.75rem;
        gap: 1.25rem;
    }
}

.contact__info-box:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

/* 電話ボックス */
.contact__info-box--phone {
    background: var(--color-secondary);
}

.contact__info-box--phone:hover {
    background: #FF8456;
}

.contact__info-box--phone .contact__info-label-top,
.contact__info-box--phone .contact__info-value,
.contact__info-box--phone .contact__info-hours,
.contact__info-box--phone .contact__info-icon i {
    color: #ffffff;
}

/* メールボックス */
.contact__info-box--email {
    background: var(--color-primary);
}

.contact__info-box--email:hover {
    background: #3D8FD1;
}

.contact__info-box--email .contact__info-label-top,
.contact__info-box--email .contact__info-link,
.contact__info-box--email .contact__info-note,
.contact__info-box--email .contact__info-icon i {
    color: #ffffff;
}

.contact__info-row {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    width: 100%;
}

.contact__info-icon {
    width: 2rem;
    height: 2rem;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

@media (min-width: 1024px) {
    .contact__info-icon {
        width: 2.25rem;
        height: 2.25rem;
    }
}

.contact__info-icon i {
    font-size: 1.5rem;
}

@media (min-width: 1024px) {
    .contact__info-icon i {
        font-size: 1.75rem;
    }
}

.contact__info-label-top {
    font-size: 1rem;
    font-family: var(--font-family);
    font-weight: 700;
    letter-spacing: 0.1em;
    text-align: center;
    color: #ffffff;
}

@media (min-width: 1024px) {
    .contact__info-label-top {
        font-size: 1.25rem;
    }
}

.contact__info-value {
    font-size: 1.25rem;
    font-family: var(--font-family);
    font-weight: 700;
    letter-spacing: var(--body-letter-spacing);
    text-align: center;
    color: #ffffff;
}

@media (min-width: 1024px) {
    .contact__info-value {
        font-size: 1.625rem;
    }
}

.contact__info-hours,
.contact__info-note {
    font-size: 0.8rem;
    font-family: var(--font-family);
    font-weight: 400;
    letter-spacing: var(--body-letter-spacing);
    text-align: center;
    color: #ffffff;
    opacity: 0.9;
}

@media (min-width: 1024px) {
    .contact__info-hours,
    .contact__info-note {
        font-size: 0.95rem;
    }
}

.contact__info-link {
    font-size: 0.95rem;
    font-family: var(--font-family);
    font-weight: 600;
    letter-spacing: var(--body-letter-spacing);
    text-align: center;
    color: #ffffff;
}

@media (min-width: 1024px) {
    .contact__info-link {
        font-size: 1.125rem;
    }
}

/* ========================================
   フッター
======================================== */
.footer {
    background-image: linear-gradient(rgb(58, 58, 58), rgb(58, 58, 58)), url('../images/header-wall.webp');
    background-size: cover;
    background-position: center;
    color: #fff;
    padding: var(--spacing-lger) var(--spacing-sm) 2rem;
}

@media (min-width: 576px) {
    .footer {
        padding: var(--spacing-xl) var(--spacing-md) 2rem;
    }
}

@media (min-width: 768px) {
    .footer {
        padding: 4.5rem var(--spacing-md) 2rem;
    }
}

@media (min-width: 1200px) {
    .footer {
        padding: 4.5rem var(--spacing-xxlger) 2rem;
    }
}

.footer__inner {
    max-width: var(--section-content-width-sm);
    margin: 0 auto;
    width: 100%;
}


@media (min-width: 768px) {
    .footer__inner {
        max-width: var(--section-content-width-md);
    }
}

@media (min-width: 1024px) {
    .footer__inner {
        max-width: var(--section-content-width-lg);
    }
}

@media (min-width: 1200px) {
    .footer__inner {
        max-width: var(--section-content-width-exlg);
    }
}

/* footer__content: ロゴおよびfooter__mainを縦並びで囲む。border-bottomが仕切り線 */
.footer__content {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-lg);
    padding-bottom: var(--spacing-lg);
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
    position: relative;
    overflow: hidden;
}

.footer__content::after {
    content: '';
    position: absolute;
    bottom: 0.5rem;
    right: 0.25rem;
    width: 80px;
    height: 80px;
    background-image: url('../images/section-bg-deco.png');
    background-size: contain;
    background-position: center;
    background-repeat: no-repeat;
    opacity: 0.25;
    pointer-events: none;
}

@media (min-width: 576px) {
    .footer__content::after {
        bottom: 1rem;
        right: 0.5rem;
    }
}

.footer__logo {
    line-height: 0;
}

.footer__logo-link {
    display: inline-block;
    line-height: 0;
    width: fit-content;
    transition: opacity 0.3s ease;
}

.footer__logo-link:hover {
    opacity: 0.9;
}

.footer__logo-img {
    height: auto;
    max-height: 60px;
    max-width: 200px;
    width: auto;
    object-fit: contain;
    display: block;
}

@media (min-width: 768px) {
    .footer__logo-img {
        max-height: 70px;
    }
}

.footer__text {
    font-size: 14px;
    line-height: 1.8;
    color: rgba(255, 255, 255, 0.8);
}

@media (min-width: 768px) {
    .footer__text {
        font-size: 15px;
    }
}

/* ナビと会社情報のメインエリア */
.footer__main {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-lg);
}

@media (min-width: 768px) {
    .footer__main {
        flex-direction: row;
        justify-content: space-between;
        align-items: flex-start;
        gap: var(--spacing-xl);
    }
}

/* ナビゲーション */
.footer__nav {
    display: flex;
    flex-direction: column;
}

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

.footer__nav-title {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 1.2rem;
    font-weight: 500;
    margin-bottom: var(--spacing-sm);
    color: #fff;
}

/* 2行構造: 各columnが横並びの1行になる */
.footer__nav-columns {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-sm);
    width: 100%;
}

.footer__nav-column {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: var(--spacing-xs) 0;
}

.footer__nav-link {
    font-size: 1rem;
    color: rgba(255, 255, 255, 0.8);
    transition: color 0.3s ease;
    display: inline-block;
    width: 6.5rem;
    position: relative;
}

.footer__nav-link {
    position: relative;
}

.footer__nav-link-text {
    position: relative;
    z-index: 1;
}

.footer__nav-link-text::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 36px;
    height: 36px;
    background-size: contain;
    background-position: center;
    background-repeat: no-repeat;
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: 0;
    pointer-events: none;
}

.footer__nav-link:hover,
.footer__nav-link.is-active {
    color: #fff;
}

.footer__nav-link:hover .footer__nav-link-text::before,
.footer__nav-link.is-active .footer__nav-link-text::before {
    opacity: 0.4;
}

.footer__nav-link--home    .footer__nav-link-text::before { background-image: url('../images/header-deco01.png'); }
.footer__nav-link--company .footer__nav-link-text::before { background-image: url('../images/header-deco05.png'); }
.footer__nav-link--service .footer__nav-link-text::before { background-image: url('../images/header-deco02.png'); }
.footer__nav-link--works   .footer__nav-link-text::before { background-image: url('../images/header-deco03.png'); }
.footer__nav-link--reason  .footer__nav-link-text::before { background-image: url('../images/header-deco04.png'); }
.footer__nav-link--contact .footer__nav-link-text::before { background-image: url('../images/header-deco06.png'); }

/* 会社情報 */
.footer__info {
    display: flex;
    flex-direction: column;
}

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

.footer__info-title {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 1.2rem;
    font-weight: 500;
    margin-bottom: var(--spacing-sm);
    color: #fff;
}

/* フッタータイトルのデコ画像：ダーク背景で白に表示 */
.footer__title-deco {
    filter: brightness(0) invert(1);
    opacity: 0.75;
}

.footer__details {
    font-size: 13px;
    line-height: 1.8;
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: var(--spacing-md);
}

@media (min-width: 768px) {
    .footer__details {
        font-size: 14px;
    }
}

.footer__contact {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-xxs);
}

.footer__contact-item {
    font-size: 13px;
    color: rgba(255, 255, 255, 0.8);
}

@media (min-width: 768px) {
    .footer__contact-item {
        font-size: 14px;
    }
}

.footer__contact-label {
    display: inline-block;
    color: rgba(255, 255, 255, 0.6);
    margin-right: 0.5rem;
}

.footer__contact-link {
    color: #fff;
    font-weight: 600;
    transition: opacity 0.3s ease;
}

.footer__contact-link:hover {
    opacity: 0.8;
}

.footer__contact-text {
    color: rgba(255, 255, 255, 0.8);
}

/* 著作権 */
.footer__bottom {
    text-align: center;
    padding-top: var(--spacing-md);
}

.footer__copyright {
    font-size: 12px;
    color: rgba(255, 255, 255, 0.6);
}

@media (min-width: 768px) {
    .footer__copyright {
        font-size: 13px;
    }
}

/* ========================================
   共通ボタン
======================================== */
.btn {
    /* 全ボタン共通の土台のみ */
    display: inline-flex;
    align-items: center;
    cursor: pointer;
    text-decoration: none;
    line-height: 1;
    border: none;
    border-radius: 50px 0 0 50px;
    overflow: hidden;
}

/* 横長長方形ボタン（クリップリビール演出用） */
.btn--rect {
    border: none;
    padding: 1.5rem 1rem;
    font-size: var(--body-font-size-sp);
    font-weight: 600;
    letter-spacing: 0.05em;
    justify-content: center;
    position: relative;
    z-index: 0;
    transition: color 0.3s ease, background-color 0.3s ease;
    width: 192px;
}

@media (min-width: 768px) {
    .btn--rect {
        padding: 1.75rem 1.25rem;
        font-size: var(--body-font-size-pc);
        width: 212px;
    }
}

/* ========================================
   ページトップボタン
======================================== */
.page-top {
    position: fixed;
    bottom: 20px;
    right: 20px;
    width: 48px;
    height: 48px;
    background-color: transparent;
    color: #fff;
    border: none;
    border-radius: 0;
    cursor: pointer;
    box-shadow: none;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 999;
    display: flex;
    align-items: center;
    justify-content: center;
}

.page-top::before {
    content: '';
    position: absolute;
    inset: 0;
    background-size: contain;
    background-position: center;
    background-repeat: no-repeat;
    transition: background-image 0.3s ease;
    pointer-events: none;
}

/* ページトップボタン背景画像：全セクション共通 */
.page-top::before { background-image: url('../images/page-top.png'); }

/* フッターエリア内ではpage-top-bottom.pngに切り替え + アイコン色変更 */
body.in-footer .page-top::before { background-image: url('../images/page-top-bottom.png'); }
body.in-footer .page-top { color: #3a3a3a; }
body.in-footer .page-top i { color: #3a3a3a; }

@media (min-width: 768px) {
    .page-top {
        width: 48px;
        height: 48px;
        bottom: 30px;
        right: 30px;
    }
}

.page-top.is-show {
    opacity: 0.75;
    visibility: visible;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.05));
}

.page-top:hover {
    opacity: 1;
    transform: translateY(-4px);
    filter: drop-shadow(0 3px 6px rgba(0, 0, 0, 0.1));
}

/* セクションに合わせてボタン色を変更 */

.page-top i {
    font-size: 20px;
    position: relative;
    z-index: 1;
    padding-bottom: 6px;
}

.page-top__arrow {
    font-size: 20px;
    font-weight: 700;
}

/* ========================================
   sec：各コンテンツセクション共通ラッパー
   （トップページ・サブページ共通で使用）
======================================== */
.sec {
    padding: 5rem var(--spacing-sm);
    position: relative;
    overflow: visible;
}

@media (min-width: 576px) {
    .sec {
        padding: var(--spacing-xxlger) var(--spacing-md);
    }
}

@media (min-width: 768px) {
    .sec {
        padding: 7rem var(--spacing-md);
    }
}

@media (min-width: 1024px) {
    .sec {
        padding: 8.25rem var(--spacing-lg);
    }
}

@media (min-width: 1200px) {
    .sec {
        padding: 9rem var(--spacing-xxlger);
    }
}

/* セクション下部フレームライン */
.sec::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    width: 100%;
    height: var(--frame-width-sm);
    pointer-events: none;
    z-index: 10;
}

@media (min-width: 768px) {
    .sec::after { height: var(--frame-width-md); }
}

@media (min-width: 1024px) {
    .sec::after { height: var(--frame-width-lg); }
}

.sec--company::after { background-color: var(--color-frame); }
.sec--service::after { background-color: var(--color-frame); }
.sec--works::after   { background-color: var(--color-frame); }
.sec--reason::after  { background-color: var(--color-frame); }
.sec--news::after    { background-color: var(--color-frame); }



/* 各セクションの背景色 */
.sec--works {
    background: none;
}

/* セクション導入文 */
.sec__description {
    font-size: var(--body-font-size-sp);
    line-height: var(--body-line-height-sp);
    color: var(--color-text);
    letter-spacing: var(--body-letter-spacing);
    text-align: left;
    font-weight: 500;
    max-width: 1000px;
    width: 100%;
    margin: 0 auto var(--spacing-md);
}

@media (min-width: 768px) {
    .sec__description {
        font-size: var(--body-font-size-pc);
        line-height: var(--body-line-height-pc);
        text-align: center;
        margin-bottom: 3rem;
    }
}

/* ========================================
   サブページ共通スタイル
======================================== */

/* ページヒーロー */
.page-hero {
    position: relative;
    margin-top: 0;
    aspect-ratio: 16 / 6;
    min-height: 280px;
    background-size: cover;
    background-position: center 40%;
    background-repeat: no-repeat;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    width: 100%;
}

/* ヒーローオーバーレイ */
.page-hero__overlay {
    position: absolute;
    inset: 0;
    z-index: 1;
}

/* 内側コンテンツ */
.page-hero__inner {
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    transform: translateY(-50%);
    z-index: 2;
    padding: 0 var(--spacing-md);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
}

/* 英語サブタイトル */
.page-hero__en {
    display: block;
    font-family: var(--font-en);
    font-size: 0.8rem;
    font-weight: 500;
    letter-spacing: 0.25em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.95);
    text-align: center;
    width: 100%;
}

@media (min-width: 768px) {
    .page-hero__en {
        font-size: 0.95rem;
    }
}

/* ページタイトル */
.page-hero__title {
    font-size: 2rem;
    font-weight: 700;
    color: #ffffff;
    line-height: 1.3;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
    margin: 0;
    text-align: center;
    width: fit-content;  /* マーカーをテキスト幅に合わせる */
    max-width: 100%;
}

@media (min-width: 768px) {
    .page-hero__title {
        font-size: 2.75rem;
    }
}

@media (min-width: 1024px) {
    .page-hero__title {
        font-size: 3.25rem;
    }
}

/* デコ（左右フレームライン） */
.page-hero::before,
.page-hero::after {
    content: '';
    position: absolute;
    top: 0;
    width: var(--frame-width-sm);
    height: 100%;
    z-index: 3;
    pointer-events: none;
}

.page-hero::before { left: 0; }
.page-hero::after  { right: 0; }

/* 会社案内 */
.page-hero--company::before,
.page-hero--company::after { background-color: var(--color-frame); }

/* 事業内容 */
.page-hero--service::before,
.page-hero--service::after { background-color: var(--color-frame); }

/* 施工実績 */
.page-hero--works::before,
.page-hero--works::after   { background-color: var(--color-frame); }

/* 選ばれる理由 */
.page-hero--reason::before,
.page-hero--reason::after { background-color: var(--color-frame); }

/* お問い合わせ */
.page-hero--contact::before,
.page-hero--contact::after { background-color: var(--color-frame); }

/* 新着情報 */
.page-hero--news::before,
.page-hero--news::after    { background-color: var(--color-frame); }

@media (min-width: 768px) {
    .page-hero::before,
    .page-hero::after { width: var(--frame-width-md); }
}

@media (min-width: 1024px) {
    .page-hero::before,
    .page-hero::after { width: var(--frame-width-lg); }
}

/* ========================================
   page-hero パンくずリスト（bottom-left）
======================================== */
.page-hero__breadcrumb {
    position: absolute;
    bottom: 0;
    left: 0;
    z-index: 4;
    padding: 7px calc(var(--frame-width-sm) + 1rem) calc(7px + var(--frame-width-sm)) calc(var(--frame-width-sm) + 0.875rem);
    background-color: rgba(0, 0, 0, 0.32); /* fallback */
    border-radius: 0 10px 0 0;
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
}

.page-hero--company .page-hero__breadcrumb { background-color: var(--color-frame); }
.page-hero--service .page-hero__breadcrumb { background-color: var(--color-frame); }
.page-hero--works   .page-hero__breadcrumb { background-color: var(--color-frame); }
.page-hero--reason  .page-hero__breadcrumb { background-color: var(--color-frame); }
.page-hero--contact .page-hero__breadcrumb { background-color: var(--color-frame); }
.page-hero--news    .page-hero__breadcrumb { background-color: var(--color-frame); }

.breadcrumb-list {
    display: flex;
    align-items: center;
    list-style: none;
    flex-wrap: wrap;
    gap: 0;
}

.breadcrumb-item {
    display: flex;
    align-items: center;
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.85);
    line-height: 1;
}

.breadcrumb-item + .breadcrumb-item::before {
    content: '›';
    margin: 0 6px;
    color: rgba(255, 255, 255, 0.5);
    font-size: 0.9rem;
}

.breadcrumb-item a {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    color: rgba(255, 255, 255, 0.85);
    text-decoration: none;
    transition: color 0.2s ease;
}

.breadcrumb-item a:hover {
    color: #ffffff;
}

.breadcrumb-item--home a i {
    font-size: 0.75rem;
}

.breadcrumb-item--home a span {
    color: #ffffffa6;
    transition: color 0.2s ease;
}

.breadcrumb-item--home a:hover span {
    color: #ffffff;
}

.breadcrumb-item:last-child span {
    color: #ffffff;
}

@media (min-width: 768px) {
    .page-hero__breadcrumb {
        padding: 8px calc(var(--frame-width-md) + 1.25rem) calc(8px + var(--frame-width-md)) calc(var(--frame-width-md) + 1rem);
        border-radius: 0 12px 0 0;
    }
    .breadcrumb-item {
        font-size: 0.8rem;
    }
}

@media (min-width: 1024px) {
    .breadcrumb-item {
        font-size: 0.82rem;
    }
}

@media (min-width: 1024px) {
    .page-hero__breadcrumb {
        padding: 9px calc(var(--frame-width-lg) + 1.5rem) calc(9px + var(--frame-width-lg)) calc(var(--frame-width-lg) + 1.25rem);
    }
}

/* ========================================
   page-hero タイトル マーカーアニメーション
   左→右にスライドイン（FV .fv__title-accent と同じ仕組み）
======================================== */
/* タイトルのマーカーを ::after で左→右に伸ばす */
.page-hero__title {
    position: relative;
    overflow: visible;
}

.page-hero__title::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 0%;
    height: 40%;
    transition: width 0.65s cubic-bezier(0.4, 0, 0.2, 1);
    pointer-events: none;
    z-index: -1;
}

.page-hero__title.is-marker-revealed::after {
    width: 100%;
}

/* ページごとのマーカー色（overlay と揃えたテーマカラー） */
.page-hero--company .page-hero__title::after { background-color: rgba(224, 114, 138, 0.55); }
.page-hero--service .page-hero__title::after { background-color: rgba(61,  190, 126, 0.55); }
.page-hero--works   .page-hero__title::after { background-color: rgba(77,  144, 171, 0.55); }
.page-hero--reason  .page-hero__title::after { background-color: rgba(240, 200,  56, 0.55); }
.page-hero--contact .page-hero__title::after { background-color: rgba(69,  184, 204, 0.55); }
.page-hero--news    .page-hero__title::after { background-color: rgba(43,  123, 191, 0.55); }

/* ページ本文エリア（ヒーロー以降の余白） */
.page-body {
    padding: var(--spacing-xxl) var(--spacing-sm);
    min-height: 200px;
}

@media (min-width: 768px) {
    .page-body {
        padding: var(--spacing-xxl) var(--spacing-md);
    }
}

@media (min-width: 1024px) {
    .page-body {
        padding: var(--spacing-moslg) var(--spacing-lg);
    }
}

.page-body__container {
    max-width: var(--section-content-width-lg);
    margin: 0 auto;
    text-align: center;
    color: var(--color-text-light);
    font-size: 1rem;
    line-height: 2;
}

/* ========================================
   セクションブロック 左右フレーム（共通：サブページ用）
   index.cssの section-block 定義と共通化
======================================== */
.section-block {
    position: relative;
}

.section-block::before,
.section-block::after {
    content: '';
    position: absolute;
    top: 0;
    width: var(--frame-width-sm);
    height: 100%;
    z-index: 20;
    pointer-events: none;
}

.section-block::before { left: 0; }
.section-block::after  { right: 0; }

/* 各セクションカラー */
.section-block--fv::before,
.section-block--fv::after       { background-color: var(--color-frame); }

.section-block--company::before,
.section-block--company::after  { background-color: var(--color-frame); }

.section-block--service::before,
.section-block--service::after  { background-color: var(--color-frame); }

.section-block--works::before,
.section-block--works::after    { background-color: var(--color-frame); }

.section-block--reason::before,
.section-block--reason::after   { background-color: var(--color-frame); }

.section-block--contact::before,
.section-block--contact::after  { background-color: var(--color-frame); }

.section-block--news::before,
.section-block--news::after     { background-color: var(--color-frame); }

/* contactセクションの背景色 */
.section-block--contact {
    background-color: #fafafa;
}

/* 背景色ユーティリティ */
.section-block--bg-white { background-color: #ffffff; }
.section-block--bg-light { background-color: #fafafa; }

@media (min-width: 768px) {

    .section-block::before,
    .section-block::after { width: var(--frame-width-md); }
}

@media (min-width: 1024px) {
    .section-block::before,
    .section-block::after { width: var(--frame-width-lg); }
}

/* ========================================
   section-deco 共通スタイル
   各セクションの角装飾（index.cssと共通化）
======================================== */
.section-deco {
    position: absolute;
    pointer-events: none;
    z-index: 0;
    background-size: contain;
    background-repeat: no-repeat;
    opacity: 0.2;
}



.section-deco--top-right {
    top: 1.25rem;
    right: calc(var(--frame-width-sm) + 0.5rem);
    width: 100px;
    height: 100px;
    background-position: top right;
    z-index: 22;
}

.section-deco--top-left {
    top: 1.25rem;
    left: calc(var(--frame-width-sm) + 0.5rem);
    width: 100px;
    height: 100px;
    background-position: top left;
    z-index: 22;
}

.section-deco--bottom-left {
    bottom: 1.25rem;
    left: calc(var(--frame-width-sm) + 0.5rem);
    width: 80px;
    height: 80px;
    background-position: bottom left;
}

.section-deco--bottom-right {
    bottom: 1.25rem;
    right: calc(var(--frame-width-sm) + 0.5rem);
    width: 80px;
    height: 80px;
    background-position: bottom right;
}

.section-deco--hidden { display: none !important; }

.section-deco--hidden-sp { display: none; }

@media (min-width: 768px) {
    .section-deco--hidden-sp { display: block; }
}

@media (min-width: 576px) {
    .section-deco--top-right  { top: 1.5rem; right: calc(var(--frame-width-sm) + 1rem); width: 112px; height: 112px; }
    .section-deco--top-left   { top: 1.5rem; left:  calc(var(--frame-width-sm) + 1rem); width: 112px; height: 112px; }
    .section-deco--bottom-left  { bottom: 1.5rem; left:  calc(var(--frame-width-sm) + 1rem); width: 96px; height: 96px; }
    .section-deco--bottom-right { bottom: 1.5rem; right: calc(var(--frame-width-sm) + 1rem); width: 96px; height: 96px; }
}

@media (min-width: 768px) {
    .section-deco--top-right  { top: 1.5rem; right: calc(var(--frame-width-md) + 1rem); width: 144px; height: 144px; }
    .section-deco--top-left   { top: 1.5rem; left:  calc(var(--frame-width-md) + 1rem); width: 144px; height: 144px; }
    .section-deco--bottom-left  { bottom: 1.5rem; left:  calc(var(--frame-width-md) + 1rem); width: 120px; height: 120px; }
    .section-deco--bottom-right { bottom: 1.5rem; right: calc(var(--frame-width-md) + 1rem); width: 120px; height: 120px; }
}

@media (min-width: 1024px) {
    .section-deco--top-right  { top: 1.5rem; right: calc(var(--frame-width-lg) + 1.5rem); width: 160px; height: 160px; }
    .section-deco--top-left   { top: 1.5rem; left:  calc(var(--frame-width-lg) + 1.5rem); width: 160px; height: 160px; }
    .section-deco--bottom-left  { bottom: 1.5rem; left:  calc(var(--frame-width-lg) + 1.5rem); width: 144px; height: 144px; }
    .section-deco--bottom-right { bottom: 1.5rem; right: calc(var(--frame-width-lg) + 1.5rem); width: 144px; height: 144px; }
}

@media (min-width: 1440px) {
    .section-deco--top-right  { top: 1.5rem; width: 192px; height: 192px; }
    .section-deco--top-left   { top: 1.5rem; width: 192px; height: 192px; }
    .section-deco--bottom-left  { bottom: 1.5rem; width: 180px; height: 180px; }
    .section-deco--bottom-right { bottom: 1.5rem; width: 180px; height: 180px; }
}

/* ========================================
   page-hero 上フレーム（各ページカラー）
   FVの border-top と同様の上ライン
======================================== */
/* ========================================
   page-hero 背景画像（レスポンシブ対応）
   インラインstyleを廃止してCSSで管理
======================================== */
.page-hero--company { background-image: url('../images/pc-fv-image01.webp'); background-position: center 70%; }
.page-hero--service { background-image: url('../images/pc-fv-image02.webp'); }
.page-hero--works   { background-image: url('../images/service-image01.webp'); background-position: center center; }
.page-hero--reason  { background-image: url('../images/quality-image01.webp'); }
.page-hero--contact { background-image: url('../images/page-hero03.webp'); background-position: center 70%; }
.page-hero--news    { background-image: url('../images/pc-fv-image04.webp'); }

@media (min-width: 576px) {
    .page-hero--company { background-image: url('../images/pc-fv-image01.webp'); background-position: center 70%; }
    .page-hero--service { background-image: url('../images/pc-fv-image02.webp'); }
    .page-hero--works   { background-image: url('../images/service-image01.webp'); background-position: center center; }
    .page-hero--reason  { background-image: url('../images/quality-image01.webp'); }
    .page-hero--contact { background-image: url('../images/page-hero03.webp'); background-position: center 70%; }
    .page-hero--news    { background-image: url('../images/pc-fv-image04.webp'); }
}

@media (min-width: 1024px) {
    .page-hero--company { background-image: url('../images/pc-fv-image01.webp'); background-position: center 70%; }
    .page-hero--service { background-image: url('../images/pc-fv-image02.webp'); }
    .page-hero--works   { background-image: url('../images/service-image01.webp'); background-position: center center; }
    .page-hero--reason  { background-image: url('../images/quality-image01.webp'); }
    .page-hero--contact { background-image: url('../images/page-hero03.webp'); background-position: center 70%; }
    .page-hero--news    { background-image: url('../images/pc-fv-image04.webp'); }
}

.page-hero--company { border-top: var(--frame-width-sm) solid var(--color-frame); }
.page-hero--service { border-top: var(--frame-width-sm) solid var(--color-frame); }
.page-hero--works   { border-top: var(--frame-width-sm) solid var(--color-frame); }
.page-hero--reason  { border-top: var(--frame-width-sm) solid var(--color-frame); }
.page-hero--contact { border-top: var(--frame-width-sm) solid var(--color-frame); }
.page-hero--news    { border-top: var(--frame-width-sm) solid var(--color-frame); }

@media (min-width: 768px) {
    .page-hero--company,
    .page-hero--service,
    .page-hero--works,
    .page-hero--reason,
    .page-hero--contact,
    .page-hero--news    { border-top-width: var(--frame-width-md); }
}

@media (min-width: 1024px) {
    .page-hero--company,
    .page-hero--service,
    .page-hero--works,
    .page-hero--reason,
    .page-hero--contact,
    .page-hero--news    { border-top-width: var(--frame-width-lg); }
}

/* page-hero 下部フレーム（実要素・fv-bottom-frameと同構造） */
.page-hero__bottom-frame {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    width: 100%;
    height: var(--frame-width-sm);
    background-color: var(--color-frame);
    z-index: 100;
    pointer-events: none;
}

@media (min-width: 768px) {
    .page-hero__bottom-frame { height: var(--frame-width-md); }
}

@media (min-width: 1024px) {
    .page-hero__bottom-frame { height: var(--frame-width-lg); }
}

/* ========================================
   title__en ページ別カラー（サブページ）
   body.page-* クラスで制御
======================================== */
body.page-news         .sec .title__en { color: var(--color-primary); }
body.page-news-detail  .sec .title__en { color: var(--color-primary); }
body.page-contact      .sec .title__en { color: #52b2cc; }
body.page-company      .sec .title__en { color: #d04b6e; }
body.page-service      .sec .title__en { color: #22b573; }
body.page-works        .sec .title__en { color: #4d90ab; }
body.page-reason       .sec .title__en { color: #f0c838; }


/* newsページのtitle__deco画像切り替え */
body.page-news .title__en .title__deco,
body.page-news-detail .title__en .title__deco { content: none; display: none; }

body.page-news .contact .title__en::before,
body.page-news-detail .contact .title__en::before {
    background-image: url('../images/title-deco06.png');
}

body.page-news .title__en::before,
body.page-news-detail .title__en::before {
    content: '';
    display: inline-block;
    width: 24px;
    height: 24px;
    background-image: url('../images/fv-bg-deco.png');
    background-size: contain;
    background-position: center;
    background-repeat: no-repeat;
    flex-shrink: 0;
    vertical-align: middle;
}

@media (min-width: 768px) {
    body.page-news .title__en::before,
    body.page-news-detail .title__en::before {
        width: 28px;
        height: 28px;
    }
}

/* ========================================
   contact内 title__deco ページ別画像
   HTMLの img.title__deco を非表示にして疑似要素で差替
======================================== */
.contact .title__en .title__deco {
    display: none;
}

.contact .title__en::before {
    content: '';
    display: inline-block;
    width: 24px;
    height: 24px;
    background-size: contain;
    background-position: center;
    background-repeat: no-repeat;
    flex-shrink: 0;
    /* デフォルト（インデックスページ） */
    background-image: url('../images/title-deco06.png');
}

@media (min-width: 768px) {
    .contact .title__en::before {
        width: 28px;
        height: 28px;
    }
}

/* ========================================
   お問い合わせ・newsセクション title__en の ::before アニメーション
   JS が .is-deco-pop を .title__en に付与したとき発火
   img.title__deco と同じ deco-pop キーフレームを使用
======================================== */
.contact .title__en.is-deco-pop::before,
body.page-news .sec--news .title__en.is-deco-pop::before,
body.page-news-detail .sec--news .title__en.is-deco-pop::before {
    animation: deco-pop 0.65s cubic-bezier(0.22, 0.61, 0.36, 1) 0.3s forwards;
}


/* ========================================
   sec-icon（共通）
   各セクション下部フレームに重なるアイコン装飾
   ページ・セクションごとにCSSで画像を指定
======================================== */
.sec-icon {
    position: absolute;
    z-index: 11;
    pointer-events: none;
    width: 48px;
    height: 48px;
    bottom: 0.375rem;
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
}
.sec-icon--left  { left: 0.75rem; }
.sec-icon--right { right: 0.75rem; }

@media (min-width: 375px) {
    .sec-icon        { width: 56px; height: 56px; }
    .sec-icon--left  { left: 1rem; }
    .sec-icon--right { right: 1rem; }
}
@media (min-width: 576px) {
    .sec-icon        { width: 64px; height: 64px; }
    .sec-icon--left  { left: 1.25rem; }
    .sec-icon--right { right: 1.25rem; }
}
@media (min-width: 768px) {
    .sec-icon        { width: 72px; height: 72px; bottom: 0.5rem; }
    .sec-icon--left  { left: 2.5rem; }
    .sec-icon--right { right: 2.5rem; }
}
@media (min-width: 1024px) {
    .sec-icon        { width: 88px; height: 88px; bottom: 0.75rem; }
    .sec-icon--left  { left: 3rem; }
    .sec-icon--right { right: 3rem; }
}
@media (min-width: 1200px) {
    .sec-icon        { width: 96px; height: 96px; }
    .sec-icon--left  { left: 4rem; }
    .sec-icon--right { right: 4rem; }
}

/* ========================================
   固定背景画像 共通構造
   background-image は各ページのCSSで指定
======================================== */

/* ラッパー：親セクションにクリッピング */
/* ※ -webkit-mask-image は削除：iOS Safari で position:fixed 子要素が
      スクロールのたびに再描画されるバグの原因のため */
.company-bg-wrap__fixed-wrapper,
.works-bg-wrap__fixed-wrapper,
.news-bg-wrap__fixed-wrapper {
    position: absolute;
    inset: 0;
    overflow: hidden;
}

/* height は JS（animation.js）でラッパーの実際の高さに合わせる（100vh は初期値） */
.company-bg-wrap__fixed-bg,
.works-bg-wrap__fixed-bg,
.news-bg-wrap__fixed-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background-size: 576px calc(576px * 1240 / 1748);
    background-position: center top;
    background-repeat: repeat;
    pointer-events: none;
}

/* 768px以上1024px未満：768px固定でrepeat */
@media (min-width: 768px) and (max-width: 1023px) {
    .company-bg-wrap__fixed-bg,
    .works-bg-wrap__fixed-bg,
    .news-bg-wrap__fixed-bg {
        background-size: 768px calc(768px * 1240 / 1748);
        background-repeat: repeat;
    }
}

/* 1024px以上：1024px固定でrepeat */
@media (min-width: 1024px) {
    .company-bg-wrap__fixed-bg,
    .works-bg-wrap__fixed-bg,
    .news-bg-wrap__fixed-bg {
        background-size: 1024px calc(1024px * 1240 / 1748);
        background-repeat: repeat;
    }
}


/* セクション別画像（トップページ） */
.sec--company .sec-icon { background-image: url('../images/gray-bucket-icon01.png'); }
.sec--service .sec-icon { background-image: url('../images/gray-roller-icon02.png'); }
.sec--works   .sec-icon { background-image: url('../images/gray-brush-icon02.png'); }
.sec--reason  .sec-icon { background-image: url('../images/gray-brush-icon01.png'); }

/* ページ別画像（サブページ──画像を変更する場合はここで管理） */
body.page-contact .contact-form-section .sec-icon { background-image: url('../images/gray-bucket-icon02.png'); }
body.page-works .sec--works .sec-icon { background-image: url('../images/gray-brush-icon02.png'); }
body.page-news .sec--news .sec-icon,
body.page-news-detail .sec--news .sec-icon { background-image: url('../images/gray-bucket-icon02.png'); }

/* ========================================
   セクションブロック 背景色バリアント（共通）
======================================== */
.section-block--bg-white { background-color: #ffffff; }
.section-block--bg-light { background-color: #fafafa; }

/* ========================================
   施工実績 空時メッセージ（共通）
   works.php ・ index.php 共用
======================================== */
.works-empty {
    text-align: left;
    padding: var(--spacing-lg) var(--spacing-sm);
    background: rgba(255, 255, 255, 0.75);
    border: 4px solid rgba(77, 144, 171, 0.7);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
    max-width: 480px;
    margin: 0 auto;
}

@media (min-width: 475px) {
    .works-empty {
        text-align: center;
    }
}

.works-empty__icon {
    font-size: 1rem;
    color: #4d90ab;
    margin-right: 0.4em;
}

.works-empty__msg {
    font-size: 1.05rem;
    font-weight: 600;
    color: #4d90ab;
    margin-bottom: 0.6rem;
}

.works-empty__sub {
    font-size: 0.9rem;
    color: var(--color-text-light);
    line-height: var(--body-line-height-sp);
}

