:root {
  --primary: #1E88E5;
  --primary-light: #64B5F6;
  --dark-gray: #4D4D4D;
  --bg-light: #FFFFFF;
  --border-color: #f3f3f3;
  --cta-orange: #FF5A2A;
  --hero-font: 'Noto Sans JP', 'M PLUS 1p', 'Helvetica Neue', 'Hiragino Kaku Gothic ProN', 'Yu Gothic', sans-serif;
  --caption-text: #777777;
}

html { box-sizing: border-box; }
*,*::before,*::after { box-sizing: inherit; }

body {
  font-family: 'Roboto', 'Helvetica Neue', Helvetica, Arial, sans-serif;
  margin: 0;
  background: var(--bg-light);
  color: var(--dark-gray);
}

html,
body {
  overflow-x: hidden;
}

/* Fixed Header */
.header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 12px;
  box-sizing: border-box;
  background-color: #ffffff;
  color: #fff;
  z-index: 1000;
}
.header.scrolled {
  background-color: rgba(255, 255, 255, 0.7);
}
.header .logo img {
  height: 40px;
}
.header .right {
  display: flex;
  align-items: center;
  gap: 15px;
}
.header .signup-btn {
  display: inline-block;
  padding: 0.75em 1.5em;
  background-color: var(--primary);
  color: #fff;
  font-weight: 500;
  text-decoration: none;
  line-height: 1;
  border: none;
  border-radius: 6px;
  position: relative;
  /* box-shadow: 0 6px 0 rgba(0, 0, 0, 0.15); */
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.header .signup-btn .btn-text {
  margin: 0;
  pointer-events: none;
}

main {
  padding-top: 64px;
}

@media (max-width: 768px) {
  main {
    padding-top: 22px;
  }
  .header .right {
    gap: 8px;
  }
}

/* レスポンシブ改行 */
.br-sp {
  display: none; /* デフォルトでは非表示 */
}

@media (max-width: 768px) { /* 例えば、768px以下の画面幅で */
  .br-sp {
    display: block; /* 表示 */
  }
}

.root-container{
  max-width: 71.5rem;
  margin-left: auto;
  margin-right: auto;
  width: 100%;
  /* 高さを固定しない。最低でも 100 vh にしたい場合だけ ↓ */
  /* min-height: 100vh; */
  padding-left:1rem;
  padding-right: 1rem;
}

/* Request Card */
.request-card {
  background: #fff;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
  padding: 20px;
  border-radius: 8px;
}
.request-card form {
  display: flex;
  flex-direction: column;
  gap: 15px;
}
.request-card input[type="text"],
.request-card input[type="email"] {
  padding: 10px;
  border: 1px solid var(--border-color);
  border-radius: 4px;
  font-size: 16px;
}
.request-card button {
  padding: 12px;
  background-color: var(--cta-orange);
  color: #fff;
  font-size: 18px;
  font-weight: 700;
  border: none;
  border-radius: 4px;
  cursor: pointer;
}

/* ===== CTAボタン ===== */
.cta-btn {
  display: inline-block;
  padding: 0.75em 2.5em;
  background-color: var(--primary);
  color: #fff;
  font-weight: 600;
  text-decoration: none;
  line-height: 1;
  border: none;
  border-radius: 9999px;
  position: relative;
  overflow: hidden;           /* 光エフェクトがはみ出さないように */
  box-shadow: 0 6px 0 rgba(0, 0, 0, 0.15);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}
/* テキストだけをクリック不可にしてネストを許容 */
.cta-btn .btn-text {
  margin: 0;
  pointer-events: none;
}

/* 斜めに走る光エフェクト */
.cta-btn::before {
  content: "";
  position: absolute;
  top: -110%;
  left: -60%;
  width: 60%;
  height: 320%;
  background: linear-gradient(
    135deg,
    rgba(255, 255, 255, 0) 0%,
    rgba(255, 255, 255, 0.5) 50%,
    rgba(255, 255, 255, 0) 100%
  );
  transform: rotate(25deg);
  animation: shine 3s ease-in-out infinite;
  pointer-events: none;
}

.cta-btn:hover,.cat-btn:active {
  transform: translateY(2px);
  box-shadow: 0 4px 0 rgba(0, 0, 0, 0.15);
}

.cta-btn:active {
  transform: translateY(4px) scale(0.98);     /* さらに沈み込み感 */
  box-shadow: 0 1px 0 rgba(0, 0, 0, 0.15);    /* 影を浅くして凹みを演出 */
  filter: brightness(0.95);                   /* わずかに暗くして押下感 */
}


/* セクションのタイトル設定 */
.section-title{
  margin: auto;
  text-align: center;
}

.section-title h2{
  margin-bottom: 0;
}

.section-title p{
  margin-top: 0;
  margin-bottom: 40px;
  color: var(--caption-text);
}

/* hover が使えないデバイスでも :active で押し込み感を出す */
@media (hover: none) {
  .cta-btn:active {
    transform: translateY(2px);
    box-shadow: 0 4px 0 rgba(0, 0, 0, 0.15);
  }
}

/* 光が右下へ通り抜けるアニメーション */
@keyframes shine {
  0%   { transform: translateX(-100%) rotate(25deg); }
  100% { transform: translateX(300%) rotate(25deg); }
}

.floating-cta {
  position: fixed;
  right: 20px;
  bottom: 20px;
  background-color: #007acc;
  color: #fff;
  padding: 12px 24px;
  border-radius: 6px;
  text-decoration: none;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
  z-index: 999;
}

.floating-cta.show {
  opacity: 1;
  visibility: visible;
}

/* ===== ヒーローセクション ===== */
.hero-image-view {
  width: 100%;
  /* height: calc(100vw * 650 / 1600); */
  /* max-height: 100vh; */
  /* background: url('../images/solacom-lp/top_image.png') center/contain no-repeat; */
  background: rgba(255,255,255,1);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  color: #fff;
  font-family: var(--hero-font);
  padding-top: 70px;
  padding-bottom: 70px;
  margin-bottom: 70px;
}

.hero-image-view .lines {
  display: flex;
  flex-direction: column;
  gap: calc(2.5rem + 1.5vw);
  letter-spacing: 0.02em;
}

.hero-image-view h1,
.hero-image-view h2 {
  margin: 0;
  padding: 0.2em 24px;
  display: inline-block;
  line-height: 1.3;
}

.hero-image-view h1 {
  font-size: calc(1.6rem + 1.8vw);
  color: #404040;
  font-weight: 700;
  /* text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5); */
}

.hero-image-view h2 {
  font-size: calc(1rem + 1vw);
  font-weight: 700;
}

.hero-image-view h2 .accent {
  color: #007acc;
  position: relative;
  display: inline-block;
  /* text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5); */
}

.hero-image-view h2 .accent::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;               /* ベースラインに合わせる */
  width: 100%;
  height: 15%;             /* 下 1/3 を覆う */
  background: rgba(255, 255, 0, 0.7); /* 半透明の黄色 */
  pointer-events: none;    /* クリック判定を邪魔しない */
}

