@charset "UTF-8";

/*
Theme Name: Cocoon Child
Template: cocoon-master
Version: 1.1.3
*/

/* =========================================================
   正和建設 トップページ
   現在の front-page.php 用
   ヘッダー・メイン：sw-
   フッター：#footer
========================================================= */

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

body.shouwa-front {
  margin: 0;
  padding: 0;
  color: #333;
  background: #fff;
  font-family: Arial, "Helvetica Neue", "Hiragino Kaku Gothic ProN", Meiryo, sans-serif;
}

body.shouwa-front *,
body.shouwa-front *::before,
body.shouwa-front *::after {
  box-sizing: border-box;
}

body.shouwa-front a {
  color: inherit;
  text-decoration: none;
}

body.shouwa-front img {
  max-width: 100%;
  height: auto;
  border: 0;
  vertical-align: bottom;
}

body.shouwa-front ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

.clear {
  clear: both;
}

/* Cocoon側の余計な枠をトップだけ消す */
body.shouwa-front #container,
body.shouwa-front #content,
body.shouwa-front .wrap,
body.shouwa-front .content,
body.shouwa-front .content-in,
body.shouwa-front .main {
  width: 100%;
  max-width: none;
  margin: 0;
  padding: 0;
}

/* =========================================================
   ヘッダー sw-
========================================================= */

body.shouwa-front .sw-header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 125px;
  background: #fff;
  z-index: 9999;
}

body.admin-bar.shouwa-front .sw-header {
  top: 32px;
}

body.shouwa-front .sw-header-line {
  display: block;
  width: 100%;
  height: 5px;
  background: #348ccc;
}

body.shouwa-front .sw-header-inner {
  position: relative;
  width: 97%;
  height: 120px;
  margin: 0 auto;
}

/* 上の青いお問い合わせ */
body.shouwa-front .sw-header-contact-note {
  position: absolute;
  top: 0;
  right: 150px;
  z-index: 5;
}

body.shouwa-front .sw-header-contact-note a {
  display: block;
  width: 200px;
  padding: 6px 10px 10px;
  background: #348ccc;
  color: #fff;
  text-align: center;
  font-size: 10px;
  line-height: 1.2;
}

/* 左上キャッチ */
body.shouwa-front .sw-header-catch {
  position: absolute;
  left: 0;
  top: 50px;
  width: 280px;
  margin: 0;
  padding: 0;
  color: #333;
  font-size: 14px;
  line-height: 1.4;
}

/* ロゴ */
body.shouwa-front .sw-logo {
  position: absolute;
  left: 0;
  top: 50px;
  width: 280px;
  height: auto;
  margin: 0;
  padding: 0;
  line-height: 0;
  z-index: 6;
}

body.shouwa-front .sw-logo a,
body.shouwa-front .sw-logo picture,
body.shouwa-front .sw-logo img {
  display: block;
  width: 100%;
  height: auto;
  line-height: 0;
}

/* メニュー */
body.shouwa-front .sw-menu {
  position: absolute;
  right: 0;
  top: 0;
  width: calc(100% - 320px);
  height: 120px;
}

body.shouwa-front .sw-menu-check,
body.shouwa-front .sw-menu-button,
body.shouwa-front .sw-menu-overlay {
  display: none;
}

body.shouwa-front .sw-global-nav {
  position: static;
  width: 100%;
  height: 120px;
}

/* 電話番号 */
body.shouwa-front .sw-nav-tel {
  position: absolute;
  top: 35px;
  right: 0;
  width: 330px;
  margin: 0;
  padding: 0;
}

body.shouwa-front .sw-nav-tel img {
  display: block;
  width: 330px;
  max-width: 330px;
  height: auto;
}

/* ナビ */
body.shouwa-front .sw-nav-list {
  position: absolute;
  right: 0;
  top: 88px;
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 36px;
  width: auto;
  margin: 0;
  padding: 0;
}

body.shouwa-front .sw-nav-list li {
  margin: 0;
  padding: 0;
  white-space: nowrap;
  font-size: 14px;
  line-height: 1.5;
}

