/* ==================================================
   TOP page renewal (2026-10)
   Append / load after style.css
================================================== */

/* ---------- KV（TOPのみ） ---------- */
.p-kv_buttons a {
  height: auto;
  min-width: min(17vw, 246px);
  min-height: min(4.5vw, 64px);
  padding-block: 10px;
}
@media screen and (max-width: 767px) {
  .p-kv_buttons a {
    min-height: 64px;
    padding-block: 10px;
  }
}
.p-kv_btn-text {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  text-align: center;
}
.p-kv_btn-label {
  font-size: inherit;
  line-height: 1.2;
}
.p-kv_btn-note {
  font-size: min(0.9vw, 10px);
  font-weight: 500;
  line-height: 1.3;
  letter-spacing: 0.02em;
}
@media screen and (max-width: 767px) {
  .p-kv_btn-note {
    font-size: 10px;
  }
}
.p-kv_buttons a.black .p-kv_btn-note {
  color: rgba(255, 255, 255, 0.85);
}
.p-kv_buttons a.white .p-kv_btn-note {
  color: #666;
}

/* ---------- 課題別活用シーン ---------- */
.p-scenario {
  padding-block: min(4.5vw, 50px) min(9vw, 100px);
}
@media screen and (max-width: 767px) {
  .p-scenario {
    padding-block: 72px;
  }
}
.p-scenario_list {
  margin-top: min(5vw, 56px);
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: min(2.9vw, 32px);
}
@media screen and (max-width: 767px) {
  .p-scenario_list {
    margin-top: 40px;
    grid-template-columns: 1fr;
    gap: 16px;
  }
}
.p-scenario_item {
  box-sizing: border-box;
  padding: min(3.8vw, 42px) min(3.8vw, 42px) min(2.9vw, 32px);
  background-color: #f8f8f8;
  border: 1px solid #eee;
  border-radius: 16px;
}
@media screen and (max-width: 767px) {
  .p-scenario_item {
    padding: 24px 20px;
    border-radius: 12px;
  }
}
.p-scenario_head {
  display: flex;
  align-items: center;
  gap: 17px;
}
.p-scenario_no {
  flex: 0 0 auto;
  font-family: "Oswald", "Barlow Condensed", sans-serif;
  font-size: min(5.4vw, 60px);
  font-weight: 700;
  line-height: 1;
  letter-spacing: 0.03em;
  color: #fdd000;
}
@media screen and (max-width: 767px) {
  .p-scenario_no {
    font-size: 40px;
  }
}
.p-scenario_title {
  flex: 1 1 auto;
  font-size: min(1.8vw, 20px);
  font-weight: 700;
  line-height: 1.5;
  letter-spacing: 0.03em;
  color: #333;
}
@media screen and (max-width: 767px) {
  .p-scenario_title {
    font-size: 16px;
    line-height: 1.4;
  }
}
.p-scenario_text {
  margin-top: 20px;
  font-size: min(1.45vw, 16px);
  font-weight: 500;
  line-height: 1.625;
  color: #333;
  text-align: justify;
}
@media screen and (max-width: 767px) {
  .p-scenario_text {
    margin-top: 16px;
    font-size: 14px;
    line-height: 1.7;
  }
}

