/*==================================================
  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,
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: inherit;
  font-size: 100%;
  vertical-align: baseline;
  box-sizing: border-box;
}
html {
  box-sizing: border-box;
  font-size: 16px;
  height: 100%;
}
*, *:before, *:after {
  box-sizing: inherit;
}
body {
  min-height: 100vh;
  background: #F7F9FA;
  color: #23272A;
  font-family: 'Roboto', 'Noto Sans JP', Arial, sans-serif;
  line-height: 1.7;
  font-size: 1rem;
}
img {
  max-width: 100%;
  display: block;
  height: auto;
}
a {
  color: #23272A;
  text-decoration: none;
  transition: color 0.2s;
}
a:hover, a:focus {
  color: #F6C440;
}
ul, ol {
  list-style-type: none;
}
table {
  border-collapse: collapse;
  width: 100%;
}
th, td {
  padding: 14px 16px;
  text-align: left;
  border-bottom: 1px solid #E5E8EA;
  font-size: 1rem;
}
th {
  background: #23272A;
  color: #fff;
  font-weight: 700;
  letter-spacing: 0.04em;
}
strong {
  font-weight: 700;
}

/*==================================================
  TYPOGRAPHY (Geometric Structured)
==================================================*/
h1, h2, h3, h4, h5, h6 {
  font-family: 'Noto Sans JP', 'Roboto', Arial, sans-serif;
  font-weight: 700;
  color: #23272A;
  line-height: 1.2;
  letter-spacing: 0.02em;
}
h1 {
  font-size: 2.5rem;
  margin-bottom: 24px;
  font-family: 'Noto Sans JP', 'Roboto', Arial, sans-serif;
  letter-spacing: 0.04em;
}
h2 {
  font-size: 2rem;
  margin-bottom: 20px;
  border-left: 6px solid #F6C440;
  padding-left: 12px;
}
h3 {
  font-size: 1.4rem;
  margin-bottom: 10px;
  letter-spacing: 0.03em;
  font-weight: 500;
}
h4, h5, h6 {
  font-size: 1.15rem;
  font-weight: 500;
}
p, ul, ol, dl, table, pre {
  margin-bottom: 16px;
  font-size: 1rem;
}
.text-section p, .content-wrapper p, .text-section ul, .content-wrapper ul {
  font-size: 1.08rem;
}

/*==================================================
  GEOMETRIC CONTAINER & LAYOUT SYSTEM
==================================================*/
.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 18px;
  display: flex;
  flex-direction: column;
  gap: 0;
}
.content-wrapper {
  display: flex;
  flex-direction: column;
  gap: 28px;
  padding: 0;
}
.text-section {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.section {
  margin-bottom: 60px;
  padding: 40px 20px;
  background: #fff;
  border-radius: 20px;
  box-shadow: 0 2px 14px rgba(35, 39, 42, 0.07);
}
@media (max-width: 900px) {
  .section {
    padding: 30px 8px;
    margin-bottom: 36px;
  }
}

/****** Flex Containers - Geometric Structure ******/
.card-container { 
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}
.card {
  margin-bottom: 20px;
  background: #fff;
  border-radius: 14px;
  box-shadow: 0 2px 8px rgba(35, 39, 42, 0.08);
  padding: 28px 22px;
  position: relative;
  flex: 1 1 320px;
  min-width: 260px;
  max-width: 400px;
}
.card-content {
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.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;
  align-items: center;
  gap: 20px;
  padding: 20px;
  background: #FFFDEB;
  border-radius: 14px;
  box-shadow: 0 2px 10px rgba(35,39,42,0.04);
  margin-bottom: 20px;
  transition: box-shadow 0.25s;
  border-left: 7px solid #F6C440;
}
.testimonial-card p {
  color: #23272A;
  font-size: 1.08rem;
}
.testimonial-card span {
  font-weight: 500;
  letter-spacing: 0.03em;
  color: #30363B;
  font-size: 0.97rem;
}
.testimonial-card:hover {
  box-shadow: 0 4px 18px rgba(246, 196, 64, 0.09),0 2px 10px rgba(35,39,42,0.07);
}
.feature-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
  background: #F4F6F7;
  padding: 24px 18px;
  border-radius: 16px;
  border: 2px solid #EAECF0;
  min-width: 220px;
  flex: 1 1 260px;
  max-width: 350px;
  box-shadow: 0 2px 8px rgba(167, 177, 183, 0.02);
  transition: border-color 0.2s, box-shadow 0.2s;
}
.feature-item:hover {
  border-color: #F6C440;
  box-shadow: 0 4px 24px rgba(246,196,64, 0.13);
}

