html{
  font-size: 16px;
}
:root{
  --ink:#222;
  --muted:#666;
  --rule:#d9ccaa;
  --accent:#cbb77f;
  --paper:#f7f2e7;
  --bg:#fff;
  --container: 1040px;
}

*{ box-sizing:border-box; }
body{
  margin:0;
  font-family:"HGS明朝B","Yu Mincho","YuMincho","Hiragino Mincho ProN","Noto Serif JP",serif;
  color:var(--ink);
  background:var(--bg);
  line-height:1.9;
  font-size: 16px;
}
.container{
  max-width:var(--container);
  margin:0 auto;
  padding:0 20px;
}

/* header */
.site-header{ background:#fff; }
.header-rule{ height:1px; background:rgba(0,0,0,.06); }

/* hero */
.hero{ padding:0; }
.hero-visual{
  position:relative;
  width:100%;
  /* ★高さは指定しない：比率で自然に決める */
  /*height: 100vh;*/
  aspect-ratio: 1920.72 / 951.6;
  background:#fff;
  overflow:hidden;
  max-width: 1800px;
  margin: auto;
}
@media (max-width: 700px){
  .hero-visual{
   
  }
}

/* 元画像 */
.hero-photo{
  position:absolute;
  inset:0;
  width:100%;
  height:100%;
  object-fit:cover;
  object-position:center;
  opacity:0;
  transition: opacity 1800ms cubic-bezier(.4,0,.2,1);

  /* チラつき/カクつき対策 */
  will-change: opacity;
  backface-visibility: hidden;
  transform: translateZ(0);
}

/* SVG（線画） */
.hero-svg{
  position:absolute;
  inset:0;
  width:100%;
  height:100%;
  opacity:1;
  transition: opacity 1800ms ease, filter 1800ms ease;
  will-change: opacity, filter;
  pointer-events:none;
}

/* ① 写真を出す */
.hero-visual.is-photo .hero-photo{ opacity:1; }

/* ② 線画を薄く残す（写真の上） */
.hero-visual.is-photo .hero-svg{
  opacity: 0.06;   /* 0.03〜0.10 推奨 */
  filter: blur(1.2px);
}

/* ③ 線画を完全に消す（任意） */
.hero-visual.is-svg-out .hero-svg{
  opacity: 0;
  filter: blur(2px);
}

/* 線画描画：最初は止める（★超重要） */
.hero-visual .draw-line{
  fill:none;
  stroke:#555;
  stroke-width:1;
  stroke-linecap:round;
  stroke-linejoin:round;
  animation:none;
  will-change: stroke-dashoffset;
}

/* JSが準備完了したら開始 */
.hero-visual.is-draw .draw-line{
  animation: draw 2.6s ease forwards;
}
@keyframes draw{ to{ stroke-dashoffset:0; } }

/* title overlay */
.hero-title{
  position:absolute;
  top:24px;
  left:24px;
  z-index:2;
  padding:10px 14px;
  background: rgba(255,255,255,.82);
  border:1px solid rgba(0,0,0,.06);
  backdrop-filter: blur(6px);
  font-family:"HGS明朝B","Yu Mincho","YuMincho","Hiragino Mincho ProN","Noto Serif JP",serif;
  line-height: 2.5em;
}
.hero-sub{
  font-size:1.2em;
  color:var(--muted);
  letter-spacing:.10em;
}
.hero-main{
  margin-top:6px;
  font-size:2.0em;
  font-weight:700;
  letter-spacing:.08em;
}

/* タイトル演出 */
.hero-title .hero-sub,
.hero-title .hero-main{
  opacity:0;
  transform: translateY(2px);
}
.hero-title.is-play .hero-sub{
  animation: titleIn 700ms ease forwards;
  animation-delay: 250ms;
}
.hero-title.is-play .hero-main{
  animation: titleIn 900ms ease forwards;
  animation-delay: 380ms;
}
.hero-title .hero-main::after{
  content:none;
  display:block;
  height:2px;
  width:0;
  background: var(--accent);
  opacity:.7;
  margin-top:8px;
}
.hero-title.is-play .hero-main::after{
  animation: underline 900ms ease forwards;
  animation-delay: 650ms;
}
@keyframes titleIn{ to{ opacity:1; transform:none; } }
@keyframes underline{ to{ width:120px; } }

/* sections */
.section{ padding:72px 0 0; }
.section-title{
  text-align:center;
  font-size: 1.8em;;
  letter-spacing:.14em;
  margin:0 0 26px;
   font-family:"HGS明朝B","Yu Mincho","YuMincho","Hiragino Mincho ProN","Noto Serif JP",serif;
}
.section-title::after{
  content: none;
  display:block;
  width:120px;
  height:2px;
  background:var(--accent);
  opacity:.65;
  margin:16px auto 0;
}
.greeting-box{
  max-width: 1200px;
  margin: 0 auto;
  border: 1px solid var(--rule);
  padding: 2% 6%;
  font-size: 1.0em;
}
/*.info-table{
  border-top:1px solid var(--rule);
  border-bottom:1px solid var(--rule);
}*/
.info-row{
  display:grid;
  grid-template-columns:180px 1fr;
  border-top:2px solid var(--rule);
}
.info-row:first-child{
   border-top:none;
}
.info-th, .info-td{
  padding:18px 14px;
  font-size: 1.0em;

}
.info-th{ color:var(--muted); }

/* footer */
.site-footer{
  padding-top:70px; 
}
.footer-inner{
  text-align:center;
  color:var(--muted);
  border-top:1px solid rgba(0,0,0,.06);
  padding-top:18px;
}

/* reveal */
.reveal-item{
  opacity:0;
  transform: translateY(10px);
  transition:
    opacity 1000ms cubic-bezier(.22,.61,.36,1),
    transform 1200ms cubic-bezier(.22,.61,.36,1);
  will-change: opacity, transform;
  max-width: 1200px;
  width: 100%;
  margin: auto;
}

 .reveal-item.is-inview{
  opacity:1;
  transform:none;
}

/* SP */
@media (max-width: 700px){
  .hero-visual{ height: 380px; }
  .hero-title{ top:14px; left:14px; padding:8px 10px; }
  .hero-main{ font-size:24px; }

  .info-row{ grid-template-columns: 1fr; }
  .info-th{ padding-bottom:6px; }
  .info-td{ padding-top:0; }
}

/* reduce motion */
@media (prefers-reduced-motion: reduce){
  .site-loader{
  display: none !important;
}
  .reveal-item{ opacity:1 !important; transform:none !important; transition:none !important; }
  .hero-photo{ opacity:1 !important; transition:none !important; }
  .hero-svg{ opacity:0 !important; transition:none !important; }
  .hero-visual .draw-line{ animation:none !important; }
  .hero-title .hero-sub,
  .hero-title .hero-main{ opacity:1 !important; transform:none !important; animation:none !important; }
  .hero-title .hero-main::after{ width:120px !important; animation:none !important; }
}

.CEO_Message{
  background:#f2f0ee;
  padding:90px 0;
  position:relative;
}
.CEO_Message .section-title{
  display:table;
  width:auto;
  max-width:calc(100% - 40px);
  margin:0 auto -0.9em;
  padding:0 24px;
  background:#f2f0ee;
  position:relative;
  z-index:2;
  white-space:nowrap;
}
.CEO_Message .section-title::after{
  display:none;
}

/* 枠線は本文ボックス側に付ける */
.CEO_Message .greeting-box{
  max-width:1200px;
  margin:0 auto;
  background:transparent;
  border:2px solid var(--rule);
  padding:3.2em 80px;
}
.Office_Overview .section-title{
  margin-bottom: 40px;
}

.Director_Introduction .section-title{
  margin-bottom: 40px;
}
/* ========================================
   上品演出追加
======================================== */



/* 2) CEO_Message 背景を先に出す */
.CEO_Message{
  transition: background-color 1200ms ease, opacity 1200ms ease;
}

.CEO_Message.reveal-bg{
  opacity:0;
}

.CEO_Message.reveal-bg.is-bg-inview{
  opacity:1;
}

/* 3) CEO_Message内の文字は少し遅れて出す */
.CEO_Message .section-title.reveal-delayed,
.CEO_Message .greeting-box.reveal-delayed{
  opacity:0;
  transform:translateY(14px);
  transition:
    opacity 900ms cubic-bezier(.2,.8,.2,1),
    transform 1100ms cubic-bezier(.2,.8,.2,1);
}

.CEO_Message .section-title.reveal-delayed.is-delayed-inview,
.CEO_Message .greeting-box.reveal-delayed.is-delayed-inview{
  opacity:1;
  transform:none;
}

/* 4) 表全体を出した後、行を順番表示 */
.info-table .info-row{
  opacity:0;
  transform:translateY(8px);
  transition:
    opacity 700ms cubic-bezier(.2,.8,.2,1),
    transform 900ms cubic-bezier(.2,.8,.2,1);
  transition-delay: var(--row-delay, 0ms);
  margin: auto;
  max-width: 1200px;
}

.info-table.is-rows-inview .info-row{
  opacity:1;
  transform:none;
}

.info-table{
  width: 100%;
  max-width: 1200px;
  margin: auto;
  border-top: 2px solid var(--rule);
  border-bottom: 2px solid var(--rule);
  opacity: 0;
  transition: opacity 700ms cubic-bezier(.2,.8,.2,1);
}
.info-table.is-rows-inview{
  opacity: 1;
}

/* ========================================
   Loading
======================================== */
.site-loader{
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: grid;
  place-items: center;
  background: rgba(255,255,255,0.98);
  opacity: 1;
  visibility: visible;
  transition:
    opacity 900ms cubic-bezier(.22,.61,.36,1),
    visibility 900ms ease;
}

.site-loader.is-hidden{
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.site-loader__inner{
  text-align: center;
  padding: 24px;
}

.site-loader__sub{
  font-size: 0.85rem;
  letter-spacing: 0.24em;
  color: var(--muted);
  margin-bottom: 14px;
}

.site-loader__main{
  font-family:"HGS明朝B","Yu Mincho","YuMincho","Hiragino Mincho ProN","Noto Serif JP",serif;
  font-size: clamp(1.6rem, 2.6vw, 2.4rem);
  letter-spacing: 0.14em;
  color: var(--ink);
}

.site-loader__line{
  width: 0;
  height: 1px;
  margin: 18px auto 0;
  background: var(--accent);
  opacity: 0.75;
}

.site-loader.is-play .site-loader__line{
  animation: loaderLine 1400ms cubic-bezier(.22,.61,.36,1) forwards;
}

@keyframes loaderLine{
  from{ width: 0; }
  to{ width: min(180px, 45vw); }
}

@media (max-width: 700px){
  .site-loader__sub{
    font-size: 0.75rem;
    letter-spacing: 0.18em;
  }

  .site-loader__main{
    font-size: clamp(1.2rem, 6vw, 1.8rem);
    letter-spacing: 0.10em;
  }
}

/* ========================================
   SP layout remake
   390px前後のスマホ表示を基準に再設計
======================================== */
@media (max-width: 700px){

  body{
    line-height: 1.95;
  }

  .container{
    padding: 0 16px;
  }

  /* ----------------------------
     Hero
  ---------------------------- */
  .hero{
    padding: 0;
  }

  .hero-visual{
    height: auto;
    min-height: 0;
    max-height: none;
    aspect-ratio: auto;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: center;
    overflow: visible;
    max-width: 100%;
    padding: 18px 0 0;
    background: #fff;
  }

  .hero-title{
    position: relative;
    top: auto;
    left: auto;
    z-index: 3;
    width: 100%;
    padding: 0 18px;
    margin: 0 auto 18px;
    text-align: center;
    background: transparent;
    border: none;
    backdrop-filter: none;
    line-height: 1.55;
  }

  .hero-sub{
    font-size: 0.95rem;
    letter-spacing: 0.18em;
    line-height: 1.6;
  }

  .hero-main{
    margin-top: 6px;
    font-size: clamp(1.85rem, 7vw, 2.25rem);
    font-weight: 700;
    letter-spacing: 0.14em;
    line-height: 1.35;
  }

  .hero-title .hero-main::after{
    content: none;
  }

  .hero-photo,
  .hero-svg{
    position: relative;
    inset: auto;
    display: block;
    width: 100%;
    height: auto;
  }

  .hero-photo{
    /*aspect-ratio: 390 / 215;*/
    object-fit: cover;
    object-position: center 52%;
    transform: none;
  }

  .hero-svg{
    position: absolute;
    top: 108px;
    left: 0;
    width: 100%;
    height: auto;
    aspect-ratio: 1920.72 / 951.6;
  }

  .hero-visual.is-photo .hero-svg{
    opacity: 0.07;
    filter: blur(0.8px);
  }

  .hero-visual.is-svg-out .hero-svg{
    opacity: 0;
    filter: blur(1.6px);
  }

  /* ----------------------------
     Section common
  ---------------------------- */
  .section{
    padding: 56px 0 0;
  }

  .section-title{
    font-size: 2rem;
    line-height: 1.35;
    letter-spacing: 0.08em;
    margin: 0 0 26px;
    padding: 0 16px;
  }

  .Office_Overview .section-title,
  .Director_Introduction .section-title{
    margin-bottom: 28px;
  }

  /* ----------------------------
     CEO Message
  ---------------------------- */
  .CEO_Message{
    padding: 52px 0;
  }

  .CEO_Message .section-title{
    display: block;
    width: 100%;
    max-width: none;
    margin: 0 0 24px;
    padding: 0 16px;
    background: transparent;
    text-align: center;
    white-space: normal;
  }

  .CEO_Message .greeting-box{
    width: calc(100% - 24px);
    max-width: 90%;
    margin: 0 auto;
    padding: 24px 18px;
    border: 1.5px solid var(--rule);
    background: transparent;
    font-size: 0.95rem;
    line-height: 2.1;
  }

  .CEO_Message .greeting-box p{
    margin: 0 0 1.2em;
  }

  .CEO_Message .greeting-box p:last-child{
    margin-bottom: 0;
  }

  /* ----------------------------
     Info table
  ---------------------------- */
  .info-table{
    width: calc(100% - 24px);
    max-width: 90%;
    border-top: 1.5px solid var(--rule);
    border-bottom: 1.5px solid var(--rule);
  }

  .info-row{
    grid-template-columns: 1fr;
    border-top: 1.5px solid var(--rule);
  }

  .info-row:first-child{
    border-top: none;
  }

  .info-th,
  .info-td{
    font-size: 0.98rem;
    line-height: 2;
    word-break: break-word;
  }

  .info-th{
    padding: 14px 14px 4px;
    color: #4f4a45;
  }

  .info-td{
    padding: 0 14px 14px;
  }

  /* 長文項目だけ少し詰める */
  .Office_Overview .info-row:nth-child(6) .info-td,
  .Director_Introduction .info-row:last-child .info-td{
    line-height: 1.95;
  }

  /* reveal用 max-width をSPでも自然に */
  .reveal-item{
    max-width: 100%;
  }

  /* ----------------------------
     Footer
  ---------------------------- */
  .site-footer{
    padding-top: 56px;
    padding-bottom: 20px;
  }

  .footer-inner{
    padding-top: 14px;
    font-size: 0.72rem;
  }
}
/* ========================================
   Hero image switch PC / SP
======================================== */
.hero-photo--sp{
  display: none;
}

@media (max-width: 700px){
  .hero-svg{
    display: none !important;
  }

  .hero-photo--pc{
    display: none !important;
  }

  .hero-photo--sp{
    display: block;
    position: relative;
    width: 100%;
    height: auto;
    max-width: none;
    opacity: 0;
    object-fit: contain;
    transform: none;
  }

  .hero{
    padding: 0;
  }

  .hero-visual{
    height: auto;
    min-height: 0;
    max-height: none;
    aspect-ratio: auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    overflow: visible;
    max-width: 100%;
    padding: 18px 0 0;
    background: #fff;
  }

  .hero-title{
    position: relative;
    top: auto;
    left: auto;
    order: 1;
    z-index: 2;
    width: 100%;
    margin: 0 auto 18px;
    padding: 0 18px;
    text-align: center;
    background: transparent;
    border: none;
    backdrop-filter: none;
    line-height: 1.55;
  }

  .hero-photo--sp{
    order: 2;
    width: 100%;
    margin: 0 auto;
  }

  .hero-sub{
    font-size: 0.95rem;
    letter-spacing: 0.18em;
    line-height: 1.6;
  }

  .hero-main{
    margin-top: 6px;
    font-size: clamp(1.85rem, 7vw, 2.2rem);
    font-weight: 700;
    letter-spacing: 0.12em;
    line-height: 1.35;
  }

  .hero-title .hero-main::after{
    content: none;
  }
  .hero-visual.is-photo .hero-photo--sp{
    opacity: 1;
  }
}

/* ========================================
   Career layout
======================================== */
.career-list{
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.career-item{
  display: grid;
  grid-template-columns: 11em 1fr;
  column-gap: 1.8em;
  align-items: start;
}

.career-date{
  white-space: nowrap;
}

.career-text{
  min-width: 0;
}

/* SP：年代の下に内容 */
@media (max-width: 700px){
  .career-list{
    gap: 12px;
  }

  .career-item{
    display: block;
  }

  .career-date{
    display: block;
    margin-bottom: 2px;
    white-space: nowrap;
  }

  .career-text{
    display: block;
  }
}