/* styles.css */

/* 基本リセット */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  z-index: 30;
  position: relative;
  font-family: "Helvetica Neue", Arial, sans-serif;
  line-height: 1.6;
  color: #333;
}

.container {
  width: 90%;
  max-width: 1200px;
  margin: 0 auto;
  padding-top: 0px; 
}

/* セクション共通 */
section {
  padding: 40px 20px 50px;
}

h2 {
  font-size: 2rem;
  color: #1D794C;
  position: relative;
  text-align: center;
  margin-bottom: 30px;
}
h2.sub-title {
  position: relative;
  padding: 2rem 1rem 1rem;
}
h2.sub-title:after {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 8px;
  content: '';
  background-image: -webkit-repeating-linear-gradient(135deg, #6FA541, #6FA541 1px, transparent 2px, transparent 5px);
  background-image: repeating-linear-gradient(-45deg, #6FA541, #6FA541 1px, transparent 2px, transparent 5px);
  background-size: 7px 7px;
  -webkit-backface-visibility: hidden;
  backface-visibility: hidden;
}

h3 {
  font-size: 1.3rem;
  color: #1D794C;
  margin: 10px 0;
}

h4 {
  font-size: 1.2rem;
  color: #6FA541;
  text-align: left;
  margin: 10px 0;
}


/* ヘッダー */
.top {
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  align-items: center;
  background: #fafafa;
  padding: 40px 20px;
  text-align: left;
}

.logo img {
  width: 280px;
  height: auto;
}

.top-text {
  margin-left: 40px;  
}

.top-text h1 {
  color: #4CAF50;
  font-size: 18px;
  margin: 0;
}


nav ul {
  list-style: none;
  display: flex;
  justify-content: center;
  gap: 20px;
}

nav a {
  color: #fff;
  text-decoration: none;
  font-weight: bold;
}

/* ヘッダー　スマホ向けに調整（幅767px以下） */
@media (max-width: 767px) {
  .top {
    flex-direction: column ;
    align-items: center ;
    text-align: center ;
    padding: 30px 20px ;
  }

  .top-text {
    margin-left: 0;
    margin-top: 20px;
  }

  .top-text h1 {
    font-size: 18px;
  }
}

/* メインビジュアル */

.hero {
    padding: 20px 20px 0px !important;
  }

.hero h2 {
  font-size: 2rem;
  margin-bottom: 10px;
  color: #264081;
}

.hero p {
  font-size: 1.2rem;
  margin-bottom: 20px;
}

.btn {
  display: inline-block;
  background: #264081;
  color: #fff;
  padding: 10px 20px;
  text-decoration: none;
  border-radius: 5px;
  font-weight: bold;
  font-size: 1.2em;
}

.hero-list {
      display: flex;
      flex-wrap: wrap;
      justify-content: space-between;
      gap: 20px;
    }

.hero-item {
    margin: auto;
}

/* メイン画像の大きさ・共通 */
.hero-image {
  display: block;
  margin: 0 auto;
  max-width: 100%;
  height: auto;
}

/* メイン画像の大きさ・PCサイズ（例：768px以上）では固定サイズ */
@media screen and (min-width: 768px) {
  .hero-image {
    width: 500px; /* ←任意の固定幅に調整してください */
  }
}

/* メイン画像の大きさ・スマホサイズ（例：768px未満）では画面幅の85% */
@media screen and (max-width: 767px) {
  .hero-image {
    width: 85vw; /* vw = viewport width（画面幅の85%） */
  }
}


/* サービス紹介 */
.services {
      padding-top: 10px;
    }

.service-list {
      display: flex;
      flex-wrap: wrap;
      justify-content: space-between;
      gap: 20px;
    }

.service-item {
      flex: 1 1 30%;
      background: #fff;
      padding: 20px;
      border-radius: 10px;
      text-align: center;
      box-shadow: 0 2px 5px rgba(0,0,0,0.05);
    }


.service-icon {
  color: #4CAF50;
  margin-bottom: 10px;
}

/* 事務所紹介 */
.info {
      
    }

.info-list {
      display: flex;
      gap: 20px;
    }
.info-item {
      padding: 20px;
      text-align: left;
    }
.info-item_a {
      flex: 2;
      padding: 20px;
}
.info-item_b {
      flex: 1;
      padding: 20px;
      text-align: center;
}

/* 事務所紹介・スマホ表示：縦並び ＆ 順序を逆に */
@media screen and (max-width: 768px) {
  .info-list {
    flex-direction: column;
  }
  .info-item_a {
    order: 2; /* 下にする */
    width: 100%;
  }
  .info-item_b {
    order: 1; /* 上にする */
    width: 100%;
  }
}


/* 実績紹介 */
.works {
      background-color: #f0f0f0;
    }

.work-list {
      display: flex;
      gap: 20px;
}

.work-item {
      background: #fff;
      padding: 20px 25px 25px;
      border-radius: 8px;
      margin-bottom: 25px;
    }

.work-item_a {
      flex: 1;
      padding: 0px;
}
.work-item_b {
      flex: 1;
      padding: 0px;
      text-align: center;
      padding: 10px 0 0;
}
.work-item_b img{
    /*コレ*/object-fit: cover;
    width: 100%;
    height: 100%;
}

/* 実績紹介・スマホ表示：縦並び ＆ 順序を逆に */
@media screen and (max-width: 768px) {
  .work-list {
    flex-direction: column;
  }
  .work-item_a {
    order: 1; /* 上にする */
    width: 100%;
  }
  .work-item_b {
    order: 2; /* 下にする */
    width: 100%;
  }
}
    

/* 制作パッケージ */
.package-list {
  display: grid;
  grid-template-columns: repeat(2, 1fr); /* 2列指定 */
  gap: 20px; /* 間の余白。お好みで調整 */
  max-width: 1200px;
  width: 100%; /* スマホでも横スクロールしないように */
  margin: 0 auto;
  padding: 20px;
}

.package-item {
  background: #fff;
  padding: 10px 20px 20px;
  border: 1px #6FA541 solid;
  border-radius: 10px;
  text-align: center;
  box-shadow: 0 2px 5px rgba(0,0,0,0.05);
}

.package-item h3 {
  margin-bottom: 10px;
  font-size: 1.2rem;
  color: #4CAF50;
}

/* パッケージ／スマホでは1列にする */
@media screen and (max-width: 768px) {
  .package-list {
    grid-template-columns: 1fr;
  }
}


/* お問い合わせ */
.contact p {
  text-align: center;
  margin-bottom: 20px;
}

.contact {
  text-align: center;
}

/* フッター */
footer {
  background: linear-gradient(-20deg, #6FA541 0%, #1C794C 100%);
  color: #fff;
  text-align: center;
  padding: 20px 0;
  font-size: 0.9rem;
}

/* レスポンシブ対応 */
@media (max-width: 768px) {
  nav ul {
    flex-direction: column;
    gap: 10px;
  }

  .services .service-list,
  .works .work-list {
    flex-direction: column;
    align-items: center;
  }
}

@media (max-width: 480px) {
  header h1 {
    font-size: 1rem;
  }

  .hero h2 {
    font-size: 1.6rem;
  }

  h2 {
    font-size: 1.8rem;
  }
}

/* セクション背景色設定 */

.hero {
  color: #1C794C;
  text-align: center;
  background-color: rgba(214,239,189,0.7); /* 薄い緑 */
}

.wave-bottom {
  color: rgba(245,245,245,1); /* 薄いグレー */
}

.services {
  background: rgba(245,245,245,1); /* 薄いグレー */
}

.info {
  background: rgba(249,249,249,0.5); /* もう少し明るいグレー */
}

.works {
  background: rgba(230,230,230,0.5); /* 薄いグレー */
}

.packages {
  background: rgba(249,249,249,0.5); /* もう少し明るいグレー */
}

.contact {
  background: rgba(230,230,230,0.5); /* 薄いグレー */
}

#contents {
  background-image: url(../images_lp/back.png) ; 
  background-position: left top;
  background-repeat: repeat-y;
  background-size: 100% auto;
}


/* 背景 下向きの半円 */
.wave-bottom {
  position: relative;
  width: 100%;
  height: 100px;
  overflow: hidden;
  background-color: rgba(214,239,189,0.7); /* 薄い緑 */
}
.wave-bottom svg {
  display: block;
  width: 100%;
  height: 100%;
}

/* トップへ戻るボタン */

html {
    scroll-behavior: smooth;
}
.pagetop {
    height: 60px;
    width: 60px;
    position: fixed;
    right: 20px;
    bottom: 20px;
    background: #1C794C;
    border: solid 2px #1C794C;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 2;
    box-shadow: 0 0px 6px rgb(0 0 0 / 30%);
}

.pagetop_button {
    display: flex;
    display: block;
}

.pagetop_arrow {
    height: 18px;
    width: 18px;
    border-top: 3px solid #eee;
    border-right: 3px solid #eee;
    transform: translateY(20%) rotate(-45deg);
    margin: 2px auto;
}

.pagetop_link {
    font-size: 80%;
    color: #eee;  
}

a.pagetop {
    color: #eee;
    text-decoration: none ;
    border-bottom: 0px ;
}


/* 画像スライダー */
.sliderArea {
  max-width: 55%;
  margin: 0 auto;
  padding: 0;
}

@media (max-width: 767px) { 
.sliderArea {
  max-width: 95%;
}

}
.sliderArea.w300 {
  max-width: 300px;
}
.slick-slide {
  margin: 0 5px 10px;
}
.slick-slide img {
  width: 100%;
  height: auto;
}
.slick-prev, .slick-next {
  z-index: 1;
}
.slick-prev:before, .slick-next:before {
  color: #000;
}
.slick-slide {
  transition: all ease-in-out .3s;
  opacity: .2;
}
.slick-active {
  opacity: 1;
}
.slick-current {
  opacity: 1;
}
.thumb {
  margin: 20px 0 0;
}
.thumb .slick-slide {
  cursor: pointer;
}
.thumb .slick-slide:hover {
  opacity: .7;
}
.regular .slick-dots li button:before {
  content: none;
}
.regular .slick-dots li button {
  background: #999999 ;
  width: 4px;
  height: 4px;
}
.regular .slick-dots li button:hover, .regular .slick-dots li.slick-active button {
  background: #666666 !important;
  width: 12px;
  height: 12px;
}
