/*!
Theme Name: gogofurima
Theme URI: http://underscores.me/
Author: Underscores.me
Author URI: http://underscores.me/
Description: Description
Version: 1.0.0
Tested up to: 5.4
Requires PHP: 5.6
License: GNU General Public License v2 or later
License URI: LICENSE
Text Domain: gogofurima
Tags: custom-background, custom-logo, custom-menu, featured-images, threaded-comments, translation-ready

This theme, like WordPress, is licensed under the GPL.
Use it to make something cool, have fun, and share what you've learned.

gogofurima is based on Underscores https://underscores.me/, (C) 2012-2020 Automattic, Inc.
Underscores is distributed under the terms of the GNU GPL v2 or later.

Normalizing styles have been helped along thanks to the fine work of
Nicolas Gallagher and Jonathan Neal https://necolas.github.io/normalize.css/
*/

/*--------------------------------------------------------------
>>> TABLE OF CONTENTS:
----------------------------------------------------------------
# Generic
	- Normalize
	- Box sizing
# Base
	- Typography
	- Elements
	- Links
	- Forms
## Layouts
# Components
	- Navigation
	- Posts and pages
	- Comments
	- Widgets
	- Media
	- Captions
	- Galleries
# plugins
	- Jetpack infinite scroll
# Utilities
	- Accessibility
	- Alignments

--------------------------------------------------------------*/

/*--------------------------------------------------------------
# Generic
--------------------------------------------------------------*/

/* Normalize
--------------------------------------------- */

/*! normalize.css v8.0.1 | MIT License | github.com/necolas/normalize.css */

/* Document
	 ========================================================================== */

/**
 * 1. Correct the line height in all browsers.
 * 2. Prevent adjustments of font size after orientation changes in iOS.
 */
html {
  line-height: 1.15;
  -webkit-text-size-adjust: 100%;
}

/* Sections
	 ========================================================================== */

/**
 * Remove the margin in all browsers.
 */
body {
  margin: 0;
}

/**
 * Render the `main` element consistently in IE.
 */
main {
  display: block;
}

/**
 * Correct the font size and margin on `h1` elements within `section` and
 * `article` contexts in Chrome, Firefox, and Safari.
 */
h1 {
  font-size: 2em;
  margin: 0.67em 0;
}

/* Grouping content
	 ========================================================================== */

/**
 * 1. Add the correct box sizing in Firefox.
 * 2. Show the overflow in Edge and IE.
 */
hr {
  box-sizing: content-box;
  height: 0;
  overflow: visible;
}

/**
 * 1. Correct the inheritance and scaling of font size in all browsers.
 * 2. Correct the odd `em` font sizing in all browsers.
 */
pre {
  font-family: monospace, monospace;
  font-size: 1em;
}

/* Text-level semantics
	 ========================================================================== */

/**
 * Remove the gray background on active links in IE 10.
 */
a {
  background-color: transparent;
}

/**
 * 1. Remove the bottom border in Chrome 57-
 * 2. Add the correct text decoration in Chrome, Edge, IE, Opera, and Safari.
 */
abbr[title] {
  border-bottom: none;
  text-decoration: underline;
  text-decoration: underline dotted;
}

/**
 * Add the correct font weight in Chrome, Edge, and Safari.
 */
b,
strong {
  font-weight: bolder;
}

/**
 * 1. Correct the inheritance and scaling of font size in all browsers.
 * 2. Correct the odd `em` font sizing in all browsers.
 */
code,
kbd,
samp {
  font-family: monospace, monospace;
  font-size: 1em;
}

/**
 * Add the correct font size in all browsers.
 */
small {
  font-size: 80%;
}

/**
 * Prevent `sub` and `sup` elements from affecting the line height in
 * all browsers.
 */
sub,
sup {
  font-size: 75%;
  line-height: 0;
  position: relative;
  vertical-align: baseline;
}

sub {
  bottom: -0.25em;
}

sup {
  top: -0.5em;
}

/* Embedded content
	 ========================================================================== */

/**
 * Remove the border on images inside links in IE 10.
 */
img {
  border-style: none;
}

/* Forms
	 ========================================================================== */

/**
 * 1. Change the font styles in all browsers.
 * 2. Remove the margin in Firefox and Safari.
 */
button,
input,
optgroup,
select,
textarea {
  font-family: inherit;
  font-size: 100%;
  line-height: 1.15;
  margin: 0;
}

/**
 * Show the overflow in IE.
 * 1. Show the overflow in Edge.
 */
button,
input {
  overflow: visible;
}

/**
 * Remove the inheritance of text transform in Edge, Firefox, and IE.
 * 1. Remove the inheritance of text transform in Firefox.
 */
button,
select {
  text-transform: none;
}

/**
 * Correct the inability to style clickable types in iOS and Safari.
 */
button,
[type="button"],
[type="reset"],
[type="submit"] {
  -webkit-appearance: button;
}

/**
 * Remove the inner border and padding in Firefox.
 */
button::-moz-focus-inner,
[type="button"]::-moz-focus-inner,
[type="reset"]::-moz-focus-inner,
[type="submit"]::-moz-focus-inner {
  border-style: none;
  padding: 0;
}

/**
 * Restore the focus styles unset by the previous rule.
 */
button:-moz-focusring,
[type="button"]:-moz-focusring,
[type="reset"]:-moz-focusring,
[type="submit"]:-moz-focusring {
  outline: 1px dotted ButtonText;
}

/**
 * Correct the padding in Firefox.
 */
fieldset {
  padding: 0.35em 0.75em 0.625em;
}

/**
 * 1. Correct the text wrapping in Edge and IE.
 * 2. Correct the color inheritance from `fieldset` elements in IE.
 * 3. Remove the padding so developers are not caught out when they zero out
 *		`fieldset` elements in all browsers.
 */
legend {
  box-sizing: border-box;
  color: inherit;
  display: table;
  max-width: 100%;
  padding: 0;
  white-space: normal;
}

/**
 * Add the correct vertical alignment in Chrome, Firefox, and Opera.
 */
progress {
  vertical-align: baseline;
}

/**
 * Remove the default vertical scrollbar in IE 10+.
 */
textarea {
  overflow: auto;
}

/**
 * 1. Add the correct box sizing in IE 10.
 * 2. Remove the padding in IE 10.
 */
[type="checkbox"],
[type="radio"] {
  box-sizing: border-box;
  padding: 0;
}

/**
 * Correct the cursor style of increment and decrement buttons in Chrome.
 */
[type="number"]::-webkit-inner-spin-button,
[type="number"]::-webkit-outer-spin-button {
  height: auto;
}

/**
 * 1. Correct the odd appearance in Chrome and Safari.
 * 2. Correct the outline style in Safari.
 */
[type="search"] {
  -webkit-appearance: textfield;
  outline-offset: -2px;
}

/**
 * Remove the inner padding in Chrome and Safari on macOS.
 */
[type="search"]::-webkit-search-decoration {
  -webkit-appearance: none;
}

/**
 * 1. Correct the inability to style clickable types in iOS and Safari.
 * 2. Change font properties to `inherit` in Safari.
 */
::-webkit-file-upload-button {
  -webkit-appearance: button;
  font: inherit;
}

/* Interactive
	 ========================================================================== */

/*
 * Add the correct display in Edge, IE 10+, and Firefox.
 */
details {
  display: block;
}

/*
 * Add the correct display in all browsers.
 */
summary {
  display: list-item;
}

/* Misc
	 ========================================================================== */

/**
 * Add the correct display in IE 10+.
 */
template {
  display: none;
}

/**
 * Add the correct display in IE 10.
 */
[hidden] {
  display: none;
}

/* Box sizing
--------------------------------------------- */

/* Inherit box-sizing to more easily change it's value on a component level.
@link http://css-tricks.com/inheriting-box-sizing-probably-slightly-better-best-practice/ */
*,
*::before,
*::after {
  box-sizing: inherit;
}

html {
  box-sizing: border-box;
}

html,
body {
  scroll-padding-top: 120px;
}

/*--------------------------------------------------------------
# Base
--------------------------------------------------------------*/

/* root
--------------------------------------------- */
:root {
  /**--main-color: #355087;
  --sub-color: #b5e6dd;
  --main-background: #fff;
  --sub-background: #f4f4f4;
  --footer-background: #505050;
  --under-line: #5fbfac;
  --point-text: #ca9438; */
  --main-color: #782117;
  --sub-color: #e6b5bf;
  --main-background: #fff;
  --sub-background: #f4f4f4;
  --footer-background: #505050;
  --under-line: #e78585;
  --point-text: #ca6262;


  --hover: all 0.3s;
}

/* Typography
--------------------------------------------- */
body,
button,
input,
select,
optgroup,
textarea {
  color: #000;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
    Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;
  font-size: 1rem;
  line-height: 1.5;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  clear: both;
}

p {
  margin-bottom: 1.5em;
}

dfn,
cite,
em,
i {
  font-style: italic;
}

