:root {
  /* 色管理用の変数 */
  --text-color: #4D4D4D;
  --white-color: #fff;
  --gray-color: #f7f6f4;
  --gray-color2: #3f4652;
  --primary-color1: #7a6ba5;
  --primary-color2: #B6ACD3;
  --primary-color3: #EFE8F3;
  --accent-color: #aa9570;
}

body {
  margin: 0;
  padding: 0;
  padding-top: 100px;
  /* ヘッダーの実際の高さに合わせて調整 */
  color: var(--text-color);
  font-family: "Noto Sans JP", sans-serif;
  font-size: 18px;
}

p {
  margin: 0;
  padding: 0;
  margin-block-start: 0;
  margin-block-end: 0;

}

/* iOSのデバイス縦横でフォントサイズが変わるの防止用 */
body {
  -webkit-text-size-adjust: none;
}

img {
  width: 100%;
  height: auto;
}

img[width="1"][height="1"] {
  width: 1px !important;
  height: 1px !important;
  max-width: none;
}

.section_inner {
  max-width: 1024px;
  width: 100%;
  margin: 0 auto;
}

.br-sp {
  display: none;
}

@media screen and (max-width: 768px) {  
  .br-sp {
    display: block;
  }
}

.br-pc {
  display: block;
}

@media screen and (max-width: 768px) {  
  .br-pc {
    display: none;
  }
}

.strong__red {
  color: #d80909;
}

/* パンくず */

.breadcrumb ul {
  color: #2f2f2f;
  letter-spacing: 0.1em;
  list-style-type: none;
  font-size: 12px;
  line-height: 150%;
  padding-inline-start: 8px;
}

.breadcrumb ul li {
  display: inline-block;
}


.heading-number {
  display: flex;
  align-items: center;
  padding: 5px 0;
  margin: 0 16px;
  border-bottom: 2px solid var(--gray-color2);
  font-size: 24px;
  font-family: "Noto Serif JP", serif;
  font-weight: bold;
  position: relative;
}

.heading-number .number {
  display: inline-block;
  margin-right: 10px;
  padding: 8px 10px;
  border-radius: 999px;
  background: var(--gray-color2);
  color: var(--white-color);
}

.heading_en {
  color: var(--accent-color);
  padding-left: 24px;
  margin-top: 8px;
  font-family: "Open Sans", sans-serif;
  font-size: 12px;
  font-style: italic;
  letter-spacing: 0.1em;
  font-weight: normal;
  text-transform: uppercase;
}

@media screen and (max-width: 768px) {  
  .heading-number {
    position: relative;
    font-size: 20px;
  }

  .heading-number .number {
    padding: 5px 10px;
  }
  
  .heading_en {
    position: absolute;
    right: 0;
    bottom: -8px;
    font-size: 10px;
  }
}

.heading-1 {
  border-bottom: 2px solid var(--primary-color2);
  padding: 5px 0;
  font-size: 24px;
  font-family: "Noto Serif JP", serif;
}

@media screen and (max-width: 768px) { 
  .heading-1 {
    font-size: 20px;
  } 
}

.heading-2 {
  text-align: center;
  font-size: 24px;
  font-family: "Noto Serif JP", serif;
  position: relative;
}

.heading-2:before {
  position: absolute;
  top: calc(50% - 1px);
  left: 0;
  width: 100%;
  height: 2px;
  content: '';
  background: var(--primary-color1);
}

.heading-2__txt {
  position: relative;
  padding: 0 1em;
  background: var(--gray-color);
}

.heading-2__gold, .heading-3__gold {
  color: var(--accent-color);
}

@media screen and (max-width: 768px) {  
  .heading-2 {
    font-size: 24px;
    padding-bottom: 8px;
  }
}

.heading-3 {
  text-align: center;
  font-size: 32px;
  font-family: "Noto Serif JP", serif;
  margin-bottom: 24px;
}

@media screen and (max-width: 768px) { 
  .heading-3 {
    font-size: 24px;
  }
}

.allwrap {
  width: 100%;
  margin: 0px auto;
  text-align: left;
  font-size: 18px;
  line-height: 180%;
}



/* ヘッダー */
/* ===== 全体 ===== */
.kglp-header {
  width: 100%;
  position: fixed;
  top: 0;
  left: 0; 
  z-index: 100000;
}

/* ===== 1行目：ロゴ＋電話 ===== */
.kglp-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: 1023px;
  margin: 0 auto;
  height: 55px;
  background-image: url(https://www.kouden-gaeshi.jp/manner/img/header-background.jpg);
  background-size: cover;
  background-position: center;
}

.kglp-logo {
  padding: 0 3%;
  width: 40%;
}

.kglp-logo img {
  width: 100%;
  vertical-align: middle;
}

@media screen and (min-width: 768px) {
  .kglp-logo {
    width: 20%;
  }

}

.kglp-tel {
  padding: 0 10px 0 0;
  width: 60%;
}

.kglp-tel img {
  max-height: 55px;
  width: auto;
  display: block;
  margin-left: auto;
}

