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

html {
    width: 100%;
}

body {
    font-family: "ヒラギノ明朝 ProN W3", "Hiragino Mincho ProN", "游明朝", YuMincho, "HG明朝E", "ＭＳ Ｐ明朝", "ＭＳ 明朝", serif;
    line-height: 1.8;
    color: #333;
    background-color: #fefefe;
  overflow-x: hidden;
  width: 100%;
}

/* Header */
header {
    background-color: #474747;
    color: white;
    padding: 1rem 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.header-inner {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 0 2rem;
    position: relative;
}

.logo img {
    height: 40px;
}

.main-nav {
    position: absolute;
    right: 2rem;
}

.nav-toggle {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
    width: 40px;
    height: 40px;
}

.hamburger {
    width: 25px;
    height: 3px;
    background-color: white;
    margin: 3px 0;
    transition: 0.3s;
    display: block;
    border-radius: 2px;
}

.nav-menu {
    position: fixed;
    left: -100%;
    top: 70px;
    flex-direction: column;
    background-color: #474747;
    width: 100%;
    text-align: center;
    transition: 0.3s;
    box-shadow: 0 10px 27px rgba(0, 0, 0, 0.05);
    padding: 2rem 0;
    gap: 2rem;
    z-index: 999;
    list-style: none;
    margin: 0;
}

.nav-menu.active {
    left: 0;
}

.nav-menu li {
    margin: 0;
    list-style: none;
}

.main-nav a {
    color: white;
    text-decoration: none;
    transition: opacity 0.3s ease;
    font-size: 1.1rem;
    white-space: nowrap;
    display: block;
    padding: 0.5rem;
}

.main-nav a:hover {
    opacity: 0.8;
}

.instagram-link {
     display: flex !important;
    flex-direction: column;
    align-items: center;
    text-decoration: none !important;
    color: #333 !important;
    font-size: 16px;
}

.instagram-link img {
    width: 40px;
    height: 40px;
    margin-bottom: 8px;
}

.instagram-link:hover {
    opacity: 0.7;
}

/* Container */
.container {
    max-width: 1000px;
    margin: 0 auto;
    padding: 0 0 80px 0;
    background-color: #fefefe;
}

/* Hero Section */
.hero-section {
    text-align: center;
    padding: 0;
    background-color: #f8f8f8;
    position: relative;
    width: 100%;              /* 100vw を 100% に変更 */
    margin-left: 0;           /* calc(50% - 50vw) を 0 に変更 */
    margin-right: 0;          /* calc(50% - 50vw) を 0 に変更 */
}

.hero-section .container {
    padding: 0;
    max-width: none;
}

.hero-container {
    position: relative;
    display: block;
    width: 100%;
    height: 0;
    padding-bottom: 50.52%;
    min-height: 450px;
}

.hero-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 0;
    z-index: 1;
  background-color: #f8f8f8;
}

.hero-brand {
    position: absolute;
    left: 50%; 
    bottom: 12%;
    transform: translateX(-50%);
    z-index: 2;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.hero-title {
    font-size: 2vw;
    font-weight: normal;
    margin-top: 10px;
    margin-bottom: 30px;
    line-height: 1;
    color: white;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.7);
    min-font-size: 18px;
    max-font-size: 42px;
    white-space: nowrap;
    text-align: center;
}

/* スクロールマーク */
.scroll-indicator {
    display: flex;
    flex-direction: column;
    align-items: center;
    animation: bounce 2s infinite;
}

.scroll-arrow {
    width: 20px;
    height: 20px;
    border-right: 2px solid white;
    border-bottom: 2px solid white;
    transform: rotate(22deg);
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.5));
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {
        transform: rotate(22deg) translateY(0);
    }
    40% {
        transform: rotate(22deg) translateY(-5px);
    }
    60% {
        transform: rotate(22deg) translateY(-2px);
    }
}

/* Main Section */
.section {
    padding: 0;
    text-align: center;
    background-color: #AAA09E;
}

