/* ===============================================
共通
=============================================== */
:root {
  /* 色 */
  --black-color: #333333;
  --white-color: #fff;
}

html {
  color: var(--black-color);
  line-height: 1.4;
  font-size: 16px;
  box-sizing: border-box;
  font-family: "Helvetica Neue", Arial, "Hiragino Kaku Gothic ProN", "Hiragino Sans", Meiryo, sans-serif;
}

body {
  margin: 0;
}

p {
  margin: 0 0 1em 0;
  padding: 0;
}

a {
  text-decoration: none;
  color: var(--black-color);
}

ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

img {
  width: 100%;
  object-fit: cover;
}

table {
  border-collapse: collapse;
  width: 100%;
}

table tr,
table th,
table td {
  border-collapse: collapse;
}

h1 {
  font-size: 1.7rem;
  letter-spacing: 0.2rem;
  margin-bottom: 6px;
}

.sp {
  display: none;
}

/* ===============================================
背景動画
=============================================== */
.wrap {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
  z-index: -9999;
  opacity: 0.5;
}

.wrap video {
  min-width: 100%;
  min-height: 100%;
}

/* ===============================================
メインコンテンツ用 */
.container {
  position: relative;
  z-index: 2;
  overflow: auto;
  scroll-snap-type: y mandatory;
  height: 100vh;
  scroll-behavior: smooth;
  opacity: 1;
}

/* ===============================================
メインコンテンツ
=============================================== */
.container {
  position: relative;
  z-index: 2;
  overflow: auto;
  scroll-snap-type: y mandatory;
  height: 100vh;
  scroll-behavior: smooth;
}

/* セクション共通スタイル */
.area {
  scroll-snap-align: start;
  height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-items: center;
  padding: 0 2rem;
  position: relative;
}

/* 各セクションの背景色 */
#home {
  background-color: rgba(255, 255, 255, 0.0);
}

#belief {
  background-color: rgba(0, 176, 240, 0.15);
}

#service {
  background-color: rgba(112, 48, 160, 0.15);
}

#story {
  background-color: rgba(0, 0, 0, 0.0);
}

#voice {
  background-color: rgba(0, 176, 240, 0.15);
  overflow-x: hidden;
}

#company {
  background-color: rgba(112, 48, 160, 0.15);
}

#contact {
  background-color: rgba(0, 0, 0, 0.0);
}

/* セクションヘッダー */
.section-header {
  text-align: center;
  margin-bottom: 2rem;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.section-title {
  font-size: 3rem;
  margin: 3rem 0 0.5rem;
  font-family: "Times New Roman", "YuMincho", "Hiragino Mincho ProN", "Yu Mincho", "MS PMincho", serif;
  line-height: 1;
  display: block;
  background: linear-gradient(to right, rgba(112, 48, 160, 0.8), rgba(0, 176, 240, 0.8));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  color: transparent;
}

.section-title-ja {
  position: relative;
  font-size: 1.2rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin: 0;
  font-family: "Times New Roman", "YuMincho", "Hiragino Mincho ProN", "Yu Mincho", "MS PMincho", serif;
}

.section-title-ja span {
  padding: 0 1rem;
  white-space: nowrap;
  font-family: "Times New Roman", "YuMincho", "Hiragino Mincho ProN", "Yu Mincho", "MS PMincho", serif;
  background: linear-gradient(to right, rgba(112, 48, 160, 0.8), rgba(0, 176, 240, 0.8));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  color: transparent;
}

.section-title-ja::before {
  content: "";
  height: 1px;
  background: linear-gradient(to right, rgba(112, 48, 160, 0.2), rgba(0, 176, 240, 0.2));
  width: calc((100% - 2rem) / 2);
}

.section-title-ja::after {
  content: "";
  height: 1px;
  background: linear-gradient(to right, rgba(0, 176, 240, 0.2), rgba(112, 48, 160, 0.2));
  width: calc((100% - 2rem) / 2);
}

/* セクションコンテンツ */
.section-content {
  max-width: 1200px;
  width: 100%;
  text-align: center;
}

/* ===============================================
レスポンシブ設定
=============================================== */
@media screen and (max-width: 768px) {
  .container {
    scroll-snap-type: none;
  }

  .area {
    height: auto;
    min-height: 100vh;
  }

  .section-title {
    font-size: 2.4rem;
  }

  .section-title-ja {
    font-size: 1rem;
  }

  .section-content {
    margin-bottom: 20px;
  }

  .pdf-link {
    padding: 10px 20px;
    font-size: 0.9rem;
    margin: 25px auto 0;
    display: block;
    width: fit-content;
  }

  .pdf-link img {
    width: 20px;
    height: 20px;
  }
}

@media screen and (max-width: 420px) {
  .section-title {
    font-size: 2rem;
  }

  .section-title-ja {
    font-size: 0.9rem;
  }

  .section-title-ja::before,
  .section-title-ja::after {
    width: 2rem;
  }
}

/* ===============================================
サイドヘッダー
=============================================== */
/* ハンバーガーメニュー */
.hamburger {
  display: none; /* 通常時は非表示 */
  position: fixed;
  left: 260px;
  top: 20px;
  width: 40px;
  height: 40px;
  cursor: pointer;
  z-index: 9002;
  transition: transform 0.3s ease;
}

.hamburger span {
  display: block;
  width: 30px;
  height: 2px;
  background-color: #333;
  position: absolute;
  left: 5px;
  transition: all 0.3s ease;
}

.hamburger span:nth-child(1) { top: 10px; }
.hamburger span:nth-child(2) { top: 19px; }
.hamburger span:nth-child(3) { top: 28px; }

.hamburger.active span:nth-child(1) {
  transform: translateY(9px) rotate(45deg);
}

.hamburger.active span:nth-child(2) {
  opacity: 0;
}

.hamburger.active span:nth-child(3) {
  transform: translateY(-9px) rotate(-45deg);
}

.side-header {
  position: fixed;
  left: 0;
  top: 0;
  width: 240px;
  height: 100vh;
  z-index: 1000;
  display: flex;
  flex-direction: column;
  transition: transform 0.3s ease, opacity 0.3s ease;
  opacity: 0; /* 初期状態を透明に設定 */
}

/* ロゴ */
.logo {
  padding: 2rem;
  width: 90px;
}

/* ナビゲーション */
.side-nav {
  flex: 1;
  display: flex;
  /*align-items: center;*/
}

.side-nav ul {
  width: 100%;
  position: relative;
}

.side-nav li {
  margin-bottom: 0.4rem;
}

.nav-link {
  display: flex;
  padding: 0.5rem 0rem 0.5rem 2rem;
  color: var(--black-color);
  transition: all 0.3s ease;
  font-size: 0.9rem;
  align-items: center;
  width: 83%;
  position: relative;
  cursor: pointer;
  z-index: 9001;
}

.nav-link span {
  display: inline-block;
}

.nav-link .en {
  font-family: "Times New Roman", "YuMincho", "Hiragino Mincho ProN", "Yu Mincho", "MS PMincho", serif;
  font-size: 1.2rem;
  width: 100px;
  margin-right: 1rem;
}

.nav-link .ja {
  font-size: 0.8rem;
  opacity: 0.7;
  width: 90px;
}

/* アクティブ状態 */
.nav-link:hover {
  transform: scale(1.05);
  color: #B19CD9;
}

.nav-link.active {
  transform: scale(1.1);
  color: #7030A0;
  transform-origin: left center;
  margin-left: -4px;
}

/* レスポンシブ対応 */
@media screen and (max-width: 1200px) {
  .side-header {
    background-color: #fff;
  }
  .hamburger {
    display: block;
  }

  .side-header {
    transform: translateX(-100%);
  }

  .side-header.active {
    transform: translateX(0);
  }
}

/* ===============================================
ホーム
=============================================== */

#home {
  justify-content: center;
}