.hero-image-view p{
  margin-top: 0;
  margin-bottom: 1em;
}

.hero-image-view .top-container{
  display: flex;
  flex-direction: row;
  justify-content: center;
  width: 100%;
}

.hero-image-view .top-container img {
  object-fit: contain;
  width: 30%;
}

.hero-image-view .caption {
  margin-top: 2.5rem;
  margin-bottom: 0.3rem;
  font-size: 0.875rem;
  color: #404040;
  padding: 0.25em 1em 0.25em 1em;
  /* text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5); */
}

.hero-image-view .cta-btn {
  margin-top: 0.3rem;
  display: inline-block;
}

.hero-image-view .cta-btn img {
  width: clamp(200px, 40vw, 360px);
  height: auto;
  display: block;
}

@media (max-width: 768px) {
  /*
  .hero-image-view {
    background: url('../images/solacom-lp/top_image_mini.png') center/cover no-repeat;
    height: calc(100vw * 512 / 1024);
  }
  */
  .hero-image-view h1,
  .hero-image-view h2,
  .hero-image-view p {
    white-space: normal;
    word-break: break-word;
  }
  .hero-image-view .lines {
    padding: 0 10px;
  }
  .hero-image-view h1 {
    font-size: calc(0.8rem + 4.5vw);
  }
  .hero-image-view h2 {
    font-size: 1.2rem;
  }
  .hero-image-view .top-container{
    flex-direction: column;
    gap: 20px;
  }
  .hero-image-view .top-container img {
    object-fit: contain;
    width: 80%;
    margin: auto;
  }
  .hero-image-view p {
    font-size: 0.875rem;
  }
}

