:root {
  --red:        #E5211B;
  --navy:       #182E55;
  --black:      #231815;
  --white:      #FFFFFF;
  --gray:       #748C9D;
  --blue-back:  #F5F7FA;
  --text:       #333333;
  --text-dark:  #231815;

  --navy2:  #182E55;
  --yellow: #F8C112;
  --bg:     #F2F5F9;
  --mid:    #555555;
  --light:  #888888;
  --border: #DDDDDD;
  --w: 1180px;

  --small-font: 15px;
}

body {
  font-family: 'Noto Sans JP', 'Hiragino Kaku Gothic Pro', 'Yu Gothic', Meiryo, sans-serif;
}

.subpage-header {
  width: 100%;
  height: 300px;
  background: var(--bg);
  border-bottom: 1px solid #ccc;
  overflow: hidden;
  margin-bottom: 30px;
}

.subpage-header-container {
  flex: 1;
  display: flex;
  height: 300px;
  align-items: center;
  justify-content: center;
}

.subpage-header-text {
  flex: 1;
  color: var(--navy);
  white-space: nowrap;
  line-height: 1;
}

.subpage-header-text .main {
  font-size: 50px; font-weight: 800;
}

.subpage-header-text .sub  {
  font-size: 30px; font-weight: 800;
}

.subpage-header-image {
  flex: 1;
  height: 270px;
  text-align: center;
}

.site-inner {
  max-width: var(--w);
  margin: 0 auto;
  padding: 0 80px;
}

.kv {
  max-width: 1300px;
  margin: 0 auto;
  padding: 60px 0 50px;
  background-image: url(../images/smart-gw/key-visual.png);
  background-repeat: no-repeat;
  background-position: right;
  background-size: contain;
  background-blend-mode: lighten;
}

.kv-inner {
  padding: 0 40px;
}

img.usecase-icon {
  text-align: center;
  height: 120px;
}

.header-top {
  padding: 10px 40px 10px 40px;
  border-bottom: 3px solid var(--red);
}

.header-top-inner {
  max-width: 1420px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
  margin: 0 auto;
}

.request-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 52px;
  border-radius: 31px;
  border: 2px solid #26395c;
  text-decoration: none;
  cursor: pointer;
  box-sizing: border-box;
}

.ask-info-btn.request-btn {
  width: 151px;
  background: var(--white);
}

.request-btn__text {
  color: #26395c;
  font-size: 15px;
  font-weight: 600;
  letter-spacing: 0.05em;
}

.btn__arrow {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: #26395c;
  flex-shrink: 0;
  font-size: 10px;
  color: var(--white);
}

.inquiry-btn.request-btn {
  width: 185px;
  background: var(--yellow);
}

.kv-title {
  font-size: 72px;
  font-weight: 700;
  color: var(--red);
  line-height: 1.2;
  margin-bottom: 14px;
  letter-spacing: -0.02em;
}

.kv-title .left-word {
  color: var(--red);
}

.kv-title .right-word {
  color: var(--navy);
}

.kv-sub {
  font-size: 20px;
  color: var(--black);
  font-weight: 500;
  line-height: 1.8;
  margin-bottom: 28px;
}


/* feature cards */
.features3-section { position: relative; padding: 70px 0; overflow: hidden; }
.features3-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}
.features3-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.5;
}

.features3-inner {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: repeat(3,1fr);
  gap: 24px;
}

.feature-card {
  position: relative;
  background: #fff;
  border-radius: 15px;
  box-shadow: 0 5px 15px rgba(0,0,0,0.08);
  padding: 70px 25px 45px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
}

.feature-label {
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 110px;
  height: 54px;
  background: #e5201b;
  border-radius: 0 0 10px 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
}

.feature-icon {
  display: flex;
  margin: 0px 40px;
  vertical-align: middle;
}

.feature-icon img {
  height: 110px;
}

.feature-label__text {
  color: #fff;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.05em;
}

