/* ==========================================================
   FlickBox Corporate Site — style.css
   ========================================================== */

:root{
  --navy:#0d3552;
  --navy-deep:#123f60;
  --sky:#2e90d1;
  --sky-light:#eaf4fb;
  --sky-pale:#f4f9fd;
  --ink:#1c2b36;
  --sub:#5c6b76;
  --line:#d7e3ea;
  --white:#ffffff;

  --font: "Hiragino Kaku Gothic ProN","Hiragino Sans","Yu Gothic",sans-serif;

  --header-h: 72px;
  --section-pad: 100px;
  --container-w: 1120px;
}

/* ---------- Reset ---------- */
*,
*::before,
*::after{
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html{
  scroll-behavior: smooth;
  scroll-padding-top: var(--header-h);
}

body{
  font-family: var(--font);
  color: var(--ink);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
  line-height: 1.8;
  font-size: 16px;
  overflow-x: hidden;
}

img, svg{
  display: block;
  max-width: 100%;
}

.pc-only{
  display: inline;
}

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

ul, ol{
  list-style: none;
}

table{
  border-collapse: collapse;
}

button{
  font-family: inherit;
  cursor: pointer;
  border: none;
  background: none;
}

.container{
  width: 100%;
  max-width: var(--container-w);
  margin: 0 auto;
  padding: 0 24px;
}

section{
  padding: var(--section-pad) 0;
}

section + section{
  border-top: 1px solid var(--line);
}

/* ---------- Common: section heading ---------- */
.section-tag{
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--navy);
  color: var(--white);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  padding: 6px 16px;
  border-radius: 3px;
}

.section-head{
  text-align: center;
  margin-bottom: 52px;
}

.section-head .section-tag{
  margin-bottom: 18px;
}

.section-title{
  font-size: clamp(24px, 3.2vw, 32px);
  font-weight: 700;
  color: var(--navy);
  letter-spacing: 0.02em;
  line-height: 1.5;
}

.section-lead{
  margin-top: 14px;
  font-size: 15px;
  color: var(--sub);
  line-height: 1.9;
}

.section-head.align-left{
  text-align: left;
}

/* ---------- Brand / Logo ---------- */
.brand{
  display: flex;
  align-items: center;
  gap: 10px;
}

.brand-mark{
  width: 32px;
  height: 32px;
  flex-shrink: 0;
}

.brand-name{
  font-size: 18px;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: var(--navy);
  white-space: nowrap;
}

.brand-name span{
  color: var(--sky);
}

/* ---------- Buttons ---------- */
.btn{
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-size: 15px;
  font-weight: 700;
  padding: 15px 30px;
  border-radius: 6px;
  letter-spacing: 0.02em;
  transition: transform .18s ease, box-shadow .18s ease, background-color .18s ease;
  white-space: nowrap;
}

.btn-primary{
  background: var(--sky);
  color: var(--white);
  box-shadow: 0 10px 24px rgba(46,144,209,0.28);
}

.btn-primary:hover{
  background: #2680bc;
  transform: translateY(-2px);
  box-shadow: 0 14px 30px rgba(46,144,209,0.34);
}

.btn-outline{
  background: var(--white);
  color: var(--navy);
  border: 1.6px solid var(--navy);
}

.btn-outline:hover{
  background: var(--navy);
  color: var(--white);
  transform: translateY(-2px);
}

.btn-outline-sky{
  background: transparent;
  color: var(--white);
  border: 1.6px solid rgba(255,255,255,0.6);
}

.btn-outline-sky:hover{
  background: rgba(255,255,255,0.12);
  border-color: var(--white);
}

.btn-block{
  width: 100%;
}

.btn-sm{
  padding: 10px 20px;
  font-size: 13px;
}

/* ==========================================================
   Header
   ========================================================== */
.site-header{
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: var(--header-h);
  display: flex;
  align-items: center;
  z-index: 1000;
  background: rgba(255,255,255,0.9);
  backdrop-filter: saturate(160%) blur(8px);
  -webkit-backdrop-filter: saturate(160%) blur(8px);
  border-bottom: 1px solid transparent;
  transition: background-color .25s ease, border-color .25s ease, box-shadow .25s ease;
}

.site-header.is-scrolled{
  background: rgba(255,255,255,0.97);
  border-bottom-color: var(--line);
  box-shadow: 0 6px 20px rgba(13,53,82,0.06);
}

