@charset "utf-8";

:root {
    --bgcolor: #0f2350;
    --blue: #1d4299;
    --white: #fffafa;
    --black: #333333;
    --bg: #f7f7f7;
}

a {
    cursor: pointer;
}

body {
    font-family: Zen Old Mincho;
    color: var(--black);
    background-color: var(--bg);
}

main {
    margin: 0 auto;
}
/* 各セクションのmargin-top */
.sec_margin_top {
    margin-top: 5rem;
}
/* セクションのコンテナ内margin-top */
.con_margin_top {
    margin-top: 2rem;
}
/* コンテナを中央揃えにする */
.w-container {
    width: 90%;
    max-width: 1080px;
    margin-left: auto;
    margin-right: auto;
}
/* 各セクションのタイトル */
h2.sec_title {
    position: relative;
    font-size: clamp(1.5rem, 0.7305rem + 3.1169vw, 2.25rem);
    text-align: center;
    border-bottom: 5px solid #dddddd;
    width: 30%;
    margin: 0 auto;
}
/* 各セクションのタイトル下の線 */
h2.sec_title::after {
    content: "";
    position: absolute;
    bottom: -5px;
    left: 50%;
    transform: translateX(-50%);
    width: 70px;
    height: 5px;
    background-color: var(--blue);
}

@media (max-width: 768px) {
    h2.sec_title {
        width: 50%;
    }
}

/* --------------------ボタン-------------------- */

.btn {
    text-align: center;
}

.btn a {
    display: inline-block;
    background: var(--bgcolor);
    color: var(--white);
    padding: 8px 50px 8px 30px;
    margin-top: 50px;
    position: relative;
}

.btn a::after {
    content: "";
    background-image: url(../images/arrow.svg);
    background-size: contain;
    width: 15px;
    height: 15px;
    position: absolute;
    top: 0;
    bottom: 0;
    right: 10px;
    margin: auto;
    transition: 0.2s;
}

.btn a:hover::after {
    right: 5px;
}

/* --------------------header-------------------- */

.header {
    position: sticky;
    top: 0;
    background-color: var(--bgcolor);
    z-index: 10;
    width: 100%;
}

.header_inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    max-width: 1180px;
    width: 90%;
    margin-inline: auto;
    padding: 1rem;
    color: var(--white);
}

.header_logo {
    width: 60px;
    height: 30px;
}

.header_logo img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.header .header_nav ul {
    display: flex;
}

.header .header_nav ul li {
    padding: 0 0.5rem;
}

.header .header_nav ul li > a {
    position: relative;
    color: var(--white);
    text-decoration: none;
}

.header .header_nav ul li a::after {
    position: absolute;
    left: 0;
    content: "";
    width: 100%;
    height: 1px;
    background: var(--white);
    bottom: -1px;
    transform: scale(0, 1);
    transform-origin: center top;
    transition: transform 0.3s;
}

.header .header_nav ul li > a:hover::after {
    transform: scale(1, 1);
}

/* Responsive Styles */
@media (max-width: 768px) {
    #menu-btn {
        display: block;
        width: 30px;
        height: 20px;
        position: fixed;
        top: 1rem;
        right: 1rem;
        z-index: 3;
        cursor: pointer;
    }

    #menu-btn span,
    #menu-btn span::before,
    #menu-btn span::after {
        content: "";
        height: 2px;
        width: 100%;
        border-radius: 3px;
        background: var(--white);
        position: absolute;
        transition: 0.2s;
    }

    #menu-btn span {
        top: 0;
    }

    #menu-btn span::before {
        top: 8px;
    }

    #menu-btn span::after {
        top: 16px;
    }

    #menu-btn.open span {
        top: 8px;
        transform: rotate(45deg);
    }

    #menu-btn.open span::before {
        opacity: 0;
    }

    #menu-btn.open span::after {
        top: 0;
        transform: rotate(-90deg);
    }

    .header_nav {
        width: 300px;
        height: 100vh;
        position: fixed;
        top: 0;
        right: -100%;
        z-index: 2;
        background: var(--bgcolor);
        transition: 0.5s;
    }

    .header_nav.open {
        right: 0;
    }

    .header .header_nav ul {
        display: flex;
        flex-direction: column;
        padding: 4rem 2rem;
    }

    .header .header_nav ul li {
        padding-bottom: 1.5rem;
    }
}

