/* 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;
}
html {
  height: 100%;
  font-size: 16px;
  color-scheme: light dark;
  scroll-behavior: smooth;
  -webkit-tap-highlight-color: transparent;
}
body {
  min-height: 100vh;
  background: #fff;
  color: #252B40;
  font-family: 'Noto Sans JP', 'Yu Gothic', YuGothic, 'Hiragino Kaku Gothic Pro', Meiryo, sans-serif;
  font-size: 16px;
  line-height: 1.8;
  letter-spacing: 0.02em;
  -webkit-font-smoothing: antialiased;
  background-color: #F5F5F5;
}
img, picture, video {
  max-width: 100%;
  height: auto;
  display: block;
}
ul, ol, li { list-style: none; }
a { color: inherit; text-decoration: none; transition: color 0.2s; }
button { font-family: inherit; border: none; background: none; cursor: pointer; }
input, textarea, select {
  font: inherit;
  color: inherit;
  border: none;
  background: none;
  outline: none;
}

/* BRAND COLORS & TYPE */
:root {
  --primary: #252B40;
  --secondary: #C1A46D;
  --accent: #F5F5F5;
  --text-main: #252B40;
  --text-muted: #555;
  --text-light: #fff;
  --surface: #fff;
  --border: #e0e0e0;
  --shadow: 0 2px 16px 0 rgba(37,43,64,0.06);
  --radius: 10px;
  --transition: 0.3s cubic-bezier(.4,0,.2,1);
  --font-display: 'Noto Serif JP', 'Yu Mincho', serif;
  --font-body: 'Noto Sans JP', 'Yu Gothic', YuGothic, 'Hiragino Kaku Gothic Pro', Meiryo, sans-serif;
}

