@charset "utf-8";

/* ===== MAIN LAYOUT ===== */
.main-layout {
  max-width: var(--medium-w);
  margin: 0 auto;
  padding: 32px 20px 60px;
  display: grid;
  grid-template-columns: 320px 1fr;
  gap: 48px;
  align-items: start;
}
aside{
	position: sticky;
	top:100px;
}
/* ===== ARTICLE ===== */
.l-hero {
  display: grid;
  grid-template-columns: 600px 1fr;
  gap: 30px;
  margin: 60px auto 0;
  padding: 0 20px;
  max-width: var(--medium-w);
}
.l-cats-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
}

/* Category badge */
.index-list a {
  font-size: 0.875rem;
  display: inline-block;
  padding: 2px 15px 2px;
  font-weight: 600;
}

/* Meta */
.article-meta {
  display: flex;
  align-items: center;
  gap: 16px;
  font-size: 14px;
  color: var(--text-light);
}

/* Article title */
.article-title {
  font-size: 24px;
  font-weight: 600;
  line-height: 1.6;
  margin-bottom: 16px;
}

/* Hero image */
.article-hero {
  margin-bottom: 26px;
  width: 100%;
}

/* SNS Share */
.share-bar {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 24px;
  font-size: 1.5rem;
  font-weight: 300;
  color: var(--primary);
}
.share-bar-inner {
  display: flex;
  align-items: center;
  gap: 6px;
}
.share-btn {
  width: 33px;
  cursor: pointer;
  border: none;
  background: transparent;
  transition: all 0.2s;
}
.share-btn img {
  width: 100%;
  -webkit-filter: grayscale(100%);
          filter: grayscale(100%);
}
.share-btn:hover img {
  -webkit-filter: grayscale(0);
          filter: grayscale(0);
}
.share-btn.x-btn,
.share-btn.instagram-btn {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 33px;
  height: 33px;
  background: #8c8c8c;
  border-radius: 50%;
}
.share-btn.x-btn img {
  width: 17px;
}
.share-btn.instagram-btn img {
  width: 20px;
}
.share-btn.x-btn:hover,
.share-btn.instagram-btn:hover {
  background: var(--primary);
}

/* Lead text */
.article-lead {
  margin-bottom: 32px;
  line-height: 1.875;
}
.article-lead p + p {
  margin-top: 1em;
}

/* INDEX box */
.index-box {
  position: relative;
  margin-bottom: 70px;
  padding: 50px 20px 20px 20px;
  background-image: -webkit-image-set(
    url("../img/bg_gradation.jpg") 1x,
    url("../img/bg_gradation@2x.jpg") 2x
  );
  background-image: image-set(
    url("../img/bg_gradation.jpg") 1x,
    url("../img/bg_gradation@2x.jpg") 2x
  );
  background-size: cover;
}
.index-box-title {
  position: absolute;
  top: -25px;
  left: 30px;
  font-size: 2.625rem;
  font-weight: 300;
  color: var(--primary);
}
.index-list {
  list-style: none;
  counter-reset: idx;
}
.index-list li {
  counter-increment: idx;
  display: flex;
  align-items: flex-start;
  gap: 10px;
}
.index-list li + li {
  margin-top: 8px;
}
.index-list li:last-child { border-bottom: none; }
.index-list li::before {
  content: counter(idx);
  color: var(--primary);
  font-size: 1.875rem;
  font-weight: 300;
  line-height: 1;
}
.index-list a {
  text-decoration: none;
  line-height: 1.7;
}
.index-list a:hover { text-decoration: underline; }

/* Article body */
.article-body { line-height: 1.95; }

.article-body h2 {
  font-size: 1.375rem;
  font-weight: 600;
  background: var(--primary-light);
  border-left: 4px solid var(--primary);
  margin: 50px 0 30px;
  padding: 17px 35px;
  line-height: 1.5;
}
.article-body h2:first-of-type {
  margin: 0 0 30px;
}
.article-body h3 {
  margin: 50px 0 30px;
  padding-bottom: 6px;
  font-size: 1.375rem;
  font-weight: 600;
  color: var(--primary);
  border-bottom: 3px solid var(--primary);
}
.article-body p {
  margin-bottom: 1em;
}
.article-body ul,
.article-body ol {
  margin-bottom: 1em;
  padding-left: 0;
  list-style: none;
}
.article-body ul {
  font-weight: 600;
}
.article-body ul li::before {
  content: '・';
  color: var(--primary);
  font-weight: 600;
}
.step-list { counter-reset: step; }
.step-list li {
  counter-increment: step;
}
.step-list li::before {
  content: counter(step) '. ';
}

