/* トップページ（2026-10 作り直し）。青と白、余白多めの「海」のトーン */
:root {
  --blue: #1f86e0;
  --blue-deep: #0b4fa3;
  --navy: #0a2f5c;
  --ink: #12233d;
  --text: #3d4d63;
  --muted: #6b7a8f;
  --line: #dfe8f2;
  --bg: #ffffff;
  --bg-soft: #f2f7fc;
  --card: #ffffff;
  --shadow: 0 10px 30px rgba(18, 60, 110, .08);
  --radius: 14px;
  --max: 1120px;
}

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

html { scroll-behavior: smooth; scroll-padding-top: 80px; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: "Zen Kaku Gothic New", "Noto Sans JP", sans-serif;
  font-size: 16px;
  line-height: 1.9;
  letter-spacing: .04em;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }

.inner { max-width: var(--max); margin: 0 auto; padding: 0 24px; }

.en { font-family: "Outfit", sans-serif; }
.script { font-family: "Caveat", cursive; color: var(--blue-deep); letter-spacing: 0; }

/* ───── ヘッダー ───── */
.header {
  position: fixed; inset: 0 0 auto; z-index: 50;
  background: rgba(255, 255, 255, .86);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  transition: box-shadow .3s;
}
.header.is-scrolled { box-shadow: 0 2px 16px rgba(18, 60, 110, .08); }
.header .inner { display: flex; align-items: center; gap: 32px; height: 72px; }

.brand { display: flex; align-items: center; gap: 10px; color: var(--ink); }
.brand img { width: 38px; height: 38px; }
.brand span { font-family: "Outfit", sans-serif; font-weight: 600; font-size: 26px; letter-spacing: .01em; }

