/* トップ専用: 共通指定 / スマホ〜767px / タブレット768〜1023px / PC1024px〜。 */

@media screen and (max-width: 767px) {
  :where(body.p-home) .l-brand-footer {
    padding: 56px 0;
  }

  :where(body.p-home) .l-brand-footer .l-brand-footer-flex {
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 40px;
  }

  :where(body.p-home) .l-brand-footer .l-brand-footer-flex__item {
    max-width: 600px;
  }

  :where(body.p-home) .l-brand-footer .l-brand-footer-flex__item:first-child {
    max-width: 273.77px;
  }

  :where(body.p-home) .l-brand-footer .l-brand-footer-flex__item .message {
    font-size: 15px;
  }

  :where(body.p-home) .l-brand-footer .l-brand-footer-flex__item .logo__pre {
    font-size: 15px;
  }

  :where(body.p-home) .l-brand-footer .l-brand-footer-flex__item .logo img {
    width: 100%;
  }

  :where(body.p-home) .l-brand-footer .l-brand-footer-flex__item .footer-links {
    padding-bottom: 16px;
    margin-bottom: 16px;
    flex-wrap: wrap;
  }

  :where(body.p-home) .l-brand-footer .l-brand-footer-flex__item .footer-links__item {
    height: 80px;
    flex-wrap: wrap;
    flex-direction: row;
    flex: 0 0 auto;
    width: 50%;
    text-align: center;
    display: flex;
    justify-content: center;
    position: relative;
  }

  :where(body.p-home) .l-brand-footer .l-brand-footer-flex__item .footer-links__item:first-child:before {
    content: "";
    position: absolute;
    width: 80%;
    height: 1px;
    background-color: #fff;
    bottom: 0;
    left: 50%;
    transform: translate(-50%);
  }

  :where(body.p-home) .l-brand-footer .l-brand-footer-flex__item .footer-links__item:nth-child(2):before {
    content: "";
    position: absolute;
    width: 80%;
    height: 1px;
    background-color: #fff;
    bottom: 0;
    left: 50%;
    transform: translate(-50%);
  }

  :where(body.p-home) .l-brand-footer .l-brand-footer-flex__item .footer-links__item:first-child:after {
    content: "";
    position: absolute;
    height: 70%;
    width: 1px;
    background-color: #fff;
    top: 50%;
    right: 0;
    transform: translateY(-50%);
  }

  :where(body.p-home) .l-brand-footer .l-brand-footer-flex__item .footer-links__item:nth-child(3):after {
    content: "";
    position: absolute;
    height: 70%;
    width: 1px;
    background-color: #fff;
    top: 50%;
    right: 0;
    transform: translateY(-50%);
  }

  :where(body.p-home) .l-brand-footer .l-brand-footer-flex__item .footer-sub-links {
    padding-left: 5%;
    padding-right: 5%;
    margin-top: 20px;
  }

  :where(body.p-home) .l-brand-footer .l-brand-footer-flex__item .footer-sub-links__item {
    display: inline;
    font-size: var(--text-s);
  }

  :where(body.p-home) .l-brand-footer .l-brand-footer-flex__item .footer-sub-links__item a:hover {
    text-decoration: underline;
  }

  :where(body.p-home) .l-brand-footer .l-brand-footer-flex__item .footer-sub-links__item:after {
    content: "｜";
  }

  :where(body.p-home) .l-company-footer {
    padding: 24px 0;
  }

  :where(body.p-home) .l-company-footer__inner {
    margin: 0 24px;
    flex-direction: column;
  }

  :where(body.p-home) .l-company-footer .company-info {
    max-width: 300px;
  }

  :where(body.p-home) .l-company-footer .company-info__logo {
    margin-bottom: 20px;
  }

  :where(body.p-home) .l-company-footer .company-info__address {
    font-size: 10px;
  }

  :where(body.p-home) .l-company-footer .company-descriptions {
    font-size: 10px;
    max-width: none;
  }

  :where(body.p-home) .l-company-footer .company-descriptions .copyright {
    text-align: center;
  }

  .fw:where(.p-home) .c-foot-line .c-foot-line-tomodachi .otodoke {
    font-size: 14px;
  }

  .fw:where(.p-home) .c-foot-line .c-foot-line-tomodachi .tomodachi-tsuika {
    font-size: 16px;
    max-width: 263px;
  }

  :where(body.p-home) .caution-section {
    width: 100%;
    margin: 36px auto 0px;
  }

  :where(body.p-home) .caution-section h2 {
    width: 270px;
  }

  :where(body.p-home) .caution-section p {
    width: 270px;
  }

}

