:root{
  --peach:#FFDEC9; --brown:#B08076; --green:#0FAA40; --ink:#333; --white:#fff;
  --f-en:"Taviraj", serif;
  --f-jp:"toppan-bunkyu-gothic","Toppan Bunkyu Gothic","Zen Kaku Gothic New", sans-serif;
  --f-mincho:"toppan-bunkyu-mincho","Shippori Mincho","Yu Mincho","YuMincho","Hiragino Mincho ProN",serif;
}
*{margin:0;padding:0;box-sizing:border-box;}
html{scroll-behavior:smooth;}
body{font-family:var(--f-jp);color:var(--ink);background:#fff;line-height:1.9;font-weight:400;font-size:14px;-webkit-font-smoothing:antialiased;overflow-x:hidden;}
img{max-width:100%;display:block;}
p,h1,h2,h3{line-break:strict;word-break:normal;overflow-wrap:anywhere;}
a{color:inherit;text-decoration:none;}

header{position:fixed;top:0;left:0;right:0;z-index:100;display:flex;justify-content:space-between;align-items:center;padding:18px 20px;background:rgba(255,222,201,.55);-webkit-backdrop-filter:blur(12px) saturate(140%);backdrop-filter:blur(12px) saturate(140%);}
.logo img{height:44px;width:auto;display:block;}
.burger{background:none;border:none;cursor:pointer;padding:6px;display:flex;flex-direction:column;gap:3.5px;z-index:102;position:relative;}
.burger i{display:block;width:19px;height:2.5px;background:#434343;border-radius:1px;}
.drawer{position:fixed;top:0;right:-78%;width:78%;max-width:320px;height:100dvh;background:#fff;z-index:101;padding:60px 0 40px 28px;transition:right .42s cubic-bezier(.4,0,.2,1);box-shadow:-6px 0 24px rgba(0,0,0,.06);}
.drawer.open{right:0;}
.drawer .close{position:absolute;top:16px;right:18px;background:#eee;border:none;width:30px;height:30px;border-radius:4px;font-size:17px;cursor:pointer;line-height:1;}
.drawer ul{list-style:none;display:flex;flex-direction:column;gap:20px;}
.drawer a{font-family:var(--f-en);font-weight:600;font-size:17px;letter-spacing:.06em;display:flex;align-items:center;gap:12px;}
.drawer a::before{content:"";width:5px;height:20px;background:#FFE44D;flex:none;}
.mask{position:fixed;inset:0;background:rgba(0,0,0,.3);z-index:99;opacity:0;pointer-events:none;transition:opacity .35s;}
.mask.on{opacity:1;pointer-events:auto;}

/* 記事 */
.article{padding:110px 22px 0;max-width:760px;margin:0 auto;}
.crumb{font-size:11px;color:#999;margin-bottom:18px;}
.crumb a:hover{color:var(--brown);}
.hero-img{background:#F4F1EC;margin-bottom:14px;}
.hero-img img{width:100%;height:auto;}

/* 押すと拡大する写真 */
.shot{display:block;width:100%;padding:0;border:none;background:none;cursor:zoom-in;font:inherit;}
.shot img{display:block;width:100%;height:auto;}
.shot:focus-visible{outline:2px solid var(--brown);outline-offset:2px;}

/* 追加の写真：枚数ぶんの列に分ける（スマホは最大3列） */
.gallery{display:grid;gap:6px;margin-bottom:26px;}
.gallery .shot{aspect-ratio:1/1;background:#F4F1EC;overflow:hidden;}
.gallery .shot img{width:100%;height:100%;object-fit:cover;transition:transform .35s;}
.gallery .shot:hover img{transform:scale(1.05);}

/* gm◯＝スマホの列数。枚数に応じてPHPが付ける */
.gallery.gm1{grid-template-columns:1fr;}
.gallery.gm2{grid-template-columns:repeat(2,1fr);}
.gallery.gm3{grid-template-columns:repeat(3,1fr);}

/* 1枚だけのときは正方形に切り抜かず、そのままの形で見せる */
.gallery.one .shot{aspect-ratio:auto;}
.gallery.one .shot img{height:auto;object-fit:initial;}

/* 拡大表示 */
body.lb-open{overflow:hidden;}
.lightbox{position:fixed;inset:0;z-index:200;background:rgba(24,20,18,.94);
  display:flex;align-items:center;justify-content:center;}
.lightbox[hidden]{display:none;}
.lb-stage{width:100%;height:100%;display:flex;align-items:center;justify-content:center;padding:56px 16px 64px;}
.lb-stage img{max-width:100%;max-height:100%;width:auto;height:auto;display:block;
  object-fit:contain;border-radius:2px;}
.lb-close{position:absolute;top:12px;right:12px;width:42px;height:42px;border:none;border-radius:50%;
  background:rgba(255,255,255,.14);color:#fff;font-size:24px;line-height:1;cursor:pointer;}
.lb-nav{position:absolute;top:50%;transform:translateY(-50%);width:44px;height:60px;border:none;
  background:rgba(255,255,255,.12);color:#fff;font-size:28px;line-height:1;cursor:pointer;border-radius:4px;}
.lb-nav[hidden]{display:none;}
.lb-prev{left:8px;}
.lb-next{right:8px;}
.lb-close:hover,.lb-nav:hover{background:rgba(255,255,255,.26);}
.lb-count{position:absolute;bottom:20px;left:0;right:0;text-align:center;
  color:rgba(255,255,255,.72);font-size:11.5px;letter-spacing:.08em;}
.lb-count[hidden]{display:none;}
@media(prefers-reduced-motion:reduce){
  .gallery .shot img{transition:none;}
  .gallery .shot:hover img{transform:none;}
}
.meta{display:flex;flex-wrap:wrap;gap:8px;margin-bottom:14px;}
.meta span{font-size:10.5px;letter-spacing:.04em;padding:4px 11px;border-radius:2px;background:#F4F1EC;color:#7a6a5f;}
.article h1{font-family:var(--f-mincho);font-size:22px;font-weight:500;line-height:1.6;color:var(--ink);margin-bottom:8px;}
.article .client{font-size:12.5px;color:var(--brown);margin-bottom:32px;}
.body p{font-size:13.5px;line-height:2.15;margin-bottom:20px;}
.body p:last-child{margin-bottom:0;}
.noinfo{font-size:12.5px;color:#999;background:#FAF8F5;padding:18px;border-radius:4px;}

.block{margin-top:34px;}
.block .blabel{font-size:11px;font-weight:700;color:var(--brown);letter-spacing:.08em;display:block;margin-bottom:10px;position:relative;padding-bottom:6px;}
.block .blabel::after{content:"";position:absolute;left:0;bottom:0;width:21px;height:2px;background:#FFE44D;}
.block p{font-size:13px;line-height:2.05;}
blockquote{position:relative;margin:0;padding:16px 17px;background:#F7F3EC;border:1px solid #E8DFD2;border-radius:5px;font-size:12.5px;line-height:1.95;color:#5c5347;}
blockquote::before,blockquote::after{content:"";position:absolute;top:100%;left:26px;width:0;height:0;border-style:solid;}
blockquote::before{border-width:10px 9px 0 0;border-color:#E8DFD2 transparent transparent transparent;}
blockquote::after{border-width:8.5px 7.5px 0 0;border-color:#F7F3EC transparent transparent transparent;left:27px;}

/* 前後ナビ */
.pager{display:flex;gap:10px;margin:56px 0 0;}
.pager a{flex:1;min-width:0;display:flex;flex-direction:column;gap:5px;padding:15px 14px;border:1px solid #E8E2DA;border-radius:5px;transition:background .25s,border-color .25s;}
.pager a:hover{background:#FAF7F3;border-color:var(--brown);}
.pager .dir{font-size:10px;color:var(--brown);letter-spacing:.06em;}
.pager .ttl{font-family:var(--f-mincho);font-size:12px;line-height:1.5;color:var(--ink);
  display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden;}
.pager .next{text-align:right;align-items:flex-end;}
.pager a.disabled{opacity:.32;pointer-events:none;}

.back{text-align:center;padding:44px 22px 80px;}
.back a{display:inline-block;background:var(--green);color:#fff;padding:13px 34px;border-radius:10px;font-size:12.5px;font-weight:500;transition:opacity .25s;}
.back a:hover{opacity:.85;}

footer{padding:36px 22px;text-align:center;font-size:10.5px;color:#888;border-top:1px solid #F0EBE4;}
footer .sns{display:flex;justify-content:center;gap:16px;margin-bottom:16px;}
footer .sns a{color:var(--brown);display:block;transition:opacity .25s;}
footer .sns a:hover{opacity:.6;}
footer .sns svg{width:auto;height:21px;display:block;}
footer .fl{display:flex;justify-content:center;align-items:center;margin-bottom:12px;}
footer .fl img{height:40px;width:auto;}

@media(min-width:760px){
  .article{padding:150px 8vw 0;}
  .article h1{font-size:27px;}
  .body p{font-size:14px;}
  .pager .ttl{font-size:13px;}
  /* gd◯＝パソコンの列数 */
  .gallery{gap:8px;}
  .gallery.gd1{grid-template-columns:1fr;}
  .gallery.gd2{grid-template-columns:repeat(2,1fr);}
  .gallery.gd3{grid-template-columns:repeat(3,1fr);}
  .gallery.gd4{grid-template-columns:repeat(4,1fr);}
  .lb-stage{padding:70px 76px 70px;}
  .lb-prev{left:18px;}
  .lb-next{right:18px;}
}
