/*
Theme Name: Rising Link
Theme URI: https://rising-link.com
Author: Rising Link
Author URI: https://rising-link.com
Description: Rising Link公式テーマ（試験環境用）
Version: 1.0
*/

/* 全体共通 */
body {
  margin: 0;
  font-family: 'Noto Sans JP', sans-serif;
  background: #fff;
  color: #333;
}

h1, h2, h3 {
  font-weight: 700;
  margin: 0 0 10px;
}

p {
  margin: 0 0 20px;
  line-height: 1.8;
}



/* グローバルヘッダー */
.global-header {
  display: flex;
  justify-content: space-between; /* ロゴ左、ナビ右に配置 */
  align-items: center;
  background: white;
  padding: 15px 30px;
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: 0 2px 5px rgba(0,0,0,0.05);
}

.logo {
  font-size: 1.6em;
  font-weight: bold;
  color: #0a3d62;
}

.logo img {
  height: 50px; /* 高さ調整（必要に応じて変更） */
  object-fit: contain;
  display: block;
}


.global-nav ul {
  display: flex;
  list-style: none;
  gap: 30px;
  margin: 0;
  padding: 0;
}

.global-nav a {
  display: inline-flex;
  align-items: center;      /* ← 垂直中央揃え */
  padding: 10px 12px;       /* 通常メニューにも上下paddingをつける */
  text-decoration: none;
  color: #333;
  font-weight: bold;
  transition: color 0.2s;
}

.global-nav a:hover {
  color: #0a3d62;
}

/* ハンバーガーアイコン（スマホのみ表示） */
.menu-toggle {
  display: none;
  font-size: 2rem;
  cursor: pointer;
  user-select: none;
}

/* モバイル対応 */
@media (max-width: 768px) {
  .menu-toggle {
    display: block;
    color: #333;
  }

  .global-nav {
    display: none;
    width: 100%;
    background: #fff;
    position: absolute;
    top: 70px;
    left: 0;
    box-shadow: 0 2px 6px rgba(0,0,0,0.1);
  }

  .global-nav ul {
    flex-direction: column;
    gap: 0;
  }

  .global-nav ul li {
    border-bottom: 1px solid #eee;
    text-align: center;
    padding: 15px 0;
  }

  .global-header {
    flex-wrap: wrap;
    position: relative;
  }

  .global-nav.active {
    display: block;
  }
}


/* スムーズスクロール */
html {
  scroll-behavior: smooth;
}


/* Hero */
.hero {
  background-image: url('img/hero.jpg');
  background-size: cover;
  background-position: center;
  height: 70vh;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
}

.hero::before {
  content: '';
  position: absolute;
  top: 0; left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
}

.hero-text {
  position: relative;
  color: #fff;
  z-index: 1;
  max-width: 800px;
  padding: 20px;
}

.hero-text h1 {
  font-size: 3rem;
}

.hero-text p {
  font-size: 1.3rem;
}

/* メッセージセクション */
.message {
  padding: 60px 20px;
  text-align: center;
  background: #f7f7f7;
}

/* 事業紹介 */
.services {
  padding: 60px 20px;
  text-align: center;
}

.service-cards {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 30px;
  margin: 30px auto 0;
  max-width: 1000px;  /* ← ここを広くするのが一番簡単で安全！ */
}

.card {
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
  padding: 30px;
  max-width: 300px;
  text-align: center;
}

.card img {
  height: auto;
  width: 100%;
  max-height: 200px;
  object-fit: contain;
  margin-bottom: 20px;
}

/* 会社概要 */

.company {
  background: #f7f7f7;
  padding: 60px 20px;
  text-align: center;
}

.company h2 {
  margin-bottom: 40px;
}

.company-table {
  margin: 0 auto;
  border-collapse: collapse;
  width: 90%;
  max-width: 700px;
  font-size: 16px;
}

.company-table th,
.company-table td {
  border-bottom: 1px solid #ccc;
  padding: 12px 15px;
  text-align: left;
}

.company-table th {
  background-color: #eaeaea;
  width: 30%;
  font-weight: 600;
}


/* フッター */
footer {
  background: #111;
  color: #fff;
  padding: 30px;
  text-align: center;
}

/* レスポンシブ */
@media (max-width: 768px) {
  .hero-text h1 {
    font-size: 2rem;
  }
  .hero-text p {
    font-size: 1rem;
  }
  .service-cards {
    flex-direction: column;
    align-items: center;
  }
}

