/*
Theme Name: Nago Akiya Advisor
Theme URI: https://example.com/
Author: あなたの名前
Author URI: https://example.com/
Description: 全国空き家アドバイザー協議会沖縄県名護支部の公式ワンページテーマ。活動報告・メディア掲載・お知らせは投稿カテゴリで運用できます。
Version: 1.0.0
Requires at least: 6.0
Tested up to: 6.6
Requires PHP: 7.4
Text Domain: nago-akiya-advisor
License: GPL-2.0-or-later
*/

/* =============================
   Global Theme: Bright & Sincere
   - Primary: Sky Blue
   - Accent: Fresh Mint
   - Support: Warm Sunshine
   - Neutrals: Clean Gray
   ============================= */
:root {
  --brand: #4ca3dd;          /* softer sky blue */
  --brand-600: #3b8ac5;
  --brand-700: #2f5f94;
  --accent: #64d1a9;         /* softer mint */
  --accent-600: #50b98f;
  --sunshine: #f6da88;       /* softer warm yellow */
  --bg: #ffffff;
  --surface: #f7fafc;
  --surface-alt: #eef6ff;
  --text: #1f2a37;
  --text-muted: #5b6b7a;
  --border: #e5e9f0;
  --shadow: 0 10px 30px rgba(31, 46, 66, 0.08);
}

/* ...rest of CSS from the user's file... */
* { margin: 0; padding: 0; box-sizing: border-box; }

body {
  font-family: 'Noto Sans JP', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Hiragino Kaku Gothic ProN', 'Hiragino Sans', 'Yu Gothic', Meiryo, sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.7;
}

/* ================= Header ================= */
/* ================= Header ================= */
.header {
  position: fixed;
  top: 0;
  width: 100%;
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(10px);
  z-index: 2000; /* ← 修正: サイドメニューより前面に */
  padding: 14px 0;
  transition: all .3s ease;
  box-shadow: 0 2px 18px rgba(31, 46, 66, .08);
  border-bottom: 1px solid var(--border);
}

.nav-container {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 20px;
}

.logo {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--brand-700);
  letter-spacing: .02em;
}
.logo .logo-main,
.logo .logo-sub {
  display: inline;
}

@media (max-width: 768px) {
  .logo {
    display: inline-flex;
    flex-direction: column;
    align-items: flex-start;
    line-height: 1.2;
    font-size: 1.1rem;
  }
  .logo .logo-sub {
    font-weight: 800;
    margin-left: 0;
  }
}

.nav-container { max-width: 1200px; margin: 0 auto; display: flex; justify-content: space-between; align-items: center; padding: 0 20px; }
.logo { font-size: 1.25rem; font-weight: 700; color: var(--brand-700); letter-spacing: .02em; }
.logo .logo-main,
.logo .logo-sub { display: inline; }

@media (max-width: 768px) {
  .logo { display: inline-flex; flex-direction: column; align-items: flex-start; line-height: 1.2; font-size: 1.1rem; }
  .logo .logo-sub { font-weight: 800; margin-left: 0; }
}

.nav-menu { display: flex; list-style: none; gap: 26px; }
.nav-menu a { text-decoration: none; color: var(--text-muted); font-weight: 600; transition: color .2s ease; }
.nav-menu a:hover { color: var(--brand); }

/* ================= Hero ================= */
.hero { position: relative; height: 100vh; overflow: hidden; display: flex; align-items: center; justify-content: center; }

.hero-image {
  background-image: url('assets/images/top.jpeg');
  background-size: cover;
  background-position: center;
  position: absolute;
  inset: 0;
  z-index: 0;
  transform-origin: center;
  animation: droneZoomOnly 12s ease-in-out infinite alternate;
}