@media screen and (min-width: 768px) and (max-width: 1023px) {
  :where(body.p-home) .l-brand-footer {
    padding: 100px 0;
  }

  :where(body.p-home) .l-brand-footer .l-brand-footer-flex {
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 40px;
  }

  :where(body.p-home) .l-brand-footer .l-brand-footer-flex__item {
    max-width: 600px;
  }

  :where(body.p-home) .l-brand-footer .l-brand-footer-flex__item:first-child {
    max-width: 360px;
  }

  :where(body.p-home) .l-brand-footer .l-brand-footer-flex__item .message {
    font-size: 20px;
  }

  :where(body.p-home) .l-brand-footer .l-brand-footer-flex__item .logo__pre {
    font-size: 18px;
  }

  :where(body.p-home) .l-brand-footer .l-brand-footer-flex__item .logo img {
    width: 100%;
  }

  :where(body.p-home) .l-brand-footer .l-brand-footer-flex__item .footer-links {
    padding-bottom: 20px;
    margin-bottom: 20px;
    flex-wrap: wrap;
  }

  :where(body.p-home) .l-brand-footer .l-brand-footer-flex__item .footer-links__item {
    height: 80px;
    flex-wrap: wrap;
    flex-direction: row;
    flex: 0 0 auto;
    width: 50%;
    text-align: center;
    display: flex;
    justify-content: center;
    position: relative;
  }

  :where(body.p-home) .l-brand-footer .l-brand-footer-flex__item .footer-links__item:first-child:before {
    content: "";
    position: absolute;
    width: 80%;
    height: 1px;
    background-color: #fff;
    bottom: 0;
    left: 50%;
    transform: translate(-50%);
  }

  :where(body.p-home) .l-brand-footer .l-brand-footer-flex__item .footer-links__item:nth-child(2):before {
    content: "";
    position: absolute;
    width: 80%;
    height: 1px;
    background-color: #fff;
    bottom: 0;
    left: 50%;
    transform: translate(-50%);
  }

  :where(body.p-home) .l-brand-footer .l-brand-footer-flex__item .footer-links__item:first-child:after {
    content: "";
    position: absolute;
    height: 70%;
    width: 1px;
    background-color: #fff;
    top: 50%;
    right: 0;
    transform: translateY(-50%);
  }

  :where(body.p-home) .l-brand-footer .l-brand-footer-flex__item .footer-links__item:nth-child(3):after {
    content: "";
    position: absolute;
    height: 70%;
    width: 1px;
    background-color: #fff;
    top: 50%;
    right: 0;
    transform: translateY(-50%);
  }

  :where(body.p-home) .l-brand-footer .l-brand-footer-flex__item .footer-sub-links {
    padding-left: 5%;
    padding-right: 5%;
    margin-top: 20px;
  }

  :where(body.p-home) .l-brand-footer .l-brand-footer-flex__item .footer-sub-links__item {
    display: inline;
    font-size: var(--text-s);
  }

  :where(body.p-home) .l-brand-footer .l-brand-footer-flex__item .footer-sub-links__item a:hover {
    text-decoration: underline;
  }

  :where(body.p-home) .l-brand-footer .l-brand-footer-flex__item .footer-sub-links__item:after {
    content: "｜";
  }

  :where(body.p-home) .l-company-footer {
    padding: 24px 0;
  }

  :where(body.p-home) .l-company-footer__inner {
    margin: 0 24px;
    flex-direction: column;
  }

  :where(body.p-home) .l-company-footer .company-info {
    max-width: 328.27px;
  }

  :where(body.p-home) .l-company-footer .company-info__logo {
    margin-bottom: 20px;
  }

  :where(body.p-home) .l-company-footer .company-info__address {
    font-size: 11px;
  }

  :where(body.p-home) .l-company-footer .company-descriptions {
    font-size: 11px;
    max-width: none;
  }

  :where(body.p-home) .l-company-footer .company-descriptions .copyright {
    text-align: center;
  }

  .fw:where(.p-home) .c-foot-line .c-foot-line-tomodachi .otodoke {
    font-size: 16px;
  }

  .fw:where(.p-home) .c-foot-line .c-foot-line-tomodachi .tomodachi-tsuika {
    font-size: 18px;
    max-width: 100%;
  }

  :where(body.p-home) .caution-section {
    width: 100%;
    margin: 36px auto 0px;
  }

  :where(body.p-home) .caution-section h2 {
    width: 360px;
  }

  :where(body.p-home) .caution-section p {
    width: 360px;
  }

}

