@charset "UTF-8";
/* --------------------------------------------------
  Template by espace（https://espace.monbalcon.net/）
  Copyright: 2020 espace.

  利用規約を遵守の上、ご利用ください。
  二次配布、販売は禁止しています。
  --------------------------------------------------*/
/* ----- ▼ CSS変数設定 ここから ▼ ----- */
@import url("https://fonts.googleapis.com/css2?family=Montserrat:wght@200;400;500&family=Zen+Maru+Gothic:wght@300;400;500&display=swap");
@import url("https://fonts.googleapis.com/css2?family=Material+Symbols+Rounded:opsz,wght,FILL,GRAD@20..48,100..700,0..1,-50..200");
:root {
  --animation: 0.3s;
  --white: #fff;
  --light-gray: #fefefe;
  --gray: #e4e6e8;
  --dark: #3f4046;
  --text-color: var(--dark);
  --bg-color: var(--light-gray);
  --required-color: var(--theme-color1-strong);
  --theme-color1-more-light: #f7ecec;
  --theme-color1-light: #f4d4d5;
  --theme-color1-default: #d4b5ba;
  --theme-color1-strong: #e78d9d;
  --theme-color2-more-light: #dae5ed;
  --theme-color2-light: #acdce2;
  --theme-color2-default: #acdce2;
  --theme-color2-dark: #70b0dd;
  --gradient: var(--theme-color2-default) 0%, var(--theme-color1-more-light) 45%;
  /* ▼ my bookshelfの設定 ▼ */
  /** 間隔の設定 **/
  /* 頒布物間 */
  --ebs-gap: 30px;
  /* 画像・テキスト間 */
  --ebs-inner-gap: 15px;
  /* newマーク・背景色 */
  --ebs-new-bg-color: #b2c3dd;
  /* newマーク・テキスト色 */
  --ebs-new-text-color: #fff;
  /** ebs-borderの設定 **/
  /* 線幅 */
  --ebs-border-width: 2px;
  /* 線色 */
  --ebs-border-color: #b2c3dd;
  /* 角丸サイズ */
  --ebs-border-radius: 10px;
  /* 内側余白 */
  --ebs-border-inner-space: 10px;
  /** 装飾の設定 **/
  /* 下線（色） */
  --ebs-text-border-color: #7d9edb;
  /* 下線（幅） */
  --ebs-text-border-width: 2px;
  /* 強調テキスト背景色 */
  --ebs-text-em-bg-color: #f1c3d7;
  /* ボタン風リンク（テキスト色） */
  --ebs-link-btn-text-color: #fff;
  /* ボタン風リンク（背景色） */
  --ebs-link-btn-bg-color: #7d9edb;
  /* ボタン風リンク（角丸サイズ） */
  --ebs-link-btn-radius: 10px;
  /* ▲ my bookshelfの設定 ▲ */
}

/* ----- ▲ CSS変数設定 ここまで ▲ ----- */
/* ----- ▼ リセット　ここから（基本的には触らない方が良い部分） ▼ ----- */
/*
  Josh's Custom CSS Reset
  https://www.joshwcomeau.com/css/custom-css-reset/
*/
*,
*::before,
*::after {
  box-sizing: border-box;
}

* {
  margin: 0;
}

body {
  -webkit-font-smoothing: antialiased;
}

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

p,
h1,
h2,
h3,
h4,
h5,
h6 {
  overflow-wrap: break-word;
}

#root,
#__next {
  isolation: isolate;
}

/*
  Add by espace
*/
* {
  word-break: break-all;
}

:focus {
  outline: none;
}

html {
  font-size: 62.5%;
}

body {
  word-wrap: break-word;
}

picture,
video,
canvas,
svg {
  display: block;
  max-width: 100%;
  margin-block: 0;
  margin-inline: auto;
}

a,
button {
  cursor: pointer;
}

a {
  text-decoration: none;
}