/* ===== 問題共有セクション ===== */
.problem-section{
  display: flex;
  -webkit-box-align: center;
  align-items: center;
  -webkit-box-pack: justify;
  justify-content: space-between;
  padding: 3rem;
  margin-bottom: 40px;
  background-color: rgb(249, 249, 249);
  border-radius: 0.375rem;
}

.problem-section h2 {
  font-size: calc( 1.2rem + 0.4vw );
}

.problem-section h2 .accent{
  background: linear-gradient(90deg, #4158D0, #C850C0 30%, #FFCC70);
  background: -webkit-linear-gradient(0deg, #4158D0, #C850C0 30%, #FFCC70);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  position: relative;
  display: inline-block;
}

.problem-section .problem-text{
  flex-basis: 54%;
}

.problem-section .problem-voice{
  flex-basis: 46%;
}

.problem-section .problem-image{
  padding-left: 10px;
}

.problem-section .problem-image img{
  object-fit: contain;
  width: 100%;
}

@media(max-width:768px){
  .problem-section{
    display: flex;
    flex-direction: column;
    padding-left: 1.5rem;
    padding-right: 1.5rem;
    padding-top: 1.5rem;
    padding-bottom: 2.5rem;
  }
  .problem-section h2 {
    font-size: calc( 0.1rem + 3.8vw );
  }
  .problem-section .problem-image{
    padding: 20px;
  }
}

/* ===== SERVICE OVERVIEW START ===== */

.service-overview {
  background: #fff;
  padding: 60px 0px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 40px;
  flex-wrap: wrap;
}

.service-overview .service-cards {
  display: flex;
  align-items:stretch;
  justify-content: center;
  gap: 20px;
  flex-wrap: wrap;
}

.service-overview .service-cards .card{
  flex-basis: 31%;
  border-radius: 6px;
  border: 1px solid var(--border-color);
}

.service-overview .service-cards h3{
  padding: 1rem;
  font-size: calc( 0.8rem + 1.0vw );
  text-align: center;
  margin: 0;
  background: #ffff01;
  border-radius: 6px;
}

.service-overview .service-cards .card .image{
  text-align: center;
  padding: 20px;
  background: var(--border-color);
  
}

.service-overview .service-cards .card img{
  object-fit: contain;
  width: 100%;
  height: auto;
}

.service-overview .service-cards .card ul{
  margin: 10px;
  font-size: calc( 0.6rem + 0.6vw );
  padding-left: 12px;
  /*background: #e3e300;*/
}

.service-overview .service-cards .card li{
  list-style-type: circle;
  padding-top: 10px;
  padding-bottom: 10px;
}

@media(max-width:768px){
  .service-overview .service-cards {
    flex-direction: column;
    gap: 20px;
    align-items:stretch;
    flex-wrap: wrap;
  }

  .service-overview .service-cards h3{
    padding: 0.8rem;
    font-size: calc( 0.1rem + 5.0vw );
  }

  .service-overview .service-cards .card img{
    width: 60%;
  }

  .service-overview .service-cards .card ul{
    font-size: calc( 0.6rem + 1.0vw );
    /*background: #e3e300;*/
  }

  .service-overview .service-cards .card li{
    list-style-type: circle;
    padding-top: calc( 5px + 2vw );
    padding-bottom: calc( 5px + 2vw );
  }
}

/* ===== HOW TO USE START ===== */
.how-to-use {
  background: #fff;
  padding: 60px 0px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 40px;
  flex-wrap: wrap;
  /*align-items: stretch;*/
}

.how-to-use .CTA {
  display: flex;
  flex-direction: row;
  gap: 60px;
  justify-content: center;
  padding: 1rem;
  margin-bottom: 80px;
  background: #f9f9f9;
  border-radius: 6px;
}

.how-to-use .CTA p{
  font-size: 1.2rem;
  font-weight: 700;
}

.how-to-use .CTA .btn-part{
  text-align: center;
}

.how-to-use .CTA p.caption{
  font-size: calc(0.8rem + 0.1vw);
  text-align: center;
  font-weight: 200;
}

.how-to-use .CTA .cta-btn{
  margin: auto;
}

.how-to-use .block-container{
  display: flex;
  flex-direction: row;
  justify-content: center;
  gap: 20px;
  align-items: stretch;
}

.how-to-use .block-container .container-child{
  display: flex;
  flex-direction: column;
  /*flex-basis: 50%;*/
  justify-content: center;
  gap: 10px;
  background:#fff;
  border:1px solid var(--border-color);
  border-radius:8px;
  box-shadow:0 2px 6px rgba(0,0,0,.1);
  max-width: 700px;
  width: 100%;
}

.how-to-use .block-container .buy{
  /*background: #64B5F6;*/
}

.how-to-use .block-container .sell{
  /*background: #C850C0;*/
}

.how-to-use .block-container h3{
  padding: 1rem;
  font-size: calc( 0.8rem + 1.0vw );
  text-align: center;
  margin: 0;
  border-radius: 6px;
  color: #fff;
  font-weight: 700;
}

.how-to-use .block-container .sell h3{
  background: #D86ECC;
}

.how-to-use .block-container .buy h3{
  background: #00B0F0;
}

.how-to-use .step-card{
  flex: 1 1 80px;          /* 伸縮自在 & 最小幅 */
  max-width: 400px;
  padding:24px;
  text-align:left;
  display: flex;
  justify-content: center;
  flex-direction: row;
  gap: 10px;
}

.how-to-use .step-card .step-card-img{
  text-align: center;
  margin: auto;
  flex-basis: 30%;
}

.how-to-use .step-card .step-card-text{
  flex-basis: 70%;
}

.how-to-use .step-card .step-icon{
  width:80px;              /* SVG を制御 */
  height:80px;
  object-fit:contain;
  margin-top: auto;
  margin-bottom: auto;
}

.how-to-use .step-card p{
  font-size: calc( 0.6rem + 0.4vw );
  font-weight:400;
  margin: 0;
  padding-bottom: 10px;
}

.how-to-use .accent{
  color: #FF5A2A;
  font-weight: 700;
}

.how-to-use .step-card p.title{
  font-size: calc( 0.8rem + 0.4vw );
  font-weight: 700;
  padding-bottom: 0px;
}

@media(max-width:768px){
  
  .how-to-use .CTA{
    flex-direction: column;
    gap: 10px;
    padding-bottom: 40px;
  }

  .how-to-use .CTA p {
    font-size: calc( 0.4rem + 2vw );
  }

  .how-to-use .CTA p.caption{
    font-size: calc(0.8rem + 0.1vw);
  }

  .how-to-use .CTA a p.btn-text{
    text-align: center;
  }

  .how-to-use .block-container{
    flex-direction: column;
    gap: 80px;
  }
}

/* User Voices Section */
.functions {
  background-color: #f7f7f7;
  padding: 60px 20px;
  text-align: center;
}

.functions .exp {
  font-size: calc( 0.85rem + 0.5vw );
  padding: 1rem;
}

.functions-cards {
  display: flex;
  justify-content: center;
  gap: 20px;
  flex-wrap: wrap;
}

.functions-card {
  flex: 1 1 260px;
  max-width: 300px;
  background: #fff;
  border-radius: 8px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
  padding: 20px;
  text-align: center;
}

.functions-name {
  font-size: calc( 14px + 0.4vw );
  font-weight: 700;
  margin-bottom: 20px;
}

.functions-photo {
  width: 80px;
  height: 80px;
  background: #e0e0e0;
  border-radius: 50%;
  margin: 0 auto 15px;
}

.functions-photo img {
  width: 80px;
  height: 80px;
  background: #fff;
  border-radius: 50%;
  margin: 0 auto 15px;
}

.functions-comment {
  font-size: 14px;
  line-height: 1.6;
}

@media (max-width: 768px) {
  .functions-cards {
    flex-direction: column;
    align-items: center;
  }
}

/* FAQ Section */
.faq-section {
  padding: 60px 20px;
  background-color: #fff;
  text-align: center;
}

.faq-section .faq-items {
  padding: 1rem;
}

.faq-item {
  border: 1px solid var(--border-color);
  border-radius: 8px;
  margin: 10px auto;
  max-width: 800px;
  text-align: left;
  background-color: #f3f3f3;
  transition: background-color .3s ease;
}

.faq-item.active {
  background: #fff;
}

.faq-question {
  width: 100%;
  padding: 15px 32px 15px 15px;
  background: transparent;
  border: none;
  border-bottom: 1px solid var(--border-color);
  font-size: calc( 1.0rem + 0.1vw );
  font-weight: 600;
  text-align: left;
  cursor: pointer;
  position: relative;
}

.faq-question:hover {
  text-decoration: none;
}

.faq-toggle-icon {
  position: absolute;
  right: 15px;
  top: 50%;
  transform: translateY(-50%);
  pointer-events: none;
  transition: transform .3s ease;
}

.faq-item.active .faq-toggle-icon {
  content: "▼";
}

.faq-answer {
  font-size: calc( 0.8rem + 0.1vw );
  max-height:0;
  overflow:hidden;
  padding:0 15px;
  background:#fff;
  transition:max-height .4s ease;
}

@media (max-width: 768px) {
  .faq-question {
    font-size: calc( 0.8rem + 0.5vw );
  }
}

/* CTAファイナルセクション */
.cta-final {
  padding: 60px 20px 80px 20px;
  background: #fff;
  text-align: center;
}

.cta-final .lines{
  display: flex;
  flex-direction: column;
  gap: calc(2.5rem + 1.5vw);
  letter-spacing: 0.02em;
  padding: 40px 0px 40px 0px;
  border:1px solid var(--border-color);
}

.cta-final h1 {
  margin: 0;
  padding: 0.2em 24px;
  display: inline-block;
  line-height: 1.3;
  font-size: calc(1.6rem + 1.8vw);
  color: #404040;
  font-weight: 700;
}

.cta-final .top-container{
  display: flex;
  flex-direction: row;
  justify-content: center;
  width: 100%;
}

.cta-final .top-container img {
  object-fit: contain;
  width: 30%;
}

.cta-final h2 {
  font-size: 28px;
  font-weight: 700;
  margin-bottom: 30px;
}

@media (max-width: 768px) {
  .cta-final .top-container{
    flex-direction: column;
  }
  .cta-final .top-container img {
    width: 100%;
  }

}

/* Partner Banner */
.partner-banner {
  background-color: #f7faff;
  padding: 60px 20px;
  text-align: center;
}

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

.partner-message {
  font-size: 24px;
  font-weight: 700;
}

.partner-button {
  display: inline-block;
  padding: 14px 40px;
  background-color: #007acc;
  color: #fff;
  border-radius: 4px;
  text-decoration: none;
  font-weight: 700;
  transition: filter 0.3s ease;
}

.partner-button:hover {
  filter: brightness(1.1);
}

@media (max-width: 768px) {
  .partner-content {
    flex-direction: column;
  }
  .partner-message {
    margin-bottom: 20px;
  }
}

.site-footer {
  background-color: #333;
  color: #fff;
  padding: 40px 40px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  text-align: center;
  flex-wrap: wrap;
}

.site-footer p {
  font-size: 0.875rem;
  margin: 0;
  text-align: left;
}

.footer-nav {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  gap: 12px;
  justify-content: flex-end;
}

.footer-nav a {
  color: #fff;
  text-decoration: none;
  transition: opacity 0.3s ease;
}

.footer-nav a:hover {
  text-decoration: underline;
  opacity: 0.8;
}

@media (max-width: 768px) {
  .site-footer {
    flex-direction: column;
  }

  .site-footer p {
    text-align: center;
    margin-bottom: 10px;
  }

  .footer-nav {
    justify-content: center;
  }
}