body {
  font-family: "Montserrat","Helvetica Neue",Arial,"Hiragino Kaku Gothic ProN","Hiragino Sans",Meiryo,sans-serif;
  font-size: 15px;
  letter-spacing: .05em;
  color: #333;
}

a {
  transition: opacity .3s;
  text-decoration: none;
  color: #1ca9e3;
}

img {
  max-width: 100%;
  height: auto;
  border-style: none;
  margin-bottom: 10px;
}

strong {
  color: #E54343;
  font-weight: bold;
}

h3 {
  margin-top: 15px;
}

.pc-only {
  display: block;
}

.sp-only {
  display: none;
}

/*--------------------------------
 レイアウト
---------------------------------*/
.wrapper {
  min-height: 100vh;
  position: relative;/*←相対位置*/
  box-sizing: border-box;/*←全て含めてmin-height:100vhに*/
  padding-top: 70px;
  padding-bottom: 73px;
}

.section {
  padding: 90px 0;
}

.post-section {
  padding: 0px;
}

.section:nth-of-type(odd) {
  background-color: #f7f7f7;
}

.post-section:nth-of-type(odd) {
  background-color: #f7f7f7;
}

.container {
  max-width: 800px;
  margin: 0 auto;
  padding: 20px;
}

/*--------------------------------
 見出し
---------------------------------*/
.title {
  font-size: 34px;
  font-weight: bold;
  line-height: 1;
  margin-bottom: 40px;
  text-align: center;
  letter-spacing: .05em;
  color: #333;
}

.title-bottom-small {
  font-size: 34px;
  font-weight: bold;
  line-height: 1;
  margin-bottom: 5px;
  text-align: center;
  letter-spacing: .05em;
  color: #333;
}

.lead {
  font-size: 16px;
  line-height: 1.8;
  margin-bottom: 30px;
}

/*--------------------------------
ヘッダー
---------------------------------*/
.header {
  position: fixed;
  top: 0;
  z-index: 1;
  width: 100%;
  background-color: #fff;
  box-shadow: 0 5px 10px -6px rgba(0,0,0,.1);
}

.header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px;
}

.header-logo {
  font-size: 20px;
  font-weight: bold;
  line-height: 1.2;
  margin-right: 20px;
  letter-spacing: .05em;
}

.header-logo a {
  color: #333;
}

.gnav-list {
  display: flex;
  justify-content: space-between;
  list-style: none;
}

.gnav-item:not(:last-child) {
  margin-right: 20px;
}

.gnav-item a {
  position: relative;
  font-size: 13px;
  font-weight: bold;
  display: inline-block;
  padding: 5px 0;
  transition: .3s;
  letter-spacing: .05em;
  color: #333;
}

.gnav-item a:after {
  position: absolute;
  bottom: 0;
  left: 50%;
  width: 0;
  height: 3px;
  content: "";
  transition: .3s;
  -webkit-transform: translateX(-50%);
  transform: translateX(-50%);
  background-color: #333;
}

.gnav-item a:hover:after {
  width: 100%;
}

/*--------------------------------
 ハンバーガーメニュー
---------------------------------*/
/* ハンバーガーアイコンのスタイル */
@media (max-width: 800px) {
  .menu-icon {
    display: block;
    cursor: pointer;
  }

  .menu-icon span {
    display: block;
    width: 25px;
    height: 3px;
    background-color: #333;
    margin: 6px 0;
    transition: 0.3s;
  }

  /* ハンバーガーアイコンがクリックされたときのスタイル */
  #menu-toggle:checked + .menu-icon span:nth-child(1) {
    transform: rotate(-45deg) translate(-5px, 7.5px);
  }

  #menu-toggle:checked + .menu-icon span:nth-child(2) {
    opacity: 0;
  }

  #menu-toggle:checked + .menu-icon span:nth-child(3) {
    transform: rotate(45deg) translate(-5px, -7.5px);
  }

  /* メニューの表示・非表示 */
  .gnav {
    display: none;
    position: absolute;
    top: 60px;
    left: 0;
    background-color: #fff;
    width: 100%;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    z-index: 1;
  }

  #menu-toggle:checked ~ .gnav {
    display: block;
  }

  .gnav-list {
    list-style: none;  /* リストのデフォルトのリストマーカー（通常はブラウザのデフォルトの箇条書き記号）を削除します。 */
    display: flex;  /* 要素をFlexコンテナとして表示します。 */
    flex-direction: line;  /* Flexアイテムを縦方向に並べるカラム（列）配置に設定します。 */
    justify-content: center;  /* Flexアイテムを縦方向に中央に配置します。 */
    align-items: center;  /* Flexアイテムを横方向に中央に配置します。 */
    height: 100%;  /* メニューが表示されたときに画面全体を覆うようにするため、コンテナの高さを100%に設定します。 */
    padding: 5px 0px 5px 0px;
  }

  .gnav-item {
    margin-bottom: 0px;
  }

  .gnav-item a {
    text-decoration: none;
    color: #333;
    font-weight: bold;
    font-size: 18px;
    margin-top: 3px;
    margin-bottom: 3px;
  }
}

