/* ページ全体（bodyタグ）の設定 */
body {
  /* 背景色 */
  background-color: #ffffff;
  /* 文字色 */
  color: #000000;
  overflow: hidden
}

/* 一番大きな見出し（h1タグ）の設定 */
h1 {
  /* 位置 */
  text-align: center;
  margin: 0;
}



.top_list {
  transform: translate(5%, 0%);
  width: 90%;
  margin-top: 10%;
  padding-top: 5%;
  padding-bottom: 10%;
  background-color: #ffeea2;
  display: flex;
  /* justify-content: center; */
  flex-flow: column;
  justify-content: center;
  align-items: center;
}

#item-table {
  margin-top: 5%;
  width: 70%;
  border-spacing: 0 50px;
  border-collapse: separate;

}

.top_type_box {
  border: 1em;
  display: flex;

}

.top_list_box {
  /* flex: auto; */
  background-color: #ffde48;
  border: 1em solid #ffde48;
  display: flex;
  margin-bottom: 5%;
}

.list_open_div {
  /* flex: auto; */
  /* margin-left: 20px;
  margin-right: 20px; */
  width: 33%;
}

/* テーブル（tableタグ）の設定 */
/* table {

  margin-left: auto;
  margin-right: auto;

  border-width: 1px;
  border-spacing: 0px;
  border-color: #db7093;

  background-color: #fffcf3;
} */

/* テーブルの見出し（thタグ）の設定 */
th {
  /* 最小の横幅 */
  min-width: 160px;
}

/* 「学歴」用テーブル（educational-backgrounds__tableクラス）の設定 */
.educational-backgrounds__table {
  /* 横幅 */
  width: 100%;
}

.main-header {
  display: flex;
  align-items: center;
  justify-content: left;
  background-color: #fdd000;


  /* スクロール追従*/
  position: sticky;

  top: 0;
  margin: -9px;
}

.site-name {
  /* text-align: center; */
  /* justify-content: center; */
  font-size: 2em;
  color: #000000;
  transform: translate(70%, 0%);

}

.list_open {
  width: 100%;
  height: 3em;
  font-size: 1.2em;
  margin-top: 1.0em;
  margin-bottom: -0.5em;
}

.list_none {
  width: 100%;
  height: 3em;
  font-size: 1.2em;
  margin-top: 1.0em;
  margin-bottom: -0.5em;
}



/* ナビゲーションボタンのスタイル */
.nav-toggle-btn {
  background: #ffb700;
  border: none;
  cursor: pointer;
  width: 20%;

  /* padding: 3rem 1rem; */
  /* ボタンの内側の余白 */
  /* margin-right: 30%; */
  position: relative;
  z-index: 1001;

}

.nav-toggle-btn-typeback {
  background: #ffb700;
  border: none;
  cursor: pointer;
  width: 20%;

  /* padding: 3rem 1rem; */
  /* ボタンの内側の余白 */
  /* margin-right: 30%; */
  position: relative;
  /* position: absolute; */
  position: fixed;
  bottom: 0;
  z-index: 1001;
}

.nav-toggle-btn-none {
  border: none;
  cursor: pointer;
  width: 20%;

  /* padding: 3rem 1rem; */
  /* ボタンの内側の余白 */
  /* margin-right: 30%; */
  position: relative;

}

/* サイドナビゲーションのスタイル */
.side-nav {
  position: fixed;
  top: 0;
  left: 0px;
  /* 画面外に隠す */
  width: 19.9%;
  height: 92%;
  background-color: #ffeea2;
  box-shadow: 2px 0 5px rgba(0, 0, 0, 0.1);
  transition: left 0.3s ease;
  z-index: 1000;
  padding-top: 3.5em;

  /* padding: 60px 20px 20px; */
  overflow-y: auto;
  overflow: scroll;
}

/* .side-nav ul {
  list-style: none;
  padding: 0;
} */

.side-nav .list_button {
  background: #ffeea2;
  border: none;
  cursor: pointer;
  width: 100%;
  height: 5em;
  font-size: 0.8em;
  /* text-align: center; */
  border-bottom: 1px solid #000000;
  z-index: 1001;
}

.side-nav .list_button .is-select {
  background: #fdd000;
}

/* アクティブな状態のスタイル */
.side-nav.is-open {
  left: -100%;
  /* 画面内に表示 */
}

.sub-search-container {

  padding-top: 2em;
  padding-bottom: 2em;
  text-align: center;
  border-bottom: 1px solid #000000;
}

.sublist-names {
  text-align: left;
  font-size: 1.3em;
}

.sublist-study {
  text-align: left;
  font-size: 0.8em;
  padding-left: 0.8em;
  max-width: 100%;
  max-height: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  color: #815d00;

}


