/*
Theme Name: SINCERITY One Page
Theme URI: https://example.com/
Author: SINCERITY
Description: Static one-page company site converted for WordPress.
Version: 1.0.0
Requires at least: 6.0
Tested up to: 6.5
Requires PHP: 7.4
Text Domain: sincerity-one-page
*/

:root {
  --bg: #f4f1ec;
  --ink: #141414;
  --muted: #71706b;
  --line: #ddd7ce;
  --panel: #ffffff;
  --dark: #111111;
  --accent: #b99b5f;
  --accent-soft: #efe1c4;
  --max: 1120px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background:
    linear-gradient(180deg, #fbfaf7 0%, var(--bg) 56%, #f8f6f1 100%);
  color: var(--ink);
  font-family: "Inter", "Noto Sans JP", sans-serif;
  letter-spacing: 0;
  overflow-x: hidden;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background:
    radial-gradient(circle at 16% 22%, rgba(185, 155, 95, .16), transparent 28%),
    radial-gradient(circle at 80% 12%, rgba(17, 17, 17, .08), transparent 24%),
    linear-gradient(90deg, rgba(20, 20, 20, .035) 1px, transparent 1px);
  background-size: auto, auto, 76px 76px;
}

img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

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

.mobile-break {
  display: none;
}

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding: 18px clamp(20px, 5vw, 64px);
  color: #fff;
  background: linear-gradient(180deg, rgba(0, 0, 0, .34), rgba(0, 0, 0, 0));
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  font-size: 14px;
  letter-spacing: .08em;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  border: 1px solid rgba(255, 255, 255, .64);
  border-radius: 50%;
  font-size: 13px;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 30px;
  font-size: 13px;
  font-weight: 600;
  color: rgba(255, 255, 255, .84);
}

.site-nav a {
  position: relative;
}

.site-nav a::after {
  content: "";
  position: absolute;
  right: 0;
  bottom: -7px;
  left: 0;
  height: 1px;
  background: currentColor;
  transform: scaleX(0);
  transform-origin: right;
  transition: transform .24s ease;
}

.site-nav a:hover::after {
  transform: scaleX(1);
  transform-origin: left;
}

.nav-toggle {
  display: none;
  width: 42px;
  height: 42px;
  border: 0;
  background: transparent;
  color: currentColor;
}

.nav-toggle span {
  display: block;
  width: 24px;
  height: 1px;
  margin: 8px auto;
  background: currentColor;
}

.side-rail {
  position: fixed;
  right: 18px;
  top: 50%;
  z-index: 15;
  display: flex;
  gap: 18px;
  align-items: center;
  writing-mode: vertical-rl;
  transform: translateY(-50%);
  color: rgba(20, 20, 20, .46);
  font-size: 12px;
  font-weight: 700;
}

.side-rail strong {
  color: rgba(20, 20, 20, .72);
  font-size: 18px;
}

.section-panel {
  margin: 0 auto;
  width: min(calc(100% - 40px), 1240px);
  border-radius: 0;
}

.hero {
  position: relative;
  min-height: min(92svh, 980px);
  overflow: hidden;
  display: flex;
  align-items: flex-end;
  padding: 124px clamp(26px, 6vw, 92px) 76px;
  background:
    linear-gradient(90deg, rgba(9, 9, 9, .82) 0%, rgba(9, 9, 9, .48) 48%, rgba(9, 9, 9, .10) 100%),
    linear-gradient(0deg, rgba(9, 9, 9, .72) 0%, rgba(9, 9, 9, .06) 52%),
    url("./assets/hero-bg.jpg") center bottom / cover no-repeat;
  color: #fff;
  isolation: isolate;
  animation: sectionRise .9s ease both;
}

.hero::after {
  content: "";
  position: absolute;
  inset: 18px;
  border: 1px solid rgba(255, 255, 255, .18);
  pointer-events: none;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background:
    linear-gradient(115deg, transparent 0%, rgba(255, 255, 255, .13) 48%, transparent 56%);
  transform: translateX(-120%);
  animation: lightSweep 5.6s ease-in-out 1.1s infinite;
}

.hero-inner {
  position: relative;
  z-index: 2;
  width: min(100%, 850px);
}

.eyebrow,
.section-title p {
  margin: 0 0 18px;
  color: var(--accent);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
}

