/*
Theme Name: ymca-theme-2025
Author: Yooby
Description: 公益財団法人 日本YMCA同盟のオリジナルテーマです。
Version: 1.0.0
*/

body {
  color: #000;
  font-family: "Noto Sans JP", sans-serif;
  text-align: justify;
}

a {
  text-decoration: none !important;
  color: inherit !important;
}

/* ヘッダー------------------------------------------------------------*/
.site-header {
  width: 100%;
}
.header-inner {
  width: 91.25%;
  max-width: 1500px;
  margin: 0 auto;
  padding-top: 30px;
  padding-bottom: 5px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  align-items: flex-start;
}

.header-top {
  width: 100%;
  height: 50px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.header-logo {
  height: 100%;
}

.header-logo img {
  height: 100%;
}

.header-top_right {
  display: flex;
  gap: 30px;
}

.header-title {
  font-size: 22px;
  color: #003a70 !important;
  letter-spacing: 0.1em;
  font-weight: bold;
  line-height: 32px;
}

.header-hamburger {
  background: none;
  border: none;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  justify-content: center;
  height: 33px;
  width: 30px;
  padding: 0;
}

.global-nav {
  width: 100%;
  padding-bottom: 5px;
  position: relative;
}

.global-nav ul {
  line-height: 43px;
  list-style: none;
  text-decoration: none !important;
  display: flex;
  justify-content: flex-end;
  gap: 30px;
  margin: 0;
  padding: 0;
  font-weight: bold;
}

.global-nav .sub-menu {
  position: absolute;
  width: 100vw;
  height: 300px;
  margin-left: -4.375vw;
  margin-right: -4.375vw;
  top: 100%;
  left: 0;
  transform: translateY(20px);
  z-index: 100;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, transform 0.3s ease, visibility 0.3s;
  background-color: #fff;
  padding: 14px 32%;
  flex-wrap: wrap;
  flex-direction: column;
  justify-content: flex-start;
  align-items: flex-start;
  gap: 0 40px;
}

.global-nav li:hover > .sub-menu {
  opacity: 0.95;
  visibility: visible;
  transform: translateY(0);
}

.global-nav .sub-menu li {
  font-size: 14px;
  font-weight: 600;
  text-align: left;
  line-height: 20px;
}

.global-nav .sub-menu a {
  display: block;
  padding: 10px;
  color: #000;
  text-decoration: none;
}

.global-nav .sub-menu a:hover {
  color: #0073b6 !important;
  opacity: 1;
}

@media screen and (max-width: 850px) {
  .header-inner {
    width: 95%;
    height: 40px;
    margin: 0 auto;
    padding: 15px 0;
  }

  .header-logo {
    height: 100%;
    padding-bottom: 5px;
  }

  .header-top_right {
    height: 40px;
    gap: 15px;
    align-items: flex-end;
  }

  .global-nav {
    display: none;
  }
}

/* パンくずリスト------------------------------------------------------------*/
.breadcrumb-area {
  width: 100%;
  margin: 0 auto;
}

.breadcrumb-nav {
  width: 91.25%;
  max-width: 1500px;
  margin: 0 auto;
  padding: 10px 0;
  font-size: 14px;
  color: #003a70;
  line-height: 1.6;
}

.breadcrumb-nav a,
.breadcrumb-nav span {
  padding: 0 4px 0 3px;
}

.breadcrumb-nav a:first-child {
  padding-left: 0;
}

@media screen and (max-width: 850px) {
  .breadcrumb-nav {
    width: 95%;
  }
}

/*ハンバーガー*/
.drawer-nav-menu {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100vh;
  z-index: 15000;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s, visibility 0.3s;
}

.drawer-nav {
  position: absolute;
  top: 0;
  right: 0;
  width: 100%;
  max-width: 100%;
  height: 100vh;
  background-color: #fff;
  padding: 70px 15% 40px;
  box-sizing: border-box;
  overflow-y: auto;
}

.drawer-nav-menu.is-active {
  opacity: 1;
  visibility: visible;
}

.drawer-close-button {
  position: fixed;
  right: 4.475%;
  top: 38px;
  z-index: 9999;
  background: none;
  border: none;
  padding: 0;
  cursor: pointer;
}

.header-hamburger .bar {
  transition: all 0.3s ease;
  display: block;
  height: 1px;
  width: 30px;
  background-color: #003a70;
  margin: 5px auto;
}

.header-hamburger.is-active .bar:nth-child(2) {
  opacity: 0;
}

.header-hamburger.is-active .bar:nth-child(1) {
  transform: translateY(14px) rotate(45deg);
}

.header-hamburger.is-active .bar:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

.drawer-menu-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-wrap: wrap;
  width: 100%;
  justify-content: space-between;
}

.drawer-menu-p {
  font-size: 14px;
  font-weight: 500;
  color: #003a70;
  width: 18.5%;
}

.drawer-menu-list .sub-menu {
  padding-top: 20px;
  margin-top: 14px;
  border-top: 1px solid #003a70;
}

.drawer-menu-c {
  font-size: 13px;
  font-weight: 400;
  color: #003a70;
  margin-bottom: 10px;
  line-height: 1.6;
  word-break: break-all;
}

.drawer-menu-c .sub-menu {
  border: none;
  margin: 0;
  padding-top: 10px;
}

