/* 横幅の最大値と左右の余白を設定 */
.container {
  max-width: 1200px; /* 必要に応じて変更可 */
  margin: 0 auto; /* 左右中央寄せ */
  padding: 0 20px;
  box-sizing: border-box; /* パディング込みで幅を計算 */
}

body {
  font-family: sans-serif;
  margin: 0;
  padding: 0;
  color: #333;
  line-height: 1.6;
  padding-top: 80px; /* headerの高さが80pxなら同じ分だけ余白を */
}

.header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: #fbf3dc;
  padding: 10px 20px;
  border-bottom: 1px solid #ccc;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000; /* ここが超重要！大きめの数にするのがコツ */
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.nav {
  display: flex;
  gap: 30px; /* ナビ間の余白 */
  margin-left: auto; /* ← 右側に寄る！ */
  align-items: center;
}

.nav a {
  font-size: 1.2rem;
  font-weight: bolder;
  margin: 0;
  text-decoration: none; /* 下線を消す */
  color: #333;
  padding: 50px 0px 10px 0px;
  display: inline-block;
  position: relative;
  transition: color 0.3s ease;
}

/* ホバー時・選択時の色変更 */
.nav a:hover,
.nav a:focus,
.nav a:active {
  color: #e05c00; /* オレンジ色に変更 */
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
}

.logo-img {
  width: 90px;
  height: auto;
}

.logo-text {
  font-size: 1.3rem;
  line-height: 2rem;
  color: #e05c00;
}

.logo-text span {
  font-size: 1.1rem;
  font-weight: bold;
  color: #e05c00;
}

.logo-text strong {
  font-size: 2.4rem;
  color: #e05c00;
}

.phone-text {
  display: flex;
  flex-direction: column;
  justify-content: center;
  font-weight: bold;
  text-align: right;
  align-items: flex-end;
}

.tel-icon {
  margin: 7px 7px 17px 7px;
}
.phone {
  display: flex;
  text-align: right;
  padding-right: 40px;
  font-size: 1rem;
  align-items: center;
}

.number a {
  color: #333; /* 黒文字に */
  text-decoration: none; /* 下線を消す */
  font-weight: bold;
}

.number {
  margin: 0px;
  padding: 0px;
  font-size: 1.8rem;
}

.time {
  font-size: 0.8rem;
  font-weight: bold;
  margin: 0px;
  padding: 0px;
}

.hero {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 40px 80px 0px 80px;

  /* 背景画像を追加 */
  background-image: url("../images/店内.jpg"); /* パスは適宜調整 */
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  background-color: #fff; /* 万が一のフォールバック */
}

.hero-copy h1,
.hero-copy h1 p {
  text-shadow: 0 0 3px #fff, 0 0 8px #fff, 0 0 12px #fff;
}

.women {
  margin: 0;
  padding: 0; /*女性画像とオレンジ帯の間を埋める*/
}

.hero-text h1 {
  font-size: 1.8rem;
  margin-bottom: 29px;
  text-align: center;
  line-height: 40px;
}

.rectangle {
  text-align: center; /* テキストブロックの中央揃え */
  margin-bottom: 20px;
}

.rectangle span {
  font-size: 1.5rem;
  display: inline-block;
  background: #f4a623;
  color: #fff;
  padding: 5px 10px;
  margin-right: 10px;
  border-radius: 0px;
}

p.features {
  text-align: center; /* 画像を中央に揃える */
}

p.features img {
  width: 120px;
  padding-right: 10px;
  display: inline-block;
}
.women img {
  width: 420px;
  display: block; /* インライン画像の余白を防ぐ */
  margin-bottom: 0;
}

.orange-banner {
  background: #e05c00;
  color: white;
  padding: 30px 20px;
  text-align: center;
}

.banner-inner {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 20px;
}

.banner-text {
  text-align: center;
}

.banner-logo {
  width: 100px;
  height: auto;
}

.banner-message {
  font-size: 1.6rem;
  font-weight: bold;
  margin: 0;
}

.store-main {
  font-size: 2.7rem;
  margin-right: 10px;
}

.store-branch {
  font-size: 2rem;
  font-weight: bold;
}

