@charset "UTF-8";
/* ==========================================================================
   共通設定
   ========================================================================== */
html {
  scroll-behavior: smooth;
}
body {
  margin: 0;
  padding: 0;
  background-color: #EFEFEF;
  color: #4D4D4D;
  font-family: "Helvetica Neue", Arial, "Hiragino Kaku Gothic ProN", "Hiragino Sans", Meiryo, sans-serif;
  line-height: 1.8;
  overflow-x: hidden;
  position: relative;
  isolation: isolate;
}
section {
  padding: 100px 20px;
  max-width: 1200px;
  margin: 0 auto;
}
h1 {
  text-align: center;
  font-size: 2rem;
  margin-bottom: 50px;
  letter-spacing: 0.1em;
}
/* ==========================================================================
   スクロール連動の蛇行ライン
   ========================================================================== */
#scroll-line-wrap {
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  overflow: hidden;
}
#scroll-line {
  display: block;
  width: 100%;
  height: 100%;
  overflow: visible;
}
#scroll-line path {
  fill: none;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.scroll-line-base {
  stroke: rgba(255, 243, 82, 0.012);
  stroke-width: 1px;
}
.scroll-line-progress {
  stroke: rgba(255, 243, 82, 0.9);
  stroke-width: 2px;
}
/* ==========================================================================
   MAIN VISUAL (全体設定・背景スライド)
   ========================================================================== */
/* --- レイアウト基本設定 --- */
.main-visual {
  width: 100%;
  height: 65vh;
  overflow: hidden;
  position: relative;
  background-color: #000;
}
.slide {
  width: 100%;
  height: 100%;
  position: absolute;
  inset: 0;
  opacity: 0;
  z-index: 1;
  display: flex;
  justify-content: center;
  align-items: center;
  animation: seamlessFade 16s infinite;
}
.slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  position: absolute;
}
.slide::after {
  content: "";
  position: absolute;
  inset: 0;
  background-color: rgba(0, 0, 0, 0.4);
  z-index: 2;
}
.slide-text {
  position: relative;
  z-index: 3;
  color: #fff;
  text-align: center;
  width: 100%;
}
.typewriter {
  display: flex;
  flex-direction: column;
  align-items: center;
  font-weight: bold;
  text-shadow: 0 2px 15px rgba(0, 0, 0, 0.6);
}
/* --- センターラインの設定 --- */
.line {
  display: block;
  width: 300px; /* 線の長さを固定、または max-width で調整 */
  height: 2px;
  background-color: #fff;
  margin: 0.5rem 0;
  transform: scaleX(0); /* 最初は長さ0 */
  transform-origin: left; /* 左から右へ */
  transition: transform 0.6s ease-out; /* 描画スピード */
}
/* --- テキスト（最初は隠す） --- */
.text-top, .text-bottom {
  overflow: hidden; /* 迫り上がり効果を強調 */
  height: 1.2em;
  line-height: 1.2em;
}
.text-top span, .text-bottom span {
  display: block;
  opacity: 0;
  transition: transform 0.6s ease-out, opacity 0.6s ease-out;
  white-space: nowrap;
}
.text-top {
  font-size: 2.5rem;
}
.text-top span {
  transform: translateY(100%);
} /* 下に隠しておく */
.text-bottom {
  font-size: 1.6rem;
  font-weight: normal;
}
.text-bottom span {
  transform: translateY(-100%);
} /* 上に隠しておく */
/* --- アニメーション発火タイミング --- */
/* 1. ライン：即座に伸びる */
.slide.animate .line {
  transform: scaleX(1);
  transition-delay: 0.1s;
}
/* 2. テキスト：ライン描画が終わる 0.7秒後から上下に開く */
.slide.animate .text-top span {
  opacity: 1;
  transform: translateY(0);
  transition-delay: 0.7s;
}
.slide.animate .text-bottom span {
  opacity: 1;
  transform: translateY(0);
  transition-delay: 0.7s;
}
/* 背景スライド・キーフレーム（前回同様） */
@keyframes seamlessFade {
  0%, 30%, 100% {
    opacity: 0;
    z-index: 1;
  }
  5%, 25% {
    opacity: 1;
    z-index: 2;
  }
}
.slide1 {
  animation-delay: 0s;
}
.slide2 {
  animation-delay: 4s;
}
.slide3 {
  animation-delay: 8s;
}
.slide4 {
  animation-delay: 12s;
}
/* ==========================================================================
   トップテキスト
   ========================================================================== */
