@charset "UTF-8";

/* =========================================================
   株式会社 尚 コーポレートサイト
   design tokens → base → layout → components → responsive
   ========================================================= */

:root {
  /* 色：墨・生成り・和紙・苔・金茶 */
  --c-sumi:     #1c1c1a;
  --c-kinari:   #faf8f3;
  --c-washi:    #f2eee6;
  --c-koke:     #3f5c4a;
  --c-kincha:   #a9884f;
  --c-gray:     #6b6b66;
  --c-line:     rgba(28, 28, 26, .12);
  --c-line-soft:rgba(28, 28, 26, .07);

  /* 書体 */
  --f-serif: "Noto Serif JP", "Hiragino Mincho ProN", "Yu Mincho", serif;
  --f-sans:  "Noto Sans JP", "Hiragino Sans", "Yu Gothic", sans-serif;

  /* 余白・寸法 */
  --maxw: 1080px;
  --gutter: clamp(24px, 5vw, 40px);
  --space-section: clamp(96px, 12vw, 160px);
  --header-h: 72px;

  /* 動き */
  --ease: cubic-bezier(.2, .6, .2, 1);
}

/* ---------- reset / 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(--c-kinari);
  color: var(--c-sumi);
  font-family: var(--f-sans);
  font-size: 16px;
  font-weight: 400;
  line-height: 2;
  letter-spacing: .04em;
  font-feature-settings: "palt";
  -webkit-font-smoothing: antialiased;
  overflow-wrap: anywhere;
}

body.is-locked { overflow: hidden; }

h1, h2, h3, p, dl, dd, figure { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }

img { display: block; max-width: 100%; height: auto; }

a { color: inherit; text-decoration: none; transition: color .3s var(--ease), opacity .3s var(--ease); }
a:hover { color: var(--c-koke); }

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

.wrap {
  width: 100%;
  max-width: var(--maxw);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.pc-only { display: none; }

/* スクリーンリーダー専用 */
.u-sr {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  white-space: nowrap;
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 200;
  background: var(--c-sumi);
  color: #fff;
  padding: 10px 20px;
}
.skip-link:focus { left: 0; }

/* ---------- header ---------- */

.site-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 100;
  height: var(--header-h);
  transition: background-color .4s var(--ease), box-shadow .4s var(--ease);
}
.site-header::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  height: 1px;
  background: var(--c-line);
  opacity: 0;
  transition: opacity .4s var(--ease);
}
.site-header.is-scrolled {
  background: rgba(250, 248, 243, .92);
  backdrop-filter: saturate(140%) blur(8px);
}
.site-header.is-scrolled::after { opacity: 1; }

.site-header__inner {
  height: 100%;
  max-width: var(--maxw);
  margin-inline: auto;
  padding-inline: var(--gutter);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 12px;
  font-family: var(--f-serif);
  color: #fff;
  transition: color .4s var(--ease);
}
.site-header.is-scrolled .logo { color: var(--c-sumi); }

/* 筆文字ロゴ（株式会社 尚）。マスクなので色は currentColor に追随する */
.logo__img {
  display: block;
  height: 26px;
  aspect-ratio: 561 / 120;
  background-color: currentColor;
  -webkit-mask: url("/assets/img/logo.png") no-repeat center / contain;
          mask: url("/assets/img/logo.png") no-repeat center / contain;
}

/* ---------- global nav ---------- */

.gnav__list { display: none; }

.nav-toggle {
  appearance: none;
  border: 0;
  background: none;
  padding: 8px 0 8px 8px;
  display: flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
  color: #fff;
  transition: color .4s var(--ease);
}
.site-header.is-scrolled .nav-toggle { color: var(--c-sumi); }
.site-header.is-nav-open .logo,
.site-header.is-nav-open .nav-toggle { color: var(--c-sumi); }

.nav-toggle__bars {
  position: relative;
  display: block;
  width: 26px;
  height: 9px;
  border-top: 1px solid currentColor;
  border-bottom: 1px solid currentColor;
  transition: transform .35s var(--ease), border-color .35s var(--ease);
}
.nav-toggle[aria-expanded="true"] .nav-toggle__bars {
  height: 0;
  border-bottom-color: transparent;
  transform: rotate(45deg);
}
.nav-toggle[aria-expanded="true"] .nav-toggle__bars::after {
  content: "";
  position: absolute;
  inset: -1px 0 auto;
  border-top: 1px solid currentColor;
  transform: rotate(-90deg);
}
.nav-toggle__label {
  font-family: var(--f-serif);
  font-size: 11px;
  letter-spacing: .2em;
  line-height: 1;
}

