@import url('https://fonts.googleapis.com/css2?family=Yusei+Magic&display=swap');

html, body {
  background-color: black;
}

/* 目次でリンク移動したときにリンク先に画面が表示されるようにしている */
.body-h1 {
  scroll-margin-top: 20vh; /* 画面の40%分だけ上に余白を作る */
}

.main {
  max-width: 1440px;
  padding: 0 20px;
  margin: 0 auto;
  font-family: "Yusei Magic", sans-serif;
  font-weight: 400;
  font-style: normal;
}

.main-main {
  font-family: "Yusei Magic", sans-serif;
  font-weight: 400;
  font-style: normal;
  background-image: url("/img/main/Earth.jpg");
  width: 100vw;           /* ビューポート幅いっぱい */      
  height: auto;                 
  background-size: cover; /* 画面サイズに合わせて拡大縮小 */
  background-position: center;
  background-repeat: no-repeat;
  margin: 0 auto;
  padding: 0 8px;
}



/* プレコード要素の編集 */
code {
  font-weight: bold;
}

pre {
  padding: 10px; 
  margin: 20px 0;
  border: 2px solid black;
  overflow: auto;   /* スクロールバー */  
  line-height: 1.5;   /* 行間 */
}

pre, code {
  display: block;
}

pre:hover {
  background-color: #B1DDE6;
  color: tomato;
}
/* プレコード要素の編集 */

/* メニュー */

.menu {
  color: #fff;
  text-align: center;
}

.menu-summary {
  padding: 24px 0;
  font-size: 48px;
  list-style: none;
  display: flex;              /* 横並びにする */
  align-items: center;        /* 縦中央揃え */
  justify-content: center;    /* 横中央揃え */
  gap: 16px;                  /* アイコンとテキストの間隔 */
}

.menu-summary::before {
  content: "<";
  font-size: 1.2em;
  vertical-align: middle;
  /* flexアイテムなので中央揃う */
}

.menu-summary::after {
  content: ">";
  font-size: 1.2em;
  vertical-align: middle;
  /* flexアイテムなので中央揃う */
}

.menu-summary:hover {
  color: tomato;
}

.menu-a h3 {
  font-size: 1.5em;
  margin: 24px 0;
}

.menu-a h3:hover {
  color: tomato;
}


/* メインタイトル */
.main-text {
  text-align: center;
  font-size: 60px;
  margin-top: 200px;
  color: #fff;
}

.main-text-work {
  text-align: center;
  font-size: 60px;
  margin-top: 200px;
  color: #fff;
}

.main-div {
  background-color: #fff;
  padding: 20px 50px; 
  margin: 50px auto;
}

.main-inner-div {
  text-align: center;
  margin: 20px auto;
  line-height: 1.5;
}

.body-h1 {
  font-size: 40px;
  font-weight: bold;
  text-align: center;
  padding: 20px;
  font-family: "Yuji Mai", serif;
}

.main-inner-div h2 {
  font-size: 30px;
  text-align: center;
}

.body-img {
  width: 100%;
  height: auto;
}
/******************************************* ここまでは流用 ****************************************/

/******************************************* HTML編 **********************************************/

.ain-div {
  list-style: initial; /* デストロイCSSで消されてるから表示させてる */
  margin-left: 1.5em; /* 必要ならインデントも追加 */
}

.main-div ol {
  list-style-type: decimal; /* デストロイCSSで消されてるから表示させてる */
  margin-left: 1.5em; /* 必要ならインデントも調整 */
}

.main-div menu {
  list-style-type: disc; /* デストロイCSSで消されてるから表示させてる */
  margin-left: 1.5em; /* 必要に応じてインデント調整 */
}

.a-link-h2 {
  color: blue;
  text-decoration: underline;
  text-decoration-color: blue;
  text-decoration-thickness: 2px;
  text-underline-offset: 5px;
  font-size: 20px;
  font-weight: bold;
  padding: 20px;
}

.a-link-h2:hover {
  color: red;
  text-decoration: underline;
  text-decoration-color: red;
  text-decoration-thickness: 2px;
  text-underline-offset: 5px;
}

.test-a {
  color: blue;
  text-decoration: underline;
  text-decoration-color: blue;
  text-decoration-thickness: 2px;
  text-underline-offset: 5px;
  font-size: 20px;
  font-weight: bold;
  padding: 20px;
}

.test-a:hover {
  color: red;
  text-decoration: underline;
  text-decoration-color: red;
  text-decoration-thickness: 2px;
  text-underline-offset: 5px;
}

audio {
  width: 100%;
  height: 50px;
  margin-bottom: 20px;
}

.emoji-ul {
  list-style:"\1F600";
}

/* 画像の説明欄表示の文字を中央にしてる*/
figure {
  display: flex;
  flex-direction: column;
  align-items: center;
}

figcaption {
  text-align: center;
  margin-top: 8px;
  font-size: 1em;
  color: black;
}
/* 画像の説明欄表示の文字を中央にしてる*/

.table-div {
  background-color: #ddd;
}

#video-test {
  width: 100%;
}

.center-nav {
  text-align: center;
}

.nav-a-text {
  padding: 10px;
}

/* テーブルタグ装飾装飾 */
.table-class {
  background-color: #fff;
  border-collapse: collapse;
  width: 100%;
  margin: 20px auto 20px auto;
  text-align: center;
}
.heading-text {
  border: 1px solid #ddd;
  padding: 8px; 
  background-color: #f2f2f2;
}
.section-text {
  border: 1px solid #ddd;
  padding: 8px; 
}
.table-tr:hover {
  color: blue;
  background-color: #f1f1f1;
}
/* 特殊記号テーブルタグ装飾装飾 */

