/* =======================================================
  CSS 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, button,
table, caption, tbody, tfoot, thead, tr, th, td,
article, aside, canvas, details, embed,
figure, figcaption, footer, header, hgroup,
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 {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
}
body {
  font-family: 'Noto Sans JP', 'Arial Rounded MT Bold', Arial, sans-serif;
  font-size: 16px;
  line-height: 1.7;
  background: #F4F6FB;
  color: #183153;
  min-height: 100vh;
  -webkit-tap-highlight-color: transparent;
}
img {
  max-width: 100%;
  display: block;
  border: 0;
}
ul, ol {
  list-style: none;
}
a {
  color: #197278;
  text-decoration: none;
  transition: color 0.2s;
}
a:hover, a:focus {
  color: #ff5a36;
  outline: none;
}
button, .btn-primary, .btn-link {
  font-family: 'Noto Sans JP', 'Arial Rounded MT Bold', Arial, sans-serif;
  cursor: pointer;
  border: none;
  background: none;
  padding: 0;
  outline: none;
}

/* Typography */
h1 {
  font-size: 2.2rem;
  font-weight: 900;
  letter-spacing: 0.04em;
  margin-bottom: 18px;
  font-family: 'Noto Sans JP', 'Baloo 2', cursive, sans-serif;
  color: #183153;
}
h2 {
  font-size: 1.4rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  margin-bottom: 16px;
  color: #197278;
  font-family: 'Noto Sans JP', 'Baloo 2', cursive, sans-serif;
}
h3 {
  font-size: 1.1rem;
  font-weight: 700;
  color: #183153;
  margin-bottom: 10px;
}
h4, h5, h6 {
  color: #197278;
  font-weight: 700;
  font-family: 'Noto Sans JP', 'Baloo 2', cursive, sans-serif;
}
p, ul li, ol li, dl, dd {
  font-size: 1rem;
}
b, strong {
  font-weight: 700;
}

