:root {
  --bg: #fff7f0;
  --bg-yellow:#f0ffa3;
  --ink: #231815;
  --muted: #5b5b5b;
  --accent: #2e8ed5;
  --accent-dark: #156db1;
  --aqua: #1fa6b8;
  --shadow: 0 18px 40px rgba(0, 0, 0, 0.15);
  --radius-lg: 28px;
  --radius-sl: 60px;
  --radius-md: 20px;
  --section-pad: 35px;
  --slide-h: clamp(280px, 40vw, 520px);
  --hero-slide-bg: #f6f2ef;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: "Zen Maru Gothic", sans-serif;
  color: var(--ink);
  line-height: 1.75;
  overflow-x:hidden;
  font-size:18px;
}

img {
  max-width: 100%;
}

br.sp{
  display:none;
}

br.pc{
  display:block;
}

.site-header {
  background: #f9ffda;
}

.header-inner {
  display: flex;
  align-items: center;
  gap: 16px;
}

.header-logo {
  display: inline-flex;
  align-items: center;
}

a.header-logo:hover{
  opacity:1;
}

.header-sublogo {
  display: inline-flex;
  align-items: center;
  --header-logo-h: min(79px, 20vw);
  height: var(--header-logo-h);
  padding-block: 7px;
  box-sizing: border-box;
}

.header-logo img {
  width: min(240px, 60vw);
  height: auto;
  display: block;
}

.header-sublogo img {
  display: block;
  width: auto;
  height: 100%;
}

a {
  color: inherit;
  text-decoration:underline;
  transition:.3s;
}

a:hover {
  opacity:.5;
}

button {
  font-family: inherit;
}

.container {
  width: min(1120px, 92vw);
  margin: 0 auto;
}

.section-title {
  font-size: clamp(28px, 3vw, 40px);
  font-weight: 800;
  letter-spacing: 0.03em;
  margin: 0 0 24px;
}

.section-title span {
  color: var(--accent);
}

.hero {
  padding: 40px 0 70px;
  background:#f9ffda;
  --hero-slide-w: min(920px, 78vw, calc(var(--slide-h) * 16 / 9));
  --hero-btn-offset: 18px;
  --hero-corner-offset: 18px;
  overflow: hidden;
}

.hero .swiper {
  width: 100%;
  margin: 0 auto;
  overflow: visible;
  position: relative;
  --hero-pagination-space: 60px;
  padding-bottom: var(--hero-pagination-space);
}

.hero .swiper-wrapper {
  align-items: center;
}

.hero .swiper-slide {
  width: var(--hero-slide-w);
  transition: transform 0.45s ease, filter 0.45s ease;
  transform: scale(0.92);
  filter: brightness(0.95);
}

.hero .swiper-slide-active {
  transform: scale(1);
  filter: brightness(1);
}

.hero .swiper.is-repositioning .swiper-slide {
  transition: none;
}

