:root {
  /* Color Palette - Refined & High Quality */
  --color-bg: #fdfdfb;
  --color-bg-alt: #f1f8e9;
  --color-primary: #66bb6a;
  --color-primary-dark: #2e7d32;
  --color-primary-light: #e8f5e9;
  --color-accent: #fff176;
  --color-text: #37474f;
  --color-text-light: #78909c;
  --color-white: #ffffff;

  /* Glassmorphism & Effects */
  --glass-bg: rgba(255, 255, 255, 0.7);
  --glass-border: rgba(255, 255, 255, 0.5);
  --blur-val: 12px;

  /* Typography */
  --font-base: "Noto Sans JP", sans-serif;
  --font-accent: "Zen Old Mincho", serif;

  /* Layout */
  --container-width: 1100px;
  --container-narrow: 800px;
}

/* Reset & Base */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
  overflow-x: hidden;
  width: 100%;
}

body {
  font-family: var(--font-base);
  color: var(--color-text);
  background-color: var(--color-bg);
  line-height: 1.8;
  overflow-x: hidden;
  overflow-wrap: break-word;
  word-break: auto-phrase;
  line-break: strict;
  text-wrap: pretty;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  text-decoration: none;
  color: inherit;
  transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.u-inline-block {
  display: inline-block;
  text-decoration: inherit;
  white-space: nowrap; /* 不自然な改行を絶対に防ぐ */
}

.u-sp-only {
  display: none;
}

@media (max-width: 767px) {
  .u-sp-only {
    display: inline;
  }
}

ul {
  list-style: none;
}

/* Common Components */
.container {
  max-width: var(--container-width);
  margin: 0 auto;
  padding: 0 20px;
}

.section--narrow {
  max-width: var(--container-narrow);
}

.section {
  padding: 100px 0;
}

@media (max-width: 767px) {
  .section {
    padding: 60px 0;
  }
}

.section-title {
  font-family: var(--font-accent);
  font-size: clamp(1.75rem, 5vw, 2.8rem);
  text-align: center;
  margin-bottom: 60px;
  position: relative;
  line-height: 1.4;
  color: var(--color-primary-dark);
  text-wrap: balance;
}

.hero__sub,
.service__subtitle,
.trial__title,
.service-detail__title,
.service__card-title,
.learning-diagram__title,
.problems__item-title,
.about__highlight {
  text-wrap: balance;
}

.section-title::after {
  content: "";
  display: block;
  width: 60px;
  height: 4px;
  background: linear-gradient(90deg, var(--color-primary), var(--color-accent));
  margin: 25px auto 0;
  border-radius: 10px;
}

/* Decorative Leaf Motif */
.section-title::before {
  content: "";
  display: block;
  width: 40px;
  height: 40px;
  background-color: var(--color-primary-light);
  mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M17,8C8,10 5.9,16.17 3.82,21.34L5.71,22L9.66,12.11C12,13 17.27,11.57 21.5,5.5C21.5,5.5 13.5,4.5 10,8.5C10,8.5 16,9 17,8M3,2C4.13,3 5.4,4 6.64,5.43C7.5,6.4 8.23,7.5 8.77,8.68C9.2,9.6 9.5,10.6 9.7,11.58L8.29,12C8,10 7.5,8 6.5,6L3,2Z'/%3E%3C/svg%3E");
  -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M17,8C8,10 5.9,16.17 3.82,21.34L5.71,22L9.66,12.11C12,13 17.27,11.57 21.5,5.5C21.5,5.5 13.5,4.5 10,8.5C10,8.5 16,9 17,8M3,2C4.13,3 5.4,4 6.64,5.43C7.5,6.4 8.23,7.5 8.77,8.68C9.2,9.6 9.5,10.6 9.7,11.58L8.29,12C8,10 7.5,8 6.5,6L3,2Z'/%3E%3C/svg%3E");
  mask-size: contain;
  -webkit-mask-size: contain;
  mask-repeat: no-repeat;
  -webkit-mask-repeat: no-repeat;
  margin: 0 auto 15px;
  opacity: 0.6;
  transform: rotate(-15deg);
}

.btn {
  display: inline-block;
  padding: 18px 44px;
  border-radius: 100px;
  font-weight: 700;
  cursor: pointer;
  text-align: center;
  line-height: 1.3; /* 窮屈さを解消するため、1.25〜1.3程度に微調整 */
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease;
}

.btn--primary {
  background-color: var(--color-primary);
  color: var(--color-white);
}

.btn--primary:hover {
  background-color: var(--color-primary-dark);
  transform: translateY(-3px);
  box-shadow: 0 15px 30px rgba(102, 187, 106, 0.3);
}

.btn--large {
  padding: 22px 64px;
  font-size: 1.25rem;
}

@media (max-width: 767px) {
  .btn--large {
    padding: 16px 20px;
    font-size: 1rem;
    width: 100%;
    max-width: 320px; /* iPhone SE 375px に合わせた最適化 */
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
  }
}

.btn--accent {
  background-color: var(--color-accent);
  color: var(--color-primary-dark);
}

.btn--accent:hover {
  background-color: #fdd835;
  transform: translateY(-3px);
  box-shadow: 0 15px 30px rgba(255, 241, 118, 0.4);
}

/* Header */
.header {
  height: 90px;
  display: flex;
  align-items: center;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  /* Liquid Grass Glassmorphism */
  background: rgba(
    232,
    245,
    233,
    0.6
  ); /* --color-primary-light with transparency */
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  z-index: 1000;
  border-bottom: 1px solid rgba(102, 187, 106, 0.2);
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.03);
}

