/* =========================================================
   base.css / 2026
   reset.css の次に読み込む
   ========================================================= */

:root {
  --header-h: 88px;
  --header-h-sp: 68px;

  --color-text: #222;
  --color-bg: #fff;
  --color-main: #111827;
  --color-sub: #6b7280;
  --color-border: #e5e7eb;

  --font-base: "Poppins", "Noto Sans JP", sans-serif;

  --content-width: 1120px;
  --content-width-sm: 960px;
  --gutter: min(5vw, 24px);

  --lh-base: 1.7;
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 24px;

  --transition: 0.3s ease;
}

/* --- root layout --- */
html,
body {
  overflow-x: clip;
}

body {
  color: var(--color-text);
  background: var(--color-bg);
  font-family: var(--font-base);
  font-size: 16px;
  font-weight: 400;
  line-height: var(--lh-base);
  word-break: break-word;
  overflow-wrap: anywhere;
}

/* 固定ヘッダーがある前提のずれ防止 */
html {
  scroll-padding-top: calc(var(--header-h) + 20px);
}

/* --- html5 --- */
main,
article,
aside,
section,
nav,
header,
footer {
  display: block;
}

/* --- typography --- */
h1, h2, h3, h4, h5, h6 {
  line-height: 1.3;
  font-weight: 600;
}

p {
  line-height: var(--lh-base);
}

a {
  transition:
    opacity var(--transition),
    color var(--transition),
    background-color var(--transition),
    border-color var(--transition),
    transform var(--transition);
}

a:hover {
  opacity: 0.78;
}

img {
  vertical-align: bottom;
}

svg {
  fill: currentColor;
}

/* --- form --- */
input,
textarea,
select {
  width: 100%;
  min-width: 0;
}

input:focus,
textarea:focus,
select:focus,
button:focus,
a:focus {
  outline: 2px solid rgba(17, 24, 39, 0.4);
  outline-offset: 2px;
}

input[type="submit"],
input[type="button"],
button {
  width: auto;
}

textarea {
  min-height: 140px;
}

input[type="checkbox"],
input[type="radio"] {
  width: auto;
  -webkit-appearance: auto;
  appearance: auto;
}

select {
  cursor: pointer;
}

/* --- table --- */
table {
  width: 100%;
}

/* --- container --- */
.container {
  width: min(var(--content-width), calc(100% - var(--gutter) * 2));
  margin-inline: auto;
}

.container-sm {
  width: min(var(--content-width-sm), calc(100% - var(--gutter) * 2));
  margin-inline: auto;
}

.section {
  padding: clamp(60px, 8vw, 110px) 0;
}

/* headerかぶり対策 */
.has-fixed-header main,
.has-fixed-header .site-main,
.has-fixed-header .top-page,
.has-fixed-header .page-contents {
  padding-top: calc(var(--header-h) + 20px);
}

/* ファーストビューだけ個別に余白調整したい時 */
.first-view-offset {
  padding-top: calc(var(--header-h) + 20px);
}

/* --- cms content --- */
.entry-content > * + * {
  margin-top: 1.2em;
}

.entry-content ul,
.entry-content ol {
  padding-left: 1.5em;
}

.entry-content ul {
  list-style: disc;
}

.entry-content ol {
  list-style: decimal;
}

.entry-content a {
  text-decoration: underline;
}

.entry-content table {
  display: block;
  overflow-x: auto;
  white-space: nowrap;
}

.entry-content img {
  height: auto;
}

/* --- WordPress --- */
.aligncenter {
  display: block;
  margin-inline: auto;
}

.alignleft {
  float: left;
  margin-right: 1.5em;
  margin-bottom: 1em;
}

.alignright {
  float: right;
  margin-left: 1.5em;
  margin-bottom: 1em;
}

.wp-caption {
  max-width: 100%;
}

.wp-caption img {
  width: 100%;
}

.wp-caption-text {
  margin-top: 0.5em;
  font-size: 0.875rem;
  color: var(--color-sub);
}

.screen-reader-text {
  position: absolute !important;
  width: 1px;
  height: 1px;
  padding: 0;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}

/* --- button --- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5em;
  min-height: 48px;
  padding: 0.9em 1.5em;
  border: 1px solid transparent;
  border-radius: 9999px;
  background: #111827;
  color: #fff;
  font-weight: 500;
  line-height: 1.2;
  text-align: center;
  transition:
    opacity var(--transition),
    transform var(--transition),
    background-color var(--transition),
    border-color var(--transition);
}

.btn:hover {
  opacity: 1;
  transform: translateY(-1px);
}

.btn--ghost {
  background: transparent;
  color: #111827;
  border-color: #111827;
}

/* --- utility --- */
.pc-only {
  display: block;
}

.sp-only {
  display: none;
}

.body-lock {
  overflow: hidden;
}

/* --- responsive --- */
@media (max-width: 767px) {
  :root {
    --header-h: var(--header-h-sp);
  }

  html {
    scroll-padding-top: calc(var(--header-h-sp) + 16px);
  }

  body {
    font-size: 15px;
  }

  .section {
    padding: 56px 0;
  }

  .has-fixed-header main,
  .has-fixed-header .site-main,
  .has-fixed-header .top-page,
  .has-fixed-header .page-contents,
  .first-view-offset {
    padding-top: calc(var(--header-h-sp) + 16px);
  }

  .alignleft,
  .alignright {
    float: none;
    margin-inline: 0;
  }

  .pc-only {
    display: none;
  }

  .sp-only {
    display: block;
  }
}