/* ================================================================
   header
   ================================================================ */
header {
  width: 100%;
  height: 90px;
  box-shadow: 0 2px 20px rgba(0, 0, 0, 0.15);
  position: fixed;
  top: 0;
  left: 0;
  background-color: var(--bg-color-white);
  z-index: 9999;
}

.header-inner {
  width: var(--width-inner);
  max-width: 100%;
  height: 100%;
  margin: 0 auto;
  padding: 0;
  justify-content: space-between;
}

/* --- ハンバーガーメニュー --- */
.hamburger-btn {
  display: none;
  width: 32px;
  height: 24px;
  flex-direction: column;
  justify-content: space-between;
  cursor: pointer;
  background: none;
  border: none;
  padding: 0;
}
.hamburger-btn span {
  display: block;
  height: 4px;
  background-color: var(--bg-color-orange);
  border-radius: 3px;
  transition:
    transform 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55),
    opacity 0.4s ease,
    background-color 0.4s ease;
}

.hamburger-btn.is-active span:nth-child(1) {
  transform: rotate(45deg) translate(7px, 7px);
}
.hamburger-btn.is-active span:nth-child(2) {
  opacity: 0;
}
.hamburger-btn.is-active span:nth-child(3) {
  transform: rotate(-45deg) translate(7px, -7px);
}

/* --- ナビゲーション --- */
.header-logo {
  height: 100%;
  display: flex;
  align-items: center;
}
.header-logo img {
  width: 350px;
  height: auto;
}

.header-nav ul {
  gap: 15px;
}
.header-nav ul li:not(.free-consultation-btn) a {
  color: var(--color-brown);
  font-size: var(--font-size-xs);
  font-weight: var(--font-weight-bold);
}

header .free-consultation-btn {
  cursor: pointer;
  box-shadow: var(--btn-box-shadow);
  transition: var(--btn-transition);
}

/* --- header: ハンバーガー切替（1090px以下） --- */
@media screen and (max-width: 1090px) {
  .hamburger-btn {
    display: flex;
    z-index: 3000;
  }

  .site-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.4);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.25s ease;
    z-index: 2500;
  }
  .site-overlay.is-visible {
    opacity: 1;
    pointer-events: auto;
  }

  .header-nav {
    position: fixed;
    top: 90px;
    right: 0;
    width: 280px;
    height: calc(100vh - 90px);
    background-color: var(--bg-color-light-yellow);
    transform: translateX(100%);
    transition: transform 0.3s ease;
    padding: 40px;
    display: block;
    z-index: 2600;
    box-shadow: -6px 0 20px rgba(0, 0, 0, 0.08);
    overflow-y: auto;
  }
  .header-nav.is-open {
    transform: translateX(0);
  }

  .header-nav ul {
    flex-direction: column;
    gap: 20px;
    text-align: left;
  }
  .header-nav ul li {
    width: 100%;
  }
  .header-nav ul li:last-child {
    justify-content: center;
  }
}

/* --- header: SP（480px以下） --- */
@media screen and (max-width: 480px) {
  header {
    height: 70px;
  }

  .header-inner {
    padding: 0 15px;
  }

  .header-logo {
    width: 270px;
  }
  .header-logo img {
    width: 100%;
    height: auto;
  }

  .header-nav {
    top: 70px;
    width: 240px;
    height: calc(100vh - 70px);
  }
}

/* ================================================================
   main
   ================================================================ */
main {
  margin-top: 90px;
}

/* @media screen and (max-width: 768px) {
  main {
    margin-top: 45px;
  }
} */

@media screen and (max-width: 480px) {
  main {
    margin-top: 70px;
  }
}

/* ================================================================
   first-view
   ================================================================ */
.first-view {
  width: 100%;
  min-height: calc(100vh - 90px);
  background-image: url(../image/product/bg-first-view.webp);
  background-size: cover;
  background-position: center bottom;
  position: relative;
  overflow: hidden;
}

/* --- スライダー --- */
.first-view .bg-slider {
  position: absolute;
  top: 25%;
  left: 50%;
  transform: translateX(-50%) rotate(-10deg);
  width: 1280px;
  max-width: 100%;
  height: 180px;
  z-index: 1;
  overflow: hidden;
}
/* slick初期化前: 横並びにしてDOM再配置のシフトを防止 */
.first-view .bg-slider:not(.slick-initialized) {
  display: flex;
  gap: 10px;
}
.first-view .bg-slider:not(.slick-initialized) img {
  flex-shrink: 0;
}
/* !important: slick CDNの .slick-slide img { width:100% } を上書き */
.first-view .bg-slider img {
  width: 265px !important;
  height: 180px !important;
  min-width: 265px;
  margin-right: 10px;
  object-fit: cover;
  object-position: center;
}

/* --- コンテンツ --- */
.first-view > .contents.sp {
  display: none;
}
.first-view > .contents {
  display: flex;
  width: var(--width-inner);
  max-width: 100%;
  position: relative;
  z-index: 5;
  /* padding-top: 20px;
  padding-bottom: 20px; */
}

/* --- 隊長画像・吹き出し --- */
.first-view .captain1-contents {
  width: 400px;
  text-align: right;
  position: relative;
}
.first-view .captain1-contents .captain1-img img {
  width: 400px;
  height: auto;
  aspect-ratio: auto;
  margin-bottom: 10px;
}

.first-view .captain1-contents .bg-speech-bubble.pc {
  position: absolute;
  bottom: 60px;
  left: -305px;
  background-image: url(../image/product/speech-bubble.png);
  background-repeat: no-repeat;
  background-size: cover;
  background-position: center;
  width: 420px;
  height: 155px;
  display: flex;
  justify-content: center;
  align-items: center;
}
.first-view .captain1-contents .bg-speech-bubble p {
  color: var(--color-brown-light);
  text-align: left;
  font-size: var(--font-size-s);
  margin-top: 15px;
}
.first-view .captain1-contents .bg-speech-bubble p span {
  color: var(--color-orange-deep);
  text-align: left;
  font-size: var(--font-size-s);
}

/* --- テキスト・見出し --- */
.first-view .first-view-text {
  display: block;
  text-align: center;
  padding-top: 0;
}
.first-view .first-view-text .thinking-spiral {
  position: absolute;
  width: 40px;
  height: 35px;
  top: -10px;
  left: 200px;
}
.first-view .first-view-text h3 {
  font-size: var(--font-size-ml);
  color: var(--color-charcoal);
}
.first-view .first-view-text h2 {
  font-size: var(--font-size-xl);
  color: var(--color-orange);
}
.first-view .first-view-text .title-border {
  width: 100%;
  text-align: center;
}
.first-view .first-view-text .title-border svg {
  width: 1100px;
  max-width: 100%;
  height: 100%;
}

/* --- first-view: SP（480px以下） --- */
@media screen and (max-width: 480px) {
  .first-view {
    min-height: auto;
    margin-top: 20px;
  }

  .first-view > .contents.pc {
    display: none;
  }
  .first-view > .contents.sp {
    display: block;
    padding: 30px 5px;
  }
  .first-view > .contents {
    width: 100%;
    padding-left: 25px;
    padding-right: 25px;
  }

  .first-view .bg-slider {
    top: 20%;
    left: 45%;
    width: 120%;
    max-width: 120%;
    height: 120px;
  }
  .first-view .bg-slider img {
    width: 160px !important;
    height: 120px !important;
    min-width: 160px;
  }

  .first-view .captain1-contents {
    width: 100%;
    margin-top: 30px;
    margin-left: 25px;
  }
  .first-view .captain1-contents .captain1-img img {
    width: auto;
    height: 330px;
  }

  .first-view .captain1-contents .bg-speech-bubble.pc {
    display: none;
  }
  .first-view .captain1-contents .bg-speech-bubble.sp {
    position: absolute;
    bottom: 30px;
    left: -15px;
    background-image: url(../image/product/speech-bubble-sp.png);
    background-repeat: no-repeat;
    background-size: cover;
    background-position: center;
    width: 245px;
    height: 160px;
    display: flex;
    justify-content: center;
    align-items: center;
  }
  .first-view .captain1-contents .bg-speech-bubble.sp p,
  .first-view .captain1-contents .bg-speech-bubble.sp p span {
    font-size: 16px;
    text-align-last: center;
  }
  .first-view .captain1-contents .bg-speech-bubble p {
    margin-top: 0;
  }

  .first-view .first-view-text .thinking-spiral {
    left: 10px;
    width: 30px;
    height: 30px;
  }
  .first-view .first-view-text h3,
  .first-view .first-view-text h2 {
    font-size: 7vw;
  }
}

