/*
Theme Name: Esperanza
Theme URI: https://esperanza.example.com/
Author: Esperanza Co., Ltd.
Author URI: https://esperanza.example.com/
Description: 株式会社エスペランザ様のコーポレートサイト用オリジナルテーマ。福祉機器の販売・レンタル、環境改善マルチクリーナー事業を紹介するランディングページ型テーマです。
Version: 1.0.0
Requires at least: 6.0
Tested up to: 6.5
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: esperanza
Tags: business, corporate, one-page, welfare, japanese
*/

  /* =========================================
     RESET & BASE
     ========================================= */
  *,*::before,*::after { box-sizing: border-box; margin: 0; padding: 0; }
  html { scroll-behavior: smooth; }
  body {
    font-family: 'Noto Sans JP', -apple-system, sans-serif;
    color: #1a2b3d;
    line-height: 1.8;
    background: #fbfcfe;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
  }
  img { max-width: 100%; height: auto; display: block; }
  a { color: inherit; text-decoration: none; }
  ul { list-style: none; }
  button { font-family: inherit; cursor: pointer; border: none; background: none; }

  /* =========================================
     DESIGN TOKENS
     ========================================= */
  :root {
    --c-primary: #0a5ba9;      /* メインブルー */
    --c-primary-dark: #063f76; /* ダークブルー */
    --c-primary-light: #4a90d9;
    --c-accent: #f39200;       /* ロゴ由来のオレンジ */
    --c-accent-dark: #d97a00;
    --c-text: #1a2b3d;
    --c-text-sub: #5c6b7a;
    --c-line: #e5ecf3;
    --c-bg: #fbfcfe;
    --c-bg-alt: #f2f6fb;
    --c-bg-blue: #0a5ba9;
    --font-serif: 'Noto Serif JP', serif;
    --font-en: 'Cormorant Garamond', serif;
    --shadow-sm: 0 2px 12px rgba(10, 91, 169, 0.06);
    --shadow-md: 0 8px 32px rgba(10, 91, 169, 0.10);
    --shadow-lg: 0 20px 60px rgba(10, 91, 169, 0.15);
    --radius: 8px;
    --container: 1200px;
  }

  .container { max-width: var(--container); margin: 0 auto; padding: 0 24px; }
  .container-wide { max-width: 1400px; margin: 0 auto; padding: 0 24px; }

  /* Section title */
  .section-heading { text-align: center; margin-bottom: 64px; }
  .section-heading .en {
    font-family: var(--font-en);
    font-size: 14px;
    letter-spacing: 0.4em;
    color: var(--c-primary);
    text-transform: uppercase;
    font-weight: 500;
    display: inline-block;
    padding-bottom: 8px;
    border-bottom: 1px solid var(--c-primary);
    margin-bottom: 20px;
  }
  .section-heading h2 {
    font-family: var(--font-serif);
    font-size: clamp(28px, 4vw, 40px);
    font-weight: 500;
    letter-spacing: 0.08em;
    color: var(--c-text);
  }
  .section-heading h2 .accent {
    color: var(--c-primary);
  }
  .section-heading p {
    margin-top: 20px;
    color: var(--c-text-sub);
    font-size: 15px;
    max-width: 640px;
    margin-left: auto;
    margin-right: auto;
  }

  section { padding: 120px 0; position: relative; }
  @media (max-width: 768px) { section { padding: 80px 0; } }

  /* =========================================
     HEADER
     ========================================= */
  header {
	  position: fixed;
	  top: 0;
	  left: 0;
	  right: 0;
	  z-index: 100;
	  padding: 20px 0;
	  background: rgba(255, 255, 255, 0.85);
	  backdrop-filter: blur(12px);
	  -webkit-backdrop-filter: blur(12px);
	  border-bottom: 1px solid transparent;
	  transition: all 0.3s ease;
	  box-sizing: border-box; /* 追加 */
	  width:100vw;
/* width: 100%; は削除、または left/right があれば不要 */

  }
  header.scrolled {
    padding: 12px 0;
    border-bottom-color: var(--c-line);
    background: rgba(255,255,255,0.95);
  }
  .header-inner {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 32px;
    display: flex;
    align-items: center;
    justify-content: space-between;
  }
  .logo {
    display: flex;
    align-items: center;
    gap: 12px;
  }
  .logo-mark {
    width: 52px; height: 52px;
    display: grid;
    place-items: center;
    flex-shrink: 0;
  }
  .logo-mark img { width: 100%; height: 100%; object-fit: contain; }
  .logo-text .name-jp {
    font-family: var(--font-serif);
    font-size: 17px;
    font-weight: 500;
    line-height: 1;
    letter-spacing: 0.08em;
  }
  .logo-text .name-en {
    font-family: var(--font-en);
    font-size: 12px;
    letter-spacing: 0.2em;
    color: var(--c-text-sub);
    margin-top: 4px;
  }

  nav.gnav ul {
    display: flex;
    gap: 40px;
    align-items: center;
  }
  nav.gnav a {
    font-size: 14px;
    font-weight: 500;
    position: relative;
    padding: 6px 0;
    transition: color 0.2s;
  }
  nav.gnav a::after {
    content: '';
    position: absolute;
    left: 0; right: 0; bottom: 0;
    height: 1px;
    background: var(--c-primary);
    transform: scaleX(0);
    transform-origin: right;
    transition: transform 0.3s ease;
  }
  nav.gnav a:hover { color: var(--c-primary); }
  nav.gnav a:hover::after {
    transform: scaleX(1);
    transform-origin: left;
  }
  nav.gnav a.contact-btn {
    background: var(--c-primary);
    color: white;
    padding: 10px 22px;
    border-radius: 100px;
    transition: all 0.3s ease;
  }
  nav.gnav a.contact-btn:hover {
    background: var(--c-primary-dark);
    transform: translateY(-1px);
    box-shadow: var(--shadow-sm);
  }
  nav.gnav a.contact-btn::after { display: none; }

  .menu-toggle {
    display: none;
    width: 40px; height: 40px;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 5px;
  }
  .menu-toggle span {
    display: block;
    width: 24px; height: 2px;
    background: var(--c-text);
    transition: all 0.3s;
  }
  .menu-toggle.active span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .menu-toggle.active span:nth-child(2) { opacity: 0; }
  .menu-toggle.active span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

  @media (max-width: 900px) {
    .menu-toggle { display: flex; }
    nav.gnav {
      position: fixed;
      top: 0; right: -100%;
      width: 80%;
      max-width: 360px;
      height: 100vh;
      background: white;
      padding: 100px 40px 40px;
      transition: right 0.4s ease;
      box-shadow: -20px 0 60px rgba(0,0,0,0.1);
    }
    nav.gnav.open { right: 0; }
    nav.gnav ul {
      flex-direction: column;
      gap: 24px;
      align-items: flex-start;
    }
    nav.gnav a { font-size: 16px; }
  }

  /* =========================================
     HERO
     ========================================= */
  .hero {
    min-height: 100vh;
    position: relative;
    display: flex;
    align-items: center;
    padding: 120px 0 80px;
    overflow: hidden;
    background: linear-gradient(180deg, #f2f6fb 0%, #fbfcfe 100%);
  }
  .hero::before {
    content: '';
    position: absolute;
    top: 0; right: 0;
    width: 55%;
    height: 100%;
    background:
      radial-gradient(circle at 30% 40%, rgba(74, 144, 217, 0.15), transparent 60%),
      linear-gradient(135deg, #e8f0f9, #dbe8f5);
    clip-path: polygon(20% 0, 100% 0, 100% 100%, 0 100%);
    z-index: 0;
  }
  .hero-inner {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 32px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
    position: relative;
    z-index: 1;
  }
  .hero-copy .en-lead {
    font-family: var(--font-en);
    font-size: 15px;
    letter-spacing: 0.4em;
    color: var(--c-primary);
    text-transform: uppercase;
    margin-bottom: 24px;
    font-style: italic;
  }
  .hero-copy h1 {
    font-family: var(--font-serif);
    font-size: clamp(32px, 5vw, 56px);
    font-weight: 500;
    line-height: 1.4;
    letter-spacing: 0.06em;
    margin-bottom: 32px;
  }
  .hero-copy h1 .highlight {
    color: var(--c-primary);
    position: relative;
  }
  .hero-copy h1 .highlight::after {
    content: '';
    position: absolute;
    left: 0; right: 0; bottom: -2px;
    height: 8px;
    background: rgba(243, 146, 0, 0.35);
    z-index: -1;
  }
  .hero-copy h1 .highlight { color: var(--c-accent); }
  .hero-copy p.lead {
    font-size: 16px;
    color: var(--c-text-sub);
    line-height: 2;
    margin-bottom: 40px;
    max-width: 520px;
  }
  .hero-cta {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
  }
  .btn {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    padding: 16px 32px;
    border-radius: 100px;
    font-size: 14px;
    font-weight: 500;
    letter-spacing: 0.08em;
    transition: all 0.3s ease;
    cursor: pointer;
  }
  .btn-primary {
    background: var(--c-primary);
    color: white;
    box-shadow: 0 8px 24px rgba(10, 91, 169, 0.3);
  }
  .btn-primary:hover {
    background: var(--c-primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 12px 32px rgba(10, 91, 169, 0.4);
  }
  .btn-outline {
    background: transparent;
    color: var(--c-primary);
    border: 1px solid var(--c-primary);
  }
  .btn-outline:hover {
    background: var(--c-primary);
    color: white;
  }
  .btn .arrow {
    display: inline-block;
    transition: transform 0.3s;
  }
  .btn:hover .arrow { transform: translateX(4px); }

  .hero-visual {
    position: relative;
    height: 560px;
  }
  .hero-image {
    position: absolute;
    inset: 0;
    border-radius: 200px 200px 20px 20px;
    overflow: hidden;
    box-shadow: var(--shadow-lg);
    background: linear-gradient(135deg, #6ba3dd, #0a5ba9);
  }
  .hero-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
  }
  .hero-badge {
    position: absolute;
    bottom: 40px; left: -30px;
    background: white;
    padding: 24px 28px;
    border-radius: 16px;
    box-shadow: var(--shadow-lg);
    display: flex;
    align-items: center;
    gap: 16px;
    max-width: 280px;
  }
  .hero-badge .icon {
    width: 48px; height: 48px;
    border-radius: 50%;
    background: var(--c-bg-alt);
    display: grid;
    place-items: center;
    color: var(--c-primary);
    flex-shrink: 0;
  }
  .hero-badge .text {
    font-size: 13px;
    line-height: 1.6;
  }
  .hero-badge .text strong {
    display: block;
    font-family: var(--font-serif);
    font-size: 15px;
    color: var(--c-text);
    margin-bottom: 2px;
  }

  .scroll-indicator {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    font-family: var(--font-en);
    font-size: 12px;
    letter-spacing: 0.3em;
    color: var(--c-text-sub);
    z-index: 2;
  }
  .scroll-indicator::after {
    content: '';
    width: 1px;
    height: 40px;
    background: linear-gradient(180deg, var(--c-primary), transparent);
    animation: scrollLine 2s ease-in-out infinite;
  }
  @keyframes scrollLine {
    0% { transform: scaleY(0); transform-origin: top; }
    50% { transform: scaleY(1); transform-origin: top; }
    51% { transform-origin: bottom; }
    100% { transform: scaleY(0); transform-origin: bottom; }
  }

  @media (max-width: 900px) {
    .hero-inner { grid-template-columns: 1fr; gap: 40px; }
    .hero-visual { height: 400px; }
    .hero::before { width: 100%; clip-path: none; opacity: 0.5; }
    .hero-badge { left: 20px; bottom: 20px; }
  }

  /* =========================================
     NEWS
     ========================================= */
  .news {
    padding: 60px 0;
    background: white;
    border-bottom: 1px solid var(--c-line);
  }
  .news-inner {
    max-width: 1000px;
    margin: 0 auto;
    padding: 0 24px;
    display: grid;
    grid-template-columns: 200px 1fr;
    gap: 40px;
    align-items: center;
  }
  .news-label {
    display: flex;
    flex-direction: column;
    gap: 4px;
    border-right: 1px solid var(--c-line);
    padding-right: 24px;
  }
  .news-label .en {
    font-family: var(--font-en);
    font-size: 24px;
    color: var(--c-primary);
    font-weight: 500;
    letter-spacing: 0.1em;
  }
  .news-label .jp {
    font-family: var(--font-serif);
    font-size: 13px;
    letter-spacing: 0.2em;
    color: var(--c-text-sub);
  }
  .news-list li {
    display: grid;
    grid-template-columns: 100px 90px 1fr;
    gap: 20px;
    padding: 14px 0;
    border-bottom: 1px dashed var(--c-line);
    align-items: center;
    font-size: 14px;
  }
  .news-list li:last-child { border-bottom: none; }
  .news-date { color: var(--c-text-sub); font-family: var(--font-en); }
  .news-tag {
    background: var(--c-bg-alt);
    color: var(--c-primary);
    padding: 3px 10px;
    border-radius: 100px;
    font-size: 11px;
    text-align: center;
    letter-spacing: 0.1em;
  }
  .news-list a:hover { color: var(--c-primary); }

  @media (max-width: 768px) {
    .news-inner { grid-template-columns: 1fr; }
    .news-label { border-right: none; border-bottom: 1px solid var(--c-line); padding-right: 0; padding-bottom: 16px; flex-direction: row; align-items: baseline; gap: 12px; }
    .news-list li { grid-template-columns: 90px 80px 1fr; font-size: 13px; }
  }

  /* =========================================
     VALUES (私たちのこだわり)
     ========================================= */
  .values {
    background: var(--c-bg);
    position: relative;
  }
  .values::before {
    content: 'Values';
    position: absolute;
    top: 60px; right: 0px;
    font-family: var(--font-en);
    font-size: 200px;
    color: rgba(10, 91, 169, 0.03);
    font-style: italic;
    letter-spacing: 0.05em;
    line-height: 1;
    pointer-events: none;
  }
  .values-list {
    display: grid;
    gap: 100px;
  }
  .value-item {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: center;
  }
  .value-item:nth-child(even) .value-image { order: 2; }
  .value-image {
    position: relative;
    aspect-ratio: 4/3;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: var(--shadow-lg);
  }
  .value-image img {
    width: 100%; height: 100%;
    object-fit: cover;
    transition: transform 0.8s ease;
  }
  .value-item:hover .value-image img { transform: scale(1.05); }
  .value-num {
    position: absolute;
    top: -30px; left: -20px;
    font-family: var(--font-en);
    font-size: 120px;
    color: var(--c-primary);
    opacity: 0.15;
    font-weight: 500;
    line-height: 1;
    font-style: italic;
  }
  .value-content .en-label {
    font-family: var(--font-en);
    font-size: 13px;
    letter-spacing: 0.35em;
    color: var(--c-primary);
    text-transform: uppercase;
    margin-bottom: 12px;
    display: block;
  }
  .value-content h3 {
    font-family: var(--font-serif);
    font-size: clamp(24px, 3vw, 32px);
    font-weight: 500;
    line-height: 1.5;
    margin-bottom: 24px;
    letter-spacing: 0.06em;
  }
  .value-content p {
    color: var(--c-text-sub);
    line-height: 2;
    font-size: 15px;
  }
  @media (max-width: 900px) {
    .value-item { grid-template-columns: 1fr; gap: 32px; }
    .value-item:nth-child(even) .value-image { order: 0; }
    .values-list { gap: 60px; }
  }

  /* =========================================
     SERVICE
     ========================================= */
  .service {
    background: var(--c-bg-alt);
    position: relative;
    overflow: hidden;
  }
  .service::before {
    content: '';
    position: absolute;
    top: -100px; left: -100px;
    width: 400px; height: 400px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(74, 144, 217, 0.08), transparent 70%);
  }
  .service-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
    position: relative;
  }
  .service-card {
    background: white;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: all 0.4s ease;
    display: flex;
    flex-direction: column;
  }
  .service-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
  }
  .service-card-image {
    aspect-ratio: 16/10;
    overflow: hidden;
    position: relative;
  }
  .service-card-image img {
    width: 100%; height: 100%;
    object-fit: cover;
    transition: transform 0.6s;
  }
  .service-card:hover .service-card-image img { transform: scale(1.08); }
  .service-card-image::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, transparent 60%, rgba(10, 91, 169, 0.3));
  }
  .service-card-body {
    padding: 32px 28px;
    flex: 1;
    display: flex;
    flex-direction: column;
  }
  .service-card .num {
    font-family: var(--font-en);
    font-size: 12px;
    letter-spacing: 0.3em;
    color: var(--c-primary);
    margin-bottom: 12px;
    font-style: italic;
  }
  .service-card h3 {
    font-family: var(--font-serif);
    font-size: 20px;
    font-weight: 500;
    margin-bottom: 8px;
    letter-spacing: 0.06em;
  }
  .service-card .en-sub {
    font-family: var(--font-en);
    font-size: 12px;
    color: var(--c-text-sub);
    letter-spacing: 0.15em;
    margin-bottom: 16px;
  }
  .service-card p {
    font-size: 14px;
    color: var(--c-text-sub);
    line-height: 1.9;
    flex: 1;
    margin-bottom: 24px;
  }
  .service-card .more {
    color: var(--c-primary);
    font-size: 13px;
    letter-spacing: 0.1em;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    align-self: flex-start;
    transition: gap 0.3s;
  }
  .service-card:hover .more { gap: 14px; }
  @media (max-width: 900px) {
    .service-grid { grid-template-columns: 1fr; gap: 24px; }
  }

  /* =========================================
     FLOW - アニメーション付きステップ
     ========================================= */
  .flow {
    background: white;
    overflow: hidden;
  }
  .flow-steps {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
    position: relative;
    counter-reset: flow;

  }
  /* ステップ間を繋ぐアニメーションライン */
  .flow-steps::before {
    content: '';
    position: absolute;
    top: 42px;
    left: 12.5%;
    width: 75%;
    height: 2px;
    background: var(--c-line);
    border-radius: 2px;
    z-index: 0;
  }
  .flow-steps::after {
    content: '';
    position: absolute;
    top: 42px;
    left: 12.5%;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--c-primary), var(--c-accent));
    border-radius: 2px;
    z-index: 1;
    transition: width 2s cubic-bezier(0.65, 0, 0.35, 1);
  }
  .flow-steps.animate-line::after { width: 75%; }

  /* パルス（進行中の光点） */
  .flow-pulse {
    position: absolute;
    top: 42px;
    left: 12.5%;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: var(--c-accent);
    box-shadow: 0 0 0 6px rgba(243, 146, 0, 0.25), 0 0 20px rgba(243, 146, 0, 0.6);
    transform: translate(-50%, -50%);
    opacity: 0;
    z-index: 3;
    pointer-events: none;
  }
  .flow-steps.animate-line .flow-pulse {
    animation: flowPulse 2s cubic-bezier(0.65, 0, 0.35, 1) forwards, flowGlow 1.5s ease-in-out 2s infinite;
  }
  @keyframes flowPulse {
    0% { opacity: 0; left: 12.5%; }
    10% { opacity: 1; }
    100% { opacity: 1; left: 87.5%; }
  }
  @keyframes flowGlow {
    0%, 100% { box-shadow: 0 0 0 6px rgba(243, 146, 0, 0.25), 0 0 20px rgba(243, 146, 0, 0.6); }
    50% { box-shadow: 0 0 0 12px rgba(243, 146, 0, 0), 0 0 30px rgba(243, 146, 0, 0.8); }
  }

  .flow-step {
    position: relative;
    text-align: center;
    padding: 0 8px;
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.7s ease, transform 0.7s cubic-bezier(0.34, 1.56, 0.64, 1);
	  z-index:10;
  }
  .flow-steps.animate-line .flow-step {
    opacity: 1;
    transform: translateY(0);
  }
  .flow-steps.animate-line .flow-step:nth-child(1) { transition-delay: 0.1s; }
  .flow-steps.animate-line .flow-step:nth-child(2) { transition-delay: 0.6s; }
  .flow-steps.animate-line .flow-step:nth-child(3) { transition-delay: 1.1s; }
  .flow-steps.animate-line .flow-step:nth-child(4) { transition-delay: 1.6s; }

  .flow-step-num {
    width: 84px; height: 84px;
    border-radius: 50%;
    background: white;
    border: 2px solid var(--c-line);
    color: var(--c-primary);
    font-family: var(--font-en);
    font-size: 28px;
    font-weight: 500;
    font-style: italic;
    display: grid;
    place-items: center;
    margin: 0 auto 28px;
    position: relative;
    z-index: 2;
    transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
    box-shadow: 0 4px 20px rgba(10, 91, 169, 0.06);
  }
  .flow-step-num::before {
    content: '';
    position: absolute;
    inset: -8px;
    border-radius: 50%;
    border: 2px dashed var(--c-primary);
    opacity: 0;
    transition: opacity 0.4s ease;
    animation: flowRotate 15s linear infinite;
  }
  @keyframes flowRotate {
    to { transform: rotate(360deg); }
  }
  .flow-step:hover .flow-step-num {
    background: linear-gradient(135deg, var(--c-primary), var(--c-primary-dark));
    border-color: var(--c-primary);
    color: white;
    transform: translateY(-6px) scale(1.05);
    box-shadow: 0 12px 30px rgba(10, 91, 169, 0.35);
  }
  .flow-step:hover .flow-step-num::before {
    opacity: 1;
  }

  /* ステップが順番にハイライトされる */
  .flow-steps.animate-line .flow-step-num {
    animation: flowStepPop 0.6s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
    animation-delay: inherit;
  }
  .flow-steps.animate-line .flow-step:nth-child(1) .flow-step-num { animation-delay: 0.2s; }
  .flow-steps.animate-line .flow-step:nth-child(2) .flow-step-num { animation-delay: 0.7s; }
  .flow-steps.animate-line .flow-step:nth-child(3) .flow-step-num { animation-delay: 1.2s; }
  .flow-steps.animate-line .flow-step:nth-child(4) .flow-step-num { animation-delay: 1.7s; }

  @keyframes flowStepPop {
    0% { border-color: var(--c-line); background: white; color: var(--c-primary); }
    50% { transform: scale(1.15); border-color: var(--c-accent); background: linear-gradient(135deg, var(--c-accent), var(--c-accent-dark)); color: white; box-shadow: 0 0 40px rgba(243, 146, 0, 0.5); }
    100% { transform: scale(1); border-color: var(--c-primary); background: linear-gradient(135deg, var(--c-primary), var(--c-primary-dark)); color: white; box-shadow: 0 8px 24px rgba(10, 91, 169, 0.25); }
  }

  .flow-step h4 {
    font-family: var(--font-serif);
    font-size: 18px;
    font-weight: 500;
    margin-bottom: 4px;
    letter-spacing: 0.06em;
  }
  .flow-step .en {
    font-family: var(--font-en);
    font-size: 11px;
    letter-spacing: 0.25em;
    color: var(--c-accent);
    margin-bottom: 14px;
    display: block;
    font-style: italic;
  }
  .flow-step p {
    font-size: 13px;
    color: var(--c-text-sub);
    line-height: 1.9;
    text-align: left;
  }

  /* 矢印アイコン */
  .flow-arrow {
    position: absolute;
    top: 42px;
    right: -20px;
    color: var(--c-primary-light);
    opacity: 0.5;
    z-index: 2;
    transform: translateY(-50%);
  }
  .flow-step:last-child .flow-arrow { display: none; }

  @media (max-width: 768px) {
    .flow-steps { grid-template-columns: 1fr 1fr; gap: 40px 16px; }
    .flow-steps::before, .flow-steps::after, .flow-pulse { display: none; }
    .flow-arrow { display: none !important; }
  }

  /* =========================================
     FAQ
     ========================================= */
  .faq { background: var(--c-bg-alt); }
  .faq-list {
    max-width: 860px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 16px;
  }
  .faq-item {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: box-shadow 0.3s;
  }
  .faq-item:hover { box-shadow: var(--shadow-md); }
  .faq-q {
    padding: 24px 28px;
    display: flex;
    align-items: center;
    gap: 20px;
    cursor: pointer;
    font-family: var(--font-serif);
    font-size: 16px;
    font-weight: 500;
    letter-spacing: 0.04em;
    transition: color 0.2s;
    width: 100%;
    text-align: left;
  }
  .faq-q::before {
    content: 'Q';
    font-family: var(--font-en);
    font-style: italic;
    color: var(--c-primary);
    font-size: 24px;
    line-height: 1;
    flex-shrink: 0;
  }
  .faq-toggle {
    margin-left: auto;
    width: 24px; height: 24px;
    position: relative;
    flex-shrink: 0;
  }
  .faq-toggle::before, .faq-toggle::after {
    content: '';
    position: absolute;
    top: 50%; left: 50%;
    background: var(--c-primary);
    transition: transform 0.3s;
  }
  .faq-toggle::before {
    width: 14px; height: 1.5px;
    transform: translate(-50%, -50%);
  }
  .faq-toggle::after {
    width: 1.5px; height: 14px;
    transform: translate(-50%, -50%);
  }
  .faq-item.open .faq-toggle::after { transform: translate(-50%, -50%) scaleY(0); }
  .faq-a {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease;
  }
  .faq-item.open .faq-a { max-height: 300px; }
  .faq-a-inner {
    padding: 0 28px 24px 28px;
    display: flex;
    gap: 20px;
    color: var(--c-text-sub);
    font-size: 14px;
    line-height: 1.9;
    border-top: 1px dashed var(--c-line);
    padding-top: 20px;
    margin-top: 4px;
  }
  .faq-a-inner::before {
    content: 'A';
    font-family: var(--font-en);
    font-style: italic;
    color: var(--c-accent);
    font-size: 24px;
    line-height: 1;
    flex-shrink: 0;
  }

  /* =========================================
     COMPANY
     ========================================= */
  .company { background: white; }
  .company-inner {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: center;
  }
  .company-image {
    aspect-ratio: 4/5;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: var(--shadow-lg);
    background: linear-gradient(135deg, #6ba3dd, #0a5ba9);
    position: relative;
  }
  .company-image img { width: 100%; height: 100%; object-fit: cover; }
  .company-image .overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, transparent 40%, rgba(10, 91, 169, 0.6));
    display: flex;
    align-items: flex-end;
    padding: 40px;
    color: white;
  }
  .company-image .overlay p {
    font-family: var(--font-serif);
    font-size: 18px;
    letter-spacing: 0.1em;
    line-height: 1.6;
  }
  .company-info .en-label {
    font-family: var(--font-en);
    font-size: 13px;
    letter-spacing: 0.35em;
    color: var(--c-primary);
    text-transform: uppercase;
    margin-bottom: 12px;
    display: block;
  }
  .company-info h2 {
    font-family: var(--font-serif);
    font-size: clamp(28px, 3.5vw, 36px);
    font-weight: 500;
    margin-bottom: 32px;
    letter-spacing: 0.06em;
  }
  .company-table {
    width: 100%;
    border-collapse: collapse;
  }
  .company-table tr {
    border-bottom: 1px solid var(--c-line);
  }
  .company-table th, .company-table td {
    padding: 18px 8px;
    text-align: left;
    font-size: 14px;
    vertical-align: top;
  }
  .company-table th {
    width: 140px;
    color: var(--c-primary);
    font-family: var(--font-serif);
    font-weight: 500;
    letter-spacing: 0.1em;
  }
  .company-table td { color: var(--c-text-sub); line-height: 1.8; }
  @media (max-width: 900px) {
    .company-inner { grid-template-columns: 1fr; gap: 40px; }
    .company-image { max-width: 400px; margin: 0 auto; aspect-ratio: 4/3; }
  }

  /* =========================================
     CONTACT
     ========================================= */
  .contact {
    background: linear-gradient(135deg, var(--c-primary-dark) 0%, var(--c-primary) 100%);
    color: white;
    position: relative;
    overflow: hidden;
  }
  .contact::before {
	  content: 'Contact';
	  position: absolute;
	  top:0; 
	  right:0;
	  font-family: var(--font-en);
	  font-size: clamp(180px, 20vw, 320px);
	  color: rgba(255,255,255,0.05);
	  font-style: italic;
	  line-height: 1;
	  pointer-events: none;
}
  .contact-inner {
    text-align: center;
    position: relative;
  }
  .contact .en {
    font-family: var(--font-en);
    font-size: 14px;
    letter-spacing: 0.4em;
    color: rgba(255,255,255,0.8);
    text-transform: uppercase;
    margin-bottom: 20px;
    display: block;
  }
  .contact h2 {
    font-family: var(--font-serif);
    font-size: clamp(28px, 4vw, 44px);
    font-weight: 500;
    letter-spacing: 0.08em;
    margin-bottom: 24px;
  }
  .contact p.lead {
    max-width: 620px;
    margin: 0 auto 48px;
    line-height: 2;
    opacity: 0.9;
  }
  .contact-methods {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 32px;
    max-width: 800px;
    margin: 0 auto;
  }
  .contact-method {
    background: rgba(255,255,255,0.08);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255,255,255,0.15);
    border-radius: 16px;
    padding: 40px 32px;
    transition: all 0.3s ease;
  }
  .contact-method:hover {
    background: rgba(255,255,255,0.12);
    transform: translateY(-4px);
  }
  .contact-method .icon {
    width: 56px; height: 56px;
    margin: 0 auto 20px;
    border-radius: 50%;
    background: rgba(255,255,255,0.15);
    display: grid;
    place-items: center;
  }
  .contact-method .label {
    font-family: var(--font-en);
    font-size: 12px;
    letter-spacing: 0.3em;
    opacity: 0.7;
    margin-bottom: 12px;
    display: block;
  }
  .contact-method .value {
    font-family: var(--font-serif);
    font-size: 24px;
    letter-spacing: 0.05em;
    margin-bottom: 8px;
  }
  .contact-method .sub {
    font-size: 12px;
    opacity: 0.7;
    line-height: 1.7;
  }
  .contact-method .btn {
    margin-top: 20px;
    background: white;
    color: var(--c-primary);
  }
  .contact-method .btn:hover { background: var(--c-accent); color: var(--c-primary-dark); }
  @media (max-width: 768px) {
    .contact-methods { grid-template-columns: 1fr; }
  }

  /* =========================================
     FOOTER
     ========================================= */
  footer {
    background: #061e35;
    color: rgba(255,255,255,0.7);
    padding: 60px 0 30px;
  }
  .footer-top {
    max-width: var(--container);
    margin: 0 auto;
    padding: 0 24px;
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr 1fr;
    gap: 40px;
    padding-bottom: 40px;
    border-bottom: 1px solid rgba(255,255,255,0.1);
  }
  .footer-logo .logo-mark {
    background:white;
  }
  .footer-logo .logo-text .name-jp { color: white; }
  .footer-logo .logo-text .name-en { color: rgba(255,255,255,0.6); }
  .footer-logo p {
    margin-top: 20px;
    font-size: 13px;
    line-height: 1.9;
    max-width: 300px;
  }
  .footer-col h4 {
    font-family: var(--font-serif);
    font-size: 14px;
    color: white;
    margin-bottom: 20px;
    letter-spacing: 0.1em;
    font-weight: 500;
  }
  .footer-col ul li { margin-bottom: 12px; }
  .footer-col a {
    font-size: 13px;
    transition: color 0.2s;
  }
  .footer-col a:hover { color: var(--c-accent); }
  .footer-bottom {
    max-width: var(--container);
    margin: 0 auto;
    padding: 30px 24px 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 12px;
    font-family: var(--font-en);
    letter-spacing: 0.15em;
  }
  @media (max-width: 768px) {
    .footer-top { grid-template-columns: 1fr; gap: 32px; }
    .footer-bottom { flex-direction: column; gap: 12px; text-align: center; }
  }

  /* =========================================
     ANIMATIONS
     ========================================= */
  .fade-up {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.9s ease, transform 0.9s ease;
  }
  .fade-up.visible {
    opacity: 1;
    transform: translateY(0);
  }
  .fade-in {
    opacity: 0;
    transition: opacity 1.2s ease;
  }
  .fade-in.visible { opacity: 1; }

  /* Page top */
  .pagetop {
    position: fixed;
    bottom: 30px; right: 30px;
    width: 48px; height: 48px;
    border-radius: 50%;
    background: var(--c-primary);
    color: white;
    display: grid;
    place-items: center;
    opacity: 0;
    pointer-events: none;
    transition: all 0.3s ease;
    z-index: 90;
    box-shadow: var(--shadow-md);
  }
  .pagetop.visible {
    opacity: 1;
    pointer-events: auto;
  }
  .pagetop:hover {
    background: var(--c-primary-dark);
    transform: translateY(-4px);
  }





