@charset "UTF-8";

html,body,div,span,object,iframe,h1,h2,h3,h4,h5,h6,p,blockquote,pre,abbr,
address,cite,code,del,dfn,em,img,ins,kbd,q,samp,small,strong,sub,sup,var,
b,i,dl,dt,dd,ol,ul,li,fieldset,form,label,legend,caption,tbody,tfoot,thead,
article,aside,canvas,details,figcaption,figure,footer,header,main,menu,nav,
section,summary,time,mark,audio,video {
  margin: 0;
  padding: 0;
  border: 0;
  outline: 0;
  font-size: 100%;
  vertical-align: baseline;
  background: transparent;
}

ul, ol, dl {
  list-style: none;
}

*, *::before, *::after {
  box-sizing: border-box;
}

body {
  font-size: 16px;
  line-height: 1.5;
  -webkit-text-size-adjust: 100%;
  font-family: "Noto Sans JP", "Yu Gothic", "Yu Gothic UI", "Hiragino Sans", "Meiryo", sans-serif;
  color: #333;
  background-color: #ECECEC;
}

a {
  color: #333;
  text-decoration: none;
}

a:hover {
  opacity: 0.5;
}

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

/*======================================================================
  共通
======================================================================*/
.box_wrap {
  max-width: 768px;
  margin: 0 auto;
  padding: 0 20px;
}

.Inner {
  margin: 0;
  position: relative;
}

.img_wrap {
  position: relative;
  display: block;
  overflow: hidden;
}

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

/*======================================================================
  ハンバーガーメニュー
======================================================================*/
.el_hamburger {
  position: fixed;
  top: 20px;
  right: 20px;
  width: 50px;
  height: 20px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  cursor: pointer;
  z-index: 10000;
}

.el_hamburger > span {
  display: block;
  height: 1px;
  background: #333;
  font-size: 0;
  transition: all 0.2s ease-in-out;
}

.el_hamburger:hover > span {
  background: #00a23f;
}

.js_hamburgerOpen .el_hamburger > span.top {
  transform: translateY(9px) rotate(-45deg);
}

.js_hamburgerOpen .el_hamburger > span.middle {
  opacity: 0;
}

.js_hamburgerOpen .el_hamburger > span.bottom {
  transform: translateY(-9px) rotate(45deg);
}

.uq_spNavi {
  display: none;
}

.uq_spNavi.js_appear {
  position: fixed;
  top: 0;
  left: 0;
  bottom: 0;
  right: 0;
  display: block;
  z-index: 9999;
}

.uq_spNavi_screen {
  position: absolute;
  top: 0;
  left: 0;
  bottom: 0;
  right: 0;
  background-color: rgba(255, 255, 255, 0.96);
  overflow: auto;
}

.gnav {
  text-align: center;
}

.gnav li {
  border-bottom: 1px solid #aaa;
}

.gnav li > a {
  display: block;
  padding: 32px 0;
  color: #333;
}

.gnav li > a:hover {
  opacity: 0.5;
}

.js_fixed {
  position: fixed;
  width: 100%;
  height: 100%;
}

/*======================================================================
  HEADER
======================================================================*/

header {
  padding-top: 40px;
  padding-bottom: 80px;
}


.header_content {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 40px;
  position: relative;
}

.header_content .logo {
  display: inline-block;
}

.header_content .logo img {
  width: 297px;
  height: 40px;
  object-fit: contain;
}

/* MVエリアは ::before で角丸画像、h1 は通常フローで下に配置 */
.header_mv {
  margin-top: 20px;
  position: relative;
}

.header_mv::before {
  content: "";
  display: block;
  height: 300px;
  background-image: url(images/mv.jpg);
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  border-radius: 40px;
}

.header_mv h1 {
  font-size: 16px;
  font-weight: 400;
  color: #333;
  line-height: 1.5;
  margin-top: 20px;
  padding-left: 20px;
  padding-right: 136px;
}

.header_shachihoko {
  position: absolute;
  left: 0;
  top: -20px;
  width: 137px;
  height: 155px;
}

.header_castle {
  position: absolute;
  right: 0;
  top: 238px;
  width: 116px;
  height: 130px;
}

.breadcrumb {
  margin: 20px auto 0;
}

