/* Web Fonts
============================================================= */

@import url("https://fonts.googleapis.com/css2?family=Noto+Sans+JP:wght@400;500;600;700&display=swap");
@import url("https://fonts.googleapis.com/css2?family=Open+Sans:wght@400;500;600;700&display=swap");
@import url("https://fonts.googleapis.com/css2?family=Roboto:wght@400;500;600;700&display=swap");

/* カスタムプロパティ
============================================================= */

:root {
  /* プリセットのエイリアス */
  /* 色はtheme.jsonで定義 */
  /* --theme-main: var(--wp--preset--color--theme-main);
  --theme-sub-1: var(--wp--preset--color--theme-sub-1);
  --theme-sub-2: var(--wp--preset--color--theme-sub-2);

  /* Fonts */
  --noto-sans-jp: font-family: "Noto Sans JP", "Helvetica Neue", arial, "Hiragino Kaku Gothic ProN", "Hiragino Sans", meiryo, sans-serif;
  --roboto: font-family: roboto, sans-serif;


  /* Layer */
  --z-index-container: 0;
  --z-index-header: 100;
  --z-index-overlay: 200;
  --z-index-spmenu: 300;
  --z-index-hamburger: 400;

  /* Width */
  --width-sm: 576px;
  --width-md: 768px;
  --width-lg: 992px;
  --width-xl: 1200px;
  --width-xxl: 1400px;
}

/* Note
=============================================================
  ブレイクポイント一覧
  
  xs: 0
  sm: 576px
  md: 768px
  lg: 992px
  xl: 1200px
  xxl: 1400px

  @media only screen and (max-width: 1399.98px) {
  }
  @media only screen and (max-width: 1199.98px) {
  }
  @media only screen and (max-width: 991.98px) {
  }
  @media only screen and (max-width: 767.98px) {
  }
  @media only screen and (max-width: 575.98px) {
  }

  @media only screen and (min-width: 1400px) {
  }
  @media only screen and (min-width: 1200px) {
  }
  @media only screen and (min-width: 992px) {
  }
  @media only screen and (min-width: 768px) {
  }
  @media only screen and (min-width: 576px) {
  }
  
/* 初期化
============================================================= */

html {
  scroll-behavior: smooth;
}

a {
  color: inherit;

  &:hover {
    opacity: 0.8;
  }
}

address {
  font-style: normal;
}

hr {
  display: block;
  height: 1px;
  padding: 0;
  margin: 1em 0;
  border: 0;
  border-top: 1px solid #ccc;
}


/* input */

input[type="text"],
input[type="email"],
input[type="url"],
input[type="password"],
input[type="search"],
input[type="number"],
input[type="tel"],
input[type="range"],
input[type="date"],
input[type="month"],
input[type="week"],
input[type="time"],
input[type="datetime"],
input[type="datetime-local"],
input[type="color"],
textarea,
select {
  max-width: 100%;
  padding: 0.5em;
  margin-top: 10px;
  line-height: 1.2em;
  appearance: auto;
  outline: none;
  background-color: #fff;
  border: 1px solid #ccc;
  border-radius: 3px;
}

input[type="text"]:focus,
input[type="email"]:focus,
input[type="url"]:focus,
input[type="password"]:focus,
input[type="search"]:focus,
input[type="number"]:focus,
input[type="tel"]:focus,
input[type="range"]:focus,
input[type="date"]:focus,
input[type="month"]:focus,
input[type="week"]:focus,
input[type="time"]:focus,
input[type="datetime"]:focus,
input[type="datetime-local"]:focus,
input[type="color"]:focus,
select:focus,
textarea:focus {
  outline: 2px solid var(--wp--preset--color--theme-bcg-2);
}

input[type="checkbox"] {
  accent-color: var(--wp--preset--color--theme-bcg-2);
}

/* Fonts
============================================================= */

/* stylelint-disable-next-line no-duplicate-selectors */
html {
  font-size: 62.5%;
}

body {
  font-family: "Noto Sans JP", "Helvetica Neue", arial,
    "Hiragino Kaku Gothic ProN", "Hiragino Sans", meiryo, sans-serif;
  font-size: 1.6em;
  font-weight: 400;
  color: var(--wp--preset--color--theme-font);
}

/* Wrapper
============================================================= */

.container {
  position: relative;
  z-index: var(--z-index-container);
  width: 100%;
  margin: 0;
  overflow-x: hidden;
  background-color: var(--wp--preset--color--theme-base);
}

/* Main
============================================================= */

.main {
  width: 100%;
  padding:0;
  margin:0;
}

/* ヘッダー
============================================================= */
.header {
 width:100%;
 background-color: var(--wp--preset--color--theme-base);
}

.header__inner {
  display: flex;
  gap: 20px;
  align-items: center;
  justify-content: space-between;
  width: var(--width-lg);
  max-width: 100%;
  padding: 30px 0;
  margin: 0 auto;
}

@media only screen and (max-width: 991.98px) {
  .header {
    padding: 0 30px;
  }
}

