* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Arial', sans-serif;
    font-size: 15px;
    line-height: 2; /* 行間を広げる */
    letter-spacing: 0.11em; /* 文字間隔を少し広めに設定 */
    background-image: url('image/house3.jpg'); /* 画像のURLを指定 */
    background-size: cover; /* 背景画像を全体に表示 */
    background-position: center;
    background-attachment: fixed; /* 背景画像を固定 */
    padding-top: 98px; /* ヘッダーの高さに合わせて余白を追加 */
}

a {
    color: #F3A411; /* リンクの色を変更 */
    text-decoration: none; /* アンダーラインを削除 */
}

a:hover {
    color: #FFA600; /* ホバー時の色を変更 */
    text-decoration: none; /* ホバー時もアンダーラインを削除 */
}

header {
    display: flex;
    margin-left: auto; /* 通常メニューの横に表示 */
    align-items: center;
    padding: 10px 5px;
    background-color: #ffffff;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 98px;
    z-index: 1000; /* 他の要素の上に表示 */
    background-color: white; /* 背景色を指定 */
}



.logo {
    height: auto;
    margin-top: 5px;
}


nav ul {
    list-style: none;
    display: flex;
    justify-content: flex-end;
    width: 100%;
    margin-left: 113%
}

nav ul li {
    margin: 0 10px;
}

nav ul li a {
    text-decoration: none;
    color: #333;
    font-size: 18px;
}

.button-border{
    border: 1px solid #fff;
    padding: 8px 20px;
    position: relative;
    display: inline-block;
    text-decoration: none;
    background-color:#fff;
    text-align: center;
  }
  
  /* Effect1
   *************************************** */
  /* 擬似要素の共通スタイル */
  .button-border::after,
  .button-border::before,
  .button-border span::after,
  .button-border span::before {
    background-color: #F3A411;
    content: '';
    display: block;
    position: absolute;
    z-index: 10;
    transition: all .3s ease;
    -webkit-transition: all .3s ease;
  }
  /* 左上へ配置 */
  .button-border::after {
      width: 0px;
      height: 1px;
      top: -1px;
      left: -1px;
  }
  /* 右下へ配置 */
  .button-border::before {
      width: 0px;
      height: 1px;
      right: -1px;
      bottom: -1px;
  }
  /* 左下へ配置 */
  .button-border span::after {
      width: 1px;
      height: 0px;
      left: -1px;
      bottom: -1px;
  }
  /* 右上へ配置 */
  .button-border span::before {
      width: 1px;
      height: 0px;
      top: -1px;
      right: -1px;
  }
  
  /* hover */
  .button-border:hover::after,
  .button-border:hover::before {
    width: 100%;
    width: calc(100% + 1px);
  }
  
  .button-border:hover span::after,
  .button-border:hover span::before {
    height: 100%;
    height: calc(100% + 1px);
  }
  
  .menu-text {
    font-size: 14px; /* 2行目の文字の大きさ */
    display: block;
    text-align: center;
    color: #F3A411;
}

.menu-text2 {
    color: #333;
    font-size: 14px;
    display: block;
    text-align: center;
}
    
 

  

.family-section {
    position: relative;
    width: 100%;
}


.image-container {
    position: relative;
    width: 100%;
    height: auto;
}

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

.slogan {
    position: absolute;
    top: 50%;
    left: 1%; /* スローガンを画像の中央左に配置 */
    transform: translateY(-50%);
    color: #333;
    font-size: 50px;
    font-weight: bold;
    animation: fadeIn 2s ease-in-out; /* 2秒かけてフェードイン */
}

main {
    text-align: center;
    padding-bottom: 80px; /* ページ全体の下に余白を追加 */
}

.brand-concept {
    max-width: 70%;  /* 横幅を画面の8割に設定 */
    margin: 0 auto 60px;  /* 上下の余白、セクション間のスペースを40pxに設定 */
    padding: 100px;
    text-align: center;
    animation: fadeIn 2s ease-in-out; /* 2秒かけてフェードイン */
    margin-top: 70px;
    background-color: #FFFEF9;
    border-radius: 10px;
}

