/* ===================================================
   余白システム（CSS変数で統一管理）
   ================================================ */
:root {
    /* セクション間の縦余白 */
    --section-spacing: 80px;
    --section-spacing-large: 120px;
    --section-spacing-small: 60px;
    
    /* セクション内パディング */
    --section-padding-y: 60px;
    --section-padding-y-large: 80px;
    --section-padding-y-small: 40px;
    
    /* コンテナ左右余白 */
    --container-padding-x: 35px;
    
    /* 要素間の余白 */
    --element-spacing: 40px;
    --element-spacing-small: 25px;
}

/* レスポンシブ: 余白システム（768px以下） */
@media (max-width: 768px) {
    :root {
        --section-spacing: 60px;
        --section-spacing-large: 80px;
        --section-spacing-small: 40px;
        
        --section-padding-y: 40px;
        --section-padding-y-large: 50px;
        --section-padding-y-small: 30px;
        
        --container-padding-x: 25px;
        
        --element-spacing: 30px;
        --element-spacing-small: 20px;
    }
}

/* レスポンシブ: 余白システム（480px以下） */
@media (max-width: 480px) {
    :root {
        --section-spacing: 40px;
        --section-spacing-large: 60px;
        --section-spacing-small: 30px;
        
        --section-padding-y: 30px;
        --section-padding-y-large: 40px;
        --section-padding-y-small: 20px;
        
        --element-spacing: 25px;
        --element-spacing-small: 15px;
    }
}

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

html {
    font-size: 18px;
}

body {
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    font-family: 'Zen Kaku Gothic New', 'Yu Gothic Medium', sans-serif;
    color: #333;
    background-color: #F8F9F6;
    line-height: 1.8;
    overflow-x: hidden;
    max-width: 100%;
}

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

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

/* ===================================================
   タイポグラフィ（見出し・段落の基本）
   ================================================ */
h1, h2, h3, h4, h5, h6 {
    font-weight: 600;
    line-height: 1.4;
    color: #334636;
    margin-bottom: 1rem;
}

h1 {
    font-size: 2.2rem;
    letter-spacing: 2px;
}

h2 {
    font-size: 1.8rem;
    letter-spacing: 1.5px;
}

h3 {
    font-size: 1.4rem;
    letter-spacing: 1px;
}

h4 {
    font-size: 1.2rem;
    letter-spacing: 0.5px;
}

p {
    line-height: 1.8;
    margin-bottom: 1rem;
}

small {
    font-size: 0.875rem;
    color: #666;
}

strong {
    font-weight: 600;
    color: #334636;
}

/* レスポンシブ: タイポグラフィ（768px以下） */
@media (max-width: 768px) {
    html {
        font-size: 15px;
    }

    h1 {
        font-size: 1.6rem;
        letter-spacing: 1px;
    }
    
    h2 {
        font-size: 1.4rem;
        letter-spacing: 1px;
    }
    
    h3 {
        font-size: 1.2rem;
        letter-spacing: 0.5px;
    }
    
    h4 {
        font-size: 1.1rem;
    }
}

/* レスポンシブ: タイポグラフィ（480px以下） */
@media (max-width: 480px) {
    h1 {
        font-size: 1.5rem;
    }
    
    h2 {
        font-size: 1.3rem;
    }
    
    h3 {
        font-size: 1.1rem;
    }
}


/* SEO用非表示H1（スクリーンリーダーには読まれる） */
.visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border-width: 0;
}

/* ===================================================
   WordPressブロック：メディアと文章
   ================================================ */
.wp-block-media-text {
    display: grid;
    grid-template-columns: 1.5fr 3fr; 
    gap: 3em;
    align-items: center;
}

.wp-block-media-text .wp-block-media-text__media,
.wp-block-media-text .wp-block-media-text__content {
    margin: 0;
    padding: 0;
}

.wp-block-media-text .wp-block-media-text__media {
    max-width: 100%;
}

.wp-block-media-text .wp-block-media-text__media img {
    width: 100%;
    height: auto;
    object-fit: cover;
}

.wp-block-media-text .wp-block-media-text__content {
    padding-left: 0;
}

/* 画像が右側の場合 */
.wp-block-media-text.has-media-on-the-right {
    grid-template-columns: 3fr 1.5fr; 
}

.wp-block-media-text.has-media-on-the-right .wp-block-media-text__content {
    padding-left: 0;
    padding-right: 0;
}

/* レスポンシブ: メディアと文章（768px以下） */
@media (max-width: 768px) {
    .wp-block-columns {
        display: flex;
        flex-direction: column !important;
        gap: var(--element-spacing); 
    }
    
    .wp-block-column {
        flex-basis: 100% !important;
        margin-left: 0 !important;
        margin-bottom: 0 !important;
    }
    
    .wp-block-columns .wp-block-column img {
        width: 100%;
        max-height: 220px;
        object-fit: cover;
        display: block;
        margin: 0 auto 15px; 
    }
    
    .wp-block-column:has(.wp-block-image) {
        order: -1;
        margin-bottom: 0;
    }
    
    .wp-block-column:has(.wp-block-heading),
    .wp-block-column:has(p) {
        order: 1;
        margin-top: 0;
    }
    
    .wp-block-media-text {
        display: flex;
        flex-direction: column;
        gap: 0; 
        margin-bottom: var(--element-spacing-small); 
    }
    
    .wp-block-media-text .wp-block-media-text__media {
        order: -1;
        margin-bottom: 15px; 
    }
    
    .wp-block-media-text .wp-block-media-text__content {
        order: 1;
        padding-left: 0;
        padding-right: 0;
    }
    
    .wp-block-media-text.has-media-on-the-right .wp-block-media-text__content {
        padding-right: 0;
    }

    .wp-block-media-text:last-child {
        margin-bottom: 0;
    }

    .wp-block-columns:last-child {
        gap: 0;
    }

    .wp-block-columns:last-child .wp-block-column:last-child {
        margin-bottom: 0;
    }
}

/* スマホで画像を後にする専用クラス */
@media (max-width: 768px) {
    .wp-block-media-text.media-after .wp-block-media-text__media {
        order: 1;
    }
    
    .wp-block-media-text.media-after .wp-block-media-text__content {
        order: -1;
        margin-bottom: 15px;
    }
}

/* WordPressのブロックエディタ対応 */
.wp-block-image img {
    display: block;
    margin-left: auto;
    margin-right: auto;
}

/* 旧エディタ対応 */
.entry-content img,
.post-content img,
.content img {
    display: block;
    margin-left: auto;
    margin-right: auto;
}

/* ===================================================
   コンテナと余白の統一
   ================================================ */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--section-padding-y);
}

.page-news .container {
    padding: var(--section-padding-y) 20px;
}

.main-container {
    position: relative;
    overflow-x: hidden;
    max-width: 100%;
    padding-top: 0;
}

/* レスポンシブ: コンテナ（768px以下） */
@media (max-width: 768px) {
    .container {
        padding: 0 var(--container-padding-x);
    }

    .main-container {
        padding-top: 0;
    }

}

/* ===================================================
  スクロールトップ（恐竜アイコン）
================================================== */
.dinosaur {
    position: fixed;
    right: -200px;
    top: 50%;
    transform: translateY(-50%);
    width: 120px;
    height: 120px;
    z-index: 1000;
    transition: right 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    cursor: pointer;
    background-image: url('../images/pagetop.webp');
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
}

.dinosaur.show {
    right: 20px;
}

.dinosaur:hover {
    transform: translateY(-50%) scale(1.1);
    transition: all 0.3s ease;
}

.dinosaur.bounce {
    animation: bounce 0.6s ease-in-out;
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translateY(-50%);
    }
    40% {
        transform: translateY(-60%);
    }
    60% {
        transform: translateY(-55%);
    }
}

@media (max-width: 768px) {
    .dinosaur {
        width: 60px;
        height: 60px;
        right: -120px;
        top: auto;
        bottom: 20px;
        transform: none;
    }

    .dinosaur.show {
        right: 10px;
    }
}

/* ===================================================
   グリーンヘッダー（全ページ共通・ベース）
   ================================================ */
.green-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1001;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(5px); 
    -webkit-backdrop-filter: blur(8px);
    box-shadow: 0 1px 8px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
    opacity: 1;
    visibility: visible;
}

