html, body {
    overflow-x: hidden;
      background-color: #f4c21d !important;
}





/* ---- ヘッダー ---- */
header {
    background-color: #000000;
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 20px;
    position: fixed;
     left: 0;        /* ← 追加 */
    width: 100%;
    top: 0;
    z-index: 1000;

      box-sizing: border-box;
}

/* ---- ロゴ ---- */
.header-logo {
    font-size: 26px;
    font-weight: bold;
    margin: 0;
    color: #f4c21d;
    
}

body {
    margin: 0;
    padding: 0;

     padding-top: 60px;  /* ← これ追加！ ヘッダーと被らない */

         font-family: "Hiragino Mincho ProN", "Hiragino Mincho Pro",
                 "Yu Mincho", "YuMincho",
                 "MS PMincho", "MS Mincho",
                 serif;


}


/* ---- PCのナビ ---- */
.nav-menu {
    display: flex;
    gap: 30px;
}

.nav-menu a {
    color: white;
    text-decoration: none;
    font-size: 18px;
}

.nav-menu a:hover {
    opacity: 0.6;
}


/* ---- ページタイトル ---- */
.page-title {
    font-size: 32px;
    font-weight: bold;
    text-align: left;
   margin: 20px 0 20px;
    padding-left: 20px; /* ← ヘッダーと同じ余白に合わせるため推奨 */
}

/*ーーーーコンタクトーーーー*/



/* SNS全体の横並びエリア */
.sns-links {
    display: flex;
    justify-content: center;
    gap: 30px;
    padding: 20px;

     max-width: 100%;
    box-sizing: border-box;
}

/* SNSリンク（アイコン＋名前のセット） */
.sns-link {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-decoration: none;
    color: rgb(255, 255, 255);
    font-size: 14px;
}

/* アイコンの下の文字 */
.sns-link span {
    margin-top: 6px;
}

/* ===== 問い合わせページのカード ===== */
.contact-card {
    background: #000000;
    padding: 20px 25px;
    margin: 20px auto;
    width: 90%;
    max-width: 900px;
    border-radius: 16px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    box-sizing: border-box;
}

/* 代表者情報のテキスト */
.contact-card h2 {
    color: #ffffff;
    font-size: 24px;
    margin-bottom: 10px;
}

.contact-card,
.sns-card {
    width: 90%;
    max-width: 900px;
    margin: 20px auto;
    box-sizing: border-box;
}




.contact-card h3,
.contact-card h4 {
    color: #ffffff;
    margin: 6px 0;
}

/* 住所リンク */
.contact-card a {
    color: #ffffff;
    text-decoration: underline;
}

/* ===== Googleマップをレスポンシブに ===== */
.map-container {
    width: 100%;
    aspect-ratio: 16 / 9;
    border-radius: 12px;
    overflow: hidden;
    margin-top: 15px;
}

.map-container iframe {
    width: 100%;
    height: 100%;
    border: 0;
}

/* ===== SNSカード ===== */
.sns-card {
    background: #000000;
    padding: 20px;
    width: 90%;
    max-width: 900px;
    margin: 20px auto;
    border-radius: 16px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

/* 丸背景アイコン */


.sns-link:hover {
    transform: scale(1.08);
}

/* SNSアイコン丸背景 */
.sns-icon {
    width: 60px;
    height: auto;
    padding: 12px;
    border-radius: 0;
    background: none;
    box-shadow: 0 2px 6px rgba(0,0,0,0.15);
    object-fit: contain;
}


/*施工場所*/

/* ===== PCで施工場所カードを横並びにする ===== */
.place-wrapper {
    display: flex;
    gap: 20px;
    justify-content: center;

     margin-top: 10px;
}

/* ===== 施工場所ページの黒カード ===== */
.place-card {
    background: #000000;
    color: #ffffff;
    padding: 20px 25px;
    margin: 20px auto;
    width: 90%;
    max-width: 900px;
    border-radius: 16px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    box-sizing: border-box;
}

.place-card h2 {
    font-size: 22px;
    margin-bottom: 10px;
    color: #ffffff;
}

.place-card a {
    color: #ffffff;
    text-decoration: underline;
    display: inline-block;
    margin-bottom: 10px;
}

/* Googleマップを黒カード内でレスポンシブに */
.place-card .map-container {
    width: 100%;
    aspect-ratio: 16 / 9;
    border-radius: 12px;
    overflow: hidden;
    margin-top: 10px;
}

.place-card .map-container iframe {
    width: 100%;
    height: 100%;
    border: 0;
}

/* ===== 写真 + 地図 ===== */
.place-media {
    display: flex;
    flex-direction: column; /* スマホは縦並び */
    gap: 15px;
    margin-top: 15px;
}

/* 写真の共通設定 */
.place-photo img {
    width: 100%;
    height: auto;
    border-radius: 12px;
    object-fit: cover;
}



/* --- PC（幅 768px 以上） --- 施工場所カードに余白を持たせる（左右）*/
@media (min-width: 768px) {
  .place-wrapper {
    display: flex;
    justify-content: center;   /* 中央寄せ */
    gap: 20px;                 /* カード同士の間隔 */
    padding: 40px 20px;        /* 外側の余白（左右の黄背景を見せる） */
  }

  .place-card {
    background: rgb(0, 0, 0); 
    padding: 20px;
    border-radius: 15px;
    width: 60%;                /* 横に2つ並ぶ幅 */
    max-width: 550px;          /* カードが大きくなりすぎないよう調整 */
    box-shadow: 0 0 10px rgba(0,0,0,0.1);
  }
}





/*ーーーーースマホーーーーー*/

/* ---- ハンバーガーメニュー（スマホで表示） ---- */
.hamburger {
    display: none;  /* PCでは非表示 */
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
   
}

.hamburger span {
    width: 25px;
    height: 3px;
    background-color: white;
    display: block;
}


/* ===== スプラッシュ画面 ===== */
#splash {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background: #000;              /* 黒背景 */
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;                /* 最前面 */
    opacity: 1;
    transition: opacity 1.2s ease;
}

