/* 
==========================================================================
   05.Hero Section
========================================================================== */

.hero-section {
    position: relative;
    height: 70vh !important; 
    width:100%;
    max-width: 100% !important;
    margin: 0;
    overflow: hidden;
}

.css-slider {
    position: relative;
    width: 100%;
    height: 100%;
}

.slide-item {
    display: flex;
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 70vh; 
    background-size: cover;
    background-position: center center;
    background-repeat: no-repeat;
    justify-content: center;
    align-items: center;
    opacity: 0; 
    animation: fade-animation 15s infinite ease-in-out;
}

/* 文字の配置 */
.slide-content {
    display: flex;
    width: 100%;
    max-width: 1500px;
    padding: 60px;
    justify-content: center;
    align-items: center;
    z-index: 10;
    margin: 0 auto;
}

.hero-catchphrase {
    color: #FFFFFF;
    font-size:  70px !important;
    font-weight: bold;
    text-shadow: 0 0 20px rgba(0, 0, 0, 0.2);
    text-align: center;
    line-height: 1.4;
    margin: 0;
    animation-name: catchphrase-fade;
    animation-duration: 7s;
}

@keyframes catchphrase-fade {
0% {
opacity: 0; 
}
100% {
opacity: 1;
}
}

.slide1 { animation-delay: 0s; }
.slide2 { animation-delay: 5s; }
.slide3 { animation-delay: 10s; }

@keyframes fade-animation {
0% { opacity: 0; z-index: 1; }
10% { opacity: 1; z-index: 2; }   
33% { opacity: 1; z-index: 2; }  
43% { opacity: 0; z-index: 1; }  
100% { opacity: 0; }
}

/*
==========================================================================
   service section / 
========================================================================== */

.service-items-wrapper {
    display: flex;  
    width: 100%;
    flex-direction: row;
    flex-wrap: nowrap;
    gap:30px;
    box-sizing: border-box;
}

.service-items-wrapper .item-card{
    flex: 1;
    min-width: 0;
}

.item-card{
    display: flex;
    flex-direction: column; 
    gap:15px
}

/*
==========================================================================
   banner section / 
========================================================================== */
.banner-section, .banner-section2 {
    /* 全幅指定 */
    width: 100%;
    height: 450px; 

    /* 背景画像の設定 */
    background-size: cover;
    background-position: center;
    
    /* 背景を固定するプロパティ */
    background-attachment: fixed;

    /* 文字を中央に配置 */
    display: flex;
    justify-content: center;
    align-items: center;
}

.banner-section {
    background-image: url('https://www.neu-neu-neu.com/wp-content/uploads/2026/01/IMG_4953-2-1.jpg');

}
.banner-section2 {
    background-image: url('https://www.neu-neu-neu.com/wp-content/uploads/2025/04/IMG_2784-1.jpg') 
}

.banner-wrapper{
    display: flex;
    flex-direction: column; 
    align-items: center;
    gap:20px
}
.banner-wrapper h2{
    text-shadow: 
    0 0 5px rgba(0, 0, 0, 0.4),
    0 0 10px rgba(0, 0, 0, 0.3),
    0 0 20px rgba(0, 0, 0, 0.2);
}

.banner-title {
    color: #FFFFFF; 
    font-size:32px;
    text-align: center;
    line-height: 1.8;
    text-shadow: 0 0 20px rgba(0, 0, 0, 0.2);
}

.button-text-cover {
    display: inline-block; /* 中身のサイズに合わせる */
    background-color: #FFFFFF; /* 背景は白 */
    padding: 10px 30px; /* 上下10px、左右30pxのゆとり */
    font-weight: bold;
    text-align: center;
    cursor: pointer;
}

/*
==========================================================================
   news
========================================================================== */

.news-list {
    display: flex;
    flex-direction: column;
    /* gap: 20px; */
}

.news-item {
    border-left:1px solid #ccc;
    border-right:1px solid #ccc;
    border-bottom: 1px solid #ccc;
    padding: 15px;
    background: #fff;
}

.news-item:first-child {
    border-top: 1px solid #ccc;
}

.news-item a {
    display: flex;
    gap: 20px;
    text-decoration: none;
    color: #333;
}

.news-title {
    margin: 0;
    font-size: 16px;
}
/*
==========================================================================
   blog section / 
========================================================================== */

.blog-posts-wrapper {
    display: flex;  
    width: 100%;
    flex-direction: row;
    flex-wrap: nowrap;
    gap:30px;
    box-sizing: border-box;
}

.blog-posts-wrapper .post-card{
    min-width: 0;
}

.post-card{
    display: flex;
    flex-direction: column; 
    flex: 0 0 calc(33.333% - 20px); /* 3列固定 */
    gap:10px
}

.post-card img {
    width: 100%;
    height: 400px;        /* 高さ固定 */
    object-fit: cover;    /* トリミングして揃える */
    display: block;
}

.post-card-wrapper{
    display: flex;
    flex-direction: column; 
    gap:10px;
}

.post-card-wrapper h3{
    word-break: break-word;  /* 長いタイトルも折り返す */
}

