/* 全体のリセット */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body, html {
    margin: 0;
    padding: 0;
    font-family: Verdana, Meiryo UI, sans-serif;
}

/* ヘッダー（最上部固定） */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 80px;
    background: #eea03b;
    color: white;
    display: flex;
    align-items: center;
    justify-content: space-between; /* 左右端に配置 */
    padding: 0 20px;
    z-index: 1000;
}

/* ヘッダーロゴ（左側に固定） */
.header .logo {
    flex: 1;
    text-align: left;
}

/* ナビゲーションメニュー（中央に配置） */
.header .menu {
    flex: 1;
    text-align: center;
    display: flex;
    justify-content: space-between; 
}

.header .menu a {
    margin: 30px 0px;
    padding: 0 10px; /* 左右に20pxの余白を追加 */
    min-width: 150px;
    text-decoration:   none; 
    color: black;
    font-size: clamp(14px, 1.5vw, 16px);
    font-weight: bold;
    transition: color 0.3s;
}

.header .menu a:hover {
    color: #ff6600;
}

/* ヘッダーテキスト（右側に固定） */
.header .header-text {
    flex: 1;
    text-align: right;
    margin-right: 20px;
    font-size: 14px;
    color: #000000;
}

/* モバイル対応（画面幅が768px以下のときメニューを縦に） */
@media (max-width: 768px) {
    .header {
        flex-direction: column;
        height: auto;
        padding: 10px;
    }

    .header .menu {
        flex-direction: column;
        gap: 10px;
        align-items: center;
    }
}
/* パララックスセクション */
.parallax {
    width: 100%;
    height: 70vh; /* 高さを画面全体に */
    background-image: url("img_service/bgservice.png"); /* 画像パス確認 */
    background-position: center;
    background-size: cover;
    background-attachment: scroll; /* モバイルではスクロール */
    display: flex;
    align-items: leftr;
    justify-content: left;
    position: relative; /* 追加 */
    z-index: 1; /* 他の要素に隠れないように */
}

@media (min-width: 1024px) {
    .parallax {
        background-attachment: fixed; /* デスクトップでは固定 */
    }
}

.parallax h1 {
    position: absolute;
    top: 50%;
    left: 30%;
    transform: translate(-50%, -50%);
    color: white;
    font-size: clamp(20px, 5vw, 50px);
    text-shadow: 2px 2px 5px rgba(0, 0, 0, 0.5);
    text-align: left; /* 左配置 */
    white-space: nowrap;
}



/* メインコンテンツ */
.content {
    position: relative;
    width: 65%;
    margin: 10px;
    margin-bottom: 0%;
    margin-right: 0%;
    margin-left: 5%;
    padding: 10px;
    background: #ffffff;
    text-align: left;
    display: block;
    img-align:light;
    min-height: auto;
    justify-content: space-between;
    font-size: clamp(16px, 2vw, 24px);
}

/* テキストサイズ */
    .txt1 { 
     font-size: 1vw; 
}
    .txt2 { 
     font-size: 3min;
     line-height: 1.5; 
}
    .txt3 { 
     font-size: 2vw; 
     line-height: 2; 
}
    .txt4 { 
     font-size: 2vw; 
     line-height: 1; text-shadow: 1px 1px 2px black; 
}
    .txt5 { 
     font-size: 4vmax; 
}
    .txt6 { 
     font-size: 0.6vw; 
     line-height: 2; 
}
    .txt7 { 
     font-size: 1.8vw; 
     color: #0000ff;
     line-height: 1.2; text-shadow: 1px 1px 2px black; 
}
    .txt8 { 
     font-size: 2em; 
     line-height: 0.8; 
}
    .txt9 { 
     font-size: 1.5vw; 
     line-height: 2; 
}
    .txt10 { 
     font-size: 1.5vw; 
     color: #0000ff;
     line-height: 1.2; text-shadow: 1px 1px 2px black; 
}
    .txt11 { 
     font-size: 1.5vw; 
     color: #ff0000;
     line-height: 1.3; text-shadow: 1px 1px 2px black; 
}
    .txt12 { 
     font-size: 1.5vw; 
     color: #233B6C;
     line-height: 1.5; 
}
    .txt13 { 
     font-size: 1.6vw; 
     color: #233B6C;
     line-height: 1.3; text-shadow: 1px 1px 2px black; 
}



.img1 {
  width: 35%;
  float: right;
  margin-left: 20px; /* 画像とテキストの間に余白を設定 */
}

.img2 {
  width: 35%;
  float: left;
  margin-right: 20px; /* 画像とテキストの間に余白を設定 */
}
.img3 {
  width: 30%;
  float: right;
  margin-left: 20px; /* 画像とテキストの間に余白を設定 */
}
.img4 {
  width: 60%;
  float: left;
  margin-right: 20px; /* 画像とテキストの間に余白を設定 */
}
.img5 {
  width: 40%;
  float: left;
  margin-right: 20px; /* 画像とテキストの間に余白を設定 */
}
.img6 {
  width: 40%;
  float: right;
  margin-left: 20px; /* 画像とテキストの間に余白を設定 */
}
.img7 {
  width: 20%;
  float: right;
  margin-left: 20px; /* 画像とテキストの間に余白を設定 */
}

.container {
    display: flex;
    background-color: #ffffff;margin: 25px;
    justify-content: flex-start; /* 左揃え */
    gap: 3px; /* 間隔を小さく */
    max-width: 100%;
    width: 100%;
    margin: 10px 0;
    padding: 10px;
    flex-wrap: wrap;
    font-size: clamp(16px, 1.6vw, 30px);
}

.container2 {
    display: flex;
  align-items: center;
  gap: 20px; /* テキストと画像の間の余白 */
    background-color: #ffffff;
    justify-content: flex-start; /* 左揃え */
    max-width: 100%;
    width: 100%;
    margin: 10px 0;
    margin-top: 2%;
    padding: 10px;
    flex-wrap: wrap;
    font-size: clamp(16px, 1.6vw, 30px);
    z-index: 1;
}

.content4 {
    width: 100%;
    margin left: 0;
    margin right: 0;
    padding: 20px;
    padding-left:0%;
    background-color: #ffffff;
    text-align: left;
    display: block; 
    justify-content: space-around;
    white-space: nowrap;
    min-height: auto;
    font-size: clamp(16px, 1.8vw, 30px);
}

a {
  text-decoration: none;
}

.box4 {
width:180px;
display: flex;
gap: 0; /* テキストと画像の間の余白 */
height: auto;
margin-right: 2px;
box-align: left;
border: solid 1px #ffffff;
background-color: #ffffff;
background-size: contain;
background-position: bottom;
background-repeat: no-repeat;
padding:0px;
position: relative;
hover-color: #ff6600;
z-index: 1;
}

/* 右下固定画像 */
.fixed-image {
    position: fixed;
    bottom: 0;  /* 画面下からの距離 */
    right: 0;   /* 画面右からの距離 */
    width: 30%;  /* 画像の幅（適宜調整） */
    height: auto;  /* 高さを自動調整 */
    z-index: -1; /* 他の要素の上に表示 */
}



.footer {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background: #0097db;
    color: white;
    font-size: 0.7em;
    text-align: center;
    padding: 10px 0;
    display: flex;
    align-items: flex-start;
    justify-content: flex-end;
    z-index: 9999; /* フッターが隠れないように */
}

.footer p {
    width: 100%;
    text-align: right;
    margin-right: 2%;
}

body {
    margin-bottom: 60px; /* フッターの高さを確保 */
}