.header__inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
}

.header__logo {
  display: flex;
  align-items: center;
}

.logo-link {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 5px;
  border-radius: 8px;
  transition: background-color 0.3s ease;
}

.logo-link:hover {
  background-color: rgba(102, 187, 106, 0.05);
}

.logo-img {
  width: 40px;
  height: 40px;
  object-fit: contain;
}

.logo {
  font-family: var(--font-accent);
  font-size: 1.5rem;
  color: var(--color-primary-dark);
  letter-spacing: 0.1em;
  margin: 0;
  line-height: 1;
  transform: translateY(-1px);
}

.nav__list {
  display: flex;
  gap: 40px;
}

.nav__list a {
  font-size: 1rem;
  font-weight: 500;
  position: relative;
}

.nav__list a::after {
  content: "";
  position: absolute;
  bottom: -5px;
  left: 0;
  width: 0;
  height: 2px;
  background-color: var(--color-primary);
  transition: width 0.3s ease;
}

.nav__list a:hover::after {
  width: 100%;
}

.nav-toggle {
  display: none;
}

@media (max-width: 1023px) {
  .nav__list {
    gap: 20px;
  }
}

@media (max-width: 767px) {
  .header {
    height: 70px;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
  }
  .nav-toggle {
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    width: 30px;
    height: 20px;
    background: transparent;
    border: none;
    cursor: pointer;
    z-index: 10001;
  }
  .nav-toggle span {
    display: block;
    width: 100%;
    height: 2px;
    background-color: var(--color-primary-dark);
    transition: 0.3s ease;
  }
  .nav__list {
    position: fixed;
    top: 0;
    right: 0;
    width: 100%;
    height: 100dvh;
    background: rgba(232, 245, 233, 0.96); /* Pale green semi-transparent */
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 40px;
    transform: translateX(100%);
    transition: 0.6s cubic-bezier(0.8, 0, 0.2, 1);
    z-index: 10000;
    overflow: hidden;
    visibility: hidden;
    pointer-events: none;
  }
  /* Stylish background motif */
  .nav__list::before {
    content: "";
    position: absolute;
    bottom: -50px;
    right: -50px;
    width: 300px;
    height: 300px;
    background-image: url("images/hero-visual.png");
    background-size: contain;
    background-repeat: no-repeat;
    opacity: 0.05;
    transform: rotate(-15deg);
    pointer-events: none;
  }
  .nav__list li {
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.5s ease;
  }
  .nav.is-open .nav__list {
    transform: translateX(0);
    visibility: visible;
    pointer-events: auto;
  }
  .nav.is-open .nav__list li {
    opacity: 1;
    transform: translateY(0);
  }
  /* Staggered entrance */
  .nav.is-open .nav__list li:nth-child(1) {
    transition-delay: 0.2s;
  }
  .nav.is-open .nav__list li:nth-child(2) {
    transition-delay: 0.3s;
  }
  .nav.is-open .nav__list li:nth-child(3) {
    transition-delay: 0.4s;
  }

  .nav__list a {
    font-size: 1.5rem;
    font-family: var(--font-accent);
    color: var(--color-primary-dark);
  }
  .nav.is-open .nav-toggle span:nth-child(1) {
    transform: translateY(9px) rotate(45deg);
  }
  .nav.is-open .nav-toggle span:nth-child(2) {
    opacity: 0;
  }
  .nav.is-open .nav-toggle span:nth-child(3) {
    transform: translateY(-9px) rotate(-45deg);
  }
}

