/* ============================================================
   TechRightsVision — style.css  (モバイルファースト)
   ============================================================ */

/* ---------- 変数 ---------- */
:root {
  --navy:        #0b1f3a;
  --navy-2:      #152e52;
  --navy-3:      #1e4070;
  --blue-gray-2: #5a7490;
  --cyan:        #2cb8c4;
  --cyan-2:      #1fa0ab;
  --white:       #ffffff;
  --gray-100:    #f4f6f9;
  --gray-200:    #e8ecf2;
  --gray-300:    #cdd4df;
  --ink:         #1a2436;
  --ink-2:       #2e3d52;
  --ink-3:       #526070;
  --ink-4:       #8898a8;
  --radius-sm:   4px;
  --radius-md:   8px;
  --radius-lg:   12px;
  --shadow-sm:   0 1px 4px rgba(11,31,58,.08);
  --shadow-md:   0 4px 16px rgba(11,31,58,.10);
  --transition:  0.22s ease;
}

/* ---------- リセット ---------- */
*,*::before,*::after{box-sizing:border-box;margin:0;padding:0}
html{scroll-behavior:smooth}
body{
  font-family:'Noto Sans JP','Hiragino Kaku Gothic ProN','Hiragino Sans',Meiryo,sans-serif;
  color:var(--ink);background:var(--white);line-height:1.8;
  -webkit-font-smoothing:antialiased;
  overflow-x:hidden; /* 横スクロール禁止 */
}
img{display:block;max-width:100%;height:auto}
a{text-decoration:none;color:inherit}
ul,ol{list-style:none}
button{cursor:pointer;border:none;background:none;font:inherit}

/* ---------- レイアウト ---------- */
.container{max-width:1100px;margin:0 auto;padding:0 20px}
.section{padding:56px 0}
.section--gray{background:var(--gray-100)}
.section--navy{background:var(--navy);color:var(--white)}
.section--navy-2{background:var(--navy-2);color:var(--white)}

/* ---------- タイポグラフィ ---------- */
.section-label{
  display:inline-block;font-size:.72rem;font-weight:700;
  letter-spacing:.14em;text-transform:uppercase;
  color:var(--cyan);margin-bottom:10px;
}
.section-label--cyan{color:var(--cyan)}
.section-title{font-size:1.55rem;font-weight:700;line-height:1.35;color:var(--navy);margin-bottom:14px}
.section-title--white{color:var(--white)}
.section-title--center{text-align:center}
.section-lead{font-size:.97rem;color:var(--ink-3);line-height:1.85}
.section-lead--center{text-align:center}
.section-lead--white{color:rgba(255,255,255,.72)}
.heading-group{margin-bottom:40px}
.heading-group--center{text-align:center}
.heading-group--center .section-lead{margin:0 auto}

/* ---------- ボタン（最小タップ44px） ---------- */
.btn{
  display:inline-flex;align-items:center;justify-content:center;gap:8px;
  padding:14px 28px;min-height:48px;
  border-radius:var(--radius-sm);font-size:.9rem;font-weight:700;
  letter-spacing:.04em;transition:all var(--transition);
  white-space:nowrap;cursor:pointer;
}
.btn-primary{background:var(--cyan);color:var(--white)}
.btn-primary:hover{background:var(--cyan-2);transform:translateY(-1px);box-shadow:0 4px 12px rgba(44,184,196,.35)}
.btn-navy{background:var(--navy);color:var(--white)}
.btn-navy:hover{background:var(--navy-2);transform:translateY(-1px)}
.btn-outline{border:2px solid var(--navy);color:var(--navy);background:transparent}
.btn-outline:hover{background:var(--navy);color:var(--white)}
.btn-outline-white{border:2px solid rgba(255,255,255,.65);color:var(--white);background:transparent}
.btn-outline-white:hover{background:rgba(255,255,255,.1);border-color:var(--white)}

