@charset "UTF-8";
/*
Theme Name: Responsive-Design
Theme URI: http://www.joc-network.co.jp/
Author: JOC-NETWORK CO.,LTD.
Author URI: http://www.joc-network.co.jp/
*/
/* =========================================
   Variables
   ========================================= */
/* =========================================
   Mixins
   ========================================= */
/* Media Queries */
/* =========================================
   Base Styles
   ========================================= */
:root {
  accent-color: #666;
  scroll-padding-top: var(--header-height, 168px);
  scroll-behavior: smooth;
}

body {
  font-family: "Noto Sans JP", sans-serif;
  font-size: 1.2rem !important;
  font-weight: 400;
  background-color: white !important;
}

a:focus {
  outline: none;
}

/* =========================================
   Common Components
   ========================================= */
.logos {
  display: grid;
  grid-template-columns: 1fr;
  max-width: 260px;
}

/* =========================================
   Header & Navigation
   ========================================= */
header {
  width: 100%;
  /* Logo Area */
  /* Menu Area */
  /* Navigation Containers */
  /* Modal State */
}
header div {
  margin-block-start: 0 !important;
}
header .logo-area {
  display: grid;
  grid-template-columns: auto auto 1fr;
  gap: 1rem;
  align-items: center;
  padding: 1rem 2rem;
  /* Auth Links */
}
@media screen and (max-width: 768px) {
  header .logo-area {
    grid-template-columns: 1fr auto;
    padding: 0.5rem 1rem;
  }
}
header .logo-area .wp-block-site-title {
  display: grid;
  grid-template-columns: 1fr;
  margin-block-start: 0;
}
@media screen and (max-width: 768px) {
  header .logo-area .wp-block-site-title {
    display: none;
  }
}
header .logo-area .wp-block-site-title a {
  color: #666;
  font-size: 1.6rem;
  font-weight: bold;
  text-decoration: none;
  padding-top: 3.8rem;
}
@media screen and (max-width: 768px) {
  header .logo-area .wp-block-site-title a {
    font-size: 1.6rem;
  }
}
header .logo-area .wp-block-site-title a:hover {
  opacity: 0.8;
}
header .logo-area .auth-links {
  display: grid;
  grid-template-columns: repeat(4, max-content);
  justify-content: flex-end;
  align-items: center;
  gap: 0.5rem;
  font-size: 1rem;
  font-weight: bold;
}
@media screen and (max-width: 768px) {
  header .logo-area .auth-links {
    grid-template-columns: 1fr;
    gap: 0.2rem;
    font-size: 0.8rem;
  }
}
header .logo-area .auth-links::before {
  font-family: "Font Awesome 5 Free";
  font-weight: 900;
  content: "\f2bd";
  font-size: 1.6rem;
  margin-right: 0.5rem;
  color: #333;
}
@media screen and (max-width: 768px) {
  header .logo-area .auth-links::before {
    font-size: 1.4rem;
    margin-right: auto;
    margin-left: auto;
  }
}
header .logo-area .auth-links a {
  color: #666;
  text-decoration: none;
}
header .logo-area .auth-links a:hover {
  color: #A42025;
}
header .logo-area .auth-links .separator {
  color: #CCC;
  font-weight: normal;
}
@media screen and (max-width: 768px) {
  header .logo-area .auth-links .separator {
    display: none;
  }
}
header .menu-area {
  background-color: #666;
}
header .menu-area .alignwide {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0;
  padding: 0 !important;
}
@media screen and (max-width: 768px) {
  header .menu-area .alignwide {
    grid-template-columns: 1fr auto;
    align-items: center;
    padding: 0 1rem !important;
  }
}
header .menu-area .wp-block-site-title {
  display: none;
  grid-template-columns: 1fr;
}
@media screen and (max-width: 768px) {
  header .menu-area .wp-block-site-title {
    display: grid;
  }
}
header .menu-area .wp-block-site-title a {
  display: grid;
  grid-template-columns: 1fr;
  padding: 1rem;
  text-align: center;
  background-color: #666;
  color: white;
  font-size: 1.6rem;
  font-weight: bold;
  text-decoration: none;
}
@media screen and (max-width: 768px) {
  header .menu-area .wp-block-site-title a {
    font-size: 1.4rem;
  }
}
header .menu-area .wp-block-site-title a:hover {
  opacity: 0.8;
}
header .menu-area nav {
  justify-content: center;
  margin: 0 auto;
}
@media screen and (max-width: 768px) {
  header .menu-area nav {
    width: 24px;
    height: 24px;
  }
}
header .menu-area nav li a {
  padding: 1rem 2rem;
  text-decoration: none;
  color: white !important;
}
@media screen and (max-width: 960px) {
  header .menu-area nav li a {
    padding: 1rem;
  }
}
header .menu-area nav li a:hover {
  color: #CCC !important;
}
header .menu-area nav li a::before {
  font-family: "Font Awesome 5 Free";
  font-weight: 900;
  content: "\f107";
  font-size: 1.6rem;
  padding-right: 1rem;
  color: inherit;
}
@media screen and (max-width: 960px) {
  header .menu-area nav li a::before {
    padding-right: 0.5rem;
  }
}
header .menu-area nav li a[href*="/program/"]::before {
  content: "\f518";
}
header .menu-area nav li a[href*="/lecture-ppt/"]::before {
  content: "\e53d";
}
header .menu-area nav li a[href*="/participants-case-study/"]::before {
  content: "\f4ff";
}
header .menu-area nav li a[href*="/lecture-video/"]::before {
  content: "\e131";
}
header .menu-area nav li a[href*="/photo/"]::before {
  content: "\f302";
}
header .menu-area nav li a.current-menu-item a {
  color: #CCC !important;
}
header svg {
  fill: white !important;
}
@media screen and (max-width: 768px) {
  header .wp-block-navigation__responsive-container-open:not(.always-shown) {
    display: flex;
  }
}
@media (min-width: 769px) {
  header .wp-block-navigation__responsive-container-open:not(.always-shown) {
    display: none;
  }
}
@media screen and (max-width: 768px) {
  header .wp-block-navigation__container {
    display: none;
  }
}
@media (min-width: 769px) {
  header .wp-block-navigation__container {
    display: flex;
  }
}
header .has-modal-open {
  padding-right: 1rem !important;
  padding-left: 1rem !important;
  background-color: #666 !important;
  top: 140px;
  height: calc(100vh - 140px);
}
header .has-modal-open #modal-1-content {
  gap: 0;
}
header .has-modal-open .wp-block-navigation {
  display: grid !important;
  grid-template-columns: 1fr;
  gap: 0 !important;
  width: 100%;
}
header .has-modal-open .wp-block-navigation:nth-of-type(1) {
  padding: 2rem 0 0;
}
header .has-modal-open .wp-block-navigation li {
  display: grid !important;
  grid-template-columns: 1fr;
  text-align: left;
}
header .has-modal-open .wp-block-navigation li a {
  display: grid !important;
  grid-template-columns: 4rem 1fr;
  align-items: center;
  padding: 0.5rem 1rem !important;
  border-bottom: 1px solid white;
  color: white !important;
  text-align: left;
}

