/* ================================================================
   publications.css ? 刊行物ページ専用
================================================================ */

/* ── ページヘッダー ── */
.page-hero {
  background: url('../img/publications/top.jpg') center / cover no-repeat;
  padding: 60px 24px;
  position: relative;
}
.page-hero-inner {
  max-width: 1000px;
  margin: 0 auto;
}
.page-hero-title {
  display: inline-block;
  font-size: 24px;
  font-weight: 900;
  color: var(--green);
  background: var(--white);
  padding: 10px 28px;
  border-radius: 4px;
  letter-spacing: 0.1em;
}

/* ── 背景 ── */
#publications-content {
  background-color: #f7f8f8;
}

/* ── セクション ── */
.pub-sec {
  padding: 64px 0 80px;
}
.pub-sec-inner {
  max-width: 1000px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ── セクション見出し ── */
.pub-sec-title {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 22px;
  font-weight: 900;
  color: var(--ink);
  margin-bottom: 48px;
  letter-spacing: 0.02em;
}
.pub-sec-bar {
  display: inline-block;
  width: 6px;
  height: 28px;
  background: var(--green);
  border-radius: 3px;
  flex-shrink: 0;
}

/* ================================================================
   刊行物一覧カード
================================================================ */
.pub-card-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 48px;
}
.pub-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}
.pub-card-cover {
  margin-bottom: 20px;
  border-radius: 4px;
  overflow: hidden;
  box-shadow: 0 4px 20px rgba(0,0,0,0.1);
  transition: box-shadow 0.3s ease, transform 0.3s ease;
}
.pub-card-cover:hover {
  box-shadow: 0 8px 32px rgba(0,0,0,0.15);
  transform: translateY(-2px);
}
.pub-card-cover img {
  width: 100%;
  height: auto;
  display: block;
}
.pub-card-price {
  font-size: 18px;
  font-weight: 700;
  color: var(--ink);
  margin: 0 0 20px;
}
.pub-card-btn {
  display: inline-block;
  padding: 14px 48px;
  font-size: 16px;
  font-weight: 700;
  color: var(--white);
  background: var(--green);
  border-radius: 40px;
  text-decoration: none;
  transition: opacity 0.2s ease;
}
.pub-card-btn:hover {
  opacity: 0.85;
}

/* ================================================================
   書籍詳細ページ
================================================================ */

/* ── 左右レイアウト ── */
.book-detail {
  display: flex;
  gap: 48px;
  margin-bottom: 48px;
}
.book-detail-left {
  width: 340px;
  flex-shrink: 0;
}
.book-detail-right {
  flex: 1;
  min-width: 0;
}

/* ── 表紙 ── */
.book-detail-cover {
  border-radius: 4px;
  overflow: hidden;
  box-shadow: 0 4px 20px rgba(0,0,0,0.1);
  margin-bottom: 20px;
}
.book-detail-cover img {
  width: 100%;
  height: auto;
  display: block;
}

/* ── 価格 ── */
.book-detail-price {
  font-size: 18px;
  font-weight: 700;
  color: var(--ink);
  text-align: center;
  margin: 0 0 20px;
}

/* ── 送料 ── */
.book-detail-shipping {
  font-size: 14px;
  color: var(--ink);
  line-height: 1.9;
}
.book-detail-shipping-label {
  font-weight: 700;
  margin-bottom: 4px;
}
.book-detail-shipping p {
  margin: 0;
  padding-left: 2.5em;
}
.book-detail-shipping-label + p {
  padding-left: 2.5em;
}

/* ── タイトル ── */
.book-detail-title {
  font-size: 22px;
  font-weight: 900;
  color: var(--green);
  line-height: 1.5;
  margin: 0 0 24px;
}

/* ── 説明文 ── */
.book-detail-desc {
  font-size: 15px;
  color: var(--ink);
  line-height: 2;
  margin-bottom: 28px;
}
.book-detail-desc p {
  margin: 0;
}

