/* Base: deliberately scoped so Cocoon and the WordPress admin bar are untouched. */
body.aoao-design {
  margin: 0;
  color: #111;
  background: #fff;
  font-family: "Roboto", "Noto Sans JP", "Yu Gothic", "Hiragino Kaku Gothic ProN", sans-serif;
  font-weight: 300;
  letter-spacing: 1px;
  line-height: 1;
  -webkit-font-smoothing: antialiased;
}

body.aoao-design.is-menu-open {
  overflow: hidden;
}

.aoao-site,
.aoao-site *,
.aoao-site *::before,
.aoao-site *::after {
  box-sizing: border-box;
}

.aoao-site :where(div, span, iframe, h1, h2, h3, h4, h5, h6, p, a, img, ol, ul, li, table, caption, tbody, tfoot, thead, tr, th, td, article, aside, figure, figcaption, footer, header, nav, section, audio, video) {
  margin: 0;
  padding: 0;
  border: 0;
  font: inherit;
  vertical-align: baseline;
}

.aoao-site :where(article, aside, figure, figcaption, footer, header, nav, section) {
  display: block;
}

.aoao-site :where(ol, ul) {
  list-style: none;
}

.aoao-site a {
  color: inherit;
  text-decoration: none;
}

.aoao-site button {
  margin: 0;
  padding: 0;
  color: inherit;
  border: 0;
  background: none;
  font: inherit;
  cursor: pointer;
}

.aoao-site :where(img, video) {
  display: block;
  max-width: 100%;
}

.aoao-site p {
  font-size: 14px;
  line-height: 2.4;
}

.aoao-site .sp {
  display: none;
}

.aoao-site .inner {
  width: min(1140px, calc(100% - 80px));
  margin: 0 auto;
}

.aoao-site :where(.wp-block-group, .wp-block-video, .wp-block-image, .wp-block-table, .wp-block-buttons) {
  margin-block: 0;
}

/* Neutralize WordPress layout gap rules; AOAO sections define their own rhythm. */
.aoao-site :where(.is-layout-flow, .is-layout-constrained) > * {
  margin-block: 0;
}

/* Header and navigation */
.site-header {
  z-index: 90000;
  top: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100px;
  padding: 0 40px;
  background: rgba(255, 255, 255, 0.94);
  transition: transform 0.7s ease;
}

.home .site-header {
  position: fixed;
  transform: translateY(-100px);
}

body.aoao-design:not(.home) .site-header {
  position: sticky;
  transform: translateY(0);
}

body.admin-bar.aoao-design .site-header {
  top: 32px;
}

.site-header.is-fixed {
  transform: translateY(0);
}

.site-logo {
  position: absolute;
  left: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  line-height: 0;
  transform: translateX(-50%);
}

.site-logo img {
  width: 120px;
}

.aoao-menu-icon {
  position: absolute;
  z-index: 9999999;
  right: 40px;
  width: 40px;
  height: 40px;
  margin: 0;
  transition: opacity 0.2s ease;
}

.is-menu-open .aoao-menu-icon {
  opacity: 0;
  pointer-events: none;
}

.aoao-menu-icon svg {
  width: 100%;
  height: 100%;
  fill: none;
  stroke: #000;
  stroke-width: 2.3;
  stroke-linecap: round;
}

.aoao-nav-wrapper {
  position: fixed;
  z-index: 1000000;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  pointer-events: none;
  background: rgba(0, 0, 0, 0.7);
  transform: translateY(-10px);
  transition: opacity 0.4s ease, transform 0.4s ease;
}

.is-menu-open .aoao-nav-wrapper {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

.aoao-nav-wrapper .aoao-menu-close {
  position: absolute;
  z-index: 1;
  top: 50px;
  right: 50px;
  display: block;
  width: 50px;
  height: 50px;
}

.aoao-nav-wrapper .aoao-menu-close::before,
.aoao-nav-wrapper .aoao-menu-close::after {
  position: absolute;
  top: 24px;
  left: 7px;
  width: 42px;
  height: 1px;
  content: "";
  background: #fff;
}

.aoao-nav-wrapper .aoao-menu-close::before {
  transform: rotate(45deg);
}

.aoao-nav-wrapper .aoao-menu-close::after {
  transform: rotate(-45deg);
}

.aoao-nav-wrapper .aoao-menu-close:focus-visible {
  outline: 1px solid rgba(255, 255, 255, 0.7);
  outline-offset: 2px;
}

.aoao-nav-wrapper nav {
  height: 100%;
  overflow-y: auto;
}

.aoao-nav-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 100%;
  padding: 100px 24px 60px;
}

