* {
    box-sizing: border-box;
}

h1{
    font-size: 18px;
    line-height:1.3em;
    letter-spacing:1px;
    font-family: 'NosutaruDotMPlusH';
}

h2 {
    font-size: 16px;
    font-family: 'NosutaruDotMPlusH';
    font-weight: bold;
    color: #333;
    padding-bottom: 8px;
    border-bottom: 3px solid #4CAF50; /* 下線をアクセント */
    margin-top: 30px;
}

h3 {
    font-size: 15px;
    font-weight: bold;
    color: #4CAF50;
    margin-top: 25px;
    padding-left: 8px;
    border-left: 4px solid #4CAF50; /* 左ラインでアクセント */
}

ul {
    list-style: none; /* デフォルトのマーカーを消す */
    padding-left: 0;
}

ul li {
    padding: 8px 0;
    font-size: 13px;
    display: flex;
    align-items: center;
}

ul li::before {
    content: "●"; /* シンプルな丸 */
    color: #4CAF50; /* アクセントカラー */
    font-size: 13px;
    margin-right: 10px;
}

img{width:100%;}

@font-face {
    font-family: 'NosutaruDotMPlusH';
    src: url('fonts/Nosutaru-dotMPlusH-10-Regular.woff2') format('woff2'),
         url('fonts/Nosutaru-dotMPlusH-10-Regular.ttf') format('truetype');
    font-weight: normal;
    font-style: normal;
    font-display: swap;
}

body {
    font-family: Verdana, "Droid Sans", "游ゴシック", YuGothic, "ヒラギノ角ゴ ProN", "Hiragino Kaku Gothic ProN", "メイリオ", Meiryo, sans-serif;
    background-color:#f7f7f7;
    width:100%;
    margin:0px auto;
    color: #333333;
}

a:link, a:visited {
    color: inherit; /* テキストの色を親要素から継承 */
    text-decoration: none; /* 必要に応じて下線を消す */
}

header{
    font-family: 'NosutaruDotMPlusH', sans-serif;
	height: 60px;
	background:#ffffff;
	width:100%;
	top:0px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size:20px;
    line-height: 60px; /* 行の高さをheaderの高さに揃える */
    letter-spacing: 1px;
}

.full{
    letter-spacing: 4px;
}

header img{
    width: 30px;
    margin-right: 15px;
    vertical-align: middle; /* 画像をテキストの中央に揃える */
}

.container{
    max-width: 880px;
    margin: 0 auto;
}

.main {
    background: #ffffff;
    margin: 5px auto 20px auto;
    padding: 5px 111px 20px 111px;
    font-size: 14px;
    letter-spacing:-1px;
    font-weight: 500;
    line-height: 20px;
}

footer{
    background-color: #000000;
    color: #ffffff;
    font-family: 'NosutaruDotMPlusH';
	height:100px;
	width:100%;
	top:0px;
    display: flex;
    font-size:15px;
    vertical-align: baseline;
}

footer .site-info {
    margin-left: 10px;  /* 左側に20pxの余白を追加 */
    margin-top: 10px;   /* 上側に20pxの余白を追加 */
  }

.recommend-title{
    margin: 5px auto 5px 0px;
    color: #717071;
}

.recommend{
    margin: 5px auto 20px auto;
    display: flex;
    flex-wrap: wrap;
    font-size:13px;
}

.recommend-item{
    background:#ffffff;
    margin-bottom: 5px;
    margin-right:0.4%;
    padding:10px;
    width:24.6%;
}

.recommend-item p{
    font-size: 11px;
    margin:5px 0 0 0;
    line-height: 1.4em;
}
.price{
    text-align: right;
    font-weight: bold;
}

.list{
    background:#f7f7f7;
    display: flex;
    flex-wrap: wrap;
}

.item{
    position: relative;
    margin-bottom:10px;
    margin-right:1%;
    width:24%;
}

.item img{
    filter:brightness(80%);
}

.item p {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    margin: 0;
    color: #ffffff;
    text-align: center;
    font-weight: bold;
    z-index: 1;
}

table {
    width: 100%;
    border-collapse: collapse;
    margin: 20px 0;
    font-size: 13px;
    text-align: left;
    border: 1px solid #ccc; /* シンプルな枠線 */
}

th, td {
    padding: 10px;
    border: 1px solid #ddd; /* 各セルの枠線 */
}

th {
    background-color: #f8f8f8; /* 控えめな背景色 */
    font-weight: bold;
}

td:first-child, th:first-child {
    min-width: 80px; /* 先頭の列の幅を設定 */
  }

td {
    min-width: 100px; /* 列の横幅を固定 */
    word-wrap: break-word; /* 文字が長すぎる場合に折り返し */
}

tr:hover {
    background-color: #f5f5f5; /* ホバー時も控えめに */
}

table td a:link,
table td a:visited {
    color: #28a745 !important; /* 色を緑に設定し、強制適用 */
    font-weight: bold;
    text-decoration: underline; /* 必要に応じて下線を追加 */
}


.articles-list {
    margin-top: 20px;
    background-color: #fff;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.article-card {
    display: flex;
    background: #fff;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.article-card a {
    display: flex;
    align-items: center;  /* 追加：画像とタイトルを中央揃え */
    text-decoration: none;
    color: inherit;
    width: 100%;
}

.article-card img {
    width: 120px;
    height: 80px;
    object-fit: cover;
    border-radius: 10px 0 0 10px;
}

.article-content {
    padding: 10px;
    flex: 1;
}

.article-title {
    font-size: 1em;
    font-weight: bold;
    line-height: 1.4;
    margin: 0;  /* 追加：余計な余白を防ぐ */
}

.article-card {
    margin-bottom: 0.5em; /* 下に余白をつけて、連続表示を防ぐ */
}

.article-card:last-child {
    margin-bottom: 0; /* 最後のカードだけ余白をなくす（お好みで） */
}

.supervisor-box {
    display: flex;
    align-items: flex-start; /* ← 上揃えに変更 */
    gap: 12px;
    margin-top: 2em;
    padding: 1em;
    background: #f5f5f5;
    border-radius: 6px;
    font-size: 0.95em;
}

.supervisor-img {
    flex-shrink: 0;
}

.supervisor-img img {
    width: 55px;
    height: 55px;
    border-radius: 50%;
    object-fit: cover;
    display: block;
}

.supervisor-info {
    flex: 1;
}

.supervisor-name {
    font-family: 'NosutaruDotMPlusH';
    font-weight: bold;
    line-height: 1.2;
    margin: 0 0 4px 0;
}

.supervisor-bio {
    color: #666;
    font-size: 13px;
    line-height: 1.4;
    margin: 0;
}


@media(max-width:850px){

    body {
        width:100%;
    }
    .main {
        background: #ffffff;
        margin: 5px auto 20px auto; /* 左右のマージンを自動で中央揃え */
        padding: 5px 20px 20px 20px;
        font-size: 13px;
        line-height: 23px;
    }

    .recommend-title{
        margin: 5px auto 5px 10px;
        color: #717071;
    }

    .recommend-item{
        width:49.6%;
    }

    .list{
        padding:0 10px 10px 10px;
    }
    .item{
        margin-right:2%;
        width:48%;
    }
}