/* スマホ：ボタングループ縦積み */
.btn-group{display:flex;flex-direction:column;gap:12px}
.btn-group .btn{width:100%}

/* ---------- カード ---------- */
.card{
  background:var(--white);border-radius:var(--radius-lg);
  box-shadow:var(--shadow-sm);border:1px solid var(--gray-200);
  padding:24px;transition:box-shadow var(--transition),transform var(--transition);
}
.card:hover{box-shadow:var(--shadow-md);transform:translateY(-2px)}
.card-icon{
  width:46px;height:46px;border-radius:var(--radius-md);
  background:#e8f8fa;display:flex;align-items:center;justify-content:center;
  margin-bottom:14px;color:var(--cyan-2);font-size:1.25rem;
}
.card-icon--navy{background:rgba(11,31,58,.08);color:var(--navy)}
.card-title{font-size:1rem;font-weight:700;color:var(--navy);margin-bottom:8px;line-height:1.45}
.card-text{font-size:.88rem;color:var(--ink-3);line-height:1.85}

/* ---------- パンくず ---------- */
.breadcrumb{padding:12px 0;font-size:.75rem;color:var(--ink-4)}
.breadcrumb ol{display:flex;flex-wrap:wrap;gap:4px;align-items:center}
.breadcrumb li{display:flex;align-items:center;gap:4px}
.breadcrumb li+li::before{content:'/';color:var(--gray-300)}
.breadcrumb a{color:var(--blue-gray-2)}
.breadcrumb a:hover{color:var(--navy)}

/* ---------- ヘッダー ---------- */
.site-header{
  position:sticky;top:0;z-index:200;
  background:rgba(255,255,255,.97);backdrop-filter:blur(8px);
  border-bottom:1px solid var(--gray-200);
}
.header-inner{display:flex;align-items:center;justify-content:space-between;height:60px}
.header-logo{display:flex;align-items:center;gap:8px;text-decoration:none;flex-shrink:0}
.logo-mark{
  width:32px;height:32px;background:var(--navy);border-radius:var(--radius-sm);
  display:flex;align-items:center;justify-content:center;
  color:var(--cyan);font-weight:900;font-size:.92rem;flex-shrink:0;
}
.logo-text{font-size:.84rem;font-weight:700;color:var(--navy);line-height:1.25}
.logo-text span{display:block;font-size:.64rem;font-weight:400;color:var(--ink-4);letter-spacing:.03em}

/* PCナビ：デフォルト非表示 */
.global-nav{display:none}

/* ハンバーガー */
.hamburger{
  display:flex;flex-direction:column;gap:5px;padding:10px;
  min-width:44px;min-height:44px;align-items:center;justify-content:center;
}
.hamburger span{display:block;width:22px;height:2px;background:var(--navy);transition:all var(--transition);border-radius:2px}
.hamburger.is-open span:nth-child(1){transform:translateY(7px) rotate(45deg)}
.hamburger.is-open span:nth-child(2){opacity:0}
.hamburger.is-open span:nth-child(3){transform:translateY(-7px) rotate(-45deg)}

/* モバイルナビ */
.mobile-nav{
  display:none;background:var(--white);
  border-top:1px solid var(--gray-100);
  padding:8px 0 16px;
  max-height:calc(100vh - 60px);overflow-y:auto;
}
.mobile-nav.is-open{display:block}
.mobile-nav a{
  display:flex;align-items:center;
  padding:13px 20px;font-size:.9rem;font-weight:500;
  color:var(--ink-2);border-bottom:1px solid var(--gray-100);min-height:48px;
}
.mobile-nav a:hover{background:var(--gray-100);color:var(--navy)}
.mobile-nav .nav-cta{
  display:flex;margin:16px 20px 0;justify-content:center;
  background:var(--cyan);color:var(--white);padding:14px;
  border-radius:var(--radius-sm);font-weight:700;border-bottom:none;min-height:48px;
}

