/* 基本設定 */
:root {
  --font-main: 'Noto Sans JP', sans-serif;
  --font-heading: 'Noto Sans JP', sans-serif;
  --color-text: #333333;
  --color-background: #ffffff;
  --color-accent: #3366cc;
  --line-height-text: 1.6;
  --line-height-heading: 1.3;
}

/* ダークモード対応 */
@media (prefers-color-scheme: dark) {
  :root {
    --color-text: #f0f0f0;
    --color-background: #121212;
    --color-accent: #7aa6ff;
  }
}

/* ベースとなる文書構造 */
html {
  font-size: 62.5%;
}
body{
  margin:0px;
  padding:0px;
}

header {
  display: flex;
  margin: 0;
  padding: 0;
  width: 100%;
  height: auto;
  background-color: #fff;
  text-align: center;
}
header img{
  margin: 0 auto;
  padding: 0;
}

footer {
  display: flex;
  justify-content: center;
  width: 100%;
  margin: 0 auto;
  padding: 0;
  background-color: #333b8f;
  background-size: cover;
  font-size: 1rem;
  color: #ffffff;
 }
footer p {
   margin:  10px;
}
footer a {
   color: #ffffff;
   font-weight: 900;
}
footer a:hover {
   color: #cccccc;
   font-weight: 900;
}
#QR {
 margin:  10px;
 padding: 0;
}

main {
  font-family: var(--font-main);
  font-size: 1.6rem;
  line-height: var(--line-height-text);
  color: var(--color-text);
  background-color: var(--color-background);
  max-width: 78ch; /* 読みやすい行の長さ制限 */
  margin: 0 auto; /* 中央寄せ */
  padding: 0 2rem; /* モバイル対応の余白 */
}

/* 見出し設定 */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  line-height: var(--line-height-heading);
  margin-top: 2em;
  margin-bottom: 0.5em;
}

h1 {
  font-size: clamp(2.4rem, 2rem + 3vw, 3.6rem);
  color: #ffffff;
  margin: auto;
  max-width: 78ch; /* 読みやすい行の長さ制限 */
  font-family: "Zen Maru Gothic", serif;
  font-weight: 900;
}
.small {
  font-size: clamp(1.8rem, 1.4rem + 1vw, 2.2rem);
}

h2 {
  margin: 0;
  padding: 0;
  font-size: clamp(2rem, 1.6rem + 2vw, 2.8rem);
}

h3 {
  font-size: clamp(1.8rem, 1.4rem + 1vw, 2.2rem);
  color: #c50018;
  text-align: center;
  font-family: "Zen Maru Gothic", serif;

}

/* 段落と余白 */
p {
  margin-bottom: 1.5em;
  max-width: 72ch; /* 最大文字数制限で読みやすく */
}

/* リストの最適化 */
ul, ol {
  padding-left: 2.5rem;
  margin-bottom: 1.5em;
}

li {
  margin-bottom: 0.5em;
}

/* レスポンシブ対応 */
@media (max-width: 768px) {
  body {
    font-size: 1.5rem; /* モバイルでは少し小さく */
  }
  
  ul, ol {
    padding-left: 2rem;
  }
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

img {
  width: 100%;
  margin: auto;
}
img.map {
  border: 2px solid #e0e0e0;
}
/* メニューの横並び・中央揃え・レスポンシブ対応 */
menu {
  display: flex;
  justify-content: center;
  width: 100%;
  margin: 2rem 0;
  padding: 0;
  font-family: var(--font-main);
}

menu ul {
  display: flex;
  justify-content: center;
  gap: 0;
  list-style: none;
  margin: 0 auto;
  padding: 0;
  width: 100%;
  max-width: 800px;
}

menu li {
  flex: 1;
  max-width: 240px;
  border: 1px solid #ccc;
  background-color: #ffffff;
  text-align: center;
  transition: background-color 0.3s;
}
menu li.none {
  background-color: #f9f9f9;
}
menu li:not(.none):hover {
  background-color: #e0e0e0;
}

menu a,
menu .plane {
  display: block;
  width: 100%;
  height: 100%;
  padding: 1rem 0;
  text-decoration: none;
  color: var(--color-text);
  font-size: 1.6rem;
}

.strong {
  font-weight: 900;
  color: #0063b2;
  font-size: clamp(1.8rem, 1.4rem + 2vw, 2.6rem);
  text-align: center;
  font-family: "Zen Maru Gothic", serif;
}

.attention {
  max-width: 80%;
  width: 30em;
  margin: 1em 0 1.6em auto;
  padding: 0;
}
.attention p {
  margin: 0;
  padding: 0;
  font-size: clamp(1rem, 0.8rem + 2vw, 1.4rem);
  color: #e60012;
  text-indent: -1em;
  padding-left: 1em;
 }

hr {
  height: 0;
  margin: 0;
  padding: 0;
  border: 0;
}
.hr1 {
  border-top: 2px solid #e0e0e0;
  margin-bottom: 1em;
}

.container {
  margin-top: 2rem;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
}
.item {
  align-self: center;
  width: 30%;
  max-width: 240px;
  margin-right: 3%;
}
.item img {
  border: solid 1px #fff;
}
.item img:hover {
  transition: background-color 0.5s;
  border: solid 1px #999;
}

.copy {
  color: #0063b2;
}
.name {
  font-weight: 900;
  font-size: 1.1em;
}
ol li a {
  color: #999;
  font-size: 0.9em;
  overflow-wrap: break-word;
}
.listmark-num > li:not(.nonum){
padding-left: 60px;
padding-right: 30px;
padding-bottom: 1rem;
}
.listmark-num > li:not(.nonum):before {
content: counter(my-counter); /* カウンター「my-counter」を呼び出す */
counter-increment: my-counter; /* この要素が現れる度にカウンター「my-counter」が加算されていく、 */
background-color: #0068b3;
border: solid 2px #009fe6;
display: block;
float: left;
margin-top: 2px;
color: #fff;
letter-spacing: -0.5pt;
text-indent: -0.5pt;
line-height: 20px; /* 行間を高さと同じにすることで、上下中央に配置させる */
margin-left: -30px;
text-align: center;
height: 20px;
width: 20px; /* width、heightを同じ数値にして、正方形にする */
border-radius: 50%; /* 要素を丸にする（正方形なので、正円となる） */
}
.listmark-num > li:not(.nonum):after{
content: "";
display: block;
height: 0;
font-size: 0;
clear: both;
}
.listmark-num{
list-style-type: none;
counter-reset: my-counter; /* ol本体でカウンターをリセット – このクラスが呼び出される度に1からカウントされるようにする */
padding: 0;
}
.listmark-num > li.nonum{
padding-left: 60px;
padding-right: 30px;
}
.listmark-num > li.nonum:before {
content: counter(nul);
background-color: #0068b3;
border: solid 2px #009fe6;
display: block;
float: left;
margin-top: 2px;
color: #0068b3;
letter-spacing: -0.5pt;
text-indent: -0.5pt;
line-height: 20px;
margin-left: -30px;
text-align: center;
height: 20px;
width: 20px;
border-radius: 50%;
}

iframe {
  width: 100%;
  margin: auto;
  border: 2px solid #e0e0e0;
}

https://qiita.com/YushiYamamoto/items/2c0563a8cbd3cae6057a