h2 {
  font-size: 1.8rem;
  text-align: center;
  margin-bottom: 60px;
}

/* 背景画像と背景色を親に持たせる */
.problems-section {
  background-color: #d7d4cd;
  position: relative;
  overflow: hidden;
  padding: 80px 0 120px 0;
  min-height: 100px; /* 高さが必要 */
}

.problems-section::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: url("../images/お悩み背景.jpg");
  background-size: cover;
  background-position: center;
  opacity: 0.25;
  z-index: 0;
}

.problems {
  position: relative;
  z-index: 1;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
  box-sizing: border-box;
}

.problems > * {
  position: relative;
  z-index: 1;
}

.problems h2 {
  text-shadow: 0 0 5px #fff, 0 0 10px #fff;
}

.problem-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px 20px;
  max-width: 900px; /* 適宜調整 */
  margin: 0 auto; /* 中央に配置 */
}

.problem-box {
  position: relative;
  background: white;
  border: 1px solid #ccc;
  border-radius: 12px;
  text-align: center;
  font-size: 0.9rem;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
  width: 250px;
  height: 90px;
}

.problem-box .icon {
  position: absolute;
  top: -30px;
  left: 50%;
  transform: translateX(-50%);
  width: 60px;
  height: 60px;
}

.problem-text {
  padding-top: 12px;
  font-size: 16px;
  font-weight: bold;
  line-height: 28px;
}

.problem-grid div {
  background: #fff;
  border: 1px solid #ccc;
  padding: 15px;
  border-radius: 8px;
  text-align: center;
}

.solution {
  padding: 0px 40px 180px 40px;
  background-color: #fbf3dc;
}

.solution h2 {
  font-size: 24px;
  margin: 80px 0px 40px 0;
}

.catchcopy {
  text-align: center;
  padding: 70px 20px;
  line-height: 10px;
}

.small-text {
  font-size: 30px;
  color: #333;
  font-weight: bold;
  margin-bottom: 5px;
}

.main-text {
  font-size: 28px;
  color: #e05c00;
  font-weight: bold;
  line-height: 1.4;
}

/* エコセレクト部分だけ大きく */
.store-name {
  font-size: 45px;
  font-weight: bold;
  color: #e05c00;
}

.point-box {
  background: #fff;
  padding: 20px 60px 20px 60px;
  border-radius: 20px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
  max-width: 650px; /* ← 幅を短くするポイント！ */
  margin-bottom: 40px; /* ← 下に30pxの余白を追加！ */
}

.marker {
  background: linear-gradient(transparent 60%, #a9dd38 60%);
  font-weight: bold;
}

.point-box p br {
  display: none;
}

/* 配置切り替え */
.point-box.left {
  margin-right: auto;
}

.point-box.right {
  margin-left: auto;
}

/* NEW: 見出しブロック全体を横並びに */
.point-head {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 10px;
}

/* POINTと数字を横並び＆重ね */
.point-label {
  display: flex;
  align-items: center;
  position: relative;
}

.label {
  border: 1px solid #333;
  padding: 1px 4px;
  font-weight: bold;
  font-size: 0.5rem;
  z-index: 2;
  background: #fff;
  position: relative;
}

.point-number {
  font-weight: bold;
  color: #e05c00;
  margin-left: -15px;
  z-index: 1;
  line-height: 1;
}

.point-label .point-number {
  font-size: 34px !important;
}

/* h3のスタイル（横並び用） */
.point-head h3 {
  font-size: 32px;
  font-weight: bold;
  color: #e05c00;
  margin: 0;
}

h3 {
  font-size: 24px;
}

.point-box p {
  font-size: 24px;
  line-height: 2.2rem;
}

.strengths {
  background-color: #fbf3dc;
  padding-bottom: 150px;
}
.placeholder {
  background: #ccc;
}
.strength-grid {
  display: flex;
  gap: 20px;
}
.strength-grid > div {
  width: 33%;
  text-align: center;
  font-size: 0.9rem;
}
.strength-grid .icon.placeholder {
  width: 200px;
  height: 180px;
  margin: 0 auto 10px;
}

.strength-text {
  font-size: 1.2rem;
  line-height: 1.8rem;
  padding: 0 30px;
}

.highlight-title {
  color: #e05c00; /* ← 好きな色に変更 */
}

.strengths h2 {
  margin-top: 0;
  color: #e05c00;
}

.strength-img {
  width: 250px;
  height: 200px;
  object-fit: cover;
  display: block;
  margin: 0 auto 10px;
  border-radius: 0px; /* 丸みをつけたい場合 */
}

.items {
  padding: 120px 0;
}

.items-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 40px 20px; /* 行・列の間隔 */
  max-width: 1200px;
  margin: 0 auto;
}

