/* FreelanceField LP */
:root {
  --navy: #111A30;
  --navy-2: #1b2550;
  --ink: #28334A;
  --sub: #28334A;
  --bg-light: #F7F8FC;
  --bg-faq: #EFF0FA;
  --btn-on-dark: #A5A3F5;
  --btn-on-light: #5144B5;
  --lav: #e8e8fa;
  --lav-2: #dcdcf6;
  --accent: #8f8ff5;
  --accent-dark: #4d43b7;
  --line: #c9cbe6;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--ink);
  background: var(--lav);
  font-family: "Noto Sans JP", sans-serif;
  font-size: 16px; font-weight: 500; line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; }
a { color: inherit; }
.wrap { width: min(1180px, calc(100% - 48px)); margin: 0 auto; }
.arrow { margin-left: .9em; font-weight: 700; transition: transform .2s; display: inline-block; }
a:hover .arrow { transform: translateX(4px); }
:focus-visible { outline: 3px solid #8075e0; outline-offset: 3px; }
br.pc { display: inline; }

/* ---------- header ---------- */
.site-header { background: var(--navy); color: #fff; position: sticky; top: 0; z-index: 20; }
.header-bar { display: flex; align-items: center; justify-content: space-between; gap: 20px; min-height: 64px; }
.brand { width: 230px; height: auto; }
.gnav { display: flex; align-items: center; gap: 32px; font-size: 15px; font-weight: 600; }
.gnav a { text-decoration: none; opacity: .92; }
.gnav a:hover { opacity: 1; text-decoration: underline; text-underline-offset: 5px; }
.gnav-contact { border: 1.5px solid #a6a6ff; border-radius: 8px; padding: 8px 14px; }
.gnav-contact:hover { background: #ffffff14; text-decoration: none !important; }

/* スマホ用メニューボタン（980px以下で表示） */
.menu-toggle {
  display: none; flex-direction: column; justify-content: center; align-items: center; gap: 6px;
  width: 48px; height: 48px; padding: 0; background: transparent; border: 0; cursor: pointer; color: #fff;
}
.menu-toggle span { display: block; width: 26px; height: 2.5px; background: currentColor; border-radius: 2px; transition: transform .25s, opacity .2s; }
.menu-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(8.5px) rotate(45deg); }
.menu-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.menu-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-8.5px) rotate(-45deg); }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  text-decoration: none; font-size: 16px; font-weight: 700; line-height: 1.4; border-radius: 6px; min-height: 48px;
  transition: background .2s, box-shadow .2s, transform .2s;
}
.btn:hover { transform: translateY(-1px); }
.btn-hero, .btn-hero:hover { background: var(--btn-on-dark); color: var(--navy); padding: 12px 28px 12px 36px; }
.btn-hero { box-shadow: 0 8px 24px #111a3055; }
.btn-primary, .btn-white { background: var(--btn-on-light); color: #fff; padding: 12px 24px 12px 32px; }
.btn-hero:hover { filter: brightness(1.06); box-shadow: 0 10px 28px #111a3066; }
.btn-primary:hover, .btn-white:hover { background: #43379F; }

/* ---------- hero ---------- */
.hero { position: relative; background: var(--navy); color: #fff; overflow: hidden; min-height: 470px; display: flex; align-items: center; }
.hero-photo {
  position: absolute; inset: 0 0 0 38%;
  background: url(../images/lp-hero.webp) center 30% / cover no-repeat;
}
.hero-photo::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(90deg, var(--navy) 0%, #111a30d9 14%, #111a3033 42%, transparent 65%);
}
.hero-inner { position: relative; padding: 64px 0; }
.hero h1 {
  margin: 0 0 22px; font-size: clamp(2rem, 1.2rem + 2.6vw, 3.25rem); line-height: 1.32; letter-spacing: .02em;
  font-weight: 800; text-shadow: 0 2px 18px #00000060;
}
.hero-lead { margin: 0 0 30px; font-size: 1.12rem; font-weight: 500; letter-spacing: .06em; }
.hero-note { margin: 16px 0 0 10px; font-size: 15px; font-weight: 500; letter-spacing: .08em; }

/* ---------- common section titles ---------- */
.eyebrow { margin: 0; color: var(--btn-on-light); font-weight: 700; font-size: .82rem; letter-spacing: .12em; }
.eyebrow-light { color: #c9cbff; font-weight: 600; }
.sec-title { margin: 0; font-size: clamp(1.5rem, 1rem + 1.4vw, 2rem); line-height: 1.35; font-weight: 700; }
.sec-title-light { color: #fff; }

/* ---------- service ---------- */
.service { background: var(--bg-light); padding: 26px 0 22px; }
.service-head { display: grid; grid-template-columns: 1fr auto; gap: 40px; align-items: center; margin-bottom: 26px; }
.service-head > div { padding-left: 0; }
.service-text { margin: 0; padding-left: 40px; border-left: 1.5px solid #9aa0c4; font-size: 15px; font-weight: 500; line-height: 1.75; color: var(--ink); }
.service-cards { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.service-card {
  position: relative; display: grid; grid-template-columns: 50% 1fr; min-height: 148px;
  background: linear-gradient(110deg, #d7d6f7, #c6c5f2); text-decoration: none; overflow: hidden;
  box-shadow: 0 6px 18px #2c2f7a14; transition: box-shadow .2s, transform .2s;
}
.service-card:hover { transform: translateY(-2px); box-shadow: 0 10px 24px #2c2f7a26; }
.service-photo { clip-path: polygon(0 0, 100% 0, 82% 100%, 0 100%); }
.service-photo img { width: 100%; height: 100%; object-fit: cover; }
.service-card:first-child .service-photo img { transform: scale(1.15); transform-origin: 100% 0; }
@media (min-width: 701px) {
  .service-card { min-height: 0; grid-template-rows: 170px; }
  .service-photo { overflow: hidden; }
  .service-photo img { height: 170px; }
}
/* スマホでもPCと同じ構図になるよう、写真枠を画像と同じ縦横比にする */
@media (max-width: 700px) {
  .service-card:first-child .service-photo { aspect-ratio: 1465 / 1073; align-self: start; }
}
.service-body { padding: 16px 18px 16px 4px; }
.service-body h3 { margin: 0 0 14px; font-size: clamp(1.125rem, .9rem + .8vw, 1.375rem); font-weight: 700; line-height: 1.35; color: var(--navy); }
.service-body p { margin: 0; font-size: 15px; font-weight: 500; line-height: 1.7; color: var(--ink); }

/* ---------- features ---------- */
.features {
  background: var(--navy);
  color: #fff; padding: 20px 0 26px;
}
.features .sec-title { margin-bottom: 18px; }
.feature-list { display: grid; grid-template-columns: repeat(3, 1fr); }
.feature { padding: 0 20px; }
.feature + .feature { border-left: 1.5px solid #6c73a6; padding-left: 40px; }
.feature:first-child { padding-left: 20px; }
.feature h3 { margin: 0 0 14px; font-size: clamp(1.125rem, .9rem + .8vw, 1.375rem); font-weight: 700; line-height: 1.4; }
.feature p { margin: 0; font-size: 15px; font-weight: 500; line-height: 1.8; color: #dde0f3; }

/* ---------- case ---------- */
.case { display: grid; grid-template-columns: 53.5% 1fr; background: var(--bg-light); }
.case-text { padding: 20px 20px 24px max(24px, calc((100vw - 1180px) / 2)); }
.case-head { display: flex; align-items: center; gap: 28px; margin-bottom: 18px; }
.case-head > div { padding-right: 28px; border-right: 1.5px solid #7d82a8; }
.case-quote { margin: 0; font-size: clamp(1.125rem, .9rem + .8vw, 1.375rem); font-weight: 700; }
.case-body { max-width: 25.6em; margin: 0 0 0 100px; font-size: 15px; font-weight: 500; line-height: 1.8; }
.case-photo { position: relative; min-height: 190px; }
.case-photo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }

/* ---------- flow ---------- */
.flow { background: linear-gradient(180deg, #e3e4f7, #dfe1f6); padding: 18px 0 20px; border-top: 1px solid #cfd2ec; }
.flow-inner { display: grid; grid-template-columns: 330px 1fr; }
.howto { padding: 0 40px 6px 0; border-right: 1.5px solid #7d82a8; }
.howto .sec-title { margin-bottom: 10px; }
.howto p { margin: 0 0 14px; font-size: 15px; font-weight: 500; line-height: 1.7; }
.steps { padding-left: 42px; }
.steps .sec-title { margin-bottom: 18px; }
.step-list { list-style: none; margin: 0; padding: 0; display: flex; }
.step-list li {
  flex: 1; display: flex; align-items: center; justify-content: center; text-align: center;
  min-height: 60px; padding: 6px 14px 6px 28px; margin-left: -10px;
  background: #ececfa; font-size: 15px; font-weight: 700; line-height: 1.4;
  clip-path: polygon(0 0, calc(100% - 22px) 0, 100% 50%, calc(100% - 22px) 100%, 0 100%, 22px 50%);
}
.step-list li:nth-child(even) { background: #e2e2f6; }
.step-list li:first-child { margin-left: 0; padding-left: 14px; clip-path: polygon(0 0, calc(100% - 22px) 0, 100% 50%, calc(100% - 22px) 100%, 0 100%); }
.step-list li:last-child { clip-path: polygon(0 0, 100% 0, 100% 100%, 0 100%, 22px 50%); }

/* ---------- band ---------- */
.band { background: linear-gradient(90deg, #8c8ae6, #a4a2f0 55%, #9896ec); color: var(--navy); padding: 16px 0; }
.band-inner { display: flex; align-items: center; gap: 28px; }
.band h2 { margin: 0; font-size: clamp(1.5rem, 1rem + 1.4vw, 2rem); font-weight: 700; padding-right: 28px; border-right: 1.5px solid #111a3080; white-space: nowrap; }
.band p { margin: 0; flex: 1; font-size: 15px; font-weight: 500; line-height: 1.7; }

/* ---------- faq ---------- */
.faq { background: var(--bg-faq); padding: 14px 0 16px; }
.faq-inner { display: grid; grid-template-columns: 260px 1fr; }
.faq-inner > div:first-child { padding-top: 10px; border-right: 1.5px solid #7d82a8; }
.faq-list { padding-left: 32px; }
.faq details { background: #fff; border-radius: 6px; margin-bottom: 6px; box-shadow: 0 1px 4px #1b235710; }
.faq summary {
  list-style: none; cursor: pointer; padding: 6px 40px 6px 12px; position: relative;
  font-weight: 700; font-size: 15px;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: ""; position: absolute; right: 16px; top: 50%; width: 7px; height: 7px;
  border-right: 2px solid var(--ink); border-bottom: 2px solid var(--ink);
  transform: translateY(-70%) rotate(45deg); transition: transform .2s;
}
.faq details[open] summary::after { transform: translateY(-20%) rotate(-135deg); }
.faq summary:hover { background: var(--bg-faq); border-radius: 6px; }
.faq details p { margin: 0; padding: 8px 14px 12px; font-size: 15px; font-weight: 500; line-height: 1.75; color: var(--sub); border-top: 1px solid #e3e4f3; }
.more { display: flex; justify-content: flex-end; color: var(--btn-on-light); font-weight: 700; font-size: 15px; text-decoration: none; margin-top: 4px; }
.more:hover { text-decoration: underline; text-underline-offset: 4px; }

/* ---------- responsive ---------- */
@media (max-width: 980px) {
  .menu-toggle { display: inline-flex; }
  .gnav {
    display: none; position: absolute; top: 100%; left: 0; right: 0; z-index: 30;
    flex-direction: column; align-items: stretch; gap: 0;
    background: var(--navy); border-top: 1px solid #343b60; box-shadow: 0 12px 24px #111a3066;
    padding: 8px 24px 20px; font-size: 16px;
  }
  .gnav.is-open { display: flex; }
  .gnav a { padding: 14px 4px; border-bottom: 1px solid #2a3350; opacity: 1; }
  .gnav .gnav-contact { margin-top: 16px; padding: 14px; text-align: center; border: 1.5px solid #a6a6ff; }
  .service-head, .flow-inner, .faq-inner { grid-template-columns: 1fr; gap: 16px; }
  .service-text { padding-left: 0; border-left: 0; }
  .case { grid-template-columns: 1fr; }
  .case-text { padding: 24px; }
  .case-body { margin-left: 0; }
  .howto { border-right: 0; padding: 0; }
  .steps { padding-left: 0; }
  .faq-inner > div:first-child { border-right: 0; }
  .faq-list { padding-left: 0; }
}
@media (max-width: 720px) {
  .wrap { width: calc(100% - 32px); }
  br.pc { display: none; }
  .brand { width: 170px; }
  .hero { min-height: 520px; align-items: flex-end; }
  .hero-photo { inset: 0; }
  .hero-photo::after { background: linear-gradient(0deg, var(--navy) 22%, #111a30aa 55%, #111a3030 100%); }
  .hero-inner { padding: 40px 0 36px; }
  .btn-hero { padding: 12px 22px 12px 28px; }
  .service-cards, .feature-list { grid-template-columns: 1fr; }
  .feature, .feature + .feature, .feature:first-child { border-left: 0; padding: 14px 0; }
  .feature + .feature { border-top: 1px solid #4a5280; }
  .case-head { flex-wrap: wrap; gap: 12px; }
  .case-head > div { border-right: 0; padding-right: 0; }
  .step-list { flex-direction: column; gap: 6px; }
  .step-list li, .step-list li:first-child, .step-list li:last-child {
    margin-left: 0; padding: 10px; clip-path: polygon(0 0, 100% 0, 100% 75%, 50% 100%, 0 75%); min-height: 52px;
  }
  .band-inner { flex-direction: column; align-items: flex-start; gap: 10px; padding: 8px 0; }
  .band h2 { border-right: 0; padding-right: 0; white-space: normal; }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } * { transition: none !important; } }
@media (max-width: 720px) {
  .service-body br, .feature p br, .case-body br { display: none; }
  .service-card { grid-template-columns: 44% 1fr; }
}
