@charset "utf-8";

/*
Theme Name: Farine ECommerce
Theme URI: http://seous.info/
Version:2.0.0
Author: R3098
Author URI: http://seous.info/
Text Domain:farine-ec 
*/

@import url("woocommerce/style.css");

@font-face {
  font-family: "FontAwesome";
  src: url("font/fontawesome-webfont.woff") format("woff"), url("font/fontawesome-webfont.ttf") format("truetype"), url("font/fontawesome-webfont.eot?") format("eot");
  font-display: swap;
}

.FontAwesome {
  font-family: "FontAwesome";
}

@font-face {
  font-family: "sns_icon";
  src: url("font/sns_icon.woff") format("woff"),url("font/sns_icon.woff2") format("woff2") ;
  font-display: swap;
}

.sns_icon {
  font-family: "sns_icon";
}

html {
  font-size: 90%;
  word-break: break-word;
}

body {
  line-height: 1.8;
  font-size: 1rem;
  margin: 0;
  padding: 0;
}

#wrapper {
  overflow-x: hidden;
  margin: 0 auto;
  width: 1080px;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
  font-weight: 500;
  line-height: 1.1;
  color: #333;
  font-size: 2rem;
  margin: 15px 0 10px;
}

.page {
    --base-size: 2rem; /* h1の基準サイズ */
}
h1 {
    font-size: var(--base-size); /* 基準サイズ */
}
h2 {
    font-size: calc(var(--base-size) * 0.8); /* h1の80% */
}
h3 {
    font-size: calc(var(--base-size) * 0.65); /* h1の65% */
}

#header_img h1 {
    margin: 0;
}

section {
    margin: 10px 0 10px;
    width: 780px;
}
section img {
    width: 100%;
    height: auto;
}

p {
  margin: 0 0 10px;
}

.entry-content p {
  margin-bottom: 16px;
}

header {
  background-color: #fff;
  padding-bottom: 20px;
  width: 1080px;
  margin: 0 auto;
}

.content {
  display: flex;
  margin-top: 10px;
}

ul li {
  line-height: 2;
}
a {
  color: #2d5c88;
}

#sidebar {
  width: 300px;
}

ul.sidebar_widget li.widget {
  margin-bottom: 20px;
}

#sidebar ul li {
  list-style: none;
  line-height: 2;
}

#header_content {
  width: 1080px;
  margin: 0 auto;
}

#header_cach {
  display: flex;
}

#logo {
  padding: 10px 0;
  display: flex;
  align-self: center;
  /* ← 追加 */
  flex: 1 1 auto;
  /* ← 追加 */
}

#logo img {
  width: 150px;
}

p.access {
  display: table-cell;
  font-size: 1.3rem;
  text-align: right;
  vertical-align: middle;
  padding: 10px 40px;
}

a.access {
  color: #000;
}

#header_img {}

.header_txt {
  color: #000;
  font-family: 'Noto Serif JP', serif;
  font-size: 3.6vw;
  height: 50%;
  width: 100%;
  position: absolute;
  top: 50%;
  left: 50%;
  text-align: center;
  -ms-transform: translate(-50%, -50%);
  -webkit-transform: translate(-50%, -50%);
  transform: translate(-50%, -50%);
  line-height: 1.3;
  box-shadow: 0px 3px 10px rgba(0, 0, 0, .8) -webkit-filter: drop-shadow(0px 3px 10px rgba(0, 0, 0, .8));
  filter: drop-shadow(0px 0px 10px rgba(0, 0, 0, .8));
  font-weight: 600;
  letter-spacing: 6px;
}

.headtitle {
  font-size: 1.6vw;
  line-height: 2.4;
  letter-spacing: 2px;
}

#header_img img {
  display: block;
  height: auto;
  width: 100%;
  clear: both;
}

.header_txt span {
  display: block;
}

#main_nav_status,
#main_nav_open,
#main_nav_close {
  display: none;
}

ul.menu {
  margin: 0;
}

.youtube-container {
  position: relative;
  width: 100%;
  height: auto;
  margin: 10px auto ;
}

.youtube-container:before {
  content: '';
  display: block;
  padding-top: 75%;
}

.youtube-container>iframe {
  position: absolute;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
}

footer {
  font-family: "Noto Sans Japanese";
  background-color: #4682b4;
  color: #FFF;
  font-size: 90%;
  overflow: hidden;
  padding: 12px 25px;
  margin-top: 30px;
  text-align: center;
  clear: both;
}

