﻿/* ===== 全体の設定 ===== */
body {
    font-family: 'Hiragino Kaku Gothic ProN', 'ヒラギノ角ゴ ProN W3', Meiryo, メイリオ, sans-serif;
    line-height: 1.7;
    color: #333;
    background-color: #fdfaf6; /* 少しクリーム色がかった背景 */
    margin: 0;
}
/* リンクのアンダーラインを消す設定 */
a{
    text-decoration: none;
}

/* 英語テキスト用のスタイル */
.lang-en {
    font-size: 0.9em;
    color: mediumblue;
    font-style: italic;
}
.lang-en-light {
    font-size: 0.9em;
    color: lightcyan;
    font-style: italic;
}

/* 英語の本文用のクラス（青文字・イタリックを打ち消す） */
.lang-en-body {
    color: #333; /* 普通の文字色に戻す */
    font-style: normal; /* イタリック体をやめる */
}

/* ===== ヘッダーとフッター ===== */
.site-header, .site-footer {
    background-color: saddlebrown; /* 茶色 #8c786d*/
    color: #fff;
    text-align: center;
    padding: 20px;
}
.site-header h1 {
    margin: 0;
    font-size: 24px;
}
.site-header p, .site-footer p {
    margin: 5px 0 0;
    opacity: 0.9;
}
/* ===== Miwa Lab.文字修飾 ===== */
.miwalabmoji {
  color: lightyellow;
  display: inline-block;
  text-shadow: 4px 4px 0 #333, -1px -1px 0 #333, -1px 1px 0 #333, 1px -1px 0 #333, 0px 1px 0 #333, -1px 0 #333, -1px 0 0 #333, 1px 0 0 #333;
}
.emphasis_design31::before {
  content: attr(data-text);
    position: absolute;
    z-index: -1;
    text-shadow: 4px 4px #333;
    -webkit-text-stroke: 4px #333;
}

/* ===== メインコンテンツ ===== */
main {
    max-width: 1100px;
    margin: 40px auto; /* 上下に余白、左右は自動で中央へ */
    padding: 0 20px;
}

/* ===== ウェルカムエリア ===== */
.welcome-area {
    display: flex;
    align-items: center;
    gap: 30px; /* 画像とテキストの間のすき間 */
    margin-bottom: 60px;
    background-color: khaki;
    padding: 30px;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
}
.sandy-image img {
    max-width: 150px;
    height: auto;
}
.welcome-text h2 {
    font-size: 22px;
    color: #5a4a42;
    margin-top: 0;
    border-bottom: 2px solid lightyellow;
    padding-bottom: 10px;
}

/* ===== ３つの研究室（カード） ===== */
.labs-container {
    display: flex;
    justify-content: center;
    gap: 30px; /* カード間のすき間 */
}
.lab-card {
    background-color: peachpuff;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.1);
    width: 30%;
    padding: 20px;
    text-align: center;
    transition: transform 0.3s, box-shadow 0.3s;
}
.lab-card:hover {
    transform: translateY(-5px); /* 少し浮き上がる動き */
    box-shadow: 0 8px 25px rgba(0,0,0,0.12);
}
.card-image {
    border-radius: 8px;
    margin-bottom: 15px;
     box-shadow:3px 3px 5px #b2b2b2;  /* 影指定 */
}
.lab-card h3 {
    color: #5a4a42;
    margin: 10px 0;
}
.lab-card p {
    font-size: 14px;
    min-height: 100px; /* 説明文の高さをそろえる */
}

/* カード内のボタン */
.card-buttons {
    margin-top: 20px;
}
.button {
    display: inline-block;
    background-color: #8c786d;
    color: #fff;
    padding: 8px 20px;
    text-decoration: none;
    border-radius: 5px;
    font-size: 14px;
    margin: 0 5px;
    transition: background-color 0.3s;
}
.button:hover {
    background-color: #5a4a42;
}
/* ===== 新しいヘッダーとナビゲーション ===== */
.site-header {
    padding: 15px 30px; /* 少し余白を調整 */
}

