/* =====================================================
   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-size: 100%;
  font: inherit;
  vertical-align: baseline;
  box-sizing: border-box;
}

body {
  line-height: 1.6;
  background: #EFF1F3;
  color: #1A2434;
  font-family: 'Roboto', 'Noto Sans JP', sans-serif;
  font-size: 16px;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img {
  max-width: 100%;
  display: block;
}
a {
  color: #1A2434;
  text-decoration: none;
  font-weight: bold;
  transition: color 0.2s;
}
a:hover, a:focus {
  color: #D4A144;
}
ul, ol {
  padding-left: 1.3em;
  margin: 12px 0;
}
li {
  margin-bottom: 0.5em;
}
table {
  border-collapse: collapse;
  width: 100%;
}
th, td {
  padding: 12px 8px;
  border-bottom: 2px solid #E8EAF0;
  text-align: left;
}
th {
  background: #1A2434;
  color: #fff;
  font-weight: 900;
  font-size: 1.1em;
}
tr:last-child td {
  border-bottom: none;
}

/* =====================================================
   BRAND VARIABLES
====================================================== */
:root {
  --color-primary: #1A2434;
  --color-secondary: #D4A144;
  --color-accent: #EFF1F3;
  --color-contrast: #fff;
  --color-dark: #0F131B;
  --color-text: #1A2434;
  --color-shadow: rgba(26,36,52,0.10);
  --radius: 14px;
  --transition-fast: 0.3s cubic-bezier(.4,0,.2,1);
  --shadow-elevate: 0px 2px 16px var(--color-shadow);
  --font-display: 'Noto Sans JP', 'Roboto', sans-serif;
  --font-body: 'Roboto', 'Noto Sans JP', sans-serif;
}

/* Font Faces - load Noto Sans JP, Roboto (use system fallback as necessary) */

body {
  font-family: var(--font-body);
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  font-weight: 900;
  letter-spacing: 0.03em;
  color: var(--color-primary);
  margin-bottom: 0.8em;
  line-height: 1.15;
}
h1 {
  font-size: 2.4rem;
  margin-bottom: 16px;
}
h2 {
  font-size: 2rem;
  margin-bottom: 14px;
}
h3 {
  font-size: 1.4rem;
  margin-bottom: 8px;
}
h4, h5, h6 {
  font-size: 1.1rem;
  margin-bottom: 8px;
  font-weight: bold;
}
p, dl, dd, dt {
  font-size: 1rem;
}
strong {
  font-weight: 800;
}
blockquote {
  font-size: 1.1rem;
  font-style: italic;
  border-left: 5px solid var(--color-secondary);
  margin: 0 0 16px 0;
  padding: 4px 0 4px 18px;
  color: var(--color-primary);
}

/* =====================================================
   LAYOUT - CONTAINER/SECTION
====================================================== */
.container {
  width: 100%;
  max-width: 1160px;
  margin: 0 auto;
  padding: 0 20px;
  display: flex;
  flex-direction: column;
  gap: 0;
}

main {
  flex: 1 1 auto;
  width: 100vw;
  max-width: 100%;
  background: var(--color-accent);
}

.section {
  margin-bottom: 60px;
  padding: 40px 20px;
  border-radius: var(--radius);
  background: #fff;
  box-shadow: var(--shadow-elevate);
}

.content-wrapper {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.text-section {
  margin-bottom: 24px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.text-image-section {
  display: flex;
  align-items: center;
  gap: 30px;
  flex-wrap: wrap;
  margin-bottom: 32px;
}

/* =====================================================
   FLEX LAYOUTS (MANDATORY PATERNS)
====================================================== */
.card-container {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}
.card {
  background: #fff;
  border-radius: var(--radius);
  box-shadow: var(--shadow-elevate);
  margin-bottom: 20px;
  position: relative;
  padding: 24px 20px;
  min-width: 260px;
  flex: 1 1 320px;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
}
.features {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
}
.content-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  justify-content: space-between;
}
.feature-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
}
.feature-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
}

