/*!
Theme Name: Cocoon Child
Description: Cocoon専用の子テーマ
Theme URI: https://wp-cocoon.com/
Author: わいひら
Author URI: https://nelog.jp/
Template: cocoon-master
Version: 1.1.3
*/

/* Cocoonデモ用: 既存サンプルMVをトップページでは使わない */
body.front-top-page {
  background: #fffdf8;
}

body #navi .item-label,
body #navi .search-menu-button {
  color: #182b45 !important;
  font-weight: 700;
}

body #navi a:hover .item-label,
body #navi .search-menu-button:hover {
  color: #b99b58 !important;
}

body #navi .menu-header {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  flex-wrap: nowrap;
  gap: 0 28px;
  padding-right: 24px;
}

html body #header-container #navi .menu-header > li > a {
  display: inline-flex;
  align-items: center;
  position: relative;
  min-height: 42px;
  padding-inline: 0;
  border: 0 !important;
  border-bottom: 0 !important;
  box-shadow: none !important;
  background: transparent !important;
  background-image: none !important;
  text-decoration: none !important;
  text-decoration-line: none !important;
}

body #navi .caption-wrap,
body #navi .item-label {
  display: inline-block !important;
  line-height: 1.4 !important;
  border: 0 !important;
  border-bottom: 0 !important;
  box-shadow: none !important;
  background: transparent !important;
  background-image: none !important;
  text-decoration: none !important;
  text-decoration-line: none !important;
}

body #navi .item-description,
body #navi .menu-description,
body #navi .sub-caption,
body #navi .caption-wrap > :not(.item-label),
body #navi .menu-header > li > a small,
body #navi .menu-header > li > a .description,
body #navi .menu-header > li > a [class*="description"],
body #navi .menu-header > li > a [class*="desc"] {
  display: none !important;
  visibility: hidden !important;
  width: 0 !important;
  height: 0 !important;
  margin: 0 !important;
  padding: 0 !important;
  overflow: hidden !important;
}

body #navi .menu-header > li,
body #navi .menu-header > li:hover {
  width: auto !important;
  flex: 0 0 auto !important;
  padding: 0 !important;
  border: 0 !important;
  border-bottom: 0 !important;
  box-shadow: none !important;
  background-image: none !important;
}

@media (min-width: 1024px) {
  body #header-container,
  body #header-container-in,
  body #header,
  body #header-in,
  body #navi,
  body #navi-in,
  body #navi .menu-header,
  body #navi .menu-header > li {
    overflow: visible !important;
  }

  body #navi .menu-header > li.menu-item-has-children {
    position: relative;
  }

  body #navi .menu-header > li > .sub-menu {
    position: absolute;
    top: calc(100% - 1px);
    left: 50%;
    z-index: 1000;
    display: block !important;
    min-width: 210px;
    margin: 0;
    padding: 10px;
    list-style: none;
    background: #fffdf8 !important;
    border: 1px solid #eadfca;
    border-radius: 15px;
    box-shadow: 0 14px 32px rgba(24, 43, 69, .12);
    opacity: 0;
    visibility: hidden;
    transform: translate(-50%, 4px);
    transition: opacity .18s ease, transform .18s ease, visibility .18s ease;
    pointer-events: none;
  }

  body #navi .menu-header > li:hover > .sub-menu,
  body #navi .menu-header > li:focus-within > .sub-menu {
    opacity: 1;
    visibility: visible;
    transform: translate(-50%, 0);
    pointer-events: auto;
  }

  body #navi .menu-header > li > .sub-menu li {
    width: 100% !important;
    margin: 0;
    padding: 0;
    background: transparent !important;
  }

  body #navi .menu-header > li > .sub-menu a {
    display: block !important;
    width: 100%;
    min-height: 0;
    padding: 10px 12px !important;
    color: #182b45 !important;
    font-weight: 700;
    line-height: 1.5;
    text-align: left;
    white-space: nowrap;
    background: transparent !important;
    border: 0 !important;
    border-radius: 10px;
    box-shadow: none !important;
    text-decoration: none !important;
  }

  body #navi .menu-header > li > .sub-menu a:hover,
  body #navi .menu-header > li > .sub-menu a:focus {
    color: #182b45 !important;
    background: #fbf7ee !important;
  }
}

body #navi .menu-header > li::before,
body #navi .menu-header > li::after,
html body #header-container #navi .menu-header > li > a::before,
html body #header-container #navi .menu-header > li > a::after,
html body #header-container #navi .menu-header > li > a .caption-wrap::before,
html body #header-container #navi .menu-header > li > a .caption-wrap::after,
html body #header-container #navi .menu-header > li > a .item-label::before {
  content: none !important;
  display: none !important;
  border: 0 !important;
  border-bottom: 0 !important;
  box-shadow: none !important;
}