/* ハンバーガー共通 */
.menu-toggle {
  display: none;
  font-size: 2rem;
  cursor: pointer;
  user-select: none;
  transition: transform 0.2s;
}

/* メニュー背景モーダル */
.nav-overlay {
  display: none;
  position: fixed;
  top: 0; left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,0.4);
  z-index: 999;
}

/* モバイル対応 */
@media (max-width: 768px) {
  .menu-toggle {
    display: block;
    z-index: 1001;
    color: #333;
  }

  .global-header {
    flex-wrap: wrap;
    position: relative;
  }

  .global-nav {
    display: none;
    width: 100%;
    background: white;
    position: absolute;
    top: 70px;
    left: 0;
    z-index: 1000;
    animation: slideDown 0.3s ease;
  }

  .global-nav ul {
    flex-direction: column;
  }

  .global-nav ul li {
    border-bottom: 1px solid #eee;
    text-align: center;
    padding: 15px 0;
  }

  .global-nav.active {
    display: block;
  }

  .nav-overlay.active {
    display: block;
  }

  .menu-toggle.active {
    transform: rotate(90deg);
  }
}

/* スライドダウンアニメーション */
@keyframes slideDown {
  from {
    opacity: 0;
    transform: translateY(-20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.global-nav a.cta:hover {
  background-color: #073152;
  color: #fff;
}

/* 📩 アイコンの余白 */
.cta .icon {
  margin-right: 6px;
  font-size: 1.2em;
}

/* 💫 CTAアニメーション（点滅 or ゆらぎ） */
.cta {
  animation: pulse 1.8s infinite;
}

/* ゆらぎ風アニメーション */
@keyframes pulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.06); }
}

/* 📱 スマホ専用 下固定CTA */
.cta-fixed-sp {
  display: none;
}

/* モバイルだけ表示 */
@media (max-width: 768px) {
  .cta-fixed-sp {
    display: flex;
    justify-content: center;
    align-items: center;
    position: fixed;
    bottom: 20px;
    right: 20px;
    width: 60px;
    height: 60px;
    z-index: 2000;
    background-color: rgba(255, 87, 34, 0.85);
    backdrop-filter: blur(4px);
    border-radius: 50%;
    box-shadow: 0 4px 12px rgba(0,0,0,0.25);
    text-decoration: none;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    font-size: 24px;
    color: white;
    animation: ctaPulse 2s infinite;
  }

  .cta-fixed-sp:hover {
    transform: scale(1.08);
    box-shadow: 0 6px 18px rgba(0,0,0,0.3);
  }


}

/* ゆらぎアニメーション */
@keyframes pulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.08); }
}

/* --- PC版 お問い合わせボタン --- */
.global-nav a.cta.pc-cta {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background-color: #ff5722 !important;  /* ← オレンジに固定 */
  color: #fff !important;
  text-decoration: none;
  padding: 8px 18px;
  border-radius: 6px;
  font-weight: 700;
  transition: background 0.25s, transform 0.2s;
  animation: pcPulse 2s infinite;
}

.global-nav a.cta.pc-cta:hover {
  background-color: #e64a1d !important;
  transform: translateY(-2px);
}

/* PC用CTAゆらぎ */
@keyframes pcPulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.07); }
}

/* スマホCTAゆらぎ */
@keyframes ctaPulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.08); }
}

/* ================== モバイルでは非表示にして、フロートCTAのみ残す */
@media (max-width: 768px) {
  .global-nav .pc-cta { display: none; }
}

.carousel {
  padding: 60px 20px;
  background: #fafafa;
  text-align: center;
}

.carousel h2 {
  font-size: 1.8em;
  margin-bottom: 30px;
}

.slide-card {
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
  padding: 20px;
  text-align: center;
}

.slide-card img {
  width: 100%;
  height: 150px;
  object-fit: cover;
  border-radius: 8px;
  margin-bottom: 15px;
}

.swiper-pagination-bullet {
  background: #0a3d62;
}

.card-carousel {
  padding: 40px 0;
  background: #f9f9f9;
}

.swiper {
  width: 100%;
  overflow: hidden;
}

.swiper-wrapper {
  display: flex;
  transition-timing-function: ease;
}

.swiper-slide {
  width: 140px !important;   /* 強制的に幅指定 */
  flex-shrink: 0;
  height: 100px !important;  /* 高さも強制指定 */
  background: #fff;
  border-radius: 10px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
  display: flex;
  justify-content: center;
  align-items: center;
}

