@charset "utf-8";
/* Sunnyside v3 — editorial corporate + motion */

:root {
  --paper: #f6f4ef;
  --paper-deep: #efece4;
  --ink: #23211c;
  --ink-soft: #45423a;
  --muted: #6e6a61;
  --hairline: #d9d5cb;
  --accent: #a97e2f;
  --serif: "Shippori Mincho", "Hiragino Mincho ProN", "Yu Mincho", serif;
  --sans: "Noto Sans JP", "Hiragino Kaku Gothic ProN", sans-serif;
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-inout: cubic-bezier(0.76, 0, 0.24, 1);
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--sans);
  font-weight: 400;
  font-size: 16px;
  line-height: 2;
  letter-spacing: 0.04em;
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  font-feature-settings: "palt";
  overflow-x: hidden;
}

html.has-cursor,
html.has-cursor a,
html.has-cursor .js-hover {
  cursor: none;
}

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

a {
  color: inherit;
  text-decoration: none;
}

ul,
ol {
  list-style: none;
}

.u-br-pc {
  display: none;
}
@media (min-width: 900px) {
  .u-br-pc {
    display: inline;
  }
}

/* ---------- intro ---------- */

.intro {
  display: none;
}

html.js .intro {
  display: flex;
  position: fixed;
  inset: 0;
  z-index: 900;
  background: var(--ink);
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 26px;
  transition: transform 0.9s var(--ease-inout);
}

.intro--exit {
  transform: translateY(-100%);
}

.intro--gone {
  display: none !important;
}

.intro__mark {
  font-family: var(--serif);
  font-weight: 600;
  font-size: clamp(22px, 3.4vw, 34px);
  letter-spacing: 0.5em;
  text-indent: 0.5em;
  color: var(--paper);
}

.intro__mark .ch {
  display: inline-block;
  opacity: 0;
  transform: translateY(0.6em);
  animation: intro-ch 0.7s var(--ease-out) forwards;
  animation-delay: calc(var(--i) * 55ms + 120ms);
}

@keyframes intro-ch {
  to {
    opacity: 1;
    transform: none;
  }
}

.intro__line {
  width: min(220px, 40vw);
  height: 1px;
  background: var(--accent);
  transform: scaleX(0);
  animation: intro-line 0.7s var(--ease-inout) 0.75s forwards;
}

@keyframes intro-line {
  to {
    transform: scaleX(1);
  }
}

/* ---------- grain / progress / cursor ---------- */

.grain {
  position: fixed;
  inset: -100px;
  z-index: 800;
  pointer-events: none;
  opacity: 0.05;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='240' height='240'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  animation: grain 1.2s steps(6) infinite;
}

@keyframes grain {
  0% { transform: translate(0, 0); }
  20% { transform: translate(-30px, 40px); }
  40% { transform: translate(50px, -20px); }
  60% { transform: translate(-40px, -35px); }
  80% { transform: translate(25px, 55px); }
  100% { transform: translate(0, 0); }
}

.progress {
  position: fixed;
  inset: 0 auto auto 0;
  width: 100%;
  height: 2px;
  z-index: 850;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: left;
  pointer-events: none;
}

.cursor,
.cursor-ring {
  display: none;
}

html.has-cursor .cursor {
  display: block;
  position: fixed;
  left: 0;
  top: 0;
  z-index: 950;
  width: 6px;
  height: 6px;
  margin: -3px 0 0 -3px;
  border-radius: 50%;
  background: var(--accent);
  pointer-events: none;
  will-change: transform;
}

html.has-cursor .cursor-ring {
  display: block;
  position: fixed;
  left: 0;
  top: 0;
  z-index: 940;
  width: 36px;
  height: 36px;
  margin: -18px 0 0 -18px;
  border-radius: 50%;
  border: 1px solid rgba(35, 33, 28, 0.45);
  pointer-events: none;
  will-change: transform;
  transition: width 0.3s var(--ease-out), height 0.3s var(--ease-out),
    margin 0.3s var(--ease-out), background-color 0.3s ease, border-color 0.3s ease;
}

html.has-cursor .cursor-ring.is-hover {
  width: 64px;
  height: 64px;
  margin: -32px 0 0 -32px;
  border-color: var(--accent);
  background: rgba(169, 126, 47, 0.08);
}

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

.header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 100;
  transition: background-color 0.4s ease, box-shadow 0.4s ease,
    transform 0.5s var(--ease-inout);
}

