:root {
  color-scheme: light;
  --canvas: #f6f2e8;
  --canvas-deep: #eee8d9;
  --surface: rgba(255, 253, 247, 0.86);
  --surface-solid: #fffdf7;
  --ink: #193b2b;
  --muted: #6c7b70;
  --line: rgba(37, 89, 58, 0.13);
  --green: #2e7650;
  --green-deep: #1d553a;
  --leaf: #77a95f;
  --sun: #dca95d;
  --shadow: 0 18px 45px rgba(53, 73, 54, 0.1);
  font-family: -apple-system, BlinkMacSystemFont, "Hiragino Kaku Gothic ProN", "Yu Gothic", Meiryo, sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  min-width: 320px;
  background: var(--canvas);
}

body {
  min-width: 320px;
  min-height: 100vh;
  margin: 0;
  color: var(--ink);
  background:
    radial-gradient(circle at 93% 4%, rgba(220, 169, 93, 0.2), transparent 16rem),
    radial-gradient(circle at -4% 48%, rgba(119, 169, 95, 0.14), transparent 19rem),
    var(--canvas);
}

a {
  color: inherit;
}

.site-shell {
  width: min(100%, 760px);
  min-height: 100vh;
  margin: 0 auto;
  padding: max(18px, env(safe-area-inset-top)) 18px max(22px, env(safe-area-inset-bottom));
}

.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 8px 2px 20px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--ink);
  text-decoration: none;
}

.brand-mark {
  display: grid;
  width: 38px;
  height: 38px;
  place-items: center;
  object-fit: contain;
  padding: 4px;
  border-radius: 13px 13px 13px 4px;
  color: #fffaf0;
  background: var(--green);
  box-shadow: 7px 7px 0 rgba(119, 169, 95, 0.27);
  font-family: Georgia, serif;
  font-size: 18px;
  font-weight: 700;
}

.brand-copy {
  display: grid;
  gap: 1px;
}

.brand-kicker {
  color: var(--green);
  font-family: Georgia, serif;
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: lowercase;
}

.brand-name {
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0.04em;
}

.header-message {
  margin: 0;
  color: var(--muted);
  font-size: 11px;
  letter-spacing: 0.04em;
  white-space: nowrap;
}

.welcome-card {
  position: relative;
  min-height: 224px;
  overflow: hidden;
  padding: 30px 26px;
  border-radius: 28px;
  color: #fffdf7;
  background: linear-gradient(135deg, #245c42 0%, #3d8152 62%, #80a968 100%);
  box-shadow: var(--shadow);
  isolation: isolate;
}

.welcome-card::after {
  position: absolute;
  right: -34px;
  bottom: -74px;
  width: 230px;
  height: 180px;
  border: 1px solid rgba(255, 253, 247, 0.25);
  border-radius: 50%;
  content: "";
  transform: rotate(-22deg);
}

.welcome-copy {
  position: relative;
  z-index: 2;
  max-width: 420px;
}

.eyebrow {
  margin: 0 0 11px;
  color: rgba(255, 253, 247, 0.72);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.16em;
}

.eyebrow-dark {
  color: var(--green);
}

h1,
h2,
p {
  margin-top: 0;
}

h1 {
  margin-bottom: 13px;
  font-family: Georgia, "Hiragino Mincho ProN", serif;
  font-size: clamp(29px, 8vw, 45px);
  font-weight: 500;
  letter-spacing: -0.05em;
  line-height: 1.2;
}

h1 em {
  color: #ffe3a7;
  font-style: normal;
}

.welcome-description {
  max-width: 290px;
  margin-bottom: 0;
  color: rgba(255, 253, 247, 0.8);
  font-size: 13px;
  line-height: 1.8;
}

.light-orb {
  position: absolute;
  z-index: 1;
  border-radius: 50%;
  pointer-events: none;
}

.light-orb-one {
  top: -62px;
  right: 32px;
  width: 160px;
  height: 160px;
  background: rgba(255, 222, 155, 0.21);
  filter: blur(1px);
}

.light-orb-two {
  right: -36px;
  bottom: -55px;
  width: 190px;
  height: 190px;
  border: 1px solid rgba(255, 253, 247, 0.22);
}

.leaf-sprig {
  position: absolute;
  right: 31px;
  bottom: 28px;
  z-index: 2;
  color: rgba(255, 253, 247, 0.65);
  font-size: 30px;
  transform: rotate(25deg);
}

.services-section {
  padding: 34px 2px 22px;
}

.section-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 15px;
}

.section-heading h2 {
  margin: 0;
  font-family: Georgia, "Hiragino Mincho ProN", serif;
  font-size: 26px;
  font-weight: 500;
  letter-spacing: -0.04em;
}

