/* ===================================
   Pages - Index (Top)
   =================================== */

body {
  overflow-x: hidden;
}

body>section {
  width: 100%;
  overflow-x: hidden;
}

/* ヒーローセクション */
.hero {
  position: relative;
  height: 100vh;
  min-height: 600px;
  display: flex;
  align-items: center;
  justify-content: flex-start;
}

@media screen and (max-width: 768px) {
  .hero {
    position: relative;
    height: 60vh;
  }
}

.hero-slideshow {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
}

.hero-slide {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
  opacity: 0;
  transition: opacity 1.5s ease-in-out;
}

.hero-slide.active {
  opacity: 1;
}

.hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, rgba(0, 0, 0, 0.5) 0%, rgba(0, 0, 0, 0.2) 60%, rgba(0, 0, 0, 0.1) 100%);
  z-index: 1;
}

.hero-content {
  position: relative;
  text-align: left;
  color: var(--bg-white);
  padding: 0 60px;
  z-index: 2;
  max-width: 900px;
}

.hero-title {
  font-size: 0.65rem;
  font-weight: 500;
  letter-spacing: 0.3em;
  margin-bottom: 30px;
  font-family: 'Cormorant Garamond', serif;
  color: #ffffff;
  background: var(--primary-color);
  display: inline-block;
  padding: 10px 25px;
  border-radius: 4px;
  box-shadow: 0 4px 15px rgba(0, 138, 228, 0.3);
}

.hero-main-copy .copy-text {
  font-size: 3.2rem;
  font-weight: 600;
  line-height: 1.6;
  letter-spacing: 0.08em;
  text-shadow: 0 2px 20px rgba(0, 0, 0, 0.5);
  color: #ffffff;
}

.hero-main-copy .copy-line {
  display: block;
}

.hero-slide-indicators {
  position: absolute;
  bottom: 40px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 12px;
  z-index: 2;
}

.slide-indicator {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background-color: rgba(255, 255, 255, 0.4);
  cursor: pointer;
  transition: all 0.3s ease;
  border: 2px solid transparent;
}

.slide-indicator:hover {
  background-color: rgba(255, 255, 255, 0.6);
  transform: scale(1.2);
}

.slide-indicator.active {
  background-color: var(--primary-color);
  border-color: rgba(255, 255, 255, 0.8);
  box-shadow: 0 0 10px rgba(0, 138, 228, 0.6);
}

.hero-scroll-indicator {
  position: absolute;
  bottom: 40px;
  right: 60px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  color: rgba(255, 255, 255, 0.8);
  font-size: 0.75rem;
  letter-spacing: 0.2em;
  font-family: 'Cormorant Garamond', serif;
  z-index: 2;
  animation: scrollBounce 2s ease-in-out infinite;
  cursor: pointer;
  transition: var(--transition);
}

.hero-scroll-indicator:hover {
  color: var(--primary-color);
}

.hero-scroll-indicator svg {
  animation: arrowBounce 2s ease-in-out infinite;
}

@keyframes scrollBounce {

  0%,
  100% {
    transform: translateY(0);
  }

  50% {
    transform: translateY(-10px);
  }
}

@keyframes arrowBounce {

  0%,
  100% {
    transform: translateY(0);
  }

  50% {
    transform: translateY(5px);
  }
}

/* コンセプトセクション */
.concept-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: stretch;
}

.concept-image {
  border-radius: 8px;
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  display: flex;
}

.concept-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.concept-text h3 {
  font-size: 1.5rem;
  color: var(--primary-dark);
  margin-bottom: 20px;
}

.concept-text p {
  color: var(--text-light);
  margin-bottom: 20px;
  line-height: 2;
}

.concept-point {
  display: flex;
  align-items: flex-start;
  margin-bottom: 20px;
}

.concept-point-icon {
  width: 50px;
  height: 50px;
  background: var(--accent-gradient);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-right: 15px;
  flex-shrink: 0;
  box-shadow: var(--shadow-blue);
}

