/* ===========================================================
   RESET & NORMALIZATION
   ======================================================== */
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 {
  box-sizing: border-box;
  font-size: 16px;
  -webkit-text-size-adjust: 100%;
}
*, *:before, *:after {
  box-sizing: inherit;
}
body {
  background: #F2F2F2;
  color: #1A2128;
  font-family: 'Noto Sans JP', Arial, 'ヒラギノ角ゴ ProN', 'Hiragino Kaku Gothic ProN', 'メイリオ', Meiryo, sans-serif;
  font-size: 16px;
  line-height: 1.7;
  min-height: 100vh;
  position: relative;
}
a {
  color: #1A2128;
  text-decoration: none;
  transition: color 0.2s;
}
a:focus, a:hover {
  color: #B4975A;
  outline: none;
}
ul, ol {
  list-style: none;
}
img {
  max-width: 100%;
  height: auto;
}

/* ===========================================================
   BASE GEOMETRIC STRUCTURED STYLES & VARIABLES
   ======================================================== */
:root {
  --primary: #1A2128;
  --secondary: #B4975A;
  --accent: #F2F2F2;
  --border-radius: 14px;
  --shadow-sm: 0 1px 4px rgba(26,33,40,0.04);
  --shadow-md: 0 6px 24px rgba(26,33,40,0.08);
  --gap: 24px;
  --container-max: 1110px;
  --transition: 0.23s cubic-bezier(.47,.06,.48,1.41);
}

/* ===========================================================
   TYPOGRAPHY (Geometric, Structured)
   ======================================================== */
h1, h2, h3, h4, h5, h6 {
  font-family: 'Noto Serif JP', 'Noto Sans JP', serif;
  color: #1A2128;
  font-weight: 700;
  letter-spacing: 0.03em;
  line-height: 1.23;
  margin-bottom: 16px;
}
h1 {
  font-size: 2.2rem; /* 35px */
  font-family: 'Noto Serif JP', serif;
  margin-bottom: 24px;
  letter-spacing: 0.04em;
}
h2 {
  font-size: 1.5rem; /* 24px */
  margin-bottom: 18px;
}
h3 {
  font-size: 1.125rem; /* 18px */
  font-weight: 600;
  margin-bottom: 12px;
}
h4, h5, h6 {
  font-size: 1rem;
  font-weight: 600;
}
p, ul, ol, table {
  font-size: 1rem;
  font-family: 'Noto Sans JP', Arial, sans-serif;
  color: #1A2128;
}
.lead {
  font-size: 1.125rem;
  font-weight: 400;
  margin-bottom: 20px;
  letter-spacing: 0.01em;
}
strong {
  font-weight: 700;
}

/* Angular/Geometric Font Styling for Headings */
h1, h2, h3 {
  font-family: 'Noto Serif JP', serif;
  font-stretch: condensed;
}

/* ===========================================================
   LAYOUT, CONTAINER, SECTION
   ======================================================== */
.container {
  width: 100%;
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 20px;
  display: flex;
  flex-direction: column;
  align-items: stretch;
}
.section {
  margin-bottom: 60px;
  padding: 40px 20px;
  background: #fff;
  border-radius: var(--border-radius);
  box-shadow: var(--shadow-sm);
}
@media (max-width: 768px) {
  .section {
    padding: 26px 6px;
    margin-bottom: 38px;
  }
}
.content-wrapper {
  display: flex;
  flex-direction: column;
  gap: 24px;
  padding: 0;
  position: relative;
}

/* ===========================================================
   HEADER & NAVIGATION
   ======================================================== */
header {
  background: #fff;
  box-shadow: var(--shadow-sm);
  padding: 0;
  width: 100%;
  z-index: 900;
}
header .container {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  min-height: 72px;
  padding-top: 0; padding-bottom: 0;
}
header img {
  height: 38px;
  width: auto;
}
nav {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 28px;
}
nav a {
  font-family: 'Noto Sans JP', Arial, sans-serif;
  font-weight: 500;
  font-size: 1rem;
  color: #1A2128;
  border-radius: 8px;
  letter-spacing: 0.04em;
  padding: 6px 11px;
  transition: color 0.2s, background 0.23s;
}
nav a:hover, nav a:focus {
  background: #F2F2F2;
  color: #B4975A;
}

