/* ===== MAIN STYLESHEET ===== */

/* ===== Sakura Decorations ===== */
.sakura-border {
  position: relative;
}
.sakura-border::before,
.sakura-border::after {
  content: '';
  display: block;
  height: 60px;
  background-image: url('../images/sakura-border.svg');
  background-size: cover;
  background-repeat: no-repeat;
}

/* ===== Header ===== */
#site-header {
  background: linear-gradient(135deg, #fff9f4 0%, #ffeedd 100%);
  border-bottom: 2px solid var(--color-sakura);
  padding: 10px 0;
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: 0 2px 12px rgba(232, 98, 42, 0.1);
}

.header-inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
}

.site-logo {
  display: flex;
  align-items: center;
  gap: 12px;
}

.logo-mark {
  width: 52px;
  height: 52px;
  background: var(--color-primary);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 22px;
  font-family: var(--font-mincho);
  font-weight: 700;
  box-shadow: 0 2px 8px rgba(232,98,42,0.4);
  flex-shrink: 0;
}

.logo-text {
  font-family: var(--font-mincho);
  font-size: 22px;
  font-weight: 700;
  color: var(--color-text);
  letter-spacing: 0.05em;
}

.header-right {
  text-align: right;
}

.header-notice {
  font-size: 11px;
  color: var(--color-primary);
  margin-bottom: 4px;
}

.header-nav ul {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.header-nav a {
  font-size: 13px;
  color: var(--color-text-light);
  transition: color 0.2s;
  white-space: nowrap;
}
.header-nav a:hover { color: var(--color-primary); }

.header-tel {
  font-size: 15px;
  font-weight: 700;
  color: var(--color-text);
  margin-top: 4px;
  text-align: right;
}

/* ===== Hero Section ===== */
#hero {
  background: linear-gradient(160deg, #fff4e8 0%, #fde8d4 40%, #ffd4c0 100%);
  padding: 60px 20px 70px;
  position: relative;
  overflow: hidden;
}

#hero::before {
  content: '';
  position: absolute;
  top: -20px; left: -20px; right: -20px; bottom: -20px;
  background-image: 
    radial-gradient(circle at 10% 20%, rgba(247,197,192,0.5) 0%, transparent 40%),
    radial-gradient(circle at 90% 80%, rgba(247,197,192,0.4) 0%, transparent 40%),
    radial-gradient(circle at 80% 10%, rgba(255,200,150,0.3) 0%, transparent 30%);
  pointer-events: none;
}