body:not(.home) .green-header {
    background: rgba(0, 0, 0, 0.1);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(10px);
}

/* PC版：背景色を固定 */
@media (min-width: 1081px) {
    .green-header {
        background: rgba(51, 70, 54, 0.95);
    }
    
    body:not(.home) .green-header {
        background: rgba(51, 70, 54, 0.95);
    }
}

.green-header-container {
    height: 80px;
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 var(--container-padding-x);
}

.green-logo {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 250px;
    height: 80px;
    flex-shrink: 0;
}

.green-logo-img {
    width: 250px;
    height: auto;
    object-fit: contain;
    filter: brightness(1.2) contrast(1.1);
    padding-top: 17px;
}

.green-logo .site-name {
    color: white;
    font-size: 1.3rem;
    font-weight: 600;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.green-navigation {
    flex: 1;
    display: flex;
    justify-content: right;
}

.green-menu {
    list-style: none;
    display: flex;
    gap: 15px;
    margin: 0;
    padding: 0;
}

.green-menu li {
    margin: 0;
}

.green-menu .menu-item a {
    display: flex;
    flex-direction: column;
    align-items: center;
    color: white;
    padding: 10px;
    position: relative;
    transition: all 0.3s ease;
}

.green-menu .menu-text-ja {
    font-size: 15px;
    font-weight: 500;
}

.green-menu .menu-text-en {
    font-size: 10px;
    font-weight: 300;
    opacity: 0.8;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.green-menu .menu-item a:hover {
    color: #D4C5A0;
    opacity: 0.9;
}

.green-menu .menu-item a:hover .menu-text-en {
    opacity: 1;
}

.green-menu .menu-item a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 1px;
    background: #D4C5A0;
    transition: width 0.3s ease;
}

.green-menu .menu-item a:hover::after {
    width: 100%;
}

/* レスポンシブ: グリーンヘッダー（1080px以下） */
@media (max-width: 1080px) {
    .green-header {
        background: rgba(51, 70, 54, 0.95);
        backdrop-filter: blur(8px);
        -webkit-backdrop-filter: blur(10px);
        display: block !important;
        transform: translateY(0) !important;
    }
    
    body:not(.home) .green-header {
        background: rgba(51, 70, 54, 0.95);
        backdrop-filter: blur(3px);
        -webkit-backdrop-filter: blur(6px);
    }
    
    .green-header-container {
        height: 80px;
        max-width: 100%;
        margin: 0 auto;
        display: flex;
        align-items: center;
        justify-content: space-between;
        padding: 0 var(--element-spacing-small);
    }
    
    .green-logo {
        width: auto;
        height: 80px;
    }
          
    .green-menu {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100vh;
        background: rgba(51, 70, 54, 0.95);
        backdrop-filter: blur(20px);
        -webkit-backdrop-filter: blur(20px);
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        gap: 10px;
        z-index: 9999;
        transform: translateY(-100%);
        transition: transform 0.3s ease-in-out;
        opacity: 0;
        visibility: hidden;
    }
    
    .green-menu.active {
        transform: translateY(0);
        opacity: 1;
        visibility: visible;
    }
    
    .green-menu li {
        width: 100%;
        text-align: center;
    }
    
    .green-menu .menu-item a {
        color: white;
        padding: 10px 0;
        width: 100%;
    }
       
    .green-menu .menu-text-en {
        letter-spacing: 1px;
        color: white;
        opacity: 0.8;
    }
    
    .green-menu .menu-item a:hover {
        background: rgba(255, 255, 255, 0.1);
        color: #D4C5A0;
    }
    
    .green-menu .menu-item a:hover .menu-text-en {
        opacity: 1;
        color: #D4C5A0;
    }

    .green-menu .menu-item a::after {
        background: #D4C5A0;
    }
}

/* レスポンシブ: グリーンヘッダー（768px以下） */
@media (max-width: 768px) {
    .green-logo {
        width: 150px;
    }
    
    .company-name {
        font-size: 11px;
    }

    .green-logo-img {
        max-width: 200px;
        margin-left: 60px;
    }
          
}

/* レスポンシブ: グリーンヘッダー（480px以下） */
@media (max-width: 480px) {
    .green-logo {
        width: 120px;
    }
    
    .company-name {
        font-size: 10px;
    }

    .green-logo-img {
        margin-left: 100px;
    }
        
}

/* ===================================================
   モバイルメニュー共通
   ================================================ */
.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
    background: none;
    border: none;
    padding: 8px;
}

.mobile-menu-toggle span {
    height: 3px;
    width: 25px;
    display: block;
    transition: all 0.3s ease;
}

.green-header .mobile-menu-toggle span {
    background: white;
    box-shadow: 1px 1px 2px rgba(0, 0, 0, 0.3);
}

.green-header .mobile-menu-toggle:hover span {
    background: #D4C5A0;
}

@media (max-width: 1080px) {
    .green-header .mobile-menu-toggle span {
        box-shadow: none;
    }
    
    .green-header .mobile-menu-toggle:hover span {
        background: #49965c;
    }
}

/* レスポンシブ: モバイルメニュー（1080px以下） */
@media (max-width: 1080px) {
    .mobile-menu-toggle {
        display: flex;
        position: relative;
        z-index: 10001;
    }
}

/* ===================================================
   サブヘッダー（左下寄せ）
   ================================================ */
.sub-header {
    position: relative;
    background-size: cover;
    background-position: center center;
    background-repeat: no-repeat;
    min-height: 450px; 
    display: flex;
    align-items: flex-end;
    color: white;
    padding: 0 var(--element-spacing);
    margin-top: 0; 
}

.sub-header-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.4); 
}

.sub-header .container {
    position: relative;
    z-index: 2;
    text-align: left;
    width: 100%;
    padding: 20px var(--container-padding-x) var(--section-padding-y);
}

.sub-header .breadcrumb {
    margin-bottom: 20px; 
    font-size: 14px;
    opacity: 0.9;
}

.sub-header .breadcrumb a {
    color: rgba(255, 255, 255, 0.8);
    transition: color 0.3s;
}

.sub-header .breadcrumb a:hover {
    color: white;
}

.sub-header .page-title {
    font-size: 3rem; 
    font-weight: 700;
    margin: 0;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
    letter-spacing: 2px;
    line-height: 1.2;
    color: white;
}

.sub-header .page-description {
    font-size: 1.1rem; 
    margin-top: 20px; 
    margin-bottom: 0;
    opacity: 0.9;
    max-width: 700px; 
    line-height: 1.6;
    color: white;
}

body.home .sub-header {
    display: none;
}

/* レスポンシブ: サブヘッダー（1080px以下） */
@media (max-width: 1080px) {
    .sub-header {
        margin-top: 0;
        padding-top: 80px;
        min-height: 200px;
    }
}

/* レスポンシブ: サブヘッダー（768px以下） */
@media (max-width: 768px) {
    .sub-header {
        min-height: 150px;
        padding-top: 70px;
    }
    
    .sub-header .page-title {
        font-size: 1.8rem;
        letter-spacing: 1px;
    }
    
    .sub-header .page-description {
        font-size: 1rem;
        margin-top: 15px;
    }

    .sub-header .container {
        padding: 80px 0 var(--element-spacing); 
    }

    .breadcrumb {
        display: none;
    }
}

/* レスポンシブ: サブヘッダー（480px以下） */
@media (max-width: 480px) {
    .sub-header {
        min-height: 130px;
        padding-top: 60px;
    }

    .sub-header .page-title {
        font-size: 1.6rem;
        letter-spacing: 0.5px;
    }
       
    .sub-header .page-description {
        font-size: 0.9rem;
        margin-top: 10px;
    }
}


/* ===================================================
   ページローディング
   ================================================ */

/* ヒーロースケルトン */
.hero-skeleton {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background: #334636;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 1;
    transition: opacity 0.5s ease;
    z-index: 10001;
}

.hero-skeleton-logo {
    max-width: 300px;
    height: auto;
    opacity: 0.9;
    animation: fadeInOut 1.5s ease-in-out infinite;
    z-index: 10002;
}

@keyframes fadeInOut {
    0%, 100% { 
        opacity: 0.5; 
    }
    50% { 
        opacity: 0.9; 
    }
}

