@layer custom {
  :root {
    --content-spacing-lg: clamp(1.25rem, 24vw, max(calc(50vw - 1100px / 2), 12px));
    --sato-primary: #339999;
    --sato-text: #333333;
  }

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

  /* Header adjustments */
  .header {
    background-color: #fff;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
  }

  /* Header text colors */
  .header .inner .link,
  .header .inner .link span {
    color: var(--sato-text);
  }

  .header .information .text,
  .header .information .tel,
  .header .information .block-text,
  .header .information .block-text-title {
    color: var(--sato-text);
  }

  .header .information .tel::before {
    color: var(--sato-text);
  }

  .header .inner .link.logo,
  .simple-header .inner .link.logo {
    max-width: 166px;
    height: 51px;
    transition: all 0.3s;
    display: flex;
    align-items: center;
  }

  .header .inner .link.logo:hover,
  .simple-header .inner .link.logo:hover {
    opacity: 0.7;
    background-color: transparent;
    border-radius: 0;
  }

  @media (min-width: 768px) {
    .header .inner .link.logo,
    .simple-header .inner .link.logo {
      max-width: 166px;
      height: 51px;
      display: flex;
      align-items: center;
    }

    .header .inner .link.logo:hover,
    .simple-header .inner .link.logo:hover {
      background-color: transparent;
      border-radius: 0;
    }
  }

  .header .inner .link.logo img,
  .simple-header .inner .link.logo img {
    width: 132px;
    height: 40px;
    object-fit: contain;
  }

  /* Navigation links */
  .header .list .item .link,
  .header .list .item .text {
    color: var(--sato-text);
    font-weight: 700;
    transition: all 0.3s;
  }

  .header .list .item .link:hover {
    color: var(--sato-primary);
    opacity: 1;
  }

  /* Contact Button */
  .header .button-link.contact-link {
    background-color: #B20007;
    color: #fff;
    border: none;
    border-radius: 4px;
    font-weight: bold;
    transition: all 0.3s;
  }

  .header .button-link.contact-link:hover {
    opacity: 0.7;
  }


/* ハンバーガーメニュー閉じるボタン */
.menu-open :where(.hamburger-menu) .item {
  background-color: var(--navigation-text-color);
}

  /* Footer */
  .footer {
    background-image: url('../image/footer-bg.png');
    background-repeat: repeat;
    background-size: calc(361px * 0.92) calc(128px * 0.92);
  }

  /* Footer SP  */
  @media (max-width: 767px) {
    .footer {
      background-image: none;
      background-color: #F5EEDD;
    }
  }

  .footer .logo-container {
    display: flex;
    align-items: center;
  }

  .footer .logo-container .link {
    display: block;
  }

  .footer .footer-logo {
    width: 166px;
    height: 51px;
    object-fit: contain;
  }

  .footer a {
    transition: all 0.3s;
  }

  .footer a:hover {
    opacity: 0.7;
  }

  .footer .menu .sublist .link:hover {
    color: var(--sato-primary);
    font-weight: bold;
    opacity: 1;
  }

  /* Footer contact info - PC layout matching Figma */
  .footer .information .contact-info {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0;
  }
.footer .information .tel {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    width: -moz-fit-content;
    width: fit-content;
    gap: var(--p-sm);
    font-size: 28px;
    font-weight: 400;
    line-height: normal;
    
  }
  .footer .information .tel::before {
    font: var(--fa-font-solid);
    content: "\f095";
    display: inline-block;
    padding-top: var(--p-md);
    font-size: var(--text-lg);
  }
  .footer .information .tel:hover {
    color: var(--main-color);
  }
  .footer .information .tel:hover::before {
    color: var(--main-color);
  }


  @media (min-width: 768px) {
    .footer .information .contact-info {
      flex-direction: row;
      justify-content: center;
      align-items: flex-end;
      gap: 8px;
    }

    .footer .information .tel {
      font-size: 28px;
      line-height: 1.2em;
    }

    .footer .information .tel::before {
      padding-top: 4px;
    }

    .footer .information .address {
      font-size: 12px;
      line-height: 1.5em;
      margin-top: 8px;
      margin-bottom: 8px;
    }

    .footer .information .text {
      font-size: 12px;
      line-height: 1.5em;
    }
  }

  .footer .copyright {
    text-align: left;
  }

  /* Global Navigation */
  .navigation .contents .block .heading,
  .navigation .contents > li > .link {
    font-weight: 700;
  }

  .navigation .link:hover {
    color: var(--sato-primary);
  }
}
