/*
Theme Name: WP Tool Box WP
Theme URI: https://web-tool-box.com/
Author: WP Tool Box
Description: WordPressユーザー向けオンラインツール集。80ツールを共通UIで管理できる軽量テーマ。
Version: 1.0.0
Requires at least: 6.0
Requires PHP: 7.4
Text Domain: web-tool-box-wp
*/
:root{--bg:#f6f7fb;--surface:#fff;--text:#172033;--muted:#687386;--line:#e5e8ef;--primary:#315efb;--primary2:#5b7cff;--shadow:0 8px 28px rgba(20,30,60,.07);--radius:16px}
*{box-sizing:border-box}
html{scroll-behavior:smooth}
body{margin:0;background:var(--bg);color:var(--text);font-family:-apple-system,BlinkMacSystemFont,"Segoe UI","Noto Sans JP",sans-serif;line-height:1.7}
a{color:inherit;text-decoration:none}
button,input,textarea,select{font:inherit}
.site-header{position:sticky;top:0;z-index:50;background:rgba(255,255,255,.94);backdrop-filter:blur(12px);border-bottom:1px solid var(--line)}
.header-inner{max-width:1180px;margin:auto;padding:14px 14px;display:flex;align-items:center;gap:18px}
.site-brand{font-size:21px;font-weight:800;letter-spacing:-.03em}
.site-brand span{color:var(--primary)}
.nav{margin-left:auto;display:flex;gap:12px;font-size:14px;color:var(--muted)}
.container{max-width:1180px;margin:auto;padding:0 20px}
.hero{padding:72px 0 44px;background:linear-gradient(180deg,#fff 0%,var(--bg) 100%)}
.hero h1{font-size:clamp(34px,5vw,56px);line-height:1.12;text-align: center;letter-spacing:-.045em;margin:0 0 16px}
.hero p{max-width:720px;color:var(--muted);font-size:17px; text-align:center; margin:0 auto 28px}
.search{display:flex;max-width:720px;background:#fff;border:1px solid var(--line);border-radius:14px;padding:7px;margin: auto;box-shadow:var(--shadow)}
.search input{min-width:0;flex:1;border:0;outline:0;padding:12px 14px;background:transparent}
.search button,.btn{border:0;background:var(--primary);color:#fff;padding:11px 18px;border-radius:10px;font-weight:700;cursor:pointer}
.section{padding:38px 0}
.section-title{display:flex;justify-content:space-between;align-items:end;gap:15px;margin-bottom:18px}
.section-title h2{margin:0;font-size:25px;letter-spacing:-.025em}
.section-title p{margin:0;color:var(--muted);font-size:14px}
.category-grid,.tool-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:16px}
.category-card,.tool-card{background:var(--surface);border:1px solid var(--line);border-radius:var(--radius);box-shadow:0 2px 8px rgba(20,30,60,.025);transition:.18s}
.category-card:hover,.tool-card:hover{transform:translateY(-2px);box-shadow:var(--shadow);border-color:#cfd5e2}
.category-card{padding:22px}
.category-card .icon{font-size:25px;margin-bottom:8px}
.category-card h3,.tool-card h3{margin:0 0 5px;font-size:17px}
.category-card p,.tool-card p{margin:0;color:var(--muted);font-size:13px}
.tool-card{padding:20px}
.tool-card .tag{display:inline-block;font-size:11px;color:var(--primary);background:#eef2ff;border-radius:999px;padding:3px 8px;margin-bottom:10px}
.empty{padding:35px;text-align:center;color:var(--muted);background:#fff;border:1px dashed var(--line);border-radius:var(--radius)}
.tool-page{padding:46px 0 80px}
.breadcrumb{font-size:13px;color:var(--muted);margin-bottom:22px}
.tool-head{margin-bottom:28px}.tool-head h1{font-size:clamp(30px,4vw,44px);margin:0 0 8px;line-height:1.2}.tool-head p{color:var(--muted);margin:0}
.tool-box{background:#fff;border:1px solid var(--line);border-radius:var(--radius);padding:24px;box-shadow:var(--shadow)}
.form-row{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px}
.field{margin-bottom:16px}.field label{display:block;font-size:13px;font-weight:700;margin-bottom:6px}
.field input,.field textarea,.field select{width:100%;border:1px solid #d9dee8;border-radius:10px;padding:11px 12px;background:#fff;outline:none}
.field textarea{min-height:180px;resize:vertical}
.output{margin-top:20px}.output pre{white-space:pre-wrap;word-break:break-word;background:#111827;color:#f4f7ff;border-radius:12px;padding:18px;min-height:100px;overflow:auto}
.tool-content{margin-top:35px;display:grid;grid-template-columns:minmax(0,1fr) 300px;gap:28px}.prose{background:#fff;border:1px solid var(--line);border-radius:var(--radius);padding:26px}.sidebar{background:#fff;border:1px solid var(--line);border-radius:var(--radius);padding:20px;height:max-content}.sidebar h3{margin-top:0}
.site-footer{margin-top:70px;background:#111827;color:#cbd5e1;padding:38px 0}.footer-inner{max-width:1180px;margin:auto;padding:0 20px;display:flex;justify-content:space-between;gap:20px}.footer-inner strong{color:#fff}
@media(max-width:900px){.category-grid,.tool-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.tool-content{grid-template-columns:1fr}}
.footer-menu-list{list-style:none;margin:0;padding:0;display:flex;flex-wrap:wrap;justify-content:center;gap:8px 18px}.footer-menu-list li{margin:0}.footer-menu-list a{color:#cbd5e1;text-decoration:none;font-size:14px}.footer-menu-list a:hover{color:#fff;text-decoration:underline}\n@media(max-width:620px){.nav{display:none}.hero{padding:48px 0 30px}.category-grid,.tool-grid,.form-row{grid-template-columns:1fr}.search{display:block;background:transparent;border:0;box-shadow:none;padding:0}.search input{width:100%;background:#fff;border:1px solid var(--line);border-radius:10px;margin-bottom:8px}.search button{width:100%}.tool-box,.prose{padding:18px}.footer-inner{display:block}}

input::placeholder,textarea::placeholder{color:#98a1b2;opacity:1}
input:focus,textarea:focus,select:focus{border-color:var(--primary);box-shadow:0 0 0 3px rgba(49,94,251,.10)}

/* Image tool UI */
.image-preview{margin:14px 0;padding:12px;border:1px solid var(--border,#ddd);border-radius:10px;text-align:center;background:var(--surface,#fff)}
.image-preview img{display:block;max-width:100%;max-height:280px;width:auto;height:auto;margin:0 auto 8px;border-radius:6px}
.image-preview div{font-size:13px;word-break:break-all}
.field input[type=file]{width:100%;box-sizing:border-box;padding:10px;border:1px solid var(--border,#ccc);border-radius:8px;background:var(--surface,#fff)}

section.section.pr {
    max-width: 1000px;
    margin: auto;
    display: flex;
    justify-content: center;
    padding: 5px;
}

@media(max-width:600px){
	section.section.pr {
   display:none;
}
}



.pr-box {
    margin: 1rem 0 0;
    justify-content: center;
    display: flex;
    flex-wrap: wrap;
}

.pr-item {
    width: 30%;
    margin: auto;
    display: flex;
    justify-content: center;
    gap: 0px;
}

@media(max-width:768px){
	.pr-box {
    display:  block;
}	
}

@media(max-width:600px){	
	section.section.pr {
    display:none;
}
}