/* ---------- AKARUMIが選ばれる理由 ---------- */
.p-benefits {
  padding-block: min(9.4vw, 104px) min(10vw, 120px);
  background-color: #eee;
}
@media screen and (max-width: 767px) {
  .p-benefits {
    padding-block: 72px;
  }
}
.p-benefits .a-head span {
  text-align: center;
}
@media screen and (max-width: 767px) {
  .p-benefits .a-head span {
    display: flex;
    flex-direction: column;
    align-items: center;
    line-height: 1.3;
  }
}
.p-benefits_list {
  margin-top: min(5vw, 56px);
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: min(3.6vw, 40px) min(3.4vw, 40px);
}
@media screen and (max-width: 767px) {
  .p-benefits_list {
    margin-top: 40px;
    grid-template-columns: 1fr;
    gap: 30px;
  }
}
.p-benefits_item {
  display: flex;
  flex-direction: column;
  align-items: center;
  box-sizing: border-box;
  padding: 24px 0 0;
  background-color: #fff;
  border-radius: 8px;
  overflow: hidden;
}
.p-benefits_img {
  width: 250px;
  height: 250px;
}
.p-benefits_img img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}
.p-benefits_content {
  box-sizing: border-box;
  width: 100%;
  padding: 24px;
}
.p-benefits_title {
  font-size: min(2.3vw, 26px);
  font-weight: 700;
  line-height: 1.35;
  letter-spacing: 0.03em;
  text-align: center;
  color: #333;
}
@media screen and (max-width: 767px) {
  .p-benefits_title {
    font-size: 26px;
    line-height: 35px;
  }
}
.p-benefits_text {
  margin-top: 24px;
  font-size: min(1.27vw, 14px);
  font-weight: 500;
  line-height: 1.85;
  color: #888;
  text-align: justify;
}
@media screen and (max-width: 767px) {
  .p-benefits_text {
    font-size: 14px;
    line-height: 26px;
  }
}

/* ---------- 主な機能（2カラムカード） ---------- */
.p-function {
  padding-block: min(9.4vw, 104px) min(10vw, 120px);
}
@media screen and (max-width: 767px) {
  .p-function {
    padding-block: 72px;
  }
}
.p-function_list {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  align-items: stretch;
  gap: min(4.3vw, 48px) min(4.3vw, 48px);
  margin-top: min(5vw, 56px);
}
@media screen and (max-width: 767px) {
  .p-function_list {
    grid-template-columns: 1fr;
    gap: 30px;
    margin-top: 40px;
  }
}
.p-function_item {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 0;
  height: 100%;
  padding: 0;
  background-color: #F8F8F8;
  box-shadow: 1px 3px 8px 0px rgba(0, 0, 0, 0.2);
  border-radius: 8px;
  overflow: hidden;
}
@media screen and (max-width: 767px) {
  .p-function_item {
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 0;
  }
}
.p-function_img {
  width: 100%;
  aspect-ratio: 526 / 296;
  background-color: #f6f6f6;
  overflow: hidden;
}
.p-function_img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
}
.p-function_content {
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  flex: 1 1 auto;
  padding: min(2.2vw, 24px);
  padding-bottom: min(3.6vw, 40px);
}
@media screen and (max-width: 767px) {
  .p-function_content {
    padding: 24px;
    padding-bottom: 40px;
  }
}
.p-function_content h3 {
  display: flex;
  flex-direction: column;
}
.p-function_content h3 small {
  font-family: "Oswald", sans-serif;
  font-size: min(1.4vw, 16px);
  font-weight: 400;
  color: #aaa;
  letter-spacing: 0.03em;
  line-height: 1;
}
@media screen and (max-width: 767px) {
  .p-function_content h3 small {
    font-size: 14px;
  }
}
.p-function_content h3 span {
  margin-top: 8px;
  font-family: "Noto Sans JP", "Inter", sans-serif;
  font-size: min(2.9vw, 32px);
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: 0.03em;
  color: #333;
}
@media screen and (max-width: 767px) {
  .p-function_content h3 span {
    font-size: 26px;
  }
}
.p-function_content p {
  margin-top: min(1.5vw, 16px);
  margin-bottom: auto;
  font-size: min(1.45vw, 16px);
  font-weight: 500;
  line-height: 1.6;
  color: #666;
}
@media screen and (max-width: 767px) {
  .p-function_content p {
    margin-top: 12px;
    font-size: 14px;
  }
}
.p-function_item-link {
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  box-sizing: border-box;
  align-self: center;
  margin-top: min(2.2vw, 24px);
  min-height: 64px;
  padding-block: 12px;
  padding-inline: 32px;
  max-width: 290px;
  width: 100%;
  font-size: 16px;
  font-weight: 400;
  line-height: 1;
  color: #333;
  text-decoration: none;
  background-color: transparent;
  border: 1px solid #333;
  border-radius: 40px;
  box-shadow: none;
  transition: 0.3s ease opacity;
}
.p-function_item-link::before {
  content: "";
  display: block;
  width: 16px;
  flex-shrink: 0;
}
.p-function_item-link:hover {
  opacity: 0.6;
}
.p-function_item-link_icon {
  display: block;
  flex-shrink: 0;
  width: 16px;
  height: 16px;
}
.p-function_foot {
  display: flex;
  justify-content: center;
  margin-top: min(5vw, 56px);
}
@media screen and (max-width: 767px) {
  .p-function_foot {
    margin-top: 40px;
  }
}

