@charset "UTF-8";

/*!
Theme Name: Cocoon Child
Description: Cocoon専用の子テーマ
Theme URI: https://wp-cocoon.com/
Author: わいひら
Author URI: https://nelog.jp/
Template:   cocoon-master
Version:    1.1.3
*/

/************************************
** 子テーマ用のスタイルを書く
************************************/
/*必要ならばここにコードを書く*/

/************************************
** レスポンシブデザイン用のメディアクエリ
************************************/
/*1023px以下*/
@media screen and (max-width: 1023px){
  /*必要ならばここにコードを書く*/
}

/*834px以下*/
@media screen and (max-width: 834px){
  /*必要ならばここにコードを書く*/
}

/*480px以下*/
@media screen and (max-width: 480px){
  /*必要ならばここにコードを書く*/
}

html {
  scroll-behavior: smooth;
}

#container {
  background-color: #fff;
}

#header {
  /* margin-top: 20px; */
}

#header-in {
  display: none;
}

#content {
  /* margin-top: 10px !important; */
}

#footer {
  /* margin-bottom: 20px; */
}

/* ホーム以外の各ページヘッダ ---------------------------------------------------------------------------------------------------------------*/
body.blog .header,
body.single .header,
body.archive .header {
  background-image: url("https://www.enryouiku-saitamaurawa.jp/wp-content/uploads/2026/01/ヘッダーブログ.png");
  aspect-ratio: 1072 / 357;
  background-size: cover;
  background-position: center;
}

/* 固定ページ：staff */
body.page-id-171 .header {
  background-image: url("https://www.enryouiku-saitamaurawa.jp/wp-content/uploads/2026/01/ヘッダースタッフ紹介.png");
  aspect-ratio: 1072 / 357;
}

/* 固定ページ：studio */
body.page-id-1458 .header {
  background-image: url("https://www.enryouiku-saitamaurawa.jp/wp-content/uploads/2026/01/ヘッダースタジオ情報.png");
  aspect-ratio: 1072 / 357;
}

/* 固定ページ：field */
body.page-id-1694 .header {
  background-image: url("https://www.enryouiku-saitamaurawa.jp/wp-content/uploads/2026/01/ヘッダーフィールド.png");
  aspect-ratio: 1072 / 357;
}


#navi {
  background-color: #f8f9fa;
  border-bottom: 1px solid #ddd;
}

#navi .far:before,
#navi .fas:before {
  font-size: 1.3em;
  opacity: 0.9;
}

#navi i {
  vertical-align: middle;
}

/* 記事の下 */
.cat-link,
.cat-label {
  background-color: #1fa8a4;
}

.tag-link {
  background-color: #f18e28;
}


/* サイドバー (line・インスタグラム等のデザイン)------------------------------------------------------------------------------ */
/*
.sb_info {
  font-size: 15px;
  font-family: '新丸ゴ R';
  background-color: #fefbe9;
  padding: 10px 20px;
  box-shadow: 0 0 3px rgba(0, 0, 0, 0.4);
  max-width: 320px;
  margin-left: auto;
  margin-right: auto;
}

.sb_info .sub {
  color: #ea618b;
}

.sb_info .name {
  color: #1fa8a4;
  font-size: 20px;
  font-family: 'じゅん 501';
}

.sb_info .addr {
  line-height: 1.5em;
}

.sb_info .line {
  display: flex;
  align-items: stretch;
  margin-top: 10px;
  margin-bottom: 10px;
}

.sb_info .line .taiken {
  display: flex;
  align-items: center;
  background-color: #ea618b;
  color: #fff;
  padding: 0 15px;
  font-family: 'じゅん 501';
  font-size: 20px;
}

.sb_info .line .qrcode {
  display: flex;
  align-items: center;
  width: 100px;
  margin-left: 15px;
}

.sb_info .line .qrcode img {
  width: 100%;
}

.sb_info_header {
  display: inline-block;
  width: 2.8em
}

.studio_info_header {
  display: inline-block;
  width: 2.8em
}

#sidebar .toc-widget-box {
  font-family: "新丸ゴ R";
}

#sidebar .toc-widget-box .toc-title {
  font-family: "じゅん 501";
}

*/

