/* * {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
} */

/* body {
  font-family: "Noto Sans Japanese", sans-serif;
  line-height: 1.6;
  color: #333;
  background-color: #f5f5f5;
} */

.sl-container {
  max-width: 1200px;
  margin: 0 auto;
  background: white;
  min-height: 100vh;
}

.sl-header {
  background: linear-gradient(135deg, #002b86 0%, #001f3f 100%);
  color: white;
  text-align: center;
  padding: 40px 20px;
}

.sl-header h1 {
  font-size: 2rem;
  margin-bottom: 10px;
  font-weight: normal;
}

.sl-header p {
  font-size: 1.2rem;
  letter-spacing: 2px;
  font-weight: bold;
}

.sl-main {
  padding: 40px;
}

.sl-description {
  font-size: 1rem;
  margin-bottom: 30px;
  line-height: 1.8;
}

.sl-section__sim-title {
  font-size: 1.5rem;
  color: #002b86;
  margin-bottom: 30px;
  font-weight: bold;
  text-align: center;
}

.sl-simulator-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  margin-bottom: 40px;
}

.sl-section {
  background: #fff;
  border: 1px solid #ddd;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.sl-section__title {
  background: #f8f9fa;
  padding: 15px 20px;
  font-size: 1.2rem;
  font-weight: bold;
  border-bottom: 1px solid #ddd;
  margin: 0;
  text-align: center;
}

.sl-section__content {
  padding: 20px;
}

.sl-form__table {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: 20px;
}

.sl-form__table th {
  background: #f8f9fa;
  padding: 15px;
  border: 1px solid #ddd;
  text-align: left;
  font-weight: normal;
  width: 25%;
}

.sl-form__table td {
  padding: 15px;
  border: 1px solid #ddd;
}

.sl-form__input {
  padding: 8px 12px;
  border: 1px solid #ccc;
  border-radius: 4px;
  font-size: 1rem;
  width: 80px;
  text-align: right;
}

.sl-form__input:focus {
  outline: none;
  border-color: #002b86;
}

.sl-size-input-group {
  display: flex;
  align-items: center;
  gap: 5px;
}

.sl-size-input-group input {
  width: 120px;
}

.sl-radio {
  display: flex;
  gap: 20px;
}

.sl-radio__item {
  display: flex;
  align-items: center;
  gap: 8px;
}

.sl-date {
  display: flex;
  gap: 8px;
  align-items: center;
  margin-bottom: 15px;
}

.sl-date__select {
  padding: 6px 10px;
  border: 1px solid #ccc;
  border-radius: 4px;
  font-size: 0.9rem;
}

.sl-result__table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 20px;
}

.sl-result__table th {
  background: #002b86;
  color: white;
  padding: 12px 15px;
  border: 1px solid #002b86;
  font-weight: normal;
  width: 25%;
}

.sl-result__table td {
  padding: 12px 15px;
  border: 1px solid #ddd;
  text-align: center;
}

.sl-result__price {
  font-size: 1.4rem;
  font-weight: bold;
  color: #002b86;
}

.sl-result__note {
  font-size: 0.85rem;
  color: #666;
  margin-top: 5px;
}

.sl-total {
  background-color: #b8cadd;
  color: white;
  padding: 30px;
  border-radius: 10px;
  text-align: center;
  margin: 30px 0;
}

.sl-total__title {
  font-size: 1.3rem;
  margin-bottom: 15px;
  color: #083264;
}

.sl-total__price {
  font-size: 2.5rem;
  font-weight: bold;
  margin-bottom: 10px;
  color: #083264;
}

.sl-total p {
  color: #083264;
}

.sl-scroll-btn {
  display: inline-block;
  background: #ff4e00;
  color: white;
  border: none;
  padding: 15px 30px;
  border-radius: 8px;
  font-size: 1.1rem;
  cursor: pointer;
  margin-top: 20px;
  transition: background 0.3s;
  text-decoration: none;
  text-align: center;
}

.sl-scroll-btn:hover {
  background: #e54400;
  color: white;
  text-decoration: none;
}

.sl-contact {
  background: #f8f9fa;
  margin-top: 50px;
  padding: 40px;
  border-radius: 10px;
  border: 2px solid #002b86;
}

.sl-contact__title {
  color: #002b86;
  font-size: 1.8rem;
  text-align: center;
  margin-bottom: 20px;
}

.sl-notice {
  background: #e8f5e8;
  border: 1px solid #4caf50;
  border-radius: 8px;
  padding: 15px;
  margin-bottom: 20px;
  text-align: center;
  color: #2e7d32;
  display: none;
}

.sl-notice--show {
  display: block;
}

.sl-contact__table {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: 20px;
  background: white;
  border-radius: 8px;
  overflow: hidden;
}