/*カルーセル*/
/* =========================================
   1. スライダー全体のコンテナ
========================================= */
.cs-manual-slider {
    position: relative;
    width: 100%;
    margin: 0 auto 2em;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0,0,0,0.08);
	padding-top:6rem;
}
  @media (max-width: 768px) {
	  .cs-manual-slider 
	  
}



/* ラジオボタンは画面から隠す */
.cs-manual-slider input[type="radio"] {
    display: none;
}

/* =========================================
   2. スライド本体（横並びと移動の設定）
========================================= */
.cs-slider-viewport {
    width: 100%;
    overflow: hidden;
}

.cs-slider-track {
    display: flex;
    width: 300%; /* スライド3枚分（100% × 3） */
    height: 100%;
    transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.cs-slide-item {
    width: 33.3333%; /* 300%のうちの3分の1 */
    height: 100%;
}

.cs-slide-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* =========================================
   3. ラジオボタンの状態に応じたスライドの移動
========================================= */
#cs-slide-1:checked ~ .cs-slider-viewport .cs-slider-track {
    transform: translateX(0%);
}
#cs-slide-2:checked ~ .cs-slider-viewport .cs-slider-track {
    transform: translateX(-33.3333%);
}
#cs-slide-3:checked ~ .cs-slider-viewport .cs-slider-track {
    transform: translateX(-66.6666%);
}