/* SPメニュー（オーバーレイ） */
.nav-overlay {
  position: fixed;
  inset: 0;
  z-index: 90;
  background: var(--c-kinari);
  opacity: 0;
  transition: opacity .4s var(--ease);
}
.nav-overlay.is-open { opacity: 1; }

.gnav.is-open .gnav__list {
  position: fixed;
  inset: var(--header-h) 0 0;
  z-index: 95;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 8px;
  padding: 0 var(--gutter) 10vh;
}
.gnav.is-open .gnav__list a {
  display: flex;
  align-items: baseline;
  gap: 16px;
  padding: 18px 0;
  border-bottom: 1px solid var(--c-line-soft);
  font-family: var(--f-serif);
  font-size: 18px;
  letter-spacing: .1em;
}
.gnav.is-open .gnav__list a span {
  font-size: 10px;
  letter-spacing: .22em;
  color: var(--c-kincha);
}

/* ---------- hero ---------- */

.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  color: #fff;
}

.hero__media { position: absolute; inset: 0; }
.hero__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 45%;
  filter: saturate(.9) contrast(.98);
}
.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(20, 22, 20, .55) 0%, rgba(20, 22, 20, .28) 40%, rgba(20, 22, 20, .55) 100%);
}

.hero__body {
  position: relative;
  z-index: 2;
  text-align: center;
  padding: calc(var(--header-h) + 24px) var(--gutter) 96px;
}

.hero__title {
  font-family: var(--f-serif);
  font-weight: 300;
  font-size: clamp(28px, 7.6vw, 40px);
  line-height: 1.95;
  letter-spacing: .12em;
  text-shadow: 0 2px 24px rgba(0, 0, 0, .35);
}

.hero__sub {
  margin-top: 32px;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px 18px;
  font-family: var(--f-serif);
  font-size: 11px;
  letter-spacing: .28em;
  opacity: .85;
}
.hero__sub span + span { position: relative; padding-left: 18px; }
.hero__sub span + span::before {
  content: "";
  position: absolute;
  left: 0;
  top: 50%;
  width: 1px;
  height: 12px;
  margin-top: -6px;
  background: currentColor;
  opacity: .5;
}

.hero__scroll {
  position: absolute;
  left: 50%;
  bottom: 0;
  z-index: 2;
  width: 40px;
  height: 72px;
  margin-left: -20px;
}
.hero__scroll span {
  position: absolute;
  left: 50%;
  top: 0;
  width: 1px;
  height: 100%;
  background: rgba(255, 255, 255, .35);
  overflow: hidden;
}
.hero__scroll span::after {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 40%;
  background: #fff;
  animation: scrollLine 2.4s var(--ease) infinite;
}
@keyframes scrollLine {
  0%   { transform: translateY(-100%); }
  60%  { transform: translateY(250%); }
  100% { transform: translateY(250%); }
}

/* ---------- section 共通 ---------- */

.section { padding-block: var(--space-section); }
.section--message { background: var(--c-washi); }
.section--contact { background: var(--c-washi); }

.section-head { margin-bottom: clamp(48px, 7vw, 80px); text-align: center; }

.section-head__en {
  font-family: var(--f-serif);
  font-size: 11px;
  font-weight: 400;
  letter-spacing: .32em;
  color: var(--c-kincha);
  margin-bottom: 20px;
}
.section-head__en::before {
  content: "";
  display: block;
  width: 1px;
  height: 40px;
  margin: 0 auto 20px;
  background: var(--c-kincha);
  opacity: .55;
}

.section-head__ja {
  font-family: var(--f-serif);
  font-weight: 400;
  font-size: clamp(22px, 4.6vw, 28px);
  letter-spacing: .16em;
  line-height: 1.6;
}

/* ---------- about ---------- */

.about { text-align: center; }

.about__lead {
  font-family: var(--f-serif);
  font-weight: 300;
  font-size: clamp(19px, 4.6vw, 27px);
  line-height: 2.2;
  letter-spacing: .1em;
}

.about__body {
  margin-top: 40px;
  font-size: 15px;
  line-height: 2.3;
  color: var(--c-gray);
}

/* ---------- message ---------- */

.message__body > p {
  font-size: 15px;
  line-height: 2.4;
}
.message__body > p + p { margin-top: 1.6em; }

/* 代表プロフィール（署名＋略歴） */