/* ================================================================
   risk
   ================================================================ */
.risk {
  width: 1200px;
  max-width: 100%;
}

.risk-inner {
  justify-content: space-between;
  align-items: center;
  gap: 30px;
  margin-bottom: 50px;
}

.risk-inner .risk-left {
  width: 50%;
  margin-left: 20px;
}

/* --- タイトル --- */
.risk-title {
  position: relative;
  transform: rotate(-5deg);
  margin-bottom: 30px;
  padding-bottom: 30px;
}
.risk-title::before {
  content: "";
  position: absolute;
  width: 120px;
  height: 120px;
  top: -30px;
  left: -30px;
  background-image: url("../image/product/risk-deco.png");
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
  z-index: -1;
}
.risk-title h2 {
  position: relative;
  z-index: 2;
  color: var(--color-brown-dark);
  font-size: var(--font-size-l);
  line-height: 1.2;
}
.risk-title h2 span {
  margin-left: 40px;
  font-size: var(--font-size-l);
}

/* --- リスクボックス --- */
.risk-left-box {
  position: relative;
  background-color: var(--bg-color-light-pink);
  border-radius: 20px;
}
.risk-left-box::after {
  content: "";
  position: absolute;
  top: 15px;
  left: 15px;
  width: 100%;
  height: 100%;
  border: solid 3px var(--bg-color-light-pink);
  border-radius: 20px;
  pointer-events: none;
}

.risk-left-box .risk-left-item {
  padding: 20px 30px;
  border: none;
  border-radius: var(--btn-border-radius);
}
.risk-left-box .risk-left-item h3 {
  font-size: var(--font-size-ms);
}
.risk-left-box .risk-left-item .title-border {
  margin-bottom: 20px;
}
.risk-left-box .risk-left-item .title-border svg {
  height: 100%;
}
.risk-left-box .risk-left-item ul li {
  display: flex;
  gap: 5px;
  font-size: var(--font-size-s);
  margin-bottom: 10px;
}
.risk-left-box .risk-left-item ul li span {
  font-size: var(--font-size-s);
}

/* --- テキスト・右画像 --- */
.risk .risk-text {
  margin-bottom: 30px;
  text-align: center;
}
.risk .risk-text p {
  font-size: var(--font-size-ms);
}
.risk .risk-text p .red {
  color: var(--color-dark-red);
}

.risk .risk-right {
  flex: 1;
}

/* --- risk: タブレット縦積み（768px以下） --- */
@media screen and (max-width: 768px) {
  .risk {
    width: 95%;
    margin: 0 auto;
    padding-bottom: 100px;
  }

  .risk-inner.flex {
    display: block;
  }

  .risk-inner .risk-left {
    width: 100%;
    margin-left: 0;
  }

  .risk-title {
    margin-bottom: 0;
  }
  .risk-title::before {
    width: 80px;
    height: 80px;
    top: -25px;
    left: -10px;
  }

  .risk-left-box {
    width: calc(100% - 20px);
  }
  .risk-left-box .risk-left-item {
    padding: 20px;
    margin-bottom: 50px;
  }
  .risk-left-box .risk-left-item .title-border {
    width: 100%;
  }

  .risk-right {
    width: 100%;
    text-align: center;
  }
  .risk-right img {
    width: 100%;
    max-width: 480px;
  }
}

/* --- risk: SP（480px以下） --- */
@media screen and (max-width: 480px) {
  .risk-title h2,
  .risk-title h2 span {
    font-size: 6vw;
  }

  .risk-left-box .risk-left-item h3,
  .risk-left-box .risk-left-item ul li,
  .risk-left-box .risk-left-item ul li span {
    font-size: var(--font-size-sm);
  }

  .risk .risk-text .risk-text-main,
  .risk .risk-text .risk-text-main strong {
    font-size: 5.3vw;
  }
}

/* ================================================================
   solution（仲介・買取・賃貸）
   ================================================================ */
.solution {
  background-color: var(--bg-color-beige);
}
.solution > .solution-inner {
  width: 100%;
  max-width: var(--width-inner);
  margin: 0 auto;
  padding: 50px 0;
}

.solution .title-img {
  width: 1150px;
  max-width: 100%;
  height: auto;
  margin-top: -100px;
  margin-left: -35px;
}
.solution .title-img img {
  display: block;
  height: 100%;
}

/* --- 仲介・買取・賃貸 カード共通 --- */
.solution .intermediary,
.solution .purchase,
.solution .rental {
  background-color: var(--bg-color-white);
  padding: 30px 90px 50px 90px;
  margin-bottom: 30px;
  border-radius: var(--btn-border-radius);
}
.solution .rental {
  margin-bottom: 0;
}

/* --- タイトル --- */
.intermediary .intermediary-title,
.purchase .purchase-title,
.rental .rental-title {
  position: relative;
  margin-bottom: 30px;
  margin-left: -70px;
}

.intermediary .intermediary-title-top,
.purchase .purchase-title-top,
.rental .rental-title-top {
  align-items: flex-end;
}
.intermediary .intermediary-title-top svg,
.purchase .purchase-title-top svg,
.rental .rental-title-top svg {
  width: 85px;
  height: 100px;
  margin-right: 20px;
}
.intermediary .intermediary-title-top h2,
.purchase .purchase-title-top h2,
.rental .rental-title-top h2 {
  font-size: var(--font-size-xxl);
}
.intermediary .intermediary-title-top span,
.purchase .purchase-title-top span,
.rental .rental-title-top span {
  font-size: var(--font-size-l);
}

/* --- タイトル下線 --- */
.intermediary .intermediary-title-bottom,
.purchase .purchase-title-bottom,
.rental .rental-title-bottom {
  position: absolute;
  width: 100%;
  bottom: -5px;
  left: 50px;
}
.intermediary .intermediary-title-bottom .title-border,
.purchase .purchase-title-bottom .title-border,
.rental .rental-title-bottom .title-border {
  width: calc(100% - 50px);
}

/* --- 左右レイアウト --- */
.solution .intermediary .flex .left,
.solution .purchase .flex .left,
.solution .rental .flex .left {
  margin-right: 30px;
}
.solution .intermediary .flex .right,
.solution .purchase .flex .right,
.solution .rental .flex .right {
  flex: 1;
}
.solution .intermediary .flex .right img,
.solution .purchase .flex .right img,
.solution .rental .flex .right img {
  width: 100%;
  height: auto;
  border-radius: var(--btn-border-radius);
}

/* --- 説明文 --- */
.solution .intermediary .description,
.solution .purchase .description,
.solution .rental .description {
  margin-bottom: 50px;
}
.solution .intermediary .flex .left .description p,
.solution .purchase .flex .left .description p,
.solution .rental .flex .left .description p {
  font-size: var(--font-size-s);
  margin-bottom: 20px;
}

/* --- おすすめ --- */
.solution .intermediary .recommend,
.solution .purchase .recommend,
.solution .rental .recommend {
  position: relative;
  background-color: var(--bg-color-salmon-pink);
  padding: 45px 20px 20px;
  width: calc(100% - 20px);
  margin-left: auto;
}
.solution .intermediary .light-bulb,
.solution .purchase .light-bulb,
.solution .rental .light-bulb {
  position: absolute;
  top: -20px;
  left: -20px;
  width: 260px;
  height: 45px;
}
.solution .intermediary .light-bulb img,
.solution .purchase .light-bulb img,
.solution .rental .light-bulb img {
  width: 100%;
  height: 100%;
}
.solution .intermediary .recommend p,
.solution .purchase .recommend p,
.solution .rental .recommend p {
  font-size: var(--font-size-s);
  color: var(--color-brown);
}