.hero-overlay { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(16, 33, 61, .35) 0%, rgba(16, 33, 61, .15) 45%, rgba(16, 33, 61, 0) 100%); z-index: 1; }
.hero-content { position: relative; z-index: 2; text-align: center; max-width: 840px; padding: 0 20px; }
.hero-title { font-size: clamp(2.2rem, 4vw, 3.7rem); font-weight: 800; color: #fff; text-shadow: 0 8px 24px rgba(0,0,0,.25); animation: fadeUp .9s ease-out both; }
.hero-subtitle { font-size: clamp(1.1rem, 2.2vw, 1.6rem); margin-top: 16px; color: #eef6ff; text-shadow: 0 4px 16px rgba(0,0,0,.2); animation: fadeUp .9s ease-out .18s both; }
.hero-cta { display: inline-block; margin-top: 28px; padding: 14px 32px; background: linear-gradient(135deg, var(--brand), var(--accent)); color: #fff; text-decoration: none; border-radius: 999px; font-weight: 800; font-size: 1.05rem; letter-spacing: .02em; box-shadow: 0 10px 24px rgba(42, 125, 225, .25); transition: transform .15s ease, box-shadow .2s ease, filter .2s ease; }
.hero-cta:hover { transform: translateY(-2px); box-shadow: 0 16px 36px rgba(42,125,225,.35); filter: saturate(1.05); }

@keyframes droneZoomOnly { from { transform: scale(1); } to { transform: scale(1.12); } }
@keyframes fadeUp { from { opacity: 0; transform: translateY(22px); } to { opacity: 1; transform: translateY(0); } }

/* ================ Sections ================ */
.section { padding: 92px 0; background: var(--bg); }
.section:nth-of-type(odd) { background: var(--surface); }
.section:nth-of-type(even) { background: var(--surface-alt); }
.container { max-width: 1200px; margin: 0 auto; padding: 0 20px; }
.section-title { text-align: center; font-size: clamp(1.6rem, 3vw, 2.2rem); color: var(--brand-700); margin-bottom: 56px; position: relative; font-weight: 800; }
.section-title::after {  content: "" !important;  display: none !important; }
/* Intro / Mission */
.intro-content { text-align: center; max-width: 820px; margin: 0 auto; font-size: 1.15rem; line-height: 1.9; color: var(--text-muted); }
.intro-highlight { color: var(--brand-700); font-weight: 800; font-size: 1.35rem; margin-bottom: 18px; }
.mission-message { max-width: 820px; margin: 60px auto; font-size: 1.2rem; text-align: center; line-height: 2; color: var(--brand-700); opacity: 0; transform: translateY(24px); transition: all 1s ease-out; }
.mission-message.animate { opacity: 1; transform: translateY(0); }

/* =============== Services =============== */
.services-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 26px; margin-top: 26px; }
.service-card { background: #fff; padding: 32px 26px; border-radius: 18px; text-align: center; box-shadow: var(--shadow); transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease; border: 1.5px solid var(--border); }
.service-card:hover { transform: translateY(-6px); box-shadow: 0 18px 40px rgba(31,46,66,.12); border-color: rgba(42,125,225,.35); }
.service-icon { width: 144px; height: 144px; margin: 0 auto 16px; background: linear-gradient(135deg, var(--brand), var(--accent)); border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 1.75rem; color: #fff; }
.service-icon img { width: 60%; height: 60%; object-fit: contain; }
.service-title { font-size: 1.2rem; color: var(--brand-700); margin-bottom: 10px; font-weight: 800; }
.service-description { color: var(--text-muted); line-height: 1.7; }
.services-note {
  text-align: center;
  margin-top: 22px;
  font-size: 1.05rem;
  color: var(--brand-700);
  font-weight: 800;
}


/* ================ News ================= */
.news-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 24px; margin-top: 26px; }
.news-item { background: #fff; border-radius: 14px; padding: 22px; box-shadow: 0 8px 24px rgba(31,46,66,.08); transition: transform .2s ease, box-shadow .2s ease; border: 1px solid var(--border); }
.news-item:hover { transform: translateY(-4px); box-shadow: 0 16px 40px rgba(31,46,66,.12); }
.news-date { color: var(--sunshine); font-weight: 800; font-size: .92rem; margin-bottom: 6px; letter-spacing: .02em; }
.news-title { color: var(--brand-700); font-weight: 800; margin-bottom: 8px; font-size: 1.05rem; }
.news-excerpt { color: var(--text-muted); font-size: .98rem; line-height: 1.6; }

/* ================ Media ================= */
.media-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 24px; margin-top: 26px; }
.media-item { background: #fff; border-radius: 14px; overflow: hidden; box-shadow: 0 10px 28px rgba(31,46,66,.1); transition: transform .2s ease, box-shadow .2s ease; border: 1px solid var(--border); }
.media-item:hover { transform: translateY(-6px); box-shadow: 0 18px 44px rgba(31,46,66,.15); }
.media-image { width: 100%; height: 200px; background: linear-gradient(135deg, var(--brand), var(--accent)); display: flex; align-items: center; justify-content: center; color: white; font-size: 2rem; }
.media-content { padding: 22px; }
.media-source { color: var(--accent); font-weight: 800; font-size: .9rem; margin-bottom: 6px; letter-spacing: .02em; }
.media-title { color: var(--brand-700); font-weight: 800; margin-bottom: 8px; font-size: 1.05rem; }
.media-date { color: var(--text-muted); font-size: .92rem; }

/* ================= FAQ ================= */
.faq-container { max-width: 820px; margin: 0 auto; }
.faq-item { background: #fff; margin-bottom: 16px; border-radius: 14px; overflow: hidden; box-shadow: 0 8px 22px rgba(31,46,66,.06); border: 1px solid var(--border); }
.faq-question { padding: 20px; background: var(--brand); color: #fff; cursor: pointer; font-weight: 800; transition: background .2s ease; position: relative; }
.faq-question:hover { background: var(--brand-600); }
.faq-question::after { content: '+'; position: absolute; right: 20px; top: 50%; transform: translateY(-50%); font-size: 1.4rem; transition: transform .2s ease; }
.faq-question.active::after { transform: translateY(-50%) rotate(45deg); }
.faq-answer { padding: 20px; display: none; line-height: 1.7; color: var(--text-muted); }

/* =============== Contact =============== */
.contact-form { max-width: 640px; margin: 0 auto; background: #fff; padding: 34px; border-radius: 16px; box-shadow: var(--shadow); border: 1px solid var(--border); }
.form-group { margin-bottom: 20px; }
.form-label { display: block; margin-bottom: 8px; color: var(--brand-700); font-weight: 800; }
.form-input, .form-textarea, select.form-input { width: 100%; padding: 14px; border: 1.5px solid var(--border); border-radius: 10px; font-size: 1rem; transition: border-color .2s ease, box-shadow .2s ease; background: #fff; color: var(--text); }
.form-input:focus, .form-textarea:focus, select.form-input:focus { outline: none; border-color: rgba(42,125,225,.5); box-shadow: 0 0 0 4px rgba(42,125,225,.12); }
.form-textarea { height: 130px; resize: vertical; }
.form-submit { width: 100%; padding: 14px; background: linear-gradient(135deg, var(--brand), var(--accent)); color: white; border: none; border-radius: 12px; font-size: 1.05rem; font-weight: 800; cursor: pointer; transition: transform .15s ease, box-shadow .2s ease, filter .2s ease; box-shadow: 0 10px 24px rgba(42,125,225,.25); }
.form-submit:hover { transform: translateY(-2px); box-shadow: 0 16px 36px rgba(42,125,225,.35); filter: saturate(1.05); }

/* ================= Footer ================= */
.footer { background: var(--brand-700); color: white; padding: 40px 0 20px; text-align: center; }
.footer-content { max-width: 1200px; margin: 0 auto; padding: 0 20px; }
.footer-title { font-size: 1.3rem; margin-bottom: 16px; font-weight: 800; }
.footer-info { margin-bottom: 18px; line-height: 1.7; color: #e8f1ff; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.2); padding-top: 16px; font-size: .9rem; color: #cfe2ff; }

/* ============= Responsive ============= */
@media (max-width: 768px) {
  .nav-menu { display: none; }
  .hero-title { font-size: clamp(1.9rem, 7vw, 2.6rem); }
  .hero-subtitle { font-size: clamp(1rem, 3.8vw, 1.25rem); }
  .section-title { font-size: clamp(1.4rem, 5.5vw, 1.9rem); }
  .services-grid, .news-grid, .media-grid { grid-template-columns: 1fr; }
  .intro-content { font-size: 1.05rem; }
}


/* ============== About Us / Members ============== */
.aboutus-intro {
  text-align: center;
  margin: 0 auto 28px;
  font-size: 1.05rem;
  color: var(--brand-700);  /* ← services-note と同じ色 */
  font-weight: 800;         /* ← services-note と同じ太さ */
}

.org-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 14px; margin: 18px 0 38px; }
.org-card { background: #fff; border: 1px solid var(--border); border-radius: 14px; padding: 16px 18px; box-shadow: 0 6px 18px rgba(31,46,66,.06); }
.org-label { font-size: .88rem; color: var(--text-muted); margin-bottom: 6px; }
.org-value { font-weight: 800; color: var(--brand-700); }

.subsection-title { font-size: clamp(1.1rem, 2.2vw, 1.35rem); color: var(--brand-700); font-weight: 800; margin: 8px 0 16px; text-align: center; }

.member-grid { display: flex; flex-wrap: nowrap; overflow-x: auto; gap: 22px; margin-bottom: 28px; padding-bottom: 10px; scroll-snap-type: x mandatory; }
.member-card { flex: 0 0 auto; width: 260px; scroll-snap-align: start; background: #fff; border: 1px solid var(--border); border-radius: 18px; box-shadow: var(--shadow); padding: 26px 22px; transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease; }
.member-card:hover { transform: translateY(-6px); box-shadow: 0 18px 40px rgba(31,46,66,.12); border-color: rgba(42,125,225,.35); }
.member-photo { width: 100%; aspect-ratio: 4/3; background: linear-gradient(135deg, var(--brand), var(--accent)); background-size: cover; background-position: center; border-radius: 12px; margin-bottom: 14px; }
.member-name { font-size: 1.15rem; font-weight: 800; color: var(--brand-700); margin: 12px 0 6px; }
.member-role { font-size: 1rem; color: var(--accent-600); font-weight: 700; margin-bottom: 14px; }
.member-bio { font-size: .95rem; color: var(--text-muted); line-height: 1.8; margin-bottom: 14px; }
.member-tags { list-style: none; display: flex; flex-wrap: wrap; gap: 6px; }
.member-tags li { font-size: .82rem; color: var(--brand-700); background: var(--surface-alt); border: 1px solid var(--border); padding: 4px 8px; border-radius: 999px; }

.partners { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; }
.partner-chip { background: #fff; border: 1px solid var(--border); padding: 8px 12px; border-radius: 999px; color: var(--text-muted); box-shadow: 0 6px 18px rgba(31,46,66,.06); }

@media (max-width: 768px) {
  .member-grid { grid-template-columns: 1fr; }
}

/* ====== More Button ====== */
.more-wrap { display: flex; justify-content: center; margin-top: 18px; }
.more-button { appearance: none; border: none; border-radius: 999px; padding: 12px 20px; font-weight: 800; font-size: .98rem; background: linear-gradient(135deg, var(--brand), var(--accent)); color: #fff; box-shadow: 0 10px 24px rgba(42,125,225,.25); cursor: pointer; transition: transform .15s ease, box-shadow .2s ease, filter .2s ease; }
.more-button:hover { transform: translateY(-2px); box-shadow: 0 16px 36px rgba(42,125,225,.35); filter: saturate(1.05); }
.is-hidden { display: none !important; }
/* 活動報告セクションの日付・タイトル・内容の下線を消す */
#news .news-item,
#news .news-item a,
#news .news-date,
#news .news-title,
#news .news-excerpt {
  text-decoration: none !important;
}

/* 全てのもっと見るボタンの下線を消す */
.more-button {
  text-decoration: none !important;
}

/* ===== Scroll Reveal (ふわっと) ===== */
.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity .6s ease, transform .6s ease;
  will-change: opacity, transform;
}
.reveal.inview {
  opacity: 1;
  transform: translateY(0);
}

/* ステップ表示（任意） */
.reveal-stagger > * {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity .6s ease, transform .6s ease;
}
.reveal-stagger.inview > * {
  opacity: 1;
  transform: translateY(0);
}
.reveal-stagger.inview > *:nth-child(1) { transition-delay: .05s; }
.reveal-stagger.inview > *:nth-child(2) { transition-delay: .12s; }
.reveal-stagger.inview > *:nth-child(3) { transition-delay: .18s; }
.reveal-stagger.inview > *:nth-child(4) { transition-delay: .24s; }
.reveal-stagger.inview > *:nth-child(5) { transition-delay: .30s; }

/* Heroの基本アニメ（ページ読み込み時） */
@keyframes fadeUp { from { opacity: 0; transform: translateY(22px); } to { opacity: 1; transform: translateY(0); } }
.hero-title { animation: fadeUp .9s ease-out both; }
.hero-subtitle { animation: fadeUp .9s ease-out .18s both; }

/* ==== Section Reveal（スクロールでふわっと）==== */
/* セクション全体をふわっと */
.section-reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity .7s ease, transform .7s ease;
  will-change: opacity, transform;
}
.section-reveal.inview {
  opacity: 1;
  transform: translateY(0);
}

/* セクション内の要素を順番にふわっと（子要素に遅延を付与） */
.reveal-stagger > * {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity .6s ease, transform .6s ease;
}
.reveal-stagger.inview > * {
  opacity: 1;
  transform: translateY(0);
}
.reveal-stagger.inview > *:nth-child(1){ transition-delay:.05s; }
.reveal-stagger.inview > *:nth-child(2){ transition-delay:.12s; }
.reveal-stagger.inview > *:nth-child(3){ transition-delay:.18s; }
.reveal-stagger.inview > *:nth-child(4){ transition-delay:.24s; }
.reveal-stagger.inview > *:nth-child(5){ transition-delay:.30s; }
.reveal-stagger.inview > *:nth-child(6){ transition-delay:.36s; }

/* 単体要素用（見出しなど） */
.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity .6s ease, transform .6s ease;
  will-change: opacity, transform;
}
.reveal.inview { opacity:1; transform: translateY(0); }

/* アニメ控えめ設定（ユーザ設定を尊重） */
@media (prefers-reduced-motion: reduce) {
  .section-reveal, .reveal, .reveal-stagger > * {
    transition: none !important;
    transform: none !important;
    opacity: 1 !important;
  }
}

/* ===== Hamburger button ===== */
.nav-toggle {
  display: none;
  position: relative;
  width: 44px; height: 44px;
  border: 0; background: transparent; cursor: pointer;
  align-items: center; justify-content: center;
}
.nav-toggle .bar {
  position: absolute; width: 24px; height: 2px; background: var(--text);
  transition: transform .25s ease, opacity .2s ease, top .25s ease;
}
.nav-toggle .bar:nth-child(1){ top: 14px; }
.nav-toggle .bar:nth-child(2){ top: 21px; }
.nav-toggle .bar:nth-child(3){ top: 28px; }
.nav-toggle.is-open .bar:nth-child(1){ transform: rotate(45deg); top: 21px; }
.nav-toggle.is-open .bar:nth-child(2){ opacity: 0; }
.nav-toggle.is-open .bar:nth-child(3){ transform: rotate(-45deg); top: 21px; }

/* ===== Mobile panel ===== */
.site-nav { display: flex; align-items: center; }

@media (max-width: 768px){
  .nav-toggle { display: inline-flex; }

  /* 右スライドのサイドパネル化 */
  .site-nav{
    position: fixed; inset: 0 0 0 auto; width: min(78vw, 320px);
    background: #fff; border-left: 1px solid var(--border);
    box-shadow: -8px 0 24px rgba(31,46,66,.12);
    transform: translateX(100%); transition: transform .28s ease;
    z-index: 1200; padding-top: 72px;
  }
  .site-nav.is-open{ transform: translateX(0); }

  /* メニューの縦並び */
  .nav-menu{
    display: flex !important; flex-direction: column; gap: 8px;
    list-style: none; padding: 12px 18px 24px; margin: 0;
  }
  .nav-menu a{
    display: block; padding: 12px 10px;
    text-decoration: none; font-weight: 700;
    color: var(--brand-700); border-radius: 10px;
  }
  .nav-menu a:hover{ background: var(--surface); color: var(--brand); }

  /* 背景の暗転 */
  .nav-backdrop{
    position: fixed; inset: 0; background: rgba(16,33,61,.28);
    backdrop-filter: blur(1px);
    opacity: 0; pointer-events: none; transition: opacity .2s ease;
    z-index: 1100;
  }
  .nav-backdrop.is-open{ opacity: 1; pointer-events: auto; }
}

/* === Mobileナビの視認性＆スクロール改善（上書き） === */
@media (max-width: 768px){
  /* パネルを画面いっぱい・スクロール可能に */
  .site-nav{
    width: min(86vw, 360px);        /* ←狭いと感じたら 100vw にして全画面 */
    height: 100svh;                  /* 安全なモバイルvh */
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    padding-top: 72px;
    padding-bottom: calc(env(safe-area-inset-bottom, 0px) + 20px);
    background: #fff;                /* 背景を純白にして文字をはっきり */
    z-index: 1200;                   /* 念のため再指定 */
  }

  /* メニューリンクのコントラストUP・タップしやすく */
  .nav-menu{
    display: flex !important;
    flex-direction: column;
    gap: 6px;
    padding: 12px 18px 24px;
    margin: 0;
  }
  .nav-menu a{
    display: block;
    padding: 14px 12px;             /* タップ領域を少し広げる */
    font-size: 1.05rem;             /* 少し大きく */
    font-weight: 800;               /* 濃くする */
    color: var(--text);             /* 文字色をダークへ（#1f2a37） */
    text-decoration: none;
    border-radius: 10px;
  }
  .nav-menu a:hover{
    background: var(--surface);
    color: var(--brand-700);
  }

  /* 背景の暗転はやや薄めに（文字の見え方向上） */
  .nav-backdrop{
    background: rgba(16,33,61,.24);
  }
}

/* 端末が濃色テーマでも文字が薄くならないように */
@media (prefers-color-scheme: dark){
  @media (max-width: 768px){
    .site-nav{ background:#fff; }
    .nav-menu a{ color:#1f2a37; }
  }
}

/* 開いてアニメが終わったら transform を無効化して文字をクッキリに */
@media (max-width: 768px){
  .site-nav.no-transform {
    transform: none !important;    /* 合成レイヤー解除 */
    right: 0;                      /* 念のため固定 */
  }
}

/* メニュー開閉中は背面スクロールを止める */
body.no-scroll { overflow: hidden; }

/* WordPress が出力する .menu クラスに備えた安全策（既存と競合しない範囲） */
.site-nav .menu { list-style: none; margin: 0; padding: 0; }
.site-nav .menu > li { margin: 0; }

/* .nav-backdrop は hidden で非表示を開始するため、明示的に表示制御 */
.nav-backdrop[hidden] { display: none !important; }

.instagram-section {
  text-align: center;
}
.instagram-section .section-title {
  margin-bottom: 32px;
}

/* ===== Instagram 3カラム（確実版） ===== */
.instagram-section { text-align: center; }

.insta-grid{
  display: grid !important;
  gap: 24px;
  justify-content: center;     /* 全体を中央寄せ */
  grid-template-columns: 1fr;  /* デフォは1列 */
}

/* PCで2→3列に段階アップ（幅の物理制約を考慮） */
@media (min-width: 900px){
  .insta-grid{ grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (min-width: 1180px){
  .insta-grid{ grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

/* 各カードの最大幅を“明示”して、埋め込みがデカくなりすぎないようにする */
.insta-item{
  width: 100%;
  max-width: 360px;        /* ここが1枚の上限幅。必要なら 340〜380で微調整 */
  margin: 0 auto;
  display: flex;
  justify-content: center;
}