.header--scrolled {
  background: rgba(246, 244, 239, 0.92);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  box-shadow: 0 1px 0 var(--hairline);
}

.header--hidden {
  transform: translateY(-100%);
}

html.js .header {
  opacity: 0;
  transition: opacity 0.8s ease 0.2s, background-color 0.4s ease, box-shadow 0.4s ease,
    transform 0.5s var(--ease-inout);
}

html.js.is-loaded .header {
  opacity: 1;
}

.header__inner {
  max-width: 1120px;
  margin-inline: auto;
  padding: 22px 24px;
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 24px;
}

.header__brand {
  display: flex;
  align-items: baseline;
  gap: 14px;
}

.header__wordmark {
  font-family: var(--serif);
  font-weight: 600;
  font-size: 18px;
  letter-spacing: 0.32em;
}

.header__brand-ja {
  font-size: 10.5px;
  letter-spacing: 0.14em;
  color: var(--muted);
}

.header__nav {
  display: flex;
  gap: 32px;
}

.header__nav-link {
  position: relative;
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.16em;
  padding-block: 4px;
}

.header__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.35s ease;
}

.header__nav-link:hover::after {
  transform: scaleX(1);
  transform-origin: left;
}

@media (max-width: 640px) {
  .header__brand-ja {
    display: none;
  }
  .header__inner {
    padding: 18px 20px;
  }
  .header__nav {
    gap: 22px;
  }
}

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

.hero {
  position: relative;
  min-height: 92svh;
  display: flex;
  align-items: center;
  overflow: hidden;
  border-bottom: 1px solid var(--hairline);
}

.hero__sun {
  position: absolute;
  right: -12vw;
  top: 50%;
  width: min(56vw, 640px);
  aspect-ratio: 1;
  transform: translateY(calc(-50% + var(--py, 0px)));
  will-change: transform;
}

.hero__sun::before {
  content: "";
  position: absolute;
  inset: 11%;
  border-radius: 50%;
  background: radial-gradient(circle at 38% 32%, #efe6d2, transparent 68%);
  opacity: 0;
  transition: opacity 1.6s ease 1.1s;
}

html.js.is-loaded .hero__sun::before,
html:not(.js) .hero__sun::before {
  opacity: 1;
}

.hero__sun svg {
  width: 100%;
  height: 100%;
  display: block;
}

.hero__sun-circle {
  stroke: var(--accent);
  stroke-width: 0.35;
  opacity: 0.6;
  stroke-dasharray: 1;
  stroke-dashoffset: 0;
  transform: rotate(-90deg);
  transform-origin: center;
}

html.js .hero__sun-circle {
  stroke-dashoffset: 1;
  transition: stroke-dashoffset 2s var(--ease-inout) 0.55s;
}

html.js.is-loaded .hero__sun-circle {
  stroke-dashoffset: 0;
}

.hero__inner {
  position: relative;
  max-width: 1120px;
  width: 100%;
  margin-inline: auto;
  padding: 140px 24px 96px;
}

.hero__overline {
  font-family: var(--serif);
  font-size: 12px;
  letter-spacing: 0.42em;
  color: var(--accent);
  margin-bottom: 34px;
  overflow: hidden;
}

.hero__overline-inner {
  display: inline-block;
}

html.js .hero__overline-inner {
  opacity: 0;
  transform: translateY(100%);
  transition: opacity 0.7s ease 0.35s, transform 0.7s var(--ease-out) 0.35s;
}

html.js.is-loaded .hero__overline-inner {
  opacity: 1;
  transform: none;
}

.hero__title {
  font-family: var(--serif);
  font-weight: 600;
  font-size: clamp(38px, 6.4vw, 76px);
  line-height: 1.5;
  letter-spacing: 0.06em;
  margin-bottom: 40px;
}

.hero__title .line {
  display: block;
  overflow: hidden;
  padding-bottom: 0.08em;
  margin-bottom: -0.08em;
}

.hero__title .line__inner {
  display: inline-block;
}

html.js .hero__title .line__inner {
  transform: translateY(112%);
  transition: transform 1.1s var(--ease-out);
}

html.js .hero__title .line:nth-child(1) .line__inner {
  transition-delay: 0.42s;
}

html.js .hero__title .line:nth-child(2) .line__inner {
  transition-delay: 0.54s;
}

html.js.is-loaded .hero__title .line__inner {
  transform: none;
}

.hero__lead {
  max-width: 40em;
  font-size: 15px;
  line-height: 2.3;
  color: var(--ink-soft);
}

html.js .hero__lead {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.9s ease 0.85s, transform 0.9s var(--ease-out) 0.85s;
}

html.js.is-loaded .hero__lead {
  opacity: 1;
  transform: none;
}

@media (max-width: 640px) {
  .hero {
    min-height: 86svh;
  }
  .hero__sun {
    width: 78vw;
    right: -30vw;
    top: 30%;
  }
  .hero__inner {
    padding: 120px 20px 72px;
  }
  .hero__lead {
    font-size: 14px;
  }
}

/* ---------- marquee ---------- */

.marquee {
  overflow: hidden;
  border-bottom: 1px solid var(--hairline);
  padding: 34px 0;
}

.marquee__track {
  display: flex;
  width: max-content;
  white-space: nowrap;
  will-change: transform;
}

.marquee__text {
  font-family: var(--serif);
  font-weight: 600;
  font-size: clamp(56px, 9vw, 110px);
  line-height: 1.1;
  letter-spacing: 0.06em;
  color: transparent;
  -webkit-text-stroke: 1px rgba(35, 33, 28, 0.35);
  padding-right: 0.5em;
}

/* ---------- sections ---------- */

.section {
  border-bottom: 1px solid var(--hairline);
}

.section__inner {
  max-width: 1120px;
  margin-inline: auto;
  padding: 110px 24px 120px;
}

.section__head {
  margin-bottom: 72px;
}

.section__label {
  font-family: var(--serif);
  font-size: 12px;
  letter-spacing: 0.6em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 14px;
  transition: letter-spacing 1.2s var(--ease-out);
}

.section__head.is-visible .section__label {
  letter-spacing: 0.42em;
}

.section__title {
  font-family: var(--serif);
  font-weight: 600;
  font-size: clamp(26px, 3.4vw, 38px);
  letter-spacing: 0.1em;
  line-height: 1.4;
}

@media (max-width: 640px) {
  .section__inner {
    padding: 78px 20px 88px;
  }
  .section__head {
    margin-bottom: 48px;
  }
}

/* ---------- services ---------- */

.services {
  position: relative;
}

.services::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 1px;
  background: var(--hairline);
}