body.shouwa-front .sw-nav-list a {
  position: relative;
  display: inline-block;
  padding-bottom: 3px;
  color: #333;
  text-decoration: none;
  transition: color .2s ease;
}

body.shouwa-front .sw-nav-list a::before {
  content: "›";
  display: inline-block;
  margin-right: 6px;
  color: #333;
  font-size: 18px;
  font-weight: bold;
  line-height: 1;
  vertical-align: -1px;
}

body.shouwa-front .sw-nav-list a::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: 0;
  width: 0;
  height: 2px;
  background: #ff7043;
  transform: translateX(-50%);
  transition: width .2s ease;
}

body.shouwa-front .sw-nav-list a:hover {
  color: #ff7043;
}

body.shouwa-front .sw-nav-list a:hover::before {
  color: #ff7043;
}

body.shouwa-front .sw-nav-list a:hover::after {
  width: 100%;
}

/* =========================================================
   メイン sw-
========================================================= */

body.shouwa-front .sw-main {
  padding-top: 125px;
}

body.shouwa-front .sw-sp-title {
  display: none;
}

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

body.shouwa-front .sw-hero {
  position: relative;
  width: 100%;
  height: 900px;
  margin: 0;
  padding: 0;
  overflow: hidden;
  background: #fff;
}

body.shouwa-front .sw-hero-pc {
  display: block;
}

body.shouwa-front .sw-hero-sp {
  display: none;
}

body.shouwa-front .sw-hero-slide {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  background-position: center top;
  background-repeat: no-repeat;
  background-size: 100% auto;
  opacity: 0;
  animation: shouwaFade 12s infinite ease-in-out;
}

body.shouwa-front .sw-hero-slide01 {
  background-image: url("/wp-content/uploads/2021/05/slider_01.jpg");
  animation-delay: 0s;
}

body.shouwa-front .sw-hero-slide02 {
  background-image: url("/wp-content/uploads/2021/04/slider_02.jpg");
  animation-delay: 4s;
}

body.shouwa-front .sw-hero-slide03 {
  background-image: url("/wp-content/uploads/2021/04/slider_03.jpg");
  animation-delay: 8s;
}

@keyframes shouwaFade {
  0% { opacity: 0; }
  8% { opacity: 1; }
  30% { opacity: 1; }
  38% { opacity: 0; }
  100% { opacity: 0; }
}

/* =========================================================
   3枚リンク
========================================================= */

body.shouwa-front .sw-feature-links {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  width: 97.6%;
  margin: 20px auto 0;
}

body.shouwa-front .sw-feature-card {
  display: block;
  overflow: hidden;
  background: #fff;
}

body.shouwa-front .sw-feature-card img {
  display: block;
  width: 100%;
  transition: opacity .3s ease, transform .3s ease;
}

body.shouwa-front .sw-feature-card:hover img {
  opacity: .7;
  transform: scale(1.02);
}

/* =========================================================
   企業理念
========================================================= */

body.shouwa-front .sw-philosophy {
  display: grid;
  grid-template-columns: 50% 1fr;
  gap: 2%;
  width: 97.6%;
  margin: 20px auto 0;
  padding: 10px;
  border: 3px solid #3389ca;
}

body.shouwa-front .sw-philosophy-image img {
  display: block;
  width: 100%;
}

body.shouwa-front .sw-philosophy-text {
  align-self: center;
  padding: 20px 10px;
}

body.shouwa-front .sw-section-ja {
  margin: 0;
  color: #3389ca;
  font-size: 36px;
  line-height: 1.2;
  font-weight: 400;
}

body.shouwa-front .sw-section-en {
  margin: 0 0 20px;
  color: #aaa;
  font-size: 33px;
  font-style: italic;
  line-height: 1.2;
}

body.shouwa-front .sw-philosophy-text ul {
  margin: 0;
  padding-left: 1.4em;
  list-style: disc;
  font-size: 14px;
  line-height: 2.1;
}