@media only screen and (max-width: 767.98px) {
  .header__inner {
    flex-direction: column;
  }
}

@media only screen and (max-width: 575.98px) {
  .header {
    padding: 0 15px;
  }  
}

.h-logo {
  width:280px;

  & img {
    display:block;
    width: 100%;
    height: auto;
  }
}

.h-mail {
  display: flex;
  gap: .75em;
  align-items: center;
  font-size:20px;
  text-decoration: none;
}

.h-mail__border {
  width:0;
  height:1.8em;
  border-right: 1px solid var(--wp--preset--color--theme-font);
  border-left: 1px solid var(--wp--preset--color--theme-font);
}

.h-mail__icon{
  display: block;
  width: 2em;
  height:auto;
}

.h-mail__caption {
  font-weight: 500;
  font-feature-settings: "palt";
  white-space: nowrap;
}

@media only screen and (max-width: 767.98px) {
  .h-mail {
    font-size:16px;
  }
}

/* グローバルメニュー
============================================================= */
.g-nav {
  width: 100%;
  font-size: 18px;
  font-weight:400;
  background-color: var(--wp--preset--color--theme-sub-1);
}

.g-nav__ul {
  display: flex;
  justify-content: center;
  width: 100%;
  max-width: 992px;
  margin: 0 auto;
  color: #fff;
  text-align: center;
  list-style: none;

  & .menu-item {
    position: relative;
  }

  & .menu-item-has-children {
    position: relative;

    & > a::before {
      position: absolute;
      top: 50%;
      left: 1em;
      width: 0.5em;
      height: 0.5em;
      content: "";
      border-right: 2px solid #fff;
      border-bottom: 2px solid #fff;
      transform: translate(-50%, -50%) rotate(45deg);
    }
  }

  & .sub-menu {
    position: absolute;
    top: 100%;
    left: 0;
    z-index: 10;
    min-width: 160px;
    color: var(--color-fonts);
    list-style: none;
    box-shadow: 0 8px 16px 0 rgb(0 0 0 / 20%);
    opacity: 0;
    transform: scaleY(0);
    transform-origin: center top;
    transition: all 0.2s;

    & .menu-item {
      border-top: 1px solid #fff;
    }
  }

  .menu-item-has-children:hover .sub-menu {
    opacity: 1;
    transform: scaleY(1);
  }

  & a {
    position: relative;
    display: block;
    padding: 0.75em 2em;
    font-weight: inherit;
    color: #fff;
    white-space: nowrap;
    text-decoration: none;
    background-color: var(--wp--preset--color--theme-sub-1);
    transition: background-color ease 0.2s;

    &:hover {
      color: #ff0;
      background-color: var(--wp--preset--color--theme-main);
      opacity: 1
    }
  }
}

@media only screen and (max-width: 991.98px) {
  .g-nav {
    font-size: 16px;
  }
}

@media only screen and (max-width: 767.98px) {
  .g-nav__ul {
    flex-direction: column;

    & .menu-item {
      border-top: 1px solid #fff;
    }

    & .sub-menu {
      position: static;
      min-width: auto;
      box-shadow: none;
      opacity: 1;
      transform: scaleY(1);

      & .menu-item {
        border-top: 1px dashed #fff;
      }
    }
  }
}

/* フッター
============================================================= */
.footer {
  padding:40px 0 0;
  background-color: var(--wp--preset--color--theme-bcg-1);
}

.f-access {
  display: flex;
  gap: 20px;
  align-items: center;
  width:var(--width-lg);
  max-width:100%;
  margin:0 auto;
}

.f-access__item {
  flex: 1;
}

.f-access__item--map {
  flex: 2;
}

@media only screen and (max-width: 991.98px) {
  .f-access {
    padding:0 30px;
  }
}


@media only screen and (max-width: 767.98px) {
  .f-access {
    flex-direction: column;
  }

  .f-access__item {
    width:100%;
  }
  
  .f-access__item--map {
    flex: 1;
  }
}

@media only screen and (max-width: 575.98px) {
  .f-access {
    padding:0 15px;
  }
}

.f-address {
  font-size: 18px;
  font-feature-settings: "palt";
  color: var(--wp--preset--color--theme-sub-1);

  /* stylelint-disable-next-line no-descending-specificity */
  & a {
    text-decoration: none;
  }
}

.f-address__title {
font-size:1.25em;
font-weight:500;
}

.f-address__text {
  line-height:1.5em;
}

@media only screen and (max-width: 767.98px) {
  .f-address {
    width:fit-content;
    margin:0 auto;
    font-size:16px;
    text-indent:2em;
  }
}

.g-maps {
  width:100%;
  aspect-ratio: 4 / 3;

  & iframe {
    width:100%;
    height:100%;
  }
}

.figure-sns {
  width:100%;
  max-width:80px;

  & img {
    display:block;
    width:100%;
    aspect-ratio: 1 / 1;
    object-fit: contain;
  }
  
  & figcaption {
    margin-top:.5em;
    font-size: 12px;
    text-align: center;
  }
}

