@charset "UTF-8";
:root {
  --main-color: #f19800;
  --bg-color: #e6fbfd;
  --font: '\f002';
}

/* ========================================
   リセットCSS & ベーススタイル
======================================== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  font-size: 16px;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Noto Sans JP', 'Yu Gothic', YuGothic, 'Hiragino Sans', 'Hiragino Kaku Gothic ProN', Meiryo, sans-serif;
  line-height: 1.8;
  color: #333333;
  background-color: #ffffff;
  min-height: 100vh;
}

img {
  max-width: 100%;
  height: auto;
  vertical-align: bottom;
}

a {
  color: var(--main-color);
  text-decoration: none;
  transition: all 0.3s ease;
}

/* ========================================
   レイアウト
======================================== */
.allContent {
  display: flex;
  max-width: 1200px;
  margin: 0 auto;
  background-color: #ffffff;
}

.wrapper {
  flex: 1;
  min-width: 0;
  order: 2;

  border-right: 1px solid #e3e3e3;
  border-left: 1px solid #e3e3e3;
}

/* ========================================
   ヘッダー - シンプル & クリーン
======================================== */
header {
  background-color: #ffffff;
  color: #333333;
}

.sitetitle {
  padding: 32px 20px;
  font-size: 1.75rem;
  font-weight: 700;
  text-align: center;
  letter-spacing: 0.05em;
  color: #333333;
}
.sitetitle a {
  color: #333333;
  display: inline-block;
  transition: 0.3s;
}
.sitetitle a:hover {
  opacity: 0.6;
}
.sitetitle a {
  color: #333333;
  display: inline-block;
}
header .sitetitle a::first-letter {
  color: var(--main-color);
}

.mainvisual {
  width: 100%;
  overflow: hidden;
  height: 440px;
  border-bottom: 5px solid var(--main-color);
}

.mainvisual img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  margin: 0px;
}

/* ========================================
   メインコンテンツ - クリーンでミニマル
======================================== */
main {
  max-width: 1000px;
  margin: 0 auto;
  padding: 48px 32px;
  background-color: #ffffff;
}

/* パンくずリスト - フラットデザイン */
.breadcrumbs {
  list-style: none;
  margin-bottom: 25px;
  padding: 0;
  font-size: 0.875rem;
  color: #718096;
}

.breadcrumbs li {
  display: inline;
}

.breadcrumbs li:not(:last-child)::after {
  content: '/';
  margin: 0 8px;
  color: #cbd5e0;
  font-weight: normal;
}

.breadcrumbs a {
  transition: color 0.2s ease;
  border-radius: 4px;
  transition: 0.3s;
}

.breadcrumbs a:hover {
  opacity: 0.6;
}

.breadcrumbs li:last-child a {
  color: #333333;
  font-weight: 600;
}

/* コンテンツエリア */
.main_content {
  background-color: #fff;
}

.content {
  padding: 0;
}

/* 記事タイトル - シンプル & クリーン */
.underheading {
  font-size: 2rem;
  font-weight: 700;
  color: #333;
  margin-bottom: 40px;
  line-height: 1.4;
}
.underheading span::first-letter {
  color: var(--main-color);
  font-size: 125%;
}

.underheading span {
  display: inline-block;
}

/* ========================================
   記事一覧ページ
======================================== */
.category_list {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 32px;
  padding: 0;
}

.category_list li {
  background-color: #ffffff;
  border: 1px solid #e3e3e3;
  transition: all 0.3s ease;
  overflow: hidden;
}

.category_list li:hover {
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
  transform: translateY(-2px);
}

.category_list .page_link {
  display: block;
  color: inherit;
  text-decoration: none;
}

.category_list dl {
  display: flex;
  flex-direction: column;
  height: 100%;
}

.category_list dt {
  font-size: 1.125rem;
  font-weight: 600;
  color: #333;
  padding: 20px 20px 16px;
  line-height: 1.5;
  border-bottom: 1px solid var(--bg-color);
}

.category_list dd {
  display: flex;
  flex-direction: column;
  flex: 1;
  margin: 0;
}

.category_list .cap {
  width: 100%;
  overflow: hidden;
  background-color: var(--bg-color);
  display: flex;
  align-items: center;
  justify-content: center;
  aspect-ratio: 16 / 9;
}

.category_list .cap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.category_list li:hover .cap img {
  transform: scale(1.05);
}