.home-lilac-icon {
  width: 370px;
  position: relative;
  height: 180px; /* 高さを明示的に指定 */
  margin-bottom: 30px; /* 下のテキストとの間隔を確保 */
}

.home-lilac-icon img {
  width: 100%;
  position: absolute;
  top: 0;
  left: 10px;
}

.home-lilac-icon .logo-png {
  opacity: 0;
  transition: opacity 0.5s ease;
}

.home-lilac-icon .logo-png.show {
  opacity: 1;
}

.home-lilac-icon .logo-gif {
  opacity: 1;
  transition: opacity 0.5s ease;
}

.home-lilac-icon .logo-gif.hide {
  opacity: 0;
}

#home h1 {
  font-size: 2.4rem;
  letter-spacing: 0.1rem;
  margin-bottom: 6px;
  font-family: "Times New Roman", "YuMincho", "Hiragino Mincho ProN", "Yu Mincho", "MS PMincho", serif;
}

#home p {
  font-size: 1.7rem;
  font-family: "Times New Roman", "YuMincho", "Hiragino Mincho ProN", "Yu Mincho", "MS PMincho", serif;
}

@media screen and (max-width: 768px) {
  #home h1 {
    font-size: 1.2rem;
    letter-spacing: 0.05rem;
  }
  
  #home p {
      font-size: 1.5rem;
  }
}

@media screen and (max-width: 480px) {
  #home p {
      font-size: 0.84rem;
  }

  .home-lilac-icon {
    width: 240px;
    height: 110px; /* 幅に合わせて高さも調整 */
  }
}

/* ===============================================
BELIEF
=============================================== */

/* Beliefセクションのスタイル */
#belief .section-content {
  position: relative;
  max-width: 700px;
  margin: 0 auto;
}

.belief-message {
  background: rgba(255, 255, 255, 0.8);
  padding: 1rem 1rem 20px;
  position: relative;
  z-index: 1;
  text-align: left;
}

.belief-message p {
  line-height: 1.6;
  margin-bottom: 1.0rem;
  font-size: 0.9rem;
}

.belief-highlight {
  font-size: 1.2rem !important;
  font-weight: bold;
  padding: 1rem 0;
}

.belief-image {
  position: absolute;
  right: -70px;
  bottom: -130px;
  width: 300px;
  aspect-ratio: 4/3;
  z-index: 2;
  /* 文章より前面に */
}

/* レスポンシブ対応 */
@media screen and (max-width: 768px) {
  #belief .section-content {
    position: relative;
    max-width: 100%;
    margin: 0 auto;
  }

  .belief-message {
    padding: 1rem;
    margin: 0;
    position: relative;
    z-index: 2;
    background: rgba(255, 255, 255, 0.9);
  }

  .belief-message p {
    font-size: 0.9rem;
    line-height: 1.6;
  }

  .belief-highlight {
    font-size: 1.1rem !important;
    text-align: center;
    padding: 1rem 0;
  }

  .belief-image {
    position: static;
    width: 100%;
    max-width: 400px;
    margin: 2rem auto 0;
    aspect-ratio: 4/3;
    z-index: 1;
  }
}

@media screen and (max-width: 480px) {
  .belief-message p {
    font-size: 0.85rem;
  }

  .belief-highlight {
    font-size: 1rem !important;
  }

  .belief-image {
    width: 100%;
  }
}

/* PDFリンクのスタイル */
.pdf-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin: 0 auto;
  padding: 12px 24px;
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid #00B0F0;
  border-radius: 20px;
  transition: all 0.3s ease;
  width: fit-content;
  margin-top: 70px;
}

