/* 2026-07-24 responsive and price-area adjustments */

@media screen and (min-width: 769px) {
  .inner {
    width: calc(100% - 32px);
    max-width: 1080px;
    padding-inline: 0;
  }

  .cta__inner {
    max-width: 760px;
    padding-inline: 0;
  }

  .form__inner {
    width: calc(100% - 32px);
    max-width: 1080px;
    margin-inline: auto;
  }

  .price__content-title {
    display: flex;
    align-items: center;
    min-height: 76px;
  }
}

/* Price tables: reference layout (two columns on PC, one column on SP). */
.price {
  background: #ffffff;
}

.price__inner {
  max-width: 1080px;
}

.price__pricing-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.08fr);
  gap: 40px;
  margin-top: 56px;
  align-items: start;
}

.price__right-column {
  display: grid;
  gap: 38px;
}

.price__content {
  width: 100%;
  max-width: none;
  margin: 0;
  padding: 0;
  gap: 16px;
  background: transparent;
  border-radius: 0;
}

@media screen and (max-width: 768px) {
  .price__content {
    gap: 2.7vw;
  }
}

.price__content-title,
.price__reward-title {
  position: relative;
  padding: 4px 0 10px 16px;
  border-left: 2px solid #333333;
  border-bottom: 1px dashed #777777;
  font-size: 22px;
  line-height: 1.35;
  text-align: left;
}

.price__content-subtitle {
  display: inline;
  margin-left: 2px;
  color: #333333;
  font-size: 14px;
  white-space: nowrap;
}

.price__table,
.price__content-table {
  display: block;
  width: 100%;
  margin: 0;
}

.price__table.common-table,
.price__content--table.common-table {
  display: table;
  width: 100%;
  margin: 24px 0 0;
  border: 1px solid #c7c7c7;
  border-radius: 0;
  border-collapse: collapse;
  table-layout: fixed;
  overflow: visible;
}

.price__col-fee {
  width: 14%;
}

.price__col-service {
  width: 38%;
}

.price__col-amount {
  width: 24%;
}

.price__col-retro-service {
  width: 50%;
}

.price__col-retro-amount {
  width: 25%;
}

.price .common-cell {
  width: auto;
  height: 62px;
  padding: 8px 6px;
  border: 0.5px solid #c7c7c7;
  border-right: 0.5px solid #c7c7c7;
  border-bottom: 0.5px solid #c7c7c7;
  background: #ffffff;
  color: #333333;
  font-size: 15px;
  line-height: 1.45;
}

.price .price__fee-label {
  padding-inline: 4px;
  font-size: 14px;
  font-weight: 700;
}

.price .th-corporation-bg {
  background: #f7941d;
  color: #ffffff;
}

.price .th-individual-bg {
  background: #10284b;
  color: #ffffff;
}

.price .price__table-tr:first-child .common-cell:first-child,
.price .price__content--table-tr:first-child .common-cell:first-child {
  background: #aaaaaa;
  color: #ffffff;
}

.price .bg-corporation {
  background: #fff0db;
  color: #333333;
}

.price .bg-individual {
  background: #eef0f5;
  color: #333333;
}

.price .text-total {
  background: #fff0db;
}

.price .text-corporation,
.price .text-individual,
.price .text-total {
  white-space: nowrap;
  font-weight: 400;
}

.price__text {
  margin-top: 14px;
  font-size: 14px;
  line-height: 1.55;
}

.price__text strong {
  color: #f7941d;
}

.price__subtext {
  margin-top: 2px;
  font-size: 13px;
  color: #333333;
}

.price__reward {
  display: block;
  margin: 0;
  padding: 0;
  background: transparent;
  border-radius: 0;
}

.price__reward-subtitle {
  margin-top: 2px;
  color: #333333;
  font-size: 13px;
  line-height: 1.45;
}

.price__reward-content {
  display: block;
  margin: 24px 0 0;
  padding: 0;
  background: transparent;
  border-radius: 0;
  text-align: left;
}

.price__reward-content-title {
  font-size: 18px;
  font-weight: 400;
  line-height: 1.6;
}

.price__reward-content-title--red {
  display: inline-block;
  margin-left: 6px;
  color: #f7941d;
  font-size: 30px;
  font-weight: 800;
  line-height: 1.1;
  white-space: nowrap;
}

.price__title--main::after {
  content: "";
  display: block;
  width: 220px;
  height: 16px;
  margin: 18px auto 0;
  background: repeating-linear-gradient(
    90deg,
    #10284b 0 16px,
    transparent 16px 32px
  );
}

.google-rating-badge {
  display: none;
}

.profile__description-card-video {
  position: relative;
  display: block;
  width: 100%;
  border-radius: 8px;
  overflow: hidden;
}

.profile__description-card-video::after {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(9, 33, 73, 0.18);
  transition: background-color 0.25s ease;
}

.profile__description-card-video:hover::after,
.profile__description-card-video:focus-visible::after {
  background: rgba(9, 33, 73, 0.32);
}

.profile__description-card-video:focus-visible {
  outline: 3px solid #ffffff;
  outline-offset: -3px;
}

.profile__description-card-play {
  position: absolute;
  z-index: 1;
  top: 50%;
  left: 50%;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 7px;
  color: #ffffff;
  filter: drop-shadow(0 2px 5px rgba(0, 0, 0, 0.45));
  transform: translate(-50%, -50%);
  pointer-events: none;
}