.company-info {
    max-width: 70%;  /* 横幅を画面の8割に設定 */
    margin: 0 auto 60px;  /* 上下の余白、セクション間のスペースを40pxに設定 */
    padding: 20px;
    text-align: left;
    animation: fadeIn 2s ease-in-out; /* 2秒かけてフェードイン */
    margin-top: 70px;
    background-color: rgba(255, 255, 255, 0.9) !important; 
    border-radius: 10px;
}

.access-info {
    max-width: 70%;  /* 横幅を画面の8割に設定 */
    margin: 0 auto 60px;  /* 上下の余白、セクション間のスペースを40pxに設定 */
    padding: 20px;
    text-align: left;
    animation: fadeIn 2s ease-in-out; /* 2秒かけてフェードイン */
    margin-top: 70px;
    background-color: rgba(255, 255, 255, 0.9) !important; 
    border-radius: 10px;
}

.contact-form {
    max-width: 70%;  /* 横幅を画面の8割に設定 */
    margin: 0 auto 60px;  /* 上下の余白、セクション間のスペースを40pxに設定 */
    padding: 20px;
    text-align: left;
    animation: fadeIn 2s ease-in-out; /* 2秒かけてフェードイン */
    margin-top: 70px;
    background-color: rgba(255, 255, 255, 0.9) !important; 
    border-radius: 10px;
}

.boxes {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: nowrap; /* 要素が横並びになるように設定 */
}

.box1, .box2 {
    margin-bottom: 0.2rem;
    padding: 1rem;
    box-shadow: 7px 7px 0 #e3e3e3;
    color: #fff;
    font-weight: bold;
    font-size: 35px;
    text-align: center;
    width: 350px;
    border-radius: 5px;
}

.box1 {
    background-color: #A9CB2A;
}

.box2 {
    background-color: #F3A411;
}

.divider {
    margin: 0 10px;
    font-size: 60px;
    text-shadow: 7px 7px 0 #e3e3e3;
}

.catchphrase {
    font-size: 35px;
    position: relative;
    padding: 20px; /* テキスト周りにスペースを追加 */
    display: inline-block; /* テキストに合わせた範囲にカギ括弧を適用 */
}

.catchphrase::before,
.catchphrase::after {
        position: absolute;
        width: 40px;
        height: 40px;
        content: '';
    }

.catchphrase::before {
        border-left: solid 2px;
        border-top: solid 2px;
        top: 0;
        left: 0;
        color: #A9CB2A;
    }
    
.catchphrase::after {
        border-right: solid 2px;
    border-bottom: solid 2px;
    bottom: 0;
    right: 0;
    color: #F3A411;
    }


.subphrase {
    font-size: 20px;
}

.consept_img {
    width: 100%;
    height: 50%;
    object-fit: cover; /* 画像をトリミングして表示 */
}

.right-image {
    max-width: 50%;
    height: auto;
    object-fit: cover;
    margin-left: 0; /* 左側に余白をなくす */
    position: relative;
    left: 0; /* 左端にピッタリくっつける */
    opacity: 0.7; /* 画像だけの透明度を設定 */
}

.company-info {
    padding: 20px;
    text-align: left;
    background-color: #fff;
    border-radius: 8px;
    margin: 20px auto;
}

.info-table {
    width: 100%;
    border-collapse: collapse;
}

.info-table td {
    padding: 15px 15px;
    border-bottom: 1px solid #ddd; /* 横線のみの枠線 */
}

.info-label {
    font-weight: bold;
    color: #333;
    width: 200px; /* ラベルの幅を固定 */
}

.setagayalogo{
    width: 25%;
}

h1 {
    position: relative;
  padding: 1rem 2rem;
  border-bottom: 6px solid #F3A411;
}

h1:before {
    position: absolute;
    bottom: -6px;
    left: 0;
    width: 20%;
    height: 6px;
    content: '';
    background: #A9CB2A;
  }