.feature-label__num {
  color: #fff;
  font-size: 28px;
  font-weight: 700;
  font-family: "Roboto", "Arial", sans-serif;
  line-height: 1;
  margin-top: 2px;
}

.feature-title {
  color: #26395c;
  font-size: 22px;
  font-weight: 700;
  line-height: 1.6;
  text-align: center;
}

.feature-body {
  color: #231815;
  font-size: 15px;
  font-weight: 300;
  line-height: 1.9;
  letter-spacing: 0.02em;
}

.cta-banner {
  background: var(--navy);
  padding: 50px 0;
}

.cta-inner {
  display: flex; align-items: center; gap: 40px;
}

.cta-title {
  font-size: 38px;
  font-weight: 600;
  color: #fff;
  line-height: 1.3;
  margin-bottom: 15px;
}

.cta-banner button.ask-info-btn {
  width: 200px;
}

.cta-banner button.inquiry-btn {
  width: 261px;
}

.cta-illust {
  flex-shrink: 0;
  width: 200px;
}

.customer-section {
  padding: 70px 0;
}

.basic-feature-section {
  background: var(--bg);
  padding: 70px 0;
}

.basic-feature-card {
  background: #fff; border-radius: 12px; padding: 36px 40px;
  box-shadow: 0 2px 12px rgba(0,0,0,.07);
}

.basic-feature-card-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
}

.basic-feature-num-row { display: flex; align-items: center; gap: 10px; margin-bottom: 18px; }
.basic-feature-badge {
  background: var(--red); color: #fff;
  font-size: 10px; font-weight: 700; padding: 3px 6px; border-radius: 3px;
  line-height: 1.4; text-align: center; white-space: nowrap;
}
.basic-feature-num { font-size: 38px; font-weight: 900; color: var(--red); line-height: 1; }
.basic-feature-item-title { font-size: 16px; font-weight: 900; color: var(--navy); line-height: 1.4; }
.basic-feature-photo { margin-bottom: 16px; border-radius: 8px; overflow: hidden; }
.basic-feature-photo img { width: 100%; height: 180px; object-fit: cover; }
.basic-feature-catch { font-size: 13px; color: var(--red); font-weight: 700; line-height: 1.6; margin-bottom: 14px; }

.basic-feature-list li {
  position: relative; padding-left: 18px; margin-bottom: 8px;
  font-size: 13px; color: var(--text); line-height: 1.6;
}

.basic-feature-list li::before {
  content: '●';
  position: absolute;
  left: 0;
  top: 4px;
  color: var(--red);
  font-size: 8px;
}

.basic-feature-btn {
  background: var(--navy); color: #fff; border: none;
  padding: 10px 28px; border-radius: 4px; font-size: 13px; font-weight: 700;
  transition: background .2s;
}

.basic-feature-btn:hover {
  background: #152848;
}

.basic-feature-item {
  background: #f9fafc;
  border-radius: 15px;
  border: 1px solid #ccc;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 20px;
  gap: 16px;
}

/* Photo area */
.photo-area {
  width: 240px;
  height: 157px;
  background: #d0d8e4;
  margin: 20px auto 10px;
  border-radius: 4px;
  overflow: hidden;
  position: relative;
}

.basic-feature-title-section {
  display: flex;
  align-items: flex-start;
  padding: 0 22px;
  gap: 0;
}

.basic-feature-label-block {
  display: flex;
  align-items: flex-start;
  gap: 0;
  flex-shrink: 0;
}

.label-tag {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding-top: 12px;
}

.label-vertical {
  color: #e5211b;
  font-size: 11px;
  font-weight: 300;
  letter-spacing: 0.02em;
  line-height: 1.1;
  writing-mode: horizontal-tb;
  text-align: center;
}

.label-vertical span {
  display: block;
}

.label-number {
  font-family: 'Roboto', 'Arial', sans-serif;
  font-size: 68px;
  font-weight: 500;
  color: #e5211b;
  line-height: 1;
  letter-spacing: -0.025em;
  margin-left: 4px;
}

