[{"data":1,"prerenderedAt":312},["ShallowReactive",2],{"navigation_docs":3,"-frontend-html-img":190,"-frontend-html-img-surround":307},[4,136,150,183],{"title":5,"path":6,"stem":7,"children":8},"Frontend","\u002Ffrontend","1.frontend",[9,13,39,76,109,130],{"title":10,"path":6,"stem":11,"order":12},"フロントエンド ガイドライン","1.frontend\u002Findex",1,{"title":14,"path":15,"stem":16,"children":17},"HTML","\u002Ffrontend\u002Fhtml","1.frontend\u002F1.html\u002Findex",[18,19,23,27,31,35],{"title":14,"path":15,"stem":16},{"title":20,"path":21,"stem":22},"コードスタイル","\u002Ffrontend\u002Fhtml\u002Fcode-style","1.frontend\u002F1.html\u002Fcode-style",{"title":24,"path":25,"stem":26},"見出しタグ","\u002Ffrontend\u002Fhtml\u002Fheading","1.frontend\u002F1.html\u002Fheading",{"title":28,"path":29,"stem":30},"img タグ","\u002Ffrontend\u002Fhtml\u002Fimg","1.frontend\u002F1.html\u002Fimg",{"title":32,"path":33,"stem":34},"パスとリンク","\u002Ffrontend\u002Fhtml\u002Flink","1.frontend\u002F1.html\u002Flink",{"title":36,"path":37,"stem":38},"品質管理","\u002Ffrontend\u002Fhtml\u002Fquality","1.frontend\u002F1.html\u002Fquality",{"title":40,"path":41,"stem":42,"children":43},"CSS","\u002Ffrontend\u002Fcss","1.frontend\u002F2.css\u002Findex",[44,45,49,52,56,60,64,68,72],{"title":40,"path":41,"stem":42},{"title":46,"path":47,"stem":48},"命名規則・コンポーネント設計","\u002Ffrontend\u002Fcss\u002Farchitecture","1.frontend\u002F2.css\u002Farchitecture",{"title":20,"path":50,"stem":51},"\u002Ffrontend\u002Fcss\u002Fcode-style","1.frontend\u002F2.css\u002Fcode-style",{"title":53,"path":54,"stem":55},"Web フォント","\u002Ffrontend\u002Fcss\u002Ffonts","1.frontend\u002F2.css\u002Ffonts",{"title":57,"path":58,"stem":59},"記述順番","\u002Ffrontend\u002Fcss\u002Forder","1.frontend\u002F2.css\u002Forder",{"title":61,"path":62,"stem":63},"プロパティのルール","\u002Ffrontend\u002Fcss\u002Fproperties","1.frontend\u002F2.css\u002Fproperties",{"title":65,"path":66,"stem":67},"Tailwind CSS","\u002Ffrontend\u002Fcss\u002Ftailwind","1.frontend\u002F2.css\u002Ftailwind",{"title":69,"path":70,"stem":71},"値のルール","\u002Ffrontend\u002Fcss\u002Fvalues","1.frontend\u002F2.css\u002Fvalues",{"title":73,"path":74,"stem":75},"CSS 変数（カスタムプロパティ）","\u002Ffrontend\u002Fcss\u002Fvariables","1.frontend\u002F2.css\u002Fvariables",{"title":77,"path":78,"stem":79,"children":80},"JavaScript","\u002Ffrontend\u002Fjs","1.frontend\u002F3.js\u002Findex",[81,82,85,89,93,97,101,105],{"title":77,"path":78,"stem":79},{"title":20,"path":83,"stem":84},"\u002Ffrontend\u002Fjs\u002Fcode-style","1.frontend\u002F3.js\u002Fcode-style",{"title":86,"path":87,"stem":88},"エラーハンドリング","\u002Ffrontend\u002Fjs\u002Ferror-handling","1.frontend\u002F3.js\u002Ferror-handling",{"title":90,"path":91,"stem":92},"ライブラリの利用","\u002Ffrontend\u002Fjs\u002Flibraries","1.frontend\u002F3.js\u002Flibraries",{"title":94,"path":95,"stem":96},"HTML への読み込み","\u002Ffrontend\u002Fjs\u002Floading","1.frontend\u002F3.js\u002Floading",{"title":98,"path":99,"stem":100},"モジュール","\u002Ffrontend\u002Fjs\u002Fmodule-structure","1.frontend\u002F3.js\u002Fmodule-structure",{"title":102,"path":103,"stem":104},"命名規則","\u002Ffrontend\u002Fjs\u002Fnaming","1.frontend\u002F3.js\u002Fnaming",{"title":106,"path":107,"stem":108},"パフォーマンス最適化","\u002Ffrontend\u002Fjs\u002Fperformance","1.frontend\u002F3.js\u002Fperformance",{"title":110,"path":111,"stem":112,"children":113},"画像・メディアリソースガイドライン","\u002Ffrontend\u002Fmedia","1.frontend\u002F4.media\u002Findex",[114,115,119,123,127],{"title":110,"path":111,"stem":112},{"title":116,"path":117,"stem":118},"アクセシビリティ","\u002Ffrontend\u002Fmedia\u002Faccessibility","1.frontend\u002F4.media\u002Faccessibility",{"title":120,"path":121,"stem":122},"画像フォーマット","\u002Ffrontend\u002Fmedia\u002Fformats","1.frontend\u002F4.media\u002Fformats",{"title":124,"path":125,"stem":126},"ファイル命名規則","\u002Ffrontend\u002Fmedia\u002Fnaming","1.frontend\u002F4.media\u002Fnaming",{"title":106,"path":128,"stem":129},"\u002Ffrontend\u002Fmedia\u002Foptimization","1.frontend\u002F4.media\u002Foptimization",{"title":131,"path":132,"stem":133,"children":134},"開発環境テンプレート","\u002Ffrontend\u002Fenvironment","1.frontend\u002F5.environment\u002Findex",[135],{"title":131,"path":132,"stem":133},{"title":137,"path":138,"stem":139,"children":140,"page":149},"Deploy Release","\u002Fdeploy-release","2.deploy-release",[141,145],{"title":142,"path":143,"stem":144},"デプロイ","\u002Fdeploy-release\u002Fdeploy","2.deploy-release\u002Fdeploy",{"title":146,"path":147,"stem":148},"リリース","\u002Fdeploy-release\u002Frelease","2.deploy-release\u002Frelease",false,{"title":151,"path":152,"stem":153,"children":154},"Git","\u002Fgit","3.git",[155,159,163,167,171,175,179],{"title":156,"path":152,"stem":157,"order":158},"Git ガイドライン","3.git\u002Findex",3,{"title":160,"path":161,"stem":162},"ブランチ戦略","\u002Fgit\u002Fbranch","3.git\u002Fbranch",{"title":164,"path":165,"stem":166},"CI\u002FCD運用","\u002Fgit\u002Fcicd","3.git\u002Fcicd",{"title":168,"path":169,"stem":170},"コミットメッセージとタグ","\u002Fgit\u002Fmessage","3.git\u002Fmessage",{"title":172,"path":173,"stem":174},"Pull Request運用","\u002Fgit\u002Fpull-request","3.git\u002Fpull-request",{"title":176,"path":177,"stem":178},"リポジトリ運用","\u002Fgit\u002Frepository","3.git\u002Frepository",{"title":180,"path":181,"stem":182},"GitHub権限・セキュリティ","\u002Fgit\u002Fsecurity","3.git\u002Fsecurity",{"title":184,"path":185,"stem":186,"children":187,"order":189},"AI 利用ガイドライン","\u002Fai","4.ai\u002Findex",[188],{"title":184,"path":185,"stem":186,"order":189},4,{"id":191,"title":28,"body":192,"description":300,"extension":301,"links":302,"meta":303,"navigation":304,"path":29,"seo":305,"stem":30,"__hash__":306},"docs\u002F1.frontend\u002F1.html\u002Fimg.md",{"type":193,"value":194,"toc":293},"minimark",[195,200,220,231,239,258,262,275,279,282],[196,197,199],"h2",{"id":198},"レイアウトシフトclsの対策","レイアウトシフト（CLS）の対策",[201,202,203,207,208,211,212,215,216,219],"p",{},[204,205,206],"code",{},"img"," タグに ",[204,209,210],{},"width"," と ",[204,213,214],{},"height"," 属性を書き出したサイズで指定してください。",[217,218],"br",{},"\nブラウザに画像のアスペクト比（縦横比）を事前に伝えることができ、画像が読み込まれる前でも表示領域を確保することができます。",[201,221,222,225,226,211,228,230],{},[204,223,224],{},"picture"," タグを使用する場合は source タグにも ",[204,227,210],{},[204,229,214],{}," を指定してください。",[201,232,233,234,211,236,238],{},"なお、img タグに ",[204,235,210],{},[204,237,214],{}," 属性を指定することでレスポンシブサイトでは画像の縦横比に崩れが発生する可能性があるため、CSS で調整してください。",[240,241,242,245],"tip",{},[201,243,244],{},"明示しなくていいケース",[246,247,248,252,255],"ul",{},[249,250,251],"li",{},"CSS で inline-size(width)と block-size(height)を同時に指定している場合（ただし block-size が auto でない）",[249,253,254],{},"CSS で inline-size(width)か block-size(height)のどちらかを指定していて、且つ aspect-ratio を指定している場合",[249,256,257],{},"幅と高さが親要素に完全に依存して、CSS の object-fit を使っている場合",[196,259,261],{"id":260},"遅延デコード遅延読み込みの設定","遅延デコード・遅延読み込みの設定",[201,263,264,267,268,270,271,274],{},[204,265,266],{},"decoding"," 属性はブラウザが適宜最適化しているため、指定しないでください。",[217,269],{},"\nファーストビュー以下の img 要素にはなるべく",[204,272,273],{},"loading=\"lazy\"","を指定して、表示領域にない要素の自動ダウンロードを避けます。",[196,276,278],{"id":277},"alt-の設定","alt の設定",[201,280,281],{},"画像内にテキスト情報がある場合には、基本的には、画像にある文言をそのまま記述してください。",[201,283,284,285,288,289,292],{},"単なる装飾画像や前後でテキストで説明があるような画像に対しては ",[204,286,287],{},"alt"," を空(",[204,290,291],{},"alt=\"\"",")で設定してください。",{"title":294,"searchDepth":295,"depth":295,"links":296},"",2,[297,298,299],{"id":198,"depth":295,"text":199},{"id":260,"depth":295,"text":261},{"id":277,"depth":295,"text":278},"レイアウトシフト対策、遅延読み込み、alt属性の設定ルール","md",null,{},true,{"title":28,"description":300},"PiQxfOIgytu8ACTk9eJrgDcT9PjQanfVn4Nn0wrTmyQ",[308,310],{"title":24,"path":25,"stem":26,"description":309,"children":-1},"見出しタグは、ページの構造を明確にし、SEO とアクセシビリティの向上において重要な役割を果たします。",{"title":32,"path":33,"stem":34,"description":311,"children":-1},"ルート相対パスの使用、ページ内リンク、外部リンクの設定ルール",1780099577515]