.swiper-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 10px;
}

.recommended {
  padding: 60px 20px;
  background: #fff;
}

.recommended h2 {
  text-align: center;
  font-size: 2em;
  margin-bottom: 40px;
}

.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 30px;
  max-width: 1200px;
  margin: 0 auto;
}

.product-card {
  background: #fff;
  border-radius: 10px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
  overflow: hidden;
  text-align: center;
  padding-bottom: 20px;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

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

.product-card img {
  width: 100%;
  height: 200px;
  object-fit: cover;
}

.product-card h3 {
  font-size: 1.2em;
  margin: 15px 0 10px;
}

.product-card p {
  font-size: 0.95em;
  padding: 0 15px;
  color: #555;
  margin-bottom: 15px;
}



/* === おすすめ商品セクション全体 === */
.pickup-wrapper {
  background: #faf7f2; /* 横幅全体の背景色 */
  padding: 60px 0; /* 上下余白 */
}

.pickup-items {
  display: flex;
  align-items: stretch; /* 左右の高さを揃える */
  gap: 20px;
  flex-wrap: wrap;
  max-width: 1000px; /* コンテンツ幅を制限して中央寄せ */
  margin: 0 auto; /* 中央寄せ */
}

/* 左カラム */
.pickup-left {
  flex: 0 0 280px; /* 幅を少し小さく（例: 180px） */
}

.pickup-left a {
  display: block;
}
.pickup-left img {
  width: 100%;
  height: 100%;
  object-fit: cover; /* 正方形内にトリミング */
  border-radius: 6px;
  box-shadow: 0 2px 5px rgba(0,0,0,0.05);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.pickup-left a:hover img {
  transform: scale(1.03);
  box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

/* 右カラム */
.pickup-right {
  flex: 1;
}

/* 商品リスト */
.pickup-list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  list-style: none;
  padding: 0;
  margin: 0;
}

.pickup-list li {
  width: calc(20% - 8px); /* 5列固定（余白分を引く） */
}

.pickup-list img {
  width: 100%;
  aspect-ratio: 1 / 1; /* 正方形にする */
  object-fit: cover;
  display: block;
  background: #fff;
  border-radius: 4px;
  box-shadow: 0 2px 5px rgba(0,0,0,0.05);
}


/* スマホは2列固定 */
@media (max-width: 768px) {
  .pickup-list li {
    width: calc(50% - 5px);
  }
}

/* お知らせセクション */
.news-section {
  max-width: 1000px; /* 中央寄せ */
  margin: 40px auto;
  padding: 0 20px;
}

.news-section h2 {
  font-size: 1.6em;
  margin-bottom: 20px;
  text-align: center; /* 見出し中央寄せ */
  color: #333;
}

.news-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 10px; /* ボックス間の隙間 */
}

.news-list li {
  background: #fff;
  border-radius: 6px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.05);
  border: 1px solid #eee;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.news-list li:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 10px rgba(0,0,0,0.1);
}

.news-list li a {
  display: block;
  padding: 12px 15px;
  text-decoration: none;
  color: #333;
}

.news-list li a:hover {
  color: #0a3d62;
}

/* 最大3件まで表示（余分は非表示） */
.news-list li:nth-child(n+4) {
  display: none;
}

/* フッターセクション */
.site-footer {
  background: #0a3d62; /* 濃い背景色 */
  color: #fff;
  padding: 30px 0 20px;
}

.footer-inner {
  max-width: 1000px;
  margin: 0 auto;
  padding: 0 20px;
}

.footer-nav ul {
  list-style: none;
  padding: 0;
  margin: 0 0 20px;
  display: flex;
  flex-wrap: wrap;
  gap: 15px;
  justify-content: center;
}

.footer-nav a {
  color: #fff;
  text-decoration: none;
  font-size: 0.95em;
  transition: color 0.2s;
}

.footer-nav a:hover {
  color: #ffd700; /* ホバー時は金色 */
}

.footer-copy {
  text-align: center;
  font-size: 0.8em;
  color: #ccc;
}

/* スマホでは縦並び */
@media (max-width: 768px) {
  .footer-nav ul {
    flex-direction: column;
    align-items: center;
  }
}

.footer-sns {
  display: flex;
  justify-content: center;
  gap: 15px;
  margin-bottom: 15px;
}

.footer-sns a svg {
  transition: transform 0.2s, fill 0.2s;
}

