@charset "UTF-8";
/*!
Theme Name: Cocoon Child
Description: Cocoon専用の子テーマ
Theme URI: https://wp-cocoon.com/
Author: わいひら
Author URI: https://nelog.jp/
Template: cocoon-master
Version: 1.1.3
*/

/* Variables */
:root {
  --sg-primary: #01414E;
  /* Dark Green/Teal */
  --sg-accent: #00BFA5;
  /* Bright Teal */
  --sg-gold: #d9a62e;
  /* New Gold Color */
  --sg-text: #212529;
  /* Dark Gray */
  --sg-bg: #F5F5F5;
  /* Light Gray */
  --sg-white: #FFFFFF;
  --sg-font-main: "Meiryo", "Hiragino Kaku Gothic ProN", "Noto Sans JP", sans-serif;
}

/* Global Typography */
body {
  font-family: var(--sg-font-main) !important;
  color: var(--sg-text) !important;
  background-color: var(--sg-white);
}

a {
  color: var(--sg-primary);
  text-decoration: none;
  transition: opacity 0.3s;
}

a:hover {
  opacity: 0.7;
  text-decoration: none;
}

/* Header Customization */
.header-container {
  box-shadow: none !important;
  border-bottom: 1px solid #eee;
}

.logo-header img {
  max-height: 50px;
  /* Adjust based on actual logo */
}

/* Navigation */
.global-nav-list>li>a {
  color: var(--sg-text) !important;
  font-weight: bold;
  font-size: 14px;
}

.global-nav-list>li>a:hover {
  color: var(--sg-accent) !important;
}

/* Buttons */
.btn-sg-primary {
  display: inline-block;
  padding: 12px 32px;
  background-color: transparent;
  color: var(--sg-text);
  border: 1px solid var(--sg-text);
  font-weight: bold;
  border-radius: 0;
  /* Boxy look */
  text-align: center;
}

.btn-sg-primary:hover {
  background-color: var(--sg-text);
  color: var(--sg-white);
}

.btn-sg-accent {
  display: inline-block;
  padding: 15px 40px;
  background-color: var(--sg-accent);
  color: var(--sg-white);
  border: none;
  font-weight: bold;
  border-radius: 4px;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

/* Footer Customization */
.footer {
  border-top: 5px solid var(--sg-gold) !important;
  background-color: var(--sg-white) !important;
  padding-top: 40px;
}

/* Front Page Specifics */
.sg-hero,
.sg-section {
  width: 100vw;
  position: relative;
  left: 50%;
  right: 50%;
  margin-left: -50vw;
  margin-right: -50vw;
  box-sizing: border-box;
  /* Ensure padding inside doesn't add to width */
}

.sg-hero {
  position: relative;
  overflow: hidden;
  padding: 80px 0;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 600px;
  background-color: var(--sg-white);
  /* Ensure bg covers everything */
}

.sg-hero-content {
  z-index: 2;
  position: relative;
  max-width: 1200px;
  width: 100%;
  margin: 0 auto;
  padding: 0 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.sg-hero-text {
  width: 45%;
}

.sg-hero-title {
  font-size: 2.5rem;
  font-weight: bold;
  line-height: 1.4;
  margin-bottom: 20px;
  color: var(--sg-text);
}

.sg-hero-sub {
  font-size: 1.1rem;
  margin-bottom: 30px;
  color: #555;
}

/* Slanted Background Effect */
.sg-hero-bg-right {
  position: absolute;
  top: 0;
  right: 0;
  width: 60%;
  height: 100%;
  background-color: #f0f0f0;
  /* Placeholder for image */
  background-image: url('https://hase-works.com/wp-content/uploads/2026/01/top-img-scaled.png');
  /* Fallback/Placeholder */
  background-size: cover;
  background-position: center;
  clip-path: polygon(20% 0, 100% 0, 100% 100%, 0% 100%);
  z-index: 1;
}

/* Sections */
.sg-section {
  padding: 80px 0;
}

.sg-section-gray {
  background-color: var(--sg-bg);
}

.sg-section-title {
  text-align: center;
  font-size: 2rem;
  font-weight: bold;
  margin-bottom: 40px;
  position: relative;
  display: inline-block;
  width: 100%;
}

.sg-section-title span {
  border-bottom: 3px solid var(--sg-gold);
  padding-bottom: 5px;
}

/* Service Cards */
.sg-service-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

.sg-card {
  background: var(--sg-white);
  padding: 30px;
  border-radius: 8px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
  text-align: center;
  transition: transform 0.3s;
}

.sg-card:hover {
  transform: translateY(-5px);
}

.sg-card .btn-sg-primary {
  margin-top: 20px;
  font-size: 0.9rem;
  padding: 10px 20px;
}

.sg-button-container {
  text-align: center;
  margin-top: 50px;
}

/* Responsive */
/* Responsive Scalable Hero */
@media (max-width: 768px) {

  /* Maintain composition by keeping flex-row but scaling contents */
  .sg-hero {
    height: auto;
    min-height: 40vw;
    /* Scale height */
    padding: 8vw 0;
    /* Scale padding */
    align-items: flex-start;
    /* Align top to avoid centering issues when small */
  }

  .sg-hero-content {
    flex-direction: row;
    /* Keep side-by-side */
    align-items: center;
    width: 100%;
    padding: 0 4vw;
    /* Scale padding */
  }

  .sg-hero-text {
    width: 50%;
    /* Adjust width for balance */
    margin-bottom: 0;
  }

  .sg-hero-bg-right {
    display: block;
    /* Show image again */
    clip-path: polygon(20% 0, 100% 0, 100% 100%, 0% 100%);
    /* Restore shape */
    height: 100%;
    position: absolute;
    width: 60%;
    right: 0;
    top: 0;
  }

  /* Typography Scaling */
  .sg-hero-title {
    font-size: 4.5vw;
    /* Fluid font size */
    margin-bottom: 2vw;
  }

  .sg-hero-sub {
    font-size: 2.5vw;
    /* Fluid font size */
    margin-bottom: 3vw;
  }

  .btn-sg-primary {
    font-size: 2.5vw;
    padding: 1.5vw 3vw;
    border-width: 1px;
  }

  /* Make sure service grid doesn't break due to previous changes */
  .sg-service-grid {
    grid-template-columns: 1fr;
  }
}


/* Front Page Layout Override - Force Full Width */
/* Front Page Layout Override - Force Full Width */
.home.page #content,
.home.page .wrap,
.home.page #content-in,
.home.page .content-in,
.home.page .main,
.home.page #main,
.home.page .content,
.home.page .container,
.home.page .row {
  width: 100% !important;
  max-width: 100% !important;
  margin: 0 !important;
  padding: 0 !important;
  border: none !important;
}

/* Specific fix for inner padding often found in Cocoon */
.home.page .main>div,
.home.page .entry-content {
  padding: 0 !important;
  margin: 0 !important;
}

/* Override Cocoon's responsive padding on mobile/tablet */
@media screen and (max-width: 1280px) {

  .home.page #content-in,
  .home.page .content-in {
    padding: 0 !important;
  }
}

/* Ensure body/html allow full width just in case */
body,
html {
  overflow-x: hidden !important;
  width: 100%;
}

/* Ensure no sidebar space is reserved */
.home.page .sidebar {
  display: none !important;
}

/* Standard Page Layout Fix */
/* Ensure title and content are not stuck to the edge on standard pages */
body.page:not(.home) #content-in {
  max-width: 1680px;
  /* Wider container */
  margin: 0 auto;
  /* Center the container */
  padding: 40px 30px;
  /* Add breathing room */
  background-color: var(--sg-white);
}

/* Responsive adjustment */
@media (max-width: 768px) {
  body.page:not(.home) #content-in {
    padding: 30px 20px;
  }
}

