/* 全体のリセット */
  :root {
    --color-base: #f9f9f9;
    --color-base2: #dcdcdc;
    --color-ceo: #dbdbdb;
    --color-white: #fff;
    --color-black: #222;
    --color-nav: #353746;
    --box-shadow: .8rem .8rem 1.2rem rgba(0, 0, 0, .05), -.8rem -.8rem 1.2rem #fff;
    --box-shadow-dark: .8rem .8rem 1.2rem rgba(0, 0, 0, .1), -.8rem -.8rem 1.2rem rgba(#fff,.2);
    /* 基本的なサンセリフ系（UI、本文用） */
    --font-sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    /* 和文のゴシック体 */
    --font-gothic: "Yu Gothic", "游ゴシック", YuGothic, "游ゴシック体", sans-serif;
    /* 和文の明朝体 */
    --font-mincho: "Yu Mincho", YuMincho, "游明朝体", "meiryo", serif;
    /* タグライン用　*/
    --font-tagline: "游明朝体", "Yu Mincho", YuMincho, "ヒラギノ明朝 Pro", "Hiragino Mincho Pro", "MS P明朝", "MS PMincho", serif;
}

html {
  scroll-behavior: smooth;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: var(--font-sans);
  margin: 0;
  line-height: 1.6;
  color: var(--color-black);
  background-color: var(--color-base);
}

a {
  text-decoration: none;
  color: inherit;
}

a:focus {
  outline: 2px solid #007BFF;
  outline-offset: 2px;
}

.heading {
  margin-bottom: 20px;
}

/* ヘッダー */
.header {
  background-color: var(--color-black);
  color: var(--color-white);
}

.header-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  max-width: 1200px;
  margin: 0 auto;
}

.logo a {
  font-size: 1.5rem;
  font-weight: bold;
  outline: none;
}

/* ハンバーガーメニュー*/
[type="checkbox"]:checked,
[type="checkbox"]:not(:checked){
  position: absolute;
  left: -9999px;
}
.menu-icon:checked + label,
.menu-icon:not(:checked) + label{
  position: fixed;
  top: 63px;
  right: 75px;
  display: block;
  width: 30px;
  height: 30px;
  padding: 0;
  margin: 0;
  cursor: pointer;
  z-index: 10;
}
.menu-icon:checked + label:before,
.menu-icon:not(:checked) + label:before{
  position: absolute;
  content: '';
  display: block;
  width: 30px;
  height: 20px;
  z-index: 20;
  top: 0;
  left: 0;
  border-top: 2px solid #ececee;
  border-bottom: 2px solid #ececee;
  transition: border-width 100ms 1500ms ease, 
              top 100ms 1600ms cubic-bezier(0.23, 1, 0.32, 1),
              height 100ms 1600ms cubic-bezier(0.23, 1, 0.32, 1), 
              background-color 200ms ease,
              transform 200ms cubic-bezier(0.23, 1, 0.32, 1);
}
.menu-icon:checked + label:after,
.menu-icon:not(:checked) + label:after{
  position: absolute;
  content: '';
  display: block;
  width: 22px;
  height: 2px;
  z-index: 20;
  top: 10px;
  right: 4px;
  background-color: #ececee;
  margin-top: -1px;
  transition: width 100ms 1750ms ease, 
              right 100ms 1750ms ease,
              margin-top 100ms ease, 
              transform 200ms cubic-bezier(0.23, 1, 0.32, 1);
}
.menu-icon:checked + label:before{
  top: 10px;
  transform: rotate(45deg);
  height: 2px;
  background-color: #ececee;
  border-width: 0;
  transition: border-width 100ms 340ms ease, 
              top 100ms 300ms cubic-bezier(0.23, 1, 0.32, 1),
              height 100ms 300ms cubic-bezier(0.23, 1, 0.32, 1), 
              background-color 200ms 500ms ease,
              transform 200ms 1700ms cubic-bezier(0.23, 1, 0.32, 1);
}
.menu-icon:checked + label:after{
  width: 30px;
  margin-top: 0;
  right: 0;
  transform: rotate(-45deg);
  transition: width 100ms ease,
              right 100ms ease,  
              margin-top 100ms 500ms ease, 
              transform 200ms 1700ms cubic-bezier(0.23, 1, 0.32, 1);
}