.drawer-menu-c-c {
  font-size: 13px;
  font-weight: 400;
  color: #003a70;
  margin-bottom: 10px;
  line-height: 1.6;
  padding-left: 20px;
  word-break: break-all;
}

.drawer-footer {
  padding: 28px 0 0;
  width: 100%;
  box-sizing: border-box;
}

.drawer-buttons-wrapper {
  width: 500px;
  display: flex;
  gap: 3%;
  margin: 0 auto;
}

.drawer-buttons-wrapper a {
  color: #003a70 !important;
  font-size: 16px;
  flex-grow: 1;
  text-align: center;
  padding: 14px 0 15px 0;
  text-decoration: none;
  font-weight: 400;
  border-radius: 0;
  white-space: nowrap;
}

.drawer-button {
  border: 1px solid #003a70;
  width: 48.5%;
}

.drawer-search-wrapper {
  width: 100%;
  padding: 20px;
  box-sizing: border-box;
}

.drawer-search-form {
  display: flex;
  justify-content: center;
  gap: 20px;
}

.drawer-search-form label {
  width: 390px;
}

.drawer-search-input {
  width: 100%;
  padding: 15px;
  border: none;
  font-size: 14px;
  outline: none;
  border: 1px solid #ccc;
}

.drawer-search-input::placeholder {
  color: #ccc;
}

.drawer-search-submit {
  display: flex;
  gap: 0;
  align-items: center;
  justify-content: center;
  padding: 0;
  background-color: transparent;
  border: none;
  cursor: pointer;
  white-space: nowrap;
}

.drawer-arrow {
  width: 30px;
  height: 30px;
}

.drawer-search-submit .search-text,
.drawer-search-submit .search-arrow {
  color: #003a70;
  font-weight: bold;
  font-size: 15px;
}

.drawer-logo-wrapper {
  padding-top: 40px;
}

.drawer-logo-wrapper a {
  display: block;
  max-width: 150px;
  margin: 0 auto !important;
}

.drawer-logo {
  width: 100%;
  height: auto;
  display: inline-block;
}

.footer_bottom_nav {
  max-width: 700px;
  margin: 0 auto;
  padding: 40px 0;
  display: flex;
  justify-content: center;
  gap: 0;
}

.footer_bottom_nav .menu-item {
  font-size: 13px;
  padding: 14px 28px;
  color: #003a70 !important;
  text-decoration: underline;
  border-right: 1px solid #003a70;
}

.footer_bottom_nav .menu-item:first-child {
  border-left: 1px solid #003a70;
}

@media screen and (max-width: 1400px) {
  .drawer-nav {
    padding: 70px 10% 40px;
  }
}

@media screen and (max-width: 1200px) {
  .drawer-nav {
    padding: 150px 8% 100px;
  }

  .drawer-menu-list {
    gap: 40px 0;
  }

  .drawer-menu-list .sub-menu {
    padding-top: 20px;
    margin-top: 20px;
  }

  .drawer-menu-list .sub-menu ul {
    margin-top: 0;
    padding-top: 14px;
  }

  .drawer-menu-p {
    font-weight: 500;
    color: #003a70;
    width: 47%;
  }

  .footer_bottom_nav .menu-item {
    padding: 10px 20px;
  }
}

@media screen and (max-width: 850px) {
  .drawer-close-button {
    top: 28px;
    right: 2.345%;
  }
}

@media screen and (max-width: 550px) {
  .drawer-nav {
    padding: 100px 8% 50px;
  }

  .drawer-menu-list {
    gap: 28px 0;
  }

  .drawer-menu-p {
    width: 100%;
  }

  .drawer-buttons-wrapper {
    flex-direction: column;
    width: 100%;
    gap: 14px;
  }

  .drawer-buttons-wrapper a {
    font-size: 15px;
  }

  .drawer-button {
    width: 100%;
  }

  .drawer-search-wrapper {
    padding: 0;
  }

  .drawer-search-form {
    flex-direction: column;
    gap: 10px;
  }

  .drawer-search-form label {
    width: 100%;
  }

  .drawer-logo {
    max-width: 150px;
  }

  .footer_bottom_nav {
    max-width: 100%;
    flex-wrap: wrap;
    gap: 14px 0;
  }

  .footer_bottom_nav .menu-item {
    padding: 10px 20px;
  }

  .footer_bottom_nav .menu-item:nth-child(3) {
    border-left: 1px solid #003a70;
  }
}

/*-------------------topへボタン*/
#to-top-button {
  position: fixed;
  bottom: 100px;
  right: 30px;
  width: 80px;
  height: 80px;
  background-color: #fff;
  border-radius: 50%;
  cursor: pointer;
  z-index: 12000;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-decoration: none;
  color: white;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s, visibility 0.3s, background-color 0.2s;
}

#to-top-icon {
  width: 25px;
  height: auto;
  margin-bottom: 3px;
}

#to-top-text {
  font-size: 0.8em;
  font-weight: bold;
  color: #0073b6;
  padding-top: 5px;
}

#to-top-button:hover {
  background-color: #cce9f7;
  opacity: 0.95;
}

#to-top-button.is-visible {
  opacity: 1;
  visibility: visible;
}

@media screen and (max-width: 550px) {
  #to-top-button {
    bottom: 50px;
  }
}
