/* ========================================
   Foundation & Reset Styles
======================================== */
html {
  scroll-behavior: smooth;
}
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}
body {
  font-family: "Segoe UI", "Hiragino Kaku Gothic ProN", "Hiragino Sans", Meiryo, -apple-system, BlinkMacSystemFont, sans-serif;
  line-height: 1.75;
  color: #1a1a1a;
  background: #fafbfc;
  font-size: 15px;
  -webkit-font-smoothing: antialiased;
}
a {
  text-decoration: none;
  color: #0066cc;
  transition: opacity 0.25s ease-in-out;
}
a:hover {
  opacity: 0.7;
}
img {
  display: block;
  max-width: 100%;
  height: auto;
}
/* ========================================
   Global Layout Structure
======================================== */
#wrapper {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  background: linear-gradient(to bottom, #ffffff 0%, #f5f7fa 100%);
}
#column1 {
  flex: 1 0 auto;
}
.inner {
  padding-left: 25px;
  padding-right: 25px;
  margin-left: auto;
  margin-right: auto;
  max-width: 1140px;
}
/* ========================================
   Top Navigation Bar
======================================== */
#top {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
  padding: 18px 0;
}
#top .inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
#top h1 {
  font-size: 22px;
  font-weight: 700;
  letter-spacing: -0.5px;
}
#top h1 a {
  color: #1a1a1a;
  transition: color 0.25s;
}
#top h1 a:hover {
  color: #0066cc;
  opacity: 1;
}
#topmenubtn {
  font-size: 15px;
  font-weight: 600;
  padding: 10px 24px;
  background: #0066cc;
  color: #ffffff;
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.25s;
  border: none;
}
#topmenubtn:hover {
  background: #0052a3;
  transform: translateY(-1px);
}
#panel {
  display: none;
}
/* ========================================
   Hero Header Section
======================================== */
#header {
  padding: 10px 0;
  background: linear-gradient(to right, #1e3a8a, #3b82f6, #06b6d4);
  text-align: center;
  position: relative;
  overflow: hidden;
}
#header::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: url('data:image/svg+xml,<svg width="100" height="100" xmlns="http://www.w3.org/2000/svg"><rect fill="rgba(255,255,255,0.03)" width="50" height="50"/></svg>');
  opacity: 0.4;
}
#headertxt {
  position: relative;
  z-index: 1;
}
#headertxt .title {
  font-size: 24px;
  font-weight: 800;
  color: #ffffff;
  letter-spacing: -1px;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}
#headertxt .title a {
  color: inherit;
}
/* ========================================
   Main Content Area
======================================== */
#contents {
  padding: 50px 25px;
  max-width: 1140px;
  margin: 0 auto;
}
#layoutbox {
  background: #ffffff;
  border-radius: 12px;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.06);
  overflow: hidden;
  border: 1px solid rgba(0, 0, 0, 0.04);
}
#main {
  padding: 50px 45px;
}
/* ========================================
   Typography & Article Styles
======================================== */
article h3 {
  font-size: 30px;
  font-weight: 800;
  color: #1a1a1a;
  margin-bottom: 35px;
  padding-bottom: 18px;
  border-bottom: 4px solid #3b82f6;
  letter-spacing: -0.5px;
}
article h3 span {
  display: inline-block;
}
#text1 h2 {
  font-size: 28px;
  font-weight: 700;
  color: #ffffff;
  background: linear-gradient(135deg, #3b82f6, #1e3a8a);
  padding: 18px 24px;
  margin: 55px 0 28px;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(59, 130, 246, 0.2);
}
#text1 h3 {
  font-size: 22px;
  font-weight: 700;
  color: #1a1a1a;
  margin: 45px 0 22px;
  padding-left: 16px;
  border-left: 5px solid #3b82f6;
  border-bottom: none;
}
#text1 h4 {
  font-size: 19px;
  font-weight: 600;
  color: #2c2c2c;
  margin: 35px 0 18px;
  padding-bottom: 10px;
  border-bottom: 3px solid #e5e7eb;
}
#text1 h5 {
  font-size: 17px;
  font-weight: 600;
  color: #4b5563;
  margin: 28px 0 14px;
}
#text1 p {
  margin-bottom: 22px;
  line-height: 1.85;
}
#text1 .txt-img {
  margin: 35px 0;
  border-radius: 8px;
  overflow: hidden;
}
.image-center {
  margin-left: auto;
  margin-right: auto;
  display: block;
}
/* ========================================
   List Styling
======================================== */
#text1 ol,
#text1 ul {
  margin: 28px 0;
  padding-left: 30px;
}
#text1 ol li,
#text1 ul li {
  margin-bottom: 12px;
  padding-left: 10px;
  line-height: 1.75;
}
#text1 ul li {
  list-style: none;
  position: relative;
}
#text1 ul li::before {
  content: "";
  position: absolute;
  left: -20px;
  top: 11px;
  width: 7px;
  height: 7px;
  background: #3b82f6;
  border-radius: 50%;
}
/* ========================================
   Table Styling
======================================== */
#text1 table {
  width: 100%;
  margin: 35px 0;
  border-collapse: separate;
  border-spacing: 0;
  background: #ffffff;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}
