/* Basic settings */

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    font-family:
        "Helvetica Neue",
        Arial,
        "Noto Sans",
        sans-serif;
    color: #333;
    background-color: #ffffff;
    line-height: 1.8;
}

/* Common layout */

.container {
    width: 90%;
    max-width: 1100px;
    margin: 0 auto;
}

h1,
h2,
h3 {
    font-weight: 600;
    line-height: 1.4;
}

h2 {
    margin-top: 0;
    margin-bottom: 15px;
    font-size: 1.6rem;
    color: #16324f;
}

h3 {
    margin-top: 0;
    color: #16324f;
}

a {
    color: #1b5e9b;
    text-decoration: none;
}

a:hover {
    text-decoration: underline;
}

/* Header */
header {
    background-color: #16324f;
    color: white;
    padding: 38px 0;
}

header h1 {
    margin: 0;
    font-size: 2.2rem;
    letter-spacing: 0.03em;
}

.subtitle {
    margin-top: 10px;
    font-size: 1.3rem;
    opacity: 0.9;
    margin-bottom: 5px;
}

/* ---------- News ---------- */
.news-list{
    list-style:none;
    margin:0;
    padding:0;
}
.news-list li{
    display:grid;
    grid-template-columns:120px 1fr;
    gap:8px;
}
.news-date{
    color:#0F4C81;
    font-weight:600;
}


/* Navigation */
nav {
    background-color: #0f2438;
}

nav ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-wrap: wrap;
}

nav li {
    margin: 0;
}

nav a {
    display: block;
    padding: 15px 20px;
    color: white;
    font-size: 0.95rem;
}

nav a:hover {
    background-color: #1b5e9b;
    text-decoration: none;
}

/* Sections */
section {
    padding: 40px 0;
}

section:nth-child(even) {
    background-color: #f7f7f7;
}

/* Selected Achievements */
.publication-list {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.publication {
    display: flex;
    gap: 30px;
    padding: 25px;
    background-color: white;
    border: 1px solid #ddd;
    overflow-wrap: anywhere;
}

.publication img {
    width: 260px;
    height: auto;
    object-fit: contain;
}

.publication-info {
    flex: 1;
}

.publication-info h3 {
    margin-bottom: 15px;
    font-size: 1.2rem;
}

.publication-info p {
    margin-top: 0;
}

/* Equipment preview */
.equipment-list {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 25px;
}

.equipment-item {
    border: 1px solid #ddd;
    padding: 20px;
    background-color: white;
}

/* Footer */
footer {
    background-color: #0f2438;
    color: white;
    text-align: center;
    padding: 8px 0;
    font-size: 0.9rem;
}

/* Responsive design */
@media (max-width: 800px) {
    header h1 {
        font-size: 1.8rem;
    }
    nav ul {
        flex-direction: column;
    }
    nav a {
        padding: 12px 15px;
    }
    .hero {
        padding: 45px 0;
    }
    .hero h2 {
        font-size: 1.6rem;
    }
    .publication {
        flex-direction: column;
    }
    .publication img {
        width: 100%;
        max-width: 350px;
        margin: 0 auto;
    }
    .equipment-list {
        grid-template-columns: 1fr;
    }
    .date {
        display: block;
        width: auto;
    }
}

/* Members */
.member-table{
    width:100%;
    border-collapse:collapse;
    margin-top:20px;
    background:#fff;
}

.member-table th{
    background:#16324f;
    color:white;
    padding:12px;
    text-align:left;
}

.member-table td{
    padding:12px;
    border-bottom:1px solid #ddd;
}

.member-table tr:nth-child(even){
    background:#f7f7f7;
}

/* Equipment */
.equipment-grid{
    display:grid;
    grid-template-columns:repeat(auto-fit,minmax(280px,1fr));
    gap:30px;
    margin-top:30px;
}
.equipment-card{
    background:#fff;
    border-radius:10px;
    overflow:hidden;
    box-shadow:0 3px 12px rgba(0,0,0,0.12);
    transition:0.3s;
}
.equipment-card:hover{
    transform:translateY(-5px);
}
.equipment-card img{
    width:100%;
    height:220px;
    object-fit:cover;
    display:block;
}
.equipment-info{
    padding:20px;
}
.equipment-info h3{
    margin:0 0 10px 0;
}
.equipment-info p{
    margin:0;
    color:#555;
    line-height:1.6;
}

/* achievements */
.achievements-list {
    list-style: none;
    padding-left: 0;
    margin-left: 0;
}
.achievements-list li {
    position: relative;
    padding-left: 0.8em;
    margin-bottom: 0;
}
.achievements-list li::before {
    content: "-";
    position: absolute;
    left: 0;
    color: #333;
}

/* etc */
.resizevideo video {
  width: 100%;
  height: 60px;
  object-fit: fill;
}
.resizeimage img{
    width: 100%;
}

.site-update{
    margin-top:2.5rem;
    font-size:0.9rem;
    color:#777;
    text-align:right;
}

/* equipment note */
.footnote{
    font-size:0.7em;
    vertical-align:super;
    color:#0F4C81;
    text-decoration:none;
    font-weight:600;
}
.footnote:hover{
    text-decoration:underline;
}
#note1{
    scroll-margin-top:20px;
}
#note2{
    scroll-margin-top:20px;
}
#note3{
    scroll-margin-top:20px;
}

/* mail */
.contact-line{
    display:flex;
    align-items:center;
    gap:12px;
    flex-wrap:wrap;
}
.mail-link{
    background:none;
    border:none;
    padding:0;
    color:#0F4C81;
    font:inherit;
    cursor:pointer;
    text-decoration:underline;
}
.mail-link:hover{
    color:#1F6FB2;
}
#email-area a{
    color:#0F4C81;
    text-decoration:none;
}
#email-area a:hover{
    text-decoration:underline;
}