/*
Theme Name: theme_shinbunbu
Author: shinbunbu
Description: WordPress Theme
Version: 2025/10/25
Text Domain: mytheme
*/

:root {
  --orange: #ff8800;
  --blue: #0058bc;
  --white: #fafafa;
}

/* all */
a {
  color: var(--orange);
  text-decoration: none;
}
a:hover {
  color: #5f5f5f;
  text-decoration: none;
}
body {
  margin: 0;
  background-color: var(--white);
  color: #333;
  font-size: 12px;
  @media screen and (min-width: 1024px) {
    font-size: 16px;
  }
}
body.no-scroll {
  overflow: hidden;
}
*,
*:before,
*:after {
  box-sizing: border-box;
}
.container {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  word-break: auto-phrase;
  overflow-wrap: break-word;
}
.contents {
  padding: 0px 5%;
  padding-bottom: 15px;
  flex: 1;
  @media screen and (min-width: 1024px) {
    padding: 0 10%;
    padding-bottom: 15px;
  }
}
.button01 {
  display: inline-block;
  margin-top: 10px;
  padding: 5px 15px;
  background: #fff;
  color: var(--orange);
  font-weight: bold;
  border: 1px solid var(--orange);
  border-radius: 3px;
  text-decoration: none;
  transition: background 0.3s;
}
.button01:hover {
  background: var(--orange);
}
.button01:hover a {
  color: #fff;
}

/*------------------------------------------
    header
------------------------------------------*/
#header {
  position: sticky;
  top: 0;
  width: 100%;
  z-index: 1000;
  transition: opacity 0.3s ease;
  background-color: var(--blue);
  color: #fff;
}
#header__inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 95%;
  margin: auto;
  padding: 8px 0;
  transition: opacity 0.3s ease;
}
body:not(.home) #header__inner {
  opacity: 1;
}
body.home #header__inner.hidden {
  opacity: 0;
  pointer-events: none;
}
#site-name {
  margin: 0;
  font-size: 15px;
}
#site-name a {
  color: currentColor;
  text-decoration: none;
}
#menu-button {
  position: relative;
  cursor: pointer;
  width: 25px;
  height: 16px;
  background: none;
  border: none;
}
#menu-button span {
  position: absolute;
  display: block;
  right: 0;
  width: 100%;
  height: 2px;
  border-radius: 2px;
  background-color: #fff;
}
#menu-button.active,
#menu-button.active span {
  transition: all 0.75s ease-in-out;
}
#menu-button span:nth-of-type(1) {
  top: calc(0% - 2px / 2);
}
#menu-button span:nth-of-type(2) {
  top: calc(50% - 2px / 2);
  opacity: 1;
}
#menu-button span:nth-of-type(3) {
  top: calc(100% - 2px / 2);
}

#menu-button.inactive span:nth-of-type(1) {
  top: calc(0% - 2px / 2);
  animation: inactive-menu-button-bar01 0.75s forwards;
}
#menu-button.inactive span:nth-of-type(2) {
  top: calc(50% - 2px / 2);
  opacity: 1;
}
#menu-button.inactive span:nth-of-type(3) {
  top: calc(100% - 2px / 2);
  animation: inactive-menu-button-bar03 0.75s forwards;
}
#menu-button.active span:nth-of-type(1) {
  animation: active-menu-button-bar01 0.75s forwards;
}
#menu-button.active span:nth-of-type(2) {
  opacity: 0;
}
#menu-button.active span:nth-of-type(3) {
  animation: active-menu-button-bar03 0.75s forwards;
}