.sl-contact__table th {
  background: #f8f9fa;
  padding: 15px;
  border: 1px solid #ddd;
  text-align: left;
  font-weight: normal;
  width: 250px;
}

.sl-contact__table td {
  padding: 15px;
  border: 1px solid #ddd;
}

.sl-required {
  background: #ff4e00;
  color: white;
  font-size: 0.8rem;
  padding: 2px 6px;
  border-radius: 3px;
  margin-left: 5px;
}

.sl-contact__input {
  width: 100%;
  padding: 10px;
  border: 1px solid #ccc;
  border-radius: 4px;
  font-size: 1rem;
}

.sl-contact__input:focus {
  outline: none;
  border-color: #002b86;
}

.sl-contact__input--readonly {
  background-color: #f8f9fa;
  color: #666;
}

.sl-checkbox {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
}

.sl-checkbox__item {
  display: flex;
  align-items: center;
  gap: 8px;
}

.sl-section__subtitle {
  background: #002b86;
  color: white;
  padding: 12px 20px;
  margin: 30px 0 0 0;
  font-size: 1.1rem;
  font-weight: bold;
}

.sl-contact__submit-wrap {
  text-align: center;
  margin-top: 30px;
}

.sl-contact__submit {
  background: #ff4e00;
  color: white;
  border: none;
  padding: 15px 40px;
  border-radius: 8px;
  font-size: 1.1rem;
  font-weight: bold;
  cursor: pointer;
  transition: background 0.3s;
}

.sl-contact__submit:hover {
  background: #e54400;
}

.sl-attention {
  color: #dc3545;
  font-size: 0.85rem;
  margin-top: 8px;
}

.sl-storage-icon {
  display: block;
  margin: 0 0 15px 0;
  max-width: 200px;
  height: auto;
}

.sl-contact__table .sl-contact__error {
  color: #dc3545 !important;
  font-size: 0.85rem !important;
  margin-top: 8px !important;
  display: none;
}

.sl-contact__table .sl-contact__error--show {
  display: block !important;
}

.sl-contact__table .sl-contact__input--error {
  border-color: #dc3545 !important;
  background-color: #fff5f5 !important;
}

@media (max-width: 768px) {
  .sl-simulator-grid {
    grid-template-columns: 1fr;
  }

  .sl-main {
    padding: 20px;
  }

  /* 概算料金シミュレーションのテーブルを1カラムに */
  .sl-form__table th,
  .sl-form__table td {
    display: block;
    width: 100%;
    box-sizing: border-box;
  }

  .sl-form__table th {
    padding: 10px 15px 5px 15px;
    border-bottom: none;
    font-weight: bold;
    background: #f8f9fa;
  }

  .sl-form__table td {
    padding: 5px 15px 15px 15px;
    border-top: none;
    border-bottom: 1px solid #ddd;
  }

  /* お問い合わせフォームのpadding調整 */
  .sl-contact {
    padding: 20px;
  }

  /* お問い合わせフォームのテーブルも同様に */
  .sl-contact__table th,
  .sl-contact__table td {
    display: block;
    width: 100%;
  }

  .sl-contact__table th {
    padding: 10px 15px 5px 15px;
    border-bottom: none;
    font-weight: bold;
  }

  .sl-contact__table td {
    padding: 5px 15px 15px 15px;
    border-top: none;
    border-bottom: 1px solid #ddd;
  }

  /* 確認画面のpadding調整 */
  .sl-confirm {
    padding: 20px;
  }

  /* 確認画面のテーブルも1カラムに */
  .sl-confirm__table {
    width: 100%;
  }

  .sl-confirm__table th,
  .sl-confirm__table td {
    display: block;
    width: 100%;
    box-sizing: border-box;
  }

  .sl-confirm__table th {
    width: 100% !important;
    padding: 10px 15px 5px 15px;
    border-bottom: none;
    font-weight: bold;
    box-sizing: border-box;
  }

  .sl-confirm__table td {
    padding: 5px 15px 15px 15px;
    border-top: none;
    border-bottom: 1px solid #ddd;
  }

  /* ボタングループを縦積みに */
  .sl-button-group {
    flex-direction: column;
    align-items: center;
  }

  .sl-btn {
    width: 100%;
    max-width: 300px;
  }
}

@media (max-width: 480px) {
  /* ラジオボタンを縦積みにする */
  .sl-radio {
    flex-direction: column;
    gap: 10px;
  }

  /* 結果テーブルを2段組にする */
  .sl-result__table th,
  .sl-result__table td {
    display: block;
    width: 100%;
    box-sizing: border-box;
  }

  .sl-result__table th {
    padding: 10px 15px 5px 15px;
    border-bottom: none;
    font-weight: bold;
  }

  .sl-result__table td {
    padding: 5px 15px 15px 15px;
    border-top: none;
    border-bottom: 1px solid #ddd;
  }
}