/* Floating sakura petals */
.petal {
  position: absolute;
  width: 18px;
  height: 18px;
  background: radial-gradient(ellipse at 40% 40%, #ffb8c0, #f99aaa);
  border-radius: 50% 0 50% 0;
  opacity: 0.6;
  animation: floatPetal linear infinite;
}
.petal:nth-child(1)  { left: 5%;  top: 10%; animation-duration: 8s;  animation-delay: 0s;   width:14px; height:14px; }
.petal:nth-child(2)  { left: 15%; top: 70%; animation-duration: 10s; animation-delay: 2s;   width:10px; height:10px; }
.petal:nth-child(3)  { left: 85%; top: 20%; animation-duration: 9s;  animation-delay: 1s; }
.petal:nth-child(4)  { left: 92%; top: 60%; animation-duration: 11s; animation-delay: 3s;   width:12px; height:12px; }
.petal:nth-child(5)  { left: 50%; top: 5%;  animation-duration: 7s;  animation-delay: 0.5s; width:16px; height:16px; }
.petal:nth-child(6)  { left: 70%; top: 85%; animation-duration: 9s;  animation-delay: 4s;   width:8px;  height:8px; }
.petal:nth-child(7)  { left: 30%; top: 90%; animation-duration: 12s; animation-delay: 1.5s; width:12px; height:12px; }
.petal:nth-child(8)  { left: 60%; top: 15%; animation-duration: 8s;  animation-delay: 2.5s; width:10px; height:10px; }

@keyframes floatPetal {
  0%   { transform: translateY(0) rotate(0deg);   opacity: 0.6; }
  50%  { transform: translateY(-30px) rotate(180deg); opacity: 0.8; }
  100% { transform: translateY(0) rotate(360deg); opacity: 0.6; }
}

.hero-inner {
  max-width: 1100px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 40px;
  position: relative;
  z-index: 1;
}

.hero-content { flex: 1; }

.hero-title {
  font-family: var(--font-mincho);
  font-size: clamp(28px, 5vw, 46px);
  font-weight: 700;
  line-height: 1.4;
  color: var(--color-text);
  margin-bottom: 12px;
}

.hero-title .accent {
  color: var(--color-primary);
  font-size: 1.15em;
}

.hero-subtitle {
  font-size: 16px;
  color: var(--color-text-light);
  margin-bottom: 10px;
  font-family: var(--font-mincho);
}

.hero-tagline {
  font-size: 14px;
  color: var(--color-text-light);
  margin-bottom: 30px;
  padding: 6px 0;
  border-top: 1px dashed var(--color-sakura-dark);
  border-bottom: 1px dashed var(--color-sakura-dark);
  display: inline-block;
  padding: 6px 16px;
}

.hero-buttons {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 13px 24px;
  border-radius: 30px;
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
  border: none;
  transition: transform 0.2s, box-shadow 0.2s;
  text-decoration: none;
}
.btn:hover { transform: translateY(-2px); box-shadow: 0 6px 20px rgba(0,0,0,0.15); }

.btn-outline {
  background: white;
  color: var(--color-text);
  border: 2px solid var(--color-gold);
}

.btn-primary {
  background: linear-gradient(135deg, var(--color-primary), #d45020);
  color: white;
  box-shadow: 0 4px 14px rgba(232,98,42,0.4);
}

.hero-images {
  flex: 0 0 320px;
  position: relative;
  height: 260px;
}

.fude-card {
  position: absolute;
  background: white;
  border-radius: 8px;
  padding: 10px;
  box-shadow: 3px 5px 18px rgba(0,0,0,0.18);
  font-family: var(--font-mincho);
}

.fude-card.card-1 {
  width: 160px;
  top: 0; right: 10px;
  transform: rotate(3deg);
  font-size: 22px;
  color: var(--color-text);
  text-align: center;
  padding: 16px 20px;
}
.fude-card.card-1 .small { font-size: 12px; color: var(--color-text-light); display: block; margin-top: 4px; }

.fude-card.card-2 {
  width: 140px;
  bottom: 10px; left: 20px;
  transform: rotate(-4deg);
  font-size: 26px;
  color: #2a4a8a;
  text-align: center;
  padding: 14px 18px;
}

.fude-card.card-3 {
  width: 150px;
  bottom: 30px; right: 0;
  transform: rotate(2deg);
  font-size: 20px;
  color: var(--color-primary);
  text-align: center;
  padding: 14px 18px;
}

.fude-card-bg {
  position: absolute;
  inset: 0;
  border-radius: 6px;
  opacity: 0.08;
  background: radial-gradient(ellipse, var(--color-sakura) 0%, transparent 70%);
}

/* ===== Wave Divider ===== */
.wave-divider {
  line-height: 0;
  overflow: hidden;
}
.wave-divider svg { display: block; }

/* ===== Section Base ===== */
.section {
  padding: 70px 20px;
}

.section-title {
  text-align: center;
  font-family: var(--font-mincho);
  font-size: clamp(22px, 4vw, 32px);
  font-weight: 700;
  color: var(--color-text);
  margin-bottom: 40px;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
}
.section-title::before,
.section-title::after {
  content: '❀';
  color: var(--color-sakura-dark);
  font-size: 18px;
}

/* ===== Profile Section ===== */
#profile {
  background: var(--color-cream);
  padding: 70px 20px;
  position: relative;
}

#profile::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background-image: 
    radial-gradient(circle at 95% 50%, rgba(247,197,192,0.3) 0%, transparent 40%),
    radial-gradient(circle at 5%  50%, rgba(247,197,192,0.3) 0%, transparent 40%);
  pointer-events: none;
}

.profile-inner {
  max-width: 900px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 50px;
  position: relative;
  z-index: 1;
  flex-wrap: wrap;
}

.profile-photo {
  flex: 0 0 280px;
  border-radius: 50% 50% 50% 50% / 60% 60% 40% 40%;
  overflow: hidden;
  box-shadow: 0 8px 30px rgba(232,98,42,0.2);
  border: 5px solid white;
  max-width: 100%;
}

.profile-photo img {
  width: 100%;
  height: 300px;
  object-fit: cover;
}

