@charset "UTF-8";



/* ********** プロフィールB ****************************** */

@media all and (min-width: 769px) {
.accordion__list_prof .image-area { width: 20%; }
.accordion__list_prof .media-container { gap: 40px; margin-bottom: 0;}
}
.prof-content-main .media-container { gap:50px; }
.prof-content-main .media-container .image-area img { border-radius:5px; }
@media all and (max-width: 768px) {
.prof-content-main .media-container { gap:20px; }
}

.prof-elements { display: flex; justify-content: space-between; padding-top: 15px; padding-bottom: 20px; }
.prof-element-left { width: 40%; }
.prof-element-right { width: 60%;}
.prof-element-left ul, .prof-element-right p { margin-top: 0px; }
@media all and (max-width: 768px) {
	.prof-elements { display: block; padding-bottom: 0px; }
	.prof-element-left,.prof-element-right { width: 100% }
	}
.prof-module .wp-block-media-text__content p { margin-top: 0px; text-align: justify; }
.prof-module .wp-block-media-text > .wp-block-media-text__content { padding-right: 0px; }
@media screen and (max-width: 768px) {
	.prof-module .wp-block-media-text > .wp-block-media-text__content { padding-left: 20px; }
}
@media screen and (max-width: 620px) {
	.prof-module .wp-block-media-text > .wp-block-media-text__content { margin-top: 20px; padding-left: 0px; }
}

.prof-body { background: #f2f2f2; border: none; border-radius: 0;
	padding-left: 4em; padding-right: 4em; padding-top: 4em; padding-bottom: 4em; }
@media screen and (max-width: 768px) {
	.prof-body { padding-left: 1em; padding-right: 1em; padding-top: 1em; padding-bottom: 1.5em; }
	}

.prof-intoro { font-weight: 500; border-bottom: 3px solid #003f88; padding-bottom:.5em; margin-bottom: 2em; 
	text-align: justify; }

.prof-name { font-size: 2.4em; font-weight: 900; margin-top: 0em; margin-bottom: 15px; }
.prof-name-kana { font-size: .9em; letter-spacing: .2em; text-align: left; margin-bottom: 1em; }
@media (max-width: 768px) {
.prof-name { font-size: 1.8em; text-align: center; margin-top: 10px; margin-bottom: 10px; }
.prof-name-kana { text-align: center; }
}

/* ----- プロフィールリスト -------------------- */

.profile-list { margin-top:2em; margin-bottom: 1em; }
.profile-item { display: grid; grid-template-columns: 8em 1fr; gap: 20px; margin-bottom: .25em; }
.profile-title { font-weight: 700; }
@media (max-width: 768px) {
	.profile-list { margin-top: 0; margin-bottom: 2em; }
	.profile-item { grid-template-columns: 1fr; gap: 0; margin-bottom: .5em; }
	.profile-title { font-size: 1em; }
	.profile-text { font-size: 1em; }
}

/* ---- 経歴のアコーディオン -------------------- */

