/* ---------------------------------------------------- 

リセットCSS

---------------------------------------------------- */
/* Box sizing rules */
*, *::before, *::after{
  box-sizing: border-box;
}

/* Remove default margin */
body, h1, h2, h3, h4, p, figure, blockquote, dl, dd{
  margin: 0;
}

/* Remove list styles on ul, ol elements with a list role, which suggests default styling will be removed */
ul, ol{
  margin: 0;
  padding: 0;
  list-style: none;
}

/* Set core root defaults */
html:focus-within{
  scroll-behavior: smooth;
}

/* Set core body defaults */
body{
  min-height: 100vh;
  line-height: 1.5;
  text-rendering: optimizeSpeed;
  scroll-behavior: smooth;
}

/* A elements that don't have a class get default styles */
a:not([class]){
  text-decoration: none;
  color: inherit;
}

/* Make images easier to work with */
img, picture{
  display: block;
  max-width: 100%;
}

/* Inherit fonts for inputs and buttons */
input, button, textarea, select{
  font: inherit;
}



/* ---------------------------------------------------- 

グローバルヘッダー

---------------------------------------------------- */
.g-header{
  position: fixed;
  z-index: 999;
  top: 0;
  width: 100%;
  background-color: rgba(255, 255, 255, .6);
}

.g-header__inner{
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: 100%;
  height: 50px;
  margin: auto;
  padding: 0 .5rem;
}
@media (min-width: 768px){
  .g-header__inner{
    max-width: 1280px;
    height: 100%;
    min-height: 80px;
    padding: 0 1.5rem;
  }
}

.g-header__inner > h1 > .logo{
  display: block;
  width: 100px;
}
@media (min-width: 768px){
  .g-header__inner > h1 > .logo{
    width: 150px;
  }
}

.menu-icon{
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  cursor: pointer;
  color: #fff;
  background: #28385e;
}
@media (min-width: 768px){
  .menu-icon{
    display: none;
  }
}

.mobile-menu{
  position: absolute;
  z-index: 999;
  top: 0;
  left: 0;
  display: none;
  width: 100%;
  height: 100dvh;
  background-color: #28385e;
}
@media (min-width: 768px){
  .mobile-menu{
    position: static;
    display: block;
    width: auto;
    height: auto;
    background-color: transparent;
  }
}

.mobile-menu.active{
  display: block;
}

.close-button{
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  margin-top: 5px;
  margin-right: .5rem;
  margin-left: auto;
  padding: 0;
  cursor: pointer;
  color: #28385e;
  border: none;
  background-color: #f8f1e5;
}
@media (min-width: 768px){
  .close-button{
    display: none;
  }
}

.close-button > svg{
  width:24px;
  height: 24px;
}


.g-header__inner > .mobile-menu > ul{
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin: 0;
  padding: 0;
  list-style: none;
  color: #fff;
  font-family: serif;
  font-size: 1.5rem;
  font-weight: bold;
}
@media (min-width: 768px){
  .g-header__inner > .mobile-menu > ul{
    display: flex;
    flex-direction: row;
    gap: 1.25rem;
    font-size: 1rem;
  }
}

.g-header__inner > .mobile-menu > ul > li > a{
  display: block;
  padding-left: 2rem;
  text-decoration: none;
  color: #f8f1e5;
}
@media (min-width: 768px){
  .g-header__inner > .mobile-menu > ul > li > a{
    padding-left: 0;
    color: #28385e;
  }
}



/* ---------------------------------------------------- 

グローバルフッター

---------------------------------------------------- */
.g-footer{
  position: relative;
  margin-top: 4rem;
}
.g-footer::before{
  display: inline-block;
  width: 100px;
  height: auto;
  aspect-ratio: 168/198;
  content: "";
  background: url(../img/common/bg-leaf_01.png) no-repeat;
  background-size: contain;
}
@media (min-width: 768px){
  .g-footer::before{
    width: 180px;
  }
}

.scrollTop{
  position: absolute;
  right: 20px;
  bottom: 100px;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  color: #fef7ee;
  border: none;
  border-radius: 50%;
  background: #28385e;
  cursor: pointer;
  padding: 0;
}

.scrollTop > svg{
  width: 24px;
  height: 24px;
  fill: currentColor;
}


.g-footer__inner{
  display: flex;
  align-items: center;
  justify-content: flex-end;
  width: 100%;
  min-height: 5rem;
  padding: 0 .5rem;
  background-color: #28385e;
}
@media (min-width: 768px){
  .g-footer__inner{
    display: block;
    width: 100%;
    min-height: 5rem;
    padding: 0 .5rem;
  }
}

.g-footer__contents{
  display: flex;
  align-items: center;
}
@media (min-width: 768px){
  .g-footer__contents{
    max-width: 1000px;
    height: 100%;
    min-height: 80px;
    margin: auto;
  }
}

.g-footer__contents > ul{
  display: none;
}
@media (min-width: 768px){
  .g-footer__contents > ul{
    display: flex;
    gap: 1rem;
    color: #fef7ee;
    font-size: .825rem;
  }
}

.g-footer__contents > p{
  margin-left: auto;
  text-align: right;
  color: #f8f1e5;
}



/* 共通 */
body{
  position: relative;
  width: 100%;
  margin: auto;
  background-image: url(/img/common/bg-img_01.gif);
  font-family: serif;
  scroll-padding-top: 50px;
}
@media (min-width: 768px){
body{
    scroll-padding-top: 80px;
}
}

body:has(dialog[open]){
  overflow: hidden;
}

/* アイコン */
.icn__modal {
  width: 14px;
  height: 10px;
  fill: currentColor;
}

/* パンくずメニュー */
.breadcrumb{
  display: none;
}
@media (min-width: 768px){
  .breadcrumb{
    display: block;
    width: 100%;
    max-width: 1000px;
    margin: 1rem auto;
    font-size: .75rem;
  }
  .breadcrumb__list{
    display: flex;
    justify-content: flex-end;
    gap: .5rem;
  }
  .breadcrumb__item:not(:first-of-type):before{
    margin-right: .5rem;
    content: "/";
  }
  .breadcrumb__link{
    text-decoration: none;
  }
}

/* ボタン */
.btn-primary{
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  max-width: 256px;
  min-height: 48px;
  text-decoration: none;
  color: #f8f1e5;
  border-radius: 8px;
  background-color: #28385e;
  box-shadow: 3px 3px 4px 0 rgba(0, 0, 0, .2);
}

.btn-primary.blue{
  background-color: #516c8d;
}

.btn-secondary{
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: fit-content;
  padding: .375rem .75rem;
  cursor: pointer;
  text-decoration: none;
  color: #fff;
  border-radius: 9999px;
  background-color: #516c8d;
  font-size: .875rem;
}

a:hover {
	opacity: 0.7 ;
}
