/* ======================================================================
   20_components_blocks.css
   - Section titles + all content blocks (quarity/staff/guide/qa/news/footer etc.)
======================================================================== */

/* =========================
   Section Title
========================= */
main .h2-title {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  font-size: 2rem;
  margin-bottom: 2rem;
}

.h2-icon img {
  width: 118px;
}

.h2-text {
  display: flex;
  flex-direction: column;
  align-items: center;
  font-size: 2.111rem; /* 約38px */
}

.h2-sub {
  font-size: 0.875rem;
  letter-spacing: 0.08em;
}

/* =========================
   支援の特色（quarity）
========================= */
.quarity .area-inner {
  display: grid;
  gap: 24px;
}

.quarity-feature,
.quarity-consult {
  border: 2px solid #665d51;
  border-radius: 20px;
  padding: 60px;
}

/* 上段（特徴） */
.quarity-lead {
  text-align: center;
  margin: 0 0 16px;
}

.quarity h3 {
  font-size: 1.6667rem;
  margin-bottom: 36px;
}

.quarity-feature__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  text-align: center;
}

.quarity-feature__item {
  border: none !important;
  box-shadow: none !important;
  background: transparent;
}

.quarity-feature__icon {
  width: 64px;
  height: auto;
  display: block;
  margin: 0 auto 10px;
}

.quarity-feature__title {
  line-height: 1.4;
  text-align: center;
  margin: 0 0 10px 0;
  padding-bottom: 6px;
}

/* 下段（相談） */
.quarity-consult__heading {
  display: block;
  justify-content: center;
  align-items: center;
  gap: 8px;
  text-align: center;
  margin: 0 0 16px;
  line-height: 1.6;
}

.quarity-consult__heading-icon {
  width: 28px;
  height: auto;
  display: block;
}

.quarity-consult__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  text-align: center;
}

.quarity-consult__item {
  border: none !important;
  box-shadow: none !important;
  background: transparent;
}

.quarity-consult__title {
  display: inline-block;
  margin: 0 auto 12px;
  padding-bottom: 6px;
  border-bottom: 2px solid #f2b1ad;
}

.quarity-consult__list {
  display: table;
  margin: 0 auto;
  padding-left: 1.4em;
  text-align: left;
  list-style: disc;
  list-style-position: outside;
}

.quarity-consult__list li {
  display: list-item;
  margin: 6px 0;
  white-space: normal;
  text-align: left;
}

/* =========================
   STAFF
========================= */
.staff-list {
  display: grid;
  gap: 64px;
  margin: 0 auto;
  max-width: 1000px;
}

.staff-item {
  display: grid;
  grid-template-columns: minmax(260px, 320px) 1fr;
  column-gap: 40px;
  align-items: flex-start;
}

.staff-item__role {
  display: grid;
  grid-template-columns: 58px 1fr;
  align-items: center;
  column-gap: 5px;
}

.staff-item__icon {
  width: 45px;
  height: auto;
  display: block;
}

.staff-item__title {
  margin: 0;
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  white-space: nowrap;
}

.staff-item__text {
  margin: 0;
  line-height: 1.9;
  font-size: 1rem;
}

.staff-note {
  margin: 80px auto 0;
  text-align: center;
  line-height: 2;
  max-width: 980px;
}

/* =========================
   GUIDE（利用するには）
========================= */
.guide .area-outer.guide__outer {
  position: relative;
  overflow: visible;
  padding-bottom: 96px;
}

.guide__inner {
  position: relative;
  z-index: 1;
}

.guide-flow__title,
.guide-fee__title {
  font-size: 1.25rem;
  font-weight: 700;
  margin: 0 0 22px;
  letter-spacing: 0.02em;
}

.guide-flow__steps {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 28px;
}

.guide-step {
  position: relative;
  --step-col: 120px;
  --box-px: 32px;
  --line-w: 2px;
}

.guide-step__box {
  position: relative;
  overflow: visible;

  background: var(--white);
  border-left: var(--line-w) solid var(--pink);
  border-bottom: var(--line-w) solid var(--pink);
  border-top: none;
  border-right: none;

  border-radius: 0;
  padding: 28px var(--box-px);

  display: grid;
  grid-template-columns: var(--step-col) 1fr;
  gap: 22px;
  align-items: center;
}

.guide-step__left {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  line-height: 1;
  height: 100%;
}

.guide-step__label {
  display: block;
  font-size: 0.95rem;
  letter-spacing: 0.06em;
  margin-bottom: 10px;
}

.guide-step__num {
  display: block;
  font-size: 2.25rem;
  font-weight: 700;
}

.guide-step__right {
  min-width: 0;
}

