html,
body {
  color: #1a1a1a;
  font-style: normal;
  font-weight: normal;
  line-height: 1;
  margin: 0;
  padding: 0;
  position: relative;
}

html {
  font-size: 1rem;
  scroll-behavior: smooth;
}

/* モーダル表示中にスクロール禁止（スクロールバーは維持） */
html.modal-open {
  overflow: hidden;
}

body {
  background-color: #ffffff;
  font-size: clamp(0.875rem, 0.625rem + 0.5vw, 1rem);
  font-family: "Noto Sans JP", sans-serif;
  font-optical-sizing: auto;
  font-weight: 400;
  font-style: normal;
  display: flex;
  flex-direction: column;
  letter-spacing: 0.1em;
  min-height: 100vh;
  width: 100%;
}

header,
footer {
  flex-shrink: 0;
}

footer {
  margin-top: 7.5rem;
}

main {
  flex: 1 0 auto;
  min-height: 1px;
  overflow: hidden;
}

*,
*:before,
*:after {
  -moz-box-sizing: border-box;
  box-sizing: border-box;
  overflow-wrap: break-word;
  word-wrap: break-word;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  color: #1a1a1a;
  font-size: 1rem;
  font-weight: 325;
  letter-spacing: 0.1em;
  line-height: 150%;
  font-feature-settings: "palt" 1;
  -webkit-font-feature-settings: "palt" 1;
  -moz-font-feature-settings: "palt" 1;
}

a {
  color: #1a1a1a;
  text-decoration: none;
}

a:hover {
  opacity: 0.5;
}

a.boxlink:before {
  bottom: 0;
  content: "";
  display: block;
  height: 100%;
  left: 0;
  position: absolute;
  right: 0;
  top: 0;
  width: 100%;
  z-index: 10;
}
a.boxlink:hover:before {
  background-color: #fff;
}

i {
  margin-right: 0.25em;
}

img {
  border-radius: 0.5rem;
  height: auto;
  max-width: 100%;
  vertical-align: middle;
  _width: 100%;
}

strong {
  font-weight: bold;
}

em {
  font-style: italic;
}

