/*
Theme Name: RyosukeSugimotoYaman
Theme URI: https://example.com
Author: RyosukeSugimoto
Author URI: https://example.com
Description: シンプルなポートフォリオ用のWordPressテーマ
Version: 1.0
License: GPLv2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: yourtheme
*/

* {
  box-sizing: border-box;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* フォント読み込み最適化は外部で行われているため削除 */

html, body {
  margin: 0 !important;
  padding: 0 !important;
  width: 100% !important;
  height: 100% !important;
}

body {
  font-family: "DotGothic16", "Hiragino Kaku Gothic ProN", "Hiragino Sans", "BIZ UDPGothic", "Meiryo", "Yu Gothic Medium", "Yu Gothic", sans-serif;
  letter-spacing: 0.1em;
  margin-top: 48px;
  background-color: #fff;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  font-display: swap;
  overflow-wrap: anywhere; /* 収まらない場合に折り返す */
  word-break: normal; /* 単語の分割はデフォルトに依存 */
  line-break: strict; /* 禁則処理を厳格に適用 */
  font-feature-settings: "kern" 1;
  -webkit-text-size-adjust: 100%; /* Safari文字サイズ調整防止 */
  -ms-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

.wp-singular main{
  padding: 95px 64px !important;
}

.wp-singular main h2{
  margin-top: 45px;
  font-size: clamp(1rem, 3vw, 1.2rem);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  word-break: keep-all;
  line-height: 2.4;
}

@media(max-width: 940px){
  .wp-singular{
    padding: 0px 10% !important;
  }

  .wp-singular main{
    padding: 120px 0% 95px !important;
  }
  
  .wp-singular main h2{
    margin-top: 4px;
    font-size: clamp(0.65rem, 2.5vw, 1rem);
    max-width: 100%;
  }
}

@media(max-width: 640px){
  .wp-singular main{
    padding: 110px 0% 95px !important;
  }
}


h2{
  font-weight: normal;
}

@media (max-width: 640px) {
  body {
    margin-top: 24px;
  }
}

main p{
  max-width: 1080px;
  margin: 24px auto;
}
  
/* 記事アイテム（正方形） */
.article-item {
  position: relative;
  overflow: hidden;
  width: 100%;
  max-width: 100%; /* 各記事の最大幅を300pxに */
  margin: 0 auto; /* 各アイテムを中央配置 */
  aspect-ratio: 1 / 1; /* 正方形 */
  border: 0.5px solid rgba(0, 0, 0, 1); 
}

/* 画像ラッパー */
.thumb-wrapper {
  position: relative;
  width: 100%;
  height: 100%;
}

/* サムネイル画像 */
.thumb-wrapper img {
  width: 100%;
  height: 100%;
  object-fit: cover; /* 画像のアスペクト比を維持しつつ枠にフィット */
  display: block;
}

/* ホバー時のタイトル表示 */
.overlay {
  position: absolute;
  inset: 0;
  display: flex;
  justify-content: flex-start; /* ← 左寄せ */
  align-items: flex-end;       /* ← 下寄せ */
  padding: 0rem 0rem;        /* ← 任意。余白調整 */
  opacity: 0;
  transition: opacity 0s ease-in-out;
  pointer-events: none;
}

.thumb-wrapper:hover .overlay {
  opacity: 1;
}

/* タイトルのスタイル */
.overlay h2 {
  position: relative;
  z-index: 1;
  margin: 0;
  font-size: 0.58rem;
  padding: 0.2rem 0.4rem;
  color: black;
  pointer-events: auto;
  bottom: -1px;

  outline: 0.5px solid rgba(0, 0, 0, 1); 
}

.overlay h2::before {
  content: '';
  position: absolute;
  top: 0px;
  left: -1px;
  right: 0px;
  bottom: 0px;
  background: var(--overlay-bg, rgba(170, 255, 170, 1));
  z-index: -1;
}

@media (max-width: 940px) {
  .overlay {
    opacity: 1; /* 常に表示 */
  }
  
  .thumb-wrapper:hover .overlay {
    opacity: 1; /* ホバー時も同じ */
  }
}
    

/* ヘッダー */
header {
  position: fixed;
  display: flex;
  justify-content: space-between; /* タイトルとナビを両端に配置 */
  align-items: center; /* 垂直方向の中央揃え */
  padding: 0px 40px;
  margin-bottom: 20px;
  background:none;
  z-index: 1001;
}

#site-header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 88px;
  background: white;
  border-bottom: 1px solid rgba(0, 0, 0, 0.1);
  /* box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1); お好みで影も */
}

@media (max-width: 940px) {
  header {
    margin-bottom: 20px;
    flex-direction: column; /* ← これで縦並びに！ */
    height: 115px;
  }

  #site-header {
    height: 112px;
    padding-top: 24px;
    padding-bottom: 8px;
  }
}

