@charset "utf-8";

:root {
  --main-color: #92131c;
  --sub-color: #f2727b;
  --back-color: #fdf4f4;
}


/* ========== 基本設定 ========== */
body {
  font-family: "Hiragino Sans", "Helvetica Neue", Arial, sans-serif;
  margin: 0;
  padding: 0;
  line-height: 1.6;
  color: #333;
  background: #fff;
}

a {
  color: var(--main-color);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

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

/* ========== レイアウト全体 ========== */
.wrapper,
header .inner,
footer .inner {
  max-width: 1040px;
  margin: 0 auto;
  padding: 0 16px;
}

.wrapper {
  display: flex;
  gap: 24px;
  margin-top: 24px;
}

/* ========== ヘッダー ========== */
header {
  background: var(--main-color);
}

header .title {
  font-size: 1.2rem;
  font-weight: bold;
  padding: 10px 0;
}

header .title a {
  color: #ffffff;
  position: relative;
  padding-left: 1.6em;
  line-height: 1.4;
}

header .title a:before,header .title a:after {
  content: "";
  position: absolute;
  -webkit-transform: rotate(45deg);
  -moz-transform: rotate(45deg);
  -o-transform: rotate(45deg);
  -ms-transform: rotate(45deg);
  transform: rotate(45deg);
}

header .title a:before {
  top: 0;
  left: 0;
  width: 12px;
  height: 12px;
  border: 2px solid var(--back-color);
  opacity: 0.5;
}
header .title a:after {
  top: 3px;
  left: 0.5em;
  width: 14px;
  height: 14px;
  background: var(--back-color);
  -webkit-transform: rotate(60deg);
  -moz-transform: rotate(60deg);
  -o-transform: rotate(60deg);
  -ms-transform: rotate(60deg);
  transform: rotate(60deg);
}


#mainBanner {
  padding: 0 16px;
}
#mainBanner .inner {
  padding-inline: 0;
  height: 240px;
  border-radius: 8px;
  overflow: hidden;
  border: 4px solid #ffffff;
}

#mainBanner img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  margin: 0;
  border-radius: 8px;
}
nav.mainNav {
    display: none;
}

/* ========== メインコンテンツ ========== */
main {
  flex: 3;
}

.content h1.underHeading {
  font-size: 1.4rem;
  margin-bottom: 16px;
  padding: 10px;
  background: linear-gradient(90deg, var(--main-color), var(--sub-color));
  font-weight: bold;
  border-radius: 8px;
  color: #ffffff;
  line-height: 1.3;
}

/* パンくずリスト */
.breadcrumbs {
  list-style: none;
  padding: 0;
  margin: 0 0 16px;
  gap: 8px;
  font-size: 0.9rem;
}

.breadcrumbs li {
  display: inline;
}

.breadcrumbs li::after {
  content: "›";
  margin-left: 8px;
  color: #aaa;
}

.breadcrumbs li:last-child::after {
  content: "";
}

/* 記事ページ本文 */
.content p img {
  margin: 16px 0;
  border-radius: 8px;
}
.content p {
  margin: 16px 0;
}

/* ========== 記事一覧ページ用 ========== */
.article_list,
.category_llist {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}

.article_list {
    grid-template-columns: 1fr;
}

.article_list li,
.category_llist li {
  border-radius: 8px;
  overflow: hidden;
  transition: box-shadow 0.3s;
  border: 1px solid #e1e1e1;
}

.article_list li:hover,
.category_llist li:hover {
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.article_list a.page_link,
.category_llist a.page_link {
  color: inherit;
  text-decoration: none;
  display: block;
  height: 100%;
}

.article_list dl,
.category_llist dl {
  margin: 0;
  display: flex;
  flex-direction: column;
  height: 100%;
}

.article_list dt,
.category_llist dt {
  font-size: 1.1rem;
  font-weight: bold;
  padding: 12px 12px 0;
  color: var(--main-color);
}

.article_list dd,
.category_llist dd {
  margin: 0;
  padding: 12px;
  flex-grow: 1;
  display: flex;
  gap: 12px;
}

.article_list .cap {
  flex-shrink: 0;
  width: 300px;
  height: 200px;
}

.category_llist .cap {
  flex-shrink: 0;
  width: 120px;
  height: 120px;
}
.article_list .cap img,
.category_llist .cap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  margin: 0;
  max-width: unset;
  border-radius: 8px;
}

.article_list span,
.category_llist span {
  font-size: 0.9rem;
  color: #555;
  display: -webkit-box;
  -webkit-line-clamp: 5; /* 5行まで表示 */
  -webkit-box-orient: vertical;
  overflow: hidden;
  align-self: start;
}

/* ========== サイドバー ========== */
.sidebar {
  flex: 1;
  background: var(--back-color);
  padding: 16px;
  border-radius: 8px;
}

.contents_list dt {
  font-weight: bold;
  margin-bottom: 8px;
  font-size: 20px;
}

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

.contents_list li {
  margin-bottom: 8px;
}

/* ========== フッター ========== */
footer {
  background: var(--back-color);
  margin-top: 32px;
  padding: 16px 0;
  text-align: center;
  font-size: 0.8rem;
  color: #666;
}

/* ========== レスポンシブ ========== */
@media (max-width: 768px) {
  .wrapper {
    flex-direction: column;
  }

  #mainBanner .inner {
    height: 120px;
  }

  .article_list,
  .category_llist {
    grid-template-columns: 1fr;
  }

  .article_list dd,
  .category_llist dd {
    flex-direction: column;
  }

  .article_list .cap,
  .category_llist .cap {
    width: 100%;
  }
}