/* 北出組: the existing paper, Mincho / Gothic roles, portrait frames, rules,
   and capsule links are reused. Only composition and title direction change. */
.kitade-page #day-1.day-overview .image-title { width: 4rem; height: 32dvh; }
.day-overview .list-composition { gap: 1rem; align-items: center; }
.day-overview .flow-list .post-item {
  display: grid;
  grid-template-columns: 8.4rem minmax(0, 1fr);
  align-items: center;
  gap: .5rem;
  padding-block: .75rem;
}
.day-overview .flow-list .row-meta { font-size: 1.15rem; margin: 0; white-space: nowrap; }
.day-overview .flow-list .row-title { font-size: 1.3rem; line-height: 1.5; }
.kitade-page #day-1.day-overview {
  height: auto;
  min-height: var(--screen-height);
  max-height: none;
  justify-content: flex-start;
}
#day-1.day-overview .list-composition { align-items: flex-start; }
#day-1.day-overview .flow-list .post-item { padding-block: 1rem; }
#day-1.day-overview .flow-list .post-item > p:not(.row-meta) {
  grid-column: 1 / -1;
  margin-top: .5rem;
  font-size: 1.4rem;
  line-height: 1.7;
}

.kitade-page :is(#company-work, #sakan).company-intro {
  padding: 32px 20px 64px;
  flex-direction: row-reverse;
  justify-content: center;
  align-items: flex-start;
  gap: 12px;
}
.kitade-page #company-work.company-intro {
  color: #f3f1f0;
  background: linear-gradient(rgb(0 0 0 / 35%), rgb(0 0 0 / 35%)), #f3f1f0 url(images/kitade/decor/22.png) center / cover no-repeat;
}
#company-intro-title, .company-intro-heading {
  flex: 0 0 12%;
  margin: 4dvh 0 0;
}
.company-intro-logo { display: block; width: 100%; height: auto; filter: brightness(0) invert(1); }
#sakan .company-intro-logo { filter: none; }
.kitade-page #sakan.company-intro { gap: 24px; }
#sakan .company-intro-copy { max-width: calc(88% - 24px); }
.company-intro-copy {
  margin-top: 12dvh;
  writing-mode: vertical-rl;
  text-orientation: mixed;
  height: 80%;
  flex: 0 1 auto;
  width: max-content;
  max-width: calc(88% - 12px);
  min-width: 0;
  font: 800 1.5rem/1.5 "Shippori Mincho B1", serif;
  letter-spacing: .02em;
}
#company-work .company-work-highlight {
  color: #28271d;
  background-color: #fff;
  padding-block: .12em;
  padding-inline: .25em;
  margin-inline: .15em;
  -webkit-box-decoration-break: clone;
  box-decoration-break: clone;
}
.company-intro-copy p { margin: 0; }
.company-intro-copy p + p { margin-block-start: .7rem; }
@media (max-height: 620px) {
  .kitade-page :is(#company-work, #sakan).company-intro { padding: 16px 12px 48px; gap: 10px; }
  .kitade-page #sakan.company-intro { gap: 24px; }
  .company-intro-copy {
    margin-top: 8dvh;
    height: 88%;
    line-height: 1.35;
  }
  .company-intro-copy p + p { margin-block-start: .4rem; }
}

.kitade-page .has-section-art { isolation: isolate; }
.has-section-art::before, .has-section-art::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background-repeat: no-repeat;
}
#sakan::before {
  background: url(images/kitade/decor/17.png) center / cover no-repeat;
  opacity: .25;
}
#craft-1::before {
  background: url(images/kitade/decor/24.png) left bottom / auto 25dvh no-repeat;
  opacity: .22;
}
#feature-future::before, #feature-training::before {
  background: url(images/kitade/decor/28.png) right top / 45% auto no-repeat;
  opacity: .3;
}
#entry::before {
  background: url(images/kitade/decor/27.png) center 28% / 95% auto no-repeat;
}

.desktop-side { display: none; }