.feature-item img {
  width: 38px;
  height: 38px;
}

.feature-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  justify-content: space-between;
}

.service-list li {
  border-left: 4px solid #F6C440;
  padding-left: 12px;
  margin-bottom: 12px;
  font-size: 1.1rem;
  font-family: 'Roboto', 'Noto Sans JP', Arial, sans-serif;
}

/****** Table Enhancements ******/
table {
  background: #fff;
  border-radius: 12px;
  overflow: hidden;
  border: 1.5px solid #EAECF0;
  margin-bottom: 16px;
}
tr:hover {
  background: #FFFBE6;
}
td strong {
  color: #23272A;
}

/****** CTA BUTTONS ******/
.cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #F6C440;
  color: #23272A;
  border: none;
  border-radius: 99px;
  font-family: 'Noto Sans JP','Roboto', Arial, sans-serif;
  font-size: 1.09rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  padding: 13px 38px;
  box-shadow: 0 2px 8px rgba(246,196,64,0.07);
  transition: all .2s cubic-bezier(.62,.09,.2,1.01);
  cursor: pointer;
  gap: 10px;
}
.cta.primary {
  background: #F6C440;
  color: #23272A;
}
.cta.primary:hover, .cta.primary:focus {
  background: #23272A;
  color: #FFFDEB;
}
.cta.secondary {
  background: #23272A;
  color: #fff;
}
.cta.secondary:hover, .cta.secondary:focus {
  background: #A7B1B7;
  color: #23272A;
}

/*==================================================
  HEADER/NAVIGATION
==================================================*/
header {
  background: #fff;
  box-shadow: 0 2px 10px rgba(35,39,42,0.025);
  position: relative;
  z-index: 1050;
}
header .container {
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  gap: 30px;
  padding: 0 24px;
  min-height: 74px;
}
.main-nav {
  display: flex;
  flex-direction: row;
  gap: 28px;
  align-items: center;
}
.main-nav a {
  font-family: 'Noto Sans JP', Arial, sans-serif;
  font-size: 1.07rem;
  font-weight: 500;
  letter-spacing: 0.05em;
  padding: 6px 0;
  border-bottom: 2.5px solid transparent;
  transition: border-color 0.17s, color 0.17s;
}
.main-nav a:hover, .main-nav a:focus {
  border-color: #F6C440;
  color: #F6C440;
}
header .cta.primary {
  margin-left: 32px;
}

header img {
  height: 48px;
}

/****** MOBILE NAVIGATION *****/
.mobile-menu-toggle {
  display: none;
  background: #23272A;
  color: #FFFDEB;
  border: none;
  border-radius: 7px;
  font-size: 2rem;
  height: 44px;
  width: 44px;
  align-items: center;
  justify-content: center;
  padding: 0;
  margin-left: 16px;
  cursor: pointer;
  z-index: 1201;
  transition: background .18s;
}
.mobile-menu-toggle:hover,
.mobile-menu-toggle:focus {
  background: #F6C440;
  color: #23272A;
}
.mobile-menu {
  position: fixed;
  z-index: 2050;
  left: 0;
  top: 0;
  width: 100vw;
  height: 100vh;
  background: #23272Ade;
  transform: translateX(-100%);
  transition: transform .35s cubic-bezier(.77,.1,.4,1.03);
  display: flex;
  flex-direction: column;
  gap: 0;
  pointer-events: none;
  opacity: 0;
}
.mobile-menu.open {
  transform: translateX(0);
  pointer-events: auto;
  opacity: 1;
}
.mobile-menu-close {
  background: #F6C440;
  border: none;
  color: #23272A;
  border-radius: 7px;
  font-size: 2.2rem;
  margin: 18px 20px auto 20px;
  width: 44px;
  height: 44px;
  cursor: pointer;
  align-self: flex-end;
  transition: background .18s, color 0.14s;
  box-shadow: 0 2px 16px 0 rgba(35,39,42,0.08);
}
.mobile-menu-close:hover,
.mobile-menu-close:focus {
  background: #23272A;
  color: #fff;
}
.mobile-nav {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 28px;
  margin: 0 0 0 32px;
  padding-top: 30px;
}
.mobile-nav a {
  color: #fff;
  font-family: 'Noto Sans JP', Arial, sans-serif;
  font-size: 1.35rem;
  font-weight: 600;
  letter-spacing: 0.07em;
  padding: 9px 0;
  border-bottom: 2.4px solid transparent;
  transition: color 0.18s, border-color 0.18s;
}
.mobile-nav a:hover, .mobile-nav a:focus {
  color: #F6C440;
  border-bottom: 2.4px solid #F6C440;
}

