* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    transition: all .2s linear;
}

:root {

    --color-primary: #2e2e2e;
    --color-secondary: #ececec; 
    --color-accent: #f5f5f5; 
    --color-highlight: #bada55; 
    --color-text: #fafafa; 
    --color-text-secondary: #b0b0b0; 
    --color-error: #ff4040; 
    --color-success: #8fce00; 
    --color-warning: #ffc400;
    --color-background: #e0ff2c;
    --color-line-default: #06C755;
    --color-line-active: #4CC764;

    --font-title: 3em;
    --font-section: 2.3em;
    --font-default: 1.7em;
    --font-description: 1.2em;

    --font-sp-title: 1.7em;
    --font-sp-section: 1.5em;
    --font-sp-default: 1.3em;
    --font-sp-description: 1em;

}

body {
    font-family: "Noto Serif JP", serif;
}

a {
    text-decoration: none;
}

.line {
    width: 100%;
    border: 0.3px var(--color-text-secondary) solid ;
    margin-top: 1rem;
    margin-bottom: 1rem;
}

.fade-in {
    opacity: 0;
    transform: translate3d(0, 20px, 0);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.fade-in.visible {
    opacity: 1;
    transform: translate3d(0, 0, 0);
}

.img-box {
    max-width: 100%;
    height: auto;
    vertical-align: middle;
    font-style: italic;
    background-repeat: no-repeat;
    background-size: cover;
    shape-margin: 0.75rem;
}

.title-container {
    width: 100%;
    display: flex;
    align-items: center;
    color: var(--color-primary);
    padding-bottom: 2rem;
}

.en {
    font-size: var(--font-section);
    padding-right: 1rem;
}

.ja {
    font-size: var(--font-default);
    font-weight: 100;
}

/* follow-container start */
.follow-container {
    position: fixed;
    bottom: 20px;
    right: 0px; 
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 2rem;
    z-index: 100;
    background: rgba(100, 100, 100, 0.4);
    padding: 2rem 1rem;
    border-radius: 2rem;
    transition: all 0.3s ease-in-out;
}

.follow-container i {
    font-size: 1.3rem;
}

/* scroll start */

#scroll-top-btn {
    padding: 10px 15px;
    background-color: #555;
    color: #fff;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    z-index: 1000;
    margin-bottom: 0;
}

/* scroll end */

.follow-btn {
    width: 38px;
    height: 38px;
    padding: 10px;
    background-color: #555;
    color: #fff;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    z-index: 1100;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease-in-out;
}

.follow-btn.open {
    width: 18rem;
    padding: 10px 15px;
    border-radius: 2rem;
}

.hidden-text {
    display: inline-block;
    width: 0;
    opacity: 0;
    transition: opacity 0.5s ease, width 0.5s ease;
}

.hidden-text.show {
    padding-left: 2rem;
    width: 10rem;
    opacity: 1;
}
/* follow-container end */

/* public end  */

/* header start */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    padding: 0 3%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    z-index: 100;
    background-color: rgba(255, 255, 255, 0.7);
    transition: 0.3s ease-in-out;
}

.header a {
    color: var(--color-primary);
}

.logo {
    padding: 0.3rem;
}

.logo-title h1#main {
    font-size: var(--font-default);
    font-weight: 700;
}

.navbar {
    margin-left: auto;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
}

.header .icons {
    width: 30px;
    height: 45px;
    display: flex;
    align-items: center;
}

.header .icons .iconitem {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;

}

.header .icons a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    text-decoration: none;
    color: var(--color-primary);
}

.header .icons a i {
    font-size: 2.2rem;
    font-weight: 100;
}

.header .icons #hiddenmenu {
    display: none;
}

/* header end */

/* top start */
.top {
    position: relative;
    min-height: 100vh;
    overflow: hidden;
    background-image: url(../images/webp/wallpaper.webp);
    background-size: cover;
    background-position: center;
}

.top #top-img {
    position: absolute;
    width: 90%;
    top: -5rem;
    left: -15rem;
}

.top .text-box#top-text-box {
    position: absolute;
    top: 8rem;
    right: 3rem;

    width: 30rem;
    height: 27rem;
    display: flex;
    flex-direction: column;
    align-items: start;
    padding: 2rem;
    gap: 1.7rem;

    color: var(--color-primary);
    background: #fff;
    writing-mode: vertical-rl;

    box-shadow: 5px 5px 15px 5px #666;
}

.top .text-box#top-text-box h2 {
    font-size: 2rem;  
}

.top .text-box#top-text-box h3 {
    font-size: 1.5rem;  
}
/* top end */