.section-text {
    padding: 50px 150px 0;
    text-align: left;
    flex: none;
}

.section-text h2 {
    font-size: 24px;
    margin-bottom: 20px;
    text-align: left;
    color: #000;
    font-weight: normal;
    white-space: nowrap;
    margin-left: 0;
}

.section-text p {
    font-size: 17.6px;
    color: #000;
    line-height: 2;
    margin: 0 0 15px 0;
    max-width: 100%; 
    text-align: left;
}

.final-promise {
    margin-top: 80px;
}


    .vision-list {
            margin: 60px auto 0 auto; /* 上60px、左右自動で中央揃え */
            max-width: 800px;
            padding: 0 60px;
        }

        .vision-item {
            margin-bottom: 40px;
            display: flex;
            flex-wrap: wrap;
            align-items: flex-start;
        }

        .vision-number {
           font-size: 20px;
            font-weight: normal;
            margin: 0px 40px;
            min-width: 40px;
        }

        .vision-title-container {
            margin-right: 20px;
            min-width: 300px;
            flex: 1 0 300px;
        }


        .vision-p {
            font-size: 17.6px;
            font-weight: normal;
            margin-bottom: 10px;
          text-align:left;
        }








/* CTA Section */
.cta-section {
    text-align: left;
    margin: 80px 0 0px 150px;
}

.cta-section h3 {
    font-size: 24px;
    margin-bottom: 15px;
    color: #333;
}

.contact-info-button {
    margin: 0;
}

.contact-info-btn {
    display: inline-flex;
    align-items: center;
    padding: 16px 120px;
    border: 2px solid #333;
    background-color: transparent;
    color: #333;
    text-decoration: none;
    border-radius: 50px;
    font-size: 18px;
    font-weight: normal;
    transition: all 0.3s ease;
    position: relative;
}

.contact-info-btn:after {
    content: '>';
    margin-left: 10px;
    font-size: 18px;
    transition: transform 0.3s ease;
}

.contact-info-btn:hover {
    background-color: #333;
    color: #fff;
}

.contact-info-btn:hover:after {
    transform: translateX(5px);
}

/* デスクトップ・モバイル用テキスト表示切り替え */
.desktop-text {
    display: block;
}

.mobile-text {
    display: none;
}

/* Footer */
footer {
    background-color: #474747;
    color: white;
    padding: 2rem;
    margin-top: 0;
}

footer img {
    height: 60px;
    flex-shrink: 0;
}

footer > div {
    max-width: 1200px;
    margin: 0 auto;
    text-align: center; 
}

footer .inner {
    border: 2px solid white;
    padding: 1.2rem 2rem;
    margin-bottom: 2rem;
    display: flex;
    align-items: center;
    gap: 2rem;
    position: relative;
}

footer .inner::after {
    content: '';
    position: absolute;
    left: 50%;
    top: 0%;
    bottom: 0%;
    width: 1px;
    background-color: white;
    transform: translateX(-50%);
}

footer .inner > div:first-child {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
}

footer address {
    flex: 1;
    font-style: normal;
    line-height: 1.5;
    font-size: 0.9rem;
    font-family: 'Yu Mincho', 'YuMincho', 'Hiragino Mincho Pro', 'Hiragino Mincho ProN', 'MS PMincho', serif;
    text-align: left; 
}

footer address p {
    margin-bottom: 0.3rem;
}

footer nav ul {
    list-style: none;
    display: flex;
    gap: 1.5rem;
    flex-wrap: wrap;
    justify-content: center;
    margin-bottom: 1rem;
}

footer nav a {
    color: white;
    text-decoration: none;
    font-size: 0.9rem;
    transition: opacity 0.3s ease;
    white-space: nowrap;
}

footer nav a:hover {
    opacity: 0.8;
}

footer small {
    font-size: 0.85rem;
    opacity: 0.9;
    margin: 0;
}

