:root {
    --cyan: #00b3ec;
    --blue: #1d2087;
    --navy: #0a1428;
    --ink: #e5e7eb;
    --muted: #9fb1ca;
    --accent: #22c55e;
    --card: rgba(255,255,255,.04);
    --card-bd: rgba(255,255,255,.12);
}
* { box-sizing: border-box; }
body {
margin: 0;
font-family: system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,Ubuntu,
    "Hiragino Kaku Gothic ProN","Hiragino Sans","Noto Sans JP","Yu Gothic UI",sans-serif;
font-size: 1.125rem; /* Base font size increased from default 16px to 18px */
color: var(--ink);
background:
    radial-gradient(1200px 600px at 15% -10%, rgba(0,179,236,.16), transparent 45%),
    radial-gradient(900px 500px at 85% -10%, rgba(29,32,135,.16), transparent 50%),
    linear-gradient(180deg, #0a1224, #070b14 40%, #05070c);
}
a { color: #d4e8ff; text-decoration: none; }
a:hover { text-decoration: underline; }

header {
position: sticky;
top: 0;
z-index: 40;
background: rgba(3,6,12,.7);
backdrop-filter: blur(12px);
border-bottom: 1px solid rgba(255,255,255,.06);
}
.nav {
max-width: 1120px;
margin: 0 auto;
padding: .7rem 1rem;
display: flex;
align-items: center;
justify-content: space-between;
gap: .8rem;
}
.brand {
display: flex;
align-items: center;
gap: .5rem;
font-weight: 700;
letter-spacing: .08em;
text-transform: uppercase;
font-size: .9rem;
}
.brand-dot {
width: 26px;
height: 26px;
border-radius: 9999px;
background: conic-gradient(from 0deg,var(--cyan),var(--blue),var(--navy),var(--cyan));
box-shadow: 0 0 24px rgba(0,179,236,.6);
}
.nav-right {
display: flex;
align-items: center;
gap: 1rem;
flex-wrap: wrap;
}
.nav-links a {
margin-left: 1rem;
font-size: 1rem;
opacity: .85;
}

.lang-switch {
display: inline-flex;
border-radius: 9999px;
border: 1px solid rgba(255,255,255,.18);
overflow: hidden;
font-size: .75rem;
background: rgba(4,7,15,.9);
}
.lang-btn {
border: none;
background: transparent;
color: var(--muted);
padding: .25rem .55rem;
cursor: pointer;
}
.lang-btn.active {
background: linear-gradient(90deg,var(--cyan),var(--blue));
color: #04101f;
font-weight: 600;
}

/* --- View Mode Switch (Advanced / SME) --- */
.mode-switch {
  max-width: 280px;
  margin: 1.5rem auto 0.5rem;
  padding: 0 1rem;
  display: flex;
  width: auto;
  gap: 0.2rem;
  border-radius: 9999px;
  border: 1px solid rgba(255,255,255,.18);
  background: rgba(4,7,15,.9);
}
.mode-btn {
  border: none;
  background: transparent;
  color: var(--muted);
  padding: 0.35rem 0.9rem;
  cursor: pointer;
  font-size: 0.8rem;
  white-space: nowrap;
  transition: all 0.2s ease;
  position: relative;
  z-index: 1;
}
.mode-btn.active {
  background: linear-gradient(90deg,var(--cyan),var(--blue));
  color: #04101f;
  font-weight: 600;
  border-radius: 9999px;
}

/* Green active button for SME mode */
.mode-btn[data-mode="sme"].active {
  background: linear-gradient(90deg, var(--accent), #16a34a);
  color: #04101f;
}

main { max-width: 1120px; margin: 0 auto 4rem; padding: 0 1rem; }

/* Hero */
.hero {
display: block;
margin: 2.5rem 0 3rem;
}
.tagline {
display: inline-flex;
align-items: center;
gap: .4rem;
padding: .35rem .7rem;
border-radius: 9999px;
border: 1px solid rgba(0,179,236,.4);
background: rgba(0,179,236,.10);
font-size: .7rem;
letter-spacing: .12em;
text-transform: uppercase;
}
.tagline span.icon {
width: 7px;
height: 7px;
border-radius: 999px;
background: var(--accent);
}
.hero-title-lead {
display: grid;
grid-template-columns: 1.1fr 0.9fr;
gap: 2rem;
align-items: start;
margin-top: .7rem;
}
.hero h1 {
font-size: clamp(2rem, 3.4vw, 2.6rem);
margin: 0;
}
.hero-lead {
color: var(--muted);
font-size: 1.1rem;
max-width: none;
margin: 0;
}

.hero-cta {
display: flex;
flex-wrap: wrap;
gap: .6rem;
margin-top: 1rem;
}
.btn {
display: inline-flex;
align-items: center;
justify-content: center;
gap: .35rem;
padding: .6rem 1rem;
border-radius: .8rem;
border: 1px solid rgba(255,255,255,.2);
background: rgba(255,255,255,.06);
font-size: 1rem;
text-decoration: none;
color: var(--ink);
cursor: pointer;
}
.btn.primary {
border-color: transparent;
background: linear-gradient(90deg,var(--cyan),var(--blue));
color: #04101f;
font-weight: 700;
}

/* Green buttons for SME mode */
[data-mode="sme"] .btn.primary {
background: linear-gradient(90deg, var(--accent), #16a34a);
color: #04101f;
}
#sme-usecases .btn.primary {
  background: linear-gradient(90deg, var(--accent), #14532d);
  color: #04101f;  
}

.hero-factory {
border-radius: 1.3rem;
border: 1px solid rgba(255,255,255,.12);
background:
    radial-gradient(circle at top, rgba(255,255,255,.08), transparent 55%),
    linear-gradient(145deg, rgba(10,20,40,.9), rgba(4,7,15,.95));
padding: 1rem 1rem 1.1rem;
font-size: 1rem;
}
.factory-grid {
display: grid;
grid-template-columns: repeat(4, minmax(0,1fr));
gap: .5rem;
margin-top: .7rem;
}
.factory-step {
border-radius: .7rem;
border: 1px solid rgba(255,255,255,.16);
background: rgba(5,10,20,.85);
padding: .4rem .5rem;
font-size: .75rem;
}
.factory-step span.label {
display: inline-block;
font-size: .7rem;
text-transform: uppercase;
letter-spacing: .1em;
opacity: .75;
}
.factory-step strong {
display: block;
margin-top: .15rem;
font-size: .8rem;
}

/* Sections */
.section {
margin: 4rem 0 0;
}
.section-header {
display: flex;
justify-content: space-between;
align-items: baseline;
gap: .8rem;
margin-bottom: .8rem;
}
.section-title {
font-size: 1.3rem;
font-weight: 600;
}
.section-sub {
font-size: .95rem;
color: var(--muted);
}

/* Production lines (products) */
.tiles {
display: grid;
grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
gap: 1.1rem;
justify-content: start;
}
#sme-usecases .tiles {
  grid-template-columns: repeat(auto-fill, minmax(450px, 1fr));
}

/* Make tiles responsive for mobile devices */
@media (max-width: 768px) {
  #sme-usecases .tiles {
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  }
}
@media (max-width: 480px) {
  #sme-usecases .tiles {
    grid-template-columns: 1fr;
  }
}

.tile-badge {
font-size: .85rem;
padding: .2rem .5rem;
border-radius: 9999px;
border: 1px solid rgba(255,255,255,.3);
opacity: .9;
}

.tile-filter-badges {
display: flex;
gap: 0.4rem;
margin-top: 0.3rem;
flex-wrap: wrap;
}

.filter-badge {
font-size: 0.85rem;
padding: 0.15rem 0.4rem;
border-radius: 0.4rem;
background: rgba(0, 179, 236, 0.15);
border: 1px solid rgba(0, 179, 236, 0.3);
color: var(--cyan);
font-weight: 500;
}
#sme-usecases .filter-badge {
  font-size: 0.85rem;
  padding: 0.15rem 0.4rem;
  border-radius: 0.4rem;
  background: rgba(140, 180, 160, 0.15);
  border: 1px solid rgba(140, 180, 160, 0.3);
  color: rgb(140, 180, 160);
  font-weight: 500;
  }

