/* --- Reset & Basic Settings --- */
*, *::before, *::after {
    box-sizing: border-box;
}

body {
    margin: 0;
    font-family: 'Noto Sans JP', sans-serif;
    font-size: 16px;
    line-height: 1.7;
    color: #333;
    background-color: #fff;
    -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Roboto', sans-serif;
    margin-top: 0;
    margin-bottom: 0.5em;
    font-weight: 700;
    line-height: 1.3;
}

h2 {
    font-size: 2.5rem;
    text-align: center;
    margin-bottom: 1.5em;
    color: #1a1a1a;
}

h3 {
    font-size: 1.8rem;
    color: #004a99;
}

h4 {
    font-size: 1.2rem;
}

p {
    margin-top: 0;
    margin-bottom: 1em;
}

a {
    color: #0056b3;
    text-decoration: none;
    transition: color 0.2s ease-in-out;
}

a:hover {
    text-decoration: underline;
}

ul {
    padding-left: 1.2em;
}

img {
    max-width: 100%;
    height: auto;
}

.container {
    max-width: 960px;
    margin-left: auto;
    margin-right: auto;
    padding-left: 15px;
    padding-right: 15px;
}

/* --- Header --- */
.header {
    background-color: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid #e0e0e0;
    position: sticky;
    top: 0;
    z-index: 1000;
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 70px;
}

.logo {
    font-family: 'Roboto', sans-serif;
    font-size: 1.5rem;
    font-weight: 700;
    color: #000;
    text-decoration: none;
}

.main-nav ul {
    display: flex;
    align-items: center;
    margin: 0;
    padding: 0;
    list-style: none;
}

.main-nav li {
    margin-left: 20px;
}

.main-nav a {
    color: #333;
    text-decoration: none;
    font-weight: 700;
    font-size: 0.9rem;
    padding: 5px 0;
    border-bottom: 2px solid transparent;
}

.main-nav a:hover, .main-nav a:focus {
    color: #0056b3;
    border-bottom-color: #0056b3;
}

.nav-button {
    background-color: #0056b3;
    color: #fff;
    padding: 8px 16px;
    border-radius: 5px;
    text-decoration: none;
    font-weight: 700;
    transition: background-color 0.2s;
}

.nav-button:hover {
    background-color: #003d82;
    color: #fff;
    text-decoration: none;
    border-bottom-color: transparent;
}


/* --- Sections --- */
.content-section {
    padding: 80px 0;
}

.bg-light {
    background-color: #f7f7f7;
    border-top: 1px solid #e0e0e0;
    border-bottom: 1px solid #e0e0e0;
}

.subsection-title {
    margin-top: 2.5em;
    margin-bottom: 1em;
    border-bottom: 2px solid #0056b3;
    padding-bottom: 0.3em;
}

.text-center {
    text-align: center;
}

/* --- Hero Section --- */
/* hero-section のスタイル (既存のものを修正または追加) */
.hero-section {
    position: relative; /* 子要素の絶対配置の基準にする */
    height: 500px; /* セクションの高さを指定 (画像のアスペクト比に合わせて調整) */
    overflow: hidden; /* 画像がはみ出さないように */
    display: flex; /* hero-contentを中央に配置するため */
    justify-content: center; /* hero-contentを水平中央に配置 */
    align-items: center; /* hero-contentを垂直中央に配置 */
}

.hero-content {
    position: relative; /* .hero-slogan-overlayの基準になるように設定 */
    width: 100%;
    height: 100%;
    display: flex; /* 画像とオーバーレイを重ねるため */
    justify-content: center; /* スローガンを水平中央に配置するため */
    align-items: center; /* スローガンを垂直中央に配置するため */
}

.hero-image {
    width: 100%; /* 親要素の幅いっぱいに広げる */
    height: 100%; /* 親要素の高さに合わせる */
    object-fit: cover; /* 画像がコンテナに収まるようにトリミング */
    position: absolute; /* .hero-content の中に絶対配置 */
    top: 0;
    left: 0;
    z-index: 1; /* スローガンより下に表示 */
}

