/*
Theme Name: cerat-japan
*/
@charset "UTF-8";
*,
*:before,
*:after {
  box-sizing: inherit;
}
html {
  font-size: 62.5%;
  box-sizing: border-box;
  margin-top: 0 !important;
}
body {
  -webkit-font-feature-settings: "palt";
  font-feature-settings: "palt";
  font-family: "RocknRoll One", sans-serif, "游ゴシック Medium",
    "Yu Gothic Medium", "游ゴシック体", YuGothic, "メイリオ";
  font-optical-sizing: auto;
  font-weight: 400;
  font-style: normal;
  color: #000;
  font-size: 1.4rem;
  line-height: 2;
  letter-spacing: 0.2em;
}
body.open {
  overflow: hidden;
}
a {
  display: block;
}
a:link {
  text-decoration: none;
  opacity: 0.8;
  -webkit-transition: 0.3s ease-in-out;
  -moz-transition: 0.3s ease-in-out;
  -o-transition: 0.3s ease-in-out;
  transition: 0.3s ease-in-out;
}
a:hover {
  opacity: 0.5;
}
h1 {
  font-size: 3rem;
  line-height: 1.5;
}
h2 {
  font-size: 2.4rem;
  line-height: 1;
}
h3 {
  font-size: 1.7rem;
  text-align: center;
}
img {
  display: block;
  width: fit-content;
}
input,
button,
textarea,
select {
  background: none;
  border: none;
  border-radius: 0;
  outline: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;
  font-weight: normal;
}
button {
  text-decoration: none;
  opacity: 0.8;
  -webkit-transition: 0.3s ease-in-out;
  -moz-transition: 0.3s ease-in-out;
  -o-transition: 0.3s ease-in-out;
  transition: 0.3s ease-in-out;
}
button:hover {
  cursor: pointer;
}
/* Header */
.fl_header {
  background-color: #ffffff;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  width: 100%;
}

.header-container {
  width: 100%;
  margin: 0 auto;
  padding: 0 20px;
  display: flex;
  align-items: center;
  gap: 45px;
  position: relative; /* z-index を有効化 */
  z-index: 10;
}

.header-logo img {
  height: 60px;
  width: auto;
}

.header-contact {
  display: flex;
  gap: 33px;
  align-items: center;
  margin-left: auto;
}

.header-contact__phone {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 15px 13px;
}

.header-contact__phone-number {
  display: flex;
  align-items: center;
  gap: 8px;
}

.header-contact__phone-icon {
  width: 40px;
  height: auto;
  color: #369cdf;
  stroke: #ffffff;
  stroke-width: 1px;
}

.header-contact__phone-text {
  font-family: "Inter", sans-serif;
  font-weight: 800;
  font-size: 32px;
  line-height: 0.94;
  letter-spacing: 0.07em;
  color: #369cdf;
  -webkit-text-stroke: 5px #ffffff;
  paint-order: stroke fill;
}

.header-contact__phone-hours {
  font-family: "Inter", sans-serif;
  font-weight: 400;
  font-size: 22px;
  line-height: 1;
  letter-spacing: 0.1em;
  color: #369cdf;
  -webkit-text-stroke: 3px #ffffff;
  paint-order: stroke fill;
}

a.header-contact__button {
  color: #fff;
}
.header-contact__button {
  display: flex;
  align-items: center;
  justify-content: space-evenly;
  gap: 25px;
  padding: 20px 25px;
  background-color: #369cdf;
  border-radius: 4px;
  cursor: pointer;
  transition: opacity 0.3s;
  border: none;
}

.header-contact__button:hover {
  opacity: 0.8;
}

.header-contact__button-text {
  font-family: "Inter", sans-serif;
  font-weight: 700;
  font-size: 18px;
  line-height: 1.22;
  letter-spacing: 0.1em;
  color: #ffffff;
}

.header-contact__button-icon {
  width: 16px;
  height: auto;
  stroke: #ffffff;
  stroke-width: 2px;
}

