/* Cocoon の CSS（cocoon.css）に足す修正だけを書く。cocoon.css 本体は変えない（手順書 2-5）。 */

/* スマホ用メニューの開閉ボタン（元は label。キーボードで操作できるよう button にした）を、元の見た目にそろえる */
.mobile-menu-buttons button.menu-button-in,
.menu-content button.menu-close-button {
  appearance: none;
  -webkit-appearance: none;
  background: none;
  border: 0;
  margin: 0;
  padding: 0;
  font: inherit;
  color: inherit;
  cursor: pointer;
}
.menu-content button.menu-close-button {
  display: block;
  width: 100%;
  font-size: 2em;
}
.mobile-menu-buttons button.menu-button-in:focus-visible,
.menu-content button.menu-close-button:focus-visible {
  outline: 2px solid currentColor;
  outline-offset: 2px;
}

/* シェア・フォローのボタン（WordPress の AddToAny の代わり。手順書 4-4-6）。
   AddToAny のスクリプトが描いていたアイコンを、ここで描く。共有は X・Facebook・リンクのコピーの3つだけ */
.a2a_kit{display:flex;flex-wrap:wrap;gap:8px;align-items:center}
.a2a_kit [class^="a2a_button_"]{position:relative;display:inline-block;width:48px;height:48px;margin:0;padding:0;border:0;border-radius:4px;background:#888 center/58% no-repeat;cursor:pointer;vertical-align:middle;transition:opacity .2s}
/* Cocoon の CSS（AddToAny 用）が中身の空のリンクを消すので、打ち消す */
.a2a_kit a[class^="a2a_button_"]:empty{display:inline-block}
.a2a_kit [class^="a2a_button_"]:hover{opacity:.75}
.a2a_kit [class^="a2a_button_"]:focus-visible{outline:3px solid #2b6cb0;outline-offset:2px}
.a2a_kit .a2a_button_x,.a2a_kit .a2a_button_x:hover,.a2a_kit .a2a_button_x:focus{background-color:#000!important;background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='white' d='M18.9 1.15h3.68l-8.04 9.19L24 22.85h-7.41l-5.8-7.58-6.64 7.58H.47l8.6-9.83L0 1.15h7.59l5.24 6.93zm-1.29 19.5h2.04L6.49 3.24H4.3z'/%3E%3C/svg%3E")!important;background-position:center!important;background-size:58%!important;background-repeat:no-repeat!important}
.a2a_kit .a2a_button_facebook,.a2a_kit .a2a_button_facebook:hover,.a2a_kit .a2a_button_facebook:focus{background-color:#0866ff!important;background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='white' d='M14 8h3V4h-3c-2.76 0-5 2.24-5 5v2H7v4h2v9h4v-9h3l1-4h-4V9c0-.55.45-1 1-1z'/%3E%3C/svg%3E")!important;background-position:center!important;background-size:58%!important;background-repeat:no-repeat!important}
.a2a_kit .a2a_button_copy_link,.a2a_kit .a2a_button_copy_link:hover,.a2a_kit .a2a_button_copy_link:focus{background-color:#24be85!important;background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cg fill='none' stroke='white' stroke-width='2.2' stroke-linecap='round'%3E%3Cpath d='M10 14a4 4 0 0 0 5.66 0l3-3a4 4 0 0 0-5.66-5.66l-1 1'/%3E%3Cpath d='M14 10a4 4 0 0 0-5.66 0l-3 3a4 4 0 0 0 5.66 5.66l1-1'/%3E%3C/g%3E%3C/svg%3E")!important;background-position:center!important;background-size:58%!important;background-repeat:no-repeat!important}
.a2a_kit .a2a_button_instagram,.a2a_kit .a2a_button_instagram:hover,.a2a_kit .a2a_button_instagram:focus{background-color:#e4405f!important;background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cg fill='none' stroke='white' stroke-width='2'%3E%3Crect x='3' y='3' width='18' height='18' rx='5'/%3E%3Ccircle cx='12' cy='12' r='4'/%3E%3C/g%3E%3Ccircle cx='17.5' cy='6.5' r='1.2' fill='white'/%3E%3C/svg%3E")!important;background-position:center!important;background-size:58%!important;background-repeat:no-repeat!important}
/* 共有は3つだけにする（固定ページの書き出しに残っている Bluesky・Threads・LINE は出さない） */
.a2a_kit:not(.a2a_follow) a.a2a_button_bluesky,.a2a_kit:not(.a2a_follow) a.a2a_button_threads,.a2a_kit:not(.a2a_follow) a.a2a_button_line{display:none}
/* 「コピーしました」の表示 */
.a2a_kit .mpt-copied{position:absolute;left:50%;bottom:calc(100% + 6px);transform:translateX(-50%);padding:2px 8px;border-radius:4px;background:#333;color:#fff;font-size:12px;line-height:1.6;white-space:nowrap;pointer-events:none}

/* ギャラリーの写真の間隔（WordPress が記事ごとに head に出していた .wp-block-gallery-1 の指定を、全部のギャラリーに当てる）。
   これが無いと幅の計算（16px）と実際の間隔（24px）がずれて、写真が1枚ずつ縦に並んでしまう */
.wp-block-gallery.has-nested-images{--wp--style--unstable-gallery-gap:var(--wp--style--gallery-gap-default,var(--gallery-block--gutter-size,var(--wp--style--block-gap,0.5em)))}
