@charset "UTF-8";
/* CSS Document */

/*
Theme Name: Heartful Home
Theme URI:
Author:
Author URI:
Description: ハートフルホーム用オリジナルテーマ
Version: 1.0
*/

/* --------------------
  リセット・共通設定
-------------------- */

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  font-size: 100%;
}

body {
  margin: 0;
  font-family: "Zen Kaku Gothic New", sans-serif;
  font-weight: 400;
  color: #333;
  line-height: 1.7;
  background: #fff;
}


img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
}

ul,
ol {
  list-style: none;
  padding: 0;
  margin: 0;
}

/* 全体 */
h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: "Zen Kaku Gothic New", sans-serif;
  font-weight: 500;
}



/* ヘッダーメニュー */
.menu a{
  font-weight: 400;
}

.section-title{
  font-family: "Josefin Sans", sans-serif;
  font-weight: 400;
  letter-spacing: .08em;
  text-align: left;
}

/* 日本語部分だけ上書き */
.section-title span{
  font-family: "Zen Kaku Gothic New", sans-serif;
  font-weight: 500;
  margin-left: 12px;
}



/* フロント専用（将来用） */
.front-page h2{
  letter-spacing: .08em;
}

.intro{
  text-align: center;
}

.section-title,
.section-title span{
  text-align: left;
  display: block;
}


/* --------------------
  レイアウト共通
-------------------- */

.wrap {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 18px;
}

/* --------------------
  ヘッダー
-------------------- */

.site-header{
  position: sticky;
  top: 0;
  z-index: 1000;
  background:#fff;
  width:100%;
}

/* 中身を中央寄せコンテナ */
.header{
  width: min(1200px, 92%);
  margin: 0 auto;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:24px;
}

/* --------------------
  ロゴ（左固定）
-------------------- */

.logo{
  flex:0 0 auto; /* 縮ませない */
}

.logo img{
  width:150px;
  height:auto;
  display:block;
}

/* --------------------
  メニュー
-------------------- */

.menu{
  display:flex;
  align-items:center;
  gap:44px;
  margin-left:auto; /* ロゴから離して右へ */
}

.menu a{
  font-size:16px;
  white-space:nowrap;
  text-decoration:none;
  color:#222;
}

/* --------------------
  ドロップダウン
-------------------- */

.menu__item{
  position:relative;
}

.menu__sub{
  position:absolute;
  top:calc(100% + 10px);
  left:0;
  min-width:160px;
  padding:8px;
  background:#fff;
  border:1px solid #e6e6e6;

  opacity:0;
  visibility:hidden;
  transform:translateY(6px);
  transition:opacity .15s ease, transform .15s ease, visibility .15s ease;
  z-index:1000;
}

.menu__sub a{
  display:block;
  padding:10px 12px;
  color:#222;
}

.menu__sub a:hover{
  background:#f5f5f5;
}

.menu__item--has-sub:hover .menu__sub,
.menu__item--has-sub:focus-within .menu__sub{
  opacity:1;
  visibility:visible;
  transform:translateY(0);
}

/* --------------------
  CTA（右端）
-------------------- */

.cta{
  display:flex;
  align-items:center;
  justify-content:center;
  padding:25px 34px;
  background:#2f7f57;
  color:#fff;
  font-size:16px;
  white-space:nowrap;
}

/* --------------------
  管理バー対策
-------------------- */

.admin-bar .site-header{ top:32px; }

@media (max-width:782px){
  .admin-bar .site-header{ top:46px; }
}

/* --------------------
  レスポンシブ調整
-------------------- */

@media (max-width:1100px){
  .menu{ gap:26px; }
  .menu a,
  .cta{ font-size:15px; }
  .cta{ padding:14px 24px; }
}

/* --------------------
  セクション共通
-------------------- */

section {
  padding: 40px 0;
}

.section-title {
  font-size: 28px;
  color: #6e8f7a;
  margin-bottom: 16px;
}

.section-title span {
  font-size: 15px;
  color: #777;
  margin-top: 4px;
  margin-left: 0px;
}

/* --------------------
  ヒーロー
-------------------- */

.home-hero__inner{
  max-width:1200px;
  margin:0 auto;
  padding:0 20px;
}

.home-hero__row{
  display:flex;
  align-items:stretch;
  gap:0;
}

/* 左70% */
.home-hero__slider{
  width:80%;
}

/* MetaSliderが親幅にフィットするように */
.home-hero__slider .metaslider,
.home-hero__slider .metaslider *{
  max-width:100%;
}

/* 画像の下に余白が出るの防止 */
.home-hero__slider img{
  display:block;
}

/* 右30%の白スペース */
.home-hero__titlebox{
  width:30%;
  display:flex;
  align-items:center;      /* 縦中央 */
  justify-content:center;  /* 横中央 */
  background:#fff;
  padding:0 24px;
}