.header-heroimage {
  position: relative;
  z-index: 1; /* ヘッダーより下 */
  margin-top: calc(var(--header-overlap, 0px) * -1); /* ヘッダーにかぶせる */
}

.header-scroll__container {
  position: relative;
  height: auto; /* 画像の高さに追従 */
  overflow: visible; /* 下半分の被りを見せる */
}

/* FV左下の歩行キャラ */
.fv-walker {
  position: absolute; /* コンテナ左下に固定 */
  left: 20px;
  bottom: 20px;
  width: 450px;
  height: auto;
  z-index: 30;
  pointer-events: none;
}

.fv-walker img {
  display: block;
  width: 100%;
  height: auto;
}

.header-scroll__image {
  position: relative; /* 水平移動用のラッパー */
  display: flex;
  align-items: flex-end;
  justify-content: flex-start;
  will-change: transform;
  overflow: visible;
}

.header-scroll__image img {
  display: block;
  height: 100vh; /* 下端を画面下に合わせる（フォールバック） */
  width: auto; /* アスペクト維持 */
  object-fit: contain;
  align-self: flex-end;
}

@supports (height: 100svh) {
  .header-scroll__image img {
    height: 100svh; /* ブラウザUIを差し引いた実測高さ */
  }
}

a.header-scroll__link {
  position: absolute;
  opacity: 1;
  z-index: 10;
}

a.header-scroll__link:hover {
  opacity: 0.8;
}

a.header-scroll__link img {
  width: 22vw;
  height: auto;
  max-width: 280px;
}

/* header-scroll__linkの位置はJavaScriptで動的に設定される（背景画像のサイズに基づく） */



.header-nav {
  position: absolute;
  bottom: 40px;
  right: 40px;
  z-index: 35;
}

.header-nav__list {
  display: flex;
  justify-content: center;
  align-items: center;
  list-style: none;
  margin: 0;
  padding: 0;
  gap: 40px;
}

.header-nav__item {
  flex: 1;
  min-width: 80px;
}

.header-nav__link {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 20px;
}

.header-nav__link:hover {
  opacity: 0.7;
}

.header-nav__text {
  font-family: "Candal", sans-serif;
  font-weight: 600;
  font-size: 18px;
  line-height: 1.2;
  letter-spacing: 0.05em;
  color: #ffffff;
  -webkit-text-stroke: 8px #369cdf;
  paint-order: stroke fill;
  transition: transform 0.2s ease, letter-spacing 0.2s ease;
}

.header-nav__circle {
  position: relative;
  display: block;
  width: 50px;
  height: 50px;
  background-color: #369cdf;
  border-radius: 50%;
}

.header-nav__circle::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 100%;
  height: 6px;
  width: 165%;
  background: #369cdf;
  transform: translateY(-50%);
}

.header-nav__item:last-child .header-nav__circle::after {
  content: none;
}

/* Active state */
.header-nav__item.is-active .header-nav__text {
  transform: scale(1.12);
  letter-spacing: 0.07em;
}

.header-nav__item.is-active .header-nav__circle {
  box-shadow: none; /* 外枠は使わない */
}

.header-nav__item.is-active .header-nav__circle::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 26px; /* 内側の白い丸の直径 */
  height: 26px;
  background: #ffffff;
  border-radius: 50%;
  transform: translate(-50%, -50%);
}

.header-menu-toggle {
  display: none;
  flex-direction: column;
  gap: 6px;
  background: none;
  border: none;
  padding: 10px;
  cursor: pointer;
}

.header-menu-toggle span {
  width: 30px;
  height: 3px;
  background-color: #369cdf;
  border-radius: 2px;
  transition: all 0.3s;
  display: block;
}

.header-menu-toggle.active span:nth-child(1) {
  transform: translateY(9px) rotate(45deg);
}

.header-menu-toggle.active span:nth-child(2) {
  opacity: 0;
}

.header-menu-toggle.active span:nth-child(3) {
  transform: translateY(-9px) rotate(-45deg);
}