.guide-step__headrow {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.guide-step__heading {
  margin: 0 0 6px;
  font-size: 1.25rem;
  font-weight: 700;
  line-height: 1.4;
}

.guide-step__text {
  margin: 0;
  line-height: 1.9;
  font-size: 1rem;
}

.guide-step__badge {
  display: inline-flex;
  align-items: center;
  padding: 4px 12px;
  border-radius: 999px;
  background: var(--pink);
  color: var(--white);
  font-size: 0.85rem;
  line-height: 1.2;
  white-space: nowrap;
}

.guide-step__tail {
  position: absolute;
  left: calc(var(--box-px) + (var(--step-col) / 2));
  bottom: 0;
  transform: translate(-50%, 100%);
  width: 32px;
  height: 18px;
  background: var(--pink);
  clip-path: polygon(0 0, 100% 0, 50% 100%);
  z-index: 3;
}

.guide-step:last-child .guide-step__tail {
  display: none;
}

.guide-fee {
  margin-top: 60px;
}

.guide-fee__text {
  margin: 0;
  line-height: 2;
}

.guide__flower {
  position: absolute;
  right: 28px;
  bottom: 20px;
  width: 92px;
  height: auto;
  pointer-events: none;
  z-index: 0;
}

/* =========================
   Q&A
========================= */
.qa-accordion {
  display: grid;
  gap: 36px;
}

.qa-item {
  border: none;
  background: transparent;
}

.qa-q {
  list-style: none;
  cursor: pointer;

  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 14px;

  padding: 10px 0;
}

.qa-q::-webkit-details-marker {
  display: none;
}

.qa-mark {
  width: 30px;
  height: 30px;

  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  color: var(--pink);
  flex: none;
}

.qa-mark.a {
  color: var(--turquoise);
}

.qa-q .qa-text {
  min-width: 0;
  line-height: 1.9;
}

.qa-icon {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--pink);

  display: grid;
  place-items: center;

  transition: background var(--trans-base) ease;
}

.qa-icon::before {
  content: "";
  width: 8px;
  height: 8px;
  border-right: 2px solid var(--white);
  border-bottom: 2px solid var(--white);
  transform: rotate(45deg);
  transition: transform 0.25s ease;
}

.qa-q:hover .qa-icon {
  background: var(--turquoise);
}

.qa-item.is-open .qa-icon::before {
  transform: rotate(-135deg);
}

.qa-a {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 14px;
  align-items: start;
  padding: 6px 0 4px;
}

.qa-a .qa-text {
  line-height: 2;
}

.qa-a .qa-text p {
  margin: 0;
}

.qa-q:focus-visible {
  outline: 2px solid var(--turquoise);
  outline-offset: 4px;
}

.qa-content {
  overflow: hidden;
  height: 0;
}

/* =========================
   NEWS List
========================= */
.news-list {
  display: grid;
  gap: 10px;
}

.news-item {
  display: grid;
  grid-template-columns: 120px 1fr 28px;
  align-items: center;
  gap: 16px;

  padding: 14px 0;
  border-bottom: 1px solid var(--border-soft);
}

.news-date {
  font-weight: 800;
  color: var(--brown);
  white-space: nowrap;
}

.news-title {
  min-width: 0;
  line-height: 1.6;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.news-arrow {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--pink);

  display: grid;
  place-items: center;
  justify-self: end;

  transition:
    background var(--trans-base) ease,
    transform var(--trans-base) ease;
}

.news-arrow::before {
  content: "";
  width: 7px;
  height: 7px;
  border-top: 2px solid var(--white);
  border-right: 2px solid var(--white);
  transform: rotate(45deg);
}

.news-item:hover .news-arrow {
  background: var(--turquoise);
  transform: translateX(2px);
}

.news-item:hover .news-title {
  color: var(--turquoise);
}

/* =========================
   NEWS Detail
========================= */
.news-detail__layout {
  display: grid;
  grid-template-columns: 160px 1fr;
  gap: 28px;
  align-items: start;
}

.news-detail__meta {
  position: sticky;
  top: 24px;
}

.news-detail__date {
  display: inline-block;
  font-weight: 800;
  color: var(--blue);
  white-space: nowrap;
  letter-spacing: 0.02em;
}

.news-detail__title {
  font-size: 1.4rem;
  font-weight: 800;
  line-height: 1.4;
  margin-bottom: 14px;
}

.news-detail__content {
  line-height: 1.9;
}

.news-detail__content p + p {
  margin-top: 14px;
}

.news-detail__pager {
  margin-top: 48px; /* ←ここが本命 */
  margin-bottom: 24px;
  display: flex;
  justify-content: space-between; /* ←ここがポイント */
  gap: 48px;
  grid-column: 1 / -1; /* 2カラムを貫通 */
  justify-self: center; /* グリッド上で中央へ */
  margin-inline: auto; /* ← これを追加 */
  width: 100%;
  max-width: 480px; /* ←本文幅に合わせる */
}