.h1sub {
    color: #cbcbcb;
}

h2 {
 font-size: large ;
 font-weight: bold  ;
}

h3 {
    font-size: medium ;
    font-weight: bold  ;
   }

   


.policy-section h3 {
    font-size: 1.2em;
    color: #333;
    margin-top: 20px;
}

.policy-section p {
    margin-left: 3em;
}


.policy-section p.list {
    text-indent: 4em;
}

.policy-section ul {
    margin-left: 10em;
}

.policy-section p.p2 {
    margin-left: 4em; /* 番号部分の下げ位置に合わせて段落全体をさらに左寄せ */

}
.policy-section p.p3 {
    margin-left: 9em; /* 番号部分の下げ位置に合わせて段落全体をさらに左寄せ */

}


@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.animation-target {
    opacity: 0;
    transform: translateY(50px);
    transition: opacity 1s ease-out, transform 1s ease-out;
}

.animation-target.show {
    opacity: 1;
    transform: translateY(0); /* 最終的な位置に固定 */
}

.access-container {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 20px;
    margin-top: 20px;
}

.access-photo img {
    width: 100%;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.access-details {
    flex: 1;
    padding: 10px;
    text-align: left;
}

.access-details p {
    margin-bottom: 15px;
    line-height: 1.6;
    font-size: 16px;
}

.access-label {
    width: 150px;
}

.access-span {
    padding: 0rem 1rem;
    border: 1px solid #333;
}

.googlemap {
    width: 600px;
    height: 450px;
}


#googleMap {
    margin-top: 20px;
    border: 1px solid #ddd;
}

.tell {
    font-size: 20px;
    font-weight: bold;
    position: relative;
    display: inline-block;
    padding: 0.25em 0.5em;
    text-decoration: none;
    color: #F3A411;
    transition: .4s;
    border-radius: 3px;
}

  
.tell:hover {
    background: #FFA600;
    color: white;
  }

.tell:hover a {
    color: #fff;
}

.contact-form {
    padding: 20px;
    margin: 20px auto;
    background-color: #fff;
    border-radius: 8px;
}

.contact-table {
    width: 100%;
    border-collapse: collapse;
}

.contact-table td {
    padding: 10px;
    vertical-align: top;
}

.contact-info {
    text-align: left;
}

.contact-label {
    font-weight: bold;
    color: #333;
    width: 190px;
}

input, textarea {
    width: 100%;
    padding: 8px;
    border: 1px solid #ddd;
    border-radius: 4px;
}

.required {
    color: red;
    font-size: x-small;
}

button {
    padding: 10px 40px;
    background-color: #F3A411;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 20px;
}

button:hover {
    background-color: #FFA600;
}

#backToTopBtn {
    position: fixed;
    bottom: 60px;
    right: 20px;
    background-color: #333;
    color: #fff;
    border-radius: 4px;
    padding: 10px 20px;
    cursor: pointer;
    display: none; /* 初期は非表示 */
    font-size: 16px;
}

#backToTopBtn:hover {
    background-color: #575757;
}

footer {
    background-color: #333;
    color: white;
    text-align: center;
    padding: 10px;
    position: fixed;
    width: 100%;
    bottom: 0;
}

