/************************************
** Theme Name: Puchi-Import
** Description: プチ輸入HP用テーマ
** Author: Takumi Arakawa
** Version: 1.0
************************************/

/************************************
** セレクタの使い方 
** 基本セレクタ　：https://developer.mozilla.org/ja/docs/Learn_web_development/Core/Styling_basics/Basic_selectors
** 子孫セレクタ　：https://web-manabu.com/html-css16/
************************************/

/************************************
** marginとpaddingの違い
** https://saruwakakun.com/html-css/basic/margin-padding
************************************/

/************************************
** display: flex;の使い方
** https://gimmicklog.com/css3/758/
** display: grid;の使い方
** https://developer.mozilla.org/ja/docs/Web/CSS/CSS_grid_layout/Basic_concepts_of_grid_layout
************************************/

/************************************
** グローバル変数宣言
** 2025/7/22
************************************/
:root
{
  /* プチ輸入の基本カラー */
  --main-back-color: #e6f3ff;
  --main-back-color-clear: rgba(230, 243, 255, 0.8);
  /* プチ輸入のサブカラー_1 */
  --sub-back-color: #cce6ff;
  --sub-back-color-clear: rgba(255, 255, 255, 0.8);

  --button-color-1: #0073aa;
  --button-color-2: #005177;

  /* プチ輸入の基本文字カラー */
  --main-text-color: #0073aa;

  /* ブログ用カラー */
  --blog-shadow: 0 6px 18px rgba(0,0,0,.06);
  --blog-shadow-hover: 0 10px 26px rgba(0,0,0,.12);
  --blog-muted: #6b7280;
  --blog-border: #e5e7eb;
  --blog-bg: #fff;

  /* 共通サイズ */
  --max-width-size:800px;
  --border-radius: 20px;
  --gap-size-1:20px;
  --margin-size:20px;
  --padding-size:20px;
 
  
  /* headerの高さ */
  --header-height: 60px;

  /* 共通フォントサイズ */
  --fontsize-large-1: 28px;
  --fontsize-large-2: 24px;
  --fontsize-mid-1: 18px;
  --fontsize-mid-2: 16px;
  --fontsize-mid-3: 14px;
  --fontsize-p-1: 12px;
  --fontsize-p-2: 10px;
}

h1{ font-size: var(--fontsize-large-1);}
h2{ font-size: var(--fontsize-large-2);}
h3{ font-size: var(--fontsize-mid-1);}
p{ font-size: var(--fontsize-mid-3);}


/************************************
** メイン デザイン
** 2025/5/3
************************************/
.body-main
{
  background-image: url('assets/img/images_india/unsplash_india-1.jpg');
  /* 画面にぴったり合わせる */
  background-size: cover;  
  /* 中央に配置 */        
  background-position: center;  
  /* 繰り返しなし */   
  background-repeat: no-repeat;    
  /* 切り替えエフェクト */
  transition: background-image 1s ease-in-out;

  font-family: Arial, sans-serif;
  margin: 0;
  padding: 0;
  width: 100%;
  min-height: 60svh;

  /* x方向の数ロールバーを非表示 */
  /* overflow-x: hidden; */
  /* header高さだけ遷移させる */
  padding-top: var(--header-height);

  >.wrapper
  {
    min-height: 100vh; /* ビューポートいっぱい */
    display: flex;
    flex-direction: column;
  }  
}