/* Hero */
.hero {
  background-color: var(--color-bg-alt);
  background-image: url("images/bg-watercolor.png");
  background-size: cover;
  background-position: center;
  padding: 230px 0 140px; /* Offset for fixed header (90px) + original padding (140px) */
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    135deg,
    rgba(255, 255, 255, 0.85) 0%,
    rgba(255, 255, 255, 0.4) 100%
  );
  z-index: 1;
}

.hero__inner {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 60px;
}

.hero__content {
  flex: 1.2;
}

.hero__sub {
  font-size: 1.2rem;
  color: var(--color-primary-dark);
  font-weight: 500;
  margin-bottom: 32px; /* Spacing before the group */
  display: flex;
  align-items: center;
  gap: 10px;
  opacity: 0.8;
}

.hero__sub::before {
  content: "";
  width: 24px;
  height: 1px;
  background-color: var(--color-primary);
}

.hero__headings-group {
  margin-bottom: 45px; /* Spacing before the main hero text */
}

.hero__pre-title {
  font-family: var(--font-base);
  font-size: 1.1rem;
  color: var(--color-text-light);
  letter-spacing: 0.15em;
  font-weight: 400;
}

.hero__title {
  font-family: var(--font-accent);
  font-size: clamp(
    2.2rem,
    10vw,
    4.8rem
  ); /* 幅がはみ出さないようモバイルの最小値を調整 */
  line-height: 1.5; /* 上下の欠け（特にy, gの足）を確実に防ぐために十分に広げる */
  background: linear-gradient(
    135deg,
    var(--color-primary-dark) 30%,
    #43a047 100%
  );
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  letter-spacing: 0.05em;
  font-weight: 700;
  text-shadow: 0 4px 15px rgba(46, 125, 50, 0.08);
  text-wrap: balance;
  padding: 0.3em 0.1em; /* 左右の端の欠けも防ぐために水平方向にもパディングを追加 */
}

.hero__catchphrase {
  color: #6d4c41; /* Branch-like brown */
  font-family: var(--font-accent);
  font-size: clamp(1.4rem, 4vw, 1.8rem);
  font-weight: 500;
  margin-bottom: 0;
  letter-spacing: 0.1em;
}

.hero__text {
  font-size: 1.2rem;
  margin-bottom: 50px;
  color: var(--color-text-light);
  line-height: 2;
}

.hero__image {
  flex: 1;
  flex: 1;
  display: flex;
  justify-content: center;
  position: relative;
  z-index: 2;
}

.sprout-animation {
  width: 300px;
  height: 300px;
  background: var(--glass-bg);
  backdrop-filter: blur(var(--blur-val));
  border-radius: 30% 70% 70% 30% / 30% 30% 70% 70%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.05);
  border: 1px solid var(--glass-border);
  animation: morph 15s ease-in-out infinite;
}

.sprout-image {
  width: 80%;
  height: auto;
  animation: bounce 3s infinite ease-in-out;
}

@keyframes bounce {
  0%,
  100% {
    transform: translateY(0) scale(1);
  }
  50% {
    transform: translateY(-15px) scale(1.05);
  }
}

@keyframes morph {
  0%,
  100% {
    border-radius: 30% 70% 70% 30% / 30% 30% 70% 70%;
  }
  33% {
    border-radius: 50% 50% 33% 67% / 55% 27% 73% 45%;
  }
  66% {
    border-radius: 67% 33% 47% 53% / 37% 70% 30% 63%;
  }
}

@media (max-width: 991px) {
  .hero {
    padding: 150px 0 80px; /* Offset for mobile fixed header (70px) + original (80px) */
  }
  .hero__inner {
    flex-direction: column-reverse;
    text-align: center;
    gap: 40px;
  }
  .hero__sub {
    justify-content: center;
  }
  .hero__sub::before {
    display: none;
  }
  .hero__catchphrase {
    font-size: 1.5rem;
    margin-bottom: 20px;
  }
}

/* Problems */
.problems {
  background-color: #b9d3b9;
  position: relative;
}

.problems__list {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
}

.problems__item {
  background: var(--glass-bg);
  backdrop-filter: blur(var(--blur-val));
  -webkit-backdrop-filter: blur(var(--blur-val));
  padding: 50px;
  border-radius: 32px;
  border: 1px solid var(--glass-border);
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.04);
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.problems__item:hover {
  transform: translateY(-10px) scale(1.02);
  box-shadow: 0 25px 60px rgba(102, 187, 106, 0.1);
}

.problems__item-title {
  margin-bottom: 20px;
  color: var(--color-primary-dark);
  font-size: 1.5rem;
  display: flex;
  align-items: center;
  gap: 15px;
}

.problems__item-title::before {
  content: "●";
  color: var(--color-primary);
  font-size: 0.8em;
}

