@charset "Shift_JIS";

/*
 * Smartphone/tablet adjustments for the legacy Homepage Builder layout.
 * Desktop layout (769px and wider) is intentionally unchanged.
 */
@media screen and (max-width: 768px) {

  .shipping-notice-pc {
    display: none !important;
  }

  .shipping-notice-mobile {
    display: block;
    text-align: left;
    margin: 12px 0 16px;
  }

  .shipping-notice-mobile h4 {
    margin: 0 0 12px;
    font-size: 1.25rem;
    line-height: 1.45;
  }

  .shipping-notice-mobile p {
    margin: 0 0 8px;
    line-height: 1.75;
  }
  html {
    -webkit-text-size-adjust: 100%;
  }

  *,
  *::before,
  *::after {
    box-sizing: border-box;
  }

  body {
    min-width: 0 !important;
    margin: 0;
    overflow-x: hidden;
    text-align: left;
    font-size: 100% !important;
    line-height: 1.7;
  }

  #hpb-container {
    width: 100% !important;
    max-width: 100%;
    margin: 0 !important;
    background-image: none !important;
  }

  #hpb-header {
    width: 100% !important;
    height: auto !important;
    min-height: 72px;
    padding: 8px 12px 0;
  }

  #hpb-headerMain {
    width: 100% !important;
  }

  #hpb-headerLogo {
    width: 100% !important;
    float: none !important;
  }

  #hpb-headerLogo a {
    display: block;
    width: 100% !important;
    height: 64px !important;
    margin: 0 !important;
    background-size: contain !important;
    background-position: center center !important;
  }

  #hpb-inner {
    display: flex !important;
    flex-direction: column;
    width: 100% !important;
    padding-top: 0 !important;
    position: static !important;
  }

  #hpb-inner::after {
    display: none !important;
  }

  #hpb-nav {
    order: 1;
    position: static !important;
    width: 100% !important;
    height: auto !important;
    padding: 8px;
    overflow: visible !important;
    background: #53a000 !important;
  }

  #hpb-nav ul {
    display: grid !important;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1px;
    width: 100%;
    margin: 0 !important;
    padding: 0 !important;
    background: rgba(255, 255, 255, 0.45);
  }

  #hpb-nav li {
    display: block !important;
    width: auto !important;
    float: none !important;
    margin: 0 !important;
  }

  #hpb-nav li a,
  #hpb-nav li a:link,
  #hpb-nav li a:visited,
  #hpb-nav li a:hover,
  #hpb-nav li a:active {
    display: flex !important;
    align-items: center;
    justify-content: center;
    width: 100% !important;
    min-height: 50px;
    height: auto !important;
    padding: 8px 6px;
    color: #fff !important;
    background: #53a000 !important;
    text-decoration: none !important;
    text-align: center;
  }

  #hpb-nav li a:hover,
  #hpb-nav li a:focus,
  #hpb-nav li a:active {
    background: #00522e !important;
  }

  #hpb-nav li span.en {
    display: none !important;
  }

  #hpb-nav li span.ja {
    display: block !important;
    font-size: 16px;
    line-height: 1.4;
  }

  #hpb-wrapper {
    order: 2;
    width: 100% !important;
    margin: 0 !important;
    float: none !important;
    position: static !important;
  }

  #hpb-aside {
    order: 3;
    width: auto !important;
    margin: 20px 12px 0 !important;
    padding: 16px 12px !important;
    float: none !important;
    text-align: center;
    background: #f4f9f9;
    border-top: 1px solid #d8e5e5;
  }

  .hpb-layoutset-01 #hpb-aside {
    padding-top: 16px !important;
  }

  #hpb-footer {
    order: 4;
    width: 100% !important;
    padding-top: 16px !important;
  }

  #hpb-footerMain {
    width: 100% !important;
    height: auto !important;
    min-height: 38px;
  }

  #hpb-footerMain p {
    padding: 8px 6px !important;
    line-height: 1.5 !important;
  }

  #hpb-footerExtra1 {
    display: none !important;
  }

  .hpb-layoutset-01 #hpb-title {
    width: 100% !important;
    height: auto !important;
    margin: 0 0 20px !important;
  }

  .hpb-layoutset-01 #hpb-title h2 {
    width: 100% !important;
    height: 0 !important;
    margin: 0 !important;
    padding-top: 55.14%;
    background-size: contain !important;
    background-position: center top !important;
  }

  .hpb-layoutset-02 #hpb-title {
    width: auto !important;
    margin: 0 12px 12px !important;
    overflow-wrap: anywhere;
  }

  .hpb-layoutset-02 #hpb-title h2 {
    height: auto !important;
    min-height: 45px;
    margin-top: 18px;
    padding: 8px 0;
    overflow: visible !important;
    font-size: 20px !important;
    line-height: 1.4 !important;
  }

  .hpb-layoutset-02 #hpb-title h2 span.ja,
  .hpb-layoutset-02 #hpb-title h2 span.en {
    display: block;
    padding-left: 10px !important;
    font-size: 1em !important;
    line-height: 1.4 !important;
  }

  #hpb-main {
    width: auto !important;
    margin: 0 12px !important;
    padding-top: 8px !important;
    float: none !important;
    overflow-wrap: anywhere;
  }

  #hpb-wrapper img,
  #hpb-aside img {
    max-width: 100% !important;
    height: auto !important;
  }

  iframe,
  video,
  object,
  embed {
    display: block;
    width: 100% !important;
    max-width: 100% !important;
    height: auto !important;
  }

  #access iframe {
    aspect-ratio: 630 / 480;
  }

  table {
    width: 100% !important;
    max-width: 100% !important;
    border-collapse: collapse;
    font-size: 14px;
  }

  th,
  td {
    padding: 7px 4px;
    overflow-wrap: anywhere;
  }

  #shopinfo {
    padding-top: 0 !important;
  }

  #shopinfo p {
    width: auto !important;
    max-width: 360px;
    margin-right: auto !important;
    margin-left: auto !important;
    text-align: left;
  }

  #banner {
    width: 225px !important;
    max-width: 100%;
    margin-right: auto !important;
    margin-left: auto !important;
  }

  #pagetop {
    margin-bottom: 24px !important;
  }

  .news-photo {
    float: none !important;
    padding: 0 0 8px !important;
    text-align: center;
  }

  font[size="+1"] {
    font-size: 1.05rem !important;
  }

  font[size="+2"],
  font[size="+3"] {
    font-size: 1.25rem !important;
    line-height: 1.6;
  }

  form#mailform {
    padding: 0 !important;
  }

  #mailform input[type="text"],
  #mailform input[type="email"],
  #mailform input[type="tel"],
  #mailform textarea,
  #mailform select {
    width: 100% !important;
    max-width: 100% !important;
    font-size: 16px !important;
  }

  #mailform input[type="submit"],
  #mailform input[type="reset"] {
    min-height: 44px;
    margin: 4px 4px 4px 0;
    padding: 8px 12px;
    font-size: 16px;
  }
}