.nav { margin-left: auto; display: flex; gap: 32px; font-size: 13px; font-weight: 700; color: var(--ink); }
.nav a { position: relative; padding: 4px 0; }
.nav a::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -2px; height: 2px;
  background: var(--blue); transform: scaleX(0); transition: transform .25s;
}
.nav a:hover::after { transform: scaleX(1); }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  border-radius: 999px; font-weight: 700; font-size: 14px; letter-spacing: .06em;
  transition: transform .2s, box-shadow .2s, background .2s;
}
.btn svg { width: 16px; height: 16px; flex-shrink: 0; }
.btn--primary { background: var(--blue); color: #fff; padding: 14px 30px; box-shadow: 0 8px 20px rgba(31, 134, 224, .3); }
.btn--primary:hover { transform: translateY(-2px); box-shadow: 0 12px 26px rgba(31, 134, 224, .38); }
.btn--outline { border: 1.5px solid var(--blue); color: var(--blue); padding: 12px 28px; background: #fff; }
.btn--outline:hover { background: var(--blue); color: #fff; }
.btn--white { background: #fff; color: var(--blue-deep); padding: 16px 34px; }
.btn--white:hover { transform: translateY(-2px); }
.btn--sm { padding: 10px 22px; font-size: 13px; }

.link-arrow { display: inline-flex; align-items: center; gap: 10px; color: var(--blue); font-weight: 700; font-size: 14px; }
.link-arrow svg { width: 16px; height: 16px; transition: transform .2s; }
.link-arrow:hover svg { transform: translateX(4px); }

.nav-toggle { display: none; }

/* ───── ヒーロー ───── */
.hero { position: relative; padding-top: 72px; overflow: hidden; }
.hero-grid { display: grid; grid-template-columns: 50% 50%; min-height: 560px; }

.hero-copy { position: relative; z-index: 2; display: flex; flex-direction: column; justify-content: center; padding: 64px 32px 64px max(24px, calc((100vw - var(--max)) / 2 + 24px)); }
.eyebrow { font-family: "Outfit", sans-serif; color: var(--blue); font-size: 13px; letter-spacing: .14em; margin: 0 0 14px; }
.hero h1 { margin: 0 0 24px; color: var(--ink); font-size: clamp(28px, 2.9vw, 42px); white-space: nowrap; line-height: 1.45; letter-spacing: .08em; font-weight: 700; }
.hero-lead { margin: 0 0 36px; font-size: 15px; color: var(--text); }

/* 写真の代わりに、自分たちが作った画面を窓辺の海に置く */
.hero-visual {
  position: relative;
  background:
    radial-gradient(120% 80% at 70% 0%, #ffffff 0%, rgba(255, 255, 255, 0) 55%),
    linear-gradient(180deg, #e3f1fc 0%, #cde6f9 40%, #a9d3f3 52%, #7fbbe8 60%, #5aa5de 72%, #3b8ccf 100%);
  border-bottom-left-radius: 48% 18%;
  overflow: hidden;
}
.hero-visual::before {
  /* 遠くの島影 */
  content: ""; position: absolute; left: -5%; right: -5%; top: 50%; height: 40px;
  background:
    radial-gradient(40% 100% at 18% 100%, #6d9cbf 0 60%, transparent 61%),
    radial-gradient(30% 90% at 62% 100%, #7aa8c9 0 60%, transparent 61%),
    radial-gradient(22% 70% at 90% 100%, #86b1d0 0 60%, transparent 61%);
  opacity: .7;
}
.hero-visual::after {
  /* 机の天板 */
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 26%;
  background: linear-gradient(180deg, #f7fafd 0%, #e8eef5 100%);
  box-shadow: 0 -1px 0 rgba(255, 255, 255, .8);
}
.hero-script { position: absolute; right: 6%; top: 5%; z-index: 3; margin: 0; font-size: 30px; line-height: 1.15; transform: rotate(-8deg); color: var(--blue-deep); }

.laptop { position: absolute; z-index: 2; left: 50%; bottom: 12%; width: min(78%, 560px); transform: translateX(-46%); }
.laptop-screen {
  background: #1b1f26; border-radius: 14px 14px 4px 4px; padding: 3.2% 3.2% 3.6%;
  box-shadow: 0 30px 60px rgba(10, 40, 80, .35);
}
.laptop-screen img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; object-position: top; border-radius: 3px; }
.laptop-base { height: 14px; margin: 0 -7%; background: linear-gradient(180deg, #d8dde4, #a9b1bb); border-radius: 0 0 16px 16px; }
.laptop-base::before { content: ""; display: block; width: 16%; height: 6px; margin: 0 auto; background: #b9c0c9; border-radius: 0 0 8px 8px; }


/* ───── セクション共通 ───── */
section { padding: 96px 0; }
.sec-soft { background: var(--bg-soft); }
.label { font-family: "Outfit", sans-serif; color: var(--blue); font-size: 13px; letter-spacing: .16em; margin: 0 0 8px; }
.sec-title { margin: 0 0 24px; color: var(--ink); font-size: clamp(24px, 2.6vw, 32px); line-height: 1.5; letter-spacing: .08em; }
.sec-title .en { font-weight: 600; }
.sec-lead { margin: 0 0 36px; font-size: 14px; }

.split { display: grid; grid-template-columns: 300px 1fr; gap: 40px; align-items: start; }

/* ───── サービス ───── */
.service-cards { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.service-card { position: relative; background: var(--card); border-radius: var(--radius); box-shadow: var(--shadow); overflow: hidden; transition: transform .25s; }
.service-card:hover { transform: translateY(-4px); }
.service-thumb { height: 150px; overflow: hidden; }
.service-thumb img { width: 100%; height: 100%; object-fit: cover; object-position: top; }
.service-icon {
  position: absolute; left: 22px; top: 118px; width: 64px; height: 64px; border-radius: 50%;
  background: #fff; display: grid; place-items: center; box-shadow: 0 6px 18px rgba(18, 60, 110, .12); color: var(--blue);
}
.service-icon svg { width: 28px; height: 28px; }
.service-body { padding: 44px 26px 28px; }
.service-body h3 { margin: 0 0 10px; color: var(--ink); font-size: 19px; letter-spacing: .08em; }
.service-body p { margin: 0 0 14px; font-size: 13.5px; line-height: 2; }
.service-body ul { margin: 0; padding: 0; list-style: none; display: flex; flex-wrap: wrap; gap: 6px; }
.service-body li { font-size: 11.5px; padding: 2px 10px; border-radius: 999px; background: var(--bg-soft); color: var(--blue-deep); }

/* ───── 強み ───── */
.strengths { display: grid; grid-template-columns: repeat(4, 1fr); }
.strength { padding: 6px 18px; border-left: 1px solid var(--line); }
.strength svg { width: 52px; height: 52px; color: var(--blue); margin: 0 0 18px; }
.strength h3 { margin: 0 0 12px; color: var(--ink); font-size: 15px; white-space: nowrap; letter-spacing: .08em; }
.strength p { margin: 0; font-size: 12.5px; line-height: 2; }

/* ───── ABOUT ───── */
/* ABOUT は他のセクションと同じ幅のカードに収める */
.about { padding: 96px 0; }
.about-grid {
  display: grid; grid-template-columns: 44% 56%; align-items: center; min-height: 380px;
  border-radius: 20px; overflow: hidden; box-shadow: var(--shadow);
  background: linear-gradient(120deg, #ffffff 40%, #eef6fd 100%);
}
.about-visual {
  position: relative; align-self: stretch; min-height: 380px;
  background: linear-gradient(135deg, #f1f6fb 0%, #dfeaf5 100%);
}
.about-visual .win {
  position: absolute; background: #fff; border-radius: 10px; overflow: hidden;
  border: 1px solid #c9d9ea; box-shadow: 0 14px 32px rgba(18, 60, 110, .16);
}
.about-visual .win::before { content: ""; display: block; height: 16px; background: #eef2f6 radial-gradient(circle at 11px 8px, #ff6b61 3px, transparent 3.5px), #eef2f6; }
.about-visual .win img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; object-position: top; }
.about-visual .win-a { width: 68%; left: 7%; top: 13%; transform: rotate(-4deg); }
.about-visual .win-b { width: 60%; right: 6%; bottom: 11%; transform: rotate(3deg); }

.about-copy { position: relative; padding: 56px 56px 56px 48px; }
.about-copy p { font-size: 14px; margin: 0 0 28px; }
.about-script { position: absolute; right: 40px; top: 44px; margin: 0; font-size: 22px; line-height: 1.2; transform: rotate(-6deg); }

/* ───── 実績 ───── */
.works-list { display: grid; gap: 20px; }
.work {
  display: grid; grid-template-columns: minmax(0, 46%) 1fr; align-items: center;
  background: var(--card); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow);
  transition: transform .25s, box-shadow .25s;
}
.work:hover { transform: translateY(-3px); box-shadow: 0 16px 36px rgba(18, 60, 110, .12); }
/* 画像は細い線で囲むだけにする */
.work-thumb { align-self: stretch; display: flex; align-items: center; padding: 16px 0 16px 16px; }
.work-frame {
  width: 100%; border-radius: 8px; overflow: hidden; background: #fff;
  border: 1px solid #9fbad6; box-shadow: 0 2px 8px rgba(18, 60, 110, .08); transition: border-color .3s;
}
.work-frame img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; object-position: top; transition: transform .5s; }
.work:hover .work-frame { border-color: var(--blue); }
.work:hover .work-frame img { transform: scale(1.02); }
.work-body { padding: 24px 36px; }
.work-meta { display: flex; align-items: center; gap: 12px; margin: 0 0 4px; }
.work-no { font-size: 22px; font-weight: 600; color: #c7dcf0; letter-spacing: 0; line-height: 1; }
.work-kind { font-size: 11px; color: var(--blue); letter-spacing: .14em; border: 1px solid #cfe3f7; border-radius: 999px; padding: 1px 10px; line-height: 1.6; }
.work-body h3 { margin: 0 0 8px; color: var(--ink); font-size: 20px; letter-spacing: .08em; }
.work-desc { margin: 0 0 14px; font-size: 13px; line-height: 1.9; }
.tags { display: flex; flex-wrap: wrap; gap: 6px; margin: 0 0 16px; padding: 0; list-style: none; }
.tags li { font-size: 11px; padding: 2px 10px; border-radius: 999px; background: var(--bg-soft); color: var(--blue-deep); line-height: 1.7; }
.work-link { display: inline-flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 700; color: var(--blue); }
.work-link .link-sp { display: none; }
.work-link svg { width: 14px; height: 14px; transition: transform .2s; }
.work:hover .work-link svg { transform: translateX(4px); }

/* ───── 会社概要 × お問い合わせ ───── */
.bottom { padding: 0; }
.bottom-grid { display: grid; grid-template-columns: 60% 40%; }
.company { padding: 72px 48px 72px max(24px, calc((100vw - var(--max)) / 2 + 24px)); display: grid; grid-template-columns: 1fr 200px; gap: 36px; align-items: center; }
.company table { width: 100%; border-collapse: collapse; font-size: 13px; }
.company th, .company td { text-align: left; padding: 10px 4px; border-bottom: 1px solid var(--line); vertical-align: top; line-height: 1.7; }
.company th { width: 7em; color: var(--muted); font-weight: 500; }
.company td { color: var(--ink); }
.company td a { color: var(--blue); }
.company-card {
  /* 水平線（56%）にロゴの中心を合わせる */
  position: relative; aspect-ratio: 4 / 5; border-radius: 12px; overflow: hidden;
  background: linear-gradient(180deg, #e9f4fd 0%, #cfe6f8 55.5%, #8cc6ef 56%, #4e9fd9 100%);
  box-shadow: var(--shadow);
}
.company-card img { position: absolute; left: 50%; top: 56%; width: 42%; transform: translate(-50%, -50%); opacity: .95; }
.company-card .script { position: absolute; left: 10px; right: 10px; top: 18px; margin: 0; font-size: 20px; line-height: 1.1; transform: rotate(-6deg); }

.contact {
  position: relative; overflow: hidden; color: #fff;
  background: linear-gradient(135deg, #1c6fc4 0%, #0b4fa3 55%, #0a3a7c 100%);
  padding: 72px max(24px, calc((100vw - var(--max)) / 2 + 24px)) 72px 48px;
}
.contact::after {
  content: ""; position: absolute; right: -10%; bottom: -30%; width: 90%; height: 80%;
  border-radius: 50%; border: 40px solid rgba(255, 255, 255, .05); box-shadow: 0 0 0 40px rgba(255, 255, 255, .03);
}
.contact .label { color: #9fd0ff; }
.contact h2 { margin: 0 0 14px; font-size: clamp(18px, 1.9vw, 22px); letter-spacing: .06em; white-space: nowrap; }
.contact p { margin: 0 0 30px; font-size: 13px; opacity: .9; }
.contact .btn { position: relative; z-index: 1; }

/* ───── 相談フォーム ───── */
.form-sec { padding: 88px 0; }
.form-wrap { max-width: 720px; margin: 0 auto; }
.form-wrap .sec-title, .form-wrap .label, .form-wrap .sec-lead { text-align: center; }
.form { background: #fff; border-radius: var(--radius); box-shadow: var(--shadow); padding: 40px; display: grid; gap: 20px; }
.form label { display: block; font-size: 13px; font-weight: 700; color: var(--ink); margin: 0 0 6px; }
.form .req { font-size: 10px; color: #fff; background: var(--blue); border-radius: 4px; padding: 1px 6px; margin-left: 8px; vertical-align: 1px; }
.form .opt { font-size: 10px; color: var(--muted); background: var(--bg-soft); border-radius: 4px; padding: 1px 6px; margin-left: 8px; vertical-align: 1px; }
.form input, .form select, .form textarea {
  width: 100%; font: inherit; font-size: 15px; color: var(--ink); background: var(--bg-soft);
  border: 1px solid var(--line); border-radius: 10px; padding: 12px 14px;
}
.form textarea { min-height: 140px; resize: vertical; }
.form input:focus, .form select:focus, .form textarea:focus { outline: 2px solid var(--blue); outline-offset: 1px; background: #fff; }
.form .btn { justify-self: center; border: 0; cursor: pointer; font-family: inherit; }
.form-alt { text-align: center; font-size: 13px; margin: 18px 0 0; }
.form-alt a { color: var(--blue); text-decoration: underline; }

/* ───── フッター ───── */
.footer { background: var(--navy); color: rgba(255, 255, 255, .8); padding: 40px 0 28px; }
.footer-top { display: flex; align-items: center; gap: 32px; flex-wrap: wrap; }
.footer .brand { color: #fff; }
.footer-nav { display: flex; flex-wrap: wrap; gap: 24px; margin: 0 auto; font-size: 12px; font-weight: 700; }
.footer-sns { display: flex; gap: 18px; }
.footer-sns svg { width: 20px; height: 20px; fill: #fff; }
.footer-media { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 6px 20px; margin: 28px 0 0; font-size: 12.5px; }
.footer-media span { font-size: 11px; opacity: .6; letter-spacing: .1em; }
.footer-media a { color: #fff; font-weight: 700; }
.footer-media a::after { content: " ↗"; font-weight: 400; opacity: .6; }
.footer-media a:hover { text-decoration: underline; text-underline-offset: 3px; }
.footer-sub { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px 20px; margin: 14px 0 8px; font-size: 11.5px; }
.footer-sub a { text-decoration: underline; text-underline-offset: 3px; }
.copy { text-align: center; font-size: 11px; opacity: .6; margin: 0; }

/* ───── 出現 ───── */
.reveal { opacity: 0; transform: translateY(16px); transition: opacity .8s, transform .8s; }
.reveal.is-in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  html { scroll-behavior: auto; }
}

/* ───── タブレット・スマホ ───── */
@media (max-width: 700px) {
  /* スマホは「左に小さな画像・右に名前とリンク」、その下に説明とタグ */
  .work { grid-template-columns: 42% 1fr; column-gap: 12px; padding: 12px; align-items: start; }
  .work-body { display: contents; }
  .work-thumb { grid-column: 1; grid-row: 1 / 4; padding: 0; align-self: start; }
  .work-meta { grid-column: 2; grid-row: 1; margin: 0; gap: 8px; }
  .work-no { font-size: 16px; }
  .work-kind { font-size: 9.5px; padding: 0 8px; }
  .work-body h3 { grid-column: 2; grid-row: 2; font-size: 15px; letter-spacing: .04em; margin: 2px 0 0; line-height: 1.5; }
  .work-link { grid-column: 2; grid-row: 3; font-size: 11px; gap: 4px; align-self: end; }
  .work-link .en, .work-link .link-pc { display: none; }
  .work-link .link-sp { display: inline; }
  .work-desc { grid-column: 1 / -1; grid-row: 4; margin: 10px 0 8px; font-size: 12px; line-height: 1.8; letter-spacing: .02em; }
  .tags { grid-column: 1 / -1; grid-row: 5; gap: 4px; margin: 0; }
  .tags li { font-size: 10px; padding: 1px 8px; }
  .works-list { gap: 12px; }
  .works-wrap > div:first-child { display: block; }
  .works-wrap .sec-lead { margin: 16px 0 0; }
}

@media (max-width: 960px) {
  .nav, .header .btn { display: none; }
  .nav-toggle {
    display: grid; place-items: center; margin-left: auto; width: 44px; height: 44px;
    border: 0; background: transparent; cursor: pointer; color: var(--ink);
  }
  .nav-toggle svg { width: 26px; height: 26px; }
  .header.is-open .nav {
    display: flex; flex-direction: column; gap: 0; position: absolute; top: 72px; left: 0; right: 0;
    background: #fff; padding: 8px 24px 20px; box-shadow: 0 12px 24px rgba(18, 60, 110, .1); font-size: 15px;
  }
  .header.is-open .nav a { padding: 14px 0; border-bottom: 1px solid var(--line); }

  .hero-grid { grid-template-columns: 1fr; }
  .hero-copy { padding: 48px 24px 40px; }
  .hero-visual { min-height: 340px; border-bottom-left-radius: 0; border-top-left-radius: 40% 12%; }
  .hero-script { font-size: 22px; }

  section { padding: 72px 0; }
  .split { grid-template-columns: 1fr; gap: 28px; }
  .strengths { grid-template-columns: 1fr 1fr; row-gap: 32px; }
  .about { padding: 72px 0; }
  .about-grid { grid-template-columns: 1fr; }
  .about-visual { min-height: 260px; }
  .about-copy { padding: 36px 24px 40px; }
  .about-script { display: none; }
  br.pc { display: none; }
  .bottom-grid { grid-template-columns: 1fr; }
  .company { padding: 64px 24px; grid-template-columns: 1fr; }
  .company-card { display: none; }
  .contact { padding: 56px 24px; }
}

@media (max-width: 600px) {
  body { font-size: 15px; }
  .brand span { font-size: 22px; }
  .brand img { width: 32px; height: 32px; }
  .hero h1 { font-size: 26px; white-space: normal; }
  .service-cards { grid-template-columns: 1fr; }
  .strengths { grid-template-columns: 1fr; }
  .strength { border-left: 0; border-top: 1px solid var(--line); padding: 24px 0 0; }
  .laptop { width: 86%; }
  .contact h2 { font-size: 18px; letter-spacing: .02em; white-space: nowrap; }
  .contact p { font-size: 12px; word-break: keep-all; }
  .form-sec { padding: 56px 0; }
  .form { padding: 22px 16px; gap: 14px; }
  .form label { font-size: 12px; margin: 0 0 4px; }
  /* 入力した文字は16px未満にすると iPhone が拡大してしまうので、欄の高さとプレースホルダーだけ小さくする */
  .form input, .form select, .form textarea { padding: 7px 12px; border-radius: 8px; line-height: 1.4; }
  .form-wrap .sec-title { font-size: 22px; margin-bottom: 12px; }
  .form-wrap .sec-lead { font-size: 12px; margin-bottom: 20px; }
  .form input::placeholder, .form textarea::placeholder { font-size: 13px; }
  .form select:invalid { font-size: 13px; color: var(--muted); }
  .form textarea { min-height: 96px; }
  .form .btn { padding: 12px 26px; font-size: 13px; }
  .form-alt { font-size: 12px; }
  .footer-top { flex-direction: column; }
  .footer-nav { margin: 0; justify-content: center; }
}
