:root {
  --bg: #f3f1ee;
  --text: #1c1c1c;
  --text-soft: rgba(28, 28, 28, 0.72);
  --subtext: #8f8f8f;
  --line: rgba(28, 28, 28, 0.20);
  --accent: rgba(47, 79, 111, 0.14);
  --accent-soft: rgba(47, 79, 111, 0.08);

  --content-width-sp: 375px;
  --content-width-pc: 1100px;

  --font-sans: "Josefin Sans", sans-serif;
  --font-serif: "Zen Old Mincho", serif;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--text);
  background: var(--bg);
  font-family: var(--font-sans);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

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

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

.skip-link {
  position: fixed;
  left: 12px;
  top: -9999px;
  z-index: 10001;
  background: #fff;
  color: var(--text);
  border: 1px solid var(--line);
  padding: 8px 12px;
  border-radius: 6px;
  font-size: 0.82rem;
  transition: top 0.2s ease;
}

.skip-link:focus {
  top: 12px;
}

:focus-visible {
  outline: 2px solid var(--text);
  outline-offset: 2px;
}

ul,
ol {
  margin: 0;
  padding: 0;
}

li {
  list-style: none;
}

.u-visually-hidden {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0 0 0 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
}

/* =========================
   Ripple
========================= */
.ripple-layer {
  position: fixed;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
  z-index: 9999;
}

.ripple {
  position: absolute;
  border-radius: 50%;
  border: none;
  background: radial-gradient(circle, rgba(65, 105, 225, 0.6) 0%, rgba(65, 105, 225, 0.4) 50%, rgba(65, 105, 225, 0.2) 70%, transparent 100%);
  transform: translate(-50%, -50%) scale(0.2);
  opacity: 0;
  will-change: transform, opacity;
  filter: blur(3px);
  box-shadow: 0 0 25px rgba(65, 105, 225, 1), inset 0 0 20px rgba(255, 255, 255, 0.5);
}

.ripple--click {
  animation: rippleExpand 1.6s ease-out forwards;
}

.ripple--move {
  border-color: var(--accent-soft);
  animation: rippleMove 1.1s ease-out forwards;
}

.ripple::before,
.ripple::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 50%;
  border: none;
  background: radial-gradient(circle, rgba(65, 105, 225, 0.6) 0%, rgba(65, 105, 225, 0.4) 50%, rgba(65, 105, 225, 0.2) 70%, transparent 100%);
  box-shadow: 0 0 25px rgba(65, 105, 225, 1), inset 0 0 20px rgba(255, 255, 255, 0.5);
}

.ripple--click::before {
  transform: scale(1.18);
  animation: rippleExpand 1.6s ease-out 0.4s forwards;
}

.ripple--click::after {
  transform: scale(1.36);
  opacity: 0.72;
  animation: rippleExpand 1.6s ease-out 0.8s forwards;
}

.ripple--move::before {
  transform: scale(1.1);
  animation: rippleMove 1.1s ease-out 0.2s forwards;
}

.ripple--move::after {
  transform: scale(1.2);
  opacity: 0.72;
  animation: rippleMove 1.1s ease-out 0.4s forwards;
}

@keyframes rippleExpand {
  0% {
    transform: translate(-50%, -50%) scale(0) rotate(0deg);
    opacity: 0.4;
  }
  50% {
    transform: translate(-50%, -50%) scale(0.5) rotate(1deg);
    opacity: 0.2;
  }
  100% {
    transform: translate(-50%, -50%) scale(1) rotate(0deg);
    opacity: 0;
  }
}

@keyframes rippleMove {
  0% {
    transform: translate(-50%, -50%) scale(0) rotate(0deg);
    opacity: 0.3;
  }
  50% {
    transform: translate(-50%, -50%) scale(0.5) rotate(0.5deg);
    opacity: 0.15;
  }
  100% {
    transform: translate(-50%, -50%) scale(1) rotate(0deg);
    opacity: 0;
  }
}

/* =========================
   Layout
========================= */
.site-wrap {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: var(--content-width-sp);
  margin: 0 auto;
  padding: 18px 32px 36px;
}

