body.aa-front-page {
  background: #f4f0ea;
  margin: 0;
}

body.aa-front-page .wp-site-blocks {
  background: #f4f0ea;
  padding-top: 0;
  padding-bottom: 0;
  min-height: 100vh;
}

.aa-front {
  --paper: #f4f0ea;
  --ink: #364350;
  --muted: #ae9d96;
  --line: #c9b8b1;
  width: min(1120px, calc(100% - 48px));
  margin: 0 auto;
  min-height: 100vh;
  padding: 28px 0 36px;
  display: flex;
  flex-direction: column;
  background: var(--paper);
  color: var(--ink);
  font-family: "Hiragino Mincho ProN", "Yu Mincho", "YuMincho", "Times New Roman", serif;
  box-sizing: border-box;
}

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

.aa-front header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
}

.aa-front .brand {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 8px;
  color: inherit;
  text-decoration: none;
  flex: 0 0 auto;
}

.aa-front .brand img {
  width: 148px;
  height: auto;
  display: block;
}

.aa-front .tagline {
  margin: 0;
  font-size: 11px;
  letter-spacing: 0.08em;
  color: var(--ink);
}

.aa-front nav {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  flex-wrap: wrap;
  gap: 14px 18px;
  font-family: "Hiragino Sans", "Hiragino Kaku Gothic ProN", "Yu Gothic", sans-serif;
  font-size: 13px;
  letter-spacing: 0.06em;
}

.aa-front .nav-item,
.aa-front .icon-btn,
.aa-front .login {
  color: var(--ink);
  background: transparent;
  border: 0;
  padding: 0;
  font: inherit;
  letter-spacing: inherit;
}

.aa-front .icon-btn {
  width: 28px;
  height: 28px;
  display: grid;
  place-items: center;
}

.aa-front .icon-btn svg {
  width: 16px;
  height: 16px;
  stroke: var(--ink);
  fill: none;
  stroke-width: 1.4;
}

.aa-front .login {
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 7px 16px;
  color: #8d746c;
  letter-spacing: 0.08em;
}

.aa-front .hero {
  flex: 1;
  display: grid;
  grid-template-columns: minmax(280px, 0.86fr) minmax(320px, 1.14fr);
  gap: 20px 36px;
  align-items: center;
  padding: 54px 8px 28px;
}

.aa-front .eyebrow,
.aa-front .closing p,
.aa-front .scroll span {
  font-family: "Hiragino Sans", "Hiragino Kaku Gothic ProN", "Yu Gothic", sans-serif;
  color: var(--muted);
  letter-spacing: 0.22em;
  font-size: 11px;
  margin: 0;
}

.aa-front .eyebrow {
  margin: 0 0 22px;
}

.aa-front h1 {
  margin: 0 0 22px;
  font-weight: 500;
  font-size: clamp(2rem, 3.5vw, 3.05rem);
  line-height: 1.45;
  letter-spacing: 0.06em;
  font-family: "Hiragino Mincho ProN", "Yu Mincho", "YuMincho", "Times New Roman", serif;
  color: var(--ink);
}

.aa-front .lead {
  margin: 0;
  max-width: 28em;
  font-size: 15px;
  line-height: 2;
  letter-spacing: 0.04em;
}

.aa-front .scroll {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 48px;
}

.aa-front .scroll-mark {
  width: 22px;
  height: 22px;
  border: 1px solid var(--line);
  border-radius: 50%;
  position: relative;
  flex: 0 0 auto;
}

.aa-front .scroll-mark::before {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--line);
  transform: translate(-50%, -50%);
}

.aa-front .scroll-mark::after {
  content: "";
  position: absolute;
  left: 50%;
  top: calc(100% + 6px);
  width: 1px;
  height: 26px;
  background: var(--line);
  transform: translateX(-50%);
}

.aa-front .photo {
  margin: 0;
  position: relative;
}

.aa-front .photo img {
  width: 100%;
  height: auto;
  display: block;
  -webkit-mask-image: radial-gradient(ellipse 72% 68% at 50% 48%, #000 28%, rgba(0, 0, 0, 0.55) 58%, transparent 78%);
  mask-image: radial-gradient(ellipse 72% 68% at 50% 48%, #000 28%, rgba(0, 0, 0, 0.55) 58%, transparent 78%);
  -webkit-mask-repeat: no-repeat;
  mask-repeat: no-repeat;
  -webkit-mask-size: 100% 100%;
  mask-size: 100% 100%;
  -webkit-mask-position: center;
  mask-position: center;
}

.aa-front .photo::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: radial-gradient(ellipse 70% 66% at 50% 48%, transparent 30%, rgba(244, 240, 234, 0.35) 58%, var(--paper) 78%);
}

.aa-front .closing {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  padding-bottom: 8px;
}

.aa-front .closing-rule {
  width: 1px;
  height: 36px;
  background: var(--line);
}

.aa-front .nav-cluster {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  flex-wrap: wrap;
  gap: 14px 18px;
  font-family: "Hiragino Sans", "Hiragino Kaku Gothic ProN", "Yu Gothic", sans-serif;
  font-size: 13px;
  letter-spacing: 0.06em;
}

.aa-front .footer-about {
  display: none;
}

.aa-front .menu-toggle {
  display: none;
  width: 36px;
  height: 36px;
  margin: 0;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--ink);
  font: inherit;
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
}

