/**
Theme Name: Astra Child
Author: Brainstorm Force
Author URI: http://wpastra.com/about/
Description: Astra is the fastest, fully customizable & beautiful theme suitable for blogs, personal portfolios and business websites. It is very lightweight (less than 50KB on frontend) and offers unparalleled speed. Built with SEO in mind, Astra comes with schema.org code integrated so search engines will love your site. Astra offers plenty of sidebar options and widget areas giving you a full control for customizations. Furthermore, we have included special features and templates so feel free to choose any of your favorite page builder plugin to create pages flexibly. Some of the other features: # WooCommerce Ready # Responsive # Compatible with major plugins # Translation Ready # Extendible with premium addons # Regularly updated # Designed, Developed, Maintained & Supported by Brainstorm Force. Looking for a perfect base theme? Look no further. Astra is fast, fully customizable and beautiful theme!
Version: 1.0.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: astra-child
Template: astra
*/



/*
==========================================================================
  Astra子テーマ用 カスタムスタイルシート
  この場所に、サイトの見た目を調整するCSSをまとめて記述します。
==========================================================================
*/


/*
 * --------------------------------------------------------------------------
 * [1] 投稿ページ：動画プレイヤーのレスポンシブ設定
 * --------------------------------------------------------------------------
 * DMMのサンプル動画が、どの画面サイズでも最適な比率で表示されるようにします。
 */
.entry-sample-movie {
    position: relative;
    padding-top: 75%; /* アスペクト比 16:9 を維持 */
    height: 0;
    overflow: hidden;
    max-width: 100%;
    margin-bottom: 0;
}

.entry-sample-movie iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}


/*
 * --------------------------------------------------------------------------
 * [2] 投稿ページ：作品情報エリアの基本スタイル
 * --------------------------------------------------------------------------
 * 動画の下に表示される、作品情報全体のデザインです。
 */


/*
 * --------------------------------------------------------------------------
 * [3] 投稿ページ：「完全版を見る！」ボタンのスタイル
 * --------------------------------------------------------------------------
 * ★ここの色やサイズを変えると、ボタンのデザインが変わります。
 */




/*
 * --------------------------------------------------------------------------
 * [4] サムネイル：縦長画像のトリミングと高さ統一
 * --------------------------------------------------------------------------
 * アーカイブページと関連投稿の両方で、サムネイルの高さを揃えます。
 */

/* 画像を囲む枠（コンテナ）の比率を 16:9 に固定します */
.ast-blog-featured-section .post-thumb,
.ast-related-posts-wrapper .post-thumb {
    aspect-ratio: 16 / 9; /* ★この数字を変更すると比率が変わります (例: 4 / 3) */
    overflow: hidden;
    display: block;
    background-color: #f0f0f0; /* 画像読み込み中の背景色 */
}

/* 枠の中の画像を、縦横比を保ったまま全体を覆うように拡大・縮小（トリミング）します */
.ast-blog-featured-section .post-thumb a img,
.ast-related-posts-wrapper .post-thumb a img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}



/*
 * --------------------------------------------------------------------------
 * [5] タイトル：アーカイブと関連投稿のタイトルを2行に制限
 * --------------------------------------------------------------------------
 * 長いタイトルが2行を超えた場合、末尾を「...」で省略します。
 */
.entry-title {
    overflow: hidden;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2; /* ★表示させたい行数を2に指定 */
}

