:root {
  color-scheme: dark;
  --ink: #e9f1fb;
  --muted: #a9bed7;
  --paper: #081629;
  --surface: #0f2340;
  --surface-raised: #173253;
  --white: #f4f8ff;
  --green: #91c2ff;
  --green-dark: #285990;
  --line: #29496d;
  --gold: #b7d4fa;
  --syntax-cyan: #67e8f9;
  --syntax-green: #8bd49c;
  --syntax-purple: #c4a7ff;
  --syntax-comment: #7893b2;
  --mono: "Cascadia Code", "Consolas", "SFMono-Regular", monospace;
  --serif: "Yu Mincho", "Hiragino Mincho ProN", "Noto Serif JP", serif;
  --sans: "Yu Gothic", "Hiragino Kaku Gothic ProN", "Noto Sans JP", sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background-color: var(--paper);
  background-image:
    linear-gradient(rgba(103, 232, 249, .025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(103, 232, 249, .025) 1px, transparent 1px);
  background-size: 32px 32px;
  font-family: var(--sans);
  line-height: 1.8;
  -webkit-font-smoothing: antialiased;
}

a {
  color: inherit;
  text-decoration: none;
}

.wrap {
  width: min(1120px, calc(100% - 48px));
  margin: 0 auto;
}

.site-header {
  position: relative;
  padding: 25px 0 22px;
  border-top: 2px solid var(--syntax-cyan);
  background: var(--surface);
  border-bottom: 1px solid var(--line);
}

.site-header::before {
  position: absolute;
  top: 2px;
  right: 0;
  left: 0;
  display: flex;
  height: 23px;
  align-items: center;
  padding: 0 18px 0 max(18px, calc((100% - 1120px) / 2));
  color: var(--syntax-green);
  background: #06101e;
  border-bottom: 1px solid var(--line);
  content: "ssh motohashi@iwamotocho:~  |  Linux  |  vim [NORMAL]";
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: .04em;
}

.site-header::after {
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  display: flex;
  height: 20px;
  align-items: center;
  justify-content: flex-end;
  padding: 0 max(18px, calc((100% - 1120px) / 2));
  color: var(--syntax-cyan);
  background: #06101e;
  content: "[NORMAL]    UTF-8    LF    1:1";
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: .05em;
}

.header-inner,
.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 24px;
}

.footer-inner {
  align-items: flex-start;
  flex-direction: column;
  justify-content: flex-start;
  gap: 8px;
}

.footer-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 20px;
  margin: 8px 0;
}

.footer-nav a {
  color: var(--muted);
  transition: color .2s ease;
}

.footer-nav a:hover,
.footer-nav a:focus-visible {
  color: var(--green);
}

.footer-nav a:focus-visible {
  outline: 2px solid var(--green);
  outline-offset: 4px;
}

.footer-inner > p:last-child {
  margin-top: 6px;
}

.header-inner {
  min-height: 82px;
}

.brand {
  display: inline-flex;
  flex-direction: column;
  color: var(--green);
  line-height: 1.25;
  white-space: nowrap;
}

.brand-name {
  font-family: var(--serif);
  font-size: 23px;
  font-weight: 700;
  letter-spacing: .12em;
}

.brand-caption {
  margin-top: 5px;
  color: var(--muted);
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: .16em;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: clamp(16px, 3vw, 32px);
  font-size: 14px;
}

.main-nav a:hover,
.text-link:hover,
.nav-dropdown summary:hover {
  color: var(--green);
}

.main-nav > a[aria-current="page"],
.nav-dropdown-menu a[aria-current="page"] {
  color: var(--green);
  text-decoration: underline;
  text-decoration-color: #9dc5f2;
  text-decoration-thickness: 2px;
  text-underline-offset: 6px;
}

.nav-dropdown.current-page > summary {
  color: var(--green);
  text-decoration: underline;
  text-decoration-color: #9dc5f2;
  text-decoration-thickness: 2px;
  text-underline-offset: 6px;
}

.main-nav > .nav-contact[aria-current="page"] {
  color: var(--white);
  background: var(--green-dark);
  border-color: var(--green-dark);
  text-decoration: none;
}

.nav-dropdown {
  position: relative;
}

.nav-dropdown summary {
  color: var(--ink);
  cursor: pointer;
  list-style: none;
}

.nav-dropdown summary::-webkit-details-marker {
  display: none;
}

.nav-dropdown summary::after {
  display: inline-block;
  margin-left: 7px;
  border-right: 1px solid currentColor;
  border-bottom: 1px solid currentColor;
  width: 6px;
  height: 6px;
  content: "";
  transform: translateY(-2px) rotate(45deg);
}

