/* She header / typography / share refinements (2026-11-20c)
 * Loaded after the child theme stylesheet.
 */

/* -------------------------------------------------------------------------
 * Typography: keep the original gothic character, using a clean Google font.
 * ---------------------------------------------------------------------- */
html body,
html body input,
html body textarea,
html body select,
html body button,
html body h1,
html body h2,
html body h3,
html body h4,
html body h5,
html body h6,
html body .rich_font {
  font-family: "Zen Kaku Gothic New", -apple-system, BlinkMacSystemFont,
    "Hiragino Sans", "Hiragino Kaku Gothic ProN", "Yu Gothic", YuGothic,
    "Noto Sans JP", Meiryo, sans-serif !important;
}

/* -------------------------------------------------------------------------
 * Header: the site is a one-page site, so the navigation is not used.
 * ---------------------------------------------------------------------- */
#global_menu,
#menu_button,
.she-site-nav,
#she-site-menu-button {
  display: none !important;
}

#header { position: relative; z-index: 20; }
#header_inner { position: relative; }

/* Normal desktop logo: 40px -> 30px, optically centred in the 90px band. */
@media (min-width: 768px) {
  .pc #logo_image img.pc_logo_image {
    width: auto;
    height: auto;
    max-width: 8rem;
    max-height: 30px;
  }
}

/* Compact mobile logo. */
@media (max-width: 1023px) {
  #logo_image img.mobile_logo_image {
    width: auto;
    height: auto;
    max-height: 22px;
  }
}

/* Fixed desktop header: keep the logo inside the 50px band. */
@media (min-width: 768px) {
  body.header_fix #header,
  body.header_fix #header_inner {
    height: 50px;
    min-height: 50px;
  }

  body.header_fix #header_inner {
    box-sizing: border-box;
    padding-left: 8rem;
    padding-right: 8rem;
  }

  body.header_fix #logo_image,
  body.header_fix #logo_text {
    display: block !important;
    position: absolute;
    top: 50%;
    left: 0;
    z-index: 3;
    max-height: 30px;
    margin: 0;
    transform: translateY(-50%);
  }

  html.pc body.header_fix #logo_image img.pc_logo_image {
    display: block;
    width: auto;
    max-width: 8rem;
    max-height: 26px;
  }

  body.header_fix #logo_text {
    max-width: 6.6rem;
    overflow: hidden;
    font-size: 1rem;
    line-height: 1.2;
    white-space: nowrap;
    text-overflow: ellipsis;
  }

  body.header_fix #header_button {
    z-index: 4;
  }
}

/* Mobile fixed header: the theme adds body.header_fix after scrolling, but
 * its own rule hides the logo, leaving an empty bar. Show a compact logo. */
@media (max-width: 767px) {
  html.mobile body.header_fix {
    padding-top: 56px;
  }

  html.mobile body.header_fix #header {
    position: fixed;
    top: 0;
    left: 0;
    z-index: 200;
    width: 100%;
    min-width: 0;
    height: 56px;
    background: rgba(255, 255, 255, .96);
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
    box-shadow: 0 1px 0 rgba(0, 0, 0, .06);
    animation: she-mobile-header-in .26s ease;
  }

  html.mobile body.header_fix #header_inner {
    height: 56px;
    width: 100%;
  }

  html.mobile body.header_fix #logo_image {
    display: block;
    position: absolute;
    top: 50%;
    left: 20px;
    transform: translateY(-50%);
  }

  html.mobile body.header_fix #logo_image img.mobile_logo_image {
    display: block;
    width: auto;
    height: auto;
    max-height: 20px;
  }
}

@keyframes she-mobile-header-in {
  from { opacity: .4; transform: translateY(-100%); }
  to   { opacity: 1; transform: none; }
}

/* -------------------------------------------------------------------------
 * Share: one calm control that opens a compact, icon-led panel.
 * The panel carries an ID, so the older #single_share_bottom rules win only
 * when these are scoped to the same ID.
 * ---------------------------------------------------------------------- */
