@charset "UTF-8";
/* 各ページ独自のcss設定 */

/* 以下に指定を記述する */

body {
   background-color: #fffbf8;
}

a {
   text-decoration: none;
}

/* ページタイトル部分 */
.page-title {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}

h1 {
   color: #333333;
   font-size: 28px;
   text-align: center;
   margin-top: 40px;
   font-weight: bold;
}

/* 下線のオレンジグラデーション風ライン */
.linebox {
  position: relative;
  width: 265px;
  height: 4px;
  margin: 0 auto;
}

.line {
  position: absolute;
  height: 4px;
}

.line1 {
  width: 120px;
  background: #edaa0b;
  border-radius: 10px;
  z-index: 3;
  left: 0;
}

.line2 {
  width: 100px;
  background: #f3c759;
  border-radius: 0 10px 10px 0;
  z-index: 2;
  left: 105px;
}

.line3 {
  width: 80px;
  background: #f9e3aa;
  border-radius: 0 10px 10px 0;
  z-index: 1;
  right: 0;
}

/* 戻るボタンのデザイン */
.back {
    font-size: 17px;
    font-weight: 500;
    color: #3e3a39;
    display: flex;
    justify-content: center;
    align-items: center;
    background-color: #f9f9f9;
    width: 180px;
    height: 45px;
    margin: 90px auto 90px auto;
    box-shadow: 1px 1px 1px #00000080;
    position: relative;
}

p {
   font-weight: 500;
   color: #3E3A39;
   text-align: center;
   margin: 0;  
   font-size: 17px;
   z-index: 1; /* 矢印より前に出す */
}

.back::before {
   content: "";
   position: absolute;
   top: 0;
   right: 0;
   border-right: 15px solid #b3b3b3;
   border-bottom: 15px solid transparent;
}

.back::after {
   content: "";
   position: absolute;
   bottom: 0;
   left: 0;
   border-right: 15px solid transparent;
   border-bottom: 15px solid #edaa0b;
}  

.yajirushi1 {
    display: inline-block;
    width: 30px;
    height: 0.75px;
    background: #4d4d4d;
    position: absolute;
    top: 55%;
    transform: translateY(-55%);
    left: 33px;
}

.yajirushi2 {
    display: inline-block;
    width: 10px;
    height: 0.75px;
    background: #4d4d4d;
    transform: rotate(-45deg) translateY(-55%);
    transform-origin: left bottom;
    position: absolute;
    top: 55%;
    left: 33px;
}

/* 戻るボタン矢印用のラップ */
.yajirushi-wrap {
    width: 48px;
    height: 24px;
    display: inline-block;
    position: absolute;
    left: 7px;
    top: 13px;
    z-index: 0;
}

/* アドバイス本文のボックス */
.box {
   margin: 0 auto;
   width: 335px;
   border: 1px #edaa0b solid;
   background-color: #fff;
   position: relative;
   padding: 15px;
   text-align: justify;
   text-align-last: left;
   line-height: 1.5;
   font-size: 14px;
}

.box > p {
   margin-bottom: 10px;
}

/* セクション見出し（共通テスト・二次試験） */
.column-s {
   height: 33px;
   width: 240px;
   background-color: #fffbf8;
   border-top: 1.5px solid #edaa0b;
   border-bottom: 1.5px solid #edaa0b;
   font-size: 16px;
   color: #333333;
   position: relative;
   margin: 20px auto;
   display: flex;
   justify-content: center;
   align-items: center;
   text-align: center;
}

.column-s::before {
   content: "";
   position: absolute;
   top: 0;
   left: 0;
   border-left: 20px solid #edaa0b;
   border-bottom: 20px solid transparent; 
}

.column-s::after {
   content: "";
   position: absolute;
   bottom: 0;
   right: 0;
   border-left: 20px solid transparent;
   border-bottom: 20px solid #edaa0b; 
}

/* タブメニューのスタイル */
.tab {
	display: flex;
   font-weight: 500;
   font-size: 16px;   
   justify-content: center;
   align-items: center;
   text-align: center;
   margin-top: 30px;
}

li {
   list-style-type: none;
   width: 20%;
}

.tab li a {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 45px;
    background: #f2f2f280;
    margin: 0;
    padding: 0 10px;
    text-decoration: none;
    color: #999999;
    white-space: nowrap;
    box-sizing: border-box;
    transition: 0.3s all;
    line-height: 1;
    border-top: 1px solid #99999950;
    border-left: 1px solid #99999950;
    border-right: 1px solid #99999950;
    border-bottom: 2px solid #edaa0b;
}

.tab li.active a {
    background: #fffbf8;
    color: #333333;
    position: relative;
    z-index: 10;
    border-top: 2px solid #edaa0b;
    border-left: 2px solid #edaa0b;
    border-right: 2px solid #edaa0b;
    border-bottom: none;
}

.tab li.active + li a {           
     border-left: none; /* 左線の重なり防止 */     
}