iframe {
  width: 100%;
  height: 500px;
}

/* フル画像 */
.full-div {
  width: 100%;
  /* 背景画像 */
  background-image: url(../img/study/back.jpg);
  height: 100vh;   /* 100vhはビューポートの高さの100%を意味 */
  background-size: cover; /* 背景画像が要素全体を覆うようにスケーリングされることを意味 画像のアスペクト比は維持されますが、要素のサイズに合わせて画像が拡大または縮小*/
}

.full-div h2 {
  color: white;
}
.full-div p {
  color: white;
}
/* 重なり画像 */
.z-div {
  position: relative;
  width: 800px;
  height: 500px;
  max-width: 100%;
  margin: 0 auto;
}

.z-div1, .z-div2, .z-div3 {
  position: absolute;
  top: 0;
  left: 0;
  width: 62.5%;   /* 500px/800px = 62.5% */
  height: 100%;
}

.z-div1 {
  background-color: #f1f1;
  z-index: 10;
}

.z-div2 {
  background-color: red;
  z-index: 30;
  width: 37.5%;   /* 300px/800px = 37.5% */
  height: 60%;    /* 300px/500px = 60% */
  top: 10%;       /* 50px/500px = 10% */
}

.z-div3 {
  background-color: blue;
  z-index: 20;
  width: 37.5%;
  height: 60%;
  top: 10%;
  left: 25%;      /* 200px/800px = 25% */
}
/* 重なり画像 */

/******************************************* CSS編 **********************************************/

.application-div {
background-color: #ffffff;
padding: 20px;
border-radius: 10px;
width: 100%;
width: 100%;
margin: 10px auto;
text-align: center;
}

.application-div label {
display: block;
margin-bottom: 5px;
}

.application-div input[type="text"],
.application-div input[type="email"],
.application-div input[type="password"],
.application-div select {
width: 100%;
padding: 10px;
margin-bottom: 15px;
border: 1px solid black;
border-radius: 5px;
font-size: 14px;
box-sizing: border-box;
}

.application-div button {
width: 100%;
padding: 10px;
background-color: #007BFF;
color: white;
border: none;
border-radius: 5px;
font-size: 16px;
cursor: pointer;
transition: background-color 0.3s;
}

.application-div button:hover {
background-color: #0056b3;
color: tomato;
}

/* ラジオボタンとラベルを横並び＆中央配置にする */
.application-div .gender-radio-group {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 1.5em; /* ラジオボタン同士の間隔 */
  margin-bottom: 15px;
}

.application-div .gender-radio-group label {
  display: flex !important;
  align-items: center;
  font-size: 1em;
  gap: 0.3em;
}

.application-div .gender-radio-group input[type="radio"] {
  appearance: radio;  /* 標準のラジオボタンを表示 */
  -webkit-appearance: radio;
  opacity: 1;
  width: 1em;
  height: 1em;
  margin: 0 4px 0 0;
}

/* divの中のPの2個目選択 */
.nth-child-div p:nth-child(2) {
  color: red;
}

/* divの中のPの3個目選択 */
.nth-child-div p:nth-of-type(3) {
  color: blue;
}

/* divの中のP以外を選択 */
.nth-child-div :not(p) {
color: saddlebrown;
}

.menu-css {
  color: black;
  text-align: center;
}

.menu-css-summary {
  padding: 24px 0;
  font-size: 48px;
  list-style: none;
  display: flex;              /* 横並びにする */
  align-items: center;        /* 縦中央揃え */
  justify-content: center;    /* 横中央揃え */
  gap: 16px;                  /* アイコンとテキストの間隔 */
  color: blue;
}

.menu-css-summary::before {
  content: "<";
  font-size: 1.2em;
  vertical-align: middle;
  /* flexアイテムなので中央揃う */
}

.menu-css-summary::after {
  content: ">";
  font-size: 1.2em;
  vertical-align: middle;
  /* flexアイテムなので中央揃う */
}

.menu-css-summary:hover {
  color: tomato;
}

.text-h3 {
  font-size: 1.5rem;
  color: tomato;
}

.p-16 {
  font-size: 16px;
}

.p-32 {
  font-size: 32px;
}

.p-Normal {
  font-weight: normal;
}

.p-bold {
  font-weight: bold;
}

.italic-p {
  font-style: italic;
}

.reb-p {
  color: red;
}

.rgba-p {
  color: rgba(255, 0, 0, 0.5);
}

.line-height-p {
  line-height: 3;
}

.letter-spacing-p {
  letter-spacing: 2em;
}

.underline-p {
  text-decoration: underline;               /* 下線表示 */
}

.overline-p {
  text-decoration: overline;                /* 上線表示 */
}

.underlineoverline-p {
  text-decoration: underline overline;      /* 上線と下線を同時に表示 */
}

.line-through-p {
  text-decoration: line-through;            /* 打ち消し線 */
}

.none-p {
  text-decoration: none;                    /* 線を消す */
}

.decorationcolor-p {
  text-decoration: underline;
  text-decoration-color: tomato;              /* 線の色を赤に */
}

.style-p {
  text-decoration: underline;
  text-decoration-style: solid;      /* 実線 */
}

.style1-p {
  text-decoration: underline;
  text-decoration-style: double;     /* 二重線 */
}