@media (max-width: 1020px) {
  header .main-nav {
    display: none;
  }
  header .cta.primary {
    display: none;
  }
  .mobile-menu-toggle {
    display: flex;
  }
}
@media (min-width: 1021px) {
  .mobile-menu {
    display: none !important;
  }
}

/*==================================================
  MAIN CONTENT
==================================================*/
main {
  display: flex;
  flex-direction: column;
  gap: 44px;
  margin-top: 0;
  min-height: 73vh;
}
section {
  margin-bottom: 60px;
  padding: 40px 20px;
  background: #fff;
  border-radius: 20px;
  box-shadow: 0 2px 14px rgba(35,39,42,0.07);
  display: flex;
  flex-direction: column;
  gap: 0;
}
@media (max-width: 900px) {
  section {
    margin-bottom: 28px;
    padding: 20px 5px;
  }
}

/******* CTAs and Banner *******/
.cta-banner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: #FFFDEB;
  border-radius: 18px;
  padding: 22px 28px;
  margin-bottom: 32px;
  gap: 20px;
  box-shadow: 0 4px 12px rgba(246,196,64,0.06);
}
.cta-banner p {
  font-size: 1.1rem;
  font-weight: 500;
  color: #23272A;
  letter-spacing: 0.02em;
}

/******* FAQ *******/
dl {
  margin-bottom: 24px;
}
dt {
  margin-top: 16px;
  font-family: 'Noto Sans JP', Arial, sans-serif;
  font-weight: 700;
  letter-spacing: 0.03em;
  color: #23272A;
  font-size: 1.08rem;
}
dd {
  margin-left: 12px;
  font-size: 1.04rem;
  color: #2B2E31;
  margin-bottom: 8px;
}

/******* Ordered List Steps (How-to) *******/
ol {
  counter-reset: step;
  display: flex;
  flex-direction: column;
  gap: 16px;
}
ol > li {
  position: relative;
  padding-left: 32px;
  font-family: 'Roboto', 'Noto Sans JP', Arial, sans-serif;
  font-size: 1.09rem;
}
ol > li:before {
  counter-increment: step;
  content: counter(step);
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  background: #F6C440;
  color: #23272A;
  width: 24px;
  height: 24px;
  border-radius: 6px;
  font-weight: 700;
  text-align: center;
  line-height: 24px;
  font-size: 1.1rem;
  box-shadow: 0 1px 4px rgba(246,196,64,.10);
}
ol li img {
  margin-right: 10px;
  vertical-align: middle;
  width: 30px;
  height: 30px;
  display: inline-block;
}

/******* UL with Icons ******/
ul li img {
  margin-right: 10px;
  width: 24px;
  height: 24px;
  vertical-align: middle;
}