/* Factory services */
.service-grid {
display: grid;
grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
gap: 1.1rem;
}
.service-card {
border-radius: 1rem;
border: 1px solid var(--card-bd);
background: rgba(5,8,18,.9);
padding: 1rem;
font-size: 1rem;
}
.service-tag {
font-size: .7rem;
text-transform: uppercase;
letter-spacing: .1em;
color: var(--muted);
margin-bottom: .15rem;
}

/* Process diagram */
.process {
display: grid;
grid-template-columns: repeat(4, minmax(0,1fr));
gap: .7rem;
margin-top: .6rem;
font-size: .8rem;
}
.process .tile-container {
min-height: 200px;
}
.process .tile {
min-height: 200px;
}
.process .tile-face {
border-radius: .9rem;
padding: .6rem .7rem;
}
.process .tile-front {
border: 1px solid rgba(255,255,255,.12);
background: rgba(3,7,18,.9);
}
.process-step-title {
font-size: .95rem;
font-weight: 600;
margin-bottom: .5rem;
}
.process .tile-content {
font-size: .85rem;
color: var(--muted);
}

/* White process tile-content for SME mode */
[data-mode="sme"] .process .tile-content {
color: white; /*was color: #9fb1a8;*/
}

.process-image {
margin-top: 1.5rem;
text-align: center;
}