body.shouwa-front .sw-philosophy-text li {
  list-style: disc;
}

/* =========================================================
   フッター #footer
========================================================= */

body.shouwa-front #footer {
  clear: both;
  width: 100%;
  margin-top: 100px;
  padding: 0;
  background-color: #efefef;
}

body.shouwa-front #footer .hr_w100_h5 {
  width: 100%;
  height: 5px;
  background-color: #348ccc;
}

/* フッター上部ナビ */
body.shouwa-front #footer #navi_02 {
  width: 97%;
  margin: 0 auto;
  overflow: hidden;
}

body.shouwa-front #footer #navi_02 #navi {
  float: left;
  margin: 0;
  padding: 0;
}

body.shouwa-front #footer #navi_02 #navi li {
  float: left;
  margin: 30px 30px 30px 0;
  font-size: 14px;
  line-height: 1.5;
}

body.shouwa-front #footer #navi_02 #top1 {
  float: right;
  margin: 30px 10px 30px 0;
  color: #222;
  font-size: 14px;
}

body.shouwa-front .hr_g_w100_h1 {
  clear: both;
  width: 100%;
  height: 1px;
  background-color: #999;
}

body.shouwa-front #footer #navi_02 a {
  position: relative;
  display: inline-block;
  padding-bottom: 3px;
  color: #222;
  transition: color .2s ease;
}

body.shouwa-front #footer #navi_02 a::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: 0;
  width: 0;
  height: 2px;
  background: #ff7043;
  transform: translateX(-50%);
  transition: width .2s ease;
}

body.shouwa-front #footer #navi_02 a:hover {
  color: #ff7043;
}

body.shouwa-front #footer #navi_02 a:hover::after {
  width: 100%;
}

/* フッター下段 */
body.shouwa-front #footer #logo_02 {
  position: relative;
  width: 97%;
  min-height: 145px;
  margin: 30px auto 0;
  padding: 0 0 30px;
  text-align: left;
}

/* ロゴ＋住所 */
body.shouwa-front #footer #logo_02 > img {
  float: left;
  display: block;
  width: 300px;
  max-width: 300px;
  margin: 0 30px 20px 0;
}

body.shouwa-front #footer #logo_02 #address {
  float: left;
  display: block;
  margin: 0;
  padding: 10px 0 0;
  color: #222;
  font-size: 12px;
  line-height: 1.6;
  text-align: left;
}

/* お問い合わせ＋電話 */
body.shouwa-front #feature_wrapper {
  clear: left;
  float: left;
  display: block;
  margin: 0;
  padding: 0;
}

body.shouwa-front #footer #logo_02 #inquery {
  float: left;
  width: 200px;
  margin: 10px 20px 0 0;
}

body.shouwa-front #footer #logo_02 #inquery a {
  display: block;
  width: 200px;
  padding: 0;
  background: none;
  border: none;
}

body.shouwa-front #footer #logo_02 #inquery img {
  display: block;
  width: 200px;
  max-width: 200px;
}

body.shouwa-front #footer #logo_02 #tel_02 {
  float: left;
  width: 350px;
  margin: 0 40px 0 0;
}

body.shouwa-front #footer #logo_02 #tel_02 img {
  display: block;
  width: 350px;
  max-width: 350px;
}

/* DOWNLOAD：画像版 */
body.shouwa-front #footer #logo_02 #download {
  position: absolute;
  right: 0;
  top: 52px;
  width: 500px;
}

body.shouwa-front #footer #logo_02 #download a {
  display: block;
  width: 500px;
  padding: 0;
  background: none;
  border: none;
}

body.shouwa-front #footer #logo_02 #download img {
  display: block;
  width: 500px;
  max-width: 500px;
}

/* 文字版DOWNLOADが残っていた場合は消す */
body.shouwa-front #download .download_label,
body.shouwa-front #download .download_main,
body.shouwa-front #download .download_sub {
  display: none !important;
}