@media (max-width: 768px) {
    body {
        font-size: 14px;
        line-height: 1.8;
    }

    header {
        display: flex;
        flex-direction: row; /* アイコンを横並びにする */
        justify-content: space-between;
        align-items: center;
    }

    nav ul {
        flex-direction: row; /* ナビゲーション項目も横並びに */
    }

    .logo {
        width: 170px;
    }

    nav ul li {
        margin: 10px 0;
    }

    h1 {
        position: relative;
      padding: 1rem 2rem;
      border-bottom: 6px solid #F3A411;
    }

    .button-border {
        padding: 15px 30px;
    }

    .slogan {
        font-size: 20px;
        margin-bottom: -5px;
    }

    .brand-concept, .company-info, .access-info, .contact-form {
        max-width: 100%;
        padding: 10px;
        margin-top: 30px;
    }

    .boxes {
        flex-direction: column;
    }

    .box1, .box2 {
        width: 75%;
        font-size: 23px;
    }

    .box1 {
        margin-bottom: -20px; /* ボックスの外の下の余白を15pxに */
    }

    .box2 {
        margin-top: -20px;
    }

    .divider {
        margin: 0 0px;
    }


    .catchphrase {
        position: relative;
        padding: 1.5rem 1rem;
        font-size: 28px;
        font-weight: bold;
        text-align: center;
    }
    
    .catchphrase::before,
    .catchphrase::after {
        position: absolute;
        width: 40px;
        height: 40px;
        content: '';
    }

    .catchphrase::before {
        border-left: solid 2px;
        border-top: solid 2px;
        top: 0;
        left: 0;
    }
    
    .catchphrase::after {
        border-right: solid 2px;
    border-bottom: solid 2px;
    bottom: 0;
    right: 0;
    }

    
    .subphrase {
        font-size: 16px;
    }
    
    .access-container {
        flex-direction: column; /* スマホ時に縦に並べる */
        align-items: center;
    }

    .access-container img, .access-details {
        width: 100%; /* 幅を100%に */
        margin-bottom: 10px; /* 画像間のスペースを追加 */
    }

    .access-table {
        width: 100%;
        border-collapse: collapse;
    }
    
    .access-table td {
        padding: 0px 3px;
    }
    
    .access-label {
        font-weight: bold;
        color: #333;
        width: 35%; /* ラベルの幅を固定 */
    }

    .googlemap {
        width: 100%;
        height: 200px;
    }

    footer {
        position: relative;
        padding: 20px;
    }
}


/* ハンバーガーメニューアイコン */
.menu-icon {
    display: inline-block;
    cursor: pointer;
    position: absolute;
    top: 15px;
    right: 30px;
    z-index: 1002; /* メニューやオーバーレイより前面に表示 */
    margin-left: auto; /* 通常メニューの横に表示 */
}

.bar1, .bar2, .bar3 {
    width: 50px;
    height: 5px;
    background-color: #F3A411;
    margin: 6px 0;
    transition: 0.4s;
}

/* アイコンが「×」に変わるアニメーション */
.change .bar1 {
    transform: rotate(-45deg) translate(-9px, 6px);
}

.change .bar2 {
    opacity: 0;
}

.change .bar3 {
    transform: rotate(45deg) translate(-8px, -8px);
}

/* メニューのスタイル */
#nav-menu {
    position: fixed;
    top: 0px;
    right: -100%;
    width: 500px;
    height: 100%;
    background-color: #FFFEF9; /* 背景色を白に */
    overflow: hidden;
    z-index: 1001; /* オーバーレイより前面に表示 */
    transition: right 0.5s ease; /* 右からスライドで表示 */
}

#nav-menu.show {
    right: 0; /* メニューを表示 */
    display: block; /* メニューを表示 */
}

#nav-menu ul {
    list-style-type: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column; /* メニュー項目を縦に並べる */
    justify-content: flex-start;
    align-items: flex-start;
    padding-top: 80px;
}

#nav-menu ul li {
    padding: 15px;
    border-bottom: 1px solid #F3A411;
    text-align: left;
    width: 90%;
    color: #F3A411;;
}

#nav-menu ul li a {
    font-size: 20px; /* 日本語テキストのサイズアップ */
    text-decoration: none;
}

.english-text {
    color: #828282; /* 英語のテキストをグレーに */
    font-size: 14px; /* 英語のフォントサイズ */
    margin-left: 10px; /* 日本語テキストとの間隔 */
}

/* オーバーレイ */
#overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5); /* 透明度を50%に設定 */
    display: none;
    z-index: 1000; /* メニューの後ろに表示 */
}

#overlay.show {
    display: block;
}

