/* components.css - 共通UI部品（ヘッダー、サイド、フッター、パンくず など） */

/* header */

.header_menu {
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  border: 1px solid #fff;
}

.header_menu > * {
  box-sizing: border-box;
  display: flex;
  flex-direction: row;
  justify-content: center;
}

.header_menu p,
.header_menu ul li {
  padding: 5px;
  border: 1px solid #fff;
  color: #fff;
  font-size: 1.4rem;
  font-weight: normal;
  font-family: ARIAL;
}

.header_menu p {
  width: 100%;
}

.header_menu ul li {
  width: 20%;
}

/* title */
.inner_title {
  height: 30px;
  margin-bottom: 5px;
  padding: 20px 10px;
  border-left: 10px solid #669966;
  text-align: left;
}

.inner_title h1 {
  display: inline-block;
  font-size: 1.8rem;
  font-weight: normal;
  font-family: ARIAL;
  color: #fff;
}

.inner_title > span {
  padding-left: 15px;
  color: #fff;
}

.sp-side-toggle {
  display: none;
}

/* SP/中間幅で使う：サイドメニュー開閉トグル（見た目は共通） */
.sp-side-toggle {
  position: absolute;
  right: 10px;
  top: 50%;
  transform: translateY(-50%);
  width: 30px;
  height: 30px;
  background: transparent;
  border: 0;
  padding: 0;
  cursor: pointer;
  z-index: 1001;
}

.sp-side-toggle span {
  display: block;
  width: 24px;
  height: 3px;
  margin: 4px auto;
  background: #fff;
  transition: 0.25s;
}

.sp-side-toggle.is-open span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}
.sp-side-toggle.is-open span:nth-child(2) {
  opacity: 0;
}
.sp-side-toggle.is-open span:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -5px);
}

/* オーバーレイ（見た目は共通） */
.sp-side-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.5);
  z-index: 999;
}
.sp-side-overlay.is-open {
  display: block;
}

/* パンくず */
.c-breadcrumb {
  margin: 6px 0 0;
  padding: 0 10px;
  text-align: left;
  font-size: 0.85em;
  line-height: 1;
}

.c-breadcrumb__list {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.c-breadcrumb__item {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.c-breadcrumb__item span {
  color: #ddcc44;
}

.c-breadcrumb__item + .c-breadcrumb__item::before {
  content: ">";
}

.c-breadcrumb a:hover {
  text-decoration: underline;
}

.contents_title {
  margin: 5px 0;
  clear: both;
  padding: 0 0 5px 5px;
  border-bottom: 1px solid #ddd;
  color: #ddd;
  font-family: ARIAL;
  font-size: 1.1rem;
}

/* サイドメニュー */
.side_list {
  padding: 15px 10px;
  background-color: #539664;
  border-left: 10px solid #669966;
}

.side_list dl dt {
  margin: 15px 0 5px;
  line-height: 1.2;
}

.side_list dl dd {
  height: 22px;
}

.side_list dl dd::before {
  content: "├ ";
}

.side_list dl dd:last-child::before {
  content: "└ ";
}

.side_list a.is-current {
  color: #ddcc44;
  text-decoration: none;
  pointer-events: none;
}

/* 画像アクション */
.l-contents .action a:hover img {
  animation: rotation-y 3.5s linear infinite;
}

@keyframes rotation-y {
  0% {
    transform: rotateY(0deg);
  }
  50% {
    transform: rotateY(180deg);
  }
  100% {
    transform: rotateY(360deg);
  }
}

/* footer_menu */
.footer_menu + p {
  font-size: 0.85rem;
  font-weight: normal;
}

.footer_menu {
  display: flex;
  margin: 20px;
  justify-content: center;
  flex-wrap: wrap;
  gap: 15px;
}

.footer_menu ul li {
  position: relative;
  overflow: hidden;
  display: flex;
}

.footer_menu li a,
.footer_menu li dl {
  display: flex;
  justify-content: space-around;
  align-items: center;
  flex-direction: column;
}

.footer_menu li dl {
  flex-direction: column-reverse;
}

.footer_menu li dl dt {
  font-size: 1.4rem;
  line-height: 1.2;
}

.footer_menu li dl dd {
  font-size: 0.75rem;
  line-height: 1.2;
}

.footer_menu li a {
  width: 120px;
  height: 60px;
  background: url("/img/icon/facebook_gn.png") 50% no-repeat;
  background-size: 40px 40px;
}

.footer_menu li:nth-child(2) a {
  background-image: url("/img/icon/instagram_gn.png");
}

.footer_menu li:nth-child(3) a {
  background-image: url("/img/icon/blogger_gn.png");
}

.footer_menu li a:hover {
  background: none;
}

.footer_menu li a:not(:hover) dl {
  display: none;
}

/* not-found */
.contents_inner.item-not-found {
  margin: 100px;
  width: 700px;
  height: 200px;
}

.contents_inner.item-not-found h1 {
  font-size: 1.8em;
}

/* ボタンアクション */
.c-btn__action {
  background-color: #539664;
}

.c-btn__action:hover {
  background-color: #7baa86;
}

.c-btn__action:hover::after {
  border-color: #006644;
}

/* 旧テーマカラー互換 */
.c-bg-ggf {
  background-color: #229655;
}
.c-bg-news {
  background-color: #ddcc44;
}
.c-bg-photo {
  background-color: #99cc33;
}
.c-bg-works {
  background-color: #66ac18;
}
.c-bg-circle {
  background-color: #22aa99;
}
.c-bg-info {
  background-color: #229655;
}

.c-bd-ggf,
.side_list.c-bd-ggf {
  border-color: #229655;
}
.c-bd-news,
.side_list.c-bd-news {
  border-color: #ddcc44;
}
.c-bd-photo,
.side_list.c-bd-photo {
  border-color: #99cc33;
}
.c-bd-works,
.side_list.c-bd-works {
  border-color: #66ac18;
}
.c-bd-circle,
.side_list.c-bd-circle {
  border-color: #22aa99;
}
.c-bd-info,
.side_list.c-bd-info {
  border-color: #229655;
}
