/* OVJ 新下関｜住宅取得支援LP
   既存common.cssへの影響を避けるため .ovj-subsidy-lp 配下に限定 */
#subsidy #mainContentsBox{max-width:none;width:100%;padding:0;margin-top:12.5rem;overflow:hidden;}
#subsidy article{background:#fff;}
.ovj-subsidy-lp,.ovj-subsidy-lp *{box-sizing:border-box;}
.ovj-subsidy-lp{--navy:#003a79;--blue:#0a4a8c;--gold:#b68a26;--ink:#191919;--line:#d7e0ee;--brown:#4b3b2b;color:var(--ink);font-family:"Yu Mincho","Hiragino Mincho ProN","Noto Serif JP",serif;line-height:1.75;background:linear-gradient(135deg,#eaf8ff 0%,#eef4ff 52%,#fff0f4 100%);}
.ovj-subsidy-lp img{display:block;max-width:100%;height:auto; float: left;}
.ovj-subsidy-lp a{text-decoration: none;}
.ovj-container{width:min(980px,calc(100% - 40px));margin:0 auto;}
.ovj-container--narrow{width:min(1100px,calc(100% - 40px));}
.ovj-section{padding:3% 0;}
.ovj-section--pink{background:rgba(255,244,248,.4);}
.sp-only{display:none;}

.ovj-hero{
  position:relative;
  height:clamp(560px,52vw,800px);
  min-height:0;
  margin:0;
  padding:0;
  background:#f4fbff url('../img/subsidy/sora01.jpg') center center/cover no-repeat;
  overflow:hidden;
  border-bottom:1px solid rgba(0,58,121,.06);
}
.ovj-hero:after{
  content:"";
  position:absolute;
  left:0;
  right:0;
  bottom:0;
  height:110px;
  background:linear-gradient(to top,rgba(255,255,255,.86),transparent);
  pointer-events:none;
  z-index:1;
}
.ovj-hero__inner{
  position:relative;
  z-index:1;
  width:100%;
  max-width:none;
  height:100%;
  min-height:0;
  margin:0;
  display:block;
  overflow:hidden;
}
.ovj-hero__copy{
  position:relative;
  z-index:3;
  width:58%;
  left:1vw;
  height:100%;
  padding:clamp(60px,5vw,90px) 20px clamp(54px,5vw,82px) clamp(28px,6vw,110px);
  display:flex;
  flex-direction:column;
  align-items:center;
  justify-content:center;
  text-align:center;
}
.ovj-limited{
  position:absolute;
  top:clamp(28px,3.5vw,58px);
  left:clamp(26px,7vw,132px);
  background:#d5bc68;
  color:#1d1b16;
  padding:12px 14px 24px;
  font-size:13px;
  line-height:1.2;
  clip-path:polygon(0 0,100% 0,100% 80%,50% 100%,0 80%);
  letter-spacing:.12em;
}
/* ========================================
   期間限定バッジ
======================================== */

#subsidy .ovj-limited {
    position: absolute;

    /* ヘッダー直下 */
    top: 5px;

    /* MV左端からの位置 */
    left: clamp(30px, 6vw, 110px);
    width: 86px;
    height: 112px;
    display: flex;
    align-items: center;
    justify-content: center;

    /* 外側の濃い枠 */
    background: #3c3225;

    /* 盾型 */
    clip-path: polygon(
        0 0,
        100% 0,
        100% 76%,
        50% 100%,
        0 76%
    );

    z-index: 20;
    padding: 3px;
    box-sizing: border-box;
}


/* 1本目と2本目の間の金色部分 */
#subsidy .ovj-limited::before {
    content: "";
    position: absolute;
    inset: 0;
    background: #d7bd6b;
    clip-path: polygon(
        0 0,
        100% 0,
        100% 76%,
        50% 100%,
        0 76%
    );
    z-index: 1;
}


/* 内側の2本目のライン */
#subsidy .ovj-limited::after {
    content: "";
    position: absolute;
    inset: 7px;
    background: #3c3225;
    clip-path: polygon(
        0 0,
        100% 0,
        100% 76%,
        50% 100%,
        0 76%
    );
    z-index: 2;
}


