
/* ========================================
   堀松産商株式会社
   ヘッダー・共通レイアウト用CSS
   ======================================== */


/* ========================================
   1. ページ全体
   ======================================== */

.hm-home {
  margin: 0;
  background: #fff;
}


/* ========================================
   2. ヘッダー
   ======================================== */

.hm-header {
  background: #fff;
  color: #222;
}

.hm-catch {
  border-bottom: 1px solid #eee;
  background: #fafafa;
  font-size: 11px;
  padding: 9px max(18px, calc((100% - 1100px) / 2));
  color: #666;
}

.hm-header-inner {
  width: 100%;
  max-width: 1100px;
  margin: auto;
  min-height: 78px;
  padding: 12px 18px;
  box-sizing: border-box;

  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
}


/* ロゴ */

.hm-brand a {
  display: block;
}

.hm-brand-fallback {
  font-size: 23px;
  line-height: 1;
  font-weight: 800;
  color: #247db8;
}

.hm-header .hm-brand img {
  width: 180px;
  max-width: 100%;
  height: auto;
  display: block;
}


/* 電話番号・お問い合わせ */

.hm-contact {
  display: flex;
  align-items: center;
  gap: 24px;
}

.hm-phone {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  line-height: 1.2;
}

.hm-phone small {
  font-size: 10px;
  color: #333;
}

.hm-phone a {
  color: #276a9d;
  font-size: 23px;
  font-weight: 700;
  text-decoration: none;
  letter-spacing: 1px;
}

.hm-contact-button {
  background: #347fb5;
  color: #fff !important;
  text-decoration: none;
  font-size: 14px;
  padding: 14px 25px;
  border-radius: 2px;
}


/* ========================================
   3. ナビゲーション
   ======================================== */

.hm-nav-inner {
  width: 100%;
  max-width: 1100px;
  margin: auto;

  display: flex;
  justify-content: center;
}

.hm-nav-inner a {
  display: flex;
  justify-content: center;
  align-items: center;
  flex: 1;
  min-height: 45px;

  border: 1px solid #f2f2f2;
  color: #222;
  font-size: 13px;
  font-weight: 700;
  text-decoration: none;
}

.hm-nav-inner a:hover {
  background: #f5f8fb;
}


/* ========================================
   4. スライダー
   ======================================== */

.hm-slider {
  width: 100%;
}


/* ========================================
   5. 共通コンテンツレイアウト
   ======================================== */

.hm-content {
  width: 100%;
  max-width: 1100px;
  margin: 30px auto;
  padding: 0 18px;
  box-sizing: border-box;

  display: grid;
  grid-template-columns: 260px minmax(0, 1fr);
  gap: 50px;
  align-items: start;
}

.hm-main,
.hm-sidebar {
  min-width: 0;
}

.hm-sidebar {
  grid-column: 1;
  grid-row: 1;
}

.hm-main {
  grid-column: 2;
  grid-row: 1;
}


/* ========================================
   6. 左サイドバー
   ======================================== */

.hm-sidebar {
  font-family: "Sawarabi Mincho", serif;
  font-size: 14px;
}

.hm-side-section {
  margin-bottom: 38px;
}

.hm-side-title {
  font-size: 18px;
  font-weight: 700;
  border-bottom: 1px solid #ddd;
  margin: 0 0 26px;
  padding: 0 0 10px;
  position: relative;
}

.hm-side-title::after {
  content: "";
  position: absolute;
  bottom: -1px;
  left: 0;
  width: 76px;
  height: 1px;
  background: #337ab7;
}


/* 検索 */

.hm-side-search {
  display: flex;
  gap: 10px;
}

.hm-side-search input {
  width: 0;
  min-width: 0;
  flex: 1;
  border: 1px solid #ccc;
  border-radius: 4px;
  padding: 7px;
}

.hm-side-search button {
  border: 0;
  background: #337ab7;
  color: #fff;
  border-radius: 4px;
  padding: 8px 22px;
  cursor: pointer;
}


/* 商品紹介一覧 */

.hm-side-posts {
  list-style: none;
  padding: 0;
  margin: 0;
}

.hm-side-posts li {
  border-bottom: 1px solid #eee;
  padding: 12px 0;

  display: flex;
  gap: 14px;
  align-items: flex-start;
}

.hm-side-posts li a {
  color: #222;
  text-decoration: none;
}

.hm-side-posts img {
  width: 80px;
  height: 80px;
  object-fit: cover;
  flex-shrink: 0;
}

.hm-side-date {
  display: block;
  font-size: 12px;
  color: #555;
}


/* ========================================
   7. 本文見出し
   ======================================== */

/* 商品紹介：二重線見出し */

.hm-main h3.is-style-vk-heading-double_black {
  font-size: 20px;
  font-weight: 700;
  color: #666;

  border-top: 3px double #333;
  border-bottom: 3px double #333;

  padding: 12px 0;
  margin: 20px 0 26px;
}