.footer-sns a:hover svg {
  transform: scale(1.2);
  fill: #ffd700; /* ホバーで金色に */
}

/* お知らせ一覧ページ */
.news-page {
  max-width: 1000px;
  margin: 0 auto;
  padding: 40px 20px;
  background: #fff;
}

.news-page h1 {
  text-align: center;
  font-size: 2rem;
  margin-bottom: 40px;
  color: #333;
}

/* 一覧グリッド */
.news-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 20px;
}

/* カード全体 */
.news-item {
  background: #fff;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 2px 6px rgba(0,0,0,0.1);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.news-item:hover {
  transform: translateY(-3px);
  box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

.news-item a {
  display: block;
  text-decoration: none;
  color: inherit;
}

/* サムネイル画像 */
.news-item img {
  width: 100%;
  height: 180px;
  object-fit: cover;
  display: block;
}

/* タイトル */
.news-item h2 {
  font-size: 1.1rem;
  padding: 12px;
  margin: 0;
  color: #333;
}

/* 日付 */
.news-item time {
  display: block;
  font-size: 0.85rem;
  color: #777;
  padding: 0 12px 12px;
}

.news-card {
  display: flex;
  flex-direction: column;
  background: #fff;
  border-radius: 6px;
  border: 1px solid #eee;
  box-shadow: 0 2px 6px rgba(0,0,0,0.05);
  overflow: hidden;
  text-decoration: none;
  color: #333;
  transition: transform 0.2s, box-shadow 0.2s;
}

.news-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 10px rgba(0,0,0,0.1);
}

/* サムネイル部分 */
.news-thumb {
  width: 100%;
  height: 160px; /* 高さ固定で統一感 */
  overflow: hidden;
}

.news-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* 情報部分 */
.news-info {
  padding: 12px 15px;
}

.news-date {
  font-size: 0.85em;
  color: #888;
  margin-bottom: 8px;
  display: block;
}

.news-title {
  font-weight: bold;
  font-size: 1em;
  line-height: 1.4;
}

/* お知らせ詳細ページ */
.news-detail {
  max-width: 1000px;
  margin: 40px auto;
  padding: 0 20px;
}

.news-detail-inner {
  background: #fff;
  border-radius: 6px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.05);
  border: 1px solid #eee;
  padding: 20px;
}

.news-detail-title {
  font-size: 1.8em;
  margin-bottom: 10px;
  color: #0a3d62;
}

.news-detail-date {
  font-size: 0.9em;
  color: #888;
  margin-bottom: 20px;
}

.news-detail-thumb {
  margin-bottom: 20px;
}

.news-detail-thumb img {
  width: 100%;
  height: auto;
  border-radius: 6px;
}

.news-detail-content p {
  line-height: 1.8;
  margin-bottom: 15px;
}

.news-detail-back {
  margin-top: 30px;
}

.news-detail-back a {
  display: inline-block;
  background: #0a3d62;
  color: #fff;
  padding: 10px 20px;
  border-radius: 4px;
  font-size: 0.95em;
  font-weight: bold;
  text-decoration: none;
  transition: background 0.2s, transform 0.1s;
}

.news-detail-back a:hover {
  background: #073152;
  transform: translateY(-1px);
}

.news-detail-back a:active {
  transform: translateY(1px);
}

.news-detail-nav {
  display: flex;
  justify-content: space-between;
  margin: 30px 0;
}

.news-detail-nav a {
  color: #0a3d62;
  text-decoration: none;
  font-weight: bold;
}

.news-detail-nav a:hover {
  text-decoration: underline;
}

/* 関連記事 */
.related-news {
  margin-top: 40px;
}

.related-news h2 {
  font-size: 1.4em;
  margin-bottom: 20px;
  color: #0a3d62;
  border-left: 5px solid #0a3d62;
  padding-left: 10px;
}

.related-news-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 15px;
}

.related-card {
  display: block;
  background: #fff;
  border-radius: 6px;
  overflow: hidden;
  border: 1px solid #eee;
  box-shadow: 0 2px 6px rgba(0,0,0,0.05);
  text-decoration: none;
  color: #333;
  transition: transform 0.2s, box-shadow 0.2s;
}

.related-card img {
  width: 100%;
  height: 140px;
  object-fit: cover;
}

.related-card .related-title {
  display: block;
  padding: 10px;
  font-size: 0.95em;
  font-weight: bold;
}

