/*
Theme Name: the7dtchild
Author: Dream-Theme
Author URI: http://dream-theme.com/
Description: The7 is perfectly scalable, performance and SEO optimized, responsive, retina ready multipurpose WordPress theme. It will fit every site – big or small. From huge corporate portals to studio or personal sites – The7 will become a great foundation for your next project!
Version: 1.0.0
License: This WordPress theme is comprised of two parts: (1) The PHP code and integrated HTML are licensed under the GPL license as is WordPress itself.  You will find a copy of the license text in the same directory as this text file. Or you can read it here: http://wordpress.org/about/gpl/ (2) All other parts of the theme including, but not limited to the CSS code, images, and design are licensed according to the license purchased. Read about licensing details here: http://themeforest.net/licenses/regular_extended
Template: dt-the7
*/
.mincho {font-family: YuMincho,"Hiragino Mincho ProN",serif!important;}

/* ーーーーーーーーーーーーーーーーーーーーーーーーーーー */
/* 文字が上にあがる */
/* 共通のラッパー設定 */
/* ==========================================
   【重要】共通設定（すべてのanimate-textに適用）
========================================== */
[class*="animate-text"] {
  overflow: hidden;
  padding-bottom: 5px;
}
[class*="animate-text"] span {
  display: inline-block;
  opacity: 0;
  transform: translateY(100%) translateZ(0);
  will-change: transform, opacity;
  transition: transform 0.6s cubic-bezier(0.215, 0.610, 0.355, 1.0), opacity 0.6s linear;
}
[class*="animate-text"].is-active span {
  opacity: 1;
  transform: translateY(0);
}

/* ==========================================
   1行目 または 1行完結の見出し専用タイムライン
   （クラス名に「2」が含まれない要素にだけ適用し、30文字まで動かします）
========================================== */
[class*="animate-text"]:not([class*="2"]) span:nth-child(1)  { transition-delay: 0.00s; }[class*="animate-text"]:not([class*="2"]) span:nth-child(2)  { transition-delay: 0.04s; }[class*="animate-text"]:not([class*="2"]) span:nth-child(3)  { transition-delay: 0.08s; }[class*="animate-text"]:not([class*="2"]) span:nth-child(4)  { transition-delay: 0.12s; }[class*="animate-text"]:not([class*="2"]) span:nth-child(5)  { transition-delay: 0.16s; }[class*="animate-text"]:not([class*="2"]) span:nth-child(6)  { transition-delay: 0.20s; }[class*="animate-text"]:not([class*="2"]) span:nth-child(7)  { transition-delay: 0.24s; }[class*="animate-text"]:not([class*="2"]) span:nth-child(8)  { transition-delay: 0.28s; }[class*="animate-text"]:not([class*="2"]) span:nth-child(9)  { transition-delay: 0.32s; }[class*="animate-text"]:not([class*="2"]) span:nth-child(10) { transition-delay: 0.36s; }[class*="animate-text"]:not([class*="2"]) span:nth-child(11) { transition-delay: 0.40s; }[class*="animate-text"]:not([class*="2"]) span:nth-child(12) { transition-delay: 0.44s; }[class*="animate-text"]:not([class*="2"]) span:nth-child(13) { transition-delay: 0.48s; }[class*="animate-text"]:not([class*="2"]) span:nth-child(14) { transition-delay: 0.52s; }[class*="animate-text"]:not([class*="2"]) span:nth-child(15) { transition-delay: 0.56s; }[class*="animate-text"]:not([class*="2"]) span:nth-child(16) { transition-delay: 0.60s; }[class*="animate-text"]:not([class*="2"]) span:nth-child(17) { transition-delay: 0.64s; }[class*="animate-text"]:not([class*="2"]) span:nth-child(18) { transition-delay: 0.68s; }[class*="animate-text"]:not([class*="2"]) span:nth-child(19) { transition-delay: 0.72s; }[class*="animate-text"]:not([class*="2"]) span:nth-child(20) { transition-delay: 0.76s; }[class*="animate-text"]:not([class*="2"]) span:nth-child(21) { transition-delay: 0.80s; }[class*="animate-text"]:not([class*="2"]) span:nth-child(22) { transition-delay: 0.84s; }[class*="animate-text"]:not([class*="2"]) span:nth-child(23) { transition-delay: 0.88s; }[class*="animate-text"]:not([class*="2"]) span:nth-child(24) { transition-delay: 0.92s; }[class*="animate-text"]:not([class*="2"]) span:nth-child(25) { transition-delay: 0.96s; }[class*="animate-text"]:not([class*="2"]) span:nth-child(26) { transition-delay: 1.00s; }[class*="animate-text"]:not([class*="2"]) span:nth-child(27) { transition-delay: 1.04s; }[class*="animate-text"]:not([class*="2"]) span:nth-child(28) { transition-delay: 1.08s; }[class*="animate-text"]:not([class*="2"]) span:nth-child(29) { transition-delay: 1.12s; }[class*="animate-text"]:not([class*="2"]) span:nth-child(30) { transition-delay: 1.16s; }