.aoao-primary-menu {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
  height: auto;
  margin: 0;
  padding: 0;
}

.aoao-primary-menu > li {
  margin: 30px 0;
}

.aoao-primary-menu a {
  position: relative;
  color: #fff;
  font-size: 24px;
  letter-spacing: 3px;
}

.aoao-primary-menu a::after {
  position: absolute;
  right: 0;
  bottom: -8px;
  left: 0;
  height: 1px;
  content: "";
  background: #fff;
  transform: scaleX(0);
  transition: transform 0.25s ease;
}

.aoao-primary-menu a:hover::after,
.aoao-primary-menu a:focus-visible::after,
.aoao-primary-menu .current-menu-item > a::after {
  transform: scaleX(1);
}

.aoao-menu-sns {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 28px;
  width: auto;
  height: auto;
  margin: 24px 0 0;
  padding: 0;
}

.aoao-menu-sns li {
  margin: 0;
}

.aoao-menu-sns a {
  display: block;
  color: #fff;
  line-height: 0;
}

.aoao-menu-sns svg {
  display: block;
  fill: currentColor;
  transition: opacity 0.2s ease;
}

.aoao-menu-sns a:hover svg,
.aoao-menu-sns a:focus-visible svg {
  opacity: 0.65;
}

.aoao-menu-sns .instagram svg {
  width: 28px;
}

.aoao-menu-sns .line svg {
  width: 36px;
}

/* Home */
#main-visual {
  position: relative;
  display: flex;
  overflow: hidden;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100vh;
  height: 100dvh;
  background: #9c9c9c;
}

#main-visual .main-visual-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

#main-visual video {
  position: absolute;
  z-index: 0;
  top: 50%;
  left: 50%;
  width: auto;
  min-width: 100%;
  height: auto;
  min-height: 100%;
  object-fit: cover;
  filter: grayscale(1);
  transform: translate(-50%, -50%);
  transition: filter 3s ease-in-out;
}

#main-visual video.is-color {
  filter: grayscale(0);
}

#main-visual .main-logo {
  position: relative;
  z-index: 20;
  mix-blend-mode: screen;
}

#main-visual h1 {
  width: 320px;
  height: 210px;
  overflow: hidden;
  background: url("../image/logo_.webp") no-repeat center / 188% auto;
  font-size: 0;
}

#concept {
  position: relative;
  display: flex;
  overflow: hidden;
  align-items: center;
  justify-content: center;
  min-height: 140vh;
  min-height: 140lvh;
  text-align: center;
}

#concept .center-fix {
  position: relative;
  width: 1148px;
  max-width: calc(100% - 80px);
}

.instagram-feed-placeholder {
  margin: 120px 0 180px;
  text-align: left;
}

.instagram-feed-heading {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 30px;
  margin-bottom: 28px;
}

#concept .instagram-feed-title {
  margin: 0;
  font-size: 15px;
  letter-spacing: 6px;
}

#concept .instagram-feed-title::after {
  content: none;
}

.instagram-feed-meta {
  display: flex;
  align-items: center;
  gap: 18px;
  margin: 0;
  color: #777;
  font-size: 11px;
  letter-spacing: 1.5px;
  line-height: 1.4;
}

.instagram-feed-meta a {
  color: #222;
}

.instagram-feed-meta span {
  padding-left: 18px;
  border-left: 1px solid #d8d4d1;
}

.instagram-feed-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 20px;
}

.instagram-feed-live #sb_instagram {
  width: 100% !important;
  padding: 0 !important;
}

.instagram-feed-live #sbi_images {
  display: grid !important;
  grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
  gap: 20px;
  padding: 0 !important;
}

.instagram-feed-live .sbi_item {
  display: block !important;
  width: 100% !important;
  padding: 0 !important;
}

.instagram-feed-live .sbi_item:nth-child(n+9),
.instagram-feed-live #sbi_load,
.instagram-feed-live .sbi_follow_btn {
  display: none !important;
}

.instagram-feed-post {
  position: relative;
  overflow: hidden;
  aspect-ratio: 1;
  background: #f3f0ed;
}

.instagram-feed-post::after {
  position: absolute;
  inset: 0;
  content: "";
  background: rgba(255, 255, 255, 0);
  transition: background-color 0.35s ease;
}

.instagram-feed-post img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.55s ease;
}

.instagram-feed-post:hover::after,
.instagram-feed-post:focus-visible::after {
  background: rgba(255, 255, 255, 0.16);
}

.instagram-feed-post:hover img,
.instagram-feed-post:focus-visible img {
  transform: scale(1.035);
}

