/*
Theme Name: Sharply Child
Theme URI: https://soulspice.zopex.jp/
Template: shapely
Author: puni puki
Description: 子テーマによるSharplyカスタマイズ
Version: 1.0
*/

@import url("../shapely/style.css");

/* ============================
   基本テキストスタイル
============================ */
.post-title a, .post-title {
    font-size: 20px;
    font-weight: 300;
}

.display-posts-listing {
    font-size: 16px;
    font-weight: 300;
}

ul {
    padding-left: 0;
}

li {
    list-style: none;
}

h4 {
    font-size: 18px;
    line-height: 20px;
}

h1, h2, h3, h4, h5, h6, p, ul, ol, table, blockquote, input {
    margin-bottom: 14px;
    margin-top: 14px;
    padding: 0;
}

figure {
    padding: 20px 0;
}

body {
    font-family: 'Raleway', 'Helvetica Neue', "游ゴシック体", "Yu Gothic", YuGothic, Helvetica, Arial, sans-serif !important;
    font-variant-numeric: lining-nums;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    font-size: 15px;
    line-height: 32px;
    color: #444444;
    overflow-x: hidden;
    font-weight: 400;
}

/* ============================
   カテゴリーページ調整
============================ */
.category .entry-content,
.category .post-excerpt {
    display: none;
}

.category .post-content .entry-header img {
    width: 300px !important;
    height: 300px !important;
    object-fit: cover;
    border-radius: 10px;
}

/* ============================
   アイキャッチ画像中央配置
============================ */
.post-content .entry-header {
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
    margin: 20px;
}

/* ============================
   汎用画像スタイル
============================ */
img {
    max-width: 100%;
    height: auto;
}

.single-post .wp-post-image {
    object-fit: contain !important;
    width: 100%;
    height: auto;
}

/* ============================
   ボタンスタイル
============================ */
a.btn_01 {
    display: block;
    text-align: center;
    vertical-align: middle;
    text-decoration: none;
    width: 100%;
    margin: auto;
    padding: 1rem 4rem;
    font-weight: bold;
    border: 2px solid #5676ea;
    color: #5676ea;
    transition: 0.5s;
}

a.btn_01:hover {
    color: #fff;
    background: #5676ea;
}

/* ============================
   ギャラリースタイル
============================ */
.gallery-container {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    max-width: 100%;
    justify-items: center;
}

.gallery-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    width: 100%;
    max-width: 350px;
}

.gallery-item img {
    width: 100%;
    height: auto;
    border-radius: 10px;
}

.freemov {
    margin-top: 50px !important;
    margin-bottom: 50px !important;
}

/* ============================
   メディアクエリ（スマホ対応）
============================ */
@media screen and (max-width: 768px) {
    .mobile-br {
        display: block;
    }

    .gallery-container {
        grid-template-columns: 1fr;
    }
}

.mobile-br {
    display: none;
}

@media screen and (max-width: 768px) {
    br {
        display: inline !important;
    }
}

/* ============================
   背景画像上書き（パララックス）
============================ */
@media screen and (max-width: 768px) {
    #shapely_home_parallax-2 .parallax-window {
        background-image: url('http://soulspice.zopex.jp/wp-content/uploads/2025/03/Soul_image7.jpg') !important;
        background-size: cover;
        background-position: center;
    }
}

/* ============================
   フッターなどの非表示処理
============================ */
.footer-credits {
    display: none !important;
}

/* ============================
   メニュー文字間調整
============================ */
.main-navigation .menu li a {
    letter-spacing: 0px;
}

/* ============================
   各セクション余白
============================ */
.page-title-section {
    height: 125px;
    padding: 30px 0;
}

section,
footer {
    padding: 50px 0;
    position: relative;
    overflow: hidden;
}

.entry-content p {
    white-space: normal !important;
    word-break: break-word;
}

/* ============================
   FontAwesome カスタム対応
============================ */
.dropdown:after {
    font-family: "Font Awesome 6 Free" !important;
}

@font-face {
    font-family: "Font Awesome 6 Free";
    font-style: normal;
    font-weight: 900;
    font-display: swap;
    src: url("https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.7.2/webfonts/fa-solid-900.woff2") format("woff2");
}

/* ============================
   アイキャッチ未設定時のプレースホルダ画像非表示
============================ */
.post-content .entry-header img[src*="placeholder.jpg"] {
    display: none;
}

/* ============================
   アイキャッチノートリ表示
============================ */
.single-post .wp-post-image {
    object-fit: contain !important;
    width: 100%;
    height: auto;
    display: block;
    margin: 0 auto;
}