.profile-photo-placeholder {
  width: 280px;
  height: 300px;
  background: linear-gradient(160deg, #f5d0c8, #e8b0a8);
  border-radius: 50% 50% 50% 50% / 60% 60% 40% 40%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 80px;
  color: white;
  box-shadow: 0 8px 30px rgba(232,98,42,0.2);
  border: 5px solid white;
  flex-shrink: 0;
}

.profile-content { flex: 1; min-width: 260px; }

.profile-label {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 14px;
  color: var(--color-primary);
  margin-bottom: 10px;
  font-weight: 500;
}

.profile-name {
  font-family: var(--font-mincho);
  font-size: clamp(26px, 4vw, 36px);
  font-weight: 700;
  margin-bottom: 14px;
  color: var(--color-text);
}

.profile-bio {
  font-size: 16px;
  color: var(--color-text-light);
  line-height: 1.8;
  margin-bottom: 20px;
}

.profile-badges {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.badge {
  background: linear-gradient(135deg, #fff0e8, #ffe0cc);
  border: 1px solid var(--color-sakura-dark);
  border-radius: 20px;
  padding: 5px 14px;
  font-size: 13px;
  color: var(--color-primary);
  font-weight: 500;
}

/* ===== Gallery Section ===== */
#gallery {
  background: linear-gradient(180deg, #fff9f4 0%, #fef2e8 100%);
  padding: 70px 20px;
}

.gallery-grid {
  max-width: 1000px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.gallery-item {
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 16px rgba(0,0,0,0.12);
  transition: transform 0.3s, box-shadow 0.3s;
  background: white;
}
.gallery-item:hover {
  transform: translateY(-4px) scale(1.02);
  box-shadow: 0 10px 30px rgba(0,0,0,0.2);
}

.gallery-item img {
  width: 100%;
  height: 200px;
  object-fit: cover;
}

.gallery-item-placeholder {
  width: 100%;
  height: 200px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 40px;
  flex-direction: column;
  gap: 8px;
}

.gallery-item-placeholder span {
  font-family: var(--font-mincho);
  font-size: 14px;
  color: var(--color-text-light);
}

.gallery-caption {
  padding: 12px 14px;
  font-size: 13px;
  color: var(--color-text-light);
  text-align: center;
  font-family: var(--font-mincho);
}

.gallery-message {
  text-align: center;
  font-size: 18px;
  color: var(--color-text);
  margin-top: 30px;
  font-family: var(--font-mincho);
}

/* ===== Class Info Section ===== */
#class-info {
  background: linear-gradient(135deg, #fdf0e8, #fff4ec);
  padding: 70px 20px;
  position: relative;
}

.class-cards {
  max-width: 960px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 24px;
}

.class-card {
  background: white;
  border-radius: 16px;
  padding: 30px 24px;
  box-shadow: 0 4px 20px rgba(232,98,42,0.1);
  border-top: 4px solid var(--color-primary);
  transition: transform 0.3s, box-shadow 0.3s;
  text-align: center;
}
.class-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 10px 30px rgba(232,98,42,0.2);
}

.class-card-icon {
  font-size: 44px;
  margin-bottom: 14px;
}

.class-card-title {
  font-family: var(--font-mincho);
  font-size: 20px;
  font-weight: 700;
  margin-bottom: 10px;
  color: var(--color-text);
}

.class-card-desc {
  font-size: 14px;
  color: var(--color-text-light);
  line-height: 1.7;
  margin-bottom: 16px;
}

.class-card-price {
  font-size: 13px;
  color: var(--color-primary);
  font-weight: 600;
  background: #fff4ee;
  border-radius: 8px;
  padding: 6px 12px;
  display: inline-block;
}

/* ===== CTA Section ===== */
#cta {
  background: linear-gradient(135deg, #fde8d8 0%, #ffd4b8 50%, #ffcaaa 100%);
  padding: 70px 20px;
  text-align: center;
  position: relative;
  overflow: hidden;
}

#cta::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: 
    radial-gradient(circle at 20% 50%, rgba(255,255,255,0.3) 0%, transparent 50%),
    radial-gradient(circle at 80% 50%, rgba(255,255,255,0.3) 0%, transparent 50%);
  pointer-events: none;
}

.cta-inner { position: relative; z-index: 1; }

.cta-notice {
  font-size: 14px;
  color: var(--color-text-light);
  margin-bottom: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
}

.cta-title {
  font-family: var(--font-mincho);
  font-size: clamp(20px, 3.5vw, 28px);
  font-weight: 700;
  color: var(--color-text);
  margin-bottom: 24px;
}

.btn-cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: linear-gradient(135deg, #c8702a, var(--color-primary));
  color: white;
  padding: 18px 40px;
  border-radius: 50px;
  font-size: 18px;
  font-weight: 700;
  font-family: var(--font-mincho);
  box-shadow: 0 6px 24px rgba(200,110,42,0.45);
  transition: transform 0.2s, box-shadow 0.2s;
  border: 3px solid rgba(255,255,255,0.3);
}
.btn-cta:hover {
  transform: translateY(-3px) scale(1.02);
  box-shadow: 0 10px 32px rgba(200,110,42,0.55);
}

/* ===== Footer ===== */
#site-footer {
  background: linear-gradient(135deg, #3d2b1f, #5a3d2b);
  color: rgba(255,255,255,0.85);
  padding: 40px 20px 20px;
}

.footer-inner {
  max-width: 1000px;
  margin: 0 auto;
}

.footer-top {
  display: flex;
  gap: 40px;
  flex-wrap: wrap;
  padding-bottom: 30px;
  border-bottom: 1px solid rgba(255,255,255,0.15);
  margin-bottom: 20px;
}

.footer-logo {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 12px;
}

.footer-logo .logo-mark {
  width: 44px;
  height: 44px;
  font-size: 18px;
}

.footer-logo .logo-text { color: white; font-size: 18px; }

.footer-desc {
  font-size: 13px;
  color: rgba(255,255,255,0.6);
  line-height: 1.7;
  max-width: 300px;
}

.footer-col h4 {
  font-family: var(--font-mincho);
  font-size: 15px;
  margin-bottom: 14px;
  color: white;
  border-left: 3px solid var(--color-primary);
  padding-left: 10px;
}

.footer-col ul li {
  margin-bottom: 6px;
}

.footer-col a {
  font-size: 13px;
  color: rgba(255,255,255,0.65);
  transition: color 0.2s;
}
.footer-col a:hover { color: var(--color-sakura); }

.footer-tel {
  font-size: 20px;
  font-weight: 700;
  color: white;
  margin-top: 8px;
}

.footer-bottom {
  text-align: center;
  font-size: 12px;
  color: rgba(255,255,255,0.4);
}

/* ===== Sakura Overlay Decoration ===== */
.sakura-overlay {
  position: absolute;
  pointer-events: none;
  z-index: 0;
}

/* ===== Utilities ===== */
.text-center { text-align: center; }
.container { max-width: 1100px; margin: 0 auto; }

/* ===== Responsive ===== */
@media (max-width: 768px) {
  .hero-inner {
    flex-direction: column;
    text-align: center;
  }

  .hero-images {
    flex: none;
    width: 100%;
    max-width: 320px;
    margin: 0 auto;
  }

  .hero-image {
    flex: none;
    width: 100%;
    max-width: 320px;
    margin: 0 auto;
    order: -1; /* 画像をテキストの上に */
  }

  .hero-photo {
    width: 100%;
    height: auto;
    display: block;
  }

  .hero-buttons {
    justify-content: center;
  }

  .profile-inner {
    flex-direction: column;
    text-align: center;
  }

  .profile-badges {
    justify-content: center;
  }

  .gallery-grid {
    grid-template-columns: 1fr;
  }

  .footer-top {
    flex-direction: column;
    gap: 24px;
  }

  .header-inner {
    flex-direction: column;
    text-align: center;
  }

  .header-right { text-align: center; }
  .header-nav ul { justify-content: center; }
}

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

  .class-cards {
    grid-template-columns: 1fr;
  }
}

/* ===== WordPress Customizer Additions ===== */
.wp-caption { max-width: 100%; }
.alignleft { float: left; margin-right: 20px; }
.alignright { float: right; margin-left: 20px; }
.aligncenter { margin: 0 auto; display: block; }

/* ===== Smooth scroll + fade-in animations ===== */
.fade-in {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

/* CF7 必須バッジの崩れ修正 */
.wpcf7 .wpcf7-form-control-wrap {
  display: block;
  width: 100%;
}

/* ラベル行を横並びに整える */
.wpcf7 label {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px;
  font-size: 14px;
  font-weight: 700;
  color: var(--color-text);
  margin-bottom: 6px;
}

/* 必須バッジ */
.wpcf7 abbr,
.wpcf7 .required,
.wpcf7 span.required {
  display: inline-block;
  background: #e8622a;
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  padding: 2px 7px;
  border-radius: 4px;
  text-decoration: none;
  white-space: nowrap;
  vertical-align: middle;
}

/* ===== Contact Form 7 スマホ対応 ===== */

/* フォーム全体のラッパー */
.wpcf7 {
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
}

/* テキスト・メール・電話・URL 入力欄 */
.wpcf7 input[type="text"],
.wpcf7 input[type="email"],
.wpcf7 input[type="tel"],
.wpcf7 input[type="url"],
.wpcf7 input[type="number"],
.wpcf7 input[type="date"] {
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
  padding: 12px 16px;
  font-size: 16px; /* 16px未満だとiOSで自動ズームが起きるため */
  border: 2px solid #f0d9c8;
  border-radius: 10px;
  background: #fff;
  color: var(--color-text);
  transition: border-color 0.2s;
  -webkit-appearance: none;
  appearance: none;
}

/* テキストエリア */
.wpcf7 textarea {
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
  padding: 12px 16px;
  font-size: 16px;
  border: 2px solid #f0d9c8;
  border-radius: 10px;
  background: #fff;
  color: var(--color-text);
  resize: vertical;
  min-height: 120px;
  transition: border-color 0.2s;
  -webkit-appearance: none;
  appearance: none;
}

/* セレクトボックス */
.wpcf7 select {
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
  padding: 12px 16px;
  font-size: 16px;
  border: 2px solid #f0d9c8;
  border-radius: 10px;
  background: #fff;
  color: var(--color-text);
  -webkit-appearance: none;
  appearance: none;
}

/* フォーカス時 */
.wpcf7 input:focus,
.wpcf7 textarea:focus,
.wpcf7 select:focus {
  outline: none;
  border-color: var(--color-primary, #e8622a);
  box-shadow: 0 0 0 3px rgba(232,98,42,0.15);
}

/* ラベル */
.wpcf7 label {
  display: block;
  font-size: 14px;
  font-weight: 700;
  color: var(--color-text);
  margin-bottom: 6px;
}

/* フォームの行間 */
.wpcf7 p {
  margin-bottom: 20px;
}

/* 送信ボタン */
.wpcf7 input[type="submit"] {
  display: block;
  width: 100%;
  max-width: 320px;
  margin: 10px auto 0;
  padding: 15px 24px;
  font-size: 17px;
  font-weight: 700;
  color: #fff;
  background: linear-gradient(135deg, var(--color-primary, #e8622a), #d45020);
  border: none;
  border-radius: 50px;
  cursor: pointer;
  box-shadow: 0 4px 14px rgba(232,98,42,0.4);
  transition: transform 0.2s, box-shadow 0.2s;
  -webkit-appearance: none;
  appearance: none;
}

.wpcf7 input[type="submit"]:hover,
.wpcf7 input[type="submit"]:active {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(232,98,42,0.5);
}

/* バリデーションエラー文字 */
.wpcf7 .wpcf7-not-valid-tip {
  font-size: 13px;
  color: #d9534f;
  margin-top: 4px;
  display: block;
}

/* 送信結果メッセージ */
.wpcf7 .wpcf7-response-output {
  margin: 16px 0 0;
  padding: 12px 16px;
  border-radius: 10px;
  font-size: 14px;
  text-align: center;
  border: none !important;
}

/* チェックボックス・ラジオボタンのタップ領域を広げる */
.wpcf7 .wpcf7-checkbox label,
.wpcf7 .wpcf7-radio label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 4px;
  font-size: 15px;
  cursor: pointer;
}

.wpcf7 .wpcf7-checkbox input[type="checkbox"],
.wpcf7 .wpcf7-radio input[type="radio"] {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
}

/* スマホ専用の追加調整 */
@media (max-width: 768px) {
  .wpcf7 input[type="text"],
  .wpcf7 input[type="email"],
  .wpcf7 input[type="tel"],
  .wpcf7 input[type="url"],
  .wpcf7 textarea,
  .wpcf7 select {
    font-size: 16px; /* iOSズーム防止を明示 */
    padding: 13px 14px;
  }

  .wpcf7 input[type="submit"] {
    max-width: 100%;
    font-size: 16px;
    padding: 16px 20px;
  }

  /* 横並びのフォーム項目を縦積みに */
  .wpcf7 .wpcf7-form-control-wrap {
    display: block;
    width: 100%;
  }
}
