@import url('https://fonts.googleapis.com/css2?family=Cal+Sans&family=Cherry+Bomb+One&family=Playwrite+AU+SA:wght@100..400&display=swap');
@import url("https://fonts.googleapis.com/icon?family=Material+Icons");
@import url("https://fonts.googleapis.com/css2?family=Material+Symbols+Outlined");

/* --- 共通ユーティリティ・基本設定 --- */

:root {
    --main-color: #78977C;
    --accent-color: #F9F9F6;
    --text-color: #333333;
}
body {
    margin: 0;
    font-family: "Noto Sans", sans-serif;
    background: var(--accent-color);
    color: var(--text-color);
    scroll-behavior: smooth;
}

/* --- アニメーション・エフェクト --- */

/* 文字スプリットアニメーション */
.split-title .char {
  opacity: 0;
  transform: translateY(20px);
  animation: charFadeIn .5s forwards;
  animation-delay: calc(var(--char-index) * .08s);
}

@keyframes charFadeIn {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

[data-aos="fade-up"] {
  transform: translateY(20px);
  opacity: 0;
  transition: all 0.6s ease;
}
[data-aos="fade-up"].aos-animate {
  transform: translateY(0);
  opacity: 1;
}

/* フェードイン／アウト */
.fade-in {
  opacity: 0;
  transform: translateY(10px);
  animation: fadeIn .8s forwards;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.fade-out {
  animation: fadeOut .6s forwards;
}

@keyframes fadeOut {
  to {
    opacity: 0;
    transform: translateY(-10px);
    display: none;
  }
}


/* スクロールテキスト */
.scrolling-text-wrapper {
  overflow: hidden;
  white-space: nowrap;
  background: transparent;
  padding: 40px 0;
  position: relative;
}

.scrolling-text {
  display: inline-block;
  animation: scrollText 40s linear infinite;
  font-family: "Playwrite AU SA", cursive;
  font-size: 4rem;
  color: rgba(0, 0, 0, .05);
  font-weight: bold;
  letter-spacing: .1em;
}

@keyframes scrollText {
  0% {
    transform: translateX(0%);
  }
  100% {
    transform: translateX(-100%);
  }
}


/* 上下に入るアニメーション（共通） */
@keyframes fadeInDown {
  from {
    opacity: 0;
    transform: translateY(-30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}


/* ロケット打ち上げアニメーション */
.rocket-animate {
  animation: rocketZoom 0.6s ease-out;
}

@keyframes rocketZoom {
  0% {
    transform: translateY(0) scale(1);
    opacity: 1;
  }
  30% {
    transform: translateY(-10px) scale(1.1);
  }
  100% {
    transform: translateY(-200px) scale(0);
    opacity: 0;
  }
}

/* === AOS CSS === */

/*!
 * AOS v2.3.1
 * https://michalsnik.github.io/aos/
 * Licensed under MIT
 */
[data-aos] {
  opacity: 0;
  transition-property: opacity, transform;
}
[data-aos].aos-animate {
  opacity: 1;
}


/* === Splitting CSS === */

/*!
 * Splitting.js v1.0.6
 * https://splitting.js.org
 * Licensed under MIT
 */
.splitting .word {
  display: inline-block;
  white-space: nowrap;
}
.splitting .char {
  display: inline-block;
}


/* --- 共通パーツ --- */
.section {
    padding: 60px 20px;
    text-align: center;
}
.section h2 {
    color: #2a2a2a;
    font-size: 2rem;
    font-weight: bold;
    margin-bottom: 20px;
}
.accordion-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height .5s ease;
    padding-left: 20px;
    margin-top: 10px;
}
.accordion-content.open {
    max-height: 1500px;
}
.button-align-right {
    text-align: right;
    margin-top: 20px;
}
.card {
    background: white;
    color: var(--text-color);
    padding: 20px;
    border-radius: 20px;
    width: 280px;
    margin: 20px 0;
}
.card-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 20px;
}
.card h3 {
    padding: 10px 15px;
    border-radius: 8px 8px 0 0;
    font-size: 1.5rem;
    font-weight: bold;
    color: #78977c;
    border-bottom: solid 1px;
    margin: 0 30px 10px;
    text-align: center;
}
.circle-button:hover .circle-icon::after {
    transform: translate(-50%, -50%) scale(8);
    opacity: 0;
}
.circle-button:hover .circle-icon {
    transform: translateX(3px) rotate(0deg);
    background-color: rgba(120, 151, 124, .8);
}
.circle-button {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 10px 0;
    font-size: .95rem;
    font-weight: 600;
    color: var(--main-color);
    background-color: transparent;
    border: none;
    border-radius: 9999px;
    text-decoration: none;
    transition: background .3s, transform .3s;
    position: relative;
}
.circle-button:hover {
    color: #5d7668;
    transform: scale(1.5);
}
.font-numeric {
    font-family: "Cal Sans", sans-serif;
    font-variant-numeric: lining-nums;
    font-size: 1.8rem;
}
.highlight-marker {
    background: linear-gradient(transparent 60%, #f7f77a 60%);
    font-weight: bold;
}


/* --- ヘッダー共通 --- */

header {
    position: relative;
    height: 100vh;
    overflow: hidden;
    text-align: center;
    color: white;
}
header::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url("../images/bg.webp") center/cover no-repeat;
    filter: brightness(.6);
    z-index: -2;
}
#floating-dots {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    pointer-events: none;
}


/* --- ナビゲーション（メニュー） --- */

.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 30px 40px 10px;
    max-width: 1200px;
    margin: 0 auto;
    width: 100%;
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    z-index: 10;
    animation: fadeInDown 1s ease-out;
    box-sizing: border-box;
}
.nav-left a {
    display: block;
}
.nav-right {
    flex-grow: 1;
    text-align: right;
}
.nav-links {
    list-style: none;
    display: inline-flex;
    gap: 25px;
    margin: 0;
    padding: 0;
}
.nav-links a {
    color: white;
    text-decoration: none;
    font-weight: bold;
    font-size: 1.08rem;
}
.nav-flip {
    position: relative;
    display: inline-block;
    overflow: hidden;
    height: 1em;
    line-height: 1;
}
.nav-flip span {
    display: block;
    transition: transform .4s ease, opacity .4s ease;
}
.nav-flip::before {
    content: attr(data-text);
    position: absolute;
    left: 0;
    top: 100%;
    width: 100%;
    text-align: left;
    color: white;
    transition: transform .4s ease, opacity .4s ease;
    opacity: 0;
}
.nav-flip:hover span {
    transform: translateY(-100%);
    opacity: 0;
}
.nav-flip:hover::before {
    transform: translateY(-100%);
    opacity: 1;
}
.logo img {
    height: 35px;
    width: auto;
}
.burger {
    position: fixed;
    top: 20px;
    right: 20px;
    display: none;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 4px;
    width: auto;
    background: none;
    background: rgba(0, 0, 0, .2);
    border: none;
    cursor: pointer;
    color: white;
    font-size: .8rem;
    font-weight: bold;
    z-index: 100000;
    border-radius: 8px;
    padding: 10px;
}
.burger-lines {
    display: flex;
    flex-direction: column;
    gap: 6px;
}
.burger-lines span {
    display: block;
    height: 3px;
    width: 24px;
    background: white;
    border-radius: 2px;
    transition: .4s;
}
.burger.open .burger-lines span:nth-child(1) {
    transform: rotate(45deg) translateY(8px);
}
.burger.open .burger-lines span:nth-child(2) {
    opacity: 0;
}
.burger.open .burger-lines span:nth-child(3) {
    transform: rotate(-45deg) translateY(-8px);
}
.burger-label {
    margin-top: 4px;
    font-size: .75rem;
    letter-spacing: .05em;
}
.mobile-menu {
    display: flex;
    flex-direction: column;
    position: fixed;
    top: 0;
    right: -100%;
    height: 100vh;
    width: 80%;
    max-width: 300px;
    background: linear-gradient(to bottom,
            rgba(20, 25, 30, 0.85),
            rgba(20, 25, 30, 0.75));
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    padding: 40px 20px;
    gap: 0;
    text-align: left;
    align-items: flex-start;
    box-sizing: border-box;
    z-index: 99999;
    transition: right 0.3s ease;
    list-style: none;
    margin: 0;
}
.mobile-menu.open {
    right: 0;
}
.mobile-menu li {
    width: 100%;
    padding: 20px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}
