﻿a:focus:not(:focus-visible) {
  outline: none;
}

a:focus-visible {
  outline: 2px solid #0066cc;
  outline-offset: 2px;
}

.footerbody--info li a {
  color: #fff;
}

.kvArea {
  margin-bottom: 80px;
}

.kv-image {
  margin-bottom: 10px;
}

.page-contents {
  min-height: 600px;
  margin-bottom: 150px;
  padding-bottom: 0;
  margin-top: 30px;
}

.page-container {
  max-width: 950px;
  width: 100%;
  margin: 0 auto;
}

.kv-title {
  font-size: 18px;
  font-weight: bold;
}
.kv-text {
  font-size: 14px;
  line-height: 1.8;
}

.section-title {
  font-size: 20px;
  font-weight: bold;
  border-bottom: 1px solid rgb(68, 68, 68);
  margin-top: 0px;
  margin-bottom: 30px;
}

.keyword-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 0;
  margin: 0;
  list-style: none;
}

.keyword-list li {
  display: inline-block;
}

.keyword-list a {
  display: inline-block;
  padding: 6px 12px;
  border: 1px solid #ccc;
  border-radius: 20px;
  text-decoration: none;
  color: #333;
  font-size: 14px;
  background-color: #fff;
  transition: background-color 0.2s, color 0.2s, border-color 0.2s;
}

.keyword-list a:hover {
  background-color: #f5f5f5;
  border-color: #999;
  color: #000;
}

.keyword-section {
  margin-bottom: 80px;
}

/* index-section: 左寄せ＆デザイン */
.index-section {
  background-color: #f9f9f9;
  padding: 30px 30px 50px;
  border-radius: 8px;
  margin: 2em 0;
  width: auto;
  max-width: 400px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
  margin-bottom: 40px;
}

.index-section .section-subtitle {
  font-weight: bold;
  font-size: 16px;
  margin-bottom: 1em;
  text-transform: uppercase;
  padding-bottom: 0.4em;
  text-align: left;
  border-bottom: none;
}

.index-list {
  list-style: none;
  margin: 0;
  padding: 0;
  counter-reset: toc-counter;
}

.index-list li {
  counter-increment: toc-counter;
  padding: 0.6em 0;
  padding-left: 1.5em;
  position: relative;
  border-bottom: 1px solid #e0e0e0;
  font-size: 15px;
  text-align: left;
}

.index-list li::before {
  content: counter(toc-counter) "．";
  position: absolute;
  left: 0;
  color: #999;
  font-weight: bold;
}

.index-list a {
  text-decoration: none;
  color: #0070c0;
  transition: color 0.2s;
}

.index-list a:hover {
  color: #005999;
}

/* category-section: ページ内リンクボタンスタイル */
.category-section {
  margin: 0 auto 80px;
  width: 100%;
}

.category-list {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px 16px;
  list-style: none;
  padding: 0;
  margin: 0;
}

.category-list li {
  margin: 0;
}

.category-list a {
  display: block;
  justify-content: center;
  padding: 20px 16px;
  border: 1px solid #ccc;
  border-radius: 999px;
  background-color: #fff;
  color: #333;
  font-size: 11px;
  text-decoration: none;
  transition: all 0.2s;
  position: relative;
  text-align: center;
  white-space: nowrap;
}

.category-list a::after {
  content: "\25BC";
  font-size: 10px;
  margin-left: 6px;
  transform: scale(0.8);
  color: #888;
}

.category-list a:hover {
  background-color: #f5f5f5;
  border-color: #999;
  color: #000;
}

/* banner-section: 正方形バナー（4列） */
.banner-section {
  max-width: 950px;
  margin: 30px auto 80px;
}

.banner-list {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
  list-style: none;
  padding: 0;
  margin: 0;
}

.banner-list li {
  width: 100%;
  aspect-ratio: 1 / 1;
}

