/*
Theme Name: 株式会社ゴトー工芸
Author: 株式会社ゴトー工芸
Theme URI: https://gotokogei.co.jp/
Description: 模型・ジオラマ・展示造形を中心とする株式会社ゴトー工芸専用WordPressテーマ。
Version: 1.0.4
Requires at least: 6.4
Requires PHP: 8.0
Text Domain: gotokogei-premium
*/

:root{
  --ht-black:#090d10;
  --ht-deep:#111a20;
  --ht-gold:#b89455;
  --ht-gold-light:#c9aa72;
  --ht-ivory:#f3efe7;
  --ht-paper:#f8f5ef;
  --ht-text:#191f23;
  --ht-muted:#6f777b;
  --ht-line:#d6d0c6;
  --ht-white:#fff;
  --ht-max:1440px;
}
*{box-sizing:border-box}
html{scroll-behavior:smooth}
body{margin:0;background:#fff;color:var(--ht-text);font-family:"Noto Serif JP","Yu Mincho","Hiragino Mincho ProN",serif;line-height:1.75}
a{color:inherit;text-decoration:none;text-decoration-line:none}
img{display:block;max-width:100%;height:auto}
button,input,textarea,select{font:inherit}
.ht-wrap{width:min(calc(100% - 48px),var(--ht-max));margin:0 auto}
.ht-kicker{font-family:Georgia,"Times New Roman",serif;letter-spacing:.12em;color:var(--ht-gold);font-size:.82rem;text-transform:uppercase}
.ht-title{font-size:clamp(2rem,4vw,4.7rem);line-height:1.13;font-weight:500;letter-spacing:.02em;margin:.4rem 0 1.2rem}
.ht-subtitle{font-size:clamp(1.6rem,3vw,3.2rem);line-height:1.3;font-weight:500;margin:.4rem 0 1.4rem}
.ht-btn{display:inline-flex;align-items:center;gap:.8rem;border:1px solid var(--ht-gold);padding:.9rem 1.35rem;font-size:.9rem;letter-spacing:.08em;transition:.25s ease}
.ht-btn:hover{background:var(--ht-gold);color:var(--ht-black)}

/* Header */
.site-header{position:relative;z-index:20;color:var(--ht-text);background:#fff;border-bottom:1px solid #e8e5df}
.site-header__inner{height:70px;display:flex;align-items:center;position:relative}
.brand-block{display:inline-flex;flex-direction:column;align-items:stretch;justify-content:center;line-height:1;flex:0 0 auto}
.site-header .custom-logo-link{display:block;width:max-content;line-height:0}
.site-header .custom-logo{display:block;height:auto!important;max-height:none!important;object-fit:contain}
.brand-fallback{display:block;font-family:Arial,sans-serif;font-weight:800;font-size:2rem;letter-spacing:.03em;color:var(--ht-black);line-height:1}
.brand-jp{display:block;width:100%;margin-top:8px;color:#4e5356;font-family:"Yu Gothic","Hiragino Kaku Gothic ProN",sans-serif;font-size:.66rem;line-height:1;text-align:center;white-space:nowrap;letter-spacing:.08em}
.brand-jp span{display:inline}
.primary-nav{position:absolute;left:50%;transform:translateX(-50%);margin:0}
.primary-nav ul{list-style:none;display:flex;align-items:center;justify-content:center;gap:2.15rem;margin:0;padding:0;font-size:.88rem;white-space:nowrap}
.primary-nav a{position:relative;padding:.6rem 0;color:var(--ht-text)}
.primary-nav a::after{content:"";position:absolute;left:50%;right:50%;bottom:0;height:1px;background:var(--ht-gold);transition:.25s}
.primary-nav a:hover::after{left:0;right:0}
.primary-nav li{display:flex;align-items:center}
.primary-nav li:not(:last-child)::after{content:" / ";color:#a49a89;margin-left:2.15rem;font-weight:400}
.footer-nav li{display:flex;align-items:center}
.footer-nav li:not(:last-child)::after{content:" / ";color:#6f777b;margin-left:1.2rem}

.menu-toggle{display:none;margin-left:auto;background:#fff;border:1px solid #bdb8af;color:var(--ht-text);padding:.55rem .7rem}

/* Hero */
.hero{background:var(--ht-black);color:#fff;padding-top:0}
.hero-media{position:relative;overflow:hidden}
.hero-media img{width:100%;height:auto;aspect-ratio:1024/614;object-fit:contain;background:#000}
.hero-media::after{content:"";position:absolute;inset:0;background:linear-gradient(90deg,rgba(4,8,10,.88) 0%,rgba(4,8,10,.62) 28%,rgba(4,8,10,.12) 58%,rgba(4,8,10,.05) 100%);pointer-events:none}
.hero-copy{position:absolute;z-index:2;left:max(4vw,32px);top:50%;transform:translateY(-44%);max-width:560px}
.hero-copy .ht-title{color:#fff;font-size:clamp(3rem,5.7vw,6rem);margin-bottom:1rem}
.hero-copy__tagline{font-family:Georgia,serif;color:var(--ht-gold-light);letter-spacing:.08em;font-size:clamp(.92rem,1.25vw,1.25rem);margin:0 0 1.8rem}
.hero-copy__lead{max-width:430px;font-size:clamp(.92rem,1.25vw,1.12rem);color:rgba(255,255,255,.93);border-left:2px solid var(--ht-gold);padding-left:1rem}
.hero-copy__actions{display:flex;gap:1rem;flex-wrap:wrap;margin-top:2rem}
.hero-copy__actions .ht-btn:first-child{background:rgba(0,0,0,.28)}

/* Business */
.business{background:var(--ht-ivory);padding:68px 0 52px}
.section-heading{text-align:center;margin-bottom:34px}
.section-heading h2{font-family:Georgia,serif;font-size:2rem;letter-spacing:.08em;font-weight:500;margin:.1rem 0}
.section-heading .jp{font-size:.78rem;color:#555;letter-spacing:.12em}
.business-grid{display:grid;grid-template-columns:repeat(5,1fr);border-top:1px solid var(--ht-line);border-bottom:1px solid var(--ht-line)}
.business-card{padding:28px 22px 30px;min-height:210px;border-right:1px solid var(--ht-line)}
.business-card:last-child{border-right:0}
.business-icon{font-family:Georgia,serif;color:var(--ht-gold);font-size:1.05rem;letter-spacing:.05em}
.business-card h3{font-size:1.25rem;font-weight:500;margin:.65rem 0 .55rem}
.business-card p{font-size:.86rem;margin:0;color:#444}
.business-card__text-link{position:relative;display:inline-block;text-decoration:none}
.business-card__text-link::after{content:"";position:absolute;left:0;bottom:-3px;width:100%;height:1px;background:currentColor;transform:scaleX(0);transform-origin:right center;transition:transform .24s ease}
.business-card__text-link:hover::after,.business-card__text-link:focus-visible::after{transform:scaleX(1);transform-origin:left center}
.business-card__text-link:focus-visible{outline:2px solid var(--ht-gold);outline-offset:4px}
.business-card__code{font-family:Georgia,serif;color:var(--ht-gold);font-size:1.05rem;letter-spacing:.05em}
.business-card__title-link{color:var(--ht-text)}
.business-card__title-link:hover,.business-card__title-link:focus-visible{color:var(--ht-gold)}
.business-card__more{margin-top:1rem;font-size:.78rem;color:#4b3c25}

/* How we work + subtle confidentiality */
.work-section{background:var(--ht-black);color:#fff;padding:64px 0 54px}
.work-section__head{display:flex;align-items:end;justify-content:space-between;gap:32px;margin-bottom:34px}
.work-section__head h2{font-family:Georgia,serif;color:var(--ht-gold-light);font-size:1.3rem;letter-spacing:.06em;font-weight:500;margin:0}
.work-section__head p{margin:0;color:#cfc8be;font-size:.86rem;max-width:520px}
.process{display:flex;align-items:flex-start;justify-content:space-between;gap:8px;padding:28px 0 34px;border-top:1px solid #3b3934;border-bottom:1px solid #3b3934}
.process-step{flex:1;text-align:center;position:relative}
.process-step:not(:last-child)::after{content:"→";position:absolute;right:-9px;top:22px;color:var(--ht-gold)}
.process-no{width:48px;height:48px;border:1px solid var(--ht-gold);border-radius:50%;display:grid;place-items:center;margin:0 auto .8rem;color:var(--ht-gold);font-family:Georgia,serif}
.process-step span{font-size:.78rem}
.confidential-note{margin-top:26px;padding-top:2px;display:grid;grid-template-columns:170px 1fr auto;align-items:center;gap:26px;color:#cfc8be}
.confidential-note__label{font-family:Georgia,serif;color:var(--ht-gold-light);font-size:.78rem;letter-spacing:.08em}
.confidential-note p{margin:0;font-size:.8rem;line-height:1.8}
.confidential-note a{font-size:.76rem;color:#fff;border:0;padding-bottom:2px;white-space:nowrap;text-decoration:none}

/* Custom logo sizing is injected from Customizer; preserve aspect ratio */
.site-header .custom-logo-link{display:flex;align-items:center}
.site-header .custom-logo{display:block;height:auto!important;max-height:none!important;object-fit:contain}
/* Bottom */
.site-footer{background:#101417;color:#cfc9c0;padding:30px 0}
.site-footer__inner{text-align:right;font-size:.74rem}
.site-footer__row{display:flex;justify-content:flex-end;align-items:center;gap:34px;padding:4px 0 18px;flex-wrap:wrap}
.site-footer__company{font-size:.86rem;color:#f0ece5;letter-spacing:.03em}
.site-footer__location{color:#b8b2aa;line-height:1.6}
.site-footer__bottom{display:flex;justify-content:flex-end;align-items:center;gap:28px;padding-top:16px;border-top:1px solid #2e3437;color:#8f979b;font-size:.68rem}
.footer-nav{display:flex;justify-content:flex-end;gap:1.2rem;flex-wrap:wrap}
.footer-nav ul{justify-content:flex-end}

/* General pages */
.page-header{padding:34px 0 30px;background:var(--ht-black);color:#fff}
.page-header h1{font-size:clamp(1.45rem,2vw,2rem);line-height:1.25;font-weight:500;margin:0}
.entry-content{padding:70px 0;max-width:960px;margin:auto}
.entry-content h2{margin-top:2.4rem}

@media (max-width: 980px){
  .primary-nav{display:none;position:absolute;top:70px;left:0;right:0;transform:none;background:#fff;border-top:1px solid #e8e5df;border-bottom:1px solid #e8e5df;padding:20px 24px}
  .primary-nav.is-open{display:block}
  .primary-nav ul{flex-direction:column;gap:.8rem;color:var(--ht-text)}
  .primary-nav li:not(:last-child)::after{content:none}
  .primary-nav li{display:block}
  .menu-toggle{display:block}
  .hero-copy{max-width:460px;top:54%}
  .hero-copy .ht-title{font-size:clamp(2.5rem,7vw,4.5rem)}
  .business-grid{grid-template-columns:repeat(2,1fr)}
  .business-card{border-bottom:1px solid var(--ht-line)}
  .business-card:nth-child(even){border-right:0}
  .business-card:last-child{grid-column:1 / -1;border-right:0;border-bottom:0}
  .confidential-note{grid-template-columns:150px 1fr}
  .confidential-note a{grid-column:2}
}
@media (max-width: 680px){
  .ht-wrap{width:min(calc(100% - 30px),var(--ht-max))}
  .site-header__inner{height:70px}
  .brand-jp{font-size:.58rem;margin-top:6px}
  .hero-media{padding-top:0;background:#000}
  .hero-media img{width:100%;aspect-ratio:1024/614;object-fit:contain}
  .hero-media::after{top:0;background:linear-gradient(90deg,rgba(4,8,10,.86),rgba(4,8,10,.34) 58%,rgba(4,8,10,.08))}
  .hero-copy{left:24px;right:24px;top:56%;transform:translateY(-35%);max-width:none}
  .hero-copy .ht-title{font-size:clamp(2.3rem,12vw,3.5rem)}
  .hero-copy__tagline{font-size:.72rem}
  .hero-copy__lead{font-size:.82rem;max-width:300px}
  .hero-copy__actions{display:none}
  .business{padding-top:46px}
  .business-grid{grid-template-columns:1fr}
  .business-card{border-right:0;border-bottom:1px solid var(--ht-line)}
  .business-card:last-child{border-bottom:0}
  .work-section__head{display:block}
  .work-section__head p{margin-top:12px}
  .process{display:grid;grid-template-columns:repeat(2,1fr);gap:20px}
  .process-step:not(:last-child)::after{display:none}
  .confidential-note{grid-template-columns:1fr;gap:8px}
  .confidential-note a{grid-column:auto;justify-self:start;margin-top:6px}
  .site-footer__row{justify-content:flex-end;gap:8px 20px;padding-bottom:16px}
  .site-footer__bottom{align-items:flex-end;flex-direction:column;gap:10px}
}

/* v1.3 WORKS */
.works-hero p{max-width:760px;color:#d0d2d3;margin:1.2rem 0 0;font-size:.92rem}
.works-content{padding:58px 0 80px;background:var(--ht-paper)}
.works-filter{display:flex;gap:.55rem 1.1rem;flex-wrap:wrap;border-bottom:1px solid var(--ht-line);padding-bottom:20px;margin-bottom:36px}
.works-filter a{font-size:.78rem;color:var(--ht-muted);padding:.35rem 0;border-bottom:1px solid transparent}
.works-filter a:hover,.works-filter a.is-current{color:var(--ht-text);border-color:var(--ht-gold)}
.works-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:34px 26px}
.works-card{background:#fff;border:1px solid #e4dfd6}
.works-card__image{display:block;aspect-ratio:16/10;background:var(--ht-deep);overflow:hidden}
.works-card__image img{width:100%;height:100%;object-fit:cover;transition:transform .35s ease}
.works-card:hover .works-card__image img{transform:scale(1.025)}
.works-card__placeholder{height:100%;display:grid;place-items:center;color:var(--ht-gold);font-family:Georgia,serif;letter-spacing:.14em}
.works-card__body{padding:22px 22px 24px}
.works-card__terms,.works-card__terms a{font-family:Georgia,serif;font-size:.68rem;letter-spacing:.06em;color:var(--ht-gold)}
.works-card h2{font-size:1.15rem;font-weight:500;line-height:1.5;margin:.55rem 0 .55rem}
.works-card p{font-size:.82rem;color:#555;margin:0;line-height:1.8}
.works-more{display:inline-block;margin-top:1.1rem;font-size:.76rem;border:0}
.works-pagination{margin-top:42px}.works-pagination .nav-links{display:flex;justify-content:center;gap:12px}.works-pagination a,.works-pagination span{padding:.4rem .7rem;border:1px solid var(--ht-line)}
.works-empty{padding:3rem 0;text-align:center;color:var(--ht-muted)}
.single-work__header .works-card__terms{margin-top:1rem}.single-work__header h1{max-width:900px}
.single-work__content{padding:60px 0 80px;background:var(--ht-paper)}
.single-work__inner{max-width:1000px}.single-work__image{margin-bottom:34px}.single-work__image img{width:100%;height:auto}
.single-work__content .entry-content{padding:0;max-width:850px;margin:0 auto}
.single-work__back{max-width:850px;margin:40px auto 0;padding-top:22px;border-top:1px solid var(--ht-line);font-size:.8rem}
.site-footer__sub{margin-top:.35rem;font-size:.68rem;color:#928c84;line-height:1.55}
.footer-nav ul{list-style:none;display:flex;gap:1.2rem;flex-wrap:wrap;margin:0;padding:0}

@media(max-width:980px){.works-grid{grid-template-columns:repeat(2,1fr)}}
@media(max-width:680px){.works-grid{grid-template-columns:1fr}.works-content{padding-top:40px}.works-filter{gap:.35rem .8rem}.works-card__body{padding:18px}.footer-nav ul{flex-direction:column;align-items:flex-end;gap:.5rem}.footer-nav li:not(:last-child)::after{content:none}.footer-nav li{display:block}}

/* v1.4.5 実績 ------------------------------------------------ */
.works-production-head{background:#fff;padding:42px 0 30px;border-top:4px solid var(--ht-gold)}
.works-production-head.compact{padding-bottom:18px}
.works-breadcrumb{display:flex;gap:.55rem;align-items:center;flex-wrap:wrap;font-size:.78rem;margin-bottom:44px;color:var(--ht-muted)}
.works-breadcrumb a{color:var(--ht-gold)}.works-breadcrumb span{color:#aaa}.works-breadcrumb strong{font-weight:500;color:var(--ht-text)}
.works-title-row{display:flex;align-items:flex-end;justify-content:space-between;gap:50px}
.works-title-row h1,.works-category-title h1{font-size:2rem;line-height:1.25;margin:.3rem 0 0;font-weight:600;letter-spacing:.02em}
.works-title-row p{font-size:.82rem;color:var(--ht-muted);line-height:1.9;margin:0 0 .25rem;max-width:470px}
.works-category-title{border-bottom:3px solid #e2e6e8;position:relative;padding-bottom:8px}
.works-category-title:after{content:"";position:absolute;left:0;bottom:-3px;width:220px;height:3px;background:var(--ht-gold)}
.works-production .works-content{background:#fff;padding-top:34px}
.works-production .works-filter{margin-bottom:42px;justify-content:flex-start}
.works-production .works-filter a{display:flex;gap:.38rem;align-items:center}.works-production .works-filter a span{color:var(--ht-gold);font-family:Georgia,serif;font-size:.64rem}
.production-grid{gap:26px}
.production-card{box-shadow:0 2px 7px rgba(0,0,0,.08);border:1px solid #ddd;background:#fff;display:flex;flex-direction:column}
.production-card .works-card__image{display:flex;align-items:center;justify-content:center;aspect-ratio:auto;background:#f4f4f4;overflow:visible}
.production-card .works-card__image img{display:block;width:100%;height:auto;object-fit:contain}
.production-card .works-card__body{padding:25px 26px 22px;display:flex;flex-direction:column;flex:1}
.production-card h2{font-size:1.28rem;font-weight:600;line-height:1.45;margin:0 0 1.1rem}
.production-card h2 a{color:var(--ht-gold)}
.production-card p{font-size:.84rem;color:#333;line-height:1.8}
.production-card .works-more{margin-top:auto;align-self:flex-end;border:0;color:var(--ht-gold);font-size:.8rem}.production-card .works-more span{margin-left:.35rem}
@media(max-width:760px){.works-title-row{display:block}.works-title-row p{margin-top:18px}.works-breadcrumb{margin-bottom:28px}.production-card{min-height:0}.production-card .works-card__image{aspect-ratio:16/9}.works-category-title:after{width:140px}}

.production-card:hover .works-card__image img{transform:none}

/* v1.4.6 WORKS表示改善 ---------------------------------------- */
.single-work-breadcrumb-area{background:#fff;padding:34px 0 18px;border-top:4px solid var(--ht-gold);border-bottom:1px solid var(--ht-line)}
.single-work-breadcrumb{margin:0;font-size:.84rem;gap:.65rem}
.single-work-breadcrumb a{color:var(--ht-gold)}
.single-work-breadcrumb strong{color:var(--ht-text);font-weight:500}
.single-work__content{padding-top:42px}
.single-work__title{max-width:850px;margin:0 auto 28px;font-size:clamp(2rem,4vw,3.5rem);line-height:1.3;font-weight:500}

/* 実績一覧はPCで常に3列を基本とし、新しい実績から表示 */
.works-grid.production-grid{grid-template-columns:repeat(3,minmax(0,1fr))}
.production-card{min-width:0}
.production-card .works-card__image{width:100%;background:#f7f7f7}
.production-card .works-card__image img{max-width:100%;width:100%;height:auto;object-fit:contain}
@media(max-width:980px){.works-grid.production-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:680px){.works-grid.production-grid{grid-template-columns:1fr}}

/* v1.4.9 ヘッダー・実績詳細ページ調整 -------------------------- */
/* ヘッダーは70px固定。ロゴと会社名を必ず70px内に収める */
.site-header__inner{
  height:70px;
  min-height:70px;
  overflow:visible;
}
.brand-block{
  display:inline-flex;
  flex-direction:column;
  align-items:center;
  justify-content:center;
  width:max-content;
  max-height:66px;
  line-height:1;
  overflow:visible;
}
.site-header .custom-logo-link{
  display:flex;
  align-items:center;
  justify-content:center;
  width:max-content;
  max-height:45px;
  line-height:0;
}
.site-header .custom-logo{
  display:block;
  width:auto!important;
  height:auto!important;
  max-height:45px!important;
  object-fit:contain;
}
.brand-jp{
  display:block;
  width:100%;
  margin-top:4px;
  padding:0;
  color:#4e5356;
  font-family:"Yu Gothic","Hiragino Kaku Gothic ProN",sans-serif;
  font-size:.60rem;
  line-height:1.1;
  text-align:center;
  white-space:nowrap;
  letter-spacing:.07em;
}
@media(max-width:980px){.primary-nav{top:70px}}
@media(max-width:680px){
  .site-header__inner{height:70px;min-height:70px}
  .site-header .custom-logo-link{max-height:42px}
  .site-header .custom-logo{max-height:42px!important}
  .brand-jp{font-size:.54rem;margin-top:3px}
}

/* 実績詳細ではテーマ側でアイキャッチ画像を自動表示しない。
   本文に配置した画像だけを、元比率のまま控えめな大きさで表示する。 */
.single-work__content{padding:42px 0 80px;background:var(--ht-paper)}
.single-work__inner{max-width:1100px}
.single-work__title{
  max-width:850px;
  margin:0 auto 28px;
  font-size:clamp(1.8rem,2.4vw,2.25rem);
  line-height:1.45;
  font-weight:500;
}
.single-work__content .entry-content{
  padding:0;
  max-width:850px;
  margin:0 auto;
}
.single-work__content .entry-content img{
  display:block;
  width:auto;
  max-width:250px;
  height:auto;
  object-fit:contain;
  margin-left:auto;
  margin-right:auto;
}
.single-work__content .entry-content figure.wp-block-image{
  width:auto;
  max-width:250px;
  margin-left:auto;
  margin-right:auto;
}
.single-work__content .entry-content figure.wp-block-image img{
  max-width:100%;
}
@media(max-width:680px){
  .single-work__title{font-size:1.75rem}
  .single-work__content .entry-content img,
  .single-work__content .entry-content figure.wp-block-image{max-width:min(55vw,250px)}
}


/* v1.5.1 Header / page title refinement ------------------------ */
/* ロゴと会社名を横一列に */
.brand-block{
  display:inline-flex;
  flex-direction:row;
  align-items:center;
  justify-content:flex-start;
  gap:16px;
  width:auto;
  max-height:64px;
  overflow:visible;
}
.site-header .custom-logo-link{
  flex:0 0 auto;
  max-height:48px;
}
.site-header .custom-logo{
  max-height:48px!important;
}
.brand-jp{
  width:auto;
  margin:0;
  padding:0;
  flex:0 0 auto;
  font-size:.72rem;
  line-height:1.2;
  text-align:left;
  letter-spacing:.08em;
  white-space:nowrap;
}

/* 固定ページの黒タイトル帯：より細く、上端に金帯 */
.page-header{
  padding:12px 0 10px;
  background:var(--ht-black);
  color:#fff;
  border-top:3px solid var(--ht-gold);
}
.page-header h1{
  font-size:clamp(1.05rem,1.45vw,1.35rem);
  line-height:1.25;
  font-weight:500;
  margin:0;
}

/* 実績アーカイブにも同じ黒帯を付ける */
.works-page-header{
  margin:0;
}
.works-production-head{
  padding-top:28px;
}
.works-production-head .works-breadcrumb{
  margin-bottom:24px;
}
.works-production-head .works-title-row{
  align-items:center;
}

@media(max-width:980px){
  .brand-block{gap:12px}
  .brand-jp{font-size:.64rem}
}
@media(max-width:680px){
  .brand-block{gap:8px;max-width:calc(100% - 74px)}
  .site-header .custom-logo-link{max-height:40px}
  .site-header .custom-logo{max-height:40px!important}
  .brand-jp{font-size:.56rem;margin:0;text-align:left}
  .page-header{padding:10px 0 9px;border-top-width:2px}
  .page-header h1{font-size:1.05rem}
}

/* Ver.1.5.2: 全主要ページのタイトル黒帯上に共通の金帯を確実に表示 */
.page-header,
.works-page-header{
  position:relative;
  border-top:0 !important;
}
.page-header::before,
.works-page-header::before{
  content:"";
  position:absolute;
  top:0;
  left:0;
  right:0;
  height:5px;
  background:var(--ht-gold);
  z-index:2;
  pointer-events:none;
}
.page-header{
  padding-top:14px;
}
@media (max-width:760px){
  .page-header::before,
  .works-page-header::before{height:4px}
  .page-header{padding-top:12px}
}


/* v1.5.3 Brand bottom alignment ------------------------------- */
/* ロゴと「株式会社ゴトー工芸」の下端を揃える */
.brand-block{
  align-items:flex-end;
}
.site-header .custom-logo-link{
  align-self:flex-end;
}
.brand-jp{
  align-self:flex-end;
  margin:0 0 1px 0;
  line-height:1;
}


/* v1.5.4 Optical bottom alignment ----------------------------- */
/*
 * ロゴ画像自体の下側に透明余白があるため、要素ボックス同士の
 * flex-end だけでは文字の見た目の下端が揃わない。
 * 会社名をその透明余白分だけ上げて、ロゴの黒い字形下端と光学的に揃える。
 */
.brand-block{
  align-items:flex-end;
}
.site-header .custom-logo-link,
.site-header .brand-fallback{
  align-self:flex-end;
}
.brand-jp{
  align-self:flex-end;
  margin:0 0 8px 0;
  line-height:1;
}
@media(max-width:680px){
  .brand-jp{margin-bottom:6px;}
}


/* v1.5.9 Company page image/spacing fix ------------------------- */
/*
 * 会社概要ページの写真は一切クロップしない。
 * 旧版で「先頭画像」を代表者画像とみなして固定高で切り抜いていたため、
 * SL写真など通常写真が細い帯状に見える問題があった。
 */
.page-id-8 .entry-content figure.wp-block-image,
.page-id-8 .entry-content p:has(> img:only-child){
  height:auto !important;
  max-height:none !important;
  overflow:visible !important;
  margin-top:0;
  margin-bottom:10px;
}
.page-id-8 .entry-content figure.wp-block-image img,
.page-id-8 .entry-content p:has(> img:only-child) img{
  display:block;
  width:auto;
  max-width:100%;
  height:auto !important;
  object-fit:contain !important;
}
/* Gutenberg の余分なスペーサーだけを小さくする */
.page-id-8 .entry-content .wp-block-spacer{
  height:8px !important;
  min-height:8px !important;
  margin:0 !important;
}
.page-id-8 .entry-content > p:empty,
.page-id-8 .entry-content > p:has(> br:only-child){
  display:none;
}
@media(max-width:680px){
  .page-id-8 .entry-content .wp-block-spacer{
    height:6px !important;
    min-height:6px !important;
  }
}


/* v1.6.5 Company page representative-to-company spacing --------- */
/*
 * SL画像には触れない。会社概要本文内の2枚目＝代表者～MBA画像だけを対象とし、
 * その直後から「商号」ブロックまでに挟まる空要素／Spacerを消して密着させる。
 */
.page-id-8 .entry-content > .ht-representative-image{
  height:72px !important;
  min-height:0 !important;
  max-height:72px !important;
  overflow:hidden !important;
  margin-bottom:0 !important;
  padding-bottom:0 !important;
}
.page-id-8 .entry-content > .ht-representative-image img{
  display:block;
  width:auto;
  max-width:100%;
  height:auto !important;
  max-height:none !important;
  margin:0 !important;
}
.page-id-8 .entry-content > .ht-representative-gap{
  display:none !important;
  height:0 !important;
  min-height:0 !important;
  max-height:0 !important;
  margin:0 !important;
  padding:0 !important;
  border:0 !important;
}
.page-id-8 .entry-content > .ht-company-block-after-representative{
  margin-top:0 !important;
  padding-top:0 !important;
}
@media(max-width:680px){
  .page-id-8 .entry-content > .ht-representative-image{
    height:62px !important;
    max-height:62px !important;
  }
}


/* v1.6.9 実績詳細：登録済みアイキャッチ画像を本文直下に原寸比率で表示 */
.single-work__featured-image{
  max-width:850px;
  margin:32px auto 0;
  text-align:center;
}
.single-work__featured-image img{
  display:block;
  width:auto;
  max-width:100%;
  height:auto;
  margin:0 auto;
  object-fit:contain;
}


/* v1.6.10 実績画像フォールバック＋文字リンクの動的下線 */
.ht-dynamic-underline{
  position:relative;
  display:inline;
  text-decoration:none!important;
  background-image:linear-gradient(currentColor,currentColor);
  background-position:100% 100%;
  background-repeat:no-repeat;
  background-size:0 1px;
  transition:background-size .24s ease,background-position 0s .24s;
}
.ht-dynamic-underline:hover,
.ht-dynamic-underline:focus-visible{
  background-position:0 100%;
  background-size:100% 1px;
}
.ht-dynamic-underline:focus-visible{
  outline:2px solid var(--ht-gold);
  outline-offset:3px;
}
.production-card .works-more.ht-dynamic-underline{border-bottom:0}
.works-excerpt-more{color:inherit;white-space:nowrap}
.production-card .works-card__image img{
  display:block;
  width:100%;
  height:auto;
  object-fit:contain;
}


/* v1.6.11 実績一覧：画像領域とタイトル位置を揃え、本文を全文表示 */
.production-grid{
  align-items:start;
}
.production-card{
  align-self:start;
}
.production-card .works-card__image{
  height:520px;
  max-height:520px;
  background:#fff;
  overflow:hidden;
  display:flex;
  align-items:flex-end;
  justify-content:center;
}
.production-card .works-card__image img{
  display:block;
  width:100%;
  height:100%;
  max-width:100%;
  max-height:100%;
  object-fit:contain;
  object-position:center bottom;
}
.production-card .works-card__placeholder{
  width:100%;
  height:100%;
  display:grid;
  place-items:center;
}
.production-card h2{
  min-height:3.7em;
  display:flex;
  align-items:flex-end;
  margin:0 0 1.1rem;
}
.production-card .works-card__body{
  flex:0 0 auto;
}
.production-card .works-card__body > p{
  margin:0;
  white-space:normal;
}
@media(max-width:1100px){
  .production-card .works-card__image{height:440px;max-height:440px}
}
@media(max-width:760px){
  .production-card .works-card__image{height:auto;max-height:none;aspect-ratio:auto}
  .production-card .works-card__image img{width:100%;height:auto;max-height:none;object-fit:contain}
  .production-card h2{min-height:0;display:block}
}


/* v1.6.12 実績一覧：タイトル上端・カード外枠の高さを揃える */
.production-grid{
  align-items:stretch;
}
.production-card{
  align-self:stretch;
  height:100%;
  display:flex;
  flex-direction:column;
}
.production-card .works-card__body{
  flex:1 1 auto;
  display:flex;
  flex-direction:column;
}
.production-card h2{
  min-height:3.7em;
  display:flex;
  align-items:flex-start;
  margin:0 0 1.1rem;
}
.production-card .works-card__body > p{
  flex:0 0 auto;
}
.production-card .works-more{
  margin-top:auto;
  align-self:flex-end;
}
@media(max-width:760px){
  .production-card{height:auto}
  .production-card .works-card__body{display:block}
  .production-card h2{min-height:0;display:block}
  .production-card .works-more{margin-top:1rem}
}

/* =========================================================
   Ver.2.1.0 CSS整理版
   現行トップページ仕様を単一ブロックへ統合。
   Chrome基準。Firefox / Edge / Safari も考慮。
   ========================================================= */

:root{
  --ht-header-alpha:.66;
  --ht-hero-copy-alpha:.24;
  --ht-business-alpha:.81;
  --ht-work-alpha:.96;
  --ht-footer-alpha:.95;
}

/* ブラウザ標準の常時下線を使用しない */
a,
a:link,
a:visited,
a:hover,
a:focus,
a:focus-visible,
a:active{
  text-decoration:none;
  text-decoration-line:none;
  -webkit-text-decoration:none;
}

body.home{background:#fff}

/* 事業領域：通常時は線なし、hover/focus時だけ独自下線 */
.business-card__text-link{
  position:relative;
  display:inline-block;
  border:0;
  box-shadow:none;
  background-image:none;
}
.business-card__text-link::after{
  content:"";
  position:absolute;
  left:0;
  bottom:-3px;
  width:100%;
  height:1px;
  border:0;
  background:currentColor;
  transform:scaleX(0);
  -webkit-transform:scaleX(0);
  transform-origin:right center;
  -webkit-transform-origin:right center;
  opacity:0;
  pointer-events:none;
  transition:transform .24s ease,opacity .24s ease;
}
.business-card__text-link:hover::after,
.business-card__text-link:focus-visible::after{
  transform:scaleX(1);
  -webkit-transform:scaleX(1);
  transform-origin:left center;
  -webkit-transform-origin:left center;
  opacity:1;
}

/* 常時下線を廃止 */
.confidential-note a,
.site-footer a{
  border-bottom:0;
  box-shadow:none;
  background-image:none;
  text-decoration:none;
}

/* 実績の動的下線は従来仕様を維持 */
.ht-dynamic-underline{border-bottom:0}

@media (min-width:681px){
  body.home .hero,
  body.home .hero-media{
    margin:0;
    padding:0;
    background:#fff;
  }

  body.home .hero-media{
    position:relative;
    overflow:hidden;
    min-height:0;
  }

  body.home .hero-media::after{
    display:none;
    content:none;
    background:none;
  }

  body.home .hero-media > img{
    display:block;
    width:60%;
    max-width:60%;
    height:auto;
    aspect-ratio:auto;
    object-fit:contain;
    margin:0 auto;
    background:transparent;
  }

  /* ヘッダー */
  body.home .site-header{
    position:absolute;
    top:0;
    left:20%;
    right:auto;
    z-index:50;
    width:60%;
    max-width:60%;
    margin:0;
    box-sizing:border-box;
    background:rgba(248,246,240,var(--ht-header-alpha));
    border-bottom:1px solid rgba(255,255,255,.18);
    backdrop-filter:blur(3px);
    -webkit-backdrop-filter:blur(3px);
  }
  body.home .site-header a,
  body.home .site-header .primary-nav a{
    color:#151515;
    text-shadow:none;
  }
  body.home .site-header .primary-nav{
    position:static;
    left:auto;
    transform:none;
    margin-left:auto;
    margin-right:0;
  }
  body.home .site-header .primary-nav ul{
    justify-content:flex-end;
  }

  /* ヒーローコピー */
  body.home .hero-copy{
    position:absolute;
    z-index:3;
    left:calc(20% + 24px);
    top:50%;
    transform:translateY(-43%);
    width:430px;
    max-width:calc(60% - 88px);
    margin:0;
    padding:22px 26px 24px;
    box-sizing:border-box;
    background:rgba(4,8,10,var(--ht-hero-copy-alpha));
    border:1px solid rgba(255,255,255,.06);
    box-shadow:none;
  }
  body.home .hero-copy .ht-title{
    color:#fff;
    font-size:clamp(2.25rem,3.15vw,3.4rem);
    line-height:1.08;
    letter-spacing:.02em;
    margin:0 0 .65rem;
    white-space:nowrap;
  }
  body.home .hero-copy .ht-title br{display:block}
  body.home .hero-copy__tagline{
    margin:0 0 .9rem;
    font-size:clamp(.78rem,.95vw,1rem);
    color:var(--ht-gold-light);
  }
  body.home .hero-copy__lead{
    margin:0;
    max-width:360px;
    font-size:clamp(.78rem,.92vw,.98rem);
    line-height:1.65;
    color:rgba(255,255,255,.96);
  }
  body.home .hero-copy__actions{
    margin-top:1rem;
    gap:.75rem;
  }
  body.home .hero-copy__actions .ht-btn{
    padding:.7rem 1rem;
    font-size:.78rem;
    background:rgba(0,0,0,.22);
    color:#fff;
  }

  /* OUR BUSINESS */
  body.home .business{
    position:relative;
    z-index:10;
    width:60%;
    max-width:60%;
    margin:-58px auto 0;
    padding:22px 0;
    box-sizing:border-box;
    background:rgba(247,243,235,var(--ht-business-alpha));
    backdrop-filter:blur(3px);
    -webkit-backdrop-filter:blur(3px);
  }
  body.home .business .section-heading{
    display:flex;
    justify-content:center;
    align-items:flex-end;
    gap:18px;
    margin:0 0 16px;
    padding:0;
  }
  body.home .business .section-heading h2{
    display:block;
    margin:0;
    padding:0;
    line-height:1;
  }
  body.home .business .section-heading .jp{
    display:block;
    position:relative;
    bottom:8px;
    margin:0;
    padding:0;
    line-height:1;
    letter-spacing:.12em;
  }
  body.home .business .section-heading .jp::before,
  body.home .business .section-heading .jp::after{
    content:"—";
    display:inline-block;
    margin:0 .55em;
    opacity:.72;
  }

  /* HOW WE WORK */
  body.home .work-section{
    width:60%;
    max-width:60%;
    margin:0 auto;
    padding-top:30px;
    padding-bottom:12px;
    box-sizing:border-box;
    background:rgba(4,9,12,var(--ht-work-alpha));
  }
  body.home .work-section__head{
    align-items:center;
    margin-bottom:20px;
  }
  body.home .work-section__head p{
    width:max-content;
    max-width:none;
    margin:0 0 0 auto;
    white-space:nowrap;
    text-align:right;
    line-height:1.35;
  }
  body.home .process{
    padding-top:22px;
    padding-bottom:24px;
  }
  body.home .confidential-note{
    margin-top:18px;
  }

  /* footer */
  body.home .site-footer{
    width:60%;
    max-width:60%;
    margin:0 auto;
    padding-top:8px;
    padding-bottom:8px;
    box-sizing:border-box;
    background:rgba(11,16,19,var(--ht-footer-alpha));
  }
  body.home .site-footer__row{
    display:flex;
    justify-content:flex-end;
    align-items:center;
    flex-wrap:nowrap;
    gap:22px;
    width:100%;
    margin:0;
    padding:0;
    white-space:nowrap;
  }
  body.home .site-footer__row > div{
    flex:0 0 auto;
    width:auto;
    margin:0;
    padding:0;
    text-align:right;
  }
  body.home .site-footer__location{
    line-height:1.25;
  }
  body.home .site-footer__bottom{
    min-height:0;
    margin-top:6px;
    padding-top:6px;
  }
  body.home .site-footer__bottom:empty{
    display:none;
  }
}

@media (max-width:680px){
  body.home .site-header,
  body.home .business,
  body.home .work-section,
  body.home .site-footer{
    width:100%;
    max-width:100%;
    margin-left:0;
    margin-right:0;
  }

  body.home .site-header{
    position:relative;
    left:0;
    background:rgba(248,246,240,var(--ht-header-alpha));
  }

  body.home .hero,
  body.home .hero-media{
    background:#fff;
  }

  body.home .hero-media > img{
    width:100%;
    max-width:100%;
  }

  body.home .hero-media::after{
    display:none;
    content:none;
    background:none;
  }

  body.home .hero-copy{
    background:rgba(4,8,10,var(--ht-hero-copy-alpha));
  }

  body.home .business{
    margin-top:0;
    background:rgba(247,243,235,var(--ht-business-alpha));
  }

  body.home .business .section-heading{
    display:flex;
    justify-content:center;
    align-items:flex-end;
    gap:10px;
  }

  body.home .business .section-heading .jp::before,
  body.home .business .section-heading .jp::after{
    content:"—";
    margin:0 .35em;
  }

  body.home .work-section{
    padding-top:24px;
    padding-bottom:14px;
    background:rgba(4,9,12,var(--ht-work-alpha));
  }

  body.home .site-footer{
    margin-top:0;
    padding-top:10px;
    padding-bottom:10px;
    background:rgba(11,16,19,var(--ht-footer-alpha));
  }
}
