:root {
  --base: #fffdfa;
  --paper: #fffaf2;
  --text: #191714;
  --muted: #55514b;
  --line: #d9d3ca;
  --orange: #ff6a00;
  --orange-dark: #e95a00;
  --sans: "Noto Sans JP", sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--text);
  font-family: var(--sans);
  background: var(--base);
  letter-spacing: 0;
}

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

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

.site-shell {
  position: relative;
  width: min(100%, 1440px);
  margin: 0 auto;
  overflow: hidden;
  background: var(--base);
}

.site-header {
  position: fixed;
  z-index: 20;
  top: 0;
  left: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding: 24px 40px;
  transition: background 0.3s ease, box-shadow 0.3s ease, padding 0.3s ease;
}

.site-header.is-scrolled {
  padding-top: 14px;
  padding-bottom: 14px;
  background: rgba(255, 253, 250, 0.95);
  box-shadow: 0 8px 24px rgba(20, 16, 12, 0.08);
  backdrop-filter: blur(14px);
}

.logo img {
  width: 276px;
  height: auto;
}

.global-nav {
  display: flex;
  align-items: center;
  gap: clamp(28px, 3.2vw, 58px);
  font-size: 16px;
  font-weight: 700;
}

.global-nav a:not(.contact-nav) {
  position: relative;
}

.global-nav a:not(.contact-nav)::after {
  position: absolute;
  left: 0;
  bottom: -9px;
  width: 100%;
  height: 2px;
  background: var(--orange);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.25s ease;
  content: "";
}

.global-nav a:hover::after {
  transform: scaleX(1);
}

.contact-nav,
.primary-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  min-height: 52px;
  padding: 0 28px;
  color: #fff;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--orange), var(--orange-dark));
  box-shadow: 0 10px 20px rgba(255, 106, 0, 0.22);
  font-weight: 700;
}

.button-icon {
  width: 24px;
  height: 24px;
  object-fit: contain;
  filter: brightness(0) invert(1);
}

.menu-button {
  display: none;
}

.hero {
  position: relative;
  display: grid;
  grid-template-columns: 45% 55%;
  align-items: center;
  min-height: 354px;
  padding: 72px 38px 0;
  border-bottom: 1px solid var(--line);
}

.hero::before {
  position: absolute;
  left: -58px;
  bottom: -42px;
  width: 260px;
  height: 248px;
  background: url("../images/bg02.png") left bottom / contain no-repeat;
  pointer-events: none;
  content: "";
}

.hero::after {
  position: absolute;
  right: -92px;
  bottom: 18px;
  width: 300px;
  height: 230px;
  background: url("../images/bg05.png") right bottom / contain no-repeat;
  pointer-events: none;
  content: "";
}

.hero-copy {
  position: relative;
  z-index: 2;
  width: 590px;
  max-width: none;
  margin-right: -118px;
  padding: 8px 0 24px 178px;
}

.hero-copy h1 {
  margin: 14px 0 0;
  font-family: var(--sans);
  font-size: clamp(44px, 4.2vw, 60px);
  font-weight: 500;
  line-height: 1.48;
  white-space: nowrap;
}

.hero-line-main,
.hero-line-action {
  display: inline-block;
  white-space: nowrap;
}

.hero-line-main {
  display: block;
}

.hero-line-action {
  display: block;
  margin-left: 0;
}

.hero-line-action em {
  color: var(--orange);
  font-style: normal;
}

.hero-copy h1 span {
  display: block;
}

.hero-copy h1 > span {
  color: var(--text);
}

.hero-copy h1 > span > em {
  color: var(--orange);
}

.hero-copy p {
  margin: 0;
  font-size: 19px;
  font-weight: 500;
  line-height: 1.8;
}

.hero-copy p span {
  display: block;
  white-space: nowrap;
}

.accent-dot {
  display: inline;
  color: var(--orange);
}

.hero-copy p .accent-dot {
  display: inline;
  white-space: normal;
}

.hero-copy p::after,
.section-title h2::after {
  display: block;
  width: 230px;
  height: 24px;
  margin-top: 12px;
  background: url("../images/bg_line01.png") left center / contain no-repeat;
  content: "";
}