footer a:link,
footer a:visited {
  color: #FFF;
  text-decoration: none;
}

footer a:hover {
  color: #CBD2D0;
  text-decoration: underline;
}

#follow_nav {
  bottom: 1%;
  right: 2%;
  position: fixed;
  z-index: 10;
  font-size: 0;
}

#follow_nav a {
  color: green;
  font-size: 0.8rem;
  font-weight: bold;
  padding: 8px 0 4px;
  display: inline-block;
  text-decoration: none;
  line-height: 1;
  opacity: 0.5;
}

#follow_nav a:before {
  font-family: FontAwesome;
  display: block;
  font-size: 5rem;
  margin-bottom: 3px;
}

a.go_home::before {
  content: "\f015";
}

a.go_contact::before {
  content: "\f199";
}

a.go_tel::before {
  content: "\f098";
}

a.go_cart::before {
  content: "\f07a";
}

a.go_top::before {
  content: "\f151";
}

#follow_nav a.go_top>span,
#follow_nav a.go_home,
#follow_nav .go_contact,
#follow_nav .go_tel,
#follow_nav .go_cart {
  display: none;
}

small {
  font-size: 1rem;
}

input,
textarea {
  background: #f9f9f9 none repeat scroll 0 0;
  border: 1px solid #c0c0c0;
  border-radius: 4px;
  color: #999;
  padding: 5px;
}

.wpcf7-form input.wpcf7-form-control.wpcf7-submit {
  padding: 8px 20px;
}

input[type="text"],
input[type="email"],
input[type="tel"],
textarea {
  background: #f9f9f9 none repeat scroll 0 0;
  border: 1px solid #c0c0c0;
  border-radius: 4px;
  color: #999;
  padding: 5px;
}

.wpcf7-form textarea {
  width: 98%;
}

/* comment*/

#commentform textarea.focused,
#commentform input.focused,
#searchform input.focused,
.wpcf7-form textarea.focused,
.wpcf7-form input.focused {
  background-color: #cff;
}

.sns {
  margin: 0 auto 1%;
  text-align: center;
  overflow: hidden;
}

.sns ul {
  list-style: none;
  margin: 15px 2px 0;
  padding: 0;
}

.sns ul li {
  float: left;
  width: 48%;
  padding: 1%;
  list-style: none;
}

.sns li a {
  font-size: 1.4rem;
  position: relative;
  display: block;
  padding: 10px;
  color: #fff;
  text-align: center;
  text-decoration: none;
}

.sns li a:visited {
  color: #fff;
}

.sns li a:hover {
  color: #fff;
}

.sns li a:before {
  content: none;
  margin: 0;
}

.sns .twitter a {
  background: #000; /* X公式の黒ベースに変更 */
}

.sns .twitter a:hover {
  background: #111; /* 少し明るい黒 */
}

.sns .twitter a:before {
  font-family: inherit; /* フォントアイコンを使わず通常文字に */
  content: "X";         /* アイコン代わりに文字X */
  margin-right: 5px;
  font-weight: bold;
}
.sns .twitter a:hover {
  background: #333; /* ← ボタン全体の背景色を変える */
}

.sns .facebook a {
  background: #3b5998;
}

.sns .facebook a:hover {
  background: #2c4373;
}

.sns .facebook a:before {
  font-family: sns_icon;
  content: "\e902";
  margin-right: 3px;
}

.sns .googleplus a {
  background: #db4a39;
}

.sns .googleplus a:hover {
  background: #ad3a2d;
}

.sns .googleplus a:before {
  font-family: sns_icon;
  content: "\e906";
  margin-right: 3px;
  vertical-align: top;
}

.sns .hatebu a {
  background: #5d8ac1;
}

.sns .hatebu a:hover {
  background: #43638b;
}

.sns .hatebu a:before {
  font-family: sns_icon;
  content: "\e908";
  margin-right: 3px;
  vertical-align: top;
}

.sns .line a {
  background: #25af00;
}

.sns .line a:hover {
  background: #219900;
}

.sns .line a:before {
  font-family: sns_icon;
  content: "\e911";
  margin-right: 3px;
  vertical-align: top;
}

.sns .pocket a {
  background: #f03e51;
}

.sns .pocket a:hover {
  background: #c0392b;
}

.sns .pocket a:before {
  font-family: sns_icon;
  content: "\e915";
  margin-right: 3px;
  vertical-align: top;
}

div#tab-description h2 {
    display: none;
}