@media only screen and (max-width: 767.98px) {
  .figure-sns {
    margin:0 auto;
  }
}

.f-copy {
  padding: 5px 0;
  font-size: 14px;
  color: #fff;
  text-align: center;
  background-color: var(--wp--preset--color--theme-font);
}

.backtotop {
  position: fixed;
  right: 12px;
  bottom: 12px;
  z-index: 999;
  display: block;
  width: 42px;
  height: 42px;
  text-decoration: none;
  background: rgb(139 218 118 / 60%);
  background: var(--wp--preset--color--theme-main);
  border-radius: 5px;
  opacity:.9;
  transition: background-color ease 0.2s;

  &::before {
    position: absolute;
    top: 50%;
    left: 50%;
    display: block;
    width: 35%;
    height: 35%;
    content: "";
    border-top: 2px solid var(--wp--preset--color--theme-base);
    border-left: 2px solid var(--wp--preset--color--theme-base);
    transform: translate(-50%, -10%) rotate(45deg);
  }
}

/* フッターメニュー
============================================================= */
.f-nav {
  width: 992%;
  max-width:100%;
  margin: 0 auto;
  font-size: 14px;
}

@media only screen and (max-width: 991.98px) {
  .f-nav {
    padding:0 30px;
  }
}

@media only screen and (max-width: 575.98px) {
  .f-nav {
    padding:0 15px;
  }
}

.f-nav__ul {
  display: flex;
  flex-wrap: wrap;
  gap:2em;
  align-items: center;
  justify-content: center;
  white-space: nowrap;
  list-style: none;
}

/* レイアウト
============================================================= */

.layout-full-width {
  width: 100%;
}

/* 1カラム */
.layout-singlecol {
  width: 100%;
  max-width: var(--width-xl);
  margin: 0 auto;
}

@media only screen and (max-width: 1199.98px) {
  .layout-singlecol {
    padding: 0 30px;
  }
}

@media only screen and (max-width: 575.98px) {
  .layout-singlecol {
    padding: 0 15px;
  }
}

/* 2カラム */
.layout-twocol {
  display: flex;
  gap: 40px;
  align-items: stretch;
  width: 100%;
  max-width: var(--width-xl);
  margin: 0 auto;
}

.layout-twocol__main {
  flex: 3;
  height: 100%;
  overflow: hidden;
}

.layout-twocol__side {
  flex: 1;
  max-width: 280px;
  height: 100%;
}

@media only screen and (max-width: 1199.98px) {
  .layout-twocol {
    padding: 0 30px;
  }
}

@media only screen and (max-width: 991.98px) {
  .layout-twocol {
    flex-direction: column;
  }

  .layout-twocol__main {
    flex: 1;
    max-width: initial;
  }

  .layout-twocol__side {
    flex: 1;
    max-width: initial;
  }
}

@media only screen and (max-width: 575.98px) {
  .layout-twocol {
    padding: 0 15px;
  }
}

/* ウィジェット
============================================================= */

/* コンテンツ上部エリア */
.content-top-entry {
  max-width: var(--width-xl);
  margin: 0 auto;
}

/* コンテンツ下部エリア */
.contents-bottom-entry {
  max-width: var(--width-xl);
  margin: 0 auto;
}

/* Page
============================================================= */
.un-card-sns {
  overflow: hidden;
  border: 1px solid #ccc;
  border-radius: 5px;
}

.un-card-sns__preview {
  display: block;
}

.un-card-sns__preview:hover {
  opacity: 1;
}

.un-card-sns__preview img {
  display: block;
  width: 100%;
  height: auto;
}

.un-card-sns figcaption {
  margin-bottom: 2rem;
  font-size: 2rem;
  font-weight: 500;
  letter-spacing: 0.05em;
}

.un-card-sns__footer {
  padding: 1.5em 1em 1em;
}

.un-list-sns {
  display: flex;
  flex-wrap: wrap;
  gap: 4rem 6rem;
  align-items: stretch;
  width: 100%;
  list-style: none;
}

.un-list-sns__item {
  width: calc(50% - 3rem);
}

@media only screen and (max-width: 768px) {
  .un-list-sns__item {
    width: 100%;
  }
}

.un-pg-contact {
  margin: 8rem auto;
}

.un-pg-contact__inner {
  width: 100%;
  max-width: 700px;
  margin: auto;
}

@media only screen and (max-width: 1200px) {
  .un-pg-contact__inner {
    width: 92%;
  }
}

.un-pg-contact__text {
  line-height: 1.6em;
  text-align: center;
}

@media only screen and (max-width: 768px) {
  .un-pg-contact__text {
    font-size: 1.4rem;
  }
}

@media only screen and (min-width: 577px) {
  .un-pg-contact__text span {
    display: inline-block;
  }
}

.un-pg-contact a {
  display: block;
  width: 80%;
  max-width: 240px;
  margin: 4rem auto 0;
}

.un-pg-contact img {
  display: block;
  width: 100%;
  max-width: 240px;
  height: auto;
}