.pager-circle {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--pink);

  display: grid;
  place-items: center;

  transition:
    background var(--trans-base) ease,
    transform var(--trans-fast) ease;
}

.pager-circle::before {
  content: "";
  width: 10px;
  height: 10px;
  border-top: 2px solid var(--white);
  border-right: 2px solid var(--white);
  transform: rotate(45deg);
}

.pager-circle.prev::before {
  transform: rotate(-135deg);
}

.pager-circle.next::before {
  transform: rotate(45deg);
}

.pager-circle:hover {
  background: var(--turquoise);
}

.pager-circle:active {
  transform: scale(0.94);
}

.pager-circle:focus-visible {
  outline: 2px solid var(--turquoise);
  outline-offset: 3px;
}

/* =========================
   Button（汎用）
========================= */
.news-more {
  margin-top: 24px;
  text-align: center;
}

.c-button {
  display: inline-flex;
  align-items: center;
  gap: 10px;

  padding: 14px 26px;
  border-radius: var(--radius-20);

  /* ここが変更ポイント */
  background: #fff;
  color: var(--brown);
  border: 2px solid var(--brown);

  font-weight: 700;
  letter-spacing: 0.04em;

  box-shadow: 0 6px 0 #c1c1c1;

  transition:
    transform var(--trans-fast) ease,
    box-shadow var(--trans-fast) ease,
    background var(--trans-base) ease,
    color var(--trans-base) ease;
}

/* 矢印も通常は茶色 */
.c-button::after {
  content: "";
  width: 7px;
  height: 7px;

  border-top: 2px solid var(--brown);
  border-right: 2px solid var(--brown);

  transform: rotate(45deg);
  transition: border-color var(--trans-base) ease;
}

/* =========================
   hover / active で反転
========================= */
.c-button:hover,
.c-button:active {
  background: var(--brown);
  color: #fff;

  transform: translateY(6px);
  box-shadow: 0 0 0 #2d8279;
}

/* 矢印も白に */
.c-button:hover::after,
.c-button:active::after {
  border-top-color: #fff;
  border-right-color: #fff;
}

/* =========================
   Footer
========================= */
.site-footer {
  position: relative;
  background-color: var(--pink);
  padding-top: 80px;
  margin-top: 200px;
}

.footer-deco {
  position: absolute;
  top: clamp(-140px, -10vw, -60px);
  pointer-events: none;
  width: clamp(160px, 18vw, 220px);
  height: auto;
}

.footer-deco--left {
  left: clamp(8px, 3vw, 80px);
}

.footer-deco--right {
  right: clamp(8px, 3vw, 80px);
}

.site-footer-inner {
  max-width: 800px;
  margin: 0 auto;
  padding: 0 24px 50px 24px;
  text-align: center;
  position: relative;
  z-index: 2;
}

.footer-logo {
  margin: 0px 0 -200px 0;
  text-align: center;
}

/* ← ここが重要 */
.footer-logo a {
  display: inline-block; /* ブロック→インラインブロックに */
  width: auto;
}

.footer-logo img {
  width: clamp(140px, 18vw, 150px);
  max-width: 100%;
  height: auto;
  display: block;
  margin-inline: auto;

  transition:
    transform 0.25s ease,
    opacity 0.25s ease;
}

/* ホバー：ほんのり拡大 */
.footer-logo a:hover img {
  transform: scale(1.06);
}

.footer-inner .copyright {
  margin-top: 20px;
}

/* フッタープライバシーリンク */
.footer-privacy {
  margin-bottom: 10px;
}

.footer-privacy .privacy-link {
  font-size: 0.9rem;
  color: var(--text);
  text-decoration-line: underline;
  text-decoration-style: dotted;

  text-decoration-color: var(--white);
}

.footer-privacy .privacy-link:hover {
  text-decoration-color: var(--white);
  text-decoration-style: solid;
}

/* =========================
   Floating CTA
========================= */
.floating-cta {
  position: fixed;
  top: 50%;
  right: 0;
  transform: translateY(-50%);
  display: flex;
  flex-direction: column;
  z-index: 1000;
}

.floating-cta__btn {
  width: 60px;
  padding: 20px 8px;

  writing-mode: vertical-rl;
  text-orientation: upright;

  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.1em;
  line-height: 1.6;
  color: var(--white);

  transition:
    transform var(--trans-slow),
    opacity var(--trans-slow);
}

.floating-cta__btn:hover {
  transform: translateX(-8px);
  opacity: 0.9;
}

.floating-cta__btn.waiting {
  background: var(--yellow);
}

.floating-cta__btn.line {
  background: #06c755;
}