.related-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 10px rgba(0,0,0,0.1);
}

/* 会社概要ページ */
.company-page {
  max-width: 1000px;
  margin: 40px auto;
  padding: 0 20px;
}

.company-page h1 {
  text-align: center;
  font-size: 1.8em;
  margin-bottom: 30px;
  color: #0a3d62;
}

.company-table {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: 30px;
}

.company-table th,
.company-table td {
  padding: 12px 15px;
  border-bottom: 1px solid #ccc;
  text-align: left;
}

.company-table th {
  background-color: #f7f7f7;
  font-weight: bold;
  width: 25%;
}

/* 事業紹介ページ */
.services-page {
  max-width: 1100px;
  margin: 40px auto;
  padding: 0 20px;
}

.services-page h1 {
  text-align: center;
  font-size: 1.8em;
  margin-bottom: 40px;
  color: #0a3d62;
}

.service-block {
  display: flex;
  align-items: center;
  gap: 30px;
  margin-bottom: 60px;
  flex-wrap: wrap;
}

.service-block.reverse {
  flex-direction: row-reverse;
}

.service-img {
  flex: 1 1 45%;
}

.service-img img {
  width: 100%;
  height: auto;
  border-radius: 6px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.05);
}

.service-text {
  flex: 1 1 50%;
}

.service-text h2 {
  font-size: 1.4em;
  margin-bottom: 15px;
  color: #0a3d62;
}

.service-text p {
  line-height: 1.8;
}

/* スマホ対応 */
@media (max-width: 768px) {
  .service-block {
    flex-direction: column;
  }
  .service-block.reverse {
    flex-direction: column;
  }
}

/* お問い合わせボタン（事業紹介ページ） */
.services-contact {
  text-align: center;
  margin-top: 40px;
  padding: 30px;
  background: #f7f7f7;
  border-radius: 6px;
}

.services-contact p {
  font-size: 1em;
  margin-bottom: 20px;
}

.contact-btn {
  display: inline-block;
  background: #0a3d62;
  color: #fff;
  padding: 12px 24px;
  border-radius: 30px;
  font-size: 1em;
  font-weight: bold;
  text-decoration: none;
  transition: background 0.3s, transform 0.2s;
}

.contact-btn:hover {
  background: #073152;
  transform: translateY(-2px);
}

.contact-btn:active {
  transform: translateY(1px);
}

/* お問い合わせページ */
.contact-page {
  max-width: 800px;
  margin: 40px auto;
  padding: 0 20px;
}

.contact-page h1 {
  text-align: center;
  font-size: 1.8em;
  margin-bottom: 20px;
  color: #0a3d62;
}

.contact-intro {
  text-align: center;
  margin-bottom: 30px;
  font-size: 0.95em;
  color: #555;
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.contact-form label {
  font-weight: bold;
  color: #333;
}

.contact-form input,
.contact-form textarea {
  padding: 10px;
  border: 1px solid #ccc;
  border-radius: 4px;
  font-size: 0.95em;
  width: 100%;
  box-sizing: border-box;
}

.contact-form input:focus,
.contact-form textarea:focus {
  border-color: #0a3d62;
  outline: none;
  box-shadow: 0 0 5px rgba(10,61,98,0.3);
}

.contact-submit {
  background: #0a3d62;
  color: #fff;
  border: none;
  padding: 12px 0;
  font-size: 1em;
  font-weight: bold;
  border-radius: 30px;
  cursor: pointer;
  transition: background 0.3s, transform 0.2s;
}

.contact-submit:hover {
  background: #073152;
  transform: translateY(-2px);
}

.contact-submit:active {
  transform: translateY(1px);
}


/* 商品一覧ページ */
.products-page {
  max-width: 1100px;
  margin: 40px auto;
  padding: 0 20px;
}

.products-page h1 {
  text-align: center;
  font-size: 1.8em;
  margin-bottom: 20px;
  color: #0a3d62;
}

.category-nav {
  display: flex;
  gap: 15px;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 40px;
}

.category-nav a {
  background: #f7f7f7;
  padding: 8px 14px;
  border-radius: 4px;
  text-decoration: none;
  color: #333;
  border: 1px solid #ddd;
  transition: background 0.2s;
}

.category-nav a:hover {
  background: #0a3d62;
  color: #fff;
}

.product-category {
  padding: 6px 12px;
  border-radius: 20px;
	margin-top: 40px;  /* 上の余白 */
    margin-bottom: 40px; /* 下の余白 */	
}

.product-category:first-of-type {
    margin-top: 0; /* 最初のカテゴリは上の余白なし */
}

.product-category h2 {
  font-size: 1.4em;
  margin-bottom: 20px;
  color: #0a3d62;
  border-left: 5px solid #0a3d62;
  padding-left: 10px;
}

.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 20px;
}

