/*
Theme Name: Storefront Onda Brewery
Description: 恩田酒造オリジナル子テーマ - 伝統と革新を表現する酒蔵サイト
Template: storefront
Version: 1.0.0
Author: 恩田酒造
*/

@import url("../storefront/style.css");

/* ===============================
   カラーパレット（酒蔵向け）
   =============================== */
:root {
    --brewery-dark: #282726;         /* ダーク */ 
    --brewery-light: #ffffff;        /* ライト */ 
    --brewery-accent: #f49c17;       /* 麦色 */
    --brewery-red: #da340b;          /* 赤色 */
    --brewery-primary: var(--brewery-dark);
}

/* ===============================
   基本フォント設定
   =============================== */
body {
    font-family: "futura-pt", "Yu Gothic", "游ゴシック体", "Noto Sans JP", sans-serif !important;
    color: var(--brewery-dark);
    line-height: 1.7;
}

h1, h2, h3, h4, h5, h6 {
    color: var(--brewery-primary);
}

h1 a, h2 a, h3 a, h4 a, h5 a, h6 a{
    font-weight: bold;
}

/* ===============================
   ヘッダーカスタマイズ
   =============================== */
.site-header {
    background-color: #fff;
    color: #ccc;
}

.site-branding .site-title a {
    color: white;
    font-weight: 700;
    font-size: 1.8em;
}

.main-navigation a {
    color: white;
    font-weight: 500;
    transition: color 0.3s ease;
}

.main-navigation a:hover {
    color: var(--brewery-accent);
}

.site-header {
    padding-top: 0;
    padding-bottom: 0;
}

.site-header > .col-full{
    display: flex;
    flex-direction: row;
    flex-wrap: nowrap;
    align-items: center;
    max-width: 1200px;
    width: 100%;
}

.woocommerce-active .site-header .site-branding{
    width: 20vw;
    margin-bottom: 0;
}

.site-header .site-branding img{
    height: 100px;
    max-width: 230px;
    max-height: none;
}

.woocommerce-active .site-header .main-navigation{
    width: 100%;
}

.woocommerce-active .site-header .site-search{
    display: none;
    width: 5rem;
    height: 5rem;
}

.site-search .widget_product_search{
    position: absolute;
    top: 0;
    right: 0;
}

.woocommerce-active .site-header .site-header-cart{
    width: 5rem;
    height: 5rem;
}
.woocommerce-active .site-header .site-header-cart ul{
    position: absolute;
    top: 0;
    right: 0;
}

.main-navigation ul{
    display: flex;
    flex-direction: row;
    flex-wrap: nowrap;
    align-items: center;
}

.main-navigation ul li{
    font-size: .8rem;
    width: fit-content;
}

.site-header {
    padding-top: 0;
    position: fixed;
    left: 0;
    top: 0;
    width: 100vw;
    margin-bottom:0 !important;
}

.site-header > .col-full{
    display: flex;
    flex-direction: row;
    flex-wrap: nowrap;
    align-items: center;
    max-width: 1200px;
    width: calc(100% - calc(2.617924em * 1));
}

.woocommerce-active .site-header .site-branding{
    width: 20vw;
    margin-bottom: 0;
}

.site-search .widget_product_search{
    position: absolute;
    top: 0;
    right: 0;
}

.woocommerce-active .site-header .site-header-cart{
    width: 5rem;
    height: 5rem;
}
.woocommerce-active .site-header .site-header-cart ul{
    position: absolute;
    top: 0;
    right: 0;
}

.main-navigation ul{
    display: flex;
    flex-direction: row;
    flex-wrap: nowrap;
    align-items: center;
}

.main-navigation ul li{
    font-size: .8rem;
    width: fit-content;
}

.col-full {
    position: relative;
    width: 100vw;
    max-width: 100vw;
    
}

div#content {
    margin-top: 65px;
}

.main-visual-section{
    position: absolute;
    top: 0;
    left: 0;
    display: flex;
    flex-direction: column;
    flex-wrap: nowrap;
    justify-content: space-between;
    height: calc(100vh - 96px);
}

.woocommerce-active .site-header .site-header-cart{
    position: absolute;
    right: 4rem;
    top:0;
    width: 1rem;
    height: 100%;
}

.woocommerce-active .site-header .site-header-cart ul{
    margin: 0;
    padding: 0;
    margin-block-start: 0;
    margin-block-end: 0;
    padding-inline-start: 0;
    height: 100%;
    display: flex;
    flex-direction: row;
    align-items: center;
    list-style: none;
}

.woocommerce-active .site-header .site-header-cart ul li{
    height: 1rem;
    width: 1rem;
}

.site-header-cart .woocommerce-Price-amount{
    display: none !important;
}

.site-header-cart .cart-contents .count{
    display: none !important;
}

.site-header-cart .cart-contents{
    padding: 0;
}

.site-header-cart .cart-contents::after{
    content: "";
    background: url(/ondasyuzo/wp-content/themes/storefront-onda-brewery/assets/images/cart.svg) no-repeat center;
    width: 26px;
    height: 20px;
    background-size: contain;
}

/* ===============================
   年齢確認モーダル
   =============================== */
.age-verification-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8);
    z-index: 9999;
    display: flex;
    justify-content: center;
    align-items: center;
}

.age-verification-content {
    background: white;
    padding: 40px;
    border-radius: 10px;
    max-width: 500px;
    width: 90%;
    text-align: center;
    box-shadow: 0 10px 30px rgba(0,0,0,0.3);
}