/* =========================================
   Main Content
   ========================================= */
main {
  margin: 0 !important;
  padding-right: 0 !important;
  padding-left: 0 !important;
  /* =========================================
    Filter Select Box Styles (Font Awesome 5)
    ========================================= */
}
main > div {
  margin: 0 !important;
  padding: 0 !important;
}
main h1 {
  padding: 2rem 1rem;
  text-align: center;
  border-bottom: 1px solid #333;
  max-width: 100% !important;
}
main ul {
  list-style: none;
  padding-inline-start: 0;
}
main .wp-block-list {
  list-style: none;
  padding-inline-start: 0;
}
main .wp-block-list.link_page {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 1rem;
}
@media screen and (max-width: 960px) {
  main .wp-block-list.link_page {
    grid-template-columns: repeat(3, 1fr);
  }
}
@media screen and (max-width: 768px) {
  main .wp-block-list.link_page {
    grid-template-columns: repeat(2, 1fr);
  }
}
main .wp-block-list.link_page li {
  display: grid;
  grid-template-columns: 1fr;
}
main .wp-block-list.link_page li a {
  display: grid;
  place-items: center;
  position: relative;
  aspect-ratio: 1;
  text-decoration: none;
  color: #ffffff !important;
  font-weight: 700;
  font-size: 1.4rem;
  text-align: center;
  line-height: 1.3;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
  z-index: 1;
  overflow: hidden;
}
main .wp-block-list.link_page li a::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.6);
  transition: background-color 0.4s ease;
  z-index: -1;
}
main .wp-block-list.link_page li a:hover::before {
  background-color: rgba(164, 32, 37, 0.8);
}
main .wp-block-list.link_page li a img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100% !important;
  height: 100%;
  -o-object-fit: cover;
     object-fit: cover;
  z-index: -2;
  transition: transform 0.6s ease;
}
main .filter-wrapper {
  position: relative;
  text-align: right;
  padding: 0;
}
main .filter-wrapper::after {
  font-family: "Font Awesome 5 Free";
  font-weight: 900;
  content: "\f107";
  position: absolute;
  right: 1rem;
  top: 50%;
  transform: translateY(-50%);
  color: #333;
  font-size: 1.2rem;
  pointer-events: none;
  z-index: 2;
}
main .custom-select-box {
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  width: -moz-fit-content;
  width: fit-content;
  padding: 12px 60px 12px 20px;
  font-size: 1.1rem;
  font-weight: 500;
  color: #333;
  background-color: #fff;
  border: 2px solid #CCC;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.3s ease;
  position: relative;
  z-index: 1;
}
main .custom-select-box:hover {
  border-color: #666;
}
main .custom-select-box:focus {
  outline: none;
  border-color: #A42025;
  box-shadow: 0 0 0 3px rgba(164, 32, 37, 0.1);
}
@media screen and (max-width: 768px) {
  main .custom-select-box {
    font-size: 1rem;
    padding: 10px 35px 10px 15px;
  }
}
main #wpmem_reg, main #wpmem_login, main .wpmem_msg {
  margin-inline: auto;
}
@media screen and (max-width: 768px) {
  main #wpmem_reg, main #wpmem_login, main .wpmem_msg {
    width: 100%;
  }
}
main #wpmem_reg fieldset, main #wpmem_login fieldset, main .wpmem_msg fieldset {
  margin: 0;
}
main #wpmem_reg input, main #wpmem_reg textarea, main #wpmem_login input, main #wpmem_login textarea, main .wpmem_msg input, main .wpmem_msg textarea {
  box-sizing: border-box;
}
main #wpmem_reg .button_div, main #wpmem_login .button_div, main .wpmem_msg .button_div {
  padding: 1rem 0;
  text-align: center;
}
main #wpmem_reg input[type=submit], main #wpmem_login input[type=submit], main .wpmem_msg input[type=submit] {
  background-color: #333;
  color: white;
  padding: 1rem 2rem;
  margin-inline: auto;
}
main .entry-content {
  margin-block-start: 0;
  margin: 0 !important;
  padding: 0 !important;
  max-width: 100% !important;
}
main .entry-content div {
  margin-block-start: 0 !important;
}
main .entry-content .wp-block-group {
  padding: 4rem 8em;
}
@media screen and (max-width: 1380px) {
  main .entry-content .wp-block-group {
    padding: 4rem;
  }
}
@media screen and (max-width: 768px) {
  main .entry-content .wp-block-group {
    padding: 2rem;
  }
}

