:root {
  --text: #151515;
  --muted: #5f625d;
  --line: #e2e4df;
  --soft: #f3f5ef;
  --surface: #fff;
  --accent: #7faa36;
  --wood: #8b623f;
  --dark: #243436;
  --ink: #101817;
  --shadow: 0 18px 48px rgba(22, 28, 24, 0.12);
  --shadow-strong: 0 28px 70px rgba(20, 28, 24, 0.18);
  --manga-page-height: 720px;
  --manga-page-width: min(680px, calc(var(--manga-page-height) * 0.74), 100%);
}

* { box-sizing: border-box; }

body {
  margin: 0;
  font-family: "Noto Sans JP", "Yu Gothic", "Meiryo", sans-serif;
  color: var(--text);
  background: #f7f8f4;
  line-height: 1.6;
  text-rendering: optimizeLegibility;
}

main {
  background: #fff;
}

img { max-width: 100%; }

.pc-break {
  display: inline;
}

.container {
  width: min(1160px, calc(100% - 56px));
  margin: 0 auto;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 10;
  background: rgba(255, 255, 255, 0.94);
  border-bottom: 1px solid rgba(226, 228, 223, 0.7);
  box-shadow: 0 8px 26px rgba(20, 28, 24, 0.05);
  backdrop-filter: blur(10px);
}

