{"version":3,"file":"ViewMore__1.Bx6lRAYz.mjs","names":["React.useState"],"sources":["https:/framerusercontent.com/modules/o884fAMQqWWlYPwKiXo6/9DO67SbWVzD43NUgL5G5/ViewMore__1.js"],"sourcesContent":["import{jsx as _jsx,jsxs as _jsxs}from\"react/jsx-runtime\";import*as React from\"react\";import{addPropertyControls,ControlType}from\"framer\";// Show the underline permanently on narrow / touch viewports (<= 809px),\n// where there is no hover to reveal it. Text colour and arrow position\n// stay in their normal (non-hover) state.\nfunction useAlwaysUnderline(){const[narrow,setNarrow]=React.useState(false);React.useEffect(()=>{const check=()=>setNarrow(window.innerWidth<=809);check();window.addEventListener(\"resize\",check);return()=>window.removeEventListener(\"resize\",check);},[]);return narrow;}export default function ViewMore(props){const[hover,setHover]=React.useState(false);const alwaysLine=useAlwaysUnderline();const{link,fontSize,letterSpacing,normalColor,hoverColor,externalHover}=props;// 自分自身にHover または 親からHover指定\nconst active=hover||externalHover;const showLine=active||alwaysLine;return /*#__PURE__*/_jsxs(\"a\",{href:link,onMouseEnter:()=>setHover(true),onMouseLeave:()=>setHover(false),style:{width:\"100%\",height:\"100%\",display:\"flex\",flexDirection:\"column\",justifyContent:\"center\",textDecoration:\"none\",cursor:\"pointer\",boxSizing:\"border-box\"},children:[/*#__PURE__*/_jsxs(\"div\",{style:{display:\"flex\",justifyContent:\"flex-start\",alignItems:\"center\",// View More と ↗ の間隔\ngap:\"8px\",paddingBottom:\"1px\"},children:[/*#__PURE__*/_jsx(\"span\",{style:{fontFamily:'\"Noto Serif JP\", serif',fontSize:`${fontSize}px`,letterSpacing:`${letterSpacing}em`,whiteSpace:\"nowrap\",color:active?hoverColor:normalColor,transition:\"color 0.4s cubic-bezier(0.22, 1, 0.36, 1)\"},children:\"お問い合わせはこちら\"}),/*#__PURE__*/_jsx(\"span\",{style:{fontFamily:'\"Inria Serif\", serif',fontSize:`${fontSize}px`,color:active?hoverColor:\"#BBBBBB\",transform:active?\"translate(3px, -2px)\":\"translate(0px, 0px)\",transition:\"color 0.4s ease, transform 2s cubic-bezier(0.22, 1, 0.36, 1)\"},children:\"↗\"})]}),/*#__PURE__*/_jsx(\"div\",{style:{width:showLine?\"100%\":\"0%\",height:\"1px\",backgroundColor:active?hoverColor:`color-mix(in srgb, ${normalColor} 55%, transparent)`,transition:\"width 1.6s cubic-bezier(0.22, 1, 0.36, 1)\"}})]});}ViewMore.defaultProps={width:140,height:40,link:\"/#contact\",fontSize:16,letterSpacing:.12,normalColor:\"#888888\",hoverColor:\"#777777\",externalHover:false};addPropertyControls(ViewMore,{link:{type:ControlType.Link,title:\"Link\"},fontSize:{type:ControlType.Number,title:\"Size\",min:10,max:30,step:1},letterSpacing:{type:ControlType.Number,title:\"Letter\",min:0,max:.5,step:.01},normalColor:{type:ControlType.Color,title:\"Normal\"},hoverColor:{type:ControlType.Color,title:\"Hover\"},externalHover:{type:ControlType.Boolean,title:\"Force Hover\",defaultValue:false}});\nexport const __FramerMetadata__ = {\"exports\":{\"default\":{\"type\":\"reactComponent\",\"name\":\"ViewMore\",\"slots\":[],\"annotations\":{\"framerContractVersion\":\"1\"}},\"__FramerMetadata__\":{\"type\":\"variable\"}}}\n//# sourceMappingURL=./ViewMore__1.map"],"mappings":"sMAGA,SAAS,GAAoB,CAAC,GAAK,CAAC,EAAO,GAAWA,EAAe,EAAK,EAAoL,OAAlL,MAAoB,CAAC,IAAM,MAAU,EAAU,EAAO,YAAY,GAAG,EAAkD,OAAhD,EAAM,EAAE,EAAO,iBAAiB,SAAS,CAAK,MAAY,EAAO,oBAAoB,SAAS,CAAK,CAAE,EAAE,CAAC,CAAC,EAAS,CAAO,CAAC,SAAwB,EAAS,EAAM,CAAC,GAAK,CAAC,EAAM,GAAUA,EAAe,EAAK,EAAQ,EAAW,EAAmB,EAAO,CAAC,OAAK,WAAS,gBAAc,cAAY,aAAW,iBAAe,EACzc,EAAO,GAAO,EAAoB,EAAS,GAAQ,EAAW,OAAoB,EAAM,IAAI,CAAC,KAAK,EAAK,iBAAiB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