.concept-point-icon svg {
  width: 24px;
  height: 24px;
  fill: var(--bg-white);
}

.concept-point-content h4 {
  font-size: 1.1rem;
  color: var(--primary-dark);
  margin-bottom: 5px;
}

.concept-point-content p {
  font-size: 0.9rem;
  margin-bottom: 0;
}

/* サービスセクション */
.services-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 30px;
}

.service-card {
  background-color: var(--bg-white);
  border-radius: 8px;
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: var(--transition);
  display: flex;
  flex-direction: column;
  position: relative;
  width: calc(33.333% - 20px);
  min-width: 300px;
}

.service-card-link::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
}

.service-card:hover {
  transform: translateY(-10px);
  box-shadow: var(--shadow-lg);
}

.service-card-image {
  height: 200px;
  overflow: hidden;
  position: relative;
}

.service-card-image::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 50%;
  background: linear-gradient(to top, rgba(0, 138, 228, 0.3), transparent);
}

.service-card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: var(--transition);
}

.service-card:hover .service-card-image img {
  transform: scale(1.1);
}

.service-card-content {
  padding: 25px;
}

.service-card-title {
  font-size: 1.2rem;
  color: var(--primary-dark);
  margin-bottom: 10px;
}

.service-card-desc {
  font-size: 0.9rem;
  color: var(--text-light);
  line-height: 1.8;
}

.service-card-link {
  display: inline-flex;
  align-items: center;
  margin-top: 15px;
  font-size: 0.9rem;
  color: var(--primary-color);
  font-weight: 500;
  background: var(--accent-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  white-space: nowrap;
}

.service-card-link svg {
  width: 16px;
  height: 16px;
  margin-left: 5px;
  transition: var(--transition);
  fill: var(--primary-color);
}

.service-card:hover .service-card-link svg {
  transform: translateX(5px);
}

/* 事務所情報セクション */
.office-info {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: stretch;
}

.office-image {
  border-radius: 12px;
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  display: flex;
}

.office-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

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

.office-table tr {
  border-bottom: 1px solid var(--border-color);
}

.office-table th,
.office-table td {
  padding: 15px;
  text-align: left;
  vertical-align: top;
}

.office-table th {
  width: 30%;
  font-weight: 600;
  color: var(--primary-dark);
  background: linear-gradient(90deg, var(--bg-light) 0%, rgba(0, 138, 228, 0.05) 100%);
}

/* アクセスセクション（トップ用簡易表示） */
.access-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: flex-start;
}

.access-map {
  border-radius: 12px;
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}

.access-map iframe {
  width: 100%;
  height: 400px;
  border: none;
  display: block;
}

.access-info h3 {
  font-size: 1.3rem;
  color: var(--primary-dark);
  margin-bottom: 20px;
}

.access-address {
  margin-bottom: 30px;
}

.access-directions {
  background: linear-gradient(135deg, var(--bg-light) 0%, rgba(0, 138, 228, 0.05) 100%);
  padding: 20px;
  border-radius: 12px;
}

.access-directions li {
  margin-bottom: 10px;
  color: var(--text-light);
}

/* レスポンシブ: トップページ個別 */
@media (max-width: 768px) {
  .hero-content {
    padding: 0 20px;
  }

  .hero-main-copy .copy-text {
    font-size: 1.6rem;
  }

  .hero-title {
    font-size: clamp(0.7rem, 3.5vw, 0.85rem);
    letter-spacing: 0.15em;
    padding: 8px 15px;
    white-space: nowrap;
    margin-bottom: 20px;
  }

  .concept-content,
  .office-info,
  .access-content {
    grid-template-columns: 1fr;
    gap: 30px;
  }

  .hero-slide {
    background-attachment: scroll !important;
  }

  .service-card {
    width: 100%;
    min-width: 0;
  }
}