/* =========================================
   4. 左右の矢印ナビゲーション
========================================= */
.cs-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 48px;
    height: 48px;
    background-color: rgba(255, 255, 255, 0.7);
    color: #1a202c;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 1.2rem;
    cursor: pointer;
    transition: background-color 0.3s, opacity 0.3s;
    /* デフォルトはすべて非表示 */
    opacity: 0;
    pointer-events: none;
    z-index: 10;
}

.cs-arrow:hover {
    background-color: rgba(255, 255, 255, 1);
}

.cs-arrow-prev { left: 16px; }
.cs-arrow-next { right: 16px; }

/* ラジオボタンの状態に応じて、対応する矢印だけを表示する */
#cs-slide-1:checked ~ .cs-arrow-nav .cs-nav-1,
#cs-slide-2:checked ~ .cs-arrow-nav .cs-nav-2,
#cs-slide-3:checked ~ .cs-arrow-nav .cs-nav-3 {
    opacity: 1;
    pointer-events: auto; /* クリックを有効化 */
}

/* =========================================
   5. 下部のドットナビゲーション
========================================= */
.cs-dot-nav {
    position: absolute;
    bottom: 16px;
    left: 0;
    width: 100%;
    display: flex;
    justify-content: center;
    gap: 12px;
    z-index: 10;
}

