/* Reset and Base Styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body, html {
  font-family: "Noto Sans JP", sans-serif;
  overflow-x: hidden;
}

html {
  scroll-behavior: smooth;
}

/* Container */
.container {
  background-color: #d2d7dceb;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-items: center;
  text-align: center;
  padding: 2vh 5vw;
  min-height: 100vh;
}

.headline {
  font-size: clamp(1.5rem, 4vw, 2.5rem);
  font-weight: bold;
  color: #000;
  margin-top: 2rem;
  margin-bottom: 3rem;
  padding: 0 1rem;
  line-height: 1.4;
}

.logo {
  max-width: 800px;
  width: 90%;
  height: auto;
  margin-bottom: 2rem;
}

.subtext {
  font-size: clamp(1rem, 2.5vw, 1.5rem);
  font-weight: bold;
  color: #000;
  margin-top: 2rem;
  text-align: center;
  width: 90%;
  max-width: 1200px;
  line-height: 1.6;
  padding: 0 1rem;
}

/* PLC Info Boxes */
.plc-info {
  display: flex;
  justify-content: center;
  gap: 4vw;
  flex-wrap: wrap;
  margin-top: 3rem;
  margin-bottom: 3rem;
  width: 100%;
  max-width: 1200px;
}

.plc-box {
  flex: 1 1 400px;
  background-color: #fff;
  border: 3px solid #999;
  padding: 3rem 2rem;
  text-align: left;
  box-shadow: 2px 2px 8px rgba(0,0,0,0.1);
  border-radius: 20px;
  margin: 1rem;
}

.plc-box h2 {
  font-size: clamp(1.2rem, 2.5vw, 1.6rem);
  margin-bottom: 2rem;
  text-align: center;
}

.plc-box p {
  font-size: clamp(0.9rem, 1.5vw, 1.1rem);
  line-height: 2;
  text-align: center;
  font-weight: bold;
}

.right-box {
  border: 10px solid #ed8d51;
  border-radius: 20px;
}