body.shouwa-front #footer #copylight {
  clear: both;
  width: 100%;
  margin: 0;
  padding: 20px;
  background-color: #555;
  color: #fff;
  text-align: center;
  font-size: small;
  line-height: 1.4;
  box-sizing: border-box;
}

/* =========================================================
   タブレット
========================================================= */

@media screen and (min-width: 781px) and (max-width: 1100px) {
  body.shouwa-front .sw-menu {
    width: 520px;
  }

  body.shouwa-front .sw-nav-list {
    gap: 18px;
  }

  body.shouwa-front .sw-nav-list li:first-child {
    display: none;
  }

  body.shouwa-front #footer #logo_02 {
    min-height: auto;
  }

  body.shouwa-front #footer #logo_02 #download {
    position: static;
    clear: both;
    width: 500px;
    padding-top: 20px;
  }
}

/* =========================================================
   スマホ
========================================================= */

@media screen and (max-width: 780px) {
  body.admin-bar.shouwa-front .sw-header {
    top: 46px;
  }

  body.shouwa-front .sw-header {
    height: 60px;
  }

  body.shouwa-front .sw-header-line,
  body.shouwa-front .sw-header-contact-note,
  body.shouwa-front .sw-header-catch {
    display: none;
  }

  body.shouwa-front .sw-header-inner {
    width: 100%;
    height: 60px;
  }

  body.shouwa-front .sw-logo {
    left: 10px;
		top: 35%;
    width: 70%;
    transform: translateY(-50%);
  }

  body.shouwa-front .sw-menu {
    position: static;
    width: auto;
    height: auto;
  }

  body.shouwa-front .sw-menu-check {
    display: none;
  }

  body.shouwa-front .sw-menu-button {
    display: block;
    position: fixed;
    top: 17px;
    right: 20px;
    width: 30px;
    height: 27px;
    cursor: pointer;
    z-index: 10002;
  }

  body.admin-bar.shouwa-front .sw-menu-button {
    top: 63px;
  }

  body.shouwa-front .sw-menu-button::before,
  body.shouwa-front .sw-menu-button::after,
  body.shouwa-front .sw-menu-button span {
    content: "";
    position: absolute;
    left: 0;
    width: 30px;
    height: 3px;
    background: #999;
    transition: transform .25s ease, opacity .2s ease;
  }

  body.shouwa-front .sw-menu-button::before {
    top: 0;
  }

  body.shouwa-front .sw-menu-button span {
    top: 12px;
  }

  body.shouwa-front .sw-menu-button::after {
    bottom: 0;
  }

  body.shouwa-front .sw-global-nav {
    position: fixed;
    top: 60px;
    right: -100%;
    width: 100%;
    height: calc(100vh - 60px);
    padding: 70px 20px 40px;
    background: #fff;
    z-index: 10000;
    overflow-y: auto;
    transition: right .3s ease;
  }

  body.admin-bar.shouwa-front .sw-global-nav {
    top: 106px;
    height: calc(100vh - 106px);
  }

  body.shouwa-front .sw-menu-check:checked ~ .sw-menu-button::before {
    transform: translateY(12px) rotate(45deg);
  }

  body.shouwa-front .sw-menu-check:checked ~ .sw-menu-button span {
    opacity: 0;
  }

  body.shouwa-front .sw-menu-check:checked ~ .sw-menu-button::after {
    transform: translateY(-12px) rotate(-45deg);
  }

  body.shouwa-front .sw-menu-check:checked ~ .sw-global-nav {
    right: 0;
  }

  body.shouwa-front .sw-menu-overlay {
    display: none;
    position: fixed;
    inset: 60px 0 0;
    background: rgba(0,0,0,.45);
    z-index: 9999;
  }

  body.shouwa-front .sw-menu-check:checked ~ .sw-menu-overlay {
    display: block;
  }

  body.shouwa-front .sw-nav-tel {
    display: none;
  }

  body.shouwa-front .sw-nav-list {
    position: static;
    display: block;
    width: 100%;
    margin: 0;
    padding: 0;
    font-size: 16px;
  }

  body.shouwa-front .sw-nav-list li {
    border-bottom: 1px solid #999;
  }

  body.shouwa-front .sw-nav-list a {
    display: block;
    padding: 14px 0 14px 22px;
    color: #777;
  }

  body.shouwa-front .sw-nav-list a::after {
    display: none;
  }

  body.shouwa-front .sw-main {
    padding-top: 60px;
  }

  body.shouwa-front .sw-sp-title {
    display: block;
    margin: 18px 10px 8px;
    padding: 0;
    color: #3389ca;
    font-size: 24px;
    line-height: 1.4;
    font-weight: 400;
  }

  body.shouwa-front .sw-hero-pc {
    display: none;
  }

  body.shouwa-front .sw-hero-sp {
    display: block;
    height: 600px;
    margin: 0;
  }

  body.shouwa-front .sw-hero-sp01 {
    background-image: url("/wp-content/uploads/2021/05/slider_sp_1.jpg");
    animation-delay: 0s;
  }

  body.shouwa-front .sw-hero-sp02 {
    background-image: url("/wp-content/uploads/2021/05/slider_sp_3.jpg");
    animation-delay: 4s;
  }

  body.shouwa-front .sw-hero-sp03 {
    background-image: url("/wp-content/uploads/2021/05/slider_sp_2.jpg");
    animation-delay: 8s;
  }

  body.shouwa-front .sw-feature-links {
    display: block;
    width: 100%;
    margin-top: 20px;
  }

  body.shouwa-front .sw-feature-card {
    margin-bottom: 18px;
  }

  body.shouwa-front .sw-philosophy {
    display: block;
    width: 100%;
    margin-top: 0;
    padding: 0;
    border: none;
  }

  body.shouwa-front .sw-philosophy-text {
    padding: 16px 14px 22px;
  }

  body.shouwa-front .sw-section-ja {
    display: inline-block;
    width: 40%;
    font-size: 26px;
  }

  body.shouwa-front .sw-section-en {
    display: inline-block;
    width: 58%;
    margin: 0;
    font-size: 20px;
    vertical-align: baseline;
  }

  body.shouwa-front .sw-philosophy-text ul {
    margin-top: 14px;
    font-size: 14px;
    line-height: 1.9;
  }

  body.shouwa-front #footer {
    margin-top: 20px;
  }

  body.shouwa-front #footer #navi_02,
  body.shouwa-front .hr_g_w100_h1 {
    display: none;
  }

  body.shouwa-front #footer #logo_02 {
    width: 95%;
    min-height: 0;
    margin: 20px auto 0;
    padding: 0 0 20px;
    text-align: center;
  }

  body.shouwa-front #footer #logo_02 > img {
    float: none;
    width: 80%;
    max-width: 320px;
    margin: 0 auto;
  }

  body.shouwa-front #footer #logo_02 #address {
    float: none;
    padding: 15px 10px 0;
    font-size: 14px;
    line-height: 1.7;
    text-align: center;
  }

  body.shouwa-front #feature_wrapper {
    float: none;
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-top: 18px;
  }

  body.shouwa-front #footer #logo_02 #tel_02 {
    float: none;
    order: 1;
    width: 100%;
    margin: 0;
  }

  body.shouwa-front #footer #logo_02 #tel_02 img {
    width: 90%;
    max-width: 350px;
    margin: 0 auto;
  }

  body.shouwa-front #footer #logo_02 #inquery {
    float: none;
    order: 2;
    width: 70%;
    max-width: 260px;
    margin: 0 auto;
  }

  body.shouwa-front #footer #logo_02 #inquery a,
  body.shouwa-front #footer #logo_02 #inquery img {
    width: 100%;
    max-width: 260px;
  }

  body.shouwa-front #footer #logo_02 #download {
    position: static;
    width: 100%;
    margin-top: 20px;
  }

  body.shouwa-front #footer #logo_02 #download a,
  body.shouwa-front #footer #logo_02 #download img {
    width: 100%;
    max-width: none;
  }
}