/* ============================================
   SEED Systems - Main Stylesheet
   ============================================ */

@import url('https://fonts.googleapis.com/css2?family=Noto+Sans+JP:wght@300;400;500;700&family=Oswald:wght@400;600;700&family=Montserrat:wght@400;600;700&display=swap');

/* ===== RESET & BASE ===== */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

:root {
  --orange: #E8821E;
  --orange-light: #F5A623;
  --black: #1a1a1a;
  --sidebar-width: 308px;
  --white: #ffffff;
  --gray-light: #f5f5f5;
  --gray: #888;
  --text: #333;
}

html {
  scroll-behavior: auto;
}

body {
  font-family: 'Zen Maru Gothic', sans-serif;
  color: var(--text);
  display: flex;
  min-height: 100vh;
  font-weight: bold;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  text-decoration: none;
}

/* ============================================
   SIDEBAR
   ============================================ */
.sidebar {
  position: fixed;
  top: 0;
  left: 0;
  width: var(--sidebar-width);
  height: 100vh;
  background: var(--black);
  z-index: 1000;
  display: flex;
  flex-direction: column;
  padding: 56px 18px 20px;
  overflow-y: unset;
}

.sidebar-logo {
  margin-bottom: 36px;
}

.sidebar-logo a {
  text-decoration: none;
}

/* .sidebar-logo .logo-text {
  font-family: 'Oswald', sans-serif;
  font-size: 26px;
  font-weight: 700;
  color: var(--white);
  letter-spacing: 3px;
  display: block;
  line-height: 1;
} */

/* .sidebar-logo .logo-sub {
  font-family: 'Montserrat', sans-serif;
  font-size: 8px;
  color: #aaa;
  letter-spacing: 1px;
  margin-top: 3px;
  display: block;
} */

.sidebar-nav {
  list-style: none;
  flex: 1;
}

.sidebar-nav li {
  /* margin-bottom: 2px; */
  width: 80%;
  margin: 0 auto 2px;
}

.sidebar-nav a {
  display: block;
  padding: 25px 0 10px;
  text-decoration: none;
  border-bottom: 1px solid #fff;
  transition: opacity 0.2s;
}

.sidebar-nav a .nav-jp {
  font-size: 18px;
  font-weight: 500;
  color: var(--white);
  display: block;
  letter-spacing: 0.5px;
  transition: color 0.2s;
}

.sidebar-nav a .nav-en {
  font-family: 'Montserrat', sans-serif;
  font-size: 10px;
  color: #FF6C00;
  display: block;
  margin-top: 2px;
  letter-spacing: 1px;
}

.sidebar-nav a:hover .nav-jp,
.sidebar-nav a.active .nav-jp {
  color: #FF6C00;
}

.sidebar-btn {
  margin-top: 25px;
}
.bn-margin {
  margin-top: 8px!important;
}

.sidebar-btn a {
  display: flex;
  align-items: center;
  gap: 8px;
  background: #fff;
  border: 1px solid #FF6C00;
  border-radius: 4px;
  padding: 10px;
  text-decoration: none;
  margin-bottom: 10px;
  transition: background 0.2s;
  width: 80%;
  margin: 0 auto 10px;
  justify-content: center;
}

.sidebar-btn a:hover {
  background: #333;
}

.sidebar-btn .btn-icon {
  width: 28px;
  height: 28px;
  /* background: #FF6C00; */
  border-radius: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  /* background: #fff; */
  margin-right: 10px;

}

.sidebar-btn .btn-icon svg {
  width: 14px;
  height: 14px;
  fill: white;
}

.sidebar-btn .btn-text {
  font-size: 12px;
  color: #696969;
  line-height: 1.4;
  text-align: center;
}

.sidebar-partner {
  margin-top: 40px;
  padding-top: 0px;
  /* border-top: 1px solid #2e2e2e; */
}

.sidebar-partner-badge {
  /* background: #fff; */
  /* padding: 6px 8px; */
  border-radius: 4px;
  text-align: center;
  /* margin-bottom: 6px; */
  width: 80%;
  margin: 0 auto;
}

/* .sidebar-partner-badge .partner-label {
  font-size: 9px;
  color: #888;
  margin-bottom: 2px;
} */

/* .sidebar-partner-badge .partner-name {
  font-family: 'Oswald', sans-serif;
  font-size: 13px;
  color: #1a1a8a;
  font-weight: 700;
  letter-spacing: 2px;
} */

.sidebar-logo img{
  width: 202px;
  display: block;
  margin: 0 auto;
}
.sidebar-copy {
  /* margin-top: 16px; */
  font-size: 15px;
  color: #fff;
  line-height: 1.5;
  width: 80%;
  margin: 30px auto 0;
}

/* ============================================
   MAIN
   ============================================ */