/* Testimonials must be visually distinct and readable */
.testimonial-card {
  display: flex;
  align-items: center;
  gap: 20px;
  background: #F5F6FA;
  border-radius: var(--radius);
  box-shadow: 0 2px 12px rgba(26,36,52,0.06);
  padding: 20px;
  margin-bottom: 20px;
  color: var(--color-text);
  font-weight: 500;
  font-size: 1.08rem;
  min-width: 270px;
}
.testimonial-card blockquote {
  color: #1A2434;
  border: none;
  font-size: 1.1rem;
  font-family: var(--font-display);
}
.testimonial-card span {
  font-weight: 700;
  color: var(--color-primary);
  font-size: 0.97rem;
}

/* =====================================================
   HEADER + NAVIGATION (DESKTOP)
====================================================== */
header {
  width: 100%;
  background: #fff;
  border-bottom: 4px solid var(--color-secondary);
  box-shadow: 0 1px 12px rgba(26,36,52,0.03);
  position: sticky;
  top: 0; left: 0; z-index: 1000;
}
header .container {
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  padding: 18px 20px 18px 20px;
}
header img {
  height: 44px;
  max-width: 180px;
}
header nav {
  display: flex;
  align-items: center;
  gap: 24px;
}
nav a {
  padding: 5px 12px;
  font-size: 1.01rem;
  display: inline-block;
  border-radius: 4px;
  transition: background 0.2s, color 0.2s;
}
nav a.cta {
  color: #fff;
  background: var(--color-secondary);
  font-weight: 900;
  padding: 8px 24px;
  border-radius:30px;
  margin-left: 8px;
  box-shadow: 0 2px 10px rgba(212,161,68,0.1);
  border: 2px solid var(--color-secondary);
  transition: background 0.22s, color 0.22s, border 0.22s;
}
nav a.cta:hover, nav a.cta:focus {
  background: #fff;
  color: var(--color-secondary);
  border: 2px solid var(--color-secondary);
}

/* Burger Button: hide on desktop */
.mobile-menu-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 2.1rem;
  color: var(--color-primary);
  outline: none;
  cursor: pointer;
  padding: 4px 10px;
  border-radius: 8px;
  transition: background 0.2s;
}
.mobile-menu-toggle:hover, .mobile-menu-toggle:focus {
  background: #EEF0F2;
}

/* =====================================================
   MOBILE MENU OVERLAY
====================================================== */
.mobile-menu {
  position: fixed;
  top: 0; left: 0;
  right: 0; bottom: 0;
  background: rgba(26,36,52,0.96);
  color: #fff;
  z-index: 1200;
  width: 100vw;
  height: 100vh;
  transform: translateX(-100vw);
  transition: transform 0.4s cubic-bezier(.32,1.21,.42,1);
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-items: flex-start;
  pointer-events: none;
  opacity: 0;
}
.mobile-menu.open {
  transform: translateX(0);
  opacity: 1;
  pointer-events: auto;
}
.mobile-menu-close {
  position: relative;
  margin: 28px 0 10px 22px;
  background: none;
  border: none;
  color: #fff;
  font-size: 2.3rem;
  font-weight: 900;
  cursor: pointer;
  align-self: flex-start;
  z-index: 1;
  transition: color .2s;
}
.mobile-menu-close:hover {
  color: var(--color-secondary);
}
.mobile-nav {
  display: flex;
  flex-direction: column;
  gap:28px;
  margin-top: 40px;
  width: 100vw;
  padding-left: 22px;
}
.mobile-nav a {
  color:#fff;
  font-size:1.3rem;
  font-family: var(--font-display);
  font-weight: bold;
  letter-spacing:0.02em;
  padding: 2px 0;
  transition: color .2s;
}
.mobile-nav a:hover,.mobile-nav a:focus {
  color: var(--color-secondary);
}

/* Show only on mobile */
@media (max-width: 1024px) {
  header nav {
    display: none;
  }
  .mobile-menu-toggle {
    display: block;
  }
}
@media (max-width: 540px) {
  header img {
    height: 36px;
  }
}
@media (min-width: 1025px) {
  .mobile-menu { display: none !important; }
}