.nav{
  position: fixed;
  top: 33px;
  right: 50px;
  display: block;
  width: 80px;
  height: 80px;
  padding: 0;
  margin: 0;
  z-index: 9;
  overflow: hidden;
  box-shadow: 0 8px 30px 0 rgba(0,0,0,0.3);
  background-color: var(--color-nav);
  animation: border-transform 10s linear infinite;
  transition: top 350ms 1100ms cubic-bezier(0.23, 1, 0.32, 1),  
              right 350ms 1100ms cubic-bezier(0.23, 1, 0.32, 1),
              transform 250ms 1100ms ease,
              width 650ms 400ms cubic-bezier(0.23, 1, 0.32, 1),
              height 650ms 400ms cubic-bezier(0.23, 1, 0.32, 1);
}
@keyframes border-transform{
  0%,100% { border-radius: 63% 37% 54% 46% / 55% 48% 52% 45%; } 
  10% { border-radius: 0 60% 54% 46% / 49% 60% 40% 51%; } 
  20% { border-radius: 0 10% 44% 22% / 0 87% 61% 40%; } 
  30% { border-radius: 0 0 38% 62% / 0 70% 30% 51%; } 
  40% { border-radius: 0 0 23% 70% / 0 0 66% 30%; } 
  50% { border-radius: 0 0 0 45% / 0 0 31% 39%; } 
  60% { border-radius: 0 0 0 55% / 0 0 0 77%; } 
  70% { border-radius: 0 0 0 0 / 0 0 0 46%; } 
  80% { border-radius: 0 0 0 0 / 0 0 0 0; } 
  93% { border-radius: 46% 54% 50% 50% / 35% 61% 39% 65%; } 
}

.menu-icon:checked ~ .nav {
  animation-play-state: paused;
  top: 50%;
  right: 50%;
  transform: translate(50%, -50%);
  width: 200%;
  height: 200%;
  transition: top 350ms 700ms cubic-bezier(0.23, 1, 0.32, 1),  
              right 350ms 700ms cubic-bezier(0.23, 1, 0.32, 1),
              transform 250ms 700ms ease,
              width 750ms 1000ms cubic-bezier(0.23, 1, 0.32, 1),
              height 750ms 1000ms cubic-bezier(0.23, 1, 0.32, 1);
}

.nav ul{
  position: absolute;
  top: 50%;
  left: 0;
  display: block;
  width: 100%;
  padding: 0;
  margin: 0;
  z-index: 6;
  text-align: center;
  transform: translateY(-50%);
  list-style: none;
}
.nav ul li{
  position: relative;
  display: block;
  width: 100%;
  padding: 0;
  margin: 10px 0;
  text-align: center;
  list-style: none;
  pointer-events: none;
  opacity: 0;
  visibility: hidden;
  transform: translateY(30px);
  transition: all 250ms linear;
}
.nav ul li:nth-child(1){
  transition-delay: 300ms;
}
.nav ul li:nth-child(2){
  transition-delay: 250ms;
}
.nav ul li:nth-child(3){
  transition-delay: 200ms;
}
.nav ul li:nth-child(4){
  transition-delay: 150ms;
}
.nav ul li:nth-child(5){
  transition-delay: 100ms;
}
.nav ul li:nth-child(6){
  transition-delay: 50ms;
}
.nav ul li:not(:first-child):before {
  content: ' ';
  display: block;
  width: 20px;
  height: 1px;
  margin: 24px auto;
  background: #C5C5C5;
}
.nav ul li a{
  font-family: var(--font-sans);
  font-size: 7vh;
  text-transform: uppercase;
  line-height: 1.2;
  font-weight: 800;
  display: inline-block;
  position: relative;
  color: #ececee;
  transition: all 250ms linear;
  outline: none;
}
.nav ul li a:hover{
  text-decoration: none;
  color: #ffeeb6;
}
.nav ul li a:after{
  display: block;
  position: absolute;
  top: 50%;
  content: '';
  height: 2vh;
  margin-top: -1vh;
  width: 0;
  left: 0;
  background-color: var(--color-nav);
  opacity: 0.8;
  transition: width 250ms linear;
}
.nav ul li a:hover:after{
  width: 100%;
}