.home-hero__titleimg{
  width:min(100%, 420px);
  height:auto;
  display:block;
}

/* スマホは縦並びにする */
@media (max-width:768px){
  .home-hero__row{
    flex-direction:column;
  }
  .home-hero__slider,
  .home-hero__titlebox{
    width:100%;
  }
  .home-hero__titlebox{
    padding:18px 20px;
  }
  .home-hero__titleimg{
    width:min(80%, 360px);
  }
}

/* --------------------
  MAIN IMAGE
-------------------- */

.mainimg{
  position: relative;
  width: 100%;
  height: 350px;        /* ← 固定にする方が安定 */
  max-height: 300px;
  overflow: hidden;
}

@media (max-width: 768px){
  .mainimg{
    height: 220px;      /* スマホは少し低く */
  }
}

.mainimg__bg{
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  z-index: 0;           /* ← 明示しておく */
}

.mainimg::after{
  content:"";
  position:absolute;
  inset:0;
  background: rgba(0,0,0,0.2);  /* ← シンプルな黒オーバーレイの方が安定 */
  z-index:1;
}

.mainimg__inner{
  position: relative;
  z-index: 2;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 10px;
  padding: 0 24px;
  max-width: 1200px;
  margin: 0 auto;
  color: #fff;
  text-align: center;   /* ← タイトル中央寄せの方が無難 */
}

.mainimg__title{
  margin: 20px 0 0;
  font-size: clamp(32px, 5vw, 60px);
  line-height: 0.9;
  font-weight: 400;
  letter-spacing: 0.5;
}

.mainimg__subtitle{
  margin: 0;
  font-size: clamp(12px, 1.8vw, 16px);
  opacity: 0.95;
}

/* --------------------
  NEWS
-------------------- */

.news-list {
  border-top: 1px solid #e6e6e6;
}

.news-item {
  display: flex;
  gap: 14px;
  padding: 18px 0;
  border-bottom: 1px solid #e6e6e6;
  font-size: 14px;
}

.news-item .date {
  min-width: 110px;
  color: #777;
}

.more-link {
  display: inline-block;
  margin-top: 12px;
  color: #6e8f7a;
}

/* --------------------
  WORKS
-------------------- */

.works-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
}

/* --------------------
  PLAN
-------------------- */

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

.plan-card {
  background: #f0f0f0;
  padding: 40px 0;
  text-align: center;
}

.plan-card small {
  display: block;
  margin-top: 6px;
  font-size: 13px;
  color: #777;
}

.btn-wide {
  display: block;
  margin: 20px auto 0;
  max-width: 520px;
  padding: 14px;
  background: #2f2a28;
  color: #fff;
  text-align: center;
}

.plan-row{
  display:flex;
  gap:18px;
}

.plan-card{
  position:relative;
  flex:1;
  display:block;
  overflow:hidden;
  aspect-ratio: 4 / 3;
}

.plan-bg{
  position:absolute;
  inset:0;
}

.plan-bg img{
  width:100%;
  height:100%;
  object-fit:cover;
  transform: scale(1.02);
  transition: transform .6s ease, filter .6s ease;
  will-change: transform;
  display:block;
}

/* 文字を上に載せる */
.plan-text{
  position:absolute;
  inset:0;
  display:flex;
  flex-direction:column;
  justify-content:center;
  align-items:center;
  gap:8px;
  text-align:center;
  padding:18px;
  color:#fff;
  z-index:1;
}

/* 読みやすくするため薄い被せ */
.plan-card::after{
  content:"";
  position:absolute;
  inset:0;
  background: rgba(0,0,0,.25);
  transition: background .6s ease;
  z-index:0;
}

.plan-title{
  font-size:20px;
  letter-spacing:.06em;
}

.plan-more{
  font-size:14px;
  opacity:.95;
}

/* マウスオンで画像に動きをつける */
.plan-card:hover .plan-bg img{
  transform: scale(1.12);
  filter: brightness(.95);
}

.plan-card:hover::after{
  background: rgba(0,0,0,.18);
}

/* スマホ */
@media (max-width: 600px){
  .plan-row{
    flex-direction:column;
  }
  .plan-card{
    aspect-ratio: 16 / 9;
  }
}

/* --------------------
  HOW TO
-------------------- */

.howto-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}

.btn {
  display: block;
  margin-top: 6px;
  padding: 10px 0;
  background: #2f2a28;
  color: #fff;
  text-align: center;
  font-size: 13px;,
}

.howto-row{
  display:grid;
  grid-template-columns: repeat(3, 1fr);
  gap:18px;
}

/* カード全体 */
.howto-card{
  display:block;
  color:inherit;
}

