/*
Theme Name: nybui
Version: 0.1.0
Template: gakudai
Description: nybui — 小川町・吉備中央町・学芸大学で暮らす当事者が書く地域メディア。gakudai テーマ（学大ニューメディア）の子テーマ。
Author: marei
Text Domain: nybui
*/

html {
  scroll-behavior: smooth;
}

body {
  font-family: "Segoe UI", "Helvetica Neue", HelveticaNeue, YuGothic, "Yu Gothic Medium", "Yu Gothic", Verdana, Meiryo, sans-serif;
}

a {
  color: #888888;
  text-decoration: none;
}

p {
  line-height: 1.8rem;
}

a:visited {
  color: #888888;
}

a:hover,
a:focus {
  color: #222;
}

a:active {
  color: #888888;
}

a:hover {
  color: #222222;
}

ul {
  margin: 0;
  padding: 0;
}

li {
  list-style: none;
}

dt {
  font-weight: 500;
  margin-bottom: 20px;
}

h1,
h2,
h3,
h4 {
  margin: 0;
  padding: 0;
}

h1.entry-title,
h1.page-title,
h2.entry-title,
.article_txt h2,
h2.entry-subtitle,
h3.entry-subtitle {
  font-family: "fot-tsukuaoldmin-pr6n", sans-serif;
  font-weight: 300;
  font-style: normal;
  letter-spacing: 2px;
}

h2.entry-subtitle,
h3.entry-subtitle {
  font-style: italic;
}

h2.entry-subtitle {
  margin: 5px 0 15px;
}

h3.entry-subtitle {
  margin: 5px 0 10px;
}

.header {
  background: #fff;
  width: 100%;
  height: 68px;
}

header .site-branding {
  display: flex;
  align-items: center;
  max-width: 100%;
  height: 68px;
}

.site-branding {
  width: 100%;
  height: 68px;
  position: absolute;
  box-sizing: border-box;
  display: flex;
  justify-content: center;
  align-items: center;
}

/* site branding right */
/* 
  header .site-branding a.custom-logo-link {
      margin-right: auto;
  }
  */

header .site-branding .header_menu {
  display: flex;
  height: 32px;
}

/* menu */
/* Nav items */
.menu {
  list-style: none;
  position: absolute;
  width: 100%;
  height: auto;
  top: 0;
  margin-top: 100px;
  padding: 0 0 10px 0;
  clear: both;
  background: #fff;
  transition: 0.3192s cubic-bezier(0.04, 0.04, 0.12, 0.96) 0.1008s;
  transform: scale(1, 0);
  transform-origin: top;
}

@media screen and (max-width: 768px) {
  .menu {
    margin-top: 110px;
  }
}

/* Hamburger menu button */
.menu-btn:checked~.menu {
  transform: scale(1, 1);
  transform-origin: top;
  transition: 0.3192s cubic-bezier(0.04, 0.04, 0.12, 0.96) 0.1008s;
}

/* Hamburger menbu text */
.menu a {
  text-decoration: none;
  font-weight: 500;
  letter-spacing: 2px;
  font-size: 16px;
  text-transform: capitalize;
  color: #222;
  opacity: 0;
  transition: 0.5s;
}

.menu li {
  border-top: 1px solid #999;
  padding: 15px 0;
  margin: 0 54px;
  opacity: 0;
  transition: 0.5s;
}

.menu-btn:checked~.menu a,
.menu-btn:checked~.menu li {
  opacity: 1;
  transition: 0.3192s cubic-bezier(0.04, 0.04, 0.12, 0.96) 0.2s;
}

.menu-btn {
  display: none;
}

.menu-icon {
  display: inline-block;
  position: absolute;
  right: 0;
  cursor: pointer;
  padding: 24px 14px;
  -webkit-tap-highlight-color: #222;
}

.navicon {
  background: #222;
  display: block;
  height: 1px;
  width: 26px;
  position: relative;
  transition: 0.3192s cubic-bezier(0.04, 0.04, 0.12, 0.96) 0.1008s;
}

.navicon:before,
.navicon:after {
  content: "";
  display: block;
  height: 100%;
  width: 100%;
  position: absolute;
  background: #222;
  transition: 0.3192s cubic-bezier(0.04, 0.04, 0.12, 0.96) 0.1008s;
}

.navicon:before {
  top: 9px;
}

.navicon:after {
  bottom: 9px;
}

/* Hamburger Menu Animation Start */
.menu-btn:checked~.menu-icon .navicon:before {
  transform: rotate(-45deg);
}

.menu-btn:checked~.menu-icon .navicon:after {
  transform: rotate(45deg);
}

.menu-btn:checked~.menu-icon:not(.steps) .navicon:before {
  top: 0;
}

.menu-btn:checked~.menu-icon:not(.steps) .navicon:after {
  bottom: 0;
}

.menu-btn:checked~.menu-icon .navicon {
  background: rgba(0, 0, 0, 0);
  transition: 0.2192s cubic-bezier(0.04, 0.04, 0.12, 0.96) 0.1008s;
}

/* Hamburger Menu Animation End */

/* Navbar Container */
.navtext-container {
  width: 100%;
  height: 52px;
  position: absolute;
  box-sizing: border-box;
  display: flex;
  justify-content: center;
  align-items: center;
}

/* Navbar Text */
.navtext {
  position: absolute;
  text-transform: uppercase;
  color: #ddd;
  letter-spacing: 4px;
  font-size: 20px;
}

.custom-logo-link img {
  width: 203px;
  height: 38px;
}

.site-title {
  display: none;
}

/* humber */
.header {
  display: flex;
  padding: 0 20px;
  background: #fff;
  justify-content: flex-start;
  align-items: center;
  position: relative;
  margin: 5px 0 0;
}

.logo {
  font-size: 24px;
  padding: 8px 0 0;
}

.logo a {
  background: url(assets/images/logo.svg);
  background-repeat: no-repeat;
  background-size: 141.3px 66px;
  width: 141.3px;
  height: 66px;
  display: block;
}

.concept {
  margin-left: 20px;
  font-size: .8rem;
  padding-top: 18px;
}

.concept p {
  margin: -8px 0 0;
}

.nav {
  position: fixed;
  right: 7px;
}

.btn-contact {
  position: absolute;
  right: 80px;
  top: 18px;
}

/* checkbox */
.drawer_hidden {
  display: none;
}

/* icon space */
.drawer_open {
  display: flex;
  height: 60px;
  width: 60px;
  justify-content: center;
  align-items: center;
  position: relative;
  z-index: 100;
  cursor: pointer;
}

/* icon */
.drawer_open span,
.drawer_open span:before,
.drawer_open span:after {
  content: '';
  display: block;
  height: 1px;
  width: 44px;
  border-radius: 3px;
  background: #1a20a0;
  transition: 0.5s;
  position: absolute;
}

/* line top */
.drawer_open span:before {
  bottom: 8px;
}

/* line bottom */
.drawer_open span:after {
  top: 8px;
}

/* clicked, line middle opacity */
#drawer_input:checked~.drawer_open span {
  background: rgba(255, 255, 255, 0);
}

