{"version":3,"file":"PositionMap.DYQRUTcM.mjs","names":[],"sources":["https:/framerusercontent.com/modules/TdfYc8xfSf07HLyhTgQn/SSk5FBZ42gQZwSSXXH7E/PositionMap.js"],"sourcesContent":["import{jsx as _jsx,jsxs as _jsxs}from\"react/jsx-runtime\";import{motion}from\"framer-motion\";import{addPropertyControls,ControlType}from\"framer\";export default function PositionMap(props){const{// テキスト・ラベル\nlabelYTop,labelYBottom,labelXLeft,labelXRight,centerTextMain,centerTextSub,// フォント設定 (ドロップダウンで選択された値)\nselectedFont,fontWeightLabel,fontWeightCenter,// 色設定\ntitleColor,lineColor,centerColor,centerTextColor,bgColor,compBgColor,compTextColor}=props;// フォント名をCSSの正しい記述に変換する関数\nconst getFontStack=fontName=>{switch(fontName){case\"Yu Gothic\":// WindowsとMac両方できれいに表示させるための記述\nreturn'\"Yu Gothic\", YuGothic, \"Hiragino Kaku Gothic ProN\", Meiryo, sans-serif';case\"Hiragino Sans\":return'\"Hiragino Kaku Gothic ProN\", \"Hiragino Sans\", sans-serif';case\"Noto Sans JP\":// Google Fontsなどで読み込まれている前提、なければsans-serif\nreturn'\"Noto Sans JP\", sans-serif';case\"Meiryo\":return'Meiryo, \"Hiragino Kaku Gothic ProN\", sans-serif';default:return\"sans-serif\";}};const currentFontFamily=getFontStack(selectedFont);// 全体のコンテナ\nconst containerStyle={width:\"100%\",height:\"100%\",minHeight:\"300px\",display:\"flex\",justifyContent:\"center\",alignItems:\"center\",backgroundColor:bgColor,position:\"relative\",overflow:\"hidden\",fontFamily:currentFontFamily};// 上下左右のラベルスタイル\nconst labelStyle={position:\"absolute\",fontSize:\"11px\",color:titleColor,letterSpacing:\"0.05em\",fontWeight:fontWeightLabel,fontFamily:currentFontFamily,textAlign:\"center\",width:\"100%\",pointerEvents:\"none\"};// 競合他社（四角いボックス）のスタイル\nconst competitorBoxStyle={position:\"absolute\",padding:\"6px 10px\",backgroundColor:compBgColor,border:`1px solid ${lineColor}`,borderRadius:\"4px\",fontSize:\"11px\",color:compTextColor,boxShadow:\"0 1px 4px rgba(0,0,0,0.05)\",zIndex:5,fontFamily:currentFontFamily,whiteSpace:\"nowrap\"};return /*#__PURE__*/_jsxs(\"div\",{style:containerStyle,children:[/*#__PURE__*/_jsx(motion.div,{initial:{scaleX:0},whileInView:{scaleX:1},viewport:{once:true},transition:{duration:.8,ease:\"circOut\"},style:{position:\"absolute\",width:\"90%\",height:\"1px\",backgroundColor:lineColor,zIndex:1}}),/*#__PURE__*/_jsx(motion.div,{initial:{scaleY:0},whileInView:{scaleY:1},viewport:{once:true},transition:{duration:.8,ease:\"circOut\"},style:{position:\"absolute\",width:\"1px\",height:\"85%\",backgroundColor:lineColor,zIndex:1}}),/*#__PURE__*/_jsx(\"div\",{style:{...labelStyle,top:\"10px\"},children:labelYTop}),/*#__PURE__*/_jsx(\"div\",{style:{...labelStyle,bottom:\"10px\"},children:labelYBottom}),/*#__PURE__*/_jsx(\"div\",{style:{...labelStyle,width:\"auto\",top:\"50%\",left:\"10px\",transform:\"translateY(-50%)\"},children:labelXLeft}),/*#__PURE__*/_jsx(\"div\",{style:{...labelStyle,width:\"auto\",top:\"50%\",right:\"10px\",transform:\"translateY(-50%)\"},children:labelXRight}),/*#__PURE__*/_jsx(motion.div,{initial:{opacity:0,y:5},whileInView:{opacity:1,y:0},viewport:{once:true},transition:{delay:.3,duration:.5},style:{...competitorBoxStyle,bottom:\"12%\",left:\"8%\"},children:\"広告代理店\"}),/*#__PURE__*/_jsx(motion.div,{initial:{opacity:0,y:5},whileInView:{opacity:1,y:0},viewport:{once:true},transition:{delay:.4,duration:.5},style:{...competitorBoxStyle,top:\"12%\",right:\"8%\"},children:\"コンサルティング\"}),/*#__PURE__*/_jsxs(motion.div,{initial:{scale:0,opacity:0},whileInView:{scale:1,opacity:1},viewport:{once:true},transition:{delay:.5,type:\"spring\",stiffness:120,damping:15},style:{width:\"120px\",height:\"120px\",borderRadius:\"50%\",backgroundColor:centerColor,display:\"flex\",flexDirection:\"column\",justifyContent:\"center\",alignItems:\"center\",zIndex:10,boxShadow:\"0 8px 20px rgba(0,0,0,0.15)\",color:centerTextColor},children:[/*#__PURE__*/_jsx(\"span\",{style:{// 中心だけ明朝体にするか、全体と同じにするか\n// 今回は全体設定に合わせますが、必要ならここだけ変えられます\nfontFamily:currentFontFamily,fontSize:\"18px\",fontWeight:fontWeightCenter,lineHeight:\"1.1\"},children:centerTextMain}),/*#__PURE__*/_jsx(\"span\",{style:{fontSize:\"9px\",marginTop:\"4px\",opacity:.9,fontFamily:currentFontFamily},children:centerTextSub})]})]});}addPropertyControls(PositionMap,{// フォント選択 (ドロップダウン)\nselectedFont:{type:ControlType.Enum,title:\"Font Family\",defaultValue:\"Yu Gothic\",options:[\"Yu Gothic\",\"Noto Sans JP\",\"Hiragino Sans\",\"Meiryo\"],optionTitles:[\"游ゴシック (Yu Gothic)\",\"Noto Sans JP\",\"ヒラギノ角ゴ (Hiragino)\",\"メイリオ (Meiryo)\"]},fontWeightLabel:{type:ControlType.Number,title:\"Weight (Label)\",defaultValue:500,min:100,max:900,step:100},fontWeightCenter:{type:ControlType.Number,title:\"Weight (Center)\",defaultValue:700,min:100,max:900,step:100},// コンテンツ設定\nlabelYTop:{type:ControlType.String,title:\"Top Label\",defaultValue:\"戦略 (Strategy)\"},labelYBottom:{type:ControlType.String,title:\"Bottom Label\",defaultValue:\"実行 (Execution)\"},labelXLeft:{type:ControlType.String,title:\"Left Label\",defaultValue:\"現場視点\"},labelXRight:{type:ControlType.String,title:\"Right Label\",defaultValue:\"経営視点\"},centerTextMain:{type:ControlType.String,title:\"Center Main\",defaultValue:\"Cozies\"},centerTextSub:{type:ControlType.String,title:\"Center Sub\",defaultValue:\"Marketing Farm\"},// カラー設定\nbgColor:{type:ControlType.Color,title:\"BG Color\",defaultValue:\"#fafafa\"},lineColor:{type:ControlType.Color,title:\"Line Color\",defaultValue:\"#ddd\"},titleColor:{type:ControlType.Color,title:\"Text Color\",defaultValue:\"#999\"},centerColor:{type:ControlType.Color,title:\"Center Circle\",defaultValue:\"#F296A8\"},centerTextColor:{type:ControlType.Color,title:\"Center Text\",defaultValue:\"#fff\"},compBgColor:{type:ControlType.Color,title:\"Comp BG\",defaultValue:\"#fff\"},compTextColor:{type:ControlType.Color,title:\"Comp Text\",defaultValue:\"#666\"}});\nexport const __FramerMetadata__ = {\"exports\":{\"default\":{\"type\":\"reactComponent\",\"name\":\"PositionMap\",\"slots\":[],\"annotations\":{\"framerContractVersion\":\"1\"}},\"__FramerMetadata__\":{\"type\":\"variable\"}}}\n//# sourceMappingURL=./PositionMap.map"],"mappings":"qNAA+I,SAAwB,EAAY,EAAM,CAAC,GAAK,CAC/L,YAAU,eAAa,aAAW,cAAY,iBAAe,gBAC7D,eAAa,kBAAgB,mBAC7B,aAAW,YAAU,cAAY,kBAAgB,UAAQ,cAAY,iBAAe,EAGwD,GAFzH,GAAU,CAAC,OAAO,EAAP,CAAiB,IAAI,YACnD,MAAM,yEAAyE,IAAI,gBAAgB,MAAM,2DAA2D,IAAI,eACxK,MAAM,6BAA6B,IAAI,SAAS,MAAM,kDAAkD,QAAQ,MAAM,gBAAqD,EAAa,CAClL,EAAe,CAAC,MAAM,OAAO,OAAO,OAAO,UAAU,QAAQ,QAAQ,OAAO,eAAe,SAAS,WAAW,SAAS,gBAAgB,EAAQ,SAAS,WAAW,SAAS,SAAS,WAAW,EAAkB,CACnN,EAAW,CAAC,SAAS,WAAW,SAAS,OAAO,MAAM,EAAW,cAAc,SAAS,WAAW,EAAgB,WAAW,EAAkB,UAAU,SAAS,MAAM,OAAO,cAAc,OAAO,CACrM,EAAmB,CAAC,SAAS,WAAW,QAAQ,WAAW,gBAAgB,EAAY,OAAO,aAAa,IAAY,aAAa,MAAM,SAAS,OAAO,MAAM,EAAc,UAAU,6BAA6B,OAAO,EAAE,WAAW,EAAkB,WAAW,SAAS,CAAC,OAAoB,EAAM,MAAM,CAAC,MAAM,EAAe,SAAS,CAAc,EAAK,EAAO,IAAI,CAAC,QAAQ,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