/* ==== Reset CSS ==== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

/* ==== ベースの設定 ==== */
body {
  font-family: sans-serif;
  color: #333;
  background-color: #fff;
  line-height: 1.6;
}

#extpage-main {
    min-height: calc(100vh - 160px);
}

/* ==== ヘッダー ==== */
header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 2rem;
  background-color: #fff;
  box-shadow: 0 2px 5px rgba(0,0,0,0.05);
  position: sticky;
  top: 0;
  z-index: 1000;
  height: 80px;
}

header .logo {
  font-weight: 700;
  font-size: 1.5rem;
  color: #333;
  text-decoration: none;
}

header .logo .logoImage {
  height: 60px;
}

header nav ul {
  list-style: none;
  display: flex;
  gap: 1.5rem;
}

header nav ul li a {
  text-decoration: none;
  color: #333;
  font-weight: 500;
  transition: color 0.3s;
  display: block;
}

header nav ul li a:hover {
  color: #007BFF;
}

@media screen and (max-width: 769px) {
    header nav ul li a {
        padding: 1rem 2rem;
    }
}

/* ==== ヒーローセクション ==== */
.hero {
  /* Picsumを使用した背景画像 */
  background: linear-gradient(
      rgba(0, 0, 0, 0.4),
      rgba(0, 0, 0, 0.4)
    ),
    url("https://picsum.photos/1600/900?grayscale") center/cover no-repeat;
  height: 80vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: #fff;
  position: relative;
}

.hero-content {
  max-width: 800px;
  margin: 0 auto;
  padding: 0 1rem;
}

.hero-content h1 {
  font-size: 2.5rem;
  margin-bottom: 1rem;
  letter-spacing: 1px;
}

.hero-content p {
  font-size: 1.2rem;
  line-height: 1.5;
  margin-bottom: 2rem;
}

.hero-button {
  display: inline-block;
  padding: 0.75rem 1.5rem;
  background-color: #007BFF;
  color: #fff;
  text-decoration: none;
  border-radius: 4px;
  transition: background-color 0.3s;
  font-weight: 600;
}

.hero-button:hover {
  background-color: #0056b3;
}

/* ==== おすすめ製品セクション ==== */
/* 商品一覧全体を淡い水色背景に */
.products-section {
    background-color: #e0f7fa;
    padding: 4rem 2rem;
}

.section-title {
  text-align: center;
  margin-bottom: 2rem;
  font-size: 2rem;
  font-weight: 700;
  position: relative;
}

.products-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 2rem;
  max-width: 1200px;
  margin: 0 auto;
}

/* カードにやわらかいボーダーと影 */
.product-card {
    background-color: #fff;
    border: 1px solid #b2ebf2;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.05);
    transition: transform 0.3s, box-shadow 0.3s;
}
.product-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 6px 18px rgba(0,0,0,0.1);
}

.product-info {
  padding: 1rem;
}

.product-info h3 {
  font-size: 1.2rem;
  margin-bottom: 0.5rem;
}

.product-info p {
  font-size: 0.9rem;
  color: #666;
  margin-bottom: 1rem;
  line-height: 1.4;
}

.product-info .btn {
    border-color: #48cae4;
    color: #0077b6;
  }
.product-info .btn:hover {
background-color: #48cae4;
color: #fff;
}

/* ==== サービス特徴/メリットセクション ==== */
.features-section {
  padding: 3rem 2rem;
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  gap: 2rem;
  align-items: center;
}

.feature-content {
  flex: 1 1 400px;
  min-width: 300px;
}

.feature-content h2 {
  font-size: 2rem;
  margin-bottom: 1.5rem;
}

.feature-content ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.feature-content ul li {
  margin-bottom: 1rem;
  line-height: 1.4;
  position: relative;
  padding-left: 1.5rem;
}

.feature-content ul li::before {
  content: '●';
  color: #007BFF;
  position: absolute;
  left: 0;
}

/* ==== フッター ==== */
footer {
  background-color: #333;
  padding: 2rem;
  color: #fff;
  text-align: center;
  width: 100%;
  height: 80px;
}

footer p {
  font-size: 0.9rem;
  margin-bottom: 0.5rem;
}

footer a {
  color: #fff;
  text-decoration: underline;
}

