/**
 * theme.css — WordPress化にともなう追加（画像・ページ送り・CF7・本文スタイル）
 *
 * 目次
 *   1. 下層ページ見出し（詳細ページでは p）
 *   2. 書影（img／未設定時の色面）
 *   3. 書籍詳細
 *   4. 一覧：空のとき
 *   5. ページ送り（paginate_links 出力に対応）
 *   6. お知らせ
 *   7. 本文（お知らせ・固定ページ共通：クラシックエディタ）
 *   7-2. 本文（書籍の内容紹介）
 *   8. リンクボタン（共通）
 *   9. 会社概要：地図
 *   10. IAP出版について：写真
 *   11. お問い合わせ（Contact Form 7）
 */

.screen-reader-text {
  position: absolute !important;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
.site-header a:focus-visible,
.btn:focus-visible,
.btn-line:focus-visible,
a:focus-visible,
button:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

/* ===== 下層ページ見出し（詳細ページでは p） ===== */
.page-head .page-head-ttl {
  font-family: var(--serif);
  font-weight: 600;
  font-size: 34px;
  letter-spacing: 0.12em;
  line-height: 1.5;
}
@media (max-width: 760px) {
  .page-head .page-head-ttl {
    font-size: 26px;
  }
}

/* ===== 書影（img／未設定時の色面） ===== */
.cover {
  position: relative;
  overflow: hidden;
}
.cover img,
.d-cover .img img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.cover-ph {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, #efe7e2, #e2d6cf);
}
.d-cover .img {
  position: relative;
  overflow: hidden;
}

/* ===== 書籍詳細 ===== */
.d-info a.cat {
  text-decoration: none;
}
.d-info a.cat:hover {
  background: var(--accent);
  color: #fff;
}
.d-text p {
  line-height: 2.1;
}
.d-text p + p {
  margin-top: 1.2em;
}
/* 内容紹介：段落・リストの間隔とリスト（お知らせ本文と同じデザイン） */
.d-text > * + * {
  margin-top: 1.2em;
}
.d-text ul {
  list-style: none;
}
.d-text ol {
  padding-left: 1.4em;
}
.d-text li {
  line-height: 1.9;
}
.d-text li + li {
  margin-top: 0.5em;
}
.d-text ul li {
  position: relative;
  padding-left: 1.1em;
}
.d-text ul li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.8em;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--accent);
}
.d-text strong {
  font-weight: 700;
}
.prof .ph {
  overflow: hidden;
}
.prof .ph img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.prof.no-photo {
  grid-template-columns: 1fr;
}

/* ===== 一覧：空のとき ===== */
.empty {
  padding: 48px 0;
  text-align: center;
  color: var(--muted);
}

/* ===== ページ送り（paginate_links 出力に対応） ===== */
.pager .page-numbers {
  min-width: 44px;
  height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--border);
  border-radius: 4px;
  font-size: 15px;
  color: var(--text-light);
  background: #fff;
  transition: all 0.25s;
}
.pager a.page-numbers:hover {
  border-color: var(--accent);
  color: var(--accent);
}
.pager .page-numbers.current {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
}
.pager .page-numbers.dots {
  border: none;
  min-width: 24px;
  background: none;
}
.pager .prev::after,
.pager .next::after {
  content: "";
  width: 7px;
  height: 7px;
  border-top: 1.5px solid currentColor;
  border-right: 1.5px solid currentColor;
}
.pager .next::after {
  transform: rotate(45deg);
  margin-left: -3px;
}
.pager .prev::after {
  transform: rotate(-135deg);
  margin-right: -3px;
}
@media (max-width: 760px) {
  .pager .page-numbers {
    min-width: 40px;
    height: 40px;
  }
}

/* ===== お知らせ ===== */
.side-ttl-year {
  margin-top: 44px;
}
.nd-head .meta a.ncat:hover {
  opacity: 0.8;
}
.nd-body .eye-img {
  margin: 0 0 2.4em;
}
.nd-body .eye-img img {
  width: 100%;
  height: auto;
  border-radius: 6px;
  display: block;
}
.nd-body img {
  max-width: 100%;
  height: auto;
}
.nd-body a,
.pp a {
  color: var(--accent);
  border-bottom: 1px solid currentColor;
}
.nd-pn > span {
  display: block;
}

