/*
Theme Name: My Theme
Author: jinan
Version: 1.0
*/

/* ========== 基本設定 ========== */
:root{
  /* キービジュアルの高さ（今の値をここに集約） */
  --hero-h: clamp(220px, 38vw, 460px);
  --header-height: 90px;
}


body{
  font-family: "Zen Maru Gothic", system-ui, -apple-system, "Hiragino Kaku Gothic ProN", "Noto Sans JP", sans-serif;
  line-height: 1.8;
  margin: 0;
  padding: 0;
  padding-top: var(--header-height); /* 固定ヘッダー分だけ下げる */
}

h1, h2, h3{
  font-weight: 700;
  letter-spacing: 0.02em;
}

p, li{
  font-weight: 400;
}

/* ========== 共通コンテナ（本文幅） ========== */
main, footer{
  max-width: 1150px;
  margin: 0 auto;
  padding: clamp(16px, 3vw, 40px);
}

/* ========== フッター ========== */
footer{
  border-top: 1px solid #eee;
  margin-top: 40px;
}

/* ========== 固定ヘッダー（背景は全幅・中身だけ中央幅） ========== */
.site-header{
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 9999;

  background: rgba(255,255,255,0.78);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);

  border-bottom: 1px solid rgba(0,0,0,0.06);
}

.header-inner{
  max-width: 1400px;
  margin: 0 auto;
  padding: 16px clamp(16px, 3vw, 40px);

  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
}