.hero-slogan-overlay {
    position: relative; /* スローガン自体が中央に来るようにするため */
    z-index: 2; /* 画像より上に表示 */
    color: #fff; /* 文字色を白に (背景画像に合わせて調整) */
    text-align: center; /* テキストを中央揃え */
    padding: 20px; /* 内側の余白 */
    /* 背景色を半透明にする場合は以下を追加 */
    /* background-color: rgba(0, 0, 0, 0.5); */
    /* border-radius: 10px; */
}

.main-slogan {
    font-size: 3em; /* メインスローガンの文字サイズ */
    margin-bottom: 10px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.7); /* 文字に影をつけて読みやすくする */
}

.sub-slogan {
    font-size: 1.5em; /* サブスローガンの文字サイズ */
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.7); /* 文字に影をつけて読みやすくする */
}
.hero-section {
    background: url(https://via.placeholder.com/1920x1080.png?text=Abstract+Network) no-repeat center center/cover;
    height: 70vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: #fff;
    position: relative;
}
.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0.6);
}

/* --- News Section --- */
.news-item {
    display: flex;
    align-items: flex-start;
    gap: 30px;
}

.news-image {
    width: 300px;
    flex-shrink: 0;
}

.news-content h3 {
    margin-top: 0;
    font-size: 1.5rem;
    color: #000;
}

.news-date {
    font-size: 0.9rem;
    color: #777;
    margin-bottom: 0.5em;
}


/* --- Features --- */
.features-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
}
.feature-card {
    background-color: #f7f7f7;
    padding: 25px;
    border-left: 4px solid #0056b3;
}
.feature-card h4 {
    margin-top: 0;
    color: #004a99;
}

/* --- Experiment Section --- */
#experiment ul {
    list-style: none;
    padding: 0;
}
#experiment li {
    font-size: 1.1rem;
    margin-bottom: 0.5em;
}

/* --- About Section --- */
.about-table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 3em;
}
.about-table th, .about-table td {
    border: 1px solid #e0e0e0;
    padding: 15px;
    text-align: left;
    vertical-align: top;
}
.about-table th {
    background-color: #f7f7f7;
    width: 25%;
    font-weight: 700;
}

.management-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
}
.profile-pic {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    object-fit: cover;
    margin-bottom: 1em;
    border: 3px solid #e0e0e0;
}
.management-member p {
    font-size: 0.9rem;
    color: #555;
}

/* --- General Button --- */
.button {
    display: inline-block;
    background-color: #0056b3;
    color: #fff;
    padding: 12px 25px;
    border-radius: 5px;
    text-decoration: none;
    font-weight: 700;
    transition: background-color 0.2s;
}
.button:hover {
    background-color: #003d82;
    color: #fff;
    text-decoration: none;
}

.hero-image {
    max-width: 100%; /* 親要素の幅に合わせて画像を縮小 */
    height: auto;    /* アスペクト比を維持 */
    display: block;  /* 画像の下に余計なスペースができないようにする */
    margin: 0 auto 20px auto; /* 中央寄せにして、下に20pxの余白を追加 */
}

/* --- Footer --- */
.footer {
    background-color: #1a1a1a;
    color: #ccc;
    padding: 20px 0;
    text-align: center;
    font-size: 0.9rem;
}
.footer p {
    margin: 0;
}

/* --- Responsive --- */
@media (max-width: 768px) {
    h2 { font-size: 2rem; }
    .main-slogan { font-size: 2.5rem; }
    .sub-slogan { font-size: 1.2rem; }

    .header-container { flex-direction: column; height: auto; padding-top: 10px; padding-bottom: 10px; }
    .main-nav ul { flex-direction: column; width: 100%; }
    .main-nav li { margin-left: 0; text-align: center; width: 100%; padding: 5px 0;}
    .nav-button { width: 90%; margin-top: 10px; text-align: center; }

    .news-item { flex-direction: column; }
    .news-image { width: 100%; margin-bottom: 20px; }
    
    .features-grid { grid-template-columns: 1fr; }
    .management-grid { grid-template-columns: 1fr; }
}