.item {
  text-align: center;
}

.item .placeholder {
  width: 100%;
  aspect-ratio: 1/1;
  background: #ddd;
  border: 1px solid #ccc;
  margin-bottom: 5px;
}

.item span {
  font-size: 1.2rem;
  display: block;
  padding: 10px 0;
}

.contact {
  background: #e05c00; /* オレンジ背景 */
  text-align: center; /* 中央揃え */
  color: #fff; /* 白文字 */
  padding: 20px 20px; /* 上下の余白も追加 */
}

.contact h2 {
  font-size: 1.8rem;
  font-weight: bold;
  margin: 0;
}

.contact .tel {
  font-size: 3rem; /* 電話番号を大きく */
  font-weight: bold;
  margin: 10px 0;
}

.contact .tel span {
  display: block;
  font-size: 1.2rem; /* 営業時間など */
  margin-top: 5px;
  line-height: 4px;
}

.tel-btn {
  display: inline-block;
  background: #fff;
  color: #e05c00;
  font-weight: bold;
  text-decoration: none;
  padding: 8px 28px;
  border-radius: 30px;
  font-size: 1.2rem;
  cursor: pointer;
  margin-top: 10px;
}

.contact-wrapper {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  background-color: #fbf3dc;
}

.map {
  padding: 30px;
}

.shop-info {
  flex: 1;
  min-width: 300px;
  font-size: 1.2rem;
  color: #444;
  padding: 30px 0px;
}

.shop-info p {
  line-height: 2;
}

.copyright {
  text-align: center;
  width: 100%;
  margin-top: 20px;
}

