:root {
  --base-bg: #fdfcfb;
  --beige: #faf7f3;
  --rose: #eedad0;
  --greige: #d6cec3;
  --bluegray: #a8b0ba;
  --text-main: #44413c;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  background-color: var(--base-bg);
  color: var(--text-main);
  font-family: "Noto Serif JP", "游明朝", "Lora", serif;
  line-height: 1.9;
  letter-spacing: 0.04em;
  margin: 0;
  padding: 0;
}

main {
  position: relative;
  z-index: 3;                    
  background-color: var(--base-bg);  
}

header.hero {
  position: relative;           
  height: 70vh;                 
  min-height: 500px;            
  overflow: hidden;              
  display: flex;                
  align-items: center;           
  justify-content: center;       
}



.hero-background {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(to bottom, rgba(253, 252, 251, 0.3), rgba(253, 252, 251, 0.7)), 
              image-set(
                url('hero-back.webp') type('image/webp'),
                url('hero-back.png') type('image/png')
              ) center/cover no-repeat;
  background-attachment: fixed;  
  z-index: 1;
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 720px;
  padding: 40px 20px;
  text-align: center;
  background: rgba(253, 252, 251, 0.95); 
  backdrop-filter: blur(10px); 
  border-radius: 16px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08); 
}

.hero-content h1 {
  color: #2a2826; 
  text-shadow: 0 1px 2px rgba(255, 255, 255, 0.8); /* 追加：微細な白影 */
}

.subtitle {
  font-size: 1.4rem;
  margin-bottom: 1rem;
  color: #c5a594; 
  font-weight: 700; 
}

.lead {
  font-size: 1.2rem;
  line-height: 1.8;
}

.sectionback{
  background-color: var(--bluegray);
  width:100%;
}

.beige{
  color: var(--beige);
}


/* Lesson Preview セクション専用スタイル */
.lessons {
  background-color: var(--bluegray); /* 背景を暗め */
  padding: 100px 20px;
}

.lessons h2 {
  color: var(--beige); 
}

.lessons ul {
  counter-reset: lesson-counter;
  list-style: none;
  padding: 0;
  margin: 0 0 2rem;
}

.lessons ul li {
  position: relative;
  padding-left: 3.5rem;
  padding-top: 0.5rem;
  margin: 1.2rem 0.6rem;
  color: var(--beige); 
  counter-increment: lesson-counter;
}

.lessons ul li::before {
  content: counter(lesson-counter) "日目";
  position: absolute;
  left: 0;
  top: 0;
  width: 2.8rem;
  height: 2.8rem;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(250, 247, 243, 0.15);
  border: 2px solid var(--beige);
  border-radius: 50%;
  font-size: 0.75rem;
  font-weight: 800;
  color: var(--beige);
}

/* こんなあなたへ */
.for-you ul li {
  position: relative;
  padding-left: 2rem;
}

.for-you ul li::before {
  content: "•";
  position: absolute;
  left: 0.5rem;
  top: 0;
  color: var(--bluegray);
  font-size: 1.2rem;
  line-height: 1.6;
}

/* 受講後に感じられる変化 */
.change ul li {
  position: relative;
  padding-left: 2rem;
}

.change ul li::before {
  content: "•";
  position: absolute;
  left: 0.5rem;
  top: 0;
  color: var(--bluegray);
  font-size: 1.2rem;
  font-weight: bold;
  line-height: 1.6;
}



section {
  max-width: 720px;
  margin: 0 auto;
  padding: 100px 20px;
}

h2 {
  font-weight: 400;
  text-align: center;
  margin-bottom: 2rem;
  color: var(--bluegray);
}

ul {
  list-style: none;
  padding: 0;
  margin: 0 0 2rem;
}

ul li {
  margin: 0.8rem 0;
}

a{
  text-decoration:none;
  color: var(--greige);
}

/* Form Styling */
form {
  max-width: 720px;
  margin: 0 auto;
  padding: 0 10px;
}

form input[type="email"] {
  width: 100%;
  max-width: 100%;
  padding: 14px 16px;
  border: 1px solid var(--greige);
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.7);
  font-size: 1rem;
  margin-bottom: 20px;
  transition: all 0.3s ease;
  font-family: "Noto Serif JP", "游明朝", sans-serif;
  box-sizing: border-box;
}

form input[type="email"]:focus {
  outline: none;
  border-color: var(--rose);
  background: rgba(255, 255, 255, 0.9);
}

/* 無料で受け取る セクション */
.form h2 {
  font-size: clamp(1.6rem, 5vw, 2rem); /* 大きめ */
  text-align: center;
  margin-bottom: 1.5rem;
}