/* --- 事例（case-study）共通 --- */
.solution .case-study {
  margin-top: 50px;
  border: solid 3px var(--border-color-orange);
}
.solution .case-study-info {
  display: flex;
  align-items: center;
}
.solution .case-study-badge {
  background-color: var(--bg-color-light-gray);
  margin-right: 20px;
  padding: 3px 15px;
}
.solution .case-study-badge p {
  font-size: var(--font-size-ms);
  font-weight: var(--font-weight-bold);
}
.solution .case-study-meta p {
  font-size: var(--font-size-sm);
}
.solution .case-study > .flex {
  padding: 40px;
}
.solution .case-study .left {
  width: 400px;
}
.solution .case-study .right {
  flex: 1;
}

/* --- お客様の声 --- */
.case-study-voice-title .circle {
  width: 15px;
  height: 15px;
  margin-right: 10px;
}
.case-study-voice-title .title-border {
  width: 100%;
  margin-bottom: 10px;
}
.case-study-voice-title-text h3 {
  font-size: var(--font-size-m);
}

.case-study .right > p {
  font-size: var(--font-size-xs);
}
.case-study .right > p > span {
  display: block;
  font-size: var(--font-size-sm);
  text-align: right;
  margin-top: 10px;
}

/* --- solution: タブレット縦積み（768px以下） --- */
@media screen and (max-width: 768px) {
  .solution > .solution-inner {
    width: 95%;
    margin: 0 auto;
  }

  /* カード共通 */
  .solution .intermediary,
  .solution .purchase,
  .solution .rental {
    padding: 30px 20px 50px 20px;
  }

  .intermediary .intermediary-title,
  .purchase .purchase-title,
  .rental .rental-title {
    margin-left: -10px;
  }

  .intermediary .intermediary-title-top svg,
  .purchase .purchase-title-top svg,
  .rental .rental-title-top svg {
    width: 60px;
    height: auto;
  }

  .intermediary .intermediary-title-bottom,
  .purchase .purchase-title-bottom,
  .rental .rental-title-bottom {
    left: 30px;
  }

  /* 縦積み: .right.pc を非表示、.left を全幅に */
  .solution .intermediary .flex .right.pc,
  .solution .purchase .flex .right.pc,
  .solution .rental .flex .right.pc {
    display: none !important;
  }
  .solution .intermediary .flex .left,
  .solution .purchase .flex .left,
  .solution .rental .flex .left {
    width: 100%;
    flex: none;
    margin-right: 0;
    margin-bottom: 30px;
  }

  /* SP用画像を表示（テキスト→画像→おすすめ の順序を維持） */
  .intermediary .intermediary-img,
  .purchase .purchase-img,
  .rental .rental-img {
    display: block !important;
    height: 100%;
    margin-bottom: 50px;
    border-radius: var(--btn-border-radius);
  }

  /* おすすめ */
  .solution .intermediary .recommend,
  .solution .purchase .recommend,
  .solution .rental .recommend {
    width: 100%;
    margin-left: 0;
    padding: 30px 20px 20px;
  }
  .solution .intermediary .light-bulb,
  .solution .purchase .light-bulb,
  .solution .rental .light-bulb {
    width: 200px;
    height: auto;
    left: -10px;
  }

  /* 事例 */
  .solution .case-study > .flex {
    padding: 20px;
  }
  .solution .case-study-badge p,
  .solution .case-study-meta p {
    font-size: 16px;
  }

  .case-study-voice-title-text h3 {
    font-size: 20px;
  }
  .case-study .right > p,
  .case-study .right > p > span {
    font-size: 14px;
  }
}

/* --- solution: SP（480px以下） --- */
@media screen and (max-width: 480px) {
  .solution .title-img {
    width: calc(100% + 15px);
    margin-top: -160px;
    margin-left: -15px;
  }

  .solution .case-study {
    margin-top: 0;
  }

  .intermediary .intermediary-title-top h2,
  .purchase .purchase-title-top h2,
  .rental .rental-title-top h2 {
    font-size: 8vw;
  }
  .intermediary .intermediary-title-top span,
  .purchase .purchase-title-top span,
  .rental .rental-title-top span {
    font-size: 5vw;
  }

  .solution .intermediary .recommend p,
  .solution .purchase .recommend p,
  .solution .rental .recommend p {
    font-size: 16px;
  }

  .solution .intermediary .flex .left .description p,
  .solution .purchase .flex .left .description p,
  .solution .rental .flex .left .description p {
    font-size: 16px;
  }
}

/* ================================================================
   strengths
   ================================================================ */
.strengths.contents {
  padding: 50px 0 70px 0;
}

.strengths-inner {
  width: 1200px;
  max-width: 100%;
  margin: 0 auto;
}
.strengths-inner > .flex {
  margin-bottom: 30px;
  gap: 30px;
  flex-wrap: nowrap;
  justify-content: space-between;
}

/* --- タイトル --- */
.strengths-title {
  position: relative;
}
.strengths-title::before {
  content: "";
  position: absolute;
  width: 105px;
  height: 105px;
  top: -20px;
  left: -50px;
  background-image: url("../image/product/strengths-deco.png");
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
  z-index: -1;
}
.strengths-title h2 {
  font-size: var(--font-size-l);
}

.strengths-inner .title-border {
  width: 450px;
  max-width: 100%;
  margin-bottom: 30px;
}

/* --- 左右レイアウト --- */
.strengths-flex-left {
  flex: 1;
  margin-left: 50px;
}
.strengths-flex-right {
  width: 245px;
  height: 315px;
  overflow: hidden;
  flex-shrink: 0;
}

/* --- 強み項目 --- */
.strengths-item .circle {
  width: 24px;
  height: 24px;
  margin-right: 10px;
  flex-shrink: 0;
}
.strengths-item .circle svg {
  width: 100%;
  height: 100%;
}

.strengths-item.flex {
  flex-wrap: nowrap;
  align-items: flex-start;
}

.strengths-item .strengths-item-text p {
  font-size: var(--font-size-s);
}

/* --- 画像・ボタン --- */
.strengths-img {
  width: 100%;
  text-align: center;
  margin-bottom: 50px;
}
.strengths-img img {
  width: 1020px;
  max-width: 100%;
  height: 100%;
}

.strengths .strengths-free-consultation-btn {
  width: 100%;
  display: flex;
  justify-content: center;
  background-color: unset;
}
.strengths .strengths-free-consultation-btn a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 320px;
  height: 75px;
  background-color: var(--btn-bg-color);
  border-radius: 50px;
  color: var(--color-black);
  font-size: var(--font-size-m);
  text-decoration: none;
  box-shadow: var(--btn-box-shadow);
  transition: var(--btn-transition);
}

/* --- strengths: SP（480px以下） --- */
@media screen and (max-width: 480px) {
  .strengths-inner {
    width: 95%;
    margin: 0 auto;
  }

  .strengths-inner > .flex {
    position: relative;
    margin-bottom: 30px;
  }

  .strengths-title::before {
    display: none;
  }
  .strengths-title h2 {
    font-size: 30px;
  }

  .strengths-inner .title-border {
    width: 75%;
  }

  .strengths-flex-left {
    margin-left: 0;
  }
  .strengths-flex-right {
    width: 105px;
    height: 150px;
    position: absolute;
    top: 20px;
    right: 0;
  }

  .strengths-item.flex {
    align-items: flex-start;
  }
  .strengths-item .circle {
    width: 14px;
    height: 14px;
    margin-top: 4px;
    margin-right: 5px;
  }
  .strengths-item .strengths-item-text p {
    font-size: 3.5vw;
  }

  .strengths-img img {
    width: 100%;
  }

  .strengths .strengths-free-consultation-btn a {
    height: 64px;
  }
}