img {
  vertical-align: middle;
  max-inline-size: 100%;
}

p,
dl,
ul,
ol,
form,
.box,
.scrollbox {
  margin-block: 2.5rem;
  margin-inline: auto;
}

nav ul {
  list-style: none;
  padding: 0;
}

main {
  hanging-punctuation: allow-end;
}

/* ----- ▲ リセット　ここまで（基本的には触らない方が良い部分） ▲ ----- */
/* ----- ▼ PCレイアウト　ここから ▼ ----- */
/* 基本 */
html {
  background: var(--bg-color);
}

body,
button,
input,
textarea,
select {
  font: 500 1.6rem/2.65rem "Yu Gothic", Meiryo, "Hiragino Kaku Gothic ProN", sans-serif;
  color: var(--text-color);
}

body.get-header main, body.get-header footer {
  margin-inline: auto 0;
}
body.fix-menu .menu {
  margin-top: 0;
}
body.fix-menu header h1 {
  top: 50px;
  left: 300px;
  transform: rotate(90deg);
  transform-origin: left top;
  text-align: left;
}
body.fix-menu header h1 span {
  letter-spacing: 0;
}
body.fix-menu header h1::after {
  content: none;
}

header,
main {
  top: 0;
}

header {
  position: fixed;
  left: 0;
  width: 300px;
  height: 100vh;
  padding: 20px;
}
header h1 {
  position: fixed;
  top: 20px;
  left: 20px;
  text-align: center;
  transition: all var(--animation);
}
header h1::after {
  content: "";
  display: block;
  width: 260px;
  height: 260px;
  margin-top: 20px;
  background: url("https://dearyou1107.com/h1.jpg") no-repeat center/cover;
  z-index: -1;
  transition: all var(--animation);
}
header h1 span {
  padding: 0 4px 0 2px;
  background: var(--bg-color);
  letter-spacing: 10px;
}
header.scroll h1 {
  top: 50px;
  left: 300px;
  transform: rotate(90deg);
  transform-origin: left top;
  text-align: left;
}
header.scroll h1::after {
  height: 0;
  opacity: 0;
  transform-origin: top;
}
header.scroll h1 span {
  letter-spacing: 0;
}

main,
footer {
  width: calc(100% - 300px);
  margin: 0 auto;
  padding-inline: 5rem;
}

main {
  padding-block: 50px 100px;
}
main > *:first-child {
  margin-block-start: 0;
}
main > *:first-child > *:first-child {
  margin-block-start: 0;
}

/* メニュー */
.menu {
  height: calc(100vh - 40px);
  margin: 350px 0 15px;
  padding: 30px;
  border: 5px solid var(--theme-color2-default);
  border-image: linear-gradient(to bottom, var(--gradient));
  border-image-slice: 1;
  font: 400 14px/1 "Montserrat", "Zen Maru Gothic", "Yu Gothic", Meiryo, "Hiragino Kaku Gothic ProN", sans-serif;
  transition: all var(--animation);
}
.menu.scroll {
  margin-top: 0;
}
.menu ul {
  margin: 0;
}
.menu ul li a {
  position: relative;
  display: block;
  padding: 1.25rem 0;
  color: var(--theme-color1-default);
  overflow: hidden;
}
.menu ul li a::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: -100%;
  display: block;
  height: 2px;
  width: 100%;
  background: var(--theme-color2-more-light);
  transition: all var(--animation) ease-in;
}
.menu ul li a:hover {
  background: transparent;
}
.menu ul li a:hover::after {
  left: 0;
}