.pdf-link:hover {
  background: #00B0F0;
  color: white;
  transform: translateY(-2px);
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.pdf-link img {
  width: 24px;
  height: 24px;
}

/* ===============================================
SERVICE
=============================================== */
/* コンテナ設定 */
.service-container {
  display: flex;
  gap: 1rem;
  max-width: 1000px;
  margin: 0 0 0 220px;
  height: calc(100vh - 200px);
}

/* サービスボタン */
.service-buttons {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  align-items: flex-end;
  min-width: 240px;
  height: 100%;
  position: relative;
}

.service-btn {
  background: #00B0F0;
  border: 2px solid transparent;
  padding: 0.8rem;
  text-align: left;
  cursor: pointer;
  transition: all 0.3s ease;
  font-size: 0.9rem;
  border-radius: 20px;
  color: white;
  height: calc((100% - 6rem) / 7);
  display: flex;
  align-items: center;
  justify-content: center;
  transform-origin: right center;
  width: 80%;
  position: relative;
  font-family: serif;
}

.service-btn:hover {
  transform: scale(1.02);
  z-index: 1;
}

.service-btn.active {
  background: white;
  border: 2px solid #00B0F0;
  color: #00B0F0;
  width: 100%;
  z-index: 1;
}

/* サービスコンテンツエリア */
.service-content {
  flex: 1.5;
  background: rgba(255, 255, 255, 0.9);
  border-radius: 20px;
  position: relative;
  overflow: hidden;
}

.service-detail {
  display: none;
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  transition: opacity 0.3s ease;
  overflow-y: auto;
  padding-right: 10px;
}

.service-detail.active {
  display: block;
  opacity: 1;
}

/* タイトル部分 */
.detail-title {
  border-bottom: 1px solid #00B0F0;
  padding: 15px;
  position: sticky;
  top: 0;
  background: rgba(255, 255, 255, 0.95);
  z-index: 1;
}

.detail-title h3 {
  font-size: 20px;
  margin: 0;
  font-family: "Times New Roman", "YuMincho", "Hiragino Mincho ProN", "Yu Mincho", "MS PMincho", serif;
  color: #00B0F0;
}

.detail-title .price {
  font-size: 13px;
  margin-top: 5px;
  color: #666;
  margin-bottom: 0;
}

.detail-main {
  display: flex;
  gap: 30px;
  margin-bottom: 30px;
  align-items: center;
}

.detail-main .problem-list {
  flex: 1;
}

.detail-main .detail-image {
  flex: 1;
  max-width: 25%;
}

/* コンテンツ部分 */
.detail-content {
  padding: 15px;
}

.detail-text {
  margin-bottom: 15px;
}

.detail-text p,
.chat-text p{
  font-size: 13px;
  line-height: 1.6;
  text-align: left;
  margin-bottom: 0.8em;
  color: #333;
}

.detail-image {
  width: 200px;
}

.detail-image img {
  border-radius: 20px;
}

.check-item {
  display: flex;
  align-items: center;
  margin-bottom: 10px;
}

.check-item img {
  width: 16px;
  height: 16px;
  margin-right: 10px;
}

.check-item p {
  font-size: 13px;
  margin: 0;
  line-height: 1.4;
}

.image-caption,
.caption-text {
  font-size: 0.8rem;
}

/* 画像グリッド */
.image-grid {
  display: flex;
  flex-direction: column;
}

.image-row {
  display: flex;
  justify-content: space-between;
  gap: 15px;
}

.chat-box {
  width: 40% !important;
  text-align: left;
}

.chat-box-icon {
  width: 30px;
  margin-left: -15px;
  margin-bottom: 5px;
}

.wiring-image-row {
  justify-content: flex-end;
}

.wrap-item {
  width: 32%;
  max-width: 300px;
}

.wrap-item img {
  width: 100%;
  height: auto;
  border-radius: 20px;
  object-fit: cover;
}

.wiring-image-right {
  width: 30%;
}

.arrow-wrapper {
  flex-shrink: 0;
  width: 30px;
}

.survey-content-wrapper {
  display: flex;
  justify-content: center;
  align-items: flex-start;
  gap: 30px;
  margin-top: 20px;
  margin-bottom: 20px;
}

/* 通信設備調査セクション */
.network-diagram {
  width: 45%;
  flex-shrink: 0;
}

.network-diagram img {
  width: 100%;
  height: auto;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  border: 1px solid #ddd;
  border-radius: 20px;
}

.network-image-row {
  justify-content: center;
  flex-wrap: wrap;
}

.network-image-row > .wrap-item {
  width: 28%;
}

.note-box {
  width: 45%;
  position: relative;
  background: #f5f5f5;
  padding: 20px;
  border-radius: 20px;
  flex-shrink: 0;
}

.note-box::before {
  content: '';
  position: absolute;
  left: -20px;
  top: 20px;
  border: 10px solid transparent;
  border-right: 10px solid #f5f5f5;
}

.note-text {
  margin-left: 10px;
  display: flex;
  flex-direction: column;
  text-align: left;
}

.note-text img {
  width: 30px;
  margin-left: -15px;
  margin-bottom: 5px;
}

.note-text p {
  margin: 0 0 12px 0;
  font-size: 13px;
  line-height: 1.6;
}

.note-text .small {
  font-size: 12px;
  color: #666;
  margin-top: 8px;
  margin-bottom: 0;
}

/* clearfix */
.detail-content::after {
  content: "";
  display: block;
  clear: both;
}

/* 料金例のスタイリング */
.example-box {
  background: #f5f5f5;
  padding: 15px;
  border-radius: 20px;
}

.example-title {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-bottom: 15px;
}

.example-title img {
  width: 30px;
  height: 30px;
}

.example-title p {
  margin: 0;
  font-size: 13px;
  line-height: 1.6;
}

/* 料金表のスタイリング */
.price-table {
  margin-left: 25px;
}

.table-row {
  display: flex;
  margin-bottom: 12px;
  align-items: center;
}

.table-cell {
  display: flex;
  align-items: center;
  gap: 8px;
}

.table-cell:first-child {
  width: 180px;
}

.table-cell img {
  width: 22px;
  height: 22px;
}

.table-cell p {
  margin: 0;
  font-size: 13px;
}

.total .table-cell p span {
  color: #00B0F0;
  font-size: 16px;
  margin: 0 4px;
}

.note {
  margin-bottom: 0;
}

/* 工事資料作成セクション */
.document-section {
  margin: 25px 0;
}

.document-title {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 15px;
}

.document-title img {
  width: 14px;
  height: 14px;
}

.document-title p {
  font-size: 15px;
  margin: 0;
  font-weight: 500;
  color: #333;
}

.document-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 15px;
}

