/*
Theme Name: 高崎市PTA連合会
Theme URI: https://takasaki-pta.com/
Author: Your Name
Description: 高崎市PTA連合会 公式サイト カスタムテーマ
Version: 1.0
*/

/* =========================
   Reset / Base
========================= */

*,
*:before,
*:after {
    box-sizing: border-box;
}

p {
    margin: 1em 0;
}

h1,
h2,
h3,
h4,
h5,
h6,
ul,
li,
img,
table,
tr,
th,
td,
dl,
dt,
dd {
    font-weight: normal;
    margin: 0;
    padding: 0;
    border: none;
}

ul,
li {
    list-style: none;
}

strong {
    font-weight: bold;
}

em {
    font-style: italic;
}

blockquote {
    margin: 1em 40px;
}

/* =========================
   WordPress Image Base
========================= */

.con-01-syousai2 img {
    max-width: 100%;
    height: auto;
}

/* center */

.con-01-syousai2 img.aligncenter {
    display: block;
    margin: 20px auto;
}

/* left */

.con-01-syousai2 img.alignleft {
    float: left;
    margin: 0 20px 20px 0;
}

/* right */

.con-01-syousai2 img.alignright {
    float: right;
    margin: 0 0 20px 20px;
}

/* WordPress images */

.con-01-syousai2 img[class*="wp-image-"],
.con-01-syousai2 img[class*="attachment-"] {
    max-width: 100%;
    height: auto;
}

/* =========================
   Clearfix
========================= */

.clearfix::after {
    content: "";
    display: block;
    clear: both;
}

/* =========================
   WordPress Content Base
========================= */

.entry-content {
    line-height: 1.8;
}

.entry-content p {
    margin: 1em 0;
}

.entry-content img {
    max-width: 100%;
    height: auto;
}

/* caption */

.wp-caption {
    max-width: 100%;
    text-align: center;
    margin: 20px auto;
}

.wp-caption img {
    margin: 0;
}

.wp-caption-text {
    font-size: 0.9em;
    color: #666;
}

/* gallery */

.gallery {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.gallery img {
    height: auto;
}

/* blockquote */

.entry-content blockquote {
    border-left: 4px solid #ddd;
    padding-left: 20px;
    margin: 20px 0;
    color: #666;
}

/* lists */

.entry-content ul {
    list-style: disc;
    margin-left: 20px;
}

.entry-content ol {
    list-style: decimal;
    margin-left: 20px;
}

/* table */

.entry-content table {
    width: 100%;
    border-collapse: collapse;
    margin: 20px 0;
}

.entry-content th,
.entry-content td {
    border: 1px solid #ddd;
    padding: 10px;
}

/* iframe / youtube */

.entry-content iframe {
    max-width: 100%;
}

/* clear float */

.entry-content::after {
    content: "";
    display: block;
    clear: both;
}

/* =========================
   PDF icon
========================= */

.pdf-icon {
    width: 24px;
    height: auto;
    margin-right: 12px;
}

.mag-list-text {
    font-weight: bold;
    line-height: 1.4;
}

/* =========================
   Responsive
========================= */

@media (max-width: 768px) {

    .mag-list-item {
        flex-direction: column;
        align-items: flex-start;
    }

    .mag-list-date {
        margin-bottom: 5px;
    }

}

/* =========================
   PDF viewer
========================= */

.imgdiv2 object {
    width: 100%;
    height: 800px;
    border: 1px solid #ccc;
}

@media screen and (max-width: 767px) {

    .imgdiv2 object {
        height: 400px;
    }

}

/* =========================
   Google Form
========================= */

#google-form {
    display: block;
    width: 100%;
    height: 1700px !important;
    overflow: hidden;
    margin-bottom: 1rem;
}

@media screen and (max-width: 768px) {

    #google-form {
        height: 2200px !important;
        margin-bottom: 0.9rem;
    }

}

/* =========================
   Contact Layout
========================= */

@media screen and (max-width: 767px) {

    .titlearea .br-clear {
        display: block;
    }

}

/* .faq-content を経由して img を制御する */
.faq-content img {
    /* 1. 幅を親要素に強制的に合わせる */
    width: 100% !important;
    max-width: 100% !important;

    /* 2. 高さは比率を維持して自動計算 */
    height: auto !important;

    /* 3. 巨大画像がはみ出すのを防ぐ */
    object-fit: contain;

    /* 4. ブロック要素にしてレイアウト崩れ（埋もれ）を防ぐ */
    display: block !important;
    margin: 20px auto !important;
}

/* 画像が親要素からはみ出した分を切り取ることで崩れを防ぐ */
.faq-content {
    width: 100%;
    overflow: hidden;
}

/* --- TOPページ親要素：影（外側）と全体のサイズ管理 --- */
.pic-01 {
    position: relative;
    display: block;
    width: 420px;
    height: 420px;
    margin: 0 auto;
    border-radius: 50%;
    /* 外側の影（浮遊感） */
    box-shadow: 0 5px 10px rgba(0, 0, 0, 0.4);
    /* iOSでのレンダリングバグ防止 */
    -webkit-transform: translateZ(0);
    transform: translateZ(0);
}

/* --- iPhone対策のキモ：画像の上に枠と「内側の影」を被せる --- */
.pic-01::after {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    border-radius: 50%;
    /* 白い太枠 */
    border: 8px solid #ffffff;
    /*内側の影（画像の上に重ねることでiPhoneでも確実に見える） */
    box-shadow: inset 0 0 20px rgba(0, 0, 0, 0.4);
    box-sizing: border-box;
    /*下の画像をクリックできるようにする */
    pointer-events: none;
    z-index: 2;
}

/* --- 画像：円形切り抜きと表示設定 --- */
.circle-photo {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
    display: block;
    z-index: 1;

    /* iOS Safari で四角くはみ出すのを防ぐための強制クリッピング */
    -webkit-mask-image: -webkit-radial-gradient(circle, white 100%, black 100%);
    mask-image: radial-gradient(circle, white 100%, black 100%);

    /* レンダリングの安定化 */
    -webkit-backface-visibility: hidden;
    backface-visibility: hidden;
}

/* --- スマホ対応（iPhoneサイズ） --- */
@media screen and (max-width: 480px) {
    .pic-01 {
        width: 150px;
        height: 150px;
        /* スマホでの位置微調整が必要ならここ（例: top等） */
    }

    .pic-01::after {
        border-width: 8px;
        /* スマホでは枠線を細く */
        box-shadow: inset 0 0 12px rgba(0, 0, 0, 0.4);
        /* 影の範囲も調整 */
    }
}

/* 768px以上の画面サイズ（PC・タブレット）だけに適用 */
@media screen and (min-width: 768px) {
    .cat-link.cat-link2 {
        padding-bottom: 10px !important;
    }
}