@media screen and (max-width: 320px) {
  #hpb-nav ul {
    grid-template-columns: 1fr;
  }

  #hpb-headerLogo a {
    height: 56px !important;
  }

  #hpb-header {
    min-height: 64px;
  }

  table {
    font-size: 13px;
  }
}


/* Requested smartphone refinements */
@media screen and (max-width: 768px) {
  #shopinfo .parking-note {
    display: block;
    clear: both;
    width: 100%;
    margin-top: 8px;
    text-align: center;
    white-space: nowrap;
  }

  #shopinfo a[href^="tel:"],
  #contact a[href^="tel:"] {
    color: inherit;
    text-decoration: underline;
    text-underline-offset: 2px;
  }

  #toppage-info table {
    width: max-content !important;
    min-width: 100%;
    font-size: 12px;
  }

  #toppage-info table th,
  #toppage-info table td {
    white-space: nowrap;
    word-break: keep-all;
    overflow-wrap: normal;
    padding-left: 3px;
    padding-right: 3px;
  }
}


/* Smartphone refinements: form labels, shipping tables and notices */
@media screen and (max-width: 768px) {
  #mailform table.mailform th {
    display: block !important;
    width: 100% !important;
    padding: 12px 10px 6px !important;
    color: #173b24 !important;
    background: #eef7e8 !important;
    border-left: 5px solid #53a000 !important;
    font-size: 17px !important;
    font-weight: 700 !important;
    line-height: 1.35 !important;
    text-align: left !important;
  }

  #mailform table.mailform th p {
    display: inline !important;
    margin: 0 0 0 8px !important;
    color: #5b685f !important;
    font-size: 12px !important;
    font-weight: 400 !important;
  }

  #mailform table.mailform th span {
    color: #c40000 !important;
    font-size: 18px !important;
  }

  #mailform table.mailform td {
    display: block !important;
    width: 100% !important;
    padding: 8px 4px 16px !important;
  }

  .shipping-notice {
    margin: 14px 0 16px;
    padding: 14px 12px;
    background: #f5faef;
    border: 1px solid #c9dfb7;
    text-align: left;
  }

  .shipping-notice h4 {
    margin: 0 0 10px;
    color: #234f2b;
    font-size: 19px;
    line-height: 1.45;
    text-align: center;
  }

  .shipping-notice p {
    margin: 0 0 7px;
    padding: 0;
    font-size: 15px;
    line-height: 1.7;
    text-align: left;
  }

  .shipping-notice p:last-child {
    margin-bottom: 0;
  }

  .shipping-table {
    width: max-content !important;
    min-width: 100%;
    table-layout: auto !important;
    font-size: 12px !important;
  }

  .shipping-table th,
  .shipping-table td {
    white-space: nowrap !important;
    word-break: keep-all !important;
    overflow-wrap: normal !important;
    padding: 6px 3px !important;
  }
}

/* 送料変更案内: PCは従来表示、スマホのみ読みやすい表示 */
.shipping-notice-mobile {
  display: none;
}

/* V5 fix: restore mobile shipping notice after the desktop default rule above */
@media screen and (max-width: 768px) {
  .shipping-notice-mobile {
    display: block !important;
  }
}

/* V6: emphasize shipping fee tables on smartphones only */
@media screen and (max-width: 768px) {
  .shipping-table {
    border-collapse: separate !important;
    border-spacing: 0 !important;
    font-size: 14px !important;
    font-weight: 700 !important;
    background: #ffffff !important;
    border: 2px solid #4f8f2f !important;
    border-radius: 8px !important;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.12) !important;
  }

  .shipping-table tr:first-child td,
  .shipping-table tr:first-child th {
    color: #ffffff !important;
    background: #3f7f24 !important;
    font-size: 14px !important;
    font-weight: 700 !important;
  }

  .shipping-table td,
  .shipping-table th {
    padding: 9px 5px !important;
    border-right: 1px solid #a9c99a !important;
    border-bottom: 1px solid #a9c99a !important;
    text-align: center !important;
    vertical-align: middle !important;
  }

  .shipping-table tr:nth-child(even) td {
    background: #f2f8ed !important;
  }

  .shipping-table tr:last-child td {
    border-bottom: 0 !important;
  }

  .shipping-table td:last-child,
  .shipping-table th:last-child {
    border-right: 0 !important;
    color: #b00000 !important;
    font-size: 15px !important;
  }

  .shipping-table tr:first-child td:last-child,
  .shipping-table tr:first-child th:last-child {
    color: #ffffff !important;
  }
}
