@charset "utf-8";

/* =========================================================
   ブレイクポイント(@media内ではCSS変数が使えないため数値で記述)
   SP : 〜767px
   TB : 768px〜1079px
   PC : 1080px〜
========================================================= */

/* =========================================================
   01. Foundation
   - reset
   - variables
   - base
========================================================= */

/* Reset
--------------------------------------------------------- */
*,
*::before,
*::after {
  box-sizing: border-box;
}

html,
body,
div,
span,
iframe,
h1,
h2,
h3,
h4,
h5,
h6,
p,
blockquote,
pre,
address,
cite,
code,
em,
img,
small,
strong,
sub,
sup,
b,
i,
dl,
dt,
dd,
ol,
ul,
li,
fieldset,
form,
label,
legend,
table,
caption,
tbody,
tfoot,
thead,
tr,
th,
td,
article,
aside,
canvas,
details,
figcaption,
figure,
footer,
header,
main,
nav,
section,
summary,
time,
audio,
video {
  margin: 0;
  padding: 0;
  border: 0;
  font: inherit;
  vertical-align: baseline;
}

ol,
ul {
  list-style: none;
}

blockquote,
q {
  quotes: none;
}

blockquote::before,
blockquote::after,
q::before,
q::after {
  content: none;
}

table {
  width: 100%;
  border-collapse: collapse;
  border-spacing: 0;
}

/* 画像:親より大きくならないだけ。横幅いっぱいにしたい時は .img-full を付ける */
img,
picture,
video,
svg {
  display: block;
  max-width: 100%;
  height: auto;
}

hr {
  height: 1px;
  margin: 1em 0;
  border: 0;
  border-top: 1px solid #ccc;
}

/* フォーム部品はブラウザ独自のフォントを使わせない */
input,
button,
textarea,
select {
  font: inherit;
  color: inherit;
  vertical-align: middle;
}

button {
  padding: 0;
  border: 0;
  background: none;
  cursor: pointer;
}

input[type="submit"] {
  appearance: none;
  border-radius: 0;
}

/* Variables
--------------------------------------------------------- */
:root {
  /* 色 */
  --color-text: #222;
  --color-link: #0e6ab7;

  /* フォント */
  --font-base:
    "Noto Sans JP", "ヒラギノ角ゴ ProN", "Hiragino Kaku Gothic ProN",
    "メイリオ", "Meiryo", sans-serif;

  /* コンテナ幅 */
  --container: 1200px;
  --container-wide: 1400px;
  --container-gutter: 15px;

  /* 余白 */
  --space-sm: clamp(8px, 1.5vw, 12px);
  --space-md: clamp(16px, 2vw, 24px);
  --space-lg: clamp(24px, 4vw, 48px);
  --space-block: clamp(56px, 10.4vw, 144px);

  /* アニメーション */
  --transition-base: opacity 0.6s ease;
}