@media (max-width: 640px) {
  header {
    margin-bottom: 20px;
    flex-direction: column; /* ← これで縦並びに！ */
    height: 115px;
    padding: 0px 16px;
  }
}




/* サイトタイトルのスタイル */

header h1 {
  display: inline-block;  /* 中身のサイズに合わせる */
  margin: 0;
  padding: 0;
  line-height: 1;         /* 余白防止に */
}

h1 {
  margin: 0;
  font-size: 0; /* ←ここ！ */
  display: inline-block;
  color: black;
}

header h1 a{
  color: black;
  text-decoration: none;
  margin: 0;
}

header h1 a img{
  display: block;
  width: auto;
  height: 30px;
}

@media (max-width: 640px) {
  header h1 a img{
    width: 100%;
  }
}

/* フッター */
.home footer {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 150px;
  background: none;
  padding: 0px 0px 16px 52px;
  z-index: 100;
}

.wp-singular footer{
  width: 100%;
  height: 40px;
  background: none;
  z-index: 100;
}

footer p{
  color: black;
  font-size: 8px !important;
  letter-spacing: 0.1rem;
}

.wp-singular footer p{
  text-align: center !important;
}

.home footer p{
  visibility: hidden;
}

@media (max-width: 640px) {
  .home footer{
    visibility: hidden;
  }
}




/* ナビゲーションメニューのデザイン */
nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 2rem; /* 任意で間隔を追加 */
}

.nav-container {
  display: flex;
  background: none; /* 背景色 */
  padding: 10px;
  text-align: center;
}

@media (max-width: 640px) {
  .nav-container {
    padding: 0px;
}
}

.nav-menu {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    gap: clamp(24px, 4vw, 50px); /* メニューアイテムの間隔を画面幅に応じて調整 */
    justify-content: right; /* メニューを右揃え */
    white-space: nowrap; /* 改行を防ぐ */
}

.nav-menu li {
    display: inline-block;
    white-space: nowrap; /* li内で改行しない */
    flex-shrink: 0; /* アイテムの縮小を防ぐ */
}

.nav-menu a {
    text-decoration: none;
    color: rgba(0, 0, 0, 1);
    font-size: 0.85rem; /* フォントサイズを画面幅に応じて調整 */
    transition: color 0s;
    white-space: nowrap; /* テキストの改行を防ぐ */
}

.nav-menu a:hover {
  color: rgba(0, 0, 0, 0.5);
}

@media (max-width: 640px) {
  nav{
    gap: clamp(16px, 3vw, 24px); /* メニューアイテムの間隔 */
  }

  .nav-menu {
    gap: clamp(20px, 3.5vw, 40px); /* メニューアイテムの間隔 */
  } 

  .nav-menu a {
    font-size: 0.8rem;; /* より小さい画面用の調整 */
  } 
}

@media (max-width: 480px) {
  .nav-menu {
    gap: clamp(16px, 2.5vw, 24px); /* より小さい画面での間隔調整 */
  }
  

}

nav .external-links {
  display: flex;
  gap: 1rem;
  align-items: center;
}

nav .external-links a {
  display: block;
  padding-top: 9px;
}

.external-links svg {
  display: block;
  width: 24px;
  height: 24px;
  aspect-ratio: 1 / 1;
  fill: currentColor;
}

/* filterとarticleの幅修正 */

.grid-wrapper {
  padding: 120px clamp(1rem, 6vw, 3rem);
  max-width: 1280px;
  margin: 0 auto;
}