/* ================================================================
   faq
   ================================================================ */
.faq {
  background-color: var(--bg-color-pink);
}

.faq .question {
  cursor: pointer;
}
.faq .answer {
  display: none;
}

.faq-inner {
  width: 1020px;
  max-width: 1020px;
  margin: 0 auto;
  padding: 50px 0;
}

/* --- タイトル --- */
.faq-inner .faq-title .hatena {
  width: 46px;
  height: 45px;
  margin-right: 10px;
}
.faq-inner .faq-title h2 {
  font-size: var(--font-size-m);
}

.faq-inner > .title-border {
  width: 420px;
  margin-bottom: 50px;
}

/* --- サブタイトル --- */
.faq-inner .sub-title {
  display: flex;
  align-items: center;
  margin-bottom: 20px;
}

.arrow-right-icon {
  width: 25px;
  height: 25px;
  background-color: var(--bg-color-aqua-blue);
  border-radius: 50%;
  position: relative;
  display: inline-block;
  margin-right: 10px;
}
.arrow-right-icon::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 46%;
  transform: translate(-25%, -50%);
  width: 0;
  height: 0;
  border-top: 10px solid transparent;
  border-bottom: 10px solid transparent;
  border-left: 10px solid var(--color-white);
}

.faq-inner .sub-title h3 {
  font-size: var(--font-size-m);
}

/* --- FAQ リスト --- */
.faq-inner .faq-list {
  margin-bottom: 70px;
}
.faq-inner .faq-list:last-child {
  margin-bottom: 0;
}

.faq-inner .faq-item {
  background-color: var(--bg-color-white);
  margin-bottom: 20px;
  padding: 15px 20px;
  border: none;
  border-radius: 10px;
}
.faq-inner .faq-item:last-child {
  margin-bottom: 0;
}

/* --- question --- */
.faq-list .faq-item .question {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.faq-item .question .question-title {
  display: flex;
  align-items: center;
}
.faq-item .question .question-title svg {
  width: 30px;
  height: 30px;
  margin-right: 15px;
}
.faq-item .question .question-title p {
  font-size: var(--font-size-ms);
}

.faq-item .question .plus-btn {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  user-select: none;
}
.faq-item .question .plus-btn p {
  font-size: var(--font-size-xl);
  line-height: 1;
  color: var(--color-orange);
  text-align: center;
  width: 100%;
}

/* --- answer --- */
.faq-item .answer {
  margin-top: 30px;
}
.faq-item .answer .answer-title {
  display: flex;
  align-items: center;
  margin-bottom: 15px;
}
.faq-item .answer .answer-title svg {
  width: 30px;
  height: 30px;
  margin-right: 15px;
}
.faq-item .answer .answer-title p {
  font-size: var(--font-size-ms);
}
.faq-item .answer > p {
  font-size: var(--font-size-xs);
  margin-left: 45px;
}

/* --- faq: SP（480px以下） --- */
@media screen and (max-width: 480px) {
  .faq-inner {
    width: 95%;
    padding: 30px 15px;
  }

  .faq-inner > .title-border {
    width: 100%;
    margin-bottom: 30px;
  }

  .faq-inner .sub-title h3 {
    font-size: var(--font-size-xs);
  }

  .faq-item .question .question-title p {
    font-size: 16px;
  }
  .faq-item .answer .answer-title p {
    font-size: 16px;
  }
  .faq-item .answer > p {
    font-size: 14px;
    margin-left: 30px;
  }

  .faq-item .question .plus-btn p {
    font-size: var(--font-size-m);
  }
}

/* ================================================================
   solution-flow（ご利用の流れ）
   ================================================================ */
.solution-flow-inner {
  padding: 0 130px;
}

/* --- タイトル --- */
.solution-flow-title {
  position: relative;
  display: inline-block;
  margin-bottom: 50px;
}
.solution-flow-title .solution-flow-deco {
  position: absolute;
  width: 75px;
  top: -20px;
  left: -25px;
  z-index: -1;
  pointer-events: none;
}
.solution-flow-title h2 {
  position: relative;
  z-index: 1;
  font-size: var(--font-size-m);
}
.solution-flow-title .title-border {
  width: 300px;
}

/* --- ステップカード --- */
.solution-flow-step-item {
  justify-content: space-between;
  flex-wrap: nowrap;
  background-color: var(--bg-color-light-beige);
  margin-bottom: 20px;
  padding: 30px 50px;
  border-radius: var(--btn-border-radius);
}

.solution-flow-step-item-left {
  flex: 1;
  min-width: 0;
}

.solution-flow-step-item-right {
  width: 280px;
  flex-shrink: 0;
  margin-left: 20px;
}
.solution-flow-step-item-right img {
  width: 100%;
  height: auto;
}

.solution-flow-step-title {
  display: inline-block;
  margin-bottom: 30px;
  padding-right: 50px;
}

.solution-flow-step-item-left h2 {
  font-size: var(--font-size-ml);
  line-height: 1.2;
}
.solution-flow-step-item-left > p {
  line-height: 1.8;
}
.solution-flow-step-item-left p {
  font-size: var(--font-size-sm);
}

/* --- step 下線幅: タイトルのインライン幅に追従 --- */
.solution-flow-step-item-left .title-border {
  width: 100%;
}
.solution-flow-step-item-left .title-border svg {
  width: 100%;
  height: auto;
}

/* --- step アイコン --- */
.solution-flow-step-title .step1,
.solution-flow-step-title .step2,
.solution-flow-step-title .step3,
.solution-flow-step-title .step4 {
  align-items: flex-end;
}
.solution-flow-step-title .step1 svg,
.solution-flow-step-title .step2 svg,
.solution-flow-step-title .step3 svg,
.solution-flow-step-title .step4 svg {
  width: 50px;
  height: 55px;
  margin-right: 10px;
}

/* --- solution-flow: SP（480px以下） --- */
@media screen and (max-width: 480px) {
  .solution-flow-inner {
    padding: 0 15px;
  }

  .solution-flow-title {
    margin-bottom: 30px;
  }
  .solution-flow-title .title-border {
    width: 100%;
  }

  .solution-flow-step-item-left p {
    font-size: 16px;
  }

  .solution-flow-step-item {
    flex-wrap: wrap;
    padding: 20px;
  }

  .solution-flow-step-item-left {
    flex: none;
    width: 100%;
  }

  .solution-flow-step-item-left h2 {
    font-size: var(--font-size-s);
    line-height: 1.4;
  }

  .solution-flow-step-title {
    display: block;
    padding-right: 0;
  }
  .solution-flow-step-item-left .title-border {
    width: 100%;
  }

  .solution-flow-step-title .step1 svg,
  .solution-flow-step-title .step2 svg,
  .solution-flow-step-title .step3 svg,
  .solution-flow-step-title .step4 svg {
    width: 35px;
    height: 40px;
  }

  .solution-flow-step-item-right {
    width: 100%;
    margin-left: 0;
    margin-top: 20px;
    text-align: center;
  }
  .solution-flow-step-item-right img {
    width: 60%;
  }
}

/* ================================================================
   community
   ================================================================ */
.community .community-inner {
  width: 1090px;
  max-width: 1020px;
  margin: 0 auto;
}

/* --- 空き家まるっとお任せ隊 --- */
.community-achievement {
  background-color: var(--bg-color-pink);
  padding: 50px 0;
}
.community-achievement .community-inner.flex {
  position: relative;
}
.community-achievement .community-achievement-left {
  flex: 1;
  padding-right: 270px;
}

.community .community-achievement h2,
.community .community-achievement h2 span {
  font-size: var(--font-size-ml);
}
.community .community-achievement h2 {
  position: relative;
}
.community .community-achievement h2::before {
  content: "";
  position: absolute;
  width: 60px;
  height: 60px;
  top: -20px;
  left: -30px;
  background-image: url("../image/product/community-achievement-deco.png");
  background-size: contain;
  background-repeat: no-repeat;
  pointer-events: none;
}

.community .community-achievement h2 .margin-left20 {
  margin-left: 20px;
}
.community .community-achievement h2 .red {
  color: red;
}

.community .community-achievement-right {
  position: absolute;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 250px;
  height: calc(250px * 1.5 - 90px);
  overflow: hidden;
}
.community .community-achievement .captain3 {
  width: 100%;
  height: calc(100% + 130px);
  position: relative;
}
.community .community-achievement .captain3 img {
  width: 100%;
  height: auto;
  display: block;
}

/* --- 空き家どうしよう --- */
.community .community-hero {
  margin: 30px 0;
}
.community .community-hero img {
  height: 100%;
}

/* --- 無料相談ボタン --- */
.community .community-free-consultation-btn {
  width: 100%;
  margin-bottom: 100px;
  display: flex;
  justify-content: center;
  background-color: unset;
}
.community .community-free-consultation-btn a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 320px;
  height: 75px;
  background-color: var(--btn-bg-color);
  border-radius: 50px;
  color: var(--color-black);
  font-size: var(--font-size-m);
  text-decoration: none;
  box-shadow: var(--btn-box-shadow);
  transition: var(--btn-transition);
}

