/*
Theme Name: 女満別ドリーム苑2026
Author: 株式会社伝書鳩
Author URI: https://denshobato.com
Description: 社会福祉法人 女満別福祉会「特別養護老人ホーム 女満別ドリーム苑」の専用テーマとなります
Requires PHP: 7.3
Version: 0.21
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
*/

:root {
  --dream-color: #389534;
  --dream-sub: #198219;
}

html, body {
    font-size: 20px !important;
    font-weight: 300;
}

/* ヘッダー */
header {
    padding: 1rem 0 0.5rem;
}
@media (min-width: 992px) {
  .container-md {
    max-width: 960px !important;
  }
}
@media (min-width: 1200px) {
  .container-md {
    max-width: 960px !important;
  }
}
@media (min-width: 1400px) {
  .container-md {
    max-width: 960px !important;
  }
}
header p {
    margin: 0;
    padding: 0;
}
header .dream-logo {
  text-align: center;
  margin-bottom: 1rem;
}
header .dream-logo + div {
  text-align: center;
}
@media (min-width: 992px) {
  header .dream-logo {
    text-align: left;
    margin-bottom: 0;
  }
  header .dream-logo + div {
    text-align: right;
  }
}
.header-tel {
    display: inline-block;
    text-align: center;
    border-top: 3px solid var(--dream-color);
    border-bottom: 3px solid var(--dream-color);
    font-size: 0.875rem;
    line-height: 1.25rem;
    margin-top: 0.75rem;
}
.header-tel span {
    color: var(--dream-color);
    font-weight: 600;
    font-size: 1.5rem;
    font-family: system-ui, -apple-system, "Hiragino Kaku Gothic ProN", "Noto Sans JP", sans-serif!important;
    font-variant-emoji: text!important;
}
@media (min-width: 992px) {
  
}
/* メニューアイコン */
#menu-icon {
  background-color: var(--dream-color);
  border-radius: 5px;
  width: 32px;
  height: 32px;
  cursor: pointer;
  display: block;
  position: absolute;
  top: 25px;
  right: 20px;
  z-index: 100000;
  touch-action: manipulation;
}
body.admin-bar #menu-icon {
  top: calc(25px + 46px);
}
@media (min-width: 992px) {
  #menu-icon {
    display: none;
  }
}
#menu-icon > div {
  position: relative;
  width: 100%;
  height: 100%;
}
#menu-icon > div > span {
  position: absolute;
  border-top: 2px solid white;
  display: block;
  width: 80%;
  height: 3px;
  left: 10%;
  transition: transform 0.3s ease, opacity 0.2s ease, top 0.3s ease;
}
#menu-icon > div > span:first-child {
  top: calc(25% - 1px);
}
#menu-icon > div > span:nth-child(2) {
  top: calc(50% - 1px);
}
#menu-icon > div > span:last-child {
  top: calc(75% - 1px);
}
#menu-icon.open > div > span:first-child {
  top: 50%;
  transform: rotate(45deg);
}
#menu-icon.open > div > span:nth-child(2) {
  opacity: 0;
}
#menu-icon.open > div > span:last-child {
  top: 50%;
  transform: rotate(-45deg);
}

/* anchor */
a.black {
  color: black!important;
}
a.black:hover {
  color: var(--dream-sub)!important;
  text-decoration: none;
}

/* メニュー */
#main-menu {
  position: fixed;
  left: 0px;
  top: 100px;
  width: 100%;
  height: calc(100% - 100px);
  padding: 1rem;
  background-color: #bce7ba;
  z-index: 99999;
}
#main-menu ul {
  margin: 0;
  padding: 0;
  text-align: center;
}
#main-menu ul li {
  list-style: none;
  margin-bottom: 1.5rem;
}
#main-menu ul li a {
  color: #000;
  text-decoration: none;
}
/* ▼ここから「スマホ版だけ」表示制御 */
@media (max-width: 991.98px) {
  body.menu-open {
    overflow: hidden;
  }
  #main-menu {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity .25s ease, visibility .25s ease;
  }

  body.menu-open #main-menu {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
  }
}
@media (min-width: 992px) {
  #main-menu {
    position: static;
    width: 960px;
    margin: 0 auto;
    padding: 0;
  }
  #main-menu ul {
    margin: 0;
    padding: 0;
    display: flex;
    justify-content: flex-start;
  }
  #main-menu ul li {
    list-style: none;
    display: block;
    flex: 1;
    border: 1px solid #369332;
    border-left: 1px solid #7bd475;
    border-right: 1px solid #369332;
    text-align: center;
    padding: 0;
    margin: 0;
    background: linear-gradient(180deg, #87ce83 0%, #87ce83 3px, #57ba51 3px, #369332 100%);
  }
  #main-menu ul li:hover {
    background: linear-gradient(180deg, #87ce83 0%, #87ce83 3px, #379333 3px, #369332 100%);
  }
  #main-menu ul li:first-child {
    border-left: 1px solid #369332;
  }
  #main-menu ul li:last-child {
    border-right: 1px solid #369332;
  }
  #main-menu ul li a {
    padding-top: 0.75rem;
    padding-bottom: 0.75rem;
    display: block;
    text-decoration: none;
    font-size: 0.75rem;
    font-weight: 500;
    color: white;
    height: 100%;
  }
}

/* ページトップに */
#move-pagetop {
  padding: 0 1rem;
  margin-bottom: 1rem;
  text-align: right;
}
#move-pagetop a {
  color: #4a4949;
  text-decoration: none;
  cursor: pointer;
}

/* フッター */
footer {
  border-top: 3px solid #389534;
}
footer p {
  text-align: center;
  margin: 0;
  font-weight: 300;
  font-size: 0.9rem;
  letter-spacing: 0.05rem;
}
/* フッターここまで */
