@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
*/

/* ヘッダーボタン（カラム）の幅を強制的に広げる */
.w-header .swell-block-column {
    min-width: 240px; 
    flex: 0 0 auto !important; 
}

/* ====================================
   フッターカスタマイズ（オジスキンクリニック用）
   ==================================== */

/* フッター内のテキスト調整 */
.l-footer__widgetArea {
    color: #fff; /* 文字色を白に */
}

/* ロゴ画像のサイズ調整 */
.l-footer .wp-block-image img {
    max-width: 350px; 
    height: auto;
    margin-bottom: 1.5em;
}

/* 住所などのテキスト */
.l-footer p {
    font-size: 0.9rem;
    line-height: 1.6;
    margin-bottom: 1em;
    opacity: 0.9; 
}

/* ------------------------------------
   左カラム：連絡先リストをボタン化
   ------------------------------------ */
.l-footer .swell-block-column:first-child .wp-block-list {
    display: grid;
    grid-template-columns: 1fr 1fr; /* 2列にする */
    gap: 10px; /* ボタン間の隙間 */
    padding-left: 0;
    list-style: none;
    margin-top: 2em;
}

/* 各リストアイテム */
.l-footer .swell-block-column:first-child .wp-block-list li {
    margin: 0;
}

/* リンクをボタン風にデザイン */
.l-footer .swell-block-column:first-child .wp-block-list li a {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    background-color: rgba(255, 255, 255, 0.1); /* 背景薄く */
    border: 1px solid rgba(255, 255, 255, 0.4); /* 枠線 */
    color: #fff;
    font-size: 0.85rem;
    font-weight: bold;
    text-align: center;
    padding: 12px 5px;
    border-radius: 4px;
    transition: all 0.3s ease;
    text-decoration: none;
    line-height: 1.3;
    height: 100%; /* 高さを揃える */
    box-sizing: border-box;
}

/* ホバー時の挙動 */
.l-footer .swell-block-column:first-child .wp-block-list li a:hover {
    background-color: #fff;
    color: var(--color_main); /* ホバー時はメインカラーの文字色に */
    transform: translateY(-2px);
}

/* TELリンクだけ目立たせる（オプション） */
.l-footer .swell-block-column:first-child .wp-block-list li a[href^="tel:"] {
    font-size: 1rem; /* 電話番号だけ少し大きく */
}


/* ------------------------------------
   右カラム：ナビゲーションリンク
   ------------------------------------ */
/* リストのスタイルリセット */
.l-footer .swell-block-column:last-child .wp-block-list {
    padding-left: 0;
    list-style: none;
    border-top: 1px solid rgba(255, 255, 255, 0.3); /* 上の線 */
    margin-top: 1em;
}

.l-footer .swell-block-column:last-child .wp-block-list li {
    margin: 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.3); /* 下の線 */
}

/* リンクのデザイン */
.l-footer .swell-block-column:last-child .wp-block-list li a {
    display: block;
    padding: 15px 0;
    color: #fff;
    text-decoration: none;
    font-size: 0.95rem;
    position: relative;
    transition: padding 0.3s;
}

/* 右側の矢印アイコン（CSSで作る） */
.l-footer .swell-block-column:last-child .wp-block-list li a::after {
    content: "";
    display: block;
    width: 6px;
    height: 6px;
    border-top: 2px solid #fff;
    border-right: 2px solid #fff;
    transform: rotate(45deg);
    position: absolute;
    right: 10px;
    top: 50%;
    margin-top: -4px;
    opacity: 0.7;
}

/* ホバー時の動き */
.l-footer .swell-block-column:last-child .wp-block-list li a:hover {
    padding-left: 10px;
    background-color: rgba(255,255,255,0.05);
}

/* ------------------------------------
   スマホ表示の調整（SP）
   ------------------------------------ */
@media screen and (max-width: 959px) {
    /* 左カラムの下に余白を追加 */
    .l-footer .swell-block-column:first-child {
        margin-bottom: 40px !important;
    }
    
    /* ボタンエリアを少し大きく */
    .l-footer .swell-block-column:first-child .wp-block-list li a {
        padding: 15px 5px;
        font-size: 0.9rem;
    }
}

/* ------------------------------------
   スマホ表示の調整（SP）
   ------------------------------------ */