/* BASE TYPOGRAPHY */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  color: var(--primary);
  font-weight: 700;
  letter-spacing: 0.015em;
  line-height: 1.22;
}
h1 { font-size: 2.6rem; margin-bottom: 18px; }
h2 { font-size: 2rem; margin-bottom: 14px; }
h3 { font-size: 1.4rem; margin-bottom: 12px; font-weight: 700; }
h4, h5, h6 { font-size: 1.12rem; font-weight: 600; }
p, li, dl, dt, dd { font-family: var(--font-body); font-size: 1rem; }
p {
  margin-bottom: 1em;
  color: var(--text-main);
}
strong { font-weight: 800; }
small { color: #999; }
blockquote {
  border-left: 3px solid var(--secondary);
  margin: 0 0 1.5em 0;
  padding: 0.8em 1.2em;
  font-style: italic;
  font-family: var(--font-display);
  background: #fff;
  color: var(--primary);
  box-shadow: 0 1px 4px rgba(37,43,64,.07);
  border-radius: 6px;
}

@media (max-width: 900px) {
  h1 { font-size: 2.1rem; }
  h2 { font-size: 1.47rem; }
  h3 { font-size: 1.05rem; }
}
@media (max-width: 600px) {
  h1 { font-size: 1.5rem; }
  h2 { font-size: 1.15rem; }
  h3 { font-size: 1rem; }
}

/* CONTAINER */
.container {
  width: 100%;
  max-width: 1080px;
  margin: 0 auto;
  padding: 0 20px;
  box-sizing: border-box;
}

/* SECTION SPACING AND FLEX LAYOUTS */
section {
  margin-bottom: 60px;
  padding: 40px 0;
  background: transparent;
}
@media (max-width: 768px) {
  section { padding: 32px 0; }
}

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

.content-wrapper {
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.text-section {
  background: #fff;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 32px 28px;
  margin-bottom: 24px;
}
.trust-badges {
  font-size: 1rem;
  color: var(--secondary);
  margin-top: 12px;
  letter-spacing: .08em;
  font-family: var(--font-display);
}

/* FLEXBOX LAYOUTS */
.features-grid, .card-container, .content-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}
@media (max-width: 768px) {
  .features-grid, .card-container, .content-grid {
    flex-direction: column;
    gap: 20px;
  }
}

.card-container { gap: 24px; }
.card { margin-bottom: 20px; position: relative; background: #fff; border-radius: var(--radius); box-shadow: var(--shadow); padding: 28px 24px; min-width: 220px; flex: 1 1 270px; display: flex; flex-direction: column; justify-content: flex-start; transition: box-shadow var(--transition), transform var(--transition); }
.card:hover {
  box-shadow: 0 4px 32px 0 rgba(37,43,64,0.13);
  transform: translateY(-4px) scale(1.015);
  z-index: 2;
}

.content-grid { 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;
}

/* HEADER & NAVBAR */
header {
  background: #fff;
  border-bottom: 2px solid var(--border);
  position: sticky;
  top: 0;
  left: 0;
  z-index: 1000;
}
header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 72px;
  gap: 18px;
  padding-top: 0;
  padding-bottom: 0;
}

.logo img {
  height: 44px;
  width: auto;
  display: block;
  filter: grayscale(1) contrast(1.15);
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 24px;
}
.main-nav a {
  font-family: var(--font-body);
  font-weight: 600;
  color: var(--primary);
  font-size: 1rem;
  position: relative;
  padding: 3px 3px;
  transition: color var(--transition);
}
.main-nav a:hover, .main-nav a:focus {
  color: var(--secondary);
}
.primary-cta {
  color: var(--text-light);
  background: var(--primary);
  padding: 12px 26px;
  border-radius: 32px;
  font-family: var(--font-display);
  font-weight: bold;
  font-size: 1.08rem;
  letter-spacing: .02em;
  box-shadow: 0 2px 8px rgba(37,43,64,.08);
  outline: none;
  border: none;
  transition: background var(--transition), box-shadow var(--transition);
  margin-left: 18px;
  display: inline-block;
}
.primary-cta:hover, .primary-cta:focus {
  background: var(--secondary);
  color: #fff;
  box-shadow: 0 8px 32px 0 rgba(193,164,109,0.14);
}

/* MOBILE MENU */
.mobile-menu-toggle {
  display: none;
  background: var(--primary);
  color: #fff;
  border-radius: 7px;
  font-size: 2rem;
  width: 44px;
  height: 44px;
  justify-content: center;
  align-items: center;
  transition: background var(--transition);
  z-index: 1201;
}
.mobile-menu-toggle:focus, .mobile-menu-toggle:hover {
  background: var(--secondary);
  color: var(--primary);
}

.mobile-menu {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(37,43,64,0.97);
  z-index: 1200;
  display: flex;
  flex-direction: column;
  transform: translateX(-100vw);
  transition: transform 0.35s cubic-bezier(.6,0,.6,1);
  pointer-events: none;
  opacity: 0;
}
.mobile-menu.active {
  transform: translateX(0);
  pointer-events: auto;
  opacity: 1;
}
.mobile-menu-close {
  align-self: flex-end;
  background: none;
  color: #fff;
  font-size: 2.2rem;
  margin: 24px 28px 0 0;
  border: none;
  cursor: pointer;
  transition: color 0.2s;
}
.mobile-menu-close:hover,.mobile-menu-close:focus { color: var(--secondary); }
.mobile-nav {
  display: flex;
  flex-direction: column;
  gap: 22px;
  align-items: flex-start;
  margin: 32px 0 0 36px;
}
.mobile-nav a {
  color: #fff;
  font-family: var(--font-body);
  font-size: 1.18rem;
  font-weight: 700;
  padding: 10px 0;
  border-bottom: 1px solid rgba(255,255,255,0.09);
  width: 90%;
  transition: color 0.2s, background 0.2s;
}
.mobile-nav a:hover, .mobile-nav a:focus {
  color: var(--secondary);
  background: rgba(193,164,109,0.11);
  border-radius: 4px;
}
/* Hide desktop nav/cta on mobile, show burger menu */
@media (max-width: 900px) {
  .main-nav { display: none; }
  .primary-cta { display: none; }
  .mobile-menu-toggle { display: flex; }
}
@media (min-width: 901px) {
  .mobile-menu { display: none !important; }
}

/* HERO BUTTONS/CTAs */
.cta-button, .filter-buttons a {
  display: inline-block;
  color: #fff;
  background: var(--primary);
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1rem;
  border: none;
  border-radius: 30px;
  outline: none;
  padding: 14px 34px;
  margin-top: 14px;
  margin-right: 10px;
  margin-bottom: 4px;
  box-shadow: 0 2px 10px 0 rgba(37,43,64,0.09);
  cursor: pointer;
  letter-spacing: .05em;
  transition: background-color var(--transition), box-shadow var(--transition), transform 0.13s;
}
.cta-button:hover, .filter-buttons a:hover, .cta-button:focus, .filter-buttons a:focus {
  background: var(--secondary);
  color: #fff;
  transform: translateY(-2px) scale(1.03);
}

/* FILTER BUTTONS: listings.html */
.filter-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 10px;
}
@media (max-width: 700px) {
  .filter-buttons { flex-direction: column; gap: 10px; }
}