/* message start */
.message {
    position: relative;
    padding: 5rem;
    color: var(--color-primary);
    z-index: 9;
}

.message-content {
    display: flex;
    flex-wrap: wrap;
}

.text-block,
.img-block {
    flex: 1;
    min-width: 300px;
}

.text-block {
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding-right: 2rem;
}

.message-content .text-block {
    text-align: start;
}

/* message end */

/* news start */

.news {
    padding-left: 2rem;
    padding-right: 2rem;
}

.news .news-container {
    margin-top: 2rem;
    margin-bottom: 2rem;
    width: 100%;
    /* 任意の幅に変更可能 */
    border: 3px solid #B3E5FC;
    border-radius: 1rem;
    padding: 1rem;
    overflow: hidden;
    /* 枠外のコンテンツを隠す */
}

.news .news-content {
    height: 200px;
    /* 任意の高さに変更可能 */
    overflow-y: auto;
    /* 縦方向にスクロールバーを表示 */
}

.news .news-item {
    border-bottom: 1px dashed gray;
    /* 日付毎に点線で区切る */
    padding-bottom: 1rem;
    margin-bottom: 1rem;
}

.news .news-item p {
    font-size: larger;
    color: #272727;
}

.news .news-item p a {
    color: tomato;
}

.news time {
    font-size: medium;
    font-weight: bold;
    color: gray;
    display: block;
    margin-bottom: 0.5rem;
}

/* news end */

/* gift start */

.gift {
    position: relative;
    width: 100%;
    padding: 2rem 4%;
    background: white;
    min-height: 100vh;
}

.gift-container {
    display: flex;
    flex-wrap: wrap;
}

.gift-container .swiper,
.gift-container .text-box {
    flex: 1;
    width: 100%;
    min-width: 300px;
}

.gift-container img {
    width: 100%;
    height: auto;
    vertical-align: middle;
    font-style: italic;
    background-repeat: no-repeat;
    background-size: cover;
    shape-margin: 0.75rem;
    border-radius: 2rem;
}

.gift-container .text-box {
    padding-top: 4rem;
    padding-left: 3rem;
}

.gift-container .text-box p{
    padding-left: 1rem;
    padding-right: 1rem;
}

/* タブレット・スマートフォン対応 */
@media only screen and (max-width: 1024px) {
    .gift-container {
        flex-direction: column;
        align-items: center;
        justify-content: center;
    }

    .gift-container .swiper {
        width: 90%;
        padding: 2rem;
    }

    .gift-container .text-box {
        padding-top: 2rem;
        padding-left: 0;
        text-align: center;
    }
}
/* gift end */

/* banner start */  
.banner {
    width: 100%;
    padding: 2rem 9%;
}

.banner-container {
    max-width: 1200px;
    margin: 0 auto;
}

.banner-link {
    display: block;
    transition: opacity 0.3s ease;
}

.banner-link:hover {
    opacity: 0.8;
}

.banner-link img {
    width: 100%;
    height: auto;
    border-radius: 10px;
}

@media (max-width: 768px) {
    .banner {
        padding: 2rem 5%;
    }
}

/* banner end */

/* items start */

.items {
    position: relative;
    width: 100%;
    padding: 2rem 4%;
    background: #f2f2f2;
    min-height: 100vh;
}

.grid-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); 
    gap: 10px;
    padding: 2rem;
}

.grid-item {
    background-color: white; 
    border: 1px solid #ccc; 
    padding: 20px; 
    border-radius: 2rem;
    display: flex;
    flex-direction: column;
    text-align: start;
}

.item-img {
    width: 11rem;
    height: 7rem;
    vertical-align: middle;
    font-style: italic;
    background-repeat: no-repeat;
    background-size: cover;
    shape-margin: 0.75rem;
    border-radius: 2rem;
}

.item-name {
    padding-top: .5rem;
}

.item-link-btn {
    margin-top: auto;
    bottom: 0;
}

/* items end */

/* about start */

.about {
    position: relative;
    width: 100%;
    padding: 2rem 4%;
    background: white;
    min-height: 100vh;
}

.about-container {
    display: flex;
    flex-wrap: wrap;
}

.about-container .swiper,
.about-container .text-box {
    flex: 1;
    width: 100%;
    min-width: 300px;
}

.about-container img {
    width: 100%;
    height: auto;
    vertical-align: middle;
    font-style: italic;
    background-repeat: no-repeat;
    background-size: cover;
    shape-margin: 0.75rem;
    border-radius: 2rem;
}