.hero-slide {
  --hero-pad-y: calc(var(--slide-h) * 0.06);
  --hero-pad-x: 0px;
  height: var(--slide-h);
  width: 100%;
  display: block;
  border-radius: var(--radius-lg);
  overflow: hidden;
  position: relative;
  box-shadow: var(--shadow);
  background-color: var(--hero-slide-bg, #f6f2ef);
  background-image: var(--hero-slide-bg-image);
  background-repeat: round;
  background-position: center;
  border: none;
  padding-block: var(--hero-pad-y);
  padding-inline: var(--hero-pad-x);
  box-sizing: border-box;
  cursor: pointer;
  text-align: left;
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero-slide .hero-image {
  width: 100%;
  padding: 0;
  object-fit: unset;
  border-radius:var(--radius-sl);
  box-shadow: none;
  display: block;
  padding:40px;
}

.hero-corner {
  position: absolute;
  left: 60%;
  top: calc(70% - (var(--hero-pagination-space) / 2));
  width: auto;
  height: auto;
  max-width: 200px;
  max-height: none;
  object-fit: cover;
  opacity: 1;
  pointer-events: none;
  z-index: 25;
  transform: translate(
    calc((var(--hero-slide-w) / 2) - var(--hero-corner-offset)),
    calc((var(--slide-h) / 2) - var(--hero-corner-offset))
  ) translate(-100%, -100%);
}

.hero .swiper-button-prev,
.hero .swiper-button-next {
  width: 48px;
  height: 48px;
  border-radius: 999px;
  background: var(--bg-yellow);
  border:2px solid var(--accent);
  color: var(--accent);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  z-index: 30;
  pointer-events: auto;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}

.hero .swiper-button-prev::after,
.hero .swiper-button-next::after {
  font-size: 16px;
  font-weight: 700;
  font-family: "Zen Maru Gothic", sans-serif;
}

.hero .swiper-button-prev::after {
  content: "◀";
}

.hero .swiper-button-next::after {
  content: "▶";
}
.hero .swiper-button-prev:hover,
.hero .swiper-button-next:hover {
  transform: translate(-50%, calc(-50% - 2px));
  box-shadow: 0 16px 28px rgba(0, 0, 0, 0.2);
}

.hero .swiper-button-prev {
  left: calc(50% - (var(--hero-slide-w) / 2) - var(--hero-btn-offset));
}

.hero .swiper-button-next {
  left: calc(50% + (var(--hero-slide-w) / 2) + var(--hero-btn-offset));
}

.hero .swiper-pagination {
  bottom: 8px;
  left: 50%;
  width: var(--hero-slide-w);
  transform: translateX(-50%);
  text-align: center;
}

.hero .swiper-pagination-bullet {
  width: 14px;
  height: 14px;
  background: var(--accent);
  border:2px solid var(--accent);
  opacity: 1;
  margin: 0 6px !important;
  padding: 0;
  cursor: pointer;
}

.hero .swiper-pagination-bullet-active {
  background:none;
  border:2px solid var(--accent);
}


.lead {
  padding: var(--section-pad) 0;
  background:#fff;
  background-size: cover;
  background-position: center;
  position: relative;
  overflow: hidden;
}

.lead-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.lead-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: bottom;
  display: block;
}

.lead .container {
  position: relative;
  z-index: 1;
}

.lead-title-wrap {
    text-align: center;
}

h2.lead-title {
    display:inline-block;
    color: var(--accent);
    background:var(--bg-yellow);
    border: 4px dotted;
    padding: 0.25em 1em;
    font-size:1.8em;
    font-weight:800;
    margin-bottom: 50px;
    text-align:center;
}

.lead-img {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 30px;
    margin-bottom: 50px;
}

.lead-img img {
  max-width:620px;
}

.lead-img img.lead-logo{
  max-width:230px;
}

.lead-text {
  font-size: 1.35em;
  font-weight:500;
  text-align:justify;
}

.lead-text a {
    color: var(--accent);
}

.lead-cta {
  margin-top: 32px;
  text-align: center;
}

.lead-cta .lead-badge {
  text-decoration: none;
  color: var(--accent);
}

.lead-badge {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 10px 18px;
  border-radius: 999px;
  background: #fff;
  font-weight: 700;
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.1);
}

.news .container {
  border: 4px solid var(--accent);
  border-radius: 20px;
  padding: 30px 60px;
}

.news {
  padding: var(--section-pad) 0 120px 0;
  background: #fff;
  position: relative;
  z-index: 2;
}

.news h2{
  display:flex;
  justify-content:center;
  margin-bottom:20px;
}

.news h2 span{
  display: inline-block;
  text-align: center;
  color: var(--accent);
  background: var(--bg-yellow);
  font-size: 0.85em;
  width: 1.75em;
  height: 1.75em;
  border-radius: 9em;
  font-weight: 600;
}

.news-body {
  display: flex;
  align-items: flex-start;
  gap: 24px;
}

.news-side-image {
  width: min(200px, 28vw);
  aspect-ratio: 1 / 1;
  margin: 0;
  flex: 0 0 auto;
}

.news-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: block;
  flex: 1 1 320px;
  min-width: 0;
}

.news-item {
  display: grid;
  grid-template-columns: 140px 1fr;
  gap: 20px;
  margin-bottom: 18px;
  border-radius: var(--radius-md);
  align-items: start;
}

.news-item:last-child {
  margin-bottom: 0;
}

.news-item time {
  font-weight: 700;
  color: var(--accent);
}

.news-item a {
  font-weight: 600;
  color: var(--accent);
}

.videos {
  padding: var(--section-pad) 0 120px 0;
  background-color: transparent;
  background-image: var(--videos-bg-image);
  background-repeat: repeat;
  background-position: center;
  position: relative;
  z-index: 1;
  --news-wave-h: 40px;
  --news-wave-overlap: 30px;
  padding-top: calc(var(--section-pad) + var(--news-wave-overlap));
}

.videos::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  width: 100%;
  height: var(--news-wave-h);
  background-image: var(--videos-wave-image);
  background-repeat: repeat-x;
  background-position: top center;
  background-size: auto 100%;
  pointer-events: none;
  z-index: 2;
}


.tabs {
  display: flex;
  flex-wrap: nowrap;
  justify-content:center;
  gap: 12px;
  overflow: visible;
}

.tabs br {
  display: none;
}

.tab {
  --tab-color: var(--accent);
  border: none;
  background: var(--tab-color);
  border-radius: 25px 25px 0 0;
  padding: 10px 20px;
  font-weight: 700;
  color: #fff;
  cursor: pointer;
  transition: all 0.2s ease;
  flex: 1 1 0;
  width: auto;
  white-space: nowrap;
  min-width: 0;
  position: relative;
}

