@charset "UTF-8";
:root {
  --main-color: #7e000a;
  --sub-color: #ff6571;
}

/* =========================================
   リセットCSS & 基本設定
========================================= */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Helvetica Neue', 'Hiragino Sans', 'Hiragino Kaku Gothic ProN', 'Yu Gothic', YuGothic, Meiryo, sans-serif;
  font-size: 16px;
  line-height: 1.7;
  color: #333;
}

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

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

/* =========================================
 ヘッダー
========================================= */
header {
  margin-bottom: 30px;
}

.header_space {
  background: linear-gradient(135deg, var(--main-color) 0%, var(--sub-color) 100%);
  color: white;
  line-height: 1.3;
}

.header_visual {
  padding: 15px 0;
}

.header_visual .inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

.site_title a {
  color: white;
  text-decoration: none;
  display: block;
}

.sitename {
  font-size: 18px;
  font-weight: 700;
  letter-spacing: 0.5px;
}

/* =========================================
 グローバルナビゲーション
========================================= */
/* 元のテーマからグローバルナビゲーションのスタイルを移植 */
.gnavi {
  display: none;
}

/* PC用のスタイルは既存テーマに依存 */

/* スマホ版グローバルナビゲーション */
@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: #888888cc;
  }

  .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 25px;
    line-height: 50px;
    color: var(--main-color);
    background: #ffffff;
    overflow: hidden;
    font-weight: normal;
    border-bottom: 1px solid #dddddd;
    backface-visibility: #f2f2f2;
    font-size: inherit;
  }

  .gnavi_list li a:before {
    display: none;
  }

  .gnavi_list li:after {
    content: '';
    display: inline-block;
    position: absolute;
    left: 10px;
    width: 0;
    height: 0;
    margin-top: -30px;
    border-top: 4px solid transparent;
    border-right: 5px solid transparent;
    border-bottom: 4px solid transparent;
    border-left: 5px solid var(--main-color);
    background: transparent;
    opacity: inherit;
  }
}

/* =========================================
 パンくずリスト
========================================= */
.breadcrumb {
  margin-bottom: 20px;
}

.breadcrumb .inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

.breadcrumb ol {
  list-style: none;
  align-items: center;
}

.breadcrumb li {
  display: inline;
  align-items: center;
}

.breadcrumb li:not(:last-child)::after {
  font-family: 'Font Awesome 5 Free' !important;
  content: '\f105';
  padding-right: 0.25em;
  font-weight: bold;
  padding-left: 0.25em;
  color: var(--main-color);
}

.breadcrumb a {
  color: var(--main-color);
  text-decoration: underline;
}

/* =========================================
 メインラッパー
========================================= */
.wrapper {
  max-width: 1200px;
  margin: 30px auto;
  padding: 0 20px;
  display: grid;
  grid-template-columns: 1fr 30%;
  gap: 30px;
}

/* =========================================
 メインコンテンツエリア
========================================= */
.maincolumn {
}

/* =========================================
 記事一覧ページ
========================================= */

.cate_read .headline {
  font-size: 32px;
  line-height: 1.5;
  font-weight: 700;
}
.cate_read .headline:before {
  font-family: 'Font Awesome 5 Free' !important;
  content: '\f02d';
  font-weight: bold;
  margin-right: 0.5em;
  color: var(--main-color);
}
.article_list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.article_list > li > a {
  display: block;
  padding: 30px 0;
  border-bottom: 1px solid #e0e0e0;
}

.article_list_detail {
  display: flex;
  gap: 25px;
  align-items: start;
}

.article_list_detail .img_wrap {
  position: relative;
  width: 240px;
  overflow: hidden;
  aspect-ratio: 16 / 10;
  overflow: hidden;
}

.article_list_detail .img_wrap > dd {
  width: 100%;
  height: 200px;
  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;
}
.article_title {
  font-size: 24px;
  font-weight: bold;
}

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

.article_block .txt {
  font-size: 15px;
  line-height: 1.8;
  color: #333;
  display: block;
}

.ribbon-wrap {
  /* 既存のribbon関連のスタイルを維持 */
}

/* =========================================
 記事詳細ページ
========================================= */

.single_column {
  padding: 40px;
  border: 1px solid #e0e0e0;
}

.single_column.toppage {
  margin-bottom: 40px;
}
.single_column .heading {
  margin-bottom: 30px;
}

.headline {
  font-size: 32px;
  line-height: 1.5;
  font-weight: 700;
  color: var(--main-color);
}

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

.single_column .cate {
  display: flex;
  margin-bottom: 10px;
}

/* 記事本文のスタイル */
.single_column p {
  margin-bottom: 20px;
  line-height: 1.8;
}

.single_column img {
  display: block;
  max-width: 100%;
  height: auto;
  margin: 30px auto;
}

.single_column a {
  color: var(--main-color);
  text-decoration: underline;
}

.eyecatch {
  width: 100%;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  margin-bottom: 30px;
  position: relative;
  overflow: hidden;
}

.eyecatch:before {
  content: '';
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, var(--main-color) 0%, var(--sub-color) 100%);
  position: absolute;
  opacity: 0.8;
}

.eyecatch img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  margin: 0;
  border-radius: unset;
}

