/*
Theme Name: energy-works
Description: ENERGY WORKS Corporate Website
Version: 1.0.0
Author: Custom Development
*/

/* ========================================
   リセットCSS & ベーススタイル
======================================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    font-size: 16px;
    scroll-behavior: smooth;
    overflow-x: hidden; /* 追加：横スクロール防止 */
}

body {
    font-family: 'Noto Sans JP', sans-serif;
    font-weight: 400;
    line-height: 1.6;
    color: #333;
    background-color: #ffffff;
    overflow-x: hidden; /* 追加：横スクロール防止 */
    position: relative; /* 追加：子要素の基準点 */
}

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

a {
    text-decoration: none;
    color: inherit;
    transition: all 0.3s ease;
}

ul, ol {
    list-style: none;
}

button {
    border: none;
    background: none;
    cursor: pointer;
    padding: 0;
}

/* ========================================
   ヘッダー
======================================== */
.site-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    padding: 20px 0;
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 70px;
}

.site-logo {
    font-size: 24px;
    font-weight: 500;
    color: #fff;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
}

.logo-img {
    height: 40px;
    width: auto;
    display: block;
}

.hamburger-menu {
    width: 70px;
    height: 70px;
    position: relative;
    cursor: pointer;
    z-index: 1001;
    background-image: url('./assets/img/menu_button.png');
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    border: none;
    background-color: transparent;
}

.hamburger-menu.active {
    background-image: none;
}

.hamburger-line {
    display: none;
}

.hamburger-menu.active .hamburger-line {
    display: block;
    width: 100%;
    height: 2px;
    background-color: #fff;
    position: absolute;
    left: 0;
    transition: all 0.3s ease;
}

.hamburger-menu.active .hamburger-line:nth-child(1) { 
    top: 12px; 
    transform: rotate(45deg);
    top: 19px;
}

.hamburger-menu.active .hamburger-line:nth-child(2) { 
    top: 19px; 
    opacity: 0;
}

.hamburger-menu.active .hamburger-line:nth-child(3) { 
    top: 26px; 
    transform: rotate(-45deg);
    top: 19px;
}

/* ========================================
   ナビゲーションメニュー
======================================== */
.nav-overlay {
    position: fixed;
    top: 0;
    right: 0;
    width: 100%;
    height: 100vh;
    z-index: 1001;
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.nav-overlay.active {
    pointer-events: all;
    opacity: 1;
}

.nav-menu-container {
    position: absolute;
    top: 0;
    right: 0;
    width: 80%;
    height: 100vh;
    background: rgba(0, 0, 0, 0.8);
    transform: translateX(100%);
    transition: transform 0.3s ease;
    display: flex;
}

.nav-overlay.active .nav-menu-container {
    transform: translateX(0);
}

.nav-content-section {
    width: 100%;
    padding: 80px 60px;
    padding-right: max(70px, calc((100vw - 1400px) / 2 + 70px));
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    justify-content: center;
}

.nav-close-btn {
    position: absolute;
    top: 50px;
    right: max(70px, calc((100vw - 1400px) / 2 + 70px));
    width: 40px;
    height: 40px;
    background-image: url('./assets/img/close_button.png');
    background-size: 200% 200%;
    background-repeat: no-repeat;
    background-position: center;
    background-color: transparent;
    border: none;
    cursor: pointer;
    z-index: 1002;
    transition: opacity 0.3s ease;
    size: 200%;
}

.nav-close-btn:hover {
    opacity: 0.7;
}

.primary-navigation {
    padding: 17%;
}

.nav-menu {
    list-style: none;
    margin: 35px 0;
    padding: 0;
}

.nav-item {
    margin-bottom: 40px;
}

.nav-menu a {
    color: #fff;
    font-family: 'Secular One', sans-serif;
    font-size: 40px;
    font-weight: 400;
    letter-spacing: 1px;
    text-transform: uppercase;
    display: inline-flex;
    align-items: center;
    position: relative;
    text-decoration: none;
    transition: all 0.3s ease;
    overflow: hidden;
    padding-bottom: 4px;
}

.nav-menu a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background-color: #FFFFFF;
    transform: translateX(-100%);
    transition: transform 0.4s ease;
}

.nav-item a:hover::after {
    transform: translateX(0);
}

.nav-item a.active {
    position: relative;
}

.nav-item a.active::after {
    transform: translateX(0);
}

.nav-item a .menu-icon {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background-color: #90EE90;
    margin-left: 15px;
    flex-shrink: 0;
}

.nav-item.nav-label {
    pointer-events: none;
}

.nav-text {
    color: #fff;
    font-family: 'Secular One', sans-serif;
    font-size: 40px;
    font-weight: 400;
    letter-spacing: 1px;
    text-transform: uppercase;
    display: inline-flex;
    align-items: center;
    position: relative;
    text-decoration: none;
    transition: all 0.3s ease;
    overflow: hidden;
    padding-bottom: 4px;
}

.nav-menu > .nav-label {
    margin-bottom: 10px;
}

/* サブメニュー項目（総合建設業） */
.nav-sub-item-construction {    
    margin-bottom: 10px;
}

/* nav-linkの基本スタイル */
.nav-link {
    position: relative;
    display: inline-block;
    padding: 10px 0;
}

.nav-item.nav-sub-item .nav-link, 
.nav-item.nav-sub-item-construction .nav-link {
    font-family: 'Noto Sans JP', sans-serif;
    font-size: 36px;
    font-weight: 500;
    position: relative;
    margin-left: 20px;
}

/* 通常のメニュー項目（About, Works, Recruit, Contact）の下線 */
.nav-item:not(.nav-label):not(.nav-sub-item):not(.nav-sub-item-construction) .nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 3px;
    background: #FFFFFF;
    transition: width 0.3s ease;
}

.nav-item:not(.nav-label):not(.nav-sub-item):not(.nav-sub-item-construction) .nav-link:hover::after {
    width: 100%;
}

/* サブメニュー項目（総合建設業、省エネ遮熱事業）の下線 */
.nav-sub-item .nav-link::after,
.nav-sub-item-construction .nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 3px;
    background: #FFFFFF;
    transition: width 0.3s ease;
}

.nav-sub-item .nav-link:hover::after,
.nav-sub-item-construction .nav-link:hover::after {
    width: 100%;
}



/* ========================================
   メインコンテンツ
======================================== */

/* ========================================
   ヒーローセクション
======================================== */
.hero-section {
    height: 100vh;
    min-height: 600px;
    position: relative;
    display: flex;
    align-items: flex-end;
    justify-content: flex-start;
    overflow: hidden;
}

/* スライドショー背景 */
.hero-slideshow {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
}

.hero-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    opacity: 0;
    transition: opacity 1.5s ease-in-out;
}

.hero-slide.active {
    opacity: 1;
}

.hero-content {
    color: #fff;
    z-index: 2;
    position: relative;
    padding-bottom: 120px;
    width: 100%;
}

.hero-subtitle {
    display: block;  /* H1内の<span>でも改行表示（旧<p>の挙動を保持） */
    font-family: 'Noto Sans JP', sans-serif;
    font-size: 60px;
    font-weight: 900;
    margin-bottom: 30px;
    padding: 0 100px;
    letter-spacing: 6px;
    color: #FFFFFF;
    text-shadow:
        0 2px 20px rgba(0, 0, 0, 0.55),
        0 0 40px rgba(0, 0, 0, 0.35);
    line-height: 1.3;
}

.hero-title {
    font-family: 'Barlow', sans-serif;
    font-size: 120px;
    font-weight: 600;
    line-height: 1.2;
    letter-spacing: 3px;
    overflow: hidden;
    width: 100%;
    font-style: italic;
}