.menu-icon:checked ~ .nav  ul li {
  pointer-events: auto;
  visibility: visible;
  opacity: 1;
  transform: translateY(0);
  transition: opacity 350ms ease,
              transform 250ms ease;
}
.menu-icon:checked ~ .nav ul li:nth-child(1){
  transition-delay: 1400ms;
}
.menu-icon:checked ~ .nav ul li:nth-child(2){
  transition-delay: 1480ms;
}
.menu-icon:checked ~ .nav ul li:nth-child(3){
  transition-delay: 1560ms;
}
.menu-icon:checked ~ .nav ul li:nth-child(4){
  transition-delay: 1640ms;
}
.menu-icon:checked ~ .nav ul li:nth-child(5){
  transition-delay: 1720ms;
}
.menu-icon:checked ~ .nav ul li:nth-child(6){
  transition-delay: 1800ms;
}

.logo {
  position: absolute;
  top: 60px;
  left: 50px;
  display: block;
  z-index: 11;
  transition: all 250ms linear;
}
.logo img {
  height: 64px;
  width: auto;
  display: block;
}

@media screen and (max-width: 991px) {
  .menu-icon:checked + label,
  .menu-icon:not(:checked) + label{
    right: 55px;
  }
  .logo {
    left: 30px;
  }
  .logo a {
    font-size: 2rem;
  }
  .nav{
    top: 53px;
    right: 47px;
    width: 45px;
    height: 45px;
  }
  .nav ul li a{
    font-size: 5vh;
  }
}

/* メインコンテンツ */
main {
  margin: 5rem auto;
  padding: 0 20px;
}

section {
  margin-bottom: 5rem;
}

/* フッター */
.footer {
  background-color: #333;
  color: var(--color-white);
  padding: 20px;
  text-align: center;
}

.footer-container {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  flex-wrap: nowrap;
  margin: 0 96px;
}

.footer-info {
  max-width: 50%;
}

.footer-info a {
  outline: none;
}

.footer-nav ul {
  display: flex;
  flex-direction: column;
  list-style: none;
  gap: 10px;
}

.footer-btn a {
  background: #333;
  border-radius: 3px;
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  margin: 0 auto;
  max-width: 400px;
  padding: 10px 25px;
  font-family: var(--font-sans);
  color: var(--color-white);
  line-height: 1.8;
  text-decoration: none;
  transition: 0.3s ease-in-out;
  font-weight: 500;
  outline: none;
}

.footer-btn a:hover {
  background: var(--color-white);
  color: #333;
}

.footer-btn a:after {
  content: '';
  width: 5px;
  height: 5px;
  border-top: 3px solid var(--color-white);
  border-right: 3px solid var(--color-white);
  transform: rotate(45deg) translateY(-50%);
  position: absolute;
  top: 50%;
  right: 10px;
  border-radius: 1px;
  transition: 0.3s ease-in-out;
}

.footer-btn a:hover:after {
  border-color: #333;
}

.footer-btn a i {
  margin-left: 0.5rem;
}

.copyright {
  font-size: 0.9rem;
}

@media (max-width: 780px) {
  .footer-container {
    flex-direction: column;
    align-items: center;
    padding: 1rem;
    margin: 0 auto;
  }

  .footer-info,
  .footer-nav {
    max-width: 100%;
    text-align: center;
    margin-bottom: 1rem;
  }

  .footer-nav ul {
    flex-direction: row;
    justify-content: center;
    gap: 1rem;
  }

  .copyright {
    text-align: center;
  }

  body {
    font-size: 14px;
  }
}

body {
  font-size: 16px;
}

h1 {
  font-size: 2.7rem;
}

@media (max-width: 650px) {
  .footer-btn a {
    font-size: 0.7rem;
  }
}

@media (max-width: 525px) {
  .footer-container {
    display: flex;
    justify-content: space-between;
    flex-wrap: nowrap;
    margin: 0 auto;
  }

  .footer-nav ul {
    display: flex;
    flex-direction: column;
    list-style: none;
    gap: 5px;
  }
}

@media (max-width: 500px) {
  h1 {
    font-size: 1.8rem;
  }
}