.product-card {
  display: block;
  background: #fff;
  border: 1px solid #eee;
  border-radius: 6px;
  overflow: hidden;
  text-decoration: none;
  color: #333;
  box-shadow: 0 2px 6px rgba(0,0,0,0.05);
  transition: transform 0.2s, box-shadow 0.2s;
}

.product-card img {
  width: 100%;
  height: 160px;
  object-fit: cover;
}

.product-card h3 {
  font-size: 1em;
  margin: 10px;
}

.price {
  color: #a05a2c;
  font-weight: bold;
  margin: 0 10px 10px;
}

.product-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 10px rgba(0,0,0,0.1);
}


/* 商品詳細ページ */
.product-detail {
  max-width: 1000px;
  margin: 50px auto;
  padding: 20px;
  background: #fff;
}

.product-detail-inner {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.product-detail h1 {
  font-size: 1.8em;
  font-weight: bold;
  margin-bottom: 10px;
  border-bottom: 2px solid #eee;
  padding-bottom: 10px;
}

.product-thumb img {
  width: 100%;
  height: auto;
  border-radius: 6px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.1);
}

.product-content {
  font-size: 1em;
  line-height: 1.8;
}

.product-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 15px;
  font-size: 0.95em;
  color: #555;
}



.product-detail-page {
  max-width: 1000px;
  margin: 40px auto;
  padding: 0 20px;
}

.product-title {
  font-size: 1.8em;
  margin-bottom: 20px;
  color: #0a3d62;
  text-align: center;
}

.product-main {
  display: flex;
  flex-wrap: wrap;
  gap: 30px;
  margin-bottom: 40px;
}

.product-images {
  flex: 1 1 45%;
}

.product-images img {
  width: 100%;
  border-radius: 6px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.05);
}

.product-info {
  flex: 1 1 50%;
}

.product-price {
  font-weight: bold;
  color: #c0392b;
}

.product-detail .btn {
  display: inline-block;
  padding: 10px 20px;
  background: #333;
  color: #fff;
  border-radius: 4px;
  text-decoration: none;
  font-size: 0.95em;
  transition: background 0.2s ease;
}

.product-detail .btn:hover {
  background: #555;
}

.product-desc {
  margin-bottom: 20px;
  line-height: 1.8;
}

.product-contact-btn {
  display: inline-block;
  background: #0a3d62;
  color: #fff;
  padding: 12px 24px;
  border-radius: 30px;
  text-decoration: none;
  font-weight: bold;
  transition: background 0.3s, transform 0.2s;
}

.product-contact-btn:hover {
  background: #073152;
  transform: translateY(-2px);
}

.product-detail-section h2 {
  font-size: 1.4em;
  margin-bottom: 15px;
  color: #0a3d62;
}

.product-detail-section p {
  line-height: 1.8;
}

.product-back {
  margin-top: 40px;
}

.product-back a {
  display: inline-block;
  background: #f7f7f7;
  padding: 8px 14px;
  border-radius: 4px;
  text-decoration: none;
  color: #333;
}

.product-back a:hover {
  background: #0a3d62;
  color: #fff;
}

/* スマホ対応 */
@media (max-width: 768px) {
  .product-detail {
    margin: 20px;
    padding: 15px;
  }
}

/* スマホ対応 */
@media (max-width: 768px) {
  .product-main {
    flex-direction: column;
  }
}

/* カテゴリー名 */
.product-category-name {
  font-size: 0.9em;
  margin-bottom: 10px;
}

.product-category-name a {
  color: #0a3d62;
  text-decoration: none;
  background: #f0f6fa;
  padding: 4px 10px;
  border-radius: 4px;
  transition: background 0.2s;
}

.product-category-name a:hover {
  background: #0a3d62;
  color: #fff;
}

/* ===== お知らせ詳細ページ ===== */
.news-detail {
  max-width: 900px;
  margin: 40px auto;
  padding: 0 20px;
}

.news-detail-inner {
  background: #fff;
  padding: 30px;
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.05);
}

