/*
Theme Name: uemura-soroban
 */

/* ============================
   CSS変数
============================ */
:root {
  /* Color */
  --color-primary: #2477CB;       /* メインブルー（ボタン・見出し） */
  --color-primary-dark: #1a5fa3;  /* ホバー用（primaryを少し暗く） */
  --color-line: #06C755;          /* LINEグリーン */
  --color-line-dark: #05a848;     /* LINEホバー用 */
  --color-accent: #F5A629;        /* オレンジ（バッジ） */
  --color-brown: #C47735;         /* ブラウン */
  --color-beige: #EBB485;         /* ベージュ */
  --color-bg-blue: #F0F7FC;       /* 薄いブルー背景 */
  --color-text: #333739;          /* 基本テキスト */
  --color-white: #FFFFFF;         /* 白 */

  /* Font */
  --font-base: 'IBM Plex Sans JP', sans-serif;   /* メイン日本語 */
  --font-sub: 'Noto Sans JP', sans-serif;         /* サブ日本語 */
  --font-en: 'Figtree', sans-serif;               /* 英数字用 */

  /* Size */
  --content-width: 1040px;
  --radius-sm: 8px;
  --radius-md: 16px;
  --radius-full: 90px;  /* 丸ボタン用 */

  /* Shadow */
  --shadow: 0px 3px 6px rgba(0, 0, 0, 0.16);
}

/* ============================
	common
============================ */

#wrapper {
  min-width: 1120px;
  overflow: hidden;
}

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

.flex-start {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-start;
}

.flex-center {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
}

.ofi {
  font-family: "object-fit: cover;";
  -o-object-fit: cover;
  object-fit: cover;
}

.bold {
  font-weight: 700;
}

.display-inline-block {
  display: inline-block;
}

@media screen and (max-width: 767px) {
  #wrapper {
    min-width: 0;
    margin: 0 auto;
    box-shadow: 0 0 10px rgba(30, 30, 30, 0.3);
  }
}

/* ============================
	sp-menu
============================ */
#sp-menu {
  box-sizing: border-box;
  position: absolute;
  transition: all 0.35s ease;
  top: 60px;
  left: 0;
  background-color: #f0edea;
  width: 100%;
  padding: 40px 20px;
  opacity: 0;
  pointer-events: none;
  z-index: 998;
}

#sp-menu.opening {
  position: fixed;
  transition: all 0.35s ease;
  opacity: 1;
  pointer-events: auto;
  height: calc(100vh - 60px);
}

#sp-menu .menu-item a {
  text-align: center;
  line-height: 1;
  display: block;
  width: 100%;
  padding: 15px 0;
  font-weight: 700;
}

#sp-menu .sub-menu {
  display: none;
  opacity: 0;
  transition: 0.35s all ease;
}

#sp-menu .sub-menu.opening {
  display: block;
  opacity: 1;
  transition: 0.35s all ease;
}

#sp-menu .sp-contact-box {
  margin: 30px 0 0;
}

#sp-menu .sp-contact-box a {
  box-sizing: border-box;
  display: block;
  text-align: center;
  padding: 6px 0;
}

#sp-menu .sp-contact-box a + a {
  margin: 10px 0 0;
}

/* btn-hamburger */
#btn-hamburger {
  position: relative;
  top: 0;
  right: 0;
  background-color: var(--color-primary);
  width: 60px;
  height: 60px;
  z-index: 1000;
  cursor: pointer;
}

#btn-hamburger .border {
  position: absolute;
  left: 15px;
  transition: opacity, transform 0.2s ease;
  background: #fff no-repeat left top;
  width: 30px;
  height: 2px;
  z-index: 1;
}

#btn-hamburger .border:first-child {
  top: 33%;
}

#btn-hamburger .border:nth-child(2) {
  transform: rotate(0);
  opacity: 1;
  top: 50%;
}

#btn-hamburger .border:nth-child(3) {
  top: 67%;
}

#btn-hamburger.opening .border:first-child {
  transform: rotate(45deg);
  top: 50%;
}

#btn-hamburger.opening .border:nth-child(2) {
  opacity: 0;
}

#btn-hamburger.opening .border:nth-child(3) {
  top: 50%;
  transform: rotate(-45deg);
}

/* ============================
	header
============================ */
#header {
  top: 0;
  left: 0;
  width: 100%;
  z-index: 999;
  background: var(--color-white);
  box-shadow: 0px 10px 10px #0000000D;
}

#header.h-fixed {
  position: fixed;
}

