html {
  scroll-behavior: smooth;
  font-size: 62.5%;
  scroll-padding: 100px;
  overflow-x: hidden;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: "Zen Old Mincho", serif;
  overflow-x: hidden;
}
h1 {
  font-weight: 500;
}
h2 {
  font-weight: 500;
}
a {
  text-decoration: none;
  display: block;
  color: #fff;
}
main {
  font-weight: 500;
}
p {
  font-size: min(calc(20 / 1920 * 100vw), 4rem);
  line-height: 2;
}
img {
  width: 100%;
  max-width: 100%;
  display: block;
}
.pc {
  display: block;
}
.sp {
  display: none;
}

/* -------------------
header
------------------------*/
.h-inner {
  display: flex;
  align-items: center;
  position: fixed;
  width: 100%;
  z-index: 99;
  justify-content: space-between;
}

.h-logo a{
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  padding-left: calc(34 / 1920 * 100vw);
  gap: calc(10 / 1920 * 100vw);
}

.h-logo img {
  width: calc(57 / 1920 * 100vw);
}
.h-logo h1 {
  font-size: min(calc(36 / 1920 * 100vw), 3.6rem);
  font-weight: 500;
}
.h-right {
  display: flex;
  align-items: center;
}
.h-nav {
  padding-right: calc(80 / 1920 * 100vw);
}
.h-nav ul {
  display: flex;
  align-items: center;
  gap: calc(38 / 1920 * 100vw);
}

.h-nav ul a {
  color: #fff;
  font-size: min(calc(20 / 1920 * 100vw), 2rem);
}
.h-contact li {
  align-items: center;
  width: calc(224 / 1920 * 100vw);
  padding: calc(13 / 1920 * 100vw) 0;
}
.h-contact li a {
  color: #fff;
  font-size: min(calc(20 / 1920 * 100vw), 2rem);
  display: flex;
  justify-content: center;
  gap: calc(10 / 1920 * 100vw);
  align-items: center;
}
.h-tel {
  background-color: #da1212;
}
.h-tel img {
  width: calc(17 / 1920 * 100vw);
}
.h-mail {
  background-color: #041562;
}

.h-mail img {
  width: calc(20 / 1920 * 100vw);
}

.c-btn {
  background-color: #da1212;
  padding: calc(12.5 / 1920 * 100vw) 0;
  width: calc(192 / 1920 * 100vw);
  position: relative;
}
.c-btn a {
  font-size: min(calc(16 / 1920 * 100vw), 1.6rem);
  color: #fff;
  text-align: center;
}
.c-btn::after {
  content: "";
  border-bottom: solid 1px #fff;
  width: calc(26 / 1920 * 100vw);
  position: absolute;
  top: 50%;
  right: 0;
  transform: translate(0, -50%);
}

/* -----------------

----------------------*/
.f-inner {
  background-color: #041562;
}
.f-contact {
  background: url(../img/footer_bg.webp) no-repeat;
  background-size: contain;
  aspect-ratio: 1920/388;
  padding: calc(41 / 1920 * 100vw) 0 0;
}
.f-contact__ttl {
  text-align: center;
  color: #fff;
}
.f-contact__ttl h1 {
  font-size: min(calc(40 / 1920 * 100vw), 4rem);
}
.f-contact__ttl p {
  font-size: min(calc(20 / 1920 * 100vw), 2rem);
  margin: calc(10 / 1920 * 100vw) 0 calc(20 / 1920 * 100vw);
}
.f-contact p {
  font-size: min(calc(20 / 1920 * 100vw), 2rem);
  color: #fff;
  text-align: center;
}
.f-contact__flex {
  margin-top: calc(50 / 1920 * 100vw);
}
.f-contact__flex ul {
  display: flex;
  gap: calc(19 / 1920 * 100vw);
  justify-content: center;
}
.f-contact__flex li {
  width: calc(224 / 1920 * 100vw);
}
.f-contact__flex a {
  display: flex;
  align-items: center;
  border: solid 1px #fff;
  padding: calc(14 / 1920 * 100vw) 0;
  gap: calc(10 / 1920 * 100vw);
  justify-content: center;
  font-size: min(calc(20 / 1920 * 100vw), 1.6rem);
}
.f-mail {
  background-color: #041562;
}
.f-tel img {
  width: calc(17 / 1920 * 100vw);
}
.f-fax img {
  width: calc(24 / 1920 * 100vw);
}
.f-mail img {
  width: calc(20 / 1920 * 100vw);
}

.f-flex {
  display: flex;
  max-width: calc(1280 / 1920 * 100vw);
  margin: 0 auto;
  justify-content: space-between;
  align-items: center;
}
.f-logo {
  display: flex;
  align-items: center;
  gap: calc(10 / 1920 * 100vw);
  margin-bottom: calc(10 / 1920 * 100vw);
}
.f-logo img {
  width: calc(57 / 1920 * 100vw);
}
.f-logo h1 {
  font-size: min(calc(36 / 1920 * 100vw), 3.6rem);
  color: #fff;
  font-weight: 500;
}

