@charset "UTF-8";

/* =========================================================
   Design tokens
   色を変えたいときは、まずここだけ触れば全体に反映されます
   ========================================================= */
:root {
  /* 背景 */
  --bg:        #fbfaf8;  /* ベースの白（ほんのり温かみ） */
  --bg-alt:    #f2eee8;  /* グレージュの帯 */
  --surface:   #ffffff;  /* カードの白 */

  /* 文字 */
  --text:      #2f2b26;  /* 茶みのある黒 */
  --text-sub:  #6b6359;  /* 補足テキスト */
  --text-thin: #9c948a;  /* さらに薄い文字 */

  /* 線・アクセント */
  --line:      #e6e0d7;  /* 罫線 */
  --line-soft: #f0ebe4;
  --accent:    #a1907c;  /* グレージュのアクセント */
  --ink:       #33302b;  /* ボタンなどの濃色 */

  --container: 1120px;
  --radius:    4px;
  --radius-lg: 8px;

  --font-ja: "Noto Sans JP", system-ui, -apple-system, "Hiragino Kaku Gothic ProN", "Yu Gothic", sans-serif;
  --font-en: "Jost", var(--font-ja);

  --ease: cubic-bezier(.22, 1, .36, 1);
  --header-h: 78px;
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: var(--header-h);
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-ja);
  font-size: 15px;
  font-weight: 400;
  line-height: 2;
  letter-spacing: .04em;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

body.is-locked { overflow: hidden; }

img { max-width: 100%; height: auto; display: block; }
a   { color: inherit; text-decoration: none; }
ul, ol { list-style: none; margin: 0; padding: 0; }
h1, h2, h3, h4, p { margin: 0; font-weight: inherit; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }

::selection { background: #e7ded2; color: var(--text); }

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

.skip-link {
  position: absolute; top: -100px; left: 16px; z-index: 999;
  background: var(--ink); color: #fff;
  padding: 10px 18px;
  transition: top .2s;
}
.skip-link:focus { top: 0; }

.container {
  width: min(100% - 48px, var(--container));
  margin-inline: auto;
}

/* =========================================================
   Header
   ========================================================= */
.header {
  position: fixed; inset: 0 0 auto 0; z-index: 100;
  height: var(--header-h);
  display: flex; align-items: center;
  background: rgba(251, 250, 248, 0);
  transition: background .4s, border-color .4s, height .4s;
  border-bottom: 1px solid transparent;
}
.header.is-scrolled {
  height: 66px;
  background: rgba(251, 250, 248, .92);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom-color: var(--line);
}
.header__inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; }

.logo { display: inline-flex; align-items: baseline; gap: 10px; }
.logo__text {
  font-family: var(--font-en);
  font-weight: 500; font-size: 19px; letter-spacing: .12em;
}
.logo__sub {
  font-size: 10px; letter-spacing: .16em; color: var(--text-thin);
}

.nav__list { display: flex; align-items: center; gap: 30px; }
.nav__link {
  position: relative;
  font-family: var(--font-en);
  font-size: 13px; font-weight: 400; letter-spacing: .16em; text-transform: uppercase;
  color: var(--text-sub);
  transition: color .3s;
}
.nav__link::after {
  content: ""; position: absolute; left: 0; bottom: -6px;
  width: 100%; height: 1px; background: var(--accent);
  transform: scaleX(0); transform-origin: right;
  transition: transform .4s var(--ease);
}
.nav__link:hover { color: var(--text); }
.nav__link:hover::after,
.nav__link.is-current::after { transform: scaleX(1); transform-origin: left; }
.nav__link.is-current { color: var(--text); }

