/*
 Theme Name: Rising Link
 Theme URI: https://rising-link.com
 Description: Main theme for Rising Link.
 Author: You
 Version: 1.0.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;
}

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

footer {
  background: #111;
  color: #fff;
  padding: 30px;
  text-align: center;
}

/**********************************************************
 * header.php（ヘッダー）
 **********************************************************/
.global-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: white;
  padding: 12px 16px;
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
  gap: 16px;
	flex-wrap: nowrap;
	box-sizing: border-box;
}

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

.logo img {
  height: auto;
  max-height: 44px;
  object-fit: contain;
  display: block;
}

.global-nav ul {
  display: flex;
  list-style: none;
  gap: 20px;
  margin: 0;
  padding: 0;
  align-items: center;
}

.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;
  transition: transform 0.2s;
	margin: 0 0 0 auto;
	align-items: center;
}

/* ハンバーガーメニューを開いたときに出る背景のモヤ（半透明の黒幕） */
.nav-overlay {
  display: none; /* 最初は非表示にする（開いたときにJSで表示） */
  position: fixed; /* スクロールしても位置が動かない */
  top: 0; /* 画面の上から配置開始 */
  left: 0; /* 画面の左から配置開始 */
  width: 100%; /* 画面横いっぱい */
  height: 100%; /* 画面縦いっぱい */
  background: rgba(0, 0, 0, 0.4); /* 半透明の黒色（0.4は透明度） */
  z-index: 999; /* 他の要素より前面に表示する */
}

/**********************************************************
 * footer.php（フッター）
 **********************************************************/

/* フッターセクション */
.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;
}

/* スマホでは縦並び */
.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;
  /* ホバーで金色に */
}


/**********************************************************
 * index.php（トップページ）
 **********************************************************/

/* メイントップビュー */
.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;
}

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

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

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

/* お問い合わせボタンアニメーション（点滅 or ゆらぎ） */
.cta {
  animation: pulse 1.8s infinite;
}

/* ゆらぎ風アニメーション */
@keyframes pulse {

  0%,
  100% {
    transform: scale(1);
  }

  50% {
    transform: scale(1.08);
  }
}

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

/* --- PC版 お問い合わせボタン --- */
.global-nav a.cta.pc-cta {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background-color: #ff5722;
  color: #fff;
  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;
  transform: translateY(-2px);
}


/* トップメインビュー下スライダー */
.card-carousel {
  padding: 40px 0;
  background: #f9f9f9;
}

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

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

.swiper-slide {
  width: 140px;
  flex-shrink: 0;
  height: 100px;
  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;
}

/* お知らせセクション */
.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;
}


/* トップおすすめ商品セクション */
.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;
}

.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);
}

.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);
}







/* お知らせ一覧ページ */
.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.php（会社概要ページ）
 **********************************************************/
.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%;
}

.ceo-message {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  margin-bottom: 40px;
  gap: 20px;
}

.ceo-photo img {
  max-width: 250px;
  border-radius: 10px;
}

.ceo-text {
  flex: 1;
}

.ceo-text h2 {
  margin-bottom: 10px;
  font-size: 1.5em;
  color: #333;
}

.ceo-text p {
  line-height: 1.6;
  margin-bottom: 10px;
}

.ceo-name {
  font-weight: bold;
  margin-top: 10px;
}

/* 代表挨拶セクション */
.ceo-section {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 30px;
  margin-bottom: 40px;
}

.ceo-image {
  flex: 1 1 40%;
}

.ceo-image img {
  max-width: 100%;
  height: auto;
  border-radius: 8px;
}

.ceo-message {
  flex: 1 1 55%;
}

.ceo-message h2 {
  font-size: 1.5em;
  margin-bottom: 15px;
  color: #333;
}

.ceo-message p {
  line-height: 1.8;
  margin-bottom: 10px;
}

.ceo-name {
  font-weight: bold;
  margin-top: 10px;
}

/**********************************************************
 * services.php（事業紹介ページ）
 **********************************************************/
.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;
}

/* お問い合わせボタン（事業紹介ページ） */
.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);
}

/**********************************************************
 * page-contact.php（お問い合わせページ）
 **********************************************************/
.contact-page {
  max-width: 800px;
  margin: 40px auto;
  padding: 60px 20px;
  background: #f8f9fa;
}

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

.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;
}

.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.php（商品一覧ページ）
 **********************************************************/
.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);
}


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

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

.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: 24px;
  margin-bottom: 40px;
}

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

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

.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.6;
}