/* モバイル・タブレット対応 */
@media (max-width: 768px) {
  
   /* 全要素の最大幅制限 */
    * {
        max-width: 100%;
        box-sizing: border-box;
    }
  
    .header-inner {
        padding: 0 1rem;
    }

    .main-nav {
        right: 1rem;
    }

    .instagram-link img {
        width: 24px;  /* モバイルでは24px */
        height: 24px; /* モバイルでは24px */
        margin-bottom: 8px;
    }

    .hero-container {
        height: 0;
        padding-bottom: 65%;
        min-height: 380px;
      margin-bottom: 50px;
    }

    .hero-brand {
        left: 50%;
        bottom: 10%;
        transform: translateX(-50%);
        align-items: center;
    }

    .hero-title {
        font-size: 4vw;
        min-font-size: 20px;
        max-font-size: 28px;
        white-space: normal;
        line-height: 1.3;
        margin-top: 0px;
        margin-bottom: 20px;
    }

    .scroll-arrow {
        width: 16px;
        height: 16px;
        border-right: 2px solid white;
        border-bottom: 2px solid white;
    }

    .section {
        padding: 0;
        width: 100%;
        max-width: 100%; 
    }

    .container {
        padding-left: 0 !important;
        padding-right: 0 !important;
        max-width: 100%;
        width: 100%;
    }

    .section-text {
        padding: 0 20px 15px 20px;
        flex: none; 
      margin-left: 20px;
    }

    .section-text h2 {
        font-size: 20px;
        margin-top: 40px;
        background-color: #fefefe;
        padding-top: 20px;
        margin-left: 0;
      white-space: normal; 
    }

    .section-text p {
        font-size: 16px;
        margin: 0 0 15px 0;
        max-width: 100%;
        text-align: left;
    }
  
      /* Vision List */
    .vision-list {
        margin: 10px 0 20px 0;
        padding: 0 20px;
    }
    
    .vision-item {
        margin-bottom: 20px !important;
        display: flex;
        flex-direction: column;
        align-items: flex-start;
    }
    
    .vision-number {
        font-size: 18px;
        font-weight: bold;
        margin-bottom: 8px;
        margin-right: 0;
        width: 100%;
        margin-left: 20px;
        text-align: left;
    }
  
     .vision-title-container {
        width: 100%;
        margin-right: 0;
        min-width: auto;
        flex: 1 0 30px;
    }

    .vision-p {
        font-size: 16px;
        margin: 0;
        padding-left: 0;
      margin-left: 20px;
        text-align: left;
        line-height: 1.6;
    }
  
    /* Desktop/Mobile Only */
    .desktop-only {
        display: none;
    }
    
    .mobile-only {
        display: block;
        margin: 5px 20px 50px 20px;
        text-align: left;
    }
    
    .mobile-only .vision-content-detail {
        font-size: 16px;
        margin: 0;
        padding-left: 0;
        text-align: left;
    }
  
    /* Desktop/Mobile Text Toggle - 重要 */
    .desktop-text {
        display: none !important;
    }
    
    .mobile-text {
        display: block !important;
    }
  
  .cta-section {
    text-align:center;
    margin: 80px 0 0px 0px;
}

    .cta-section h3 {
        margin-left: 0;
      font-size: 18px;
    }

    .contact-info-btn {
        padding: 14px 80px;
        font-size: 15px;
    }

    footer {
        padding: 1rem;
    }

    footer .inner {
        border: 1px solid white;
        flex-direction: column;
        gap: 1rem;
        padding: 1rem 1.5rem;
        margin-bottom: 1.5rem;
    }

    footer .inner::after {
        display: none;
    }

    footer .inner > div:first-child {
        flex: none;
        justify-content: center;
    }

    footer address {
        flex: none;
    }

    footer nav ul {
        justify-content: center;
        gap: 1rem;
        font-size: 0.85rem;
    }

    footer nav a {
        font-size: 0.85rem;
    }

    /* モバイル表示：mobile-text表示、desktop-text非表示 */
    .desktop-text {
        display: none;
    }

    .mobile-text {
        display: block;
    }
}