/* ============================================================
   一般社団法人 能登編集室 - style.css
   ============================================================ */

:root {
  --noto-ink: #2a2521;
  --noto-ink-soft: #55504a;
  --noto-paper: #f3efe4;
  --noto-paper-deep: #eae3d2;
  --noto-pine: #1f3a35;
  --noto-pine-deep: #142825;
  --noto-vermilion: #a8462a;
  --noto-line: rgba(42, 37, 33, 0.14);
  --noto-focus: #a8462a;

  --noto-serif: "Yu Mincho", "游明朝", "Hiragino Mincho ProN", "HGS明朝E", "MS PMincho", serif;
  --noto-sans: "Yu Gothic", "游ゴシック", "Hiragino Kaku Gothic ProN", "Noto Sans JP", "Meiryo", sans-serif;
  --noto-logo: "Shippori Mincho", var(--noto-serif);
}

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

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

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  * {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

body {
  margin: 0;
  color: var(--noto-ink);
  font-family: var(--noto-serif);
  font-size: 17px;
  line-height: 1.9;
  background: var(--noto-pine-deep);
  -webkit-font-smoothing: antialiased;
}

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

ul,
ol {
  margin: 0;
  padding: 0;
  list-style: none;
}

table {
  border-collapse: collapse;
}

a {
  color: inherit;
  text-decoration: none;
}

h1,
h2,
h3,
p {
  margin: 0;
}

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

.noto-visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

.noto-logotype {
  font-family: var(--noto-logo);
  letter-spacing: 0.08em;
}

h1,
h2,
h3 {
  font-family: var(--noto-logo);
}
.br {display: inline-block;}

/* ------------------------------------------------------------
   Skip link
   ------------------------------------------------------------ */
.noto-skip {
  position: absolute;
  top: -3rem;
  left: 1rem;
  z-index: 100;
  padding: 0.6em 1.2em;
  background: var(--noto-paper);
  color: var(--noto-pine);
  border-radius: 0.4em;
  font-family: var(--noto-sans);
  font-size: 0.95rem;
  transition: top 0.2s ease;
}

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

/* ------------------------------------------------------------
   Fixed background slideshow (#noto-bg)
   ------------------------------------------------------------ */
#noto-bg {
  position: fixed;
  inset: 0;
  width: 100vw;
  height: 100vh;
  overflow: hidden;
  background: var(--noto-pine-deep);
}

.noto-bg__slide {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  opacity: 0;
  transition: opacity 2.4s ease;
  will-change: opacity;
}

.noto-bg__slide.is-active {
  opacity: 1;
}

.noto-bg__scrim {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(100deg, rgba(10, 16, 13, 0.62) 0%, rgba(10, 16, 13, 0.32) 42%, rgba(10, 16, 13, 0.28) 100%);
}

.noto-bg__mark {
  position: fixed;
  left: 3.2vw;
  top: 50%;
  transform: translateY(-50%);
  writing-mode: vertical-rl;
  font-size: clamp(1.6rem, 3vw, 2.6rem);
  color: var(--noto-paper);
  font-weight: 700;
  letter-spacing: 0.5em;
  text-shadow: 0 0.1em 0.6em rgba(0, 0, 0, 0.35);
}

@media (max-width: 1024px) {
  .noto-bg__mark {
    display: none;
  }
}

/* ------------------------------------------------------------
   Top nav (scrolls with page, sits above the fixed bg)
   ------------------------------------------------------------ */
.noto-nav {
  position: fixed;
  z-index: 5;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.6em min(6vw, 4em) 0;
  color: var(--noto-paper);
}

.noto-nav__menu ul {
  display: flex;
  gap: 2em;
}

.noto-nav__menu a {
  font-family: var(--noto-sans);
  font-size: 1.3rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  padding-inline: 0.1em;
  border-bottom: 1px solid transparent;
  transition: border-color 0.2s ease, opacity 0.2s ease;
}

.noto-nav__menu a:hover,
.noto-nav__menu a:focus-visible {
  border-color: currentColor;
}