/* rotate x */
#drawer_input:checked~.drawer_open span::before {
  bottom: 0;
  transform: rotate(45deg);
  background: #222;
}

#drawer_input:checked~.drawer_open span::after {
  top: 0;
  transform: rotate(-45deg);
  background: #222;
}

/* menu design */
.nav_content {
  width: 100%;
  height: 100%;
  position: fixed;
  top: 0%;
  right: 100%;
  z-index: 99;
  background: rgb(226, 255, 110, .9);
  transition: .5s;
  text-align: center;
  padding-top: 20px;
}

li.nav_item {
  padding: 10px 0;
}


/* menu black-color hidden */
.nav_list {
  list-style: none;
  padding: 5rem 0 0;
}

/* clicked icon, menu */
#drawer_input:checked~.nav_content {
  right: 0;
}

/* insta icon */
.btn-contact img {
  height: 30px;
}

/* wrapper */
.wrapper {
  display: flex;
  width: 98%;
  margin: 30px auto;

}
.single .wrapper {
  display: block;
  width: 80%;
  margin: 30px auto;
}

.single .wrapper {
  display: block;
  width: 100%;
  margin: 30px auto;
}

main {
  flex: 3;
  padding: 0 1% 0 0;
}

main.post-kinrin, main.post-recommend {
  width: 96%;
  margin: 50px 2%;
}

main.post-default {
  width: 96%;
  margin: 50px 2%;
}

main.post-kinrin .post-container {
  width: 90%;
  margin: 0 5%;
  background-color: #e5dfbb;
  border-radius: 30px;
  padding: 3% 5%;
}

main.post-recommend .post-container {
  width: 90%;
  margin: 0 5%;
  background-color: #eeeeee;
  border-radius: 30px;
  padding: 3% 5%;
}

main.post-default .post-container {
  width: 90%;
  margin: 0 5%;
  background-color: #eeeeee;
  border-radius: 30px;
  padding: 3% 5%;
}

main.post-kinrin .post.category-kinrin {
  background-color: #fff;
  padding: 60px 120px;
}

main.post-recommend .post.category-recommend {
  background-color: #fff;
  padding: 60px 120px;
}

main.post-default .post.category-gakudai-info {
  background-color: #fff;
  padding: 60px 120px;
}


main.post-kinrin h1.entry-title, main.post-kinrin h2.entry-subtitle {
  text-align: center;
}

main.post-default h1.entry-title, main.post-default h2.entry-subtitle {
  text-align: center;
}

main.post-recommend h1.entry-title, main.post-recommend h2.entry-subtitle {
  text-align: center;
}

.kinrin-logo {
  background: url(assets/images/kinrin-logo.svg);
  background-repeat: no-repeat;
  width: 200px;
  height: 200.3px;
  margin: 0 auto 30px;
}

.recommend-logo {
  background: url(assets/images/recommend-logo.svg);
  background-repeat: no-repeat;
  width: 254.43px;
  height: 40px;
  margin: 0 auto 30px;
}

.single aside {
  padding: 0 7%;
}

.kinrin-single-title, .recommend-single-title {
  text-align: center;
  font-weight: 700;
}

.kinrin-single-title p, .recommend-single-title p {
  margin: 0;
}

.kinrin-single-title span, .recommend-single-title span {
  display: inline-block;
  font-size: .8rem;
  margin-bottom: 20px;
}

.kinrin-single-title span a, .recommend-single-title span a {
  color: #888;
  margin: 0 0 20px;
}

@media screen and (min-width:1200px) {
  main.post-kinrin, main.post-recommend {
    width: 90%;
    margin: 80px 5%;
  }

  main.post-default, main.post-gaudai-info {
    width: 90%;
    margin: 80px 5%;
  }
  
  main.post-kinrin .post-container {
    width: 90%;
    margin: 0 5%;
    background-color: #e5dfbb;
    border-radius: 30px;
    padding: 30px 5%;
  }

  main.post-recommend .post-container {
    width: 90%;
    margin: 0 5%;
    background-color: #eeeeee;
    border-radius: 30px;
    padding: 30px 5%;
  }

  main.post-default .post-container {
    width: 90%;
    margin: 0 5%;
    background-color: #eeeeee;
    border-radius: 30px;
    padding: 30px 5%;
  }
  
  main.post-kinrin .post.category-kinrin, main.post-recommend .post.category-recommend {
    background-color: #fff;
    padding: 60px 180px;
  }

  main.post-default .post.category-gakudai-info {
    background-color: #fff;
    padding: 60px 180px;
  }
}

@media screen and (max-width:768px) {
  main.post-kinrin h2.entry-subtitle, main.post-recommend h2.entry-subtitle {
    margin: 2px 0 10px;
    font-size: 1.2rem;
    text-align: center!important;
  }

  main.post-default h2.entry-subtitle, main.post-default h2.entry-subtitle {
    margin: 2px 0 10px;
    font-size: 1.2rem;
    text-align: center!important;
  }

  main.post-kinrin h1, main.post-recommend h1 {
    font-size: 1.8rem
  }

  main.post-default h1 {
    font-size: 1.8rem
  }

  main.post-kinrin, main.post-recommend {
    width: 92%;
    margin: 80px 4%;
  }

  main.post-default {
    width: 90%;
    margin: 80px 5%;
  }
  
  main.post-kinrin .post-container {
    width: 100%;
    margin: 0;
    background-color: #e5dfbb;
    border-radius: 30px;
    padding: 30px 5%;
  }

  main.post-recommend .post-container {
    width: 90%;
    margin: 0 5%;
    background-color: #eeeeee;
    border-radius: 30px;
    padding: 30px 5%;
  }

  main.post-default .post-container {
    width: 96%;
    margin: 0 2%;
    background-color: #eeeeee;
    border-radius: 30px;
    padding: 30px 5%;
  }
  
  main.post-kinrin .post.category-kinrin, main.post-recommend .post.category-recommend {
    background-color: #fff;
    padding: 20px;
  }

  main.post-default .post.category-gakudai-info {
    background-color: #fff;
    padding: 20px;
  }

  .kinrin-logo {
    background: url(assets/images/kinrin-logo.svg);
    background-repeat: no-repeat;
    width: 100px;
    height: 100.15px;
    margin: 0 auto 20px;
  }

  .kinrin-logo {
    background: url(assets/images/kinrin-logo.svg);
    background-repeat: no-repeat;
    width: 152.66px;
    height: 124px;
    margin: 0 auto 20px;
  }

  .author-area {
    float: none;
  }
  .author-img {
    margin: 15px 15px 15px 15px;
    text-align: center!important;
  }
}

aside {
  flex: 1;
  padding: 0 0 0 0.5%;
}

/* index */
.home .site-main {}

.home .site-main ul {
  display: flex;
  flex-wrap: wrap;
}

.home .site-main ul li {
  width: calc(49% - 10px);
  margin: 0 5px 30px;
}

.home .top-image {
  width: calc(98% - 10px);
  margin: 0 5px 20px;
}

.home .top-image-sp {
  display: none;
}

.arrow-article {
  width: 98%;
}