/* スマホ用のスタイル */
@media (max-width: 768px) {
    body {
        background-image: none;
    }


    nav ul {
        display: none; /* 通常のメニューをスマホでは非表示に */
    }

    #nav-menu {
        position: fixed;
        top: 0px;
        right: 0;
        width: 100%; /* スマホ表示で全幅に */
        max-height: 0;
        background-color: #FFFEF9;
        border-left: 1px solid #333;
        overflow: hidden;
        z-index: 1002;
        transition: max-height 0.4s ease;
        text-align: center;
    }

    #nav-menu.show {
        max-height: 410px;
    }

    #nav-menu ul {
        list-style-type: none;
        padding: 0;
        margin: 0;
        display: flex;
        flex-direction: column; /* スマホ用で縦並びに */
        justify-content: flex-start;
        align-items: left;
        padding-top: 60px;
    }

    #nav-menu ul li {
        text-align: left;
        padding-bottom: 0px;
        width: 100%;
        border-color: #a4a4a4;
        color: #F3A411;
    }

    #nav-menu ul li a {
        color: #F3A411; /* 日本語の文字をオレンジに */
        font-size: 20px; /* 日本語テキストのサイズアップ */
        text-decoration: none;
    }
    
    .english-text {
        color: #828282; /* 英語のテキストをグレーに */
        font-size: 14px; /* 英語のフォントサイズ */
        margin-left: 10px; /* 日本語テキストとの間隔 */
    }

    .menu-icon {
        display: inline-block;
        cursor: pointer;
        position: absolute;
        top: 20px;
        right: 20px;
        z-index: 1004;
        margin-left: auto; /* 通常メニューの横に表示 */
    }
    
    .bar1, .bar2, .bar3 {
        width: 50px;
        height: 5px;
        background-color: #F3A411;
        margin: 6px 0;
        transition: 0.4s;
    }

/* オーバーレイ */
#overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5); /* 透明度を50%に設定 */
    display: none;
    z-index: 1000; /* メニューの後ろに表示 */
}

#overlay.show {
    display: block;
}

.family-photo {
    width: 250px;
    height: 800px;
    object-fit: cover; /* この一行を追加するだけ！ */
}

    .slogan {
        position: static; /* スマホでは通常の位置に表示 */
        margin-top: 60px; /* 写真の下に余白を追加 */
        text-align: center;
        color: #F3A411;
      
    }

    

    .brand-concept {
        text-align: center;
        animation: none;
        background-color: #FFFEF9;
        margin: 0 0;  /* 上下の余白、セクション間のスペースを40pxに設定 */
        animation: fadeIn 2s ease-in-out; /* 2秒かけてフェードイン */
    }
    
    .catchphrase {
        position: relative;
        padding: 1rem 1rem;
        font-size: 18px;
        font-weight: bold;
        text-align: center;
        animation: none;
        margin-bottom: 20px; /* .catchphraseの下に余白を追加 */
    }
    
    .catchphrase::before,
    .catchphrase::after {
        position: absolute;
        width: 40px;
        height: 40px;
        content: '';
        color: #333;
    }

    .catchphrase::before {
        border-left: solid 2px;
        border-top: solid 2px;
        top: 0;
        left: 0;
    }
    
    .catchphrase::after {
        border-right: solid 2px;
    border-bottom: solid 2px;
    bottom: 0;
    right: 0;
    }

    .setagayalogo{
        width: 70%;
    }

    .tell {
        text-align: center;
    }

    .phone-fixed {
        position: fixed;
    bottom: 20px;
    right: 20px;
    background-color: #A9CB2A;
    padding: 15px;
    border-radius: 50%; /* 丸いボタンにする */
    color: white;
    font-size: 24px;
    z-index: 1000;
    border: 2px solid white; /* 白い枠線 */
    display: flex;
    justify-content: center;
    align-items: center;
    width: 70px;
    height: 70px;
}

.phone-fixed a {
    color: white;
    text-decoration: none;
    font-size: 24px; /* アイコンのサイズ */
}

.phone-fixed a:hover {
    color: #fff;
}

#backToTopBtn {
    display: none !important; /* 優先して表示 */
}

}