/* HOME Page Styles */

body {
    background-color: #fff;
    color: #4A4E69;
    padding: 0;
    margin: 0;
}

.color-section{
    background-color: #e9d3c7;
    color: #4A4E69;
    margin: 0;
    padding: 20px;
    margin-top: -20px;
}

/* セクション全体 */
.home-section {
    display: flex;
    flex-direction: column;
    gap: 40px;
    margin: 40px 20px;
}

/* ボックススタイル */
.home-box {
    border: 5px solid #4A4E69;
    padding: 40px;
    margin: 20px 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

/* タイトル */
.home-box h2 {
    font-size: 3em;
    margin-bottom: 20px;
}

/* ボタン */
.home-box button {
    padding: 15px 30px;
    border: 3px solid #4A4E69;
    border-radius: 0;
    background-color: #fff;
    font-weight: bold;
    font-size: 1.5em;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-top: 20px;
}

.home-box button:hover {
    background-color: #4A4E69;
    color: #fff;
}

@font-face {
    font-family: 'Zouver';
    src: url('../FONT/002zouver.2-Regular.ttf') format('truetype');
    font-weight: normal;
    font-style: normal;
}

.hero-text h1 {
    font-family: 'Zouver', 'Roboto', 'Noto Sans JP', sans-serif;
    font-size: 4em;
    font-weight: normal; /* フォントが太ければ normal でOK */
}

.hero-text {
  position: relative;
  /* top: 100px; 適宜調整。現在 margin-top:100px の代替 */
  left: 0;
  width: 100%;
  max-width: 100%;
  margin: 0;
  padding-left: 20px; /* ← HOMEと揃える */
  padding-right: 20px;
  color: #4A4E69;
  text-align: left;
  z-index: 2;
  position: absolute;
}

.hero-text h1,
.hero-text .small-text,
.hero-text .sub-text {
  text-align: left;
}


/* アクティブボタン（選択中のページ） */
.common-buttons a.active {
    background-color: #e9d3c7;
    border-bottom: none; /* 下辺をなくす */
    color: #4A4E69;
    margin-bottom: -3px; /* ボタンが浮かないように調整 */
    
}

/* HOME Page Styles */

/* セクション全体 */
.home-section {
    display: flex;
    flex-direction: column;
    gap: 40px;
    margin: 40px 20px;
}

/* ==============================
   home-box - PC版
============================== */
.home-box {
    display: flex;
    flex-direction: row;
    align-items: stretch;
    border: 5px solid #4A4E69;
    margin: 20px 0;
    overflow: hidden;
}

/* 画像エリア */
.home-box img {
    width: 40%;
    object-fit: cover;
    border-right: 5px solid #4A4E69;
}

/* コンテンツエリア */
.home-box .content {
    flex: 1;
    padding: 40px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 20px;
    text-align: center;
}

/* タイトル */
.home-box h2 {
    font-size: 2.5em;
    margin: 0 0 20px;
}

/* ボタン */
.home-box button {
    padding: 15px 30px;
    border: 3px solid #4A4E69;
    border-radius: 40px;
    background-color: #4A4E69;
    color: #fff;
    font-weight: bold;
    font-size: 1em;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-top: 20px;
}

.home-box button:hover {
    background-color: #4A4E69;
    color: #fff;
}

.home-box .btn-about:hover {
  background-color: #d7e3e6;
  color: #4A4E69;
}

.home-box .btn-service:hover {
  background-color: #f0e7ba;
  color: #4A4E69;
}

.home-box .btn-recruit:hover {
  background-color: #e1e6f0;
  color: #4A4E69;
}

.home-box .btn-contact:hover {
  background-color: #e5e3ea;
  color: #4A4E69;
}

.hero-text h1 {
    font-family: 'Noto Sans JP', 'Roboto', 'Helvetica Neue', Arial, 
                 'Hiragino Kaku Gothic ProN', 'Hiragino Sans', Meiryo, sans-serif;
    font-size: 4em;
    font-weight: 700;
    line-height: 1.2em;
    letter-spacing: 0.03em;
    color: #4A4E69;
}


.news{
    border-radius: 40px;
}

.mobile-only {
  display: none;
}


@media (min-width: 769px) {

  /* アクティブボタン本体 */
  .common-buttons a.active {
    position: relative;
    background-color: #e9d3c7;
    border-bottom: none;
    color: #4A4E69;
    margin-bottom: -3px;
  }

  .hero-text {
    position: absolute;
    left: 150px; /* ← HOMEボタンとほぼ揃う。必要なら微調整 */
    top: 200px;
    width: auto;
    max-width: 1000px;
    padding: 0;
    margin: 0;
    margin-left: 250px;
    text-align: left;
        
  }

}

/* 横並びグリッド：4つのhome-boxをカード風に */
@media (min-width: 768px) {
  .home-section {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
    margin: 60px 40px;
  }

  .home-box {
    display: flex;
    flex-direction: column;
    border: 3px solid #4A4E69;
    border-radius: 20px;
    overflow: hidden;
    background-color: #fff;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    padding: 0;
    text-align: center;
  }

  .home-box img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border: none;
  }

  .home-box .content {
    padding: 20px;
  }

  .home-box h2 {
    font-size: 2em;
    margin: 10px 0;
  }

  .home-box button {
    font-size: 1em;
    padding: 15px 20px;
    margin-top: 10px;
    margin-bottom: 10px;
    border-radius: 40px;
  }

}

