/* TokyoはにわAvenue Next — static site */

:root {
  --forest: #1f4d3a;
  --forest-deep: #143528;
  --leaf: #3a7a58;
  --mist: #eef5f0;
  --sky: #dcece3;
  --ink: #17251f;
  --muted: #5a6e64;
  --paper: #fbfefc;
  --line: rgba(31, 77, 58, 0.14);
  --white: #ffffff;
  --accent: #e06b2c;
  --accent-deep: #c4551c;
  --shadow-soft: 0 18px 50px rgba(20, 53, 40, 0.18);
  --font-display: "Shippori Mincho", "Hiragino Mincho ProN", "Yu Mincho", serif;
  --font-body: "Zen Kaku Gothic New", "Hiragino Sans", "Yu Gothic", sans-serif;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --max: 68rem;
}

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

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  color: var(--ink);
  background:
    radial-gradient(120% 80% at 100% 0%, rgba(220, 236, 227, 0.9), transparent 55%),
    radial-gradient(90% 60% at 0% 100%, rgba(238, 245, 240, 0.95), transparent 50%),
    var(--paper);
  font-family: var(--font-body);
  font-weight: 400;
  line-height: 1.75;
  letter-spacing: 0.02em;
  line-break: strict;
  word-break: normal;
  overflow-wrap: anywhere;
}

.nobr {
  white-space: nowrap;
}

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

a {
  color: var(--forest);
  text-underline-offset: 0.18em;
}

a:hover {
  color: var(--leaf);
}

:focus-visible {
  outline: 2px solid var(--leaf);
  outline-offset: 3px;
}

.skip-link {
  position: absolute;
  left: 1rem;
  top: -4rem;
  z-index: 100;
  padding: 0.6rem 1rem;
  background: var(--white);
  color: var(--forest);
  border-radius: 0.4rem;
  transition: top 0.2s var(--ease);
}

.skip-link:focus {
  top: 1rem;
}

/* ——— Hero ——— */
.hero {
  position: relative;
  min-height: 100svh;
  min-height: 100dvh;
  display: grid;
  align-items: center;
  color: var(--white);
  overflow: hidden;
}

.hero__media {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hero__media picture,
.hero__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 40%;
}

.hero__media img {
  transform: scale(1.04);
  animation: hero-drift 18s var(--ease) both;
}

@keyframes hero-drift {
  from {
    transform: scale(1.08);
    filter: brightness(0.88);
  }
  to {
    transform: scale(1.02);
    filter: brightness(1);
  }
}

.hero__shade {
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    linear-gradient(180deg, rgba(20, 53, 40, 0.28) 0%, rgba(20, 53, 40, 0.18) 38%, rgba(20, 53, 40, 0.72) 100%),
    linear-gradient(90deg, rgba(20, 53, 40, 0.35) 0%, transparent 55%);
  pointer-events: none;
}

.hero__inner {
  position: relative;
  z-index: 2;
  width: min(100% - 2.5rem, var(--max));
  margin: 0 auto;
  padding: 4.5rem 0 5rem;
}

.hero__brand {
  margin: 0 0 1.1rem;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(1.85rem, 5vw, 3.5rem);
  line-height: 1.3;
  letter-spacing: 0.03em;
  opacity: 0;
  animation: rise 0.9s var(--ease) 0.15s forwards;
}

.hero__brand-line {
  display: block;
  white-space: nowrap;
}

.hero__brand-en {
  display: block;
  margin-top: 0.55rem;
  font-family: var(--font-body);
  font-weight: 500;
  font-size: clamp(0.78rem, 1.5vw, 0.95rem);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  opacity: 0.88;
  white-space: nowrap;
}

.hero__status {
  margin: 0 0 0.75rem;
  max-width: 32rem;
  font-family: var(--font-display);
  font-size: clamp(1.2rem, 2.8vw, 1.65rem);
  font-weight: 600;
  letter-spacing: 0.04em;
  line-height: 1.5;
  opacity: 0;
  animation: rise 0.9s var(--ease) 0.28s forwards;
}

