@import url('https://fonts.googleapis.com/css2?family=M+PLUS+1p:wght@100;300;400;500;700;800;900&display=swap');
html{font-size: clamp(8px, 0.694vw, 10px);}
#logo {width: 12%;height: auto;}
#pkm_head {margin-bottom: 0;}

body::before {
  content: "";
  display: block;
  position: fixed;
  top: 0;
  left: 0;
  z-index: -1;
  width: 100%;
  height: 100vh;
  background: url(../img/bg.webp) top center / cover no-repeat;
}
.outer{
  font-family: 'M PLUS 1p', sans-serif;
  color: #000;
}
.inner {max-width:980px;width:90%;margin: 0 auto;}

.release {padding:0 0 1em;}
.release img{margin:0 auto;width:100%;}

.htext {padding:1.2em 0;width:100%;}
.htext p{font-size: clamp(16px, 1.5vw, 24px);color: white;text-align: center;font-weight: bold;line-height: 1.7;font-family: "Noto Sans JP";}

.information{
  background-color: rgba(0, 0, 0, 0.9);
  padding: 2em 3em;
  border-top: solid 8px #E60013;
  border-bottom: solid 8px #E60013;
}
.top{
  width: 100%;
}

.information ul{
  display: flex;
  flex-wrap: wrap;
  gap: 1.2em;
  margin-top: 2em;
}

.information ul li{
  width: calc((100% - 2.4em) / 3);
  box-sizing: border-box;}

.information ul li p{
  font-size: 1.1em;
  color: white;
  font-family: "Noto Sans JP";
  text-align: center;
  font-weight: bold;
  padding: 0.5em 0;
  margin-top: 0.5em;
  width: 100%;
  background-color: #9C000D;
 }
 .information ul li:nth-child(2) p{
  background-color: #398800;
 }
 .information ul li:nth-child(3) p{
  background-color: #002FBD;
 }

.info-lists {
  display: flex;
  justify-content: space-between;
  gap: clamp(1rem, 3vw, 4rem);
  color: #fff;
  font-family: "Noto Sans JP", sans-serif;
  font-size: 1.6rem;
  margin: 1.2em 0;
}

.info-left,
.info-right {
  word-break: break-all;
  min-width: 0;
}

.info-left,
.isbn-list {
  display: grid;
  grid-template-columns: max-content 1fr; 
  row-gap: 0.4rem;
  column-gap: 0.5em;
  margin: 0;
}

.isbn-title{
  margin-bottom: 0.5em;
}

dt, dd {
  margin: 0;
  padding: 0;
  line-height: 1.5;
}

.info-left dt {
  text-align-last: justify;
  text-justify: inter-character;
}

.info-left dt::after,
.isbn-list dt::after {
  content: "：";
}

.title-with-bar {
  color: #E60013;
  font-size: 2.2rem;
  font-weight: bold;
  line-height: 1.4;
  margin-bottom: 1.5rem; 
  font-family: "Noto Sans JP";
  display: flex;
  align-items: center; 
  gap: 0.8rem; 
}

.title-with-bar::before {
  content: "";
  display: block;
  width: 6px;
  height: 2.8em; 
  background-color: #E60013;
  flex-shrink: 0; 
}
.title-with-bar > span {
  display: block;
}

.headtext p {
  color: #FFFFFF;
  font-size: 1.6rem;
  line-height: 1.8;
  margin-bottom: 3rem;
  text-align: left;
  font-family: "Noto Sans JP";
}

.headtext p:last-child {
  margin-bottom: 0;
}

/*タブメニュー*/
.tab-menu {
  display: flex;
  gap: 1.2em;
  list-style: none;
  padding: 0;
  margin:1em 0;
}

.tab-btn {
  width: 33.333%;
  text-align: center;
  font-size: 2em;
  font-family: "Noto Sans JP";
  font-weight: bold;
  color: #fff;
  padding: 0.8em 0;
  cursor: pointer; 
  opacity: 0.5;
  transition: opacity 0.2s, filter 0.2s;
}