/* サイドバーウェジェットの調整 */

#sidebar h3 {
  background: none;
  padding: 0;
  margin-bottom: 0;
}

#sidebar .widget_recent_entries .widget-sidebar-title,
#footer-in .widget_recent_entries .widget-footer-mobile-title {
  color: #ea618b;
}

body.category #archive-title,
#sidebar .widget_categories .widget-sidebar-title,
#footer-in .widget_categories .widget-footer-mobile-title {
  color: #1fa8a4;
}

body.date #archive-title,
#sidebar .widget_archive .widget-sidebar-title,
#footer-in .widget_archive .widget-footer-mobile-title {
  color: #4a9fd8;
}

body.tag #archive-title,
#sidebar .widget_tag_cloud .widget-sidebar-title,
#footer-in .widget_tag_cloud .widget-footer-mobile-title {
  color: #f18e28;
}

#sidebar .widget_categories .widget-sidebar-title:before,
#footer-in .widget_categories .widget-footer-mobile-title:before {
  font-family: "Font Awesome 5 Free";
  content: "\f07c";
  padding-right: 0.3em;
}

#sidebar .widget_archive .widget-sidebar-title:before,
#footer-in .widget_archive .widget-footer-mobile-title:before {
  font-family: "Font Awesome 5 Free";
  content: "\f073";
  padding-right: 0.3em;
}

#sidebar .widget_tag_cloud .widget-sidebar-title:before,
#footer-in .widget_tag_cloud .widget-footer-mobile-title:before {
  font-family: "Font Awesome 5 Free";
  content: "\f02c";
  padding-right: 0.3em;
}

#sidebar li a {
  font-size: 0.96em;
  line-height: 1.3em;
  padding: 5px 0;
}

#footer-in .footer-mobile li a {
  font-size: 1em;
  line-height: 1.3em;
  padding: 5px 0;
}

#sidebar .widget_categories ul,
#sidebar .widget_archive ul,
#footer-in .widget_categories ul,
#footer-in .widget_archive ul {
  margin-left: 1.5em;
  list-style-type: disc;
}

/* サイドバーの画像を正方形にする */

.widget-entry-cards figure {
  width: 85px;
}

.widget-entry-card-content {
  margin-left: 100px;
}

/* 新着記事の日付を表示 */
.new-list-pc .new-entry-card-date {
  display: block;
  color: #999;
}

.new-list-pc .new-entry-card-update-date {
  display: none;
}

.widget-entry-cards.card-large-image .e-card {
  box-shadow: 0 0 3px rgba(0, 0, 0, 0.4);
}

.widget-entry-cards.card-large-image .card-content {
  padding-left: 0.5em;
  padding-right: 0.4em;
}

.is-list-horizontal .card-snippet {
  height: 3.9em;
}

/************************************
** レスポンシブデザイン用のメディアクエリ
************************************/
/*1023px以下*/
@media screen and (max-width: 1023px) {
  /*必要ならばここにコードを書く*/

  #sidebar {
    margin-top: 0;
    margin-bottom: 0;
    padding-top: 0;
    padding-bottom: 0;
  }

  #footer {
    margin-top: 0;
  }
}

/*834px以下*/
@media screen and (max-width: 834px) {
  /*必要ならばここにコードを書く*/
}

/*480px以下*/
@media screen and (max-width: 480px) {
  /*必要ならばここにコードを書く*/

  .sb_info {
    max-width: unset;
  }

}
#navi {
  border-bottom: none;
}
/* 固定ページのタイトル余白を完全に消す */
body.page .entry-title {
  display: none;
}


.sns-links {
  display: flex;
  gap: 16px;
  justify-content: center;
  margin: 24px 0;
}

.sns-btn {
  padding: 12px 20px;
  border-radius: 999px;
  font-weight: 600;
  text-decoration: none;
  color: #fff;
}

.sns-btn.line {
  background: #06c755;
}

.sns-btn.insta {
  background: linear-gradient(
    45deg,
    #f58529,
    #dd2a7b,
    #8134af,
    #515bd4
  );
}

/* 箱全体 */
.feature-box {
  background: #f4f7fb;
  padding: 32px 24px;
  border-radius: 16px;
  margin: 40px 0;
}

