/* ===== FV ===== */
.fv{
  position: relative;
}

.fv__media{
  position: relative;
}

.fv__media img{
  width: 100%;
  height: auto;   /* ← これ重要 */
  display: block;
}

/* 文字ボックス：左寄せ＋縦中央 */
.fv__content{
    position: absolute;
    width: clamp(280px, 52vw, 700px);
    left: clamp(16px, 5vw, 64px);
    top:32%;
    transform: translateY(-50%);
    padding: 30px;
    z-index: 2;
    background: rgba(255,255,255,.85);
    backdrop-filter: blur(2px);
}

.fv__title{
  margin: 0 0 10px;
  font-weight: 700;
  font-size: clamp(20px, 2.2vw, 26px);
  line-height: 1.5;
}

.fv__lead{
  margin: 0;
  font-size: 14px;
  line-height: 1.9;
}

/* ===== About ===== */
.about{
  position: relative;
  background: #fff;
  padding: 110px 0 0; /* 下の街並みは別枠で敷く */
}

.about__inner{
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 24px 80px;
}

.about__head{
  text-align: center;
  margin-bottom: 60px;
}

.about__title{
  font-size: clamp(24px, 3.2vw, 44px);
  font-weight: 800;
  letter-spacing: .02em;
}

.about__sub{
  margin-top: 10px;
  font-size: 16px;
  font-weight: 600;
}

/* 3カラム */
.about__grid{
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px;
  align-items: start;
}

/* カード */
.about-card{
  position: relative;
  border: 1px solid #d9d9d9;
  padding: 26px 26px 34px;
  min-height: 270px;
  background: #fff;
  overflow: hidden;
}

/* 右下の薄い番号 */
.about-card__no{
  position: absolute;
  right: -8px;
  bottom: -8px;
  font-size: 140px;
  font-weight: 800;
  line-height: 1;
  color: rgba(0,0,0,.06);
  letter-spacing: .02em;
  pointer-events: none;
}

/* 見出し（英＋日） */
.about-card__ttl{
  margin: 0 0 18px;
  line-height: 1.05;
}

.about-card__en{
  display: block;
  font-size: 58px;
  font-weight: 900;
  letter-spacing: .02em;
}

.about-card__jp{
  display: block;
  font-size: 44px;
  font-weight: 900;
  margin-top: 6px;
}

.about-card__text{
  margin: 0;
  font-size: 15px;
  line-height: 2.0;
  max-width: 26em;
}

/* 下の街並み */
.about__city img{
  width: 100%;
  height: auto;
  display: block;
}

/* ===== Service Section ===== */
.service{
  position: relative;
  background: #f4f4f4;
  padding: 150px 0 100px;
  overflow: hidden;
}

/* 右上の薄い背景文字 */
.service::before{
  content: "TAG HOUSE SERVICE";
  position: absolute;
  top: 0;          /* ← ここを0に */
  right: 0;        /* -20pxも一旦やめる */
  font-weight: 700;
  font-size: clamp(48px, 7vw, 110px);
  color: rgba(255,255,255,.55);

  pointer-events: none;
  user-select: none;
  white-space: nowrap;
  z-index: 0;
}

.service__inner{
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
  position: relative;
  z-index: 1;
}

/* 見出しブロック */
.section-head{
  margin-bottom: 60px;
}
.section-head__title{
  margin: 0 0 50px;
  font-size: clamp(42px, 3.2vw, 60px);
  font-weight: 800;
}
.section-head__sub{
  margin: 0;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: .06em;
}

/* ===== Block ===== */
.service-block{
  background: transparent;
}

/* 上段：2カラム（右465px固定） */
.service-block__main{
  display: grid;
  grid-template-columns: 1fr 465px;
  gap: 40px;
  align-items: start;
}

/* 左テキスト */
.service-block__label{
  margin: 0 0 12px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .06em;
}
.service-block__title{
  margin: 0 0 22px;
  font-size: clamp(30px, 2.6vw, 42px);
  font-weight: 800;
}
.service-block__lead{
  margin: 0 0 18px;
  font-size: 25px;
  font-weight: 700;
  line-height: normal;
}
.service-block__text{
  margin: 0;
  line-height: 2.1;
  max-width: 30em;
}

/* 右画像：465px */
.service-block__visual{
  margin: 0;
}
.service-block__visual img{
  width: 465px;
  max-width: 100%;
  height: auto;
  display: block;
}

/* 下3枚：PCでは各350px */
.service-block__thumbs{
  margin-top: 44px;

  display: flex;
  justify-content: space-between; /* 350px×3を両端揃え */
  gap: 0; /* PCは指定がないので0、必要なら後で */
}

.service-block__thumb{
  margin: 0;
  width: 350px;
  max-width: 100%;
}
.service-block__thumb img{
  width: 100%;
  height: auto;
  display: block;
}