.profile {
  margin-top: 56px;
  padding-top: 36px;
  border-top: 1px solid var(--c-line);
}

.profile__role {
  font-family: var(--f-serif);
  font-size: 12px;
  letter-spacing: .16em;
  color: var(--c-gray);
}

.profile__name {
  margin-top: 8px;
  font-family: var(--f-serif);
  font-size: 21px;
  letter-spacing: .22em;
  line-height: 1.5;
}
.profile__name span {
  display: block;
  margin-top: 8px;
  font-size: 10.5px;
  letter-spacing: .24em;
  color: var(--c-gray);
}

.profile__career {
  margin-top: 24px;
}
.profile__career li {
  position: relative;
  padding-left: 18px;
  font-size: 13.5px;
  line-height: 2.1;
  color: var(--c-gray);
}
.profile__career li::before {
  content: "";
  position: absolute;
  left: 0;
  top: calc(1.05em - 1px);
  width: 8px;
  height: 1px;
  background: var(--c-kincha);
}

/* 折りたたみ（details） */

.more { margin-top: 32px; }

.more > summary {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
  list-style: none;
  font-family: var(--f-serif);
  font-size: 13px;
  letter-spacing: .14em;
  color: var(--c-koke);
  padding: 8px 0;
  border-bottom: 1px solid currentColor;
  transition: opacity .3s var(--ease);
}
.more > summary::-webkit-details-marker { display: none; }
.more > summary:hover { opacity: .65; }
.more > summary::after {
  content: "";
  width: 8px;
  height: 8px;
  border-right: 1px solid currentColor;
  border-bottom: 1px solid currentColor;
  transform: translateY(-3px) rotate(45deg);
  transition: transform .3s var(--ease);
}
.more[open] > summary::after { transform: translateY(1px) rotate(-135deg); }
.more[open] .more__open,
.more:not([open]) .more__close { display: none; }

.more__body {
  padding-top: 28px;
  animation: fadeIn .5s var(--ease) both;
}
.more__body > p { font-size: 15px; line-height: 2.4; }
.more__body > p + p { margin-top: 1.6em; }

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(8px); }
  to   { opacity: 1; transform: none; }
}

.feature dt {
  font-family: var(--f-serif);
  font-size: 16px;
  letter-spacing: .1em;
  padding-left: 16px;
  border-left: 2px solid var(--c-koke);
  line-height: 1.7;
}
.feature dd {
  margin: 12px 0 0;
  padding-left: 18px;
  font-size: 14.5px;
  line-height: 2.2;
  color: var(--c-gray);
}
.feature dd + dt { margin-top: 32px; }

/* ---------- service ---------- */

.services { border-top: 1px solid var(--c-line); }

.service {
  padding-block: clamp(36px, 6vw, 52px);
  border-bottom: 1px solid var(--c-line);
}

.service__num {
  font-family: var(--f-serif);
  font-size: 13px;
  letter-spacing: .24em;
  color: var(--c-kincha);
  margin-bottom: 14px;
}

.service__title {
  font-family: var(--f-serif);
  font-weight: 400;
  font-size: clamp(19px, 4.2vw, 23px);
  letter-spacing: .1em;
  line-height: 1.8;
}

.service__desc {
  margin-top: 16px;
  font-size: 15px;
  line-height: 2.3;
  color: var(--c-gray);
}

.service__note {
  display: block;
  margin-bottom: 10px;
  font-size: 13px;
  letter-spacing: .06em;
  color: var(--c-kincha);
}

.service__link { margin-top: 22px; }
.service__link a {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--f-serif);
  font-size: 13px;
  letter-spacing: .14em;
  color: var(--c-koke);
  padding: 8px 0;
  border-bottom: 1px solid currentColor;
}
.service__link a:hover { opacity: .65; }

.service .more { margin-top: 22px; }

/* ---------- company ---------- */

.company { border-top: 1px solid var(--c-line); }

.company__row {
  display: block;
  padding-block: 22px;
  border-bottom: 1px solid var(--c-line);
}
.company dt {
  font-family: var(--f-serif);
  font-size: 13px;
  letter-spacing: .2em;
  color: var(--c-kincha);
}
.company dd {
  margin: 8px 0 0;
  font-size: 15px;
  line-height: 2;
}
.company dd a { border-bottom: 1px solid var(--c-line); }

/* ---------- contact ---------- */

.contact__lead {
  text-align: center;
  font-size: 15px;
  line-height: 2.3;
  color: var(--c-gray);
}

