/*
Theme Name: Stop Ransomware
Theme URI: https://example.com/
Author: Codex
Description: Static design converted into a WordPress theme scaffold for stopransomware.jp.
Version: 0.1.0
Requires at least: 6.0
Tested up to: 6.8
Requires PHP: 7.4
Text Domain: stopransomware
*/

.article-body-ph h2[id] {
  scroll-margin-top: 120px;
}

.blog-index-page .container {
  display: block;
}

.blog-filter-section,
.editorial-section,
.article-list-section-wide {
  margin-top: 64px;
}

.list-category-top,
.list-tag-top {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 24px;
}

.list-tag-top .tag,
.list-tag-top .tag.active,
.writer-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 34px;
  padding: 6px 14px;
  border: 1px solid #8f95ef;
  color: #6a73d8;
  font-size: 1.4rem;
  line-height: 1.2;
  background: #fff;
}

.writer-badge-large {
  margin-top: 10px;
}

.editorial-link-list {
  display: flex;
  flex-wrap: wrap;
  gap: 18px 16px;
  margin-top: 22px;
}

.editorial-link-card {
  display: flex;
  flex-direction: column;
  justify-content: center;
  width: calc(25% - 12px);
  min-height: 60px;
  min-width: 0;
  padding: 10px 16px 9px;
  border: 1px solid #4a74ff;
  background: #fff;
  text-decoration: none;
  box-sizing: border-box;
}

.editorial-link-name {
  color: #2450d7;
  font-size: 1.8rem;
  font-weight: 700;
  line-height: 1.25;
}

.editorial-link-title {
  margin-top: 3px;
  color: #111;
  font-size: 1.1rem;
  line-height: 1.35;
}

.editorial-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 32px 56px;
  margin-top: 24px;
}

.editorial-card {
  display: grid;
  grid-template-columns: 132px 1fr;
  gap: 24px;
  align-items: center;
  text-decoration: none;
}

.editorial-avatar {
  width: 132px;
  height: 132px;
  border-radius: 50%;
  background: #d9d9d9;
}

.editorial-name {
  margin: 0 0 8px;
  color: #4c5ac7;
  font-size: 3.2rem;
  line-height: 1.2;
}

.editorial-title {
  margin: 0;
  color: #222;
  font-size: 1.8rem;
  line-height: 1.7;
}

.article-list-section-wide .article-grid {
  margin-top: 24px;
}

.writer-profile-section {
  margin-bottom: 72px;
}

.writer-profile-card {
  display: grid;
  grid-template-columns: 140px minmax(200px, 280px) minmax(0, 1fr);
  gap: 28px;
  align-items: center;
  margin-top: 24px;
}

.writer-profile-avatar {
  width: 140px;
  height: 140px;
  border-radius: 50%;
  overflow: hidden;
  background: #d9d9d9;
}

.writer-profile-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.writer-profile-name {
  margin: 0 0 10px;
  color: #4c5ac7;
  font-size: 3.2rem;
  line-height: 1.2;
}

.writer-profile-title,
.writer-profile-description {
  margin: 0;
  color: #222;
  font-size: 1.8rem;
  line-height: 1.7;
}

.writer-profile-body {
  display: grid;
  gap: 12px;
}

.writer-profile-link {
  color: #111;
  font-size: 1.8rem;
  font-weight: 700;
  line-height: 1.6;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.article-card {
  display: block;
}

.article-card-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
}

.article-author-inline {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-top: 22px;
}

.article-author-inline .article-author-avatar {
  width: 70px;
  height: 70px;
  border-radius: 50%;
  background: #d9d9d9;
  flex: 0 0 auto;
}

.article-author-inline .article-author-name {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
}

.contact-form-placeholder,
.thanks-card {
  margin-top: 24px;
  padding: 32px;
  border: 1px solid #d0d0d0;
  background: #fff;
}

.contact-form-placeholder code {
  word-break: break-all;
}

.stopransomware-contact-flow .wpcf7 {
  margin-top: 0;
}

.stopransomware-contact-flow .wpcf7 form {
  display: block;
}

.stopransomware-contact-flow .wpcf7 .wpcf7-spinner {
  display: block;
  margin: 16px auto 0;
}

.stopransomware-contact-flow .wpcf7 .wpcf7-not-valid-tip {
  margin-top: 8px;
  color: #c62828;
  font-size: 1.3rem;
}

.stopransomware-contact-flow .wpcf7 form .wpcf7-response-output {
  margin: 24px 0 0;
  padding: 12px 16px;
  border-width: 1px;
  font-size: 1.4rem;
}

.stopransomware-contact-flow .wpcf7 .wpcf7-list-item {
  margin: 0;
}

.stopransomware-contact-flow .wpcf7 .wpcf7-form-control-wrap {
  display: block;
}

.stopransomware-contact-flow .list-radio-ph {
  border: 0;
  padding: 0;
  margin: 0;
}

