/* =================================================================
   基本設定・変数
   ================================================================= */
:root {
  --c-red: #ea4335;
  --c-blue: #4285f4;
  --c-green: #34a853;
  --c-yellow: #fbbc05;
  --c-text: #5d5045; /* 温かみのある茶色 */
  --c-bg: #fdfaf4; /* 温かいクリーム色 */
  --c-bg-alt: rgba(255, 255, 255, 0.7); /* 半透明の白 */
}

/* =================================================================
   リセットと基本スタイル
   ================================================================= */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}
html {
  scroll-behavior: smooth;
  scroll-padding-top: 80px;
}
body {
  font-family: "Kiwi Maru", "Noto Sans JP", sans-serif;
  line-height: 1.9;
  color: var(--c-text);
  background-color: var(--c-bg);
  /* ▼▼▼ 生成した水彩画の背景画像を適用 ▼▼▼ */
  background-image: url("http://googleusercontent.com/image_generation_content/0");
  background-attachment: fixed; /* 背景を固定 */
  background-size: cover;
}
img {
  max-width: 100%;
  height: auto;
  vertical-align: bottom;
}
a {
  text-decoration: none;
  color: inherit;
}
ul,
ol {
  list-style: none;
}

/* =================================================================
   レイアウト
   ================================================================= */
.l-wrapper {
  display: flex;
  flex-direction: column;
}
.l-main {
  width: 100%;
  /* l-mainの背景色は透明にし、bodyの背景画像を見せる */
  background-color: transparent;
  overflow-x: hidden;
  /* overflow-y: hidden; */
  position: relative;
  padding-top: 60px;
  padding-bottom: 80px;
}
.l-side-nav,
.l-side-cta {
  display: none;
}
.l-footer {
  padding: 40px 0;
  text-align: center;
  background-color: var(--c-bg-alt);
}

/* =================================================================
   共通コンポーネント
   ================================================================= */
.c-container {
  width: 100%;
  max-width: 900px;
  margin: 0 auto;
  padding: 0 20px;
}
.c-section {
  padding: 80px 0;
  position: relative;
}
/* 各セクションの背景を半透明の白にして、下の背景が透けるようにする */
.c-section--alt {
  background-color: var(--c-bg-alt);
  backdrop-filter: blur(5px);
}
.c-section--cta {
  background-color: rgba(227, 242, 253, 0.8);
  backdrop-filter: blur(5px);
}

.c-section-title {
  font-size: 26px;
  font-weight: 500;
  text-align: center;
  margin-bottom: 30px;
  line-height: 1.6;
  border-bottom: 2px solid var(--c-yellow);
  display: inline-block;
  padding-bottom: 8px;
  position: relative;
  left: 50%;
  transform: translateX(-50%);
}

.c-section-lead {
  max-width: 700px;
  margin: 0 auto;
  padding: 0 20px;
  margin-bottom: 40px;
  text-align: center;
}

.c-logo {
  font-family: "Kiwi Maru", sans-serif;
  font-size: 24px;
  font-weight: 500;
  text-align: center;
  letter-spacing: 1px;
}
.c-logo span {
  display: inline-block;
}
.c-logo .char1 {
  color: var(--c-green);
}
.c-logo .char2 {
  color: var(--c-yellow);
}
.c-logo .char3 {
  color: var(--c-blue);
}
.c-logo .char4 {
  color: var(--c-red);
}
.c-logo--sp {
  display: none;
}