.process-image img {
max-width: 100%;
height: auto;
opacity: 0.9;
}

/* Contact */
.contact {
border-radius: 1rem;
border: 1px solid var(--card-bd);
background: rgba(3,8,18,.94);
padding: 1rem;
font-size: .86rem;
}
.contact-kv {
display: flex;
flex-wrap: wrap;
gap: .4rem;
margin: .5rem 0 .7rem;
}
.contact-kv span {
padding: .2rem .55rem;
border-radius: 9999px;
border: 1px solid rgba(255,255,255,.18);
font-size: .72rem;
color: var(--muted);
}

.contact-line-qr {
  margin-top: 1rem;
  display: flex !important;
  justify-content: center;
  align-items: center;
  min-height: 160px;
  width: 100%;
  visibility: visible !important;
  opacity: 1 !important;
}

.contact-line-qr img {
  display: block !important;
  max-width: 100%;
  height: auto;
  width: 160px;
  height: 160px;
  visibility: visible !important;
  opacity: 1 !important;
  border: 1px solid rgba(255, 255, 255, 0.2);
  background: rgba(255, 255, 255, 0.05);
  padding: 8px;
  border-radius: 4px;
}

footer {
max-width: 1120px;
margin: 2rem auto 2.5rem;
padding: 0 1rem;
text-align: center;
font-size: .78rem;
color: var(--muted);
opacity: .8;
}

@media (max-width: 880px) {
.hero { grid-template-columns: 1fr; }
.hero-title-lead { grid-template-columns: 1fr; gap: 1rem; }
.factory-grid { grid-template-columns: repeat(2, minmax(0,1fr)); }
.process { grid-template-columns: repeat(2, minmax(0,1fr)); }
}
@media (max-width: 600px) {
.nav { flex-direction: column; align-items: flex-start; gap: .4rem; }
.nav-links a { margin-left: 0; margin-right: .8rem; }
}

/* --- Hero Visual (static bg + rotating text) --- */

.hero-visual {
    position: relative;
    width: 100%;
    height: 90vh;
    min-height: 560px;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 1.5rem;
    text-align: center;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-image: url('./img/Google Gemini Image.png');
    /* 画像パス変更OK */
}

/* --- New Year Banner Overlay (above rotating text) --- */
.hero-newyear{
  position: absolute;
  top: clamp(10px, 3.5vh, 28px);
  left: 50%;
  transform: translateX(-50%);
  z-index: 3;                 /* hero-content(=2)より前面 */
  width: min(1120px, calc(100% - 2rem));
  pointer-events: none;       /* 下のボタン等をクリック可能に */
  display: flex;
  justify-content: center;
}

.hero-newyear img{
  width: 100%;
  height: auto;
  max-height: clamp(92px, 18vh, 160px);
  object-fit: contain;
  border-radius: 12px;
  /* 背景に馴染ませたい場合のみ（不要なら削除OK） */
  box-shadow: 0 18px 50px rgba(0,0,0,.35);
}

/* バナー分だけ hero-content を下げて、重なりすぎを防止 */
.hero-visual .hero-content{
  padding-top: clamp(110px, 22vh, 190px);
}

/* モバイルで高さが足りないときの調整 */
@media (max-width: 640px){
  .hero-visual .hero-content{
    padding-top: clamp(100px, 20vh, 160px);
  }
  .hero-newyear img{
    max-height: 120px;
    border-radius: 10px;
  }
}

.hero-overlay {
position: absolute;
inset: 0;
background: rgba(0, 20, 40, 0.45);
backdrop-filter: blur(1px);
}

.hero-content {
position: relative;
max-width: 880px;
z-index: 2;
opacity: 0;
animation: fadeInUp 1.5s ease-out forwards;
}