.hero-skeleton.hidden {
    opacity: 0;
    pointer-events: none;
}

/* ★ 削除: .hero-section の opacity: 0 は不要 */
/* 初回訪問時のみ、JSで直接制御 */

.hero-section.loaded {
    opacity: 1;
}

/* プログレスバー */
.page-load-progress {
    position: fixed;
    top: 0;
    left: 0;
    height: 5px;
    background: #ffffff;
    width: 0%;
    z-index: 10002;
    transition: width 0.3s ease, opacity 0.5s ease;
    box-shadow: 0 2px 4px rgba(255, 255, 255, 0.3);
}

.page-load-progress.complete {
    opacity: 0;
    pointer-events: none;
}

/* レスポンシブ: ページローディング（768px以下） */
@media (max-width: 768px) {
    .page-load-progress {
        height: 4px;
    }
    
    .page-load-progress.complete {
        display: none;
    }
}

/* ===================================================
   ヒーローセクション
   ================================================ */
.hero-section {
    position: relative;
    width: 100%;
    height: 100vh;
    min-height: 600px;
    overflow: hidden;
    margin-left: 0;
}

.hero-slider {
    position: relative;
    width: 100%;
    height: 100%;
    margin-left: 0;
}

.hero-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 1s ease-in-out;
}

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

.hero-image {
    width: 100%; 
    height: 100%;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    position: relative;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.2);
}

.hero-content {
    position: absolute;
    bottom: 4rem;
    left: 4rem;
    color: white;
    z-index: 2;
    max-width: 800px;
}

.hero-title {
    font-size: clamp(1.5rem, 3.5vw, 2.5rem);
    font-weight: 700;
    margin-bottom: 1rem;
    line-height: 1.5;
    text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.6);
    color: #fff;
}

.hero-subtitle {
    font-size: 1.2rem;
    margin-bottom: 2rem;
    opacity: 0.9;
    text-shadow: 1px 1px 4px rgba(0, 0, 0, 0.6);
    font-weight: 300;
    line-height: 1.4;
    position: relative;
    color: #fff;
}

.hero-subtitle img {
    width: 25px;
    height: 25px;
    margin-right: 12px;
    margin-bottom: -5px;
}

.hero-subtitle::before {
    content: '';
    position: absolute;
    bottom: -1rem;
    left: 0;
    width: 60px;
    height: 1px;
    background: rgba(255, 255, 255, 0.9);
}

/* ===================================================
   ヒーローセクション：レスポンシブ（768px以下）
   JavaScriptでスライドを動的に削除するためCSS側はシンプル
   ================================================ */
@media (max-width: 768px) {
    /* セクション設定 */
    .hero-section {
        height: 100vh;
        min-height: 700px;
        margin-bottom: 0;
    }

    /* 画像設定 */
    .hero-image {
        width: 100%;
        height: 100%;
        background-size: cover;
        background-position: center center;
    }

    /* コンテンツ配置 */
    .hero-content {
        bottom: 2rem;
        left: 2rem;
        right: 2rem;
        transform: none;
        text-align: left;
        max-width: none;
    }

    /* タイトル */
    .hero-title {
        font-size: clamp(1.5rem, 6vw, 2.5rem);
    }

    /* サブタイトル装飾削除 */
    .hero-subtitle::before {
        display: none;
    }
   
    /* スライダー幅調整 */
    .hero-slider {
        margin-left: 0;
        width: 100%;
    }

    /* ボタン画像非表示 */
    .hero-content .button img {
        display: none;
    }
}

/* ===================================================
   ヒーローセクション：レスポンシブ（480px以下）
   ================================================ */
@media (max-width: 480px) {
    /* セクション高さ調整 */
    .hero-section {
        min-height: 600px;
        margin-bottom: 0;
    }

    /* 画像設定 */
    .hero-image {
        width: 100%;
        height: 100%;
        margin: 0;
        border-radius: 0;
        background-size: cover;
        background-position: center center;
    }

    /* コンテンツ配置微調整 */
    .hero-content {
        bottom: 0;
        right: 1rem;
    }
}

/* ===================================================
   カスタマイズメモ
   ================================================ */
/*
【スマホで表示するスライドを変更する場合】
sliders.js内の keepIndices 配列を変更：
const keepIndices = [2, 5, 7]; // 残すスライド番号（1始まり）

【高さを調整する場合】
- 768px以下: height: 100vh; を 70vh などに変更
- 480px以下: min-height: 600px; を調整

【画像の表示範囲を調整する場合】
background-position: center center; を変更：
- center 30% = 上寄り
- center 50% = 真ん中
- center 70% = 下寄り
*/


/* ===================================================
   ヒーロースクロールインジケーター
   ================================================ */
.hero-scroll-indicator {
    position: absolute;
    left: 50%;
    bottom: 40px;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
    z-index: 10;
    cursor: pointer;
    transition: all 0.3s ease;
}

.hero-scroll-indicator:hover {
    transform: translateX(-50%) translateY(-5px);
}

.hero-scroll-text {
    font-size: 13px;
    font-weight: 400;
    letter-spacing: 2px;
    color: rgba(255,255,255,0.8);
    text-transform: uppercase;
}

.hero-scroll-mouse {
    width: 22px;
    height: 42px;
    border: 2px solid rgba(255,255,255,0.5);
    border-radius: 22px;
    position: relative;
    background: rgba(255,255,255,0.05);
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
}

.hero-scroll-indicator:hover .hero-scroll-mouse {
    border-color: rgba(255,255,255,0.8);
    background: rgba(255,255,255,0.1);
}

.hero-scroll-mouse::after {
    content: '';
    position: absolute;
    top: 8px;
    left: 50%;
    transform: translateX(-50%);
    width: 4px;
    height: 8px;
    background: rgba(255,255,255,0.9);
    border-radius: 2px;
    animation: heroMouseScroll 2.5s infinite ease-in-out;
}

@keyframes heroMouseScroll {
    0% { 
        opacity: 1; 
        transform: translateX(-50%) translateY(0); 
    }
    50% {
        opacity: 0.7;
        transform: translateX(-50%) translateY(12px);
    }
    100% { 
        opacity: 0; 
        transform: translateX(-50%) translateY(20px); 
    }
}

/* レスポンシブ: スクロールインジケーター（768px以下） */
@media (max-width: 768px) {
    .hero-scroll-indicator {
        right: 30px;
        left: auto;
        bottom: auto;
        top: 50%;
        transform: translateY(-50%);
        gap: 12px;
    }
    
    .hero-scroll-indicator:hover {
        transform: translateY(-50%) translateX(-5px);
    }

    .hero-scroll-text {
        font-size: 12px;
        letter-spacing: 1.5px;
        writing-mode: vertical-rl;
        text-orientation: mixed;
    }

    .hero-scroll-mouse {
        width: 20px;
        height: 38px;
    }

    .hero-scroll-mouse::after {
        width: 3px;
        height: 6px;
        top: 6px;
    }

    .hero-scroll-indicator {
        right: 25px;
    }
    
    .hero-scroll-text {
        font-size: 11px;
    }
}

/* レスポンシブ: スクロールインジケーター（480px以下） */
@media (max-width: 480px) {
    .hero-scroll-indicator {
        right: 20px;
        gap: 10px;
    }
    
    .hero-scroll-text {
        font-size: 10px;
        letter-spacing: 1px;
    }
    
    .hero-scroll-mouse {
        width: 18px;
        height: 34px;
    }
    
    .hero-scroll-mouse::after {
        width: 2px;
        height: 5px;
        top: 5px;
    }
}

/* ===================================================
   ボタン
   ================================================ */
.button {
    display: inline-block;
    transition: transform 0.3s ease, opacity 0.3s ease;
}

.button img {
    max-width: 200px;
    height: auto;
    filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.4));
    transition: filter 0.3s ease, transform 0.3s ease;
}

.button:hover {
    transform: translateY(-2px);
}

.button:hover img {
    filter: drop-shadow(0 6px 12px rgba(0, 0, 0, 0.6));
    transform: scale(1.05);
}

.button-section {
    text-align: center;
    padding: var(--container-padding-x) 0;
}