#single_share_bottom.she-share-panel {
  width: min(100%, 760px);
  margin: 20px auto;
  text-align: center;
}

#single_share_bottom .she-share-details {
  display: block;
  width: 100%;
  max-width: 100%;
  text-align: left;
}

#single_share_bottom .she-share-summary {
  display: flex;
  width: fit-content;
  margin: 0 auto;
  align-items: center;
  justify-content: center;
  gap: 7px;
  min-height: 34px;
  padding: 0 14px;
  box-sizing: border-box;
  border: 1px solid #e8dfe2;
  border-radius: 999px;
  background: #fff;
  color: #594c54;
  cursor: pointer;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: .06em;
  list-style: none;
  transition: border-color .18s ease, box-shadow .18s ease;
}

#single_share_bottom .she-share-summary::-webkit-details-marker { display: none; }
#single_share_bottom .she-share-summary::marker { content: ""; }

#single_share_bottom .she-share-summary__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 14px;
  height: 14px;
  color: #a96f8d;
}

#single_share_bottom .she-share-summary__icon svg {
  display: block;
  width: 14px;
  height: 14px;
}

#single_share_bottom .she-share-summary__hint {
  color: #b98ba3;
  font-size: 13px;
  line-height: 1;
  transition: transform .2s ease;
}

#single_share_bottom .she-share-details[open] .she-share-summary__hint {
  transform: rotate(45deg);
}

#single_share_bottom .she-share-summary:hover,
#single_share_bottom .she-share-summary:focus-visible {
  border-color: #c18aa8;
  box-shadow: 0 0 0 3px rgba(193, 138, 168, .16);
  outline: 0;
}

#single_share_bottom .she-share-summary:focus-visible {
  outline: 2px solid #9a607e;
  outline-offset: 2px;
}

#single_share_bottom .she-share-details__content {
  box-sizing: border-box;
  width: min(100%, 760px);
  margin-top: 8px;
  padding: 8px;
  border: 1px solid #eee7e9;
  border-radius: 12px;
  background: rgba(255, 255, 255, .96);
  box-shadow: 0 8px 22px rgba(77, 60, 70, .06);
}

#single_share_bottom .she-share-details__content .single_share,
#single_share_bottom .she-share-details__content .share-top,
#single_share_bottom .she-share-details__content .share-btm { margin: 0; }

#single_share_bottom .she-share-list,
#single_share_bottom .she-share-details__content ul {
  display: flex !important;
  flex-wrap: wrap;
  justify-content: center;
  align-items: stretch;
  gap: 6px;
  width: 100%;
  margin: 0 !important;
  padding: 0 !important;
  list-style: none;
}

#single_share_bottom .she-share-list > li {
  display: block;
  float: none !important;
  flex: 0 0 auto;
  width: auto !important;
  min-width: 0;
  margin: 0 !important;
  padding: 0 !important;
  background: none;
}

#single_share_bottom .she-share-list a.she-share-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  width: auto !important;
  min-width: 74px !important;
  max-width: none;
  height: 42px;
  min-height: 0 !important;
  padding: 0 12px !important;
  box-sizing: border-box;
  border: 1px solid #ece5e8 !important;
  border-radius: 8px !important;
  background: #fff !important;
  color: #6b5a62 !important;
  font-size: 10.5px !important;
  font-weight: 500;
  line-height: 1 !important;
  letter-spacing: .03em;
  text-decoration: none;
  white-space: nowrap;
  transition: border-color .18s ease, background .18s ease, color .18s ease,
    box-shadow .18s ease;
}

#single_share_bottom .she-share-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  width: 16px;
  height: 16px;
}

#single_share_bottom .she-share-icon svg {
  display: block;
  width: 16px;
  height: 16px;
  fill: currentColor !important;
}

#single_share_bottom .she-share-name {
  display: inline-block;
  line-height: 1;
}

#single_share_bottom .she-share-list a.she-share-link:hover,
#single_share_bottom .she-share-list a.she-share-link:focus-visible {
  border-color: #d9b7c8 !important;
  background: #fdf7fa !important;
  color: #8a536d !important;
  box-shadow: 0 3px 10px rgba(90, 60, 75, .08);
  outline: 0;
}

