/*
Theme Name: 塚田建設
Theme URI: https://tsukada-kensetsu.com
Author: 塚田建設
Author URI: https://tsukada-kensetsu.com
Description: 有限会社塚田建設のコーポレートサイト用WordPressテーマ
Version: 1.0.0
License: All Rights Reserved
Text Domain: tsukada-kensetsu
*/

@charset "UTF-8";

/* ==============================================
   Base Styles
   ============================================== */
html {
  font-size: 62.5%;
}

body {
  background-color: #f4f4f2;
  color: #333;
  font-family:
    "Noto Serif JP", "Helvetica Neue", Arial, "Hiragino Kaku Gothic ProN",
    "Hiragino Sans", Meiryo, sans-serif;
  font-size: 1.8rem;
  margin: 0;
  padding: 0;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  font-weight: bold;
}

p {
  line-height: 1.5em;
}

img {
  vertical-align: text-bottom;
}

a {
  color: #000;
  text-decoration: none;
}

a:hover {
  opacity: 0.5;
  cursor: pointer;
}

ul {
  display: block;
  list-style-type: none;
  margin: 0;
  padding: 0;
}

/* Utility: Word Break */
span.wbr {
  display: inline-block;
}

/* Visibility Classes */
.sp {
  display: none !important;
}

.sp-i {
  display: none !important;
}

/* ==============================================
   Header
   ============================================== */
.header-fix {
  position: fixed;
  width: 100%;
  background-color: rgba(245, 245, 242, 0.8);
  z-index: 999;
}

.header-box {
  display: flex;
  justify-content: space-around;
  align-items: center;
  height: 100px;
}

.header-title {
  font-size: 1.4rem;
}

.tsukada_logo {
  width: 70%;
}

.header-box2 {
  display: flex;
  justify-content: left;
  align-items: center;
}

.header-box2-left {
  width: 100%;
}

.header-contact-box {
  display: flex;
}

.header-contact-div {
  text-align: center;
  white-space: nowrap;
  font-size: 1.6rem;
}

.header-contact-title {
  background-color: #6c604b;
  color: #fff;
  padding: 5px 40px;
}

.header-contact-tel {
  font-size: 2rem;
  font-weight: bold;
}

.header-contact-tel a {
  color: #6c604b;
}

.header-contact-mail {
  padding: 0 10px 10px;
}

.header-contact-sns {
  display: flex;
  justify-content: center;
  align-items: center;
  align-self: center;
  margin-left: 0;
}

.header-sns-icon {
  padding: 0 10px;
}

.header-sns-icon img {
  width: 40px;
}

.free {
  font-size: 1.4rem;
  padding-left: 10px;
}

/* ==============================================
   Hero Slider
   ============================================== */
.slide-padding {
  padding-top: 147px;
}

.group_imageWrap {
  position: relative;
}

.group_image {
  position: absolute;
  top: 0;
  left: 0;
  opacity: 0;
  transition: opacity 1s 1s;
}

.group_image.isCurrent {
  z-index: 1;
  position: relative;
  opacity: 1;
  transition-delay: 0s;
}

.group_text {
  font-size: 2.4rem;
  font-weight: bold;
  padding: 0 40px 20px 0;
  position: absolute;
  bottom: 0;
  right: 0;
  z-index: 95;
}

.gradation::before {
  content: "";
  position: absolute;
  width: 100%;
  height: 100%;
  top: 0;
  left: 0;
  background: linear-gradient(
    0deg,
    #f4f4f2,
    rgba(244, 244, 242, 0.9),
    rgba(244, 244, 242, 0.8),
    rgba(244, 244, 242, 0.7),
    rgba(244, 244, 242, 0.6),
    rgba(244, 244, 242, 0.5),
    rgba(244, 244, 242, 0.4),
    rgba(244, 244, 242, 0.3),
    rgba(244, 244, 242, 0.2),
    rgba(244, 244, 242, 0.1),
    transparent 25%
  );
}

/* ==============================================
   Navigation
   ============================================== */
.nav-div {
  background-color: #6c604b;
}

.nav {
  margin: 0 auto;
}

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

.nav-flex-li {
  width: 16.6%;
  text-align: center;
  color: #fff;
  list-style: none;
}

.nav-flex-li:hover {
  background-color: rgba(244, 244, 242, 0.3);
  cursor: pointer;
}