.hero h1 {
  margin: 0;
  max-width: 900px;
  font-size: clamp(46px, 6vw, 84px);
  line-height: 1.12;
  font-weight: 900;
  text-shadow: 0 18px 46px rgba(0, 0, 0, .42);
  word-break: keep-all;
  overflow-wrap: normal;
  animation: textLift .95s ease .1s both;
}

.hero-copy {
  max-width: 590px;
  margin: 28px 0 0;
  color: rgba(255, 255, 255, .82);
  font-size: clamp(15px, 2vw, 18px);
  line-height: 2;
  animation: textLift .95s ease .22s both;
}

.hero-actions {
  margin-top: 34px;
  animation: textLift .95s ease .34s both;
}

.button {
  position: relative;
  overflow: hidden;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 50px;
  padding: 0 24px;
  border-radius: 0;
  border: 1px solid var(--ink);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: .04em;
  transition: transform .2s ease, background .2s ease, color .2s ease, border-color .2s ease;
}

.button::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(110deg, transparent 0%, rgba(255, 255, 255, .34) 48%, transparent 54%);
  transform: translateX(-120%);
  transition: transform .55s ease;
}

.button:hover {
  transform: translateY(-2px);
}

.button:hover::after {
  transform: translateX(120%);
}

.button.primary {
  background: var(--ink);
  color: #fff;
}

.button.ghost {
  margin-left: 10px;
  background: transparent;
}

.hero .button {
  border-color: rgba(255, 255, 255, .86);
}

.hero .button.primary {
  background: #fff;
  color: var(--ink);
}

.hero .button.ghost {
  background: rgba(255, 255, 255, .06);
  color: #fff;
}

.hero .eyebrow {
  color: rgba(255, 255, 255, .62);
}

.hero-label {
  position: absolute;
  right: clamp(22px, 5vw, 72px);
  bottom: clamp(22px, 5vw, 64px);
  margin: 0;
  color: rgba(255, 255, 255, .54);
  font-size: clamp(34px, 7vw, 90px);
  font-weight: 900;
  line-height: 1;
  writing-mode: vertical-rl;
  animation: labelPulse 4.8s ease-in-out infinite;
}

.intro,
.company {
  max-width: var(--max);
  margin: 0 auto;
  padding: 118px 20px;
}

.intro {
  position: relative;
}

.intro::after {
  content: "SINCERITY";
  position: absolute;
  right: max(20px, calc((100vw - var(--max)) / 2));
  bottom: 32px;
  color: rgba(20, 20, 20, .045);
  font-size: clamp(54px, 13vw, 180px);
  font-weight: 900;
  line-height: 1;
  pointer-events: none;
}

.section-title h2 {
  margin: 0;
  font-size: clamp(32px, 5vw, 62px);
  line-height: 1.14;
  letter-spacing: .01em;
  overflow-wrap: anywhere;
}

.section-title h2,
.hero h1 {
  background: linear-gradient(95deg, currentColor 0%, currentColor 58%, rgba(185, 155, 95, .82) 72%, currentColor 86%);
  background-size: 240% 100%;
  -webkit-background-clip: text;
  background-clip: text;
  animation: titleSheen 7s ease-in-out infinite;
}

.lead {
  max-width: 760px;
  margin: 28px 0 0 auto;
  color: #252520;
  font-size: clamp(18px, 2.25vw, 27px);
  font-weight: 600;
  line-height: 1.86;
}

.visual-story {
  display: grid;
  grid-template-columns: 1.35fr .85fr;
  grid-template-rows: repeat(2, minmax(230px, 1fr));
  gap: 14px;
  margin-bottom: 22px;
}

.story-card {
  position: relative;
  min-height: 260px;
  margin: 0;
  overflow: hidden;
  background: var(--dark);
  color: #fff;
  isolation: isolate;
}

.story-card-large {
  grid-row: span 2;
  min-height: 540px;
}

.story-card::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    linear-gradient(0deg, rgba(0, 0, 0, .74), transparent 58%),
    linear-gradient(90deg, rgba(0, 0, 0, .42), transparent 62%);
}

.story-card img {
  filter: saturate(.88) contrast(1.05);
  transform: scale(1.02);
  transition: transform .8s ease, filter .8s ease;
}

.story-card:hover img {
  filter: saturate(1.04) contrast(1.08);
  transform: scale(1.08);
}

.story-card figcaption {
  position: absolute;
  right: 28px;
  bottom: 28px;
  left: 28px;
  z-index: 2;
}

.story-card span {
  display: block;
  margin-bottom: 10px;
  color: var(--accent-soft);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .16em;
  text-transform: uppercase;
}