.document-item {
  width: calc(25% - 15px);
}

.document-item img {
  width: 100%;
  height: auto;
  border-radius: 20px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

/* 使用アプリリスト */
.app-list {
  text-align: left;
  background: #f5f5f5;
  padding: 10px;
  height: 90%;
  border-radius: 20px;
}

.app-list-title {
  font-size: 13px;
  margin: 0 0 8px 0;
  color: #333;
}

.app-list ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

.app-list li {
  font-size: 13px;
  line-height: 1.6;
  color: #333;
}

/* スクロールバー */
.service-detail::-webkit-scrollbar {
  width: 6px;
}

.service-detail::-webkit-scrollbar-track {
  background: #f1f1f1;
}

.service-detail::-webkit-scrollbar-thumb {
  background: #00B0F0;
  border-radius: 20px;
}

@media screen and (max-width: 1200px) {
  .service-container {
    margin: 0 auto;
  }
}

/* レスポンシブ設定 */
@media screen and (max-height: 800px) {
  .detail-text p,
  .check-item p,
  .note-text p,
  .example-title p,
  .table-cell p {
    font-size: 12px;
    line-height: 1.5;
  }
  
  .detail-title h3 {
    font-size: 18px;
  }
  
  .detail-image {
    width: 160px;
  }

  .detail-title h3 {
    font-size: 16px;
  }

  .detail-content {
    padding: 12px;
  }

  .detail-text p,
  .check-item p,
  .chat-text,
  .example-title p,
  .table-cell p {
    font-size: 12px;
  }

  .note-text p {
    font-size: 12px;
  }

  .total .table-cell p span {
    font-size: 15px;
  }

  .document-title p {
    font-size: 14px;
  }

  .app-list-title {
    font-size: 12px;
  }

  .app-list li {
    font-size: 12px;
  }
}

/* サービスセクションのレスポンシブ対応 詳細調整 */
@media screen and (max-width: 768px) {
  .service-container {
    flex-direction: column;
    height: auto;
    gap: 1rem;
    margin: 0;
  }

  .service-btn {
    transform: none !important; /* モバイル時は拡大効果を無効化 */
  }

  .service-btn.active {
    transform: none !important;
    font-weight: bold;
  }

  .service-detail {
    position: static;
    opacity: 0;
    visibility: hidden;
    height: 0;
    overflow: hidden;
    transition: all 0.3s ease;
  }

  .service-detail.active {
    position: static;
    opacity: 1;
    visibility: visible;
    height: auto;
    overflow: visible;
  }

  .service-buttons {
    min-width: auto;
    height: auto;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0.5rem;
  }

  .service-btn {
    height: 60px;
    padding: 0.8rem;
    font-size: 0.9rem;
    text-align: center;
    align-items: center;
    justify-content: center;
    width: 100%;
  }

  .service-content {
    min-height: 600px;
  }

  .detail-content {
    padding: 15px;
  }

  .detail-main {
    flex-direction: column;
    align-items: center;
  }

  .check-list {
    width: 100%;
    margin-bottom: 20px;
  }

  .detail-image {
    width: 180px;
    margin: 0;
  }

  .image-row {
    flex-direction: column;
    gap: 15px;
  }

  .wrap-item {
    width: 100%;
    max-width: 100%;
  }

  .chat-box {
    width: 100% !important;
    margin-bottom: 15px;
  }

  .survey-content-wrapper {
    flex-direction: column;
    gap: 20px;
  }

  .network-diagram,
  .note-box {
    width: auto;
    padding: 0px;
  }

  .example-box {
    padding: 15px;
  }

  .example-title {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
  }

  .price-table {
    margin-left: 0;
  }

  .table-row {
    flex-direction: column;
    align-items: flex-start;
    margin-bottom: 15px;
  }

  .table-cell:first-child {
    width: 100%;
    margin-bottom: 5px;
  }

  .network-image-row {
    flex-direction: column;
  }

  .network-image-row .wrap-item {
    width: 100%;
  }

  .document-grid {
    flex-direction: column;
    gap: 15px;
  }

  .document-item {
    width: 100%;
  }

  .arrow-wrapper {
    transform: rotate(90deg) scale(0.07);
  }

  .chat-box-icon {
    margin-left: 0;
  }

  .chat-text {
    padding-left: 20px;
  }
}

@media screen and (max-width: 480px) {
  .service-buttons {
    grid-template-columns: 1fr;
  }

  .service-btn {
    height: 50px;
    font-size: 0.85rem;
  }

  .detail-title h3 {
    font-size: 16px;
  }

  .detail-title .price {
    font-size: 12px;
  }

  .detail-content {
    padding: 12px;
  }

  .detail-text p,
  .check-item p,
  .chat-text,
  .example-title p,
  .table-cell p,
  .note {
    font-size: 12px;
    line-height: 1.5;
  }

  .detail-image {
    width: 160px;
  }

  .note-text p {
    font-size: 12px;
  }

  .note-text .small {
    font-size: 11px;
  }

  .example-box {
    padding: 12px;
  }

  .example-title img {
    width: 26px;
    height: 26px;
  }

  .price-table {
    margin-left: 0;
  }

  .table-cell img {
    width: 20px;
    height: 20px;
  }

  .total .table-cell p span {
    font-size: 15px;
  }

  .survey-content-wrapper {
    gap: 15px;
  }

  .network-diagram img {
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  }

  .note-box {
    padding: 15px;
  }

  .document-title {
    gap: 8px;
    margin-bottom: 12px;
  }

  .document-title img {
    width: 12px;
    height: 12px;
  }

  .document-title p {
    font-size: 14px;
  }

  .document-grid {
    gap: 12px;
  }

  .app-list {
    padding: 10px;
    height: auto;
  }

  .app-list-title {
    font-size: 12px;
    margin-bottom: 6px;
  }

  .app-list li {
    font-size: 12px;
    line-height: 1.5;
  }

  .wiring-image-row {
    margin-top: 15px;
  }

  .chat-box-icon {
    width: 30px;
    margin-bottom: 0;
  }

  .chat-text {
    padding-left: 15px;
  }

  .image-caption {
    font-size: 0.75rem;
    margin-top: 4px;
  }

  .pdf-link {
    padding: 8px 16px;
    font-size: 0.85rem;
    margin: 20px auto 0;
    display: block;
    width: fit-content;
  }

  .pdf-link img {
    width: 18px;
    height: 18px;
  }
}

/* ===============================================
STORY
=============================================== */
#story {
  min-height: 100vh;
  height: auto;
}