.style2-p {
  text-decoration: underline;
  text-decoration-style: dashed;     /* 破線 */
}

.style3-p {
  text-decoration: underline;
  text-decoration-style: wavy;       /* 破線 */
}

.thickness-p {
  text-decoration: underline;
  text-decoration-thickness: 1px;      /* 1px */
}

.thickness1-p {
  text-decoration: underline;
  text-decoration-thickness: 2px;      /* 2px */
}

.decoration-p {
  text-decoration: underline solid 5px red;
} 

.Rectangle-p {
  border: solid 5px red;
}

.character-p {
  border-top: solid 5px red;        /* 上 */
}

.character1-p {
  border-bottom: solid 5px red;     /* 下 */
}

.character2-p {
  border-right: solid 5px red;      /* 右 */
}

.character3-p {
  border-left: solid 5px red;       /* 左 */
}

.backgroundcolor-p {
  background-color: red;
}

.backgroundcol1-p {
  background-color: red;
  border-radius: 15px;
}

.hutu {
  background:linear-gradient(transparent 100% , yellow 100%);    /* 数字が100%ほど小さくなる */
}

.hoso {
  background:linear-gradient(transparent 90% , yellow 90%);
}

.futo {
  background:linear-gradient(transparent 50% , yellow 50%);
}

.gokubuto {
  background:linear-gradient(transparent 10% , yellow 10%);
}

.shadow-p {
  text-shadow: 2px 2px 2px grey;     
  font-weight: bold;                 
  font-size: 20px;                                   
}

.main-span {
  font-weight: bold;
  color: red;
}

.text-alion-div {
  background-color: #B1DDE6;
}
.center-p {
  text-align: center;     /* 真ん中 */
}

.left-p {
  text-align: left;       /* 左 */
}

.right-p {
  text-align: right;      /* 右 */
}

.before-h3::before {
  content: "◆";
  color: red;
}

.after-h3::after {
  content: "■";
  color: chocolate;
}

.first-letter-h3::first-letter {
  font-size: 24px;
  color: red;
}

.first-line-h3::first-line {
  font-size: 24px;
  color: saddlebrown;
}

.link-a:link {
  color: black;
}

.visited-a:visited {
  color: red;
}

.hover-a:hover {
  color: tomato;
  font-size: 20px;
}

.active-a:active {
  color: saddlebrown;
  font-size: 30px;
}

 /* リンクがプルンプルン動く */
  .bouncy-link {
  font-size: 24px;
  color: blue;
  text-decoration: none;
  display: inline-block;
  transition: transform 0.3s ease, color 0.3s ease;
  position: relative;
  }

  /* プルンプルンアニメーション */
@keyframes bounce {
  0% {
  transform: translateY(0);
  }
  30% {
  transform: translateY(-10px);
  }
}

/* 常時プルンプルン */
a.bouncy-link {
  animation: bounce 0.6s infinite;
}

/* ホバー時にプルンプルン */
  a.bouncy-link:hover {
  animation: bounce 0.6s infinite;
  color: red;
}

/* ボックスモデル */
.box-p {
  border: solid 5px red;
  padding: 10px;
  margin: 20px;
}

/* マージンを利用して中央にする */
.margin-center-div {
  width: 200px;
  height: 200px;
  background-color: aquamarine;
  margin-left: auto;
  margin-right: auto;
  /* margin: 0 auto;   上下のマージンは0、左右のマージンは自動で中央に配置 */
}

.flexbox-container-flex {
  display: flex;
  padding: 20px;
  background-color: lightpink;
}

.flexbox-item {
  padding: 5px;
  margin: 5px;
  background-color: orange;
}

.flexbox-container-reverse {
  display: flex;
  flex-direction: row-reverse;
  padding: 20px;
  background-color: lightpink;
}

.flexbox-container-wrap {
  display: flex;
  flex-wrap: wrap;
  padding: 20px;
  background-color: lightpink;
}

.flexbox-container-justify {
  display: flex;
  justify-content: center;
  padding: 20px;
  background-color: lightpink;
}

.flexbox-container-align {
  display: flex;
  align-items: center;
  height: 500px;
  padding: 20px;
  background-color: lightpink;
}

.flexbox-container-original {
  display: flex;
  padding: 20px;
  height: 500px;
  background-color: lightpink;
}

/* flex-basis(幅の初期サイズ) */
#item11 {
  flex-basis: 50px;
}

/* flex-grow(どれくらい伸びるか?初期値=1)アイテム02とアイテム03の幅が1:2の比率で伸びた */
#item22 {
  flex-grow: 1;
}

#item33 {
  flex-grow: 2;
}

/* flex-shrink(どれくらい縮むか?初期値=1)画面が縮小っしないと変化が分かりにくい */
#item44 {
  flex-shrink: 2;
}

/* flex-basis(幅の初期サイズ) */
#item55 {
  flex-basis: 200px;
}

/* align-self(縦方向の揃え方) */
#item66 {
  align-self: flex-end;
}

/* order(並び順の変更)88:変更 */
/* align-self(縦方向の揃え方) */
#item77 {
  order: 88;
  align-self: flex-start;
}

 /* order(並び順の変更)77:変更 */
/* align-self(縦方向の揃え方) */
#item88 {
  order: 77;
  align-self: center;
}

/******************************************* CssAnim****************************************/

.test-a {
  color: blue;
  text-decoration: underline;
  text-decoration-color: blue;
  text-decoration-thickness: 2px;
  text-underline-offset: 5px;
  font-size: 20px;
  font-weight: bold;
  padding: 20px;
}

