html {
  scroll-behavior: smooth;
}
*{
margin:0;
padding:0;
box-sizing:border-box;
}

body{
font-family:'Noto Sans JP', sans-serif;
line-height:1.6;
background:#f5f5f5;
color:#333;
}

/* ヘッダー */

header{
display:flex;
justify-content:space-between;
align-items:center;
padding:20px 40px;
background:white;
position:sticky;
top:0;
z-index:10;
box-shadow:0 2px 10px rgba(0,0,0,0.1);
}

.logo{
font-size:20px;
font-weight:bold;
}

nav a{
margin-left:20px;
text-decoration:none;
color:#333;
font-weight:500;
transition:0.3s;
}

nav a:hover{
color:#0077ff;
}

/* ヒーロー */

.hero{
height:100vh;
display:flex;
flex-direction:column;
justify-content:center;
align-items:center;
text-align:center;

background-image:url("images/hero.jpg");
background-size:cover;
background-position:center;

position:relative;
overflow:hidden;

animation:heroZoom 6s ease-out forwards;
}

.hero::before{
content:"";
position:absolute;
top:0;
left:0;
width:100%;
height:100%;
background:rgba(0,0,0,0.4);
}

/* ヒーローテキスト */

.hero h1{
font-size:56px;
color:white;
margin-bottom:20px;
position:relative;
z-index:2;

opacity:0;
animation:fadeIn 2s ease forwards;
animation-delay:1s;
}

.hero p{
font-size:22px;
color:white;
position:relative;
z-index:2;

opacity:0;
animation:fadeIn 2s ease forwards;
animation-delay:1.5s;
}

/* セクション */

section{
padding:100px 20px;
max-width:1100px;
margin:auto;
}

/* セクションタイトル */

h2{
text-align:center;
font-size:36px;
margin-bottom:20px;
}

/* About専用 */

.about-title{
font-size:36px;
text-align:center;
margin-bottom:5px;
}

.about-subtitle{
text-align:center;
color:#777;
font-size:14px;
letter-spacing:3px;
text-transform:uppercase;
margin-bottom:40px;
}

/* サービス */

.service-container{
display:flex;
gap:30px;
flex-wrap:wrap;
justify-content:center;
}

.card{
flex:1;
min-width:250px;
background:white;
padding:40px;
border-radius:10px;
text-align:center;

box-shadow:0 10px 25px rgba(0,0,0,0.1);
transition:0.3s;
}

.card img{
width:100%;
height:200px;
object-fit:cover;
border-radius:8px;
margin-bottom:20px;
}

.card:hover{
transform:translateY(-10px);
box-shadow:0 20px 40px rgba(0,0,0,0.15);
}

/* Works */

/* Worksセクション */

.section-subtitle{
  text-align:center;
  color:#777;
  margin-bottom:40px;
}

.works-grid{
  display:grid;
  grid-template-columns:repeat(3,1fr);
  gap:30px;
}

.work-item{
  background:white;
  border-radius:10px;
  overflow:hidden;
  box-shadow:0 10px 25px rgba(0,0,0,0.1);
  transition:0.3s;
}

.work-item img{
  width:100%;
  height:200px;
  object-fit:cover;
}

.work-item h3{
  font-size:18px;
  margin:15px;
}

.work-item p{
  font-size:14px;
  margin:0 15px 20px;
  color:#666;
}

.work-item:hover{
  transform:translateY(-10px);
  box-shadow:0 20px 40px rgba(0,0,0,0.15);
}

/* FAQセクション */

#faq{
  background:#ffffff; /* 白背景 */
  padding:100px 20px;
}

.faq-item{
  max-width:700px;
  margin:0 auto 30px;
  padding:20px;
  background:#f9f9f9;
  border-radius:8px;
  box-shadow:0 5px 15px rgba(0,0,0,0.05);
}

.faq-item .question{
  font-weight:600;
  margin-bottom:10px;
}

.faq-item .answer{
  color:#555;
  line-height:1.5;
}

/* 会社概要セクション */

#company{
  background:#ffffff; /* 白背景 */
  padding:100px 20px;
}

.company-table{
  max-width:700px;
  margin:0 auto;
  border-collapse:collapse;
  width:100%;
}

.company-table th,
.company-table td{
  padding:12px 15px;
  border-bottom:1px solid #ddd;
  text-align:left;
  vertical-align: top;
}

.company-table th{
  width:150px;
  background:#f5f5f5;
  font-weight:600;
}

.company-table td{
  color:#555;
}

/* 社長あいさつ */

#ceo{
  background:#f0f0f0; /* 薄グレーで背景を区別 */
  padding:100px 20px;
}

.ceo-container{
  display:flex;
  align-items:center;
  gap:40px;
  max-width:900px;
  margin:0 auto;
}

.ceo-photo img{
  width:250px;
  height:250px;
  object-fit:cover;
  border-radius:50%;
  border:3px solid #0077ff;
}

.ceo-message p{
  font-size:16px;
  line-height:1.8;
  color:#333;
}

/* スマホ対応 */
@media(max-width:768px){
  .ceo-container{
    flex-direction:column;
    text-align:center;
  }

  .ceo-photo img{
    width:180px;
    height:180px;
  }

  .ceo-message p{
    font-size:15px;
  }
}

/* Contactフォーム */

.contact-form{
  max-width:600px;
  margin:40px auto 0;
  display:flex;
  flex-direction:column;
  gap:15px;
}

.contact-form label{
  font-weight:500;
}

.contact-form input,
.contact-form textarea{
  padding:12px;
  border:1px solid #ccc;
  border-radius:5px;
  font-size:14px;
}

.contact-form button{
  padding:12px;
  background:#0077ff;
  color:white;
  font-size:16px;
  border:none;
  border-radius:5px;
  cursor:pointer;
  transition:0.3s;
}

.contact-form button:hover{
  background:#005fd1;
}

/* セクションの背景色交互 */

#about{
  background:#ffffff; /* 白 */
}

#service{
  background:#f0f0f0; /* 薄いグレー */
}

#works{
  background:#ffffff;
}

#contact{
  background:#f0f0f0;
}

footer{
  background:#222; /* 黒 */
  color:white;
}



/* ボタン */

button{
padding:12px 24px;
border:none;
background:#0077ff;
color:white;
font-size:16px;
border-radius:5px;
cursor:pointer;
transition:0.3s;
}

button:hover{
background:#005fd1;
}

/* フッター */

footer{
margin-top:80px;
background:#222;
color:white;
text-align:center;
padding:40px;
}

/* スクロールアニメーション */

.reveal{
opacity:0;
transform:translateY(40px);
transition:all 1s ease;
}

.reveal.active{
opacity:1;
transform:translateY(0);
}

/* アニメーション */

@keyframes heroZoom{

0%{
transform:scale(1.2);
}

100%{
transform:scale(1);
}

}

@keyframes fadeIn{

from{
opacity:0;
transform:translateY(20px);
}

to{
opacity:1;
transform:translateY(0);
}

}

/* スマホ */

@media(max-width:768px){

header{
flex-direction:column;
gap:10px;
}

nav a{
margin:0 10px;
}

.hero h1{
font-size:36px;
}

.hero p{
font-size:18px;
}

.service-container{
flex-direction:column;
}

.works-grid{
grid-template-columns:1fr;
}

}