@keyframes active-menu-button-bar01 {
  0% {
    top: calc(0% - 2px / 2);
    transform: translateY(0) rotate(0);
  }
  50% {
    top: calc(50% - 2px / 2);
    transform: translateY(-50%) rotate(0);
  }
  100% {
    top: calc(50% - 2px / 2);
    transform: translateY(-50%) rotate(45deg);
  }
}
@keyframes active-menu-button-bar03 {
  0% {
    top: calc(100% - 2px / 2);
    transform: translateY(0) rotate(0);
  }
  50% {
    top: calc(50% - 2px / 2);
    transform: translateY(-50%) rotate(0);
  }
  100% {
    top: calc(50% - 2px / 2);
    transform: translateY(-50%) rotate(-45deg);
  }
}
@keyframes inactive-menu-button-bar01 {
  0% {
    top: calc(50% - 2px / 2);
    transform: translateY(-50%) rotate(45deg);
  }
  50% {
    top: calc(50% - 2px / 2);
    transform: translateY(-50%) rotate(0);
  }
  100% {
    top: calc(0% - 2px / 2);
    transform: translateY(0) rotate(0);
  }
}
@keyframes inactive-menu-button-bar03 {
  0% {
    top: calc(50% - 2px / 2);
    transform: translateY(-50%) rotate(-45deg);
  }
  50% {
    top: calc(50% - 2px / 2);
    transform: translateY(-50%) rotate(0);
  }
  100% {
    top: calc(100% - 2px / 2);
    transform: translateY(0) rotate(0);
  }
}

/*------  menu  ------*/
#menu {
  visibility: hidden;
  position: fixed;
  display: flex;
  justify-content: flex-end;
  top: 0;
  width: 100%;
  height: 100%;
  backdrop-filter: blur(4px) brightness(0.8) opacity(0);
  transition: backdrop-filter 0.35s ease, visibility 0.35s ease;
  z-index: 1000;
  font-size: 15px;
}
#menu.active {
  visibility: visible;
  backdrop-filter: blur(4px) brightness(0.8) opacity(1);
  transition: backdrop-filter 0.35s ease;
}
#menu-contents-wrapper {
  background-color: var(--white);
  color: #333;
  width: 300px;
  max-width: 80%;
  height: 100%;
  padding: 30px;
  padding-top: 10px;
  overflow-y: auto;
  transform: translateX(100%);
  transition: transform 0.35s ease;
  display: flex;
  flex-direction: column;
}
@media (max-width: 768px) {
  #menu-contents-wrapper {
    width: 75%;
    padding: 20px;
  }
  .menu-close {
    right: calc(80% + 20px);
    font-size: 30px;
  }
}
#menu.active #menu-contents-wrapper {
  transform: translateX(0%);
  transition: transform 0.35s ease;
}
#menu-contents {
  overflow-y: auto;
  white-space: nowrap;
}
.menu-list {
  display: flex;
  gap: 5px;
  flex-direction: column;
  list-style: none;
  padding: 0;
  margin: 0;
}
.menu-list a {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  align-items: flex-end;
  color: #333;
  text-decoration: none;
}
.menu-list li a::after {
  content: attr(title);
  display: block;
  font-size: 0.7em;
  color: #888;
  margin-left: 8px;
}
.menu-list .current-menu-item > a,
.menu-list .current-menu-ancestor > a {
  border-bottom: 2px solid var(--blue);
  padding-bottom: 2px;
  color: var(--blue);
}
.menu-list ul.sub-menu {
  display: none;
  list-style: none;
  padding-left: 15px;
  border-left: 2px solid #ddd;
  margin-top: 5px;
}
.menu-list li.open > ul.sub-menu {
  display: block;
}
.submenu-toggle {
  cursor: pointer;
  margin-left: 10px;
  /*color: #555;*/
  font-size: 15px;
  font-weight: bold;
}
.menu-footer {
  margin-top: 20px;
  padding: 10%, 0;
  border-top: 1px solid rgba(0, 0, 0, 0.2);
}
.menu-footer .official-wrapper {
  margin-top: 20px;
}
.menu-footer .official-links {
  list-style: none;
  margin-bottom: 15px;
  padding: 0;
}
.menu-footer .official-links li {
  margin-bottom: 3px;
}
.menu-footer .official-accounts {
  list-style: none;
  display: flex;
  flex-direction: row;
  margin: 0;
  padding: 0;
  gap: 5px;
}
.menu-footer .official-accounts i {
  list-style: none;
  display: flex;
  flex-direction: row;
  margin: 0;
  padding: 0;
  gap: 5px;
  font-size: 20px;
}