.top-text {
  width: 90%;
  max-width: 1000px;
  margin: 0 auto 100px;
  padding: 100px 20px 0;
  color: #4D4D4D;
  text-align: center;
  position: relative;
}
.top-text-square {
  background-color: #ffdc00;
  width: 15%;
  height: 15%;
  position: absolute;
  top: 0;
  left: 45%;
  z-index: -1;
  opacity: 0.5;
}
.top-text h1 {
  font-size: 2.8rem;
  font-weight: bold;
  line-height: 1.4;
  margin-bottom: 40px;
  position: relative;
  display: inline-block;
  padding-bottom: 15px;
}
.top-text p {
  font-size: 1.1rem;
  line-height: 2;
  text-align: justify;
  max-width: 800px;
  margin: 0 auto;
  color: #4D4D4D;
}
/* ==========================================================================
   WORKS
   ========================================================================== */
.works {
  overflow: hidden;
  background-color: #fff;
  max-width: 100%;
  padding: 0 0 100px;
  position: relative;
}
.works-parallax {
  position: relative;
}
.works-heading-group, .works-slider-group {
  will-change: transform, opacity;
}
.works-heading-group {
  transform: translate3d(180px, 0, 0);
  opacity: 0;
}
.works-slider-group {
  transform: translate3d(280px, 0, 0);
  opacity: 0;
}
.heading05 {
  margin-top: 100px;
  position: relative;
  padding-bottom: 50px;
  font-size: 1rem;
  text-align: center;
  color: #fff;
  margin-bottom: 50px;
}
.heading05::before {
  content: attr(data-en);
  display: block;
  color: #ffdc00;
  font-size: 3rem;
  font-style: italic;
  text-transform: uppercase;
}
.heading05::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translate(-50%) rotate(30deg);
  width: 2px;
  height: 40px;
  background-color: #ffdc00;
}
.works h1 {
  text-align: center;
  font-size: 1.2rem;
  margin-bottom: 20px;
  color: #4D4D4D;
}
.works-lead {
  text-align: center;
  margin-bottom: 50px;
  color: #4D4D4D;
  padding: 0 20px;
}
.splide__slide {
  display: flex;
  justify-content: center;
}
.works-slide {
  width: 320px;
  padding: 10px;
  box-sizing: border-box;
}
.works-card {
  display: flex;
  flex-direction: column;
  height: 100%;
  background: #fff;
  text-decoration: none;
  color: #4D4D4D;
  transition: transform 0.3s ease;
}
.works-card:hover {
  transform: translateY(-8px);
}
.works-img {
  width: 100%;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  border-radius: 12px;
  background: #f0f0f0;
  margin-bottom: 15px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}
.works-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: 0.5s;
}
.works-card:hover .works-img img {
  transform: scale(1.08);
}
.works-content {
  padding: 0 5px;
  text-align: left;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}
.works-content h3 {
  font-size: 1.1rem;
  font-weight: bold;
  margin: 0 0 5px;
  color: #4D4D4D;
}
.works-content h2 {
  font-size: 0.9rem;
  color: #888;
  margin: 0 0 8px;
  font-weight: normal;
}
.works-category {
  font-size: 0.8rem;
  line-height: 1.6;
  color: #666;
  margin-bottom: 15px;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  min-height: 4.8em;
}
.works-more {
  margin-top: auto;
  align-self: flex-start;
  font-size: 0.8rem;
  font-weight: bold;
  color: #4D4D4D;
  border-bottom: 3px solid #fff352;
  padding-bottom: 2px;
  display: inline-block;
  transition: 0.3s;
}
.works-card:hover .works-more {
  background-color: #fff352;
}
@media screen and (max-width: 768px) {
  .works {
    padding: 60px 0;
  }
  .works-slide {
    width: 280px;
  }
  .works-heading-group {
    transform: translate3d(70px, 0, 0);
  }
  .works-slider-group {
    transform: translate3d(120px, 0, 0);
  }
}
/* ==========================================================================
   STRENGTH
   ========================================================================== */