@media screen and (max-width: 768px) {  
  .kglp-tel {
    width: 40%;
  }

  .kglp-tel img {
    width: 100%;
  }
}

/* ===== 2行目：ナビ ===== */
.kglp-nav {
  display: flex;
  align-items: stretch;
  max-width: 1023px;
  margin: 0 auto;
  background-color: #998FAF;
  border-bottom: 3px solid #998FAF;
}

.kglp-hamburger {
  flex: 0 0 70px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
}
.kglp-hamburger__line {
  display: block;
  width: 40%;
  height: 2px;
  background: var(--white-color);
  border-radius: 20px;
  margin: 2px 0;
}
.kglp-hamburger__text {
  color: var(--white-color);
  font-size: 10px;
  margin-top: 3px;
}

.kglp-navlink {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white-color);
  font-size: 16px;
  font-weight: bold;
  text-decoration: none;
  height: 45px;
  border-left: 1px solid rgba(255,255,255,.4);
}

/* ===== ドロワー ===== */
.kglp-drawer {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 1500000;
  width: 250px;
  max-width: 90%;
  height: 100%;
  background: var(--white-color);
  transform: translateX(-100%);
  transition: transform .3s ease-in-out;
  overflow: auto;
}
.kglp-drawer.is-open {
  transform: translateX(0);
  box-shadow: 6px 0 25px rgba(0,0,0,.16);
}

.kglp-drawer__close {
  display: block;
  margin: 10px 0 0 10px;
  width: 32px;
  height: 32px;
  font-size: 20px;
  line-height: 32px;
  text-align: center;
  background: none;
  border: none;
  cursor: pointer;
}

.kglp-overlay {
  display: none;
  position: fixed;
  top: 0; left: 0;
  width: 100%; height: 100%;
  background: #000;
  opacity: 0;
  z-index: 1000;
  transition: opacity .3s ease-in-out;
}
.kglp-overlay.is-open {
  display: block;
  opacity: .3;
}

.kglp-drawer__list {
  margin: 0;
  padding: 0;
  color: #757575;
}
.kglp-drawer__list li {
  list-style: none;
  text-align: left;
  border-bottom: 1px solid #ccc;
  position: relative;
  font-size: 16px;
}
.kglp-drawer__list li a {
  display: block;
  padding: 20px;
  text-decoration: none;
  color: #757575;
}
.kglp-drawer__list li a:after {
  font-family: "Font Awesome 5 Free";
  content: '\f054';
  font-weight: 900;
  color: #ccc;
  position: absolute;
  top: 35%;
  right: 3%;
}
.kglp-drawer__title {
  padding: 20px;
  color: var(--white-color);
  background: #c5bbda;
  font-size: 16px;
  margin: 5px 0 0;
}
.kglp-drawer__title-link {
  background: #f2f2f2;
}
.kglp-drawer__title-link a {
  color: #969696;
  padding: 20px;
}

/* 検索窓（ドロワー内） */
.kglp-search {
  box-sizing: border-box;
  position: relative;
  border: 1px solid #999;
  height: 2.8em;
  width: 85%;
  margin: 15px auto;
  background: var(--white-color);
}
.kglp-search input[type="text"] {
  border: none;
  height: 2.3em;
  font-size: 14px;
  padding: 5px 0 0 10px;
  opacity: .5;
}
.kglp-search input[type="submit"] {
  cursor: pointer;
  font-family: "Font Awesome 5 Free";
  font-size: 1.3em;
  border: none;
  background: none;
  color: #3879D9;
  position: absolute;
  width: 2.3em;
  height: 2.3em;
  right: 0;
  top: -3px;
  font-weight: 900;
}

.category-head {
  margin: 8px;
  text-align: left;
  line-height: 150%;
  font-size: 22px;
  color: #5c4944;
  letter-spacing: 0.05em;
}

@media screen and (min-width:1024px) {
  .category-head {
    margin: 16px;
    text-align: left;
    line-height: 160%;
    font-size: 30px;
    color: #5c4944;
  }
}

/* kv */

/* お悩み */
.matter {
  margin: 80px 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}

.matter img {
  width: 80%;
  display: block;
}

.matter picture {
  width: 80%;
  display: flex;
  justify-content: center;
}

/* picture内のimgは、pictureの幅いっぱいに広げる(80%の重複を防ぐ) */
.matter picture img {
  width: 100%;
}

@media screen and (max-width: 768px) {
  .matter {
    margin: 40px 16px;
  }

  .matter img {
    width: 100%;
  }

  .matter picture {
    width: 100%;
  }
}

/* 特徴 */
#features {
  margin-bottom: 80px;
  background-color: var(--gray-color);
  padding: 40px 16px;
  line-height: 160%;
}

.features_intro {
  max-width: 600px;
  font-size: 16px;
  margin: 40px auto;
  text-align: justify;
}

@media screen and (max-width: 768px) {
  .features_intro {
    margin: 0px 0px 40px;
  }

  .features_wrap {
    padding: 0 16px;
  }
}