.home main h1 {
  display: none;
}
.home main .entry-content .wp-block-group {
  padding: 0;
}
.home main .entry-content .wp-block-group.set_pad {
  padding: 4rem 2rem;
}
@media screen and (max-width: 768px) {
  .home main .entry-content .wp-block-group.set_pad {
    padding: 2rem 1rem;
  }
}
.home main .entry-content .wp-block-group.set_pad .auth-links {
  display: grid;
  grid-template-columns: repeat(4, max-content);
  justify-content: center;
  align-items: center;
  gap: 0.5rem;
  font-size: 1rem;
  font-weight: bold;
  padding: 2rem 0 0 20%;
}
@media screen and (max-width: 768px) {
  .home main .entry-content .wp-block-group.set_pad .auth-links {
    padding: 2rem 0 0;
  }
}
.home main .entry-content .wp-block-group.set_pad .auth-links::before {
  font-family: "Font Awesome 5 Free";
  font-weight: 900;
  content: "\f2bd";
  font-size: 1.6rem;
  margin-right: 0.5rem;
  color: #333;
}
@media screen and (max-width: 768px) {
  .home main .entry-content .wp-block-group.set_pad .auth-links::before {
    font-size: 1.4rem;
    margin-right: auto;
    margin-left: auto;
  }
}
.home main .entry-content .wp-block-group.set_pad .auth-links a {
  color: #666;
  text-decoration: none;
}
.home main .entry-content .wp-block-group.set_pad .auth-links a:hover {
  color: #A42025;
}
.home main .entry-content .wp-block-group.set_pad .auth-links .separator {
  color: #CCC;
  font-weight: normal;
}
.home main .entry-content .top_two {
  display: grid;
  grid-template-columns: 20% 1fr;
  gap: 0;
  align-items: flex-start;
  padding: 0 !important;
  border-bottom: 1px solid #333;
}
@media screen and (max-width: 960px) {
  .home main .entry-content .top_two {
    grid-template-columns: 30% 1fr;
  }
}
@media screen and (max-width: 768px) {
  .home main .entry-content .top_two {
    grid-template-columns: 1fr;
  }
}
.home main .entry-content .top_two .wp-block-group {
  padding: 4rem 2rem;
}
@media screen and (max-width: 768px) {
  .home main .entry-content .top_two .wp-block-group {
    padding: 2rem 1rem;
  }
}
.home main .entry-content .top_two .wp-block-group h2 {
  text-align: center;
}
.home main .entry-content .top_two .wp-block-group figure {
  text-align: center;
}
.home main .entry-content .top_two .wp-block-group figure a:hover {
  opacity: 0.8;
}
.home main .entry-content .top_two .wp-block-group .message {
  padding: 4rem 0 0;
}
@media screen and (max-width: 768px) {
  .home main .entry-content .top_two .wp-block-group .message {
    padding: 2rem 0 0;
  }
}
.home main .entry-content .top_two .wp-block-group .message li {
  display: grid;
  grid-template-columns: 1fr;
}
.home main .entry-content .top_two .wp-block-group .message li a {
  font-weight: bold;
  color: #A42025;
}
@media screen and (max-width: 768px) {
  .home main .entry-content .top_two .wp-block-group:first-child {
    padding-bottom: 0;
  }
}
.home main .entry-content .top_two .wp-block-group:first-child img {
  max-width: 200px !important;
  width: auto;
  margin-inline: auto;
}
.home main .entry-content .top_two .wp-block-group:nth-child(2) {
  border-left: 1px solid #333;
}
@media screen and (max-width: 768px) {
  .home main .entry-content .top_two .wp-block-group:nth-child(2) {
    border-left: none;
  }
}
.home main .entry-content .top_two .wp-block-group p:first-child {
  margin-block-start: 0;
}

