/* ===================================================
   common.css — 全ページ共通スタイル
   各ページの CSS より前に読み込む
   =================================================== */

/* ===================================================
   SECTION FOOTER CTA BUTTONS
   .mnt-cta__btn / .hr-cta__btn / .ab-cta__btn 共通
   =================================================== */

/* Base */
.mnt-cta__btn,
.hr-cta__btn,
.ab-cta__btn,
.cs-cta__btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 16px 36px;
  font-family: "Noto Sans JP", sans-serif;
  font-size: 0.9375rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  border-radius: 2px;
  text-decoration: none;
  transition: background-position 0.55s cubic-bezier(0.22, 1, 0.36, 1);
  cursor: pointer;
  border: none;
  color: #fff;
}

/* Primary: navy → gold グラデーションスライド */
.mnt-cta__btn,
.hr-cta__btn--primary,
.ab-cta__btn--primary,
.cs-cta__btn--primary {
  background-image: linear-gradient(to right, var(--rc-navy) 50%, var(--rc-gold) 50%);
  background-size: 200% 100%;
  background-position: right center;
  background-repeat: no-repeat;
}
.mnt-cta__btn:hover,
.hr-cta__btn--primary:hover,
.ab-cta__btn--primary:hover,
.cs-cta__btn--primary:hover {
  background-position: left center;
}

/* Outline */
.hr-cta__btn--outline,
.ab-cta__btn--outline,
.cs-cta__btn--outline {
  background: transparent;
  border: 1.5px solid rgba(255, 255, 255, 0.45);
}
.hr-cta__btn--outline:hover,
.ab-cta__btn--outline:hover,
.cs-cta__btn--outline:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.7);
}

/* SVG 矢印アニメーション */
.mnt-cta__btn svg,
.hr-cta__btn svg,
.ab-cta__btn svg,
.cs-cta__btn svg {
  transition: transform 0.4s cubic-bezier(0.22, 1, 0.36, 1);
  flex-shrink: 0;
}
.mnt-cta__btn:hover svg,
.hr-cta__btn:hover svg,
.ab-cta__btn:hover svg,
.cs-cta__btn:hover svg {
  transform: translateX(6px);
}

/* ===================================================
   SUBPAGE SHARED ELEMENTS
   about / service-maintenance / service-hr / cases / case-detail で共通使用
   =================================================== */

/* 背景の大きな薄い英字飾り */
.sub-bg-text {
  position: absolute;
  top: 40px;
  left: -20px;
  font-family: "Shippori Mincho", serif;
  font-size: clamp(5rem, 12vw, 11rem);
  font-weight: 600;
  color: rgba(19, 45, 127, 0.06);
  letter-spacing: 0.05em;
  line-height: 1;
  pointer-events: none;
  user-select: none;
  z-index: 0;
  white-space: nowrap;
}
.sub-bg-text--light {
  color: rgba(255, 255, 255, 0.08);
}

/* 共通セクション見出し */
.sub-section-heading {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 40px;
  position: relative;
  z-index: 1;
}
.sub-section-heading__label {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-family: "Shippori Mincho", serif;
  font-size: 0.8125rem;
  letter-spacing: 0.25em;
  color: var(--rc-gold);
  margin: 0;
  font-weight: 500;
}
.sub-section-heading__dash {
  display: inline-block;
  width: 28px;
  height: 1px;
  background: var(--rc-gold);
}
.sub-section-heading__ja {
  font-family: "Shippori Mincho", serif;
  font-size: clamp(1.625rem, 3.5vw, 2.25rem);
  font-weight: 600;
  color: var(--rc-navy);
  margin: 0;
  letter-spacing: 0.05em;
  line-height: 1.5;
}

/* セクション見出し — 反転（暗背景上の白文字） */
.sub-section-heading--light .sub-section-heading__label,
.sub-section-heading--light .sub-section-heading__ja {
  color: #fff;
}
.sub-section-heading--light .sub-section-heading__dash {
  background: rgba(255, 255, 255, 0.5);
}

/* ===================================================
   SUBPAGE FAQ ACCORDION
   service-maintenance / service-hr で共通使用
   =================================================== */
.sub-faq {
  position: relative;
  padding: 100px 0;
  background: #fff;
  overflow: hidden;
}
.sub-faq .sub-bg-text {
  top: 40px;
  left: 20px;
}
.sub-faq [class*="-mark"] {
  font-family: "Shippori Mincho", serif !important;
}
.sub-faq__container {
  max-width: 900px;
  margin: 0 auto;
  padding: 0 40px;
  position: relative;
  z-index: 1;
}
.sub-faq__heading {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  margin-bottom: 56px;
  text-align: center;
}
.sub-faq__heading .sub-section-heading__label {
  justify-content: center;
}
.sub-faq__title {
  font-family: "Shippori Mincho", serif;
  font-size: clamp(1.625rem, 3.5vw, 2.25rem);
  color: var(--rc-navy);
  margin: 0;
  letter-spacing: 0.05em;
  font-weight: 600;
}
.sub-faq__list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.sub-faq__item {
  border: 1px solid #e1e5ed;
  background: #fff;
  overflow: hidden;
}
.sub-faq__q {
  display: grid;
  grid-template-columns: 48px 1fr 40px;
  align-items: center;
  width: 100%;
  padding: 20px 24px;
  background: #fff;
  border: none;
  cursor: pointer;
  text-align: left;
  gap: 16px;
  transition: background 0.2s;
}
.sub-faq__q:hover { background: #f7f8fb; }
.sub-faq__q-mark {
  font-family: "Shippori Mincho", serif;
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--rc-gold);
}
.sub-faq__q-text {
  font-family: "Noto Sans JP", sans-serif;
  font-size: 0.9375rem;
  font-weight: 500;
  color: var(--rc-navy);
  line-height: 1.6;
}
.sub-faq__toggle {
  position: relative;
  width: 20px;
  height: 20px;
  justify-self: end;
}
.sub-faq__toggle::before,
.sub-faq__toggle::after {
  content: "";
  position: absolute;
  background: var(--rc-navy);
  transition: transform 0.3s;
}
.sub-faq__toggle::before {
  top: 50%; left: 0;
  width: 100%; height: 2px;
  transform: translateY(-50%);
}
.sub-faq__toggle::after {
  top: 0; left: 50%;
  width: 2px; height: 100%;
  transform: translateX(-50%);
}
.sub-faq__q[aria-expanded="true"] .sub-faq__toggle::after {
  transform: translateX(-50%) rotate(90deg);
  opacity: 0;
}
.sub-faq__a {
  display: grid;
  grid-template-columns: 48px 1fr;
  gap: 16px;
  padding: 0 24px;
  max-height: 0;
  overflow: hidden;
  background: #f7f8fb;
  transition: max-height 0.35s ease, padding 0.35s ease;
}
.sub-faq__q[aria-expanded="true"] + .sub-faq__a {
  max-height: 400px;
  padding: 20px 24px;
}
.sub-faq__a-mark {
  font-family: "Shippori Mincho", serif;
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--rc-navy);
}
.sub-faq__a-text {
  font-family: "Noto Sans JP", sans-serif;
  font-size: 0.9375rem;
  line-height: 1.9;
  color: var(--coolgray-90);
  margin: 0;
}