.index-main
{
  display: flex;
  flex-flow: column;
  align-items: center;
  padding-inline: 20px;

  /* 3兄弟の外形を共通化（案B） */
  >.hero,
  >.index-section,
  >.index-swiper,
  >.index-relational-main,
  >.index-faq-main
  {    
    width: 100%;
    max-width: var(--max-width-size);
    margin-inline: auto; 
    padding-inline: 10px;
    border-radius: var(--border-radius);
    box-sizing: border-box;
  }

  >.hero
  {
    padding-top: 20px;
    padding-bottom: 20px;
    text-align: center;

    >.hero-overlay
    {
      background: var(--sub-back-color-clear);
      display: inline-block;
      padding: 40px 30px;
      border-radius: var(--border-radius);
      margin: auto;

      >h1 { margin-bottom: 20px; }
      >p  { margin-bottom: 15px; }
    }
  }

  >.index-section
  {
    background: var(--sub-back-color-clear);
    margin-bottom: 20px;
    padding-block: 10px;

    >h2 { text-align: center; }
    >p  { text-align: center; }

  }

  /* swiper_20250802.jsにて引数にしているセレクタ */
  >.index-swiper
  {
    padding-bottom: 20px;
    background: var(--sub-back-color-clear);
    margin-bottom: 20px;
    height: auto;

    >h2 { margin-top: 10px; text-align: center; }
    >p  { text-align: center; }

    >.swiper-wrapper
    {
      padding-top: 20px;

      >.swiper-slide
      {
        display: flex;
        align-items: center;
        justify-content: center;
        flex-flow: column;

        height: 250px;
        margin-left: 10px;
        margin-right: 10px;
        padding-bottom: 10px;

        border-radius: var(--border-radius);

        >h3
        { 
          margin-bottom: 0;
        }
        >p
        { 
          padding-left: 5px;
          margin-top: 0;
          font-size: var(--fontsize-p-2);
        }
        >a 
        {
          display: block;
          height: 100%;
          margin-bottom: 0;
          position: relative;

          >img
          {
            height: 100%;
            margin-bottom: 0;
            border-radius: var(--border-radius);
          }

          >.caption
          {
            position: absolute;
            bottom: 0; 
            left: 0;

            padding: 10px;
            background: rgba(0,0,0,0.6);
            color: #fff;
            font-size: var(--fontsize-p-1);
            text-align: center;

            opacity: 0;                         /* 初期は非表示 */
            transform: translateY(100%);        /* 下に隠す */
            transition: all 0.3s ease;
            border-radius: 0 0 var(--border-radius) var(--border-radius);
          }
        }      

        /* hover時に表示 */
        >a:hover .caption
        {
          opacity: 1;
          transform: translateY(0);
        }
 
      }
    }
  }

  >.index-relational-main
  {
    background: var(--sub-back-color-clear);
    margin: 0 auto;
    margin-bottom: 20px;
    padding-bottom: 20px;
    padding-inline: 0;

    >h2 { text-align: center; }
    >p  { text-align: center; padding-inline: 20px; }

    >.page-relational-section
    {
      gap: 10px;
      padding: 20px;
      max-width: var(--max-width-size);

      box-sizing: border-box;
      margin-left: 20px;
      margin-right: 20px;

      display: flex;
      flex-flow: row wrap;
      justify-content: space-around;

      >div
      {
        >a
        {
          >h2
          {
            font-size: var(--fontsize-mid-2);
            padding-left: 20px;
            margin-top: 0;
          }
        }
        
        >img { text-align: center; }
        >p   { padding-left: 20px; max-width: 550px; }
      }    
    }

    >.color-1
    {
      border: 2px solid var(--sub-back-color); 
      background-color: var(--main-back-color);
    }
    >.color-2
    {
      border: 2px solid var(--sub-back-color); 
      background-color: var(--sub-back-color);
    }
  }

  >.index-faq-main
  {
    background: var(--sub-back-color-clear);
    box-sizing: border-box;
    max-width: var(--max-width-size);
    margin: 0 auto;
    margin-bottom: 20px;
    padding-bottom: 20px;

    padding-left: 20px;
    padding-right: 20px;

    >h2
    {
      font-weight: bold;
      text-align: center;
      padding-left: 40px;
      padding-right: 40px;
    }

    >.page-faq-section
    {
      display: inline-block;
      background-color: var(--main-back-color);
      width: 100%;
      max-width: var(--max-width-size);
      margin: 0 auto;
           
      
      >.accordion 
      {
        cursor: pointer;
        display: flex;
        justify-content: space-between;
        align-items: center;
        font-weight: bold;
        margin-left: 20px;
        margin-right: 20px;

        >h3
        {
          font-size: var(--fontsize-mid-2);
          font-weight: bold;
          text-align: left;
          
          text-decoration: underline;
        }      
      }

      >.accordion:after 
      {
        content: '▼';
        font-size: var(--fontsize-mid-2);
        transition: transform 0.3s ease;
      }

      >.accordion.active:after 
      {
        transform: rotate(180deg); /* ▲ に回転 */
      }

      >.panel
      {
        display: none;
        justify-content: center;
        background: #fff;
        border-top: none;

        margin-left: 20px;
        margin-right: 20px;
        margin-bottom: 10px;
        padding: 10px;
      }

      >.panel.open
      {
        display: block;
      }
    }
  }

  .button
  {
    display: inline-block;
    padding: 10px 20px;
    background: var(--button-color-1);
    color: white;
    text-decoration: none;
    border-radius: 5px;
    margin-top: 20px;
  }
  .button:hover { background: var(--button-color-2); }

}

