/* =========================================================
   HQ Background: Base
   key: hq-base-default
   name: 基本CSS｜デフォルト
   group: Base
   type:
   layer:
   value:
   selector:
   ========================================================= */

/* =========================================================
   Base Variables（ここだけ触ればOK）
   ========================================================= */

:root {
  --container-width: 1200px;

  --font-base: "Noto Sans JP", system-ui, sans-serif;
  --font-size-base: 16px;
  --line-height-base: 1.8;

  /* WP Admin Bar */
  --wp-adminbar-h: 0px;
}

/* =========================================================
   WP Admin Bar Offset（ログイン中は全体を下げる）
   ========================================================= */

body.admin-bar {
  --wp-adminbar-h: 32px;
  padding-top: var(--wp-adminbar-h);
}

body.admin-bar #fixed_header {
  top: var(--wp-adminbar-h);
}

@media (max-width: 782px) {
  body.admin-bar {
    --wp-adminbar-h: 46px;
  }
}

/* =========================================================
   Reset（最小限）
   ========================================================= */

html,
body,
div,
span,
applet,
object,
iframe,
h1,
h2,
h3,
h4,
h5,
h6,
p,
blockquote,
pre,
a,
abbr,
acronym,
address,
big,
cite,
code,
del,
dfn,
em,
img,
ins,
kbd,
q,
s,
samp,
small,
strike,
strong,
sub,
sup,
tt,
var,
b,
u,
i,
center,
dl,
dt,
dd,
ol,
ul,
li,
fieldset,
form,
label,
legend,
table,
caption,
tbody,
tfoot,
thead,
tr,
th,
td,
article,
aside,
canvas,
details,
embed,
figure,
figcaption,
footer,
header,
hgroup,
menu,
nav,
output,
ruby,
section,
summary,
time,
mark,
audio,
video {
  margin: 0;
  padding: 0;
  border: 0;
  font-size: 100%;
  vertical-align: baseline;
}

/* HTML5 display-role reset */
article,
aside,
details,
figcaption,
figure,
footer,
header,
hgroup,
menu,
nav,
section {
  display: block;
}

ol,
ul {
  list-style: none;
}

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

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

/* =========================================================
   Body
   ========================================================= */

body {
  font-family: var(--font-base);
  font-size: var(--font-size-base);
  line-height: var(--line-height-base);
}

/* =========================================================
   Canvas（兄妹思想を守るため）
   ========================================================= */

.l-canvas {
  padding-top: 48px;
  padding-bottom: 48px;
}

/* =========================================================
   Container
   ========================================================= */

.l-container {
  width: min(90%, var(--container-width));
  margin-inline: auto;
}

/* =========================================================
   Responsive Utility（改行制御）
   ========================================================= */

.sp_only {
  display: none;
}

.pc_only {
  display: block;
}

@media (max-width: 767px) {
  .sp_only {
    display: block;
  }

  .pc_only {
    display: none;
  }
}