/* ============ MOBILE BURGER MENU ============ */
.mobile-menu-toggle {
  background: none;
  border: none;
  font-size: 2rem;
  color: #1A2128;
  cursor: pointer;
  margin-left: 24px;
  display: none;
  transition: color 0.18s;
  z-index: 1200;
}
.mobile-menu-toggle:focus, .mobile-menu-toggle:hover {
  color: #B4975A;
}
@media (max-width: 990px) {
  nav {
    display: none;
  }
  .mobile-menu-toggle {
    display: block;
  }
}

.mobile-menu {
  position: fixed;
  top: 0; left: 0;
  width: 100%;
  height: 100vh;
  background: #fff;
  box-shadow: 12px 0 32px rgba(26,33,40,0.09);
  z-index: 1400;
  transform: translateX(-100%);
  transition: transform 0.38s var(--transition);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: flex-start;
  padding: 28px 28px 0 24px;
}
.mobile-menu.open {
  transform: translateX(0);
}
.mobile-menu-close {
  background: none;
  border: none;
  font-size: 2rem;
  color: #1A2128;
  position: absolute;
  top: 18px;
  right: 26px;
  cursor: pointer;
  transition: color 0.2s;
  z-index: 1500;
}
.mobile-menu-close:focus, .mobile-menu-close:hover {
  color: #B4975A;
}
.mobile-nav {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 23px;
  margin-top: 45px;
}
.mobile-nav a {
  font-size: 1.26rem;
  color: #1A2128;
  font-weight: 600;
  border-radius: 6px;
  padding: 10px 16px;
  transition: background 0.2s, color 0.2s;
  width: 100%;
}
.mobile-nav a:focus, .mobile-nav a:hover {
  background: #f2f2f2;
  color: #B4975A;
}
@media (min-width: 991px) {
  .mobile-menu {
    display: none !important;
  }
}

/* ===========================================================
   BUTTONS & CTA
   ======================================================== */
.cta-btn,
button, .btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: 'Noto Sans JP', Arial, sans-serif;
  font-weight: 700;
  border-radius: 10px;
  border: none;
  padding: 12px 32px;
  font-size: 1.12rem;
  letter-spacing: 0.04em;
  cursor: pointer;
  transition: background 0.22s, color 0.22s, box-shadow 0.22s;
  background: var(--primary);
  color: #fff;
  box-shadow: var(--shadow-sm);
  min-width: 150px;
  text-align: center;
  text-decoration: none;
}
.cta-btn.primary {
  background: var(--primary);
  color: #fff;
}
.cta-btn.primary:hover, .cta-btn.primary:focus {
  background: var(--secondary);
  color: var(--primary);
  box-shadow: var(--shadow-md);
}
.cta-btn.secondary, .btn.secondary {
  background: var(--secondary);
  color: #fff;
}
.cta-btn.secondary:hover, .btn.secondary:focus {
  background: var(--primary);
  color: var(--secondary);
}

/* Flat-angled geometric button borders */
.cta-btn, .btn, .mobile-menu-close, .mobile-menu-toggle {
  border-radius: 7px 19px 7px 19px/13px 7px 13px 7px;
}

/* ===========================================================
   CARDS, GRIDS, FLEXBOX CONSISTENCY
   ======================================================== */
.card-container {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}
.card {
  background: #fff;
  border-radius: var(--border-radius);
  box-shadow: var(--shadow-md);
  padding: 32px 26px;
  margin-bottom: 20px;
  position: relative;
  min-width: 300px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  transition: box-shadow var(--transition), transform 0.24s;
}
.card:hover {
  box-shadow: 0 8px 36px 0 rgba(26,33,40,0.13);
  transform: translateY(-4px) scale(1.012);
}

