body {
  background-color: #FFFDB0;
  color: #333;
  margin: 0;
  padding: 0;
}

header,
footer {
  text-align: center;
  margin: 20px 0;
}


main{
  max-width:1000px;
  margin:0 auto;
}

h1 {
  color: #7F5026;
  font-size: clamp(2rem, 1.6vw + 1.8rem, 3rem);
  font-weight: normal;
  margin:0;
}

h2 {
  margin:1em auto;
  color: #7F5026;
  font-size: clamp(1.5rem, 1vw + 1rem, 2rem);
  text-align: center;
}
header p{
  margin:0;
  font-size: clamp(0.8rem, 1vw + 0.7rem, 1rem);
  color:#7F5026;
  font-weight:bold;
}
.logo{
  text-align:left;
  display: block; 
  width: 113px;
  height: 23px;
  margin-left:1rem;
}
nav {
  margin: 20px auto;
  max-width: 600px;
}

nav a {
  display: block;
  text-align: center;
  margin: 8px 0;
  font-weight: bold;
  font-style: italic;
  line-height: 3em;
}

nav a:hover {
  text-decoration: underline;
}

br.sp {
  display:none;
}
.contact {
  text-align: center;
  margin-top: 20px;
  color: #805126;
}

.contact .label {
  font-weight: bold;
}

.footer-text {
  font-size: 0.8em;
  color: #666;
  text-align: right;
  margin-right: 10px;
}

.rules {
  background-color: #FFFDB0;
  font-family: "ＭＳ 明朝", serif;
  color: black;
  margin: 0;
  padding: 0;
  max-width: 800px;
  margin: 0 auto 40px auto;
  font-size: 1em;
}


.section-title {
  text-align: center;
  color: #996633;
  font-size: 18pt;
  font-weight: bold;
  margin-top: 40px;
  margin-bottom: 20px;
  text-align: center;
}


.rules dl {
  margin-bottom: 10px;
}

.rules dt {
  font-weight: bold;
  margin-top: 10px;
}

.rules dd {
  margin-left: 1em;
}

/*footer */
.site-footer {
  font-size: 0.9em;
  color: #444;
  border-top: 1px solid #ccc;
  margin-top: 2em;
  padding-top: 1em;
}

.site-footer .contact p,
.site-footer address {
  margin: 0.3em 0;
  line-height: 1.4;
  font-style: normal;
}
#office table {
  width: 50%;
  border-collapse: collapse;
  margin: 0 auto 4em;
}
#office th.nendo{
    text-align:center;
    padding-bottom:0.5em;
}
#office th,
#office td {
  text-align:left;
  vertical-align: top;
  color: #AD0FB0;
  font-weight: bold;
  font-size:1.5em;
  white-space: nowrap;
}
#office th{
 padding-right:3em;
}

/* kenkyu */

#kenkyu h3 {
  text-align: center;
  color: #000;
  margin-bottom: 10px;
  font-size:1.5rem;
}

#kenkyu h3 span{
 font-size: 0.9rem;
}

#kenkyu table {
  width: 96%;
  border-collapse: collapse;
  margin: 0 2% 4em;
}

#kenkyu th,
#kenkyu td {
  vertical-align: top;
}

#kenkyu th {
  color: #000;
  text-align: left;
  font-size: 1.1em;
}

.category {
  font-weight: bold;
  font-size: 1.1em;
}

.title {
  width: 100%;
  padding-top:1em;
  margin-bottom:0;
}

.author {
  color: #333;
  text-align: right;
  width:98%;
}

.page {
  text-align: right;
  white-space: nowrap;
  color: #333;
  width:2em;
}
.subtitle{
  margin:0 auto;
  font-size:large;
  display: block;
  text-align:center; 
}
/* Journal */
section.journal{
  text-align:center;
}
div.journal-logo{
  margin: 0 auto 2em;
  color:#7F5026;
  font-weight:bold;
  text-align: center; 
}
p.highlight {
  font-size: 2em;
  color:#AF0000;
}
p.kitei {
  font-size:1.5em;
}
.contact-info {
  width:50%;
  margin:0 auto;
}