.banner-list img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border: 1px solid #ccc;
  display: block;
}

/* product-list: 商品カードグリッド */
.section-product {
  margin-bottom: 80px;
}

.product-list {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
  max-width: 950px;
  margin: 0 auto 20px;
}

.product-card {
  border: 1px solid #ddd;
  padding: 1em;
  display: flex;
  flex-direction: column;
  background-color: #fff;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
  position: relative;
}

.product-card-inner {
  display: flex;
  flex-direction: row;
  gap: 16px;
  align-items: flex-start;
  margin-bottom: 10px;
}

.product-image {
  position: relative;
  flex: 0 0 45%;
}

.product-image img {
  width: 100%;
  height: auto;
  display: block;
}

.badge {
  width: fit-content;
  background-color: red;
  color: white;
  font-size: 12px;
  padding: 0.2em 0.5em;
  border-radius: 3px;
  font-weight: bold;
  margin-bottom: 5px;
}

.product-info {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
}

.product-info h3 {
  font-size: 16px;
  margin: 0 0 15px 0;
  font-weight: bold;
}

.product-info p {
  font-size: 14px;
  margin: 0 0 1em 0;
  line-height: 1.4;
}

.catbtn {
  position: relative;
  background-color: #1e4b8b;
  color: white;
  text-align: center;
  display: inline-flex; /* ←ここを変更 */
  align-items: center; /* 縦中央揃え */
  justify-content: center; /* 横中央揃え */
  width: 80%;
  padding: 12px 0;
  font-size: 14px;
  border-radius: 999px;
  text-decoration: none;
  font-weight: bold;
  transition: background-color 0.3s;
  margin: 15px auto;
}

.catbtn::after {
  content: "\25B6";
  font-size: 12px;
  position: absolute;
  right: 20px; /* 好きな位置に */
  top: 50%;
  transform: translateY(-50%);
}

/* item-section: 張り替えに必要なアイテム */
.section-items-hero {
  margin-bottom: 80px;
}

.section-harikae-title {
  font-size: 18px;
  font-weight: bold;
  margin-bottom: 1.5em;
  color: #333;
  border-left: 4px solid #333;
  padding-left: 0.5em;
  border-bottom: none;
}

.item-section {
  max-width: 950px;
  margin: 3em auto;
  padding: 1em;
}

.item-section .section-title {
  font-size: 20px;
  font-weight: bold;
  margin-top: 0px;
  margin-bottom: 30px;
}

.item-image img {
  width: 100%;
  height: auto;
  display: block;
  margin-bottom: 1em;
}

.item-image.mid img {
  margin-bottom: 80px;
}

.catch-copy {
  font-size: 16px;
  font-weight: bold;
  margin: 1.5em 0 0.5em;
  color: #333;
}

.item-description {
  font-size: 14px;
  line-height: 1.7;
  color: #333;
  margin-bottom: 1em;
}

/* step-section */
.step {
  max-width: 950px;
  margin: 20px auto 40px;
}

.step h3 {
  font-size: 14px;
  font-weight: bold;
}

.step img {
  max-width: 100%;
  height: auto;
  display: block;
  margin: 0 auto 1em;
}

.step p {
  font-size: 14px;
  line-height: 1.8;
  color: #333;
  margin: 0 0 1em;
}

.video-wrapper {
  max-width: 950px;
  margin: 2em auto;
  background-color: #fff;
}

.video-wrapper h3 {
  font-size: 18px;
  font-weight: bold;
  margin-bottom: 1em;
}

.video-frame {
  position: relative;
  width: 100%;
  padding-bottom: 56.25%; /* 16:9 アスペクト比 */
  height: 0;
  overflow: hidden;
  border: 1px solid #ccc;
}

.video-frame iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: none;
}

.catcat-share-card {
  display: flex;
  align-items: center;
  background-color: #1e4b8b;
  color: white;
  border-radius: 4px;
  overflow: hidden;
  text-decoration: none;
}

