body {
    background-color: #ffffff;
    line-height: 1.4;
}

a:link { color: #000088; text-decoration: none; }
a:hover { color: #771111; text-decoration: underline; }
a:active { color: pink; text-decoration: underline; }

#pv:link { color: firebrick; text-decoration: none; }
#pv:visited { color: firebrick; text-decoration: none; }
#pv:hover { color: #771111; text-decoration: underline; }
#pv:active { color: pink; text-decoration: underline; }

p { line-height: 160%;
    margin-bottom: 1em;
     }

.overall {
  width: clamp(320px, 90vw, 1150px);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 2fr 7fr 2fr;
  grid-template-rows: 80px auto auto;
  column-gap: 3px;
  box-sizing: border-box;
}

.overall-archive {
  width: clamp(320px, 80vw, 850px);
  margin: 0 auto;
  display: grid;
  grid-template-rows: 95px auto auto;
  box-sizing: border-box;
}

.top {
  grid-row: 1;
  grid-column: 1 / 4; /* 1~3列をまたぐ*/
  background-color: #0c2a40;
  display: flex;
  align-items: center;
  justify-content: center;
}

.second {
  grid-row: 2;
  grid-column: 1 / 4; /* 1~3列をまたぐ*/
  background-color: #0c2a40;
  display: flex;
  justify-content: end;
  padding-right: 5px;
  padding-bottom: 5px;
}

.main {
    line-height: 140%;
    grid-row: 3;
    grid-column: 2;
    display: flex;
    flex-direction: column;
    border: 2px solid #0c2a40;
    margin-top: 8px;
    box-sizing: border-box;
    }

.left {
    line-height: 140%;
    grid-row: 3;
    grid-column: 1;
    display: flex;
    flex-direction: column;
    margin-top: 8px;
    }

.right {
    line-height: 140%;
    grid-row: 3;
    grid-column: 3;
    display: flex;
    flex-direction: column;
    margin-top: 8px;
    }
    
.side-box {
    font-size: 14px;
    padding: 6px;
    margin-bottom: 1em;
    padding-bottom: 20px;
    border: 1px solid #0c2a40;
 }

.h1 {
    font-weight: 700; /* 記事用 */
    font-size: 15px;
    line-height: 140%;
}

.h1::before {
  content: "■";
  color: #000000;
  font-size: 18px;
  margin-right: 2px;
}

.h2 {
    line-height: 140%; /* 通常文字 */
    font-size: 14px;
}

.h3 {
    background-color: #3A6FA0; /* 日付用 */
    padding: 7px;
    display: block;
    font-weight: 700;
    color: #ffffff;
    border-top: 4px solid #eeeeff;
    border-left: 2px solid #eeeeff;
    border-right: 2px solid #eeeeff;
}

.h3::before {
  content: "◆";
  color: #fffff;
  font-size: 18px;
  margin-right: 2px;
}

.h4 {
    color: #55aaff;
}

a.h4 {
    color: #55aaff;
}

.h5 {
    color: #55aaff;
}

td { line-height: 140%; }

.article {
    display: flex; /* 記事群 */
    flex-direction: column;
    padding-left: 10px;
    margin-bottom: 2em;
    gap: 4px;
    font-size: 15px;
    line-height: 1.8;
}

.text-box1 {
  padding: 5px 5px 5px 20px;
  background-color: #bcd0ff;
  color: #36454F;
  font-weight: 600;
  width: 500px; 
  border-left: 3px solid #000080;
  margin-bottom: 1em;
  background: linear-gradient(to right, #bcd0ff, #ffffff); /* グラデーション */
}

.text-box2 {
  padding: 5px 5px 5px 20px;
  background-color: #c1baff;
  color: #36454F;
  font-weight: 600;
  width: 500px; 
  border-left: 3px solid #2E0854;
  margin-bottom: 1em;
  background: linear-gradient(to right, #c1baff, #ffffff); /* グラデーション */
}

.text-box3 {
  padding: 5px 5px 5px 20px;
  background-color: #e9cfff;
  color: #634949;
  font-weight: 600;
  width: 500px;
  border-left: 3px solid #C71585;
  margin-bottom: 1em;
  background: linear-gradient(to right, #e9cfff, #ffffff); /* グラデーション */
}

.text-box4 {
  padding: 5px 5px 5px 20px;
  background-color: #D3D3D3;
  color: #36454F;
  font-weight: 600;
  width: 500px;
  border-left: 3px solid #36454F;
  margin-bottom: 1em;
  background: linear-gradient(to right, #D3D3D3, #ffffff); /* グラデーション */
}

.since {
    color: #8888aa;
    font-size: 14px;
}


.custom-hr {
    border: none;
    height: 2px;
    background: #888888;
    width: 95%;
    border-radius: 0;
    }

.about {
  max-width: 1100px;
  margin: 0 auto;
  width: 100%;
  border: 2px solid #0c2a40;
  flex-direction: column;
}

.img-center {
  display: flex;
  justify-content: center;
}
.img-center img {
  max-width: 100%;
  height: auto;
}

.image-row {
  display: flex;
  gap: 10px;
  justify-content: left;
}
.image-row img {
  max-width: 100%;
  height: auto;
}

.youtube-embed {
  margin-bottom: 2em;
}

/* ====== ここからスマホ用 ====== */
@media (max-width: 768px) {
  .second,
  .left,
  .right {
    display: none;
  }

  .main {
    grid-column: 1 / -1;  /* 1列全部を使う */
    width: 100%;
    border-left: 3px solid #0c2a40;
    border-right: 3px solid #0c2a40;
    font-size: 18px;
  }

 .main .h1 { font-size: 20px; }
 .main .h2 { font-size: 18px; }
 .main .article { font-size: 18px; }
 .main .text-box1,
 .main .text-box2,
 .main .text-box3,
 .main .text-box4 { font-size: 18px; }

  .overall {
    grid-template-columns: 1fr; /* 1カラムにする */
    width: 100%;
    max-width: 100%;
    border: none;
    gap: 0;
  }
  
  img {
    max-width: 100%;
    height: auto;
  }
/* ====== スマホCSSここまで ====== */