.nav-flex-li-a {
  display: block;
  padding: 10px 0;
  color: #fff !important;
  text-decoration: none;
}

.sp-nav {
  display: none;
}

/* ==============================================
   Greeting Section
   ============================================== */
#greeting {
  width: 750px;
  margin: 0 auto;
  padding: 50px 0;
}

.greeting-box h1 {
  font-size: 2rem;
  font-weight: bold;
  margin-bottom: 1em;
  line-height: 1.4;
}

.greeting-box .greeting-lead {
  font-size: 1.8rem;
  font-weight: normal;
  line-height: 1.5em;
  margin-bottom: 1em;
}

.greeting-box h2 {
  font-size: 1.8rem;
  font-weight: normal;
  line-height: 1.5em;
  margin-bottom: 1em;
}

.greeting-box p {
  margin-bottom: 1em;
}

/* ==============================================
   Section Title (Shared Styles)
   ============================================== */
.thermal-title,
.sash-title,
.flow-title,
.works-title,
.faq-title,
.access-title {
  background-repeat: no-repeat;
  background-size: cover;
  background-position: center center;
  height: 200px;
  display: flex;
  justify-content: center;
  align-items: center;
  font-size: 2.6rem;
  opacity: 0;
}

.thermal-title {
  background-image: url(assets/img/title-thermal.jpg);
}

.sash-title {
  background-image: url(assets/img/title-sash.jpg);
}

.flow-title {
  background-image: url(assets/img/title-flow.jpg);
}

.works-title {
  background-image: url(assets/img/title-works.jpg);
  margin-bottom: -20px;
}

.faq-title {
  background-image: url(assets/img/title-faq.jpg);
  margin-bottom: 50px;
}

.access-title {
  background-image: url(assets/img/title-access.jpg);
}

.flow-title-h2 {
  text-shadow: #fff 0 0 10px;
}

#sash,
#works,
#faq,
#access,
#flow {
  margin-top: 150px;
}

/* ==============================================
   Thermal Section
   ============================================== */
.thermal-box {
  width: 750px;
  margin: 0 auto;
  padding: 50px 0;
}

.thermal-box h3 {
  font-size: 1.8rem;
  font-weight: normal;
}

.thermal-accordion {
  width: 750px;
  margin: 0 auto;
}

.thermal-accordion-header {
  border: 1px solid black;
  text-align: center;
  padding: 15px 0;
  cursor: pointer;
}

.thermal-accordion-inner {
  display: none;
}

.thermal-h3 {
  color: #a76200;
  margin: 40px 0 15px;
}

.thermal-image-box,
.thermal-image-box-2 {
  display: flex;
  justify-content: center;
}

.thermal-image-box {
  margin-top: 50px;
}

.thermal-image {
  padding: 15px;
}

/* ==============================================
   Sash Section
   ============================================== */
.sash-box {
  width: 750px;
  margin: 0 auto;
  padding: 50px 0;
}

.sash-box h3 {
  font-size: 1.8rem;
  font-weight: normal;
}

.sash-box2 {
  width: 750px;
  margin: 0 auto;
  padding: 70px 0 0;
}

.sash-accordion {
  width: 750px;
  margin: 0 auto;
}

.sash-accordion-header {
  border: 1px solid black;
  text-align: center;
  padding: 15px 0;
  cursor: pointer;
}

.sash-accordion-inner {
  display: none;
}

.sash-h3 {
  color: #a76200;
  margin: 40px 0 15px;
}

.sash-image-box,
.sash-image-box-2 {
  display: flex;
  justify-content: center;
}

.sash-image-box {
  margin-top: 50px;
}

.sash-image {
  padding: 15px;
}

/* ==============================================
   Works Section
   ============================================== */
.works-box {
  width: 750px;
  margin: 0 auto;
  padding: 50px 0 0;
}

.works-subtitle {
  text-align: center;
  margin-top: 50px;
}

.works-image-box,
.works-image-box-2 {
  display: flex;
  justify-content: center;
}

.works-image-box {
  margin-top: 25px;
}

.works-image {
  padding: 15px;
}

.works-image2 {
  padding: 15px 15px 0;
}

/* ==============================================
   FAQ Section
   ============================================== */
.faq-accordion {
  width: 750px;
  margin: 0 auto;
}