/*==================================================
  FOOTER
==================================================*/
footer {
  background: #23272A;
  color: #fff;
  padding: 40px 0 25px 0;
  box-shadow: 0 -2px 10px rgba(35,39,42,0.04);
  margin-top: 40px;
  position: relative;
  z-index: 1;
}
footer .container {
  display: flex;
  flex-direction: column;
  gap: 30px;
  align-items: center;
  justify-content: center;
}
.footer-nav {
  display: flex;
  flex-direction: row;
  gap: 32px;
  margin-bottom: 8px;
  flex-wrap: wrap;
  align-items: center;
}
.footer-nav a {
  color: #fff;
  font-size: 1rem;
  letter-spacing: 0.03em;
  padding-bottom: 2px;
  border-bottom: 2.5px solid transparent;
  transition: border-color .17s, color .17s;
}
.footer-nav a:hover, .footer-nav a:focus {
  border-color: #F6C440;
  color: #F6C440;
}

.contact-info {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  gap: 24px;
  align-items: center;
  justify-content: center;
  color: #fff;
}
.contact-info span {
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 0.98rem;
  letter-spacing: 0.01em;
}
.contact-info img {
  width: 18px;
  height: 18px;
  filter: grayscale(1) brightness(1.5);
}
footer small {
  color: #A7B1B7;
  font-size: 0.92rem;
}

/****** RESPONSIVE: Footer & Nav *****/
@media (max-width: 700px) {
  .footer-nav {
    gap: 14px;
    flex-direction: column;
    align-items: flex-start;
  }
  .contact-info {
    flex-direction: column;
    gap: 10px;
    align-items: flex-start;
  }
  footer {
    padding-top: 28px;
    padding-bottom: 20px;
  }
}

/*==================================================
  RESPONSIVE FLEX & STRUCTURE
==================================================*/
@media (max-width: 900px) {
  .feature-grid, .card-container, .content-grid {
    flex-direction: column;
    gap: 18px;
  }
  .text-image-section {
    flex-direction: column;
    gap: 20px;
    align-items: flex-start;
  }
  main {
    gap: 26px;
  }
}
@media (max-width: 650px) {
  h1 { font-size: 1.85rem; }
  h2 { font-size: 1.38rem; }
  h3 { font-size: 1.13rem; }
  .cta {
    min-width: 100%;
    font-size: 1rem;
    padding: 12px 14px;
  }
  .container {
    padding: 0 6px;
  }
  section, .section {
    padding: 15px 2px;
    border-radius: 13px;
  }
}

/*==================================================
  COOKIE CONSENT BANNER & MODAL
==================================================*/
.cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100vw;
  background: #23272A;
  color: #fff;
  box-shadow: 0 -3px 16px rgba(35,39,42,.09);
  z-index: 4000;
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 24px 18px;
  font-size: 1rem;
  transition: transform .32s, opacity .25s;
  opacity: 1;
  transform: translateY(0);
}
.cookie-banner.hide {
  opacity: 0;
  transform: translateY(100%);
  pointer-events: none;
}
.cookie-banner__message {
  flex: 3 1 300px;
  font-size: 1.01rem;
  color: #fff;
  letter-spacing: 0.01em;
  margin-right: 10px; 
}
.cookie-banner__buttons {
  flex: 1 1 auto;
  display: flex;
  gap: 18px;
  justify-content: flex-end;
  align-items: center;
}
.cookie-btn {
  border: none;
  border-radius: 20px;
  padding: 10px 27px;
  font-size: 1rem;
  font-family: 'Roboto','Noto Sans JP',sans-serif;
  font-weight: 600;
  background: #F6C440;
  color: #23272A;
  margin-right: 0;
  cursor: pointer;
  transition: background .17s, color 0.15s;
}
.cookie-btn.settings {
  background: transparent;
  color: #F6C440;
  border: 2px solid #F6C440;
  margin-left: 3px;
}
.cookie-btn.settings:hover, .cookie-btn.settings:focus {
  background: #F6C440;
  color: #23272A;
}
.cookie-btn.accept:hover, .cookie-btn.accept:focus {
  background: #23272A;
  color: #FFFDEB;
}
.cookie-btn.reject {
  background: #A7B1B7;
  color: #fff;
}
.cookie-btn.reject:hover, .cookie-btn.reject:focus {
  background: #F6C440;
  color: #23272A;
}