/* Center each fixed UI within the gutter beside the unchanged 480px site. */
@media (min-width: 769px) {
  .desktop-side {
    --side-width: calc((100vw - 480px) / 2);
    position: fixed;
    top: 50%;
    width: var(--side-width);
    transform: translateY(-50%);
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: center;
    box-sizing: border-box;
    padding-inline: 8px;
  }
  .desktop-side--logo { left: 0; }
  .desktop-side--logo img { display: block; width: min(180px, 100%); height: auto; max-height: 55dvh; object-fit: contain; }
  .desktop-side--cta { right: 0; flex-direction: column; gap: 20px; }
  .desktop-side--cta .button { width: min(230px, 100%); }
  .desktop-side--cta .button .button-el {
    box-sizing: border-box;
    width: 100%;
    padding-inline: clamp(8px, calc((100vw - 769px) / 20), 24px);
  }
  .desktop-side--cta .button .label { padding-right: 4px; white-space: nowrap; }
  .desktop-side--cta .button .arrow {
    flex-shrink: 0;
    width: clamp(12px, calc((100vw - 480px) / 24), 24px);
    height: 1rem;
  }
}

.kitade-page .kitade-section {
  padding-inline: 20px;
  padding-top: clamp(16px, 3dvh, 30px);
  padding-bottom: clamp(54px, 7dvh, 72px);
  background: #f3f1f0 url(images/imgs/material/bg/bg_sp.jpg) center / 100%;
}

.kitade-page :is(#feature-people, #feature-people-story, #feature-future, #feature-training, #person-care, #person-team) .v-title {
  height: 32dvh;
  font-size: 2.2rem;
}

.kitade-inner { width: 100%; min-width: 0; }
.kitade-page .header .logo img { display: block; width: 100%; height: auto; }
.kitade-page .header-inner { width: 100%; box-sizing: border-box; gap: 12px; padding-inline: 16px; }
.kitade-page .header .logo { flex: 1; min-width: 0; max-width: 13rem; }
.kitade-page .header .logo a { width: 100%; }
.header-cta { display: flex; flex-shrink: 0; align-items: center; gap: 6px; }
.kitade-page .header-cta .button-el {
  width: auto;
  min-width: 0;
  min-height: 0;
  padding: 4px 14px;
  box-sizing: border-box;
}
.header-cta .button .label { padding: 0; font-size: 13px; white-space: nowrap; }

.v-title {
  writing-mode: vertical-rl;
  text-orientation: upright;
  font-family: "Shippori Mincho B1", serif;
  font-size: 2.4rem;
  font-weight: 800;
  line-height: 1.4;
  letter-spacing: .03em;
  text-align: start;
  overflow-wrap: anywhere;
  flex-shrink: 0;
  margin: 0;
}

/* Display the supplied artwork without altering the PNGs. The SVG viewBox
   excludes transparent canvas margins, preserving every visible brush stroke. */