body:not(.logged-in) .lock a::before {
  background-color: rgba(0, 0, 0, 0.8) !important;
}
body:not(.logged-in) .lock a::after {
  font-family: "\f023";
  font-weight: 900;
  content: "\f107";
  content: "\f023  Members Only";
  font-family: "Font Awesome 5 Free", "Noto Sans JP";
  font-size: 0.8rem;
  font-weight: 900;
  background: rgba(164, 32, 37, 0.9);
  color: #fff;
  padding: 4px 10px;
  border-radius: 4px;
  text-shadow: none;
  position: absolute;
  top: 10px;
  right: 10px;
  z-index: 2;
  letter-spacing: 0.2em;
}
body:not(.logged-in) .lock:hover a::before {
  background-color: rgba(0, 0, 0, 0.9) !important;
}

.page-id-20 main ul {
  display: grid;
  grid-template-columns: 1fr 1fr;
  width: -moz-fit-content;
  width: fit-content;
  margin-inline: auto;
  gap: 2rem;
}
@media screen and (max-width: 768px) {
  .page-id-20 main ul {
    grid-template-columns: 1fr;
  }
}
.page-id-20 main ul li a {
  display: grid;
  padding: 2rem 1rem;
  background-color: #333;
  text-align: center;
  color: white;
  text-decoration: none;
}
.page-id-20 main ul li a:hover {
  background-color: #A42025;
}

