body, html {
    margin: auto;
    padding: 0;
    width: 100%;
    height: auto;
    max-width: 1280px;
}
html{
    background-color: #eee; /* 周囲の背景色 */
    z-index: -10;
}
body{
    background-color: #fff;
}

:target::before {
    content: "";
    display: block;
    height: 70px; /* Height of the header */
    margin-top: -70px; /* Negative height of the header */
}

.header {
    display: flex;
    justify-content: space-between;
    align-items: center; /* 追加: アイテムを垂直方向に中央揃え */
    position: fixed;
    z-index: 100;
    padding: 0 30px; /* 両端に30pxのパディング */
    background-color: #fff; /* ここはお好みで色を設定してください */
    width: 100%;
    box-sizing: border-box; /* 追加: パディングを幅に含める */
    height:70px;
    max-width: 1280px;
}

.header img {
    width: 150px;
    padding: 20px 20px 20px 0; /* 左パディングを0に */
}

.header nav {
    position: relative; /* 位置指定を相対的に */
    flex-grow: 1; /* nav要素が利用可能なスペースを埋めるように */
    text-align: center; /* ナビゲーションアイテムを右寄せに */
}

.header nav ul {
    list-style: none;
    display: flex;
    justify-content: flex-end;
    margin: 0;
    padding: 0;
}

.header nav li {
    margin-left: 20px; /* 各メニューアイテムの間隔を設定 */
    padding: 10px 0; /* タッチターゲットの拡大 */
    display: block;
}

.header nav li:first-child {
    margin-left: 0; /* 最初のメニューアイテムの左マージンを0に設定 */
}


.header nav a {
    position: relative;
    color: #333;
    overflow: hidden;
    text-decoration:none;
}

.header nav a::after {
    content: '';
    position: absolute;
    left: 0;
    right: 100%;
    bottom: 0;
    background: #add8e6; /* ライトブルー */
    height: 2px;
    transition: right 0.3s ease-out;
}

.header nav a:hover::after, .header nav a:focus::after {
    right: 0;
}


.menu-toggle {
    display: none;
    flex-direction: column;
    cursor: pointer;
}

.bar {
    height: 2px;
    width: 25px;
    background-color: #333;
    margin: 3px 0;
    transition: 0.4s;
}

@media screen and (max-width: 850px) {
    .header {
        padding: 0 30px; /* 両端のパディングを維持し、全体のバランスを取る */
        justify-content: flex-start; /* ロゴとメニューを画面の両端に固定 */
    }

    .menu-toggle {
        display: flex;
        position: absolute; /* 絶対位置指定 */
        right: 30px; /* 右端から30pxの位置に固定 */
        top: 20px; /* ヘッダー内の上から20pxの位置に固定 */
        z-index: 1001; /* メニューが他の要素よりも前面に */
    }

    .header img {
        padding: 20px 0 20px 0px; /* 上下のパディングを調整し、左のパディングを保持 */
    }

    .nav-list {
        display: none;
        width: 50%; /* ナビゲーションリストの幅 */
        position: fixed; /* 固定位置 */
        top: 70px; /* ヘッダーの高さ分下に配置 */
        right: 0; /* 右端に固定 */
        background-color: #fff;
        box-shadow: 0 8px 16px rgba(0,0,0,0.1);
        z-index: 999;
    }

    .nav-list.active {
        display: block; /* アクティブ時に表示 */
        width:auto;
        padding:0 20px;
    }

    .header nav ul {
        flex-direction: column;
        align-items: center;
    }

    .header nav li {
        width: 100%; /* 各メニューアイテムがフル幅を取るよう設定 */
        text-align: center;
    }
}


main{
    padding-top: 70px;
}

