/* --- 共通・PC用（もとのスタイル） --- */
/* ローダー・進捗バー */
.loader-bg {
  position: fixed; z-index: 9999;
  top: 0; left: 0; width: 100vw; height: 100vh;
  background: #21272a;
  display: flex; align-items: center; justify-content: center;
  transition: opacity 0.8s cubic-bezier(.4,0,.2,1);
}
.logo-wrapper {
  display: flex;
  gap: 0;
}
.logo-part {
  width: 120px; /* 必要に応じて調整 */
  height: 120px;
  opacity: 0;
  transform: translateY(60px) scale(0.85);
  transition: 
    opacity 0.6s cubic-bezier(.4,0,.2,1),
    transform 0.8s cubic-bezier(.55,1.7,.7,1.05);
}
.logo-part.inview {
  opacity: 1;
  transform: translateY(0) scale(1);
}
.logo-part.bounce {
  animation: bounce 0.6s cubic-bezier(.34,1.56,.64,1) 1;
}
@keyframes bounce {
  0%   { transform: scale(1) }
  30%  { transform: scale(1.15,0.85) }
  60%  { transform: scale(0.92,1.08) }
  80%  { transform: scale(1.08,0.96) }
  100% { transform: scale(1) }
}


.spinner {
  border: 4px solid #ccc;
  border-top: 4px solid #003366;
  border-radius: 50%;
  width: 40px; height: 40px;
  animation: spin 1s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

#progress-bar {
  position: fixed; top: 0; left: 0;
  height: 5px; background: #0077b6; width: 0%; z-index: 10000;
}

body {
  margin: 0;
  font-family: "Noto Sans JP", sans-serif;
  background: #f9f9f9;
  color: #333;
}
.section {
  padding: 60px 20px;
  max-width: 1100px;
  margin: auto;
  background: rgba(255,255,255,0.9);
  border-radius: 12px;
  margin-bottom: 40px;
}

/* ヘッダー */
.site-header {
  background: #efeef1;
  color: rgb(22, 4, 88);
  display: flex;
  justify-content: space-between;
  align-items: stretch;
  padding: 0;
  position: sticky;
  top: 0;
  z-index: 1000;
  height: 80px;
}
.logo {
  height: 80px;
  width: auto;
  margin-left: 20px;
}
.nav-menu {
  width: 50%;
  height: 100%;
  transform: translateX(-15px);
}
.nav-menu ul {
  display: flex;
  justify-content: space-around;
  list-style: none;
  margin: 0;
  padding: 0;
  height: 100%;
}
.nav-menu li {
  flex: 1;
  height: 100%;
  transform: skewX(-20deg);
  margin: 0;
  padding: 0;
  background: #003366;
  transition: transform 0.3s ease, background 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
}
.nav-menu a {
  display: block;
  width: 100%;
  height: 100%;
  padding: 0 0;
  text-align: center;
  color: white;
  text-decoration: none;
  font-weight: bold;
  font-size: 1rem;
  transform: skewX(20deg);
  display: flex;
  align-items: center;
  justify-content: center;
}
.nav-menu li:hover {
  background: #00509e;
  transform: skewX(-20deg) translateY(-4px);
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}
.menu-toggle { display: none; }

/* ヒーロー動画 */
.hero-video-container {
  position: relative;
  width: 100%;
  height: 80vh;
  overflow: hidden;
}
.hero-video {
  position: absolute;
  top: 0; left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
}
.hero-overlay {
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  text-align: center;
  color: white;
  text-shadow: 1px 1px 4px #000;
  z-index: 1;
}
.hero-overlay h1 { font-size: 2.8rem; margin-bottom: 10px; }