.divider-v {
  width: 1px;
  height: 54px;
  background: #ccc;
  margin: 10px 15px 0 8px;
  flex-shrink: 0;
  align-self: flex-start;
}

.title-text {
  color: #26395c;
  font-size: 22px;
  font-weight: 700;
  line-height: 1.4;
  padding-top: 8px;
}

.basic-feature-subtitle {
  color: var(--red);
  font-size: var(--small-font);
  font-weight: 700;
  line-height: 1.5;
}

.basic-feature-list {
  flex: 1;
}

.feature-item {
  display: flex;
  align-items: baseline;
  gap: 8px;
}

.bullet {
  color: #e5211b;
  font-size: 14px;
  flex-shrink: 0;
  line-height: 1.8;
}

.feature-text {
  color: #231815;
  font-size: var(--small-font);
  font-weight: 300;
  line-height: 1.8;
}

.link-button-area {
  display: flex;
  justify-content: center;
}

.link-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 0px 20px;
  height: 40px;
  background: #26395c;
  border-radius: 10px;
  text-decoration: none;
  cursor: pointer;
  border: none;
  color: var(--white);
}

.diagram-section {
  background: #fff;
  padding: 50px 0;
}
.diagram-card {
  background: #fff;
  border: 1px solid #e4e9f0; border-radius: 12px;
  box-shadow: 0 3px 16px rgba(0,0,0,.07);
  padding: 32px 40px;
}

.faq-section {
  background: var(--white);
  padding: 70px 0;
}

