/* ===== リセットCSS ===== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

/* 以下を追加 */
html, body {
  width: 100%;
  max-width: 100%;
  overflow-x: hidden;
  margin: 0;
  padding: 0;
}

/* モバイルデバイス用の追加設定 */
@media (max-width: 480px) {
  html, body {
    overflow-x: hidden;
    position: relative;
  }
  
  /* すべてのセクションに適用 */
  section {
    width: 100%;
    max-width: 100%;
    overflow-x: hidden;
    box-sizing: border-box;
  }
  
  /* すべての内部コンテナに適用 */
  .section__inner, 
  .section__inner_white,
  .feature_section_inner,
  .facilities__content,
  .examples__content,
  .price__content,
  .simulation__container,
  .contact__content,
  .contact__form {
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    padding-left: 15px;
    padding-right: 15px;
  }
}

/* ===== 変数定義 ===== */
:root {
  /* カラー変数 */
  --primary-color: #00899e;
  --secondary-color: #00525f;
  --text-color: #333;
  --accent-color: #e67e22;
  --white: #fff;
  --bg-light: #B8D7C8;
  --bg-white: #fff;
  
  /* フォントサイズ変数 */
  --font-xl: 2.5rem;   /* 40px */
  --font-lg: 1.875rem; /* 30px */
  --font-md: 1.25rem;  /* 20px */
  --font-sm: 1rem;     /* 16px */
  --font-xs: 0.875rem; /* 14px */
  
  /* レイアウト変数 */
  --max-width: 1200px;
  --section-padding: 14rem 14vw 0;
  --section-margin: 6rem 0 0;
  
  /* ブレイクポイント */
  --breakpoint-xl: 1680px;
  --breakpoint-lg: 1200px;
  --breakpoint-md: 992px;
  --breakpoint-sm: 768px;
  --breakpoint-xs: 480px;
}

/* ===== 基本設定 ===== */
body {
  font-family: 'Noto Sans JP', sans-serif;
  color: var(--text-color);
  line-height: 1.6;
}

a {
  text-decoration: none;
  color: inherit;
  transition: color 0.3s;
}

ul {
  list-style: none;
}

img {
  max-width: 100%;
  height: auto;
}

/* ===== 共通クラス ===== */
/* フォント関連クラス */
.en_text {
  font-family: 'Montserrat', sans-serif;
  letter-spacing: 0.05em;
}

.en_heading {
  font-family: 'Montserrat', sans-serif;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.en_subtitle {
  font-family: 'Montserrat', sans-serif;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

/* トップへ戻るボタン */
.back-to-top {
  position: fixed;
  bottom: 30px;
  right: 30px;
  width: 60px;
  height: 60px;
  background-color: rgba(0, 0, 0, 0.7);
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 1000;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s, visibility 0.3s;
}

.back-to-top.show {
  opacity: 1;
  visibility: visible;
}

.back-to-top__link {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  color: white;
  text-decoration: none;
}

.back-to-top__icon {
  font-size: 20px;
  line-height: 1;
}

.back-to-top__text {
  font-size: 12px;
  margin-top: 2px;
  font-family: 'Montserrat', sans-serif;
}