.instagram-feed-more {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 220px;
  height: 58px;
  margin: 54px auto 0;
  border: 1px solid #222;
  font-size: 12px;
  letter-spacing: 3px;
  transition: color 0.25s ease, background-color 0.25s ease;
}

.instagram-feed-more:hover,
.instagram-feed-more:focus-visible {
  color: #fff;
  background: #222;
}

.concept-copy {
  position: relative;
}

.concept-copy .concept-paragraph + .concept-paragraph,
.concept-copy .concept-paragraph + p {
  margin-top: 34px;
}

.concept-photos {
  position: absolute;
  z-index: 0;
  inset: 0;
  pointer-events: none;
}

.concept-photo {
  position: absolute;
  overflow: hidden;
  width: clamp(210px, 19vw, 275px);
  aspect-ratio: 4 / 3;
  padding: 8px;
  background: #fff;
  box-shadow: 0 14px 38px rgba(35, 27, 23, 0.13);
}

.concept-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.concept-photo-nail {
  z-index: 2;
  top: 8%;
  left: -10.5vw;
  transform: rotate(-5deg);
}

.concept-photo-hand {
  z-index: 2;
  top: 58%;
  right: -10vw;
  transform: rotate(5deg);
}

.concept-photo-shop {
  z-index: 1;
  top: 19%;
  left: -5.5vw;
  transform: rotate(4deg);
}

.concept-photo-paragel {
  z-index: 1;
  top: 48%;
  right: -5vw;
  transform: rotate(-5deg);
}

h2 {
  position: relative;
  margin-bottom: 90px;
  font-size: 16px;
  letter-spacing: 7px;
}

h2::after {
  position: absolute;
  right: 0;
  bottom: -40px;
  left: 0;
  display: block;
  width: 40px;
  height: 1px;
  margin: auto;
  content: "";
  background: #222;
}

.aoao-home-page #concept .concept-copy > h2,
.aoao-home-page #access h2 {
  margin-bottom: 90px;
}

.para-gel {
  margin: 80px auto 80px;
}

.aoao-site .para-gel {
  margin: 80px auto 80px !important;
}

.para-gel > .para-gel-link {
  position: relative;
  display: flex;
  align-items: center;
  gap: 40px;
  padding: 30px 90px;
  border: 1px solid #000;
  transition: background-color 0.25s ease;
}

.para-gel > .para-gel-link > .para-gel-logo,
.para-gel > .para-gel-link > .txt {
  margin: 0 !important;
}

.para-gel > .para-gel-link:hover {
  background: #fafafa;
}

.para-gel-overlay,
.para-gel-overlay .wp-block-button,
.para-gel-overlay .wp-block-button__link {
  position: absolute;
  z-index: 5;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: 0;
  opacity: 0;
}

.para-gel figure {
  max-width: 250px;
  padding: 40px;
}

.para-gel-logo img {
  display: inline;
  width: 100%;
  height: auto;
}

.para-gel .txt p {
  padding-left: 60px;
  border-left: 1px solid #000;
}

#parallax-video {
  position: relative;
  overflow: hidden;
  width: 100%;
  max-width: none !important;
  height: 80vh;
}

.aoao-site #concept,
.aoao-site #parallax-video {
  margin-block: 0;
}

#parallax-video .video-container {
  position: absolute;
  top: -10%;
  left: 0;
  width: 100% !important;
  max-width: none !important;
  height: 120%;
  margin: 0 !important;
}

#parallax-video .wp-block-video {
  width: 100% !important;
  max-width: none !important;
  height: 100%;
  margin: 0 !important;
}

#parallax-video video {
  width: 100% !important;
  max-width: none !important;
  height: 100%;
  object-fit: cover;
  object-position: center;
  transform: translate3d(0, 0, 0);
  will-change: transform;
}

#access {
  padding: 160px 0 100px;
  text-align: center;
}

#access iframe {
  display: block;
  width: 100%;
  height: 600px;
  margin-top: 20px;
}

/* Shared reservation and footer */
.reservation {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
  margin-bottom: 80px;
}

.aoao-site .reservation {
  margin-bottom: 80px !important;
}

.reservation .wp-block-button {
  width: 100%;
  max-width: 360px;
}

.reservation a {
  display: block;
  width: 100%;
  padding: 20px 40px;
  border: 1px solid #ddd;
  border-radius: 0;
  color: #111;
  background: #fff;
  font-size: 14px;
  letter-spacing: 1px;
  text-align: center;
  transition: background-color 0.25s ease;
}

.reservation .hotpepper a {
  position: relative;
  padding-right: 58px;
}