/* ========================================
   デバッグモードバナー
   開発環境であることを視覚的に示す
   ======================================== */
.sl-debug {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 9999;
  background: linear-gradient(135deg, #ff6b6b 0%, #ee5a6f 100%);
  color: white;
  padding: 8px 0;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  -webkit-animation: slideDown 0.3s ease-out;
  animation: slideDown 0.3s ease-out;
}

@-webkit-keyframes slideDown {
  from {
    transform: translateY(-100%);
    opacity: 0;
  }
  to {
    transform: translateY(0);
    opacity: 1;
  }
}

@keyframes slideDown {
  from {
    transform: translateY(-100%);
    opacity: 0;
  }
  to {
    transform: translateY(0);
    opacity: 1;
  }
}

.sl-debug__content {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 14px;
}

.sl-debug__icon {
  font-size: 20px;
  -webkit-animation: rotate 2s linear infinite;
  animation: rotate 2s linear infinite;
}

@-webkit-keyframes rotate {
  from {
    transform: rotate(0deg);
  }
  to {
    transform: rotate(360deg);
  }
}

@keyframes rotate {
  from {
    transform: rotate(0deg);
  }
  to {
    transform: rotate(360deg);
  }
}

.sl-debug__text {
  font-weight: 700;
  font-size: 16px;
  letter-spacing: 0.5px;
}

.sl-debug__info {
  font-size: 13px;
  opacity: 0.95;
}

/* バナーがある場合、bodyにパディングを追加 */
body:has(.sl-debug) {
  padding-top: 45px;
}

/* モバイル対応 */
@media (max-width: 768px) {
  .sl-debug {
    padding: 6px 0;
  }

  .sl-debug__content {
    font-size: 12px;
    gap: 8px;
  }

  .sl-debug__icon {
    font-size: 18px;
  }

  .sl-debug__text {
    font-size: 14px;
  }

  .sl-debug__info {
    display: none; /* モバイルでは詳細情報を非表示 */
  }

  body:has(.sl-debug) {
    padding-top: 38px;
  }
}

/* ========================================
   確認画面・サンクスページ専用スタイル
   ======================================== */
.sl-confirm {
  padding: 40px;
}

/* 確認画面内のセクションはborderとshadowをなくす */
.sl-confirm .sl-section {
  border: none;
  box-shadow: none;
}

.sl-confirm__title {
  font-size: 1.8rem;
  color: #002b86;
  text-align: center;
  margin-bottom: 30px;
}

.sl-confirm__notice {
  background: #fff9e6;
  border: 1px solid #ffc107;
  border-radius: 8px;
  padding: 15px;
  margin-bottom: 30px;
  text-align: center;
  color: #856404;
}

.sl-confirm__table {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: 30px;
  background: white;
}

.sl-confirm__table th {
  background: #f8f9fa;
  padding: 15px;
  border: 1px solid #ddd;
  text-align: left;
  font-weight: normal;
  width: 250px;
}

.sl-confirm__table td {
  padding: 15px;
  border: 1px solid #ddd;
}

.sl-button-group {
  display: flex;
  gap: 20px;
  justify-content: center;
  margin-top: 40px;
}

.sl-btn {
  padding: 15px 40px;
  border-radius: 8px;
  font-size: 1.1rem;
  font-weight: bold;
  cursor: pointer;
  transition: all 0.3s;
  border: none;
  text-decoration: none;
  display: inline-block;
  text-align: center;
  box-sizing: border-box;
  max-width: 100%;
}

.sl-btn--back {
  background: #6c757d;
  color: white;
}

.sl-btn--back:hover {
  background: #5a6268;
}

.sl-btn--submit {
  background: #ff4e00;
  color: white;
}

.sl-btn--submit:hover {
  background: #e54400;
}

.sl-btn--primary {
  background: #002b86;
  color: white;
}

.sl-btn--primary:hover {
  background: #001f60;
}

.sl-thanks {
  padding: 60px 40px;
  text-align: center;
}

.sl-thanks__icon {
  width: 80px;
  height: 80px;
  background: #4caf50;
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 3rem;
  margin: 0 auto 30px;
}

.sl-thanks__title {
  font-size: 2rem;
  color: #002b86;
  margin-bottom: 30px;
}

@media (max-width: 480px) {
  .sl-thanks__title {
    font-size: 1.8rem;
  }
}

.sl-thanks__message {
  font-size: 1.1rem;
  line-height: 2;
  margin-bottom: 40px;
  color: #333;
}

.sl-return-buttons {
  margin-top: 40px;
}

.sl-auto-redirect {
  margin-top: 30px;
  padding: 20px;
  background: #f8f9fa;
  border-radius: 8px;
  color: #666;
  font-size: 0.9rem;
}
