/* ベース設定 */
:root {
  --orange-100: #fff0e6;
  --orange-200: #ffa366;
  --orange-300: #ff6600;
  --orange-400: #e65c00;
  --orange-500: #cc5200;
  
  --blue-100: #e6ecf1;
  --blue-200: #083D77;
  --blue-300: #052547;
  
  --gray-50: #f9fafb;
  --gray-100: #f3f4f6;
  --gray-200: #e5e7eb;
  --gray-300: #d1d5db;
  --gray-400: #9ca3af;
  --gray-500: #6b7280;
  --gray-600: #4b5563;
  --gray-700: #374151;
  --gray-800: #1f2937;
  --gray-900: #111827;
  
  --red-500: #ef4444;
  --green-600: #16a34a;
  --yellow-500: #FFC914;
  
  --border-radius: 0.5rem;
  --box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1), 0 1px 2px 0 rgba(0, 0, 0, 0.06);
  --box-shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Noto Sans JP', sans-serif;
  line-height: 1.5;
  color: #333333; /*var(--gray-800);*/
  background-color: #fff;
}

img {
  max-width: 100%;
  height: auto;
  object-fit: cover;
}

a {
  text-decoration: none;
  color: inherit;
}

ul {
  list-style: none;
}


/* コンテナ */
.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1rem;
}

/* ヘッダー */
.header {
  position: sticky;
  top: 0;
  z-index: 40;
  background-color: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--gray-200);
}

.header-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 4rem;
}

.logo {
  display: flex;
  align-items: center;
  width:120px;
  height:auto;
}

.main-nav {
  display: flex;
  flex-direction: row;
  gap: 1.5rem;
}

.main-nav.show {
  display: flex;
  flex-direction: column;
  position: absolute;
  top: 4rem;
  left: 0;
  right: 0;
  background-color: white;
  padding: 1rem;
  border-bottom: 1px solid var(--gray-200);
  box-shadow: var(--box-shadow);
}

.main-nav a {
  padding: 0.5rem 0;
  font-size: 0.875rem;
  font-weight: 500;
  transition: color 0.2s;
}

.main-nav a:hover {
  color: var(--orange-300);
}

.mobile-menu-btn {
  display: none;
}

/* ボタン */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--border-radius);
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s;
  padding: 0.5rem 1.5rem;
  font-size: 0.875rem;
  border: 1px solid transparent;
}

.cta_download{
  margin-left:10px;
}

.btn-lg {
  padding: 0.75rem 3rem;
  font-size: 1rem;
}

.btn-xlg {
  padding: 1rem 4rem;
  font-size: clamp(1rem, 0.909rem + 0.45vw, 1.25rem);
}