.nav__link--cta {
  padding: 12px 26px;
  background: var(--ink); color: #fff;
  letter-spacing: .12em;
  transition: background .3s, transform .3s var(--ease);
}
.nav__link--cta::after { display: none; }
.nav__link--cta:hover { background: #4a453d; color: #fff; transform: translateY(-1px); }
/* 現在地ハイライト（.is-current）に文字色を奪われて、
   濃色ボタンの上で文字が読めなくなるのを防ぐ */
.nav__link--cta.is-current { color: #fff; }

.hamburger {
  display: none;
  width: 44px; height: 44px;
  position: relative;
}
.hamburger span {
  position: absolute; left: 10px; width: 24px; height: 1px;
  background: var(--text);
  transition: transform .35s var(--ease), opacity .2s;
}
.hamburger span:nth-child(1) { top: 16px; }
.hamburger span:nth-child(2) { top: 22px; }
.hamburger span:nth-child(3) { top: 28px; }
.hamburger.is-open span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.hamburger.is-open span:nth-child(2) { opacity: 0; }
.hamburger.is-open span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

/* =========================================================
   Hero
   ========================================================= */
.hero {
  position: relative;
  padding: calc(var(--header-h) + 86px) 0 96px;
}
.hero__inner {
  display: grid;
  grid-template-columns: 1fr minmax(300px, 420px);
  gap: clamp(40px, 6vw, 80px);
  align-items: center;
}
.hero__eyebrow {
  display: inline-flex; align-items: center; gap: 14px;
  font-family: var(--font-en);
  font-size: 12px; letter-spacing: .3em; text-transform: uppercase;
  color: var(--text-thin);
}
.hero__eyebrow::before { content: ""; width: 44px; height: 1px; background: var(--accent); }

.hero__title {
  margin: 30px 0 32px;
  font-size: clamp(1.55rem, 3vw, 2.3rem);
  font-weight: 500;
  line-height: 1.7;
  letter-spacing: .04em;
}
.hero__title em {
  font-style: normal;
  position: relative;
  white-space: nowrap;
}
.hero__title em::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: .1em;
  height: 8px; background: #e7ded2; z-index: -1;
}
.hero__lead {
  max-width: 34em;
  color: var(--text-sub);
  font-size: 15px;
}
.hero__actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 44px; }

.hero__media { position: relative; }
.hero__media img {
  width: 100%;
  border: 1px solid var(--line);
}
.hero__media::before {
  content: ""; position: absolute; inset: 18px -18px -18px 18px;
  background: var(--bg-alt); z-index: -1;
}

.hero__points {
  display: flex; flex-wrap: wrap; gap: 10px 36px;
  margin-top: 64px; padding-top: 30px;
  border-top: 1px solid var(--line);
}
.hero__points li {
  display: inline-flex; align-items: center; gap: 9px;
  font-size: 13px; color: var(--text-sub);
}
.hero__points li::before {
  content: ""; width: 5px; height: 5px; border-radius: 50%;
  background: var(--accent); flex: none;
}

/* =========================================================
   Buttons
   ========================================================= */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  padding: 16px 38px;
  font-size: 14px; font-weight: 500; letter-spacing: .1em;
  transition: background .3s, color .3s, border-color .3s, transform .3s var(--ease);
}
.btn--primary { background: var(--ink); color: #fff; }
.btn--primary:hover { background: #4a453d; transform: translateY(-2px); }
.btn--ghost { border: 1px solid var(--line); color: var(--text); background: var(--surface); }
.btn--ghost:hover { border-color: var(--accent); transform: translateY(-2px); }
.btn--full { width: 100%; }

.link-arrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--font-en); font-size: 13px; letter-spacing: .14em; text-transform: uppercase;
  color: var(--text-sub);
  transition: color .3s, gap .3s var(--ease);
}
.link-arrow::after { content: "→"; transition: transform .3s var(--ease); }
.link-arrow:hover { color: var(--text); gap: 14px; }

/* =========================================================
   Section common
   ========================================================= */
.section { padding: clamp(80px, 11vw, 140px) 0; }
.section--alt { background: var(--bg-alt); }
.section--line { border-top: 1px solid var(--line); }

