/* =========================================================
   📘 ベースレイアウト & 各セクション共通スタイル
   ---------------------------------------------------------
   サイト全体の共通デザインを定義
   - ヒーロー（メインビジュアル）
   - セクション構造（背景・余白など）
   - 見出し・段落の共通設定
   ========================================================= */


/* ------------------------------
   🖼️ ヒーロー（メインビジュアル）
   ------------------------------ */
.hero {
  width: 100%;
  height: 70vh;
  background: url(../img/和風パーカー紺色文字付き.png) center/cover no-repeat;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: #fafafa;
  position: relative;

}


/* ------------------------------
   📦 セクション共通レイアウト
   ------------------------------ */
.section-container {
  width: 100%;

  /* 各セクションの上下余白（均等） */
  padding: 4rem 16px;

  box-sizing: border-box;

  /* マージン崩壊を防止 */
  position: relative;

}


/* ------------------------------
   🧭 セクション内部ラッパー（中央寄せ）
   ------------------------------ */
.section-container .inner {
  /* コンテンツ幅制限 */
  max-width: 1200px;

  /* 中央寄せ */
  margin: 0 auto;

  box-sizing: border-box;
}


/* ------------------------------
   📝 共通見出し（h1, h2）
   ------------------------------ */
.section-container h1,
.section-container h2 {
  /* 中央配置 */
  text-align: center;
  font-size: 2rem;
  font-weight: bold;
  line-height: 1.2;
  margin-bottom: 1rem;

  /* アイコンと文字を横並び・中央揃え */
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 0.5rem;
}


/* ------------------------------
   📄 共通テキスト
   ------------------------------ */
.section-container p {
  margin-bottom: 2rem;
  color: #333;
  line-height: 1.6;
}


/* ------------------------------
   🎞️ メディア（画像・動画・iframe）
   ------------------------------ */
.section-container .inner img,
.section-container .inner video,
.section-container .inner iframe {
  max-width: 100%;
  height: auto;
  display: block;
}



/* =========================================================
   📗 各セクション固有スタイル
   ---------------------------------------------------------
   ブランド紹介 / 商品 / ニュース
   ========================================================= */

.section_backcolor {
  background-image: url(../img/section_back_color.png);
  background-size: contain;
  background-position: center;
}


/* ------------------------------
   🍡 ブランド紹介セクション
   ------------------------------ */

.about {

  .inner {
    text-align: center;
  }
}


.sectiontitle_brandicon {
  width: 40px;
  height: 40px;
}



/* ------------------------------
   🛍️ お品物セクション（商品カードなど）
   ------------------------------ */

/* タイトル横アイコン */
.sectiontitle_goodsicon {
  width: 40px;
  height: 40px;
}

/* サブタイトル */
.subtitle {
  display: flex;
  justify-content: center;
  font-size: 1.5rem;
  color: #333;

}

/* 商品カードを並べるグリッド */
.products .product-grid {
  display: flex;
  justify-content: center;
  padding-bottom: 30px;
  flex-wrap: wrap;

  /* カード間の隙間 */
  gap: 2rem;

  /* タイトルとの余白 */
  padding-top: 2rem;
}