.problems__main {
  list-style: none;
  padding: 40px;
  background-color: var(--color-primary-light);
  border-radius: 32px;
  margin-bottom: 60px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
}

.problems__main li {
  font-size: 1.5rem;
  color: var(--color-primary-dark);
  margin-bottom: 1rem;
  line-height: 1.6;
  text-align: left;
}

.problems__main li:last-child {
  margin-bottom: 0;
}

@media (max-width: 767px) {
  .problems__main {
    padding: 30px 20px;
    margin-bottom: 40px;
  }
  .problems__main li {
    font-size: 1.1rem;
  }
}

.problems__sublist {
  list-style: none;
  padding: 0;
}

.problems__sublist li {
  position: relative;
  padding-left: 1.5em;
  margin-bottom: 0.8em;
  font-size: 1rem;
  line-height: 1.6;
}

.problems__sublist li::before {
  content: "・";
  position: absolute;
  left: 0;
  color: var(--color-primary-dark);
  font-weight: bold;
}
@media (max-width: 767px) {
  .problems__list {
    grid-template-columns: 1fr;
  }
  .problems__item {
    padding: 35px;
  }
}

/* About */
.about {
  background-color: var(--color-bg-alt);
  background-attachment: fixed;
  text-align: center;
}

.about__content p {
  margin-bottom: 30px;
  font-size: 1.15rem;
  color: var(--color-text);
  text-align: left;
}

.section-title--counselor {
  position: relative;
  padding: 40px 20px;
  margin-bottom: 30px;
  margin-top: 20px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  min-height: 320px;
  padding-bottom: 20px;
  background: none; /* 本体からの背景を削除して文字をくっきりさせる */
}

/* 背景画像とマスク効果を別レイヤーに分離 */
.section-title--counselor::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  transform: none;
  background-image:
    linear-gradient(rgba(241, 248, 233, 0.5), rgba(241, 248, 233, 0.5)),
    url("images/counselor.jpeg");
  background-size: cover;
  background-position: center;
  z-index: -1; /* 文字の後ろへ */
  /* 画像の輪郭を溶け込ませるためのマスク（文字には影響しない） */
  mask-image: radial-gradient(ellipse at center, black 20%, transparent 90%);
  -webkit-mask-image: radial-gradient(
    ellipse at center,
    black 20%,
    transparent 90%
  );
}

@media (min-width: 1024px) {
  .section-title--counselor {
    background-position: center;
    width: 800px; /* 親要素の幅いっぱいに戻す */
    height: 340px;
    margin-left: auto;
    margin-right: auto;
    justify-content: center;
    padding-top: 100px;
    padding-bottom: 0;
    min-height: auto;
  }
}

.section-title--counselor::after {
  content: "";
}

.about__highlight {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--color-primary-dark);
  margin-top: 50px;
  margin-bottom: 40px;
  padding: 30px 50px;
  background: white;
  border-radius: 20px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
  display: inline-block;
  line-height: 1.6;
}

.about__visual {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 30px;
  margin-top: 40px;
}

.about__image-container {
  text-align: center;
}

.about__img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  border-radius: 24px;
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1);
  margin-bottom: 15px;
}

.about__img-caption {
  font-size: 0.95rem;
  color: var(--color-primary-dark);
  font-weight: 500;
}

@media (max-width: 767px) {
  .about__visual {
    grid-template-columns: 1fr;
  }
}

/* Trial Section */
.trial {
  background-color: var(--color-white);
  padding: 80px 0;
}

.trial__card {
  background: linear-gradient(
    135deg,
    var(--color-primary-light) 0%,
    #ffffff 100%
  );
  padding: 80px 60px;
  border-radius: 40px;
  text-align: center;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.05);
  border: 4px solid var(--color-primary-light);
  max-width: 900px;
  margin: 0 auto;
}

.trial__title {
  font-family: var(--font-accent);
  font-size: clamp(
    1.2rem,
    5vw,
    2.4rem
  ); /* 幅の狭いスマホでも1行に収まるように最小値を調整 */
  color: var(--color-primary-dark);
  margin-bottom: 25px;
  line-height: 1.3;
}

.trial__text {
  font-size: 1.15rem;
  margin-bottom: 30px;
  line-height: 1.8;
  color: var(--color-text);
}

.trial__image-wrapper {
  margin-bottom: 40px;
  display: flex;
  justify-content: center;
}

.trial__img {
  max-width: 100%;
  width: 450px;
  height: auto;
  border-radius: 24px;
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1);
  object-fit: cover;
}

@media (max-width: 767px) {
  .trial__card {
    padding: 60px 30px;
  }
}

