
/* =====================================
   島原石材 商品紹介・料金ページ
   スタイルコード
===================================== */

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "Noto Sans JP", Meiryo, sans-serif;
  color: #26364a;
  line-height: 1.8;
}

a {
  text-decoration: none;
  color: inherit;
}

.wrap {
  max-width: 1100px;
  margin: auto;
  padding: 0 20px;
}

/* メインビジュアル */

.hero {
  background: linear-gradient(120deg, #102b49, #28608a);
  color: #fff;
  padding: 65px 20px;
  text-align: center;
}

.hero small {
  color: #e1c38e;
  letter-spacing: 3px;
}

.hero h1 {
  font-size: clamp(28px, 5vw, 44px);
  margin: 10px 0;
}

.hero p {
  font-size: 15px;
}

/* ナビゲーション */

nav {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  margin: 25px auto;
}

nav a {
  padding: 17px 8px;
  text-align: center;
  background: #f2f5f8;
  border-bottom: 3px solid #b99b67;
  border-radius: 5px;
  font-weight: bold;
}

/* セクション共通 */

section {
  padding: 55px 0;
}

h2 {
  text-align: center;
  color: #153657;
  font-size: 29px;
  margin: 0 0 10px;
}

.lead {
  text-align: center;
  color: #687887;
  margin-bottom: 30px;
}

/* 商品切り替えボタン */

.tabs {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 9px;
  margin-bottom: 25px;
}

.tabs button {
  padding: 10px 20px;
  border: 1px solid #cbd5df;
  background: #fff;
  border-radius: 25px;
  cursor: pointer;
}

.tabs button.active {
  background: #153657;
  color: #fff;
}

/* 墓石商品一覧 */

.products {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.product {
  border: 1px solid #e1e7ed;
  border-radius: 9px;
  overflow: hidden;
  background: #fff;
}

.product img {
  width: 100%;
  height: 230px;
  object-fit: cover;
  background: #e8edf2;
}

.product .info {
  padding: 18px;
}

.product h3 {
  margin: 0 0 8px;
  color: #153657;
}

.product p {
  font-size: 14px;
  color: #697787;
  margin: 0;
}

/* 料金一覧 */

.soft {
  background: #f4f7fa;
}

.prices {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
}

.price {
  background: #fff;
  padding: 20px;
  border: 1px solid #e2e8ee;
  border-radius: 8px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 15px;
}

.price strong {
  display: block;
  color: #153657;
}

.price small {
  display: block;
  color: #748190;
  font-size: 12px;
}

.amount {
  font-size: 20px;
  font-weight: 800;
  color: #245b88;
  white-space: nowrap;
}

.amount span {
  font-size: 12px;
}

.note {
  font-size: 12px;
  color: #72808c;
  margin-top: 20px;
}

/* お問い合わせ */

.contact {
  background: #153657;
  color: #fff;
  text-align: center;
}

.contact h2 {
  color: #fff;
}

.buttons {
  display: flex;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 25px;
}

.buttons a {
  background: #fff;
  color: #153657;
  padding: 14px 25px;
  border-radius: 6px;
  font-weight: bold;
}

.buttons .line {
  background: #16a765;
  color: #fff;
}

/* スマホ下部固定ボタン */

.sticky {
  display: none;
}

/* タブレット */

@media (max-width: 750px) {

  nav {
    grid-template-columns: repeat(2, 1fr);
  }

  .products {
    grid-template-columns: repeat(2, 1fr);
  }

  .prices {
    grid-template-columns: 1fr;
  }
}

/* スマートフォン */

@media (max-width: 550px) {

  .hero {
    padding: 45px 16px;
  }

  .hero h1 {
    font-size: 28px;
  }

  section {
    padding: 40px 0;
  }

  h2 {
    font-size: 24px;
  }

  .products {
    grid-template-columns: 1fr;
  }

  .product img {
    height: 250px;
  }

  .price {
    padding: 15px;
  }

  .amount {
    font-size: 18px;
  }

  .contact {
    padding-bottom: 100px;
  }

  .sticky {
    display: flex;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 99;
    box-shadow: 0 -3px 15px #0002;
  }

  .sticky a {
    width: 50%;
    padding: 13px;
    text-align: center;
    background: #245b88;
    color: #fff;
    font-weight: bold;
  }

  .sticky a:last-child {
    background: #16a765;
  }
}