mark {
  background: linear-gradient(transparent 50%, #fde89d 50%);
}

/* テーブルの基本設定 */
table {
  width: 100%;
  border-collapse: collapse; /* セルを密着させる */
}

/* セルのスタイル */
th,
td {
  padding: 2rem 1rem 2rem 0; /* セル内の余白 */
  background-color: #fff; /* 背景色 */
  text-align: left; /* 中央揃え */
  position: relative; /* 擬似要素の基準位置 */
  border-bottom: 1px solid #000;
  line-height: 175%;
}

tr:first-child th,
tr:first-child td {
  padding-top: 0;
}

/* 横方向のセル間スペース */
td + td,
th + td {
  border-left: 1rem solid transparent; /* セル間のスペース */
}

ul,
ol {
  margin: 0;
  padding: 0;
}

p {
  line-height: 175%;
}

blockquote {
  background: #efefef;
  color: #555;
  font-style: italic;
  padding: 1em 1em 1em 3em;
  position: relative;
}

blockquote:before {
  color: #cfcfcf;
  content: "\f10d";
  display: inline-block;
  font-family: "icomoon";
  font-size: 1em;
  font-weight: 900;
  left: 1em;
  line-height: 1;
  position: absolute;
  top: 1em;
}

blockquote p:last-child {
  margin-bottom: 0;
}

section {
  margin-top: 5rem;
}

section > * + * {
  margin-top: 3.5rem;
}

main > section,
main > section > section + section {
  margin-top: 7.5rem;
}

@media screen and (max-width: 769px) {
  main > section {
    margin-top: 3.5rem;
  }
}

.unit {
  margin-left: auto;
  margin-right: auto;
  max-width: 1280px;
  padding: 0 2.5rem;
  position: relative;
}

[class*="flexbox"] {
  display: flex;
  display: -ms-flexbox;
}

[class*="flexbox"] > * {
  min-width: 0;
}

[class*="btn"] {
  align-items: center;
  background: #fff;
  border: 1px solid #000;
  border-radius: 0.5rem;
  color: #000;
  display: flex;
  justify-content: center;
  line-height: 1;
  margin-top: 5rem;
  padding: 1.5rem 4.5rem;
  position: relative;
  text-align: center;
  text-decoration: none;
  width: fit-content;
}

[class*="btn"]::after {
  content: url("../images/icon/circle-right-thema.svg");
  display: block;
  height: 1.5rem;
  margin-bottom: auto;
  margin-top: auto;
  position: absolute;
  right: 1.5rem;
  width: 1.5rem;
}

[class*="btn"].center {
  margin-left: auto;
  margin-right: auto;
}

@media screen and (max-width: 769px) {
  [class*="btn"] {
    margin-top: 1rem;
  }
}

.center {
  text-align: center;
}

.aligncenter {
  display: block;
  margin-left: auto;
  margin-right: auto;
  text-align: center;
}

.alignnone {
  display: inline-block;
  margin: 0;
}

.alignright {
  display: block;
  margin-left: auto;
  margin-right: 0;
  text-align: right;
}

.alignleft {
  display: block;
  margin-left: 0;
  margin-right: auto;
  text-align: left;
}

.show-m {
  display: none;
}

.hide-m {
  display: block;
}

@media screen and (max-width: 769px) {
  .show-m {
    display: block;
  }

  .hide-m {
    display: none;
  }
}

.unit-column {
  display: flex;
  column-gap: 3rem;
}

.unit-column.reverse {
  flex-direction: row-reverse;
}

.unit-column > * {
  flex: 1;
}

@media screen and (max-width: 1024px) {
  .unit-column,
  .unit-column.reverse {
    flex-direction: column;
    row-gap: 1rem;
  }
}

.unit-content > :not(:first-child):not(p + p) {
  margin-top: 2.5rem;
}

.unit-content p + p {
  margin-top: 1rem;
}

.title-ff {
  font-size: clamp(2rem, 1.375rem + 1vw, 2.5rem);
}

.title-f {
  font-size: clamp(1.75rem, 1.25rem + 0.9vw, 2.1rem);
}

.title-mf {
  font-size: clamp(1.375rem, 1rem + 0.85vw, 1.75rem);
  font-weight: 400;
}

.title-bold {
  font-size: clamp(1.125rem, 0.875rem + 0.6vw, 1.375rem);
  font-weight: 500;
}

.title-nomal {
  font-size: clamp(1.125rem, 0.875rem + 0.6vw, 1.375rem);
  font-weight: 300;
}

.title-page {
  font-size: clamp(0.95rem, 0.75rem + 0.45vw, 1.125rem);
  font-weight: 400;
}

.title-badge {
  background-color: #000;
  border-radius: 999rem;
  color: #fff;
  display: block;
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  line-height: 1;
  padding: 0.5rem 2rem;
  position: relative;
  width: fit-content;
  white-space: nowrap;
}

.title-badge.big {
  font-size: 1rem;
}

.title-badge::before {
  background-color: #f3131e;
  content: "";
  display: block;
  height: 2px;
  left: 2rem;
  position: absolute;
  top: 0;
  width: 1rem;
}

.title-badge.top {
  margin-bottom: 2rem;
}

.title-badge.bottom {
  margin-top: 1rem;
}

[class*="title"].center .title-badge {
  margin-left: auto;
  margin-right: auto;
}

.left-border {
  padding: 1rem 0;
  position: relative;
}

.left-border::before {
  background-color: #000;
  content: "";
  display: block;
  height: 100%;
  left: -2.5rem;
  position: absolute;
  top: 0;
  width: 0.5rem;
}

.pankuzu {
  color: #d9d9d9;
  display: flex;
  font-size: 10px;
  justify-content: flex-end;
  list-style: none;
  width: 100%;
}

.pankuzu li:not(:last-child)::after {
  content: ">";
  display: inline-flex;
  margin: 0 0.25rem;
}

.pankuzu a {
  color: #d9d9d9;
}

@media screen and (max-width: 769px) {
  .pankuzu {
    margin-top: 1rem;
  }
}

.note-lists {
  line-height: 175%;
  list-style: inside;
  list-style-type: disc;
  margin-top: 1rem;
}

.info-notes {
  color: rgba(0, 0, 0, 0.5);
  font-size: 11px;
  line-height: 150%;
  list-style: none;
  margin-top: 2rem;
  text-align: right;
}

.aside-nav {
  background-color: #f2f2f2;
  padding: 4rem 0;
}

/* モーダルの基本スタイル */
.modal {
  align-items: center;
  background-color: rgba(0, 0, 0, 0.5);
  display: none;
  height: 100vh;
  justify-content: center;
  left: 0;
  overflow: hidden;
  position: fixed;
  top: 0;
  width: 100vw;
  z-index: 1000;
}

/* モーダルコンテンツ */
.modal-content {
  background: #ffffff;
  border-radius: 0.5rem;
  border-radius: 0.5rem;
  box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.3);
  max-height: 90vh;
  max-width: 90%;
  padding: 1rem;
  position: relative;
  text-align: center;
  width: 980px;
}

/* 閉じるボタン */
.close {
  cursor: pointer;
  font-size: 1rem;
  font-weight: bold;
  position: absolute;
  top: 1rem;
  right: 1rem;
}

/* モーダル表示中は body のスクロールを無効化 */
body.modal-open {
  overflow: hidden;
}

/* 初期状態では非表示 */
@media (max-width: 1280px) {
  header nav[role="navigation"] {
    display: none;
  }

  /* JavaScriptで表示する際のクラス */
  .drawer-nav {
    display: block !important;
  }

  .drawer-hamburger {
    height: 20px;
    padding: 1.5rem 1rem;
    position: initial;
  }

  .drawer-hamburger-icon,
  .drawer-hamburger-icon:after,
  .drawer-hamburger-icon:before {
    margin: 0;
  }
}
