/* =================================
   DIGITAL PROFITS 用CSS 完全版
   背景色  : #212e50
   アクセント色 : #feb10b
   高級感・BtoB感を意識した調整版
================================= */

/* =========================
   変数定義
========================= */
:root{
  --bg:#212e50;
  --yellow:#feb10b;
  --white:#ffffff;

  --line:rgba(255,255,255,.14);
  --line-strong:rgba(255,255,255,.22);

  --card:rgba(255,255,255,.04);
  --card-hover:rgba(255,255,255,.07);

  --container:1200px;
  --radius:22px;
  --shadow:0 20px 40px rgba(0,0,0,.22);
  --shadow-soft:0 12px 28px rgba(0,0,0,.18);
}

/* =========================
   リセット
========================= */
*{
  margin:0;
  padding:0;
  box-sizing:border-box;
}

html{
  scroll-behavior:smooth;
}

body{
  font-family:"Noto Sans JP", sans-serif;
  background:var(--bg);
  color:var(--white);
  line-height:1.7;
  letter-spacing:.01em;
}

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

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

/* =========================
   共通レイアウト
========================= */
.container{
  width:min(var(--container), calc(100% - 40px));
  margin:0 auto;
}

.section{
  padding:110px 0;
}

.section-alt{
  background:var(--bg);
}

.section-heading{
  margin-bottom:42px;
  text-align:left;
}

.section-label{
  display:block;
  font-size:13px;
  font-weight:800;
  letter-spacing:.16em;
  color:var(--yellow);
  margin-bottom:12px;
}

.section h2{
  font-size:clamp(34px, 4vw, 52px);
  line-height:1.15;
  color:var(--yellow);
  letter-spacing:-.02em;
}

.section-text{
  max-width:820px;
  font-size:17px;
  color:var(--white);
  text-align:left;
  margin:0;
}

.section-text-spaced{
  margin-bottom:24px;
}

.section-text-last{
  margin-bottom:32px;
}

.section-cta{
  text-align:center;
  margin-top:40px;
}

/* =========================
   ヘッダー
========================= */
.header{
  position:sticky;
  top:0;
  z-index:999;
  background:rgba(33,46,80,.82);
  border-bottom:1px solid var(--line);
  backdrop-filter:blur(14px);
  transition:background .25s ease, box-shadow .25s ease;
}

.header-inner{
  min-height:66px;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:24px;
}

.logo{
  display:flex;
  align-items:center;
  gap:12px;
}

.logo-mark{
  width:44px;
  height:44px;
  border-radius:14px;
  background:var(--yellow);
  color:var(--bg);
  display:grid;
  place-items:center;
  font-size:14px;
  font-weight:800;
  box-shadow:var(--shadow-soft);
}

.logo-text{
  font-size:22px;
  font-weight:800;
  color:var(--yellow);
  letter-spacing:.04em;
}

.nav{
  display:flex;
  align-items:center;
  gap:24px;
  font-size:15px;
  font-weight:600;
}

.nav a{
  transition:.2s ease;
}

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

.nav-cta{
  background:var(--yellow);
  color:var(--bg);
  padding:12px 18px;
  border-radius:999px;
  font-weight:800;
  box-shadow:var(--shadow-soft);
}

.header.is-scrolled{
  background:rgba(33,46,80,.94);
  box-shadow:0 12px 28px rgba(0,0,0,.18);
}

/* =========================
   ボタン
========================= */
.btn{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  min-height:58px;
  padding:0 30px;
  border-radius:999px;
  font-weight:800;
  font-size:16px;
  transition:.25s ease;
}

.btn:hover{
  transform:translateY(-3px);
  box-shadow:0 14px 28px rgba(0,0,0,.25);
}

.btn-primary{
  background:var(--yellow);
  color:var(--bg);
}

.btn-secondary{
  background:transparent;
  color:var(--white);
  border:1px solid var(--line-strong);
}

.cta-big{
  min-height:68px;
  padding:0 42px;
  font-size:20px;
  font-weight:800;
  box-shadow:0 18px 36px rgba(0,0,0,.28);
  transform:translateY(0);
}

.cta-big:hover{
  transform:translateY(-4px) scale(1.02);
  box-shadow:0 24px 48px rgba(0,0,0,.34);
}

/* =========================
   ヒーロー
========================= */
.hero{
  padding:150px 0 120px;
  background:
    linear-gradient(
      rgba(33,46,80,.86),
      rgba(33,46,80,.88)
    ),
    url("images/hero.png") center/cover no-repeat;
}

.hero-inner{
  max-width:920px;
}

