:root{--ink:#29272b;--muted:#77727a;--pink:#e88eaa;--pink-dark:#c96784;--pale:#fff5f8;--line:#ece7e9;--width:980px;--reading:760px}
*{box-sizing:border-box}
html{scroll-behavior:smooth}
body{margin:0;background:#fff;color:var(--ink);font-family:"Noto Sans SC","Hiragino Kaku Gothic ProN",Meiryo,sans-serif;line-height:1.9;letter-spacing:.015em}
a{color:inherit;text-decoration:none}a:hover{color:var(--pink-dark)}
.wrap{width:min(var(--width),calc(100% - 40px));margin:0 auto}
.top{background:#fff;border-bottom:1px solid var(--line)}
.nav{min-height:74px;display:flex;align-items:center;justify-content:space-between;gap:24px}
.brand{display:flex;align-items:center;flex:0 0 auto}.brand-logo{display:block;width: 209px;height: 55px;object-fit:contain;object-position:left center}
.links{display:flex;align-items:center;gap:20px;color:#575159;font-size:14px}
.btn{display:inline-block;padding:10px 20px;border:1px solid var(--pink);border-radius:4px;background:var(--pink);color:#292127;font-size:14px;font-weight:600}.btn:hover{background:#dc7e9d;color:#fff}.mobile{display:none}
.footer{padding:25px 0;border-top:1px solid var(--line);color:var(--muted);font-size:12px}.footrow{display:flex;justify-content:space-between;gap:18px;flex-wrap:wrap}.footlinks{display:flex;gap:14px;flex-wrap:wrap}
.page-hero{padding:38px 0 28px;background:#fcfafb;border-bottom:1px solid var(--line)}.page-hero h1{margin:4px 0;font-size:33px;line-height:1.5;font-weight:650}.page-hero p{max-width:720px;margin:4px 0 0;color:var(--muted);font-size:14px}.eyebrow{color:var(--pink-dark);font-size:12px;letter-spacing:.13em;font-weight:700}
.prose{max-width:var(--reading)}.prose h2{margin:32px 0 8px;padding-bottom:5px;border-bottom:1px solid var(--line);font-size:20px;font-weight:650}.prose p,.prose li{color:#5f5a61;font-size:15px}.prose ul{padding-left:22px}
.downloadbox{margin:12px 0 28px;padding:22px;border:1px solid var(--line);background:#fff}.downloadbox h2{margin:2px 0 8px;border:0}.meta{display:grid;grid-template-columns:repeat(3,1fr);gap:10px;margin:18px 0}.meta div{padding:10px;background:#fcfafb;font-size:13px}.meta b{display:block;color:var(--muted);font-size:11px}.alert{margin-top:14px;padding:11px 13px;background:#fff7f9;color:#6b5b62;font-size:13px}
/* Homepage: simple personal development diary, regular document flow */
.diary{display:grid;grid-template-columns:190px minmax(0,680px);gap:42px;align-items:start;padding-top:34px;padding-bottom:60px}
.profile{position:static;align-self:start;padding:5px 0 18px;color:#69636a;font-size:13px;line-height:1.9}
.profile-name{color:var(--pink-dark);font-size:18px;font-weight:700;letter-spacing:.02em}
.profile-caption{margin:4px 0 14px;color:var(--pink-dark);font-size:12px}
.profile-links{display:grid;gap:5px;margin-top:16px}.profile-links a{color:#544d55;text-decoration:underline;text-decoration-color:#e5d9de;text-underline-offset:3px}
.profile-small{margin-top:20px;padding-top:12px;border-top:1px solid var(--line);color:#928b92;font-size:11px}
.diary-main{min-width:0}.hello{padding:4px 0 22px}.hello h1{margin:8px 0 14px;font-size:31px;font-weight:600;letter-spacing:.02em}.hello p,.diary-section p{color:#575159;font-size:15px}
.diary-section{padding:20px 0;border-top:1px dashed #ded7db}.diary-section h2{margin:0 0 12px;font-size:22px;font-weight:600}.diary-section h2 span{margin-right:8px;color:var(--pink-dark);font-family:Georgia,serif;font-size:14px;font-weight:400}
.plain-steps{padding-left:13px;border-left:2px solid #f0d7e0}.plain-steps p{margin:8px 0;font-size:14px}.plain-steps b{color:#39343a;font-weight:600}.small-note{color:#8b848b!important;font-size:12px!important}
.log time{display:inline-block;min-width:68px;color:var(--pink-dark);font-family:Georgia,serif;font-size:13px}.download-note .btn{margin-top:4px}.diary-end{margin:8px 0 0;color:#a39ba1;text-align:center;font-size:12px}
@media(max-width:800px){.links{gap:11px;font-size:13px}}
@media(max-width:700px){.wrap{width:min(var(--width),calc(100% - 30px))}.nav{min-height:64px}.links{display:none}.mobile{display:inline-block}.brand-logo{width: 174px;height: 50px}.diary{grid-template-columns:1fr;gap:8px;padding-top:20px}.profile{padding:8px 0 18px;border-bottom:1px dashed #ded7db}.profile-links{display:flex;gap:18px}.profile-small{display:none}.hello h1{font-size:28px}.page-hero h1{font-size:29px}.meta{grid-template-columns:1fr}}.language-label{display:inline-flex;align-items:center}.language-label select{appearance:auto;max-width:145px;padding:7px 26px 7px 10px;border:1px solid #e8dfe3;border-radius:4px;background:#fff;color:#514b51;font:inherit;font-size:13px;cursor:pointer}.language-label select:focus{outline:2px solid #e9a4b8;outline-offset:2px}.sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}
@media(max-width:800px){.nav{flex-wrap:wrap;padding:10px 0}.links{display:flex;flex-wrap:wrap;justify-content:flex-end;gap:8px 12px}.language-label select{max-width:130px}}
@media(max-width:560px){.nav{align-items:center}.links{width:100%;justify-content:flex-start;padding:4px 0 8px}.links>a{font-size:12px}.language-label select{font-size:12px}}
.home{max-width:780px;padding-top:44px;padding-bottom:65px}
.home-intro{padding:6px 0 30px}
.home-intro h1{margin:8px 0 14px;font-size:27px;font-weight:600}
.home-intro p,.home-lead{color:#575159;font-size:15px}
.home-functions{padding-top:24px;border-top:1px dashed #ded7db}
.home-functions h2{margin:0 0 12px;font-size:20px;font-weight:600}
.home-functions ul{margin:20px 0;padding:0;list-style:none}
.home-functions li{display:grid;grid-template-columns:220px 1fr;gap:15px;padding:13px 0;border-top:1px solid var(--line);font-size:14px}
.home-functions li b{font-weight:600}
.home-functions li span{color:#68636a}
.home-link{margin-top:22px;font-size:14px}
.home-link a{text-decoration:underline;text-decoration-color:#dfcbd2;text-underline-offset:4px}
@media(max-width:600px){.home-functions li{grid-template-columns:1fr;gap:2px}}
.manga-features {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 30px 20px;
  margin-top: 24px;
}
.manga-feature {
  grid-column: span 2;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 14px;
  min-width: 0;
  padding: 0;
}
.manga-feature:nth-child(4) { grid-column: 2 / span 2; }
.manga-feature:nth-child(5) { grid-column: 4 / span 2; }
.manga-feature img { display: block; width: 100%; height: auto; border-radius: 8px; }
.manga-feature h3 { margin: 0 0 8px; font-size: 17px; font-weight: 600; }
.manga-feature p { margin: 0; font-size: 14px; }
.service-note {
  margin: 28px auto 0;
  text-align: center;
  line-height: 1.9;
}
.home-download-cta {
  margin: 26px 0 12px;
  text-align: center;
}
@media (max-width: 540px) {
  .manga-features { grid-template-columns: 1fr; gap: 26px; }
  .manga-feature,
  .manga-feature:nth-child(4),
  .manga-feature:nth-child(5) { grid-column: auto; }
  .manga-feature img { width: 100%; max-width: 260px; align-self: center; }
}
/* Let the feature section span both columns of the personal homepage. */
.diary-main:has(.manga-features) {
  display: contents;
}
.diary-main:has(.manga-features) > .hello,
.diary-main:has(.manga-features) > .diary-section:not(:has(.manga-features)) {
  grid-column: 2;
}
.diary-main > .diary-section:has(.manga-features) {
  grid-column: 1 / -1;
}
.home-hero {
  position: relative;
  grid-column: 1 / -1;
  width: 100%;
  margin: 0 0 24px;
  overflow: hidden;
  background: #fff;
}
.home-hero > img {
  display: block;
  width: 100%;
  height: auto;
}
.hero-carousel {
  isolation: isolate;
}
.hero-viewport {
  width: 100%;
  aspect-ratio: 1958 / 803;
  overflow: hidden;
  background: #fff;
}
.hero-track {
  display: grid;
  width: 100%;
  height: 100%;
}
.hero-slide {
  grid-area: 1 / 1;
  min-width: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 1200ms ease-in-out, visibility 1200ms ease-in-out;
  will-change: opacity;
}
.hero-slide.is-active {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}
.hero-slide img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}
.hero-slide-inset {
  display: flex;
  align-items: center;
  justify-content: center;
  background: #fff;
}
.hero-slide-inset img {
  width: 90%;
  height: 90%;
  object-fit: contain;
}
.hero-arrow {
  position: absolute;
  z-index: 1;
  top: 50%;
  display: grid;
  width: 53px;
  height: 53px;
  place-items: center;
  border: 1px solid rgba(225, 126, 157, .45);
  border-radius: 50%;
  color: #25232a;
  background: rgba(255, 255, 255, .88);
  box-shadow: 0 3px 14px rgba(43, 30, 36, .12);
  font: 33px/1 Arial, sans-serif;
  cursor: pointer;
  transform: translateY(-50%);
  transition: background-color 160ms ease, transform 160ms ease;
}
.hero-arrow:hover {
  background: #f8dce5;
  transform: translateY(-50%) scale(1.06);
}
.hero-arrow:focus-visible,
.hero-dot:focus-visible {
  outline: 3px solid #e77e9e;
  outline-offset: 3px;
}
.hero-next { right: 14px; }
.hero-dots {
  position: absolute;
  z-index: 1;
  right: 0;
  bottom: 14px;
  left: 0;
  display: flex;
  justify-content: center;
  gap: 9px;
}
.hero-dot {
  width: 12px;
  height: 12px;
  padding: 0;
  border: 1px solid #d87996;
  border-radius: 50%;
  background: rgba(255, 255, 255, .85);
  cursor: pointer;
}
.hero-dot[aria-current="true"] {
  background: #e77e9e;
}
@media (max-width: 700px) {
  .hero-arrow {
    width: 41px;
    height: 41px;
    font-size: 27px;
  }
  .hero-next { right: 8px; }
  .hero-dots { bottom: 8px; }
}
@media (prefers-reduced-motion: reduce) {
  .hero-slide,
  .hero-arrow {
    transition-duration: 0.01ms;
  }
}
@media (max-width: 700px) {
  .diary-main:has(.manga-features) > .hello,
  .diary-main:has(.manga-features) > .diary-section:not(:has(.manga-features)) {
    grid-column: 1;
  }
}

.mobile-menu-toggle {
  display: none;
}
@media (max-width: 700px) {
  .nav {
    display: flex;
    flex-wrap: wrap;
    min-height: 64px;
    align-items: center;
    gap: 8px 12px;
    padding: 7px 0;
  }
  .mobile-menu-toggle {
    display: flex;
    flex: 0 0 44px;
    width: 44px;
    height: 44px;
    margin-left: auto;
    padding: 10px;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    border: 1px solid var(--line);
    border-radius: 6px;
    background: #fff;
    cursor: pointer;
  }
  .mobile-menu-toggle span {
    display: block;
    width: 22px;
    height: 2px;
    border-radius: 2px;
    background: var(--ink);
    transition: transform 180ms ease, opacity 180ms ease;
  }
  .mobile-menu-toggle[aria-expanded="true"] span:first-child {
    transform: translateY(7px) rotate(45deg);
  }
  .mobile-menu-toggle[aria-expanded="true"] span:nth-child(2) {
    opacity: 0;
  }
  .mobile-menu-toggle[aria-expanded="true"] span:last-child {
    transform: translateY(-7px) rotate(-45deg);
  }
  .links {
    display: none;
    flex: 0 0 100%;
    width: 100%;
    flex-direction: column;
    align-items: stretch;
    justify-content: flex-start;
    gap: 0;
    padding: 8px 0 10px;
    border-top: 1px solid var(--line);
  }
  .links.is-open {
    display: flex;
  }
  .links > a {
    display: block;
    width: 100%;
    padding: 10px 8px;
    border-bottom: 1px solid var(--line);
    font-size: 14px;
  }
  .language-label {
    display: block;
    padding: 10px 8px 0;
  }
  .language-label select {
    display: block;
    width: 100%;
    max-width: none;
    min-height: 44px;
    font-size: 14px;
  }
}

/* Homepage: remove the profile and greeting intro; give the artwork full width. */
.diary:has(.home-hero) {
  display: block;
}
.diary:has(.home-hero) > .profile,
.diary:has(.home-hero) .hello {
  display: none;
}
.about-prose h2:first-child {
  font-size: 26px;
}
.about-diagram {
  margin: 20px auto;
  text-align: center;
}
.about-diagram img {
  display: block;
  width: min(100%, 640px);
  height: auto;
  margin: 0 auto;
}
.about-street-photo {
  max-width: 480px;
  margin: 24px auto 28px;
}
.about-street-photo img {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  object-position: center center;
}

.security-note{margin:18px 0 30px;padding:14px 16px;background:#fff7f9;color:#5f5a61;font-size:15px;line-height:1.8}
.security-note b{font-size:inherit}
.security-note-link{color:#0866c6!important;font-weight:700;text-decoration:underline!important;text-underline-offset:3px}
.security-note-link:hover{color:#004b99!important}


.top{position:sticky;top:0;z-index:1000;border-bottom:1px solid #e5a1b5}
@media(min-width:701px) and (max-width:1050px){.nav{flex-wrap:wrap;justify-content:flex-start}.brand{order:1}.links{order:2;flex:0 0 100%;width:100%;flex-wrap:nowrap;justify-content:space-between;gap:clamp(6px,1.5vw,16px)}.links>a{white-space:nowrap}}
@media(max-width:700px){
  .home-hero{position:relative;left:auto;width:calc(100% + 30px);margin:0 -15px 24px;overflow:hidden}
  .hero-viewport{position:relative;width:100%;aspect-ratio:1958/803;overflow:hidden}
  .hero-track{position:absolute;inset:0;display:block;width:100%;height:100%}
  .hero-slide,.hero-slide-inset{position:absolute;inset:0;display:block;width:100%;height:100%;min-width:0}
  .hero-slide img,.hero-slide-inset img{position:absolute;inset:0;display:block;width:100%;height:100%;max-width:none;object-fit:cover;object-position:center}
}