.age-verification-content h3 {
    color: var(--brewery-primary);
    font-size: 1.8em;
    margin-bottom: 20px;
    border-bottom: 2px solid var(--brewery-accent);
    padding-bottom: 10px;
}

.sake-warning {
    font-size: 1.2em;
    color: var(--brewery-wine);
    font-weight: bold;
    margin: 20px 0;
}

.birth-date-inputs {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin: 20px 0;
}

.birth-date-inputs select {
    padding: 10px;
    border: 2px solid var(--brewery-primary);
    border-radius: 5px;
    font-size: 1em;
    min-width: 80px;
}

.verification-buttons {
    margin: 30px 0 20px;
}

.verification-buttons button {
    padding: 12px 30px;
    margin: 0 10px;
    border: none;
    border-radius: 5px;
    font-size: 1em;
    cursor: pointer;
    transition: all 0.3s ease;
}

.verification-buttons button[type="submit"] {
    background-color: var(--brewery-primary);
    color: white;
}

.verification-buttons button[type="submit"]:hover {
    background-color: var(--brewery-dark);
}

.verification-buttons button[type="button"] {
    background-color: #ccc;
    color: #333;
}

.verification-buttons button[type="button"]:hover {
    background-color: #999;
}

.legal-warnings {
    border-top: 1px solid #eee;
    padding-top: 20px;
    margin-top: 20px;
}

.legal-warnings p {
    color: var(--brewery-wine);
    font-size: 0.9em;
    margin: 5px 0;
    font-weight: bold;
}

/* ===============================
   商品ページカスタマイズ
   =============================== */
.woocommerce div.product .summary {
    background-color: var(--brewery-cream);
    padding: 30px;
    border-radius: 10px;
    border: 1px solid var(--brewery-accent);
}

.woocommerce div.product .product_title {
    color: var(--brewery-primary);
    border-bottom: 2px solid var(--brewery-accent);
    padding-bottom: 15px;
}

.woocommerce div.product .price {
    color: var(--brewery-wine);
    font-size: 1.5em;
    font-weight: bold;
}

.woocommerce div.product .woocommerce-product-attributes {
    background-color: white;
    border: 1px solid var(--brewery-light);
    border-radius: 5px;
    padding: 20px;
    margin: 20px 0;
}

/* ===============================
   ボタンスタイル
   =============================== */
.woocommerce .button,
.woocommerce button.button,
.woocommerce input.button {
    background-color: var(--brewery-primary);
    color: white;
    border-radius: 5px;
    padding: 12px 25px;
    font-weight: 500;
    transition: all 0.3s ease;
}

.woocommerce .button:hover,
.woocommerce button.button:hover,
.woocommerce input.button:hover {
    background-color: var(--brewery-dark);
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
}

.woocommerce .button.alt {
    background-color: var(--brewery-accent);
    color: var(--brewery-dark);
}

.woocommerce .button.alt:hover {
    background-color: #c19b26;
}

/* ===============================
   商品一覧カスタマイズ
   =============================== */
.woocommerce ul.products li.product {
    background-color: white;
    border-radius: 10px;
    padding: 20px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    transition: transform 0.3s ease;
}

.woocommerce ul.products li.product:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.15);
}

.woocommerce ul.products li.product .woocommerce-loop-product__title {
    color: var(--brewery-primary);
}

.woocommerce ul.products li.product .price {
    color: var(--brewery-wine);
    font-weight: bold;
}

/* ===============================
   フッターカスタマイズ
   =============================== */
.site-footer {
    background-color: var(--brewery-dark);
    color: white;
    border-top: 3px solid var(--brewery-accent);
}

.site-footer a {
    color: var(--brewery-accent);
}

.site-footer a:hover {
    color: white;
}

/* ===============================
   レスポンシブ対応
   =============================== */
@media (max-width: 768px) {
    .age-verification-content {
        padding: 20px;
        margin: 20px;
    }
    
    .birth-date-inputs {
        flex-direction: column;
        align-items: center;
    }
    
    .birth-date-inputs select {
        width: 100%;
        max-width: 200px;
        margin: 5px 0;
    }
    
    .verification-buttons button {
        display: block;
        width: 100%;
        margin: 10px 0;
    }
}

/* ===============================
   和風装飾要素
   =============================== */
.sake-decoration {
    position: relative;
}

.sake-decoration::before {
    content: "🍶";
    position: absolute;
    top: -10px;
    left: -20px;
    font-size: 1.2em;
    opacity: 0.3;
}

.traditional-border {
    border: 2px solid var(--brewery-accent);
    border-image: linear-gradient(45deg, var(--brewery-accent), var(--brewery-primary)) 1;
}

/* ===============================
   商品属性表示
   =============================== */
.sake-attributes {
    background: linear-gradient(135deg, var(--brewery-cream), white);
    padding: 20px;
    border-radius: 8px;
    margin: 20px 0;
    border-left: 4px solid var(--brewery-accent);
}

.sake-attributes h4 {
    color: var(--brewery-primary);
    margin-bottom: 15px;
    font-size: 1.2em;
}

.sake-attributes .attribute-item {
    display: flex;
    justify-content: space-between;
    padding: 8px 0;
    border-bottom: 1px dotted #ccc;
}

.sake-attributes .attribute-item:last-child {
    border-bottom: none;
}

.sake-attributes .attribute-label {
    font-weight: 500;
    color: var(--brewery-secondary);
}

.sake-attributes .attribute-value {
    color: var(--brewery-dark);
    font-weight: bold;
}

.storefront-handheld-footer-bar{
    display: none;
}