/*------------------------------------------
    footer
------------------------------------------*/
#footer-wrapper {
  width: 100%;
  display: flex;
  flex-direction: column;
}

.footer #back-to-top{
  color: var(--blue);
  cursor: pointer;
  margin: 0 0 0 auto;
}
.footer #back-to-top a{
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 7px;
  font-size: 10px;
}
.footer #back-to-top a i{
  font-size: 35px;
}
@media (max-width: 768px) {
  .footer #back-to-top a{
    font-size: 8px;
  }
  .footer #back-to-top a i{
  font-size: 20px;
}
}

#fotter-info {
  padding: 5px 0;
  text-align: center;
  background-color: #3d3f40;
  color: #fff;
}
#fotter-info p {
  font-size: 10px;
  margin: 0;
}


/*------------------------------------------
    top @index
------------------------------------------*/
#top {
  width: 100%;
  height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background-color: var(--blue);
}
body:not(.home) #top {
  display: none;
}
#top-sitename {
  color: #fff;
  font-size: 35px;
  font-weight: bold;
  text-align: center;
  margin: 5px 0;
}
#top-subsitename {
  color: #fff;
  font-size: 20px;
  text-align: center;
  margin: 5px 0;
}
#top-sitename-move {
  display: inline-block;
  animation: sitename-move 2s infinite;
  transform-origin: bottom center;
}
@keyframes sitename-move {
  0%,
  40% {
    transform: translateY(0) scaleY(1);
  }
  55% {
    transform: translateY(-30px) scaleY(1);
  }
  65% {
    transform: translateY(0) scaleY(0.8);
  }
  75% {
    transform: translateY(-15px) scaleY(1);
  }
  85% {
    transform: translateY(0) scaleY(0.85);
  }
  100% {
    transform: translateY(0) scaleY(1);
  }
}

/*------------------------------------------
    section@index
------------------------------------------*/
#section-wrapper {
  display: flex;
  flex-direction: column;
  gap: 50px 0;
  margin-top: 50px;
  text-align: center;
}
.section-title {
  font-size: 40px;
  font-weight: bold;
  margin-bottom: 10px;
}
#CDs {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 10px;
}
#CDs a {
  flex: 1 1 auto;
}
#CDs img {
  width: 170px;
  @media (max-width: 767px) {
    width: 110px;
  }
}
/*------------------------------------------
    YouTube @index
------------------------------------------*/
.splide__slide {
  aspect-ratio: 16 / 9;
}
@media (max-width: 767px) {
  .splide__slide {
    width: 80vw;
  }
  .splide__slide image {
    width: 100%;
    height: auto;
  }
}
/*------------------------------------------
    page & single
------------------------------------------*/
.page-content {
  margin: 0 5px;
}
.entry-header {
  display: flex;
  flex-direction: row;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 5px;
  padding: 10px 0px;
}
.entry-header p {
  margin: 0;
}
.entry-title {
  font-size: 20px;
  font-weight: bold;
}
.entry-subtitle {
  font-size: 13px;
  color: #888;
  font-weight: normal;
}

.twitter-tweet {
  margin: auto;
}

/*------------------------------------------
    page
------------------------------------------*/
.wrapper-entry-title {
  display: flex;
  flex-direction: column;
}
.wrapper-entry-title .entry-title-dade {
  font-size: 15px;
  font-weight: bold;
  color: var(--blue);
  margin: 0;
}
.wrapper-entry-title .entry-title {
  min-width: 0;
  word-break: break-word;
}

/*------------------------------------------
    single
------------------------------------------*/
.post-navigation {
  display: flex;
  flex-direction: row;
  flex-wrap: nowrap;
  justify-content: space-between;
  align-items: center;
  gap: 15px;
  margin-top: 50px;
}
.post-navigation .list {
  white-space: nowrap;
  flex: 1;
  text-align: center;
}
.post-navigation .next,
.post-navigation .prev {
  flex: 1;
  display: flex;
  flex-direction: column;
  min-width: 0;
}
.post-navigation .date {
  font-size: 13px;
}
.next {
  align-items: flex-start;
}
.prev {
  align-items: flex-end;
  text-align: right;
}