#story .section-content {
  position: relative;
  max-width: 750px;
  margin: 0 auto;
  height: auto;
  padding-bottom: 100px;
}

.story-wrapper {
  position: relative;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  margin: 0 0 150px 0;
}

.story-message {
  background: rgba(255, 255, 255, 0.8);
  padding: 1rem;
  position: relative;
  z-index: 1;
  margin: 0 auto;
  width: 100%;
  border-radius: 20px;
}

.story-message p {
  line-height: 1.6;
  margin-bottom: 1.0rem;
  font-size: 0.9rem;
  text-align: left;
}

.story-highlight {
  font-size: 1.2rem !important;
  font-weight: bold;
  text-align: center !important;
  padding: 1rem 1rem 5px 1rem ;
  color: #00B0F0;
  border-bottom: 2px solid #00B0F0;
  display: inline-block;
}

.story-image {
  position: absolute;
  width: 300px;
  aspect-ratio: 4/3;
  z-index: 2;
  border-radius: 20px;
}

.story-image1 {
  right: -170px;
  bottom: -130px;
}

.story-image2 {
  right: -170px;
  bottom: -140px;
}

.story-image3 {
  right: -170px;
  bottom: -140px;
}

/* レスポンシブ対応 */
/* STORYセクションのレスポンシブ対応 詳細調整 */
@media screen and (max-width: 768px) {
  #story {
    height: auto;
  }

  .story-wrapper {
    flex-direction: column;
    height: auto;
    min-height: 100vh;
    margin: 0 0 50px 0;
  }

  .story-message {
    margin: 0;
    width: auto;
    order: 1;
  }

  .story-image {
    position: static;
    width: 100%;
    max-width: 100%;
    margin: 20px 0;
    order: 2;
    aspect-ratio: 16/9;
    z-index: 1;
  }

  .story-highlight {
    font-size: 1.1rem !important;
    text-align: center;
  }

  .story-message p {
    font-size: 0.9rem;
  }
}

@media screen and (max-width: 480px) {
  .story-wrapper {
    margin: 0 0 30px 0;
  }

  .story-message p {
    font-size: 0.85rem;
  }

  .story-highlight {
    font-size: 1rem !important;
  }

  .story-image {
    margin: 15px 0;
  }
}

/* ===============================================
VOICE
=============================================== */
/* VOICEセクションのスタイル更新 */
.voice-slider {
  position: relative;
  max-width: 750px;
  margin: 0 auto;
  height: 500px; /* カードの高さに合わせて調整 */
  perspective: 750px;
}

.voice-cards {
  position: relative;
  width: 100%;
  height: 100%;
  transform-style: preserve-3d;
}

.voice-card {
  position: absolute;
  width: 300px;
  height: 420px;
  background: rgba(255, 255, 255, 0.95);
  padding: 30px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  opacity: 0;
  transition: all 0.7s ease;
  left: 50%;
  top: 40%; /* 上部に配置 */
  transform: translate(-50%, -50%) translateX(100%) scale(0.8);
  overflow-y: auto; /* 長いテキストのためのスクロール */
  border-radius: 20px;
}

.voice-card.prev {
  transform: translate(-50%, -50%) translateX(-60%) scale(0.8);
  opacity: 0.7;
  z-index: 1;
  top: 40%;
}

.voice-card.active {
  transform: translate(-50%, -50%) translateX(0) scale(1);
  opacity: 1;
  z-index: 2;
  top: 60%; /* 中央のカードを下に移動 */
}

.voice-card.next {
  transform: translate(-50%, -50%) translateX(60%) scale(0.8);
  opacity: 0.7;
  z-index: 1;
  top: 40%;
}

/* スクロールバーのスタイリング */
.voice-card::-webkit-scrollbar {
  width: 4px;
}

.voice-card::-webkit-scrollbar-track {
  background: #f1f1f1;
}

.voice-card::-webkit-scrollbar-thumb {
  background: #00B0F0;
  border-radius: 20px;
}

.voice-card1 {
  background-color: #7F7F7F;
}