.news-detail-title {
  font-size: 1.8em;
  font-weight: bold;
  margin-bottom: 10px;
}

.news-detail-date {
  color: #888;
  font-size: 0.9em;
  margin-bottom: 20px;
  display: block;
}

.news-detail-thumb {
  margin-bottom: 20px;
}

.news-detail-thumb img {
  width: 100%;
  height: auto;
  border-radius: 6px;
}

.news-detail-content p {
  margin-bottom: 20px;
  line-height: 1.8;
}

.news-detail-back {
  margin-top: 30px;
}

.news-detail-back a {
  color: #0a3d62;
  text-decoration: none;
}

.news-detail-back a:hover {
  text-decoration: underline;
}

/* 前後記事ナビ */
.news-detail-nav {
  display: flex;
  justify-content: space-between;
  margin: 30px 0;
}

.news-detail-nav a {
  color: #0a3d62;
  font-weight: bold;
  text-decoration: none;
}

.news-detail-nav a:hover {
  text-decoration: underline;
}

/* 関連記事 */
.related-news {
  margin-top: 40px;
}

.related-news h2 {
  font-size: 1.4em;
  margin-bottom: 20px;
}

.related-news-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 15px;
}

.related-card {
  display: block;
  text-decoration: none;
  background: #fff;
  border-radius: 6px;
  overflow: hidden;
  box-shadow: 0 2px 6px rgba(0,0,0,0.05);
  transition: transform 0.2s ease;
}

.related-card:hover {
  transform: translateY(-4px);
}

.related-card img {
  width: 100%;
  height: auto;
  display: block;
}

.related-title {
  display: block;
  padding: 10px;
  font-size: 0.95em;
  color: #333;
}

/* 戻るボタン */
.news-detail-back {
  margin-top: 30px;
}

.news-detail-back .btn {
  display: inline-block;
  padding: 10px 20px;
  background: #0a3d62;
  color: #fff;
  border-radius: 4px;
  text-decoration: none;
  font-weight: bold;
}

.news-detail-back .btn:hover {
  background: #073152;
}

/* 商品詳細ページ全体 */
.product-detail-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 20px;
}

/* 商品タイトル */
.product-detail-inner h1 {
  font-size: 2rem;
  margin-bottom: 20px;
  border-bottom: 2px solid #eee;
  padding-bottom: 10px;
}

/* メインエリア（画像＋情報） */
.product-main {
  display: flex;
  flex-wrap: wrap;
  gap: 30px;
  margin-bottom: 30px;
}

/* 画像エリア */
.product-images {
  flex: 1 1 45%;
}

.product-images img {
  max-width: 100%;
  height: auto;
  border-radius: 6px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.1);
}

/* 情報エリア */
.product-info {
  flex: 1 1 50%;
}

.product-price {
  font-size: 1.5rem;
  font-weight: bold;
  color: #e60012;
  margin-bottom: 15px;
}

.product-desc {
  line-height: 1.6;
  margin-bottom: 20px;
}

.product-contact-btn {
  display: inline-block;
  background-color: #e60012;
  color: #fff;
  padding: 10px 20px;
  border-radius: 4px;
  text-decoration: none;
}

.product-contact-btn:hover {
  background-color: #c5000f;
}

/* 商品説明セクション */
.product-detail-section {
  margin-top: 40px;
}

.product-detail-section h2 {
  font-size: 1.5rem;
  margin-bottom: 15px;
}

.product-detail-section p {
  line-height: 1.8;
}

/* 戻るボタン */
.product-back {
  margin-top: 30px;
}

.product-back a {
  color: #333;
  text-decoration: none;
}

.product-back a:hover {
  text-decoration: underline;
}

/* ===============================
   サンクスページ
================================== */
.thanks-page {
  padding: 80px 20px;
  background-color: #f9f9f9;
  text-align: center;
}

.thanks-inner {
  max-width: 800px;
  margin: 0 auto;
  background: #fff;
  padding: 50px 30px;
  border-radius: 8px;
  box-shadow: 0 4px 15px rgba(0,0,0,0.05);
}

.thanks-inner h1 {
  font-size: 2rem;
  margin-bottom: 20px;
  color: #333;
}

.thanks-inner p {
  font-size: 1.1rem;
  margin-bottom: 30px;
  color: #555;
}

.thanks-inner .btn {
  display: inline-block;
  background-color: #0073aa; /* WordPressブルー */
  color: #fff;
  padding: 12px 25px;
  border-radius: 4px;
  text-decoration: none;
  transition: background-color 0.3s ease;
}