.fixed-menu {
  position: fixed;
  bottom: 25px;
  right: 25px;
  z-index: 91;
}
.fixed-menu ul {
  margin: 0;
}
.fixed-menu ul li.next::before {
  content: none;
}
.fixed-menu a,
.fixed-menu button,
.fixed-menu span {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  width: 50px;
  height: 50px;
  margin: 0;
  padding: 0;
  background: var(--theme-color1-more-light);
  border: 2px solid var(--theme-color1-more-light);
  border-radius: 25px;
  color: var(--theme-color1-default);
  transition: all var(--animation);
}
.fixed-menu a::before,
.fixed-menu button::before,
.fixed-menu span::before {
  font: 400 24px/1 "Material Symbols Rounded";
}
.fixed-menu a:hover,
.fixed-menu button:hover {
  background: var(--bg-color);
}
.fixed-menu span {
  opacity: 0.5;
}
.fixed-menu li.pagetop a::before,
.fixed-menu li.pagetop button::before,
.fixed-menu li.pagetop span::before {
  content: "\eacf";
}
.fixed-menu li.prev a::before,
.fixed-menu li.prev button::before,
.fixed-menu li.prev span::before {
  content: "\e5cb";
}
.fixed-menu li.next a::before,
.fixed-menu li.next button::before,
.fixed-menu li.next span::before {
  content: "\e5cc";
}
.fixed-menu li.home a::before,
.fixed-menu li.home button::before,
.fixed-menu li.home span::before {
  content: "\e88a";
}
.fixed-menu li.toc a::before,
.fixed-menu li.toc button::before,
.fixed-menu li.toc span::before {
  content: "\ea19";
}
.fixed-menu li.characters a::before,
.fixed-menu li.characters button::before,
.fixed-menu li.characters span::before {
  content: "\e7fd";
}
.fixed-menu li.images a::before,
.fixed-menu li.images button::before,
.fixed-menu li.images span::before {
  content: "\e413";
}

/* 見出し */
h1 {
  font: 200 40px/1 "Montserrat", "Yu Gothic", Meiryo, "Hiragino Kaku Gothic ProN", sans-serif;
  color: var(--theme-color2-default);
}
h1 a {
  color: var(--theme-color2-default);
}
h1 a:hover {
  background: transparent;
}
h1 span {
  padding: 5px 0 8px 0;
}

h2 {
  position: relative;
  margin-block: 10rem;
  font: 300 40px/1 "Montserrat", "Zen Maru Gothic", "Yu Gothic", Meiryo, "Hiragino Kaku Gothic ProN", sans-serif;
  color: var(--theme-color2-default);
}
h2 span {
  background: var(--bg-color);
  padding-inline-end: 1rem;
}
h2::before {
  content: "";
  position: absolute;
  top: 50%;
  display: block;
  height: 2.5px;
  width: 100%;
  border-radius: 3px;
  background: linear-gradient(to right, var(--gradient));
  z-index: -1;
}

h3, h4, h5, h6 {
  font: 400 2rem/1 "Montserrat", "Zen Maru Gothic", "Yu Gothic", Meiryo, "Hiragino Kaku Gothic ProN", sans-serif;
}

h3 {
  margin-block: 10rem 5rem;
}
h3 span {
  display: inline-block;
  padding: 1.25rem 2.5rem;
  background: linear-gradient(to right, var(--gradient));
  border: 2px solid var(--theme-color1-more-light);
  color: var(--white);
  font-weight: 500;
  text-shadow: 0 3px 10px var(--theme-color1-default);
  letter-spacing: 2px;
}

h4, h5, h6 {
  margin-block: 5rem 2.5rem;
  font-size: 1.6rem;
  font-weight: 500;
  letter-spacing: 6px;
}
h4 span, h5 span, h6 span {
  display: inline-block;
  padding: 0.625rem 2.5rem;
}

h4 span {
  border-block-end: 2px solid var(--theme-color2-default);
}

h5 span {
  border-block-end: 2px solid var(--gray);
}

h6 span {
  border-block-end: 2px dotted var(--gray);
}

