@charset "UTF-8";

:root {
  --main-color: #007cba;
  --back-color: #383838;
}

/* ===============================
   リセット&ベーススタイル
=============================== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Hiragino Sans', 'Hiragino Kaku Gothic ProN', 'Noto Sans JP', Meiryo, sans-serif;
  line-height: 1.8;
  color: #565656;
  /* background-color: #f5f5f5; */
  font-size: 16px;
}

img {
  max-width: 100%;
  height: auto;
  vertical-align: middle;
}

a {
  color: var(--main-color);
  text-decoration: none;
  transition: 0.3s ease;
}

a:hover {
  opacity: 0.6;
  text-decoration: underline;
}

/* ===============================
   ヘッダー
=============================== */
header {
  background-size: cover;
  background-position: center;
  position: relative;
  z-index: 0;
  margin-bottom: 20px;
  line-height: 1.2;
  background-image: url(img/header.jpg);
  background-repeat: no-repeat;
  background-size: cover;
  background-position: center;
  position: relative;
  box-shadow: inset 0 -10px 10px rgba(0, 0, 0, 0.5);
}
header::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: var(--back-color);
  opacity: 0.5;
  z-index: -1;
}
header .sitetitle {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
  height: 300px;
  font-weight: normal;
}
header .sitetitle > div {
  display: flex;
  flex-direction: column;
  justify-content: center;
  height: 100%;
  align-items: flex-start;
}
header .sitetitle a {
  transition: 0.3s;
  display: inline-block;
  text-shadow: 2px 2px 10px #000a;
  color: #ffffff;
}
header .sitetitle a .url {
  color: var(--main-color);
  display: block;
  font-size: 56px;
  position: relative;
}
header .sitetitle a .name {
  font-size: 40px;
  font-weight: normal;
  display: block;
  letter-spacing: 0.1em;
}

header .sitetitle a:hover {
  opacity: 0.5;
}

header .mainvisual {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px 20px;
}
header .mainvisual img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  margin: 0;
  opacity: 0.8;
}
header .sitetitle a:hover {
  text-decoration: none;
}

/* ===============================
   メインコンテンツエリア
=============================== */
main {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px 40px;
}

/* パンくずリスト */
.breadcrumbs {
  list-style: none;
  margin-bottom: 40px;
  font-size: 14px;
  letter-spacing: -0.4em;
}

.breadcrumbs li:first-child a:before {
  font-family: 'Font Awesome 5 Free' !important;
  content: '\f015';
  font-weight: bold;
  margin-right: 5px;
}

.breadcrumbs li {
  display: inline;
  letter-spacing: normal;
}

.breadcrumbs li::after {
  content: '›';
  margin: 0 10px;
  color: #999;
}

.breadcrumbs li:last-child::after {
  content: '';
  margin: 0;
}
.breadcrumbs li a {
  color: #565656;
  text-decoration: none;
}

/* メインコンテンツグリッド */
.mainContents {
  display: grid;
  grid-template-columns: 1fr 30%;
  gap: 50px;
}

.topContents.toppage {
  margin-top: 40px;
}

/* ページタイトル */
.mainTop {
  font-size: 36px;
  font-weight: normal;
  color: var(--main-color);
  margin-bottom: 40px;
  line-height: 1.3;
  position: relative;
}

.topContents .cate a,
.topContents .cate span {
  background-color: var(--sub-color);
  border-radius: 4px;
  color: #fff;
  padding: 5px 10px;
  font-size: 12px;
  line-height: 1.2;
  vertical-align: middle;
  text-decoration: none;
  font-weight: bold;
  vertical-align: middle;
}

.topContents .cate {
  display: flex;
  margin-bottom: 15px;
}
/* ===============================
   記事詳細ページ
=============================== */
.topContents {
}

.topContents p {
  margin-bottom: 25px;
  color: #565656;
}

.topContents p:last-child {
  margin-bottom: 0;
}

.topContents img {
  display: block;
  margin: 30px auto;
  border-radius: 4px;
}