.story-card strong {
  display: block;
  max-width: 100%;
  font-size: clamp(21px, 2.2vw, 30px);
  line-height: 1.34;
  word-break: keep-all;
  overflow-wrap: normal;
}

.services {
  padding: 82px clamp(24px, 5vw, 76px);
  background:
    radial-gradient(circle at 100% 0%, rgba(185, 155, 95, .22), transparent 34%),
    linear-gradient(180deg, #151515 0%, var(--dark) 100%);
  color: #fff;
  overflow: hidden;
}

.services .section-title p,
.services .service-item p {
  color: rgba(255, 255, 255, .66);
}

.service-grid {
  display: grid;
  gap: 0;
  margin-top: 56px;
  border-top: 1px solid rgba(255, 255, 255, .18);
}

.service-item {
  position: relative;
  display: grid;
  grid-template-columns: 84px 170px minmax(220px, 340px) minmax(0, 1fr);
  gap: clamp(18px, 4vw, 56px);
  align-items: start;
  min-height: 220px;
  padding: 42px 0;
  border-bottom: 1px solid rgba(255, 255, 255, .18);
  background: var(--dark);
  transition: background .28s ease, transform .28s ease;
}

.service-item > * {
  min-width: 0;
}

.service-item:hover {
  background: rgba(255, 255, 255, .035);
  transform: translateX(8px);
}

.service-item::after {
  content: "";
  position: absolute;
  right: 0;
  top: 50%;
  width: 42px;
  height: 1px;
  border-radius: 0;
  background: var(--accent);
  box-shadow: none;
  transform: translateY(-50%);
}

.service-number {
  color: var(--accent);
  font-size: clamp(30px, 5vw, 56px);
  font-weight: 800;
  line-height: .9;
}

.service-photo {
  height: 124px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, .16);
}

.service-photo img {
  filter: grayscale(100%) contrast(1.08);
  transition: transform .55s ease, filter .55s ease;
}

.service-item:hover .service-photo img {
  filter: grayscale(0%) contrast(1.06);
  transform: scale(1.08);
}

.service-item h3 {
  margin: 0;
  font-size: clamp(25px, 4vw, 42px);
  line-height: 1.36;
}

.service-item p,
.about-text p {
  max-width: 100%;
  overflow-wrap: anywhere;
  font-size: 15px;
  line-height: 2;
}

.about {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 460px);
  gap: clamp(28px, 5vw, 68px);
  align-items: center;
  padding: 96px clamp(24px, 5vw, 76px);
  background: rgba(255, 255, 255, .92);
  border: 1px solid rgba(221, 215, 206, .75);
  box-shadow: 0 24px 80px rgba(20, 20, 20, .08);
}

.about-media {
  min-height: 560px;
  overflow: hidden;
  border-radius: 0;
  filter: grayscale(100%);
}

.about-media img {
  transition: transform .7s ease;
}

.about:hover .about-media img {
  transform: scale(1.035);
}

.about-text p {
  color: #44443f;
}

.message-signature {
  margin-top: 30px;
  color: var(--ink);
  font-weight: 900;
  text-align: right;
}

.company-list {
  margin: 46px 0 0;
  border-top: 1px solid var(--line);
  background: rgba(255, 255, 255, .42);
}

.company {
  position: relative;
  display: grid;
  grid-template-columns: minmax(260px, .72fr) minmax(0, 1fr);
  gap: clamp(28px, 5vw, 70px);
  align-items: center;
}

.company .section-title,
.company .company-list {
  position: relative;
  z-index: 2;
}

.company-visual {
  position: relative;
  grid-row: 1 / span 2;
  min-height: 520px;
  overflow: hidden;
  border: 1px solid rgba(221, 215, 206, .9);
  background: var(--dark);
}

.company-visual::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(0deg, rgba(0, 0, 0, .42), transparent 52%),
    linear-gradient(90deg, rgba(185, 155, 95, .16), transparent 58%);
}

.company-visual img {
  filter: grayscale(60%) contrast(1.08);
  transform: scale(1.02);
}

.company-list {
  grid-column: 2;
  align-self: stretch;
}

.company-list div {
  display: grid;
  grid-template-columns: 180px 1fr;
  gap: 22px;
  padding: 24px 26px;
  border-bottom: 1px solid var(--line);
}

.company-list dt {
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
}

.company-list dd {
  margin: 0;
  font-weight: 600;
  line-height: 1.8;
}

