@charset "utf-8";

/* PC・SPの既存CSSをインポート */
@import url("pc.css?20211029") screen and (min-width: 769px);
@import url("sp.css?20211029") screen and (max-width: 768px);


/* --- #apps セクション全体のスタイル --- */
#apps {
    background: #fff6e9;
    padding: 40px 0;
}

#apps h4 {
    margin: 20px 0 0 0;
}

/* バナーエリア */
#apps .banner {
    margin: 0 3%;
    padding: 20px 0 30px 0;
    background: #fff;
    border-radius: 20px;
    text-align: center; 
}

#apps .banner img {
    border-radius: 30px;
    max-width: 100%; 
    height: auto;
}

#apps .app_ttl {
    padding: 20px 0 10px 0;
}

/* ボタンのスタイル */
#apps .button a {
    display: block;
    background: #ff9595 url("../images/chk_app_btn_aro.png") no-repeat; 
    background-size: 33px;
    background-position: 95% 50%;
    width: 80%;
    padding: 16px 20px 16px 20px;
    margin: 0 auto;
    text-align: center;
    font-size: 16px;
    font-family: "Zen Maru Gothic", sans-serif;
    font-weight: 600;
    color: #fff;
    border-radius: 60px;
    box-shadow: 0px 5px 1px #be7979;
    text-decoration: none;
}

/* コメントボックスのコンテナ */
#apps .checktool-inner .coment_box {
    margin: 20px 3% 0 2%;
    padding: 15px 5%; 
    border: solid 2px #ffc4c4; 
    border-radius: 20px;
    position: relative; /* アイコンを絶対配置するために必要 */
    background: #fff;
}

/* 既存のぼかし効果を無効化（インポート元にある場合） */
#apps .coment_box::after {
    display: none; 
}


/* --- パート1：名前とアイコン（ユーザープロフィール） --- */
#apps .coment_box .name {
    margin: 0 0 10px 0; /* 下に余白を追加 */
    font-weight: bold;
    display: flex;
    align-items: center; 
    flex-wrap: wrap;
    padding-right: 60px; /* 右側に余白を作り、いいねアイコンと重ならないようにする */
}

/* アイコンの丸い枠 */
#apps .coment_box .name span {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 50px;
    height: 50px;
    background-color: #eee; /* 背景色：グレー */
    border-radius: 50%;
    overflow: hidden;
    margin-right: 10px;
    flex-shrink: 0;
}

/* アイコン画像 */
#apps .coment_box .name span img {
    width: 100%;
    height: 100%;
    object-fit: contain; /* 比率を保持し、画像が切れないようにする */
    border-radius: 0;
    margin: 0;
}


/* --- パート2：いいね・コメントアイコン --- */
/* レイアウト崩れを防ぐためabsolute配置に変更 */
#apps .coment_box .coment_icon {
    position: absolute;
    top: 15px;  /* 上からの距離 */
    right: 5%;  /* 右からの距離 */
    display: flex;
    justify-content: flex-end;
    z-index: 3;
    background: #fff; /* 必要に応じて文字を隠すための白背景 */
}

#apps .coment_box .coment_icon p {
    margin: 0 0 0 10px;
    font-size: 12px;
    display: flex;
    align-items: center;
}

#apps .coment_box .coment_icon span img {
    width: 20px;
    margin: 0 5px 0 0;
    vertical-align: middle;
}


/* 「続きをアプリで読む」リンク */
#apps .coment_box .coment_link {
    position: absolute;
    bottom: 12px;
    right: 5%;
    z-index: 2;
    margin: 0;
}

#apps .coment_box .coment_link a {
    text-decoration: underline;
    text-align: right;
    font-size: 13px;
    color: #333;
    font-weight: bold;
}

/* #appsの後のH2タグの上に余白を追加 */
#apps + h2 {
    margin-top: 60px;
}