/* =====================
Order Service page
※ functions.php で読み込み例：
wp_enqueue_style('acero-orderservice', get_theme_file_uri('assets/css/orderservice.css'), [], '1.0');
===================== */

:root {
  --os-ink: #28332e;
  --os-dim: #7a857f;
  --os-bg: #D8DAD2;
}

/* ベース：order 共通 */
.order.order-service {
  color: var(--os-ink);
  background: #D8DAD2;
  font-family: "A-OTF Shuei Mincho Pro", "AOTFShueiMinchoPro", "Hiragino Mincho ProN", "Yu Mincho", "HGS明朝E", "MS Mincho", serif;
}
.order.order-service img {
  height: auto;
  border: none;
  outline: none;
  box-shadow: none;
  width: 100%;
}
.order.order-service h3{
  font-family:"Noto Sans JP", system-ui, -apple-system, BlinkMacSystemFont,
               "Hiragino Sans", "Yu Gothic UI", "游ゴシック体", sans-serif;
  font-weight: 400;
}
.order.order-service h4{
  font-size: 14px;
  margin-bottom: 0;
}
.order.order-service p{
  font-size: 14px;
  margin-block-start: 0;
  margin-block-end: 2em;
}

/* =============== HERO =============== */

.os-hero {
  position: relative;
  min-height: clamp(360px, 55vw, 520px);
  background-position: center;
  background-size: cover;
  background-repeat: no-repeat;
  display: grid;
  place-items: center;
  color: #fff;}

.os-hero__overlay {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0,0,0,.25), rgba(0,0,0,.45));
}

.os-hero__inner {
  position: relative;
  text-align: center;
  max-width: min(800px, 88vw);
  padding: 56px 20px;
}

.os-hero__eyebrow {
  font-size: 42px;
  letter-spacing: .35em;
  margin-bottom: 0;
  letter-spacing: 6px;
}

.os-hero__title {
  letter-spacing: .35em;
  margin-bottom: 20px;
  margin-top: 0;
}

.os-hero__lead {
  font-size: 13px;
  line-height: 2;
  width: 30vw;
  margin-top: 4vw !important;
}

/* =============== SECTION BASE =============== */

.os-section {
  margin: 80px 10vw;
}

.os-section__head {
  margin-bottom: 32px;
}

.os-section__title {
  font-size: 42px;
  letter-spacing: 1px;
  color: #775A0B;
  margin-bottom: 0;
}

.os-section__subtitle {
  font-size: 14px;
  margin-top: -15px;
  font-family:"Noto Sans JP", system-ui, -apple-system, BlinkMacSystemFont,
               "Hiragino Sans", "Yu Gothic UI", "游ゴシック体", sans-serif;
}

/* =============== BLOCK BASE =============== */

.os-block + .os-block {
  margin-top: 56px;
}
.os-block {
  border-bottom: solid 1px #000000;
  padding-bottom: 3vw;
}
.os-block:last-child {
  border-bottom: none;
  padding-bottom: 0; /* 必要なら余白も消す */
}
.os-block__title {
  font-size: 18px;
  margin-bottom: 0;
}

.os-block__lead {
  font-size: 12px;
  line-height: 1.8;
  color: #000;
  margin-bottom: 50px;
  margin-top: 0;
}

/* =============== SHAPES =============== */

.os-shapes {
  display: grid;
  grid-template-columns: repeat(5, minmax(80px, 1fr));
  gap: 18px;
}

.os-shape {
  font-size: 11px;
  text-align: center;
}

.os-shape__frame {
  background: #D8DAD2;
  padding: 14px 10px;
  margin-bottom: 8px;
}

.os-shape__frame img {
  display: block;
  margin: 0 auto;
  width: 100%;
  height: auto;
}

/* =============== MATERIALS GRID =============== */

.os-material-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(80px, 1fr));
  gap: 20px;
}

.os-material-grid--small {
}

.os-material {
  text-align: center;
  font-size: 14px;
}

.os-material__thumb {
  width: 100%;
  padding-top: 100%;
  position: relative;
  margin-bottom: 8px;
  background: #ddd;
}

.os-material__thumb img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* =============== PRICE =============== */

.os-price__intro {
  font-size: 12px;
  color: #000;
  line-height: 1.9;
  margin-bottom: 32px;
}

.os-price-cards {
  display: grid;
  grid-template-columns: repeat(2, minmax(260px, 1fr));
  gap: 40px;
}

.os-price-card {
  background: #D8DAD2;
  padding: 24px 24px 28px;
}