.arrow-article a {
  background-image: url(assets/images/arrow-article.svg);
  background-repeat: no-repeat;
  width: 35px;
  height: 61.2px;
  background-size: 35px 61.2px;
  display: block;
  margin: 0 auto 20px;
}


@media screen and (max-width:767px) {
  .home .top-image {
    display: none;
  }

  .home .top-image-sp {
    width: calc(98% - 10px);
    margin: 0 10px 50px;
    display: block;
  }

  .arrow-article {
    width: 100%;
  }
}

/* category */

.category .site-main ul {
  display: flex;
  flex-wrap: wrap;
}

.category .site-main ul li {
  width: calc(49% - 10px);
  margin: 0 5px 30px;
}

/* tag */

.archive .site-main ul {
  display: flex;
  flex-wrap: wrap;
}

.archive .site-main ul li {
  width: calc(49% - 10px);
  margin: 0 5px 30px;
}

/* post */
.post,
.page {
  padding: 10px;
}

.page {
  padding: 0;
  margin-bottom: 0;
}

.nav-links .nav-previous a span.nav-subtitle {
  background: url(assets/uploads-2023-09/arrow-left.svg);
  background-repeat: no-repeat;
  width: 42px;
  height: 8px;
  background-size: 42px 8px;
  display: inline-block;
}

.nav-links .nav-previous a span.nav-title {
  padding: 0 0 0 2px;
}


.nav-links .nav-next a span.nav-subtitle {
  background: url(assets/uploads-2023-09/arrow-right.svg);
  background-repeat: no-repeat;
  width: 42px;
  height: 8px;
  background-size: 42px 8px;
  display: inline-block;
}

.nav-links .nav-next a span.nav-title {
  padding: 0 2px 0 0;
}

.article_txt h2 {
  margin: 0;
}

/* side */

aside {
  padding: 10px;
}

h2.wp-block-heading {
  font-weight: 300;
  margin: 0 0 10px;
}

input[type="search"] {
  color: #fff;
  border: 0;
  border-radius: 0;
  padding: 3px;
  border-bottom: 1px solid #222;
  outline: 0;
  background-color: #fff;
}

input[type="search"]:focus,
input[type="search"]:active,
input[type="search"]:hover {
  color: #666;
  border: 0;
  border-radius: 0;
  padding: 3px;
  border-bottom: 1px solid #222;
}

.wp-block-search__inside-wrapper button {
  border: 0;
  border-color: #ccc #ccc #bbb;
  border-radius: 0;
  background: #fff;
  color: rgba(0, 0, 0, 0.6);
  line-height: 1;
  padding: 0.6em 1em 0.4em;
  border-bottom: 1px solid #222;
  background: url(assets/uploads-2023-09/btn-search-1.svg);
  background-size: 20px 20px;
  background-repeat: no-repeat;
  background-position: center;
  margin-left: 0;
}

/* nybui: 送信ボタンの「検索」文字が虫眼鏡アイコンに重なっていたので文字を隠す（aria-label は残る） */
.wp-block-search__inside-wrapper button.wp-block-search__button {
  font-size: 0;
  color: transparent;
  width: 40px;
  min-width: 40px;
  height: 36px;
  padding: 0;
  cursor: pointer;
}

.wp-block-image.size-large p {
  margin: 5px 0 0;
  font-size: .8rem;
}

.wp-block-latest-posts.wp-block-latest-posts__list li,
.wp-block-categories-list.wp-block-categories li {
  line-height: 2rem;
}

/* footer */

footer {
  padding: 20px 0;
}

.site-footer {
  background: var(--town-accent, #e2ff6e);
}

.site-footer .site-info {
  text-align: center;
  font-size: .8rem;
}

.site-footer .site-logo {
  display: flex;
  justify-content: center;
  margin: 20px 0;
}

.site-footer .site-logo a {
  display: block;
  background: url(assets/images/logo.svg);
  background-repeat: no-repeat;
  width: 94.2px;
  height: 44px;
  background-size: 94.2px 44px;
}

.site-copyright {
  text-align: center;
  font-size: .8rem;
  padding: 2px 0;
}

.site-footer .menus {
  font-size: 1.2rem;
  margin: 2rem 0;
  display: flex;
  justify-content: center;
}

.site-footer .menus .menu-item {
  padding: 0 20px;
  position: relative;
  font-size: .8rem;
  line-height: 1.8rem;
}

.site-footer .menus .menu-item:after {
  position: absolute;
  top: 0;
  right: -8px;
  content: "\FF5C";
}

.site-footer .menus .menu-item:last-child {}

.identity-area .identity {
  margin: 4rem 0 2rem;
  display: flex;
  justify-content: center;
}

.identity-area .identity .id-item {
  padding: 0 40px 10px;
  position: relative;
  font-size: .8rem;
  line-height: 1.8rem;
}

.identity-area .identity .id-item img {
  max-width: 110px;
  height: 50px;
  object-fit: contain;
}

.identity-area .identity .id-item img.montfantome_logo {
  height: 60px;
}

.identity-area .identity .id-item:after {
  position: absolute;
  top: 0;
  right: -8px;
  content: "";
}

.site-footer .menus .menu-item:last-child {}

.site-footer .menus .menu-item:last-child:after {
  content: "";
}

/* archive - category */

.site-main .page-header {
  padding: 0 20px;
}

.category-kinrin .site-main .page-header {
  padding: 0 5px 0 5px;
  margin: 0 0 30px;
  width: 98%;
}

.archive .site-main .page-header {
  padding: 0 5px 0 5px;
  margin: 0 0 30px;
  width: 98%;
}

/* archive - cate - kinrin */
.category-kinrin .site-main .page-header h1 {
  font-size: 3em;
}

.navigation.post-navigation {
  padding: 0 20px;
}

.cat-links {
  margin-right: 10px;
}

.article_txt .article_data {
  padding: 0 0 0 2px;
}

.article_data .cat,
.cat-links a {
  background-color: rgba(34, 34, 34, 1);
  color: #fff;
  display: inline;
  font-size: 1.1em;
}

.archive.tag .page-title::before {
  content: "#";
}

.par-l {
  margin: 60px 0 0 0;
}

.post-credit {
  padding: 20px;
  border: 1px dotted #222222;
  margin-bottom: 2rem;
}

.shop-credit {
  width: 100%;
  padding: 40px;
  margin: 0;
  border: 1px dotted #888;
}

.shop-credit td {
  padding: 12px 10px;
}

.shop-credit td.ttl {
  width: 25%;
}

.cate-discription {
  line-height: 1.8rem;
  width: 96%;
  margin: 20px 2%;
}

.cate-discription .text-pc {
  display: block;
}

.cate-discription .text-sp {
  display: none;
}

/* search */

.page-content p {
  padding: 0 20px;
}

/* privacy */
#content .about .content.privacy,
#content .about .condition dd {
  font-size: .8rem;
  line-height: 2rem;
  padding-left: 20px;
}

#content .about .condition.privacy dt {
  line-height: 2em;
  font-weight: normal;
  padding-left: 20px;
}

