/* =============================================
   LIBERWORKS LP — 共通スタイル
   Source:   html/style.scss
   Compiled: html/style.css
   ※ ページ固有スタイルは各 index.html 内 <style> タグに記述
   ============================================= */

/* ---------- Reset / Base ---------- */
*, *::before, *::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  padding: 0;
  font-family: "Noto Sans JP", sans-serif;
  font-size: 14pt;
  color: #1a1a2e;
  background: #f8f9fc;
}

a { color: inherit; }

/* ---------- Section共通 ---------- */
main section {
  width: 100%;
  position: relative;
}

.section-body {
  position: relative;
  max-width: 1248px;
  margin: 0 auto;
  padding: 3rem 2rem 4rem;
}

.section-body > h2 {
  font-weight: bold;
  font-style: italic;
  text-align: center;
  font-size: clamp(26px, 3vw, 42px);
  margin: 0 0 2rem;
  color: #272f80;
}

/* ---------- CTA ボタン共通 ---------- */
a.contact-us {
  display: inline-flex;
  position: relative;
  justify-content: center;
  align-items: center;
  color: #272f80;
  background-color: #fea948;
  text-decoration: none;
  font-weight: bold;
  font-size: 18pt;
  padding: 0.6em 3em 0.7em 2em;
  border-radius: 1rem;
  transition: opacity 0.2s, transform 0.2s;
}

a.contact-us::after {
  content: "";
  display: inline-block;
  width: 7px;
  height: 7px;
  border-top: 4px solid #272f80;
  border-right: 4px solid #272f80;
  transform: rotate(45deg) translateY(1px);
  position: absolute;
  right: 20px;
  transition: right 0.2s;
}

a.contact-us:hover {
  opacity: 0.85;
  transform: translateY(-2px);
}

a.contact-us:hover::after {
  right: 14px;
}

/* ---------- #cover ---------- */
#cover {
  position: relative;
  overflow: hidden;
  background: linear-gradient(135deg, #eef2fb 0%, #dce6f5 60%, #c8d9f0 100%);
  min-height: 62vh;
}

/* 先進的要素: 背景の動くグラデーション光彩 */
#cover::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 55% 70% at 75% 40%, rgba(67, 106, 203, 0.12) 0%, transparent 70%),
    radial-gradient(ellipse 40% 50% at 20% 80%, rgba(254, 169, 72, 0.08) 0%, transparent 60%);
  animation: coverGlow 8s ease-in-out infinite alternate;
  pointer-events: none;
}

@keyframes coverGlow {
  from { opacity: 0.6; transform: scale(1); }
  to   { opacity: 1;   transform: scale(1.05); }
}

#cover .section-body {
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-height: 62vh;
  padding-top: 5rem;
  padding-bottom: 4rem;
  border: none;
  background: none;
}

#cover h1 {
  font-style: italic;
  font-weight: 900;
  font-size: clamp(32px, 4.5vw, 60px);
  line-height: 1.35;
  margin: 0 0 0.5em;
  text-shadow: 1px 3px 6px rgba(0,0,0,0.08);
  color: #1a1a2e;
}

#cover h1 em {
  font-style: normal;
  color: #272f80;
}

.cover-logo {
  position: absolute;
  top: 1rem;
  left: 2rem;
}

.cover-logo img {
  height: 1.8rem;
}

/* サービス名バッジ（h1 直下） */
.cover-service {
  display: inline-block;
  margin: 0.6rem 0 0.2rem;
  padding: 0.25rem 0.8rem;
  background: rgba(39, 47, 128, 0.07);
  border: 1px solid rgba(39, 47, 128, 0.18);
  border-radius: 0.3rem;
  font-size: 10.5pt;
  font-weight: bold;
  color: #272f80;
  letter-spacing: 0.06em;
}

.cover-sub {
  max-width: 580px;
  line-height: 1.9;
  color: #3a3a50;
  margin: 0 0 2.5rem;
}

.cover-ope {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  align-items: center;
}

.cover-note {
  font-size: 10pt;
  color: #666;
}

/* ---------- #headline (特徴3個 青帯) ---------- */
#headline {
  background-color: rgba(67, 106, 203, 0.88);
  padding: 2.5rem 0;
}

#headline .section-body {
  display: flex;
  flex-direction: row;
  justify-content: space-around;
  gap: 1.5rem;
  padding: 0 2rem;
  background: none;
  border: none;
}

