@charset "UTF-8";
:root {
  --main-color: #ff9f31;
  --bg-color: #d7eee6;
  --font: '\f0f3';
}

/* リセットCSS */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Hiragino Sans', 'Hiragino Kaku Gothic ProN', Meiryo, sans-serif;
  font-size: 16px;
  line-height: 1.8;
  color: #333;
  background-color: var(--bg-color);
}

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

img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* ヘッダー */
header {
  background-color: var(--main-color);
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
  position: relative;
  z-index: 1000;
  background-image: url(img/background.jpg);
  background-position: center;
}
header:before {
  position: absolute;
  content: '';
  display: block;
  width: 100%;
  height: 100%;
  background-color: var(--main-color);
  opacity: 0.8;
  z-index: -1;
}

.header_space {
  padding: 20px 0;
  line-height: 1.3;
}

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

.site_title {
  /* text-align: center; */
}

.site_title a {
  color: #ffffff;
  display: inline-block;
  transition: all 0.3s ease;
}

.site_title a:hover {
  opacity: 0.8;
}
.sitename {
  font-size: 24px;
  font-weight: bold;
  display: block;
}
.sitename:before {
  font-family: 'Font Awesome 5 Free' !important;
  content: var(--font);
  padding-right: 0.5em;
  font-weight: bold;
}

/* グローバルナビゲーション */
.gnavi {
  display: none;
}

/* パンくずリスト */
.breadcrumb {
  padding: 12px 0;
}

