:root {
  --color-primary: #19609E;
  --color-accent: #f0be00;
  --max-width: 1240px;
  --max-width-wide: 1380px;
}

.page_tesa-maintenance #contents {
  max-width: none;
  width: 100%;
  margin-bottom: 0;
}

html,
body {
  margin: 0;
  padding: 0;
  line-height: 1.8;
}

#topcontrol {
  display: block !important;
}

.page_tesa-maintenance .sp-display {
  display: none !important;
}

a {
  color: inherit;
  text-decoration: none;
}

ul {
  list-style-position: inside;
  padding-left: 0;
}

img {
  max-width: 100%;
  height: auto;
  vertical-align: bottom;
}

.text__white {
  color: #fff;
}

main header {
  position: static;
}

h2 {
  margin: 0 0 21px;
  color: var(--color-primary);
  font-size: 30px;
}

h3 {
  margin: 0 0 15px;
  color: var(--color-primary);
  font-size: 26px;
}

h1, h2, h3, h4 {
  line-height: 1.4;
}

.section__inner {
  position: relative;
  z-index: 1;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: clamp(48px, 9vw, 64px) 24px clamp(68px, 10vw, 80px);
}

.section__header {
  text-align: center;
}

.section__label {
  margin: 0;
  color: #c2cfdb;
  font-size: 16px;
}

.card {
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 14px 34px rgba(26, 65, 104, 0.12);
}