.page-id-112 main .entry-content h2 {
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: center;
  gap: 1rem;
}
.page-id-112 main .entry-content h2::before {
  font-family: "Font Awesome 5 Free";
  font-weight: 900;
  content: "\f518";
}

.page-id-114 main .entry-content h2 {
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: center;
  gap: 1rem;
}
.page-id-114 main .entry-content h2::before {
  font-family: "Font Awesome 5 Free";
  font-weight: 900;
  content: "\e53d";
  color: #A42025;
}

.page-id-118 main .entry-content h2 {
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: center;
  gap: 1rem;
}
.page-id-118 main .entry-content h2::before {
  font-family: "Font Awesome 5 Free";
  font-weight: 900;
  content: "\f4ff";
  color: #A42025;
}

.page-id-120 main .entry-content h2 {
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: center;
  gap: 1rem;
}
.page-id-120 main .entry-content h2::before {
  font-family: "Font Awesome 5 Free";
  font-weight: 900;
  content: "\e131";
  color: #A42025;
}

.page-id-120 main .entry-content h2 {
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: center;
  gap: 1rem;
}
.page-id-120 main .entry-content h2::before {
  font-family: "Font Awesome 5 Free";
  font-weight: 900;
  content: "\f302";
  color: #A42025;
}

/* =========================================
   FileBird Gallery (Yearly Sections)
   ========================================= */