/* 背景とオーバーレイ */
.service-section {
  position: relative;
  background-image: url('company-16.jpg');
  background-size: cover;
  background-position: center;
  overflow: hidden;
  color: #fff;
}
.service-section .bg-overlay {
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
  background: rgba(0, 0, 0, 0.4);
  z-index: 0;
}
.service-section > * {
  position: relative;
  z-index: 1;
}
.card-list {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  padding: 0;
  justify-content: center;
}
.card-list li {
  list-style: none;
}
.card {
  flex: 1 1 calc(50% - 20px);
  max-width: calc(50% - 20px);
  height: 250px;
  border-radius: 12px;
  background-size: cover;
  background-position: center;
  position: relative;
  overflow: hidden;
  opacity: 0;
  color: #000000;
  transform: translateY(50px);
  transition: all 0.6s ease-out;
}
.card-icon {
  width: 60px;
  height: 60px;
  margin-bottom: 10px;
}
.card-overlay {
  background-color: rgba(255, 255, 255, 0.459);
  padding: 20px;
  border-radius: 12px;
  text-align: center;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
/* アニメーション遅延 */
.delay-0 { transition-delay: 0s; }
.delay-1 { transition-delay: 0.1s; }
.delay-2 { transition-delay: 0.2s; }
.delay-3 { transition-delay: 0.3s; }
.delay-4 { transition-delay: 0.4s; }
.delay-5 { transition-delay: 0.5s; }
.card.visible { opacity: 1; transform: translateY(0);}
@media screen and (max-width: 768px) {
  .card { flex: 1 1 100%; max-width: 100%; }
}

/* セクションタイトルもフェードイン */
.fade-in {
  opacity: 0;
  transform: translateY(30px);
  animation: fadeTitle 1.2s ease-out forwards;
}
@keyframes fadeTitle {
  to { opacity: 1; transform: translateY(0);}
}
/* ギャラリー */
.works-gallery img {
  width: 100%;
  border-radius: 8px;
}

/* お客様の声 */
.voice-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
}
.voice-card {
  flex: 1;
  min-width: 250px;
  background: #fff;
  border-radius: 10px;
  padding: 20px;
  box-shadow: 0 4px 10px rgba(0,0,0,0.1);
  text-align: center;
}
.voice-card img {
  border-radius: 50%;
  width: 80px;
  height: 80px;
  object-fit: cover;
  margin-bottom: 10px;
}

/* フォーム */
form {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
input, textarea {
  padding: 10px;
  border: 1px solid #ccc;
  border-radius: 5px;
}
button.ripple {
  background: #003366;
  color: white;
  border: none;
  padding: 12px;
  border-radius: 5px;
  cursor: pointer;
}
button.ripple:hover { background: #00509e; }

.site-footer {
  background: #003366;
  color: white;
  padding: 30px 40px;
  display: flex;
  flex-wrap: wrap;
  gap: 30px;
  align-items: flex-start;
  justify-content: space-between;
  box-sizing: border-box;
}
.site-footer .logo-container {
  flex: 1 1 200px;
  display: flex;
  align-items: center;
  justify-content: flex-start;
}
.site-footer .logo {
  height: 80px;
  width: auto;
}
.footer-column {
  flex: 0 1 220px;
  font-size: 0.95rem;
  line-height: 1.6;
  min-width: 180px;
}
.fixed-contact {
  position: fixed;
  bottom: 20px;
  right: 20px;
  z-index: 999;
  display: inline-block;
}

.fixed-contact img.contact-icon {
  width: 120px;  
  height: auto;
  display: block;
  border: none;         /* 枠線を消す */
  outline: none;        /* フォーカス枠を消す */
  background: none;     /* 背景色を消す */
  padding: 0;           /* 余白を消す */
  margin: 0;            /* 余白を消す */
  box-shadow: none;     /* シャドウを消す（必要なら） */
  transition: transform 0.3s ease;
}

.fixed-contact img.contact-icon:hover {
  transform: scale(1.1);
}


/* 背景透過/オーバーレイ等 */
.bg-overlay {
  position: relative;
  background-size: cover;
  background-position: center;
  color: white;
  overflow: hidden;
}
.bg-overlay::before {
  content: "";
  position: absolute;
  top: 0; left: 0; width: 100%; height: 100%;
  background: rgba(0, 0, 0, 0.4);
  z-index: 0;
}
.bg-overlay > * {
  position: relative;
  z-index: 1;
}
.zoom-in {
  font-size: clamp(1.5rem, 5vw, 3rem);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.features-section {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  padding: 40px 5vw;
  flex-wrap: wrap;
  box-sizing: border-box;
}
.feature-card {
  position: relative;
  flex: 1 1 calc(33.333% - 20px);
  aspect-ratio: 2 / 3;
  background-size: cover;
  background-position: center;
  border-radius: 0;
  clip-path: polygon(0 5%, 100% 0, 100% 95%, 0% 100%);
  overflow: hidden;
  filter: brightness(0.9);
  transition: transform 0.4s ease, box-shadow 0.4s ease, filter 0.4s ease;
  min-width: 250px;
}
.feature-card:hover {
  transform: scale(1.05);
  box-shadow: 0 0 20px rgba(255, 255, 255, 0.5);
  filter: brightness(1.05);
}
.feature-overlay {
  position: absolute;
  bottom: 0;
  width: 100%;
  padding: 20px;
  background: rgba(0, 0, 0, 0.5);
  color: #fff;
  text-align: center;
  font-weight: bold;
  font-size: 1.2rem;
}
.feature-card::before {
  content: '';
  position: absolute;
  top: -100%;
  left: -150%;
  width: 200%;
  height: 300%;
  background: linear-gradient(120deg, rgba(255,255,255,0) 40%, rgba(255,255,255,0.6) 50%, rgba(255,255,255,0) 60%);
  transform: rotate(25deg);
  animation: shine 2.5s ease-in-out infinite;
  pointer-events: none;
}
@keyframes shine {
  0% { transform: translateX(-100%) rotate(25deg); opacity: 0;}
  50% { opacity: 1;}
  100% { transform: translateX(100%) rotate(25deg); opacity: 0;}
}
@media (max-width: 768px) {
  .feature-card { flex: 1 1 100%; }
}

/* ニュース */
#news.fullwidth-bg {
  background-color: #daeaf9;
  width: 100vw;
  position: relative;
  left: 50%;
  right: 50%;
  margin-left: -50vw;
  margin-right: -50vw;
  padding: 60px 20px;
  box-sizing: border-box;
}
.news-section h2 {
  text-align: center;
  font-size: 2rem;
  margin-bottom: 40px;
  color: #003366;
}
.news-section {
  background-color: #d1e2f2;
  padding: 60px 20px;
}
.news-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
}
.news-card {
  background: rgb(255, 255, 255);
  border-radius: 12px;
  padding: 25px;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.1);
  transition: transform 0.4s ease, box-shadow 0.4s ease;
  display: flex;
  flex-direction: column;
}
.news-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}
.news-card time {
  font-size: 0.9rem;
  color: #888;
  margin-bottom: 10px;
}
.news-card h3 {
  font-size: 1.2rem;
  color: #003366;
  margin-bottom: 10px;
}
.news-card p {
  flex-grow: 1;
  font-size: 0.95rem;
  color: #444;
}
.news-link {
  text-align: right;
  color: #0077b6;
  font-weight: bold;
  text-decoration: none;
  margin-top: 15px;
  transition: color 0.3s;
}
.news-link:hover {
  color: #005b8f;
  text-decoration: underline;
}