.catcat-share-card__image {
  flex: 0 0 250px; /* 幅250px固定 */
  height: auto;
}

.catcat-share-card__image img {
  width: 100%;
  height: auto;
  display: block;
}

.catcat-share-card__content {
  padding: 16px;
  position: relative;
  flex: 1;

  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center; /* ボタン中央寄せ */
}

.catcat-share-card__text-group {
  width: 100%;
  text-align: left; /* テキスト左寄せ */
}

.catcat-share-card__title {
  color: white;
  font-size: 14px;
  font-weight: bold;
  text-decoration: none;
  display: inline-block;
  padding-left: 24px;
  position: relative;
  margin-bottom: 8px; /* 下に余白 */
}

.catcat-share-card__title::before {
  content: "";
  position: absolute;
  left: 0;
  top: 3px;
  width: 16px;
  height: 16px;
  background-image: url("https://bo-wwwkohnan-eshopcom.ecbeing.biz/freepage/amido/img/tipsfavicon.png");
  background-size: cover;
}

.catcat-share-card__url {
  display: block;
  color: #ccc;
  font-size: 12px;
}

.catcat-share-card__button {
  display: inline-block;
  margin-top: 16px;
  padding: 6px 16px;
  border: 1px solid white;
  border-radius: 999px;
  color: white;
  font-size: 12px;
  text-decoration: none;
  transition: background-color 0.3s, color 0.3s;
}

.catcat-share-card__button:hover {
  background-color: white;
  color: #1e4b8b;
}

.catcat-share-card__button::after {
  content: "▶";
  display: inline-block;
  margin-left: 8px;
  font-size: 10px;
}

/* 追加のボタンデザイン */
.catcat-share-card__button {
  display: inline-block; /* block → inline-block に変更 */
  margin: 16px auto 0 auto; /* auto で中央寄せ */
  padding: 6px 16px;
  border: 1px solid white;
  border-radius: 999px;
  color: white;
  font-size: 12px;
  text-decoration: none;
  transition: background-color 0.3s, color 0.3s;
}

.catcat-share-card__button:hover {
  background-color: white;
  color: #1e4b8b;
}

.catcat-share-card__button::after {
  content: "▶";
  display: inline-block;
  margin-left: 8px;
  font-size: 10px;
}

.qa-section {
  max-width: 950px;
  margin: 3em auto;
}

.qa-section .section-title {
  font-size: 20px;
  font-weight: bold;
  margin-bottom: 1.5em;
  color: #d60000;
  border-left: 4px solid #d60000;
  padding-left: 0.5em;
  border-bottom: none;
}

.qa-box {
  margin-bottom: 30px;
}

.qa-box h3 {
  background-color: #e6ecf8; /* Q背景色 */
  padding: 15px;
  margin: 0;
  font-size: 14px;
  font-weight: bold;
  color: #333;
}

.qa-box p {
  background-color: #f5f5f5; /* A背景色 */
  padding: 25px 20px;
  margin: 0;
  font-size: 14px;
  color: #333;
  line-height: 1.5;
}

.carou-section {
  margin-bottom: 80px;
}

.carou-section p {
  font-size: 14px;
  line-height: 1.8;
  color: #333;
  margin: 1em 0 1em;
}

.carou-section .carou-title {
  font-size: 14px;
  display: inline-block;
  padding: 7px 10px;
  color: #fff;
  border-bottom: 1px solid #5a4b4b;
  margin-bottom: 1em;
  font-weight: bold;
  background-color: #1e4b8b;
}

.carou-comment {
  font-size: 14px;
  line-height: 1.7;
  color: #333;
  margin-bottom: 1em;
}

.carou-more {
  display: flex;
  justify-content: center;
  margin-top: 40px;
  margin-bottom: 20px;
}