#fb-multi-gallery-container {
  padding: 0;
}
#fb-multi-gallery-container .filter-buttons {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  margin-bottom: 3rem;
}
#fb-multi-gallery-container .filter-buttons .filter-btn {
  padding: 10px 24px;
  border: 1px solid #CCC;
  background-color: white;
  color: #333;
  font-size: 0.9rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.3s ease;
  border-radius: 4px;
}
#fb-multi-gallery-container .filter-buttons .filter-btn:hover {
  border-color: #666;
  color: #666;
}
#fb-multi-gallery-container .filter-buttons .filter-btn.active {
  background-color: #666;
  border-color: #666;
  color: white;
}
#fb-multi-gallery-container .year-section {
  margin-bottom: 60px;
  animation: fadeIn 0.5s ease;
}
#fb-multi-gallery-container .year-section h2 {
  font-size: 1.8rem;
  color: #333;
  border-bottom: 2px solid #333;
  padding-bottom: 12px;
  margin-bottom: 30px;
  position: relative;
}
#fb-multi-gallery-container .year-section h2::after {
  content: "";
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 60px;
  height: 2px;
  background-color: #A42025;
}
#fb-multi-gallery-container .media-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 4rem;
  margin-block-start: 0;
  margin-block-end: 0;
}
#fb-multi-gallery-container .media-grid:has(.pdf-direct-viewer-wrap) {
  grid-template-columns: 1fr;
}
@media screen and (max-width: 768px) {
  #fb-multi-gallery-container .media-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
  }
}
#fb-multi-gallery-container .media-grid.simple-list {
  grid-template-columns: repeat(2, 1fr);
  gap: 2rem;
}
@media screen and (max-width: 768px) {
  #fb-multi-gallery-container .media-grid.simple-list {
    grid-template-columns: 1fr;
  }
}
#fb-multi-gallery-container .media-item .movie-content {
  position: relative;
  padding-bottom: 56.25%; /* 16:9 の比率 */
  height: 0;
  overflow: hidden;
  margin-bottom: 1rem;
}
#fb-multi-gallery-container .media-item .movie-content iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100% !important;
  height: 100% !important;
  border: 0;
}
#fb-multi-gallery-container .media-item a {
  display: block;
  text-decoration: none;
  color: inherit;
}
#fb-multi-gallery-container .media-item a:hover .thumb-box {
  transform: translateY(-5px);
  box-shadow: 0 12px 20px rgba(0, 0, 0, 0.15);
}
#fb-multi-gallery-container .media-item a:hover .thumb-box img {
  transform: scale(1.05);
}
#fb-multi-gallery-container .media-item a:hover p {
  color: #A42025;
}
#fb-multi-gallery-container .media-item .thumb-box {
  aspect-ratio: 1;
  background-color: #f9f9f9;
  border: 1px solid #eee;
  overflow: hidden;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.08);
  transition: all 0.3s ease;
  border-radius: 2px;
}
#fb-multi-gallery-container .media-item .thumb-box img {
  width: 100%;
  height: 100%;
  -o-object-fit: cover;
     object-fit: cover;
  transition: transform 0.5s ease;
}
#fb-multi-gallery-container .media-item p {
  margin-top: 12px;
  font-size: 0.95rem;
  font-weight: 600;
  line-height: 1.4;
  color: #333;
  transition: color 0.3s ease;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.pdf-tabs {
  display: flex;
  gap: 5px;
  margin-bottom: 15px;
}

.pdf-tab-trigger {
  padding: 8px 20px;
  background: #f0f0f0;
  border: 1px solid #f0f0f0;
  border-radius: 100vmax;
  cursor: pointer;
  font-size: 14px;
}

.pdf-tab-trigger.active {
  background: #333;
  color: #fff;
  border-color: #333;
}

/* 1. 外側の枠組み：左右に少し余白を持たせ、はみ出しを確実にカットする */
.pdf-direct-viewer-wrap {
  padding: 0 !important; /* 左右の余白を少し増やす */
  overflow: hidden !important;
  box-sizing: border-box !important;
}

/* 2. PDFコンテナ：幅を100%に固定し、枠線を内側に計算させる */
.pdf-embed-container {
  width: 100% !important;
  max-width: 100% !important;
  overflow: hidden !important;
  box-sizing: border-box !important;
  margin: 0 auto !important;
}

/* 3. PDF本体：これが最重要。JSが大きな値を指定してもCSSで100%に引き戻す */
.pdfemb-viewer,
.pdfemb-pagescontainer,
.pdfemb-inner-div,
canvas.pdfemb-the-canvas {
  width: 100% !important;
  max-width: 100% !important;
  height: auto !important;
  box-sizing: border-box !important;
  left: 0 !important; /* 位置のズレを解消 */
}

.pdfemb-pagescontainer {
  padding-bottom: 30px;
}

