/* Reset */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

/* CSS Variables */
:root {
  --primary-color: #5a8fbb;
  --primary-hover: #4a7aa4;
  --header-bg: #2c3e50;
  --header-text: #ecf0f1;
  --header-border: #34495e;
  --footer-bg: #1c2833;
  --footer-text: #aab8c2;
  --body-text: #333a4d;
  --body-bg: #eef2f5;
  --content-bg: #f9fafb;
  --light-border: #e0e0e0;
  --shadow: 0 3px 10px rgba(0, 0, 0, 0.08);
  --shadow-hover: 0 8px 20px rgba(0, 0, 0, 0.12);
  --transition-default: 0.3s ease;
}

/* Base Elements */
body {
  font-family: 'Helvetica Neue', Arial, 'Hiragino Kaku Gothic ProN', 'Hiragino Sans', Meiryo, sans-serif;
  line-height: 1.8;
  color: var(--body-text);
  background-color: var(--body-bg);
}

.container {
  width: 85%;
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 40px;
  overflow: hidden;
}

/* Content Sections */
.content-section {
  background-color: var(--content-bg);
  margin-bottom: 30px;
  padding: 30px 0;
  border-radius: 6px;
  box-shadow: var(--shadow);
  border: 1px solid #e0e0e0;
}
.content-section:last-child {
  margin-bottom: 0;
}

/* Buttons */
.btn,
.btn-external,
.btn-feature,
.btn-hero {
  display: inline-block;
  padding: 10px 18px;
  text-decoration: none;
  border-radius: 4px;
  font-size: 0.95em;
  font-weight: bold;
  transition: background-color var(--transition-default), transform 0.2s ease;
  color: #fff;
  background-color: var(--primary-color);
  border: none;
  cursor: pointer;
}
.btn:hover,
.btn-external:hover,
.btn-feature:hover,
.btn-hero:hover {
  background-color: var(--primary-hover);
  transform: translateY(-2px);
}

/* Header */
header {
  background-color: var(--header-bg);
  color: var(--header-text);
  padding: 25px 0;
  border-bottom: 4px solid var(--header-border);
  overflow: hidden;
}
header .container::after {
  content: "";
  display: table;
  clear: both;
}
header h1 {
  float: left;
  font-size: 2em;
  font-weight: bold;
  margin-left: 5%;
}
header h1 a {
  color: var(--header-text);
  text-decoration: none;
}
header h1 .subtitle {
  font-size: 0.5em;
  color: #bdc3c7;
  font-weight: normal;
  margin-left: 10px;
  display: inline-block;
  vertical-align: middle;
}
header nav {
  float: right;
  margin-top: 12px;
}
header nav ul {
  list-style: none;
}
header nav ul li {
  display: inline;
  margin-left: 25px;
}
header nav ul li a {
  color: var(--header-text);
  text-decoration: none;
  font-size: 1.1em;
  padding-bottom: 5px;
  transition: color 0.3s ease, border-bottom-color 0.3s ease;
}
header nav ul li a:hover {
  color: #fff;
  border-bottom: 2px solid #e74c3c;
}

/* Footer */
footer {
  background-color: var(--footer-bg);
  color: var(--footer-text);
  text-align: center;
  padding: 30px 0;
  margin-top: 40px;
  font-size: 0.9em;
}
footer p {
  margin-bottom: 8px;
}
footer p:last-child {
  margin-bottom: 0;
}
footer .footer-links a,
footer .admin-login-link a {
  color: var(--footer-text);
  text-decoration: none;
  margin: 0 10px;
}
footer .footer-links a:hover,
footer .admin-login-link a:hover {
  color: #ffffff;
  text-decoration: underline;
}

/* Hero Section */
#hero {
  background-color: var(--header-bg);
  color: #ffffff;
  padding: 80px 20px;
  text-align: center;
  position: relative;
}
#hero .hero-main-phrase {
  font-size: 1.8em;
  font-weight: bold;
  line-height: 1.6;
  margin-bottom: 25px;
  text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.4);
}
#hero .hero-sub-text {
  font-size: 1.1em;
  line-height: 1.8;
  max-width: 800px;
  margin: 0 auto;
  opacity: 0.9;
}