.faq-accordion-header {
  background: linear-gradient(90deg, #574e3d 0%, #8a7d68 100%);
  color: #fff;
  font-size: 1.8rem;
  font-weight: normal;
  padding: 15px 0 15px 30px;
  margin-top: 30px;
  cursor: pointer;
}

.faq-accordion-box:nth-child(even) .faq-accordion-header {
  background: linear-gradient(270deg, #574e3d 0%, #8a7d68 100%);
}

.faq-accordion-inner {
  display: none;
  border: 1px solid black;
  background-color: #fff;
  padding: 15px 20px;
}

/* ==============================================
   Access Section
   ============================================== */
.access-box {
  width: 750px;
  margin: 0 auto;
  padding: 50px 0;
}

.access-h3 {
  background-color: #6c604b;
  color: #fff;
  padding: 10px;
}

.map {
  text-align: center;
  margin: 0 auto 50px;
  width: 750px;
}

.map iframe {
  width: 100%;
  aspect-ratio: 16 / 9;
}

.access-box-2 {
  background-color: #fff;
  width: 750px;
  margin: 0 auto;
  text-align: center;
  font-size: 2rem;
  border: 1px solid black;
}

.access-contact-title {
  background-color: #6c604b;
  color: #fff;
  padding: 10px 0;
  margin-bottom: 25px;
}

.access-contact-icons {
  display: flex;
  justify-content: center;
  gap: 30px;
  padding: 20px 10px;
}

.access-icon-item {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 5px;
  text-decoration: none;
  color: #333;
  transition: opacity 0.3s;
}

.access-icon-item:hover {
  opacity: 0.7;
}

.access-icon-item img {
  width: 30px;
  height: 30px;
  object-fit: contain;
}

.access-icon-item i {
  font-size: 28px;
  color: #6c604b;
}

.access-icon-item span {
  font-size: 1.4rem;
}

.pc-contact-box .access-contact-tel,
.pc-contact-box .access-contact-mail,
.pc-contact-box .access-contact-insta,
.pc-contact-box .access-contact-line {
  margin-bottom: 15px;
}

.access-box-3 {
  width: 750px;
  margin: 0 auto;
  padding: 50px 0;
}

.access-p {
  display: flex;
  margin-bottom: 0.5em;
}

.access-p-label {
  width: 4em;
  flex-shrink: 0;
}

.access-p-value {
  flex: 1;
}

.access-p-value::before {
  content: "：";
}

.access-div-sp,
.access-div {
  margin-bottom: 30px;
}

.access-div {
  padding-right: 0;
  margin-top: 30px;
}

/* ==============================================
   Footer
   ============================================== */
.footer {
  background-color: #6c604b;
  color: #fff;
  font-size: 1.2rem;
  text-align: center;
  padding: 10px 0;
  margin-top: 50px;
}

/* ==============================================
   Fixed Mail Button
   ============================================== */
.mail-box {
  position: fixed;
  bottom: 40px;
  right: 0;
  background-color: #6c604b;
  padding: 10px;
  z-index: 96;
  border-top: 3px solid #f4f4f2;
  border-left: 3px solid #f4f4f2;
  border-bottom: 3px solid #f4f4f2;
}

.mail-img {
  width: 30px;
}

/* ==============================================
   Hamburger Menu (SP)
   ============================================== */
.g-nav-sp-btn {
  background-color: #6c604b;
  display: block;
  padding: 21px;
  position: fixed;
  right: 8px;
  top: 8px;
  z-index: 98;
}

.g-nav-sp-btn::after {
  position: absolute;
  content: "MENU";
  display: block;
  color: #fff;
  top: 25px;
  right: 6px;
  font-size: 0.9rem;
}

.g-nav-sp-btn-line {
  display: block;
  position: absolute;
  background-color: #fff;
  height: 2px;
  left: 8px;
  top: 14px;
  width: 26px;
  transition: 0.2s ease-out;
  z-index: 99;
}

.g-nav-sp-btn-line::after,
.g-nav-sp-btn-line::before {
  background-color: #fff;
  content: "";
  display: block;
  height: 2px;
  position: absolute;
  transition: 0.2s ease-out;
  width: 26px;
}

.g-nav-sp-btn-line::after {
  top: 7px;
}

.g-nav-sp-btn-line::before {
  top: -7px;
}

body.g-nav-sp-open .g-nav-sp-btn-line {
  height: 0;
}

body.g-nav-sp-open .g-nav-sp-btn-line::before {
  transform: translateY(7px) rotate(45deg);
}

body.g-nav-sp-open .g-nav-sp-btn-line::after {
  transform: translateY(-7px) rotate(-45deg);
}

body.g-nav-sp-open #g-nav-sp {
  right: 0;
}

#g-nav-sp {
  background-color: #fff;
  display: block;
  height: 100%;
  position: fixed;
  right: -100%;
  text-align: center;
  top: 0;
  width: 100%;
  z-index: 96;
}