.form-embed {
  margin: 48px auto 0;
  max-width: 720px;
}
.form-embed iframe {
  display: block;
  width: 100%;
  height: 1500px;          /* 実測1457px＋余白。質問を増減したら測り直す */
  border: 0;
  background: #fff;
}
@media (max-width: 767px) {
  /* 画面が狭いと文字が折り返して縦に伸びるため、内側にスクロールバーが出ないよう高めに */
  .form-embed iframe { height: 1800px; }
}

.contact__mail {
  margin-top: 48px;
  text-align: center;
  font-size: 14px;
  line-height: 2.2;
  color: var(--c-gray);
}
.contact__mail a {
  font-family: var(--f-serif);
  font-size: 19px;
  letter-spacing: .12em;
  color: var(--c-sumi);
  border-bottom: 1px solid var(--c-line);
}

.contact__note {
  margin-top: 28px;
  text-align: center;
  font-size: 12.5px;
  color: var(--c-gray);
}
.contact__note a { color: var(--c-sumi); border-bottom: 1px solid var(--c-line); }

/* ---------- footer ---------- */

.site-footer {
  background: var(--c-sumi);
  color: rgba(255, 255, 255, .8);
  padding-block: clamp(56px, 8vw, 88px);
}
.site-footer a:hover { color: #fff; opacity: .75; }

.site-footer__logo { color: #fff; }
.site-footer__logoimg {
  display: block;
  height: 34px;
  aspect-ratio: 561 / 120;
  background-color: currentColor;
  -webkit-mask: url("/assets/img/logo.png") no-repeat center / contain;
          mask: url("/assets/img/logo.png") no-repeat center / contain;
}

.site-footer__address {
  margin-top: 20px;
  font-style: normal;
  font-size: 13.5px;
  line-height: 2.2;
}
.site-footer__address a { border-bottom: 1px solid rgba(255, 255, 255, .25); }

.site-footer__nav {
  margin-top: 36px;
  display: flex;
  flex-wrap: wrap;
  gap: 12px 28px;
  font-size: 13px;
  letter-spacing: .08em;
}

.site-footer__copy {
  margin-top: 44px;
  padding-top: 24px;
  border-top: 1px solid rgba(255, 255, 255, .14);
  font-family: var(--f-serif);
  font-size: 11px;
  letter-spacing: .18em;
  color: rgba(255, 255, 255, .55);
}

/* ---------- reveal ---------- */

[data-reveal] {
  opacity: 0;
  transform: translateY(12px);
  transition: opacity .9s var(--ease), transform .9s var(--ease);
}
[data-reveal].is-visible { opacity: 1; transform: none; }

/* =========================================================
   responsive
   ========================================================= */

@media (min-width: 768px) {
  .pc-only { display: inline; }

  .hero__body { padding-bottom: 120px; }

  /* 縦組みのキャッチコピー（br が列の折り返しになる） */
  .hero__title {
    writing-mode: vertical-rl;
    text-align: start;
    margin-inline: auto;
    font-size: clamp(28px, 3.4vw, 38px);
    letter-spacing: .18em;
    line-height: 2.2;
  }

  .hero__sub {
    margin-top: 48px;
    justify-content: center;
  }

  .message__body { max-width: 800px; margin-inline: auto; }

  .profile {
    display: grid;
    grid-template-columns: 260px 1fr;
    gap: 0 40px;
    align-items: start;
  }
  .profile__career { margin-top: 4px; }

  .service {
    display: grid;
    grid-template-columns: 120px 1fr;
    gap: 0 32px;
    align-items: start;
  }
  .service__num { margin-bottom: 0; padding-top: .55em; }


  .company__row {
    display: grid;
    grid-template-columns: 180px 1fr;
    gap: 0 32px;
    align-items: baseline;
    padding-block: 26px;
  }
  .company dd { margin-top: 0; }

  .site-footer .wrap {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 32px 48px;
    align-items: start;
  }
  .site-footer__logo { grid-column: 1; }
  .site-footer__address { grid-column: 1; grid-row: 2; margin-top: 16px; }
  .site-footer__nav { grid-column: 2; grid-row: 1 / span 2; flex-direction: column; margin-top: 6px; }
  .site-footer__copy { grid-column: 1 / -1; }
}

@media (min-width: 1024px) {
  .nav-toggle { display: none; }

  .gnav__list {
    display: flex;
    align-items: center;
    gap: 34px;
  }
  .gnav__list a {
    position: relative;
    display: block;
    padding: 6px 0;
    font-family: var(--f-serif);
    font-size: 13.5px;
    letter-spacing: .12em;
    color: #fff;
    transition: color .4s var(--ease);
  }
  .gnav__list a span { display: none; }
  .site-header.is-scrolled .gnav__list a { color: var(--c-sumi); }
  .gnav__list a::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: 0;
    width: 100%;
    height: 1px;
    background: currentColor;
    transform: scaleX(0);
    transform-origin: right;
    transition: transform .4s var(--ease);
  }
  .gnav__list a:hover::after,
  .gnav__list a[aria-current="true"]::after { transform: scaleX(1); transform-origin: left; }
  .gnav__list a[aria-current="true"] { color: var(--c-kincha); }
  .site-header.is-scrolled .gnav__list a[aria-current="true"] { color: var(--c-koke); }
}

/* ---------- 動きを減らす設定 ---------- */

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .001ms !important;
  }
  [data-reveal] { opacity: 1; transform: none; }
}

