/* --- CSS RESET & NORMALIZE --- */
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, 
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;
}
article,aside,details,figcaption,figure,
footer,header,hgroup,menu,nav,section {
  display: block;
}
body {
  line-height: 1.5;
  background: #FAFAFA;
  color: #222934;
  font-family: 'Yu Gothic', 'Noto Sans JP', sans-serif;
  min-height: 100vh;
  letter-spacing: 0.02em;
}
ul,ol {
  list-style: none;
}
a {
  text-decoration: none;
  color: inherit;
  transition: color 0.2s;
}
img {
  vertical-align: middle;
  max-width: 100%;
  height: auto;
}
button,input,select,textarea {
  font-family: inherit;
  border: none;
  outline: none;
  background: none;
  color: inherit;
  appearance: none;
}

/* --- FONT FACE --- */
@import url('https://fonts.googleapis.com/css2?family=Noto+Sans+JP:wght@400;700&display=swap');

/* --- COLORS --- */
:root {
  --color-primary: #222934;
  --color-secondary: #A88B5A;
  --color-accent: #F1F1F1;
  --color-bg: #FAFAFA;
  --color-white: #FFF;
  --color-grey: #C8C7C4;
  --color-border: #E2DED9;
  --color-text: #222934;
  --color-muted: #888;
  --shadow-card: 0 2px 12px 0 rgba(34,41,52,0.07);
}

/* --- TYPOGRAPHY SCALE --- */
h1 { font-family: 'Noto Sans JP', 'Yu Gothic', sans-serif; font-size: 2.5rem; font-weight: 700; margin-bottom: 20px; }
h2 { font-family: 'Noto Sans JP', 'Yu Gothic', sans-serif; font-size: 2rem; font-weight: 700; margin-bottom: 16px; }
h3 { font-family: 'Noto Sans JP', 'Yu Gothic', sans-serif; font-size: 1.25rem; font-weight: 600; margin-bottom: 12px; }
h4, h5, h6 { font-family: 'Noto Sans JP', 'Yu Gothic', sans-serif; font-weight: 600; }

p,li,span,div,ul,ol {
  font-family: 'Yu Gothic', 'Noto Sans JP', sans-serif;
  font-size: 1rem;
  color: var(--color-text);
}
strong { font-weight: 700; }

@media (max-width: 768px) {
  h1 { font-size: 1.75rem; }
  h2 { font-size: 1.25rem; }
  h3 { font-size: 1rem; }
}

/* --- CONTAINER & LAYOUT --- */
.container {
  width: 100%;
  max-width: 1080px;
  margin: 0 auto;
  padding: 0 20px;
  display: flex;
  flex-direction: column;
}
.content-wrapper {
  margin: 0 auto;
  width: 100%;
  max-width: 800px;
}

.section {
  margin-bottom: 60px;
  padding: 40px 20px;
  background: var(--color-white);
  border-radius: 18px;
  box-shadow: var(--shadow-card);
}

@media (max-width: 768px) {
  .section {
    padding: 24px 8px;
    margin-bottom: 38px;
    border-radius: 10px;
  }
  .container {
    padding: 0 6px;
  }
}

/* --- HEADER --- */
header {
  background: var(--color-white);
  box-shadow: 0 2px 8px 0 rgba(168,139,90,0.03);
  position: sticky;
  top: 0;
  width: 100%;
  z-index: 60;
}
header .container {
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: 72px;
}
header img {
  height: 42px;
}
header nav {
  display: flex;
  flex-direction: row;
  gap: 24px;
}
header nav a {
  font-size: 1rem;
  font-weight: 500;
  color: var(--color-text);
  padding: 8px 0;
  position: relative;
  transition: color 0.18s;
}
header nav a:hover,
header nav a:focus {
  color: var(--color-secondary);
}
.cta-btn {
  background: var(--color-secondary);
  color: var(--color-white);
  font-size: 1.06rem;
  font-weight: 700;
  border-radius: 30px;
  padding: 12px 34px;
  margin-left: 20px;
  box-shadow: 0 2px 10px 0 rgba(168,139,90,0.08);
  transition: background 0.18s, transform 0.18s, box-shadow 0.18s;
  cursor: pointer;
  display: inline-block;
}
.cta-btn:hover, .cta-btn:focus {
  background: #bfa366;
  transform: translateY(-2px) scale(1.04);
  box-shadow: 0 6px 24px 0 rgba(168,139,90,0.15);
}