/* 4. ツールバーの幅も合わせる */
.pdfemb-toolbar {
  width: 100% !important;
  max-width: 100% !important;
  box-sizing: border-box !important;
  left: 0 !important;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
/* --- Gallery Controls Container --- */
.gallery-controls:has(nav) {
  padding-bottom: 4rem;
}

/* --- Select Box (Year) --- */
.filter-wrapper {
  margin-bottom: 25px;
}

.custom-select-box {
  -webkit-appearance: none;
     -moz-appearance: none;
          appearance: none;
  background: #f8f9fa url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' fill='%23333' viewBox='0 0 16 16'%3E%3Cpath d='M7.247 11.14 2.451 5.658C1.885 5.013 2.345 4 3.204 4h9.592a1 1 0 0 1 .753 1.659l-4.796 5.48a1 1 0 0 1-1.506 0z'/%3E%3C/svg%3E") no-repeat right 15px center;
  border: 1px solid #e0e0e0;
  padding: 12px 40px 12px 20px;
  border-radius: 12px;
  font-size: 15px;
  color: #333;
  cursor: pointer;
  transition: all 0.3s ease;
  min-width: 200px;
}

.custom-select-box:focus {
  border-color: #0073aa;
  box-shadow: 0 0 0 4px rgba(0, 115, 170, 0.1);
  outline: none;
}

/* --- Navigation Tabs (Child Categories) --- */
.cat-nav-tabs {
  border-top: 1px solid #f0f0f0;
  padding-top: 25px;
}

.child-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 20px;
}

.cat-tab-btn {
  background: #f8f9fa;
  border: 1px solid transparent;
  padding: 10px 24px;
  border-radius: 50px; /* Capsule shape */
  font-weight: 600;
  color: #666;
  font-size: 14px;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.cat-tab-btn:hover {
  background: #e9ecef;
  color: #333;
}

.cat-tab-btn.active {
  background: #333;
  color: #fff;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

/* --- Grand-child Tags Area (Background removed & height reduced) --- */
.grand-child-tags-wrapper {
  display: flex;
  flex-wrap: wrap;
  gap: 8px; /* 隙間を少し詰める */
  padding: 10px 0; /* 上下の背景色と余白をなくし、高さを低く */
  background: transparent; /* 背景色をなしに */
  border-radius: 0; /* 背景がないため角丸も不要 */
  border: none; /* 枠線も削除してスッキリさせる */
  min-height: auto; /* 最小高さの制限を解除 */
  animation: slideUp 0.4s ease-out;
}

/* --- Filter Tag Buttons (Blue Outline & White Background) --- */
.cat-filter-btn {
  background: #ffffff; /* 背景は白 */
  border: 1px solid #0073aa; /* 青色の線 */
  color: #0073aa; /* 文字も青色 */
  padding: 6px 16px; /* 高さを抑えるために上下パディングを調整 */
  font-size: 13px;
  font-weight: 500;
  border-radius: 6px; /* 少しシャープな角丸に */
  cursor: pointer;
  transition: all 0.2s ease;
}

/* ホバー時は青を少し濃くするか、背景に薄く色を付ける */
.cat-filter-btn:hover {
  border-color: #005a87;
  color: #005a87;
  background: #f0f7ff;
  transform: translateY(-1px);
}

/* 選択中（アクティブ）の状態 */
.cat-filter-btn.active {
  background: #0073aa; /* 選択時は塗りつぶし */
  color: #ffffff; /* 文字は白 */
  border-color: #0073aa;
  box-shadow: 0 4px 10px rgba(0, 115, 170, 0.2);
}

/* --- (参考) 上段のタブとの間隔を微調整 --- */
.child-tabs {
  margin-bottom: 10px; /* タグエリアとの距離を少し縮める */
}

.top-controls:has(.search-filter-wrapper) {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 1rem;
}
@media screen and (max-width: 768px) {
  .top-controls:has(.search-filter-wrapper) {
    grid-template-columns: 1fr;
  }
}

.top-controls:has(.search-filter-wrapper) .filter-wrapper {
  margin-bottom: 0;
}
@media screen and (max-width: 768px) {
  .top-controls:has(.search-filter-wrapper) .filter-wrapper {
    order: 1;
  }
}

.search-filter-wrapper {
  margin-bottom: 1rem;
}
@media screen and (max-width: 768px) {
  .search-filter-wrapper {
    order: 2;
  }
}

.search-input {
  box-sizing: border-box;
  width: 100%;
  max-width: 350px;
  padding: 10px 15px;
  border-radius: 8px;
  border: 1px solid #ddd;
  background: #f9f9f9;
  font-size: 14px;
}
@media screen and (max-width: 768px) {
  .search-input {
    order: 2;
    max-width: 100%;
  }
}

.search-input:focus {
  outline: none;
  border-color: #0073aa;
  background: #fff;
}

.fb-lightbox-link:hover img {
  transform: scale(1.05);
}

/* ライトボックスのオーバーレイ */
#fb-lightbox-overlay {
  display: none;
  position: fixed;
  z-index: 9999;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.85);
  justify-content: center;
  align-items: center;
  padding: 20px;
}