/* Service */
.service {
  background-color: var(--color-white);
}

.service__subtitle {
  text-align: center;
  max-width: 800px;
  margin: -30px auto 60px;
  font-size: clamp(1.1rem, 2.5vw, 1.35rem);
  color: var(--color-primary-dark);
  font-weight: 500;
  line-height: 1.8;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
  padding: 0 20px;
}

.service__subtitle::before,
.service__subtitle::after {
  content: "";
  height: 1px;
  flex: 1;
  max-width: 40px;
  background-color: var(--color-primary);
  opacity: 0.4;
}

@media (max-width: 767px) {
  .service__subtitle {
    margin-top: -20px;
    flex-direction: column;
    gap: 10px;
  }
  .service__subtitle::before,
  .service__subtitle::after {
    max-width: 60px;
  }
}

.service__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  margin-bottom: 60px;
}

.service__card {
  padding: 60px 40px;
  background: var(--color-bg-alt);
  border-radius: 32px;
  transition: all 0.4s ease;
  position: relative;
  overflow: hidden;
}

.service__card::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 5px;
  background: linear-gradient(90deg, var(--color-primary), var(--color-accent));
}

.service__card:hover {
  background: white;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.08);
}

.service__card-image {
  width: 100%;
  height: 200px;
  margin-bottom: 30px;
  overflow: hidden;
  border-radius: 16px;
}

.service__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.service__card:hover .service__img {
  transform: scale(1.1);
}

.service__card-title {
  text-align: center;
  font-size: clamp(1.4rem, 4vw, 1.8rem);
  color: var(--color-primary-dark);
  margin-bottom: 30px;
  font-family: var(--font-accent);
}

.service__footer-text {
  text-align: center;
  color: var(--color-text-light);
  line-height: 2;
  max-width: 850px;
  margin: 0 auto;
  font-size: 1.1rem;
}

.service__pricing {
  margin: 40px auto;
  padding: 30px 40px;
  background-color: var(--color-primary-light);
  border-radius: 24px;
  text-align: center;
  max-width: 700px;
  border: 1px solid rgba(102, 187, 106, 0.2);
}

.service__pricing-note {
  font-size: 1rem;
  color: var(--color-primary-dark);
  font-weight: 500;
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 15px;
}

.service__pricing-note::before,
.service__pricing-note::after {
  content: "";
  height: 1px;
  width: 20px;
  background-color: var(--color-primary);
  opacity: 0.3;
}

.service__price-list {
  max-width: 500px;
  margin: 0 auto;
  list-style: none;
  padding: 0;
}

.service__price-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 0;
  border-bottom: 1px dashed rgba(46, 125, 50, 0.15);
  gap: 20px;
}

.service__price-item:last-child {
  border-bottom: none;
}

.service__price-label {
  font-weight: 500;
  color: var(--color-primary-dark);
  text-align: left;
  font-size: 1rem;
}

.service__price-value {
  font-family: var(--font-accent);
  font-size: 1.4rem;
  color: var(--color-primary-dark);
  white-space: nowrap;
}

.service__price-value small {
  font-size: 0.85rem;
  font-weight: normal;
  font-family: var(--font-base);
  margin-left: 4px;
  color: var(--color-text-light);
}

@media (max-width: 767px) {
  .service__grid {
    grid-template-columns: 1fr;
  }
  .service__pricing {
    padding: 25px 20px;
  }
  .service__pricing-note {
    font-size: 0.95rem;
    flex-direction: column;
    gap: 5px;
  }
  .service__pricing-note::before,
  .service__pricing-note::after {
    display: none;
  }
  .service__price-item {
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 8px;
    padding: 15px 0;
  }
  .service__price-value {
    font-size: 1.3rem;
  }
}

/* Profile */
.profile {
  background-color: var(--color-white);
  padding-bottom: 120px;
}

.profile__inner {
  display: flex;
  align-items: center;
  gap: 80px;
  max-width: 1000px;
  margin: 0 auto;
  background: white;
  padding: 60px;
  border-radius: 40px;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.05);
}

.profile__image-container {
  width: 300px;
  height: 380px;
  border-radius: 24px;
  overflow: hidden;
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1);
  transform: rotate(-3deg);
  transition: all 0.4s ease;
}

.profile__inner:hover .profile__image-container {
  transform: rotate(0deg) scale(1.03);
}

.profile__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.profile__header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 5px;
  gap: 15px;
}

.profile__name {
  font-family: var(--font-accent);
  font-size: clamp(1.6rem, 5vw, 2.2rem);
  color: var(--color-primary-dark);
  display: flex;
  align-items: baseline;
  gap: 10px 15px;
  flex: 1;
}