.kitade-page .image-title { width: 5rem; }
.kitade-page :is(#day-1, #day-2, #day-3, #day-4) .image-title { width: 6rem; }
.image-title .title-art { display: block; width: 100%; height: 100%; }
.kitade-page .story-head .image-title { width: min(28vw, 13rem); }
.kitade-page .kitade-hero .hero-name.image-title { width: 100%; height: 48dvh; }

.story-head {
  display: flex;
  flex-direction: row-reverse;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
}
.story-head .v-title { height: min(28dvh, 23rem); }
.kitade-photo {
  width: min(100%, 21dvh);
  aspect-ratio: 1040 / 1400;
  flex-shrink: 1;
}
.kitade-photo .image { height: 100%; }
.kitade-photo img { height: 100%; width: 100%; object-fit: cover; }
.story-copy { font-size: 1.4rem; font-weight: 400; line-height: 1.85; }
.story-copy p + p { margin-top: 1rem; }
.strong-copy { font-weight: 700; }
.photo-story .story-copy { padding-top: 1.5rem; }
.kitade-page .tone-warm {
  background-image: url(images/imgs/material/bg/top_bg_parts04_sp.jpg);
  background-size: 100% 100%;
}

/* Existing full-bleed Hero with a vertical company name and short introduction. */
.kitade-page .kitade-hero { padding: 0; }
.kitade-hero .kitade-inner { height: 100%; }
.kitade-page .kitade-hero .t-hero__img { bottom: 0; mask-image: none; -webkit-mask-image: none; }
.kitade-page .kitade-hero .t-hero__img img { object-position: center; }
.kitade-page .kitade-hero .t-hero__title {
  position: absolute;
  top: 44%;
  left: 60%;
  right: auto;
  width: 40%;
  margin: 0;
  translate: -50% -50%;
  color: #f3f1f0;
}
.kitade-hero .title-art { filter: brightness(0); }
.hero-tagline {
  position: absolute;
  top: 12%;
  right: 7%;
  display: flex;
  flex-direction: row-reverse;
  gap: .6rem;
  color: #000;
  font: 800 1.7rem/1.6 "Shippori Mincho B1", serif;
  letter-spacing: .05em;
}
.hero-tagline span { writing-mode: vertical-rl; }
.kitade-page .hero-name { display: flex; flex-direction: column; gap: 1rem; font-size: 5.8rem; line-height: 1.15; }
.kitade-page .kitade-hero .hero-name span { display: block; width: auto; order: initial; }

/* Existing news-style rules become work-process / time / recruitment lists. */
.list-composition, .form-composition {
  display: flex;
  flex-direction: row-reverse;
  align-items: flex-start;
  gap: 1.5rem;
}
.list-composition > .v-title, .form-composition > .v-title { height: min(45dvh, 34rem); }
.dna-list, .dna-facts, .form-fields { min-width: 0; flex: 1; font-size: 1.4rem; line-height: 1.75; }
.dna-list .post-item { border-top: .2rem solid #d39105; padding-block: 1.2rem; }
.dna-list .post-item:last-child { border-bottom: .2rem solid #d39105; }
.dna-list .row-title { font-size: 1.4rem; font-weight: 700; line-height: 1.6; }
.dna-list .row-meta { font-size: 1.4rem; line-height: 1.4; color: rgba(40,39,29,.6); margin-bottom: .4rem; }
.dna-list .row-title + p { margin-top: .8rem; }
.dna-list .post-item p + p { margin-top: .5rem; }
.craft-list { font-weight: 700; }
#craft-1 .list-composition { flex-direction: row; justify-content: center; gap: 2rem; }
.kitade-page #craft-1 .image-title { width: 6rem; height: 56dvh; translate: 0 -6dvh; }
#craft-1 .craft-list { flex: 0 1 74%; font-size: 1.2rem; line-height: 1.4; translate: 0 6dvh; }
#craft-1 .row-title { font-size: calc(1.2rem + 1px); font-weight: 800; }
#craft-1 .post-item { padding: 1rem .6rem; }
#craft-1 .row-title + p { margin-top: .3rem; }
#craft-1 .post-item p + p { margin-top: .2rem; }
@media (max-height: 620px) {
  .kitade-page #craft-1 { padding-inline: 12px; }
  .kitade-page #craft-1 .image-title { translate: 0 -1dvh; }
  #craft-1 .list-composition { gap: 2rem; }
  #craft-1 .post-item { padding: .8rem .5rem; }
  #craft-1 .post-item p { display: inline; margin: 0; }
  #craft-1 .row-title { margin-bottom: .3rem; }
}
.fact-row { border-top: .2rem solid #d39105; padding-block: 1rem; }
.fact-row:last-child { border-bottom: .2rem solid #d39105; }
.fact-row dt { font-weight: 700; margin-bottom: .4rem; }
.fact-row dd { margin: 0; }
.fact-row a { color: currentColor; text-underline-offset: .2em; }
.dummy-value { font-weight: 700; color: #28271d; }
.entry-title { display: flex; flex-direction: row-reverse; justify-content: center; gap: 2rem; }
.entry-title .v-title { height: min(45dvh, 34rem); font-size: 2.8rem; }
.entry-title .entry-signature { padding-top: 9rem; font-size: 2rem; }
.kitade-page .button-el { min-width: 0; max-width: 100%; }
.kitade-page .button-el .label { min-width: 0; }

/* Original form colors / field shape / capsule button, split across two screens. */
.kitade-page .kitade-form { padding: 0; margin: 0; }
.kitade-page .form-screen { background-image: url(images/imgs/material/bg/bg_sp.jpg); }
.field + .field { margin-top: 1.3rem; }
.kitade-form .field { border-top: .2rem solid #d39105; padding-top: .7rem; }
.kitade-page .form .field label { display: block; font-size: 1.4rem; font-weight: 700; line-height: 1.5; margin-bottom: .5rem; }
.field-note { display: inline; margin-left: .6rem; font-weight: 400; color: rgba(40,39,29,.6); white-space: nowrap; }
.kitade-page .kitade-form .field :is(input,textarea,select) {
  display: block;
  box-sizing: border-box;
  width: 100%;
  max-width: 100%;
  min-width: 0;
  height: 4.4rem;
  min-height: 0;
  padding: .9rem 1rem;
  border: 0;
  border-radius: .1rem;
  background: rgba(242,240,235,.6);
  color: #28271d;
  font: 400 16px/1.5 "Noto Sans JP", serif;
  user-select: text;
}
.kitade-page .kitade-form .field textarea { height: 7rem; min-height: 0; field-sizing: fixed; resize: none; }
.kitade-page .kitade-form .field select { appearance: auto; font-size: 14px; }
.form-fields .button { margin-top: 1.5rem; }
.form-fields .button-el { width: 100%; box-sizing: border-box; }
.kitade-form .button .type-base { padding-inline: 1.4rem; }
.kitade-form .button .type-base .label { padding-right: .5rem; }
.form-status { font-size: 1.2rem; line-height: 1.6; margin-top: 1rem; }
.form-status:empty { margin: 0; }
.form-status:not(:empty) { border-top: .2rem solid #d39105; padding-top: .8rem; }

@media (max-height: 740px) {
  .kitade-page .kitade-section { padding-top: 16px; padding-bottom: 54px; }
  .kitade-page .kitade-hero { padding: 0; }
  .story-copy { line-height: 1.7; }
  .story-copy p + p { margin-top: .8rem; }
  .photo-story .story-copy { padding-top: 1.2rem; }
  .story-head .v-title { height: 26dvh; }
  .kitade-photo { width: 19dvh; }
  .dna-list, .dna-facts { line-height: 1.6; }
  .dna-list .post-item { padding-block: .8rem; }
  .dna-list .row-title + p { margin-top: .5rem; }
  .fact-row { padding-block: .7rem; }
  .kitade-page .form .field label { font-size: 1.3rem; }
  .field + .field { margin-top: 1rem; }
  .form-fields .button { margin-top: 1rem; }
}

/* Match body typography to the sakan introduction. */
.kitade-page :is(#jobs, #entry-personal) {
  height: auto;
  min-height: var(--screen-height);
  max-height: none;
  justify-content: flex-start;
}
.kitade-page .kitade-section :is(.company-intro-copy, .story-copy, .dna-list, .dna-facts, .form-fields), .kitade-page .kitade-section :is(p:not(.v-title), dt, dd, .field label, .field-note, input, textarea, select) {
  font-family: "Shippori Mincho B1", serif;
  font-weight: 800;
}

/* Center the three feature titles within the content column. */
.kitade-page :is(#feature-people, #feature-future, #feature-training) .story-head {
  position: relative;
  justify-content: flex-start;
  flex-direction: row;
}
.kitade-page :is(#feature-people, #feature-future, #feature-training) .story-head .image-title {
  position: relative;
  left: 50%;
  translate: -50% 0;
  flex-shrink: 0;
}
.kitade-page :is(#feature-people, #feature-future, #feature-training) .kitade-photo {
  position: absolute;
  left: 0;
  max-width: 28%;
}

/* One continuous day: time in the middle, events on alternating sides. */
#day-1.day-overview .list-composition { display: block; }
.kitade-page #day-1.day-overview .image-title { margin: 0 auto 3rem; }
#day-1 .flow-list { position: relative; width: 100%; }
#day-1 .flow-list::before {
  content: ""; position: absolute; top: 0; bottom: 0; left: 50%;
  width: 1px; background: #d39105; transform: translateX(-50%);
}
#day-1.day-overview .flow-list .post-item {
  position: relative; display: grid; grid-template-columns: minmax(0, 1fr) 24px minmax(0, 1fr);
  gap: 0; padding: 3.2rem 0 2rem; border: 0; align-items: start;
}
#day-1.day-overview .flow-list .row-meta {
  position: absolute; top: 0; left: 50%; transform: translateX(-50%);
  padding: .3rem .6rem; margin: 0; background: #00376c;
  font-size: 1.2rem; line-height: 1.5; color: #fff; z-index: 1;
}
#day-1 .timeline-content { grid-column: 1; min-width: 0; }
#day-1 .post-item:nth-child(even) .timeline-content { grid-column: 3; }
#day-1.day-overview .flow-list .row-title { font-size: 1.4rem; font-weight: 800; line-height: 1.5; }
#day-1 .timeline-content > p { margin-top: .6rem; font-size: 1.2rem; line-height: 1.7; overflow-wrap: anywhere; }
#day-1 .post-item:last-child::before {
  content: ""; position: absolute; top: .6rem; left: 50%;
  width: 8px; height: 8px; border-radius: 50%; background: #d39105; transform: translateX(-50%);
}

/* Two candidate profiles on a single screen. */
#person-care.people-overview .person-profile {
  display: grid; grid-template-columns: 24% minmax(0, 1fr); gap: 1.5rem; align-items: center;
}
#person-care.people-overview .person-profile + .person-profile {
  margin-top: 3rem; padding-top: 3rem; border-top: 1px solid #d39105;
}
.kitade-page #person-care.people-overview .image-title { width: 100%; height: 23dvh; }
#person-care.people-overview .kitade-photo { display: none; }
#person-care.people-overview .person-profile-body { align-self: center; }
#person-care.people-overview .story-copy { font-size: 1.3rem; line-height: 1.6; text-align: left; }
#person-care.people-overview .story-copy p + p { margin-top: .4rem; }

/* Company facts follow the craft page's staggered title/list layout. */
#company .list-composition { flex-direction: row; justify-content: center; gap: 2rem; }
.kitade-page #company .image-title { width: 6rem; height: 56dvh; translate: 0 -6dvh; }
#company .dna-facts { flex: 0 1 74%; font-size: 1.2rem; line-height: 1.4; translate: 0 6dvh; }
#company .fact-row { padding: 1rem .6rem; }
#company .fact-row dt { font-size: calc(1.2rem + 1px); font-weight: 800; }
@media (max-height: 620px) {
  .kitade-page #company { padding-inline: 12px; }
  .kitade-page #company .image-title { translate: 0 -1dvh; }
  #company .fact-row { padding: .8rem .5rem; }
}

/* Mirror the company layout for recruitment requirements. */
#jobs .list-composition { flex-direction: row-reverse; justify-content: center; gap: 2rem; }
.kitade-page #jobs .image-title { width: 6rem; height: 56dvh; margin: 0; }
#jobs .dna-facts { flex: 0 1 74%; font-size: 1.2rem; line-height: 1.4; margin-top: 12dvh; }
#jobs .fact-row { padding: 1rem .6rem; }
#jobs .fact-row dt { font-size: calc(1.2rem + 1px); font-weight: 800; }
@media (max-height: 620px) {
  .kitade-page #jobs { padding-inline: 12px; }
  #jobs .dna-facts { margin-top: 7dvh; }
  #jobs .fact-row { padding: .8rem .5rem; }
}

/* Quiet, varied ornamentation using the supplied transparent artwork. */
.kitade-hero .t-hero__img::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: url(images/kitade/decor/雲.png) right 5% / 55% auto no-repeat;
  opacity: .12;
}
#company-work::before { background: url(images/kitade/decor/31.png) -60px 6% / 70% auto no-repeat; opacity: .10; }
#company-work::after { background: url(images/kitade/decor/雲.png) right bottom / 55% auto no-repeat; opacity: .10; }
#sakan::after { background: url(images/kitade/decor/28.png) right top / 45% auto no-repeat, url(images/kitade/decor/26.png) left bottom / 45% auto no-repeat; opacity: .14; }
#craft-1::after { background: url(images/kitade/decor/29.png) -50px top / 65% auto no-repeat, url(images/kitade/decor/25.png) right bottom / 38% auto no-repeat; opacity: .14; }
#feature-people::before { background: url(images/kitade/decor/30.png) left 8% / 58% auto no-repeat; opacity: .14; }
#feature-people::after { background: url(images/kitade/decor/25.png) right bottom / 48% auto no-repeat, url(images/kitade/decor/雲２.png) left 35% / 50% auto no-repeat; opacity: .18; }
#feature-future::before { background: url(images/kitade/decor/28.png) right top / 48% auto no-repeat; opacity: .18; }
#feature-future::after { background: url(images/kitade/decor/31.png) -55px bottom / 68% auto no-repeat; opacity: .16; }
#feature-training::before { background: url(images/kitade/decor/27.png) right top / 72% auto no-repeat; opacity: .13; }
#feature-training::after { background: url(images/kitade/decor/26.png) left bottom / 48% auto no-repeat; opacity: .18; }
#day-1::before {
  background:
    url(images/kitade/decor/29.png) -40px top / 60% auto no-repeat,
    url(images/kitade/decor/28.png) right 16% / 42% auto no-repeat,
    url(images/kitade/decor/31.png) -65px 34% / 65% auto no-repeat,
    url(images/kitade/decor/28.png) right 51% / 38% auto no-repeat,
    url(images/kitade/decor/27.png) right -60px top 72% / 64% auto no-repeat,
    url(images/kitade/decor/30.png) -50px 92% / 48% auto no-repeat;
  opacity: .14;
}
#day-1::after {
  background:
    url(images/kitade/decor/雲.png) right 5% / 55% auto no-repeat,
    url(images/kitade/decor/26.png) left 23% / 44% auto no-repeat,
    url(images/kitade/decor/25.png) right 43% / 46% auto no-repeat,
    url(images/kitade/decor/雲.png) left 63% / 55% auto no-repeat,
    url(images/kitade/decor/雲２.png) left 82% / 50% auto no-repeat,
    url(images/kitade/decor/25.png) right bottom / 48% auto no-repeat;
  opacity: .16;
}
#person-care::before { background: url(images/kitade/decor/25.png) right top / 45% auto no-repeat; opacity: .16; }
#person-care::after { background: url(images/kitade/decor/26.png) left bottom / 48% auto no-repeat; opacity: .16; }
#company::before { background: url(images/kitade/decor/31.png) -55px 10% / 70% auto no-repeat; opacity: .15; }
#company::after { background: url(images/kitade/decor/25.png) right bottom / 46% auto no-repeat; opacity: .18; }
#jobs::before { background: url(images/kitade/decor/27.png) right top / 65% auto no-repeat; opacity: .13; }
#jobs::after { background: url(images/kitade/decor/26.png) left bottom / 48% auto no-repeat, url(images/kitade/decor/28.png) right 55% / 38% auto no-repeat; opacity: .16; }
#entry::before { opacity: .24; }
#entry::after { background: url(images/kitade/decor/雲.png) left top / 48% auto no-repeat, url(images/kitade/decor/25.png) right bottom / 48% auto no-repeat; opacity: .18; }
#entry-personal::before { background: url(images/kitade/decor/30.png) right top / 55% auto no-repeat; opacity: .09; }
#entry-personal::after { background: url(images/kitade/decor/26.png) left bottom / 44% auto no-repeat, url(images/kitade/decor/雲２.png) right 55% / 55% auto no-repeat; opacity: .14; }

