/* General Section Styling */
.keisho-main {
  background-color: #fff;
}

.keisho-section-title {
  text-align: center;
  font-size: 2.2rem;
  font-weight: bold;
  margin-bottom: 60px;
}

.keisho-section-title span {
  color: var(--keisho-color);
}

/* Hero Section */
.keisho-hero {
  background-image: url("../img/keisho/first_view.jpg");
  background-size: cover;
  background-position: center;
  height: 80vh;
  text-align: left;
  color: #333;
  position: relative;
}

@media (min-width: 768px) {
  .keisho-hero {
    height: 70vh;
  }
}
.keisho-hero-container {
  display: flex;
  flex-wrap: wrap;
  vertical-align: middle;
  padding: 16px;
  max-width: 80vw;
  margin: 0 auto;
  height: 60vh;
}
.keisho-hero-content {
  max-width: 1200px;
  margin: 0 auto;
  background-color: rgba(255, 255, 255, 0.95);
  padding: 40px;
  border-radius: 10px;
  width: fit-content;
  position: absolute;
  bottom: 0;
  left: 0;
}
.keisho-hero-content h1 {
  font-size: 3rem;
  font-weight: bold;
  margin-bottom: 20px;
  color: #f7ab00;
}
.keisho-hero-content h2 {
  font-size: 1.75rem;
}

.keisho-hero-content p {
  font-size: 1.2rem;
  font-weight: 700;
  line-height: 1.8;
  margin-bottom: 1rem;
}
.keisho-hero-content strong {
  color: red;
}
.keisho-hero-logo {
  width: 35%;
  display: flex;
}
.keisho-hero-logo img {
  width: 100%;
  object-fit: contain;
}

@media (max-width: 768px) {
  .keisho-hero-container {
    height: 100vh;
  }
  .keisho-hero-content {
    width: 80%;
    padding: 8px;
  }
  .keisho-hero-content h1 {
    font-size: 2rem;
  }
  .keisho-hero-content h2 {
    font-size: 1.5rem;
  }
  .keisho-hero-content p {
    font-size: 1rem;
  }
  .keisho-hero-logo {
    width: 100%;
  }
}

/* Feature Section */
.keisho-feature {
  padding: 80px 20px;
  background-color: #fdfaf2;
  text-align: center;
}

.keisho-feature-items {
  display: flex;
  flex-direction: column;
  gap: 30px;
  max-width: 800px;
  margin: 0 auto;
  border: 3px solid #ecdb9f;
  border-radius: 20px;
  padding: 16px 24px;
}

.keisho-feature-item {
  display: flex;
  align-items: center;
  text-align: left;
  gap: 20px;
}

.keisho-feature-item-icon img {
  width: 80px;
  height: 80px;
}
.keisho-feature-item-text {
  width: 30%;
}
.keisho-feature-item-text h3 {
  display: inline-block;
  font-size: 1.75rem;
  font-weight: bold;
  border-bottom: 2px dotted #ccc;
  padding-bottom: 10px;
  margin-bottom: 10px;
}

.keisho-feature-item p {
  font-size: 1.1rem;
  font-weight: 700;
}

@media (max-width: 768px) {
  .keisho-feature-items {
    padding: 8px;
  }
  .keisho-feature-item {
    flex-wrap: wrap;
    margin-bottom: 2em;
  }
  .keisho-feature-item p {
    width: 100%;
    text-align: center;
    margin: 0;
  }
  .keisho-feature-item-text {
    width: 70%;
  }
}

/* Nayami Section */
.keisho-nayami {
  padding: 80px 20px;
}

.nayami-title-container {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 20px;
  margin-bottom: -10px;
  position: relative;
  z-index: 1;
}
@media (min-width: 768px) {
  .nayami-title-container {
    margin-bottom: -40px;
  }
}

.keisho-nayami .keisho-section-title {
  margin-bottom: 0;
  margin-top: 0;
}

.nayami-image {
  width: 120px;
}
@media (min-width: 768px) {
  .nayami-image {
    width: 180px;
  }
}
.keisho-nayami-content {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 50px;
  max-width: 1000px;
  margin: 0 auto;
  border: 2px dashed #f0e68c;
  padding: 24px;
  border-radius: 10px;
  position: relative;
  z-index: 0;
  background-color: #fff;
}

.keisho-nayami-content ul {
  list-style: none;
  padding: 0;
  flex-grow: 1;
}

