/*
Theme Name:２０２６雛型版テーマ
Author: 株式会社大塚ビジネスサービス
Author URI: https://www.otsuka-bs.co.jp/
Version: 1.5.44
*/

:root{
  --black:#111111;
  --ink:#1f1d1a;
  --brown:#3a3028;
  --gold:#c49a5f;
  --gold-soft:#d9c7a4;
  --paper:#f5f0e6;
  --white:#ffffff;
  --muted:#6f675f;
  --line:#ded2bf;
}

*{
  box-sizing:border-box;
}

html{
  scroll-behavior:smooth;
}

body{
  margin:0;
  background:var(--paper);
  color:var(--ink);
  font-family:"Noto Sans JP", system-ui, sans-serif;
  line-height:1.9;
  letter-spacing:.04em;
}

img{
  max-width:100%;
  height:auto;
  display:block;
}

a{
  color:inherit;
  text-decoration:none;
}

.container{
  width:min(90%,1200px);
  margin-inline:auto;
}

.site-main{
  overflow:hidden;
}

/* Header */

/*
  Logo alignment note:
  header.php no longer wraps the_custom_logo() inside .site-logo <a>.
  WordPress outputs .custom-logo-link itself, so CSS can align logo precisely
  with the left edge of .container / .editor-content.
*/

.site-header{
  position:fixed;
  top:0;
  left:0;
  width:100%;
  z-index:999;
  background:rgba(14,13,12,.82);
  backdrop-filter:blur(12px);
}

.site-header .container{
  width:min(90%,1200px);
  max-width:1200px;
  margin-inline:auto;
  padding:0;
}

.header-inner{
  min-height:110px;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:24px;
}

.site-logo{
  display:flex;
  align-items:center;
  justify-content:flex-start;
  color:var(--white);
  font-family:"Noto Serif JP", serif;
  font-size:22px;
  font-weight:700;
  letter-spacing:.12em;
}

.site-branding{
  display:flex;
  align-items:center;
  justify-content:flex-start;
  flex:0 0 auto;
  margin-right:auto;
  min-width:0;
}

.site-branding .custom-logo-link,
.custom-logo-link{
  display:flex;
  align-items:center;
  justify-content:flex-start;
  flex:0 0 auto;
  margin:0;
  line-height:0;
}

.custom-logo{
  display:block;
  width:500px;
  height:auto;
  max-width:500px;
  max-height:none;
  object-fit:contain;
  margin:0;
}

.global-nav ul{
  display:flex;
  gap:30px;
  list-style:none;
  margin:0;
  padding:0;
  justify-content:flex-end;
}

.global-nav a{
  color:var(--white);
  font-size:14px;
  letter-spacing:.08em;
  position:relative;
}

.global-nav a::after{
  content:"";
  position:absolute;
  left:0;
  bottom:43px;
  width:0;
  height:2px;
  background:var(--gold);
  transition:.25s ease;
}

.global-nav a:hover::after{
  width:100%;
}

/* Hamburger */

.menu-toggle{
  display:none;
  width:44px;
  height:44px;
  border:1px solid rgba(255,255,255,.35);
  background:rgba(0,0,0,.15);
  color:#fff;
  cursor:pointer;
}

.menu-toggle span{
  display:block;
  width:22px;
  height:2px;
  background:#fff;
  margin:5px auto;
}

/* Hero */

.hero{
  min-height:800px;
  display:flex;
  align-items:center;
  position:relative;
  background-position:var(--takumi-slide-pc-position, center center);
  background-size:cover;
  color:#fff;
  overflow:hidden;
}

.hero::before{
  content:none;
}

.hero-inner{
  position:relative;
  z-index:1;
  padding-top:80px;
}

.hero-kicker{
  display:none;
}

.hero-title{
  margin:0;
  max-width:860px;
  font-family:"Noto Serif JP", serif;
  font-size:54px;
  font-weight:700;
  line-height:1.35;
  letter-spacing:.08em;
  text-shadow:0 8px 30px rgba(0,0,0,.45);
}

.hero-text{
  margin-top:24px;
  max-width:720px;
  color:rgba(255,255,255,.88);
  font-size:17px;
}



/* =========================================
   Hero Slider
========================================= */

.hero-slider{
  min-height:800px;
}

.hero-slides{
  position:absolute;
  inset:0;
  z-index:0;
  overflow:hidden;
}

.hero-slide{
  position:absolute;
  inset:0;
  background-position:center;
  background-size:cover;
  opacity:0;
  transform:scale(1);
  transform-origin:center center;
  transition:
    opacity var(--takumi-hero-fade-duration, 1.6s) ease-in-out,
    transform 6s ease;
  will-change:opacity, transform;
}

.hero-slide.is-initial{
  opacity:1;
  transform:scale(1);
}

.hero-slide.active{
  opacity:1;
}

/* Still images keep the slow zoom effect. Videos remain at their natural
   scale so motion in the footage is easier to watch. */
.hero-slide.has-image.active{
  transform:scale(1.08);
}

.hero-slide.has-video.active{
  transform:scale(1);
}

.hero-overlay{
  display:none;
}

.hero-slider .hero-inner{
  position:relative;
  z-index:2;
}



/* Global navigation SVG icons */

.global-nav a{
  display:inline-flex;
  align-items:center;
  gap:6px;
}

.global-nav-icon{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  width:14px;
  height:14px;
  flex:0 0 14px;
  color:currentColor;
  opacity:.82;
  transform:translateY(.5px);
}

.global-nav-icon svg{
  display:block;
  width:14px;
  height:14px;
  fill:none;
  stroke:currentColor;
  stroke-width:1.7;
  stroke-linecap:round;
  stroke-linejoin:round;
}

.global-nav a:hover .global-nav-icon,
.global-nav a:focus .global-nav-icon{
  opacity:1;
}

.global-nav-text{
  display:inline-block;
}

@media(max-width:960px){

  .global-nav a{
    justify-content:flex-start;
    gap:8px;
  }

  .global-nav-icon,
  .global-nav-icon svg{
    width:15px;
    height:15px;
  }

}

/* Lead */

.lead-section{
  padding:60px 0 36px;
  background:var(--paper);
}

.lead-section .container{
  width:min(90%,1200px);
}

.lead-heading{
  margin:0 0 18px;
  color:var(--ink);
  font-family:"Noto Serif JP", serif;
  font-weight:600;
  line-height:1.5;
  letter-spacing:.06em;
}

.lead-section h2.lead-heading{font-size:clamp(26px,3.2vw,32px);}
.lead-section h3.lead-heading{font-size:clamp(23px,2.8vw,28px);}
.lead-section h4.lead-heading{font-size:clamp(20px,2.4vw,24px);}
.lead-section h5.lead-heading{font-size:clamp(18px,2.1vw,21px);}
.lead-section h6.lead-heading{font-size:clamp(16px,1.9vw,18px);}

.lead-text{
  width:100%;
  max-width:none;
  margin:0;
  text-align:left;
  font-family:"Noto Serif JP", serif;
  font-size:clamp(16px,2.6vw,20px);
  line-height:2;
}

/* Home Cards */

.home-cards{
  padding:28px 0 46px;
}

.card-grid{
  display:grid;
  grid-template-columns:repeat(4,1fr);
  gap:24px;
}

.home-card{
  display:block;
  background:#fff;
  border:1px solid var(--takumi-home-card-border-color,var(--line));
  box-shadow:0 18px 45px rgba(25,20,16,.08);
  overflow:hidden;
  transition:.3s ease;
}