/* 見出し直後の商品画像 */

.hm-main h3.is-style-vk-heading-double_black + figure {
  margin-top: 0;
  margin-bottom: 28px;
}


/* メインタイトル */

.hm-main > article > h1 {
  font-size: 18px;
  font-weight: 700;
  border-bottom: 1px solid #ddd;
  padding-bottom: 10px;
  margin: 0 0 26px;
  position: relative;
}

.hm-main > article > h1::after {
  content: "";
  position: absolute;
  bottom: -1px;
  left: 0;
  width: 76px;
  height: 1px;
  background: #337ab7;
}


/* 本文最初の見出し */

.hm-main article > h2:first-child,
.hm-main article > h3:first-child {
  font-size: 18px;
  font-weight: 700;
  border: none;
  border-bottom: 1px solid #ddd;
  padding: 0 0 10px;
  margin: 0 0 26px;
  position: relative;
}

.hm-main article > h2:first-child::after,
.hm-main article > h3:first-child::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -1px;
  width: 220px;
  height: 1px;
  background: #337ab7;
}


/* ========================================
   8. 投稿ページ
   ======================================== */

/* 横長画像 */

.hm-post-hero {
  background-image: linear-gradient(
    rgba(0, 0, 0, 0.45),
    rgba(0, 0, 0, 0.45)
  );
  background-position: center;
  background-size: cover;
}


/* パンくずリスト */

.hm-breadcrumb {
  border-bottom: 1px solid #eee;
  padding: 8px 18px;
  font-size: 12px;
}

.hm-breadcrumb-inner {
  max-width: 1100px;
  margin: 0 auto;
}

.hm-breadcrumb a {
  color: #555;
  text-decoration: none;
}


/* 投稿本文の二重線見出し */

.hm-single-article h2 {
  border-top: 3px double #444;
  border-bottom: 3px double #444;
  border-left: none;
  border-right: none;
  background: transparent;

  padding: 14px 0;
  margin: 35px 0 24px;

  font-size: 21px;
  font-weight: 700;
  color: #555;
}

.hm-single-article h2::before,
.hm-single-article h2::after {
  content: none;
}


/* ========================================
   9. 投稿カテゴリー
   ======================================== */

.hm-post-categories {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 18px 0 35px;
  font-size: 13px;
}

.hm-category-label {
  background: #666;
  color: #fff;
  padding: 4px 14px;
  font-size: 11px;
  border-radius: 2px;
}

.hm-post-categories a {
  color: #333;
  text-decoration: none;
}


/* ========================================
   10. 前後の記事
   ======================================== */

.hm-post-navigation {
  display: flex;
  gap: 24px;
  margin: 35px 0 50px;
}

.hm-post-nav-item {
  position: relative;
  display: block;
  width: calc(50% - 12px);
  min-height: 130px;
  overflow: hidden;
  border-radius: 4px;
  background: #eee;
  color: #fff !important;
  text-decoration: none;
}

.hm-post-nav-item img {
  width: 100%;
  height: 180px;
  object-fit: cover;
  display: block;
}

.hm-post-nav-item strong {
  display: block;
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 20px 12px 12px;

  background: linear-gradient(
    transparent,
    rgba(0, 0, 0, 0.8)
  );

  font-size: 15px;
}

.hm-post-nav-label {
  position: absolute;
  z-index: 1;
  top: 0;
  left: 0;

  background: #337ab7;
  color: #fff;
  padding: 6px 12px;
  font-size: 11px;
}


/* ========================================
   11. スマートフォン対応
   ======================================== */

@media screen and (max-width: 780px) {

  /* ヘッダー */

  .hm-header-inner {
    align-items: flex-start;
    flex-direction: column;
    gap: 12px;
  }

  .hm-contact {
    width: 100%;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 10px;
  }

  .hm-phone a {
    font-size: 20px;
  }

  .hm-contact-button {
    padding: 10px 15px;
  }

  /* ナビゲーション */

  .hm-nav-inner {
    flex-wrap: wrap;
  }

  .hm-nav-inner a {
    flex: 0 0 33.333%;
    box-sizing: border-box;
    min-height: 42px;
    font-size: 11px;
  }

  .hm-header-inner,
  .hm-nav-inner {
    padding-left: 15px;
    padding-right: 15px;
  }

  /* コンテンツ */

  .hm-content {
    display: flex;
    flex-direction: column;
    gap: 24px;
    padding: 0 15px;
  }

  .hm-main {
    order: 1;
    width: 100%;
  }

  .hm-sidebar {
    order: 2;
    width: 100%;
  }
}


/* ========================================
   12. 小型スマートフォン対応
   ======================================== */

@media screen and (max-width: 600px) {

  .hm-post-navigation {
    flex-direction: column;
  }

  .hm-post-nav-item {
    width: 100%;
  }
}