.profile__name-en {
  font-size: clamp(0.9rem, 3vw, 1.1rem);
  color: var(--color-text-light);
  font-weight: normal;
}

.facebook-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  background-color: #1877f2;
  border-radius: 50%;
  transition: all 0.3s ease;
  flex-shrink: 0;
}

.facebook-link:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(24, 119, 242, 0.3);
  background-color: #166fe5;
}

.facebook-icon {
  width: 20px;
  height: 20px;
  fill: white;
}

@media (max-width: 767px) {
  .profile__name {
    flex-direction: column;
    gap: 4px;
  }

  .profile__header {
    align-items: flex-start;
  }

  .facebook-link {
    margin-top: 16px; /* モバイルでのアイコン位置微調整 */
  }
}

.profile__qualif {
  font-weight: 700;
  color: var(--color-primary);
  margin-bottom: 25px;
  font-size: 1rem;
  letter-spacing: 0.05em;
}

.profile__text p {
  margin-bottom: 20px;
  font-size: 1rem;
  color: var(--color-text);
  text-align: justify;
}

@media (max-width: 991px) {
  .profile__inner {
    gap: 40px;
    padding: 40px;
  }
  .profile__image-placeholder {
    width: 240px;
    height: 240px;
  }
}

@media (max-width: 767px) {
  .profile__inner {
    flex-direction: column;
    text-align: center;
    padding: 40px 25px;
  }
  .profile__image-placeholder {
    transform: rotate(0);
  }
}

/* Contact */
.contact {
  background-color: var(--color-primary-dark);
  background-image: linear-gradient(
    135deg,
    var(--color-primary-dark) 0%,
    #1b5e20 100%
  );
  color: var(--color-white);
  text-align: center;
  padding: 120px 0;
}

.contact .section-title {
  color: var(--color-white);
}

.contact .section-title::after {
  background: var(--color-accent);
}

.contact__text {
  margin-bottom: 50px;
  font-size: 1.1rem;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
  line-height: 1.8;
}

.contact__form {
  background: white;
  padding: 50px;
  border-radius: 30px;
  text-align: left;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.2);
  color: var(--color-text);
  max-width: 700px;
  margin: 0 auto;
}

.form-group {
  margin-bottom: 25px;
}

.form-notice {
  margin-bottom: 15px;
  font-size: 0.85rem;
  color: var(--color-primary-dark);
  text-align: center;
  opacity: 0.8;
}

.form-group label {
  display: block;
  font-weight: 700;
  margin-bottom: 10px;
  color: var(--color-primary-dark);
}

.required {
  background: #e53935;
  color: white;
  font-size: 0.7rem;
  padding: 2px 6px;
  border-radius: 4px;
  margin-left: 5px;
  vertical-align: middle;
}

.contact__form input,
.contact__form select,
.contact__form textarea {
  width: 100%;
  padding: 15px;
  border: 2px solid #eee;
  border-radius: 12px;
  font-family: inherit;
  font-size: 1rem;
  transition: border-color 0.3s ease;
}

.contact__form input:focus,
.contact__form select:focus,
.contact__form textarea:focus {
  outline: none;
  border-color: var(--color-primary);
}

.contact .btn--primary {
  width: 100%;
  border: none;
  background-color: var(--color-primary);
  color: var(--color-white);
}

.contact .btn--primary:hover {
  background-color: var(--color-primary-dark);
  color: var(--color-white);
}

@media (max-width: 767px) {
  .contact__form {
    padding: 30px 20px;
  }
}

/* Footer */
.footer {
  padding: 80px 0;
  background-color: #f8f9fa;
  text-align: center;
  border-top: 1px solid #eee;
}

.footer__logo {
  font-family: var(--font-accent);
  font-size: 1.8rem;
  margin-bottom: 25px;
  color: var(--color-primary-dark);
  letter-spacing: 0.1em;
}

.footer__copy {
  font-size: 0.9rem;
  color: var(--color-text-light);
}

/* Floating CTA */
.floating-cta {
  position: fixed;
  bottom: 40px;
  right: 40px;
  z-index: 1000;
}

.btn--floating {
  background: linear-gradient(
    135deg,
    var(--color-primary),
    var(--color-primary-dark)
  );
  color: var(--color-white);
  padding: 18px 36px;
  border-radius: 100px;
  box-shadow: 0 10px 30px rgba(102, 187, 106, 0.4);
  font-size: 1.05rem;
  letter-spacing: 0.05em;
}

.btn--floating:hover {
  transform: scale(1.05) translateY(-5px);
  box-shadow: 0 15px 40px rgba(102, 187, 106, 0.5);
}