/* ---------- 印刷 ---------- */

@media print {
  .site-header, .hero__scroll, .nav-overlay, .form-embed { display: none !important; }
  body { background: #fff; }
  [data-reveal] { opacity: 1; transform: none; }
  .more__body { display: block !important; }
}

/* =========================================================
   下層ページ（プライバシーポリシー / 404）
   ========================================================= */

.site-header--solid {
  background: rgba(250, 248, 243, .92);
  backdrop-filter: saturate(140%) blur(8px);
}
.site-header--solid::after { opacity: 1; }
.site-header--solid .logo,
.site-header--solid .nav-toggle,
.site-header--solid .gnav__list a { color: var(--c-sumi); }

.page-head {
  padding-top: calc(var(--header-h) + clamp(56px, 9vw, 96px));
  padding-bottom: clamp(40px, 6vw, 64px);
  text-align: center;
  border-bottom: 1px solid var(--c-line);
}
.page-head__en {
  font-family: var(--f-serif);
  font-size: 11px;
  letter-spacing: .32em;
  color: var(--c-kincha);
  margin-bottom: 16px;
}
.page-head__ja {
  font-family: var(--f-serif);
  font-weight: 400;
  font-size: clamp(22px, 4.6vw, 30px);
  letter-spacing: .16em;
}

.legal {
  padding-block: clamp(56px, 8vw, 88px);
  max-width: 840px;
}
.legal__intro { font-size: 14.5px; line-height: 2.3; color: var(--c-gray); }
.legal a { border-bottom: 1px solid var(--c-line); }

.legal h2 {
  margin-top: clamp(40px, 6vw, 56px);
  margin-bottom: 18px;
  padding-left: 16px;
  border-left: 2px solid var(--c-koke);
  font-family: var(--f-serif);
  font-weight: 400;
  font-size: 17px;
  letter-spacing: .1em;
  line-height: 1.7;
}
.legal p, .legal li { font-size: 14.5px; line-height: 2.2; }
.legal p + p { margin-top: 1.2em; }
.legal ul, .legal ol { margin: 12px 0 1.4em; padding-left: 1.4em; }
.legal ul { list-style: disc; }
.legal ol { list-style: lower-alpha; }
.legal li { margin-top: 8px; }
.legal li ol { list-style: lower-roman; margin-bottom: 0; }
.legal dl { margin-top: 16px; }
.legal dt { font-size: 13px; letter-spacing: .12em; color: var(--c-kincha); margin-top: 12px; }
.legal dd { margin: 2px 0 0; font-size: 14.5px; }
.legal__date {
  margin-top: clamp(48px, 7vw, 64px);
  padding-top: 24px;
  border-top: 1px solid var(--c-line);
  font-size: 12.5px;
  letter-spacing: .08em;
  color: var(--c-gray);
}

.legal__back { margin-top: clamp(40px, 6vw, 56px); }
.legal__back a {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--f-serif);
  font-size: 13px;
  letter-spacing: .14em;
  color: var(--c-koke);
  padding: 8px 0;
  border-bottom: 1px solid currentColor;
}

.error-page {
  min-height: 70svh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 28px;
  text-align: center;
  padding: calc(var(--header-h) + 64px) var(--gutter) 96px;
}
.error-page__num {
  font-family: var(--f-serif);
  font-size: clamp(56px, 14vw, 96px);
  font-weight: 300;
  letter-spacing: .12em;
  color: var(--c-kincha);
  line-height: 1;
}
.error-page__text { font-size: 15px; line-height: 2.2; color: var(--c-gray); }