body #navi .menu-header > li > a .item-label {
  position: relative;
  display: inline-block;
  padding-bottom: 7px;
  white-space: nowrap;
  border: 0 !important;
  border-bottom: 0 !important;
  box-shadow: none !important;
  background: transparent !important;
  background-image: none !important;
  text-decoration: none !important;
  text-decoration-line: none !important;
}

body #navi .menu-header > li > a .item-label::after {
  content: "" !important;
  display: block !important;
  position: absolute;
  right: -3px;
  bottom: 0;
  left: -3px;
  height: 6px !important;
  background: #eee5cf !important;
  background-image: none !important;
  border: 0 !important;
  border-radius: 999px;
  box-shadow: none !important;
  opacity: 0;
  transition: opacity .18s ease-out;
  pointer-events: none;
}

body #navi .menu-header > li > a:hover .item-label::after {
  opacity: 1;
  animation: onowa-marker-draw .38s cubic-bezier(.22, .8, .32, 1) both;
}

body #navi .menu-header > li.current-menu-item > a .item-label::after {
  opacity: 1;
}

@keyframes onowa-marker-draw {
  from {
    clip-path: inset(0 100% 0 0 round 999px);
  }
  to {
    clip-path: inset(0 0 0 0 round 999px);
  }
}

html body #header-container #navi .navi-in a:is(:hover, :focus, :active),
html body #header-container #navi .navi-in a:is(:hover, :focus, :active) * {
  border-bottom: 0 !important;
  box-shadow: none !important;
  text-decoration: none !important;
  text-decoration-line: none !important;
}

html body #header-container #navi .menu-header > li > a,
html body #header-container #navi .menu-header > li > a:hover,
html body #header-container #navi .menu-header > li > a:focus,
html body #header-container #navi .menu-header > li > a:active,
html body #header-container #navi .menu-header > li.current-menu-item > a,
html body #header-container #navi .menu-header > li.current-menu-ancestor > a,
html body #header-container #navi .menu-header > li.current_page_item > a,
html body #header-container #navi .menu-header > li.current_page_ancestor > a {
  border: 0 !important;
  border-bottom: 0 !important;
  outline: 0 !important;
  box-shadow: none !important;
  background: transparent !important;
  background-image: none !important;
  text-decoration: none !important;
  text-decoration-line: none !important;
}

html body #header-container #navi .menu-header > li > a:hover .caption-wrap,
html body #header-container #navi .menu-header > li > a:focus .caption-wrap,
html body #header-container #navi .menu-header > li > a:active .caption-wrap,
html body #header-container #navi .menu-header > li.current-menu-item > a .caption-wrap,
html body #header-container #navi .menu-header > li.current-menu-ancestor > a .caption-wrap,
html body #header-container #navi .menu-header > li.current_page_item > a .caption-wrap,
html body #header-container #navi .menu-header > li.current_page_ancestor > a .caption-wrap {
  border: 0 !important;
  border-bottom: 0 !important;
  box-shadow: none !important;
  background: transparent !important;
  background-image: none !important;
}