.page .sns-share,
.page .sns-follow {
  display: none;
}

/* Pain Points Text Container */
.sg-pain-text {
  max-width: 1000px;
  margin: 0 auto;
  text-align: center;
  padding: 0 20px;
}

/* Mobile Adjustments for Typography */
@media (max-width: 768px) {
  .sg-section-title {
    font-size: 1.4rem;
    /* Reduce font size */
    text-align: left;
    /* Align left */
    padding: 0 20px;
    /* Ensure padding */
    line-height: 1.4;
  }

  .sg-section-title span {
    display: inline-block;
    border-bottom: 2px solid var(--sg-gold);
    /* Thinner border for mobile */
  }

  .sg-pain-text {
    text-align: left;
    /* Align body text left */
  }

  .sg-center-on-mobile {
    text-align: center !important;
  }
}

/* =======================ここから新規===================================================
   */

/* フォーム全体のコンテナ */
.sg-form-container {
  max-width: 600px;
  margin: 0 auto;
  text-align: left;
}

/* 各入力行のスタイル */
.sg-form-row {
  margin-bottom: 25px;
}

.sg-form-row label {
  display: block;
  font-weight: bold;
  margin-bottom: 8px;
  color: var(--sg-text);
}

.sg-form-row .required {
  background: #e74c3c;
  color: #fff;
  font-size: 0.7rem;
  padding: 2px 6px;
  border-radius: 3px;
  margin-left: 5px;
  vertical-align: middle;
}

/* 入力フィールドの共通スタイル */
.wpcf7-form-control:not([type="submit"]) {
  width: 100%;
  padding: 12px 15px;
  border: 1px solid #ddd;
  border-radius: 4px;
  font-size: 1rem;
  transition: border-color 0.3s;
}

.wpcf7-form-control:focus {
  border-color: var(--sg-primary);
  outline: none;
}

/* 送信ボタンの調整 */
.sg-form-submit {
  text-align: center;
  margin-top: 40px;
}

.sg-form-submit .btn-sg-primary {
  cursor: pointer;
  border: none;
  padding: 15px 50px;
  font-weight: bold;
  min-width: 250px;
}