@media (max-width: 940px) {
  .grid-wrapper {
    padding: 145px 0;
  }
}

@media (max-width: 640px) {
  .grid-wrapper {
    margin: 80px auto 0;
    padding: 120px clamp(1rem, 6vw, 3rem);
  }
}

@media (max-width: 418px) {
  .grid-wrapper {
    padding: 108px clamp(1rem, 6vw, 3rem);
  }
}




/* フィルター周り */

.filter-buttons {
  position: fixed;
  top: 88px; /* ヘッダーの高さに合わせて調整 */
  left: 0;
  width: clamp(100px, 20vw, 150px);
  flex-direction: column;
  align-items: stretch; /* ボタン幅を揃える */
  background-color: #fff;
  padding: 80px 0px 0px 30px;
  gap: 10px;
  z-index: 1000;

}

@media (max-width: 940px) {
  .filter-buttons {
    position: absolute;
    display: flex;
    flex-direction: row;
    top: 114px;
    gap: clamp(10px, 0.9vw, 16px);
    padding: 8px 0;
    left: 0;
    width: 100%;
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
    overflow-x: auto;
    white-space: nowrap;
    scrollbar-width: none;
    -ms-overflow-style: none;
    justify-content: center;
    align-items: center;
    background-color: #fff;
    z-index: 1000;
  }
  
  .filter-buttons::-webkit-scrollbar {
    display: none;
  }
}

/* @media (max-width: 768px) {
  .filter-buttons {
    top: 114px;
    gap: clamp(3px, 0.9vw, 10px);
    padding: 8px 0;
  }
} */

@media (max-width: 640px) {
  .filter-buttons {
    gap: clamp(10px, 0.8vw, 12px);
/*     padding: 6px 0; */
  }
}

.filter-buttons button {
  padding: 0px 12px 12px;
  background:none;
  color: rgba(0, 0, 0, 1);
  font-size: 0.8rem;
  font-family: "DotGothic16", "Hiragino Kaku Gothic ProN", "Hiragino Sans", "BIZ UDPGothic", "Meiryo", "Yu Gothic Medium", "Yu Gothic", sans-serif;
  letter-spacing: 0.1rem;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  text-align: left;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  word-break: keep-all;
  overflow-wrap: break-word;
}

@media (max-width: 940px) {
  .filter-buttons button {
    padding: 8px clamp(6px, 1.5vw, 16px) 12px;
    width: auto;
    min-width: fit-content;
    white-space: nowrap;
    flex-shrink: 0;
    text-align: center;
  }
}

@media (max-width: 768px) {
  .filter-buttons button {
    padding: 8px clamp(6px, 1.5vw, 16px) 12px;
    width: auto;
    min-width: fit-content;
    font-size: clamp(0.7rem, 2vw, 0.8rem);
    letter-spacing: clamp(0.05rem, 0.5vw, 0.1rem);
    white-space: nowrap;
    flex-shrink: 0;
  }
}

@media (max-width: 640px) {
  .filter-buttons button {
    padding: 6px clamp(4px, 1.2vw, 12px) 10px;
    width: auto;
    min-width: fit-content;
    font-size: clamp(0.65rem, 1.8vw, 0.75rem);
    letter-spacing: clamp(0.03rem, 0.3vw, 0.08rem);
    white-space: nowrap;
    flex-shrink: 0;
  }
}

@media (max-width: 480px) {
  .filter-buttons button {
    padding: 4px clamp(3px, 1vw, 8px) 8px;
    font-size: clamp(0.6rem, 1.5vw, 0.7rem);
    letter-spacing: clamp(0.02rem, 0.2vw, 0.06rem);
  }
}

.filter-buttons button:hover {
/*     background: yellow; */
    color: rgba(0, 0, 0, 0.5);  
}

/* 記事グリッドレイアウト */
/* グリッドレイアウト */
.article-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(140px, 1fr));
  gap: clamp(40px, 0.8vw, 64px); /* 最小16px、最大32pxで画面幅に応じて変動 */
  width: 100%;
  padding: 0 clamp(0px, 1.2vw, 16px) 0 clamp(132px, 10vw, 162px);
}

