/* ==========================================================================
   base_reset.css
   ========================================================================== */

/* --------------------------------------------------------------------------
   CSS カスタムプロパティ（変数）
   -------------------------------------------------------------------------- */

:root {
  --inner-width: 1150px;
  --inner-max-width: 1200px;   /* inner-width + padding-pc × 2 */
  --padding-sp: 1.25rem;       /* 20px → Sass: myrem(strip-unit($padding-sp)) */
  --padding-pc: 1.5625rem;     /* 25px → Sass: myrem(strip-unit($padding-pc)) */
  --color-black: #333;
  --color-white: #fff;
}


/* --------------------------------------------------------------------------
   Reset
   Modern CSS Reset + カスタム追記
   -------------------------------------------------------------------------- */

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

body,
h1,
h2,
h3,
h4,
p,
figure,
blockquote,
dl,
dd,
ul,
ol,
li {
  margin: 0;
}

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

html:focus-within {
  scroll-behavior: smooth;
}

body {
  min-height: 100vh;
  text-rendering: optimizeSpeed;
  line-height: 1.5;
}

a:not([class]) {
  text-decoration-skip-ink: auto;
}

a {
  text-decoration: none;
  color: inherit;
}

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

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

button {
  border: none;
  padding: 0;
  background-color: transparent;
  cursor: pointer;
}

@media (prefers-reduced-motion: reduce) {
  html:focus-within {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}


/* --------------------------------------------------------------------------
   Base: ルートフォントサイズ（レスポンシブ fluid rem）
   ~375px      : 4.2667vw  (= 16÷375×100)
   376px~767px : 100%
   768px~1249px: 1.28vw    (= 16÷1250×100)
   1250px~     : 100%
   -------------------------------------------------------------------------- */

html {
  font-size: 100%;
}

@media (max-width: 375px) {
  html {
    font-size: 4.2667vw;
  }
}

@media screen and (min-width: 768px) {
  html {
    font-size: 1.28vw;
  }
}

@media (min-width: 1250px) {
  html {
    font-size: 100%;
  }
}


/* --------------------------------------------------------------------------
   Base: フォント・カラー
   --font-ja / --color-text / --color-bg は style.css の :root で定義
   -------------------------------------------------------------------------- */

body {
  font-family: var(--font-ja);
  color: var(--color-text);
  background-color: var(--color-bg);
}


/* --------------------------------------------------------------------------
   Base: ホバー（PCのみ）
   -------------------------------------------------------------------------- */

@media screen and (min-width: 768px) {
  a,
  button {
    transition: 0.3s;
  }

  a:hover,
  button:hover {
    opacity: 0.7;
    cursor: pointer;
  }
}


/* --------------------------------------------------------------------------
   Layout: l-inner（コンテナ）
   SP: 全幅 + 左右padding 1.25rem (20px)
   PC: max-width 1250px, 左右padding 1.5625rem (25px), 中央寄せ
   -------------------------------------------------------------------------- */

.l-inner {
  width: 100%;
  padding-right: var(--padding-sp);
  padding-left: var(--padding-sp);
  margin-right: auto;
  margin-left: auto;
}

@media screen and (min-width: 768px) {
  .l-inner {
    max-width: var(--inner-max-width);
    padding-right: var(--padding-pc);
    padding-left: var(--padding-pc);
  }
}


/* --------------------------------------------------------------------------
   Utility: 表示切り替え
   -------------------------------------------------------------------------- */

@media screen and (min-width: 768px) {
  .u-sp {
    display: none;
  }
}

.u-pc {
  display: none;
}

@media screen and (min-width: 768px) {
  .u-pc {
    display: block;
  }
}