/* リスト */
ul.no-style, ol.no-style {
  padding: 0;
  list-style: none;
}
ul.column, ol.column {
  display: flex;
  flex-wrap: wrap;
  gap: 0;
}
ul.column > *, ol.column > * {
  margin: 0 !important;
}
ul.column.gap, ol.column.gap {
  gap: 5px 25px;
}
ul.column.column-2 > *, ol.column.column-2 > * {
  inline-size: calc((100% - 25px) / 2) !important;
}
ul.column.column-3 > *, ol.column.column-3 > * {
  inline-size: calc((100% - 50px) / 3) !important;
}
ul .description, ol .description {
  margin-inline-start: 10px;
}
ul .description::before, ol .description::before {
  content: "…";
  margin-inline-end: 10px;
}
ul .description:has(ul.small), ul .description:has(ol.small), ol .description:has(ul.small), ol .description:has(ol.small) {
  display: flex;
  justify-content: flex-start;
}
ul .description:has(ul.small)::before, ul .description:has(ol.small)::before, ol .description:has(ul.small)::before, ol .description:has(ol.small)::before {
  content: "└";
}
ul .description > ul.small, ol .description > ul.small {
  display: inline-block;
  margin-block: 0;
  margin-inline: 0;
}

dl dd {
  margin-block-end: 1.25rem;
  padding-inline-start: 5rem;
  padding-block-end: 1.25rem;
}
dl dd:last-of-type {
  padding-block-end: 0 !important;
  border-block-end: 0 !important;
}
dl.inline {
  display: flex;
  flex-wrap: wrap;
  gap: 1.25rem 0;
}
dl.inline dt, dl.inline dd {
  margin-block-end: 0;
  padding-block-end: 1.25rem;
}
dl.inline dt:last-of-type, dl.inline dd:last-of-type {
  padding-block-end: 0 !important;
  border-block-end: 0 !important;
}
dl.inline dt {
  inline-size: 200px;
}
dl.inline dd {
  inline-size: calc(100% - 200px);
  padding-inline-start: 0;
}

ul li.next {
  list-style: none;
}
ul li.next::before {
  content: "→";
  margin-inline-end: 5px;
  font-size: 120%;
}
ul.small {
  list-style: none;
  padding-inline-start: 0;
}
ul.small li {
  display: inline;
}
ul.small li::before {
  color: var(--theme-color2-default);
}
ul.small li:not(:first-child):not(.next)::before {
  content: ":";
  margin-block: 0;
  margin-inline: 2px 5px;
  font-weight: 900;
}
ul.small li.next::before {
  margin-block: 0;
  margin-inline: 2px 7px;
}

dl dd {
  border-block-end: 2px solid var(--theme-color2-more-light);
}
dl.inline dt,
dl.inline dd {
  border-block-end: 2px solid var(--theme-color2-more-light);
}
dl.border {
  padding-block: 15px;
  padding-inline: 20px;
  border: 2px solid var(--theme-color2-more-light);
  border-radius: 10px;
}

/* フォーム */
.required::after {
  content: "*";
  color: var(--required-color);
}

.form-block {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}
.form-block > dl:first-child {
  margin-block-start: 0;
}
.form-block > dl:last-of-type {
  margin-block-end: 0;
}
.form-block dl dt,
.form-block dl dd {
  margin: 0;
  padding: 0;
  border-block-end: 0;
}
.form-block dl dd > * {
  margin: 0;
}
.form-block dl.inline {
  gap: 1.25rem 0;
}
.form-block dl.inline dt {
  inline-size: 130px;
}
.form-block dl.inline dd {
  inline-size: calc(100% - 130px);
}
.form-block > *,
.form-block dl dd > * {
  inline-size: 100%;
}

input,
textarea,
select,
input[type=submit],
input[type=button],
button {
  border-radius: 10px;
  border: 2px solid var(--theme-color1-more-light);
  transition: border-color var(--animation);
}
input:hover, input:focus,
textarea:hover,
textarea:focus,
select:hover,
select:focus,
input[type=submit]:hover,
input[type=submit]:focus,
input[type=button]:hover,
input[type=button]:focus,
button:hover,
button:focus {
  border-color: var(--theme-color1-light);
}