.rotating-text {
font-size: 2.2rem;
font-weight: 700;
min-height: 2.8rem;
margin-bottom: 1.2rem;
line-height: 1.3;
transition: opacity 0.6s ease;
}

.hero-sub {
font-size: 1.2rem;
margin-bottom: 1.5rem;
opacity: 0;
animation: fadeInUp 2.4s ease-out forwards;
}

.hero-desc {
font-size: 1rem;
opacity: 0;
margin-bottom: 2rem;
animation: fadeInUp 3s ease-out forwards;
}

.hero-cta {
opacity: 0;
animation: fadeInUp 3.6s ease-out forwards;
display: flex;
justify-content: center;
gap: 0.8rem;
flex-wrap: wrap;
}
  
/* Fade In Up Animation */
@keyframes fadeInUp {
  0% {
    opacity: 0;
    transform: translateY(18px);
  }
  
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}
  
@media (max-width: 640px) {
  .rotating-text {
    font-size: 1.6rem;
  }
  
  .hero-sub {
    font-size: 1rem;
  }
}


/* Filter Section */
.filter-section {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
  margin-bottom: 1.5rem;
  padding: 1rem;
  background: rgba(3, 8, 18, 0.3);
  border-radius: 0.8rem;
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.filter-group {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  flex-wrap: wrap;
}

.filter-label {
  font-size: 1rem;
  font-weight: 600;
  color: var(--muted);
  margin-right: 0.2rem;
}

.filter-btn {
  padding: 0.4rem 0.8rem;
  border-radius: 9999px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  background: rgba(255, 255, 255, 0.05);
  color: var(--ink);
  font-size: 0.95rem;
  cursor: pointer;
  transition: all 0.2s ease;
}

.filter-btn:hover {
  background: rgba(0, 179, 236, 0.15);
  border-color: rgba(0, 179, 236, 0.3);
  color: var(--cyan);
}

.filter-btn.active {
  background: linear-gradient(90deg, var(--cyan), var(--blue));
  border-color: transparent;
  color: #04101f;
  font-weight: 600;
}

.filter-btn-clear {
  opacity: 0.7;
}

.tile-container {
  perspective: 1000px;
  min-height: 280px;
  transition: opacity 0.3s ease, transform 0.3s ease;
  display: flex;
  flex-direction: column;
  position: relative;
  isolation: isolate;
}

.tile-container.hidden {
  display: none;
}

.tile {
  position: relative;
  width: 100%;
  flex: 1;
  min-height: 400px;
  transform-style: preserve-3d;
  transition: transform 0.8s ease-in-out;
  cursor: pointer;
  transform: rotateY(0deg);
  z-index: 0;
}
#sme-usecases .tile {
  min-height: 260px;
}
/* Make tiles responsive for mobile devices */
@media (max-width: 768px) {
  #sme-usecases .tile {
    min-height: 320px;
  }
}
@media (max-width: 480px) {
  #sme-usecases .tiles {
    min-height: 480px;
  }
}

.tile.flipped {
  transform: rotateY(180deg) !important;
}

.tile-face {
  position: absolute;
  width: 100%;
  height: 100%;
  backface-visibility: hidden;
  border-radius: 1rem;
  padding: 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

/* Custom tile shape for sme-usecases section */
#sme-usecases .tile-face {
  border-radius: 1rem; /* Change this value to modify the tile shape */
}

.tile-front {
  background:
    radial-gradient(circle at top, rgba(0,179,236,.12), transparent 60%),
    linear-gradient(145deg, rgba(0,179,236,.08), rgba(29,32,135,.12)),
    var(--card);
  border: 1px solid var(--card-bd);
  color: var(--ink);
}

/* Greeny grey tile-front for SME mode */
[data-mode="sme"] .tile-front {
  background:
    radial-gradient(circle at top, rgba(122,154,138,.06), transparent 60%),
    linear-gradient(145deg, rgba(122,154,138,.04), rgba(107,142,125,.06)),
    var(--card);
  border: 1px solid var(--card-bd);
}

/* Blacky grey tile-front for sme-usecases section */
#sme-usecases .tile-front {
  background:
    radial-gradient(circle at top, rgba(60,60,60,.08), transparent 60%),
    linear-gradient(145deg, rgba(50,50,50,.06), rgba(40,40,40,.08)),
    var(--card);
  border: 1px solid var(--card-bd);
}
  
