/* Spot.css */
/* ==== ROOT VARIABLES ==== */
:root {
  --link: #6900ff;
  --link-hover: #5600d1;
  --link-visited: #5a31a6;
  --link-active: #4a00b8;
  --focus-ring: #ffbf00;

  --brand-bg: #444;         /* Brand bar background */
  --intro-bg: #d3d3d3;      /* Intro section background */
  --main-bg: #fff;          /* Main content background */
  --footer-bg: #111;        /* Footer background */

  --h1-color: #0055aa;
  --intro-text-color: #333;
  --h2h3-color: #0055aa;

 /* Buttons / forms / focus */
  --formblock-color: #0078d7; /* base (same as Visit button) */
  --formblock-color-invert: #fff; /* text on button */
  --formblock-color-error: #da7474; /* error message bg */
  --formblock-color-success: #9cb7d1; /* success message bg */
  --focus-ring: #ffbf00;

}

/* ==== GLOBAL RESET & BASE ==== */
* { box-sizing: inherit; }

html, body {
  box-sizing: border-box;
  height: 100%;
  padding: 0;
  margin: 0;
}

body {
  font-family: "Noto Sans JP", system-ui, -apple-system, "Hiragino Kaku Gothic ProN", "Hiragino Sans", "Yu Gothic", YuGothic, Meiryo, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  font-weight: 400;
  color: #333333;
  font-size: 100%;
  line-height: 160%;
  background-color: var(--main-bg);
}




/* ==== LAYOUT WRAPPER ==== */
.wrapper {
  min-height: 100%;
  display: flex;
  flex-direction: column;
}



/* ==== sample page disclaimer ==== */
.sample-page-disclaimer {
  /* margin-top: 1rem; */
  /* margin-bottom: 1rem; */
  padding-left: 1rem;
  padding-right: 1rem;
  /* padding: .875rem 1rem; */
  /* border: 1px solid rgba(0,0,0,.12); */
  /* border-radius: .5rem; */
  background: #fafafa;
  color: #444;
  font-size: .875rem;
  line-height: 1.5;
  text-align: center
}

.sample-page-disclaimer p{
  margin-left: 0;
  margin-right: 0;
  margin-top: 0.5em;
  margin-bottom: 0.5em;

}

/* dark mode */
@media (prefers-color-scheme: dark) {
  .sample-page-disclaimer {
    background: #1f1f1f;
    border-color: rgba(255,255,255,.15);
    color: #ddd;
  }
}




/* ==== NAVIGATION ==== */
nav {
  width: 100%;
  display: flex;
  justify-content: center;
  background-color: #1E2A38;
}
nav ul {
  display: flex;
  justify-content: center;
  width: 90%;
  color: #fff;
  padding: 0;
  list-style: none;
  font-size: 80%;
}







/* ==== Language Toggle Link (Improved for Mobile) ==== */
nav li.language-toggle a,
nav li:not(.language-toggle) a {
  color: #fff;
  font-size: 1em;
  padding: 0.75em 1em;
  margin: 0.25em;
  border-radius: 6px;
  background-color: #2c3e50;
  text-decoration: none;
  transition: background-color 0.2s ease, text-decoration 0.2s ease;
}

nav li.language-toggle a:hover,
nav li.language-toggle a:focus-visible,
nav li:not(.language-toggle) a:hover,
nav li:not(.language-toggle) a:focus-visible {
  background-color: #3d566e;
  text-decoration: underline;
  text-decoration-color: currentColor;
  text-underline-offset: 0.12em;
  outline: 2px solid var(--focus-ring);
  outline-offset: 2px;
}


nav .active {
  display: none;
}














/* ==== HEADER SECTIONS ==== */
header {
  width: 100%;
  display: flex;
  flex-direction: column;
  background-color: transparent;
}
#page-brand {
  width: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  background-color: var(--brand-bg);
}
#page-brand img {
  max-width: 100%;
  height: auto;
  margin: 2em 0;
}
#page-intro {
  width: 100%;
  background-color: var(--intro-bg);
  display: flex;
  justify-content: center;
}
.page-intro-content {
  width: 90%;
  max-width: 700px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  text-align: center;
}
.page-intro-content h1 { margin-bottom: 0; }
.page-intro-content p {
  font-size: 130%;
  line-height: 160%;
  color: var(--intro-text-color);
}

