body {
  margin: 0;
  font-family: "Hiragino Kaku Gothic ProN", "Noto Sans JP", "Yu Gothic", "Meiryo", sans-serif;
  color: #12385f;
  background: #eef4fb;
  line-height: 1.7;
}

* {
  box-sizing: border-box;
}

img {
  max-width: 100%;
}

a {
  color: inherit;
  text-decoration: none;
}

#news
#services,
#products,
#company,
#contact,
#top {
  scroll-margin-top: 90px;
}

/* ===== トップ背景 ===== */
.hero {
  position: relative;
  height: 500px;
  background: url("images/top-bg.png") center/cover no-repeat;
  overflow: hidden;
}

/* ぼかしレイヤー */
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  backdrop-filter: blur(2px); /* ←ぼかし強さ調整 */
  z-index: 0;
}

/* ===== 右下ボックス ===== */
.hero-overlay {
  position: relative;
  width: 100%;
  height: 105%;
  z-index: 2;
}

/* 白ぼかしパネル */
.hero-text-box {
  position: absolute;
  bottom:160px;
  right: 30px;

  background: rgba(255, 255, 255, 0.55);
  backdrop-filter: blur(10px);

  border-radius: 16px;
  padding: 12px 18px;

  min-height: unset;
  height: auto;
/*  max-width: 600px;*/
  box-shadow: 0 8px 24px rgba(0,0,0,0.2);
}

/* テキスト */
.hero-text-box h1 {
  font-size: 19px;
  line-height: 1.2;
  margin-bottom: 2px;
  color: #00f;
}
.hero-text-box p {
  font-size: 15px;
  line-height: 1.2;
  margin-top: 10px;
  color: #511;
}

.top-title {
  position: relative;
  z-index: 2;
  margin-left: 20px;
  padding-top: 24px;
}

.top-title h1 {
  margin: 0;
  font-size: 50px;
  font-style: italic;
  color: #ffccff;
  text-shadow: 10px 10px 5px rgba(10,0,10,0.77);
}

.top-title h1 a,
.cards.two .card h3 a {
  transition: color 0.2s ease;
}

.top-title h1 a:hover,
.cards.two .card h3 a:hover {
  color: #1f64df;
}


.container {
  width: min(1120px, calc(100% - 40px));
  margin: 0 auto;
}

.hero-container {
  width: calc(100% - 40px);
  max-width: none;
  margin: 0 auto;
}

.hero-copy {
  width: 100%;
}

.hero-copy h1,
.hero-lead {
  width: 100%;
}

.new_product h2 a,
.cards.two .card h3 a {
  transition: color 0.2s ease;
}

.new_product h2 a:hover,
.cards.two .card h3 a:hover {
  color: #8f64d7;
}

.new_product h3{
  margin-bottom: 2px;
}

.new_product p{
  margin-top: 2px;
}