/* ---------- ご利用の流れ ---------- */
.p-flow {
  padding-block: min(7.2vw, 80px) min(9vw, 100px);
}
@media screen and (max-width: 767px) {
  .p-flow {
    padding-block: 72px;
  }
}
.p-flow_list {
  position: relative;
  display: flex;
  align-items: stretch;
  gap: 0;
  margin-top: min(5vw, 56px);
}
@media screen and (max-width: 767px) {
  .p-flow_list {
    flex-direction: column;
    gap: 32px;
    margin-top: 40px;
  }
}
.p-flow_item {
  position: relative;
  flex: 1 1 0;
  box-sizing: border-box;
  padding: min(4.3vw, 48px) min(2.2vw, 24px) min(2.2vw, 24px);
  background-color: #f8f8f8;
  border-radius: 16px;
}
@media screen and (max-width: 767px) {
  .p-flow_item {
    padding: 48px 24px 24px;
  }
}
.p-flow_no {
  position: absolute;
  top: min(-1vw, -30px);
  left: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 60px;
  height: 60px;
  margin-left: -30px;
  font-family: "Oswald", sans-serif;
  font-size: 24px;
  font-weight: 700;
  color: #333;
  background-color: #fdd000;
  border-radius: 50%;
}
@media screen and (max-width: 767px) {
  .p-flow_no {
    top: -24px;
    width: 48px;
    height: 48px;
    margin-left: -24px;
    font-size: 20px;
  }
}
.p-flow_title {
  font-size: min(2.3vw, 26px);
  font-weight: 700;
  line-height: 1.35;
  letter-spacing: 0.03em;
  text-align: center;
  color: #333;
}
@media screen and (max-width: 767px) {
  .p-flow_title {
    font-size: 22px;
  }
}
.p-flow_text {
  margin-top: min(2.2vw, 24px);
  font-size: min(1.27vw, 14px);
  font-weight: 500;
  line-height: 1.8;
  color: #666;
  text-align: justify;
}
@media screen and (max-width: 767px) {
  .p-flow_text {
    margin-top: 16px;
    font-size: 14px;
  }
}
.p-flow_arrow {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  width: min(6vw, 67px);
}
.p-flow_arrow img {
  display: block;
  width: min(2.2vw, 24px);
  height: auto;
}
@media screen and (max-width: 767px) {
  .p-flow_arrow {
    width: 100%;
    height: 40px;
  }
  .p-flow_arrow img {
    width: 20px;
    transform: rotate(90deg);
  }
}
.p-flow_foot {
  display: flex;
  justify-content: center;
  margin-top: min(5vw, 56px);
  /* freeバッジ分の上余白 */
  padding-top: min(2.4vw, 28px);
}
@media screen and (max-width: 767px) {
  .p-flow_foot {
    margin-top: 40px;
    padding-top: 28px;
  }
}
.p-flow_foot .a-button2 {
  flex: 0 0 auto;
  display: grid;
  place-content: center;
  box-sizing: border-box;
  /* 他セクション末尾ボタン（252×64）に揃える */
  width: 252px;
  max-width: 100%;
  height: auto;
  min-height: 64px;
  padding-block: 12px;
  font-size: 16px;
  box-shadow: 0 0 16px rgba(0, 0, 0, 0.15);
}
.p-flow_foot .a-button2 img {
  position: absolute;
  top: -28px;
  left: 50%;
  transform: translate(-50%, 0);
}
.p-flow_foot .a-button2 img.free {
  width: 130px;
}
.p-flow_foot .a-button2.black .p-kv_btn-note {
  color: rgba(255, 255, 255, 0.85);
}

