/* ==================================================
ROOT / RESET
================================================== */
:root {
  /* Base UI */
  --bg: #fff;
  --text: #2a2d2f;

  /* Primary / actions */
  --formblock-color: #0d47a1;
  --formblock-color-invert: #fff;

  /* Form feedback (used sparingly) */
  --formblock-message-bg: #e5e7eb;        /* neutral grey */
  --formblock-message-text: #111827;      /* readable dark text */
  --formblock-message-error: #7f1d1d;     /* muted red */
  --formblock-message-success: #065f46;   /* muted green */
}

*, *::before, *::after {
  box-sizing: border-box;
}

html,
body {
  height: 100%;
  margin: 0;
  padding: 0;
  font-family: system-ui, -apple-system, "Segoe UI", Roboto,
    "Helvetica Neue", "Noto Sans", "Apple Color Emoji",
    "Segoe UI Emoji", sans-serif;
  line-height: 1.6;
  color: var(--text);
  background: var(--bg);
}

.wrapper {
  min-height: 100%;
  display: flex;
  flex-direction: column;
}

/* ==================================================
SITEWIDE PRIMITIVES
================================================== */
.inner {
  width: 90%;
  margin: 0 auto;
  text-align: left;
}

h1,
h2,
h3 {
  color: #000;
  line-height: 1.2;
}

a {
  color: #2a2d2f;
  text-decoration: underline;
}

a:hover,
a:focus {
  color: #000;
  text-decoration: none;
}

main {
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

/* ==================================================
HEADER and SHARED BASE
================================================== */
header {
  display: flex;
  flex-direction: column;
  background-color: #004f71;
  color: #fff;
  padding-top: 2em;
}

header .inner {
  display: flex;
  flex-direction: column;
}

/* ==================================================
HOME HEADER
================================================== */
header .text {
  width: 100%;
  text-align: left;
}

header .text h1,
header .text h2 {
  color: #fff;
  line-height: 1.2;
}

header .text h2 {
  line-height: 1.6;
}

 header .media {
  display: flex;
  justify-content: center;
  width: 100%;
}


header .media img {
  max-width: 90%;
  height: auto;
}

/* ==================================================
HOME SECTIONS
================================================== */
section.how {
  background-color: #fff;
  text-align: center;
  padding: 2em 0;
}

section.why {
  margin-bottom: 2em;
}

p.feature {
  background-color: #ffd100;
  padding: 1.25em;
  font-size: 1.2rem;
  border-radius: 10px;
}

section.where {
  padding-bottom: 3em;
}

.gallery {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 3em;
  padding-top: 2em;
}

.gallery img {
  height: 75px;
  width: auto;
  max-width: 100%;
}



/* --------------------------------------------------
How section
-------------------------------------------------- */
section.how .container {
  display: flex;
  flex-direction: column;
  gap: 2em;
}

section.how .media img {
  width: 100%;
  height: auto;
  max-width: 480px;
  margin: 0 auto;
  display: block;
}


.guide-divider {
  border: none;
  border-top: 1px solid  #cbcfd2;
  margin: 2.5em 0;
}



/* ==================================================
Home form and guides form (shared)
================================================== */
section.form {
  background-color: #cfd4d7;
  padding: 2em 0;
}


.formblock {
max-width: 100%;
}








.formblock__submit {
width: 100%;
margin-left: auto;
margin-right: auto;
}


.formblock__submit input[type="submit"] {
  width: 100%;
  background-color: #004f71;
  color: #fff;
  padding: 0.5em;
  border: none;
  border-radius: 5px;
  cursor: pointer;
  font-size: 1.2rem;
}










/* ==================================================
FAQ
================================================== */
section.faq {
  padding-bottom: 2em;
}

.faq-list details {
  border-bottom: 1px solid #e5e5e5;
  padding: 0.6rem 0;
}

.faq-answer img {
  max-width: 420px;
  width: 100%;
  height: auto;
}

/* ==================================================
CTA
================================================== */
section.cta {
  background-color: #2a2d2f;
  color: #fff;
  padding: 2em 0;
}

.cta-button {
  display: flex;
  justify-content: center;
  align-items: center;
  height: 70px;
  background-color: #004f71;
  color: #fff;
  border-radius: 0.25em;
}

/* ==================================================
FOOTER
================================================== */
footer {
  background-color: #000;
  color: #fff;
  padding: 2em 0;
  text-align: center;
}










/* ==================================================
STANDALONE GUIDE PAGES
================================================== */

/* Light page background */
#guide {
background-color: #f7f7f7;
}