/* FEATURES GRID */
.features-grid > div {
  background: #fff;
  border-radius: var(--radius);
  box-shadow: 0 2px 12px rgba(37,43,64,0.10);
  flex: 1 1 230px;
  min-width: 230px;
  padding: 30px 20px 25px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 10px;
  border-bottom: 2px solid var(--secondary);
  transition: box-shadow var(--transition), border-color var(--transition), transform 0.12s;
  margin-bottom: 20px;
}
.features-grid > div:hover, .features-grid > div:focus {
  box-shadow: 0 8px 28px 0 rgba(37,43,64,0.14);
  border-bottom: 2px solid var(--primary);
  transform: translateY(-3px) scale(1.015);
}
.features-grid img {
  height: 40px;
  width: 40px;
  margin-bottom: 4px;
  filter: grayscale(1) contrast(1.25);
}

/* TESTIMONIALS */
.testimonial-card {
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 20px;
  background: #fff;
  border-radius: var(--radius);
  box-shadow: 0 2px 14px rgba(37,43,64,0.10);
  margin-bottom: 20px;
  border-left: 6px solid var(--secondary);
  font-family: var(--font-body);
  color: var(--primary);
  max-width: 700px;
  transition: box-shadow var(--transition), border-color var(--transition);
}
.testimonial-card blockquote {
  border: none;
  background: none;
  color: var(--primary);
  font-size: 1.1rem;
  font-style: normal;
  margin-bottom: 0;
}
.testimonial-card p {
  margin-bottom: 0;
  font-size: 1rem;
  color: #555;
  font-family: var(--font-body);
}
.testimonial-card:hover, .testimonial-card:focus {
  box-shadow: 0 8px 32px 0 rgba(193,164,109,.11);
  border-left: 6px solid var(--primary);
}
@media (max-width: 650px) {
  .testimonial-card {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
    padding: 14px;
  }
  .testimonial-card blockquote { font-size: 1rem; }
}

/* CONTACT INFO */
.contact-info {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 24px;
}
.contact-info img { display: inline; vertical-align: middle; height: 23px; margin-right: 6px; }
.contact-info a.cta-button { margin-top: 8px; margin-bottom: 0; }

/* TABLES */
table {
  width: 100%;
  border-spacing: 0;
  border-collapse: collapse;
  background: #fff;
  margin: 24px 0;
  font-size: 1rem;
}
th, td {
  padding: 10px 18px;
  text-align: left;
  border-bottom: 1px solid var(--border);
}
th {
  background: #F5F5F5;
  font-family: var(--font-display);
  color: var(--primary);
  font-weight: 600;
}
tr:last-child th, tr:last-child td { border-bottom: none; }