/* --- MOBILE NAVIGATION --- */
.mobile-menu-toggle {
  display: none;
  position: fixed;
  top: 22px;
  right: 22px;
  background: var(--color-white);
  color: var(--color-secondary);
  font-size: 2.1rem;
  z-index: 110;
  border-radius: 50%;
  width: 44px;
  height: 44px;
  box-shadow: 0 2px 8px 0 rgba(168,139,90,0.13);
  border: 1px solid var(--color-border);
  align-items: center;
  justify-content: center;
  transition: box-shadow 0.2s, background 0.2s;
}
.mobile-menu-toggle:focus, .mobile-menu-toggle:hover {
  background: var(--color-accent);
  box-shadow: 0 6px 24px 0 rgba(168,139,90,0.18);
}

.mobile-menu {
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-items: flex-start;
  position: fixed;
  top: 0; left: 0;
  width: 100vw; height: 100vh;
  background: var(--color-white);
  z-index: 120;
  transform: translateX(100%);
  transition: transform 0.35s cubic-bezier(.65,0,.35,1);
  box-shadow: -10px 0 32px 0 rgba(34,41,52,0.12);
  padding: 32px 24px 24px 36px;
  gap: 24px;
}
.mobile-menu.open {
  transform: translateX(0);
}
.mobile-menu-close {
  align-self: flex-end;
  background: var(--color-accent);
  color: var(--color-primary);
  font-size: 2rem;
  border-radius: 50%;
  width: 42px;
  height: 42px;
  margin-bottom: 14px;
  border: 1px solid var(--color-border);
  box-shadow: 0 1px 8px 0 rgba(34,41,52,0.07);
  display: flex;
  align-items: center;
  justify-content: center;
}
.mobile-nav {
  display: flex;
  flex-direction: column;
  gap: 28px;
  width: 100%;
  padding-top: 16px;
}
.mobile-nav a {
  font-size: 1.15rem;
  font-weight: 600;
  color: var(--color-primary);
  padding: 12px 0;
  border-bottom: 1px solid var(--color-border);
  transition: color 0.16s;
}
.mobile-nav a:last-of-type { border-bottom: none; }
.mobile-nav a:hover, .mobile-nav a:focus {
  color: var(--color-secondary);
}

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

/* --- HERO SECTION --- */
.hero {
  background: linear-gradient(115deg,#faf8f4 78%,#ebe5da 100%);
  min-height: 340px;
  margin-bottom: 60px;
  display: flex;
  align-items: center;
  border-radius: 16px;
  box-shadow: 0 2px 16px 0 rgba(168,139,90,0.07);
}
.hero .container {
  flex-direction: row;
  justify-content: center;
  align-items: center;
  height: 100%;
  min-height: 280px;
}
.hero .content-wrapper {
  padding: 30px 0 30px 0;
  text-align: center;
}
.hero h1 {
  color: var(--color-primary);
  font-size: 2.1rem;
  margin-bottom: 18px;
}
.hero p {
  color: var(--color-secondary);
  font-size: 1.2rem;
  margin-bottom: 30px;
}

@media (max-width: 768px) {
  .hero {
    padding: 4px 0 !important;
    border-radius: 8px;
    min-height: 220px;
  }
  .hero .content-wrapper {
    padding: 16px 0;
  }
}

/* --- FLEXBOX UTILITIES --- */
.card-container {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}
.card {
  background: var(--color-white);
  box-shadow: var(--shadow-card);
  border-radius: 16px;
  margin-bottom: 20px;
  padding: 24px 20px;
  display: flex;
  flex-direction: column;
  position: relative;
  min-width: 260px;
  max-width: 360px;
}
.card-content {
  display: flex;
  flex-direction: column;
  justify-content: center;
  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;
}
@media (max-width: 768px) {
  .content-grid, .text-image-section {
    flex-direction: column;
    gap: 16px;
  }
}

.feature-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
  background: var(--color-accent);
  border-radius: 14px;
  padding: 15px 18px;
  margin-bottom: 16px;
  box-shadow: 0 1px 6px 0 rgba(168,139,90,0.045);
}
.features {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
}

/* --- TESTIMONIALS --- */
.testimonial-card {
  display: flex;
  align-items: center;
  gap: 20px;
  background: var(--color-accent);
  color: var(--color-primary);
  border-radius: 14px;
  padding: 20px;
  box-shadow: 0 2px 12px rgba(34,41,52,0.07);
  margin-bottom: 20px;
  font-size: 1.01rem;
  flex-direction: column;
  min-width: 200px;
  max-width: 600px;
}
.testimonial-card p {
  color: var(--color-primary);
  font-size: 1.09rem;
  line-height: 1.7;
  margin-bottom: 6px;
  text-align: left;
}
.testimonial-card span {
  font-size: 0.92rem;
  color: var(--color-secondary);
  align-self: flex-start;
  margin-top: 6px;
}