.info-box {
  background: linear-gradient(90deg, var(--color-primary) 0%, #1db6ef 100%);
  box-shadow: 0 12px 30px rgba(29, 116, 186, 0.16);
  border-radius: 12px;
  max-width: 730px;
  margin: 48px auto 0;
  padding: 16px;
}

.info-box__wrap {
  background-color: #fff;
  border-radius: 8px;
}

.info-box__title {
  position: relative;
  display: inline-block;
  padding: 0px 24px 8px 8px;
  margin-bottom: 0;
  border-radius: 0 0 8px 0;
  font-size: 20px;
}

.repair-range {
  background: linear-gradient(90deg, var(--color-primary) 0%, #1B86C2 100%);
}

.precautions {
  background: linear-gradient(90deg, #1961A0 0%, #197EBA 100%);
}

.info-box__title img {
  vertical-align: middle;
  display: inline-block;
}

.supported-models__note {
  max-width: 700px;
  margin: 28px auto 0;
  padding: 12px;
  border-radius: 10px;
}

.note-box__body {
  padding: 22px 56px;
  color: var(--color-primary);
}

.note-box__body ul {
  line-height: 2.5;
}

.note-box__icon {
  display: inline-block !important;
  width: 25px !important;
  vertical-align: middle;
}

/* hero */
.hero {
  position: relative;
  background: url("https://www.kk-yanagisawa.co.jp/dcms_media/image/kv-pc.jpg") right top / cover no-repeat;
}

.hero::before {
  position: absolute;
  inset: 0;
  content: "";
  pointer-events: none;
}

.hero__inner {
  position: relative;
  z-index: 1;
  max-width: var(--max-width);
  padding: 0 24px;
  min-height: 65vh;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  color: #fff;
}

.hero__title {
  margin: 0;
  text-shadow: 0 4px 20px rgba(0, 0, 0, 0.18);
  font-size: 42px;
}

.hero__capital-title {
  font-size: 55px;
}

@media (min-width: 1920px) {
  .hero__inner {
    min-height: 50vh;
  }
}

.hero__lead {
  margin: 24px 0 0;
}

.hero__actions {
  display: flex;
  gap: 18px;
  margin-top: 30px;
  font-weight: bold;
  color: #333;
}

.hero__button {
  min-width: 246px;
  padding: 20px 30px;
  border: 1px solid #fff;
  border-radius: 12px;
  box-sizing: border-box;
  display: inline-flex;
  justify-content: center;
  align-items: center;
  gap: 12px;
  box-shadow: 0 14px 36px rgba(5, 24, 30, 0.24);
  transition: transform 0.2s ease, box-shadow 0.2s ease, filter 0.2s ease;
}

.hero__button:hover {
  transform: translateY(-2px);
  box-shadow: 0 18px 44px rgba(5, 24, 30, 0.3);
  filter: brightness(1.03);
  text-decoration: none;
}

.hero__button--accent {
  background-color: #E3BC00;;
}

.hero__button--primary {
  background-color: var(--color-primary);
}

.hero__button--primary:hover {
  color: #fff;
}

.hero__button--light {
  background-color: #fff;
}

/* about-team */
.about-team {
  position: relative;
}

.about-team::after {
  position: absolute;
  left: 50%;
  bottom: 0;
  width: min(100%, 1680px);
  aspect-ratio: 3838 / 188;
  transform: translateX(-50%);
  background: url("https://www.kk-yanagisawa.co.jp/dcms_media/image/maintenance-team.png") center bottom / contain no-repeat;
  content: "";
  pointer-events: none;
}

.about-team__header-icon {
  width: 50px !important;
}

.about-team__grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
  margin-top: 40px;
}

.about-team__card {
  padding: 28px 26px 30px;
  border-radius: 12px;
}

.about-team__card-icon {
  display: flex;
  justify-content: center;
  align-items: center;
  margin-bottom: 22px;
}

.about-team__card h3 {
  font-size: 18px;
  text-align: center;
}

.about-team__card-icon img {
  width: 70px;
  height: 70px;
  object-fit: contain;
  background-color: var(--color-primary);
  border-radius: 50%;
  padding: 12px;
}

/* supported-models */
.supported-models {
  position: relative;
  background-color: #F8F8F8;
}

.supported-models::after {
  position: absolute;
  inset: auto 0 0;
  height: min(34vw, 380px);
  background: url("https://www.kk-yanagisawa.co.jp/dcms_media/image/bottom-network-mark.png") center bottom / cover no-repeat;
  content: "";
  pointer-events: none;
  opacity: 0.92;
}

.supported-models__inner {
  max-width: var(--max-width-wide);
}

.supported-models__grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
  margin-top: clamp(40px, 5vw, 56px);
}

.model-card {
  padding: 20px;
  border-radius: 8px;
}

.model-card__category {
  display: inline-block;
  padding: 8px 16px;
  border-radius: 999px;
  background: var(--color-primary);
  font-size: 16px;
  color: #fff;
}

.model-card__items {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.model-card__items--single {
  grid-template-columns: 1fr;
}

.model-card__item {
  border: 1px solid #ebebeb;
  border-radius: 12px;
  padding: 12px;
}

.model-card__item p {
  color: var(--color-primary);
  margin: 0;
}

.model-card__item--single img {
  height: 247px !important;
}

.model-card-image img {
  height: 220px;
  object-fit: contain;
}

/* repair-flow */
.repair-flow {
  background: #fff;
}

.repair-flow__steps {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 24px;
  margin-top: clamp(42px, 5vw, 60px);
}

.flow-step {
  position: relative;
  text-align: center;
}

.flow-step h3 {
  font-size: 18px;
}

.flow-step .flow-step__icon-wrap::before,
.flow-step .flow-step__icon-wrap::after {
  background: #bfe1ff;
  content: "";
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 100%;
  height: 2px;
}

.flow-step .flow-step__icon-wrap::before {
  left: calc(50% + 60px);
}

.flow-step .flow-step__icon-wrap::after {
  right: calc(50% + 60px);
}

.flow-step:first-of-type .flow-step__icon-wrap::after,
.flow-step:last-of-type .flow-step__icon-wrap::before {
  display: none;
}

.flow-step__badge {
  display: inline-block;
  margin: 0 0 18px;
  padding: 0 22px;
  line-height: 1.4;
  border-radius: 999px;
  background: var(--color-accent);
  font-size: 18px;
  font-weight: bold;
  color: #fff;
}

.flow-step__badge span {
  font-size: 24px;
}

.flow-step__icon-wrap {
  position: relative;
  z-index: 1;
  width: 124px;
  height: 124px;
  margin: 0 auto 12px;
  border-radius: 50%;
  background-color: #F5F5F5;
  display: flex;
  align-items: center;
  justify-content: center;
}

.flow-step__icon {
  width: 65px !important;
  height: 65px !important;
  object-fit: contain;
}

.flow-step__text {
  text-align: left;
}

.flow-step__text span {
  color: var(--color-primary);
}

.flow-notes {
  position: relative;
  margin: clamp(48px, 6vw, 70px) auto 40px;
  padding: 16px;
  border-radius: 16px;
  background: linear-gradient(90deg, var(--color-primary) 0%, #1db6ef 100%);
  box-shadow: 0 16px 40px rgba(29, 116, 186, 0.16);
  max-width: 100%;
}

.flow-notes__header {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 0px 24px 8px 8px;
  background: linear-gradient(90deg, #1961A0 0%, #1C9ED9 100%);
  border-radius: 0 0 8px 0;
}

.flow-notes__title {
  margin: 0;
  font-size: 24px;
}

.flow-notes__subtitle {
  margin: 0;
}

.flow-notes__body {
  position: relative;
  border-radius: 0 16px 16px 16px;
  background: #fff;
  padding: 40px 82px 36px;
}

.flow-notes__section + .flow-notes__section {
  margin-top: 32px;
}

.flow-notes__section-title {
  position: relative;
  padding: 8px 24px 8px 48px;
  border-radius: 14px;
  background: #ececec;
  font-size: 20px;
  margin: 0 0 16px;
}

.flow-notes__section-title::before {
  position: absolute;
  top: 50%;
  left: 18px;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: #e0b300;
  transform: translateY(-50%);
  content: "";
}

.flow-notes__section-title::after {
  position: absolute;
  top: 50%;
  left: 27px;
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: #ececec;
  transform: translateY(-50%);
  content: "";
}

.flow-notes__inspection {
  display: grid;
  grid-template-columns: minmax(280px, 352px) 44px minmax(0, 1fr);
  gap: 12px;
  align-items: center;
}

.flow-notes__cost-card {
  padding: 28px 28px 30px;
  border-radius: 22px;
  background: #f5f5f5;
  text-align: center;
  position: relative;
}

.flow-notes__cost-title {
  font-size: 18px;
  margin: 0px;
  position: absolute;
  top: -14px;
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
}

.flow-notes__cost-list {
  margin: 0;
}

.flow-notes__cost-list dt {
  margin-top: 16px;
  color: var(--color-primary);
  font-weight: bold;
}

.flow-notes__cost-list dt:first-child {
  margin-top: 0;
}

.flow-notes__cost-list dd {
  margin: 0;
}

.flow-notes__arrow {
  position: relative;
}

.flow-notes__arrow::before {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  border-top: 44px solid transparent;
  border-bottom: 44px solid transparent;
  border-left: 22px solid var(--color-primary);
  transform: translate(-50%, -50%);
  content: "";
}

.flow-notes__result {
  display: grid;
  gap: 18px;
}

.flow-notes__result-card {
  padding: 20px 28px 18px;
  border-radius: 16px;
  background: #fff;
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.08);
}

.flow-notes__result-title {
  margin: 0;
  font-size: 1em;
}

.flow-notes__result-title--blue {
  color: var(--color-primary);
}

.flow-notes__result-title--orange {
  color: #DF5320;
}

.flow-notes__result-text span {
  color: var(--color-primary);
  font-weight: bold;
}

.flow-notes__list {
  line-height: 2.2;
}

/* replacement */
.replacement-offer {
  position: relative;
  background-color: #F8F8F8;
}

.replacement-offer::after {
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  aspect-ratio: 3840 / 148;
  background: url("https://www.kk-yanagisawa.co.jp/dcms_media/image/bottom-scale-pattern.png") center bottom / 100% auto no-repeat;
  content: "";
  pointer-events: none;
}

.replacement-offer__inner {
  max-width: var(--max-width-wide);
  padding-bottom: 140px;
}

.replacement-offer__subhead {
  color: var(--color-primary);
  font-size: 24px;
}

.replacement-offer__highlight {
  background: linear-gradient(transparent 75%, var(--color-accent) 75%);
}

.replacement-offer__table-wrap {
  margin-top: clamp(42px, 5vw, 56px);
}

.replacement-offer__table-title,
.replacement-offer__image-title {
  margin: 0;
  text-align: center;
  background-color: var(--color-primary);
}

.replacement-offer__table-title {
  padding: 18px 24px;
  border-radius: 8px 8px 0 0;
  color: #fff;
}

.replacement-offer__image-title {
  margin: 0 auto 32px;
  padding: 8px 40px;
  border-radius: 999px;
  font-size: 23px;
}

.replacement-offer__table-scroll {
  overflow-x: auto;
}

.replacement-table {
  width: 100%;
  min-width: 980px;
  border-collapse: collapse;
  background: #fff;
}

.replacement-table thead th {
  padding: 14px 16px;
  border: 1px solid #898989;
  background: var(--color-accent);
  text-align: center;
  font-weight: bold;
  font-size: 20px;
  color: #fff;
}

.replacement-table tbody th,
.replacement-table tbody td {
  padding: 8px 16px;
  border: none;
  text-align: center;
  border: 1px solid #898989;
}

.replacement-table__price {
  color: #1659a3 !important;
  font-weight: bold !important;
}

.replacement-table__bgcolor {
  background-color: #ECEAEA;
}

.replacement-offer__image-block {
  max-width: var(--max-width);
  margin: 68px auto 0;
}

.replacement-offer__cards {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 56px;
}

.replacement-card {
  display: flex;
  flex-direction: column;
  height: 100%;
  border: 2px solid #2366a8;
  border-radius: 18px;
  background-color: #fff;
  box-shadow: 8px 8px 0 rgba(42, 98, 177, 0.18);
}

.replacement-card__visual {
  display: grid;
  grid-template-columns: 1fr 40px 1fr;
  gap: 12px;
  align-items: center;
  padding: 24px 28px;
  flex: 1;
}

.replacement-card__caption {
  margin: auto 0 0;
  padding: 16px;
  background-color: var(--color-primary);
  text-align: center;
  border-radius: 0 0 15px 15px;
  min-height: 80px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
}

.replacement-card__visual-item {
  display: flex;
  gap: 8px;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.replacement-card__visual-label {
  margin: 0;
  color: #2366a8;
  font-weight: 700;
}

.replacement-card__image-wrap img {
  height: 200px;
  object-fit: contain;
}

.replacement-card__arrow {
  position: relative;
  width: 44px;
  height: 88px;
  justify-self: center;
  flex-shrink: 0;
}

.replacement-card__arrow::before {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  border-top: 45px solid transparent;
  border-bottom: 45px solid transparent;
  border-left: 20px solid #e2b500;
  transform: translate(-50%, -50%);
  content: "";
}

.replacement-card__caption span {
  font-size: 16px;
}

/* contact-cta */
.page_tesa-maintenance #contact {
  display: none;
}

.contact-cta {
  position: relative;
  background: url("https://www.kk-yanagisawa.co.jp/dcms_media/image/bottom-contact-cta.jpg") center center / cover no-repeat;
}

.contact-cta::before {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(39, 84, 145, 0.76) 0%, rgba(76, 122, 185, 0.6) 45%, rgba(124, 158, 208, 0.58) 100%);
  content: "";
}

.contact-cta__inner {
  padding-bottom: 32px;
}

.contact-cta__title {
  text-align: center;
  font-size: 40px;
}

.contact-cta__button {
  width: min(100%, 580px);
  padding: 20px;
  margin: 24px auto;
  border-radius: 999px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  background: linear-gradient(90deg, #1964A0 0%, #01B9EA 100%);
  box-shadow: 0 16px 36px rgba(8, 45, 84, 0.22);
  font-size: 28px;
}

.contact-cta__button img {
  display: inline-block;
  width: 40px;
  margin: 0;
}

.contact-cta__button:hover {
  transform: translateY(-2px);
  box-shadow: 0 18px 44px rgba(5, 24, 30, 0.3);
  filter: brightness(1.03);
  text-decoration: none;
  color: #fff;
}

.contact-cta__button-icon {
  flex-shrink: 0;
  font-size: 30px;
  line-height: 1;
}

.contact-cta__address {
  max-width: 730px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 176px minmax(0, 1fr);
  box-shadow: 0 12px 30px rgba(24, 59, 103, 0.18);
}

.contact-cta__address-label {
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 8px 16px;
  font-size: 24px;
  background-color: var(--color-primary);
  border-radius: 12px 0 0 12px;
}

.contact-cta__address-body {
  background-color: #fff;
  padding: 18px 36px 16px;
  border-radius: 0 12px 12px 0;
}

.contact-cta__address-name,
.contact-cta__address-text {
  margin: 0;
}

.contact-cta__address-body a {
  color: var(--color-primary);
}

.contact-cta__note {
  margin-top: 54px;
  text-align: center;
  color: #fff;
}

.contact-cta__separator {
  padding: 8px;
}

@media (max-width: 1024px) {
  .hero {
    background-position: 66% center;
  }

  .hero__inner {
    padding-right: clamp(24px, 5vw, 56px);
  }

  .hero__button {
    min-width: 220px;
  }

  .about-team__inner {
    padding-bottom: 40px;
  }

  .about-team__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .flow-notes__header {
    background: none;
    display: block;
    text-align: center;
  }

  .flow-notes__header * {
    color: var(--color-primary) !important;
  }

  .flow-notes__title {
    padding-bottom: 8px;
    font-size: 20px;
  }

  .flow-notes__header {
    padding: 10px 0 12px;
  }

  .flow-notes__cost-card {
    margin-top: 16px;
  }

  .flow-notes__body {
    padding: 8px 0 0;
  }

  .flow-step .flow-step__icon-wrap::before,
  .flow-step .flow-step__icon-wrap::after {
    display: none;
  }

  .repair-flow__steps {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .flow-notes__inspection {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .flow-notes__arrow::before {
    border-top: 18px solid var(--color-primary);
    border-right: 44px solid transparent;
    border-left: 44px solid transparent;
    border-bottom: 0;
    transform: translate(-50%, -50%);
  }

  .replacement-offer__cards {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  .page_tesa-maintenance .pc-display {
    display: none !important;
  }

  .page_tesa-maintenance .sp-display {
    display: block !important;
  }

  .page_tesa-maintenance .note-box__icon.sp-display {
    display: inline-block !important;
  }

  h2 {
    font-size: 24px;
  }

  h3 {
    font-size: 20px;
  }

  h4 {
    font-size: 18px;
  }

  .about-team__header h2 + p,
  .flow-notes__subtitle,
  .replacement-offer__header h2 + p,
  .contact-cta__note p {
    text-align: left;
  }

  .hero {
    min-height: auto;
    background-position: 74% center;
    background: url("https://www.kk-yanagisawa.co.jp/dcms_media/image/kv-sp.jpg") right top / cover no-repeat;
  }

  .hero__inner {
    min-height: auto;
    padding: 48px 20px 56px;
  }

  .hero__title {
    font-size: 34px;
  }

  .hero__capital-title {
    font-size: 46px;
  }

  .hero__actions {
    width: 100%;
    flex-direction: column;
  }

  .replacement-offer__subhead {
    font-size: 18px;
  }

  .info-box__wrap {
    padding: 20px 16px;
  }

  .info-box__title {
    background: none;
    color: var(--color-primary);
    padding: 0 0 8px;
    display: block;
    text-align: center;
  }

  .note-box__body {
    padding: 0;
  }

  .grid_template {
    grid-template-columns: 1fr;
  }

  .replacement-card__arrow {
    transform: rotate(90deg);
  }

  .replacement-offer__inner {
    padding-bottom: 80px;
  }

  .flow-notes__section-title {
    font-size: 18px;
  }

  .contact-cta__title {
    font-size: 26px;
  }

  .contact-cta__address-label {
    font-size: 18px;
    border-radius: 12px 12px 0 0;
  }

  .contact-cta__address-body {
    border-radius: 0 0 12px 12px;
  }

  .contact-cta__button {
    font-size: 20px;
  }

  .contact-cta__separator {
    display: block;
    padding: 0;
  }
}