.voice-card2 {
  background-color: #00B0F0;
}

.voice-card3 {
  background-color: #7030A0;
}

.voice-info {
  font-size: 18px;
  color: #fff;
  padding-bottom: 15px;
  margin-bottom: 20px;
  border-bottom: 1px solid #fff;
}

.voice-text {
  font-size: 14px;
  line-height: 1.8;
  color: #fff;
  text-align: left;
}

/* 矢印ナビゲーション */
.voice-arrows {
  position: absolute;
  bottom: -13%;
  left: 50px;
  right: 50px;
  display: flex;
  justify-content: space-between;
  transform: translateY(-50%);
  z-index: 3;
}

.arrow {
  width: 40px;
  height: 40px;
  background: rgba(255, 255, 255, 0.9);
  border-radius: 50%;
  position: relative;
  cursor: pointer;
  transition: all 0.3s ease;
}

.arrow::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 12px;
  height: 12px;
  border-top: 2px solid #00B0F0;
  border-right: 2px solid #00B0F0;
}

.arrow.prev::before {
  transform: translate(-25%, -50%) rotate(-135deg);
}

.arrow.next::before {
  transform: translate(-75%, -50%) rotate(45deg);
}

.arrow:hover {
  background: #00B0F0;
}

.arrow:hover::before {
  border-color: #fff;
}

@media screen and (max-width: 768px) {
  .voice-card {
    width: 280px;
    padding: 20px;
  }

  .voice-arrows {
    left: 10px;
    right: 10px;
    bottom: -25%;
  }

  .voice-info {
    font-size: 16px;
  }

  .voice-text {
    font-size: 13px;
  }
}

@media screen and (max-width: 390px) {
  #voice {
    height: 130vh;
  }
}

/* ===============================================
COMPANY
=============================================== */
/* 会社概要セクション */
.company-info {
  background: rgba(255, 255, 255, 0.9);
  padding: 40px 0;
  max-width: 750px;
  margin: 0 auto;
  border-radius: 20px;
}

.info-list {
  margin: 0 auto;
  padding: 0;
  text-align: left;
  width: fit-content;
}

.info-item {
  display: flex;
  margin-bottom: 30px;
  align-items: flex-start;
}

.info-item:last-child {
  margin-bottom: 0;
}

.info-label {
  width: 240px;
  padding-right: 20px;
  flex-shrink: 0;
  font-weight: bold;
}

.info-label span {
  display: block;
}

.info-label .ja {
  font-size: 16px;
  font-weight: normal;
  margin-bottom: 5px;
}

.info-label .en {
  font-size: 12px;
  color: #666;
}

.info-detail {
  margin: 0;
  font-size: 15px;
  line-height: 1.6;
}

/* レスポンシブ対応 */
/* 会社概要セクションのレスポンシブ対応 */
@media screen and (max-width: 768px) {
  .company-info {
    background: white;
    border: 1px solid #e0e0e0;
    padding: 24px;
    max-width: 100%;
    margin: 0 10px;
  }

  .info-list {
    width: 100%;
    padding: 0;
  }

  .info-item {
    display: flex;
    align-items: flex-start;
    margin-bottom: 20px;
    padding-bottom: 20px;
    border-bottom: 1px solid #e0e0e0;
  }

  .info-item:last-child {
    border-bottom: none;
  }

  .info-label {
    width: 150px;
    margin-right: 20px;
    flex-shrink: 0;
  }

  .info-label span {
    display: block;
  }

  .info-label .ja {
    font-size: 16px;
    font-weight: 500;
    color: #333;
    margin-bottom: 5px;
  }

  .info-label .en {
    font-size: 12px;
    color: #666;
  }

  .info-detail {
    flex-grow: 1;
    font-size: 14px;
    line-height: 1.6;
    color: #333;
  }
}

@media screen and (max-width: 480px) {
  .company-info {
    margin: 0 5px;
    padding: 20px 15px;
  }

  .info-item {
    flex-direction: column;
    padding-bottom: 15px;
  }

  .info-label {
    width: 100%;
    margin-right: 0;
    margin-bottom: 10px;
    display:block;
    justify-content: space-between;
    align-items: center;
  }

  .info-label .ja {
    font-size: 15px;
  }

  .info-label .en {
    font-size: 11px;
  }

  .info-detail {
    font-size: 13px;
  }
}

/* ===============================================
CONTACT
=============================================== */
/* お問い合わせセクション */
#contact {
  min-height: 100vh;
  height: auto;
}

.contact-container {
  max-width: 685px;
  margin: 0 auto;
  margin-bottom: 40px;
  background: rgba(255, 255, 255, 0.9);
  padding: 30px 35px;
  border-radius: 20px;
}

.contact-form {
  width: 100%;
}

.form-group {
  margin-bottom: 20px;
  text-align: left;
}

.form-group label {
  display: block;
  margin-bottom: 6px;
  font-size: 14px;
}

.form-group label.required::after {
  content: '*';
  color: #00B0F0;
  margin-left: 5px;
}

.form-group input,
.form-group textarea {
  width: 97%;
  padding: 8px;
  border: 1px solid #ddd;
  font-size: 13px;
  font-family: inherit;
}

.form-group textarea {
  resize: vertical;
}

.submit-btn {
  background: #00B0F0;
  color: white;
  border: none;
  padding: 12px 50px;
  font-size: 15px;
  cursor: pointer;
  transition: background 0.3s ease;
  margin-top: 15px;
}

.submit-btn:hover {
  background: #0090c0;
}

/* 電話番号リンク */
.contact-tel {
  margin-top: 30px;
  text-align: center;
  padding-top: 25px;
  border-top: 1px solid #ddd;
}