/* --- BUTTONS & INTERACTIVE --- */
button, .button {
  font-family: inherit;
  font-size: 1rem;
  border-radius: 24px;
  padding: 10px 32px;
  background: var(--color-secondary);
  color: var(--color-white);
  cursor: pointer;
  border: none;
  transition: background 0.16s, box-shadow 0.18s, transform 0.16s;
}
button:hover, .button:hover, button:focus, .button:focus {
  background: #bfa366;
  transform: translateY(-2px) scale(1.03);
  box-shadow: 0 4px 16px 0 rgba(168,139,90,0.16);
}

/* --- LISTS --- */
ul, ol {
  margin-bottom: 16px;
  margin-left: 18px;
}
ul li, ol li {
  margin-bottom: 10px;
  line-height: 1.8;
}
ul li::marker, ol li::marker {
  color: var(--color-secondary);
  font-weight: bold;
}

/* --- FOOTER --- */
footer {
  background: var(--color-white);
  border-top: 1px solid var(--color-border);
  padding: 28px 0 14px 0;
  box-shadow: 0 -2px 6px rgba(34,41,52,0.05);
}
footer .container {
  flex-direction: row;
  align-items: flex-start;
  justify-content: space-between;
  gap: 32px;
}
.footer-brand img {
  height: 44px;
  margin-bottom: 18px;
}
.footer-contact {
  display: flex;
  flex-direction: column;
  gap: 8px;
  font-size: 0.98rem;
  color: var(--color-muted);
}
.footer-nav {
  display: flex;
  gap: 20px;
  flex-direction: column;
  min-width: 180px;
}
.footer-nav a {
  color: var(--color-text);
  font-size: 0.97rem;
  border-bottom: 1px solid var(--color-border);
  padding-bottom: 6px;
  margin-bottom: 2px;
  transition: color 0.14s;
}
.footer-nav a:hover, .footer-nav a:focus {
  color: var(--color-secondary);
}
@media (max-width: 900px) {
  footer .container {
    flex-direction: column;
    gap: 18px;
    align-items: flex-start;
  }
  .footer-nav {
    flex-direction: row;
    flex-wrap: wrap;
    gap: 14px;
  }
  .footer-brand img {
    margin-bottom: 10px;
    height: 36px;
  }
}

/* --- COOKIE CONSENT BANNER --- */
.cookie-banner {
  position: fixed;
  left: 0; bottom: 0;
  width: 100vw;
  z-index: 300;
  background: var(--color-white);
  box-shadow: 0 -2px 16px 0 rgba(168,139,90,0.12);
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: center;
  gap: 24px;
  padding: 18px 16px;
  border-top-left-radius: 18px;
  border-top-right-radius: 18px;
  transition: transform 0.25s;
}
.cookie-banner.hide {
  transform: translateY(100%);
}
.cookie-banner__message {
  font-size: 0.98rem;
  color: var(--color-primary);
  max-width: 500px;
}
.cookie-banner__btns {
  display: flex;
  gap: 14px;
}
.cookie-banner button,
.cookie-banner .cookie-settings-btn {
  padding: 7px 20px;
  border-radius: 22px;
  font-size: 1rem;
  font-weight: 500;
  transition: background 0.14s, color 0.12s;
  border: 1px solid var(--color-secondary);
}
.cookie-banner .accept {
  background: var(--color-secondary);
  color: var(--color-white);
  border: 1px solid var(--color-secondary);
}
.cookie-banner .accept:hover, .cookie-banner .accept:focus {
  background: #bfa366;
}
.cookie-banner .reject {
  background: var(--color-white);
  color: var(--color-secondary);
}
.cookie-banner .reject:hover, .cookie-banner .reject:focus {
  background: var(--color-accent);
  color: #8c7239;
}
.cookie-banner .cookie-settings-btn {
  background: var(--color-accent);
  color: var(--color-secondary);
  border: 1px solid var(--color-secondary);
}
.cookie-banner .cookie-settings-btn:hover, .cookie-banner .cookie-settings-btn:focus {
  color: #8c7239;
  background: #f7f5f2;
}

@media (max-width: 568px) {
  .cookie-banner {
    flex-direction: column;
    gap: 8px;
    padding: 16px 4px 16px 4px;
  }
}