.noto-nav__toggle {
  display: none;
}

@media (max-width: 640px) {
  .noto-nav__menu ul {
    gap: 1.1em;
  }
}

/* ------------------------------------------------------------
   Scroll wrapper / floating card
   ------------------------------------------------------------ */
.noto-scroll {
  position: relative;
  z-index: 4;
  padding: 2em 0 6em;
}

.noto-card {
  width: min(760px, 88vw);
  margin: 0 min(6vw, 4em) 0 auto;
  background: var(--noto-paper);
  border-radius: 1.4em;
  overflow: hidden;
  box-shadow: 0 2em 5em rgba(0, 0, 0, 0.28);
}

@media (max-width: 1180px) {
  .noto-card {
    margin: 0 auto;
  }
}

@media (max-width: 768px) {
  .noto-nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    padding: 1.1em 5vw;
    background: linear-gradient(180deg, rgba(10, 16, 13, 0.6) 0%, rgba(10, 16, 13, 0) 100%);
  }

  .noto-bg__mark {
    display: block;
    position: static;
    z-index: 2;
    writing-mode: horizontal-tb;
    transform: none;
    font-size: 1.15rem;
    letter-spacing: 0.12em;
  }

  /* Hamburger toggle, top-right */
  .noto-nav__toggle {
    position: relative;
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 2.4em;
    height: 2.4em;
    background: none;
    border: none;
    padding: 0;
    color: var(--noto-paper);
  }

  .noto-nav__toggle-bars {
    position: relative;
    display: block;
    width: 1.5em;
    height: 0.9em;
  }

  .noto-nav__toggle-bars span {
    position: absolute;
    left: 0;
    width: 100%;
    height: 2px;
    background: currentColor;
    border-radius: 2px;
    transition: transform 0.25s ease, opacity 0.25s ease;
  }

  .noto-nav__toggle-bars span:nth-child(1) {
    top: 0;
  }

  .noto-nav__toggle-bars span:nth-child(2) {
    top: 50%;
    transform: translateY(-50%);
  }

  .noto-nav__toggle-bars span:nth-child(3) {
    top: 100%;
    transform: translateY(-100%);
  }

  .noto-nav__toggle[aria-expanded="true"] .noto-nav__toggle-bars span:nth-child(1) {
    top: 50%;
    transform: translateY(-50%) rotate(45deg);
  }

  .noto-nav__toggle[aria-expanded="true"] .noto-nav__toggle-bars span:nth-child(2) {
    opacity: 0;
  }

  .noto-nav__toggle[aria-expanded="true"] .noto-nav__toggle-bars span:nth-child(3) {
    top: 50%;
    transform: translateY(-50%) rotate(-45deg);
  }

  /* Fullscreen menu, drops down from the top like a curtain */
  .noto-nav__menu {
    position: fixed;
    z-index: 1;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--noto-pine-deep);
    transform: translateY(-100%);
    opacity: 0;
    visibility: hidden;
    transition: transform 0.45s ease, opacity 0.3s ease, visibility 0.45s;
  }

  .noto-nav__menu.is-open {
    transform: translateY(0);
    opacity: 1;
    visibility: visible;
  }

  .noto-nav__menu ul {
    flex-direction: column;
    align-items: center;
    gap: 2.2em;
  }

  .noto-nav__menu a {
    font-family: var(--noto-logo);
    font-size: 1.7rem;
    letter-spacing: 0.15em;
  }

  .noto-scroll {
    padding: 0 4vw;
  }

  /* First view is background only; content starts one screen down. */
  .noto-scroll::before {
    content: "";
    display: block;
    height: 50vh;
    height: 50svh;
  }

  /* Card becomes an invisible stack; each section renders as its
     own floating island so the fixed background shows in the gaps. */
  .noto-card {
    width: 100%;
    margin: 0;
    background: none;
    border-radius: 0;
    overflow: visible;
    box-shadow: none;
    display: flex;
    flex-direction: column;
    gap: 50vw;
  }

  .noto-hero,
  .noto-section {
    border-bottom: none;
    border-radius: 1.3em;
    background: var(--noto-paper);
    box-shadow: 0 0.8em 2.4em rgba(20, 22, 18, 0.28);
  }

  .noto-footer {
    background: var(--noto-paper-deep);
  }
}