#content .about .condition dt {
  line-height: 2em;
  margin-bottom: 10px;
  padding-left: 10px;
  border-left: 1px solid #000;
}

/* contact */

.contact-area {
  width: 100%;
}

.contact-area td {
  border-bottom: 1px solid #222;
  border-top: 1px solid #222;
  padding: 6px 4px 6px;
  font-size: .8rem;
}

.mail {
  width: 100%;
  margin: 8px 0 4px;
}

.mail img {
  width: 40%;
  margin: 0 30%;
}

.post-thumbnail img {
  width: 100%;
  max-width: 100%;
}

.img-credit {
  font-size: .8rem;
  text-align: center;
}

.tags-links a {
  background-color: #fff;
}

.tags-links a::before {
  content: "#";
}

.tag-list li {
  display: inline-block;
  padding-right: 5px;
}

.tag-list li::after {
  content: ;
}

@media (min-width: 768px) {
  #content .about .condition {
    margin: 40px 0 0 40px;
    font-size: .8rem;
  }

  /* post */
  .aligncenter {
    padding: 1.5em 0;
    width: 60%;
  }

  .aligncenter.vertical-img {
    width: 40%;
  }
}

.img-flex-2w {
  display: flex;
  padding: 20px 0 40px;
  flex-wrap: wrap;
}

.img-flex-2w img {
  width: 49%;
  padding: 0 0.5% 2%;
  margin-bottom: 0;
}

.img-flex-2w .wp-caption {
  width: 50% !important;
}

.img-flex-2w #attachment_553 {
  width: 40% !important;
}

.img-flex-2w #attachment_554 {
  width: 60% !important;
}

@media screen and (max-width:599px) {
  .img-flex-2w .wp-caption {
    width: 100% !important;
  }
  .img-flex-2w .aligncenter {
    padding: 0;
  }
}

.img-flex-2w .wp-caption img {
  width: 100%;
  padding: 0 0.5% 2%;
  margin-bottom: 0;
}

/*
.wp-caption {
  width: 100%!important;
}
*/

.wp-caption {
  width: 85% !important;
}

.wp-caption .wp-caption-text {
  margin: 0.8075em 0;
  font-size: .8rem;
}

@media screen and (max-width:768px) {

  .header {
    display: flex;
    padding: 0 20px;
    background: #fff;
    justify-content: flex-start;
    align-items: flex-start;
    position: relative;
    margin: 5px 0 0;
    flex-direction: column;
  }

  main {
    flex: 3;
    padding: 0;
  }

  .logo {
    font-size: 24px;
    padding: 18px 0 0;
  }

  .logo a {
    background: url(assets/images/logo.svg);
    background-repeat: no-repeat;
    background-size: 85.6px 40px;
    width: 85.6px;
    height: 40px;
    background-position: 0;
  }

  .concept {
    margin-left: 0;
    /* margin-top: 20px; */
    font-size: .8rem;
  }

  .concept p {
    font-size: .7rem;
  }

  .btn-contact {
    position: absolute;
    right: 80px;
    top: 16px;
  }

  .wrapper {
    flex-direction: column;
    margin: 50px auto 30px;
  }

  .home .site-main ul {
    flex-wrap: wrap;
  }

  .home .site-main ul li {
    width: 100%;
    margin: 0 10px 40px;
  }

  .category .site-main ul li {
    width: 100%;
    margin: 0 10px 30px;
  }

  .category-kinrin .site-main .page-header {
    padding: 0 5px 0 5px;
    margin: 0 0 30px;
    width: 100%;
  }

  .archive .site-main ul li {
    width: 100%;
    margin: 0 10px 30px;
  }

  .article_txt h2 {
    margin: 5px 0;
  }

  h2.entry-subtitle {
    margin: 2px 0 10px;
  }

  .identity-area .identity {
    margin: 4rem auto 2rem;
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    flex-direction: row;
  }

  .wp-block-image.size-large p {
    text-align: right;
  }

  input[type="search"] {
    -webkit-border-radius: 0;
    -webkit-appearance: none;
    -webkit-tap-highlight-color: rgba(0, 0, 0, 0);
  }

  .cate-discription {
    line-height: 1.8rem;
    width: 86%;
    margin: 20px 7%;
  }

  .cate-discription .text-pc {
    display: none;
  }

  .cate-discription .text-sp {
    display: block;
  }

  /* post */
  .aligncenter {
    padding: 1.5em 0;
  }

  .aligncenter.vertical-img {
    width: 65%;
    padding: 1.5em 0;
  }

  .shop-credit {
    padding: 12px;
    overflow-wrap: anywhere;
  }

  .wp-caption {
    width: 92% !important;
  }

}


/* 著作者カード */

.author-card {
  border: 1px solid #888;
  margin-top: 2rem;
  display: inline-block;
}