.breadcrumb ol {
  list-style: none;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

.breadcrumb li {
  font-size: 14px;
  display: inline;
}

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

.breadcrumb li:last-child::after {
  content: '';
  margin: 0;
}

.breadcrumb a {
  color: var(--main-color);
  transition: color 0.3s ease;
}

.breadcrumb a:hover {
  text-decoration: underline;
}

/* メインコンテナ */
.wrapper {
  max-width: 1200px;
  margin: 30px auto;
  padding: 0 20px;
  display: flex;
  gap: 30px;
}

.wrapper.toppage {
  margin-top: 30px;
}

/* メインカラム */
.maincolumn {
  flex: 1;
  min-width: 0;
  order: 2;
}

/* 記事一覧ページ */
.article_list {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 30px;
  margin: 0;
  padding: 0;
}

.article_list > li {
  width: calc((100% - 30px) / 2);
  margin: 0;
}

.article_list_detail {
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
  overflow: hidden;
  transition: all 0.3s ease;
  height: 100%;
  display: flex;
  flex-direction: column;
}

.article_list_detail:hover {
  transform: translateY(-6px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
}

.article_list_detail .img {
  width: 100%;
  height: 200px;
  overflow: hidden;
}

.article_list_detail .img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.article_list_detail:hover .img img {
  transform: scale(1.1);
}

.article_list_detail .article_block {
  padding: 20px;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.article_list_detail .article_title {
  font-size: 18px;
  font-weight: bold;
  margin-bottom: 15px;
  line-height: 1.5;
  color: #333;
}

.article_list_detail .at_uderline {
  position: relative;
  display: block;
  padding-bottom: 15px;
  margin-bottom: 15px;
}

.article_list_detail .at_uderline:after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 60px;
  height: 4px;
  background: linear-gradient(90deg, var(--main-color) 0%, var(--main-color) 100%);
  border-radius: 2px;
}

.article_list_detail .txt {
  font-size: 14px;
  line-height: 1.7;
  color: #666;
  display: block;
}

/* 記事詳細ページ */

.article_page {
  background-color: #fff;
  border-radius: 8px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
  overflow: hidden;
}

/* 記事一覧ページのヘッダー */
.article_page.cate_read {
  margin-bottom: 30px;
  padding: 30px 40px;
}

.single_column {
  padding: 40px;
}

.heading {
  margin-bottom: 30px;
}

.headline {
  font-size: 32px;
  font-weight: bold;
  color: #333;
  line-height: 1.4;
  padding-left: 1.5em;
  position: relative;
}
.headline:before {
  font-family: 'Font Awesome 5 Free' !important;
  content: var(--font);
  padding-right: 0.5em;
  color: var(--main-color);
  position: absolute;
  top: 0;
  left: 0;
}
.headline.shadow {
  background: transparent;
}

.single_column p {
  margin-bottom: 20px;
  line-height: 1.9;
}

.single_column a:hover {
  text-decoration: underline;
}

.single_column img {
  margin: 30px 0;
  border-radius: 4px;
}

/* サイドバー */
.sidebar {
  width: 320px;
  flex-shrink: 0;
  order: 1;
}

.side_list {
  background: #ffffff;
  border-radius: 12px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
  margin-bottom: 25px;
  overflow: hidden;
}

.parts_heading {
  font-size: 16px;
  font-weight: bold;
  color: #ffffff;
  line-height: 1.4;
  padding: 20px 20px 20px 20px;
  position: relative;
  background-image: url(img/background.jpg);
  background-position: center;
  z-index: 0;
  overflow: hidden;
}
.parts_heading:before {
  position: absolute;
  content: '';
  display: block;
  width: 100%;
  height: 100%;
  background-color: var(--main-color);
  opacity: 0.8;
  z-index: -1;
  top: 0;
  left: 0;
}

.parts_heading span:before {
  font-family: 'Font Awesome 5 Free' !important;
  content: var(--font);
  padding-right: 0.5em;
}

.side_list .item {
}

.side_list ul {
  list-style: none;
  border-top: 1px solid rgba(0, 0, 0, 0.08);
}

.side_list li {
  border-bottom: 1px solid rgba(0, 0, 0, 0.08);
}

.list-hover {
  display: block;
  padding: 14px 20px;
  transition: all 0.3s ease;
  position: relative;
}

.list-hover:hover {
  background: rgb(from var(--main-color) r g b / 0.1);
  text-decoration: none;
}

.list-sty dt {
  font-size: 14px;
  color: #333;
  line-height: 1.6;
  position: relative;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.golist {
  display: block;
  text-align: center;
  padding: 14px;
  font-weight: bold;
  font-size: 14px;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}
.golist:hover {
  background: rgb(from var(--main-color) r g b / 0.1);
  text-decoration: none;
}

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

.pagetop a {
  display: block;
  width: 50px;
  height: 50px;
  background: linear-gradient(135deg, var(--main-color) 0%, var(--main-color) 100%);
  border-radius: 50%;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
  position: relative;
  transition: all 0.3s ease;
}

.pagetop a:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.5);
  text-decoration: none;
}

.pagetop a::before {
  content: '▲';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  color: #fff;
  font-size: 16px;
}

/* フッター */
.footer {
  background: rgb(from var(--main-color) r g b / 0.6);
  color: #fff;
  padding: 30px 0;
  margin-top: 50px;
  text-align: center;
}

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

.footer a {
  color: #fff;
  font-size: 18px;
  font-weight: bold;
}

.footer a:hover {
  color: #ddd;
}

/* レスポンシブデザイン */
@media (max-width: 1024px) {
  .gnavi_list a {
    padding: 15px 12px;
    font-size: 13px;
  }
}

@media (max-width: 900px) {
  .wrapper {
    flex-direction: column;
    gap: 20px;
    order: 1;
  }

  .sidebar {
    width: 100%;
    order: 2;
  }

  /* 記事一覧を2カラムに */
  .article_list > li {
    width: calc((100% - 30px) / 2);
  }
}

@media (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;
  }

  .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: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;
  }

  /* ヘッダー */
  .sitename {
    font-size: 22px;
  }

  /* パンくずリスト */
  .breadcrumb li {
    font-size: 13px;
  }

  /* メインコンテンツ */
  .single_column {
    padding: 25px 20px;
  }

  .headline {
    font-size: 24px;
  }

  /* 記事一覧ページ */
  .article_page.cate_read {
    padding: 20px;
  }

  .article_list {
    gap: 20px;
  }

  .article_list > li {
    width: 100%;
  }

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

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

@media (max-width: 480px) {
  body {
    font-size: 15px;
  }

  .wrapper {
    margin: 20px auto;
    padding: 0 15px;
  }

  .sitename {
    font-size: 20px;
  }

  .single_column {
    padding: 20px 15px;
  }

  .headline {
    font-size: 22px;
  }

  /* 記事一覧ページ */
  .article_page.cate_read {
    padding: 15px;
  }

  .article_list_detail .article_block {
    padding: 15px;
  }

  .article_list_detail .article_title {
    font-size: 16px;
  }

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

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

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

/* アニメーション */
@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