@media (max-width: 1024px) {

  .article-grid {
    padding: 0 clamp(0px, 0.8vw, 12px) 0 clamp(132px, 10vw, 162px);
  }
}

@media (max-width: 940px) {

  .article-grid {
    grid-template-columns: repeat(2, minmax(140px, 1fr));
    gap:  clamp(28px, 4vw, 36px);
    padding: 64px 32px;
  }
}

@media (max-width: 640px) {
  .article-grid {
    grid-template-columns: repeat(1, 1fr);
    padding: 0 ;
  }
}

/* ロードトリガー */
#load-trigger {
  height: 1px;
}

.single-post{
  padding: 0 5%;
}

.single-post main article {
  max-width: 640px;
  margin: 0 auto;
}

@media (max-width: 940px) {
  .single-post main article {
  padding: 0px 0;
  }
}

.single-post article p {
  text-align: center !important;
  letter-spacing: 0.1rem;
  font-size: 0.9rem;
  line-height: 1.6rem;
  margin: 40px auto;
  color: rgba(0, 0, 0, 1);
  font-weight: normal;
}

@media (max-width: 940px) {
  .single-post article p{
    font-size: 0.8rem;
    line-height: 1.5rem;
    padding: 0 16px;
  }
}
 

.single-post .wp-post-image {
  display: none;
}

/* ✅ 画像レイアウト用 CSS（.image-group.count-N） */
/* ===== 共通 ===== */
.image-group, .square-gallery {
  display: grid;
  gap: 8px; /* 画像間のスペース */
}

/* Safari固有の修正 - square-galleryコンテナ */
.square-gallery {
  max-width: 100%;
  overflow: hidden;
  box-sizing: border-box;
  contain: layout style;
}

/* ===== count-1 : 幅いっぱいのスクエア ===== */
.count-1 {
  grid-template-columns: 1fr;
}
.count-1 figure, .count-1 a {
  aspect-ratio: 1 / 1;
  width: 100%;
}

/* ===== count-2 : 幅を2分割するスクエア2枚 ===== */
.count-2 {
  grid-template-columns: 1fr 1fr;
}
.count-2 figure, .count-2 a {
  aspect-ratio: 1 / 1;
  width: 100%;
}

/* ===== count-3 : 左にA、右にB1+B2縦並び ===== */
.count-3 {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 8px;
}

/* 左側のA：JavaScriptで高さを動的調整 */
.count-3 .main-image {
  aspect-ratio: 1 / 1.02;
  width: 100%;
}

/* 右側のB (2つ縦並び) */
.count-3 .right-two {
  display: grid;
  grid-template-rows: 1fr 1fr;
  gap: 8px;
}
.count-3 .right-two figure, .count-3 .right-two a {
  aspect-ratio: 1 / 1;
  width: 100%;
}

/* レスポンシブ対応：画面幅が740px以下 */
@media (max-width: 740px) {
  .count-3 .main-image {
    aspect-ratio: 1 / 1.025;
  }
}

/* レスポンシブ対応：画面幅が600px以下 */
@media (max-width: 600px) {
  .count-3 .main-image {
    aspect-ratio: 1 / 1.035;
  }
}

/* レスポンシブ対応：画面幅が500px以下 */
@media (max-width: 500px) {
  .count-3 .main-image {
    aspect-ratio: 1 / 1.045;
  }
}

/* レスポンシブ対応：画面幅が400px以下 */
@media (max-width: 400px) {
  .count-3 .main-image {
    aspect-ratio: 1 / 1.055;
  }
}

/* ===== count-4 : 先頭は幅いっぱい、下に残り ===== */
.count-4 {
  display: grid;
  grid-template-rows: auto auto;
  gap: 8px;
}

/* 最初の1枚（先頭） */
.count-4 .main-image {
  aspect-ratio: 1 / 1;
  width: 100%;
}

/* 2枚目以降のスクロールエリア */
.count-4 .scroll-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr); /* ← 最大5列に固定 */
  gap: 8px;
}

.count-4 .scroll-row figure,
.count-4 .scroll-row a {
  aspect-ratio: 1 / 1;
  margin: 0;
}

@media (max-width: 768px) {
  .count-4 .scroll-row {
    grid-template-columns: repeat(3, 1fr); /* スマホなら3列に */
  }
}