.author-name {
  background-color: var(--town-accent, #e2ff6e);
  color: #222;
  padding: 8px;
}

.author-area {
  float: left;
}

@media screen and (max-width: 768px) {
  .author-area {
      float: none;
  }
}

.author-img {
  margin: 15px 15px 15px 15px;
}

.author-info {
  font-size: 14px;
  line-height: 26px;
  padding: 15px;
  overflow: hidden;
}

.author-info a {
  color: #3366ff;
}

.author-info a:hover {
  color: #3366ff;
}

/* SNSアイコンの間隔 */
.author-sns {
  padding: 5px 0 22px 10px;
}

/* SNSアイコンの装飾 */
.btn-sns {
  /* nybui: アイコンは content.php のインライン SVG（currentColor） */
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  transition: .5s;
  text-decoration: none !important;
  color: #222;
}

.btn-sns svg {
  width: 24px;
  height: 24px;
  fill: currentColor;
}

/* アイコンホバー時のカラー */
.btn-sns:hover {
  color: #888 !important;
}

/* アイコンの位置 */
.btn-follow {
  display: flex;
  flex-flow: row wrap;
}

/* 各アイコン同士の余白 */
.btn-follow li {
  flex: 0 0 20%;
  text-align: center !important;
}

/* ボタンレイアウト調整 */
ul.btn-follow {
  list-style-type: none !important;
  padding: 0 !important;
  margin: 0
}

/* .著作者カード */


/* post list */

.wp-block-latest-posts.wp-block-latest-posts__list li,
.wp-block-categories-list.wp-block-categories li {
  line-height: 1.6rem;
  margin-bottom: 0.6rem;
}

.wp-block-latest-posts.wp-block-latest-posts__list li {
  position: relative;
  padding-left: 22px;
}

.wp-block-latest-posts.wp-block-latest-posts__list li::before {
  /* nybui: Font Awesome をやめ、円＋右向き山形をインライン SVG で描く（var(--town-accent2, #15bcaa)） */
  content: '';
  width: 16px;
  height: 16px;
  top: 0.25rem;
  left: 0;
  position: absolute;
  /* 円は背景色（町の色）、山形は白の SVG を重ねる。mask だと山形が抜けないので使わない */
  background-color: var(--town-accent2, #15bcaa);
  border-radius: 50%;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'><path d='M6.5 4.5 10 8l-3.5 3.5' fill='none' stroke='%23fff' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/></svg>");
  background-repeat: no-repeat;
  background-position: center;
  background-size: 16px 16px;
}

.wp-block-categories-list.wp-block-categories li a {
  background-color: #222;
  color: #fff;
}

/* pagenation */
.pagination {
  display: flex;
  justify-content: center;
  margin-top: 60px;
}

a.page-numbers,
span.page-numbers {
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  color: var(--town-accent2, #15bcaa);
  background-color: #fff;
  border: 1px solid var(--town-accent2, #15bcaa);
  width: 40px;
  height: 40px;
  border-radius: 50%;
  margin: 0 8px;
  transition: color 0.3s ease, background 0.3s ease;
}

.prev.page-numbers,
.next.page-numbers,
.page-numbers.dots {
  border: none;
  margin: 0;
}

.prev.page-numbers .nav-prev {
  background: url(assets/uploads-2023-09/arrow-left.svg);
  background-repeat: no-repeat;
  width: 42px;
  height: 8px;
  background-size: 42px 8px;
}

.next.page-numbers .nav-next {
  background: url(assets/uploads-2023-09/arrow-right.svg);
  background-repeat: no-repeat;
  width: 42px;
  height: 8px;
  background-size: 42px 8px;
}

.next.page-numbers {
  margin-right: 10px;
}

.prev.page-numbers {
  margin-left: 10px;
}

a.page-numbers:hover {
  background-color: var(--town-accent2, #15bcaa);
  border: 1px solid var(--town-accent2, #15bcaa);
  color: #fff;
}

a.prev.page-numbers:hover,
a.next.page-numbers:hover {
  background-color: #fff;
  color: var(--town-accent2, #15bcaa);
  border: none;
}

.page-numbers.current {
  color: #fff;
  background-color: var(--town-accent2, #15bcaa);
  border: 1px solid var(--town-accent2, #15bcaa);
}

@media screen and (max-width: 768px) {
  .pagination {
    display: flex;
    justify-content: center;
    margin-top: 20px;
    margin-bottom: 40px;
  }

  .wp-embedded-content {
    height: revert-layer !important;
  }

  .wp-embed-featured-image.square {
    float: none !important;
    max-width: 100% !important;
    margin-right: 0;
  }
}


/* h2 h3.. */
.entry-content h2 {
  font-size: 2rem;
  border-top: 3px solid #767a92;
  border-bottom: 3px solid #767a92;
  padding: 0.5em 0;
  margin: 3em 0 0.8em;
}

.post-kinrin .entry-content h2 {
  font-size: 1.6rem;
  border-top: none;
  border-bottom: none;
  padding: 0.5em 0 0;
  margin: 2em 0 0em;
  text-align: center;
}

.entry-content h3 {
  font-size: 1.4rem;
  border-bottom: 2px dashed var(--town-accent2, #15bcaa);
  display: inline-block;
  padding: 0 0 0 22px;
  background-image: url(assets/images/arrow-icon.svg);
  background-repeat: no-repeat;
  background-position: 0 9px;
  background-size: 12px;
  margin: 1.2rem 0 0;
}

.entry-content iframe {
  width: 100%;
}

/* 引用 */

blockquote {
  padding: 1.3rem 2rem;
  font-size: 1.5rem;
  border-left: 0;
  background-color: #eee;
  margin: 0 0 4rem;
}

blockquote p,
blockquote footer {
  font-size: .8rem !important;
  line-height: 1.6rem;
  font-weight: 400;
  margin-bottom: 20px !important;
}

/* list */

.post .entry-content ul {
  border: 1px dotted var(--town-accent2, #15bcaa);
  padding: 10px;
  margin: 0 0 20px;
}

.post .entry-content li {
  line-height: 2rem;
}


/* 目次 */
#toc_container {
  width: 100%;
  background: #eee;
  border: none;
  padding: 0;
}

#toc_container p.toc_title {
  background-color: #D4E46E;
  padding: 0.5rem;
}

#toc_container p.toc_title+ul.toc_list {
  margin: 0;
  padding: 1.5rem 1.5rem 1rem;
}

#toc_container.no_bullets ul li {
  margin-bottom: 1rem;
}

#toc_container.no_bullets ul li li {
  margin-bottom: 0.5rem;
}

.toc_list li a {
  font-size: 1.2rem;
  color: #222;
  font-weight: bold;
}

.toc_list li ul li a {
  font-size: 1rem;
  font-weight: 500;
  padding: 0 0 0 18px;
  background-image: url(assets/images/arrow-icon.svg);
  background-repeat: no-repeat;
  background-position: 0 3px;
  background-size: 10px;
}

.post-kinrin #toc_container {
  display: none;
}

@media screen and (max-width:599px) {
  #toc_container {
    width: 100%!important;
  }
  #toc_container p.toc_title+ul.toc_list {
    margin: 0;
    padding: 1.5rem 0.7rem 1rem;
  }
}

@media screen and (min-width:600px) {
  #toc_container {
    width: 100%!important;
  }
}


.post .entry-content .no_bullets ul {
  border: none;

}

.entry-content .no_bullets ul {
  border: none;
}

.entry-content .no_bullets ul li {
  border-bottom: none;
}

/* table */

table {
  font-size: .8rem;
  border-collapse:  collapse;
  margin: 20px 0;
}

table td {
  border: 1px solid var(--town-accent2, #15bcaa);
  padding: 5px;
}

.table-color {
  background-color: #ccc;;
}

/* banner */

.side-banner {
  display: flex;
  justify-content: space-between;
}

.home .side-banner {
  display: block;
}

figure {
  width: 49%;
}

.home figure {
  width: 100%;
}

@media screen and (max-width:768px) {
  .side-banner {
    flex-direction: column;
  }

  figure {
    width: 100%;
  }
}

/* 1) wrapper を画像幅にフィットさせる */
.post-thumbnail-wrapper {
  position: relative;
  display: inline-block;   /* ブロック→インラインブロックに */
  vertical-align: top;     /* 下にずれるのを防ぐ */
}

/* 2) 画像自体もブロック化 */
.post-thumbnail-wrapper img {
  display: block;
  width: 100%;
  height: auto;
}

/* 3) 右下に赤三角バッジ */
.limited-badge {
  position: absolute;
  bottom: 0;
  right: 0;
  width: 60px;    /* お好みで調整 */
  height: 60px;
  background: #e30b17;
  clip-path: polygon(100% 100%, 100% 0, 0 100%);
  pointer-events: none;
  z-index: 5;
}

/* 4) テキストは水平に右寄せ */
.limited-badge span {
  position: absolute;
  bottom: 6px;
  right: 6px;
  transform: none;
  color: #fff;
  font-size: 0.65em;
  line-height: 1.2em;
  white-space: nowrap;
}

/* =========================================================
   nybui: 施設ページ・町のハブ・一覧・パンくず（2026-09-15）
   ========================================================= */
.breadcrumb { font-size: .75rem; margin: 0 0 16px; color: #888; }
.breadcrumb ol { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 0 .4em; }
.breadcrumb li + li::before { content: '/'; margin-right: .4em; color: #bbb; }
.breadcrumb a { color: #888; }

.card-list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, 1fr); gap: 28px; }
@media screen and (max-width: 768px) { .card-list { grid-template-columns: 1fr; } }
.card-list .article-item { margin: 0; }
.town-label { display: inline-block; font-size: .7rem; color: #888; margin: 0 0 0 .6em; }
.archive-empty { color: #888; }

.spot-kicker { font-size: .75rem; color: #888; margin: 0 0 6px; }
.spot-status { display: inline-block; font-size: .75rem; padding: 2px 10px; border-radius: 999px; background: var(--town-accent, #e2ff6e); color: #222; margin: 6px 0 0; }
.spot-status--closed_temp { background: #ffe08a; }
.spot-status--closed { background: #ddd; color: #666; }
.spot-badge span { font-size: .7rem; }
.spot-status-inline { font-size: .7rem; padding: 1px 8px; border-radius: 999px; background: #ddd; color: #666; margin-left: .4em; }
.spot-status-inline.spot-status--closed_temp { background: #ffe08a; color: #222; }

.spot-table { width: 100%; border-collapse: collapse; margin: 24px 0 8px; font-size: .9rem; }
.spot-table th, .spot-table td { text-align: left; vertical-align: top; padding: 10px 8px; border-bottom: 1px solid #e5e5e5; }
.spot-table th { width: 7em; font-weight: 600; color: #555; white-space: nowrap; }
.spot-table .src { font-size: .7rem; color: #888; margin-left: .5em; }
.spot-dates { font-size: .75rem; color: #888; margin: 0; }
.spot-dates span + span { margin-left: 1em; }
.spot-note { font-size: .75rem; color: #888; margin: 4px 0 0; }
.spot-map { margin: 24px 0; }
.spot-map iframe { width: 100%; height: 320px; border: 0; display: block; }
.spot-map p { font-size: .8rem; margin: 6px 0 0; }
.spot-related-list, .hub-post-list, .hub-spot-list, .hub-links ul { list-style: none; margin: 0; padding: 0; }
.spot-related-list li, .hub-post-list li, .hub-spot-list li, .hub-links li { padding: 6px 0; border-bottom: 1px solid #eee; font-size: .9rem; }
.hub-post-list time { font-size: .7rem; color: #999; margin-left: .6em; }
.spot-back { font-size: .85rem; margin-top: 24px; }

.town-hub .entry-content { margin-bottom: 8px; }
.hub-section { margin: 36px 0 0; }
.section-title { font-size: 1.1rem; margin: 0 0 12px; display: flex; align-items: baseline; gap: .8em; }
.section-title small { font-size: .7rem; color: #999; font-weight: normal; }
.section-title .more { font-size: .75rem; color: #888; text-decoration: underline; }
.hub-kind { font-size: .85rem; color: #555; margin: 16px 0 4px; }
.spot-table, .spot-table th, .spot-table td { border-left: 0; border-right: 0; border-top: 0; }
.spot-table tr:first-child th, .spot-table tr:first-child td { border-top: 1px solid #e5e5e5; }

/* nybui: 町ごとの色（変数は inc/town-style.php が出す） */
.nav_item.is-current a { border-bottom: 2px solid var(--town-accent2, #15bcaa); }
.town-hub .entry-title { padding-left: 14px; border-left: 6px solid var(--town-accent, #e2ff6e); }
.spot-kicker::before { content: ''; display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: var(--town-accent2, #15bcaa); margin-right: 6px; vertical-align: middle; }
.town-label { color: var(--town-accent2, #15bcaa); }

/* nybui: 町のサブメニューとサイドバー */
.town-nav { background: var(--town-accent, #e2ff6e); margin: 0 0 24px; display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; }
.town-nav ul { list-style: none; margin: 0; padding: 0 12px; display: flex; flex-wrap: wrap; gap: 0 4px; }
.town-nav__others { font-size: .75rem; }
.town-nav__others .town-nav__label { padding: 10px 6px 10px 12px; color: #555; }
.town-nav__others li a { padding: 10px 8px; }
.town-nav--select { background: #f3f3f3; }
.town-nav--select li a { font-weight: 600; }
.town-nav li a { display: block; padding: 10px 12px; font-size: .85rem; color: #222; text-decoration: none; border-bottom: 2px solid transparent; }
.town-nav li.is-current a { border-bottom-color: var(--town-accent2, #15bcaa); font-weight: 600; }
.town-nav li a:hover { border-bottom-color: #222; }
.town-nav .town-nav__town { margin-right: 28px; }
.town-nav .town-nav__town a { font-weight: 700; }
@media screen and (max-width: 768px) {
  .town-nav ul { padding: 0 6px; overflow-x: auto; flex-wrap: nowrap; -webkit-overflow-scrolling: touch; }
  .town-nav li a { white-space: nowrap; padding: 10px 10px; font-size: .8rem; }
}
.side-list { list-style: none; margin: 0; padding: 0; }
.side-list li { padding: 5px 0; border-bottom: 1px solid #eee; font-size: .9rem; }
.side-list li a { color: #444; }
.side-town h2 a, .side-towns h2 a { color: inherit; text-decoration: none; border-bottom: 3px solid var(--town-accent, #e2ff6e); }
/* nybui: スマホでヘッダーが固定高（68px）からはみ出してサブメニューと重なるのを直す */
@media screen and (max-width: 768px) {
  .header { height: auto; padding-bottom: 12px; }
  .wrapper { margin: 30px auto 30px; }
  .town-nav { margin-top: 14px; }
}
.widget_search .wp-block-search__inside-wrapper { display: flex; align-items: flex-end; }
.widget_search .wp-block-search__input { flex: 1 1 auto; min-width: 0; }

/* nybui: ヘッダーの高さを内容に合わせる（68px 固定だとロゴ 74px がはみ出してサブメニューと重なる） */
.header { height: auto; min-height: 68px; padding-bottom: 6px; }
.town-nav { margin-top: 22px; } /* ロゴとの間を空ける */
@media screen and (max-width: 768px) {
  .town-nav__others { width: 100%; } /* スマホは 2 行目に「他の町」 */
}

.area-label { font-size: .7rem; color: #888; margin-left: .4em; }

/* nybui: 本文の写真（PC は 2 列、スマホは 1 列） */
.photo-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; margin: 20px 0 28px; }
.photo-grid figure.photo { margin: 0; }
.photo-grid figure.photo:only-child { grid-column: 1 / -1; max-width: 720px; }
figure.photo img { width: 100%; height: auto; display: block; border-radius: 2px; }
figure.photo figcaption { font-size: .72rem; color: #888; margin-top: 6px; line-height: 1.5; }
@media screen and (max-width: 768px) { .photo-grid { grid-template-columns: 1fr; gap: 14px; } }
/* 学大テーマ由来の figure { width: 49% } をグリッド内では打ち消す */
.entry-content .photo-grid figure.photo, .photo-grid figure.photo { width: 100%; max-width: none; margin: 0; }
/* 施設ページのアイキャッチ: 中央に 70% 幅、状態バッジとの間を空ける */
.spot-single .spot-status { margin-bottom: 6px; }
.spot-single .post-thumbnail { width: 70%; margin: 22px auto 28px; }
.spot-single .post-thumbnail img { width: 100%; height: auto; display: block; }
@media screen and (max-width: 768px) { .spot-single .post-thumbnail { width: 100%; margin: 16px 0 20px; } }

/* nybui 2026-09-16: ヘッダーの町タブ・パンくずを wrapper の外へ・表の線を白・本文の背景を町の色に */
.pre-wrapper { margin: 0 0 18px; }
.pre-wrapper .breadcrumb { margin: 0 0 6px; }
.pre-wrapper .spot-kicker { margin: 0; }
.spot-table th, .spot-table td { border-bottom: 1px solid #ffffff; }
.spot-table tr:first-child th, .spot-table tr:first-child td { border-top: 1px solid #ffffff; }
main.post-default .post-container { background-color: #f5f5f5; }
.footer-towns { margin-bottom: 6px; }
.footer-towns .menu-item a { font-weight: 700; }
@media screen and (max-width: 768px) {
  main.post-default { margin: 24px 3%; }
  main.post-default .post-container { background-color: #f5f5f5; }
}


/* ===== nybui 2026-09-16: main 幅 94%（施設・ハブ共通） ===== */
main.post-default { width: 94%; margin-left: 3%; margin-right: 3%; }
@media screen and (min-width: 1200px) { main.post-default { width: 94%; margin: 60px 3%; } }
@media screen and (max-width: 768px) { main.post-default { width: 94%; margin: 24px 3%; } }

/* ===== 町のハブ: 施設と同じカード型。差別化は 白いカード＋町の色の見出し帯＋要点チップ＋全幅の写真 ===== */
.page-template-page-town .wrapper, .page-template-page-town-php .wrapper { flex-direction: column; }
main.town-hub .hub-container { background: #fff; border: 1px solid #e8e8e8; }
.hub-hero { background: color-mix(in srgb, var(--town-accent, #e2ff6e) 45%, #fff); border-radius: 20px; padding: 28px 32px 24px; margin: 0 0 28px; }
.hub-label { font-size: .75rem; letter-spacing: .08em; color: #555; margin: 0 0 8px; }
main.town-hub .hub-hero h1.entry-title { text-align: left; border-left: 0; padding-left: 0; margin: 0 0 16px; }
.hub-chips { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.hub-chips li { background: #fff; border-radius: 999px; padding: 4px 14px; font-size: .8rem; color: #333; border: 1px solid color-mix(in srgb, var(--town-accent2, #15bcaa) 35%, #fff); }
figure.hub-hero-image { width: 100%; margin: 0 0 36px; }
figure.hub-hero-image img { width: 100%; height: auto; display: block; border-radius: 14px; }
figure.hub-hero-image figcaption { font-size: .72rem; color: #888; margin-top: 6px; }
main.town-hub .hub-section { margin-top: 44px; }
@media screen and (max-width: 768px) {
  .hub-hero { padding: 20px 18px 18px; border-radius: 16px; margin-bottom: 22px; }
  main.town-hub .hub-container { padding: 22px 4%; }
  figure.hub-hero-image { margin-bottom: 26px; }
}

/* ===== 目次: 行間を広げ、矢印を細い山形に（全ページ共通） ===== */
#toc_container { background: #fafafa !important; border-radius: 14px; overflow: hidden; margin: 28px 0 8px; }
#toc_container p.toc_title { background-color: var(--town-accent, #e2ff6e) !important; padding: .65rem 1.2rem !important; font-weight: 700; margin: 0; }
#toc_container p.toc_title+ul.toc_list { padding: 1.3rem 1.6rem 1.1rem !important; }
#toc_container.no_bullets ul li { margin-bottom: 1.1rem; line-height: 1.75; }
#toc_container.no_bullets ul li li { margin: .6rem 0 0; }
#toc_container ul.toc_list li ul { margin: .6rem 0 0 .2rem; padding: 0 0 0 1rem; border-left: 2px solid color-mix(in srgb, var(--town-accent2, #15bcaa) 30%, #fff); }
.toc_list li a { font-size: 1.05rem; }
.toc_list li ul li a { background-image: none !important; padding: 0 !important; font-size: .95rem; }
.toc_list li ul li a::before { content: ''; display: inline-block; width: 6px; height: 6px; border-right: 2px solid var(--town-accent2, #15bcaa); border-bottom: 2px solid var(--town-accent2, #15bcaa); transform: rotate(-45deg); margin: 0 .7em .15em 0; }
.toc_number { color: #888; font-weight: 500; margin-right: .3em; }
@media screen and (max-width: 768px) { #toc_container p.toc_title+ul.toc_list { padding: 1.1rem 1rem 1rem !important; } }

/* ===== h3 の ▶ を町の色の縦バーに（全ページ共通） ===== */
.entry-content h3 { background-image: none !important; padding-left: 16px !important; position: relative; }
.entry-content h3::before { content: ''; position: absolute; left: 0; top: .2em; bottom: .35em; width: 5px; border-radius: 3px; background: var(--town-accent2, #15bcaa); }

/* ===== 町のハブの wrapper と aside を施設ページ（.single）と同じ組みに ===== */
.page-template-page-town-php .wrapper, .page-template-page-town .wrapper { display: block; width: 80%; margin: 30px auto; }
.page-template-page-town-php .wrapper, .page-template-page-town .wrapper { display: block; width: 100%; margin: 30px auto; }
.page-template-page-town-php aside, .page-template-page-town aside { padding: 0 7%; }
/* 1 枚だけの写真は大きくなりすぎるので幅を抑えて中央に（施設・ハブ・記事共通） */
.entry-content .photo-grid figure.photo:only-child, .photo-grid figure.photo:only-child { max-width: 520px; justify-self: center; }
@media screen and (max-width: 768px) { .entry-content .photo-grid figure.photo:only-child, .photo-grid figure.photo:only-child { max-width: 100%; } }
/* 記事の副題は見出しではないので、大きさだけ従来どおりに（施設ページの h2.entry-subtitle と同じ見た目） */
p.entry-subtitle { font-size: 1.4rem; text-align: center; margin: 2px 0 18px; font-weight: 400; }
@media screen and (max-width: 768px) { p.entry-subtitle { font-size: 1.2rem; text-align: center; } }
/* 学大テーマの .archive/.category .site-main ul li { width:100% } がグリッドの子に効いて 1 列になるのを打ち消す */
.card-list .article-item { width: auto; margin: 0; }
@media screen and (max-width: 768px) { .card-list .article-item { width: auto; margin: 0; } }
/* 学大テーマの `.archive .site-main ul { display:flex }` は詳細度 0,2,1 で `.card-list`（0,1,0）に勝つ。
   同じ強さのセレクタで上書きする */
.archive .site-main ul.card-list,
.category .site-main ul.card-list,
.home .site-main ul.card-list,
.site-main ul.card-list { display: grid; grid-template-columns: repeat(2, 1fr); gap: 28px; }
.archive .site-main ul.card-list li,
.category .site-main ul.card-list li,
.home .site-main ul.card-list li,
.site-main ul.card-list li { width: auto; margin: 0; }
@media screen and (max-width: 768px) {
  .archive .site-main ul.card-list,
  .category .site-main ul.card-list,
  .home .site-main ul.card-list,
  .site-main ul.card-list { grid-template-columns: 1fr; }
}

/* 2 枚並びの写真: 高さを短い方に揃え、長い方は下を切る（高さの計算は functions.php の小さなスクリプト） */
.photo-grid figure.photo img { object-fit: cover; object-position: center top; }

/* 一覧カードのサムネイルは縦横比を 3:2 に固定して高さを揃える。
   元画像が 4:3 でも 16:9 でも、はみ出した分を上下で切る */
.card-list .post-thumbnail-wrapper {
  display: block;
  aspect-ratio: 3 / 2;
  overflow: hidden;
}
.card-list .post-thumbnail-wrapper img {
  height: 100%;
  object-fit: cover;
  object-position: center;
}

/* nybui 2026-11-06: 正方形サムネのタイル（ハブ・一覧）。インスタのように選べる並び。PC 3 列・スマホ 2 列 */
.archive .site-main ul.tile-grid, .category .site-main ul.tile-grid, .site-main ul.tile-grid, .tile-grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px 14px; }
.archive .site-main ul.tile-grid li, .category .site-main ul.tile-grid li, .site-main ul.tile-grid li, .tile-grid li.tile { width: auto; margin: 0; padding: 0; }
.tile a { display: block; color: inherit; text-decoration: none; }
.tile-thumb { position: relative; aspect-ratio: 1 / 1; overflow: hidden; border-radius: 6px; background: #eee; }
.tile-thumb img { width: 100%; height: 100%; object-fit: cover; object-position: center; display: block; transition: transform .25s ease; }
.tile a:hover .tile-thumb img { transform: scale(1.03); }
.tile-badge { position: absolute; left: 6px; top: 6px; background: rgba(40,40,40,.85); color: #fff; font-size: .65rem; padding: 2px 7px; border-radius: 3px; }
.tile-name { font-size: .85rem; font-weight: 600; line-height: 1.4; margin: 8px 0 0; color: #222; }
.tile-meta { font-size: .7rem; color: #777; margin: 2px 0 0; line-height: 1.4; }
.tile[hidden] { display: none; }
.hub-filter { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 16px; }
.hub-filter button { border: 1px solid #cfcfcf; background: #fff; color: #333; border-radius: 999px; padding: 6px 14px; font-size: .8rem; line-height: 1.4; cursor: pointer; font-family: inherit; }
.hub-filter button.is-active { background: var(--town-accent2, #15bcaa); border-color: transparent; color: #fff; }
.hub-tiles-empty { font-size: .85rem; color: #777; }
main.town-hub .hub-section.hub-tiles { margin-top: 28px; }
@media screen and (max-width: 768px) {
  .archive .site-main ul.tile-grid, .category .site-main ul.tile-grid, .site-main ul.tile-grid, .tile-grid { grid-template-columns: repeat(2, 1fr); gap: 14px 10px; }
  .tile-name { font-size: .8rem; }
}
/* 広い括りの町名はメニューで長くなるので、ドロワーとまちを選ぶ帯の文字をやや小さく */
.nav_list li.nav_item a { font-size: .95rem; }
.town-nav--select li a { font-size: .78rem; font-weight: 600; }
/* タイル群の下、写真と本文との間を空ける（2026-11-06 ユーザー指摘） */
main.town-hub .hub-section.hub-tiles { margin-bottom: 44px; }
main.town-hub .hub-section.hub-tiles + figure.hub-hero-image { margin-top: 44px; }
@media screen and (max-width: 768px) { main.town-hub .hub-section.hub-tiles { margin-bottom: 30px; } main.town-hub .hub-section.hub-tiles + figure.hub-hero-image { margin-top: 30px; } }
/* トップのまちタイル（2026-11-06）: PC 2 列・スマホ 1 列。写真の無い町は町の色の面に名前 */
.home .site-main ul.tile-grid--towns, .tile-grid--towns { grid-template-columns: repeat(2, 1fr); gap: 22px 18px; margin-bottom: 44px; }
.tile--town .tile-thumb { aspect-ratio: 3 / 2; border-radius: 10px; }
.tile-thumb--blank { display: flex; align-items: center; justify-content: center; }
.tile-thumb--blank span { font-size: 1.4rem; font-weight: 700; color: #333; letter-spacing: .04em; }
.tile--town .tile-name { font-size: .95rem; }
.home-recent .section-title { margin: 0 0 16px; }
@media screen and (max-width: 768px) {
  .home .site-main ul.tile-grid--towns, .tile-grid--towns { grid-template-columns: 1fr; gap: 18px; margin-bottom: 32px; }
}
/* 町名の表示「小川町周辺」＋ホバーで浮くチップ（括弧内の地域）。ホバーの無い端末では小さく添える（2026-11-06） */
.has-tip { position: relative; }
.town-tip { display: none; }
@media (hover: hover) {
  .has-tip:hover .town-tip, .has-tip:focus-visible .town-tip { display: block; position: absolute; left: 50%; transform: translateX(-50%); bottom: calc(100% + 4px); z-index: 20; white-space: nowrap; background: #222; color: #fff; font-size: .7rem; font-weight: 400; line-height: 1.4; padding: 4px 10px; border-radius: 999px; pointer-events: none; }
  .has-tip:hover .town-tip::after, .has-tip:focus-visible .town-tip::after { content: ''; position: absolute; left: 50%; top: 100%; transform: translateX(-50%); border: 4px solid transparent; border-top-color: #222; }
  .nav_list .has-tip:hover .town-tip, .nav_list .has-tip:focus-visible .town-tip { left: 0; transform: none; bottom: auto; top: calc(100% - 2px); }
  .nav_list .has-tip:hover .town-tip::after, .nav_list .has-tip:focus-visible .town-tip::after { left: 16px; top: auto; bottom: 100%; transform: none; border-top-color: transparent; border-bottom-color: #222; }
}
@media (hover: none) {
  .town-tip { display: inline; font-size: .7em; font-weight: 400; color: #666; margin-left: .5em; }
  .town-nav--select .town-tip { display: none; }
}
.nav_list li.nav_item a { font-size: 1rem; }
.town-nav--select li a { font-size: .85rem; }

/* ドロワー: 半透明で下のタイルと町の帯が透けて読みづらかった（2026-11-08 ユーザー指摘）。白の不透明にして最前面へ。長くなっても縦スクロールできるように */
.nav_content { background: #e2ff6e; z-index: 9990; overflow-y: auto; -webkit-overflow-scrolling: touch; padding-bottom: 40px; } /* 元の黄緑を不透明で（ユーザー指示 11-08） */
.drawer_open { z-index: 9991; }
.nav_list li.nav_item a { color: #222; text-decoration: none; }
.nav_content .tag-list { padding: 0 24px; }
/* .nav は position:fixed で独自の重なり順を作るので、親自体を最前面に。これが無いと帯の has-tip やタイルの position:relative がドロワーの上に描かれる */
.nav { z-index: 9990; }