body .footer {
  color: #182b45;
  background: linear-gradient(180deg, #fbf7ee 0%, #fffdf8 100%) !important;
  border-top: 1px solid #eadfca;
}

body .footer a {
  color: #182b45;
}

body .footer a:hover {
  color: #8f783f;
}

body .footer-bottom {
  padding: 42px 24px 28px;
  color: #182b45;
  background: transparent !important;
}

body .footer-bottom-logo,
body .footer-bottom-content {
  width: 100%;
  max-width: 1120px;
  margin-inline: auto;
  text-align: center;
}

body .footer-bottom-logo {
  margin-bottom: 20px;
}

body .footer-bottom-logo .site-name-text,
body .footer-bottom-logo .logo-text {
  display: inline-block;
  max-width: none;
  color: #182b45;
  font-size: clamp(1.25rem, 2vw, 1.65rem);
  font-weight: 800;
  line-height: 1.5;
  letter-spacing: 0;
  white-space: nowrap;
  word-break: keep-all;
  overflow-wrap: normal;
}

body .navi-footer-in > .menu-footer {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px 28px;
  margin: 0;
  padding: 0;
}

body .navi-footer-in > .menu-footer li.menu-item {
  width: auto !important;
  border: 0;
  white-space: nowrap;
}

body .navi-footer-in > .menu-footer li.menu-item a {
  display: inline-flex;
  align-items: center;
  min-height: auto;
  padding: 0;
  color: #4f4a43;
  font-size: .95rem;
  line-height: 1.7;
  white-space: nowrap;
  word-break: keep-all;
}

body .copyright {
  margin-top: 22px;
  color: #8f783f;
  font-size: .85rem;
  letter-spacing: 0;
}

body.front-top-page .wp-block-cover,
body.front-top-page .wp-block-cover .wp-block-group,
body.front-top-page .wp-block-column.has-background,
body.front-top-page .wp-block-group.has-background,
body.front-top-page .wp-block-media-text,
body.front-top-page .wp-block-details,
body.front-top-page .wp-block-image img,
body.front-top-page .wp-block-media-text__media img {
  border-radius: 15px;
  overflow: hidden;
}

body.front-top-page .wp-block-button__link {
  border-radius: 999px;
}

body.front-top-page .wp-block-button__link.has-black-color {
  color: #182b45 !important;
}

body.front-top-page .onowa-next-stage-section {
  box-sizing: border-box;
}

body.front-top-page .onowa-next-stage-card {
  box-sizing: border-box;
  width: min(100%, 1040px);
  margin: 0 auto;
  border-style: solid;
  border-radius: 15px;
  overflow: hidden;
}

body.front-top-page .onowa-next-stage-columns {
  display: grid !important;
  grid-template-columns: minmax(0, 8fr) minmax(150px, 2fr);
  align-items: stretch;
  gap: 36px;
  margin: 0 !important;
}

body.front-top-page .onowa-next-stage-main {
  width: 100% !important;
  max-width: none !important;
  flex: none !important;
  flex-basis: auto !important;
  min-width: 0;
}

body.front-top-page .onowa-next-stage-action {
  width: 100% !important;
  max-width: none !important;
  flex: none !important;
  flex-basis: auto !important;
  display: flex;
  justify-content: flex-end;
  align-self: end;
  margin-left: auto;
}

body.front-top-page .onowa-next-stage-action .wp-block-buttons {
  justify-content: flex-end;
  margin-top: 0;
  width: 100%;
}

body.front-top-page .onowa-next-stage-action .wp-block-button__link {
  min-width: 150px;
  width: 100%;
  white-space: nowrap;
  text-align: center;
}

body.front-top-page .onowa-next-stage-label {
  margin-bottom: 14px;
}

body.front-top-page .onowa-next-stage-title {
  margin-bottom: 18px;
  width: 100%;
  max-width: none !important;
  padding-bottom: 0 !important;
  border: 0 !important;
  border-bottom: 0 !important;
  box-shadow: none !important;
  background: transparent !important;
  background-image: none !important;
}

body.front-top-page .onowa-next-stage-title::before {
  content: none !important;
  display: none !important;
  border: 0 !important;
  box-shadow: none !important;
  background: transparent !important;
  background-image: none !important;
}

body.front-top-page .onowa-next-stage-title::after {
  content: "";
  display: block;
  width: 100%;
  height: 4px;
  margin-top: 16px;
  background: linear-gradient(90deg, #b99b58 0 30%, #e5e5e5 30% 100%);
  border: 0 !important;
  box-shadow: none !important;
}

body.front-top-page .onowa-next-stage-excerpt {
  width: 100%;
  max-width: none !important;
}

body:is(.archive, .category, .blog) .entry-card-thumb,
body:is(.archive, .category, .blog) .card-thumb,
body:is(.archive, .category, .blog) .entry-card-thumb img,
body:is(.archive, .category, .blog) .card-thumb img,
body:is(.archive, .category, .blog) .entry-card-thumb .no-image,
body:is(.archive, .category, .blog) .card-thumb .no-image,
body:is(.archive, .category, .blog) .ect-vertical-card .entry-card-thumb,
body:is(.archive, .category, .blog) .ect-vertical-card .card-thumb,
body .list .entry-card-thumb,
body .list .card-thumb,
body .list .entry-card-thumb img,
body .list .card-thumb img,
body .list .entry-card-thumb .no-image,
body .list .card-thumb .no-image {
  border-radius: 15px;
  overflow: hidden;
}

body.front-top-page .entry-content > .wp-block-group.alignfull,
body.front-top-page .entry-content > .wp-block-group.has-background,
body.front-top-page .entry-content > .wp-block-media-text {
  padding-top: 42px !important;
  padding-bottom: 42px !important;
}

body.front-top-page .entry-content > .wp-block-group.alignfull + .wp-block-group.alignfull,
body.front-top-page .entry-content > .wp-block-group.has-background + .wp-block-group.has-background,
body.front-top-page .entry-content > .wp-block-group.alignfull + .wp-block-media-text,
body.front-top-page .entry-content > .wp-block-media-text + .wp-block-group.alignfull {
  margin-top: 0 !important;
}

body.front-top-page .wp-block-group.has-background,
body.front-top-page .wp-block-column.has-background {
  padding-top: 24px !important;
  padding-bottom: 24px !important;
}

body.front-top-page .entry-content :where(h1, h2, h3, p, ul, ol) {
  margin-top: 0;
}

body.front-top-page .entry-content :where(h1, h2, h3, p, ul, ol):last-child {
  margin-bottom: 0;
}

body.front-top-page .entry-content :where(h2, h3) {
  margin-bottom: 18px;
}

.entry-content h2 {
  background: linear-gradient(90deg, #b99b58 0 30%, #e5e5e5 30% 100%) left bottom / 100% 4px no-repeat !important;
  border: 0 !important;
  border-radius: 0 !important;
  box-shadow: none !important;
  color: #182b45 !important;
  padding: 0 0 18px !important;
}

body.front-top-page .entry-content p {
  margin-bottom: 16px;
}

body.front-top-page .wp-block-columns {
  margin-top: 24px !important;
  margin-bottom: 0 !important;
}

body.front-top-page .wp-block-columns + .wp-block-columns {
  margin-top: 18px !important;
}

body.front-top-page .wp-block-column > :first-child,
body.front-top-page .wp-block-group > :first-child {
  margin-top: 0 !important;
}

body.front-top-page .wp-block-column > :last-child,
body.front-top-page .wp-block-group > :last-child {
  margin-bottom: 0 !important;
}

body.front-top-page .wp-block-column.has-background > p:first-child {
  margin-bottom: 12px;
}

body.front-top-page .wp-block-buttons {
  margin-top: 18px;
}

body.front-top-page .entry-content > .wp-block-group:nth-of-type(1) {
  padding-top: 32px !important;
  padding-bottom: 24px !important;
}

body.front-top-page .entry-content > .wp-block-group:nth-of-type(1) > .wp-block-group {
  padding-top: 24px !important;
  padding-bottom: 24px !important;
}

body.front-top-page .entry-content > .wp-block-group:nth-of-type(2) {
  padding-top: 0 !important;
  padding-bottom: 36px !important;
}

body.front-top-page .entry-content > .wp-block-group:nth-of-type(3),
body.front-top-page .entry-content > .wp-block-group:nth-of-type(4),
body.front-top-page .entry-content > .wp-block-group:nth-of-type(5) {
  padding-top: 42px !important;
  padding-bottom: 42px !important;
}

body.front-top-page .entry-content > .wp-block-group:nth-of-type(4) .wp-block-column.has-background {
  display: flex;
  flex-direction: column;
  min-height: 0;
  padding-top: 24px !important;
  padding-bottom: 24px !important;
}

body:not(.front-top-page) {
  background: #fffdf8;
}

body:not(.front-top-page) #content {
  background: linear-gradient(180deg, #fffdf8 0%, #fff 42%);
}

body:not(.front-top-page) #main {
  max-width: 1040px;
  margin: 0 auto 64px;
  padding: clamp(28px, 5vw, 56px);
  background: #fff;
  border: 1px solid #eadfca;
  border-radius: 15px;
  box-shadow: 0 18px 45px rgba(143, 120, 63, .08);
}

body:not(.front-top-page) .entry-content {
  max-width: 920px;
  margin-inline: auto;
}

body:not(.front-top-page) .entry-content h1,
body:not(.front-top-page) .entry-content h2,
body:not(.front-top-page) .entry-content h3 {
  color: #182b45;
}

body:not(.front-top-page) .entry-content > h2:first-child::after {
  content: none;
}

body:not(.front-top-page) .entry-content > h1:first-child,
body:not(.front-top-page) .entry-content > h2:first-child {
  position: relative;
  margin-bottom: 38px;
  padding-bottom: 18px;
  text-align: center;
}

body:not(.front-top-page) .entry-content > h1:first-child::after,
body:not(.front-top-page) .entry-content > h2:first-child::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: 0;
  width: 72px;
  height: 3px;
  border-radius: 999px;
  background: #b99b58;
  transform: translateX(-50%);
}

body:not(.front-top-page) .entry-content img,
body:not(.front-top-page) .wp-block-image img,
body:not(.front-top-page) .wp-block-media-text__media img,
body:not(.front-top-page) .wp-block-group.has-background,
body:not(.front-top-page) .wp-block-column.has-background,
body:not(.front-top-page) .wp-block-details {
  border-radius: 15px;
  overflow: hidden;
}

body:not(.front-top-page) .wp-block-button__link {
  border-radius: 999px;
}

body:not(.front-top-page) .wp-block-button__link.has-black-color {
  color: #182b45 !important;
}

body:not(.front-top-page) table {
  width: 100%;
  overflow: hidden;
  border-radius: 15px;
  border-color: #eadfca;
}

body:not(.front-top-page) .wp-block-table {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

body:not(.front-top-page) th {
  color: #182b45;
  background: #fbf7ee;
}

body.onowa-wide-page #content {
  background: #fffdf8;
}

body.onowa-wide-page #main {
  width: 100%;
  max-width: none;
  margin: 0;
  padding: 0;
  background: transparent;
  border: 0;
  border-radius: 0;
  box-shadow: none;
}

