@charset "UTF-8";
/*
    Template: swell
    Theme Name: SWELL CHILD
    Theme URI: https://swell-theme.com/
    Description: SWELLの子テーマ
    Version: 1.0.0
    Author: LOOS WEB STUDIO
    Author URI: https://loos-web-studio.com/

    License: GNU General Public License
    License URI: http://www.gnu.org/licenses/gpl.html
*/

/* -------------------------------------------
   著者情報のデザインカスタマイズ（完結版）
   ・2重ボックスデザイン再現
   ・タイトル位置ズレ修正
   ・リンクアイコンの崩れ修正（シンプル化）
------------------------------------------- */

/* 1. 【外枠】青い背景と枠線の大きなボックス */
body .l-articleBottom__section.-author {
    background-color: #f0fafa !important;
    border: 2px solid #00afcc !important;
    border-radius: 12px !important;
    padding: 24px !important;
    margin: 3em 0 2em !important;
}

/* 2. 【見出し】「この記事を書いた人」のスタイル */
#content .l-articleBottom__section.-author h2,
#content .l-articleBottom__section.-author .c-secTitle {
    display: flex !important;
    align-items: center !important;
    justify-content: flex-start !important;
    flex-wrap: nowrap !important;
    gap: 12px !important;
    
    background: transparent !important;
    border: none !important;
    padding: 0 !important;
    margin: 0 0 20px 0 !important;
    color: #333 !important;
    font-size: 18px !important;
    font-weight: 700 !important;
    position: static !important;
}

/* SWELLの装飾（吹き出しのしっぽ等）を完全消去 */
#content .l-articleBottom__section.-author h2::after,
#content .l-articleBottom__section.-author .c-secTitle::after {
    content: none !important;
    display: none !important;
}

/* 3. 【見出しアイコン】青い丸（ペンアイコン） */
#content .l-articleBottom__section.-author h2::before,
#content .l-articleBottom__section.-author .c-secTitle::before {
    position: static !important; 
    transform: none !important;
    margin: 0 !important;

    content: '\e99a' !important;
    font-family: "icomoon" !important;
    color: #fff !important;
    background-color: #00afcc !important;
    width: 30px !important;
    height: 30px !important;
    border-radius: 50% !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    font-size: 14px !important;
    flex-shrink: 0 !important;
    border: none !important;
}

/* 4. 【内側ボックス】著者情報のグレー枠エリア */
.p-authorBox {
    background-color: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    padding: 24px;
    display: flex;
    flex-wrap: nowrap;
    gap: 24px;
    align-items: flex-start;
    margin-top: 0;
}

/* 左側（顔写真・名前エリア） */
.p-authorBox__l {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 140px;
    flex-shrink: 0;
    text-align: center;
}

/* 顔写真 */
.p-authorBox__l img.avatar {
    width: 100px;
    height: 100px;
    object-fit: cover;
    border-radius: 50%;
    border: 3px solid #fff;
    box-shadow: 0 0 0 1px #dceef3;
    margin: 0 0 12px 0;
}

/* 名前 */
.p-authorBox__name {
    display: block;
    font-size: 17px;
    font-weight: 700;
    color: #00afcc;
    margin-bottom: 8px;
    line-height: 1.4;
    width: 100%;
}

/* 肩書き */
.p-authorBox__position {
    display: inline-block;
    font-size: 12px;
    color: #666;
    background-color: #f0f6f7;
    padding: 8px 12px;
    border-radius: 6px;
    line-height: 1.5;
}

/* 右側（説明文） */
.p-authorBox__r {
    flex: 1;
    min-width: 0;
}

.p-authorBox__desc {
    font-size: 14px;
    line-height: 1.8;
    color: #444;
    margin-bottom: 0;
}

/* 5. 【リンクアイコン】修正部分：リストの点を消し、アイコンのみにする */
.p-authorBox__iconList {
    margin-top: 12px;
    justify-content: flex-end;
    list-style: none !important; /* リストマーク削除 */
    padding: 0 !important;
    display: flex !important;
}

/* リストアイテムの点を消す */
.p-authorBox__iconList li {
    list-style: none !important;
    margin: 0 !important;
    padding: 0 !important;
    background: none !important;
}
.p-authorBox__iconList li::before,
.p-authorBox__iconList li::after {
    content: none !important;
    display: none !important;
}

/* 【重要】リンクの枠線や丸背景を消して、アイコンだけにする */
.p-authorBox__iconList .c-iconList__link {
    background: transparent !important; /* 背景の丸を消す */
    border: none !important;            /* 枠線を消す */
    box-shadow: none !important;        /* 影を消す */
    width: auto !important;             /* 固定幅を解除 */
    height: auto !important;            /* 固定高さを解除 */
    border-radius: 0 !important;
    padding: 4px !important;            /* 少し余白 */
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
}

/* アイコン自体のサイズと色 */
.p-authorBox__iconList .c-iconList__icon {
    font-size: 24px !important;         /* アイコンを大きく見やすく */
    color: #b0b0b0 !important;          /* グレーで落ち着かせる */
    margin: 0 !important;
    transition: color 0.3s;
}

/* ホバー時にテーマカラーにする */
.p-authorBox__iconList .c-iconList__link:hover .c-iconList__icon {
    color: #00afcc !important;
}

/* -------------------------------------------
   スマホ (SP) 表示の調整
------------------------------------------- */
@media screen and (max-width: 599px) {
    body .l-articleBottom__section.-author {
        padding: 20px 15px !important;
    }
    .p-authorBox {
        padding: 20px 15px;
        flex-direction: column;
        gap: 20px;
        align-items: center;
    }
    .p-authorBox__l {
        width: 100%;
        flex-direction: column;
        margin-bottom: 0;
    }
    .p-authorBox__l img.avatar {
        width: 80px;
        height: 80px;
    }
    .p-authorBox__r {
        width: 100%;
    }
}

/* FAQデザイン */
.post_content .swell-block-faq__item {
    margin-bottom: 30px;
}

/* 共通設定 */
.post_content .swell-block-faq dt,
.post_content .swell-block-faq dd {
    position: relative;
    padding: 15px 20px 15px 55px; /* アイコン分の余白 */
    border-radius: 10px;
}

/* 質問（Q） */
.post_content .swell-block-faq .faq_q {
    background: #eafaff; /* 非常に薄い青背景 */
    color: #00afcc;
    font-weight: bold;
    margin-bottom: 10px;
}

/* Qアイコン */
.post_content .swell-block-faq .faq_q::before {
    content: 'Q';
    position: absolute;
    top: 15px;
    left: 15px;
    width: 30px;
    height: 30px;
    background: #00afcc;
    color: #fff;
    border-radius: 50%;
    text-align: center;
    line-height: 30px;
    font-weight: bold;
    font-size: 14px;
}

/* 回答（A） */
.post_content .swell-block-faq .faq_a {
    background: #f7f7f7;
}

/* Aアイコン */
.post_content .swell-block-faq .faq_a::before {
    content: 'A';
    position: absolute;
    top: 15px;
    left: 15px;
    width: 30px;
    height: 30px;
    background: #ff8e8e; /* やわらかい赤 */
    color: #fff;
    border-radius: 50%;
    text-align: center;
    line-height: 30px;
    font-weight: bold;
    font-size: 14px;
}