/* メインコンテナの縦画面向け設定 */
.resume-container {
  display: flex;
  /* Flexboxに変更して縦並びに */
  flex-direction: column;
  height: auto;
  /* コンテンツに合わせて高さを自動調整 */
  width: 95vw;
  height: 90vh;
  padding-top: 2%;
  box-sizing: border-box;
  overflow: hidden;
  margin-left: 2vw;
  /* margin-left: 15%; */
}

.resume-container .open {
  /* width: 85vw; */
  margin-left: 18vw;
}


/* 各セクションの共通設定 */
.section-contact-info,
.section-details-flex,
.section-section-last {
  width: 100%;
  /* 幅を画面いっぱいに */
  border: 1px solid #000;
  box-sizing: border-box;
  margin-bottom: 10px;
  margin-top: 10px;
  /* セクション間の余白 */
}

.section-header,
.section-details-grid {
  width: 100%;
  /* 幅を画面いっぱいに */
  box-sizing: border-box;
  /* margin-bottom: 10px; */
  margin-top: 0.5em;
  /* height: 100%; */
}

.photo-box {
  width: 7%;
  height: 100%;
  text-align: center;
  /* border: 1px solid #000; */
  /* flex-shrink: 2; */
  flex-grow: 1;
}

.nameboxset {
  display: flex;
  flex-direction: column;
  width: 70%;
  height: 100%;
  flex-grow: 3;
}

.sub-name {
  width: 100%;
  height: 1.4em;
  border-bottom: 1px solid #000;
}

img.faceimg {
  /* width: 100%; */

  height: 100%;
}


.your-info {
  display: flex;
  flex-direction: row;
  /* align-items: center; */
  width: 100%;
  height: 5vh;
  /* flex-wrap: nowrap; */
}

.namebox {

  padding-left: 5em;

  overflow-y: scroll;
  margin-top: -1em;

  /* border: 1px solid #000; */
}



.your-number {
  border: none;
  background-color: #ffeea2;
  flex-grow: 1;
  width: 10vw;
  /* padding: 1em; */
  /* padding-top: 1em; */
  height: 100%;
  border-bottom: 1px solid #000;
  border-top: 1px solid #000;
  border-left: 1px solid #000;
}

.resume_num {
  padding-top: 0.7em;
}

/* header-itemのスタイル */
.header-item {
  /* 親要素のFlexbox設定に合わせ、子要素が均等に縮むように設定 */
  flex-shrink: 1;
  border: 1px solid #000;
  /* テキストの余白をなくす */
  margin: 0;
}

/* contact-itemのスタイル */
.contact-item {
  /* 親要素のFlexbox設定に合わせ、子要素が均等に縮むように設定 */
  flex-shrink: 1;
  width: 100%;
  height: 3.5em;
  /* テキストの余白をなくす */
  margin: 0;
  /* border: 1px solid #000; */
}

h3 {
  border-bottom: 1px solid #000;
  margin: 0;

  /* h3に不要なマージンがあればリセット */
  /* padding-top: 2px;
  padding-bottom: 2px; */
}

/* -------------------- 縦画面用レイアウト -------------------- */

/* ヘッダーセクション */
.section-header {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5em;
  /* 左右中央揃え */

}



/* 2列レイアウトセクション */
.section-details-flex {
  display: flex;
  flex-direction: row;
  /* 縦並びに変更 */
}

.detail-box {
  display: flex;
  flex-direction: column;
  border-right: none;
  border-bottom: 1px solid #000;
  /* 縦並びのため、下側にボーダー */
}



/* 3列レイアウトセクション */
.section-details-grid {
  display: flex;
  flex-direction: column;
  gap: 0.5em;
  /* 縦並びに変更 */
}

.grid-item {
  display: flex;
  flex-direction: column;
  border-right: none;
  border: 1px solid #000;
}



/* -------------------- スクロール対応 -------------------- */

/* コンテンツがはみ出す可能性がある部分 */
.grid-item {
  padding: 2px;
  height: 15vh;
  /* 固定の高さを設定 */

}

.last-item {
  padding: 2px;
  height: 15vh;
  /* 固定の高さを設定 */

}


.detail-box {
  padding: 2px;
  height: 9vh;
  width: 50%;
}

.educational-background {
  border-right: 1px solid #000;
}

.wordstitle {
  overflow: hidden;
}

.mainwords {

  overflow-y: scroll;
  /* 縦スクロールを有効にする */
}

.school-list {
  padding: 0;
  list-style: none;
}


/* その他の関連要素の調整 */
/* h2やpタグなど、デフォルトの余白をなくす */
.header-item h2,
.header-item p,
.contact-item p {
  margin: 0;
  padding: 0;
}