.hero__lead {
  margin: 0 0 1.75rem;
  max-width: 32rem;
  font-size: clamp(0.98rem, 2vw, 1.08rem);
  font-weight: 400;
  line-height: 1.85;
  opacity: 0;
  animation: rise 0.9s var(--ease) 0.4s forwards;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 0.9rem;
  opacity: 0;
  animation: rise 0.9s var(--ease) 0.55s forwards;
}

@keyframes rise {
  from {
    opacity: 0;
    transform: translateY(1.1rem);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  min-height: 3rem;
  padding: 0.7rem 1.25rem;
  border-radius: 0.2rem;
  border: 1px solid transparent;
  font-family: inherit;
  font-size: 0.95rem;
  font-weight: 500;
  letter-spacing: 0.03em;
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
  transition: background 0.25s var(--ease), color 0.25s var(--ease), border-color 0.25s var(--ease), transform 0.25s var(--ease);
}

.btn:hover {
  transform: translateY(-1px);
}

.btn--primary {
  background: var(--white);
  color: var(--forest-deep);
}

.btn--primary:hover {
  background: var(--mist);
  color: var(--forest-deep);
}

.btn--ghost {
  background: transparent;
  color: var(--white);
  border-color: rgba(255, 255, 255, 0.55);
}

.btn--ghost:hover {
  background: rgba(255, 255, 255, 0.12);
  color: var(--white);
  border-color: rgba(255, 255, 255, 0.85);
}

.btn--outline {
  background: transparent;
  color: var(--forest);
  border-color: var(--line);
}

.btn--outline:hover {
  background: var(--mist);
  color: var(--forest-deep);
  border-color: var(--leaf);
}

.btn--accent {
  background: var(--accent);
  color: var(--white);
  border-color: var(--accent);
  box-shadow: 0 8px 22px rgba(224, 107, 44, 0.28);
}

.btn--accent:hover {
  background: var(--accent-deep);
  color: var(--white);
  border-color: var(--accent-deep);
}

/* ——— Sections ——— */
.section {
  width: min(100% - 2.5rem, var(--max));
  margin: 0 auto;
  padding: 4.5rem 0;
}

.section__label {
  margin: 0 0 0.85rem;
  color: var(--leaf);
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.section__title {
  margin: 0 0 1.5rem;
  font-family: var(--font-display);
  font-size: clamp(1.4rem, 3vw, 2.05rem);
  font-weight: 600;
  line-height: 1.55;
  letter-spacing: 0.03em;
}

.about {
  display: grid;
  gap: 2.5rem;
}

@media (min-width: 880px) {
  .about {
    grid-template-columns: 1.05fr 0.95fr;
    gap: 3.5rem;
    align-items: center;
  }
}

.about__copy p {
  margin: 0 0 1.15rem;
  color: var(--ink);
  font-size: clamp(0.98rem, 1.5vw, 1.05rem);
  line-height: 1.95;
}

.about__copy p:last-child {
  margin-bottom: 0;
}

.about__meta {
  margin-top: 1.75rem;
  padding-top: 1.35rem;
  border-top: 1px solid var(--line);
  display: grid;
  gap: 0.85rem;
}

.meta-row {
  display: grid;
  grid-template-columns: 6.5rem 1fr;
  gap: 0.75rem;
  font-size: 0.95rem;
}

.meta-row dt {
  margin: 0;
  color: var(--muted);
  font-weight: 500;
  letter-spacing: 0.04em;
}

.meta-row dd {
  margin: 0;
  color: var(--ink);
}

.about__cta {
  margin: 1.75rem 0 0;
}

.about__cta .btn--primary {
  background: var(--forest);
  color: var(--white);
}

.about__cta .btn--primary:hover {
  background: var(--forest-deep);
  color: var(--white);
}

.about__visual {
  position: relative;
  overflow: hidden;
  border-radius: 0.15rem;
  box-shadow: var(--shadow-soft);
  aspect-ratio: 16 / 10;
}

.about__visual img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.contact {
  padding-bottom: 5rem;
}

.contact__panel {
  display: grid;
  gap: 1.5rem;
  padding: 2rem 0 0;
  border-top: 1px solid var(--line);
}

@media (min-width: 720px) {
  .contact__panel {
    grid-template-columns: 1fr auto;
    align-items: end;
    gap: 2rem;
  }
}

.contact__phone {
  margin: 0.35rem 0 0;
}

.contact__phone > a {
  display: inline-block;
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 4vw, 2.5rem);
  font-weight: 600;
  letter-spacing: 0.04em;
  line-height: 1.2;
  color: var(--ink);
  text-decoration: none;
}

.contact__phone > a:hover {
  color: var(--leaf);
}

.contact__phone [data-tel-open] {
  font-family: var(--font-body);
  font-size: 0.95rem;
  font-weight: 500;
  letter-spacing: 0.06em;
}

/* ——— Tel reveal dialog ——— */
.tel-dialog {
  width: min(calc(100% - 2rem), 26rem);
  margin: auto;
  padding: 1.5rem 1.4rem 1.35rem;
  border: 1px solid var(--line);
  border-radius: 0.35rem;
  background: var(--paper);
  color: var(--ink);
  box-shadow: var(--shadow-soft);
}

.tel-dialog::backdrop {
  background: rgba(20, 53, 40, 0.45);
}

.tel-dialog h2 {
  margin: 0 0 1rem;
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  line-height: 1.45;
}

.tel-dialog p {
  margin: 0 0 0.85rem;
  font-size: 0.95rem;
  line-height: 1.75;
  color: var(--ink);
}

.tel-dialog p strong {
  color: var(--forest-deep);
}

.tel-dialog__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
  margin-top: 1.25rem;
}