.features_toggle_wrap {
  display: none;
}

@media screen and (max-width: 768px) {
  .features_toggle_wrap {
    display: flex;
    justify-content: center;
    margin: 24px 0;
  }

  .features_toggle {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    width: 100%;
    max-width: 400px;
    padding: 16px 24px;
    border: none;
    background-color: var(--primary-color1);
    color: var(--white-color);
    font-size: 18px;
    font-weight: bold;
    cursor: pointer;
  }

  .features_toggle_icon {
    width: 12px;
    height: 12px;
    border-right: 2px solid var(--white-color);
    border-bottom: 2px solid var(--white-color);
    transform: rotate(45deg);
    transition: transform 0.3s ease;
  }

  /* 開いたら上向きに回転 */
  .features_toggle[aria-expanded="true"] .features_toggle_icon {
    transform: rotate(-135deg);
  }

  /* 開閉ラッパー：grid-template-rows でなめらかに開閉 */
  .features_collapse {
    display: grid;
    grid-template-rows: 0fr;
    transition: grid-template-rows 0.4s ease;
  }

  .features_collapse > .features_wrap {
    overflow: hidden;
    min-height: 0;
  }

  .features_collapse.is-open {
    grid-template-rows: 1fr;
  }
}

/* PC：ボタンとラッパーの制御を無効化（常に開いた状態） */
@media screen and (min-width: 769px) {
  .features_collapse {
    display: block !important;
  }
}

.features_container {
  display: flex;
  justify-content: space-between;
  gap: 16px;
}

@media screen and (max-width: 768px) {
  .features_container {
    flex-direction: column;
    gap: 24px;
  }
}

.features_box {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  border: 1px solid var(--accent-color);
  background-color: var(--white-color);
  padding: 16px;
  position: relative;
}

.features_box_number {
  position: absolute;
  top: 0;
  left: 16px;
  padding: 10px;
  background-color: var(--primary-color1);
  color: var(--white-color);
  font-size: 24px;
  font-weight: bold;
}

.features_box_img {
  width: 64px;
  height: 60px;
}

.features_box_ttl {
  font-size: 18px;
  font-weight: bold;
  text-align: center;
  line-height: normal;
}

.features_box_txt {
  border-top: 2px solid var(--accent-color);
  padding-top: 16px;
  font-size: 16px;
  text-align: justify;
}

/* PC：円形カード＋クロスフェード */
@media screen and (min-width: 769px) {
  .features_box {
    width: calc((100% - 64px) / 5);
    flex: 0 0 auto;
    border: none;
    background-color: var(--gray-color);
    padding: 0;
  }

  .features_box_number {
    display: none;
  }

  .features_box_circle {
    position: relative;
    width: 100%;
    aspect-ratio: 1 / 1;
    border-radius: 50%;
    background-color: #f9f7fc;
    border: 1px solid var(--primary-color2);
    overflow: hidden;
    cursor: pointer;
  }

  .features_box_front,
  .features_box_txt {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 8px;
    transition: opacity 0.4s ease;
  }

  .features_box_front {
    flex-direction: column;
    gap: 12px;
    opacity: 1;
  }

  .features_box_txt {
    opacity: 0;
    border-top: none;
    padding-top: 28px;
    font-size: 13px;
    text-align: center;
  }

  .features_box_circle:hover .features_box_front {
    opacity: 0;
  }

  .features_box_circle:hover .features_box_txt {
    opacity: 1;
  }
}

/* SP：既存レイアウトのまま（ラッパーを解除） */
@media screen and (max-width: 768px) {
  .features_box_circle,
  .features_box_front {
    display: contents;
  }
}


/* 目次 */
.toc {
  margin: 0 auto 80px;
  max-width: 700px;
}

.toc_box {
  display: flex;
  justify-content: center;
  gap: 80px;
  margin-top: 16px;
}

.toc_left, .toc_right {
  display: flex;
  flex-direction: column;
}

.toc_left a, .toc_right a {
  text-decoration: none;
  color: var(--text-color);
  font-family: "Noto Serif JP", serif;
  letter-spacing: 0.1em;
  font-size: 24px;
  line-height: 160%;
}

.toc_left a:hover, .toc_right a:hover {
  opacity: 0.7;
  text-decoration-line: underline;
}

/* .toc_ranking a {
  font-size: 22px;
  line-height: 160%;
  display: block;
} */

@media screen and (max-width: 768px) {
  .toc {
    margin: 0 16px 80px;
  }  

  .toc_box {
    flex-direction: column;
    gap: 0px;
  }

  .toc_left a, .toc_right a {
    font-size: 18px;
  }
}


/* マナー・よくある質問 */
#manner,#faq {
  margin-bottom: 80px;
}

.manner_inner {
  display: flex;
  flex-direction: column;
  padding: 0 40px;
}

