/* ==================================================
ヒーローセクション（メインビジュアル）
================================================== */

.hero {
  height: auto;
  max-height: auto;
  background-color: #000;
  /* Fallback */
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: #FFFFFF;
  position: relative;
  overflow: hidden;
  aspect-ratio: 14.4 / 7;
  padding: 0;
}

.hero-slide {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  filter: blur(10px);
  transition: opacity 2s ease, filter 2s ease;
  z-index: 1;
}

.hero-slide.active {
  opacity: 1;
  filter: blur(0);
}

.hero:after {
  content: '';
  display: block;
  position: absolute;
  width: 100%;
  height: 100%;
  top: 0;
  left: 0;
  background: rgba(24, 51, 67, 0.3);
  z-index: 200;
  /* Ensure overlay is above slides (max z-index 99) */
  pointer-events: none;
}

@media (max-width: 1000px) {
  .hero {
    aspect-ratio: 10 / 7.5;
  }
}


/*----------------------------------------
キャッチコピー
----------------------------------------*/
.hero-content {
  position: relative;
  z-index: 201;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
  width: 100%;
  text-align: center;
}

.hero-content h2 {
  font-size: clamp(1.625rem, 1.08rem + 2.73vw, 3.125rem);
  /* min 26px/320px ～ max 50px/1200px */
  margin-bottom: 1.5rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  line-height: 1.4;
  font-family: 'Meiryo', 'メイリオ', sans-serif;
  color: #ffffff;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
  max-width: 1200px;
  margin-left: auto;
  margin-right: auto;
}

.hero-content p {
  font-size: clamp(1.125rem, 0.852rem + 1.36vw, 1.875rem);
  /* min 18px/320px ～ max 30px/1200px */
  font-weight: 600;
  letter-spacing: 0.05em;
  line-height: 1.6;
  font-family: 'Meiryo', 'メイリオ', sans-serif;
  color: #ffffff;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
  max-width: 1200px;
  margin-left: auto;
  margin-right: auto;
}



/* ==================================================
最新情報
================================================== */
.top-services {
  max-width: 1220px;
  margin: 0 auto;
  /*max-width:1000px;
  margin: 4em auto;
  padding: 0 20px;*/
}

ul.tab-list {
  display: flex;
  justify-content: center;
  list-style: none;
  padding: 0;
  margin-bottom: 2em;
  /*border-bottom: 2px solid #ddd;*/
  gap: 1em;
}

.tab-item {
  background-color: var(--color-primary);
  color: #ffffff;
  border-radius: 1.5em;
  padding: 0.5em 1.5em;
  line-height: 1;
  border: 2px solid var(--color-primary);
  cursor: pointer;
  /*padding: 10px 30px;
  cursor: pointer;
  font-weight: bold;
  color: #666;
  transition: 0.3s;
  margin-bottom: -2px;
  border-bottom: 2px solid transparent;*/
}

.tab-item.active {
  color: var(--color-primary);
  background: none;
  cursor: default;
}

.news-tabs .tab-item:hover {
  opacity: 0.6;
}

.news-tabs .tab-item.active:hover {
  opacity: 1.0;
}

.news-list a:hover .news-title {
  color: #257CD8;
  text-decoration: underline;
}

@media screen and (max-width: 768px) {
  .news-list a {
    flex-direction: column;
    align-items: flex-start !important;
    gap: 5px !important;
  }
}



/* ==================================================
SKYAXISの特徴
================================================== */
.features {
  background-color: #f6f6f6;
}

.features h2::after {
  content: '';
  position: absolute;
  bottom: -15px;
  left: 50%;
  transform: translateX(-50%);
  width: 60px;
  height: 3px;
  background-color: var(--color-primary);
}

.feature-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 30px;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

.feature-item {
  background: #FFFFFF;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  position: relative;
  text-align: center;
  flex: 1;
}

@media (max-width: 1000px) {
  .feature-grid {
    padding: 0;
  }

  .feature-item {
    width: calc(50% - 15px);
    flex: auto;
    padding: 10px;
  }

  .feature-item:nth-of-type(3) {
    width: 100%;
  }

  .feature-item:nth-of-type(3) p {
    text-align: center;
  }
}

@media (max-width: 650px) {
  .feature-item {
    width: 100%;
  }

  .feature-item:nth-of-type(3) p {
    text-align: left;
  }
}

.top .feature-item img {
  width: 30%;
  height: auto;
  aspect-ratio: 1 / 1;
  object-fit: contain;
  transition: transform 0.3s ease;
  margin: 2rem auto 0;
  text-align: center;
}