.reservation .hotpepper a::before,
.reservation .hotpepper a::after {
  position: absolute;
  content: "";
}

.reservation .hotpepper a::before {
  top: 20px;
  right: 22px;
  width: 15px;
  height: 15px;
  border: 1px solid #222;
  border-radius: 1px;
}

.reservation .hotpepper a::after {
  top: 16px;
  right: 18px;
  width: 10px;
  height: 10px;
  border-top: 1px solid #222;
  border-right: 1px solid #222;
  background: #fff;
}

.reservation a:hover {
  background-color: #f5f5f5;
}

.aoao-site .site-footer {
  padding: 60px 0;
  border-top: 1px solid #ddd;
  text-align: center;
}

.aoao-site .site-footer .sns {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 30px;
  margin-bottom: 8px;
}

.aoao-site .site-footer .sns a {
  display: block;
  line-height: 0;
}

.aoao-site .site-footer .sns svg {
  fill: #c0c0c0;
  transition: fill 0.2s ease;
}

.aoao-site .site-footer .sns a:hover svg,
.aoao-site .site-footer .sns a:focus-visible svg {
  fill: #777;
}

.aoao-site .site-footer .instagram svg {
  width: 30px;
}

.aoao-site .site-footer .line svg {
  width: 40px;
}

/* PRICE / SCHOOL pages */
.page #page-header {
  position: relative;
  z-index: 2;
  background: #fff;
  text-align: center;
  margin-block: 0;
}

.page #page-header h1 {
  padding: 100px 0;
  border-top: 1px solid #ddd;
  border-bottom: 1px solid #ddd;
  font-size: 28px;
  letter-spacing: 15px;
}

.page #entry-content {
  position: relative;
  z-index: 1;
  clear: both;
  padding-top: 80px;
  margin-block: 0;
}

.page #entry-content h2 {
  margin-bottom: 30px;
}

.page #entry-content h2::after {
  content: none;
}

.page #entry-content h3 {
  margin: 40px 0 20px;
  font-size: 20px;
}

.page #entry-content p {
  margin-bottom: 30px;
}

.page #entry-content table {
  width: 100%;
  margin: 20px 0 40px;
  border-collapse: collapse;
}

.page #entry-content th,
.page #entry-content td {
  padding: 10px 20px;
  border: 1px solid #ddd;
  font-size: 14px;
  line-height: 1.8;
  text-align: left;
  vertical-align: middle;
}

.page #entry-content th {
  background: #fafafa;
  font-weight: 600;
}

.aoao-site .wp-block-table thead {
  border-bottom: 1px solid #ddd;
}

.page #entry-content .price-list-table th[colspan="2"] {
  text-align: center;
}

.page #entry-content .seminar-table small {
  display: block;
  margin-top: 5px;
  color: #555;
  font-size: 12px;
}

.page #entry-content .seminar-table th:nth-of-type(1) {
  width: 180px;
}

.page #entry-content .seminar-table th:nth-of-type(2) {
  width: 260px;
}

.page #entry-content .seminar-table th:nth-of-type(3) {
  width: 180px;
}

.page #entry-content .seminar-table th:nth-of-type(4) {
  width: 230px;
}

/* School gallery */
.school-gallery {
  display: grid;
  width: 100%;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  margin: 0 auto 24px;
}

.aoao-site .school-gallery {
  margin: 0 auto 24px;
}

.school-gallery-item {
  min-width: 0;
  margin: 0;
  aspect-ratio: 1;
  overflow: hidden;
  background: #f7f4f1;
}

.aoao-site .school-gallery .school-gallery-item {
  margin: 0;
}

.school-gallery-item img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.school-gallery.is-interactive {
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr);
  align-items: start;
  gap: 40px;
}

.school-gallery-main {
  position: relative;
  min-width: 0;
  width: 100%;
  justify-self: start;
  aspect-ratio: 1;
  overflow: hidden;
  background: #f7f4f1;
}

.school-gallery-sidebar {
  width: 100%;
  min-width: 0;
  justify-self: end;
}

.page #entry-content .school-gallery-intro {
  margin: 24px 0 0;
}

.school-gallery-main > img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.school-gallery-main > img[src*="/paragel-stuff-2."],
.school-gallery-item img[src*="/paragel-stuff-2."] {
  object-position: center 75%;
}

.school-gallery-thumbnails {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  min-width: 0;
}

.aoao-site .school-gallery-thumbnail {
  display: block;
  width: 100%;
  height: 100%;
  padding: 4px;
  border: 1px solid transparent;
  opacity: 0.65;
  transition: opacity 0.2s ease, border-color 0.2s ease;
}