/* ── 目次 ── */
.book-detail-toc {
  border: 1px solid var(--gray-600);
  border-radius: 4px;
  padding: 20px 24px;
}
.book-toc-table {
  width: 100%;
  border-collapse: collapse;
}
.book-toc-table td {
  font-size: 14px;
  color: var(--ink);
  padding: 4px 8px;
  vertical-align: top;
}
.book-toc-table td:first-child {
  font-weight: 700;
  white-space: nowrap;
  width: 60px;
}
.book-toc-table tr:first-child td {
  font-weight: 900;
  padding-bottom: 12px;
}

/* ── 購入案内バナー ── */
.book-notice {
  background: var(--green);
  color: var(--white);
  text-align: center;
  padding: 24px 32px;
  border-radius: 8px;
  margin-bottom: 40px;
}
.book-notice-main {
  font-size: 16px;
  font-weight: 700;
  margin: 0 0 4px;
}
.book-notice-sub {
  font-size: 14px;
  margin: 0;
}

/* ── 購入方法 ── */
.book-purchase {
  max-width: 800px;
  margin: 0 auto 48px;
}
.book-purchase-list {
  list-style: none;
  margin: 0 0 32px;
  padding: 0;
}
.book-purchase-list li {
  font-size: 14px;
  color: var(--ink);
  line-height: 2;
  margin-bottom: 8px;
}

/* ── ダウンロードボタン ── */
.book-purchase-dl {
  display: flex;
  justify-content: center;
  gap: 24px;
  margin-top: 24px;
}
.book-dl-btn {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 24px;
  font-size: 14px;
  font-weight: 700;
  color: var(--ink);
  background: var(--white);
  border: 1px solid var(--gray-300);
  border-radius: 8px;
  text-decoration: none;
  transition: all 0.2s ease;
}
.book-dl-btn:hover {
  border-color: var(--green);
  box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}

/* ── 振込先 ── */
.book-bank {
  display: flex;
  gap: 48px;
  max-width: 800px;
  margin: 0 auto 48px;
  padding: 32px 0;
}
.book-bank-label {
  font-size: 16px;
  font-weight: 900;
  color: var(--ink);
  flex-shrink: 0;
  padding-top: 4px;
}
.book-bank-dl {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 4px 20px;
  margin: 0;
}
.book-bank-dl dt {
  font-size: 14px;
  font-weight: 700;
  color: var(--ink);
}
.book-bank-dl dd {
  font-size: 14px;
  color: var(--ink);
  margin: 0;
}

/* ── お問い合わせカード ── */
.book-contact-card {
  display: flex;
  align-items: center;
  gap: 24px;
  max-width: 700px;
  margin: 0 auto 32px;
  background: var(--white);
  border: 2px solid var(--green);
  border-radius: 40px;
  padding: 24px 36px;
}
.book-contact-left {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
}
.book-contact-name {
  display: flex;
  flex-direction: column;
}
.book-contact-label {
  font-size: 14px;
  font-weight: 900;
  color: var(--ink);
}
.book-contact-divider {
  width: 2px;
  align-self: stretch;
  background: var(--gray-200);
  border-radius: 1px;
  flex-shrink: 0;
}
.book-contact-right {
  text-align: left;
}
.book-contact-right p {
  font-size: 14px;
  color: var(--ink);
  line-height: 1.9;
  margin: 0;
}

/* ── 協会連絡先 ── */
.book-footer-contact {
  text-align: center;
  padding: 20px 0;
}
.book-footer-contact p {
  font-size: 14px;
  color: var(--ink);
  margin: 0;
  line-height: 1.9;
}