.site-header__inner {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.site-title,
.site-subtitle {
  margin: 0;
  line-height: 1.05;
  letter-spacing: 0.01em;
}

.site-title {
  font-size: 1.15rem;
  font-weight: 500;
}

.site-subtitle {
  font-size: 1.1rem;
  font-weight: 500;
}

.hero {
  padding-top: 100px;
  text-align: center;
}

.hero__flower {
  width: 92px;
  margin: 0 auto;
}

.hero__copy {
  margin: 58px 0 0;
  font-family: var(--font-serif);
  font-size: 1.18rem;
  font-weight: 400;
  line-height: 1.9;
  letter-spacing: 0.04em;
  text-align: center;
}

.hero__actions {
  margin: 32px 0 0;
  display: flex;
  justify-content: center;
}

.hero__copy--highlight {
  color: rgba(65, 0, 130, 1);
}

.section-divider {
  width: 32px;
  height: 1px;
  margin: 96px auto 34px;
  background: var(--line);
}

.section-divider--works {
  width: min(320px, 94vw);
  height: 34px;
  margin: 48px auto 0;
  background:
    repeating-linear-gradient(
      90deg,
      rgba(28, 28, 28, 0.16) 0,
      rgba(28, 28, 28, 0.16) 6px,
      transparent 6px,
      transparent 16px
    );
  position: relative;
  border-top: 1px solid rgba(28, 28, 28, 0.12);
  border-bottom: 1px solid rgba(28, 28, 28, 0.12);
  overflow: hidden;
}

.section-divider--works::before,
.section-divider--works::after {
  content: "";
  position: absolute;
  left: -16px;
  right: -16px;
  height: 1px;
  background: rgba(28, 28, 28, 0.18);
}

.section-divider--works::before {
  top: 12px;
}

.section-divider--works::after {
  bottom: 10px;
  opacity: 0.72;
}

.section-title {
  margin: 0 0 30px;
  color: var(--text-soft);
  text-align: center;
  font-family: var(--font-sans);
  font-size: 3.55rem;
  font-weight: 300;
  line-height: 1;
  letter-spacing: 0.01em;
}

.typewriter {
  display: inline-block;
  letter-spacing: 0.02em;
  opacity: 0;
  transform: translateY(8px);
  transition:
    opacity 2s ease-in-out,
    transform 2s ease-in-out;
}

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

.typewriter.is-typing,
.typewriter.is-complete {
  visibility: visible;
}

.typewriter.is-typing {
  opacity: 1;
  transform: translateY(0);
}

.works {
  position: relative;
}

.works-preview-wrap {
  position: relative;
  width: min(100%, 1100px);
  max-width: min(100%, 1100px);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  column-gap: 28px;
  align-items: start;
}

.works-list__item {
  position: relative;
}

.works-hover-preview {
  display: block;
  width: 100%;
  margin: 0;
  aspect-ratio: 16 / 9;
  border: 1px solid var(--line);
  border-radius: 3px;
  overflow: hidden;
  background: #fff;
  opacity: 0;
  pointer-events: none;
  transition:
    opacity 0.55s ease-in-out,
    transform 0.55s ease-in-out;
  z-index: 2;
  align-self: stretch;
  background: #f4f2ee;
  position: relative;
}

.works-hover-preview.show {
  opacity: 1;
  transform: translateY(0);
}

.works-hover-preview.is-empty {
  border-color: rgba(28, 28, 28, 0.26);
  border-style: dashed;
}

.works-hover-preview.is-empty::after {
  content: "サムネイル未設定";
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  color: #7a7a7a;
  font-size: 0.84rem;
  letter-spacing: 0.02em;
  pointer-events: none;
}

.work-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 1;
  transition: opacity 0.45s ease-in-out;
}

.work-image.is-placeholder {
  object-fit: contain;
  padding: 2%;
}

@media (max-width: 767px) {
  .works-preview-wrap {
    grid-template-columns: 1fr;
    row-gap: 18px;
  }

  .works-hover-preview {
    order: 2;
    margin-top: 14px;
    aspect-ratio: 16 / 10;
  }
}

.work-image.is-switching {
  opacity: 0;
}

.image-frames {
  display: flex;
  justify-content: center;
  align-items: flex-start;
  padding-top: 84px;
}

.frame {
  position: absolute;
  width: 250px;
  height: 180px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--line);
  border-radius: 4px;
  overflow: hidden;
}

.frame--top-right {
  top: 20px;
  right: 40px;
  transform: rotate(5deg);
}

.frame--bottom-left {
  bottom: 20px;
  left: 40px;
  transform: rotate(-5deg);
}

.frame--single {
  transform: rotate(5deg);
}

.works-list {
  display: flex;
  flex-direction: column;
  gap: 24px;
  width: 100%;
}

.works-list__item {
  align-self: flex-start;
}

.works-link {
  display: inline-flex;
  flex-direction: column;
  gap: 8px;
}

.works-link__title {
  font-size: 0.95rem;
  font-weight: 500;
  line-height: 1.5;
  letter-spacing: 0.01em;
  transition: color 0.28s ease;
  text-align: center;
}

.works-link__meta {
  font-size: 0.78rem;
  line-height: 1.5;
  color: var(--subtext);
  letter-spacing: 0.02em;
  text-align: center;
}

