@charset "utf-8";
/* =====================================================================
   特定保健指導セクション用スタイル
   health-guidance.css
   ===================================================================== */

/* ----- 基本レイアウト ----- */
.hg-intro {
  padding: 20px;
}

.hg-intro-text {
  font-size: 1.7em;
  line-height: 1.8;
  margin-bottom: 1.5em;
}

/* ----- 導入文＆判定基準ボックス ----- */
.hg-criteria-box {
  background-color: #ffffff;
  border-radius: 20px;
  padding: 30px;
  margin: 2em 0;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
}

.hg-criteria-box .hg-intro {
  padding: 0;
  margin-bottom: 1.5em;
}

/* ----- 判定基準セクション ----- */
.hg-criteria-section {
  margin-bottom: 0;
}

@media (max-width: 767px) {
  .hg-criteria-box {
    padding: 20px 15px;
    margin: 1.5em 0;
  }
}

#subPage .main h3.hg-criteria-title,
.hg-criteria-title {
  background: linear-gradient(135deg, #1875d2 0%, #004dcd 100%) !important;
  color: #ffffff !important;
  font-size: 24px !important;
  font-weight: bold !important;
  margin: 0 0 25px !important;
  text-align: center !important;
  padding: 18px 30px !important;
  border-radius: 10px !important;
  position: relative !important;
  box-shadow: 0 4px 10px rgba(0, 77, 205, 0.3) !important;
}

@media (max-width: 767px) {
  #subPage .main h3.hg-criteria-title,
  .hg-criteria-title {
    font-size: 18px !important;
    line-height: 1.4 !important;
    margin: 0 0 20px !important;
    padding: 15px 20px !important;
  }
}

.hg-criteria-desc {
  font-size: 1.5em;
  text-align: center;
  margin-bottom: 1.5em;
}

.hg-text-red {
  color: #e74c3c;
}

.hg-text-orange {
  color: #f39c12;
}

.hg-text-blue {
  color: #3498db;
}

.hg-text-purple {
  color: #9b59b6;
}

.hg-text-gray {
  color: #666;
}

.hg-text-dark {
  color: #333;
}

/* ----- 判定フロー図 ----- */
.hg-flow {
  background: linear-gradient(135deg, #f8f9fa 0%, #e8f4f8 100%);
  border-radius: 15px;
  padding: 25px;
  margin: 20px auto;
  max-width: 850px;
}

/* 腹囲・BMI基準ボックス */
.hg-boxes {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
  margin-bottom: 20px;
}

.hg-box {
  background: #fff;
  border: 3px solid #01ACDC;
  border-radius: 10px;
  padding: 15px 25px;
  text-align: center;
}

.hg-box-title {
  font-size: 1.3em;
  font-weight: bold;
  color: #01ACDC;
  margin: 0;
}

.hg-box-value {
  font-size: 1.2em;
  margin: 5px 0;
}

.hg-box-value-last {
  font-size: 1.2em;
  margin: 0;
}

.hg-box-note {
  font-size: 0.9em;
  color: #666;
  margin: 0;
}

.hg-plus {
  font-size: 2em;
  color: #01ACDC;
}

/* ----- 支援カード ----- */
.hg-support-cards {
  display: flex;
  justify-content: center;
  gap: 30px;
  flex-wrap: wrap;
  margin-top: 20px;
}

.hg-support-card {
  border-radius: 15px;
  padding: 20px;
  text-align: center;
  min-width: 280px;
  color: #fff;
}

.hg-support-card-active {
  background: linear-gradient(135deg, #e74c3c, #c0392b);
  box-shadow: 0 4px 15px rgba(231, 76, 60, 0.3);
}

.hg-support-card-motivation {
  background: linear-gradient(135deg, #f39c12, #d68910);
  box-shadow: 0 4px 15px rgba(243, 156, 18, 0.3);
}

.hg-support-subtitle {
  font-size: 1.1em;
  margin: 0 0 5px;
}

.hg-support-count {
  font-size: 1.8em;
  font-weight: bold;
  margin: 0 0 10px;
}

.hg-support-inner {
  background: #fff;
  border-radius: 10px;
  padding: 10px;
  margin-top: 10px;
}

.hg-support-card-active .hg-support-inner {
  color: #e74c3c;
}

.hg-support-card-motivation .hg-support-inner {
  color: #f39c12;
}

.hg-support-name {
  font-size: 1.3em;
  font-weight: bold;
  margin: 0;
}

.hg-support-desc {
  font-size: 1em;
  margin: 5px 0 0;
  color: #333;
}

/* ----- 追加リスク ----- */
.hg-risk {
  background: #fff;
  border: 2px solid #01ACDC;
  border-radius: 10px;
  padding: 20px;
  margin-top: 25px;
}

.hg-risk-title {
  font-size: 1.3em;
  font-weight: bold;
  color: #01ACDC;
  text-align: center;
  margin: 0 0 15px;
}

.hg-risk-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 10px;
}

.hg-risk-item {
  background: #f8f9fa;
  padding: 10px 15px;
  border-radius: 8px;
}

.hg-risk-item p {
  font-size: 1.1em;
  margin: 0;
}

.hg-risk-item-1 {
  border-left: 4px solid #e74c3c;
}

.hg-risk-item-2 {
  border-left: 4px solid #f39c12;
}

.hg-risk-item-3 {
  border-left: 4px solid #3498db;
}

.hg-risk-item-4 {
  border-left: 4px solid #9b59b6;
}

.hg-risk-note {
  font-size: 0.9em;
  color: #666;
  text-align: center;
  margin: 15px 0 0;
}

/* ----- メリットセクション ----- */
.hg-merit-section {
  margin: 0 0 1em;
}

#subPage .main h3.hg-merit-title,
.hg-merit-title {
  background: linear-gradient(135deg, #1875d2 0%, #004dcd 100%) !important;
  color: #ffffff !important;
  font-size: 24px !important;
  font-weight: bold !important;
  margin: 0 0 25px !important;
  text-align: center !important;
  padding: 18px 30px !important;
  border-radius: 10px !important;
  position: relative !important;
  box-shadow: 0 4px 10px rgba(0, 77, 205, 0.3) !important;
}

@media (max-width: 767px) {
  #subPage .main h3.hg-merit-title,
  .hg-merit-title {
    font-size: 18px !important;
    line-height: 1.4 !important;
    margin: 0 0 20px !important;
    padding: 15px 20px !important;
  }
}

.hg-merit-container {
  max-width: 100%;
  flex-direction: row !important;
  gap: 20px !important;
}

.hg-merit-box {
  padding-top: 50px;
  width: auto !important;
  flex: 1 !important;
}

@media (max-width: 767px) {
  .hg-merit-container {
    flex-direction: column !important;
  }

  .hg-merit-box {
    width: 100% !important;
    flex: none !important;
  }
}

#subPage .main .hg-merit-box .point-title,
#subPage .main .hg-merit-box p.point-title,
.hg-merit-box .point-title {
  background-color: #004dcd !important;
}

.hg-merit-box {
  background-color: #ffffff !important;
  border: 1px solid #004dcd !important;
}

#subPage .main p.hg-merit-heading,
.hg-merit-heading {
  font-size: 1.6rem !important;
  font-weight: bold !important;
  color: #004dcd !important;
  margin: 15px 0 15px !important;
  line-height: 1.4 !important;
}

#subPage .main p.hg-merit-text,
.hg-merit-text {
  font-size: 1.6em !important;
  line-height: 1.8 !important;
  text-align: left !important;
}

.hg-merit-image {
  text-align: center;
  margin: 15px 0 20px;
}

.hg-merit-image img {
  max-width: 200px;
  height: auto;
}

@media (max-width: 767px) {
  #subPage .main p.hg-merit-heading,
  .hg-merit-heading {
    font-size: 1.6rem !important;
  }

  #subPage .main p.hg-merit-text,
  .hg-merit-text {
    font-size: 1.4em !important;
  }
}

/* ----- リンクセクション ----- */
.hg-link-section {
  text-align: center;
  margin: 3em 0 1em;
  padding-top: 2em;
}

.hg-link-section .gradient-button {
  width: auto;
  max-width: 100%;
  padding: 15px 50px;
}

/* ----- レスポンシブ対応 ----- */
@media (max-width: 767px) {
  .hg-criteria-title,
  .hg-merit-title {
    font-size: 2em !important;
  }

  .hg-criteria-desc {
    font-size: 1.3em;
  }

  .hg-flow {
    padding: 15px;
  }

  .hg-boxes {
    flex-direction: column;
    gap: 15px;
  }

  .hg-plus {
    transform: rotate(90deg);
  }

  .hg-support-cards {
    flex-direction: column;
    gap: 20px;
  }

  .hg-support-card {
    min-width: 100%;
  }

  .hg-risk-grid {
    grid-template-columns: 1fr;
  }

  .hg-merit-container {
    flex-direction: column;
  }

  .hg-merit-box {
    width: 100%;
  }

  .hg-merit-heading {
    font-size: 1.2em;
  }

  .hg-merit-text {
    font-size: 1.1em !important;
  }

  .hg-link-button {
    font-size: 1rem !important;
    padding: 1rem 1.5rem;
  }
}

/* ----- 判定フロー図（画像） ----- */
.hg-flow-image {
  text-align: center;
  margin: 20px auto;
  max-width: 800px;
}

.hg-flow-image img {
  width: 100%;
  height: auto;
  border-radius: 10px;
}

@media (max-width: 767px) {
  .hg-flow-image {
    max-width: 100%;
    margin: 15px auto;
  }
}

/* ----- メリット＆リンクボックス ----- */
.hg-merit-link-box {
  background-color: #ffffff;
  border-radius: 20px;
  padding: 30px;
  margin: 2em 0;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
}

.hg-merit-link-box .hg-merit-section {
  margin: 0 0 1em;
}

.hg-merit-link-box .hg-link-section {
  margin: 2em 0 0;
}

@media (max-width: 767px) {
  .hg-merit-link-box {
    padding: 20px 15px;
    margin: 1.5em 0;
  }
}