/* ------------------------------------------------------------
   Hero
   ------------------------------------------------------------ */
.noto-hero {
  padding: 4em min(9vw, 4.5em) 3em;
  text-align: center;
  border-bottom: 1px solid var(--noto-line);
}

.noto-hero__kicker {
  font-family: var(--noto-sans);
  font-size: 1.3rem;
  letter-spacing: 0.3em;
  color: var(--noto-ink-soft);
}

.noto-hero__title {
  font-size: clamp(2.4rem, 6vw, 3.6rem);
  font-weight: 700;
  color: var(--noto-pine);
  letter-spacing: 0.12em;
  line-height: 1.2;
}

.noto-hero__lead {
  margin: 2.2em auto 0;
  max-width: 30em;
  font-size: 1.1rem;
  line-height: 2;
  color: var(--noto-ink);
}

@media (max-width: 640px) {
  .noto-hero {
    padding: 3em 7vw 2.4em;
  }
}

/* ------------------------------------------------------------
   Sections (shared)
   ------------------------------------------------------------ */
.noto-section {
  padding: 3.6em min(9vw, 4.5em);
  border-bottom: 1px solid var(--noto-line);
  position: relative;
}

.noto-section:last-of-type {
  border-bottom: none;
}

.noto-section__title {
  font-size: clamp(1.4rem, 3vw, 1.8rem);
  font-weight: 700;
  color: var(--noto-pine);
  letter-spacing: 0.08em;
  margin-bottom: 1.4em;
  padding-bottom: 0.6em;
  border-bottom: 2px solid var(--noto-pine);
  display: inline-block;
}

@media (max-width: 640px) {
  .noto-section {
    padding: 2.8em 7vw;
  }
}

/* ------------------------------------------------------------
   Mission
   ------------------------------------------------------------ */
.noto-mission__text {
  font-size: 1.1rem;
  line-height: 2.1;
  color: var(--noto-ink);
}

/* ------------------------------------------------------------
   Business
   ------------------------------------------------------------ */
.noto-business__lead {
  font-family: var(--noto-sans);
  font-size: 1.02rem;
  color: var(--noto-ink-soft);
  margin-bottom: 2em;
}
.noto-business__item {
  display: grid;
  grid-template-columns: 2.8em 1fr;
  column-gap: 1.2em;
  padding: 1.8em 0;

}
.noto-business__item + .noto-business__item {
  border-top: 1px solid var(--noto-line);
}

.noto-business__no {
  grid-row: 1 / span 2;
  align-self: start;
  font-family: var(--noto-logo);
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--noto-ink-soft);
  line-height: 1.3;
}

.noto-business__heading {
  font-size: 1.08rem;
  font-weight: 700;
  color: var(--noto-pine);
  margin-bottom: 0.5em;
  letter-spacing: 0.04em;
}

.noto-business__desc {
  font-family: var(--noto-sans);
  font-size: 1rem;
  line-height: 1.85;
  color: var(--noto-ink);
}

@media (max-width: 640px) {
  .noto-business__item {
    grid-template-columns: 2.2em 1fr;
    padding: 1.4em 0;
  }
  .noto-business__no {
    font-size: 1.3rem;
  }
}

/* ------------------------------------------------------------
   Profile table
   ------------------------------------------------------------ */
.noto-profile__table {
  width: 100%;
  font-size: 1.05rem;
}

.noto-profile__table tr {
  border-bottom: 1px solid var(--noto-line);
}

.noto-profile__table tr:last-child {
  border-bottom: none;
}

.noto-profile__table th,
.noto-profile__table td {
  padding: 1.1em 0.6em;
  text-align: left;
  vertical-align: top;
}

