@charset "utf-8";

:root {
  --bg: #fdfdfd;
  --bg-alt: #fafafa;
  --ink: #1a1a1b;
  --muted: #666;
  --line: #e0e0e0;
  --mincho: "Shippori Mincho", "Yu Mincho", "YuMincho", "Hiragino Mincho ProN", serif;
  --gothic: "Zen Kaku Gothic New", "Hiragino Sans", "Yu Gothic", "Meiryo", sans-serif;
  --content: 984px;
  --gutter: 48px;
  --sec-pad: 160px;
  --header-h: 80px;
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-padding-top: calc(var(--header-h) + 16px); -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg) url("../img/washi.svg");
  color: var(--ink);
  font-family: var(--gothic);
  font-size: 16px;
  line-height: 2;
  letter-spacing: 0.04em;
  -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
h1, h2, h3, p, dl, dd, ol, figure { margin: 0; }
h1, h2, h3 { font-family: var(--mincho); font-weight: 500; }
h2, h3, .hero p, .hero-cta, .why-lead p, .contact-lead { word-break: auto-phrase; overflow-wrap: break-word; }

/* ヘッダー */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--header-h);
  padding: 0 max(var(--gutter), calc((100% - var(--content)) / 2));
}
.site-header::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: rgba(253, 253, 253, 0.9);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}
.brand { display: block; }
.brand img { width: auto; height: 66px; mix-blend-mode: multiply; }
.nav { display: flex; align-items: center; gap: 36px; }
.nav-link {
  position: relative;
  padding: 4px 0;
  font-size: 0.82rem;
  letter-spacing: 0.12em;
  text-decoration: none;
}
.nav-link::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  height: 1px;
  background: var(--ink);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.4s var(--ease);
}
.nav-link:hover::after, .nav-link:focus-visible::after { transform: scaleX(1); transform-origin: left; }
.nav-cta {
  padding: 8px 22px;
  border: 1px solid var(--ink);
  font-size: 0.82rem;
  letter-spacing: 0.12em;
  text-decoration: none;
  transition: background-color 0.3s, color 0.3s;
}
.nav-cta:hover, .nav-cta:focus-visible { background: var(--ink); color: #fff; }

/* スマホのメニュー */
.menu { display: none; }
.menu > summary {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  cursor: pointer;
  list-style: none;
}
.menu > summary::-webkit-details-marker { display: none; }
.menu-icon {
  width: 22px;
  height: 1px;
  background: var(--ink);
  box-shadow: 0 -7px 0 var(--ink), 0 7px 0 var(--ink);
}
.menu[open] > summary::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 1;
  background: rgba(26, 26, 27, 0.2);
}
.menu-panel {
  position: fixed;
  z-index: 2;
  top: calc(var(--header-h) + 8px);
  left: 16px;
  right: 16px;
  padding: 8px 24px 24px;
  background: var(--bg);
  border: 1px solid var(--line);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.08);
}
.menu-panel a {
  display: block;
  padding: 14px 0;
  border-bottom: 1px solid var(--line);
  text-align: center;
  font-size: 0.95rem;
  letter-spacing: 0.15em;
  text-decoration: none;
}
.menu-panel .menu-cta { margin-top: 20px; border: 0; background: var(--ink); color: #fff; }

/* 最初の画面 */
.hero {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  display: grid;
  grid-template-columns: auto minmax(0, 440px);
  grid-template-rows: 1fr auto;
  justify-content: start;
  column-gap: 64px;
  min-height: clamp(600px, calc(100vh - var(--header-h)), 860px);
  min-height: clamp(600px, calc(100svh - var(--header-h)), 860px);
  padding: 96px max(var(--gutter), calc((100% - var(--content)) / 2)) 112px;
}
.hero::before, .hero::after {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  width: 62%;
}
.hero::before {
  z-index: -2;
  background: url("../img/hero-ink.webp") center / cover no-repeat;
  opacity: 0.85;
  transform: scale(1.1);
}
.hero::after {
  z-index: -1;
  left: 0;
  width: 100%;
  background: linear-gradient(to left, rgba(253, 253, 253, 0) 0%, var(--bg) 56%);
}
.hero h1 {
  grid-column: 1;
  grid-row: 1 / span 2;
  justify-self: start;
  writing-mode: vertical-rl;
  white-space: nowrap;
  font-size: clamp(2.4rem, 4.4vw, 3.6rem);
  line-height: 1.5;
  letter-spacing: 0.22em;
}
.hero p {
  grid-column: 2;
  grid-row: 1;
  align-self: end;
  padding-left: 24px;
  border-left: 1px solid var(--line);
  color: var(--muted);
  line-height: 2.1;
  letter-spacing: 0.08em;
}
.hero-cta {
  grid-column: 2;
  grid-row: 2;
  justify-self: start;
  margin-top: 40px;
  padding: 18px 40px;
  background: var(--ink);
  color: #fff;
  font-size: 0.95rem;
  line-height: 1.6;
  letter-spacing: 0.1em;
  text-decoration: none;
  transition: background-color 0.4s var(--ease), box-shadow 0.4s var(--ease);
}
.hero-cta:hover, .hero-cta:focus-visible { background: #444; box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1); }
.hero-cta span { display: inline-block; }
.keep { display: inline-block; }

/* 各節 */
.sec { padding: var(--sec-pad) max(var(--gutter), calc((100% - var(--content)) / 2)); }
#mission, #service, #strengths, #contact { background: var(--bg-alt); }
.sec-head { margin-bottom: clamp(48px, 7vw, 88px); text-align: center; }
.sec-en {
  margin-bottom: 14px;
  font-size: 0.72rem;
  line-height: 1.6;
  letter-spacing: 0.4em;
  text-transform: uppercase;
  color: var(--muted);
}
.sec-head h2 {
  padding-left: 0.3em;
  font-size: clamp(1.45rem, 2.6vw, 1.8rem);
  line-height: 1.6;
  letter-spacing: 0.3em;
}

/* 思い */
.mission { max-width: 720px; margin: 0 auto; }
.mission-title {
  margin: 0 0 48px;
  font-size: clamp(1.45rem, 3vw, 2.1rem);
  line-height: 1.9;
  letter-spacing: 0.12em;
  text-align: center;
}
.mission p { margin: 0; font-size: 0.98rem; line-height: 2.2; }
.mission p + p { margin-top: 1.6em; }

/* こんなとき */
.why {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr);
  column-gap: 64px;
  align-items: start;
}
.why::before {
  content: "";
  position: sticky;
  top: calc(var(--header-h) + 40px);
  grid-column: 1;
  grid-row: 1 / span 4;
  aspect-ratio: 4 / 5;
  background: url("../img/knot.webp") center / cover no-repeat;
  box-shadow: 20px 20px 60px rgba(0, 0, 0, 0.05);
}
.why > * { grid-column: 2; }
.why-body p { font-size: 0.95rem; line-height: 2; text-wrap: pretty; }
.why-body.why-lead p {
  margin-bottom: 40px;
  font-family: var(--mincho);
  font-weight: 500;
  font-size: 1.12rem;
  line-height: 2.1;
  letter-spacing: 0.06em;
}
.why-row { padding: 32px 0; border-top: 1px solid var(--line); transition: border-color 0.6s var(--ease); }
.why-row:last-child { border-bottom: 1px solid var(--line); }
.why-row:hover { border-top-color: var(--ink); }
.why-row h3 { margin-bottom: 12px; font-size: 1.25rem; line-height: 1.7; letter-spacing: 0.06em; }

/* サービス */
.svc {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  column-gap: 64px;
  border-top: 1px solid var(--line);
}
.svc-block { display: flex; flex-direction: column; padding: 48px 0 52px; border-bottom: 1px solid var(--line); }
.svc-block h3 {
  position: relative;
  margin-bottom: 24px;
  padding-bottom: 18px;
  font-size: clamp(1.3rem, 2vw, 1.55rem);
  line-height: 1.6;
  letter-spacing: 0.05em;
}
.svc-block h3::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 60px;
  height: 2px;
  background: var(--ink);
}
.svc-desc { font-size: 0.95rem; line-height: 2; }
.svc-link { margin-top: 20px; font-size: 0.9rem; }
.svc-link a { text-underline-offset: 6px; }

