/* Matching service LP */
main:has(.matching-lp) { margin-bottom: 0; }

/* ログイン時：管理バー分のオフセット */
.admin-bar .matching-hero { padding-top: calc(48px + 32px); }
@media (max-width: 782px) {
  .admin-bar .matching-hero { padding-top: calc(28px + 46px); }
}

.matching-lp {
  --matching-navy: #0b2435;
  --matching-navy-2: #11364b;
  --matching-green: #16b98e;
  --matching-green-dark: #078264;
  --matching-mint: #e8f8f3;
  --matching-cream: #f7f9f6;
  --matching-line: #dce7e2;
  --matching-text: #18313f;
  color: var(--matching-text);
  background: #fff;
  font-family: "Noto Sans JP", sans-serif;
  overflow: clip;
}

.matching-lp *, .matching-lp *::before, .matching-lp *::after { box-sizing: border-box; }
.matching-lp h1, .matching-lp h2, .matching-lp h3, .matching-lp p, .matching-lp figure { margin: 0; }
.matching-lp a { text-decoration: none; }
.matching-shell { width: min(1160px, calc(100% - 48px)); margin-inline: auto; }
.matching-section { padding: 112px 0; scroll-margin-top: 88px; }
.matching-section--soft { background: var(--matching-cream); }
.matching-section--dark { background: #f0f8f5; color: var(--matching-text); }

.matching-section-head { max-width: 720px; margin: 0 auto 56px; text-align: center; }
.matching-section-label { margin-bottom: 12px !important; color: var(--matching-green-dark); font-size: 13px; font-weight: 700; letter-spacing: .18em; }
.matching-section-head h2, .matching-intro h2 { color: var(--matching-navy); font-size: clamp(28px, 3.4vw, 40px); font-weight: 700; letter-spacing: .02em; line-height: 1.42; text-wrap: balance; }
.matching-section-head > p:last-child { margin-top: 18px; color: #3f535d; font-size: 17px; line-height: 1.95; }
.matching-section-head--light h2 { color: #fff; }
.matching-section-head--light > p:last-child { color: #b8cad3; }

.matching-btn { display: inline-flex; min-height: 64px; align-items: center; justify-content: center; gap: 36px; padding: 16px 30px; border-radius: 5px; font-weight: 700; transition: transform .25s ease, box-shadow .25s ease, background .25s ease; }
.matching-btn:hover { transform: translateY(-2px); }
.matching-btn--primary { color: #fff; background: var(--matching-green); box-shadow: 0 12px 30px rgba(22,185,142,.25); }
.matching-btn--primary:hover { color: #fff; background: #10a982; box-shadow: 0 16px 34px rgba(22,185,142,.32); }
.matching-btn--white { color: var(--matching-navy); background: #fff; box-shadow: 0 12px 30px rgba(1,39,29,.15); }
.matching-btn--white:hover { color: var(--matching-navy); box-shadow: 0 16px 38px rgba(1,39,29,.24); }

.matching-hero { position: relative; min-height: 560px; padding: 48px 0 90px; background: linear-gradient(122deg, #f0fbf7 0%, #f8fcfa 53%, #e2f6ef 100%); }
.matching-hero::before { position: absolute; top: 100px; left: -100px; width: 380px; height: 380px; border: 1px solid rgba(22,185,142,.18); border-radius: 50%; content: ""; }
.matching-hero__inner { position: relative; z-index: 1; display: grid; grid-template-columns: .92fr 1.08fr; align-items: center; gap: 30px; }
.matching-eyebrow { margin-bottom: 22px !important; color: var(--matching-green-dark); font-size: 12px; font-weight: 700; letter-spacing: .16em; }
.matching-hero__title { color: var(--matching-navy); font-size: clamp(38px, 4.4vw, 58px); font-weight: 700; letter-spacing: -.03em; line-height: 1.28; white-space: nowrap; }
.matching-hero__title span { position: relative; z-index: 0; white-space: nowrap; font-size: 1em !important; font-weight: inherit; line-height: inherit; }
.matching-hero__title span::after { position: absolute; z-index: -1; right: 0; bottom: 4px; left: 0; height: 15px; background: #9be8d3; content: ""; }
.matching-hero__lead { margin: 28px 0 38px !important; color: #2f4654; font-size: 18px; line-height: 2; }
.matching-hero__visual { position: relative; display: flex; align-items: center; justify-content: center; max-height: 340px; overflow: hidden; }
.matching-hero__visual img { position: relative; z-index: 1; width: 85%; max-width: none; height: auto; filter: drop-shadow(0 26px 28px rgba(17,54,75,.18)); }

.matching-local-nav { position: relative; z-index: 5; border-bottom: 1px solid var(--matching-line); background: #fff; }
.matching-local-nav__inner { display: flex; justify-content: center; }
.matching-local-nav a { position: relative; padding: 22px 25px; color: #4a626d; font-size: 13px; font-weight: 600; }
.matching-local-nav a::after { position: absolute; right: 0; bottom: 16px; left: 0; width: 0; height: 2px; margin: auto; background: var(--matching-green); content: ""; transition: width .2s ease; }
.matching-local-nav a:hover { color: var(--matching-green-dark); }
.matching-local-nav a:hover::after { width: 32px; }

.matching-intro__inner { display: grid; grid-template-columns: .9fr 1.1fr; gap: 90px; align-items: start; }
.matching-intro__body { padding-top: 34px; }
.matching-intro__body p { color: #3f535d; font-size: 17px; line-height: 2.1; }
.matching-intro__body p + p { margin-top: 20px; }

.matching-works { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.matching-work-card { overflow: hidden; border: 1px solid var(--matching-line); border-radius: 8px; background: #fff; transition: transform .25s ease, box-shadow .25s ease; }
.matching-work-card:hover { transform: translateY(-5px); box-shadow: 0 20px 45px rgba(11,36,53,.1); }
.matching-work-card__link { display: flex; height: 100%; flex-direction: column; color: inherit; }
.matching-work-card__image { overflow: hidden; aspect-ratio: 16 / 10; background: #dceee8; }
.matching-work-card__image img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.matching-work-card:hover .matching-work-card__image img { transform: scale(1.035); }
.matching-work-card__placeholder { display: grid; width: 100%; height: 100%; place-items: center; background: linear-gradient(145deg, #dff6ee, #c6e8dd); color: var(--matching-green-dark); font-size: 13px; font-weight: 700; letter-spacing: .18em; }
.matching-work-card__body { display: flex; min-height: 220px; flex: 1; flex-direction: column; padding: 27px 26px; }
.matching-work-card__category { margin-bottom: 10px !important; color: var(--matching-green-dark); font-size: 12px; font-weight: 700; }
.matching-work-card h3 { color: var(--matching-navy); font-size: 19px; line-height: 1.65; }
.matching-work-card__excerpt { display: -webkit-box; overflow: hidden; margin-top: 12px !important; color: #4a5d67; font-size: 14px; line-height: 1.8; -webkit-box-orient: vertical; -webkit-line-clamp: 2; }
.matching-text-link { display: block; margin-top: auto; padding-top: 20px; color: var(--matching-green-dark); font-size: 13px; font-weight: 700; }

.matching-reasons { display: flex; flex-wrap: wrap; gap: 16px; justify-content: center; }
.matching-reason { position: relative; overflow: hidden; flex: 0 0 calc(33.333% - 11px); padding: 36px 30px 32px; border: 1px solid var(--matching-line); border-radius: 10px; background: #fff; }
.matching-reason__number { margin-bottom: 16px; }
.matching-reason__number span { display: flex; flex-direction: column; gap: 2px; }
.matching-reason__number span::before { content: "REASON"; color: var(--matching-green); font-family: Arial, sans-serif; font-size: 10px; font-weight: 700; letter-spacing: .14em; line-height: 1; }
.matching-reason__number span em { color: var(--matching-green); font-family: Arial, sans-serif; font-size: 40px; font-style: normal; font-weight: 700; letter-spacing: -.04em; line-height: 1; }
.matching-reason h3 { margin-bottom: 10px; color: var(--matching-navy); font-size: 18px; font-weight: 700; }
.matching-reason div p { color: #3f535d; font-size: 15px; line-height: 1.9; }

.matching-types { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; list-style: none; padding: 0; margin: 0; }
.matching-type { display: inline-flex; align-items: center; gap: 8px; padding: 12px 22px; border: 1px solid #cde8df; border-radius: 999px; background: #fff; color: var(--matching-navy); font-size: 14px; font-weight: 600; transition: border-color .2s ease, color .2s ease, transform .2s ease; }
.matching-type::before { width: 6px; height: 6px; border-radius: 50%; background: var(--matching-green); content: ""; }
.matching-type:hover { border-color: var(--matching-green); color: var(--matching-green-dark); transform: translateY(-2px); }
.matching-functions__note { margin-top: 28px !important; color: #6a7c86; font-size: 13px; text-align: center; }

.matching-price-section { background: linear-gradient(180deg, #fff 0%, #f7fbf9 100%); }
.matching-prices { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; align-items: stretch; }
.matching-price { position: relative; padding: 44px 30px 38px; border: 2px solid var(--matching-green); border-radius: 8px; background: #fff; text-align: center; }
.matching-price--featured { border: 2px solid var(--matching-green); box-shadow: 0 20px 50px rgba(22,185,142,.13); }
.matching-price__badge { position: absolute; top: 0; left: 50%; padding: 6px 22px; border-radius: 0 0 5px 5px; color: #fff; background: var(--matching-green); font-size: 12px; font-weight: 700; transform: translateX(-50%); }
.matching-price__type { margin-bottom: 12px !important; color: var(--matching-green-dark); font-size: 11px; font-weight: 700; letter-spacing: .15em; }
.matching-price h3 { color: var(--matching-navy); font-size: 20px; }
.matching-price__amount { margin: 22px 0 10px !important; color: var(--matching-navy); font-size: 14px; white-space: nowrap; }
.matching-price__amount strong { font-family: Arial, sans-serif; font-size: clamp(31px, 3.2vw, 43px); letter-spacing: -.04em; }
.matching-price__duration { display: flex; align-items: center; justify-content: center; gap: 6px; margin: 0 0 18px !important; color: var(--matching-green-dark); font-size: 15px; font-weight: 700; }
.matching-price > p:last-child { color: #3f535d; font-size: 16px; line-height: 1.9; }
.matching-price-section__note { margin-top: 28px !important; color: #6a7c86; font-size: 13px; text-align: center; }

.matching-flow { position: relative; max-width: 900px; margin: 0 auto; padding: 0; list-style: none; }
.matching-flow::before { position: absolute; top: 55px; bottom: 55px; left: 58px; width: 1px; background: #a7d9cc; content: ""; }
.matching-flow__item { position: relative; display: grid; grid-template-columns: 116px 1fr; align-items: center; min-height: 126px; }
.matching-flow__number { position: relative; z-index: 1; display: flex; width: 84px; height: 84px; flex-direction: column; align-items: center; justify-content: center; border: 1px solid #9bd8c8; border-radius: 50%; color: var(--matching-green-dark); background: var(--matching-cream); font-family: Arial, sans-serif; font-size: 25px; font-weight: 700; }
.matching-flow__number span { margin-bottom: 1px; font-size: 8px; letter-spacing: .14em; }
.matching-flow__body { padding: 24px 30px; border-bottom: 1px solid var(--matching-line); }
.matching-flow__body h3 { margin-bottom: 9px; color: var(--matching-navy); font-size: 19px; }
.matching-flow__body p { color: #3f535d; font-size: 15px; line-height: 1.85; }

.matching-faq-wrap { max-width: 960px; }
.matching-faq { border-top: 1px solid var(--matching-line); }
.matching-faq__item { border-bottom: 1px solid var(--matching-line); }
.matching-faq__item summary { display: grid; grid-template-columns: 40px 1fr 24px; gap: 15px; align-items: center; padding: 27px 12px; color: var(--matching-navy); font-size: 16px; font-weight: 600; cursor: pointer; list-style: none; }
.matching-faq__item summary::-webkit-details-marker { display: none; }
.matching-faq__mark { color: var(--matching-green-dark); font-family: Arial, sans-serif; font-size: 20px; font-weight: 700; }
.matching-faq__toggle { position: relative; width: 18px; height: 18px; }
.matching-faq__toggle::before, .matching-faq__toggle::after { position: absolute; top: 8px; right: 0; width: 16px; height: 1px; background: var(--matching-navy); content: ""; transition: transform .2s ease; }
.matching-faq__toggle::after { transform: rotate(90deg); }
.matching-faq__item[open] .matching-faq__toggle::after { transform: rotate(0); }
.matching-faq__answer { display: grid; grid-template-columns: 40px 1fr; gap: 15px; padding: 0 52px 28px 12px; }
.matching-faq__mark--a { color: #86a39b; }
.matching-faq__answer p { color: #3f535d; font-size: 15px; line-height: 1.95; }

.matching-cta { position: relative; overflow: hidden; padding: 102px 0; color: #fff; background: linear-gradient(125deg, #0ca57e, #16b98e); text-align: center; }
.matching-cta__inner { position: relative; z-index: 1; display: flex; align-items: center; gap: 60px; text-align: left; }
.matching-cta__media { flex: 0 0 26%; margin: 0; }
.matching-cta__media img { display: block; width: 100%; height: auto; object-fit: cover; border-radius: 22px; box-shadow: 0 26px 60px rgba(0,0,0,.28); }
.matching-cta__body { flex: 1 1 auto; min-width: 0; }
.matching-cta .matching-section-label { color: #c8f5e8; }
.matching-cta h2 { font-size: clamp(30px, 4.5vw, 48px); line-height: 1.5; text-wrap: balance; }
.matching-cta__body > p:nth-of-type(2) { margin: 22px 0 34px !important; color: #e3fff7; font-size: 15px; line-height: 2; }
.matching-cta__sub { margin-top: 18px !important; color: #cdf4e8; font-size: 12px; }
.matching-cta__shape { position: absolute; border: 1px solid rgba(255,255,255,.22); border-radius: 50%; }
.matching-cta__shape--one { top: -190px; left: -120px; width: 480px; height: 480px; }
.matching-cta__shape--two { right: -90px; bottom: -260px; width: 560px; height: 560px; }

@media (max-width: 900px) {
  .matching-section { padding: 88px 0; }
  .matching-hero { min-height: auto; padding-top: calc(10px); }
  .matching-hero__inner { grid-template-columns: 1fr 1fr; }
  .matching-hero__title { font-size: clamp(37px, 5.4vw, 52px); }
  .matching-hero__visual { max-height: 380px; }
  .matching-hero__visual img { width: 115%; }
  .matching-local-nav a { padding-inline: 14px; }
  .matching-intro__inner { gap: 50px; }
  .matching-works { gap: 15px; }
  .matching-work-card__body { padding: 22px 19px; }
  .matching-prices { gap: 12px; }
  .matching-price { padding-inline: 18px; }
}

@media (max-width: 700px) {
  .matching-shell { width: min(100% - 34px, 560px); }
  .matching-section { padding: 72px 0; }
  .matching-section-head { margin-bottom: 38px; }
  .matching-section-head h2, .matching-intro h2 { font-size: 27px; }
  .matching-section-head > p:last-child { font-size: 15px; }
  .matching-pc { display: none; }
  .matching-btn { width: 100%; min-height: 58px; }
  .matching-hero { padding: calc(28px) 0 44px; }
  .matching-hero::before { display: none; }
  .matching-hero__inner { display: flex; flex-direction: column; gap: 0; text-align: center; }
  .matching-hero__content { display: contents; }
  .matching-eyebrow { order: 1; margin-bottom: 12px !important; font-size: 10px; letter-spacing: .12em; }
  .matching-hero__title { order: 2; margin-bottom: 36px !important; font-size: clamp(31px, 8.4vw, 40px); line-height: 1.34; white-space: normal; }
  .matching-hero__title span::after { bottom: 2px; height: 11px; }
  .matching-hero__visual { order: 3; max-height: none; width: 100%; margin: 0 auto 26px; }
  .matching-hero__visual img { width: 100%; }
  .matching-hero__lead { order: 4; margin: 0 auto 26px !important; max-width: 22em; font-size: 15px; line-height: 1.95; }
  .matching-hero__content .matching-btn { order: 5; }
  .matching-local-nav { display: none; }
  .matching-intro__inner { display: block; }
  .matching-intro__body { padding-top: 28px; }
  .matching-intro__body p { font-size: 15px; line-height: 2; }
  .matching-works { grid-template-columns: 1fr; gap: 18px; }
  .matching-work-card__body { min-height: auto; }
  .matching-text-link { margin-top: 16px; }
  .matching-reason { flex: 0 0 100%; padding: 28px 26px 26px; }
  .matching-reason__number { margin-bottom: 12px; }
  .matching-reason h3 { font-size: 17px; }
  .matching-types { gap: 9px; }
  .matching-type { padding: 10px 16px; font-size: 13px; }
  .matching-prices { grid-template-columns: 1fr; gap: 16px; }
  .matching-price { padding: 38px 24px 30px; }
  .matching-price__amount strong { font-size: 39px; }
  .matching-flow::before { left: 29px; }
  .matching-flow__item { grid-template-columns: 74px 1fr; min-height: 144px; }
  .matching-flow__number { width: 60px; height: 60px; font-size: 19px; }
  .matching-flow__body { padding: 24px 0 24px 12px; }
  .matching-flow__body h3 { font-size: 17px; }
  .matching-flow__body p { font-size: 14px; }
  .matching-faq__item summary { grid-template-columns: 30px 1fr 20px; gap: 8px; padding: 22px 2px; font-size: 14px; line-height: 1.65; }
  .matching-faq__answer { grid-template-columns: 30px 1fr; gap: 8px; padding: 0 26px 23px 2px; }
  .matching-cta { padding: 74px 0; }
  .matching-cta h2 { font-size: 26px; }
  .matching-cta h2 br, .matching-cta p br { display: none; }
  .matching-cta__inner { flex-direction: column; text-align: center; gap: 30px; }
  .matching-cta__media { flex-basis: auto; width: 100%; }
  .matching-cta__media img { height: auto; }
  .matching-cta__body > p:nth-of-type(2) { font-size: 14px; }
}

.matching-totop { position: fixed; right: 28px; bottom: 32px; z-index: 100; display: grid; place-items: center; width: 48px; height: 48px; border-radius: 50%; color: #fff; background: #16b98e; box-shadow: 0 4px 14px rgba(22,185,142,.35); opacity: 0; pointer-events: none; transition: opacity .25s ease, transform .25s ease; }
.matching-totop:hover { background: #078264; transform: translateY(-3px); }
.matching-totop.is-visible { opacity: 1; pointer-events: auto; }

@media (prefers-reduced-motion: reduce) {
  .matching-lp *, .matching-lp *::before, .matching-lp *::after { scroll-behavior: auto !important; transition-duration: .01ms !important; animation-duration: .01ms !important; }
}
