@charset "utf-8";

.p-global-nav .c-navbar__item > a {
  font-weight: 400;
  font-size: 16px;
}

#menu-mainmenu-1 a{
  position: relative;
  display: inline-block;
  transition: .3s;
}

#menu-mainmenu-1 a::after {
  position: absolute;
  bottom: 0;
  left: 50%;
  content: '';
  width: 0;
  height: 2px;
  background-color: #31aae2;
  transition: .3s;
  transform: translateX(-50%);
}

#menu-mainmenu-1 a:hover::after{
  width: 100%;
}

.fright {
  font-size: 12px;
}

.l-footer--default .c-copyright {
  display: none;
}

.l-footer {
  display: flex;
  flex-direction: column-reverse;
  box-shadow: 0 -2px 10px #c0c0c0;
  padding: 1em 1em 0.5em;
}

.footermenu {
  margin: 1em auto;
  text-align: center;
}

.c-navbar {
  max-width: 800px;
  margin: auto;
}

.book-layout {
  display: flex;
  gap: 2rem;
  align-items: flex-start;
  margin-bottom: 2rem;
  flex-wrap: wrap; /* スマホ対応 */
}

.book-image img {
  max-width: 100%;
  height: auto;
  border-radius: 4px;
  box-shadow: 0.5px 0.5px 3px #999;
}

.book-image {
  flex: 1 1 250px;
  max-width: 300px;
}

.book-details {
  flex: 2 1 400px;
}

.book-link a {
  display: inline-block;
  margin-top: 1rem;
  padding: 0.5rem 1rem;
  background-color: #0073aa;
  color: #fff;
  text-decoration: none;
  border-radius: 10px;
}

.book-link a:hover {
  background-color: #005f8d;
}

.book-link2 a {
  display: inline-block;
  margin-top: 1rem;
  padding: 0.5rem 1rem;
  background-color: #F39800;
  color: #fff;
  text-decoration: none;
  border-radius: 10px;
}

.book-link2 a:hover {
  background-color: #F9C270;
}

.new-release-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr); /* 2カラム固定 */
  gap: 2rem;
  margin-top: 2rem;
}

.book-intro {
  margin: 1em 0;
}

.new-release-excerpt p {
  font-size: 14px;
}


.top_cat {
  background-color: #f7f7f726;
  position: absolute;
  bottom: 10px;
  left: 100px;
  width: 650px;
}

.top_cat ul {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
}

.top_cat ul li:first-child {
  margin-top: 8px;
}

.new-release-title {
  font-size: 18px;
  text-decoration: none;
}

.new-release-card {
  padding: 1rem;
  /*border: 1px solid #ddd;*/
  background: #fff;
  border-radius: 6px;
  transition: box-shadow 0.3s;
}

.new-release-card:hover {
  box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

.new-release-card img {
  max-width: 100%;
  display: block;
  margin-bottom: 1rem;
  object-fit: cover;
  width: 300px;
  height: 400px;
  border: 1px solid #c0c0c0;
  box-shadow: 0.5px 0.5px 3px #999;
}

.c-meta__item--modified, .c-meta__item--author, .c-meta__term--publish-slug-2025 {
  display: none;
}

.single-news .c-meta__item--published {
  display: none;
}

.fleft {
  padding: 0 0 20px;
}

.fleft img {
  width: 300px;
}

.c-page-header__title, .c-entry__title {
  font-size: clamp(1.3rem, 0.5rem + 1.5vw, 1.7rem);
}

.c-page-header, .c-entry__header {
  padding-top: var(--_padding3);
}

.c-entry__content {
  padding-top: var(--_padding2);
}

.l-contents__inner:first-child {
  padding-top: var(--_padding1);
}

.c-page-header__meta, .c-entry__meta {
  margin-top: var(--_margin-1);
}

.c-entry__title, .c-page-header__title {
  position: relative;
  padding: 0.5rem 0;
  border-bottom: 2px solid #9aa4b2;
}

.c-entry__title:before, .c-page-header__title:before {
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 20%;
  height: 2px;
  content: '';
  background: lightblue;
}

.c-page-top {
  right: 25px !important;
  bottom: 80px !important;
}

#page-top {
  border-radius: 50px;
  box-shadow: 0px 0px 2px #005f8d;
  background-color: rgba(26, 147, 165, 0.8);
}

/*フォーム*/
/* === CF7 Modern Responsive Form v1 === */
:root{
  --c-bg:#fff;
  --c-txt:#111;
  --c-primary:#2563eb;
  --c-muted:#6b7280;
  --c-border:#c6c6c6;
  --radius:14px;
  --gap:16px;
}
@media (prefers-color-scheme: dark){
  :root{ --c-bg:#0b0e14;
    --c-txt:#e5e7eb;
    --c-border:#273449;
    --c-muted:#9aa4b2;
  }
}
body .wpcf7 form .form-card {
  background:#fff;
  border:1px solid var(--c-border);
  border-radius:var(--radius);
  padding:clamp(16px,2.5vw,28px);
  box-shadow:0 1px 2px rgba(236, 196, 196, 0.04);
}
body .section-title {
  font-size:clamp(18px,2.2vw,20px);
  margin:8px 0 12px;
}
body .hr {
  height:1px;
  background:var(--c-border);
  margin:12px 0 8px;
}
body .form-grid {
  display:grid;
  gap:var(--gap);
  grid-template-columns:1fr;
}
body .form-grid.two {
  grid-template-columns:1fr;
}

body .f-row label {
  display:block;
  margin-top: 1em;
  margin-bottom: 6px;
  color:#222;
}
body .f-help {
  color: darkcyan;
  font-size: 0.9em;
}