/* タイトル */
.feature-title {
  text-align: center;
  font-size: 1.4rem;
  margin-bottom: 24px;
}

/* 中身レイアウト */
.feature-content {
  display: grid;
  grid-template-columns: 1fr 3fr 1fr;
  gap: 24px;
  align-items: center;
}

/* 文章 */
.feature-text {
  line-height: 1.9;
  font-size: 1.2rem;
}

/* 画像 */
.feature-img img {
  width: 100%;
  height: auto;
  border-radius: 12px;
  display: block;
}

/* スマホ対応 */
@media (max-width: 768px) {
  .feature-content {
    grid-template-columns: 1fr;
  }

  .feature-text {
    order: 1;
		font-size: 0.75rem;
  }

  .feature-img {
    order: 2;
    max-width: 320px;
    margin: 0 auto;
  }
}

/* タイトル文字をオレンジ＋装飾リセット */
.feature-title {
  color: #f39800;           /* オレンジ */
  border: none;             /* 枠線を消す */
  background: none;         /* 背景があれば消す */
  padding: 0;
  margin-bottom: 24px;
  text-align: center;
}

/* Cocoonが自動で付ける下線・疑似要素を消す */
.feature-title::before,
.feature-title::after {
  content: none !important;
}

/* 中央の文章を中央寄せ */
.feature-text {
  text-align: center;
}

.feature-box {
  background: #fff9e6;  /* うす黄色 */
}

/* 箱全体の上下余白を少し詰める */
.feature-box {
  padding: 24px 24px;   /* ← 32px → 24px */
  margin: 28px 0;       /* ← 40px → 28px */
}

/* タイトル上下の余白を詰める */
.feature-title {
  margin-top: 0;
  margin-bottom: 16px; /* ← 24px → 16px */
}

/* 文章の上下余白を詰める */
.feature-text p {
  margin: 0;
  line-height: 1.8;    /* 少しだけ締める */
}


/* 画像を丸くする */
.feature-img img {
  aspect-ratio: 1 / 1;     /* 正方形にする */
  object-fit: cover;       /* はみ出しトリミング */
  border-radius: 50%;      /* 丸 */
}

/* スマホ時：文章＋画像2枚横並び */
@media (max-width: 768px) {
  .feature-content {
    grid-template-columns: 1fr 1fr;
    gap: 16px;
  }

  .feature-text {
    grid-column: 1 / -1;   /* 文章は1行全部 */
    text-align: center;
  }

  .feature-img {
    grid-column: span 1;   /* 画像は2カラムで横並び */
    max-width: none;
  }
}

/* =========================
   元気・ポップ強化 上書き
   ========================= */

/* topページの一番上の文章-------------------------------------------------------------------------------------------- */
/* 箱：ビタミンカラー＋立体感 */
.feature-box {
  background: linear-gradient(
    180deg,
    #fff176 0%,
    #fff9c4 100%
  );
}

/* タイトル：オレンジ強調＋バッジ風 */
.feature-title {
  color: #ff7a00;
  font-size: 1.6rem;
  font-weight: 700;
  letter-spacing: 0.06em;

  display: inline-block;
  background: #ffffff;
  padding: 8px 24px;
  border-radius: 999px;
  box-shadow: 0 4px 0 #ffb300;
}

/* タイトル中央固定 */
.feature-box {
  text-align: center;
}

/* 文章：丸み・元気さアップ */
.feature-text {
  font-weight: 500;
  letter-spacing: 0.03em;
  line-height: 2;
}

/* 丸画像：縁取り＋影でポップに */
.feature-img img {
  border: 4px solid #ffcc00;
  box-shadow: 0 6px 16px rgba(255, 170, 0, 0.35);
}

/* スマホ時もポップさ維持 */
@media (max-width: 768px) {
  .feature-title {
    font-size: 1.4rem;
  }
}

/* =========================
   PCのみ：アシンメトリー配置
   ========================= */

@media (min-width: 769px) {
  .feature-img.left {
    transform: translateY(-32px);
  }

  .feature-img.right {
    transform: translateY(32px);
  }
}