.span-anim {
  color: red;
  font-weight: bold;
}

.animation-item {
  width: 200px;
  height: 200px;
  background-color: red;
  margin: 30px auto;
  padding: 0;
  animation: fadeIn 10s infinite forwards;
}
.animation-item1 {
  width: 200px;
  height: 200px;
  background-color: red;
  margin: 30px auto;
  padding: 0;
  /* 名前 */
  /* 時間 */
  /* 0.33 は、開始点の x 座標です。1 は、開始点の y 座標です。0.68 は、終了点の x 座標です。1 は、終了点の y 座標です。 */
  /* 無限再生 */
  /* アニメーションが終わった後のスタイルを保持 */
  animation: fadeIn 10s cubic-bezier(0.33, 1, 0.68, 1)  infinite forwards;
}
/* アニメーションの変化の割合＋名前 */
@keyframes fadeIn {     
  0% {
    opacity: 0;
  }
  100% {
    opacity: 1;
  }
}
.animation-item2 {
  width: 200px;
  height: 200px;
  background-color: red;
  margin: 30px auto;
  padding: 0;
  animation: slideIn 10s forwards;
}

@keyframes slideIn {
  0% {
    /* 180px 右に移動 */
    transform: translateX(180px);
    opacity: 0;
  }
  25% {
    transform: translateX(0);
  }
  50% {
    /* 180px 左に移動 */
    transform: translateX(-180px);
  }
  100% {
    transform: translateX(0);
  }
  40%,100% {
    opacity: 1;
  }
}
.animation-item3 {
  width: 200px;
  height: 200px;
  background-color: red;
  margin: 30px auto;
  padding: 0;
  animation: poyon 1s ease-in-out infinite forwards;
}
@keyframes poyon {
  0%  {
    transform: scale(1.0, 1.0) translate(0, 0);
  }
  15% {
    transform: scale(0.98, 0.9) translate(0, 5px);
  }
  30% {
    transform: scale(1.02, 1.0) translate(0, 8px);
  }
  50% {transform: scale(0.98, 1.05) translate(0, -8px);
  }
  70% {
    transform: scale(1.0, 0.9) translate(0, 5px);
  }
  100% {
    transform: scale(1.0, 1.0) translate(0, 0);
  }
  0%, 100% {
    opacity: 1;
  }
}

/******************************************* Flexbox *********************************************/
.box {
  width: 100px;
  height: 100px;
  border: 1px solid black;
  background-color: bisque;
}

.box100 {
  width: 100px;
  height: 200px;
  border: 1px solid black;
  background-color: bisque;
}

.box200 {
  width: 100px;
  height: 100px;
  border: 1px solid black;
  background-color: bisque;
}

.box300 {
  width: 100px;
  height: 50px;
  border: 1px solid black;
  background-color: bisque;
}

.container {
  display: flex;
/* 標準の状態 */
  flex-direction: row; 
  flex-direction: row;
  justify-content: flex-start;
  align-items: stretch;
}

.container-column {
  display: flex;
  flex-direction: column;
}

.container-row-reverse {
  display: flex;
  flex-direction: row-reverse;
}

.container-flex-wrap {
  display: flex;
  flex-wrap: wrap;
}

.container-justify-countent {
  display: flex;
  justify-content: flex-start;
}

.container-justify-countent-flex-end {
  display: flex;
  justify-content: flex-end;
}

.container-justify-countent-center {
  display: flex;
  justify-content: center;
}

.container-justify-countent-space-between {
  display: flex;
  justify-content: space-between;
}

.container-justify-countent-space-around {
  display: flex;
  justify-content: space-around;
}

.container-align-items-center {
  display: flex;
  align-items: center;
}

.container-container {
  border: 2px solid blue;
  height: 500px;  /* 高さを指定 */
  padding: 10px;
  display: flex;
  justify-content: center;
  align-items: center;
}

.container-container-flex-start {
  border: 2px solid blue;
  height: 500px;  /* 高さを指定 */
  padding: 10px;
  display: flex;
  align-items: flex-start;
  justify-content: center;
}

.container-composite {
  display: flex;
  border: 2px solid blue;
  align-items: center;
  height: 500px;  
  padding: 10px;
}

.container-composite-warp-space-between {
  display: flex;
  border: 2px solid blue;
  height: 500px;  
  padding: 10px;
  flex-wrap: wrap;
  align-items: center;
  align-content: space-between;
}

.container-composite-warp-space-around {
  display: flex;
  border: 2px solid blue;
  height: 500px;  
  padding: 10px;
  flex-wrap: wrap;
  align-items: center;
  align-content: space-around;
}

/* 子要素 */