/* Base
--------------------------------------------------------- */
html {
  font-size: 62.5%; /* 1rem = 10px */
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

body {
  font-family: var(--font-base);
  font-size: 1.6rem;
  line-height: 1.7;
  color: var(--color-text);
}

h1,
h2,
h3,
h4,
h5,
h6 {
  line-height: 1.5;
}

strong,
b {
  font-weight: 700;
}

em {
  font-style: italic;
}

a {
  color: inherit;
  text-decoration: none;
  transition: var(--transition-base);
}

/* ホバーはマウス操作の端末だけ(スマホでタップ後に薄いまま残るのを防ぐ) */
@media (hover: hover) {
  a:hover {
    opacity: 0.7;
  }
}

@media screen and (max-width: 767px) {
  body {
    font-size: 1.4rem;
  }
}

/* =========================================================
   02. Layout
   - containers
   - responsive display
========================================================= */

/* コンテナ:画面が狭くなると自動で左右に余白が付く */
.content-inr,
.content-inr-wide {
  margin-inline: auto;
  padding-inline: var(--container-gutter);
}

.content-inr {
  max-width: calc(var(--container) + var(--container-gutter) * 2);
}

.content-inr-wide {
  max-width: calc(var(--container-wide) + var(--container-gutter) * 2);
}

/* hidden属性を付けた要素は必ず隠す(displayを指定したクラスより優先) */
[hidden] {
  display: none !important;
}

/* Display switch(表示の切り替え)
   隠すだけなので、flexやinlineの要素に付けても崩れない
--------------------------------------------------------- */
/* PCで隠す */
@media screen and (min-width: 1080px) {
  .tb-display,
  .sp-display,
  .pc-none {
    display: none !important;
  }
}

/* TBで隠す */
@media screen and (min-width: 768px) and (max-width: 1079px) {
  .pc-display,
  .sp-display {
    display: none !important;
  }
}

/* SPで隠す */
@media screen and (max-width: 767px) {
  .pc-display,
  .tb-display,
  .sp-none {
    display: none !important;
  }
}

/* =========================================================
   03. Utilities
   - text
   - flex
   - spacing
========================================================= */

/* Text
--------------------------------------------------------- */
.leftOn {
  text-align: left;
}

.rightOn {
  text-align: right;
}

.centerOn {
  text-align: center;
}

.inline {
  display: inline;
}

.inline-block {
  display: inline-block;
}

.txt-bold {
  font-weight: 700;
}

.txt-link {
  color: var(--color-link);
  text-decoration: underline;
}

/* PCは中央揃え、狭いスマホでは左揃え */
.sp-txt-left-cmn {
  text-align: center;
}

@media screen and (max-width: 428px) {
  .sp-txt-left-cmn {
    text-align: left;
  }
}

/* Flex
--------------------------------------------------------- */
.row {
  display: flex;
  flex-wrap: wrap;
}

.stack {
  display: flex;
  flex-direction: column;
}

/* SPで縦並びに。.row-sp を付けるとSPでも横並びのまま */
@media screen and (max-width: 767px) {
  .row {
    flex-direction: column;
  }

  .row.row-sp {
    flex-direction: row;
  }
}

/* Gap
--------------------------------------------------------- */
.stack-sm,
.row-sm {
  gap: var(--space-sm);
}

.stack-md,
.row-md {
  gap: var(--space-md);
}

.stack-lg,
.row-lg {
  gap: var(--space-lg);
}

/* Margin
--------------------------------------------------------- */
.mb-sm {
  margin-bottom: var(--space-sm);
}

.mb-md {
  margin-bottom: var(--space-md);
}

.mb-lg {
  margin-bottom: var(--space-lg);
}

.mb-content-block {
  margin-bottom: var(--space-block);
}

/* =========================================================
   04. Components
   - media helpers
   - animation
========================================================= */

/* 画像を横幅いっぱいに広げる */
.img-full {
  width: 100%;
}

/* Object-fit helpers
   比率は style="--ojf-ratio: 16 / 9;" のように変更できる(初期値は正方形)
--------------------------------------------------------- */
.ojf-cover,
.ojf-contain {
  aspect-ratio: var(--ojf-ratio, 1 / 1);
}

.ojf-cover img,
.ojf-contain img {
  width: 100%;
  height: 100%;
}

.ojf-cover img {
  object-fit: cover;
}

.ojf-contain img {
  object-fit: contain;
}

/* Fade in(JSで .is-visible を付けて表示)
--------------------------------------------------------- */
.fadein-trigger {
  opacity: 0;
  transform: translateY(30px);
  transition:
    opacity 1s ease,
    transform 1s ease;
}

.fadein-trigger.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* 「動きを減らす」設定の人にはアニメーションしない */
@media (prefers-reduced-motion: reduce) {
  .fadein-trigger {
    opacity: 1;
    transform: none;
    transition: none;
  }
}