.accordion__list_prof .qah2-2 {
	font-size: 1.2em; font-weight: 700; text-align: left; padding-left: .3em; padding-right: 2em; 
	margin-top: 0em !important; margin-bottom: .7em; color: #003f88; }
.accordion__list_prof .accordion__head { border-top: 2px solid #003f88; }
.accordion__list_prof .accordion__head::after { 
	font-family: "FontAwesome"; content: "\f107"; position: absolute; top: 16px; right: 10px; font-size: 1.4em!important;;
	color: #003f88; }
.accordion__list_prof .accordion__item.active .accordion__head::after { 
	font-family: "FontAwesome"; content: "\f106"; right: 10px; font-size: 1.4em; }
.accordion__list_prof .accordion__item-last { border-bottom: 2px solid #003f88;!important; }
.accordion__list_prof .accordion__body p { font-size: 1em; margin-top: 0; }
.accordion__list_prof .accordion__item.active .accordion__body { padding-left: .5em; }
.accordion__list_prof .accordion__body .card-container { display: flex; flex-wrap: wrap; justify-content: left; 
	padding-left: 0px; margin-bottom: 0px; }
.accordion__list_prof .accordion__body .card-container .card-img { width: 30%; }
.accordion__list_prof .accordion__body .card-container .card-text { width: 67%; margin-left: 1em; text-align: justify; }
.accordion__list_prof .accordion__body .card-container .card-img img { width: 100%; height: auto!important; 
	aspect-ratio: 1/1; }

@media (max-width: 768px) {
.accordion__list_prof { margin-top: 1em; margin-bottom: 2em; padding-top: 0; }
.accordion__list_prof .qah2-2 { font-size: 1em; font-weight: 700; color: #003f88;
	text-align: left; padding-left: .3em; padding-right: 2em; margin-top: 0em !important; margin-bottom: .6em; }
.accordion__list_prof .accordion__head::after { position: absolute; font-family: "FontAwesome"; content: "\f107"; 
	top: 11px; right: 10px; font-size: 1em!important;; color: #003f88; }
.accordion__list_prof .accordion__item.active .accordion__head::after { font-family: "FontAwesome"; content: "\f106"; 
	top: 11px; right: 10px; font-size: 1em!important;; color: #003f88; }
.accordion__list_prof .accordion__body { margin-bottom: 0 !important; }
.accordion__list_prof .accordion__body .card-container { display: block; }
.accordion__list_prof .accordion__body .card-container .card-img { width: 100%; }
.accordion__list_prof .accordion__body .card-container .card-img img { margin-bottom: 1em; }
.accordion__list_prof .accordion__body .card-container .card-text { width: 100%; margin-left: 0; text-align: justify; }
}

/* 画像の縦横比を元ファイルに合わせる */
.accordion__list_prof .image-area img { height: auto !important; min-height: 10px; border-radius: 5px; }

.profile-history-caption {
  margin-top: 5px !important;
  margin-bottom: 10px !important;
  font-size: .8em !important;
  line-height: 1.4em;
  width: 100%;
  word-break: break-all;
  overflow-wrap: break-word;
  white-space: normal;
  letter-spacing: .025em;
}

@media (max-width: 768px) {
  .accordion__list_prof .image-area img {
    height: auto;
    min-height: 0;
    aspect-ratio: 1/1;
    max-width: 50%;
    margin-left: auto;
    margin-right: auto;
  }
.profile-history-caption {
	text-align:center!important;
  }
}

/* ---- ミニギャラリー（一覧部分） -------------------- */

/* 1. マウス操作（クリック）時のアウトラインをリセット */
.image-thumbnail:focus,
.mushimegane:focus,
.close-button:focus {
    outline: none;
}

/* 2. キーボード操作（Tabキー）でフォーカスが当たった時だけ線を表示 */
.image-thumbnail:focus-visible,
.mushimegane:focus-visible,
.close-button:focus-visible {
    outline: 2px solid #003f88;
    outline-offset: 2px;
}

/* （補足）Safariの一部バージョン等への対策として
   ボタン要素には以下を明示的に指定しておくと確実です */
.close-button {
    -webkit-tap-highlight-color: transparent;
}

.photo-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1.2%;
    list-style: none;
    padding-left: 0;
    margin-top: 60px;
    margin-bottom: 0;
}

.photo-card-container {
    width: 24%;
    padding-bottom: 0.5%;
}

.photo-card-container img {
    width: 100%;
    border: 1px solid #aaa;
    object-fit: cover;
    aspect-ratio: 1/1;
    cursor: pointer;
}

.image-wrapper {
    position: relative;
}

/* 虫眼鏡 */
.mushimegane {
    position: absolute;
    bottom: 7px;
    right: 0;
    background: #003f88;
    width: 30px;
    height: 30px;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
}

.fa-solid.fa-magnifying-glass {
    font-size: .9em;
    color: #ffffff;
    background: #003f88;
    padding: 3px;
}

@media screen and (max-width: 768px) {
    .photo-container {
        margin-top: 30px;
    }
	/*
    .photo-card-container {
        width: 48%; /* スマホでは2列にするのが一般的です
    }
	*/
}

/* ---- ライトボックス（統合版） -------------------- */

/* ライトボックス外枠：背景領域 */
.lightbox {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0, 0, 0, 0.85);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.4s ease;
}

/* アクティブ時 */
.lightbox.active {
    opacity: 1;
    pointer-events: auto;
}

/* コンテンツ容器：この中のクリックはJSで伝播を止める想定 */
.lightbox-content {
    position: relative;
    display: block; /* 背景クリックの邪魔をしないようblockへ */
    max-width: 90%;
    z-index: 10000;
}

/* ポラロイド風の白枠：JSでmaxWidthがセットされる対象 */
.polaroid-frame {
    background: #ffffff;
    padding: 15px;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
    display: flex;
    flex-direction: column;
    align-items: center;
    width: fit-content;
    margin: 0 auto;
    transform: scale(0.85);
    transition: transform 0.4s ease;
}

.lightbox.active .polaroid-frame {
    transform: scale(1.0);
}

/* 拡大画像：アスペクト比を維持しつつ最大化 */
#lightbox-image {
    display: block;
    width: auto;
    max-width: 100%;
    max-height: 75vh;
    height: auto;
}

/* キャプション：JSでmaxWidthが強制同期される */
.lightbox-caption {
    margin-top: 10px;
    margin-bottom: 0;
    font-size: .9em;
    line-height: 1.4em;
    width: 100%;
    word-break: break-all;
    overflow-wrap: break-word;
    white-space: normal;
}

/* 閉じるボタン */
.close-button {
    display: none; /* 初期非表示 */
    position: absolute;
	top: calc(100% + 10px);
	left: calc(50% - 20px);
    font-size: 32px;
    color: white;
    background: #003f88;
    width: 40px;
    height: 40px;
    line-height: 36px;
    text-align: center;
    cursor: pointer;
    user-select: none;
    padding: 0;
}
@media screen and (max-width: 768px) {
.close-button { left: 45%; }
}

.lightbox.active .close-button {
    display: block;
}