/* Instagram */
.insta-section {
  text-align: center;
  background: #fafafa;
  padding: 60px 20px;
}
.insta-section h2 {
  font-size: 2rem;
  color: #262626;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin-bottom: 10px;
}
.insta-icon {
  width: 30px;
  height: 30px;
}
.insta-caption {
  color: #888;
  font-size: 0.95rem;
  margin-bottom: 30px;
}
.insta-frame-wrapper {
  display: flex;
  justify-content: center;
  align-items: center;
}
.insta-frame {
  width: 100%;
  max-width: 540px;
  height: 600px;
  border: none;
  border-radius: 12px;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.1);
}

/* コミットメント・SDGs */
.commitments-section {
  display: flex;
  flex-direction: column;
  gap: 50px;
  padding: 60px 5vw;
  background-color: #f4f9fb;
}
.commitment-card {
  display: flex;
  flex-wrap: wrap;
  background: #ffffff;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
  transform: translateY(50px);
  opacity: 0;
  animation: slideUpFadeIn 1s ease-out forwards;
}
.commitment-card:nth-child(2) { animation-delay: 0.3s;}
.commitment-card {
  display: flex;
  flex-direction: row;
  flex-wrap: nowrap;
  background: #ffffff;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
  transform: translateY(50px);
  opacity: 0;
  animation: slideUpFadeIn 1s ease-out forwards;
}
.card-image {
  width: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  box-sizing: border-box;
}
.card-image img {
  max-width: 100%;
  height: auto;
  object-fit: contain;
  display: block;
}
.card-text {
  width: 60%;
  padding: 30px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  box-sizing: border-box;
}
.card-title {
  font-size: 1.8rem;
  color: #003366;
  margin-bottom: 20px;
}
.card-description {
  font-size: 1rem;
  color: #444;
}
@keyframes slideUpFadeIn {
  to {
    transform: translateY(0);
    opacity: 1;
  }
}
@media (max-width: 768px) {
  .commitment-card { flex-direction: column; }
  .card-image, .card-text { width: 100%; }
  .card-text { padding: 20px;}
}