.mobile-menu li:first-child {
    padding-top: 0;
}
.mobile-menu li:last-child {
    border-bottom: none;
    padding-bottom: 0;
}
.mobile-menu-logo {
    width: 100%;
    text-align: center;
    padding-bottom: 12px;
    margin-bottom: 12px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}
.mobile-menu-logo img {
    width: 240px;
    opacity: 0.9;
    max-width: 90%;
    height: auto;
    padding-top: 58px;
}
.mobile-menu a {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    color: white;
    text-decoration: none;
    font-weight: 600;
    font-size: 1.05rem;
    padding: 14px 36px 14px 20px;
    box-sizing: border-box;
    transition: color 0.3s ease;
}
.menu-icon {
    font-family: "Material Icons";
    font-size: 1.4rem;
    margin-right: 12px;
    opacity: 0.8;
    display: flex;
    align-items: center;
}
.menu-label {
    flex-grow: 1;
    display: flex;
    align-items: center;
}
.mobile-menu a::after {
    content: "navigate_next";
    font-family: "Material Icons";
    font-weight: normal;
    font-style: normal;
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 1.2rem;
    color: rgba(255, 255, 255, 0.4);
    transition: transform 0.3s ease, color 0.3s ease;
    line-height: 1;
}
.mobile-menu a:hover::after {
    transform: translateY(-50%) translateX(4px);
    color: #b2dfdb;
}
.menu-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 99998;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}
.menu-overlay.open {
    opacity: 1;
    pointer-events: auto;
}