.tab.is-active::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: -10px;
  transform: translateX(-50%);
  border-left: 10px solid transparent;
  border-right: 10px solid transparent;
  border-top: 10px solid var(--tab-color);
}

.tab[data-tab="push"] {
  --tab-color: #29bd7e;
}

.tab[data-tab="teach"] {
  --tab-color: #fa6ab1;
}

.tab[data-tab="short"] {
  --tab-color: #a465d8;
}

.tab[data-tab="genre"] {
  --tab-color: #e78200;
}

.tab:focus-visible {
  outline-offset: 2px;
}

.tab-panel {
  display: none;
}

.tab-panel.is-active {
  display: block;
}

.video-list {
  display: grid;
  gap: 28px;
  background:#fff;
  padding: 60px 30px;
}

.video-row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
  padding-bottom: 20px;
  position: relative;
}

.video-list.is-three .video-row {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.video-row::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: 0;
  width: 570px;
  border-bottom: 4px dotted #1fa6b8;
  transform: translateX(-50%);
}

.video-row:last-child::after {
  display: none;
}

.tab-panel[data-panel="push"] .video-row::after {
  border-bottom-color: #29bd7e;
}

.tab-panel[data-panel="teach"] .video-row::after {
  border-bottom-color: #fa6ab1;
}

.tab-panel[data-panel="short"] .video-row::after {
  border-bottom-color: #a465d8;
}

.tab-panel[data-panel="genre"] .video-row::after {
  border-bottom-color: #e78200;
}

.video-card {
  background: #fff;
  border-radius: var(--radius-md);
  padding: 16px;
  text-align:center;
}

.video-frame {
  --video-frame-bg: #fff;
  padding: 14px;
  background: var(--video-frame-bg);
  border-radius: 18px;
}

.video-frame-inner {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  overflow: hidden;
}

.video-card.is-short .video-frame-inner {
  aspect-ratio: 9 / 16;
}

.video-frame-inner iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: none;
}

.tab-panel[data-panel="genre"] .genre-link {
  position: absolute;
  inset: 0;
  display: block;
}

.tab-panel[data-panel="genre"] .genre-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.video-title {
  margin: 12px 6px 4px;
  font-weight: 700;
}

.genre .video-row {
    padding-bottom: 0;
}

.tab-panel[data-panel="push"] .video-title {
  color: #29bd7e;
}

.tab-panel[data-panel="teach"] .video-title {
  color: #fa6ab1;
}

.tab-panel[data-panel="short"] .video-title {
  color: #a465d8;
}

.tab-panel[data-panel="genre"] .video-title {
  color: #e78200;
}

.tab-panel[data-panel="push"] .video-frame {
  --video-frame-bg: #d4f2e5;
}

.tab-panel[data-panel="teach"] .video-frame {
  --video-frame-bg: #fee1ef;
}

.tab-panel[data-panel="short"] .video-frame {
  --video-frame-bg: #ede0f7;
}

.tab-panel[data-panel="genre"] .video-frame {
  --video-frame-bg: #e78200;
}

.tab-panel[data-panel="genre"] .video-title {
  display: none;
}

.tab-panel[data-panel="genre"] .video-frame {
  padding: 0;
  background: transparent;
  border-radius: 0;
}

.tab-panel[data-panel="genre"] .video-frame-inner {
  border-radius: 0;
}

.tab-panel[data-panel="genre"] .video-row::after {
  display: none;
}

.footer {
  --footer-wave-h: 40px;
  --footer-wave-overlap: 30px;
  padding: calc(30px + var(--footer-wave-h)) 0 70px;
  background:#fff;
  color:var(--ink);
  border-bottom:50px solid #dcdcdc;
  box-sizing:border-box;
  position: relative;
  z-index: 1;
}

.footer-inner {
  position:relative;
  display: flex;
  flex-direction: column;
  gap: 16px;
  text-align:center;
  gap: 1.5em;
}

.footer::before {
  content: "";
  position: absolute;
  left: 0;
  top: calc(var(--footer-wave-h) * -1);
  width: 100%;
  height: var(--footer-wave-h);
  background-image: var(--footer-wave-image);
  background-repeat: repeat-x;
  background-position: top center;
  background-size: auto 100%;
  pointer-events: none;
  z-index: 2;
}

.footer-decoration {
  position: absolute;
  bottom: -170px;
  width: min(230px, 20vw);
  height: auto;
  transform: translateY(-50%);
  pointer-events: none;
}

.footer-decoration--left {
  left: -40px;
}

.footer-decoration--right {
  right: -40px;
}

.modal {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.7);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
  z-index: 20;
}

.modal.is-open {
  opacity: 1;
  pointer-events: auto;
}

