/* =========================================================
   Toshihide Kitakado's Personal Website
   ========================================================= */

/* ---------- Base ---------- */

body {
  font-family: "Noto Sans JP", "Helvetica Neue", Arial, sans-serif;
  color: #333;
  background: #fff;
  font-size: 16px;
  line-height: 1.65;
}

.main-container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 25px 50px;
}

p {
  margin: 0 0 0.9em;
}

a {
  color: #176b87;
  text-decoration: none;
}

a:hover {
  color: #0d4f67;
}


/* ---------- Headings ---------- */

h1,
h2,
h3,
h4 {
  font-family: "Noto Sans JP", "Helvetica Neue", Arial, sans-serif;
  font-weight: 600;
  color: #123b5d;
}

h1 {
  font-size: 2.4em;
}

h2 {
  font-size: 1.8em;
  margin-top: 50px;
  margin-bottom: 22px;
  padding-bottom: 8px;
  border-bottom: 2px solid #d9e7ef;
}

h3 {
  margin-top: 0;
  margin-bottom: 10px;
}


/* =========================================================
   Hero
   ========================================================= */

.hero {
  position: relative;
  width: 100%;
  margin-bottom: 45px;
  overflow: hidden;
  border-radius: 0 0 12px 12px;
}

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

.hero-text {
  position: absolute;
  left: 40px;
  bottom: 30px;
  color: white;
  text-shadow: 0 2px 8px rgba(0,0,0,0.65);
}

.hero-text h1 {
  margin: 0 0 5px;
  color: white;
  font-size: 2.7em;
}

.hero-text p {
  margin: 0;
  font-size: 1.2em;
}


/* =========================================================
   About
   ========================================================= */

.card-container {
  display: flex;
  gap: 18px;
  margin: 20px 0 28px;
}

.card {
  flex: 1;
  padding: 20px 24px;
  background: #f5f9fb;
  border: 1px solid #e0eaee;
  border-radius: 12px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.04);
}

.card h3 {
  color: #176b87;
}

.card p {
  margin-bottom: 0;
}


/* =========================================================
   Research
   ========================================================= */

.research-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin: 15px 0 30px;
}

.research-area {
  padding: 17px 20px;
  border-radius: 10px;
  border-left: 6px solid;
}

.research-area h3 {
  margin: 0 0 10px;
  font-size: 1.15em;
  line-height: 1.3;
  color: #333;
}

.research-area h3 small {
  font-size: 0.78em;
  font-weight: 400;
  color: #777;
}


/* Category colours */

.statistics {
  border-color: #3b82a0;
  background: #f0f7fa;
}

.fisheries {
  border-color: #4c9a72;
  background: #f2f8f4;
}

.ecology {
  border-color: #c58a3a;
  background: #fbf7ef;
}

.species {
  border-color: #9270a8;
  background: #f7f3f9;
}


/* Keywords */

.research-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 5px 6px;
}

.research-tags span {
  padding: 4px 10px;
  background: white;
  border: 1px solid rgba(0,0,0,0.10);
  border-radius: 14px;
  font-size: 0.84em;
  line-height: 1.3;
  color: #444;
}


/* =========================================================
   International activities
   ========================================================= */

.activity {
  padding: 14px 20px;
  margin: 10px 0;
  background: #f7fafb;
  border-left: 5px solid #176b87;
  border-radius: 0 8px 8px 0;
}

.activity strong {
  color: #123b5d;
}

/* =========================================================
   Featured links
   ========================================================= */

.media-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  width: 100%;
  margin: 20px 0 35px;
}

.media-card {
  display: block;
  min-width: 0;
  overflow: hidden;
  background: #fff;
  border: 1px solid #e0e6e9;
  border-radius: 10px;
  box-shadow: 0 2px 7px rgba(0,0,0,0.05);
}

.media-card a {
  display: block;
  width: 100%;
  color: inherit;
  text-decoration: none !important;
}

.media-card a:hover {
  color: inherit;
  text-decoration: none !important;
}

.media-card img {
  display: block;
  width: 100%;
  height: 150px;
  object-fit: cover;
}

.media-content {
  padding: 12px 14px 14px;
}

.media-content strong {
  display: block;
  color: #123b5d;
  font-size: 1em;
  line-height: 1.4;
}

.media-content small {
  display: block;
  margin-top: 3px;
  color: #888;
  font-size: 0.82em;
  line-height: 1.3;
}

.media-card:hover {
  box-shadow: 0 5px 14px rgba(0,0,0,0.10);
}


/* ---------- Mobile ---------- */

@media (max-width: 768px) {

  .media-grid {
    grid-template-columns: 1fr;
  }

}
/* =========================================================
   Current Activities
   ========================================================= */

.activities {
  margin: 15px 0 35px;
}

.activity-row {
  padding: 10px 0 11px 18px;
  border-left: 3px solid #d9e7ef;
  margin-bottom: 4px;
}

.activity-row strong {
  display: block;
  color: #123b5d;
  font-size: 1em;
  font-weight: 600;
  line-height: 1.4;
}

.activity-row span {
  display: block;
  color: #444;
  font-size: 0.94em;
  line-height: 1.45;
}

.activity-row small {
  display: block;
  color: #888;
  font-size: 0.82em;
  line-height: 1.4;
}