@charset "UTF-8";

/* ================================
   Theme tokens
================================ */
:root{
  --clr-bg: #0e1014;
  --clr-surface: #121620;
  --clr-panel: #151a25;
  --clr-card: #2c3e55;
  --clr-accent: #2fc4b2;
  --clr-accent-2:#63a2ff;
  --clr-text: #e9eef7;
  --clr-text-sub:#b8c2d9;
  --clr-border: #233045;
  --muted: #6b7280;
  --clr-faq: #4b6184;
  --shadow-1: 0 6px 24px rgba(0,0,0,.25), inset 0 1px 0 rgba(255,255,255,.02);
  --radius-xl: 20px;
  --radius-2xl: 28px;
  --radius-pill: 999px;
  --container: min(1120px, 92vw);
  --gap: clamp(16px, 2.4vw, 28px);
  --heading-grad: linear-gradient(90deg, var(--clr-accent), var(--clr-accent-2));
}

/* ベース */
body{
  background: var(--clr-bg);
  color: var(--clr-text);
  font-feature-settings: "palt";
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
.container{ width: var(--container); margin-inline: auto; }
.nowrap{ white-space: nowrap; }

#contact {
  background: var(--clr-card);
}
#banner{
  padding: 70px 0 0 0;
}
#contact .button {
  background: #00ae93;
}
#banner .banner_txt p.banner_sns {
  color: #00ae93;
}
#banner .banner_txt p.banner_title {
  line-height: 1.2;
  font-size: 80px;
}
/* ================================
   Header / Hero
================================ */
#header-wrapper{
  background: linear-gradient(180deg, rgba(10,12,18,.95), rgba(10,12,18,.55));
  backdrop-filter: saturate(1.2) blur(6px);
  border-bottom: 1px solid rgba(255,255,255,.06);
}
#logo h1{
  font-size: clamp(20px, 2.7vw, 28px);
  line-height: 1.25;
  color: var(--clr-card);
  margin: 0;
  letter-spacing: .02em;
}

/* バナーの高さを安定（CLS対策+見た目） */
#banner .banner_slide{
  position: relative;
  aspect-ratio: 16/9;
  min-height: 520px;
  border-radius: var(--radius-2xl);
  overflow: hidden;
  box-shadow: var(--shadow-1);
  isolation: isolate;
}
#banner .banner_txt{
  position: absolute;
  inset: 0 0 auto auto;
  padding: clamp(18px, 3.5vw, 36px);
  color: var(--clr-text);
  background: linear-gradient(0deg, rgba(6,9,14,0) 0%, rgba(6,9,14,.75) 60%, rgba(6,9,14,.95) 100%);
}
#banner .banner_title{
  font-weight: 700;
  font-size: clamp(22px, 3.6vw, 40px);
  line-height: 1.2;
  margin: 0 0 6px;
  letter-spacing:.02em;
}
#banner .banner_sns{
  margin: 0;
  color: var(--clr-text-sub);
  font-size: clamp(14px, 1.5vw, 16px);
}

/* ================================
   Section scaffold
================================ */
.content_bg{
  padding: clamp(36px, 6vw, 72px) 0 ;
  margin-bottom: 0;
}
.radius{ background: var(--clr-surface); border-radius: var(--radius-2xl); box-shadow: var(--shadow-1); }