#header .h-inner {
  flex-wrap: nowrap;
  align-items: center;
  gap: 20px;
  width: 100%;
  padding: 10px 20px;
}

#h-site-logo img {
  width: 307px;
  height: auto;
}

#h-right {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 6px;
}

#h-contact-box {
  align-items: center;
  gap: 20px;
}

.h-tel {
  gap: 7px;
  font-size: 26px;
  line-height: 1.15;
}

.h-btn-trial {
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--color-primary);
  padding: 19px 32px 16px;
  border-radius: var(--radius-full);

  & span {
    color: var(--color-white);
    font-size: 14px;
    line-height: 1;
    white-space: nowrap;
  }
}

.h-btn-line {
  display: flex;
  align-items: center;
  gap: 6px;
  background: var(--color-line);
  padding: 17px 25px 13px;
  border-radius: var(--radius-full);

  & span {
    color: var(--color-white);
    font-size: 14px;
    line-height: 1.21;
    white-space: nowrap;
  }
}

.h-btn-line img {
  width: 20px;
  height: 19px;
}

#h-gnav-box.flex-start {
  align-items: center;
}

#h-gnav-box .menu-item + .menu-item {
  margin: 0 0 0 20px;
}

.h-gnav {
  gap: 20px;
}

.h-gnav a {
  position: relative;
  font-size: 14px;
  line-height: 1.43;
  padding-inline-start: 18px;

  &::before {
    content: "";
    position: absolute;
    left: 0;
    top: calc(50% - 2px);
    translate: 0 -50%;
    width: 10px;
    height: 10px;
    background: var(--color-brown);
    border-radius: 2px;
    rotate: 45deg;
  }
}

#h-gnav-contact {
  margin-left: 30px;
}

#h-gnav-contact a {
  display: block;
  box-sizing: border-box;
  background-color: #111;
  text-align: center;
  color: #fff;
  font-size: 15px;
  font-weight: 600;
  line-height: 1;
  width: 160px;
  height: 40px;
  padding: 12px 0;
}

.h-right-sp {
  display: none;
}

@media screen and (max-width: 1000px) {
  .h-right-sp {
    display: flex;
    align-items: center;
    gap: 10px;
  }
}

@media screen and (max-width: 767px) {
  #header {
    margin: 0 auto;
    right: 0;
  }

  #header .h-inner {
    padding: 0 0 0 10px;
    gap: 10px;
  }

  #h-site-logo img {
    width: 160px;
  }

  .h-btn-trial {
    padding: 10px 12px;

    & span {
      font-size: 12px;
    }
  }
}

/* ============================
	footer
============================ */
#footer {
  position: relative;
  z-index: 1;
}

.home #footer {
  margin-top: -90px;
}

#footer .f-inner {
  padding: 50px 0 30px;
  background-color: var(--color-white);
  border-radius: 60px 60px 0px 0px;
}

#footer .f-content {
  display: flex;
  align-items: center;
  padding-bottom: 50px;
  border-bottom: 1px solid #E6E6E6;
}

.f-logo img {
  width: 265px;
  height: auto;
}

.f-address-wrap {
  margin-left: 30px;
}

.f-address {
  gap: 20px;
  margin: unset;
  font-size: 14px;
  line-height: 2.14;
  white-space: nowrap;
}

.f-btn-wrap {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-left: 80px;
}

.f-tel {
  line-height: 0.93;
  white-space: nowrap;
}

.f-instagram {
  align-self: flex-end;
}

.f-bottom {
  display: flex;
  justify-content: space-between;
  margin-top: 25px;
}

#footer .f-privacy {
  font-size: 14px;
  line-height: 1;
  text-decoration: underline;
}

#copyright {
  padding: 0;
}

#copyright p {
  font-size: 12px;
  line-height: 1;
  margin: 0;
}

@media screen and (max-width: 767px) {
  #footer .f-inner {
    padding: 60px 0;
    border-radius: 40px 40px 0 0;
  }

  #footer .f-content {
    flex-direction: column;
    padding-bottom: 32px;
  }

  .f-logo img {
    width: 200px;
  }

  .f-address-wrap {
    margin-left: 0;
    margin-top: 30px;
  }

  .f-address {
    display: flex;
    flex-direction: column;
    gap: 0;
  }

  .f-btn-wrap {
    margin: 24px 0 0;
  }

  .f-tel {
  }

  .f-instagram {
    align-self: center;
  }

  .f-bottom {
    flex-direction: column;
    align-items: center;
    gap: 20px;
  }
}