.works-link:hover .works-link__title,
.works-link:focus-visible .works-link__title {
  color: rgba(47, 79, 111, 0.88);
}

.about__body {
  padding: 0 22px;
}

.about__text {
  margin: 0;
  font-size: 0.9rem;
  line-height: 1.9;
  letter-spacing: 0.01em;
  text-align: center;
}

.about__text + .about__text {
  margin-top: 28px;
}

.contact {
  padding-top: 74px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 40px;
}

.contact-form {
  width: min(560px, 100%);
  margin: 0 auto;
}

.contact-form__row {
  margin: 0 0 16px;
}

.contact-form__label {
  display: block;
  margin: 0 0 6px;
  text-align: left;
  font-size: 0.82rem;
  letter-spacing: 0.02em;
}

.contact-form__field {
  width: 100%;
  min-height: 44px;
  border: 1px solid rgba(28, 28, 28, 0.3);
  padding: 10px 12px;
  background: rgba(255, 255, 255, 0.58);
  font: inherit;
  color: var(--text);
  resize: vertical;
}

.contact-form__field--textarea {
  min-height: 140px;
}

.contact-form__honeypot {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  opacity: 0;
}

.contact-form__submit {
  width: 100%;
}

.contact-form__message {
  margin: 8px 0 0;
  font-size: 0.84rem;
}

.contact-form__message--success {
  color: #2f4f6f;
}

.contact-form__message--error {
  color: #a52f2f;
}

.contact-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 150px;
  min-height: 48px;
  padding: 12px 24px;
  border: 1px solid rgba(28, 28, 28, 0.7);
  background: transparent;
  color: rgba(28, 28, 28, 0.68);
  font-size: 0.9rem;
  font-weight: 300;
  letter-spacing: 0.01em;
  transition:
    color 0.28s ease,
    background-color 0.28s ease,
    border-color 0.28s ease;
}

.contact-button:hover,
.contact-button:focus-visible {
  background: var(--text);
  color: #fff;
  border-color: var(--text);
  outline: none;
}

.policy-content h2 {
  margin: 34px 0 10px;
  font-size: 1.02rem;
  font-weight: 500;
}

.policy-content ul {
  margin: 0 0 20px;
  padding-left: 1.2em;
}

.policy-content li {
  margin: 0 0 8px;
  list-style: disc;
  line-height: 1.8;
}

.policy-content p {
  margin: 0 0 16px;
  line-height: 1.9;
}

.site-footer {
  padding-top: 76px;
  text-align: center;
}

.site-footer__copy {
  margin: 0;
  font-size: 0.72rem;
  line-height: 1.4;
}

.analytics-consent {
  position: fixed;
  left: 12px;
  right: 12px;
  bottom: 16px;
  z-index: 10000;
}

.analytics-consent__inner {
  margin: 0 auto;
  max-width: min(560px, 92vw);
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(248, 248, 248, 0.96);
  box-shadow: 0 10px 35px rgba(0, 0, 0, 0.18);
  backdrop-filter: blur(6px);
}

.analytics-consent__text {
  margin: 0 0 12px;
  font-size: 0.84rem;
  line-height: 1.7;
}

.analytics-consent__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.analytics-consent__btn {
  border: 1px solid var(--text);
  background: transparent;
  color: var(--text);
  padding: 10px 14px;
  min-height: 40px;
  cursor: pointer;
  font: inherit;
}

.analytics-consent__btn--allow {
  background: var(--text);
  color: #fff;
}

.analytics-consent__link {
  display: inline-block;
  margin-top: 10px;
  font-size: 0.78rem;
  border-bottom: 1px solid rgba(28, 28, 28, 0.4);
}

.analytics-consent__link:hover,
.analytics-consent__link:focus-visible {
  opacity: 0.75;
}

.site-footer__links {
  margin: 12px 0 0;
  font-size: 0.72rem;
}

.site-footer__links a {
  border-bottom: 1px solid rgba(28, 28, 28, 0.45);
}

.site-footer__links a:hover,
.site-footer__links a:focus-visible {
  opacity: 0.7;
}

/* =========================
   Fade up
========================= */
.fade-up {
  opacity: 0;
  transform: translateY(12px);
  transition:
    opacity 0.9s ease,
    transform 0.9s ease;
}

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

.hero-fade {
  opacity: 0;
  transform: translateY(12px);
  transition:
    opacity 2.2s ease-in-out,
    transform 2.2s ease-in-out;
}

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