input[type=submit],
input[type=button],
button {
  background: var(--theme-color1-more-light);
}

/* リンク */
a.arrow::before, span.arrow::before {
  content: "\e5cc";
  margin-right: 5px;
  font-family: "Material Symbols Rounded";
  vertical-align: middle;
}
a.btn, span.btn {
  overflow: hidden;
  padding: 5px 7px;
  font-weight: bold;
  background: var(--theme-color1-more-light);
  border: 2px solid var(--theme-color1-more-light);
  border-radius: 10px;
  color: var(--theme-color1-strong);
}
a.btn.btn-block, span.btn.btn-block {
  display: block;
  margin-top: 10px;
  margin-bottom: 10px;
  text-align: center;
}
a.btn.btn-arrow::after, span.btn.btn-arrow::after {
  content: "\e5cc";
  margin-left: 5px;
  font-family: "Material Symbols Rounded";
  vertical-align: middle;
}
a.btn.btn-arrow.btn-block, span.btn.btn-arrow.btn-block {
  position: relative;
  padding-right: 30px;
}
a.btn.btn-arrow.btn-block::after, span.btn.btn-arrow.btn-block::after {
  position: absolute;
  right: 5px;
}
a.ebs-link-btn, span.ebs-link-btn {
  padding: 5px 7px;
  border: 2px solid var(--theme-color1-more-light);
  color: var(--theme-color1-strong);
  font-weight: bold;
}
a.ebs-link-btn:hover, span.ebs-link-btn:hover {
  opacity: 1;
}

a {
  color: var(--theme-color1-strong);
  transition: background var(--animation);
}
a:hover {
  background: var(--theme-color1-more-light);
}
a.btn, a.btn-block, a.ebs-link-btn {
  transition: border-color var(--animation);
}
a.btn:hover, a.btn-block:hover, a.ebs-link-btn:hover {
  border-color: var(--theme-color1-light);
}

span.ebs-link-btn {
  filter: grayscale(1);
}

span.btn, span.btn-block {
  filter: grayscale(1);
}

/* 装飾 */
b, em, strong {
  font-weight: bold;
}

em {
  font-style: normal;
  background: linear-gradient(transparent 50%, var(--theme-color2-more-light) 50%);
}

strong {
  background: var(--theme-color2-more-light);
}

hr {
  max-width: 500px;
  margin: 10rem auto;
  border: 0;
  border-bottom: 10px dotted var(--theme-color2-more-light);
}

.box {
  padding: 20px;
  border: 2px solid var(--theme-color2-more-light);
  border-radius: 10px;
}
.box > *:first-child {
  margin-block-start: 0;
  padding-block-start: 0;
}
.box > *:last-child {
  margin-block-end: 0;
  padding-block-end: 0;
}

.scrollbox {
  overflow-y: auto;
  max-block-size: 14rem;
}
.scrollbox::-webkit-scrollbar {
  inline-size: 10px;
}
.scrollbox::-webkit-scrollbar-track {
  background-color: transparent;
}
.scrollbox::-webkit-scrollbar-thumb {
  background-color: var(--theme-color2-more-light);
  border-radius: 10px;
}
.scrollbox > *:first-child {
  margin-block-start: 0;
  padding-block-start: 0;
}
.scrollbox > *:last-child {
  margin-block-start: 0;
  padding-block-start: 0;
}

.onlyrow {
  white-space: nowrap;
  text-overflow: ellipsis;
  overflow: hidden;
}

.material-symbols-rounded {
  font-size: initial;
  vertical-align: unset;
}

.column {
  display: grid;
  grid-template-columns: 1fr;
  gap: 25px;
  margin-block: 2.5rem;
  margin-inline: auto;
}
.column > * {
  margin: 0 !important;
}
.column.column-2 {
  grid-template-columns: repeat(2, 1fr);
}
.column.column-3 {
  grid-template-columns: repeat(3, 1fr);
}

