    * {
        margin: 0;
        padding: 0;
        box-sizing: border-box;
    }

    .sp-only {
        display: none;
    }

    body {
        font-family: 'Noto Serif JP', 'Yu Mincho', 'Hiragino Mincho ProN', 'MS PMincho', serif;
        font-weight: 500;
        background: linear-gradient(120deg, #e9ecf2 60%, #f5f6fa 100%);
        color: #222;
        letter-spacing: 0.02em;
        line-height: 1.6;
        overflow-x: hidden; /* 横スクロールを防ぐ */
    }

    /* 見出し用フォント */
    h1, h2, h3, h4, h5, h6,
    .section-title,
    .timeline-year,
    .timeline-circle-title,
    .summary-num {
        font-family: 'Noto Serif JP', 'Yu Mincho', 'Hiragino Mincho ProN', 'MS PMincho', serif;
        font-weight: 700;
    }

    .fude {
        font-family: "Yuji Syuku", serif;
        font-size: 2.2rem;
        /* font-size: 2.2rem;
        line-height: 1.35; */
        letter-spacing: 0.02em;
        /* ちょい筆っぽく見せる小技 */
        text-rendering: optimizeLegibility;
        -webkit-font-smoothing: antialiased;
      }

    /* ナビゲーション用フォント */
    .nav-links a {
        font-family: 'Noto Serif JP', 'Yu Mincho', 'Hiragino Mincho ProN', 'MS PMincho', serif;
        font-weight: 500;
    }

    /* メッセージセクション用フォント */
    .message-text h2,
    .message-text h3,
    .message-text p {
        font-family: 'Noto Serif JP', 'Yu Mincho', 'Hiragino Mincho ProN', 'MS PMincho', serif;
    }

    /* サマリーラベル用フォント */
    .summary-label {
        font-family: 'Noto Serif JP', 'Yu Mincho', 'Hiragino Mincho ProN', 'MS PMincho', serif;
        color: #7c8a99;
        font-size: 1.1rem;
        margin-top: 0.2em;
    }

    /* タイムライン用フォント */
    .timeline-circle-desc {
        font-family: 'Noto Serif JP', 'Yu Mincho', 'Hiragino Mincho ProN', 'MS PMincho', serif;
        color: #7c8a99;
        font-size: 1.05rem;
        line-height: 1.7;
    }

    /* フッター用フォント */
    .footer-section h4,
    .footer-section p {
        font-family: 'Noto Serif JP', 'Yu Mincho', 'Hiragino Mincho ProN', 'MS PMincho', serif;
    }

    /* 動きの処理 */
    /* 初期状態（透明 + 下から） */
    .fade-in-up {
        opacity: 0;
        transform: translateY(30px);
        transition: opacity 0.8s ease, transform 0.8s ease;
    }

    /* 表示状態（フェード + 元の位置） */
    .fade-in-up.visible {
        opacity: 1;
        transform: translateY(0);
    }


    /* 初期状態：透明＋左にずれてる */
    .slide-in-left {
        opacity: 0;
        transform: translateX(-50px);
        transition: opacity 0.8s ease, transform 0.8s ease;
    }

    /* 表示されたら：元の位置 + フェードイン */
    .slide-in-left.visible {
        opacity: 1;
        transform: translateX(0);
    }

    /* 初期状態：透明＋右へオフセット */
    .slide-in-right {
        opacity: 0;
        transform: translateX(50px); /* スマホ対応：固定値に変更 */
        transition: opacity 0.8s ease, transform 0.8s ease;
    }

    /* 表示状態：元の位置に */
    .slide-in-right.visible {
        opacity: 1;
        transform: translateX(0);
    }

    /* スマホ用の調整 */
    @media (max-width: 768px) {
        .slide-in-right {
            transform: translateX(20px); /* スマホではより小さな値に */
        }
        
        /* スマホでアニメーションが動作しない場合のフォールバック */
        .slide-in-right:not(.visible) {
            opacity: 0;
            transform: translateX(20px);
        }
        
        /* アニメーション無効化オプション（必要に応じて） */
        @media (prefers-reduced-motion: reduce) {
            .slide-in-right {
                transform: none;
                transition: opacity 0.8s ease;
            }
        }
    }




    /* p {
        text-indent: 1em;
    } */

    /* ヘッダー */
    header {
        position: fixed;
        top: 0;
        width: 100%;
        background: rgba(255, 255, 255, 0.95);
        backdrop-filter: blur(10px);
        z-index: 1000;
        padding: 1rem 0;
        transition: all 0.3s ease;
    }

    header.scrolled {
        background: rgba(33, 37, 41, 0.75) !important;
        box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
    }

    header.scrolled .nav-links a {
        color: #fff;
    }



    header.scrolled .logo {
        color: #fff;
    }

    header.scrolled .instagram {
        color: #fff;
    }

    nav {
        /* max-width: 1200px; */
        margin: 0 auto;
        display: flex;
        justify-content: space-between;
        align-items: center;
        padding: 0 2rem;
    }

    .logo {
        display: flex;
        align-items: center;
        color: #333;
        transition: color 0.3s ease;
    }

    .logo img {
        width: 5%;
        margin-right:0.5rem;
    }

        

    .nav-links {
        display: flex;
        list-style: none;
        gap: 2rem;
    }

    .nav-links a {
        text-decoration: none;
        color: #333;
        font-weight: 500;
        transition: color 0.3s ease;
    }

    .nav-links a:hover {
        color: #00a8cc;
    }


    /* メインビジュアル */
    .hero {
        height: 100vh;
        background: url('img/top.png') center center/cover no-repeat;
        position: relative;
        display: flex;
        align-items: center;
        justify-content: center;
        text-align: center;
        color: white;
        overflow: hidden;
        transition: background-image 1s ease-in-out;
    }

    .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 1s ease-in-out;
    }

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

    .hero::before {
        content: '';
        position: absolute;
        top: 0; left: 0; right: 0; bottom: 0;
        background: linear-gradient(135deg, rgba(30,34,40,0.55) 60%, rgba(44,90,160,0.35) 100%);
        /* z-index: 1; */
    }
    .hero-content {
        position: relative;
        z-index: 2;
    }

    .hero-content h1 ,
    .company-message h1 {
        font-size: 3.5rem;
        font-weight: 300;
        margin-bottom: 1rem;
        /* text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3); */
    }

    .hero-content p {
        font-size: 1.2rem;
        margin-bottom: 2rem;
        opacity: 0.9;
    }

    .cta-button {
        display: inline-block;
        padding: 0.4rem 2rem;
        background: #ff4757;
        color: white;
        text-decoration: none;
        border-radius: 50px;
        font-weight: bold;
        transition: all 0.3s ease;
        box-shadow: 0 4px 15px rgba(255, 71, 87, 0.4);
        margin-top: 22px;
    }

    .cta-button:hover {
        transform: translateY(-2px);
        box-shadow: 0 6px 20px rgba(255, 71, 87, 0.6);
    }

    /* 詳しく見る */
    .more-details {
        position: absolute;
        bottom: 5rem;
        /* left: 49%;
        transform: translateX(-45%); */
    }

    /* スクロールインジケーター */
    .scroll-indicator {
        position: absolute;
        bottom: 2rem;
        left: 50%;
        /* transform: translateX(-50%); */
        display: flex;
        align-items: center;
        gap: 1rem;
    }

    .scroll-arrow {
        width: 30px;
        height: 30px;
        border-right: 2px solid white;
        border-bottom: 2px solid white;
        transform: rotate(45deg);
        animation: bounce 2s infinite;
    }

    @keyframes bounce {
        0%, 20%, 50%, 80%, 100% { transform: translateX(-50%) translateY(0) rotate(45deg); }
        40% { transform: translateX(-50%) translateY(-10px) rotate(45deg); }
        60% { transform: translateX(-50%) translateY(-5px) rotate(45deg); }
    }



    .president-message {
        max-width: 1000px;
        margin: 50px auto;
        padding: 20px;
        font-family: "Hiragino Kaku Gothic ProN", sans-serif;
        color: #333;
      }
      
      /* タイトル行 */
      .section-title {
        display: flex;
        align-items: center;
        justify-content: flex-end;
        margin-bottom: 30px;
      }
      
      .section-title .line {
        flex-grow: 1;
        height: 1px;
        background-color: #999;
        margin-right: 10px;
      }
      
      .section-title .title-text {
        font-size: 16px;
        white-space: nowrap;
      }
      
      /* メインコンテンツ */
      .message-content {
        /* display: flex;
        flex-wrap: wrap; */
        background-color: #f9f9f9;
        padding: 30px;
        border-radius: 20px;
        box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
      }
      
      .message-text {
        flex: 1;
        min-width: 300px;
        padding-right: 20px;
      }
      
      .message-text h2 {
        font-size: 20px;
        font-weight: bold;
        margin-bottom: 5px;
      }
      
      .subtitle {
        font-size: 14px;
        margin-left: 10px;
      }
      
      .message-text h3 {
        font-size: 22px;
        margin: 15px 0;
        font-weight: 500;
      }
      
      .message-text p {
        font-size: 15px;
        line-height: 1.8;
      }
      
      .signature {
        text-align: right;
        margin-top: 20px;
        font-weight: bold;
      }
      
      
      .message-image img {
        width: 21%;
        margin: 20px;    
        height: auto;
        object-fit: cover;
        float: right;
        border-radius: 2%;
      }
      


    /* CSS */

    .section-title-line-separate {
        display: flex;
    align-items: center;
    justify-content: flex-end;
        width: 80%;
        margin: auto;
        text-align: center;
    }


    .section-title-line {
        display: flex;
        align-items: center;
        justify-content: flex-end;
        padding: 70px 0;
        max-width: 500px;
    }
    
    .line {
        flex-grow: 1;
        height: 1px;
        background-color: #999;
        margin-right: 10px;
    }
    
    .title-text {
        font-size: 16px;
        color: #333;
        white-space: nowrap;
    }

    /* メッセージセクション */
    .message-section {
        padding: 5rem;
        background: #f8f9fa;
        /* background-color: red; */
    }

    .container {
        max-width: 1200px;
        margin: 0 auto;
        padding: 0 2rem;
        overflow-x: hidden; /* コンテナレベルでも横スクロールを防ぐ */
    }

    .section-title {
        max-width: 25%;
        color: #e0e0e0;
        font-size: 2.4rem;
        font-weight: 700;
        margin-bottom: 2.5rem;
        letter-spacing: 0.08em;
    }

    /* .section-title::after {
        content: '';
        display: block;
        width: 60px;
        height: 4px;
        background: #00a8cc;
        margin: 1rem auto;
        border-radius: 2px;
    } */

    .message-card {
        background: white;
        border-radius: 20px;
        padding: 3rem;
        box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
        display: grid;
        grid-template-columns: 2fr 1fr;
        gap: 3rem;
        align-items: center;
        margin-top: 2rem;
    }

    .message-content h3 {
        font-size: 1.8rem;
        /* color: #2c5aa0; */
        margin-bottom: 1.5rem;
    }


    .container-padding{
        /* padding-bottom: 130px; */
    }



    /* 企業理念セクション */
    .rine-section {
        position: relative;
        overflow: hidden;
        /* padding: 5rem; */
        padding: 30px;
        /* height: 100vh; */
    }

    #particles-js {
        position: absolute;
        top: 0; left: 0; width: 100%; height: 100%;
        z-index: 0;
        pointer-events: none;
    }

    .rine-section > *:not(#particles-js) {
        position: relative;
        z-index: 1;
    }

    .company-message {
        text-align: center;
    }
    
    .company-message p {
        line-height: 3;
    }

    .message-text {
        font-size: 1.1rem;
        line-height: 1.8;
        color: #555;
        margin-bottom: 2rem;
        flex: 0 0 40%;
    }

    .message-image {
        flex: 0 0 50%;
      }

    .company-info {
        /* background: linear-gradient(135deg, #667eea 0%, #764ba2 100%); */
        /* color: white; */
        padding: 2rem;
        border-radius: 15px;
        text-align: center;
    }

    .profile-image {
        width: 120px;
        height: 120px;
        border-radius: 50%;
        background: linear-gradient(45deg, #667eea, #764ba2);
        margin: 0 auto 1rem;
        display: flex;
        align-items: center;
        justify-content: center;
        font-size: 3rem;
        color: white;
    }

    .company-name {
        font-weight: bold;
        margin-bottom: 0.5rem;
    }

    /* レスポンシブデザイン */
    @media (max-width: 768px) {
        .nav-links {
            /* display: none; */
        }

        .hero-content h1 {
            font-size: 2.5rem;
        }

        .message-card {
            grid-template-columns: 1fr;
            padding: 2rem;
        }

        .hero-content p {
            font-size: 1rem;
        }
    }

    /* アニメーション */
    .fade-in {
        opacity: 0;
        transform: translateY(30px);
        animation: fadeIn 1s ease forwards;
    }

    @keyframes fadeIn {
        to {
            opacity: 1;
            transform: translateY(0);
        }
    }

    /* サービスセクション */
    .services-section {
        padding: 5rem;
        background: white;
    }

    .container.service {
        height: 300px;
        background: url('img/service.png') center center/cover no-repeat;
    }    

    .service-content {
        color: white;
    }

    .service-content h2 {
        padding: 50px 0 50px 0;
    }


    .service-content p {
        text-align: center;
    }


    /* プロジェクトセクション */
    .projects-section {
        padding: 5rem 0;
    }

    .projects-gallery-section {
      padding: 5rem;
      background: #f8f9fa;
    }

    .projects-gallery {
      display: grid;
      grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
      gap: 30px;
      padding: 20px 0;
    }

    .project-card {
      position: relative;
      overflow: hidden;
      border-radius: 15px;
      box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
      transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
      background: white;
      text-decoration: none;
      color: inherit;
    }

    .project-card:hover {
      transform: translateY(-10px);
      box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
    }

    .project-thumb {
      width: 100%;
      height: 250px;
      object-fit: cover;
      transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
    }

    .project-card:hover .project-thumb {
      transform: scale(1.05);
    }

    .project-caption {
      padding: 20px;
      background: white;
      position: relative;
    }

    .project-caption h4 {
      font-size: 1.2rem;
      font-weight: 600;
      margin-bottom: 10px;
      color: #2c3e50;
    }

    .project-caption p {
      font-size: 0.95rem;
      color: #666;
      line-height: 1.6;
      margin: 0;
    }

    .project-tabs {
        display: flex;
        justify-content: center;
        gap: 20px;
        margin-bottom: 20px;
    }

    .project-tab {
        padding: 0;
        border: none;
        background: none;
        cursor: pointer;
        font-size: 1.1em;
        color: #666;
        text-decoration: none;
        position: relative;
        transition: color 0.3s ease;
    }

    .project-tab:hover {
        color: #333;
    }

    .project-tab.active {
        color: #333;
    }

    .project-tab.active::after {
        content: '';
        position: absolute;
        left: 0;
        right: 0;
        bottom: -5px;
        height: 1px;
        background-color: #666;
    }

    .more-projects {
        grid-column: 1 / -1;
        text-align: center;
        margin-top: 30px;
        margin-bottom: 20px;
    }

    .more-button {
        background-color: #ff4757;
        color: white;
        border: none;
        border-radius: 50px;
        padding: 0.4rem 2rem;
        cursor: pointer;
        font-size: 16px;
        transition: all 0.3s ease;
    }

    .more-button:hover {
        background-color: #555;
        transform: translateY(-2px);
    }

    .project-card.hidden {
        display: none;
    }

    @media screen and (max-width: 768px) {
      .projects-gallery {
        grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
        gap: 20px;
      }
      
      .project-thumb {
        height: 200px;
      }
      
      .project-tabs {
        gap: 10px;
      }
      
      .project-tab {
        padding: 10px 20px;
        font-size: 0.9rem;
      }
    }


/* 
    .projects-grid {
        display: grid;
        grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
        gap: 2.5rem;
        margin-top: 2rem;
    }

    .project-card {
        background: #232527;
        border-radius: 18px;
        box-shadow: 0 4px 32px rgba(0,0,0,0.18);
        overflow: hidden;
        transition: transform 0.3s, box-shadow 0.3s;
        display: flex;
        flex-direction: column;
        min-height: 420px;
    }

    .project-card:hover {
        transform: translateY(-8px) scale(1.03);
        box-shadow: 0 12px 36px rgba(0,188,212,0.10);
    }

    .project-image-wrap {
        width: 100%;
        height: 220px;
        background: #222;
        display: flex;
        align-items: center;
        justify-content: center;
        overflow: hidden;
    }

    .project-image {
        width: 100%;
        height: 100%;
        object-fit: cover;
        background: #222;
    }

    .project-info {
        padding: 2rem 1.5rem 1.5rem 1.5rem;
        color: #e0e0e0;
    }

    .project-info h4 {
        font-size: 1.3rem;
        color: #7ec6e6;
        margin-bottom: 0.7rem;
        font-weight: 700;
    }

    .project-info p {
        color: #bfc5c9;
        font-size: 1.05rem;
        line-height: 1.7;
    }

    .no-projects {
        color: #aaa;
        text-align: center;
        padding: 3rem 0;
        font-size: 1.2rem;
    } */

    /* 施工実績タブ */
    /* .project-tabs {
        display: flex;
        gap: 1rem;
        margin-bottom: 2rem;
        overflow-x: auto;
    }
    .project-tab {
        background: #fff;
        color: #7c8a99;
        border: none;
        border-radius: 20px 20px 0 0;
        padding: 0.7em 2em;
        font-size: 1.1rem;
        font-weight: 700;
        box-shadow: 0 2px 8px #bfc5c933;
        cursor: pointer;
        transition: background 0.2s, color 0.2s;
    }
    .project-tab.active, .project-tab:hover {
        background: #7c8a99;
        color: #fff;
    } */

    @media (max-width: 600px) {
        .project-tabs { gap: 0.5rem; }
        .project-tab { padding: 0.5em 1em; font-size: 1rem; }
    }
    /* HISTORYサマリー2列 */
    .history-summary-grid {
        flex: 0 0 300px;
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 2rem;
        position: sticky;
        top: 100px; /* ヘッダーの高さ分下げる */
        align-self: flex-start; /* 上部に配置 */
        height: fit-content; /* コンテンツの高さに合わせる */
    }
    @media (max-width: 600px) {
        .history-summary-grid { grid-template-columns: 1fr; }
    }
    /* タイムライン交互配置 */
    .timeline-event {
        width: 100%;
        display: flex;
        align-items: center;
        justify-content: flex-start;
        position: absolute;
    }
    .timeline-event:nth-child(even) {
        flex-direction: row-reverse;
        justify-content: flex-end;
    }
    @media (max-width: 800px) {
        .timeline-event, .timeline-event:nth-child(even) {
            flex-direction: row;
            justify-content: flex-start;
            left: 0;
        }
    }

    /* 沿革セクション */
    .history-section {
        background: linear-gradient(120deg, #e9ecf2 60%, #f5f6fa 100%);
        padding: 6rem 0 6rem 0;
    }

    .history-flex {
        display: flex;
        flex-direction: row;
        gap: 3rem;
        align-items: flex-start;
        justify-content: space-between;
        max-width: 1310px;
        margin: 0 auto;
        padding: 0 2rem;
    }

    .history-summary-grid {
        flex: 0 0 300px;
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 2rem;
        position: sticky;
    }

    .summary-item {
        text-align: left;
        opacity: 2;
        transform: translateY(40px);
        animation: fadeInUp 1s forwards;
    }

    .summary-num {
        font-family: 'Merriweather', 'Noto Serif JP', serif;
        font-size: 2.5rem;
        color: #222;
        font-weight: 700;
        letter-spacing: 0.08em;
    }

    .summary-label {
        font-family: 'Noto Sans JP', 'M PLUS 1p', sans-serif;
        color: #7c8a99;
        /* font-size: 1.0rem; */
        margin-top: 0.2em;
    }

    .history-timeline-area {
        flex: 1;
        position: relative;
        min-width: 600px;
    }

    .history-title-row {
        display: flex;
        align-items: flex-start;
        justify-content: center;
        margin-bottom: 1.5rem;
    }

    .section-title.serif {
        font-family: 'Merriweather', 'Noto Serif JP', serif;
        font-size: 2.8rem;
        color: #222;
        font-weight: 900;
        letter-spacing: 0.12em;
    }

    .history-since {
        font-family: 'Merriweather', 'Noto Serif JP', serif;
        color: #7c8a99;
        font-size: 1.1rem;
        text-align: right;
        margin-top: 0.5em;
    }

    .timeline {
        position: relative;
        min-height: 500px;
        margin: 0 auto;
        padding: 0 60px;
    }

    .timeline-line {
        position: absolute;
        left: 50%;
        top: 0;
        width: 4px;
        height: 100%;
        background: linear-gradient(180deg, #bfc5c9 0%, #7c8a99 100%);
        border-radius: 2px;
        transform: translateX(-50%);
    }

    .timeline-event {
        position: relative;
        width: 50%;
        /* margin: 40px 0; */
        opacity: 0;
        transform: translateX(60px);
        transition: opacity 0.8s ease-out, transform 0.8s ease-out;
        display: flex;
        align-items: center;
    }

    .timeline-event:nth-child(even) {
        margin-left: auto;
        transform: translateX(-60px);
        flex-direction: row-reverse;
    }

    .timeline-year {
        background: #7c8a99;
        color: #fff;
        font-family: 'Merriweather', 'Noto Serif JP', serif;
        font-size: 1.1rem;
        font-weight: 700;
        border-radius: 6px;
        padding: 0.4em 1.2em;
        margin: 0 1.5rem;
        display: inline-block;
        box-shadow: 0 2px 8px #bfc5c955;
        white-space: nowrap;
    }

    .timeline-circle {
        background: #fff;
        border: 2px solid #bfc5c9;
        border-radius: 10%;
        min-width: 170px;
        min-height: 170px;
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        box-shadow: 0 4px 32px #bfc5c933;
        padding: 0.5em;
        text-align: center;
    }

    .timeline-circle-title {
        font-family: 'Merriweather', 'Noto Serif JP', serif;
        font-size: 1.2rem;
        color: #222;
        font-weight: 700;
        margin-bottom: 0.5em;
    }

    .timeline-circle-desc {
        color: #7c8a99;
        font-size: 1.05rem;
        line-height: 1.7;
    }

    @media (max-width: 1200px) {
        .history-flex {
            flex-direction: column;
            align-items: center;
        }

        .history-summary-grid {
            width: 100%;
            max-width: 600px;
            margin-bottom: 3rem;
        }

        .history-timeline-area {
            width: 100%;
            min-width: auto;
        }
    }

    @media (max-width: 768px) {
        .timeline {
            padding: 0 20px;
        }
        
        .timeline-event {
            width: 100%;
            margin-left: 0 !important;
            transform: translateX(0) !important;
            flex-direction: row !important;
        }
        
        .timeline-event:nth-child(even) {
            flex-direction: row !important;
        }
        
        .timeline-line {
            left: 20px;
        }

        .timeline-year {
            margin: 0 1rem;
        }

        .timeline-circle {
            min-width: 140px;
            min-height: 140px;
            padding: 1em;
        }
    }

    .fade-in-up { animation: fadeInUp 1s forwards; }
    .fade-in-right { animation: fadeInRight 1.2s forwards; }

    /* ニュースセクション */
    .news-section {
        padding: 5rem 0;
        background: white;
    }

    .news-list {
        max-width: 800px;
        margin: 0 auto;
    }

    .news-item {
        display: flex;
        align-items: center;
        padding: 1.5rem 0;
        border-bottom: 1px solid #eee;
        gap: 1.5rem;
    }

    .news-date {
        color: #666;
        font-size: 0.9rem;
        min-width: 100px;
    }

    .news-category {
        padding: 0.3rem 1rem;
        border-radius: 15px;
        font-size: 0.8rem;
        font-weight: bold;
        min-width: 80px;
        text-align: center;
    }

    .category-news {
        background: #e3f2fd;
        color: #1976d2;
    }

    .category-info {
        background: #fff3e0;
        color: #f57c00;
    }

    .news-title {
        flex: 1;
        color: #333;
    }

    .news-more {
        text-align: center;
        margin-top: 30px;
        display: flex;
        justify-content: center;
        align-items: center;
    }

    .news-more .more-button {
        background-color: #ff4757;
        color: white;
        border: none;
        border-radius: 50px;
        padding: 0.4rem 2rem;
        cursor: pointer;
        font-size: 16px;
        transition: all 0.3s ease;
        text-decoration: none;
        display: inline-block;
    }

    .news-more .more-button:hover {
        background-color: #ff4757;
        opacity: 0.9;
        text-decoration: none;
    }

    /* 情報セクション */
    .info-section {
        padding: 5rem 0;
        background: #f8f9fa;
    }

    .info-grid {
        display: grid;
        grid-template-columns: repeat(4, 1fr);
        gap: 1.5rem;
        height: 500px; /* PCのみに適用 */
    }

    .info-card {
        background: linear-gradient(45deg, #667eea, #764ba2);
        color: white;
        padding: 3rem 2rem;
        border-radius: 15px;
        text-align: center;
        transition: transform 0.3s ease;
    }

    .info-card:hover {
        transform: translateY(-5px);
    }

    .info-card h3 {
        font-size: 1.5rem;
        margin-bottom: 0.5rem;
    }

    /* 採用情報セクション */
    .recruit-section {
        padding: 5rem 0;
        background: white;
    }

    .recruit-card {
        background: linear-gradient(135deg, #2c5aa0, #00a8cc);
        color: white;
        padding: 3rem;
        border-radius: 0;
        display: flex;
        align-items: center;
        justify-content: center;
    }

    .recruit-content {
        text-align: center;
        z-index: 9;
    }

    .recruit-content h3 {
        font-size: 2rem;
        margin-bottom: 1rem;
    }

    .recruit-content p {
        font-size: 1.2rem;
        margin-bottom: 2rem;
    }

    /* 採用情報ページのスタイル */
    #recruit-hero {
        background: url(img/top.png) center center / cover;
        height: 100vh;
        display: flex;
        align-items: center;
        justify-content: center;
        position: relative;
        color: white;
    }

    #recruit-hero::before {
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background: linear-gradient(135deg, rgba(30,34,40,0.55) 60%, rgba(44,90,160,0.35) 100%);
    }

    #recruit-hero .hero-content {
        position: relative;
        z-index: 2;
    }

    .recruit-tables {
        display: flex;
        flex-wrap: wrap;
        gap: 40px;
        justify-content: center;
        margin-top: 40px;
    }

    .recruit-table-wrapper {
        background: white;
        padding: 30px;
        border-radius: 10px;
        box-shadow: 0 4px 6px 4px rgba(0, 0, 0, 0.1);
        flex: 1;
        min-width: 300px;
        max-width: 600px;
    }

    .recruit-table-wrapper h3 {
        color: #333;
        margin-bottom: 20px;
        text-align: center;
        font-size: 1.5em;
        border-bottom: 2px solid #007bff;
        padding-bottom: 10px;
    }

    .recruit-table {
        width: 100%;
        border-collapse: collapse;
        margin-top: 20px;
    }

    .recruit-table th,
    .recruit-table td {
        padding: 12px;
        text-align: left;
        border-bottom: 1px solid #ddd;
    }

    .recruit-table th {
        background-color: #f5f5f5;
        font-weight: bold;
        width: 30%;
    }

    .recruit-table tr:hover {
        background-color: #f9f9f9;
    }

    .contact-info {
        text-align: center;
        margin-top: 60px;
        padding: 30px;
        background: white;
        border-radius: 10px;
        /* box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1); */
    }

    .contact-info h3 {
        color: #333;
        margin-bottom: 15px;
        font-size: 1.5em;
    }

    .contact-info p {
        font-size: 1.2em;
        color: #666;
    }

    @media (max-width: 768px) {
        .recruit-tables {
            flex-direction: column;
            align-items: center;
        }

        .recruit-table-wrapper {
            width: 100%;
            margin-bottom: 20px;
        }

        .recruit-table th,
        .recruit-table td {
            padding: 8px;
            font-size: 0.9em;
        }
    }

    /* 不動産事業セクション */
    .realestate-section {
        padding: 5rem 0;
        background: #f8f9fa;
    }

    .realestate-card {
        background: white;
        padding: 3rem;
        border-radius: 0;
        display: flex;
        align-items: center;
        gap: 3rem;
        box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
        background-image: url('img/fudousan.png');
        background-size: cover;
        background-position: center;
        background-repeat: no-repeat;
        position: relative;
        cursor: pointer;
        justify-content: center;
    }


    .realestate-card::before {
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background: rgba(0, 0, 0, 0.5); 
        z-index: 1;
    }

    .building-placeholder {
        font-size: 4rem;
        background: linear-gradient(45deg, #667eea, #764ba2);
        color: white;
        padding: 2rem;
        border-radius: 15px;
    }

    .realestate-content  {
        z-index: 9;
    }

    .realestate-content h3 {
        font-size: 2rem;
        color: white;
        margin-bottom: 1rem;
    }
    
    .realestate-content p {
        color: white;
    }


    /* フッター */
    .footer {
        background: #2c3e50;
        color: white;
        padding: 3rem 0 1rem;
    }

    .footer-content {
        display: grid;
        grid-template-columns: 1fr 2fr;
        gap: 3rem;
        margin-bottom: 2rem;
    }

    .footer-logo .logo {
        font-size: 1.5rem;
        font-weight: bold;
        margin-bottom: 0.5rem;
    }

    .footer-info {
        display: grid;
        grid-template-columns: repeat(3, 1fr);
        gap: 2rem;
    }

    .footer-section h4 {
        color: white;
        margin-bottom: 1rem;
        font-size: 1.1rem;
    }

    .footer-section p {
        margin: 0;
        line-height: 1.6;
    }

    .footer-bottom {
        text-align: center;
        padding-top: 2rem;
        border-top: 1px solid #34495e;
        color: #bdc3c7;
    }

    /* ナビゲーション矢印 */
    .nav-arrows {
        position: fixed;
        right: 2rem;
        top: 50%;
        transform: translateY(-50%);
        display: flex;
        flex-direction: column;
        gap: 1rem;
        z-index: 100;
    }

    .nav-arrow {
        width: 40px;
        height: 40px;
        background: rgba(255, 255, 255, 0.9);
        border-radius: 50%;
        display: flex;
        align-items: center;
        justify-content: center;
        cursor: pointer;
        transition: all 0.3s ease;
        box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    }

    .nav-arrow:hover {
        background:rgb(0, 153, 68);
        color: white;
        transform: scale(1.1);
    }

    /* レスポンシブデザイン */
    @media (max-width: 768px) {
        .nav-links {
            /* display: none; */
        }

        .hero-content h1 {
            font-size: 2.5rem;
        }

        .message-card,
        .service-highlight,
        .recruit-card,
        .realestate-card {
            grid-template-columns: 1fr;
            padding: 2rem 1rem;
        }

        .hero-content p {
            font-size: 1rem;
        }

        .projects-grid {
            grid-template-columns: 1fr;
        }

        .project-card.large {
            grid-column: span 1;
            grid-row: span 1;
        }

        .info-grid {
            grid-template-columns: repeat(2, 1fr);
            height: auto; /* タブレットでは高さ制限を解除 */
        }

        .footer-content {
            grid-template-columns: 1fr;
        }

        .footer-info {
            grid-template-columns: 1fr;
        }

        .timeline-item {
            flex-direction: column;
            text-align: center;
        }

        .timeline-year {
            margin-right: 0;
            margin-bottom: 1rem;
        }

        .news-item {
            flex-direction: column;
            align-items: flex-start;
            gap: 0.5rem;
        }
    }

    .section-title, .timeline-year {
        font-family: 'M PLUS 1p', 'Noto Sans JP', 'Roboto', sans-serif;
        font-weight: 700;
        letter-spacing: 0.08em;
    }

    .timeline-content h4 {
        font-family: 'M PLUS 1p', 'Noto Sans JP', 'Roboto', sans-serif;
        font-weight: 600;
    }

    .serif, .timeline-year, .timeline-circle-title {
        font-family: 'Merriweather', 'Noto Serif JP', serif;
    }

    #loading-overlay {
        position: fixed;
        z-index: 99999;
        inset: 0;
        /* background: linear-gradient(120deg, #232527 60%, #2c5aa0 100%); */
        background:white;
        display: flex;
        align-items: center;
        justify-content: center;
        transition: opacity 0.8s ease-out, filter 0.8s ease-out;
        will-change: opacity, filter;
    }
    .loading-center {
        text-align: center;
        animation: loadingFadeIn 0.8s ease-out;
    }
    .loading-logo {
        display: block;
        font-size: 4.2rem;
        color: #00a8cc;
        margin-bottom: 1.2rem;
        font-family: 'M PLUS 1p', 'Noto Sans JP', 'Roboto', sans-serif;
        letter-spacing: 0.1em;
        /* animation: logoSpin 0.8s ease-out; */
    }
    .loading-text {
        display: block;
        font-size: 2.3rem;
        color: #fff;
        font-weight: 700;
        font-family: 'M PLUS 1p', 'Noto Sans JP', 'Roboto', sans-serif;
        letter-spacing: 0.12em;
        opacity: 0;
        transform: translateY(20px);
        animation: textUp 0.8s 0.2s ease-out forwards;
    }
    body.loaded #loading-overlay {
        opacity: 0;
        filter: blur(8px);
        pointer-events: none;
        transition: opacity 0.8s ease-out, filter 0.8s ease-out;
    }
    body.loaded #loading-overlay .loading-center {
        animation: loadingFadeOut 0.6s ease-out;
    }
    @keyframes loadingFadeIn {
        from { opacity: 0; transform: scale(0.98);}
        to { opacity: 1; transform: scale(1);}
    }
    @keyframes loadingFadeOut {
        to { opacity: 0; transform: scale(1.02);}
    }
    @keyframes logoSpin {
        0% { opacity: 0; transform: scale(0.9) rotate(-15deg);}
        60% { opacity: 1; transform: scale(1.05) rotate(5deg);}
        100% { opacity: 1; transform: scale(1) rotate(0);}
    }
    @keyframes textUp {
        to { opacity: 1; transform: translateY(0);}
    }

    /* お問い合わせカード */
    .contact-card {
        position: fixed;
        bottom: 30px;
        right: 30px;
        background: white;
        padding: 25px 35px;
        border-radius: 8px;
        box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
        cursor: pointer;
        transition: all 0.4s ease;
        z-index: 1000;
        text-decoration: none;
        color: #333;
        border: 1px solid #e0e0e0;
        opacity: 0;
        visibility: hidden;
        transform: translateY(20px);
    }

    .contact-card.visible {
        opacity: 1;
        visibility: visible;
        transform: translateY(0);
    }

    .contact-card:hover {
        transform: translateY(-5px);
        box-shadow: 0 6px 25px rgba(0, 0, 0, 0.12);
        background: #f8f9fa;
    }

    .contact-card-title {
        font-size: 1.2rem;
        font-weight: 600;
        margin-bottom: 10px;
        color: #2c3e50;
        display: flex;
        align-items: center;
        gap: 10px;
    }

    .contact-card-title::before {
        content: "📧";
        font-size: 1.4rem;
        background: #f8f9fa;
        padding: 8px;
        border-radius: 50%;
        box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    }

    .contact-card-content {
        font-size: 0.95rem;
        color: #666;
        line-height: 1.5;
    }

    @media (max-width: 768px) {
        .contact-card {
            bottom: 20px;
            right: 20px;
            padding: 20px 25px;
        }

        .contact-card-title {
            font-size: 1.1rem;
        }

        .contact-card-content {
            font-size: 0.85rem;
        }
    }

    /* レスポンシブ対応の基本設定 */
    :root {
        --header-height: 80px;
        --container-padding: 2rem;
    }

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

        .hero-content h1 {
            font-size: 3rem;
        }

        .hero-content p {
            font-size: 1.1rem;
        }

        .message-card {
            padding: 2rem;
        }

        .history-flex {
            flex-direction: column;
            gap: 2rem;
        }

        .history-summary-grid {
            width: 100%;
            max-width: 600px;
            margin: 0 auto 2rem;
        }

        .history-timeline-area {
            width: 100%;
        }

        .timeline {
            padding: 0 40px;
        }

        .timeline-circle {
            min-width: 150px;
            min-height: 150px;
        }

        .projects-gallery {
            grid-template-columns: repeat(2, 1fr);
        }

        .info-grid {
            grid-template-columns: repeat(2, 1fr);
            height: auto; /* タブレットでは高さ制限を解除 */
        }
    }

    /* スマートフォン対応 (〜767px) */
    @media screen and (max-width: 767px) {
        :root {
            --header-height: 60px;
            --container-padding: 1rem;
        }

        .pc-only {
            display: none!important;
        }

        .sp-only {
            display: block!important    ;
        }

        /* ヘッダー */
        header {
            padding: 0.5rem 0;
        }

        .logo {
            font-size: 1.0rem;
        }

        .logo img {
            width: 10%;
        }

        nav {
            padding: 0 0 0 1rem;
        }

        /* ハンバーガーメニュー */
        .nav-links {
            position: fixed;
            top: var(--header-height);
            left: 0;
            width: 100%;
            height: calc(100vh - var(--header-height));
            background: rgba(255, 255, 255, 0.98);
            flex-direction: column;
            align-items: center;
            justify-content: center;
            gap: 2rem;
            transform: translateX(-100%);
            transition: transform 0.3s ease;
        }

        .nav-links.active {
            transform: translateX(0);
        }

        .nav-links a {
            font-size: 1.2rem;
        }

        /* ハンバーガーメニューボタン */
        .menu-toggle {
            display: block;
            width: 30px;
            height: 20px;
            position: relative;
            cursor: pointer;
        }

        .menu-toggle span {
            display: block;
            width: 100%;
            height: 2px;
            background: #333;
            position: absolute;
            transition: all 0.3s ease;
        }

        .menu-toggle span:nth-child(1) { top: 0; }
        .menu-toggle span:nth-child(2) { top: 50%; transform: translateY(-50%); }
        .menu-toggle span:nth-child(3) { bottom: 0; }

        .menu-toggle.active span:nth-child(1) {
            transform: translateY(9px) rotate(45deg);
        }

        .menu-toggle.active span:nth-child(2) {
            opacity: 0;
        }

        .menu-toggle.active span:nth-child(3) {
            transform: translateY(-9px) rotate(-45deg);
        }

        /* メインビジュアル */
        .hero-content h1 {
            font-size: 2rem;
            padding: 0 1rem;
        }

        .hero-content p {
            font-size: 1rem;
            padding: 0 1rem;
        }

        .container-padding {
            margin-top: 20px;
        }

        /* メッセージセクション */
         /* メインコンテンツ */
      .message-content {
        background-color: #f9f9f9;
        padding: 0;
        border-radius: 0;
        box-shadow: none;
      }
        .message-section {
            padding: 3rem 1rem;
        }

        .message-text h2 {
            font-size: 1.8rem;
        }

        .message-text h3 {
            font-size: 1.6rem;
        }

        .message-text p {
            font-size: 1rem;
        }

        .message-image img {
            width: 100%;
            float: none;
            margin: 1rem 0;
        }

        /* タイムライン */
        .timeline {
            padding: 0 20px;
        }

        .timeline-event {
            width: 100%;
            margin: 20px 0;
            transform: none !important;
            display: block;
        }

        .timeline-event:nth-child(even) {
            flex-direction: row !important;
        }

        .timeline-line {
            left: 20px;
        }

        .timeline-year {
            margin: 0 0 0.2rem 0;
            font-size: 1rem;
        }

        .timeline-circle {
            min-width: 120px;
            min-height: 120px;
            padding: 1rem;
            border-radius: 0;
        }

        .timeline-circle-title {
            font-size: 1.1rem;
        }

        .timeline-circle-desc {
            font-size: 0.9rem;
        }

        /* プロジェクトギャラリー */
        .projects-gallery {
            grid-template-columns: 1fr;
            gap: 1.5rem;
        }

        .project-tabs {
            flex-wrap: wrap;
            justify-content: center;
            gap: 0.5rem;
            margin-top: 20px;
        }

        .project-tab {
            padding: 0.5rem 1rem;
            font-size: 0.9rem;
        }

        /* ニュースセクション */
        .news-item {
            flex-direction: column;
            gap: 0.5rem;
            padding: 1rem 0;
        }

        .news-date, .news-category {
            font-size: 0.9rem;
        }

        .news-title {
            font-size: 1rem;
        }

        /* 情報セクション */
        .info-grid {
            grid-template-columns: 1fr;
            gap: 1rem;
            height: auto; /* スマホでは高さ制限を解除 */
        }

        .info-card {
            padding: 2rem 1rem;
        }

        /* フッター */
        .footer-content {
            grid-template-columns: 1fr;
            gap: 2rem;
        }

        .footer-info {
            grid-template-columns: 1fr;
            gap: 1.5rem;
        }

        .footer-section h4 {
            font-size: 1.2rem;
        }

        .footer-section p {
            font-size: 0.9rem;
        }

        /* お問い合わせカード */
        .contact-card {
            display: none;
        }

        /* ナビゲーション矢印 */
        .nav-arrows {
            display: none;
        }

        .history-summary-grid {
            position: relative;
            max-height: 170px;
            margin-top: -100px;
        }
    }

    /* アニメーション調整 */
    @media (prefers-reduced-motion: reduce) {
        * {
            animation-duration: 0.01ms !important;
            animation-iteration-count: 1 !important;
            transition-duration: 0.01ms !important;
            scroll-behavior: auto !important;
        }
    }

    .us_top {
        background-image: url('img/us_top.png');
        background-size: cover;
        background-position: center;
        background-repeat: no-repeat;
        position: relative;
        cursor: pointer;
    }

    .sekou_top {
        background-image: url('img/sekou_top.png');
        background-size: cover;
        background-position: center;
        background-repeat: no-repeat;
        position: relative;
        cursor: pointer;
    }

    .shou_top {
        background-image: url('img/shou_top.png');
        background-size: cover;
        background-position: center;
        background-repeat: no-repeat;
        position: relative;
        cursor: pointer;
    }

    .map_top {
        background-image: url('img/map_top.png');
        background-size: cover;
        background-position: center;
        background-repeat: no-repeat;
        position: relative;
        cursor: pointer;
    }

    /* オーバーレイを追加して、テキストの可読性を確保 */
    /* .media_top::before {
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background: rgba(0, 0, 0, 0.5); 
        z-index: 1;
    } */

    /* コンテンツをオーバーレイの上に表示 */
    /* .media_top > * {
        position: relative;
        z-index: 2;
    } */



    .recruit-card {
        background-image: url('img/reclut.png');
        background-size: cover;
        background-position: center;
        background-repeat: no-repeat;
        position: relative;
        cursor: pointer;
    }

    .recruit-card::before {
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background: rgba(0, 0, 0, 0.5); 
        z-index: 1;
    }

    .news-item.hidden {
        display: none;
    }

    .news-categories {
        display: flex;
        justify-content: flex-start;
        gap: 15px;
        margin-bottom: 30px;
        flex-wrap: nowrap;
        overflow-x: auto;
        padding-bottom: 10px;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none; /* Firefox */
        -ms-overflow-style: none; /* IE and Edge */
    }

    .news-categories::-webkit-scrollbar {
        display: none; /* Chrome, Safari, Opera */
    }

    .news-category-tab {
        background-color: #f5f5f5;
        color: #333;
        border: none;
        padding: 8px 20px;
        border-radius: 20px;
        cursor: pointer;
        font-size: 14px;
        transition: all 0.3s ease;
        white-space: nowrap;
        min-width: 80px;
        text-align: center;
    }

    .news-category-tab:hover {
        background-color: #e60012;
        color: white;
    }

    .news-category-tab.active {
        background-color: #e60012;
        color: white;
    }

    .news-category-tab.active:hover {
        background-color: #cc0000;
    }

    /* 不動産ギャラリーセクション */
    .realestate-gallery-section {
        padding: 80px 0;
        background-color: #f8f9fa;
    }

    .properties-gallery {
        display: grid ;
        grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
        gap: 25px;
        margin-top: 40px;
        max-width: 1400px;
        margin-left: auto;
        margin-right: auto;
        padding: 0 20px;
    }

    .property-card {
        background: #fff;
        border-radius: 12px;
        overflow: hidden;
        box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
        transition: all 0.3s ease;
        border: 1px solid #f0f0f0;
    }

    .property-card:hover {
        transform: translateY(-8px);
        box-shadow: 0 8px 30px rgba(0, 0, 0, 0.15);
    }

    .property-thumb {
        width: 100%;
        height: 280px;
        object-fit: cover;
        transition: transform 0.3s ease;
    }

    .property-card:hover .property-thumb {
        transform: scale(1.05);
    }

    .property-caption {
        padding: 20px;
    }

    .property-caption h4 {
        font-size: 1.2rem;
        margin-bottom: 10px;
        color: #333;
    }

    .property-caption p {
        font-size: 0.9rem;
        color: #666;
        margin-bottom: 15px;
    }

    .property-details {
        display: flex;
        justify-content: space-between;
        align-items: center;
        padding-top: 15px;
        border-top: 1px solid #eee;
    }

    .property-type {
        background: #f0f0f0;
        padding: 5px 10px;
        border-radius: 4px;
        font-size: 0.8rem;
        color: #666;
    }

    .pdf-link {
        display: inline-flex;
        align-items: center;
        gap: 5px;
        color: #007bff;
        text-decoration: none;
        font-size: 0.8rem;
        padding: 5px 10px;
        border: 1px solid #007bff;
        border-radius: 4px;
        transition: all 0.3s ease;
    }

    .pdf-link:hover {
        background: #007bff;
        color: white;
    }

    .pdf-icon {
        font-size: 1rem;
    }

    .more-properties {
        grid-column: 1 / -1;
        text-align: center;
        margin-top: 30px;
    }

    .more-button {
        background: #007bff;
        color: white;
        border: none;
        padding: 12px 30px;
        border-radius: 25px;
        font-size: 1rem;
        cursor: pointer;
        transition: background 0.3s ease;
    }

    .more-button:hover {
        background: #0056b3;
    }

    .property-card.hidden {
        display: none;
    }

    .property-price {
        margin-bottom: 15px;
        padding: 10px 0;
        border-bottom: 1px solid #eee;
    }

    .price-label {
        font-weight: bold;
        color: #333;
        margin-right: 8px;
    }

    .price-value {
        font-weight: bold;
        color: #007bff;
        font-size: 1.1rem;
    }

    .property-tabs {
        display: flex;
        justify-content: center;
        gap: 20px;
        margin-bottom: 40px;
    }

    .property-tab {
        padding: 10px 20px;
        border: none;
        background: none;
        font-size: 1rem;
        color: #666;
        cursor: pointer;
        position: relative;
        transition: color 0.3s ease;
    }

    .property-tab:hover {
        color: #333;
    }

    .property-tab.active {
        color: #333;
        font-weight: bold;
    }

    .property-tab.active::after {
        content: '';
        position: absolute;
        bottom: -5px;
        left: 0;
        width: 100%;
        height: 2px;
        background-color: #333;
    }

    @media screen and (max-width: 768px) {
        .properties-gallery {
            grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
            gap: 20px;
            padding: 0 15px;
        }

        .property-tabs {
            flex-wrap: wrap;
            gap: 10px;
        }

        .property-tab {
            padding: 8px 15px;
            font-size: 0.9rem;
        }

        .property-thumb {
            height: 220px;
        }
    }

    .map-container {
        margin-top: 10px;
        border-radius: 4px;
        overflow: hidden;
        box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    }

    .map-container iframe {
        display: block;
        width: 100%;
        height: 150px;
        border: none;
    }

    @media (max-width: 768px) {
        .map-container {
            margin-top: 8px;
        }
        
        .map-container iframe {
            height: 120px;
        }
    }