/* Inline image */
.article-img {
  margin: 30px 0;
}
.article-img:has(+ .cta-btn-wrap) {
  margin: 30px 0 0;
}
.article-img img {
  margin: 0 auto;
  max-width: 100%;
}
.article-caption {
  margin-top: 10px;
  font-size: 0.875rem;
  line-height: 2;
  text-align: center;
}

/* CTA button */
.cta-btn-wrap {
  margin: 10px 0 20px;
  text-align: center;
}
.cta-btn {
  display: inline-block;
  background: var(--primary);
  color: #fff;
  font-size: 1.125rem;
  padding: 18px;
  max-width: 268px;
  width: 100%;
  border-radius: 6px;
  transition: background 0.2s, transform 0.15s;
  cursor: pointer;
}
.cta-btn:hover { background: #8d8cce; }
.cta-btn.large {
  padding: 20px;
  max-width: 573px;
}

/* Related Article */
.related-article {
  margin: 16px 0;
}
.related-article a {
  display: flex;
  gap: 20px;
  padding: 10px 14px;
  background: var(--primary-light);
}
.related-img {
  flex-shrink: 0;
  width: 134px;
}
.related-text {
  font-weight: 600;
}
.related-text p {
  margin: 0;
  font-size: 1rem;
  line-height: 1.625;
}
.related-text .related-title {
  color: var(--primary);
}

/* Product card */
.product-card {
  display: flex;
  align-items: center;
  border: 4px solid var(--primary);
  background: #fff;
}
.product-card + .product-card {
  margin-top: 16px;
}
.product-card .product-img {
  flex-shrink: 0;
  width: 246px;
  height: 246px;
  -o-object-fit: cover;
     object-fit: cover;
}
.product-info {
  padding: 30px 20px;
}
.article-body .product-name {
  font-size: 1.125rem;
  font-weight: 600;
  line-height: 1.7;
  margin-bottom: 10px;
}
.article-body .product-target {
  margin: 0;
  font-size: 0.875rem;
}
.product-desc {
  line-height: 1.7;
}
.product-desc strong {
  font-size: 1.125rem;
  font-weight: 600;
}

/* other */
.other-section {
  padding: 40px 20px;
  background: var(--bg-light);
}
.other-inner {
  margin: 0 auto;
  max-width: var(--medium-w);
}

/* Keywords */
.keywords-section {
  margin-bottom: 60px;
}
.keywords-list {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 8px;
}
.keyword-tag {
  font-size: 1rem;
  font-weight: 600;
  padding: 7px 20px 9px;
  border-radius: 12px;
  background: #fff;
  border: 1px solid var(--border);
  transition: background 0.2s;
  cursor: pointer;
}
.keyword-tag:hover {
  color: #fff;
  background: #B2B2B2;
}

/* ===== SIDEBAR ===== */
.sidebar-banner + .sidebar-banner {
  margin-top: 20px;
}

/* Ad banners (sidebar) */
.ad-banner {
  transition: opacity 0.2s;
}
.ad-banner:hover { opacity: 0.9; }


/* ===== RECOMMENDED SECTION (bottom) ===== */
.recommended-section {
  margin: 0 auto;
}
.section-heading {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
  margin-bottom: 30px;
  font-size: 1rem;
  font-weight: 600;
  line-height: 1;
}
.section-heading span {
  color: var(--primary);
  font-size: 1.8125rem;
  font-weight: 300;
}
.recommended-section .section-heading {
  margin-bottom: 60px;
}
.rec-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
}
.rec-card {
  cursor: pointer;
}
.rec-card-thumb {
  position: relative;
}
.rec-card-cat {
  position: absolute;
  top: -20px;
  left: 16px;
  padding: 10px 18px;
  color: #fff;
  font-size: 0.875rem;
  font-weight: 600;
  background: var(--primary);
}
.rec-card-title {
  margin: 10px 0;
  line-height: 1.375;
  font-weight: 600;
}
.rec-card-time {
  color: #4D4D4D;
}
.credits-section {
  font-size: 0.875rem;
  color: #999;
  margin: 20px auto;
  text-align: right;
}
.contents figure{
	margin:20px 0;
}
.contents .qaBox a,
.credits-section a{
	text-decoration: underline;
}
.contents .qaBox {
    display: table;
    margin-top: 40px;
}
.qaBox .circleImg {
    width: 70px;
    padding-right: 20px;
    margin-top: 0;
    display: table-cell;
    vertical-align: top;
}
.contents figure.related-img {
    margin: 0 auto !important;
  }
