:root {
  --vw: 1vw;
}

@supports (width: 1svw) {
  :root {
    --vw: 1svw;
  }
}

body {
  font-family: "Noto Sans JP", Arial, sans-serif;
  line-height: 1.6;
  color: #313131;
}

.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 1.25rem;
}

a {
  color: #313131;
}

.pc {
  display: block;
}

.sp {
  display: none;
}

@media (max-width: 800px) {
  .pc {
    display: none;
  }

  .sp {
    display: block;
  }
}

/* ヘッダー */
.header {
  background-color: #ffffff;
  height: 5.4375rem;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  box-shadow: 0px 0px 10px 0px rgba(0, 0, 0, 0.16);
  padding-left: 20px;
}

.header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
}

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

.header .logo-image {
  display: block;
}

.logo-image {
  height: 2.5rem;
  width: auto;
}

.header-nav {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.nav-list {
  display: flex;
}

.nav-list a {
  font-size: 1rem;
  font-weight: 700;
  transition: color 0.3s ease;
  padding: 1rem 1.5rem;
  display: block;
}

.nav-list a:hover {
  color: #a8181e;
}

.header-contact {
  background-color: #a8181e;
  color: white;
  text-align: center;
  min-height: 5.4375rem;
  min-width: 12.5rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  transition: background-color 0.3s ease;
}

.header-contact:hover {
  background-color: #8a1318;
}

.header-contact-label {
  font-size: 1rem;
  margin-bottom: 2px;
}

.phone {
  font-size: 1.25rem;
  font-weight: bold;
  letter-spacing: 0.05em;
  display: flex;
  align-items: center;
  gap: 0.3125rem;
  flex-wrap: wrap;
  justify-content: center;
}

.phone img {
  width: 1.25rem;
  height: 1.25rem;
  transform: translateY(1px);
}

/* メイン */
main {
  margin-top: 5.4375rem; /* ヘッダーの高さ分のマージンを追加 */
}

/* フッター */
.footer {
  background-color: #a8181e;
  color: white;
  padding-top: 3.25rem;
  letter-spacing: 0.1rem;
}

.footer-content {
  display: flex;
  justify-content: space-between;
  gap: 2.5rem;
  padding-bottom: 3.25rem;
}

.footer-left {
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.footer-left .logo-image {
  height: 2.75rem;
  width: auto;
  filter: brightness(0) saturate(100%) invert(100%);
  margin-bottom: 0.5rem;
}

.footer-left .logo-text-image {
  height: 1.5rem;
  width: auto;
  filter: brightness(0) saturate(100%) invert(100%);
}

.footer-contact-label {
  font-size: 1rem;
  font-weight: 500;
  margin-bottom: 0.5rem;
  color: white;
  text-align: center;
}

.footer-phone {
  font-size: 1.25rem;
  font-weight: bold;
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.3125rem;
}

.footer-right {
  display: flex;
  flex-direction: row;
  text-align: right;
  gap: 3rem;
  align-items: center;
}

.footer .info-bar {
  background: none;
  color: white;
}

.footer .info-bar .container {
  display: table;
  width: auto;
  font-size: 0.9375rem;
  padding: 0;
  margin: 0;
  text-align: right;
}

.footer .info-item {
  display: table-row;
}

.footer .info-label,
.footer .info-value {
  display: table-cell;
  padding: 0.125rem 0;
  text-align: left;
  vertical-align: top;
  color: white;
}

.footer .info-label {
  padding-right: 0.75rem;
}

.footer .info-separator {
  display: none;
}

.footer-info p {
  font-size: 1rem;
  font-weight: 500;
  color: white;
  margin-bottom: 0.375rem;
  text-align: left;
}

.footer-bottom {
  background-color: #313131;
  padding: 0.5rem 1rem;
  text-align: right;
}

.copyright {
  font-size: 0.75rem;
  color: white;
  letter-spacing: 0.1rem;
}

/* レスポンシブ対応 */
@media (max-width: 800px) {
  /* ヘッダー */
  .header {
    height: auto;
    padding: 0;
  }

  .header .container {
    flex-direction: row;
    justify-content: space-between;
  }

  .header-sp-content {
    display: flex;
    align-items: center;
    gap: clamp(0.5rem, 4 * var(--vw), 1rem);
    flex-wrap: wrap;
  }

  .header-contact-sp {
    width: auto;
    height: auto;
    min-width: clamp(8rem, 40 * var(--vw), 10rem);
    min-height: 4.375rem;
    padding: clamp(0.5rem, 3 * var(--vw), 0.75rem) clamp(0.75rem, 4 * var(--vw), 1rem);
    font-size: clamp(0.75rem, 5 * var(--vw), 0.875rem);
    flex-shrink: 1;
  }

  .header-contact-sp .header-contact-label {
    font-size: 0.75rem;
    margin-bottom: 2px;
  }

  .header-contact-sp .phone {
    font-size: 1rem;
  }

  .header-contact-sp .phone img {
    width: 1rem;
    height: 1rem;
  }

  .mobile-modal .container {
    display: block;
    text-align: center;
  }

  .logo-image {
    height: 1.75rem;
  }

  /* ハンバーガーメニュー */
  .hamburger-menu {
    position: relative;
  }

  .hamburger-btn {
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
    width: clamp(1.25rem, 4 * var(--vw), 1.5rem);
    height: clamp(1.25rem, 4 * var(--vw), 1.5rem);
    position: relative;
    flex-shrink: 0;
  }

  .hamburger-btn .menu-icon {
    width: 100%;
    height: 100%;
    position: absolute;
    top: 0;
    left: 0;
    transition: opacity 0.3s ease;
  }

  .hamburger-btn.active .menu-icon {
    opacity: 0;
  }

  /* モバイルモーダル */
  .mobile-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background-color: white;
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
  }

  .mobile-modal.active {
    opacity: 1;
    visibility: visible;
  }

  .mobile-modal-content {
    padding: 1rem 0;
    height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    text-align: center;
    position: relative;
  }

  .modal-close-btn {
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
    width: 1.125rem;
    height: 1.125rem;
    margin-top: 0.25rem;
    margin-right: 0.25rem;
    margin-left: auto;
  }

  .modal-close-btn img {
    width: 100%;
    height: 100%;
  }

  .mobile-modal-header {
    margin-top: 3rem;
    margin-bottom: 3rem;
  }

  .mobile-logo {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
  }

  .mobile-logo-main {
    height: 4rem;
    width: auto;
  }

  .mobile-logo-sub {
    height: 1.75rem;
    width: auto;
  }

  .mobile-nav {
    margin-bottom: 3rem;
  }

  .mobile-nav-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: row;
    gap: 2rem;
    justify-content: center;
  }

  .mobile-nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
  }

  .nav-icon {
    width: 1.5rem;
    height: auto;
  }

  .mobile-nav-item a {
    text-decoration: none;
    font-size: 1.25rem;
    font-weight: 600;
    letter-spacing: 0.3em;
    writing-mode: vertical-rl;
    text-orientation: upright;
    transition: color 0.3s ease;
  }

  .mobile-nav-item a:hover {
    color: #a8181e;
  }

  .mobile-contact-label {
    font-size: 1.125rem;
    font-weight: 600;
    margin-bottom: 1rem;
    letter-spacing: 0.1rem;
  }

  .mobile-contact-btn {
    background-color: #313131;
    color: white;
    padding: clamp(0.75rem, 2 * var(--vw), 1rem) clamp(1.5rem, 4 * var(--vw), 2rem);
    border-radius: 4px;
    text-decoration: none;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    font-size: clamp(1.25rem, 4 * var(--vw), 1.5rem);
    font-weight: bold;
    letter-spacing: 0.1rem;
    transition: background-color 0.3s ease;
    flex-wrap: wrap;
    min-height: 3rem;
    max-width: clamp(15rem, 50 * var(--vw), 20rem);
    margin: 0 auto;
  }

  .mobile-contact-btn:hover {
    background-color: #555;
  }

  .mobile-contact-btn img {
    width: 1.5rem;
    height: auto;
    filter: brightness(0) saturate(100%) invert(100%);
  }

  /* メイン */
  main {
    margin-top: 4.375rem; /* ヘッダーの高さ分のマージンを追加 */
  }

  /* フッター */
  .footer-content {
    flex-direction: column;
    text-align: center;
    gap: 2rem;
  }

  .footer-right {
    flex-direction: column;
    text-align: center;
    gap: 1.5rem;
  }

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