@media (max-width: 767px) {
  .floating-cta {
    bottom: 20px;
    left: 20px;
    right: 20px;
    width: auto;
  }
  .btn--floating {
    display: block;
    width: 100%;
    padding: 16px;
    font-size: 1rem;
    max-width: 100%;
  }

  /* Global Container Adjustment for Small Viewports */
  .container {
    padding: 0 16px;
  }

  /* Fix for overflowing fixed widths in components */
  .hero__content,
  .problems__item,
  .about__content,
  .trial__card,
  .service__card,
  .profile__inner,
  .contact__form {
    width: 100% !important;
    max-width: 100% !important;
  }
}

body.no-scroll {
  overflow: hidden;
}

/* --- Reveal Animations --- */
.reveal-item {
  opacity: 0;
  transform: translateY(30px) scale(0.98);
  transition:
    opacity 1.2s cubic-bezier(0.2, 0.8, 0.2, 1),
    transform 1.2s cubic-bezier(0.2, 0.8, 0.2, 1);
  will-change: opacity, transform;
}

.reveal--active {
  opacity: 1 !important;
  transform: translateY(0) scale(1) !important;
}

/* Staggered entrance for grid items */
.problems__item:nth-child(2),
.service__card:nth-child(2) {
  transition-delay: 0.2s;
}

/* Section-specific organic reveal tweaks */
.hero__content.reveal--active {
  transition-delay: 0.1s;
}

.hero__image.reveal--active {
  transition-delay: 0.3s;
}

/* --- Scroll Spy & Nav Highlighting --- */
.nav__list a.active {
  color: var(--color-primary) !important;
}

.nav__list a.active::after {
  width: 100%;
}

/* --- Micro-Interactions & Hover Effects --- */

/* Service Cards Lift */
.service__card {
  transition:
    transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275),
    box-shadow 0.4s ease,
    background-color 0.4s ease;
}

.service__card:hover {
  transform: translateY(-12px) scale(1.02);
  background-color: var(--color-white);
  box-shadow: 0 30px 60px rgba(0, 0, 0, 0.1);
}

/* Button Pulse (Subtle) */
@keyframes pulse-subtle {
  0% {
    box-shadow: 0 0 0 0 rgba(102, 187, 106, 0.4);
  }
  70% {
    box-shadow: 0 0 0 15px rgba(102, 187, 106, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(102, 187, 106, 0);
  }
}

.btn--primary:hover {
  animation: pulse-subtle 1.5s infinite;
}

/* Image Hover Scale */
.trial__img,
.about__img {
  transition: transform 0.6s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.trial__card:hover .trial__img,
.about__image-container:hover .about__img {
  transform: scale(1.03);
}

/* --- Improved Footer Design --- */
.footer {
  padding: 100px 0 60px;
  background-color: var(--color-bg-alt);
  position: relative;
  overflow: hidden;
}

.footer::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 1px;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(102, 187, 106, 0.2),
    transparent
  );
}

.footer__inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 30px;
}

.footer__logo-group {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  text-decoration: none;
  transition: transform 0.3s ease;
}

.footer__logo-group:hover {
  transform: scale(1.02);
}

.footer__pre-title {
  font-family: var(--font-base);
  font-size: 0.9rem;
  color: var(--color-text-light);
  letter-spacing: 0.1em;
}

.footer__logo-text {
  font-family: var(--font-accent);
  font-size: 2.2rem;
  color: var(--color-primary-dark);
  line-height: 1;
  margin: 0;
}

.footer__catchphrase {
  font-family: var(--font-accent);
  font-size: 1.1rem;
  color: #6d4c41; /* Brown accent */
  letter-spacing: 0.15em;
}

.footer__nav {
  display: flex;
  gap: 30px;
  margin-bottom: 20px;
}

.footer__nav a {
  color: var(--color-text-light);
  font-size: 0.95rem;
  transition: color 0.3s ease;
}

.footer__nav a:hover {
  color: var(--color-primary);
}

.footer__copy {
  margin-top: 20px;
  opacity: 0.7;
}

@media (max-width: 767px) {
  .footer__nav {
    flex-direction: column;
    gap: 15px;
    align-items: center;
  }
}

/* --- Service Detail Page Styles --- */
.service-detail {
  background-color: var(--color-bg);
}

.service-detail__block {
  margin-bottom: 80px;
}

.service-detail__title {
  font-family: var(--font-accent);
  font-size: 2rem;
  color: var(--color-primary-dark);
  margin-bottom: 30px;
  display: flex;
  align-items: center;
  gap: 15px;
}