#text1 table th {
  background: linear-gradient(to bottom, #3b82f6, #2563eb);
  color: #ffffff;
  padding: 18px 20px;
  font-weight: 700;
  text-align: left;
  font-size: 15px;
}
#text1 table td {
  padding: 18px 20px;
  border-bottom: 1px solid #f3f4f6;
}
#text1 table tr:last-child td {
  border-bottom: none;
}
#text1 table tr:hover {
  background: #f9fafb;
}
/* ========================================
   Category Grid Layout
======================================== */
#categorylist {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 30px;
  margin-top: 55px;
}
.catbox {
  background: #ffffff;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  border: 1px solid rgba(0, 0, 0, 0.05);
}
.catbox:hover {
  transform: translateY(-6px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
}
.catbox .title {
  padding: 20px 24px;
  background: #f9fafb;
  font-size: 19px;
  font-weight: 700;
  border-bottom: 2px solid #e5e7eb;
}
.catbox .title a {
  color: #1a1a1a;
}
.catbox .body {
  padding: 24px;
}
.catbox .body p {
  margin-bottom: 18px;
  color: #6b7280;
  line-height: 1.7;
}
.catbox .more {
  text-align: right;
  margin-top: 20px;
}
.catbox .more a {
  display: inline-block;
  padding: 10px 24px;
  background: #3b82f6;
  color: #ffffff;
  border-radius: 6px;
  font-size: 14px;
  font-weight: 600;
  transition: all 0.25s;
}
.catbox .more a:hover {
  background: #2563eb;
  opacity: 1;
  transform: translateX(2px);
}
/* ========================================
   Sidebar Menu Section
======================================== */
#menu {
  background: #f9fafb;
  padding: 45px;
  margin-top: 45px;
  border-top: 2px solid #e5e7eb;
  border-radius: 8px;
}
.menuitem h4 {
  font-size: 21px;
  font-weight: 700;
  color: #1a1a1a;
  margin-bottom: 24px;
  padding-bottom: 12px;
  border-bottom: 3px solid #3b82f6;
}
.menuitem h4 span {
  display: inline-block;
}
.menubox ul {
  list-style: none;
}
.menubox ul li {
  margin-bottom: 14px;
}
.menubox ul li a {
  display: block;
  padding: 12px 18px;
  background: #ffffff;
  border-left: 4px solid #3b82f6;
  border-radius: 6px;
  transition: all 0.25s;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}