/* =========================
   ABOUT US
========================= */
.aboutus .area-inner {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 24px 32px;
  align-items: center;
}

.aboutus .area-inner > p:nth-of-type(1) {
  grid-column: 1;
  grid-row: 1;
  text-align: center;
  line-height: 1.9;
}

.aboutus .area-inner > img:nth-of-type(1) {
  grid-column: 2;
  grid-row: 1;
  width: 100%;
  display: block;
  border-radius: var(--radius-20);
}

.aboutus .area-inner > img:nth-of-type(2) {
  grid-column: 1;
  grid-row: 2;
  width: min(360px, 100%);
  justify-self: center;
  display: block;
  border-radius: var(--radius-20);
}

.aboutus .area-inner > p:nth-of-type(2) {
  grid-column: 2;
  grid-row: 2;
  text-align: center;
  line-height: 1.9;
}
/* =========================
   Footer Contact CTA
   追記場所：12_components_sections.css 末尾（または 20_components_blocks.css 末尾）
========================= */

.footer-contact {
  padding: 64px 16px; /* 上下余白（必要に応じて調整） */
}

.footer-contact__inner {
  max-width: 480px;
  margin: 2em auto;
  background: var(--pink);
  border-radius: var(--radius-20);
  padding: 44px 24px;
  text-align: center;
}

.footer-contact__title {
  margin: 0 0 18px;
  font-size: 1.4rem;
  font-weight: 700;
  color: #fff; /* 画像の雰囲気に合わせて白 */
  letter-spacing: 0.06em;
}

.footer-contact__text {
  margin: 0 0 28px;
  line-height: 2;
  font-weight: 700;
  color: var(--text);
}

.footer-contact__actions {
  display: flex;
  justify-content: center;
  gap: 32px;
}

.footer-contact__icon {
  display: grid;
  place-items: center;
  width: 78px;
  height: 78px;
  border-radius: 999px;
  transition:
    transform 0.2s ease,
    box-shadow 0.2s ease;
}

.footer-contact__icon img {
  width: 60px;
  height: auto;
  display: block;
}

.footer-contact__icon:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.08);
}

/* =========================
   汎用ボタン
========================= */

/* ボタンの並び用ラッパ */
.c-button-group {
  display: flex;
  justify-content: center;
  gap: 48px;
  margin-top: 64px;
  margin-bottom: 36px;
}

/* ボタン本体 */
.c-button-group .c-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;

  min-width: 220px;
  padding: 14px 22px;

  background: var(--white);
  color: var(--text);
  border-radius: var(--radius-20);

  font-weight: 700;
  letter-spacing: 0.04em;
  text-decoration: none;

  transition: all 0.2s ease;
}

/* アイコン */
.c-button-group .c-button__icon {
  width: 22px;
  height: auto;
  flex-shrink: 0;
}

/* hover */
.c-button-group .c-button:hover {
  background: var(--brown);
  color: #fff;
  transform: translateY(6px);
}

/* =========================
   Back to Top（スクロール表示）
========================= */
.c-backtop {
  position: fixed;
  right: -18px; /* ← 右に食い込ませる（半分隠す） */
  bottom: calc(96px + env(safe-area-inset-bottom)); /* CTAと被らない位置 */
  z-index: 2400;

  width: 72px;
  height: 72px;

  display: grid;
  place-items: center;
  gap: 6px;

  background: var(--white);
  border-radius: 18px 0px 0px 18px;

  text-decoration: none;
  box-shadow: 0 12px 22px rgba(0, 0, 0, 0.18);
  color: var(--turquoise);

  /* --- ここが表示制御のポイント --- */
  opacity: 0;
  visibility: hidden;
  transform: translateY(16px);
  transition:
    opacity 0.25s ease,
    transform 0.25s ease,
    visibility 0.25s ease;
}

/* 表示状態 */
.c-backtop.is-visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

/* 矢印 */
.c-backtop__icon {
  width: 10px;
  height: 10px;
  border-top: 3px solid var(--turquoise);
  border-right: 3px solid var(--turquoise);
  transform: rotate(-45deg);
  margin-top: 4px;
}

.c-backtop__text {
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  line-height: 1;
}

/* hover */
.c-backtop:hover {
  transform: translateX(-10px);
  box-shadow: 0 16px 28px rgba(0, 0, 0, 0.22);
}

/* 一覧ページャー：位置固定 */
.news-detail__pager.news-detail__pager--fixed {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 180px; /* ボタン間隔 */
}

.news-detail__pager .pager-circle.is-disabled {
  pointer-events: none; /* クリック不可 */
  opacity: 0.25; /* ← 薄く表示 */
  filter: grayscale(0.2); /* ほんのり無効感（任意） */
}