.aa-front .gary {
  width: min(640px, 100%);
  margin: 72px auto 24px;
  display: grid;
  grid-template-columns: 260px minmax(0, 1fr);
  gap: 8px 36px;
  align-items: center;
  justify-content: center;
}

.aa-front .gary-portrait {
  margin: 0;
  width: 260px;
}

.aa-front .gary-portrait img {
  width: 100%;
  height: auto;
  display: block;
  -webkit-mask-image:
    linear-gradient(to right, transparent 0%, #000 10%, #000 90%, transparent 100%),
    linear-gradient(to bottom, transparent 0%, #000 12%, #000 88%, transparent 100%);
  -webkit-mask-size: 100% 100%;
  -webkit-mask-repeat: no-repeat;
  -webkit-mask-composite: source-in;
  mask-image:
    linear-gradient(to right, transparent 0%, #000 10%, #000 90%, transparent 100%),
    linear-gradient(to bottom, transparent 0%, #000 12%, #000 88%, transparent 100%);
  mask-size: 100% 100%;
  mask-repeat: no-repeat;
  mask-composite: intersect;
}

.aa-front .gary-quote {
  margin: 0;
}

.aa-front .gary-quote p {
  margin: 0;
  max-width: 28em;
  font-family: "Hiragino Mincho ProN", "Yu Mincho", "YuMincho", "Times New Roman", serif;
  font-size: 15px;
  font-weight: 300;
  line-height: 2;
  letter-spacing: 0.04em;
  color: var(--ink);
}

.aa-front .gary-quote p.gary-en {
  font-style: italic;
}

.aa-front .gary-quote p.gary-ja {
  margin: 10px 0 0;
  font-size: 13px;
  font-weight: 300;
  font-style: normal;
  line-height: 1.8;
  letter-spacing: 0.04em;
}

.aa-front .gary-quote p.gary-sign {
  margin: 14px 0 0;
  max-width: none;
  font-family: "Hiragino Sans", "Hiragino Kaku Gothic ProN", "Yu Gothic", sans-serif;
  font-size: 11px;
  font-weight: 400;
  line-height: 1.6;
  letter-spacing: 0.06em;
  font-style: normal;
  color: #ae9d96;
}

@media (max-width: 860px) {
  .aa-front {
    width: min(100% - 32px, 640px);
    padding-top: 22px;
  }

  .aa-front header {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
  }

  .aa-front .brand img {
    width: 110px;
  }

  .aa-front .nav-cluster {
    width: 100%;
    justify-content: flex-start;
  }

  .aa-front .menu-toggle {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    width: auto;
    height: auto;
    font-size: 18px;
  }

  .aa-front .menu-label {
    font-size: 12px;
    letter-spacing: 0.08em;
    line-height: 1;
  }

  .aa-front .login {
    margin-left: auto;
    font-size: 11px;
    padding: 4px 10px;
    letter-spacing: 0.06em;
    color: #b0a199;
    border-color: #e0d6cf;
  }

  .aa-front nav {
    display: none;
    flex-basis: 100%;
    justify-content: flex-start;
  }

  .aa-front nav.is-open {
    display: flex;
  }

  .aa-front .nav-about {
    display: none;
  }

  .aa-front .hero {
    grid-template-columns: 1fr;
    padding: 36px 0 24px;
    gap: 8px;
  }

  .aa-front h1 {
    margin-bottom: 16px;
    font-family: "Shippori Mincho", "Hiragino Mincho ProN", serif;
    font-weight: 400;
    font-size: calc(1.85rem * 0.95);
  }

  .aa-front .h1-line2 {
    display: inline-block;
    margin-left: 0.5em;
  }

  .aa-front .lead {
    margin-left: calc(0.5 * 1.85rem * 0.95 + 59.61px);
    font-size: 14.5px;
    line-height: 1.75;
  }

  .aa-front .scroll {
    margin-top: 32px;
  }

  .aa-front .photo {
    margin-top: 12px;
  }

  .aa-front .closing p.closing-en {
    letter-spacing: 0.08em;
    white-space: nowrap;
    text-align: center;
  }

  .aa-front .closing .footer-about {
    display: block;
    margin: 18px 0 0;
    font-family: "Hiragino Sans", "Hiragino Kaku Gothic ProN", "Yu Gothic", sans-serif;
    color: var(--muted);
    font-size: 12px;
    letter-spacing: 0.08em;
  }

  .aa-front .gary {
    width: 100%;
    grid-template-columns: 1fr;
    justify-items: center;
    gap: 22px;
    margin-top: 48px;
    margin-bottom: 8px;
  }

  .aa-front .gary-quote {
    width: 100%;
    text-align: center;
  }

  .aa-front .gary-quote p.gary-en {
    text-wrap: balance;
  }

  .aa-front .gary-en-rest {
    display: inline;
    padding-left: 0;
  }

  .aa-front .gary-break {
    display: none;
  }
}

@media (min-width: 861px) {
  .aa-front .gary-en-rest {
    display: inline-block;
    padding-left: calc(0.85em + 40px);
  }
}