/* ============================
	mainvisual
============================ */
.mainvisual {
  width: 100%;
  /* margin: 60px 0 0; */
  margin-top: var(--header-height, 80px);
}

#top-mv .mv-inner {
  height: 600px;
  background-color: #e1e1e1;
}

#top-mv .mv-inner.flex-start {
  justify-content: center;
  align-items: center;
}

@media screen and (max-width: 767px) {
  #top-mv .mv-inner {
    height: 300px;
  }
}

#page-mv .mv-inner {
  padding: 100px 0;
  background-color: #e1e1e1;
}

#page-mv .page-ttl {
  margin: 0;
}

@media screen and (max-width: 767px) {
  #page-mv .mv-inner {
    padding: 60px 0;
  }
  #page-mv .page-ttl {
    font-size: 21px;
  }
}

/* ============================
	section
============================ */
.sec-inner {
  padding: 100px 0;
}

.sec-inner--sm {
  padding: 80px 0;
}

.sec-ttl {
  text-align: center;
  margin: 0;
}

.content-width {
  box-sizing: border-box;
  width: 1040px;
  padding: 0 20px;
  margin: 0 auto;
}

.content-box {
  margin: 50px 0 0;
}

@media screen and (max-width: 767px) {
  .sec-inner,
  .sec-inner--sm {
    padding: 60px 0;
  }

  .content-width {
    width: 100%;
  }
}

/* ============================
	breadcrumb
============================ */
.breadcrumbs {
  padding: 8px 0;
  background: var(--color-primary);
  font-size: 12px;
}

.breadcrumbs,
.breadcrumbs a,
.breadcrumbs span {
  color: #fff;
}

/* ============================
	pagenavi
============================ */
.wp-pagenavi {
  clear: both;
  /* margin: 30px 0 0; */
  margin: 30px 0;
  font-size: 16px;
  text-align: center;
}

.wp-pagenavi a,
.wp-pagenavi span {
  display: inline-block;
  width: 3em;
  height: 3em;
  margin: 0 0.5em;
  font-weight: bold;
  line-height: 3;
  color: #999;
  border: 2px solid #ccc;
  text-align: center;
  vertical-align: middle;
  transition: all 0.5s ease;
}

.wp-pagenavi a:hover,
.wp-pagenavi span {
  background: #000000;
  color: #fff;
  border-color: #000;
  opacity: 1;
  text-decoration: none;
}

.wp-pagenavi a:hover {
  transition: all 0.5s ease;
}

.wp-pagenavi .extend {
  width: 1em;
  color: #000;
  background: rgba(0, 0, 0, 0) none repeat scroll 0 0;
  border: medium none;
}

.wp-pagenavi .extend::after {
  content: "…";
}

.wp-pagenavi .previouspostslink,
.wp-pagenavi .nextpostslink {
  position: relative;
  width: 3em;
  height: 3em;
  background: #fff;
  text-indent: -999999px;
  vertical-align: middle;
}

.wp-pagenavi .previouspostslink::after,
.wp-pagenavi .nextpostslink::after {
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  bottom: 0;
  margin: auto;
  content: "";
  display: block;
  width: 5px;
  height: 5px;
  border-top: 2px solid #999;
  border-right: 2px solid #999;
}

.wp-pagenavi .previouspostslink::after {
  transform: rotate(225deg);
}

.wp-pagenavi .nextpostslink::after {
  transform: rotate(45deg);
}

.wp-pagenavi .previouspostslink:hover::after,
.wp-pagenavi .nextpostslink:hover::after {
  border-color: #fff;
}

.result_count {
  margin-bottom: 15px;
  text-align: center;
  font-size: 14px;
  color: #999;
}

/* ============================
	post parts
============================ */
.post-date {
  font-family: var(--font-en);
  font-size: 16px;
  min-width: 70px;
}

.post-cats {
  line-height: 1;
  margin: 0 0 0 20px;
}

.post-cats.flex-start {
  justify-content: flex-start;
  align-items: center;
}

.post-cat {
  display: block;
  background-color: var(--color-primary);
  color: var(--color-white);
  font-size: 12px;
  line-height: 1;
  padding: 8px 20px;
  text-align: center;
  border-radius: var(--radius-full);
  white-space: nowrap;
}

.post-cat + .post-cat {
  margin: 0 0 0 10px;
}

.post-cat:link {
  color: #fff;
}

.post-cat:visited {
  color: #fff;
}