.hero {
    position: relative;
    display: flex;
  }
  
  .hero-text-area {
    position: relative;
    z-index: 1; /* 疑似要素を下に置く */
    width: 50%;
    padding: 0 0 0 5%;
    box-sizing: border-box;
  }
  
  .hero-text-area::before {
    content: "";
    position: absolute;
    top: -50px; /* 上端を50pxだけ伸ばす */
    right: -50px; /* 右端を50pxだけ伸ばす */
    bottom: 0;
    left: 0;
    background: inherit; /* 親要素の背景を引き継ぐ */
    z-index: -1; /* コンテンツの下に配置する */
  }
  
  .hero::after {
    content: "";
    background: url('./images/header-image.webp') no-repeat center center;
    background-size: cover;
    width: 50%;
    height: 100%;
    position: absolute;
    right: 0;
    top: 0;
    z-index: 0; /* `.hero-text-area`の背景より下に置く */
    clip-path: polygon(20% 0, 100% 0, 100% 100%, 0% 100%);
  }
 

  .hero h1 {
    padding:70px 0 30px 10px;
    font-size: 38px; /* フォントサイズを必要に応じて調整してください */
    font-weight: bold;
  }


  @media (max-width:1050px) {
    .hero-h1-br{
        display:none;
    }  
  }

  @media (max-width: 758px) {
    .hero {
        flex-direction: column; /* スタックされたレイアウトに変更 */
    }

    .hero-text-area {
        width: 100%; /* 幅を100%に設定 */
        padding: 50px 5%; /* パディングを調整 */
    }
    
    .hero::after {
        width:100%;
        height: 100%;
        clip-path: none;
        background: url('./images/pianostyle_smallheroimage.png') no-repeat center center;
    }
    
    .hero-h1-br{
        display:block;
    }  

    .hero h1{
        padding:30px 0 30px 10px;
        text-align: center;
    }
    .hero-text-area{
        margin: auto;
    }
    .hero-button-area{
        text-align: center;
    }
}  
  .hero p {
    padding:0 0 60px 0;
    font-size: 18px; /* フォントサイズを必要に応じて調整してください */
    margin:auto;
  }
  
  
  .hero-button-area{
    padding:30px;
  }


  button {
    background-color: #00AEEF; /* ボタンの色を必要に応じて調整してください */
    color: white;
    border: none;
    padding: 15px 30px;
    font-size: 18px; /* フォントサイズを必要に応じて調整してください */
    cursor: pointer;
    transition: background-color 0.3s ease;
    border-radius:18px;
  }
  
  button:hover {
    background-color: #008CBD; /* ホバー時のボタンの色を必要に応じて調整してください */
  }
  


@media (max-width:530px) {
    .hero-h1-br{
        display:none;
    }  
  }
  
@media (max-width:400px) {
    .hero-button-area{
        padding:10px;
    }
    .hero p {
        padding:0 0 20px 0;
      }
}





  .border{
    padding:20px 0px;
    margin: auto;
    text-align: center;
  }
  .border img{
    width: 100%;
    height: auto;
  }



  .cleaning-painting{
    width:90%;
    margin:auto;
  }

  .cleaning-painting h2{
    font-size: 1.6em;
    text-align: center;
  }

  .cleaning-painting-container{
    display:flex;
    padding-bottom: 30px;
  }

  .cleaning-painting-img{
    padding:20px;
    width:50%;
  }

  .cleaning-painting-img img{
    width: 100%;
    height: auto;
  }

.cleaning-painting-textarea{
    width: 50%;
}

.piano-maintenance {
    display: flex;
    align-items: center;
    justify-content: start;
    gap: 10px; /* 画像とテキストの間隔 */
    padding: 10px;
    border: none;
    background-color: #fff4c5;
    font-size: 16px;
    width: 100%; /* ボタンの幅を親要素に合わせる */
    overflow: hidden; /* 内容がオーバーフローしたら隠す */
    color: #333;
    text-decoration: none;
}

.piano-maintenance:hover{
    background-color: #ffea8a;
}

.piano-maintenance img {
    width: 50%; /* ロゴのサイズをボタンの50%に設定 */
    height: auto;
}


.piano-maintenance .text {
    white-space: normal; /* テキストが自動で改行されるように設定 */
    flex-grow: 1; /* 可能な限りのスペースをテキストに使わせる */
    margin-right: 10px; /* 矢印との間隔 */
}

.piano-maintenance .arrow {
    flex-shrink: 0; /* 矢印のサイズを固定 */
}

@media (max-width: 758px) {
    .cleaning-painting-container{
        flex-direction: column;
    }
    .cleaning-painting-img{
        padding:20px;
        width:90%;
        margin:auto;
      }
      .cleaning-painting-textarea{
        width: 90%;
        margin:auto;
    }
}


.chopin{
    width:90%;
    margin:auto;
}

.chopin h2{
    font-size: 1.6em;
    text-align: center;
  }

  .chopin-container{
    display:flex;
  }

  .chopin-image{
    padding:10px 40px;
    width:50%;
  }

  .chopin-image img{
    width: 100%;
    height: auto;
  }