/* ハンバーガーメニューの基本スタイル */
.hamburger {
    display: none;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    width: 32px;
    height: 32px;
    cursor: pointer;
    z-index: 1001;
    position: relative;
    background: none;
    border: none;
    padding: 0;
}

.hamburger span {
    display: block;
    height: 3px;
    width: 100%;
    background: #333;
    margin: 3px 0;
    border-radius: 2px;
    transition: all 0.3s ease;
    transform-origin: center;
}

/* ハンバーガーアイコンのアニメーション */
.hamburger.active span:nth-child(1) {
    transform: translateY(9px) rotate(45deg);
}

.hamburger.active span:nth-child(2) {
    opacity: 0;
    transform: scale(0);
}

.hamburger.active span:nth-child(3) {
    transform: translateY(-9px) rotate(-45deg);
}

/* ナビゲーションリンクの基本スタイル */
.nav-links {
    display: flex;
    list-style: none;
    gap: 2rem;
    margin: 0;
    padding: 0;
}

.nav-links a {
    text-decoration: none;
    color: #333;
    font-weight: 500;
    transition: color 0.3s ease;
    font-size: 1rem;
}

.nav-links a:hover {
    color: #00a8cc;
}

/* オーバーレイ */
.nav-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 999;
}

.nav-overlay.active {
    opacity: 1;
    visibility: visible;
}