.card-content {
  display: flex;
  flex-direction: column;
  gap: 16px;
  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;
}
@media (max-width: 768px) {
  .text-image-section {
    flex-direction: column;
    align-items: flex-start;
    gap: 18px;
  }
}
.feature-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
}

/* Feature grid (structured, geometric) */
.feature-grid, .benefit-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  align-items: stretch;
}
.feature-grid li, .benefit-grid li {
  background: #F2F2F2;
  border-radius: 14px 30px 14px 30px;
  box-shadow: var(--shadow-sm);
  flex: 1 1 210px;
  min-width: 210px;
  padding: 30px 18px 22px 18px;
  margin-bottom: 20px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  align-items: flex-start;
  transition: box-shadow var(--transition);
}
.feature-grid li:hover, .benefit-grid li:hover {
  box-shadow: 0 8px 30px rgba(26,33,40,0.10);
}
.feature-grid img {
  height: 58px;
  width: 58px;
}

/* Testimonials - dark text, high contrast */
.testimonial-card {
  background: #fff;
  border-left: 7px solid var(--secondary);
  border-radius: 12px 28px 12px 28px;
  box-shadow: var(--shadow-sm);
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 20px 32px;
  font-size: 1.1rem;
  color: #1A2128;
  transition: box-shadow var(--transition);
}
.testimonial-card span {
  color: #B4975A;
  font-weight: 700;
  font-size: 0.98rem;
  letter-spacing: 0.03em;
}
@media (max-width: 768px) {
  .testimonial-card {
    flex-direction: column;
    gap: 8px;
    padding: 17px 12px;
    font-size: 1rem;
  }
}

/* Table Styling (properties listing etc) */
table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  background: #fff;
  box-shadow: var(--shadow-sm);
  border-radius: 10px 20px 10px 20px;
  margin-bottom: 28px;
}
th, td {
  padding: 13px 10px;
  text-align: left;
}
th {
  background: #1A2128;
  color: #fff;
  font-weight: 700;
  font-family: 'Noto Serif JP', serif;
  letter-spacing: 0.04em;
  font-size: 1rem;
}
td {
  border-bottom: 1px solid #ECECEC;
  background: #fff;
}
tr:last-child td {
  border-bottom: none;
}

/* ===========================================================
   SPACING & VISUAL HIERARCHY
   ======================================================== */
section, .section {
  margin-bottom: 60px;
  padding: 40px 20px;
}
@media (max-width: 900px) {
  .card-container, .content-grid, .feature-grid, .benefit-grid {
    gap: 16px;
  }
  section, .section {
    padding: 32px 4vw;
    margin-bottom: 36px;
  }
}
@media (max-width: 560px) {
  .card, .feature-grid li, .benefit-grid li {
    min-width: 140px;
    padding: 19px 8px 12px 8px;
  }
  .container {
    padding: 0 3vw;
  }
}

/* ===========================================================
   FORMS & INPUTS
   ======================================================== */
input, textarea, select {
  font-family: 'Noto Sans JP', Arial, sans-serif;
  font-size: 1rem;
  border: 1.5px solid #BDC3C7;
  border-radius: 8px;
  padding: 13px 12px;
  margin-bottom: 20px;
  background: #fff;
  transition: border 0.2s;
  width: 100%;
}
input:focus, textarea:focus, select:focus {
  border: 1.5px solid #B4975A;
  outline: none;
}
label {
  display: block;
  font-weight: 600;
  margin-bottom: 7px;
  color: #1A2128;
  font-size: 1rem;
}

/* ===========================================================
   FOOTER
   ======================================================== */
