@charset "utf-8";

/* =========================
共通設定
========================= */
*,
::after,
::before {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

ul {
  list-style: none;
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  max-width: 100%;
}

/* =========
フォント
========= */
body {
  background-color: #fffef3;
  color: #1a5b7a;
  font-family: "Noto Serif JP", serif;
  font-optical-sizing: auto;
  font-weight: 500;
  font-style: normal;
  font-size: 24px;
}

/*楷書*/
h1,
h2,
h3,
.yuji-syuku-regular {
  font-family: "Yuji Syuku", serif;
  font-weight: 400;
  font-style: normal;
}
h1{
  font-size: 56px;
}
h2{
  font-size: 48px;
}
h3{
  font-size: 40px;
}
/*太字明朝*/
.noto-serif-jp-bold {
  font-family: "Noto Serif JP", serif;
  font-optical-sizing: auto;
  font-weight: 700;
  font-style: normal;
}

/*=======
button
=======*/
.button {
  background-color: #b6854f;
  color: #fffef3;
}

.button:hover {
  background-color: #fffef3;
  color: #b6854f;
}

.page-top {
  position: fixed;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 160px;
  height: 80px;
  right: 24px;
  bottom: 24px;
  z-index: 100;
  color: #fffef3;
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  border: 0;
  background: #b6854f;
  transition: .2s;
  letter-spacing: 3px;
  font-weight: bold;
  border-radius: 100px 100px 0 0;
}
.page-up {
  position: relative;
  display: inline-block;
  width: 8px;
  height: 60px;
  margin: 0 27px;
  border-radius: 9999px;
  background-color: #fffef3;
}

.page-up::before,
.page-up::after {
  content: "";
  position: absolute;
  top: 0;
  left: calc(50% - 4px);
  width: 8px;
  height: 45px;
  border-radius: 9999px;
  background-color: #fffef3;
  transform-origin: 50% 4px;
}

.page-up::before {
  transform: rotate(45deg);
}

.page-up::after {
  transform: rotate(-45deg);
}
.page-top .page-up{
  position: absolute;
  font-size: 30px;
  color: #fffef3;
  top: 15px;
  font-weight: 300;
}

.is-active {
  opacity: 1;
  visibility: visible;
}

.page-top.is-active {
  bottom: 0px;
}

.content {
  position: relative;
}

.page-top.is-bottom {
  position: fixed;
  bottom: 404px; 
}
/* ==================================================
  スマホ用：ページトップボタンのサイズ調整
================================================== */
@media (max-width: 1024px) {
  .page-top {
 display: none; }


}


/*==================================
header
====================================*/
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 400;
}

.header-inner {
  max-width: 1200px;
  height: 96px;
  margin-top: 16px;
  padding: 0 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.header-logo {
  display: block;
  width: 36%;
}

.link{
  position: fixed;
  right: 100px;
  top: 0px;
  background: rgba(255, 255, 255, 0.5);
  border-radius: 0 0 5px 5px;
}
.maptel img{
 width: 2em;
 margin: 0 8px;
 padding: 30px 8px 0;
}
.menu-wrapper {
  position: relative;
}
.menu-icon {
  width: 40px;
  height: 40px;
  position: fixed;
  top: 30px;
  right: 40px;
  cursor: pointer;
  z-index: 3;
  display: inline-block;
}

.menu-icon span {
  display: block;
  height: 4px;
  margin: 6px 0;
  background: #fffef3;
  border: #1a5b7a solid 1px;
  border-radius: 2px;
  transition: 0.4s;
}

/* ハンバーガーがXに変形 */
#menu-toggle:checked + .menu-icon span:nth-child(1) {
  transform: translateY(10px) rotate(45deg);
}
#menu-toggle:checked + .menu-icon span:nth-child(2) {
  opacity: 0;
}
#menu-toggle:checked + .menu-icon span:nth-child(3) {
  transform: translateY(-10px) rotate(-45deg);
}

/* オーバーレイ背景 */
.overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.5);
  opacity: 0;
  pointer-events: none;
  transition: 0.4s;
  z-index: 1;
}

#menu-toggle:checked ~ .overlay {
  opacity: 1;
  pointer-events: auto;
}

/* メニュー本体（右から出す） */
.menu {
  position: fixed;
  top: 0;
  right: -360px;
  width: 360px;
  height: 100%;
  background: #1a5b7a;
  transition: right 0.4s ease;
  z-index: 1;
}

#menu-toggle:checked ~ .menu {
  right: 0;
}