/* =====================================================
   HERO SECTION & BOLD CALLS TO ACTION
====================================================== */
.hero {
  background: linear-gradient(125deg, #fff 80%, #D4A144 100%);
  border-bottom: 8px solid var(--color-secondary);
  width: 100%;
  margin-bottom: 60px;
  padding: 48px 0 36px 0;
}
.hero .container {
  align-items: flex-start;
  min-height: 280px;
}
.hero .content-wrapper {
  max-width: 600px;
  gap: 18px;
}
.hero h1 {
  color: var(--color-primary);
  font-size: 2.6rem;
  font-weight: 900;
}
.hero p {
  font-size: 1.15rem;
  color: var(--color-primary);
  margin-bottom: 14px;
}
.hero a.cta {
  display: inline-block;
  font-weight: 900;
  font-size: 1.3rem;
  background: var(--color-secondary);
  color: #fff;
  box-shadow: 0 1px 8px 0 rgba(212,161,68,.18);
  border-radius: 32px;
  padding: 14px 38px;
  margin-top: 11px;
  border: none;
  letter-spacing: 0.06em;
  transition: background .22s, color .20s, transform .18s;
}
.hero a.cta:hover, .hero a.cta:focus {
  background: #fff;
  color: var(--color-secondary);
  transform: translateY(-2px) scale(1.04);
}

/* =====================================================
   BUTTONS, LINKS, CTA
====================================================== */
.cta, .btn, button, input[type="submit"] {
  font-family: var(--font-display);
  font-weight: 900;
  color: #fff;
  background: var(--color-secondary);
  border: 2px solid var(--color-secondary);
  border-radius: 32px;
  cursor: pointer;
  font-size: 1.09rem;
  letter-spacing: 0.05em;
  padding: 10px 30px;
  margin: 8px 0;
  box-shadow: 0 2px 12px rgba(212,161,68,0.08);
  transition: background .22s, color .22s, border .2s, transform .15s;
  display: inline-block;
  text-align: center;
}
.cta:hover, .cta:focus, .btn:hover, .btn:focus, button:hover, button:focus, input[type="submit"]:hover, input[type="submit"]:focus {
  background: #fff;
  color: var(--color-secondary);
  border: 2px solid var(--color-secondary);
  transform: translateY(-1px) scale(1.05);
}

/* =====================================================
   CARDS & FEATURES
====================================================== */
.feature-grid > div {
  background: #fff;
  border-radius: var(--radius);
  box-shadow: var(--shadow-elevate);
  padding: 24px 22px;
  flex: 1 1 240px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  min-width: 220px;
  max-width: 360px;
  margin-bottom: 20px;
  gap: 9px;
  transition: box-shadow .22s, transform .18s;
}
.feature-grid > div:hover, .feature-grid > div:focus {
  box-shadow: 0 6px 30px 0 rgba(212,161,68,.11);
  transform: translateY(-6px) scale(1.03);
}
.feature-grid img {
  height: 46px;
  width: 46px;
  margin-bottom: 4px;
}
.feature-grid h3 {
  color: var(--color-secondary);
  font-size: 1.19rem;
  margin-bottom: 4px;
}

/* Cards generic */
.card {
  transition: box-shadow .22s, transform .18s;
}
.card:hover, .card:focus {
  box-shadow: 0 6px 30px rgba(26,36,52,0.18);
  transform: scale(1.025);
}

/* =====================================================
   FORMS & INPUTS
====================================================== */
input, textarea, select {
  border: 2px solid #E5E8EE;
  background: #fff;
  border-radius: 8px;
  padding: 10px 15px;
  font-size: 1rem;
  color: var(--color-primary);
  margin-bottom: 18px;
  outline: none;
  font-family: var(--font-body);
  transition: border .19s;
  width: 100%;
}
input:focus, textarea:focus, select:focus {
  border-color: var(--color-secondary);
}

label {
  font-weight: 700;
  color: var(--color-primary);
  display: block;
  margin-bottom: 4px;
  letter-spacing: 0.02em;
  font-size: 1.04em;
}

/* =====================================================
   FOOTER
====================================================== */
footer {
  background: var(--color-primary);
  color: #fff;
  width: 100vw;
  padding: 36px 0 0 0;
  margin-top: 34px;
}
footer .container {
  flex-direction: column;
  align-items: center;
  gap: 20px;
}
footer nav {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  gap: 18px;
  margin-bottom: 15px;
}
footer nav a {
  color: #fff;
  text-decoration: underline;
  font-weight: 700;
  font-size: 1.04rem;
}
footer nav a:hover, footer nav a:focus {
  color: var(--color-secondary);
  text-decoration: underline;
}
footer img {
  height: 38px;
  margin-bottom: 12px;
}
footer .text-section {
  color: #fff;
  margin-bottom: 10px;
  font-size: 0.98rem;
  text-align: center;
}

/* =====================================================
   COOKIE CONSENT BANNER
====================================================== */
.cookie-banner {
  position: fixed;
  left: 0; right: 0;
  bottom: 0;
  background: #fff;
  color: var(--color-primary);
  border-top: 4px solid var(--color-secondary);
  box-shadow: 0 -2px 16px rgba(26,36,52, 0.07);
  z-index: 2000;
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  gap: 22px;
  padding: 18px 28px;
  font-size: 1.07rem;
  animation: popup-bottom-in 0.7s cubic-bezier(.32,1.21,.42,1);
  transition: transform .4s;
}
@keyframes popup-bottom-in {
  from { transform: translateY(90px); opacity: 0.6; }
  to   { transform: translateY(0); opacity: 1; }
}
.cookie-banner-message {
  flex: 1 1 260px;
}
.cookie-banner-actions {
  display: flex;
  flex-direction: row;
  gap: 16px;
}
.cookie-btn {
  font-family: var(--font-display);
  border-radius: 28px;
  border: 2px solid var(--color-secondary);
  padding: 8px 20px;
  background: var(--color-secondary);
  color: #fff;
  font-weight: 900;
  font-size: 1rem;
  cursor: pointer;
  margin-left: 0.5em;
  margin-bottom: 0;
  transition: background .18s, color .18s, border .18s;
}
.cookie-btn.secondary {
  background: #fff;
  color: var(--color-secondary);
  border: 2px solid var(--color-secondary);
}
.cookie-btn:hover,.cookie-btn:focus {
  background: #fff;
  color: var(--color-secondary);
  border: 2px solid var(--color-secondary);
}
.cookie-btn.secondary:hover, .cookie-btn.secondary:focus {
  background: var(--color-secondary);
  color: #fff;
}

/* COOKIE MODAL POPUP */
.cookie-modal {
  display: none;
  position: fixed;
  left: 50%; top: 50%;
  transform: translate(-50%, -50%) scale(0.90);
  background: #fff;
  color: var(--color-primary);
  border-radius: 18px;
  box-shadow: 0 4px 32px rgba(26,36,52,.15);
  z-index: 2800;
  width: 98vw;
  max-width: 390px;
  padding: 32px 28px 28px 28px;
  animation: fadein-cookie-modal .4s cubic-bezier(.32,1.21,.42,1);
}
.cookie-modal.open {
  display: block;
  transform: translate(-50%, -50%) scale(1.00);
  opacity: 1;
}
@keyframes fadein-cookie-modal {
  from { opacity: 0; transform: translate(-50%, -30%) scale(0.8); }
  to   { opacity: 1; transform: translate(-50%,-50%) scale(1); }
}
.cookie-modal-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  margin-bottom: 7px;
  gap: 12px;
}
.cookie-modal-title {
  font-size: 1.3rem;
  font-weight: 900;
  color: var(--color-primary);
}
.cookie-modal-close {
  background: none;
  border: none;
  color: #1A2434;
  font-size: 1.6rem;
  font-weight: 900;
  cursor: pointer;
  margin-top: -5px;
  margin-right: -4px;
}
.cookie-modal-category {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 19px 0 11px 0;
}
.cookie-modal-category label {
  font-size: 1.08rem;
  font-weight: bold;
  color: var(--color-primary);
}
.cookie-modal-category input[type="checkbox"] {
  width: 1.15em;
  height: 1.15em;
  accent-color: var(--color-secondary);
  margin-right:3px;
}
.cookie-modal-actions {
  display: flex;
  flex-direction: row;
  gap: 18px;
  align-items: center;
  justify-content: flex-end;
  margin-top: 24px;
}
.cookie-modal .cookie-btn {
  min-width: 110px;
}