.aoao-site .school-gallery-thumbnail[aria-pressed="true"] {
  border-color: #756253;
  opacity: 1;
}

.aoao-site .school-gallery-thumbnail:hover,
.aoao-site .school-gallery-thumbnail:focus-visible {
  opacity: 1;
}

.school-gallery-thumbnail:focus-visible {
  outline: 2px solid #756253;
  outline-offset: -2px;
}

/* Price cards */
.price-content {
  padding-bottom: 40px;
}

.page #entry-content .price-section-title {
  margin-bottom: 54px;
  text-align: center;
}

.price-card-grid {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 42px 30px;
}

.price-card {
  display: flex;
  flex-direction: column;
  grid-column: span 2;
  align-self: start;
  overflow: hidden;
  border: 1px solid #e2dedb;
  background: #fff;
  box-shadow: 0 10px 34px rgba(56, 42, 35, 0.06);
  transition: box-shadow 0.35s ease, transform 0.35s ease;
}

.price-card:hover {
  box-shadow: 0 18px 44px rgba(56, 42, 35, 0.11);
  transform: translateY(-5px);
}

.price-card-image {
  overflow: hidden;
  aspect-ratio: 4 / 3;
  background: #f7f4f1;
}

.price-card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 49%;
  transition: transform 0.6s ease;
}

.price-card:hover .price-card-image img {
  transform: scale(1.025);
}

.price-card-body {
  display: flex;
  flex: 1;
  flex-direction: column;
  justify-content: center;
  min-height: 120px;
  padding: 26px 28px 30px;
  text-align: center;
}

.page #entry-content .price-card h2 {
  margin: 0;
  font-size: 15px;
  letter-spacing: 2px;
  line-height: 1.7;
}

.page #entry-content .price-card h2::after {
  content: none;
}

.page #entry-content .price-card-price {
  margin: 6px 0 0;
  font-family: "Roboto", sans-serif;
  font-size: 20px;
  letter-spacing: 3px;
  line-height: 1.4;
}

.price-list-section {
  margin-top: 110px;
}

.foot-card-section {
  margin-top: 110px;
}

.price-list-section-continuation {
  margin-top: 90px;
}

.price-list-section-hand {
  margin-top: 80px;
}

.price-list-section-foot {
  margin-top: 80px;
}

.page #entry-content .price-list-title {
  margin-bottom: 48px;
  text-align: center;
}

.price-list-table th:first-child,
.price-list-table td:first-child {
  width: 70%;
}

.page .reservation {
  margin-top: 60px;
}

.text-link {
  color: #285793;
  text-decoration: underline;
  text-underline-offset: 3px;
}

@media (max-width: 782px) {
  body.admin-bar.aoao-design .site-header {
    top: 46px;
  }
}