.sliding-text {
    display: inline-block;
    white-space: nowrap;
    animation: slideLeft 15s linear infinite;
    will-change: transform;
    /* 緑→青の全体グラデーション（テキスト自体に適用） */
    background: linear-gradient(90deg, #ADE35C 0%, #6BC3F0 50%, #518fc7 100%);
    background-size: 50% 100%;
    background-repeat: repeat-x;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    color: #6BC3F0; /* フォールバック */
}

/* 既存のgradient-textクラスは残存HTMLでも色が付くようフォールバック保持 */
.hero-title .gradient-text {
    background: linear-gradient(90deg, #ADE35C 0%, #518fc7 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    color: #FFFFFF;
}

@keyframes slideLeft {
    0% {
        transform: translateX(0);
    }
    100% {
        transform: translateX(-50%);
    }
}

/* スクロールインジケーター */
.hero-scroll-indicator {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 10;
    cursor: pointer;
}

/* 円（固定） */
.scroll-arrow-circle {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 60px;
    height: 60px;
    border: 2px solid rgba(255, 255, 255, 0.8);
    border-radius: 50%;
    position: relative;
    transition: border-color 0.3s ease;
}

/* 矢印（バウンスアニメーション） */
.scroll-arrow {
    display: flex;
    align-items: center;
    justify-content: center;
    animation: arrow-bounce 3s ease-in-out infinite;
}

.scroll-arrow img {
    display: block;
    width: 24px;
    height: 24px;
}

/* ホバー時 */
.hero-scroll-indicator:hover .scroll-arrow-circle {
    border-color: #FFFFFF;
}

/* 矢印のバウンスアニメーション */
@keyframes arrow-bounce {
    0% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(10px);
    }
    100% {
        transform: translateY(0);
    }
}

/* ========================================
   メッセージセクション
======================================== */
.home-message-section {
    background: linear-gradient(to bottom, rgba(245, 248, 240, 100) 75%, rgba(245, 248, 240, 0) 100%);
    padding: 200px 0;
    position: relative;
    overflow: hidden;
    min-height: 600px;
    display: flex;
    align-items: center;
    z-index: 1;
}

.message-caption {
    margin: 40px 0 0 0;
    padding: 0;
    display: flex;
    justify-content: flex-end;
    width: 100%;
}

.message-caption-name {
    font-family: 'Yuji Mai', 'Noto Sans JP', sans-serif;
    font-size: 36px;
    color: #2a2a2a;
    letter-spacing: 0.12em;
    line-height: 1;
}

@media screen and (max-width: 767px) {
    .message-caption {
        margin-top: 30px;
    }
    .message-caption-name {
        font-size: 22px;
        letter-spacing: 0.06em;
        white-space: nowrap;
    }
}

.home-message-section::after {
    opacity: 0;
}

.message-background-elements {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 1;
}

.bg-circle {
    position: absolute;
    border-radius: 50%;
    opacity: 0.8;
    z-index: 1000;
}

/* 青いグラデーション円 */
.bg-circle-blue-large {
    width: 150px;
    height: 150px;
}

.bg-circle-blue-medium {
    width: 100px;
    height: 100px;
}

.bg-circle-blue-small {
    width: 60px;
    height: 60px;
}

/* 緑のグラデーション円 */
.bg-circle-green-large {
    width: 150px;
    height: 150px;
}

.bg-circle-green-medium {
    width: 100px;
    height: 100px;
}

.bg-circle-green-small {
    width: 60px;
    height: 60px;
}

/* 円の配置と個別のグラデーション方向 */
.circle-1 { 
    top: 15%; 
    left: 5%; 
    background: linear-gradient(135deg, #24853B 0%, #ADE35C 50%, #FFFFFF 100%);
}

.circle-2 { 
    top: 10%; 
    left: 25%; 
    background: linear-gradient(120deg, #7BC1FE 0%, #A7F2FB 50%, #FFFFFF 100%);
}

.circle-3 { 
    top: 5%; 
    right: 8%; 
    background: linear-gradient(225deg, #7BC1FE 0%, #A7F2FB 50%, #FFFFFF 100%);
}

.circle-4 { 
    top: 45%; 
    left: 8%; 
    background: linear-gradient(90deg, #24853B 0%, #ADE35C 50%, #FFFFFF 100%);
}

.circle-5 { 
    top: 70%; 
    left: 35%; 
    background: linear-gradient(45deg, #24853B 0%, #ADE35C 50%, #FFFFFF 100%);
}

.circle-6 { 
    top: 30%; 
    right: 30%; 
    background: linear-gradient(180deg, #7BC1FE 0%, #A7F2FB 50%, #FFFFFF 100%);
}

.circle-7 { 
    bottom: 15%; 
    left: 15%; 
    background: linear-gradient(60deg, #7BC1FE 0%, #A7F2FB 50%, #FFFFFF 100%);
}

.circle-8 { 
    bottom: 10%; 
    right: 5%; 
    background: linear-gradient(315deg, #7BC1FE 0%, #A7F2FB 50%, #FFFFFF 100%);
}

.circle-9 { 
    bottom: 20%; 
    right: 20%; 
    background: linear-gradient(300deg, #24853B 0%, #ADE35C 50%, #FFFFFF 100%);
}

/* 初期状態の大きな円（トップページ用） */
.home-message-section .initial-circle {
    position: absolute;
    border-radius: 50%;
    opacity: 1;
    transition: all 0.8s ease-out;
}

.home-message-section .initial-circle-green {
    width: 250px;
    height: 250px;
    background: linear-gradient(300deg, #24853B 0%, #ADE35C 50%, #FFFFFF 100%);
    top: 30%;
    left: 20%;
    z-index: 2;
}

.home-message-section .initial-circle-blue {
    width: 200px;
    height: 200px;
    background: linear-gradient(315deg, #7BC1FE 0%, #A7F2FB 50%, #FFFFFF 100%);
    top: 40%;
    right: 25%;
    z-index: 2;
}

/* 弾けるアニメーション */
.initial-circle.burst {
    transform: scale(3);
    opacity: 0;
}

/* 背景円の初期状態（非表示） */
.bg-circle {
    opacity: 0;
    transform: scale(0);
    transition: all 0.6s ease-out;
}

/* 背景円のアニメーション後の状態 */
.bg-circle.show {
    opacity: 0.8;
    transform: scale(1);
}

/* 各円に遅延を設定 */
.circle-1.show { transition-delay: 0s; }
.circle-2.show { transition-delay: 0.1s; }
.circle-3.show { transition-delay: 0.2s; }
.circle-4.show { transition-delay: 0.3s; }
.circle-5.show { transition-delay: 0.4s; }
.circle-6.show { transition-delay: 0.15s; }
.circle-7.show { transition-delay: 0.25s; }
.circle-8.show { transition-delay: 0.35s; }
.circle-9.show { transition-delay: 0.45s; }
.circle-10.show { transition-delay: 0.5s; }

.message-content {
    position: relative;
    z-index: 3;
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
}

.message-title {
    font-family: 'Noto Sans JP', sans-serif;
    font-size: 40px;
    font-weight: 700;
    line-height: 2.0;
    color: #000000;
    margin-bottom: 60px;
}

.message-title .underline-blue {
    position: relative;
    display: inline-block;
}

.message-title .underline-blue::after {
    content: '';
    position: absolute;
    bottom: 0px;
    left: 0;
    width: 100%;
    height: 20px;
    background: linear-gradient(to right, #D7ECFE 0%, #7BC1FE 100%);
    border-radius: 10px;
    z-index: -1;
}

.message-title .underline-green {
    position: relative;
    display: inline-block;
}

.message-title .underline-green::after {
    content: '';
    position: absolute;
    bottom: 0px;
    left: 0;
    width: 100%;
    height: 20px;
    background: linear-gradient(to right, #E6F6CE 0%, #ADE35C 100%);
    border-radius: 10px;
    z-index: -1;
}

.company-name {
    font-family: 'Secular One', sans-serif;
    font-weight: 500;
    letter-spacing: 4px;
    font-size: 64px;
    background: linear-gradient(45deg, #000000 0%, #666666 100%);
    background-clip: text;
    -webkit-background-clip: text;
    color: transparent;
    -webkit-text-fill-color: transparent;
}

.message-text {
    font-family: 'Noto Sans JP', sans-serif;
    line-height: 3.0;
    font-size: 20px;
    font-weight: 500;
}

/* ========================================
   背景装飾円形の浮遊アニメーション
======================================== */

/* 共通のアニメーション設定 */
.bg-circle {
    animation-timing-function: ease-in-out;
    animation-iteration-count: infinite;
    animation-direction: alternate;
}

/* 各円形に異なる浮遊アニメーションを適用 */
.circle-1.show{
    animation: float-circle-1 1.8s ease-in-out infinite alternate-reverse;
}

.circle-2.show {
    animation: float-circle-2 2s ease-in-out infinite alternate-reverse;
}

.circle-3.show {
    animation: float-circle-3 2.2s ease-in-out infinite alternate-reverse;
}

.circle-4.show {
    animation: float-circle-4 1.8s ease-in-out infinite alternate-reverse;
}

.circle-5.show {
    animation: float-circle-5 2s ease-in-out infinite alternate-reverse;
}

.circle-6.show{
    animation: float-circle-1 1.8s ease-in-out infinite alternate-reverse;
}

.circle-7.show {
    animation: float-circle-2 2.2s ease-in-out infinite alternate-reverse;
}

.circle-8.show {
    animation: float-circle-3 2s ease-in-out infinite alternate-reverse;
}

.circle-9.show {
    animation: float-circle-4 1.8s ease-in-out infinite alternate-reverse;
}



/* 浮遊アニメーション定義 */
@keyframes float-circle-1 {
    0% {
        transform: translateY(-10%);
    }
    100% {
        transform: translateY(10%);
    }
}

@keyframes float-circle-2 {
    0% {
        transform: translateY(-10%);
    }
    100% {
        transform: translateY(10%);
    }
}

@keyframes float-circle-3 {
    0% {
        transform: translateY(-10%);
    }
    100% {
        transform: translateY(10%);
    }
}

@keyframes float-circle-4 {
    0% {
        transform: translateY(-10%);
    }
    100% {
        transform: translateY(10%);
    }
}

@keyframes float-circle-5 {
    0% {
        transform: translateY(-10%);
    }
    100% {
        transform: translateY(10%);
    }
}

/* ========================================
   ABOUT USセクション
======================================== */
/* ========================================
   共通セクションスタイル
======================================== */
.section-header {
    text-align: left;
    position: relative;
    display: flex;
    align-items: center;
    gap: 20px;
}

.section-icon {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background: linear-gradient(135deg, #24853B 0%, #ADE35C 100%);
    flex-shrink: 0;
}

.section-title-wrapper {
    display: flex;
    flex-direction: column;
}

.section-title {
    font-family: 'Secular One', sans-serif;
    font-size: 64px;
    font-weight: 500;
    color: #000000;
    margin: 0;
    letter-spacing: 2px;
    line-height: 1;
}

.section-subtitle {
    font-family: 'Noto Sans JP', sans-serif;
    font-size: 24px;
    font-weight: 700;
    color: #000000;
    margin: 5px 0 0 0;
    text-align: right;
    width: 27%;
    margin-bottom: 80px;
}

/* ========================================
   ABOUTセクション - アシンメトリーデザイン
======================================== */
.about-section {
    background-color: #FFFFFF;
    padding: 130px 0;
    position: relative;
}

.about-bottom-border {
    position: absolute;
    bottom: 0;
    left: 0;
}

/* アシンメトリーカードグリッド */
.about-cards-asymmetric {
    display: grid;
    grid-template-columns: repeat(12, 1fr);
    grid-template-rows: repeat(8, 80px);
    gap: 30px;
    max-width: 1400px;
    margin: 0 auto;
    position: relative;
}

/* カード共通スタイル */
.about-card-async {
    position: relative;
    border-radius: 24px;
    overflow: hidden;
    text-decoration: none;
    display: block;
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.08);
}

.about-card-async:hover {
    transform: translateY(-12px) scale(1.02);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15);
}

/* カード1: 代表挨拶（大）- 左上 */
.about-card-large {
    grid-column: 1 / 8;
    grid-row: 1 / 6;
}

/* カード2: ENERGY WORKSの強み（中）- 右中央 */
.about-card-medium {
    grid-column: 8 / 13;
    grid-row: 2 / 7;
}

/* カード3: 会社概要（小）- 左下 */
.about-card-small {
    grid-column: 1 / 6;
    grid-row: 6 / 9;
}

/* 画像ラッパー */
.about-card-image-wrapper {
    position: relative;
    width: 100%;
    height: 100%;
    overflow: hidden;
}

.about-card-image-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.about-card-async:hover .about-card-image-wrapper img {
    transform: scale(1.1);
}

/* グラデーションオーバーレイ */
.about-card-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        to bottom,
        rgba(0, 0, 0, 0) 0%,
        rgba(0, 0, 0, 0.3) 50%,
        rgba(0, 0, 0, 0.7) 100%
    );
    transition: opacity 0.4s ease;
}

.about-card-async:hover .about-card-overlay {
    background: linear-gradient(
        to bottom,
        rgba(0, 0, 0, 0) 0%,
        rgba(36, 133, 59, 0.3) 50%,
        rgba(36, 133, 59, 0.8) 100%
    );
}

/* カードナンバー */
.about-card-number {
    position: absolute;
    top: 24px;
    right: 24px;
    font-family: 'Barlow', sans-serif;
    font-size: 48px;
    font-weight: 700;
    color: rgba(255, 255, 255, 0.3);
    z-index: 2;
    line-height: 1;
    transition: all 0.4s ease;
}

.about-card-async:hover .about-card-number {
    color: rgba(173, 227, 92, 0.8);
    transform: scale(1.1);
}

/* カードコンテンツ */
.about-card-content {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 32px;
    z-index: 2;
    transform: translateY(0);
    transition: transform 0.4s ease;
}

.about-card-async:hover .about-card-content {
    transform: translateY(-8px);
}

.about-card-title {
    font-family: 'Noto Sans JP', sans-serif;
    font-size: 28px;
    font-weight: 700;
    color: #FFFFFF;
    margin: 0 0 8px 0;
    letter-spacing: 1px;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

.about-card-description {
    font-family: 'Barlow', sans-serif;
    font-size: 14px;
    font-weight: 400;
    color: rgba(255, 255, 255, 0.9);
    margin: 0;
    letter-spacing: 2px;
    text-transform: uppercase;
}

/* サイズ別の調整 */
.about-card-large .about-card-title {
    font-size: 32px;
}

.about-card-large .about-card-description {
    font-size: 16px;
}

.about-card-medium .about-card-title {
    font-size: 26px;
}

.about-card-medium .about-card-description {
    font-size: 14px;
}

.about-card-small .about-card-title {
    font-size: 22px;
}

.about-card-small .about-card-description {
    font-size: 12px;
}

.about-card-small .about-card-content {
    padding: 24px;
}

.about-card-small .about-card-number {
    font-size: 36px;
    top: 16px;
    right: 16px;
}

/* ========================================
   SERVICEセクション
======================================== */
.service-section {
    background-color: #FFFFFF;
    padding: 130px 0;
    position: relative;
}

.service-top-layout {
    display: flex;
    justify-content: space-around;
}

.section-subtitle-service {
    width: 100%;
}

.service-left {
    width: 23%;
}

.service-left-bottom {
    width: 100%;
}

.service-right {
    flex: 1;
    position: relative;
    display: flex;
    justify-content: start;
    align-items: center;
    width: 60%;
    height: 400px;
    margin:0 0 0 auto;
    min-height: 130px;
    background-image: url(./assets/img/top/top_service_base.png);
    background-repeat: no-repeat;
    background-size: 48%;
    background-position: right;
}

/* 青いアイコン用のバリエーション */
.section-icon-blue {
    background: linear-gradient(135deg, #7BC1FE 0%, #A7F2FB 100%);
}

.service-main-title {
    font-family: 'Noto Sans JP', sans-serif;
    font-size: 50px;
    font-weight: 700;
    color: #000000;
    line-height: 1.3;
    margin-bottom: 50px;
}

.service-description {
    font-family: 'Noto Sans JP', sans-serif;
    font-size: 24px;
    font-weight: 500;
    color: #000000;
    line-height: 1.8;
    margin: 0;
    letter-spacing: 2px;    
}

/* 円形要素 */
.service-circle {
    position: absolute;
    width: 280px;
    height: 280px;
    border-radius: 50%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    transition: all 0.4s ease;
    overflow: hidden;
}

.service-circle-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    z-index: 1;
}

.circle-blue {
    background-image: url(./assets/img/top/top_service_blue.png);
}

.circle-green {
    background-image: url(./assets/img/top/top_service_green.png);
}

.service-circle-blue {
    top: 64%;
    right: -2%;
    transform: translateY(-80%);
}

.service-circle-green {
    top: 58%;
    left: 50%;
    transform: translateY(-50%);
}

.service-circle:hover {
    scale: 1.05;
}

.service-circle-content {
    position: relative;
    z-index: 2;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.service-circle-subtitle {
    font-family: 'Barlow', sans-serif;
    font-size: 12px;
    font-weight: 500;
    color: #FFFFFF;
    margin-bottom: 8px;
    letter-spacing: 1px;
    text-align: center;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.service-circle-title {
    font-family: 'Noto Sans JP', sans-serif;
    font-size: 18px;
    font-weight: 700;
    color: #FFFFFF;
    text-align: center;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

/* ========================================
   WORKSセクション
======================================== */
.works-section {
    background-color: #FFFFFF;
    padding: 100px 0;
    position: relative;
}

.works-top-border,
.works-bottom-border {
    width: 100%;
    height: 3px;
    background: linear-gradient(to right, #7BC1FE 0%, #A7F2FB 100%);
}

.works-top-border {
    position: absolute;
    top: 0;
    left: 0;
}

.works-bottom-border {
    position: absolute;
    bottom: 0;
    left: 0;
}

/* 右寄せヘッダー */
.section-header-right {
    justify-content: flex-end;
    text-align: right;
}

.section-header-right .section-title-wrapper {
    align-items: flex-end;
}

.section-header-right .section-subtitle {
    align-self: flex-start;
}

.section-subtitle-works {
    margin: 0 0 0 auto;
    margin-bottom: 80px;
}

/* ワークスグリッド */
.works-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 3px;
    margin-bottom: 60px;
}

.works-item {
    position: relative;
    overflow: hidden;
    display: block;
    text-decoration: none;
}

.works-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease, filter 0.4s ease;
}

.works-item:hover img {
    transform: scale(1.05);
    filter: brightness(0.4);
}

/* オーバーレイ */
.works-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.4s ease;
}

.works-item:hover .works-overlay {
    opacity: 1;
}

.works-client {
    font-family: 'Noto Sans JP', sans-serif;
    font-size: 18px;
    font-weight: 500;
    color: #FFFFFF;
    text-align: center;
    line-height: 1.8;
    margin: 0;
}

/* タグ */
.works-tag {
    position: absolute;
    bottom: 20px;
    right: 20px;
    padding: 5px 15px;
    border-radius: 15px;
    font-family: 'Noto Sans JP', sans-serif;
    font-size: 16px;
    font-weight: 700;
    color: #000000;
    z-index: 2;
    transition: transform 0.3s ease;
}

.works-item:hover .works-tag {
    transform: scale(1.05);
}

.works-tag-blue {
    background: linear-gradient(315deg, #D7ECFE 0%, #7BC1FE 50%);
}

.works-tag-green {
    background: linear-gradient(315deg, #ADE35C 0%, #24853B 50%);
}

/* グリッドアイテムのサイズ */
.works-item-large {
    grid-row: span 2;
    height: 535px;
}

.works-item-large-right {
    grid-row: span 2;
    height: 535px;
}

.works-item-group {
    display: grid;
    gap: 3px;
}

.works-group-top {
    grid-template-columns: repeat(2, 1fr);
}

.works-item-medium {
    height: 265px;
}

.works-group-bottom {
    grid-template-columns: repeat(2, 1fr);
}

.works-item-small {
    height: 265px;
}

/* 一覧を見るボタン */
.works-button-wrapper {
    text-align: center;
}

/* ========================================
   WORKSセクション - 一覧を見るボタン
======================================== */
.works-view-all {
    display: inline-block;
    padding: 25px 80px;
    border: 3px solid #AAAAAA;
    border-radius: 50px;
    font-family: 'Noto Sans JP', sans-serif;
    font-size: 24px;
    font-weight: 500;
    color: #AAAAAA;
    background-color: #FFFFFF;
    text-decoration: none;
    transition: all 0.3s ease;
}

.works-view-all:hover {
    background-color: #AAAAAA;
    color: #FFFFFF;
    border-color: #AAAAAA;
    transform: translateY(-2px);
}

/* ========================================
   RECRUITセクション
======================================== */
.recruit-section {
    background-color: #F5F8F0;
    padding: 90px 0;
}

/* 中央寄せヘッダー */
.section-header-center {
    justify-content: center;
    text-align: center;
}

.section-header-center .section-title-wrapper {
    align-items: center;
}

.recruit-content {
    text-align: center;
    max-width: 800px;
    margin: 40px auto 0;
}

.recruit-message {
    font-family: 'Noto Sans JP', sans-serif;
    font-size: 24px;
    font-weight: 500;
    color: #000000;
    line-height: 2.5;
    margin-bottom: 40px;
    min-width: 896px;
}

/* ========================================
   RECRUITセクション - 採用ページへボタン
======================================== */
.recruit-button {
    display: inline-block;
    padding: 20px 70px;
    background: linear-gradient(to right, #7BC1FE 0%, #A7F2FB 100%);
    border-radius: 50px;
    font-family: 'Noto Sans JP', sans-serif;
    font-size: 24px;
    font-weight: 500;
    color: #FFFFFF;
    text-decoration: none;
    transition: all 0.3s ease;
    border: 3px solid transparent;
    background-clip: padding-box;
    position: relative;
}

.recruit-button::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    border-radius: 50px;
    padding: 3px;
    background: linear-gradient(to right, #7BC1FE 0%, #A7F2FB 100%);
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: -1;
}

.recruit-button:hover {
    background: #FFFFFF;
    color: #7BC1FE;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(123, 193, 254, 0.4);
    border: 3px solid #7BC1FE;
}
/* ========================================
   CONTACTセクション
======================================== */
.contact-section {
    background-image: url('./assets/img/top/top_contact.jpg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    padding: 100px 0;
    position: relative;
}

.contact-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.3);
    z-index: 1;
}

.contact-section .container {
    position: relative;
    z-index: 2;
}

.contact-layout {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 60px;
}

.contact-left {
    flex: 1;
    max-width: 550px;
}

.contact-title {
    font-family: 'Secular One', sans-serif;
    font-size: 64px;
    font-weight: 500;
    color: #FFFFFF;
    letter-spacing: 2px;
    text-transform: uppercase;
}

.contact-subtitle {
    font-family: 'Noto Sans JP', sans-serif;
    font-size: 24px;
    font-weight: 500;
    color: #FFFFFF;
    margin-bottom: 30px;
    text-align: right;
    width: 53%;
}

.contact-description {
    font-family: 'Noto Sans JP', sans-serif;
    font-size: 16px;
    font-weight: 400;
    color: #FFFFFF;
    line-height: 1.8;
    margin: 0;
}

.contact-right {
    flex: 0 0 auto;
    display: flex;
    flex-direction: column;
    gap: 40px;
    align-items: flex-end;
}

/* アイコン共通スタイル */
.contact-icon {
    color: #FFFFFF;
    transition: color 0.3s ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.contact-icon svg {
    width: 24px;
    height: 24px;
    vertical-align: middle;
}

/* 電話ボタン */
.contact-phone {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 10px 40px;
    border: 3px solid #FFFFFF;
    border-radius: 50px;
    text-decoration: none;
    transition: all 0.3s ease;
    min-width: 353px;
    min-height: 100px;
    background-color: transparent;
    justify-content: center;
}

.contact-phone:hover {
    background-color: #FFFFFF;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(255, 255, 255, 0.3);
}

.contact-phone:hover .phone-number,
.contact-phone:hover .phone-hours,
.contact-phone:hover .contact-icon {
    color: #000000;
}

/* 電話番号とアイコンのラッパー */
.phone-number-wrapper {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 5px;
}

.phone-number {
    font-family: 'Noto Sans JP', sans-serif;
    font-size: 32px;
    font-weight: 700;
    color: #FFFFFF;
    transition: color 0.3s ease;
}

.phone-hours {
    font-family: 'Noto Sans JP', sans-serif;
    font-size: 16px;
    color: #FFFFFF;
    transition: color 0.3s ease;
}

/* お問い合わせボタン */
.contact-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background-color: #FFFFFF;
    border-radius: 50px;
    font-family: 'Noto Sans JP', sans-serif;
    font-size: 24px;
    font-weight: 700;
    color: #000000;
    text-decoration: none;
    transition: all 0.3s ease;
    min-width: 353px;
    min-height: 100px;
    text-align: center;
    border: 3px solid #FFFFFF;
}

.contact-button:hover {
    background-color: transparent;
    color: #FFFFFF;
    border-color: #FFFFFF;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(255, 255, 255, 0.3);
}

.contact-button:hover .contact-icon {
    color: #FFFFFF;
}

.contact-button .contact-icon {
    color: #000000;
    transition: color 0.3s ease;
}

/* ========================================
   フッター
======================================== */
.postal-code {
    font-weight: 500;
}

.address {
    margin-bottom: 8px !important;
}

.contact-info {
    font-weight: 500;
}

.footer-links {
    margin-bottom: 16px;
}

.footer-links a {
    font-family: 'Noto Sans JP', sans-serif;
    font-size: 14px;
    color: #666;
    text-decoration: none;
    margin: 0 20px;
    transition: color 0.3s ease;
}

.footer-links a:hover {
    color: #333;
}

.copyright {
    font-family: 'Barlow', sans-serif;
    font-size: 12px;
    color: #999;
    margin: 0;
    letter-spacing: 0.5px;
}

.site-footer {
    background-color: #F5F3F0;
    color: #333;
    padding: 90px 0 30px;
}

.footer-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 70px;
}

.footer-top {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 40px;
    padding-bottom: 40px;
}

/* 左側：会社情報 */
.footer-company-info {
    flex: 0 0 auto;
}

.footer-logo {
    margin-bottom: 20px;
}

.footer-logo a {
    font-size: 32px;
    font-weight: 500;
    color: #333;
    text-decoration: none;
}

.footer-logo-img {
    height: 50px;
    width: auto;
    display: block;
}

.footer-logo-group {
    display: flex;
    align-items: center;
    gap: 20px;
    flex-wrap: wrap;
}

.footer-group-separator {
    display: inline-block;
    width: 1px;
    height: 44px;
    background-color: #ccc;
}

.footer-partner-wrapper {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
}

.footer-partner-label {
    font-family: 'Noto Sans JP', sans-serif;
    font-size: 10px;
    letter-spacing: 0.08em;
    color: #888;
    text-transform: uppercase;
    line-height: 1;
}

.footer-partner-logo-link {
    display: inline-flex;
    align-items: center;
    text-decoration: none;
}

.footer-partner-logo-img {
    height: 40px;
    width: auto;
    display: block;
    opacity: 0.85;
    transition: opacity 0.2s;
}

.footer-partner-logo-link:hover .footer-partner-logo-img {
    opacity: 1;
}

@media screen and (max-width: 767px) {
    .footer-group-separator {
        display: none;
    }
    .footer-partner-label {
        font-size: 10px;
    }
}

.company-details {
    margin-top: 40px;
}

.company-details p {
    font-family: 'Noto Sans JP', sans-serif;
    font-size: 16px;
    line-height: 1.6;
    margin-bottom: 10px;
    color: #000000;
}

.contact-info a {
    text-decoration: none;
    transition: color 0.3s ease;
    margin-right: 1em;
}

.contact-info a:hover {
    color: #0066CC;
    text-decoration: underline;
}

/* 右側：メニューナビゲーション */
.footer-nav {
    display: flex;
    gap: 80px;
    flex: 1;
    justify-content: flex-end;
}

.footer-nav-column {
    min-width: 120px;
}

.footer-nav-title {
    font-family: 'Secular One', sans-serif;
    font-size: 24px;
    font-weight: 600;
    color: #000000;
    margin-bottom: 16px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.footer-nav-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-nav-list li {
    margin-bottom: 12px;
}

.footer-nav-list a {
    font-family: 'Noto Sans JP', sans-serif;
    font-size: 16px;
    color: #000000;
    text-decoration: none;
    transition: color 0.3s ease;
    margin-left: 1em;
}

.footer-nav-list a:hover {
    color: #333;
}

/* 下部：リンクとコピーライト */
.footer-bottom {
    text-align: right;
}

.footer-links {
    margin-bottom: 16px;
}

.footer-links a {
    font-family: 'Noto Sans JP', sans-serif;
    font-size: 16px;
    font-weight: 400;
    color: #000000;
    text-decoration: none;
    margin: 0 20px;
    transition: color 0.3s ease;
}

.footer-links a:hover {
    color: #333;
}

.copyright {
    font-size: 16px;
    color: #000000;
    margin-top: 40px;
    letter-spacing: 0.5px;
    text-align: center;
}

/* ========================================
   ユーティリティクラス
======================================== */
.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 70px;
}

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}


/* ========================================
   アニメーション背景
======================================== */
.animated-background {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;  /* 100%から100vwに変更 */
    height: 100vh; /* 100%から100vhに変更 */
    overflow: hidden;
    z-index: -1;
    background: linear-gradient(135deg, #E8F5F0 0%, #F0F8FF 50%, #24853B 100%);
    pointer-events: none; /* クリックイベントを通過させる */
}


.gradient-blob {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.6;
    animation-timing-function: ease-in-out;
    animation-iteration-count: infinite;
    animation-direction: alternate;
    z-index: 5;
}

/* 青いブロブ（左上） */
.blob-1 {
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, #7BC1FE 0%, #A7F2FB 100%);
    top: -10%;
    left: -10%;
    animation: float-1 12s ease-in-out infinite, color-fade-1 8s ease-in-out infinite;
}

/* 緑のブロブ（右上） */
.blob-2 {
    width: 450px;
    height: 450px;
    background: radial-gradient(circle, #ADE35C 0%, #24853B 100%);
    top: 10%;
    right: -10%;
    animation: float-2 15s ease-in-out infinite, color-fade-2 10s ease-in-out infinite;
}

/* 黄緑のブロブ（左下） */
.blob-3 {
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, #90EE90 0%, #ADE35C 100%);
    top: 70%;
    left: -5%;
    animation: float-3 18s ease-in-out infinite, color-fade-3 12s ease-in-out infinite;
}

/* ピンクのブロブ（右下） */
.blob-4 {
    width: 550px;
    height: 550px;
    background: radial-gradient(circle, #24853B 0%, #FFFFFF 100%);
    bottom: -10%;
    right: -5%;
    animation: float-4 14s ease-in-out infinite, color-fade-4 9s ease-in-out infinite;
}

/* 水色のブロブ（中央） */
.blob-5 {
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, #A7F2FB 0%, #7BC1FE 100%);
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    animation: float-5 20s ease-in-out infinite, color-fade-5 11s ease-in-out infinite;
}

/* 移動アニメーション */
@keyframes float-1 {
    0%, 100% {
        transform: translate(0, 0) scale(1) rotate(0deg);
    }
    50% {
        transform: translate(150px, 100px) scale(1.4) rotate(180deg); /* より大きく */
    }
}

@keyframes float-2 {
    0%, 100% {
        transform: translate(0, 0) scale(1) rotate(0deg);
    }
    25% {
        transform: translate(-80px, 60px) scale(0.85) rotate(-90deg);
    }
    50% {
        transform: translate(-100px, 100px) scale(1.25) rotate(-180deg);
    }
    75% {
        transform: translate(-50px, 40px) scale(0.95) rotate(-270deg);
    }
}

@keyframes float-3 {
    0%, 100% {
        transform: translate(0, 0) scale(1) rotate(0deg);
    }
    33% {
        transform: translate(100px, -60px) scale(1.15) rotate(120deg);
    }
    66% {
        transform: translate(80px, 70px) scale(0.9) rotate(240deg);
    }
}

@keyframes float-4 {
    0%, 100% {
        transform: translate(0, 0) scale(1) rotate(0deg);
    }
    30% {
        transform: translate(-70px, -80px) scale(1.2) rotate(-100deg);
    }
    60% {
        transform: translate(-90px, -50px) scale(0.85) rotate(-200deg);
    }
}

@keyframes float-5 {
    0%, 100% {
        transform: translate(-50%, -50%) scale(1) rotate(0deg);
    }
    20% {
        transform: translate(calc(-50% + 60px), calc(-50% - 60px)) scale(1.3) rotate(72deg);
    }
    40% {
        transform: translate(calc(-50% - 40px), calc(-50% + 50px)) scale(0.8) rotate(144deg);
    }
    60% {
        transform: translate(calc(-50% + 80px), calc(-50% + 40px)) scale(1.15) rotate(216deg);
    }
    80% {
        transform: translate(calc(-50% - 60px), calc(-50% - 30px)) scale(0.9) rotate(288deg);
    }
}

/* 色の濃淡アニメーション */
@keyframes color-fade-1 {
    0%, 100% {
        opacity: 0.6;
        filter: blur(80px) brightness(1);
    }
    25% {
        opacity: 0.8;
        filter: blur(70px) brightness(1.3);
    }
    50% {
        opacity: 0.4;
        filter: blur(90px) brightness(0.8);
    }
    75% {
        opacity: 0.7;
        filter: blur(75px) brightness(1.1);
    }
}

@keyframes color-fade-2 {
    0%, 100% {
        opacity: 0.6;
        filter: blur(80px) brightness(1);
    }
    33% {
        opacity: 0.75;
        filter: blur(70px) brightness(1.2);
    }
    66% {
        opacity: 0.45;
        filter: blur(90px) brightness(0.85);
    }
}

@keyframes color-fade-3 {
    0%, 100% {
        opacity: 0.6;
        filter: blur(80px) brightness(1);
    }
    30% {
        opacity: 0.8;
        filter: blur(65px) brightness(1.25);
    }
    60% {
        opacity: 0.5;
        filter: blur(85px) brightness(0.9);
    }
}

@keyframes color-fade-4 {
    0%, 100% {
        opacity: 0.6;
        filter: blur(80px) brightness(1);
    }
    40% {
        opacity: 0.7;
        filter: blur(75px) brightness(1.15);
    }
    70% {
        opacity: 0.45;
        filter: blur(90px) brightness(0.8);
    }
}

@keyframes color-fade-5 {
    0%, 100% {
        opacity: 0.6;
        filter: blur(80px) brightness(1);
    }
    25% {
        opacity: 0.75;
        filter: blur(70px) brightness(1.2);
    }
    50% {
        opacity: 0.5;
        filter: blur(85px) brightness(0.9);
    }
    75% {
        opacity: 0.65;
        filter: blur(75px) brightness(1.1);
    }
}

/* セクションの背景を透明に */
.about-section,
.service-section,
.works-section {
    background-color: transparent;
    position: relative;
    z-index: 1;
}
/* セクションの背景を透明に */
.about-section,
.service-section,
.works-section {
    background-color: transparent;
    position: relative;
    z-index: 1;
}

/* セクションのコンテンツが見やすいように */
.about-section .container,
.service-section .container,
.works-section .container {
    position: relative;
    z-index: 2;
}

/* ========================================
   ページヒーロー（共通）
======================================== */
.page-hero {
    background-color: #FFFFFF;
    padding: 150px 0 60px;
    border-bottom: 1px solid #AAAAAA;
}

.page-hero-content {
    margin-bottom: 30px;
}

.page-title {
    font-family: 'Secular One', sans-serif;
    font-size: 64px;
    font-weight: 400;
    color: #000000;
    margin-bottom: 10px;
    letter-spacing: 2px;
}

.page-subtitle {
    font-family: 'Noto Sans JP', sans-serif;
    font-size: 20px;
    font-weight: 500;
    color: #000000;
    margin: 0;
    display: block;  /* H1内の<span>でも改行される（旧<p>と同じ縦並び挙動） */
}

/* パンくずリスト */
.breadcrumb {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 10px;
    font-family: 'Noto Sans JP', sans-serif;
    font-size: 16px;
    color: #AAAAAA;
}

.breadcrumb-item {
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 10px;
    transition: color 0.3s ease;
}

.breadcrumb-item:hover {
    color: #333;
}

.breadcrumb-icon {
  display: inline-block;
  vertical-align: middle;
  color: #AAAAAA;
  line-height: 1;
  position: relative;
  width: 1em;
  height: 0.75em;
  border: 0.1em solid currentColor;
  border-top: 0;
  box-sizing: border-box;
}

.breadcrumb-icon::before {
  content: '';
  position: absolute;
  top: 0;
  left: 50%;
  width: 0.85em;
  height: 0.85em;
  border: 0.1em solid currentColor;
  border-right: 0;
  border-bottom: 0;
  box-sizing: border-box;
  transform: translate(-50%, -46%) rotate(45deg) skew(-10deg, -10deg);
}

.breadcrumb-separator {
    color: #CCC;
}

.breadcrumb-current {
    font-weight: 500;
}

/* 他のセクション */
.hero-section,
.about-section,
.service-section,
.works-section,
.recruit-section,
.contact-section {
    position: relative;
    z-index: 1;
}

/* 各セクションのコンテンツを前面に */
.hero-section .container,
.about-section .container,
.service-section .container,
.works-section .container,
.recruit-section .container,
.contact-section .container {
    position: relative;
    z-index: 2;
}/* ========================================
   レスポンシブ対応 - TOPページ
   モバイル: 375px - 767px
   タブレット: 768px - 1024px
   デスクトップ: 1025px以上
======================================== */

/* ========================================
   共通調整
======================================== */

/* タブレット (768px - 1024px) */
@media screen and (max-width: 1024px) {
    .container {
        padding: 0 40px;
    }
}

/* モバイル (767px以下) */
@media screen and (max-width: 767px) {
    
    .container {
        padding: 0 20px;
    }
}

/* ========================================
   ヘッダー - レスポンシブ
======================================== */
@media screen and (max-width: 1024px) {
    .site-header {
        padding: 15px 0;
    }

    .header-container {
        padding: 0 40px;
    }

    .hamburger-menu {
        width: 60px;
        height: 60px;
    }
}

@media screen and (max-width: 767px) {
    .site-header {
        padding: 15px 0;
    }

    .header-container {
        padding: 0 20px;
    }

    .site-logo {
        font-size: 20px;
    }
    
    .hamburger-menu {
        width: 50px;
        height: 50px;
    }
}

/* ========================================
   ナビゲーションメニュー - レスポンシブ
======================================== */
@media screen and (max-width: 1024px) {
    .nav-menu-container {
        width: 90%;
    }
    
    .nav-content-section {
        padding: 60px 40px;
        padding-right: 40px;
    }

    .nav-close-btn {
        right: 40px;
    }

    .nav-menu {
        margin: 20px 0;
    }

    .nav-menu a {
        font-size: 32px;
    }

    .nav-item.nav-sub-item .nav-link,
    .nav-item.nav-sub-item-construction .nav-link {
        font-size: 28px;
    }
}

@media screen and (max-width: 767px) {
    .nav-menu-container {
        width: 100%;
    }

    .nav-content-section {
        padding: 60px 20px;
        padding-right: 20px;
        align-items: flex-start;
    }

    .nav-close-btn {
        right: 20px;
    }
    
    .primary-navigation {
        padding: 0;
        width: 100%;
    }
    
    .nav-menu {
        margin: 20px 0;
    }
    
    .nav-menu a,
    .nav-menu span {
        font-size: 24px;
    }
    
    .nav-item {
        margin-bottom: 30px;
    }
    
    .nav-item.nav-sub-item .nav-link, 
    .nav-item.nav-sub-item-construction .nav-link {
        font-size: 20px;
        margin-left: 15px;
    }
    
    .nav-close-btn {
        top: 30px;
        right: 20px;
        width: 30px;
        height: 30px;
    }
}

/* ========================================
   ヒーローセクション - レスポンシブ
======================================== */
@media screen and (max-width: 1024px) {
    .hero-section {
        padding: 120px 40px 80px;
    }
    
    .hero-subtitle {
        font-size: 40px;
        padding: 0 60px;
        letter-spacing: 4px;
        margin-bottom: 24px;
    }

    .hero-title {
        font-size: 80px;
    }
    
    .hero-scroll-indicator {
        bottom: 30px;
    }
    
    .scroll-arrow-circle {
        width: 50px;
        height: 50px;
    }
    
    .scroll-arrow img {
        width: 20px;
        height: 20px;
    }
}

/* ヒーローセクション - スマホ対応修正 */
@media screen and (max-width: 767px) {
    .hero-section {
        height: auto; /* 100vhを解除 */
        min-height: 400px; /* 画像サイズを縮小 */
        padding: 100px 0 40px;
        display: flex;
        flex-direction: column;
        justify-content: center;
    }
    
    .hero-content {
        padding-bottom: 40px;
    }
    
    .hero-subtitle {
        font-size: 28px;
        padding: 0 20px;
        margin-bottom: 18px;
        letter-spacing: 2px;
        font-weight: 900;
        text-shadow: 0 2px 12px rgba(0, 0, 0, 0.6);
    }
    
    .hero-title {
        font-size: 40px;
        letter-spacing: 1px;
        text-shadow: none; /* シャドウ削除 */
    }
    
    .hero-title .gradient-text {
        filter: none; /* シャドウ削除 */
    }
}

/* ========================================
   メッセージセクション - レスポンシブ
======================================== */
@media screen and (max-width: 1024px) {
    .home-message-section {
        padding: 150px 0;
    }

    .message-title {
        font-size: 36px;
        line-height: 1.5;
    }
    
    .message-text {
        font-size: 16px;
        line-height: 1.8;
    }
    
    /* 背景の円を小さく調整 */
    .bg-circle-blue-large,
    .bg-circle-green-large {
        width: 120px;
        height: 120px;
    }
    
    .bg-circle-blue-medium,
    .bg-circle-green-medium {
        width: 80px;
        height: 80px;
    }
    
    .bg-circle-blue-small,
    .bg-circle-green-small {
        width: 50px;
        height: 50px;
    }
}

/* メッセージセクション - スマホ対応修正 */
@media screen and (max-width: 767px) {
    .home-message-section {
        padding: 80px 0;
        min-height: 100vh; /* 画面いっぱいに */
        display: flex;
        align-items: center;
        justify-content: center;
    }

    .home-message-section .container {
        width: 100%;
    }
    
    .message-content {
        text-align: center;
        padding: 0 20px;
    }
    
    .message-title {
        font-size: 24px; /* 「創る」の「る」が改行される端末対応で 28px→24px に縮小 */
        line-height: 1.8;
        margin-bottom: 40px;
    }
    
    .message-title br {
        display: inline; /* 改行は維持 */
    }
    
    .message-text {
        font-size: 15px; /* 少し大きく */
        line-height: 2.0;
        text-align: left;
        max-width: 600px;
        margin: 0 auto;
    }
    
    /* 背景の円を少し大きく調整（画面いっぱいなので） */
    .bg-circle-blue-large,
    .bg-circle-green-large {
        width: 100px;
        height: 100px;
    }
    
    .bg-circle-blue-medium,
    .bg-circle-green-medium {
        width: 70px;
        height: 70px;
    }
    
    .bg-circle-blue-small,
    .bg-circle-green-small {
        width: 50px;
        height: 50px;
    }
    
    .home-message-section .initial-circle {
        width: 220px !important;
        height: 220px !important;
    }
}

/* ========================================
   背景アニメーション - レスポンシブ
======================================== */
@media screen and (max-width: 767px) {
    .gradient-blob {
        transform: scale(0.6);
    }
}

/* ========================================
   ABOUTセクション - レスポンシブ
======================================== */
@media screen and (max-width: 1024px) {
    .about-section {
        padding: 80px 0;
    }
    
    /* アシンメトリーカードのタブレット対応 */
    .about-cards-asymmetric {
        grid-template-rows: repeat(6, 100px);
        gap: 20px;
    }
    
    .about-card-large {
        grid-column: 1 / 8;
        grid-row: 1 / 5;
    }
    
    .about-card-medium {
        grid-column: 8 / 13;
        grid-row: 2 / 5;
    }
    
    .about-card-small {
        grid-column: 1 / 7;
        grid-row: 5 / 7;
    }
    
    .about-card-title {
        font-size: 22px;
    }
    
    .about-card-large .about-card-title {
        font-size: 26px;
    }
    
    .about-card-small .about-card-title {
        font-size: 18px;
    }
    
    .about-card-number {
        font-size: 36px;
    }
}

@media screen and (max-width: 767px) {
    .about-section {
        padding: 60px 0;
    }
    
    .section-header {
        margin-bottom: 10px;
    }
    
    .section-title {
        font-size: 32px;
    }
    
    .section-subtitle {
        text-align: left;
        margin-bottom: 40px;
        width: auto;
    }
    
    .section-subtitle-service {
        margin-bottom: 0;
    }

    /* モバイルではシンプルな縦並びに */
    .about-cards-asymmetric {
        display: flex;
        flex-direction: column;
        gap: 24px;
    }
    
    .about-card-async {
        width: 100%;
        height: 320px;
        border-radius: 16px;
    }
    
    .about-card-large,
    .about-card-medium,
    .about-card-small {
        grid-column: auto;
        grid-row: auto;
    }
    
    .about-card-content {
        padding: 24px;
    }
    
    .about-card-title {
        font-size: 20px;
    }
    
    .about-card-large .about-card-title,
    .about-card-medium .about-card-title,
    .about-card-small .about-card-title {
        font-size: 20px;
    }
    
    .about-card-description {
        font-size: 12px;
    }
    
    .about-card-number {
        font-size: 32px;
        top: 16px;
        right: 16px;
    }
}

/* ========================================
   SERVICEセクション - レスポンシブ
======================================== */
@media screen and (max-width: 1024px) {
    .service-section {
        padding: 80px 0;
    }
    
    .service-layout {
        gap: 40px;
    }
    
    .service-circle {
        width: 200px;
        height: 200px;
    }
    
    .service-circle-title {
        font-size: 20px;
    }
    
    .service-circle-subtitle {
        font-size: 12px;
    }
    
    .service-main-title {
        font-size: 32px;
    }
    
    .service-description {
        font-size: 15px;
    }
}

/* スマホ用画像の初期設定（デスクトップでは非表示） */
.service-mobile-image {
    display: none;
}

.service-mobile-link {
    display: none;
}

/* SERVICEセクション - スマホ対応修正 */
@media screen and (max-width: 767px) {
    .service-section {
        padding: 60px 0;
    }
    
    .service-layout {
        flex-direction: column;
        gap: 30px;
    }
    
    .service-top-layout {
        flex-direction: column;
        align-items: center;
        gap: 10px;
    }
    
    .service-left {
        width: 100%;
        text-align: center;
    }
    
    /* デスクトップ構成を縮小コピーして中央配置
       - 円の重なり量はデスクトップ準拠（約20%overlap）
       - ピーナッツ背景は320pxで円を包み込むサイズ感 */
    .service-right {
        flex: 0 0 auto;
        width: 100%;
        height: 300px;
        min-height: 300px;
        margin: 0;
        background-image: url(./assets/img/top/top_service_base.png);
        background-repeat: no-repeat;
        background-size: 320px auto;
        background-position: center;
        display: block;
        padding: 0;
        position: relative;
    }

    /* 旧Group_22.png画像とクリックオーバーレイは非表示 */
    .service-mobile-image {
        display: none;
    }
    .service-mobile-link {
        display: none;
    }

    /* 円は180px、中心から±70pxオフセット（140pxスパン・overlap約22%） */
    .service-circle {
        position: absolute;
        width: 180px;
        height: 180px;
    }

    .service-circle-green {
        top: 58%;
        left: calc(50% - 70px);
        right: auto;
        transform: translate(-50%, -50%);
    }

    .service-circle-blue {
        top: 44%;
        left: calc(50% + 70px);
        right: auto;
        transform: translate(-50%, -50%);
    }

    .service-circle-content {
        padding: 8px;
    }

    /* サブタイトル＋タイトル両方表示 */
    .service-circle-subtitle {
        display: block;
        font-size: 10px;
        margin-bottom: 5px;
        letter-spacing: 0.5px;
    }

    .service-circle-title {
        font-size: 16px;
        margin: 0;
    }
    
    .service-left-bottom {
        width: 100%;
    }
    
    .service-content {
        text-align: left; /* 左揃えに変更 */
        padding: 0;
    }
    
    .service-main-title {
        font-size: 24px;
        margin-bottom: 20px;
        text-align: left; /* 左揃え */
        letter-spacing: 0.1em; /* 文字間を広げる */
        line-height: 1.8; /* 行間を広げる */
    }
    
    
    .service-description {
        font-size: 14px;
        text-align: left;
        line-height: 2.0; /* 行間を広げる */
        letter-spacing: 0.08em; /* 文字間を広げる */
    }
}

/* ========================================
   WORKSセクション - レスポンシブ
======================================== */
@media screen and (max-width: 1024px) {
    .works-section {
        padding: 80px 0;
    }
    
    .works-grid {
        gap: 20px;
        grid-template-columns: repeat(2, 1fr);
        grid-template-rows: auto;
    }
    
    .works-item-large {
        grid-column: 1 / -1;
    }
    
    .works-item-large-right {
        grid-column: 1 / -1;
    }
    
    .works-item-group {
        display: contents;
    }
    
    .works-overlay {
        font-size: 14px;
    }
    
    .works-tag {
        font-size: 12px;
        padding: 6px 12px;
    }
}

/* ========================================
   WORKSセクション - モバイル対応
======================================== */
@media screen and (max-width: 767px) {
    .works-section {
        padding: 60px 0;
    }
    
    .section-header-right {
        justify-content: left;
    }
    
    .section-subtitle-works {
        text-align: left;
    }
    
    /* グリッドを1列の縦並びに変更 */
    .works-grid {
        display: flex;
        flex-direction: column;
        gap: 20px;
    }
    
    /* グループは展開して表示 */
    .works-item-group {
        display: flex;
        flex-direction: column;
        gap: 20px;
    }
    
    /* 全アイテムを横長の同じサイズに統一（60%比率） */
    .works-item-large,
    .works-item-large-right,
    .works-item-medium,
    .works-item-small {
        grid-row: auto !important;
        height: 0 !important;
        padding-bottom: 60% !important;
        position: relative;
        width: 100%;
    }
    
    /* プレースホルダーをスマホでは非表示 */
    .works-placeholder {
        display: none !important;
    }
    
    /* 画像を比率内に収める */
    .works-item img {
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        object-fit: cover;
    }
    
    /* オーバーレイの位置調整 */
    .works-overlay {
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        padding: 20px;
    }
    
    .works-client {
        font-size: 14px;
    }
    
    .works-client br {
        display: inline;
    }
    
    /* タグの位置を絶対配置に */
    .works-tag {
        position: absolute;
        bottom: 15px;
        right: 15px;
        font-size: 11px;
        padding: 5px 10px;
    }
    
    .works-button-wrapper {
        margin-top: 40px;
    }
    
    .works-view-all {
        padding: 12px 40px;
        font-size: 14px;
    }
}

/* RECRUITセクション - 基本スタイル */
.section-subtitle-recruit {
    white-space: nowrap; /* 改行を防ぐ */
    width: auto;
    text-align: center;
    margin: 10px 0 0 0;
    margin-bottom: 0;
}
/* RECRUITセクション - スマホ対応 */
@media screen and (max-width: 1024px) {
    .recruit-section {
        padding: 80px 0;
    }
    
    .recruit-message {
        font-size: 18px;
        padding: 0 40px;
        line-height: 2.0;
        letter-spacing: 0.08em;
        min-width: auto; /* min-widthを解除 */
    }
    
    .recruit-button {
        padding: 16px 50px;
        font-size: 18px;
    }
}

@media screen and (max-width: 767px) {
    .recruit-section {
        padding: 70px 0;
    }

    .recruit-section .container {
        width: 100%;
    }
    
    .section-header-center {
        margin-bottom: 30px;
    }
    
    .section-title {
        font-size: 32px;
    }
    
    .section-subtitle-recruit {
        font-size: 18px;
        margin-top: 8px;
    }
    
    .recruit-content {
        padding: 0 20px;
        max-width: 100%;
    }
    
    .recruit-message {
        font-size: 16px;
        line-height: 2.0; /* 行間を広げる */
        letter-spacing: 0.1em; /* 文字間を広げる */
        padding: 0;
        min-width: auto; /* min-widthを完全に解除 */
        text-align: left; /* 左揃え */
    }
    
    .recruit-message br {
        display: block; /* 改行を維持 */
    }
    
    .recruit-button {
        padding: 16px 50px;
        font-size: 16px;
        letter-spacing: 0.08em;
    }
}

/* CONTACTセクション - スマホ対応 */
@media screen and (max-width: 1024px) {
    .contact-section {
        padding: 80px 0;
    }
    
    .contact-layout {
        flex-direction: column;
        gap: 40px;
    }
    
    .contact-left,
    .contact-right {
        width: 100%;
        text-align: center;
    }
    
    .contact-title {
        font-size: 48px;
    }
    
    .contact-description {
        font-size: 15px;
        margin: 0 auto;
        max-width: 600px;
    }
    
    .contact-right {
        flex-direction: row;
        justify-content: center;
        gap: 30px;
    }
    
    .contact-phone {
        padding: 16px 30px;
    }
    
    .phone-number {
        font-size: 18px;
    }
    
    .contact-button {
        font-size: 16px;
    }
}

@media screen and (max-width: 767px) {
    .contact-section {
        padding: 60px 0;
    }
    
    .contact-layout {
        gap: 30px;
    }
    
    .contact-title {
        font-size: 32px;
        margin-bottom: 5px;
    }
    
    .contact-subtitle {
        margin-bottom: 20px;
        text-align: center;
        margin: 0 auto;
        padding-bottom: 15px;
    }
    
    .contact-description {
        font-size: 14px;
        line-height: 1.8;
        padding: 0 20px;
    }
    
    .contact-description br {
        display: none;
    }
    
    .contact-right {
        flex-direction: column;
        gap: 20px;
        padding: 0 20px;
        align-items: stretch; /* 親要素の幅に合わせる */
    }
    
    /* 電話ボタンの修正 */
    .contact-phone {
        width: 100%;
        max-width: 100%; /* 最大幅を100%に */
        min-width: auto !important; /* 元のmin-widthを強制的に上書き */
        margin: 0 auto;
        padding: 16px 20px;
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        min-height: 80px;
        box-sizing: border-box;
    }
    
    .phone-number-wrapper {
        display: flex;
        align-items: center;
        gap: 8px;
        margin-bottom: 5px;
    }
    
    .contact-icon svg {
        width: 18px;
        height: 18px;
    }
    
    .phone-number {
        font-size: 18px;
        line-height: 1.2;
    }
    
    .phone-hours {
        font-size: 12px;
        line-height: 1.2;
    }
    
    /* お問い合わせボタンの修正 */
    .contact-button {
        width: 100%;
        max-width: 100%; /* 最大幅を100%に */
        min-width: auto !important; /* 元のmin-widthを強制的に上書き */
        margin: 0 auto;
        padding: 16px 20px;
        font-size: 16px;
        min-height: 80px;
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 8px;
        line-height: 1.2;
        box-sizing: border-box;
    }
    
    .contact-button .contact-icon {
        flex-shrink: 0;
    }
    
    .contact-button .contact-icon svg {
        width: 18px;
        height: 18px;
    }
}

/* ========================================
   フッター - レスポンシブ
======================================== */
@media screen and (max-width: 1024px) {
    .site-footer {
        padding: 40px;
    }
    
    .footer-content {
        flex-direction: column;
        gap: 40px;
        text-align: center;
    }
    
    .footer-logo {
        font-size: 20px;
    }
    
    .footer-nav {
        justify-content: center;
    }
}

@media screen and (max-width: 767px) {
    .site-footer {
        padding: 30px 20px;
    }
    
    .footer-content {
        gap: 30px;
    }
    
    .footer-logo {
        font-size: 18px;
    }
    
    .footer-nav {
        flex-wrap: wrap;
        gap: 20px;
    }
    
    .footer-nav-item {
        font-size: 12px;
    }
    
    .footer-bottom {
        padding-top: 20px;
        margin-top: 30px;
    }
    
    .copyright {
        font-size: 10px;
    }
}

/* ========================================
   追加の微調整
======================================== */

/* iPadやタブレット向けの追加調整 */
@media screen and (min-width: 768px) and (max-width: 1024px) {
    /* ヒーローセクションのテキストサイズ調整 */
    .hero-title {
        font-size: 90px;
    }
    
    /* サービスセクションの円の配置調整 */
    .service-right {
        gap: 30px;
    }
    
    /* WORKSグリッドの調整 */
    .works-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* 小型スマートフォン向けの追加調整 (375px以下) */
@media screen and (max-width: 375px) {
    .hero-title {
        font-size: 36px;
    }
    
    .message-title {
        font-size: 20px;
    }
    
    .section-title {
        font-size: 28px;
    }
    
    .service-circle {
        width: 165px;
        height: 165px;
    }

    .service-circle-green {
        left: calc(50% - 65px);
    }

    .service-circle-blue {
        left: calc(50% + 65px);
    }

    .service-circle-subtitle {
        font-size: 9px;
    }

    .service-circle-title {
        font-size: 15px;
    }
    
    .contact-phone,
    .contact-button {
        font-size: 14px;
    }
}

/* 横向きモバイル対応 */
@media screen and (max-width: 896px) and (orientation: landscape) {
    .hero-section {
        min-height: auto;
        padding: 80px 40px 60px;
    }
    
    .hero-title {
        font-size: 60px;
    }
    
    .home-message-section {
        padding: 80px 0;
    }

    .service-right {
        flex-direction: row;
    }
}

/* アニメーションのパフォーマンス最適化 */
@media screen and (max-width: 767px) {
    /* モバイルでは重いアニメーションを軽減 */
    .sliding-text {
        animation-duration: 20s;
    }
    
    .gradient-blob {
        animation: none;
        opacity: 0.3;
    }
    
    /* バーストアニメーションの無効化 */
    .home-message-section .initial-circle {
        animation: none;
    }
}

/* タッチデバイス向けのホバー効果無効化 */
@media (hover: none) and (pointer: coarse) {
    .works-item:hover .works-overlay {
        opacity: 0;
    }
    
    .about-card-async:hover .about-card-image-wrapper img {
        transform: none;
    }
    
    .service-circle:hover .service-circle-bg {
        transform: none;
    }
}

/* 印刷対応 */
@media print {
    .site-header,
    .hamburger-menu,
    .nav-overlay,
    .hero-scroll-indicator,
    .animated-background,
    .gradient-blob {
        display: none;
    }
    
    .hero-section {
        min-height: auto;
        background: none;
    }
    
    .home-message-section {
        background: none;
    }

    .sliding-text {
        animation: none;
    }
}

/* ========================================
   ページヒーロー - レスポンシブ強化
======================================== */
@media screen and (max-width: 1024px) {
    .page-hero {
        padding: 120px 0 40px;
    }
    
    .page-title {
        font-size: 48px;
    }
    
    .page-subtitle {
        font-size: 18px;
    }
    
    .breadcrumb {
        font-size: 14px;
    }
}

@media screen and (max-width: 767px) {
    .page-hero {
        padding: 100px 0 30px;
    }
    
    .page-hero-content {
        margin-bottom: 20px;
    }
    
    .page-title {
        font-size: 32px;
        letter-spacing: 1px;
        line-height: 1.3;
    }
    
    .page-subtitle {
        font-size: 16px;
    }
    
    .breadcrumb {
        font-size: 12px;
        flex-wrap: wrap;
    }
    
    .breadcrumb-icon {
        width: 0.8em;
        height: 0.6em;
    }
}


/* ========================================
   ヘッダー・フッター レスポンシブ対応CSS
======================================== */

/* ========================================
   ヘッダー - レスポンシブ
======================================== */
@media screen and (max-width: 1024px) {
    .site-header {
        padding: 15px 0;
    }

    .header-container {
        padding: 0 40px;
    }

    .site-logo {
        font-size: 22px;
    }
    
    .hamburger-menu {
        width: 60px;
        height: 60px;
    }
}

@media screen and (max-width: 767px) {
    .site-header {
        padding: 12px 0;
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        background-color: transparent;
        backdrop-filter: none;
        z-index: 1000;
        box-shadow: none;
        transition: transform 0.3s ease;
    }

    .header-container {
        padding: 0 20px;
    }

    .site-logo a {
        color: #fff; /* ロゴを白色に（背景が透明なので） */
        text-shadow: 0 1px 3px rgba(0, 0, 0, 0.3); /* 視認性確保 */
    }
    
    .header-container {
        display: flex;
        justify-content: space-between;
        align-items: center;
    }
    
    .site-logo {
        font-size: 20px;
    }
    
    .site-logo a {
        color: #333;
        text-decoration: none;
        font-weight: 700;
    }
    
}

/* ========================================
   ナビゲーションメニュー - レスポンシブ
======================================== */
@media screen and (max-width: 1024px) {
    .nav-overlay {
        background: rgba(0, 0, 0, 0.5);
    }
    
    .nav-menu-container {
        width: 400px;
        max-width: 80%;
    }
    
    .nav-content-section {
        padding: 60px 40px;
        padding-right: 40px;
    }

    .nav-close-btn {
        right: 40px;
    }

    .nav-menu {
        margin: 30px 0;
    }

    .nav-link {
        font-size: 32px;
    }

    .nav-text {
        font-size: 32px;
    }

    .nav-item.nav-sub-item .nav-link,
    .nav-item.nav-sub-item-construction .nav-link {
        font-size: 26px;
    }
}

@media screen and (max-width: 767px) {
    .nav-overlay {
        background: rgba(0, 0, 0, 0.5);
    }

    .nav-menu-container {
        width: 400px;
        max-width: 80%;
    }

    .nav-content-section {
        padding: 60px 20px;
        padding-right: 20px;
    }

    .nav-close-btn {
        right: 20px;
    }

    .nav-menu {
        margin: 30px 0;
    }

    .nav-link {
        font-size: 32px;
    }

    .nav-text {
        font-size: 32px;
    }

    .nav-item.nav-sub-item .nav-link,
    .nav-item.nav-sub-item-construction .nav-link {
        font-size: 26px;
    }
}

/* ========================================
   フッター - レスポンシブ
======================================== */
@media screen and (max-width: 1024px) {
    .site-footer {
        padding: 60px 0 30px;
    }
    
    .footer-container {
        padding: 0 40px;
    }

    .footer-top {
        flex-direction: column;
        gap: 40px;
    }
    
    .footer-company-info {
        width: 100%;
        text-align: center;
    }
    
    .footer-logo {
        font-size: 24px;
        margin-bottom: 20px;
    }
    
    .company-details {
        font-size: 14px;
    }
    
    .footer-nav {
        width: 100%;
        grid-template-columns: repeat(2, 1fr);
        gap: 30px;
    }
    
    .footer-nav-title {
        font-size: 16px;
    }
    
    .footer-nav-list li {
        font-size: 14px;
    }
}

@media screen and (max-width: 767px) {
    .site-footer {
        padding: 50px 0 20px;
        background-color: #f8f8f8;
    }
    
    .footer-container {
        padding: 0 20px;
    }
    
    .footer-top {
        gap: 30px;
    }
    
    .footer-company-info {
        padding-bottom: 30px;
        border-bottom: 1px solid #e0e0e0;
    }
    
    .footer-logo {
        font-size: 20px;
        margin-bottom: 15px;
    }
    
    .footer-logo a {
        color: #333;
        font-weight: 700;
    }
    
    .company-details {
        font-size: 13px;
        line-height: 1.8;
    }
    
    .postal-code,
    .address {
        margin-bottom: 5px;
    }
    
    .contact-info {
        margin-top: 10px;
    }
    
    .contact-info a {
        color: #24853B;
        text-decoration: none;
        margin: 0 5px;
    }
    
    .footer-nav {
        display: grid;
        grid-template-columns: 1fr;
        gap: 0;
        padding: 20px 0;
        width: 100%;
        justify-content: stretch;
    }

    .footer-nav-column {
        padding: 20px 0;
        border-bottom: 1px solid #e8e8e8;
        text-align: left;
    }

    .footer-nav-column:first-child {
        padding-top: 0;
    }

    .footer-nav-column:last-child {
        border-bottom: none;
        padding-bottom: 0;
    }

    .footer-nav-title {
        font-family: 'Secular One', sans-serif;
        font-size: 16px;
        margin-bottom: 14px;
        font-weight: 600;
        color: #000;
        letter-spacing: 0.1em;
        text-align: left;
    }

    .footer-nav-title a {
        color: inherit;
        text-decoration: none;
    }

    .footer-nav-list {
        list-style: none;
        padding: 0;
        margin: 0;
        display: flex;
        flex-direction: column;
        gap: 10px;
    }

    .footer-nav-list li {
        font-size: 14px;
        margin: 0;
    }

    .footer-nav-list li a {
        color: #555;
        text-decoration: none;
        display: inline-block;
        padding: 2px 0;
        margin-left: 0;
        transition: color 0.3s ease;
    }
    
    .footer-nav-list li a:hover {
        color: #24853B;
    }
    
    .footer-bottom {
        padding-top: 30px;
        border-top: 1px solid #e0e0e0;
        text-align: center;
    }
    
    .footer-links {
        display: flex;
        justify-content: center;
        gap: 20px;
        margin-bottom: 15px;
        flex-wrap: wrap;
    }
    
    .footer-links a {
        font-size: 12px;
        color: #666;
        text-decoration: none;
        padding: 5px 10px;
        transition: color 0.3s ease;
    }
    
    .footer-links a:hover {
        color: #24853B;
    }
    
    .copyright {
        font-size: 11px;
        color: #999;
        margin: 0;
    }
}

/* 小型デバイス向け追加調整 */
@media screen and (max-width: 375px) {
    .site-header {
        padding: 10px 12px;
    }
    
    .site-logo {
        font-size: 18px;
    }
    
    .hamburger-menu {
        width: 44px;
        height: 44px;
    }
    
    .nav-menu-container {
        width: 90%;
    }
    
    .nav-content-section {
        padding: 70px 20px 30px;
        padding-right: 20px;
    }

    .nav-close-btn {
        right: 20px;
    }
    
    .nav-link,
    .nav-text {
        font-size: 16px;
    }
    
    .nav-item.nav-sub-item .nav-link,
    .nav-item.nav-sub-item-construction .nav-link {
        font-size: 15px;
    }
    
    .footer-logo {
        font-size: 18px;
    }
    
    .company-details {
        font-size: 12px;
    }
    
    .footer-nav-title {
        font-size: 14px;
    }
    
    .footer-nav-list li {
        font-size: 12px;
    }
}

/* アクセシビリティ向上 */
@media screen and (max-width: 767px) {
    /* フォーカススタイル */
    .hamburger-menu:focus,
    .nav-close-btn:focus,
    .nav-link:focus {
        outline: 2px solid #24853B;
        outline-offset: 2px;
    }
    
    /* タップ領域の確保 */
    .nav-link,
    .footer-nav-list li a {
        min-height: 44px;
        display: flex;
        align-items: center;
    }
}

/* メインコンテンツのパディング調整（ヘッダー固定対応） */
@media screen and (max-width: 767px) {
    
    /* 各ページのヒーローセクションの調整 */
    .page-hero,
    .hero-section {
        padding-top: calc(72px + 40px); /* ヘッダー高さ + 元のパディング */
    }
}

/* 施工実績プレースホルダー */
.works-placeholder {
    background: #1a1a1a;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
    cursor: default;
}

.works-placeholder-content {
    text-align: center;
    color: #ffffff;
    font-size: 16px;
    font-weight: 500;
    padding: 20px;
    line-height: 1.6;
}

/* レスポンシブ対応 */
@media (max-width: 768px) {
    .works-placeholder-content {
        font-size: 14px;
        padding: 15px;
    }
}

/* 施工実績パネル：スマホでのタップ動作 */
.works-item {
    cursor: default; /* カーソルをデフォルトに */
}

/* 既存のスマホ・タブレット用メディアクエリを以下に置き換え */
@media (max-width: 1024px) {
    .works-item .works-overlay {
        opacity: 0;
        visibility: hidden;
        transition: opacity 0.3s ease, visibility 0.3s ease;
    }
    
    /* タップ時にオーバーレイを表示 */
    .works-item.active .works-overlay {
        opacity: 1 !important;
        visibility: visible !important;
    }
    
    /* テキストを確実に表示 */
    .works-item.active .works-client {
        visibility: visible !important;
        opacity: 1 !important;
        display: block !important;
        color: #FFFFFF !important;
    }
}

/* スマホ用のworks-client調整を追加 */
@media screen and (max-width: 767px) {
    .works-client {
        font-size: 16px !important;  /* フォントサイズを明示 */
        color: #FFFFFF !important;
        line-height: 1.6 !important;
    }
}

/* ========================================
   OUR STORY セクション（トップページ）
   非対称・タイポグラフィだけで構成
======================================== */
.story-section {
    background-color: #ffffff;
    padding: 180px 0;
}

.story-inner {
    max-width: 1180px;
    margin: 0 auto;
    padding: 0 40px;
    display: grid;
    grid-template-columns: 200px 1fr;
    column-gap: 80px;
    align-items: start;
}

/* 左側：メタ情報（ラベル＋日付） */
.story-meta {
    display: flex;
    flex-direction: column;
    gap: 10px;
    padding-top: 14px;
}

.story-label {
    font-family: 'Secular One', sans-serif;
    font-size: 13px;
    letter-spacing: 0.3em;
    color: #000000;
}

.story-date {
    font-family: 'Secular One', sans-serif;
    font-size: 12px;
    letter-spacing: 0.15em;
    color: #999999;
}

/* 右側：本文 */
.story-main {
    max-width: 700px;
}

.story-heading {
    font-family: 'Noto Sans JP', sans-serif;
    font-size: 40px;
    font-weight: 700;
    color: #000000;
    line-height: 1.55;
    letter-spacing: 0.02em;
    margin: 0 0 64px;
}

.story-texts {
    margin-bottom: 80px;
}

.story-lead {
    font-family: 'Noto Sans JP', sans-serif;
    font-size: 17px;
    font-weight: 500;
    color: #111111;
    line-height: 2.2;
    letter-spacing: 0.04em;
    margin: 0 0 32px;
}

.story-lead strong {
    font-weight: 700;
    color: #000000;
    border-bottom: 1px solid #000;
    padding-bottom: 1px;
}

.story-body {
    font-family: 'Noto Sans JP', sans-serif;
    font-size: 15px;
    font-weight: 400;
    color: #555555;
    line-height: 2.15;
    letter-spacing: 0.05em;
    margin: 0 0 24px;
}

.story-body:last-child {
    margin-bottom: 0;
}

/* 関連会社：本文と同列、フラットに */
.story-partner {
    display: flex;
    align-items: center;
    gap: 28px;
    padding-top: 40px;
    border-top: 1px solid #e5e5e5;
}

.story-partner-label {
    font-family: 'Noto Sans JP', sans-serif;
    font-size: 13px;
    font-weight: 500;
    color: #999999;
    letter-spacing: 0.12em;
}

.story-partner-link {
    display: inline-block;
    text-decoration: none;
    transition: opacity 0.2s;
}

.story-partner-link:hover {
    opacity: 0.7;
}

.story-partner-logo {
    height: 44px;
    width: auto;
    display: block;
}

/* OUR STORY - レスポンシブ */
@media screen and (max-width: 1024px) {
    .story-section {
        padding: 120px 0;
    }

    .story-inner {
        grid-template-columns: 160px 1fr;
        column-gap: 50px;
    }

    .story-heading {
        font-size: 32px;
        margin-bottom: 48px;
    }
}

@media screen and (max-width: 767px) {
    .story-section {
        padding: 90px 0;
    }

    .story-inner {
        grid-template-columns: 1fr;
        row-gap: 32px;
        padding: 0 24px;
    }

    .story-meta {
        flex-direction: row;
        align-items: baseline;
        gap: 14px;
        padding-top: 0;
    }

    .story-heading {
        font-size: 24px;
        line-height: 1.6;
        margin-bottom: 40px;
    }

    .story-lead {
        font-size: 15px;
        line-height: 2;
    }

    .story-body {
        font-size: 13px;
        line-height: 2;
    }

    .story-texts {
        margin-bottom: 56px;
    }

    .story-partner {
        flex-direction: column;
        align-items: flex-start;
        gap: 16px;
        padding-top: 32px;
    }

    .story-partner-logo {
        height: 40px;
    }
}

/* ========================================
   SUSTAINABILITY セクション（トップページ）
   サイト既存トーン踏襲・装飾最小
======================================== */
.sustainability-section {
    background-color: #ffffff;
    padding: 140px 0;
    position: relative;
}

.sustainability-section .container {
    max-width: 1100px;
}

.section-subtitle-sustainability {
    white-space: nowrap;
    width: auto;
    text-align: center;
    margin: 10px 0 0 0;
    margin-bottom: 0;
}

/* リード＋本文 */
.sustainability-lead {
    max-width: 780px;
    margin: 70px auto 90px;
    text-align: center;
}

.sustainability-heading {
    font-family: 'Noto Sans JP', sans-serif;
    font-size: 28px;
    font-weight: 700;
    line-height: 1.75;
    color: #000000;
    letter-spacing: 0.03em;
    margin: 0 0 40px;
}

.sustainability-text {
    font-family: 'Noto Sans JP', sans-serif;
    font-size: 15px;
    font-weight: 400;
    line-height: 2.2;
    color: #333333;
    letter-spacing: 0.05em;
    margin: 0 0 24px;
    text-align: left;
}

.sustainability-text:last-child {
    margin-bottom: 0;
}

/* 3つの数字ブロック */
.sustainability-numbers {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    max-width: 900px;
    margin: 0 auto 80px;
    padding: 50px 0;
    border-top: 1px solid #e0e0e0;
    border-bottom: 1px solid #e0e0e0;
}

.sustainability-number {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 12px;
    padding: 0 20px;
    position: relative;
}

.sustainability-number + .sustainability-number::before {
    content: "";
    position: absolute;
    left: 0;
    top: 10%;
    bottom: 10%;
    width: 1px;
    background-color: #e0e0e0;
}

.sustainability-number-value {
    font-family: 'Secular One', sans-serif;
    font-size: 72px;
    font-weight: 500;
    line-height: 1;
    color: #000000;
    letter-spacing: 0.01em;
}

.sustainability-number-value small {
    font-size: 36px;
    font-weight: 500;
    margin-left: 2px;
}

.sustainability-number-label {
    font-family: 'Secular One', sans-serif;
    font-size: 12px;
    font-weight: 500;
    letter-spacing: 0.2em;
    color: #518fc7;
}

.sustainability-number-desc {
    font-family: 'Noto Sans JP', sans-serif;
    font-size: 13px;
    font-weight: 400;
    line-height: 1.6;
    color: #666666;
    letter-spacing: 0.04em;
}

/* CTA */
.sustainability-cta {
    text-align: center;
}

.sustainability-button {
    display: inline-flex;
    align-items: center;
    gap: 18px;
    padding: 22px 54px;
    background-color: #000000;
    color: #ffffff;
    font-family: 'Noto Sans JP', sans-serif;
    font-size: 16px;
    font-weight: 500;
    letter-spacing: 0.1em;
    text-decoration: none;
    transition: background-color 0.25s, transform 0.25s;
}

.sustainability-button:hover {
    background-color: #518fc7;
    transform: translateY(-2px);
}

.sustainability-button-arrow {
    font-family: 'Secular One', sans-serif;
    font-size: 18px;
    line-height: 1;
    transition: transform 0.25s;
}

.sustainability-button:hover .sustainability-button-arrow {
    transform: translateX(4px);
}

/* SUSTAINABILITY - レスポンシブ */
@media screen and (max-width: 1024px) {
    .sustainability-section {
        padding: 100px 0;
    }

    .sustainability-lead {
        margin: 50px auto 70px;
        padding: 0 20px;
    }

    .sustainability-heading {
        font-size: 22px;
    }

    .sustainability-number-value {
        font-size: 56px;
    }

    .sustainability-number-value small {
        font-size: 28px;
    }
}

@media screen and (max-width: 767px) {
    .sustainability-section {
        padding: 70px 0;
    }

    .sustainability-lead {
        margin: 40px auto 50px;
        padding: 0 20px;
    }

    .sustainability-heading {
        font-size: 18px;
        line-height: 1.8;
        margin-bottom: 28px;
    }

    .sustainability-text {
        font-size: 13px;
        line-height: 2;
        letter-spacing: 0.04em;
    }

    .sustainability-numbers {
        grid-template-columns: 1fr;
        gap: 0;
        padding: 10px 0;
        margin-bottom: 50px;
    }

    .sustainability-number {
        padding: 30px 20px;
        border-bottom: 1px solid #e0e0e0;
    }

    .sustainability-number:last-child {
        border-bottom: none;
    }

    .sustainability-number + .sustainability-number::before {
        display: none;
    }

    .sustainability-number-value {
        font-size: 56px;
    }

    .sustainability-number-value small {
        font-size: 28px;
    }

    .sustainability-button {
        padding: 18px 32px;
        font-size: 14px;
        width: calc(100% - 48px);
        justify-content: center;
    }
}