/* Guide brand bar */

.guide-brand {
background-color: #000;
padding: 0.75em 0;
}

.guide-brand .inner {
display: flex;
justify-content: center;
}


.guide-brand img {
max-height: 50px;
width: auto;
}


/* Guide header */

#guide-header {
padding-bottom: 2em;
}

#guide-header .inner {
display: flex;
flex-direction: column;
align-items: center;
gap: 0.75em;
text-align: center;
}

/* Logo first on mobile
#guide-header .media {
order: -1;
}*/



/* Header type */
#guide-header h1 {
font-size: 2rem;
line-height: 1.25;
max-width: 40rem;
margin: 0;
color: #fff;
}

#guide-header p {
font-size: 1.1rem;
max-width: 44rem;
margin: 0;
color: #fff;
}



#guide-header .inner {
align-items: center !important;
text-align: center !important;
}

/* Guide content */

.guide-content {
  margin-bottom: 2rem
}

.guide-content .inner {
  display: flex;
  flex-direction: column;
}

.guide-content figure {
  align-self: center;
  width: 100%;
  max-width: 42rem;
  margin: 2em 0;
}

.guide-content img {
  display: block;
  width: 100%;
  height: auto;
}



/* Guide downloads */

.guide-downloads {
  margin-top: 2.5em;
}

.downloads-list {
  list-style: none;
  padding: 0;
  margin: 1em 0 0;
}

.downloads-list__item + .downloads-list__item {
  margin-top: 1.25em;
}

.downloads-list__item a {
  text-decoration: underline;
}

.downloads-list__meta {
  font-size: 0.95em;
  color: #555;
  margin-top: 0.25em;
}

.downloads-list__filename {
  font-size: 0.85em;
  color: #777;
}



/* Guide faq */
.guide-faq {
  /* margin-top: 2.5em; */
}

.faq-list {
  margin-top: 1em;
}

.faq-item {
  border-bottom: 1px solid #e5e5e5;
  padding: 0.75em 0;
}

.faq-question {
  cursor: pointer;
  font-weight: 500;
  list-style: none;
}

.faq-question::-webkit-details-marker {
  display: none;
}

.faq-question::after {
  content: "＋";
  float: right;
}

.faq-item[open] .faq-question::after {
  content: "−";
}

.faq-answer {
  margin-top: 0.75em;
}



/* Guide form */

.guide-form .formblock {
max-width: 100%;
}


.guide-form .formblock__submit {
width: 100%;
margin-left: auto;
margin-right: auto;
}


.guide-form .formblock__submit input[type="submit"] {
  width: 100%;
  background-color: #004f71;
  color: #fff;
  padding: 0.5em;
  border: none;
  border-radius: 5px;
  cursor: pointer;
  font-size: 1.2rem;
}









/* ==============
DESKTOP (¥768px)
========= */

@media (min-width: 768px) {

  .inner { width: 960px; }

  /* Home - Header */
  header .inner {
    flex-direction: row;
    justify-content: space-between;
  }

  header .text { width: 40%; }
  header .media {
    width: 55%;
    justify-content: flex-end;
  }


  /* Home – How section */
    section.how .container {
      flex-direction: row;
      align-items: center;
      justify-content: space-between;
    }

    section.how .text {
      width: 50%;
      text-align: left; /* undo section.how text-align: center */
    }

    section.how .media {
      width: 45%;
    }



 /* Guide header */

  #guide-header .inner {
    flex-direction: column;
    align-items: flex-start;
    text-align: left;
  }

  #guide-header .media {
    order: -1;                     /* optional: keep logo top */
    width: auto;                   /* undo home widths */
    justify-content: flex-start;
  }

  #guide-header .text {
    width: auto;
    max-width: 42rem;
  }


 /* Guide content */

  .guide-content figure {
      max-width: 100%;
    }



}








/* ==================================================
Form Block Suite – force neutral message colours
(Overrides inline styles on guide forms)
================================================== */

/* Error message */
.formblock__message--error[data-form="form_error"] {
  background-color: var(--formblock-message-bg) !important;
  color: var(--formblock-message-text) !important;
  border-left: 4px solid var(--formblock-message-error);
}

/* Success message */
.formblock__message--success[data-form="form_success"] {
  background-color: var(--formblock-message-bg) !important;
  color: var(--formblock-message-text) !important;
  border-left: 4px solid var(--formblock-message-success);
}

/* Inner elements (plugin sets white text inline) */
.formblock__message--error[data-form="form_error"] *,
.formblock__message--success[data-form="form_success"] * {
  color: inherit !important;
}



