.nav-dropdown-menu {
  position: absolute;
  top: calc(100% + 15px);
  left: -16px;
  z-index: 5;
  display: grid;
  min-width: 230px;
  padding: 8px;
  background: var(--surface);
  border: 1px solid var(--line);
  box-shadow: 0 12px 30px rgba(0, 0, 0, .35);
}

.nav-dropdown-menu a {
  padding: 10px 12px;
  font-size: 12px;
  white-space: nowrap;
}

.nav-dropdown-menu a:hover {
  color: var(--green);
  background: var(--paper);
}

.nav-dropdown-menu .nav-dropdown-group + .nav-dropdown-group {
  border-top: 1px solid var(--line);
}

.nav-dropdown-heading {
  display: block;
  padding: 9px 12px 3px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
}

.nav-contact {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  padding: 0 16px;
  color: var(--white);
  background: var(--green-dark);
  font-size: 12px;
  transition: background .2s ease;
}

.nav-contact:hover {
  color: var(--white);
  background: #315f96;
}

.eyebrow,
.section-label {
  color: var(--green);
  font-family: var(--mono);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .18em;
}

.section-label::before {
  margin-right: 8px;
  color: var(--syntax-comment);
  content: "//";
  letter-spacing: 0;
}

.page-hero .eyebrow::before {
  margin-right: 8px;
  color: var(--syntax-green);
  content: ">";
}

.property-card,
.post-card,
.business-item,
.contact-form,
.maintenance-card {
  border-top: 2px solid var(--syntax-cyan);
  box-shadow: inset 0 1px 0 rgba(103, 232, 249, .08);
}

.overview,
.company-table {
  border-color: var(--line);
}

.site-footer {
  border-top: 1px solid var(--line);
}

.footer-nav a {
  font-family: var(--mono);
}