/* レスポンシブ: ボタン（768px以下） */
@media (max-width: 768px) {
    .button img {
        max-width: 160px;
    }

    .button-section {
        padding: 15px 0;
    }

    .button-section2 {
        text-align: center;
        margin: 0 0 var(--element-spacing);
    }
}

/* ===================================================
   共通ボタンスタイル（TOPページ以外）
   ================================================ */
.common-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: #2D5233;
    background: white;
    font-size: 16px;
    font-weight: 600;
    padding: 7px 24px;
    border: 2px solid #2D5233;
    border-radius: 30px;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(45, 82, 51, 0.1);
    position: relative;
    overflow: hidden;
}

.common-btn::after {
    content: '▶';
    font-size: 0.5em;         
    margin-left: 4em;
    margin-top: 6px;        
    display: inline-block;
    transition: transform 0.3s ease;
    vertical-align: baseline;  
    transform: translateY(-3px); 
}

.common-btn:hover {
    color: white;
    background: #2D5233;
    transform: translateY(-2px);
    box-shadow: 0 4px 16px rgba(45, 82, 51, 0.2);
}

.common-btn:hover::after {
    transform: translateX(3px) translateY(-3px); 
}

.back-to-list {
    margin-top: var(--section-spacing-small);
    text-align: center;
    padding: 20px 0;
}

.back-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: #2D5233;
    background: white;
    font-size: 16px;
    font-weight: 600;
    padding: 7px 24px;
    border: 2px solid #2D5233;
    border-radius: 30px;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(45, 82, 51, 0.1);
    position: relative;
    overflow: hidden;
}

.back-btn::before {
    content: "◀";
    font-size: 0.5em;
    margin-right: 4em;
    margin-top: 4px;
    display: inline-block;
    transition: transform 0.3s ease;
}

.back-btn:hover {
    color: white;
    background: #2D5233;
    transform: translateY(-2px);
    box-shadow: 0 4px 16px rgba(45, 82, 51, 0.2);
}

.back-btn:hover::before {
    transform: translateX(-3px);
}

.button-container {
    text-align: center;
    margin: var(--element-spacing) 0;
}

/* レスポンシブ: 共通ボタン（768px以下） */
@media (max-width: 768px) {
    .back-to-list {
        margin-top: 20px;
        padding: 15px 0;
    }
    
    .common-btn,
    .back-btn {
        font-size: 14px;
        padding: 10px 20px;
        gap: 6px;
    }
    
    .back-btn::before {
        font-size: 0.5em;
        margin-right: 2em;
    }

    .button-container {
        margin: var(--section-spacing-small) 0;
    }

    .common-btn::after {
        margin-left: 2em;
    }

    .back-link {
        color: #666;
        font-size: 14px;
        padding: 10px 20px;
        border: 1px solid #ddd;
        border-radius: 6px;
        display: inline-block;
        transition: all 0.3s ease;
    }

    .back-link:hover {
        color: #333;
        border-color: #333;
    }
}

/* ===================================================
   セクション共通
   ================================================ */
.section-title,
.section-title2,
.section-title-new {
    text-align: center;
    margin-bottom: var(--element-spacing);
}

.section-title h2,
.section-title2 h2,
.section-title-new h2 {
    color: #334636;
    margin-bottom: 20px;
    font-weight: 600;
    letter-spacing: 8px;
}

.section-title .subtitle,
.section-title2 .subtitle2,
.section-title-new .subtitle-new {
    color: #666;
    letter-spacing: 4px;
    font-weight: 300;
    position: relative;
}

.section-title .subtitle::before,
.section-title2 .subtitle2::before,
.section-title-new .subtitle-new::before {
    content: "";
    position: absolute;
    top: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 1px;
    background: #4a7c59;
}

.section-description {
    text-align: center;
    margin: var(--element-spacing-small) 0;
    line-height: 1.8;
    font-weight: 400;
}

.white-text .section-title h2 {
    color: #ffffff;
}

.white-text .section-title .subtitle {
    color: #ffffff;
}

.white-text .section-description {
    color: #ffffff;
}

.white-text .section-title .subtitle::before {
    background: #ffffff;
}

.white-text .aboutus-text {
    color: #ffffff;
}

.catchphrase2 h3 {
    font-size: 23px;
    color: #997a4f;
    font-weight: 600;
    letter-spacing: 4px;
    line-height: 1.6;
}

.catchphrase2 {
    text-align: center;
    margin-bottom: var(--element-spacing);
}

/* レスポンシブ: セクション共通（768px以下） */
@media (max-width: 768px) {
    .section-title,
    .section-title-new {
        text-align: left;
        margin-bottom: var(--element-spacing-small);
    }

    .section-title2 {
        padding: 0 var(--container-padding-x);
        margin-bottom: var(--element-spacing-small);
    }

    .section-title h2,
    .section-title2 h2,
    .section-title-new h2 {
        margin-bottom: 0;
        font-size: 1.6rem;
        letter-spacing: 4px;
    }

    .section-title .subtitle::before,
    .section-title2 .subtitle2::before,
    .section-title-new .subtitle-new::before {
        display: none;
    }

    .subtitle,
    .section-title-new .subtitle-new {
        text-align: left;
        font-size: 0.8rem;
    }

    .subtitle2 {
        font-size: 0.8rem;
    }
    
    .section-description {
        text-align: left;
        font-weight: 300;
        margin: 20px 0;
        font-size: 15px;
    }

    .catchphrase h3,
    .catchphrase2 h3 {
        font-size: 20px;
        letter-spacing: 2px;
    }

    .catchphrase2 h3 {
        text-align: left;
    }

    .catchphrase2 {
        margin-bottom: var(--section-spacing-small);
    }
}

/* レスポンシブ: セクション共通（480px以下） */
@media (max-width: 480px) {
    .section-title {
        padding: 0;
    }

    .section-description {
        padding: 0;
    }
}

/* ===================================================
   Visionセクション（サスティナブルメッセージ統合版）
   ================================================ */
.section-vision-integrated {
    margin: 0 auto;
    padding: 80px var(--container-padding-x);
    background-image: url('../images/tail.webp');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    position: relative;
}

.section-vision-integrated::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(255, 255, 255, 0.6);
    z-index: -1;
    pointer-events: none;
}

.vision-integrated-container {
    text-align: center;
    position: relative;
    z-index: 1;
}


/* メインメッセージ */
.vision-main-message {
    max-width: 900px;
    margin: 0 auto;
}

.vision-lead-text {
    line-height: 3.5;
    font-weight: 400;
}

.vision-lead-text strong,
.welfare-support-box .welfare-highlight strong {
    color: #997a4f;
    font-weight: 600;
    border-bottom: 2px solid rgba(153, 122, 79, 0.3);
    padding-bottom: 2px;
    font-size: 1.15rem;
}

/* スマホサイズ */
@media (max-width: 768px) {
.vision-lead-text {
    line-height: 2.0;
    text-align: left;
    margin-bottom: 0;
}

.section-vision-integrated {
    background-image: none;
    padding: 50px var(--container-padding-x);
}

}

/* レスポンシブ: Vision統合セクション（480px以下） */
@media (max-width: 480px) {
    .section-vision-integrated {
        padding: 50px 20px var(--section-padding-y-small);
    }

    .vision-intro-text {
        margin: 0 auto 30px;
    }

    .vision-intro-text p {
        line-height: 1.85;
    }
}

/* ===================================================
   事務所についてセクション（背景画像付き版）
   ================================================ */
.section-about-office {
    position: relative;
    margin: 0 auto;
    padding: var(--section-padding-y) var(--container-padding-x) 5px;
    background-image: url(../images/green.webp);
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-attachment: fixed;
}

.section-about-office::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(255, 255, 255, 0.5);
    z-index: 0;
    pointer-events: none;
}

.about-office-container {
    text-align: center;
    position: relative;
    z-index: 1;
}

.about-office-content {
    max-width: 900px;
    margin: 0 auto;
    text-align: left;
    position: relative;
    z-index: 1;
	color: #000;
}

.about-office-text {
    line-height: 2;
    margin: var(--element-spacing-small) 0;
    font-weight: 400;
}

.about-office-text:first-child {
    margin-top: 0;
}

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