/* 画像枠 */
.howto-img{
  position:relative;
  overflow:hidden;
  aspect-ratio: 4 / 3;
}

/* 画像 */
.howto-img img{
  width:100%;
  height:100%;
  object-fit:cover;
  transition: transform .6s ease;
  display:block;
}

/* 下の文字 */
.howto-text{
  margin-top:10px;
  text-align:center;
  font-size:16px;
  letter-spacing:.06em;
}

/* ホバーで画像だけ動かす */
.howto-card:hover .howto-img img{
  transform: scale(1.08);
}

/* スマホ */
@media (max-width: 600px){
  .howto-row{
    grid-template-columns: 1fr;
  }
}


/* --------------------
  COMPANY
-------------------- */

.company-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
}

.company-table th,
.company-table td {
  padding: 18px 6px;
  border-bottom: 1px solid #e6e6e6;
  text-align: left;
}

.company-table th {
  width: 120px;
  color: #777;
  font-weight: normal;
}

/* --------------------
  施工事例
-------------------- */

:root{
  --max: 980px;
  --muted:#666;
}

.works-wrap{
  width:min(var(--max), calc(100% - 48px));
  margin:0 auto;
}

/* 上段 */
.works-hero{
  padding:56px 0 28px;
}
.works-hero__inner{
  display:grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap:32px;
  align-items:start;
}
.works-hero__img{
  width:100%;
  height:auto;
  display:block;
}
.works-hero__plan{
  display:inline-block;
  background:#111;
  color:#fff;
  padding:8px 18px;
  font-size:14px;
  letter-spacing:.06em;
}
.works-hero__title{
  margin:12px 0 10px;
  font-size:18px;
  letter-spacing:.04em;
  font-weight:500;
}
.works-hero__text{
  color:var(--muted);
  font-size:14px;
  line-height:1.9;
}

/* GALLERY */
.works-gallery{
  padding:44px 0 96px;
}
.works-gallery__title{
  text-align:center;
  margin:0 0 28px;
  font-size:18px;
  letter-spacing:.08em;
  font-weight:500;
}
.works-gallery__grid{
  display:grid;
  grid-template-columns:repeat(2, 1fr);
  gap:26px;
}
.works-gallery__item{
  margin:0;
}
.works-gallery__item img{
  width:100%;
  height:auto;
  display:block;
}

@media (max-width: 840px){
  .works-hero__inner{
    grid-template-columns: 1fr;
  }
  .works-gallery__grid{
    grid-template-columns: 1fr;
  }
}




/* --------------------
  フッター
-------------------- */

footer {
  background: #efefef;
  padding: 30px 0;
  font-size: 12px;
}

footer p {
  margin: 0;
}

.site-footer{
  background:#f5f5f5;
  padding:80px 0;
  font-size:15px;
}

.footer-inner{
  max-width:1200px;
  margin:0 auto;
  padding:0 20px;
}

/* 上段 */
.footer-top{
  display:flex;
  justify-content:space-between;
  align-items:flex-start;
  margin-bottom:60px;
}

.footer-brand img{
  height:50px;
}

.footer-links{
  display:flex;
  gap:80px;
}

.footer-links ul{
  list-style:none;
  padding:0;
  margin:0;
}

.footer-links li{
  margin-bottom:14px;
}

.footer-links a{
  text-decoration:none;
  color:#333;
}

/* グループタイトル */
.footer-group-title{
  display:flex;
  align-items:center;
  gap:20px;
  margin-bottom:40px;
}

.footer-group-title span{
  font-size:18px;
  font-weight:600;
}

.footer-group-title::after{
  content:"";
  flex:1;
  height:1px;
  background:#ccc;
}

/* フッター拠点エリア */
.footer-group{
  display:grid;
  grid-template-columns:repeat(3, 1fr); /* PC3列 */
  gap:60px 80px;
}

/* 各拠点 */
.group-item{
  text-align:left;
}

.group-item h4{
  margin:0 0 12px;
  font-size:18px;
  font-weight:600;
}

.group-item p{
  margin:0;
  line-height:1.9;
  font-size:14px;
}

/* スマホは2列 */
@media (max-width:768px){
  .footer-group{
    grid-template-columns:repeat(2, 1fr);
    gap:40px 24px;
  }
}





/* --------------------
  固定サイドボタン
-------------------- */

.fixed-side-widget {
  position: fixed;
  right: 12px;
  top: 35%;
  z-index: 999;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.side-btn {
  writing-mode: vertical-rl;
  background: #b7d100;
  color: #333;
  padding: 14px 10px;
  border-radius: 6px;
  font-size: 14px;
}

/* --------------------
  レスポンシブ
-------------------- */

@media (max-width: 860px) {
  .works-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .howto-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

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

  .nav {
    display: none;
  }

  .fixed-side-widget {
    display: none;
  }
}