.tel-dialog__actions .btn {
  flex: 1 1 auto;
  min-height: 2.6rem;
}

.tel-dialog .btn--primary {
  background: var(--forest);
  color: var(--white);
}

.tel-dialog .btn--primary:hover {
  background: var(--forest-deep);
  color: var(--white);
}

.tel-dialog .btn--accent {
  text-decoration: none;
  text-align: center;
}

.contact__main {
  display: grid;
  gap: 1.35rem;
}

.contact__note {
  margin: 0.55rem 0 0;
  color: var(--muted);
  font-size: 0.9rem;
}

.contact__form {
  display: grid;
  gap: 0.55rem;
  justify-items: start;
}

.contact__form-note {
  margin: 0;
  color: var(--muted);
  font-size: 0.86rem;
  line-height: 1.65;
  max-width: 28em;
}

.contact__links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem;
  align-content: start;
}

/* ——— Footer ——— */
.site-footer {
  border-top: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.55);
}

.site-footer__inner {
  width: min(100% - 2.5rem, var(--max));
  margin: 0 auto;
  padding: 1.5rem 0 2rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1.5rem;
  align-items: center;
  justify-content: space-between;
  color: var(--muted);
  font-size: 0.85rem;
}

.site-footer a {
  color: var(--muted);
  text-decoration: none;
}

.site-footer a:hover {
  color: var(--forest);
  text-decoration: underline;
}

.site-footer__meta {
  margin: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem 0.55rem;
  align-items: center;
  justify-content: flex-end;
}

.site-footer__sep {
  color: rgba(90, 110, 100, 0.55);
}

.site-footer__quiet {
  color: rgba(90, 110, 100, 0.72);
  font-size: 0.8rem;
}

.site-footer__quiet:hover {
  color: var(--muted);
}

/* ——— Subpage / policy ——— */
.page-top {
  border-bottom: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.7);
}