/* --- ヒーローセクション --- */

.cta-button {
    margin-top: 2rem;
    padding: 1rem 2rem;
    background: var(--main-color);
    color: white;
    border: none;
    border-radius: 30px;
    font-size: 1rem;
    cursor: pointer;
    transition: background .3s;
    text-decoration: none;
    display: inline-block;
    text-align: center;
}
.cta-button:hover {
    background: #5d7668;
}
.hero-text {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 5;
    text-align: center;
    width: 100%;
    padding: 0 16px;
    box-sizing: border-box;
    transition: opacity 0.3s ease, transform 0.3s ease;
    will-change: opacity, transform;
}

/* main-copy（英語キャッチ） */
.main-copy {
  font-family: "Playwrite AU SA", cursive;
  font-size: 3rem;
  margin: 0;
  opacity: 0;
  animation: fadeInUp 1.5s ease-out forwards;
  animation-delay: .5s;
}

/* sub-copy（日本語キャッチ） */
.sub-copy {
  margin-top: 1rem;
  font-size: 1.5rem;
  opacity: 0;
  animation: fadeInUp 1.5s ease-out forwards;
  animation-delay: 1.2s;
}

/* intro-message（h1） */
.intro-message {
  font-size: 0.8rem;
  font-weight: normal;
  text-align: left;
  max-width: 600px;
  margin: 1.5rem auto 0;
  line-height: 1.7;
  color: #fff;
  opacity: 0;
  animation: fadeInUp 1.5s ease-out forwards;
  animation-delay: 2s;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* ローディング後、表示固定（lcp-ready） */
.hero-text.lcp-ready .main-copy,
.hero-text.lcp-ready .sub-copy,
.hero-text.lcp-ready .intro-message {
  opacity: 1;
  transform: none;
  animation: none;
  transition: none;
}


/* --- about（はじめに） --- */

#about {
    scroll-margin-top: 100px;
}
.about-inner {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 100px;
    max-width: 1100px;
    margin: 0 auto;
}
.about-slides {
    position: relative;
    width: 80%;
}
.about-text.slide {
    position: absolute;
    top: 0;
    left: 0;
    background: white;
    padding: 50px;
    border-radius: 20px;
    opacity: 0;
    transition: opacity .6s ease;
}
.about-text.slide.active {
    opacity: 1;
    position: relative;
}
.about-text.slide h2 {
    font-family: "Playwrite AU SA", cursive;
    font-size: 1.8rem;
    text-align: center;
}
.about-text.slide p {
    text-align: justify;
    line-height: 1.8;
}
.about-image {
    position: absolute;
    right: 0px;
    top: -90px;
    transform: none;
    z-index: 0;
    opacity: .85;
}
.about-image img {
    width: 340px;
    height: auto;
    transition: transform .4s ease;
}
.section.intro-section {
    padding: 60px 20px 20px;
    text-align: center;
}
.intro-section h2 {
    font-size: 2.4rem;
    margin-bottom: 30px;
    color: #2a2a2a;
}
.more-button {
    position: absolute;
    left: 190px;
    top: 230px;
    width: 80px;
    height: 80px;
    background: var(--main-color);
    color: white;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 2rem;
    text-decoration: none;
    transition: background .3s, transform .3s;
    z-index: 2;
}
.about-illust {
  transition: transform 0.4s ease;
}
.about-image:hover .more-button {
  background: rgba(120, 151, 124, .8);
  transform: scale(1.2);
}