body .wpcf7 input[type=text],
body .wpcf7 input[type=email],
body .wpcf7 input[type=tel],
body .wpcf7 input[type=number],
body .wpcf7 select,
body .wpcf7 textarea {
  width:100%;
  border:1px solid var(--c-border);
  border-radius:10px;
  padding:5px 10px;
  margin: 5px 0;
  font-size:16px;
  background:transparent;
  color:#222;
  outline:none;
  transition:.2s border-color,.2s box-shadow;
}
body .wpcf7 textarea {
  min-height:120px;
}
body .wpcf7 input:focus,
body .wpcf7 select:focus,
body .wpcf7 textarea:focus {
  border-color:var(--c-primary);
  box-shadow:0 0 0 4px color-mix(in oklab, var(--c-primary) 20%, transparent);
}

body .wpcf7 input[type=number] {
  width: 100px;
}

body .actions {
  display:flex;
  gap:12px;
  flex-wrap:wrap;
  justify-content:center;
  margin-top:8px;
}
body .wpcf7 .btn, body .wpcf7 .btn-secondary {
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:.5rem;
  padding:12px 18px;
  border-radius:999px;
  border:1px solid transparent;
  font-weight:700;
  cursor:pointer;
  text-decoration:none;
}
body .wpcf7 .btn {
  background:var(--c-primary); color:#fff;
}
body .wpcf7 .btn-secondary {
  background:transparent;
  color:var(--c-primary);
  border-color:var(--c-primary);
}

/* エラーメッセージの視認性 */
body .wpcf7 form .wpcf7-not-valid-tip {
  font-size:13px;
  margin-top:6px;
  color:#b91c1c;
}

body .wpcf7 form.invalid .wpcf7-response-output,
body .wpcf7 form.sent .wpcf7-response-output {
  border-radius:10px;
}

.required {
  color: red;
}
.org-code {
  top: -20px;
}

/* ラジオ・チェックの横並び＆余白 */
body .choice-group {
  display:flex; 
  flex-wrap:wrap;
  gap:10px 14px;
  margin-top:6px;
}
body .choice-group label {
  display:inline-flex;
  align-items:center;
  gap:.4em;
}
/* 郵便番号ブロック：1行固定 */
body .inline-zip p {
  display:flex;
  align-items:center;
  gap:8px;
  flex-wrap:nowrap;     /* 折り返し禁止 */
  white-space:nowrap;   /* テキストも折り返さない */
}

/* グローバルの width:100% を打ち消す */
body .inline-zip .wpcf7-form-control{
  width:auto;           /* 入力欄を内容分の幅に */
  min-width:0;
}

/* 桁数ジャストにする（nameで厳密指定） */
body .inline-zip .wpcf7-form-control[name="zip1"]{
    width: 8ch;
    text-align: center;
    letter-spacing: 1px;
}
body .inline-zip .wpcf7-form-control[name="zip2"]{
    width: 12ch;
    text-align: center;
    letter-spacing: 1px;
}

/* ハイフンの余白を少しだけ */
body .inline-zip .hyphen {
  margin:0 2px;
  opacity:.7;
}

.nengetsu select {
  width: 65% !important;
  margin: 0 5px 0 0 !important;
}

.wpcf7-previous {
    --btn--border-radius: var(--_global--border-radius);
    --btn--background-color: var(--wp--preset--color--sm-accent);
    --btn--border: none;
    --btn--color: var(--wp--preset--color--sm-text-alt);
    --btn--padding: var(--_padding-1);
    --btn--padding-vertical: calc(var(--btn--padding) * .5);
    --btn--padding-horizontal: var(--btn--padding);
    background-color: orange;
    border: var(--btn--border);
    border-radius: var(--btn--border-radius);
    color: var(--btn--color);
    display: inline-block;
    line-height: inherit;
    max-width: 100%;
    padding: var(--btn--padding-vertical) var(--btn--padding-horizontal);
    text-decoration: none;
    white-space: nowrap;
    --_transition-duration: var(--_global--transition-duration);
    --_transition-function-timing: var(--_global--transition-function-timing);
    --_transition-delay: var(--_global--transition-delay);
    transition: all var(--_transition-duration) var(--_transition-function-timing) var(--_transition-delay);
}

.f-row p {
  word-break: break-word;
}

.zan {
  font-size: 0.9em;
  color: coral;
}

.cf-turnstile {
  margin: 1em auto;
  display: table;
}

.seigo {
  border: 1px solid #273449;
  border-radius: 10px;
  padding: 2px 5px;
  display: table;
  margin-left: auto;
  margin-right: 0;
}

.seigo a {
  text-decoration: none;
}

.c-breadcrumbs li:nth-child(n+2) a {
  pointer-events: none;
  cursor: text;
}

.c-entries--text .c-entry-summary__body {
  gap: 10px;
}
.c-entry-summary__meta .c-meta {
  align-items: flex-start;
}

.tag .c-entry__header {
  display: none;
}

@media not all and (min-width: 1024px) {
    .l-header--sticky-overlay-colored-sm {
        top: 0;
    }
}

@media (width > 1024px) {
    .c-navbar {
        justify-content: space-evenly !important;
    }
}

@media (width < 768px) {
  .new-release-grid {
    grid-template-columns: 1fr; /* スマホでは1カラム */
  }
}

@media (min-width:640px) {
  body .form-grid.two {
    grid-template-columns:1fr 1fr;
  }
}

@media (width < 415px) {
    .fleft img {
      width: 250px;
    }
}