@media (max-width: 768px) {
  .aoao-site .sp {
    display: block;
  }

  .aoao-site .pc {
    display: none;
  }

  .aoao-site p {
    font-size: 3.5vw;
    letter-spacing: 0.2vw;
  }

  .aoao-site .inner {
    width: auto;
    padding: 0 6.5vw;
  }

  .site-header {
    height: 70px;
    padding: 0 6.5vw;
  }

  body.aoao-design .site-header {
    position: sticky;
    transform: none;
    transition: none;
  }

  .site-logo img {
    width: 80px;
  }

  .aoao-menu-icon {
    right: 6.5vw;
    width: 30px;
    height: 30px;
  }

  .aoao-nav-wrapper .aoao-menu-close {
    top: 6.5vw;
    right: 6.5vw;
    width: 42px;
    height: 42px;
  }

  .aoao-nav-wrapper .aoao-menu-close::before,
  .aoao-nav-wrapper .aoao-menu-close::after {
    top: 20px;
    left: 5px;
    width: 34px;
  }

  .aoao-nav-content {
    padding: 70px 20px 36px;
  }

  .aoao-primary-menu > li {
    margin: 3vw 0;
  }

  .aoao-primary-menu a {
    font-size: 4vw;
  }

  .aoao-menu-sns {
    gap: 24px;
    margin-top: 5vw;
  }

  .aoao-menu-sns .instagram svg {
    width: 24px;
  }

  .aoao-menu-sns .line svg {
    width: 32px;
  }

  #main-visual h1 {
    width: 42vw;
  }

  #concept {
    min-height: 0;
  }

  #concept .center-fix {
    width: 100%;
    max-width: none;
    padding: 20vw 6.5vw;
  }

  .instagram-feed-placeholder {
    margin: 0 0 24vw;
  }

  .instagram-feed-heading {
    display: block;
    margin-bottom: 5vw;
  }

  #concept .instagram-feed-title {
    font-size: 3.5vw;
    letter-spacing: 1.2vw;
  }

  .instagram-feed-meta {
    justify-content: space-between;
    margin-top: 2.5vw;
    font-size: 2.5vw;
    letter-spacing: 0.25vw;
  }

  .instagram-feed-meta span {
    padding-left: 3vw;
  }

  .instagram-feed-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 2vw;
  }

  .instagram-feed-live #sbi_images {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 2vw;
  }

  .instagram-feed-more {
    width: 48vw;
    max-width: 220px;
    height: 13vw;
    max-height: 58px;
    margin-top: 8vw;
    font-size: 2.8vw;
    letter-spacing: 0.7vw;
  }

  #concept .concept-copy > p {
    font-size: clamp(10px, 3.2vw, 13px);
    letter-spacing: 0.05vw;
    white-space: nowrap;
  }

  .concept-photos {
    position: relative;
    overflow: hidden;
    width: 100vw;
    height: 75vw;
    margin: 0 0 18vw -6.5vw;
    background: #f7f5f3;
    box-shadow: 0 3vw 8vw rgba(35, 27, 23, 0.12);
    cursor: grab;
    pointer-events: auto;
    touch-action: pan-y;
    user-select: none;
    -webkit-user-select: none;
  }

  .concept-photos img {
    pointer-events: none;
    -webkit-user-drag: none;
  }

  .concept-photo {
    z-index: 1;
    top: 0;
    right: auto;
    left: 0;
    width: 100%;
    height: 100%;
    padding: 0;
    opacity: 0;
    background: transparent;
    box-shadow: none;
    transform: none;
    transition: opacity 0.45s ease;
  }

  .concept-photo.is-active {
    opacity: 1;
  }

  .concept-photo-nail {
    top: 0;
    left: 0;
  }

  .concept-photo-hand {
    top: 0;
    right: auto;
    left: 0;
    width: 100%;
    transform: none;
  }

  .concept-photo-shop {
    top: 0;
    left: 0;
    width: 100%;
    transform: none;
  }

  .concept-photo-paragel {
    top: 0;
    right: auto;
    left: 0;
    width: 100%;
    transform: none;
  }

  .para-gel {
    margin: 40px auto 56px;
  }

  .aoao-site .para-gel {
    margin: 40px auto 56px !important;
  }

  .para-gel > .para-gel-link {
    display: block;
    padding: 20px 4vw;
  }

  .para-gel figure {
    margin: 0 auto;
    padding: 20px 20px 40px;
  }

  .aoao-site .para-gel > .para-gel-link > .para-gel-logo {
    margin: 0 auto !important;
  }

  .para-gel .txt p {
    padding: 20px 0 0;
    border-top: 1px solid #000;
    border-left: 0;
  }

  #parallax-video {
    height: auto;
    aspect-ratio: 16 / 9;
  }

  #parallax-video .video-container {
    top: 0;
    height: 100%;
  }

  #parallax-video video {
    transform: none !important;
    will-change: auto;
  }

  #access {
    padding: 80px 0 40px;
  }

  #access iframe {
    height: 420px;
  }

  .reservation {
    display: block;
    padding: 0 20px;
  }

  .reservation .wp-block-button,
  .reservation a {
    margin-right: auto;
    margin-left: auto;
  }

  .reservation .hotpepper {
    margin-top: 20px;
  }

  .page #page-header h1 {
    padding: 60px 0;
    font-size: 21px;
    letter-spacing: 10px;
  }

  .page #entry-content {
    padding-top: 52px;
  }

  .page #entry-content h2 {
    font-size: 21px;
  }

  .page #entry-content h3 {
    margin: 30px 0 20px;
    font-size: 18px;
  }

  .page .scroll-table {
    overflow-x: auto;
    overscroll-behavior-inline: contain;
  }

  .page .scroll-table p {
    margin-bottom: 0 !important;
  }

  .page .scroll-table table {
    min-width: 1100px;
  }

  .school-gallery {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
    margin: 0 auto 24px;
  }

  .aoao-site .school-gallery {
    margin: 0 auto 24px;
  }

  .school-gallery.is-interactive {
    grid-template-columns: minmax(0, 1fr);
    gap: 24px;
  }

  .school-gallery-sidebar {
    display: block;
  }

  .school-gallery-main {
    touch-action: pan-y;
    user-select: none;
    -webkit-user-select: none;
  }

  .school-gallery-main > img {
    -webkit-user-drag: none;
  }

  .school-gallery-thumbnails {
    display: none;
  }

  .page #entry-content .school-gallery-intro {
    margin: 0;
  }

  .price-content {
    padding-bottom: 20px;
  }

  .price-card-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 2vw;
  }

  .page #entry-content .price-section-title {
    margin-bottom: 36px;
    font-size: 17px;
  }

  .price-card {
    grid-column: auto;
  }

  .price-card-body {
    min-height: 112px;
    padding: 22px 20px 24px;
  }

  .page #entry-content .price-card h2 {
    font-size: 15px;
  }

  .page #entry-content .price-card-price {
    font-size: 19px;
  }

  .price-list-section {
    margin-top: 72px;
  }

  .foot-card-section {
    margin-top: 72px;
  }

  .price-list-section-continuation {
    margin-top: 64px;
  }

  .price-list-section-hand {
    margin-top: 56px;
  }

  .price-list-section-foot {
    margin-top: 56px;
  }

  .page #entry-content .price-list-title {
    margin-bottom: 32px;
    font-size: 16px;
  }

  .price-list-table th:first-child,
  .price-list-table td:first-child {
    width: 66%;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *, *::before, *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
  }

  #main-visual video,
  #parallax-video video {
    transform: translate(-50%, -50%);
  }

  #parallax-video video {
    transform: none;
  }
}