.services__row {
  position: relative;
  display: grid;
  grid-template-columns: 120px 1fr;
  gap: 24px;
  padding: 52px 8px;
  transition: background-color 0.35s ease;
}

.services__row::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  height: 1px;
  background: var(--hairline);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 1.1s var(--ease-inout) 0.25s;
}

.services__row.is-visible::after,
html:not(.js) .services__row::after {
  transform: scaleX(1);
}

.services__row:hover {
  background: var(--paper-deep);
}

.services__ghost {
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%) translateX(36px);
  font-family: var(--serif);
  font-weight: 600;
  font-size: clamp(90px, 11vw, 170px);
  line-height: 1;
  color: transparent;
  -webkit-text-stroke: 1px rgba(169, 126, 47, 0.55);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.5s ease, transform 0.6s var(--ease-out);
}

.services__row:hover .services__ghost {
  opacity: 0.55;
  transform: translateY(-50%) translateX(0);
}

.services__num {
  font-family: var(--serif);
  font-size: 15px;
  letter-spacing: 0.2em;
  color: var(--accent);
  padding-top: 6px;
}

.services__body {
  display: grid;
  grid-template-columns: minmax(0, 340px) 1fr;
  gap: 16px 56px;
  align-items: start;
}

.services__name {
  font-family: var(--serif);
  font-weight: 600;
  font-size: 22px;
  letter-spacing: 0.08em;
  line-height: 1.7;
  transition: transform 0.5s var(--ease-out);
}

.services__row:hover .services__name {
  transform: translateX(10px);
}

.services__tag {
  display: inline-block;
  vertical-align: 0.25em;
  margin-left: 14px;
  padding: 1px 10px 2px;
  border: 1px solid var(--accent);
  border-radius: 999px;
  font-family: var(--serif);
  font-size: 11px;
  letter-spacing: 0.22em;
  text-indent: 0.22em;
  color: var(--accent);
  text-transform: uppercase;
}

.services__text {
  font-size: 14.5px;
  line-height: 2.2;
  color: var(--muted);
  max-width: 42em;
}

@media (max-width: 900px) {
  .services__row {
    grid-template-columns: 64px 1fr;
    padding: 40px 4px;
  }
  .services__body {
    grid-template-columns: 1fr;
    gap: 12px;
  }
  .services__name {
    font-size: 19px;
  }
  .services__ghost {
    display: none;
  }
}

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