/* レスポンシブ: 事務所について（768px以下） */
@media (max-width: 768px) {
    .section-about-office {
        display: none;
    }
}



/* ===================================================
   福祉施設セクション（PC/スマホ統一版）
   ================================================ */

.section-welfare-visual {
    position: relative;
    margin: 30px auto var(--section-spacing);
    max-width: 1200px;
    padding: 0 60px;
}

.welfare-visual-container {
    text-align: center;
    background: linear-gradient(135deg, #f9fdf9 0%, #ffffff 100%);
    padding: var(--section-padding-y) var(--element-spacing) var(--section-padding-y);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.08);
    border-radius: 5px;
    position: relative;
    margin-top: 30px;
}

/* FOCUSバッジ付きタイトル */
.section-title-welfare {
    text-align: center;
    margin-bottom: 50px;
    position: relative;
}

.focus-badge {
    display: inline-block !important;
    background: linear-gradient(135deg, #997a4f, #b8956a);
    color: white;
    padding: 10px 30px;
    border-radius: 35px;
    font-weight: 600;
    letter-spacing: 2px;
    box-shadow: 0 4px 15px rgba(44, 85, 48, 0.3);
    position: absolute;
    left: 55px;
    top: -25px;
    transform: translateY(-50%);
    z-index: 10;
    white-space: nowrap;
}

.section-title-welfare h2 {
    font-size: 1.8rem;
    letter-spacing: 6px;
    color: #334636;
    margin: 0;
    padding-top: 0;
}

/* メイングリッド */
.welfare-content-grid {
    display: grid;
    grid-template-columns: 0.9fr 1.5fr;
    gap: 50px;
    align-items: stretch;
}

/* 左側：画像エリア */
.welfare-image-area {
    position: relative;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.welfare-main-image {
    position: relative;
    border-radius: 5px;
    overflow: hidden;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.15);
    height: 100%;
    flex: 1;
    min-height: 350px;
}

.welfare-main-image img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
    object-position: center;
}

/* 右側：テキストエリア */
.welfare-text-area {
    text-align: left;
    position: relative;
}

/* 統合されたサポートボックス */
.welfare-support-box {
    background: #f3f8f4;
    border-radius: 5px;
    padding: 1.5rem 2rem;
    text-align: left;
}

.welfare-support-box .welfare-highlight {
    font-size: 1.1rem;
    margin-bottom: 18px;
    line-height: 1.8;
    padding-top: 15px;
    border-top: 2px dashed rgba(44, 85, 48, 0.15);
}

.welfare-support-box .welfare-highlight strong {
    color: #997a4f;
    font-weight: 600;
    border-bottom: 2px solid rgba(153, 122, 79, 0.3);
    padding-bottom: 2px;
    font-size: 1.15rem;
}

.welfare-support-box .welfare-description {
    margin-bottom: 18px;
    line-height: 1.8;
    color: #555;
}

.welfare-support-box .welfare-points-text {
    margin: 0;
}

.welfare-support-box .welfare-points-text strong {
    color: #334636;
    font-weight: 600;
}

/* テキストボックス内リンク */
.welfare-link {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    background: linear-gradient(135deg, #334636 0%, #3d7a45 100%);
    color: white;
    font-size: 16px;
    font-weight: 600;
    padding: 10px 40px;
    border-radius: 50px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(44, 85, 48, 0.3);
    float: right;
}

.welfare-link:hover {
    background: linear-gradient(135deg, #3d7a45 0%, #49965c 100%);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(44, 85, 48, 0.4);
}

.welfare-link::after {
    content: "→";
    transition: transform 0.3s ease;
}

.welfare-link:hover::after {
    transform: translateX(5px);
}

/* スマホ版は非表示（統一版を使用） */
.section-welfare-mobile {
    display: none;
}

/* ===================================================
   レスポンシブ対応（768px以下）
   ================================================ */
@media (max-width: 768px) {
    .section-welfare-visual {
        margin: 0;
        padding: 0 25px 30px;
    }
    
    .welfare-visual-container {
        padding: 50px 25px 40px;
        margin-top: 20px;
    }
    
    /* バッジ調整 */
    .focus-badge {
        position: static;
        transform: none;
        display: block !important;
        margin: 0 auto 20px;
        padding: 10px 24px;
        letter-spacing: 1px;
    }
    
    .section-title-welfare {
        margin-bottom: 30px;
    }
    
    .section-title-welfare h2 {
        font-size: 1.5rem;
        letter-spacing: 3px;
        margin-top: 0;
    }
    
    /* グリッドを縦並びに */
    .welfare-content-grid {
        grid-template-columns: 1fr;
        gap: 25px;
    }
    
    /* 画像を最大高さ制限 */
    .welfare-main-image {
        max-height: 250px;
        min-height: auto;
    }
    
    .welfare-main-image img {
        object-fit: cover;
    }
    
    /* テキストエリア調整 */
    .welfare-support-box {
        padding: 1.2rem 1.5rem;
        font-size:15px;
    }
    
    .welfare-support-box .welfare-highlight {
        font-size: 1rem;
        margin-bottom: 15px;
        border-top: none;
    }
    
    .welfare-support-box .welfare-highlight strong {
        font-size: 1.05rem;
    }
    
    .welfare-support-box .welfare-description {
        display: none;
    }
    
    .welfare-support-box .welfare-points-text {
        padding-top: 12px;
    }
    
    /* リンクボタンをフル幅に */
    .welfare-link {
        float: none;
        display: flex;
        width: 100%;
        justify-content: center;
        padding: 12px 24px;
        margin-top: 20px;
        font-size: 15px;
    }
}

/* ===================================================
   レスポンシブ対応（480px以下）
   ================================================ */
@media (max-width: 480px) {
    .welfare-visual-container {
        padding: 40px 20px 30px;
    }
    
    .section-title-welfare h2 {
        font-size: 1.3rem;
        letter-spacing: 2px;
    }
    
    .focus-badge {
        padding: 6px 18px;
    }
    
    .welfare-support-box {
        padding: 1rem 1.2rem;
    }
    
    .welfare-support-box .welfare-highlight {
        font-size: 0.95rem;
    }
    
    .welfare-link {
        padding: 10px 20px;
    }
}
/* ===================================================
   つなぎ要素（右寄せ版）
   ================================================ */
.section-connector-right {
    max-width: 1200px;
    margin: calc(var(--section-spacing) * -0.5) auto var(--section-spacing-small);
    padding: 0 var(--container-padding-x);
    display: flex;
    justify-content: flex-end;
}

.connector-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
}

.connector-text {
    font-size: 1.1rem;
    color: #334636;
    font-weight: 600;
    letter-spacing: 1px;
}

.round-arrow-right {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: linear-gradient(135deg, #334636, #49965c);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 15px rgba(44, 85, 48, 0.3);
    animation: bounce-arrow 2s infinite;
}

@keyframes bounce-arrow {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(10px); }
}

/* ===================================================
   つなぎ要素：レスポンシブ（768px以下）
   ================================================ */
@media (max-width: 768px) {
    .section-connector-right {
        justify-content: center;
        margin: calc(var(--section-spacing) * -0.3) auto var(--section-spacing-small);
        padding: 0 var(--container-padding-x);
    }
}

/* ===================================================
   つなぎ要素：レスポンシブ（480px以下）
   ================================================ */
@media (max-width: 480px) {
    .section-connector-right {
        margin: calc(var(--section-spacing) * -0.3) auto var(--section-spacing-small);
    }
    
    .connector-text {
        font-size: 1rem;
    }
    
    .round-arrow-right {
        width: 50px;
        height: 50px;
    }
}

/* ===================================================
   区切りライン
   ================================================ */
.section-divider {
    width: 100%;
    max-width: 800px;
    margin: 0 auto;
}

.section-divider::before {
    content: '';
    display: block;
    width: 100%;
    min-height: 55px;
    background-image: url('../images/line-dinosaur.svg');
    background-size: 100% auto;
    background-repeat: no-repeat;
    background-position: center;
    transform: scaleX(-1);
    aspect-ratio: 1200 / 80;
}

.section-divider2 {
    width: 100%;
    max-width: 800px;
    margin: 0 auto;
}

.section-divider2::before {
    content: '';
    display: block;
    width: 100%;
    min-height: 55px;
    background-image: url('../images/line-dinosaur.svg');
    background-size: 100% auto;
    background-repeat: no-repeat;
    background-position: center;
    aspect-ratio: 1200 / 80;
}

.divider-section {
    text-align: center;
    margin-bottom: 80px;
}

.divider-line {
    width: 100%;
    max-width: 800px;
    margin: 0 auto;
    height: 2.5px;
    background: rgba(57, 111, 81, 1);
}

/* ===================================================
   区切りライン：レスポンシブ（1024px以下）
   ================================================ */
@media (max-width: 1024px) {
    .section-divider,
    .section-divider2,
    .divider-line {
        max-width: 700px;
    }

    .section-divider2 {
        padding-bottom: 60px;
    }

}

/* ===================================================
   区切りライン：レスポンシブ（768px以下）
   ================================================ */
@media (max-width: 768px) {
    .section-divider,
    .section-divider2,
    .divider-line {
        max-width: 90%;
    }

    .section-divider2 {
        padding-bottom: 0;
    }


    .divider-section {
        margin-bottom: 60px;
    }
}

/* ===================================================
   区切りライン：レスポンシブ（670px以下）
   ================================================ */
@media (max-width: 670px) {
    .divider-line {
        height: 1.5px;
    }
}

/* ===================================================
   区切りライン：レスポンシブ（480px以下）
   ================================================ */
@media (max-width: 480px) {
    .section-divider,
    .section-divider2,
    .divider-line {
        max-width: 95%;
    }

    .divider-line {
        height: 1px;
    }
}

/* ===================================================
   施工実績セクション（PC版スライダー）
   ================================================ */
.portfolio-container {
    margin: 0 auto;
    padding: 60px 35px 0;
}

.fullscreen-slider {
    position: relative;
    height: 385px;
    overflow: hidden;
    user-select: none;
    touch-action: pan-y;
}

.slider-track {
    display: flex;
    height: 100%;
    transition: none;
    will-change: transform;
}

.slide-item {
    width: 600px;
    height: 365px;
    position: relative;
    flex-shrink: 0;
    transition: all 0.5s ease;
    margin-right: 20px;
    overflow: hidden;
    cursor: pointer;
    border-radius: 5px;
}

.slide-item:hover {
    transform: scale(1.02);
}

.slide-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 40px;
    color: white;
    opacity: 0;
    transition: opacity 0.3s ease;
    text-align: left;
    background: linear-gradient(transparent, rgba(0, 0, 0, 0.8));
}

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