/* =====================================================
   UTILITIES & MISC
====================================================== */
.hide {
  display: none !important;
}
.text-center {
  text-align: center;
}
.text-right {
  text-align: right;
}
.text-bold {
  font-weight: 900;
}
.section-title {
  font-size: 2rem;
  font-weight: 900;
  color: var(--color-primary);
  margin-bottom: 20px;
  letter-spacing: 0.02em;
  text-align: left;
}

/* Table responsive */
@media (max-width: 768px) {
  table, thead, tbody, th, td, tr {
    display: block;
    width: 100%;
  }
  thead tr { display: none; }
  td {
    position: relative;
    min-height: 32px;
    padding-left: 40%;
    border-bottom: 1px solid #E8EAF0;
  }
  td:before {
    position: absolute;
    left: 8px;
    top:0;
    width: 38%;
    padding-right: 12px;
    white-space: pre;
    content: attr(data-label);
    font-weight: 900;
    color: var(--color-primary);
  }
}

/* =====================================================
   RESPONSIVE/ADAPTIVE BREAKPOINTS
====================================================== */
@media (max-width: 1024px) {
  .container { max-width: 100vw; }
  .feature-grid {
    flex-direction: column;
    gap: 20px;
  }
  .card-container, .content-grid, .features {
    flex-direction: column;
    gap: 20px;
  }
  footer .container {
    padding: 0 8px;
  }
}
@media (max-width: 960px) {
  .hero .container {
    padding-left:20px; padding-right:20px;
  }
}
@media (max-width: 768px) {
  .section, .hero {
    padding: 18px 4vw;
  }
  .feature-grid > div {
    min-width: 90%;
    max-width: 100%;
    padding: 18px 15px;
  }
  .text-image-section {
    flex-direction: column;
    align-items: stretch;
    gap: 16px;
  }
  .content-wrapper {
    gap: 14px;
  }
  .testimonial-card, .card {
    min-width: 95vw;
  }
  .footer {
    padding: 14px 2vw;
  }
}
@media (max-width: 540px) {
  h1 { font-size: 1.5rem; }
  h2 { font-size: 1.22rem; }
  h3 { font-size: 1.09rem; }
  .hero {
    padding: 18px 0 12px 0;
    margin-bottom: 20px;
  }
  .section {
    margin-bottom: 34px;
    padding: 13px 2vw;
  }
  .cookie-banner {
    flex-direction: column;
    gap:9px;
    font-size: 0.97rem;
    padding: 13px 7px;
    align-items: flex-start;
  }
}