.btn-primary {
  background: linear-gradient(#ff751a, #ff6600);
  color: white;
}

.btn-primary:hover {
  background: linear-gradient(#ff6600, #ff751a);
}

.btn-white {
  background-color: white;
  color: var(--orange-300);
}

.btn-white:hover {
  opacity:0.8;
}

.btn-outline {
  background-color: white;
  border-color: var(--blue-200);
  color: var(--blue-200);
  margin:5% 0;
}

.btn-outline:hover {
  background-color: var(--blue-200);
  border-color: var(--blue-200);
  color: #FFFFFF;
}

/* セクションヘッダー */
.section-header {
  text-align: center;
  margin-bottom: 3rem;
}

.section-header h2 {
  font-size: clamp(2rem, 1.818rem + 0.91vw, 2.5rem);
  font-weight: 700;
  margin-bottom: 0.5rem;
}

.section-header p {
  color: var(--gray-500);  
  font-size: clamp(1rem, 0.932rem + 0.34vw, 1.188rem);
  font-weight: 700;
}

/* ヒーローセクション */
.hero {
  display: flex;
  justify-content: space-between;
  width: 100%;
}

.hero-content {
    width: 50%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 3rem 5%;
}

.hero h1 {
    font-size: clamp(3rem, 2.636rem + 1.82vw, 4rem);  
    font-weight: 900;    
    letter-spacing : -0.05em;
    line-height: 1.3;
    margin-bottom: 1.5rem;
}

.hero h2 {
    font-weight: 700;
    line-height: 1.3;
    color: var(--gray-500);
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

.hero p {
    font-weight: 500;
    font-size: 1rem;
    line-height: 1.75;
    margin-bottom: 2rem;
}

.hero-buttons {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.top_badge {
    display: flex;
    gap:1%;
    margin-top:6%;
}

.top_badge img {
  height:100%;
  width:auto;
}

.hero-image {
  width: 50%;
  height: 100%;
}

.hero-image img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}


/* 取引実績、受賞など */
.top-achievements {
  padding: 4rem 0 1rem;
}

.top-achievements__inner {
  margin: 0 auto;
  padding:4% 10% 2%;
  text-align: center;
}

.top-achievements-wrapper {
  display: flex;
  justify-content: center;
}

.top-achievements-item {
  padding:0 5%;
  text-align: center;
  border-right: 1px solid var(--gray-200);
}

.top-achievements-item:last-child {
  border-right:none;
}

.top-achievements-img02 {
  max-height: 80px;
  margin: 0 auto;
  display: inline-block;  
}

.top-achievements_title {
  font-size: 14px;
  font-weight: bold;
  text-align: center;
  padding-bottom: 10px;
  color:var(--gray-400);
}

.top-achievements_text {
  font-size:70px;
  font-weight: 900;
  display: inline-block;
  margin: 0;
  padding: 0;
  line-height: 0.8;
}

.top-achievements_text_sm {
  font-size:0.5em;
}

.top-achievements-anno__wrapper {
  margin:0 auto;
  width: fit-content;
  padding-bottom:3%;
}

.top-achievements-anno {
  font-size: 9px;
  color: var(--gray-400);
  text-align: left;  
}

.top-achievements-anno-sm {
  color: var(--gray-400);
  font-size: 9px;
}

.achievents_star::before {
  content:"★";
  color:#ff8c42;
  font-size:0.8em;
}

/* 導入企業ロゴ */

@keyframes infinity-scroll-left {
  from {
    -webkit-transform: translateX(0);
            transform: translateX(0);
  }

  to {
    -webkit-transform: translateX(-100%);
            transform: translateX(-100%);
  }
}

@keyframes infinity-scroll-right {
  from {
    -webkit-transform: translateX(-100%);
            transform: translateX(-100%);
  }

  to {
    -webkit-transform: translateX(0);
            transform: translateX(0);
  }
}

.company-slide {
  padding:0 0 4%;
}

.company-slide__wrap {
  display: flex;
  overflow: hidden;
  padding-top: 1%;
}

.company-slide__list {
  display: flex;
  list-style: none;
}

.company-slide__list--left {
  animation: infinity-scroll-left 50s infinite linear 0.5s both;
}

.company-slide__list--right {
  animation: infinity-scroll-right 50s infinite linear 0.5s both;
}

.company-slide__item {
  width: 8vw;
  margin: 0 10px;
  display: flex;
  justify-content: center;
  align-items: center;
  height: 50px;
}

.company-slide__item > img {
  max-height: 30px;
  width: auto;
  height: auto;
  object-fit: contain;
  margin: auto;
  display: block; 
}

/* 注釈 */
.annotaion {
  padding: 0 15% 3%;
  text-align: center;
  font-size:0.6rem;
  color:var(--gray-400);
}

/* 課題提起セクション */
.problems {
  padding: 5rem 0;
  background-color: var(--gray-100);
}

.card-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}

.card {
  border: 1px solid var(--gray-50);
  border-radius: var(--border-radius);
  background-color: #FFFFFF;
  box-shadow: var(--box-shadow);
  padding: 1.5rem;
  transition: box-shadow 0.3s;
  height: 100%;
}

.card a {
  display: block;
  height: 100%;
}

.card-header {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  margin-bottom: 0.5rem;
}


.card-header h3 {
  font-size: 1.5rem;
  font-weight: 800;
  margin-bottom: 0.5rem;
}

.card-content p {
  text-align: justify;
  word-break: break-all;
}

.problem-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 4rem;
  height: 4rem;
  background-color: var(--blue-100);
  color: var(--blue-200);
  border-radius: 50%;
  margin-bottom: 1rem;
}

.problem-icon i {
  font-size: 2rem;
}


/* 当社の強み */
.strengths {
  padding: 4rem 0;
}

/* 各行のスタイル */
.strength-row {
  display: flex;
  flex-direction: row;
  gap:3%;
  margin-bottom: 4rem;
  background-color: white;
  border-radius: var(--border-radius);
}

.strength-row:last-child {
  margin-bottom: 0;
}

/* 偶数行（reverse）のレイアウト */
.strength-row.reverse {
  flex-direction: row-reverse;
}

/* 画像エリア */
.strength-image {
  width: 50%;
  height:100%;
}

/* コンテンツエリア */
.strength-content {
  width: 50%;
}

.strength-num {
  margin-bottom:1rem;
  font-size: 5rem;
  font-weight: 800;
  letter-spacing: -0.05em;
  line-height: 1;
  color: var(--orange-300); 
  opacity:0.2;
}

.strength-content h3 {
  font-size:2.3rem;
  font-weight: 800;
  letter-spacing: -0.01em;
  margin-bottom: 1rem;
  color: var(--orange-300);
}

.strength-content p {
  margin-bottom: 1.5rem;
  line-height: 1.6;
}

/* リスト項目のスタイル */
.strength-list {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.strength-list li {
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
  font-weight:600;
}

.strength-list li i {
  color: var(--blue-200);
  margin-top: 0.25rem;
  flex-shrink: 0;
}

/* ソリューション概要 */
.solution {
  padding: 4rem 0;
  background-color: white;
}

.solution h3 {
  color:#0e9dda;
}

.process-container {
  position: relative;
  margin: 4rem 0 2rem;
}

.process-flow {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  padding: 0 5rem;
}

.process-step {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  position: relative;
}

.process-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 8rem;
  height: 8rem;
  background-color: #e7f5fb;
  color: #0e9dda;
  border-radius: 50%;
  margin-bottom: 1rem;
  position: relative;
}

.process-icon i {
  font-size: 4rem;
}

.step-number {
  position: absolute;
  top: 0;
  left: -0.75rem;
  width: 1.5rem;
  height: 1.5rem;
  background-color: var(--blue-200);
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
  font-weight: 700;
}

.process-step h3 {
  font-size: 1.4rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
}

.sf_partner {
  display: flex;
  justify-content: center;
  align-items: center;
  gap:3%;
  margin:3% 0;
  padding: 3% 0 0;
  border-top: 1px solid var(--blue-100);
}

.sf_partner img {
  max-height:60px;
  width:auto;
}

.sf_partner p {
  font-size:1.2rem;
  font-weight: 600;
}

/* 機能紹介 */
.features {
  padding: 4rem 0;
  background: var(--orange-100);
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

.feature-card {
  background-color: white;
  border-radius: var(--border-radius);
  padding: 1.5rem;
  box-shadow: var(--box-shadow);
  transition: box-shadow 0.3s;
  text-align: justify;
}

.feature-header {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 0.75rem;
}

.feature-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 3rem;
  height: 3rem;
  background-color: var(--orange-100);
  color: var(--orange-300);
  border-radius: 50%;
}

.feature-icon i {
  font-size: 1.25rem;
}

.feature-header h3 {
  font-size: 1.125rem;
  font-weight: 600;
}

.feature-card p {
  color: var(--gray-600);
}

/* 事例 */
.case {
  padding: 4rem 0;
}

.case01 {
  display:flex;
  flex-direction: row;
  justify-content: center;
  align-items:flex-start;
  max-width: 100%;
  height: auto;  
  margin-bottom: 4rem;
  background-color: white;
  border:1px var(--gray-100) solid;
  border-radius: var(--border-radius);
  box-shadow: var(--box-shadow);
}

.case01 img {
  padding: 1%;
  max-width: 50%;
  height:auto;
}  

.case01_content {
  padding:2% 3%;
}

.case01_content h2 {
  font-size:1rem;
  font-weight: 700;
  color: var(--blue-200);  
  margin-bottom: 2%;
}

.case01_content h3 {
  font-size:1.5rem;
  font-weight: 700;
  letter-spacing: -0.03em;
  margin: 0.5rem 0;
  color: var(--orange-300);
  text-align : justify;
}

.case01_content p {
  line-height: 1.7;
  text-align : justify;
}

.case02 {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
}

.case02_content {
  display: flex;
  flex-direction: column;
  height: 100%;
  align-items: flex-start;
}

.case02_lead {
  flex: 1;
  padding:3% 0;
  line-height: 1.5;
  text-align : justify;
  font-weight: bold;
  align-items: flex-start;
}

.case02_company{
  flex: 1;  
  padding:2% 0;  
  font-size:0.8rem;
  font-weight: 700;
  color: var(--blue-200);    
}

.case_logo {
  margin:5% 0 2%;
  height:20px;
  width:auto;
  object-fit: contain;
}


/* FAQ */
.FAQ {
  padding: 4rem 0;
}

.accordion-006 {
    max-width: 100%;
    margin-bottom: 2%;
    border-radius: 5px;
}

.accordion-006 summary {
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative;
    padding: 1em 2em;
    font-weight: 600;
    cursor: pointer;
    background-color: var(--gray-100);    
}

.accordion-006 summary::-webkit-details-marker {
    display: none;
}

.accordion-006 summary::before,
.accordion-006 summary::after {
    width: 3px;
    height: .9em;
    border-radius: 5px;
    background-color: #c2c2c2;
    content: '';
}

.accordion-006 summary::before {
    position: absolute;
    right: 2em;
    rotate: 90deg;
}

.accordion-006 summary::after {
    transition: rotate .3s;
}

.accordion-006[open] summary::after {
    rotate: 90deg;
}

.accordion-006 summary span::before {
  content: "Q.";
  padding-right: 10px;
  font-weight: bold;
  color:var(--blue-200);
}

.accordion-006 p {
    transform: translateY(-10px);
    opacity: 0;
    margin: 0;
    padding: 1em 2em;
    transition: transform .5s, opacity .5s;
  }

.accordion-006 p::before {
  content: "A.";
  padding-right: 10px;
  font-weight: bold;
  color:var(--orange-300);
}

.accordion-006[open] p {
    transform: none;
    opacity: 1;
}

/* CTA */
.final-cta {
  padding: 4rem 0;
  background-image: url("./img/am_cta_bg.png");
  background-size: cover;
  color: white;
}

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

.cta-content h2 {
  font-size: clamp(1.5rem, 1.318rem + 0.91vw, 2rem);
  font-weight: 700;
  margin-bottom: 1rem;
}

.cta-content p {
  font-size: 1.125rem;
  max-width: 700px;
  margin-bottom: 2rem;
}

.cta-buttons {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

/* フッター */
.footer {
  background-color: white;
  border-top: 1px solid var(--gray-200);
}

.footer-bottom {
  padding: 1.5rem 0;
  border-top: 1px solid var(--gray-200);
  text-align: center;
}

.footer-bottom p {
  font-size: 0.75rem;
  color: var(--gray-600);
}

/* アニメーション用のクラス */
.animate {
  opacity: 0;
  transition: all 0.8s ease-out;
}

/* 初期状態（非表示） */
.fade-in {
  opacity: 0;
}

.slide-up {
  opacity: 0;
  transform: translateY(50px);
}

.slide-right {
  opacity: 0;
  transform: translateX(-50px);
}

.slide-left {
  opacity: 0;
  transform: translateX(50px);
}

.scale-in {
  opacity: 0;
  transform: scale(0.8);
}

/* アニメーション表示状態 */
.animate.active {
  opacity: 1;
  transform: translateY(0) translateX(0) scale(1);
}

/* 遅延クラス */
.delay-100 {
  transition-delay: 0.1s;
}

.delay-200 {
  transition-delay: 0.2s;
}

.delay-300 {
  transition-delay: 0.3s;
}

.delay-400 {
  transition-delay: 0.4s;
}

.delay-500 {
  transition-delay: 0.5s;
}

/* 順番にアニメーションするアイテム用 */
.stagger-item {
  opacity: 0;
  transform: translateY(20px);
  transition: all 0.5s ease-out;
}

.stagger-item.active {
  opacity: 1;
  transform: translateY(0);
}


/* ==========================
  タブレット：幅1024px以下設定
========================== */
@media (max-width: 1024px) {

  .main-nav {
    display: none;
  }

  .mobile-menu-btn {
    display: block;
    background: none;
    border: none;
    font-size: 1.25rem;
    cursor: pointer;
  }

  .hero {
    flex-direction: column;
  }

  .hero-content {
    width: 100%;
  }

  .hero-image {
    width: 100%;
  }

  .card-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .strength-row {
    flex-direction: column;
  }

  .strength-row.reverse {
    flex-direction: column;
  }

  .strength-image {
    width: 100%;
    padding:0 2rem;
  }

  .strength-content {
    width: 100%;
    padding:0 2rem;
  }

  .features-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .case01 {
    flex-direction: column;
  }

  .case01 img {
    max-width:100%;
    height:auto;
  }

  .case02 {
    grid-template-columns: repeat(2, 1fr);
  }
  
}
  

/* ==========================
  スマホ：幅600px以下設定
========================== */
@media (max-width: 600px) {

  .company-slide {
    padding-bottom:0;
  }

  .company-slide__wrap {
    padding-top: 0
  }

  .top-achievements-wrapper {
    flex-direction: column;
    justify-content: center;
  }

  .top-achievements-item {
    padding: 5% 0;
    border-bottom: 1px solid var(--gray-200);
    border-right:none;
  }

  .top-achievements-item:last-child {
    border-bottom:none;
  }
 
  .annotaion {
    padding: 3%;
  }
    
  .card-grid {
    grid-template-columns: repeat(1, 1fr);
  }

  .process-flow {
    grid-template-columns: repeat(1, 1fr);
    padding: 0 3rem;
  }
  
  .features-grid {
    grid-template-columns: repeat(1, 1fr);
  }

  .case02 {
    grid-template-columns: 1fr;
  }


}