/* ページ最上部に出る更新日・投稿日を消す（Cocoon）----------------------------------------------------------------------------- */
.entry-header .entry-date,
.entry-header .entry-modified-date,
.entry-header .post-date,
.entry-header .post-update {
  display: none !important;
}

/* ヘッダーメニュー全体 */
#navi .menu-item a {
  border-radius: 999px;
  padding: 8px 14px;
  margin: 0 4px;
  font-weight: 600;
  transition: all 0.2s ease;
}

/* ホバー時 */
#navi .menu-item a:hover {
  background: #fff3c4;   /* レモン色 */
  color: #f39800;        /* オレンジ */
}

/* アイコン余白 */
#navi .menu-item i {
  margin-right: 6px;
}

/* タイトル横アイコン */
.fbox-title.with-icon {
  display: flex;
  align-items: center;
  gap: 8px;
}

/* 小アイコン */
.mini-icon {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
}


/* =========================
   ブロック内画像（文章の下）
   ========================= */

.fbox.text {
  display: flex;
  flex-direction: column;
  align-items: center;
}

/* ブロック内の画像 */
.fbox-inner-img {
  width: 140px;          /* 少し大きくして存在感 */
  height: 140px;
  object-fit: cover;

  border-radius: 16px;  /* ← 角丸の四角 */
  margin-top: 14px;

  border: 3px solid #fff;
  box-shadow: 0 6px 16px rgba(0,0,0,0.15);
}


/* 文章は中央寄せ */
.fbox.text p {
  text-align: center;
  color: #000;
}

/* =========================
   セクション見出し
   ========================= */

.feature-section-title {
  text-align: center;
  font-size: 1.6rem;
  font-weight: 700;
  color: #ff7a00;

  margin-bottom: 16px;
  letter-spacing: 0.08em;
}

/* Cocoonの装飾リセット（下線など） */
.feature-section-title::before,
.feature-section-title::after {
  content: none !important;
}

/* スマホ微調整 */
@media (max-width: 768px) {
  .feature-section-title {
    font-size: 1.4rem;
    margin-bottom: 16px;
  }
}


/* ブロック内画像（文章の下） */
.fbox-inner-img {
  width: 140px;
  height: 140px;
  margin-top: 14px;

  object-fit: cover;
  border-radius: 16px;

  border: 3px solid #fff;
  box-shadow: 0 6px 16px rgba(0,0,0,.15);
}

  .fbox-inner-img {
    width: 120px;
    height: 120px;
  }

  .feature-section-title {
    font-size: 1.4rem;
  }
}

/* =========================
   レイアウト最終確定
   ========================= */

/* PC */
@media (min-width: 769px) {
  .feature-4box {
    grid-template-columns: 1fr 1fr;
  }

  .feature-4box .fbox.text:nth-child(3) {
    grid-column: 1 / -1;
  }
}

/* スマホ */
@media (max-width: 768px) {
  .feature-4box {
    grid-template-columns: 1fr;
  }
}

/* =========================
   スマホ：3つの特徴テキストだけ小さく
   ========================= */
@media (max-width: 768px) {

  /* 本文テキスト */
  .feature-4box .fbox.text p {
    font-size: 0.8rem;   /* ← 好みで 0.85〜0.95 調整OK */
    line-height: 1.7;
  }

  /* タイトル（01〜03）を少しだけ小さくする場合 */
  .feature-4box .fbox-title {
    font-size: 1.15em;
  }
}

.soft-bg {
  position: relative;
  overflow: hidden;
}

.soft-bg::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: url("https://www.enryouiku-saitamaurawa.jp/wp-content/uploads/2026/01/空-scaled.jpg");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  opacity: 0.15;
  z-index: 0;
  pointer-events: none;
}

.soft-bg > * {
  position: relative;
  z-index: 1;
}

/* スマホだけ文字サイズを小さく */
@media screen and (max-width: 767px) {
  .sp-text-small {
    font-size: 0.9rem;
  }
}

@media screen and (max-width: 767px) {
  .sp-break {
    display: block;
    height: 0;
  }
}