/* Footer */
.fl_footer {
  background-color: #ffffff;
  padding: 40px 0;
  border-top: 1px solid #e0e0e0;
}

.footer-container {
  max-width: 100%;
  margin: 0 auto;
  padding: 0 20px;
  display: grid;
  grid-template-columns: 1fr 2fr;
}
.footer-logo img {
  height: 150px;
  width: auto;
  justify-self: center;
}

.footer-content {
  display: grid;
  grid-template-columns: 1fr;
  gap: 50px;
  justify-self: center;
}

.footer-nav__list {
  display: flex;
  justify-content: center;
  align-items: center;
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-nav__item {
  flex: 1;
  min-width: 80px;
}

.footer-nav__link {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 20px;
}

.footer-nav__link:hover {
  opacity: 0.7;
}

.footer-nav__text {
  font-family: "Candal", sans-serif;
  font-weight: 400;
  font-size: 23px;
  line-height: 1.2;
  letter-spacing: 0.05em;
  color: #ffffff;
  -webkit-text-stroke: 8px #369cdf;
  paint-order: stroke fill;
}

.footer-nav__circle {
  position: relative;
  display: block;
  width: 40px;
  height: 40px;
  background-color: #369cdf;
  border-radius: 50%;
}

.footer-nav__circle::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 100%;
  height: 6px;
  width: 250%;
  background: #369cdf;
  transform: translateY(-50%);
}

.footer-nav__item:last-child .footer-nav__circle::after {
  content: none;
}

.footer-contact {
  display: flex;
  gap: 33px;
  align-items: center;
}

.footer-contact__phone {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 15px 13px;
}

.footer-contact__phone-number {
  display: flex;
  align-items: center;
  gap: 8px;
}

.footer-contact__phone-icon {
  width: 32px;
  height: 32px;
  color: #369cdf;
  stroke: #ffffff;
  stroke-width: 1px;
}

.footer-contact__phone-text {
  font-family: "Inter", sans-serif;
  font-weight: 800;
  font-size: 32px;
  line-height: 0.94;
  letter-spacing: 0.07em;
  color: #369cdf;
  -webkit-text-stroke: 5px #ffffff;
  paint-order: stroke fill;
}

.footer-contact__phone-hours {
  font-family: "Inter", sans-serif;
  font-weight: 400;
  font-size: 22px;
  line-height: 1;
  letter-spacing: 0.1em;
  color: #369cdf;
  -webkit-text-stroke: 3px #ffffff;
  paint-order: stroke fill;
}

a.footer-contact__button {
  color: #fff;
}

.footer-contact__button {
  display: flex;
  align-items: center;
  justify-content: space-evenly;
  gap: 25px;
  padding: 20px 25px;
  background-color: #369cdf;
  border-radius: 4px;
  cursor: pointer;
  transition: opacity 0.3s;
  border: none;
}

.footer-contact__button:hover {
  opacity: 0.8;
}

.footer-contact__button-text {
  font-family: "Inter", sans-serif;
  font-weight: 700;
  font-size: 18px;
  line-height: 1.22;
  letter-spacing: 0.1em;
  color: #ffffff;
}

.footer-contact__button-icon {
  width: 16px;
  height: 16px;
  stroke: #ffffff;
  stroke-width: 2px;
}

/* Mobile Navigation */
.globalnav-wrap {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 9999;
  visibility: hidden;
  opacity: 0;
  transition: visibility 0.3s, opacity 0.3s;
}

.globalnav-wrap.open {
  visibility: visible;
  opacity: 1;
}

.globalnav {
  position: fixed;
  top: 0;
  right: 0;
  width: 80%;
  max-width: 300px;
  height: 100%;
  background-color: #ffffff;
  z-index: 10000;
  transform: translateX(100%);
  transition: transform 0.3s ease;
  overflow-y: auto;
  padding: 80px 20px 20px;
}

.globalnav-wrap.open .globalnav {
  transform: translateX(0);
}