/* ================================================================
   注文フォーム
================================================================ */
.book-order {
  max-width: 800px;
  margin: 0 auto 48px;
}
.book-order-title {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 20px;
  font-weight: 900;
  color: var(--ink);
  margin-bottom: 32px;
}
.book-order-form {
  border-top: 1px solid var(--gray-200);
}
.book-form-row {
  display: flex;
  align-items: flex-start;
  border-bottom: 1px solid var(--gray-200);
  padding: 16px 0;
}
.book-form-label {
  width: 140px;
  flex-shrink: 0;
  font-size: 14px;
  font-weight: 700;
  color: var(--ink);
  padding-top: 10px;
}
.book-form-req {
  color: #d45b5b;
  margin-left: 2px;
}
.book-form-field {
  flex: 1;
  display: flex;
  align-items: center;
  gap: 8px;
}
.book-form-input {
  width: 100%;
  padding: 10px 14px;
  font-size: 14px;
  font-family: inherit;
  color: var(--ink);
  border: 1px solid var(--gray-300);
  border-radius: 4px;
  background: var(--white);
  box-sizing: border-box;
}
.book-form-input:focus {
  outline: none;
  border-color: var(--green);
}
.book-form-input--short {
  width: 160px;
  flex-shrink: 0;
}
.book-form-unit {
  font-size: 14px;
  color: var(--ink);
  flex-shrink: 0;
}
.book-form-actions {
  display: flex;
  justify-content: center;
  gap: 16px;
  margin-top: 32px;
}
.book-form-submit {
  padding: 14px 40px;
  font-size: 15px;
  font-weight: 700;
  color: var(--ink);
  background: var(--white);
  border: 2px solid var(--gray-300);
  border-radius: 4px;
  cursor: pointer;
  transition: all 0.2s ease;
}
.book-form-submit:hover {
  border-color: var(--green);
  color: var(--green);
}
.book-form-reset {
  padding: 14px 40px;
  font-size: 15px;
  font-weight: 700;
  color: var(--gray-600);
  background: var(--white);
  border: 2px solid var(--gray-300);
  border-radius: 4px;
  cursor: pointer;
  transition: all 0.2s ease;
}
.book-form-reset:hover {
  border-color: var(--gray-600);
}

/* ================================================================
   レスポンシブ
================================================================ */
@media (max-width: 900px) {
  .page-hero {
    padding: 40px 16px;
  }
  .page-hero-title {
    font-size: 20px;
    padding: 8px 20px;
  }
  .pub-sec {
    padding: 40px 0 60px;
  }
  .pub-sec-inner {
    padding: 0 16px;
  }
  .pub-sec-title {
    font-size: 18px;
    margin-bottom: 32px;
  }

  /* 一覧カード */
  .pub-card-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  .pub-card-cover {
    max-width: 320px;
  }
  .pub-card-price {
    font-size: 16px;
  }
  .pub-card-btn {
    font-size: 14px;
    padding: 12px 36px;
  }

  /* 書籍詳細 */
  .book-detail {
    flex-direction: column;
    gap: 24px;
  }
  .book-detail-left {
    width: 100%;
    max-width: 300px;
    margin: 0 auto;
  }
  .book-detail-title {
    font-size: 18px;
  }
  .book-detail-desc {
    font-size: 14px;
  }
  .book-notice {
    padding: 20px 16px;
  }
  .book-notice-main {
    font-size: 14px;
  }
  .book-notice-sub {
    font-size: 13px;
  }
  .book-purchase-list li {
    font-size: 13px;
  }
  .book-purchase-dl {
    flex-direction: column;
    align-items: center;
    gap: 12px;
  }
  .book-bank {
    flex-direction: column;
    gap: 16px;
  }
  .book-contact-card {
    flex-direction: column;
    gap: 16px;
    border-radius: 20px;
    padding: 24px 20px;
  }
  .book-contact-divider {
    width: 100%;
    height: 2px;
    align-self: auto;
  }
  .book-contact-left {
    justify-content: center;
  }
  .book-contact-right {
    text-align: center;
  }
	.book-form-row {
    flex-direction: column;
    gap: 6px;
    padding: 12px 0;
  }
  .book-form-label {
    width: auto;
    padding-top: 0;
    font-size: 13px;
  }
  .book-form-input--short {
    width: 120px;
  }
  .book-form-actions {
    flex-direction: column;
    align-items: center;
    gap: 12px;
  }
  .book-form-submit,
  .book-form-reset {
    width: 100%;
    max-width: 280px;
  }
}