.container-child {
  display: flex;
  border: 2px solid blue;
  height: 500px;
}
.container-child-align-self {
  display: flex;
  align-items: center;
  border: 2px solid blue;
  height: 500px;
}
.boxD {
  width: 100px;
  height: 100px;
  border: 1px solid black;
  background-color: bisque;
}
.boxA {
  order: 2;
  width: 100px;
  height: 100px;
  border: 1px solid black;
  background-color: bisque;
}
.boxB {
  order: 1;
  width: 100px;
  height: 100px;
  border: 1px solid black;
  background-color: bisque;
}
.boxC {
  order: 3;
  width: 100px;
  height: 100px;
  border: 1px solid black;
  background-color: bisque;
}
.boxE {
  flex-grow: 1;
  height: 100px;
  border: 1px solid black;
  background-color: bisque;
}
.boxF {
  width: 100px;
  height: 100px;
  border: 1px solid black;
  background-color: bisque;
}
.boxG {
  /* flex-grow: 1;の２倍のwidth */
  flex-grow: 2;
  height: 100px;
  border: 1px solid black;
  background-color: bisque;
}
.boxI {
  /*  flex-shrink: 1; */
  flex-shrink: 1;
  height: 100px;
  border: 1px solid black;
  background-color: bisque;
}
.boxL {
  /*  flex-shrink: 2; flex-basis: 300px;*/
  flex-shrink: 2;
  flex-basis: 300px;
  height: 100px;
  border: 1px solid black;
  background-color: bisque;
}
.boxH {
  width: 100px;
  height: 300px;
  border: 1px solid black;
  background-color: bisque;
}
.boxZ {
  width: 100px;
  height: 100px;
  /*  align-self: flex-start;　上からスタート*/
  align-self: flex-start;
  border: 1px solid black;
  background-color: bisque;
}
.boxJ {
  width: 100px;
  height: 50px;
  border: 1px solid black;
  background-color: bisque;
}

/******************************************* Grid *************************************************/
.box {
  border: 1px solid black;
  background-color: bisque;
  text-align: center;
}

.countainer {
  display: grid;
  border: 2px solid blue;
}

.countainer-columns {
  display: grid;
/*  子供の要素(4子供)に対してwidth指定可能 */
  grid-template-columns: 100px 100px 100px 100px;
  border: 2px solid blue;
}

.countainer-columns1 {
  display: grid;
  grid-template-columns: 100px 100px 100px 100px;
  justify-content: center; /* 子供の要素を中央に配置 */
  border: 2px solid blue;
}

.countainer-columns2 {
  display: grid;
/*  子供の要素(3子供)に対してwidth指定して、残りの子供はコラムして表示される */
  grid-template-columns: 100px 100px 100px;
  border: 2px solid blue;
}

.countainer-columns-fr {
  display: grid;
/*  1fr=100pxの余った部分を全て占領する  */
  grid-template-columns: 100px 1fr 100px;
  border: 2px solid blue;
}

.countainer-columns-fr4 {
  display: grid;
/*  1fr=100pxの余った部分を全て占領する  */
  grid-template-columns: 100px 1fr 100px 1fr;
  border: 2px solid blue;
}


/* 各子要素 */

.countainer-child-rows {
  display: grid;
  grid-template-columns: 100px 100px 100px;
/*  2個目の折り返しのところが200pxになる  */
  grid-template-rows: 100px 200px ;
  border: 2px solid blue;
}

.countainer-child-rows-1fr {
  display: grid;
  grid-template-columns: 100px 100px 100px;
/*  2個目の折り返しのところが(1fr)になる  */  /* (1fr)使用するには、height指定していないといけない */
  grid-template-rows: 100px 1fr ;
  height: 500px;
  border: 2px solid blue;
}

.countainer-child-rows-1fr-culum {
  display: grid;
  grid-template-columns: 100px 100px 100px;
  grid-template-rows: 100px 1fr ;
  height: 500px;
  border: 2px solid blue;
/* columになる */
  grid-auto-flow: column;
  border: 2px solid blue;
}

.countainer-child-order {
  display: grid;
  grid-template-columns: 100px 100px 100px 100px;
  border: 2px solid blue;
}

.box5 {
  order: 5;
  border: 1px solid black;
  background-color: bisque;
  text-align: center;
}

.box6 {
  order: 8;
  border: 1px solid black;
  background-color: bisque;
  text-align: center;
} 

.box7 {
  order: 7;
  border: 1px solid black;
  background-color: bisque;
  text-align: center;
}

.box8 {
  order: 6;
  border: 1px solid black;
  background-color: bisque;
  text-align: center;
}

/* grid-colum */

.countainer-child-columns {
  display: grid;
  grid-template-columns: 100px 100px 100px;
  grid-template-rows: 100px 200px;
  height: 500px;
  border: 2px solid blue;
}

.box100 {
  border: 1px solid black;
  background-color: bisque;
  text-align: center;
}

.box200 {
  border: 1px solid black;
  background-color: bisque;
  text-align: center;
}

.box300 {
  border: 1px solid black;
  background-color: bisque;
  text-align: center;
}

.box400 {
  border: 1px solid black;
  background-color: bisque;
  text-align: center;
}

.box500 {
/* grid-column: 1/4=(1)スタート位置(2)ゴール位置 */
  border: 1px solid black;
  grid-column: 1/4;
  background-color: bisque;
  text-align: center;
} 

/* grid-temple-area */

.countainer-child-grid-temple-area {
  border: 2px solid blue;
  display: grid;
}

.countainer-child-grid-temple-area1 {
  display: grid;
  border: 2px solid blue;
/* grid-temple-area 設定したarea名を入れて分割を割合指定 */
  grid-template-areas: "area1 area1 area1""area2 area3 area3" "area4 area4 area4"
}

.box600 {
/* grid-area: (名前は自由); */
  grid-area: area1;
  border: 1px solid black;
  background-color: bisque;
  text-align: center;
}

.box700 {
/* grid-area: (名前は自由); */
  grid-area: area2;
  border: 1px solid black;
  background-color: bisque;
  text-align: center;
}

.box800 {
/* grid-area: (名前は自由); */
  grid-area: area3;
  border: 1px solid black;
  background-color: bisque;
  text-align: center;
}

