@charset "utf-8";
/* 医療費控除・マイナポータル・セルフメディケーション税制セクション用スタイル */

/* =====================================================================
   トップページボタン
   ===================================================================== */

.css-button {
  display: inline-block;
  background-color: #ffffff;
  color: #01abb4;
  border: 1px solid #01abb4;
  padding: 15px 20px;
  text-decoration: none;
  font-size: 16px;
  font-weight: bold;
  transition: all 0.3s ease;
  margin: 0 10px;
  width: 280px;
  text-align: center;
  box-sizing: border-box;
  font-family: "ヒラギノ丸ゴ ProN W4", "Hiragino Maru Gothic ProN", "メイリオ", Meiryo, sans-serif;
}

.css-button:hover {
  background-color: #01abb4;
  color: #ffffff;
  transform: scale(1.05);
  box-shadow: 0 4px 10px rgba(1, 171, 180, 0.3);
}

/* =====================================================================
   医療費控除セクション
   ===================================================================== */

/* メインセクション */
.medical-section {
  background-color: #fff;
  padding: 30px 20px;
  margin-bottom: 40px;
  border-radius: 10px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  opacity: 0;
  transform: scale(0.9);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.medical-section.animate-in {
  opacity: 1;
  transform: scale(1);
}

/* セクションタイトル */
.medical-section-title {
  color: #4db8d8;
  font-size: 32px;
  font-weight: bold;
  margin-bottom: 15px;
  text-align: center;
}

/* セクション説明文 */
.medical-section-text {
  font-size: 14px;
  line-height: 1.8;
  margin-bottom: 30px;
}

/* 計算式ボックス */
.calculation-box {
  background-color: white;
  padding: 30px;
  border-radius: 10px;
  margin-bottom: 30px;
  border: 2px solid #4db8d8;
}

.calculation-title {
  text-align: center;
  font-size: 24px;
  font-weight: bold;
  margin-bottom: 30px;
  color: #333;
}

/* 計算式フレックスコンテナ */
.calculation-formula {
  display: flex;
  align-items: stretch;
  justify-content: center;
  flex-wrap: nowrap;
  gap: 15px;
}

/* 計算式要素 - 結果 */
.formula-result {
  background-color: #4db8d8;
  color: white;
  padding: 20px 15px;
  border-radius: 10px;
  width: 150px;
  text-align: center;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.formula-result .label {
  font-size: 14px;
  margin-bottom: 5px;
}

/* 計算式要素 - 演算子 */
.formula-operator {
  font-size: 32px;
  font-weight: bold;
  color: #333;
  display: flex;
  align-items: center;
}

/* 計算式要素 - 項目 */
.formula-item {
  border: 2px solid #4db8d8;
  padding: 20px 15px;
  border-radius: 10px;
  width: 150px;
  text-align: center;
  background-color: white;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.formula-item .label {
  font-size: 14px;
  margin-bottom: 5px;
}

/* 計算式要素 - 閾値 */
.formula-threshold {
  border: 2px solid #4db8d8;
  padding: 20px 15px;
  border-radius: 10px;
  width: 250px;
  text-align: center;
  background-color: white;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.formula-threshold .amount {
  font-size: 20px;
  font-weight: bold;
  margin-bottom: 8px;
}

.formula-threshold .note {
  font-size: 11px;
  line-height: 1.6;
}

/* 注釈 */
.calculation-note {
  font-size: 12px !important;
  margin-top: 20px;
}

/* 注意書き */
.medical-notice {
  font-size: 12px !important;
  line-height: 1.8;
  margin-bottom: 0;
  text-indent: -1em;
  padding-left: 1em;
}

/* =====================================================================
   対象となる費用・ならない費用
   ===================================================================== */

.expense-container {
  display: flex;
  gap: 15px;
  margin-bottom: 20px;
  flex-wrap: wrap;
  align-items: stretch;
}

/* 対象となる費用カード */
.expense-card-eligible {
  flex: 1;
  min-width: 300px;
  background: linear-gradient(135deg, #4db8d8 0%, #3aa0c0 100%);
  border-radius: 15px;
  padding: 20px;
  color: white;
  display: flex;
  flex-direction: column;
}

.expense-card-title {
  font-size: 18px;
  font-weight: bold;
  text-align: center;
  margin-bottom: 3px;
  line-height: 1.3;
  min-height: 25px;
}

.expense-card-subtitle {
  text-align: center;
  font-size: 12px;
  margin-bottom: 12px;
  line-height: 1.3;
  min-height: 16px;
}

.expense-list {
  list-style: none;
  padding: 0;
  background-color: white;
  color: #333;
  border-radius: 10px;
  padding: 15px;
  font-size: 14px;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.expense-list ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.expense-list li {
  margin-bottom: 8px;
  padding-left: 20px;
  position: relative;
  line-height: 1.5;
}

.expense-list li:last-child {
  margin-bottom: 0;
}

.expense-list-eligible li span {
  position: absolute;
  left: 0;
  color: #4db8d8;
}

/* 対象外費用カード */
.expense-card-ineligible {
  flex: 1;
  min-width: 300px;
  background: linear-gradient(135deg, #8b7cb8 0%, #7563a0 100%);
  border-radius: 15px;
  padding: 20px;
  color: white;
  display: flex;
  flex-direction: column;
}

.expense-card-ineligible .expense-card-title {
  margin-bottom: 12px;
  min-height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.expense-list-ineligible li span {
  position: absolute;
  left: 0;
  color: #8b7cb8;
}

/* イラストコンテナ */
.expense-image-container {
  margin-top: 15px;
  text-align: center;
}

.expense-image-container img {
  max-width: 100%;
  height: auto;
  border-radius: 10px;
}

/* =====================================================================
   申告についてセクション
   ===================================================================== */

.application-box {
  background-color: #f5f5f5;
  padding: 40px;
  border-radius: 10px;
  margin-bottom: 0px;
}

.application-title {
  font-size: 25px!important;
  font-weight: bold;
  margin-bottom: 15px;
  color: #333;
  text-align: center;
}

.application-text {
  font-size: 13px;
  line-height: 1.8;
  margin-bottom: 20px;
  color: #666;
}

.button-container {
  text-align: center;
  margin-bottom: 15px;
}

.button-container:last-of-type {
  margin-bottom: 25px;
}

.gradient-button {
  display: inline-block;
  background: linear-gradient(135deg, #1875d2 0%, #004dcd 100%);
  color: white!important;
  padding: 15px 40px;
  border-radius: 40px;
  text-decoration: none;
  font-weight: bold;
  font-size: 15px;
  box-shadow: 0 4px 10px rgba(77, 184, 216, 0.3);
  transition: all 0.3s ease;
  width: 300px;
}

.gradient-button:hover {
  transform: scale(1.05);
  box-shadow: 0 6px 15px rgba(77, 184, 216, 0.4);
}

.application-small-text {
  font-size: 12px;
  line-height: 1.6;
  margin-top: 15px;
  color: #999;
}

/* =====================================================================
   マイナポータルセクション
   ===================================================================== */

.mynaportal-section {
  background-color: #fff;
  padding: 30px 20px;
  margin-bottom: 40px;
  border-radius: 10px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  opacity: 0;
  transform: scale(0.9);
  transition: opacity 0.6s ease, transform 0.6s ease;
  position: relative;
}

.mynaportal-section.animate-in {
  opacity: 1;
  transform: scale(1);
}

.mynaportal-title {
  color: #004dcd;
  font-size: 32px;
  font-weight: bold;
  margin-bottom: 15px;
  text-align: center;
}

.mynaportal-text {
  font-size: 14px;
  line-height: 1.8;
  margin-bottom: 20px;
  color: #666;
}

.mynaportal-icon {
  position: absolute;
  top: 15px;
  left: 15px;
  width: 120px;
  height: 120px;
  z-index: 1;
  opacity: 0.8;
}

/* =====================================================================
   セルフメディケーション税制セクション
   ===================================================================== */

.self-medication-section {
  background-color: #fff;
  padding: 30px 20px;
  margin-bottom: 40px;
  border-radius: 10px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  opacity: 0;
  transform: scale(0.9);
  transition: opacity 0.6s ease, transform 0.6s ease;
  position: relative;
}

.self-medication-section.animate-in {
  opacity: 1;
  transform: scale(1);
}

.self-medication-title {
  color: #004dcd;
  font-size: 32px;
  font-weight: bold;
  margin-bottom: 15px;
  text-align: center;
}

.self-medication-text {
  font-size: 14px;
  line-height: 1.8;
  margin-bottom: 20px;
  color: #666;
}

.self-medication-icon {
  position: absolute;
  top: 15px;
  left: 15px;
  width: 120px;
  height: 120px;
  z-index: 1;
  opacity: 0.8;
}

/* 税控除対象バッジ */
.tax-badge-container {
  text-align: center;
  margin-bottom: 20px;
}

.tax-badge-container img {
  width: 400px;
  height: auto;
  display: block;
  margin: 0 auto;
}

.otc-note {
  font-size: 13px;
  line-height: 1.8;
  margin-bottom: 20px;
  color: #666;
  text-align: center;
}

/* =====================================================================
   レスポンシブ対応
   ===================================================================== */

/* スマホ・タブレット表示用 */
@media (max-width: 768px) {
  /* ヘッダーの調整 */
  #header,
  #header.topHdImg {
    position: relative !important;
    z-index: 100 !important;
  }

  /* topicPath（ヘッダー下のボタンエリア）の調整 */
  .topicPath {
    height: auto !important;
    min-height: auto !important;
    padding: 10px !important;
    overflow: visible !important;
    display: block !important;
    margin-top: 0 !important;
    position: static !important;
    top: auto !important;
    left: auto !important;
    right: auto !important;
    bottom: auto !important;
    transform: none !important;
    z-index: 1 !important;
    clear: both !important;
  }

  .topicPath p,
  .topicPath .btnBk {
    height: auto !important;
    min-height: auto !important;
    padding: 5px 30px 5px 10px !important;
    margin: 0 !important;
    display: flex !important;
    flex-direction: row !important;
    gap: 10px !important;
    overflow: visible !important;
    text-align: center !important;
    justify-content: center !important;
  }

  .topicPath a,
  .topicPath .css-button,
  a.css-button {
    display: block !important;
    width: auto !important;
    flex: 1 !important;
    max-width: 50% !important;
    box-sizing: border-box !important;
    margin: 0 !important;
    padding: 12px 10px !important;
    font-size: 13px !important;
    font-weight: bold !important;
    text-align: center !important;
    background-color: #ffffff !important;
    color: #01abb4 !important;
    border: 1px solid #01abb4 !important;
    text-decoration: none !important;
    visibility: visible !important;
    opacity: 1 !important;
    position: relative !important;
    z-index: 1 !important;
    line-height: 1.4 !important;
  }
  
  .topicPath a:first-child {
    margin-right: 5px !important;
  }
  
  .topicPath a:last-child {
    margin-left: 5px !important;
  }

  .medical-section-title,
  .mynaportal-title,
  .self-medication-title {
    font-size: 20px;
    line-height: 1.4;
  }

  .medical-section-text {
    font-size: 13px;
  }

  .calculation-box {
    padding: 20px 10px;
  }

  .calculation-title {
    font-size: 18px;
    margin-bottom: 20px;
  }

  /* 計算式を横並びのままスマホ対応 */
  .calculation-formula {
    flex-wrap: nowrap;
    gap: 5px;
    overflow-x: auto;
    padding: 10px 5px;
    justify-content: flex-start;
  }

  .formula-result,
  .formula-item {
    min-width: 80px;
    width: 80px;
    padding: 10px 5px;
    flex-shrink: 0;
  }

  .formula-threshold {
    min-width: 140px;
    width: 140px;
    padding: 10px 8px;
    flex-shrink: 0;
  }

  .formula-result .label,
  .formula-item .label {
    font-size: 10px;
    margin-bottom: 3px;
  }

  .formula-threshold .amount {
    font-size: 16px;
    margin-bottom: 5px;
  }

  .formula-threshold .note {
    font-size: 9px;
    line-height: 1.4;
  }

  .formula-operator {
    font-size: 20px;
    flex-shrink: 0;
  }

  .calculation-note,
  .medical-notice {
    font-size: 9px !important;
  }

  /* 対象となる費用・ならない費用 */
  .expense-container {
    flex-direction: column;
    gap: 15px;
    width: 100%;
  }

  .expense-card-eligible,
  .expense-card-ineligible {
    min-width: 100%;
    width: 100%;
    max-width: 100%;
    padding: 15px;
    box-sizing: border-box;
  }

  .expense-card-title {
    font-size: 16px;
  }

  .expense-card-subtitle {
    font-size: 11px;
  }

  .expense-card-ineligible .expense-card-title {
    min-height: auto;
    padding-top: 10px;
    padding-bottom: 10px;
  }

  .expense-list {
    padding: 12px;
    font-size: 13px;
    width: 100%;
    box-sizing: border-box;
  }

  .expense-list li {
    font-size: 12px;
    margin-bottom: 6px;
  }

  .expense-image-container {
    margin-top: 10px;
  }

  .expense-image-container img {
    max-width: 100%;
    width: 100%;
    height: auto;
  }

  /* 申告について */
  .application-box {
    padding: 20px 15px;
  }

  .application-title {
    font-size: 20px !important;
  }

  .application-text {
    font-size: 13px;
    line-height: 1.7;
  }

  .button-container {
    margin-bottom: 12px;
    width: 100%;
    box-sizing: border-box;
    padding: 0;
    overflow: hidden;
  }

  .gradient-button {
    padding: 12px 20px;
    font-size: 13px;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    word-break: break-all;
  }

  /* マイナポータル・セルフメディケーション */
  .mynaportal-section,
  .self-medication-section {
    padding: 20px 15px;
  }

  .mynaportal-text,
  .self-medication-text {
    font-size: 13px;
    line-height: 1.7;
  }

  .mynaportal-icon {
    width: 80px;
    height: 80px;
    top: 10px;
    left: 10px;
  }

  .self-medication-icon {
    width: 80px;
    height: 80px;
    top: 10px;
    left: 10px;
  }

  .tax-badge-container {
    padding: 15px 0;
  }

  .tax-badge-container img {
    max-width: 200px;
  }

  /* oshiraseMain全体の調整 */
  .oshiraseMain .inner {
    padding: 0 10px;
  }

  .medical-section {
    padding: 20px 15px;
    margin-bottom: 20px;
  }
}