.cs-dot {
    width: 12px;
    height: 12px;
    background-color: rgba(255, 255, 255, 0.5);
    border-radius: 50%;
    cursor: pointer;
    transition: background-color 0.3s, transform 0.3s;
}

.cs-dot:hover {
    background-color: rgba(255, 255, 255, 0.8);
}

/* ラジオボタンの状態に応じて、対応するドットの色を変える */
#cs-slide-1:checked ~ .cs-dot-nav .cs-dot:nth-child(1),
#cs-slide-2:checked ~ .cs-dot-nav .cs-dot:nth-child(2),
#cs-slide-3:checked ~ .cs-dot-nav .cs-dot:nth-child(3) {
    background-color: #ffffff;
    transform: scale(1.2); /* アクティブなドットを少し大きくする */
}








/* 初期設定：スマホ用を表示、PC用を隠す */
.pc{
  display: none;
}
.sp{
  display: block;
}

/* 幅768px以上（PC）の場合：PC用を表示、スマホ用を隠す */
@media screen and (min-width: 768px) {
  .pc{
    display: block;
  }
  .sp{
    display: none;
  }
}




/* =========================================
   イイアイズ About Section
========================================= */

.ee-about-section {
    position: relative;
    width: 100%;
    padding: 100px 30px 120px;
    background: #fcf8f2;
    overflow: hidden;
}