.main {
  margin-left: var(--sidebar-width);
  flex: 1;
  min-width: 0;
  /* 方眼紙模様に必須のスタイル */
  background-image: linear-gradient(0deg, transparent calc(100% - 1px), #f0f0f0 calc(100% - 1px)),
                    linear-gradient(90deg, transparent calc(100% - 1px), #f0f0f0 calc(100% - 1px));
  background-size: 16px 16px;
  background-repeat: repeat;
  background-position: center center;

}

/* ============================================
   COMMON COMPONENTS
   ============================================ */

/* Section label (orange uppercase) */
.section-label {
  
  font-weight: 700;
  color: #FF6C00;
  letter-spacing: 3px;
  margin-bottom: 8px;
}
.fs26{
  font-size: 26px;
}
.fs60{
  font-size: 60px;
}
.fs78{
  font-size: 78px;
}
.slick-list{
  padding-right: 15%!important;
  margin-left: -20px!important;
}
/* .arrow_box {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  margin: 20px 0 0;
  position: relative;
} */
/*矢印の設定*/
 
 /*戻る、次へ矢印の位置*/

 .slick-prev{
  display: none!important;
}
.slick-next{
  content: url(../img/common/slider_arrow.png);
  top: unset!important;
  bottom: -20%!important;
  right: unset!important;
  width: 22%!important;
  object-fit: contain;
  height: 30px!important;
}

/* Section heading with orange underline */
.section-heading {
  font-family: 'Montserrat', sans-serif;
  font-size: 30px;
  font-weight: 700;
  color: var(--black);
  margin-bottom: 40px;
  padding-bottom: 16px;
  border-bottom: 2px solid #FF6C00;
  display: inline-block;
}

/* Buttons */
.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: #FBF6EC;
  color: #000;
  text-decoration: none;
  padding: 12px 22px;
  border: 1px solid #FF6C00;
  border-radius: 4px;
  font-size: 12px;
  font-weight: 500;
  white-space: nowrap;
  transition: background 0.2s, transform 0.2s;
  width: 250px;
  justify-content: center;
}

.btn-primary:hover {
  background: #FF6C00;
  color: #fff;
  /* transform: translateY(-1px); */
}

.btn-primary::after {
  content: '';
  background-image: url(../img/common/arrow.png);
  background-repeat: no-repeat;
  background-size: contain;
  width: 19px;
  height: 18px;
}
.btn-primary:hover::after {
  content: '';
  background-image: url(../img/common/arrow_hover.png);
  background-repeat: no-repeat;
  background-size: contain;
  width: 19px;
  height: 18px;
}
.btn-outline {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border: 1px solid #FF6C00;
  color: #FF6C00;
  text-decoration: none;
  padding: 12px 22px;
  border-radius: 4px;
  font-size: 12px;
  font-weight: 500;
  white-space: nowrap;
  transition: all 0.2s;
}

.btn-outline:hover {
  background: #FF6C00;
  color: white;
}

.btn-outline::after {
  content: '›';
  font-size: 16px;
  line-height: 1;
}

/* Case Study (shared) */
.case-study {
  padding: 80px 60px 200px;
  margin-top: 100px;
  background: var(--gray-light);
}
.case-study-header {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin-bottom: 16px;
}

.case-study-desc {
  font-size: 12px;
  color: #777;
  margin-bottom: 32px;
}

.case-study-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 11px;
  color: #FF6C00;
  text-decoration: none;
  font-weight: 500;
  border: 1px solid #FF6C00;
  padding: 8px 16px;
  border-radius: 4px;
  white-space: nowrap;
  transition: all 0.2s;
}

.case-study-link:hover {
  background: #FF6C00;
  color: white;
}

.case-study-link::after {
  content: '›';
  font-size: 14px;
}

/* --- Carousel (top page) --- */
.carousel {
  overflow: hidden;           /* 右側を見切れさせる */
  cursor: grab;
  user-select: none;
}

.carousel.is-dragging {
  cursor: grabbing;
}

.carousel-track {
  display: flex;
  gap: 20px;
  transition: transform 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  will-change: transform;
}

/* カルーセル内カードは固定幅（3.5枚分見える＝右が見切れる） */
.carousel .case-card {
  flex: 0 0 calc((100% - 20px * 3) / 3.5);
  min-width: 0;
}

/* About ページの4カラムグリッド（カルーセルではない） */
.case-study-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

.case-card {
  background: white;
  border-radius: 8px;
  overflow: hidden;
  border: 2px solid #000;
  transition: box-shadow 0.3s;
  margin: 0 20px;
}