/* =========================
   PC
========================= */
@media (min-width: 768px) {
  .site-wrap {
    max-width: var(--content-width-pc);
    padding: 28px 56px 72px;
  }

  .site-title {
    font-size: 2rem;
  }

  .site-subtitle {
    font-size: 2.3rem;
  }

  .hero {
    padding-top: 130px;
  }

  .hero__flower {
    width: 130px;
  }

  .hero__copy {
    margin-top: 72px;
    font-size: 2.3rem;
    line-height: 1.8;
  }

  .section-divider {
    width: 40px;
    margin: 120px auto 42px;
  }

  .section-divider--works {
    width: min(440px, 84vw);
    height: 40px;
    margin-top: 70px;
    background:
      repeating-linear-gradient(
        90deg,
        rgba(28, 28, 28, 0.18) 0,
        rgba(28, 28, 28, 0.18) 8px,
        transparent 8px,
        transparent 20px
      );
  }

  .section-divider--works::before {
    top: 14px;
  }

  .section-divider--works::after {
    bottom: 14px;
  }

  .section-title {
    font-size: 5.5rem;
    margin-bottom: 42px;
  }

  .works-list {
    max-width: 720px;
    margin: 0 auto;
    padding: 0;
    gap: 30px;
  }

  .works-link__title {
    font-size: 1.45rem;
  }

  .works-link__meta {
    font-size: 0.95rem;
    margin-top: 2px;
  }

  .about__body {
    max-width: 720px;
    margin: 0 auto;
    padding: 0;
  }

  .about__text {
    font-size: 1.05rem;
  }

  .contact {
    padding-top: 96px;
  }

  .contact-button {
    min-width: 220px;
    min-height: 58px;
    font-size: 1rem;
  }

  .site-footer {
    padding-top: 110px;
  }

  .site-footer__copy {
    font-size: 0.85rem;
  }

  .site-footer__links {
    font-size: 0.78rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .fade-up,
  .fade-up.is-visible,
  .hero-fade,
  .hero-fade.is-visible,
  .typewriter,
  .typewriter.is-visible,
  .ripple,
  .ripple--click,
  .ripple--move {
    transition: none !important;
    animation: none !important;
    transform: none !important;
    opacity: 1 !important;
  }
}






/* works用 */
.site-wrap--detail {
  max-width: 920px;
}

.detail-header {
  padding-top: 8px;
}

.detail-back {
  display: inline-block;
  font-size: 0.82rem;
  color: var(--subtext);
  transition: color 0.28s ease;
}

.detail-back:hover,
.detail-back:focus-visible {
  color: var(--accent);
}

.works-detail {
  padding-top: 56px;
}

.works-intro {
  text-align: left;
}

.works-intro__num {
  margin: 0 0 10px;
  font-size: 0.82rem;
  color: var(--subtext);
}

.works-intro__title {
  margin: 0;
  font-size: 2rem;
  font-weight: 400;
  line-height: 1.2;
  letter-spacing: 0.01em;
}

.works-intro__meta {
  margin: 14px 0 0;
  font-size: 0.9rem;
  color: var(--subtext);
}

.works-intro__lead {
  margin: 28px 0 0;
  max-width: 640px;
  font-size: 0.95rem;
  line-height: 1.9;
}

.works-visual img {
  width: 100%;
  height: auto;
  display: block;
}

.works-section__title {
  margin: 0 0 24px;
  font-size: 1.25rem;
  font-weight: 400;
  line-height: 1.3;
}

.works-section__body p {
  margin: 0;
  font-size: 0.92rem;
  line-height: 1.9;
}

.works-section__body p + p {
  margin-top: 18px;
}

.works-overview {
  margin: 0;
}

.works-overview__row {
  display: grid;
  grid-template-columns: 110px 1fr;
  gap: 16px;
  padding: 10px 0;
  border-bottom: 1px solid rgba(28, 28, 28, 0.08);
}

.works-overview__row dt {
  color: var(--subtext);
}

.works-overview__row dd {
  margin: 0;
}

.works-notes {
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding-left: 1.2em;
}

.works-notes li {
  list-style: disc;
  font-size: 0.92rem;
  line-height: 1.9;
}

.works-gallery {
  display: flex;
  flex-direction: column;
  gap: 32px;
}

.works-gallery__item {
  margin: 0;
}

.works-gallery__item img {
  width: 100%;
  display: block;
}

.works-gallery__item figcaption {
  margin-top: 12px;
  font-size: 0.84rem;
  color: var(--subtext);
  line-height: 1.8;
}

.works-footer-nav {
  padding-top: 72px;
  text-align: center;
}

@media (min-width: 768px) {
  .works-detail {
    padding-top: 72px;
  }

  .works-intro__title {
    font-size: 3rem;
  }

  .works-intro__lead,
  .works-section__body p,
  .works-notes li {
    font-size: 1rem;
  }

  .works-section__title {
    font-size: 1.5rem;
    margin-bottom: 28px;
  }

  .works-gallery {
    gap: 40px;
  }
}