.box900 {
/* grid-area: (名前は自由); */
  grid-area: area4;
  border: 1px solid black;
  background-color: bisque;
  text-align: center;
}

.box1000 {
  grid-area: area5;
  border: 1px solid black;
  background-color: bisque;
  text-align: center;
}

.box2000 {
  grid-area: area6;
  border: 1px solid black;
  background-color: bisque;
  text-align: center;
}

.box3000 {
  grid-area: area7;
  border: 1px solid black;
  background-color: bisque;
  text-align: center;
}

.box4000 {
  grid-area: area8;
  border: 1px solid black;
  background-color: bisque;
  text-align: center;
}

.box5000 {
  grid-area: area8;
  border: 1px solid black;
  background-color: bisque;
  text-align: center;
}

.countainer-child-grid-temple-area-area {
  display: grid;
  border: 2px solid blue;
  grid-template-areas: "area1 area2 area3 area4""area5 area5 area6 area6"   "area7 area7 area7 area7""area8 area9 area10 area10"                                   
}

.boxarea1 {
  grid-area: area1;
  border: 1px solid black;
  background-color: bisque;
  text-align: center;
}

.boxarea2 {
  grid-area: area2;
  border: 1px solid black;
  background-color: bisque;
  text-align: center;
}

.boxarea3 {
  grid-area: area3;
  border: 1px solid black;
  background-color: bisque;
  text-align: center;
}

.boxarea4 {
  grid-area: area4;
  border: 1px solid black;
  background-color: bisque;
  text-align: center;
}

.boxarea5 {
  grid-area: area5;
  border: 1px solid black;
  background-color: bisque;
  text-align: center;
}

.boxarea6 {
  grid-area: area6;
  border: 1px solid black;
  background-color: bisque;
  text-align: center;
}

.boxarea7 {
  grid-area: area7;
  border: 1px solid black;
  background-color: bisque;
  text-align: center;
}

.boxarea8 {
  grid-area: area8;
  border: 1px solid black;
  background-color: bisque;
  text-align: center;
}

.boxarea9 {
  grid-area: area9;
  border: 1px solid black;
  background-color: bisque;
  text-align: center;
}

.boxarea10 {
  grid-area: area10;
  border: 1px solid black;
  background-color: bisque;
  text-align: center;
}

/******************************************* javascriptbasit1  **********************************************/

.script-div {
  background-color: beige;
}

.butoon1 {
  background-color: tomato;
  border-radius: 10px;
  padding: 10px;
  margin: 10px 0;
  font-size: 16px;
}

.butoon1:hover {
  background-color: red;
  color: white;
}

.Calculator input {
  width: 200px;
  padding: 10px;
  font-size: 16px;
  background-color: #B1DDE6;
}

.Calculator-div #btn3 {
  background-color: plum;
  margin: 10px 0;
  padding: 10px;
  font-size: 16px;
}

.form-vertical {
  display: flex;
  flex-direction: column;
  gap: 1em;
  max-width: 350px;
}

.form-row {
  display: flex;
  flex-direction: column;
  gap: 0.3em;
}
.form-row label {
  font-weight: bold;
}

.form-row select,
.form-row textarea {
  padding: 0.5em;
  font-size: 1em;
}

#pref {
  background-color: #B1DDE6;
}

#opinion {
  background-color: #B1DDE6;
}

.checkbox-group {
  display: flex;
  flex-direction: row;   /* 横並びにする */
  align-items: center;   /* 縦中央揃え */
  justify-content: center; /* 横中央揃え */
  gap: 1em;
  background: #B1DDE6;
  padding: 1em;
  border-radius: 8px;
  max-width: 100%;
}

/* ラベルとチェックボックスを横並びに */
.checkbox-item {
  display: flex;
  align-items: center;
  gap: 0.5em;
}

/* ラベルの色を濃く */
.checkbox-item label {
  color: #222;
  font-weight: bold;
}

.checkbox-item input[type="checkbox"] {
  appearance: checkbox;
  -webkit-appearance: checkbox;
  display: inline-block;
  opacity: 1;
  width: 20px;
  height: 20px;
  margin: 0 5px 0 0;
}

input[type="radio"] {
  appearance: radio;
  -webkit-appearance: radio;
  display: inline-block;
  opacity: 1;
  width: 18px;
  height: 18px;
  margin: 0 5px 0 0;
  vertical-align: middle;
}

.password-input {
  background-color: #B1DDE6;
  text-align: center;
  padding: 10px;
  font-size: 1.5rem;
  letter-spacing: 0.3em;  /* 文字感覚調整 */
}

.main-inner-div1 {
  display: flex; 
  flex-direction: column; 
  align-items: center; 
  justify-content: center;
}

.passwprd-div {
  display: flex; 
  align-items: center; 
  gap: 1em;
}

/********************************************** Study*******************************************/
.container-study {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  text-align: center;
  gap: 8px;
  width: 90%;
  height: auto;
  margin: 2rem auto;
}

/* aタグをブロック化してクリック範囲を広げる */
.container-study a {
  display: block;
  text-decoration: none;
  color: inherit;
}

/* カードデザイン */
.grid-item {
  background: rgba(255, 215, 0, 0.5); /* 透き通る黄金色 */
  max-width: 300px;
  height: auto;
  word-wrap: break-word;
  word-break: break-all;
  border-radius: 10px;
  margin: 0 auto;
  padding: 12px;
  text-align: center;
  position: relative;
}