/* ============================
	news list
============================ */
.news__content-box {
  margin: 0;
}

.news-list {
  flex: 1;
}

.news-item {
  padding: 20px 0;

  &:first-of-type {
    padding-top: 0;
  }

  &:last-of-type {
    border-bottom: 1px solid #E6E6E6;
  }
}

.news-item + .news-item {
  border-top: 1px solid #E6E6E6;
}

.news-item .post-ttl {
  font-size: 16px;
  font-weight: 500;
  margin: 0 0 0 40px;
}

@media screen and (max-width: 767px) {
  .news-item {
    padding: 12px 0;
  }

  .news-item .post-meta {
    width: 100%;
  }
  .news-item .post-ttl {
    margin: 12px 0 0;
  }
}

/* ============================
	card list
============================ */
.card-list {
  margin-top: -30px;
  margin-left: -80px;
}

.card-item {
  width: 280px;
  margin-top: 30px;
  margin-left: 80px;
}

.card-item .post-thumb img {
  width: 100%;
}

.card-item .post-info {
  margin-top: 20px;
}

.card-item .post-ttl {
  font-size: 15px;
  margin: 20px 0 0;
}

@media screen and (max-width: 767px) {
  .card-item {
    width: 100%;
  }
}

/* ============================
	contact form
============================ */
.contact-box .required {
  display: inline-block;
  background-color: #C47735;
  color: var(--color-white);
  font-weight: 700;
  font-size: 12px;
  line-height: 1;
  border-radius: 4px;
  margin: 0 10px 0 0;
  padding: 6px 8px;
}

.contact-box .optional {
  display: inline-block;
  background-color: #C6C6C6;
  color: var(--color-white);
  font-weight: 700;
  font-size: 12px;
  line-height: 1;
  border-radius: 4px;
  margin: 0 10px 0 0;
  padding: 6px 8px;
}

.contact-box input[type="text"],
.contact-box input[type="password"],
.contact-box input[type="email"],
.contact-box input[type="tel"],
.contact-box input[type="url"],
.contact-box input[type="number"],
.contact-box textarea {
  box-sizing: border-box;
  width: 100%;
  background: var(--color-white);
  border: 1px solid #C6C6C6;
  padding: 12px 20px;
  border-radius: 3px;
  line-height: 1;

  &::placeholder {
    color: #D5D5D5;
  }
}

.contact-box table {
  border-top: none;
  border-inline: none;
  margin: 0;
}

.contact-box th {
  box-sizing: border-box;
  width: 30%;
  background: var(--color-white);
  border-inline: none;
  padding-left: 0;

  & p {
    display: flex;
    align-items: center;
    margin: 0;
  }

  &.top {
    vertical-align: top;
    padding-top: 26px;
  }
}

.contact-box td {
  box-sizing: border-box;
  width: 70%;
  border-inline: none;
  padding: 20px 0;

  & p {
    margin: 0;
  }

  & .form-note {
    font-size: 12px;
    margin: 6px 0 0;
    opacity: 0.5;
  }
}

.contact-box .your-email {
  box-sizing: border-box;
  width: 100%;
}

.contact-box .zip {
  width: 150px;
  box-sizing: border-box;
}

.contact-box .your-address {
  box-sizing: border-box;
  width: 100%;
}

.contact-box .your-content {
  width: 100%;
  box-sizing: border-box;
  resize: vertical;
  height: 120px;
  line-height: 1.5;
}

.contact-box select {
  position: relative;
  box-sizing: border-box;
  background: #f9f9f9;
  border: 1px solid #C6C6C6;
  border-radius: 3px;
  padding: 16px 20px;
  font-size: 16px;
  line-height: 1;
  width: 210px;
  cursor: pointer;
}

.contact-box {
  & .form-select {
    position: relative;

    &::after {
      content: "";
      position: absolute;
      left: 180px;
      top: 50%;
      translate: 0 -50%;
      width: 8px;
      height: 8px;
      border-top: 2px solid #707070;
      border-right: 2px solid #707070;
      rotate: 135deg;
    }
  }
}

.wpcf7-list-item {
  margin: 0 0 0 30px;

  & label {
    display: flex;
    gap: 10px;
    align-items: center;
    cursor: pointer;
  }

  &.first {
    margin-left: 0;
  }
}