.tel-link {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  text-decoration: none;
  color: inherit;
  padding: 15px 35px;
  background: white;
  border: 2px solid #00B0F0;
  transition: all 0.3s ease;
  border-radius: 20px;
}

.tel-link:hover {
  background: #00B0F0;
}

.tel-number {
  font-size: 24px;
  font-weight: bold;
  color: #00B0F0;
  margin-bottom: 8px;
  transition: color 0.3s ease;
  font-family: "Times New Roman", "YuMincho", "Hiragino Mincho ProN", "Yu Mincho", "MS PMincho", serif;
}

.tel-hours {
  font-size: 13px;
  color: #666;
  transition: color 0.3s ease;
}

.tel-link:hover .tel-number,
.tel-link:hover .tel-hours {
  color: white;
}

/* レスポンシブ対応 */
@media screen and (max-width: 768px) {
  .contact-container {
    padding: 25px 20px;
  }

  .submit-btn {
    width: 100%;
    padding: 12px;
  }

  .tel-link {
    padding: 12px 20px;
  }

  .tel-number {
    font-size: 22px;
  }

  .tel-hours {
    font-size: 12px;
  }
}

@media screen and (max-width: 480px) {
  .contact-container {
    padding: 20px 15px;
  }

  .form-group {
    margin-bottom: 15px;
  }

  .form-group label {
    font-size: 13px;
  }

  .form-group input,
  .form-group textarea {
    font-size: 12px;
    width: 94%;
  }

  .submit-btn {
    font-size: 14px;
    padding: 10px;
  }

  .tel-number {
    font-size: 20px;
  }

  .tel-hours {
    font-size: 11px;
  }
}

/* ホームセクションのアニメーション用スタイル更新 */
.white-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: #FCFCFE;
  z-index: 1; /* z-indexを下げて背面に配置 */
  opacity: 1;
  transition: opacity 1s ease;
}

.white-overlay.fade-out {
  opacity: 0;
  pointer-events: none;
}

#home .home-lilac-icon,
#home .section-content {
  opacity: 0;
  transition: opacity 1s ease;
  position: relative;
  z-index: 2; /* ロゴとテキストを前面に配置 */
}

#home .home-lilac-icon.fade-in,
#home .section-content.fade-in {
  opacity: 1;
}

/* コンテンツコンテナに角丸を追加 */
.belief-message,
.story-message,
.service-content,
.voice-card,
.company-info,
.contact-container {
  border-radius: 20px;
}

/* サービスセクション内の各コンテナにも角丸を追加 */
.service-detail,
.example-box,
.note-box,
.app-list {
  border-radius: 20px;
}

/* 画像コンテナにも角丸を追加 */
.belief-image img,
.story-image img,
.document-item img,
.wrap-item img,
.network-diagram img {
  border-radius: 20px;
}

/* 電話番号リンクコンテナにも角丸を追加 */
.tel-link {
  border-radius: 20px;
}

/* メンテナンスセクションの追加画像 */
.maintenance-images {
  margin-top: 20px;
  justify-content: center;
  gap: 20px;
}

.maintenance-images .wrap-item {
  width: 45%;
  max-width: 400px;
  position: relative;
}

.maintenance-images .wrap-item::before {
  content: "";
  display: block;
  padding-top: 56.25%; /* 16:9の比率 */
}

.maintenance-images .wrap-item img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* レスポンシブ対応 */
@media screen and (max-width: 768px) {
  .maintenance-images {
    flex-direction: row;
    gap: 15px;
  }
  
  .maintenance-images .wrap-item {
    width: 48%;
  }
}

@media screen and (max-width: 480px) {
  .maintenance-images {
    flex-direction: column;
    gap: 15px;
  }
  
  .maintenance-images .wrap-item {
    width: 100%;
  }
}

/* 配線トラブルセクションのスタイル */
.wiring-problems {
  background: #f8f8f8;
  padding: 20px;
  border-radius: 10px;
  margin: 20px 0;
}

.problem-list,
.benefit-list {
  margin: 15px 0;
}

.problem-item,
.benefit-item {
  display: flex;
  align-items: flex-start;
}

.number {
  color: #00B0F0;
  font-weight: bold;
  margin-right: 10px;
  flex-shrink: 0;
}

.problem-item p,
.benefit-item p {
  margin: 0;
  font-size: 13px;
  line-height: 1.6;
}

.warning-message {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 15px;
  padding: 10px;
  background: rgba(255, 0, 0, 0.1);
  border-radius: 5px;
}

.warning-message img {
  width: 20px;
  height: 20px;
}

.warning-message p {
  margin: 0;
  font-size: 13px;
  color: #ff0000;
  text-align: left;
}

.benefits {
  margin: 20px 0;
}

.benefits h4 {
  font-size: 15px;
  margin: 0 0 10px 0;
  color: #00B0F0;
}

.section-label {
  font-size: 14px;
  color: #00B0F0;
  text-align: left;
}

/* 画像グリッドの調整 */
.image-row {
  margin-bottom: 20px;
}

/* レスポンシブ対応 */
@media screen and (max-width: 768px) {
  .wiring-problems {
    padding: 15px;
  }

  .problem-item p,
  .benefit-item p,
  .warning-message p {
    font-size: 12px;
  }

  .benefits h4 {
    font-size: 14px;
  }

  .section-label {
    font-size: 13px;
  }
}

/* 配線トラブルセクションのスタイル追加 */
.before-after-container {
  display: flex;
  align-items: center;
  gap: 20px;
  margin: 15px 60px 30px;
}

.before-after-item {
  flex: 1;
  position: relative;
  width: 100%;
}

.before-after-item img {
  width: 100%;
  height: auto;
  border-radius: 10px
}