.profile__description-card-play-icon {
  position: relative;
  display: block;
  width: 58px;
  height: 58px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.94);
  transition: transform 0.25s ease;
}

.profile__description-card-play-icon::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 52%;
  width: 0;
  height: 0;
  border-top: 9px solid transparent;
  border-bottom: 9px solid transparent;
  border-left: 15px solid #092149;
  transform: translate(-50%, -50%);
}

.profile__description-card-video:hover .profile__description-card-play-icon,
.profile__description-card-video:focus-visible
  .profile__description-card-play-icon {
  transform: scale(1.08);
}

.profile__description-card-play-text {
  padding: 4px 12px;
  border-radius: 999px;
  background: rgba(9, 33, 73, 0.9);
  font-size: 14px;
  font-weight: 700;
  line-height: 1.4;
  letter-spacing: 0.04em;
  white-space: nowrap;
}

@media screen and (min-width: 769px) and (max-width: 900px) {
  .price__pricing-grid {
    grid-template-columns: minmax(0, 1fr);
  }
}

@media screen and (max-width: 768px) {
  .hero__contents {
    gap: 24px;
  }

  .hero__messages {
    order: 2;
    width: 100%;
    max-width: none;
    margin: 0;
    padding: 0;
    text-align: center;
  }

  .hero__image {
    position: relative;
    order: 3;
    right: auto;
    bottom: auto;
    width: 100%;
    margin: -8px auto -24px;
    text-align: center;
  }

  .hero__image img {
    display: block;
    width: min(274px, 82vw);
    max-width: 100%;
    margin-inline: auto;
  }

  .hero__subMessage {
    max-width: 320px;
    margin: 6px auto 0;
  }

  .price__inner.inner {
    width: 100%;
    max-width: none;
    padding: 36px 0;
  }

  .price__title {
    margin-inline: 16px;
  }

  .price__title-main {
    font-size: 24px;
  }

  .price__title-en {
    font-size: 11px;
  }

  .price__title--main::after {
    width: 112px;
    height: 9px;
    margin-top: 8px;
    background: repeating-linear-gradient(
      90deg,
      #10284b 0 8px,
      transparent 8px 16px
    );
  }

  .price__pricing-grid {
    grid-template-columns: minmax(0, 1fr);
    gap: 18px;
    margin-top: 0px;
  }

  .price__right-column {
    gap: 4.5vw;
  }

  .price__content-title,
  .price__reward-title {
    margin-inline: 10px;
    padding-left: 2.5vw;
    font-size: 5.5vw;
    line-height: 1.2;
    width: fit-content;
  }

  .price__content-subtitle,
  .price__reward-subtitle {
    font-size: 4vw;
    margin-left: 0px;
  }

  .price__reward-subtitle {
    font-feature-settings: "palt";
    font-family: "YakuHanJP", "Hiragino Sans", sans-serif;
    margin-top: 6px;
  }

  .price__table.common-table,
  .price__content--table.common-table {
    width: calc(100% - 20px);
    margin: 0px 10px;
  }

  .price .common-cell {
    width: auto;
    height: 44px;
    padding: 5px 2px;
    font-size: 10px;
    line-height: 1.35;
    white-space: nowrap;
    -webkit-font-smoothing: antialiased;
    font-feature-settings: "palt";
    font-family: "YakuHanJP", "Hiragino Sans", sans-serif;
  }

  .price .price__table-tr:first-child .common-cell,
  .price .price__content--table-tr:first-child .common-cell {
    height: 28px;
    font-size: 4.02vw;
  }

  .price .common-table .price__table-tr .common-cell:first-child {
    width: auto !important;
  }

  .price .small-font-size,
  .price .price__fee-label {
    font-size: 3.7vw;
  }

  .price .price__fee-label {
    font-weight: normal;
  }

  .price .text-corporation,
  .price .text-individual,
  .price .text-total {
    font-size: 3.7vw;
  }

  .price__text,
  .price__subtext {
    margin-inline: 10px;
    margin-top: 5.6px;
    font-size: 3.8vw;
    line-height: 1.5;
    font-feature-settings: "palt";
    font-family: "YakuHanJP", "Hiragino Sans", sans-serif;
  }

  .price__reward-content {
    margin: 2.7vw 10px 0;
    width: fit-content;
    font-feature-settings: "palt";
    font-family: "YakuHanJP", "Hiragino Sans", sans-serif;
    font-weight: bold;
    white-space: nowrap;
    -webkit-font-smoothing: antialiased;
    display: flex;
  }

  .price__reward-content-title {
    font-size: 4.6vw;
    display: flex;
  }

  .price__reward-content-title--red {
    font-size: 5.2vw;
    margin-left: 0px;
    font-weight: bold;
  }

  .price__frame {
    padding-inline: 16px;
  }

  .price__plus-icon,
  .price__card {
    margin-inline: 16px;
  }

  .google-rating-badge {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 3px 6px;
    margin-top: 24px;
    padding: 12px 10px;
    border: 1px solid #d9dde5;
    border-radius: 8px;
    background: #ffffff;
    color: #333333;
    box-shadow: 0 3px 10px rgba(9, 33, 73, 0.08);
    font-size: 14px;
    line-height: 1.4;
    text-align: center;
  }

  .google-rating-badge__label {
    font-weight: 700;
  }

  .google-rating-badge__stars {
    color: #f5a623;
    letter-spacing: 1px;
  }

  .google-rating-badge strong {
    color: #092149;
    font-size: 18px;
  }

  .google-rating-badge + .company__map {
    margin-top: 12px;
  }
}