/* --------------------メインビジュアル-------------------- */

.mainsec {
    position: relative;
    height: 90vh;
    overflow: hidden;
}

.main_text {
    display: flex;
    flex-direction: row;
    align-items: flex-start; /* 上揃え */
    position: absolute;
    z-index: 1;
    right: 20%; /* 右側に配置 */
    top: 50%;
    transform: translateY(-50%);
    text-align: right; /* 右寄せ */
}

.main_text h1 {
    writing-mode: vertical-rl;
    font-size: clamp(3.75rem, 2.386rem + 6.82vw, 7.5rem);
    margin: 0;
}

.main_text p {
    writing-mode: vertical-rl;
    font-size: clamp(1rem, 0.818rem + 0.91vw, 1.5rem);
    margin-top: -2rem;
    align-self: flex-start;
}

.mainvisual {
    position: relative;
    height: 100%;
}

.mainvisual img {
    position: absolute;
    opacity: 0;
    transition: opacity 3s ease-in-out, transform 5s ease-in-out;
    width: 100%;
    height: 100%;
    filter: grayscale(50%);
}

.mainvisual img.active {
    opacity: 1;
    transform: scale(1.1);
}

/* デスクトップ用のスタイル */
.mainvisual .desktop {
    display: block;
}

.mainvisual .sp {
    display: none;
}

/* SP用のスタイル */
@media (max-width: 768px) {
    .mainvisual .desktop {
        display: none;
    }

    .mainvisual .sp {
        display: block;
    }
}

/* --------------------製品について-------------------- */

@keyframes infinity-scroll-left {
    from {
        transform: translateX(0);
    }
    to {
        transform: translateX(-100%);
    }
}
.scroll-infinity__wrap {
    display: flex;
    overflow: hidden;
}
.scroll-infinity__list {
    display: flex;
    list-style: none;
    padding: 0;
}
.scroll-infinity__list--left {
    animation: infinity-scroll-left 80s infinite linear 0.5s both;
}
.scroll-infinity__item {
    width: calc(100vw / 6);
}

.scroll-infinity__item > img {
    width: 100%;
}

.scroll-infinity__item a:hover {
    opacity: 0.7;
}

.scroll-infinity:hover ul {
    animation-play-state: paused;
}

/* --------------------新着情報-------------------- */