/* ------ パンくず------ */
.breadcrumb{
  display:flex;
  flex-wrap:wrap;
  gap:.5rem; 
  font-size:.9rem;
  margin: 0;
  justify-content:flex-end;
}

.breadcrumb span{
  user-select:none;
}

.breadcrumb span+*{margin-left:.5rem}



.breadcrumb [aria-current="page"]{
  font-weight:normal;
}


@media (max-width: 767px) {

  body {
    padding: 0 4%;
    line-height: 1.6;
  }

  .logo {
    margin: 0 auto 0.5rem;
    display: block;
    width: auto;
    height: 23px;
  }

  /* パンくずを折り返し・中央寄せ */
  .breadcrumb {
    justify-content: center;
    font-size: 0.8rem;
    padding-top: 0.5rem;
  }

  #office table {
    width: 100%;
    font-size: 0.9rem;
    overflow-x: auto;
    display: block;  
  }
  #office th,
  #office td {
    font-size: 1em;        /* rem→em にし親フォントに追従 */
    white-space: nowrap;
    padding: 0.3em 0.5em;
  }

  /* フッター：リンクとテキストを中央寄せに */
  .site-footer {
    text-align: center;
    font-size: 0.8rem;
  }
  .site-footer .contact p {
    line-height: 1.4;
  }
  .footer-text {
    text-align: center;
    margin-right: 0;
  }

  br.sp {
    display:inline;
  }
  /* 見出しを少し小さくして折り返し許可 */
  #kenkyu h3 {
    font-size: clamp(1.2rem, 4vw + 0.6rem, 1.4rem);
    margin: 1.5em auto 0.5em;
    line-height: 1.3;
  }
  #kenkyu h3 span {
    display: block;          /* 号数と年月を改行 */
    font-size: 0.8rem;
    margin-top: 0.3em;
  }

  /* Journal ロゴを中央・間隔縮小 */
  .journal-logo {
    font-size: 0.9rem;
    margin-bottom: 1.2em;
    line-height: 1.4;
  }

  /* ─ 表全体を横スクロールにしつつ文字を読める大きさへ ─ */
  #kenkyu table {
    display: block;          /* ブロック化して overflow が効く */
    overflow-x: auto;
    width: 100%;
    font-size: 0.9rem;
    margin-bottom: 3em;
  }

  /* セル：余白を詰め過ぎず、折り返しは基本させない */
  #kenkyu th,
  #kenkyu td {
    padding: 0.35em 0.6em;
    white-space: nowrap;     /* 長いタイトルも折り返さず横スクロール */
    line-height: 1.45;
  }

  /* カテゴリ行を目立たせる */
  #kenkyu .category th {
    background: #FFF9DA;
    position: sticky;        /* 横にスクロールしても見失わない */
    left: 0;
    z-index: 1;
  }

  #kenkyu .title,
  #kenkyu .author {
    white-space: normal;
  }

  .subtitle {
    display: block;          /* 改行して折り返し */
    font-size: 0.85rem;
    margin-top: 0.3em;
  }

  .award-details,
  .grant-details {
    padding-left: 1.2em;     /* 左インデントを少し狭める */
    font-size: 0.95rem;
    line-height: 1.55;
  }
  .grant-details .periods div {
    margin-top: 0.4em;
  }
  .grant-details .note {
    margin: 0.6em 0 0 0;
    font-size: 0.85rem;
  }

  /* ─ ボタンリンクをタップしやすく ─ */
  .btn-link {
    display: inline-block;
    padding: 0.5em 1.2em;
    margin: 1em 0;
    border: 1px solid #7F5026;
    border-radius: 4px;
    background: #FFF9DA;
    font-size: 0.9rem;
    text-decoration: none;
  }
  .btn-link:active { background: #FFEFAA; }

  .contact-info {
    width: 90%;
    margin: 2.5em auto;
    text-align: center;
    font-size: 0.9rem;
    line-height: 1.6;
  }
  .contact-info .address span {
    font-weight: 600;
    display: block;
    margin-bottom: 0.4em;
  }



}