.tile-back {
  background:
    radial-gradient(circle at top, rgba(255,165,0,.15), transparent 60%),
    linear-gradient(145deg, rgba(255,140,0,.12), rgba(255,69,0,.15));
  border: 1px solid rgba(255, 165, 0, 0.4);
  color: var(--ink);
  transform: rotateY(180deg);
}

.tile-title {
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 0.2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.6rem;
}
#sme-usecases .tile-title {
  font-size: 0.85rem;
}
#sme-usecases .tile-title h3 {
  font-size: 1rem !important;
}
[data-mode="sme"] .tile-title h3 {
  color: var(--ink);
}
[data-mode="sme"] .tile-title .tile-badge {
  color: inherit;
}

.tile-title-line {
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--muted);
}

.tile-title-back {
  display: flex;
  grid-template-columns: 0.5fr 1.5fr;
  gap: 0.6rem;
  align-items: start;
  margin-bottom: .2rem;
}
    
.tile-character {
  width: 80px;
  height: auto;
  margin: 0.5rem 0;
  opacity: 0.9;
  align-self: center;
}

.tile-character-back {
    width: 100px;
    height: auto;
    margin: 0.5rem 0;
    opacity: 0.9;
    align-self: center;
  }
  
.tile-content {
font-size: 1.2rem;
line-height: 1.5;
color: rgba(226, 232, 240, 0.68);
flex-grow: 1;
}

/* White tile-content for SME mode */
[data-mode="sme"] .tile-content {
color: white; /*color: rgba(159, 177, 168, 0.85);*/
}
#sme-usecases .tile-content {
  font-size: 0.95rem;
}

/* White first row (step label) in tile-front for SME mode */
[data-mode="sme"] .tile-front > div:first-child {
color: white !important;
}

.tile-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  margin-top: 0.2rem;
}

.tile-meta span {
  padding: 0.15rem 0.45rem;
  border-radius: 0.5rem;
  border: 1px dashed rgba(255,255,255,.2);
  font-size: 0.85rem;
  opacity: 0.9;
}

.tile-footer {
  margin-top: 0.5rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.tile-container > .tile-footer {
  position: relative;
  z-index: 0;
  margin-top: 0.5rem;
  padding-top: 0.5rem;
  flex-shrink: 0;
}

.tile-hint {
  position: absolute;
  bottom: 10px;
  right: 15px;
  font-size: 0.7rem;
  opacity: 0.6;
  background: rgba(255,255,255,0.1);
  padding: 4px 8px;
  border-radius: 8px;
}

.tile:hover {
  transform: translateY(-2px);
}

.tile.flipped:hover {
  transform: translateY(-2px) rotateY(180deg);
}

/* 提供SW一覧セクションを目立たせる */

#lines {
  background: rgba(3, 8, 18, 0.4);
  /* ダークテーマに合わせた背景 */
  border-top: 3px solid var(--cyan);
  /* 上部にアクセントライン */
  padding-top: 4rem;
  /* 少し余白を増やす */
  padding-bottom: 4rem;
  border-radius: 1rem;
  margin-top: 3rem;
}
  
/* 見出しを少しだけ強調 */
#lines .section-header h2 {
  font-size: 1.7rem;
  letter-spacing: 0.04em;
}
  
/* セクション下のハイライトボックスの境界を消して一体化 */
#lines .highlight-box {
  border-color: transparent;
  background: rgba(0, 179, 236, 0.1);
  /* ダークテーマに合わせた背景 */
}
  
/* サービスセクションを目立たせる */
#services {
  background: rgba(3, 8, 18, 0.4);
  /* ダークテーマに合わせた背景 */
  border-top: 3px solid var(--cyan);
  /* 上部にアクセントライン */
  padding-top: 4rem;
  /* 少し余白を増やす */
  padding-bottom: 4rem;
  border-radius: 1rem;
  margin-top: 3rem;
}
    
/* 見出しを少しだけ強調 */
#services .section-header h2 {
  font-size: 1.7rem;
  letter-spacing: 0.04em;
}
    
/* セクション下のハイライトボックスの境界を消して一体化 */
#services .highlight-box {
  border-color: transparent;
  background: rgba(0, 179, 236, 0.1);
  /* ダークテーマに合わせた背景 */
}
    
/* カードのホバー演出を強める */
.card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 22px rgba(0, 179, 236, 0.2);
  border-color: rgba(0, 179, 236, 0.4);
  /* cyan寄り */
}
