/* =========================================================
   木村広報設計室｜ブラウザ間タイポグラフィ固定レイヤー
   2026-08-07

   Safari / Edge / Chrome でモバイル文字の自動拡大率が変わっても、
   CSSで定義した字寸を同じ基準で使用する。
   ========================================================= */

html{
  -webkit-text-size-adjust:100%;
  text-size-adjust:100%;
}
body,button,input,textarea,select{
  -webkit-text-size-adjust:100%;
  text-size-adjust:100%;
}

/* 日本語の行分割は緊急の一文字割りをさせない。 */
h1,h2,h3,.page-hero .dek,.contact-title,
.yk-record-dek,.yk-record-statement p,.yk-record-ending p,
.form-record .fr-title,.form-record .fr-display,
.form-record .fr-act-heading,.form-record .fr-epilogue-title{
  line-break:strict;
  overflow-wrap:normal;
}

@media (max-width:900px){
  /* ブラウザの text autosizing よりサイト側の設計値を優先。 */
  html,body,main,section,article,header,footer,nav{
    -webkit-text-size-adjust:100%;
    text-size-adjust:100%;
  }
}

@media (max-width:560px){
  /*
     写真集形成記録・終章。
     Safariでは一行、Edgeの文字拡大が僅かに異なっても一行に残る
     だけの安全幅を確保する。題意・改行位置は変更しない。
  */
  .yamanikiru-record-page .yk-record-ending p:first-of-type{
    font-size:clamp(23px,6.35vw,25px);
    line-height:1.72;
    letter-spacing:.015em;
    max-width:100%;
    white-space:nowrap;
    word-break:keep-all;
    overflow-wrap:normal;
    text-wrap:nowrap;
  }
  .yamanikiru-record-page .yk-record-ending p+p{
    font-size:clamp(16px,4.65vw,18px);
    line-height:2.08;
    letter-spacing:.018em;
  }
}
