/*
Theme Name: Corporate Lite Child
Theme URI: https://flythemes.net/wordpress-themes/corporate-wordpress-theme/
Template: corporate-lite
Author: Flythemes.net
Description: 子テーマ修正版 CSS（スマホ用メニュー修正版）
Version: 1.4.3.1768035756
*/

/* --- Nivo Slider --- */
.nivo-caption .slide-cap h4 {
    font-size: 2vw !important;
    line-height: 2.0 !important;
    text-shadow: 4px 4px 12px rgba(0, 0, 0, 1) !important;
}

.nivo-caption .slide-cap p {
    font-size: 1.2vw !important;
    font-weight: bold !important;
    text-shadow: 3px 3px 6px rgba(0,0,0,0.6) !important;
    line-height: 1.4 !important;
    white-space: normal !important;
    display: inline-block !important;
    max-width: 1200px !important;
}

.nivo-caption {
    padding-bottom: 100px !important;
}

.nivo-caption .slide-cap .read-more {
    position: absolute;
    bottom: -20px;
    left: 50px;
    background-color: rgba(0, 0, 0, 0.5);
    color: #ffffff;
    padding: 10px 20px;
    border-radius: 5px;
    text-decoration: none;
    font-weight: bold;
}

.nivo-caption .slide-cap {
    position: relative;
}

/* --- 固定ページフル幅 --- */
.page .content_sidebar { width: 100%; }
.page #sidebar { display: none; }
.page .site-main { width: 100%; }
.page .middle-align { max-width: 100%; }

/* --- 施工事例カード --- */
.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.projects-item {
    border: 1px solid #ddd;
    padding: 15px;
    text-align: center;
    transition: transform .3s;
}

.projects-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 12px rgba(0,0,0,0.1);
}

.projects-item img { width: 100%; height: auto; }

.projects-title {
    font-size: 1.1em;
    font-weight: bold;
    margin-top: 12px;
}

.projects-excerpt {
    font-size: .95em;
    color: #666;
    margin-top: 6px;
}

.pagination {
    margin-top: 40px;
    text-align: center;
}

/* --- 施工事例ボックス（スマホ2列） --- */
@media screen and (max-width: 719px) {
    .services .container {
        display: flex !important;
        flex-wrap: wrap !important;
        margin-left: -5px;
        margin-right: -5px;
    }

    .services .services-box {
        flex: 0 0 calc(50% - 10px) !important;
        max-width: calc(50% - 10px) !important;
        margin: 5px;
        box-sizing: border-box;
    }

    /* ボタン内の抜粋非表示 */
    .services .services-box p { display: none; }
}
/* --- スマホ用メニュー 720px以下（修正版） --- */
@media (max-width: 720px) {

  /* ハンバーガーボタン非表示 */
  .toggle, .toggleMenu {
    display: none !important;
  }

  /* ナビゲーション全体 */
  .nav {
    display: flex !important;
    width: 108% !important;
    background-color: #ffffff !important;
    padding: 0 !important;
    margin: 0 !important;
    overflow: hidden; /* 横スクロール不要 */
  }

  /* メニューコンテナ */
  .nav > div {
    width: 108% !important;
  }

  /* メニューリストをフレックスで横並び */
  .nav ul.menu {
    display: flex !important;
    flex-direction: row !important;
    width: 100% !important;
    padding: 0 !important;
    margin: 0 !important;
    list-style: none;
  }

  /* 各メニュー項目を均等幅に */
  .nav ul.menu li.menu-item {
    flex: 1 1 0 !important; /* 均等幅 */
    min-width: 0 !important; /* はみ出し防止 */
    margin: 0 !important;
  }

  /* リンクを横幅いっぱいに */
  .nav ul.menu li.menu-item a {
    display: block !important;
    width: 100% !important;
    text-align: center !important;
    padding: 12px 0 !important; /* 上下余白のみ */
    font-size: 14px !important; /* 必要に応じて微調整 */
    color: #000 !important;
    background-color: #fff !important;
    text-decoration: none !important;
    white-space: normal !important; /* 折り返し可能に */
    box-sizing: border-box !important;
  }

  /* ホバー時 */
  .nav ul.menu li.menu-item a:hover {
    color: #29c9fd !important;
    background-color: #fff !important;
  }
}