body.onowa-wide-page .article {
  padding: 0;
}

body.onowa-wide-page .entry-title,
body.onowa-wide-page .toc {
  display: none !important;
}

body.onowa-wide-page .entry-content {
  width: 100%;
  max-width: none;
  margin: 0;
}

body.onowa-wide-page .entry-content > :where(h2, h3, p, ul, ol, figure, .wp-block-columns, .wp-block-details, .wp-block-separator) {
  width: min(1120px, calc(100% - 48px));
  max-width: none;
  margin-left: auto;
  margin-right: auto;
}

body.onowa-wide-page .entry-content > .wp-block-group.has-background {
  width: min(1280px, calc(100% - 48px));
  max-width: none;
  margin-left: auto;
  margin-right: auto;
}

body.onowa-wide-page .entry-content > .wp-block-group:first-child {
  margin-top: 36px;
}

body.onowa-wide-page .entry-content > .wp-block-group:last-child {
  margin-bottom: 72px;
}

body.onowa-wide-page .wp-block-image.aligncenter,
.editor-styles-wrapper .wp-block-image.aligncenter {
  text-align: center;
}

body.onowa-wide-page .wp-block-image.aligncenter img,
.editor-styles-wrapper .wp-block-image.aligncenter img {
  display: block;
  margin-right: auto;
  margin-left: auto;
}