/* Stack the entry heading and form along the center line. */
#entry-personal .form-composition {
  flex-direction: column;
  align-items: center;
  gap: 3rem;
}
#entry-personal .form-composition > .v-title {
  margin: 0 auto;
  flex-shrink: 0;
}
#entry-personal .form-fields {
  flex: none;
  width: 100%;
  max-width: 34rem;
  margin-inline: auto;
}

.kitade-page #entry-personal {
  background: #f3f1f0 url(images/kitade/decor/20.png) center / cover no-repeat;
}

/* Keep entry headings and field labels legible over the artwork. */
#entry-personal .form-composition > .v-title {
  writing-mode: horizontal-tb;
  height: auto;
  width: 100%;
  font-size: 3rem;
  text-align: center;
  color: #28271d;
  text-shadow: 0 0 6px #fff, 0 0 12px #fff;
}
.kitade-page #entry-personal .field :is(input, textarea, select) {
  background: #fff;
}
.kitade-page #entry-personal .field label {
  display: inline-flex;
  align-items: center;
  padding: 0;
  background: transparent;
  color: #28271d;
}
#entry-personal .field-label-text, #entry-personal .field-note {
  padding: .35rem .7rem;
  background: rgb(255 255 255 / 94%);
  border-radius: .2rem;
}
#entry-personal .field-note {
  display: inline-block;
  margin-left: 12px;
}