/* 不動産事業：背景 */
.service--realestate{
  background: #e8e8e8;
}

/* 左右反転（PC） */
.service-block--reverse .service-block__main{
  grid-template-columns: 465px 1fr;
  gap: clamp(20px, 12vw, 120px);
}

/* 縦の TAG HOUSE（右上） */
.service--realestate::before{
  content: "TAG HOUSE";
  position: absolute;
  top: 18px;
  right: 0;

  writing-mode: vertical-rl;
  text-orientation: mixed;

  font-weight: 900;
  letter-spacing: .12em;
  font-size: clamp(36px, 5vw, 62px);
  color: rgba(255,255,255,.55);

  pointer-events: none;
  user-select: none;
}

/* 貸事務所・貸店舗：背景 */
.service--office{
  position: relative; 
  background: #f4f4f4;
}

/* 左上の縦TAG HOUSE（背景文字） */
.service--office::before{
  content: "TAG HOUSE";
  position: absolute;
  top: 18px;
  left: 0;
  right: auto;
  writing-mode: vertical-rl;
  text-orientation: mixed;

  font-weight: 900;
  letter-spacing: .12em;
  font-size: clamp(36px, 5vw, 72px);
  color: rgba(255,255,255,.55);

  pointer-events: none;
  user-select: none;
  white-space: nowrap;

  z-index: 0;
}

/* コンテンツを前面に */
.service--office .service__inner{
  position: relative;
  z-index: 1;
}

/* ===== Event（イベント・ケータリング）専用 ===== */

.service--event{
  background: #e8e8e8;
}