.headline-item {
  background: rgba(255,255,255,0.82);
  border-radius: 0.75rem;
  padding: 1.5rem 1.8rem;
  flex: 1;
  min-width: 200px;
}

.headline-item h2 {
  font-size: 16pt;
  font-weight: bold;
  margin: 0 0 0.6rem;
  color: #272f80;
  font-style: normal;
  text-align: left;
}

.headline-item p {
  margin: 0;
  font-size: 11pt;
  color: #333;
  line-height: 1.7;
}

/* ---------- #concerns ---------- */
#concerns {
  background: white;
}

#concerns .section-body {
  border-top: 3px solid rgba(67, 106, 203, 0.2);
}

.concerns-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1.5rem 3rem;
  padding: 0;
  list-style: none;
  margin: 0;
}

.concerns-grid li {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  width: calc(50% - 3rem);
  min-width: 280px;
  background: #f2f5fc;
  border-left: 4px solid #436acb;
  border-radius: 0 0.5rem 0.5rem 0;
  padding: 1.2rem 1.5rem;
  font-size: 13pt;
  line-height: 1.65;
  color: #2a2a40;
}

.concerns-grid li::before {
  content: "?";
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2rem;
  height: 2rem;
  min-width: 2rem;
  background: #436acb;
  color: white;
  font-weight: bold;
  font-size: 14pt;
  border-radius: 50%;
}

/* ---------- #answer ---------- */
#answer {
  background: #f0f4fb;
}

#answer .answer-lead {
  text-align: center;
  font-size: 15pt;
  color: #444;
  margin: -0.5rem 0 2.5rem;
  line-height: 1.8;
}

.answer-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.5rem;
}

.answer-card {
  background: white;
  border-radius: 1rem;
  padding: 2rem 1.8rem;
  box-shadow: 0 2px 12px rgba(67, 106, 203, 0.1);
  border-top: 4px solid #436acb;
}

.answer-card h3 {
  font-size: 15pt;
  font-weight: bold;
  color: #272f80;
  margin: 0 0 1rem;
}

.answer-card p {
  margin: 0;
  font-size: 11pt;
  line-height: 1.8;
  color: #444;
}

.answer-results {
  margin-top: 2.5rem;
  background: white;
  border-radius: 1rem;
  padding: 1.8rem 2rem;
  box-shadow: 0 2px 12px rgba(67, 106, 203, 0.1);
}

.answer-results h3 {
  font-size: 14pt;
  color: #272f80;
  margin: 0 0 0.8rem;
  font-weight: bold;
}

.answer-results ul {
  margin: 0;
  padding-left: 1.2rem;
  line-height: 2;
  font-size: 12pt;
  color: #444;
}

/* ---------- #cta-mid ---------- */
#cta-mid {
  background: linear-gradient(90deg, #272f80 0%, #436acb 100%);
  padding: 3rem 0;
  text-align: center;
}

#cta-mid .section-body {
  background: none;
  border: none;
  padding: 0 2rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.8rem;
}

#cta-mid p {
  color: rgba(255,255,255,0.85);
  margin: 0 0 0.5rem;
  font-size: 13pt;
}

/* ---------- #solutions ---------- */
#solutions {
  background: white;
}

.solution-item {
  display: grid;
  grid-template-columns: 5rem 1fr;
  gap: 0 2rem;
  margin-bottom: 3.5rem;
  align-items: start;
}

.solution-item:last-child {
  margin-bottom: 0;
}

.solution-number {
  font-size: 48pt;
  font-weight: 900;
  font-style: italic;
  color: rgba(67, 106, 203, 0.18);
  line-height: 1;
  text-align: center;
  padding-top: 0.15em;
}

.solution-content h3 {
  font-size: 18pt;
  font-weight: bold;
  color: #272f80;
  margin: 0 0 0.5rem;
  line-height: 1.4;
}

.solution-content .solution-label {
  font-size: 10pt;
  font-weight: bold;
  color: #436acb;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin: 0 0 0.6rem;
}

.solution-content p {
  font-size: 12pt;
  line-height: 1.9;
  color: #444;
  margin: 0 0 1rem;
}

.solution-content ol, .solution-content ul {
  padding-left: 1.4rem;
  margin: 0 0 1rem;
  font-size: 12pt;
  line-height: 1.9;
  color: #444;
}

.solution-content .solution-points {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  list-style: none;
  padding: 0;
  margin: 0;
}