.site-header {
  position: sticky;
  top: 0;
  z-index: 30;
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid #d7e6f7;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 14px 0;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}

.brand-logo {
  width: 120px;
  height: auto;
  display: block;
}

.brand-main {
  display: block;
  font-size: 18px;
  font-weight: 700;
  letter-spacing: 0.04em;
}

.site-nav {
  display: flex;
  gap: 24px;
  flex-wrap: wrap;
  font-size: 14px;
  color: #456887;
}

.site-nav a:hover {
  color: #aa00aa;
}

.hero-section {
  background:
    radial-gradient(circle at 15% 18%, rgba(78, 148, 233, 0.16), transparent 22%),
    radial-gradient(circle at 82% 16%, rgba(33, 92, 201, 0.12), transparent 24%),
    linear-gradient(135deg, #f6fbff 0%, #e7f0f9 45%, #dae8f5 100%);
  padding: 48px 0 56px;
  overflow: hidden;
}

.hero-section {
  position: relative;
  overflow: hidden;
}

/* 背景画像（ぼかし） */
.hero-section::before {
  content: "";
  position: absolute;
  inset: 0;

  background: url("images/top-bg.png") center no-repeat;

  filter: blur(2px);
  transform: scale(1.1); /* ぼかしで端が欠ける対策 */
  opacity: 0.9;

  z-index: 0;
}

/* コンテンツを前面に */
.hero-section .container {
  position: relative;
  z-index: 1;
}

.hero-layout {
  display: grid;
  grid-template-columns: 1fr;
  gap: 36px;
  align-items: center;
}

.eyebrow {
  margin: 0 0 10px;
  font-size: 12px;
  letter-spacing: 0.28em;
  color: #4d76a4;
}

.hero-copy h1,
.hero-lead {
  max-width: none;
  width: 100%;
}

.hero-copy h1,
.section-heading h2,
.split h2,
.contact-box h2 {
  margin: 0;
  line-height: 1.15;
  color: #12385f;
}

.hero-copy h1 {
  font-size: clamp(34px, 5vw, 60px);
  max-width: none;
}

.hero-lead,
.section-heading p,
.panel p,
.product-copy p,
.card p,
.contact-box p,
.company-box,
.info-box,
.mini-card span {
  color: #4b6278;
}

.hero-lead {
  margin: 20px 0 0;
  font-size: 16px;
  max-width: none;
}

.hero-actions,
.contact-actions {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  margin-top: 28px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 22px;
  border-radius: 999px;
  font-weight: 700;
  transition: transform 0.2s ease, background 0.2s ease, color 0.2s ease;
}

.button:hover {
  transform: translateY(-1px);
}

.button.primary {
  background: #1f64d7;
  color: #fff;
}

.button.secondary {
  background: #fff;
  color: #1f64d7;
  border: 1px solid #bfd6f2;
}

.hero-animation-card {
  border: 1px solid #d8e5f6;
  border-radius: 32px;
  background: rgba(255, 255, 255, 0.82);
  box-shadow: 0 24px 60px rgba(55, 103, 170, 0.12);
  overflow: hidden;
  min-height: 420px;
}

.flash {
  position: relative;
  min-height: 420px;
  background: #efefef;
  overflow: hidden;
}

.logo-area {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 920px;
  height: 520px;
  transform: translate(-50%, -50%);
}

/* ズームしてくるロゴ */
.logo-main {
  position: absolute;
  left: 7.2%;
  top: 30.8%;
  width: 220px;
  height: auto;
  display: block;
  opacity: 0;
  transform: translate(-16px, 8px) scale(2.25);
  transform-origin: left bottom;
  animation: asLogoZoom 0.76s ease-out 0.52s both;
}

/* ロゴ右側にまとめて配置 */
.text-block {
  position: absolute;
  left: calc(5.2% + 250px);
  top: 28.8%;
  width: 560px;
  height: 150px;
}

/* 有限会社 */
.company {
  position: absolute;
  left: 0;
  bottom: 88px;
  font-size: 30px;
  font-style: italic;
  font-weight: 700;
  line-height: 1;
  color: #2338d8;
  white-space: nowrap;
  opacity: 0;
  transform: translateY(10px);
  animation: asFadeLift 0.46s ease-out 0.26s both;
}

/* アルゴシステム */
.name {
  position: absolute;
  left: 128px;
  bottom: 88px;
  font-size: 40px;
  font-style: italic;
  font-weight: 600;
  line-height: 1;
  color: #2338d8;
  white-space: nowrap;
  opacity: 0;
  transform: translateX(180px);
  animation: asSlideInRight 0.68s ease-out 0.30s both;
}

/* 2本線 */
.line {
  position: absolute;
  height: 2px;
  background: #3048d6;
  opacity: 0;
}

.line-top {
  left: 18px;
  top: 62px;
  width: 480px;
  transform: translateX(-120vw);
  animation: asLineTop 0.7s ease-out 0.46s both;
}

.line-bottom {
  left: 68px;
  top: 67px;
  width: 455px;
  transform: translateX(120vw);
  animation: asLineBottom 0.7s ease-out 0.46s both;
}

/* 英語文字列 System solution engineering */
.system-text {
  position: absolute;
  left:148px;
  top: 61px;
  font-size: 20px;
  font-style: italic;
  font-weight: 700;
  color: #2338d8;
  white-space: nowrap;
  opacity: 0;
  transform: translateX(-120vw);
  animation: asSystemSlide 0.8s ease-out 0.7s both;
}

.section {
  padding: 72px 0;
}

.section.news {
  background: #f7fbff;
  border-top: 1px solid #dbe8f6;
  border-bottom: 1px solid #dbe8f6;
}

.section.alt {
  background: #f7fbff;
  border-top: 1px solid #dbe8f6;
  border-bottom: 1px solid #dbe8f6;
}

.section-heading {
  max-width: 760px;
  margin-bottom: 30px;
}

.section-heading h2 {
  font-size: clamp(28px, 4vw, 42px);
  margin-bottom: 12px;
}

.cards {
  display: grid;
  gap: 22px;
}

.cards.three {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.cards.two {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.card {
  background: #fff;
  border: 1px solid #d9e7f7;
  border-radius: 28px;
  padding: 26px;
  box-shadow: 0 14px 36px rgba(56, 102, 170, 0.08);
}

.card h3 {
  margin: 0 0 10px;
  font-size: 22px;
  line-height: 1.3;
}

.card-icon {
  width: 54px;
  height: 54px;
  display: grid;
  place-items: center;
  border-radius: 16px;
  background: linear-gradient(135deg, #2f7ae9, #7db3ff);
  color: #fff;
  font-weight: 700;
  margin-bottom: 16px;
}

.split {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 28px;
  align-items: start;
}

.feature-list {
  padding-left: 20px;
  margin: 22px 0 0;
}

.feature-list li + li {
  margin-top: 12px;
}

.panel {
  background: linear-gradient(135deg, #ffffff 0%, #eef6ff 100%);
  border: 1px solid #d9e7f7;
  border-radius: 30px;
  padding: 28px;
  box-shadow: 0 14px 36px rgba(56, 102, 170, 0.08);
}

.panel-label {
  margin: 0 0 8px;
  color: #4d76a4;
  font-size: 12px;
  letter-spacing: 0.24em;
}

.panel h3 {
  margin: 0 0 12px;
  font-size: 28px;
}

.product-highlight {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 24px;
}

.product-copy,
.product-side,
.company-box,
.contact-box {
  background: #fff;
  border: 1px solid #d9e7f7;
  border-radius: 30px;
  padding: 28px;
  box-shadow: 0 14px 36px rgba(56, 102, 170, 0.08);
}

.product-copy h3 {
  margin: 0 0 12px;
  font-size: 30px;
}

.mini-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin-top: 22px;
}

.mini-card {
  background: #f7fbff;
  border: 1px solid #d9e7f7;
  border-radius: 22px;
  padding: 18px;
}

.mini-card strong {
  display: block;
  margin-bottom: 8px;
  color: #12385f;
}

.info-box {
  height: 100%;
  background: linear-gradient(135deg, #f8fbff 0%, #ecf5ff 100%);
  border-radius: 22px;
  padding: 24px;
}

.info-title {
  font-weight: 700;
  color: #12385f;
  margin-bottom: 10px;
}

.info-box ul {
  margin: 0;
  padding-left: 18px;
}

.company-row {
  display: grid;
  grid-template-columns: 180px 1fr;
  gap: 14px;
  padding: 14px 0;
  border-bottom: 1px solid #e3edf8;
}

.company-row:last-child {
  border-bottom: 0;
}

.company-row span {
  color: #5b748c;
}

.contact-section {
  padding-bottom: 84px;
}

.contact-box {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 24px;
  align-items: center;
  background: linear-gradient(135deg, #ffffff 0%, #eef6ff 100%);
}

.site-footer {
  background: #fff;
  border-top: 1px solid #dbe8f6;
}

.site-footer{
  text-align: center;
  padding: 24px 16px 40px;
  font-size: 0.95rem;
  color: #666;
}

.site-footer a{
  transition: color 0.2s ease;
}

.site-footer a:hover{
  text-decoration: underline;
  color: #1f64df;
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 18px;
  padding: 22px 0;
  color: #5b748c;
}

.footer-logo {
  width: 110px;
  height: auto;
  display: block;
}


.animated-brand {
  display: block;
}

.header-flash {
  position: relative;
  width: 560px;
  height:52px;
  overflow: hidden;
}

.header-flash-zoom {
  position: absolute;
  left: 0;
  top: 0;
  width: 920px;
  height: 520px;
  transform-origin: left top;
  transform: scale(0.62) translate(-68px, -158px);
}

.header-flash .logo-area {
  left: 0;
  top: 0;
  transform: none;
}

.header-flash .system-text {
/*  display: none;*/
}

@media (max-width: 640px) {
  .header-flash {
    width: 250px;
    height: 62px;
  }

  .header-flash-zoom {
/*
    transform: scale(0.29) translate(-78px, -116px);
*/
    transform: scale(0.29) translate(-78px, -116px);
  }
}

/* アニメーション */
@keyframes asFadeLift {
  0% {
    opacity: 0;
    transform: translateY(10px);
    filter: blur(2px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
    filter: blur(0);
  }
}

@keyframes asSlideInRight {
  0% {
    opacity: 0;
    transform: translateX(180px);
  }
  100% {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes asLineTop {
  0% {
    opacity: 0;
    transform: translateX(-120vw);
  }
  100% {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes asLineBottom {
  0% {
    opacity: 0;
    transform: translateX(120vw);
  }
  100% {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes asLogoZoom {
  0% {
    opacity: 0;
    transform: translate(-16px, 8px) scale(2.25);
  }
  100% {
    opacity: 1;
    transform: translate(0, 0) scale(1);
  }
}

@keyframes asSystemSlide {
  0% {
    opacity: 0;
    transform: translateX(-120vw);
  }
  100% {
    opacity: 1;
    transform: translateX(0);
  }
}

@media (max-width: 980px) {
  .hero-layout,
  .split,
  .product-highlight,
  .contact-box,
  .cards.three,
  .cards.two,
  .mini-grid {
    grid-template-columns: 1fr;
  }

  .hero-animation-card {
    min-height: 360px;
  }

  .flash {
    min-height: 360px;
  }

  .logo-area {
    width: 720px;
    height: 420px;
    transform: translate(-50%, -50%) scale(0.78);
  }

  .site-nav {
    display: none;
  }

  .company-row {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  .container {
    width: min(1120px, calc(100% - 40px));
  }

  .hero-container {
    width: calc(100% - 40px);
  }

  .hero-section {
    padding-top: 28px;
  }

  .hero-animation-card {
    min-height: 260px;
    border-radius: 24px;
  }

  .flash {
    min-height: 260px;
  }

  .logo-area {
    width: 620px;
    height: 360px;
    transform: translate(-50%, -50%) scale(0.52);
  }

  .brand-logo {
    width: 96px;
  }

  .brand-main {
    font-size: 15px;
  }

  .button {
    width: 100%;
  }
}

/* JVoice2Text update highlight */
.jvoice-update-box{
  margin:14px 0 0;
  padding:14px 14px;
  border-radius:14px;
  border:0px solid rgba(31,100,215,.22);
  border-left:5px solid #1f64d7;
  background:linear-gradient(135deg, #eef6ff 0%, #ffffff 100%);
  color:#cc66cc;
  line-height:1.7;
}
.jvoice-update-box strong{
  color:#cc66cc;
}