.grid-item h3 {
  margin: 0.3em 0;
  font-size: 1.1em;
}

.grid-item p {
  font-size: 0.95em;
}

.grid-item:hover {
  transform: translateY(-3px) scale(1.02); 
  box-shadow: 0 6px 16px rgba(0,0,0,0.15);
  margin: 0 auto;    /* これで中央寄せ */
  background-color: #ffd900dc;
  color: black;
}

.grid-item::after {
  content: "click";
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  color: white;
  font-size: 1.5rem;
  background-color: rgba(0, 0, 0, 0.6);
  padding: 10px;
  border-radius: 5px;
  opacity: 0;
  transition: opacity 0.3s;
}

.grid-item:hover::after {
  opacity: 1;
}

.grid-item img {
  width: 100%;         /* 枠いっぱいに広げる */
  max-width: 300px;    /* 枠の最大幅に合わせる（.grid-itemのwidthと同じ値） */
  height: auto;
  display: block;
  margin: 0 auto;
  margin-bottom: 1em;
}

/******************************************* banner **********************************************/

.banner-container {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
  width: 90%;
  margin: 1rem auto 150px auto; 
  justify-items: center;
  align-items: stretch;
  height: auto;
  color: #fff;
}

.banner-container {
  display: flex;
  flex-wrap: nowrap;
  overflow-x: auto;
  gap: 24px;
  width: 100vw;
  margin-left: calc(-50vw + 50%);
  margin-right: calc(-50vw + 50%);
  padding: 0 8px;
  box-sizing: border-box;
}

.container-text h2 {
  font-size: 2.5rem;
  color: tomato;
  text-align: center;
  margin-top: 1rem;
  background-color: #B1DDE6;
  padding: 10px;
}

.span-text {
  display: block;
  text-align: center;
  font-size: 1.1rem;
  color: tomato;
  margin-top: 0.2em;
}

.banner-item h3 {
  font-size: 2rem;
  margin-bottom: 1rem;
}

.banner-item {
  flex: 0 0 auto;
  background: rgba(255, 215, 0, 0.5); /* 透き通る黄金色 */
  max-width: 700px;
  height: auto;
  word-wrap: break-word;
  word-break: break-all;
  border-radius: 10px;
  margin: 0 auto;
  padding: 12px;
  text-align: center;
  position: relative;
  /* 横スクロールバー非表示用 */
  scrollbar-width: none;        /* Firefox用 */
  -ms-overflow-style: none;     /* IE, Edge用 */
}

.banner-container::-webkit-scrollbar {
  display: none;                /* Chrome, Safari用 */
}

.btn-web1.show-on-hover {
  display: none;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 2;
}

.banner-item img {
  width: 100%;         /* 枠いっぱいに広げる */
  height: auto;
  max-width: 700px;    /* 枠の最大幅に合わせる（.grid-itemのwidthと同じ値） */
  height: auto;
  display: block;
  margin: 0 auto;
  margin-bottom: 1em;
}

/* 画像オーバーレイ用スタイル */

#img-overlay-img {
  max-width: 90vw;
  max-height: 90vh;
  box-shadow: 0 0 20px #fff;
  background: #fff;
  border-radius: 8px;
}

.no-scroll {
  overflow: hidden;
  height: 100vh;
}

/* ボタンをホバー時に表示 */
.banner-item:hover .btn-web1.show-on-hover {
  display: block;
}

.banner-item:hover {
  cursor: pointer;
  background-color: #ffd900dc; /* ホバー時の背景色 */
  color: black; /* ホバー時の文字色 */
}

.banner-item img:hover {
  opacity: 0.7; /* ホバー時の画像の透明度 */
}
/******************************************* web **********************************************/

.work-menu ul {
  display: flex;
  gap: 24px; 
  list-style: none;
  padding: 0;
  margin: 48px auto;
  color: #fff;
  font-size: 2rem;
  justify-content: center;
}

.work-grid {
  display: grid;
  max-width: 1440px;
  margin: 0 auto;
  gap: 24px;
  grid-template-columns: 1fr 1fr 1fr; /* 3列 */
  color: #fff;
  text-align: center;
}

.work-grid p {
  font-size: 1.5rem;
  font-weight: bold;
  margin: 1rem auto;
}

.work-item {
  background: rgba(255, 215, 0, 0.5); /* 透き通る黄金色 */
  max-width: 100%;
  height: auto;
  word-wrap: break-word;
  word-break: break-all;
  border-radius: 10px;
  margin: 0 auto;
  padding: 12px;
  text-align: center;
  position: relative;
  position: relative;
  overflow: hidden;
}

.work-item:hover {
  cursor: pointer;
}

.work-item img {
  width: 100%;         /* 枠いっぱいに広げる */
  height: auto;
  max-width: 100%;    /* 枠の最大幅に合わせる（.grid-itemのwidthと同じ値） */
  height: auto;
  display: block;
  margin: 0 auto;
}

.work-overlay {
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(0,0,0,0.6);
  opacity: 0;
  transition: opacity 0.3s;
  display: flex;
  justify-content: center;
  align-items: center;
  pointer-events: none;
  z-index: 2;
}

/* ホバー時にオーバレイにしている */
.work-item:hover .work-overlay {
  opacity: 1;
  pointer-events: auto;
}

/* ボタン */
.btn-web {
  padding: 12px;
  font-size: 1rem;
  border: none;
  border-radius: 6px;
  background: #fff;
  color: black;
  font-weight: bold;
  cursor: pointer;
  display: flex;
  align-items: center;
  margin-bottom: 50px;
  gap: 8px;
}