/* 商品カード本体 */
.product-card {
  width: 100%;
  max-width: 300px;
  height: 400px;
  border-radius: 12px;
  overflow: hidden;
  background-color: #fff;
  display: flex;
  flex-direction: column;
  text-align: center;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

/* ホバー効果（拡大＋影強調） */
.product-card:hover {
  transform: scale(1.03);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
}

/* 商品画像エリア */
.product-card .product-image {
  /* カード上部2/3を確保 */
  flex: 2;
  background-color: #fafafa;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

/* 画像スタイル */
.product-card .product-image img {
  width: 100%;
  height: 100%;

  /* トリミングして均等表示 */
  object-fit: cover;
}

/* 商品説明エリア */
.product-card .product-info {
  /* カード下部1/3を確保 */
  flex: 1;
  background-color: #fff;
  padding: 1rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
  box-sizing: border-box;
}

/* 商品タイトル */
.product-card .product-info h3 {
  font-size: 1.1rem;
  margin-bottom: 0.3rem;
  color: #333;
}

/* 商品説明文 */
.product-card .product-info .description {
  font-size: 0.9rem;
  color: #666;
  margin-bottom: 0.5rem;
}

/* 商品価格（オプション） */
.product-card .product-info .price {
  font-weight: bold;
  font-size: 1rem;

  /* アクセントカラー */
  color: #000000;
}

/* shopボタン */
.shop_button {
  margin: auto;
  width: 180px;
  cursor: pointer;
  transition: transform 0.25s cubic-bezier(.26, .54, .32, 1.5);
}

.shop_button:hover {
  transform: translateY(-6px);
}



/* ------------------------------
   🗞️ ニュースセクション
   ------------------------------ */
.sectiontitle_newsicon {
  width: 40px;
  height: 40px;
}

.news {
  .inner {
    text-align: center;
  }
}



/* =========================================================
   📒 セクション終端の余白処理
   ---------------------------------------------------------
   - 最後の段落や見出しの下に無駄なスペースを作らない
   ========================================================= */
.section-container p:last-child,
.section-container h2:last-child {
  margin-bottom: 0;
}



/* =========================================================
   📱 レスポンシブ対応
   ---------------------------------------------------------
   - 幅に応じて左右余白・上下間隔を調整
   ========================================================= */

/* タブレットサイズ以下 */
@media (max-width: 1200px) {

  /* 左右の余白をvwベースに */
  .section-container .inner {
    padding-left: 5vw;
    padding-right: 5vw;
  }
}

/* スマホサイズ以下 */
@media (max-width: 768px) {

  /* スマホでは上下余白を少しコンパクトに */
  .section-container {
    padding: 3rem 16px;
  }

  /* shopボタン */
  .shop_button {
    width: 100px;
    height: auto;

  }

}






/* ============================
   お問い合わせフォームの基本デザイン
   ============================ */

/* 親コンテナは中央に寄せる（そのまま） */
.contact-container {
  max-width: auto;
  margin: 40px auto;
  padding: 20px;
  font-family: "M PLUS Rounded 1c", sans-serif;
  background-image: url(../img/section_back_color.png);
  background-size: contain;
  background-position: center;
}

/* タイトルは中央に寄せる */
.contact-container h1 {
  text-align: center;
  margin-bottom: 30px;
  font-size: 30px;
  font-weight: bold;
}

/* 各フォーム行を縦並びのブロックにするが、中央寄せを許可する */
.form-group {
  display: flex;
  flex-direction: column;
  align-items: center;
  /* これで子要素（label と input）の「幅全体」を中央に寄せる */
  margin-bottom: 20px;
}

/* label は入力欄と同じ幅にして、文字は左寄せにする */
.form-group label {
  width: 70%;
  /* ← input と同じ値に合わせる（下で input にも 80% を指定） */
  text-align: left;
  /* ラベル内の文字を左寄せにする（入力欄の先頭に揃う） */
  margin-bottom: 6px;
  font-weight: bold;
  font-size: 16px;
}

/* 入力欄（幅は label と一致させる） */
.form-group input,
.form-group textarea {
  width: 70%;
  /* ラベルと同じ幅にすることで左端が揃う */
  padding: 12px;
  border: 1px solid #ccc;
  border-radius: 8px;
  font-size: 16px;
  box-sizing: border-box;
  /* 入力テキストを中央 */


}

/* フォーカス時の見た目 */
.form-group input:focus,
.form-group textarea:focus {
  border-color: #ff9090;
  outline: none;
  box-shadow: 0 0 5px rgba(255, 150, 150, 0.5);
}

/* ボタンは中央 */
#contactForm button[type="submit"] {
  border: none;
  background: none;
  padding: 0;
  margin: 20px auto 0;
  display: block;
  cursor: pointer;
  width: 150px;
}

/* レスポンシブ（スマホで幅を広げたい／縮めたい場合） */
@media (max-width: 480px) {

  .form-group label,
  .form-group input,
  .form-group textarea {
    width: 92%;
    /* スマホでは横幅を広げる */
  }

  #contactForm button[type="submit"] {
    width: 160px;
  }
}



/* ============================
   　　　　送信完了ページ
   ============================ */

.thanks-wrapper {
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 40px 20px;
  min-height: 80vh;
  background: #f7f7f7;
}

.mail-img {
  width: 150px;
  height: auto;
  display: block;
  margin: 0 auto;
}

.thanks-box {
  background: #fff;
  padding: 40px 30px;
  width: 100%;
  max-width: 480px;
  border-radius: 20px;
  text-align: center;
  box-shadow: 0 5px 18px rgba(0, 0, 0, 0.1);
}

.thanks-box h1 {
  font-size: 1.8rem;
  font-weight: 700;
  margin-bottom: 20px;
  color: #333;
}

.thanks-box p {
  color: #555;
  line-height: 1.8;
  margin-bottom: 30px;
  font-size: 1rem;
}

.thanks-btn {
  display: inline-block;
  background: #ffb04a;
  color: #fff;
  font-weight: bold;
  padding: 12px 25px;
  border-radius: 10px;
  text-decoration: none;
  transition: 0.2s;
}

.thanks-btn:hover {
  opacity: 0.85;
}