@media screen and (max-width: 959px) {
    /* 左カラム全体（ロゴ・住所・ボタン）を中央寄せにする */
    .l-footer .swell-block-column:first-child {
        text-align: center;
        margin-bottom: 40px !important;
    }

    /* ロゴ画像の「左寄せ設定(alignleft)」を強制解除して真ん中へ */
    .l-footer .wp-block-image figure.alignleft {
        float: none;           /* 左への回り込みを解除 */
        margin-left: auto;     /* 左右の余白を自動にして中央へ */
        margin-right: auto;
        margin-bottom: 20px;   /* ロゴ下の余白 */
        display: block;        /* ブロック要素として扱う */
    }
    
    /* ボタンエリアを少し大きく・押しやすく */
    .l-footer .swell-block-column:first-child .wp-block-list li a {
        padding: 15px 5px;
        font-size: 0.9rem;
    }
}

/* ====================================
   目次上に移動した著者プロフィールのデザイン（最終修正版）
   ==================================== */

/* --- 全体の枠組み --- */
.l-articleBottom__section.-author.is-moved-to-top {
    background-color: #faf9f6 !important; /* 背景色 */
    border: 1px solid #dcd0c0 !important; /* 枠線 */
    border-radius: 8px;
    padding: 30px 25px !important;
    margin: 40px 0 50px !important;
    box-shadow: 0 2px 5px rgba(0,0,0,0.03);
}

/* --- H2見出し（記事を書いた人） --- */
.l-articleBottom__section.-author.is-moved-to-top .c-secTitle {
    background: transparent !important;
    border: none !important;
    padding: 0 !important;
    margin-top: 0 !important;
    margin-bottom: 20px !important;
    text-align: center !important;
    font-size: 1.1rem !important;
    color: #b19980 !important;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1.4 !important;
}

/* H2の両サイドの線 */
.l-articleBottom__section.-author.is-moved-to-top .c-secTitle::before,
.l-articleBottom__section.-author.is-moved-to-top .c-secTitle::after {
    content: "" !important;
    display: block !important;
    width: 30px !important;
    height: 1px !important;
    background-color: #b19980 !important;
    margin: 0 15px !important;
    border: none !important;
    position: static !important;
    transform: none !important;
}

/* --- 著者ボックス内部 --- */
.l-articleBottom__section.-author.is-moved-to-top .p-authorBox {
    margin-top: 0 !important;
    padding: 0 !important;
    border: none !important;
    align-items: flex-start !important;
}

/* 左側（画像・名前） */
.l-articleBottom__section.-author.is-moved-to-top .p-authorBox__l {
    text-align: center;
    width: 120px;
    flex-shrink: 0;
    margin-right: 25px !important;
}

/* アイコン画像 */
.l-articleBottom__section.-author.is-moved-to-top .p-authorBox__l img {
    width: 90px !important;
    height: 90px !important;
    border-radius: 50% !important;
    border: 2px solid #fff;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    margin-bottom: 8px !important;
    margin-top: 0 !important;
}

/* 名前 */
.l-articleBottom__section.-author.is-moved-to-top .p-authorBox__name {
    font-size: 1rem !important;
    font-weight: bold;
    display: block;
    margin-bottom: 3px !important;
    color: #333 !important;
}

/* 肩書き */
.l-articleBottom__section.-author.is-moved-to-top .p-authorBox__position {
    font-size: 0.75rem !important;
    color: #666 !important;
    display: block;
    line-height: 1.3;
}

/* 右側（本文） */
.l-articleBottom__section.-author.is-moved-to-top .p-authorBox__r {
    flex-grow: 1;
}

.l-articleBottom__section.-author.is-moved-to-top .p-authorBox__desc {
    font-size: 0.9rem !important;
    line-height: 1.7 !important;
    color: #444 !important;
    margin-bottom: 10px !important;
}

/* --- SNSアイコンリストの修正 --- */
.l-articleBottom__section.-author.is-moved-to-top .c-iconList {
    justify-content: flex-end !important;
    margin-top: 5px !important;
    list-style: none !important;
    padding-left: 0 !important;
    margin-left: 0 !important;
}

.l-articleBottom__section.-author.is-moved-to-top .c-iconList__item {
    margin-left: 5px !important;
    margin-right: 0 !important;
    list-style: none !important;
}

/* 点を消す */
.l-articleBottom__section.-author.is-moved-to-top .c-iconList__item::before {
    content: none !important;
    display: none !important;
}

/* アイコンリンク（ここをFlexboxで中央寄せに修正） */
.l-articleBottom__section.-author.is-moved-to-top .c-iconList__link {
    font-size: 16px !important;    /* アイコン少し大きく */
    width: 34px !important;        /* 枠も少し大きく */
    height: 34px !important;
    background: #fff !important;
    border: 1px solid #eee !important;
    border-radius: 50% !important;
    
    /* ↓ここが重要：強制的にど真ん中に配置 */
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    line-height: 1 !important;
    padding: 0 !important;
}