.product-contact-btn {
  display: inline-block;
  background-color: #e60012;
  color: #fff;
  padding: 10px 20px;
  border-radius: 4px;
  text-decoration: none;
  font-weight: bold;
  transition: background 0.3s, transform 0.2s;
}

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

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

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

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

.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;
  text-decoration: underline;
}

/* カテゴリー名 */
.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;
}

/* ギャラリーの土台 */
.product-gallery.clean {
  display: grid;
  gap: 12px;
}

/* メイン画像：横幅にフィット・縦は自動、トリミング無し */
.pg-main {
  width: 100%;
  display: grid;
  place-items: center;
  background: none;
  border-radius: 8px;
  padding: 0;
  box-sizing: border-box;
  margin: 0;
  border: none;
  max-width: 1200px;   /* 横幅上限 */
}

.pg-main-img {
  max-width: 1200px;   /* 横幅上限 */
  max-height: 800px;   /* 縦幅上限 */
  height: auto;
  width: 100%;
  object-fit: contain; /* 比率維持で全体表示 */
  display: block;
  margin: 0 auto;
  border-radius: 0;
  box-shadow: none;
  border: none;
}

.product-images .pg-thumb-img {
  width: 100%;
  height: 100%;        /* ← これが効くようになる */
  object-fit: contain; /* ← 全体が収まる */
  border-radius: 0;    /* 汎用の角丸・影を打ち消す */
  box-shadow: none;
}


.pg-thumb {
  position: relative;
  width: 100%;
  aspect-ratio: 1200 / 800; /* 横1200 : 縦800 の比率を維持 */
  border: none;
  border-radius: 0;
  background: none;
  overflow: hidden;
  display: flex;
  padding: 0;
  box-sizing: border-box;
  margin: 0;
  flex: 0 0 calc((100% - 16px) / 3);/* 3枚ぴったり分の幅を割り当て（gap:8px が2つ=16pxを差し引く） */
  scroll-snap-align: start;/*あった方が気持ちよく止まる */
  align-items: center;       /* 縦中央 */
  justify-content: center;   /* 横中央 */
}

.pg-thumb-img {
  width: auto;
  height: 100%;
  object-fit: contain;   /* ←ここが効きます：はみ出さず“収まる” */
  display: block;
  max-width: 100%;   /* ← 枠より広がらない保険 */
  border-radius: 0;
  box-shadow: none;
  object-position: center;
}

/* サムネの見える範囲を制限（4枚目以降を隠す枠） */
.pg-thumbs-viewport {
  overflow: hidden;
  width: 100%;
  position: relative;
}

/* サムネ画像を横並びにしてスクロール可能にする */
.pg-thumbs-track {
  display: flex;
  gap: 8px;                 /* サムネ間の余白 */
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  flex-wrap: nowrap;/* 折り返し禁止 */
}

/* Chrome/Edge/Safariからスクロールバーを非表示 */
.pg-thumbs-track::-webkit-scrollbar {
  display: none;
}

.pg-thumbs-track {
  scrollbar-width: none;     /* Firefox */
  -ms-overflow-style: none;  /* old IE/Edge */
}

.pg-thumbs-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 36px;
  height: 36px;
  border: none;
  border-radius: 999px;
  background: rgba(0,0,0,0.5);
  color: #fff;
  display: none;               /* JSで必要時のみ表示 */
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 2;
}

/* サムネスライドの矢印左右位置 */
.pg-thumbs-prev {
   left: 6px;
  }

.pg-thumbs-next {
  right: 6px;
}

/* 矢印アイコン（CSSで簡易表示。SVG使いたければ差し替え可） */
.pg-thumbs-prev::before,
.pg-thumbs-next::before {
  content: '';
  display: block;
  width: 8px;
  height: 8px;
  border-top: 2px solid currentColor;
  border-right: 2px solid currentColor;
}

.pg-thumbs-prev::before {
  transform: rotate(-135deg);
  margin-left: 6px;
}

.pg-thumbs-next::before {
  transform: rotate(45deg);
  margin-right: 6px;
}

/* ホバーで少し明るく */
.pg-thumbs-arrow:hover {
  background: rgba(0,0,0,0.65);
}

/**********************************************************
 * sigle-news.php（お知らせ詳細ページ）
 **********************************************************/
.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;
}

/**********************************************************
 * sigle-products.php（商品詳細ページ）
 **********************************************************/
.product-detail-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

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


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

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

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

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

.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;
}

.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;
}

/**********************************************************
 * 404.php（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;
}


/**********************************************************
 * max-width:1024px（画面幅が1024px以下の時、この中のcssを適用する。）タブレット用
 **********************************************************/
