@charset "utf-8";*,::after,::before{box-sizing:border-box}body,dd,dl,figure,blockquote,h1,h2,h3,h4,p{margin:0}ol[class],ul[class]{list-style:none;padding:0}img,picture{max-width:100%;display:block}button,input,select,textarea{font:inherit}

/* =========================================================
   Variables (Design Tokens)
   1rem = 16px基準
========================================================= */
:root {
  --unit: 0.375rem;           /* --- Base Unit (6px) --- */
  --width-readable: 40.5rem;  /* 定義を追加 */

  /* --- Layout --- */
  --wrapper-xs:   clamp(15rem, 87vw, 18rem);    /* ~288px */
  --wrapper-sm:   clamp(15rem, 87vw, 27rem);    /* ~432px */
  --wrapper-md:   clamp(15rem, 87vw, 40.5rem);  /* ~648px */
  --wrapper-lg:   clamp(15rem, 87vw, 54rem);    /* ~864px */
  --wrapper-xl:   clamp(15rem, 87vw, 67.5rem);  /* ~1080px */
  --wrapper-xxl:  clamp(15rem, 87vw, 81rem);    /* ~1296x */
  --wrapper-xxxl: clamp(15rem, 87vw, 108rem);  /* ~1728px */
  --wrapper-fl: 100%;

  --space-xs:   calc(var(--unit) * 1); /* 6px  */
  --space-sm:   calc(var(--unit) * 2); /* 12px */
  --space-md:   calc(var(--unit) * 4); /* 24px */
  --space-lg:   calc(var(--unit) * 8); /* 48px */
  --space-xl:   calc(var(--unit) * 12);/* 72px */
  --space-xxl:  calc(var(--unit) * 20);/* 120px */

  /* --- Corner Radius --- */
  --radius-xs: 0.1875rem; /* 3px */
  --radius-sm: 0.375rem;  /* 6px */
  --radius-md: 0.75rem;   /* 12px */
  --radius-lg: 1.125rem;  /* 18px */
  --radius-full: 61.25rem;/* 980px */

  /*  */
  --font-main: "Inter", "Helvetica Neue", "Arial", "游ゴシック体", "Yu Gothic", "YuGothic", "Meiryo", sans-serif;
  /* 700 / 400 */

  /*--fs-xxl: clamp(2.25rem, 8vw, 3rem);   /* 36px ~ 48px */
  /*--fs-xl:  clamp(1.5rem, 6vw, 2.25rem); /* 24px ~ 36px */
  --fs-xxxl:2.25rem;  /* 36px */
  --fs-xxl: 1.5rem;   /* 24px */
  --fs-xl:  1.325rem; /* 21px */
  --fs-lg:  1.125rem; /* 18px */
  --fs-md:  1rem;     /* 16px */
  --fs-sm:  0.875rem; /* 14px */
  --fs-xs:  0.75rem;  /* 12px */
  --fs-xxs: 0.625rem; /* 10px */

  --lh-xxl: 1.125;  /* 42px ~ 54px */
  --lh-xl:  1.166;  /* 30px ~ 42px */
  --lh-lg:  1.333;  /* 24px */
  --lh-md:  1.875;  /* 30px */
  --lh-sm:  1.5;    /* 18px */

  --color-text-drk-100: #1d1d1f;
  --color-text-drk-200: #86868b;

  --color-text-lgt-100: #fafafa;
  --color-text-lgt-200: #e7e7e7;

  --color-bg-lgt-100: #f7f7f7;
  --color-bg-lgt-200: #e2e2e2;

  --color-bg-drk-100: #f7f7f7;
  --color-bg-drk-200: #e7e7e7;

  --color-link-100:   #0066cc;
  --color-link-200:   #f7f7f7;

  --color-success: #005bac;
  --color-warning: #f1c40f;
  --color-error:   #d63031;



  --color-border-100:#bbb;
  --color-border-200:#c7c7c7;
}

/* =========================================================
   Base Styles
========================================================= */

html {
  height: 100%;
  scroll-behavior: smooth;
}