.section--company {
  background: var(--paper-deep);
}

.company {
  position: relative;
  max-width: 860px;
}

.company::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 1px;
  background: var(--hairline);
}

.company__row {
  position: relative;
  display: grid;
  grid-template-columns: 180px 1fr;
  gap: 24px;
  padding: 30px 8px;
}

.company__row::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  height: 1px;
  background: var(--hairline);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 1s var(--ease-inout) 0.2s;
}

.company__row.is-visible::after,
html:not(.js) .company__row::after {
  transform: scaleX(1);
}

.company__label {
  font-weight: 500;
  font-size: 14px;
  letter-spacing: 0.12em;
  color: var(--ink-soft);
  padding-top: 2px;
}

.company__value {
  font-size: 15px;
  color: var(--ink);
}

.company__exec-item {
  display: flex;
  align-items: baseline;
  gap: 18px;
}

.company__exec-role {
  font-family: var(--serif);
  font-size: 12px;
  letter-spacing: 0.24em;
  color: var(--accent);
  min-width: 3.2em;
}

.company__list li {
  position: relative;
  padding-left: 1.4em;
}

.company__list li::before {
  content: "—";
  position: absolute;
  left: 0;
  color: var(--accent);
}

@media (max-width: 640px) {
  .company__row {
    grid-template-columns: 1fr;
    gap: 4px;
    padding: 24px 4px;
  }
  .company__label {
    font-size: 12.5px;
    color: var(--accent);
  }
  .company__value {
    font-size: 14.5px;
  }
}

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

.footer {
  position: relative;
  background: var(--ink);
  color: var(--paper);
  overflow: hidden;
}

.footer__inner {
  position: relative;
  z-index: 1;
  max-width: 1120px;
  margin-inline: auto;
  padding: 84px 24px 150px;
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 32px;
}

.footer__logo {
  width: 200px;
  height: auto;
  opacity: 0.92;
  margin-bottom: 16px;
}

.footer__brand-ja {
  font-size: 12px;
  letter-spacing: 0.14em;
  color: rgba(246, 244, 239, 0.6);
}

.footer__copy {
  font-size: 11.5px;
  letter-spacing: 0.1em;
  color: rgba(246, 244, 239, 0.5);
}

.footer__giant {
  position: absolute;
  left: 50%;
  bottom: -0.05em;
  transform: translateX(-50%) translateY(var(--py, 0px));
  font-family: var(--serif);
  font-weight: 600;
  /* SUNNYSIDE 9文字が letter-spacing 0.04em 込みで約6.5em幅
     → 13.8vw なら常に画面内に収まる */
  font-size: clamp(90px, 13.8vw, 230px);
  line-height: 1;
  letter-spacing: 0.04em;
  white-space: nowrap;
  color: transparent;
  -webkit-text-stroke: 1px rgba(246, 244, 239, 0.14);
  pointer-events: none;
  user-select: none;
  will-change: transform;
}

@media (max-width: 640px) {
  .footer__inner {
    padding: 64px 20px 120px;
  }
  .footer__giant {
    font-size: 14.5vw;
    bottom: -0.05em;
    transform: translateX(-50%);
  }
}

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

html.js .js-reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.9s ease var(--d, 0s), transform 0.9s var(--ease-out) var(--d, 0s);
}

html.js .js-reveal.is-visible {
  opacity: 1;
  transform: none;
}

/* ---------- reduced motion ----------
   JSが判定して html に .reduce-motion を付与する
   （?motion=1 付きURLでは付与されず、フルモーションで再生される） */

html.reduce-motion {
  scroll-behavior: auto;
}

html.js.reduce-motion .intro {
  display: none;
}

html.reduce-motion .grain,
html.reduce-motion .progress,
html.reduce-motion .marquee {
  display: none;
}

html.js.reduce-motion .js-reveal,
html.js.reduce-motion .header,
html.js.reduce-motion .hero__lead,
html.js.reduce-motion .hero__overline-inner,
html.js.reduce-motion .hero__title .line__inner,
html.js.reduce-motion .hero__sun-circle {
  opacity: 1;
  transform: none;
  transition: none;
  stroke-dashoffset: 0;
}

html.js.reduce-motion .hero__sun::before {
  opacity: 1;
  transition: none;
}

html.reduce-motion .services__row::after,
html.reduce-motion .company__row::after {
  transform: scaleX(1);
  transition: none;
}