.category_list dd span {
  padding: 16px 20px 20px;
  font-size: 0.9375rem;
  line-height: 1.7;
  color: #333;
  display: -webkit-box;
  -webkit-line-clamp: 4;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* 1カラムレイアウト時の調整 */
@media screen and (max-width: 960px) {
  .category_list {
    grid-template-columns: 1fr;
    gap: 24px;
  }
}

@media screen and (max-width: 480px) {
  .category_list {
    gap: 20px;
  }

  .category_list dt {
    font-size: 1rem;
    padding: 16px 16px 12px;
  }

  .category_list dd span {
    padding: 12px 16px 16px;
    font-size: 0.875rem;
    -webkit-line-clamp: 3;
  }
}

/* 記事本文 - 余白たっぷり */
.content p {
  margin-bottom: 28px;
  line-height: 2;
  font-size: 1.0625rem;
  color: #333;
  letter-spacing: 0.02em;
}

.content p:last-child {
  margin-bottom: 0;
}

.content img {
  margin: 32px 0;
}

.content a {
  color: var(--main-color);
  font-weight: 500;
  text-decoration: underline;
  text-decoration-color: var(--main-color);
  text-underline-offset: 3px;
  transition: all 0.2s ease;
}

.content p a:hover {
  opacity: 0.6;
}

.content a[target='_blank']::before {
  content: '↗ ';
  font-size: 0.85em;
}

/* ========================================
   サイドバー - シンプル & ライト
======================================== */
.sidebar {
  width: 300px;
  background-color: var(--bg-color);
  flex-shrink: 0;
  order: 1;
}

.sidelist {
  padding: 32px 24px;
}

.sidelist dt {
  font-size: 0.875rem;
  font-weight: 700;
  color: #333333;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 20px;
  text-align: center;
}
.sidelist dt::first-letter {
  color: var(--main-color);
}

.sidelist dd {
  margin: 0;
}

.sidelist .list {
  list-style: none;
}

.sidelist .list li {
  margin-bottom: 8px;
}

.sidelist .list li::before {
  display: none;
}

.sidelist .list li a {
  display: block;
  padding: 10px 16px;
  color: #333;
  background-color: #ffffff;
  border-left: 3px solid rgb(from var(--main-color) r g b / 0.2);
  font-size: 0.9375rem;
  transition: 0.3s;
}

.sidelist .list li a:hover {
  background-color: rgb(from var(--main-color) r g b / 0.1);
  color: #333333;
  border-left-color: var(--main-color);
}

/* ========================================
   フッター - シンプル
======================================== */
footer {
  background-color: rgb(from var(--main-color) r g b / 0.7);
  color: #ffffff;
  padding: 40px 20px;
  text-align: center;
  border-top: 1px solid rgb(from var(--main-color) r g b / 0.2);
}

footer .inner {
  max-width: 1200px;
  margin: 0 auto;
}

footer .copyright {
  font-size: 0.875rem;
  color: #a0aec0;
}

footer .copyright a {
  color: #ffffff;
  font-weight: 500;
  text-decoration: none;
  transition: color 0.2s ease;
}

footer .copyright a:hover {
  color: #ffffff;
}

/* ========================================
   レスポンシブデザイン
======================================== */

/* タブレット (768px以下) */
@media screen and (max-width: 960px) {
  .mainvisual {
    height: 200px;
  }
  .allContent {
    flex-direction: column;
  }
  .wrapper {
    order: 1;
  }

  .sidebar {
    order: 2;
    width: 100%;
    border-left: none;
    border-top: 1px solid rgb(from var(--main-color) r g b / 0.2);
  }

  .sitetitle {
    font-size: 1.375rem;
    padding: 24px 16px;
  }

  main {
    padding: 32px 20px;
  }

  .underheading {
    font-size: 1.75rem;
    margin-bottom: 32px;
    padding-left: 0;
  }

  .breadcrumbs {
    font-size: 0.8125rem;
    margin-bottom: 15px;
  }

  .sidelist {
    padding: 24px 20px;
  }
}

/* スマートフォン (480px以下) */
@media screen and (max-width: 480px) {
  .allContent {
    margin: 0;
  }

  .sitetitle {
    font-size: 1.125rem;
    padding: 20px 12px;
  }

  main {
    padding: 24px 16px;
  }

  .underheading {
    font-size: 1.5rem;
    margin-bottom: 20px;
  }

  .content p {
    font-size: 1rem;
    margin-bottom: 24px;
    line-height: 1.85;
  }

  .breadcrumbs {
    font-size: 0.75rem;
    margin-bottom: 15px;
  }

  .sidelist dt {
    font-size: 0.8125rem;
  }

  .sidelist .list li a {
    font-size: 0.875rem;
    padding: 10px 14px;
  }

  footer {
    padding: 32px 16px;
  }

  footer .copyright {
    font-size: 0.8125rem;
  }
}

/* PC大画面 (1200px以上) */
@media screen and (min-width: 1201px) {
  main {
    padding: 56px 40px;
  }
}