.text-left {
  text-align: left;
}
.text-center {
  text-align: center;
}
.text-right {
  text-align: right;
}
.text-bold {
  font-weight: bold;
}
.text-small {
  font-size: smaller;
}
.text-large {
  font-size: larger;
}

/* ▼ novel viewerを使用しない場合は削除してOK ▼ */
.env-writing-mode-vertical::-webkit-scrollbar {
  inline-size: 10px;
}
.env-writing-mode-vertical::-webkit-scrollbar-track {
  background-color: transparent;
}
.env-writing-mode-vertical::-webkit-scrollbar-thumb {
  background-color: var(--theme-color1-more-light);
}

/* ▲ novel viewerを使用しない場合は削除してOK ▲ */
/* インデックス */
#INDEX {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  min-height: 100vh;
}
#INDEX main, #INDEX footer {
  max-width: 500px;
  width: 100%;
}
#INDEX main {
  position: relative;
  padding: 5rem;
  border: 5px solid var(--theme-color2-default);
  border-image: linear-gradient(to bottom, var(--gradient));
  border-image-slice: 1;
}
#INDEX main h1 {
  position: absolute;
  top: -50px;
  left: 0;
}
#INDEX footer {
  padding: 0;
}
/* 点滅 */
.blink {
	animation: blinking 1s ease-in-out infinite alternate;
}
 
@keyframes blinking {
	0% {opacity: 0;}
	100% {opacity: 1;}
}
/* ----- ▲ PCレイアウト　ここまで ▲ ----- */
/* ----- ▼ SPレイアウト　ここから ▼ ----- */
@media only screen and (max-width: 1000px) {
  /* 基本 */
  body,
  button,
  input,
  textarea {
    font-size: 1.6rem;
    line-height: 2.65rem;
  }
  body.get-header main {
    margin-block-start: calc(100vw + 150px);
  }
  body.fix-menu header {
    height: 174px;
  }
  body.fix-menu header h1 {
    transform: none;
    text-align: center;
  }
  body.fix-menu header h1 span {
    letter-spacing: 10px;
  }
  body.fix-menu main {
    margin-block-start: 204px;
  }
  header, main, footer {
    width: 100%;
  }
  header {
    position: absolute;
    left: auto;
    display: flex;
    flex-direction: column;
    gap: 20px;
    height: calc(100vw + 134px);
  }
  header h1 {
    position: relative !important;
    top: auto !important;
    left: auto !important;
  }
  header h1::after {
    width: calc(100vw - 60px);
    height: calc(100vw - 60px);
    margin-inline: auto;
  }
  header.scroll h1 {
    top: auto;
    left: auto;
    transform: none;
  }
  main, footer {
    padding-inline: 2.5rem;
  }
  /* メニュー */
  /* メニュー */
  .menu {
    top: -80px;
    left: auto;
    margin: auto;
    height: 74px;
    width: 100%;
    padding: 1.25rem 2.5rem;
    background: var(--bg-color);
    z-index: 90;
  }
  .menu ul {
    display: flex;
    justify-content: space-between;
  }
  .menu ul li a::after {
    content: none;
  }
  .menu.scroll {
    position: fixed;
    top: 0;
    left: 0;
  }
  .fixed-menu ul {
    display: flex;
  }
  /* 見出し */
  /* リスト */
  ul.no-style, ol.no-style {
    padding: 0;
    list-style: none;
  }
  ul.column, ol.column {
    display: flex;
    flex-direction: column;
  }
  ul.column.column-2 > *, ul.column.column-3 > *, ol.column.column-2 > *, ol.column.column-3 > * {
    inline-size: 100% !important;
  }
  ul .description, ol .description {
    display: block;
    margin-inline-start: 10px;
  }
  ul .description::before, ol .description::before {
    content: "└";
    margin-inline-end: 10px;
  }
  dl.border, dl.inline {
    display: block;
  }
  dl.border dt, dl.border dd, dl.inline dt, dl.inline dd {
    inline-size: 100%;
  }
  dl.border dt, dl.inline dt {
    padding-block-end: 0;
    border-block-end: 0;
  }
  dl.border dd, dl.inline dd {
    padding-inline-start: 5rem;
    margin-block-end: 1.25rem;
  }
  dl.border dd:last-of-type, dl.inline dd:last-of-type {
    margin-block-end: 0;
  }
  /* フォーム */
  .form-inline input {
    inline-size: 40%;
  }
  .form-block dl {
    flex-direction: column;
  }
  .form-block dl.inline dt, .form-block dl.inline dd {
    inline-size: 100%;
  }
  /* リンク */
  /* 装飾 */
  .column.column-sp-1 {
    grid-template-columns: 1fr;
  }
  .column.column-sp-2 {
    grid-template-columns: repeat(2, 1fr);
  }
  .column.column-sp-3 {
    grid-template-columns: repeat(3, 1fr);
  }
  /* インデックス */
  /* インデックス */
  #INDEX main, #INDEX footer {
    max-width: calc(100% - 50px);
  }
  #INDEX main {
    margin-block-start: 0;
  }
}
/* 点滅 */
.blink {
	animation: blinking 1s ease-in-out infinite alternate;
}
 