/* On phones the WordPress toolbar scrolls away instead of staying fixed. */
@media (max-width: 600px) {
  body.admin-bar.aoao-design .site-header {
    top: 0;
  }
}

@media (max-width: 768px) and (prefers-reduced-motion: reduce) {
  .concept-photo,
  .school-gallery-item {
    transition: none;
  }
}

/* Soft menu entrance and exit; keep the overlay covering the whole viewport. */
.aoao-nav-wrapper {
  visibility: hidden;
  transform: none;
  transition: opacity 420ms ease, visibility 0s linear 420ms;
}
.is-menu-open .aoao-nav-wrapper {
  visibility: visible;
  transform: none;
  transition-delay: 0s;
}
.aoao-primary-menu > li {
  opacity: 0;
  transform: translateY(14px);
  transition: opacity 280ms ease, transform 420ms cubic-bezier(.22, 1, .36, 1);
}
.is-menu-open .aoao-primary-menu > li {
  opacity: 1;
  transform: translateY(0);
  transition-delay: 70ms;
}
.is-menu-open .aoao-primary-menu > li:nth-child(2) { transition-delay: 110ms; }
.is-menu-open .aoao-primary-menu > li:nth-child(3) { transition-delay: 150ms; }
.is-menu-open .aoao-primary-menu > li:nth-child(4) { transition-delay: 190ms; }
/* Keep a brief fade, without positional motion, for reduced-motion users. */
@media (prefers-reduced-motion: reduce) {
  .aoao-nav-wrapper { transition-duration: 180ms, 0s !important; transition-delay: 0s, 180ms; }
  .is-menu-open .aoao-nav-wrapper { transition-delay: 0s; }
  .aoao-primary-menu > li, .is-menu-open .aoao-primary-menu > li {
    transform: none;
    transition-duration: 180ms !important;
    transition-delay: 0s;
  }
}