footer {
  background: #1A2128;
  color: #fff;
  padding: 38px 0 0 0;
}
footer .container {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 24px;
}
.footer-brand img {
  height: 46px;
  margin-bottom: 14px;
}
.footer-nav {
  display: flex;
  flex-direction: row;
  gap: 20px;
  flex-wrap: wrap;
  margin-bottom: 12px;
}
.footer-nav a {
  color: #fff;
  font-size: 1rem;
  font-weight: 500;
  border-radius: 0 16px 0 16px;
  padding: 6px 13px;
  transition: background 0.2s, color 0.22s;
}
.footer-nav a:hover, .footer-nav a:focus {
  background: #fff;
  color: #B4975A;
}
footer address {
  font-style: normal;
  color: #ECECEC;
  font-size: 0.98rem;
  line-height: 1.6;
  letter-spacing: 0.01em;
  margin-bottom: 0;
}
footer small {
  display: block;
  margin-top: 22px;
  color: #888;
  font-size: 0.92rem;
  letter-spacing: 0.01em;
}

/* ===========================================================
   COOKIE CONSENT BANNER & MODAL
   ======================================================== */
#cookie-banner, .cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100vw;
  background: #fff;
  color: #1A2128;
  box-shadow: 0 -4px 28px rgba(26,33,40,0.10);
  z-index: 1700;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
  padding: 24px 32px 22px 16px;
  font-size: 1rem;
  border-radius: 20px 20px 0 0;
  transition: transform 0.36s var(--transition), opacity 0.3s;
  opacity: 1;
  transform: translateY(0);
}
#cookie-banner.hide, .cookie-banner.hide {
  transform: translateY(110%);
  opacity: 0;
  pointer-events: none;
}
#cookie-banner .cookie-actions, .cookie-banner .cookie-actions {
  display: flex;
  flex-direction: row;
  gap: 18px;
  align-items: center;
}
#cookie-banner button, .cookie-banner button {
  font-size: 1rem;
  font-weight: 700;
  padding: 9px 18px;
  border-radius: 8px 20px 8px 20px;
  background: var(--secondary);
  color: #fff;
  border: none;
  transition: background 0.17s, color 0.15s, box-shadow 0.21s;
  margin-right: 0;
  box-shadow: var(--shadow-sm);
  cursor: pointer;
}
#cookie-banner button:focus, #cookie-banner button:hover,
.cookie-banner button:focus, .cookie-banner button:hover {
  background: var(--primary);
  color: var(--secondary);
}
#cookie-banner .settings-btn, .cookie-banner .settings-btn {
  background: #fff;
  color: #B4975A;
  border: 1.5px solid #B4975A;
}
#cookie-banner .settings-btn:hover, .cookie-banner .settings-btn:hover {
  background: #B4975A;
  color: #fff;
}
@media (max-width: 640px) {
  #cookie-banner, .cookie-banner {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
    padding: 16px 8px 14px 8px;
  }
}

.cookie-modal {
  position: fixed;
  z-index: 1800;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(26,33,40,0.18);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity 0.3s;
  opacity: 1;
}
.cookie-modal.hide {
  opacity: 0;
  pointer-events: none;
}
.cookie-modal-inner {
  background: #fff;
  border-radius: 24px;
  max-width: 440px;
  width: 95vw;
  padding: 36px 32px;
  box-shadow: var(--shadow-md);
  display: flex;
  flex-direction: column;
  gap: 22px;
  align-items: stretch;
}
.cookie-categories {
  display: flex;
  flex-direction: column;
  gap: 15px;
  margin-bottom: 18px;
}
.cookie-category-toggle {
  display: flex;
  align-items: center;
  gap: 14px;
}
.cookie-category-toggle label {
  font-weight: 600;
}
.cookie-category-toggle input[type="checkbox"] {
  appearance: none;
  width: 30px;
  height: 18px;
  background: #F2F2F2;
  border-radius: 14px;
  position: relative;
  outline: none;
  transition: background 0.17s;
  cursor: pointer;
  margin-right: 9px;
}
.cookie-category-toggle input[type="checkbox"]:checked {
  background: #B4975A;
}
.cookie-category-toggle input[type="checkbox"]:after {
  content: '';
  position: absolute;
  left: 2px;
  top: 2px;
  width: 14px; height: 14px;
  background: #fff;
  border-radius: 50%;
  transition: transform 0.19s;
}
.cookie-category-toggle input[type="checkbox"]:checked:after {
  transform: translateX(12px);
}
.cookie-modal-close {
  font-size: 1.32rem;
  border: none;
  background: none;
  color: #1A2128;
  position: absolute;
  top: 14px;
  right: 20px;
  cursor: pointer;
}
.cookie-modal-inner h2 {
  margin-bottom: 0;
}
@media (max-width: 560px) {
  .cookie-modal-inner {
    padding: 19px 5vw;
    min-width: 88vw;
  }
}