/* ===== count-5 : 先頭は幅いっぱい、下に残り ===== */
.count-5 {
  display: grid;
  grid-template-rows: auto auto;
  gap: 8px;
}

/* 最初の1枚（先頭） */
.count-5 .main-image {
  aspect-ratio: 1 / 1;
  width: 100%;
}

/* 2枚目以降のスクロールエリア */
.count-5 .scroll-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr); /* ← 最大5列に固定 */
  gap: 8px;
}

.count-5 .scroll-row figure,
.count-5 .scroll-row a {
  aspect-ratio: 1 / 1;
  margin: 0;
}

@media (max-width: 768px) {
  .count-5 .scroll-row {
    grid-template-columns: repeat(3, 1fr); /* スマホなら3列に */
  }
}

/* ===== count-6plus : 先頭は幅いっぱい、下に残り ===== */
.count-6plus {
  display: grid;
  grid-template-rows: auto auto;
  gap: 8px;
}

/* 最初の1枚（先頭） */
.count-6plus .main-image {
  aspect-ratio: 1 / 1;
  width: 100%;
}

/* 2枚目以降のスクロールエリア */
.count-6plus .scroll-row {
  display: grid;
  grid-template-columns: repeat(5, 1fr); /* ← 最大5列に固定 */
  gap: 8px;
}

.count-6plus .scroll-row figure,
.count-6plus .scroll-row a {
  aspect-ratio: 1 / 1;
  margin: 0;
}

@media (max-width: 768px) {
  .count-6plus .scroll-row {
    grid-template-columns: repeat(3, 1fr); /* スマホなら3列に */
  }
}



.image-group a,
.square-gallery a,
.justified-gallery a {
  width: 100%;
  height: 100%;
  object-fit: cover; /* ★これ超大事 */
  display: block;
}

.image-group img,
.square-gallery img,
.justified-gallery img {
  width: 100%;
  height: 100%;
  object-fit: cover; /* ★これ超大事 */
  display: block;
}

/* Safari固有の修正 - square-galleryのみ */
.square-gallery img {
  max-width: 100%;
  max-height: 100%;
  -webkit-transform: translateZ(0);
  transform: translateZ(0);
  image-rendering: -webkit-optimize-contrast;
  image-rendering: crisp-edges;
}

.square-gallery figure
{
  margin: 0;
  border: 0.5px solid rgba(0, 0, 0, 1);
  overflow: hidden;
  position: relative;
  max-width: 100%;
  max-height: 100%;
  box-sizing: border-box;
}

.justified-gallery a
{
  margin: 0;
  border: 0.5px solid rgba(0, 0, 0, 1);
}

/* 動画よう */
.wp-block-embed__wrapper {
  aspect-ratio: 16 / 9;
  width: 100%;
  max-width: 640px;
  margin: 24px auto;
  border: 0.5px solid rgba(0, 0, 0, 1);
}

.wp-block-embed__wrapper iframe {
  width: 100%;
  height: 100%;
  border: none;
  display: block;
}

/* video-embed figureラッパーのサイズ調整 */
.video-embed {
  margin: 24px auto !important;
  max-width: 640px;
  width: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  border: 0.5px solid rgba(0, 0, 0, 1);
}

.video-embed .wp-block-embed__wrapper {
  margin: 0;
  border: none;
}

/* justified-gallery用 */
/* JUSTIFIED GALLERY用リセット */
.justified-gallery {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); /* 横並び＋レスポンシブ */
  gap: 8px; /* 画像間スペース */
}

.justified-gallery a {
  display: block;
  width: 100%;
/*   aspect-ratio: 16 / 9;  */
  overflow: hidden;
/*   border-radius: 8px; /* 角丸にしたいなら */
}

.justified-gallery img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}


/* simpleLightBox周り */
.sl-wrapper {
  position: fixed !important;
  top: 0 !important;
  left: 0 !important;
  right: 0 !important;
  bottom: 0 !important;
  width: 100vw !important;
  height: 100vh !important;
  margin: 0 !important;
  padding: 0 !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  box-sizing: border-box !important;
  transform: none !important;
  z-index: 10000 !important;

  background-color: rgba(255, 0, 0, 0.05) !important;
}