.back-to-top {
  position: fixed;
  right: 24px;
  bottom: 24px;
  width: 100px;
  height:100px;
  border-radius: 999px;
  border: none;
  background: var(--accent);
  color: #fff;
  font-weight: 700;
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.2);
  cursor: pointer;
  opacity: 0;
  pointer-events: none;
  transform: translateY(12px);
  transition: opacity 0.2s ease, transform 0.2s ease;
  z-index: 50;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  line-height: 1.25;
  font-size:20px;
  gap:5px;
}

.back-to-top span{
  font-size: 30px;
  line-height: 22px;
}

.back-to-top.is-visible {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

.back-to-top:focus-visible {
  outline: 3px solid rgba(255, 79, 107, 0.45);
  outline-offset: 3px;
}

.modal-content {
  width: min(900px, 92vw);
  background: #111;
  border-radius: 24px;
  overflow: hidden;
  position: relative;
}

.modal-content iframe {
  width: 100%;
  height: min(70vh, 520px);
  border: none;
  display: block;
}

.modal-close {
  position: absolute;
  top: 10px;
  right: 12px;
  background: rgba(255, 255, 255, 0.9);
  border: none;
  width: 36px;
  height: 36px;
  border-radius: 999px;
  font-size: 20px;
  cursor: pointer;
}

body.is-modal-open {
  overflow: hidden;
}

@media (max-width: 1200px) {
  .hero-corner{max-width:150px;}
}

@media (max-width: 980px) {
  .lead-inner {
    grid-template-columns: 1fr;
  }

  .news-item {
    grid-template-columns: 1fr;
  }

  .news-body {
    flex-direction: column;
    align-items: center;
  }

  .news-list {
    width: 100%;
  }

.news-item{gap:0;margin-bottom:20px;}

  .news-side-image {
    width: min(165px, 70vw);
    margin: 0 auto;
  }

  .video-list.is-three .video-row {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (min-width: 1024px) {
  :root {
    --slide-h: clamp(420px, 35vw, 520px);
  }
}

@media (max-width: 768px) {
  :root {
    --slide-h: clamp(280px, 60vw, 360px);
  }

  body {
    font-size:16px;
  }
  .hero {
    --hero-slide-w: min(calc(100vw - 32px), calc(var(--slide-h) * 16 / 9));
    --hero-btn-offset: 10px;
  }

  .hero-slide .hero-image{
    padding:20px;
    border-radius:30px;
  }

  .tabs {
    gap: 10px;
    overflow: visible;
  }

  .tabs br {
    display: block;
  }

  .tab {
    font-size: 14px;
    padding: 10px 8px;
    border-radius: 18px 18px 0 0;
  }

  .video-card{padding:0;}
  .video-list{
    padding:2em 5vw;
    gap:0;
  }

  .video-row::after {
    display: none;
  }
}

@media (max-width: 760px) {
  br.sp{
  display:block;
}

br.pc{
  display:none;
}

  .hero .swiper-button-prev,
  .hero .swiper-button-next {
    top: 50%;
    transform: translateY(-50%);
  }

  .hero .swiper-button-prev {
    left: 12px;
    right: auto;
  }

  .hero .swiper-button-next {
    left: auto;
    right: 12px;
  }

  .hero .swiper-button-prev:hover,
  .hero .swiper-button-next:hover {
    transform: translateY(calc(-50% - 2px));
  }
  .hero-corner {
        max-width: 120px;
        left: 55%;
        top: calc(90% - (var(--hero-pagination-space) / 2));
    }
  
    .lead-logo{max-width:160px;}

    .lead-img img{width:100%;}
}

@media (max-width: 700px) {
  :root {
    --section-pad: 70px;
  }

  .hero {
    padding: 50px 0 100px;
  }

.news .container {
    padding: 2em 5vw;
}

  .video-row {
    grid-template-columns: 1fr;
  }

  .video-list.is-three .video-row {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .videos {
    --news-wave-h: 32px;
    --news-wave-overlap: 32px;
  }

  .tab-panel[data-panel="short"] .video-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 20px;
  }

  .tab-panel[data-panel="short"] .video-row {
    display: contents;
  }

  .footer{
    --footer-wave-h: 32px;
    --footer-wave-overlap: 32px;
    padding-top: calc(20px + var(--footer-wave-overlap));
    padding-bottom:120px;
  }

    .footer-decoration {
    bottom:-200px;
    width: min(150px, 50vw);
    margin: 0 auto;
  }
  .footer-decoration--left{left:0;}
  .footer-decoration--right{right:0;}
}

@media (max-width: 520px) {
  .tabs {
    gap: 5px;
  }

  .tab {
    font-size: 13px;
  }

  .back-to-top {
    right: 16px;
    bottom: 16px;
    width: 70px;
    height: 70px;
    font-size: 13px;
    gap:0;
    line-height: 1.1;
  }
.back-to-top span {
    font-size: 22px;
    line-height: 17px;
}
}