li#tab-title-reviews.has-review a {
  animation: blinkEffect 2.2s ease infinite;
}

li#tab-title-reviews.has-review.active a {
animation:none;
}

@keyframes blinkEffect {
  0% {
    opacity: 0;
  }
  100% {
    opacity: 10;
  }
}

@media (min-width: 641px) {
  #main_nav {
    flex: 1 1 auto;
  }
  #main_nav a {
    color: inherit;
    font-size: 1rem;
    text-decoration: none;
    display: block;
  }
  #main_nav>ul {
    display: flex;
    flex-flow: row nowrap;
    height: 100%;
  }
  #main_nav>ul>li {
    flex: 1 1 auto;
    display: flex;
    position: relative;
    justify-content: center;
    align-items: center;
  }
  /*#main_nav>ul>li:not(:first-child)::before*/
  #main_nav>ul>li:not(:first-child):not(:last-child)::before {
    content: "";
    display: inline-block;
    border-left: 1px solid;
    height: calc(100% - 60px);
  }
  #main_nav>ul>li:last-child {
    background: pink;
  }
  #main_nav>ul>li>a {
    padding: 15px 1em;
    width: 100%;
    text-align: center;
  }
  #main_nav>ul>li:hover {
    background: #ddd;
  }
  #main_nav>ul>li>ul {
    display: none;
    position: absolute;
    top: calc( 100% - 15px);
    z-index: 9999;
    text-align: left;
    background: rgba(64, 64, 64, .9);
    color: #fff;
    padding: .5em 2em;
    box-shadow: .125em .125em .25em rgba(64, 64, 64, .9);
    left: -1em;
    width: intrinsic;
    width: -moz-max-content;
    width: -webkit-max-content;
    width: max-content;
    max-width: 30vw;
    line-height: 1.8;
  }
  #main_nav>ul>li:hover>ul {
    display: block;
  }
  #main_nav>ul>li li {
    display: block;
  }
  #main_nav>ul>li ul {
    padding-left: 2em;
  }
  #main_nav>ul>li>ul a:hover {
    background: #333;
    box-shadow: -1.5em 0 .125em .06125em #333, 1em 0 .125em .06125em #333;
  }
  #main_nav>ul ul ul li:first-child>a::before {
    display: block;
    content: "";
    position: absolute;
    border: .5em solid transparent;
    border-top-color: gray;
    transform: translate(-1.25em, .7em);
  }
}

@media only screen and (max-width: 640px) {
  h1,
  h2,
  h3,
  h4,
  h5,
  h6 {
    font-size: 1.6rem;
  }

.page {
    --base-size: 1.6rem; /* h1の基準サイズ */
}
h1 {
    font-size: var(--base-size); /* 基準サイズ */
}
h2 {
    font-size: calc(var(--base-size) * 0.8); /* h1の80% */
}
h3 {
    font-size: calc(var(--base-size) * 0.65); /* h1の65% */
}

  /* nav */
  header {
    background-color: #fff;
    padding-bottom: 10px;
    width: 100%;
  }
  #header_content {
    width: 100%;
  }
  #header_cach {
    position: relative;
  }
  #logo {
    padding: 5px 10px;
    display: block;
    align-self: normal;
    flex: unset;
    width: 120px;
    height: 37px;
  }
  #logo img {
    /* max-height: 48px; */
    width: 120px;
    height: 37px;
    display: block;
  }
  #main_nav_open,
  #main_nav_close {
    color: #FFF;
    font-family: FontAwesome;
    font-size: 22px;
    background: #203141;
    border-bottom: 1px dotted #999;
    cursor: pointer;
    position: absolute;
    bottom: 0;
    right: 0;
    line-height: 1;
    padding: 12px;
    height: 22px;
    width: 24px;
  }
  #main_nav_open,
  #main_nav_close {
    text-align: center;
    height: 24px;
  }
  #main_nav_open::before {
    content: '\f0c9';
  }
  #main_nav_close::before {
    content: '\f00d';
  }
  #main_nav_open::before,
  #main_nav_close::before {
    vertical-align: -1px;
  }
  #main_nav_status:not(:checked)~#main_nav_open,
  #main_nav_status:checked~#main_nav_close,
  #main_nav_status:checked~#main_nav {
    display: block;
  }
  #main_nav {
    display: none;
    overflow: auto;
    position: absolute;
    top: 47px;
    width: 100%;
    z-index: 9999;
    color: #fff;
    background: rgba(64, 64, 64, .9);
    padding: 0.5em 1em 0.5em 0;
    font-size: 1rem;
    font-family: 'Noto Serif JP', serif;
  }
  #main_nav a {
    text-decoration: none;
    color: inherit;
    display: block;
  }
  #main_nav a:hover {
    background: #333;
    box-shadow: -1.75em 0 .125em .1em #333, 0em 0 .125em .1em #333;
  }
  #main_nav>ul>li>a:hover {
    background: #333;
    box-shadow: -50vw 0 #333, 50vw 0 #333;
  }
  #main_nav>ul {
    list-style: none;
    padding: 0 25px;
  }
  #main_nav a:before {
    content: "◆";
    margin-right: 8px;
  }
  #main_nav>ul ul {
    list-style: none;
    padding-left: 1em;
  }
  #main_nav li {
    padding: 0.7em 0;
    border-top: 1px dotted rgba(160, 160, 160, .5);
  }
  #main_nav>ul>li:first-child {
    border-top: none;
  }
  #wrapper {
    width: 100%;
  }
  .content {
    display: block;
  }
  section {
    width: calc(100% - 30px);
    margin: 0 auto;
    padding: 0 15px;
  }
  #sidebar {
    margin: 0 auto;
    width: calc(100% - 30px);
  }

  section img {
    width: 100%;
    height: auto;
}