.manner_ttl {
  font-size: 20px;
  letter-spacing: 0.05em;
  padding-top: 40px;
  position: relative;
  padding-left: 1.5em;/*アイコン分のスペース*/
  padding-bottom: 8px;
  line-height: 1.4;/*行高*/
  z-index: +1;
	cursor: pointer;
	transition-duration: 0.2s;
  border-bottom: 1px dashed var(--primary-color2);
}

.manner_ttl::before {
  font-family: "Font Awesome 5 Free";/*忘れずに*/
  content: "\f111";/*アイコンのユニコード*/
  color: var(--primary-color2);
  font-weight: 900;
  position: absolute;/*絶対位置*/
  font-size: 16px;/*サイズ*/
  left: 0;/*アイコンの位置*/
  top: 2.5em;/*アイコンの位置*/
}

.manner_ttl:hover {
	opacity: .8;
}

@media screen and (max-width: 768px) {
  .manner_ttl::before {
    top: 16px;
    font-size: 14px;
  }
}

.manner_ttl .i_box {
	display: flex;
	justify-content: center;
	align-items: center;
	position: absolute;
	top: 50%;
	right: 5%;
	width: 40px;
	height: 40px;
	border: 1px solid var(--white-color);
	margin-top: -20px;
	box-sizing: border-box;
	-webkit-transform: rotate(45deg);
	transform: rotate(45deg);
	transform-origin: center center;
	transition-duration: 0.2s;
}
.manner_ttl.stay .i_box {
	-webkit-transform: rotate(0deg);
	transform: rotate(0deg);
}
.manner_ttl .i_box .one_i {
	display: block;
	width: 18px;
	height: 18px;
	-webkit-transform: rotate(45deg);
	transform: rotate(45deg);
	transform-origin: center center;
	transition-duration: 0.2s;
	position: relative;
}
.manner_ttl.stay .i_box .one_i {
	-webkit-transform: rotate(0deg);
	transform: rotate(0deg);
}
.manner_ttl.stay.open .i_box .one_i {
	-webkit-transform: rotate(45deg);
	transform: rotate(45deg);
}
.manner_ttl.open .i_box {
	-webkit-transform: rotate(-360deg);
	transform: rotate(-360deg);
}
.manner_ttl.stay.open .i_box {
	-webkit-transform: rotate(315eg);
	transform: rotate(315deg);
}
.manner_ttl .i_box .one_i:before, .manner_box .manner_ttl .i_box .one_i:after {
	display: flex;
	content: '';
	background-color: var(--accent-color);
	border-radius: 10px;
	width: 18px;
	height: 2px;
	position: absolute;
	top: 8px;
	left: 0;
	-webkit-transform: rotate(0deg);
	transform: rotate(0deg);
	transform-origin: center center;
}
.manner_ttl .i_box .one_i:before {
	width: 2px;
	height: 18px;
	top: 0;
	left: 7px;
}
.manner_ttl.stay .i_box .one_i:before {
	content: none;
}
.manner_ttl.open .i_box .one_i:before {
	content: none;
}
.manner_ttl.stay.open .i_box .one_i:before {
	content: "";
}
.manner_ttl.open .i_box .one_i:after {
	-webkit-transform: rotate(-45deg);
	transform: rotate(-45deg);
}
.manner_ttl.stay.open .i_box .one_i:after {
	-webkit-transform: rotate(0deg);
	transform: rotate(0deg);
}
.accordion_inner {
	display: none;
	padding: 30px 30px;
	box-sizing: border-box;
}
@media screen and (max-width: 767px) {
  .accordion_inner {
    padding: 8px;
  }
}
.accordion_inner.stay {
	display: block;
}
.accordion_inner .box_one {
	height: auto;
}
.manner_txt {
	margin: 0;
}
@media screen and (max-width: 1024px) {
	.manner_ttl {
		font-size: 18px;
	}
	.manner_ttl .i_box {
		width: 30px;
		height: 30px;
		margin-top: -15px;
    right: -1%;
	}
}
@media screen and (max-width: 767px) {
	.manner_ttl {
		font-size: 16px;
		text-align: left;
		padding: 16px 16px 8px 16px;
	}
}

.faq_link {
  text-decoration: none;
  border-bottom: 2px solid var(--primary-color1);
  padding-bottom: 2px;
  color: var(--primary-color1);
  font-weight: bold;
}

.faq_link:hover {
  opacity: 0.7;
}

.manner_arrow {
  position: relative;
  display: inline-block;
  width: 16px;
  height: auto;
  transition: transform 0.2s ease;
}

.manner_arrow::before,
.manner_arrow::after {
  content: "";
  position: absolute;
  top: calc(50% - 7px);
  right: 0;
  width: 10px;
  height: 2px;
  border-radius: 9999px;
  background-color: var(--primary-color1);
  transform-origin: calc(100% - 1px) 50%;
}

.manner_arrow::before {
  transform: rotate(45deg);
}

.manner_arrow::after {
  transform: rotate(-45deg);
}

.faq_link:hover .manner_arrow {
  transform: translateX(4px);
}

.manner_link {
  text-align: right;
}