.simple-lightbox .sl-image img {
  pointer-events: none;
  user-select: none;
  transform: none !important;  /* ← これを入れると内部scaleをキャンセル */
  will-change: auto !important;
  border: 0.5px solid rgba(0, 0, 0, 0.5) !important;

  max-width: 100%;
  max-height: 100%;
  width: auto;
  height: auto;
  object-fit: contain; /* ← 正方形の中に納める */
  aspect-ratio: 1 / 1;  /* ← 常に正方形枠を保つ */
  background-color: #fff; /* 黒背景（任意） */
  display: block;
  margin: 0 auto;
}

/* Lightboxの画像表示エリアも正方形にする */
.sl-image {
  margin: 0 !important;
  transform: none !important;
  left: 0 !important;
  right: 0 !important;
  top: 0 !important;
  bottom: 0 !important;
  position: static !important;

  background-color: rgba(0, 255, 255, 0.1) !important;
}


/* 左矢印を画像の左外に（または内に）少し寄せる */
.simple-lightbox .sl-prev,
.simple-lightbox .sl-next {
  background: none;
  border: none;
  width: 48px;
  height: 48px;
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
  text-indent: -9999px; /* ← 中の ←→ を隠す */
  overflow: hidden;
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 1000;
  cursor: pointer;
}

/* 左矢印 */
.simple-lightbox .sl-prev {
  left: clamp(40px, 4vw, 80px);
}

/* 右矢印 */
.simple-lightbox .sl-next {
  right: clamp(40px, 4vw, 80px);
}

/* 記事ないの埋め込みスタイル */
.wp-block-embed {
  border: 0.5px solid rgb(0, 0, 0, 1);
}


/* シングルpwーじ */
.page main{
  max-width: 720px;
  margin: 0 auto;
  padding: 40px 5%;
}

/* ===== 共通 ===== */
.page figure {
  display: grid;
  gap: 8px; /* 画像間のスペース */
  border: 0.5px solid rgb(0, 0, 0, 1);
}

/* ===== page ===== */
.page figure img {
  aspect-ratio: 1 / 1;
  width: 100%;
  object-fit: cover;
}

/* アバウトページ */
.page-id-48 figure {
  display: flex !important;
}

.page-id-48 figure img {
  aspect-ratio: auto !important;
}

.page-id-48 .size-full{
  border: none !important;
}

.page-id-48 h2 {
  background-color:rgba(170, 255, 170, 1); /* お好みの色に変更可能 */
  padding: 0.1em 1.1em;       /* 内側の余白：上下・左右 */
  display: inline-block;      /* 背景色やマージンを効かせるため */ 
  border: 0.5px solid rgba(0, 0, 0, 1);
  font-size: 0.9rem !important; /* 本文と同じサイズ */
  margin-bottom: 40px !important;
}

@media (max-width: 940px) {
  .page-id-48 h2 {
    font-size: 0.8rem !important; /* モバイル時も本文と同じサイズ */
  }
}


/* コンタクトページ */
.page-id-50 figure {
  display: flex !important;
}

.page-id-50 figure img {
  aspect-ratio: auto !important;
}

.page-id-50 .wp-block-image{
  border: none !important;
}

.page p{
  text-align: justify !important;
  letter-spacing: 0.1rem;
  font-size: 0.9rem;
  line-height: 1.6rem;
  margin: 0px auto 40px;
  color: rgba(0, 0, 0, 1);
  font-weight: normal;
}

@media (max-width: 940px) {
  .page p{
    font-size: 0.8rem;
    line-height: 1.5rem;
  }
}

.page h2{
  text-align: left !important;
  letter-spacing: 0.1rem;
  font-size: 1rem;
  line-height: 2.2rem;
  margin: 40px auto 0px;
  color: rgba(0, 0, 0, 1);
  font-weight: normal;
}


/* instagram */
.instagram-media{
  margin: 24px auto 24px !important;
  max-width: 640px !important;
  width: 100% !important;
}


/* 文字ふわ */



.floating-char {
  display: inline-block;
/*   transition: transform 0.1s linear; */
}


  