.fb-lightbox-content {
  position: relative;
  max-width: 90%;
  max-height: 90%;
}

.fb-lightbox-content img {
  max-width: 100%;
  max-height: 80vh;
  border-radius: 4px;
  box-shadow: 0 0 20px rgba(0, 0, 0, 0.5);
}

.fb-lightbox-close {
  position: absolute;
  top: -40px;
  right: 0;
  color: #fff;
  font-size: 35px;
  font-weight: bold;
  cursor: pointer;
}

.fb-lightbox-caption {
  color: #fff;
  text-align: center;
  margin-top: 15px;
  font-size: 16px;
}

/* ライトボックス内の矢印ボタン */
.fb-lightbox-prev, .fb-lightbox-next {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  color: #fff;
  font-size: 50px;
  font-weight: bold;
  cursor: pointer;
  padding: 20px;
  -webkit-user-select: none;
     -moz-user-select: none;
          user-select: none;
  transition: color 0.3s;
  z-index: 10001;
}

.fb-lightbox-prev {
  left: -80px;
}

.fb-lightbox-next {
  right: -80px;
}

.fb-lightbox-prev:hover, .fb-lightbox-next:hover {
  color: #ccc;
}

/* キャプションはJS側でHTMLから削除しましたが、念のため非表示に */
.fb-lightbox-caption {
  display: none !important;
}

/* スマホ対応：矢印の位置調整 */
@media (max-width: 768px) {
  .fb-lightbox-prev {
    left: 0;
    font-size: 40px;
  }
  .fb-lightbox-next {
    right: 0;
    font-size: 40px;
  }
  .fb-lightbox-content img {
    max-width: 95%;
  }
}
/* 閉じるボタンの位置調整 */
.fb-lightbox-close {
  top: -50px;
  right: -20px;
}

/* =========================================
   Footer
   ========================================= */
footer {
  margin-block-start: 0;
  color: black;
  border-top: 1px solid #333;
}
footer > div {
  display: grid;
  grid-template-columns: 1fr;
  justify-content: flex-start;
  gap: 2rem;
  padding-bottom: 0 !important;
}
@media screen and (max-width: 768px) {
  footer > div {
    gap: 1rem;
    border-radius: 2rem;
  }
}
footer .logos {
  margin-inline: auto;
}
footer .copy {
  padding: 2rem 1rem;
  text-align: center;
  background-color: #333;
  color: white;
  font-size: 0.8rem;
}

/* =========================================
   Utility Components (To Top Button)
   ========================================= */
.to_top {
  position: fixed;
  right: 2rem;
  bottom: 2rem;
  z-index: 10000;
  display: none;
  width: -moz-fit-content;
  width: fit-content;
}
.to_top.fadein {
  display: block;
}
@media screen and (max-width: 768px) {
  .to_top {
    right: 1rem;
    bottom: 1rem;
  }
}
.to_top a {
  display: grid;
  place-content: center;
  grid-template-columns: 1fr;
  aspect-ratio: 1;
  padding: 0.4rem;
  font-size: 1.6rem;
  line-height: 1;
  color: white;
  text-align: center;
  text-decoration: none;
  background-color: #333;
  border-radius: 50%;
}
.to_top a:hover {
  scale: 1.2;
}
@media screen and (max-width: 768px) {
  .to_top a {
    width: 30px;
    font-size: 1.2rem;
  }
}