/* Spacing Utility */
.container {
  width: 100%;
  max-width: 1040px;
  margin: 0 auto;
  padding: 0 16px;
  display: flex;
  flex-direction: column;
  gap: 0;
}
.content-wrapper {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.section {
  margin-bottom: 60px;
  padding: 40px 20px;
}

/* Brand Colors for Section Backgrounds & Visual Layers */
.hero {
  background: linear-gradient(100deg, #FFEE92 0%, #FFD8E4 80%, #F4F6FB 100%);
  padding: 44px 0 36px 0;
  border-radius: 0 0 48px 48px;
  box-shadow: 0 6px 18px 0 rgba(25,114,120,0.07);
  margin-bottom: 32px;
  position: relative;
  animation: hero-appear 1.1s cubic-bezier(.77,-0.15,.44,1.1);
}
@keyframes hero-appear {
  0% { opacity:0; transform:translateY(-30px); }
  100% { opacity:1; transform:translateY(0); }
}

.cta {
  background: #ff5a36;
  color: #fff;
  border-radius: 32px;
  box-shadow: 0 3px 24px 0 rgba(25,114,120,0.09);
  margin-bottom: 60px;
  padding: 48px 20px;
  display: flex;
  justify-content: center;
  align-items: center;
  animation: sparkle 2s infinite alternate ease-in-out;
}
@keyframes sparkle {
  from { box-shadow:0 0px 24px 0 rgba(255,90,54,0.06); }
  to { box-shadow:0 0px 40px 0 rgba(25,114,120,0.18); }
}

/* =======================================================
  HEADER AND NAVIGATION
======================================================= */
header {
  width: 100%;
  background: #fff;
  box-shadow: 0 2px 10px rgba(24,49,83,0.07);
  border-bottom: 2.5px solid #ffd451;
  position: sticky;
  top: 0;
  z-index: 30;
}
header > .container {
  flex-direction: row;
  align-items: center;
  gap: 26px;
  padding-top: 12px;
  padding-bottom: 12px;
  justify-content: space-between;
}
header img[alt*="ロゴ"] {
  height: 42px;
  width: auto;
}
.main-nav {
  display: flex;
  flex-direction: row;
  gap: 24px;
  align-items: center;
  flex-wrap: wrap;
  font-size: 1rem;
  font-family: 'Noto Sans JP', 'Baloo 2', cursive, sans-serif;
}
.main-nav a {
  padding: 5px 10px;
  border-radius: 12px;
  color: #197278;
  font-weight: 600;
  letter-spacing: 0.01em;
  transition: background 0.18s, color 0.12s, transform 0.13s;
  position: relative;
}
.main-nav a:hover,
.main-nav a:focus {
  background: #ffe766;
  color: #183153;
  transform: scale(1.07);
}
.btn-primary {
  display: inline-block;
  border-radius: 24px;
  background: linear-gradient(90deg, #197278 80%, #ff5a36 100%);
  color: #fff;
  font-family: 'Noto Sans JP','Arial Rounded MT Bold',cursive,sans-serif;
  font-size: 1.15rem;
  font-weight: 700;
  padding: 12px 30px;
  margin-left: 12px;
  box-shadow: 0 4px 10px 0 rgba(25,114,120,0.10);
  border: none;
  cursor: pointer;
  letter-spacing: 0.02em;
  transition: background 0.22s, box-shadow 0.22s, transform 0.13s;
}
.btn-primary:hover, .btn-primary:focus {
  background: linear-gradient(90deg, #ff5a36 70%, #197278 100%);
  transform: scale(1.04) rotate(-1.2deg);
  box-shadow: 0 8px 28px 0 rgba(25,114,120,0.13);
}
.btn-link {
  background: none;
  color: #197278;
  font-weight: 700;
  padding: 0;
  margin-top: 12px;
  border-bottom: 2px dashed #ff5a36;
  display: inline-block;
  font-size: 1.09rem;
  transition: color .17s, border-color .17s;
}
.btn-link:hover {
  color: #ff5a36;
  border-color: #197278;
}

/* Hamburger menu button (mobile) */
.mobile-menu-toggle {
  display: none;
  background: #197278;
  color: #fff;
  font-size: 2.05rem;
  width: 46px;
  height: 46px;
  border-radius: 12px;
  justify-content: center;
  align-items: center;
  border: none;
  transition: background 0.16s, box-shadow 0.24s;
  box-shadow: 0 3px 12px 0 rgba(25,114,120,0.11);
}
.mobile-menu-toggle:hover, .mobile-menu-toggle:focus {
  background: #ff5a36;
}

/* MOBILE NAV - overlay & transition */
.mobile-menu {
  position: fixed;
  top: 0; left: 0;
  width: 100vw;
  height: 100vh;
  background: #fff;
  z-index: 999;
  display: flex;
  flex-direction: column;
  transform: translateX(100%);
  transition: transform 0.38s cubic-bezier(.53,0,.27,1.12);
  box-shadow: -8px 0 36px 0 rgba(24,49,83,0.21);
  overflow-y: auto;
}
.mobile-menu.open {
  transform: translateX(0);
}
.mobile-menu-close {
  align-self: flex-end;
  margin: 19px 24px 10px 0;
  font-size: 2.2rem;
  background: #ff5a36;
  color: #fff;
  border-radius: 16px;
  width: 48px; height: 48px;
  display: flex;
  justify-content: center;
  align-items: center;
  border: none;
  transition: background .19s, transform .16s;
}
.mobile-menu-close:hover, .mobile-menu-close:focus {
  background: #197278;
  transform: scale(1.1);
}
.mobile-nav {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 20px;
  padding: 16px 32px 32px 32px;
  font-size: 1.21rem;
}
.mobile-nav a {
  color: #197278;
  padding: 10px 12px;
  font-weight: 700;
  border-radius: 10px;
  font-family: 'Noto Sans JP', 'Baloo 2', cursive, sans-serif;
  transition: background 0.16s, color 0.12s, transform 0.14s;
  margin-bottom: 0;
}
.mobile-nav a:hover, .mobile-nav a:focus {
  background: #ffe766;
  color: #ff5a36;
  transform: scale(1.08);
}

@media (max-width: 1024px) {
  .main-nav {
    gap: 14px;
    font-size: 0.98em;
  }
  .btn-primary {  font-size: 1.01rem; padding: 10px 20px; }
  header img[alt*="ロゴ"] { height: 36px; }
}
@media (max-width: 900px) {
  .btn-primary { margin-left: 0; }
}
/* Show hamburger (hide desktop nav) for mobile */
@media (max-width: 768px) {
  .main-nav, .btn-primary {
    display: none;
  }
  .mobile-menu-toggle {
    display: flex;
  }
}

/* =======================================================
  SECTION STYLES, FLEXBOX LAYOUTS, & VISUAL ELEMENTS
======================================================= */
.section, section {
  background: #fff;
  border-radius: 32px;
  box-shadow: 0 6px 24px 0 rgba(25,114,120,0.10);
  margin-bottom: 60px;
  padding: 40px 20px;
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.card-container,
.card-grid,
.feature-grid,
.service-list-grid,
.strategy-methods-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}
.card, .feature-item, .strategy-methods-grid > li, .service-list-grid > li{
  margin-bottom: 20px;
  position: relative;
  background: #FAFAFF;
  border-radius: 26px;
  box-shadow: 0 3px 14px 0 rgba(25,114,120,0.12);
  padding: 28px 20px 24px 20px;
  flex: 1 0 295px;
  min-width: 230px;
  max-width: 360px;
  transition: transform 0.2s, box-shadow 0.23s, background 0.18s;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 13px;
}
.card:hover, .feature-item:hover, .strategy-methods-grid > li:hover, .service-list-grid > li:hover {
  background: #ffe766;
  transform: translateY(-6px) scale(1.015) rotate(-1.5deg);
  box-shadow: 0 12px 32px 0 rgba(25,114,120,0.15);
}
.text-image-section {
  display: flex;
  align-items: center;
  gap: 30px;
  flex-wrap: wrap;
}
.content-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  justify-content: space-between;
}

.testimonial-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 20px;
  padding: 20px;
  border-radius: 18px;
  margin-bottom: 20px;
  background: #fffbe7;
  border-left: 8px solid #ff5a36;
  box-shadow: 0 6px 20px 0 rgba(24,49,83,0.055);
  font-size: 1.06rem;
  color: #183153;
  position: relative;
  z-index: 2;
}
.testimonial-card b { color: #197278; font-weight: 800; }
.testimonial-card:before {
  content: '\201C';
  font-family: serif;
  font-size: 2.7rem;
  color: #ffd451;
  position: absolute;
  top: 12px; left: 8px;
  z-index: 1;
  opacity: .4;
}

.category-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}
.category-tags li {
  background: #ffe766;
  color: #197278;
  border-radius: 13px;
  padding: 5px 16px;
  font-size: 0.97rem;
  font-weight: 700;
  box-shadow: 0 2px 7px 0 rgba(25,114,120,0.04);
}

/* Feature Item for about/services pages */
.feature-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
}

/* Section and card flex rules responsive */
@media (max-width: 1100px) {
  .card-container, .card-grid, .feature-grid,
  .service-list-grid, .strategy-methods-grid, .content-grid {
    flex-direction: row;
    gap: 16px;
    justify-content: flex-start;
  }
}
@media (max-width: 768px) {
  .section, section {
    margin-bottom: 38px;
    padding: 20px 8px;
    border-radius: 22px;
  }
  .card, .feature-item, .strategy-methods-grid > li, .service-list-grid > li {
    min-width: 100%;
    max-width: 100%;
    padding: 20px 12px 18px 12px;
    border-radius: 15px;
  }
  .card-container, .card-grid, .feature-grid,
  .service-list-grid, .strategy-methods-grid, .content-grid {
    flex-direction: column;
    gap: 16px;
  }
  .hero {
    border-radius: 0 0 22px 22px;
    padding: 28px 0 22px 0;
  }
  .cta {
    padding: 32px 10px;
    border-radius: 13px;
  }
  .testimonial-card {
    font-size: 1rem;
    padding: 14px 8px 13px 12px;
    border-radius: 12px;
    margin-bottom: 16px;
  }
  .text-image-section {
    flex-direction: column;
    gap: 20px;
  }
}

/* List dt/dd styling */
dl {
  display: flex;
  flex-direction: column;
  row-gap: 6px;
  font-size: 1rem;
}
dt {
  font-weight: 700;
  color: #197278;
  font-size: 1.03em;
}
dd {
  margin-left: 18px;
  margin-bottom: 9px;
  font-weight: 400;
}

/* =======================================================
  BUTTONS & INTERACTIVE
======================================================= */
button[data-animated], .btn-primary[data-animated] {
  animation: btn-jump 1.3s infinite alternate cubic-bezier(.68,0,.27,1.2);
}
@keyframes btn-jump {
  0% { filter: none; }
  50% { filter: brightness(1.11) drop-shadow(0 3px 7px #ffe76655); }
  100% { filter: none; }
}

/* =======================================================
  FOOTER
======================================================= */
footer {
  background: #183153;
  color: #fff;
  padding: 0;
  font-size: 1rem;
  letter-spacing: 0.01em;
}
footer .container {
  display: flex;
  flex-direction: column;
  gap: 18px;
  padding: 28px 16px 22px 16px;
}
.footer-nav {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  gap: 22px;
  align-items: center;
  margin-bottom: 3px;
}
.footer-nav a {
  color: #ffe766;
  font-weight: 600;
  font-size: 1em;
  letter-spacing: 0.01em;
  border-bottom: 2px solid transparent;
  transition: border-color .13s, color .22s;
}
.footer-nav a:hover {
  color: #ff5a36;
  border-color: #ff5a36;
}
.footer-contact {
  display: flex;
  flex-direction: row;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  font-size: 0.97rem;
  color: #ffe766;
}
.footer-contact a {
  color: #ffe766;
}
.footer-contact img {
  height: 18px;
  width: 18px;
  margin-right: 2px;
  vertical-align: middle;
  display: inline;
}
.footer-bottom {
  border-top: 1px solid #ffe7663a;
  font-size: 0.95em;
  color: #A3B6C0;
  padding-top: 9px;
  text-align: right;
}
@media (max-width: 768px) {
  .footer-nav {
    gap: 12px;
    font-size: 0.96em;
  }
  .footer-contact { gap: 8px; flex-direction: column; align-items: flex-start; }
  .footer-bottom { text-align: left; }
  footer .container { gap: 9px; padding: 18px 6px 12px 6px; }
}

/* =======================================================
  COOKIE CONSENT BANNER & COOKIE MODAL
======================================================= */
.cookie-banner {
  position: fixed;
  left: 0; right: 0;
  bottom: 0;
  width: 100vw;
  background: #fffbe7;
  border-top: 3px solid #ffd451;
  box-shadow: 0 -6px 32px 0 rgba(24,49,83,0.09);
  color: #183153;
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  z-index: 1100;
  padding: 18px 36px 18px 24px;
  font-size: 1rem;
  animation: cookieUp 0.83s cubic-bezier(.64,-0.2,.43,1.21);
}
@keyframes cookieUp {
  from { transform: translateY(100%); opacity: 0; }
  to { transform: translateY(0); opacity: 1; }
}
.cookie-banner span {
  flex: 1 1;
}
.cookie-banner-buttons {
  display: flex;
  flex-direction: row;
  gap: 14px;
  align-items: center;
}
.cookie-banner button {
  border-radius: 16px;
  padding: 9px 24px;
  font-size: 1rem;
  font-weight: 700;
  color: #fff;
  background: #197278;
  border: none;
  transition: background .14s, color .09s, transform .14s;
  cursor: pointer;
  box-shadow: 0 2px 9px 0 rgba(25,114,120,0.11);
}
.cookie-banner button:hover { background: #ff5a36; color: #fff; transform: scale(1.07); }
.cookie-banner .cookie-settings {
  background: #ffd451;
  color: #183153;
}
.cookie-banner .cookie-settings:hover {
  background: #197278; color: #fff;
}
@media (max-width:768px) {
  .cookie-banner {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
    padding: 14px 10px 12px 10px;
    font-size: 0.96em;
  }
  .cookie-banner-buttons { gap: 8px; }
}

.cookie-modal {
  position: fixed;
  top: 0; left: 0; right:0; bottom:0;
  z-index: 1300;
  background: rgba(24,49,83,0.50);
  display: flex;
  align-items: center;
  justify-content: center;
  animation: cookie-modal-fadein .24s cubic-bezier(.64,-0.2,.43,1.21);
}
@keyframes cookie-modal-fadein {
  from { opacity: 0; }
  to { opacity: 1; }
}
.cookie-modal-inner {
  background: #fffbe7;
  border-radius: 24px;
  max-width: 370px;
  width: 92vw;
  padding: 32px 24px 22px 24px;
  box-shadow: 0 8px 38px 0 rgba(25,114,120,0.16);
  color: #183153;
  display: flex;
  flex-direction: column;
  gap: 18px;
  position: relative;
  animation: pop-in .26s cubic-bezier(.77,-0.15,.5,1.1);
}
@keyframes pop-in {
  from { transform: scale(0.89); opacity: 0; }
  to { transform: scale(1); opacity: 1; }
}
.cookie-modal-inner h2 {
  font-size: 1.3rem;
  color: #197278;
  font-family: inherit;
  margin-bottom: 6px;
}
.cookie-categories {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.cookie-category {
  display: flex;
  align-items: center;
  gap: 10px;
}
.cookie-category span {
  font-weight: 400;
  color: #197278;
}
.cookie-category .switch {
  display: inline-block;
  width: 44px; height: 24px;
  background: #ddd;
  border-radius: 12px;
  position: relative;
  transition: background 0.14s;
}
.cookie-category input[type="checkbox"] {
  display: none;
}
.cookie-category input[type="checkbox"]:checked + .switch {
  background: #197278;
}
.switch::after {
  content: '';
  display: block;
  width: 20px; height: 20px;
  background: #fff;
  border-radius: 50%;
  position: absolute;
  top: 2px; left: 2px;
  transition: left 0.14s;
  box-shadow: 0 2px 7px 0 rgba(24,49,83,0.14);
}
.cookie-category input[type="checkbox"]:checked + .switch::after {
  left: 22px;
}
.cookie-modal-buttons {
  display: flex;
  flex-direction: row;
  gap: 12px;
  margin-top: 10px;
}
.cookie-modal-close {
  position: absolute;
  right: 16px;
  top: 16px;
  background: #ff5a36;
  color: white;
  border: none;
  border-radius: 12px;
  width: 34px; height: 34px;
  font-size: 1.61rem;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}
.cookie-modal-close:hover { background: #197278; }

/* =======================================================
  PLAYFUL DYNAMIC ANIMATIONS & DECORATIVE
======================================================= */
.hero h1 {
  position: relative;
  z-index: 2;
  text-shadow: 0 3px 21px #ffc25b2d;
  background: linear-gradient(90deg, #ff5a36, #197278 62%, #ffd451 100%);
  background-clip: text;
  -webkit-background-clip: text;
  color: transparent;
  -webkit-text-fill-color: transparent;
  font-family: 'Noto Sans JP','Baloo 2',cursive,sans-serif;
}
.hero p {
  font-size: 1.07rem;
  color: #183153;
  background: #fffbe7e0;
  display: inline-block;
  padding: 8px 14px;
  border-radius: 12px;
  margin-bottom: 6px;
}
.hero .btn-primary {
  animation: btn-jump 1.3s infinite alternate cubic-bezier(.68,0,.27,1.2);
  margin-top: 14px;
}

/* Fun floating icons (will only affect icons inside hero/feature) */
.feature-grid img, .strategy-methods-grid img,
.hero img, .service-list-grid img {
  animation: playful-bounce 2.2s infinite alternate cubic-bezier(.68,0,.5,1.11);
}
@keyframes playful-bounce {
  from { transform: translateY(0) rotate(-1deg) scale(1); }
  to { transform: translateY(-6px) rotate(7deg) scale(1.06); }
}

/* Accent highlight for important stuff */
.mark {
  background: #ffe766;
  color: #183153;
  border-radius: 5px;
  padding: 2px 7px;
  font-weight: 700;
}

/* =======================================================
  RESPONSIVE UTILITIES
======================================================= */
@media (max-width: 1024px) {
  .hero h1 { font-size: 1.6rem; }
  h1 { font-size: 1.45rem; }
  h2 { font-size: 1.19rem; }
}
@media (max-width: 768px) {
  h1 { font-size: 1.17rem; }
  h2 { font-size: 1rem; }
  .container { padding: 0 6px; }
}

/* =======================================================
  SCROLLBAR, SELECTION, MISC
======================================================= */
::-webkit-scrollbar {
  width: 9px; background: #F4F6FB;
}
::-webkit-scrollbar-thumb {
  background: #ffd451;
  border-radius: 9px;
  border:2px solid #F4F6FB;
}
::selection {
  background: #ffe766;
  color: #183153;
}

/* Hide outline for mouse, keep for keyboard navigation */
:focus:not(:focus-visible) {
  outline: none;
}
:focus-visible {
  outline: 2px solid #197278;
  outline-offset: 2px;
}

/* =======================================================
  PRINT STYLES (optional)
======================================================= */
@media print {
  header, footer, .mobile-menu, .cookie-banner, .cookie-modal {
    display: none !important;
  }
  body, .container,
  main, section, .section {
    background: none !important;
    color: #183153;
    box-shadow: none !important;
    border: none !important;
    padding: 0 !important;
    margin: 0 !important;
  }
}