/* Warning Section */
.warning-section {
  position: relative;
  background: linear-gradient(135deg, #01253f 0%, #000000 70%);
  color: white;
  width: 100%;
  min-height: 80vh;
  padding: 4rem 5vw;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  overflow: hidden;
}

.warning-section::before {
  content: '';
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 40%;
  height: 80%;
  background-image: url('/assets/images/commodity/intalogic5lp/1.png');
  background-size: contain;
  background-repeat: no-repeat;
  background-position: left center;
  opacity: 0.3;
  z-index: 0;
}

.text-block {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  z-index: 2;
  position: relative;
  padding: 0 1rem;
    white-space: nowrap;
    
}

.text-block p {
  text-align: center;       /* 文字還是置中 */
  max-width: 900px;         /* 保持一個合理的行寬 */
  margin: 0 auto;
  margin-left: 20px; 
}


.headline-line {
  font-size: clamp(1.5rem, 4vw, 2.8rem);
  font-weight: bold;
  line-height: 1.4;
  margin-bottom: 2rem;
}

.text-block p {
  font-size: clamp(1rem, 2vw, 1.5rem);
  line-height: 1.8;
  font-weight: bold;
  margin-top: 2rem;
  max-width: 900px;
}

.p-subline {
  display: block;
  text-align: center;
  margin: 0 auto;
  width: max-content;
  margin-left: 320px;  /* ← 調整這裡就能往右移 */
}

/* Problem Sections - Improved Layout */
.problem-section,
.problem2-section,
.problem3-section {
  padding: 4rem 5vw;
  width: 100%;
  overflow: hidden;
}

.problem-section {
  background-color: #fff;
}

.problem2-section {
  background-color: #e5f0f8;
}

.problem3-section {
  background-color: #fff;
}

.problem-content,
.problem2-wrapper,
.problem3-wrapper {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 4rem;
  max-width: 1400px;
  margin: 0 auto;
  position: relative;
}

/* Circle Styling */
.circle-text,
.problem2-circle,
.problem3-circle {
  background-color: #aac2cd;
  border-radius: 50%;
  width: min(500px, 80vw);
  height: min(500px, 80vw);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  flex-shrink: 0;
  padding: 2rem;
}

.problem2-circle {
  background-color: #a8d2e9;
}

.problem3-circle {
  background-color: #b2cbd5;
}

.problem-title,
.circle-title {
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: bold;
  margin-bottom: 2rem;
}

.problem-sub,
.circle-subtitle {
  font-size: clamp(1.2rem, 2vw, 1.5rem);
  font-weight: bold;
  line-height: 1.5;
}


/* Image Styling - Fixed Positioning */
.problem-image,
.problem2-image,
.problem3-image {
  flex-shrink: 0;
  width: min(400px, 40vw);
  display: flex;
  align-items: center;
  justify-content: center;
}

.problem-image img,
.problem2-image img,
.problem3-image img {
  width: 100%;
  max-width: 520px;
  height: auto;
  display: block;
}

/* Caption Boxes */
.problem-caption,
.problem2-caption,
.problem3-caption {
  display: flex;
  align-items: center;
  padding: 1.5rem 2rem;
  border-radius: 20px;
  gap: 2rem;
  max-width: 1250px;
  margin: 3rem auto 0;
}

.problem-caption {
  background-color: #e5f0f8;
}

.problem2-caption {
  background-color: #ffffff;
}

.problem3-caption {
  background-color: #e5f0f8;
}

.problem-caption img,
.problem2-caption img,
.problem3-caption img {
  width: min(120px, 20vw);
  height: auto;
  flex-shrink: 0;
}

.problem3-caption img {
  width: min(100px, 15vw);  /* 再比 120px 小一點點 */
  height: auto;
}


.problem-caption p,
.problem2-caption p,
.problem3-caption p {
font-size: clamp(0.9rem, 1.5vw, 1.2rem);
  font-weight: bold;
  line-height: 1.6;
  margin: 0;
}

/* Highlight Section */
.highlight-section {
  width: 100%;
  min-height: 90vh;
  background: linear-gradient(135deg, #01253f 0%, #000000 70%);
  color: white;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  padding: 4rem 2rem;
}

.highlight-text p {
font-size: clamp(1.2rem, 2.5vw, 2.2rem);
  line-height: 1.8;
  margin: 1rem 0;
  font-weight: bold;
  max-width: 1200px;
}

.highlight-text .product {
  font-weight: bold;
}

.highlight-text .highlight {
  color: orange;
  font-weight: bold;
  font-size: 1.1em;
}

.logo-image {
  max-width: 800px;
  width: 90%;
  height: auto;
  margin-top: 2rem;
}

/* Solution Sections */
.solution-layout,
.solution2-section,
.solution3-section {
  padding: 4rem 5vw;
  width: 100%;
}

.solution-layout {
  display: flex;
  flex-wrap: wrap;
  gap: 3rem;
  align-items: center;
  justify-content: center;
  background-color: #ffffff;
}

.solution2-section {
  background-color: white;
}

.solution3-section {
  background-color: #e3f0fa;
}

/* Solution Circles */
.solution-circle-wrap,
.solution2-right,
.solution3-circle-wrap {
  flex: 1 1 auto;
  display: flex;
  justify-content: center;
  align-items: center;
  min-width: 300px;
}

.solution-circle-wrap {
  flex-direction: column;   
  align-items: center;     
  gap: 3rem;               
}


.solution-circle-wrap .solution1-footer-note {
  width: min(500px, 80vw);  
  margin-top: 2rem;           
  padding: 0 0.5rem;        
  text-align: center;    
      font-size: 1.2rem;
}


.solution-circle,
.solution2-circle,
.solution3-circle {
  width: min(500px, 80vw);
  height: min(500px, 80vw);
  border-radius: 50%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  padding: 2rem;
}

/* 讓三個圓都用同一種流動外環 */
.solution-circle.outlined,
.solution2-circle,
.solution3-circle {
  position: relative;
  background: #fff;
  border: none;             /* 取消原本的實線邊框 */
  overflow: visible;        /* 給 pseudo elements 空間 */
  isolation: isolate;       /* 確保層級隔離，方便遮罩 */
}

/* 外層：彩色流動環 */
.solution-circle.outlined::before,
.solution2-circle::before,
.solution3-circle::before {
  content: "";
  position: absolute;
  inset: -40px;             /* 外環厚度（可調） */
  border-radius: 50%;
  background:
    conic-gradient(
      from 0deg,
      #90c2e7 0%,
      #5bb3de 25%,
      #24688a 50%,
      #5bb3de 75%,
      #90c2e7 100%
    );
  animation: ring-spin 6s linear infinite;  /* 轉動速度可改 */
  z-index: -1;
  filter: saturate(110%);
}

/* 內層：把中間蓋回白色，形成圓環 */
.solution-circle.outlined::after,
.solution2-circle::after,
.solution3-circle::after {
  content: "";
  position: absolute;
  inset: -6px;              /* 控制內孔大小：數值越大，內孔越小 */
  border-radius: 50%;
  background: #fff;
  z-index: -1;
}

/* 轉動動畫 */
@keyframes ring-spin {
  to { transform: rotate(360deg); }
}

/* 使用者偏好減少動效時，停用動畫 */
@media (prefers-reduced-motion: reduce) {
  .solution-circle.outlined::before,
  .solution2-circle::before,
  .solution3-circle::before {
    animation: none;
  }
}

.solution-title,
.solution2-title,
.solution3-title {
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: bold;
  margin-bottom: 2rem;
  color: #000;
}


.solution-sub,
.solution2-sub,
.solution3-sub {
  font-size: clamp(1.2rem, 2vw, 1.5rem);
  font-weight: bold;
  color: #000;
  line-height: 1.5;
}

/* Solution Content */
.solution-right,
.solution2-left,
.solution3-content {
  flex: 2 1 600px;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  max-width: 800px;
}

.block {
  background-color: #e3f0fa;
  padding: 1rem;
  border-radius: 20px;
  text-align: center;
  min-height: 130px;
}

.block-header {
  background-color: #90c2e7;
  color: #000000;
  font-size: clamp(1rem, 1.5vw, 1.25em);
  font-weight: bold;
  padding: 0.8rem 1rem;
  border-radius: 20px 20px 0 0;
  text-align: left;
  margin: -1rem -1rem 1rem -1rem;
  width: calc(100% + 2rem);
}

/* Responsive Images in Solutions */
.image-row,
.image-row1 {
  display: flex;
  justify-content: center;
  gap: 2rem;
  flex-wrap: wrap;
  margin-bottom: 1rem;
  align-items: center;
}

.hw-image,
.sw-image {
  display: flex;
  justify-content: center;
  align-items: center;
}

.hw-image {
  width: min(140px, 15vw);
}

.sw-image {
  width: min(230px, 30vw);
}

.hw-image img,
.sw-image img {
  max-width: 100%;
  height: auto;
  object-fit: contain;
}

.sw-image-11 {
  width: min(200px, 30vw); /* 自訂大小 */
  height: auto;
}

/* Voices Section */
.solution3-voices {
  background: linear-gradient(135deg, #01253f 0%, #000000 70%);
  color: white;
  padding: 4rem 2rem;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.solution3-voices-title {
  font-size: clamp(1.5rem, 4vw, 2.8rem);
  font-weight: bold;
  margin-bottom: 3rem;
}

.solution3-voices-bubbles {
  display: flex;
  justify-content: center;
  gap: 3rem;
  flex-wrap: wrap;
  z-index: 1;
  position: relative;
}

.solution3-bubble {
  background-color: white;
  color: black;
  border-radius: 50%;
  width: min(400px, 80vw);
  height: min(400px, 80vw);
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 2rem;
  font-size: clamp(0.85rem, 1.2vw, 1.1rem);
  line-height: 1.8;
  box-shadow: 0 0 12px rgba(0,0,0,0.1);
  text-align: center;
  font-weight: 600;
}

.solution3-voices-illustration {
  position: absolute;
  bottom: 0;
  left: 1rem;
  width: min(240px, 30vw);
  opacity: 0.8;
}

/* Support Section */
.support-section {
  background-color: #e5e5e5;
  color: black;
  padding: 4rem 2rem;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.support-section h1 {
  font-size: clamp(2rem, 4vw, 2.5rem);
  font-weight: bold;
  margin-bottom: 1rem;
}

.support-section p.subtitle {
  font-size: clamp(1rem, 2vw, 1.5rem);
  font-weight: bold;
  margin-bottom: 3rem;
  padding: 0 1rem;
}

.support-box {
  max-width: 700px;
  margin: 0 auto;
  background-color: white;
  border: 4px solid #17333d;
  border-radius: 20px;
  padding: 2rem 1.5rem;
  text-align: left;
  line-height: 1.8;
  font-size: clamp(1rem, 1.5vw, 1.125rem);
  position: relative;
  z-index: 2;
}

.support-box h2 {
  font-size: clamp(1.2rem, 2vw, 1.5rem);
  font-weight: bold;
  margin-top: 1.5rem;
  margin-bottom: 0.5rem;
}

.support-box h2:first-child {
  margin-top: 0;
}

.support-image {
  position: absolute;
  bottom: 2rem;
  right: 2rem;
  width: min(340px, 40vw);
  height: auto;
  z-index: 1;
}
/* === Support（技術サポート）: 狭いPC幅でのかぶり防止 === */
@media (max-width: 1024px) and (min-width: 769px) {
  .support-section {
    padding-right: 260px; /* 画像ぶん右側に余白を確保して本文のかぶりを防ぐ */
  }
  .support-image {
    width: 220px;
    right: 1rem;
    bottom: 1rem;
  }
}

/* Footer */
.footer {
  background: linear-gradient(135deg, #01253f 0%, #000000 70%);
  color: white;
  padding: 3rem 2rem 2rem;
  position: relative;
}

.footer-container {
  max-width: 1200px;
  width: 100%;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  gap: 3rem;
  flex-wrap: wrap;
}

.footer-left {
  flex: 1.5;
  display: flex;
  align-items: flex-start;
  gap: 2rem;
  flex-wrap: wrap;
}

.footer-logo {
  width: min(140px, 30vw);
  height: auto;
  flex-shrink: 0;
}

.company-name {
  font-size: clamp(1.2rem, 2vw, 1.5rem);
  font-weight: bold;
  margin-bottom: 1rem;
}

.address-block {
  line-height: 1.8;
  font-size: clamp(0.8rem, 1vw, 0.9rem);
}

.footer-right {
  flex: 1.2;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.5rem;
}

.footer-phone {
  display: flex;
  align-items: baseline;
  justify-content: center;
  gap: 0.5rem;
  margin-bottom: 1.5rem;   /* ★ 電話和按鈕的間距 */
}


.footer-numbers {
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: bold;
  color: white;
  display: block;
  margin-top: 0.5rem;
}

.footer-contact-button {
  background-color: transparent;
  color: white;
  padding: 1rem 2rem;
  font-size: clamp(1rem, 1.5vw, 1.125rem);
  border: 1px solid white;
  text-decoration: none;
  transition: all 0.3s ease;
  white-space: nowrap;
  width: 100%;
  max-width: 350px;
  text-align: center;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}

.footer-contact-button::after {
  content: '>';
  font-size: 1.5em;
  margin-left: 1rem;
  transition: transform 0.3s ease;
}

.footer-contact-button:hover {
  background-color: rgba(255, 255, 255, 0.1);
  border-color: #90c2e7;
  color: #90c2e7;
}
/* お問い合わせブロック内を中央寄せにする */
.footer-contact-section{
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
}

/* ボタンを親幅の中央に固定 */
.footer-contact-button{
  margin: 0 auto;
}

.footer-caption {
  font-size: clamp(1rem, 2vw, 1.25rem);
  font-weight: bold;
  color: white;
  text-align: center;
  margin-bottom: 0.1rem;
}
/* フッター見出し：基本は1行 */
.footer-caption {
  white-space: nowrap;
  line-height: 1.2;
}

/* 読み仮名だけ少し小さくして横幅を節約 */
.footer-caption-kana {
  font-size: 0.85em;
  margin: 0 0.15em;
  opacity: 0.9;
}

/* もしスマホで溢れるなら、スマホだけ折り返し許可（任意） */
@media (max-width: 480px) {
  .footer-caption {
    white-space: normal;
  }
}

.footer-label {
  font-size: clamp(1rem, 2vw, 1.2rem);
  font-weight: bold;
}


.footer-sns {
  display: flex;
  gap: 1.5rem;
  justify-content: center;
}

.footer-sns img {
  height: min(60px, 10vw);
  transition: opacity 0.3s ease, transform 0.2s ease;
  padding: 0.5rem;
}

.footer-copy {
  font-size: 0.7rem;
  color: #ffffff;
  opacity: 0.7;
  text-align: center;
  margin-top: 2rem;
}
/* PC幅ではフッター左右カラムを1行に固定し、左側（ロゴ＋事業所）も折り返さない */
@media (min-width: 769px) {
  .footer-container {
    flex-wrap: nowrap;          /* 左右（footer-left / footer-right）を同じ行に */
    align-items: flex-start;
  }

  .footer-left {
    flex-wrap: nowrap;          /* ロゴと事業所情報を同じ行に固定 */
    min-width: 0;
    flex: 1 1 auto;
  }

  .footer-info {
    min-width: 0;               /* 文章がある要素はこれがないと変な折返しになることがある */
  }

  /* 右側を固定幅にして、左側の幅が奪われすぎないようにする（数値は好みで調整） */
  .footer-right {
    flex: 0 0 520px;            /* ←大きすぎると左が潰れて折り返すので調整ポイント */
  }
}


.solution2-layout {
  display: flex;
  flex-wrap: wrap;
  gap: 3rem;
  align-items: center;
  justify-content: center;
  max-width: 1400px;
  margin: 0 auto;
    flex-direction: row-reverse;
}

.solution2-left {
  flex: 1 1 600px;
  max-width: 800px;

  display: flex;           /* 讓裡面的 .solution2-illustration 可以用 gap 控制 */
  flex-direction: column;  /* 垂直排列 */
  gap: 0.1rem;             /* 控制上下的間距，越小越靠近 */
}

.solution2-right {
  display: flex;    
  flex-direction: column;
  align-items: center;
  gap: 3rem;       
    order: 1; 
}

.solution2-right .solution2-footer-note {
  margin-top: 2rem;
  width: min(500px, 80vw);
  text-align: center;
  padding: 0 0.5rem;
    font-size: 1.2rem;
}


/* Fix for Solution 3 Layout */
.solution3-layout {
  display: flex;
  flex-wrap: wrap;
  gap: 3rem;
  align-items: center;
  justify-content: center;
  max-width: 1400px;
  margin: 0 auto;
    flex-direction: row-reverse;
}

@media (min-width: 1025px) {
  .solution3-layout {
    justify-content: space-between;             /* 內容貼容器左、圓圈貼右 */
  gap: clamp(4rem, 8vw, 12rem);              /* 兩者之間再拉開一點 */
  }
  .solution3-content {
    margin-right: auto;                          /* 在 row-reverse 下，這行可把內容推到最左 */
  }
  .solution3-circle-wrap {
    flex: 0 0 520px;                             /* 固定圓圈區寬度，避免被擠動 */
  }
}

.solution3-circle-wrap {
  flex: 0 1 auto;
  min-width: 300px;
}

.solution3-content {
  flex: 1 1 600px;
  max-width: 800px;
    text-align: left;
}


/* Sidebar */
.sidebar-contact {
  position: fixed;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  z-index: 9999;
}

.sidebar-content {
  background: linear-gradient(135deg, #8f8c8c 0%, #51b1e9 100%);
  padding: 1rem 0.75rem;
  box-shadow: -2px 2px 10px rgba(0, 0, 0, 0.2);
  border-radius: 10px 0 0 10px;
}

.sidebar-button {
  color: white;
  text-decoration: none;
  font-weight: bold;
  font-size: 1.2rem;        /* ← 字體比原本大一點 (1rem → 1.2rem) */
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.6rem;                /* 圖示和文字間距加大一點 */
  padding: 0.6rem 1rem;   /* 給按鈕更多內邊距，看起來更大 */
  border-radius: 18px;      /* 可加圓角讓按鈕更像按鈕 */
  transition: transform 0.2s ease;

}


.sidebar-icon {
  width: 36px;            /* ← 原本 50px，縮小圖示 */
  height: 36px;
  transform: scale(1.3);    /* ← 之前有放大 1.3 倍，可以拿掉或改成 1 */
}

.sidebar-button span {
  writing-mode: vertical-rl;
  text-orientation: upright;
  letter-spacing: 0.1em;
  line-height: 1.2;
}

.sidebar-button:hover {
  color: rgb(255, 231, 167); 
}


/* Mobile Responsive Design */
@media (max-width: 768px) {
  /* Hide problem section images on mobile */
  .problem-image,
  .problem2-image,
  .problem3-image {
    display: none;
  }
  
  /* Hide decorative images */
  .warning-section::before,
  .solution3-voices-illustration,
  .support-image {
    display: none;
  }
  
  /* Adjust problem sections for mobile */
  .problem-content,
  .problem2-wrapper,
  .problem3-wrapper {
    flex-direction: column;
    gap: 2rem;
  }
  
  .circle-text,
  .problem2-circle,
  .problem3-circle {
    width: 90vw;
    height: 90vw;
    max-width: 400px;
    max-height: 400px;
  }
  
  /* Caption boxes mobile */
  .problem-caption,
  .problem2-caption,
  .problem3-caption {
    flex-direction: column;
    text-align: center;
    padding: 1.5rem 1rem;
    gap: 1rem;
  }
  
  /* Solution sections mobile */
  .solution-layout,
  .solution2-layout,
  .solution3-layout {
    flex-direction: column;
    align-items: center;
    gap: 2rem;
  }
  
  .solution-circle,
  .solution2-circle,
  .solution3-circle {
    width: 85vw;
    height: 85vw;
    max-width: 350px;
    max-height: 350px;
  }
  
  .solution-right,
  .solution2-left,
  .solution3-content {
    width: 100%;
    padding: 0 1rem;
  }
  
  /* Voices bubbles mobile */
  .solution3-voices-bubbles {
    flex-direction: column;
    gap: 2rem;
  }
  
  .solution3-bubble {
    width: 85vw;
    height: 85vw;
    max-width: 320px;
    max-height: 320px;
  }
  
  /* Footer mobile */
  .footer-container {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }
  
  .footer-left {
    flex-direction: column;
    align-items: center;
  }
  
  /* Sidebar mobile */
  .sidebar-contact {
    bottom: 20px;
    top: auto;
    transform: none;
  }
  
  .sidebar-content {
    padding: 0.75rem 0.5rem;
  }
  
  .sidebar-icon {
    width: 40px;
    height: 40px;
  }
  
  .sidebar-button {
    font-size: 0.875rem;
    gap: 0.5rem;
  }
}

/* Tablet adjustments */
@media (min-width: 769px) and (max-width: 1024px) {
  .problem-image,
  .problem2-image,
  .problem3-image {
    width: 35%;
  }
  
  .circle-text,
  .problem2-circle,
  .problem3-circle {
    width: 400px;
    height: 400px;
  }
  
  .solution-circle,
  .solution2-circle,
  .solution3-circle {
    width: 400px;
    height: 400px;
  }
}

/* Extra small devices */
@media (max-width: 480px) {
  .headline {
    font-size: 1.25rem;
  }
  
  .highlight-text p {
    font-size: 1.25rem;
  }
  
  .problem-title,
  .circle-title,
  .solution-title,
  .solution2-title,
  .solution3-title {
    font-size: 1.5rem;
  }
  
  .problem-sub,
  .circle-subtitle,
  .solution-sub,
  .solution2-sub,
  .solution3-sub {
    font-size: 1rem;
  }
  
  .block-header {
    font-size: 0.9rem;
    padding: 0.6rem 0.75rem;
  }
  
  .support-box {
    padding: 1.5rem 1rem;
  }
  
  .footer-numbers {
    font-size: 1.5rem;
  }
  
  /* Hide images in solution sections on very small screens */
  .image-row,
  .image-row1 {
    gap: 1rem;
  }
  
  .hw-image,
  .sw-image {
    width: 30%;
    min-width: 80px;
  }
  
  .sw-box-group {
    width: 100%;
  }
  
  .sw-box {
    width: 100%;
    padding: 0.5rem 1rem;
    font-size: 0.9rem;
  }
}

.image-row1 .sw-box-group {
  display: flex;
  flex-direction: column;
  align-items: center;     /* 讓下面每個框水平置中 */
  gap: 0.6rem;             /* 框與框的間距 */
  width: clamp(280px, 44vw, 420px); /* 桌機固定寬、手機自適應 */
}

.image-row1 .sw-box-group .sw-box {
  width: 100%;
  padding: 0.4rem 0.8rem;
  text-align: center;
  font-weight: 700;
font-size:1.2rem;


  background: #b7d5f0;                 /* 淺藍底 */
  border: 1px solid rgba(0,0,0,0.2);   /* 外框 */
  border-radius: 6px;                   /* 圓角 */
}


/* Utility classes */
.white-spacer {
  height: 50px;
}

.plus-sign {
  font-size: clamp(1.5rem, 3vw, 2.5rem);
  font-weight: bold;
  color: #333;
  margin: 0 1rem;
  transform: translateX(-15px);
}

/* Arrow platforms responsive */
.arrow-platforms {
  display: flex;
  justify-content: space-around;
  align-items: center;
  max-width: 100%;
  margin: 1.5rem auto 0;
  font-size: clamp(0.8rem, 1.5vw, 1.2rem);
  font-weight: bold;
  gap: 1rem;
  flex-wrap: wrap;
}

.arrow-image {
  display: block;
  max-width: 100%;
  width: 100%;
  height: auto;
  margin: 0 auto;
}

/* Solution illustrations */
.solution2-illustration {
  background-color: #e3f0fa;
  border-radius: 20px;
  overflow: hidden;
  width: 100%;
  max-width: 950px;
  margin: 0 auto 2rem;
 
}


.solution2-illustration img,
.gif-demo {
  width: 80%;
  height: auto;
  display: block;
  margin: 2rem auto;
}

.solution2-section .solution2-illustration img,
.solution2-section .gif-demo {
  width: 60%;          /* 想更小改 55%/50% */
  margin: 1.25rem auto ;
}

.solution2-section .img-conventional {
  width: 45%!important;   /* 你可以改成 55% / 45% 看效果 */
  margin: 1.25rem auto;
  display: block;
  height: auto;
}


.solution2-label {
  background-color: #90c2e7;
  color: black;
  font-weight: bold;
  padding: 0.75rem 1rem;
  font-size: clamp(1rem, 1.5vw, 1.25rem);
}

.solution1-desc,
.solution2-desc,
.solution3-desc {
  font-size: clamp(0.85rem, 1.3vw, 1.1rem); /* 原本 1.4rem → 稍微縮小 */
  font-weight: bold;
  line-height: 1.8;
  text-align: left;         /* 改成靠左 */
  margin-top: 0.5rem;            /* 左右 margin 拿掉，讓它靠左 */
  padding: 0 1rem;
  max-width: 900px;
  position: static;         /* 不再用 top:-60px 這種硬推 */
    top: -40px; 
}
.solution2-desc {
  margin-top: 0.5rem;  /* 把與上方的距離縮小 */
  position: relative;
  top: -30px;          /* 整段往上移 30px，數字可依需求調整 */
}


/* Solution 3 blocks */
.solution3-block {
  background-color: #dce8f3;
  border-radius: 20px;
  overflow: hidden;
  width: 100%;
  max-width: 800px;
  margin-top: 0.1rem;
}

.solution3-section .solution3-content .solution3-block {
  background-color: #ffffff;
}

.solution3-content .block {
  background-color: #ffffff;  /* 改成白色 */
}



.solution3-label {
  background-color: #90c2e7;
  color: black;
  font-weight: bold;
  padding: 0.75rem 1rem;
  font-size: clamp(1rem, 1.5vw, 1.25rem);
  
}

.solution3-image-text {
  display: flex;
  gap: 2rem;
  padding: 1.5rem;
  align-items: center;
  flex-wrap: wrap;
  justify-content: center;
}

.solution3-img {
  width: min(220px, 50%);
  height: auto;
  border-radius: 10px;
}

.solution3-text {
  font-size: clamp(0.9rem, 1.2vw, 1.2rem);
  font-weight: 600;
  line-height: 1.7;
  text-align: left;
  flex: 1;
  min-width: 250px;
  padding: 0 1rem;
  
}

/* Application section */
.solution3-application {
  width: 100%;
  background-color: #dce8f3;
  padding: 4rem 2rem;
}

.solution3-application-inner {
  max-width: 1200px;
  margin: 0 auto;
  text-align: center;
}

.solution3-application-title {
  font-size: clamp(1rem, 1.5vw, 1.4rem);
  font-weight: bold;
  margin-bottom: 2rem;
  color: #111;
  line-height: 1.4;
  padding: 0 1rem;
}

.solution3-application-image img {
  width: 100%;
  max-width: 1200px;
  height: auto;
  display: block;
  margin: 0 auto;
  border-radius: 20px;
}

.solution3-application-note {
  text-align: center;
  font-size: clamp(1rem, 1.5vw, 1.4rem);
  font-weight: bold;
  color: #0e0e0e;
  margin-top: 2rem;
  line-height: 1.4;
  padding: 0 1rem;
}

.solution3-note {
  position: relative;
  top: -10px;   /* 繼續往上移 */
  left: -50px;  /* 往左移 200px，可依需要調整 */
}

/* Footer notes responsive */
.solution1-footer-note,
.solution2-footer-note {
  font-size: clamp(1rem, 1.5vw, 1.4rem);
  font-weight: bold;
  color: #000;
  line-height: 1.8;
  text-align: center;
  margin-top: 2rem;
  padding: 0 1rem;
}

@media (max-width: 768px) {
  .solution1-footer-note,
  .solution2-footer-note {
    margin: 1rem auto;
    transform: none;
  }
  
  .solution3-image-text {
    flex-direction: column;
  }
  
  .solution3-img {
    width: 50%;
    max-width: 300px;
  }
  
  .solution3-application-image img {
    border-radius: 10px;
  }
}

@media (min-width: 769px) {
  .image-row1 {
    flex-wrap: nowrap;      /* 不換行 */
    gap: 1.25rem;           /* 三者之間的縫 */
    justify-content: center;
    align-items: center;
  }
  .image-row1 .sw-image {
    flex: 0 0 auto;         /* 固定寬，不要被擠壓 */
  }
  .image-row1 .plus-sign {
    flex: 0 0 auto;         /* 確保＋號不被擠到新行 */
    margin: 0;              /* 用 gap 控制間距即可 */
  }
  .image-row1 .sw-box-group {
    flex: 0 0 auto;
    /* 縮短格子的橫向長度，避免總寬度超過容器而換行 */
    width: clamp(260px, 40vw, 380px);
  }
}
@media (max-width: 768px) {
  .image-row1 { flex-wrap: wrap; }
  .image-row1 .sw-box-group { width: 92%; max-width: 360px; }
}


.solution3-block:nth-of-type(2) .solution3-image-text {
  align-items: flex-start;  /* 垂直靠上 */
  justify-content: flex-start;  /* 水平靠左 */
    margin-top: 1rem;
}

.solution3-block:nth-of-type(2) .solution3-image-text .solution3-img:last-child {
  width: 40%;       /* 原本大約 60% → 放大一點 */
  max-width: 360px; /* 限制最大寬度，避免太爆 */
}

.solution3-section .solution3-content {
  display: grid;
  grid-template-columns: repeat(2, minmax(320px, 1fr));
  gap: 1rem;
  max-width: 1100px;
  margin: 0 auto;
}

/* 卡片外觀：保留你的白底，只加邊框與小圓角；寬度交給 grid */
.solution3-section .solution3-content > .solution3-block {
  background: #fff;            /* 你原本就是白色，這裡保留 */
  border-radius: 16px;
  overflow: hidden;
  margin: 0;
  max-width: initial;
}

/* 第三個大框（ソフトウェアも柔軟…）橫跨兩欄，避免被擠到同一排 */
.solution3-section .solution3-content > .block {
  grid-column: 1 / -1;
}

/* 內容排版：圖片在上、文字在下（只作用在兩張卡片裡） */
.solution3-section .solution3-block .solution3-image-text {
  display: block;              /* 覆蓋原本的 flex */
  padding: 1rem 1rem 1.25rem;
}

.solution3-section .solution3-block .solution3-img {
  display: block;
  width: 100%;
  max-width: 200px;
  height: auto;
  margin: 0 auto 0.8rem;
  border-radius: 2px;          /* 俐落一點，不動顏色 */
}

.solution3-section .solution3-block .solution3-text {
  font-size: 1rem;
  line-height: 1.7;
  padding: 0 0.25rem;
  color: inherit;              /* 保留你的字色 */
    margin-top: 2rem; 
  
}
.solution3-block .solution3-images {
  display: flex;
  gap: 1.25rem;             /* 兩張圖片間距 */
  justify-content: center;
  align-items: center;
  flex-wrap: nowrap;        /* 保持同一列，不自動換行 */
}

.solution3-block .solution3-images .solution3-img {
  width: auto;
  max-width: min(45%, 260px);  /* 控制大小，讓兩張能並排 */
  height: auto;
  border-radius: 0px;
}

/* 16.png 若要稍大一點，可以單獨調整 */
.solution3-block .solution3-images .solution3-img-16 {
  max-width: min(48%, 320px);
}

.solution3-block .solution3-caption {
  margin-top: 1.2rem;
  font-weight: 600;
    margin-left: 1rem;  
  font-size: clamp(0.8rem, 1.1vw, 1rem);
  color: #000000;
}

/* 手機時單欄顯示，間距更緊湊 */
@media (max-width: 768px) {
  .solution3-section .solution3-content {
    grid-template-columns: 1fr;
    gap: 0.8rem;
  }
}

.solution3-section .solution3-content .solution3-desc {
  grid-column: 1 / -1 !important;   /* 佔滿整列 */
  width: 100% !important;           /* 吃滿容器寬 */
  max-width: 1100px !important;       /* 取消 420px / 900px 等上限 */
  margin: 1rem 0 0 0 !important;    /* 靠左，不置中 */
  padding: 0 1rem !important;       /* 視覺左右內距 */
  text-align: left !important;
  white-space: normal !important;    /* 確保正常換行規則 */
}


.solution3-img-16 {
  width: min(300px, 55%) !important;  /* 放大用，可以再調數值 */
  max-width: 400px;                   /* 避免太大爆版 */
}

.reveal {
  opacity: 0;
  transform: translateY(22px);
  filter: blur(2px);
  transition:
    opacity 1.4s ease,
    transform 1.4s ease,
    filter 1.4s ease;
}

.reveal.delay-200 { transition-delay: .2s, .2s, .2s; }
.reveal.delay-400 { transition-delay: .4s, .4s, .4s; }
.reveal.delay-600 { transition-delay: .6s, .6s, .6s; }
.reveal.delay-800 { transition-delay: .8s, .8s, .8s; }

/* highlight 區塊的文字依序淡入 */
.highlight-text.reveal-stagger.is-visible > *:nth-child(1) { transition-delay: .0s; }
.highlight-text.reveal-stagger.is-visible > *:nth-child(2) { transition-delay: .50s; }
.highlight-text.reveal-stagger.is-visible > *:nth-child(3) { transition-delay: .1.40s; }


.image-row.reveal-stagger > * {
  opacity: 0;
  transform: translateY(12px);
  transition: opacity .6s ease, transform .6s ease, filter .6s ease;
  filter: blur(1px);
}

.image-row.reveal-stagger.is-visible > * {
  opacity: 1;
  transform: none;
  filter: blur(0);
}

/* 逐一延遲（第1~4個） */
.image-row.reveal-stagger.is-visible > *:nth-child(1) { transition-delay: 0.00s; }
.image-row.reveal-stagger.is-visible > *:nth-child(2) { transition-delay: 0.8s; }
.image-row.reveal-stagger.is-visible > *:nth-child(3) { transition-delay: 1.6s; }
.image-row.reveal-stagger.is-visible > *:nth-child(4) { transition-delay: 2.4s; }


.reveal.is-visible {
  opacity: 1;
  transform: none;
  filter: blur(0);
}

/* 可選：容器內元素做梯度延遲（像圖示→文字依序出現） */
.reveal-stagger > * {
  opacity: 0;
  transform: translateY(12px);
  transition: opacity .6s ease, transform .6s ease;
}
.reveal-stagger.is-visible > * {
  opacity: 1;
  transform: none;
}
.reveal-stagger.is-visible > *:nth-child(1) { transition-delay: 0.0s; }
.reveal-stagger.is-visible > *:nth-child(2) { transition-delay: 0.6s; }
.reveal-stagger.is-visible > *:nth-child(3) { transition-delay: 1.2s; }

.logo-image.reveal {
  transition-delay: 1.8s;  /* 文字跑完後再出現 */
}


/* 尊重使用者的減少動態偏好 */
@media (prefers-reduced-motion: reduce) {
  .reveal,
  .reveal-stagger > * {
    transition: none !important;
    opacity: 1 !important;
    transform: none !important;
    filter: none !important;
  }
}

@media (min-width: 1025px) {
  .text-block p {
    margin-left: -80px;  /* 往左推 80px，自己調整 */
  }
}

@media (min-width: 1025px) {

  /* 讓左右兩欄再拉開一點（可選） */
  .solution2-layout {
    gap: clamp(10rem, 14vw, 18rem);
  }

  /* 把右邊那一整塊（兩個框＋下方文字）往右平移 */
  .solution2-left {
    transform: translateX(-40px); /* 想更右就加大數值，如 160px */
  }
}

.solution3-bubble {
  display: flex;
  flex-direction: column;
  justify-content: center;  /* 從上方開始排 */
  text-align: center;
  padding: 2.5rem 2rem;          /* 稍微加高一點 */
}

.solution3-bubble .bubble-tag {
  font-weight: 800;
  font-size: clamp(1.3rem, 2.3vw, 1.4rem);
  margin-bottom: 0.8rem;         /* 與下文字拉開距離 */
  letter-spacing: .03em;
}

.solution3-bubble .bubble-text {
  font-size: clamp(0.9rem, 1.2vw, 1.1rem);
  line-height: 1.8;
}

/* 淡入進場效果（你站上已經有 .reveal 本體動畫） */
.reveal {
  opacity: 0;
  transform: translateY(20px);
  filter: blur(2px);
  transition: opacity 1.2s ease, transform 1.2s ease, filter 1.2s ease;
}

.reveal.is-visible {
  opacity: 1;
  transform: none;
  filter: blur(0);
}

/* 讓泡泡裡的子元素依序出現 */
.reveal-stagger > * {
  opacity: 0;
  transform: translateY(10px);
  transition: opacity .6s ease, transform .6s ease;
}
.reveal-stagger.is-visible > * {
  opacity: 1;
  transform: none;
}
.reveal-stagger.is-visible > *:nth-child(1) { transition-delay: 0.2s; } /* 業界名 */
.reveal-stagger.is-visible > *:nth-child(2) { transition-delay: 0.8s; } /* 正文 */

/* Warning Section：スマホで右が切れるのを防ぐ */
@media (max-width: 768px) {
  .text-block{
    white-space: normal;         /* nowrap を解除して改行OKに */
    width: 100%;
  }

  .text-block p{
    margin-left: 0;              /* 余計な左マージンを解除 */
    max-width: 100%;
    overflow-wrap: anywhere;     /* 長い文字列でもはみ出しにくく */
  }

  .p-subline{
    width: auto;                 /* max-content を解除 */
    margin-left: 0;              /* 320px 右寄せを解除 */
  }
}
/* SOLUTION3の円（.solution2-right）を、狭い幅では先頭（上）に */
@media (max-width: 1024px) {
  .solution2-layout {
    flex-direction: column;
  }
  .solution2-right { order: -1; }
  .solution2-left  { order: 1; }
}
/* =========================
   技術サポート内：サブCTA
   ========================= */

   .il5-tech-subcta{
    margin-top: 28px;              /* セクション下部らしい余白 */
    display: flex;
    justify-content: center;
  }
  
  /* ボタン本体 */
  .il5-tech-subcta__btn{
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
  
    width: min(520px, 100%);
    padding: 14px 20px;
  
    border-radius: 999px;
    text-decoration: none;
    font-weight: 700;
    letter-spacing: .02em;
  
    /* グレー背景に映える配色 */
    background: #ffffff;
    color: #0b2a44;                 /* LPの濃紺トーン */
    border: 2px solid rgba(47,143,211,.45);
  
    box-shadow: 0 8px 20px rgba(0,0,0,.12);
    transition:
      transform .08s ease,
      box-shadow .12s ease,
      border-color .12s ease;
  }
  
  /* 矢印（INTALOGIC5のブルーに寄せる） */
  .il5-tech-subcta__arrow{
    color: #2f8fd3;
    font-weight: 900;
  }
  
  /* hover時：主CTAより控えめ */
  .il5-tech-subcta__btn:hover{
    transform: translateY(-1px);
    border-color: rgba(47,143,211,.8);
    box-shadow: 0 10px 24px rgba(0,0,0,.16);
  }
  
  /* focus時：アクセシビリティ */
  .il5-tech-subcta__btn:focus{
    outline: 3px solid rgba(47,143,211,.25);
    outline-offset: 2px;
  }
  
  /* SP調整 */
  @media (max-width: 600px){
    .il5-tech-subcta{
      margin-top: 22px;
    }
    .il5-tech-subcta__btn{
      padding: 13px 18px;
    }
  }
  