/* チェックボックスを非表示にする */
#menu-toggle {
  display: none;
}

/*--------------------------------
 メインビジュアル
---------------------------------*/
.mv {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 40vh;
  text-align: center;
}

.mv-container {
  padding: 0 40px;
}

.mv-title {
  font-size: 60px;
  font-weight: bold;
  line-height: 1.2;
  margin-bottom: 5px;
  letter-spacing: .1em;
}
.mv-subtitle {
  font-size: 20px;
  font-weight: bold;
  line-height: 1;
  margin-bottom: 40px;
  letter-spacing: .08em;
}

.mv-text {
  font-size: 16px;
  line-height: 1.8;
}

/*--------------------------------
 サブビジュアル
---------------------------------*/
.sv-subtitle {
  font-size: 11px;
  font-weight: bold;
  line-height: 1;
  margin-bottom: 40px;
  letter-spacing: .08em;
  text-align: center;
}

/*--------------------------------
 ロゴ
---------------------------------*/

.container-logo {
    display: flex;
    align-items: center;
}

.logo-img img {
    width: 25px; /* 画像の幅を調整 */
    height: auto; /* 高さを自動調整 */
    margin-top: 10px;
    margin-right: 10px; /* 画像とテキストの間隔 */
}

.name {
    font-size: 12px; /* テキストのフォントサイズ */
}

/*--------------------------------
 Works
---------------------------------*/
.works-list {
  display: flex;
  flex-wrap: wrap;
  margin-bottom: -40px;
}

.works-item {
  width: 31.74603%;
  margin-right: 1.58730%;
  margin-bottom: 40px;
  color: #333;
}

.works-item:hover {
  opacity: .9;
}

.works-item:nth-of-type(3n) {
  margin-right: 0;
}

.works-img img {
  border: 1px solid #e6e6e6;
}

.works-name {
  font-size: 18px;
  font-weight: bold;
  margin-top: 8px;
}

.works-info {
  font-size: 10px;
  margin-top: 5px;
}

/*--------------------------------
Posts
---------------------------------*/
.posts-list {
  display: flex;
  flex-wrap: wrap;
  margin-bottom: -40px;
}

.posts-list .blue-title {
  display: block;
  margin-top: 5px;
  width: 80px;
  float: left;
  font-size: 10px;
  text-align: center;
  color: rgb(255, 255, 255);
  line-height: 100%;
  background-color: rgb(78, 142, 196);
  padding: 5px 0px;
}

.posts-list .darkred-title {
  display: block;
  margin-top: 5px;
  width: 80px;
  float: left;
  font-size: 10px;
  text-align: center;
  color: rgb(255, 255, 255);
  line-height: 100%;
  background-color:  #ff8a65;
  padding: 5px 0px;
}

.posts-list .mediumslateblue-title {
  display: block;
  margin-top: 5px;
  width: 80px;
  float: left;
  font-size: 10px;
  text-align: center;
  color: rgb(255, 255, 255);
  line-height: 100%;
  background-color:  #7b68ee;
  padding: 5px 0px;
}

.posts-list .mrsgreen-title {
  display: block;
  margin-top: 5px;
  width: 80px;
  float: left;
  font-size: 10px;
  text-align: center;
  color: rgb(255, 255, 255);
  line-height: 100%;
  background-color:  #005731;
  padding: 5px 0px;
}

.posts-item {
  width: 48.4126%;
  margin-right: 2.58730%;
  margin-bottom: 40px;
  color: #333;
  border-top: 1px solid #ccc;
  padding-top: 10px;
}

.posts-item:hover {
  opacity: .9;
}

.posts-item:nth-of-type(2n) { /* 2n → 2列目の投稿は右に余白が無くなる。 */
  margin-right: 0;
}

.posts-img img {
  border: 1px solid #e6e6e6;
}

.posts-date {
  font-size: 10px;
  margin-top: 8px;
  text-align: right
}

.posts-name {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: normal;
  /* 既存のスタイルがあればここに追加 */
  font-size: 18px;
  font-weight: bold;
  margin-top: 8px;
  margin-bottom: 8px;
}

.posts-info {
  font-size: 10px;
  margin-top: 5px;
}