.hero-label{
  display:inline-block;
  background:rgba(254,177,11,.14);
  color:var(--yellow);
  padding:10px 16px;
  border:1px solid rgba(254,177,11,.18);
  border-radius:999px;
  font-size:14px;
  font-weight:800;
  letter-spacing:.04em;
  margin-bottom:22px;
}

.hero h1{
  max-width:900px;
  font-size:clamp(40px, 5.6vw, 72px);
  line-height:1.08;
  color:var(--yellow);
  letter-spacing:-.03em;
}

.hero-text{
  margin-top:28px;
  max-width:760px;
  font-size:19px;
  line-height:1.9;
  color:var(--white);
}

.hero-subtext{
  margin-top:16px;
  max-width:720px;
  font-size:16px;
  line-height:1.9;
  color:rgba(255,255,255,.82);
}

.hero-actions{
  display:flex;
  flex-wrap:wrap;
  gap:14px;
  margin-top:38px;
}

.hero-actions .btn{
  min-width:220px;
}

/* service.html の container内背景ヒーロー */
.service-hero{
  background:var(--bg);
  padding:140px 0 110px;
}

/* =========================
   カード
========================= */
.cards{
  display:grid;
  grid-template-columns:repeat(3,1fr);
  gap:24px;
}

.card{
  background:var(--card);
  border:1px solid rgba(255,255,255,.10);
  border-radius:var(--radius);
  padding:34px;
  box-shadow:var(--shadow);
  transition:.25s ease;
}

.card:hover{
  background:var(--card-hover);
  transform:translateY(-6px);
  border-color:rgba(254,177,11,.45);
}

.card h3{
  font-size:22px;
  color:var(--yellow);
  margin-bottom:14px;
  line-height:1.35;
}

.card p{
  color:var(--white);
  font-size:16px;
}

/* =========================
   導入フロー
========================= */
.flow-list{
  display:grid;
  grid-template-columns:repeat(4,1fr);
  gap:24px;
}

.flow-list.flow-list-5{
  max-width:980px;
  margin:0 auto;
  grid-template-columns:repeat(3, minmax(0,1fr));
}

.flow-item{
  background:var(--card);
  border:1px solid var(--line);
  border-radius:var(--radius);
  padding:32px;
  box-shadow:var(--shadow);
  transition:.25s ease;
}

.flow-item:hover{
  transform:translateY(-5px);
  border-color:rgba(254,177,11,.35);
}

.flow-item span{
  display:inline-block;
  font-size:13px;
  font-weight:800;
  letter-spacing:.1em;
  color:var(--yellow);
  margin-bottom:14px;
}

.flow-item h3{
  font-size:22px;
  color:var(--yellow);
  margin-bottom:12px;
  line-height:1.35;
}

.flow-item p{
  color:var(--white);
  font-size:16px;
}

.flow-cta-actions{
  text-align:center;
  margin-top:36px;
}

.flow-cta-text{
  max-width:760px;
  margin:0 auto 20px;
}

/* =========================
   FAQ
========================= */
.faq-list{
  display:grid;
  gap:20px;
}

.faq-item{
  background:var(--card);
  border:1px solid var(--line);
  border-radius:18px;
  padding:28px 30px;
  box-shadow:var(--shadow-soft);
}

.faq-item h3{
  color:var(--yellow);
  font-size:20px;
  margin-bottom:10px;
  line-height:1.4;
}

.faq-item p{
  color:var(--white);
  font-size:16px;
}

/* =========================
   会社概要
========================= */
.company-box{
  background:var(--card);
  border:1px solid var(--line);
  border-radius:20px;
  overflow:hidden;
  box-shadow:var(--shadow-soft);
}

.company-row{
  display:grid;
  grid-template-columns:220px 1fr;
}

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

.company-head{
  padding:22px 26px;
  font-weight:800;
  color:var(--yellow);
  background:rgba(255,255,255,.03);
}

.company-body{
  padding:22px 26px;
  color:var(--white);
}

/* =========================
   フォーム
========================= */
.contact-form{
  max-width:760px;
  display:grid;
  gap:22px;
  padding:32px;
  background:rgba(255,255,255,.03);
  border:1px solid var(--line);
  border-radius:20px;
}

.form-group{
  display:grid;
  gap:8px;
}

.form-group label{
  font-weight:700;
  color:var(--yellow);
}

.form-group input,
.form-group textarea,
.form-group select{
  width:100%;
  padding:15px 16px;
  border:1px solid var(--line);
  border-radius:14px;
  font:inherit;
  background:rgba(255,255,255,.03);
  color:var(--white);
  outline:none;
}

