@charset "UTF-8";

/* ===========================================
   Common Page Styles (Subpages)
   =========================================== */

/* --- Common Hero Section (Image Background) --- */
.page-hero {
  min-height: 80vh;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
  padding: 10rem 0 6rem;
}

/* デフォルトの背景画像とオーバーレイ */
.page-hero::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    rgba(10, 27, 56, 0.7),
    rgba(10, 27, 56, 0.7)
  );
  z-index: 1;
}

/* 背後の大きな文字 */
.page-hero::before {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-family: var(--f-en);
  font-size: 15vw;
  font-weight: 900;
  color: rgba(255, 255, 255, 0.05);
  line-height: 1;
  pointer-events: none;
  z-index: 2;
  white-space: nowrap;
}

.page-hero-content {
  position: relative;
  z-index: 3;
  text-align: center;
  color: #fff;
}

.page-hero-eyebrow {
  font-family: var(--f-en);
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  color: var(--c-cyan);
  display: block;
  margin-bottom: 1.5rem;
  text-transform: uppercase;
}

.page-hero-title {
  font-size: 4rem;
  font-weight: 900;
  line-height: 1.2;
  margin-bottom: 1.5rem;
  letter-spacing: 0.02em;
}

.page-hero-subtitle {
  font-size: 1.2rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  opacity: 0.9;
}

/* --- About用の背景文字 --- */
.page-hero.about-hero::before {
  content: "ABOUT";
}

/* --- Service用の背景文字 --- */
.page-hero.service-hero::before {
  content: "SERVICE";
}

/* --- Responsive --- */
@media (max-width: 768px) {
  .page-hero {
    padding: 8rem 0 4rem;
    min-height: 70vh;
  }

  .page-hero-title {
    font-size: 2.5rem;
  }

  .page-hero-subtitle {
    font-size: 1rem;
  }

  .page-hero::before {
    font-size: 20vw;
  }
}

/* ===========================================
   FAQ Section (Shared)
   =========================================== */

/* --- FAQ (Accordion) --- */
.faq-section {
  padding: 8rem 0;
  background: var(--c-bg);
}

.faq-container {
  max-width: 50rem;
  margin: 0 auto;
}

.faq-item {
  background: #fff;
  margin-bottom: 1rem;
  border-radius: 0.5rem;
  overflow: hidden;
  box-shadow: 0 0.3125rem 0.9375rem rgba(0, 0, 0, 0.03);
  transition: box-shadow 0.3s ease;
}

.faq-item:hover {
  box-shadow: 0 0.5rem 1.5rem rgba(0, 0, 0, 0.08);
}

.faq-summary {
  padding: 1.5rem 2rem;
  cursor: pointer;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  transition: background-color 0.3s ease;
}

.faq-summary:hover {
  background-color: rgba(0, 212, 255, 0.02);
}

.faq-summary::-webkit-details-marker {
  display: none;
}

.faq-q {
  font-weight: 700;
  font-size: 1rem;
  display: flex;
  gap: 1rem;
  align-items: center;
  transition: color 0.3s ease;
}

.faq-summary:hover .faq-q {
  color: var(--c-navy);
}

.faq-mark {
  color: var(--c-cyan);
  font-family: var(--f-en);
  font-weight: 900;
  font-size: 1.2rem;
}

.faq-icon {
  width: 1.25rem;
  height: 1.25rem;
  position: relative;
  transition: transform 0.7s cubic-bezier(0.4, 0, 0.2, 1);
}

.faq-item:hover .faq-icon {
  transform: scale(1.1);
}

.faq-icon::before,
.faq-icon::after {
  content: "";
  position: absolute;
  background-color: var(--c-navy);
  border-radius: 0.125rem;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.faq-icon::before {
  width: 100%;
  height: 0.125rem;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
}

.faq-icon::after {
  width: 0.125rem;
  height: 100%;
  left: 50%;
  transform: translateX(-50%);
  top: 0%;
}

details[open] .faq-icon::after {
  transform: rotate(90deg);
  /* opacity: 0; */
}

details[open] .faq-icon {
  transform: rotate(180deg);
}

.faq-body {
  overflow: hidden;
  /* 初期状態 */
  max-height: 0;
  opacity: 0;
  transform: translateY(-20px);
  /* transitionのタイミングを統一 */
  transition: 
    max-height 0.6s cubic-bezier(0.4, 0, 0.2, 1),
    opacity 0.5s cubic-bezier(0.4, 0, 0.2, 1),
    transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

details[open] .faq-body {
  max-height: 500px;
  opacity: 1;
  transform: translateY(0);
}

.faq-body > div {
  padding: 0 2rem 0 3.5rem;
  border-top: 0.0625rem solid #f0f0f0;
  padding-top: 0;
  padding-bottom: 0;
  transition: padding 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

details[open] .faq-body > div {
  padding-top: 1.5rem;
  padding-bottom: 2rem;
}

/* --- Responsive --- */
@media (max-width: 768px) {
  .faq-section {
    padding: 4rem 0;
  }

  .faq-summary {
    padding: 1.2rem 1.5rem;
  }

  .faq-q {
    font-size: 0.95rem;
  }

  .faq-body > div {
    padding: 0 1.5rem 0 2.5rem;
  }

  details[open] .faq-body > div {
    padding-top: 1.2rem;
    padding-bottom: 1.5rem;
  }
}
