/*---------------
変数定義
---------------*/

/* 色 */

:root {
  --c-primary: #f7701b;
  --c-secondary: #5496d4;
  --c-tertiary: #ffffff;
  --c-sec-bg: #fff6ee;
}

/* フォント */
:root {
  --font-family-primary: 'Noto Sans JP', sans-serif;
}

/* コンテナ */
:root {
  --section-inner-pc-primary: calc(1190 + 40px * 2);
  --section-inner-padding-pc: 0 40px;
  --section-inner-padding-sp: 0 20px;
}

/* display none の設定 */
.display-none-sp {
  display: none;
}

.display-none-pc {
  display: block;
}

@media screen and (min-width: 767px) {
  .display-none-sp {
    display: block;
  }
  
  .display-none-pc {
    display: none;
  }
}

/* 全体の設定 */
body {
  font-family: var(--font-family-primary);
  font-size: 15px;
}
main {
  background-image: linear-gradient(0deg, transparent calc(100% - 1px), #f2f2f2 calc(100% - 1px)),
                    linear-gradient(90deg, transparent calc(100% - 1px), #f2f2f2 calc(100% - 1px));
  background-size: 20px 20px;
  background-repeat: repeat;
  background-position: center center;
}

@media screen and (min-width: 767px) {
  body {
  font-size: 15px;
}
  main {
      background-size: 30px 30px;
  }
}

/* 既存のスタイルを上書き */
main:before,
main:after {
  display: none;
}






/*  */

/* CSS-onlyバージョンのCSS */
/* タブコンテナ */
.tab-container {
  max-width: 800px;
  margin: 40px auto;
  padding: 20px;
  font-family: 'Noto Sans JP', sans-serif;
}

/* タブナビゲーション */
.tab-nav {
  display: flex;
  border-bottom: 2px solid #e0e0e0;
  margin-bottom: 20px;
  overflow-x: auto; /* スマホ対応 */
}

/* タブボタン */
.tab-button {
  background: none;
  border: none;
  padding: 15px 20px;
  cursor: pointer;
  font-size: 16px;
  font-weight: 500;
  color: #666;
  border-bottom: 3px solid transparent;
  transition: all 0.3s ease;
  white-space: nowrap;
  min-width: 120px;
}

.tab-button:hover {
  color: #4a90e2;
  background-color: #f8f9fa;
}

.tab-button.active {
  color: #4a90e2;
  border-bottom-color: #4a90e2;
  font-weight: 600;
}

/* タブコンテンツ */
.tab-content {
  position: relative;
  min-height: 300px;
}

/* タブパネル */
.tab-panel {
  display: none;
  opacity: 0;
  transform: translateY(10px);
  transition: all 0.3s ease;
  padding: 20px;
  background-color: #ffffff;
  border-radius: 8px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.tab-panel.active {
  display: block;
  opacity: 1;
  transform: translateY(0);
}

.tab-panel h3 {
  color: #333;
  margin-bottom: 15px;
  font-size: 24px;
  border-left: 4px solid #4a90e2;
  padding-left: 15px;
}

.tab-panel p {
  color: #666;
  line-height: 1.6;
  margin-bottom: 20px;
}

.tab-panel ul {
  list-style: none;
  padding: 0;
}

.tab-panel li {
  padding: 8px 0;
  border-bottom: 1px solid #f0f0f0;
  position: relative;
  padding-left: 20px;
}

.tab-panel li:before {
  content: '✓';
  color: #4a90e2;
  font-weight: bold;
  position: absolute;
  left: 0;
}

.tab-panel li:last-child {
  border-bottom: none;
}

/* レスポンシブ対応 */
@media screen and (max-width: 767px) {
  .tab-container {
    margin: 20px auto;
    padding: 15px;
  }
  
  .tab-button {
    padding: 12px 15px;
    font-size: 14px;
    min-width: 100px;
  }
  
  .tab-panel {
    padding: 15px;
  }
  
  .tab-panel h3 {
    font-size: 20px;
  }
}

/* アニメーション効果 */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.tab-panel.active {
  animation: fadeInUp 0.4s ease forwards;
}