/* ===============================
   基本設定
=============================== */
body {
  font-family: "Noto Sans JP", "Hiragino Kaku Gothic ProN", sans-serif;
  font-size: 18px;
  line-height: 1.8;
  color: #333;
  background-color: #fff;
  margin: 0;
  padding: 0;
}

/* ===============================
   メインビジュアル
=============================== */
.main-visual {
  width: 100%;
  overflow: hidden;
}

.main-visual .main-image {
  width: 100%;
  height: auto;
  display: block;
}

/* ===============================
   コンテナ
=============================== */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 60px 20px;
  box-sizing: border-box;
}

/* ===============================
   見出しデザイン
=============================== */
h1, h2, h3 {

  margin-bottom: 1rem;
  color: #222;
  line-height: 1.4;
  position: relative;
  display: inline-block;
}

/* H1装飾（中央下線） */
h1 {
  font-size: 28px;
  text-align: center;
  display: block;
  margin: 0 auto 24px;
}
h1::after {
  content: "";
  display: block;
  width: 80px;
  height: 3px;
  background: #333;
  margin: 12px auto 0;
  border-radius: 2px;
}

/* H2装飾（左ライン） */
h2 {
  font-size: 24px;
  padding-left: 12px;
  border-left: 4px solid #333;
  margin: 60px 0 20px;
}

/* H3装飾 */
h3 {
  font-size: 20px;
  padding-bottom: 4px;
  border-bottom: 1px solid #ccc;
}

/* ===============================
   テキスト
=============================== */
p {
  margin-bottom: 1em;
}

p.e1 {
     margin-bottom: 1em;
     text-align:center;
}


ul {
  padding-left: 1.2em;
  margin-bottom: 1em;
}

section {
  margin-bottom: 80px;
}

/* ===============================
   通常コンテンツ画像
=============================== */
.content-image {
  display: block;
  margin: 40px auto;
  max-width: 800px;
  width: 100%;
  height: auto;
  border-radius: 8px;
}

.use-image {
  display: block;
  margin: 40px auto;
  max-width: 1200px;
  width: 100%;
  height: auto;
  border-radius: 8px;
}

/* ===============================
   こだわり
=============================== */
.kodawari {
  display: block;
  margin: 40px auto;
  max-width: 800px;
  width: 100%;
  height: auto;
  border-radius: 8px;
}

p.content{
     margin-bottom: 1em;
}


/* ===============================
   How to Use（縦並び）
=============================== */
.use-scenes {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 40px;
}

.scene {
  width: 100%;
  max-width: 800px;
  border: 1px solid #eee;
  padding: 30px;
  border-radius: 8px;
  background: #fafafa;
  text-align: center;
}

.howto-image {
  width: 100%;
  height: auto;
  border-radius: 6px;
  margin-bottom: 12px;
  display: block;
}

/* ===============================
   Q&A
=============================== */
.qa-item {
  margin-bottom: 20px;
}
.qa-item p {
  margin: 0.3em 0;
}

/* ===============================
   レスポンシブ
=============================== */
@media (max-width: 768px) {
  body {
    font-size: 16px;
  }
  .container {
    padding: 40px 16px;
  }
  .content-image {
    max-width: 100%;
  }
  .howto-image {
    max-width: 100%;
  }
  h1 {
    font-size: 22px;
  }
  h2 {
    font-size: 20px;
  }
}
/* ===============================
   商品カード
=============================== */
.product-card {
  width: 100%;
  max-width: 800px;
  margin: 40px auto;
  background: #fff;
  border: 1px solid #e3e3e3;
  border-radius: 12px;
  box-shadow: 0 3px 10px rgba(0,0,0,0.05);
  text-align: center;
  padding: 24px 20px 32px;
  box-sizing: border-box;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.product-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 6px 16px rgba(0,0,0,0.08);
}

.product-image {
  width: 100%;
  max-width: 600px;
  height: auto;
  margin: 0 auto 20px;
  display: block;
  border-radius: 8px;
}

.product-info {
  text-align: center;
}

.product-name {
  font-size: 20px;
  font-weight: bold;
  margin-bottom: 8px;
  color: #333;
}

.product-desc {
  font-size: 16px;
  color: #555;
  margin-bottom: 24px;
}

.product-btn {
  display: inline-block;
  background: #6699cc;
  color: #fff;
  text-decoration: none;
  font-size: 16px;
  font-weight: bold;
  padding: 12px 100px;
  border-radius: 6px;
  transition: background 0.3s ease;
}

.product-btn:hover {
  background: #557ab0;
}

/* 横に並べたいときのラッパー */
.product-list {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 40px;
}

/* レスポンシブ */
@media (max-width: 768px) {
  .product-card {
    max-width: 90%;
    padding: 20px;
  }
  .product-name {
    font-size: 18px;
  }
  .product-desc {
    font-size: 15px;
  }
}

/* ===============================
   ▼① メインビジュアル（SP時は中央ズーム表示）
=============================== */
.main-visual {
  position: relative;
  width: 100%;
  overflow: hidden;
}

.main-visual .main-image {
  width: 100%;
  height: auto;
  display: block;
}

@media screen and (max-width: 768px) {
  .main-visual .main-image {
    width: 100%;
    height: 60vh; /* スマホで適切な高さ確保 */
    object-fit: cover; /* 画像をトリミングしてフィット */
    object-position: center center; /* 中央を基準にズーム */
  }
}

/* ===============================
   ▼② メインビジュアル下の余白を調整（コンセプトとの間）
=============================== */
.main-visual {
  margin-bottom: 20px; /* 元の余白を圧縮 */
}
@media screen and (max-width: 768px) {
  .main-visual {
    margin-bottom: 10px; /* スマホはさらに詰める */
  }
}

/* ===============================
   ▼③ How to Use内の画像をPC/SPで出し分け
=============================== */
/* HTML側に以下のように2つの画像を設置
   <img src="xxx_pc.jpg" class="use-image pc-only">
   <img src="xxx_sp.jpg" class="use-image sp-only">
*/

/* デフォルトはSP画像非表示 */
.sp-only { display: none; }
.pc-only { display: block; }

/* スマホ時に切り替え */
@media screen and (max-width: 768px) {
  .pc-only { display: none; }
  .sp-only { display: block; }
}

/* ===============================
   ▼ スマホ横ズレ防止・全体固定
=============================== */

/* ページ全体で横スクロールを禁止 */
html, body {
  width: 100%;
  overflow-x: hidden;
}

/* 画像や要素が100vwを超えないように制限 */
img, video {
  max-width: 100%;
  height: auto;
  display: block;
}

/* ===============================
   ▼ How to Use セクション調整
=============================== */

/* シーン全体の横幅を確実に画面内に収める */
.use-scenes {
  width: 100%;
  box-sizing: border-box;
  padding: 0 16px; /* スマホでも安全な内側余白 */
  margin: 0 auto;
}

/* 各シーンカードを柔軟かつ安全に表示 */
.scene {
  width: 100%;
  max-width: 800px;
  box-sizing: border-box;
  overflow: hidden;
  word-wrap: break-word;
}

/* 念のためスマホで再確認 */
@media screen and (max-width: 768px) {
  .scene {
    padding: 20px 16px;
    margin: 0 auto;
  }
  .use-scenes {
    padding: 0 12px;
  }
}
