
/*
Theme Name: seiwa-no-mori-theme
Author: BLUE SEVEN
*/

@charset "utf-8";
/* CSS Document */

/*--------------------------------------------------------------
/* reset / base
---------------------------------------------------------------*/
*,
*::before,
*::after {
  box-sizing: border-box;
  -webkit-box-sizing: border-box;
  -moz-box-sizing: border-box;
}
:root {
  --fs-page-title: clamp(2rem,calc( 1.1428571428571429rem + 2.380952380952381vw ), 4rem );
  --fs-sec-title-l: clamp(2rem,calc( 1.1428571428571429rem + 2.380952380952381vw ), 4rem );
  --fs-sec-title-s: clamp(1.8rem,calc( 1.1571428571428573rem + 1.7857142857142856vw ),3.2rem );
  --fs-large: clamp( 1.6rem, calc( 1.3857142857142858rem + 0.5952380952380952vw ), 2.1rem );
  --fs-normal: clamp(1.4rem,calc(1.275rem + 0.3vw),1.6rem);
  --ff-en: "M PLUS Rounded 1c", sans-serif;
  --fc-base : #000000;
  --key-color: #00ACEC;
  --middle-blue: #54C6F1;
  --pale-blue: #ECFAFF;
  --bg-blue: #F7FBFB;
  --light-gray: #C4C4C4;
}
html{
  font-size: 62.5%;
}
body {
  color: var(--fc-base);
  font-family: 'Noto Sans JP','Hiragino Sans','Hiragino Kaku Gothic ProN','BIZ UDPGothic',Meiryo,sans-serif;
  font-size: 1.6rem;
  line-height: 2;
  font-weight: 400;
  -webkit-backface-visibility: hidden;
  backface-visibility: hidden;
  text-rendering: optimizeLegibility;
  -webkit-text-size-adjust: 100%;
  -moz-text-size-adjust: 100%;
  -ms-text-size-adjust: 100%;
  text-size-adjust: 100%;
  -webkit-overflow-scrolling: touch;
  -ms-overflow-style: -ms-autohiding-scrollbar;
  -webkit-touch-callout: none;
  -webkit-tap-highlight-color: rgba(0,0,0,0);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  margin: 0;
}
h1,
h2,
h3,
h4,
h5,
h6 {
  margin:0;
  font-weight: 700;
}
p,
ol,
ul,
li,
dl,
dt,
dd,
th,
td,
figcaption{
  font-size: var(--fs-normal);
  margin: 0;
  padding: 0;
}
th{
  font-weight:700;
}
ol,
ul{
  list-style-type:none;
}
a{
  color: #008CFF;
  font-size: var(--fs-normal);
  text-decoration: none;
  transition-duration: 0.4s;
}
img {
  max-width:100%;
  height:auto;
}
table {
  border-collapse: collapse;
}
figure{
  margin:0;
}