/* Flow base */
.flow-list
{
  list-style: none;
  margin: 24px 0 0;
  padding: 0;
  counter-reset: flow;
  border-top: 1px solid var(--blog-border, #e5e7eb);

  >.flow-item
  {
    display: grid;
    grid-template-columns: 1fr 300px; /* 左：テキスト / 右：画像 */
    gap: 10px;
    align-items: center;
    padding: 24px 0;
    border-bottom: 1px solid var(--blog-border, #e5e7eb);

    >.flow-body
    {
      padding-inline: 20px;

      /* Left block */
      >.flow-step
      {
        font-size: var(--fontsize-mid-2);
        font-weight: 700;
        letter-spacing: .08em;
        color: var(--accent, #0ea5e9);
        margin: 0 0 4px;
      }
      >.flow-title
      {
        font-size: clamp(18px, 2.6vw, 22px);
        font-weight: 800;
        line-height: 1.35;
        margin: 0 0 8px;
        padding-left: 30px;
      }
      >.flow-text
      {
        margin: 0;
        padding-left: 30px;
      }
      .flow-button
      {
        background: var(--button-color-1);
        color: white;
        text-decoration: none;
        /* border-radius: 5px; */
      }
      .flow-button:hover { background: var(--button-color-2); }
    }

    /* Right block (image + caption) */
    .flow-visual
    { 
      text-align: center;

      >img 
      {
        width: 180px;
        height: 180px;
        object-fit: cover;
        aspect-ratio: 1 / 1;
        border-radius: 9999px;              /* 丸くする */
        background: #f9fafb;
        border: 4px solid #eef2f7;          /* 円の縁取り */
        display: inline-block;
      }
      >figcaption
      {
        margin-top: 8px;
        font-weight: 700;
        font-size: 0.95rem;
        color: #3b82f6;                      /* 例画像の水色っぽい見出し */
      }
    }    
  }

  >.flow-item.reverse
  {
    grid-template-columns: 300px 1fr; /* 左：画像 / 右：テキスト */ 
    >.flow-body { order: 2; }
    >.flow-visual { order: 1; }
  }
}

/* Responsive */
@media screen and (max-width: 768px)
{
  .flow-list
  {
    >.flow-item
    {
      grid-template-columns: 1fr; /* 縦並び */
      gap: 12px;

      /* Right block (image + caption) */
      .flow-visual
      { 
        order: 2;            /* 画像を上に */
        margin-bottom: 6px;

        >img 
        {
          width: 160px;
          height: 160px;
          border-width: 3px;
        }
      }    
    }

    >.flow-item.reverse
    {
      grid-template-columns: 1fr; /* 縦並び */
      >.flow-body { order: 1; }
      >.flow-visual { order: 2; }
    }
  }  
}


/************************************
** Header デザイン
** 2025/5/3
************************************/
.header-main
{
  background-color: var(--main-back-color);
  box-sizing: border-box;

  /* 画面に固定 */
  position: fixed;
  top: 0;
  height: var(--header-height);
  width: 100%;  

  /* 高く設定して前面に表示 */
  z-index: 1000; 

  >.header-wrapper
  {
    max-width: 1080px;
    height: 100%;
    margin-inline: auto;

    /* 表示のデフォルト制約解除 */
    display: flex;
    flex-flow: row wrap;
    align-items: center;
    justify-content: space-between; 

    >.toolbar-logo
    {
      padding-left: 100px;
      img { height: 40px; }
    }
    
    >.toolbar-hamburger
    {
      display: none;
      flex-flow: column;
      align-items: center;
      justify-content: start;

      >.menu-toggle 
      {
        /* 画面に表示しない */
        display: none;
        font-size: 28px;
        background: none;
        border: none;
        cursor: pointer;
      }
    }

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

      .nav-links li a
      {
        display: inline-block;
        font-size: var(--fontsize-mid-2);
        font-weight: bold;
        border-bottom: 3px solid #000;
        border-top: 3px solid #000;
        text-decoration: none;
        color: #000;
        transition: 0.2s ease;
      }

      .nav-links li a:hover
      {
        border-color: var(--main-text-color);
        transform: translateY(-5px);
      }
    }
    
  }  
}

@media screen and (max-width: 1080px)
{
  .header-main
  {    
    >.header-wrapper
    {
      justify-content: space-between; /* ← これで左右の端に配置 */
      flex-wrap: nowrap;              /* 行折り返しを防止（任意） */
      padding-right: 0px;               /* 端まで寄せたいなら0、少し余白なら8pxなどに */
      padding-left: 10px;                /* 左も合わせるなら調整 */

      >.toolbar-logo { padding-left: 0px; }

      /* PC横並びだった .nav-links を“隠しドロワー”として再レイアウト */
      >nav
      {
        >.nav-links
        {
          position: fixed;
          top: var(--header-height);
          left: 0; 
          right: 0;
          height: calc(100dvh - var(--header-height));
          background: var(--main-text-color);
          color: #fff;
          display: none;/* 初期は非表示 → JSで .open を付与 */
          flex-direction: column;
          gap: 0;
          overflow-y: auto;
          z-index: 1100;
          padding: 8px 0;
          margin: 0;
          list-style: none;

          /* モバイル時の各リンクの見え方（行高・ホバー） */
          li a
          {
            display: block;
            padding: 16px 20px;
            color: #fff;
            text-decoration: none;
            border: 0;                     /* PC時の上下ボーダーは無効化 */
            transition: background .2s ease;
            border-bottom: 2px solid rgba(255,255,255,.20);
          }
          li a:hover
          {
            background: rgba(255,255,255,.12);
            transform: none;               /* PC時の持ち上がりエフェクトは無効化 */
          }        
        }

        /* 開いた状態（JS で .open を付与） */
        >.nav-links.open{ display: flex; }      
      }
    
      /* ハンバーガー容器を表示に */
      >.toolbar-hamburger
      {
        display: flex;
        margin-left: auto;
        gap: 10px;

        /* ボタン自体を表示に（PC初期の display:none を打ち消す） */
        >.menu-toggle
        {
          display: block;
          font-size: 28px;
          background: none;
          border: none;
          cursor: pointer;
        }
      }    
    }  

  /* ドロワー表示中に背面スクロールを止めるためのユーティリティ */
  /* body.no-scroll{ overflow: hidden; } */

  }
}

/************************************
** Footer デザイン
** 2025/7/22
************************************/
.footer-main
{
  background-color: var(--main-back-color);
  width: 100%;

  padding-bottom: 0; 
  margin-bottom: 0;

  border-top: 1px solid #ddd;
  font-size: var(--fontsize-mid-3);
  color: #333;
  padding-inline: 30px;
  padding-top: 10px;
  box-sizing: border-box;

  >.footer-inner
  {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1080px;
    margin: 0 auto 5px;
    flex-wrap: wrap;

    .footer-left
    {
      flex: 1;

      .footer-title
      {
        font-size: var(--fontsize-mid-2);
        font-weight: 700;
        margin: 0 0 5px;
      }

      .footer-sub {
        margin: 0;
        color: #666;
      }
    }

    .footer-right
    {
      flex: 1;
      text-align: right;

      .footer-links
      {
        list-style: none;
        padding: 0;
        margin: 0;
      }

      .footer-links li {
        display: inline-block;
        margin-left: 15px;
      }

      .footer-links a {
        text-decoration: none;
        color: #0073aa;
        transition: color 0.3s;
      }

      .footer-links a:hover {
        color: #005580;
      }
    }
  }

  .footer-bottom
  {
    border-top: 1px solid #ddd;
    padding-top: 0px;
    text-align: center;

    >.copy { font-size: var(--fontsize-p-2); color: var(--main-text-color); }
  }
}

@media screen and (max-width: 768px)
{
  .footer-main > .footer-inner
  {
    flex-direction: column;   /* 左右→縦並び */
    align-items: center;      /* 子要素を中央に */
    text-align: center;
    gap: 15px;

    >.footer-left, >.footer-right { flex: none; width: 100%; text-align: center; }
    
    >.footer-right
    { 
      >.footer-links
      {
        display: flex;            /* リンク行をフレックスに */
        justify-content: center;  /* 中央寄せ */
        gap: 15px;                /* 余白はgapで管理 */
        align-items: center; /* 縦方向の中央揃え */
        padding: 0;
        margin: 0;

        >li { display: inline-flex; margin: 0; }
      }    
    }    
  }
}

/************************************
** 価格 デザイン
** 2025/7/22
************************************/
.page-shipping-main
{
  background-color:  var(--main-back-color);
  box-sizing: border-box;
  max-width: var(--max-width-size);
  margin: 0 auto;
  margin-top: 20px;
  padding-top: 20px;
  margin-bottom: 20px;
  padding-bottom: 20px;
  /* mainが余白を埋める */
  flex: 1; 

  >.page-shipping-view
  {    
    padding-left: 20px;
    padding-right: 20px;
    gap: 10px;

    >h1
    {
      text-align: center;
      text-decoration: underline;
    }
    >.text-1
    {
      text-align: center;
      font-size: var(--fontsize-mid-2);
    }
    >.text-2
    {
      text-align: left;
      padding-left: 40px;
      font-size: var(--fontsize-mid-2);
    }
  }

  >div
  {
    box-sizing: border-box;
    padding-left: 20px;
    padding-right: 20px;
    width: 100%;
    max-width: var(--max-width-size);

    /* 横並び 中央揃え*/
    display: flex;
    flex-direction: row wrap;
    justify-content: center;

    >.page-shipping-section
    {
      border: 2px solid var(--sub-back-color); 
      background-color:  var(--main-back-color);

      box-sizing: border-box;   
      padding-left: 20px;
      padding-right: 20px;
      width: 100%;
      min-width: 300px;
      max-width: var(--max-width-size);
      
      >h2
      {
        text-align: center;
        text-decoration: underline;
      }
      >.text-1
      {
        text-align: center;
        font-size: var(--fontsize-mid-2);
      }
      >.text-2
      {
        text-align: left;
        padding-left: 40px;
        font-size: var(--fontsize-mid-2);
      }
      >.table
      {
        border-collapse: collapse; 
        text-align: center;
        width: 100%;
        
        /* 階層が結構下なので子孫セレクタ指定 */
        th,td
        {
          background-color: white;
          border: 2px solid black; 
        }
      }     
    }

    >.color-1
    {
      border: 2px solid var(--sub-back-color); 
      background-color:  var(--main-back-color);
    }
    >.color-2
    {
      border: 2px solid var(--sub-back-color); 
      background-color:  var(--sub-back-color);
    }
  }
}

@media screen and (max-width: 768px)
{
  .page-shipping-main
  { 
    >div
    {
      /* 横並び 中央揃え*/
      display: flex;
      flex-direction: column;
      justify-content: center;
    }
  }
}

/************************************
** 注文約款 デザイン
** 2025/7/24
************************************/
.page-order-main
{
  background-color:  var(--main-back-color);
  box-sizing: border-box;
  max-width: var(--max-width-size);
  margin: 0 auto;
  margin-top: 20px;
  padding-top: 20px;
  margin-bottom: 20px;
  padding-bottom: 20px;
  /* mainが余白を埋める */
  flex: 1; 

  >.page-order-view
  {
    background-color:  var(--main-back-color);
    gap: 10px;
    padding: 10px;
    width: 100%;
    max-width: var(--max-width-size);
    height: auto;
    box-sizing: border-box;
    margin: 0 auto;

    >.comment-1
    {
      font-size: var(--fontsize-mid-2);
      font-weight: normal;
      text-align: center;
    }

    >h1
    {
      font-weight: bold;
      text-align: center;
      padding-left: 40px;
      padding-right: 40px;
      text-decoration: underline;
    }

    >h2
    {
      font-weight: bold;
      text-align: left;
      padding-left: 40px;
      padding-right: 40px;
    }

    p
    {
      font-weight: normal;
      text-align: left;
      padding-left: 40px;
      padding-right: 40px;
    }
  }
}

/************************************
** 問い合わせページのデザイン
** 2025/5/3
************************************/
.page-contact-main
{
  background-color:  var(--main-back-color);
  box-sizing: border-box;
  max-width: var(--max-width-size);
  width: 100%;
  margin: 0 auto;
  margin-top: 20px;
  padding-top: 20px;
  margin-bottom: 20px;
  padding-bottom: 20px;
  /* mainが余白を埋める */
  flex: 1;  

  >h1
  {
    text-align: center;
    text-decoration: underline;
  }
  >p
  {
    padding-left: 20px;
    text-align: center;
  }
  >.page-contact-success
  {
    text-align: center;
    font-size: var(--fontsize-mid-2);
    color: red;
  }

  >.page-contact-failue
  {
    text-align: center;
    font-size: var(--fontsize-mid-2);
    color: red;
  }

  >.page-contact-form
  {
    background-color:  var(--main-back-color);
    box-sizing: border-box;
    gap: 10px;
    padding-left: 40px;
    padding-right: 40px;
    width: 100%;
    max-width: var(--max-width-size);

    /* 横並び 中央揃え*/
    display: flex;
    flex-flow: column wrap;
    justify-content: left;

    >div
    {
      >label
      {
        font-weight: bold;
        margin-top: 10px;
        display: block;
      }

      >input,>textarea
      {
        width: 100%;
        padding: 10px;
        margin-top: 5px;
        margin-bottom: 15px;
        border: 1px solid #ccc;
        border-radius: 5px;
        resize: none;      /* つまみでのリサイズ禁止 */
        overflow: auto;    /* 内容が増えたらスクロール */
      }

      >button
      {
        padding: 10px 20px;
        background-color: #0073aa;
        color: white;
        border: none;
        border-radius: 5px;
        cursor: pointer;
      }

      >button:hover
      {
        background-color: #005177;
      }
    }    
  }
}

/************************************
** ブログ一覧 style
** 2025/8/12
************************************/
.blog-main
{
  background-color: var(--main-back-color);
  max-width: var(--max-width-size);
  margin: 0 auto;
  padding: 20px;
  margin-top: 20px;
  margin-bottom: 20px;
  /* mainが余白を埋める */
  flex: 1; 

  >h1
  {
    text-align: center;
    margin: 0 0 20px;
  }

  >.blog-list
  {
    display: grid;
    grid-template-columns: repeat(3, minmax(0,1fr));
    gap: var(--gap-size-1);
    list-style: none;
    padding: 0;
    margin: 0 0 28px;

    >li
    {
      >.blog-itemcard
      {
        display: block;
        background: var(--blog-bg);
        border: 1px solid var(--blog-border);
        border-radius: var(--border-radius);
        overflow: hidden;
        box-shadow: var(--blog-shadow);
        text-decoration: none;
        color: inherit;
        transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;

        padding-bottom: 16px;

        /* Thumbnail 16:9 */
        >.thumb
        {
          aspect-ratio: 16 / 9;
          background: rgb(193, 203, 206);
          overflow: hidden;
        }
        >.thumb img
        {
          width: 100%;
          height: 100%;
          object-fit: cover;
          display: block;
        }       
      }

      >.blog-itemcard:hover
      {
        transform: translateY(-2px);
        box-shadow: var(--blog-shadow-hover);
        border-color: rgba(30,136,229,.35);
      }

      >.meta
      {
        display: flex;
        gap: 12px;
        align-items: center;
        padding-top: 14px;
        font-size: var(--fontsize-p-1);

        padding: 0 16px;        

        /* Category badge */
        .cats a
        {
          display: inline-block;
          font-size: var(--fontsize-p-1);
          line-height: 1;
          padding: 6px 8px;
          border-radius: 999px;
          background: #eef5ff;

          text-decoration: none;
        }
        .cats a + a{ margin-left: 6px; }
      }

      >.post-title
      {
        
        margin: 10px 0 8px;
        font-size: var(--fontsize-mid-2);
        line-height: 1.35;
        font-weight: 700;

        display: -webkit-box;

        -webkit-box-orient: vertical;
        overflow: hidden;

        line-height: 1.5em; /* 行の高さ */
        max-height: 3em;    /* 2行分 (1.5 × 2) */

        padding: 0 16px;
      }

      >.excerpt
      {
        margin: 0 0 16px;

        font-size: var(--fontsize-mid-3);
        line-height: 1.7;
        display: -webkit-box;
        
        -webkit-box-orient: vertical;
        overflow: hidden;

        line-height: 1.5em; /* 行の高さ */
        max-height: 3em;    /* 2行分 (1.5 × 2) */

        padding: 0 16px;
      }
    }  
  }

  /* Pagination */
  >.pagination
  {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    justify-content: center;
    margin: 12px 0 40px;

    >a, >span
    {
      min-width: 40px;
      height: 40px;
      padding: 0 12px;
      border-radius: 10px;
      border: 1px solid var(--blog-border);
      display: inline-flex;
      align-items: center;
      justify-content: center;
      text-decoration: none;
      color: #111827;
      background: #fff;
      transition: background .15s ease, border-color .15s ease, color .15s ease;
    }
    >a:hover
    {
      border-color: rgba(30,136,229,.35);
      color: var(--main-text-color);
    }
    >.current
    {
      background: var(--main-text-color);
      border-color: var(--main-text-color);
      color: #fff;
    }
  }
  
}

/* 2列/1列ブレイクポイント */
@media screen and (max-width: 600px)
{
  .blog-main
  {
    >.blog-list{ grid-template-columns: repeat(2, minmax(0,1fr)); }
  }
}
@media screen and (max-width: 480px)
{
  .blog-main
  {
    >.blog-list{ grid-template-columns: 1fr; }
  }
}

/************************************
** 単一投稿ページ style
** 2025/8/12
************************************/
.single-post-main
{
  background-color: var(--main-back-color);
  width: 100%;
  
  max-width: var(--max-width-size);
  margin: 20px auto;
  padding: 0 16px;
  margin-bottom: 20px;
  padding-bottom: 20px;
  /* mainが余白を埋める */
  flex: 1; 

  >.breadcrumb
  {
    gap: 10px;
  }

  >article
  {
    
    /* 記事ヘッダー */
    >header
    {
      margin-bottom: 32px;
      border-bottom: 1px solid var(--blog-border);
      padding-bottom: 16px;

      >h1
      {
        font-weight: 800;
        margin: 0 0 12px;
        line-height: 1.3;
      }

      >.post-meta
      {
        font-size: var(--fontsize-mid-3);
        color: var(--blog-muted);
        display: flex;
        flex-wrap: wrap;
        gap: 12px;

        .cats a
        {
          display: inline-block;
          font-size: var(--fontsize-p-1);
          padding: 5px 8px;
          border-radius: 999px;
          background: #eef5ff;
          color: var(--main-text-color);
          text-decoration: none;
        }

      }

      /* アイキャッチ */
      .post-thumb
      {
        margin: 20px 0 32px;
        border-radius: var(--border-radius);
        overflow: hidden;
        box-shadow: var(--blog-shadow);
      }
      .post-thumb img
      {
        width: 100%;
        height: auto;
        display: block;
        object-fit: cover;
      }

    }

    /* 記事本文 */
    >.post-content
    {
      font-size: var(--fontsize-mid-2);
      line-height: 1.85;
      color: #1f2937; /* グレイ800 */

      >p
      {
        margin-bottom: 1.4em;
      }

      >h2
      {
        font-weight: 700;
        margin-top: 2em;
        margin-bottom: .8em;
        line-height: 1.4;        
        border-left: 4px solid var(--main-text-color);
        padding-left: .5em;
      }
      >h3
      {
        font-weight: 700;
        margin-top: 2em;
        margin-bottom: .8em;
        line-height: 1.4;
      }
      >h4
      {
        font-weight: 700;
        margin-top: 2em;
        margin-bottom: .8em;
        line-height: 1.4;
      }

      >a
      {
        color: var(--main-text-color);
        text-decoration: underline;
      }
      >blockquote
      {
        margin: 1.6em 0;
        padding: 1em 1.4em;
        background: #f9fafb;
        border-left: 4px solid var(--main-text-color);
        font-style: italic;
        color: #374151;
      }
      >img
      {
        max-width: 100%;
        height: auto;
        border-radius: 8px;
      }
      >ul
      {
        margin-left: 1.4em;
        margin-bottom: 1.4em;
        >li
        {
          margin-bottom: .4em;
        }
      }     
    }

    /* 記事フッター */
    >footer
    {
      border-top: 1px solid var(--blog-border);
      margin-top: 40px;

      margin-bottom: 20px;
      padding-top: 20px;

      >div
      {
        margin-bottom: 16px;
        
        >a
        {
          display: inline-block;
          font-size: var(--fontsize-p-1);
          background: #eef2f7;
          padding: 4px 8px;
          margin: 0 6px 6px 0;
          border-radius: 6px;
          color: var(--main-text-color);
          text-decoration: none;
        }
        >a:hover
        {
          background: var(--main-text-color);
          color: #fff;
        }
      }

      /* 前後ナビ */
      >nav
      {
        display: flex;
        justify-content: space-between;
        gap: 8px;

        a
        {
          flex: 1;
          padding: 10px 14px;
          border: 1px solid var(--blog-border);
          border-radius: 8px;
          text-decoration: none;
          color: #1f2937;
          transition: background .15s ease, border-color .15s ease;
        }
        a:hover
        {
          background: #f3f4f6;
          border-color: rgba(30,136,229,.35);
        }
      }   
    } 
  }
}