/* カード */
.c-card {
  background-color: #fff;
  border-radius: 16px;
  box-shadow: 0 8px 25px rgba(181, 159, 133, 0.1);
  border: 1px solid #f0e6d9;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  padding: 1rem;
}
.c-card h3 {
  font-size: 20px;
  /* padding: 20px 20px 10px; */
  color: var(--c-text);
}
.c-card p {
  /* padding: 0 20px 20px; */
  font-size: 15px;
  flex-grow: 1;
}
.c-card--feature {
  padding: 20px;
  text-align: center;
  background: #fff;
  border: none;
  box-shadow: none;
  border-bottom: 3px dotted;
}
.p-cubeset__points .c-card--feature:nth-child(1) {
  border-color: var(--c-green);
}
.p-cubeset__points .c-card--feature:nth-child(2) {
  border-color: var(--c-yellow);
}
.p-cubeset__points .c-card--feature:nth-child(3) {
  border-color: var(--c-red);
}
.c-card--feature h4 {
  font-size: 18px;
  margin-bottom: 5px;
  color: var(--c-text);
}

/* ボタン */
.c-btn {
  display: inline-block;
  padding: 15px 25px;
  border: 2px solid;
  border-radius: 50px;
  font-weight: 500;
  text-align: center;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(181, 159, 133, 0.2);
}
.c-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(181, 159, 133, 0.25);
}
.c-btn strong {
  font-size: 16px;
  display: block;
  line-height: 1.2;
}
.c-btn span {
  font-size: 11px;
}

.c-btn--primary {
  background: var(--c-blue);
  border-color: var(--c-blue);
  color: #fff;
}
.c-btn--secondary {
  background: #fff;
  color: var(--c-blue);
  border-color: var(--c-blue);
}
.c-btn--submit {
  width: 100%;
  padding: 18px;
  font-size: 18px;
}

/* CTAボタンのグループ */
.c-cta-group {
  display: flex;
  flex-direction: column;
  gap: 15px;
  margin-top: 30px;
}

/* フォーム */
.c-form {
  background: #fff;
  padding: 30px;
  border-radius: 16px;
  border: 1px solid #f0e6d9;
  width: 95%;
  margin: 0 auto;
}
.c-form__item {
  margin-bottom: 20px;
}
.c-form__item label {
  display: block;
  margin-bottom: 5px;
  font-weight: 500;
}
.c-form__item input {
  width: 100%;
  padding: 12px;
  border: 1px solid #ddd;
  border-radius: 8px;
  font-size: 16px;
  font-family: "Noto Sans JP", sans-serif;
}
.c-form__item input:focus {
  border-color: var(--c-blue);
  outline: none;
  box-shadow: 0 0 0 2px rgba(66, 133, 244, 0.2);
}

/* =================================================================
   各セクションの個別スタイル
   ================================================================= */
.p-hero {
  padding: 60px 0;
}
.p-hero__body {
  background-color: rgba(253, 250, 244, 0.9);
  padding: 30px;
  border-radius: 20px;
  text-align: center;
  position: relative;
  z-index: 1;
}
.p-hero__title {
  font-size: 28px;
  line-height: 1.6;
  margin-bottom: 15px;
}
.p-hero__title span {
  background: linear-gradient(transparent 60%, rgba(251, 188, 5, 0.4) 60%);
  padding: 0 4px;
}

.p-problem__list {
  border: 2px dashed rgba(234, 67, 53, 0.4);
  background-color: #fff;
  border-radius: 16px;
  padding: 30px;
}
.p-problem__list li {
  padding-left: 1.5em;
  text-indent: -1.5em;
  margin-bottom: 10px;
}
.p-problem__list li::before {
  content: "・";
  margin-right: 0.5em;
  color: var(--c-red);
  font-weight: bold;
}

.p-comparison-table {
  text-align: center;
}
.p-comparison-table__col {
  border: 1px solid #eee;
  border-radius: 16px;
  padding: 20px;
  background: #fff;
}
.p-comparison-table__col.is-strong {
  border: 2px solid var(--c-blue);
}
.p-comparison-table__col h3 {
  font-size: 20px;
}
.p-comparison-table__col img {
  margin: 15px 0;
  border-radius: 8px;
}
.p-comparison-table__col ul {
  text-align: left;
  display: inline-block;
}
.p-comparison-table__col ul li {
  padding-left: 1.2em;
  text-indent: -1.2em;
  margin-bottom: 5px;
}
.p-comparison-table__col ul li::before {
  content: "✓";
  color: var(--c-green);
}
.p-comparison-table__vs {
  font-size: 24px;
  font-weight: 500;
  margin: 15px 0;
  color: var(--c-blue);
}

