/*
Theme Name: SUNNY B
Description: SUNNY Bのデザインと固定ページの文章・写真編集に対応したテーマ。
Version: 2.0.3
Requires at least: 6.3
Requires PHP: 7.4
Text Domain: sunny-b
*/
/* Original design is loaded from assets/style.css. */
.admin-bar .site-header{top:32px}
[id]{scroll-margin-top:96px}
.nav a{white-space:nowrap}
.nav .nav-cta{color:#fff}
.entry-content{overflow-wrap:anywhere}
@media(max-width:782px){.admin-bar .site-header{top:46px}}
@media(max-width:600px){.admin-bar .site-header{top:0}}
@media(max-width:760px){.mobile-cta{bottom:max(9px,env(safe-area-inset-bottom))}.page-hero .display{overflow-wrap:anywhere}.btn{white-space:normal}}
@media(prefers-reduced-motion:reduce){html{scroll-behavior:auto}}

/* Header logo and full-screen navigation. */
.brand-logo{width:220px;height:auto;display:block}
.breadcrumb{display:none!important}
.mobile-menu{display:none}
.menu-btn{width:48px;height:48px;flex-shrink:0;cursor:pointer;padding:12px;border:0}
.menu-btn span{display:block;width:24px;height:2px;background:var(--deep);margin:5px 0;border-radius:2px}
.menu-close{position:absolute;right:24px;top:15px;width:48px;height:48px;padding:12px;border:0;background:transparent;color:var(--deep);cursor:pointer}
.menu-close span{position:absolute;left:12px;top:23px;width:24px;height:2px;background:currentColor;transform:rotate(45deg)}
.menu-close span:last-child{transform:rotate(-45deg)}
@media(max-width:1050px){
 .mobile-menu,.mobile-menu.open{display:flex;position:fixed;inset:0;top:0;z-index:10000;height:100vh;height:100dvh;padding:88px 32px 40px;background:var(--paper);border:0;overflow-y:auto;overscroll-behavior:contain;flex-direction:column;visibility:hidden;opacity:0;transform:translateY(-24px);pointer-events:none;transition:transform .4s cubic-bezier(.22,1,.36,1),opacity .3s ease,visibility 0s .4s}
 .mobile-menu.open{visibility:visible;opacity:1;transform:translateY(0);pointer-events:auto;transition-delay:0s}
 .mobile-menu nav{width:min(600px,100%);margin:auto;flex-shrink:0}
 .mobile-menu a{display:block;padding:18px 4px;border-bottom:1px solid var(--line);font-size:clamp(17px,2.5vw,24px);font-weight:700;line-height:1.6;transform:translateY(12px);opacity:0;transition:transform .4s ease,opacity .4s ease}
 .mobile-menu.open a{transform:translateY(0);opacity:1;transition-delay:.1s}
 .mobile-menu.open a:nth-child(2){transition-delay:.13s}.mobile-menu.open a:nth-child(3){transition-delay:.16s}.mobile-menu.open a:nth-child(4){transition-delay:.19s}.mobile-menu.open a:nth-child(5){transition-delay:.22s}.mobile-menu.open a:nth-child(6){transition-delay:.25s}.mobile-menu.open a:nth-child(7){transition-delay:.28s}
 .admin-bar .mobile-menu{top:32px;height:calc(100dvh - 32px)}
}
@media(max-width:782px){.admin-bar .mobile-menu{top:46px;height:calc(100dvh - 46px)}}
@media(max-width:760px){.brand-logo{width:180px}.menu-close{right:15px;top:10px}.mobile-menu,.mobile-menu.open{padding:76px 25px max(28px,env(safe-area-inset-bottom))}.mobile-menu a{padding:15px 4px}}
@media(prefers-reduced-motion:reduce){.mobile-menu,.mobile-menu.open,.mobile-menu a{transition:none;transform:none}}

/* 1.2: brand green, continuous photo outlines and distinct work/photo layouts. */
:root{--deep:#005732;--deep2:#003d23;--green:#4b8c68;--sage:#d8eadd;--sage2:#edf6ef;--ink:#19382b;--muted:#5c7165;--line:#d3dfd5;--shadow:0 24px 70px rgba(0,87,50,.12);--shadow-sm:0 10px 30px rgba(0,87,50,.08)}
.accent-text{color:#43835d}
.hero:before{background:linear-gradient(145deg,#d0e8d6,#edf6ef)}
.hero:after{background:linear-gradient(130deg,#e4f2e7,#f5faf6)}
.page-hero:before{background:linear-gradient(145deg,#cfe8d5,#edf6ef)}
.btn:not(.light):not(.ghost):not(.sand){background:linear-gradient(120deg,#005732,#287d50)}
.nav-cta{background:linear-gradient(120deg,#005732,#287d50)}
.section.deep{background:linear-gradient(135deg,#005732 0%,#126840 58%,#337e52 100%)}
.contact{background:linear-gradient(125deg,#005732,#27764c)}
.contact-card .btn:not(.light):not(.ghost):not(.sand){background:#fff;color:var(--deep)}
footer{background:#003d23}
.photo-pair figure{position:relative;isolation:isolate}
.photo-pair figure:after{content:"";position:absolute;inset:0;border:1px solid #c3d0c5;border-radius:inherit;pointer-events:none;z-index:2}
.photo-pair figcaption{border:0}
.work-grid{gap:18px}
.work-card,.work-card.photo{background:linear-gradient(145deg,#f3f8f2,#dbeedd)!important;color:var(--deep);border:0;border-radius:16px;min-height:250px;padding:28px;box-shadow:none}
.work-card.photo:before{display:none}
.work-card .work-no{color:#477657;letter-spacing:.14em;font-weight:800}
.work-card h3{color:#005732;font-size:24px;margin-top:16px}
.work-card p{color:#3e604d;font-size:13px}
.work-meta{gap:14px;padding-top:24px}
.work-meta div{background:transparent;border-radius:0;padding:0}
.work-meta b{color:#52735e;font-size:10px}
.work-meta span{color:#204c33;font-size:12px;margin-top:5px}
.section.deep .media-strip{grid-template-columns:1.2fr 1fr 1fr;gap:24px;margin-top:56px;align-items:start}
.section.deep .media-strip figure{background:transparent;border-radius:0;overflow:visible}
.section.deep .media-strip figure:nth-child(2){margin-top:32px}
.section.deep .media-strip figure:nth-child(3){margin-top:64px}
.section.deep .media-strip img{height:auto;aspect-ratio:4/3;object-fit:cover;border-radius:6px}
.section.deep .media-strip figcaption{padding:12px 16px;background:#005732;border:0;color:#fff;font-size:13px;font-weight:700;letter-spacing:.04em;border-radius:0 0 6px 6px}
.section.deep .media-strip img{border-radius:6px 6px 0 0}
@media(max-width:760px){
 .work-card,.work-card.photo{min-height:220px;padding:24px}
 .section.deep .media-strip{grid-template-columns:1fr;gap:28px;margin-top:40px}
 .section.deep .media-strip figure:nth-child(2),.section.deep .media-strip figure:nth-child(3){margin-top:0}
 .section.deep .media-strip img{aspect-ratio:16/9}
}


/* Work page: illustrated work cards and unified photo sizing. */
.section.deep{background:#fff}
.section.deep .section-head .eyebrow,.section.deep .section-head .section-title,.section.deep .section-head .lead{color:var(--deep)}
.work-card,.work-card.photo{background:#fff!important;border:1px solid var(--line);overflow:hidden}
.work-card-image{display:block;width:100%;height:150px;object-fit:contain;margin:0 0 18px;background:#fff}
.photo-stack{display:grid;grid-template-columns:1fr 1fr;gap:14px}
.photo-stack img,.visual-card img{display:block;width:100%;height:320px;object-fit:cover}
.photo-stack img{height:260px}
@media(max-width:760px){
 .work-card-image{height:130px}
 .photo-stack{grid-template-columns:1fr}
 .photo-stack img,.visual-card img{height:auto;aspect-ratio:4/3;object-fit:cover}
}

/* 1.2.2: aligned home activity images */
.section.deep .media-strip{grid-template-columns:repeat(3,minmax(0,1fr));gap:24px;align-items:start}
.section.deep .media-strip figure,.section.deep .media-strip figure:nth-child(2),.section.deep .media-strip figure:nth-child(3){margin-top:0}
.section.deep .media-strip img{display:block;width:100%;height:auto;aspect-ratio:4/3;object-fit:cover;border-radius:6px}
.section.deep .media-strip figcaption{display:block;padding:12px 0 0;color:#fff}
@media(max-width:760px){.section.deep .media-strip{grid-template-columns:1fr;gap:28px}.section.deep .media-strip img{aspect-ratio:16/9}}


/* 1.2.3: activity cards — square image bottom + padded green caption band */
.section.deep .media-strip figure{
  overflow:hidden;
  border-radius:6px;
}
.section.deep .media-strip img{
  display:block;
  width:100%;
  aspect-ratio:4/3;
  object-fit:cover;
  border-radius:6px 6px 0 0;
}
.section.deep .media-strip figcaption{
  display:block;
  margin:0;
  padding:14px 16px 15px;
  background:#005732;
  color:#fff;
  border:0;
  border-radius:0 0 6px 6px;
  font-size:13px;
  font-weight:700;
  line-height:1.5;
  letter-spacing:.04em;
}


/* 1.2.4: add comfortable spacing to ABOUT photo captions */
.photo-pair figcaption{
  margin:0;
  padding:12px 16px 14px;
  line-height:1.5;
}


/* 1.2.5: latest posts on home JOURNAL */
.journal-grid--latest .article-post{
  position:relative;
  display:flex;
  min-height:360px;
  padding:28px;
  overflow:hidden;
  border-radius:18px;
  background-color:#e8f0e9;
  background-size:cover;
  background-position:center;
  color:#fff;
  text-decoration:none;
  isolation:isolate;
  transition:transform .25s ease,box-shadow .25s ease;
}
.journal-grid--latest .article-post.image::before{
  content:"";position:absolute;inset:0;z-index:-1;
  background:linear-gradient(180deg,rgba(0,45,26,.08) 20%,rgba(0,45,26,.78) 100%);
}
.journal-grid--latest .article-post__content{margin-top:auto;width:100%}
.journal-grid--latest .article-post .cat{margin-bottom:12px;color:inherit;font-weight:700}
.journal-grid--latest .article-post h3{margin:0 0 12px;color:inherit;font-size:clamp(20px,2vw,28px);line-height:1.45}
.journal-grid--latest .article-post time{display:block;color:inherit;font-size:12px;letter-spacing:.08em}
.journal-grid--latest .article-post.no-image{color:var(--deep);border:1px solid var(--line);background:#fff}
.journal-grid--latest .article-post:hover{transform:translateY(-4px);box-shadow:var(--shadow-sm)}
.journal-empty{padding:30px 0;color:var(--muted)}
@media(max-width:760px){.journal-grid--latest .article-post{min-height:300px;padding:24px}}

/* 1.3: トップページの3分類と実写真。 */
.home-work .work-grid{grid-template-columns:repeat(3,minmax(0,1fr))}
.home-work .work-card-image{display:block;width:100%;height:auto;aspect-ratio:4/3;object-fit:cover;object-position:center;background:transparent;border-radius:12px}
.home-work .work-card{display:flex;flex-direction:column}
.home-work .work-card .actions{margin-top:auto;padding-top:20px}
.home-work .media-strip img{object-fit:contain!important;background:#edf6ef}
.home-product{display:flex;align-items:center;gap:24px;margin-top:40px;padding:24px;border:1px solid var(--line);border-radius:16px}
.home-product img{width:140px;height:180px;object-fit:contain;flex-shrink:0}
.home-product h3{margin:0 0 12px}
#news .article-post{min-height:180px}
@media(max-width:1050px){.home-work .work-grid{grid-template-columns:1fr}}
@media(max-width:760px){.home-product{align-items:flex-start;gap:16px;padding:20px}.home-product img{width:90px;height:120px}}

/* 1.3.2: Noto Sans JP。 */
:root{--sunnyb-font:'Noto Sans JP',sans-serif}
body{font-family:var(--sunnyb-font);font-weight:400}
.display,.section-title,h1,h2,h3,h4,h5,h6,.quote,.stat b,.route-no,.brand-mark{font-family:var(--sunnyb-font)}
.display,.section-title,h1,h2,h3,h4,h5,h6{font-weight:700}
.nav,.btn,.mobile-cta a,.faq summary{font-weight:700}

/* 1.3.3: メインコピーを小さく、行間をゆったり。 */
.hero .display{font-size:clamp(32px,4.2vw,56px);line-height:1.55;letter-spacing:.01em}
@media(max-width:760px){.hero .display{font-size:36px;line-height:1.6}}
@media(max-width:360px){.hero .display{font-size:32px}}

/* 1.3.4: 個別カードや既存の見出し指定より丸ゴシックを優先。 */
body h1,body h2,body h3,body h4,body h5,body h6,
body .display,body .section-title,body .quote,body .stat b,
body .route-no,body .step b,body .reroot b,body .brand-mark{
  font-family:'Noto Sans JP',sans-serif!important;
}

/* 1.3.5: 白い商品案内に、仕事セクションの白文字を継承させない。 */
.home-work .home-product{background:#fff;color:#19382b}
.home-work .home-product h3{color:#005732}
.home-work .home-product p{color:#3e604d}

/* 1.4: 下層ページの役割を分け、文章と写真を簡潔に整理。 */
.sunnyb-subpage{color:var(--ink)}
.compact-hero{padding:56px 0 64px}
.compact-hero .display{font-size:clamp(30px,3.8vw,48px);line-height:1.5}
.compact-hero .lead{max-width:660px}
.text-hero{max-width:var(--max)}
.concise-section{padding:64px 0}
.concise-section>.container>.section-title{margin:0 0 24px}
.concise-section p{max-width:760px}
.subpage-photo{margin:0;border-radius:18px;overflow:hidden;background:var(--sage2)}
.subpage-photo img{width:100%;height:auto;max-height:390px;object-fit:contain}
.work-detail{display:grid;grid-template-columns:1.1fr 1fr;gap:40px;align-items:center}
.work-summary{font-weight:700;color:var(--deep)}
.detail-photos{display:grid;gap:16px}.detail-photos.two{grid-template-columns:1fr 1fr}
.detail-photos figure{margin:0}.detail-photos img{width:100%;height:300px;object-fit:contain;background:var(--sage2);border-radius:12px}
.detail-photos figcaption{padding:10px 0;color:var(--muted);font-size:12px}
.concise-flow{list-style:none;counter-reset:flow;padding:0;margin:32px 0;display:grid;gap:0}
.concise-flow li{counter-increment:flow;position:relative;padding:20px 0 20px 56px;border-top:1px solid var(--line)}
.concise-flow li:before{content:counter(flow,decimal-leading-zero);position:absolute;left:0;top:24px;color:var(--green);font-weight:700}
.concise-flow h3{margin:0 0 8px;font-size:20px}.concise-flow p{margin:0;color:var(--muted)}
.contact-phone{font-size:clamp(24px,4vw,36px);font-weight:700;color:var(--deep)}
.facility-list{display:grid;grid-template-columns:90px 1fr;gap:16px;margin:0}.facility-list dt{font-weight:700}.facility-list dd{margin:0}
.news-list>a{display:grid;grid-template-columns:110px 1fr 24px;gap:20px;align-items:center;padding:24px 0;border-bottom:1px solid var(--line)}
.news-list h2{font-size:20px;margin:0;color:var(--deep)}.news-list time{font-size:13px;color:var(--muted)}
@media(max-width:760px){.compact-hero{padding:36px 0 44px}.concise-section{padding:44px 0}.work-detail{grid-template-columns:1fr;gap:24px}.detail-photos img{height:240px}.news-list>a{grid-template-columns:1fr 24px;gap:8px}.news-list time{grid-column:1/-1}.facility-list{grid-template-columns:1fr;gap:6px}.facility-list dd{margin-bottom:12px}}

/* 1.4.1: 仕事内容の既存イラストと、角丸の写真フレーム。 */
.work-icon-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:20px;margin-top:32px}
.work-icon-card{display:flex;align-items:center;gap:20px;padding:24px;border:1px solid var(--line);border-radius:18px;background:#fff;color:var(--ink)}
.work-icon-card img{display:block;width:110px;height:100px;object-fit:contain;flex-shrink:0}
.work-icon-card h3{margin:0 0 8px;font-size:21px;color:var(--deep)}
.work-icon-card p{margin:0;font-size:13px;color:var(--muted)}
.sunnyb-subpage .subpage-photo{border-radius:18px;overflow:hidden;aspect-ratio:4/3}
.sunnyb-subpage .subpage-photo img{display:block;width:100%;height:100%;max-height:none;object-fit:cover;border-radius:18px}
.sunnyb-subpage .detail-photos figure{margin:0;min-width:0;border-radius:18px;overflow:hidden;background:var(--sage2)}
.sunnyb-subpage .detail-photos img{display:block;width:100%;height:auto;aspect-ratio:4/3;object-fit:cover;border-radius:18px 18px 0 0}
.sunnyb-subpage .detail-photos.two img{aspect-ratio:3/4}
.sunnyb-subpage .detail-photos figcaption{padding:12px 16px;background:#fff}
@media(max-width:760px){.work-icon-grid{grid-template-columns:1fr}.work-icon-card{padding:20px;gap:16px}.work-icon-card img{width:90px;height:90px}.sunnyb-subpage .detail-photos img{height:auto}}

/* 1.4.2: 利用開始までの流れに、相談・見学・体験・手続きのアイコン。 */
.use-icon-flow li{padding-left:140px;min-height:112px}
.use-icon-flow .flow-icon{position:absolute;left:48px;top:20px;width:64px;height:64px;display:grid;place-items:center;color:var(--deep);background:var(--sage2);border-radius:18px}
.use-icon-flow .flow-icon svg{width:48px;height:48px;display:block}
@media(max-width:760px){.use-icon-flow li{padding-left:106px;min-height:112px}.use-icon-flow li:before{font-size:12px}.use-icon-flow .flow-icon{left:32px;width:56px;height:56px;border-radius:16px}.use-icon-flow .flow-icon svg{width:42px;height:42px}}

/* 1.5: 商品購入案内とContact Form 7。 */
.shop-hero .subpage-photo{aspect-ratio:3/4;max-width:390px;justify-self:center;width:100%}
.shop-hero .subpage-photo img{object-fit:cover}
.product-specs{display:flex;gap:24px;margin:28px 0 0}.product-specs dt{font-size:12px;color:var(--muted)}.product-specs dd{margin:4px 0 0;font-weight:700}
.shop-price{font-size:clamp(28px,4vw,40px);font-weight:700;color:var(--deep);margin:18px 0}.shop-price small{font-size:14px;font-weight:400}
.shipping-table{border-collapse:collapse;width:min(100%,760px);margin-top:24px;background:#fff}.shipping-table caption{text-align:left;font-size:13px;margin-bottom:12px;color:var(--muted)}
.shipping-table th,.shipping-table td{border-bottom:1px solid var(--line);padding:16px 20px;text-align:left}.shipping-table thead{background:var(--sage2)}.shipping-table tbody th{font-weight:400}.shipping-table td{white-space:nowrap}
.payment-note{padding:20px;background:var(--sage2);border-radius:14px;color:var(--deep)}
.form-panel{max-width:900px;background:#fff;border:1px solid var(--line);border-radius:20px;padding:32px;margin-top:28px;color:var(--ink)}
.form-grid{display:grid;grid-template-columns:1fr 1fr;gap:24px}.form-field.full{grid-column:1/-1}.form-field label{display:block;font-weight:700;margin-bottom:10px;font-size:14px}
.form-field small{display:block;font-size:12px;color:var(--muted);margin-top:8px}.sb-required,.sb-optional{font-size:10px;margin-left:8px;padding:3px 7px;border-radius:6px;background:var(--sage2);color:var(--deep)}.sb-optional{background:#f3f3f3;color:var(--muted)}
.sunnyb-form input:not([type=checkbox]):not([type=submit]),.sunnyb-form select,.sunnyb-form textarea{display:block;width:100%;max-width:100%;min-height:48px;padding:12px 14px;border:1px solid var(--line);border-radius:12px;background:#fff;color:var(--ink);font:inherit;font-size:16px}
.sunnyb-form textarea{min-height:150px;resize:vertical}.sunnyb-form .wpcf7-form-control-wrap{display:block}.sunnyb-form input[type=checkbox]{width:20px;height:20px;margin-right:10px;accent-color:var(--deep)}
.form-consent{margin-top:28px;padding:20px;background:var(--sage2);border-radius:14px;font-size:13px}.form-consent p{margin:0 0 16px}.form-consent .wpcf7-list-item{margin:0}.form-consent label{display:flex;align-items:flex-start;gap:4px}
.form-submit{margin-top:24px}.sunnyb-form input[type=submit]{min-height:52px;padding:14px 28px;background:var(--deep);color:#fff;border:0;border-radius:999px;font:inherit;font-weight:700;cursor:pointer;white-space:normal}.sunnyb-form input[type=submit]:disabled{opacity:.5;cursor:not-allowed}
.sunnyb-form .wpcf7-not-valid-tip{font-size:13px;color:#a12d2d}.form-panel .wpcf7-response-output{border-radius:12px;margin:24px 0 0;padding:16px}
@media(max-width:760px){.form-panel{padding:22px 18px}.form-grid{grid-template-columns:1fr;gap:20px}.form-field.full{grid-column:auto}.shipping-table th,.shipping-table td{padding:14px 12px;font-size:13px}.sunnyb-form input[type=submit]{width:100%}.product-specs{flex-wrap:wrap}}

/* 1.5.1: 商品ページの情報のまとまりと、飲み方・購入フローのアイコン。 */
.sunnyb-shop .shop-hero{background:#f3f8f2;border-bottom:1px solid #d3dfd5}
.sunnyb-shop .shop-summary .display{font-size:clamp(34px,4vw,52px)}
.sunnyb-shop .shop-purchase{background:#fff;border:1px solid #c9dbce;border-radius:20px;padding:24px 28px;margin-top:28px;box-shadow:0 8px 28px rgba(0,87,50,.04)}
.sunnyb-shop .product-specs{margin:0;gap:28px}
.sunnyb-shop .product-specs>div+div{border-left:1px solid var(--line);padding-left:28px}
.sunnyb-shop .shop-price{border-top:1px solid var(--line);padding-top:18px;margin:20px 0 0;font-size:clamp(28px,3.5vw,38px)}
.sunnyb-shop .shop-purchase .actions{margin-top:20px}
.sunnyb-shop .concise-section{border-bottom:1px solid #d8e4da;padding:64px 0}
.sunnyb-shop .shop-story{background:#fff}
.sunnyb-shop .shop-drink{background:#edf6ef}
.sunnyb-shop .shop-shipping{background:#fff}
.sunnyb-shop .shop-howto{background:#faf7ef}
.sunnyb-shop .shop-order{background:#edf6ef;border-top:3px solid var(--deep)}
.sunnyb-shop .section-title{display:flex;align-items:center;gap:16px;font-size:clamp(26px,3vw,36px);line-height:1.5}
.shop-section-no{display:inline-grid;place-items:center;flex-shrink:0;width:42px;height:42px;border-radius:50%;background:var(--deep);color:#fff;font-size:13px;letter-spacing:.05em}
.shop-icon{display:grid;place-items:center;width:76px;height:76px;border-radius:50%;background:#edf6ef;color:#005732;margin-bottom:20px;flex-shrink:0}
.shop-icon svg{display:block;width:48px;height:48px}
.sunnyb-shop .drink-card{border:0;box-shadow:0 6px 24px rgba(0,87,50,.035);background:#f8fbf6;padding:28px}
.sunnyb-shop .drink-card:nth-child(2){background:#f2f8fa}
.sunnyb-shop .drink-card:nth-child(3){background:#fbf8ef}
.sunnyb-shop .drink-card h3{margin:0 0 12px}
.sunnyb-shop .shipping-table{width:100%;margin-top:20px}
.sunnyb-shop .shipping-table-wrap{border:1px solid var(--line);border-radius:18px;padding:8px 24px 16px;margin-top:24px;background:#fff;overflow:hidden}
.sunnyb-shop .shipping-table tbody tr:nth-child(even){background:#f5f9f5}
.sunnyb-shop .shipping-table caption{padding:0 0 10px;color:var(--deep);font-weight:700}
.sunnyb-shop .shop-order-flow{grid-template-columns:repeat(4,minmax(0,1fr));gap:16px;margin-top:32px}
.sunnyb-shop .shop-order-flow li{border:1px solid #e0ddd0;background:#fff;border-radius:18px;padding:26px 20px 24px;min-width:0}
.sunnyb-shop .shop-order-flow li:before{left:16px;top:16px;font-size:12px}
.sunnyb-shop .shop-order-flow .shop-icon{margin:12px auto 20px}
.sunnyb-shop .shop-order-flow h3{font-size:18px;line-height:1.65}
.sunnyb-shop .shop-order-flow p{font-size:13px;line-height:1.9}
.sunnyb-shop .payment-note{border:0;background:#e7f0e5;display:flex;align-items:center;gap:24px;padding:24px 28px;border-radius:18px;max-width:none}.sunnyb-shop .payment-note .payment-label{display:inline-block;flex-shrink:0;padding:8px 12px;background:#fff;color:#005732;font-size:12px;font-weight:700;border-radius:999px}.sunnyb-shop .payment-note strong{display:block;font-size:16px;color:#005732}.sunnyb-shop .payment-note p{margin:6px 0 0;font-size:13px;color:#3e604d}.sunnyb-shop .drink-card .shop-icon{background:#e4efdf}.sunnyb-shop .drink-card:nth-child(2) .shop-icon{background:#deedf1}.sunnyb-shop .drink-card:nth-child(3) .shop-icon{background:#f0ead5}@media(max-width:760px){.sunnyb-shop .payment-note{display:block;padding:22px}.sunnyb-shop .payment-note .payment-label{margin-bottom:14px}}
@media(max-width:1050px){.sunnyb-shop .shop-order-flow{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:760px){.sunnyb-shop .shop-purchase{padding:22px 20px}.sunnyb-shop .product-specs{gap:16px}.sunnyb-shop .product-specs>div+div{padding-left:16px}.sunnyb-shop .concise-section{padding:44px 0}.sunnyb-shop .section-title{gap:12px}.shop-section-no{width:34px;height:34px;font-size:11px}.sunnyb-shop .shop-order-flow{grid-template-columns:1fr}.sunnyb-shop .shop-order-flow li{padding:24px 20px 24px 104px;min-height:140px}.sunnyb-shop .shop-order-flow .shop-icon{position:absolute;left:20px;top:30px;margin:0;width:64px;height:64px}.sunnyb-shop .shop-order-flow .shop-icon svg{width:42px;height:42px}.sunnyb-shop .shop-order-flow li:before{left:24px;top:10px;font-size:10px}.sunnyb-shop .shipping-table-wrap{padding:8px 10px 12px}}

/* 1.5.4: トップ仕事紹介は枠いっぱいの写真と、重複しない既存アイコン。 */
.home-work .work-card:first-child .work-card-image{object-position:50% 35%}
.home-work-icons{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:24px;margin-top:36px}
.home-work-icon{display:flex;align-items:center;gap:18px;padding:22px;background:#f0f6ef;border-radius:16px;min-width:0}
.home-work-icon img{display:block;width:80px;height:80px;object-fit:contain;flex-shrink:0}
.home-work-icon span{display:block;font-size:11px;font-weight:700;color:#52735e;margin-bottom:6px}
.home-work-icon h3{font-size:17px;line-height:1.6;color:#005732;margin:0}
@media(max-width:1050px){.home-work-icons{gap:16px}.home-work-icon{padding:18px;gap:12px}.home-work-icon img{width:60px;height:60px}}
@media(max-width:760px){.home-work-icons{grid-template-columns:1fr;gap:14px;margin-top:28px}.home-work-icon img{width:72px;height:72px}.home-work-icon{padding:20px;gap:18px}}

/* 1.5.5: お知らせの隣とフッターにInstagram。 */
.nav-news-group{display:inline-flex;align-items:center;gap:8px}
.social-instagram{display:inline-flex;align-items:center;justify-content:center;width:40px;height:40px;flex-shrink:0;border-radius:50%;color:inherit}
.social-instagram svg{display:block;width:22px;height:22px}
.nav .social-instagram:after{display:none}
.social-instagram:hover{background:rgba(75,140,104,.12)}
.mobile-menu .mobile-social{display:flex;justify-content:flex-start;margin-top:20px}
.mobile-menu .mobile-social .social-instagram{display:inline-flex;align-items:center;justify-content:flex-start;width:48px;height:48px;padding:0 0 0 1px;border:0;flex-shrink:0}

/* Article detail: readable content width and clear news hierarchy. */
.news-detail{padding:28px 0 100px;background:var(--paper)}
.news-breadcrumb{display:flex;flex-wrap:wrap;gap:10px;font-size:12px;color:var(--muted);margin-bottom:40px}
.news-breadcrumb a{text-decoration:underline;text-underline-offset:4px}
.news-article{width:min(880px,calc(100% - 48px));margin:auto;padding:56px 64px 48px;background:#fff;border:1px solid var(--line);border-radius:28px}
.news-article-header{padding-bottom:32px;border-bottom:1px solid var(--line);margin-bottom:36px}
.news-article-header .eyebrow{margin-bottom:24px}
.news-article-meta{display:flex;align-items:center;flex-wrap:wrap;gap:10px 16px;margin-bottom:18px;font-size:13px}
.news-article-meta time{font-variant-numeric:tabular-nums;color:var(--muted)}
.news-category{display:inline-block;padding:5px 14px;border-radius:999px;background:#edf5ef;color:var(--deep);font-size:12px;font-weight:700}
.news-article-title{margin:0;color:var(--deep);font-size:clamp(25px,3vw,38px);line-height:1.6;letter-spacing:.03em;overflow-wrap:anywhere}
.news-article-image{margin:0 0 36px}
.news-article-image img{display:block;width:100%;height:auto;border-radius:16px}
.news-article-body{font-size:16px;line-height:2.05;color:var(--ink);overflow-wrap:anywhere}
.news-article-body>:first-child{margin-top:0}
.news-article-body p{margin:0 0 1.7em}
.news-article-body h2{font-size:25px;line-height:1.6;color:var(--deep);margin:2.2em 0 1em;padding:18px 22px;background:#edf5ef;border-radius:12px}
.news-article-body h3{font-size:21px;line-height:1.6;color:var(--deep);margin:2em 0 .8em}
.news-article-body h4,.news-article-body h5,.news-article-body h6{font-size:18px;line-height:1.6;color:var(--deep);margin:1.8em 0 .8em}
.news-article-body a{text-decoration:underline;text-underline-offset:4px;color:var(--deep)}
.news-article-body ul,.news-article-body ol{padding-left:1.5em;margin:1em 0 1.7em}
.news-article-body li+li{margin-top:.5em}
.news-article-body figure{max-width:100%;margin:1.8em 0}
.news-article-body img{max-width:100%;height:auto;border-radius:12px}
.news-article-body figcaption{font-size:13px;line-height:1.7;color:var(--muted);text-align:center;margin-top:10px}
.news-article-body blockquote{margin:1.8em 0;padding:24px 28px;background:#f6f7f3;border-radius:16px;color:var(--muted)}
.news-article-body blockquote p:last-child{margin-bottom:0}
.news-article-body .wp-block-table{overflow-x:auto}
.news-article-body table{width:100%;border-collapse:collapse;font-size:14px}
.news-article-body th,.news-article-body td{border:1px solid var(--line);padding:14px;text-align:left}
.news-article-body th{background:#edf5ef}
.news-article-body pre{overflow-x:auto;padding:20px;background:#f6f7f3;border-radius:12px}
.news-article-body iframe,.news-article-body video{max-width:100%}
.news-article-body .wp-block-embed__wrapper{overflow:hidden}
.news-article-footer{margin-top:48px;padding-top:32px;border-top:1px solid var(--line);text-align:center}
.news-page-links{display:flex;gap:12px;flex-wrap:wrap;margin-top:28px}
.news-page-links span{display:inline-block;padding:4px 12px;background:#edf5ef;border-radius:6px}
@media(max-width:760px){
 .news-detail{padding:20px 0 64px}
 .news-breadcrumb{margin-bottom:24px;font-size:11px}
 .news-article{width:calc(100% - 30px);padding:30px 22px;border-radius:20px}
 .news-article-header{padding-bottom:24px;margin-bottom:28px}
 .news-article-header .eyebrow{margin-bottom:20px}
 .news-article-body{font-size:15px;line-height:2}
 .news-article-body h2{font-size:21px;padding:15px 16px}
 .news-article-body h3{font-size:19px}
 .news-article-body blockquote{padding:20px}
 .news-article-footer{margin-top:36px;padding-top:28px}
}

/* Keep the decorative hero circle behind editable page text. */
.sunnyb-subpage .page-hero>.container{position:relative;z-index:1}

/* 2.0.1: hero decorations always sit behind the heading and description. */
.page-hero{isolation:isolate}
.page-hero::before{z-index:-1;pointer-events:none}
.page-hero>.container{position:relative;z-index:1}

/* 2.0.2: keep the lower hero circle inside its section; remove the line touching the route card. */
.hero::after{bottom:0}
.routes + .section{border-top:0}


/* 2.0.3: featured images and category labels for news. */
.journal-grid--latest .news-card{display:flex;flex-direction:column;min-width:0;border:1px solid var(--line);border-radius:24px;overflow:hidden;background:#fff;box-shadow:var(--shadow-sm);transition:transform .2s,box-shadow .2s}
.journal-grid--latest .news-card:hover{transform:translateY(-4px);box-shadow:var(--shadow)}
.news-thumb{display:block;overflow:hidden;aspect-ratio:16/10;background:#edf5ef}
.news-thumb img{display:block;width:100%;height:100%;object-fit:cover}
.news-thumb--empty{display:grid;place-items:center;color:#568369;letter-spacing:.18em;font-size:14px;font-weight:700}
.news-summary{min-width:0}
.news-card .news-summary{padding:24px}
.news-meta{display:flex;align-items:center;flex-wrap:wrap;gap:8px 14px;margin-bottom:14px}
.news-meta time{font-size:12px;color:var(--muted);font-variant-numeric:tabular-nums;white-space:nowrap}
.news-tags{display:flex;flex-wrap:wrap;gap:6px}
.news-tags .news-category{font-size:11px;line-height:1.6;padding:4px 10px}
.news-card h3{font-size:clamp(18px,1.8vw,23px);line-height:1.65;margin:0;color:var(--deep);overflow-wrap:anywhere}
.news-list>a.news-row{grid-template-columns:180px minmax(0,1fr) 24px;gap:28px}
.news-row .news-thumb{border-radius:14px}
.news-row h2{font-size:21px;line-height:1.65;overflow-wrap:anywhere}
.news-row .news-meta{margin-bottom:10px}
.news-arrow{color:var(--deep);font-size:22px}
.news-row:hover h2{text-decoration:underline;text-underline-offset:5px}
.news-detail{padding-top:48px}
@media(max-width:760px){
 .journal-grid--latest .news-card{grid-column:auto}
 .news-card .news-summary{padding:20px}
 .news-list>a.news-row{grid-template-columns:100px minmax(0,1fr);gap:16px;padding:22px 0}
 .news-row .news-thumb{aspect-ratio:1/1;border-radius:12px}
 .news-row h2{font-size:16px}
 .news-row .news-meta{gap:6px;margin-bottom:8px}
 .news-row .news-meta time{font-size:11px}
 .news-row .news-arrow{display:none}
 .news-detail{padding-top:28px}
}
.journal-grid--latest{grid-template-columns:repeat(3,minmax(0,1fr));align-items:stretch}
@media(max-width:1050px){.journal-grid--latest{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:760px){.journal-grid--latest{grid-template-columns:minmax(0,1fr)}}