body {
  font-size: var(--fs-md); line-height: var(--lh-md); letter-spacing: 0.06em;/*letter-spacing: -0.01em;*/
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;

  font-family: var(--font-main);

  display: grid;
  grid-template-rows: auto 1fr auto;
  grid-template-areas:
    "header"
    "main"
    "footer";
  min-height: 100vh;

  will-change: background-position;

  padding: 2px;
  margin: 0;
  box-sizing: border-box;

  background: linear-gradient(-30deg, #d9dcdf, #fafafa, #fdfa5e, #85fddf, #febfec, #fafafa, #c7c7c7);
  background-size: 12000% /*400%*/;
  animation: gradientBG 720s ease infinite;
}

@keyframes gradientBG {
  0%  { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100%{ background-position: 0% 50%; }
}

body::before {
  content: "";
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 9999;
  pointer-events: none;
  box-sizing: border-box;
}

@media (min-width: 600px) {
  body        { padding: 2px;}
  body::before{ border-width: 2px;}
}

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

header, main, footer {
  background: var(--color-bg-lgt-100);
}

header  { grid-area: header;}
main    { grid-area: main;}
footer  { grid-area: footer;}

/* =========================================================
   Typography
========================================================= */
h1, h2, h3, h4, h5 {
  font-feature-settings: "palt";
  word-break: auto-phrase;
  color: var(--color-text-drk-100);
}

h1, h2 {
  text-align: center;
}

h1 {
  font-size: var(--fs-xxl); line-height: var(--lh-xxl); letter-spacing: 0.02em;
  font-weight: 700;
  margin-top: var(--space-xl);
  margin-bottom: var(--space-lg);
}

h2 {
  font-size: var(--fs-xxxl); line-height: var(--lh-xssl); letter-spacing: 0.06em;
  color: var(--color-text-drk-200);
  font-weight: 200;
  padding-top: var(--space-md);
  margin-top: var(--space-lg);
  margin-bottom: var(--space-lg);
}

h3 {
  font-size: var(--fs-md); line-height: var(--lh-md);
  font-weight: 700;
  margin-top: var(--space-md);
  margin-bottom: var(--space-sm);
}

h4, h5 {
  font-size: var(--fs-md); line-height: var(--lh-md);
  font-weight: 400;
  color: var(--color-text-drk-200);
  margin-top: var(--space-md);
}

h1 span, h2 span, h3 span, h4 span, h5 span {
  display: block;
  font-size: max(1rem, 0.75em); line-height: 1.2; letter-spacing: normal;
  font-weight: 400;
  color: var(--color-text-drk-200);
  margin-top: var(--space-xs);
}

p {
  font-size: var(--fs-md); line-height: var(--lh-md);
  margin-bottom: var(--space-sm);
}

p + h2, p + h3 {
  margin-top: var(--space-xl);
}

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

dl {
  display: grid;
  grid-template-columns: 1fr;
  text-align: left;
  border-bottom: 1px solid var(--color-border-200);
}

dt, dd {
  padding-block: var(--space-sm);
  margin: 0;
}

dt {
  padding-bottom: 0;
  border-top: 1px solid var(--color-border-200);
  /* border-bottom: none; */
  /* background: #fff; */
}

dd {
  padding-top: var(--space-xs);
  /* padding-left: var(--space-md); */
}

@media (min-width: 600px) {
  dl {
    grid-template-columns: auto 1fr;
  }

  dt {
    padding-bottom: var(--space-sm);
    padding-right: var(--space-md);
  }

  dd {
    padding-top: var(--space-sm);
    border-top: 1px solid var(--color-border-200);
  }
}

/* =========================================================
   Layout & Utilities
========================================================= */

.container {
  width: var(--wrapper-xl);
  margin-inline: auto;
  max-width: 100%;
}

.container-readable {
  max-width: var(--width-readable);
  padding-inline: var(--space-md);
  margin-inline: auto;
}
/* 
.section-padding {
  padding-block: var(--space-lg);
}

@media (min-width: 63.75rem) {
  .section-padding {
    padding-block: var(--space-xl);
  }
} */

/* Links */
a {
  color: var(--color-link-100);
  text-decoration: none;
  transition: opacity 0.3s ease;
}

a:hover {
  text-decoration: underline;
  opacity: 0.8;
}

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

:focus-visible {
  outline: 2px solid var(--color-link-100);
  outline-offset: 2px;
}

@media (prefers-reduced-motion: reduce) {
  body {
    animation: none;
    background-size: cover;
  }
}