.g-nav-sp-list {
  list-style: none;
  margin-top: 30px;
  padding: 0;
}

.g-nav-sp-item {
  font-size: 1rem;
  text-align: left;
  padding: 0 0 0 30px;
  margin: 0 30px;
  border-bottom: 1px solid #d6d5d5;
}

.g-nav-sp-item span {
  color: #000;
  display: block;
  padding: 20px 0;
  text-decoration: none;
  font-size: 1.5rem;
}

.g-nav-h3 {
  font-size: 1.7rem;
  font-weight: bold;
}

.g-nav-div {
  margin-top: 10px;
}

.g-nav-div-p {
  font-size: 1.6rem;
  margin-top: 5px;
}

/* ==============================================
   Fade In Animation
   ============================================== */

/* 初期状態でコンテンツを非表示（ちらつき防止） */
.thermal-title,
.sash-title,
.flow-title,
.works-title,
.faq-title,
.access-title,
.thermal-box,
.thermal-accordion,
.sash-box,
.sash-accordion,
.works-box,
.faq-accordion,
.access-box,
.access-box-2,
.access-box-3,
.map {
  opacity: 0;
}

.fadein-animation {
  display: flex;
  margin-top: 10px;
}

.size {
  width: 100%;
}

.size img {
  width: 100%;
  height: 100%;
  background-color: #e0e4eb;
}

.size p {
  font-size: 14px;
}

.fade-in {
  opacity: 0;
  animation: fade-in-anime 1s forwards linear;
}

.fade-in-content {
  opacity: 0;
  animation: fade-in-anime 0.8s 0.3s forwards linear;
}

@keyframes fade-in-anime {
  0% {
    opacity: 0;
  }
  100% {
    opacity: 1;
  }
}

/* ==============================================
   Utility Classes
   ============================================== */
.add-space {
  margin-top: 50px;
}

.add-margin {
  margin-top: 25px;
}

.second-mar {
  margin-top: 10px;
}

/* ==============================================
   Responsive: Tablet (max-width: 1100px)
   ============================================== */
@media screen and (max-width: 1100px) {
  .nav-flex-li-a {
    font-size: 1.6rem;
  }

  .slide-padding {
    padding-top: 144px;
  }
}

/* ==============================================
   Responsive: Small Tablet (max-width: 1000px)
   ============================================== */
@media screen and (max-width: 1000px) {
  .tsukada_logo {
    width: 75%;
  }

  .pc-nav {
    display: none;
  }

  .sp-nav {
    display: block !important;
  }

  .header-box2 {
    display: block;
  }

  .sp-i {
    display: block !important;
  }

  .pc-i {
    display: none !important;
  }

  .header-contact-sns-i {
    display: flex !important;
  }

  .header-box2-left {
    width: 100%;
    padding-right: 0;
    text-align: left;
    margin: initial;
  }

  .header-title {
    text-align: center;
  }

  .header-box {
    height: 80px;
    padding: 0 50px;
  }

  .slide-padding {
    padding-top: 80px;
  }

  .header-sns-icon img {
    width: 40px;
  }
}

/* ==============================================
   Responsive: Mobile (max-width: 767px)
   ============================================== */
