:root {
  --green: #216653;
  --ink: #20352d;
  --muted: #63756b;
  --paper: #faf8f2;
  --line: #dddcd0;
  --orange: #e8a259;
  --light: #e9f1e9;
  font-family:
    "Noto Sans JP",
    system-ui,
    -apple-system,
    sans-serif;
  color: var(--ink);
  background: var(--paper);
  line-height: 1.7;
  font-synthesis: none;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
}
a {
  color: var(--green);
  text-underline-offset: 4px;
}
button,
input,
textarea,
select {
  font: inherit;
}
button,
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 20px;
  min-height: 46px;
  border: 1px solid transparent;
  border-radius: 12px;
  background: var(--green);
  color: white;
  cursor: pointer;
  font-weight: 650;
  text-decoration: none;
  line-height: 1.4;
}
button:hover,
.button:hover {
  filter: brightness(0.94);
}
button:focus-visible,
a:focus-visible,
input:focus-visible,
textarea:focus-visible,
select:focus-visible {
  outline: 3px solid var(--orange);
  outline-offset: 3px;
}
button:disabled {
  opacity: 0.5;
  cursor: wait;
}
.secondary {
  background: white;
  color: var(--green);
  border-color: var(--line);
}
.danger {
  color: #a73535;
  background: #fff4f2;
  border-color: #edd2cc;
}
.small {
  padding: 8px 12px;
  min-height: 38px;
  font-size: 0.85rem;
}
.row {
  display: flex;
  gap: 12px;
  align-items: center;
  flex-wrap: wrap;
}
.spread {
  justify-content: space-between;
}
.muted {
  color: var(--muted);
}
.eyebrow {
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0.16em;
  color: var(--green);
  text-transform: uppercase;
}
.badge {
  display: inline-block;
  padding: 3px 9px;
  border-radius: 20px;
  font-size: 0.75rem;
  background: var(--light);
  color: var(--green);
}
header {
  max-width: 1120px;
  margin: auto;
  padding: 24px 32px;
  display: flex;
  align-items: center;
  gap: 18px;
  flex-wrap: wrap;
}
.brand {
  font-weight: 850;
  font-size: 1.5rem;
  display: flex;
  gap: 4px;
  align-items: center;
  text-decoration: none;
  color: var(--ink);
  white-space: nowrap;
}
.brand-icon {
  display: grid;
  place-items: center;
  background: var(--green);
  color: var(--paper);
  border-radius: 12px;
  width: 38px;
  height: 38px;
  margin-right: 7px;
}
.brand-dot {
  color: #ce792a;
}
.edition {
  font-size: 0.74rem;
  color: var(--muted);
}
header nav {
  flex-wrap: wrap;
  justify-content: flex-end;
  margin-left: auto;
  display: flex;
  gap: 8px;
}
main {
  max-width: 1060px;
  margin: 24px auto 0;
  padding: 0 32px 50px;
  min-height: 60vh;
}
h1,
h2,
h3 {
  line-height: 1.45;
  letter-spacing: 0.02em;
}
h1 {
  font-size: clamp(1.9rem, 4.5vw, 3.4rem);
  margin: 14px 0 22px;
}
h2 {
  font-size: 1.4rem;
  margin-top: 0;
}
h3 {
  font-size: 1.05rem;
}
.hero {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
  padding: 25px 0 40px;
}
.hero p {
  max-width: 32em;
}
.hero-art {
  position: relative;
  padding: 20px;
}
.photo-card {
  background: white;
  padding: 14px 14px 36px;
  border-radius: 8px;
  box-shadow: 0 12px 34px #283b201c;
  transform: rotate(4deg);
  border: 1px solid #eeece1;
}
.photo-card img {
  width: 100%;
  aspect-ratio: 4/3;
  object-fit: cover;
  display: block;
  border-radius: 3px;
}
.bubble {
  position: absolute;
  left: -12px;
  bottom: 20px;
  max-width: 250px;
  padding: 15px 20px;
  background: var(--green);
  color: white;
  border-radius: 18px 18px 18px 2px;
  box-shadow: 0 8px 20px #1d493220;
  font-size: 0.95rem;
}
.hero-sub {
  font-size: 1.03rem;
  color: var(--muted);
}
.three {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}
.card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 26px;
  margin: 0 0 18px;
}
.card.warm {
  background: #f1eddc;
}
.card h3 {
  margin-top: 0;
}
.num {
  font-size: 0.85rem;
  color: #b57b3e;
  display: block;
  margin-bottom: 8px;
  font-weight: 800;
}
.forms {
  max-width: 600px;
  margin: 22px auto;
}
.field {
  display: block;
  margin: 15px 0;
}
.field > span {
  display: block;
  font-size: 0.88rem;
  font-weight: 650;
  margin-bottom: 6px;
}
input:not([type="checkbox"]),
textarea,
select {
  width: 100%;
  min-width: 0;
  padding: 12px;
  border: 1px solid #cdd4ca;
  border-radius: 10px;
  background: #fff;
  color: var(--ink);
}
textarea {
  resize: vertical;
  min-height: 130px;
  line-height: 1.85;
}
input[type="checkbox"] {
  width: 20px;
  height: 20px;
  accent-color: var(--green);
  flex: none;
}
.check {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  font-size: 0.88rem;
  margin: 20px 0;
}
.error {
  color: #a73535;
  background: #fff0eb;
  padding: 12px;
  border-radius: 10px;
}
.help {
  font-size: 0.84rem;
  color: var(--muted);
}
.tabs {
  display: flex;
  gap: 8px;
  margin: 16px 0 25px;
  flex-wrap: wrap;
}
.tabs a {
  padding: 9px 15px;
  border-radius: 20px;
  text-decoration: none;
}
.tabs .active {
  color: white;
  background: var(--green);
}
.home-title {
  font-size: 2rem;
}
.banner {
  padding: 26px;
  background: var(--green);
  color: #fff;
  border-radius: 22px;
  margin: 24px 0;
}
.banner .secondary {
  background: #faf8f2;
}
.banner p {
  color: #daebdf;
}
.list {
  display: grid;
  gap: 12px;
}
.list-item {
  padding: 17px 20px;
  border: 1px solid var(--line);
  background: white;
  border-radius: 14px;
  display: block;
  text-decoration: none;
  color: var(--ink);
}
.list-item:hover {
  border-color: var(--green);
}
.list-item p {
  margin: 4px 0 0;
  font-size: 0.9rem;
  color: var(--muted);
}
.grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 16px;
}
.grid img {
  width: 100%;
  height: 140px;
  object-fit: cover;
  border-radius: 10px;
  background: #eef0e8;
}
.grid .card {
  padding: 12px;
}
.work {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 28px;
}
.work-photo {
  width: 100%;
  max-height: 460px;
  object-fit: contain;
  background: #eaece4;
  border-radius: 14px;
}
.sticky {
  position: sticky;
  top: 18px;
  align-self: start;
}
.chips {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin: 16px 0;
}
.chip {
  border: 1px solid #d7dbcd;
  border-radius: 10px;
  padding: 7px 10px;
  background: #f1f4ec;
  color: var(--ink);
  font-size: 0.88rem;
  display: flex;
  gap: 8px;
  align-items: center;
}
.chip button {
  background: transparent;
  color: var(--muted);
  padding: 2px;
  min-height: 28px;
}
.step {
  font-size: 0.8rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  color: #966c38;
}
.prose {
  white-space: pre-wrap;
  font-size: 1.1rem;
  line-height: 2.1;
  padding: 22px;
  background: #f5f3e9;
  border-radius: 14px;
  overflow-wrap: anywhere;
}
.secret {
  font-family: ui-monospace, monospace;
  word-break: break-all;
  background: #f1f4ec;
  padding: 15px;
  border-radius: 10px;
  font-size: 0.9rem;
  user-select: all;
}
.alert {
  border-left: 4px solid var(--orange);
  padding: 12px 18px;
  background: #fff6e9;
  margin: 20px 0;
}
.meter {
  height: 8px;
  border-radius: 8px;
  background: #e5e9df;
  overflow: hidden;
}
.meter > div {
  height: 100%;
  background: var(--green);
}
.member {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  border-bottom: 1px solid #eeeee5;
  padding: 12px 0;
}
.rating {
  background: #f1f4ec;
  color: var(--green);
  border: 2px solid transparent;
  font-size: 1.4rem;
  width: 70px;
}
.rating.selected {
  border-color: var(--green);
}
.empty {
  text-align: center;
  padding: 24px;
  color: var(--muted);
}
footer {
  border-top: 1px solid var(--line);
  padding: 28px 24px;
  text-align: center;
  color: var(--muted);
  font-size: 0.85rem;
}
footer p {
  margin: 0 0 12px;
}
footer nav {
  display: flex;
  justify-content: center;
  gap: 22px;
  flex-wrap: wrap;
  margin-bottom: 12px;
}
footer small {
  font-size: 0.75rem;
}
.loading {
  text-align: center;
  padding: 80px;
}
#toast {
  position: fixed;
  bottom: 28px;
  left: 50%;
  transform: translateX(-50%);
  background: #203c32;
  color: white;
  padding: 12px 22px;
  border-radius: 12px;
  max-width: 90vw;
  z-index: 10;
}
dialog {
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 25px;
  max-width: min(600px, 92vw);
  max-height: 85vh;
  overflow: auto;
}
dialog::backdrop {
  background: #102c2170;
}
.legal {
  max-width: 750px;
  margin: 35px auto;
}
.legal h1 {
  font-size: 2rem;
}
.legal h2 {
  margin-top: 30px;
}
.legal p,
.legal li {
  font-size: 0.95rem;
}
progress {
  width: 100%;
  height: 15px;
}
[hidden] {
  display: none !important;
}
@media (max-width: 700px) {
  header {
    padding: 18px;
    gap: 10px;
    flex-wrap: wrap;
  }
  .edition {
    font-size: 0.65rem;
  }
  header nav {
    width: 100%;
    justify-content: flex-end;
  }
  main {
    padding: 0 18px 32px;
    margin-top: 10px;
  }
  .hero {
    grid-template-columns: 1fr;
    gap: 12px;
    padding-top: 10px;
  }
  .hero-art {
    max-width: 420px;
    margin: 0 auto 22px;
    padding: 15px 20px;
  }
  .hero h1 {
    font-size: 2.2rem;
  }
  .hero-sub {
    font-size: 0.95rem;
  }
  .three {
    grid-template-columns: 1fr;
  }
  .card {
    padding: 20px;
  }
  .work {
    grid-template-columns: 1fr;
  }
  .sticky {
    position: static;
  }
  .work-photo {
    max-height: 300px;
  }
  .banner {
    padding: 22px;
  }
  .grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .grid img {
    height: 125px;
  }
  .row > input {
    flex: 1;
  }
  .home-title {
    font-size: 1.7rem;
  }
}
.section-heading {
  margin-top: 30px;
}
[data-space="large"] {
  margin-top: 22px;
}
[data-space="medium"] {
  margin-top: 20px;
}

/* Reserve a small, clipped area while Google's button styles and iframe load. */
.google-login {
  width: 280px;
  max-width: 100%;
  height: 44px;
  overflow: hidden;
  position: relative;
  contain: layout paint;
}
.google-login > * {
  visibility: hidden;
}
.google-login.google-ready > * {
  visibility: visible;
}