#entry-personal .entry-title {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: .8rem;
  width: 100%;
  color: #28271d;
  text-shadow: 0 0 6px #fff, 0 0 12px #fff;
}
#entry-personal .entry-title .v-title {
  writing-mode: horizontal-tb;
  height: auto;
  padding: 0;
  margin: 0;
  text-align: center;
  font-size: 1.8rem;
  line-height: 1.7;
}
#entry-personal .entry-title .entry-signature { font-size: 1.6rem; }

#entry-personal .field-label-text {
  background: #00376c;
  color: #fff;
}

@media (min-width: 769px) {
  html.swipe-container {
    background: #f3f1f0 url(images/kitade/decor/desktop-background.png) center / cover no-repeat fixed;
  }
}

/* Brand palette; raster artwork keeps its tonal texture. */
:root {
  --kitade-base: #f3f1f0;
  --kitade-blue: #00376c;
  --kitade-gold: #d39105;
}
.kitade-page .header { background: var(--kitade-base); }
.kitade-page :is(#sakan, #craft-1, #feature-people, #feature-future, #feature-training, #day-1, #person-care, #company, #jobs) {
  background-color: var(--kitade-base);
  background-image: linear-gradient(rgb(243 241 240 / 82%), rgb(243 241 240 / 82%)), url(images/imgs/material/bg/bg_sp.jpg);
}
.kitade-page .button .button-el.type-base {
  background-color: var(--kitade-base);
  color: var(--kitade-blue);
  border-color: var(--kitade-blue);
}
.kitade-page .button .button-el.type-base .label, .kitade-page .button .button-el.type-base .arrow { color: var(--kitade-blue); }
.kitade-page #entry-personal .field { border-color: var(--kitade-gold); }
#entry-personal .field-note { background: var(--kitade-base); color: var(--kitade-blue); }
@media (min-width: 769px) {
  html.swipe-container {
    background-image: linear-gradient(rgb(243 241 240 / 45%), rgb(243 241 240 / 45%)), url(images/kitade/decor/desktop-background.png);
  }
}