.p-reasons__grid,
.p-curriculum__steps,
.p-cubeset__points {
  display: grid;
  gap: 25px;
}

.p-cubeset__image {
  width: 100%;
  border-radius: 16px;
  margin-bottom: 30px;
  box-shadow: 0 8px 30px rgba(181, 159, 133, 0.2);
}

.p-instructor__profile {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
  background: #fff;
  padding: 20px;
  border-radius: 16px;
  text-align: center;
  margin-bottom: 30px;
  box-shadow: 0 8px 25px rgba(9, 41, 77, 0.06);
}
.p-instructor__profile img {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  flex-shrink: 0;
}
.p-instructor__title {
  display: block;
  color: var(--c-green);
  font-weight: 500;
  font-size: 14px;
}
.p-instructor__name {
  font-size: 22px;
  margin: 5px 0 10px;
}

.p-voice__card {
  display: flex;
  flex-direction: column;
  align-items: center;
  background: #fff;
  padding: 20px;
  border-radius: 16px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
  margin-bottom: 20px;
  text-align: center;
}
.p-voice__card img {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  flex-shrink: 0;
  margin-bottom: 15px;
}
.p-voice__body h4 {
  font-size: 18px;
  margin-bottom: 5px;
  color: var(--c-red);
}
.p-voice__body small {
  display: block;
  text-align: right;
  margin-top: 10px;
  color: #aaa;
}