.strength-section {
  padding: 100px 0;
  overflow: hidden;
}
.strength-section h1 {
  text-align: center;
  font-size: 2rem;
  margin-bottom: 50px;
  letter-spacing: 0.1em;
  color: #4D4D4D;
}
.strength-list {
  margin: 0;
  padding: 20px 0 100px 0;
}
.strength-card {
  background: #fff;
  padding: 40px 30px;
  border-radius: 12px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 20px;
  transition: transform 0.5s ease, opacity 0.5s ease, box-shadow 0.5s ease;
  transform: scale(0.85);
  opacity: 0.5;
}
.splide__slide.is-active.strength-card {
  transform: scale(1);
  opacity: 1;
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1);
}
.icon-box {
  width: 90px;
  height: 90px;
  background-color: #f5f5f5;
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  transition: background-color 0.5s ease;
}
.icon-box img {
  width: 55px;
  height: 55px;
  object-fit: contain;
}
.splide__slide.is-active .icon-box {
  background-color: #fff352;
}
.strength-card h2 {
  color: #4D4D4D;
  font-size: 1.25rem;
  font-weight: bold;
  margin: 0 0 10px;
  position: relative;
  padding-bottom: 8px;
  display: inline-block;
}
.strength-card h2::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 3px;
  background-color: #fff352;
  transition: width 0.5s ease;
}
.splide__slide.is-active h2::after {
  width: 100%;
}
.strength-card p {
  color: #4D4D4D;
  font-size: 0.95rem;
  line-height: 1.8;
  margin: 0;
}
.splide__pagination {
  bottom: -80px;
  display: flex;
  gap: 35px;
}
.splide__pagination__page {
  width: 50px;
  height: 50px;
  background-color: #fff;
  border-radius: 50%;
  opacity: 0.5;
  transition: all 0.3s ease;
  background-size: 50%;
  background-position: center;
  background-repeat: no-repeat;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}
.splide__pagination li:nth-child(1) .splide__pagination__page {
  background-image: url('../img/index-img/hearing.svg');
}
.splide__pagination li:nth-child(2) .splide__pagination__page {
  background-image: url('../img/index-img/hp-pamphlet.svg');
}
.splide__pagination li:nth-child(3) .splide__pagination__page {
  background-image: url('../img/index-img/satsuei.svg');
}
.splide__pagination li:nth-child(4) .splide__pagination__page {
  background-image: url('../img/index-img/item.svg');
}
.splide__pagination li:nth-child(5) .splide__pagination__page {
  background-image: url('../img/index-img/kikaku.svg');
}
.splide__pagination__page.is-active, .splide__pagination__page:hover {
  opacity: 1;
  background-color: #fff352;
  transform: scale(1.15);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}
/* ==========================================================================
   CONTACT
   ========================================================================== */
.index-contact {
  background-color: #fff;
  width: 90%;
  max-width: 800px;
  margin: 100px auto;
  padding: 60px 40px;
  border-radius: 16px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.08);
  border-top: 8px solid #fff352;
  text-align: center;
  box-sizing: border-box;
  position: relative;
}
.index-contact::before {
  content: "\2709";
  display: block;
  font-size: 3.5rem;
  color: #fff352;
  margin-bottom: 10px;
  line-height: 1;
}
.index-contact h1 {
  font-size: 1.8rem;
  color: #2E2E2E;
  margin-bottom: 30px;
  font-weight: bold;
  letter-spacing: 0.05em;
}
.index-contact ul {
  list-style: none;
  padding: 25px 30px;
  margin: 0 auto 40px;
  display: inline-block;
  text-align: left;
  background-color: #fafafa;
  border-radius: 8px;
  border: 1px dashed #ccc;
}
.index-contact li {
  font-size: 1.05rem;
  color: #4D4D4D;
  margin-bottom: 15px;
  position: relative;
  padding-left: 2em;
  font-weight: bold;
}
.index-contact li:last-child {
  margin-bottom: 0;
}
.index-contact li::before {
  content: "✓";
  position: absolute;
  left: 0;
  top: -2px;
  color: #e6c800;
  font-size: 1.3rem;
  font-weight: bold;
}
.index-contact a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background-color: #fff352;
  color: #2E2E2E;
  padding: 20px 80px;
  border-radius: 50px;
  font-size: 1.25rem;
  font-weight: bold;
  text-decoration: none;
  box-shadow: 0 6px 20px rgba(255, 243, 82, 0.4);
  transition: all 0.3s ease;
}
.index-contact a::after {
  content: "\25B6";
  font-size: 0.8rem;
  margin-left: 10px;
  transition: transform 0.3s ease;
}
.index-contact a:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 25px rgba(255, 243, 82, 0.6);
  background-color: #ffe600;
}
.index-contact a:hover::after {
  transform: translateX(5px);
}
.index-contact p {
  margin-top: 30px;
  font-size: 0.95rem;
  color: #666;
  line-height: 1.8;
}
/* ==========================================================================
   MAP SECTION (Accent Color: #fff352)
   ========================================================================== */
