/* スマホ用メディアクエリ */
@media screen and (max-width:600px) {
  .content {
    padding: 0 0px;
    box-sizing: border-box;
  }
  .box {
    margin: 10px 0 !important;
    padding: 8px !important;
  }
  .box1 {
    margin: 10px 0 !important;
    padding: 5px !important;
  }
  .box2 {
    margin: 10px 0 !important;
    padding: 5px 0 !important;
  }
  .box-log, .box-log2 {
    margin: 10px 0 !important;
    padding: 5px 0px !important;
  }
  .box2 img {
    width: 45% !important;
    margin-bottom: 10px;
  }
}

/* ブログ一覧 */
.home-blog-list {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  padding: 0 20px;
  box-sizing: border-box;
}

.home-blog-item {
  background: #fff;
  border-radius: 10px;
  box-shadow: 0 4px 16px rgba(0,0,0,0.2);
  padding: 20px;
  position: relative;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.home-blog-item:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 24px rgba(0,0,0,0.25);
}

.home-blog-item h3 {
  font-size: 1.1rem;
  margin-bottom: 8px;
  text-align: center;
  color: #38761d;
}

.home-blog-item .date { font-size:0.85rem; color:#888; margin-bottom:6px; }
.home-blog-item p { font-size:0.9rem; color:#555; margin-bottom:10px; line-height:1.6; }

.home-read-more {
  display:inline-block;
  padding:5px 12px;
  background-color:#38761d;
  color:#fff;
  border-radius:5px;
  text-decoration:none;
  font-size:0.85rem;
  transition: background-color 0.2s ease;
}

.home-read-more:hover { background-color:#66cdaa; }

.home-blog-item a.card-link {
  position:absolute; top:0; left:0; width:100%; height:100%;
  z-index:1; text-indent:-9999px;
}

@media (max-width:1000px) { .home-blog-list { grid-template-columns: repeat(2,1fr); } }
@media (max-width:768px) { .home-blog-list { grid-template-columns:1fr; gap:15px; } }

/* スライダー */
.slide-container {
  position: relative;
  max-width: 800px;
  margin: 40px auto;
  overflow: hidden;
  border-radius: 10px;
}

.slide-wrapper {
  display: flex;
  transition: transform 0.5s ease-in-out;
}

.slide {
  min-width: 100%;
  position: relative;
  text-align: center;
}

.slide img {
  width: 100%;
  display: block;
  border-radius: 10px 10px 0 0;
}

.caption {
  background: rgba(0,0,0,0.6);
  color: #fff;
  padding: 8px;
  font-size: 16px;
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  border-radius: 0 0 10px 10px;
}

.controls {
  position: absolute;
  top: 50%;
  width: 100%;
  display: flex;
  justify-content: space-between;
  transform: translateY(-50%);
}

.control {
  background: rgba(0,0,0,0.4);
  color: white;
  border: none;
  font-size: 24px;
  padding: 8px 14px;
  cursor: pointer;
  transition: background 0.3s;
  border-radius: 50%;
}

.control:hover {
  background: rgba(0,0,0,0.7);
}

.button-box {
  display: flex;
  justify-content: space-between; /* 横に均等配置 */
  flex-wrap: wrap;                /* 幅が狭くなったら折り返す */
  gap: 10px;                      /* ボタン間の間隔 */
  max-width: 1000px;
  margin: 20px auto;
  padding: 0 20px;
}

.button-box a {
  flex: 1;                         /* 均等幅 */
  text-align: center;
  background-color: #38761d;       /* 新しい背景色 */
  color: #fff;
  text-decoration: none;
  padding: 25px 0;                 /* 高さUP（元は12px） */
  border-radius: 6px;
  transition: background-color 0.3s, transform 0.2s;
}

.button-box a:hover {
  background-color: #2e5a16;       /* ホバー色も少し暗めに */
  transform: translateY(-2px);     /* ちょっと浮く効果 */
}

@media (max-width: 600px) {
  .button-box {
    flex-direction: column; /* スマホは縦並び */
  }
  .button-box a {
    flex: none;
    width: 100%;
  }
}