/* Global Styles */
body {
  max-width: 600px;
  margin: 60px auto;
  padding: 0 20px;
  font-family: "Noto Serif JP", "Hiragino Mincho ProN", Georgia, serif;
  line-height: 2;
  color: #0d1b2a;
}

h1 {
  font-size: 1.6rem;
  margin: 0 0 48px;
}

h2 {
  font-size: 1.2rem;
  margin: 32px 0 8px;
  color: #4a5a6e;
}

h3 {
  font-size: 1rem;
  font-weight: 400;
  margin-bottom: 12px;
}

p {
  font-size: 0.9rem;
  color: #2a3a4e;
}

p + p {
  margin-top: 8px;
}

ul {
  list-style: none;
  padding: 0;
}

li {
  font-size: 0.9rem;
  color: #2a3a4e;
}

a {
  color: #0d1b2a;
  text-decoration: none;
  display: block;
  padding: 8px 0;
}

a[href^="http"]::after {
  content: "↗";
  font-size: 0.65em;
  color: #c8d4e0;
  vertical-align: super;
  margin-left: 3px;
}

a:hover {
  text-decoration: underline;
}

a[href^="http"]:hover::after {
  color: #4a5a6e;
}

footer {
  margin-top: 60px;
  font-size: 0.75rem;
  color: #4a5a6e;
}

/* Common Components */
.btn {
  display: inline-block;
  background-color: #0d1b2a;
  color: #ffffff;
  border: 1px solid #0d1b2a;
  padding: 8px 24px;
  margin-bottom: 32px;
  transition: opacity 0.2s;
}

.btn:hover {
  opacity: 0.8;
  text-decoration: none;
  color: #ffffff;
}

.btn[href^="http"]::after {
  color: #ffffff;
}

/* Back Link (Common for subpages) */
.back::after {
  content: none;
}

.back::before {
  content: "←";
  margin-right: 4px;
}

/* Home List */
.home-list li {
  border-bottom: 1px solid #c8d4e0;
}

/* Table Style */
table {
  border-collapse: collapse;
  width: 100%;
}

th, td {
  text-align: left;
  padding: 8px 0;
  border-bottom: 1px solid #c8d4e0;
  font-size: 0.9rem;
  font-weight: normal;
}

th {
  color: #4a5a6e;
  font-size: 0.85rem;
}

td a {
  display: inline;
  padding: 0;
}

/* Section Style */
.section {
  border-top: 1px solid #c8d4e0;
  padding-top: 24px;
  margin-top: 24px;
}

.section h2 {
  margin-top: 0;
}

/* Tab Component */
.tabs {
  display: flex;
  gap: 24px;
  margin-top: 24px;
}

.tab {
  background: none;
  border: none;
  border-bottom: 1px solid transparent;
  font-family: inherit;
  font-size: 0.85rem;
  color: #4a5a6e;
  cursor: pointer;
  padding: 0 0 4px;
}

.tab::after {
  content: none;
}

.tab.active {
  color: #0d1b2a;
  border-bottom-color: #0d1b2a;
}

/* Language Switcher */
.lang {
  display: none;
}

.lang.active {
  display: block;
}