/* レスポンシブ対応 */
@media screen and (max-width: 900px) {
    /* ハンバーガーメニューを表示 */
    .hamburger {
        display: flex;
        position: absolute;
        top: 50%;
        right: 2rem;
        transform: translateY(-50%);
    }

    /* ナビゲーションリンクをモバイル用に変更 */
    .nav-links {
        position: fixed;
        top: 0;
        right: -100%;
        width: 100%;
        height: 100vh;
        background: #666;
        backdrop-filter: blur(10px);
        flex-direction: column;
        align-items: center;
        justify-content: flex-start;
        gap: 0.5rem;
        transition: right 0.3s ease;
        z-index: 1000;
        padding: 2rem;
        padding-top: 4rem;
        box-shadow: -2px 0 8px rgba(0, 0, 0, 0.1);
        overflow-y: auto;
    }

    .nav-links.active {
        right: 0;
    }

    .nav-links li {
        width: 100%;
        text-align: center;
        margin: 0;
    }

    .nav-links a {
        display: block;
        padding: 1rem 2rem;
        font-size: 1.2rem;
        border-radius: 8px;
        transition: all 0.3s ease;
        color: #fff;
    }

    .nav-links a:hover {
        background: rgba(0, 168, 204, 0.1);
        color: #00a8cc;
        transform: translateX(5px);
    }

    /* スクロール時のヘッダー調整 */
    header.scrolled .hamburger span {
        background: #fff;
    }


    .section-title-line {
        padding: 0;
    }

    .services-section {
        padding: 2rem;
    }

    .container.service {
        height: 569px;
        /* background: url(img/service.png) center center / cover no-repeat; */
    }
    
    .message-text {
        min-width: auto;
        padding-right: 0;
    }

    .projects-gallery-section {
        padding: 1rem;
    }

    .history-section {
        padding: 1rem;
    }

    .section-title {
        max-width: auto;
        margin-bottom: 0;
    }

    .history-title-row {
        align-items: flex-start;
        justify-content: end;
    }


    .history-summary-grid {

        position: none;
    }

}

/* より小さい画面での調整 */
@media screen and (max-width: 480px) {
    .hamburger {
        right: 1rem;
        width: 28px;
        height: 28px;
    }

    .hamburger span {
        height: 2px;
        margin: 2px 0;
    }

    .nav-links {
        padding: 1rem;
    }

    .nav-links a {
        font-size: 1.1rem;
        padding: 0.8rem 1.5rem;
    }
    
    /* 非常に小さい画面でのアニメーション調整 */
    .slide-in-right {
        transform: translateX(15px); /* より小さな値に */
    }
    
    .slide-in-right:not(.visible) {
        opacity: 0;
        transform: translateX(15px);
    }
}

/* アニメーション無効化設定 */
@media (prefers-reduced-motion: reduce) {
    .hamburger span,
    .nav-links {
        transition: none;
    }
}