.ee-about-section::before {
    content: "";
    position: absolute;

    /* 右上 */
    top: clamp(-180px, -10vw, -100px);
    right: clamp(-180px, -10vw, -80px);

    width: clamp(240px, 100vw, 420px);
    height: clamp(240px, 100vw, 420px);

    border-radius: 50%;

    background: rgba(238, 139, 67, 0.08);

    pointer-events: none;
    z-index: 0;
}

.ee-about-section::after {
    content: "";
    position: absolute;

    /* 左下 */
    bottom: clamp(-160px, -9vw, -80px);
    left: clamp(-160px, -9vw, -80px);

    width: clamp(220px, 100vw, 380px);
    height: clamp(220px, 100vw, 380px);

    border-radius: 50%;

    background: rgba(238, 139, 67, 0.06);

    pointer-events: none;
    z-index: 0;
}

.ee-about-inner {
    position: relative;
    z-index: 1;
    max-width: 1400px;
    margin: 0 auto;
}


/* =========================================
   見出し
========================================= */

.ee-about-heading {
    max-width: 1000px;
    margin: 0 auto 65px;
    text-align: center;
}

.ee-about-en {
    display: block;
    margin-bottom: 18px;
    color: #e98643;
    font-size: 28px;
    font-weight: 600;
    letter-spacing: 0.04em;
}