#single_share_bottom .she-share-list a.she-share-link:focus-visible {
  outline: 2px solid #9a607e;
  outline-offset: 2px;
}

@media (max-width: 767px) {
  #single_share_bottom.she-share-panel {
    margin: 16px auto;
    padding: 0 12px;
    box-sizing: border-box;
  }

  #single_share_bottom .she-share-details { display: block; }
  #single_share_bottom .she-share-summary {
    display: flex;
    width: fit-content;
    margin: 0 auto;
  }

  #single_share_bottom .she-share-details__content {
    width: 100%;
    padding: 8px;
  }

  /* Four per row; the final three stay centred. */
  #single_share_bottom .she-share-list > li {
    flex: 1 1 calc(25% - 5px);
    max-width: calc(25% - 5px);
  }

  #single_share_bottom .she-share-list a.she-share-link {
    flex-direction: column !important;
    flex-wrap: nowrap !important;
    justify-content: center;
    width: 100% !important;
    height: 54px !important;
    gap: 3px;
    padding: 6px 2px !important;
    font-size: 9.5px !important;
    white-space: nowrap;
  }

  #single_share_bottom .she-share-icon,
  #single_share_bottom .she-share-icon svg {
    width: 17px;
    height: 17px;
  }
}

/* Very narrow phones: icon tiles only; labels remain for screen readers. */
@media (max-width: 359px) {
  #single_share_bottom .she-share-name {
    position: absolute;
    width: 1px;
    height: 1px;
    margin: -1px;
    padding: 0;
    overflow: hidden;
    clip: rect(0 0 0 0);
    white-space: nowrap;
    border: 0;
  }

  #single_share_bottom .she-share-list a.she-share-link {
    height: 40px;
    min-width: 0 !important;
    padding: 0 !important;
  }
}

@media (prefers-reduced-motion: reduce) {
  #single_share_bottom .she-share-summary__hint,
  #single_share_bottom .she-share-list a.she-share-link { transition: none; }
  #single_share_bottom .she-share-details[open] .she-share-details__content { animation: none; }
  html.mobile body.header_fix #header { animation: none; }
}

#single_share_bottom .she-share-details[open] .she-share-details__content {
  animation: she-share-open .2s ease-out;
}

@keyframes she-share-open {
  from { opacity: .6; transform: translateY(-4px); }
  to   { opacity: 1; transform: none; }
}

/* -------------------------------------------------------------------------
 * Mobile reading comfort (kept from the previous refinement).
 * ---------------------------------------------------------------------- */
@media (max-width: 767px) {
  .she-home-opening__meaning p,
  .she-home-greeting p,
  .she-home-profile__copy > p:last-child,
  .she-home-service li {
    font-size: 15px;
    line-height: 2;
  }

  .she-home-opening__meaning p,
  .she-home-greeting .she-greeting-line,
  .she-home-profile__copy > p:last-child,
  .she-home-service li {
    word-break: auto-phrase;
    line-break: strict;
  }

  .she-home-opening__meaning p,
  .she-home-greeting .she-greeting-line {
    text-wrap: balance;
  }

  body.page-id-51 #main_content {
    padding-left: 0 !important;
    padding-right: 0 !important;
  }

  #wpcf7-f81-p51-o1 form.wpcf7-form {
    margin-left: 12px;
    margin-right: 12px;
  }

  /* Greeting: let the six sentences flow as one paragraph instead of six
   * centred lines, which produced too many line breaks on phones. */
  .she-home-greeting p {
    font-size: 0;
    text-align: center;
    text-wrap: pretty;
  }

  .she-home-greeting .she-greeting-line {
    display: inline;
    min-height: 0;
    font-size: 15px;
    line-height: 2;
    word-break: auto-phrase;
    line-break: strict;
    text-wrap: inherit;
  }
}

/* -------------------------------------------------------------------------
 * Mobile footer bar: editorial typography instead of pictograms.
 * The Latin eyebrow (PROFILE / COLUMN / CONTACT) sits above each label.
 * ---------------------------------------------------------------------- */
