/* ===============================
   RESET & BASE STYLES
=============================== */
html, body, div, span, applet, object, iframe,
h1, h2, h3, h4, h5, h6, p, blockquote, pre, a, abbr, acronym, address,
big, cite, code, del, dfn, em, img, ins, kbd, q, s, samp, small, strike, strong, sub, sup, tt, var,
b, u, i, center, dl, dt, dd, ol, ul, li, fieldset, form, label,
legend, table, caption, tbody, tfoot, thead, tr, th, td, article,
aside, canvas, details, embed, figure, figcaption, footer, header, hgroup,
main, menu, nav, output, ruby, section, summary, time, mark, audio, video {
  margin: 0;
  padding: 0;
  border: 0;
  font-size: 100%;
  font: inherit;
  vertical-align: baseline;
  box-sizing: border-box;
}

html {
  font-size: 16px;
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}
body {
  line-height: 1.7;
  font-family: 'Yu Gothic', 'Noto Sans JP', Arial, sans-serif;
  background: #F8F6F2;
  color: #22313F;
  min-height: 100vh;
  overflow-x: hidden;
}
img {
  max-width: 100%;
  height: auto;
  border: 0;
}
ol, ul {
  list-style: none;
  padding-left: 0;
}
a {
  color: #22313F;
  text-decoration: none;
  transition: color 0.2s ease;
}
a:hover, a:focus {
  color: #E0C37D;
  outline: none;
}
button {
  font-family: inherit;
  border: none;
  background: none;
  padding: 0;
  cursor: pointer;
}

/* ===============================
   COLOR & BRAND STYLE HELPERS
=============================== */
:root {
  --primary: #22313F;
  --secondary: #E0C37D;
  --accent: #F8F6F2;
  --danger: #ff706d;
  --fun1: #36C5F0;
  --fun2: #FFCE4B;
  --fun3: #FF82A7;
  --shadow: 0 2px 8px rgba(44,45,63,0.05), 0 0.5px 2px rgba(44,45,63,0.11);
  --radius: 18px;
  --radius-md: 12px;
  --radius-sm: 8px;
  --transition: all .23s cubic-bezier(.51,1.12,.51,1);
  --font-display: 'Noto Sans JP', 'Yu Gothic', Arial, sans-serif;
  --font-body: 'Yu Gothic', 'Noto Sans JP', Arial, sans-serif;
}

/* ===============================
   TYPOGRAPHY
=============================== */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.15;
  color: var(--primary);
}
h1 {
  font-size: 2.3rem;
  margin-bottom: 20px;
  letter-spacing: -1.5px;
}
h2 {
  font-size: 1.7rem;
  margin-bottom: 16px;
  color: var(--fun3);
}
h3 {
  font-size: 1.23rem;
  color: var(--fun1);
  margin-bottom: 10px;
}
h4, h5, h6 {
  font-size: 1rem;
}

p, li {
  font-family: var(--font-body);
  font-size: 1rem;
  color: var(--primary);
}
p.subheadline, .subheadline {
  font-size: 1.15rem;
  color: var(--fun2);
  font-weight: 500;
}

.text-section {
  color: var(--primary);
  margin-bottom: 24px;
}

.thankyou-message {
  font-size: 1.18rem;
  margin-bottom: 30px;
  color: var(--primary);
}

strong {
  color: var(--fun2);
}