.qaBox .circleImg img {
    width: 70px;
    height: auto;
    border-radius: 50%;
    -ms-interpolation-mode: bicubic;
}
.qaBox .color01 {
    color: var(--primary);
    font-weight: bold;
}
.qaBox .color02 {
    color: var(--primary-midium);
    font-weight: bold;
}
.qaBox .color03 {
    color: var(--cat-styling);
    font-weight: bold;
}
.contents figcaption {
  font-size: 0.8125rem;
    margin-top: 5px;
	text-align: center;
}
.video {
  width: 100%;
  aspect-ratio: 16 / 9;
}
.video iframe {
  width: 100%;
  height: 100%;
}
.contents table{
  font-size: 1.025rem !important;
	margin-top:0;
	width: 100%;
	border-collapse: collapse;
	border: 1px solid rgb(140 140 140);
}
.contents table thead{
	background-color: #e7e3f4 !important;
}
.contents table th{
font-weight: bold;
	border: 1px solid rgb(160 160 160);
	padding: 8px 10px;
}
.contents table td{
border: 1px solid rgb(160 160 160);
	padding: 8px 10px;
}
/* ===== RESPONSIVE ===== */
@media (769px <= width < 1000px) {
  .main-layout {
    grid-template-columns: 1fr;
  }
  .l-hero {
    grid-template-columns: 1fr;
  }
  .l-sidebar-banner {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
  }
  .sidebar-banner + .sidebar-banner {
    margin-top: 0;
  }
}