/*--------------------------------------------------------------
# base-layout
--------------------------------------------------------------*/
.container{
  width: min(95%,1200px);
  margin-right: auto;
  margin-left: auto;
}
.column2_row_layout {
  padding: 2.5%;
  background: #FFF;
  @media (min-width: 768px) {
    display: flex;
    justify-content: space-between;
  }
  
  .img_wrap {
    margin-bottom: 2rem;
    @media (min-width: 768px) {
      width: 47%;
      margin-bottom: 0;
    }
  }
  .text_wrap {
    @media (min-width: 768px) {
      width: 48%;
    }
    .block_title {
      margin-bottom: 1.4em;
    }
  }
}
.column2_box_layout {
  @media (min-width: 768px) {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
  }
  
  .item {
    margin-bottom: 5.6rem;
    @media (min-width: 768px) {
      display: flex;
      flex-direction: column;
      width: 48%;
    }
    .img_wrap {
      margin-bottom: 3rem;

      & img {
        width: 100%;
      }
    }
    .text {
      margin: 1em 0;
    }
    .btn_wrap {
      margin-top: 0;
    }
  }
}
.column3_img_text {
  display: grid;
  grid-template-columns: repeat(auto-fit,minmax(30rem,1fr));
  gap: 0 4%;
  
  .item {
    margin-bottom: 5rem;
    .img_wrap {
      margin-bottom: 2rem;
    }
  }
}
.content_block + .content_block {
  margin-top: 5rem;
}
.text + .text {
  margin-top: 2em;
}
.img_wrap img {
  width: 100%;
  vertical-align: top;
}
@media (min-width: 768px) {
  .reverse {
    flex-direction: row-reverse;
  }
}
/*--------------------------------------------------------------
# header
--------------------------------------------------------------*/
header {
  width: 100%;
  background: #FFF;
  position: fixed;
  top: 0;
  z-index: 9999;
}
header .inner{
  display:flex;
  justify-content:space-between;
  align-items:center;
  height: 7rem;
  gap: 5rem;
}
header .logo {
  height: 100%;
  padding: 1rem 1.75rem;

  & h1 {
    line-height: 1;
    height: 100%;
  }
  & img {
    width: auto;
    height: 100%;
  }
}
header .gnav{
  display:none;
}
header .contact{
  display:none;
}
.hamburger {
  align-self: center;
  margin-right: 1rem;

  & summary {
    display: block;
    list-style: none;
    height: 0.5rem;
    width: 4.4rem;
    background: var(--fc-base);
    position: relative;
    top: 50%;
    transition: 0.4s all ease;
    cursor: pointer;

    &::before,
    &::after {
      content: '';
      display: block;
      height: 0.5rem;
      width: 4.4rem;
      background-color: var(--fc-base);
      position: absolute;
      z-index: 3;
      transition: 0.4s all ease;
    }
    &::before {
      top: -0.85rem;
    }
    &::after {
      bottom: -0.95rem;
    }
    & span {
      display: none;
    }
  }
  #sp_nav_list {
    width: 100%;
    height: calc(100vh - 7rem);
    background: rgba(0,172,236,0.9);
    opacity: 0;
    transition: all 0.6s;
    position: absolute;
    top: 7rem;
    right: 0;

    & li {
      list-style: none;
      border-bottom: 1px solid #FFF;
      transition: .4s all;

      &:last-child {
        border-bottom: none;
      }
      & a {
        display: block;
        color: #FFF;
        font-size: 1.8rem;
        font-weight: 700;
        text-align: center;
        text-decoration :none;
        padding: .7em;
      }
    }
  }
  &[open] {
    & summary {
      background: transparent;

      &::before {
        top: 0;
        transform: rotate(45deg);
      }
      &::after {
        bottom: 0;
        transform: rotate(-45deg);
      }
    }
    #sp_nav_list {
      opacity: 1;
    }
  }
}
@media (min-width: 992px) {
  .hamburger{
    display: none;
  }
  header .inner {
    height: 10rem;
  }
  header .logo {
    width: min(40vw, 30rem);
    height: auto;
    padding: 1.3rem;
  }
  header .gnav {
    display:block;
    flex-grow: 1;
    max-width: 80rem;
    margin: 0 0 0 auto;
  }
  header #nav_list {
    display:flex;
    flex-wrap:wrap;
    list-style: none;
    width: fit-content;
    margin: 0 0 0 auto;
    gap: 0.5em 1.5em;

    & li {
      font-weight: 700;

      & a {
        color: var(--fc-base);
      }
    }
  }
  header .contact{
    display: block;
    flex: 1 0 auto;
    align-self: stretch;
    max-width: 30rem;

    & a {
      display:flex;
      flex-direction: column;
      color: #FFF;
      font-size: clamp( 1.8rem, calc( 1.2141732283464567rem + 0.5905511811023622vw ), 2.1rem );
      text-align: center;
      justify-content: center;
      height: 100%;
      background: var(--key-color);
      border: 0.3rem solid var(--key-color);
      position: relative;

      &:hover {
        color: var(--key-color);
        background: #FFF;
      }
      &::after {
        display: block;
        content:"Contact";
        font-size: 57%;
        transition: all 0.4s ease;
        position: relative;
        z-index: +1;
      }
      &:hover::before {
        color: var(--key-color);
      }
    }
  }
}
/*--------------------------------------------------------------
# footer
--------------------------------------------------------------*/
footer {
  background: var(--key-color);
}
footer * {
  color: #FFF;
}
footer .content_block {
  display: grid;
  padding: 5rem 0;
  @media (min-width:992px) {
    display: flex;
    justify-content: space-between;
    gap: 0 2rem;
  }
}
footer .logo {
  margin-bottom: 1.5rem;
}
footer .address_wrap {
  text-align: center;
  @media (min-width:992px) {
    text-align: left;
  }
}
footer address {
  font-style: normal;
  &::before {
    display: inline-block;
    content: "";
    color: #FFF;
    width: 1em;
    height: 1em;
    margin: 0 0.3em -0.1em 0;
    background-color: #FFF; 
    mask: url('/assets/img/icon_map.svg') no-repeat center / contain;
    -webkit-mask: url('/assets/img/icon_map.svg') no-repeat center / contain;
  }
}
footer .tel {
  font-family: var(--ff-maru);
  font-size: 3.2rem;
  margin: 0;
}
footer .f_nav {
  max-width: 40rem;
  margin: 5rem auto 0;
  @media (min-width:768px) {
    display: flex;
    flex-wrap: wrap;
    flex-direction: column;
    height: 16em;
    gap: 0 3em;
    @media (min-width:992px) {
      max-width: 100%;
      margin: 0 auto;
    }
  }

  & li {
    list-style: none;
    margin-bottom: 0.5em;

    .sub-menu {
      margin-top: 0.5em;
      margin-left: 0.5em;

      & li::before {
        display: inline-block;
        content: "－";
        margin-right: 0.5em;
      }
    } 
  }
}
.copyright {
  font-size: 1.2rem;
  text-align: center;
  margin: 0;
  padding-bottom: 0.5em;
}