.ee-about-heading h2 {
    margin: 0 0 35px;
    color: #3b2410;
    font-size: clamp(42px, 4vw, 64px);
    line-height: 1.25;
    font-weight: 700;
    letter-spacing: 0.04em;
}

.ee-about-heading p {
    max-width: 1050px;
    margin: 0 auto;
    color: #4a3420;
    font-size: clamp(17px, 1.5vw, 23px);
    line-height: 2;
    letter-spacing: 0.04em;
}


/* =========================================
   3カード
========================================= */

.ee-feature-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 38px;
}


/* =========================================
   カード
========================================= */

.ee-feature-card {
    position: relative;
    background: #ffffff;
    border-radius: 24px;
    overflow: hidden;
    box-shadow: 0 12px 35px rgba(75, 45, 20, 0.07);
    transition:
        transform 0.35s ease,
        box-shadow 0.35s ease;
}

.ee-feature-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 45px rgba(75, 45, 20, 0.12);
}


/* =========================================
   カード画像
========================================= */

.ee-feature-image {
    position: relative;
    width: 100%;
    height: 280px;
    overflow: hidden;
}

.ee-feature-image::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(
        to bottom,
        transparent 60%,
        rgba(255, 255, 255, 0.15)
    );
    pointer-events: none;
}

.ee-feature-image img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.ee-feature-card:hover .ee-feature-image img {
    transform: scale(1.04);
}


/* =========================================
   カード本文
========================================= */

.ee-feature-content {
    position: relative;
    padding: 35px 38px 42px;
}

.ee-feature-number {
    display: block;
    margin-bottom: 12px;
    color: #e98643;
    font-size: 15px;
    font-weight: 700;
    letter-spacing: 0.12em;
}

.ee-feature-content h3 {
    margin: 0 0 22px;
    color: #3b2410;
    font-size: clamp(24px, 2vw, 31px);
    line-height: 1.45;
    font-weight: 700;
}

.ee-feature-content p {
    margin: 0;
    color: #594331;
    font-size: 17px;
    line-height: 1.9;
    letter-spacing: 0.03em;
}


/* =========================================
   CTA
========================================= */

.ee-about-button {
    margin-top: 20px;
    text-align: center;
}

.ee-about-button a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 25px;

    min-width: 310px;
    padding: 18px 35px;

    border: 1px solid #e98643;
    border-radius: 50px;

    color: #e98643;
    background: #ffffff;

    font-size: 16px;
    font-weight: 600;
    text-decoration: none;

    transition:
        background 0.3s ease,
        color 0.3s ease,
        transform 0.3s ease;
}

.ee-about-button a span {
    font-size: 22px;
    transition: transform 0.3s ease;
}

.ee-about-button a:hover {
    color: #ffffff;
    background: #e98643;
    transform: translateY(-3px);
}

.ee-about-button a:hover span {
    transform: translateX(5px);
}


/* =========================================
   PC
========================================= */

.ee-sp {
    display: none;
}


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

@media screen and (max-width: 1000px) {

    .ee-about-section {
        padding: 80px 25px 90px;
    }

    .ee-feature-grid {
        gap: 20px;
    }

    .ee-feature-image {
        height: 220px;
    }

    .ee-feature-content {
        padding: 28px 25px 32px;
    }

    .ee-feature-content h3 {
        font-size: 24px;
    }

    .ee-feature-content p {
        font-size: 15px;
    }
}


/* =========================================
   スマートフォン
========================================= */

@media screen and (max-width: 767px) {

    .ee-about-section {
        padding: 65px 18px 75px;
    }

    .ee-about-heading {
        margin-bottom: 40px;
    }

    .ee-about-en {
        margin-bottom: 12px;
        font-size: 20px;
    }

    .ee-about-heading h2 {
        margin-bottom: 25px;
        font-size: 34px;
        line-height: 1.4;
    }

    .ee-sp {
        display: block;
    }

    .ee-about-heading p {
        font-size: 15px;
        line-height: 1.9;
        text-align: left;
    }

    .ee-feature-grid {
        grid-template-columns: 1fr;
        gap: 25px;
    }

    .ee-feature-image {
        height: 220px;
    }

    .ee-feature-content {
        padding: 25px 25px 30px;
    }

    .ee-feature-content h3 {
        font-size: 23px;
    }

    .ee-feature-content p {
        font-size: 15px;
        line-height: 1.85;
    }

    .ee-about-button {
        margin-top: 40px;
    }

    .ee-about-button a {
        width: 100%;
        min-width: 0;
        padding: 16px 20px;
        font-size: 14px;
    }
}