blockquote {
  margin: 0 1.5em;
}

address {
  margin: 0 0 1.5em;
}

pre {
  background: #eee;
  font-family: "Courier 10 Pitch", courier, monospace;
  line-height: 1.6;
  margin-bottom: 1.6em;
  max-width: 100%;
  overflow: auto;
  padding: 1.6em;
}

code,
kbd,
tt,
var {
  font-family: monaco, consolas, "Andale Mono", "DejaVu Sans Mono", monospace;
}

abbr,
acronym {
  border-bottom: 1px dotted #666;
  cursor: help;
}

mark,
ins {
  background: #fff9c0;
  text-decoration: none;
}

big {
  font-size: 125%;
}

/* Elements
--------------------------------------------- */
body {
  /* background: #fff; @@@@@ */
  background: #f1fdc2;
}

hr {
  background-color: #ccc;
  border: 0;
  height: 1px;
  margin-bottom: 1.5em;
}

ul,
ol {
  margin: 0 0 1.5em 3em;
}

ul {
  list-style: disc;
}

ol {
  list-style: decimal;
}

li > ul,
li > ol {
  margin-bottom: 0;
  margin-left: 1.5em;
}

dt {
  font-weight: 700;
}

dd {
  margin: 0 1.5em 1.5em;
}

/* Make sure embeds and iframes fit their containers. */
embed,
iframe,
object {
  max-width: 100%;
}

img {
  height: auto;
  max-width: 100%;
}

figure {
  margin: 1em 0;
}

table {
  margin: 0 0 1.5em;
  width: 100%;
}

/* Links
--------------------------------------------- */
a {
  color: #000;
}

a:focus {
  outline: thin dotted;
}

a:hover,
a:active {
  outline: 0;
}

/* Forms
--------------------------------------------- */
button,
input[type="button"],
input[type="reset"],
input[type="submit"] {
  border: 1px solid;
  border-color: #ccc #ccc #bbb;
  border-radius: 3px;
  background: #e6e6e6;
  color: rgba(0, 0, 0, 0.8);
  line-height: 1;
  padding: 0.6em 1em 0.4em;
}

button:hover,
input[type="button"]:hover,
input[type="reset"]:hover,
input[type="submit"]:hover {
  border-color: #ccc #bbb #aaa;
}

button:active,
button:focus,
input[type="button"]:active,
input[type="button"]:focus,
input[type="reset"]:active,
input[type="reset"]:focus,
input[type="submit"]:active,
input[type="submit"]:focus {
  border-color: #aaa #bbb #bbb;
}

input[type="text"],
input[type="email"],
input[type="url"],
input[type="password"],
input[type="search"],
input[type="number"],
input[type="tel"],
input[type="range"],
input[type="date"],
input[type="month"],
input[type="week"],
input[type="time"],
input[type="datetime"],
input[type="datetime-local"],
input[type="color"],
textarea {
  color: #666;
  border: 1px solid #ccc;
  border-radius: 3px;
  padding: 3px;
}

input[type="text"]:focus,
input[type="email"]:focus,
input[type="url"]:focus,
input[type="password"]:focus,
input[type="search"]:focus,
input[type="number"]:focus,
input[type="tel"]:focus,
input[type="range"]:focus,
input[type="date"]:focus,
input[type="month"]:focus,
input[type="week"]:focus,
input[type="time"]:focus,
input[type="datetime"]:focus,
input[type="datetime-local"]:focus,
input[type="color"]:focus,
textarea:focus {
  color: #111;
}

select {
  border: 1px solid #ccc;
}

textarea {
  width: 100%;
}

/*--------------------------------------------------------------
# Layouts
--------------------------------------------------------------*/

/*--------------------------------------------------------------
# Components
--------------------------------------------------------------*/

/* Navigation@@@@@ @@@@@ @@ @ @ @@ @@
--------------------------------------------- */
.main-navigation,
.main-navigation-sp {
  display: block;
  width: 10%;
}

.main-navigation ul,
.main-navigation-sp ul {
  display: none;
  margin: 0;
  padding-left: 0;
  list-style: none;
}

.main-navigation ul ul,
.main-navigation-sp ul ul {
  box-shadow: 0 3px 3px rgba(0, 0, 0, 0.2);
  float: left;
  position: absolute;
  top: 100%;
  left: -999em;
  z-index: 99999;
}

.main-navigation ul ul ul,
.main-navigation-sp ul ul ul {
  left: -999em;
  top: 0;
}

.main-navigation ul ul li:hover > ul,
.main-navigation ul ul li.focus > ul,
.main-navigation-sp ul ul li:hover > ul,
.main-navigation-sp ul ul li.focus > ul{
  display: block;
  left: auto;
}

.main-navigation ul ul a,
.main-navigation-sp ul ul a {
  width: 200px;
}

.main-navigation ul li:hover > ul,
.main-navigation ul li.focus > ul,
.main-navigation-sp ul li:hover > ul,
.main-navigation-sp ul li.focus > ul {
  left: auto;
}

.main-navigation li,
.main-navigation-sp li {
  position: relative;
}

.main-navigation a,
.main-navigation-sp a {
  display: block;
  text-decoration: none;
}

/* Small menu. */
.menu-toggle,
.main-navigation.toggled ul,
.main-navigation-sp.toggled ul {
  display: block;
}

@media screen and (min-width: 37.5em) {
  .menu-toggle {
    display: none;
  }

  .main-navigation ul,
  .main-navigation-sp ul {
    display: flex;
  }
  /* @@@@@ test 重複対応確認中 */
  .main-navigation-sp {
    display: none;
  }
}

.site-main .comment-navigation,
.site-main .posts-navigation,
.site-main .post-navigation {
  margin: 0 0 1.5em;
}

.comment-navigation .nav-links,
.posts-navigation .nav-links,
.post-navigation .nav-links {
  display: flex;
}

.comment-navigation .nav-previous,
.posts-navigation .nav-previous,
.post-navigation .nav-previous {
  flex: 1 0 50%;
}

.comment-navigation .nav-next,
.posts-navigation .nav-next,
.post-navigation .nav-next {
  text-align: end;
  flex: 1 0 50%;
}

/* Posts and pages
--------------------------------------------- */
.sticky {
  display: block;
}

.updated:not(.published) {
  display: none;
}

.page-content,
.entry-content,
.entry-summary {
  margin: 1.5em 0 0;
}

.page-links {
  clear: both;
  margin: 0 0 1.5em;
}

/* Comments
--------------------------------------------- */
.comment-content a {
  word-wrap: break-word;
}

.bypostauthor {
  display: block;
}

/* Widgets
--------------------------------------------- */
.widget {
  margin: 0 0 1.5em;
}

.widget select {
  max-width: 100%;
}

/* Media
--------------------------------------------- */
.page-content .wp-smiley,
.entry-content .wp-smiley,
.comment-content .wp-smiley {
  border: none;
  margin-bottom: 0;
  margin-top: 0;
  padding: 0;
}

/* Make sure logo link wraps around logo image. */
.custom-logo-link {
  display: inline-block;
}

/* Captions
--------------------------------------------- */
.wp-caption {
  margin-bottom: 1.5em;
  max-width: 100%;
}

.wp-caption img[class*="wp-image-"] {
  display: block;
  margin-left: auto;
  margin-right: auto;
}

.wp-caption .wp-caption-text {
  margin: 0.8075em 0;
}

.wp-caption-text {
  text-align: center;
}

/* Galleries
--------------------------------------------- */
.gallery {
  margin-bottom: 1.5em;
  display: grid;
  grid-gap: 1.5em;
}

.gallery-item {
  display: inline-block;
  text-align: center;
  width: 100%;
}

.gallery-columns-2 {
  grid-template-columns: repeat(2, 1fr);
}

.gallery-columns-3 {
  grid-template-columns: repeat(3, 1fr);
}

.gallery-columns-4 {
  grid-template-columns: repeat(4, 1fr);
}

.gallery-columns-5 {
  grid-template-columns: repeat(5, 1fr);
}

.gallery-columns-6 {
  grid-template-columns: repeat(6, 1fr);
}

.gallery-columns-7 {
  grid-template-columns: repeat(7, 1fr);
}

.gallery-columns-8 {
  grid-template-columns: repeat(8, 1fr);
}

.gallery-columns-9 {
  grid-template-columns: repeat(9, 1fr);
}

.gallery-caption {
  display: block;
}

/*--------------------------------------------------------------
# Plugins
--------------------------------------------------------------*/

/* Jetpack infinite scroll
--------------------------------------------- */

/* Hide the Posts Navigation and the Footer when Infinite Scroll is in use. */
.infinite-scroll .posts-navigation,
.infinite-scroll.neverending .site-footer {
  display: none;
}

/* Re-display the Theme Footer when Infinite Scroll has reached its end. */
.infinity-end.neverending .site-footer {
  display: block;
}

/*--------------------------------------------------------------
# Utilities
--------------------------------------------------------------*/