/* ---------- フッター：スマホ1列 ---------- */
.site-footer{background:var(--navy);color:rgba(255,255,255,.75);padding:48px 0 0}
.footer-inner{display:flex;flex-direction:column;gap:28px;padding-bottom:36px}
.footer-brand .logo-text{color:var(--white)}
.footer-brand .logo-text span{color:rgba(255,255,255,.4)}
.footer-tagline{font-size:.84rem;margin-top:12px;line-height:1.75;color:rgba(255,255,255,.52)}
.footer-col-title{font-size:.7rem;font-weight:700;letter-spacing:.1em;text-transform:uppercase;color:var(--cyan);margin-bottom:10px}
.footer-col a{display:block;font-size:.84rem;color:rgba(255,255,255,.6);padding:5px 0;transition:color var(--transition)}
.footer-col a:hover{color:var(--white)}
.footer-bottom{
  border-top:1px solid rgba(255,255,255,.1);padding:18px 0;
  display:flex;flex-direction:column;gap:8px;
  font-size:.75rem;color:rgba(255,255,255,.36);
}
.footer-bottom a{color:rgba(255,255,255,.42)}
.footer-bottom a:hover{color:var(--white)}
.footer-bottom-links{display:flex;gap:16px;flex-wrap:wrap}

/* ---------- ヒーロー ---------- */
.hero{
  background:var(--navy);color:var(--white);
  padding:52px 0 44px;position:relative;overflow:hidden;
}
.hero::before{
  content:'';position:absolute;right:-10%;top:-20%;
  width:70%;height:140%;background:rgba(44,184,196,.05);
  border-radius:50%;pointer-events:none;
}
.hero-inner{position:relative;z-index:1}
.hero-eyebrow{font-size:.7rem;font-weight:700;letter-spacing:.14em;text-transform:uppercase;color:var(--cyan);margin-bottom:12px}
.hero-title{font-size:1.85rem;font-weight:900;line-height:1.3;margin-bottom:18px;color:var(--white)}
.hero-title em{font-style:normal;color:var(--cyan)}
.hero-lead{font-size:.97rem;color:rgba(255,255,255,.72);line-height:1.85;margin-bottom:28px}
/* スマホ：縦積みボタン */
.hero-btns{display:flex;flex-direction:column;gap:12px}
.hero-btns .btn{width:100%}
/* ビジュアル：スマホでは上に出す */
.hero-visual{margin-bottom:28px}
.hero-dashboard{background:rgba(255,255,255,.06);border:1px solid rgba(255,255,255,.1);border-radius:var(--radius-lg);padding:18px}
.dashboard-header{display:flex;align-items:center;justify-content:space-between;margin-bottom:14px;flex-wrap:wrap;gap:6px}
.dashboard-title{font-size:.7rem;font-weight:700;color:var(--cyan);letter-spacing:.08em;text-transform:uppercase}
.dashboard-badge{background:rgba(44,184,196,.2);color:var(--cyan);font-size:.66rem;font-weight:700;padding:3px 9px;border-radius:20px;border:1px solid rgba(44,184,196,.3)}
.dashboard-metrics{display:grid;grid-template-columns:repeat(3,1fr);gap:8px;margin-bottom:14px}
.metric{background:rgba(255,255,255,.06);border-radius:var(--radius-md);padding:11px 6px;text-align:center;border:1px solid rgba(255,255,255,.07)}
.metric-label{font-size:.66rem;color:rgba(255,255,255,.5);margin-bottom:5px}
.metric-value{font-size:1.3rem;font-weight:700;color:var(--white);line-height:1}
.metric-value.good{color:var(--cyan)}
.metric-value.warn{color:#f5a623}
.metric-unit{font-size:.62rem;font-weight:400;color:rgba(255,255,255,.4)}
.dashboard-bars{display:flex;flex-direction:column;gap:8px}
.bar-row{display:flex;align-items:center;gap:7px}
.bar-label{font-size:.7rem;color:rgba(255,255,255,.52);width:52px;flex-shrink:0}
.bar-track{flex:1;height:5px;background:rgba(255,255,255,.1);border-radius:3px;overflow:hidden}
.bar-fill{height:100%;border-radius:3px;background:var(--cyan)}
.bar-pct{font-size:.7rem;color:rgba(255,255,255,.42);width:28px;text-align:right;flex-shrink:0}

/* ---------- ページヒーロー ---------- */
.page-hero{background:var(--navy);color:var(--white);padding:40px 0 36px}
.page-hero-label{font-size:.7rem;letter-spacing:.12em;text-transform:uppercase;color:var(--cyan);margin-bottom:8px}
.page-hero h1{font-size:1.5rem;font-weight:900;color:var(--white);margin-bottom:10px;line-height:1.35}
.page-hero p{font-size:.92rem;color:rgba(255,255,255,.66);max-width:520px;line-height:1.8}

/* ---------- 哲学ブロック ---------- */
.philosophy-block{
  border-left:3px solid var(--cyan);padding:16px 18px;
  background:var(--gray-100);border-radius:0 var(--radius-md) var(--radius-md) 0;margin:18px 0;
}
.philosophy-block p{font-size:.97rem;font-weight:700;color:var(--navy);line-height:1.65}

/* ---------- タイムライン ---------- */
.timeline{position:relative;padding:8px 0}
.timeline::before{content:'';position:absolute;left:20px;top:0;bottom:0;width:2px;background:rgba(255,255,255,.15)}
.timeline-item{display:flex;gap:18px;margin-bottom:32px}
.timeline-dot{width:12px;height:12px;border-radius:50%;background:var(--cyan);border:3px solid var(--navy);box-shadow:0 0 0 2px var(--cyan);flex-shrink:0;margin-top:4px;margin-left:15px}
.timeline-content{flex:1}
.timeline-period{font-size:.72rem;font-weight:700;color:var(--cyan);margin-bottom:4px}
.timeline-title{font-size:1.05rem;font-weight:700;color:var(--white);margin-bottom:6px}
.timeline-text{font-size:.88rem;color:rgba(255,255,255,.64);line-height:1.8}

/* ---------- サービスカード：スマホ1列 ---------- */
.service-cards{display:flex;flex-direction:column;gap:16px}
.service-card{background:var(--white);border-radius:var(--radius-lg);border:1px solid var(--gray-200);padding:24px;transition:all var(--transition)}
.service-card:hover{border-color:var(--cyan);box-shadow:0 4px 20px rgba(44,184,196,.12);transform:translateY(-2px)}
.service-card-num{font-size:.7rem;font-weight:700;color:var(--cyan);margin-bottom:10px;letter-spacing:.1em}
.service-card-icon{font-size:1.75rem;margin-bottom:12px;color:var(--navy)}
.service-card-title{font-size:1.05rem;font-weight:700;color:var(--navy);margin-bottom:10px}
.service-card-text{font-size:.88rem;color:var(--ink-3);line-height:1.85;margin-bottom:16px}
.service-card-link{
  display:inline-flex;align-items:center;gap:6px;font-size:.88rem;
  font-weight:700;color:var(--cyan-2);min-height:44px;transition:gap var(--transition);
}
.service-card-link:hover{gap:10px}

/* ---------- 悩みリスト：スマホ1列 ---------- */
.pain-list{display:flex;flex-direction:column;gap:10px}
.pain-item{display:flex;gap:12px;align-items:flex-start;background:var(--gray-100);border-radius:var(--radius-md);padding:14px 16px}
.pain-icon{color:var(--cyan-2);font-size:.95rem;flex-shrink:0;margin-top:3px}
.pain-text{font-size:.88rem;color:var(--ink-2);line-height:1.75}

/* ---------- 理由グリッド：スマホ1列 ---------- */
.reason-grid{display:flex;flex-direction:column;gap:24px}
.reason-item{padding:4px 0}
.reason-num{width:44px;height:44px;border-radius:50%;background:rgba(44,184,196,.12);color:var(--cyan);font-size:1rem;font-weight:900;display:flex;align-items:center;justify-content:center;margin:0 0 12px}
.reason-title{font-size:.97rem;font-weight:700;color:var(--navy);margin-bottom:8px}
.reason-text{font-size:.88rem;color:var(--ink-3);line-height:1.85}

/* ---------- CTA ---------- */
.cta-banner{background:var(--navy);color:var(--white);padding:52px 0;text-align:center}
.cta-banner-title{font-size:1.5rem;font-weight:900;margin-bottom:12px;line-height:1.35}
.cta-banner-text{font-size:.97rem;color:rgba(255,255,255,.68);margin-bottom:28px;line-height:1.8}
.cta-banner-btns{display:flex;flex-direction:column;align-items:center;gap:12px;max-width:340px;margin:0 auto}
.cta-banner-btns .btn{width:100%}

/* ---------- インサイト：スマホ1列 ---------- */
.insights-grid{display:flex;flex-direction:column;gap:16px}
.insight-card{background:var(--white);border-radius:var(--radius-lg);border:1px solid var(--gray-200);overflow:hidden;transition:all var(--transition)}
.insight-card:hover{box-shadow:var(--shadow-md);transform:translateY(-2px)}
.insight-card-img{width:100%;height:130px;background:var(--gray-100);display:flex;align-items:center;justify-content:center;color:var(--ink-4)}
.insight-card-body{padding:16px}
.insight-card-tag{font-size:.7rem;font-weight:700;color:var(--cyan-2);letter-spacing:.08em;text-transform:uppercase;margin-bottom:6px}
.insight-card-title{font-size:.95rem;font-weight:700;color:var(--navy);line-height:1.5;margin-bottom:6px}
.insight-card-date{font-size:.75rem;color:var(--ink-4)}

/* ---------- フォーム ---------- */
.form-group{margin-bottom:20px}
.form-label{display:block;font-size:.88rem;font-weight:700;color:var(--navy);margin-bottom:7px}
.form-label .required{color:#e05a5a;font-size:.75rem;margin-left:4px}
.form-input,.form-select,.form-textarea{
  width:100%;padding:12px 14px;border:1.5px solid var(--gray-300);
  border-radius:var(--radius-sm);font-size:1rem;/* ズーム防止 */
  font-family:inherit;color:var(--ink);background:var(--white);
  transition:border-color var(--transition),box-shadow var(--transition);
  appearance:none;
}
.form-input:focus,.form-select:focus,.form-textarea:focus{outline:none;border-color:var(--cyan);box-shadow:0 0 0 3px rgba(44,184,196,.15)}
.form-textarea{resize:vertical;min-height:120px}
.form-select{
  background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%238898a8' stroke-width='1.5' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat:no-repeat;background-position:right 12px center;padding-right:36px;
}
.form-checkbox{display:flex;gap:10px;align-items:flex-start}
.form-checkbox input{margin-top:4px;accent-color:var(--cyan);flex-shrink:0}
.form-checkbox label{font-size:.88rem;color:var(--ink-3);line-height:1.7}
.check-group{display:flex;flex-wrap:wrap;gap:8px}
.check-option{
  display:flex;align-items:center;gap:6px;background:var(--gray-100);
  border:1.5px solid var(--gray-200);border-radius:var(--radius-sm);
  padding:10px 14px;cursor:pointer;transition:all var(--transition);
  font-size:.88rem;color:var(--ink-2);min-height:44px;
}
.check-option:hover{border-color:var(--cyan)}
.check-option input{accent-color:var(--cyan)}

/* ---------- テーブル ---------- */
.company-table{width:100%;border-collapse:collapse;font-size:.9rem}
.company-table th,.company-table td{padding:12px 14px;border-bottom:1px solid var(--gray-200);vertical-align:top;line-height:1.75;text-align:left}
.company-table th{font-weight:700;color:var(--navy);background:var(--gray-100);white-space:nowrap;width:120px}
.company-table td{color:var(--ink-2)}

/* フェードイン */
.fade-in{opacity:0;transform:translateY(16px);transition:opacity .5s ease,transform .5s ease}
.fade-in.visible{opacity:1;transform:translateY(0)}

/* ============================================================
   タブレット（≥ 640px）
   ============================================================ */
@media (min-width:640px){
  .container{padding:0 24px}
  .section{padding:64px 0}
  .btn-group{flex-direction:row;flex-wrap:wrap}
  .btn-group .btn{width:auto}
  .hero-btns{flex-direction:row;flex-wrap:wrap}
  .hero-btns .btn{width:auto}
  .cta-banner-btns{flex-direction:row;justify-content:center;max-width:none}
  .cta-banner-btns .btn{width:auto}
  .pain-list{display:grid;grid-template-columns:1fr 1fr;gap:12px}
  .insights-grid{display:grid;grid-template-columns:1fr 1fr;gap:16px}
  .footer-inner{display:grid;grid-template-columns:1fr 1fr;gap:28px}
  .footer-bottom{flex-direction:row;justify-content:space-between;align-items:center}
  .cta-banner-title{font-size:1.75rem}
  .section-title{font-size:1.75rem}
  .hero-title{font-size:2.2rem}
  .page-hero h1{font-size:1.75rem}
}

/* ============================================================
   PC（≥ 960px）
   ============================================================ */
@media (min-width:960px){
  .container{padding:0 24px}
  .section{padding:80px 0}
  .section-title{font-size:2rem}
  .hero-title{font-size:2.6rem}
  .cta-banner-title{font-size:2rem}
  .page-hero{padding:52px 0 48px}
  .page-hero h1{font-size:2rem}

  /* ハンバーガー非表示、PCナビ表示 */
  .hamburger{display:none}
  .mobile-nav{display:none !important}
  .global-nav{
    display:flex;align-items:center;gap:24px;
  }
  .global-nav a{
    font-size:.84rem;font-weight:500;color:var(--ink-2);
    padding:4px 0;border-bottom:2px solid transparent;
    transition:color var(--transition),border-color var(--transition);
  }
  .global-nav a:hover{color:var(--navy);border-bottom-color:var(--cyan)}
  .global-nav .nav-cta{
    background:var(--cyan);color:var(--white);
    padding:8px 18px;border-radius:var(--radius-sm);
    border-bottom:none;font-weight:700;min-height:36px;
  }
  .global-nav .nav-cta:hover{background:var(--cyan-2);border-bottom:none}
  .header-inner{height:68px}

  /* ヒーロー2列 */
  .hero{padding:80px 0 72px}
  .hero-inner{display:grid;grid-template-columns:1fr 1fr;gap:48px;align-items:center}
  .hero-visual{margin-bottom:0}

  /* カード系 */
  .service-cards{flex-direction:row}
  .service-cards .service-card{flex:1}
  .reason-grid{flex-direction:row}
  .reason-item{flex:1;text-align:center}
  .reason-num{margin:0 auto 12px}
  .insights-grid{grid-template-columns:repeat(3,1fr)}
  .footer-inner{grid-template-columns:1.5fr 1fr 1fr 1fr;gap:40px}
}

/* テーブル：スマホ縦積み */
@media (max-width:540px){
  .company-table tr{display:block;border-bottom:1px solid var(--gray-200);padding:4px 0}
  .company-table th,.company-table td{display:block;width:100%;border-bottom:none;padding:5px 14px}
  .company-table th{background:none;color:var(--ink-4);font-size:.72rem;white-space:normal;padding-bottom:2px}
}