.about-container .text-box {
    padding-top: 4rem;
    padding-left: 4rem;
}

.about-container .text-box p{
    padding-left: 1.5rem;
    padding-right: 1.5rem;
}
/* about end */

.contact {
    padding: 2rem 4%;
}

.contact .phone-number {
    display: flex;
    align-items: center;
    justify-content: center;
}

.contact .phone-number i {
    font-size: 5rem;
}

.contact .phone-number p {
    font-size: 5rem;
}

.contact-form {
    max-width: 800px;
    margin: 2rem auto;
    padding: 0 2rem;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: bold;
}

.required {
    color: #e74c3c;
    margin-left: 0.2rem;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 0.8rem;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-size: 1rem;
    font-family: 'Noto Sans JP', sans-serif;
}

.form-group textarea {
    resize: vertical;
    min-height: 120px;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #172c66;
}

.submit-btn {
    background-color: #172c66;
    color: white;
    padding: 1rem 2rem;
    border: none;
    border-radius: 5px;
    font-size: 1rem;
    cursor: pointer;
    transition: background-color 0.3s ease;
    width: 100%;
    font-family: 'Noto Sans JP', sans-serif;
}

.submit-btn:hover {
    background-color: #0f1d40;
}

@media (max-width: 768px) {
    .contact-form {
        padding: 0 1rem;
    }
}

/* footer start */
footer {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background-color: #eee;
}

footer .navbar {
    margin-right: auto;
    padding: 2rem;
}

footer img {
    width: 100%;
}
/* footer end */


/* スマートフォン */
@media only screen and (max-width: 600px) {
    html {
        font-size: 40%;
    }

}

/* タブレット */
/* @media only screen and (min-width: 601px) and (max-width: 1024px) { */
@media only screen and (max-width: 1024px) {
    html {
        font-size: 55%;
    }

    /* header start  */
    .navbar {
        height: 5rem;
    }

    .header .icons #hiddenmenu {
        display: flex;
        width: 100%;
        height: 100%;
        font-size: 3rem;
        color: var(--color-primary);
    }

    .header .navbar {
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: #eee;
        border-top: .1rem solid rgba(205, 170, 124, 0, 2);
        border-bottom: .1rem solid rgba(205, 170, 124, 0, 2);
        padding: 1rem;
        clip-path: polygon(0 0, 100% 0, 100% 0, 0 0);
        justify-content: space-evenly;
    }

    .header .navbar.active {
        clip-path: polygon(0 0, 100% 0, 100% 100%, 0 100%);
    }

    .logo-title h1#main {
        font-size: 2em;
    }

    .logo-title p#sub {
        display: none;
    }

    /* header end */
    /* top start */

    .top #top-img {
        display: none;
    }

    .top {
        position: static;
        display: flex;
        align-items: center;
        justify-content: center;
    }

    .top .text-box#top-text-box {
        position: static;
        width: 70%;
        height: 70%;
    }

    .top .text-box#top-text-box h2 {
        font-size: 2em;
        font-weight: 700;
    }

    .top .text-box#top-text-box h3 {
        font-size: 1.7em;
    }

    .top .text-box#top-text-box p {
        font-size: 1.5em;
        letter-spacing: .2rem;
    }
    /* top end */

    /* items start */

    .grid-container {
        display: grid;
        grid-template-columns: repeat(2, 1fr); 
        gap: 10px;
        padding: 2rem;
    }

    /* items end */
    
    /* about start */

    .about-container {
        flex-direction: column;
        align-items: center;
        justify-content: center;
    }

    .about-container .swiper {
        width: 90%;
        padding: 2rem;
    }
    /* about end */

    
}

.form-message {
    text-align: center;
    padding: 1rem;
    margin: 1rem 0;
    border-radius: 5px;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.form-message.success {
    background-color: #e8f5e9;
    color: #2e7d32;
    border: 1px solid #a5d6a7;
    opacity: 1;
}

.form-message.error {
    background-color: #ffebee;
    color: #c62828;
    border: 1px solid #ffcdd2;
    opacity: 1;
}

.form-message i {
    font-size: 1.5rem;
    vertical-align: middle;
    margin-right: 0.5rem;
}

#contactForm {
    transition: opacity 0.3s ease;
}

.video-container {
    position: relative;
    width: 100%;
    max-width: 100%; /* 画面幅を超えないように調整 */
    margin: 0 auto; /* 中央寄せ */
    padding-top: 56.25%; /* 16:9 アスペクト比 */
    overflow: hidden; /* 横スクロールを防ぐ */
}

.video-container iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: none;
}
  