.hero-copy p::after {
  display: none;
}

.hero-illust {
  position: relative;
  z-index: 1;
  align-self: end;
  margin-left: -74px;
  transform: translateY(24px);
}

.hero-illust img {
  width: 100%;
  height: auto;
}

.section-title h2 {
  margin: 0;
  font-family: var(--sans);
  font-size: 34px;
  font-weight: 500;
  line-height: 1.2;
}

.service {
  display: grid;
  grid-template-columns: 150px minmax(0, 1fr);
  gap: 38px;
  padding: 34px 40px 30px 76px;
  border-bottom: 1px solid var(--line);
}

.service-body {
  display: grid;
  min-width: 0;
  gap: 32px;
}

.service-text {
  display: block;
  color: var(--muted);
  font-size: 14px;
  font-weight: 500;
  line-height: 1.95;
}

.service-text p {
  margin: 0;
}

.service-text p + p {
  margin-top: 2px;
}

.service-list {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  align-items: end;
  width: 100%;
}

.service-item {
  display: grid;
  justify-items: center;
  align-content: start;
  min-width: 0;
  min-height: 116px;
  padding: 0 21px;
  border-left: 1px solid var(--line);
  text-align: center;
}

.service-item:first-child {
  border-left: 0;
}

.service-item img {
  width: 136px;
  height: 82px;
  object-fit: contain;
  margin-bottom: 12px;
  transition: transform 0.35s ease;
}

.service-item:nth-child(2) img {
  width: 132px;
}

.service-item:nth-child(3) img {
  width: 140px;
}

.service-item:nth-child(4) img,
.service-item:nth-child(5) img {
  height: 84px;
}

.service-item h3 {
  margin: 0;
  font-size: 15px;
  font-weight: 700;
  line-height: 1.45;
  white-space: nowrap;
}

.service-item p {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  font-weight: 500;
  line-height: 1.8;
}

.service-item:hover img {
  transform: translateY(-5px) rotate(-1deg);
}

.works {
  position: relative;
  display: grid;
  grid-template-columns: 180px 1fr;
  gap: 34px;
  padding: 34px 28px 38px 66px;
  border-bottom: 1px solid var(--line);
  background:
    url("../images/bg04.png") left 10px bottom 14px / 138px auto no-repeat,
    url("../images/bg01.png") right -54px top 4px / 230px auto no-repeat;
}

.works-head {
  position: relative;
  z-index: 3;
  padding-right: 16px;
}

.works-stage {
  position: relative;
  z-index: 1;
  min-height: 260px;
  overflow: visible;
}

.works-slide {
  position: absolute;
  top: 50%;
  left: 50%;
  width: min(34vw, 390px);
  max-width: none;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  background: #fff;
  border: 1px solid rgba(25, 23, 20, 0.22);
  box-shadow: 0 16px 24px rgba(0, 0, 0, 0.14);
  opacity: 0;
  transform: translate(-50%, -50%) scale(0.64);
  transition: transform 0.8s ease, opacity 0.8s ease, filter 0.8s ease;
  will-change: transform, opacity;
}

.works-slide.is-active {
  z-index: 5;
  opacity: 1;
  transform: translate(-50%, -52%) scale(1.18);
}

.works-slide.is-prev {
  z-index: 3;
  opacity: 0.92;
  transform: translate(-118%, -46%) rotate(2deg) scale(0.82);
}

.works-slide.is-next {
  z-index: 3;
  opacity: 0.92;
  transform: translate(18%, -46%) rotate(-3deg) scale(0.82);
}

.works-slide.is-far-prev {
  z-index: 2;
  opacity: 0.72;
  filter: saturate(0.86);
  transform: translate(-190%, -38%) rotate(5deg) scale(0.66);
}

.works-slide.is-far-next {
  z-index: 2;
  opacity: 0.72;
  filter: saturate(0.86);
  transform: translate(88%, -38%) rotate(4deg) scale(0.66);
}

.works-stage:hover .works-slide {
  transition-duration: 1s;
}

.works-stage img {
  max-width: none;
}

.works-stage img:not(.works-slide) {
  display: block;
}

