/*
Theme Name: DMM FX Guide
Description: DMM FX完全ガイドサイト用WordPressテーマ - 管理画面から簡単に内容を変更できます
Version: 1.0.0
Author: Your Name
License: GPL v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: dmmfx-guide
*/

/* =WordPress Core Styles
-------------------------------------------------------------- */
.alignnone {
    margin: 5px 20px 20px 0;
}

.aligncenter,
div.aligncenter {
    display: block;
    margin: 5px auto 5px auto;
}

.alignright {
    float:right;
    margin: 5px 0 20px 20px;
}

.alignleft {
    float: left;
    margin: 5px 20px 20px 0;
}

a img.alignright {
    float: right;
    margin: 5px 0 20px 20px;
}

a img.alignnone {
    margin: 5px 20px 20px 0;
}

a img.alignleft {
    float: left;
    margin: 5px 20px 20px 0;
}

a img.aligncenter {
    display: block;
    margin-left: auto;
    margin-right: auto;
}

.wp-caption {
    background: #fff;
    border: 1px solid #f0f0f0;
    max-width: 96%;
    padding: 5px 3px 10px;
    text-align: center;
}

.wp-caption.alignnone {
    margin: 5px 20px 20px 0;
}

.wp-caption.alignleft {
    margin: 5px 20px 20px 0;
}

.wp-caption.alignright {
    margin: 5px 0 20px 20px;
}

.wp-caption img {
    border: 0 none;
    height: auto;
    margin: 0;
    max-width: 98.5%;
    padding: 0;
    width: auto;
}

.wp-caption p.wp-caption-text {
    font-size: 11px;
    line-height: 17px;
    margin: 0;
    padding: 0 4px 5px;
}

/* =WordPress Admin Bar
-------------------------------------------------------------- */
.admin-bar #header {
    top: 32px;
}

@media screen and (max-width: 782px) {
    .admin-bar #header {
        top: 46px;
    }
}

/* =Custom WordPress Styles
-------------------------------------------------------------- */

/* ギャラリーショートコード */
.gallery {
    margin: auto;
}

.gallery .gallery-item {
    float: left;
    margin-top: 10px;
    text-align: center;
}

.gallery img {
    border: 2px solid #cfcfcf;
}

.gallery .gallery-caption {
    margin-left: 0;
}

.gallery dl {
    margin: 0;
}

.gallery img {
    border: 10px solid #f1f1f1;
}

.gallery br+br {
    display: none;
}

/* 埋め込み動画のレスポンシブ対応 */
.video-container {
    position: relative;
    padding-bottom: 56.25%;
    height: 0;
    overflow: hidden;
    max-width: 100%;
}

.video-container iframe,
.video-container object,
.video-container embed {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

/* エディター内のスタイル */
.wp-block-embed {
    margin: 2rem 0;
}

.wp-block-embed iframe {
    max-width: 100%;
}

/* カスタム投稿タイプ「口コミ」のスタイル */
.review-rating {
    color: #fbbf24;
    font-size: 1.2rem;
}

.review-meta {
    background: #f9fafb;
    padding: 1rem;
    border-radius: 0.5rem;
    margin: 1rem 0;
}

/* 管理画面のスタイル調整 */
.post-type-review .form-table th {
    width: 150px;
}

.post-type-review .form-table td input[type="text"],
.post-type-review .form-table td select {
    width: 300px;
}

/* カスタマイザープレビュー用 */
.customize-partial-edit-shortcut {
    position: relative;
}

/* レスポンシブ調整 */
@media (max-width: 768px) {
    .container {
        padding-left: 1rem;
        padding-right: 1rem;
    }
    
    .text-4xl {
        font-size: 2rem;
    }
    
    .text-6xl {
        font-size: 3rem;
    }
    
    .grid-cols-3 {
        grid-template-columns: repeat(1, minmax(0, 1fr));
    }
    
    .lg\:grid-cols-2 {
        grid-template-columns: repeat(1, minmax(0, 1fr));
    }
}

/* 印刷用スタイル */
@media print {
    #header,
    #page-top,
    .mobile-menu {
        display: none !important;
    }
    
    body {
        font-size: 12pt;
        line-height: 1.4;
    }
    
    .gradient-bg {
        background: #333 !important;
        color: white !important;
    }
}