/* セクション見出し */
.cont_caption{
  text-align: center;
  margin-bottom: clamp(20px, 3.5vw, 32px);
}
.heading{
  font-size: clamp(22px, 3vw, 32px);
  line-height: 1.2;
  margin: 0 0 6px;
  letter-spacing:.04em;
  background: var(--heading-grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.byline{
  color: var(--clr-text-sub);
  font-size: clamp(13px, 1.5vw, 15px);
  margin: 0 auto;
  max-width: 48ch;
}

/* ================================
   Cards (選ばれる理由)
================================ */
.cards{
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--gap);
  padding: clamp(16px, 3vw, 24px);
}
.card{
  background: var(--clr-card);
  border: 1px solid var(--clr-border);
  border-radius: var(--radius-xl);
  padding: clamp(16px, 2.4vw, 22px);
  box-shadow: var(--shadow-1);
  transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
  margin-bottom: 0;
}
.card:hover{
  transform: translateY(-4px);
  box-shadow: 0 10px 32px rgba(0,0,0,.34);
  border-color: rgba(99,162,255,.35);
}
.card h3{
  margin: 0 0 8px;
  font-size: clamp(16px, 2vw, 18px);
  line-height: 1.35;
}
.card p{ 
  margin: 0;
  color: var(--clr-text-sub);
  line-height: 1.6;
  }

/* ================================
   Flow steps
================================ */
.flow-steps{
  counter-reset: step;
  list-style: none;
  padding: 0;
  display: grid;
  grid-template-columns: 1fr !important;
  gap: var(--gap);
  width: var(--container);
  margin: 0 auto;
}
.flow-steps li{
  background: var(--clr-card);
  border: 1px solid var(--clr-border);
  border-radius: var(--radius-xl);
  padding: clamp(14px, 2.2vw, 18px) clamp(16px, 2.4vw, 24px) clamp(14px, 2.2vw, 18px) clamp(16px, 2.4vw, 48px);
  position: relative;
  box-shadow: var(--shadow-1);
}
.flow-steps li::before{
  counter-increment: step;
  content: counter(step);
  position: absolute;
  inset: -14px auto auto -14px;
  width: 36px; height: 36px;
  display: grid; place-items: center;
  font-weight: 700;
  background: var(--heading-grad);
  box-shadow: 0 6px 14px rgba(0,0,0,.25);
}
.flow-steps strong{ color: var(--clr-text); }

/* ================================
   Area
================================ */
#area .container p{
  background: linear-gradient(180deg, rgba(47,196,178,.08), rgba(99,162,255,.06));
  border: 1px solid var(--clr-border);
  border-radius: var(--radius-xl);
  padding: clamp(16px, 2.5vw, 20px);
  color: var(--muted);
  box-shadow: var(--shadow-1);
  text-align: center;
  line-height: 1.6;
}

/* ================================
   FAQ
================================ */
.faq details {
  background: var(--clr-faq);
  border: 1px solid var(--clr-border);
  border-radius: var(--radius-xl);
  padding: 0;
  overflow: hidden;
  box-shadow: var(--shadow-1);
}
.faq details + details{ margin-top: 12px; }
.faq summary{
  cursor: pointer;
  list-style: none;
  padding: 16px 20px;
  position: relative;
  color: var(--clr-text);
  font-weight: 600;
}
.faq summary::-webkit-details-marker{ display: none; }
.faq summary::after{
  content: "＋";
  position: absolute; right: 16px; top: 50%;
  translate: 0 -50%;
  font-weight: 800;
  opacity: .7;
  transition: transform .25s ease, opacity .2s ease;
}
.faq details[open] summary::after{
  content: "－";
  opacity: 1;
}
.faq p{
  padding: 0 20px 18px;
  margin: 0;
  color: var(--clr-text-sub);
  border-top: 1px solid rgba(255,255,255,.06);
}

/* ================================
   Form / CTA
================================ */
#contact .byline{ max-width: 60ch; }

.wpcf7-form table{ width: 100%; border-collapse: separate; border-spacing: 0 14px; }
.wpcf7-form th{
  width: 28%;
  text-align: left;
  color: var(--clr-text);
  font-weight: 600;
  vertical-align: top;
  padding-top: 6px;
}
.wpcf7-form td{ width: 72%; }

.input-text, .input-textarea,
.wpcf7 input[type="text"], .wpcf7 input[type="email"], .wpcf7 input[type="tel"], .wpcf7 textarea{
  width: 100%;
  color: var(--clr-text);
  border: 1px solid var(--clr-border);
  border-radius: 14px;
  padding: 12px 14px;
  outline: none;
  transition: border-color .2s ease, box-shadow .2s ease, background .2s ease;
}
.wpcf7 textarea{ min-height: 140px; resize: vertical; }
.wpcf7 .hissu{ color: var(--clr-accent); margin-left: .4em; }