/* ===============================
   CONTAINER & LAYOUT
=============================== */
.container {
  width: 100%;
  max-width: 1160px;
  margin: 0 auto;
  padding: 0 20px;
  display: flex;
  flex-direction: column;
  gap: 0;
}
.content-wrapper {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 24px;
}
.section {
  margin-bottom: 60px;
  padding: 40px 20px;
  background: transparent;
}
.card-container {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}
.card {
  background: #fff;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow);
  margin-bottom: 20px;
  position: relative;
  display: flex;
  flex-direction: column;
  padding: 28px 20px 22px 20px;
  gap: 12px;
}
.content-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  justify-content: space-between;
}
.text-image-section {
  display: flex;
  align-items: center;
  gap: 30px;
  flex-wrap: wrap;
}
.testimonial-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 20px;
  background: #fffbe6;
  padding: 20px;
  margin-bottom: 20px;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow);
  min-width: 240px;
  max-width: 100%;
}
.feature-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
}
.feature-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  justify-content: flex-start;
}
.feature-grid > div {
  display: flex;
  flex-direction: column;
  align-items: center;
  background: #fff;
  padding: 26px 16px 22px 16px;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow);
  min-width: 220px;
  flex: 1 1 220px;
  max-width: 310px;
  text-align: center;
  transition: transform 0.22s cubic-bezier(.6,1.36,.57,.77),box-shadow 0.18s;
}
.feature-grid > div:hover {
  transform: translateY(-8px) scale(1.04) rotate(-1deg);
  box-shadow: 0 8px 20px 0 rgba(34,49,63,0.09), 0 2px 9px 0 rgba(255,206,75,0.08);
  z-index: 4;
}
.feature-grid img {
  margin-bottom: 12px;
  width: 48px;
  height: 48px;
  filter: drop-shadow(2px 2px 0px #ffce4b6b);
}

.testimonial-slider {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  margin-bottom: 18px;
}
.star-rating-summary {
  display: flex;
  align-items: center;
  gap: 12px;
  background: #f5ecff;
  border-radius: var(--radius-md);
  padding: 12px 20px;
  margin-top: 10px;
  font-weight: 600;
  color: #22313F;
  font-size: 1.08rem;
  box-shadow: var(--shadow);
}
.star-rating-summary img {
  width: 40px;
  height: 40px;
  margin-right: 4px;
}

.footer-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  margin-bottom: 18px;
  justify-content: center;
  font-size: 1.05rem;
}
.contact-info {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  font-size: 0.96rem;
  align-items: center;
  justify-content: center;
  color: var(--primary);
  margin-bottom: 10px;
  margin-top: 10px;
}
.contact-info img {
  width: 19px;
  margin-right: 6px;
  vertical-align: middle;
}
.copyright {
  text-align: center;
  font-size: 0.93rem;
  color: #659be2;
  margin-top: 8px;
  margin-bottom: 4px;
}

