/*
Theme Name: BEST HAIR
Theme URI: https://example.com/
Author: Beauty Studio
Author URI: https://example.com/
Description: 髪型プロンプト作成サイト「BEST HAIR」— スマートフォン向けのヘアスタイル・プロンプトメーカー。ジャンル選択から質問ステップ、AI画像生成用プロンプトの自動作成までを1画面で完結できるトップページ専用テーマです。
Version: 1.0
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: best-hare
*/

*{box-sizing:border-box}
html,body{margin:0;padding:0;width:100%;max-width:100%;overflow-x:hidden}
body{margin:0;background:#ffffff;font-family:'Noto Sans JP',sans-serif;color:#1a1a1a}
.site{width:100%;min-height:100vh;display:flex;flex-direction:column;background:#fafafa;overflow-x:hidden}
.site-header{width:100%;padding:20px 24px;display:flex;align-items:center;justify-content:center;background:#fff}
.site-brand{font-family:'Zen Maru Gothic',sans-serif;font-weight:700;font-size:16px;letter-spacing:.04em;color:#ff6fb0;display:flex;align-items:baseline;gap:8px;-webkit-text-stroke:0.4px #ff6fb0}
.site-brand-sub{font-family:'Noto Sans JP',sans-serif;font-weight:500;font-size:11px;letter-spacing:.02em;color:#c2c2c2;-webkit-text-stroke:0}
.site-nav{width:100%;display:flex;justify-content:center;padding:12px 24px;background:#fff;border-bottom:1px solid #eee;border-top:none;flex-wrap:wrap}
.site-nav-list{display:flex;justify-content:center;align-items:center;gap:24px;flex-wrap:wrap;list-style:none;margin:0;padding:0}
.site-nav-list li{list-style:none;margin:0;padding:0}
.site-nav-list a,.site-nav-link{font-size:12.5px;font-weight:500;color:#8f8f8f;text-decoration:none}
.site-nav-list a:hover,.site-nav-link:hover{color:#ff6fb0}
.site-footer{width:100%;padding:20px 24px;text-align:center;font-size:11.5px;color:#b3b3b3;background:#fff;border-top:1px solid #eee}
#app{flex:1;display:flex;overflow-x:hidden}
.stage{width:100%;flex:1;display:flex;align-items:center;justify-content:center;padding:32px 24px;overflow-x:hidden}
.phone{width:390px;max-width:100%;min-height:760px;background:#ffffff;border-radius:32px;box-shadow:0 20px 50px rgba(0,0,0,.18),0 2px 8px rgba(0,0,0,.08);overflow:hidden;display:flex;flex-direction:column;position:relative}
.pad{padding:28px 24px}
.brand{font-family:'Zen Maru Gothic',sans-serif;font-weight:700;font-size:18px;letter-spacing:.04em;color:#ff6fb0;display:flex;align-items:baseline;gap:8px;-webkit-text-stroke:0.4px #ff6fb0}
.brand-sub{font-family:'Noto Sans JP',sans-serif;font-weight:500;font-size:11px;letter-spacing:.02em;color:#c2c2c2;-webkit-text-stroke:0}
.app-header{padding:16px 24px 0}
.hero-title{font-family:'Zen Maru Gothic',sans-serif;font-weight:700;font-size:24px;line-height:1.5;margin:14px 0 6px;text-align:left}
.hero-sub{font-size:13.5px;color:#8f8f8f;line-height:1.7;margin:0 0 28px}
.genre-list{display:flex;flex-direction:column;gap:14px}
.genre-card{border:1px solid #e6e6e6;background:#fff;border-radius:18px;padding:14px 18px;text-align:left;cursor:pointer;transition:all .15s ease;display:flex;flex-direction:row;align-items:center;gap:14px}
.genre-thumb{width:56px;height:56px;border-radius:14px;flex-shrink:0;background:repeating-linear-gradient(45deg,#eeeeee,#eeeeee 6px,#e0e0e0 6px,#e0e0e0 12px)}
.genre-text{display:flex;flex-direction:column;gap:4px}
.genre-card:active{transform:scale(.98)}
.genre-card:hover{border-color:#ffb3d9}
.genre-name{font-family:'Zen Maru Gothic',sans-serif;font-weight:700;font-size:16.5px;color:#1a1a1a}
.genre-desc{font-size:12.5px;color:#8f8f8f}
.topbar{display:flex;align-items:center;gap:12px;padding:20px 20px 0}
.backbtn{width:36px;height:36px;border-radius:50%;border:1px solid #e6e6e6;background:#fff;display:flex;align-items:center;justify-content:center;cursor:pointer;flex-shrink:0;font-size:16px;color:#8f8f8f;box-shadow:none}
.progress-wrap{flex:1}
.progress-label{font-size:11px;color:#a3a3a3;margin-bottom:6px;font-weight:500}
.progress-track{height:6px;background:#f0e6e2;border-radius:99px;overflow:hidden}
.progress-fill{height:100%;background:var(--accent,#ff6fb0);border-radius:99px;transition:width .25s ease}
.qwrap{padding:22px 24px 0;flex:1;display:flex;flex-direction:column}
.qtitle{font-family:'Zen Maru Gothic',sans-serif;font-weight:700;font-size:19px;margin:4px 0 4px}
.qsub{font-size:12.5px;color:#a3a3a3;margin:0 0 18px}
.options{display:grid;grid-template-columns:1fr 1fr;gap:10px}
.opt{border:1.5px solid #e6e6e6;background:#fff;border-radius:14px;padding:10px;font-size:13.5px;font-weight:500;text-align:center;cursor:pointer;transition:all .15s ease;color:#1a1a1a;display:flex;flex-direction:column;align-items:center;gap:8px}
.opt-thumb{width:100%;aspect-ratio:1/1;border-radius:10px;background:repeating-linear-gradient(45deg,#eeeeee,#eeeeee 6px,#e0e0e0 6px,#e0e0e0 12px)}
.opt.selected .opt-thumb{background:var(--accent-soft,#ffe3f0)}
.opt:active{transform:scale(.97)}
.opt.selected{border-color:var(--accent,#ff6fb0);background:var(--accent-soft,#fff2f8);color:var(--accent-text,#d1428f)}
.navbar{display:flex;gap:10px;padding:18px 24px 26px;margin-top:auto}
.btn{flex:1;padding:15px 0;border-radius:14px;font-weight:700;font-size:14.5px;cursor:pointer;border:none;font-family:'Zen Maru Gothic',sans-serif}
.btn-ghost{background:#fff;color:#8f8f8f;border:1px solid #e6e6e6;box-shadow:none}
.btn-primary{background:var(--accent,#ff6fb0);color:#fff;box-shadow:0 6px 16px rgba(0,0,0,.18)}
.btn-primary:active,.btn-ghost:active{transform:scale(.98)}
.result-wrap{padding:24px;flex:1;display:flex;flex-direction:column}
.result-badge{width:42px;height:42px;border-radius:50%;border:2px solid var(--accent,#ff6fb0);background:transparent;display:flex;align-items:center;justify-content:center;margin-bottom:16px}
.check{width:16px;height:10px;border-left:3px solid var(--accent,#ff6fb0);border-bottom:3px solid var(--accent,#ff6fb0);border-radius:0 0 0 3px;transform:rotate(-45deg) translate(1px,-2px)}
.result-title{font-family:'Zen Maru Gothic',sans-serif;font-weight:700;font-size:19px;margin:0 0 6px}
.result-sub{font-size:12.5px;color:#a3a3a3;margin:0 0 16px;line-height:1.6}
.prompt-box{width:100%;min-height:150px;border:1.5px solid #e6e6e6;border-radius:16px;padding:14px;font-size:13px;line-height:1.7;font-family:'Noto Sans JP',sans-serif;color:#1a1a1a;resize:none;background:#ffffff}
.prompt-box:focus{outline:none;border-color:var(--accent,#ff6fb0)}
.chatgpt-btn{margin-top:16px;width:100%;padding:16px 0;border-radius:16px;border:none;background:#1a1a1a;color:#fff;font-weight:700;font-size:14.5px;cursor:pointer;font-family:'Zen Maru Gothic',sans-serif}
.chatgpt-btn:active{transform:scale(.98)}
.copy-btn{margin-top:10px;width:100%;padding:15px 0;border-radius:16px;border:1.5px solid #e6e6e6;background:#fff;color:#1a1a1a;font-weight:700;font-size:14px;cursor:pointer;font-family:'Zen Maru Gothic',sans-serif}
.copy-btn:active{transform:scale(.98)}
.copy-btn.copied{border-color:var(--accent,#ff6fb0);color:var(--accent-text,#d1428f)}
.note{margin:14px 0 0;font-size:13px;color:#c23b34;line-height:1.7;background:#fdf1f0;border-radius:14px;padding:14px 16px;font-weight:500}
.other-input{margin-top:12px;width:100%;border:1.5px solid #e6e6e6;border-radius:12px;padding:12px 14px;font-size:13.5px;font-family:'Noto Sans JP',sans-serif;color:#1a1a1a}
.other-input:focus{outline:none;border-color:var(--accent,#ff6fb0)}
.length-panel{margin-top:14px;border:1.5px solid #e6e6e6;border-radius:14px;padding:14px 16px}
.length-top{display:flex;justify-content:space-between;align-items:baseline;margin-bottom:10px}
.length-label{font-size:12.5px;color:#8f8f8f;font-weight:500}
.length-value{font-size:15px;color:#1a1a1a;font-weight:700}
.length-slider{width:100%;accent-color:var(--accent,#ff6fb0);margin-bottom:10px}
.unit-toggle{display:flex;gap:8px}
.unit-btn{flex:1;padding:8px 0;border-radius:10px;border:1.5px solid #e6e6e6;background:#fff;color:#8f8f8f;font-size:12.5px;font-weight:600;cursor:pointer;font-family:'Noto Sans JP',sans-serif}
.unit-btn.active{border-color:var(--accent,#ff6fb0);background:var(--accent-soft,#fff2f8);color:var(--accent-text,#d1428f)}
.reset-link{margin-top:14px;text-align:center;font-size:12.5px;color:#a3a3a3;text-decoration:underline;cursor:pointer;background:none;border:none;font-family:'Noto Sans JP',sans-serif}
.ad-slot{margin-top:16px;width:100%;min-height:80px;display:flex;align-items:center;justify-content:center;overflow:hidden}
.ad-slot-placeholder{border:1.5px dashed #ddd;border-radius:12px;background:#fafafa}
.ad-slot-placeholder span{font-size:12px;color:#b3b3b3;font-weight:500}
a{color:#ff6fb0}a:hover{color:#d1428f}
.desktop-gate{position:fixed;inset:0;z-index:50;display:flex;align-items:center;justify-content:center;padding:24px;background:rgba(26,26,26,.55)}
.desktop-card{max-width:380px;width:100%;max-height:92vh;overflow-y:auto;text-align:center;display:flex;flex-direction:column;align-items:center;background:#fff;border-radius:22px;padding:26px 24px;box-shadow:0 20px 60px rgba(0,0,0,.3)}
.phone-icon{width:44px;height:72px;border-radius:12px;border:3px solid #1a1a1a;position:relative;display:flex;align-items:flex-end;justify-content:center;padding-bottom:7px;margin-bottom:14px;flex-shrink:0}
.phone-icon-notch{width:22px;height:3px;border-radius:99px;background:#1a1a1a}
.desktop-title{font-family:'Zen Maru Gothic',sans-serif;font-weight:700;font-size:18px;margin-bottom:8px;color:#1a1a1a}
.desktop-text{font-size:12.5px;color:#8f8f8f;line-height:1.7;margin:0 0 16px}
.url-box{width:100%;border:1.5px solid #e6e6e6;border-radius:10px;padding:10px 14px;font-size:11.5px;color:#1a1a1a;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;background:#fafafa;margin-bottom:12px}
.copy-url-btn{width:100%;max-width:280px;padding:12px 0;border-radius:14px;border:none;background:#ff6fb0;color:#fff;font-weight:700;font-size:13.5px;cursor:pointer;font-family:'Zen Maru Gothic',sans-serif}
.copy-url-btn:active{transform:scale(.98)}
.copy-url-btn.copied{background:#1a1a1a}
.continue-link{margin-top:10px;background:none;border:none;font-size:12px;color:#a3a3a3;text-decoration:underline;cursor:pointer;font-family:'Noto Sans JP',sans-serif}
.summary-btn{margin-top:10px;width:100%;padding:15px 0;border-radius:16px;border:1.5px solid #e6e6e6;background:#fff;color:#1a1a1a;font-weight:700;font-size:14px;cursor:pointer;font-family:'Zen Maru Gothic',sans-serif}
.summary-btn:active{transform:scale(.98)}
.summary-overlay{position:fixed;inset:0;z-index:60;display:flex;align-items:center;justify-content:center;padding:24px;background:rgba(26,26,26,.55)}
.summary-card{max-width:380px;width:100%;max-height:80vh;overflow-y:auto;background:#fff;border-radius:22px;padding:26px 24px;box-shadow:0 20px 60px rgba(0,0,0,.3);position:relative}
.summary-x{position:absolute;top:16px;right:16px;width:30px;height:30px;border-radius:50%;border:1.5px solid #e6e6e6;background:#fff;color:#8f8f8f;font-size:16px;line-height:1;cursor:pointer;display:flex;align-items:center;justify-content:center}
.summary-x:active{transform:scale(.95)}
.summary-title{font-family:'Zen Maru Gothic',sans-serif;font-weight:700;font-size:17px;color:#1a1a1a;margin:0 32px 18px 0}
.summary-list{display:flex;flex-direction:column;gap:16px;margin-bottom:22px}
.summary-row{display:flex;align-items:flex-start;gap:10px}
.summary-dot{width:6px;height:6px;border-radius:50%;background:var(--accent,#ff6fb0);margin-top:8px;flex-shrink:0}
.summary-text{display:flex;flex-direction:column;gap:2px}
.summary-label{font-size:11.5px;color:#a3a3a3;font-weight:500}
.summary-value{font-size:15px;color:#1a1a1a;font-weight:700;line-height:1.5}