.form-group input::placeholder,
.form-group textarea::placeholder{
  color:rgba(255,255,255,.7);
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus{
  border-color:var(--yellow);
}

.form-group select option{
  color:#212e50;
}

.form-btn{
  width:fit-content;
}

.required{
  color:var(--yellow);
  font-size:13px;
  font-weight:700;
  margin-left:6px;
}

.error-message{
  color:#ff6b6b;
  font-size:13px;
  margin-top:6px;
  display:none;
}

.input-error{
  border-color:#ff6b6b !important;
}

/* =========================
   contact.html LINE導線
========================= */
.contact-section{
  padding:80px 0;
}

.line-heading{
  text-align:center;
  margin-bottom:20px;
}

.line-heading .section-label{
  margin-bottom:10px;
}

.line-heading h2{
  color:#ffffff;
}

.line-main{
  color:#ffffff;
}

.line-main strong{
  color:#feb10b;
}

.line-sub{
  color:rgba(255,255,255,.86);
}

.line-support-cards{
  margin-top:0;
  margin-bottom:36px;
}

.line-support-cards .card{
  min-height:100%;
  background:#ffffff;
  border:1px solid rgba(33,46,80,.08);
  border-top:4px solid #feb10b;
  box-shadow:0 14px 30px rgba(33,46,80,.08);
  transition:transform .25s ease, box-shadow .25s ease, border-color .25s ease;
}

.line-support-cards .card:hover{
  transform:translateY(-4px);
  box-shadow:0 18px 36px rgba(33,46,80,.12);
  border-color:rgba(33,46,80,.14);
  background:#ffffff;
}

.line-support-cards .card h3{
  margin-bottom:12px;
  color:#212e50;
  font-size:1.1rem;
  line-height:1.5;
}

.line-support-cards .card p{
  margin:0;
  color:#5b6475;
  line-height:1.85;
  font-size:.96rem;
}

.line-cta-box{
  text-align:center;
  background:linear-gradient(135deg, #212e50 0%, #2b3f6c 100%);
  border-radius:20px;
  padding:32px 24px;
  margin-bottom:20px;
}

.line-guide{
  margin:0 0 18px;
  font-size:1rem;
  line-height:1.8;
  color:#ffffff;
}

.line-cta-btn{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  min-width:320px;
  min-height:58px;
  padding:18px 36px;
  border-radius:999px;
  background:#feb10b;
  color:#212e50;
  font-size:1rem;
  font-weight:800;
  text-decoration:none;
  box-shadow:0 12px 30px rgba(254,177,11,.28);
  transition:transform .25s ease, box-shadow .25s ease, opacity .25s ease;
}

.line-cta-btn:hover{
  transform:translateY(-2px);
  box-shadow:0 16px 36px rgba(254,177,11,.36);
  opacity:.98;
}

.line-cta-note{
  margin:14px 0 0;
  font-size:.92rem;
  line-height:1.8;
  color:rgba(255,255,255,.82);
}

.line-form-note{
  margin:0;
  text-align:center;
  font-size:.92rem;
  line-height:1.8;
  color:#6b7280;
}

.form-intro{
  margin-bottom:32px;
}

/* =========================
   共通CTA
========================= */
.final-cta-section{
  padding:100px 0 110px;
}

.final-cta-heading{
  text-align:center;
  margin-bottom:24px;
}

.final-cta-text{
  max-width:760px;
  margin:0 auto;
  text-align:center;
  font-size:18px;
  line-height:1.9;
  color:var(--white);
}

.final-cta-actions{
  text-align:center;
  margin-top:36px;
}

/* =========================
   JS連動アニメーション
========================= */
.fade-up{
  opacity:0;
  transform:translateY(24px);
  transition:opacity .7s ease, transform .7s ease;
}

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

/* =========================
   フッター
========================= */
.footer{
  background:var(--bg);
  color:var(--white);
  padding:30px 0;
  border-top:1px solid var(--line);
}

.footer-inner{
  display:flex;
  justify-content:center;
  align-items:center;
  gap:20px;
  flex-wrap:wrap;
}

/* =========================
   タブレット
========================= */
@media (max-width:1024px){

  .nav{
    gap:16px;
    font-size:14px;
  }

  .hero{
    padding:130px 0 105px;
  }

  .hero h1{
    font-size:clamp(38px, 5.4vw, 58px);
  }

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

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

  .flow-list.flow-list-5{
    grid-template-columns:repeat(2, minmax(0,1fr));
  }

  .section{
    padding:95px 0;
  }

  .service-hero .hero-inner{
    padding:56px 40px;
  }
}

/* =========================
   スマホ
========================= */
@media (max-width:768px){

  .container{
    width:min(var(--container), calc(100% - 28px));
  }

  .section{
    padding:78px 0;
  }

  .header-inner{
    flex-direction:column;
    align-items:flex-start;
    gap:16px;
    padding:14px 0;
  }

  .nav{
    flex-wrap:wrap;
    justify-content:center;
    gap:12px;
  }

  .hero{
    padding:96px 0 80px;
  }

  .hero-inner{
    max-width:none;
  }

  .hero h1{
    font-size:36px;
    line-height:1.18;
  }

  .hero-text,
  .section-text{
    font-size:16px;
  }

  .hero-text{
    margin-top:22px;
    line-height:1.85;
  }

  .hero-subtext{
    margin-top:14px;
    font-size:15px;
    line-height:1.8;
  }

  .hero-actions{
    display:grid;
    grid-template-columns:1fr;
    gap:12px;
    margin-top:30px;
  }

  .hero-actions .btn{
    width:100%;
    min-width:0;
  }

  .cards,
  .flow-list,
  .flow-list.flow-list-5{
    grid-template-columns:1fr;
  }

  .company-row{
    grid-template-columns:1fr;
  }

  .company-head{
    padding-bottom:8px;
  }

  .company-body{
    padding-top:0;
    width:100%;
  }

  .btn{
    width:100%;
  }

  .contact-form{
    padding:24px 18px;
  }

  .line-main{
    font-size:1rem;
  }

  .line-sub{
    font-size:.95rem;
  }

  .line-cta-btn{
    width:100%;
    min-width:0;
    font-size:18px;
  }

  .line-guide{
    font-size:.95rem;
    line-height:1.7;
  }

  .line-form-note{
    font-size:13px;
  }

}

/* =========================
   小型スマホ
========================= */
@media (max-width:640px){

  .contact-section{
    padding:60px 0;
  }

  .line-sub{
    margin-bottom:28px;
  }

  .line-cta-box{
    padding:26px 18px;
    border-radius:16px;
  }
}

@media (max-width:480px){

  .container{
    width:min(var(--container), calc(100% - 24px));
  }

  .logo-text{
    font-size:18px;
  }

  .hero h1{
    font-size:32px;
  }

  .hero-label{
    font-size:13px;
    padding:8px 14px;
  }

  .card,
  .flow-item,
  .faq-item{
    padding:24px;
  }

  .final-cta-text{
    font-size:16px;
  }

}

/* =========================
   service.html ABOUT背景ビジュアル
========================= */
.about-visual-box{
  position: relative;
  overflow: hidden;
  padding: 56px 48px;
  border-radius: 28px;
  background:
    linear-gradient(
      90deg,
      rgba(33,46,80,.94) 0%,
      rgba(33,46,80,.86) 45%,
      rgba(33,46,80,.66) 100%
    ),
    url("images/service-visual.png") right center / cover no-repeat;
  border: 1px solid rgba(255,255,255,.08);
  box-shadow: 0 30px 60px rgba(0,0,0,.22);
}

.about-visual-box .section-text{
  max-width: 720px;
}

@media (max-width: 768px){
  .about-visual-box{
    padding: 36px 22px;
    border-radius: 20px;
    background:
      linear-gradient(
        rgba(33,46,80,.90),
        rgba(33,46,80,.90)
      ),
      url("images/service-visual.png") center / cover no-repeat;
  }
}

/* =========================
   contact.html 背景ビジュアル
========================= */
.contact-visual-box{
  position: relative;
  overflow: hidden;
  padding: 56px 48px;
  border-radius: 28px;
  background:
    linear-gradient(
      90deg,
      rgba(33,46,80,.95) 0%,
      rgba(33,46,80,.88) 48%,
      rgba(33,46,80,.72) 100%
    ),
    url("images/contact-visual.png") right center / cover no-repeat;
  border: 1px solid rgba(255,255,255,.08);
  box-shadow: 0 30px 60px rgba(0,0,0,.22);
}

@media (max-width:768px){
  .contact-visual-box{
    padding:34px 22px;
    border-radius:20px;
    background:
      linear-gradient(
        rgba(33,46,80,.92),
        rgba(33,46,80,.92)
      ),
      url("images/contact-visual.png") center / cover no-repeat;
  }
}

.final-cta-section{
  padding:100px 0 110px;
  position:relative;
  overflow:hidden;

  background:
    linear-gradient(
      rgba(33,46,80,.82),
      rgba(33,46,80,.88)
    ),
    url("images/final-cta-bg.png") center/cover no-repeat;
}

.logo-img{
  height:88px;
  width:auto;
  display:block;
}

@media (max-width:768px){
  .logo-img{
    height:50px;
  }
}