#dp-footer-bar {
  background: #fffbfc !important;
  border-top: 1px solid #eee4e8 !important;
  box-shadow: 0 -6px 20px rgba(90, 71, 82, .06) !important;
}

#dp-footer-bar .dp-footer-bar {
  background: transparent;
  color: #6f636a;
  font-size: 10.5px;
}

#dp-footer-bar .dp-footer-bar-item + .dp-footer-bar-item { border-left: 0; }

#dp-footer-bar .dp-footer-bar a {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 3px;
  height: auto;
  min-height: 56px;
  padding: 9px 4px 10px;
  color: #6f636a;
  font-size: 10.5px;
  line-height: 1.2;
  letter-spacing: .06em;
  text-decoration: none;
  transition: color .18s ease;
}

#dp-footer-bar .dp-footer-bar a::after {
  order: -1;
  color: #bd8fa6;
  font-size: 7px;
  font-weight: 600;
  letter-spacing: .24em;
  line-height: 1;
  transition: color .18s ease;
}

#dp-footer-bar .dp-footer-bar-item:nth-child(1) a::after { content: "PROFILE"; }
#dp-footer-bar .dp-footer-bar-item:nth-child(2) a::after { content: "COLUMN"; }
#dp-footer-bar .dp-footer-bar-item:nth-child(3) a::after { content: "CONTACT"; }

#dp-footer-bar .dp-footer-bar-icon {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3px;
  color: inherit !important;
  font-size: 10.5px !important;
  font-family: inherit !important;
  font-weight: 500 !important;
  line-height: 1.2 !important;
  letter-spacing: .06em;
}

#dp-footer-bar .dp-footer-bar-icon::before {
  display: none !important;
  content: none !important;
  background: none !important;
}

#dp-footer-bar .dp-footer-bar a:active,
#dp-footer-bar .dp-footer-bar a:focus-visible { color: #a96f8d; }
#dp-footer-bar .dp-footer-bar a:active::after,
#dp-footer-bar .dp-footer-bar a:focus-visible::after { color: #8a536d; }
#dp-footer-bar .dp-footer-bar a:focus-visible { outline: 2px solid #c18aa8; outline-offset: -3px; }

@media (hover: hover) {
  #dp-footer-bar .dp-footer-bar a:hover { color: #a96f8d; }
  #dp-footer-bar .dp-footer-bar a:hover::after { color: #8a536d; }
}

/* -------------------------------------------------------------------------
 * PAGE TOP: the theme's default is a bare grey square flush to the corner,
 * which sat directly on the new footer bar. Give it the same quiet, blush
 * treatment and inset it from the edges. The container keeps its own size
 * (44px control + 8px padding = 60px), so the theme's
 * translate3d(0,100%,0) still slides it fully off-screen when inactive.
 * ---------------------------------------------------------------------- */
#return_top { padding: 8px; }
#return_top a {
  box-sizing: border-box;
  width: 44px !important;
  height: 44px !important;
  line-height: 44px !important;
  border: 1px solid #efe0e6;
  border-radius: 50%;
  background: rgba(255, 251, 252, .96) !important;
  box-shadow: 0 6px 18px rgba(120, 90, 105, .12);
  transition: background-color .18s ease, border-color .18s ease,
    box-shadow .18s ease;
}
#return_top a::before {
  top: 50% !important;
  left: 50% !important;
  width: auto;
  height: auto;
  margin: 0;
  color: #bd8fa6 !important;
  font-size: 11px !important;
  transform: translate(-50%, -50%);
  transition: color .18s ease, transform .18s ease;
}
@media (hover: hover) {
  #return_top a:hover { background: #fdf3f7 !important; border-color: #e4c9d6; }
  #return_top a:hover::before { color: #a96f8d !important; transform: translate(-50%, -2px); }
}
#return_top a:focus-visible { outline: 2px solid #c18aa8; outline-offset: 2px; }
#return_top a:active::before { transform: translate(-50%, 0); }