.slide-exterior,
.slide-interior {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    transition: opacity 0.5s ease-in-out;
}

.slide-exterior {
    opacity: 1;
}

.slide-interior {
    opacity: 0;
}

.slide-item:hover .slide-exterior {
    opacity: 0;
}

.slide-item:hover .slide-interior {
    opacity: 1;
}

.slide-item:active {
    transform: scale(0.98);
}

.slide-category {
    font-size: 0.9rem;
    color: #49965c;
    margin-bottom: 8px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.slide-title {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 10px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.slide-location {
    font-size: 0.9rem;
    color: #ddd;
    margin-bottom: 12px;
}

.slide-description {
    font-size: 1rem;
    line-height: 1.6;
    color: #eee;
    max-width: 400px;
}

/* スライド背景画像設定 */
.slide-1 .slide-exterior { background: url('../images/slider5-exterior.webp') center/cover no-repeat; }
.slide-1 .slide-interior { background: url('../images/slider5-interior.webp') center/cover no-repeat; }
.slide-2 .slide-exterior { background: url('../images/slider4-exterior.webp') center/cover no-repeat; }
.slide-2 .slide-interior { background: url('../images/slider4-interior.webp') center/cover no-repeat; }
.slide-3 .slide-exterior { background: url('../images/slider3-exterior.webp') center/cover no-repeat; }
.slide-3 .slide-interior { background: url('../images/slider3-exterior2.webp') center/cover no-repeat; }
.slide-4 .slide-exterior { background: url('../images/slider2-exterior.webp') center/cover no-repeat; }
.slide-4 .slide-interior { background: url('../images/slider2-interior.webp') center/cover no-repeat; }
.slide-5 .slide-exterior { background: url('../images/slider1-exterior.webp') center/cover no-repeat; }
.slide-5 .slide-interior { background: url('../images/slider1-interior.webp') center/cover no-repeat; }

/* ===================================================
   施工実績：レスポンシブ（1200px以下）
   ================================================ */
@media (max-width: 1200px) {
    .portfolio-container {
        padding: 0 35px;
    }
    
    .slide-item {
        width: 550px;
        height: 309px;
    }
}

/* ===================================================
   施工実績：レスポンシブ（1024px以下）
   ================================================ */
@media (max-width: 1024px) {
    .slide-item {
        width: min(480px, 70vw);
        height: min(270px, 39vw);
    }

    .fullscreen-slider {
        height: min(280px, 41vw);
    }

    .slide-overlay {
        padding: 25px;
    }

    .slide-title {
        font-size: 1.3rem;
    }
}

/* ===================================================
   施工実績：レスポンシブ（768px以下 - スマホ版カード型）
   ================================================ */
@media (max-width: 768px) {
    .portfolio-container {
        padding: 45px 25px 0;
    }
    
    /* スマホ版：2列カード型レイアウト */
    .sp-only.works-card-grid {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
        margin: 25px 0;
    }

    .work-card {
        display: block;
        background: white;
        border-radius: 5px;
        overflow: hidden;
        box-shadow: 0 2px 12px rgba(0,0,0,0.08);
        transition: all 0.3s ease;
    }

    .work-card:hover {
        transform: translateY(-3px);
        box-shadow: 0 4px 20px rgba(0,0,0,0.15);
    }

    .work-card-image-wrapper {
        position: relative;
        width: 100%;
        padding-top: 100%; /* 正方形アスペクト比 */
        overflow: hidden;
    }

    .work-card-image {
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        object-fit: cover;
        display: block;
    }

    .work-card-category {
        position: absolute;
        top: 15px;
        left: 15px;
        background: linear-gradient(135deg, #D4C5A0, #874e00);
        color: white;
        padding: 3px 12px;
        border-radius: 20px;
        font-size: 14px;
        font-weight: 500;
        box-shadow: 0 2px 8px rgba(245, 158, 11, 0.3);
        z-index: 2;
        white-space: nowrap;
        letter-spacing: 1px;
    }

    .work-card-content {
        display: none;
    }

    .work-card-title {
        font-size: 12px;
        font-weight: 600;
        margin: 0;
        color: #333;
        line-height: 1.4;
        display: -webkit-box;
        -webkit-line-clamp: 2;
        -webkit-box-orient: vertical;
        overflow: hidden;
        text-overflow: ellipsis;
        min-height: 32px;
    }
}

/* ===================================================
   施工実績：レスポンシブ（480px以下）
   ================================================ */
@media (max-width: 480px) {
    .portfolio-container {
        padding: 40px 20px 20px;
    }
    
    .works-card-grid {
        gap: 10px;
        margin: 20px 0;
    }
    
    .work-card-title {
        font-size: 11px;
        min-height: 30px;
    }
    
    .work-card-category {
        font-size: 12px;
        padding: 3px 7px;
    }
}

/* ===================================================
   施工実績：レスポンシブ（360px以下 - 小さいスマホ）
   ================================================ */
@media (max-width: 360px) {
    .works-card-grid {
        gap: 8px;
    }
    
    .work-card-title {
        font-size: 10px;
        min-height: 28px;
    }
}

/* ===================================================
   スライダーナビゲーション
   ================================================ */
.slider-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.9);
    border: none;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 10;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.slider-nav:hover {
    background: rgba(255, 255, 255, 1);
    transform: translateY(-50%) scale(1.1);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.2);
}

.slider-nav:active {
    transform: translateY(-50%) scale(0.95);
}

.slider-nav svg {
    color: #333;
    width: 18px;
    height: 18px;
}

.slider-nav-prev {
    left: 20px;
}

.slider-nav-next {
    right: 20px;
}

.slider-dots {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    bottom: 25px;
    display: flex;
    gap: 12px;
    z-index: 10;
}

.slider-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    border: none;
    background: rgba(255, 255, 255, 0.5);
    cursor: pointer;
    transition: all 0.3s ease;
}