.manner-txt_view_more {
  color: var(--primary-color2);
  font-weight: bold;
  text-decoration: none;
}

.manner-txt_view_more:hover {
  opacity: 0.7;
  text-decoration-line: underline;
}

.view_more {
  text-align: center;
  margin-top: 56px;
}

.view_more a {
  text-decoration: none;
  background-color: var(--primary-color1);
  color: var(--white-color);
  font-weight: bold;
  padding: 16px 40px;
  border-radius: 999px;
  box-shadow: 0px 10px 10px -6px rgba(0, 0, 0, 0.3);
}

.view_more a:hover {
  opacity: 0.7;
}

.manner_price {
  margin: 40px auto;
  background-color: #f0e9f4;
  text-align: center;
  padding: 40px;
  font-size: 16px;
  line-height: 1.6;
}

.manner_price_heading {
  background-color: var(--gray-color2);
  display: inline-block;
  color: var(--white-color);
  font-family: "Noto Serif JP", serif;
  font-size: 20px;
  font-weight: bold;
  padding: 8px 40px;
  margin-bottom: 16px;
}

.manner_button_wrap {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: center;
  margin-top: 16px;
}

.manner_price_button {
  display: flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
  text-decoration: none;
  color: #4d2626;
  font-size: 16px;
  letter-spacing: 0.03em;
  border-radius: 3px;
  min-width: 200px;
  height: 56px;
  font-weight: bold;
  border: 1px solid #d9d0be;
  transition: 0.3s;
  box-shadow: 0px 3px 5px 1px rgba(205, 205, 205, 0.5);
  background-image: linear-gradient(180deg, rgba(255, 255, 255, 1), rgba(249, 246, 232, 1));
}

.manner_price_button:hover {
  opacity: 0.7;
}

.manner_price_big {
  font-size: 22px;
  font-weight: bold;
}

@media screen and (max-width: 768px) {
  .manner_inner {
    padding: 0 16px;
  }

  .manner_ttl {
    font-size: 16px;
    padding-top: 16px;
  }

  .manner_txt {
    letter-spacing: 0.1em;
    line-height: 160%;
    font-size: 16px;
  }

  .faq_link {
    font-size: 16px;
  }

  .manner-txt_view_more {
    font-size: 14px;
  }

  .view_more {
    margin-top: 24px;
  }

  .view_more a {
    padding: 16px 24px;
    font-size: 14px;
  }

  .manner_price {
    margin: 40px auto 24px;
    padding: 16px;
  }

  .manner_price_heading {
    font-size: 16px;
    padding: 8px 16px;
  }

  .manner_price_button {
    min-width: 140px;
  }
}


/* ランキング */
#ranking {
  background-color: var(--primary-color3);
  margin-bottom: 80px;
  padding: 40px 16px;
}

.ranking-top_txt {
  padding: 16px 0 0 80px;
  margin-bottom: 80px;
}

#ranking_cat, #ranking_price {
  padding-bottom: 80px;
}

@media screen and (max-width: 768px) {
  #ranking {
    padding: 40px 0;
  }

  .ranking-top_txt {
    font-size: 16px;
    padding: 16px 16px 0;
    line-height: 160%;
    margin-bottom: 56px;
  } 
  
  #ranking_cat, #ranking_price {
    padding-bottom: 40px;
  }
}