h2 {
  font-family: var(--font-gothic);
  font-size: 2rem;
  color: var(--color-black);
}

.tagline {
  margin-top: 0.7rem;
  margin-bottom: 0.7rem;
  position: relative;
  font-family: var(--font-tagline);
  font-style: italic;
  vertical-align: middle;
  letter-spacing: .1em;
}

.tagline:after {
  content: ' ';
  display: inline-block;
  width: 1.25rem;
  height: 1px;
  background: var(--color-black);
  margin-left: 0.7rem;
  line-height: 1;
}

.l-inner {
  position: relative;
  -webkit-box-sizing: content-box;
          box-sizing: content-box;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 10rem;
}

.l-section .l-inner {
  padding-top: 1rem;
  padding-bottom: 2rem;
}

@media only screen and (max-width: 1024px) {
  html {
    -webkit-text-size-adjust: 100%;
  }
  .l-inner {
    padding: 0 4rem;
  }
}

/***追従するトップへ戻るボタン***/
#page-top {
  position: fixed;
  right: 20px;
  bottom: 30px;
  height: 50px;
  text-decoration: none;
  font-weight: bold;
  transform: rotate(90deg);
  font-size: 90%;
  line-height: 1.5rem;
  color: #737373;
  padding: 0 0 0 35px;
  border-top: solid 1px;
  outline: none;
}

#page-top:focus {
  outline: none;
}

#page-top::before {
  content: "";
  display: block;
  position: absolute;
  top: -1px;
  left: 0px;
  width: 15px;
  border-top: solid 1px;
  transform: rotate(35deg);
  transform-origin: left top;
}

/* お問い合わせセクション */
.contact-section {
  position: relative;
  width: 100%;
  height: 45rem;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: var(--color-white);
  overflow: hidden;
}

.contact-background {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: #bbb;
  transform: scale(1);
  animation: zoomBackground 10s infinite alternate ease-in-out;
  z-index: -1;
  opacity: 0.7;
}

@keyframes zoomBackground {
  0% {
      transform: scale(1);
  }
  100% {
      transform: scale(1.1);
  }
}

.contact-content {
  position: absolute;
  left: 0;
  right: 0;
  margin: 0 auto;
  max-width: 1080px;
  width: 90%;
  transform: translateY(-45%);
  z-index: 1;
  padding: 46px 0 32px;
  border: solid 2.5px var(--color-white);
}

.contact-title {
  padding-left: 46px;
  writing-mode: vertical-lr;
  text-orientation: mixed;
}

.contact-title strong {
  font-size: 2rem;
}

.contact-title small {
  font-size: 1rem;
  padding-bottom: 7.5rem;
}

.contact-title strong,
.contact-title small {
  display: block;
}

.contact-description {
  font-size: 1.2rem;
  margin-bottom: 1rem;
}

.contact-info {
  width: 28.75rem;
  margin: 0 auto 28px;
  padding: 12px 20px;
  background-color: var(--color-white);
  border: 2px solid;
  color: #548ac7;
  line-height: 1.35;
}

.contact-info small {
  font-size: 175%;
}

.contact-info a, .contact-info strong {
  font-weight: normal;
  font-size: 230%;
  color: #548ac7;
}

@media (max-width: 768px) {
  .contact-title {
    padding-left: 5%;
      font-size: 1.5rem;
  }

  .contact-title strong {
    font-size: 100%;
  }

  .contact-title small {
    font-size: 55%;
    padding-bottom: 55%;
  }

  .contact-description {
      font-size: 90%;
  }

  .contact-info {
      font-size: 1rem;
  }
}

@media (max-width: 560px) {
  .contact-description {
    font-size: 70%;
}

  .contact-info {
    width: 80%;
  }

  .contact-info a, .contact-info strong {
    font-size: 145%
  }

  .contact-info small {
    font-size: 105%
  }
}

@media(min-width: 768px){
  a[href^="tel:"]{
    pointer-events: none;
  }
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeInLeft {
  from {
    opacity: 0;
    transform: translateX(-30px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

.contact-content {
  opacity: 0;
}
.contact-content.is-visible {
  animation: fadeIn 1.8s ease-in-out forwards;
}