/*
Theme Name: RESPY
Theme URI: https://respygraphix.com/
Author: RESPY
Description: RESPYの運営者ポータル用に設計した軽量なオリジナルテーマです。
Version: 1.1.0
Requires at least: 6.5
Requires PHP: 8.1
Text Domain: respy
*/

:root {
  --respy-bg: #f3f5f8;
  --respy-surface: #e9edf3;
  --respy-text: #131820;
  --respy-muted: #56606d;
  --respy-line: #cfd6e0;
  --respy-accent: #1f51d6;
  --respy-accent-ink: #eef3ff;
  --respy-radius: 18px;
  --respy-width: 1240px;
}

@media (prefers-color-scheme: dark) {
  :root {
    --respy-bg: #10141a;
    --respy-surface: #171d25;
    --respy-text: #edf1f7;
    --respy-muted: #a9b3c0;
    --respy-line: #303947;
    --respy-accent: #6f96ff;
    --respy-accent-ink: #101a32;
  }
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--respy-text);
  background: var(--respy-bg);
  font-family:
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    "Noto Sans JP",
    "Hiragino Kaku Gothic ProN",
    "Yu Gothic",
    sans-serif;
  font-size: 17px;
  line-height: 1.75;
  text-rendering: optimizeLegibility;
}

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

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

a:focus-visible,
button:focus-visible {
  outline: 3px solid var(--respy-accent);
  outline-offset: 4px;
}

.screen-reader-text {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.screen-reader-text:focus {
  z-index: 100000;
  top: 12px;
  left: 12px;
  width: auto;
  height: auto;
  padding: 12px 16px;
  clip: auto;
  color: var(--respy-text);
  background: var(--respy-bg);
}

.respy-shell {
  width: min(calc(100% - 64px), var(--respy-width));
  margin-inline: auto;
}

.respy-nav {
  position: sticky;
  z-index: 20;
  top: 0;
  border-bottom: 1px solid color-mix(in srgb, var(--respy-line) 76%, transparent);
  background: color-mix(in srgb, var(--respy-bg) 88%, transparent);
  backdrop-filter: blur(18px);
}

.admin-bar .respy-nav {
  top: 32px;
}

.respy-nav__inner {
  display: flex;
  min-height: 72px;
  align-items: center;
  justify-content: space-between;
  gap: 36px;
}

.respy-brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-size: 19px;
  font-weight: 800;
  letter-spacing: -0.03em;
}

.respy-brand__mark {
  width: 20px;
  height: 20px;
  border-radius: 5px;
  background:
    linear-gradient(135deg, transparent 0 42%, var(--respy-bg) 42% 53%, transparent 53%),
    var(--respy-accent);
}

.respy-menu {
  display: flex;
  align-items: center;
  gap: 28px;
  margin: 0;
  padding: 0;
  list-style: none;
  color: var(--respy-muted);
  font-size: 14px;
  font-weight: 650;
}

.respy-menu a {
  transition: color 180ms ease;
}

.respy-menu a:hover {
  color: var(--respy-text);
}

.respy-hero {
  display: grid;
  min-height: calc(100dvh - 72px);
  grid-template-columns: minmax(0, 0.86fr) minmax(460px, 1.14fr);
  align-items: center;
  gap: clamp(48px, 7vw, 108px);
  padding-block: clamp(64px, 9vw, 112px);
}

.respy-hero__copy {
  max-width: 620px;
}

