@charset "UTF-8";

/* ページタイトル */

.page-title {
  position: relative;
  height: calc(458 / 1440 * 100vw);
  padding-top: calc(212 / 1440 * 100vw);
  padding-bottom: calc(142 / 1440 * 100vw);
  margin-bottom: calc(138 / 1440 * 100vw);
}
.bg-graph {
  position: absolute;
  bottom: 0;
  left: 0;
  width: calc(1440 / 1440 * 100vw);
  height: calc(200 / 1440 * 100vw); /* グラフの高さに合わせて調整 */

  background-image: url("../image/object_page-title.jpg");
  background-repeat: no-repeat;
  background-size: cover; /* 横幅いっぱい */
  background-position: center bottom;
  pointer-events: none; /* 背景なのでクリック無効 */
}
.page-title-text {
  position: relative;
  z-index: 5;
}

.page-title-text h1 {
  font-size: 38px;
  font-weight: 500;
  letter-spacing: 0.06em;
}

.page-title-text p {
  font-size: 20px;
  color: var(--accent-color);
  font-weight: 500;
  letter-spacing: 0.04em;
}

/* ===========　業務内容　=========== */

:root {
  --header-h: 120px; /* ← ヘッダーの高さに合わせて調整（例: 80〜140） */
}
.anchor {
  pointer-events: none;
  display: block;
  height: var(--header-h); /* ヘッダー分の空白をつくる */
  margin-top: calc(var(--header-h) * -1); /* その分だけ上に引き上げる */
}

html {
  scroll-behavior: smooth;
}

.service-list {
  list-style: none;
  margin: 0;
  margin-bottom: 120px;
  padding: 0;
  display: grid;
  grid-template-columns: 1fr 1fr; /* 横2列 */
  gap: 1.5em 5em; /* 行間 / 列間（画像の空きに近づける） */
}

.tax-divider {
  border: none;
  border-top: 1px solid #e6e6e9;
  margin: 28px 0 55px;
}

.service-list li {
  position: relative;
  padding-left: 1.4em;
  font-size: 16px;
  line-height: 1.9;
  color: var(--text-color);
}

.service-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.72em; /* ベースラインに合うよう微調整 */
  width: 8px;
  height: 8px;
  border-radius: 2px; /* 角少し丸める（四角感は残す） */
  background: var(--accent-color); /* 青いドット */
}

/* ===========　アコーディオン　============= */

.list-container {
  position: relative;
}

/* ===== トグルボタン（アイコンはここに一本化） ===== */

.accordion-btn {
  background: transparent;
  border: none;
  padding: 0;
  margin-right: 20px;
  cursor: pointer;

  /* テキスト（Close/会計・税務）を視覚的に消す */
  font-size: 0;
  line-height: 0;

  /* 押しやすさ確保 */
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
}

.accordion-btn::after {
  content: "";
  width: 16px;
  height: 16px;

  background-image: url("../image/icon_accordion-btn.svg");
  background-repeat: no-repeat;
  background-size: contain;
  background-position: center;

  transform: rotate(0deg);
  transform-origin: center;
  transition: transform 0.3s ease;
}

/* アコーディオン開いたらアイコン180度回転 */
.service-cont:has(.more.appear) .accordion-btn::after {
  transform: rotate(180deg);
}

/* 見出し行：会計・税務（左） + 矢印（右） */
.title-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

/* 開閉 */
.more {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s ease;
}
.more.appear {
  max-height: 2000px;
}

/* ===== ふわっと表示（アコーディオン内だけ） ===== */
.more .service-list li {
  opacity: 0;
  transform: translateY(10px);
  transition: opacity 0.35s ease, transform 0.35s ease;
  will-change: opacity, transform;
}

.more.appear .service-list li {
  opacity: 1;
  transform: translateY(0);
}

/* 1個ずつ遅れて出る（必要な分だけ増やしてOK） */
.more.appear .service-list li:nth-child(1) {
  transition-delay: 0.05s;
}
.more.appear .service-list li:nth-child(2) {
  transition-delay: 0.1s;
}
.more.appear .service-list li:nth-child(3) {
  transition-delay: 0.15s;
}
.more.appear .service-list li:nth-child(4) {
  transition-delay: 0.2s;
}
.more.appear .service-list li:nth-child(5) {
  transition-delay: 0.25s;
}
.more.appear .service-list li:nth-child(6) {
  transition-delay: 0.3s;
}
.more.appear .service-list li:nth-child(7) {
  transition-delay: 0.35s;
}
.more.appear .service-list li:nth-child(8) {
  transition-delay: 0.4s;
}
.more.appear .service-list li:nth-child(9) {
  transition-delay: 0.45s;
}
.more.appear .service-list li:nth-child(10) {
  transition-delay: 0.5s;
}

/* レスポンシブ対応 - 768pxより小さい時 */
@media (max-width: 768px) {
  .main_container {
    padding: 0 28px;
    width: 100%;
  }
  .service-list {
    grid-template-columns: 1fr;
    margin-bottom: 80px;
  }

  .service-list li {
    font-size: 16px;
  }

  .page-title-text h1 {
    font-size: 30px;
  }

  .page-title-text p {
    font-size: 16px;
  }

  .page-title {
    position: relative;
    padding-top: 140px;
    padding-bottom: 140px;
    margin-bottom: 40px;
  }

  .tax-divider {
    border: none;
    border-top: 1px solid #e6e6e9;
    margin: 22px 0 25px;
  }

  .service-box {
    padding-top: 16px;
  }
}

/* ===== PCは常時オープン ===== */

@media (min-width: 769px) {
  .more {
    max-height: none;
    overflow: visible;
  }

  /* PCでは li を最初から表示（ふわっと演出を無効化） */
  .more .service-list li {
    opacity: 1;
    transform: none;
    transition: none;
  }

  /* PCではアイコン回転もしない（任意：固定で下向きにする） */
  .accordion-btn::after {
    transform: rotate(0deg);
  }

  .btn-box {
    display: none;
  }
}
