/* ブレイクポイント */
/* タブレット 768px */
/* PC 1024px～ */
/* https://docodoor.co.jp/staffblog/breakpoint-responsive/ */

:root {
  /* カラー */
  --color-text    : #333333;
  --color-a       : #4a8da7;
  --color-a_hover : #d6a1a7;
}

@font-face {
  font-family: 'Noto Sans JP';
  font-style: normal;
  font-weight: normal;
  font-display: swap;
  src: url('../font/NotoSansJP-Regular.woff2') format('woff2'),
}

/* scrollbar-gutter でスクロールバーの箇所が余白にする設定にしている */
html {
	font-size: 62.5%; /* 1rem = 10px */
}

body {
	box-sizing: border-box;
  font-family: 'Noto Sans JP', sans-serif;
	letter-spacing: -0.015em;
	text-align: left;
  -webkit-overflow-scrolling: touch;
}

/* debug用 */
/* * { outline: 1px solid red; } */

*,
*::before,
*::after {
	box-sizing: inherit;
	word-break: break-word;
	word-wrap: break-word;
}

body {
	font-size: 1.6rem;
}

/* # ul, ol, li */
nav ul,
nav ol {
  margin: 0;
  padding: 0;
  list-style-type: none;
  line-height: 1;
}

/* # a */
a {
  color: var( --color-a );
  text-decoration: none;
}

a:active {
  position: relative;
  top: .3rem;
}

a:hover {
  color: var( --color-a_hover );
  text-decoration: underline;
}

/* # img */
img {
  width: 100%;
  height: auto;
}
/*
lightboxを使用する場合の .aligncenter は使用できない。
imgタグ を aタグ で囲むため、左右の空白もリンクになってしまう。
以下のようにする
<div style="text-align:center">
<a><img></a>
</div>
*/

@media only screen and ( min-width: 768px ) {
  img {
    width: auto;
  }
}

/* # Common class */
.scroll-up {
  opacity: 0; 
  visibility: hidden;
  transform: translateY(50px);
  transition: all 1s;
}
.scroll-up.is-show {
  opacity: 1;
  visibility: visible;
  transform: translateY(0px);
}




/* # WordPress class */
.aligncenter {
  display: block;
  margin-right: auto;
  margin-left: auto;
  text-align: center;
}

.aligncenter * {
  display: inline;
}

.alignright {
  float: right;
  margin-left: 1.5em;
}

.alignleft {
  float: left;
  margin-right: 1.5em;
}
/*
.wp-caption,
[class*='wp-image'] {
  display: block;
  max-width: 100% !important;
  margin-top: 1.5em;
  text-align: center;
}

.wp-caption-text {
  margin-top: 0;
}
*/




@media only screen and ( min-width: 768px ) {
  body { color: blue; }

  img {
    width: auto;
  }
}

@media only screen and ( min-width: 1024px ) {
  body { color: red; }
}
