<style>
/* ベーススタイル */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Noto Serif JP', serif;
    color: #333;
    overflow-x: hidden;
    background: #fff;
}

.sp-only {
  display: none;
}

/* ヒーローセクション */
.hero-section {
    position: relative;
    width: 100%;
    height: 100vh;
    overflow: hidden;
}

.hero-slider {
    width: 100%;
    height: 100%;
    position: relative;
}

.slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 1.5s ease;
}

.slide.active {
    opacity: 1;
}

.slide-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: brightness(1.0);
}

.hero-content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    width: 100%;
    z-index: 2;
}

.main-title {
    font-family: 'Yuji Syuku', serif;
    font-size: 4rem;
    color: #fff;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.5);
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 1s ease, transform 1s ease;
}

.main-title.visible {
    opacity: 1;
    transform: translateY(0);
}

/* メッセージセクションの強化スタイル */
.message-section {
    position: relative;
    background-color: #fff;
    /* パディングを調整 */
    padding: 6rem 2rem;
    text-align: center;
    overflow: hidden;
}

.message-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: 
        linear-gradient(90deg, rgba(0,0,0,0.02) 1px, transparent 1px) 0 0 / 20px 20px,
        linear-gradient(rgba(0,0,0,0.02) 1px, transparent 1px) 0 0 / 20px 20px;
    pointer-events: none;
}

.message-container {
    max-width: 1000px;
    margin: 0 auto;
    position: relative;
    /* パディングを調整 */
    padding: 2rem;
    z-index: 1;
}

.message-container::before,
.message-container::after {
    content: '';
    position: absolute;
    width: 100px;
    height: 100px;
    opacity: 0.1;
}

.message-container::before {
    top: 0;
    left: 0;
    border-top: 2px solid #000;
    border-left: 2px solid #000;
}

.message-container::after {
    bottom: 0;
    right: 0;
    border-bottom: 2px solid #000;
    border-right: 2px solid #000;
}

.message-line {
    font-family: 'Yuji Syuku', serif;
    font-size: 2.5rem;
    /* マージンを調整 */
    margin: 2rem 0;
    opacity: 0;
    transform: translateY(30px);
    transition: all 1.2s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    padding: 0 2rem;
}

.message-line.visible {
    opacity: 1;
    transform: translateY(0);
}

.message-line::before {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    width: 0;
    height: 1px;
    background: rgba(0,0,0,0.3);
    transform: translateX(-50%);
    transition: width 0.8s ease 0.4s;
}

.message-line.visible::before {
    width: 60px;
}

/* 畳模様の背景 */
.tatami-pattern {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0.03;
    pointer-events: none;
    background:
        /* 畳の縦線 */
        linear-gradient(90deg, 
            transparent 49.5%, 
            #000 49.5%, 
            #000 50.5%, 
            transparent 50.5%
        ) 0 0 / 200px 100%,
        /* 畳の横線 */
        linear-gradient(0deg, 
            transparent 49.5%, 
            #000 49.5%, 
            #000 50.5%, 
            transparent 50.5%
        ) 0 0 / 100% 100px;
}

/* 畳の角装飾 */
.tatami-corner {
    position: absolute;
    width: 40px;
    height: 40px;
    border: 2px solid rgba(0, 0, 0, 0.1);
}

.tatami-corner-tl {
    top: 20px;
    left: 20px;
    border-right: none;
    border-bottom: none;
}

.tatami-corner-tr {
    top: 20px;
    right: 20px;
    border-left: none;
    border-bottom: none;
}

.tatami-corner-bl {
    bottom: 20px;
    left: 20px;
    border-right: none;
    border-top: none;
}

.tatami-corner-br {
    bottom: 20px;
    right: 20px;
    border-left: none;
    border-top: none;
}

/* メインコンテンツ */
.main-content {
    background: #fff;
    opacity: 0;
    transition: opacity 0.8s ease;
}

.main-content.visible {
    opacity: 1;
}

/* コンテンツセクション */
.content-section {
    position: relative;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    padding: 4rem 2rem;
    max-width: 1400px;
    margin: 0 auto;
    opacity: 0;
    transform: translateY(30px);
    transition: all 1s ease;
}

.content-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 1px;
    height: 60px;
    background: linear-gradient(to bottom, transparent, rgba(0, 0, 0, 0.5), transparent);
    pointer-events: none;
}

.content-section:first-child::before {
    display: none;
}

.content-section:nth-child(even) {
    direction: rtl;
}

.content-section:nth-child(even) .section-content {
    direction: ltr;
}

.content-section.visible {
    opacity: 1;
    transform: translateY(0);
}

.section-image {
    position: relative;
    width: 100%;
    height: 100%;
    overflow: hidden;
}

.section-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transform: scale(1);
    transition: transform 0.8s ease;
}

.section-image:hover img {
    transform: scale(1.05);
}

.section-content {
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 2rem;
}

.section-title {
    font-family: 'Yuji Syuku', serif;
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
    position: relative;
    padding-bottom: 1rem;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 30px;
    height: 2px;
    background: #000;
    transform-origin: left;
    transform: scaleX(0);
    transition: transform 0.5s ease 0.3s;
}

.content-section.visible .section-title::after {
    transform: scaleX(1);
}

.section-description {
    font-size: 1.1rem;
    line-height: 2;
    margin-bottom: 2rem;
}

.section-button {
    display: inline-block;
    padding: 1rem 3rem;
    border: 1px solid #000;
    color: #000;
    text-decoration: none;
    position: relative;
    transition: all 0.3s ease;
    overflow: hidden;
}

.section-button::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #000;
    transform-origin: right;
    transform: scaleX(0);
    transition: transform 0.5s ease;
    z-index: -1;
}

.section-button:hover::before {
    transform-origin: left;
    transform: scaleX(1);
}

.section-button:hover {
    color: #fff;
}

/* レスポンシブ対応 */
@media (max-width: 768px) {
    .main-title {
        font-size: 2.5rem;
    }
      .hero-section {
        height: 60vh; /* スマートフォンではより小さめに */
    }

    .main-title {
        font-size: 2rem; /* スマートフォンでは文字サイズを小さく */
    }

.message-section {
        padding: 4rem 1rem;
    }

    .message-container {
        padding: 1rem;
    }

    .message-line {
        font-size: 1.8rem;
        margin: 1.5rem 0;
    }

      .tatami-pattern {
        background-size: 100px 50px;
    }
  
    .content-section {
        grid-template-columns: 1fr;
        gap: 2rem;
        padding: 4rem 1rem;
    }

    .content-section:nth-child(even) {
        direction: ltr;
    }

    .content-section::before {
        height: 60px;
    }

    .section-title {
        font-size: 2rem;
    }
  .sp-only {
    display: block;
  }
}
</style>