.home-card:hover{
  transform:translateY(-6px);
  box-shadow:0 24px 60px rgba(25,20,16,.15);
}

.home-card-image-frame{
  aspect-ratio:16/9;
  overflow:hidden;
}

.home-card-image{
  width:100%;
  height:100%;
  background-size:cover;
  background-position:center;
  transform:scale(1);
  transition:transform .6s ease;
}

.home-card:hover .home-card-image{
  transform:scale(1.08);
}

.home-card-body{
  padding:24px;
}

.home-card-en{
  display:block;
  color:var(--gold);
  font-size:12px;
  letter-spacing:.18em;
  text-transform:uppercase;
  margin-bottom:8px;
}

.home-card-title{
  margin:0;
  font-family:"Noto Serif JP", serif;
  font-size:22px;
}





/* Front page spacing when editable content is empty */

.home-cards.home-cards-no-editor-content{
  padding-bottom:82px;
}

@media(max-width:768px){

  .home-cards.home-cards-no-editor-content{
    padding-bottom:56px;
  }

}

/* Front page editable content area */

.front-editor-section{
  padding:0 0 72px;
  background:var(--paper);
}

.front-editor-section .container{
  width:min(90%,1200px);
}

.front-editor-content{
  margin:0;
}

.front-editor-content:empty{
  display:none;
}

@media(max-width:768px){

  .front-editor-section{
    padding:0 0 48px;
  }

  .lead-section{
    padding:42px 0 24px;
  }

  .home-cards{
    padding:18px 0 34px;
  }

}

/* News */

.news-section{
  padding:100px 0;
  background:#151311;
  color:#fff;
}

.section-head{
  display:flex;
  justify-content:space-between;
  align-items:flex-end;
  gap:24px;
  margin-bottom:34px;
}

.section-title{
  margin:0;
  font-family:"Noto Serif JP", serif;
  font-size:clamp(30px,4vw,46px);
  letter-spacing:.08em;
}

.section-title span{
  display:block;
  color:var(--gold);
  font-family:"Noto Sans JP", sans-serif;
  font-size:12px;
  letter-spacing:.2em;
  text-transform:uppercase;
  margin-bottom:6px;
}

.news-list{
  display:grid;
  gap:0;
  background:transparent;
}

.news-item{
  position:relative;
  display:grid;
  grid-template-columns:160px 1fr;
  gap:22px;
  padding:24px;
  background:#151311;
  border:0;
}

.news-item{
  border-bottom:1px solid rgba(255,255,255,.14);
}

.news-item + .news-item{
  border-top:0;
}

.news-item + .news-item::before{
  content:none;
  display:none;
}

.news-date{
  color:var(--gold-soft);
  font-size:14px;
}

.news-title{
  font-size:17px;
}

.more-link{
  display:inline-block;
  color:var(--gold-soft);
  border-bottom:1px solid var(--gold-soft);
  padding-bottom:5px;
}



/* =========================================
   Sitemap shortcode
   Navigation structure + independent pages
========================================= */

.takumi-sitemap{
  --takumi-sitemap-accent:var(--gold);
  --takumi-sitemap-line:rgba(31,29,26,.13);
  --takumi-sitemap-branch:rgba(31,29,26,.11);
  margin:0;
  padding:0;
  background:transparent;
  border:0;
  border-radius:0;
  box-shadow:none;
}

/*
 * The sitemap uses the theme's normal .editor-content body exactly as other
 * static pages do. Color Customizer can therefore control the same content
 * background and text colors without a sitemap-only panel fighting it.
 */