/* アイコン自体の位置微調整 */
.l-articleBottom__section.-author.is-moved-to-top .c-iconList__icon {
    margin: 0 !important;
    vertical-align: middle !important;
    position: static !important;
    transform: none !important;
}

/* --- スマホ表示の調整（SP） --- */
@media screen and (max-width: 599px) {
    .l-articleBottom__section.-author.is-moved-to-top {
        padding: 20px 15px !important;
    }
    
    .l-articleBottom__section.-author.is-moved-to-top .p-authorBox {
        flex-direction: column !important;
        align-items: center !important;
    }

    .l-articleBottom__section.-author.is-moved-to-top .p-authorBox__l {
        margin-right: 0 !important;
        margin-bottom: 15px !important;
        width: 100% !important;
        display: flex !important;
        align-items: center !important;
        text-align: left !important;
    }
    
    .l-articleBottom__section.-author.is-moved-to-top .p-authorBox__l img {
        margin-bottom: 0 !important;
        margin-right: 15px !important;
        width: 70px !important;
        height: 70px !important;
    }
    
    .l-articleBottom__section.-author.is-moved-to-top .p-authorBox__r {
        width: 100% !important;
    }
    
    .l-articleBottom__section.-author.is-moved-to-top .c-iconList {
        justify-content: center !important;
    }
}

/* ====================================
   FAQブロックのカスタマイズ
   ==================================== */

/* FAQリスト全体の余白調整 */
.swell-block-faq {
    margin-top: 3em !important;
    margin-bottom: 3em !important;
}

/* 各質問アイテムの枠組み */
.swell-block-faq__item {
    background-color: #fff;
    border: 1px solid #eee; /* 薄い枠線 */
    border-radius: 8px;     /* 角丸 */
    padding: 20px 25px;     /* 内側の余白 */
    margin-bottom: 20px;    /* アイテム同士の間隔 */
    box-shadow: 0 2px 5px rgba(0,0,0,0.02); /* ほんのり影 */
}

/* --- 質問部分（Q） --- */
.swell-block-faq__item dt.faq_q {
    font-weight: 700;
    color: #333;
    padding: 0 0 10px 35px; /* 左にアイコン分のスペースを確保 */
    position: relative;
    border-bottom: 1px dashed #ddd; /* 点線で区切る */
    margin-bottom: 15px;
    font-size: 1.05em;
    line-height: 1.5;
}

/* 「Q」アイコンの装飾 */
.swell-block-faq__item dt.faq_q::before {
    content: "Q";
    position: absolute;
    left: 0;
    top: 0;
    width: 26px;
    height: 26px;
    background-color: #b19980; /* メインカラー */
    color: #fff;
    border-radius: 50%; /* 丸くする */
    text-align: center;
    line-height: 26px;
    font-size: 14px;
    font-weight: bold;
    font-family: Arial, sans-serif;
}

/* SWELLデフォルトのアイコンを消す（もしあれば） */
.swell-block-faq__item dt.faq_q .icon-q {
    display: none;
}


/* --- 回答部分（A） --- */
.swell-block-faq__item dd.faq_a {
    padding: 0 0 0 35px; /* 左にアイコン分のスペース */
    position: relative;
    color: #444;
    font-size: 0.95em;
    line-height: 1.7;
    margin: 0;
}

/* 「A」アイコンの装飾 */
.swell-block-faq__item dd.faq_a::before {
    content: "A";
    position: absolute;
    left: 0;
    top: 2px;
    width: 26px;
    height: 26px;
    background-color: #f0f0f0; /* グレー背景 */
    color: #b19980; /* 文字色はメインカラー */
    border-radius: 50%;
    text-align: center;
    line-height: 26px;
    font-size: 14px;
    font-weight: bold;
    font-family: Arial, sans-serif;
}

/* 回答内の段落余白調整 */
.swell-block-faq__item dd.faq_a p {
    margin-bottom: 1em;
}
.swell-block-faq__item dd.faq_a p:last-child {
    margin-bottom: 0;
}

/* --- スマホ表示の調整 --- */
@media screen and (max-width: 599px) {
    .swell-block-faq__item {
        padding: 15px;
    }
    
    .swell-block-faq__item dt.faq_q,
    .swell-block-faq__item dd.faq_a {
        padding-left: 30px; /* アイコンスペースを少し狭く */
    }
    
    /* アイコンサイズ微調整 */
    .swell-block-faq__item dt.faq_q::before,
    .swell-block-faq__item dd.faq_a::before {
        width: 22px;
        height: 22px;
        line-height: 22px;
        font-size: 12px;
        top: 2px;
    }
}