/* チーム */
.team { display: grid; gap: 40px; max-width: 960px; margin: 0 auto; }
.member {
  display: grid;
  grid-template-columns: 240px minmax(0, 1fr);
  column-gap: 56px;
  align-items: start;
  padding: 56px;
  background: #fff;
  border: 1px solid var(--line);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.03);
}
.member-head { display: contents; }
.member-head img {
  grid-column: 1;
  grid-row: 1 / span 2;
  width: 100%;
  filter: grayscale(100%);
  box-shadow: 10px 10px 0 rgba(0, 0, 0, 0.05);
}
.member-name { grid-column: 2; margin-bottom: 28px; padding-bottom: 20px; border-bottom: 1px solid var(--line); }
.member-name p { font-size: 0.9rem; letter-spacing: 0.1em; color: var(--muted); }
.member-name .name {
  margin: 4px 0 2px;
  font-family: var(--mincho);
  font-weight: 500;
  font-size: 1.9rem;
  line-height: 1.5;
  color: var(--ink);
}
.member-career { grid-column: 2; }
.member-career p { margin-bottom: 20px; padding-left: 16px; border-left: 2px solid var(--line); font-size: 0.9rem; line-height: 1.95; }
.member-career p:last-child { margin-bottom: 0; }

/* 強み */
.strengths { max-width: 960px; margin: 0 auto; padding: 32px; background: #fff; border: 1px solid var(--line); }
.strengths img { width: 100%; }
.strength-list { max-width: 960px; margin: 0 auto 56px; }

/* 会社概要 */
.company { max-width: 800px; margin: 0 auto; border-top: 1px solid var(--line); }
.company .row {
  display: grid;
  grid-template-columns: 150px minmax(0, 1fr);
  padding: 24px 0;
  border-bottom: 1px solid var(--line);
}
.company dt { grid-column: 1; grid-row: 1 / span 2; font-family: var(--mincho); font-weight: 500; color: var(--muted); }
.company dd { grid-column: 2; }
.company dd + dd { margin-top: 4px; }
.company ol { margin: 0; padding-left: 1.4em; }
.company li { font-size: 0.92rem; line-height: 1.9; }
.company li + li { margin-top: 6px; }

/* お問い合わせ */
.sec-contact { text-align: center; }
.contact-lead { max-width: 640px; margin: 0 auto 40px; line-height: 2.1; }
.contact-mail a {
  display: inline-block;
  padding: 22px 48px;
  background: #fff;
  border: 1px solid var(--line);
  font-size: 1.15rem;
  letter-spacing: 0.08em;
  text-underline-offset: 6px;
  transition: border-color 0.4s var(--ease);
}
.contact-mail a:hover, .contact-mail a:focus-visible { border-color: var(--ink); }

/* フッター */
.site-footer {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  padding: 48px 24px 40px;
  border-top: 1px solid var(--line);
}
.footer-logo { width: 120px; mix-blend-mode: multiply; }
.copyright { font-size: 0.72rem; letter-spacing: 0.12em; color: var(--muted); }

/* 動き（動きを減らす設定の人には出さない） */
@keyframes rise { from { opacity: 0; transform: translateY(30px); } to { opacity: 1; transform: none; } }
@keyframes drift { from { transform: scale(1.1); } to { transform: scale(1.16); } }
@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
  .hero::before { animation: drift 20s ease-in-out infinite alternate; }
  .hero h1 { animation: rise 1.4s var(--ease) both; }
  .hero p { animation: rise 1.4s var(--ease) 0.25s both; }
  .hero-cta { animation: rise 1.4s var(--ease) 0.45s both; }
  @supports (animation-timeline: view()) {
    .sec-head, .mission, .why-lead, .why-row, .svc-block, .member, .strengths, .company, .contact-lead, .contact-mail {
      animation: rise linear both;
      animation-timeline: view();
      animation-range: entry 0% entry 60%;
    }
  }
}