/* バッジ内部 */
#subsidy .ovj-limited__inner {
    position: absolute;
    inset: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding-bottom: 14px;
    background: #d7bd6b;
    color: #352b20;
    font-family:
        "Yu Mincho",
        "YuMincho",
        "Hiragino Mincho ProN",
        serif;

    font-size: 20px;
    font-weight: 500;
    line-height: 1.25;
    letter-spacing: 0.08em;
    text-align: center;
    clip-path: polygon(
        0 0,
        100% 0,
        100% 76%,
        50% 100%,
        0 76%
    );
    z-index: 3;
}
@media(max-width:420px){
  #subsidy .ovj-limited__inner {font-size:12px;}
  #subsidy .ovj-limited {width: 68px; height: 80px;}
  .ovj-hero__amount strong{padding-right:3px;}
}

/* MV文字の視認性を高める */
#subsidy .ovj-hero__copy {
  text-shadow:
    0 0 2px rgba(255, 255, 255, 1),
    0 0 6px rgba(255, 255, 255, 0.95),
    0 0 12px rgba(255, 255, 255, 0.75);
}

.ovj-kicker{font-size:30px;letter-spacing:.08em; font-weight:bold;}
.ovj-hero h1{
  font-size:clamp(36px,3vw,68px);font-weight:500;line-height:1.35;letter-spacing:.04em;margin:0;font-weight:bold;
}
.ovj-hero__amount{margin:6px 0 0;color:#111;font-size:60px;line-height:1.05;font-weight:bold;}
.ovj-hero__amount strong{font-size:100px;font-weight:700;color:#b28215;padding-right:10px;}
.ovj-hero__sub{font-size:60px;line-height:1em;margin:5px 0 20px;font-weight:bold;}
.ovj-hero__lead{font-size:24px;letter-spacing:.06em;font-weight:bold;}

.ovj-hero__visual{
  position:absolute;
  top:0;
  right:0;
  bottom:0;
  width:65%;
  height:100%;
  z-index:2;
  display:flex;
  align-items:flex-start;
  justify-content:flex-end;
  margin:0;
  padding:0;
  overflow:hidden;
  pointer-events:none;
  font-weight:bold;
}
.ovj-hero__visual img{
  display:block;
  width:auto;
  height:100%;
  max-width:none;
  max-height:none;
  margin:0;
  padding:0;
  object-fit:contain;
  object-position:right top;
  filter:none;
  opacity:0;
  transform:translateX(45px);
  animation:ovjMvBuildingIn 1.05s cubic-bezier(.2,.7,.2,1) .12s forwards;
}
@keyframes ovjMvBuildingIn{
  to{opacity:1;transform:translateX(0);}
}

.ovj-intro__lead{text-align:center;font-size:1.6em;line-height:2em;margin:0 0 58px;}
.ovj-section-kicker{text-align:center;font-size:13px;color:var(--navy);margin:0;letter-spacing:.14em;}
.ovj-section-kicker img{float: none; margin: 0 auto;}
.ovj-section-kicker{}
.ovj-section-title{
  text-align:center;font-size:34px;font-weight:500;letter-spacing:.12em;margin:2px 0 28px; font-weight: bold;
}
.ovj-period__row{display:flex;align-items:stretch;justify-content:center;gap:18px;}
.ovj-period__badge{
  width:150px;
  aspect-ratio:1;
  border-radius:50%;
  display:grid;
  place-content:center;
  text-align:center;
  background:var(--navy);
  color:#fff;
  font-size:22px;
  line-height:1.35;
  border:4px double rgba(255,255,255,.75);
  letter-spacing: 1px;
}
.ovj-period__badge small{display:block;font-size:11px;margin-top:4px;}
.ovj-period__date{width:230px;border:2px solid var(--navy);background:#fff;text-align:center;}
.ovj-period__date>span{display:block;background:var(--navy);color:#fff;padding:6px;font-size:13px;}
.ovj-period__date strong{display:block;padding:25px 8px;font-size:17px;font-weight:500;line-height:1.4;}
.ovj-period__date em{font-style:normal;font-size:28px;color:var(--navy);}
.ovj-note{text-align:center; margin-top:14px; font-size: 12px;}

.ovj-guide{margin-top:7%;}
.ovj-heading-lines{
  display:flex;align-items:center;justify-content:center;gap:22px;font-size:36px; text-align:center;margin-bottom:4px; font-weight:bold; letter-spacing: 2px;
}
.ovj-heading-lines:before,.ovj-heading-lines:after{content:"";width:100px;height:1px;background:#424242;}
.ovj-guide>p{text-align:center;font-size:16px; margin:0 0 24px;}
.ovj-guide__cards{display:grid;grid-template-columns:1fr 1fr;gap:28px;}
.ovj-guide-card{display:grid;grid-template-columns:50% 50%;align-items:stretch;background:#fff;color:#111;padding:18px;box-shadow:0 4px 16px rgba(0,0,0,.06);transition:.25s;}
.ovj-guide-card:hover{transform:translateY(-3px);box-shadow:0 10px 22px rgba(0,0,0,.1);}
.ovj-guide-card img,.ovj-guide-card__placeholder{width:100%;height:150px;object-fit:cover;}
.ovj-guide-card__placeholder{display:grid;place-items:center;background:linear-gradient(135deg,#e8edf3,#b8c3d1);color:#fff;font:700 24px/1 sans-serif;letter-spacing:.18em;position:relative;overflow:hidden;}
.ovj-guide-card__placeholder:before{content:"";position:absolute;width:170px;height:90px;border:2px solid rgba(255,255,255,.7);transform:skewY(-16deg);}
.ovj-guide-card>div:last-child{padding:0 0 0 18px;text-align:center;display:flex;flex-direction:column;justify-content:center;}
.ovj-guide-card span{font-size:16px;}
.ovj-guide-card strong{font-size:26px ;font-weight:500;line-height:1em; margin:4px 0;}
.ovj-guide-card small{font-size:14px;line-height:1.3em; letter-spacing:1px;}
.ovj-guide-card em{font-style:normal;background:#001a62;color:#fff;font-size:12px;padding:5px 8px;margin-top:10px;}

.ovj-detail .ovj-heading-lines{margin-bottom:3%;}
.ovj-card{background:#fff;padding:50px 64px;box-shadow:0 5px 20px rgba(39,63,91,.06);}
.ovj-target-head{display:grid;grid-template-columns:190px 1fr;align-items:center;background:#e5ebf5;min-height:42px;}
.ovj-target-head strong{
  background:linear-gradient(105deg,#003180 0%,#003180 86%,transparent 87%);
  color:#fff;
  height:100%;
  display:flex;
  align-items:center;
  padding:0 25px;
  font-size:1.5em;
  letter-spacing:.18em;
  font-weight:500;
}
.ovj-target-head span{padding:15px 20px; text-align: left;}
.ovj-target-text{margin:22px 0;}
.ovj-alert{
  display:grid;
  grid-template-columns:55px auto 1fr;
  align-items:center;gap:10px;
  border:1px solid #bf850e;
  background:#fffdf6;
  padding:15px 5%;
  color:#594613;
}
.ovj-alert>span{
  width:50px;
  height:50px;
  border-radius:50%;
  background:#c89412;
  color:#fff;
  display:grid;
  place-items:center;
  font:700 20px/1 sans-serif;
  padding: 10px;
}
.ovj-alert strong{
  font-size:1.1em;color:#aa7400;border-right: 2px solid #aa7400; padding: 0 20px 0 0;line-height: 4em;
}
.ovj-alert p{margin:0 0 0 10px;line-height:1.55; text-align: left;}
.ovj-alert a{justify-self:end;background:#b58416;color:#fff !important;padding:7px 14px;white-space:nowrap;}
.ovj-alert--map{grid-template-columns:55px auto 1fr auto;}
.ovj-subheading{text-align:center;margin:44px 0 25px;}
.ovj-subheading>span{display:flex;align-items:center;justify-content:center;gap:18px;}
.ovj-subheading>span:before,.ovj-subheading>span:after{content:"";width:72px;height:1px;background:#c8c8c8;}
.ovj-subheading h3{font-size:32px;font-weight:500;letter-spacing:.1em;line-height:1.2;margin:8px 0;}
.ovj-subheading p{margin:0;}
.ovj-breakdown{display:grid;grid-template-columns:minmax(0,1.1fr) 42px minmax(0,.9fr) 42px minmax(160px,.6fr);align-items:center;gap:10px;}
.ovj-breakdown--move{grid-template-columns:minmax(0,1.55fr) 42px minmax(190px,.55fr);}
.ovj-table-head,.ovj-table-row{display:grid;grid-template-columns:1fr 90px 90px;align-items:stretch;}
.ovj-table-head{background:var(--navy);color:#fff;text-align:center;}
.ovj-table-head span{padding:7px 5px;border-right:1px solid rgba(255,255,255,.25);}
.ovj-table-row{border:1px solid var(--navy);border-top:0;min-height:94px;}

.ovj-table-row>span{
  padding:12px 7%;
  display:flex;
  align-items:center;
  font-size: 14px;
  text-align:left;
  border-right:1px solid var(--navy);
  line-height: 1.3em;
  font-weight: bold;
  letter-spacing: 1px;
  justify-content: center;
}

.ovj-table-row > strong.ovj-amount-noadd {flex-direction: column;}

.ovj-amount-noadd > span {
    display: flex;
    align-items: baseline;
    justify-content: center;
    line-height: 1;
}

.ovj-amount-noadd > em {
    display: block;
    font-style: normal;
    font-size: 12px;
    font-weight: 400;
    line-height: 1.3;
    color: #000;
    white-space: nowrap;
    font-weight: bold;

}


.ovj-table-row>strong{font-size:30px;font-weight:400;display:flex;align-items:center;justify-content:center;border-right:1px solid var(--navy);}
.ovj-table-row>strong:last-child{border-right:0;}
.ovj-table-row small,.ovj-service-box small,.ovj-add-box small{
  font-size:14px;margin-left:2px; font-weight: bold;margin-top: 5px;
}

.ovj-plus{width:38px;height:38px;border-radius:50%;display:grid;place-items:center;background:#423d35;color:#fff;font:700 26px/1 sans-serif;}
/* ========================================
   加算区分・加算額テーブル
======================================== */
.ovj-add-box {
  display:grid;
  grid-template-rows:auto repeat(3,1fr);
  border:1px solid var(--navy);
  background:#fff;
}

/* 見出し */
.ovj-add-title {
  display:grid;
  grid-template-columns:minmax(0,1.7fr) minmax(90px,1fr);
  padding:0;
  background:var(--navy);
  color:#fff;
  font-size:16px;
  font-weight:bold;
  line-height:1.3;
  text-align:center;
}

.ovj-add-title span {
  min-height:44px;
  padding:8px 10px;
  display:flex;
  align-items:center;
  justify-content:center;
}

.ovj-add-title span + span {
  border-left:1px solid rgba(255,255,255,.8);
}

/* 各行 */
.ovj-add-box dl {
  display:grid;
  grid-template-columns:minmax(0,1.7fr) minmax(90px,1fr);
  align-items:stretch;
  min-height:72px;
  margin:0;
  border-bottom:1px solid var(--navy);
}

.ovj-add-box dl:last-child {
  border-bottom:0;
}

/* 加算区分 */
.ovj-add-box dt {
  display:flex;
  align-items:center;
  padding:10px 18px;
  font-size:14px;
  font-weight:bold;
  line-height:1.45;
  text-align:left;
}

/* 加算額 */
.ovj-add-box dd {
  display:grid;
  grid-auto-flow:column;
  grid-auto-columns:max-content;
  place-content:center;
  align-items:end;
  margin:0;
  padding:8px 10px;
  border-left:1px solid var(--navy);
  font-size:30px;
  font-weight:400;
  line-height:1;
  white-space:nowrap;
}

.ovj-add-box dd small {
  margin-left:3px;
  font-size:14px;
  font-weight:bold;
  line-height:1.5;
}
.ovj-service-box{text-align:center;font-size:18px;line-height:1.55;border: 1px solid var(--navy);font-weight: bold;}
.ovj-service-box strong{display:block;font-size:32px;font-weight:400;color:#222;line-height: 1em;
    margin: 5px 0 -5px 0;}

.ovj-subheading span{font-size: 1.4em;margin: 0 3px 0 0;}
#mainContentsBox h3{font-weight: bold !important;}
.ovj-breakdown--move .ovj-service-box {
  align-self: stretch;
  box-sizing: border-box;
  align-content: center;
  padding: 20px 10px;
}

#mainContentsBox a{font-size: 14px !important; font-weight: bold; letter-spacing: 1px;}
.yudokuiki{text-align: left; font-size: 13px; margin-left: 20px; letter-spacing: 0.5px;}
.yudokuiki b{margin: 10px 0 0 10px; line-height: 2.2em;}

/* ========================================
   補助額内訳：3つの枠の高さを統一
======================================== */

@media screen and (min-width: 901px) {

  /* すべての項目をグリッドの高さまで伸ばす */
  #subsidy .ovj-breakdown--transfer {
    align-items: stretch;
  }

  /* 左側の表を中央の加算区分と同じ高さにする */
  #subsidy .ovj-breakdown--transfer .ovj-base-box {
    display: grid;
    grid-template-rows: auto 1fr;
  }

  #subsidy .ovj-breakdown--transfer .ovj-table-row {
    min-height: 0;
    height: 100%;
  }

  /* 右側のサービス枠も同じ高さにする */
  #subsidy .ovj-breakdown--transfer .ovj-service-box {
    align-self: stretch;
    align-content: center;
    box-sizing: border-box;
    padding: 20px 10px;
  }

  /* ＋マークは上下中央を維持 */
  #subsidy .ovj-breakdown--transfer .ovj-plus {
    align-self: center;
  }
}

/* ========================================
   ご契約締結前の流れ
======================================== */

.ovj-flow {
    background: rgba(255,255,255,.18);
}

.ovj-flow__lead {
    text-align: center;
    margin: 0 0 30px;
}


/* ========================================
   STEPカード全体
======================================== */
.ovj-step-bg{background-color: #FFF; padding: 5%;}
.ovj-flow__steps {
    list-style: none;
    padding: 0;
    margin: 0;

    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 28px;

    counter-reset: step;
}


/* ========================================
   各STEPカード
======================================== */

.ovj-flow__steps li {
    position: relative;

    min-height: 185px;

    border: 1px solid #0b4c98;
    background: #fff;

    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;

    text-align: center;
    color: #0b3e7d;

    padding: 25% 0;
}


/* ========================================
   STEP間の丸矢印
======================================== */

.ovj-flow__steps li:not(:last-child)::after {
    content: "→";
    position: absolute;

    /* カード間の中央へ配置 */
    right: -40px;
    top: 50%;
    transform: translateY(-50%);

    /* 丸 */
    width: 50px;
    height: 50px;
    border-radius: 50%;

    background: #0b4c98;
    color: #fff;

    /* 矢印を中央配置 */
    display: flex;
    align-items: center;
    justify-content: center;

    /* 矢印 */
    font-family: Arial, sans-serif;
    font-size: 15px;
    font-weight: 400;
    line-height: 1;

    z-index: 5;

    /* 念のため既存指定を解除 */
    box-shadow: none;
}


/* ========================================
   STEP表示
======================================== */

.ovj-flow__steps li > span {
    position: relative;

    display: inline-flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;

    width: 70px;
    height: 72px;

    font-family: sans-serif;
    font-size: 11px;
    line-height: 1;
    letter-spacing: .15em;

    color: #555;

    z-index: 1;
}


/* STEP背景の薄い丸 */

.ovj-flow__steps li > span::before {
    content: "";

    position: absolute;

    top: 0;
    left: 4px;

    width: 48px;
    height: 48px;

    background: #e8edf5;
    border-radius: 50%;

    z-index: -1;
}


/* STEP番号 01 / 02 / 03 / 04 */

.ovj-flow__steps li > span b {
    display: block;

    font-size: 30px;
    font-weight: 300;
    line-height: 1;

    letter-spacing: 0;

    color: #555;
}


/* ========================================
   STEPタイトル
======================================== */

.ovj-flow__steps strong {
    font-size: 20px;
    font-weight: 500;

    margin-bottom: 5px;
}


.ovj-mapcta{background:linear-gradient(120deg,#493d30,#574a3c);color:#fff;padding:36px 0;position:relative;overflow:hidden;}
.ovj-mapcta:after{content:"";position:absolute;inset:0;background:linear-gradient(165deg,transparent 0 48%,rgba(255,255,255,.025) 48% 54%,transparent 54%);}
.ovj-mapcta__inner{
  position:relative;
  z-index:1;
  display:grid;
  grid-template-columns:auto 1fr auto;
  gap:34px;
  align-items:center;
}
.ovj-mapcta img{
    width: 350px;
    height: 195px;
    max-width: none;
    object-fit: cover;
    flex-shrink: 0;
}
.ovj-mapcta h2{font-size:24px;font-weight:400;margin:0 0 6px;background:#fff;color:#2c241d;display:inline-block;padding:5px 8%;border-radius:5px;}
.ovj-mapcta p{margin:15px 0 0 0; font-size: 16px; line-height: 1.3em;}
.ovj-mapcta a{background:#fff;color:#4b3b2b;padding:11px 6%;font-size:12px;white-space:nowrap;}

.ovj-contact{background:#fff;text-align:center;}
.ovj-contact__buttons{display:flex;justify-content:center;gap:18px;}
.ovj-btn{min-width:270px;padding:15px 24px;color:#fff;font-size:13px;letter-spacing:.05em;transition:.2s;}
.ovj-btn:hover{opacity:.78;}.ovj-btn--request{background:linear-gradient(-75deg, #a18d7f, #d9c69c 50%, #a18d7f);}.ovj-btn--appointment{background:linear-gradient(-75deg, #391b09, #8e4418 50%, #391b09);}
.ovj-disclaimer{margin-top:34px;text-align:left;color:#727272;font-family:sans-serif;font-size:12px;line-height:1.65;}
.ovj-disclaimer p{margin:3px 0;}
.gaitoubt01{text-align: left;}

@media (max-width:1400px) and (min-width:1201px){
}
@media (max-width:1200px) and (min-width:961px){
  #subsidy .ovj-hero{height:clamp(540px,56vw,680px);}
  #subsidy .ovj-hero__copy{width:52%;padding-left:clamp(24px,5vw,70px);}
  #subsidy .ovj-hero__visual{width:56%;}
  #subsidy .ovj-hero h1{font-size:clamp(30px,3vw,38px);}
  #subsidy .ovj-hero__amount strong{font-size:clamp(56px,6vw,72px);}
}

@media(max-width:900px){
  .ovj-hero__amount strong{font-size:80px;}
  .ovj-hero__amount{font-size:45px;}
  .ovj-hero__sub{font-size:50px;}
  .ovj-hero__lead{font-size: 16px;}
  .ovj-guide-card small{font-size: 10px;}
  .ovj-guide-card strong{font-size: 18px;}
  .ovj-guide-card span{font-size: 11px;}
  .ovj-alert p{text-align: left;}
  .ovj-service-box{padding: 5%;}
  .ovj-card{padding:38px 28px}
  .ovj-breakdown,.ovj-breakdown--move{grid-template-columns:1fr}
  .ovj-plus{margin:auto;transform:rotate(0deg)}
  .ovj-mapcta__inner{grid-template-columns:auto 1fr}
  .ovj-mapcta a{grid-column:1/-1;justify-self:center}
}

/* タブレット縦・スマートフォン
   建物は別レイヤーのまま、MV右側に表示する */
@media(max-width:960px){
  #subsidy #mainContentsBox{
    max-width:none;
    width:100%;
    padding:0;
    margin-top:6rem;
    overflow:hidden;
  }

  #subsidy .ovj-hero{
    height:clamp(420px,92vw,560px);
    min-height:0;
    background-position:center top;
  }

  #subsidy .ovj-hero__inner{
    width:100%;
    height:100%;
    min-height:0;
    display:block;
    overflow:hidden;
  }

  #subsidy .ovj-hero__copy{
    width:68%;
    left:0vw;
    height:100%;
    padding:64px 0 38px 14px;
    align-items:center;
    justify-content:center;
    text-align:center;
  }

  #subsidy .ovj-limited{
    top:0;
    left:12px;
  }

  #subsidy .ovj-hero__visual{
    top:0;
    right:-7%;
    bottom:auto;
    width:62%;
    height:100%;
    display:flex;
    align-items:flex-start;
    justify-content:flex-end;
    overflow:visible;
  }

  #subsidy .ovj-hero__visual img{
    width:auto;
    height:100%;
    max-width:none;
    max-height:none;
    object-fit:contain;
    object-position:right top;
  }
  .ovj-mapcta p{font-size: 12px;}
    .ovj-mapcta h2{font-size:22px}
}

@media (min-width: 768px) and (max-width: 960px) {
  .ovj-hero__visual img{width: 130% !important;}
}

@media(max-width:767px){
  #subsidy #mainContentsBox{padding:0!important}
  .ovj-container,.ovj-container--narrow{width:min(100% - 28px,680px)}
  .sp-only{display:block}

  #subsidy .ovj-hero{
    height:clamp(390px,125vw,550px);
  }
  #subsidy .ovj-hero__copy{
    width:100%;
    padding-top:0;
    justify-content:center;
  }

  #subsidy .ovj-kicker{
    font-size:clamp(10px,3vw,14px);
    white-space:nowrap;
    margin-bottom:6px;
    margin-top: -240px;
  }
  #subsidy .ovj-hero h1{
    font-size:clamp(18px,5vw,24px);
    white-space:nowrap;
  }
  #subsidy .ovj-hero__amount{
    font-size:clamp(17px,4.8vw,22px);
    white-space:nowrap;
  }
  #subsidy .ovj-hero__amount strong{font-size:clamp(40px,11vw,54px);}
  #subsidy .ovj-hero__sub{
    font-size:clamp(19px,5.3vw,24px);
    margin:2%;
  }
  #subsidy .ovj-hero__lead{
    width:88%;
    font-size:clamp(8px,2.5vw,11px);
    line-height:1.7;
  }

  #subsidy .ovj-limited{
    top:0;
    left:8px;
    padding:8px 9px 17px;
    font-size:9px;
  }
  .ovj-note{font-size:12px;}

  /* 右側に確実に見せる。画像を左へ飛ばさない */
  #subsidy .ovj-hero__visual{
    width:70%;
    height:calc(100% - 64px);
    overflow:visible;
  }
  #subsidy .ovj-hero__visual img{
    width:auto;
    height:100%;
    max-width:none;
    max-height:none;
  }

.ovj-hero__visual picture,
.ovj-hero__visual img {
    display: block;
    width: 100%;
}

.ovj-hero__visual img {
    height: auto;
}


    #subsidy .ovj-hero__visual {
        position: absolute;
        top: 0;
        left: 0;
        right: auto;
        bottom: auto;

        width: 100%;
        height: 100%;

        display: block;
        overflow: hidden;
    }

    #subsidy .ovj-hero__visual picture {
        display: block;
        width: 100%;
        height: 100%;
    }

    #subsidy .ovj-hero__visual img {
        display: block;

        width: 100%;
        height: 100%;

        max-width: none;
        max-height: none;

        object-fit: cover;
        object-position: center bottom;
    }

  .ovj-alert strong{border-right: none; border-bottom: 2px solid #aa7400; line-height: 3em !important;}

  .ovj-add-box dt br{display: none;}
  .gaitoubt01{text-align: center;}


  .ovj-intro__lead{font-size:16px;margin:5%; line-height: 1.5em;}
  .ovj-section-title{font-size:28px}
  .ovj-period__row{gap:7px}
  .ovj-period__badge{width:92px;font-size:16px}
  .ovj-period__badge small{font-size:8px}
  .ovj-period__date{width:calc((100% - 106px)/2)}
  .ovj-period__date strong{font-size:12px; padding: 10px;}
  .ovj-period__date em{font-size:21px}

  .ovj-heading-lines{gap:12px;font-size:16px; letter-spacing: 0;}
  .ovj-guide>p{font-size:12px;}
  .ovj-heading-lines:before,.ovj-heading-lines:after{width:44px}
  .ovj-guide__cards{grid-template-columns:1fr;gap:14px}
  .ovj-guide-card{padding:10px}
  .ovj-guide-card img,.ovj-guide-card__placeholder{height:120px}
  .ovj-guide-card strong{font-size:19px}

  .ovj-card{padding:25px 16px}
  .ovj-target-head{grid-template-columns:105px 1fr}
  .ovj-target-head strong{font-size:15px;padding:0 15px}
  .ovj-target-head span{font-size:12px; padding:10px; text-align: left; line-height: 1.3em;}
  .ovj-target-text{font-size:12px}
  .ovj-alert,.ovj-alert--map{grid-template-columns:36px 1fr}
  .ovj-alert p{grid-column:1/-1;font-size: 12px;}
  .ovj-alert a{grid-column:1/-1;justify-self:stretch;text-align:center}
  .ovj-subheading h3{font-size:26px}
  .ovj-subheading p{font-size:12px; line-height: 1.5em;}

  .ovj-table-head,.ovj-table-row{grid-template-columns:1fr 100px 100px}
  .ovj-table-row>strong{font-size:23px}
  .ovj-table-row>span{font-size:14px;padding:20px}
  .ovj-add-box dt{font-size:13px}
  .ovj-service-box{padding:10px}

  .ovj-flow__steps{grid-template-columns:repeat(2,1fr);gap:12px}
  .ovj-flow__steps li{}
    .ovj-flow__steps {
        display: flex;
        gap: 12px;
        overflow-x: auto;
        scroll-snap-type: x mandatory;
        scroll-padding-left: 16px;
        padding: 0 15px;
        margin: 0;

        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
    }

    .ovj-flow__steps::-webkit-scrollbar {
        display: none;
    }

    .ovj-flow__steps li {
        flex: 0 0 82%;
        min-width: 82%;
        min-height: 280px;
        scroll-snap-align: start;
        scroll-snap-stop: always;
        margin: 0;
        padding: 10% 0;
    }
  
  .ovj-flow__steps li:after{display:none}

  .ovj-mapcta__inner{grid-template-columns:1fr;text-align:center}
  .ovj-mapcta img{width:100%;height:145px}
  .ovj-mapcta h2{font-size:17px}
  .ovj-mapcta a{grid-column:auto;justify-self:stretch}

  .ovj-contact__buttons{flex-direction:column}
  .ovj-btn{min-width:0;width:100%}
  .ovj-section-kicker img{width: 30px;}
  #mainContentsBox a{width: 100%; display: block;}
  
}

@media(max-width:420px){

    #subsidy .ovj-hero {
        position: relative;
        overflow: hidden;
        height: 500px; /* MVの高さ */
    }

    #subsidy .ovj-hero__inner {
        position: relative;
        height: 100%;
    }

    #subsidy .ovj-hero__visual {
        position: absolute;
        inset: 0;
        width: 100%;
        height: 100%;
        overflow: hidden;
    }

    #subsidy .ovj-hero__visual img {
        width: 100%;
        height: 100%;
        object-fit: cover;

        /* 画像の上側を基準に表示 */
        object-position: center top;
    }

  .ovj-guide-card{grid-template-columns:50% 50%}
  .ovj-guide-card>div:last-child{padding:10px}
  .ovj-guide-card span,.ovj-guide-card small{font-size:11px}
  .ovj-guide-card strong{font-size:18px}
  .ovj-period__badge{width:78px}
  .ovj-period__date{width:calc((100% - 92px)/2)}
  .ovj-flow__steps{grid-template-columns:1fr 1fr}
  .ovj-table-head,.ovj-table-row{grid-template-columns:1fr 85px 85px}
  .ovj-guide-card em{font-size: 10px;}
  .ovj-subheading span{font-size: 1em;}
  .ovj-hero__amount strong{padding-right: 4px;}

}


@media(prefers-reduced-motion:reduce){
  #subsidy .ovj-hero__visual img{
    animation:none;
    opacity:1;
    transform:none;
  }
}
/* スマホ：居住誘導区域の文章を横幅いっぱいに表示 */
@media screen and (max-width: 767px) {
  #subsidy .ovj-alert--map > .yudokuiki {
    grid-column: 1 / -1;
    width: 100%;
    min-width: 0;
    margin-left: 0;
    writing-mode: horizontal-tb;
    text-align: center;
  }
  .yudokuiki b{margin: 10px 0 0 -19px;}
  .ovj-flow__lead{font-size: 12px;margin: 0 5% 15px 5%;}
  /**.ovj-flow__steps li:not(:last-child)::after{display: none;}**/
  .ovj-period__badge{border-radius: 0;border: none;}
}