/* --- 空き家管理代行 --- */
.community .community-agency {
  position: relative;
  width: 100%;
  padding: 0 80px 30px 80px;
  background-color: var(--bg-color-cream);
  border-radius: var(--btn-border-radius);
  overflow: visible;
}
.community .community-agency::before {
  content: "";
  position: absolute;
  width: 250px;
  height: 210px;
  top: -55px;
  left: -50px;
  background-image: url("../image/product/community-agency-deco-left.png");
  background-size: contain;
  background-repeat: no-repeat;
  pointer-events: none;
}
.community .community-agency::after {
  content: "";
  position: absolute;
  width: 180px;
  height: 160px;
  bottom: -20px;
  right: -20px;
  background-image: url("../image/product/community-agency-deco-right.png");
  background-size: contain;
  background-repeat: no-repeat;
  pointer-events: none;
}

.community .community-agency > .flex {
  margin-bottom: 30px;
}

.community .community-agency-title {
  font-size: var(--font-size-m);
  color: var(--color-brown-dark);
  margin-bottom: 30px;
  padding-top: 70px;
  padding-right: 300px;
  font-weight: var(--font-weight-bold);
}
.community .community-agency-left ul {
  margin-left: 20px;
}
.community .community-agency-left ul li {
  font-size: var(--font-size-ms);
  list-style: disc;
  margin-bottom: 10px;
}

.community .community-agency-right {
  position: absolute;
  right: 80px;
  top: 0;
  width: 280px;
  height: calc(280px * 1.5 - 80px);
  overflow: hidden;
}
.community .community-agency-right .captain4 {
  width: 100%;
  height: 100%;
  position: relative;
}
.community .community-agency-right .captain4::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: calc(100% + 80px);
  background-image: url("../image/product/captain4.webp");
  background-size: contain;
  background-repeat: no-repeat;
  background-position: top;
}

/* --- お問い合わせボタン --- */
.community .community-inquiry-btn {
  width: 100%;
  display: flex;
  justify-content: center;
  background-color: unset;
}
.community .community-inquiry-btn a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 430px;
  height: 60px;
  background-color: var(--bg-color-orange);
  border-radius: var(--btn-border-radius);
  color: var(--color-white);
  font-size: var(--font-size-s);
  text-decoration: none;
  box-shadow: var(--btn-box-shadow);
  transition: var(--btn-transition);
}

/* --- community: SP（480px以下） --- */
@media screen and (max-width: 480px) {
  .community .community-inner {
    width: 100%;
    padding-left: 15px;
    padding-right: 15px;
  }

  /* achievement: position absolute */
  .community-achievement .community-inner.flex {
    position: relative;
  }
  .community .community-achievement-left {
    padding-right: 0;
  }
  .community .community-achievement h2,
  .community .community-achievement h2 span {
    font-size: 4.5vw;
  }
  .community .community-achievement-right {
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 120px;
    height: calc(120px * 1.5 - 30px);
  }
  .community .community-achievement .captain3 {
    height: calc(100% + 60px);
  }

  .community .community-hero {
    margin: 30px auto;
    width: 480px;
    max-width: 100%;
  }
  .community .community-free-consultation-btn a {
    height: 64px;
  }

  /* agency: position absolute */
  .community .community-agency-title {
    font-size: 4.5vw;
    padding-top: 50px;
    padding-right: 0;
  }
  .community .community-agency-left ul li {
    font-size: 3.5vw;
  }
  .community .community-agency-right {
    position: absolute;
    right: 20px;
    top: 47%;
    transform: translateY(-50%);
    width: 90px;
    height: calc(90px * 1.5 - 20px);
  }
  .community .community-agency-left {
    padding-right: 90px;
  }
  .community .community-agency {
    padding: 0 20px 30px 20px;
  }
  .community .community-agency::before {
    width: 100px;
    height: 110px;
    top: -30px;
    left: -5px;
  }
  .community .community-agency::after {
    width: 90px;
    height: 80px;
    bottom: -30px;
    right: -5px;
  }
  .community .community-inquiry-btn a {
    width: 290px;
    height: 40px;
    font-size: 14px;
  }
}

/* ================================================================
   footer
   ================================================================ */
footer .footer-inner {
  width: 1160px;
  max-width: 1160px;
  margin: 0 auto;
}

footer .footer-logo {
  width: 640px;
  height: auto;
  margin: 0 auto;
  padding: 70px 0;
}

/* --- 上部 --- */
footer .footer-top {
  justify-content: space-between;
  margin-bottom: 20px;
}
footer .company-logo {
  width: 420px;
  height: auto;
}

footer .footer-nav > .flex {
  gap: 20px;
}
.footer-top .footer-nav ul li a {
  color: var(--color-brown);
  font-size: var(--font-size-sm);
}

/* --- 下部 --- */
.footer-bottom {
  justify-content: space-between;
  margin-bottom: 100px;
}
.footer-bottom > .flex {
  justify-content: space-between;
  align-items: flex-start;
}

.footer-bottom .footer-btn {
  display: flex;
  align-items: center;
  height: var(--btn-height);
  padding: 0 30px;
  background-color: var(--btn-bg-color);
  border-radius: var(--btn-border-radius);
  font-weight: var(--font-weight-bold);
}
.footer-bottom .footer-btn a {
  color: var(--color-dark-red);
  font-size: var(--font-size-xs);
}

.footer-bottom .tel-number {
  align-items: center;
  margin-bottom: 10px;
}
.footer-bottom .tel-number svg {
  width: 34px;
  height: 34px;
  margin-right: 10px;
  line-height: 1.6;
}
.footer-bottom .tel-number p {
  font-size: var(--font-size-ml);
}

.footer-bottom .tel-consultation .reception-hours {
  margin-right: 20px;
  margin-bottom: 10px;
}
.footer-bottom .tel-consultation .holiday {
  margin-bottom: 10px;
}

.footer-bottom .tel-consultation .reception-hours p:first-of-type,
.footer-bottom .tel-consultation .holiday p:first-of-type {
  width: 80px;
  font-size: 15px;
  background-color: var(--color-gray);
  color: var(--color-white);
  margin-right: 10px;
  padding: 3px 0;
  text-align: center;
}
.footer-bottom .tel-consultation .reception-hours p:last-of-type,
.footer-bottom .tel-consultation .holiday p:last-of-type {
  font-size: var(--font-size-sm);
}

.footer-bottom .free-consultation-btn {
  cursor: pointer;
  box-shadow: var(--btn-box-shadow);
  transition: var(--btn-transition);
}

/* --- コピーライト --- */
footer .copyright {
  text-align: center;
  margin-bottom: 30px;
}
footer .copyright p,
footer .copyright p span {
  font-size: 14px;
}