.btn-web:hover{
  background-color: #FFD600;
}

.btn-web1 {
  padding: 12px;
  font-size: 1rem;
  border: none;
  border-radius: 6px;
  background: #fff;
  color: black;
  font-weight: bold;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 8px;
}

.btn-web1:hover{
  background-color: #FFD600;
}

/*画像拡大*/
.image-modal {
  display: none;
  position: fixed;
  z-index: 9999;
  top: 0; left: 0;
  width: 100vw; height: 100vh;
  background: rgba(0,0,0,0.9);
  justify-content: center;
  align-items: center;
}
.image-modal img {
  max-width: 90vw;
  max-height: 90vh;
  border-radius: 8px;
  box-shadow: 0 0 20px #fff;
  background: #fff;
  cursor: pointer;
}

.no-scroll {
  overflow: hidden;
  height: 100vh;
}

/* メニューの枠 */
.work-menu a.active {
  border: 2px solid #FFD600;
  border-radius: 6px;
  padding: 4px 12px;
  box-sizing: border-box;
  background: #fffbe7;
  color: #333;
  font-weight: bold;
}

/******************************************* contact ****************************************/

.main .contact-p {
  color: #fff;
  text-align: center;
  font-size: 1.5rem;
  margin: 1rem auto;
  padding: 0 16px;
}

.contact-form {
  color: #fff;
  display: flex;
  flex-direction: column;
  text-align: center;
  margin: 3rem auto;
  width: 100%;
  gap: 32px;
}

.contact-form input {
  background-color: #fff;
  color: #333;
  padding: 12px;
  border-radius: 12px;
}

.contact-form label {
  font-size: 1.5rem;
}

.contact-form input[type="checkbox"] {
margin: 16px;
}

textarea {
  background-color: #fff;
  color: #333;
  padding: 12px;
  border-radius: 12px;
  width: 100%;
  height: auto;
}

.contact-form button {
  background-color: #998004;
  color: #333;
  padding: 12px;
  border-radius: 12px;
  font-size: 1.5rem;
  cursor: pointer;
  border: none;
}

/* ラジオボタンの色をラベルの背景色と合わせる */
.color-option input[type="radio"] {
  accent-color: initial; /* まずデフォルト色をリセット */
}

/* 赤 */
#color-red:checked + label[for="color-red"] {
  box-shadow: 0 0 0 2px red;
}
#color-red:checked {
  accent-color: red;
}

/* 緑 */
#color-green:checked + label[for="color-green"] {
  box-shadow: 0 0 0 2px green;
}
#color-green:checked {
  accent-color: green;
}

/* 青 */
#color-blue:checked + label[for="color-blue"] {
  box-shadow: 0 0 0 2px blue;
}
#color-blue:checked {
  accent-color: blue;
}

/* 黄色 */
#color-yellow:checked + label[for="color-yellow"] {
  box-shadow: 0 0 0 2px gold;
}

#color-yellow:checked {
  accent-color: gold;
}

main .line-a {
  width: 100%;
  height: auto;
  margin: 2rem auto;
  display: flex;              /* 追加 */
  align-items: center;        /* 縦中央 */
  justify-content: center;    /* 横中央 */
}

.contact-form a label {
  color: tomato;
  font-size: 2rem;
}

.contact-form a label:hover {
  color: yellow;
}

.contact-form .submit-btn:hover {
  background-color: #ffd500;
}

/******************************************* レスポンシブ **********************************************/
@media screen and (max-width: 1080px) {
.z-div {
  width: 100%;
  height: 500px;
}
.z-div1 {
  width: 100%;
  height: 500px;
}
.banner-item::after {
  font-size: 1rem;
}
}
@media screen and (max-width: 768px) {
  main {
  width: 100%;
  padding: 8px;
}
.main-div {
  padding: 10px;
}
.body-img {
    max-width: 100%;
    height: auto;
}
.main-text {
  font-size: 36px;
  margin-top: 100px;
}
.main-text-work {
  font-size: 30px;
  margin-top: 110px;
}
.body-h1 {
  font-size: 24px;
}
/* 流用可能 */
.z-div {
  width: 100%;
  height: 250px;
  min-height: 150px;
}
.z-div1, .z-div2, .z-div3 {
  width: 100%;
  height: 100%;
  font-size: 14px;
}
.z-div2 {
  width: 60%;
  height: 60%;
  top: 10%;
  left: 10%;
}
.z-div3 {
  width: 60%;
  height: 60%;
  top: 30%;
  left: 30%;
}
.menu-css-summary {
  font-size: 40px;
}
.banner-item h3 {
  font-size: 1rem;
  margin-bottom: 0.5rem;
}
.container-text h2 {
  font-size: 2rem;
  margin-bottom: 0.5rem;
}
.subtitle {
  font-size: 0.6em;
}
.banner-container {
  gap: 8px;
  width: 100vw;
}
.banner-item {
  min-width: 90vw;
  max-width: 90vw;
}
.work-menu ul {
  gap: 8px;
  font-size: 1rem;
}
.banner-container {
  margin: 1rem auto 80px auto; 
}
.work-grid {
  gap: 16px;
  grid-template-columns: 1fr 1fr ; 
}
.work-grid p {
  font-size: 1rem;
  font-weight: normal;
}
.main p {
  font-size: 1.2rem;
}
}