.case-card:hover {
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

.case-card-img {
  width: 100%;
  aspect-ratio: 4/3;
  /* background: #ddd; */
  overflow: hidden;
  padding: 20px 0px 10px 0px;
  border-radius: 8px !important;
}

.case-card-img img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.case-card-img.siemens-bg {
  background: #1a1a7a;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-family: 'Oswald', sans-serif;
  font-size: 22px;
  font-weight: 700;
  letter-spacing: 2px;
}

.case-card-body {
  padding: 14px;
  padding-top: 0;
  font-size: 12px;
}

.case-card-cat {
  font-size: 9px;
  background-color: #000;
  color: #fff;
  margin-bottom: 4px;
  font-family: 'Montserrat', sans-serif;
  letter-spacing: 1px;
  display: inline-block;
    padding: 4px;
}

.case-card-title {
  font-size: 18px;
  font-weight: 600;
  margin-bottom: 12px;
  color: var(--black);
  min-height: 60px;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.case-card-link {
  display: block;
  text-align: center;
  background: #FF6C00;
  color: white;
  text-decoration: none;
  padding: 8px;
  border-radius: 25px;
  font-size: 16px;
  font-weight: 600;
  letter-spacing: 1px;
  /* font-family: 'Montserrat', sans-serif; */
  transition: background 0.2s;
  font-size: 16px;
  margin: 30px 0 16px;
  border: 1px solid #000;
  margin: 30px auto 16px;
  width: 75%;

}

.case-card-link:hover {
  background: #c96a10;
}

.case-scroll-hint {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 20px;
  font-size: 10px;
  color: #aaa;
  font-family: 'Montserrat', sans-serif;
  letter-spacing: 2px;
}

.case-scroll-hint::after {
  content: '';
  flex: 1;
  max-width: 80px;
  height: 1px;
  background: #ccc;
}

/* Contact CTA (shared) */
.contact-cta {
  padding: 60px;
  text-align: center;
  background: white;
}

.contact-cta > p {
  font-size: 25px;
  color: #5F5F5F;
  margin-bottom: 30px;
  font-weight: bold;
}

.contact-cta-box {
  border: 2px solid #000;
  border-radius: 8px;
  padding: 32px 40px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 30px;
  max-width: 700px;
  margin: 0 auto;
}

.contact-tel {
  display: flex;
  align-items: center;
  gap: 14px;
}

.contact-tel-icon {
  width: 44px;
  height: 44px;
  /* background: #FF6C00; */
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.contact-tel-icon svg {
  width: 20px;
  height: 20px;
  fill: white;
}

.contact-tel-number {
  /* font-family: 'Oswald', sans-serif; */
  font-size: 49px;
  font-weight: 700;
  color: var(--black);
  line-height: 1;
}

.contact-tel-hours {
  font-size: 13px;
  color: #000;
  margin-top: 4px;
}

/* Footer (shared) */
footer {
  background: var(--black);
  padding: 50px 60px 30px;
  color: white;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr 1fr;
  gap: 35px;
  margin-bottom: 40px;
}
.footer-logo{
  display: flex;
  align-items: center;
}
.footer-logo .logo-text {
  font-family: 'Oswald', sans-serif;
  font-size: 28px;
  font-weight: 700;
  letter-spacing: 3px;
  display: block;
  line-height: 1;
}

.footer-logo .logo-sub {
  font-family: 'Montserrat', sans-serif;
  font-size: 8px;
  color: #777;
  letter-spacing: 1px;
  margin-top: 4px;
  display: block;
}

.footer-col h4 {
  font-size: 11px;
  font-weight: 700;
  color: #FF6C00;
  margin-bottom: 14px;
  /* padding-bottom: 8px; */
  /* border-bottom: 1px solid #2e2e2e; */
  letter-spacing: 1px;
}

.footer-col ul {
  list-style: "- ";
    margin-left: 13px;
}

.footer-col ul li {
  margin-bottom: 8px;
}

.footer-col ul li a {
  font-size: 11px;
  color: #fff;
  text-decoration: none;
  transition: color 0.2s;
}

.footer-col ul li a:hover {
  color: #FF6C00;
}

.footer-bottom {
  border-top: 1px solid #2e2e2e;
  padding-top: 20px;
  text-align: center;
  font-size: 10px;
  color: #555;
}
/*====== 9-1-1 縦線が動いてスクロールを促す =======*/

/*スクロールダウン全体の場所*/
.scrolldown1{
  /*描画位置※位置は適宜調整してください*/
position:absolute;
left:50%;
bottom:10px;
  /*全体の高さ*/
height:50px;
}

/*Scrollテキストの描写*/
.scrolldown1 span{
  /*描画位置*/
position: absolute;
left:-15px;
top: -15px;
  /*テキストの形状*/
color: #eee;
font-size: 0.7rem;
letter-spacing: 0.05em;
}

/* 線の描写 */
.scrolldown1::after{
content: "";
  /*描画位置*/
position: absolute;
top: 0;
  /*線の形状*/
width: 1px;
height: 30px;
background: #eee;
  /*線の動き1.4秒かけて動く。永遠にループ*/
animation: pathmove 1.4s ease-in-out infinite;
opacity:0;
}

/*高さ・位置・透過が変化して線が上から下に動く*/
@keyframes pathmove{
0%{
  height:0;
  top:0;
  opacity: 0;
}
30%{
  height:30px;
  opacity: 1;
}
100%{
  height:0;
  top:50px;
  opacity: 0;
}
}