.about {
  position: relative;
  display: grid;
  grid-template-columns: 190px 1fr;
  gap: 28px;
  padding: 28px 70px 18px 66px;
  border-bottom: 1px solid var(--line);
  background:
    url("../images/bg03.png") left -76px bottom -96px / 220px auto no-repeat,
    url("../images/bg03.png") right -72px top 18px / 210px auto no-repeat;
}

.about-grid {
  display: grid;
  grid-template-columns: 126px minmax(0, 1fr) 126px minmax(0, 0.78fr);
  margin: 0;
  gap: 0;
}

.company-lead {
  margin: 0;
  color: var(--muted);
  font-size: 15px;
  font-weight: 500;
  line-height: 2;
}

.nowrap {
  white-space: nowrap;
}

.about-grid dt,
.about-grid dd {
  margin: 0;
  min-height: 62px;
  padding: 15px 22px;
  border-top: 1px solid var(--line);
  font-size: 14px;
  line-height: 1.7;
}

.about-grid dt {
  border-right: 1px solid var(--line);
  font-weight: 700;
}

.about-grid dt:nth-of-type(even) {
  border-left: 1px solid var(--line);
}

.contact {
  position: relative;
  display: grid;
  grid-template-columns: 322px 1fr 380px;
  align-items: center;
  gap: 36px;
  margin: 72px 28px 20px;
  padding: 0 42px 18px 28px;
  border: 1px solid var(--line);
  border-radius: 28px;
  overflow: visible;
  background:
    url("../images/bg06.png") right 18px bottom 0 / 290px auto no-repeat,
    #fffaf3;
}

.contact-illust {
  align-self: end;
  margin-top: -62px;
  position: relative;
  z-index: 2;
}

.contact-illust img {
  width: 322px;
}

.contact-illust img:not(.balloon-image) {
  transform: none;
}

.balloon {
  position: relative;
  display: inline-block;
  margin: 0 0 24px;
  padding: 16px 36px;
  border: 1px solid #222;
  border-radius: 52% 48% 48% 52% / 46% 56% 44% 54%;
  font-family: var(--sans);
  font-size: 24px;
  line-height: 1.5;
  background: rgba(255, 253, 250, 0.72);
  transform: rotate(-2deg);
}

.balloon::after {
  position: absolute;
  left: 44px;
  bottom: -17px;
  width: 42px;
  height: 24px;
  border-left: 1px solid #222;
  border-bottom: 1px solid #222;
  border-radius: 0 0 0 100%;
  transform: rotate(-16deg);
  content: "";
}

.balloon-image {
  position: absolute;
  left: 176px;
  top: -54px;
  z-index: 3;
  width: 168px;
  height: auto;
  margin: 0;
  transform: rotate(-1.5deg);
  animation: balloon-float 7.5s ease-in-out infinite;
}

.contact-text h2 {
  margin: 0 0 12px;
  font-family: var(--sans);
  font-size: 24px;
  font-weight: 500;
  line-height: 1.6;
}

.contact-text {
  padding-top: 18px;
}

.contact-text p:not(.balloon) {
  margin: 0;
  font-size: 16px;
  line-height: 2;
}

.contact-text .privacy-note {
  margin-top: 14px;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.8;
}

.privacy-note strong {
  color: var(--text);
}

.contact-action {
  display: grid;
  justify-items: center;
  gap: 8px;
}

.primary-button {
  width: 100%;
  min-height: 58px;
  font-size: 18px;
}

.primary-button i {
  position: relative;
  width: 34px;
  height: 1px;
  background: currentColor;
}

.primary-button i::after {
  position: absolute;
  top: -5px;
  right: 0;
  width: 10px;
  height: 10px;
  border-top: 1px solid currentColor;
  border-right: 1px solid currentColor;
  transform: rotate(45deg);
  content: "";
}

.primary-button:hover i {
  animation: arrow-nudge 0.75s ease-in-out infinite;
}

.tel {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  margin: 12px 0 0;
  font-family: var(--sans);
  font-size: 42px;
  font-weight: 500;
  line-height: 1;
}

.tel::before {
  content: none;
}

.tel img {
  width: 34px;
  height: 34px;
  object-fit: contain;
}

.contact-action small {
  color: var(--muted);
  font-size: 13px;
}