/* =====================================================
   VISUAL HIERARCHY, GEOMETRIC EFFECTS, BOLD DECORATION
====================================================== */
.section {
  position: relative;
  overflow: visible;
}
.section:after {
  content: '';
  display: block;
  position: absolute;
  top: -20px; right: -40px;
  width: 70px; height: 70px;
  background: var(--color-secondary);
  opacity: 0.10;
  border-radius: 20% 50% 30% 50%;
  z-index: 0;
  pointer-events: none;
}
.section:nth-child(even):after {
  left: -40px; right: auto; top: auto; bottom: -30px;
  border-radius: 60% 40% 28% 50%;
}

.feature-grid > div:before {
  content: '';
  display: block;
  width: 35px; height: 7px;
  background: var(--color-secondary);
  border-radius: 7px;
  margin-bottom: 12px;
  opacity: .45;
}

/* Subtle animation for CTA & Icons */
.cta,.btn {transition: transform 0.22s cubic-bezier(.32,1.21,.42,1);}
.cta:active,.btn:active {transform: scale(0.96);}

/* Ensure no content overlap */
.card, .feature-grid > div, .testimonial-card {
  margin-bottom: 20px;
}

/* List markers */
ul li {
  position: relative;
  padding-left: 1.2em;
}
ul li:before {
  content: '';
  display: inline-block;
  width: 8px; height: 8px;
  background: var(--color-secondary);
  border-radius: 100%;
  position: absolute;
  left: 0; top: 0.53em;
}

dt {
  font-weight: 800;
  margin-top: 10px;
  color: var(--color-primary);
}
dd {
  margin-bottom: 7px;
  color: var(--color-dark);
}

/* =====================================================
   Z-INDEX + NO OVERLAP GUARANTEE
====================================================== */
header { z-index: 1000; }
.mobile-menu { z-index: 1200; }
.cookie-banner, .cookie-modal { z-index: 2000; }

/* Ensure minimum spacing between all content cards & sections */
.card, .card-container > *, .feature-grid > *, .testimonial-card, .section > *, .content-wrapper > * {
  margin-bottom: 20px;
}
.card:last-child, .feature-grid > div:last-child, .testimonial-card:last-child, .content-wrapper > *:last-child {
  margin-bottom: 0 !important;
}

/* END OF CSS */