.card_list {
    max-width: 960px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

.cardlist_item {
    min-height: 300px;
    background: #fff;
    padding: 1.5rem 1rem;
}

.card_label {
    font-size: 14px;
}

.card_pic {
    width: 100%;
    height: 154px;
}

.card_pic img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.card_body {
    margin-top: 0.5rem;
}

time {
    line-height: 1.6;
    color: var();
    padding: 0.5rem 0;
    margin-bottom: 1rem;
    border-bottom: 1px solid #9a9696;
}

.card_title {
    font-weight: bold;
    font-size: 1.2rem;
    margin-top: 0.5rem;
}

.cardlist_item a {
    display: block;
    transition: 0.2s;
}

.cardlist_item a:hover {
    opacity: 0.7;
}

/* =============================================
SPはここから
============================================= */
@media (max-width: 768px) {
    .card_list {
        max-width: 300px;
        grid-template-columns: repeat(1, 1fr);
    }

    /* ボタン */
    .btn a::after {
        position: absolute;
        right: 15px;
    }

    .btn a:hover::after {
        right: 10px;
    }
}

/* --------------------酒造見学・体験 / オンライン-------------------- */

.contents_link {
    width: 100%;
    min-height: 300px;
    height: 100%;
}

.contents_link_container {
    display: flex;
    width: 100%;
    min-width: 1080px;
    margin: 0 auto;
}

.link_item {
    flex-grow: 1;
    width: 50%;
}

.zoomIn_image {
    height: 100%;
    display: flex;
    justify-content: center;
    overflow: hidden;
    position: relative;
    cursor: pointer;
    filter: grayscale(30%);
}

.zoomIn_image .contents_text {
    color: #383838;
    font-weight: bold;
    text-shadow: 1px 1px 0 hsla(0, 0%, 22%, 0.315);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: auto;
    position: absolute;
    flex-direction: column;
    height: 80%;
    width: 80%;
    background-color: #ffffff88;
    backdrop-filter: blur(5px);
    top: 0;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 10;
}

.zoomIn_image img {
    height: 100%;
    width: 100%;
    transition: transform 0.6s ease-in-out;
}

.zoomIn_image:hover img {
    transform: scale(1.05);
}

.zoomIn_image::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgb(0, 0, 0);
    opacity: 0;
    transition: all 0.3s;
}

@media (max-width: 768px) {
    .contents_link_container {
        display: flex;
        flex-direction: column;
        width: 100%;
        min-width: none;
        margin: 0 auto;
    }

    .link_item {
        width: 100%;
    }
}

/* --------------------map-------------------- */

iframe {
    display: block;
    width: 80%;
    height: 300px;
    margin: 0 auto;
}

/* --------------------アクセス-------------------- */

.table {
    width: 60%;
    margin-left: auto;
    margin-right: auto;
    text-align: center;
}

table {
    table-layout: fixed;
    width: 100%;
    margin: 0 auto;
}

table tr {
    border-bottom: 1px solid #b5b1b1;
}

table th,
table td {
    padding: 1rem 0;
    border: none;
}

table th {
    width: 30%;
}

.table td {
    width: 50%;
    text-align: left;
}

/* sp */
@media (max-width: 768px) {
    table th,
    table td {
        width: 100%;
        display: block;
    }

    table th {
        width: 100%;
    }

    .table td {
        padding: auto;
        width: 100%;
        text-align: center;
    }
}

/* --------------------footer-------------------- */
.footer {
    background: var(--bgcolor);
    color: #fff;
    padding: 2rem;
}

.footer-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 960px;
    width: 94%;
    margin: 0 auto;
}

.footer-content {
    width: 30%;
    display: block;
    margin-left: 1rem;
}

.footer_logo {
    width: 200px;
    height: 200px;
}

.footer_logo img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.footer_nav {
    margin-bottom: 1.5rem;
}

.footer_nav .list {
    padding: 0.5rem;
}

.footer_nav_item .list:last-child {
    padding-bottom: 0;
}

.footer_nav_item .list a {
    color: var(--white);
    font-size: 1rem;
}

.footer-sns ul li {
    color: var(--white);
}

.footer-container-image {
    width: 50%;
    margin: auto;
}

small {
    display: block;
    width: 100%;
    color: #fff;
    padding: 0.8rem;
    text-align: center;
}

@media (max-width: 768px) {
    footer {
        padding: 1.5rem 0 0;
    }

    .footer-container {
        display: flex;
        flex-wrap: wrap-reverse;
        justify-content: center;
        gap: 2rem;
        margin: 2rem auto;
    }

    .footer-content {
        width: 100%;
        order: 1;
    }

    .footer_logo {
        width: 100%;
        order: 2;
        margin: 0 auto 1rem;
        text-align: center;
    }

    .footer_nav {
        margin-bottom: 1.5rem;
    }

    .footer_nav ul {
        display: flex;
        justify-content: center;
        align-items: center;
        flex-direction: column;
    }

    .footer_nav li {
        padding: 0.5rem;
    }

    .footer-sns {
        justify-content: center;
    }

    .footer-sns ul li {
        padding: 0 0.5rem;
    }

    .footer-container-image {
        width: 100%;
        order: 3;
    }
}