/* ===========================================================
   MEDIA QUERIES - RESPONSIVE
   ======================================================== */
@media (max-width: 1000px) {
  header .container {
    padding-left: 7vw;
    padding-right: 7vw;
  }
  .container {
    padding-left: 4vw;
    padding-right: 4vw;
  }
}
@media (max-width: 768px) {
  html {
    font-size: 15px;
  }
  h1 {
    font-size: 1.45rem;
  }
  h2 {
    font-size: 1.09rem;
    margin-bottom: 8px;
  }
  header img {
    height: 30px;
  }
  .lead {
    font-size: 1rem;
  }
}
@media (max-width: 560px) {
  .footer-nav {
    flex-direction: column;
    gap: 9px;
    text-align: center;
  }
  footer .container {
    gap: 13px;
  }
}

/* ===========================================================
   GEOMETRIC DECORATIONS (subtle angular underlines)
   ======================================================== */
h1:after, h2:after, h3:after {
  content: '';
  display: block;
  margin-top: 7px;
  width: 50px;
  height: 4px;
  background: linear-gradient(90deg, #B4975A 0 60%, transparent 100%);
  border-radius: 4px;
}
i, em {
  font-style: italic;
  letter-spacing: 0.05em;
}

/* ===========================================================
   UTILITY CLASSES & SPACING HELPERS
   ======================================================== */
.mb-0 { margin-bottom: 0 !important; }
.mb-12 { margin-bottom: 12px !important; }
.mb-16 { margin-bottom: 16px !important; }
.mb-20 { margin-bottom: 20px !important; }
.mb-24 { margin-bottom: 24px !important; }
.mb-36 { margin-bottom: 36px !important; }
.mt-20 { margin-top: 20px !important; }
.mt-36 { margin-top: 36px !important; }
.mt-48 { margin-top: 48px !important; }
.gap20 { gap: 20px !important; }
.gap24 { gap: 24px !important; }
.flex-row { display: flex; flex-direction: row; gap: 20px; }
.flex-col { display: flex; flex-direction: column; gap: 20px; }
align-center { align-items: center; }

/* ===========================================================
   MISCELLANEOUS
   ======================================================== */
::-webkit-input-placeholder {color: #B0B0B0;}
::-moz-placeholder {color: #B0B0B0;}
:-ms-input-placeholder {color: #B0B0B0;}
::placeholder {color: #B0B0B0;}

/* Remove blue highlight on buttons for iOS */
input, textarea, select, button, .cta-btn {
  -webkit-tap-highlight-color: transparent;
}

/* Prevent focus outlines except for keyboard users */
:focus:not(:focus-visible) {
  outline: none;
}
:focus-visible {
  outline: 2px solid #B4975A;
  outline-offset: 1px;
}

/* Hide main scroll when mobile menu/modal open (body.lock) */
body.lock {
  overflow: hidden;
}

/* Z-index layering */
header { z-index: 900; }
.mobile-menu { z-index: 1400; }
#cookie-banner, .cookie-banner { z-index: 1700; }
.cookie-modal { z-index: 1800; }

/* ===========================================================
   END OF STYLE.CSS
   ======================================================== */