/* Accessibility
--------------------------------------------- */

/* Text meant only for screen readers. */
.screen-reader-text {
  border: 0;
  clip: rect(1px, 1px, 1px, 1px);
  clip-path: inset(50%);
  height: 1px;
  margin: -1px;
  overflow: hidden;
  padding: 0;
  position: absolute !important;
  width: 1px;
  word-wrap: normal !important;
}

.screen-reader-text:focus {
  background-color: #f1f1f1;
  border-radius: 3px;
  box-shadow: 0 0 2px 2px rgba(0, 0, 0, 0.6);
  clip: auto !important;
  clip-path: none;
  color: #21759b;
  display: block;
  font-size: 0.875rem;
  font-weight: 700;
  height: auto;
  left: 5px;
  line-height: normal;
  padding: 15px 23px 14px;
  text-decoration: none;
  top: 5px;
  width: auto;
  z-index: 100000;
}

/* Do not show the outline on the skip link target. */
#primary[tabindex="-1"]:focus {
  outline: 0;
}

/* Alignments
--------------------------------------------- */
.alignleft {
  /*rtl:ignore*/
  float: left;

  /*rtl:ignore*/
  margin-right: 1.5em;
  margin-bottom: 1.5em;
}

.alignright {
  /*rtl:ignore*/
  float: right;

  /*rtl:ignore*/
  margin-left: 1.5em;
  margin-bottom: 1.5em;
}

.aligncenter {
  clear: both;
  display: block;
  margin-left: auto;
  margin-right: auto;
  margin-bottom: 1.5em;
}

/*----------------------------------------------------------------*/

/*-----header-----*/

/*--基本のheader--*/

header#masthead {
  width: 100%;
  max-width: 1500px;
  margin: auto;
  text-align: center;
  color: #fff;
  box-sizing: border-box;
  display: flex;
  align-items: self-start;
  justify-content: space-between;
  padding: 40px;
}

.site-branding {
  width: 18.5vw;
  max-width: 240px;
}

.custom-logo-link {
  display: flex;
  width: 100%;
  height: 100%;
/*  background-color: #f5f9e5; */
  background-color: #f1fdc2; 
  position: relative;
  z-index: 100;
  padding: 0 24px 32px;
  border-radius: 0 0 20px 0;
}

.site-branding img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.main-navigation,
.main-navigation-sp {
  width: fit-content;
  padding-top: 8px;
}

.main-navigation ul,
.main-navigation-sp ul {
  gap: 2rem;
}

.main-navigation a,
.main-navigation-sp a {
  font-size: min(1.8vw, 1.25rem);
}

/*-headerメニューのhover-*/
#site-navigation a,
#menu-sp a {
  position: relative;
}

#site-navigation a::after,
#menu-sp a::after{
  content: "";
  position: absolute;
  left: 50%;
  bottom: -5px;
  display: inline-block;
  width: 2.5vw;
  height: 5px;
  transform: translateX(-50%) scale(0, 1);
  -webkit-transform: translateX(-50%) scale(0, 1);
  background-color: var(--sub-color);
  border-radius: 5px;
  transform-origin: center top;
  transition: transform 0.3s ease;
}

#site-navigation a:hover::after,
#menu-sp a:hover::after {
  transform: translateX(-50%) scale(1, 1);
  -webkit-transform: translateX(-50%) scale(1, 1);
}


/*-開いてる画面のheaderメニューに下線-*/
/* @@@@@ s
#site-navigation .current-menu-item a,
#menu-sp .current-menu-item a{
  position: relative;
}

#site-navigation .current-menu-item a:before,
#menu-sp .current-menu-item a:before {
  content: "";
  position: absolute;
  left: 50%;
  bottom: -5px;
  display: inline-block;
  width: 2.5vw;
  height: 5px;
  -webkit-transform: translateX(-50%);
  transform: translateX(-50%);
  background-color: var(--sub-color);
  border-radius: 5px;
}

.home #site-navigation .home-menu-item a,
#menu-sp .home-menu-item a {
  position: relative;
}

.home #site-navigation .home-menu-item a:before,
#menu-sp .home-menu-item a:before {
  content: "";
  position: absolute;
  left: 50%;
  bottom: -5px;
  display: inline-block;
  width: 2.5vw;
  height: 5px;
  -webkit-transform: translateX(-50%);
  transform: translateX(-50%);
  background-color: var(--sub-color);
  border-radius: 5px;
}
 @@@@@ e*/

/*-ハンバーガーメニュー-*/
.menu-toggle {
  display: none;
  position: relative;
  background: none;
  border: 1px solid #000;
  cursor: pointer;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  padding: 0;
  z-index: 999;
}

.menu-toggle .hamburger-icon {
  display: block;
  width: 16px;
  height: 1px;
  position: relative;
}

.menu-toggle .hamburger-icon::before,
.menu-toggle .hamburger-icon::after {
  content: "";
  position: absolute;
  width: 100%;
  height: 100%;
  background-color: #333;
  left: 0;
  transition: transform 0.3s ease;
}

.menu-toggle .hamburger-icon::before {
  top: -4px;
}

.menu-toggle .hamburger-icon::after {
  top: 4px;
}

/* ハンバーガーアイコンのクロススタイル */
.menu-toggle.active {
  border: 1px solid #fff;
}

.menu-toggle.active .hamburger-icon {
  background: transparent;
}

.menu-toggle.active .hamburger-icon::before,
.menu-toggle.active .hamburger-icon::after {
  position: absolute;
  top: 0;
  width: 100%;
  height: 1px;
  background-color: #fff;
}

.menu-toggle.active .hamburger-icon::before {
  transform: rotate(45deg);
}

.menu-toggle.active .hamburger-icon::after {
  transform: rotate(-45deg);
}

.front-page-header {
  display: none !important;
}

@media (max-width: 800px) {
  .front-page-header {
    display: flex !important;
  }

  header#masthead {
    padding: 24px 18px;
    position: sticky;
    top: 0;
    background-color: #fff;
    z-index: 1000;
    width: 100vw;
    box-sizing: border-box;
    align-items: center;
  }

  #site-navigation a::after,
  #menu-sp a::after {
    display: none;
  }

  .custom-logo-link {
    padding: 0;
    border-radius: 0;
  }

  .site-branding {
    width: 23vw;
    position: relative;
    z-index: 999;
  }

  .menu-menu-1-container,
  .menu-menu-sp-container {
    width: 100%;
  }

  .menu-toggle {
    display: flex;
    justify-content: center;
    align-items: center;
  }

  .main-navigation,
  .main-navigation-sp {
    position: fixed;
    top: 0;
    right: -100%; /* 初期位置を画面外に設定 */
    width: 400px; /* メニューの幅 */
    max-width: 100%;
    height: 100vh;
    background-color: var(--main-color);
    transition: right 0.3s ease;
    display: flex;
    flex-direction: column; /* メニュー項目を縦に並べる */
    align-items: center; /* 中央揃え */
    padding-top: 160px; /* ヘッダー部分の空間 */
  }

  #primary-menu,
  #sp-menu {
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 0;
  }

  #primary-menu a,
  #sp-menu a {
    padding: 20px;
    font-size: 10px;
    text-align: center;
    width: 100%;
    display: block;
    color: #fff;
    border-bottom: 1px solid #fff;
    font-size: 1rem;
  }

  .main-navigation li:first-child a,
  .main-navigation-sp li:first-child a {
    border-top: 1px solid #fff;
  }

  #site-navigation .current-menu-item a:before,
  #menu-sp .current-menu-item a:before {
    display: none;
  }
}

/*--スクロールで表示されるheader--*/
#fixed-header {
  position: fixed;
  top: -120px;
  width: 100%;
  height: 120px;
  font-size: 2em;
  text-align: center;
  transition: 0.5s; /* アニメーションタイミング */
  display: flex;
  justify-content: space-around;
  align-items: center;
  background-color: #f5f9e5;
  color: #000;
  z-index: 100;
}

.fixed-header-logo .custom-logo-link {
  padding: 0;
}

#fixed-header.is-show {
  top: 0;
}

.fixed-header-logo {
  width: auto;
  height: 50%;
}

.fixed-header-nav a {
  font-size: 1rem;
}

@media (max-width: 800px) {
  #fixed-header {
    display: none;
  }
}

/*-----footer-----*/
footer#colophon {
  background-color: var(--footer-background);
  color: #fff;
  padding: 64px 64px 0;
}

.footer-inner {
  max-width: 1500px;
  margin: auto;
}

.footer-site-branding {
  background-color: #fff;
  padding: 8px 16px;
  width: 20vw;
}

.footer-site-branding .custom-logo-link {
  padding: 0;
}

.footer-content {
  display: flex;
  margin-top: 40px;
  justify-content: space-between;
}

ul#menu-footer-menu {
  display: grid;
  grid-template-columns: 2fr 3fr;
  gap: 1rem;
  padding: 0;
  margin: 0;
}