.eyecatch_txt {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  padding: 20px;
  flex-direction: column;
  justify-content: center;
}
.eyecatch_head {
  font-size: 30px;
  line-height: 1.5;
  font-weight: 700;
  color: #ffffff;
  text-shadow: 3px 3px #fff4;
}
.eyecatch_cate {
  background-color: #fff;
  border-radius: 31px;
  color: var(--main-color);
  padding: 5px 25px;
  font-size: 18px;
  line-height: 1.2;
  vertical-align: middle;
  text-decoration: none;
  font-weight: bold;
  box-shadow: 3px 3px #fff4;
  margin-bottom: 20px;
}
.eyecatch_cate:before {
  font-family: 'Font Awesome 5 Free' !important;
  content: '\f02d';
  font-weight: bold;
  margin-right: 0.5em;
}
/* =========================================
 サイドバー
========================================= */
.sidebar {
  display: flex;
  flex-direction: column;
  gap: 25px;
}

.side_list {
  overflow: hidden;
  margin-bottom: 25px;
}

.parts_heading {
  font-size: 20px;
  font-weight: 700;
  padding: 0 0 5px;
  margin: 0;
  color: var(--main-color);
  border-bottom: 3px solid var(--main-color);
}

.side_list .item {
  padding: 0;
}

.side_list ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.side_list li {
  border-bottom: 1px solid #e0e0e0;
}

.side_list li:last-child {
  border-bottom: none;
}

.side_list li > a {
  display: block;
  padding: 15px 0;
}
.side_list_detail {
  display: flex;
  gap: 12px;
  align-items: flex-start;
}

.side_list_detail dt {
  flex: 1;
  font-weight: 500;
  line-height: 1.6;
  order: 2;
}

.side_list_detail dd {
  flex-shrink: 0;
  order: 1;
}

.side_list_detail .img {
  width: 100px;
  height: 60px;
  overflow: hidden;
}

.side_list_detail .img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.golist {
  display: block;
  text-align: center;
  padding: 12px 0;
  color: var(--main-color);
  font-size: 14px;
  font-weight: 500;
  border-top: 1px solid #e0e0e0;
  text-align: left;
}
.golist:before {
  font-family: 'Font Awesome 5 Free' !important;
  content: '\f0a9';
  font-weight: bold;
  margin-right: 0.5em;
}

/* =========================================
 フッター
========================================= */
.footer {
  background: var(--sub-color);
  color: white;
  padding: 30px 0;
  margin-top: 50px;
  text-align: center;
}

.footer .inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

.footer a {
  color: white;
  font-size: 16px;
  font-weight: 500;
}

.footer a:hover {
  opacity: 0.8;
}

/* ページトップボタン */
.pagetop {
  position: fixed;
  bottom: 30px;
  right: 30px;
  z-index: 1000;
}

.pagetop a {
  display: block;
  width: 50px;
  height: 50px;
  background: var(--main-color);
  border-radius: 50%;
  position: relative;
}

.pagetop a:hover {
  transform: translateY(-3px);
}

.pagetop a::before {
  font-family: 'Font Awesome 5 Free' !important;
  content: '\f106';
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  color: white;
  font-size: 24px;
  font-weight: bold;
  position: absolute;
}

/* =========================================
 ユーティリティクラス
========================================= */
.inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

.box {
  /* 必要に応じてスタイルを追加 */
}

.btn-parent {
  /* 必要に応じてスタイルを追加 */
}

.title_dec {
  /* 必要に応じてスタイルを追加 */
}

.stripe_border {
  /* 必要に応じてスタイルを追加 */
}

.linepuls {
  /* 必要に応じてスタイルを追加 */
}

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

/* スマートフォン (768px以下) */
@media (max-width: 768px) {
  /* レイアウト変更 */
  .wrapper {
    grid-template-columns: 1fr;
    gap: 30px;
    margin: 20px auto;
    padding: 0 15px;
  }
  header {
    margin-bottom: 20px;
  }

  .sidebar {
    order: 2;
  }

  .maincolumn {
    order: 1;
  }
  .single_column {
    padding: 15px;
    margin-inline: -15px;
    border: none;
  }
  .single_column.toppage {
    margin-bottom: 20px;
  }

  /* ヘッダー */
  /* ヘッダー */
  .header_visual {
    padding: 15px 0;
  }

  .sitename {
    font-size: 16px;
  }

  .breadcrumb li:not(:last-child)::after {
    margin: 0 5px;
  }

  /* メインコンテンツ */

  .single_column .heading {
    margin-bottom: 15px;
  }
  .headline {
    font-size: 24px;
  }
  .eyecatch {
    margin-bottom: 15px;
  }
  .eyecatch_cate {
    font-size: 12px;
  }
  .eyecatch_head {
    font-size: 20px;
  }
  /* 記事一覧ページ - スマホ */

  .cate_read .headline {
    font-size: 24px;

    margin-bottom: 20px;
  }
  .article_list > li a {
    padding: 0;
    padding-bottom: 20px;
    margin-bottom: 30px;
  }

  .article_list_detail {
    gap: 10px;
    flex-direction: column;
  }

  .article_list_detail .img_wrap {
    width: 100%;
    aspect-ratio: 16 / 8;
  }

  .article_list_detail .img_wrap > dd {
    height: 180px;
  }

  .article_title {
    font-size: 20px;
    margin-bottom: 10px;
  }

  .article_block .txt {
    font-size: 16px;
  }

  /* ページトップボタン */
  .pagetop {
    bottom: 20px;
    right: 20px;
  }

  .pagetop a {
    width: 45px;
    height: 45px;
  }

  .pagetop a::before {
    font-size: 20px;
  }
}