.slider-dot:hover {
    background: rgba(255, 255, 255, 0.8);
    transform: scale(1.2);
}

.slider-dot.active {
    background: rgba(255, 255, 255, 1);
    transform: scale(1.3);
}

/* PC用ナビゲーション非表示 */
@media (min-width: 769px) {
    .slider-nav,
    .slider-dots {
        display: none;
    }
}

/* ===================================================
   事業内容セクション
   ================================================ */
.section-services-simple {
    padding: 60px 60px 20px;
    max-width: 1200px;
    margin: 0 auto;
}

.top-services-list {
    display: flex;
    flex-direction: column;
    gap: 30px;
    margin: 35px 0 0;
}

.top-service-item {
    display: flex;
    gap: 30px;
    align-items: flex-start;
    padding: 30px;
    background: white;
    border-left: 4px solid #334636;
    border-radius: 5px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
}

.top-service-number {
    font-size: 2.5rem;
    font-weight: 700;
    color: #334636;
    opacity: 0.2;
    min-width: 70px;
    flex-shrink: 0;
    line-height: 1;
}

.top-service-info {
    flex: 1;
}

.top-service-info > p {
    line-height: 1.8;
    color: #666;
    margin-bottom: 15px;
}

.top-service-details {
    list-style: none;
    padding: 0;
    margin: 15px 0 0 0;
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.top-service-details li {
    background: #f8f9f6;
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 0.9rem;
    color: #555;
    font-weight: 500;
    transition: all 0.2s ease;
}

.top-service-details li:hover {
    background: #334636;
    color: white;
}



.top-service {
    margin: 0 auto;
    background-image: url('../images/body.webp');
    background-size: cover;
    background-position: center 30%;
    background-repeat: repeat-y;
    background-attachment: fixed;
    position: relative;
}

.top-service::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(255, 255, 255, 0.7);
    pointer-events: none;
    z-index: -1;
}

/* ===================================================
   事業内容：レスポンシブ（768px以下）
   ================================================ */
@media (max-width: 768px) {
    .section-services-simple {
        padding: 0 25px 30px;
    }
    
    .top-services-list {
        gap: 25px;
        margin: 30px 0 10px;
    }
       
    .top-service-number {
        font-size: 2rem;
        min-width: auto;
        opacity: 0.3;
    }
       
    .top-service-info > p {
        font-size: 0.95rem;
        line-height: 1.7;
        margin-bottom: 12px;
    }
    
    .top-service-details {
        flex-direction: column;
        gap: 8px;
        margin-top: 12px;
    }
    
    .top-service-details li {
        padding: 8px 16px;
        border-radius: 6px;
        font-size: 0.9rem;
        border-left: 3px solid #334636;
        background: #f8f9f6;
    }
    
    .top-service-details li:hover {
        background: #e8f0e9;
        color: #334636;
        border-left-width: 4px;
    }
    .top-service {
        background-image: none;
    }
}

/* ===================================================
   事業内容：レスポンシブ（480px以下）
   ================================================ */
@media (max-width: 480px) {
    .section-services-simple {
        padding: 30px 20px;
    }
    
    .top-services-list {
        gap: 20px;
        margin: 25px 0;
    }
    
    .top-service-item {
        padding: 20px 18px;
        gap: 15px;
    }
    
    .top-service-number {
        font-size: 1.8rem;
    }
       
    .top-service-info > p {
        font-size: 0.9rem;
        line-height: 1.65;
    }
    
    .top-service-details li {
        padding: 7px 14px;
        font-size: 0.85rem;
    }
}

/* ===================================================
   お知らせセクション（トップページ）
   ================================================ */
.section-news-wrapper {
    padding: 80px 60px;
    margin: 0 auto;
    background: #e5eee5;
}

.section-news {
    max-width: 1200px;
    margin: 0 auto;
    background: linear-gradient(135deg, #ffffff 0%, #fafafa 100%);
    overflow: hidden;
    padding: 80px 70px 30px;
    border: 1px solid rgba(0, 0, 0, 0.04);
    border-radius: 5px;
}

.news-list {
    padding: 0;
}

.news-container {
    margin: 0;
}

.top-news-item {
    display: flex;
    align-items: center;
    padding: 18px 24px;
    border-bottom: 1px solid #f0f0f0;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
    position: relative;
    border-radius: 8px;
    margin-bottom: 4px;
}

.top-news-item::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 3px;
    background: linear-gradient(180deg, #2d5a27, #4a7c59);
    opacity: 0;
    transition: all 0.3s ease;
}

.top-news-item:hover {
    background: rgba(45, 90, 39, 0.04);
    transform: translateX(6px);
}

.top-news-item:hover::before {
    opacity: 1;
}

.top-news-item:last-child {
    border-bottom: none;
}

.news-date {
    font-size: 16px;
    color: #666;
    font-weight: 600;
    min-width: 120px;
    margin-right: 24px;
    font-family: 'Courier New', monospace;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.news-category {
    display: inline-block;
    padding: 4px 12px;
    font-size: 11px;
    font-weight: bold;
    border-radius: 50px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: all 0.2s ease;
    text-align: center;
}

.top-news-item:hover .news-category {
    transform: scale(1.03);
}

.category-important {
    background: #fee;
    color: #d63031;
    border: 1px solid #fab1a0;
}

.category-news {
    background: #e8f5e8;
    color: #2d5a27;
    border: 1px solid #a4d65e;
}

.category-event {
    background: #e3f2fd;
    color: #1976d2;
    border: 1px solid #64b5f6;
}

.category-update {
    background: #f3e5f5;
    color: #7b1fa2;
    border: 1px solid #ba68c8;
}

.news-title {
    flex: 1;
    font-weight: 500;
    line-height: 1.6;
    transition: color 0.3s ease;
}

.top-news-item:hover .news-title {
    color: #2d5a27;
}

.news-arrow {
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-left: 15px;
    color: #ccc;
    font-size: 16px;
    background: #f5f5f5;
    border-radius: 50%;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.top-news-item:hover .news-arrow {
    color: white;
    background: linear-gradient(135deg, #2d5a27, #4a7c59);
    transform: translateX(2px);
}

.more-btn {
    text-align: center;
    padding: 30px;
}

.button img {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    filter: drop-shadow(0 2px 8px rgba(0, 0, 0, 0.1));
}

.button:hover img {
    transform: translateY(-3px);
    filter: drop-shadow(0 4px 12px rgba(45, 90, 39, 0.2));
}

.more-link-fallback {
    display: inline-block;
    padding: 14px 40px;
    background: linear-gradient(135deg, #2d5a27, #4a7c59);
    color: white;
    font-size: 15px;
    font-weight: 600;
    border-radius: 50px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    letter-spacing: 1px;
    box-shadow: 0 4px 16px rgba(45, 90, 39, 0.2);
}

.more-link-fallback:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(45, 90, 39, 0.3);
    background: linear-gradient(135deg, #1a3a1e, #2d5a27);
}

/* ===================================================
   お知らせ：レスポンシブ（768px以下）
   ================================================ */
@media (max-width: 768px) {
    .section-news-wrapper {
        padding: 40px 20px;
    }
   
    .section-news {
        padding: 50px 25px 20px;
    }

    .top-news-item {
        flex-direction: column;
        align-items: flex-start;
        padding: 18px 20px;
        gap: 10px;
        border-bottom: 1px solid #e8e8e8;
        border-left: none;
        border-radius: 0;
        background: transparent;
        box-shadow: none;
        margin-bottom: 0;
    }

    .top-news-item::before {
        display: none;
    }

    .top-news-item:hover {
        transform: translateX(0);
        background: rgba(45, 90, 39, 0.02);
    }

    .top-news-item:last-child {
        border-bottom: none;
    }

    .news-date {
        min-width: auto;
        margin-right: 0;
        margin-bottom: 0;
        display: flex;
        flex-direction: row;
        align-items: center;
        gap: 12px;
        font-size: 14px;
        font-family: inherit;
    }

    .news-category {
        padding: 3px 10px;
        font-size: 10px;
    }

    .news-title {
        width: 100%;
        font-size: 15px;
        line-height: 1.6;
        margin: 0;
    }

    .news-arrow {
        display: none;
    }

    .more-btn {
        padding: 25px 0 0;
    }
}

/* ===================================================
   お知らせ：レスポンシブ（480px以下）
   ================================================ */
@media (max-width: 480px) {
    .section-news {
        padding: 50px 20px 15px;
    }

    .top-news-item {
        padding: 14px 16px;
    }

    .more-btn {
        padding: 0;
    }
}

/* ===================================================
   リクルートセクション
   ================================================ */
.recruit-banner {
    width: 100%;
    max-width: 800px;
    margin: var(--section-spacing) auto;
    padding: 0 35px;
    text-align: center;
    position: relative;
}

.recruit-image {
    width: 100%;
    height: auto;
    /*box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15); */
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    cursor: pointer;
}

.recruit-image:hover {
    transform: translateY(-5px) scale(1.02);
   /* box-shadow: 0 16px 40px rgba(0, 0, 0, 0.25); */
}

/* ===================================================
   リクルート：レスポンシブ（768px以下）
   ================================================ */
@media (max-width: 768px) {
    .recruit-banner {
        padding: 0 25px;
        margin: 40px auto;
    }
}

/* ===================================================
   お問合せセクション
   ================================================ */
.section-contact {
    position: relative;
    margin: 0 auto;
    padding: 30px 35px;
    z-index: 2;
    text-align: center;
}

.contact-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-around;
    gap: 100px;
}

.contact-method {
    flex: 1;
    text-align: center;
    padding: 35px 20px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    position: relative;
}

.contact-method:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.15);
}

.contact-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    overflow: hidden;
}

.contact-icon img {
    width: 70px;
    height: 70px;
    object-fit: contain;
    transition: transform 0.3s ease;
}

.contact-title {
    font-size: 24px;
    color: #333;
    margin: 0 0 10px 0;
    font-weight: 500;
}

.contact-label {
    font-size: 15px;
    color: #666;
    margin: 0 0 5px 0;
    font-weight: 500;
}

.contact-detail {
    font-size: 20px;
    color: #49564b;
    font-weight: bold;
}

.contact-info {
    font-size: 14px;
    line-height: 1.6;
    font-weight: 500;
}

.contact-method-clickable {
    display: block;
    cursor: pointer;
}

/* ===================================================
   お問合せ：レスポンシブ（1024px以下）
   ================================================ */
@media (max-width: 1024px) {
    .contact-container {
        gap: 50px;
    }
}

/* ===================================================
   お問合せ：レスポンシブ（768px以下）
   ================================================ */
@media (max-width: 768px) {
    .contact-container {
        flex-direction: column;
        gap: 30px;
    }

    .contact-content {
        flex: 1;
    }
    
    .contact-method {
        display: flex;
        align-items: flex-start;
        text-align: left;
        gap: 25px;
        padding: 30px 30px;
        width: 300px;
        margin: 0 auto;
    }
    
    .contact-icon {
        width: 60px;
        height: 60px;
        flex-shrink: 0;
        margin: 20px 0;
    }
    
    .contact-icon img {
        width: 50px;
        height: 50px;
    }
    
    .contact-title {
        font-size: 18px;
        margin: 0 0 5px;
        color: #334636;
        font-weight: 600;
    }
    
    .contact-detail {
        font-size: 16px;
        color: #333;
    }

    .contact-info {
        font-size: 13px;
    }
}

/* ===================================================
   お問合せ：レスポンシブ（480px以下）
   ================================================ */
@media (max-width: 480px) {
    .contact-info2 {
        gap: 0;
    }
}

/* ===================================================
   フッター
   ================================================ */
.site-footer {
    background-color: #f9f9f6;
    background-image: url(../images/under2.webp);
    background-size: cover;
    background-position: top center;
    background-repeat: no-repeat;
    color: #ffffff;
    padding: clamp(220px, 20vw, 330px) 0 60px 0;
    margin: 0;
}

.site-footer .container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 35px;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    flex-wrap: wrap;
    gap: 20px;
}