/* DL for FAQ */
dl dt {
  font-family: var(--font-display);
  font-weight: bold;
  color: var(--primary);
  margin-top: 18px;
  margin-bottom: 8px;
}
dl dd {
  margin-bottom: 16px;
  margin-left: 0;
  color: #333;
  opacity: 0.95;
}

/* FOOTER */
footer {
  border-top: 2px solid var(--border);
  background: #fff;
  color: #333;
  padding-top: 34px;
  padding-bottom: 36px;
  font-size: 1rem;
}
footer .container {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
}
.footer-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  margin-bottom: 11px;
}
.footer-nav a {
  color: var(--primary);
  font-size: 1rem;
  font-family: var(--font-body);
  font-weight: 600;
  border-bottom: 1px solid transparent;
  transition: color 0.22s, border-bottom 0.13s;
}
.footer-nav a:hover, .footer-nav a:focus  {
  color: var(--secondary);
  border-bottom: 1px solid var(--secondary);
}
footer p, footer small {
  color: #555;
}
footer small {
  font-size: 0.94rem;
  color: #888;
}

/* COOKIE CONSENT BANNER */
.cookie-banner {
  position: fixed;
  left: 0;
  bottom: 0;
  width: 100vw;
  background: #fff;
  color: var(--primary);
  box-shadow: 0 -2px 24px 0 rgba(37,43,64,0.10);
  padding: 22px 30px 22px 20px;
  z-index: 1600;
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 18px;
  font-family: var(--font-body);
  font-size: 1rem;
  transition: transform 0.6s cubic-bezier(.69,0,.69,1);
}
.cookie-banner.hide {
  transform: translateY(120%);
  pointer-events: none;
  opacity: 0;
}
.cookie-banner__text {
  flex: 1;
  min-width: 120px;
}
.cookie-banner__actions {
  display: flex;
  flex-direction: row;
  gap: 14px;
}
.cookie-btn, .cookie-banner button {
  border: none;
  outline: none;
  padding: 10px 22px;
  border-radius: 22px;
  font-size: 1rem;
  font-family: var(--font-display);
  font-weight: 600;
  transition: background var(--transition), color var(--transition), box-shadow .18s;
  margin-right: 2px;
  cursor: pointer;
  background: var(--secondary);
  color: #fff;
  box-shadow: 0 2px 6px rgba(193,164,109,0.13);
}
.cookie-btn.settings {
  background: #fff;
  color: var(--primary);
  border: 1px solid var(--border);
}
.cookie-btn.accept {
  background: var(--secondary);
  color: #fff;
}
.cookie-btn.reject {
  background: #e6e6e6;
  color: var(--primary);
}
.cookie-btn:hover, .cookie-btn:focus {
  background: var(--primary);
  color: #fff;
}
.cookie-btn.settings:hover, .cookie-btn.settings:focus {
  background: #f7f7f7;
  color: var(--secondary);
}
@media (max-width: 580px) {
  .cookie-banner {
    flex-direction: column;
    align-items: flex-start;
    padding: 20px 10px 20px 10px;
    gap: 14px;
  }
  .cookie-banner__actions {
    width: 100%;
    justify-content: flex-start;
  }
}