.f-address p {
  font-size: min(calc(20 / 1920 * 100vw), 2rem);
  color: #fff;
}
.f-right ul {
  display: flex;
  justify-content: center;
  gap: calc(38 / 1920 * 100vw);
}
.f-right a {
  font-size: min(calc(20 / 1920 * 100vw), 2rem);
}
.copy {
  padding: calc(30 / 1920 * 100vw) 0;
}
.copy p {
  font-size: min(calc(15 / 1920 * 100vw), 1.5rem);
  text-align: center;
  color: #fff;
}
.pagetop {
  position: fixed;
  height: calc(69 / 1920 * 100vw);
  width: calc(69 / 1920 * 100vw);
  bottom: calc(126 / 1920 * 100vw);
  right: calc(164 / 1920 * 100vw);
}
.pagetop a {
  display: block;
}

@media screen and (max-width: 768px) {
  p {
    font-size: 1.6rem;
  }
  .sp {
    display: block;
  }
  .pc {
    display: none;
  }
  .h-logo img {
    width: 57px;
  }
  .h-logo h1 {
    font-size: 3.6rem;
  }
  .c-btn {
    padding: 12.5px 0;
    width: 192px;
    margin: 0 auto;
  }
  .c-btn a {
    font-size: 1.6rem;
  }
  .c-btn::after {
    width: 26px;
  }
  .h-logo a{
    justify-content: flex-start;
    padding: 33px 0 0 18px;
  }
  .menu-btn {
    display: block;
    pointer-events: all;
    position: fixed;
    top: 33px;
    right: 19px;
    width: 40px;
    height: 51px;
    text-align: center;
    cursor: pointer;
    z-index: 1001;
    background-color: #041562;
    border: unset;
  }
  .menu-btn p {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    top: 28px;
    font-size: 10px;
    text-align: center;
    color: #fff;
    text-transform: uppercase;
    font-weight: 600;
  }
  .menu-btn .bar {
    display: block;
    position: absolute;
    width: 18px;
    height: 2px;
    left: 17px;
    background: #fff;
  }
  .menu-btn .bar:nth-of-type(1) {
    top: 10px;
    transition: 0.3s;
  }
  .menu-btn .bar:nth-of-type(2) {
    top: 16px;
  }
  .menu-btn .bar:nth-of-type(3) {
    top: 23px;
    transition: 0.3s;
  }
  .menu-btn.active .bar:nth-child(1) {
    top: 15px;
    transform: rotate(45deg);
    transition: 0.3s;
  }
  .menu-btn.active .bar:nth-child(2) {
    top: 15px;
    opacity: 0;
  }
  .menu-btn.active .bar:nth-child(3) {
    top: 15px;
    transform: rotate(-45deg);
    transition: 0.3s;
  }
  .h-inner {
    display: block;
  }
  .h-nav {
    background-color: #d5d8e5;
    display: none;
    height: 100vh;
    position: absolute;
    top: 0;
    width: 100%;
  }
  .h-nav ul {
    display: block;
    margin: 0;
    width: 100%;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
  }
  .h-nav ul li {
    padding: 18px 0;
    position: relative;
  }
  .h-nav ul li:last-of-type {
    margin-right: 0;
  }
  .h-nav ul li a {
    position: static;
    font-size: 2rem;
    text-align: center;
    color: #000;
  }

  .f-contact {
    background: url(../img/footer_bg_sp.webp) no-repeat;
    background-size: cover;
    aspect-ratio: unset;
    padding: 42px 4% 56px;
  }
  .f-contact__ttl h1 {
    font-size: 2.4rem;
  }
  .f-contact p {
    font-size: 2rem;
  }
  .f-contact p {
    font-size: 1.6rem;
  }
  .f-contact__flex {
    margin-top: 36px;
  }
  .f-contact__flex ul {
    display: block;
  }
  .f-contact__flex li {
    width: 224px;
    margin: 0 auto 16px;
  }
  .f-contact__flex a {
    padding: 14px 0;
    gap: 10px;
    font-size: 2rem;
  }
  .f-tel img {
    width: 17px;
  }
  .f-fax img {
    width: 24px;
  }
  .f-mail img {
    width: 20px;
  }
  .f-flex {
    display: block;
    max-width: unset;
    padding: 23px 4% 60px;
  }
  .f-logo {
    justify-content: center;
  }
  .f-logo img {
    width: 41px;
  }
  .f-logo h1 {
    font-size: 3.2rem;
  }
  .f-address p {
    font-size: 1.6rem;
    text-align: center;
  }
  .f-right ul {
    flex-wrap: wrap;
    gap: 16px 54px;
    padding: 30px 0 0;
  }
  .f-right a {
    font-size: 1.6rem;
  }
  .copy {
    padding: 0 0 85px;
  }
  .copy p {
    font-size: 1.2rem;
  }
  .pagetop {
    bottom: 112px;
    right: 15px;
    width: 44px;
  }
  .h-hp {
    position: fixed;
    bottom: 0;
    z-index: 999;
  }
  .h-hp ul {
    gap: 0;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    align-items: end;
  }
  .h-hp li {
    width: calc(220 / 440 * 100vw);
    background-color: #041562;
    height: 74px;
    display: flex;
    justify-content: center;
    align-items: center;
  }
  .h-hp img {
    width: 35px;
  }
  .h-hp li a {
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: calc(20 / 440 * 100vw);
    color: #fff;
  }
  .h-tel {
    background-color: #DA1212 !important;
  }
  .h-tel a {
    color: #fff!important;
    font-size: calc(24 / 440 * 100vw);
    text-align: center;
    -webkit-text-size-adjust: none;
    gap: 5px;
  }
  .h-tel img {
    width: 17px;
    height: 20px;
  }
  .h-mail img {
    width: 20px;
  }
}