/*コンタクトフォーム*/
/* =========================================================
   Contact Form 7
   EP-1 / ESPERANZA-ECO お問い合わせフォーム
   Responsive Complete Version
========================================================= */


/* =========================================================
   基本設定
========================================================= */

.tmf-contact-form,
.tmf-contact-form *,
.tmf-contact-form *::before,
.tmf-contact-form *::after {
  box-sizing: border-box;
}


/* =========================================================
   フォーム全体
========================================================= */

.tmf-contact-form {
  width: 100%;
  max-width: 960px;

  margin: 0 auto;
  padding: 55px 60px;

  background: #ffffff;

  color: #27384d;

  font-family:
    "Noto Sans JP",
    "Hiragino Kaku Gothic ProN",
    "Yu Gothic",
    Meiryo,
    sans-serif;

  line-height: 1.6;
}


/* =========================================================
   CF7 デフォルト調整
========================================================= */

.tmf-contact-form .wpcf7-form-control-wrap {
  display: block;
  width: 100%;
  margin: 0;
}

.tmf-contact-form p {
  margin: 0;
}

.tmf-contact-form br {
  display: none;
}


/* =========================================================
   各項目
========================================================= */

.tmf-contact-row {
  display: grid;

  grid-template-columns: 220px minmax(0, 1fr);

  width: 100%;
  min-height: 92px;

  border-bottom: 1px solid #e4e8ed;
}


/* =========================================================
   ラベル側
========================================================= */

.tmf-contact-label {
  display: flex;

  align-items: center;

  min-width: 0;

  padding: 22px 25px 22px 0;
}


.tmf-contact-label label {
  display: flex;

  align-items: center;

  flex-wrap: wrap;

  gap: 8px;

  width: 100%;

  margin: 0;

  color: #27384d;

  font-size: 16px;
  font-weight: 600;

  line-height: 1.5;

  cursor: default;
}


.tmf-label-text {
  display: inline-block;
}


/* =========================================================
   必須・任意
========================================================= */

.tmf-required,
.tmf-optional {
  display: inline-flex;

  align-items: center;
  justify-content: center;

  flex: 0 0 auto;

  min-width: 42px;
  height: 23px;

  padding: 0 7px;

  border-radius: 4px;

  font-size: 11px;
  font-weight: 500;

  line-height: 1;
}


/* 必須 */

.tmf-required {
  background: #0750b5;
  color: #ffffff;
}


/* 任意 */

.tmf-optional {
  background: #edf1f5;
  color: #697584;
}


/* =========================================================
   入力欄エリア
========================================================= */

.tmf-contact-field {
  display: flex;

  align-items: center;

  min-width: 0;

  padding: 18px 0;
}


/* =========================================================
   Input / Select / Textarea
========================================================= */

.tmf-contact-form input[type="text"],
.tmf-contact-form input[type="tel"],
.tmf-contact-form input[type="email"],
.tmf-contact-form select,
.tmf-contact-form textarea {

  display: block;

  width: 100%;
  max-width: 100%;

  margin: 0;

  padding: 14px 16px;

  border: 1px solid #d5dce4;
  border-radius: 5px;

  outline: none;

  background: #ffffff;

  color: #293747;

  font-family:
    "Noto Sans JP",
    "Hiragino Kaku Gothic ProN",
    "Yu Gothic",
    Meiryo,
    sans-serif;

  font-size: 16px;
  font-weight: 400;

  line-height: 1.6;

  -webkit-appearance: none;
  appearance: none;

  transition:
    border-color 0.2s ease,
    box-shadow 0.2s ease,
    background-color 0.2s ease;
}


/* =========================================================
   プレースホルダー
========================================================= */

.tmf-contact-form input::placeholder,
.tmf-contact-form textarea::placeholder {

  color: #a3adb8;

  opacity: 1;
}


/* =========================================================
   フォーカス
========================================================= */

.tmf-contact-form input:focus,
.tmf-contact-form select:focus,
.tmf-contact-form textarea:focus {

  border-color: #0750b5;

  background: #ffffff;

  box-shadow:
    0 0 0 3px rgba(7, 80, 181, 0.08);
}


/* =========================================================
   Select
========================================================= */