ul#menu-footer-menu li {
  list-style: none;
}

ul#menu-footer-menu a {
  color: #fff;
  text-decoration: none;
  font-size: 1rem;
}

ul#menu-footer-menu a::before {
  display: none !important;
}

ul#menu-footer-menu a::after {
  display: none !important;
}

.footer-info h5 {
  margin: 0 0 24px;
  font-size: 1.25rem;
  font-weight: normal;
}

.footer-info p {
  font-size: 1rem;
  margin: 0;
}

.copyright {
  padding: 32px 0 16px;
  text-align: center;
  font-size: 0.75rem;
  font-weight: lighter;
  border-top: 1px solid #707070;
  margin-top: 80px;
}

@media (max-width: 800px) {
  footer#colophon {
    padding: 32px 16px 8px;
  }

  .footer-inner {
    display: flex;
    flex-direction: column;
    align-items: center;
  }

  .footer-site-branding {
    width: 45%;
    height: auto;
    padding: 4px 8px;
  }

  .footer-content {
    flex-direction: column-reverse;
    gap: 2.5rem;
    margin-top: 32px;
  }

  .footer-info h5 {
    text-align: center;
    margin-bottom: 8px;
    font-size: 1rem;
  }

  .footer-info p {
    text-align: center;
  }

  ul#menu-footer-menu {
    grid-template-columns: 1fr;
  }

  ul#menu-footer-menu li {
    text-align: center;
  }

  .copyright {
    padding: 8px 0 8px;
    margin-top: 40px;
    width: 100%;
  }
}

/*-----front-page-----*/
/*---ファーストビュー---*/

.front-top {
  padding: 56px 0;
  width: 90%;
  max-width: 1500px;
  margin: auto;
  border-bottom: 7px dashed #f39836;
}

.front-top__inner {
  display: flex;
}

.front-top__menu {
  flex: 2;
}

.site-branding.front-top__logo {
  width: 80%;
}

.front-top__nav {
  margin-top: 80px;
}

