/*
Theme Name: tsk-p base
Theme URI: https://tsk-p.blog/
Author: tsk-p base 管理人
Description: 改修工事×不動産×デジタルの施工管理ブログ「tsk-p base」専用WordPressテーマ。Material Design for Bootstrapベースで構築。
Version: 1.0
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: tsk-p-base
Tags: blog, bootstrap, material-design, responsive
*/

/* 最低限のリセットと共通定義 */
body {
    font-family: "Roboto", "Helvetica Neue", Helvetica, Arial, sans-serif;
    font-size: 16px;
    line-height: 1.6;
    color: #333;
    background-color: #f5f7fa;
    margin: 0;
    padding: 0;
}
a {
    color: #007aff;
    text-decoration: none;
}
a:hover {
    text-decoration: underline;
}
h1,h2,h3,h4,h5,h6 {
    font-weight: 600;
    line-height: 1.3;
    color: #212529;
    margin-top: 1.5rem;
    margin-bottom: 0.5rem;
}
img {
    max-width: 100%;
    height: auto;
}
.aligncenter {
    display: block;
    margin-left: auto;
    margin-right: auto;
}
.alignleft {
    float: left;
    margin-right: 1rem;
}
.alignright {
    float: right;
    margin-left: 1rem;
}

/* ぱんたロイド 吹き出しスタイル - サイト配色対応 */
.balloon-box {
    display: flex;
    align-items: flex-start;
    margin: 3em auto;
    max-width: 600px !important;
}
.balloon-box.left {
    flex-direction: row;
}
.balloon-box.right {
    flex-direction: row-reverse;
}
.balloon-icon img {
    width: 120px;
    height: 120px;
    object-fit: contain;
    border-radius: 25%;
    margin-right: 20px;
}
.balloon-text {
    background: #fffbea;
    border: 2px solid #ffd26b;
    border-radius: 12px;
    padding: 1em;
    position: relative;
    max-width: 100%;
    font-size: 0.8em;
    line-height: 2.4;
    color: #333;
    max-width: 420px !important;
}
.balloon-box.left .balloon-text::before {
    content: "";
    position: absolute;
    top: 1em;
    left: -16px;
    border: 8px solid transparent;
    border-right: 8px solid #ffd26b;
}
.balloon-box.left .balloon-text::after {
    content: "";
    position: absolute;
    top: 1em;
    left: -13px;
    border: 7px solid transparent;
    border-right: 7px solid #fffbea;
}
.balloon-box.right .balloon-text::before {
    content: "";
    position: absolute;
    top: 1em;
    right: -16px;
    border: 8px solid transparent;
    border-left: 8px solid #ffd26b;
}
.balloon-box.right .balloon-text::after {
    content: "";
    position: absolute;
    top: 1em;
    right: -13px;
    border: 7px solid transparent;
    border-left: 7px solid #fffbea;
}
/* ▼ スマホ表示対応 ▼ */
@media screen and (max-width: 768px) {
    .balloon-box {
        flex-direction: column !important;
        align-items: center;
    }
    .balloon-icon img {
        margin: 0 0 1em 0;
        width: 100px;
        height: 100px;
        object-fit: contain;
    }
    .balloon-text {
        font-size: 0.9em;
        line-height: 1.8;
    }
    .balloon-text::before,
    .balloon-text::after {
        display: none;
    }
}