/* ============================================================
   denof Inc. — subpage styles
   Shared tokens, header, footer, buttons and common sections are
   provided by style.css. This file only styles lower-page content.
   ============================================================ */

/* ---------- page introduction ---------- */
.page-hero {
  --hero-image:url('/assets/img/banner-development.webp');
  position: relative;
  padding: clamp(52px, 6vw, 76px) 0 clamp(38px, 5vw, 58px);
  border-bottom: 1px solid var(--line);
  background-color:#eef1f1;
  background-image:linear-gradient(90deg,#ffffffef 0%,#ffffffde 42%,#ffffffae 100%),var(--hero-image);
  background-size:cover;
  background-position:center;
}
.page-hero--works { background-position:center,center 65%; }
.page-hero--products {
  --hero-image:url('/assets/img/richman-app-mv.png');
  background-size:cover,auto 155%;
  background-position:center,right 8% center;
  background-repeat:no-repeat;
}
.page-hero--company { --hero-image:url('/assets/img/city-hero.webp'); }
.page-hero--contact { --hero-image:url('/assets/img/banner-consultation.webp'); }

.page-hero .en {
  display: block;
  margin-bottom: 16px;
  color: #b02f13;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .14em;
  line-height: 1;
}

.page-hero h1 {
  font-size: clamp(32px, 3.6vw, 52px);
  font-weight: 700;
  letter-spacing: .035em;
  line-height: 1.22;
}

.page-hero .lead {
  max-width: none;
  margin-top: 22px;
  color: var(--text);
  font-size: 16px;
  line-height: 2;
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 0 10px;
  margin-top: 38px;
  color: var(--text-mute);
  font-size: 11px;
  letter-spacing: .08em;
  line-height: 1.5;
}

.breadcrumb a { color: var(--text-soft); }
.breadcrumb a:hover { color: #b02f13; }
.breadcrumb .sep { color: var(--line); }

/* Preserve the supplied photos as photographs, rather than treating them
   as a dark visual effect. */
.photo-strip-sec {
  padding-top: clamp(42px, 6vw, 76px);
}

.photo-strip {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}

.photo-strip figure,
.photo-wide {
  overflow: hidden;
  margin: 0;
  border-radius: 0;
  background: var(--bg-2);
}

.photo-strip figure { aspect-ratio: 1.3 / 1; }
.photo-wide { aspect-ratio: 2.45 / 1; }
.photo-strip img,
.photo-wide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.photo-strip figure::after,
.photo-wide::after { display: none; }

/* ---------- services ---------- */
.svc-row {
  display: grid;
  grid-template-columns: minmax(142px, .32fr) minmax(0, 1fr);
  gap: clamp(24px, 5vw, 72px);
  padding: clamp(52px, 7vw, 88px) 0;
  border-top: 1px solid var(--line);
}

.svc-row:last-child { border-bottom: 1px solid var(--line); }

.svc-row .side {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 10px;
  color: var(--text-mute);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .09em;
  line-height: 1.5;
}

.svc-row .side .no {
  color: #b02f13;
  font-size: 12px;
  letter-spacing: .05em;
}

.svc-row h2 {
  font-size: clamp(26px, 3vw, 40px);
  font-weight: 700;
  letter-spacing: .03em;
  line-height: 1.35;
}

.svc-row h2 small,
.prod-feature h2 small {
  display: block;
  margin-top: 10px;
  color: var(--text-soft);
  font-size: 14px;
  font-weight: 400;
  letter-spacing: .035em;
  line-height: 1.75;
}

.svc-row .desc,
.prod-feature .desc {
  max-width: 720px;
  margin-top: 22px;
  color: var(--text-soft);
  font-size: 16px;
  line-height: 2;
}

.svc-points {
  display: grid;
  gap: 10px;
  max-width: 800px;
  margin-top: 28px;
}

.svc-points.cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }

.svc-points li {
  padding: 18px 20px 19px;
  border: 1px solid var(--line-soft);
  background: var(--bg);
  color: var(--text-soft);
  font-size: 14px;
  line-height: 1.85;
}

.svc-points li b {
  display: block;
  margin-bottom: 5px;
  color: var(--text);
  font-size: 14px;
  font-weight: 700;
}

.svc-note {
  max-width: 760px;
  margin-top: 22px;
  color: var(--text-mute);
  font-size: 13px;
  line-height: 1.8;
}

/* ---------- products ---------- */
.prod-feature {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(300px, .72fr);
  grid-template-areas: "head visual" "body visual";
  column-gap: clamp(36px, 7vw, 104px);
  row-gap: 0;
  padding: clamp(54px, 7vw, 88px) 0;
  border-top: 1px solid var(--line);
}

.prod-feature.rev { grid-template-areas: "visual head" "visual body"; }
.prod-feature .pf-head { grid-area: head; align-self: end; }
.prod-feature .pf-body { grid-area: body; }
.prod-feature .visual { grid-area: visual; }

.prod-feature .tag {
  display: block;
  margin-bottom: 16px;
  color: #b02f13;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .09em;
  line-height: 1.4;
}

.prod-feature h2 {
  font-size: clamp(30px, 3.5vw, 48px);
  font-weight: 700;
  letter-spacing: .02em;
  line-height: 1.18;
}

.prod-feature .meta {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-top: 30px;
  border-top: 1px solid var(--line);
}

.prod-feature .meta div { padding: 15px 14px 0 0; }
.prod-feature .meta div + div { padding-left: 14px; border-left: 1px solid var(--line-soft); }
.prod-feature .meta dt {
  color: var(--text-mute);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .08em;
}
.prod-feature .meta dd {
  margin-top: 5px;
  color: var(--text);
  font-size: 13px;
  line-height: 1.65;
}
.prod-feature .meta a { color: #b02f13; }
.prod-feature .meta a:hover { color: #b02f13; }

.store-links {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  margin-top: 28px;
}

.store-btn {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-height: 42px;
  padding: 9px 13px;
  border: 1px solid var(--line);
  color: var(--text);
  font-size: 12px;
  letter-spacing: .02em;
  line-height: 1.2;
}
.store-btn:hover { border-color: #b02f13; color: #b02f13; }

.prod-feature .visual {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 340px;
  padding: 42px;
  border: 1px solid var(--line-soft);
}
.prod-feature .visual.rm { background: #edf5ed; }
.prod-feature .visual.yz { background: #002f75; }
.prod-feature .visual.rm img {
  width: clamp(108px, 12vw, 156px);
  border-radius: 20%;
  box-shadow: 0 12px 28px rgba(38, 38, 36, .16);
}
.prod-feature .visual.yz img { width: min(100%, 290px); }

/* ---------- company ---------- */
.msg-block {
  display: grid;
  grid-template-columns: minmax(0, .93fr) minmax(0, 1.07fr);
  gap: clamp(36px, 8vw, 126px);
  padding-top: 6px;
}

.msg-block .headline {
  font-size: clamp(30px, 3.8vw, 52px);
  font-weight: 700;
  letter-spacing: .025em;
  line-height: 1.43;
}
.msg-block .headline .grad { color: var(--coral); }
.msg-block .headline-phrase { display: inline-block; }
.msg-body { max-width: 620px; }
.msg-body p {
  margin-bottom: 20px;
  color: var(--text-soft);
  font-size: 16px;
  line-height: 2;
}
.msg-body p.strong { color: var(--text); font-weight: 700; }
.msg-sign {
  display: flex;
  flex-direction: column;
  gap: 5px;
  margin-top: 32px;
  padding-top: 20px;
  border-top: 1px solid var(--line);
}
.msg-sign .role { color: var(--text-mute); font-size: 12px; }
.msg-sign .name { font-size: 20px; font-weight: 700; letter-spacing: .1em; }
.representative-signature { width:280px; height:auto; margin-left:-40px; }
.bank-list { display:flex; flex-wrap:wrap; gap:4px 24px; }

.co-panel { margin-top: 34px; border-top: 1px solid var(--line); }
.co-table > div {
  display: grid;
  grid-template-columns: 180px minmax(0, 1fr);
  border-bottom: 1px solid var(--line);
}
.co-table dt {
  padding: 20px 20px 20px 0;
  color: var(--text-mute);
  font-size: 13px;
  font-weight: 700;
}
.co-table dd {
  padding: 20px 0;
  color: var(--text);
  font-size: 15px;
  line-height: 1.85;
}
.co-table dd small {
  display: block;
  margin-top: 5px;
  color: var(--text-mute);
  font-size: 13px;
}

/* ---------- works ---------- */
.works-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  margin-top: 32px;
}

.work-card {
  display: block;
  overflow: hidden;
  border: 1px solid var(--line);
  background: var(--bg);
  transition: border-color .2s ease, transform .2s ease;
}
.work-card:hover { border-color: var(--coral); transform: translateY(-3px); }
.work-card .frame {
  display: flex;
  align-items: center;
  gap: 5px;
  height: 28px;
  padding: 0 10px;
  border-bottom: 1px solid var(--line-soft);
  background: var(--bg-2);
}
.work-card .fdot { width: 6px; height: 6px; border-radius: 50%; background: #c8c4be; }
.work-card .fdot:first-child { background: var(--coral); }
.work-card .furl {
  overflow: hidden;
  margin-left: 4px;
  color: var(--text-mute);
  font-size: 9px;
  letter-spacing: .02em;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.work-card .thumb { aspect-ratio: 1.54 / 1; overflow: hidden; background: var(--bg-2); }
.work-card .thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform .35s ease; }
.work-card:hover .thumb img { transform: scale(1.025); }
.work-card .body { padding: 17px 18px 19px; }
.work-card .row1 { display: flex; align-items: flex-start; justify-content: space-between; gap: 8px; }
.work-card h3 { min-width: 0; font-size: 16px; font-weight: 700; line-height: 1.55; overflow-wrap: anywhere; }
.work-card .row1 h3 { flex: 1 1 auto; }
.work-card p { margin-top: 8px; color: var(--text-soft); font-size: 13px; line-height: 1.7; }
.pill {
  display: inline-block;
  flex: 0 0 auto;
  max-width: 48%;
  padding: 3px 6px;
  border: 1px solid var(--line);
  color: var(--text-mute);
  font-size: 10px;
  line-height: 1.2;
  overflow-wrap: anywhere;
  text-align: right;
}

.arch-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 20px;
  padding-bottom: 24px;
  border-bottom: 1px solid var(--line);
}
.arch-head .eyebrow { margin-bottom: 0; }
.arch-count { color: var(--text-mute); font-size: 13px; letter-spacing: .06em; }
.case-group { display: grid; grid-template-columns: 180px minmax(0, 1fr); gap: 24px; border-bottom: 1px solid var(--line); }
.case-group-title { padding: 28px 0; font-size: 17px; font-weight: 700; line-height: 1.7; }
.arch-list { min-width: 0; }
.arch-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 18px 0;
  border-bottom: 1px solid var(--line-soft);
}
.arch-row:last-child { border-bottom: 0; }
.arch-main { display: flex; flex: 1 1 auto; flex-direction: column; gap: 3px; min-width: 0; }
.arch-title { color: var(--text); font-size: 17px; font-weight: 700; line-height: 1.65; }
.arch-desc { color: var(--text-soft); font-size: 14px; line-height: 1.7; }
.arch-tags { display: flex; flex: 0 0 auto; flex-wrap: wrap; justify-content: flex-end; gap: 5px; }
.arch-tags i {
  padding: 4px 8px;
  border: 1px solid var(--line-soft);
  background: var(--bg-2);
  color: var(--text-soft);
  font-size: 12px;
  font-style: normal;
  line-height: 1.3;
}
.works-note {
  max-width: 760px;
  margin-top: 28px;
  color: var(--text-mute);
  font-size: 13px;
  line-height: 1.8;
}

/* ---------- contact ---------- */
.contact-single { max-width: 760px; margin: 0 auto; }
.contact-intro {
  margin-bottom: 34px;
  padding-bottom: 28px;
  border-bottom: 1px solid var(--line);
  color: var(--text-soft);
  font-size: 16px;
  line-height: 2;
}
.form { display: grid; gap: 22px; }
.field { display: grid; gap: 8px; }
.field label { color: var(--text); font-size: 14px; font-weight: 700; }
.field .req { margin-left: 4px; color: #b02f13; }
.field input,
.field select,
.field textarea {
  width: 100%;
  min-height: 48px;
  padding: 11px 13px;
  border: 1px solid #c9c5c0;
  border-radius: 0;
  outline: 2px solid transparent;
  outline-offset: 2px;
  background: #fff;
  color: var(--text);
  font: inherit;
  font-size: 16px;
  line-height: 1.55;
  transition: border-color .18s ease, box-shadow .18s ease;
}
.field textarea { min-height: 182px; resize: vertical; }
.field input::placeholder,
.field textarea::placeholder { color: #6b6864; }
.field input:focus,
.field select:focus,
.field textarea:focus { border-color: #b02f13; outline-color: #b02f13; box-shadow: 0 0 0 3px rgba(176, 47, 19, .13); }
.submit-row { display: flex; align-items: center; flex-wrap: wrap; gap: 16px; margin-top: 10px; }
.status { color: var(--text-soft); font-size: 13px; }
.mail-note { margin-top: 25px; color: var(--text-mute); font-size: 13px; line-height: 1.8; }

/* ---------- not found ---------- */
.nf { padding: clamp(150px, 21vw, 250px) 0 clamp(100px, 14vw, 160px); }
.nf .code { color: var(--coral); font-size: clamp(84px, 16vw, 186px); font-weight: 700; letter-spacing: -.05em; line-height: .9; }
.nf h1 { margin-top: 28px; font-size: clamp(28px, 4vw, 48px); line-height: 1.35; }
.nf p { max-width: 540px; margin-top: 14px; color: var(--text-soft); font-size: 16px; }
.nf .btn { margin-top: 32px; }

/* ---------- responsive ---------- */
@media (max-width: 900px) {
  .works-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .arch-row { display: block; }
  .arch-tags { justify-content: flex-start; margin-top: 10px; }
  .prod-feature,
  .prod-feature.rev {
    grid-template-columns: minmax(0, 1fr) minmax(250px, .68fr);
    grid-template-areas: "head visual" "body visual";
    column-gap: 34px;
  }
  .msg-block { gap: 42px; }
}

@media (max-width: 680px) {
  .page-hero .lead { font-size: 15px; }
  .page-hero { background-position:center,68% center; }
  .page-hero--products { background-position:center,right -100px center; }
  .representative-signature { width:250px; margin-left:-35px; }
  .bank-list { gap:5px 18px; }
  .photo-strip { gap: 7px; }
  .photo-wide { aspect-ratio: 1.65 / 1; }

  .svc-row,
  .msg-block { display: block; }
  .svc-row { padding: 46px 0; }
  .svc-row .side { margin-bottom: 20px; }
  .svc-row h2 small,
  .prod-feature h2 small { font-size: 13px; }
  .svc-points.cols-2 { grid-template-columns: 1fr; }

  .prod-feature, .prod-feature.rev {
    grid-template-columns: minmax(0, 1fr);
    grid-template-areas: "head" "visual" "body";
    gap: 24px;
    padding: 48px 0;
  }
  .prod-feature .visual { min-height: 250px; padding: 34px; }
  .prod-feature .meta { grid-template-columns: 1fr; }
  .prod-feature .meta div,
  .prod-feature .meta div + div { padding: 13px 0; border-left: 0; border-bottom: 1px solid var(--line-soft); }
  .prod-feature .meta div:last-child { border-bottom: 0; }

  .msg-block .headline { margin-bottom: 29px; font-size: clamp(24px, 6vw, 30px); }
  .msg-body p { font-size: 15px; }
  .co-table > div { grid-template-columns: 1fr; padding: 15px 0; }
  .co-table dt { padding: 0; font-size: 12px; }
  .co-table dd { padding: 6px 0 0; font-size: 14px; }

  .works-grid { grid-template-columns: 1fr; gap: 12px; }
  .case-group { grid-template-columns: 1fr; gap: 0; padding: 19px 0; }
  .case-group-title { padding: 0 0 12px; }
  .arch-row { display: block; padding: 15px 0; }
  .arch-tags { justify-content: flex-start; margin-top: 10px; }

  .contact-intro { font-size: 15px; }
  .field input,
  .field select,
  .field textarea { font-size: 16px; }
  .submit-row { align-items: flex-start; flex-direction: column; }
}

@media (max-width: 360px) {
  .page-hero h1 { font-size: 32px; }
  .svc-row h2 { font-size: 25px; }
  .prod-feature h2 { font-size: 29px; }
  .store-btn { width: 100%; justify-content: space-between; }
  .arch-head { align-items: flex-start; flex-direction: column; gap: 8px; }
}

/* ---------- service / works cross-links ---------- */
.service-case-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 16px;
  margin-top: 24px;
}

.service-case-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: #b02f13;
  font-size: 13px;
  font-weight: 700;
  line-height: 1.6;
}

.service-case-link:hover { color: var(--text); }
.service-case-link span { font-size: 11px; text-decoration: none; }

.works-nav {
  border-bottom: 1px solid var(--line);
  background: var(--bg-2);
}

.works-nav .wrap {
  display: flex;
  align-items: center;
  gap: 12px 22px;
  padding-top: 15px;
  padding-bottom: 15px;
}

.works-nav span {
  color: var(--text-mute);
  font-size: 12px;
  font-weight: 700;
  white-space: nowrap;
}

.works-nav a {
  color: var(--text-soft);
  font-size: 13px;
  line-height: 1.5;
}

.works-nav a:hover { color: #b02f13; transform: translateY(-2px); }

.works-section-title {
  font-size: clamp(24px, 3vw, 36px);
  font-weight: 700;
  letter-spacing: .025em;
  line-height: 1.45;
}

.works-section-title + .eyebrow { margin-top: 18px; }
.works-note--pre { margin: 18px 0 0; }

@media (max-width: 680px) {
  .works-nav .wrap { align-items: flex-start; flex-wrap: wrap; gap: 9px 16px; }
  .works-nav span { width: 100%; }
  .works-section-title { font-size: 24px; }
  .service-case-links { gap: 9px 14px; }
}

/* A clear section boundary replaces the decorative company photo. */
.company-profile { background: var(--bg-2); }
