/* 1カラムレイアウト用スタイル - 最適化された設定 */
/* リセットCSSはtheme-styles.cssで管理 */

body {
    font-family: "Helvetica Neue", "Helvetica", "Hiragino Sans", "Hiragino Kaku Gothic ProN", "Arial", "Yu Gothic", "Meiryo", sans-serif;
    line-height: 1.6; 
    letter-spacing: 0.05rem;
    color: #333;
}

img {
    vertical-align: bottom;
}

/* ========================================
 * 1カラムレイアウトの基本設定
 * ======================================== */

/* コンテンツ全体の設定 */
.content {
    padding-top: 20px;
    max-width: 1200px;
    margin: 0 auto;
    text-align: center;
}

/* 行の設定 */
.content .row {
    margin: 0 auto;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    max-width: 1200px;
}

/* カラムの基本設定 */
.content .col-lg-12 {
    padding: 0 15px;
    box-sizing: border-box;
}

/* Bootstrapの設定を強制的に上書き */
.content .col-lg-12 {
    width: 100% !important;
    max-width: 100% !important;
    flex: 0 0 100% !important;
    box-sizing: border-box !important;
}

/* さらに強力なセレクタで上書き */
html body .content .col-lg-12,
html body .content .row .col-lg-12,
.content .row .col-lg-12 {
    width: 100% !important;
    max-width: 100% !important;
    flex: 0 0 100% !important;
    box-sizing: border-box !important;
}

/* 最終手段：すべての要素に強制適用 */
.content .col-lg-12,
.content .row .col-lg-12,
.col-lg-12 {
    width: 100% !important;
    max-width: 100% !important;
    flex: 0 0 100% !important;
    box-sizing: border-box !important;
}

/* 特定のページ用の強制スタイル */
body.page-template-column_one .content .col-lg-12,
body.page-template-column_one .col-lg-12 {
    width: 100% !important;
    max-width: 100% !important;
    flex: 0 0 100% !important;
    box-sizing: border-box !important;
}

/* 大画面での1カラムレイアウト */
@media (min-width: 992px) {
    .content .col-lg-12 {
        flex: 0 0 100% !important;
        max-width: 100% !important;
        width: 100% !important;
    }
}

/* ========================================
 * メインコンテンツエリア
 * ======================================== */

.main {
    background: #fff;
    padding: 30px;
    border-radius: 12px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    margin-bottom: 30px;
}

/* コンテンツヘッダー */
.content-Header {
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 3px solid #337ab7;
}

.content-Title {
    font-size: 2.5rem;
    font-weight: 700;
    color: #333;
    margin: 0 0 20px 0;
    line-height: 1.3;
}

/* アイキャッチ画像 */
.content-EyeCatch {
    margin: 20px 0 30px 0;
    text-align: center;
}

.content-EyeCatch img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

/* コンテンツ本文 */
.content-Body {
    line-height: 1.8;
    color: #333;
}

.content-Body p {
    margin-bottom: 1.5em;
    text-align: left;
}

/* シンプルなpタグの左寄せ */
.content p,
.main p {
    text-align: left;
}

/* メインコンテンツの左寄せ */
.content .col-lg-12 {
    text-align: left;
}

/* コンテンツ本文の左寄せ */
.content-Body {
    text-align: left;
}



.content-Body ul, .content-Body ol {
    margin: 1em 0 1.5em 2em;
}

.content-Body li {
    margin-bottom: 0.5em;
}

/* profile_p imgの横幅設定と右側回り込み */
#profile_p img {
    width: 200px;
    max-width: 200px;
    float: right !important;
    margin-left: 20px !important;
    margin-bottom: 15px !important;
    display: block;
}

/* #owner内での回り込み設定 */
#owner {
    position: relative;
}

#owner p {
    text-align: left;
    padding-right: 220px;
    box-sizing: border-box;
}

/* 画像をpの右側に絶対配置 */
#profile_p {
    position: absolute !important;
    top: 0 !important;
    right: 0 !important;
    width: 200px !important;
    z-index: 10;
}

/* 画像のサイズも確実に設定 */
#profile_p img {
    width: 200px !important;
    max-width: 200px !important;
    height: auto;
    display: block;
}

/* ========================================
 * レスポンシブ対応
 * ======================================== */

@media (max-width: 991px) {
    .content .col-lg-12 {
        padding: 0 10px;
    }
    
    .main {
        padding: 20px;
        margin-bottom: 20px;
    }
    
    .content-Title {
        font-size: 2rem;
    }
    
    /* 中画面でもpタグを左寄せに */
    .content p,
    .main p {
        text-align: left;
    }
    
    /* 中画面でも#profile_p imgの横幅を維持 */
    #profile_p img {
        width: 200px;
        max-width: 200px;
    }
    
    /* 中画面でも#ownerの絶対配置を維持 */
    #owner p {
        padding-right: 215px;
    }
}

@media (max-width: 768px) {
    .content {
        padding: 0 15px;
    }
    
    .content .row {
        flex-direction: column;
        max-width: 100%;
    }
    
    .content .col-lg-12 {
        flex: 0 0 100% !important;
        max-width: 100% !important;
        width: 100% !important;
        margin-bottom: 20px;
    }
    
    .main {
        padding: 15px;
    }
    
    .content-Title {
        font-size: 1.8rem;
    }
    
    /* モバイルでもpタグを左寄せに */
    .content p,
    .main p {
        text-align: left;
    }
    
    /* モバイルでも#profile_p imgの横幅を維持 */
    #profile_p img {
        width: 200px;
        max-width: 200px;
    }
    
    /* モバイルでも#ownerの絶対配置を維持 */
    #owner p {
        padding-right: 210px;
    }
}

/* ページトップに戻るフローティングボタン */
.page-top-floating {
    position: fixed;
    bottom: 30px;
    right: 30px;
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.page-top-floating.show {
    opacity: 1;
    visibility: visible;
}

/* その他のページ用の位置（画面右下隅） */
.page-top-corner {
    bottom: 30px;
    right: 30px;
    top: auto;
}

.page-top-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 60px;
    height: 60px;
    background: #337ab7;
    color: #fff;
    text-decoration: none;
    border-radius: 50%;
    box-shadow: 0 4px 12px rgba(51, 122, 183, 0.3);
    transition: all 0.3s ease;
}

.page-top-btn:hover {
    background: #286090;
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(51, 122, 183, 0.4);
    color: #fff;
    text-decoration: none;
}

.page-top-text {
    font-size: 14px;
    font-weight: 600;
    letter-spacing: 0.5px;
}

.page-top-icon {
    font-size: 16px;
    font-weight: bold;
}

/* モバイル対応 */
@media (max-width: 768px) {
    .page-top-floating {
        bottom: 20px;
        right: 20px;
    }
    
    .page-top-link {
        width: 50px;
        height: 50px;
    }
    
    .page-top-text {
        font-size: 12px;
    }
}