.menubox ul li a:hover {
  background: #eff6ff;
  padding-left: 24px;
  opacity: 1;
  box-shadow: 0 2px 6px rgba(59, 130, 246, 0.15);
}
/* ========================================
   News & Updates Section
======================================== */
#whatsnew {
  background: #ffffff;
  border-radius: 10px;
  margin-top: 45px;
  overflow: hidden;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
  border: 1px solid rgba(0, 0, 0, 0.05);
}
#whatsnew .title {
  background: linear-gradient(to right, #1e3a8a, #3b82f6);
  color: #ffffff;
  padding: 18px 28px;
  font-size: 19px;
  font-weight: 700;
}
#whatsnew .title span {
  display: inline-block;
}
#whatsnew ul {
  list-style: none;
  padding: 0;
  margin: 0;
}
#whatsnew ul li {
  padding: 20px 28px;
  border-bottom: 1px solid #f3f4f6;
  display: flex;
  align-items: flex-start;
  gap: 18px;
  transition: background 0.25s;
}
#whatsnew ul li:last-child {
  border-bottom: none;
}
#whatsnew ul li:hover {
  background: #f9fafb;
}
#whatsnew ul li span:first-child {
  color: #3b82f6;
  font-weight: 700;
  font-size: 13px;
  white-space: nowrap;
  min-width: 110px;
  padding: 4px 12px;
  background: #eff6ff;
  border-radius: 4px;
}
#whatsnew ul li span:last-child {
  flex: 1;
  color: #4b5563;
  line-height: 1.6;
}
#whatsnew ul li span:last-child a {
  font-weight: 600;
  color: #0066cc;
  border-bottom: 2px solid transparent;
  transition: border-color 0.25s;
}
#whatsnew ul li span:last-child a:hover {
  border-bottom-color: #0066cc;
  opacity: 1;
}
/* ========================================
   Page Top Button
======================================== */
#pagetop {
  text-align: center;
  padding: 25px 0;
  margin-top: 20px;
}
#pagetop a {
  display: inline-block;
  padding: 14px 36px;
  background: #3b82f6;
  color: #ffffff;
  border-radius: 30px;
  font-size: 14px;
  font-weight: 600;
  transition: all 0.25s;
  box-shadow: 0 2px 8px rgba(59, 130, 246, 0.3);
}
#pagetop a:hover {
  background: #2563eb;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(59, 130, 246, 0.4);
  opacity: 1;
}
/* ========================================
   Footer Section
======================================== */
#footer {
  background: linear-gradient(to bottom, #1e293b, #0f172a);
  color: #cbd5e1;
  padding: 50px 25px 25px;
  text-align: center;
  margin-top: auto;
}
#footsub {
  margin-bottom: 25px;
}
#footsub a {
  color: #cbd5e1;
  padding: 10px 18px;
  border: 2px solid #475569;
  border-radius: 6px;
  transition: all 0.25s;
  display: inline-block;
}
#footsub a:hover {
  background: #334155;
  border-color: #64748b;
  opacity: 1;
}
#footer small {
  display: block;
  font-size: 13px;
  color: #94a3b8;
  margin-top: 15px;
}
/* ========================================
   Responsive Media Queries
======================================== */
@media (max-width: 768px) {
  body {
    font-size: 14px;
  }
  .inner {
    padding-left: 20px;
    padding-right: 20px;
  }
  #header {
    padding: 60px 0;
  }
  #headertxt .title {
    font-size: 26px;
  }
  #main {
    padding: 30px 25px;
  }
  article h3 {
    font-size: 26px;
  }
  #text1 h2 {
    font-size: 24px;
    padding: 15px 20px;
    margin: 45px 0 24px;
  }
  #text1 h3 {
    font-size: 20px;
    margin: 35px 0 18px;
  }
  #text1 h4 {
    font-size: 18px;
  }
  #categorylist {
    grid-template-columns: 1fr;
    gap: 25px;
  }
  #menu {
    padding: 30px 25px;
  }
  #text1 table {
    font-size: 13px;
  }
  #text1 table th,
  #text1 table td {
    padding: 12px 14px;
  }
  #whatsnew .title {
    padding: 15px 22px;
    font-size: 17px;
  }
  #whatsnew ul li {
    padding: 18px 22px;
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
  }
  #whatsnew ul li span:first-child {
    min-width: auto;
    font-size: 12px;
  }
  #footer {
    padding: 40px 20px 20px;
  }
}