.header-content {
    max-width: 1100px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between; /* ロゴとメニューを両端に配置 */
    align-items: center;
}

.logo-area h1 {
    margin: 0;
    font-size: 22px;
}
.logo-area p {
    margin: 0;
    font-size: 14px;
}
/* ===============================================
   ドロップダウンメニュー
   =============================================== */

.global-nav ul {
    margin: 0;
    padding: 0;
    list-style: none; /* リストの黒丸を消す */
  color: lightyellow;
  display: inline-block;
  text-shadow: 4px 4px 0 #333, -1px -1px 0 #333, -1px 1px 0 #333, 1px -1px 0 #333, 0px 1px 0 #333, -1px 0 #333, -1px 0 0 #333, 1px 0 0 #333;

}

.global-nav li {
    display: inline-block; /* メニューを横並びに */
    margin-left: 18px;
}

.global-nav a {
    text-decoration: none;
    color: #fdfaf6;   /* #fdfaf6*/
    font-weight: bold;
    font-size: 16px;
    padding: 5px 10px;
    border-radius: 4px;
    transition: background-color 0.3s;
}

.global-nav a:hover {
    background-color: rgba(255, 255, 255, 0.2); /* マウスを乗せると少し白く */
}
/* 親メニュー(li)を、ドロップダウンを配置する時の「基準点」にするおまじない */
.global-nav > ul > li {
    position: relative;
}

/* 子階層のリスト(ul)のスタイル（普段は隠しておく） */
.global-nav ul ul {
    display: none; /* ← これが「隠す」魔法 */
    position: absolute; /* 親を基準に、宙に浮かせる */
    top: 100%; /* 親のすぐ下に配置 */
    left: 0;
    background-color: saddlebrown; /* 背景色（親メニューと合わせると綺麗） */
    padding: 3px 0px;
    margin-left: 0; /* 親の余白をリセット */
    min-width: 200px; /* ドロップダウンの幅を少し広めに */
    border-radius: 4px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.2);
    z-index: 1000; /* 他の要素より手前に表示するおまじない */
}

/* 親メニュー(li)にマウスが乗ったら、その中の子階層(ul)を表示する */
.global-nav li:hover > ul {
    display: block; /* ← これが「表示する」魔法！ */
}

/* 子階層のリスト項目(li)のスタイル */
.global-nav ul ul li {
    display: block; /* 横並びじゃなくて、縦並びにする */
    width: 100%;
    margin-left: 0;
}

/* 子階層のリンク(a)のスタイル */
.global-nav ul ul a {
    padding: 10px 15px; /* 上下の余白を少し広めに */
    white-space: nowrap; /* 文字を改行させない */
    /* ↓もしドロップダウン内の文字の影が濃すぎる場合は、下の1行を追加して影を消せます */
    /* text-shadow: none; */ 
}
/* ◆◆◆ 現在地を示す「アクティブ」なタブのスタイル ◆◆◆ */
.san-nav a.active {
    background-color: #8c786d; /* 背景を濃い茶色に */
    color: #ffffff; /* 文字色を白に */
    font-weight: bold;
}
/* ◆◆◆ テーブルの隙間を無くす ◆◆◆ */
table {
  border-collapse: collapse;
  border-spacing: 0;
}
/* ◆◆◆ 子メニューバーの設定 ◆◆◆ */
.childnav {
  width: 100%;
  height: 70px;
  background-color: sienna;
  padding-top: 5px;
  box-sizing: border-box;
}
.childnav ul {
  display: flex;    /* 横並び  */
}
.childnav li {
  list-style: none;
}
.childnav a {
  display: block;
  text-decoration: none;
  color: white;
  margin-right: 35px;
}
@media(max-width:800px){
    .example4{
        /*追加*/flex-wrap: wrap;
    }
    .example4 li{
        /*追加*/width: 50%;
    }
}