/* --- COOKIE SETTINGS MODAL --- */
.cookie-modal {
  position: fixed;
  left: 0; top: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(34,41,52,0.23);
  z-index: 310;
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.23s;
}
.cookie-modal.open {
  pointer-events: auto;
  opacity: 1;
}
.cookie-modal__content {
  background: var(--color-white);
  border-radius: 18px;
  box-shadow: 0 6px 24px 0 rgba(34,41,52,0.15);
  padding: 32px 28px 26px 28px;
  min-width: 320px;
  max-width: 90vw;
  display: flex;
  flex-direction: column;
}
.cookie-modal h2 {
  color: var(--color-secondary);
  font-size: 1.3rem;
  margin-bottom: 18px;
}
.cookie-modal__categories {
  margin-bottom: 26px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.cookie-category-row {
  display: flex;
  flex-direction: row;
  gap: 18px;
  align-items: center;
  justify-content: flex-start;
}
.cookie-category-row label {
  font-size: 1rem;
  color: var(--color-primary);
}
.cookie-category-row input[type="checkbox"] {
  accent-color: var(--color-secondary);
  width: 20px; height: 20px;
  margin-right: 7px;
}
.cookie-category-row .always-on {
  color: var(--color-muted);
}
.cookie-modal__actions {
  display: flex;
  gap: 16px;
  justify-content: flex-end;
}
.cookie-modal button {
  padding: 7px 22px;
  border-radius: 22px;
  font-size: 1rem;
  font-weight: 500;
  border: 1px solid var(--color-secondary);
}
.cookie-modal .save {
  background: var(--color-secondary);
  color: var(--color-white);
  border: 1px solid var(--color-secondary);
}
.cookie-modal .cancel {
  background: var(--color-accent);
  color: var(--color-secondary);
  border: 1px solid var(--color-secondary);
}
@media (max-width: 568px) {
  .cookie-modal__content {
    padding: 15px 8px 15px 8px;
    min-width: 0;
  }
}

/* --- FORMS --- */
input[type="text"], input[type="email"], textarea {
  width: 100%;
  background: var(--color-accent);
  border: 1px solid var(--color-border);
  border-radius: 8px;
  padding: 12px 16px;
  margin-bottom: 18px;
  font-size: 1rem;
  color: var(--color-primary);
  transition: border 0.13s, background 0.12s;
}
input[type="text"]:focus, input[type="email"]:focus, textarea:focus {
  border: 1.5px solid var(--color-secondary);
  background: #f8f7f5;
}
label {
  font-size: 1rem;
  color: var(--color-secondary);
  font-weight: 500;
  margin-bottom: 7px;
  display: block;
}

/* --- SPACING AND DIVIDERS --- */
.section + .section {
  margin-top: 12px;
}
.card + .card {
  margin-left: 0;
  margin-top: 20px;
}

hr {
  border: 0;
  border-top: 1px solid var(--color-border);
  margin: 24px 0;
}

/* --- TABLES (for policy pages etc.) --- */
table {
  width: 100%;
  border-spacing: 0;
  border-collapse: collapse;
  margin-bottom: 24px;
}
thead th {
  background: var(--color-accent);
  color: var(--color-primary);
  font-weight: bold;
  padding: 10px 14px;
}
tbody td {
  border-bottom: 1px solid var(--color-border);
  padding: 10px 14px;
}

/* --- CONTACT INFO ICONS (SVG) --- */
div[class*='contact'] img,
li img {
  margin-right: 7px;
  height: 1.15em;
}

/* --- MISC & MICRO-INTERACTIONS --- */
.section,.card,.testimonial-card,footer,.cookie-banner,.cookie-modal__content {
  transition: box-shadow 0.16s, background 0.16s;
}
.section:hover, .card:hover, .testimonial-card:hover {
  box-shadow: 0 4px 24px 0 rgba(168,139,90,0.12);
}
input:disabled, select:disabled, textarea:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

/* --- ACCESSIBILITY & HIDDEN --- */
[aria-label], .visually-hidden {
  position: absolute !important;
  left: -9999px !important;
  width: 1px; height: 1px;
  overflow: hidden;
}

/* --- UTILITIES --- */
.text-center { text-align: center; }
.text-left { text-align: left; }
.text-right { text-align: right; }
.mt20 { margin-top: 20px; }
.mb20 { margin-bottom: 20px; }
.mb40 { margin-bottom: 40px; }

/* --- FOCUS RING --- */
a:focus, button:focus, .cta-btn:focus, input:focus, select:focus {
  outline: 2.5px solid var(--color-secondary);
  outline-offset: 2.5px;
}

/* --- RESPONSIVE --- */
@media (max-width: 900px) {
  .container, .content-wrapper {
    max-width: 100%;
  }
}
@media (max-width: 768px) {
  .footer-contact span {
    font-size: 0.88rem;
  }
  .testimonial-card {
    font-size: 0.95rem;
    padding: 14px 9px;
  }
  .card {
    padding: 14px 10px;
  }
}
@media (max-width: 520px) {
  .section, .hero, footer {
    margin-bottom: 18px !important;
    border-radius: 6px;
  }
}

/* --- END --- */