.respy-hero__label {
  margin: 0 0 24px;
  color: var(--respy-accent);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.respy-hero h1 {
  max-width: 9.5em;
  margin: 0;
  font-size: clamp(48px, 6.2vw, 88px);
  font-weight: 780;
  letter-spacing: -0.065em;
  line-height: 1.04;
}

.respy-hero__lead {
  max-width: 32em;
  margin: 30px 0 0;
  color: var(--respy-muted);
  font-size: clamp(17px, 1.5vw, 20px);
  line-height: 1.9;
}

.respy-button {
  display: inline-flex;
  min-height: 54px;
  align-items: center;
  justify-content: center;
  margin-top: 36px;
  padding: 0 24px;
  border: 1px solid var(--respy-accent);
  border-radius: var(--respy-radius);
  color: var(--respy-accent-ink);
  background: var(--respy-accent);
  font-size: 15px;
  font-weight: 750;
  transition:
    transform 180ms ease,
    filter 180ms ease;
}

.respy-button:hover {
  filter: brightness(1.08);
  transform: translateY(-2px);
}

.respy-button:active {
  transform: translateY(1px);
}

.respy-hero__visual {
  position: relative;
}

.respy-hero__visual::before {
  position: absolute;
  z-index: -1;
  inset: -26px 14% 18% -34px;
  border-radius: var(--respy-radius);
  background: var(--respy-surface);
  content: "";
}

.respy-hero__visual img {
  width: 100%;
  min-height: 560px;
  border-radius: var(--respy-radius);
  object-fit: cover;
  box-shadow: 0 24px 64px color-mix(in srgb, var(--respy-text) 14%, transparent);
}

.respy-section {
  padding-block: clamp(84px, 11vw, 152px);
}

.respy-section + .respy-section {
  border-top: 1px solid var(--respy-line);
}

.respy-section h2 {
  max-width: 13em;
  margin: 0;
  font-size: clamp(36px, 4.8vw, 68px);
  font-weight: 760;
  letter-spacing: -0.055em;
  line-height: 1.1;
}

.respy-section__lead {
  max-width: 42em;
  margin: 28px 0 0;
  color: var(--respy-muted);
  font-size: clamp(17px, 1.4vw, 20px);
}

.respy-about__statement {
  max-width: 17em;
  margin: 0;
  font-size: clamp(29px, 3.8vw, 52px);
  font-weight: 680;
  letter-spacing: -0.045em;
  line-height: 1.32;
}

.respy-about__detail {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(280px, 0.75fr);
  gap: clamp(48px, 10vw, 144px);
  align-items: end;
  margin-top: clamp(64px, 9vw, 112px);
}

.respy-about__detail p {
  max-width: 36em;
  margin: 0;
  color: var(--respy-muted);
  font-size: 18px;
}

.respy-about__note {
  padding: 24px 0 0;
  border-top: 4px solid var(--respy-accent);
  color: var(--respy-text);
  font-size: 15px;
  font-weight: 720;
}

.respy-media {
  display: grid;
  grid-template-columns: minmax(0, 0.92fr) minmax(0, 1.08fr);
  gap: clamp(48px, 8vw, 112px);
  align-items: center;
}

.respy-media__image img {
  width: 100%;
  aspect-ratio: 4 / 3;
  border-radius: var(--respy-radius);
  object-fit: cover;
}

.respy-media__copy {
  padding-block: 24px;
}

.respy-status {
  display: inline-block;
  margin: 26px 0 0;
  padding: 12px 16px;
  border: 1px solid var(--respy-line);
  border-radius: var(--respy-radius);
  color: var(--respy-muted);
  font-size: 14px;
  font-weight: 700;
}

.respy-policy {
  display: grid;
  grid-template-columns: minmax(0, 0.78fr) minmax(0, 1.22fr);
  gap: clamp(56px, 11vw, 152px);
}

.respy-policy__items {
  margin: 0;
}

.respy-policy__item {
  display: grid;
  grid-template-columns: 96px minmax(0, 1fr);
  gap: 24px;
  padding: 28px 0;
  border-bottom: 1px solid var(--respy-line);
}

.respy-policy__item:first-child {
  padding-top: 8px;
}

.respy-policy__term {
  color: var(--respy-accent);
  font-size: 14px;
  font-weight: 800;
}

.respy-policy__item h3 {
  margin: 0;
  font-size: 23px;
  letter-spacing: -0.03em;
}

.respy-policy__item p {
  margin: 10px 0 0;
  color: var(--respy-muted);
}

.respy-contact {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 48px;
}

.respy-contact__link {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  padding-bottom: 8px;
  border-bottom: 2px solid var(--respy-accent);
  color: var(--respy-accent);
  font-size: 18px;
  font-weight: 760;
}

.respy-contact__link::after {
  content: "↗";
}

.respy-footer {
  border-top: 1px solid var(--respy-line);
  padding-block: 34px;
}

.respy-footer__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  color: var(--respy-muted);
  font-size: 13px;
}

