@layer reset, base, components, utilities, property, custom;

/* @layer reset {
  h1,
  h2,
  h3,
  h4,
  h5,
  h6 {
    margin: 0;
    padding: 0;
    font-size: 100%;
    font-weight: normal;
  }
} */

:root {
  --color-primary: #e32828;
  --color-secondary: #730707;
  --color-line: #00b54c;
  --color-fg: #333;
  --color-fg-inversed: white;
  --color-bg: white;
  --color-bg-muted: #f5f5f5;
  --color-panel: white;
  --color-border: #ccc;
}

@layer utilities {
  .inline-block {
    display: inline-block;
  }
  .inline-flex {
    display: inline-flex;
  }
  .flex {
    display: flex;
  }

  .fg {
    color: var(--color-fg);
  }
  .fg-inversed {
    color: var(--color-fg-inversed);
  }

  .fg-primary {
    color: var(--color-primary);
  }

  .fg-secondary {
    color: var(--color-secondary);
  }

  .bg-primary {
    background-color: var(--color-primary);
  }
  .bg-primary.fg-contrast {
    color: white;
  }

  .bg {
    background-color: var(--color-bg);
  }

  .bg-secondary {
    background-color: var(--color-secondary);
  }
  .bg-secondary.fg-contrast {
    color: white;
  }

  .bg-line {
    background-color: var(--color-line);
  }
  .bg-line.fg-contrast {
    color: white;
  }

  .bg-red {
    background-color: #e74c3c;
  }
  .bg-red.fg-contrast {
    color: white;
  }

  .bg-orange {
    background-color: var(--color-primary);
  }
  .bg-orange.fg-contrast {
    color: white;
  }

  .bg-white {
    background-color: white;
  }
  .bg-white.fg-dark {
    color: #333;
  }

  .border {
    border-width: 1px;
    border-style: solid;
    border-color: var(--color-border);
  }

  .border-primary {
    border-color: var(--color-primary);
  }

  .border-secondary {
    border-color: var(--color-secondary);
  }

  .border-line {
    border-color: var(--color-line);
  }

  .bold {
    font-weight: bold;
  }

  .horizontal {
    display: flex;
    flex-direction: row;
    align-items: center;
  }

  .vertical {
    display: flex;
    flex-direction: column;
    align-items: center;
  }

  .justify-center {
    justify-content: center;
  }

  .align-stretch {
    align-items: stretch;
  }

  .self-stretch {
    align-self: stretch;
  }

  .gap-sm {
    gap: 0.5em;
  }

  .gap-md {
    gap: 1em;
  }

  .gap-lg {
    gap: 2em;
  }

  .p-0 {
    padding: 0;
  }

  .p-sm {
    padding: var(--p-sm);
  }

  .p-md {
    padding: var(--p-md);
  }

  .p-lg {
    padding: var(--p-lg);
  }

  .p-xl {
    padding: var(--p-xl);
  }

  .px-0 {
    padding-inline: 0;
  }

  .px-sm {
    padding-inline: 0.5em;
  }

  .px-md {
    padding-inline: 1em;
  }

  .px-lg {
    padding-inline: 2em;
  }

  .px-xl {
    padding-inline: 3em;
  }

  .py-0 {
    padding-block: 0;
  }

  .py-sm {
    padding-block: 0.5em;
  }

  .py-md {
    padding-block: 1em;
  }

  .py-lg {
    padding-block: 2em;
  }

  .py-xl {
    padding-block: 3em;
  }

  .pt-0 {
    padding-top: 0;
  }

  .pt-sm {
    padding-top: 0.5em;
  }

  .pt-md {
    padding-top: 1em;
  }

  .pt-lg {
    padding-top: 2em;
  }

  .pt-xl {
    padding-top: 3em;
  }

  .pb-0 {
    padding-bottom: 0;
  }

  .pb-sm {
    padding-bottom: 0.5em;
  }

  .pb-md {
    padding-bottom: 1em;
  }

  .pb-lg {
    padding-bottom: 2em;
  }

  .pb-xl {
    padding-bottom: 3em;
  }

  .pl-0 {
    padding-left: 0;
  }

  .pl-sm {
    padding-left: 0.5em;
  }

  .pl-md {
    padding-left: 1em;
  }

  .pl-lg {
    padding-left: 2em;
  }

  .pl-xl {
    padding-left: 3em;
  }

  .pr-0 {
    padding-right: 0;
  }

  .pr-sm {
    padding-right: 0.5em;
  }

  .pr-md {
    padding-right: 1em;
  }

  .pr-lg {
    padding-right: 2em;
  }

  .pr-xl {
    padding-right: 3em;
  }

  .text-center {
    text-align: center;
  }

  .font-mincho {
    font-family: 'Noto Serif JP', serif;
  }
  .font-gothic {
    font-family: 'Noto Sans JP', sans-serif;
  }

  .font-size-0 {
    font-size: 0;
  }

  .font-size-xs {
    font-size: 0.75rem;
  }

  .font-size-sm {
    font-size: 0.875rem;
  }

  .font-size-md {
    font-size: 1rem;
  }

  .font-size-lg {
    font-size: 1.5rem;
  }

  .font-size-xl {
    font-size: 2rem;
  }

  .font-size-xxl {
    font-size: 3rem;
  }

  .decoration-none {
    text-decoration: none;
  }
}