/* テーブルをスタイリッシュに */
.styled-table {
  width: 100%;
  border-collapse: collapse;
  box-shadow: 0 0 5px rgba(0,0,0,0.1);
  font-size: 0.95rem;
  background-color: #fff;
  margin-top: 1rem; /* テーブル上に少し余白 */
}
.styled-table thead tr {
  background: linear-gradient(120deg, #5bc0de, #0275d8);
  color: #fff;
}
.styled-table thead th {
  font-weight: bold;
  padding: 0.75rem;
  border: none;
}
.styled-table th, .styled-table td {
  border: 1px solid #ddd;
  padding: 0.75rem;
  /* white-space: pre-wrap; */

}
.styled-table tbody tr:nth-child(even) {
  background-color: #f9f9f9;
}
.styled-table tbody tr:hover {
  background-color: #f1f7fb;
}

/* 注文ボタン初期は非表示 */
header nav ul li .order-menu-item {
    display: none;
}
/* 注文リンクのli要素を相対位置に設定 */
.order-menu-item {
    position: relative;
  }
  
  /* カートインジケーターを絶対配置で右端に配置 */
  .order-menu-item .cart-indicator {
    position: absolute;
    right: -20px; /* リンクの左側のパディングに合わせて調整 */
    top: 50%;
    transform: translateY(-50%);
    margin-left: 0; /* 既存のmargin-leftを解除 */
    font-size: 0.9rem;
    display: inline-flex;
    align-items: center;
  }
  
  @media screen and (max-width: 769px) {
    .order-menu-item .cart-indicator {
        left: 90px;
    }
  }

  /* 既存のカートインジケーターのスタイル（必要に応じて微調整） */
  .cart-indicator .count {
    background-color: #dc3545;
    color: white;
    font-size: 0.75rem;
    padding: 2px 6px;
    border-radius: 10px;
  }
  
  
/* ==== レスポンシブ対応 ==== */
.nav-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    font-size: 1.5rem;
  }
  
  .nav-toggle .hamburger {
    display: block;
    width: 25px;
    height: 3px;
    background-color: #333;
    position: relative;
  }
  
  .nav-toggle .hamburger::before,
  .nav-toggle .hamburger::after {
    content: "";
    position: absolute;
    width: 25px;
    height: 3px;
    background-color: #333;
    left: 0;
  }
  
  .nav-toggle .hamburger::before {
    top: -8px;
  }
  
  .nav-toggle .hamburger::after {
    top: 8px;
  }
  
  @media screen and (max-width: 768px) {
    header {
      position: relative;
      z-index: 10000; /* ヘッダー全体の重なり順を上げる */
    }
    
    /* ハンバーガーメニューのボタンを右端に配置 */
    .nav-toggle {
      display: block;
      position: absolute;
      right: 20px;
      top: 50%;
      transform: translateY(-50%);
    }
  
    /* ナビゲーションメニューの設定 */
    header nav ul {
      display: none; /* 初期は非表示 */
      flex-direction: column;
      position: absolute;
      top: 80px; /* ヘッダー下に配置 */
      left: 0;
      width: 100%;
      background-color: #fff;
      box-shadow: 0 2px 5px rgba(0,0,0,0.1);
      z-index: 10000; /* カートフッターより上に表示 */
      margin: 0;
      padding: 0;
    }
  
    header nav ul.active {
      display: block;
    }
  
    header nav ul li {
      /* padding: 1rem 2rem; */
      border-bottom: 1px solid #ddd;
      padding: 0;
    }
  
    /* カートにアイテムがない場合、注文リンクの li に order-empty クラスを付与しボーダーを非表示 */
    header nav ul li.order-menu-item.order-empty {
      border-bottom: none;
    }
  }
  
  @media screen and (min-width: 769px) {
    .nav-toggle {
      display: none;
    }
  }
  
  .breadcrumb-link {
    font-size: 0.70em;         /* 管理メニュー部分を小さめに */
    text-decoration: none; /* 下線を常時表示 */
    color: #007bff;            /* リンクらしい青色 */
    cursor: pointer;
  }
    
  .breadcrumb-link:hover {
    border-bottom: 1px solid currentColor;  /* ホバー時に下線表示 */
  }
  
  .breadcrumb-separator {
    margin: 0 0.5em;
    color: #666; /* 必要に応じて調整 */
  }
  
  .breadcrumb-current {
    font-size: 1em; /* 現在のページタイトルは通常サイズ */
  }

  /* ヘッダー下線を水色に */
header {
    border-bottom: 2px solid #b2ebf2;
  }
  /* ナビリンクのホバー色 */
  header nav ul li a:hover {
    color: #0077b6;
  }
  /* 全体フォントを柔らかめに */
  body {
    font-family: 'Kosugi Maru', sans-serif;
    color: #333;
    background-color: #fff;
  }

  /* ─── 見出し・キャッチコピー用フォント ─── */
h1, h2, h3, .section-title, .hero-content h1, .features-section h2 {
    font-family: 'Kiwi Maru', serif;
    font-weight: 700;
  }
  
  /* ─── ボタン・ナビなど強調テキスト ─── */
  .hero-button,
  .product-info .btn,
  header nav ul li a {
    font-family: 'Noto Sans JP', sans-serif;
    font-weight: 500;
  }
  
  /* ─── 小見出し・リスト項目など ─── */
  .hero-content p,
  .feature-content li,
  .product-info h3,
  .product-info p {
    font-family: 'Noto Sans JP', sans-serif;
    font-weight: 300;
  }
  