ul.sidebar_widget {
    margin: 0;
    padding: 0;
}

.youtube-container {
    position: relative;
    width: 100%;
    height: auto;
}
  /* footer */
  footer {
    background-color: #000;
    color: #FFF;
    font-size: 90%;
    overflow: hidden;
    padding: 10px 25px 58px;
    margin-top: 0;
    text-align: center;
    clear: both;
  }
  small {
    font-size: 0.8rem;
  }
  #follow_nav {
    background: #005a87 none repeat scroll 0 0;
    display: inline;
    bottom: 0;
    left: 0;
    position: fixed;
    text-align: center;
    width: 100%;
    z-index: 10;
    font-size: 0;
  }
  #follow_nav a {
    color: #fff;
    font-size: 0.7rem;
    font-weight: bold;
    padding: 8px 0 4px;
    width: 25%;
    opacity: 1;
    text-decoration: none;
    line-height: 1;
  }
  #follow_nav a:before {
    font-family: FontAwesome;
    display: block;
    font-size: 2rem;
    margin-bottom: 3px;
  }
  #follow_nav a.go_top span,
  #follow_nav a.go_home,
  #follow_nav .go_tel,
  #follow_nav .go_contact,
  #follow_nav .go_cart {
    display: inline-block;
  }
  .sns li {
    width: 48%;
  }
  .woocommerce div.product .woocommerce-tabs .panel {
      margin: 1em 0 2em;
      padding: 0;
  }
}
.alert {
    line-height: 2.2;
    background-color: #fdeff2;
    margin: 15px 5px 20px;
    padding: 20px;
    position: relative;
    z-index: 1;
}

.animated .move_line {
    animation: 5s 1s both slidein;
}
.move_line {
	background: linear-gradient(transparent 66%, #81ef81 66%);
	background-position: 200% 0;
	background-size: 200% 100%;
	background-repeat: no-repeat;
}

@keyframes slidein {
	from {
		background-position: 200% 0;
	}

	to {
		background-position: 0;
	}
}
.grecaptcha-badge { visibility: hidden; }

.sq-card-wrapper .sq-card-message {
    margin-bottom: 0!important;
}
.sq-card-wrapper .sq-card-message {
    margin-top: 0;
    margin-bottom: 0;
}
.woocommerce-checkout #payment div.payment_box {
    margin-bottom: 0;
}
#add_payment_method #payment div.payment_box .form-row, .woocommerce-cart #payment div.payment_box .form-row, .woocommerce-checkout #payment div.payment_box .form-row {
    margin: 0;
}
.woocommerce-privacy-policy-text p {
    margin: 0;
}
#add_payment_method #payment div.form-row, .woocommerce-cart #payment div.form-row, .woocommerce-checkout #payment div.form-row {
    padding: 0 1em 1em;
}
.woocommerce form .form-row label,.payment_box.payment_method_square_credit_card p {
    font-size: 1rem;
}
ul.woocommerce-error {
    background: red;
    padding: 20px;
    margin: 0 0 10px;
    color: #fff;
    border: none;
    border-radius: 6px;
}