.about-image:hover .about-illust {
  transform: scale(1.2);
}
.ripple {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 10px;
    height: 10px;
    background: rgba(255, 255, 255, .5);
    border-radius: 50%;
    transform: translate(-50%, -50%) scale(0);
    transition: transform .6s ease-out, opacity .6s ease-out;
    pointer-events: none;
}
.circle-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background-color: #9eb7a0;
    color: white;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    font-size: 1.1rem;
    transition: transform .3s ease, background-color .3s ease;
    position: relative;
    z-index: 1;
}
.circle-icon::after {
    content: "";
    position: absolute;
    top: 50%;
    left: 50%;
    width: 10px;
    height: 10px;
    background: rgba(255, 255, 255, .5);
    border-radius: 50%;
    transform: translate(-50%, -50%) scale(0);
    transition: transform .6s ease-out, opacity .6s ease-out;
    pointer-events: none;
    z-index: 0;
    opacity: 1;
}
.circle-icon.rotate-icon.open {
    transform: rotate(180deg);
}

.about-pagination {
  display: flex;
  justify-content: center;
  gap: 16px;
  margin-top: 30px;
}

.bar {
  width: 40px;
  height: 6px;
  background: #ccc;
  border-radius: 4px;
  cursor: pointer;
  transition: background 0.3s, transform 0.3s;
}

.bar.active {
  background: var(--main-color); /* 例: #78977C */
  transform: scaleX(1.2);
}

/* --- services（レッスンメニュー） --- */

.main-service {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 40px;
    max-width: 1000px;
    margin: 0 auto 60px;
}
.main-service-summary {
    margin-top: 5px;
}
.main-service-detail {
    max-width: 600px;
    text-align: left;
}
.price {
    text-align: right;
    font-weight: bold;
    margin-top: 20px;
    font-size: 1rem;
}
.service-card {
    padding: 20px;
}
.service-card-title {
    padding: 10px 15px;
    border-radius: 8px 8px 0 0;
    font-size: 1.5rem;
    color: #78977c;
    border-bottom: solid 1px;
    margin: 0 30px;
    text-align: center;
}
.puppy-banner {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 40px;
    background: #f8f8f4;
    padding: 40px 24px;
    border-radius: 8px;
    max-width: 900px;
    margin: 40px auto;
    flex-wrap: wrap;
    box-sizing: border-box;
}
.puppy-speech {
    max-width: 480px;
    line-height: 1.8;
    word-break: break-word;
    margin: 0 auto;
}
.puppy-image img {
    height: auto;
    opacity: .95;
}
.puppy-image.puppy-left img {
    width: 100px;
    margin-top: 50px;
}
.puppy-image.puppy-right img {
    width: 130px;
}
.puppy-speech h3 {
    font-family: "Cherry Bomb One", system-ui;
    font-size: 2.2rem;
    margin-bottom: 16px;
    text-align: center;
}
.puppy-speech p {
    text-align: justify;
}
.rotate-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: transform .4s ease;
}
.rotate-icon.open {
    transform: translateX(3px) rotate(180deg);
}


/* --- trainer（トレーナー紹介） --- */

.trainer-bio {
    margin-top: 20px;
    font-size: .95rem;
    line-height: 1.8;
}
.trainer-box {
    max-width: 800px;
    margin: 0 auto;
    text-align: left;
}
.trainer-header {
    display: flex;
    gap: 30px;
    align-items: flex-start;
    flex-wrap: wrap;
}
.trainer-licenses {
    list-style: none;
    padding: 0;
    margin: 0;
    font-size: .95rem;
    line-height: 1.6;
}
.trainer-licenses li {
    margin-bottom: 4px;
}
.trainer-meta {
    flex: 1;
}
.trainer-name {
    font-size: 1.5rem;
    margin: 0 0 10px;
}
.trainer-photo img {
    width: 240px;
    border-radius: 50%;
    object-fit: cover;
    aspect-ratio: 1/1;
    box-shadow: 0 4px 12px rgba(0, 0, 0, .1);
}
.trainer-sub {
    font-size: 1rem;
    color: #777;
    display: inline-block;
    margin-left: 8px;
}
.bg-video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 0;
    filter: brightness(0.5);
}
.license-card {
    position: relative;
    z-index: 1;
    background: rgba(255, 255, 255, 0.8);
    border-radius: 20px;
    padding: 32px 48px;
    max-width: 400px;
    margin: 0 auto;
    box-sizing: border-box;
    border: 1px solid rgba(0, 0, 0, 0.05);
}
.with-video-bg {
    position: relative;
    overflow: hidden;
    padding: 80px 20px;
    margin-top: 60px;
}
.license-list {
    list-style: none;
    padding: 20px;
    margin: 0;
    font-size: 0.95rem;
    line-height: 1.6;
    color: #444;
}
.license-list li {
    display: flex;
    margin-bottom: 10px;
}
.label {
    min-width: 100px;
    font-weight: 600;
    text-align: left;
}
.label::after {
    content: "：";
    margin-left: 2px;
}
.value {
    flex: 1;
}