.p-price__container {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
}
.p-price__card {
  background: #fff;
  border-radius: 16px;
  padding: 30px;
  text-align: center;
  width: 100%;
  max-width: 400px;
  box-shadow: 0 8px 25px rgba(9, 41, 77, 0.06);
}
.p-price__card h3 {
  font-size: 22px;
  color: var(--c-blue);
  margin-bottom: 15px;
}
.p-price__item-name {
  font-weight: 500;
  font-size: 18px;
}
.p-price__amount {
  font-size: 36px;
  font-weight: 500;
  margin: 10px 0;
}
.p-price__unit {
  font-size: 16px;
  font-weight: normal;
}
.p-price__plus {
  font-size: 30px;
  font-weight: 500;
  color: var(--c-blue);
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.p-faq__item {
  border-bottom: 1px solid #eee;
  padding-bottom: 15px;
  margin-bottom: 15px;
}
.p-faq__item dt {
  font-weight: 500;
  position: relative;
  padding-left: 25px;
}
.p-faq__item dt::before {
  content: "Q.";
  color: var(--c-blue);
  position: absolute;
  left: 0;
}
.p-faq__item dd {
  padding-left: 25px;
  color: #555;
}

.p-form-wrapper {
  margin-top: 50px;
}
.p-form-wrapper__title {
  text-align: center;
  font-size: 20px;
  font-weight: 500;
  margin-bottom: 20px;
}

/* =================================================================
   アニメーションと装飾
   ================================================================= */
@keyframes drift {
  0% {
    transform: translateY(0px) rotate(0deg);
  }
  50% {
    transform: translateY(15px) rotate(10deg);
  }
  100% {
    transform: translateY(0px) rotate(0deg);
  }
}

.c-animate-on-scroll {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}
.c-animate-on-scroll.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.c-deco-shape {
  position: absolute;
  z-index: 0;
  opacity: 0;
  transform-origin: center center;
  transition: opacity 1.2s ease, transform 1.2s ease;
  transition-delay: var(--animation-delay, 0s);
  animation: drift 20s ease-in-out infinite;
  pointer-events: none; /* 装飾がクリックの邪魔をしないように */
}
.c-deco-shape.is-visible {
  opacity: 0.7;
}
.c-deco-shape--circle1 {
  top: -8%;
  left: -10%;
  width: 150px;
  height: 150px;
  border-radius: 40% 60% 70% 30% / 40% 50% 50% 60%;
  background-color: rgba(251, 188, 5, 0.15);
  animation-duration: 40s;
}
.c-deco-shape--square1 {
  bottom: -5%;
  right: -12%;
  width: 160px;
  height: 160px;
  border-radius: 30% 70% 50% 50% / 50% 40% 60% 50%;
  background-color: rgba(66, 133, 244, 0.15);
  animation-direction: reverse;
}
.c-deco-shape--triangle1 {
  top: 10%;
  right: -15%;
  width: 180px;
  height: 180px;
  background-color: rgba(234, 67, 53, 0.1);
  clip-path: polygon(50% 0%, 0% 100%, 100% 100%);
  animation-duration: 50s;
}
.c-deco-shape--triangle2 {
  bottom: 5%;
  left: -15%;
  width: 150px;
  height: 150px;
  background-color: rgba(52, 168, 83, 0.1);
  clip-path: polygon(50% 0%, 0% 100%, 100% 100%);
  animation-direction: reverse;
}
.c-deco-shape--square2 {
  top: 10%;
  left: -5%;
  width: 120px;
  height: 120px;
  border-radius: 70% 30% 50% 50% / 60% 40% 60% 40%;
  background-color: rgba(251, 188, 5, 0.15);
  animation-duration: 35s;
}
.c-deco-shape--circle2 {
  bottom: 10%;
  right: -10%;
  width: 220px;
  height: 220px;
  border-radius: 50% 50% 30% 70% / 60% 40% 60% 40%;
  background-color: rgba(52, 168, 83, 0.1);
  animation-duration: 45s;
}
.c-deco-shape--circle3 {
  top: 5%;
  right: -15%;
  width: 180px;
  height: 180px;
  border-radius: 60% 40% 30% 70% / 60% 30% 70% 40%;
  background-color: rgba(66, 133, 244, 0.1);
  animation-direction: reverse;
  animation-duration: 55s;
}

/* =================================================================
   スマホ用 追従要素
   ================================================================= */
.p-sp-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 15px;
  height: 60px;
  background-color: rgba(253, 250, 244, 0.9);
  backdrop-filter: blur(5px);
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  transition: box-shadow 0.3s ease;
}
.p-sp-header.is-scrolled {
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
}
.p-sp-header .c-logo {
  font-size: 20px;
}

.p-hamburger {
  width: 30px;
  height: 30px;
  background: none;
  border: none;
  cursor: pointer;
  position: relative;
  z-index: 1001;
}
.p-hamburger span {
  display: block;
  width: 24px;
  height: 2px;
  background-color: var(--c-text);
  border-radius: 1px;
  position: absolute;
  left: 3px;
  transition: all 0.3s ease;
}
.p-hamburger span:nth-of-type(1) {
  top: 6px;
}
.p-hamburger span:nth-of-type(2) {
  top: 14px;
}
.p-hamburger span:nth-of-type(3) {
  bottom: 6px;
}

.is-nav-open .p-hamburger span:nth-of-type(1) {
  top: 14px;
  transform: rotate(45deg);
}
.is-nav-open .p-hamburger span:nth-of-type(2) {
  opacity: 0;
}
.is-nav-open .p-hamburger span:nth-of-type(3) {
  top: 14px;
  transform: rotate(-45deg);
}

@media screen and (max-width: 1023px) {
  .is-nav-open {
    overflow: hidden;
  }
}

.p-sp-nav {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(253, 250, 244, 0.98);
  z-index: 999;
  display: flex;
  justify-content: center;
  align-items: center;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
}
.is-nav-open .p-sp-nav {
  opacity: 1;
  visibility: visible;
}
.p-sp-nav ul {
  text-align: center;
}
.p-sp-nav ul li a {
  display: block;
  padding: 15px;
  font-size: 18px;
  font-weight: 500;
  color: var(--c-blue);
}