.respy-footer__links {
  display: flex;
  gap: 22px;
}

.respy-page {
  width: min(calc(100% - 48px), 840px);
  min-height: 60dvh;
  margin-inline: auto;
  padding-block: 96px 128px;
}

.respy-page h1 {
  margin: 0 0 44px;
  font-size: clamp(40px, 6vw, 68px);
  letter-spacing: -0.05em;
}

.respy-page :where(h2, h3) {
  margin-top: 2.4em;
  line-height: 1.35;
}

.respy-page :where(p, li) {
  color: var(--respy-muted);
}

.respy-contact-form {
  margin-top: 48px;
  padding-top: 48px;
  border-top: 1px solid var(--respy-line);
}

.respy-contact-form__intro {
  max-width: 38em;
  margin: 0 0 40px;
  font-size: 18px;
}

.respy-contact-form form {
  display: grid;
  gap: 28px;
}

.respy-form-field {
  display: grid;
  gap: 10px;
}

.respy-form-field label {
  font-size: 15px;
  font-weight: 750;
}

.respy-form-field label span {
  margin-left: 8px;
  color: var(--respy-accent);
  font-size: 12px;
}

.respy-form-field :where(input, textarea) {
  width: 100%;
  border: 1px solid var(--respy-line);
  border-radius: 12px;
  color: var(--respy-text);
  background: color-mix(in srgb, var(--respy-bg) 82%, white);
  font: inherit;
}

.respy-form-field input {
  min-height: 54px;
  padding: 10px 16px;
}

.respy-form-field textarea {
  min-height: 220px;
  padding: 14px 16px;
  resize: vertical;
}

.respy-form-field :where(input, textarea):focus {
  border-color: var(--respy-accent);
  outline: 3px solid color-mix(in srgb, var(--respy-accent) 18%, transparent);
}

.respy-contact-form__submit {
  width: fit-content;
  margin-top: 4px;
  cursor: pointer;
}

.respy-form-notice {
  margin: 0 0 28px;
  padding: 16px 18px;
  border: 1px solid var(--respy-line);
  border-radius: 12px;
}

.respy-form-notice--success {
  border-color: var(--respy-accent);
}

.respy-form-notice--error {
  border-color: #b42318;
}

.respy-form-honeypot {
  position: absolute;
  left: -9999px;
}

@media (max-width: 900px) {
  .respy-shell {
    width: min(calc(100% - 40px), var(--respy-width));
  }

  .respy-menu {
    gap: 18px;
    font-size: 13px;
  }

  .respy-menu li:nth-child(2),
  .respy-menu li:nth-child(3) {
    display: none;
  }

  .respy-hero,
  .respy-about__detail,
  .respy-media,
  .respy-policy {
    grid-template-columns: 1fr;
  }

  .respy-hero {
    min-height: auto;
    gap: 56px;
    padding-block: 72px 88px;
  }

  .respy-hero__visual img {
    min-height: 0;
    aspect-ratio: 16 / 9;
  }

  .respy-about__detail {
    align-items: start;
  }

  .respy-media__image {
    order: 2;
  }

  .respy-contact {
    align-items: flex-start;
    flex-direction: column;
  }
}

@media (max-width: 600px) {
  .admin-bar .respy-nav {
    top: 46px;
  }

  .respy-shell {
    width: min(calc(100% - 32px), var(--respy-width));
  }

  .respy-nav__inner {
    min-height: 64px;
  }

  .respy-menu li:not(:last-child) {
    display: none;
  }

  .respy-hero {
    padding-block: 56px 72px;
  }

  .respy-hero h1 {
    font-size: clamp(42px, 14vw, 64px);
  }

  .respy-hero__lead {
    font-size: 17px;
  }

  .respy-section {
    padding-block: 76px;
  }

  .respy-policy__item {
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .respy-footer__inner {
    align-items: flex-start;
    flex-direction: column;
  }
}

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

  *,
  *::before,
  *::after {
    transition-duration: 0.01ms !important;
  }
}