body.onowa-wide-page .wp-block-column.has-background > .wp-block-heading,
body.onowa-wide-page .wp-block-column.has-background > h2,
body.onowa-wide-page .wp-block-column.has-background > h3,
body.onowa-wide-page .wp-block-group.has-background > .wp-block-heading,
body.onowa-wide-page .wp-block-group.has-background > h2,
body.onowa-wide-page .wp-block-group.has-background > h3 {
  margin-top: 0 !important;
}

body.onowa-wide-page .wp-block-column.has-background > .wp-block-heading + p,
body.onowa-wide-page .wp-block-column.has-background > h2 + p,
body.onowa-wide-page .wp-block-column.has-background > h3 + p,
body.onowa-wide-page .wp-block-group.has-background > .wp-block-heading + p,
body.onowa-wide-page .wp-block-group.has-background > h2 + p,
body.onowa-wide-page .wp-block-group.has-background > h3 + p {
  margin-top: 18px !important;
}

body.onowa-wide-page .wp-block-columns {
  align-items: stretch;
}

body.onowa-wide-page .wp-block-column.has-background {
  align-self: stretch;
}

@media screen and (max-width: 1023px) {
  body {
    padding-top: 54px;
  }

  body .header-container,
  body #navi,
  body #navi .navi-in > .menu-mobile,
  body .navi-in > .menu-mobile,
  body .mobile-header-menu-buttons .search-menu-button {
    display: none !important;
  }

  body .mobile-header-menu-buttons {
    display: flex !important;
    justify-content: center;
    min-height: 54px;
    top: 0;
    bottom: auto;
    padding: 0 12px;
    color: #182b45;
    background: #ffffff !important;
    opacity: 1 !important;
    backdrop-filter: none !important;
    border-top: 3px solid #b99b58;
    border-bottom: 1px solid #eadfca;
    box-shadow: 0 5px 16px rgba(143, 120, 63, .1);
    z-index: 10000;
  }

  body.admin-bar .mobile-header-menu-buttons {
    top: 32px;
  }

  body .mobile-header-menu-buttons .navi-menu-button {
    display: flex !important;
    position: absolute;
    top: 0;
    right: 8px;
    bottom: 0;
    width: 54px;
    min-width: 54px;
  }

  body .mobile-header-menu-buttons .logo-menu-button {
    display: flex !important;
    position: absolute;
    top: 0;
    bottom: 0;
    left: 50%;
    width: min(230px, calc(100% - 120px));
    align-items: center;
    justify-content: center;
    line-height: 1.2;
    transform: translateX(-50%);
  }

  body .mobile-header-menu-buttons .logo-menu-button > a {
    display: flex;
    width: 100%;
    height: 51px;
    align-items: center;
    justify-content: center;
    color: #182b45;
  }

  body .mobile-header-menu-buttons .logo-menu-button img {
    width: auto;
    max-width: 100%;
    max-height: 38px;
    object-fit: contain;
  }

  body .mobile-header-menu-buttons .logo-menu-button .site-name-text {
    color: #182b45;
    font-size: .9rem;
    font-weight: 800;
    line-height: 1.25;
    text-align: center;
  }

  body .mobile-header-menu-buttons .navi-menu-button .menu-icon {
    color: #182b45;
    font-size: 23px;
  }

  body .mobile-header-menu-buttons .navi-menu-button .menu-caption {
    display: none;
  }

  body .navi-menu-content {
    left: auto;
    right: 0;
    max-width: min(360px, 88vw);
    background: #fffdf8;
    border-left: 1px solid #eadfca;
    box-shadow: -12px 0 32px rgba(24, 43, 69, .12);
    -webkit-transform: translateX(105%);
    transform: translateX(105%);
  }

  body .navi-menu-content .menu-drawer {
    padding: 0 24px 40px;
  }

  body .navi-menu-content .menu-drawer::before {
    content: "音の輪合同ピアノ発表会";
    display: block;
    padding: 30px 0 22px;
    color: #182b45;
    border-bottom: 2px solid #b99b58;
    font-size: 1.15rem;
    font-weight: 800;
    line-height: 1.5;
    text-align: center;
  }

  body .navi-menu-content .menu-drawer > ul {
    display: block;
    margin: 18px 0 0;
    padding: 0;
  }

  body .navi-menu-content .menu-drawer li {
    display: block;
    width: 100%;
    border-bottom: 1px solid #eadfca;
  }

  body .navi-menu-content .menu-drawer li a {
    display: block;
    padding: 16px 8px;
    color: #182b45;
    font-weight: 700;
    text-decoration: none;
  }

  body:not(.front-top-page) #main {
    margin: 0 16px 48px;
    padding: 28px 18px;
  }

  body.onowa-wide-page #main {
    margin: 0;
    padding: 0;
  }

  body.onowa-wide-page .entry-content > :where(h2, h3, p, ul, ol, figure, .wp-block-columns, .wp-block-details, .wp-block-separator),
  body.onowa-wide-page .entry-content > .wp-block-group.has-background {
    width: min(100% - 32px, 100%);
  }

  body.front-top-page .wp-block-cover {
    min-height: 480px !important;
  }

  body.front-top-page .wp-block-cover h1,
  body.onowa-wide-page .wp-block-heading[style*="font-size:34px"] {
    font-size: 29px !important;
    line-height: 1.45 !important;
  }

  body.front-top-page .wp-block-heading[style*="font-size:34px"],
  body.onowa-wide-page .wp-block-heading[style*="font-size:28px"],
  body.onowa-wide-page .wp-block-heading[style*="font-size:26px"] {
    font-size: 25px !important;
    line-height: 1.55 !important;
  }

  body.front-top-page .wp-block-columns,
  body.onowa-wide-page .wp-block-columns {
    gap: 18px;
  }

  body .footer-bottom {
    padding: 34px 18px 24px;
  }

  body .footer-bottom-logo .site-name-text,
  body .footer-bottom-logo .logo-text {
    font-size: 1.25rem;
    white-space: nowrap;
  }

  body .navi-footer-in > .menu-footer {
    gap: 8px 18px;
  }
}