/* --- footer: SP（480px以下） --- */
@media screen and (max-width: 480px) {
  footer {
    margin-bottom: 100px;
  }

  footer .footer-inner {
    width: 95%;
  }

  footer .footer-logo {
    width: 100%;
    padding-right: 25px;
    padding-bottom: 30px;
    padding-left: 25px;
    text-align: center;
  }
  footer .footer-logo img {
    max-width: 100%;
    height: auto;
  }

  footer .footer-top {
    flex-direction: column;
    align-items: center;
    gap: 20px;
  }

  /* ナビ: 2列グリッド */
  footer .footer-nav ul {
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px 30px;
  }
  footer .footer-nav ul li {
    width: calc(50% - 15px);
    text-align: center;
  }

  /* 無料相談ボタン(SP) */
  .footer-free-consultation-btn-article {
    text-align: center;
  }

  /* フッター下部 */
  footer .company-logo {
    width: 280px;
    margin-bottom: 30px;
  }

  .footer-bottom {
    flex-direction: column;
    margin-bottom: 50px;
  }
  .footer-bottom .tel-consultation {
    flex-direction: column;
  }

  .footer-bottom .tel-number p {
    font-size: var(--font-size-l);
  }
  .footer-bottom .tel-consultation .reception-hours,
  .footer-bottom .tel-consultation .holiday {
    margin-bottom: 5px;
  }

  footer .copyright p,
  footer .copyright p span {
    font-size: 12px;
  }
}

/* ================================================================
   無料相談モーダル
   ================================================================ */
body.no-scroll {
  overflow: hidden;
  position: fixed;
  width: 100%;
  height: 100%;
}

.modal-consultation {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(255, 255, 255, 0.8);
  z-index: 9999;
  overflow-y: auto;
}
.modal-consultation.is-open {
  display: block;
}

/* --- モーダル本体 --- */
.modal-content {
  background: var(--bg-color-white);
  width: 1020px;
  max-width: 1020px;
  padding: 55px;
  position: absolute;
  top: 850px;
  left: 50%;
  transform: translate(-50%, -50%);
  box-shadow: var(--modal-box-shadow);
}

/* --- 閉じるボタン --- */
.modal-close {
  position: absolute;
  top: -30px;
  right: -30px;
  width: 68px;
  height: 68px;
  background: var(--bg-color-orange);
  border-radius: 50%;
  border: none;
  cursor: pointer;
  padding: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s;
}
.modal-close span {
  position: absolute;
  width: 35px;
  height: 3px;
  background-color: var(--bg-color-white);
  display: block;
  border-radius: 2px;
}
.modal-close span:nth-child(1) {
  transform: rotate(45deg);
}
.modal-close span:nth-child(2) {
  transform: rotate(-45deg);
}

/* --- ヘッダー --- */
.modal-header {
  text-align: center;
  margin-bottom: 30px;
}
.modal-header h2 {
  font-size: var(--font-size-ml);
  color: var(--color-orange-deep);
  line-height: 1.4;
}
.modal-header .title-border {
  margin-bottom: 30px;
}
.modal-header .title-border svg {
  width: 550px;
}
.modal-header p {
  font-size: var(--font-size-xs);
}

/* --- フォーム --- */
.modal-content form {
  background-color: var(--bg-color-light-yellow);
  padding: 50px 80px;
  border-radius: 20px;
  margin-bottom: 30px;
}

.modal-content form .form-type-himself,
.modal-content form .form-type-building {
  margin-bottom: 50px;
}

.modal-content form .form-type-himself-title,
.modal-content form .form-type-building-title {
  position: relative;
  margin-bottom: 30px;
}
.modal-content form .form-type-himself-title h3,
.modal-content form .form-type-building-title h3 {
  margin-left: 30px;
  font-size: var(--font-size-sm);
}
.modal-content form .form-type-himself-title::before,
.modal-content form .form-type-building-title::before {
  content: "";
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 15px;
  height: 15px;
  background-color: var(--bg-color-orange);
  border-radius: 50%;
}

.modal-content form .flex {
  gap: 50px;
}

.modal-content form .name-group,
.modal-content form .tel-group {
  margin-bottom: 20px;
}

.modal-content form .name-group input,
.modal-content form .email-group input,
.modal-content form .tel-group input,
.modal-content form .inquiry-group textarea {
  width: 100%;
  font-size: var(--font-size-xs);
  padding: 10px 7px;
  border: solid 3px var(--bg-color-orange);
  border-radius: 10px;
}
.modal-content form .inquiry-group textarea {
  resize: none;
  height: 200px;
}

.consult-group,
.holder-group,
.inquiry-group {
  align-items: flex-start;
}

.modal-content form .form-left label {
  font-size: var(--font-size-sm);
}
.modal-content form .form-right label,
.modal-content form .form-right input {
  font-size: var(--font-size-xs);
}

.modal-content form .form-label {
  font-weight: bold;
  position: relative;
}

.modal-content form .form-left {
  width: 35%;
}
.modal-content form .form-right {
  flex: 1;
}

.modal-content form .form-right label {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 5px;
  cursor: pointer;
}
.modal-content form .form-right label:last-of-type {
  margin-bottom: 0;
}
.modal-content form .form-right span {
  font-size: 16px;
}
.modal-content form .form-right > label {
  flex-direction: column;
  align-items: baseline;
}

/* --- ラジオボタン カスタム --- */
.modal-content form .form-right input[type="radio"] {
  appearance: none;
  position: relative;
  width: 20px;
  height: 20px;
  margin: 0 5px 0 0;
  border: 3px solid var(--bg-color-orange);
  border-radius: 50%;
  cursor: pointer;
  background-color: var(--bg-color-white);
}
.modal-content form .form-right input[type="radio"]::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 10px;
  height: 10px;
  background-color: var(--bg-color-orange);
  border-radius: 50%;
  transform: translate(-50%, -50%);
  opacity: 0;
}
.modal-content form .form-right input[type="radio"]:checked::before {
  opacity: 1;
}

/* --- 送信ボタン --- */
.submit-group {
  text-align: center;
}
.submit-group input {
  width: 185px;
  height: 65px;
  background: var(--btn-bg-color);
  border: none;
  border-radius: var(--btn-border-radius);
  color: var(--color-black);
  font-size: var(--font-size-m);
  cursor: pointer;
  box-shadow: var(--btn-box-shadow);
}

/* --- モーダル内電話相談 --- */
.modal-consultation .tel-consultation > .flex {
  justify-content: center;
  gap: 30px;
}
.modal-consultation .tel-consultation > p {
  text-align: center;
  font-size: var(--font-size-sm);
}
.modal-consultation .tel-consultation .tel-number p {
  color: var(--color-orange-warm);
  font-size: var(--font-size-ml);
}
.modal-consultation .tel-consultation .reception-hours p:first-of-type {
  font-size: var(--font-size-xs);
  background-color: var(--color-gray);
  color: var(--color-white);
  margin-right: 10px;
  padding: 3px 7px;
}
.modal-consultation .tel-consultation .reception-hours p:last-of-type {
  font-size: var(--font-size-sm);
}

.modal-consultation .after-submit {
  text-align: center;
  margin-top: 20px;
  font-size: 16px;
}

/* --- サンクスモーダル --- */
.modal-content-thanks {
  background: var(--bg-color-white);
  width: 400px;
  max-width: 400px;
  padding: 30px;
  position: absolute;
  text-align: center;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  box-shadow: var(--modal-box-shadow);
}
.modal-content-thanks p {
  font-size: 16px;
  margin-bottom: 30px;
}
.modal-content-thanks button {
  width: 185px;
  height: 30px;
  background: var(--btn-bg-color);
  border: none;
  border-radius: var(--btn-border-radius);
  color: var(--color-black);
  font-size: 16px;
  cursor: pointer;
  box-shadow: var(--btn-box-shadow);
}