/* サイト名と説明文 */
.site-brand{
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.site-brand h1{
  margin: 0;
  line-height: 1.15;
}

.site-brand p{
  margin: 0;
  line-height: 1.4;
  word-break: keep-all;
  overflow-wrap: anywhere;
}

/* ========== ナビ（右寄せ・ボタン風） ========== */
.site-nav{
  margin-left: auto;
}

.site-nav ul{
  list-style: none;
  margin: 0;
  padding: 0;

  display: flex;
  gap: 12px;
  justify-content: flex-end;
  align-items: center;
  flex-wrap: wrap;
}

.site-nav a{
  text-decoration: none;
  padding: 10px 14px;
  border: 1px solid #e9e9e9;
  border-radius: 10px;
  display: inline-block;
  white-space: nowrap;
}

.site-nav a:hover{
  background: #f7f7f7;
}

/* ========== CTA（お問い合わせボタン等） ========== */
a.cta{
  display: inline-block;
  padding: 12px 16px;
  border-radius: 12px;
  border: 1px solid #f4c9d7;
  text-decoration: none;
  font-weight: 600;

  color: #b0355a;
  background: #fff;
}

a.cta:hover{
  background: #fff5f7;
}

/* primary（お問い合わせ） */
a.cta.primary{
  background: #ffeef3;     /* ← 2段目と同じベース色 */
  border-color: #f4c9d7;
  color: #b0355a;
}

a.cta.primary:hover{
  background: #ffe2ea;     /* 少し濃くして押せる感じ */
}

a.cta:focus-visible{
  outline: 3px solid #ffd1e0;
  outline-offset: 2px;
}

/* ========== キービジュアル：画像だけ ========== */
.hero{
  padding: 0;
}

.hero-media{
  width: 100%;
  height: var(--hero-h);
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  border-bottom: 1px solid rgba(0,0,0,0.06);
}


/* ====== 右端の人物（portrait.png）をヒーローに重ねて、下へはみ出させる ====== */
.hero{
  position: relative;
  overflow: visible; /* はみ出しを見せる */
}

/* 右端の少女：かなり大きくして、頭頂を“真ん中より少し下”に置く */
.hero-portrait{
  position: absolute;
  right: -500px;

  /* ここがポイント：
     “頭のてっぺん”＝画像の上端を、ヒーローの真ん中より少し下へ */
  top: 40%;
  transform: none; /* translateをやめて「上端基準」にする */

  /* 大きさ：幅ではなく高さで決める（おでこが下端に来やすい） */
  height: calc(var(--hero-h) + 800px);
  width: auto;

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


/* 下の文章が画像にかぶらないよう、右側に余白を作る（PCだけ） */
@media (min-width: 900px){
  .top-intro-inner{
    padding-right: min(440px, 34vw);
  }
}

/* ========== キービジュアル下の本文（キャッチ） ========== */
.top-intro{
  padding: 42px 0 22px;
}

.top-intro-inner{
  max-width: 1150px;
  margin: 0 auto;
  padding: 0 clamp(16px, 3vw, 40px);
}

.top-intro-inner h2{
  margin: 0 0 12px;
  font-size: clamp(24px, 3vw, 36px);
  line-height: 1.25;
}

.top-intro-inner p{
  margin: 0 0 18px;
}

.top-actions{
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}
/* =========================
  TOP サービス概要
========================= */
.top-services{
  margin: 28px 0 18px;
  display: grid;
  gap: 18px;
}

/* TOP専用カード */
.top-service-card{
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 16px;
  padding: 18px;
  border-radius: 16px;
  background: #fff8fa;
  border: 1px solid #f3dbe3;
  box-shadow: 0 8px 24px rgba(0,0,0,0.04);
}

.top-service-card .service-text h3{
  margin: 0 0 8px;
  font-size: 18px;
}

.top-service-card .service-text p{
  margin: 0;
  color: #444;
  font-size: 15px;
  line-height: 1.9;
}

.top-service-card .service-media{
  display: flex;
  align-items: center;
  justify-content: center;
}

.top-service-card .service-img{
  width: 100%;
  aspect-ratio: 4 / 3;
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid #eee;
  background: #fff;
}

.top-service-card .service-img img{
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.top-service-card .service-img.placeholder{
  background: #f5f5f5;
  color: #666;
  display: grid;
  place-items: center;
  font-size: 14px;
}

/* スマホ */
@media (max-width: 800px){
  .top-service-card{
    grid-template-columns: 1fr;
  }
}

/* 人物イラストとサービスカードが被らないようにする */
@media (min-width: 900px){
  :root{
    --portrait-safe: min(440px, 34vw);
  }

  .top-services .top-service-card{
    max-width: calc(100% - var(--portrait-safe));
    margin-right: auto;
  }
}

.top-services .top-service-card:nth-child(1){
  transition-delay: 0s;
}

.top-services .top-service-card:nth-child(2){
  transition-delay: .12s;
  background: #fff1f4;
  border-color: #ffe2ea;
}

@media (min-width: 900px){
  .top-services .top-service-card:nth-child(2){
    grid-template-columns: 1fr 1.4fr;
  }

  .top-services .top-service-card:nth-child(2) .service-text{
    order: 2;
  }

  .top-services .top-service-card:nth-child(2) .service-media{
    order: 1;
  }
}

.top-services .top-service-card:nth-child(3){
  transition-delay: .24s;
}



/* =========================
  スクロールでふわっと表示（自然にゆっくり）
========================= */
.js-reveal{
  opacity: 0;
  transform: translateY(32px);
  transition:
    opacity 1.2s ease-out,
    transform 1.2s cubic-bezier(0.22, 1, 0.36, 1);
  will-change: opacity, transform;
}

.js-reveal.is-visible{
  opacity: 1;
  transform: translateY(0);
}


/* =========================
  人物イラストとサービスカードが被らないようにする
  ※3つ全部同じ幅で左寄せ
========================= */
@media (min-width: 900px){

  /* 右のイラスト分の“避ける幅” */
  :root{
    --portrait-safe: min(440px, 34vw);
  }

  /* 3つ全部狭くする */
  .top-services .service-card{
    max-width: calc(100% - var(--portrait-safe));
    margin-right: auto; /* 左寄せ */
  }
}

.site-title a{
  color: inherit;
  text-decoration: none;
}

.site-title a:hover{
  opacity: 0.85;
}

.top-services .service-card:nth-child(1){ transition-delay: 0s; }
@media (min-width: 900px){
  .top-services .service-card:nth-child(2){ transition-delay: .12s; }
  .top-services .service-card:nth-child(2){
    grid-template-columns: 1fr 1.4fr; /* 画像側を左にする幅感 */
  }
  .top-services .service-card:nth-child(2) .service-text{
    order: 2;
  }
  .top-services .service-card:nth-child(2) .service-media{
    order: 1;
  }
    .top-services .service-card:nth-child(2){
    background:#fff1f4;
    border-color: #ffe2ea;
  }
}
.top-services .service-card:nth-child(3){ transition-delay: .24s; }

/* ==============================
  ヘッダー高さの基準（PC）
  ※ bodyの押し下げ量と一致させる
============================== */

/* ヘッダーとトップビジュアルの境界線を消す（境目ゼロ） */
.site-header{
  border-bottom: none;
}
.hero-media{
  border-bottom: none;
}

/* ==============================
  トップページだけ：heroを上に引き上げて隙間を無くす
  （固定ヘッダーの下に画像が“自然に続く”状態）
============================== */
.home .hero{
  margin-top: calc(-1 * var(--header-height));
}
/* =========================================
  ヘッダー最終調整（重複をなくして統一）
========================================= */

/* ★ヘッダー高さはここで一括管理（PC） */
:root{
  --header-height: 118px;
}

/* ログイン中（管理バー表示）のときヘッダーが食い込まないように */
.admin-bar .site-header{ top: 32px; }
@media (max-width: 782px){
  .admin-bar .site-header{ top: 46px; }
}

/* ヘッダー内の余白（窮屈さ解消） */
.header-inner{
  padding-top: 22px;
  padding-bottom: 18px;
}

/* 文字の収まりを良くする */
.site-brand h1{
  margin: 0;
  line-height: 1.1;
}
.site-brand p{
  margin: 0;
  line-height: 1.3;
}

/* ヘッダーとトップビジュアルの境界線を消す（境目ゼロ） */
.site-header{ border-bottom: none; }
.hero-media{ border-bottom: none; }

/* トップページだけ：ヘッダーとヒーローをピッタリ繋げる */
.home .hero{
  margin-top: calc(-1 * var(--header-height));
}

/* =========================================
  スクロール時にヘッダーを少し透明にする
========================================= */
.site-header{
  transition: background .25s ease, backdrop-filter .25s ease;
}

/* スクロールしたら少し透明に（＝薄く） */
.site-header.is-scrolled{
  background: rgba(255,255,255,0.28);
}

/* =========================
  ヘッダーロゴ（Life Support R）をピンクに
========================= */
.site-title a{
  color: #9b2f4d; /* CTAと同じ系統のくすみピンク */
  font-weight: 800;
}

.site-title a:hover{
  opacity: 0.85;
}

.site-brand p{
  color: rgba(176, 53, 90, 0.75);
}

/* =========================
   Service Page
========================= */
.service-page {
  background: #fff;
  color: #333;
}

.service-container {
  width: min(1100px, calc(100% - 40px));
  margin: 0 auto;
}

.service-hero {
  padding: 140px 0 80px;
  background:
    linear-gradient(180deg, rgba(255,245,248,0.95) 0%, rgba(255,255,255,1) 100%);
}

.service-hero__sub,
.service-heading__sub {
  font-size: 0.9rem;
  letter-spacing: 0.08em;
  color: #c97f95;
  margin-bottom: 10px;
  font-weight: 700;
}

.service-hero__title {
  font-size: clamp(2rem, 4vw, 3.2rem);
  line-height: 1.3;
  margin-bottom: 20px;
  color: #222;
}

.service-hero__lead {
  font-size: 1.05rem;
  line-height: 2;
  max-width: 800px;
  color: #555;
}

.service-intro,
.service-menu,
.service-area,
.service-price,
.service-flow,
.service-cta {
  padding: 80px 0;
}

.service-intro__box,
.service-area__inner,
.service-price__box,
.service-cta__box {
  background: #fff;
  border: 1px solid #f1dfe5;
  border-radius: 28px;
  padding: 40px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.04);
}

.service-heading h2 {
  font-size: clamp(1.6rem, 3vw, 2.4rem);
  line-height: 1.5;
  margin-bottom: 24px;
  color: #222;
}

.service-heading--center {
  text-align: center;
  margin-bottom: 40px;
}

.service-intro p,
.service-area p,
.service-price__text,
.service-cta p {
  font-size: 1rem;
  line-height: 2;
  color: #555;
}

.service-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.service-card {
  background: #fff8fa;
  border: 1px solid #f3dbe3;
  border-radius: 24px;
  padding: 28px;
  box-shadow: 0 8px 20px rgba(0,0,0,0.03);
}

.service-card__icon {
  font-size: 2rem;
  margin-bottom: 14px;
}

.service-card h3 {
  font-size: 1.2rem;
  margin-bottom: 14px;
  color: #222;
}

.service-card p {
  font-size: 0.98rem;
  line-height: 1.9;
  color: #555;
}

.service-price__box {
  text-align: center;
  background: linear-gradient(180deg, #fff8fa 0%, #fff 100%);
}

.service-price__main {
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  font-weight: 700;
  color: #c45f82;
  margin-bottom: 16px;
}

.service-flow__list {
  display: grid;
  gap: 20px;
}

.service-flow__item {
  display: flex;
  gap: 20px;
  align-items: flex-start;
  background: #fff;
  border: 1px solid #f1dfe5;
  border-radius: 22px;
  padding: 24px;
}

.service-flow__step {
  flex: 0 0 64px;
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: #fdebf1;
  color: #c45f82;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 1rem;
}

.service-flow__item h3 {
  margin-bottom: 8px;
  font-size: 1.1rem;
  color: #222;
}

.service-flow__item p {
  margin: 0;
  line-height: 1.9;
  color: #555;
}

.service-cta__box {
  text-align: center;
  background: linear-gradient(180deg, #fff4f7 0%, #fff 100%);
}

.service-cta__box h2 {
  font-size: clamp(1.6rem, 3vw, 2.3rem);
  line-height: 1.5;
  margin-bottom: 18px;
  color: #222;
}

.service-cta__button {
  display: inline-block;
  margin-top: 24px;
  padding: 14px 28px;
  border-radius: 999px;
  background: #e7a8bc;
  color: #fff;
  text-decoration: none;
  font-weight: 700;
  transition: 0.3s ease;
}

.service-cta__button:hover {
  background: #d98fa7;
  transform: translateY(-2px);
}

/* Responsive */
@media (max-width: 900px) {
  .service-cards {
    grid-template-columns: 1fr 1fr;
  }

  .service-intro__box,
  .service-area__inner,
  .service-price__box,
  .service-cta__box {
    padding: 28px;
  }
}

@media (max-width: 640px) {
  .service-hero {
    padding: 110px 0 60px;
  }

  .service-cards {
    grid-template-columns: 1fr;
  }

  .service-flow__item {
    flex-direction: column;
    gap: 16px;
  }

  .service-flow__step {
    width: 54px;
    height: 54px;
    flex-basis: 54px;
  }

  .service-container {
    width: min(100% - 24px, 1100px);
  }
}

.service-hero--with-illust {
  overflow: hidden;
}

.service-hero__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 40px;
}

.service-hero__content {
  flex: 1 1 56%;
}

.service-hero__image {
  flex: 1 1 44%;
  text-align: right;
}

.service-hero__image img {
  max-width: 420px;
  width: 100%;
  height: auto;
  display: inline-block;
}

@media (max-width: 900px) {
  .service-hero__inner {
    flex-direction: column;
    text-align: left;
  }

  .service-hero__image {
    text-align: center;
  }

  .service-hero__image img {
    max-width: 320px;
  }
}

/* =========================
   Contact Page
========================= */
.contact-page {
  background: #fff;
  color: #333;
}

.contact-container {
  width: min(1100px, calc(100% - 40px));
  margin: 0 auto;
}

.contact-hero {
  padding: 140px 0 80px;
  background: linear-gradient(180deg, rgba(255,245,248,0.95) 0%, rgba(255,255,255,1) 100%);
}

.contact-hero__sub,
.contact-heading__sub {
  font-size: 0.9rem;
  letter-spacing: 0.08em;
  color: #c97f95;
  margin-bottom: 10px;
  font-weight: 700;
}

.contact-hero__title {
  font-size: clamp(2rem, 4vw, 3.2rem);
  line-height: 1.3;
  margin-bottom: 20px;
  color: #222;
}

.contact-hero__lead {
  font-size: 1.05rem;
  line-height: 2;
  max-width: 800px;
  color: #555;
}

.contact-guide,
.contact-message,
.contact-form-section {
  padding: 80px 0;
}

.contact-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}

.contact-card,
.contact-message__box,
.contact-form-wrap {
  background: #fff;
  border: 1px solid #f1dfe5;
  border-radius: 28px;
  padding: 32px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.04);
}

.contact-card {
  background: #fff8fa;
}

.contact-card h2,
.contact-heading h2 {
  font-size: clamp(1.4rem, 2.5vw, 2rem);
  line-height: 1.5;
  margin-bottom: 18px;
  color: #222;
}

.contact-card p,
.contact-message__box p,
.contact-form-note {
  font-size: 1rem;
  line-height: 2;
  color: #555;
}

.contact-list {
  margin: 0;
  padding-left: 1.2em;
}

.contact-list li {
  margin-bottom: 10px;
  line-height: 1.9;
  color: #555;
}

.contact-price {
  font-size: 1.4rem;
  font-weight: 700;
  color: #c45f82;
  margin-bottom: 10px;
}

.contact-heading--center {
  text-align: center;
  margin-bottom: 30px;
}

.contact-form-note {
  text-align: center;
  margin-bottom: 30px;
}

.contact-form-box {
  margin-top: 10px;
}

/* Contact Form 7 などを想定した最低限の整え */
.contact-form-box input[type="text"],
.contact-form-box input[type="email"],
.contact-form-box input[type="tel"],
.contact-form-box textarea,
.contact-form-box select {
  width: 100%;
  padding: 14px 16px;
  border: 1px solid #ead6dd;
  border-radius: 14px;
  background: #fff;
  font-size: 1rem;
  box-sizing: border-box;
}

.contact-form-box textarea {
  min-height: 180px;
  resize: vertical;
}

.contact-form-box input[type="submit"],
.contact-form-box button,
.contact-form-box .wpcf7-submit {
  display: inline-block;
  padding: 14px 28px;
  border: none;
  border-radius: 999px;
  background: #e7a8bc;
  color: #fff;
  font-weight: 700;
  cursor: pointer;
  transition: 0.3s ease;
}

.contact-form-box input[type="submit"]:hover,
.contact-form-box button:hover,
.contact-form-box .wpcf7-submit:hover {
  background: #d98fa7;
  transform: translateY(-2px);
}

.contact-form-box p {
  margin-bottom: 18px;
}

@media (max-width: 768px) {
  .contact-grid {
    grid-template-columns: 1fr;
  }

  .contact-card,
  .contact-message__box,
  .contact-form-wrap {
    padding: 24px;
  }

  .contact-hero {
    padding: 110px 0 60px;
  }
}

@media (max-width: 640px) {
  .contact-container {
    width: min(100% - 24px, 1100px);
  }
}


/* =========================
   Mobile Fix for Life Support R
========================= */
@media (max-width: 768px) {

  :root{
    --header-height: 118px;
    --hero-h: 190px;
  }

  body{
    padding-top: var(--header-height);
  }

  .site-header{
    border-bottom: none;
  }

  .header-inner{
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
    padding: 14px 16px;
  }

  .site-brand{
    gap: 4px;
  }

  .site-brand h1,
  .site-title a{
    font-size: 2.2rem;
    line-height: 1.05;
  }

  .site-brand p{
    font-size: 0.95rem;
    line-height: 1.35;
  }

  .site-nav{
    width: 100%;
    margin-left: 0;
  }

  .site-nav ul{
    justify-content: flex-start;
    gap: 8px;
    flex-wrap: wrap;
  }

  .site-nav a{
    padding: 10px 14px;
    font-size: 1rem;
    border-radius: 10px;
  }

  .home .hero{
    margin-top: calc(-1 * var(--header-height));
  }

  .hero{
    position: relative;
    overflow: hidden;
  }

  .hero-media{
    height: var(--hero-h);
    background-position: center;
    background-size: cover;
  }

  .hero-portrait{
    position: absolute;
    right: -18px;
    bottom: -8px;
    top: auto;
    transform: none;
    height: 210px;
    width: auto;
    max-width: none;
    margin: 0;
    pointer-events: none;
    opacity: 0.95;
    z-index: 3;
  }

  .top-intro{
    padding: 24px 0 18px;
  }

  .top-intro-inner{
    max-width: 100%;
    padding: 0 16px !important;
  }

  .top-intro-inner h2{
    font-size: 2rem;
    line-height: 1.35;
    margin-bottom: 10px;
    padding-right: 110px;
  }

  .top-intro-inner > p{
    font-size: 1rem;
    line-height: 1.8;
    margin-bottom: 16px;
    padding-right: 110px;
  }

  .top-services{
    gap: 14px;
    margin: 20px 0 16px;
  }

  .top-service-card{
    max-width: 100% !important;
    grid-template-columns: 1fr !important;
    gap: 14px;
    padding: 16px;
    border-radius: 16px;
    margin-right: 0;
  }

  .top-service-card:nth-child(2) .service-text,
  .top-service-card:nth-child(2) .service-media{
    order: initial !important;
  }

  .top-service-card .service-text h3{
    font-size: 1.3rem;
    margin-bottom: 8px;
  }

  .top-service-card .service-text p{
    font-size: 1rem;
    line-height: 1.9;
  }

  .top-service-card .service-media,
  .top-service-card .service-img{
    width: 100%;
  }

  .top-service-card .service-img{
    aspect-ratio: 4 / 3;
    border-radius: 12px;
    overflow: hidden;
  }

  .top-service-card .service-img img{
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
  }

  .top-actions{
    display: grid;
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .top-actions .cta{
    width: 100%;
    text-align: center;
    box-sizing: border-box;
  }

  .news{
    padding-top: 8px;
  }
}

@media (max-width: 480px) {
  :root{
    --header-height: 112px;
    --hero-h: 170px;
  }

  .site-brand h1,
  .site-title a{
    font-size: 1.9rem;
  }

  .site-brand p{
    font-size: 0.88rem;
  }

  .site-nav a{
    font-size: 0.95rem;
    padding: 9px 12px;
  }

  .hero-portrait{
    height: 185px;
    right: -12px;
    bottom: -4px;
  }

  .top-intro-inner h2{
    font-size: 1.75rem;
    padding-right: 95px;
  }

  .top-intro-inner > p{
    padding-right: 95px;
  }
}