.chopin-textarea{
    width: 50%;
}


@media (max-width: 758px) {
    .chopin-container{
    flex-direction: column;
    }
    .chopin-image{
        padding:10px;
        width:90%;
        margin:auto;
      }
      .chopin-textarea{
        width: 90%;
        margin:auto;
    }
    .chopin-textarea button{
        text-align: center;
    }
}


.pianostyle-image{
    margin:auto;
    width:90%;
}


.pianostyle-image img{
    width:100%;
    height:auto;
}

.customize-piano{
    width:90%;
    margin:auto;
    background:url('./images/pianostyle_background.png');
    background-size: cover; 
}

.customize-piano h2{
    font-size: 1.6em;
    text-align: center;
}

.customize-piano-textarea{
    padding:30px 5% 0 5%;
    text-align: center;
}





.piano-customize h3{
    text-align: center;
    font-size: 1.3em;
    margin-top: 30px;
    color: #5C6BC0; /* タイトルの色 */
}

.piano-customize-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-around;
    background-color: #f0f0f0; /* 柔らかみのある背景色 */
}

.piano-customize-container > div {
    flex-basis: 100%; /* モバイル表示ではフル幅 */
    box-shadow: 0 4px 6px rgba(0,0,0,0.1); /* ソフトな影で立体感を演出 */
    margin: 10px;
    padding: 20px;
    border-radius: 10px; /* 角を丸めて柔らかい印象に */
}

@media (min-width: 801px) {
    .piano-customize-container > div {
        flex-basis: calc(30% - 30px); /* 3つ並べるための幅を計算 */
    }
}

.piano-customize-container ul, .piano-customize-container li {
    list-style-type: none; /* リストマーカーを非表示に */
    padding-left: 10px;
}

.piano-customize-container li {
    padding: 5px 0; /* アイテム間の間隔 */
    font-family: 'Arial', sans-serif; /* 読みやすいフォント */
    color: #333; /* 柔らかみのある文字色 */
}

/* ネストされたリストのスタイル */
.piano-customize-container ul ul {
    padding-left: 20px; /* サブリストをインデント */
    border-left: 2px solid #eee; /* サブリストの区切りとして線を入れる */
}

.piano-customize-inner {
    background-color: #e9f2f7; /* 内部パーツの背景色を薄い青に */
    max-width:270px
}

.piano-customize-outside {
    background-color: #fbeef2; /* 外装オプションの背景色を薄いピンクに */
    max-width:270px
}

.piano-customize-option {
    background-color: #f5fff5; /* その他オプションの背景色を薄い緑に */
    max-width:270px
}

.customize-title{
    font-weight: bold;
}

@media (max-width: 1000px) {
    .piano-customize-container {
        flex-direction: column;
    }

    .piano-customize-inner, .piano-customize-outside, .piano-customize-option {
        max-width: 100%; /* Each section takes full width of the container on small screens */
    }
}

@media (min-width: 701px) and (max-width: 999px) {
    .piano-customize-container {
        padding: 0 80px;  /* Adds padding on the left for medium screens */
    }
}

@media (max-width: 700px) {
    .piano-customize-inner, .piano-customize-outside, .piano-customize-option {
        max-width:450px;
    }
    .piano-customize-container {
        margin:auto;
        flex-direction: row;
}
}

.company-info{
    padding-bottom:40px;
}

.company-info h2{
    font-size: 1.6em;
    text-align: center;
}

.company-info table {
    width: 80%;
    margin: 20px auto;
    border-collapse: collapse;
    background-color: #fff;
}

.company-info th, .company-info td {
    border: 1px solid #ddd;
    padding: 12px 15px;
    text-align: left;
}

.company-info th {
    background-color: #f8f8f8;
    font-weight: bold;
    min-width: 100px;
}

.company-info tr:nth-child(odd) {
    background-color: #f0f0f0;
}


.thanks{
    text-align: center;
    padding: 30px auto 50px auto;
}

.backtotop{
    padding:50px;
}

.backtotop a {
    background-color: #333;
    border-radius: 50px;
    color: #fff;
    padding: 15px 60px;
    text-decoration: none;
  }



footer {
    height:70px;
    text-align: center;
    padding: 20px;
    background-color: #333;
    color: #fff;
    margin:auto;
}