.section-note {
  padding-bottom: 4px;
  color: var(--muted);
  font-size: 11px;
}

.app-grid {
  display: grid;
  gap: 12px;
}

.app-card {
  position: relative;
  display: grid;
  grid-template-columns: 48px 1fr auto;
  align-items: center;
  gap: 14px;
  min-height: 92px;
  padding: 15px 15px 15px 16px;
  border: 1px solid var(--line);
  border-radius: 21px;
  background: var(--surface);
  box-shadow: 0 8px 25px rgba(53, 73, 54, 0.05);
  text-decoration: none;
  transition: transform 160ms ease, box-shadow 160ms ease, border-color 160ms ease;
  backdrop-filter: blur(10px);
}

.app-card:not(.is-disabled):hover,
.app-card:not(.is-disabled):focus-visible {
  border-color: rgba(46, 118, 80, 0.38);
  box-shadow: 0 14px 32px rgba(53, 73, 54, 0.12);
  outline: none;
  transform: translateY(-2px);
}

.app-card.is-disabled {
  opacity: 0.65;
  cursor: not-allowed;
}

.app-icon {
  display: grid;
  width: 48px;
  height: 48px;
  padding: 5px;
  place-items: center;
  object-fit: contain;
  border-radius: 16px;
  color: #fffdf7;
  background: var(--green);
  font-family: Georgia, serif;
  font-size: 22px;
  box-shadow: inset 0 -5px 0 rgba(0, 0, 0, 0.08);
}

.app-icon.sun {
  color: #fff9ed;
  background: var(--sun);
}

.app-icon.leaf {
  background: var(--leaf);
}

.app-copy {
  min-width: 0;
}

.app-name {
  display: block;
  margin: 0 0 4px;
  font-size: 16px;
  font-weight: 700;
  letter-spacing: 0.02em;
}

.app-description {
  display: block;
  overflow: hidden;
  margin: 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.5;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.app-state {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  margin-top: 7px;
  color: var(--green);
  font-size: 10px;
  font-weight: 700;
}

.app-state::before {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: currentColor;
  content: "";
}

.app-state.is-pending {
  color: var(--muted);
}

.app-arrow {
  display: grid;
  width: 30px;
  height: 30px;
  place-items: center;
  border-radius: 50%;
  color: var(--green);
  background: rgba(46, 118, 80, 0.09);
  font-size: 18px;
}

.notice-card {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 16px;
  border: 1px solid rgba(220, 169, 93, 0.23);
  border-radius: 19px;
  background: rgba(220, 169, 93, 0.12);
}

.notice-icon {
  display: grid;
  flex: 0 0 30px;
  width: 30px;
  height: 30px;
  place-items: center;
  border-radius: 11px;
  color: #fffdf7;
  background: var(--sun);
  font-size: 16px;
}

.notice-card strong {
  display: block;
  margin: 2px 0 4px;
  font-size: 13px;
}

.notice-card p {
  margin: 0;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.6;
}

.site-footer {
  display: flex;
  justify-content: center;
  gap: 8px;
  padding: 30px 0 4px;
  color: var(--muted);
  font-size: 10px;
  letter-spacing: 0.06em;
}

@media (min-width: 620px) {
  .site-shell {
    padding-right: 28px;
    padding-left: 28px;
  }

  .app-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .app-card {
    grid-template-columns: 48px 1fr;
  }

  .app-arrow {
    position: absolute;
    top: 15px;
    right: 15px;
  }

  .app-copy {
    padding-right: 20px;
  }
}

@media (prefers-color-scheme: dark) {
  :root {
    color-scheme: dark;
    --canvas: #10251b;
    --canvas-deep: #173325;
    --surface: rgba(25, 54, 40, 0.84);
    --surface-solid: #193628;
    --ink: #f1f1df;
    --muted: #a9b8a7;
    --line: rgba(206, 230, 194, 0.14);
    --green: #8fc178;
    --green-deep: #b5d89d;
    --shadow: 0 18px 45px rgba(0, 0, 0, 0.22);
  }

  body {
    background:
      radial-gradient(circle at 93% 4%, rgba(220, 169, 93, 0.13), transparent 16rem),
      radial-gradient(circle at -4% 48%, rgba(119, 169, 95, 0.12), transparent 19rem),
      var(--canvas);
  }

  .brand-mark {
    color: var(--ink);
    background: var(--leaf);
  }

  .app-icon {
    color: #173325;
  }

  .welcome-card {
    background: linear-gradient(135deg, #173f2d 0%, #286342 62%, #5e8552 100%);
  }
}