.page-top__inner {
  width: min(100% - 2.5rem, var(--max));
  margin: 0 auto;
  padding: 1rem 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1.25rem;
  align-items: center;
  justify-content: space-between;
}

.page-top__brand {
  margin: 0;
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: 0.04em;
}

.page-top__brand a {
  color: var(--ink);
  text-decoration: none;
}

.page-top__brand a:hover {
  color: var(--forest);
}

.page-top__back {
  color: var(--muted);
  font-size: 0.9rem;
  text-decoration: none;
}

.page-top__back:hover {
  color: var(--forest);
  text-decoration: underline;
}

.policy {
  padding-top: 3rem;
  padding-bottom: 4rem;
}

.policy h2 {
  margin: 2.25rem 0 0.85rem;
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  line-height: 1.5;
}

.policy p,
.policy li {
  font-size: 0.98rem;
  line-height: 1.9;
}

.policy ol,
.policy ul {
  margin: 0 0 1rem;
  padding-left: 1.35rem;
}

.policy ol {
  list-style: decimal;
}

.policy ul {
  list-style: disc;
  margin-top: 0.45rem;
}

.policy li + li {
  margin-top: 0.45rem;
}

.policy__dates {
  margin-top: 2rem;
  color: var(--muted);
  font-size: 0.9rem;
}

/* ——— Cookie banner ——— */
.cookie-banner {
  position: fixed;
  z-index: 50;
  left: 1rem;
  right: auto;
  bottom: 1rem;
  width: min(calc(100% - 2rem), 22.5rem);
  max-width: 22.5rem;
  margin: 0;
  padding: 1.1rem 1.15rem 1.15rem;
  background: rgba(251, 254, 252, 0.96);
  color: var(--ink);
  border: 1px solid var(--line);
  border-radius: 0.35rem;
  box-shadow: var(--shadow-soft);
  backdrop-filter: blur(10px);
  transform: translateY(120%);
  opacity: 0;
  pointer-events: none;
  transition: transform 0.45s var(--ease), opacity 0.45s var(--ease);
}

.cookie-banner.is-visible {
  transform: translateY(0);
  opacity: 1;
  pointer-events: auto;
}

.cookie-banner p {
  margin: 0 0 0.95rem;
  font-size: 0.88rem;
  line-height: 1.7;
  color: var(--muted);
}

.cookie-banner__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
}

.cookie-banner .btn {
  min-height: 2.55rem;
  padding: 0.45rem 1rem;
  font-size: 0.86rem;
}

.cookie-banner .btn--primary {
  background: var(--forest);
  color: var(--white);
}

.cookie-banner .btn--primary:hover {
  background: var(--forest-deep);
  color: var(--white);
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }

  .hero__media img {
    transform: none;
    filter: none;
  }

  .hero__brand,
  .hero__status,
  .hero__lead,
  .hero__actions {
    opacity: 1;
    transform: none;
  }
}

@media (max-width: 560px) {
  .hero__inner {
    padding: 4.5rem 0 2.75rem;
  }

  .hero__brand {
    font-size: clamp(1.55rem, 8.2vw, 2.1rem);
  }

  .hero__brand-en {
    letter-spacing: 0.06em;
    white-space: normal;
  }

  .section {
    padding: 3.25rem 0;
  }

  .meta-row {
    grid-template-columns: 1fr;
    gap: 0.2rem;
  }

  .hero__actions,
  .about__cta,
  .contact__form,
  .contact__phone,
  .contact__links {
    width: 100%;
  }

  .hero__actions .btn,
  .about__cta .btn,
  .contact__form .btn,
  .contact__phone .btn,
  .contact__links .btn {
    width: 100%;
  }

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

  .site-footer__meta {
    justify-content: flex-start;
  }
}

@media (max-width: 380px) {
  .hero__brand-line {
    white-space: normal;
  }
}