@media screen and (min-width: 1024px) {
  :where(body.p-home) .l-brand-footer .l-brand-footer-flex__item .footer-links {
    border-bottom: 1px solid #fff;
  }

  :where(body.p-home) .l-brand-footer .l-brand-footer-flex__item .footer-links__item+.footer-links__item {
    border-left: 1px solid #fff;
  }

  :where(body.p-home) .l-brand-footer .l-brand-footer-flex__item .footer-sub-links {
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    gap: 8px;
  }

  :where(body.p-home) .l-brand-footer .l-brand-footer-flex__item .footer-sub-links__item {
    flex: 0 0 auto;
    line-height: 1;
  }

  :where(body.p-home) .l-brand-footer .l-brand-footer-flex__item .footer-sub-links__item a {
    font-size: var(--text-xs);
    line-height: 1;
    transition: all .2s ease;
  }

  :where(body.p-home) .l-brand-footer .l-brand-footer-flex__item .footer-sub-links__item a:hover {
    text-decoration: underline;
    color: #e50a11;
  }

}

/* 文字・色・部品寸法は共通の本番指定を使い、表示幅だけ調整する。 */
@media screen and (max-width: 767px) {
  body.p-home .c-foot-line {
    padding-inline: max(24px, calc((100% - 560px) / 2));
  }

  body.p-home .caution-section,
  body.p-home .l-company-footer__inner {
    width: var(--top-sp-content);
    margin-inline: auto;
    padding-inline: 0;
  }

  body.p-home .caution-section h2,
  body.p-home .caution-section p {
    width: 100%;
  }

  body.p-home .l-brand-footer,
  body.p-home .l-company-footer {
    padding-inline: 0;
  }

  body.p-home .l-brand-footer .l-inner {
    width: var(--top-sp-content);
    padding-inline: 0;
  }

  body.p-home .l-brand-footer .l-brand-footer-flex {
    width: 100%;
    margin-inline: auto;
  }
}

@media screen and (min-width: 768px) and (max-width: 1023px) {
  body.p-home .caution-section h2,
  body.p-home .caution-section p {
    width: calc(100% - 64px);
    max-width: 720px;
  }
}

@media screen and (min-width: 1024px) {
  body.p-home .caution-section h2,
  body.p-home .caution-section p {
    max-width: calc(100% - 64px);
  }

  body.p-home .l-brand-footer,
  body.p-home .l-company-footer {
    padding-inline: 32px;
  }

  body.p-home .l-brand-footer .l-brand-footer-flex {
    gap: clamp(32px, 4vw, 64px);
  }

  body.p-home .l-brand-footer .l-brand-footer-flex__item {
    min-width: 0;
  }
}