/* ==== サイドバーSNSカード（完成版） ==== */
.sidebar-sns-card {
  background: #ffffff;
  padding: 20px 16px;
  margin-top: 24px;
  border-radius: 16px;
  box-shadow: 0 8px 20px rgba(0,0,0,0.08);
  text-align: center;
}

/* タイトル */
.sidebar-sns-title {
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.04em; /* 日本語向けに調整 */
  line-height: 1.6;
  color: #555;
  margin-bottom: 16px;
}

/* アイコンエリア */
.sidebar-sns-icons {
  display: flex;
  justify-content: center;
  gap: 14px;
  margin-top: 8px;
}

/* 共通SNSボタン */
.sns-btn {
  width: 110px;
  height: 110px;
  border-radius: 50%;
  color: #fff;
  text-decoration: none;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 6px 14px rgba(0,0,0,0.15);
}

/* hover時 */
.sns-btn:hover {
  transform: translateY(-4px) scale(1.03);
  box-shadow: 0 10px 24px rgba(0,0,0,0.25);
}

/* アイコン */
.sns-btn i {
  font-size: 34px;
  margin-bottom: 6px;
}

/* テキスト */
.sns-btn span {
  font-size: 12px;
  font-weight: 700;
}

/* LINE */
.sns-btn.line {
  background: linear-gradient(135deg, #06c755, #00b44a);
  position: relative;
}

/* LINEおすすめラベル */
.sns-btn.line::after {
  content: "おすすめ";
  position: absolute;
  top: -10px;
  right: -6px;
  background: #ffffff;
  color: #06c755;
  font-size: 10px;
  font-weight: 700;
  padding: 2px 6px;
  border-radius: 8px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.15);
}

/* Instagram */
.sns-btn.instagram {
  background: linear-gradient(
    135deg,
    #833ab4,
    #fd1d1d,
    #fcb045
  );
}

/* ==== スマホ調整 ==== */
@media screen and (max-width: 768px) {
  .sidebar-sns-card {
    padding: 16px 12px;
  }

  .sidebar-sns-title {
    font-size: 13px;
  }

  .sns-btn {
    width: 90px;
    height: 90px;
  }

  .sns-btn i {
    font-size: 28px;
  }

  .sns-btn span {
    font-size: 11px;
  }
}

