body {
    font-family: Arial, sans-serif;
    margin: 0;
    padding: 0;
    background: #f4f4f4;
    color: #333;
    overflow-x: hidden;
  }
  
  header {
    background: #009688;
    color: #fff;
    padding: 20px;
    text-align: left;
  }
  
  header h1 {
    font-size: 24px;
    margin: 0;
  }
  
  header h1 .subtitle {
    display: block;
    font-size: 14px;
    color: #c8f2ed;
    margin-top: 5px;
  }
  
  .global-nav {
    background-color: #bef2b7;
    border-bottom: 1px solid #ccc;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
    position: sticky;
    top: 0;
    z-index: 999;
  }
  
  .global-nav ul {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    list-style: none;
    margin: 0;
    padding: 10px 0;
  }
  
  .global-nav li {
    margin: 0 15px;
  }
  
  .global-nav a {
    text-decoration: none;
    color: #333;
    font-weight: bold;
    padding: 5px 10px;
    transition: all 0.3s ease;
  }
  
  .global-nav a:hover {
    color: #ffffff;
    background-color: #4caf50;
    border-radius: 5px;
  }
  
  .slider {
    width: 100%;
    height: auto;
    overflow: hidden;
    padding: 20px 0;
  }
  
  .slider .card {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    height: 100%;
    min-height: 420px; /* 必要なら調整可能 */
    box-sizing: border-box;
  }
  
  .slider img {
    width: 100%;
    height: 160px;
    object-fit: cover;
  }
  
  
  .grid-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 20px;
    padding: 20px;
  }
  
  .card {
    background: #fff;
    padding: 15px;
    border-radius: 8px;
    text-decoration: none;
    color: inherit;
    box-shadow: 0 0 5px rgba(0,0,0,0.1);
  }
  
  .card img {
    width: 100%;
    height: auto;
    border-radius: 4px;
  }


    /* 色分け */
    .card.pink { background-color: #f6a4bf; }
    .card.green { background-color: #aed581; }
    .card.orange { background-color: #ffcc80; }
    .card.red { background-color: #ef9a9a; }
    .card.lime { background-color: #dce775; }

  
  .story-block {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 30px 20px;
    gap: 20px;
  }
  
  .story-block.left {
    flex-direction: row;
  }
  
  .story-block.right {
    flex-direction: row-reverse;
  }
  
  .story-block img {
    width: 100%;
    height: auto;
    border-radius: 8px;
    object-fit: cover;
  }
  
  
  .story-block .text {
    width: 50%;
    font-size: 16px;
    line-height: 1.6;
  }

  .story-img {
    width: 100%;
    height: auto;
    border-radius: 8px;
    display: block;
    margin: 0 auto;
  }
  
  .story-block picture {
    width: 100%;
  }

  /* story エリア内の h2 だけ中央寄せ */
    #story,
    #story h2 {
    text-align: center;
    margin-top: 2em;
    margin-bottom: 1em;
    }

  
  footer {
    background: #004d40;
    color: white;
    text-align: center;
    padding: 10px;
  }
  
  @media (max-width: 768px) {
    .story-block {
      flex-direction: column !important;
    }
    .story-block img,
    .story-block .text {
      width: 100%;
    }
  }
  .slider img {
    width: 100%;
    height: auto;
  }
  
/* Slickの矢印ボタンカスタム */
.slick-prev, .slick-next {
    background: rgba(0, 0, 0, 0.3);
    color: #fff;
    border: none;
    font-size: 24px;
    width: 40px;
    height: 40px;
    z-index: 1000;
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    cursor: pointer;
    border-radius: 50%;
  }
  
  .slick-prev { left: 10px; }
  .slick-next { right: 10px; }
  
  .slick-prev:hover, .slick-next:hover {
    background: rgba(0, 0, 0, 0.6);
  }
  
  /* スライダー画像カード */
  .slider .card {
    padding: 20px;
    margin: 10px;
    border-radius: 10px;
    text-align: center;
  }

  .adsbygoogle:empty {
    display: none !important;
  }
  
  
  /* ストーリーのレイアウト（モバイル） */
  @media (max-width: 768px) {
    .story-block {
      flex-direction: column !important;
    }

    .story-block img {
      order: -1; /* 上に移動 */
      width: 100%;
      max-width: 400px;
      margin: 10px 0;
    }

    .story-block .text {
      order: 0;
      width: 95%;
    }

    .story-block picture {
      order: -1 !important;
      width: 100%;
      max-width: 480px;
      margin: 10px auto;
    }
  
  }
  /* アフィリエイトボックスの横はみ出し防止 */

  .affiliate-box {
    overflow-x: auto;
    max-width: 100%;
  }
  
  .affiliate-box table,
  .affiliate-box div {
    width: 100% !important;
    box-sizing: border-box;
  }
  
    