/* ---------- サポート ---------- */
.p-support {
  padding-block: min(9.4vw, 104px) min(10vw, 120px);
  background-color: #eee;
}
@media screen and (max-width: 767px) {
  .p-support {
    padding-block: 72px;
  }
}
.p-support_list {
  margin-top: min(5vw, 56px);
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  align-items: stretch;
  gap: min(2.7vw, 30px);
}
@media screen and (max-width: 767px) {
  .p-support_list {
    margin-top: 40px;
    grid-template-columns: 1fr;
    gap: 30px;
  }
}
.p-support_item {
  display: flex;
  flex-direction: column;
  align-items: center;
  height: 100%;
  box-sizing: border-box;
  padding: min(3.6vw, 40px) min(2.2vw, 24px) min(1.8vw, 20px);
  background-color: #fff;
  border-radius: 8px;
}
@media screen and (max-width: 767px) {
  .p-support_item {
    padding: 40px 24px 20px;
  }
}
.p-support_img {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  max-width: 203px;
  height: 120px;
}
.p-support_img img {
  max-width: 100%;
  max-height: 100%;
  width: auto;
  height: auto;
}
.p-support_title {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  margin-top: min(2.2vw, 24px);
  font-size: min(2.3vw, 26px);
  font-weight: 700;
  line-height: 1.35;
  letter-spacing: 0.03em;
  text-align: center;
  color: #333;
}
@media screen and (max-width: 767px) {
  .p-support_title {
    margin-top: 24px;
    font-size: 26px;
  }
}
.p-support_title-line {
  display: inline-block;
  padding: 0 2px 2px;
  line-height: 1.35;
  background: linear-gradient(transparent calc(100% - 13px), #fdd000 calc(100% - 13px));
}
.p-support_box {
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  flex: 1 1 auto;
  width: 100%;
  margin-top: min(2.2vw, 24px);
  padding: min(2.2vw, 24px);
  background-color: #f6f6f6;
  border-radius: 8px;
}
.p-support_box .p-support_points {
  width: 100%;
}
@media screen and (max-width: 767px) {
  .p-support_box {
    margin-top: 24px;
    padding: 24px;
  }
}
.p-support_badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 8px;
  font-family: "Plus Jakarta Sans", "Noto Sans JP", sans-serif;
  font-size: 16px;
  font-weight: 700;
  letter-spacing: 0.03em;
  color: #fff;
  background-color: #333;
  border-radius: 8px;
}
.p-support_points {
  margin: 12px 0 0;
  padding-left: 1.4em;
  list-style: disc;
  list-style-type: disc;
  font-size: min(1.27vw, 14px);
  font-weight: 700;
  line-height: 1.8;
  letter-spacing: 0.03em;
  color: #333;
}
@media screen and (max-width: 767px) {
  .p-support_points {
    font-size: 14px;
  }
}
.p-support_points li {
  display: list-item;
  list-style: disc;
  list-style-type: disc;
}
.p-support_points li + li {
  margin-top: 0;
}
.p-support_foot {
  display: flex;
  justify-content: center;
  margin-top: min(5vw, 56px);
}
@media screen and (max-width: 767px) {
  .p-support_foot {
    margin-top: 40px;
  }
}
.p-support_btn {
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  box-sizing: border-box;
  min-height: 64px;
  padding-block: 12px;
  padding-inline: 32px;
  max-width: 252px;
  width: 100%;
  font-size: 16px;
  font-weight: 400;
  line-height: 1;
  color: #fff;
  text-decoration: none;
  background-color: #333;
  border-radius: 40px;
  box-shadow: 0 0 16px rgba(0, 0, 0, 0.15);
  transition: 0.3s ease opacity;
}
.p-support_btn::before {
  content: "";
  display: block;
  width: 16px;
  flex-shrink: 0;
}
.p-support_btn:hover {
  opacity: 0.6;
}
.p-support_btn_icon {
  display: block;
  flex-shrink: 0;
  width: 16px;
  height: 16px;
}

/* ---------- 導入事例（TOP・#sec-works のみ。ナレッジには影響させない） ---------- */
#sec-works.knowledge-archive__list.category {
  margin-bottom: 0;
}

/* ---------- plan spacing after support ---------- */
.p-plan {
  padding-top: 0;
}