.site-footer {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 32px;
  padding: 24px 40px 32px;
  border-top: 1px solid var(--line);
  background: rgba(255, 253, 250, 0.92);
}

.footer-logo img {
  width: 156px;
  height: auto;
}

.footer-nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 26px;
  font-size: 12px;
  font-weight: 700;
}

.site-footer small {
  color: var(--muted);
  font-size: 12px;
  text-align: right;
}

.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.75s ease, transform 0.75s ease;
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

@keyframes float-soft {
  0%,
  100% {
    transform: translateY(0);
  }

  50% {
    transform: translateY(-8px);
  }
}

@keyframes balloon-float {
  0%,
  100% {
    transform: rotate(-1.5deg) translateY(0);
  }

  50% {
    transform: rotate(-1.5deg) translateY(-8px);
  }
}

@keyframes balloon-float-mobile {
  0%,
  100% {
    transform: rotate(-1.5deg) translateY(0);
  }

  50% {
    transform: rotate(-1.5deg) translateY(-6px);
  }
}

@keyframes arrow-nudge {
  0%,
  100% {
    transform: translateX(0);
  }

  50% {
    transform: translateX(6px);
  }
}

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

  .logo img {
    width: 220px;
  }

  .global-nav {
    gap: 22px;
    font-size: 14px;
  }

  .hero {
    grid-template-columns: 1fr;
    padding: 96px 24px 0;
  }

  .hero::before {
    width: 210px;
    height: 150px;
  }

  .hero-copy {
    width: auto;
    margin-right: 0;
    padding: 0 0 18px;
  }

  .hero-illust {
    margin-left: 0;
    transform: none;
  }

  .service,
  .works,
  .about {
    grid-template-columns: 1fr;
    padding-left: 28px;
    padding-right: 28px;
  }

  .works-head {
    background: none;
  }

  .service-list {
    grid-template-columns: repeat(2, 1fr);
    gap: 20px 0;
  }

  .service-text {
    display: block;
  }

  .service-text p + p {
    margin-top: 4px;
  }

  .service-item {
    border-left: 0;
    border-bottom: 1px solid var(--line);
    padding-bottom: 22px;
  }

  .service-item h3 {
    white-space: normal;
  }

  .works-stage {
    min-height: 230px;
    padding-left: 0;
  }

  .contact {
    grid-template-columns: 260px 1fr;
    margin-top: 64px;
    background:
      url("../images/bg06.png") right 12px bottom 0 / 220px auto no-repeat,
      #fffaf3;
  }

  .contact-action {
    grid-column: 1 / -1;
  }

  .site-footer {
    grid-template-columns: 1fr;
    justify-items: center;
    text-align: center;
  }

  .site-footer small {
    text-align: center;
  }
}