/* タブレット */
@media (max-width: 840px) {
  :root { --gutter: 24px; --sec-pad: 96px; --header-h: 64px; }
  .brand img { height: 48px; }
  .nav { display: none; }
  .menu { display: block; }
  .hero {
    grid-template-columns: minmax(0, 1fr);
    grid-template-rows: none;
    min-height: 0;
    padding: 56px var(--gutter) 72px;
  }
  .hero::before, .hero::after { bottom: auto; width: 80%; height: 440px; }
  .hero::after { width: 100%; height: 500px; }
  .hero::before { opacity: 0.6; }
  .hero::after {
    background:
      linear-gradient(to left, rgba(253, 253, 253, 0) 0%, var(--bg) 74%),
      linear-gradient(to top, var(--bg) 0, var(--bg) 60px, rgba(253, 253, 253, 0) 240px);
  }
  .hero h1 { grid-row: auto; font-size: clamp(2rem, 8.2vw, 2.6rem); }
  .hero p { grid-column: 1; grid-row: auto; margin-top: 40px; }
  .hero-cta { grid-column: 1; grid-row: auto; margin-top: 32px; padding: 16px 28px; }
  .sec-head h2 { padding-left: 0.16em; letter-spacing: 0.16em; }
  .why { grid-template-columns: minmax(0, 1fr); }
  .why::before { position: static; grid-row: auto; aspect-ratio: 16 / 9; margin-bottom: 40px; }
  .why > * { grid-column: 1; }
  .svc { grid-template-columns: minmax(0, 1fr); }
  .member { grid-template-columns: minmax(0, 1fr); padding: 40px 28px; }
  .member-head img { grid-row: auto; width: min(220px, 70%); margin: 0 auto 28px; }
  .member-name, .member-career { grid-column: 1; }
  .member-name { text-align: center; }
  .strengths { padding: 12px; }
  .strength-list { margin-bottom: 40px; }
  .contact-lead { text-align: left; }
}

/* スマホ */
@media (max-width: 540px) {
  :root { --sec-pad: 80px; }
  .why-body.why-lead p { font-size: 1.05rem; }
  .mission-title { font-size: 1.3rem; letter-spacing: 0.06em; }
  .why-row h3 { font-size: 1.15rem; }
  .member { padding: 32px 20px; }
  .member-name .name { font-size: 1.6rem; }
  .company .row { grid-template-columns: 96px minmax(0, 1fr); padding: 18px 0; }
  .company .row.is-list { grid-template-columns: minmax(0, 1fr); }
  .company .row.is-list dt { grid-row: auto; margin-bottom: 8px; }
  .company .row.is-list dd { grid-column: 1; }
  .contact-mail a { padding: 18px 24px; font-size: 1.05rem; }
}