.footer-left {
    flex: 1;
    min-width: 250px;
}

.footer-left .footer-logo {
    display: flex;
    align-items: center;
    margin-bottom: 15px;
}

.footer-left .footer-logo .footer-logo-img {
    height: 35px;
}

.company-name-en {
    font-size: 18px;
    font-weight: bold;
    margin: 0;
    letter-spacing: 1px;
    color: #ffffff;
}

.footer-left .copyright {
    font-size: 12px;
    color: #cccccc;
    margin: 0;
    line-height: 1.4;
}

.footer-center {
    flex: 0 0 auto;
    min-width: 300px;
    text-align: left;
    margin-right: 30px;
}

.footer-center .company-info {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.company-name-jp {
    font-size: 22px;
    font-weight: 500;
    margin: 0 0 10px 0;
    color: #ffffff;
}

.address {
    display: flex;
    gap: 10px;
    font-size: 14px;
    line-height: 1.4;
    flex-wrap: wrap;
}

.postal-code,
.location {
    color: #ffffff;
}

.contact-info2 {
    font-size: 14px;
}

.phone,
.fax {
    color: #ffffff;
    font-size: 14px;
}

.fax {
    margin-left: 20px;
}

.footer-right {
    flex: 1;
    min-width: 200px;
}

.footer-nav .nav-list {
    list-style: none;
    margin: 0 30px 0 20px;
    padding: 0;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px 0;
    max-width: 400px;
}

.footer-nav .nav-list li {
    margin: 0;
}

.footer-nav .nav-list li a {
    color: #ffffff;
    font-size: 14px;
    display: flex;
    align-items: center;
    transition: color 0.3s ease;
    position: relative;
    padding-left: 50px;
}

.footer-nav .nav-list li a:before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 20px;
    height: 20px;
    background-color: #d4c4a8;
    border-radius: 50%;
    background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="%23333"><path d="M8.59 16.59L13.17 12 8.59 7.41 10 6l6 6-6 6-1.41-1.41z"/></svg>');
    background-repeat: no-repeat;
    background-position: center;
    background-size: 16px 16px;
}

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

/* ===================================================
   フッター：レスポンシブ（1080px以下）
   ================================================ */
@media (max-width: 1080px) {
    .footer-right {
        display: none;
    }
}

/* ===================================================
   フッター：レスポンシブ（768px以下）
   ================================================ */
@media (max-width: 768px) {
    .site-footer .container {
        padding: 0 25px;
    }

    .footer-content {
        flex-direction: column;
        text-align: center;
        gap: 10px;
    }
    
    .footer-left,
    .footer-center,
    .footer-right {
        min-width: 100%;
        flex: none;
    }
    
    .footer-left {
        text-align: center;
        display: flex;
        flex-direction: column;
        align-items: center;
    }
    
    .footer-left .footer-logo {
        justify-content: center;
        margin: 0 auto 15px auto;
        order: 1;
    }
    
    .footer-left .copyright {
        display: none;
    }

    .footer-content::after {
        content: "Copyright © 2025 Nakagawa Takeshi Architect Office.\A All Rights Reserved.";
        white-space: pre;
        order: 999;
        display: block;
        margin: 30px auto 0;
        font-size: 12px;
        color: #cccccc;
        padding-top: 20px;
        border-top: 1px solid #555;
    }
    
    .footer-center {
        text-align: center;
        order: 2;
    }
       
    .footer-center .company-info {
        align-items: center;
    }
    
    .address {
        justify-content: center;
        align-items: center;
    }
    
    .contact-info2 {
        display: flex;
        justify-content: center;
        align-items: center;
        gap: 10px;
        flex-wrap: wrap;
    }
    
    .footer-nav .nav-list {
        grid-template-columns: 1fr;
        justify-items: center;
        margin: 0 auto;
    }

    .company-name-jp {
        font-size: 16px;
    }
}

/* ===================================================
   フッター：レスポンシブ（480px以下）
   ================================================ */
@media (max-width: 480px) {
    .company-name-en {
        font-size: 16px;
    }

    .footer-center {
        margin-right: 0;
    }

    .footer-content {
        gap: 0;
    }
}

/* ===================================================
   ユーティリティクラス
   ================================================ */
.sp-only {
    display: none;
}

.pc-only {
    display: block;
}

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