.menu ul {
  list-style: none;
  padding: 60px 20px;
}

.menu li {
  margin: 20px 0;
}

.menu a {
  text-decoration: none;
  color: #fffef3;
  font-size: 1.2rem;
  transition: color 0.3s;
  width: 100%;
  padding-right: 70%;
  padding-top: 8px;
  padding-bottom: 4px;
  padding-left  : 4px;
  margin: 16px 0;
  border-radius: 5px;
}

.menu a:hover {
  color: #1a5b7a;
  background: #fffef3;
}


/*===============================
footer
===============================*/
/* footer全体 */
.footer {
  background-color: #1a5b7a;
  color: #fffef3;
  padding: 24px 88px;
  z-index: 500;
}
footer p{
  margin: 0 auto;
  text-align: center;
  font-size: 16px;
}
h3,
.footer h2 {
  font-size: 36px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1fr 2fr;
  grid-template-rows: repeat(2, auto);
  column-gap: 24px;
  row-gap: 8px;
}

/* footer item1 (左側)*/
.footer-item1 {
  grid-column-start: 1;
  grid-column-end: 2;
  grid-row-start: 1;
  grid-row-end: 3;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.footer-logo {
  display: block;
  width: 360px;
  margin-top: 16px;
}

.open-time {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-top: 36px;
}
.open-time p {
  margin-top: 8px;
  line-height: 1.6em;
  font-size: 20px;
}

/* footer item2 (右側)*/
.footer-item2 {
  margin: 36px 36px 0 36px;
}

.footer-item2 h2 {
  display: flex;
  flex-direction: column;
  align-items: center;
}
.tel {
  display: flex;
  align-items: center;
  letter-spacing: 0.1em;
}
.tel:hover {
  text-decoration: underline;
  text-decoration-color: #fffef3;
}

.tellephone {
  display: block;
  max-width: none;
  width: 36px;
  margin-right: 24px;
}

.footer-menu {
  margin-top: 48px;
}

.footer-menu ul {
  display: flex;
  flex-wrap: nowrap;
  justify-content: space-between;
  padding-bottom: 36px;
}

.footer-menu li {
  font-size: 24px;
  width: 30%;

}
.footer-menu li a {
  width: 100%;
  display: block;
}
.footer-menu span{
  width: 100%;
  padding: 0 16px;
}
.footer-menu a:hover span {
  color: #1a5b7a;
  background: #fffef3;
  border-radius: 5px;
}

/* ==================================
  スマホ・タブレット対応 (768px以下)
==================================== */
@media (max-width: 768px) {
  body {
    font-size: 18px;
  }

  h1 { font-size: 36px; }
  h2 { font-size: 28px; }
  h3, .footer h2 { font-size: 24px; }

  .header-logo {
    display: block;
    width: 60%;
  }
  .link{
    position: fixed;
    right: 0px;
    top: 65px;
    background: rgba(255, 255, 255, 0.5);
    border-radius: 5px 0 0 5px;
  }
  .maptel img{
   width: 1em;
   padding: 8px 0 2px;
  }

  .content {
    display: flex;
    flex-direction: column; 
    width: 100%;
  }

  .footer {
    padding: 32px 24px;
    width: 100%; 
    display: block;
    clear: both;
  }

  .footer-grid {
    display: flex;
    flex-direction: column;
    gap: 40px; 
  }

  .footer-item1 {
    grid-column-start: auto;
    grid-column-end: auto;
    grid-row-start: auto;
    grid-row-end: auto;
    width: 100%;
  }

  .footer-logo {
    width: 100%;
    max-width: 280px; 
    margin-top: 0;
  }

  .open-time {
    margin-top: 24px;
  }

  .open-time p {
    font-size: 16px;
    text-align: center; 
  }

  .footer-item2 {
    margin: 0;
    width: 100%;
  }

  .footer-item2 h2 {
    font-size: 20px; 
    text-align: center;
    line-height: 1.6;
  }

  .tel {
    font-size: 28px; 
    margin-top: 12px;
  }

  .tellephone {
    width: 28px; 
    margin-right: 12px;
  }

  .footer-menu {
    margin-top: 36px;
  }

  .footer-menu ul {
    flex-direction: column; 
    align-items: center;
    padding-bottom: 0;
  }

  .footer-menu li {
    font-size: 18px;
    width: 100%;     
    text-align: center;
    margin-bottom: 16px;
  }

  .footer-menu span {
    padding: 6px 24px;
    display: inline-block; 
  }

  
}