.before-after-item .image-label {
  position: absolute;
  top: 10px;
  left: 10px;
  background: rgba(0, 176, 240, 0.8);
  color: white;
  padding: 4px 8px;
  border-radius: 4px;
  font-size: 12px;
}

.arrow-wrapper {
  flex-shrink: 0;
  width: 30px;
}

/* レスポンシブ対応 */
@media screen and (max-width: 768px) {
  .detail-main {
    flex-direction: column;
  }

  .detail-main .detail-image {
    max-width: 100%;
  }

  .before-after-container {
    flex-direction: column;
    gap: 10px;
  }

  .arrow-wrapper {
    transform: rotate(90deg);
  }
}

/* ネットワークセクションのスタイル */
.network-images {
  margin-top: 30px;
}

.network-images .image-row {
  display: flex;
  justify-content: center;
  gap: 20px;
  margin-bottom: 20px;
}

.network-images .wrap-item {
  width: 30%;
  position: relative;
}

.network-images .wrap-item::before {
  content: "";
  display: block;
  padding-top: 75%; /* 4:3の比率 */
}

.network-images .wrap-item img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 10px;
}

/* レスポンシブ対応 */
@media screen and (max-width: 768px) {
  .network-images .image-row {
    flex-wrap: wrap;
    gap: 15px;
  }

  .network-images .wrap-item {
    width: 45%;
  }
}

@media screen and (max-width: 480px) {
  .network-images .wrap-item {
    width: 100%;
  }
}

/* 声の画像とキャプションのスタイル修正 */
.voice-image {
  position: absolute;
  bottom: 20px;
  right: 20px;
  text-align: center;
}

.voice-image img {
  border-radius: 0;
  object-fit: cover;
  margin-bottom: 10px;
}

/* 男性と女性の画像サイズを個別に設定 */
.voice-card2 .voice-image {
  bottom: 10px; /* 男性の画像を少し上に */
}

.voice-card2 .voice-image img {
  width: 75px;
  height: auto;
}

.voice-card3 .voice-image img {
  width: 110px;
  height: auto;
}

.voice-caption {
  font-size: 12px;
  color: #fff;
  text-align: center;
}

/* レスポンシブ対応 */
@media screen and (max-width: 768px) {
  .voice-caption {
    font-size: 11px;
  }
}

/* 通信設備調査セクションのスタイル */
.survey-text {
  font-size: 15px;
  line-height: 1.8;
  margin-bottom: 20px;
  text-align: left;
}

.survey-text p {
  margin-bottom: 15px;
}

.survey-list {
  margin: 20px 0;
}

.survey-item {
  display: flex;
  align-items: flex-start;
  margin-bottom: 15px;
}

.survey-item .number {
  color: #00B0F0;
  font-weight: bold;
  font-size: 16px;
  margin-right: 12px;
  flex-shrink: 0;
}

.survey-item p {
  font-size: 15px;
  line-height: 1.6;
  margin: 0;
}

.note-box {
  background: #f8f8f8;
  padding: 20px;
  border-radius: 10px;
  margin: 25px 0;
}

.note-box p {
  font-size: 14px;
  line-height: 1.8;
  margin: 0;
}

.note-box .highlight {
  color: #00B0F0;
  font-weight: bold;
  font-size: 15px;
  margin-bottom: 10px;
}

/* レスポンシブ対応 */
@media screen and (max-width: 768px) {
  .survey-text {
    font-size: 14px;
  }

  .survey-item .number {
    font-size: 15px;
  }

  .survey-item p {
    font-size: 14px;
  }

  .note-box p {
    font-size: 13px;
  }

  .note-box .highlight {
    font-size: 14px;
  }
}

/* IPカメラセクションのスタイル */
.camera-text {
  font-size: 13px;
  line-height: 1.8;
  margin-bottom: 30px;
  padding: 0 20px;
}

.camera-text p {
  margin-bottom: 15px;
  text-align: left;
}

.camera-image {
  padding: 0 50px;
}

.camera-image img {
  border-radius: 10px;
}

/* レスポンシブ対応 */
@media screen and (max-width: 768px) {
  .camera-text {
    font-size: 14px;
    padding: 0;
  }

  .camera-image {
    padding: 0;
  }
}

/* 配線トラブルセクションのモバイル対応 */
@media screen and (max-width: 768px) {
  .detail-main {
    flex-direction: column;
    align-items: center;
    gap: 20px;
    margin-bottom: 20px;
  }

  .problem-list {
    width: 100%;
    margin-bottom: 0;
    text-align: left;
  }

  .problem-item {
    margin-bottom: 12px;
  }

  .problem-item p {
    font-size: 0.9rem;
    line-height: 1.5;
  }

  .warning-message {
    margin-top: 20px;
    padding: 12px;
    align-items: flex-start;
  }

  .warning-message img {
    width: 18px;
    height: 18px;
    margin-top: 3px;
  }

  .warning-message p {
    font-size: 0.9rem;
    line-height: 1.5;
  }

  .benefits {
    margin: 30px 0;
    text-align: left;
  }

  .benefits h4 {
    text-align: left;
    margin-bottom: 15px;
  }

  .benefit-item {
    margin-bottom: 12px;
  }

  .benefit-item p {
    font-size: 0.9rem;
    line-height: 1.5;
  }

  .before-after-container {
    margin: 15px 0 30px;
  }

  .section-label {
    margin-bottom: 10px;
  }
}

@media screen and (max-width: 480px) {
  .problem-item p,
  .warning-message p,
  .benefit-item p {
    font-size: 0.85rem;
  }

  .benefits h4 {
    font-size: 0.95rem;
  }

  .warning-message {
    padding: 10px;
  }

  .warning-message img {
    width: 16px;
    height: 16px;
  }

  .before-after-container {
    margin: 10px 0 25px;
  }

  .section-label {
    font-size: 0.85rem;
  }
}