.property-hero {
  position: relative;
  display: flex;
  align-items: end;
  min-height: 410px;
  overflow: hidden;
  color: var(--white);
  background:
    repeating-linear-gradient(90deg, transparent 0 74px, rgba(255,255,255,.11) 74px 76px),
    repeating-linear-gradient(0deg, transparent 0 52px, rgba(255,255,255,.1) 52px 54px),
    linear-gradient(120deg, #20446f, #6d91bc);
}

.property-hero.residence {
  background:
    repeating-linear-gradient(90deg, transparent 0 86px, rgba(255,255,255,.13) 86px 88px),
    repeating-linear-gradient(0deg, transparent 0 62px, rgba(255,255,255,.11) 62px 64px),
    linear-gradient(120deg, #315c8d, #91afd2);
}

.property-hero::after {
  position: absolute;
  inset: 45% 0 0;
  background: linear-gradient(0deg, rgba(13, 35, 67, .58), transparent);
  content: "";
}

.page-hero {
  display: block;
  min-height: 280px;
  padding: 64px 0 38px;
}

.page-hero > .wrap {
  padding: 0;
}

.page-hero > .wrap > .eyebrow {
  margin: 0 0 12px;
  font-size: 11px;
}

.page-hero > .wrap > h1 {
  margin: 0 0 10px;
  font-size: clamp(30px, 5vw, 48px);
}

.hero-content {
  position: relative;
  z-index: 1;
  padding: 66px 0 58px;
}

.eyebrow {
  margin: 0 0 15px;
  color: #d3e6ff;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

.property-hero h1 {
  margin-bottom: 12px;
  font-family: var(--serif);
  font-size: clamp(34px, 5vw, 56px);
  font-weight: 500;
  letter-spacing: .06em;
  line-height: 1.45;
}

.hero-subtitle {
  margin: 0;
  color: rgba(255,255,255,.82);
  font-size: 14px;
  letter-spacing: .08em;
}

.breadcrumbs {
  padding: 17px 0;
  color: var(--muted);
  font-size: 11px;
}

.breadcrumbs span {
  margin: 0 9px;
  color: #a3adaa;
}

.content-section {
  padding: 60px 0 80px;
  background: var(--surface);
}

.content-section h2 {
  margin-bottom: 18px;
  font-family: var(--serif);
  font-size: clamp(25px, 3vw, 34px);
  font-weight: 500;
  letter-spacing: .05em;
}

.lead {
  max-width: 760px;
  margin-bottom: 42px;
  color: var(--muted);
  font-size: 14px;
  line-height: 2.2;
}

.overview {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  border-top: 1px solid var(--line);
  border-left: 1px solid var(--line);
}

.overview-item {
  min-height: 98px;
  padding: 19px 22px;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.overview-item dt {
  margin-bottom: 7px;
  color: var(--muted);
  font-size: 11px;
  letter-spacing: .08em;
}

.overview-item dd {
  margin: 0;
  font-size: 14px;
  font-weight: 600;
}

.availability-note {
  margin: 16px 0 0;
  color: var(--muted);
  font-size: 12px;
}

.source-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 20px;
  color: var(--green);
  font-size: 13px;
  font-weight: 600;
}

.source-link:hover {
  color: var(--green-dark);
  text-decoration: underline;
  text-underline-offset: 4px;
}

.inquiry {
  padding: 58px 0;
  text-align: center;
  background: var(--surface-raised);
}

.inquiry h2 {
  margin-bottom: 10px;
  font-family: var(--serif);
  font-size: clamp(23px, 3vw, 32px);
  font-weight: 500;
  letter-spacing: .05em;
}

.inquiry p {
  margin-bottom: 22px;
  color: var(--muted);
  font-size: 13px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 25px;
  color: var(--white);
  background: var(--green-dark);
  font-size: 13px;
  transition: background .2s ease;
}

.button:hover {
  background: #315f96;
}

.site-footer {
  padding: 26px 0;
  color: rgba(255,255,255,.78);
  background: #06101e;
  font-size: 11px;
}

.footer-brand {
  color: var(--white);
  font-family: var(--serif);
  font-size: 15px;
  letter-spacing: .1em;
}

.site-footer p {
  margin: 0;
}

.footer-address {
  margin: 0;
  color: rgba(255,255,255,.78);
  font-size: 11px;
  font-style: normal;
}

.back-to-top,
.home-button {
  position: fixed;
  right: 24px;
  bottom: 24px;
  z-index: 10;
  display: flex;
  width: 56px;
  height: 56px;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: var(--white);
  background: var(--green-dark);
  border: 1px solid rgba(255,255,255,.35);
  border-radius: 50%;
  box-shadow: 0 4px 14px rgba(0, 0, 0, .45);
  font-size: 11px;
  line-height: 1.15;
  transition: background .2s ease, transform .2s ease;
}

.home-button {
  bottom: 92px;
}

.back-to-top:hover,
.home-button:hover {
  color: var(--white);
  background: var(--green);
  transform: translateY(-2px);
}

.back-to-top span,
.home-button span {
  font-size: 9px;
  letter-spacing: .08em;
}

.home-button svg {
  width: 16px;
  height: 16px;
  margin-bottom: 2px;
}

.back-to-top:focus-visible,
.home-button:focus-visible {
  outline: 3px solid #9dc5f2;
  outline-offset: 3px;
}

@media (max-width: 760px) {
  .wrap {
    width: min(100% - 36px, 560px);
  }

  .header-inner {
    min-height: 72px;
    gap: 8px;
    flex-wrap: wrap;
    padding: 12px 0;
  }

  .site-header {
    padding-bottom: 20px;
  }

  .site-header::before {
    padding-left: 18px;
    font-size: 10px;
  }

  .site-header::after {
    padding-right: 18px;
  }

  .brand-name {
    font-size: 17px;
  }

  .main-nav {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    width: 100%;
    align-items: stretch;
    justify-content: initial;
    gap: 8px;
    font-size: 12px;
  }

  .main-nav > a,
  .nav-dropdown {
    display: flex;
    min-width: 0;
    align-items: center;
    justify-content: center;
    text-align: center;
  }

  .main-nav > a:not(.nav-contact) {
    min-height: 36px;
  }

  .nav-dropdown summary {
    width: 100%;
    text-align: center;
  }

  .nav-contact {
    min-height: 36px;
    padding: 0 5px;
    font-size: 11px;
    white-space: nowrap;
  }

  .nav-dropdown summary {
    font-size: 11px;
    white-space: nowrap;
  }

  .nav-dropdown summary::after {
    margin-left: 5px;
  }

  .nav-dropdown-menu {
    top: calc(100% + 10px);
    left: auto;
    right: 0;
  }

  .property-hero {
    min-height: 350px;
  }

  .page-hero {
    min-height: 230px;
    padding: 44px 0 30px;
  }

  .hero-content {
    padding: 54px 0 45px;
  }

  .content-section {
    padding: 48px 0 60px;
  }

  .overview {
    grid-template-columns: 1fr;
  }

  .footer-inner {
    align-items: flex-start;
    flex-direction: column;
    gap: 7px;
  }

  .back-to-top,
  .home-button {
    right: 16px;
    bottom: 16px;
    width: 50px;
    height: 50px;
  }

  .home-button {
    bottom: 78px;
  }
}

@media (max-width: 380px) {
  .site-header::before {
    content: "ssh motohashi@iwamotocho  |  Linux  |  vim";
    font-size: 9px;
  }

  .site-header::after {
    content: "[NORMAL]   UTF-8   1:1";
    font-size: 9px;
  }
}

@media (max-width: 380px) {
  .brand-name {
    font-size: 15px;
    letter-spacing: .08em;
  }

  .brand-caption {
    font-size: 8px;
    letter-spacing: .1em;
  }

  .nav-dropdown summary {
    font-size: 11px;
  }

}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    transition-duration: .01ms !important;
  }
}