/* ==== TYPOGRAPHY ==== */
h1 { font-size: 2.25em; line-height: 120%; font-weight: 900; }
h2 { font-size: 1.75em; line-height: 125%; font-weight: 700; }
h3 { font-size: 1.375em; line-height: 130%; font-weight: 700; }
p  { font-size: 1.125em; line-height: 150%; font-weight: 400; }
ul, ol { font-size: 1.125em; line-height: 150%; padding-left: 1.2em; }



h1 {
  color: var(--h1-color);
}

h2, h3 {
  color: var(--h2h3-color);
}





/* ==== MAIN CONTENT ==== */
main {
  background-color: var(--main-bg);
  width: 100%;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding-bottom: 1em
}
#page-blocks {
  display: flex;
  flex-direction: column;
  width: 90%;
  max-width: 700px;
  margin: 0 auto;
}




/* Main content links — white background */
main a,
#page-blocks a {
  color: var(--link);
  text-decoration: none;
  outline: none;
  transition: text-decoration 0.2s ease;
}

main a:hover,
main a:focus-visible,
#page-blocks a:hover,
#page-blocks a:focus-visible {
  text-decoration: underline;
  text-decoration-color: currentColor;
  text-underline-offset: 0.12em;
}






/* ==== BLOCKS ==== */




/* ==== Button block (base style, overrideable) ==== */
.block-type-button {
  display: flex;
  flex-direction: column;
  width: 100%;
  margin: 0 auto;
  padding-bottom: 0;
}

.block-type-button a.button,
.block-type-button a.custom-button-style {
  width: 100%;
  background-color: #ccc;
  padding: 1em 1.5em;
  text-align: center;
  display: block;
  font-weight: bold;
  font-size: 110%;
  border-radius: 4px;
  margin: 1em 0;
  text-decoration: none;
  transition: background-color 0.2s ease;
}

.block-type-button a.button:hover,
.block-type-button a.custom-button-style:hover {
  background-color: #bbb;
}

.block-type-button a.button:active,
.block-type-button a.custom-button-style:active {
  background-color: #aaa;
}
