/*スマホ用*/
@media (max-width: 768px) {
  .header {
    flex-direction: column;
    align-items: center;
    padding: 10px;
  }
  img {
    display: block;
  }

  .logo {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    gap: 0px;
    margin-bottom: 0px;
  }

  .logo-img {
    width: 50px;
  }

  .logo-text {
    text-align: left;
    font-size: 0.9rem;
  }

  .phone {
    display: none; /* ← ここで非表示に */
  }

  .nav {
    display: flex;
    justify-content: center;
    gap: 15px;
    width: 100%;
    margin-bottom: 10px;
  }

  .nav a {
    font-size: 0.9rem;
    padding: 5px 0;
  }

  /* --- メインビジュアル --- */
  /*重要なやつ*/
  .hero,
  .container,
  section {
    width: 100% !important;
    max-width: 100%;
    box-sizing: border-box;
    overflow-x: hidden;
  }

  body {
    overflow-x: hidden;
  }
  .hero {
    display: flex;
    flex-direction: column !important;
    align-items: center; /* 中央揃え */
    text-align: center;
    position: relative;
    padding: 80px 20px 0 20px !important;
  }

  .hero-copy h1,
  .hero-copy p {
    line-height: 1.8; /* 行間をゆったりさせる */
    font-size: 0.9rem;
    margin: 10px 0;
    text-shadow: 0 0 3px #fff, 0 0 8px #fff; /* 背景に負けない文字 */
    text-align: center;
  }

  .hero-text {
    order: 1;
  }

  .hero-text h1 {
    font-size: 1.2rem; /* 文字大きめに */
    line-height: 1.9; /* 行間ゆったり */
    text-align: center;
    margin: 20px 0;
  }
  .rectangle {
    display: flex;
    text-align: center !important;
    white-space: nowrap; /* ← これが超重要！ */
    justify-content: center;
  }

  .rectangle span {
    display: inline-block !important;
    margin: 0 5px;
    background-color: orange;
    color: white;
    padding: 5px 10px;
    border-radius: 0px;
    font-size: 1rem;
  }

  .features img {
    width: 80px; /* サイズ調整 */
  }
  .features {
    display: flex !important;
    flex-wrap: nowrap !important; /* 折り返し禁止 */
    justify-content: center;
    gap: 10px;
  }

  .features img {
    width: 80px !important; /* スマホでも収まるサイズに */
    height: auto;
  }
  .women {
    order: 2 !important;
    margin-top: 30px;
    text-align: center !important;
    justify-content: center !important;
    display: flex !important;
    justify-content: center !important;
    align-items: center !important;
    width: 100% !important;
    margin: 20px 0 !important;
    text-align: center !important;
    margin-bottom: -20px !important; /* ← 数字は好みで調整 */
  }

  .women img {
    width: 260px !important;
    height: auto !important;
    display: block !important;
    margin: 0 auto !important;
  }

  /* --- エコセレクトにお任せください！オレンジバナー --- */

  .banner-text {
    transform: scale(0.7); /* 全体を80%縮小 */
    transform-origin: top center; /* 上中央を基準に縮小 */
  }

  .banner-message {
    font-size: 1.3rem !important; /* 強制的に適用する方法 */
  }

  .banner-logo {
    width: 60px; /* ここでサイズ調整（例: 60px） */
    height: auto;
    display: block;
    margin: 0 auto;
  }

  /* --- こんなお悩みありませんか？ --- */
  .problems-section {
    padding: 20px 10px;
  }

  .problems h2 {
    font-size: 1.2rem;
    text-align: center;
  }

  .problem-grid {
    display: grid;
    grid-template-columns: 1fr 1fr; /* 2列 */
    gap: 10px; /* グリッド間の余白をさらに縮める */
    justify-content: center; /* 横方向中央寄せ */
    margin: 0 auto; /* 親要素の中央に配置 */
    max-width: 700px; /* 最大幅を制限すると綺麗に見える */
    padding: 10px;
  }

  .problem-box {
    background-color: #fff;
    border-radius: 10px;
    padding: 20px 10px; /* ← 余白を小さく */
    padding-top: 50px;
    text-align: center;
    width: 130px;
    height: 90px; /* ← 高さも少し低く調整 */
    display: flex;
    flex-direction: column;
    justify-content: center;
  }
  .problem-box .icon {
    display: block;
    margin: 0 auto 10px auto; /* 下に余白をつける（10pxは調整可） */
    width: 40px;
    height: auto;
  }
  .problem-grid {
    gap: 40px 10px; /* グリッド間の上下左右余白 */
  }
  .problem-box img.icon {
    width: 36px;
    height: 36px;
    margin-bottom: 5px;
  }

  .problem-text {
    font-size: 0.8rem;
    line-height: 1.3;
  }
  /* --- そのお悩みエコセレクトにお任せください！ --- */
  /*タイトル*/
  .small-text {
    font-size: 1.4rem; /*そのお悩み*/
    text-align: center;
  }
  .main-text {
    display: flex; /*にお任せください*/
    flex-direction: column;
    align-items: center;
    font-size: 1.5rem;
    text-align: center;
  }
  .main-text .store-name {
    font-size: 2.5rem; /*エコセレクトに*/
    font-weight: bold;
  }
  /*POINT01-03*/
  .point-box {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    font-size: 0.85rem; /* ← 全体的に小さく */
    padding: 15px;
  }

  .point-head {
    margin-bottom: 10px;
  }

  .point-label {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
  }

  .point-number {
    font-size: 1.5rem; /* 番号も少し小さめに */
  }

  .point-box h3 {
    font-size: 1.1rem;
    line-height: 1.4;
  }

  .point-box p {
    font-size: 1rem;
    line-height: 1.6;
  }

  .marker {
    background-color: #c5f27a;
    font-weight: bold;
  }
  /* --- エコセレクトの強み --- */
  .sp-line1,
  .sp-line2 {
    display: block; /* タイトル改行 */
    text-align: center;
  }
  .strengths h2 {
    font-size: 1.6rem; /* お好みでサイズ調整可能 */
    font-weight: bold;
    text-align: center; /* 中央揃えにしたい場合 */
    margin-bottom: 20px;
  }

  h3.highlight-title {
    font-size: 1.4rem !important;
    font-weight: bold;
  }

  .strength-text {
    font-size: 1.2rem;
  }
  /* --- 買取品目 --- */
  .items {
    padding: 50px 0;
  }

  .items-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr); /* 2列表示に */
    gap: 10px;
    padding: 10px;
  }

  .items-grid img {
    width: 100%;
    height: auto;
    width: 100% !important;
    max-width: 100%;
    box-sizing: border-box;
    overflow-x: hidden;
  }

  /* --- 問い合わせ）--- */
  .contact h2 {
    font-size: 1.4rem; /* ご相談・査定だけでも大歓迎！ */
  }

  .contact .tel {
    font-size: 1.8rem; /* 電話番号 */
  }

  .contact span {
    font-size: 0.9rem !important;
  }

  .contact .tel-btn {
    font-size: 1rem; /* ボタンの文字も調整 */
    padding: 8px 15px;
  }

  /*地図と店舗情報*/
  .contact-wrapper {
    text-align: center;
    font-size: 0.85rem; /* 小さめの文字サイズ */
  }

  .contact-wrapper .map iframe {
    max-width: 100%;
    height: 300px;
    display: block;
    margin: 0 auto; /* 地図も中央寄せ */
  }

  .shop-info {
    padding: 0 37px;
    font-size: medium;
    line-height: 0.8;
    text-align: left;
  }
}