.site-footer {
  width: min(calc(100% - 40px), 1240px);
  margin: 0 auto 40px;
  padding: 44px 20px 58px;
  border-top: 1px solid var(--line);
  text-align: center;
}

.site-footer p {
  margin: 0;
  color: rgba(20, 20, 20, .58);
  font-size: clamp(18px, 3vw, 34px);
  font-weight: 800;
  letter-spacing: .16em;
  line-height: 1;
}

input,
select,
textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fbfbf8;
  color: var(--ink);
  font: inherit;
  font-size: 15px;
}

input,
select {
  height: 54px;
  padding: 0 16px;
}

textarea {
  resize: vertical;
  padding: 16px;
}

@keyframes sectionRise {
  from {
    opacity: 0;
    transform: translateY(18px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes textLift {
  from {
    opacity: 0;
    transform: translateY(18px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes lightSweep {
  0%, 42% {
    transform: translateX(-120%);
  }
  64%, 100% {
    transform: translateX(120%);
  }
}

@keyframes titleSheen {
  0%, 54%, 100% {
    background-position: 0% 50%;
  }
  72% {
    background-position: 100% 50%;
  }
}

@keyframes labelPulse {
  0%, 100% {
    opacity: .54;
  }
  50% {
    opacity: .78;
  }
}

@media (max-width: 920px) {
  .site-header {
    padding: 18px 20px;
  }

  .nav-toggle {
    display: block;
  }

  .site-nav {
    position: fixed;
    inset: 66px 16px auto;
    display: none;
    flex-direction: column;
    align-items: flex-start;
    gap: 18px;
    padding: 24px;
    border-radius: 0;
    background: #111;
    color: #fff;
  }

  .site-nav.is-open {
    display: flex;
  }

  .side-rail {
    display: none;
  }

  .hero,
  .about,
  .company {
    grid-template-columns: 1fr;
  }

  .hero {
    min-height: auto;
    padding-top: 96px;
  }

  .service-grid {
    grid-template-columns: 1fr;
  }

  .visual-story {
    grid-template-columns: 1fr;
    grid-template-rows: none;
  }

  .story-card-large {
    grid-row: auto;
    min-height: 360px;
  }

  .service-item {
    grid-template-columns: 76px minmax(0, 1fr);
    min-height: auto;
    padding: 32px 0;
  }

  .service-photo {
    grid-column: 1 / -1;
    height: 210px;
  }

  .service-item h3,
  .service-item p {
    grid-column: 1 / -1;
  }

  .service-item::after {
    top: 36px;
    transform: none;
  }

  .about-media {
    min-height: 380px;
  }

  .company-visual {
    grid-row: auto;
    min-height: 320px;
  }

  .company-list {
    grid-column: auto;
  }

}

@media (max-width: 560px) {
  .section-panel {
    width: min(calc(100% - 24px), 1240px);
  }

  .hero {
    padding-inline: 18px;
  }

  .hero::after {
    inset: 14px;
  }

  .hero h1 {
    max-width: 100%;
    font-size: 35px;
    line-height: 1.14;
    word-break: keep-all;
    overflow-wrap: normal;
  }

  .hero-copy,
  .lead {
    max-width: 100%;
    font-size: 15px;
    line-height: 1.9;
    word-break: break-all;
  }

  .section-title h2 {
    max-width: 100%;
    font-size: 29px;
    line-height: 1.22;
    word-break: break-all;
  }

  .service-item p,
  .about-text p,
  .company-list dd {
    word-break: break-all;
  }

  .mobile-break {
    display: initial;
  }

  .hero-label {
    display: none;
  }

  .hero-actions {
    display: grid;
    gap: 10px;
  }

  .button {
    width: 100%;
  }

  .button.ghost {
    margin-left: 0;
  }

  .intro,
  .company {
    padding: 80px 16px;
  }

  .intro::after {
    display: none;
  }

  .services,
  .about {
    padding: 42px 18px;
  }

  .visual-story {
    gap: 10px;
  }

  .story-card,
  .story-card-large {
    min-height: 280px;
  }

  .story-card figcaption {
    right: 20px;
    bottom: 20px;
    left: 20px;
  }

  .service-item {
    transform: none;
  }

  .service-item:hover {
    transform: none;
  }

  .company-list div {
    grid-template-columns: 1fr;
  }

  .site-footer {
    width: min(calc(100% - 24px), 1240px);
    padding: 36px 12px 48px;
  }

}