/* コンテンツエリアの表示切り替え */
.area {
	display: none;
	opacity: 0;
	background: #fffbf8;
   position: relative;
   scroll-margin-top: 100px;
}

.area.is-active {
   display: block;
   opacity: 1;  
}

/* タイトル部分の飾り */
.title::before {
    content: "";
    position: absolute;
    top: 0;
    right: 0;
    width: 0;
    height: 0;
    border-right: 31px solid transparent;
    border-bottom: 31px solid #edaa0bff;
}

.title::after {
    content: "";
    position: absolute;
    top: -1px;
    right: -1px;
    width: 0;
    height: 0;
    border-left: 32px solid transparent;
    border-top: 32px solid #fffbf8FF;
    z-index: 2;
    pointer-events: none;
}

.title {
    width: 267px;
    height: 57px;
    background-color: #ffffff;
    font-size: 18px;
    box-shadow: inset 0 0 0 1px #edaa0b;
    color: #333333;
    font-weight: bold;
    display: grid;
    place-items: center;
    text-align: center;
    position: relative;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    margin-top: 60px;
    margin-bottom: 10px;
    z-index: 1;  
}  

.extra-decoration {
  width: 27px;
  height: 3px;
  background-color: #f3c759;
  margin-top: 7px;
  margin-right: -239px;
  position: absolute;
} 

/* 表のスタイル */
table {
  border-collapse: collapse;
  width: 90%;
  height: 200px; /* 縦方向中央揃え用 */
  margin: 0 auto 60px auto;
}

th {
  text-align: center;
  vertical-align: middle;
  border: #edaa0b 1px solid;
  background-color: #f9e3aa;
}

td {
  text-align: center;
  vertical-align: middle;
  border: #edaa0b 1px solid;
  background: #ffffff;
  padding: 5px;
}

.small-font {
  font-size: 12px;
}

.back-to-top {
  position: fixed;
  bottom: 15px;
  right: 15px;
  background-color: #f3c75999;
  color: white;
  padding: 10px 14px;
  border-radius: 25px;
  text-decoration: none;
  font-weight: bold;
  font-size: 14px;
  z-index: 999;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  transition: background-color 0.3s ease;
}

.back-to-top:hover {
  background-color: #e07e0099;
}


/* レスポンシブは必要あればここに */

