@layer reset, base, utilities;

/* デザイントークン（色・余白・フォントの出所） */
:root {
  --ff-base: "Noto Sans JP", sans-serif;
  --ff-serif: "Noto Serif JP", serif;
  
  --c-white: #fff;
  --c-black: #333;
  --c-blue: #518FCB;
  --c-red: #DC143C;
  --c-green: #108678;
  --c-yellow: #F6C85F;
  --c-orange: #f57b56;
  --c-gray: #ccc;
  --c-l-gray: #f7f7f7;
  --c-txt: #263238;
  --c-heading: #0F2E5C;
  --c-text-sub: #64748B;
  --c-link: #005BAC;
  
  --fs10: 0.625rem;
  --fs11: 0.6875rem;
  --fs12: 0.75rem;
  --fs13: 0.8125rem;
  --fs14: 0.875rem;
  --fs15: 0.9375rem;
  --fs16: 1.0rem;
  --fs17: 1.0625rem;
  --fs18: 1.125rem;
  --fs20: 1.25rem;
  --fs22: 1.375rem;
  --fs24: 1.5rem;
  --fs28: 1.75rem;
  --fs30: 1.875rem;
  --fs32: 2.0rem;
  --fs36: 2.25rem;
  --fs40: 2.5rem;
  --fs42: 2.625rem;
  --fs48: 3.0rem;
  --fs50: 3.125rem;
  --fs54: 3.375rem;
  --fs56: 3.5rem;
  --fs60: 3.75rem;
  --fs64: 4.0rem;
  --fs72: 4.5rem;
}

@layer reset {
  *, *::before, *::after { box-sizing: border-box; }
  * { margin: 0; }
  img, picture, svg, video { display: block; max-width: 100%; height: auto; }
  input, button, textarea, select { font: inherit; border: none; }
  ul, ol { list-style: none; margin: 0; padding: 0 }
  table { border-collapse: collapse; border-spacing: 0; }

  @media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
      animation-duration: 0.01ms !important;
      animation-iteration-count: 1 !important;
      transition-duration: 0.01ms !important;
      scroll-behavior: auto !important;
    }
  }
}

@layer base {
  body {
    color: var(--c-txt);
    font-family: var(--ff-base);
    font-size: var(--fs16);
    background: #eff2f5;
    line-height: 1.6;
    font-weight: 400;
    position: relative;
    overflow-x: hidden;
  }
  .block {
    width: 100%;
    max-width: 1200px;
    padding: 0 20px;
    margin: 0 auto 50px;
  }
  a { color: var(--color-accent); text-decoration: none;}
  h1, h2, h3 { line-height: 1.2; }
  .mb20 { margin-bottom: 20px; }
}

.sp { 
  display: none;
  
  @media (max-width: 430px) {
    & { display: block !important; }
  }
}

.pc {
  @media (max-width: 430px) {
    & { display: none; }
  }
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 15px 35px;
  color: #fff;
  background: linear-gradient( 120deg, #0069CD 0%, #0048AE 100% );
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0, 72, 174, 0.15);
  transition: opacity 0.3s ease;
  &:hover { opacity: 0.85; }
}

.mb0 { margin-bottom: 0 !important; }
.mb10 { margin-bottom: 10px !important; }
.mb20 { margin-bottom: 20px !important; }
.mb30 { margin-bottom: 30px !important; }
.mb40 { margin-bottom: 40px !important; }
.mb50 { margin-bottom: 50px !important; }
.mb60 { margin-bottom: 60px !important; }
.mb70 { margin-bottom: 70px !important; }
.mb80 { margin-bottom: 80px !important; }
.mb90 { margin-bottom: 90px !important; }
.mb100 { margin-bottom: 100px !important; }