diff --git a/style.css b/style.css new file mode 100644 index 0000000..cbdebea --- /dev/null +++ b/style.css @@ -0,0 +1,139 @@ +/* 全体の基本設定 */ +* { + margin: 0; + padding: 0; + box-sizing: border-box; +} + +body { + font-family: "Helvetica Neue", Arial, "Hiragino Kaku Gothic ProN", "Hiragino Sans", Meiryo, sans-serif; + background-color: #111111; /* ダークグレーの背景 */ + color: #ece8e1; /* オフホワイトの文字色 */ + line-height: 1.6; +} + +/* 共通の見出しスタイル */ +h2 { + text-align: center; + font-size: 2.5rem; + color: #ff4655; /* ヴァロラントレッド */ + margin-bottom: 2rem; + letter-spacing: 2px; +} + +/* ① ヒーローセクション */ +.hero { + height: 100vh; /* 画面いっぱいの高さ */ + display: flex; + justify-content: center; + align-items: center; + text-align: center; + /* 背景画像を暗くするためのグラデーション */ + background: linear-gradient(rgba(17, 17, 17, 0.7), rgba(17, 17, 17, 0.9)), url('hero-bg.jpg') center/cover; + border-bottom: 5px solid #ff4655; +} + +.hero h1 { + font-size: 5rem; + letter-spacing: 5px; + margin-bottom: 10px; + text-shadow: 2px 2px 10px rgba(255, 70, 85, 0.5); /* ネオン風の影 */ +} + +.hero .subtitle { + font-size: 1.5rem; + font-weight: bold; + color: #ff4655; + margin-bottom: 20px; +} + +/* ② ABOUTセクション (Flexboxの練習) */ +.about { + padding: 80px 20px; + background-color: #1f1f1f; +} + +.features { + display: flex; /* 横並びにする */ + justify-content: center; + gap: 30px; + max-width: 1000px; + margin: 0 auto; +} + +.feature-box { + background-color: #111111; + padding: 30px; + border-top: 3px solid #ff4655; + flex: 1; /* 幅を均等にする */ +} + +.feature-box h3 { + margin-bottom: 15px; + font-size: 1.5rem; +} + +/* ③ AGENTSセクション (CSS Gridの練習) */ +.agents { + padding: 80px 20px; +} + +.agent-grid { + display: grid; /* グリッドレイアウト */ + grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); /* 画面幅に合わせて自動調整 */ + gap: 20px; + max-width: 1000px; + margin: 0 auto; +} + +.agent-card { + background-color: #2a2a2a; + height: 300px; + display: flex; + flex-direction: column; + justify-content: flex-end; + padding: 20px; + transition: transform 0.3s ease, background-color 0.3s ease; /* アニメーションの設定 */ + border: 1px solid #333; +} + +/* ホバー時の動き(マウスを乗せた時) */ +.agent-card:hover { + transform: translateY(-10px); /* 上に少し浮く */ + background-color: #ff4655; + cursor: pointer; +} + +/* ④ CTAセクション (ボタンデザイン) */ +.cta { + padding: 100px 20px; + text-align: center; + background-color: #1f1f1f; +} + +.btn { + display: inline-block; + background-color: #ff4655; + color: #fff; + padding: 15px 40px; + font-size: 1.2rem; + font-weight: bold; + text-decoration: none; + text-transform: uppercase; + border: 2px solid #ff4655; + transition: all 0.3s ease; +} + +.btn:hover { + background-color: transparent; + color: #ff4655; +} + +/* フッター */ +footer { + text-align: center; + padding: 20px; + background-color: #000; + font-size: 0.8rem; + color: #666; +}