/****** Cookie Modal ******/
.cookie-modal {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: flex-start;
  position: fixed;
  z-index: 4100;
  left: 50%;
  top: 50%;
  transform: translate(-50%,-60%);
  width: 95vw;
  max-width: 420px;
  background: #fff;
  color: #23272A;
  border-radius: 18px;
  box-shadow: 0 10px 40px rgba(35,39,42,0.19);
  padding: 32px 28px 24px 28px;
  transition: opacity .22s;
  opacity: 1;
}
.cookie-modal.hide {
  opacity: 0;
  pointer-events: none;
}
.cookie-modal__header {
  font-family: 'Noto Sans JP', Arial, sans-serif;
  font-size: 1.23rem;
  font-weight: 700;
  margin-bottom: 18px;
  letter-spacing: 0.03em;
  display: flex;
  align-items: center;
  gap: 12px;
}
.cookie-modal__section {
  margin-bottom: 14px;
  font-size: 1.01rem;
  padding-left: 3px;
}
.cookie-modal__switches {
  display: flex;
  flex-direction: column;
  gap: 13px;
  margin-bottom: 19px;
}
.cookie-modal-label {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 1rem;
  font-family: 'Roboto', 'Noto Sans JP', sans-serif;
}
.cookie-modal input[type="checkbox"] {
  accent-color: #F6C440;
}
.cookie-modal__footer {
  display: flex;
  flex-direction: row;
  gap: 19px;
  margin-top: 10px;
  justify-content: flex-end;
  width: 100%;
}
.cookie-modal .cookie-btn {
  padding: 9px 25px;
}
.cookie-modal__close {
  position: absolute;
  top: 12px;
  right: 18px;
  background: transparent;
  color: #A7B1B7;
  border: none;
  font-size: 1.8rem;
  cursor: pointer;
  transition: color .16s;
}
.cookie-modal__close:hover, .cookie-modal__close:focus {
  color: #F6C440;
}

@media (max-width: 600px) {
  .cookie-banner {
    flex-direction: column;
    align-items: flex-start;
    padding: 18px 8px;
    gap: 14px;
  }
  .cookie-banner__buttons {
    width: 100%;
    gap: 7px;
    justify-content: flex-start;
  }
  .cookie-modal {
    padding: 15px 8px 11px 9px;
    left: 51%;
    top: 55%;
    transform: translate(-51%, -55%);
  }
}

/*==================================================
  MICRO-INTERACTIONS & TRANSITIONS
==================================================*/
section, .card, .feature-item, .testimonial-card, .cta, .cookie-btn {
  transition: box-shadow .18s cubic-bezier(.62,.09,.2,1.01), border .13s, background .17s;
}

.cta:active, .cookie-btn:active, .cookie-modal__close:active {
  transform: scale(.98);
}

/* Focus Rings for Accessibility */
:focus-visible {
  outline: 2.5px dashed #F6C440;
  outline-offset: 2px;
}

/* Hide visually but keep accessible for screen readers */
.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  border: 0;
}

/*==================================================
  GEOMETRIC / STRUCTURAL DECORATIVE ELEMENTS
==================================================*/
.feature-item, .testimonial-card, .card {
  border-radius: 14px 38px 14px 38px;
  border-width: 2.3px;
}
.card {
  border: 2.3px solid #E5E8EA;
}

/****** Extra geometric accent bar for H2 ******/
h2 {
  position: relative;
}
h2:before {
  content: '';
  display: block;
  position: absolute;
  left: -18px;
  top: 10px;
  width: 10px;
  height: 30px;
  background: #F6C440;
  border-radius: 7px;
}
@media (max-width: 900px) {
  h2:before {
    left: -8px;
    width: 7px;
    height: 21px;
    top: 7px;
  }
}

/*==================================================
  PRINT SUPPORT
==================================================*/
@media print {
  body, main, section, .container {
    background: #fff !important;
    color: #23272A !important;
    box-shadow: none !important;
  }
  header, footer, .mobile-menu, .cookie-banner, .cookie-modal {
    display: none !important;
  }
  .card, .feature-item, .testimonial-card {
    box-shadow: none !important;
    border: 1px solid #B7B9BA !important;
    background: #fff !important;
  }
}