.thanks-inner .btn:hover {
  background-color: #005177;
}

/* ===============================
   404ページ
================================== */
.error404-page {
  padding: 80px 20px;
  background-color: #f9f9f9;
  text-align: center;
}

.error404-inner {
  max-width: 800px;
  margin: 0 auto;
  background: #fff;
  padding: 50px 30px;
  border-radius: 8px;
  box-shadow: 0 4px 15px rgba(0,0,0,0.05);
}

.error404-inner h1 {
  font-size: 2rem;
  margin-bottom: 20px;
  color: #d9534f;
}

.error404-inner p {
  font-size: 1.1rem;
  margin-bottom: 30px;
  color: #555;
}

.error404-inner .btn {
  display: inline-block;
  background-color: #0073aa;
  color: #fff;
  padding: 12px 25px;
  border-radius: 4px;
  text-decoration: none;
  transition: background-color 0.3s ease;
}

.error404-inner .btn:hover {
  background-color: #005177;
}

/* トップページ お知らせ欄 */
.top-news {
  padding: 40px 20px;
  background-color: #f9f9f9;
}

.top-news h2 {
  font-size: 1.5rem;
  margin-bottom: 15px;
  border-left: 4px solid #0073aa;
  padding-left: 10px;
}

.top-news-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.top-news-list li {
  padding: 8px 0;
  border-bottom: 1px solid #ddd;
}

.top-news-list li:last-child {
  border-bottom: none;
}

.news-date {
  color: #999;
  margin-right: 10px;
  font-size: 0.9rem;
}

.top-news-list a {
  color: #333;
  text-decoration: none;
}

.top-news-list a:hover {
  text-decoration: underline;
}

.news-date {
  display: inline-block;
  margin-right: 10px;
  color: #888;
  font-size: 0.9em;
}

/* お問い合わせページ全体 */
.contact-page {
  background: #f8f9fa;
  padding: 60px 20px;
}

.contact-inner {
  max-width: 700px;
  margin: 0 auto;
  background: #fff;
  padding: 40px 30px;
  border-radius: 12px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
}

/* 見出し */
.contact-inner h1 {
  text-align: center;
  font-size: 2em;
  margin-bottom: 25px;
  color: #222;
  font-weight: 700;
}

/* ラベル */
.contact-inner label {
  display: block;
  margin-top: 20px;
  margin-bottom: 8px;
  font-weight: bold;
  color: #555;
}

/* 入力欄 */
.contact-inner input,
.contact-inner textarea {
  width: 100%;
  padding: 12px 15px;
  border: 1px solid #ccc;
  border-radius: 6px;
  font-size: 1em;
  transition: all 0.3s ease;
  background: #fafafa;
}

.contact-inner input:focus,
.contact-inner textarea:focus {
  border-color: #0a3d62;
  background: #fff;
  box-shadow: 0 0 8px rgba(10, 61, 98, 0.2);
  outline: none;
}

/* 送信ボタン */
.contact-inner button {
  margin-top: 30px;
  width: 100%;
  padding: 14px;
  font-size: 1.1em;
  background: #0a3d62;
  color: #fff;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  font-weight: bold;
  transition: background 0.3s ease;
}

.contact-inner button:hover {
  background: #064273;
}

/* モバイル対応 */
@media (max-width: 600px) {
  .contact-inner {
    padding: 25px 20px;
  }
  .contact-inner h1 {
    font-size: 1.6em;
  }
}

/* サンクスページ全体 */
.thanks-page {
  background: #f8f9fa;
  padding: 80px 20px;
}

.thanks-inner {
  max-width: 700px;
  margin: 0 auto;
  background: #fff;
  padding: 50px 30px;
  border-radius: 12px;
  text-align: center;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
}

.thanks-inner h1 {
  font-size: 2em;
  margin-bottom: 20px;
  color: #222;
  font-weight: 700;
}

.thanks-inner p {
  font-size: 1.1em;
  color: #555;
  line-height: 1.8;
  margin-bottom: 30px;
}

.thanks-btn {
  display: inline-block;
  background: #0a3d62;
  color: #fff;
  padding: 14px 28px;
  font-size: 1.1em;
  border-radius: 6px;
  text-decoration: none;
  font-weight: bold;
  transition: background 0.3s ease;
}

.thanks-btn:hover {
  background: #064273;
}