.wpcf7-radio input[type="radio"] {
  appearance: none;
  width: 20px;
  height: 20px;
  margin: 0;
  background: #F7F7F7;
  border: 1px solid #CDCDCD;
  border-radius: 50%;
  position: relative;
  flex-shrink: 0;
  transition: border-color 0.3s ease, background-color 0.3s ease;

  &:checked {
    border-color: var(--color-primary);
  }

  &:checked::before {
    content: "";
    position: absolute;
    top: 50%;
    left: 50%;
    translate: -50% -50%;
    width: 10px;
    height: 10px;
    background: var(--color-primary);
    border-radius: 50%;
  }
}

.acceptance-wrap {
  & p {
    margin-bottom: 0;
  }
}

#consent-box {
  text-align: center;
}

#submit-box .wpcf7-response-output {
  text-align: center;
}

#btn-submit {
  width: min(100%, 460px);
  position: relative;
  margin: 50px auto 0;

  & p {
    margin: 0;
  }
}

#btn-submit .wpcf7-submit {
  font-family: var(--font-sub);
  font-size: 20px;
  font-weight: 700;
  background-color: var(--color-primary);
  color: var(--color-white);
  line-height: 1;
  width: min(100%, 460px);
  padding: 32px;
  border-radius: var(--radius-full);
  border: none;
}

#btn-submit .wpcf7-spinner {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  margin: 0 0 0 10px;
}

@media screen and (min-width: 768px) {
  .contact-box th {
    text-align: left;
  }
}

@media screen and (max-width: 767px) {
  .contact-box input[type="text"],
  .contact-box input[type="password"],
  .contact-box input[type="email"],
  .contact-box input[type="tel"],
  .contact-box input[type="url"],
  .contact-box input[type="number"],
  .contact-box textarea {
    width: 100%;
    padding: 10px 12px;

    &::placeholder {
      font-size: 14px;
    }
  }

  .contact-box td,
  .contact-box th {
    display: block;
    width: 100%;
    padding: 12px 0;
  }

  .contact-box th {
    border-bottom: none;
    font-size: 16px;
    padding-bottom: 0;

    &.top {
      padding-top: 12px;
    }
  }

  .contact-box select {
    padding: 16px 12px;
  }

  .contact-box .your-content {
    height: 240px;
  }

  .wpcf7-radio {
    & .wpcf7-list-item {
      display: flex;
      flex-direction: column;
    }
  }

  .wpcf7-list-item {
    margin: 0;

    & label {
      font-size: 16px;
    }
  }
  
  .wpcf7-acceptance {
    
    & label {
      align-items: flex-start;

      & input {
        margin-top: 7px;
      }
    }

    & .wpcf7-list-item-label {
      font-size: 14px;
    }
  }

  #btn-submit {
    margin-top: 32px;
    & p {
      width: min(100%, 300px);
      margin-inline: auto;
    }
  }

  #btn-submit .wpcf7-submit {
    padding: 24px;
    font-size: 18px;
  }
}

/* ============================
	404
============================ */
#error-404 .content-box p {
  text-align: center;
}

@media screen and (min-width: 1001px) {
  #sp-menu {
    display: none;
  }

  #btn-hamburger {
    display: none;
  }
}

@media screen and (max-width: 1000px) {
  #h-contact-box {
    display: none;
  }
  
  #h-gnav-box {
    display: none;
  }
}

/* common */
.tel {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-en);
  font-size: 32px;
}

.tel img {
  width: 22px;
  height: 22px;
}


/* fixedボタン */
.fixed__circle-badge {
  position: fixed;
  bottom: 20px;
  right: 20px;
  width: 168px;
  height: 168px;
  border-radius: 50%;
  background: var(--color-accent);
  box-shadow: 0px 3px 6px #00000029;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 12px;
  z-index: 100;
  transition: opacity 0.3s ease, visibility 0.3s ease;

  &::before {
    position: absolute;
    inset: 6px;
    content: "";
    background: url(./images/mv_circle.svg) no-repeat center center / contain;
    z-index: -1;
  }

  & img {
    width: 48px;
    height: auto;
  }

  &.is-hidden {
    opacity: 0;
    visibility: hidden;
  }
}

.fixed__circle-ttl {
  font-size: 16px;
  line-height: 1.36;
  color: var(--color-white);
  margin: 8px 0 0;
}

@media screen and (max-width: 767px) {
  .fixed__circle-badge {
    bottom: 10px;
    right: 10px;
    width: 110px;
    height: 110px;
    padding: 4px;

    &::before {
      inset: 3px;
    }

    & img {
      width: 30px;
    }
  }

  .fixed__circle-ttl {
    font-size: 12px;
    line-height: 1.28;
    margin-top: 4px;
  }
}