/* ==========================================
   2行目の見出し専用タイムライン（連動用）
   「animate-text-xxxx2」のように、末尾に「2」をつけたクラスにのみ適用
========================================== */
/* 「オーダー製粉の（7文字）」の後に動かす「受注を承ります」用 */
[class*="animate-text-order2"] span:nth-child(1) { transition-delay: 0.28s; }
[class*="animate-text-order2"] span:nth-child(2) { transition-delay: 0.32s; }
[class*="animate-text-order2"] span:nth-child(3) { transition-delay: 0.36s; }
[class*="animate-text-order2"] span:nth-child(4) { transition-delay: 0.40s; }
[class*="animate-text-order2"] span:nth-child(5) { transition-delay: 0.44s; }
[class*="animate-text-order2"] span:nth-child(6) { transition-delay: 0.48s; }
[class*="animate-text-order2"] span:nth-child(7) { transition-delay: 0.52s; }

/* 「木羽屋製粉（5文字）」の後に動かす「主なそば取扱い産地」用 */
[class*="animate-text2"] span:nth-child(1) { transition-delay: 0.20s; }
[class*="animate-text2"] span:nth-child(2) { transition-delay: 0.24s; }
[class*="animate-text2"] span:nth-child(3) { transition-delay: 0.28s; }
[class*="animate-text2"] span:nth-child(4) { transition-delay: 0.32s; }
[class*="animate-text2"] span:nth-child(5) { transition-delay: 0.36s; }
[class*="animate-text2"] span:nth-child(6) { transition-delay: 0.40s; }
[class*="animate-text2"] span:nth-child(7) { transition-delay: 0.44s; }
[class*="animate-text2"] span:nth-child(8) { transition-delay: 0.48s; }
[class*="animate-text2"] span:nth-child(9) { transition-delay: 0.52s; }



/* カードを包むコンテナ */
.card-container {
    display: flex;
    flex-wrap: wrap;
    gap: 20px; /* カード同士の間隔 */
    align-items: stretch; /* すべてのカードの高さを一番高いものに揃える */
    max-width: 1400px;
    margin: 0 auto;
    width: 100%;
    box-sizing: border-box;
}

/* カードのベース設定（PC時：4列） */
.soba-card {
    /* 隙間20pxを考慮した4列の計算式 */
    width: calc((100% - (20px * 3)) / 4); 
    box-sizing: border-box;
    background-color: #ffffff;
    border-radius: 12px; /* 角丸設定 */
    padding: 24px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08); /* 柔らかいドロップシャドウ */
    
    /* 内部パーツを配置するためのFlex設定 */
    display: flex;
    flex-direction: column;
}

/* 都道府県名 */
.pref-title {
    font-size: 30px; /* 30pxに修正 */
    font-weight: normal; /* 太さを標準に変更 */
    margin: 0 0 12px 0;
    text-align: left;
    line-height: 1.2;
}

/* 罫線（区切り線） */
.card-line {
    border: none;
    border-top: 1px solid #dddddd;
    margin: 0 0 16px 0;
    width: 100%;
}

/* 品種名 */
.variety-name {
    font-size: 16px; /* 16pxに修正 */
    font-weight: normal; /* 太さを標準に変更 */
    margin: 0 0 12px 0;
    line-height: 1.4;
}

/* 説明文 */
.desc-text {
    font-size: 15px; /* 15pxに修正 */
    font-weight: normal; /* 太さを標準に変更 */
    line-height: 1.6;
    margin: 0;
    color: #444444;
    overflow: visible; /* スクロールを廃止（すべて表示） */
}


/* --- スマートフォン向けのレスポンシブ設定 --- */

@media screen and (max-width: 1024px) {
    /* タブレットなどで画面が狭くなってきた場合は2列に調整 */
    .soba-card {
        width: calc((100% - 20px) / 2);
    }
}

@media screen and (max-width: 600px) {
    /* スマートフォン環境（1列） */
    .soba-card {
        width: 100%; /* 1列一杯に広げる */
    }
    
    .card-container {
        gap: 16px; /* スマホ時の隙間を少し狭く設定 */
    }
}