/* --- contact（問い合わせ） --- */

#contact-form {
    max-width: 600px;
    margin: 0 auto;
    font-size: 1rem;
    line-height: 1.6;
}
.form-group {
    margin-bottom: 20px;
}
.form-group label {
    display: block;
    font-weight: bold;
    margin-bottom: 6px;
    color: #333;
}
.form-group input, .form-group textarea {
    width: 100%;
    padding: 10px;
    border: 1.5px solid #ccc;
    border-radius: 6px;
    font-size: 1rem;
    font-family: inherit;
    box-sizing: border-box;
    transition: border-color .3s ease;
}
.form-group input:focus, .form-group textarea:focus {
    border-color: var(--main-color, #78977c);
    outline: none;
}
#contact-form .cta-button {
    display: inline-block;
    background: var(--main-color, #78977c);
    color: white;
    padding: 12px 24px;
    font-size: 1rem;
    border: none;
    border-radius: 30px;
    cursor: pointer;
    transition: background .3s ease;
}
#contact-form .cta-button:hover {
    background: #5d7668;
}
.g-recaptcha {
    margin-top: 10px;
}
.hidden {
    display: none;
}
.thankyou-message {
    text-align: center;
    padding: 40px 20px;
    max-width: 600px;
    margin: 0 auto;
}
.privacy-note {
  font-size: 0.8rem;
  color: #555;
  text-align: left;
  margin-top: 48px;
  line-height: 1.6;
}
.privacy-note a {
  color: #78977c;
  text-decoration: underline;
}

/* --- brand（取り扱いブランド） --- */

.brand {
    padding: 40px 20px;
    text-align: center;
    background-color: #f9f9f9;
}
.brand-logos {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 24px;
    flex-wrap: wrap;
}
.brand-logos img {
    max-height: 40px;
    height: auto;
    width: auto;
    max-width: 120px;
    opacity: 0.85;
    transition: opacity 0.3s ease;
    object-fit: contain;
}
.brand-logos img:hover {
    opacity: 1;
}


/* --- フッター --- */

footer {
    background: var(--main-color);
    color: white;
    padding: 20px;
    text-align: center;
}
footer a {
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.7);
  font-weight: 400;
  }
footer a:hover {
  text-decoration: none;
  opacity: 0.8;
}
footer .link-icon {
  font-size: 1em;
  vertical-align: middle;
  margin-left: 4px;
}
footer .credit-text {
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.7);
  font-weight: 400;
}
/* --- TOPボタン --- */

.back-to-top {
    position: fixed;
    bottom: 32px;
    right: 32px;
    width: 64px;
    height: 64px;
    background: rgba(0, 0, 0, 0.2);
    color: white;
    border: none;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background 0.3s ease, transform 0.3s ease;
    opacity: 0;
    pointer-events: none;
    z-index: 9999;
    position: fixed;
}
.back-to-top.show {
    opacity: 1;
    pointer-events: auto;
}
.back-to-top:hover {
    background: rgba(0, 0, 0, 0.3);
    transform: scale(1.05);
}
.back-to-top .material-symbols-outlined {
    font-size: 32px;
    line-height: 1;
}
.top-label {
    position: absolute;
    top: -28px;
    background: rgba(0, 0, 0, 0.7);
    color: white;
    font-size: 12px;
    padding: 4px 8px;
    border-radius: 4px;
    opacity: 0;
    transform: translateY(4px);
    transition: opacity 0.3s ease, transform 0.3s ease;
    pointer-events: none;
    white-space: nowrap;
}
.back-to-top:hover .top-label {
    opacity: 1;
    transform: translateY(0);
}


/* --- タッチデバイスでの hover 効果を抑制 --- */
@media (hover: none) and (pointer: coarse) {
  .more-button:hover {
    background: rgba(120, 151, 124, .8);
    transform: scale(1.2);
  }
  .more-button:hover~.about-illust {
    transform: scale(1.2);
  }
}