@supports (color:color-mix(in srgb, #000 50%, transparent)){
  .takumi-sitemap{
    --takumi-sitemap-line:color-mix(in srgb, currentColor 13%, transparent);
    --takumi-sitemap-branch:color-mix(in srgb, currentColor 10%, transparent);
  }
}

.editor-content--sitemap > p:empty,
.editor-content:has(.takumi-sitemap) > p:empty{
  display:none;
}

.editor-content .takumi-sitemap ul,
.takumi-sitemap ul{
  list-style:none !important;
  margin:0 !important;
  padding:0 !important;
}

.editor-content .takumi-sitemap li,
.takumi-sitemap li{
  margin:0;
  padding:0;
}

.takumi-sitemap > .takumi-sitemap-menu{
  display:grid;
  grid-template-columns:repeat(2,minmax(0,1fr));
  column-gap:44px;
  row-gap:30px;
  align-items:start;
}

.takumi-sitemap-menu > li{
  min-width:0;
  align-self:start;
}

.takumi-sitemap-menu > li > a{
  display:block;
  position:relative;
  min-height:42px;
  padding:7px 34px 12px 0;
  border-bottom:1px solid var(--takumi-sitemap-line);
  color:inherit;
  font-size:1.02em;
  font-weight:700;
  line-height:1.55;
  text-decoration:none;
  overflow-wrap:anywhere;
  transition:color .2s ease;
}

/* Short accent line: the visual anchor used by the reference design. */
.takumi-sitemap-menu > li > a::before{
  content:"";
  position:absolute;
  left:0;
  bottom:-1px;
  width:30px;
  height:2px;
  background:var(--takumi-sitemap-accent);
}

.takumi-sitemap-menu > li > a::after{
  content:"";
  position:absolute;
  top:50%;
  right:4px;
  width:6px;
  height:6px;
  border-top:1.5px solid currentColor;
  border-right:1.5px solid currentColor;
  opacity:.42;
  transform:translateY(-65%) rotate(45deg);
  transition:opacity .2s ease, right .2s ease, border-color .2s ease;
}

.takumi-sitemap a:hover,
.takumi-sitemap a:focus-visible{
  color:var(--takumi-sitemap-accent);
}

.takumi-sitemap-menu > li > a:hover::after,
.takumi-sitemap-menu > li > a:focus-visible::after{
  right:1px;
  opacity:.9;
}

.takumi-sitemap a:focus-visible{
  outline:2px solid var(--takumi-sitemap-accent);
  outline-offset:4px;
  border-radius:2px;
}

/* Child navigation is a true visual tree under its parent item.
 * Keep the child column visibly inside the parent, even when generic
 * editor list styles or plugin styles are present. */
.takumi-sitemap .sub-menu,
.editor-content .takumi-sitemap .sub-menu,
.editor-content--sitemap .takumi-sitemap .sub-menu{
  position:relative;
  margin:10px 0 0 12px !important;
  padding:0 0 0 30px !important;
}

.takumi-sitemap .sub-menu::before,
.editor-content .takumi-sitemap .sub-menu::before,
.editor-content--sitemap .takumi-sitemap .sub-menu::before{
  content:"";
  position:absolute;
  left:7px;
  top:2px;
  bottom:13px;
  width:1px;
  background:var(--takumi-sitemap-branch);
}

.takumi-sitemap .sub-menu > li,
.editor-content .takumi-sitemap .sub-menu > li,
.editor-content--sitemap .takumi-sitemap .sub-menu > li{
  position:relative;
}

.takumi-sitemap .sub-menu > li::before,
.editor-content .takumi-sitemap .sub-menu > li::before,
.editor-content--sitemap .takumi-sitemap .sub-menu > li::before{
  content:"";
  position:absolute;
  left:-23px;
  top:1.05em;
  width:16px;
  height:1px;
  background:var(--takumi-sitemap-branch);
}

/* First-level children must read as children, not as another top-level row. */
.takumi-sitemap-menu > li > .sub-menu > li > a,
.editor-content--sitemap .takumi-sitemap-menu > li > .sub-menu > li > a{
  padding-left:6px;
  font-size:.94em;
  font-weight:500;
}

.takumi-sitemap .sub-menu a{
  display:block;
  position:relative;
  padding:5px 20px 5px 3px;
  color:inherit;
  font-size:.94em;
  font-weight:500;
  line-height:1.65;
  text-decoration:none;
  overflow-wrap:anywhere;
  transition:color .2s ease, transform .2s ease;
}

.takumi-sitemap .sub-menu a::after{
  content:"";
  position:absolute;
  top:50%;
  right:5px;
  width:4px;
  height:4px;
  border-top:1px solid currentColor;
  border-right:1px solid currentColor;
  opacity:0;
  transform:translateY(-65%) rotate(45deg);
  transition:opacity .2s ease, right .2s ease;
}

.takumi-sitemap .sub-menu a:hover,
.takumi-sitemap .sub-menu a:focus-visible{
  transform:translateX(2px);
}

.takumi-sitemap .sub-menu a:hover::after,
.takumi-sitemap .sub-menu a:focus-visible::after{
  right:1px;
  opacity:.65;
}

.takumi-sitemap .sub-menu .sub-menu,
.editor-content .takumi-sitemap .sub-menu .sub-menu,
.editor-content--sitemap .takumi-sitemap .sub-menu .sub-menu{
  margin:3px 0 4px 8px !important;
  padding-left:26px !important;
}

.takumi-sitemap .sub-menu .sub-menu a{
  font-size:.9em;
  font-weight:400;
}

/* Independent fixed pages are ordinary top-level entries, not a special block. */
.takumi-sitemap-extra-item > a{
  font-weight:700;
}

@media(max-width:820px){
  .takumi-sitemap > .takumi-sitemap-menu{
    column-gap:28px;
    row-gap:26px;
  }
}

@media(max-width:620px){
  .takumi-sitemap > .takumi-sitemap-menu{
    grid-template-columns:1fr;
    row-gap:22px;
  }

  .takumi-sitemap-menu > li > a{
    min-height:0;
    padding-top:5px;
    padding-bottom:10px;
  }

  .takumi-sitemap .sub-menu{
    margin-top:8px !important;
  }
}

/* News archive list */

.news-archive-content{
  background:transparent;
  padding:0;
}

.news-archive-list{
  display:grid;
  background:transparent;
}

.news-archive-item{
  position:relative;
  display:grid;
  grid-template-columns:140px 1fr;
  gap:18px;
  align-items:start;
  padding:14px 0;
  background:transparent;
  color:var(--ink);
  border:0;
  border-bottom:1px solid var(--line);
  text-decoration:none;
}

.news-archive-item:hover,
.news-archive-item:focus,
.news-archive-item:focus-visible,
.news-archive-item:active,
.news-archive-item:visited{
  background:transparent;
  color:var(--ink);
}

.news-archive-item::before,
.news-archive-item::after{
  content:none;
  display:none;
}

.news-archive-date{
  color:var(--gold);
  font-size:13px;
  line-height:1.5;
  white-space:nowrap;
}

.news-archive-title{
  color:var(--ink);
  font-size:16px;
  line-height:1.5;
}

.news-archive-item:hover .news-archive-title,
.news-archive-item:focus .news-archive-title,
.news-archive-item:focus-visible .news-archive-title,
.news-archive-item:active .news-archive-title{
  color:var(--gold);
}

.news-archive-pagination{
  display:flex;
  flex-wrap:wrap;
  align-items:center;
  justify-content:center;
  gap:8px;
  width:100%;
  margin-top:22px;
  padding-top:4px;
}

.news-archive-pagination .page-numbers{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  min-width:34px;
  min-height:34px;
  padding:4px 10px;
  border:none;
  background:transparent;
  color:var(--ink);
  font-size:14px;
  line-height:1;
  transition:.25s ease;
}

.news-archive-pagination .page-numbers.current,
.news-archive-pagination .page-numbers:hover,
.news-archive-pagination .page-numbers:focus{
  color:var(--gold);
}

.news-archive-pagination .page-numbers.prev,
.news-archive-pagination .page-numbers.next{
  min-width:70px;
}

@media(max-width:768px){

  .news-archive-item{
    grid-template-columns:1fr;
    gap:4px;
    padding:12px 0;
  }

  .news-archive-pagination{
    justify-content:flex-start;
    margin-top:16px;
    padding-top:0;
  }

  .news-archive-pagination .page-numbers{
    min-width:34px;
    min-height:34px;
  }

}

/* Sub Header */

.sub-header{
  min-height:240px;
  display:grid;
  grid-template-rows:110px minmax(0,1fr);
  padding:0;
  position:relative;
  color:#fff;
  background-position:center;
  background-size:cover;
}

.sub-header::before{
  content:none;
}

.sub-header-inner{
  grid-row:2;
  align-self:stretch;
  position:relative;
  z-index:1;
  display:flex;
  flex-direction:column;
  align-items:flex-start;
  justify-content:center;
  min-height:0;
  padding:6px 0;
}

.sub-header-en{
  color:var(--gold-soft);
  letter-spacing:.22em;
  text-transform:uppercase;
  font-size:13px;
  line-height:1.3;
  margin:0 0 8px;
}

.page-title{
  margin:0;
  font-family:"Noto Serif JP", serif;
  font-size:44px;
  line-height:1.25;
  letter-spacing:.08em;
}

/* Page Content */

.page-content{
  padding:35px 0 120px;
}

.editor-content{
  background:rgba(255,255,255,.68);
  padding:2em;
  font-size:16px;
}

.editor-content h1,
.editor-content h2,
.editor-content h3,
.editor-content h4,
.editor-content h5,
.editor-content h6{
  font-family:"Noto Serif JP", serif;
  line-height:1.5;
  color:var(--ink);
}

.editor-content h1{
  font-size:42px;
  border-bottom:3px solid var(--gold);
  padding-bottom:16px;
  margin:0 0 36px;
}

.editor-content h2{
  font-size:26px;
  border-left:6px solid var(--gold);
  padding-left:18px;
  margin:56px 0 24px;
}

.editor-content h3{
  font-size:28px;
  padding-bottom:10px;
  border-bottom:1px solid var(--line);
  margin:42px 0 20px;
}

.editor-content h4{
  font-size:23px;
  color:var(--brown);
  margin:34px 0 16px;
  padding-left:16px;
  border-left:3px solid var(--gold-soft);
  font-family:"Noto Serif JP", serif;
  line-height:1.6;
}

.editor-content h5{
  font-size:18px;
  color:var(--ink);
  margin:28px 0 12px;
  padding-bottom:6px;
  border-bottom:1px dotted var(--line);
  font-family:"Noto Serif JP", serif;
  letter-spacing:.08em;
  line-height:1.6;
}

.editor-content h6{
  display:inline-block;
  font-size:14px;
  color:#fff;
  background:var(--brown);
  margin:24px 0 10px;
  padding:3px 10px;
  font-family:"Noto Sans JP", sans-serif;
  letter-spacing:.12em;
  line-height:1.5;
}

.editor-content p{
  margin:0 0 1.6em;
}

.editor-content ul,
.editor-content ol{
  padding-left:1.5em;
}

.editor-content blockquote{
  margin:36px 0;
  padding:26px 32px;
  border-left:5px solid var(--gold);
  background:#fff;
}

.editor-content table{
  width:100%;
  border-collapse:collapse;
  margin:34px 0;
  background:#fff;
}

.editor-content th,
.editor-content td{
  border:1px solid var(--line);
  padding:14px 16px;
}

.editor-content th{
  background:#2a241f;
  color:#fff;
}

/* Footer */

.site-footer{
  background:#0f0e0d;
  color:#fff;
  padding:60px 0;
}

.footer-inner{
  display:flex;
  justify-content:space-between;
  gap:30px;
  align-items:center;
}

.footer-brand strong{
  font-family:"Noto Serif JP", serif;
  font-size:calc(1em + 3px);
  letter-spacing:.08em;
}

.footer-nav ul{
  display:flex;
  gap:22px;
  list-style:none;
  padding:0;
  margin:0;
  font-size:13px;
  color:rgba(255,255,255,.75);
}

/* Responsive */

@media(max-width:1200px){

  .header-inner{
    gap:18px;
  }

  .custom-logo{
    width:420px;
    max-width:420px;
  }

  .global-nav ul{
    gap:22px;
  }

  .global-nav a{
    white-space:nowrap;
    word-break:keep-all;
    overflow-wrap:normal;
    font-size:13px;
    letter-spacing:.04em;
  }

}

@media(max-width:1024px){

  .custom-logo{
    width:340px;
    max-width:340px;
  }

  .global-nav ul{
    gap:16px;
  }

  .global-nav a{
    font-size:12px;
    letter-spacing:.02em;
  }

}

@media(max-width:960px){

  .site-header{
    overflow:visible;
  }

  .site-header .container{
    width:100%;
    max-width:none;
    padding:0 16px;
  }

  .header-inner{
    min-height:68px;
    display:flex;
    align-items:center;
    justify-content:space-between;
    gap:12px;
  }

  .site-branding{
    flex:1 1 auto;
    min-width:0;
    margin-right:12px;
    overflow:hidden;
  }

  .custom-logo{
    width:320px;
    max-width:100%;
    height:auto;
    max-height:62px;
  }

  .menu-toggle{
    display:flex;
    flex:0 0 44px;
    width:44px;
    height:44px;
    align-items:center;
    justify-content:center;
    flex-direction:column;
    position:relative;
    z-index:1001;
  }

  .menu-toggle span{
    display:block;
    width:22px;
    height:2px;
    background:#fff;
    margin:3px 0;
  }

  .global-nav{
    position:fixed;
    top:68px;
    right:0;
    width:82%;
    max-width:360px;
    min-width:280px;
    height:calc(100vh - 68px);
    background:#111;
    transform:translateX(100%);
    transition:.28s ease;
    padding:34px 26px;
    border-left:1px solid rgba(196,154,95,.35);
    z-index:1000;
    overflow-y:auto;
  }

  body.menu-open .global-nav{
    transform:translateX(0);
  }

  .global-nav ul{
    display:block;
    width:100%;
    margin:0;
    padding:0;
  }

  .global-nav li{
    display:block;
    width:100%;
    border-bottom:1px solid rgba(255,255,255,.12);
  }

  .global-nav a{
    display:block;
    width:100%;
    padding:16px 0;
    font-size:16px;
    line-height:1.6;
    letter-spacing:.06em;
    text-align:left;
    white-space:nowrap;
    word-break:keep-all;
    overflow-wrap:normal;
  }

  .card-grid{
    grid-template-columns:1fr;
  }

  .footer-inner{
    display:block;
    text-align:center;
  }

  .footer-brand{
    margin-bottom:24px;
  }

  .footer-nav{
    width:100%;
  }

  .footer-nav ul{
    display:flex;
    flex-wrap:wrap;
    justify-content:center;
    align-items:center;
    gap:12px 18px;
    width:100%;
    margin:20px 0 0;
    padding:0;
    line-height:1.6;
  }

  .footer-nav li{
    display:inline-flex;
    width:auto;
    max-width:100%;
  }

  .footer-nav a{
    display:inline-block;
    white-space:nowrap;
    word-break:keep-all;
    overflow-wrap:normal;
    font-size:13px;
    line-height:1.6;
  }

}

@media(max-width:768px){

  .hero-title{
    font-size:40px;
  }

  .sub-header{
    min-height:210px;
    grid-template-rows:68px minmax(0,1fr);
    padding:0;
  }

  .page-title{
    font-size:34px;
  }

  .news-item{
    grid-template-columns:1fr;
    gap:8px;
  }

  .footer-copy{
    margin-top:22px;
    font-size:10px;
    line-height:1.7;
  }

}

@media(max-width:390px){

  .global-nav{
    width:86%;
    min-width:260px;
  }

  .global-nav a{
    font-size:15px;
  }

  .footer-nav ul{
    gap:10px 14px;
  }

  .footer-nav a{
    font-size:12px;
  }

}

/* Breadcrumb */

.breadcrumb-small{
  margin:-12px 0 14px;
}

.breadcrumb-small a:hover,
.breadcrumb-small a:focus,
.breadcrumb-small a:focus-visible{
  color:#333 !important;
  text-decoration:underline;
}

/* Footer Copyright */

.site-footer .footer-copy{
  display:block;
  width:100%;
  margin:28px auto 0;
  padding:0;
  text-align:center !important;
  color:rgba(255,255,255,.48);
  font-size:11px !important;
  line-height:1.8;
  letter-spacing:.08em;
}

/* =========================================
   Scroll Fade Animation
========================================= */

.scroll-fade{
  opacity:0;
  transform:translateY(36px);
  transition:
    opacity .9s ease,
    transform .9s ease;
  will-change:opacity, transform;
}

.scroll-fade.is-visible{
  opacity:1;
  transform:translateY(0);
}

/* Respect reduced motion settings */
@media (prefers-reduced-motion: reduce){

  .scroll-fade{
    opacity:1;
    transform:none;
    transition:none;
  }

}


/* =========================================
   Sub Page Header Title Slide Animation
========================================= */

.sub-header .sub-header-en,
.sub-header .page-title{
  opacity:0;
  transform:translateX(-48px);
  animation:heroTextSlideIn 1.1s ease forwards;
}

.sub-header .page-title{
  animation-delay:.18s;
}

@media (prefers-reduced-motion: reduce){

  .sub-header .sub-header-en,
  .sub-header .page-title{
    opacity:1;
    transform:none;
    animation:none;
  }

}

/* =========================================
   Hero Text Slide Animation
========================================= */

.hero-title,
.hero-text{
  opacity:0;
  transform:translateX(-48px);
  animation:heroTextSlideIn 1.1s ease forwards;
}

.hero-text{
  animation-delay:.25s;
}

@keyframes heroTextSlideIn{
  from{
    opacity:0;
    transform:translateX(-48px);
  }

  to{
    opacity:1;
    transform:translateX(0);
  }
}

@media (prefers-reduced-motion: reduce){

  .hero-title,
  .hero-text{
    opacity:1;
    transform:none;
    animation:none;
  }

}

/* =========================================
   Responsive Embed / YouTube
========================================= */

.editor-content iframe{
  display:block;
  width:100%;
  max-width:100%;
  border:0;
}

/*
 * Keep ordinary video/embed iframes responsive, but do not force a 16:9
 * height on Google Maps. Google Maps embed code carries its intended height
 * in the iframe height attribute, so leaving CSS height unset lets values
 * such as height="450" work as entered in the editor.
 */
.editor-content iframe:not([src*="google.com/maps/embed"]):not([src*="maps.google.com/maps"]){
  aspect-ratio:16 / 9;
  height:auto;
}

.editor-content .youtube,
.editor-content .video,
.editor-content .embed,
.editor-content .wp-video,
.editor-content .wp-embedded-content{
  width:100%;
  max-width:100%;
}


/* =========================================
   Hero Slider Video Support
========================================= */

.hero-slide{
  overflow:hidden;
}

.hero-slide.has-video{
  background:#000;
}

.hero-slide-video{
  position:absolute;
  inset:0;
  width:100%;
  height:100%;
  object-fit:cover;
  object-position:var(--takumi-slide-pc-position, center center);
  display:block;
  /*
   * Video slides intentionally do not zoom. The parent .hero-slide stays
   * at scale(1), while object-position continues to control the crop.
   */
  transform:none;
  transition:none;
  will-change:auto;
}


/* Per-slide smartphone crop.
   The source position can change independently for every slide, while the
   zoom axis stays at center center on the parent slide. */
@media screen and (max-width:960px){
  .hero-slide{
    background-position:var(--takumi-slide-sp-position, var(--takumi-slide-pc-position, center center));
    transform-origin:center center;
  }

  .hero-slide-video{
    object-position:var(--takumi-slide-sp-position, var(--takumi-slide-pc-position, center center));
  }
}

/* =========================================
   Global Navigation Dropdown
========================================= */

.global-nav li{
  position:relative;
}

.global-nav .sub-menu{
  position:absolute;
  top:100%;
  left:50%;
  z-index:1000;
  min-width:220px;
  padding:12px 0;
  margin:14px 0 0;
  list-style:none;
  background:rgba(15,14,13,.96);
  border:1px solid rgba(255,255,255,.12);
  box-shadow:0 18px 42px rgba(0,0,0,.28);
  opacity:0;
  visibility:hidden;
  transform:translate(-50%, 10px);
  transition:
    opacity .28s ease,
    transform .28s ease,
    visibility .28s ease;
}

.global-nav li:hover > .sub-menu,
.global-nav li:focus-within > .sub-menu{
  opacity:1;
  visibility:visible;
  transform:translate(-50%, 0);
}

.global-nav .sub-menu li{
  width:100%;
  border-bottom:1px solid rgba(255,255,255,.08);
}

.global-nav .sub-menu li:last-child{
  border-bottom:none;
}

.global-nav .sub-menu a{
  display:block;
  padding:11px 18px;
  color:#fff;
  font-size:13px;
  line-height:1.6;
  letter-spacing:.06em;
  white-space:nowrap;
  text-align:left;
}

.global-nav .sub-menu a::after{
  display:none;
}

.global-nav .sub-menu a:hover,
.global-nav .sub-menu a:focus{
  background:rgba(255,255,255,.06);
}

/* Mobile submenu */

@media(max-width:960px){

  .global-nav .sub-menu{
    position:static;
    min-width:0;
    width:100%;
    margin:0;
    padding:0 0 0 14px;
    background:transparent;
    border:none;
    box-shadow:none;
    opacity:1;
    visibility:visible;
    transform:none;
  }

  .global-nav .sub-menu li{
    border-bottom:none;
  }

  .global-nav .sub-menu a{
    padding:10px 0 10px 14px;
    font-size:14px;
    color:rgba(255,255,255,.78);
    border-left:1px solid rgba(255,255,255,.18);
  }

}
/* =========================================
   Content Body Link Color
========================================= */

.editor-content a{
  color:#2f5fa7;
  text-decoration:none;
  transition:
    color .2s ease,
    opacity .2s ease;
}

.editor-content a:hover,
.editor-content a:focus,
.editor-content a:focus-visible{
  color:#163d78;
}

.editor-content a:active{
  color:#0d2c5a;
}


/* Optional icons for text links inserted from the Classic Editor GUI.
   Image links intentionally never display these icons. */
.editor-content a.cmstheme-text-link-icon::before{
  content:"";
  display:inline-block;
  width:1em;
  height:1em;
  margin-right:.38em;
  background-color:currentColor;
  -webkit-mask:var(--cmstheme-text-link-icon) center / contain no-repeat;
  mask:var(--cmstheme-text-link-icon) center / contain no-repeat;
  vertical-align:-.12em;
}
.editor-content a.cmstheme-text-link-icon:has(img)::before{
  display:none;
}

.cmstheme-link-icon-home{--cmstheme-text-link-icon:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M3.5 11.5 12 4l8.5 7.5'/%3E%3Cpath d='M5.8 10.2V20h4.4v-5.4h3.6V20h4.4v-9.8'/%3E%3C/svg%3E")}
.cmstheme-link-icon-building{--cmstheme-text-link-icon:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 20V6.5L12 4l7 2.5V20'/%3E%3Cpath d='M8 9h2M14 9h2M8 12h2M14 12h2M8 15h2M14 15h2'/%3E%3C/svg%3E")}
.cmstheme-link-icon-company{--cmstheme-text-link-icon:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4.5 20h15M7 20V5h10v15M10 8h4M10 11h4M10 14h4'/%3E%3C/svg%3E")}
.cmstheme-link-icon-business{--cmstheme-text-link-icon:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 20V8h5V4h9v16M8 11h2M8 14h2M13 8h3M13 11h3M13 14h3'/%3E%3C/svg%3E")}
.cmstheme-link-icon-works{--cmstheme-text-link-icon:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4 7h16v12H4zM8 7V5h8v2M4 12h16'/%3E%3C/svg%3E")}
.cmstheme-link-icon-gallery{--cmstheme-text-link-icon:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='4' y='5' width='16' height='14' rx='1.5'/%3E%3Cpath d='m7 16 3.2-3.5 2.4 2.5 2.1-2.2L18 16'/%3E%3Ccircle cx='9' cy='9' r='1.2'/%3E%3C/svg%3E")}
.cmstheme-link-icon-training{--cmstheme-text-link-icon:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 6.5h10a3 3 0 0 1 3 3V19H8a3 3 0 0 0-3 3zM5 6.5v12M9 10h5M9 13h5'/%3E%3C/svg%3E")}
.cmstheme-link-icon-recruit{--cmstheme-text-link-icon:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='8' r='3'/%3E%3Cpath d='M5.5 20a6.5 6.5 0 0 1 13 0'/%3E%3C/svg%3E")}
.cmstheme-link-icon-news{--cmstheme-text-link-icon:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 5h12v14H6zM9 9h6M9 12h6M9 15h4'/%3E%3C/svg%3E")}
.cmstheme-link-icon-contact,.cmstheme-link-icon-mail{--cmstheme-text-link-icon:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='4' y='6' width='16' height='12' rx='1.5'/%3E%3Cpath d='m5 8.5 7 5 7-5'/%3E%3C/svg%3E")}
.cmstheme-link-icon-phone{--cmstheme-text-link-icon:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M8.5 5.5 6 8c1 5 5 9 10 10l2.5-2.5-3-3-2 1.2c-1.7-.8-3.1-2.2-3.9-3.9l1.2-2z'/%3E%3C/svg%3E")}
.cmstheme-link-icon-access{--cmstheme-text-link-icon:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 21s6-5.2 6-11a6 6 0 0 0-12 0c0 5.8 6 11 6 11z'/%3E%3Ccircle cx='12' cy='10' r='2'/%3E%3C/svg%3E")}
.cmstheme-link-icon-pdf{--cmstheme-text-link-icon:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M7 4h7l4 4v12H7zM14 4v4h4'/%3E%3Cpath d='M9 13h2.2a1.4 1.4 0 0 1 0 2.8H9v2.2M14 13v5M14 13h2.4M14 15.5h2'/%3E%3C/svg%3E")}
.cmstheme-link-icon-faq{--cmstheme-text-link-icon:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='12' r='8'/%3E%3Cpath d='M9.8 9a2.4 2.4 0 0 1 4.4 1.3c0 1.8-2.2 2-2.2 3.7M12 17h.01'/%3E%3C/svg%3E")}
.cmstheme-link-icon-sitemap{--cmstheme-text-link-icon:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 5v5M6 15v-3h12v3'/%3E%3Crect x='9' y='3' width='6' height='4' rx='1'/%3E%3Crect x='3' y='15' width='6' height='4' rx='1'/%3E%3Crect x='15' y='15' width='6' height='4' rx='1'/%3E%3C/svg%3E")}
.cmstheme-link-icon-privacy{--cmstheme-text-link-icon:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 4 6 6.5v5.2c0 3.8 2.4 6.9 6 8.3 3.6-1.4 6-4.5 6-8.3V6.5zM9.5 12.5 11.2 14 15 10'/%3E%3C/svg%3E")}
.cmstheme-link-icon-external{--cmstheme-text-link-icon:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M9 7H6v11h11v-3M13 6h5v5M18 6l-8 8'/%3E%3C/svg%3E")}
.cmstheme-link-icon-shop{--cmstheme-text-link-icon:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 10h14l-1-5H6zM6 10v10h12V10M9 20v-5h6v5'/%3E%3C/svg%3E")}

/* =========================================
   Header Contact Area
========================================= */

/*
  PC表示のみ、最上位メニューの最後の項目を
  ヘッダー高いっぱいのオレンジ帯として表示。
  サブメニューやスマホハンバーガー内の項目には影響させない。
*/

@media(min-width:961px){

  .header-inner{
    align-items:stretch;
  }

  .site-branding{
    align-self:center;
  }

  .global-nav{
    display:flex;
    align-items:stretch;
    align-self:stretch;
    height:auto;
  }

  .global-nav > ul{
    display:flex;
    align-items:stretch;
    height:auto;
    gap:30px;
  }

  .global-nav > ul > li{
    position:relative;
    display:flex;
    align-items:stretch;
  }

  .global-nav > ul > li > a{
    display:flex;
    align-items:center;
  }

  .global-nav > ul > li:last-child{
    background:#c67a2d;
    margin-left:4px;
  }

  .global-nav > ul > li:last-child > a{
    display:flex;
    align-items:center;
    justify-content:center;
    height:100%;
    padding:0 34px;
    color:#fff !important;
    background:transparent;
    transition:
      background .25s ease,
      color .25s ease;
  }

  .global-nav > ul > li:last-child > a:hover,
  .global-nav > ul > li:last-child > a:focus,
  .global-nav > ul > li:last-child > a:focus-visible{
    background:#ad641f;
    color:#fff !important;
  }

  .global-nav > ul > li:last-child > a::after{
    display:none;
  }

  /* サブメニューは帯指定の影響を受けないように明示的に戻す */
  .global-nav .sub-menu li,
  .global-nav .sub-menu li:last-child{
    display:block;
    background:transparent;
    margin-left:0;
  }

  .global-nav .sub-menu li:last-child > a{
    display:block;
    height:auto;
    padding:11px 18px;
    background:transparent;
  }

  .global-nav .sub-menu li:last-child > a:hover,
  .global-nav .sub-menu li:last-child > a:focus{
    background:rgba(255,255,255,.06);
  }

}

/* スマホ・タブレットのハンバーガー内では通常の縦並びメニューに戻す */
@media(max-width:960px){

  .global-nav,
  .global-nav > ul,
  .global-nav > ul > li{
    height:auto;
    align-items:initial;
  }

  .global-nav > ul > li:last-child{
    background:transparent;
    margin-left:0;
  }

  .global-nav > ul > li:last-child > a{
    display:block;
    height:auto;
    padding:16px 0;
    background:transparent;
    color:#fff !important;
  }

  .global-nav > ul > li:last-child > a:hover,
  .global-nav > ul > li:last-child > a:focus,
  .global-nav > ul > li:last-child > a:focus-visible{
    background:transparent;
    color:#fff !important;
  }

}

/* =========================================
   MW WP Form Design
========================================= */

.editor-content .mw_wp_form{
  max-width:860px;
  margin:0 auto;
}

.editor-content .mw_wp_form p{
  margin:0 0 28px;
}

.editor-content .mw_wp_form label{
  display:block;
  margin:0 0 8px;
  color:var(--brown);
  font-weight:700;
  letter-spacing:.06em;
}

.editor-content .mw_wp_form input[type="text"],
.editor-content .mw_wp_form input[type="email"],
.editor-content .mw_wp_form input[type="tel"],
.editor-content .mw_wp_form textarea,
.editor-content .mw_wp_form select{
  width:100%;
  padding:14px 16px;
  border:1px solid var(--line);
  background:#fff;
  color:var(--ink);
  font-size:16px;
  line-height:1.7;
  border-radius:0;
}

.editor-content .mw_wp_form textarea{
  min-height:220px;
  resize:vertical;
}

.editor-content .mw_wp_form input:focus,
.editor-content .mw_wp_form textarea:focus,
.editor-content .mw_wp_form select:focus{
  outline:none;
  border-color:var(--gold);
  box-shadow:0 0 0 3px rgba(196,154,95,.18);
}

.editor-content .mw_wp_form .error{
  display:block;
  margin-top:6px;
  color:#b03a2e;
  font-size:13px;
}

.editor-content .mw_wp_form input[type="checkbox"],
.editor-content .mw_wp_form input[type="radio"]{
  margin-right:8px;
  transform:scale(1.1);
}

.editor-content .mw_wp_form input[type="submit"],
.editor-content .mw_wp_form button{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  min-width:220px;
  padding:14px 34px;
  border:none;
  background:#c67a2d;
  color:#fff;
  font-size:15px;
  letter-spacing:.12em;
  cursor:pointer;
  transition:background .25s ease, transform .25s ease;
}

.editor-content .mw_wp_form input[type="submit"]:hover,
.editor-content .mw_wp_form button:hover{
  background:#ad641f;
  transform:translateY(-1px);
}

@media(max-width:768px){

  .editor-content .mw_wp_form{
    max-width:none;
  }

  .editor-content .mw_wp_form input[type="submit"],
  .editor-content .mw_wp_form button{
    width:100%;
  }

}

/* =========================================
   MW WP Form Tel Field Fix
========================================= */

.editor-content .mw_wp_form .mwform-tel-field{
  display:flex;
  align-items:center;
  gap:10px;
  flex-wrap:wrap;
}

.editor-content .mw_wp_form .mwform-tel-field input[type="text"]{
  width:90px !important;
  max-width:90px !important;
  min-width:0;
  flex:0 0 90px;
}

@media(max-width:768px){

  .editor-content .mw_wp_form .mwform-tel-field input[type="text"]{
    width:80px !important;
    max-width:80px !important;
    flex-basis:80px;
  }

}

/* Footer navigation from WordPress menu */

.footer-nav .footer-menu,
.footer-nav ul{
  display:flex;
  flex-wrap:wrap;
  justify-content:flex-end;
  gap:22px;
  list-style:none;
  padding:0;
  margin:0;
  font-size:13px;
  color:rgba(255,255,255,.75);
}

.footer-nav li{
  margin:0;
  padding:0;
}

.footer-nav a{
  color:rgba(255,255,255,.75);
  text-decoration:none;
  transition:color .25s ease;
}

.footer-nav a:hover,
.footer-nav a:focus,
.footer-nav .current-menu-item > a,
.footer-nav .current_page_item > a{
  color:#fff;
}

@media(max-width:768px){

  .footer-inner{
    flex-direction:column;
    align-items:flex-start;
  }

  .footer-nav .footer-menu,
  .footer-nav ul{
    justify-content:flex-start;
    gap:12px 18px;
  }

}

/* Global navigation icon nowrap fix */

.global-nav li,
.global-nav a,
.global-nav-text{
  white-space:nowrap;
}

.global-nav a{
  flex-wrap:nowrap;
  min-width:0;
}

.global-nav-icon{
  flex-shrink:0;
}

.global-nav-text{
  line-height:1;
}

@media(max-width:960px){

  .global-nav li,
  .global-nav a,
  .global-nav-text{
    white-space:normal;
  }

  .global-nav a{
    align-items:center;
  }

}


/* =========================================================
   FINAL: Header/global nav body-width alignment balanced
   - Header width matches content container: min(90%,1200px)
   - Logo is roughly 1/3 of content width
   - Global nav text is close to base body size
   - Contact CTA stays inside the same width
   - Hero remains 800px fixed on large displays
========================================================= */

:root{
  --takumi-hero-lock-height:800px;
}

@media screen and (min-width:961px){

  body .site-header{
    overflow:visible !important;
  }

  body .site-header .container{
    width:min(90%,1200px) !important;
    max-width:1200px !important;
    margin-left:auto !important;
    margin-right:auto !important;
    padding-left:0 !important;
    padding-right:0 !important;
    box-sizing:border-box !important;
  }

  body .header-inner{
    display:flex !important;
    align-items:stretch !important;
    justify-content:space-between !important;
    width:100% !important;
    min-width:0 !important;
    gap:16px !important;
  }

  body .site-branding{
    align-self:center !important;
    flex:0 0 34% !important;
    min-width:320px !important;
    max-width:400px !important;
    margin-right:0 !important;
  }

  body .custom-logo{
    width:100% !important;
    max-width:400px !important;
    height:auto !important;
  }

  body .global-nav{
    display:flex !important;
    align-items:stretch !important;
    align-self:stretch !important;
    justify-content:flex-end !important;
    flex:1 1 auto !important;
    min-width:0 !important;
    overflow:visible !important;
  }

  body .global-nav > ul{
    display:flex !important;
    align-items:stretch !important;
    justify-content:flex-end !important;
    flex-wrap:nowrap !important;
    width:100% !important;
    min-width:0 !important;
    gap:clamp(8px,.7vw,14px) !important;
    padding:0 !important;
    margin:0 !important;
  }

  body .global-nav > ul > li{
    flex:0 1 auto !important;
    display:flex !important;
    align-items:stretch !important;
    min-width:0 !important;
  }

  body .global-nav > ul > li > a{
    display:flex !important;
    align-items:center !important;
    white-space:nowrap !important;
    font-size:14px !important;
    letter-spacing:.035em !important;
    gap:5px !important;
  }

  body .global-nav-icon{
    width:13px !important;
    height:13px !important;
    flex:0 0 13px !important;
  }

  body .global-nav-icon svg{
    width:13px !important;
    height:13px !important;
  }

  body .global-nav > ul > li:last-child{
    flex:0 0 auto !important;
    align-self:stretch !important;
    display:flex !important;
    align-items:stretch !important;
    min-width:max-content !important;
    margin-left:4px !important;
  }

  body .global-nav > ul > li:last-child > a{
    display:flex !important;
    align-items:center !important;
    justify-content:center !important;
    height:100% !important;
    min-height:110px !important;
    min-width:112px !important;
    padding-left:16px !important;
    padding-right:16px !important;
    box-sizing:border-box !important;
    white-space:nowrap !important;
  }

}

@media screen and (min-width:961px) and (max-width:1280px){

  body .site-branding{
    flex-basis:30% !important;
    min-width:260px !important;
    max-width:340px !important;
  }

  body .custom-logo{
    max-width:340px !important;
  }

  body .header-inner{
    gap:12px !important;
  }

  body .global-nav > ul{
    gap:7px !important;
  }

  body .global-nav > ul > li > a{
    font-size:13px !important;
    letter-spacing:.02em !important;
    gap:4px !important;
  }

  body .global-nav-icon,
  body .global-nav-icon svg{
    width:12px !important;
    height:12px !important;
  }

  body .global-nav > ul > li:last-child > a{
    min-width:104px !important;
    padding-left:12px !important;
    padding-right:12px !important;
  }

}

/* Hero fixed height */

@media screen and (min-width:1920px), screen and (min-height:1080px){

  body .hero,
  body .hero.hero-slider,
  body .hero-slider,
  body .hero-slides,
  body .hero-slide,
  body .hero-slide.active,
  body .hero-slide-video,
  body .hero-slide video,
  body .hero-slide img,
  body .hero-video,
  body .hero-video video{
    height:var(--takumi-hero-lock-height, 800px) !important;
    min-height:var(--takumi-hero-lock-height, 800px) !important;
    max-height:var(--takumi-hero-lock-height, 800px) !important;
  }

  body .hero,
  body .hero.hero-slider,
  body .hero-slider{
    overflow:hidden !important;
  }

  body .hero-slide-video,
  body .hero-slide video,
  body .hero-slide img,
  body .hero-video video{
    width:100% !important;
    object-fit:cover !important;
  }

}

@media screen and (min-width:961px) and (max-width:1919px) and (max-height:1079px){

  body .hero,
  body .hero.hero-slider,
  body .hero-slider{
    min-height:75vh !important;
    max-height:var(--takumi-hero-lock-height, 800px) !important;
  }

}

@media screen and (max-width:960px){

  body .hero,
  body .hero.hero-slider,
  body .hero-slider{
    height:auto !important;
    min-height:78vh !important;
    max-height:none !important;
  }

}

@media screen and (max-width:640px){

  body .hero,
  body .hero.hero-slider,
  body .hero-slider{
    min-height:72vh !important;
  }

}


/* =========================================================
   FINAL: Mobile logo and hero slogan balance
   - Mobile logo uses available width up to hamburger menu
   - Desktop hero slogan width/size is tuned for 1920x1080
========================================================= */

/* Mobile logo optimization */

@media screen and (max-width:960px){

  body .site-header .container{
    width:92% !important;
    max-width:1200px !important;
  }

  body .header-inner{
    min-height:78px !important;
    gap:8px !important;
  }

  body .site-branding{
    flex:1 1 auto !important;
    min-width:0 !important;
    max-width:calc(100vw - 86px) !important;
    margin-right:0 !important;
  }

  body .site-branding .custom-logo-link,
  body .custom-logo-link{
    display:flex !important;
    align-items:center !important;
    max-width:100% !important;
    min-width:0 !important;
  }

  body .custom-logo{
    width:auto !important;
    max-width:calc(100vw - 96px) !important;
    max-height:64px !important;
    height:auto !important;
    object-fit:contain !important;
  }

  body .menu-toggle{
    flex:0 0 44px !important;
    width:44px !important;
    height:44px !important;
    margin-left:auto !important;
  }

}

@media screen and (max-width:480px){

  body .site-header .container{
    width:94% !important;
  }

  body .header-inner{
    min-height:74px !important;
    gap:6px !important;
  }

  body .site-branding{
    max-width:calc(100vw - 76px) !important;
  }

  body .custom-logo{
    max-width:calc(100vw - 84px) !important;
    max-height:60px !important;
  }

}

@media screen and (max-width:360px){

  body .custom-logo{
    max-width:calc(100vw - 78px) !important;
    max-height:54px !important;
  }

}


/* =========================================================
   FINAL: Hero slogan one-line optimization
   - Hero slogan and sub text stay on a single line
   - Font size auto scales to fit around half of content width
   - Optimized for 1920x1080 and larger displays
========================================================= */

@media screen and (min-width:961px){

  body .hero-text-group,
  body .hero-content{
    max-width:600px !important;
    width:50% !important;
    min-width:0 !important;
  }

  body .hero-title{
    display:block !important;
    width:100% !important;
    max-width:100% !important;

    white-space:nowrap !important;
    word-break:keep-all !important;
    overflow-wrap:normal !important;

    font-size:clamp(28px,2.45vw,54px) !important;
    line-height:1.18 !important;
    letter-spacing:.02em !important;
  }

  body .hero-text{
    display:block !important;
    width:100% !important;
    max-width:100% !important;

    white-space:nowrap !important;
    word-break:keep-all !important;
    overflow-wrap:normal !important;

    font-size:clamp(13px,.82vw,18px) !important;
    line-height:1.6 !important;
  }

}

@media screen and (min-width:1920px){

  body .hero-text-group,
  body .hero-content{
    max-width:600px !important;
    width:50% !important;
  }

  body .hero-title{
    font-size:min(54px,2.8vw) !important;
  }

  body .hero-text{
    font-size:min(18px,.95vw) !important;
  }

}

@media screen and (min-width:961px) and (max-width:1280px){

  body .hero-text-group,
  body .hero-content{
    width:56% !important;
    max-width:560px !important;
  }

  body .hero-title{
    font-size:clamp(24px,3vw,42px) !important;
  }

  body .hero-text{
    font-size:clamp(12px,1vw,16px) !important;
  }

}

@media screen and (max-width:960px){

  body .hero-text-group,
  body .hero-content{
    width:100% !important;
    max-width:100% !important;
  }

  body .hero-title{
    white-space:normal !important;
    font-size:clamp(28px,8vw,44px) !important;
    line-height:1.3 !important;
  }

  body .hero-text{
    white-space:normal !important;
    font-size:clamp(13px,3.5vw,17px) !important;
  }

}



/* =========================================================
   Front page header position
   - Initial view: header occupies its own space above the main visual.
   - After scrolling: sticky positioning keeps the header at the viewport top.
   - Other pages retain the existing fixed-header behavior.
========================================================= */
body.home .site-header{
  position:-webkit-sticky !important;
  position:sticky !important;
  top:0 !important;
  left:auto !important;
  width:100% !important;
}

body.home.admin-bar .site-header{
  top:32px !important;
}

@media screen and (max-width:782px){
  body.home.admin-bar .site-header{
    top:46px !important;
  }
}



/* =========================================================
   FINAL: Desktop dropdown / footer hierarchy fixes (1.5.11)
   - PC dropdown children are always stacked vertically.
   - Dropdown sits closer to the global navigation.
   - Footer child menus render vertically under each parent.
   - Footer menu icons use the same SVG icon system as global navigation.
========================================================= */

@media screen and (min-width:961px){

  body .global-nav > ul > li > .sub-menu{
    display:flex !important;
    flex-direction:column !important;
    align-items:stretch !important;
    justify-content:flex-start !important;
    gap:0 !important;
    top:100% !important;
    margin:2px 0 0 !important;
    padding:8px 0 !important;
  }

  body .global-nav .sub-menu > li{
    display:block !important;
    width:100% !important;
    flex:none !important;
  }

  body .global-nav .sub-menu > li > a{
    display:flex !important;
    width:100% !important;
    min-height:0 !important;
    height:auto !important;
    box-sizing:border-box !important;
  }

  /* Third level and deeper open to the right instead of being laid over the first dropdown. */
  body .global-nav .sub-menu .sub-menu{
    display:flex !important;
    flex-direction:column !important;
    gap:0 !important;
    top:-8px !important;
    left:100% !important;
    margin:0 0 0 4px !important;
    transform:translate(8px,0) !important;
  }

  body .global-nav .sub-menu li:hover > .sub-menu,
  body .global-nav .sub-menu li:focus-within > .sub-menu{
    transform:translate(0,0) !important;
  }

}

/* Footer navigation hierarchy */

.footer-nav .footer-menu{
  display:flex;
  flex-wrap:wrap;
  align-items:flex-start;
  justify-content:flex-end;
  gap:22px 28px;
}

.footer-nav .footer-menu > li{
  display:flex;
  flex-direction:column;
  align-items:flex-start;
  justify-content:flex-start;
  width:auto;
  min-width:0;
}

.footer-nav .footer-menu > li > a,
.footer-nav .sub-menu a{
  display:inline-flex;
  align-items:center;
  justify-content:flex-start;
  gap:6px;
}

.footer-nav .sub-menu{
  display:flex !important;
  flex-direction:column !important;
  flex-wrap:nowrap !important;
  align-items:flex-start !important;
  justify-content:flex-start !important;
  gap:5px !important;
  width:100% !important;
  margin:8px 0 0 !important;
  padding:0 !important;
  list-style:none !important;
  font-size:12px !important;
}

.footer-nav .sub-menu li{
  display:block !important;
  width:100% !important;
  margin:0 !important;
  padding:0 !important;
}

.footer-nav .sub-menu a{
  width:100%;
  font-size:12px;
  line-height:1.6;
  white-space:normal;
  opacity:.84;
}

.footer-nav .global-nav-icon{
  width:14px;
  height:14px;
  flex:0 0 14px;
}

.footer-nav .global-nav-icon svg{
  width:14px;
  height:14px;
}

.footer-nav a:hover .global-nav-icon,
.footer-nav a:focus .global-nav-icon{
  opacity:1;
}

@media screen and (max-width:768px){

  .footer-nav .footer-menu{
    justify-content:flex-start;
    align-items:flex-start;
    gap:16px 22px;
  }

  .footer-nav .footer-menu > li{
    align-items:flex-start;
  }

  .footer-nav .sub-menu{
    margin-top:6px !important;
  }

}



/* =========================================================
   FINAL: submenu legacy color cleanup / footer compact nowrap (1.5.32)
========================================================= */

/* Submenu text color must follow the normal/header color.
   Do not reintroduce the legacy beige --gold-soft on hover. */
.global-nav .sub-menu a:hover,
.global-nav .sub-menu a:focus,
.global-nav .sub-menu a:focus-visible{
  background:rgba(255,255,255,.06);
}

@media screen and (min-width:961px){
  .footer-nav .footer-menu{
    flex-wrap:nowrap !important;
    gap:0 14px !important;
  }

  .footer-nav .footer-menu > li{
    flex:0 0 auto !important;
    width:auto !important;
    min-width:max-content !important;
  }

  .footer-nav .footer-menu > li > a,
  .footer-nav .sub-menu a{
    white-space:nowrap !important;
    word-break:keep-all !important;
    overflow-wrap:normal !important;
  }

  .footer-nav .sub-menu{
    width:auto !important;
    min-width:max-content !important;
  }
}