/* 各ランキングTOP5 */
.top5 {
  /*  background-color: #8b7b91;*/
  background-color: #fff9f1 !important;
  background-image: url(https://www.kouden-gaeshi.jp/manner/img/title-background.png);
  background-position:left top;
  background-repeat: repeat;
padding: 40px 24px;
  margin-bottom: 56px;
  border-radius: 24px;
  text-align: center;
}

@media screen and (max-width: 768px) {  
  .top5 {
    padding: 24px 8px;
    margin: 0 8px 40px 8px;
  }
}

.top5_ttl {
  color: var(--gray-color2);
  margin-bottom: 24px;
}

@media screen and (max-width: 768px) {  
  .top5_ttl {
    font-size: 20px;
    margin-bottom: 16px;
  }
}

.top5_wrap {
  display: flex;
  align-items: stretch;
  gap: 16px;
  padding: 8px;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

@media screen and (max-width: 768px) {  
  .top5_wrap {
    gap: 8px;
  }
}

/*===========
scrollbar
===========*/
/*スクロールバー全体の高さ*/
.top5_wrap::-webkit-scrollbar {
  height: 10px;
}
/*スクロールバー全体の背景*/
.top5_wrap::-webkit-scrollbar-track {
  background: var(--gray-color);
}
/*スクロールバーの動く部分*/
.top5_wrap::-webkit-scrollbar-thumb {
  background: var(--accent-color);
  border: none;
}
/*スクロールバーの動く部分のホバー（マウスオーバー）*/
.top5_wrap::-webkit-scrollbar-thumb:hover {
  background: #8F785E;
}

.top5_link {
  display: flex;
  flex-direction: column;
  text-decoration: none;
  color: #574c32;
}

.top5_link:hover {
  opacity: 0.8;
}

.top5_item {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  flex: 1; 
  background-color: var(--white-color);
  border-radius: 24px;
  min-width: 160px;
  padding: 24px 8px;
  box-shadow: 0px 5px 8px 0px rgba(60, 60, 60, 0.35);
  position: relative;
}

@media screen and (max-width: 768px) {  
  .top5_item {
    border-radius: 20px;
    padding: 16px;
    box-shadow: 0px 5px 5px 0px rgba(60, 60, 60, 0.35);
    margin: 0px 0px 10px;
  }
}

.top5_item_num {
  position: absolute;
  left: 4px;
  top: -8px;
  width: 40px;
}

.top5_item_img {
  display: flex;
  align-items: center;
  justify-content: center;
}

.top5_item_img img {
  width: 100%;
  height: auto;
  object-fit: contain;
}

.top5_txt {
  font-size: 14px;
  font-weight: bold;
  color: var(--gray-color2);
  margin-top: 16px;
  text-align: left;
  line-height: 140%;
}

.top5_price {
  font-size: 15px;
  color: #ee2f1b;
  text-align: right;
}

.top5_list_price{
  font-size: 12px;
  color: #336699;
  text-align: right;
  text-decoration: line-through;
  margin: 0px 0px -10px;
}

/* ── タブ ── */
.tabs {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 4px; 
  border-radius: 16px;
  padding: 4px;
  margin-bottom: 20px;
}

.tab-btn {
  flex: 0 0 calc(20% - 4px);
  text-align: center;
  min-width: max-content;
  padding: 8px 14px;
  font-size: 16px;
  font-weight: bold;
  color: var(--text-color);
  background: transparent;
  background-color: #fff;
  border: 1px solid #bca1b6;
  border-radius: 6px;
  cursor: pointer;
  transition: background var(--transition), color var(--transition);
  white-space: nowrap;
}

@media screen and (max-width: 768px) {  
  .tab-btn { 
    font-size: 14px;
    padding: 7px 10px; 
  }
}

@media screen and (max-width: 768px) {
  #studies .tab-btn {
    flex: 0 0 calc(33.333% - 4px);
  }
}

.tab-btn:hover {
  background-color: #dab8d2;
}

.tab-btn.active {
  background: #dab8d2;
  box-shadow: 0 1px 3px rgba(0,0,0,.08);
}

/* ── ランキングリスト ── */
.rank-panel {
  display: none;
}

.rank-panel.active {
  display: flex;
  flex-direction: column;
/*  background-color: #CBBFA4;*/
  background-color: #fff9f1 !important;
  background-image: url(https://www.kouden-gaeshi.jp/manner/img/title-background.png);
  background-position:left top;
  background-repeat: repeat;
  padding: 40px 24px;
  border-radius: 24px;
  text-align: center;
  animation: fadeIn 200ms ease;
}

@media screen and (max-width: 768px) {  
  .rank-panel.active {
    padding: 24px 8px;
    margin: 0 8px 40px 8px;
  }
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(6px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ── もっと見るボタン ── */
.show-more {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 12px;
  margin-top: 16px;
  background: #fff;
  border: 1px dashed #574C32;
  box-sizing:  border-box;
  border-radius: 16px;
  font-size: 16px;
  color: #1E1E1E;
  font-weight: bold;
  cursor: pointer;
  transition: border-color var(--transition), color var(--transition);
}

.show-more a {
  text-decoration: none;
}

.show-more a:hover { 
  border-color: var(--accent); color: var(--accent);
  color: #8b7b91;
  box-sizing:  border-box;
}


/* 挨拶状・のし・包装紙 */
#aisatsu {
  margin-bottom: 80px;
  text-align: center;
}

.aisatsu_inner {
  padding-top: 16px;
}

.aisatsu_inner p {
  text-align: left;
  padding-left: 80px;
}

.aisatsu_box {
  text-align: left;
  margin: 0 auto;
}

.aisatsu_img {
  margin: 40px auto 0;
  width: 70%;
}

.aisatsu_heading {
  font-size: 24px;
  color: var(--accent-color);
  font-family: "Noto Serif JP", serif;
  margin-bottom: 8px;
}

.aisatsu_ex {
  font-size: 16px;
  color: var(--text-color);
  font-family: "Noto Sans JP", sans-serif;
  padding-left: 40px;
}

@media screen and (max-width: 768px) {
  #aisatsu {
    margin-bottom: 40px;
  }

  .aisatsu_inner {
    padding: 16px 16px 0;
  }

  .aisatsu_inner p {
    line-height: 160%;
    font-size: 16px;
    padding-left: 0;
  }

  .aisatsu_img {
    width: 100%;
  }

  .aisatsu_heading {
    font-size: 18px;
  }

  .aisatsu_ex {
  font-size: 14px;
  padding-left: 16px;
}
}



/* お客様の声 */
#voices {
  margin-bottom: 80px;
}

.voices_inner {
  padding: 16px 40px 0;
  margin-bottom: 40px;
}

.voices_inner p {
  padding-left: 40px;
}

.voices_txt {
  margin-top: 40px;
}

/* 選択されていないサムネイルは薄くする */
.splide__slide {
  opacity: .6;
}
/* 選択されているサムネイルだけ透過しない */
.splide__slide.is-active {
  opacity: 1;
}
/* 画像サイズ調整 */
.splide__slide img {
  height: auto;
  width: 100%;
  cursor: pointer;
  display: block;
  margin: 0 auto;
}

#main-carousel {
  width: 500px;   /* ここでメインの表示サイズを指定 */
  margin: 40px auto 0; /* ページ内で中央寄せしたい場合 */
  padding-bottom: 24px;
}