.input-text:focus, .input-textarea:focus,
.wpcf7 input:focus, .wpcf7 textarea:focus{
  border-color: rgba(99,162,255,.6);
  box-shadow: 0 0 0 4px rgba(99,162,255,.18);
}

/* 送信ボタン */
.button.medium.arrow, #submit-btn{
  appearance: none;
  border: none;
  cursor: pointer;
  display: inline-flex; align-items: center; justify-content: center;
  gap: 10px;
  padding: 14px 22px;
  background: var(--heading-grad);
  font-weight: 800;
  letter-spacing: .04em;
  border-radius: var(--radius-pill);
  box-shadow: 0 8px 20px rgba(26,161,255,.25);
  transition: transform .12s ease, filter .2s ease, box-shadow .2s ease;
}
.button.medium.arrow:hover, #submit-btn:hover{
  filter: brightness(1.06);
  box-shadow: 0 10px 26px rgba(26,161,255,.32);
}
.button.medium.arrow:active, #submit-btn:active{ transform: translateY(1px); }
.button.medium.arrow::after, #submit-btn::after{
  content: "→";
  font-weight: 900;
  transform: translateX(0);
  transition: transform .2s ease;
}
.button.medium.arrow:hover::after{ transform: translateX(3px); }

.bt-wrapper{ text-align: center; margin-top: 18px; }

/* バリデーション表示（CF7） */
.wpcf7-not-valid{ border-color: #ff6b6b !important; box-shadow: 0 0 0 4px rgba(255,107,107,.18) !important; }
.wpcf7-response-output{ color: var(--clr-text); border: 1px solid var(--clr-border); border-radius: 12px; padding: 10px 12px; }

/* ================================
   Footer
================================ */
.footer_nav{
  margin: 12px 0 18px;
}
#footer .footer_nav li a{
  text-decoration: none;
  padding: 8px 12px;
  font-weight: bold;
  color: #fff;
  background:#00ae93;
  border-radius: 12px;
  transition: background .2s ease, color .2s ease, border-color .2s ease;
}
.footer_nav a:hover{ color: var(--clr-text); border-color: rgba(99,162,255,.4); background: rgba(99,162,255,.06); }
.footer_company address{ color: var(--muted); }

/* ================================
   Drawer menu button
================================ */
.drawermenu .menu-btn{
  background: rgba(20,25,36,.7);
  border: 1px solid var(--clr-border);
  border-radius: 12px;
  padding: 8px 10px;
  box-shadow: var(--shadow-1);
}
.drawermenu .bar{ background: var(--clr-text); }
.drawer-menu{
  background: rgba(10,12,18,.96);
  backdrop-filter: blur(10px);
  border-left: 1px solid rgba(255,255,255,.06);
}
.drawer-menu a{ color: var(--clr-text); }

/* ================================
   Utilities / Motion
================================ */
.invisible{ opacity: 0; }
.animate__animated{ animation-duration: .9s; animation-timing-function: cubic-bezier(.2,.8,.2,1); }
@media (prefers-reduced-motion: reduce){
  *{ animation: none !important; transition: none !important; }
}

/* ================================
   Responsive
================================ */
@media (max-width: 960px){
  .cards{ grid-template-columns: 1fr; }
  .flow-steps{ grid-template-columns: 1fr; }
  .wpcf7-form th{ width: 100%; padding-bottom: 6px; }
  .wpcf7-form td{ width: 100%; display: block; }
  #banner .banner_slide{ min-height: 420px; border-radius: 16px; }
}
@media (max-width: 560px){
  .heading{ letter-spacing: .02em; }
  .footer_nav a{ padding: 6px 10px; }
}

