/*
Theme Name: SWELL Child
Template: swell
Version: 1.1.0
*/

/* CSS変数ブリッジ */
:root {
  --green: var(--color_main);
  --orange: #E8640C;
  --orange-dark: #c9540a;
  --r: 6px;
}

/* ---- wakaru-box ---- */
.wakaru-box {
  background: rgba(var(--color_main_rgb, 0, 56, 76), .05);
  border: 1px solid var(--color_main);
  border-radius: 4px;
  padding: 1.25em 1.5em;
  margin: 2em 0;
}
.wakaru-title {
  font-weight: 700;
  font-size: 1.05em;
  margin: 0 0 .75em;
  color: var(--color_main);
}
.wakaru-list {
  list-style: none;
  padding: 0;
  margin: 0;
  counter-reset: wk;
}
.wakaru-list li {
  counter-increment: wk;
  display: flex !important;
  align-items: flex-start;
  gap: .6em;
  padding: .25em 0 !important;
  padding-left: 0 !important;
  position: static !important;
}
.wakaru-list li::before {
  content: counter(wk) !important;
  background: var(--color_main);
  color: #fff;
  min-width: 22px;
  height: 22px;
  border-radius: 50%;
  display: flex !important;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  font-size: .8em;
  font-weight: 700;
  position: static !important;
}

/* ---- blogcard ---- */
.swl-blogcard-wrap,
.blogcard {
  margin: 2.5em 0 2em;
  position: relative;
  padding-top: 1.5em;
}
.swl-blogcard-wrap::before,
.blogcard::before {
  content: "▶ あわせて読みたい";
  position: absolute;
  top: 0; left: 16px;
  display: inline-block;
  font-size: 11px;
  font-weight: 700;
  color: #fff;
  background: var(--color_main);
  padding: 0 .75em;
  line-height: 2;
  border-radius: 2px;
  z-index: 1;
}