/* --- モーダル: SP（480px以下） --- */
@media screen and (max-width: 480px) {
  .modal-content {
    width: 95%;
    padding: 30px 15px;
    top: 900px;
  }

  .modal-close {
    top: -15px;
    right: -10px;
    width: 50px;
    height: 50px;
  }
  .modal-close span {
    width: 25px;
  }

  .modal-header h2 {
    font-size: var(--font-size-s);
  }
  .modal-header .title-border svg {
    width: 100%;
  }

  .modal-content form {
    padding: 20px 15px;
  }
  .modal-content form .flex {
    flex-direction: column;
    gap: 10px;
  }
  .modal-content form .form-left {
    width: 100%;
  }
}

/* ================================================================
   お問い合わせメニュー（SP固定バー）
   ================================================================ */
#contact-btn {
  display: none;
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  text-align: center;
  cursor: pointer;
  z-index: 9998;
}
.contact-btn-top {
  background-color: var(--bg-color-orange);
  padding: 3px;
}
.contact-btn-top p {
  color: var(--color-white);
  font-size: 14px;
}
.contact-btn-bottom {
  justify-content: center;
  gap: 10px;
  background-color: var(--btn-bg-color);
  padding: 10px;
}
.contact-btn-bottom p {
  font-size: var(--font-size-sm);
  font-weight: var(--font-weight-bold);
}
.contact-btn-bottom i {
  font-size: var(--font-size-sm);
}

/* --- contact-btn: SP（480px以下）のみ表示 --- */
@media screen and (max-width: 480px) {
  #contact-btn {
    display: block;
  }
}

/* ================================================================
   ページトップボタン
   ================================================================ */
#page-top-btn {
  position: fixed;
  bottom: 30px;
  right: 30px;
  cursor: pointer;
  font-size: var(--font-size-sm);
  font-weight: var(--font-weight-bold);
  color: var(--bg-color-brown);
  text-align: center;
  user-select: none;
  z-index: 999;
  background: transparent;
  border: none;
  padding: 0;
}
#page-top-btn .arrow {
  display: block;
  margin: 0 auto;
  width: 0;
  height: 0;
  border-left: 25px solid transparent;
  border-right: 25px solid transparent;
  border-bottom: 20px solid var(--bg-color-brown);
}

/* ================================================================
   タブレット対応（481px〜1199px）
   PC レイアウトを維持しつつ、ビューポートに収める
   ================================================================ */
@media screen and (min-width: 481px) and (max-width: 1199px) {
  /* ========== header ========== */
  .header-inner {
    padding: 0 clamp(15px, 2.5vw, 30px);
  }

  /* ========== first-view ========== */
  .first-view {
    min-height: auto;
  }
  .first-view > .contents.pc {
    flex-wrap: nowrap;
    /* padding-top: ; */
  }
  .first-view > .contents {
    width: 100%;
    padding-left: 30px;
    padding-right: 30px;
  }

  .first-view .hero {
    flex: 1;
    min-width: 0;
  }
  .first-view .hero img {
    width: 100%;
    height: auto;
  }

  .first-view .captain1-contents {
    width: 30%;
    min-width: 200px;
    margin-top: 50px;
    flex-shrink: 0;
  }
  .first-view .captain1-contents .captain1-img img {
    width: 100%;
    height: auto;
  }

  .first-view .captain1-contents .bg-speech-bubble.pc {
    bottom: 30px;
    left: -200px;
    width: 290px;
    height: 110px;
  }
  .first-view .captain1-contents .bg-speech-bubble p,
  .first-view .captain1-contents .bg-speech-bubble p span {
    font-size: 1.6rem;
  }

  /* スライダー: ビューポートに合わせてリキッド化 */
  .first-view .bg-slider {
    width: 100%;
  }
  .first-view .bg-slider img {
    width: 22vw !important;
    height: 15vw !important;
    min-width: 150px;
    min-height: 100px;
  }

  /* テキストとスライダーの被り防止 */
  .first-view .first-view-text {
    position: relative;
    z-index: 5;
    padding-top: 10px;
    padding-bottom: 50px;
  }

  .first-view .first-view-text .thinking-spiral {
    left: 23%;
  }
  .first-view .first-view-text h3 {
    font-size: 3.5vw;
  }
  .first-view .first-view-text h2 {
    font-size: 4vw;
  }
  .first-view .first-view-text .title-border svg {
    width: 60%;
  }

  /* ========== risk ========== */
  .risk {
    width: 100%;
    padding: 0 30px;
  }

  .risk-title h2,
  .risk-title h2 span {
    font-size: var(--font-size-ml);
  }

  .risk-left-box .risk-left-item ul li,
  .risk-left-box .risk-left-item ul li span {
    font-size: var(--font-size-sm);
  }

  /* ========== solution ========== */
  .solution > .solution-inner {
    width: 100%;
    padding: 50px 30px;
  }

  .solution .title-img {
    width: 100%;
    margin-left: 0;
  }

  .solution .intermediary,
  .solution .purchase,
  .solution .rental {
    padding: 30px 40px 50px 40px;
  }

  /* タイトル */
  .intermediary .intermediary-title,
  .purchase .purchase-title,
  .rental .rental-title {
    margin-left: -20px;
  }
  .intermediary .intermediary-title-top svg,
  .purchase .purchase-title-top svg,
  .rental .rental-title-top svg {
    width: 65px;
    height: 80px;
  }
  .intermediary .intermediary-title-top h2,
  .purchase .purchase-title-top h2,
  .rental .rental-title-top h2 {
    font-size: var(--font-size-l);
  }
  .intermediary .intermediary-title-top span,
  .purchase .purchase-title-top span,
  .rental .rental-title-top span {
    font-size: var(--font-size-ms);
  }

  .intermediary .intermediary-title-bottom,
  .purchase .purchase-title-bottom,
  .rental .rental-title-bottom {
    left: 30px;
  }

  /* 横並び維持: .right.pc を表示、SP画像は非表示 */
  .solution .intermediary .flex .right.pc,
  .solution .purchase .flex .right.pc,
  .solution .rental .flex .right.pc {
    display: block !important;
    width: 35%;
    flex: none;
  }
  .solution .intermediary .flex .left,
  .solution .purchase .flex .left,
  .solution .rental .flex .left {
    flex: 1;
    min-width: 0;
    width: auto;
    margin-right: 20px;
    margin-bottom: 0;
  }
  .intermediary .intermediary-img.sp,
  .purchase .purchase-img.sp,
  .rental .rental-img.sp {
    display: none !important;
  }

  /* 説明文 */
  .solution .intermediary .flex .left .description p,
  .solution .purchase .flex .left .description p,
  .solution .rental .flex .left .description p {
    font-size: var(--font-size-sm);
  }

  /* おすすめ */
  .solution .intermediary .recommend p,
  .solution .purchase .recommend p,
  .solution .rental .recommend p {
    font-size: var(--font-size-sm);
  }

  /* 事例 */
  .solution .case-study > .flex {
    padding: 25px;
  }
  .solution .case-study .left {
    width: 250px;
  }
  .case-study-voice-title-text h3 {
    font-size: var(--font-size-s);
  }
  .case-study .right > p {
    font-size: 1.6rem;
  }

  /* ========== strengths ========== */
  .strengths-inner {
    width: 100%;
    padding: 0 30px;
  }

  .strengths-inner .title-border {
    width: 100%;
    max-width: 450px;
  }

  .strengths-flex-left {
    margin-left: 20px;
  }
  .strengths-flex-right {
    width: 180px;
    height: 230px;
  }

  .strengths-item .strengths-item-text p {
    font-size: var(--font-size-sm);
  }

  /* ========== faq ========== */
  .faq-inner {
    width: 100%;
    max-width: 100%;
    padding: 50px 30px;
  }

  .faq-inner > .title-border {
    width: 100%;
    max-width: 420px;
  }

  .faq-item .question .question-title p {
    font-size: var(--font-size-s);
  }
  .faq-item .answer .answer-title p {
    font-size: var(--font-size-s);
  }

  /* ========== solution-flow ========== */
  .solution-flow-inner {
    padding: 0 30px;
  }

  .solution-flow-step-item {
    padding: 25px 30px;
  }

  .solution-flow-step-item-left h2 {
    font-size: var(--font-size-m);
  }
  .solution-flow-step-item-left p {
    font-size: var(--font-size-xs);
  }

  .solution-flow-step-item-right {
    width: 150px;
    margin-left: 15px;
  }

  /* ========== community (vw スケーリング) ========== */
  .community .community-inner {
    width: 100%;
    max-width: 100%;
    padding: 0 clamp(15px, 2.5vw, 30px);
  }

  /* achievement: position absolute で右配置 */
  .community-achievement .community-inner.flex {
    position: relative;
    width: 768px;
  }
  .community .community-achievement-left {
    /* padding-right: clamp(110px, 22vw, 270px); */
    padding-right: 0;
  }
  .community .community-achievement h2,
  .community .community-achievement h2 span {
    font-size: clamp(1.6rem, 2.917vw, 3.5rem);
  }
  .community .community-achievement h2::before {
    width: clamp(30px, 5vw, 60px);
    height: clamp(30px, 5vw, 60px);
    top: clamp(-20px, -1.67vw, -8px);
    left: clamp(-30px, -2.5vw, -12px);
  }
  .community .community-achievement h2 .margin-left20 {
    margin-left: clamp(8px, 1.67vw, 20px);
  }
  .community .community-achievement-right {
    position: absolute;
    right: clamp(15px, 2.5vw, 30px);
    top: 50%;
    transform: translateY(-50%);
    width: clamp(100px, 20.83vw, 250px);
    height: clamp(80px, 23.75vw, 285px);
  }
  .community .community-achievement .captain3 {
    height: calc(100% + clamp(50px, 10.83vw, 130px));
  }

  /* ボタン */
  .community .community-free-consultation-btn a {
    width: clamp(240px, 26.67vw, 320px);
    height: clamp(55px, 6.25vw, 75px);
    font-size: clamp(1.8rem, 2.5vw, 3rem);
  }
  .strengths .strengths-free-consultation-btn a {
    width: 280px;
    height: 65px;
    font-size: var(--font-size-s);
  }

  /* agency: position absolute で右配置 */
  .community .community-agency {
    padding: 0 clamp(25px, 6.67vw, 80px) clamp(20px, 2.5vw, 30px)
      clamp(25px, 6.67vw, 80px);
  }
  .community .community-agency-title {
    font-size: clamp(1.6rem, 2.917vw, 3.5rem);
    padding-right: clamp(120px, 25vw, 300px);
    padding-top: clamp(40px, 5.83vw, 70px);
  }
  .community .community-agency-left ul {
    margin-left: clamp(15px, 3.33vw, 40px);
  }
  .community .community-agency-left ul li {
    font-size: clamp(1.4rem, 2.333vw, 2.8rem);
  }
  .community .community-agency-right {
    position: absolute;
    right: clamp(25px, 6.67vw, 80px);
    top: 0;
    width: clamp(110px, 23.33vw, 280px);
    height: clamp(90px, 28.33vw, 340px);
  }
  .community .community-agency::before {
    width: clamp(100px, 20.83vw, 250px);
    height: clamp(80px, 17.5vw, 210px);
    top: clamp(-55px, -4.58vw, -20px);
    left: clamp(-50px, -4.17vw, -15px);
  }
  .community .community-agency::after {
    width: clamp(70px, 15vw, 180px);
    height: clamp(60px, 13.33vw, 160px);
    bottom: clamp(-20px, -1.67vw, -8px);
    right: clamp(-20px, -1.67vw, -8px);
  }
  .community .community-inquiry-btn a {
    width: 100%;
    max-width: 400px;
    font-size: var(--font-size-sm);
  }

  /* ========== footer ========== */
  footer .footer-inner {
    width: 100%;
    max-width: 100%;
    padding: 0 30px;
  }

  footer .footer-logo {
    width: 100%;
    max-width: 640px;
    padding-right: 25px;
    padding-left: 25px;
  }
  footer .company-logo {
    width: 320px;
  }

  .footer-bottom .tel-number p {
    font-size: var(--font-size-m);
  }

  /* ========== モーダル ========== */
  .modal-content {
    width: 95%;
    padding: 40px 30px;
  }
  .modal-header h2 {
    font-size: var(--font-size-m);
  }
  .modal-header .title-border svg {
    width: 100%;
    max-width: 550px;
  }
  .modal-content form {
    padding: 30px;
  }
  .modal-content form .flex {
    gap: 30px;
  }
}

