/* ————————————————————————————— */
/* 0. CSS Variables & Global Settings */
/* ————————————————————————————— */
:root {
  /* Viewport Dimensions */
  --full-w: 100vw;
  --full-h: 100vh;
  --three-quarter-w: 75vw;
  --three-quarter-h: 75vh;
  --three-quarterandhalf-w: 62.5vw;
  --three-quarterandhalf-h: 62.5vh;
  --half-plussmall-vh-h: 56.25vh;
  --half-plussmall-vw-w: 56.25vw;
  --half-w: 50vw;
  --half-h: 50vh;
  --halfquarterhalf-w: 37.5vw;
  --halfquarterhalf-h: 37.5vh;
  --quarter-w: 25vw;
  --quarter-h: 25vh;
  --quarterhalf-h: 12.5vh;

  /* Spacing Scale */
  --space-xs: 0.25rem;
  /* 4px */
  --space-sm: 0.5rem;
  /* 8px */
  --space-md: 1rem;
  /* 16px */
  --space-lg: 1.5rem;
  /* 24px */
  --space-xl: 2rem;
  /* 32px */
  --space-xxl: 2.5rem;
  /* 40px */
  --space-3xl: 6.25rem;
  /* 100px */
  --space-viewport-quarter: 25vh;

 /* Font Sizes */
  --font-base: 1rem;
  --font-xs: 0.75rem;  /* Added missing font-xs */
  --font-sm: 0.875rem;
  --font-lg: 1.25rem;
  --font-xl: 1.5rem;
  --font-xxl: 1.75rem;
  --font-3xl: 2rem;
  
  /* Font Size Variables (consistent naming) */
  --font-size-sm: 0.875rem;
  --font-size-md: 1rem;
  --font-size-lg: 1.25rem;
  --font-size-xl: 1.5rem;
}



/* ————————————————————————————— */
/* 1. Basis–Typografie (Skalierbar)   */
/* ————————————————————————————— */
html {
  font-size: 100%;
  /* entspricht 16px, skaliert mit Browser-Zoom */
  box-sizing: border-box;
}

*,
*::before,
*::after {
  box-sizing: inherit;
}

body {
  font-family: 'Noto Sans JP', sans-serif;
  font-size: 0.9rem;
  line-height: 1.5;
  /* angenehme Zeilenhöhe */
  color: #333;
  background: #f9f9f9;
  margin: 0;
  padding: 0;
}

/* ————————————————————————————— */
/* 2. Kopfzeilen–Skalierung         */
/* ————————————————————————————— */
h1 {
  font-size: 1.5rem;
}

h2 {
  font-size: 1.15rem;
}

h3 {
  font-size: 1.0rem;
}

h4 {
  font-size: 0.9rem;
}

h5 {
  font-size: 0.7rem;
}

h6 {
  font-size: 0.5rem;
}

/* ————————————————————————————— */
/* 3. Fließtext und Formulare      */
/* ————————————————————————————— */
p,
ul,
ol,
li,
label,
input,
textarea,
button,
select {
  font-size: 0.9rem;
  /* alle Texte gleichwertig skalierbar */
}

/* ————————————————————————————— */
/* 4. Links und kleine Elemente     */
/* ————————————————————————————— */
small,
.fine-print {
  font-size: 0.875rem;
  /* 14px */
}

/* Hinweis: Entferne alle px–Angaben für font-size */
/* in index.css und contact.css – sie erben jetzt hier. */

/* ————————————————————————————— */
/* 1. Global Reset & No-Scroll */
/* ————————————————————————————— */
html {
  height: var(--full-h);
}

body {
  margin: 0;
  padding: 0;
  overflow-x: hidden;
}

/* ————————————————————————————— */
/* 2. Typography Scale */
/* ————————————————————————————— */
h1 {
  font-size: var(--font-3xl);
}

h2 {
  font-size: var(--font-xxl);
}

h3 {
  font-size: var(--font-xl);
}

h4 {
  font-size: var(--font-lg);
}

h5 {
  font-size: var(--font-sm);
}

h6 {
  font-size: var(--font-xs);
}

/* ————————————————————————————— */
/* 3. Layout Utilities */
/* ————————————————————————————— */
.u-full-container {
  width: var(--full-w);
  height: var(--full-h);
}

.u-absolute-fill {
  position: absolute;
  top: 0;
  left: 0;
  width: var(--full-w);
  height: var(--full-h);
}

.u-no-scroll {
  overflow: hidden;
}

.u-header-offset {
  margin-left: var(--space-3xl);
}

/* ————————————————————————————— */
/* 4. Spacing Utilities */
/* ————————————————————————————— */
.u-p-xs {
  padding: var(--space-xs);
}

.u-p-sm {
  padding: var(--space-sm);
}

.u-p-md {
  padding: var(--space-md);
}

.u-p-lg {
  padding: var(--space-lg);
}

.u-p-xl {
  padding: var(--space-xl);
}

.u-p-xxl {
  padding: var(--space-xxl);
}

.u-pt-viewport-quarter {
  padding-top: var(--space-viewport-quarter);
}

.u-pb-xs {
  padding-bottom: var(--space-xs);
}

.u-pb-sm {
  padding-bottom: var(--space-sm);
}

.u-pb-md {
  padding-bottom: var(--space-md);
}

.u-m-xs {
  margin: var(--space-xs);
}

.u-m-sm {
  margin: var(--space-sm);
}

.u-m-md {
  margin: var(--space-md);
}

.u-m-lg {
  margin: var(--space-lg);
}

.u-mb-md {
  margin-bottom: var(--space-md);
}

/* ————————————————————————————— */
/* 5. Width/Height Utilities */
/* ————————————————————————————— */
.u-w-full {
  width: var(--full-w);
}

.u-w-half {
  width: var(--half-w);
}

.u-w-quarter {
  width: var(--quarter-w);
}

.u-w-75 {
  width: 75%;
}

.u-h-full {
  height: var(--full-h);
}

.u-max-w-half {
  max-width: var(--half-w);
}

/* ————————————————————————————— */
/* Zentriertes Styling für das E-Mail-Feld und Invalid-State */
/* ————————————————————————————— */
/* zentriert Input-Feld */
.center-input {
  display: block;
  margin: var(--space-md) auto;
  max-width: 400px;
  width: 100%;
  padding: var(--space-sm);
  font-size: var(--font-size-md);
  box-sizing: border-box;
}

/* Roter Rahmen bei Invalid */
.center-input.invalid {
  border: 2px solid #e63946;
  background-color: #ffe3e3;
}

/* Smooth focus */
.center-input:focus {
  outline: none;
  border-color: #333;
  box-shadow: 0 0 0 2px rgba(51, 51, 51, 0.2);
}


/* ————————————————————————————— */
/* PC Mobile Setting                */
/* ————————————————————————————— */
.mobile {
  display: none;
}

@media screen and (max-width: 768px) {

  html {
    height: var(--full-h);
  }

  body {
    overflow-x: initial;
  }

  .desktop {
    display: none;
  }

  .mobile {
    display: block;
  }

  .mobile {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
  }
}