@charset "UTF-8"; html { scroll-behavior: smooth; } body { font-family: "Helvetica Neue", Arial, "Hiragino Kaku Gothic ProN", "Hiragino Sans", Meiryo, sans-serif; background-color: #F0EBEA; } header { background-color: #668E68; } nav { margin: 0; padding: 0 20px 20px; list-style: none; } /* navの子孫ulに対して、外側余白0、リストスタイル無し、表示形式をflexに、要素間の余白を30pxにしましょう */ nav ul { margin: 0; list-style: none; display: flex; gap: 30px; } nav a { color: #fff; } nav a:hover { background-color: #fff; color: #668E68; } h1 { color: #fff; font-size: 40px; font-weight: bold; padding: 20px; } .main-visual { background-image: url(./images/main-bg.png); background-size: cover; background-position: center; height: 600px; text-align: center; } h2 { color: #fff; font-size: 65px; font-weight: bold; padding-top: 264px; } h3 { font-size: 42px; font-weight: bold; margin-bottom: 11px; } h4 { font-size: 20px; margin-bottom: 44px; } p { font-size: 16px; line-height: 1.8; } .about { padding: 95px 0; text-align: center; color: #655046; } /* 背景色を#fffに。 */ .menu { padding: 85px 0 95px; text-align: center; color: #655046; } /*menu-wrapperを横幅1000px、中央揃え、外側下部余白58px、flexで中の要素を横並びに。 要素と要素の間の余白は均等にする*/ .menu-wrapper { width: 1000px; margin: 0 auto; justify-content: center; margin-bottom: 58px; display: flex; } /*menu-wrapperの中のテキストの上部外側余白を10pxに*/ .menu-wrapper p { margin-top: 10px; } ul { margin-bottom: 57px; } li { font-size: 16px; padding: 8px 0; } .button { text-decoration: none; color: #fff; background-color: #655046; padding: 20px; border-radius: 30px; transition: all .5s; } .button:hover { background-color: #668E68; } .news { margin: 95px 0; } .box { background-color: #fff; text-align: center; width: 600px; margin: 0 auto; padding: 50px; } .box h3, .box h4, .box li { color: #655046; } .news-list { text-align: left; margin: 0 50px; } .news-list span { font-size: 14px; color: #aaa; margin-right: 40px; } /* newsクラスのafter擬似要素でcontentを"New!!"、背景色は#f00、文字色を#fff、文字サイズを12pxに */ .new::after { content: "New!!"; background-color: #f00; color: fff; font-size: 12px; } footer { background-color: #668E68; color: #fff; font-size: 14px; padding: 25px 0; text-align: center; }