.topContents a {
  font-weight: 500;
  word-break: break-all;
  font-weight: normal;
  text-decoration: underline;
}

/* ===============================
   記事一覧ページ
=============================== */
/* 一覧ページのtopContentsは背景なし */
.topContents {
  background-color: transparent;
  padding: 0;
  box-shadow: none;
}
.category_list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.category_list > li > a {
  display: block;
  padding-bottom: 30px;
  text-decoration: none;
  font-weight: normal;
  margin-bottom: 30px;
  border-bottom: 1px solid #dedede;
  color: #565656;
}

.category_list > li:last-child > a {
  margin-bottom: 0;
}
.article_list_detail {
  display: flex;
  gap: 25px;
  align-items: start;
  flex-direction: row-reverse;
}

.article_list_detail .img_wrap {
  position: relative;
  width: 180px;
  overflow: hidden;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  border-radius: 4px;
}

.article_list_detail .img_wrap > dd {
  width: 100%;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.article_list_detail .img_wrap > dd > div {
  width: 100%;
  height: 100%;
}

.article_list_detail .img_wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.3s ease;
  margin: 0;
}
.article_title {
  font-size: 20px;
  line-height: 1.3;
  margin-bottom: 15px;
}
.article_title:before {
  content: '■';
  margin-right: 0.5em;
}
.article_title .cate {
  margin-bottom: 40px;
}
.article_title .cate span {
  font-size: 11px;
}