.block-type-image {
  margin-bottom: 2em;
}
.block-type-image figure {
  display: flex;
  flex-direction: column;
  justify-content: center;
  margin: 0;
}
.block-type-image figure img {
  max-width: 100%;
  margin: 0 auto;
}
figcaption {
  text-align: center;
  padding-top: 0.5em;
  line-height: 130%;
}
.accordion details {
  border: 1px solid #666;
  border-radius: 4px;
  padding: 0.5em 0.5em 0;
  margin: 1em 0 0.5em 0;
}
.accordion summary {
  font-weight: bold;
  margin: -0.5em -0.5em 0;
  padding: 0.5em;
}
details[open] { padding: 0.5em; }
details[open] summary {
  border-bottom: 1px solid #666;
  margin-bottom: 0.5em;
}
.block-type-heading h2,
.block-type-heading h3 {
  line-height: 130%;
  text-align: left;
  margin-bottom: 0;
}
.block-type-text { text-align: left; }
.block-type-line hr { color: #8C8C8C; }
.block-type-video {
  margin: 1em 0;
}
.block-type-video figure {
  margin-block-start: 0.5em;
  margin-block-end: 0.5em;
  margin-inline-start: 0;
  margin-inline-end: 0;
}
.block-type-video iframe {
  aspect-ratio: 16 / 9;
  height: auto;
  width: 100%;
  border: none;
}

/* ==== FOOTER ==== */
footer {
  background-color: var(--footer-bg);
  width: 100%;
  display: flex;
  justify-content: center;
  flex-shrink: 0;
}
footer p {
  width: 90%;
  max-width: 700px;
  font-size: 80%;
  text-align: center;
}



/* Footer links — dark background */
footer a:link,
footer a:visited {
  color: #fff;
  text-decoration: none;
  transition: text-decoration 0.2s ease;
}

footer a:hover,
footer a:focus-visible {
  text-decoration: underline;
  text-decoration-color: currentColor;
  text-underline-offset: 0.12em;
}










/* ==== MEDIA QUERIES ==== */
@media only screen and (min-width: 618px) {
  nav ul { max-width: 700px; width: 100%; }
  .page-intro-content,
  #page-blocks,
  footer p { max-width: 700px; width: 100%; }
  .block-type-image figure img { max-width: 100%; }

  .formblock {
    max-width: 100%;
    width: 100% !important;
  }


}


/* ==== Language Toggle Link (Improved for Mobile) ==== */
nav li.language-toggle a {
  color: #fff;
  text-decoration: none;
  font-size: 1em;
  padding: 0.75em 1em;
  margin: 0.25em;
  border-radius: 6px;
  background-color: #2c3e50;
  transition: background-color 0.2s ease, text-decoration 0.2s ease;
}

nav li.language-toggle a:hover,
nav li.language-toggle a:focus-visible {
  background-color: #3d566e;
  text-decoration: underline;
  text-decoration-color: currentColor;
  text-underline-offset: 0.12em;
  outline: 2px solid var(--focus-ring);
  outline-offset: 2px;
}






/* ==== Form Block Suite styles ==== */
.formblock__submit {
  width: 100%;
  text-align: center;
  margin-left: 0;
  position: relative;
}
.formblock__submit input[type="submit"] {
  display: block;
  width: 100%;
  color: var(--formblock-color-invert, #fff);
  background-color: var(--formblock-color, #0078d7);
  text-decoration: none;
  text-align: center;
  font-size: 120%;
  font-weight: 700;
  /* padding: 1em; */
  padding: 0.6em 1em;
  border-radius: 4px;
  border: none;
  cursor: pointer;
  transition: background-color 0.3s ease;
  outline: none;
}
.formblock__submit input[type="submit"]:hover {
  background-color: #005a9e;
}
.formblock__submit input[type="submit"]:active {
  color: #fff;
}
.formblock__submit input[type="submit"]:focus-visible {
  outline: 2px solid var(--focus-ring, #ffbf00);
  outline-offset: 2px;
}
.formblock__message__text { text-align: center }
.formfield__input,
.formfield__textarea {
  border:3px solid #ebebeb
}



/* ==== Form Block Suite: Custom Radio Buttons ==== */
.formfield__option {
  margin-bottom: 0.75em;
}

.formfield__option__label {
  display: flex;
  align-items: center;
  font-size: 1em;
  cursor: pointer;
  position: relative;
  padding-left: 1.5em;
}

.formfield__radio {
  position: absolute;
  left: 0;
  top: 0.2em;
  width: 1em;
  height: 1em;
  opacity: 0;
  cursor: pointer;
}

.formfield__radio__check {
  position: absolute;
  left: 0;
  top: 0.2em;
  width: 1em;
  height: 1em;
  border: 2px solid #ccc;
  border-radius: 50%;
  background-color: #fff;
  transition: border-color 0.2s ease, background-color 0.2s ease;
}

.formfield__radio:checked + .formfield__radio__check {
  border-color: var(--formblock-color, #0078d7);
  background-color: var(--formblock-color, #0078d7);
}

.formfield__radio:focus-visible + .formfield__radio__check {
  outline: 2px solid var(--focus-ring, #ffbf00);
  outline-offset: 2px;
}








/* ==== Downloads block ==== */
.downloads__list { list-style: none; padding: 0; margin: 0; }
.downloads__item { margin: .5rem 0; }

.download__link {
  color: inherit;                 /* content links = inherit */
  text-decoration: underline;
  text-decoration-thickness: 1px; /* normal underline */
}
.download__link:hover {
  text-decoration-thickness: 2px; /* subtle hover emphasis */
}

.downloads__meta {
  color: #666;
  font-size: .9rem;
  margin-left: .5rem;
}




