/* body {
    border: 1px solid #F00;
} */

.article-wrapper {
  font-family: 'Helvetica Neue', Arial, sans-serif;
  font-size: 16px;
  line-height: 1.8;
  color: #333;
  padding: 0 0 20px 0;
  max-width: 960px;
  margin: auto;
  background-color: transparent;
}
.article-wrapper .h2-with-thumb {
  display: flex;
  align-items: center;
  gap: 5px;
  margin-bottom: 20px;
}
.article-wrapper .h2-float-thumb {
  width: 100px;
  height: auto;
  border-radius: 12px;
  object-fit: cover;
  box-shadow: 0 0 10px rgba(0,0,0,0.1);
  border: 1px solid #ccc;
}
.article-wrapper h2 {
  font-size: 1.5em;
  color: #6589B2;
  border-bottom: 2px solid #6589B2;
  padding-bottom: 5px;
  margin: 0;
  line-height: 1.4;
  flex: 1;
}
.article-wrapper h3.number {
  position: relative;
  padding: 0.3em 1em 0.3em 0.5em;
  margin-top: 50px;
  margin-bottom: 20px;
  color: #333;
  font-size: 1.2em;
  font-weight: bold;
  border-left: 8px solid #3B95E6;
  border-bottom: 2px solid #3B95E6;
  background-color: transparent;
  z-index: 0;
  overflow: visible;
  line-height: 1.4;
}
.article-wrapper h3.number::before {
  content: attr(data-number);
  position: absolute;
  bottom: 0;
  left: 0.5;
  font-size: 3.5em;
  line-height: 1;
  color: #d9f4ff;
  font-weight: bold;
  z-index: -1;
  pointer-events: none;
}
.article-wrapper h4 {
  position: relative;
  padding: 0.8rem 1.5rem 0.8rem 3.5rem;
  background-color: #5DAD9F;
  color: #fff;
  font-size: 1.1em;
  font-weight: bold;
  border-radius: 8px;
  margin-top: 40px;
  margin-bottom: 20px;
  border: none;
}
.article-wrapper h4::before {
  font-family: "Font Awesome 6 Free";
  content: "\f303";
  font-weight: 900;
  position: absolute;
  left: 1rem;
  top: 50%;
  transform: translateY(-50%);
  font-size: 1em;
  color: #fff;
}
.article-wrapper strong {
  color: #d9534f;
  font-weight: bold;
}
.article-wrapper p {
  margin-bottom: 20px;
}
.article-wrapper ul {
  margin: 15px 0 25px 20px;
  padding-left: 0;
  list-style: none;
}
.article-wrapper ul li {
  position: relative;
  padding-left: 30px;
  margin-bottom: 10px;
}
.article-wrapper ul li::before {
  font-family: "Font Awesome 6 Free";
  content: "\f058";
  font-weight: 900;
  color: #28a745;
  position: absolute;
  left: 0;
  top: 2px;
}
.article-wrapper img {
  display: block;
  max-width: 100%;
  height: auto;
  margin: 20px auto;
  border: 1px solid #ccc;
  box-shadow: 0 0 10px rgba(0,0,0,0.1);
  border-radius: 8px;
}
.article-wrapper .case-box {
  position: relative;
  padding: 1.5rem 2rem;
  text-align: left;
  border: 3px solid #000;
  border-radius: 0 10px 10px 10px;
  background-color: #fff;
  margin-top: 40px;
}
.article-wrapper .case-box::before {
  font-family: "Font Awesome 6 Free";
  content: "\f0a1  今回のケース";
  font-weight: 900;
  font-size: 1.2rem;
  position: absolute;
  top: -24px;
  left: -3px;
  height: 24px;
  padding: 0 1em;
  color: #fff;
  border-radius: 10px 10px 0 0;
  background: #000;
  line-height: 24px;
  display: flex;
  align-items: center;
}
.article-wrapper .case-box .box-content {
  padding: 0;
}
.article-wrapper .case-box .label {
  display: inline-block;
  font-weight: bold;
  color: #000;
  background-color: #eee;
  padding: 0.1em 0.5em;
  border-radius: 4px;
  margin-right: 0.5em;
  font-size: 0.95em;
}
.article-wrapper .case-box ul {
  list-style: none;
  padding-left: 0;
  margin: 0;
}
.article-wrapper .case-box li {
  position: relative;
  padding-left: 0em;
  margin-bottom: 10px;
  font-weight: 500;
  color: #333;
}
.article-wrapper .case-box li::before {
  content: none;
}
.article-wrapper .marker-yellow {
  background: linear-gradient(transparent 60%, #fff89a 60%);
  font-weight: bold;
}
.article-wrapper .underline {
  text-decoration: underline;
  font-weight: bold;
}
.article-wrapper .strong-red {
  color: #d9534f;
  font-weight: bold;
}
.profile-box {
  border: 1px solid #ddd;
  border-radius: 8px;
  padding: 16px 16px 6px 16px;
  background-color: #f9f9f9;
  margin-top: 30px;
  font-family: "Segoe UI", sans-serif;
}
.profile-heading {
  font-weight: bold;
  font-size: 1.1em;
  margin-bottom: 12px;
  color: #333;
  border-left: 4px solid #3B95E6;
  padding-left: 8px;
}
.profile-heading i {
  margin-right: 6px;
  color: #3B95E6;
}
.profile-content {
  display: flex;
  align-items: flex-start;
  gap: 24px;
  flex-wrap: wrap;
}
.profile-image img {
  width: 150px;
  height: 150px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid #ccc;
}
.profile-text {
  flex: 1;
  min-width: 200px;
}
.profile-name-title {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 10px;
}
.profile-name,
.profile-title {
  margin: 0;
  font-size: 1em;
  color: #222;
  display: flex;
  align-items: center;
}
.profile-icon {
  color: #3B95E6;
  margin-right: 6px;
}
.profile-description {
  font-size: 0.95em;
  line-height: 1.6;
  margin: 0 !important;
  padding: 0 !important;
  color: #444;
}

@media screen and (max-width: 600px) {
  .article-wrapper {
    font-size: 15px;
    padding: 0 0 10px 0;
  }
  .article-wrapper h1 {
    font-size: 1.6em;
  }
  .article-wrapper h2 {
    font-size: 1.3em;
  }
  .article-wrapper .h2-float-thumb {
    float: left;
    width: 75px;
    margin: 0 10px 10px 0;
  }
  .article-wrapper .h2-with-thumb {
    gap: 1px;
  }
  .article-wrapper h3.number {
    font-size: 1.2em;
    padding: 0.3em 1em 0.3em 0.5em;
    line-height: 1.4;
  }
  .article-wrapper h3.number::before {
    font-size: 4em;
  }
  .profile-content {
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 0 !important;
  }
  .profile-image img {
    margin-bottom: 2px !important;
  }
  .profile-text {
    margin-top: 0 !important;
  }
  .profile-name-title {
    flex-direction: column;
    gap: 4px;
  }
  .profile-name,
  .profile-title,
  .profile-description {
    text-align: center;
    margin: 0 !important;
  }
}