.breadcrumb ul li {
  padding-right: 5px;
  display: inline-block;
}

.breadcrumb ul li a span {
  font-weight: bold;
}

/*======================================================================
  TOP（index）
======================================================================*/
#index {
  padding-bottom: 80px;
}

.index_container {
  display: flex;
  flex-direction: column;
  gap: 40px;
}

/* 概要テキスト */
.index_overview {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
}

.index_overview h2 {
  font-size: 28px;
  font-weight: 700;
  color: #333;
  text-align: center;
  line-height: 1.5;
}

.index_overview h2 .sub {
  font-size: 24px;
}

.index_overview p {
  font-size: 16px;
  font-weight: 400;
  color: #333;
  line-height: 1.5;
  width: 100%;
}

/* 最新記事ブロック */
.index_new {
  background-color: #39c876;
  border-radius: 16px;
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.index_new_meta {
  display: flex;
  align-items: center;
  gap: 16px;
}

.index_new_label {
  background-color: #ececec;
  border-radius: 20px;
  padding: 4px 30px;
  font-size: 16px;
  font-weight: 700;
  color: #333;
  white-space: nowrap;
}

.index_new_meta span:last-child {
  font-size: 16px;
  font-weight: 700;
  color: #333;
}

.index_new_title {
  font-size: 16px;
  font-weight: 400;
  color: #333;
  line-height: 1.5;
  display: inline;
  align-self: flex-start;
}

.index_new_title:hover {
  color: #fff;
  opacity: 1;
}

/* カテゴリカードリスト */
.index_cat_list {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.index_cat_list > li {
  border: 1px solid #333;
  border-radius: 16px;
  padding: 20px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 20px;
}

.index_cat_list > li > h3 {
  font-size: 20px;
  font-weight: 700;
  color: #333;
  line-height: 1.5;
  width: 100%;
}

.index_cat_list > li > h3 > a {
  color: #333;
}

.index_cat_list > li > h3 > a:hover {
  color: #00a23f;
  opacity: 1;
}

.index_cat_list > li > p {
  font-size: 16px;
  font-weight: 400;
  color: #333;
  line-height: 1.5;
  width: 100%;
}

.index_cat_list > li > .more {
  display: inline-flex;
  align-items: center;
  gap: 30px;
  height: 40px;
  padding: 8px 20px;
  background-color: #333;
  border-radius: 20px;
  font-size: 16px;
  font-weight: 700;
  color: #fff;
  align-self: flex-end;
}

.index_cat_list > li > .more:hover {
  background-color: #00a23f;
  opacity: 1;
}

.index_cat_list > li > .more::after {
  content: "";
  display: block;
  width: 12px;
  height: 12px;
  background: url(images/arrow_white.svg) no-repeat center / contain;
  flex-shrink: 0;
}

@media (max-width: 767px) {
	.header_shachihoko {
		top: 55px;
	}
	.header_castle {
		top: 180px;
	}
	.header_mv h1 {
		padding-right: 0;
	}
}

/*======================================================================
  RECOMMEND
======================================================================*/
.recommend {
  max-width: 768px;
  margin: 0 auto;
  /* 上余白は#index padding-bottom: 80px で担保済み。下はfooterとのgap: 80px */
  padding: 0 20px 80px;
}

.recommend > h4 {
  font-size: 28px;
  font-weight: 700;
  color: #333;
  line-height: 1.5;
}

.recommend_ol {
  display: block;
  width: 347px;
  max-width: 100%;
  height: 47px;
  margin-top: 4px;
  margin-bottom: 40px;
}

.recommend > ul {
  display: flex;
  flex-direction: column;
  gap: 40px;
}

.recommend > ul > li {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

/* 記事タイトル行（バレット + テキスト） */
.recommend > ul > li > h3 {
  display: flex;
  align-items: center;
  gap: 16px;
}

.recommend > ul > li > h3::before {
  content: "";
  display: block;
  width: 20px;
  min-width: 20px;
  height: 20px;
  border-radius: 50%;
  background-color: #333;
}

.recommend > ul > li > h3 > a {
  font-size: 20px;
  font-weight: 700;
  color: #333;
  line-height: 1.5;
}

.recommend > ul > li > h3 > a:hover {
  color: #00a23f;
  opacity: 1;
}

.recommend > ul > li > h3:has(a:hover)::before {
  background-color: #00a23f;
}

/* サムネイル */
.recommend > ul > li > .img_wrap {
  height: 150px;
}

.recommend > ul > li > .img_wrap img {
  width: 100%;
  height: 150px;
  object-fit: cover;
}

/* 日付バッジ */
.recommend > ul > li > .img_wrap .date {
  position: absolute;
  right: 40px;
  bottom: 20px;
  display: inline-flex;
  align-items: center;
  gap: 0;
  background-color: #ececec;
  border-radius: 20px;
  padding: 4px 30px;
  font-size: 16px;
  font-weight: 700;
  color: #333;
  white-space: nowrap;
}

/* 本文 */
.recommend > ul > li > p {
  font-size: 16px;
  font-weight: 400;
  color: #333;
  line-height: 1.5;
}

/* カテゴリボタン行 */
.recommend > ul > li > ul {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
}

.recommend > ul > li > ul > li {
  flex: 1;
  min-width: calc(50% - 10px);
}

/* ボタン1件のみの場合は半幅に制限 */
.recommend > ul > li > ul > li:only-child {
  flex: 0 0 calc(50% - 10px);
}

@media (max-width: 767px) {
  /* SP: ボタンを縦積みにして可読性を確保 */
  .recommend > ul > li > ul {
    flex-direction: column;
  }
  .recommend > ul > li > ul > li,
  .recommend > ul > li > ul > li:only-child {
    flex: 1 1 auto;
    min-width: 0;
  }
}

.recommend > ul > li > ul > li > a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  min-height: 66px;
  padding: 16px 20px;
  border: 1px solid #333;
  border-radius: 16px;
  font-size: 16px;
  font-weight: 700;
  color: #333;
  line-height: 1.5;
}

.recommend > ul > li > ul > li > a:hover {
  background-color: #00a23f;
  color: #fff;
  border-color: #00a23f;
  opacity: 1;
}

.recommend > ul > li > ul > li > a::after {
  content: "";
  display: block;
  width: 12px;
  min-width: 12px;
  height: 12px;
  background: url(images/arrow_dark.svg) no-repeat center / contain;
  flex-shrink: 0;
}

.recommend > ul > li > ul > li > a:hover::after {
  background-image: url(images/arrow_white.svg);
}

/*======================================================================
  CATEGORY
======================================================================*/
.category {
  /* 上余白は header padding-bottom: 80px で担保済み */
  padding: 0 0 80px;
}

.category_top {
  display: flex;
  flex-direction: column;
  gap: 20px;
  margin-bottom: 40px;
}

.category_top h2 {
  font-size: 28px;
  font-weight: 700;
  color: #333;
  line-height: 1.5;
  text-align: center;
}

.category_top p {
  font-size: 16px;
  font-weight: 400;
  color: #333;
  line-height: 1.5;
}

.category_post {
  display: flex;
  flex-direction: column;
  gap: 20px;
  /* Figma: category section の gap-[80px]（カードリスト → サムネイル間） */
  margin-bottom: 80px;
}

.category_post > li {
  border: 1px solid #333;
  border-radius: 16px;
  padding: 30px 0;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.category_post > li > h3 {
  font-size: 20px;
  font-weight: 700;
  color: #333;
  line-height: 1.5;
  padding: 0 20px;
}

.category_post > li > h3 > a {
  color: #333;
}

.category_post > li > h3 > a:hover {
  color: #00a23f;
  opacity: 1;
}

.category_post > li > .img_wrap {
  height: 100px;
}

.category_post > li > p {
  font-size: 16px;
  font-weight: 400;
  color: #333;
  line-height: 1.5;
  padding: 0 20px;
}

.category_post > li > .more {
  display: inline-flex;
  align-items: center;
  align-self: flex-start;
  gap: 30px;
  height: 40px;
  padding: 8px 20px;
  background-color: #333;
  border-radius: 20px;
  font-size: 16px;
  font-weight: 700;
  color: #fff;
  margin-left: 20px;
}

.category_post > li > .more:hover {
  background-color: #00a23f;
  opacity: 1;
}

.category_post > li > .more::after {
  content: "";
  display: block;
  width: 12px;
  height: 12px;
  background: url(images/arrow_white.svg) no-repeat center / contain;
  flex-shrink: 0;
}

/* カテゴリページ下部サムネイル */
.category .box_wrap > .img_wrap {
  height: 200px;
  border-radius: 40px;
}

/*======================================================================
  DETAIL
======================================================================*/
#detail {
  /* 上余白は header padding-bottom: 80px で担保済み */
  padding: 0 20px 80px;
  max-width: 768px;
  margin: 0 auto;
}

.detail_head {
  margin-bottom: 40px;
}

.detail_head h2 {
  font-size: 28px;
  font-weight: 700;
  color: #333;
  line-height: 1.5;
  text-align: center;
}

.detail_content {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-bottom: 40px;
}

.detail_content_date {
  display: flex;
  align-items: center;
  gap: 16px;
}

.detail_content_date_label {
  background-color: #fff;
  border-radius: 20px;
  padding: 4px 30px;
  font-size: 16px;
  font-weight: 700;
  color: #333;
  white-space: nowrap;
}

.detail_content_date > span:last-child {
  font-size: 16px;
  font-weight: 700;
  color: #333;
}

.detail_content_links ul {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
}

.detail_content_links li a {
  display: inline-flex;
  align-items: center;
  padding: 4px 20px;
  border: 1px solid #333;
  border-radius: 4px;
  font-size: 16px;
  font-weight: 700;
  color: #333;
  line-height: 1.5;
}

.detail_content_links li a:hover {
  background-color: #00a23f;
  color: #fff;
  border-color: #00a23f;
  opacity: 1;
}

.detail_post {
  display: flex;
  flex-direction: column;
}

.detail_post h3 {
  font-size: 20px;
  font-weight: 700;
  color: #333;
  line-height: 1.5;
  margin-top: 20px;
}

.detail_post h3:first-child {
  margin-top: 0;
}

.detail_post p {
  margin-top: 20px;
  font-size: 16px;
  font-weight: 400;
  color: #333;
  line-height: 1.5;
}

.detail_post .img_wrap {
  margin-top: 20px;
  height: 150px;
}

/* 記事内リンク */
.detail_post a {
  color: #5580a4;
}


.link_item {
  display: inline-block;
  margin: 0 0 1em;
}

/* 説明文の下1em */
.link_item > dd:first-child {
  margin-bottom: 1em;
}

/* 画像リンクはブロック表示 */
.link_item dt a {
  display: inline-block;
}

.link_item dt img {
  width: revert-layer;
  height: auto;
  display: block;
}

/* テキストリンク：サイト未使用色のくすんだブルー */
.link_item > dd:last-child a {
  font-weight: bold;
  color: #5580a4;
}

/*======================================================================
  FOOTER
======================================================================*/
footer,
.footer {
  background-color: #687770;
}

.footer .box_wrap {
  padding-top: 40px;
  padding-bottom: 20px;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 20px;
}

.footer .fnav > div > ul {
  display: flex;
  gap: 16px;
  justify-content: space-between;
}

.footer .fnav > div > ul > li {
  flex: 1;
}

.footer .fnav > div > ul > li > a {
  display: block;
  padding: 10px;
  font-size: 16px;
  font-weight: 700;
  color: #fff;
  line-height: 1.5;
  text-align: center;
}

.footer .fnav > div > ul > li > a:hover {
  opacity: 0.7;
}

.footer .flogo {
  display: block;
  width: 297px;
  align-self: center;
}

.footer .flogo img {
  width: 297px;
  height: 40px;
  object-fit: contain;
  filter: brightness(0) invert(1);
}

/* クロスカテゴリナビは中央寄せ */
.footer .box_wrap > nav.fnav:last-of-type > div > ul {
  justify-content: center;
}

.footer .copyright {
  font-size: 16px;
  font-weight: 400;
  color: #fff;
  text-align: center;
  border-top: 1px solid #ececec;
  padding-top: 20px;
  width: 100%;
}


@media (max-width: 767px) { 
	.footer .box_wrap {
		gap: 30px;
	}
	
	.footer .fnav > div > ul {
		flex-direction: column;
	}
	.footer .fnav > div > ul {
		gap: 0;
	}
}
