*,*::before,*::after{box-sizing:border-box}
html{-webkit-text-size-adjust:100%}
body{margin:0;font-family:system-ui,-apple-system,"Hiragino Sans","Noto Sans JP",sans-serif;line-height:1.7;color:#1f2933;background:#fafaf7}
img{max-width:100%;height:auto;display:block}
a{color:#1d5c4d}
a:focus-visible,button:focus-visible,input:focus-visible,textarea:focus-visible{outline:3px solid #1d5c4d;outline-offset:2px}
.wrap{max-width:960px;margin:0 auto;padding:0 16px}
.site-header{background:#fff;border-bottom:1px solid #e5e7eb}
.site-header .wrap{display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:4px 12px;min-height:56px;padding-top:8px;padding-bottom:8px}
.site-name{font-size:1.1rem;font-weight:700;line-height:1.4;margin:0}
.badge{display:inline-block;font-size:.75rem;padding:2px 8px;border-radius:999px;border:1px solid currentColor;white-space:nowrap}
.badge-verified{color:#1d5c4d}
.badge-unverified{color:#6b7280}
.header-inquiry{display:inline-flex;align-items:center;min-height:44px;margin-left:auto;padding:0 14px;border:1px solid currentColor;border-radius:6px;font-size:.9rem;font-weight:700;text-decoration:none;white-space:nowrap}
.header-inquiry:hover{text-decoration:underline}
.cover{aspect-ratio:16/7;width:100%;max-height:520px;object-fit:cover;background:#e7e5df}
.cover-empty{display:none}
section{padding:28px 0;border-bottom:1px solid #eceae4}
h1,.company-name{font-size:1.5rem;line-height:1.4;margin:0 0 12px}
.s-result h1{font-size:1.25rem}
h2{font-size:1.15rem;margin:0 0 12px}
h3{font-size:1rem;margin:0 0 8px}
.intro{white-space:pre-line;margin:0;max-width:40em}
.s-intro a{display:inline-block;padding:10px 0}
.tag-group+.tag-group{margin-top:20px}
.tags{display:flex;flex-wrap:wrap;gap:8px;list-style:none;padding:0;margin:0}
.tags li{background:#fff;border:1px solid #e5e7eb;border-radius:6px;padding:2px 10px;font-size:.9rem}
.grid{display:grid;grid-template-columns:1fr;gap:12px;list-style:none;padding:0;margin:0}
.grid img{aspect-ratio:4/3;object-fit:cover;width:100%;border-radius:6px;background:#e7e5df}
.works{display:grid;gap:16px;list-style:none;padding:0;margin:0}
.work{background:#fff;border:1px solid #e5e7eb;border-radius:8px;padding:16px}
.work .grid li:first-child:nth-last-child(odd){grid-column:1/-1}
.s-photos .grid{grid-template-columns:repeat(2,1fr);gap:8px}
.s-photos .grid li:first-child:nth-last-child(odd){grid-column:1/-1}
.work dl{display:grid;grid-template-columns:auto 1fr;gap:4px 12px;margin:8px 0 0;font-size:.9rem}
.work dt{color:#6b7280}
.work dd{margin:0}
.voice{margin:12px 0 0;padding:8px 12px;border-left:3px solid #1d5c4d;background:#f3f6f4}
.voice figcaption{font-size:.8rem;font-weight:700}
.voice blockquote{margin:0}
.voice blockquote p{margin:0;white-space:pre-line}
.note{font-size:.85rem;color:#6b7280}
.verification-note{margin:0;padding:12px 16px;border:1px solid #9ca3af;border-left:4px solid #6b7280;border-radius:6px;background:#fff;color:#1f2933;font-size:.95rem}
.inquiry{max-width:560px}
.inquiry label{display:block;font-size:.9rem}
.inquiry input[type=text],.inquiry input[type=email],.inquiry input[type=tel],.inquiry textarea{width:100%;font:inherit;padding:10px;border:1px solid #7b8794;border-radius:6px;background:#fff}
.inquiry .consent label{display:flex;gap:8px;align-items:flex-start;font-size:.85rem}
.inquiry input[type=checkbox]{flex:none;width:20px;height:20px;margin:2px 0 0}
.inquiry button{font:inherit;font-weight:700;min-height:48px;padding:10px 20px;border:0;border-radius:6px;background:#1d5c4d;color:#fff;cursor:pointer}
.hp{position:absolute;left:-9999px;width:1px;height:1px;overflow:hidden}
.site-footer{padding:24px 0 40px;font-size:.8rem;color:#6b7280}
@media (min-width:640px){h1,.company-name{font-size:1.875rem}.s-photos .grid{grid-template-columns:repeat(3,1fr);gap:12px}.s-photos .grid li:first-child:nth-last-child(odd){grid-column:auto}.s-tags .wrap{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:0 32px}.tag-group+.tag-group{margin-top:0}.s-result h1{font-size:1.5rem}.grid{grid-template-columns:repeat(3,1fr)}.works{grid-template-columns:repeat(2,1fr)}.work .grid{grid-template-columns:repeat(2,1fr)}.work .grid li:first-child:nth-last-child(odd) img{aspect-ratio:16/9}}
/* gallery: 写真重視。暗い背景・幅を広く・角を丸めず写真を詰めて並べる・施工事例を大きく */
.template-gallery{background:#111;color:#f3f4f6;color-scheme:dark}
.template-gallery .wrap{max-width:1120px}
.template-gallery .site-header{background:#111;border-color:#2a2a2a}
.template-gallery a{color:#9bd3c3}
.template-gallery a:focus-visible,.template-gallery button:focus-visible,.template-gallery input:focus-visible,.template-gallery textarea:focus-visible{outline-color:#9bd3c3}
.template-gallery section{border-color:#2a2a2a;padding:40px 0}
.template-gallery h2{font-size:1.35rem;letter-spacing:.12em}
.template-gallery .company-name{letter-spacing:normal}
.template-gallery .cover{aspect-ratio:4/3;max-height:640px;background:#1b1b1b}
.template-gallery .grid{gap:4px}
.template-gallery .s-photos .grid{grid-template-columns:1fr}
.template-gallery .grid img{border-radius:0;background:#1b1b1b}
.template-gallery .works{grid-template-columns:1fr;gap:32px}
.template-gallery .work{background:#1b1b1b;border-color:#2a2a2a;border-radius:0}
.template-gallery .work .grid{grid-template-columns:1fr}
.template-gallery .work img{aspect-ratio:3/2}
.template-gallery .tags li{background:#1b1b1b;border-color:#333;border-radius:0;color:#f3f4f6}
.template-gallery .voice{background:#262626;border-color:#9bd3c3}
.template-gallery .note,.template-gallery .site-footer,.template-gallery .badge-unverified,.template-gallery .work dt{color:#9ca3af}
.template-gallery .badge-verified{color:#9bd3c3}
.template-gallery .verification-note{background:#1b1b1b;color:#f3f4f6;border-color:#8b93a1;border-left-color:#9ca3af;border-radius:0}
.template-gallery .header-inquiry{border-radius:0}
.template-gallery .inquiry input[type=text],.template-gallery .inquiry input[type=email],.template-gallery .inquiry input[type=tel],.template-gallery .inquiry textarea{background:#1b1b1b;color:#f3f4f6;border-color:#8b93a1;border-radius:0}
.template-gallery .inquiry button{background:#9bd3c3;color:#111;border-radius:0}
@media (min-width:640px){.template-gallery .cover{aspect-ratio:21/9}.template-gallery .grid,.template-gallery .s-photos .grid{grid-template-columns:repeat(3,1fr)}.template-gallery .work .grid{grid-template-columns:repeat(2,1fr)}.template-gallery .work .grid li:first-child:nth-last-child(odd) img{aspect-ratio:3/2}}
/* trust: 人と安心重視。紹介文を先に大きく、見出しだけ明朝体、落ち着いた配色 */
.template-trust{background:#f6f3ee}
.template-trust h1,.template-trust h2,.template-trust .company-name,.template-trust .site-name,.template-trust .intro{font-family:"Hiragino Mincho ProN","Yu Mincho","Noto Serif JP",serif}
.template-trust .site-header{background:#f6f3ee;border-top:4px solid #7a4b2a;border-bottom-color:#d9d2c5}
.template-trust .wrap{max-width:760px}
.template-trust a,.template-trust .badge-verified{color:#7a4b2a}
.template-trust a:focus-visible,.template-trust button:focus-visible,.template-trust input:focus-visible,.template-trust textarea:focus-visible{outline-color:#7a4b2a}
.template-trust section{border-color:#d9d2c5}
.template-trust .s-intro{padding:40px 0;background:#efe8dc}
.template-trust .company-name{font-size:1.6rem;line-height:1.5;margin:0 0 16px}
.template-trust h2{border-left:4px solid #7a4b2a;padding-left:10px}
.template-trust .company-name{border-left:0;padding-left:0}
.template-trust .intro{font-size:1.05rem;line-height:2}
.template-trust .cover{display:block;width:calc(100% - 32px);max-width:728px;margin:28px auto 0;aspect-ratio:3/2;border-radius:12px}
.template-trust .works{grid-template-columns:1fr}
.template-trust .work{background:#fffdf9;border-color:#d9d2c5;border-radius:12px}
.template-trust .tags li{background:#fffdf9;border-color:#8c7b68;border-radius:999px;padding:4px 14px}
.template-trust .voice{border-color:#7a4b2a;background:#efe8dc}
.template-trust .verification-note{background:#fffdf9;border-color:#8c7b68;border-left-color:#66584c;border-radius:12px}
.template-trust .header-inquiry{border-radius:999px}
.template-trust .note,.template-trust .site-footer,.template-trust .badge-unverified,.template-trust .work dt{color:#66584c}
.template-trust .inquiry input[type=text],.template-trust .inquiry input[type=email],.template-trust .inquiry input[type=tel],.template-trust .inquiry textarea{border-color:#8c7b68}
.template-trust .inquiry button{background:#7a4b2a;border-radius:999px}
@media (min-width:640px){.template-trust .works{grid-template-columns:1fr}}