.section__head { max-width: 660px; margin: 0 auto clamp(48px, 6vw, 72px); text-align: center; }
.section__head--left { text-align: left; margin-inline: 0; }
.section__label {
  font-family: var(--font-en);
  font-size: 12px; letter-spacing: .3em; text-transform: uppercase;
  color: var(--accent);
}
.section__title {
  margin: 14px 0 20px;
  font-size: clamp(1.45rem, 3.4vw, 1.95rem);
  font-weight: 500; letter-spacing: .08em; line-height: 1.6;
}
.section__lead { color: var(--text-sub); font-size: 14.5px; }

.notice {
  max-width: 720px; margin: 0 auto 44px;
  padding: 18px 24px;
  border: 1px solid var(--line);
  background: var(--surface);
  font-size: 13px; color: var(--text-sub); line-height: 1.9;
}
.notice strong { color: var(--text); font-weight: 700; }

/* =========================================================
   Services
   ========================================================= */
.services { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; }
.service {
  display: flex; flex-direction: column;
  padding: clamp(28px, 4vw, 44px);
  background: var(--surface);
  border: 1px solid var(--line);
  transition: border-color .4s, transform .4s var(--ease);
}
.service:hover { border-color: var(--accent); transform: translateY(-3px); }
.service__no {
  font-family: var(--font-en); font-size: 12px; letter-spacing: .26em;
  color: var(--accent);
}
.service__title {
  margin: 16px 0 14px;
  font-size: 1.25rem; font-weight: 500; letter-spacing: .06em;
}
.service__text { font-size: 14px; color: var(--text-sub); }
.service__list {
  margin: 22px 0 0; padding-top: 20px;
  border-top: 1px solid var(--line-soft);
  display: grid; gap: 8px;
}
.service__list li {
  position: relative; padding-left: 20px;
  font-size: 13.5px; color: var(--text-sub);
}
.service__list li::before {
  content: ""; position: absolute; left: 0; top: .95em;
  width: 8px; height: 1px; background: var(--accent);
}
.service__price {
  margin-top: auto; padding-top: 26px;
  font-family: var(--font-en); font-size: 1.5rem; font-weight: 300; letter-spacing: .02em;
}
.service__price small {
  font-family: var(--font-ja); font-size: 12px; color: var(--text-thin); letter-spacing: .04em;
}