/* COOKIE MODAL */
.cookie-modal-overlay {
  position: fixed; left:0; top:0; width:100vw; height:100vh;
  background: rgba(37,43,64,0.65);
  z-index: 1700;
  display: none; align-items: center; justify-content: center;
}
.cookie-modal-overlay.active { display: flex; }
.cookie-modal {
  background: #fff;
  color: var(--primary);
  border-radius: 16px;
  box-shadow: 0 8px 56px 0 rgba(37,43,64,0.30);
  padding: 36px 36px 32px 36px;
  max-width: 430px;
  width: 95vw;
  font-family: var(--font-body);
  font-size: 1.05rem;
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 20px;
  animation: fadeInModal .28s cubic-bezier(.74,0,.56,1);
}
@keyframes fadeInModal {
  from { opacity: 0; transform: translateY(40px) scale(0.99); }
  to { opacity: 1; transform: none; }
}
.cookie-modal .modal-header {
  font-family: var(--font-display);
  font-size: 1.28rem;
  font-weight: 700;
  letter-spacing: .04em;
  margin-bottom: 8px;
  color: var(--primary);
}
.cookie-modal .close-modal {
  position: absolute;
  right: 18px;
  top: 14px;
  font-size: 1.7rem;
  background: none;
  color: var(--primary);
  border: none;
  cursor: pointer;
  opacity: 0.65;
  transition: color .16s;
}
.cookie-modal .close-modal:hover, .cookie-modal .close-modal:focus {
  color: var(--secondary);
  opacity: 1;
}
.cookie-category {
  display: flex;
  align-items: center;
  gap: 18px;
  margin-bottom: 9px;
}
.cookie-category label {
  font-weight: bold;
  min-width: 125px;
  font-size: 1.03rem;
  color: var(--primary);
}
.cookie-category input[type="checkbox"] {
  accent-color: var(--secondary);
  width: 21px;
  height: 21px;
}
.cookie-category.essential label::after {
  content: "(必須)";
  color: #bbb;
  font-weight: normal;
  margin-left: 0.2em;
  font-size: 0.97rem;
}
.cookie-modal .modal-footer {
  display: flex;
  gap: 14px;
  margin-top: 4px;
  justify-content: flex-end;
}
.cookie-modal .modal-footer button {
  min-width: 120px;
}

/* LISTS & POINTS */
ul, ol {
  margin-left: 1.3em;
  margin-bottom: 1.2em;
  color: #333;
}
li {
  margin-bottom: 8px;
  position: relative;
  padding-left: 1em;
}
ul>li::before {
  content: '';
  display: inline-block;
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--secondary);
  position: absolute;
  left: 0; top: 10px;
}

ol { counter-reset: custom-counter; }
ol > li {
  list-style: none;
  counter-increment: custom-counter;
  padding-left: 1.2em;
}
ol > li:before {
  content: counter(custom-counter) ". ";
  color: var(--secondary);
  font-family: var(--font-display);
  margin-right: 3px;
}

/* REVIEW SUMMARIES */
.review-summaries {
  font-size: 1.05rem;
  color: #555;
  margin-top: 12px;
}

/* FORMS & INPUTS (for future-proofing) */
input, select, textarea {
  background: #fff;
  border: 1px solid var(--border);
  padding: 10px 15px;
  border-radius: 7px;
  font-size: 1rem;
  transition: border 0.14s;
}
input:focus, select:focus, textarea:focus {
  border-color: var(--secondary);
  outline: none;
}

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

hr {
  border: none;
  border-bottom: 1px solid var(--border);
  margin: 36px 0 24px;
}

/* Micro interactive transitions */
a, button, .card, .features-grid>div, .cta-button, .filter-buttons a, .cookie-btn, .mobile-menu-toggle {
  transition-property: color, background, box-shadow, border, transform, opacity;
  transition-duration: .18s;
  transition-timing-function: cubic-bezier(.49,.11,.41,1);
}

/* Hide unwanted focus outlines on mouse, show for keyboard only */
:focus:not(:focus-visible) {
  outline: none;
}
:focus-visible {
  outline: 2px solid var(--secondary);
  outline-offset: -1px;
}

/* Responsive: Section margin adjustments for small devices */
@media (max-width: 580px) {
  .container { padding-left: 9px; padding-right: 9px; }
  section, .section { padding-left: 0; padding-right: 0; }
  .text-section, .features-grid > div, .card { padding: 16px 10px; }
}


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

/* UTILITIES */
.mt-20 { margin-top: 20px !important; }
.mt-40 { margin-top: 40px !important; }
.mb-20 { margin-bottom: 20px !important; }
.mb-40 { margin-bottom: 40px !important; }
.text-center { text-align: center !important; }

/******************** END ******************/