/*--------------------------------
 Skill
---------------------------------*/
.skill-list {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  margin-bottom: -50px;
}

.skill-item {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  width: 48%;
  margin-bottom: 50px;
}

.skill-img {
  width: 60px;
  height: auto;
  margin-right: 20px;
}

.skill-body {
  flex: 1;
}

.skill-name {
  margin-bottom: 10px;
}

.skill-text {
  font-size: 14px;
  line-height: 1.8;
}

/*--------------------------------
 About
---------------------------------*/
.profile {
  display: flex;
  flex-wrap: wrap;
  max-width: 800px;
  margin: 0 auto;
}
.profile-img {
  width: 20%;
  margin-right: 30px;
  border-radius: 50%;
}
.profile-img img {
  border-radius: 50%;
}
.profile-body {
  flex: 1;
}

.profile-body p {
  font-size: 15px;
  line-height: 1.8;
}

.profile-body p:not(:last-child) {
  margin-bottom: 30px;
}

/*--------------------------------
 Contact
---------------------------------*/
.contact {
  text-align: center;
}

.contact-item:not(:last-child) {
  margin-right: 10px;
}

.contact-text {
  margin-top: 10px;
}
/*--------------------------------
 ページトップ
---------------------------------*/
.page-top {
  width: 100%;
  font-weight: bold;
  padding: 10px;
  cursor: pointer;
  text-align: center;
  background-color: #4c4c4c;
  position: absolute;/*←絶対位置*/
  bottom: 72px; /*下に固定*/
}

.page-top .material-icons-outlined {
  vertical-align: bottom;
  color: #fff;
}

/*--------------------------------
 フッター
---------------------------------*/
.footer {
  width: 100%;
  position: absolute;/*←絶対位置*/
  bottom: 0; /*下に固定*/
  padding: 30px;
  background-color: #333;
}

.copyright {
  font-size: 10px;
  text-align: center;
  color: #797979;
}

/*--------------------------------
 下層：Worksページ
---------------------------------*/
.article {
  padding: 80px 0;
}

.article-body .blue-title {
  display: block;
  margin-top: 5px;
  margin-bottom: 10px;
  width: 80px;
  float: center;
  font-size: 10px;
  text-align: center;
  color: rgb(255, 255, 255);
  line-height: 100%;
  background-color: rgb(78, 142, 196);
  padding: 5px 0px;
}

.article-body .article-title {
  margin-bottom: 30px;
  text-align: left;
}

.article-body {
  max-width: 800px;
  margin: 0 auto;
  margin-bottom: 80px;
  padding: 20px;
}

.article-body h3 {
  position: relative;
  font-size: 18px;
  margin-bottom: 5px;
  padding-left: 1em;
}

.article-body h3:not(:first-child) {
  margin-top: 50px;
}

.article-body h3::before {
  position: absolute;
  top: 0;
  left: 0;
  width: 4px;
  height: 100%;
  content: "";
  border-radius: 3px;
  background-color: #333;
}

.article-body p {
  font-size: 15px;
  line-height: 1.8;
  margin-top: 20px;
}

.article-body img {
  max-width: 100%;
  height: auto;
  vertical-align: bottom;
  border-style: none;
  text-align: center;
  margin-bottom: 30px;
  border: 1px solid #e6e6e6;
}

.article-body .sns-box p {
  background-color: #f5f5f5;
  overflow: hidden;
  margin-bottom: 30px;
  padding: 0px;
}

.article-body .works-date {
  font-size: 15px;
  text-align: right;
}

.home-link {
  text-align: center;
}

.img-right {
    float: right;           /* 画像を右に寄せる */
    width: 35%;             /* 画像の幅を全体の幅の35%に指定 */
    margin: 0 0 10px 10px;  /* 余白を指定（上0、右0、下10px、左10px） */
}

.article-body .toc-area {
  background-color: #f5f5f5;
  border: 1px solid #e0e0e0;
  padding: 35px;
  font-size: 0.85em;
  line-height: 180%;
  box-sizing: border-box;
  margin-bottom: 30px;
}

.article-body .toc-area p {
  font-weight: bold;
  text-align: center;
}

.article-body section {
  margin-bottom: 30px;
}

.article-body li {
  margin-left: 20px;
  font-size: 17px;
}

.article-body ol {
  font-size: 15px;
}

.toc-area ol li {
  margin-left: 20px;
  font-size: 15px;
}

.section-title {
  display: flex;
  align-items: center;
}

.section-title .square {
  width: 12px; /* 正方形の幅と高さ */
  height: 12px;
  background-color: #333; /* 紫の色 */
  margin-right: 8px; /* 正方形とテキストの間のスペース */
}