/* -----------------------------------------各ページ構成用------------------------------------------------ */
.section {
    padding: 100px 0;
}

.section_header h1 {
    position: relative;
    font-size: clamp(1.5rem, 0.7305rem + 3.1169vw, 2.25rem);
    text-align: center;
    border-bottom: 5px solid #dddddd;
    width: 70%;
    margin: 0 auto;
}

.section_header h1::after {
    content: "";
    position: absolute;
    bottom: -5px;
    left: 50%;
    transform: translateX(-50%);
    width: 70px;
    height: 5px;
    background-color: var(--blue);
}

/* -----------------------------------------固定ページ------------------------------------------------ */

.section_body {
    width: 100%;
    max-width: 1080px;
    margin: 2rem auto 0;
}

.content {
    width: 90%;
    margin: 0 auto;
}

/* -----------------------------------------新着情報ページ------------------------------------------------ */

main .archive_container {
    display: flex;
    justify-content: space-between;
}

main .archive_category,
.archive_year {
    margin: 0;
    padding: 0;
}

main .archive_title {
    font-weight: bold;
    font-size: 14px;
    line-height: 1;
    color: var(--black);
    margin-bottom: 10px;
}

main .archive_list {
    display: flex;
    flex-wrap: wrap;
}

main .archive_list li {
    padding-left: 0.5rem;
    padding-right: 0.5rem;
    margin-bottom: 1rem;
}

main .archive_list li a {
    position: relative;
    font-weight: bold;
    line-height: 1.4;
    display: inline-block;
    padding: 10px 30px;
    text-align: center;
    text-decoration: none;
    letter-spacing: 0.1em;
    color: var(--bgcolor);
    border: 1px solid #707070;
    color: #000;
    font-size: 14px;
}

main .archive_list li a:hover {
    color: var(--white);
    background-color: var(--bgcolor);
    border-color: var(--bgcolor);
}

/* 現在表示しているページのカテゴリーのli */

main .archive_list li.current-cat {
    a {
        color: var(--white);
        background-color: var(--bgcolor);
        border-color: var(--bgcolor);
    }
}

main .archive_list li a[aria-current] {
    color: var(--white);
    background-color: var(--bgcolor);
    border-color: var(--bgcolor);
}

/* -----------------------------------------個別投稿ページ------------------------------------------------ */

/* 全体のコンテンツスタイル */
.post_content {
    margin-top: 20px;
    padding: 20px;
    background-color: #fff;
    border: 1px solid #ddd;
    border-radius: 5px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.section_header h1 {
    width: 70%;
}

/* 記事のヘッダー部分 */
.post_head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
}

/* 日付表示 */
.post_head time {
    font-size: 14px;
    color: #888;
}

/* カテゴリのスタイル */
main .category {
    display: flex;
}

main .category_list {
    display: flex;
}

main .category_item {
    margin-left: 10px;
}

/* カテゴリリンクのスタイル */
main .category_item a {
    text-decoration: none;
    font-size: 14px;
    color: var(--white);
    background-color: var(--blue);
    padding: 5px 10px;
    border-radius: 3px;
    transition: background-color 0.3s;
}

/* アクティブ状態のカテゴリリンク */
main .category_item a.is-active {
    background-color: var(--blue);
}

/* マウスオーバー時のカテゴリリンク */
main .category_item a:hover {
    opacity: 0.7;
}

/* 記事詳細部分 */
.post_detail {
    margin-top: 20px;
}

/* 記事画像 */
.post_detail img {
    max-width: 100%;
    height: auto;
    margin: 2rem auto 0;
    display: block;
}

.post_text {
    margin-top: 2rem;
    margin-bottom: 2rem;
}