.header-inner{
  width: 100%;
  max-width: var(--container-w);
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.main-nav{
  display: flex;
  align-items: center;
  gap: 30px;
}

.main-nav a{
  font-size: 14px;
  font-weight: 700;
  color: var(--ink);
  letter-spacing: 0.02em;
  position: relative;
  padding: 6px 0;
}

.main-nav a::after{
  content: "";
  position: absolute;
  left: 0;
  bottom: -2px;
  width: 100%;
  height: 2px;
  background: var(--sky);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .2s ease;
}

.main-nav a:hover::after{
  transform: scaleX(1);
}

.header-cta{
  display: flex;
  align-items: center;
  gap: 20px;
}

.header-cta .btn{
  padding: 11px 22px;
  font-size: 13.5px;
}

.nav-toggle{
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  width: 40px;
  height: 40px;
  border-radius: 8px;
  flex-shrink: 0;
}

.nav-toggle span{
  display: block;
  width: 20px;
  height: 2px;
  background: var(--navy);
  border-radius: 2px;
  transition: transform .2s ease, opacity .2s ease;
}

.nav-toggle[aria-expanded="true"] span:nth-child(1){
  transform: translateY(7px) rotate(45deg);
}

.nav-toggle[aria-expanded="true"] span:nth-child(2){
  opacity: 0;
}

.nav-toggle[aria-expanded="true"] span:nth-child(3){
  transform: translateY(-7px) rotate(-45deg);
}

.main-nav a.is-active{
  color: var(--sky);
}

.main-nav .nav-cta{
  display: none;
}

/* ---------- Page header (sub pages) ---------- */
.page-header{
  padding: calc(var(--header-h) + 64px) 0 64px;
  background:
    radial-gradient(900px 380px at 85% -10%, var(--sky-light) 0%, rgba(234,244,251,0) 60%),
    linear-gradient(180deg, var(--white) 0%, var(--sky-pale) 100%);
  text-align: center;
}

.page-header .section-tag{
  margin-bottom: 20px;
}

.page-header-title{
  font-size: clamp(26px, 3.8vw, 38px);
  font-weight: 700;
  color: var(--navy);
  line-height: 1.5;
}

.page-header-lead{
  margin-top: 16px;
  font-size: 15px;
  color: var(--sub);
  line-height: 1.9;
  max-width: 620px;
  margin-left: auto;
  margin-right: auto;
}

.breadcrumb{
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-size: 12.5px;
  color: var(--sub);
  margin-bottom: 18px;
}

.breadcrumb a{
  color: var(--sub);
}

.breadcrumb a:hover{
  color: var(--sky);
}

.breadcrumb .sep{
  color: var(--line);
}

.breadcrumb .current{
  color: var(--navy);
  font-weight: 700;
}

/* ==========================================================
   Hero
   ========================================================== */
.hero{
  position: relative;
  padding: calc(var(--header-h) + 96px) 0 100px;
  background:
    radial-gradient(900px 420px at 85% 0%, rgba(46,144,209,0.30) 0%, rgba(46,144,209,0) 60%),
    radial-gradient(760px 400px at 6% 100%, rgba(46,144,209,0.18) 0%, rgba(46,144,209,0) 55%),
    linear-gradient(160deg, #0d3552 0%, #092338 55%, #0d3552 100%);
  border-top: none;
  overflow: hidden;
}

/* 写真スロット: 差し替える場合は assets/hero.jpg を置き換えるだけ */
.hero-photo{
  position: absolute;
  inset: 0;
  background-image: linear-gradient(180deg, rgba(13,53,82,0.55) 0%, rgba(9,35,56,0.35) 55%, rgba(13,53,82,0.72) 100%), url('../assets/hero.jpg');
  background-size: cover;
  background-position: center 38%;
  opacity: 0.5;
}

.hero-media{
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.38;
}

.hero::after{
  content: "";
  position: absolute;
  inset: 0;
  background-image: repeating-linear-gradient(90deg, rgba(255,255,255,0.045) 0 1px, transparent 1px 140px);
  pointer-events: none;
}

.hero .container{
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.hero-eyebrow{
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.28);
  color: var(--white);
  font-size: 12.5px;
  font-weight: 700;
  letter-spacing: 0.05em;
  padding: 7px 18px;
  border-radius: 20px;
  margin-bottom: 26px;
}

.hero-eyebrow .dot{
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--sky);
  flex-shrink: 0;
}

.hero-title{
  font-size: clamp(30px, 5vw, 50px);
  font-weight: 700;
  color: var(--white);
  line-height: 1.45;
  letter-spacing: 0.01em;
  max-width: 900px;
}

.hero-title em{
  font-style: normal;
  color: #8fd0f5;
  border-bottom: 4px solid var(--sky);
  padding-bottom: 4px;
}

.hero-sub{
  margin-top: 26px;
  font-size: 16.5px;
  color: rgba(226,239,248,0.88);
  line-height: 1.95;
  max-width: 640px;
}

.hero .btn-outline{
  color: var(--white);
  border-color: rgba(255,255,255,0.55);
  background: transparent;
}

.hero .btn-outline:hover{
  background: rgba(255,255,255,0.12);
  border-color: var(--white);
}

.hero .sns-badge{
  background: rgba(255,255,255,0.08);
  border-color: rgba(255,255,255,0.24);
  color: #eaf4fb;
}

.hero-cta-row{
  margin-top: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
}

.hero-cta-row .btn{
  padding: 17px 34px;
  font-size: 16px;
}

.hero-badges{
  margin-top: 52px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  flex-wrap: wrap;
  max-width: 720px;
}

.sns-badge{
  display: inline-flex;
  align-items: center;
  font-size: 12.5px;
  font-weight: 700;
  color: var(--navy);
  border: 1px solid var(--line);
  background: var(--white);
  border-radius: 20px;
  padding: 7px 18px;
  letter-spacing: 0.02em;
}

/* ==========================================================
   Results
   ========================================================== */
.results-grid{
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.result-card{
  background: linear-gradient(180deg, var(--sky-pale) 0%, var(--white) 60%);
  border: 1px solid var(--line);
  border-top: 4px solid var(--sky);
  border-radius: 10px;
  padding: 34px 28px 30px;
}

.result-label{
  font-size: 12px;
  font-weight: 700;
  color: var(--sub);
  letter-spacing: 0.04em;
  margin-bottom: 14px;
}

.result-title{
  font-size: 16px;
  font-weight: 700;
  color: var(--navy);
  line-height: 1.6;
  margin-bottom: 20px;
  min-height: 52px;
}

.result-number-row{
  display: flex;
  align-items: baseline;
  gap: 8px;
  flex-wrap: wrap;
}

.result-number{
  font-size: 40px;
  font-weight: 700;
  color: var(--navy);
  line-height: 1.15;
  letter-spacing: -0.01em;
}

.result-number.accent{
  color: var(--sky);
}

.result-arrow{
  font-size: 18px;
  color: var(--sub);
  font-weight: 700;
}

.result-unit{
  font-size: 13.5px;
  color: var(--sub);
  font-weight: 700;
}

.result-foot{
  margin-top: 18px;
  padding-top: 16px;
  border-top: 1px dashed var(--line);
  font-size: 13px;
  color: var(--sub);
  line-height: 1.75;
}

.results-note{
  margin-top: 26px;
  text-align: center;
  font-size: 13px;
  color: var(--sub);
}

/* ==========================================================
   Stats band（数字で見るFlickBox：実績ハイライト共通ブロック）
   ========================================================== */
.stats-band{
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

.stats-band.is-compact{
  margin-top: 30px;
}

.stat-item{
  background: linear-gradient(180deg, var(--sky-pale) 0%, var(--white) 60%);
  border: 1px solid var(--line);
  border-top: 4px solid var(--sky);
  border-radius: 10px;
  padding: 26px 20px 22px;
  text-align: center;
}

.stat-number{
  font-size: 32px;
  font-weight: 700;
  color: var(--navy);
  line-height: 1.2;
  letter-spacing: -0.01em;
}

.stat-desc{
  margin-top: 10px;
  font-size: 12.5px;
  color: var(--sub);
  line-height: 1.7;
}

/* ==========================================================
   Works (case studies)
   ========================================================== */
.case-list{
  display: flex;
  flex-direction: column;
  gap: 28px;
}

.case-card{
  border: 1px solid var(--line);
  border-radius: 12px;
  overflow: hidden;
  background: var(--white);
}

.case-head{
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy-deep) 100%);
  color: var(--white);
  padding: 28px 32px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
}

.case-label{
  font-size: 12.5px;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: #bcd8ea;
  margin-bottom: 8px;
}

.case-title{
  font-size: 19px;
  font-weight: 700;
  line-height: 1.6;
}

.case-numbers{
  display: flex;
  align-items: baseline;
  gap: 8px;
  flex-shrink: 0;
}

.case-numbers .num{
  font-size: 30px;
  font-weight: 700;
  color: var(--white);
}

.case-numbers .arrow{
  font-size: 16px;
  color: #bcd8ea;
}

.case-numbers .num.accent{
  color: #7cd0ff;
}

.case-numbers .unit{
  font-size: 12px;
  color: #bcd8ea;
  margin-left: 2px;
}

.case-body{
  padding: 32px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

.case-col-heading{
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 700;
  color: var(--sky);
  letter-spacing: 0.03em;
  margin-bottom: 12px;
}

.case-col-heading .step-dot{
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--sky-light);
  color: var(--sky);
  font-size: 11px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.case-col p{
  font-size: 13.5px;
  color: var(--ink);
  line-height: 1.9;
}

.case-col + .case-col{
  border-left: 1px solid var(--line);
  padding-left: 28px;
}

.works-summary{
  margin-top: 44px;
  background: var(--sky-pale);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 28px 32px;
  font-size: 14px;
  color: var(--ink);
  line-height: 1.9;
}

.works-summary strong{
  color: var(--navy);
}

/* ==========================================================
   Worry list
   ========================================================== */
.worry-section{
  background: var(--sky-pale);
}

.worry-list{
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 18px 28px;
  max-width: 920px;
  margin: 0 auto;
}

.worry-item{
  display: flex;
  align-items: flex-start;
  gap: 14px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 18px 20px;
  font-size: 15px;
  color: var(--ink);
  line-height: 1.7;
}

.worry-item .check{
  width: 22px;
  height: 22px;
  flex-shrink: 0;
  margin-top: 1px;
}

/* ==========================================================
   Service anchor blocks (services.html detail sections)
   ========================================================== */
.service-block{
  padding: 76px 0;
}

.service-block + .service-block{
  border-top: 1px solid var(--line);
}

.service-block.is-alt{
  background: var(--sky-pale);
}

.service-block-head{
  display: flex;
  align-items: flex-start;
  gap: 22px;
  margin-bottom: 40px;
}

.service-block-icon{
  width: 60px;
  height: 60px;
  border-radius: 14px;
  background: var(--sky-light);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.service-block-num{
  font-size: 12.5px;
  font-weight: 700;
  color: var(--sky);
  letter-spacing: 0.06em;
  margin-bottom: 8px;
}

.service-block-title{
  font-size: 24px;
  font-weight: 700;
  color: var(--navy);
  line-height: 1.5;
  margin-bottom: 10px;
}

.service-block-desc{
  font-size: 14.5px;
  color: var(--sub);
  line-height: 1.9;
  max-width: 640px;
}

.service-sub-heading{
  font-size: 15px;
  font-weight: 700;
  color: var(--navy);
  margin: 36px 0 18px;
}

.service-tags{
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 20px;
}

.service-tag-chip{
  font-size: 12.5px;
  font-weight: 700;
  color: var(--navy);
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 7px 16px;
}

.service-link-card{
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-top: 28px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 20px 24px;
}

.service-link-card-text{
  font-size: 14px;
  color: var(--ink);
  line-height: 1.7;
}

.service-link-card-text strong{
  display: block;
  color: var(--navy);
  font-size: 15.5px;
  margin-bottom: 4px;
}

/* ==========================================================
   Services
   ========================================================== */
.services-grid{
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 22px;
}

.services-grid.cols-5{
  grid-template-columns: repeat(5, 1fr);
}

.service-card-link{
  display: block;
}

.service-card{
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 30px 24px 28px;
  background: var(--white);
  transition: box-shadow .2s ease, transform .2s ease;
}

.service-card:hover{
  box-shadow: 0 16px 34px rgba(13,53,82,0.08);
  transform: translateY(-3px);
}

.service-icon{
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: var(--sky-light);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
}

.service-title{
  font-size: 16px;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 12px;
  line-height: 1.5;
}

.service-desc{
  font-size: 13.5px;
  color: var(--sub);
  line-height: 1.85;
}

/* ==========================================================
   Products（自社開発プロダクト：ystream / FlowDesk 導線カード）
   ========================================================== */
.products-grid{
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}

.product-card{
  display: flex;
  flex-direction: column;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 32px 30px 30px;
  background: var(--white);
  transition: box-shadow .2s ease, transform .2s ease;
}

.product-card:hover{
  box-shadow: 0 16px 34px rgba(13,53,82,0.08);
  transform: translateY(-3px);
}

.product-card-top{
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 18px;
}

.product-card-icon{
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: var(--sky-light);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.product-badge{
  display: inline-flex;
  align-items: center;
  font-size: 11.5px;
  font-weight: 700;
  color: var(--sky);
  background: var(--sky-light);
  border-radius: 20px;
  padding: 5px 14px;
  white-space: nowrap;
}

.product-card-title{
  font-size: 19px;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 10px;
  line-height: 1.5;
}

.product-card-desc{
  font-size: 13.5px;
  color: var(--sub);
  line-height: 1.85;
  margin-bottom: 22px;
  flex: 1;
}

.product-card-cta{
  display: flex;
}

/* ==========================================================
   Reasons
   ========================================================== */
.reasons-grid{
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

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

.reason-card{
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 34px 28px;
  background: var(--white);
}

.reason-num{
  font-size: 13px;
  font-weight: 700;
  color: var(--sky);
  letter-spacing: 0.06em;
  margin-bottom: 16px;
}

.reason-icon{
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: var(--sky-light);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 18px;
}

.reason-title{
  font-size: 17px;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 12px;
  line-height: 1.5;
}

.reason-desc{
  font-size: 14px;
  color: var(--sub);
  line-height: 1.9;
}

/* ==========================================================
   Flow
   ========================================================== */
.flow-steps{
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 16px;
}

.flow-step{
  position: relative;
  background: var(--sky-pale);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 30px 18px 26px;
  text-align: center;
}

.flow-num{
  width: 34px;
  height: 34px;
  line-height: 34px;
  border-radius: 50%;
  background: var(--navy);
  color: var(--white);
  font-size: 14px;
  font-weight: 700;
  margin: 0 auto 16px;
}

.flow-title{
  font-size: 15px;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 10px;
}

.flow-desc{
  font-size: 12.5px;
  color: var(--sub);
  line-height: 1.75;
}

.flow-arrow{
  display: none;
}

/* ==========================================================
   Pricing
   ========================================================== */
.pricing-grid{
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  align-items: stretch;
}

.pricing-card{
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--white);
  display: flex;
  flex-direction: column;
}

.pricing-card.is-featured{
  border-color: var(--sky);
  box-shadow: 0 20px 40px rgba(46,144,209,0.14);
  position: relative;
}

.pricing-badge{
  position: absolute;
  top: 0;
  right: 24px;
  transform: translateY(-50%);
  background: var(--sky);
  color: var(--white);
  font-size: 11.5px;
  font-weight: 700;
  padding: 5px 14px;
  border-radius: 20px;
  letter-spacing: 0.03em;
}

.pricing-head{
  background: var(--navy);
  color: var(--white);
  text-align: center;
  padding: 26px 20px 22px;
  border-radius: 11px 11px 0 0;
}

.pricing-card.is-featured .pricing-head{
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy-deep) 100%);
}

.plan-name{
  font-size: 18px;
  font-weight: 700;
  letter-spacing: 0.03em;
  margin-bottom: 8px;
}

.plan-tagline{
  font-size: 12.5px;
  color: #bcd8ea;
}

.pricing-price{
  text-align: center;
  padding: 24px 20px 8px;
  border-bottom: 1px solid var(--line);
}

.plan-price{
  font-size: 30px;
  font-weight: 700;
  color: var(--sky);
}

.plan-price .unit{
  font-size: 13px;
  color: var(--sub);
  font-weight: 500;
  margin-left: 4px;
}

.pricing-body{
  padding: 24px 26px 30px;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.pricing-features{
  flex: 1;
}

.pricing-features li{
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 13.5px;
  color: var(--ink);
  line-height: 1.7;
  margin-bottom: 12px;
}

.pricing-features li .mini-check{
  width: 16px;
  height: 16px;
  flex-shrink: 0;
  margin-top: 3px;
}

.pricing-note{
  margin-top: 30px;
  text-align: center;
  font-size: 13px;
  color: var(--sub);
  line-height: 1.9;
}

.pricing-note strong{
  color: var(--navy);
}

.pricing-note.align-left{
  text-align: left;
  margin-top: 24px;
}

/* ==========================================================
   ystream
   ========================================================== */
.ystream-section{
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy-deep) 100%);
  color: var(--white);
}

.ystream-section .section-lead{
  color: #cfe4f2;
}

.ystream-section .section-tag{
  background: var(--sky);
}

.ystream-section .section-title{
  color: var(--white);
}

.ystream-top{
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  margin-bottom: 52px;
}

.ystream-logo{
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 22px;
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.18);
  padding: 8px 20px;
  border-radius: 20px;
}