/* Cardsレイアウトを強制的にGridに戻す＆rowの影響を無効化 */
.container.row.cards{ display: grid !important; } /* 競合に勝つための指定 */
.cards{
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--gap);
  align-items: start;
}
.cards > *{
  min-width: 0;              /* テキストのはみ出しで列幅が押されるのを防止 */
}
.cards > .card{
  box-sizing: border-box;
  width: auto !important;    /* .row の width 指定を打ち消す保険 */
  flex: none !important;     /* Flexの残り指定を無効化 */
}
.flow-steps strong {
  display: block;
  font-size: clamp(16px, 2.2vw, 20px);
  font-weight: 700;
  margin-bottom: 8px;
  color: var(--clr-text);
  letter-spacing: .03em;
}
.flow-desc {
  display: block;
  color: var(--clr-text-sub);
  line-height: 1.7;
  font-size: clamp(14px, 1.6vw, 15px);
}

/* 制作の流れ - 各ステップ */

.flow-steps {
  max-width: 960px !important; 
  margin: 0 auto;
  padding: 0 12px;
}
.flow-steps li{
  padding: 20px 24px 20px 72px;
  line-height: 1.6;
  position: relative;
}
.flow-steps li::before{
  counter-increment: step;
  content: counter(step);
  position: absolute;
  top: 20px;
  left: -32px;
  width: 56px;
  height: 56px;
  font-size: 30px;
  font-weight: 700;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  background: var(--heading-grad);
  box-shadow: 0 6px 14px rgba(0,0,0,.25);
}

/* strongを見出しとして装飾 */
.flow-steps strong{
  display: block;
  font-size: 24px;
  font-weight: 700;
  margin: 0 0 4px;       /* 下の説明との距離を詰める */
  color: var(--clr-text);
}

/* 説明文 */
.flow-desc{
  display: block;
  color: var(--clr-text-sub);
  font-size: 15px;
  line-height: 1.65;
}
/**************************************************************************************************/
/* タブレット以下 */
@media (max-width: 960px){
  /* カード：1列表示 */
  .cards{
    grid-template-columns: 1fr;
  }

  /* フロー：1列表示 */
  .flow-steps{
    grid-template-columns: 1fr;
    max-width: 100%; /* 画面幅いっぱいに */
    padding: 0 16px;
  }
  .flow-steps li{
    padding: 20px 20px 20px 60px; /* 左アイコン分だけ余白を残す */
  }
  .flow-steps li::before{
    left: -20px; /* 番号バッジ位置を調整 */
  }

  /* FAQ */
  .faq summary{
    font-size: 15px;
    padding: 14px 16px;
  }
  .faq p{
    padding: 0 16px 14px;
    font-size: 14px;
  }

  /* フォーム */
  .wpcf7-form th,
  .wpcf7-form td{
    width: 100%;
    display: block;
    padding: 6px 0;
  }
  
  #logo h1{
    font-size: 13px
  }
  #header-wrapper{
    border: 0;
    margin: 0;
  }
  #header .container {
      padding: 4px 1em 0;
  }
  #banner {
      padding: 0 0 0 0;
      height: 60vh;
  }
  #banner .banner_txt {
      position: relative;
      inset: 0 0 auto auto;
      padding: 120px 1em 0;
      margin: 0 auto;
  }
  #banner .banner_txt p.banner_title {
      font-size: 26px;
      line-height: 1.5;
  }
  #banner .banner_txt p.banner_sns {
      font-size: 16px;
  }
  #about {
      margin-top: 30vh;
  }
  #contact .row table th {
      padding-top: 0;
  }
  #contact .row table td {
      padding-bottom: 0;
  }
  #footer .footer_nav li {
      font-size: 100%;
      text-align: left;
      line-height: 2.5;
      margin: 1em 0;
  }
  #logo {
    padding-bottom: 4px;
  }
}

/* スマホ（小画面）用 */
@media (max-width: 560px){
  /* ヘッダーロゴを縮小 */
  #logo img{
    width: 140px;
    height: auto;
  }

  /* ヒーローの高さを調整 */
  #banner .banner_slide{
    min-height: 360px;
    border-radius: 12px;
  }
  #banner .banner_title{
    font-size: 18px;
  }
  #banner .banner_sns{
    font-size: 13px;
  }

  /* カード余白を縮小 */
  .card{
    padding: 14px;
  }

  /* ボタン */
  .button.medium.arrow, #submit-btn{
    width: 100%;
    font-size: 15px;
    padding: 12px 16px;
  }
}

