/**
 * Shared runtime base styles for the WordPress-rendered GMS pages.
 * This replaces the Nuxt/STUDIO shell CSS that used to provide resets,
 * design tokens, section primitives, and rich text defaults.
 */

:root {
  --s-color-6595484e: #008c38ff;
  --s-color-8897df8b: #f6f9f7ff;
  --s-color-4ca84ddd: rgb(35, 36, 35);
  --s-color-8ba294d6: #ffffffff;
  --s-color-cb91d554: #0060d4ff;
  --s-color-dcb932e9: #ffc824ff;
  --s-color-f9a7d6c3: #d7d7d7;
  --s-color-16b7a353: #e9f3e9ff;
  --s-color-8b8a5527: #cce8d7ff;
  --s-color-3cacf2d9: #99d1afff;
  --s-color-b3a08508: #66ba88ff;
  --s-color-d48b38aa: #33a360ff;
  --s-font-6ea6ae5f: Lato;
  --s-font-3ea0b637: Roboto;
  --s-font-e3ba526d: Montserrat;
  --s-font-37a086f4: 'ゴシックMB101 B JIS2004';
  --s-font-b7b51ded: 'Noto Sans JP';
  --s-font-bbacfbda: '凸版文久明朝 R JIS2004';
  --s-font-17a4a391: 'Source Serif Pro';
  --s-font-0b906728: 'Libre Baskerville';
  --s-font-15b9af0f: 'ゴシックMB101 M JIS2004';
  --s-font-c1a2ec16: Poppins;
  --s-font-a288a1fc: 'ゴシックMB101 DB JIS2004';
  --s-font-3794673c: 'Helvetica Now Display';
  --s-font-04b4e6e1: 'A1ゴシック B JIS2004';
  --s-font-57a32639: Barlow;
  --s-font-4d92b1fc: 'ゴシックMB101 R JIS2004';
  --s-font-e18a77da: 'Open Sans';
  --s-font-8a9e1ba6: 見出ゴMB1;

  /* セマンティック カラートークン */
  --gms-color-green-dark: #006e2c;
  --gms-color-tag-bg: #eef7ff;
  --gms-color-tag-text: #1678ba;
  --gms-color-muted: #868686;
  --gms-color-gray-light: #eeeeee;
  --gms-color-gray-lighter: #f5f5f5;
  --gms-color-accent-pink: #e91e63;
  --gms-color-cta-cyan: #00bcd4;
  --gms-color-cta-line: #06c755;
}

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

html {
  margin: 0;
  padding: 0;
}

body {
  margin: 0;
  min-width: 320px;
  color: var(--s-color-4ca84ddd);
  font-family: var(--s-font-b7b51ded), sans-serif;
  line-height: 1.5;
  background: var(--s-color-8ba294d6);
  overflow-x: hidden;
}

a {
  color: inherit;
  text-decoration: none;
  -webkit-tap-highlight-color: rgba(0, 0, 0, 0.15);
}

button,
input,
select,
textarea {
  color: inherit;
  font: inherit;
}

button {
  margin: 0;
  border: 0;
  background: transparent;
  cursor: pointer;
}

img,
svg,
video {
  display: block;
  max-width: 100%;
  height: auto;
}

figure,
blockquote,
dl,
dd,
h1,
h2,
h3,
h4,
h5,
h6,
hr,
p,
pre,
ul,
ol {
  margin: 0;
}

ul,
ol {
  padding: 0;
  list-style: none;
}

.page-gms {
  width: 100%;
  min-height: 100dvh;
  background: var(--s-color-8ba294d6);
}

.page-gms__content {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
  min-height: 100dvh;
}

.gms-visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.section {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
  max-width: 100%;
  padding: 0;
}

.section-inner {
  position: static;
  width: 100%;
  max-width: 100%;
}

.material-icons {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: 'Material Icons';
  font-size: 24px;
  font-style: normal;
  font-weight: 400;
  line-height: 1;
  letter-spacing: normal;
  white-space: nowrap;
  direction: ltr;
  text-transform: none;
  word-wrap: normal;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

.richText {
  display: block;
  word-break: break-word;
}

.richText > * + * {
  margin-top: 1em;
}

.richText img,
.richText video {
  max-width: 100%;
  height: auto;
}

.richText ul,
.richText ol {
  margin-left: 20px;
  padding-left: 0;
}

.richText ul {
  list-style: disc;
}

.richText ol {
  list-style: decimal;
}

.richText li {
  margin: 10px 0;
}

.richText li p,
.richText table tr td p,
.richText table tr th p {
  margin: 0;
}

.richText a {
  color: #007cff;
  text-decoration: underline;
}

.richText blockquote {
  margin: 20px 0;
  padding: 10px 15px;
  border-left: 3px solid rgba(0, 0, 0, 0.15);
  font-style: italic;
}

.richText p > code {
  display: inline;
  margin: 2px;
  padding: 0 5px;
  border: 1px solid rgba(0, 0, 0, 0.1);
  border-radius: 6px;
  background: #eee;
}

.richText pre {
  margin: 20px 0;
  padding: 25px 35px;
  border-radius: 6px;
  background: #eee;
  font-family: Menlo, Monaco, 'Courier New', monospace;
  white-space: pre-wrap;
}

.richText pre code {
  border: 0;
  padding: 0;
  background: transparent;
}

.richText table {
  width: 100%;
  border: 1px solid #f2f2f2;
  border-collapse: collapse;
  border-spacing: 0;
  color: #1a1a1a;
  font-size: 14px;
  line-height: 1.4;
  table-layout: auto;
}

.richText table tr th {
  background: hsla(0, 0%, 96%, 0.5);
}

.richText table tr td,
.richText table tr th {
  min-width: 100px;
  max-width: 240px;
  padding: 12px;
  border: 1px solid #f2f2f2;
}
