@charset "UTF-8";

/* =========================================
   Base
========================================= */
body {
  margin: 0;
  padding: 0;
  overflow-x: hidden;
  font-family: "Helvetica Neue", Arial, "Hiragino Kaku Gothic ProN", "Hiragino Sans", Meiryo, sans-serif;
  color: #1c1d1f;
  background-color: #e1e7eb;
  background-image: 
    linear-gradient(to right, rgba(42, 44, 43, 0.03) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(42, 44, 43, 0.03) 1px, transparent 1px);
  background-size: 16px 16px;
  -webkit-font-smoothing: antialiased;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* =========================================
   Hero Header
========================================= */
.hero {
  position: relative;
  padding: 150px 20px 60px;
  text-align: center;
  overflow: hidden;
}
.hero-bg-text {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-size: 18vw;
  font-weight: 900;
  color: transparent;
  -webkit-text-stroke: 1px rgba(255, 255, 255, 0.75);
  white-space: nowrap;
  z-index: -1;
  letter-spacing: 0.02em;
  pointer-events: none;
}
.hero h1 {
  font-size: 2.2rem;
  font-weight: 800;
  margin: 0 0 2px;
  letter-spacing: 0.08em;
  line-height: 1.3;
}

/* スタンプアニメーション用設定 */
.hero h1 span.hero-en {
  display: block;
  font-size: 0.9rem;
  color: #406882;
  margin-bottom: 8px;
  letter-spacing: 0.15em;
}
.hero h1 span.hero-ja {
  display: block;
}

/* 順番にスタンプのように現れる演出 */
/* display: inline-block を削除しPC表示での横並びレイアウト崩れを修正 */
.hero-en,
.hero-ja,
.hero-icon,
.hero-image,
.hero-desc {
  opacity: 0;
  transform: scale(1.5);
  animation: stamp-animation 0.4s cubic-bezier(0.25, 1, 0.5, 1) forwards;
}

.hero-en { animation-delay: 0.1s; }
.hero-ja { animation-delay: 0.4s; }
.hero-icon { animation-delay: 0.7s; }
.hero-image { animation-delay: 1.0s; }
.hero-desc { animation-delay: 1.3s; }

@keyframes stamp-animation {
  0% { opacity: 0; transform: scale(2); }
  60% { opacity: 1; transform: scale(0.9); }
  80% { opacity: 1; transform: scale(1.05); }
  100% { opacity: 1; transform: scale(1); }
}

/* 差し替えたヒーローアイコン */
.hero-icon {
  width: 154px;
  height: 110px;
  margin: 0px auto 10px;
  background: url(../images/faqPage-heroImage.svg) no-repeat center/contain;
}

/* 追加したヒーロー画像 */
.hero-image {
  display: block;
  margin: 0 auto 20px;
  width: 80%;
  max-width: 400px;
  border-radius: 80px;
  box-shadow: 0 5px 0px rgba(0, 0, 0, 0.3);
}

/* スタンプ演出に乗せたため、スライドアップアニメーションは削除して基本スタイルのみに */
.hero-desc {
  font-size: 0.95rem;
  color: #5C605E;
  margin: 0 auto;
  line-height: 1.5;
  font-weight: 500;
}

/* =========================================
   FAQ Navigation (カテゴリ内リンク)
========================================= */
.faq-nav-container {
  background-color: #494e52;
  margin: 0 calc(50% - 50vw) 60px;
  padding: 40px 16px 24px;
  position: relative;
}

.faq-nav-container::before {
  content: "INDEX";
  position: absolute;
  top: 12px;
  left: 0;
  width: 100%;
  text-align: center;
  color: #fff;
  font-size: 1rem;
  font-weight: 800;
  letter-spacing: 0.1em;
}

@media (min-width: 768px) {
  .faq-nav-container {
    background-color: transparent;
    max-width: 800px;
    margin: 0 auto 60px;
    padding: 0 16px;
  }
  .faq-nav-container::before {
    content: none;
  }
}

.faq-nav {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}
@media (min-width: 768px) {
  .faq-nav {
    grid-template-columns: 1fr 1fr 1fr;
    gap: 16px;
  }
}
.faq-nav a {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: #fff;
  border: 2px solid #2A2C2B;
  box-shadow: 4px 4px 0px #2A2C2B;
  padding: 10px 5px 20px; /* 矢印アイコンの分、下部paddingを少し広げています */
  text-decoration: none;
  color: #2A2C2B;
  font-weight: 700;
  font-size: 0.9rem;
  text-align: center;
  transition: transform 0.1s ease, box-shadow 0.1s ease, background-color 0.2s;
  -webkit-tap-highlight-color: transparent;
  position: relative;
}
.faq-nav a span {
  font-size: 0.75rem;
  color: #bbb;
  margin-bottom: 2px;
  letter-spacing: 0.05em;
  font-weight:900;
}

/* 下矢印アイコン */
.faq-nav a::after {
  content: "";
  position: absolute;
  bottom: 8px;
  left: 50%;
  transform: translateX(-50%);
  width: 12px;
  height: 6px;
  background: url(../images/faqPage-icon-arrowDown.svg) no-repeat center/contain;
}

.faq-nav a:active {
  transform: translate(4px, 4px) !important;
  box-shadow: 0px 0px 0px #2A2C2B !important;
}
@media (hover: hover) and (pointer: fine) {
  .faq-nav a:hover {
    background-color: #F8FBFE;
    transform: translate(-2px, -2px);
    box-shadow: 6px 6px 0px #2A2C2B;
  }
}

/* =========================================
   FAQ Container & Categories
========================================= */
.docs-container {
  max-width: 800px;
  margin: 0 auto;
  padding: 0 16px 80px;
}
.category-wrap {
  margin-bottom: 80px;
}
.category-title {
  display: flex; /* Flexboxで回り込みを防止 */
  align-items: flex-start;
  justify-content: flex-start; /* スマホ時は左揃え */
  gap: 8px; /* ナンバリングとテキストの隙間 */
  background-color: #81b6db;
  color: #2A2C2B;
  border: 2px solid #2A2C2B;
  filter: drop-shadow(4px 4px 0px #2A2C2B);
  font-size: 1.15rem;
  font-weight: 800;
  padding: 16px 20px;
  margin: 0 auto 20px;
  max-width: 460px;
  position: relative;
}
.category-title::after {
  content: '';
  position: absolute;
  bottom: -10px;
  left: 50%;
  transform: translateX(-50%) rotate(45deg);
  width: 16px;
  height: 16px;
  background-color: #81b6db;
  border-right: 2px solid #2A2C2B;
  border-bottom: 2px solid #2A2C2B;
}
@media (min-width: 768px) {
  .category-title {
    justify-content: center; /* PC時は中央揃え */
  }
}
.category-title span {
  color: #ffffff; /* ナンバリング文字を白に */
  flex-shrink: 0; /* 縮小や回り込みを防ぐ */
}

/* =========================================
   Accordion
========================================= */
.accordion-item {
  margin-bottom: 20px;
}
.accordion-button {
  width: 100%;
  background: #fff;
  border: 2px solid #2A2C2B;
  box-shadow: 4px 4px 0px #2A2C2B;
  /* 右側のpaddingを 20px -> 12px に減らし、開閉アイコンを右に寄せる */
  padding: 18px 12px 18px 14px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  font-size: 1.05rem;
  font-weight: 700;
  color: #2A2C2B;
  cursor: pointer;
  text-align: left;
  transition: transform 0.1s ease, box-shadow 0.1s ease, background-color 0.2s;
  -webkit-tap-highlight-color: transparent; 
}
@media (hover: hover) and (pointer: fine) {
  .accordion-button:hover {
    background: #ffffff;
    transform: translate(-2px, -2px);
    box-shadow: 6px 6px 0px #2A2C2B;
  }
}
.accordion-button:active {
  transform: translate(4px, 4px) !important;
  box-shadow: 0px 0px 0px #2A2C2B !important;
}

/* Qアイコンとテキストのレイアウト (flex化で回り込み防止) */
.q-text {
  flex: 1;
  display: flex;
  align-items: flex-start;
  gap: 8px;
  line-height: 1.5;
}
.q-mark {
  display: inline-block;
  width: 24px;
  height: 20px;
  flex-shrink: 0;
  margin-top: 4px; /* テキストとの縦位置微調整 */
  background: url(../images/faqPage-icon-Q.svg) no-repeat center/contain;
}

/* 右側の開閉アイコン */
.accordion-icon {
  width: 28px;
  height: 28px;
  border: 2px solid #2f3133;
  border-radius: 50%;
  position: relative;
  background-color: #2f3133;
  flex-shrink: 0;
  transition: transform 0.2s cubic-bezier(0.2, 0.8, 0.2, 1), background-color 0.2s;
}
.accordion-icon::before,
.accordion-icon::after {
  content: '';
  position: absolute;
  background-color: #81b6db;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  transition: background-color 0.2s;
}
.accordion-icon::before { width: 12px; height: 2px; }
.accordion-icon::after { width: 2px; height: 12px; }

/* 展開時 */
.accordion-item.is-open .accordion-button {
  background-color: #2A2C2B;
  color: #F6F5F2;
}
.accordion-item.is-open .accordion-icon {
  transform: rotate(135deg);
  background-color: #6C7A70;
  border-color: #6C7A70;
}
.accordion-item.is-open .accordion-icon::before,
.accordion-item.is-open .accordion-icon::after {
  background-color: #F6F5F2;
}

/* コンテンツエリア (回答) */
.accordion-content {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows 0.25s cubic-bezier(0.2, 0.8, 0.2, 1);
}
.accordion-item.is-open .accordion-content {
  grid-template-rows: 1fr;
}
.accordion-inner {
  overflow: hidden;
}
.answer-wrapper {
  padding-top: 16px;
}
.answer-box {
  background: #fff;
  border: 2px solid #2A2C2B;
  padding: 24px 20px;
  padding-left:14px;
  display: flex;
  align-items: flex-start;
  gap: 12px;
}
/* Aアイコン (flex化で回り込み防止) */
.a-mark {
  display: inline-block;
  width: 24px;
  height: 20px;
  flex-shrink: 0;
  margin-top: 4px; /* テキストとの縦位置微調整 */
  background: url(../images/faqPage-icon-A.svg) no-repeat center/contain;
}
.answer-content {
  flex: 1;
}
.answer-content p {
  margin: 0;
  font-size: 0.95rem;
  line-height: 1.7;
  color: #2a2b2c;
  text-align: justify;
}
.answer-content p strong {
  background-image: linear-gradient(transparent 60%, #cee3f0 60%);
  background-repeat: no-repeat;
  background-size: 0% 100%;
  background-position: left top;
  font-weight: 800;
  color: #161717;
}

/* アコーディオンが開いたときのアニメーション (ディレイを0.7秒に延長) */
.accordion-item.is-open .answer-content p strong {
  animation: draw-underline 0.6s cubic-bezier(0.25, 1, 0.5, 1) 0.7s forwards;
}

@keyframes draw-underline {
  0% { background-size: 0% 100%; }
  100% { background-size: 100% 100%; }
}

/* =========================================
   Animations
========================================= */
.slide-up {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s cubic-bezier(0.2, 0.8, 0.2, 1), transform 0.6s cubic-bezier(0.2, 0.8, 0.2, 1);
}
.slide-up.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* =========================================
   Answer Image
========================================= */
.answer-image {
  margin: 20px 0 0 0;
  padding: 0;
  border-radius: 15px;
  overflow: hidden;
  border: none;
}
.answer-image img {
  width: 100%;
  height: auto;
  display: block;
}