/* ===============================
   HEADER & NAVIGATION
=============================== */
header {
  background: linear-gradient(90deg, #ffce4b 0%, #ff82a7 48%, #36c5f0 100%);
  padding: 0;
  border-bottom: 6px solid #E0C37D;
  box-shadow: 0 1px 16px 0 rgba(255,206,75,0.06);
  position: relative;
  z-index: 110;
}
header .container {
  flex-direction: row;
  align-items: center;
  gap: 10px;
  justify-content: space-between;
  min-height: 70px;
  padding: 0 20px;
}
header img {
  height: 48px;
}
.main-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  margin-left: 20px;
}
.main-nav a {
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 600;
  color: #22313F;
  padding: 8px 0;
  border-bottom: 3px solid transparent;
  transition: var(--transition);
  position: relative;
}
.main-nav a:hover, .main-nav a:focus {
  color: #FF82A7;
  border-bottom: 3px solid #FFCE4B;
}
.btn-primary {
  display: inline-block;
  font-family: var(--font-display);
  background: linear-gradient(90deg, #36c5f0 60%, #ff82a7 100%);
  color: #fff;
  font-size: 1.12rem;
  font-weight: 700;
  border-radius: var(--radius-md);
  box-shadow: 0 2px 8px 0 #e0c37d37;
  padding: 11px 30px;
  margin-left: 18px;
  letter-spacing: 1px;
  border: none;
  transition: var(--transition);
  outline: none;
}
.btn-primary:hover, .btn-primary:focus {
  background: linear-gradient(90deg, #ff82a7 10%, #36c5f0 100%);
  color: #fff7c5;
  transform: scale(1.06) rotate(-1deg);
  box-shadow: 0 8px 28px 0px #ffce4b31, 0 3px 10px #f8f6f2b3;
  opacity: .95;
}

/* ===============================
   HERO SECTION
=============================== */
.hero {
  width: 100%;
  background: linear-gradient(102deg, #f8f6f2 65%, #FFCE4B 100%);
  position: relative;
  border-radius: 0 0 36px 36px;
  box-shadow: 0 8px 40px #ffce4b19;
  margin-bottom: 36px;
  min-height: 183px;
  animation: hero-entrance 1.1s cubic-bezier(.67,-0.3,.52,1.26) 0.1s backwards;
}
@keyframes hero-entrance {
  0% { opacity: 0; transform: translateY(-40px) scale(1.04) skewY(-2deg); }
  80% { opacity: 0.92; transform: translateY(6px) scale(1.01) skewY(2deg); }
  100% { opacity: 1; transform: none; }
}
.hero .content-wrapper {
  align-items: flex-start;
  gap: 19px;
  padding-top: 40px;
  padding-bottom: 36px;
  position: relative;
}
.hero h1 {
  color: #ff82a7;
  font-family: 'Noto Sans JP', 'Yu Gothic', Arial, sans-serif;
  font-weight: 900;
  font-size: 2.7rem;
  letter-spacing: -1px;
}
.hero .subheadline {
  color: #36C5F0;
  font-weight: 600;
}

/* ===============================
   COOKIE CONSENT BANNER & MODAL
=============================== */
.cookie-banner {
  position: fixed;
  left: 0;
  bottom: 0;
  width: 100vw;
  background: #fff8ea;
  color: #22313f;
  border-top: 3px solid #ffce4b;
  box-shadow: 0 -2px 18px #ffce4b2e;
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  padding: 20px 18px 20px 20px;
  z-index: 1000;
  opacity: 0;
  pointer-events: none;
  transition: opacity .31s cubic-bezier(.65,0,.45,1);
}
.cookie-banner.active {
  opacity: 1;
  pointer-events: auto;
}
.cookie-banner .cookie-msg {
  font-size: 1.05rem;
  flex:1;
  margin-right: 18px;
  color: #22313f;
}
.cookie-banner .cookie-actions {
  display: flex;
  flex-direction: row;
  gap: 12px;
}
.cookie-banner button {
  background: #36c5f0;
  color: #fff;
  padding: 10px 20px;
  border-radius: var(--radius-sm);
  font-size: 1rem;
  font-weight: 600;
  transition: var(--transition);
  outline: none;
  border: none;
  box-shadow: 0 1px 3px #ffce4b1a;
}
.cookie-banner .cookie-accept {
  background: #36C5F0;
}
.cookie-banner .cookie-reject {
  background: #ff82a7;
}
.cookie-banner .cookie-settings {
  background: #ffce4b;
  color: #22313F;
}
.cookie-banner button:hover, .cookie-banner button:focus {
  opacity: 0.85;
  transform: scale(1.05);
}

/* Cookie Modal */
.cookie-modal {
  position: fixed;
  top: 50%; left: 50%;
  transform: translate(-50%,-52%) scale(0.97);
  background: #fffbe6;
  border-radius: 18px;
  box-shadow: 0 6px 48px #ff82a78e, 0 2px 8px #22313f1f;
  z-index: 3200;
  width: 97vw; max-width: 390px;
  padding: 28px 24px 18px 24px;
  opacity: 0;
  pointer-events: none;
  transition: opacity .23s, transform .23s cubic-bezier(.59,1.22,.59,1.22);
}
.cookie-modal.active {
  opacity: 1;
  pointer-events: auto;
  transform: translate(-50%,-50%) scale(1.01);
}
.cookie-modal h2 {
  font-size: 1.23rem;
  margin-bottom: 14px;
  color: #36C5F0;
}
.cookie-modal ul {
  margin-bottom: 18px;
}
.cookie-modal li {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  font-size: 1.04rem;
  margin-bottom: 14px;
}
.cookie-modal label {
  font-weight: 600;
  color: #22313F;
}
.cookie-modal .toggle-switch {
  display: inline-flex;
  align-items: center;
  width: 40px;
  height: 24px;
  background: #e9eef6;
  border-radius: 12px;
  cursor: pointer;
  position: relative;
  transition: background .18s;
}
.cookie-modal .toggle-switch input {
  display: none;
}
.cookie-modal .toggle-switch .slider {
  position: absolute;
  left: 2px;
  top: 2px;
  width: 20px; height: 20px;
  background: #36C5F0;
  border-radius: 50%;
  transition: left .18s, background .2s;
}
.cookie-modal .toggle-switch input:checked + .slider {
  left: 18px;
  background: #ff82a7;
}
.cookie-modal .toggle-switch input:disabled + .slider {
  background: #E0C37D;
}
.cookie-modal .cookie-modal-actions {
  margin-top: 15px;
  display: flex;
  gap: 14px;
  justify-content: flex-end;
}
.cookie-modal .cookie-modal-actions button {
  min-width: 99px;
}
.cookie-modal .cookie-modal-close {
  position: absolute;
  top: 12px; right: 12px;
  color: #ff82a7;
  background: transparent;
  border: none;
  font-size: 1.38rem;
  line-height: 1;
  z-index: 20;
  cursor: pointer;
  transition: color .2s;
}
.cookie-modal .cookie-modal-close:hover {
  color: #36C5F0;
}

/* ===============================
   MOBILE NAVIGATION
=============================== */
.mobile-menu-toggle {
  display: none;
}
@media (max-width: 1024px) {
  .main-nav {
    display: none;
  }
  .mobile-menu-toggle {
    display: inline-flex;
    background: #36c5f0;
    color: #fff;
    font-size: 2.18rem;
    border-radius: 50%;
    width: 48px;
    height: 48px;
    align-items: center;
    justify-content: center;
    position: absolute;
    right: 24px;
    top: 11px;
    z-index: 1005;
    box-shadow: 0 2px 10px #36c5f050;
    border: 2px solid #fff;
    transition: background .21s, color .18s, transform .17s;
  }
  .mobile-menu-toggle:hover, .mobile-menu-toggle:focus {
    background: #ffce4b;
    color: #22313F;
    transform: scale(1.07) rotate(3deg);
    outline: none;
  }
}
.mobile-menu {
  position: fixed;
  top: 0; left: 0;
  right: 0; bottom: 0;
  width: 100vw; height: 100vh;
  background: rgba(255, 254, 241, .98);
  z-index: 2500;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  transform: translateX(-100vw);
  transition: transform .38s cubic-bezier(.55,1.24,.54,1);
  opacity: 0;
  pointer-events: none;
}
.mobile-menu.active {
  transform: translateX(0);
  opacity: 1;
  pointer-events: auto;
}
.mobile-menu-close {
  margin: 22px 30px 0 0;
  font-size: 2.12rem;
  color: #ff82a7;
  background: none;
  border: none;
  cursor: pointer;
  transition: color .2s, transform .18s;
  z-index: 2502;
}
.mobile-menu-close:hover, .mobile-menu-close:focus {
  color: #36C5F0;
  transform: scale(1.06) rotate(-5deg);
}
.mobile-nav {
  display: flex;
  flex-direction: column;
  gap: 23px;
  margin: 50px 0 0 44px;
}
.mobile-nav a {
  display: block;
  font-family: var(--font-display);
  font-size: 1.18rem;
  line-height: 1.7;
  color: #22313F;
  padding: 14px 0;
  border-radius: 6px;
  font-weight: 700;
  transition: background .18s, color .18s, transform .14s;
}
.mobile-nav a:hover, .mobile-nav a:focus {
  background: #ffce4b;
  color: #36C5F0;
}

/* ===============================
   LISTS & CARDS
=============================== */
ul li {
  margin-bottom: 8px;
  position: relative;
  padding-left: 1.2em;
}
ul li:before {
  content: '\2022';
  color: #ff82a7;
  font-size: 1.08em;
  position: absolute;
  left: 0;
  top: 0;
  line-height: 1.7;
}
ul li strong {
  color: #36C5F0;
}

/* ===============================
   CARD VARIANTS
=============================== */
.card {
  animation: card-pop 0.8s cubic-bezier(.36,1.57,.3,1.04) both;
  border: 2.5px solid #ffce4b39;
  transition: box-shadow .18s, border-color .21s, transform .19s;
}
.card:hover {
  box-shadow: 0 8px 22px 0px #ff82a777, 0 3px 7px #f8f6f2b3;
  border-color: #ff82a7cc;
  transform: scale(1.032) rotate(-1.5deg);
}
@keyframes card-pop {
  0% { opacity: 0; transform: scale(.95) translateY(32px); }
  100% { opacity: 1; transform: none; }
}

/* ===============================
   RESPONSIVE
=============================== */
@media (max-width: 900px) {
  .feature-grid {
    gap: 16px;
  }
  .feature-grid > div {
    min-width: 180px;
    flex: 1 1 180px;
  }
}
@media (max-width: 768px) {
  .container {
    padding: 0 8px;
    max-width: 100vw;
  }
  .section, .hero {
    padding: 24px 8px;
  }
  .hero .content-wrapper {
    padding-top: 24px;
    padding-bottom: 16px;
  }
  .feature-grid {
    flex-direction: column;
    gap: 14px;
  }
  .feature-grid > div {
    min-width: 0;
    width: 100%;
  }
  .testimonial-slider {
    flex-direction: column;
    gap: 14px;
  }
  .testimonial-card {
    width: 100%;
    min-width: 0;
  }
  .footer-nav, .contact-info {
    flex-direction: column;
    gap: 8px;
    align-items: flex-start;
  }
  .content-wrapper {
    gap: 14px;
  }
  .text-image-section {
    flex-direction: column;
    gap: 18px;
    align-items: flex-start;
  }
  .star-rating-summary {
    font-size: .98rem;
    padding: 8px 10px;
    gap: 8px;
  }
}
@media (max-width: 520px) {
  .hero, .section {
    padding: 14px 2vw;
  }
  h1 {
    font-size: 1.47rem;
  }
  h2 {
    font-size: 1.09rem;
  }
  .btn-primary {
    padding: 9px 18px;
    font-size: .98rem;
  }
  .cookie-banner {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
    font-size: .97rem;
    padding: 14px 7px;
  }
}

/* ===============================
   ANIMATIONS & MICRO-INTERACTIONS
=============================== */
.card, .feature-grid > div, .btn-primary, .testimonial-card, .cookie-banner, .mobile-menu-toggle, .mobile-menu {
  will-change: transform;
}

/* --- Playful floating accent ball decorations --- */
body:before, body:after {
  content: '';
  position: fixed;
  z-index: 1;
  border-radius: 50%;
  opacity: 0.16;
  pointer-events: none;
  filter: blur(2px);
}
body:before {
  top: 2%; left: -90px;
  width: 170px; height: 170px;
  background: #ffce4b;
  animation: float-accent1 10s infinite cubic-bezier(.36,1.57,.3,1.04);
}
body:after {
  bottom: -100px; right: -100px;
  width: 200px; height: 200px;
  background: #36c5f0;
  animation: float-accent2 14s infinite cubic-bezier(.36,1.57,.3,1.04) reverse;
}
@keyframes float-accent1 {
  0%,100%{transform:translateY(0px);}
  38%{transform:translateY(42px);}
  64%{transform:translateY(-22px);}
}
@keyframes float-accent2 {
  0%,100%{transform:translateX(0px) scale(1);}
  33%{transform:translateX(-22px) scale(1.07);}
  60%{transform:translateX(34px) scale(.99);}
}

/* ===============================
   SCROLLBAR
=============================== */
::-webkit-scrollbar { width: 9px; background:#f0eeea; }
::-webkit-scrollbar-thumb { background: #ffce4b; border-radius: 8px; }
::-webkit-scrollbar-thumb:hover { background: #ff82a7; }

/* ===============================
   PRINT ADJUST
=============================== */
@media print {
  .cookie-banner,.cookie-modal,.mobile-menu {display:none!important;}
}