.noto-profile__table th {
  width: 8em;
  font-family: var(--noto-sans);
  font-weight: 700;
  color: var(--noto-pine);
  letter-spacing: 0.05em;
}
table.noto-profile__table a {
  text-decoration: underline;
}

@media (max-width: 640px) {
  .noto-profile__table th,
  .noto-profile__table td {
    display: block;
    width: auto;
    padding: 0.3em 0.2em;
  }
  .noto-profile__table th {
    padding-top: 1.1em;
  }
  .noto-profile__table tr {
    display: block;
    padding-bottom: 0.6em;
  }
}

/* Officers list (役員) */
.noto-officers {
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 0.5em;
}

.noto-officers__row {
  display: flex;
  gap: 1em;
}

.noto-officers__row dt {
  flex: 0 0 6.5em;
  font-family: var(--noto-sans);
  font-weight: 700;
  color: var(--noto-ink-soft);
}

.noto-officers__row dd {
  margin: 0;
  flex: 1;
}

@media (max-width: 640px) {
  .noto-officers__row dt {
    flex: 0 0 5.5em;
  }
}

/* ------------------------------------------------------------
   Footer
   ------------------------------------------------------------ */
.noto-footer {
  padding: 1em min(9vw, 4.5em) 1em;
  line-height: 1;
  text-align: center;
  background: var(--noto-paper-deep);
}

.noto-footer__brand {
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--noto-pine);
  letter-spacing: 0.12em;
}

.noto-footer__addr {
  margin-top: 0.8em;
  font-family: var(--noto-sans);
  font-size: 0.92rem;
  color: var(--noto-ink-soft);
}

.noto-footer__copy {
  font-family: var(--noto-sans);
  font-size: 0.82rem;
  color: var(--noto-ink-soft);
  letter-spacing: 0.05em;
}

/* ------------------------------------------------------------
   Scroll reveal
   ------------------------------------------------------------ */
.noto-reveal {
  opacity: 0;
  transform: translateY(1.4em);
  transition: opacity 0.9s ease, transform 0.9s ease;
}

.noto-reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

@media (max-width: 768px) and (prefers-reduced-motion: no-preference) {
  /* Hold every block visible on load back briefly (not just the hero)
     so the fixed background is visible on its own on the first view. */
  .is-first-view.noto-reveal {
    transition-delay: 0.6s;
  }
}

@media (max-width: 768px) {
  /* Footer just shows normally on mobile, no fade/slide-in. */
  .noto-footer.noto-reveal {
    opacity: 1;
    transform: none;
    transition: none;
    width: 100vw;
    margin-left: calc(50% - 50vw);
  }
}

@media (prefers-reduced-motion: reduce) {
  .noto-reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }
}

body.noto-menu-open {
  overflow: hidden;
}

@media (max-width: 768px) and (prefers-reduced-motion: reduce) {
  .noto-nav__menu {
    transition: opacity 0.3s ease, visibility 0.3s;
    transform: none;
  }
}

/* ------------------------------------------------------------
   Back to top
   ------------------------------------------------------------ */
.noto-totop {
  position: fixed;
  right: 1.4em;
  bottom: 1.4em;
  z-index: 20;
  width: 3em;
  height: 3em;
  border-radius: 50%;
  background: var(--noto-pine);
  color: var(--noto-paper);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 0.5em 1.4em rgba(0, 0, 0, 0.32);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: translateY(0.6em);
  transition: opacity 0.3s ease, transform 0.3s ease, visibility 0.3s, background-color 0.2s ease;
}

.noto-totop.is-visible {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translateY(0);
}

.noto-totop:hover,
.noto-totop:focus-visible {
  background: var(--noto-pine-deep);
}

.noto-totop svg {
  width: 1.15em;
  height: 1.15em;
}

@media (max-width: 640px) {
  .noto-totop {
    right: 1em;
    bottom: 1em;
    width: 2.7em;
    height: 2.7em;
  }
}

@media (prefers-reduced-motion: reduce) {
  .noto-totop {
    transition: opacity 0.3s ease, visibility 0.3s;
    transform: none;
  }
}