@media screen and (max-width: 782px) {
  body.admin-bar .mobile-header-menu-buttons {
    top: 46px;
  }
}

@media screen and (max-width: 600px) {
  body.front-top-page .entry-content > .wp-block-group.alignfull,
  body.front-top-page .entry-content > .wp-block-group.has-background,
  body.front-top-page .entry-content > .wp-block-media-text,
  body.front-top-page .entry-content > .wp-block-media-text .wp-block-group {
    padding-top: 34px !important;
    padding-right: 16px !important;
    padding-bottom: 34px !important;
    padding-left: 16px !important;
  }

  body.front-top-page .wp-block-cover {
    min-height: 410px !important;
    padding: 32px 16px !important;
  }

  body.front-top-page .wp-block-cover .wp-block-group {
    padding: 24px 18px !important;
  }

  body.front-top-page .entry-content :where(h1, h2, h3, p),
  body.onowa-wide-page .entry-content :where(h1, h2, h3, p) {
    margin-top: 0;
    margin-bottom: 12px;
  }

  body.front-top-page .entry-content :where(h1, h2, h3) + p,
  body.onowa-wide-page .entry-content :where(h1, h2, h3) + p {
    margin-top: 8px;
  }

  body.front-top-page .entry-content .has-small-font-size,
  body.onowa-wide-page .entry-content .has-small-font-size {
    margin-bottom: 8px;
  }

  body.front-top-page .wp-block-columns,
  body.onowa-wide-page .wp-block-columns {
    gap: 14px;
    margin-top: 20px !important;
    margin-bottom: 0;
  }

  body.front-top-page .onowa-next-stage-section {
    padding: 30px 16px 22px !important;
  }

  body.front-top-page .onowa-next-stage-card {
    padding: 22px 18px !important;
  }

  body.front-top-page .onowa-next-stage-columns {
    display: block !important;
    grid-template-columns: none !important;
    gap: 0 !important;
    margin-top: 0 !important;
  }

  body.front-top-page .onowa-next-stage-main,
  body.front-top-page .onowa-next-stage-action {
    width: 100% !important;
    max-width: none !important;
  }

  body.front-top-page .onowa-next-stage-action {
    margin-top: 18px;
    margin-left: 0;
    justify-content: center;
  }

  body.front-top-page .onowa-next-stage-action .wp-block-buttons {
    justify-content: center;
    width: 100%;
  }

  body.front-top-page .onowa-next-stage-action .wp-block-button,
  body.front-top-page .onowa-next-stage-action .wp-block-button__link {
    width: auto;
    min-width: 210px;
    white-space: nowrap;
  }

  body.front-top-page .onowa-next-stage-label {
    word-break: keep-all;
    overflow-wrap: normal;
  }

  body.front-top-page .onowa-next-stage-title {
    font-size: clamp(1.45rem, 8vw, 1.9rem) !important;
    line-height: 1.45 !important;
    word-break: normal;
    overflow-wrap: anywhere;
  }

  body.front-top-page .onowa-next-stage-title {
    border: 0 !important;
    border-bottom: 0 !important;
    box-shadow: none !important;
    background-image: none !important;
  }

  body.front-top-page .onowa-next-stage-title::before {
    content: none !important;
    display: none !important;
  }

  body.front-top-page .onowa-next-stage-title::after {
    width: 100%;
    height: 4px;
    margin-top: 14px;
    background: linear-gradient(90deg, #b99b58 0 30%, #e5e5e5 30% 100%) !important;
    border: 0 !important;
    box-shadow: none !important;
  }

  body.front-top-page .wp-block-column.has-background,
  body.front-top-page .wp-block-group:not(.alignfull).has-background,
  body.onowa-wide-page .wp-block-column.has-background,
  body.onowa-wide-page .wp-block-group.has-background {
    padding: 20px 18px !important;
  }

  body.onowa-wide-page .wp-block-column.has-background > .wp-block-heading + p,
  body.onowa-wide-page .wp-block-column.has-background > h2 + p,
  body.onowa-wide-page .wp-block-column.has-background > h3 + p,
  body.onowa-wide-page .wp-block-group.has-background > .wp-block-heading + p,
  body.onowa-wide-page .wp-block-group.has-background > h2 + p,
  body.onowa-wide-page .wp-block-group.has-background > h3 + p {
    margin-top: 12px !important;
  }

  body.front-top-page .wp-block-column > :first-child,
  body.front-top-page .wp-block-group > :first-child,
  body.onowa-wide-page .wp-block-column > :first-child,
  body.onowa-wide-page .wp-block-group > :first-child {
    margin-top: 0 !important;
  }

  body.front-top-page .wp-block-column > :last-child,
  body.front-top-page .wp-block-group > :last-child,
  body.onowa-wide-page .wp-block-column > :last-child,
  body.onowa-wide-page .wp-block-group > :last-child {
    margin-bottom: 0 !important;
  }

  body.front-top-page #schedule,
  body.front-top-page #support {
    padding-top: 36px !important;
    padding-bottom: 36px !important;
  }

  body.front-top-page #schedule .wp-block-column:first-child {
    padding: 24px 18px !important;
  }

  body.front-top-page #schedule .wp-block-column:first-child p {
    margin-bottom: 10px;
  }

  body.front-top-page #schedule .wp-block-column:first-child p:last-child {
    margin-bottom: 0;
  }

  body.front-top-page #schedule .wp-block-column:nth-child(2),
  body.front-top-page #schedule > .wp-block-group {
    padding: 20px 18px !important;
  }

  body.front-top-page .wp-block-media-text__content {
    padding: 0 !important;
  }

  body.front-top-page .wp-block-details,
  body.onowa-wide-page .wp-block-details {
    margin-bottom: 8px !important;
    padding: 15px 16px !important;
  }

  body.front-top-page .wp-block-buttons,
  body.onowa-wide-page .wp-block-buttons {
    margin-top: 18px;
    gap: 10px;
  }

  body.front-top-page .wp-block-button__link,
  body.onowa-wide-page .wp-block-button__link {
    padding: 10px 20px !important;
  }

  body.front-top-page .wp-block-buttons {
    justify-content: center;
  }

  body.front-top-page .wp-block-button,
  body.front-top-page .wp-block-button__link {
    width: auto;
    min-width: 210px;
    text-align: center;
    white-space: nowrap;
  }

  body.onowa-wide-page .entry-content > .wp-block-group:first-child {
    margin-top: 16px;
    padding: 28px 18px !important;
  }

  body.onowa-wide-page .entry-content > .wp-block-group:last-child {
    margin-bottom: 36px;
  }

  body.onowa-wide-page .wp-block-spacer {
    height: 14px !important;
  }

  body.onowa-wide-page .entry-content > :where(h2, h3, p, ul, ol, figure, .wp-block-columns, .wp-block-details, .wp-block-separator),
  body.onowa-wide-page .entry-content > .wp-block-group.has-background {
    width: calc(100% - 32px);
  }

  body.onowa-wide-page .entry-content > h2 {
    margin-top: 24px;
    margin-bottom: 12px;
  }

  body.onowa-wide-page .entry-content > .wp-block-separator {
    margin-top: 24px;
    margin-bottom: 24px;
  }

  body.onowa-wide-page .wp-block-table table,
  body.onowa-wide-page .wp-block-table tbody,
  body.onowa-wide-page .wp-block-table tr,
  body.onowa-wide-page .wp-block-table th,
  body.onowa-wide-page .wp-block-table td {
    display: block;
    width: 100%;
  }

  body.onowa-wide-page .wp-block-table tr:first-child {
    display: none;
  }

  body.onowa-wide-page .wp-block-table tr {
    padding: 16px 0;
    border-bottom: 1px solid #eadfca;
  }

  body.onowa-wide-page .wp-block-table td {
    border: 0;
    padding: 4px 12px;
  }

  body.onowa-wide-page .wp-block-table td:first-child {
    color: #182b45;
    font-weight: 700;
    background: #fbf7ee;
    border-radius: 10px;
  }
}