/* Keep the referral arrow inset consistently, including native mobile selects. */
.kitade-page #entry-personal #referral {
  -webkit-appearance: none;
  appearance: none;
  padding-right: 42px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='m1 1 5 5 5-5' fill='none' stroke='%2328271d' stroke-width='1.5'/%3E%3C/svg%3E");
  background-position: right 16px center;
  background-repeat: no-repeat;
  background-size: 12px 8px;
}

.kitade-page .button .button-el:hover,
.kitade-page .button .button-el:hover .label {
  color: #fff;
}

.kitade-page #entry-personal #motivation {
  resize: vertical;
  min-height: 100px;
  max-height: none;
  overflow: auto;
}

/* Gold brush mark beside each schedule heading. */
#day-1.day-overview .flow-list .row-title {
  position: relative;
  padding-left: 1.35em;
}
#day-1.day-overview .flow-list .row-title::before {
  content: "";
  position: absolute;
  top: .25em;
  left: 0;
  width: 1em;
  height: 1em;
  background: url("images/kitade/decor/30.png") center / contain no-repeat;
}

/* Long sections share the document scroller, avoiding nested swipe trapping.
   Native scroll snap permits free scrolling inside an oversized snap area. */
.kitade-page .swipe-section:is(#day-1, #jobs, #entry-personal) {
  height: auto;
  min-height: var(--screen-height);
  max-height: none;
  display: block;
  overflow: visible;
  scroll-snap-align: start;
  scroll-snap-stop: always;
}