@media screen and (max-width: 767px) {
  /* Base */
  body {
    font-size: 1.6rem;
    font-weight: 600;
  }

  /* Visibility */
  .sp {
    display: block !important;
  }

  .sp-i {
    display: none !important;
  }

  .pc {
    display: none !important;
  }

  /* Header */
  .header-fix {
    background-color: rgba(245, 245, 242, 0.9);
    border-bottom: 3px solid #6c604b;
  }

  .header-box {
    justify-content: left;
    padding: 0;
    height: 50px;
    margin-top: 5px;
  }

  .header-box2 {
    display: block;
  }

  .header-box2-left {
    width: auto;
    padding-left: 15px;
    margin-bottom: 0;
  }

  .header-title {
    font-size: 1.2rem;
    text-align: center;
  }

  .tsukada_logo {
    width: 160px;
  }

  .header-contact-box {
    margin-top: 20px;
    padding: 0 15px;
  }

  .header-contact-div-sp {
    background-color: #fff;
    border: 1px solid black;
    text-align: center;
    white-space: nowrap;
    font-size: 1.6rem;
    margin: 50px 30px;
  }

  .header-contact-tel {
    margin-top: 10px;
  }

  .header-contact-mail {
    text-align: left;
    padding: 15px 0 20px 30px;
  }

  .header-contact-insta {
    text-align: left;
    padding: 20px 0 0 5em;
  }

  .header-contact-line {
    text-align: left;
    padding: 15px 0 20px 4em;
  }

  .header-contact-sns {
    display: flex !important;
    align-self: center;
    margin-top: 10px;
    margin-bottom: 10px;
  }

  .header-sns-icon {
    padding: 0 7px;
    width: 40px;
  }

  .header-sns-icon img {
    width: 45px;
  }

  /* Slider */
  .slide-padding {
    padding-top: 55px;
  }

  .group_text {
    font-size: 1.6rem;
    line-height: 2rem;
    padding: 10px 15px;
    text-align: right;
    left: 20%;
  }

  .gradation::before {
    background: linear-gradient(
      0deg,
      #f4f4f2,
      rgba(244, 244, 242, 0.9),
      rgba(244, 244, 242, 0.8),
      rgba(244, 244, 242, 0.7),
      rgba(244, 244, 242, 0.6),
      rgba(244, 244, 242, 0.5),
      rgba(244, 244, 242, 0.4),
      rgba(244, 244, 242, 0.3),
      rgba(244, 244, 242, 0.2),
      rgba(244, 244, 242, 0.1),
      transparent 50%
    );
  }

  /* Greeting */
  #greeting {
    width: 100%;
    padding: 30px 15px 50px;
  }

  .greeting-box h2 {
    font-size: 1.6rem;
    font-weight: 600;
  }

  /* Section Titles (Shared) */
  .thermal-title,
  .sash-title,
  .flow-title,
  .works-title,
  .faq-title,
  .access-title {
    height: 100px;
  }

  .thermal-title h2,
  .sash-title h2,
  .flow-title h2,
  .works-title h2,
  .faq-title h2,
  .access-title h2 {
    font-size: 2.2rem;
    text-shadow:
      2px 2px 0 #fff,
      -2px -2px 0 #fff,
      -2px 2px 0 #fff,
      2px -2px 0 #fff,
      0 2px 0 #fff,
      0 -2px 0 #fff,
      2px 0 0 #fff,
      -2px 0 0 #fff;
  }

  .flow-title-h2 {
    text-shadow:
      2px 2px 0 #fff,
      -2px -2px 0 #fff,
      -2px 2px 0 #fff,
      2px -2px 0 #fff,
      0 2px 0 #fff,
      0 -2px 0 #fff,
      2px 0 0 #fff,
      -2px 0 0 #fff;
  }

  #sash,
  #works,
  #faq,
  #access,
  #flow {
    margin-top: 100px;
  }

  /* Thermal */
  .thermal-box {
    width: 100%;
    padding: 30px 15px;
  }

  .thermal-box h3 {
    font-size: 1.6rem;
    font-weight: 600;
  }

  .thermal-accordion {
    width: 100%;
    padding: 0 15px;
  }

  .thermal-accordion-inner {
    padding: 0 5px;
  }

  .thermal-h3 {
    margin: 30px 0 10px;
  }

  .thermal-image-box {
    margin-top: 30px;
  }

  .thermal-image {
    padding: 5px;
  }

  /* Sash */
  .sash-box {
    width: 100%;
    padding: 30px 15px;
  }

  .sash-box h3 {
    font-size: 1.6rem;
    font-weight: 600;
  }

  .sash-box2 {
    width: 100%;
    padding: 40px 15px 0 !important;
  }

  .sash-accordion {
    width: 100%;
    padding: 0 15px;
  }

  .sash-accordion-inner {
    padding: 0 5px;
  }

  .sash-h3 {
    margin: 30px 0 10px;
  }

  .sash-image-box {
    margin-top: 30px;
  }

  .sash-image-box-2 {
    display: block;
  }

  .sash-image {
    padding: 5px;
  }

  /* Works */
  .works-box {
    width: 100%;
    padding: 30px 15px 0;
  }

  .works-subtitle {
    margin-top: 30px;
  }

  .works-image-box {
    margin-top: 10px;
  }

  .works-image {
    padding: 5px;
  }

  /* FAQ */
  .faq-accordion {
    width: 100%;
  }

  .faq-accordion-header {
    font-size: 1.6rem;
    font-weight: 600;
    padding: 15px 10px 15px 20px;
    margin-top: 15px;
  }

  .faq-accordion-inner {
    padding: 15px 10px 15px 20px;
  }

  #faq2 {
    padding-bottom: 100px;
  }

  /* Access */
  .access-box {
    width: 100%;
    padding: 30px 0;
  }

  .access-h3 {
    text-align: center;
  }

  .map {
    margin: 0 auto 30px;
    width: 100%;
  }

  .map iframe {
    aspect-ratio: 1 / 1;
  }

  .access-box-2 {
    width: 95%;
    font-size: 1.6rem;
  }

  .access-contact-icons {
    flex-wrap: nowrap;
    gap: 10px;
    padding: 10px;
    margin-top: -15px;
  }

  .access-icon-item {
    flex-direction: column;
    text-align: center;
    width: 25%;
  }

  .access-icon-item img {
    width: 30px;
    height: 30px;
  }

  .access-icon-item i {
    font-size: 28px;
  }

  .access-icon-item span {
    font-size: 1.2rem;
    margin-top: 2px;
    white-space: nowrap;
  }

  .access-box-3 {
    width: 100%;
    padding: 30px 15px;
  }

  .sp-indent::before {
    content: "　";
  }

  /* SP Footer Buttons */
  .sp-footer-btn {
    position: fixed !important;
    bottom: 0;
    left: 0 !important;
    right: 0 !important;
    width: 100% !important;
    display: flex !important;
    flex-direction: row !important;
    margin: 0 !important;
    padding: 0 !important;
    z-index: 1000 !important;
    list-style: none !important;
  }

  .sp-footer-btn li {
    width: 50%;
    margin: 0;
    padding: 0;
    list-style: none;
  }

  .sp-footer-btn li a {
    display: flex !important;
    flex-direction: row !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 8px;
    background-color: #4a4033;
    color: #fff;
    text-align: center;
    padding: 12px 0;
    border-top: 2px solid rgba(255, 255, 255, 1);
    border-right: 2px solid rgba(255, 255, 255, 1);
    text-decoration: none;
    height: 100%;
    box-sizing: border-box;
  }

  .sp-footer-btn li:last-child a {
    border-right: none;
  }

  .sp-footer-icon {
    height: 20px;
    display: flex;
    justify-content: center;
    align-items: center;
  }

  .sp-footer-icon img {
    height: 100%;
    width: auto;
  }

  .sp-footer-btn p {
    font-size: 1.6rem;
    line-height: 1;
    margin: 0;
  }

  /* Hide mail button on mobile */
  .mail-box {
    display: none;
  }

  .tel-img {
    width: 35px;
  }
}