.carou-more a {
  display: inline-block;
  /* background-color: #1e4b8b; */
  color: #1e4b8b;
  border: 1px solid #1e4b8b;
  padding: 18px 35px;
  border-radius: 999px;
  font-size: 14px;
  text-decoration: none;
  font-weight: bold;
}

.carou-more a::after {
  content: "\25B6";
  font-size: 12px;
  margin-left: 0.5em;
}

.slick-track {
  margin-left: 0;
}

.contentSlide .slider {
  margin: 0;
  line-height: 0;
}
.contentSlide .slider img {
  width: 100%;
  display: block;
}

.contentSlide .slider img {
  width: 100%;
  display: block;
}

.slick-arrow {
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;
  position: absolute;
  top: calc(50% - 25px);
  overflow: hidden;
  text-indent: -9999em;
  width: 50px;
  height: 50px;
  border-radius: 100%;
  border: none;
  box-shadow: 0px 0px 6px 0px rgba(0, 0, 0, 0.15);
  z-index: 10;
  cursor: pointer;
  transition: opacity 0.3s;
}

.prev-arrow {
  left: 0;
  background: rgba(255, 255, 255, 0.8)
    url(https://bo-wwwkohnan-eshopcom.ecbeing.biz/freepage/amido/img/arrow_prev.png)
    center no-repeat;
  background-size: 30%;
}

.next-arrow {
  right: 0;
  background: rgba(255, 255, 255, 0.8)
    url(https://bo-wwwkohnan-eshopcom.ecbeing.biz/freepage/amido/img/arrow_next.png)
    center no-repeat;

  background-size: 30%;
}

.slide-arrow.prev-arrow.slick-arrow {
  width: 50px;
}

.slide-arrow.next-arrow.slick-arrow {
  width: 50px;
}

.contentSlide .slick-slide {
  padding: 0 5px;
}

.contentSlide .slick-arrow {
  position: absolute;
  top: 0;
  bottom: 0;
  margin: auto;
  padding: auto;
  cursor: pointer;
}
.contentSlide .prev-arrow {
  left: -25px;
  z-index: 10;
}
.contentSlide .next-arrow {
  right: -25px;
  z-index: 10;
}

@media screen and (max-width: 800px) {
  .page-contents {
    margin-top: 15px;
  }

  .kv-title {
    font-weight: bold;
    padding: 15px;
    margin: 20px;
  }

  .kv-text {
    line-height: 1.8;
    margin: 0 15px 30px;
  }

  .keyword-section,
  .index-section,
  .category-list,
  .banner-section {
    margin: 0 20px 30px;
  }

  .section-product,
  .section-items,
  .section-howto,
  .qa-section,
  .section-items-hero,
  .catcat-share-card {
    margin: 0 20px 60px;
  }

  .carou-section {
    padding: 0 15px;
    margin-bottom: 80px;
  }

  .carou-more a {
    font-size: 12px;
  }

  .contentSlide .prev-arrow {
    left: -18px;
    z-index: 10;
  }
  .contentSlide .next-arrow {
    right: -18px;
    z-index: 10;
  }
}

@media screen and (max-width: 500px) {
  .kvArea {
    margin-bottom: 40px;
  }

  .kv-title {
    padding: 0;
    margin: 20px;
  }

  .kv-text {
    font-size: 12px;
    line-height: 1.8;
    margin: 0 15px 30px;
  }

  .keyword-section {
    margin: 0 20px 30px;
  }

  .section-title {
    font-size: 14px;
    margin-bottom: 15px;
  }

  .keyword-list a {
    padding: 8px 12px;
    font-size: 11px;
  }

  .index-section {
    width: 100%;
    max-width: none;
    margin: 0 auto 30px;
  }

  .category-section {
    margin: 0 auto 40px;
    padding: 0 0px;
  }

  .category-list {
    display: grid;
    grid-template-columns: repeat(1, 1fr);
    gap: 20px 15px;
    list-style: none;
    padding: 0;
    margin: 0;
  }

  .category-list a {
    display: block;
    justify-content: center;
    padding: 17px 12px;
    border: 1px solid #ccc;
    border-radius: 999px;
    background-color: #fff;
    color: #333;
    font-size: 10px;
    text-decoration: none;
    transition: all 0.2s;
    position: relative;
    text-align: center;
    white-space: nowrap;
  }

  .carou-section {
    padding: 0 0px;
  }

  .carou-section p {
    font-size: 11px;
    padding: 0 15px;
  }

  .contentSlide .prev-arrow {
    left: 10px;
    z-index: 10;
  }
  .contentSlide .next-arrow {
    right: 10px;
    z-index: 10;
  }

  .banner-section {
    max-width: 950px;
    margin: 0px auto 40px;
    padding: 0 20px;
  }

  .banner-section ul {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px 10px;
  }

  .product-list {
    display: grid;
    grid-template-columns: repeat(1, 1fr);
    gap: 24px;
    max-width: 950px;
    margin: 0 auto 20px;
  }

  .product-card-inner {
    display: flex;
    flex-direction: column;
    gap: 16px;
    margin-bottom: 10px;
    flex-wrap: nowrap;
  }

  .product-card {
    padding: 30px;
  }

  .product-image {
    width: 100%;
    position: relative;
    flex: 0 0 45%;
  }

  .catbtn {
    width: 100%;
    padding: 20px 0;
    font-size: 14px;
    border-radius: 999px;
    text-decoration: none;
    font-weight: bold;
    transition: background-color 0.3s;
    margin: 15px auto;
  }

  .section-product {
    margin: 0 20px 60px;
  }

  .carou-section {
    padding: 0 10px;
    margin-bottom: 80px;
  }

  .carou-section .carou-title {
    font-size: 13px;
    display: inline-block;
    padding: 5px 8px;
    color: #fff;
    border-bottom: none;
    margin-bottom: 1em;
    font-weight: bold;
    background-color: #1e4b8b;
  }

  .slide-arrow.next-arrow.slick-arrow {
    width: 40px;
    height: 40px;
  }

  .slide-arrow.prev-arrow.slick-arrow {
    width: 40px;
    height: 40px;
  }

  .prev-arrow,
  .next-arrow {
    background-size: 20%;
  }

  .catch-copy {
    font-size: 14px;
  }

  .item-description {
    font-size: 12px;
    margin: 0;
  }

  .section-product,
  .section-items,
  .section-howto,
  .qa-section,
  .section-items-hero {
    margin: 0 0px 30px;
  }

  .step h3 {
    font-size: 13px;
    font-weight: bold;
    margin-bottom: 5px;
  }

  .step p {
    font-size: 12px;
    line-height: 1.8;
    color: #333;
    margin: 0 0 1em;
  }

  .video-wrapper h3 {
    font-size: 14px;
    font-weight: bold;
    margin-bottom: 1em;
  }

  .catcat-share-card {
    flex-direction: column;
  }

  .catcat-share-card__image {
    flex: 0 0 200px;
    height: auto;
  }

  .qa-section .section-title {
    font-size: 14px;
  }

  .qa-box h3 {
    font-size: 13px;
  }

  .qa-box p {
    padding: 15px 10px;
    font-size: 12px;
    color: #333;
    line-height: 1.5;
  }
 .page-container {
    padding: 0 16px;
    box-sizing: border-box;
  }

  .kv-title,
  .kv-text,
  .keyword-section,
  .index-section,
  .category-section,
  .banner-section,
  .section-product,
  .section-items,
  .section-howto,
  .qa-section,
  .section-items-hero,
  .catcat-share-card {
    margin-left: 0;
    margin-right: 0;
  }

  .carou-section {
    margin-left: -16px;
    margin-right: -16px;
    padding-left: 10px;
    padding-right: 10px;
  }
}