#splash.fade-out {
    opacity: 0;
    pointer-events: none;
}

#splash img {
     width: 70vw;       /* 画面幅の70% → 大きくする */
  max-width: 500px;  /* PCでの最大サイズアップ */
  min-width: 180px;  /* スマホでも少し大きめ */
  height: auto;
}

/* --- ページロード時のロゴ演出（レスポンシブ対応） --- */
#splash-logo {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  
  width: 40vw;        /* 画面幅の40%にする（可変） */
  max-width: 300px;   /* PCで大きくなりすぎないよう上限 */
  min-width: 120px;   /* スマホで小さすぎないよう下限 */

  opacity: 1;
  animation: fadeOut 2s ease 1.5s forwards;
  z-index: 9999;
}

#splash-bg {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: #000;
  z-index: 9998;
  animation: fadeOut 2s ease 2s forwards;
}

@keyframes fadeOut {
  to {
    opacity: 0;
    visibility: hidden;
  }
}

/* ===== スプラッシュ画終わりり ===== */


/* ---- スマホ表示用 ---- */
@media (max-width: 768px) {

    /* 左右配置 */
    .nav-menu {

        /* 最初は隠す */
        display: none;
        position: absolute;
        top: 60px;
        left: 0;
        width: 100%;
        background-color: #111;
        flex-direction: column;
        gap: 0;


        max-height: 100vh;   /* 画面の高さに合わせる */
        overflow-y: auto;    /* はみ出したらスクロール */

         z-index: 2000;
    }

    .nav-menu a {
        padding: 15px;
        border-bottom: 1px solid #333;
        font-size: 18px;
    }
    /*ページタイトル*/
    .page-title {
        font-size: 24px;
        padding-left: 15px;
    }

    /*アイコン*/
.sns-icon {
    width: 40px;
    height: auto;
}

    

    /* ハンバーガーを表示 */
    .hamburger {
        display: flex;
    }

    /* メニュー展開用クラス */
    .nav-menu.show {
        display: flex;
    }


    /*contact*/


  /* ----- 代表表記の一行固定 ----- */
.daihyou-name {
    white-space: nowrap;
    overflow: hidden;        /* ← ここ超重要！ */
    text-overflow: clip;      /* ← “…” をやめる */
}

/* ローマ字だけフォントサイズを調整（例：14px） */
.daihyou-name .roman {
    font-size: clamp(8px, 3.5vw, 15px);     /* ← 好きなサイズに調整できる */
    white-space: nowrap;      /* ← 折り返し防止 */

    margin: right 6px; 
    margin: left 10px; 
}

.adress {
   
      width: 100%;
    white-space: nowrap;
    overflow: hidden;       /* はみ出し防止 */
    text-overflow: ellipsis;
}


    .adress a {

  display: inline-block;
    white-space: nowrap;

    /* 画面幅に合わせて縮むフォント */
    font-size: clamp(8px, 3.5vw, 15px);
}

/*ロゴ*/
  #splash img {
    width: 80vw;     /* 画面幅の80% */
    max-width: 400px;
  }

/*施工場所*/

    .place-wrapper {
        flex-direction: column; /* スマホは縦並び */
    }

 

 .map-container {
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 10px;
  }

  .map-container img,
  .map-container iframe {
    width: 100%;       /* ← 同じ幅にそろえる */
    height: auto;
    border-radius: 10px;
  }

  /* Google Map の iframe は高さ固定が必要 */
  .map-container iframe {
    height: 300px;     /* ← 必要なら調整OK */
  }
    


}