@layer components {
  .badge {
    padding: 0.25em 1em;
    font-size: 0.875em;
    border-radius: 0.5em;
    line-height: 1;
    white-space: nowrap;
    display: inline-block;
  }

  .badge.outline {
    border-width: 1px;
    border-style: solid;
  }

  .button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.3em;
    border-radius: 9999px;
    padding: 0.5em 2em;
    text-decoration: none;
    cursor: pointer;
    border: none;
  }

  .button:hover {
    opacity: 0.8;
  }

  .card {
    padding: 1em;
    border-radius: 0.5em;
    background-color: var(--color-panel);
  }

  .sep {
    background-color: rgb(from currentColor r g b / 0.2);
    width: 2px;
    min-height: 1em;
    display: inline-block;
  }

  .list-none {
    list-style: none;
  }
  .list-none > li {
    margin-left: 2em;
  }

  .list-disc {
    list-style: disc;
  }
  .list-disc > li {
    margin-left: 2em;
  }
}

@layer custom {
  html {
    scroll-behavior: smooth;
  }

  body {
    grid-template-rows: max-content 1fr max-content;
  }

  .svg-icons {
    display: none;
  }

  /* Header */
  .uchiike-header {
    grid-area: header;
    display: flex;
    align-items: center;
    width: 100%;
    height: 80px;
    padding: 0 min(30px, var(--content-spacing));
    background: white;
    border: none;
    .inner {
      display: flex;
      justify-content: space-between;
      align-items: center;
      height: 80px;
      .logo {
        display: flex;
        flex-direction: column-reverse;
        gap: 4px;
        .link {
          img {
            width: auto;
            height: 32px;
          }
        }
        .description {
          font-size: 12px;
        }
      }
      .information {
        display: none;
      }
    }
    .header-navigation {
      display: none;
    }
    @media (min-width: 768px) {
      flex-direction: column;
      height: 160px;
      .inner {
        width: 100%;
        padding-right: 60px;
        .logo {
          flex-direction: row;
          align-items: center;
          gap: 14px;
          .link {
            img {
              height: 38px;
            }
          }
        }
      }
      .header-navigation {
        display: flex;
        align-items: center;
        width: 100%;
        height: 80px;
        .list {
          display: flex;
          justify-content: space-evenly;
          gap: 4px;
          width: 100%;
          .sep {
            background: var(--main-color);
            height: 24px;
            &:first-child {
              display: none;
            }
            &:last-child {
              display: none;
            }
          }
          .item {
            .link {
              display: block;
              width: 100%;
              color: var(--main-color);
              font-size: 16px;
              font-weight: 700;
              text-decoration: none;
              text-align: center;
              &:hover {
                color: var(--text-point-color);
              }
            }
          }
        }
      }
    }
    @media (min-width: 1200px) {
      height: 184px;
      .inner {
        height: 104px;
        .information {
          display: flex;
          align-items: center;
          gap: 20px;
          .phone {
            .link {
              display: flex;
              align-items: center;
              gap: 7px;
              color: #e32828;
              font-size: 28px;
              font-weight: 900;
              text-decoration: none;
              line-height: 1.2;
              .svg-icon {
                fill: #e32828;
                width: 25px;
              }
            }
            .hours {
              text-align: center;
            }
          }
          .contact {
            display: grid;
            grid-template-columns: repeat(2, clamp(160px, 12vw, 224px));
            gap: 12px;
            .link {
              display: flex;
              gap: 8px;
              justify-content: center;
              align-items: center;
              width: 100%;
              height: 48px;
              border-radius: 24px;
              padding-inline: 20px;
              color: var(--text-contrast-color);
              font-size: 15px;
              font-weight: 900;
              text-decoration: none;
              transition: all 0.3s ease;
              .svg-icon {
                fill: white;
                transition: all 0.3s ease;
              }
              &.link-line {
                background: var(--color-line);
                border: 1px solid var(--color-line);
                .svg-icon {
                  width: 30px;
                }
                &:hover {
                  color: var(--color-line);
                  .svg-icon {
                    fill: var(--color-line);
                  }
                }
              }
              &.link-mail {
                background: var(--main-color);
                border: 1px solid var(--main-color);
                .svg-icon {
                  width: 25px;
                }
                &:hover {
                  color: var(--main-color);
                  .svg-icon {
                    fill: var(--main-color);
                  }
                }
              }
              &:hover {
                background: #fff;
                transition: all 0.3s ease;
              }
            }
          }
        }
      }
      .header-navigation {
        .list {
          justify-content: space-between;
          .item {
            width: 19%;
          }
        }
      }
    }
  }

  /* Footer */
  .uchiike-footer {
    grid-area: footer;
    width: 100%;
    padding-bottom: 68px;
    @media (min-width: 768px) {
      padding-bottom: 0;
    }
  }

  /* お問合せセクション */
  .footer-inquiry {
    padding: 0 var(--content-spacing);
    background: url(../image/common-bg-inquiry.png) no-repeat center bottom / auto 146px, linear-gradient(90deg, #eb6100 0%, #f5a600 100%);
    background-blend-mode: soft-light;
    .inquiry-container {
      display: grid;
      grid-template-columns: 1fr;
    }
    .inquiry-section {
      width: 100%;
      text-align: center;
      color: var(--text-contrast-color);
      padding: 2rem 0;
    }
    .inquiry-title {
      font-size: 1.5rem;
      font-weight: bold;
      margin-bottom: 1rem;
      color: var(--text-contrast-color);
    }
    .inquiry-description {
      font-size: 1rem;
      line-height: 1.6;
      margin-bottom: 1.5rem;
    }
    .phone-section {
      .link {
        display: flex;
        align-items: flex-end;
        justify-content: center;
        gap: 0.5rem;
        margin-bottom: 0.5rem;
        line-height: 1.1;
        font-size: 2.25rem;
        font-weight: bold;
        color: var(--text-contrast-color);
        text-decoration: none;
        transition: all 0.3s ease;
        .svg-icon {
          fill: var(--text-contrast-color);
          width: 28px;
          height: 36px;
          transition: all 0.3s ease;
        }
      }
      .business-hours {
        font-size: 1rem;
        color: var(--text-contrast-color);
      }
    }
    .line-section {
      border-top: 1px solid rgba(255, 255, 255, 0.3);
    }
    .email-section {
      border-top: 1px solid rgba(255, 255, 255, 0.3);
    }
    .inquiry-button {
      display: inline-flex;
      align-items: center;
      gap: 0.5rem;
      height: 70px;
      padding: 0 2rem;
      background: #fff;
      border: 1px solid #fff;
      border-radius: 35px;
      text-decoration: none;
      font-weight: bold;
      transition: all 0.3s ease;
      font-size: 1.25rem;
      .svg-icon {
        transition: all 0.3s ease;
      }
      &:hover {
        .svg-icon {
          fill: var(--text-contrast-color);
        }
      }
    }
    .line-button {
      color: var(--color-line);
      .svg-icon {
        fill: var(--color-line);
        width: 38px;
      }
      &:hover {
        background: var(--color-line);
        color: var(--text-contrast-color);
      }
    }
    .email-button {
      color: var(--main-color);
      .svg-icon {
        fill: var(--main-color);
        width: 32px;
      }
      &:hover {
        background: var(--main-color);
        color: var(--text-contrast-color);
      }
    }
    @media (min-width: 480px) and (max-width: 767px) {
      .inquiry-container {
        grid-template-columns: repeat(2, 1fr);
        padding-block: 30px;
      }
      .inquiry-section {
        padding: 0;
      }
      .phone-section {
        grid-area: 1 / 1 / 2 / 3;
        padding-bottom: 30px;
      }
      .line-section {
        grid-area: 2 / 1 / 3 / 2;
        border-top: none;
        border-right: 1px solid rgba(255, 255, 255, 0.3);
        .inquiry-title {
          font-size: 1.2rem;
        }
      }
      .email-section {
        grid-area: 2 / 2 / 3 / 3;
        border-top: none;
        .inquiry-title {
          font-size: 1.2rem;
        }
      }
    }
    @media (min-width: 768px) {
      margin: 0 min(var(--content-spacing), 30px);
      padding: 60px 0;
      border-radius: 30px;
      .inquiry-container {
        grid-template-columns: repeat(3, 1fr);
        padding-inline: var(--content-spacing);
      }
      .inquiry-section {
        + .inquiry-section {
          border-top: none;
          border-left: 1px solid rgba(255, 255, 255, 0.3);
        }
      }
      .inquiry-title {
        font-size: clamp(1.25rem, 2vw, 1.5rem);
      }
      .phone-section {
        min-width: 280px;
        .link {
          font-size: clamp(2rem, 3vw, 2.25rem);
        }
      }
    }
  }

  /* 会社情報とナビゲーションセクション */
  .footer-company-info {
    background: #fff;
    padding: 3rem var(--content-spacing);
    color: var(--color-fg);
    width: 100%;
    .inner {
      display: grid;
      grid-template-columns: 1fr;
      gap: 2rem;
      align-items: start;
    }
    .company-details {
      display: flex;
      flex-direction: column;
      gap: 1rem;
    }
    .company-name {
      margin-bottom: 0.5rem;
      img {
        width: 234px;
        height: auto;
      }
    }
    .contact-info {
      display: flex;
      align-items: center;
      flex-wrap: wrap;
      gap: 16px;
      .link {
        display: flex;
        align-items: end;
        gap: 0.5rem;
        font-size: 30px;
        font-weight: bold;
        line-height: 1;
        color: var(--text-point-color);
        text-decoration: none;
        .svg-icon {
          width: 26px;
          fill: var(--text-point-color);
        }
      }
      .business-hours {
        font-size: 12px;
        color: var(--text-point-color);
        line-height: 1.1;
      }
    }
    .address {
      display: flex;
      flex-wrap: wrap;
      gap: 0 1rem;
      font-size: 14px;
      color: var(--text-point-color);
      line-height: 1.4;
      span {
        white-space: nowrap;
      }
    }
    .social-links {
      display: flex;
      align-items: center;
      gap: 1rem;
      margin-top: 0.5rem;
    }
    .social-link {
      font-size: 1.5rem;
      color: #333;
      transition: color 0.3s ease;
      .svg-icon {
        width: 24px;
        fill: var(--main-color);
      }
      &:hover {
        .svg-icon {
          fill: var(--text-point-color);
        }
      }
    }
    .privacy-policy-link {
      font-size: 0.875rem;
      color: #000;
      text-decoration: none;
      white-space: nowrap;
      &:hover {
        text-decoration: underline;
      }
    }
    .footer-navigation {
      display: grid;
      grid-template-columns: max-content;
      gap: 1rem;
      .nav-column {
        display: none;
        flex-direction: column;
        gap: 13px;
      }
      .nav-column h4 {
        font-size: 1rem;
        font-weight: bold;
        color: var(--text-point-color);
        &::before {
          content: '・';
        }
      }
      .nav-column ul {
        display: flex;
        flex-direction: column;
        gap: 6px;
      }
      .nav-column li {
        text-indent: 1rem;
      }
      .nav-column a {
        font-size: 1rem;
        color: var(--text-point-color);
        text-decoration: none;
        transition: color 0.3s ease;
        line-height: 1.6;
      }
      .nav-column a:hover {
        color: var(--main-color);
      }
      .nav-column-01 {
        display: flex;
        li {
          font-size: 1rem;
          font-weight: bold;
          color: var(--text-point-color);
          text-indent: unset;
          &::before {
            content: '・';
          }
        }
      }
    }
    @media (min-width: 768px) and (max-width: 999px) {
      .inner {
        grid-template-columns: 420px 1fr;
        .footer-navigation {
          justify-content: flex-end;
        }
      }
    }
    @media (min-width: 1000px) {
      .inner {
        grid-template-columns: 35% 1fr;
        .footer-navigation {
          grid-template-columns: max-content 1fr 1fr 1fr;
          .nav-column {
            display: flex;
            h4 {
              font-size: clamp(0.75rem, 1.3vw, 1rem);
            }
            li {
              text-indent: clamp(0.75rem, 1.3vw, 1rem);
            }
            a {
              font-size: clamp(0.75rem, 1.3vw, 1rem);
            }
          }
          .nav-column-01 {
            li {
              font-size: clamp(0.75rem, 1.3vw, 1rem);
              text-indent: unset;
            }
          }
        }
      }
    }
  }

  /* フッターリンクバナー */
  .footer-link-banners {
    padding: 0 var(--content-spacing) 60px;
    .list {
      display: flex;
      flex-wrap: wrap;
      justify-content: center;
      gap: 10px;
      .item {
        width: calc((100% - 10px) / 2);
        .footer-banner {
          display: block;
          width: 100%;
          border: 1px solid #ccc;
          &:hover {
            opacity: 0.7;
          }
          img {
            width: 100%;
            height: auto;
          }
        }
        @media (min-width: 620px) and (max-width: 919px) {
          width: calc((100% - 20px) / 3);
        }
        @media (min-width: 920px) {
          width: calc((100% - 30px) / 4);
        }
      }
    }
  }

  /* 下部フッター */
  .footer-bottom {
    .pagetop {
      display: flex;
      justify-content: center;
      margin-bottom: 30px;
      .link {
        display: flex;
        flex-direction: column;
        text-decoration: none;
        &::after {
          content: '';
          display: block;
          width: 76px;
          height: 88px;
          background: url(../image/common-uchiiken.png) no-repeat center / contain;
        }
        .text {
          color: var(--main-color);
          font-size: 18px;
          font-weight: 700;
          line-height: 2.4;
        }
        &:hover {
          opacity: 0.7;
        }
      }
    }
    .copyright {
      padding: 8px;
      background: var(--main-color);
      text-align: center;
      .text {
        color: var(--text-contrast-color);
        font-size: 14px;
        line-height: 1.45;
      }
    }
  }

  /* 固定バナー */
  .fixed-buttons {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    display: grid;
    grid-template-columns: 1fr max-content;
    align-items: center;
    gap: 10px;
    width: 100%;
    padding: 10px var(--content-spacing);
    background: rgba(255, 255, 255, 0.8);
    z-index: 100;
    .inner {
      display: grid;
      grid-template-columns: repeat(2, 1fr);
      gap: 10px;
      .link {
        display: flex;
        gap: 8px;
        justify-content: center;
        align-items: center;
        width: 100%;
        height: 48px;
        border-radius: 24px;
        padding-inline: 12px;
        color: var(--text-contrast-color);
        font-size: 15px;
        font-weight: 900;
        text-decoration: none;
        transition: all 0.3s ease;
        .svg-icon {
          fill: white;
          transition: all 0.3s ease;
        }
        &.link-line {
          background: var(--color-line);
          border: 1px solid var(--color-line);
          .svg-icon {
            width: 26px;
          }
          &:hover {
            color: var(--color-line);
            .svg-icon {
              fill: var(--color-line);
            }
          }
        }
        &.link-mail {
          background: var(--main-color);
          border: 1px solid var(--main-color);
          .svg-icon {
            width: 22px;
          }
          &:hover {
            color: var(--main-color);
            .svg-icon {
              fill: var(--main-color);
            }
          }
        }
        &:hover {
          background: #fff;
          transition: all 0.3s ease;
        }
      }
    }
    .tel {
      .link {
        display: block;
        .svg-icon {
          fill: #e32828;
          max-width: 48px;
          width: 11vw;
          vertical-align: bottom;
        }
      }
    }
    @media (min-width: 768px) {
      bottom: 10px;
      left: unset;
      right: 10px;
      width: fit-content;
      padding: 0;
      background: none;
      grid-template-columns: 1fr;
      .inner {
        grid-template-columns: 1fr;
        .link {
          width: 150px;
        }
      }
      .tel {
        display: none;
      }
      &::after {
        content: '';
        display: block;
        width: 94px;
        height: 90px;
        margin: 0 auto;
        background: url(../image/common-uchiiken-02.png) no-repeat center / contain;
      }
    }
  }

  /* hamburger-menu */
  .hamburger-menu {
    gap: 6px;
    top: 24px;
    width: 30px;
    height: 30px;
    padding: 0;
    .item {
      width: 30px;
      height: 4px;
      background-color: var(--main-color);
      border-radius: 4px;
    }
    @media (min-width: 1200px) {
      position: absolute;
      top: 36px;
      right: 30px;
    }
  }
}