@media (max-width: 1000px) {
  .top .feature-item img {
    width: 100%;
    max-width: 120px;
  }
}

.feature-item h3 {
  color: var(--color-primary);
  font-size: 1.5em;
  margin: 20px 0 30px;
  padding: 0 20px;
  position: relative;
}

.feature-item h3::after {
  content: '';
  position: absolute;
  bottom: -8px;
  left: calc(50% - 20px);
  width: 40px;
  height: 2px;
  background-color: var(--color-primary);
}

.feature-item p {
  color: #666;
  line-height: 1.6;
  padding: 0 20px 20px;
  font-size: 1.1em;
  text-align: left;
}

@media (max-width: 768px) {
  .feature-item img {
    height: auto;
  }

  .feature-item h3 {
    font-size: 1.3em;
  }

  .feature-item p {
    font-size: 1em;
  }
}



/* ==================================================
サービス内容
================================================== */
.top-services {
  max-width: 1220px;
  margin: 0 auto;
}



/* ==================================================
SKYAXISについて
================================================== */
.about-section {
  background-color: #F6F6F6;
  background-image: url(../img/img_bg_map.png);
  background-repeat: no-repeat;
  background-position: right -100px center;
  background-size: auto 130%;
}

.about-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

@media (max-width: 1000px) {
  .about-container {
    padding: 0;
  }
}

@media (max-width: 650px) {
  .about-section {
    background-position: right -130px bottom -200px;
    background-size: auto;
  }
}


/*----------------------------------------
3つのボックス
----------------------------------------*/
.about-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 30px;
}

.about-item {
  background: #FFFFFF;
  padding: var(--box-padding-primary);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  position: relative;
  flex: 1;
}

.about-item p {
  color: #666;
  line-height: 1.8;
  margin-bottom: 20px;
}

@media (max-width: 1000px) {
  .about-item:nth-of-type(3) {
    width: 100%;
    flex: auto;
  }

  .about-item:nth-of-type(3) p {
    text-align: center;
  }
}

@media (max-width: 650px) {
  .about-grid {
    padding: 0 15px;
  }

  .about-item {
    width: 100%;
    flex: auto;
  }

  .about-item:nth-of-type(3) p {
    text-align: left;
  }
}

.about-item h3 {
  color: #0092ca;
  font-size: 1.5rem;
  text-align: center;
  margin-bottom: 20px;
  position: relative;
  padding-bottom: 15px;
}

.about-item h3::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 50px;
  height: 3px;
  background: #0092ca;
}

.about-item ul {
  list-style: none;
  padding: 0;
}

.about-item ul li {
  color: #666;
  margin-bottom: 10px;
  padding-left: 25px;
  position: relative;
}

.about-item ul li::before {
  content: '✓';
  position: absolute;
  left: 0;
  color: #0092ca;
}

@media (min-width: 650px) and (max-width: 1000px) {
  .about-item:nth-of-type(3) ul {
    display: flex;
    justify-content: center;
  }
}



/* ==================================================
フッターお問い合わせ
================================================== */
.top-contact {
  position: relative;
  z-index: 3;
  padding: clamp(2.5rem, 1.591rem + 4.55vw, 5rem);
  /* min 40px/320px ～ max 80px/1200px */
  width: 100%;
  text-align: center;
  backdrop-filter: blur(5px);
  max-width: 100%;
  margin: 0;
  background-image: url(../img/bg_img_main.jpg);
  background-repeat: no-repeat;
  background-size: cover;
}

.top-contact h2 {
  margin-bottom: 1.5rem;
  color: #ffffff;
}

.top-contact p {
  font-size: 1.6rem;
  font-weight: 500;
  letter-spacing: 0.05em;
  line-height: 1.6;
  font-family: 'Meiryo', 'メイリオ', sans-serif;
  color: #ffffff;
  margin-bottom: 2rem;
}


/*----------------------------------------
お問い合わせボタン
----------------------------------------*/
.top-contact .contact-link {
  display: inline-block;
  background: #ffffff;
  color: #0092ca;
  padding: 1rem 2.5rem;
  border-radius: 50px;
  font-size: 1.2rem;
  font-weight: bold;
  text-decoration: none;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.top-contact .contact-link:hover {
  background: #f0f0f0;
  transform: translateY(-3px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

@media (max-width: 768px) {
  .top-contact h2 {
    font-size: min(2rem, 7vw);
  }

  .top-contact p {
    font-size: min(1.2rem, 5vw);
  }

  .top-contact .contact-link {
    margin-top: 0;
    font-size: min(1.2rem, 5vw);
  }
}