/* Kanae standard colors — redesign layer; original swatch colors remain untouched */
:root{--ink:#154735;--mint:#d8f3e7;--peach:#ffe4d2;--paper:#fbfcf8;--muted:#60766b}
html{scroll-behavior:smooth}body{background:var(--paper);color:var(--ink);font-family:'Noto Sans JP',sans-serif}
.color-hero{position:relative;display:grid;grid-template-columns:47% 53%;min-height:540px;margin-top:80px;overflow:hidden;background:linear-gradient(135deg,#fff9f3,#e8f8ef)}
.color-hero-photo{position:relative;min-height:540px;overflow:hidden}.color-hero-photo img{width:100%;height:100%;object-fit:cover;object-position:center;display:block}.color-hero-photo:after{content:'';position:absolute;inset:0;background:linear-gradient(90deg,transparent 75%,rgba(255,249,243,.18))}
.color-hero-copy{position:relative;z-index:1;align-self:center;padding:70px clamp(30px,6vw,115px) 90px clamp(35px,5vw,90px)}.eyebrow,.intro-eyebrow{font-size:11px;font-weight:700;letter-spacing:.24em;color:#438b76}
.color-hero-copy h1{font-family:Georgia,'Times New Roman',serif!important;text-align:left!important;font-size:clamp(45px,5.1vw,85px)!important;font-weight:500!important;line-height:1.05;color:var(--ink)!important;margin:20px 0 28px;letter-spacing:-.035em}.color-hero-copy h1 em{font-weight:400}.hero-rule{width:82px;height:3px;background:#edb18f}.hero-jp{font-size:20px;font-weight:700;letter-spacing:.1em;margin-top:20px}.hero-lead{font-size:14px;color:#45695b;margin:13px 0 25px}.hero-link{display:inline-block;padding:12px 22px;border-radius:50px;background:var(--ink);color:white!important;text-decoration:none;font-size:13px;font-weight:700}.hero-link:hover{background:#24765c}.hero-decor{position:absolute;bottom:0;right:0;display:flex;width:53%;height:12px}.hero-decor span{flex:1}.hero-decor span:nth-child(1){background:#c7e8d5}.hero-decor span:nth-child(2){background:#f8c8a9}.hero-decor span:nth-child(3){background:#ffd783}.hero-decor span:nth-child(4){background:#89c9d8}.hero-decor span:nth-child(5){background:#2d9b87}
.intro-block{display:block!important;max-width:1100px;margin:0 auto;padding:90px 26px 80px;border:0!important;background:transparent!important;border-radius:0!important}.intro-eyebrow{text-align:center;margin-bottom:16px}.intro-block h2{text-align:center;font-size:clamp(25px,3vw,39px);line-height:1.5;color:var(--ink);margin:0 0 25px}.intro-block .color_text1{display:block;width:min(100%,820px);font-size:15px;line-height:2.15;color:#4a5b51;padding:0}
#soku{background:linear-gradient(180deg,#f2faf5 0%,#f8faf6 100%);padding:78px max(24px,5vw) 95px}#soku hr.style2{display:none}.section-heading{text-align:center;margin:0 auto 36px;max-width:800px}.section-heading h2{font-family:Georgia,'Times New Roman',serif;font-size:clamp(32px,4.4vw,58px);font-weight:500;color:var(--ink);margin:14px 0}.section-heading h2 em{font-weight:400}.section-heading>p:last-child{font-size:14px;color:var(--muted);line-height:1.9}
.swatch-toolbar{display:flex;align-items:center;gap:14px;flex-wrap:wrap;max-width:1300px;margin:0 auto 26px}.swatch-toolbar label{font-size:13px;font-weight:700;color:var(--ink)}.swatch-toolbar input{border:1px solid #c7dcd1;border-radius:30px;background:white;min-width:220px;flex:1;max-width:370px;padding:12px 18px;font-size:14px;color:var(--ink)}#swatch-count{font-size:12px;color:var(--muted);margin-left:auto}
#soku .swatch-grid{display:grid!important;grid-template-columns:repeat(6,minmax(0,1fr));gap:16px;width:min(100%,1400px);padding:0;margin:0 auto;justify-content:initial}
#soku .swatch-card{display:flex!important;flex-direction:column;width:auto!important;min-width:0;margin:0!important;padding:0!important;border:1px solid #e1eae3!important;border-radius:16px;overflow:hidden;background:#fff;box-shadow:0 6px 24px rgba(24,77,55,.055);opacity:1!important;visibility:visible!important;transform:none!important;transition:transform .25s,box-shadow .25s!important;font-size:initial}
#soku .swatch-card:hover{transform:translateY(-5px)!important;box-shadow:0 14px 32px rgba(24,77,55,.12)}
#soku .swatch-color{display:block;width:100%;height:auto;aspect-ratio:1.65;min-height:0;border:0;position:relative;flex-shrink:0}
#soku .swatch-color:after{display:none!important}.swatch-meta{padding:16px 16px 17px;background:white;flex:1}.swatch-heading{display:flex;flex-wrap:wrap;gap:6px 9px;align-items:baseline;line-height:1.5}.swatch-heading strong{font-family:Georgia,serif;font-size:19px;color:var(--ink)}.swatch-heading span{font-size:13px;font-weight:700;color:#263d32}.swatch-category{font-size:11px;color:#52816b;margin:7px 0 12px}.swatch-meta dl{margin:0;padding-top:11px;border-top:1px solid #edf0ec}.swatch-meta dl div{display:flex;flex-wrap:wrap;justify-content:space-between;gap:3px 9px;margin:0 0 5px}.swatch-meta dt{font-size:10px;color:#71877b}.swatch-meta dd{font-size:11px;font-weight:600;color:#334a3e;margin:0;overflow-wrap:anywhere}
.table-heading{margin:80px auto 26px}.table{max-width:1300px;margin:0 auto 22px;overflow-x:auto!important;border:1px solid #dce7df;border-radius:15px;box-shadow:0 8px 24px rgba(28,79,54,.04);background:white}.table #table03{min-width:920px;margin:0;background:white}.table #table03 th,.table #table03 td{border-color:#e2ebe5}.table #table03 tr:first-child th{background:#1a5843;color:white}.table #table03 tr:not(:first-child):hover{background:#f0faf4}.at{max-width:1150px;margin:30px auto 65px;padding:20px 25px;border-radius:12px;background:#fff5e9;color:#5e5a4e;line-height:1.9;font-size:13px}.at span{font-weight:700}
@media(max-width:1050px){#soku .swatch-grid{grid-template-columns:repeat(4,minmax(0,1fr))}}@media(max-width:760px){.color-hero{grid-template-columns:1fr;margin-top:70px}.color-hero-photo{min-height:260px;height:300px}.color-hero-copy{padding:38px 28px 55px}.color-hero-copy h1{font-size:clamp(42px,10vw,66px)!important}.hero-decor{width:100%}#soku .swatch-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:13px}.swatch-meta{padding:12px}.swatch-heading strong{font-size:17px}.swatch-heading span{font-size:12px}.intro-block{padding:60px 22px}#soku{padding:55px 16px 70px}.table-heading{margin-top:65px}}@media(max-width:370px){#soku .swatch-grid{grid-template-columns:1fr 1fr;gap:9px}.swatch-meta{padding:10px}.swatch-heading span{font-size:11px}.swatch-meta dl div{display:block}}
@media(prefers-reduced-motion:reduce){html{scroll-behavior:auto}#soku .swatch-card{transition:none!important}}

/* Smartphone: one color per row, with all specification fields legible. */
@media (max-width:760px) {
  #soku .swatch-grid {grid-template-columns:minmax(0,1fr)!important;gap:18px!important;}
  #soku .swatch-card {width:100%!important;max-width:560px;margin:0 auto!important;}
  #soku .swatch-color {aspect-ratio:auto!important;height:138px!important;min-height:138px!important;}
  #soku .swatch-meta {padding:16px 19px 18px!important;}
  #soku .swatch-heading {gap:8px 13px;}
  #soku .swatch-heading strong {font-size:22px!important;}
  #soku .swatch-heading span {font-size:16px!important;}
  #soku .swatch-category {font-size:13px;margin:6px 0 10px;}
  #soku .swatch-meta dl div {display:flex!important;justify-content:space-between;align-items:baseline;gap:8px;margin-bottom:8px;}
  #soku .swatch-meta dt {font-size:12px;}
  #soku .swatch-meta dd {font-size:13px;text-align:right;}
}
@media (max-width:370px) {
  #soku .swatch-grid {grid-template-columns:minmax(0,1fr)!important;gap:16px!important;}
  #soku .swatch-meta {padding:15px!important;}
  #soku .swatch-heading span {font-size:15px!important;}
}

/* Smartphone: explicitly show all five original information fields. */
.mobile-swatch-fields{display:none}
@media(max-width:760px){
 #soku .swatch-heading,#soku .swatch-category{display:none!important}
 #soku .mobile-swatch-fields{display:block!important;margin:0 0 12px}
 #soku .mobile-swatch-fields>div{display:grid;grid-template-columns:105px minmax(0,1fr);gap:12px;align-items:baseline;padding:7px 0;border-bottom:1px solid #f0f2ee}
 #soku .mobile-swatch-fields span{font-size:12px;color:#667d70;font-weight:500}
 #soku .mobile-swatch-fields strong{font-size:16px;color:#173f30;overflow-wrap:anywhere}
 #soku .mobile-swatch-fields>div:first-child strong{font-size:21px;font-family:Georgia,serif}
 #soku .swatch-meta dl div{display:grid!important;grid-template-columns:105px minmax(0,1fr);gap:12px;align-items:baseline;justify-content:initial}
 #soku .swatch-meta dt{font-size:12px!important}
 #soku .swatch-meta dd{font-size:14px!important;text-align:left!important}
}

/* FIX: old page_12.css capped mobile .flex-child at 80px, clipping all text. */
@media screen and (max-width:760px) {
  #soku .swatch-grid > .swatch-card {
    display:flex!important;
    flex-direction:column!important;
    height:auto!important;
    min-height:0!important;
    max-height:none!important;
    overflow:visible!important;
    font-size:initial!important;
  }
  #soku .swatch-grid > .swatch-card > .swatch-color {
    display:block!important;
    width:100%!important;
    height:138px!important;
    flex:0 0 138px!important;
  }
  #soku .swatch-grid > .swatch-card > .swatch-meta {
    display:block!important;
    position:static!important;
    height:auto!important;
    min-height:0!important;
    max-height:none!important;
    overflow:visible!important;
    visibility:visible!important;
    opacity:1!important;
    flex:0 0 auto!important;
    background:#fff!important;
    color:#173f30!important;
  }
  #soku .swatch-meta .mobile-swatch-fields,
  #soku .swatch-meta dl {display:block!important;visibility:visible!important;}
  #soku .swatch-meta dl div {display:grid!important;}
}

/* Mobile compact: one card per row, swatch left and all five fields right. */
@media (max-width:760px) {
 #soku .swatch-grid{gap:10px!important}
 #soku .swatch-grid>.swatch-card{
   display:grid!important;grid-template-columns:34% minmax(0,1fr)!important;
   flex-direction:unset!important;align-items:stretch!important;
   border-radius:12px!important;min-height:126px!important;
 }
 #soku .swatch-grid>.swatch-card>.swatch-color{
   height:100%!important;min-height:126px!important;max-height:none!important;
   width:100%!important;min-width:0!important;flex:auto!important;
   align-self:stretch!important;aspect-ratio:auto!important;
 }
 #soku .swatch-grid>.swatch-card>.swatch-meta{
   padding:10px 12px!important;min-width:0!important;
   display:block!important;align-self:center!important;
 }
 #soku .mobile-swatch-fields{margin:0 0 5px!important}
 #soku .mobile-swatch-fields>div{
   grid-template-columns:60px minmax(0,1fr)!important;gap:5px!important;
   padding:2px 0!important;border:0!important;line-height:1.35!important;
 }
 #soku .mobile-swatch-fields span{font-size:10px!important}
 #soku .mobile-swatch-fields strong{font-size:12px!important;line-height:1.35!important}
 #soku .mobile-swatch-fields>div:first-child strong{font-size:15px!important}
 #soku .swatch-meta dl{padding-top:5px!important;margin:0!important}
 #soku .swatch-meta dl div{
   grid-template-columns:90px minmax(0,1fr)!important;gap:5px!important;
   margin:0 0 2px!important;line-height:1.35!important;
 }
 #soku .swatch-meta dt{font-size:10px!important}
 #soku .swatch-meta dd{font-size:11px!important;overflow-wrap:anywhere!important}
}
@media(max-width:360px){
 #soku .swatch-grid>.swatch-card{grid-template-columns:30% minmax(0,1fr)!important}
 #soku .swatch-grid>.swatch-card>.swatch-meta{padding:8px!important}
}

/* Smartphone-only numeric ordering; desktop DOM order unchanged. */
@media (max-width:760px) {
  #soku .swatch-card[data-code="H01"] { order: 1 !important; }
  #soku .swatch-card[data-code="H02"] { order: 2 !important; }
  #soku .swatch-card[data-code="H03"] { order: 3 !important; }
  #soku .swatch-card[data-code="H04"] { order: 4 !important; }
  #soku .swatch-card[data-code="H05"] { order: 5 !important; }
  #soku .swatch-card[data-code="H06"] { order: 6 !important; }
  #soku .swatch-card[data-code="H07"] { order: 7 !important; }
  #soku .swatch-card[data-code="H08"] { order: 8 !important; }
  #soku .swatch-card[data-code="H09"] { order: 9 !important; }
  #soku .swatch-card[data-code="H10"] { order: 10 !important; }
  #soku .swatch-card[data-code="H11"] { order: 11 !important; }
  #soku .swatch-card[data-code="H12"] { order: 12 !important; }
  #soku .swatch-card[data-code="H13"] { order: 13 !important; }
  #soku .swatch-card[data-code="H14"] { order: 14 !important; }
  #soku .swatch-card[data-code="H15"] { order: 15 !important; }
  #soku .swatch-card[data-code="H16"] { order: 16 !important; }
  #soku .swatch-card[data-code="H17"] { order: 17 !important; }
  #soku .swatch-card[data-code="H18"] { order: 18 !important; }
  #soku .swatch-card[data-code="H19"] { order: 19 !important; }
  #soku .swatch-card[data-code="H20"] { order: 20 !important; }
  #soku .swatch-card[data-code="H21"] { order: 21 !important; }
  #soku .swatch-card[data-code="H22"] { order: 22 !important; }
  #soku .swatch-card[data-code="H23"] { order: 23 !important; }
  #soku .swatch-card[data-code="H24"] { order: 24 !important; }
  #soku .swatch-card[data-code="H25"] { order: 25 !important; }
  #soku .swatch-card[data-code="H26"] { order: 26 !important; }
  #soku .swatch-card[data-code="H27"] { order: 27 !important; }
  #soku .swatch-card[data-code="H28"] { order: 28 !important; }
  #soku .swatch-card[data-code="H29"] { order: 29 !important; }
  #soku .swatch-card[data-code="H30"] { order: 30 !important; }
  #soku .swatch-card[data-code="H31"] { order: 31 !important; }
  #soku .swatch-card[data-code="H32"] { order: 32 !important; }
  #soku .swatch-card[data-code="H33"] { order: 33 !important; }
  #soku .swatch-card[data-code="H34"] { order: 34 !important; }
  #soku .swatch-card[data-code="H35"] { order: 35 !important; }
  #soku .swatch-card[data-code="H36"] { order: 36 !important; }
  #soku .swatch-card[data-code="H37"] { order: 37 !important; }
  #soku .swatch-card[data-code="H38"] { order: 38 !important; }
  #soku .swatch-card[data-code="H39"] { order: 39 !important; }
  #soku .swatch-card[data-code="H40"] { order: 40 !important; }
  #soku .swatch-card[data-code="H41"] { order: 41 !important; }
  #soku .swatch-card[data-code="H42"] { order: 42 !important; }
}

/* Desktop responsive columns; mobile overrides remain unchanged. */
@media (min-width:1051px) and (max-width:1250px){#soku .swatch-grid{grid-template-columns:repeat(5,minmax(0,1fr))}}