.stopransomware-contact-flow .list-radio-ph legend {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.stopransomware-contact-flow .list-radio-ph > p {
  margin: 0;
}

.stopransomware-contact-flow .wpcf7-radio {
  display: grid;
  gap: 10px;
}

.stopransomware-contact-flow .wpcf7-radio .wpcf7-list-item {
  display: block;
}

.stopransomware-contact-flow .wpcf7-radio .wpcf7-list-item label {
  display: grid;
  grid-template-columns: 24px minmax(0, 1fr);
  gap: 10px;
  align-items: start;
  cursor: pointer;
}

.stopransomware-contact-flow .wpcf7-radio input[type="radio"] {
  width: 14px;
  height: 14px;
  margin: 8px 0 0;
  accent-color: #303ab1;
}

.stopransomware-contact-flow .wpcf7-radio .wpcf7-list-item-label {
  display: block;
  color: #111;
  font-size: 1.6rem;
  line-height: 1.6;
}

.stopransomware-contact-flow .wpcf7-radio .wpcf7-list-item-label::before {
  display: block;
  color: #111;
  font-weight: 400;
}

.stopransomware-contact-flow .wpcf7-radio .wpcf7-list-item:nth-child(1) .wpcf7-list-item-label::after,
.stopransomware-contact-flow .wpcf7-radio .wpcf7-list-item:nth-child(2) .wpcf7-list-item-label::after {
  display: block;
  margin-top: 2px;
  color: #979393;
  font-size: 1.4rem;
  line-height: 1.6;
}

.stopransomware-contact-flow .wpcf7-radio .wpcf7-list-item:nth-child(1) .wpcf7-list-item-label::after {
  content: "対策の進め方・自社リスクの整理など";
}

.stopransomware-contact-flow .wpcf7-radio .wpcf7-list-item:nth-child(2) .wpcf7-list-item-label::after {
  content: "WhiteDefenderなど製品詳細・見積もりなど";
}

.stopransomware-contact-flow .form-check-row {
  gap: 10px;
  align-items: flex-start;
}

.stopransomware-contact-flow .form-check-row > p {
  margin: 0;
}

.stopransomware-contact-flow .wpcf7-acceptance {
  display: block;
}

.stopransomware-contact-flow .wpcf7-acceptance .wpcf7-list-item {
  display: block;
}

.stopransomware-contact-flow .wpcf7-acceptance .wpcf7-list-item label {
  display: grid;
  grid-template-columns: 18px minmax(0, 1fr);
  gap: 8px;
  align-items: start;
  cursor: pointer;
}

.stopransomware-contact-flow .wpcf7-acceptance input[type="checkbox"] {
  width: 14px;
  height: 14px;
  margin: 4px 0 0;
  accent-color: #303ab1;
}

.stopransomware-contact-flow .wpcf7-acceptance .wpcf7-list-item-label {
  display: block;
  color: #111;
  font-size: 1.5rem;
  line-height: 1.6;
}

.stopransomware-contact-flow .wpcf7-acceptance .wpcf7-list-item-label a {
  color: inherit;
}

.stopransomware-contact-flow .contact-btn .btn-ph input {
  padding: 0 24px;
  color: inherit;
  font-size: 1.6rem;
  font-weight: 700;
}

.stopransomware-contact-flow .contact-btn.disabled .btn-ph input {
  cursor: default;
  opacity: 1;
}

.stopransomware-contact-flow .form-dt {
  width: 32rem;
  padding: 1.5rem 2rem 1.5rem 3.8rem;
}

.stopransomware-contact-flow .form-dt .form-heading {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 8px;
}

.stopransomware-contact-flow .form-dt .form-title {
  flex: 1 1 auto;
  min-width: 0;
  line-height: 1.5;
  font-size: 1.6rem;
  color: #111;
}

.stopransomware-contact-flow .form-dt .form-title p,
.stopransomware-contact-flow .form-dt .form-title label,
.stopransomware-contact-flow .form-dt .form-title span {
  margin: 0;
  display: block;
  white-space: nowrap;
  word-break: keep-all;
  overflow-wrap: break-word;
  border: 0;
  background: transparent;
  color: inherit;
  width: auto;
  height: auto;
  align-items: initial;
  justify-content: initial;
  font-size: inherit;
}

.stopransomware-contact-flow .form-dt .form-heading > .form-label-hissu,
.stopransomware-contact-flow .form-dt .form-heading > .form-label-any,
.stopransomware-contact-flow .form-dt .form-heading > p {
  flex: 0 0 auto;
}

.stopransomware-contact-flow .form-dt .form-heading > .form-label-hissu,
.stopransomware-contact-flow .form-dt .form-heading > .form-label-any {
  width: 6rem;
}

.stopransomware-contact-flow .page-contact.is-confirm-view .wpcf7cp-btns {
  display: flex;
  flex-wrap: wrap;
  gap: 16px 20px;
  align-items: center;
  margin-top: 32px;
}

.stopransomware-contact-flow .page-contact.is-confirm-view .wpcf7cp-btns .wpcf7-form-control,
.stopransomware-contact-flow .page-contact.is-confirm-view .wpcf7cp-btns button {
  min-width: 22rem;
  height: 6.4rem;
  padding: 0 3.2rem;
  border: 0.1rem solid var(--co-blue) !important;
  background: var(--co-blue) !important;
  background-color: var(--co-blue) !important;
  color: #fff !important;
  font-size: 1.8rem;
  font-weight: 700;
  line-height: 1;
  cursor: pointer;
  transition: 0.3s all;
  appearance: none;
  -webkit-appearance: none;
  border-radius: 0.2rem;
  box-shadow: none;
}

.stopransomware-contact-flow .page-contact.is-confirm-view .wpcf7cp-btns .wpcf7cp-cfm-edit-btn {
  background: #fff !important;
  background-color: #fff !important;
  color: var(--co-blue) !important;
}

@media only screen and (min-width: 768px) {
  .stopransomware-contact-flow .page-contact.is-confirm-view .wpcf7cp-btns .wpcf7-form-control:hover,
  .stopransomware-contact-flow .page-contact.is-confirm-view .wpcf7cp-btns button:hover {
    background: #fff !important;
    background-color: #fff !important;
    color: var(--co-blue) !important;
  }

  .stopransomware-contact-flow .page-contact.is-confirm-view .wpcf7cp-btns .wpcf7cp-cfm-edit-btn:hover {
    background: var(--co-blue) !important;
    background-color: var(--co-blue) !important;
    color: #fff !important;
  }
}

.page-contact .step-bar .step-item.is-complete,
.page-contact .step-bar .step-item.is-complete .step-num {
  color: #303ab1;
}

.page-contact .step-bar .step-item.is-complete .step-num {
  background: #dfe3ff;
  border-color: #303ab1;
}

.thanks-card {
  text-align: center;
}

.thanks-title {
  margin-bottom: 16px;
  color: #303ab1;
  font-size: 2.8rem;
  font-weight: 700;
}

.thanks-actions {
  margin-top: 32px;
}

@media (max-width: 900px) {
  .editorial-grid {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .editorial-link-list {
    gap: 12px;
  }

  .editorial-link-card {
    width: calc(50% - 6px);
    min-height: 56px;
    padding: 10px 12px 9px;
  }

  .editorial-link-name {
    font-size: 1.6rem;
  }

  .editorial-link-title {
    font-size: 1rem;
  }

  .editorial-card {
    grid-template-columns: 96px 1fr;
    gap: 18px;
  }

  .editorial-avatar {
    width: 96px;
    height: 96px;
  }

  .editorial-name {
    font-size: 2.4rem;
  }

  .writer-profile-card {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .writer-profile-avatar {
    width: 120px;
    height: 120px;
  }

  .writer-profile-name {
    font-size: 2.6rem;
  }

  .contact-form-placeholder,
  .thanks-card {
    padding: 24px 16px;
  }

  .stopransomware-contact-flow .form-dt {
    width: 100%;
    padding: 1.5rem;
  }

  .stopransomware-contact-flow .form-dt .form-heading {
    gap: 10px;
  }

  .stopransomware-contact-flow .form-dt .form-title p,
  .stopransomware-contact-flow .form-dt .form-title label,
  .stopransomware-contact-flow .form-dt .form-title span {
    white-space: normal;
  }

  .stopransomware-contact-flow .page-contact.is-confirm-view .wpcf7cp-btns {
    gap: 12px;
  }

  .stopransomware-contact-flow .page-contact.is-confirm-view .wpcf7cp-btns .wpcf7-form-control,
  .stopransomware-contact-flow .page-contact.is-confirm-view .wpcf7cp-btns button {
    width: 100%;
    min-width: 0;
    font-size: 1.6rem;
  }

  .stopransomware-contact-flow .wpcf7-radio .wpcf7-list-item label,
  .stopransomware-contact-flow .wpcf7-acceptance .wpcf7-list-item label {
    gap: 8px;
  }

  .stopransomware-contact-flow .wpcf7-radio .wpcf7-list-item-label,
  .stopransomware-contact-flow .wpcf7-acceptance .wpcf7-list-item-label {
    font-size: 1.4rem;
  }

  .stopransomware-contact-flow .wpcf7-radio .wpcf7-list-item:nth-child(1) .wpcf7-list-item-label::after,
  .stopransomware-contact-flow .wpcf7-radio .wpcf7-list-item:nth-child(2) .wpcf7-list-item-label::after {
    font-size: 1.2rem;
  }

  .thanks-title {
    font-size: 2.2rem;
  }
}