@media (width < 769px) {
  /* ===== MAIN LAYOUT ===== */
  .main-layout {
    padding: 9.375vw 4.688vw;
    grid-template-columns: 1fr;
    gap: 9.375vw;
  }
  /* ===== ARTICLE ===== */
  .l-hero {
    grid-template-columns: 1fr;
    gap: 6.25vw;
    margin: 6.25vw auto 0;
    padding: 0;
  }

  /* Category badge */
  .l-cats-meta {
    margin-bottom: 3.125vw;
  }
  .cat-badge {
    padding: 1.563vw 3.906vw 1.563vw;
    font-size: 3.125vw;
  }

  /* Meta */
  .article-meta {
    gap: 2.5vw;
    font-size: 3.125vw;
  }
  .article-meta time {
    font-size: 3.2vw;
  }

  /* Article title */
  .article-title {
    font-size: 5.1vw;
    margin-bottom: 2.5vw;
  }

  /* Hero image */
  .article-hero {
    margin-bottom: 4.063vw;
  }
.article-hero-text{
    padding: 0 4.688vw;
	}
  /* SNS Share */
  .share-bar {
    gap: 3.75vw;
    font-size: 3.75vw;
  }
  .share-bar-inner {
    gap: 1.563vw;
  }
  .share-btn {
    width: 6.25vw;
  }
  .share-btn.x-btn,
  .share-btn.instagram-btn {
    width: 6.25vw;
    height: 6.25vw;
  }
  .share-btn.x-btn img {
    width: 2.656vw;
  }
  .share-btn.instagram-btn img {
    width: 3.125vw;
  }

  /* Lead text */
  .article-lead {
    margin-bottom: 5vw;
    font-size: 4.375vw;
  }
	aside{
		position: static;
	}
  /* INDEX box */
  .index-box {
    margin-bottom: 9.375vw;
    padding: 9.375vw 4.688vw;
  }
  .index-box-title {
    top: -11.875vw;
    left: 4.688vw;
    font-size: 13.75vw;
  }
  .index-list li {
    gap: 2.5vw;
  }
  .index-list li + li {
    margin-top: 3.125vw;
  }
  .index-list li::before {
    font-size: 8.125vw;
  }
  .index-list a {
    font-size: 3.75vw;
  }

  .article-body {
    font-size: 4.375vw;
  }
  .article-body h2 {
    margin: 9.375vw 0 4.688vw;
    padding: 3.125vw;
    font-size: 5vw;
    border-left: 0.938vw solid var(--primary);
  }
  .article-body h2:first-of-type {
    margin: 0 0 4.688vw;
  }
  .article-body h3 {
    margin: 9.375vw 0 4.688vw;
    padding-bottom: 2.5vw;
    font-size: 5vw;
    line-height: 1.5;
    border-bottom: 0.938vw solid var(--primary);
  }
.article-body p,
.article-body p strong{
	font-size: 3.75vw;
}
  /* Inline image */
  .article-img {
    margin: 4.688vw 0;
  }
  .article-img:has(+ .cta-btn-wrap) {
    margin: 4.688vw 0 0;
  }
  .article-caption {
    margin-top: 1.875vw;
    font-size: 3.75vw;
  }

  /* CTA button */
  .cta-btn-wrap {
    margin: 3.125vw 0 4.688vw;
  }
  .cta-btn {
    font-size: 4.375vw;
    padding: 3.125vw;
    max-width: 80%;
    border-radius: 1.25vw;
  }
  .cta-btn.large {
    padding: 3.125vw;
    max-width: 100%;
  }

  /* Related Article */
  .related-article {
    margin: 4.688vw 0;
  }
  .related-article a {
    gap: 3.125vw;
    padding: 3.125vw;
  }
  .related-img {
    margin: 0 auto;
  }
	.related-text .related-title {
    font-size: 3.57vw;
	}
  .related-text p {
    font-size: 3.125vw;
    line-height: 1.5;
  }

  /* Product card */
  .product-card {
    padding-top: 2.688vw;
    border: 0.938vw solid var(--primary);
  }
  .product-card + .product-card {
    margin-top: 4.688vw;
  }
  .product-card .product-img {
    width: 30%;
    height: auto;
  }
  .product-info {
    padding: 0vw;
  }
  .article-body .product-name {
    font-size: 4.375vw;
    margin-bottom: 1.875vw;
  }
  .article-body .product-target {
    font-size: 3.75vw;
  }
  .product-desc strong {
    font-size: 4.375vw;
  }

  /* other */
  .other-section {
    padding: 9.375vw 4.688vw;
  }

  /* Keywords */
  .keywords-section {
    margin-bottom: 9.375vw;
  }
  .keywords-list {
    gap: 1.25vw;
  }
  .keyword-tag {
    font-size: 3.125vw;
    padding: 1.25vw 3.125vw 1.563vw;
    border-radius: 1.875vw;
  }

  /* ===== SIDEBAR ===== */
	.l-sidebar-banner{
		margin:3vw 15vw;
	}
  .sidebar-banner + .sidebar-banner {
    margin-top: 4.688vw;
  }
  .sidebar-banner img {
    width: 100%;
  }

  /* ===== RECOMMENDED SECTION (bottom) ===== */
  .section-heading {
    gap: 3.125vw;
    margin-bottom: 6.25vw;
    font-size: 3.125vw;
  }
  .section-heading span {
    font-size: 6.25vw;
  }
  .recommended-section .section-heading {
    margin-bottom: 9.375vw;
  }
  .rec-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 9.375vw 3.125vw;
  }
  .rec-card-cat {
    top: -3.125vw;
    left: 1.875vw;
    padding: 1.563vw 3.125vw;
    font-size: 3.125vw;
  }
  .rec-card-title {
    margin: 1.875vw 0;
    font-size: 3.125vw;
  }
  .rec-card-time {
    font-size: 3.125vw;
  }
}