/*--------------------------------
 パンくずリスト
---------------------------------*/
.bread-crumb {
  background-color: #f5f5f5;
  padding-top: 50px;
  padding-left: 25px;
  padding-right: 25px;
  text-align: center; /* パンくずリストを中央に配置 */
  clear: both;
}

.bread-crumb ul {
  display: inline-block; /* リストを横並びにする */
  list-style: none;
  margin: 0;
  padding: 0;
}

.bread-crumb ul li {
  display: inline-block;
  margin: 0;
  padding: 0;
}

.bread-crumb a {
  color: #333;
  text-decoration: none;
  border-bottom: 2px solid #333; /* 下線を追加 */
}

.bread-crumb span {
  color: #333;
}

.bread-crumb li:not(:last-child):after {
  content: "›"; /* 区切り記号を追加 */
  margin: 0 5px;
}

/*--------------------------------
 コードブロック
---------------------------------*/
pre {
  background-color: black; /* 背景色 */
  padding: 10px; /* 余白 */
  text-align: left;
  white-space: pre-wrap; /* タブや改行を保持 */
  margin-bottom: 30px;
}

.code-block span {
  text-align: left;
}

.code-block .pink {
  color: #c71585;
  text-align: left;
}

.code-block .white {
  color: #979797;
}

/*media Queries 767
----------------------------------------------------*/
@media screen and (max-width: 800px) {
  body {
    font-size: 14px;
  }

  .pc-only {
    display: none;
  }

  .sp-only {
    display: block;
  }

  /* 見出し */
  .title {
    font-size: 26px;
    margin-bottom: 20px;
  }

  .lead {
    font-size: 14px;
    line-height: 1.7;
    margin-bottom: 20px;
  }

  /* レイアウト */
  .wrapper {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    padding-bottom: 96px;
  }

  .section {
    padding: 60px 0;
  }

  .post-section {
    padding: 0px;
  }

  .container {
    padding: 0 20px;
  }

  /* ヘッダー */
  .header .container {
    padding: 10px 20px 10px 20px;
  }

  .header-logo {
    font-size: 15px;
    margin-right: 15px;
  }

  .gnav-item:not(:last-child) {
    margin-right: 10px;
  }

  .gnav-item a {
    font-size: 10px;
  }

  .gnav-item a:after {
    display: none;
  }

  /*  メインビジュアル */
  .mv {
    height: 75vh;
  }

  .mv-container {
    padding: 0 20px;
  }

  .mv-title {
    font-size: 30px;
  }
  .mv-subtitle {
    font-size: 16px;
    margin-bottom: 20px;
  }

  .mv-text {
    font-size: 14px;
    line-height: 1.7;
  }

  /* Works */
  .works-name {
    font-size: 12px;
  }

  .works-info {
    margin-top: 3px;
  }

  .works-list {
    justify-content: space-between;
  }

  .works-item {
    flex: 0 0 48%;
    margin-right: 0;
    margin-bottom: 30px;
  }

  /* Posts */
  .posts-name {
    font-size: 12px;
  }

  .posts-info {
    margin-top: 3px;
  }

  .posts-list {
    justify-content: space-between;
  }

  .posts-item {
    flex: 0 0 48%;
    margin-right: 0;
    margin-bottom: 30px;
  }

  /* Skill */
  .skill-list {
    display: block;
    margin-bottom: 0;
  }

  .skill-item {
    width: 100%;
    margin-bottom: 35px;
  }

  .skill-item:last-child {
    margin-bottom: 0;
  }

  .skill-name {
    margin-bottom: 5px;
  }

  .skill-text {
    font-size: 13px;
    line-height: 1.7;
  }

  /* About */
  .profile {
    display: block;
  }
  .profile-img {
    width: 150px;
    margin: 0 auto;
    margin-bottom: 25px;
  }

  .profile-body p {
    font-size: 14px;
    line-height: 1.7;
  }

  .profile-body p:not(:last-child) {
    margin-bottom: 20px;
  }

  /* フッター */
  .footer {
    width: 100%;
    background-color: #333;
    text-align: center;
    padding: 30px;
  }

  /* 下層ページ */
  .article {
    padding: 50px 0;
  }

  .article-body h3 {
    font-size: 16px;
    padding-left: .8em;
  }

  .article-body h3:not(:first-child) {
    margin-top: 30px;
  }

  .article-body p {
    font-size: 14px;
    line-height: 1.7;
    margin-bottom: 20px;
  }

  .article-body ol {
    font-size: 12px;
  }

  .article-body li {
    margin-left: 20px;
    font-size: 15px;
  }
}