/* ==============================================
   Contact Form 7
   ============================================== */
.cf7-form-wrap {
  max-width: 750px;
  margin: 0 auto;
  padding: 30px 0;
}

.cf7-field {
  margin-bottom: 25px;
}

.cf7-field label {
  display: block;
  font-weight: bold;
  margin-bottom: 8px;
  font-size: 1.6rem;
}

.cf7-required {
  background-color: #c0392b;
  color: #fff;
  font-size: 1.1rem;
  padding: 2px 8px;
  margin-left: 8px;
  border-radius: 3px;
}

.cf7-optional {
  background-color: #7f8c8d;
  color: #fff;
  font-size: 1.1rem;
  padding: 2px 8px;
  margin-left: 8px;
  border-radius: 3px;
}

.cf7-form-wrap input[type="text"],
.cf7-form-wrap input[type="email"],
.cf7-form-wrap input[type="tel"],
.cf7-form-wrap textarea {
  width: 100%;
  padding: 12px 15px;
  border: 1px solid #ccc;
  border-radius: 4px;
  font-size: 1.6rem;
  font-family: inherit;
  background-color: #fff;
  box-sizing: border-box;
}

.cf7-form-wrap input[type="text"]:focus,
.cf7-form-wrap input[type="email"]:focus,
.cf7-form-wrap input[type="tel"]:focus,
.cf7-form-wrap textarea:focus {
  outline: none;
  border-color: #6c604b;
  box-shadow: 0 0 0 2px rgba(108, 96, 75, 0.2);
}