@media screen and (max-width: 420px) {
  body .logo-header {
    padding-inline: 10px;
  }

  body.front-top-page .wp-block-cover h1,
  body.onowa-wide-page .wp-block-heading[style*="font-size:34px"] {
    font-size: 26px !important;
  }

  body .footer-bottom-logo .site-name-text,
  body .footer-bottom-logo .logo-text {
    font-size: 1.08rem;
  }
}


/* Jimdo風ギャラリー試作: 標準ギャラリーブロックに jimdo-style-gallery を付けた時だけ適用 */
.body .wp-block-gallery.has-nested-images.jimdo-style-gallery {
  display: grid !important;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: 8px !important;
  max-width: 1120px;
  margin: 1.4em auto 2em !important;
  align-items: stretch !important;
}

.body .wp-block-gallery.has-nested-images.jimdo-style-gallery figure.wp-block-image {
  display: block !important;
  width: auto !important;
  max-width: none !important;
  margin: 0 !important;
  grid-column: span 1;
  aspect-ratio: 1 / 1;
  overflow: hidden;
  border-radius: 5px;
  background: #f6f1e7;
  opacity: .68;
  transition: opacity .18s ease, transform .18s ease;
}

.body .wp-block-gallery.has-nested-images.jimdo-style-gallery figure.wp-block-image:first-child {
  grid-column: 1 / -1;
  aspect-ratio: 16 / 10;
  margin-bottom: 8px !important;
  border-radius: 15px;
  opacity: 1;
}