.front-top__nav ul {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.front-top__nav a::before {
  display: none !important;
}

.front-top__nav a::after {
  display: none !important;
}

.front-top__view {
  flex: 8;
  position: relative;
}

.front-top__picWrapper {
  border-radius: 25px;
  overflow: hidden;
  line-height: 0;
  text-align: center; /* 中央寄せ */
}

.front-top__pic {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 25px; /* 動画自体にも角丸を適用（Safari対策） */
  display: inline-block;
  max-width: 100%;          /* オーバーフロー防止 */
}

.front-top__catchCopy {
  position: absolute;
  bottom: 0;
  left: 0;
/*  background-color: #fff; */
background-color: #f1fdc2;
  border-radius: 0 25px 0 0;
}

.front-top__catch {
  padding: 16px 8px;
  position: relative;
}

.front-top__catch::before {
  content: "";
  background-image: url(img/corner.png);
  position: absolute;
  left: 0;
  top: -20px;
  width: 20px;
  height: 20px;
  background-size: cover;
}

.front-top__catch::after {
  content: "";
  background-image: url(img/corner.png);
  position: absolute;
  bottom: 0;
  right: -20px;
  width: 20px;
  height: 20px;
  background-size: cover;
}

p.front-top__catchText {
  font-size: min(3.75vw, 2.5rem);
  margin: 0;
  color: var(--main-color);
  font-weight: bold;
  line-height: 1;
  white-space: nowrap;
}

p.front-top__catchText:nth-child(2),
p.front-top__catchText:nth-child(3) {
  padding: 16px 0 0 40px;
}

span.under {
  background: linear-gradient(transparent 60%, var(--under-line) 30%);
}

@media (max-width: 800px) {
  body {
    transition: padding-top 0.3s ease;
  }

  .front-top {
    border-bottom: 5px dashed #f39836;
    padding: 0 0 56px;
  }

  .front-top__menu {
    display: none;
  }
/* @@@@@ スマホ画面　逆だった
  .main-navigation {
    display: none;
  }　*/
  .front-top__catchCopy {
    bottom: -28px;
    left: 50%;
    transform: translateX(-50%);
    -webkit-transform: translateX(-50%);
    -ms-transform: translateX(-50%);
    border-radius: 25px 25px 0 0;
  }

  .front-top__catch {
    padding: 8px 12px;
  }

  p.front-top__catchText {
    text-align: center;
    font-size: 1.1rem;
  }

  p.front-top__catchText:nth-child(2),
  p.front-top__catchText:nth-child(3) {
    padding: 8px 0 0 0;
  }

  .front-top__catch::before {
    display: none;
  }

  .front-top__catch::after {
    display: none;
  }
}

/*---ハチマル建築の強み---*/
.section {
  width: 90%;
  max-width: 1500px;
  margin: 80px auto 120px;
}

.title {
  background-color: var(--under-line);
  border-radius: 10px;
  padding: 16px 0 16px 120px;
  position: relative;
}

.title::before {
  font-family: "Font Awesome 5 Pro";
  content: "\f1ad";
  font-weight: 600;
  position: absolute;
  top: 50%;
  left: -1%;
  transform: translateY(-50%);
  -webkit-transform: translateY(-50%);
  -ms-transform: translateY(-50%);
  font-size: 2rem;
  background-color: var(--sub-color);
  width: 100px;
  height: 100px;
  display: flex;
  justify-content: center;
  align-items: center;
  border-radius: 50%;
  color: var(--main-color);
  font-size: 2.5em;
}

h2.title__text {
  font-size: 2em;
  margin: 0;
  line-height: 1;
}

.feature__contentsSp {
  display: none;
}

.feature__item {
  display: flex;
  align-items: center;
  gap: 80px;
  margin-top: 80px;
}

.feature__item:nth-child(2n) {
  flex-direction: row-reverse;
}

.feature__picWrapper {
  flex: 1;
  width: 100%;
  aspect-ratio: 3/2;
  border-radius: 50px 0 50px 0;
  overflow: hidden;
}

img.feature__pic {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.feature__itemContent {
  flex: 1;
}

h3.item__title {
  font-size: 1.75rem;
  margin: 0;
}

h3.feature__itemTitle {
  position: relative;
  z-index: 1;
}

h3.feature__itemTitle:before {
  position: absolute;
  top: -28px;
  left: -16px;
  font-size: 4rem;
  color: var(--under-line);
  font-weight: bold;
  line-height: 1;
  z-index: -1;
}

.feature__item:first-child h3.feature__itemTitle:before {
  content: "1";
}

.feature__item:nth-child(2) h3.feature__itemTitle:before {
  content: "2";
}

.feature__item:nth-child(3) h3.feature__itemTitle:before {
  content: "3";
}

.feature__item:nth-child(4) h3.feature__itemTitle:before {
  content: "4";
}

.feature__item:nth-child(5) h3.feature__itemTitle:before {
  content: "5";
}
.feature__item:nth-child(6) h3.feature__itemTitle:before {
  content: "6";
}
.feature__item:nth-child(7) h3.feature__itemTitle:before {
  content: "7";
}
.feature__item:nth-child(8) h3.feature__itemTitle:before {
  content: "8";
}

span.under-light {
  background: linear-gradient(transparent 80%, var(--under-line) 20%);
}

@media (max-width: 800px) {
  .feature__contents {
    display: none;
  }

  .feature__contentsSp {
    display: flex;
    flex-direction: column;
    margin-top: 40px;
  }

  .title::before {
    width: 50px;
    height: 50px;
    font-size: 1.5em;
  }

  .title {
    background-color: var(--under-line);
    border-radius: 10px;
    padding: 8px 0 8px 52px;
    position: relative;
  }

  h2.title__text {
    font-size: 1.25rem;
  }

  .feature__item {
    position: relative;
    width: 100%;
    margin-right: 0;
    margin-left: auto;
    margin-top: 0;
  }

  .feature__item:nth-child(2n) {
    margin-left: 0;
    margin-right: auto;
  }

  .feature__picWrapper {
    position: absolute;
    top: 25%;
    left: 30%;
    transform: translate(-50%, -50%);
    -webkit-transform: translate(-50%, -50%);
    -ms-transform: translate(-50%, -50%);
    z-index: -1;
    width: 60%;
  }

  .feature__item:nth-child(2n) .feature__picWrapper {
    left: 70%;
  }

  .feature__itemContent {
    background-color: #ffffffd6;
    padding: 16px;
    position: absolute;
    top: 64%;
    left: 67%;
    transform: translate(-50%, -50%);
    -webkit-transform: translate(-50%, -50%);
    -ms-transform: translate(-50%, -50%);
    width: 70%;
  }

  .feature__item:nth-child(2n) .feature__itemContent {
    left: 35%;
  }

  h3.item__title {
    font-size: 1.25rem;
  }

  h3.feature__itemTitle:before {
    top: -18px;
    left: -11px;
    font-size: 3rem;
  }

  p.feature__itemText {
    font-size: 1rem;
  }
}

@media (max-width: 500px) {
  .feature__picWrapper {
    left: 40%;
    width: 75%;
  }
  .feature__itemContent {
    width: 75%;
    left: 55%;
  }

  .feature__item:nth-child(2n) .feature__picWrapper {
    left: 57%;
  }
}

/*---事業内容---*/
.works__background {
  background-color: var(--sub-background);
  padding: 80px 0;
}

.works {
  margin: 80px auto 40px;
}

.works__title {
  background-color: var(--main-color);
  color: #fff;
  text-align: center;
  padding: 24px 0;
  border-radius: 20px 20px 0 0;
}

.works__title::before {
  content: "\f82c";
  background-color: var(--main-color);
  color: var(--sub-color);
  top: -5%;
  left: 50%;
  transform: translate(-50%, -50%);
  -webkit-transform: translate(-50%, -50%);
  -ms-transform: translate(-50%, -50%);
  align-items: flex-start;
  padding-top: 4px;
}

.works__titleText {
  position: relative;
}

.works__contents {
  padding: 0 40px;
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  border: 5px solid var(--main-color);
  border-radius: 0 0 20px 20px;
  margin-top: -5px;
}

.works__item {
  display: flex;
  justify-content: center;
  text-align: center;
  padding: 32px 0;
  text-decoration: none;
  position: relative;
}

.works__item:first-child {
  grid-column: 1/4;
  border-bottom: 3px solid var(--main-color);
  padding: 40px 0;
}

.works__item:nth-child(2) {
  margin-top: 32px;
  border-bottom: 3px solid var(--main-color);
  border-right: 3px solid var(--main-color);
}

.works__item:nth-child(3) {
  margin-top: 32px;
  border-bottom: 3px solid var(--main-color);
  border-right: 3px solid var(--main-color);
}

.works__item:nth-child(4) {
  margin-top: 32px;
  border-bottom: 3px solid var(--main-color);
}

.works__item:nth-child(5) {
  margin-bottom: 32px;
  border-right: 3px solid var(--main-color);
}

.works__item:nth-child(6) {
  margin-bottom: 32px;
  border-right: 3px solid var(--main-color);
}

.works__item:nth-child(7) {
  margin-bottom: 32px;
}

.works__itemInner {
  transition: var(--hover);
}

.works__item::after {
  content: "\f30b";
  font-family: "Font Awesome 5 Pro";
  font-weight: 600;
  position: absolute;
  top: 50%;
  right: 15%;
  transform: translateY(-50%);
  -webkit-transform: translateY(-50%);
  -ms-transform: translateY(-50%);
  font-size: 0.8rem;
}

.works__itemInner i {
  color: var(--main-color);
  font-size: 4rem;
}

p.works__itemText {
  font-weight: bold;
  margin: 16px 0 0;
  line-height: 1.25em;
}

.works__item:hover .works__itemInner {
  transform: scale(1.1, 1.1);
}

.works__pageLink {
  margin-top: 80px;
}

.btn {
  display: block;
  text-align: center;
  text-decoration: none;
  position: relative;
  width: fit-content;
  margin: auto;
  padding: 1.25rem 6rem;
  font-weight: bold;
  border-radius: 15px;
  background-color: var(--main-color);
  color: #fff;
  border: 3px solid #fff;
  box-shadow: 0 5px #405784;
  transition: var(--hover);
  position: relative;
}

.btn:hover {
  box-shadow: none;
  transform: translate(0, 5px);
}

.btn:after {
  position: absolute;
  content: "\f105";
  font-family: "Font Awesome 5 Pro";
  right: 5%;
}

@media (max-width: 800px) {
  .works__background {
    padding: 40px 0;
  }

  .works {
    margin: 40px auto;
  }

  .works__title {
    padding: 16px 0;
  }

  .works__title::before {
    top: 2%;
  }

  .works__contents {
    grid-template-columns: 1fr 1fr;
    padding: 0 12px;
  }

  .works__item {
    padding: 16px 0;
  }

  .works__item:first-child {
    grid-column: 1/3;
    padding: 16px 0;
  }

  .works__item:nth-child(2) {
    margin-top: 16px;
  }

  .works__item:nth-child(3) {
    border-right: none;
    margin-top: 16px;
  }

  .works__item:nth-child(4) {
    border-right: 3px solid var(--main-color);
    margin-top: 0;
  }

  .works__item:nth-child(5) {
    border-bottom: 3px solid var(--main-color);
    border-right: none;
    margin-bottom: 0;
  }

  .works__itemInner i {
    font-size: 3rem;
  }

  p.works__itemText {
    font-size: 1rem;
    line-height: 1.5em;
  }

  .works__item::after {
    right: 3%;
    font-size: 0.7rem;
  }

  .works__pageLink {
    margin-top: 40px;
  }

  .btn {
    font-size: 1rem;
    padding: 1rem 5rem;
  }
}

/*---バナー---*/
.banner__inner {
  display: flex;
}

.banner__item {
  position: relative;
  background-size: cover;
  background-position: center;
  flex: 1;
  aspect-ratio: 2/1;
  width: 100%;
  height: auto;
  position: relative;
  z-index: 1;
  text-decoration: none;
}

.banner__item:after {
  content: "";
  position: absolute;
  background-color: #21212157;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  transition: var(--hover);
}

.banner__aboutUs {
  background-image: url(img/about-us.jpeg);
}

.banner__faq {
  background-image: url(img/faq.jpeg);
}

.banner__itemInner {
  position: relative;
  z-index: 10;
  color: #fff;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  width: 100%;
  height: 100%;
  transition: var(--hover);
}

.banner__itemInner i {
  font-size: 3rem;
  border: 2px solid;
  border-radius: 50%;
  width: 120px;
  height: 120px;
  display: flex;
  justify-content: center;
  align-items: center;
}

p.banner__itemText {
  font-size: 1.25rem;
  margin: 0;
}

.banner__item:hover::after {
  background-color: #00000000;
}

.banner__item:hover .banner__itemInner {
  color: var(--main-color);
}

@media (max-width: 800px) {
  .banner__inner {
    flex-direction: column;
  }

  .banner__itemInner i {
    font-size: 2.5rem;
    width: 100px;
    height: 100px;
  }
}

/*-----テンプレート-----*/
/*---お問い合わせバナー---*/
img.contact-banner__img {
  width: 100%;
  height: 100%;
}

.contact-banner__contents {
  width: 1000px;
  max-width: 80%;
  margin: auto;
  background-color: #fff;
  border-radius: 20px;
  margin-top: -80px;
  position: relative;
  padding: 40px 40px 120px;
}

h2.contact-banner__titleEnglish {
  font-size: 5rem;
  color: var(--sub-color);
  -webkit-text-stroke-width: 3px;
  -webkit-text-stroke-color: #000;
  text-align: center;
  margin: 0;
  letter-spacing: 0.2em;
  line-height: 1em;
  font-family: "proxima-nova", sans-serif;
  font-weight: 700;
  font-style: normal;
}

p.contact-banner__titleJapanese {
  margin: 0;
  font-weight: bold;
  font-size: 1.5rem;
  text-align: center;
}

p.contact-banner__text {
  margin: 32px 0;
  text-align: center;
}

a.contact-banner__pageBtn {
  background-color: var(--sub-color);
  color: #000;
  border: 3px solid #000;
  box-shadow: 0 5px #657f7a;
}

@media (max-width: 800px) {
  .contact-banner__contents {
    padding: 40px 0 80px;
  }

  h2.contact-banner__titleEnglish {
    font-size: min(11vw, 3rem);
    -webkit-text-stroke-width: 1.5px;
  }

  p.contact-banner__titleJapanese {
    font-size: 1.25rem;
  }
}

/*-----page-works-----*/
/*---事業案内メニュー---*/

.page__top {
  width: 90%;
  max-width: 1400px;
  margin: auto;
  margin-top: -80px;
  position: relative;
}

.page__topImgWrapper {
  aspect-ratio: 3 / 1;
  width: 100%;
  height: auto;
  border-radius: 20px;
  overflow: hidden;
}

.page__topImg {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: bottom;
}

.works__topImg {
  object-position: bottom;
}

p.page__topTitle {
  position: absolute;
  font-size: 1.5rem;
  font-weight: bold;
  line-height: 1em;
  color: var(--point-text);
  background-color: #fff;
  border-radius: 15px;
  padding: 16px 0;
  bottom: -5%;
  width: 240px;
  left: 50%;
  transform: translateX(-50%);
  -webkit-transform: translateX(-50%);
  -ms-transform: translateX(-50%);
  margin: 0;
  text-align: center;
}

@media (max-width: 800px) {
  .page__top {
    margin-top: 0;
  }

  .page__topImgWrapper {
    aspect-ratio: 4/5;
  }

  .works__topImg {
    object-position: bottom left;
  }

  p.page__topTitle {
    font-size: 1.25rem;
    border-radius: 0 0 10px 0;
    padding: 8px 16px;
    width: fit-content;
    top: 0;
    bottom: auto;
    left: 0;
    transform: translateX(0%);
    -webkit-transform: translateX(0%);
    -ms-transform: translateX(0%);
  }
}

/*---事業内容メニュー---*/

.works__menuContents {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 32px 64px;
  width: fit-content;
  margin: auto;
}

.works__menuItem {
  text-align: center;
  margin: auto;
  height: 100%;
  display: flex;
  justify-content: center;
  text-decoration: none;
}

.works__menuItem:nth-child(1) {
  grid-column: 1/4;
  grid-row: 1;
}

.works__menuItem:nth-child(2) {
  grid-column: 4/7;
  grid-row: 1;
}

.works__menuItem:nth-child(3) {
  grid-column: 7/10;
  grid-row: 1;
}

.works__menuItem:nth-child(4) {
  grid-column: 10/13;
  grid-row: 1;
}

.works__menuItem:nth-child(5) {
  grid-column: 1/5;
  grid-row: 2;
}

.works__menuItem:nth-child(6) {
  grid-column: 5/9;
  grid-row: 2;
}

.works__menuItem:nth-child(7) {
  grid-column: 9/13;
  grid-row: 2;
}

.works__menuItemInner i {
  font-size: 4rem;
  color: var(--main-color);
  border: 2px solid var(--sub-color);
  width: 120px;
  aspect-ratio: 1 / 1;
  height: 120px;
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
}

p.works__menuItemText {
  margin: 0;
  margin-top: 8px;
  font-weight: bold;
  line-height: 1.25rem;
}

@media (max-width: 800px) {
  .works__menu {
    margin: 40px auto 80px;
  }

  .works__menuContents {
    grid-template-columns: repeat(2, 1fr);
    gap: 16px 48px;
  }

  .works__menuItem:nth-child(1) {
    grid-column: 1/3;
    grid-row: 1;
  }

  .works__menuItem:nth-child(2) {
    grid-column: 1/2;
    grid-row: 2;
  }
  .works__menuItem:nth-child(3) {
    grid-column: 2/3;
    grid-row: 2;
  }

  .works__menuItem:nth-child(4) {
    grid-column: 1/2;
    grid-row: 3;
  }
  .works__menuItem:nth-child(5) {
    grid-column: 2/3;
    grid-row: 3;
  }

  .works__menuItem:nth-child(6) {
    grid-column: 1/2;
    grid-row: 4;
  }
  .works__menuItem:nth-child(7) {
    grid-column: 2/3;
    grid-row: 4;
  }
}

/*---大規模修繕コンサルティング---*/
.extensive-repair__background {
  background-color: var(--sub-background);
  padding: 40px 0;
}

.extensive-repair__content {
  background-color: #fff;
  padding: 80px;
  border-radius: 100px 0 100px 0;
  display: flex;
  flex-direction: column;
  align-items: center;
}

h3.extensive-repair__contentTitle {
  color: var(--main-color);
}

.extensive-repair__contentIcon {
  font-size: 5rem;
  color: var(--main-color);
  margin: 16px 0;
}

.extensive-repair__contentText {
  font-size: 1.1rem;
  font-weight: bold;
  margin-top: 16px;
}

.extensive-repair__flow {
  margin-top: 120px;
  display: flex;
  flex-direction: column;
  align-items: center;
}

h3.item__borderTitle {
  display: inline-block;
  background: linear-gradient(transparent 60%, var(--under-line) 40%);
}

.extensive-repair__flowItem {
  display: flex;
  gap: 40px;
  align-items: center;
  padding: 32px 40px;
  position: relative;
  margin: 2em 0;
  min-width: 120px;
  max-width: 100%;
  font-size: 16px;
  background: #fff;
  box-sizing: border-box;
  border-radius: 20px;
}

.extensive-repair__flowItem:before {
  content: "";
  position: absolute;
  bottom: -69px;
  left: 50%;
  margin-left: -46px;
  border: 42px solid transparent;
  border-top: 28px solid #fff;
  z-index: 2;
}

.extensive-repair__flowItem:after {
  content: "";
  position: absolute;
  bottom: -84px;
  left: 50%;
  margin-left: -54px;
  border: 50px solid transparent;
  z-index: 1;
}

.extensive-repair__flowItem1 {
  border: solid 5px #c5cdd9;
}

.extensive-repair__flowItem1:after {
  border-top: 33px solid #c5cdd9;
}

.extensive-repair__flowItem2 {
  border: solid 5px #a6b2c5;
}

.extensive-repair__flowItem2:after {
  border-top: 33px solid #a6b2c5;
}

.extensive-repair__flowItem3 {
  border: solid 5px #8495af;
}

.extensive-repair__flowItem3:after {
  border-top: 33px solid #8495af;
}

.extensive-repair__flowItem4 {
  border: solid 5px #6e82a0;
}

.extensive-repair__flowItem4:after {
  border-top: 33px solid #6e82a0;
}

.extensive-repair__flowItem5 {
  border: solid 5px #4c658a;
}

.extensive-repair__flowItem5:before {
  display: none;
}

.extensive-repair__flowItem5:after {
  display: none;
}

p.extensive-repair__flowItemText {
  flex: 7;
  margin: 0;
}

.extensive-repair__flowItemTitle {
  flex: 3;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  width: 100%;
}

.step {
  width: 100%;
  text-align: center;
  padding: 4px;
  border-radius: 50px;
  color: #fff;
  font-size: min(1.5rem, 2.4vw);
}

.extensive-repair__flowItem1 .step {
  background-color: #c5cdd9;
}

.extensive-repair__flowItem2 .step {
  background-color: #a6b2c5;
}

.extensive-repair__flowItem3 .step {
  background-color: #8495af;
}

.extensive-repair__flowItem4 .step {
  background-color: #6e82a0;
}

.extensive-repair__flowItem5 .step {
  background-color: #4c658a;
}

h3.extensive-repair__flowStepTitle {
  font-size: min(1.75rem, 2.4vw);
}

@media (max-width: 800px) {
  .extensive-repair__background {
    padding: 10px 0;
  }

  div#extensive-repair {
    margin: 40px auto;
  }

  .extensive-repair__content {
    padding: 32px;
    border-radius: 75px 0 75px 0;
  }

  .extensive-repair__contentIcon {
    font-size: 4rem;
  }

  .extensive-repair__contentText {
    font-size: 1rem;
    margin-top: 8px;
  }

  .extensive-repair__flow {
    margin-top: 80px;
  }

  .extensive-repair__flowItem {
    flex-direction: column;
    gap: 16px;
    padding: 24px 16px;
    margin: 1.5em 0;
  }

  .extensive-repair__flowItem:before {
    bottom: -45.5px;
    margin-left: -31px;
    border: 27px solid transparent;
    border-top: 26px solid #fff;
  }

  .extensive-repair__flowItem:after {
    bottom: -46px;
    margin-left: -27px;
    border: 23px solid transparent;
  }

  .extensive-repair__flowItem1 {
    border: solid 3px #c5cdd9;
  }

  .extensive-repair__flowItem1:after {
    border-top: 22px solid #c5cdd9;
  }

  .extensive-repair__flowItem2 {
    border: solid 3px #a6b2c5;
  }

  .extensive-repair__flowItem2:after {
    border-top: 22px solid #a6b2c5;
  }

  .extensive-repair__flowItem3 {
    border: solid 3px #8495af;
  }

  .extensive-repair__flowItem3:after {
    border-top: 22px solid #8495af;
  }

  .extensive-repair__flowItem4 {
    border: solid 3px #6e82a0;
  }

  .extensive-repair__flowItem4:after {
    border-top: 22px solid #6e82a0;
  }

  .extensive-repair__flowItem5 {
    border: solid 3px #4c658a;
  }

  .step {
    font-size: 1.25rem;
  }

  h3.extensive-repair__flowStepTitle {
    font-size: 1.25rem;
  }
}

/*---その他の事業内容---*/
.other-works__inner {
  display: flex;
  flex-direction: column;
  gap: 40px;
}

.other-works__item {
  border: 2px solid;
  border-radius: 20px;
  padding: 24px 40px;
  display: flex;
  gap: 40px;
  align-items: center;
}

.other-works__icon {
  background-color: var(--main-color);
  width: 160px;
  height: 160px;
  display: flex;
  justify-content: center;
  align-items: center;
  border-radius: 50%;
  border: 2px solid;
  flex-shrink: 0;
}

.other-works__item:nth-child(2n) {
  flex-direction: row-reverse;
}

.other-works__item:nth-child(2n) .other-works__icon {
  background-color: var(--sub-color);
}

.other-works__icon i {
  font-size: 5rem;
  color: #fff;
}

.other-works__item:nth-child(2n + 1) h3.item__borderTitle {
  background: linear-gradient(transparent 60%, #a6b4d0 40%);
}

p.other-works__text {
  margin: 0;
  margin-top: 24px;
  font-size: 1.1rem;
  font-weight: bold;
}

@media (max-width: 800px) {
  .other-works__inner {
    gap: 20px;
  }

  .other-works__item {
    flex-direction: column;
    padding: 24px 16px;
    gap: 24px;
  }

  .other-works__item:nth-child(2n) {
    flex-direction: column;
  }

  .other-works__icon {
    width: 140px;
    height: 140px;
  }

  .other-works__icon i {
    font-size: 4rem;
  }

  .other-works__content {
    text-align: center;
  }

  p.other-works__text {
    margin-top: 16px;
    font-size: 1rem;
    text-align: left;
  }
}

/*-----page-about-us-----*/
.page-id-13 header#masthead {
  background-color: var(--sub-background);
}

.about-us__topBackground {
  background-color: var(--sub-background);
}

.business-policy__background {
  background-color: var(--sub-background);
  position: relative;
  z-index: -1;
}

.page-id-13 .custom-logo-link {
  background-color: var(--sub-background);
}

p.about-us__topTitle {
  background-color: var(--sub-background);
}

.business-policy {
  padding: 120px 0;
  background-color: var(--sub-background);
}

.business-policy__declaration {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.business-policy__content {
  display: flex;
  width: 80%;
  margin-top: 80px;
}

.philosophy {
  flex-direction: row-reverse;
  margin-top: 0;
}

.concept {
  margin-left: auto;
  margin-right: 0;
}

.business-policy__itemWrapper {
  width: 100%;
  background-color: #fff;
}

.business-policy__item {
  width: fit-content;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 60px;
  min-height: 300px;
}

.philosophy__item {
  margin-right: 0;
  margin-left: auto;
}

.philosophy__itemWrapper {
  border: 3px solid #4c658a;
  border-left: none;
  border-radius: 0 25px 25px 0;
}

.concept__itemWrapper {
  border: 3px solid #c5cdd9;
  border-right: none;
  border-radius: 25px 0 0 25px;
}

.business-policy__itemTitle {
  text-align: center;
}

i.business-policy__tagIcon {
  font-size: 1.5rem;
}

p.business-policy__tagText {
  -ms-writing-mode: tb-rl;
  writing-mode: vertical-rl;
  margin: 0;
  font-size: 1.5rem;
}

i.business-policy__itemIcon {
  font-size: 1.5rem;
  color: var(--sub-color);
}

h3.business-policy__itemTitle {
  color: var(--main-color);
  display: flex;
  align-items: center;
}

ul.business-policy__itemContentUl {
  margin: 0;
  padding: 0 0 0 24px;
}

li.business-policy__itemContentLi {
  list-style: none;
  position: relative;
  font-size: 1.1rem;
  font-weight: bold;
  margin-top: 32px;
}

li.business-policy__itemContentLi span {
  background: linear-gradient(transparent 60%, var(--under-line) 40%);
}

.business-policy__itemContentLiText {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.business-policy__itemContentLiText span {
  width: fit-content;
  font-weight: bold;
}

li.business-policy__itemContentLi::before {
  content: "\f058";
  font-family: "Font Awesome 5 Pro";
  position: absolute;
  left: -24px;
  font-weight: bold;
}

.business-policy__tag {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  width: 56px;
  height: 190px;
  color: #fff;
  padding: 16px;
  margin-top: 40px;
}

.philosophy__tag {
  background-color: #4c658a;
  border-radius: 0 10px 10px 0;
  margin-left: -3px;
}

.concept__tag {
  background-color: #c5cdd9;
  border-radius: 10px 0 0 10px;
  margin-right: -3px;
}

@media (max-width: 800px) {
  .about-us__topBackground {
    margin-top: -4px;
  }

  .about-us__topImg {
    object-position: right;
  }

  .business-policy {
    padding: 40px 0 80px;
  }

  .business-policy__content {
    width: 90%;
    margin: 80px auto 0;
    display: block;
    position: relative;
  }

  .business-policy__tag {
    position: absolute;
  }

  .business-policy__tag {
    position: absolute;
    flex-direction: row;
    width: fit-content;
    height: auto;
    margin: 0;
    top: -14%;
    left: 5%;
    padding: 4px 16px;
    border-radius: 5px 5px 0 0;
  }

  .concept__tag {
    top: -4.5%;
    right: 5%;
    left: auto;
  }

  i.business-policy__tagIcon {
    color: var(--sub-color);
  }

  p.business-policy__tagText {
    -ms-writing-mode: tb-rl;
    writing-mode: horizontal-tb;
    font-size: 1.1rem;
    color: #fff;
    font-weight: bold;
  }

  .philosophy__itemWrapper {
    border: 2px solid #4c658a;
    border-radius: 20px;
  }

  .concept__itemWrapper {
    border: 2px solid #c5cdd9;
    border-radius: 20px;
  }

  .business-policy__itemTitle {
    display: none;
  }

  .business-policy__item {
    padding: 16px 16px 24px;
    min-height: auto;
  }

  li.business-policy__itemContentLi {
    margin-top: 24px;
    font-size: 1rem;
    font-weight: normal;
  }
}

/*---代表挨拶---*/
.representative__background {
  padding: 80px 0;
}

.representative.section {
  width: 70%;
  max-width: 1167px;
  margin: 80px auto;
}

.representative__picWrapper {
  position: relative;
  width: 400px;
  max-width: 80%;
  margin: auto;
}

.representative__picWrapper::after {
  content: "";
  position: absolute;
  top: -12px;
  left: 12px;
  height: 100%;
  width: 100%;
  background-color: var(--under-line);
  z-index: -1;
  border-radius: 50px;
}

.representative__picInner {
  aspect-ratio: 3 / 2;
  border-radius: 50px;
  overflow: hidden;
}

.representative__pic {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.representative__president {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-top: 40px;
}

p.representative__presidentPosition {
  margin: 0;
  font-size: 1.1rem;
  font-weight: bold;
}

h4.representative__presidentNameJap {
  font-size: 1.75rem;
  margin: 0;
  margin-top: 16px;
}

p.representative__presidentNameEng {
  margin: 0;
  font-size: 1.1rem;
}

.representative__item {
  margin-top: 80px;
}

h4.representative__title {
  font-size: 1.5rem;
  position: relative;
  padding-left: 24px;
  margin-top: 0;
}

h4.representative__title::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 0%;
  transform: translateY(-50%);
  -webkit-transform: translateY(-50%);
  -ms-transform: translateY(-50%);
  width: 20px;
  height: 5px;
  background-color: var(--sub-color);
}

.representative__content p {
  font-size: 1.1rem;
}

.representative__profileContent p {
  margin: 0;
}

.representative__profileList {
  margin-top: 24px;
}

.representative__profileList P {
  font-weight: bold;
  margin-bottom: 8px;
}

ul.representative__profileUl {
  margin: 0;
  padding: 0;
}

li.representative__profileLi {
  list-style: none;
}

@media (max-width: 800px) {
  .representative__background {
    padding: 40px 0;
  }

  .representative.section {
    width: 90%;
    margin: 40px auto;
  }

  .representative__picInner {
    border-radius: 20px;
  }

  .representative__picWrapper::after {
    top: -8px;
    left: 8px;
    border-radius: 20px;
  }

  .representative__president {
    margin-top: 24px;
  }

  p.representative__presidentPosition {
    font-size: 1rem;
  }

  h4.representative__presidentNameJap {
    font-size: 1.5rem;
    margin-top: 8px;
  }

  p.representative__presidentNameEng {
    font-size: 1rem;
  }
}

/*---会社概要---*/
.company-profile__background {
  background-color: var(--main-color);
  padding: 80px 0;
}

.company-profile {
  width: 80%;
  max-width: 1167px;
  margin: 80px auto;
}

.company-profile__title {
  background-color: #fff;
  color: var(--main-color);
  text-align: center;
  padding: 24px 0;
  border-radius: 45px 45px 0 0;
}

.company-profile__title::before {
  content: "\f82c";
  background-color: #fff;
  color: var(--sub-color);
  top: -5%;
  left: 50%;
  transform: translate(-50%, -50%);
  -webkit-transform: translate(-50%, -50%);
  -ms-transform: translate(-50%, -50%);
  align-items: flex-start;
  padding-top: 4px;
}

h2.company-profile__titleText {
  position: relative;
}

.company-profile__contents {
  background-color: #fff;
  border-radius: 0 0 45px 45px;
  padding: 40px 40px 80px;
  margin-top: -1px;
}

table.company-profile__table {
  border-top: 1px solid #000;
}

tr.company-profile__tableTr {
  display: flex;
  border-bottom: 1px solid #000;
}

th.company-profile__tableTh {
  flex: 2;
  color: var(--main-color);
  font-size: 1.1rem;
  padding: 24px 8px;
  text-align: left;
}

td.company-profile__tableTd {
  flex: 8;
  font-size: 1.1rem;
  padding: 24px 8px;
}

@media (max-width: 800px) {
  .company-profile {
    margin: 0 auto;
    width: 90%;
  }

  .company-profile__title {
    padding: 16px 0;
    border-radius: 20px 20px 0 0;
  }

  .company-profile__title::before {
    top: 2%;
  }

  .company-profile__contents {
    border-radius: 0 0 20px 20px;
    padding: 20px 20px 40px;
  }

  tr.company-profile__tableTr {
    flex-direction: column;
    gap: 8px;
    padding: 16px 0;
  }

  th.company-profile__tableTh {
    padding: 0;
  }

  td.company-profile__tableTd {
    padding: 0;
  }
}

/*-----page-faq-----*/
.faq__congtents {
  width: 80%;
  margin: 120px auto 40px;
  max-width: 1167px;
  display: flex;
  flex-direction: column;
  gap: 80px;
}

.faq__item {
  display: flex;
  flex-direction: column;
  gap: 40px;
  margin-left: 3%;
}

.faq__itemQ {
  font-size: 1.3rem;
  color: var(--point-text);
  font-weight: bold;
  position: relative;
  padding-left: 35px;
}

.faq__itemQ::before {
  position: absolute;
  content: "Q";
  width: 60px;
  height: 60px;
  top: -14px;
  left: -35px;
  background-color: var(--main-color);
  color: #fff;
  font-size: 1.5rem;
  display: flex;
  justify-content: center;
  align-items: center;
  border-radius: 50%;
}

.faq__itemA {
  font-size: 1.1rem;
  font-weight: bold;
  position: relative;
  padding-left: 35px;
}
.faq__itemA::before {
  position: absolute;
  content: "A";
  width: 60px;
  height: 60px;
  top: -20px;
  left: -35px;
  background-color: var(--sub-color);
  font-size: 1.5rem;
  display: flex;
  justify-content: center;
  align-items: center;
  border-radius: 50%;
}

@media (max-width: 800px) {
  .faq__congtents {
    width: 90%;
    margin: 80px auto 40px;
    gap: 56px;
  }

  .faq__item {
    gap: 20px;
  }

  .faq__itemQ {
    font-size: 1.1rem;
  }

  .faq__itemQ::before {
    width: 40px;
    height: 40px;
    font-size: 1rem;
    top: -9px;
    left: -10px;
  }

  .faq__itemA {
    font-size: 1rem;
  }

  .faq__itemA::before {
    width: 40px;
    height: 40px;
    font-size: 1rem;
    top: -9px;
    left: -10px;
  }
}

/*-----page-contact-----*/
.contact__contents {
  width: 70%;
  max-width: 1167px;
  margin: 80px auto 120px;
}

.contact__message {
  border: 1px solid var(--point-text);
  border-radius: 30px;
  padding: 40px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 40px;
}

p.contact__messageText {
  margin: 0;
  font-size: 1.1rem;
  font-weight: bold;
  text-align: center;
}

a.contact__messageTel {
  text-decoration: none;
  color: var(--main-color);
  font-size: 2.5rem;
  font-weight: bold;
  margin-right: -8px;
}

a.contact__messageTel span {
  font-size: 1.5rem;
  margin-right: 8px;
}

/*---コンタクトフォーム---*/
.contact__form {
  margin-top: 80px;
}

p.contactform__text {
  font-size: 1.1rem;
  font-weight: bold;
  margin: 0;
}

p.contactform__text span {
  color: red;
}

tr.contactform__item {
  margin-top: 40px;
  display: flex;
}

th.contactform__th {
  flex: 3;
}

th.contactform__th p {
  margin: 0;
  text-align: left;
  color: var(--point-text);
}

span.contactform__required {
  color: red;
}

td.contactform__td {
  flex: 7;
}

td.contactform__td p {
  margin: 0;
}

input.wpcf7-form-control.wpcf7-text.wpcf7-validates-as-required {
  width: 100%;
  height: 40px;
  background-color: var(--sub-background);
  border: none;
  border-radius: 5px;
}

textarea.wpcf7-form-control.wpcf7-textarea {
  width: 100%;
  background-color: var(--sub-background);
  border: none;
  border-radius: 5px;
}

.contactform__submit {
  margin-top: 120px;
}

input.wpcf7-form-control.wpcf7-submit.has-spinner {
  display: block;
  text-align: center;
  text-decoration: none;
  position: relative;
  width: fit-content;
  margin: auto;
  padding: 1.25rem 6rem;
  font-weight: bold;
  border-radius: 15px;
  background-color: var(--main-color);
  color: #fff;
  border: 3px solid #fff;
  box-shadow: 0 5px #405784;
  transition: var(--hover);
  position: relative;
}

input.wpcf7-form-control.wpcf7-submit.has-spinner:hover {
  box-shadow: none;
  transform: translate(0, 5px);
}

input.wpcf7-form-control.wpcf7-submit.has-spinner:after {
  position: absolute;
  content: "\f105";
  font-family: "Font Awesome 5 Pro";
  right: 5%;
}

@media (max-width: 800px) {
  .contact__contents {
    width: 90%;
    margin: 40px auto 80p;
  }

  .contact__message {
    padding: 32px 16px;
    gap: 20px;
  }

  p.contact__messageText {
    font-size: 1rem;
  }

  a.contact__messageTel {
    font-size: 1.75rem;
    font-weight: bold;
    margin-right: -4px;
  }

  a.contact__messageTel span {
    font-size: 1rem;
    font-weight: normal;
    margin-right: 4px;
  }

  .contact__form {
    margin-top: 60px;
  }

  tr.contactform__item {
    flex-direction: column;
    gap: 4px;
    margin-top: 20px;
  }

  input.wpcf7-form-control.wpcf7-submit.has-spinner {
    font-size: 1rem;
    padding: 1rem 5rem;
  }

  .contactform__submit {
    margin-top: 40px;
  }
}

/*-----page-privacy----*/
.privacy__title {
  text-align: center;
}

h2.privacy__titleEng {
  color: var(--main-color);
  font-size: 2.5rem;
  letter-spacing: 0em;
  font-weight: bolder;
  margin: 0;
}

p.privacy__titleJap {
  color: var(--main-color);
  margin: 0;
}

.privacy__inner {
  width: 70%;
  max-width: 1167px;
  margin: 80px auto 120px;
}

.privacy__item {
  margin-top: 60px;
}

ol.privacy__itemOl {
  margin-left: 0;
}

ol.privacy__itemOlInner {
  margin-left: 0;
}

ol.privacy__itemOlInnerInner {
  margin-left: 0;
}

@media (max-width: 800px) {
  .privacy {
    margin-top: 100px;
  }

  h2.privacy__titleEng {
    font-size: 2rem;
  }

  .privacy__inner {
    width: 90%;
    margin: 40px auto 80px;
  }

  .privacy__item {
    margin-top: 40px;
  }
}

/*-----404-----*/
.page-404 {
  margin: 0 auto 120px;
}

.page-404 h3 {
  font-size: 2rem;
  color: var(--sub-color);
  -webkit-text-stroke-width: 2px;
  -webkit-text-stroke-color: #000;
  text-align: center;
  margin: 0;
  letter-spacing: 0.2em;
  line-height: 1em;
  font-family: "proxima-nova", sans-serif;
  font-weight: 700;
  font-style: normal;
}

.page-404 p {
  margin: 80px 0;
  text-align: center;
}

@media (max-width: 800px) {
  .page-404 {
    margin-top: 100px;
  }

  .page-404 h3 {
    font-size: 1.75rem;
  }

  .page-404 p {
    margin: 40px 0;
    text-align: center;
  }
}

/*========= LoadingのためのCSS ===============*/

/* Loading背景画面設定　*/
#splash {
  /*fixedで全面に固定*/
  position: fixed;
  z-index: 999;
  width: 100%;
  height: 100%;
  background: #4f6ba1;
  text-align: center;
  font-size: 2rem;
  color: #fff;
  display: none;
}
body {
  display: none;
}

/*-アニメーション-*/
.fadeUpTrigger {
  opacity: 0;
}
.fadeUp {
  animation-name: fadeUpAnime;
  animation-duration: 2s;
  animation-fill-mode: forwards;
  opacity: 0;
}
@keyframes fadeUpAnime {
  from {
    opacity: 0;
    transform: translateY(100px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* その場で */
.fadeIn {
  animation-name: fadeInAnime;
  animation-duration: 1s;
  animation-fill-mode: forwards;
  opacity: 0;
}

@keyframes fadeInAnime {
  from {
    opacity: 0;
  }

  to {
    opacity: 1;
  }
}

/*---google recapture---*/
.grecaptcha-badge {
  visibility: hidden;
}
.recapture p {
  text-align: right;
  font-size: 0.8rem;
  line-height: 1.25em;
  margin: 60px 0 0;
}
/*
@media (max-width: 992px) {
  .feature__contents #about-us {
    display: none;
  }
}*/