/* ===== 本文（お知らせ・固定ページ共通：クラシックエディタ） ===== */
.nd-body h3,
.pp h3 {
  font-family: var(--serif);
  font-size: 18px;
  font-weight: 500;
  letter-spacing: 0.04em;
  line-height: 1.7;
  margin-top: 2em;
}
.nd-body h3::before,
.pp h3::before {
  content: "";
  display: inline-block;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent);
  margin-right: 10px;
  vertical-align: 0.15em;
}
.nd-body strong,
.pp strong {
  font-weight: 700;
}
.marker {
  background: linear-gradient(transparent 60%, #ffd8c8 60%);
}
.nd-body ol,
.pp ol {
  padding-left: 1.4em;
}
.pp img {
  max-width: 100%;
  height: auto;
}
.alignleft {
  float: left;
  margin: 0 24px 16px 0;
}
.alignright {
  float: right;
  margin: 0 0 16px 24px;
}
.aligncenter {
  display: block;
  margin-left: auto;
  margin-right: auto;
}

/* ===== 本文（書籍の内容紹介：お知らせ本文と同じデザイン） ===== */
.d-sec .d-text h2 {
  font-family: var(--serif);
  font-size: 21px;
  font-weight: 500;
  letter-spacing: 0.05em;
  line-height: 1.6;
  margin-top: 2.6em;
  margin-bottom: 0;
  padding-left: 16px;
  border-left: 3px solid var(--accent);
}
.d-sec .d-text h3 {
  font-family: var(--serif);
  font-size: 18px;
  font-weight: 500;
  letter-spacing: 0.04em;
  line-height: 1.7;
  margin-top: 2em;
}
.d-sec .d-text h3::before {
  content: "";
  display: inline-block;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent);
  margin-right: 10px;
  vertical-align: 0.15em;
}
.d-sec .d-text > :first-child {
  margin-top: 0;
}
.d-text table {
  width: 100%;
  border-collapse: collapse;
  border-top: 1px solid var(--border);
}
.d-text th,
.d-text td {
  text-align: left;
  vertical-align: top;
  padding: 16px 8px;
  border-bottom: 1px solid var(--border-l);
  font-size: 15px;
  line-height: 1.9;
}
.d-text th {
  width: 120px;
  font-weight: 500;
  white-space: nowrap;
}
.d-text a {
  color: var(--accent);
  border-bottom: 1px solid currentColor;
}
.d-text img {
  max-width: 100%;
  height: auto;
}
.d-text::after {
  content: "";
  display: block;
  clear: both;
}
@media (max-width: 760px) {
  .d-sec .d-text h2 {
    font-size: 18px;
  }
  .d-text th {
    width: 72px;
  }
}

/* ===== リンクボタン（共通） ===== */
.btn-line {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 320px;
  padding: 18px 48px;
  border: 1px solid var(--accent);
  border-radius: 4px;
  color: var(--accent);
  font-size: 16px;
  background: #fff;
  transition:
    background 0.3s,
    color 0.3s;
}
.btn-line:hover {
  background: var(--accent);
  color: #fff;
}
.btn-line:not(.back)::after {
  content: "";
  display: inline-block;
  width: 7px;
  height: 7px;
  margin-left: 14px;
  border-top: 1.5px solid currentColor;
  border-right: 1.5px solid currentColor;
  transform: rotate(45deg);
  transition: transform 0.3s;
}
.btn-line:not(.back):hover::after {
  transform: translateX(3px) rotate(45deg);
}
.nf {
  text-align: center;
}
.nf-btns {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
  margin-top: 40px !important;
}
@media (max-width: 760px) {
  .btn-line {
    min-width: 0;
    width: 100%;
  }
}

/* ===== 会社概要：地図 ===== */
.map {
  overflow: hidden;
}
.map iframe {
  width: 100%;
  height: 100%;
  border: 0;
  display: block;
}

/* ===== IAP出版について：写真 ===== */
.group .ph {
  overflow: hidden;
}
.group .ph img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* ===== お問い合わせ（Contact Form 7） ===== */
.ct-form .wpcf7-form-control-wrap {
  display: block;
}
.ct-form .radios .wpcf7-form-control-wrap {
  display: contents;
}
.ct-form .radios .wpcf7-radio {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}
.ct-form .wpcf7-list-item {
  margin: 0;
}
.ct-form .agree .wpcf7-form-control-wrap,
.ct-form .agree .wpcf7-acceptance {
  display: inline;
}
.ct-form .agree .wpcf7-list-item-label {
  display: inline;
}
.ct-form .agree label {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  cursor: pointer;
}
.ct-form .wpcf7-not-valid-tip {
  color: #d6453d;
  font-size: 13px;
  margin-top: 6px;
}
.ct-form .wpcf7-not-valid {
  border-color: #d6453d !important;
}
.ct-form .wpcf7-spinner {
  position: absolute;
  margin: 0;
  left: 50%;
  bottom: -36px;
  transform: translateX(-50%);
}
.ct-form .actions {
  position: relative;
}
.ct-form input.btn {
  appearance: none;
  -webkit-appearance: none;
  border: none;
  cursor: pointer;
  font-family: inherit;
}
.ct-form .wpcf7-response-output {
  margin: 28px 0 0 !important;
  padding: 14px 18px !important;
  border-radius: 4px;
  font-size: 14px;
  text-align: center;
}
.ct-form .wpcf7 form.sent .wpcf7-response-output {
  display: none;
}
.ct-form .js-input[hidden],
.ct-form .js-confirm[hidden] {
  display: none;
}
.ct-form .js-confirm .actions {
  margin-top: 44px;
}
.steps li[aria-current="step"] {
  color: var(--accent);
}
@media (max-width: 760px) {
  .ct-form .radios .wpcf7-radio {
    flex-direction: column;
  }
}

/* ===== メニュー（表示中のページ） ===== */
.gnav a[aria-current="page"]:not(.btn) {
  color: var(--accent);
}
.footer-nav h4 a {
  color: inherit;
}
.footer-nav a[aria-current="page"] {
  color: var(--accent);
}
