* { margin:0; padding:0; box-sizing:border-box; }

body {
  font-family:'Noto Sans JP', sans-serif;
  line-height:1.6;
  background: linear-gradient(to bottom, #4b2e2e, #2e1f1f);
  color:#2e2525;
  padding-left: 10px;   /* 左右の最低隙間 */
  padding-right: 10px;
  margin: 0;
}

body, html {
  overflow-x: hidden; /* 横スクロールさせない */
}

header { width:100%; height:5pt; background-color:#74152b; }

footer {
  width: 100%;
  background-color: #74152b;
  color: #f7f2e8;
  text-align: center;
  padding: 15px 0;
  font-size: 0.9em;
  margin-top: 0;
}

nav {
  width: 100%;
  background-color: #100a0a;
  padding: 0;
  margin-bottom: 30px;
}

nav ul {
  list-style: none;
  display: flex;
  justify-content: space-around;
  padding: 15px 0;
  margin: 0;
}

nav li {
  flex: 1;
  text-align: center;
}

nav a {
  display: block;
  text-decoration: none;
  color: #b68f32;
  font-weight: bold;
  transition: color 0.3s;
}

nav a:hover { color: #f0cfa0; }

.site-wrapper {
  max-width: 600px;
  margin: 0 auto;
  padding: 0 0%;
  background-color: #fdf4e3;
  box-shadow: 0 10px 30px rgba(0,0,0,0.6);
  position: relative;
  z-index:1;
  margin-bottom: 0;
}

.hero img {
  width:100%;
  height:auto;
  display:block;
}

.book-section { 
  position: relative; 
  margin-bottom:0; 
}

.book-background {
  width:100%;
  height:500px;
  background-size: cover;
  background-position:center 30%;
  filter:brightness(0.6);
}

.book-cover {
  width: 50%;
  max-width: 300px;
  display: block;
  margin: -350px auto 10px;
  border-radius: 5px;
  box-shadow: 0 10px 20px rgba(0,0,0,0.9);
  position: relative;
  z-index:2;
}

.release-label {
  display: inline-block;
  position: absolute;
  top: 20px;       
  left: 0;          
  padding: 5px 10px;
  font-weight: bold;
  z-index: 3;
  border-radius: 3px;
  text-align: left;
  background-color: #74152b;
  color: #f0c419;
  max-width: 90%;
  box-sizing: border-box;
  white-space: normal;
}

.release-label02 {
  display: inline-block;
  position: absolute;
  top: 20px;       
  left: 0;          
  padding: 5px 10px;
  font-weight: bold;
  z-index: 3;
  border-radius: 3px;
  text-align: left;
  background-color: #003169;
  color: #f0c419;
  max-width: 90%;
  box-sizing: border-box;
  white-space: normal;
}

.book-content {
  padding: 15px;
  border-radius: 0px;
  margin-top: 0px;
  color: #1f1a14;
}

.book-title { 
  font-weight:bold; 
  text-align:center; 
  margin-bottom:5px; 
  color:#b72600; 
}

.book-subtitle { font-size:0.8em; text-align:center; width:80%; margin:0 auto 10px; font-style:italic; color:#b72600; }


.book-meta { font-size:0.9em; margin-bottom:5px; text-align:center; }

.book-catch {
  display: inline-block;
  position: absolute;
  top: 60px;       
  left: 0;          
  transform: none;  
  padding: 5px 10px;
  font-weight: bold;
  z-index: 3;
  border-radius: 3px;
  text-align: left;
  background-color: #b49032;
  color: #74152b;
  max-width: 100%;
  box-sizing: border-box;
  white-space: normal;
}

.book-catch02 {
  display: inline-block;
  position: absolute;
  top: 60px;       
  left: 0;          
  transform: none;  
  padding: 5px 10px;
  font-weight: bold;
  z-index: 3;
  border-radius: 3px;
  text-align: left;
  background-color: #b49032;
  color: #003169;
  max-width: 100%;
  box-sizing: border-box;
  white-space: normal;
}

.intro-label {
  display: block;
  width: 90%;
  max-width: 400px;
  height: 60px;
  margin: 15px auto;
  text-align: center;
  font-weight: bold;
  color: #ffffff;
  background: url('img/001.png') no-repeat center center; 
  background-size: contain;
  line-height: 60px;
  box-sizing: border-box;
}

.intro-label02 {
  display: block;
  width: 90%;
  max-width: 400px;
  height: 60px;
  margin: 15px auto;
  text-align: center;
  font-weight: bold;
  color: #ffffff;
  background: url('img/003.png') no-repeat center center; 
  background-size: contain;
  line-height: 60px;
}

.title-label {
  display: flex;
  align-items: center;       /* 縦中央 */
  justify-content: center;   /* 横中央 */
  gap: 6px;                  /* アイコンと文字の間隔 */
  width: 100%;
  padding: 12px 10px;
  background-color: #3b2a2a;
  color: #b68f32;            /* navリンクと同色 */
  font-weight: bold;
  font-size: 1em;
  box-sizing: border-box;
  border-radius: 0;
  line-height: 1.4em;
  position: relative;
  margin: 0;
}

.title-label02 {
  display: flex;
  align-items: center;       /* 縦中央 */
  justify-content: center;   /* 横中央 */
  gap: 6px;                  /* アイコンと文字の間隔 */
  width: 100%;
  padding: 12px 10px;
  background-color: #162f31;
  color: #b68f32;            /* navリンクと同色 */
  font-weight: bold;
  font-size: 1em;
  box-sizing: border-box;
  border-radius: 0;
  line-height: 1.4em;
  position: relative;
  margin: 0;
}
.title-label::before {
  content: "";
  display: inline-block;       /* flex の中で横並び */
  width: 20px;
  height: 20px;
  background-image: var(--icon-url);
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
}

.title-label02::before {
  content: "";
  display: inline-block;       /* flex の中で横並び */
  width: 20px;
  height: 20px;
  background-image: var(--icon-url);
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
}

.author-name {
  font-size: 1em;
  font-style: italic;
}

.character-intro {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  padding: 15px;
  min-height: 250px;
  background-repeat: no-repeat;
  background-position: center top;
  background-size: auto; 
  margin: 0 auto;
  max-width: 600px;
  flex-wrap: wrap;
}

.character-left, .character-right {
  width: 48%;
  text-align: center;
}

.catch-short {
  display: block;
  text-align: center;
  font-weight: bold;
  font-size: 0.8em;
  color: #eb623e;
  margin-bottom: 8px;
}

.character-intro h4 {
  font-family: 'Noto Serif JP', serif;
  font-size: 0.8em;
  margin-bottom: 4px;
}

.character-intro .char-name {
  font-family: 'Noto Serif JP', serif;
  font-size: 1.0em;
  font-weight: bold;
  margin-bottom: 6px;
}

.character-intro p {
  font-family: 'Noto Serif JP', serif;
  font-size: 0.8em;
  line-height: 1.4;
}

.character-left img,
.character-right img {
  width: auto;
  height: auto;
  max-width: 100%;
  border-radius: 5px;
  margin-bottom: 8px;
  display: block;
  margin-left: auto;
  margin-right: auto;
}

.book-purchase {
  display: flex;
  justify-content: space-between;
  margin-top: 15px;
}

.book-purchase div {
  width: 48%;
  text-align: center;
  font-weight: bold;
  background-color: #b49032;
  color: #74152b;
  padding: 10px 0;
  border-radius: 5px;
}

.read-sample-btn {
  text-align: center;
  background-color: #3b2a2a;
  color: #ffffff;
  font-weight: bold;
  padding: 12px 0;
  border-radius: 6px;
  margin: 15px 0;
  cursor: pointer;
  transition: background-color 0.3s, transform 0.2s;
}

.read-sample-btn:hover {
  background-color: #2e1f1f;
  transform: translateY(-2px);
}

.divider {
  border-bottom: 1px solid #b68f32;
  margin: 20px 0;
}

.book-meta-container {
  background-color: rgba(255,255,255,0.7);
  padding: 10px;
  border-radius:5px;
  margin: 10px auto;
  max-width: 600px;
  text-align: left;
  font-size: 0.8em; 
}
.book-meta-container p { margin-bottom:4px; }

@media (max-width: 600px) {

  .site-wrapper {
    width: 100%;
    margin: 0;
  }
  .book-cover {
    margin: -350px auto 10px;
    width: 80%;
  }
  .book-title {
    font-size: 1.0em;
    line-height: 1.2;
  }
  .character-intro { flex-direction: column; max-width: 90%; min-height: auto; }
  .character-left, .character-right { width: 100%; }
  .book-meta-container { max-width: 90%; }
}
.book-format-wrapper {
  display: flex;
  flex-direction: column;
  gap: 30px;
  margin: 20px 0;
}

.format-item-wrapper.digital {
  position: relative;
  width: 100%;
  padding: 20px 10px;
  border-radius: 0;
  box-sizing: border-box;
  overflow: visible;
}

.format-item-wrapper.digital::before {
  content: "";
  position: absolute;
  top: 0;
  left: 10px;       /* 修正：padding分だけ内側に */
  right: 10px;
  bottom: 0;
  background-color: rgba(183,144,50,0.30);
  z-index: -1;
}

.format-item-wrapper {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
}

.format-img {
  width: 300px;
  height: auto;
  border-radius: 5px;
}

.format-text {
  font-weight: bold;
  color: #74152b;
  text-align: center;
}

.purchase-heading {
  font-size: 1.0em;
  font-weight: bold;
  text-align: center;
  color: #74152b;
  margin: 20px 0 10px;
  padding: 8px 12px;
  background: linear-gradient(to right, #f9e6ec, #fff783);
  border-left: 4px solid #74152b;
  border-right: 4px solid #74152b;
  border-radius: 8px;
}

.purchase-heading02 {
  font-size: 1.0em;
  font-weight: bold;
  text-align: center;
  color: #003169;
  margin: 20px 0 10px;
  padding: 8px 12px;
  background: linear-gradient(to right, #f9e6ec, #fff783);
  border-left: 4px solid #003169;
  border-right: 4px solid #003169;
  border-radius: 8px;
}

.purchase-links {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 5px;
  max-width: 600px;
  width: 100%;
  margin: 0 auto;
}

.purchase-link {
  display: block;
  width: 100%;
  text-align: center;
  padding: 12px 0;
  background-color: #ffffff;
  color: #74152b;
  text-decoration: none;
  border: 1pt solid #74152b;
  border-radius: 0;
  font-weight: bold;
  font-size: 1em;
  transition: background 0.3s ease;
}

.purchase-link02 {
  display: block;
  width: 100%;
  text-align: center;
  padding: 12px 0;
  background-color: #ffffff;
  color: #003169;
  text-decoration: none;
  border: 1pt solid #003169;
  border-radius: 0;
  font-weight: bold;
  font-size: 1em;
  transition: background 0.3s ease;
}


.purchase-link:hover {
  background-color: #ffcf4d;
}

.purchase-link02:hover {
  background-color: #c8ffa0;
}


@media (max-width: 600px) {
  .format-img { width: 300px; }
  .purchase-link { padding: 6px 8px; font-size: 0.8em; }
}

.fixed-bottom-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  height: auto;
  z-index: 9999;
  pointer-events: none;
}

.book-content[data-aos] {
  transform: none !important;
}

footer {
  width: 100%;
  background-color: #74152b;
  color: #f7f2e8;
  text-align: center;
  padding: 15px 0;
  font-size: 0.6em; /* フォントを小さく */
  margin-top: 0;
}

footer a {
  color: #f7f2e8;       /* リンク色を文字色と同じ */
  text-decoration: underline; /* 下線をつけたい場合 */
  margin: 0 5px;
}

footer a:hover {
  color: #ffcf4d;       /* ホバー時の色 */
}

.footer-link-wrapper {
  text-align: center;
  margin: 10px 0;
  font-size: 0.8em;
  padding: 0 10px; /* 画面端に隙間を作る */
  box-sizing: border-box;
}

.footer-link-bg {
  display: inline-block;
  background-color: rgba(0,0,0,0.1);
  padding: 4px 8px;
  border-radius: 4px;
}

.footer-link-bg a {
  color: #d2b97c;
  text-decoration: none;
  font-weight: bold;
  white-space: normal; /* 自動改行を許可 */
}

.footer-link-wrapper {
  text-align: center;
  margin: 10px 0;
  font-size: 0.8em;
  padding: 0 10px; /* 画面端に隙間を作る */
  box-sizing: border-box;
}

.footer-link-bg {
  display: inline-block;
  background-color: rgba(0,0,0,0.1);
  padding: 4px 8px;
  border-radius: 4px;
}

.footer-link-bg a {
  color: #d2b97c;
  text-decoration: none;
  font-weight: bold;
  white-space: normal; /* 自動改行を許可 */
}

/* レスポンシブ対応 */
@media (max-width: 480px) {
  .footer-link-wrapper {
    font-size: 0.7em;
  }

  .footer-link-bg {
    padding: 3px 6px;
  }
}

.back-to-top {
  left: 50%;                   /* 中央寄せの基準 */
  bottom: 20px;
  transform: translateX(-50%); /* 中央寄せ */
  font-size: 0.9em;
  color: #d4c17c; /* 薄い黄土色 */
  transition: opacity 0.3s;
  background: none; /* 背景なし */
  padding: 0;
}

.back-to-top:hover {
  opacity: 0.7;
}


.book-title a,
.book-subtitle a {
  color: #522020; /* リンク文字色（変更） */
  text-decoration: none; /* 下線を消す */
  border-bottom: 1px solid #d4c17c; /* 下線風の装飾 */
  transition: 0.3s;
}

.book-title a:hover,
.book-subtitle a:hover {
  color: #848600; /* ホバー時の文字色 */
  border-bottom-color: #848600; /* ホバー時の下線色 */
}