.blog-content h2{
    font-size: 40px;
    line-height: 1.4;
    margin-top: 20px;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 2px solid #2c2a2a;
}

.past-blog-sidebar{
    display: flex;
    flex-direction: column;
    gap:20px;
}

/*
==========================================================================
   mobile / 
========================================================================== */

@media (max-width: 768px) {

/*
==========================================================================
   hero section / mobile
========================================================================== */
    .hero-section{
        height: 350px !important; 
    }
    /* 1. 全体の高さを350pxに固定 */
    .hero-section,
    .slide-item {
        height: 350px !important;
    }

    /* 2. 画像が拡大されすぎないよう調整 */
    .slide-item {
        background-size: cover; /* 隙間を作らない最小限の拡大 */
        background-position: center center;
    }

    .hero-catchphrase {
        font-size: 2rem !important; /* 3remから変更 */
        padding: 0 20px;   /* 左右に少し余白 */
        line-height: 1.3;
    }

    /* 4. コンテンツのパディング調整 */
    .slide-content {
        padding: 20px;     /* 60pxから縮小して文字スペースを確保 */
    }
/*
==========================================================================
   service section / mobile
========================================================================== */

    .service-items-wrapper{
        flex-direction: column;
    }

/*
==========================================================================
   blog section / mobile
========================================================================== */

    .blog-posts-wrapper{
        flex-direction: column;
    }

    .post-card {
        flex: 0 0 100%;
        max-width: 100%;
    }

    .blog-content h2{
    font-size: 20px
    }

    .blog-main-article{
        padding: 0;
    }

     .post-card img{
        height: 300px;
    }
/*
==========================================================================
   banner section / mobile
========================================================================== */

    .banner-section,
    .banner-section2 {
        height: 280px;
        /* background-attachment: scroll; */
    }

    .banner-title {
        font-size: 22px;
        line-height: 1.5;
    }

    .button-text-cover {
        padding: 6px 20px;
        font-size: 0.85rem;
    }
}

/* 修正コード */
/* ===== モバイル専用（768px以下） ===== */
@media screen and (max-width: 768px) {

  /* ハンバーガー表示 */
  .menu-trigger {
    display: block;
    width: 40px;
    height: 30px;
    cursor: pointer;
    background: transparent;
    border: none;
    padding: 0;
    z-index: 10001; /* ヘッダーより前面 */
    position: relative;
  }

  .menu-trigger span {
    display: block;
    width: 100%;
    height: 4px;
    background-color: #000;
    margin: 5px 0;
    border-radius: 2px;
    transition: all 0.3s ease;
  }

  .menu-trigger.is-active span:nth-child(1) {
    transform: rotate(45deg) translate(7px, 7px);
  }
  .menu-trigger.is-active span:nth-child(2) {
    opacity: 0;
  }
  .menu-trigger.is-active span:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -7px);
  }

  /* ナビメニュー */
  .nav-wrapper {
    position: fixed !important; /* 絶対に画面固定 */
    top: 0;
    right: 0;
    width: 100%;
    height: 100vh;
    background-color: rgba(255,255,253,0.95);
    flex-direction: column !important; /* 縦並び */
    justify-content: center;
    align-items: center;
    display: flex !important; /* JS toggle と連動 */
    transform: translateX(100%); /* 初期非表示 */
    transition: transform 0.4s ease;
    z-index: 10000; /* ハンバーガーより上 */
  }

  .nav-wrapper.is-active {
    transform: translateX(0); /* 開いたとき表示 */
  }

  .nav-wrapper ul {
    flex-direction: column;
    gap: 30px;
    list-style: none;
    margin: 0;
    padding: 0;
  }

  .nav-wrapper a,
  .language-wrapper a {
    font-size: 20px;
    color: #000;
    font-weight: bold;
    text-decoration: none;
  }
}

@media (max-width: 768px) {
    /* ハンバーガーボタン表示 */
    .menu-trigger {
        display: block;
        position: relative;
        width: 40px;
        height: 30px;
        cursor: pointer;
        z-index: 10000; /* メニューより上に表示 */
        border: none;
        background: transparent;
        padding: 0;
        margin: 0;
    }

    .menu-trigger span {
        display: block;
        width: 100%;
        height: 4px;
        background-color: #000;
        margin: 5px 0;
        border-radius: 2px;
    }

    /* メニュー初期状態は画面外 */
    .nav-wrapper {
        position: fixed;
        top: 0;
        right: 0;
        width: 100%;
        height: 100vh;
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        background-color: rgba(255, 255, 253, 0.95);
        z-index: 9999; /* 他の要素より上に出す */
        transform: translateX(100%);
        transition: transform 0.4s ease;
        overflow: auto;
    }

    /* メニュー開くとき */
    .nav-wrapper.is-active {
        transform: translateX(0);
    }

    /* メニュー内リンク縦並び */
    .nav-wrapper ul {
        display: flex;
        flex-direction: column;
        gap: 30px;
        padding: 0;
        margin: 0;
        list-style: none;
    }

    /* ロゴ・言語は横幅を調整 */
    .header-section {
        padding: 0 15px;
    }
    .header-container {
        display: flex;
        justify-content: space-between;
        align-items: center;
    }
}