.splide__list {
  text-align: center;
}

.splide__slide {
  border: 2px var(--gray-color2) solid;
}

@media screen and (max-width: 768px) { 
  .voices_inner {
    padding: 16px 16px 0;
    margin-bottom: 40px;
    font-size: 16px;
    line-height: 160%;
  }

  #main-carousel {
    width: 100%;
    padding-bottom: 16px;
  }

  .voices_inner p {
    padding-left: 0;
  }
}


/* 注文の流れ */
#flow {
  margin-bottom: 80px;
  background-color: var(--gray-color);
  padding: 40px 16px;
}

.flow_txt {
  padding: 16px 0 0 80px;
}

.flow_wrap {
  margin-top: 40px;
}

.flow_step {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 64px;
}

.flow_step_box {
  display: flex;
  gap: 8px;
  position: relative;
  text-align: center;
}

.flow_step_box:not(:last-child)::before {
  content: "";
  position: absolute;
  top: 50%;
  right: -40px;
  transform: translateY(-50%);
  width: 16px;
  height: 2px;
  background-color: #999;
}

.flow_step_box:not(:last-child)::after {
  content: "";
  position: absolute;
  top: 50%;
  right: -40px;
  transform: translateY(-50%);
  width: 0;
  height: 0;
  border-top: 5px solid transparent;
  border-bottom: 5px solid transparent;
  border-left: 6px solid #999;
}

.flow_step__gold {
  font-size: 16px;
  font-weight: bold;
  color: var(--accent-color);
  text-transform: uppercase;
}

.flow_step_ex {
  font-size: 16px;
  font-weight: bold;
}

.flow_cart {
  margin-top: 40px;
}

.flow_contents {
  display: flex;
  justify-content: space-between;
  margin-top: -32px;
  gap: 8px;
  
}

.carttitle {
  position: relative;
  z-index: 1;
}

#demoslide01 {
  cursor: pointer;
}

/*----------------------------------------------------	
          動画用（モーダル）
----------------------------------------------------*/
.main_visual {
  display: inline-block;
}

.main_visual span {
  text-decoration: underline;
  color: #3b91d6;
}

.modal_open {
  display: inline-block;
  /*    margin: 3vw;*/
  float: left;
}

.modal_box {
  position: fixed;
  z-index: 110000;
  display: none;
  width: 95%;
  max-width: 840px;
  margin: 0;
  padding: 40px 1.5% 20px;
  /*    border: 2px solid #aaa;*/
  text-align: center;
  background: #222222;
  box-sizing: border-box;
  /*	overflow-y: scroll;
	max-height: 600px;*/
}

.modal_box p {
  color: #FFFFFF;
}

.modal_box video {
  width: 100%;
  max-height: 800px;
}

.modal_box iframe {
  width: 100%;
  max-height: 800px;
  aspect-ratio: 16 / 9;
}

.modal_box .modal_box-i {
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  width: 100%;
}

.modal_box .modal_box-i iframe {
  width: 90%;
  height: 500px;
  background-color: #FFFFFF;
  display: block;
  margin: 0px auto 0px;
  padding: 0px 3% 0px 3%;
}

.modal_bg {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 100000;
  display: none;
  width: 100%;
  height: 120%;
  background-color: rgba(0, 0, 0, 0.7);
}


button.closeBtn {
  display: inline-block;
  vertical-align: middle;
  color: #FFF;
  line-height: 1;
  width: 2.0rem;
  height: 0.2rem;
  background: currentColor;
  border-radius: 0.1rem;
  position: absolute;
  transform: rotate(45deg);
  border: none;
  right: 3px;
  top: 15px;
  opacity: 1.0;
  transition: 0.2s ease-in-out;
}

button.closeBtn:before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: inherit;
  border-radius: inherit;
  transform: rotate(90deg);
}

button.closeBtn:hover {
  opacity: 1;
}