/* アプリ制作＝差別化の枠 */
.extra {
  margin-top: 28px;
  display: grid; grid-template-columns: 1fr minmax(240px, 340px);
  gap: clamp(28px, 5vw, 56px); align-items: center;
  padding: clamp(28px, 4vw, 48px);
  background: var(--ink); color: #f6f3ef;
}
.extra__label {
  font-family: var(--font-en); font-size: 12px; letter-spacing: .26em; text-transform: uppercase;
  color: #b7a894;
}
.extra__title {
  margin: 14px 0 16px;
  font-size: clamp(1.2rem, 2.6vw, 1.5rem); font-weight: 500; letter-spacing: .06em; line-height: 1.7;
}
.extra__text { font-size: 14px; color: #cdc6bc; }
.extra__list { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 22px; }
.extra__list li {
  padding: 7px 16px;
  border: 1px solid rgba(255, 255, 255, .22);
  font-size: 12.5px; color: #e6e1d9;
}
.extra__media img { width: 100%; }

/* =========================================================
   Works
   ========================================================= */
.filter {
  display: flex; flex-wrap: wrap; justify-content: center; gap: 8px 28px;
  margin-bottom: 48px;
}
.filter__btn {
  position: relative; padding: 4px 0;
  font-size: 13px; color: var(--text-thin);
  transition: color .3s;
}
.filter__btn::after {
  content: ""; position: absolute; left: 0; bottom: 0;
  width: 100%; height: 1px; background: var(--accent);
  transform: scaleX(0); transform-origin: right;
  transition: transform .4s var(--ease);
}
.filter__btn:hover { color: var(--text); }
.filter__btn.is-active { color: var(--text); }
.filter__btn.is-active::after { transform: scaleX(1); transform-origin: left; }

.works {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 40px 28px;
}
.work.is-hidden { display: none; }

.work__inner {
  display: flex; flex-direction: column; height: 100%;
  background: var(--surface);
  border: 1px solid var(--line);
  transition: border-color .4s, transform .4s var(--ease);
}
.work__inner:hover { border-color: var(--accent); transform: translateY(-4px); }

.work__thumb { position: relative; aspect-ratio: 4 / 3; overflow: hidden; }
.work__thumb img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform .8s var(--ease);
}
.work__inner:hover .work__thumb img { transform: scale(1.03); }
.work__badge {
  position: absolute; top: 0; left: 0;
  padding: 7px 16px;
  background: rgba(255, 255, 255, .92);
  font-size: 11px; letter-spacing: .06em; color: var(--text-sub);
}
.work__badge--own { background: var(--ink); color: #fff; }

.work__body { padding: 26px 26px 28px; display: flex; flex-direction: column; flex: 1; }
.work__cat {
  font-family: var(--font-en); font-size: 11px; letter-spacing: .2em; text-transform: uppercase;
  color: var(--accent);
}
.work__title { margin: 10px 0 12px; font-size: 1.05rem; font-weight: 500; letter-spacing: .04em; line-height: 1.7; }
.work__desc { font-size: 13.5px; color: var(--text-sub); line-height: 1.95; }

.tags { display: flex; flex-wrap: wrap; gap: 8px; }
.tags li {
  padding: 4px 12px;
  border: 1px solid var(--line);
  font-size: 11.5px; color: var(--text-thin); letter-spacing: .04em;
}
.tags--lg li { padding: 7px 16px; font-size: 12.5px; color: var(--text-sub); }
.work__body .tags { margin-top: auto; padding-top: 22px; }

/* 実物のサンプルサイトへ飛べるカードに出す誘導 */
.work__more {
  display: inline-flex; align-items: center; gap: 8px;
  margin-top: 20px; padding-top: 18px;
  border-top: 1px solid var(--line-soft);
  font-size: 12.5px; letter-spacing: .08em;
  color: var(--accent);
}
.work__more::after { content: "→"; transition: transform .35s var(--ease); }
.work__inner:hover .work__more::after { transform: translateX(5px); }
.works__empty { margin-top: 32px; text-align: center; color: var(--text-thin); }

/* =========================================================
   Price note
   ========================================================= */
.price-note {
  max-width: 720px; margin: 44px auto 0;
  padding: 26px 30px;
  border: 1px solid var(--line);
  background: var(--surface);
  font-size: 13.5px; color: var(--text-sub); line-height: 2;
}
.price-note p + p { margin-top: 12px; }
.price-note strong { color: var(--text); font-weight: 700; }

/* =========================================================
   Flow
   ========================================================= */
.flow { max-width: 820px; margin-inline: auto; }
.flow__item {
  display: grid; grid-template-columns: 92px 1fr;
  gap: 0 32px;
  padding: 32px 0;
  border-top: 1px solid var(--line);
}
.flow__item:last-child { border-bottom: 1px solid var(--line); }
.flow__num {
  font-family: var(--font-en); font-size: 12px; letter-spacing: .2em;
  color: var(--accent); padding-top: .35em;
}
.flow__title { font-size: 1.05rem; font-weight: 500; letter-spacing: .05em; margin-bottom: 8px; }
.flow__text { font-size: 13.5px; color: var(--text-sub); }

/* =========================================================
   About
   ========================================================= */
.about { max-width: 780px; margin-inline: auto; }
.about__text { margin-bottom: 22px; color: var(--text-sub); font-size: 14.5px; }
.about__text strong { color: var(--text); font-weight: 700; }

.self-note {
  margin: 30px 0 8px;
  padding: 24px 28px;
  border-left: 2px solid var(--accent);
  background: var(--surface);
  font-size: 13.5px; line-height: 2; color: var(--text-sub);
}
.self-note strong { color: var(--text); font-weight: 700; }

.tech { margin-top: 36px; }
.tech__title {
  font-family: var(--font-en); font-size: 12px; letter-spacing: .26em; text-transform: uppercase;
  color: var(--text-thin); margin-bottom: 18px;
}
.tech__note { margin-top: 16px; font-size: 12px; color: var(--text-thin); }

/* =========================================================
   FAQ
   ========================================================= */
.faq { max-width: 780px; margin-inline: auto; border-top: 1px solid var(--line); }
.faq__item { border-bottom: 1px solid var(--line); }
.faq__item summary {
  position: relative;
  list-style: none; cursor: pointer;
  padding: 26px 56px 26px 0;
  font-size: 15px; font-weight: 500; letter-spacing: .04em; line-height: 1.8;
  transition: color .3s;
}
.faq__item summary::-webkit-details-marker { display: none; }
.faq__item summary::before,
.faq__item summary::after {
  content: ""; position: absolute; right: 8px; top: 50%;
  background: var(--accent); transition: transform .35s var(--ease);
}
.faq__item summary::before { width: 14px; height: 1px; }
.faq__item summary::after { width: 1px; height: 14px; right: 14px; margin-top: -7px; }
.faq__item[open] summary::after { transform: rotate(90deg); }
.faq__item summary:hover { color: var(--accent); }
.faq__item p {
  padding: 0 40px 28px 0;
  font-size: 13.5px; color: var(--text-sub); line-height: 2;
}

/* =========================================================
   Contact form
   ========================================================= */
.form {
  max-width: 760px; margin-inline: auto;
  padding: clamp(28px, 5vw, 52px);
  background: var(--surface);
  border: 1px solid var(--line);
}
.form__row { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.form__group { margin-bottom: 26px; display: flex; flex-direction: column; }
.form__group label { font-size: 13px; font-weight: 500; margin-bottom: 10px; letter-spacing: .06em; }
.req {
  display: inline-block; margin-left: 8px; padding: 1px 8px;
  font-size: 10px; font-weight: 500; letter-spacing: .08em;
  color: #fff; background: var(--accent);
  vertical-align: 2px;
}
.form input, .form select, .form textarea {
  width: 100%;
  padding: 14px 16px;
  border: 1px solid var(--line);
  border-radius: 0;
  background: var(--bg);
  color: var(--text);
  font-family: inherit; font-size: 15px;
  transition: border-color .3s, background .3s;
}
.form textarea { resize: vertical; min-height: 150px; line-height: 1.9; }
.form select {
  appearance: none;
  background-image: linear-gradient(45deg, transparent 50%, var(--text-thin) 50%), linear-gradient(135deg, var(--text-thin) 50%, transparent 50%);
  background-position: calc(100% - 21px) 23px, calc(100% - 15px) 23px;
  background-size: 6px 6px, 6px 6px;
  background-repeat: no-repeat;
}
.form input::placeholder, .form textarea::placeholder { color: #c0b8ad; }
.form input:focus, .form select:focus, .form textarea:focus {
  outline: none;
  border-color: var(--accent);
  background: var(--surface);
}
.form .is-invalid { border-color: #c2705f; }
.form__error { margin-top: 8px; font-size: 12.5px; color: #b0604f; }
.form__note { margin-top: 20px; font-size: 12.5px; color: var(--text-thin); text-align: center; }
.form__done {
  margin-top: 18px; padding: 16px 20px;
  border: 1px solid var(--accent);
  background: var(--bg-alt);
  font-size: 14px; text-align: center;
}

/* =========================================================
   Footer
   ========================================================= */
.footer {
  padding: 64px 0 44px;
  border-top: 1px solid var(--line);
  background: var(--bg);
}
.footer__inner { display: flex; flex-direction: column; align-items: center; gap: 26px; text-align: center; }
.footer__links { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px 30px; }
.footer__links a {
  font-size: 13px; color: var(--text-sub);
  transition: color .3s;
}
.footer__links a:hover { color: var(--accent); }
.footer__copy { font-family: var(--font-en); font-size: 11px; letter-spacing: .14em; color: var(--text-thin); }

/* 事業者情報 */
.footer__info {
  margin: 8px 0 0;
  padding: 24px 28px;
  border: 1px solid var(--line);
  background: var(--surface);
  display: grid; gap: 8px;
  text-align: left;
  font-size: 13px; line-height: 1.9;
  max-width: 620px; width: 100%;
}
.footer__info > div { display: grid; grid-template-columns: 120px 1fr; gap: 4px 16px; }
.footer__info dt { color: var(--text-thin); }
.footer__info dd { margin: 0; color: var(--text-sub); }

@media (max-width: 560px) {
  .footer__info > div { grid-template-columns: 1fr; }
  .footer__info dt { font-size: 11.5px; }
}

.to-top {
  position: fixed; right: 24px; bottom: 24px; z-index: 90;
  width: 46px; height: 46px;
  display: grid; place-content: center;
  background: var(--surface); color: var(--text);
  border: 1px solid var(--line);
  opacity: 0; visibility: hidden; transform: translateY(10px);
  transition: opacity .35s, visibility .35s, transform .35s, border-color .3s;
}
.to-top.is-visible { opacity: 1; visibility: visible; transform: translateY(0); }
.to-top:hover { border-color: var(--accent); }

/* =========================================================
   Scroll reveal
   ========================================================= */
.reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity .9s var(--ease), transform .9s var(--ease);
  transition-delay: calc(var(--d, 0) * 100ms);
}
.reveal.is-visible { opacity: 1; transform: none; }

/* =========================================================
   Responsive
   ========================================================= */
@media (max-width: 980px) {
  .hero__inner { grid-template-columns: 1fr; }
  .hero__media { max-width: 460px; }
  .services { grid-template-columns: 1fr; }
  .extra { grid-template-columns: 1fr; }
  .extra__media { max-width: 320px; }


}

@media (max-width: 820px) {
  .hamburger { display: block; }

  /* ヘッダーに backdrop-filter があると、その中の fixed 要素（メニュー）が
     ヘッダー内に閉じ込められて全画面に広がらないため、スマホ幅では blur を使わない */
  .header.is-scrolled {
    background: #fbfaf8;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
  }

  /* メニューを開いてもロゴは見えるように前面へ */
  .logo { position: relative; z-index: 1; }

  .nav {
    position: fixed; inset: 0;
    display: grid; place-content: center;
    overflow-y: auto;
    padding: calc(var(--header-h) + 12px) 0 32px;
    background: var(--bg);
    opacity: 0; visibility: hidden;
    transition: opacity .35s, visibility .35s;
  }
  .nav.is-open { opacity: 1; visibility: visible; }

  .nav__list { flex-direction: column; gap: 22px; text-align: center; }
  .nav__link { font-size: 15px; }
  .nav__link--cta { margin-top: 10px; padding: 14px 40px; }

  .form__row { grid-template-columns: 1fr; gap: 0; }
  .flow__item { grid-template-columns: 1fr; gap: 6px; }
}

@media (max-width: 560px) {
  .container { width: min(100% - 36px, var(--container)); }
  .works { grid-template-columns: 1fr; }
  .hero { padding-top: calc(var(--header-h) + 56px); }
  .hero__actions .btn { flex: 1 1 100%; }
  .hero__media::before { display: none; }
}

/* =========================================================
   Motion / print
   ========================================================= */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
  }
  .reveal { opacity: 1; transform: none; }
}

@media print {
  .to-top, .hamburger, .nav { display: none; }
  body { background: #fff; }
}