/* ---- check-box / ng-box ---- */
.check-box, .ng-box {
  position: relative;
  border: 1px solid;
  border-radius: 4px;
  padding: 2em 1.5em 1.5em;
  margin: 2em 0;
}
.check-box { border-color: #86dd7b; }
.ng-box { border-color: #f36060; }
.check-box::before, .ng-box::before {
  position: absolute;
  top: -.75em; left: 1em;
  width: 1.5em; height: 1.5em;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1em;
  font-weight: 700;
  color: #fff;
  line-height: 1;
}
.check-box::before { content: "✓"; background: #86dd7b; }
.ng-box::before { content: "✕"; background: #f36060; }

/* ---- 記事末尾 CTA ---- */
.article-cta {
  margin-top: 48px;
  padding: 40px 32px;
  background: var(--color_main);
  border-radius: var(--r);
  text-align: center;
}
.article-cta-lead {
  font-size: 20px;
  font-weight: 700;
  color: #fff;
  margin: 0 0 10px;
}
.article-cta-desc {
  font-size: 14px;
  color: rgba(255,255,255,.8);
  margin: 0 0 28px;
  line-height: 1.8;
}
.btn-cta {
  display: inline-block;
  background: var(--orange);
  color: #fff;
  font-size: 16px;
  font-weight: 700;
  padding: 16px 40px;
  border-radius: var(--r);
  text-decoration: none;
  transition: background .12s, transform .12s;
  box-shadow: 0 4px 16px rgba(232,100,12,.4);
}
.btn-cta:hover {
  background: var(--orange-dark);
  transform: translateY(-1px);
  color: #fff;
}
@media (max-width: 599px) {
  .article-cta { padding: 28px 20px; }
  .btn-cta { width: 100%; text-align: center; display: block; padding: 16px; }
}

/* ---- 著者ボックス ---- */
.author-box {
  margin: 2.5em 0 1em;
  padding: 1.4em 1.5em;
  background: #f8f8f8;
  border-left: 4px solid var(--color_main);
  border-radius: 6px;
  display: flex;
  gap: 1.2em;
  align-items: flex-start;
}
.author-left {
  flex-shrink: 0;
  text-align: center;
}
.author-avatar-img {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid #ddd;
  display: block;
}
.author-avatar-fallback {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  background: var(--color_main);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  font-weight: 700;
}
.author-name {
  font-size: .9rem;
  font-weight: 700;
  margin: .4em 0 .1em;
  color: #111;
}
.author-role {
  font-size: .75rem;
  color: #666;
  margin: 0;
}
.author-right { flex: 1; }
.author-bio {
  font-size: .82rem;
  color: #444;
  line-height: 1.7;
  margin: 0 0 .5em;
}
.author-link {
  font-size: .8rem;
  color: var(--color_main);
  text-decoration: underline;
}
@media (max-width: 480px) {
  .author-box { flex-direction: column; align-items: center; text-align: center; }
}

/* ---- CF7 フォームスタイル ---- */
.wpcf7-form p { margin: 0; }
.cf7-form-wrap {
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 4px 24px rgba(0,0,0,.1);
  overflow: hidden;
  margin: 1.5em 0;
}
.cf7-form-title {
  background: var(--color_main);
  color: #fff;
  font-size: 1rem;
  font-weight: 700;
  margin: 0;
  padding: .9em 1.5em;
  letter-spacing: .05em;
}
.cf7-row {
  padding: .9em 1.5em .2em;
  border-bottom: 1px solid #f0f0f0;
}
.cf7-row:last-of-type { border-bottom: none; }
.cf7-label {
  display: flex;
  align-items: center;
  gap: .5em;
  font-size: .85rem;
  font-weight: 700;
  margin-bottom: .5em;
  color: #333;
}
.cf7-req {
  background: var(--orange);
  color: #fff;
  font-size: .68rem;
  padding: .1em .45em;
  border-radius: 3px;
  font-weight: 700;
}
.cf7-opt {
  background: #aaa;
  color: #fff;
  font-size: .68rem;
  padding: .1em .45em;
  border-radius: 3px;
  font-weight: 700;
}
.wpcf7-form input[type=text],
.wpcf7-form input[type=email],
.wpcf7-form input[type=tel],
.wpcf7-form select,
.wpcf7-form textarea {
  width: 100%;
  padding: .7em 1em;
  border: 1.5px solid #e0e0e0;
  border-radius: 6px;
  font-size: .95rem;
  box-sizing: border-box;
  background: #fafafa;
  transition: border-color .2s, box-shadow .2s, background .2s;
  color: #222;
}
.wpcf7-form input[type=text]:focus,
.wpcf7-form input[type=email]:focus,
.wpcf7-form input[type=tel]:focus,
.wpcf7-form select:focus,
.wpcf7-form textarea:focus {
  border-color: var(--color_main);
  box-shadow: 0 0 0 3px rgba(4,56,76,.12);
  outline: none;
  background: #fff;
}
.wpcf7-form textarea { height: 120px; resize: vertical; line-height: 1.6; }
.wpcf7-form input[type=submit] {
  display: block;
  width: calc(100% - 3em);
  margin: 1em 1.5em 1.5em;
  background: var(--orange);
  color: #fff;
  border: none;
  padding: 1em;
  font-size: 1.05rem;
  font-weight: 700;
  border-radius: 8px;
  cursor: pointer;
  letter-spacing: .06em;
  transition: opacity .15s, transform .1s;
  box-shadow: 0 4px 16px rgba(232,100,12,.4);
}
.wpcf7-form input[type=submit]:hover { opacity: .88; }
.wpcf7-form input[type=submit]:active { transform: translateY(1px); }

/* ---- サイドバー CTA ---- */
.side-cta { background: var(--color_main); border-radius: 8px; padding: 1.5em; text-align: center; }
.side-cta__lead { font-weight: 700; font-size: .95em; color: #fff; margin: 0 0 .5em; }
.side-cta__text { font-size: .82em; line-height: 1.7; color: rgba(255,255,255,.85); margin: 0 0 1em; }
.side-cta__btn { display: block; background: var(--orange, #E8640C); color: #fff; font-weight: 700; padding: .75em 1em; border-radius: 6px; text-decoration: none; font-size: .9em; }
.side-cta__btn:hover { opacity: .88; color: #fff; }

/* ---- フッターウィジェット リンク ---- */
.w-footer .widget_text a { color: var(--color_footer_text, #fff); text-decoration: underline; opacity: .85; }
.w-footer .widget_text a:hover { opacity: 1; }


/* ---- フッター CTA ---- */
.footer-cta { text-align: center; padding: .5em 0; }
.footer-cta__text { font-size: .85em; line-height: 1.6; color: rgba(255,255,255,.85); margin: 0 0 .8em; }
.footer-cta__btn { display: inline-block; background: var(--orange, #E8640C); color: #fff; font-weight: 700; padding: .7em 1.5em; border-radius: 6px; text-decoration: none; font-size: .9em; }
.footer-cta__btn:hover { opacity: .88; color: #fff; }