@keyframes blinking {
	0% {opacity: 0;}
	100% {opacity: 1;}
}
/* ----- ▲ SPレイアウト　ここまで ▲ ----- */
:root {
  /** 間隔の設定 **/
  /* 頒布物間 */
  --ebs-gap: 30px;
  /* 画像・テキスト間 */
  --ebs-inner-gap: 15px;
  /* newマーク・背景色 */
  --ebs-new-bg-color: var(--theme-color2-more-light);
  /* newマーク・テキスト色 */
  --ebs-new-text-color: var(--theme-color2-dark);
  /** ebs-borderの設定 **/
  /* 線幅 */
  --ebs-border-width: 2px;
  /* 線色 */
  --ebs-border-color: var(--theme-color2-more-light);
  /* 角丸サイズ */
  --ebs-border-radius: 10px;
  /* 内側余白 */
  --ebs-border-inner-space: 10px;
  /** 装飾の設定 **/
  /* 下線（色） */
  --ebs-text-border-color: var(--gray);
  /* 下線（幅） */
  --ebs-text-border-width: 2px;
  /* 強調テキスト背景色 */
  --ebs-text-em-bg-color: var(--theme-color2-more-light);
  /* ボタン風リンク（テキスト色） */
  --ebs-link-btn-text-color: var(--theme-color1-strong);
  /* ボタン風リンク（背景色） */
  --ebs-link-btn-bg-color: var(--theme-color1-more-light);
  /* ボタン風リンク（角丸サイズ） */
  --ebs-link-btn-radius: 10px;
}

.ebs-base {
  display: flex;
  flex-direction: column;
  gap: var(--ebs-gap);
}

.ebs-base > div {
  display: flex;
  gap: var(--ebs-inner-gap);
  box-sizing: border-box;
}

.ebs-base > div img {
  max-width: 100%;
}

.ebs-base > div.ebs-reverse {
  flex-direction: row-reverse;
}

.ebs-base > div.ebs-reverse.new .ebs-img::after {
  left: auto;
  right: -27px;
  transform: rotate(45deg);
}

.ebs-base > div.new .ebs-img {
  position: relative;
  overflow: hidden;
}

.ebs-base > div.new .ebs-img::after {
  content: "new";
  position: absolute;
  top: -27px;
  left: -27px;
  display: flex;
  justify-content: center;
  align-items: end;
  width: 54px;
  height: 54px;
  padding: 3px;
  background: var(--ebs-new-bg-color);
  color: var(--ebs-new-text-color);
  font-size: 12px;
  line-height: 1;
  transform: rotate(-45deg);
  box-sizing: border-box;
}