.solution-points li {
  background: #f0f4fb;
  border-radius: 0.4rem;
  padding: 0.35rem 0.9rem;
  font-size: 11pt;
  color: #272f80;
  font-weight: bold;
}

.solution-divider {
  border: none;
  border-top: 1px solid rgba(67, 106, 203, 0.15);
  margin: 0 0 3.5rem;
}

/* ---------- #cases ---------- */
#cases {
  background: #f0f4fb;
}

.case-card {
  background: white;
  border-radius: 1rem;
  padding: 2rem 2.5rem;
  box-shadow: 0 2px 12px rgba(67, 106, 203, 0.1);
  border-left: 6px solid #fea948;
}

.case-card h3 {
  font-size: 15pt;
  font-weight: bold;
  color: #272f80;
  margin: 0 0 1rem;
}

.case-card p {
  font-size: 12pt;
  line-height: 1.9;
  color: #444;
  margin: 0;
}

/* ---------- #cta-form ---------- */
#cta-form {
  background: white;
  border-top: 3px solid rgba(67, 106, 203, 0.15);
}

#cta-form h2 {
  font-size: clamp(20px, 2.5vw, 34px);
}

.cta-form-lead {
  text-align: center;
  font-size: 13pt;
  color: #555;
  line-height: 1.8;
  margin: -1rem 0 2rem;
}

.cta-bullets {
  list-style: none;
  padding: 0;
  margin: 0 auto 2.5rem;
  max-width: 520px;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.cta-bullets li {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-size: 12pt;
  color: #333;
}

.cta-bullets li::before {
  content: "✓";
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.5rem;
  height: 1.5rem;
  min-width: 1.5rem;
  background: #436acb;
  color: white;
  border-radius: 50%;
  font-size: 10pt;
  font-weight: bold;
}

form.contact-form {
  max-width: 560px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 1.2rem;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
}

.form-group label {
  font-size: 11pt;
  font-weight: bold;
  color: #333;
}

.form-group label .req {
  color: #e05;
  margin-left: 0.3em;
  font-size: 10pt;
}

.form-group input,
.form-group textarea {
  border: 1.5px solid #c0cce8;
  border-radius: 0.5rem;
  padding: 0.65rem 1rem;
  font-size: 13pt;
  font-family: "Noto Sans JP", sans-serif;
  transition: border-color 0.2s;
  outline: none;
  background: #fafbff;
  color: #1a1a2e;
  width: 100%;
}

.form-group input:focus,
.form-group textarea:focus {
  border-color: #436acb;
  background: white;
}

.form-group textarea {
  min-height: 110px;
  resize: vertical;
}

.form-submit {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.6rem;
  margin-top: 0.5rem;
}

.form-submit button {
  display: inline-flex;
  position: relative;
  justify-content: center;
  align-items: center;
  color: #272f80;
  background-color: #fea948;
  border: none;
  cursor: pointer;
  font-weight: bold;
  font-size: 16pt;
  font-family: "Noto Sans JP", sans-serif;
  padding: 0.65em 3.5em 0.75em 2.5em;
  border-radius: 1rem;
  width: 100%;
  max-width: 380px;
  transition: opacity 0.2s, transform 0.2s;
}

.form-submit button::after {
  content: "";
  display: inline-block;
  width: 7px;
  height: 7px;
  border-top: 4px solid #272f80;
  border-right: 4px solid #272f80;
  transform: rotate(45deg) translateY(1px);
  position: absolute;
  right: 22px;
  transition: right 0.2s;
}

.form-submit button:hover {
  opacity: 0.85;
  transform: translateY(-2px);
}

.form-note {
  font-size: 10pt;
  color: #888;
}

/* ---------- footer ---------- */
footer {
  background: #1a1a2e;
  color: rgba(255,255,255,0.7);
  text-align: center;
  padding: 2rem;
  font-size: 11pt;
}

footer a {
  color: rgba(255,255,255,0.55);
  text-decoration: none;
}

footer a:hover {
  color: white;
}

.footer-inner {
  max-width: 1248px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
}

/* ---------- Responsive ---------- */
@media (max-width: 768px) {
  #headline .section-body {
    flex-direction: column;
  }

  .concerns-grid li {
    width: 100%;
  }

  .solution-item {
    grid-template-columns: 1fr;
  }

  .solution-number {
    display: none;
  }

  #cover .section-body {
    min-height: 80vh;
  }
}