/*タブレット用*/
@media (max-width: 1024px) {
  .hero {
    flex-direction: row;
    flex-wrap: wrap;
    padding: 40px 20px 0 20px;
    align-items: center;
  }
  .logo-text {
    font-size: 1rem;
    line-height: 1.4rem;
  }

  .logo-text span {
    font-size: 0.9rem;
  }

  .logo-text strong {
    font-size: 1.8rem;
  }

  .nav a {
    font-size: 0.9rem;
    padding: 10px 0 0 0; /* 高さも抑えめに */
  }

  .phone-text .number {
    font-size: 1.2rem;
  }

  .phone-text .time {
    font-size: 0.7rem;
  }

  .phone img {
    width: 35px;
  }

  .logo-img {
    width: 70px;
  }

  .header {
    padding: 5px 10px;
  }
  .hero-text {
    width: 60%; /* ← 文字側に余白を多く */
  }
  .hero-text h1 {
    line-height: 1.9; /* 行間ゆったり */
  }
  .women {
    width: 40%; /* ← 画像側を小さく */
    text-align: right;
  }

  .women img {
    width: 100%; /* ← 必要に応じて調整 */
    height: auto;
  }
  /*オレンジバナー*/
  .orange-banner {
    padding: 10px 15px; /* ← 縦の余白を小さく */
    margin-top: 0;
  }

  .banner-message {
    font-size: 1.4rem; /* メッセージ文字を調整（必要なら） */
  }
  /*エコセレクト*/
  .store-main {
    font-size: 2rem;
    margin: 0 5px 0 0; /* ← 右に少し余白 */
  }
  /*服部天神店*/
  .store-branch {
    font-size: 1.6rem;
    margin: 0; /* ← マージンを完全になくす */
  }
  /*エコセレクトにお任せください*/
  .point-box {
    padding: 20px;
  }
  /*強み*/
  .strength-grid {
    flex-direction: column;
  }
  .strength-grid > div {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center; /* 横方向の中央揃え */
    justify-content: center; /* 縦方向の中央揃え（必要に応じて） */
    text-align: center; /* テキスト中央揃え */
    margin: 0 auto; /* ブロック要素を中央に */
  }

  .strength-grid {
    flex-direction: row !important;
  }

  .strength-grid > div {
    width: 33%;
  }

  /*買取品目*/
  .items-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .contact-wrapper {
    flex-direction: row;
  }
  /*地図のサイズ*/
  .map iframe {
    width: 430px;
    height: 350px;
  }
  .strength-grid > div {
    width: 80%;
  }
}

@media (max-width: 768px) {
  .strength-grid {
    flex-direction: column !important;
  }

  .strength-grid > div {
    width: 100% !important;
  }
}