.topbar-inner {
  min-height: 92px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.nav-toggle,
.menu-button {
  display: none;
}

.brand {
  display: flex;
  align-items: center;
  gap: 22px;
  min-width: 0;
}

.brand > div {
  min-width: 0;
}

.logo-mark {
  width: 221px;
  height: 50px;
  display: block;
  object-fit: contain;
  flex: 0 0 auto;
}

.brand-tagline {
  margin: 0;
  color: #222;
  font-size: 14px;
  font-weight: 700;
  line-height: 1.35;
  white-space: nowrap;
}

.brand-name {
  margin: 0;
  font-size: 25px;
  font-weight: 900;
  line-height: 0.98;
  white-space: nowrap;
}

.brand-sub {
  margin: 4px 0 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1;
  white-space: nowrap;
}

.header-actions {
  text-align: right;
  font-size: 14px;
  color: var(--muted);
}

.header-actions p {
  margin: 0 0 5px;
}

.header-phone {
  display: inline-flex;
  align-items: center;
  justify-content: flex-end;
  gap: 5px;
}

.header-actions strong {
  font-size: 16px;
  color: var(--text);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

.phone-number {
  color: inherit;
  text-decoration: inherit;
}

.btn-row {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
}

.header-icon {
  width: 16px;
  height: 16px;
  display: inline-block;
  flex: 0 0 auto;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.header-phone .header-icon {
  color: var(--text);
}

.pill {
  min-width: 174px;
  border-radius: 999px;
  background: #ffc622;
  color: #222;
  border: 1px solid transparent;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  padding: 7px 18px;
  font-size: 14px;
  font-weight: 700;
  text-decoration: none;
  white-space: nowrap;
  transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
}

.pill:hover {
  background: #ffd24a;
  box-shadow: 0 10px 24px rgba(26, 34, 30, 0.12);
  transform: translateY(-1px);
}

.hero {
  position: relative;
  isolation: isolate;
  background:
    linear-gradient(90deg, #eef1eb 0%, #eef1eb 50%, #e3eadc 50%, #e3eadc 100%);
  border-bottom: 1px solid rgba(226, 228, 223, 0.8);
  overflow: hidden;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 32px max(24px, calc((100vw - 1160px) / 2)) 32px;
  z-index: -1;
  border: 1px solid transparent;
  background: transparent;
  box-shadow: none;
}

.hero-inner {
  display: grid;
  grid-template-columns: minmax(420px, 0.92fr) minmax(520px, 1.08fr);
  align-items: center;
  gap: 44px;
  min-height: 420px;
}

.hero-copy {
  text-align: center;
  padding: 54px 0 52px;
}

.hero-title-block {
  display: inline-block;
  text-align: left;
}

.badge {
  margin: 0 0 28px;
  background: var(--dark);
  color: #fff;
  display: inline-block;
  padding: 8px 26px;
  border-radius: 3px;
  font-size: 14px;
  font-weight: 500;
  line-height: 1.35;
  box-shadow: 0 12px 28px rgba(36, 46, 44, 0.18);
}

.hero h1 {
  margin: 0 0 18px;
  line-height: 1;
}

.manga-title-image {
  display: block;
  width: min(540px, 100%);
  height: auto;
}

.hero-title-block p {
  margin: 0;
  padding-left: 1em;
  text-indent: -1em;
  font-size: clamp(29px, 3.05vw, 42px);
  line-height: 1.25;
  font-weight: 500;
}

.wood-word {
  color: #8b4f22;
}

.hero-art {
  align-self: stretch;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  overflow: visible;
  filter: drop-shadow(0 28px 38px rgba(27, 34, 31, 0.18));
}

.hero-art img {
  display: block;
  width: min(100%, 660px);
  height: 420px;
  max-height: none;
  object-fit: cover;
  object-position: left top;
  border-radius: 0 0 0 34px;
}

.intro {
  position: relative;
  text-align: center;
  padding: 78px 0 52px;
}

.intro::before {
  content: "STORY";
  display: flex;
  align-items: center;
  justify-content: center;
  width: fit-content;
  gap: 12px;
  margin: 0 auto 12px;
  color: #8b4f22;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
}

.intro::after {
  content: none;
}

.intro h2 {
  position: relative;
  display: inline-block;
  margin: 0 0 10px;
  font-size: clamp(24px, 3.6vw, 34px);
  line-height: 1.35;
  font-weight: 800;
}

.intro h2::before,
.intro h2::after {
  content: "";
  position: absolute;
  top: 50%;
  width: 58px;
  height: 1px;
  background: rgba(139, 79, 34, 0.36);
}

.intro h2::before {
  right: calc(100% + 24px);
}

.intro h2::after {
  left: calc(100% + 24px);
}

.intro p {
  margin: 0;
  color: var(--muted);
  font-size: 24px;
  font-weight: 500;
}

.manga-reader {
  width: 100%;
  max-width: none;
  background: #fff;
  padding-bottom: 42px;
}

.manga-slideshow-page .manga-page {
  background: var(--surface);
  border: 1px solid rgba(226, 228, 223, 0.9);
  border-radius: 3px;
  color: #444;
  overflow: hidden;
  font-weight: 700;
  box-shadow: 0 16px 42px rgba(25, 30, 28, 0.08);
}

.manga-slideshow-page .manga-page img {
  display: block;
  width: 100%;
}

.manga-slideshow-page .manga-nav {
  position: absolute;
  top: 50%;
  z-index: 2;
  width: 60px;
  height: 60px;
  border: 2px solid rgba(255, 255, 255, 0.92);
  border-radius: 999px;
  background: #ffc622;
  color: #222;
  display: inline-grid;
  place-items: center;
  font-size: 28px;
  font-weight: 500;
  cursor: pointer;
  box-shadow: 0 16px 36px rgba(25, 30, 28, 0.2);
  transform: translateY(-50%);
  transition: transform 0.18s ease, box-shadow 0.18s ease, opacity 0.18s ease;
}

.manga-slideshow-page .manga-nav:hover:not(:disabled) {
  transform: translateY(calc(-50% - 1px));
  background: #ffd24a;
  box-shadow: 0 18px 38px rgba(25, 30, 28, 0.24);
}

.manga-slideshow-page .manga-nav:disabled {
  cursor: default;
  opacity: 0.34;
}

.manga-slideshow-page .manga-counter {
  margin: 0 0 8px;
  color: var(--muted);
  font-size: 14px;
  font-weight: 500;
  text-align: center;
}

.manga-slideshow-page .manga-stage {
  position: relative;
  width: min(820px, 100%);
  margin: 0 auto;
}

.manga-slideshow-page .manga-prev {
  left: 24px;
}

.manga-slideshow-page .manga-next {
  right: 24px;
}

.manga-slideshow-page .manga-strip {
  display: flex;
  gap: 28px;
  overflow-x: auto;
  overscroll-behavior-x: contain;
  scroll-snap-type: x mandatory;
  scroll-padding-inline: 70px;
  padding: 2px 70px 10px;
  border-radius: 4px;
  cursor: grab;
  touch-action: pan-y;
  user-select: none;
  scrollbar-width: thin;
  scrollbar-color: rgba(36, 52, 54, 0.38) transparent;
}

.manga-slideshow-page .manga-strip.is-dragging {
  cursor: grabbing;
  scroll-snap-type: none;
}

.manga-slideshow-page .manga-strip::-webkit-scrollbar {
  height: 10px;
}

.manga-slideshow-page .manga-strip::-webkit-scrollbar-track {
  background: transparent;
}

.manga-slideshow-page .manga-strip::-webkit-scrollbar-thumb {
  background: rgba(36, 52, 54, 0.34);
  border-radius: 999px;
}

.manga-slideshow-page .manga-page {
  flex: 0 0 var(--manga-page-width);
  height: var(--manga-page-height);
  min-height: 0;
  display: grid;
  place-items: center;
  scroll-snap-align: center;
}

.manga-slideshow-page .manga-page img {
  width: calc(100% - 24px);
  height: calc(100% - 12px);
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  pointer-events: none;
  -webkit-user-drag: none;
}

.manga-single-page .manga-stage {
  width: min(760px, calc(var(--manga-page-height) * 0.74), calc(100% - 144px));
}

.manga-single-page .manga-strip {
  padding-inline: 0;
  scroll-padding-inline: 0;
  scrollbar-width: none;
}

.manga-single-page .manga-strip::-webkit-scrollbar {
  display: none;
}

.manga-single-page .manga-page {
  flex-basis: 100%;
}

.manga-single-page .manga-prev {
  left: -72px;
}

.manga-single-page .manga-next {
  right: -72px;
}

.cta-card {
  position: relative;
  display: block;
  background: #f5f7f0;
  padding: 58px 36px 42px;
  margin-bottom: 0;
  text-align: center;
  box-shadow: 0 0 0 100vmax #f5f7f0;
  clip-path: inset(0 -100vmax);
}

.cta-card h3 {
  margin: 0 0 20px;
  color: #101817;
  font-size: clamp(24px, 3.2vw, 34px);
  font-weight: 800;
  letter-spacing: 0;
  line-height: 1.35;
}

.cta-card p {
  margin: 0;
}

.consult-lead {
  color: #151515;
  font-size: 17px;
  font-weight: 500;
  line-height: 1.75;
}

.consult-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0;
  margin-top: 24px;
}

.consult-item {
  position: relative;
  padding: 0 34px 18px;
}

.consult-item + .consult-item {
  border-left: 1px solid #d7c7ae;
}

.consult-icon {
  width: 96px;
  height: 96px;
  margin-bottom: 14px;
  object-fit: contain;
}

.consult-item h4 {
  margin: 0 0 10px;
  color: #101817;
  font-size: 25px;
  font-weight: 700;
  line-height: 1.35;
}

.consult-item p {
  color: #151515;
  font-size: 15px;
  font-weight: 500;
  line-height: 1.7;
}

.contact-band {
  background: var(--dark);
  color: #fff;
  padding: 46px 0 38px;
}

.contact-band h3 {
  margin: 0 0 28px;
  text-align: center;
  font-size: 25px;
  line-height: 1.4;
  font-weight: 800;
}

.contact-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 34px;
}

.contact-box {
  min-height: 124px;
  background: #fff;
  border-radius: 6px;
  color: #111;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 20px 18px;
  text-align: center;
}

.contact-box p {
  margin: 0 0 16px;
  font-size: 16px;
  line-height: 1.5;
  font-weight: 500;
}

.contact-box strong {
  font-size: 28px;
  line-height: 1.1;
  font-weight: 500;
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 4px;
}

.contact-phone {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.contact-icon {
  width: 20px;
  height: 20px;
  display: inline-block;
  flex: 0 0 auto;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.contact-phone .contact-icon {
  width: 28px;
  height: 28px;
  text-decoration: none;
}

.contact-box .contact-phone .phone-number {
  min-width: 0;
  border-radius: 0;
  background: transparent;
  display: inline;
  gap: 0;
  padding: 0;
  font-size: inherit;
  font-weight: inherit;
  line-height: inherit;
}

.contact-box a {
  min-width: 230px;
  border-radius: 999px;
  background: #ffc622;
  color: #222;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 9px 20px;
  font-size: 16px;
  font-weight: 700;
  line-height: 1.3;
  text-decoration: none;
  transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
}

.contact-box a:not(.phone-number):hover {
  background: #ffd24a;
  box-shadow: 0 10px 24px rgba(26, 34, 30, 0.12);
  transform: translateY(-1px);
}

.site-footer {
  background: #fff;
  color: #222;
}

.footer-main {
  min-height: 150px;
  display: grid;
  grid-template-columns: 280px 1fr;
  align-items: start;
  gap: 42px;
  padding: 32px 0;
}

.footer-logo {
  width: 260px;
  height: auto;
  display: block;
}

.footer-info p {
  margin: 0;
}

.footer-lead {
  font-size: 15px;
  font-weight: 500;
  line-height: 1.45;
}

.footer-company {
  font-size: 16px;
  font-weight: 800;
  line-height: 1.45;
}

.footer-address {
  margin-top: 14px !important;
  font-size: 13px;
  font-weight: 500;
  line-height: 1.6;
}

.footer-address span {
  display: inline-block;
  margin: 0 12px;
}

.footer-copy {
  background: var(--dark);
  color: #fff;
  min-height: 40px;
  display: grid;
  place-items: center;
  padding: 8px 16px;
  font-size: 14px;
  font-weight: 500;
  text-align: center;
}

.mobile-fixed-cta {
  display: none;
}

@media (min-width: 801px) and (max-width: 1012px) {
  .topbar-inner {
    min-height: 102px;
  }

  .brand {
    align-items: center;
    flex-direction: column;
    gap: 6px;
    width: fit-content;
    flex: 0 0 auto;
    text-align: center;
  }

  .brand .logo-mark {
    margin-inline: auto;
  }

  .brand-tagline {
    font-size: 12px;
    width: 100%;
    text-align: center;
  }
}

@media (max-width: 800px) {
  .container {
    width: min(100% - 32px, 560px);
  }

  .topbar {
    position: sticky;
  }

  .topbar-inner {
    position: relative;
    min-height: 0;
    display: block;
    padding: 12px 0;
  }

  .brand {
    align-items: center;
    flex-direction: column;
    gap: 4px;
    padding-right: 58px;
    width: fit-content;
    min-width: 0;
    text-align: center;
  }

  .logo-mark {
    width: min(221px, calc(100vw - 112px));
    height: auto;
    margin-inline: auto;
  }

  .brand-tagline {
    font-size: 12px;
    line-height: 1.35;
    white-space: normal;
  }

  .brand-name {
    font-size: 28px;
    line-height: 0.95;
  }

  .brand-sub {
    margin-top: 6px;
    font-size: 12px;
  }

  .menu-button {
    position: absolute;
    top: 50%;
    right: 0;
    width: 42px;
    height: 42px;
    border: 1px solid rgba(226, 228, 223, 0.95);
    border-radius: 999px;
    background: #fff;
    display: inline-flex;
    flex: 0 0 auto;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 5px;
    cursor: pointer;
    box-shadow: 0 10px 26px rgba(22, 28, 24, 0.1);
    transform: translateY(-50%);
  }

  .menu-close {
    display: none;
  }

  .menu-button span {
    width: 22px;
    height: 2px;
    border-radius: 999px;
    background: #222;
    display: block;
    transition: transform 0.2s ease, opacity 0.2s ease;
  }

  .header-actions {
    display: none;
    width: 100%;
    position: relative;
    text-align: left;
    font-size: 15px;
    margin-top: 12px;
    padding: 14px;
    border: 1px solid #e2e2e2;
    border-radius: 14px;
    background: #fff;
    box-shadow: 0 18px 44px rgba(20, 28, 24, 0.16);
  }

  .nav-toggle:checked ~ .header-actions {
    display: block;
  }

  .nav-toggle:checked ~ .menu-open {
    display: none;
  }

  .nav-toggle:checked ~ .header-actions .menu-close {
    position: absolute;
    top: 32px;
    right: 14px;
    z-index: 2;
    display: inline-flex;
    transform: translateY(-50%);
  }

  .nav-toggle:checked ~ .header-actions .menu-close span:nth-child(1) {
    transform: translateY(8px) rotate(45deg);
  }

  .nav-toggle:checked ~ .header-actions .menu-close span:nth-child(2) {
    opacity: 0;
  }

  .nav-toggle:checked ~ .header-actions .menu-close span:nth-child(3) {
    transform: translateY(-8px) rotate(-45deg);
  }

  .header-actions p {
    margin: 0 0 10px;
    padding-bottom: 10px;
    border-bottom: 1px solid #eee;
  }

  .header-phone {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    gap: 6px;
    padding-inline: 52px;
    text-align: center;
  }

  .header-actions strong {
    font-size: 22px;
  }

  .phone-number {
    display: inline-block;
    margin-top: 4px;
  }

  .btn-row {
    justify-content: flex-start;
    flex-wrap: wrap;
    gap: 12px;
  }

  .pill {
    min-width: 0;
    width: 100%;
    min-height: 44px;
    padding: 10px 18px;
    font-size: 15px;
    background: #ffc622;
    color: #222;
    font-weight: 700;
  }

  .hero {
    background: linear-gradient(180deg, #f1f4ed 0%, #f1f4ed 62%, #e6ece0 100%);
  }

  .hero::before {
    inset: 16px;
  }

  .hero-inner {
    grid-template-columns: 1fr;
    gap: 0;
    min-height: 0;
    padding-top: 36px;
  }

  .hero-copy {
    padding: 0 0 24px;
  }

  .badge {
    margin-bottom: 26px;
    padding: 7px 18px;
    font-size: 17px;
  }

  .hero h1 {
    margin-bottom: 18px;
  }

  .manga-title-image {
    width: min(100%, 430px);
    margin-inline: auto;
  }

  .hero-title-block p {
    font-size: 28px;
    text-align: center;
    padding-left: 0;
    text-indent: 0;
  }

  .pc-break {
    display: inline;
  }

  .hero-art img {
    width: min(100%, 430px);
    height: auto;
    max-height: none;
    object-fit: contain;
    object-position: center top;
    border-radius: 24px 24px 0 0;
  }

  .intro {
    padding: 44px 0 32px;
  }

  .intro::before {
    margin-bottom: 12px;
  }

  .intro h2 {
    font-size: 23px;
  }

  .intro h2::before,
  .intro h2::after {
    display: none;
  }

  .intro p {
    font-size: 14px;
  }

  .manga-reader {
    width: 100%;
    padding-bottom: 28px;
  }

  .manga-slideshow-page .manga-stage {
    width: min(100%, calc(100% - 32px));
  }

  .manga-slideshow-page .manga-nav {
    width: 48px;
    height: 48px;
    font-size: 23px;
  }

  .manga-slideshow-page .manga-strip {
    gap: 18px;
    scroll-padding-inline: 40px;
    padding: 2px 40px 8px;
  }

  .manga-slideshow-page .manga-prev {
    left: 8px;
  }

  .manga-slideshow-page .manga-next {
    right: 8px;
  }

  .manga-slideshow-page .manga-page {
    flex-basis: var(--manga-page-width);
  }

  .manga-slideshow-page .manga-page {
    height: auto;
    display: block;
  }

  .manga-slideshow-page .manga-page img {
    width: 100%;
    height: auto;
    max-height: none;
  }

  .manga-single-page .manga-strip {
    padding-inline: 0;
    scroll-padding-inline: 0;
  }

  .manga-single-page .manga-stage {
    width: min(calc(var(--manga-page-height) * 0.74), calc(100% - 96px));
  }

  .manga-single-page .manga-page {
    flex-basis: 100%;
  }

  .manga-single-page .manga-prev {
    left: -48px;
  }

  .manga-single-page .manga-next {
    right: -48px;
  }

  .contact-grid {
    grid-template-columns: 1fr;
    gap: 22px;
  }

  .cta-card {
    padding: 36px 18px 24px;
    margin-bottom: 0;
  }

  .cta-card h3 {
    font-size: 23px;
  }

  .consult-lead {
    font-size: 14px;
    line-height: 1.75;
  }

  .consult-grid {
    grid-template-columns: 1fr;
    margin-top: 28px;
  }

  .consult-item {
    padding: 0 0 28px;
  }

  .consult-item + .consult-item {
    border-left: 0;
    border-top: 1px solid #d7c7ae;
    padding-top: 28px;
  }

  .consult-icon {
    width: 82px;
    height: 82px;
    margin-bottom: 10px;
  }

  .consult-item h4 {
    font-size: 22px;
  }

  .consult-item p {
    font-size: 14px;
  }

  .footer-main {
    min-height: 0;
    grid-template-columns: 1fr;
    gap: 18px;
    padding: 30px 0;
    text-align: left;
  }

  .footer-logo {
    width: min(260px, 100%);
  }

  .footer-address span {
    display: none;
  }

  .mobile-fixed-cta {
    position: fixed;
    right: 0;
    bottom: 0;
    left: 0;
    z-index: 20;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0;
    padding: 0 8px env(safe-area-inset-bottom);
    background: transparent;
    border-top: 0;
    box-shadow: 0 -12px 30px rgba(20, 28, 24, 0.1);
    transition: transform 0.22s ease, opacity 0.22s ease, visibility 0.22s ease;
  }

  .mobile-fixed-cta.is-hidden {
    opacity: 0;
    visibility: hidden;
    transform: translateY(100%);
  }

  .mobile-fixed-cta a {
    min-width: 0;
    min-height: 50px;
    border-radius: 8px 8px 0 0;
    background: #ffc622;
    color: #222;
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 3px;
    padding: 6px 4px;
    font-size: 11px;
    font-weight: 700;
    line-height: 1.15;
    text-align: center;
    text-decoration: none;
    box-shadow: 0 -6px 16px rgba(20, 28, 24, 0.1);
    transition: background 0.18s ease, transform 0.18s ease;
  }

  .mobile-fixed-cta a:first-child {
    background: var(--dark);
    color: #fff;
  }

  .mobile-fixed-cta a:active {
    transform: translateY(1px);
  }

  .mobile-fixed-icon {
    width: 18px;
    height: 18px;
    fill: none;
    stroke: currentColor;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
  }

}

@media (max-width: 420px) {
  .logo-mark {
    width: min(190px, calc(100vw - 104px));
    height: auto;
  }

  .brand-tagline {
    font-size: 11px;
  }

  .brand-name {
    font-size: 24px;
  }

  .brand-sub {
    font-size: 10px;
  }
}
