@layer custom {
  :root {
    --full-width: 2000px;
    --main-width: 1440px;
    --max-width: 1120px;
    /* --content-spacing: clamp(
      1.25rem,
      24vw,
      max(calc(50vw - var(--main-width) / 2), 12px)
    );
    --content-spacing-full: clamp(
      1.25rem,
      24vw,
      max(calc(50vw - var(--full-width) / 2), 12px)
    ); */
    --content-spacing: clamp(
      1.25rem,
      24vw,
      max(calc(50% - var(--main-width) / 2), 12px)
    );
    --content-spacing-full: clamp(
      1.25rem,
      24vw,
      max(calc(50% - var(--full-width) / 2), 12px)
    );
    --gradation-red: linear-gradient(180deg, #dc2626 0%, #b91c1c 100%);
    --gradation-blue: linear-gradient(180deg, #3e81d8 0%, #2563eb 100%);
    --red-01: #af1f23;
    --red-02: #db2626;
    --main-color: #db2626;
    --sub-color: #f1f5f9;
    --text-color: #1f2937;
    --fv-accent-color: #c41e3a;
    --fv-badge-gold: #c9a227;
  }

  body {
    grid-template-rows: 62px 1fr max-content;
  }
  @media (min-width: 890px) {
    body {
      grid-template-rows: 138px 1fr max-content;
    }
  }

  .only-pc {
    display: none;
  }

  @media (min-width: 890px) {
    .only-pc {
      display: block;
    }
  }

  .only-sp {
    display: block;
  }

  @media (min-width: 890px) {
    .only-sp {
      display: none;
    }
  }

  .tel-link {
    font-size: 2rem;
    font-weight: 500;
    color: #d40000;
    text-decoration: none;
    display: flex;
    align-items: center;
    justify-content: center;
  }

  @media (min-width: 768px) {
    .tel-link {
      font-size: 2.5rem;
      white-space: nowrap;
    }
  }

  .tel-link i {
    font-size: 1.5rem;
    margin-right: 6px;
  }

  .contact-button {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 16px;
    border-radius: 4px;
    color: #fff;
    text-decoration: none;
    font-weight: 700;
    transition: opacity 0.3s;
    line-height: 1;
  }

  .contact-button:hover {
    opacity: 0.8;
  }

  .contact-button i {
    margin-right: 10px;
  }

  .contact-button-red {
    background: var(--gradation-red);
  }

  .contact-button-blue {
    background: var(--gradation-blue);
  }

  .page-section .page-heading {
    border-color: var(--red-02);
  }

  .page-heading-wrapper {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px;
    flex-shrink: 0;
  }

  .page-heading {
    font-size: var(--text-xxl);
    font-weight: var(--weight-bold);
    display: flex;
    align-items: center;
    gap: var(--gap-md);
    line-height: 1.2;
    color: var(--text-color);
    border-left: none;
    padding-left: 0;
  }

  .page-heading::before {
    content: '';
    width: 6px;
    height: 1lh;
    margin-top: 3px;
    background: linear-gradient(180deg, #dc2626 0%, #b91c1c 100%);
    border-radius: calc(1px * infinity);
  }

  .page-heading-top {
    padding-block: 60px;
    padding-inline: var(--content-spacing);
    color: #fff;
    background: url('../image/bg-main.jpg') 0px -506px / 100% 576.923% no-repeat;
    filter: brightness(1.4);
  }

  .page-heading-top::before {
    background: #fff;
  }

  .page-heading-sub {
    font-size: var(--text-sm);
    letter-spacing: 0.3em;
    color: var(--main-color);
    font-weight: 400;
  }

  @media (min-width: 768px) {
    .page-section {
      gap: 60px;
    }
  }

  .button-link {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--gap-md);
    height: auto;
    padding: var(--p-md) var(--p-xl);
    background: #fff;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    color: var(--text-color);
    font-size: var(--text-sm);
    font-weight: var(--weight-bold);
    text-decoration: none;
    transition: all 0.2s ease;
    align-self: center;
    margin: 0;
  }
  @media (min-width: 768px) {
    .button-link {
      min-width: 300px;
      width: fit-content;
      align-self: flex-end;
      font-size: var(--text-lg);
    }
  }

  .button-link:hover {
    background: var(--red-02);
    border-color: var(--red-02);
    color: #fff;
  }

  .button-link::before {
    content: '';
    width: 6px;
    height: 6px;
    border-top: 2px solid var(--red-02);
    border-right: 2px solid var(--red-02);
    transform: rotate(45deg);
    margin-top: 3px;
  }
  .button-link:hover::before {
    border-top: 2px solid #fff;
    border-right: 2px solid #fff;
  }

  /* Header Common */

  .header {
    height: auto;
    padding-block: 10px;
    width: 100%;
    top: 0;
    margin-inline: 0;
    background: #fff;
    border-radius: 0;
    border: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 200;
    box-shadow: 0 4px 4px 0 rgba(0, 0, 0, 0.25);
    height: 62px;
    padding-inline: var(--content-spacing-full);
  }
  @media (min-width: 890px) {
    .header {
      height: 138px;
      padding-top: 0;
      justify-content: center;
      display: flex;
      flex-direction: column;
      width: 100%;
    }
    .header .list {
      padding-block: 0;
      align-items: stretch;
      width: 100%;
    }

    .header .list .item {
      height: auto;
      padding-inline: 6px;
      display: grid;
    }
  }

  .header .inner {
    justify-content: flex-start;
  }

  @media (min-width: 890px) {
    .header .inner {
      height: auto;
      gap: 24px;
    }
  }

  .header .information {
    display: none;
  }
  @media (min-width: 1200px) {
    .header .information {
      display: flex;
      flex-direction: row;
      align-items: center;
      padding-top: 0;
      padding-right: 0;
      gap: var(--gap-sm);
    }
  }

  .header .information .tel-link {
    font-size: clamp(1.875rem, 0.2778rem + 2.2222vw, 2.5rem);
  }

  .header .information .block-business-hours {
    width: 120px;
  }

  .header .inner .link {
    margin-right: auto;
  }

  .header .inner .link.logo {
    max-height: 42px;
    max-width: 300px;
  }
  .header .inner .link.logo:hover {
    opacity: 0.8;
  }
  .header .inner .link.logo img {
    max-height: 42px;
  }
  @media (min-width: 890px) {
    .header .inner .link.logo {
      max-width: 630px;
      max-height: 68px;
    }
    .header .inner .link.logo img {
      max-height: 68px;
    }
  }

  .header .sep {
    background-color: #d1d5db;
    align-self: center;
  }

  @media (min-width: 890px) {
    .header .list .item {
      height: 60px;
    }
  }

  .header .list .item .text,
  .header .list .item .link {
    padding-block: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0 12px;
    font-size: clamp(0.9375rem, 0.125rem + 1vw, 1.125rem);
    flex-wrap: wrap;
    align-content: center;
  }
  .header .list .item .link .header-link-wrapper {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
  }
  @media (min-width: 890px) {
    .header .list .item .text,
    .header .list .item .link {
      gap: 0 8px;
    }
  }
  .header .list .item .link:hover {
    color: var(--main-color);
  }

  .header .list .item .text::after {
    content: '';
    width: 8px;
    height: 8px;
    border-bottom: 2px solid #af1f23;
    border-right: 2px solid #af1f23;
    transform: rotate(45deg) translateY(-30%);
    transform-origin: center;
    display: block;
  }
  @media (min-width: 890px) {
    .header .list .item .text::after {
      width: 6px;
      height: 6px;
    }
  }

  @media (min-width: 1300px) {
    .header .list .item .text .br-transfer {
      display: none;
    }
  }
  @media (min-width: 1100px) {
    .header .list .item .text .br-reason,
    .header .list .item .link .br-office {
      display: none;
    }
  }

  .header .list .item .menu .heading {
    line-height: 1.33;
    padding-block: 12px;
  }
  .header .list .item .menu .heading br {
    display: none;
  }

  .header .list .item .menu {
    grid-template-columns: auto 1fr;
    gap: 30px;
  }

  @media (min-width: 890px) {
    .header .list .item.group {
      padding-block: 0;
      height: auto;
    }

    .header .list .item .menu .inner .block {
      row-gap: 0;
      grid-template-columns: repeat(auto-fit, minmax(240px, 300px));
    }

    .header .block-link {
      font-size: var(--text-md);
      font-weight: 500;
      padding-left: 36px;
      padding-block: 12px;
      border-bottom: none;
    }

    .header .block-link::after {
      left: var(--gap-md);
      right: unset;
      border-color: var(--red-01);
    }
    .header .block-link:hover::after {
      border-color: var(--text-contrast-color);
    }
  }

  .header .sep:first-of-type,
  .header .sep:last-of-type {
    display: none;
  }

  .header-buttons {
    display: none;
  }

  @media (min-width: 890px) {
    .header-buttons {
      display: flex;
      gap: 15px;
      flex-grow: 1;
      min-width: 280px;
      max-width: 420px;
    }
  }

  .header-buttons .contact-button {
    width: 100%;
    padding: 10px;
    white-space: nowrap;
  }

  .hamburger-menu {
    top: 9px;
    background: var(--gradation-red);
    border-radius: 4px;
    width: 47px;
    height: 47px;
    left: calc(90% - 18px);
    padding: 11px;
  }
  @media (min-width: 890px) {
    .hamburger-menu {
      display: none;
    }
  }
  .hamburger-menu:hover {
    opacity: 1;
  }
  .hamburger-menu.close {
    background: none;
  }
  .hamburger-menu .item {
    background-color: #fff;
    width: 100%;
  }
  .menu-open :where(.hamburger-menu) .item {
    background-color: var(--main-color);
  }

  /* Footer Common */
  .footer {
    width: 100%;
    color: #333;
    display: block;
    padding: 0;
  }

  /* Section Inquiry */
  .section-inquiry {
    padding-top: 40px;
    padding-bottom: 30px;
    padding-inline: var(--content-spacing-full);
    color: #fff;
    text-align: center;
    background:
      url('../image/bg-main.jpg') 0px -425.753px / 100% 206.897% no-repeat,
      linear-gradient(104deg, #dc2626 33.05%, #b91c1c 66.95%);
  }
  @media (min-width: 768px) {
    .section-inquiry {
      background-position-y: -332.5px;
      padding-block: 100px;
    }
  }

  .section-inquiry .section-title {
    font-size: 26px;
    font-weight: var(--weight-bold);
    display: inline-block;
    position: relative;
    padding-bottom: 10px;
    padding-bottom: 10px;
    margin-bottom: 34px;
    border-bottom: 2px solid #fff;
  }
  @media (min-width: 768px) {
    .section-inquiry .section-title {
      font-size: var(--text-xxl);
      margin-bottom: 60px;
    }
  }

  .section-inquiry .section-title .only-sp {
    display: block;
  }

  @media (min-width: 420px) {
    .section-inquiry .section-title .only-sp {
      display: none;
    }
  }

  .inquiry-cards {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
  }

  .inquiry-cards .card {
    background: #fff;
    border-radius: 8px;
    padding: 30px 20px;
    width: 100%;
    color: #333;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 24px;
    transition:
      transform 0.3s ease,
      box-shadow 0.3s ease;
  }
  @media (min-width: 768px) {
    .inquiry-cards .card {
      min-width: 350px;
      width: calc(50% - (20px * 1 / 2));
    }
  }
  @media (min-width: 1150px) {
    .inquiry-cards .card {
      width: calc(33.333% - (20px * 2 / 3));
    }
  }

  .inquiry-cards .card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
  }

  .inquiry-cards .card .icon {
    color: var(--red-02);
  }

  .inquiry-cards .card .content {
    text-align: left;
  }

  .inquiry-cards .card .card-title {
    font-size: 1.5rem;
    color: var(--red-02);
    margin-bottom: 2px;
    font-weight: 700;
  }

  .inquiry-cards .card .card-desc {
    font-size: var(--text-sm);
    line-height: 1.6;
    color: #324055;
  }

  /* Section Footer */
  .section-footer {
    background: #f9f9f9;
    display: grid;
    grid-template-areas:
      'info'
      'contact'
      'menu';
    grid-template-columns: 1fr;
    gap: 40px calc(10vw - 100px);
    padding-block: 60px;
    padding-inline: var(--content-spacing-full);
    position: relative;
  }

  @media (min-width: 1200px) {
    .section-footer {
      grid-template-areas:
        'info info'
        'contact menu';
      grid-template-columns: 400px 1fr;
    }
  }

  .section-footer .information {
    grid-area: info;
    border-bottom: 1px solid #ddd;
    padding-bottom: 20px;
  }

  @media (min-width: 768px) {
    .section-footer .information {
      display: flex;
      flex-direction: row;
      align-items: center;
      gap: 18px;
    }
  }

  @media (min-width: 1200px) {
    .section-footer .infomation-text {
      display: flex;
      align-items: center;
      gap: 16px;
    }
  }

  .logo-area {
    margin-bottom: 15px;
  }

  .logo-main {
    font-size: 2.2rem;
    font-weight: 700;
    color: #d40000;
    text-decoration: none;
    letter-spacing: 0.05em;
  }

  .footer .information .logo {
    height: auto;
    width: fit-content;
  }
  .footer .information .logo:hover {
    opacity: 0.8;
  }
  @media (min-width: 768px) {
    .footer .information .logo {
      margin-bottom: 0;
    }
  }

  .footer .information .address,
  .footer .information .license {
    font-size: var(--text-md);
  }

  .contact-wrapper {
    grid-area: contact;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
  }

  @media (min-width: 768px) {
    .contact-wrapper {
      flex-direction: row-reverse;
      justify-content: flex-end;
      align-items: center;
      flex-wrap: wrap;
    }
  }

  @media (min-width: 1200px) {
    .contact-wrapper {
      flex-direction: column;
      justify-content: flex-start;
    }
  }

  .footer-buttons {
    display: flex;
    flex-direction: column;
    gap: 8px;
    width: 100%;
    max-width: 380px;
  }

  .tel-area {
    display: flex;
    flex-direction: column;
  }

  .hours {
    font-size: 0.85rem;
    margin-top: 5px;
    color: #666;
  }

  .footer .menu {
    grid-area: menu;
    display: grid;
    grid-template-columns: 1fr;
  }

  @media (min-width: 768px) {
    .footer .menu {
      grid-template-columns: repeat(4, auto);
    }
  }

  .accordion-trigger {
    display: none;
  }

  .menu-title {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    border-bottom: 1px solid var(--red-02);
    padding-block: 16px;
    color: var(--red-02);
  }

  @media (min-width: 768px) {
    .menu-title {
      border-bottom: none;
      padding-block: 0;
    }
  }

  .menu-title::after {
    content: '';
    background-image: url('data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSI0NCIgaGVpZ2h0PSI0NCIgdmlld0JveD0iMCAwIDQ0IDQ0IiBmaWxsPSJub25lIj4KICAgICAgICAgICAgICAgIDxwYXRoIGQ9Ik0zOS41MDEgMjkuNDQ0NEMzOC45ODUzIDI5Ljk1OTkgMzguMjg1OSAzMC4yNDk1IDM3LjU1NjcgMzAuMjQ5NUMzNi44Mjc1IDMwLjI0OTUgMzYuMTI4MiAyOS45NTk5IDM1LjYxMjUgMjkuNDQ0NEwyMiAxNS44MzE5TDguMzg3NDkgMjkuNDQ0NEM3Ljg2ODg0IDI5Ljk0NTMgNy4xNzQxOCAzMC4yMjI1IDYuNDUzMTQgMzAuMjE2MkM1LjczMjEgMzAuMjA5OSA1LjA0MjM2IDI5LjkyMDcgNC41MzI0OSAyOS40MTA5QzQuMDIyNjIgMjguOTAxIDMuNzMzNDEgMjguMjExMyAzLjcyNzE0IDI3LjQ5MDJDMy43MjA4NyAyNi43NjkyIDMuOTk4MDYgMjYuMDc0NSA0LjQ5ODk5IDI1LjU1NTlMMjAuMDU1NyA5Ljk5OTFDMjAuNTcxNCA5LjQ4MzU2IDIxLjI3MDggOS4xOTM5NCAyMiA5LjE5Mzk0QzIyLjcyOTIgOS4xOTM5NCAyMy40Mjg1IDkuNDgzNTYgMjMuOTQ0MiA5Ljk5OTFMMzkuNTAxIDI1LjU1NTlDNDAuMDE2NSAyNi4wNzE2IDQwLjMwNjIgMjYuNzcwOSA0MC4zMDYyIDI3LjUwMDFDNDAuMzA2MiAyOC4yMjkzIDQwLjAxNjUgMjguOTI4NyAzOS41MDEgMjkuNDQ0NFoiIGZpbGw9IiNEQjI2MjYiLz4KICAgICAgICAgICAgPC9zdmc+');
    width: 16px;
    height: 16px;
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    transition: transform 0.3s;
    transform: rotate(180deg);
    position: static;
  }

  @media (min-width: 768px) {
    .menu-title::after {
      display: none;
    }
  }

  .accordion-trigger:checked + .accordion-label::after {
    transform: rotate(0);
  }

  .accordion-detail {
    list-style: none;
    padding: 0;
    margin: 0;
    height: 0;
    overflow: hidden;
    transition: all 0.5s;
  }

  @media (min-width: 768px) {
    .section-footer .accordion-detail {
      height: auto;
      padding-top: 10px;
      opacity: 1;
    }
  }

  .accordion-trigger:checked + .accordion-label + .accordion-detail {
    height: auto;
    padding-top: 16px;
    opacity: 1;
  }
  @media (min-width: 768px) {
    .accordion-trigger:checked + .accordion-label + .accordion-detail {
      padding-top: 10px;
    }
  }

  .menu-list li {
    margin-bottom: 10px;
    color: #324055;
    display: flex;
    align-items: center;
    gap: 6px;
  }

  @media (min-width: 768px) {
    .menu-list li {
      margin-bottom: 0;
    }
  }

  .menu-list li::before {
    content: '・';
    color: #324055;
    font-size: 20px;
    font-weight: 700;
  }

  .menu-list a {
    text-decoration: none;
    color: #333;
    font-size: 0.95rem;
    transition: color 0.3s;
  }

  .menu-list a:hover {
    color: #d40000;
  }

  .footer-bottom {
    grid-column: 1 / -1;
    border-top: 1px solid #ddd;
    padding-top: 20px;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 10px;
    font-size: var(--text-xs);
  }

  .footer .copyright {
    color: #324055;
  }

  .privacy-link {
    color: #324055;
    text-decoration: none;
    font-size: var(--text-xs);
    transition: color 0.3s;
  }

  .privacy-link:hover {
    color: #d40000;
  }

  .back-to-top {
    margin-left: auto;
  }

  /* 下層ページ ctaセクション */
  .page-common-cta {
    background: #fff5f1;
  }
  .page-common-cta-inner {
    display: flex;
    flex-direction: column;
    gap: 30px;
    align-items: center;
    text-align: center;
  }
  @media (min-width: 768px) {
    .page-common-cta-inner {
      gap: 55px;
    }
  }

  .page-common-cta-title {
    font-size: clamp(1.25rem, 0.7692rem + 2.5641vw, 2rem);
    font-weight: 700;
  }
  @media (min-width: 768px) {
    .page-common-cta-title {
      font-size: clamp(1.5625rem, -0.1875rem + 3.6458vw, 2rem);
    }
  }
  .page-common-cta-text {
    font-size: 16px;
    line-height: 1.6;
    color: #1f2937;
  }
  @media (min-width: 768px) {
    .page-common-cta-text {
      font-size: 20px;
    }
  }

  .page-common-cta-text p {
    margin-bottom: 10px;
    text-align: left;
  }
  @media (min-width: 768px) {
    .page-common-cta-text p {
      margin-bottom: 0;
    }
  }

  .page-common-cta-note {
    background: var(--red-01);
    color: #fff;
    padding: 8px 16px;
    font-weight: 700;
    width: 100%;
    font-size: 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 8px;
  }
  @media (min-width: 780px) {
    .page-common-cta-note {
      font-size: clamp(1.25rem, 0.5rem + 1.5625vw, 1.5rem);
      flex-direction: row;
    }
  }
  .page-common-cta-note-text {
    font-size: 16px;
    font-weight: 400;
    text-align: left;
  }
  .page-common-cta-actions {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 24px;
    width: 100%;
  }
  @media (min-width: 768px) {
    .page-common-cta-actions {
      flex-direction: row;
      justify-content: center;
      gap: 30px;
    }
  }

  @media (min-width: 768px) {
    .page-common-cta-phone .tel-link {
      font-size: clamp(2.25rem, -2.25rem + 9.375vw, 3.75rem);
    }
    .page-common-cta-phone .tel-link i {
      font-size: clamp(1.5rem, -0.75rem + 4.6875vw, 2.25rem);
      margin-top: 10px;
    }
  }
  .page-common-cta-phone-hours {
    display: block;
    font-size: 14px;
    color: #324055;
  }
  .page-common-cta-form-text {
    margin-bottom: 12px;
    font-size: 16px;
    color: #324055;
  }
  @media (min-width: 768px) {
    .page-common-cta-note-text {
      font-size: 16px;
    }
  }

  .page-common-cta-form {
    max-width: 430px;
    width: 100%;
    flex-grow: 1;
  }

  .page-common-cta-form-link {
    max-width: 430px;
    width: 100%;
  }
  @media (min-width: 768px) {
    .page-common-cta-form-link {
      padding-block: 30px;
      font-size: 24px;
    }
  }

  @media (min-width: 768px) {
  }
  footer input[type='checkbox'] + label {
    border-top: none;
    border-left: none;
    border-right: none;
    padding-inline: 0;
    border-radius: 0;
    cursor: unset;
  }
  footer input[type='checkbox'] + label:before {
    content: none;
  }

  @media (min-width: 890px) {
    /* ホバーによるドロップダウン表示を無効化 */
    .header .list .item.toggle:hover {
      background-color: unset;
      border-radius: unset;
      cursor: pointer;
    }
    .header .list .item.toggle:hover .text {
      color: unset;
      font-weight: unset;
    }
    .header .list .item:hover .menu {
      height: 0;
      padding-block: 0;
      opacity: 0;
    }
    .header .list .item:hover .menu .heading {
      display: none;
    }
    .header .list .item:hover .menu .inner {
      display: none;
    }

    /* クリック時（.open クラス）でドロップダウンを表示 */
    .header .list .item.toggle.open {
      background-color: rgba(255, 255, 255, 0.9);
      border-radius: 8px 8px 0 0;
      cursor: default;
    }
    .header .list .item.toggle.open .text {
      color: var(--main-color);
      font-weight: var(--weight-bold);
    }
    .header .list .item.open .menu {
      height: auto;
      padding-block: var(--p-xxl);
      opacity: 1;
    }
    .header .list .item.open .menu .heading {
      display: block;
    }
    .header .list .item.open .menu .inner {
      display: grid;
    }

    .header .list .item .text::after {
      transition: transform 0.3s;
    }
    .header .list .item.open .text::after {
      transform: rotate(225deg) translateY(-30%);
    }
  }
}
