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

body {
    /* システムフォントの優先度を高めるため、-apple-systemやBlinkMacSystemFontを含める例 */
    font-family: 
      -apple-system,
      BlinkMacSystemFont,
      "Helvetica Neue",
      "Hiragino Kaku Gothic ProN",
      "Hiragino Sans",
      "Yu Gothic",
      "Meiryo",
      sans-serif;
    
    /* 必要に応じて文字サイズや行間を設定してください */
    font-size: 16px;
    line-height: 1.6;
  }
  body {
    background-image: url('../img/background.png');
    background-position: center;
    background-size: cover;
    background-repeat: no-repeat;
    background-attachment: fixed;
}

header {
    background: #6fc8a8;
    padding: 1rem;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
    height: 50px;
}


.logo {
    font-size: 1.5rem;
    font-weight: bold;
}
.logo img {
    width: 100px;
    height: auto;
}

.menu {
    display: flex;
    list-style: none;
}

.menu li {
    margin-left: 2rem;
}

.menu a {
    text-decoration: none;
    color: white;
    font-weight: bold;
}



.header-image {
    display: flex;
    margin: 2rem auto;
    max-width: 1200px;
}

section {
    padding: 4rem 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

h2 {
    text-align: center;
    margin-bottom: 3rem;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

.service-item {
    padding: 1.5rem;
    background: #f9f9f9;
    border-radius: 8px;
}

.company-info, .bank-info {
    max-width: 600px;
    margin: 0 auto;
    text-align: center;
}

.contact-form {
    max-width: 600px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

input, textarea {
    padding: 0.8rem;
    border: 1px solid #ddd;
    border-radius: 4px;
}

textarea {
    height: 150px;
}

button {
    padding: 1rem 2rem;
    background: #333;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
}

button:hover {
    background: #444;
}

/* プライバシーチェックボックス用のスタイル */
.privacy-check {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin: 1rem 0;
}

.privacy-check label {
    font-size: 0.9rem;
}

.privacy-check a {
    color: #6fc8a8;
    text-decoration: underline;
}

.privacy-check a:hover {
    opacity: 0.8;
}

button[disabled] {
    background: #ccc;
    cursor: not-allowed;
}

footer {
    text-align: center;
    padding: 2rem;
    background: #6fc8a8;
    color: white;
}

@media (max-width: 768px) {
    .menu {
        display: none;
    }
    
    .hero {
        padding-top: 6rem;
    }
    
    .header-image {
        height: 200px;
    }
}
/* 既存のCSSに以下を追加 */
.company-container {
    display: flex;
    gap: 2rem;
    max-width: 900px;
    margin: 0 auto;
    align-items: flex-start;  /* 追加 */
}

.company-info {
    flex: 0 0 400px;
    text-align: left;
    padding: 2rem;
}

.company-map {
    flex: 1;
    min-width: 0;  /* flexアイテムの最小幅を設定 */
}

.company-map iframe {
    width: 100%;
    height: 400px;
}

/* スマートフォン対応 */
@media (max-width: 768px) {
    .company-container {
        flex-direction: column;
    }

    .company-info {
        text-align: center;
        padding: 1rem;
    }

    .company-map {
        width: 100%;
    }

    .company-map iframe {
        height: 300px;
    }
}
/* 既存のsectionスタイルに背景色を追加 */
section {
    padding: 4rem 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

#services {
    background-color: #bff7bf76;  /* 薄いセージグリーン */
}

#company, #privacy-policy {
    background-color: #79fac26f;  /* 薄いミントグリーン */
}

#banks {
    background-color: #69fecc4e;  /* 薄いアクアグリーン */
}

#contact, #sent-message {
    background-color: #d6f59981;  /* 薄いオリーブグリーン */
}

/* セクション内のコンテンツ幅を制御するためのラッパー追加 */
.section-wrapper {
    max-width: 1200px;
    margin: 0 auto;
}
.company-details {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 1rem 1.5rem;
    align-items: baseline;
}

.company-details dt {
    font-weight: bold;
    white-space: nowrap;
}

.company-details dd {
    margin: 0;
}

/* スマートフォン対応 */
@media (max-width: 768px) {
    .company-details {
        width: fit-content;
        margin: 0 auto;
    }
}
.hero {
    position: relative;
    width: 100%;
    height: 100vh;
    overflow: hidden;
    line-height: 0;
    padding-top:82px;
}
.hero img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.section-wrapper img{
    display: block;
    margin: 0 auto;
    width: 80px;
    height:auto;
}
/*********** プライバシーポリシー ***********/
#privacy-policy, #sent-message {
    padding-top: 82px;
}
#privacy-policy h1 {
    font-size: 36px;
    margin: 35px 0px;
    text-align: center;
}
#privacy-policy h2 {
    font-size: 24px;
    margin: 25px 0;
    text-align: left;
}
.text-right {
    text-align: right;
}