.ystream-logo-text{
  font-size: 16px;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: var(--white);
}

.ystream-logo-text span{
  color: var(--sky);
}

.ystream-grid{
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
  margin-bottom: 44px;
}

.ystream-grid.cols-3{
  grid-template-columns: repeat(3, 1fr);
}

.ystream-card{
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.14);
  border-radius: 10px;
  padding: 26px 26px 24px;
}

.ystream-card-icon{
  width: 44px;
  height: 44px;
  border-radius: 10px;
  background: rgba(46,144,209,0.22);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
}

.ystream-card-title{
  font-size: 15.5px;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 10px;
  line-height: 1.55;
}

.ystream-card-desc{
  font-size: 13.5px;
  color: #cfe4f2;
  line-height: 1.85;
}

.ystream-tiers{
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  flex-wrap: wrap;
  margin-bottom: 44px;
}

.tier-chip{
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 700;
  padding: 9px 20px;
  border-radius: 20px;
  border: 1px solid rgba(255,255,255,0.25);
}

.tier-chip .dot{
  width: 9px;
  height: 9px;
  border-radius: 50%;
}

.tier-chip.hot .dot{ background:#ff6b5e; }
.tier-chip.warm .dot{ background:#ffb84d; }
.tier-chip.cold .dot{ background:#5cc2e8; }

.ystream-cta{
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 18px;
  flex-wrap: wrap;
}

.ystream-cta-text{
  font-size: 14.5px;
  color: #cfe4f2;
}

.ystream-section .results-note{
  color: #cfe4f2;
}

.ystream-section .stat-item{
  background: rgba(255,255,255,0.06);
  border-color: rgba(255,255,255,0.14);
}

.ystream-section .stat-number{
  color: var(--white);
}

.ystream-section .stat-number.accent{
  color: #7cd0ff;
}

.ystream-section .stat-desc{
  color: #cfe4f2;
}

.section-head.mt-lg{
  margin-top: 52px;
}

/* ---------- ystream: problem / solution blocks ---------- */
.ystream-flow{
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 24px;
  margin-bottom: 52px;
}

.ystream-flow-card{
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.14);
  border-radius: 12px;
  padding: 30px 28px;
}

.ystream-flow-card .flow-kicker{
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.06em;
  color: var(--sky);
  margin-bottom: 12px;
}

.ystream-flow-card.is-problem .flow-kicker{
  color: #ff8f7a;
}

.ystream-flow-card h3{
  font-size: 17px;
  font-weight: 700;
  color: var(--white);
  line-height: 1.6;
  margin-bottom: 10px;
}

.ystream-flow-card p{
  font-size: 13.5px;
  color: #cfe4f2;
  line-height: 1.85;
}

.ystream-flow-arrow{
  display: flex;
  align-items: center;
  justify-content: center;
}

/* ---------- ystream: use scenes ---------- */
.scene-grid{
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

.scene-grid.cols-3{
  grid-template-columns: repeat(3, 1fr);
}

.scene-card{
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.14);
  border-radius: 10px;
  padding: 24px 22px;
}

.scene-num{
  font-size: 12px;
  font-weight: 700;
  color: var(--sky);
  letter-spacing: 0.05em;
  margin-bottom: 12px;
}

.scene-title{
  font-size: 15px;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 10px;
  line-height: 1.55;
}

.scene-desc{
  font-size: 13px;
  color: #cfe4f2;
  line-height: 1.8;
}

/* ==========================================================
   Product standalone-adoption block (ystream.html / flowdesk.html)
   単体導入セクション：プロダクト単体でも導入可能なことを案内する共通ブロック
   ========================================================== */
.standalone-section{
  background: var(--sky-pale);
}

.standalone-box{
  max-width: 880px;
  margin: 0 auto;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 44px 44px 40px;
  text-align: center;
}

.standalone-box .section-tag{
  margin-bottom: 20px;
}

.standalone-title{
  font-size: clamp(20px, 2.6vw, 26px);
  font-weight: 700;
  color: var(--navy);
  line-height: 1.6;
  margin-bottom: 16px;
}

.standalone-desc{
  font-size: 14.5px;
  color: var(--sub);
  line-height: 1.9;
  max-width: 620px;
  margin: 0 auto 30px;
}

.standalone-points{
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-bottom: 34px;
  text-align: left;
}

.standalone-point{
  display: flex;
  align-items: flex-start;
  gap: 10px;
  background: var(--sky-pale);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 16px 18px;
  font-size: 13.5px;
  color: var(--ink);
  line-height: 1.7;
}

.standalone-point .ico{
  width: 20px;
  height: 20px;
  flex-shrink: 0;
  margin-top: 1px;
}

.standalone-note{
  margin-top: 22px;
  font-size: 13px;
  color: var(--sub);
}

/* ==========================================================
   Company
   ========================================================== */
.company-table{
  width: 100%;
  max-width: 820px;
  margin: 0 auto;
  border-top: 1px solid var(--line);
}

.company-table tr{
  border-bottom: 1px solid var(--line);
}

.company-table th,
.company-table td{
  text-align: left;
  padding: 22px 16px;
  font-size: 14.5px;
  line-height: 1.85;
  vertical-align: top;
}

.company-table th{
  width: 200px;
  color: var(--navy);
  font-weight: 700;
  letter-spacing: 0.02em;
}

.company-table td{
  color: var(--ink);
}

.company-highlights{
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  max-width: 820px;
  margin: 0 auto 52px;
}

.company-highlight{
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 24px 22px;
  text-align: center;
}

.company-highlight-icon{
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--sky-light);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 14px;
}

.company-highlight-title{
  font-size: 13.5px;
  font-weight: 700;
  color: var(--navy);
  line-height: 1.6;
}

/* ---------- Contact page ---------- */
.contact-page-grid{
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 44px;
  align-items: start;
}

.contact-info-card{
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 32px 30px;
  background: var(--sky-pale);
}

.contact-info-title{
  font-size: 17px;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 16px;
}

.contact-info-list{
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.contact-info-item{
  display: flex;
  align-items: flex-start;
  gap: 12px;
  font-size: 14px;
  color: var(--ink);
  line-height: 1.8;
}

.contact-info-item .ico{
  width: 22px;
  height: 22px;
  flex-shrink: 0;
  margin-top: 2px;
}

.contact-info-item strong{
  display: block;
  color: var(--navy);
  font-size: 13px;
  margin-bottom: 2px;
}

.contact-steps{
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 32px 30px;
}

.contact-step{
  display: flex;
  align-items: flex-start;
  gap: 16px;
}

.contact-step + .contact-step{
  margin-top: 22px;
  padding-top: 22px;
  border-top: 1px dashed var(--line);
}

.contact-step-num{
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--navy);
  color: var(--white);
  font-size: 13px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.contact-step-title{
  font-size: 14.5px;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 4px;
}

.contact-step-desc{
  font-size: 13px;
  color: var(--sub);
  line-height: 1.75;
}

.contact-form-cta{
  margin-top: 28px;
  text-align: center;
}

/* ==========================================================
   Contact CTA
   ========================================================== */
.contact-section{
  background:
    radial-gradient(900px 400px at 15% 0%, var(--sky-light) 0%, rgba(234,244,251,0) 60%),
    var(--sky-pale);
  text-align: center;
}

.contact-tag{
  margin-bottom: 20px;
}

.contact-title{
  font-size: clamp(24px, 3.4vw, 34px);
  font-weight: 700;
  color: var(--navy);
  line-height: 1.6;
  margin-bottom: 18px;
}

.contact-lead{
  font-size: 15px;
  color: var(--sub);
  line-height: 1.9;
  max-width: 560px;
  margin: 0 auto 36px;
}

.contact-cta-row{
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 28px;
}

.contact-cta-row .btn{
  padding: 18px 38px;
  font-size: 16px;
}

.contact-mail{
  font-size: 14px;
  color: var(--sub);
}

.contact-mail strong{
  color: var(--navy);
  font-weight: 700;
}

/* ==========================================================
   Footer
   ========================================================== */
.site-footer{
  background: var(--navy);
  color: #cfe4f2;
  padding: 52px 0 28px;
}

.footer-top{
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 24px;
  padding-bottom: 28px;
  border-bottom: 1px solid rgba(255,255,255,0.14);
}

.site-footer .brand-name{
  color: var(--white);
}

.site-footer .brand-name span{
  color: var(--sky);
}

.footer-nav{
  display: flex;
  align-items: center;
  gap: 26px;
  flex-wrap: wrap;
}

.footer-nav a{
  font-size: 13.5px;
  color: #cfe4f2;
}

.footer-nav a:hover{
  color: var(--white);
}

.footer-bottom{
  margin-top: 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  font-size: 12.5px;
  color: #9dc1d8;
}

/* ==========================================================
   Utility: reveal on scroll (progressive enhancement)
   ========================================================== */
.reveal{
  opacity: 0;
  transform: translateY(18px);
  transition: opacity .6s ease, transform .6s ease;
}

.reveal.is-visible{
  opacity: 1;
  transform: translateY(0);
}

/* ==========================================================
   Responsive
   ========================================================== */
@media (max-width: 1080px){
  :root{
    --section-pad: 84px;
  }

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

  .flow-steps{
    grid-template-columns: repeat(3, 1fr);
  }

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

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

  .services-grid.cols-5{
    grid-template-columns: repeat(3, 1fr);
  }

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

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

  .case-body{
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .case-col + .case-col{
    border-left: none;
    padding-left: 0;
    border-top: 1px solid var(--line);
    padding-top: 20px;
  }

  .contact-page-grid{
    grid-template-columns: 1fr;
  }

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

@media (max-width: 900px){
  .main-nav{
    position: fixed;
    top: var(--header-h);
    left: 0;
    width: 100%;
    max-height: calc(100vh - var(--header-h));
    overflow-y: auto;
    background: var(--white);
    border-bottom: 1px solid var(--line);
    box-shadow: 0 16px 30px rgba(13,53,82,0.08);
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 8px 24px 18px;
    transform: translateY(-8px);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity .2s ease, transform .2s ease, visibility .2s ease;
  }

  .main-nav.is-open{
    transform: translateY(0);
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
  }

  .main-nav a{
    padding: 14px 4px;
    border-bottom: 1px solid var(--line);
    width: 100%;
  }

  .main-nav a:nth-last-child(2){
    border-bottom: none;
  }

  .nav-toggle{
    display: flex;
  }

  .header-cta .btn-primary{
    display: none;
  }

  .main-nav .nav-cta{
    display: flex;
    justify-content: center;
    align-items: center;
    margin-top: 14px;
    padding: 13px 20px;
    border-bottom: none;
    border-radius: 6px;
    background: var(--sky);
    color: var(--white);
    font-weight: 700;
  }

  .header-inner{
    justify-content: space-between;
  }

  .results-grid{
    grid-template-columns: repeat(1, 1fr);
    max-width: 480px;
    margin: 0 auto;
  }

  .reasons-grid{
    grid-template-columns: repeat(1, 1fr);
    max-width: 480px;
    margin: 0 auto;
  }

  .reasons-grid.cols-2{
    grid-template-columns: repeat(1, 1fr);
    max-width: 620px;
  }

  .products-grid{
    grid-template-columns: repeat(1, 1fr);
    max-width: 480px;
    margin: 0 auto;
  }

  .pricing-grid{
    grid-template-columns: repeat(1, 1fr);
    max-width: 480px;
    margin: 0 auto;
  }

  .company-highlights{
    grid-template-columns: repeat(1, 1fr);
    max-width: 420px;
  }
}

@media (max-width: 720px){
  :root{
    --section-pad: 64px;
    --header-h: 62px;
  }

  body{
    font-size: 15px;
  }

  .pc-only{
    display: none;
  }

  .header-cta .btn-outline{
    display: none;
  }

  .hero{
    padding-top: calc(var(--header-h) + 48px);
  }

  .hero-cta-row{
    flex-direction: column;
    width: 100%;
  }

  .hero-cta-row .btn{
    width: 100%;
  }

  .worry-list{
    grid-template-columns: 1fr;
  }

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

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

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

  .ystream-grid.cols-3{
    grid-template-columns: 1fr;
  }

  .ystream-tiers{
    flex-direction: column;
    align-items: stretch;
  }

  .tier-chip{
    justify-content: center;
  }

  .company-table th{
    width: 120px;
    font-size: 13px;
  }

  .company-table th,
  .company-table td{
    padding: 16px 10px;
    font-size: 13.5px;
  }

  .footer-top{
    flex-direction: column;
    align-items: flex-start;
  }

  .footer-nav{
    gap: 16px 20px;
  }

  .footer-bottom{
    flex-direction: column;
    align-items: flex-start;
  }

  .contact-cta-row{
    flex-direction: column;
    width: 100%;
  }

  .contact-cta-row .btn{
    width: 100%;
  }

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

  .stats-band{
    grid-template-columns: 1fr;
  }

  .service-block-head{
    flex-direction: column;
  }

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

  .scene-grid.cols-3{
    grid-template-columns: 1fr;
  }

  .ystream-flow{
    grid-template-columns: 1fr;
  }

  .ystream-flow-arrow svg{
    transform: rotate(90deg);
  }

  .standalone-box{
    padding: 32px 22px 30px;
  }

  .standalone-points{
    grid-template-columns: 1fr;
  }

  .case-head{
    flex-direction: column;
    align-items: flex-start;
  }

  .service-link-card{
    flex-direction: column;
    align-items: flex-start;
  }
}

@media (max-width: 480px){
  .section-title{
    font-size: 22px;
  }

  .hero-badges{
    gap: 8px;
  }

  .sns-badge{
    font-size: 11.5px;
    padding: 6px 14px;
  }

  .result-card{
    padding: 26px 22px 24px;
  }

  .flow-steps{
    grid-template-columns: 1fr;
  }
}

/* ==========================================================
   Contact form (Web3Forms)
   ========================================================== */
.contact-form-wrap{
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 36px 34px;
  background: var(--white);
  max-width: 720px;
  margin: 0 auto 56px;
}

.contact-form-note{
  font-size: 13.5px;
  color: var(--sub);
  margin: 6px 0 24px;
  line-height: 1.8;
}

.contact-form .form-row{
  margin-bottom: 18px;
}

.contact-form label{
  display: block;
  font-size: 13.5px;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 7px;
}

.contact-form .req,
.contact-form .opt{
  display: inline-block;
  font-size: 11px;
  font-weight: 700;
  padding: 1px 7px;
  border-radius: 3px;
  margin-left: 6px;
  vertical-align: 1px;
}

.contact-form .req{
  color: #c0392b;
  background: #fdecea;
}

.contact-form .opt{
  color: var(--sub);
  background: var(--sky-pale);
  border: 1px solid var(--line);
}

.contact-form input[type="text"],
.contact-form input[type="email"],
.contact-form textarea{
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 7px;
  padding: 12px 14px;
  font-family: inherit;
  font-size: 15px;
  color: var(--ink);
  background: var(--sky-pale);
  transition: border-color .16s ease, background-color .16s ease, box-shadow .16s ease;
}

.contact-form input:focus,
.contact-form textarea:focus{
  outline: none;
  border-color: var(--sky);
  background: var(--white);
  box-shadow: 0 0 0 3px rgba(46,144,209,0.14);
}

.contact-form textarea{
  resize: vertical;
  min-height: 120px;
}

.contact-form button[type="submit"]{
  margin-top: 8px;
}

/* ハニーポット（スパム除け・非表示） */
.contact-form .hp{
  position: absolute !important;
  left: -9999px !important;
  width: 1px;
  height: 1px;
  opacity: 0;
}

.form-status{
  margin-top: 16px;
  font-size: 14px;
  line-height: 1.7;
  text-align: center;
}

.form-status.is-loading{
  color: var(--sub);
}

.form-status.is-success{
  color: #1e7e46;
  background: #eafaf1;
  border: 1px solid #b7e4c7;
  border-radius: 8px;
  padding: 16px;
  font-weight: 700;
}

.form-status.is-error{
  color: #c0392b;
  background: #fdecea;
  border: 1px solid #f5c6c0;
  border-radius: 8px;
  padding: 14px;
}

@media (max-width: 600px){
  .contact-form-wrap{
    padding: 26px 20px;
  }
}
