.header {
    background-color: gray;
    width: 100%;
    height: 130px;
    top: 0;
    text-align: center;
    font-size: large;
    padding: 10px 0;
    margin-bottom: 100px;
}

body {
    font-family: "Inter", "Noto Sans JP", sans-serif;
}

/* .main{
    background-color: white;
    width: 70%;
    margin: 0 auto;
    min-height: 100vh;
}

@media (max-width: 768px) {
    .main {
        width: 90%;
    }
} */

.main {
    background-color: white;
    width: clamp(30%, calc(15% + 400px), 90%);
    margin: 0 auto;
    min-height: 100vh;
}

.footer {
    background-color: gray;
    color: white; 
    text-align: center;
    padding: 10px 0; 
    bottom: 0;
    width: 100%;
    margin-top: 100px;
}
/* .footer h2 {
    margin-bottom: 0.2em;
} */

.indented {
    margin-left: 50px; 
}

a {
    word-break: break-all;
}

.references {
    text-align: center;
}

.large-button {
    font-size: 1.0em;
    padding: 10px 20px;
    border-radius: 10px;
    background-color: #656a6f;
    color: white;
    border: none;
    cursor: pointer;
    margin-top: 0px;
    margin-bottom: 4px; 
  }
  
.large-button:hover {
background-color: black;
}

.social-links {
    text-align: center;
    margin-top: 10px;
}

.social-links a {
    color: white;
    margin: 0 10px;
    text-decoration: none;
}

.social-links a:hover {
    color: #ddd;
}

.reverse-email {
  unicode-bidi: bidi-override;
  direction: rtl;
}

.update-container {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  max-width: 700px;
  margin: 0 auto;
}

.update-card {
  display: flex;
  padding: 1rem;
  border-radius: 14px;
  background: #f8f9fa;
  transition: 0.2s ease;
  border: 1px solid #eee;
}

.update-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 18px rgba(0,0,0,0.08);
}

.update-date {
  font-size: 0.85rem;
  color: #888;
  min-width: 90px;
}

.update-heading {
  font-weight: 600;
  font-size: 1.05rem;
  color: #222;
}

.update-heading:hover {
  color: #0077ff;
}

.update-desc {
  font-size: 0.9rem;
  color: #555;
  margin-top: 0.2rem;
}

.update-title {
  text-align: center;
  margin-bottom: 1.5rem;
}

/* ===== Markdown Table Style (force apply) ===== */

/* allow horizontal scroll if table is wide */
.main {
  overflow-x: auto;
}

/* make sure tables are not accidentally turned into block/flex by other CSS */
.main table {
  display: table !important;
  width: 100% !important;
  max-width: 100% !important;
  border-collapse: collapse !important;
  table-layout: auto !important;
  margin: 1rem 0 !important;
  border: 2px solid #333 !important;
  background: white;
}

.main thead {
  background-color: #f2f2f2 !important;
}

.main th,
.main td {
  display: table-cell !important;
  border: 1px solid #333 !important;
  padding: 8px 12px !important;
  text-align: left !important;
  vertical-align: top;
  word-break: break-word;
}

.main tbody tr:nth-child(even) {
  background-color: #fafafa !important;
}

/* quick visual sanity check: if this shows, CSS is loaded */
.main table caption {
  color: #333;
}

table {
  width: 100%;
  border-collapse: collapse;
  border: 2px solid #333;
  margin: 1rem 0;
}
th, td, tr {
  border: 1px solid #333;
  padding: 8px 12px;
  text-align: left;
}
thead { background: #f2f2f2; }
tbody tr:nth-child(even) { background: #fafafa; }

/* ===== Language Toggle Style ===== */
.lang-toggle {
  position: absolute; 
  top: 100px;
  right: 30px;
  font-size: 28px;
  z-index: 1000; 
}

.lang-toggle a {
  text-decoration: none;
  color: #ffffff;
  padding: 0 5px;
}

.lang-toggle a:hover {
  color: #000;
}

.lang-toggle a.active {
  font-weight: bold;
  color: #000;
  pointer-events: none; 
}

/* ===== Self Introduction Page Face Style ===== */
.container {
    display: flex;
    justify-content: center; 
    align-items: center;
    min-height: 20vh;     
  }

.circle-img {
  width: 200px; 
  height: 200px;  
  border-radius: 50%;  
  object-fit: cover;
}