/* ========================================
 * EC-CUBE BtoB受注サイト - ベーススタイル
 * ======================================== */

/* リセット・正規化 */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  -webkit-text-size-adjust: 100%;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: var(--btob-font-family);
  font-size: var(--btob-font-size-md);
  font-weight: var(--btob-font-weight-normal);
  line-height: 1.6;
  color: var(--btob-text);
  background-color: var(--btob-bg);
  min-height: 100vh;
}

/* タイポグラフィ */
h1, h2, h3, h4, h5, h6 {
  font-weight: var(--btob-font-weight-bold);
  line-height: 1.4;
}

a {
  color: inherit;
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* フォーム要素 */
button,
input,
select,
textarea {
  font-family: inherit;
  font-size: inherit;
  line-height: inherit;
  color: inherit;
}

button {
  cursor: pointer;
  border: none;
  background: none;
}

input:focus,
select:focus,
textarea:focus,
button:focus {
  outline: 2px solid var(--btob-primary);
  outline-offset: 2px;
}

/* リスト */
ul, ol {
  list-style: none;
}

/* ページレイアウト */
.btob-page {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.btob-page__content {
  flex: 1;
  padding-bottom: var(--btob-footer-height);
}

/* スクロールバーカスタマイズ */
::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}

::-webkit-scrollbar-track {
  background: var(--btob-bg);
}

::-webkit-scrollbar-thumb {
  background: var(--btob-border);
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
  background: var(--btob-text-muted);
}

/* ユーティリティ */
.btob-visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.btob-text-truncate {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.btob-text-clamp-2 {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* アニメーション */
@keyframes btob-fade-in {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

@keyframes btob-slide-up {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes btob-spin {
  from {
    transform: rotate(0deg);
  }
  to {
    transform: rotate(360deg);
  }
}