.os-price-card__plan {
  font-size: 18px !important;;
  margin-bottom: 10px;
  text-align: center;
}

.os-price-card__image {
  padding: 12px 8px;
  margin-bottom: 16px;
  text-align: center; 
  max-width:255px;
  margin: 0 auto 16px;
}

.os-price-card__image img {
  display: block;
  width: 100%;
  height: auto;
  display: inline-block;
}

.os-price-card__list {
  font-size: 16px;
  margin: 0 0 16px;
}

.os-price-row {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 0;
  border-bottom: 1px solid #7f7a7a;
}

.os-price-row dt {
  flex: 1 1 auto;
}

.os-price-row dd {
  flex: 0 0 auto;
  white-space: nowrap;
}

.os-price-card__total {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
  font-size: 16px;
  align-items: baseline;
  border-bottom: 1px solid #7f7a7a;
}
.os-price-card__num {
  font-size: 26px;
}
.os-price-card__total strong {
  font-size: 14px;
}

.os-price__note {
  margin-top: 18px;
  font-size: 10px;
  color: #000;
  line-height: 1.7;
}
/* =====================================
   768px 以下：ORDER SERVICE（スマホ）
   ===================================== */
@media screen and (max-width: 768px) {

  /* ベース余白をスマホ幅に合わせる */
  .os-section {
    margin: 60px 6vw;
  }

  .order.order-service p {
    font-size: 14px;
    line-height: 1.9;
  }

  /* ========= HERO ========= */
  .os-hero {
    min-height: 360px;
    place-items: end flex-start;      /* 画面下寄り＋左寄せ */
    background-size: 180% auto;      /* 画像を拡大（数字を増やすほどアップ） */
    background-position: center 30%; /* 見せたい位置に合わせて調整 */
  }

  .os-hero__inner {
    max-width: 100%;
    padding: 32px 8vw 40px;
    text-align: center;
  }

  .os-hero__eyebrow {
    font-size: 28px;
    letter-spacing: .1em;
  }

  .os-hero__title {
    font-size: 12px !important;
    letter-spacing: .26em;
    margin: 0 0 12px;
  }

  .os-hero__lead {
    width: 100%;
    font-size: 11px;
    margin-top: 4px !important;
    line-height: 1.9;
  }

  /* ========= セクション見出し ========= */
  .os-section__head {
    margin-bottom: 24px;
  }

  .os-section__title {
    font-size: 32px;
    letter-spacing: 0;
    line-height: 1.1;
  }

  .os-section__subtitle {
    font-size: 11px;
    margin-top: -6px;
  }

  /* ========= BLOCK ========= */
  .os-block + .os-block {
    margin-top: 40px;
    border-bottom: solid 1px #000000;
  }

  .os-block {
    padding-bottom: 24px;
  }

  .os-block__title {
    font-size: 18px;
    margin-bottom: 4px;
  }

  .os-block__lead {
    font-size: 11px;
    margin-bottom: 24px;
  }

  /* ========= SHAPES（間取りパターン） ========= */
  .os-shapes {
    grid-template-columns: repeat(2, minmax(120px, 1fr));
    gap: 20px;
  }

  .os-shape {
    font-size: 14px;
  }

  .os-shape__frame {
    padding: 12px 8px;
    margin-bottom: 0;
  }

  /* ========= MATERIALS ========= */
  .os-material-grid {
    grid-template-columns: repeat(2, minmax(120px, 1fr));
    gap: 18px;
  }

  .os-material {
    font-size: 14px;
  }

  /* ========= PRICE ========= */
  .os-price__intro {
    font-size: 11px;
    margin-bottom: 24px;
  }

  .os-price-cards {
    grid-template-columns: 1fr;   /* 1列縦並び */
    gap: 32px;
  }

  .os-price-card {
    padding: 20px 0 24px;
  }

  .os-price-card__plan {
    font-size: 16px !important;
    margin-bottom: 8px;
  }

  .os-price-card__image {
    max-width: 220px;
    margin: 0 auto 14px;
    padding: 10px 8px;
  }

  .os-price-card__list {
    font-size: 14px;
    margin: 0 0 12px;
    font-weight: 600;
  }

  .os-price-row {
    padding: 8px 0;
    gap: 8px;
    align-items: center; 
  }
  .os-price-row dd{
    font-size: 18px;
    margin: 0;
  }

  .os-price-card__total {
    font-size: 14px;
  }

  .os-price-card__num {
    font-size: 22px;
  }

  .os-price__note {
    font-size: 10px;
    margin-top: 14px;
  }
}