@media (max-width: 1024px) {


}
/**********************************************************
 * max-width:768px（画面幅が768px以下の時、この中のcssを適用する。）スマホ用
 **********************************************************/
@media (max-width: 768px) {

  /**********************************************************
 * header.php（ヘッダー）
 **********************************************************/
  .menu-toggle {
    display: block;
    color: #333;
    z-index: 1001;
  }

  .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);
    z-index: 1000;
    animation: slideDown 0.3s ease;
  }

  .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;
  }
	


  /**********************************************************
 * index.php（トップページ）
 **********************************************************/

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

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

  .service-cards {
    flex-direction: column;
    align-items: center;
  }

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

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

  .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);
  }

  .global-nav .pc-cta {
    display: none;
  }

  .pickup-list li {
    width: calc(50% - 5px);
  }

/**********************************************************
 * footer.php（フッター）
 **********************************************************/
  .footer-nav ul {
    flex-direction: column;
    align-items: center;
  }

/**********************************************************
 * services.php（事業紹介ページ）
 **********************************************************/
  .service-block {
    flex-direction: column;
  }

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

  .product-detail {
    margin: 20px;
    padding: 15px;
  }

  .contact-inner {
    padding: 25px 20px;
  }

  .contact-inner h1 {
    font-size: 1.6em;
  }

  .ceo-section {
    flex-direction: column;
    text-align: center;
  }

  .ceo-image,
  .ceo-message {
    flex: 1 1 100%;
  }
/**********************************************************
 * single-products.php（商品詳細ページ）
 **********************************************************/

 .product-main {
    display: block;
    gap: 0;
    margin-bottom: 32px;
  }

  .product-main-swiper .swiper-slide {
    display: flex;
    justify-content: center;
    align-items: center;
  }

  .product-main-swiper .swiper-slide img {
    max-width: 100%;
    height: auto;
    object-fit: contain;
  }

  .product-detail {
    padding: 0;
    /* 不要な内側余白を除去 */
  }

  .product-detail .product-main-img {
    width: 100%;
    height: auto;
    max-height: 64vh;
    /* スマホではやや低めに抑える */
  }

  .product-images {
  display: block;
}

  .product-info   {
    display: block;
  }

  .product-desc   {
    display: block;
  }

  /* メイン画像は既存指定を活かしつつ、はみ出し防止の保険 */
  .pg-main {
    margin: 0 0 .5rem;
    height: auto;      /* 高さを画像に合わせる */
    min-height: 200px; /* 読み込み前の保険で仮の高さを確保 */
  }

  .pg-main-img {
    width: 100%;
    height: auto;
    object-fit: contain;
    /* max-heightはあなたの既存(64vh)が効くのでここでは触れない */
    display: block;
  }

  /* ---- サムネは常に3枚ぶんだけ“見える”幅 ---- */
  .pg-thumbs-viewport {
    position: relative;
    overflow: hidden;
    width: 100%;
  }

  .pg-thumbs-track {
    display: flex;
    gap: 8px;
    overflow-x: auto;               /* スワイプ可（ネイティブ横スクロール） */
    -webkit-overflow-scrolling: touch;
    scroll-snap-type: x mandatory;
    scroll-behavior: smooth;
    flex-wrap: nowrap;
  }

  .pg-thumbs-track::-webkit-scrollbar {
    display: none;
  }

  .pg-thumbs-track {
    scrollbar-width: none;
  }

  .pg-thumb {
    flex: 0 0 calc((100% - 16px) / 3); /* 3枚表示 */
    aspect-ratio: 1200 / 800;
    scroll-snap-align: start;
    align-items: center;
    justify-content: center;
  }

  .pg-thumb-img {
    width: auto;
    height: 100%;
    object-fit: contain;
    display: block;
    max-width: 100%;
    object-position: center;
  }

  /* 矢印は“必要な時だけ”JSで表示される前提の初期位置 */
  .pg-thumbs-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 36px; height: 36px;
    border: 0; border-radius: 999px;
    background: rgba(0,0,0,.5);
    color: #fff;
    display: none; /* JSで表示切り替え */
    align-items: center; justify-content: center;
    z-index: 2;
  }

  .pg-thumbs-prev {
    left: 6px;
  }

  .pg-thumbs-next {
    right: 6px;
  }

  .pg-thumbs-next::before {
    content: '';
    display: block;
    width: 8px; height: 8px;
    border-top: 2px solid currentColor;
    border-right: 2px solid currentColor;
  }

  .pg-thumbs-prev::before {
    transform: rotate(-135deg);
    margin-left: 6px;
  }

  .pg-thumbs-next::before {
    transform: rotate(45deg);
    margin-right: 6px;
  }


}