.globalnav.close {
  transform: translateX(100%);
}

.overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.5);
  z-index: 9998;
  opacity: 0;
  transition: opacity 0.3s;
}

.globalnav-wrap.open .overlay {
  opacity: 1;
}

body.open {
  overflow: hidden;
}

.mobile-nav__close {
  position: absolute;
  top: 20px;
  right: 20px;
  width: 40px;
  height: 40px;
  background: none;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10001;
  padding: 0;
}

.mobile-nav__close span {
  position: absolute;
  width: 30px;
  height: 3px;
  background-color: #369cdf;
  border-radius: 2px;
  transition: all 0.3s;
}

.mobile-nav__close span:nth-child(1) {
  transform: rotate(45deg);
}

.mobile-nav__close span:nth-child(2) {
  transform: rotate(-45deg);
}

.mobile-nav__close:hover {
  opacity: 0.7;
}

.mobile-nav {
  display: block;
}

.mobile-nav__list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.mobile-nav__item {
  margin-bottom: 20px;
}

.mobile-nav__link {
  font-family: "Candal", sans-serif;
  font-size: 16px;
  color: #369cdf;
  text-decoration: none;
  display: block;
  padding: 10px;
}

/* Add responsive styling for header */
@media (max-width: 960px) {
  .header-nav__list {
    gap: 20px;
  }

  .header-nav__text {
    font-size: 18px;
  }

  .header-contact__phone-text {
    font-size: 24px;
  }

  .header-contact__phone-hours {
    font-size: 16px;
  }

  .footer-logo img {
    height: 100px;
    width: auto;
    justify-self: center;
  }

  .footer-nav__text {
    font-size: 20px;
  }
}

@media (max-width: 768px) {
  .header-nav {
    position: relative;
    bottom: auto;
    right: auto;
  }

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

  .header-contact {
    display: none;
  }
  .header-nav__item {
    min-width: 70px;
  }
  .header-nav__list {
    gap: 5px;
  }
  .header-nav__link {
    gap: 10px;
  }
  .header-nav__text {
    font-size: 12px;
  }
  .header-nav__circle {
    width: 30px;
    height: 30px;
  }
  .header-nav__item.is-active .header-nav__circle::before {
    width: 15px;
    height: 15px;   
  }
  .header-nav__circle::after {
    width: 192%;
  }

  .header-menu-toggle {
    display: flex;
  }

  .footer-container {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .footer-content {
    display: grid;
    grid-template-columns: 1fr;
    align-items: center;
    text-align: center;
    width: 100%;
    margin: 0 auto;
    gap: 20px;
  }

  .footer-nav,
  .footer-contact {
    display: inline-block;
    margin: 0 auto;
  }

  .footer-nav__item {
    flex: auto;
  }

  .footer-nav__text {
    font-size: 14px;
    -webkit-text-stroke: 5px #369cdf;
  }

  .footer-nav__circle {
    width: 30px;
    height: 30px;
  }

  .footer-nav__circle::after {
    width: 180%;
    height: 3px;
  }

  .footer-contact__phone-text {
    font-size: 28px;
  }

  .footer-contact__phone-hours {
    font-size: 15px;
  }

  .footer-contact__button {
    gap: 10px;
  }

  .header-scroll {
    overflow: hidden;
  }

  .fv-walker {
    width: 280px;
    bottom: 75px;
  }

  a.header-scroll__link img {
    width: 200px;
    height: auto;
  }




}

/* PC版のみ */
@media screen and (min-width: 769px) {
  .pcDisNon {
    display: none;
  }
}

/* SP版 */
@media screen and (max-width: 768.98px) {
  .spDisNon {
    display: none;
  }
  h1 {
    font-size: 2.5rem;
  }
  h2 {
    font-size: 2rem;
  }
}

.spDisOnly {
  display: none;
}
@media (max-width: 500px) {
  .spDisOnly {
    display: block;
  }
  .spDisNon {
    display: none;
  }
}
@media (max-width: 370px) {
}
