/* =========================================================
   1. ベースリセットと全体設定
========================================================= */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: "Helvetica Neue", Arial, "Hiragino Kaku Gothic ProN", "Hiragino Sans", Meiryo, sans-serif;
  color: #333;
  line-height: 1.6;
  background-color: #f9f9f9;
}

a {
  color: #1f7ea7;
  text-decoration: none;
  transition: opacity 0.3s ease;
}

a:hover {
  text-decoration: underline;
}

/* =========================================================
   2. ヘッダーとスライダー
========================================================= */
.header-inner {
  background: #fff;
  padding: 15px 20px 10px;
  text-align: center;
}

/* キャッチコピーの装飾 */
.site-description {
  font-size: 12px;
  color: #666;
  margin-bottom: 5px;
}

/* 会社名の装飾 */
.site-title {
  font-size: 24px;
  font-weight: bold;
  color: #1f7ea7;
  letter-spacing: 1px;
}

.swiper {
  width: 100%;
  max-width: 900px;
  margin: 0 auto 20px;
}

.swiper img {
  width: 100%;
  height: auto;
  display: block;
}

/* =========================================================
   3. 全体レイアウト (PC向け 3カラム)
========================================================= */
.container {
  display: flex;
  flex-wrap: wrap;
  max-width: 1000px;
  margin: 0 auto;
  gap: 20px;
  padding: 0 10px;
}

.global-nav {
  width: 200px;
  background: transparent;
  padding: 0;
}

.main-content {
  flex: 1;
  min-width: 300px;
  background: #fff;
  padding: 20px;
  border-radius: 4px;
}

.sidebar {
  width: 200px;
}

/* =========================================================
   4. メインコンテンツ内の装飾
========================================================= */
.main-content h2,
.main-content h3 {
  border-bottom: 2px solid #1f7ea7;
  padding-bottom: 5px;
  margin-bottom: 15px;
  font-size: 18px;
}

.topic-item {
  display: flex;
  gap: 15px;
  align-items: center;
  margin-bottom: 20px;
}

.topic-item img {
  max-width: 80px;
}

dl {
  display: flex;
  flex-wrap: wrap;
  border-top: 1px solid #eee;
  padding-top: 10px;
}

dt {
  width: 120px;
  font-weight: bold;
}

dd {
  flex: 1;
}

/* =========================================================
   5. ナビゲーション (Window・タイル方式)
========================================================= */
.global-nav h3 {
  text-align: center;
  font-size: 16px;
  color: #666;
  margin-bottom: 15px;
  border-bottom: none;
}

.global-nav ul {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
  list-style: none;
}

.global-nav li {
  margin-bottom: 0;
  border-bottom: none;
  padding-bottom: 0;
  aspect-ratio: 1 / 1;
}

.global-nav li a {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  height: 100%;
  background-color: #ffffff;
  border-radius: 8px;
  color: #333;
  font-size: 13px;
  font-weight: bold;
  text-align: center;
  box-shadow: 0 2px 5px rgba(0,0,0,0.08);
  transition: all 0.3s ease;
  padding: 5px;
}

.global-nav li a:hover {
  background-color: #1f7ea7;
  color: #ffffff;
  transform: translateY(-3px) scale(1.05);
  box-shadow: 0 5px 10px rgba(0,0,0,0.15);
  text-decoration: none;
}

/* アイコンとテキストの調整 (PC向け) */
.global-nav li a i {
  font-size: 24px;
  margin-bottom: 8px;
  color: #1f7ea7;
  transition: all 0.3s ease;
}

.global-nav li a:hover i {
  color: #ffffff;
}

.global-nav li a span {
  font-size: 12px;
}

/* =========================================================
   6. バナースペース (モダンなCSSボタン)
========================================================= */
.sidebar h3 {
  text-align: center;
  border-bottom: none;
  font-size: 16px;
  color: #666;
  margin-bottom: 15px;
}

.banner-list {
  display: flex;
  flex-direction: column;
  gap: 15px;
  padding: 0;
  list-style: none;
}

.banner-list li {
  border-bottom: none;
  margin-bottom: 0;
  padding-bottom: 0;
}

.banner-list a {
  display: block;
  background: linear-gradient(135deg, #1f7ea7 0%, #11506b 100%); 
  color: #ffffff;
  text-align: center;
  padding: 20px 10px;
  border-radius: 8px;
  font-weight: bold;
  font-size: 15px;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.15);
  position: relative;
  transition: all 0.3s ease;
}

.banner-list a:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 10px rgba(0, 0, 0, 0.2);
  text-decoration: none;
}

.banner-list a::after {
  content: '▶'; 
  position: absolute;
  right: 15px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 12px;
  color: rgba(255, 255, 255, 0.7);
}

/* =========================================================
   7. フッター
========================================================= */
.footer {
  text-align: center;
  padding: 20px;
  background: #333;
  color: #fff;
  margin-top: 40px;
}

.footer a {
  color: #fff;
}

.footer a:hover {
  opacity: 0.8;
}

.partition {
  margin: 0 10px;
}

/* =========================================================
   8. スマートフォン向けレスポンシブ対応
========================================================= */
@media (max-width: 768px) {
  /* 全体を1カラムにする */
  .container {
    flex-direction: column;
  }
  
  .global-nav, .sidebar {
    width: 100%;
  }

  /* --- スマホ用 ヘッダー調整 --- */
  .site-description {
    font-size: 10px;
  }
  
  .site-title {
    font-size: 20px;
  }
  
  /* --- スマホ用 CONTENTS タイルの修正 --- */
  .global-nav h3 {
    margin-bottom: 10px;
  }
  
  .global-nav ul {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
  }
  
  .global-nav li {
    aspect-ratio: auto;
    height: 75px;
  }
  
  .global-nav li a {
    padding: 10px 5px;
  }
  
  .global-nav li a i {
    font-size: 20px;
    margin-bottom: 4px;
  }
  
  .global-nav li a span {
    font-size: 11px;
  }
}