@media screen and (min-width:1024px) {
  body {
   background-color: #fffbf8;
}

.tab li a:hover {
  opacity: 0.6;
  background-color: #fffbf8;
}


.flex-wrapper {
  display: flex;
  gap: 20px;            /* 2つの間隔 */
  align-items: flex-start; /* 上揃え */
}

.flex-wrapper .flex {
  flex: 1;              /* 均等に幅を分ける */
  min-width: 0;         /* 内容が長くてもはみ出さないように */
}

a {
   text-decoration: none;
}

/* ページタイトル部分 */
.page-title {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}

h1 {
   color: #333333;
   font-size: 32px;
   text-align: center;
   margin-top: 40px;
   font-weight: bold;
}

/* 下線のオレンジグラデーション風ライン */
.linebox {
  position: relative;
  width: 265px;
  height: 4px;
  margin: 0 auto;
}

.line {
  position: absolute;
  height: 4px;
}

.line1 {
  width: 120px;
  background: #edaa0b;
  border-radius: 10px;
  z-index: 3;
  left: 0;
}

.line2 {
  width: 100px;
  background: #f3c759;
  border-radius: 0 10px 10px 0;
  z-index: 2;
  left: 105px;
}

.line3 {
  width: 80px;
  background: #f9e3aa;
  border-radius: 0 10px 10px 0;
  z-index: 1;
  right: 0;
}

/* 戻るボタンのデザイン */
.back {
    font-size: 29px;
    font-weight: 500;
    color: #3e3a39;
    display: flex;
    justify-content: center;
    align-items: center;
    background-color: #f9f9f9;
    width: 188px;
    height: 53px;
    margin: 90px auto 90px auto;
    box-shadow: 1px 1px 1px #00000080;
    position: relative;
}

p {
   font-weight: 500;
   color: #3E3A39;
   text-align: center;
   margin: 0;  
   font-size: 18px;
   z-index: 1; /* 矢印より前に出す */
}

.back::before {
   content: "";
   position: absolute;
   top: 0;
   right: 0;
   border-right: 20px solid #b3b3b3;
   border-bottom: 20px solid transparent;
}

.back::after {
   content: "";
   position: absolute;
   bottom: 0;
   left: 0;
   border-right: 20px solid transparent;
   border-bottom: 20px solid #edaa0b;
}  

.back:hover{
  transform: translateY(4px);
  box-shadow: none;
}


.back_wrap:hover{
    transform: translateY(4px);


}


.yajirushi1 {
    display: inline-block;
    width: 30px;
    height: 0.75px;
    background: #4d4d4d;
    position: absolute;
    top: 55%;
    transform: translateY(-55%);
    left: 41px;
}

.yajirushi2 {
    display: inline-block;
    width: 10px;
    height: 0.75px;
    background: #4d4d4d;
    transform: rotate(-45deg) translateY(-55%);
    transform-origin: left bottom;
    position: absolute;
    top: 55%;
    left: 41px;
}

/* 戻るボタン矢印用のラップ */
.yajirushi-wrap {
    width: 56px;
    height: 32px;
    display: inline-block;
    position: absolute;
    left: -5px;
    top: 13px;
    z-index: 0;
}

/* アドバイス本文のボックス */
.box {
   margin: 0 auto;
   width: 80%;
   border: 1px #edaa0b solid;
   background-color: #fff;
   position: relative;
   padding: 15px;
   text-align: justify;
   text-align-last: left;
   line-height: 1.5;
   font-size: 18px;
}

.box > p {
   margin-bottom: 10px;
}

/* セクション見出し（共通テスト・二次試験） */
.column-s {
   height: 33px;
   width: 240px;
   background-color: #fffbf8;
   border-top: 1.5px solid #edaa0b;
   border-bottom: 1.5px solid #edaa0b;
   font-size: 20px;
   color: #333333;
   position: relative;
   margin: 20px auto;
   display: flex;
   justify-content: center;
   align-items: center;
   text-align: center;
}

.column-s::before {
   content: "";
   position: absolute;
   top: 0;
   left: 0;
   border-left: 20px solid #edaa0b;
   border-bottom: 20px solid transparent; 
}

.column-s::after {
   content: "";
   position: absolute;
   bottom: 0;
   right: 0;
   border-left: 20px solid transparent;
   border-bottom: 20px solid #edaa0b; 
}

/* タブメニューのスタイル */
.tab {
	display: flex;
   font-weight: 500;
   font-size: 20px;   
   justify-content: center;
   align-items: center;
   text-align: center;
   margin-top: 30px;
}

li {
   list-style-type: none;
   width: 20%;
}

.tab li a {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 45px;
    background: #f2f2f280;
    margin: 0;
    padding: 0 10px;
    text-decoration: none;
    color: #999999;
    white-space: nowrap;
    box-sizing: border-box;
    transition: 0.3s all;
    line-height: 1;
    border-top: 1px solid #99999950;
    border-left: 1px solid #99999950;
    border-right: 1px solid #99999950;
    border-bottom: 2px solid #edaa0b;
}

.tab li.active a {
    background: #fffbf8;
    color: #333333;
    position: relative;
    z-index: 10;
    border-top: 2px solid #edaa0b;
    border-left: 2px solid #edaa0b;
    border-right: 2px solid #edaa0b;
    border-bottom: none;
}

.tab li.active + li a {           
     border-left: none; /* 左線の重なり防止 */     
}

/* コンテンツエリアの表示切り替え */
.area {
	display: none;
	opacity: 0;
	background: #fffbf8;
   position: relative;
   scroll-margin-top: 100px;
}

.area.is-active {
   display: block;
   opacity: 1;  
}

.extra-decoration {
  width: 27px;
  height: 3px;
  background-color: #f3c759;
  top: 23px;     
  right: 240px; 
  position:absolute;
} 

.title::before {
    content: "";
    position: absolute;
    top: 0;
    right: 0;
    width: 0;
    height: 0;
    border-right: 31px solid transparent;
    border-bottom: 31px solid #edaa0bff;
}

.title::after {
    content: "";
    position: absolute;
    top: -1px;
    right: -1px;
    width: 0;
    height: 0px;
    border-left: 32px solid transparent;
    border-top: 32px solid #fffbf8FF;
    z-index: 2;
    pointer-events: none
}


.title {
    width: 60%;
    height: 63px;
    background-color: #ffffff;
    font-size: 22px;
    box-shadow: inset 0 0 0 1px #edaa0b;
    color: #333333;
    font-weight: bold;
    display: grid;
    place-items: center;
    text-align: center;
    position: relative;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    margin-top: 100px;
    margin-bottom: 10px;
    z-index: 1;  
    font-weight: bold;  
}  


/* 表のスタイル */
table {
  border-collapse: collapse;
  width: 90%;
  height: 200px; /* 縦方向中央揃え用 */
  margin: 0 auto 60px auto;
}

th {
  text-align: center;
  vertical-align: middle;
  border: #edaa0b 1px solid;
  background-color: #f9e3aa;
  font-size:20px;
}

td {
  text-align: center;
  vertical-align: middle;
  border: #edaa0b 1px solid;
  background: #ffffff;
  padding: 5px;
  font-size:20px;
}

.small-font {
  font-size: 16px;
}

.back-to-top {
  position: fixed;
  bottom: 15px;
  right: 15px;
  background-color: #f3c75999;
  color: white;
  padding: 10px 14px;
  border-radius: 25px;
  text-decoration: none;
  font-weight: bold;
  font-size: 18px;
  z-index: 999;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  transition: background-color 0.3s ease;
}

.back-to-top:hover {
  background-color: #e07e0099;
}
}