.page-top {
  display: none;
}

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

  .logo img {
    width: 176px;
  }

  .menu-button {
    position: relative;
    z-index: 25;
    display: grid;
    place-content: center;
    gap: 7px;
    width: 44px;
    height: 44px;
    border: 0;
    border-radius: 50%;
    background: var(--orange);
  }

  .menu-button span {
    display: block;
    width: 20px;
    height: 2px;
    border-radius: 2px;
    background: #fff;
    transition: transform 0.25s ease;
  }

  .menu-button.is-open span:first-child {
    transform: translateY(4.5px) rotate(35deg);
  }

  .menu-button.is-open span:last-child {
    transform: translateY(-4.5px) rotate(-35deg);
  }

  .global-nav {
    position: fixed;
    inset: 0 0 auto;
    display: grid;
    gap: 22px;
    padding: 86px 24px 30px;
    background: rgba(255, 253, 250, 0.98);
    box-shadow: 0 18px 44px rgba(20, 16, 12, 0.12);
    transform: translateY(-105%);
  }

  .global-nav.is-ready {
    transition: transform 0.32s ease;
  }

  .global-nav.is-open {
    transform: translateY(0);
  }

  .contact-nav {
    width: 100%;
  }

  .hero {
    display: block;
    min-height: 0;
    padding: 84px 20px 12px;
    overflow: hidden;
  }

  .hero-copy {
    position: relative;
    z-index: 3;
    width: 100%;
    max-width: 72%;
    padding: 0;
    margin: 0 0 -50px;
  }

  .hero-copy h1 {
    font-size: 33px;
    line-height: 1.4;
    white-space: normal;
  }

  .hero-line-main,
  .hero-line-action {
    white-space: normal;
  }

  .hero-line-action {
    margin-left: 0;
  }

  .hero-copy p {
    font-size: 15px;
  }

  .hero-illust {
    position: relative;
    z-index: 2;
    width: min(94vw, 350px);
    margin: 0 -28px 0 auto;
    transform: none;
  }

  .hero-illust img {
    width: 100%;
  }

  .hero-copy p::after,
  .section-title h2::after {
    width: 188px;
    height: 20px;
    margin-top: 8px;
  }

  .section-title h2 {
    font-size: 28px;
  }

  .service,
  .works,
  .about {
    gap: 12px;
    padding-top: 22px;
    padding-bottom: 18px;
  }

  .service-body {
    gap: 18px;
  }

  .service-list,
  .works-stage,
  .about-grid,
  .contact {
    grid-template-columns: 1fr;
  }

  .service-item {
    min-height: 0;
    padding-left: 0;
    padding-right: 0;
  }

  .works-stage img,
  .works-stage img:nth-child(n) {
    width: min(74vw, 300px);
  }

  .works-stage img:nth-child(n+6) {
    display: initial;
  }

  .works-slide.is-active {
    transform: translate(-50%, -52%) scale(1);
  }

  .works-slide.is-prev {
    transform: translate(-95%, -45%) rotate(2deg) scale(0.7);
  }

  .works-slide.is-next {
    transform: translate(-5%, -45%) rotate(-3deg) scale(0.7);
  }

  .works-slide.is-far-prev,
  .works-slide.is-far-next {
    opacity: 0;
  }

  .about-grid {
    grid-template-columns: 96px 1fr;
  }

  .about-grid dt,
  .about-grid dd {
    min-height: 0;
    padding: 12px 10px;
    font-size: 13px;
  }

  .about-grid dt:nth-of-type(even) {
    border-left: 0;
  }

  .contact {
    gap: 12px;
    margin: 0 16px 18px;
    padding: 18px;
    background:
      url("../images/bg06.png") right bottom / 140px auto no-repeat,
      #fffaf3;
  }

  .contact-illust {
    position: relative;
    width: min(48vw, 158px);
    margin-top: 6px;
    margin-bottom: 0;
    padding-top: 18px;
  }

  .contact-illust img:not(.balloon-image) {
    width: 100%;
    max-width: none;
    transform: none;
  }

  .balloon-image {
    position: absolute;
    left: 56%;
    top: 0;
    z-index: 3;
    width: 46%;
    min-width: 68px;
    max-width: 76px;
    margin: 0;
    transform: rotate(-1.5deg);
    animation: balloon-float-mobile 7.5s ease-in-out infinite;
  }

  .balloon {
    font-size: 20px;
  }

  .contact-text {
    padding-top: 0;
  }

  .contact-text h2 {
    margin-top: 0;
    margin-bottom: 8px;
    font-size: 22px;
    line-height: 1.5;
  }

  .tel {
    font-size: 34px;
  }

  .site-footer {
    padding: 24px 18px 28px;
  }

  .page-top {
    position: fixed;
    right: 18px;
    bottom: 22px;
    z-index: 40;
    display: grid;
    place-items: center;
    width: 54px;
    height: 54px;
    border-radius: 999px;
    background: linear-gradient(135deg, var(--orange), var(--orange-dark));
    color: #fff;
    font-family: var(--sans);
    font-size: 10px;
    font-weight: 700;
    line-height: 1;
    letter-spacing: 0.06em;
    box-shadow: 0 10px 20px rgba(255, 106, 0, 0.28);
    opacity: 0;
    visibility: hidden;
    transform: translateY(14px);
    transition: opacity 0.28s ease, visibility 0.28s ease, transform 0.28s ease;
  }

  .page-top::before {
    display: block;
    margin-bottom: 1px;
    font-size: 13px;
    line-height: 1;
    content: "↑";
  }

  .page-top.is-visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
  }
}