/* Compact price cards and clear, touch-friendly slideshow pagination. */
.price-card-body { min-height: 96px; padding: 18px 24px 20px; }
.price-card-grid + .price-list-section { margin-top: 40px; }
.slider-dots {
  position: absolute; z-index: 5; left: 0; right: 0; bottom: 12px;
  display: flex; align-items: center; justify-content: center; gap: 2px;
  margin: 0; padding: 0; pointer-events: auto;
}
.slider-dots .slider-dot {
  display: grid; place-items: center; width: 30px; height: 30px;
  min-width: 0; margin: 0; padding: 0; border: 0; border-radius: 50%;
  background: transparent; box-shadow: none; cursor: pointer;
}
.slider-dot::before {
  content: ""; width: 8px; height: 8px; border-radius: 50%;
  border: 1px solid rgba(255,255,255,.95); background: rgba(30,30,30,.45);
  box-shadow: 0 1px 5px rgba(0,0,0,.3); transition: background-color .25s ease, transform .25s ease;
}
.slider-dot[aria-pressed="true"]::before { background: #fff; transform: scale(1.25); }
.slider-dot:focus-visible { outline: 2px solid white; outline-offset: -2px; }
.concept-photos > .slider-dots, .school-gallery > .slider-dots { display: none; }
.school-gallery-main { position: relative; }
.school-gallery-main > img {
  position: absolute; inset: 0; opacity: 0; pointer-events: none;
  transition: opacity 800ms cubic-bezier(.4,0,.2,1);
}
.school-gallery-main > img.is-active { opacity: 1; }
@media (max-width: 768px) {
  .price-card-body { min-height: 88px; padding: 16px 20px 18px; }
  .price-card-grid + .price-list-section { margin-top: 32px; }
  .concept-copy { padding-top: 24px; padding-bottom: 32px; }
  .concept-copy .concept-photos { margin-bottom: 22vw; }
  .concept-photos > .slider-dots, .school-gallery > .slider-dots { display: flex; }
  .concept-photos .concept-photo, .school-gallery > .school-gallery-item {
    transition: opacity 800ms cubic-bezier(.4,0,.2,1);
  }
}
@media (prefers-reduced-motion: reduce) {
  .concept-photos .concept-photo, .school-gallery > .school-gallery-item, .school-gallery-main > img {
    transition: opacity 350ms ease !important;
  }
}

/* Explicit spacing for card text and the SCHOOL course heading. */
.price-card-body { gap: 0; }
.page #entry-content .school-gallery ~ h2 { margin-top: 96px; }
@media (min-width: 769px) {
  #concept .instagram-feed-placeholder { margin-top: 180px; }
  .school-gallery-main > .slider-dots { display: none; }
}
@media (max-width: 768px) {
  .page #entry-content .school-gallery ~ h2 { margin-top: 64px; }
}

/* Override the theme image-block margin inside PRICE cards only. */
.page #entry-content .price-card { gap: 0; }
.page #entry-content .price-card > .price-card-image { margin: 0; }
.page #entry-content .price-card > .price-card-body { margin: 0; }
.page #entry-content .price-card-image img { display: block; }

/* TOP recruitment invitation. */
.home-recruit { padding: 96px 40px 0; }
.home-recruit-inner { display: grid; grid-template-columns: 1fr 1fr; max-width: 1140px; margin: 0 auto; background: #f5f2ed; }
.home-recruit .home-recruit-photo { margin: 0; min-height: 460px; }
.home-recruit-photo img { display: block; width: 100%; height: 100%; object-fit: cover; }
.home-recruit-copy { align-self: center; padding: 48px; }
.home-recruit .home-recruit-label { font-size: 12px; letter-spacing: .24em; color: #756b60; margin-bottom: 18px; }
.home-recruit h2 { font-size: 28px; font-weight: 400; line-height: 1.8; letter-spacing: .08em; margin: 0 0 24px; padding: 0; border: 0; background: none; }
.home-recruit h2::after { content: none; }
.home-recruit p { font-size: 14px; line-height: 2; letter-spacing: .04em; }
.home-recruit .home-recruit-note { margin-top: 18px; font-size: 12px; color: #756b60; }
.home-recruit-link { display: flex; align-items: center; justify-content: space-between; gap: 24px; width: min(100%,300px); margin-top: 26px; padding: 17px 24px; border: 1px solid #817363; color: #514638; font-size: 13px; transition: color .25s, background-color .25s; }
.home-recruit-link:hover { background: #645642; color: #fff; }
.home-recruit-link:focus-visible { outline: 2px solid #645642; outline-offset: 4px; }
@media (max-width: 768px) {
 .home-recruit { padding: 56px 6.5vw 0; }
 .home-recruit-inner { grid-template-columns: 1fr; }
 .home-recruit .home-recruit-photo { min-height: 0; aspect-ratio: 4 / 3; }
 .home-recruit-copy { padding: 30px 24px 36px; }
 .home-recruit h2 { font-size: clamp(14px, 4.4vw, 20px); letter-spacing: .02em; white-space: nowrap; }
 .home-recruit h2 br { display: none; }
 .home-recruit p { font-size: 13px; }
 .home-recruit-link { width: 100%; }
}

/* Keep the same section order for existing WordPress page content. */
#concept .center-fix {
  display: flex;
  flex-direction: column;
}
#concept .concept-copy { order: -1; }
#concept .instagram-feed-placeholder { order: 1; }
@media (min-width: 769px) {
  #concept .concept-copy { margin-top: 180px; }
}
@media (max-width: 768px) {
  #concept .instagram-feed-placeholder { margin-top: 16vw; }
  .price-card-body { padding: 14px 8px 16px; }
  .page #entry-content .price-card h2 {
    font-size: 13px;
    letter-spacing: 1px;
    overflow-wrap: anywhere;
  }
  .page #entry-content .price-card-price {
    font-size: 17px;
    letter-spacing: 1px;
  }
}