/* Section Headings */
#news h2,
#laws h2,
#experiences h2,
#feature-article h2,
#subtitle-meaning h2 {
  font-size: 1.9em;
  color: var(--header-bg);
  margin-bottom: 30px;
  padding-bottom: 15px;
  border-bottom: 2px solid #eaeaea;
  text-align: center;
}
#news h2 i,
#laws h2 i,
#experiences h2 i,
#feature-article h2 i,
#subtitle-meaning h2 i {
  margin-right: 12px;
  color: var(--primary-color);
  font-size: 0.9em;
}

/* Feature Article */
#feature-article {
  background-color: #eaf2f8;
  padding-top: 40px;
  padding-bottom: 40px;
}
#feature-article h2 {
  color: var(--primary-color);
}

/* Grid Layout */
.article-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 25px;
  align-items: stretch;
}

/* News Item */
.news-item {
  background-color: var(--content-bg);
  border: 1px solid var(--light-border);
  border-radius: 6px;
  padding: 20px;
  display: flex;
  flex-direction: column;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.news-item:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-hover);
}
.card-content {
  flex-grow: 1;
}
.news-item h3 {
  font-size: 1.4em;
  margin-bottom: 15px;
  color: var(--header-bg);
}
.news-item p {
  margin-bottom: 20px;
  color: #555;
  font-size: 0.95em;
}

/* Info Block */
.info-block {
  margin-bottom: 20px;
  background-color: var(--content-bg);
  padding: 20px;
  border-radius: 4px;
  border-left: 4px solid var(--primary-color);
}
.info-block:last-child {
  margin-bottom: 0;
}
.info-block h3 {
  font-size: 1.25em;
  color: var(--header-bg);
  margin-bottom: 8px;
}
.info-block p {
  color: #555;
  margin-bottom: 10px;
}

/* Article and Page Containers */
.article-container,
.page-container {
  padding: 20px 0;
}

/* Article Header */
.article-header {
  background-color: #34495e;
  padding: 50px 20px;
  margin-bottom: 40px;
  border-radius: 6px;
  text-align: center;
}
.article-header h1 {
  color: #ffffff;
  font-size: 2.3em;
  text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.4);
}

/* Content Headings */
.article-content h2,
.page-content h2 {
  font-size: 1.8em;
  color: var(--primary-color);
  margin-top: 50px;
  margin-bottom: 25px;
  padding-bottom: 15px;
  border-bottom: 1px solid #d9e1e7;
}
.article-content h3,
.page-content h3 {
  font-size: 1.4em;
  color: var(--header-bg);
  margin-top: 35px;
  margin-bottom: 18px;
}
.article-content p,
.page-content p {
  margin-bottom: 1.5em;
}
.article-content ul,
.page-content ul {
  list-style: disc;
  margin-left: 25px;
  margin-bottom: 1.5em;
  padding-left: 10px;
}
.article-content ul li,
.page-content ul li {
  margin-bottom: 0.8em;
  line-height: 1.7;
}
.article-content ul.intro-list,
.article-content ul.summary-list {
  list-style: none;
  padding-left: 5px;
}
.article-content ul.intro-list li::before,
.article-content ul.summary-list li::before {
  content: "- ";
  font-weight: bold;
  color: var(--primary-color);
}
.article-content strong {
  color: #b35d49;
  font-weight: bold;
}

/* Responsive Styles */
@media (max-width: 768px) {
  header h1 {
    float: none;
    text-align: center;
    margin-bottom: 15px;
    margin-left: 0;
  }
  header nav {
    float: none;
    text-align: center;
    margin-top: 10px;
  }
  header nav ul li {
    margin: 0 10px;
  }
  .container {
    width: 95%;
    padding: 0 15px;
  }
  #hero .hero-main-phrase,
  .article-header h1,
  .page-content h1 {
    font-size: 1.8em;
  }
  .article-content h2,
  .page-content h2,
  #news h2,
  #laws h2,
  #experiences h2,
  #feature-article h2,
  #subtitle-meaning h2 {
    font-size: 1.5em;
  }
  .article-content h3,
  .page-content h3 {
    font-size: 1.2em;
  }
}

.skip-link {
  position: absolute;
  left: -10000px;
  top: auto;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.skip-link:focus {
  position: fixed;
  left: 10px;
  top: 10px;
  width: auto;
  height: auto;
  padding: 8px 16px;
  background-color: #000;
  color: #fff;
  text-decoration: none;
  font-size: 1em;
  z-index: 1000;
}