/* --- ここからレスポンシブ --- */
@media (max-width: 768px) {

  html, body {
    font-size: 15px;
    width: 100vw;
    overflow-x: hidden;
  }
  .section, .news-section, .insta-section {
    max-width: 100vw;
    padding: 24px 2vw;
    margin: 0 auto 28px auto;
    border-radius: 10px;
  }
  .fade-in, .news-section, .commitments-section, .features-section, .insta-section {
    padding-left: 2vw;
    padding-right: 2vw;
  }

  /* ヘッダー・ナビ */
  .site-header {
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    height: 56px;
    min-height: 56px;
    padding: 0 8px 0 0;
    position: sticky;
    top: 
  }
}
@media (max-width: 768px) {

  html, body {
    font-size: 15px !important;
    width: 100vw !important;
    max-width: 100vw !important;
    overflow-x: hidden !important;
  }
  body {
    padding: 0;
  }
  /* セクション全般 */
  .section, .news-section, .insta-section, .commitments-section {
    max-width: 100vw !important;
    width: 100vw !important;
    border-radius: 0 !important;
    padding: 22px 2vw !important;
    margin: 0 auto 24px auto !important;
    box-sizing: border-box !important;
  }
  /* ヘッダー＆ナビ */
  .site-header {
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    height: 56px;
    min-height: 56px;
    padding: 0 4vw 0 0;
    position: sticky;
    top: 0;
  }
  .logo {
    height: 42px;
    width: auto;
    margin-left: 10px;
    max-width: 38vw;
  }
  .menu-toggle {
    display: block !important;
    background: none;
    border: none;
    font-size: 2.2rem;
    color: #003366;
    position: absolute;
    top: 10px;
    right: 18px;
    z-index: 1010;
  }
  .nav-menu {
    display: none;
    background: #003366;
    position: absolute;
    top: 56px;
    left: 0;
    width: 100vw;
    z-index: 1001;
  }
  .nav-menu.open {
    display: block;
    animation: fadeIn 0.22s;
  }
  .nav-menu ul {
    flex-direction: column;
    width: 100vw;
    padding: 0;
    margin: 0;
  }
  .nav-menu li {
    transform: none;
    background: #003366;
    height: auto;
    border-bottom: 1px solid #255;
    width: 100vw;
    padding: 0;
  }
  .nav-menu a {
    transform: none;
    padding: 18px 0;
    font-size: 1.05rem;
    width: 100vw;
    box-sizing: border-box;
    display: block;
  }
  /* ヒーロー動画 */
  .hero-video-container {
    height: 38vw;
    min-height: 180px;
    max-height: 40vh;
  }
  .hero-overlay h1 {
    font-size: clamp(1.1rem, 7vw, 1.7rem);
  }
  .hero-overlay p {
    font-size: clamp(0.97rem, 3vw, 1.1rem);
  }

  /* 特徴セクション */
  .features-section {
    flex-direction: column;
    padding: 18px 2vw;
    gap: 12px;
  }
  .feature-card {
    flex: 1 1 100%;
    min-width: 0;
    max-width: 100vw;
    aspect-ratio: 1.7/1;
    margin-bottom: 0;
    border-radius: 10px;
  }
  .feature-overlay {
    font-size: 1rem;
    padding: 10px;
  }
  /* ニュース */
  .news-section {
    padding: 22px 2vw !important;
  }
  .news-section h2 {
    font-size: 1.3rem;
    margin-bottom: 22px;
  }
  .news-grid {
    grid-template-columns: 1fr !important;
    gap: 14px;
  }
  .news-card {
    padding: 14px !important;
    border-radius: 10px;
  }
  .news-card h3 {
    font-size: 1.01rem;
  }

  /* コミットメント（SDGsなど） */
  .commitment-card {
    flex-direction: column !important;
    align-items: stretch;
    margin-bottom: 10px;
    padding: 0;
    border-radius: 10px;
  }
  .card-image, .card-text {
    width: 100% !important;
    padding: 14px 0 0 0 !important;
    min-width: 0 !important;
  }
  .card-text {
    padding: 14px !important;
    text-align: center;
  }
  .card-title {
    font-size: 1.1rem !important;
  }
  .card-description {
    font-size: 1rem !important;
  }

  /* Instagram */
  .insta-section {
    padding: 18px 2vw !important;
  }
  .insta-section h2 {
    font-size: 1.1rem !important;
  }
  .insta-frame {
    max-width: 98vw !important;
    min-width: 0 !important;
    height: 250px !important;
    border-radius: 10px !important;
  }

  /* フッター */
  .site-footer {
    flex-direction: column !important;
    align-items: center !important;
    padding: 14px 2vw !important;
    gap: 12px !important;
  }
  .footer-column,
  .site-footer .logo-container {
    flex: 1 1 100% !important;
    min-width: 0 !important;
    text-align: center !important;
    margin-bottom: 6px !important;
  }
  .footer-column p {
    font-size: 0.95rem !important;
  }
  .logo {
    height: 34px !important;
    margin-bottom: 5px !important;
    max-width: 35vw !important;
  }

  

  /* 画像・動画・iframe自動調整 */
  img, video, iframe {
    max-width: 100vw !important;
    height: auto !important;
    display: block !important;
  }

  /* 汎用テキスト縮小 */
  h1, h2, h3, h4, p, li, a, td, th, .zoom-in {
    font-size: clamp(0.97rem, 4.3vw, 1.1rem) !important;
    word-break: break-word;
  }
  .zoom-in {
    font-size: clamp(1.1rem, 6vw, 1.4rem) !important;
    white-space: normal !important;
  }
}
@media (max-width: 768px) {

  /* 横はみ出し防止: ニュース全体を幅100vwに上書き */
  #news.fullwidth-bg {
    width: 100vw !important;
    min-width: 0 !important;
    max-width: 100vw !important;
    left: 0 !important;
    right: 0 !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
    padding-left: 2vw !important;
    padding-right: 2vw !important;
    box-sizing: border-box !important;
  }

  .news-section,
  .commitments-section,
  .insta-section,
  .section,
  .site-footer {
    max-width: 100vw !important;
    width: 100vw !important;
    min-width: 0 !important;
    overflow-x: hidden !important;
    box-sizing: border-box !important;
    padding-left: 2vw !important;
    padding-right: 2vw !important;
  }

  .news-grid,
  .commitments-section,
  .voice-grid {
    width: 100vw !important;
    max-width: 100vw !important;
    min-width: 0 !important;
    box-sizing: border-box !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
    padding-left: 0 !important;
    padding-right: 0 !important;
  }

  /* ニュース記事自体もはみ出させない */
  .news-card,
  .commitment-card,
  .voice-card {
    max-width: 98vw !important;
    width: 98vw !important;
    box-sizing: border-box !important;
    margin-left: auto !important;
    margin-right: auto !important;
    overflow-x: hidden !important;
    border-radius: 10px !important;
  }

  /* Instagram埋め込みも調整 */
  .insta-frame {
    width: 98vw !important;
    max-width: 98vw !important;
    min-width: 0 !important;
    height: 250px !important;
    margin: 0 auto !important;
    display: block !important;
  }

  /* フッター各カラムも横スクロールしない */
  .site-footer,
  .footer-column {
    max-width: 100vw !important;
    width: 100vw !important;
    box-sizing: border-box !important;
    overflow-x: hidden !important;
  }
}
@media (max-width: 768px) {
  html {
    font-size: 13.2px !important; /* 全体文字サイズを自動縮小（調整可） */
  }
  body {
    overflow-x: hidden !important;
    width: 100vw !important;
    font-size: 1rem;
  }
  /* セクション/カード/記事 すべて幅調整＆中央 */
  .section,
  .news-section,
  .commitments-section,
  .features-section,
  .insta-section,
  .site-footer {
    max-width: 100vw !important;
    width: 100vw !important;
    min-width: 0 !important;
    margin: 0 auto 18px auto !important;
    padding: 12px 2vw !important;
    box-sizing: border-box !important;
    overflow-x: hidden !important;
  }
  .features-section {
    display: flex !important;
    flex-direction: column !important;
    gap: 16px !important;
    padding: 18px 2vw !important;
    width: 100vw !important;
    max-width: 100vw !important;
  }
  .feature-card {
    flex: 1 1 100% !important;
    max-width: 98vw !important;
    min-width: 0 !important;
    margin: 0 auto !important;
    aspect-ratio: 1.6/1 !important;
    font-size: 1rem !important;
    display: block !important;
  }
  .feature-overlay {
    font-size: 1.05rem !important;
    padding: 12px !important;
  }

  /* ニュースセクション横はみ出し補正 */
  #news.fullwidth-bg {
    width: 100vw !important;
    min-width: 0 !important;
    max-width: 100vw !important;
    left: 0 !important;
    right: 0 !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
    padding: 18px 2vw !important;
    box-sizing: border-box !important;
    overflow-x: hidden !important;
  }
  .news-section h2 {
    font-size: 1.12rem !important;
    text-align: center !important;
    word-break: keep-all !important;
  }
  .news-grid {
    grid-template-columns: 1fr !important;
    gap: 12px !important;
    width: 100vw !important;
    max-width: 100vw !important;
    margin: 0 auto !important;
    box-sizing: border-box !important;
  }
  .news-card {
    max-width: 96vw !important;
    width: 96vw !important;
    padding: 10px 8px !important;
    margin: 0 auto !important;
    font-size: 0.97rem !important;
    box-sizing: border-box !important;
  }
  .news-card h3 { font-size: 1.01rem !important; }
  .news-card p { font-size: 0.95rem !important; }

  /* コミットメント */
  .commitment-card,
  .voice-card {
    flex-direction: column !important;
    max-width: 98vw !important;
    width: 98vw !important;
    margin: 0 auto 8px auto !important;
    box-sizing: border-box !important;
    padding: 0 !important;
    overflow-x: hidden !important;
  }
  .card-image, .card-text {
    width: 100% !important;
    padding: 10px 0 0 0 !important;
    min-width: 0 !important;
  }
  .card-text {
    padding: 10px 8px !important;
    text-align: center !important;
  }
  .card-title { font-size: 1.1rem !important; }
  .card-description { font-size: 0.97rem !important; }

  /* Instagram */
  .insta-section h2 { font-size: 1rem !important;}
  .insta-frame {
    width: 96vw !important;
    max-width: 96vw !important;
    min-width: 0 !important;
    height: 230px !important;
    margin: 0 auto !important;
    display: block !important;
  }

  /* フッター調整 */
  .site-footer {
    flex-direction: column !important;
    align-items: center !important;
    justify-content: center !important;
    padding: 18px 2vw !important;
    gap: 10px !important;
    text-align: center !important;
  }
  .footer-column,
  .site-footer .logo-container {
    flex: 1 1 100% !important;
    min-width: 0 !important;
    text-align: center !important;
    margin: 0 auto 5px auto !important;
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: center !important;
  }
  .site-footer .logo {
    height: 42px !important;
    width: auto !important;
    margin: 0 auto 10px auto !important;
    display: block !important;
  }

  
}
@media (max-width: 768px) {

  html, body {
    font-size: 12px !important;
    width: 100vw !important;
    overflow-x: hidden !important;
    background: #f9f9f9;
  }
  body * {
    box-sizing: border-box !important;
    max-width: 100vw !important;
    word-break: break-word !important;
  }

  /* メインセクション共通 */
  .section,
  .news-section,
  .commitments-section,
  .features-section,
  .insta-section {
    width: 100vw !important;
    max-width: 100vw !important;
    padding: 12px 0 !important;
    margin: 0 auto 16px auto !important;
    border-radius: 8px !important;
    overflow-x: hidden !important;
  }

  /* ヒーロー動画 */
  .hero-video-container {
    height: 36vw !important;
    min-height: 180px !important;
    max-height: 36vh !important;
  }
  .hero-overlay h1, .hero-overlay p {
    font-size: 1.1rem !important;
    line-height: 1.3 !important;
    margin: 0 auto 5px auto !important;
    max-width: 90vw !important;
  }

  /* features-section */
  .features-section {
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    gap: 10px !important;
    padding: 8px 0 !important;
  }
  .feature-card {
    width: 96vw !important;
    min-width: 0 !important;
    max-width: 96vw !important;
    margin: 0 auto 10px auto !important;
    aspect-ratio: 16/7 !important;
    font-size: 0.95rem !important;
  }
  .feature-overlay {
    font-size: 1rem !important;
    padding: 8px !important;
  }

  /* ニュース */
  #news.fullwidth-bg {
    width: 100vw !important;
    margin: 0 !important;
    left: 0 !important;
    right: 0 !important;
    padding: 8px 0 !important;
    overflow-x: hidden !important;
  }
  .news-section h2 {
    font-size: 1rem !important;
    padding: 0 !important;
    text-align: center !important;
    margin: 0 0 12px 0 !important;
    max-width: 100vw !important;
    word-break: break-word !important;
  }
  .news-grid {
    grid-template-columns: 1fr !important;
    gap: 10px !important;
    width: 98vw !important;
    margin: 0 auto !important;
  }
  .news-card {
    width: 94vw !important;
    max-width: 94vw !important;
    margin: 0 auto 8px auto !important;
    padding: 8px 6px !important;
    font-size: 0.93rem !important;
  }
  .news-card h3 { font-size: 1rem !important; }
  .news-card p { font-size: 0.89rem !important; }

  /* コミットメント */
  .commitment-card {
    flex-direction: column !important;
    width: 98vw !important;
    max-width: 98vw !important;
    margin: 0 auto 8px auto !important;
    padding: 0 !important;
  }
  .card-image, .card-text {
    width: 100% !important;
    padding: 8px 0 0 0 !important;
  }
  .card-text {
    padding: 8px 4px !important;
    text-align: center !important;
  }
  .card-title { font-size: 1rem !important; }
  .card-description { font-size: 0.88rem !important; }

  /* Instagram */
  .insta-section h2 { font-size: 0.99rem !important;}
  .insta-frame {
    width: 96vw !important;
    max-width: 96vw !important;
    height: 180px !important;
    margin: 0 auto !important;
    display: block !important;
  }

  /* フッター中央寄せ＆会社ロゴ */
  .site-footer {
    flex-direction: column !important;
    align-items: center !important;
    justify-content: center !important;
    padding: 8px 0 !important;
    gap: 5px !important;
    text-align: center !important;
  }
  .footer-column, .site-footer .logo-container {
    flex: 1 1 100% !important;
    min-width: 0 !important;
    text-align: center !important;
    margin: 0 auto 3px auto !important;
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: center !important;
  }
  .site-footer .logo {
    height: 38px !important;
    width: auto !important;
    margin: 0 auto 5px auto !important;
    display: block !important;
  }

 
  /* その他全部縮小 */
  .section *, .news-section *, .features-section *, .commitments-section *, .insta-section *, .site-footer * {
    font-size: 0.97em !important;
    line-height: 1.35 !important;
    max-width: 100vw !important;
  }
}
@media (max-width: 768px) {
  .insta-section {
    padding-top: 28px !important;
    padding-bottom: 54px !important;
  }
  .insta-frame {
    height: 480px !important;
    min-height: 300px !important;
    max-width: 98vw !important;
    margin: 0 auto !important;
    display: block !important;
  }
}
@media (max-width: 768px) {
  .hero-overlay h1, .hero-overlay p {
    white-space: nowrap !important;
    overflow: hidden;
    text-overflow: ellipsis;
    font-size: min(6vw, 1.3rem);   /* 幅に応じて自動縮小 */
    width: 100vw;
    margin: 0 auto;
    letter-spacing: 0.05em;
    max-width: 98vw;
  }
  .hero-overlay {
    padding: 0 2vw !important;
    box-sizing: border-box;
  }
}
@media (max-width: 768px) {
  .commitment-card {
    flex-direction: column;
    align-items: center;
  }
  .card-image {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 0;
    padding: 10px 0 0 0;
    box-sizing: border-box;
  }
  .card-image img {
    width: auto;
    max-width: 90vw;
    height: auto;
    max-height: 32vw; /* ← 画面幅の3割強を上限に縮小 */
    object-fit: contain;
    display: block;
    margin: 0 auto;
  }
  .card-text {
    width: 100%;
    padding: 14px 6vw 18px 6vw;
    text-align: center;
    box-sizing: border-box;
  }
  .card-title, .card-description {
    font-size: min(4vw, 1.1rem);
  }
}
@media (max-width: 768px) {
  .commitment-card {
    flex-direction: column;
    align-items: center;
  }
  .card-image {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 8px 0 0 0;
    box-sizing: border-box;
    min-height: 0;
    max-height: 35vw; /* 高さも厳しく制限 */
    overflow: visible;
  }
  .card-image img {
    max-width: 80vw;      /* 横幅をさらに厳しく制限 */
    max-height: 26vw;     /* 高さもさらに厳しく制限 */
    width: auto !important;
    height: auto !important;
    object-fit: contain !important;
    display: block !important;
    margin: 0 auto !important;
    box-sizing: border-box;
  }
  .card-text {
    width: 100%;
    padding: 10px 4vw 14px 4vw;
    text-align: center;
    box-sizing: border-box;
  }
  .card-title, .card-description {
    font-size: min(3.7vw, 1.1rem);
  }
}
@media (max-width: 768px) {
  .commitment-card {
    flex-direction: column;
    align-items: center;
  }
  .card-image {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 8px 0 0 0;
    box-sizing: border-box;
    min-height: 0;
    max-height: 35vw; /* 高さも厳しく制限 */
    overflow: visible;
  }
  .card-image img {
    max-width: 80vw;      /* 横幅をさらに厳しく制限 */
    max-height: 26vw;     /* 高さもさらに厳しく制限 */
    width: auto !important;
    height: auto !important;
    object-fit: contain !important;
    display: block !important;
    margin: 0 auto !important;
    box-sizing: border-box;
  }
  .card-text {
    width: 100%;
    padding: 10px 4vw 14px 4vw;
    text-align: center;
    box-sizing: border-box;
  }
  .card-title, .card-description {
    font-size: min(3.7vw, 1.1rem);
  }
}
@media (max-width: 768px) {
  .commitment-card {
    flex-direction: column;
    align-items: center;
  }
  .card-image {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 8px 0 0 0;
    box-sizing: border-box;
    min-height: 0;
    max-height: 35vw; /* 高さも厳しく制限 */
    overflow: visible;
  }
  .card-image img {
    max-width: 80vw;      /* 横幅をさらに厳しく制限 */
    max-height: 26vw;     /* 高さもさらに厳しく制限 */
    width: auto !important;
    height: auto !important;
    object-fit: contain !important;
    display: block !important;
    margin: 0 auto !important;
    box-sizing: border-box;
  }
  .card-text {
    width: 100%;
    padding: 10px 4vw 14px 4vw;
    text-align: center;
    box-sizing: border-box;
  }
  .card-title, .card-description {
    font-size: min(3.7vw, 1.1rem);
  }
}
@media (max-width: 900px) {
  .commitment-card {
    flex-direction: column;
    align-items: center;
    min-width: 0 !important;
    max-width: 100vw !important;
    overflow: visible !important;
    padding: 0 !important;
  }
  .card-image {
    width: 100vw !important;
    min-width: 0 !important;
    max-width: 100vw !important;
    min-height: 0 !important;
    max-height: 33vw !important;
    padding: 0 !important;
    margin: 0 auto !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    overflow: visible !important;
    background: none !important;
    box-sizing: border-box !important;
  }
  .card-image img {
    display: block !important;
    width: auto !important;
    height: auto !important;
    max-width: 80vw !important;
    max-height: 28vw !important;
    object-fit: contain !important;
    margin: 0 auto !important;
    padding: 0 !important;
    border: none !important;
    background: none !important;
    overflow: visible !important;
  }
  .card-text {
    width: 100vw !important;
    padding: 14px 6vw 22px 6vw !important;
    text-align: center !important;
    min-width: 0 !important;
    box-sizing: border-box !important;
  }
  .card-title, .card-description {
    font-size: min(4vw, 1.1rem) !important;
    line-height: 1.5;
  }
}
@media (max-width: 900px) {
  .commitment-card {
    flex-direction: column;
    align-items: center;
    min-width: 0 !important;
    max-width: 100vw !important;
    overflow: visible !important;
    padding: 0 !important;
  }
  .card-image {
    width: 100vw !important;
    min-width: 0 !important;
    max-width: 100vw !important;
    min-height: 0 !important;
    max-height: 33vw !important;
    padding-top: 24px !important;  /* ←ここで上部の余白を追加 */
    padding-bottom: 0 !important;
    margin: 0 auto !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    overflow: visible !important;
    background: none !important;
    box-sizing: border-box !important;
  }
  .card-image img {
    display: block !important;
    width: auto !important;
    height: auto !important;
    max-width: 80vw !important;
    max-height: 28vw !important;
    object-fit: contain !important;
    margin: 0 auto !important;
    padding: 0 !important;
    border: none !important;
    background: none !important;
    overflow: visible !important;
  }
  .card-text {
    width: 100vw !important;
    padding: 14px 6vw 22px 6vw !important;
    text-align: center !important;
    min-width: 0 !important;
    box-sizing: border-box !important;
  }
  .card-title, .card-description {
    font-size: min(4vw, 1.1rem) !important;
    line-height: 1.5;
  }
}
/* スマホ専用調整 */
@media (max-width: 768px) {
  .fixed-contact {
    bottom: 16px !important;
    right: 16px !important;
  }

  .fixed-contact img.contact-icon {
    width: 65px !important;
    max-width: 100% !important;
  }
}