/* 記事テキスト */
.post_detail p {
    font-size: 16px;
    line-height: 1.2;
    color: #333;
    margin-bottom: 10px;
}

/* post_footer */

/* 全体のフッタースタイル */
.post_footer {
    padding: 20px;
    border-top: 1px solid #ddd;
    text-align: center;
}

/* 前後の記事リンクのコンテナ */
.prev-next-link {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 4rem;
}

/* 前の記事リンク */
.prev_link,
.next_link {
    display: flex;
    align-items: center;
    text-decoration: none;
    color: var(--black);
    transition: color 0.3s;
}

/* マウスオーバー時のリンク変化 */
.prev_link:hover,
.next_link:hover {
    color: var(--blue);
}

/* 前後の記事情報コンテナ */
.post_prev,
.post_next {
    text-align: left;
}

/* 前後の記事ラベル */
.prev_next_label {
    font-weight: bold;
    margin: 0;
    font-size: 14px;
    color: var(--black);
}

/* 記事タイトル */
.prev_link p,
.next_link p {
    margin: 0;
    font-size: 16px;
}

/* 記事一覧リンク */
.news_page_btn {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-top: 2rem;
}

.news_page_link {
    display: block;
    text-decoration: none;
    text-align: center;
    font-size: 1.5rem;
    transition: color 0.3s;
    height: 100%;
    width: 20%;
}

.latest_header h2 {
    text-align: center;
}

.news_page_label {
    margin-top: 1rem;
}

/* -----------------------------------------お問い合せページ------------------------------------------------ */

.form {
    max-width: 650px;
    width: 100%;
    margin: 0 auto;
    padding: 2rem;
}

.form_item {
    display: flex;
    justify-content: space-between;
    padding: 1rem;
}

.form_label {
    font-weight: bold;
    margin-bottom: 1rem;
    vertical-align: bottom;
}

/* 必須項目 */
.required {
    display: inline-block;
    background: #ea7474;
    color: #fff;
    font-size: 0.75rem;
    padding: 0.2rem;
    margin-left: 0.5rem;
    vertical-align: bottom;
}

/* 入力エリアのサイズ */

.form_content {
    width: 60%;
}

.form_content #fullname,
.form_content #email {
    width: 100%;
    height: 40px;
    background: #fff;
    padding: 5px;
    border-radius: 5px;
    border: 1px solid #707070;
}

/* テキストエリアのサイズ */
.form_content textarea {
    width: 100%;
    height: 200px;
    background: #fff;
    padding: 5px;
    border-radius: 5px;
    border: 1px solid #707070;
}
/* 送信ボタン */
.btn-send,
.btn-back {
    display: block;
    width: 130px;
    background: var(--maincolor);
    color: var(--white);
    font-weight: bold;
    text-align: center;
    padding: 0.5rem 0;
    margin: 0 auto;
    border-radius: 5px;
    border: 1px solid var(--white);
}

/* パンくずリスト */
.breadcrumb {
    width: 100%;
    background-color: var(--maincolor);
    color: var(--white);
    border-bottom: 1px dotted var(--white);
}

.breadcrumb_inner {
    width: 90%;
    margin: 0 auto;
    padding: 0.5rem;
}

/* -----------------------------------------製品投稿ページ------------------------------------------------ */

.productlist {
    max-width: 960px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

.productcard {
    width: 90%;
}
.productcardlist_item {
    min-height: 300px;
    background: #fff;
    padding: 1.5rem 1rem;
}
.productcard_item a:hover {
    opacity: 0.7;
}

.productcard_detail {
    font-size: 12px;
}
.productcard_pic {
    width: 100%;
    height: 154px;
}

.productcard_pic img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.productcard_body {
    margin-top: 0.5rem;
}

.productcard_title {
    font-weight: bold;
    font-size: 1.2rem;
    margin-top: 0.5rem;
}

.productcard_item a {
    display: block;
    transition: 0.2s;
}