@media screen and (max-width: 768px) {
  .entry-content figure.sp-full {
    width: 100vw;
    max-width: 100vw;
    margin-left: calc(50% - 50vw);
    margin-right: calc(50% - 50vw);
  }

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

.bg-group1 {
  position: relative;
  background-image: url("https://www.enryouiku-saitamaurawa.jp/wp-content/uploads/2026/01/空-scaled.jpg");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

/* 背景を薄くする */
.bg-group1::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(255, 255, 255, 0.6); /* 白を60% */
}

/* 中身を前面に出す */
.bg-group1 > * {
  position: relative;
  z-index: 1;
}

/* ==== サイドバー 連絡先リンク ==== */
.sidebar-contact-links {
  margin-top: 18px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

/* 共通リンク */
.contact-link {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  border-radius: 12px;
  text-decoration: none;
  font-size: 13px;
  font-weight: 600;
  background: #f6f6f6;
  color: #333;
  transition: all 0.25s ease;
}

/* hover */
.contact-link:hover {
  background: #ededed;
  transform: translateY(-1px);
}

/* アイコン */
.contact-link i {
  font-size: 16px;
}

/* MAIL */
.contact-link.mail {
  background: #eef3f9;
  color: #2f5fa3;
}

/* メール用 中身を縦並びに */
.contact-link.mail .mail-text {
  display: flex;
  flex-direction: column;
  line-height: 1.4;
}

/* タイトル */
.mail-title {
  font-size: 13px;
  font-weight: 600;
}

/* メールアドレス */
.mail-address {
  font-size: 11px;
  font-weight: 400;
  color: #2f5fa3;
  opacity: 0.85;
  word-break: break-all;
}

/* スマホ微調整 */
@media screen and (max-width: 768px) {
  .mail-title {
    font-size: 12px;
  }

  .mail-address {
    font-size: 10.5px;
  }
}


/* TEL */
.contact-link.tel {
  background: #fff3e8;
  color: #c25b1c;
}

/* スマホ微調整 */
@media screen and (max-width: 768px) {
  .contact-link {
    font-size: 12px;
    padding: 9px 12px;
  }
}

/* ==== サイドバー 住所表記 ==== */
.sidebar-address {
  margin: 14px 0 8px;
  padding: 12px;
  font-size: 12px;
  line-height: 1.6;
  color: #555;
  background: #fafafa;
  border-radius: 10px;
  text-align: left;
}

/* 住所の視認性を少し上げる */
.sidebar-address strong {
  font-weight: 700;
  color: #333;
}

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

  /* 横はみ出しを物理的に遮断 */
  .sp-img-2col {
    overflow-x: hidden;
  }

  /* 中のColumns・Columnを全部リセット */
  .sp-img-2col .wp-block-columns,
  .sp-img-2col .wp-block-column {
    margin: 0 !important;
    padding: 0 !important;
    width: auto !important;
    max-width: none !important;
  }

  /* 画像だけを並べる */
  .sp-img-2col .wp-block-image {
    width: 100% !important;
    padding: 6px;
    box-sizing: border-box;
    float: left;
  }

  /* 画像の回り込み解除 */
  .sp-img-2col::after {
    content: "";
    display: block;
    clear: both;
  }

  /* 画像フィット */
  .sp-img-2col img {
    width: 100%;
    height: auto;
    display: block;
  }

}


.sp-img-2col .wp-block-columns {
  flex-wrap: nowrap !important;
}

.sp-img-2col .wp-block-column {
  width: 50% !important;
}

  /* 5領域の画像(PCとスマホで画像を使い分け)-------------------------------------------------------------------*/
.pc-only {
  display: block;
}
.sp-only {
  display: none;
}

@media screen and (max-width: 1024px) {
  .pc-only {
    display: none !important;
  }
  .sp-only {
    display: block !important;
  }
}

/* 児発の画像　PC：そのまま　スマホの空白を削除する（高さ揃え維持）--------------------------------------------------------------------- */

/* スマホだけ余白を消す(児発の画像) */
@media screen and (max-width: 768px) {
  .img-bottom-jihatu {
    margin-top: 0 !important;
  }
}

/* PC */
@media (min-width: 769px) {
  .staff-popup .wp-block-columns {
    align-items: flex-start;
  }
}

/* SP */
@media (max-width: 768px) {
  .staff-popup .wp-block-columns {
    flex-direction: column;
  }
}

.staff-popup {
  display: flex;
  gap: 20px;
}

/* スタッフポップアップ-------------------------------------------------------------------------------------------------------------------------------*/
/* 左：メイン写真 */
.staff-photo-main {
  width: 50%;
}

.staff-photo-main img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 8px;
}

/* 右側全体 */
.staff-info-wrap {
  width: 50%;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

/* サブ写真 */
.staff-photo-sub {
  display: flex;
  gap: 10px;
}

.staff-photo-sub img {
  width: 50%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: 6px;
}

/* コメントを強調 */
.staff-info-text .comment {
  margin-top: 12px;
  padding: 16px 18px;
  font-size: 15px;
  line-height: 1.8;

  color: #e67e22;              /* 読みやすいオレンジ */

  border-radius: 8px;
}
.staff-info-text .comment {
  max-height: 9em;
  overflow-y: auto;
}

/* 投稿ページ：本文上のアイキャッチを非表示 -------------------------------------------------------------------------------*/
.single-post .eye-catch,
.single-post .entry-header .eye-catch {
  display: none;
}

/*スマホでもスタッフのプロフィールが見えるようにする------------------------------------------------------------------------*/
/* PCではそのまま */
.sp-square-img img {
  width: 100%;
  height: auto;
}

/* スマホだけ正方形 */
@media (max-width: 768px) {
  .sp-square-img img {
    aspect-ratio: 1 / 1;
    object-fit: cover;
    object-position: center;
  }
}

@supports not (aspect-ratio: 1 / 1) {
  @media (max-width: 768px) {
    .sp-square-img {
      position: relative;
      padding-top: 100%;
    }
    .sp-square-img img {
      position: absolute;
      inset: 0;
      width: 100%;
      height: 100%;
      object-fit: cover;
    }
  }
}