.tmf-contact-form select {

  padding-right: 48px;

  cursor: pointer;

  background-image:
    linear-gradient(45deg, transparent 50%, #697584 50%),
    linear-gradient(135deg, #697584 50%, transparent 50%);

  background-position:
    calc(100% - 20px) 50%,
    calc(100% - 14px) 50%;

  background-size:
    6px 6px,
    6px 6px;

  background-repeat: no-repeat;
}


/* =========================================================
   お問い合わせ内容
========================================================= */

.tmf-message-row {
  min-height: 245px;
}


.tmf-message-row .tmf-contact-label {
  align-items: flex-start;

  padding-top: 30px;
}


.tmf-message-row .tmf-contact-field {

  align-items: flex-start;

  padding-top: 25px;
  padding-bottom: 25px;
}


.tmf-contact-form textarea {

  min-height: 195px;

  resize: vertical;
}


/* =========================================================
   個人情報同意
========================================================= */

.tmf-privacy {

  padding: 35px 0 10px;

  text-align: center;

  color: #626d79;

  font-size: 13px;

  line-height: 1.8;
}


/* CF7 acceptance */

.tmf-privacy .wpcf7-acceptance {

  display: inline-block;
}


.tmf-privacy label {

  display: inline-flex;

  align-items: center;
  justify-content: center;

  gap: 9px;

  margin: 0;

  cursor: pointer;
}


/* チェックボックス */

.tmf-privacy input[type="checkbox"] {

  width: 18px;
  height: 18px;

  margin: 0;

  flex: 0 0 auto;

  accent-color: #0750b5;

  cursor: pointer;
}


/* =========================================================
   送信エリア
========================================================= */

.tmf-submit-area {

  display: flex;

  align-items: center;
  justify-content: center;

  width: 100%;

  margin-top: 25px;
}


/* =========================================================
   送信ボタン
========================================================= */

.tmf-submit-area input[type="submit"] {

  display: inline-flex;

  align-items: center;
  justify-content: center;

  width: 320px;
  max-width: 100%;

  height: 65px;

  margin: 0;
  padding: 0 30px;

  border: none;
  border-radius: 40px;

  background: #0750b5;

  color: #ffffff;

  font-family:
    "Noto Sans JP",
    "Hiragino Kaku Gothic ProN",
    "Yu Gothic",
    Meiryo,
    sans-serif;

  font-size: 18px;
  font-weight: 700;

  letter-spacing: 0.08em;

  line-height: 1;

  cursor: pointer;

  -webkit-appearance: none;
  appearance: none;

  transition:
    background-color 0.25s ease,
    transform 0.25s ease,
    box-shadow 0.25s ease;
}


/* ホバー */

.tmf-submit-area input[type="submit"]:hover {

  background: #003f94;

  transform: translateY(-2px);

  box-shadow:
    0 8px 20px rgba(0, 0, 0, 0.12);
}


/* クリック中 */

.tmf-submit-area input[type="submit"]:active {

  transform: translateY(0);

  box-shadow: none;
}


/* =========================================================
   CF7 エラー
========================================================= */

.tmf-contact-form .wpcf7-not-valid {

  border-color: #d9534f !important;

  background-color: #fffafa;
}


.tmf-contact-form .wpcf7-not-valid-tip {

  display: block;

  margin-top: 6px;

  color: #d9534f;

  font-size: 12px;

  line-height: 1.5;
}


/* =========================================================
   CF7 送信後メッセージ
========================================================= */

.tmf-contact-form .wpcf7-response-output {

  margin: 25px 0 0 !important;

  padding: 14px 18px !important;

  border: 1px solid #d5dce4 !important;
  border-radius: 5px;

  color: #4d5966;

  font-size: 14px;

  line-height: 1.7;

  text-align: center;
}


/* =========================================================
   画面幅 1200px以下
   大型タブレット・小型PC
========================================================= */

@media screen and (max-width: 1200px) {

  .tmf-contact-form {

    max-width: 900px;

    padding-left: 45px;
    padding-right: 45px;
  }

}


/* =========================================================
   タブレット
   768px ～ 991px
========================================================= */

@media screen and (min-width: 768px) and (max-width: 991px) {

  .tmf-contact-form {

    width: calc(100% - 40px);

    max-width: 900px;

    padding: 45px 35px;
  }


  .tmf-contact-row {

    grid-template-columns:
      180px minmax(0, 1fr);
  }


  .tmf-contact-label {

    padding-right: 18px;
  }


  .tmf-contact-label label {

    font-size: 15px;
  }


  .tmf-contact-field input[type="text"],
  .tmf-contact-field input[type="tel"],
  .tmf-contact-field input[type="email"],
  .tmf-contact-field select,
  .tmf-contact-field textarea {

    font-size: 15px;
  }


  .tmf-message-row {

    min-height: 230px;
  }


  .tmf-contact-form textarea {

    min-height: 180px;
  }

}


/* =========================================================
   スマートフォン
   767px以下
========================================================= */

@media screen and (max-width: 767px) {

  /* -----------------------------------------
     フォーム
  ------------------------------------------ */

  .tmf-contact-form {

    width: 100%;

    max-width: none;

    margin: 0;

    padding: 30px 18px 40px;
  }


  /* -----------------------------------------
     各項目を縦並び
  ------------------------------------------ */

  .tmf-contact-row {

    display: block;

    min-height: auto;

    padding: 19px 0;

    border-bottom: 1px solid #e4e8ed;
  }


  /* -----------------------------------------
     ラベル
  ------------------------------------------ */

  .tmf-contact-label {

    display: block;

    width: 100%;

    padding: 0 0 10px;
  }


  .tmf-contact-label label {

    display: flex;

    align-items: center;

    width: 100%;

    font-size: 15px;
  }


  /* -----------------------------------------
     入力欄
  ------------------------------------------ */

  .tmf-contact-field {

    display: block;

    width: 100%;

    padding: 0;
  }


  /* -----------------------------------------
     入力要素
  ------------------------------------------ */

  .tmf-contact-form input[type="text"],
  .tmf-contact-form input[type="tel"],
  .tmf-contact-form input[type="email"],
  .tmf-contact-form select,
  .tmf-contact-form textarea {

    width: 100%;
    max-width: 100%;

    min-width: 0;

    padding: 13px 14px;

    font-size: 16px;

    border-radius: 5px;
  }


  /* -----------------------------------------
     Select
  ------------------------------------------ */

  .tmf-contact-form select {

    padding-right: 45px;
  }


  /* -----------------------------------------
     お問い合わせ内容
  ------------------------------------------ */

  .tmf-message-row {

    min-height: auto;

    padding-bottom: 20px;
  }


  .tmf-message-row .tmf-contact-label {

    align-items: initial;

    padding-top: 0;
    padding-bottom: 10px;
  }


  .tmf-message-row .tmf-contact-field {

    display: block;

    padding-top: 0;
    padding-bottom: 0;
  }


  .tmf-contact-form textarea {

    min-height: 180px;

    line-height: 1.7;
  }


  /* -----------------------------------------
     個人情報
  ------------------------------------------ */

  .tmf-privacy {

    padding: 25px 0 8px;

    font-size: 12px;
  }


  /* -----------------------------------------
     送信
  ------------------------------------------ */

  .tmf-submit-area {

    margin-top: 20px;
  }


  .tmf-submit-area input[type="submit"] {

    width: 100%;

    max-width: 400px;

    height: 58px;

    padding: 0 20px;

    font-size: 16px;
  }

}


/* =========================================================
   小型スマートフォン
   390px以下
========================================================= */

@media screen and (max-width: 390px) {

  .tmf-contact-form {

    padding-left: 14px;
    padding-right: 14px;
  }


  .tmf-contact-row {

    padding-top: 17px;
    padding-bottom: 17px;
  }


  .tmf-contact-label label {

    font-size: 14px;
  }


  .tmf-required,
  .tmf-optional {

    min-width: 39px;
    height: 21px;

    padding: 0 6px;

    font-size: 10px;
  }


  .tmf-contact-form input[type="text"],
  .tmf-contact-form input[type="tel"],
  .tmf-contact-form input[type="email"],
  .tmf-contact-form select,
  .tmf-contact-form textarea {

    padding: 12px;

    font-size: 16px;
  }


  .tmf-contact-form textarea {

    min-height: 160px;
  }


  .tmf-privacy {

    font-size: 11px;
  }

}



/*動画*/
.video-container {
	position: relative;
	padding-top: 56.25%; /* 16:9 アスペクト比 */
	height: 0;
}

.video-container iframe {
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
}


/*背景*/
.company::before {
	content: 'company';
	position: absolute;
    top: 60px; right: 0px;
    font-family: var(--font-en);
    font-size: 200px;
    color: rgba(10, 91, 169, 0.03);
    font-style: italic;
    letter-spacing: 0.05em;
    line-height: 1;
    pointer-events: none;
  }

.flow::before {
	content:'flow';
	position: absolute;
    top: 60px; right: 0px;
    font-family: var(--font-en);
    font-size: 200px;
    color: rgba(10, 91, 169, 0.03);
    font-style: italic;
    letter-spacing: 0.05em;
    line-height: 1;
    pointer-events: none;
  }

.faq::before {
	content:'faq';
	position: absolute;
    top: 60px; right: 0px;
    font-family: var(--font-en);
    font-size: 200px;
    color: rgba(10, 91, 169, 0.03);
    font-style: italic;
    letter-spacing: 0.05em;
    line-height: 1;
    pointer-events: none;
  }


.sns::before {
	content:'sns';
	position: absolute;
    top: 60px; right: 0px;
    font-family: var(--font-en);
    font-size: 200px;
    color: rgba(10, 91, 169, 0.03);
    font-style: italic;
    letter-spacing: 0.05em;
    line-height: 1;
    pointer-events: none;
  }