/* 右端の縦「TAG HOUSE」 */
.service--event::before{
  content: "TAG HOUSE";
  position: absolute;
  top: 18px;
  right: 0;

  writing-mode: vertical-rl;
  text-orientation: mixed;

  font-weight: 900;
  letter-spacing: .12em;
  font-size: clamp(36px, 5vw, 64px);
  color: rgba(255,255,255,.55);

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

/* コンテンツを前面に */
.service--event .service__inner{
  position: relative;
  z-index: 1;
}

/* reverseの影響をイベントだけ打ち消す（画像左・文章右） */
.service--event .service-block--reverse{
  display: grid;
  grid-template-columns: 465px 1fr;
  gap: clamp(20px, 12vw, 120px);
  align-items: start;
}

/* 念のため順序リセット */
.service--event .service-block__visual{
  order: 0;
}
.service--event .service-block__content{
  order: 0;
}

/* ===== Event gallery（下3枚） ===== */
.service-gallery{
  margin-top: 44px;
  display: flex;
  justify-content: space-between;
  gap: 0;
}

.service-gallery__item{
  margin: 0;
  width: 350px;
  max-width: 100%;
}

.service-gallery__item img{
  width: 100%;
  height: auto;
  display: block;
}

/* ワイン：背景 */
.service--wine{
  position: relative;
  background: #e2d5d5;
}

.service--wine .service__inner{
  position: relative;
  z-index: 1;
}/* ワイン：背景 */
.service--wine{
  position: relative;
  background: #e2d5d5;
}

/* 左上の縦（背景文字） */
.service--wine::before{
  content: "TAG FOODS";
  position: absolute;
  top: 18px;
  left: 0;
  right: auto;

  writing-mode: vertical-rl;
  text-orientation: mixed;

  font-weight: 900;
  letter-spacing: .12em;
  font-size: clamp(36px, 5vw, 72px);
  color: rgba(255,255,255,.35);

  pointer-events: none;
  user-select: none;
  white-space: nowrap;

  z-index: 0;
}

.service--wine .service__inner{
  position: relative;
  z-index: 1;
}

/* ===== Company ===== */
.company{
  position: relative;
  background: #fff;
  padding: 110px 0 0px;
  overflow: hidden;
}

/* 背景の薄い COMPANY */
.company::before{
  content: "COMPANY";
  position: absolute;
  top: -10px;
  left: 50%;
  transform: translateX(-50%);
  font-weight: 900;
  letter-spacing: .08em;
  font-size: clamp(72px, 10vw, 160px);
  color: rgba(0,0,0,.04);
  white-space: nowrap;
  pointer-events: none;
  user-select: none;
  z-index: 0;
}

.company__inner{
  position: relative;
  z-index: 1;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

.company__head{
  text-align: center;
  margin-bottom: 70px;
}

.company__en{
  margin: 0 0 8px;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: .08em;
}

.company__title{
  margin: 0;
  font-size: clamp(26px, 3.2vw, 44px);
  font-weight: 900;
}

/* table */
.company__table-wrap{
  display: flex;
  justify-content: center;
}

.company-table{
  width: min(860px, 100%);
  border-collapse: collapse;
  background: #fff;
  border: 1px solid #cfcfcf;
}

.company-table th,
.company-table td{
  border: 1px solid #cfcfcf;
  padding: 22px 26px;
  font-size: 14px;
  line-height: 1.9;
  vertical-align: middle;
}

.company-table th{
  width: 210px;
  font-weight: 700;
  text-align: center;
  white-space: nowrap;
  background: rgba(0,0,0,.02);
}

/* ===== Footer ===== */
.site-footer{
  background: #f4f4f4;
  padding: 100px 0 60px;
  text-align: center;
}

.site-footer__inner{
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

.site-footer__logo{
  display: flex;
  justify-content: center;
  margin-bottom: 40px;
}

.site-footer__logo img{
  display: block;
  width: 100px;
  height: auto;
}

.site-footer__info{
  margin-bottom: 50px;
  font-size: 14px;
  line-height: 2;
}

.site-footer__copy{
  font-size: 13px;
  letter-spacing: .04em;
}

.company-map__inner{
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

.company-map{
  padding: 80px 0;
}

/* ===== SP ===== */
@media (max-width: 768px){

    .fv{
    min-height: 520px;
    position: relative;
    }

    .fv__content{
    width: 87%;           /* ← 画面の80% */
    max-width: none;      /* ← 700px制限を解除 */
    left: 0;
    top: 30%;
    text-align:left;
    padding: 20px;

    }

    .fv__title{
    margin: 0;
    font-size: clamp(22px, 2.2vw, 26px);

    }

    /* SPは説明文を消す */
    .fv__lead{
    display: none;
    }
    .fv__media{
    position: relative;
    }

    .fv__media img{
    height: auto;        /* ← これが重要 */
    object-fit: contain; /* もしくは削除でもOK */
    }
    .about{
    padding-top: 70px;
    }

    .about__inner{
    padding: 0 16px 50px;
    }

    .about__grid{
    grid-template-columns: 1fr;
    gap: 18px;
    }

    .about-card{
    min-height: auto;
    }

    .about-card__en{
    font-size: 54px;
    }

    .about-card__jp{
    font-size: 38px;
    }

    .about-card__no{
    font-size: 120px;
    }

    .service{
    padding: 40px 0 0;
    }
    .section-head{
    margin-bottom: 30px;
    }

    .service__inner{
    padding: 0 16px;
    }

    /* SP：文章→右画像（下） */
    .service-block__main{
    grid-template-columns: 1fr;
    gap: 18px;
    }
    .service-block__visual{
    order: 2;
    }
    .service-block__body{
    order: 1;
    }

    /* SP：3枚は横並びのまま、余白ゼロで全幅 */
    .service-block__thumbs{
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0;
    margin-top: 26px;

    /* innerの左右padding分を相殺して“画面いっぱい”に */
    margin-left: -16px;
    margin-right: -16px;
    }

    .service-block__thumb{
    width: auto; /* 固定350px解除 */
    }

    .service-block__thumb img{
    width: 100%;
    height: 100%;
    object-fit: cover; /* 余白ゼロで見せたい時に安定 */
    aspect-ratio: 350 / 220; /* 必要なら：見た目を揃える */
    }

    .service-block--reverse .service-block__main{
    grid-template-columns: 1fr;
    }

    /* SPも「文章上・画像下」に統一する場合 */
    .service-block--reverse .service-block__visual{ order: 2; }
    .service-block--reverse .service-block__body{ order: 1; }

    .company{
    padding: 40px 0 0;
    }
    .company__inner{
    padding: 0 16px;
    }
    .company__head{
    margin-bottom: 40px;
    }

    .company-table th,
    .company-table td{
    padding: 16px 14px;
    font-size: 13px;
    }

    .company-table th{
    width: 34%;
    white-space: normal;
    }
    .company-map{
    padding: 20px 0 0;
    }
    .company-map__inner{
    padding: 0;
    }
    .site-footer{
    padding: 50px 0 30px;
    }
    .service--office::before{
    left: auto;
    right: 0;
    }
    .service--wine::before{
    left: auto;
    right: 0;
    }
  /* イベントはSPでも自然な縦並び */
  .service--event .service-block--reverse{
    grid-template-columns: 1fr;
    gap: 18px;
  }

  .service--event .service-block__visual{
    order: 2;   /* 画像を下に */
  }

  .service--event .service-block__content{
    order: 1;   /* 文章を上に */
  }

  /* 下3枚を横並びフル幅 */
  .service-gallery{
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0;
    margin-top: 26px;

    margin-left: -16px;
    margin-right: -16px;
  }

  .service-gallery__item{
    width: auto;
  }

  .service-gallery__item img{
    width: 100%;
    height: 100%;
    object-fit: cover;
    aspect-ratio: 350 / 220;
  }
}