.faq-list {
  margin: 0 auto 32px;
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.faq-item {
  margin-bottom: 0;
}

.faq-q-row {
  display: flex;
  align-items: center;
  height: 72px;
  background: #f5f7fa;
  border: 1px solid #ccc;
  border-radius: 36px;
  padding: 0 28px 0 16px;
  position: relative;
  margin-bottom: 0;
}

.faq-q-circle {
  width: 45px;
  height: 45px;
  border-radius: 50%;
  background: #26395c;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.faq-q-circle span {
  color: #fff;
  font-size: 26px;
  line-height: 1;
}

.faq-q-text {
  flex: 1;
  font-size: 22px;
  font-weight: 400;
  color: #26395c;
  margin-left: 20px;
}

.faq-label {
  border: 1px solid #ccc;
  border-radius: 5px;
  background: #fff;
  color: #26395c;
  font-size: 14px;
  padding: 4px 12px;
  margin-right: 16px;
  white-space: nowrap;
}

.faq-arrow {
  font-size: 24px;
  color: var(--red);
}

.faq-q-row {
  cursor: pointer;
  user-select: none;
}

.faq-a-row {
  display: flex;
  align-items: flex-start;
  overflow: hidden;
  max-height: 0;
  padding-top: 0;
  padding-bottom: 0;
  opacity: 0;
  padding: 0 61px 0 16px;
  transition: max-height 0.5s ease, opacity 0.5s ease, padding 0.5s ease;
}

.faq-item.open .faq-a-row {
  max-height: 200px;
  padding: 18px 61px 18px 16px;
  opacity: 1;
}

.faq-a-circle {
  width: 45px;
  height: 45px;
  border-radius: 50%;
  background: #fff;
  border: 2px solid #e5211b;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  margin-top: 2px;
}

.faq-a-circle span {
  color: #e5211b;
  font-size: 26px;
  font-weight: 700;
  line-height: 1;
}

.faq-a-text {
  font-size: 18px;
  font-weight: 400;
  color: #231815;
  margin-left: 20px;
  line-height: 1.7;
}

.faq-a-text .red-link {
  color: #e5211b;
  font-weight: 700;
}

.faq-q-row {
  cursor: pointer;
  user-select: none;
}

.faq-arrow {
  transition: transform 0.3s ease;
}

.faq-item.open .faq-arrow {
  transform: rotate(180deg);
}

.footer-logo-row {
  text-align: center;
  padding: 24px 0;
}

.footer-logo-row img {
  width: 250px;
}

footer {
  border-top: 3px solid var(--red);
  background: var(--blue-back);
  width: 100%;
}

nav a:hover {
  color: var(--red);
}

.footer-nav {
  display: flex;
  align-items: center;
  justify-content: center;
  padding-bottom: 24px;
  border-bottom: 1px solid #ccc;
  gap: 0;
  flex-wrap: wrap;
  font-size: 13px;
}

.footer-nav a {
  font-size: 16px;
  font-weight: 600;
  text-decoration: none;
  white-space: nowrap;
}

.footer-nav .sep,
.footer-subnav .sep {
  color: #231815;
  font-weight: 300;
}

.footer-nav .sep {
  font-size: 16px;
  margin: 0 10px;
}

.footer-subnav {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px 0 24px;
  margin: 0 105px;
}

.footer-subnav a {
  font-size: 14px;
  font-weight: 300;
  color: #231815;
  text-decoration: none;
  white-space: nowrap;
}

.footer-subnav .sep {
  font-size: 14px;
  margin: 0 16px;
}

.footer-copyright {
  border-top: 1px solid #ccc;
  background: var(--white);
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  font-weight: 300;
  color: #231815;
}

.footer-nav a {
  padding: 0 10px;
  color: var(--text);
  transition: color .2s;
  white-space: nowrap;
}

.header-nav {
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-bottom: 1px solid #ccc;
  gap: 0;
  flex-wrap: wrap;
  font-size: 13px;
}

.header-nav a {
  font-size: 16px;
  font-weight: 600;
  text-decoration: none;
  white-space: nowrap;
}

.header-nav .sep,
.footer-subnav .sep {
  color: #231815;
  font-weight: 300;
}

.header-nav .sep {
  font-size: 16px;
  margin: 0 10px;
}

.header-nav a {
  padding: 0 10px;
  color: var(--text);
  transition: color .2s;
  white-space: nowrap;
}

.news-section {
  background: var(--white);
  padding: 60px 0;
}

.news-list {
  list-style: none;
}

.news-item {
  display: flex;
  align-items: baseline;
  gap: 24px;
  padding: 20px 0;
  border-bottom: 1px solid var(--border);
  text-decoration: none;
  color: var(--text-dark);
  transition: opacity 0.2s;
}

.news-item:hover {
  opacity: 0.7;
}

.news-date {
  font-size: 14px;
  font-weight: 700;
  color: var(--text-dark);
  white-space: nowrap;
  min-width: 100px;
  letter-spacing: 0.02em;
}

.news-title {
  font-size: 16px;
  font-weight: 300;
  color: var(--text-dark);
  line-height: 1.6;
}

.media-section {
  background: var(--bg);
  padding: 60px 0;
}

.media-section .link-button-area {
  justify-content: unset;
}

.media-card {
  background: var(--white);
  border-radius: 30px;
  box-shadow: 0 5px 15px rgba(0,0,0,0.051);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  padding: 40px;
}

.top-half {
  display: grid;
  grid-template-columns: 45% 55%;
  flex-shrink: 0;
}

.top-left {
  margin: auto 20px auto 0px;
}

.top-right iframe {
  width: 100%;
  height: 300px;
}

.section-title {
  font-size: 26px;
  font-weight: 900;
  color: var(--navy);
  line-height: 1.3;
}

.section-body {
  font-size: 18px;
  font-weight: 300;
  color: #231815;
  line-height: 30px;
}

.divider-h {
  height: 1px;
  background: #ccc;
  margin: 20px 0px;
  flex-shrink: 0;
}

.bottom-half {
  display: grid;
  grid-template-columns: 55% 45%;
  flex-shrink: 0;
}

.bottom-left {
  overflow: hidden;
}

.bottom-right {
  margin: auto 0px auto 20px;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
:root {
  --navy2:  #182E55;
  --yellow: #F5C400;
  --bg:     #F2F5F9;
}
html { scroll-behavior: smooth; }
body {
  font-size: 14px; line-height: 1.75; color: var(--text); background: #fff;
}
a { text-decoration: none; color: inherit; }
img { max-width: 100%; }
ul { list-style: none; }
button { font-family: inherit; cursor: pointer; }

.header { position: sticky; top: 0; z-index: 200; background: #fff; }

.header-logo { display: flex; align-items: center; gap: 12px; }
.logo-title-block { display: flex; flex-direction: column; }
.logo-main { font-size: 20px; font-weight: 900; color: var(--navy); letter-spacing: 0.02em; line-height: 1.1; }
.logo-sub { font-size: 9.5px; color: var(--mid); line-height: 1.4; }

.header-top-right { display: flex; align-items: center; gap: 10px; }

.hbtn {
  padding: 8px 18px; border-radius: 50px; font-size: 13px; font-weight: 700;
  border: 2px solid; cursor: pointer; white-space: nowrap; transition: opacity .2s;
}
.hbtn:hover { opacity: .82; }
.hbtn-outline { background: #fff; border-color: var(--navy); color: var(--navy); }
.hbtn-yellow  { background: var(--yellow); border-color: var(--yellow); color: var(--text); }
.bosco-logo { margin-left: 6px; opacity: .9; }

/* 下部ナビ行 */
.header-nav-bar { background: #fff; border-bottom: 1px solid #eee; }
.header-nav-inner {
  max-width: var(--w); margin: 0 auto; padding: 0 40px;
  display: flex; align-items: center; gap: 0; height: 44px;
  font-size: 13px;
}
.header-nav-inner a {
  padding: 0 10px; color: var(--text); font-weight: 500;
  white-space: nowrap; transition: color .2s;
}
.header-nav-inner a:hover { color: var(--red); }
.nav-bold { font-weight: 700; }
.nav-sep { color: #ccc; padding: 0 2px; }
.nav-arrow { font-size: 10px; color: var(--red); margin-left: 2px; }

.kv-redline { width: 40px; height: 3px; background: var(--red); margin-bottom: 18px; }
.kv-btns { display: flex; gap: 12px; flex-wrap: wrap; }

.kv-desc-section {
  background: #F7F9FC;
  padding: 36px 0;
}
.kv-desc-text {
  color: var(--mid);
  line-height: 1.9;
}

.sec-head { text-align: center; margin-bottom: 40px; }
.sec-title {
  font-size: 28px; font-weight: 900; color: var(--navy);
  display: inline-flex; align-items: center; gap: 10px;
  margin-bottom: 8px;
}
.sec-title-sub { font-size: 18px; font-weight: 700; }
.sec-icon { font-size: 30px; }
.sec-redline { width: 48px; height: 3px; background: var(--red); margin: 0 auto 16px; }
.sec-lead { font-size: 14px; color: var(--mid); line-height: 1.85; }


.plugin-section { background: #fff; padding: 70px 0; }
.plugin-note-box {
  background: #F7F9FC;
  border-radius: 6px;
  padding: 20px 30px;
  text-align: center;
  margin-bottom: 24px;
  border: 1px solid #e4e9f0;
}
.plugin-note {
  font-size: 13.5px;
  padding-bottom: 20px;
}

.plugin-grid {
  display: grid;
  grid-template-columns: repeat(4,1fr);
  gap: 10px;
}
.plugin-button {
  background: var(--gray);
  color: var(--white);
  border: 2px solid var(--gray);
  padding: 12px 8px;
  border-radius: 7px;
  font-size: 13.5px;
  font-weight: 600;
  text-align: center;
  transition: background .2s, transform .15s;
  text-decoration: none;
}

.plugin-button:hover {
  background: var(--white);
  color: var(--gray);
  text-decoration: none;
}

.usecase-section { position: relative; padding: 70px 0; overflow: hidden; }
.usecase-bg-img { position: absolute; inset: 0; z-index: 0; }
.usecase-bg-img img { width: 100%; height: 100%; object-fit: cover; opacity: .5; }
.usecase-inner { position: relative; z-index: 2; }
.usecase-section .sec-head .sec-title { color: var(--navy); }
.usecase-section .sec-lead { color: var(--mid); }
.uc-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 18px; }
.uc-card {
  background: rgba(255,255,255,.97); border-radius: 10px;
  padding: 24px; transition: transform .2s, box-shadow .2s;
  display: flex; flex-direction: column;
}
.uc-card:hover { box-shadow: 0 10px 24px rgba(0,0,0,.12); }
.uc-ttl {
  text-align: center;
  font-size: 16px;
  font-weight: 900;
  color: var(--navy);
  padding-bottom: 10px;
}
.uc-icon { font-size: 40px; text-align: center; padding: 16px 0; }
.uc-text { font-size: 13px; color: var(--mid); line-height: 1.75; flex: 1; }
.uc-btn {
  background: var(--navy); color: #fff; border: none;
  padding: 9px 20px; border-radius: 4px; font-size: 12.5px; font-weight: 700;
  align-self: center; transition: background .2s;
}
.uc-btn:hover { background: #152848; }

.play-overlay {
  position: absolute; inset: 0; background: rgba(0,0,0,.3);
  display: flex; align-items: center; justify-content: center;
  font-size: 36px; color: #fff; cursor: pointer;
}

.doc-logo { font-size: 15px; font-weight: 900; }
.doc-sub { font-size: 12px; line-height: 1.7; opacity: .95; }

.page-top {
  position: fixed; bottom: 28px; right: 28px; z-index: 300;
  width: 44px; height: 44px; border-radius: 50%;
  background: var(--navy); color: #fff; border: none;
  font-size: 18px; font-weight: 700;
  box-shadow: 0 4px 12px rgba(0,0,0,.2);
  transition: background .2s;
}
.page-top:hover { background: #152848; }

@media (max-width: 1024px) {
  .kv {
    background-color: rgba(255, 255, 255, 0.7);
  }
  .kv-right { display: none; }
  .features3-inner { grid-template-columns: 1fr; }
  .basic-feature-card-inner { grid-template-columns: 1fr; }
  .uc-grid { grid-template-columns: 1fr 1fr; }
  .plugin-grid { grid-template-columns: repeat(3,1fr); }
  .diagram-body { grid-template-columns: 1fr; }

  .bosco-logo {
    display: none;
  }

  .logo-description {
    display: none;
  }
}
@media (max-width: 768px) {
  .header-top-right {
    display: none;
  }

  .header-top-inner {
    justify-content: center;
  }

  .page-wrapper {
    padding: 40px;
    max-width: 100%;
  }

  .top-half {
    display: flex;
    flex-direction: column;
    height: auto;
  }

  .top-left {
    padding-bottom: 24px;
  }

  .bottom-half {
    display: flex;
    flex-direction: column;
    height: auto;
  }

  .bottom-right {
    order: -1;
    padding-top: 24px;
    padding-bottom: 24px;
    margin-left: 0px;
  }

  .footer-nav, .footer-subnav {
    display: none;
  }

  .divider-h {
    margin: 0;
  }
  .faq-q-text {
    font-size: 12px;
  }
  .subpage-header-image {
    display: none;
  }
  .site-inner { padding: 0 20px; }
  .header-top-inner, .header-nav-inner { padding: 0 20px; }
  .header-nav-inner { flex-wrap: wrap; height: auto; padding: 8px 20px; gap: 4px; }
  .kv-title { font-size: 36px; }
  .uc-grid { grid-template-columns: 1fr; }
  .plugin-grid { grid-template-columns: repeat(2,1fr); }
  .cta-inner { flex-direction: column; text-align: center; }
}