.map {
  padding: 100px 20px;
 
}

.map-inner {
  max-width: 1100px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 60px;
}

/* 地図 */
.map-iframe {
  flex: 1.2;
}

.map-iframe iframe {
  width: 100%;
  height: 450px;
  border-radius: 12px;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.05);
  filter: grayscale(0.2); /* 少し彩度を落とすとモダンになります */
}

/* 情報エリア */
.map-info {
  flex: 0 0 380px;
  text-align: left;
}

/* ラベル表示 */
.info-label {
  display: inline-block;
  font-size: 0.8rem;
  font-weight: bold;
  letter-spacing: 0.2em;
  color: #333;
  background-color: #fff352; /* アクセントカラー */
  padding: 2px 12px;
  margin-bottom: 15px;
}

.map h2 {
  font-size: 1.8rem;
  color: #222;
  margin-bottom: 10px;
}

/* アクセントライン */
.map-line {
  width: 50px;
  height: 4px;
  background-color: #fff352; /* アクセントカラー */
  margin-bottom: 30px;
}

.map p {
  color: #444;
  line-height: 1.8;
  margin-bottom: 0;
}

.info-item {
  margin-bottom: 20px;
}

.map .tel {
  font-size: 1.4rem;
  font-weight: bold;
  color: #222;
}

/* Google Mapsボタン（コンパクト版） */
.map-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-top: 10px;
  padding: 6px 18px;         /* 余白を小さく */
  background-color: #fff352; /* アクセントカラー */
  color: #333;
  text-decoration: none;
  font-size: 0.85rem;        /* 文字サイズを少し小さく */
  font-weight: bold;
  border-radius: 2px;        /* 角丸を控えめに */
  transition: all 0.3s ease;
  border: 1px solid #fff352; /* 背景と同色の枠線 */
}

.map-btn:hover {
  background-color: transparent; /* ホバー時は背景を抜く */
  color: #333;
  transform: none;               /* 浮かび上がる動きを削除 */
  box-shadow: none;              /* 影を削除 */
}

/* 矢印などを追加したい場合（任意） */
.map-btn::after {
  content: " >";
  margin-left: 5px;
  font-size: 0.7rem;
}

/* レスポンシブ (スマホ対応) */
@media (max-width: 960px) {
  .map-inner {
    flex-direction: column;
    gap: 40px;
  }
  
  .map-iframe, .map-info {
    width: 100%;
    flex: none;
  }
  
  .map-info {
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
  }
  
  .map-iframe iframe {
    height: 300px;
  }
}
/* ==========================================================================
   レスポンシブ
   ========================================================================== */
@media (max-width: 1100px) {
  .heading05 {
    margin-top: 100px;
  }
  .heading05::before {
    font-size: 2rem;
  }
}
@media screen and (max-width: 768px) {
  section {
    padding: 60px 20px;
  }
  .main-visual {
    height: 60vh;
  }
  .typewriter {
    font-size: 1.4rem;
  }
  .top-text {
    margin: 60px auto;
  }
  .top-text h1 {
    font-size: 1.8rem;
    padding-bottom: 10px;
  }
  .top-text p {
    font-size: 1rem;
    text-align: left;
  }
  .works {
    padding: 60px 0;
  }
  .works-slide {
    width: 280px;
  }
  .strength-card {
    padding: 30px 20px;
  }
  .icon-box {
    width: 70px;
    height: 70px;
  }
  .icon-box img {
    width: 40px;
    height: 40px;
  }
  .splide__pagination {
    gap: 15px;
  }
  .splide__pagination__page {
    width: 40px;
    height: 40px;
  }
  .index-contact {
    padding: 40px 20px;
    margin: 60px auto;
    width: 92%;
  }
  .index-contact::before {
    font-size: 2.8rem;
  }
  .index-contact h1 {
    font-size: 1.4rem;
  }
  .index-contact ul {
    padding: 20px;
    width: 100%;
    box-sizing: border-box;
  }
  .index-contact li {
    font-size: 0.95rem;
  }
  .index-contact a {
    padding: 15px 40px;
    font-size: 1.1rem;
    width: 100%;
    box-sizing: border-box;
  }
  .map iframe {
    width: 100%;
    height: 350px;
  }
}