.cf7-form-wrap textarea {
  min-height: 150px;
  resize: vertical;
}

.cf7-form-wrap input[type="submit"],
.cf7-form-wrap .wpcf7-submit,
.cf7-form-wrap .cfcpf-confirm-btn,
.cf7-form-wrap .cfcpf-back-btn {
  display: inline-block;
  padding: 15px 50px;
  font-size: 1.8rem;
  font-weight: bold;
  color: #fff;
  background-color: #6c604b;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  transition: opacity 0.3s;
  font-family: inherit;
}

.cf7-form-wrap input[type="submit"]:hover,
.cf7-form-wrap .wpcf7-submit:hover,
.cf7-form-wrap .cfcpf-confirm-btn:hover {
  opacity: 0.7;
}

.cf7-form-wrap .cfcpf-back-btn {
  background-color: #999;
  margin-right: 15px;
}

.wpcf7-not-valid-tip {
  color: #c0392b;
  font-size: 1.3rem;
  margin-top: 5px;
}

.wpcf7-response-output {
  border: 2px solid #6c604b !important;
  padding: 15px !important;
  text-align: center;
  margin-top: 20px !important;
}

@media screen and (max-width: 767px) {
  .cf7-form-wrap {
    padding: 20px 15px;
  }

  .cf7-form-wrap input[type="submit"],
  .cf7-form-wrap .wpcf7-submit,
  .cf7-form-wrap .cfcpf-confirm-btn,
  .cf7-form-wrap .cfcpf-back-btn {
    width: 100%;
    margin-bottom: 10px;
  }

  .cf7-form-wrap .cfcpf-back-btn {
    margin-right: 0;
  }
}

.page-title {
  background-color: #6c604b;
  color: #fff;
  padding: 15px 0;
  text-align: center;
  font-size: 2.4rem !important;
  margin-bottom: 30px;
}

/* ==============================================
   Contact Form 7 - Buttons & Turnstile
   ============================================== */
.cf7-submit-wrapper {
  text-align: center;
  margin-top: 30px;
}

.cf7-submit-wrapper .wpcf7-form-control-wrap {
  display: block !important;
  margin-bottom: 20px;
}

/* Spinner breaks centering when position is static. Use wrapper for relative positioning */
.cf7-submit-wrapper {
  position: relative;
}

.cf7-submit-wrapper .wpcf7-submit {
  margin: 0 auto;
  display: block; /* Change to block so we can margin: 0 auto correctly */
}

/* Position spinner correctly with absolute so button title stays perfectly centered */
.cf7-submit-wrapper .wpcf7-spinner {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(
    60px,
    -50%
  ); /* Offset slightly to the right of "送信する" text */
  margin: 0;
}

/* ==============================================
   Thanks Page (Contact Complete)
   ============================================== */
.thanks-page-wrapper {
  max-width: 750px;
  margin: 0 auto;
  padding: 40px 15px;
  text-align: center;
}

.thanks-message-box {
  background-color: #fff;
  border: 1px solid #e0dcd5;
  padding: 40px 30px;
  border-radius: 8px;
}

.thanks-heading {
  font-size: 2.2rem;
  color: #6c604b;
  margin-bottom: 25px;
  line-height: 1.5;
  font-weight: bold;
}

.thanks-text {
  font-size: 1.6rem;
  line-height: 1.8;
  margin-bottom: 40px;
}

.btn-home {
  display: inline-block;
  padding: 15px 50px;
  font-size: 1.6rem;
  font-weight: bold;
  color: #fff;
  background-color: #6c604b;
  text-decoration: none;
  border-radius: 4px;
  transition: opacity 0.3s;
}

.btn-home:hover {
  opacity: 0.7;
}

@media screen and (max-width: 767px) {
  .thanks-message-box {
    padding: 30px 20px;
  }
}