.body .wp-block-gallery.has-nested-images.jimdo-style-gallery figure.wp-block-image:hover {
  opacity: 1;
  transform: translateY(-1px);
}

.body .wp-block-gallery.has-nested-images.jimdo-style-gallery figure.wp-block-image a,
.body .wp-block-gallery.has-nested-images.jimdo-style-gallery figure.wp-block-image img {
  display: block !important;
  width: 100% !important;
  height: 100% !important;
}

.body .wp-block-gallery.has-nested-images.jimdo-style-gallery figure.wp-block-image img {
  object-fit: cover;
  border-radius: inherit;
}

@media (max-width: 834px) {
  .body .wp-block-gallery.has-nested-images.jimdo-style-gallery {
    grid-template-columns: repeat(6, minmax(0, 1fr));
    gap: 6px !important;
    margin: 1em auto 1.6em !important;
  }

  .body .wp-block-gallery.has-nested-images.jimdo-style-gallery figure.wp-block-image:first-child {
    aspect-ratio: 4 / 3;
    margin-bottom: 6px !important;
  }
}

/* 発表会サポート: 記事一覧とFAQを見出し幅に揃える */
body.page-id-254 .support-report-list-wrap,
body.page-id-254 .support-faq-wrap {
  width: min(1120px, calc(100% - 48px));
  max-width: none;
  margin-left: auto !important;
  margin-right: auto !important;
}

body.page-id-254 .support-report-list-wrap .new-list-box,
body.page-id-254 .support-faq-wrap .faq-wrap {
  width: 100%;
  max-width: none;
  margin-left: auto !important;
  margin-right: auto !important;
}