@media screen and (max-width: 768px) {  
  #flow {
    margin-bottom: 40px;
    padding: 40px 0;
  }

  .flow_txt {
    padding: 16px 16px 0 16px;
    line-height: 160%;
    font-size: 16px;
  }

  .flow_wrap {
    margin: 24px 16px 0;
  }

  .flow_contents {
    gap: 4px;
    margin-top: -18px;
  }

  .flow_step {
    flex-direction: column;
    gap: 24px;
  }

  .flow_step_box:not(:last-child)::before {
    top: auto;
    left: 50%;
    right: auto;
    bottom: -18px;
    transform: translateX(-50%);
    width: 2px;
    height: 16px;
  }

  .flow_step_box:not(:last-child)::after {
    top: auto;
    left: 50%;
    right: auto;
    bottom: -18px;
    transform: translateX(-50%);
    width: 0;
    height: 0;
    border-top: 6px solid #999;
    border-left: 5px solid transparent;
    border-right: 5px solid transparent;
    border-bottom: none;
  }
}



/* ラインナップ */
#lineup {
  margin-bottom: 80px;
  padding-top: 40px;
}

.lineup_wrap {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  padding: 8px;
}

.lineup_link {
  display: flex;
  flex-direction: column;
  text-decoration: none;
  color: #574c32;
}

.lineup_link:hover {
  opacity: 0.8;
}

.lineup_item {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  height: 100%;
  background-color: var(--white-color);
  border-radius: 8px;
  padding: 8px;
  box-shadow: 0px 5px 8px 0px rgba(60, 60, 60, 0.35);
}

.lineup_item_img {
  display: flex;
  align-items: center;
  justify-content: center;
}

.lineup_item_img img {
  width: 100%;
  height: auto;
  object-fit: contain;
}

.lineup_txt-box {
  width: 100%;
}

.lineup_txt {
  font-size: 14px;
  font-weight: bold;
  color: var(--gray-color2);
  margin-top: 16px;
  text-align: left;
  line-height: 140%;
}

.lineup_price {
  font-size: 15px;
  color: #ee2f1b;
  text-align: right;
}

@media screen and (max-width: 768px) {
  #lineup {
    margin-bottom: 40px;
    padding-top: 24px;
  }

  .lineup_wrap {
    grid-template-columns: repeat(2, 1fr);
    gap: 8px;
    padding: 0;
  }

  .lineup_item {
    border-radius: 8px;
    padding: 8px;
    box-shadow: 0px 5px 5px 0px rgba(60, 60, 60, 0.35);
  }

  .lineup_txt {
    font-size: 13px;
  }

  .lineup_spdn {
    display: none;
  }
}


/*----------------------------------------------------	
　　　　　記事ページ内 カタログ請求エリア
----------------------------------------------------*/

.inquiry-area {
  margin: 0px auto 0px;
  width: 100%;
	text-align: center;
	display: block;
	vertical-align: top;
	box-sizing: border-box;
	padding: 0px 16px;
}

.inquiry-area-up {
	display: -webkit-flex;
  display: flex;
  -webkit-justify-content: space-between !important;
  justify-content: space-between !important;
  -webkit-align-items: flex-start;
  align-items: flex-start;
  margin: 0px auto 0px;
	width: 100%;
	max-width: 650px;
	vertical-align: top;
}

.inquiry-area-up img {
	text-align: center;
	width: 100%;
	display: inline;
	flex: 1;
}

.inquiry-area-under {
	margin: -15px auto 0px;
	width: 100%;
	padding: 0px 0px;
	display: block;
	vertical-align: top;
	max-width: 650px;
}

.inquiry-area-under img {
	text-align: center;
	width: 100%;
	display: inline;
	vertical-align: top;
}

.PC-catalog-area {
	display: none;
}

@media screen and (min-width:1024px){
  .inquiry-area {
    margin: 0px auto 0px;
    width: 100%;
    text-align: center;
    display: block;
    vertical-align: top;
    box-sizing: border-box;
    padding: 0px 0px;
  }

  .PC-catalog-area {
    display: block;
  }

  .smp-catalog-area {
    display: none;
  }
}

.maintext-area {
  margin: 0px 20px 20px 20px;
  text-align: center;
}

p.business-text {
  text-align: center;
  margin: 15px auto 0px;
  display: inline-block;
  font-size: 17px;
  line-height: 170%;
  width: 100%;
  color: #5c4944;
  padding: 0px;
}

p.business-text a {
  color: #5c4944;
  text-decoration: none;
  border-bottom: 1px solid #5c4944;
}


/* パソコン */
@media screen and (min-width:1024px) {
  p.business-text {
    text-align: center;
    margin: 15px auto 0px;
    display: inline-block;
    font-size: 15px;
    line-height: 170%;
    width: 100%;
    color: #5c4944;
    padding: 0px;
  }

  p.business-text a {
    color: #5c4944;
    text-decoration: none;
    border-bottom: 1px solid #5c4944;
  }
}
/*----------------------------------------------------	
            　　SNSシェアボタン
----------------------------------------------------*/
#sns-share-buttons {
  margin: 15px 0px;
}

/*----------------------------------------------------	
　ページ（カート）へ戻るボタン
----------------------------------------------------*/
#page-top {
  position: fixed;
  right: 10px;
  bottom: 40px;
  z-index: 100;
  text-align: center;
}

#page-top a {
  width: 100%;
  padding: 0;
  display: block;
}