.ebs-base > div .ebs-img {
  width: 150px;
}

.ebs-base > div .ebs-img img {
  display: block;
}

.ebs-base > div .ebs-text {
  width: calc(100% - 150px - var(--ebs-inner-gap));
  text-align: left;
}

.ebs-base > div .ebs-text > *:first-child {
  margin-top: 0;
}

.ebs-base > div .ebs-text > *:last-child {
  margin-bottom: 0;
}

.ebs-base.ebs-col > div {
  flex-direction: column;
}

.ebs-base.ebs-sm > div .ebs-img {
  width: 100px;
}

.ebs-base.ebs-sm > div .ebs-text {
  width: calc(100% - 100px - var(--ebs-inner-gap));
}

.ebs-base.ebs-lg > div .ebs-img {
  width: 200px;
}

.ebs-base.ebs-lg > div .ebs-text {
  width: calc(100% - 200px - var(--ebs-inner-gap));
}

.ebs-base.ebs-line-2,
.ebs-base.ebs-line-3,
.ebs-base.ebs-line-4,
.ebs-base.ebs-line-5 {
  display: grid;
  gap: var(--ebs-gap);
}

.ebs-base.ebs-line-2 > div > *,
.ebs-base.ebs-line-3 > div > *,
.ebs-base.ebs-line-4 > div > *,
.ebs-base.ebs-line-5 > div > * {
  width: 100%;
}

.ebs-base.ebs-line-2 {
  grid-template-columns: repeat(2, 1fr);
}

.ebs-base.ebs-line-3 {
  grid-template-columns: repeat(3, 1fr);
}

.ebs-base.ebs-line-4 {
  grid-template-columns: repeat(4, 1fr);
}

.ebs-base.ebs-line-5 {
  grid-template-columns: repeat(5, 1fr);
}

.ebs-base.ebs-border > div {
  border: var(--ebs-border-width) solid var(--ebs-border-color);
  border-radius: var(--ebs-border-radius);
  overflow: hidden;
  padding: var(--ebs-border-inner-space);
}

.ebs-base.ebs-border > div > *:first-child {
  border-radius: var(--ebs-border-radius) 0 0 var(--ebs-border-radius);
}

.ebs-base.ebs-border > div > *:last-child {
  border-radius: 0 var(--ebs-border-radius) var(--ebs-border-radius) 0;
}

.ebs-base.ebs-border > div .ebs-text {
  padding: var(--ebs-inner-gap);
}

.ebs-base + .ebs-base {
  margin-top: var(--ebs-gap);
}

.ebs-text-sm {
  font-size: smaller;
}

.ebs-text-lg {
  font-size: larger;
}

.ebs-text-em {
  background: var(--ebs-text-em-bg-color);
}

.ebs-text-bold {
  font-weight: bold;
}

.ebs-text-border {
  border-bottom: var(--ebs-text-border-width) solid var(--ebs-text-border-color);
}

.ebs-link-btn {
  display: inline-block;
  padding: 5px 8px;
  background: var(--ebs-link-btn-bg-color);
  border: 0;
  border-radius: var(--ebs-link-btn-radius);
  text-decoration: none;
  color: var(--ebs-link-btn-text-color);
}

.ebs-link-btn:hover {
  opacity: 0.5;
}

.ebs-link-btn.ebs-link-btn-block {
  display: block;
  width: 100%;
  text-align: center;
}

@media only screen and (max-width: 1000px) {
  .ebs-base:not(.ebs-col).ebs-line-2,
  .ebs-base:not(.ebs-col).ebs-line-3,
  .ebs-base:not(.ebs-col).ebs-line-4,
  .ebs-base:not(.ebs-col).ebs-line-5 {
    grid-template-columns: 1fr;
  }
  .ebs-base.ebs-col.ebs-line-4,
  .ebs-base.ebs-col.ebs-line-5 {
    grid-template-columns: repeat(3, 1fr);
  }
}