/* ================================================================
   小タブレット補正（481px〜799px）
   ================================================================ */
@media screen and (min-width: 481px) and (max-width: 799px) {
  /* first-view */
  .first-view .captain1-contents {
    width: 25%;
    min-width: 130px;
  }

  .first-view .first-view-text {
    padding-left: 15px;
    padding-right: 15px;
  }

  .first-view .captain1-contents .bg-speech-bubble.pc {
    left: -100px;
    width: 190px;
    height: 70px;
    bottom: 20px;
  }
  .first-view .captain1-contents .bg-speech-bubble p,
  .first-view .captain1-contents .bg-speech-bubble p span {
    font-size: 1rem;
    margin-top: 3px;
  }

  /* risk */
  .risk-title h2,
  .risk-title h2 span {
    font-size: var(--font-size-m);
  }
  .risk-left-box .risk-left-item h3 {
    font-size: var(--font-size-s);
  }
  .risk .risk-text p {
    font-size: var(--font-size-s);
  }

  /* solution カード */
  .solution .intermediary,
  .solution .purchase,
  .solution .rental {
    padding: 20px 25px 40px 25px;
  }
  .intermediary .intermediary-title,
  .purchase .purchase-title,
  .rental .rental-title {
    margin-left: -10px;
  }
  .intermediary .intermediary-title-top svg,
  .purchase .purchase-title-top svg,
  .rental .rental-title-top svg {
    width: 50px;
    height: 60px;
  }
  .intermediary .intermediary-title-top h2,
  .purchase .purchase-title-top h2,
  .rental .rental-title-top h2 {
    font-size: var(--font-size-ml);
  }
  .intermediary .intermediary-title-top span,
  .purchase .purchase-title-top span,
  .rental .rental-title-top span {
    font-size: var(--font-size-s);
  }

  .solution .intermediary .flex .left .description p,
  .solution .purchase .flex .left .description p,
  .solution .rental .flex .left .description p {
    font-size: var(--font-size-xs);
  }

  .solution .case-study .left {
    width: 180px;
  }
  .case-study .right > p {
    font-size: 1.4rem;
  }

  /* strengths */
  .strengths-title h2 {
    font-size: 5vw;
  }
  .strengths-flex-right {
    width: 120px;
    height: 155px;
  }
  .strengths-item .strengths-item-text p {
    font-size: var(--font-size-xs);
  }

  /* faq */
  .faq-item .question .question-title p,
  .faq-item .answer .answer-title p {
    font-size: var(--font-size-sm);
  }

  /* solution-flow */
  .solution-flow-step-item {
    padding: 20px;
  }
  .solution-flow-step-item-left h2 {
    font-size: var(--font-size-s);
  }
  .solution-flow-step-item-left p {
    font-size: var(--font-size-xs);
    line-height: 1.6;
  }
  .solution-flow-step-item-right {
    margin-left: 10px;
  }
  .solution-flow-step-title .step1 svg,
  .solution-flow-step-title .step2 svg,
  .solution-flow-step-title .step3 svg,
  .solution-flow-step-title .step4 svg {
    width: 40px;
    height: 45px;
  }

  /* footer */
  footer .company-logo {
    width: 250px;
    margin-bottom: 10px;
  }
  footer .footer-nav {
    margin-bottom: 10px;
  }
  .footer-bottom .tel-number p {
    font-size: var(--font-size-s);
  }

  /* modal */
  .modal-content form {
    padding: 20px 15px;
  }
  .modal-content form .flex {
    gap: 20px;
  }
  .modal-header h2 {
    font-size: var(--font-size-s);
  }
}