/* ==============================
   home-box - モバイル版
============================== */
@media (max-width: 768px) {

    .hero-text {
        position: relative;
        left: 60px;
        margin: 0 auto;
        padding: 30px 20px 10px 0;
        background-color: rgba(255, 255, 255, 0.9);
        text-align: left;         /* ← 中央寄せでなく左揃え */
        max-width: 95%;
    }

    .hero-text h1 {
        font-size: 3em;          /* ← サイズアップ */
        line-height: 1.2em;      /* ← 行間を詰めてバランス調整 */
        word-break: keep-all;    /* ← 日本語の途中改行を防ぐ */
        margin-bottom: 0.5em;
    }

    .home-box {
        flex-direction: column;
    }

    .home-box img {
        width: 100%;
        border-right: none;
        border-bottom: 5px solid #4A4E69;
    }

    .home-box .content {
        padding: 20px;
    }

    .home-box h2 {
        font-size: 2em;
    }

    .home-box button {
        font-size: 1.2em;
        padding: 10px 20px;
    }

    .news {
        flex-direction: column;
        padding: 15px 10px;
    }

    .news h3 {
        font-size: 2em;
        margin-bottom: 10px;
    }

    .news-items {
        gap: 10px;
        display: flex;
        flex-direction: column;
        align-items: center;     /* 横方向を中央揃え */
        justify-content: center; /* 縦方向が必要なら */
        margin: 0 auto;          /* 左右中央寄せ */
        padding: 0;
    }

    .news-item {
        display: flex;
        flex-direction: column;
        align-items: center;
        font-size: 0.95em;
        gap: 3px;
        padding-bottom: 10px;
        margin-bottom: 10px;
        border-bottom: 1px solid #4A4E69;
        width: fit-content;
        text-align: center;
    }

    .news-item p,
    .news-item span {
        text-align: center;
    }
    

    .news-item p {
        font-weight: bold;
        font-size: 1em;
        margin: 0;
    }

    .news-item span {
        font-size: 0.9em;
        color: #4A4E69;
    }
    .home-section {
        display: flex;
        flex-direction: column;
        gap: 30px;
        padding: 20px;
    }

    .home-box {
        display: flex;
        flex-direction: column;
        border: 3px solid #4A4E69;
        border-radius: 20px;
        overflow: hidden;
        background-color: #fff;
        box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
        text-align: center;
        padding: 0;
    }

    .home-box img {
        width: 100%;
        height: 180px;
        object-fit: cover;
        border: none;
    }

    .home-box .content {
        padding: 20px;
    }

    .home-box h2 {
        font-size: 1.8em;
        margin-bottom: 10px;
    }

    .home-box button {
        font-size: 1em;
        padding: 10px 20px;
        margin-top: 15px;
        border-radius: 40px;
    }

  .mobile-only::after {
    content: "\A"; /* 改行を入れる */
    white-space: pre;
  }

  .mobile-only {
    display: inline;
  }

}

/* デフォルト：PC（横4列） */
.home-section {
  display: grid !important;
  grid-template-columns: repeat(4, 1fr);
  gap: 30px;
  margin: 60px 40px;
}

/* 1000px以下：タブレット（2列2段） */
@media (max-width: 1000px) and (min-width: 769px) {
  .home-section {
    display: grid !important;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
    margin: 40px 20px;
  }

  .news {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    gap: 150px!important; /* ← 間を狭める */
    padding: 10px 15px 10px 150px;
  }

  .news h3 {
    font-size: 3em;
    margin: 0;
    flex-shrink: 0;
    white-space: nowrap;
    text-align: center;
  }

  .news-items {
    display: flex;
    flex-direction: column;
    justify-content: center;
    margin: 0!important;
    padding: 0;
    gap: 10px;
    font-size: 1em; /* ← PCと同様に維持 */
  }

  .news-item {
    white-space: nowrap;
  }

}

/* 768px以下：スマホ（縦1列） */
@media (max-width: 768px) {
  .home-section {
    display: flex !important;
    flex-direction: column !important;
    gap: 30px;
    padding: 20px;
    margin: 0;
  }
}

@media (max-width: 768px) {
  .hero-text {
      position: relative;
      margin: 0;
      padding: 40px 20px 10px 40px;
      background-color: rgba(255, 255, 255, 0.9);
      text-align: left;
      left: 0;
      max-width: 100%;
  }
}

/* 共通（PC＆タブレット） */
.hero-text {
  position: absolute;
  top: 65%;
  left: 150px;
  transform: translateY(-50%);
  padding: 0 20px;
  width: 100%;
  text-align: left;
  color: #4A4E69;
  z-index: 2;
}

/* タブレット（769px〜960px） */
@media (max-width: 1500px) and (min-width: 769px) {
  .hero-text {
    left: -150px;
    top: 70%;
    transform: translateY(-50%);
    text-align: left;
  }
}

/* モバイル（〜768px） */
@media (max-width: 768px) {
  .hero-text {
    position: relative;
    top: auto;
    left: auto;
    transform: none;
    text-align: center;
    margin: 0 auto;
    padding: 50px 20px 0 20px;
    z-index: 2;
    background-color: rgba(255, 255, 255, 0.85);
    max-width: 90%;
  }

  .hero-text h1 {
    font-size: 3em;
    line-height: 1.3;
  }
}