.form > p:first-of-type {
  font-size: clamp(1.1rem, 4vw, 1.3rem); /* 大きめ */
  text-align: center;
  margin-bottom: 2rem;
  font-weight: 800;
}

button {
  position: relative; 
  background: #9a8b7e; /* var(--greige)より暗め */
  color: #fff;
  border: none;
  border-radius: 4px;
  padding: 16px 28px; 
  font-size: 1.1rem; 
  font-weight: 600; 
  cursor: pointer;
  transition: background 0.4s ease, transform 0.2s ease, opacity 0.3s ease;
  width: 100%;
  max-width: 100%;
  font-family: "Noto Serif JP", "游明朝", sans-serif;
  box-sizing: border-box;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15); 
  /* ボタン内部のコンテンツを中央揃えにするための設定 */
  display: flex;
  align-items: center;
  justify-content: center;
}

button:hover:not(:disabled) {
  background: #856f5f; /* より暗い色 */
  transform: translateY(-2px); 
}

/* フォーム送信中の状態 */
button:disabled {
  opacity: 0.8;
  cursor: not-allowed;
  transform: none;
}

/* ボタン内の要素の制御 */
button .sending-status {
    /* flex displayを維持しつつ、デフォルトでは非表示 */
    display: none; 
    align-items: center;
    justify-content: center;
}

/* 送信中クラスが付いたボタンの状態 */
button.is-sending .default-text {
    /* 通常テキストを非表示 */
    display: none; 
}

button.is-sending .sending-status {
    /* 送信中ステータスを表示 */
    display: flex; 
}

/* スピナーのCSSアニメーション */
.spinner {
  border: 4px solid rgba(255, 255, 255, 0.3);
  border-top: 4px solid #fff;
  border-radius: 50%;
  width: 1.1em; /* フォントサイズに合わせる */
  height: 1.1em;
  animation: spin 1s linear infinite;
  margin-right: 8px; /* テキストとの間隔 */
}

@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

.note {
  font-size: 0.9rem;
  text-align: center;
  margin-top: 10px;
  color: var(--rose);
  font-weight: 800; 
}

.pstext{
  font-size:130%;
  color: var(--bluegray);
}

footer.footer {
  text-align: center;
  padding: 60px 20px;
  font-size: 0.9rem;
  color: var(--bluegray);
}

/* Animation */
.fade-in {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 1.4s ease, transform 1.4s ease;
}

.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Fade Out Animation */
.fade-out {
  opacity: 0;
  transition: opacity 0.8s ease;
}

/* Thank You Message */
.thank-you-message {
  display: none;
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  text-align: center;
  padding: 60px 40px;
  background: rgba(253, 252, 251, 0.95);
  backdrop-filter: blur(12px);
  border-radius: 16px;
  max-width: 600px;
  width: 90%;
  z-index: 9999;
  opacity: 0;
  transition: opacity 1s ease;
}

.thank-you-message.show {
  display: block;
  opacity: 1;
}

.thank-you-message h2 {
  font-size: 1.8rem;
  color: var(--rose);
  margin-bottom: 1.5rem;
}

.thank-you-message p {
  font-size: 1.1rem;
  color: var(--text-main);
  line-height: 1.8;
}


/* Fluid Typography for Better Mobile Display */
section p {
  font-size: clamp(0.9rem, 3.5vw, 1rem);
  line-height: 1.8;
}

.intro p,
.about p {
  font-size: clamp(0.85rem, 3.2vw, 1rem);
}


/* Feature detection: disable fixed attachment on iOS */
@supports (-webkit-touch-callout: none) {
  .hero-background {
    background-attachment: scroll;
  }
}

/* Responsive */
@media (max-width: 768px) {
  header.hero {
    height: 65vh;  /* さらに低めに */
    min-height: 400px;
  }

  .hero-background {
    background-position: center 40%;
    background-size: cover;
  }

  .hero-content h1 {
    font-size: clamp(1.3rem, 5vw, 1.6rem);
  }
  
  .hero-content .subtitle {
    font-size: clamp(1rem, 4vw, 1.2rem);
  }
  
  .hero-content .lead {
    font-size: clamp(0.9rem, 3.5vw, 1rem);
  }
  
  section {
    padding: 80px 20px;
  }
  
  h2 {
    font-size: clamp(1.3rem, 4.5vw, 1.5rem);
  }

 .sizeadjust{
   font-size: 0.95rem!important;
 }

}

@media (max-width: 480px) {
  section {
    padding: 60px 16px;
  }

  .hero-background {
    background-position: center 45%;
  }  

  .hero-content {
    padding: 30px 16px;
  }
}

@media (max-width: 375px) {
  .hero-background {
    background-position: center 50%;
  }
}