.keisho-nayami-content li {
  font-size: 1.2rem;
  margin-bottom: 15px;
  padding-left: 40px;
  background-image: url("../img/keisho/chechbox.png");
  background-repeat: no-repeat;
  background-position: left center;
  background-size: 30px;
}
.keisho-nayami-content li strong {
  background: linear-gradient(transparent 50%, #ecdb9f 50%);
}

.keisho-nayami-img img {
  max-width: 150px;
}

/* Yobo Section */
.keisho-yobo {
  padding: 80px 20px;
  background-color: #fdfaf2;
}

.keisho-yobo-cards {
  display: flex;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
  max-width: 1200px;
  margin: 40px auto 0px;
  flex-wrap: wrap;
  justify-content: center;
}

/* Solution Section */
.keisho-solution {
  padding: 80px 20px;
  position: relative;
}

.keisho-solution::before {
  content: ""; /* 疑似要素には必須 */
  position: absolute;
  top: calc(150px / 2);
  left: 50%;

  /* 中央に配置するための調整 */
  transform: translate(-50%, -100%);

  clip-path: polygon(0 0, 100% 0, 50% 100%);
  height: calc(150px / 2);
  width: 150px;
  background: #fdfaf2;
}

.keisho-solution .keisho-section-title {
  font-size: 2.5rem;
}

.keisho-solution-items {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 40px;
  max-width: 1000px;
  margin: 0 auto;
}

.keisho-solution-item {
  padding: 30px;
  border: 2px solid #f0e68c;
  border-radius: 10px;
  text-align: center;
}

.keisho-solution-item h3 {
  font-size: 1.5rem;
  margin-bottom: 20px;
  font-weight: bold;
}

.keisho-solution-item h3 span {
  display: inline-block;
  background: linear-gradient(transparent 50%, #ecdb9f 50%);
}

.keisho-solution-item p {
  font-size: 1.25rem;
  text-align: left;
}

/* CTA Section */
.keisho-cta {
  padding: 80px 20px;
  background-color: #fdfaf2;
}

.keisho-cta-content {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 50px;
  max-width: 1000px;
  margin: 0 auto;
}

.keisho-cta-text {
  text-align: left;
}

.keisho-cta-text h2 {
  font-size: 2.2rem;
  font-weight: bold;
  line-height: 1.6;
}

@media (max-width: 768px) {
  .keisho-cta-text h2 {
    font-size: 1.6rem;
  }
}

.keisho-cta-text .company-name {
  margin-top: 20px;
  font-size: 1.2rem;
  display: flex;
  align-items: center;
}

.keisho-cta-text .company-name::before {
  content: "";
  width: 30px;
  height: 1px;
  background-color: #333;
  margin-right: 15px;
}

.keisho-cta-text p {
  font-size: 1.25rem;
  line-height: 2;
  margin-top: 20px;
}

.keisho-cta-text p span {
  background: linear-gradient(transparent 50%, #f5f839 50%);
}

.keisho-cta-image img {
  max-width: 250px;
}

.keisho-cta-logo {
  text-align: center;
  margin-top: 40px;
  height: 20vh;
}

.keisho-cta-logo img {
  height: 100%;
}

/* Responsive */
@media (max-width: 768px) {
  .keisho-yobo-cards {
    grid-template-columns: 1fr;
  }
  .keisho-solution-items {
    grid-template-columns: 1fr;
  }
  .keisho-nayami-content,
  .keisho-cta-content {
    flex-direction: column;
  }
  .card {
    width: 90%;
  }
}

/* カード全体のコンテナ */
.card {
  width: 320px;
  border-radius: 16px; /* カードの角丸 */
  position: relative;
  padding: 0;
  margin-top: 30px; /* タブがはみ出すためのスペース */
  border-radius: 5px;
  border: 3px solid #ecdb9f;
  background: #fff;
}

/* 上部のタブ */
.card-tab {
  width: 120px;
  height: 45px;
  background-color: #ecdb9f;
  border-radius: 240px 240px 0 0;

  color: #333;
  font-size: 28px;
  font-weight: bold;

  position: absolute;
  top: -50px; /* カードの上にはみ出す */
  left: 50%;
  transform: translateX(-50%);

  display: flex;
  justify-content: center;
  align-items: center;
  padding-bottom: 5px; /* 微調整 */
}

/* ヘッダータイトル */
.card-header {
  background-color: #ecdb9f;
}

.card-header h2 {
  margin: 0;
  font-size: 24px;
  color: #3a3a3a;
  text-align: center;
  padding-top: 16px;
  padding-bottom: 16px;
}

/* メインコンテンツ（白い部分） */
.card-content {
  background-color: #fff;
  padding: 20px;
}

.card-content ul {
  list-style: none;
  padding-left: 0;
}

.card-content img {
  max-width: 80%;
  height: auto;
  display: block;
  margin: 0 auto 20px auto; /* 画像を中央に配置 */
}

/* チェックリストのテキスト */
.card-content ul li {
  margin: 0;
  color: #3a3a3a;
  font-size: 1.25rem;
  line-height: 1.7;
  position: relative; /* 疑似要素の基準 */
  padding-left: 24px; /* アイコンの分だけ左に余白 */
}

/* チェックボックスのアイコンを疑似要素で作成 */
.card-content ul li::before {
  content: "☑"; /* 表示するアイコン */
  position: absolute;
  left: 0;
  top: 2px;
  color: #3a3a3a;
  font-size: 18px;
}

.over-dots {
  text-emphasis-style: ".";
  text-emphasis-position: over;
  -webkit-text-emphasis-style: "."; /* Safari, Chrome */
  -webkit-text-emphasis-position: over;
}

.keisho-solution-item h3::before {
  content: "";
  display: inline-block;
  width: 50px;
  height: 50px;
  background-size: contain;
  background-repeat: no-repeat;
  margin-right: 10px;
  vertical-align: middle;
}

.solution-item-1 h3::before {
  background-image: url("../img/keisho/kaiketsu1.png");
}

.solution-item-2 h3::before {
  background-image: url("../img/keisho/kaiketsu2.png");
}

.solution-item-3 h3::before {
  background-image: url("../img/keisho/kaiketsu3.png");
}

.solution-item-4 h3::before {
  background-image: url("../img/keisho/kaiketsu4.png"); /* 4つ目の画像がないため、仮で1つ目を指定 */
}

/* Price Table Section */
.keisho-price {
  padding: 80px 20px;
  background-color: #fff;
}

.price-table-container {
  max-width: 1000px;
  margin: 0 auto;
  overflow-x: auto;
}

table {
  width: 100%;
  border-collapse: collapse;
  text-align: center;
  font-size: 1.1rem;
  border: 1px solid #ccc;
}

th,
td {
  padding: 20px;
  border: 1px solid #ccc;
  min-width: 8em;
}

thead th {
  background-color: #f2f2f2;
  font-weight: bold;
}

tbody th {
  background-color: #f9f9f9;
  font-weight: bold;
  text-align: left;
}

thead th.highlight {
  background-color: #ff932e;
  color: #fff;
  border: 5px solid #ff932e;
}

tbody td.highlight {
  background-color: #fff3e0;
  font-size: 1.5rem;
  padding: 8px;
  font-weight: 700;
  border-right: 5px solid #ff932e;
  border-left: 5px solid #ff932e;
}
tbody tr:nth-child(5) td.highlight {
  border-bottom: 5px solid #ff932e;
}
tbody td.highlight strong {
  font-size: 2.5rem;
  font-weight: bold;
}

tbody td.highlight .td-small {
  font-size: 0.7rem;
}

.price-table-caption {
  max-width: 1000px;
  margin: 20px auto 0;
  text-align: left;
  font-size: 0.9rem;
  color: #666;
}

/* FAQ */
.keisho-faq {
  padding: 0 8px;
}

/* keisho-flow
------------------------------------------------------------*/
.keisho-flow {
  padding: 60px 20px;
  text-align: center;
}

.keisho-flow .keisho-section-title {
  margin-bottom: 20px;
}

.keisho-flow .flow-subtitle {
  font-size: 24px;
  font-weight: bold;
  color: #333;
  margin-bottom: 60px;
  display: inline-block;
}

.keisho-flow .flow-subtitle span {
  background: linear-gradient(transparent 60%, #fff2ab 60%);
}

.flow-steps-container {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 20px 40px;
  max-width: 1000px;
  margin: 0 auto;
}

.flow-step-item {
  position: relative;
  width: 160px;
  margin-bottom: 3em;
}

.flow-step-content {
  position: relative;
  background-color: #fff9e6;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-height: 120px;
  box-shadow: 3px 3px #f1c83e;
}

.flow-step-item .step-number {
  position: absolute;
  top: -1.5em;
  left: calc(50% - 0.5em);
  color: #43a047;
  font-weight: bold;
  font-size: 1.5em;
  margin: 0;
  text-align: center;
  line-height: 1;
}
.flow-step-item .step-number span {
  font-size: 0.75rem;
}

.flow-step-item .step-desc {
  font-size: 0.9em;
  font-weight: 700;
  line-height: 1.6;
  color: #333;
  height: 3em;
}

.flow-step-item:not(.is-cost)::after {
  content: "▶";
  color: #43a047;
  position: absolute;
  top: 50%;
  right: -28px;
  transform: translateY(-50%);
  font-size: 20px;
}

.flow-step-item.is-cost {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  font-weight: bold;
  min-height: 120px;
}
.flow-step-item.is-cost .step-desc {
  margin: 0;
  height: 1.5em;
  background: linear-gradient(transparent 50%, #ffd13b 50%);
}
.flow-step-item.is-cost img {
  height: calc(160px - 3.5em);
}

@media (max-width: 1100px) {
  .flow-steps-container {
    gap: 20px 30px;
  }
  .flow-step-item {
    width: 150px;
  }
  .flow-step-item:not(.is-cost):not(:nth-of-type(5n))::after {
    right: -22px;
  }
}

@media (max-width: 992px) {
  .flow-step-item:not(.is-cost)::after {
    display: none; /* Hide arrows on tablet and mobile */
  }
  .flow-steps-container {
    gap: 20px;
  }
  .flow-step-item {
    width: calc(33.33% - 14px);
  }
}

@media (max-width: 767px) {
  .flow-steps-container {
    flex-direction: column;
    align-items: center;
    gap: 30px;
  }
  .flow-step-item {
    width: 80%;
    max-width: 300px;
  }
  .flow-step-item:not(.is-cost)::after {
    display: block;
    content: "▼";
    top: auto;
    bottom: -25px;
    left: 50%;
    right: auto;
    transform: translateX(-50%);
  }
  .flow-step-item:last-of-type::after {
    display: none;
  }
  .flow-step-item.is-cost .step-desc {
    font-size: 1.5rem;
  }

  .flow-step-item.is-cost img {
    height: calc(160px - 1.1rem);
  }
}