.p-sp-cta {
  display: flex;
  gap: 10px;
  padding: 10px;
  height: 80px;
  background-color: #fff;
  box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.08);
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
}
.c-btn--sp {
  flex: 1;
  height: 100%;
  padding: 5px;
  font-size: 12px;
  line-height: 1.2;
  border-radius: 8px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}
.c-btn--sp strong {
  font-size: 14px;
}

/* =================================================================
   PC表示用のスタイル（@media）
   ================================================================= */
@media screen and (min-width: 768px) {
  .c-cta-group {
    flex-direction: row;
    justify-content: center;
  }
  .p-comparison-table {
    display: flex;
    align-items: center;
    gap: 20px;
  }
  .p-comparison-table__col {
    flex: 1;
  }
  .p-comparison-table__vs {
    margin: 0;
  }
  .p-reasons__grid,
  .p-curriculum__steps,
  .p-cubeset__points {
    grid-template-columns: repeat(3, 1fr);
  }
  .p-voice__card {
    flex-direction: row;
    text-align: left;
  }
  .p-voice__card img {
    margin-bottom: 0;
    margin-right: 20px;
  }
  .p-price__container {
    flex-direction: row;
    align-items: stretch;
  }
  .p-price__card {
    display: flex;
    flex-direction: column;
  }
  .p-price__card p {
    margin-top: auto;
  }
}

@media screen and (min-width: 1024px) {
  .l-main {
    padding-top: 0;
    padding-bottom: 0;
  }
  .p-sp-header,
  .p-sp-cta,
  .p-sp-nav {
    display: none;
  }
  .l-wrapper {
    flex-direction: row;
    justify-content: center;
    max-width: 1400px;
    margin: 0 auto;
    align-items: flex-start;
    gap: 30px;
  }
  .l-main {
    order: 2;
    width: 100%;
    max-width: 900px;
    min-width: 0;
  }

  .l-side-nav {
    display: block;
    order: 1;
    width: 22%;
    flex-shrink: 0;
    position: sticky;
    top: 0px;
  }
  .l-side-nav__inner {
    padding: 20px;
    height: 100vh;
    border-radius: 16px;
    border: 1px solid #eee;
    display: flex;
    flex-direction: column;
    justify-content: center;
  }
  .l-side-nav .c-logo {
    text-align: left;
    margin-bottom: 30px;
  }
  .l-side-nav nav ul li {
    margin-bottom: 15px;
  }
  .l-side-nav nav ul li a {
    display: block;
    padding: 10px;
    border-radius: 8px;
    transition: all 0.3s;
    font-weight: 500;
  }
  .l-side-nav nav ul li a:hover {
    background-color: var(--c-bg-alt);
  }

  .l-side-cta {
    display: block;
    order: 3;
    width: 22%;
    flex-shrink: 0;
    position: sticky;
    top: 0px;
  }
  .l-side-cta__inner {
    background-color: #fff;
    padding: 20px;
    border-radius: 16px;
    text-align: center;
    border: 1px solid #eee;
    display: flex;
    flex-direction: column;
    justify-content: center;
    height: 100vh;
  }
  .l-side-cta__inner > p {
    font-weight: 500;
    margin-bottom: 15px;
  }
  .l-side-cta__inner .c-btn {
    display: block;
    margin-bottom: 10px;
  }

  .c-container {
    padding: 0;
  }
  .c-logo--sp {
    display: none;
  }
  .c-section-title {
    font-size: 32px;
  }
  .p-hero__title {
    font-size: 34px;
  }
  .p-instructor__profile {
    flex-direction: row;
    text-align: left;
  }
  .p-instructor__profile img {
    margin-right: 20px;
  }
}