.tab-btn.red { background-color: #9C000D; }
.tab-btn.green { background-color: #398800; }
.tab-btn.blue { background-color: #002FBD; }

@media (hover: hover) {
  
  .tab-btn:hover {
    opacity: 0.85;
    filter: brightness(1.2); 
  }
}

/* ----------------------------------------------------
   ★ JSで選択中の状態（is-active）
---------------------------------------------------- */
.tab-btn.is-active {
  opacity: 1;
  filter: brightness(1);
}

/* --- ★切り替え用のテーマカラー設定 --- */
.booktitle.is-book1 { --theme-color: #9C000D; } 
.booktitle.is-book2 { --theme-color: #398800; } 
.booktitle.is-book3 { --theme-color: #002FBD; }




/*セクション設定*/
.booktitle {
  background-color: rgba(0, 0, 0, 0.9);
  border-top: 8px solid var(--theme-color);
  border-bottom: 8px solid var(--theme-color);
  padding:0 2em 2em;
  transition: border-color 0.3s; 
}

/* タブコンテンツ表示制御 */
.tab-content {
  display: none;
}
.tab-content.is-active {
  display: block;
}

/*タイトル*/
.book-header{
  width:60%;
  margin: 0 auto;
}

/* タイトルリスト */
.title-list {
  display: flex;
  flex-wrap: wrap;
  gap: 2em 1.5em;
  list-style: none;
  padding: 0;
  margin: 2em 0 3em;
}

.title-list li {
  width: calc((100% - 3em) / 3);
  text-align: center;
  box-sizing: border-box;
}

.title-list .thumb img {
  width: 100%;
  height: auto;
  display: block;
}

.title-list p {
  color: #fff;
  font-size: 1em;
  font-weight: bold;
  margin-top: 0.8rem;
  line-height: 1.4;
  font-family: "Noto Sans JP";
  text-align: center;
}

/* 構成内容 */
.structure-title {
  display: flex;
  align-items: center;
  color: #fff;
  font-size: 0.9em;
  font-weight: normal;
  text-align: center;
  margin: 0 0 1.5rem 0;
  font-family: "Noto Sans JP";
}

.structure-title::before,
.structure-title::after {
  content: "";
  flex: 1;
  height: 2.5px;
  background-color: var(--theme-color);
  transition: background-color 0.3s;
}

.structure-title::before { margin-right: 1.5rem; }
.structure-title::after  { margin-left: 1.5rem; }

.structure-text {
  color: #fff;
  font-size: 0.8em;
  text-align: center;
  line-height: 1.6;
  font-family: "Noto Sans JP";
}


.footer{padding: 2em;}
.footer div.inner p{font-size: 0.8em;text-align: center;line-height: 1.8;color: white;}

.pc {display: block;}
.sp {display: none;}


/*smartphone*****************************************************************************************************************************************************************************************/
@media screen and (max-width: 768px) {

.pc {display: none;}
.sp {display: block;}

.sp_head #pkm_head >div ul li a {font-size: 1.2rem;}
.sp_head #pkm_head >div ul li::before {font-size: 1.2rem;}
#pkm_head >div h2 {font-family: 'M PLUS 1p', sans-serif;}

.outer{font-size: 1.55vw;overflow: hidden;}
.inner {width: 90%;}

.htext p{
  font-size: clamp(1.5rem, 5vw, 2em);
}

.information ul{
  display: flex;
 flex-direction: column;
  gap: 2.3em;
  margin-top: 2em;
}

.information ul li{
  width:70%;
  margin: 0 auto;
  box-sizing: border-box;}

.information ul li p{
  font-size: clamp(1.5rem, 5vw, 2em);
 }

 .information{
  border-top: solid 5px #E60013;
  border-bottom: solid 5px #E60013;
}

.info-lists{
  flex-direction: column;
  font-size: clamp(10px, 2.9vw, 14px);
}

.title-with-bar{
  font-size: clamp(11px, 3.38vw, 16px);;
}

br.sp-none{
  display: none;
}

.headtext p {
 font-size: clamp(10px, 2.9vw, 14px);
}

.headtext p:last-child {
  margin-bottom: 1em;
}

.booktitle {
  border-top: 5px solid var(--theme-color);
  border-bottom: 5px solid var(--theme-color);
}

.title-list {
    gap: 1.5em 1em;
    margin: 1.5em 0 2em;
  }

  .title-list li {
    width: calc((100% - 1em) / 2);
  }

  .title-list p {font-size: clamp(10px, 2.3vw, 14px);}

.structure-title::before,
.structure-title::after {
  height: 1.7px;
}

.structure-title {
  font-size: clamp(10px, 2.3vw, 14px);
}

.structure-text {
  font-size: clamp(10px, 2.3vw, 14px);
}

.top{
margin-top: 3em;
}

.book-header {
    width: 70%;
}

    .title-list {
        gap: 2em 1em;
        margin: 2em 0 2em;
    }
 
footer ul#footer_menu1 li{margin-bottom: 0.5em;}
#footer_copy{line-height: 1.3;}
.footer div.inner p{font-size: 1.3em;}
}