.service-detail__title::before {
  content: "★";
  color: var(--color-primary);
  font-size: 1.2rem;
}

.service-detail__content p {
  margin-bottom: 25px;
  font-size: 1.1rem;
  line-height: 1.8;
}

.service-detail__content a {
  color: var(--color-primary-dark);
  text-decoration: underline;
  text-underline-offset: 4px;
  font-weight: 500;
  transition: all 0.3s ease;
}

.service-detail__content a:hover {
  color: var(--color-primary);
  text-decoration-thickness: 2px;
}

.service-detail__box {
  background-color: var(--color-bg-alt);
  padding: 30px;
  border-radius: 20px;
  margin-bottom: 30px;
  border: 1px solid rgba(102, 187, 106, 0.2);
}

.service-detail__box-title {
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 15px;
  color: var(--color-primary-dark);
}

.service-detail__list {
  list-style: none;
  padding: 0;
}

.service-detail__list li {
  position: relative;
  padding-left: 1.5em;
  margin-bottom: 10px;
}

.service-detail__list li::before {
  content: "・";
  position: absolute;
  left: 0;
  font-weight: bold;
  color: var(--color-primary);
}

.service-detail__price {
  font-weight: 700;
  color: var(--color-primary-dark);
  font-size: 1.25rem;
  margin-top: 30px;
}

.service-detail__note {
  font-size: 0.95rem;
  color: var(--color-text-light);
  margin-top: -15px;
}

.service-detail__divider {
  border: none;
  height: 1px;
  background: linear-gradient(
    90deg,
    transparent,
    var(--color-primary-light),
    transparent
  );
  margin: 60px 0 80px;
}

.service-detail__cta {
  text-align: center;
  margin-top: 80px;
}

/* Learning Diagram */
.learning-diagram-container {
  margin-top: 100px;
  text-align: center;
}

.learning-diagram__title {
  font-family: var(--font-accent);
  font-size: 1.8rem;
  color: var(--color-primary-dark);
  margin-bottom: 60px;
  position: relative;
}

.learning-diagram__title::after {
  content: "";
  display: block;
  width: 100px;
  height: 1px;
  background-color: #ccc;
  margin: 40px auto 0;
}

.learning-diagram {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 20px 40px; /* 縦の間隔を20px、横を40pxに */
  position: relative;
  max-width: 900px;
  margin: 0 auto;
  padding-bottom: 40px;
}

.learning-diagram__top-row {
  display: flex;
  justify-content: center;
  flex-basis: 100%; /* これで1段目を占有するように強制 */
  margin-bottom: 20px;
}

.learning-circle {
  width: 240px;
  height: 240px;
  border: 2px solid var(--color-primary);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: white;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  padding: 25px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
  flex-shrink: 0;
  position: relative;
  overflow: hidden;
}

.learning-circle::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(
    255,
    255,
    255,
    0.65
  ); /* 背景をよりはっきり見せるために透過率を調整 */
  z-index: 1;
  transition: background 0.3s ease;
}

.learning-circle:hover::before {
  background: rgba(255, 255, 255, 0.5);
}

.learning-circle:hover {
  transform: translateY(-8px) scale(1.05);
  box-shadow: 0 20px 40px rgba(102, 187, 106, 0.15);
  border-width: 3px;
}

.learning-circle__inner {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  gap: 10px;
  text-align: center;
}

.learning-circle__label {
  font-weight: 700;
  color: var(--color-primary-dark);
  font-size: 1.15rem;
  line-height: 1.4;
}

.learning-circle__text {
  font-size: 0.95rem;
  color: var(--color-text-light);
  margin: 0;
  line-height: 1.5;
}

/* 個別の背景画像を設定 */
.learning-circle--top {
  background-image: url("images/learning-empathy.png");
}

.learning-circle--left {
  background-image: url("images/learning-honest.png");
}

.learning-circle--right {
  background-image: url("images/learning-conflict.png");
}

@media (min-width: 768px) {
  .learning-diagram {
    padding-top: 40px;
  }
}

@media (max-width: 767px) {
  .learning-circle {
    width: 220px;
    height: 220px;
    padding: 20px;
  }
  .learning-diagram {
    flex-direction: column;
    align-items: center;
    gap: 20px;
  }
  .learning-diagram__top-row {
    margin-bottom: 0px;
  }
}

.py-80 {
  padding-top: 140px; /* header height(90px) + content padding */
  padding-bottom: 40px;
  background-color: var(--color-bg-alt);
}

@media (max-width: 767px) {
  .py-80 {
    padding-top: 100px; /* header mobile(70px) + padding */
  }
}