/* --- モバイルレイアウト調整（幅768px以下） --- */
@media (max-width: 768px) {
  /* 非表示 */
  .back-to-top {
    display: none;
  }

  /* ヘッダー調整 */
  header {
    height: 100vh;
    padding: 0;
    position: relative;
  }
  .nav-right {
    display: none;
  }
  .navbar {
    padding: 20px;
  }
  .logo img {
    height: 30px;
  }

  /* ヒーローテキスト */
  .hero-text {
    width: 90%;
  }
  .hero-text h1 {
    font-size: 1.4rem;
  }
  .hero-text p {
    font-size: 1.1rem;
  }
  .cta-button {
    font-size: .95rem;
    padding: .8rem 1.6rem;
  }
  .main-copy {
    font-size: 1.68rem;
  }
  .sub-copy {
    font-size: 1.1rem;
  }
  /* ハンバーガーメニュー */
  .burger {
    display: flex;
  }

  /* about セクション */
  .about-inner {
    flex-direction: column;
    align-items: center;
    gap: 40px;
    padding: 0 10px;
  }
  .about-slides {
    width: 100%;
  }
  .about-text.slide {
    padding: 24px 16px;
  }
    .about-image {
    position: static;
    opacity: 1;
    text-align: center;
    margin-top: 20px;
  }
  .about-image img {
    max-width: 300px;
    margin-top: 40px;
  }
  .more-button {
    position: static;
    margin: -140px 0 0 auto;
    width: 60px;
    height: 60px;
  }
  .about-text.slide h2 {
    font-size: 1.4rem;
  }
  .about-text p {
    font-size: 0.95rem;
    line-height: 1.7;
    text-align: left;
  }
  
  /* services（レッスン） */
  .puppy-speech h3 {
    margin: 0;
    font-size: 1.8rem;
    text-align: center;
    word-break: break-word;
  }
  .main-service {
    flex-direction: column;
    align-items: stretch;
    gap: 20px;
    padding: 0 20px;
  }
  .main-service-detail {
    max-width: 100%;
    text-align: left;
  }
  .card.service-card {
    width: 100%;
    box-sizing: border-box;
  }
  .button-align-right {
    text-align: center;
  }
  .accordion-content {
    padding-left: 10px;
  }
  .card-container {
    flex-direction: column;
    align-items: stretch;
    padding: 0 24px;
  }
  .card-container .card {
    width: 100%;
    box-sizing: border-box;
  }

  /* 子犬バナー */
  .puppy-banner {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }
  .puppy-image.puppy-left {
    order: 1;
    margin-bottom: 12px;
  }
  .puppy-image.puppy-left img {
    margin: 0;
  }
  .puppy-speech {
    order: 2;
    width: 100%;
    text-align: justify;
  }
  .puppy-image.puppy-right {
    order: 3;
    margin-top: 12px;
  }
  .puppy-image img {
    width: 90px;
    height: auto;
    opacity: .95;
  }

  /* trainer（トレーナー紹介） */
  .trainer-header {
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 20px;
  }
  .trainer-photo img {
    width: 180px;
  }
  .trainer-meta {
    width: 100%;
  }
  .trainer-name {
    font-size: 1.3rem;
  }
  .trainer-sub {
    font-size: .9rem;
  }
  .trainer-licenses {
    font-size: .9rem;
    text-align: left;
    padding: 10px 24px;
  }
  .trainer-bio {
    font-size: .95rem;
    line-height: 1.7;
    padding: 0 16px;
    text-align: justify;
  }

  /* license（標識） */
  .license-card {
    max-width: 90%;
    padding: 24px 20px;
  }
  .license-card h3.service-card-title {
    font-size: 1.2rem;
    text-align: center;
  }
  .license-list li {
    flex-direction: column;
    gap: 4px;
  }
  .license-list .label {
    min-width: auto;
    font-weight: 600;
  }
  .license-list .value {
    flex: unset;
  }

  /* ライセンス背景動画（置き換え） */
  .bg-video {
    display: none;
  }
  .with-video-bg {
    background-image: url('../images/bg-license-fallback.jpg'); /* フォールバック */
    background-image: 
    image-set(
      url('../images/bg-license-fallback.webp') type('image/webp'),
      url('../images/bg-license-fallback.jpg') type('image/jpeg')
    );
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
  }
}