.article_block {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.article_block .txt {
  line-height: 1.5;
  display: block;
}
.article_block .txt .link {
  color: var(--main-color);
  display: block;
  margin-top: 5px;
}
.article_block .txt .link:before {
  content: '[';
}
.article_block .txt .link:after {
  content: ']';
}

/* ===============================
   サイドバー
=============================== */
.sidebar {
  top: -40px;
  position: relative;
}

.sidelist {
  background-color: var(--main-color);
  border-radius: 8px;
  overflow: hidden;
}

.sidelist dt {
  /* color: #fff; */
  padding: 10px 10px;
  font-size: 18px;
  font-weight: bold;
  letter-spacing: 1px;
  text-align: center;
  background-color: var(--main-color);
  color: #ffffff;
}
.sidelist dd {
  padding: 0;
}

.sidelist .list {
  list-style: none;
  padding: 0;
}

.sidelist .list li {
  padding: 0;
}

.sidelist .list li a {
  display: block;
  padding: 10px 20px;
  color: #ffffff;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden; /* 溢れた部分を隠す */
  text-overflow: ellipsis; /* 溢れた部分を「...」にする */
  white-space: nowrap; /* 1行で表示 */
}

.sidelist .list li a:hover {
  text-decoration: none;
}
.sidelist .list li:first-child a {
  padding-top: 20px;
}
.sidelist .list li:last-child a {
  padding-bottom: 20px;
}

/* ===============================
   フッター
=============================== */
footer {
  background: rgb(from var(--main-color) r g b / 0.2);
  color: var(--main-color);
  text-align: center;
  padding: 20px 20px;
  margin-top: 60px;
}

footer .sitetitle {
  font-size: 16px;
  opacity: 0.9;
}

/* ===============================
   レスポンシブデザイン
=============================== */

/* タブレット（900px以下） */
@media (max-width: 900px) {
  header .sitetitle a .name {
    font-size: 32px;
  }
  .mainContents {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .sidebar {
    position: static;
  }

  .category_list {
  }

  header .mainvisual {
    padding: 0 15px 15px;
  }

  .topContents {
    padding: 0;
  }

  .topContents {
    padding: 0;
  }
  .sidebar {
  }
}

/* スマートフォン（600px以下） */
@media (max-width: 600px) {
  body {
    font-size: 15px;
  }

  main {
    padding: 0 15px 0;
  }
  header .sitetitle {
    padding: 0 15px;
    height: 150px;
    padding-right: 50px;
  }
  header .sitetitle > div {
    background: none;
  }
  header .sitetitle a .url {
    font-size: 30px;
  }
  header .sitetitle a .name {
    font-size: 20px;
  }

  header .mainvisual {
    padding: 0 15px 12px;
  }

  header .mainvisual .img {
    height: 180px;
  }

  .breadcrumbs {
    font-size: 13px;
    margin-bottom: 20px;
  }

  .breadcrumbs li::after {
    margin: 0 6px;
  }
  .topContents.toppage {
    margin-top: 20px;
  }

  .topContents {
    padding: 0;
  }

  .topContents {
    padding: 0;
  }

  .mainTop {
    font-size: 28px;
    margin-bottom: 20px;
  }

  .topContents p {
    margin-bottom: 18px;
  }

  .topContents img {
    margin: 20px auto;
  }

  .sidelist dd {
    padding: 0;
  }
  footer {
    padding: 25px 15px;
    margin-top: 40px;
  }

  footer .sitetitle {
    font-size: 18px;
  }
  .article_list_detail {
    gap: 10px;
  }
  .article_list_detail .img_wrap {
    width: 80px;
    aspect-ratio: 1 / 1;
    margin-bottom: 10px;
  }
  .article_title {
    font-size: 18px;
    margin-bottom: 5px;
  }
  .category_list > li > a {
    padding-bottom: 20px;
    margin-bottom: 20px;
  }
  .article_block .txt {
    font-size: 16px;
  }
}

/* =========================================
 グローバルナビゲーション
========================================= */
/* 元のテーマからグローバルナビゲーションのスタイルを移植 */

/* PC用のスタイルは既存テーマに依存 */
@media screen and (min-width: 961px) {
  .gnavi {
    display: none;
  }
}

/* スマホ版グローバルナビゲーション */
@media screen and (max-width: 960px) {
  .gnavi {
    display: block;
    width: 100%;
    position: fixed;
    top: 0;
    right: 0;
    z-index: 100;
  }

  .toggle {
    z-index: 12;
    position: absolute;
    top: 0;
    right: 0;
    width: 50px;
    height: 50px;
    content: '';
    display: block;
    cursor: pointer;
    background: var(--main-color);
  }

  .toggle:before,
  .toggle:after {
    box-sizing: border-box;
    display: block;
    position: absolute;
    left: 25%;
    width: 50%;
    height: 5%;
    content: '';
    background-color: #ffffff;
    transition: all 0.6s ease-in-out;
  }

  .toggle.on:before,
  .toggle.on:after {
    top: 47%;
    left: 15%;
    width: 70%;
  }

  .toggle.on:before {
    transform: rotate(315deg);
  }

  .toggle.on:after {
    transform: rotate(-315deg);
  }

  .toggle:before {
    top: 30%;
  }

  .toggle:after {
    top: 60%;
  }

  .top .gnavi_list,
  .gnavi_list {
    position: fixed;
    right: -100%;
    width: 100%;
    transition: 0.6s;
    text-shadow: none;
  }

  .toggle.on + .gnavi_list {
    right: 0%;
  }

  .gnavi_list ul {
    display: block;
    padding: 0;
    background-color: #ffffff;
  }

  .gnavi_list ul li {
    display: block;
  }

  .gnavi_list li a {
    display: block;
    white-space: nowrap;
    width: 100%;
    text-align: left;
    text-overflow: ellipsis;
    padding: 0 15px 0 15px;
    line-height: 50px;
    color: #565656;
    background: #ffffff;
    overflow: hidden;
    font-weight: normal;
    border-bottom: 1px solid #dddddd;
    backface-visibility: #f2f2f2;
    font-size: inherit;
  }

  .gnavi_list li a:hover {
    text-decoration: none;
  }

  .gnavi_list li a:before {
    font-family: 'Font Awesome 5 Free' !important;
    content: '\f138';
    padding-right: 1em;
    color: var(--main-color);
    font-weight: bold;
  }
}
