/* =========================================================
   page-company.css
   会社情報ページ専用（共通：asc-card / section-header は含めない）
   ========================================================= */


/* =========================================================
   代表メッセージ（rep-）
   ========================================================= */

.rep-wrap{
  position: relative;
  overflow: hidden;
  padding: 30px 20px 10px;
  display: grid;
  place-items: center;
  background: #fff;
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Helvetica Neue", "Noto Sans JP",
    "Yu Gothic", "Hiragino Kaku Gothic ProN", Meiryo, Arial, sans-serif;
}

/* タイトル */
.rep-hero{
  text-align: center;
  margin: 0 auto 28px;
  max-width: 980px;
}

.rep-title{
  margin: 0;
  font-size: clamp(28px, 3.4vw, 36px);
  line-height: 1.4;
  letter-spacing: .15em;
  font-weight: 800;
  position: relative;
}
/*
.rep-title::before,
.rep-title::after{
  content: "“";
  opacity: .9;
  font-weight: 900;
  margin: 0 .15em 0 0;
}
.rep-title::after{
  content: "”";
  margin: 0 0 0 .15em;
}
*/

/* 本文 */
.rep-message{
  max-width: 820px;
  margin: 0 auto;
  text-align: center;
}
.rep-message p{
  margin: 18px auto;
  line-height: 2.1;
  letter-spacing: .06em;
  font-size: clamp(12px, 1vw, 16px);
}

/* 署名 */
.rep-sign{
  text-align: center;
  margin: 34px auto 36px;
  font-size: clamp(18px, 1.6vw, 20px);
  font-family: "Yuji Syuku", "Hiragino Mincho ProN", "Yu Mincho", serif;
}
.rep-sign .rep-name{
  display: block;
  font-size: clamp(26px, 2.4vw, 32px);
  letter-spacing: .25em;
  margin-top: 8px;
  font-weight: 400; /* Yuji Syuku は太字非対応 */
  font-family: "Yuji Syuku", "Hiragino Mincho ProN", "Yu Mincho", serif;
}

/* 店舗画像 */
.rep-store{
  position: relative;
  width: 100%;
  max-width: none;
  height: 300px;
  margin: 0 auto 50px;
  overflow: hidden;

  --vfade: 80px;
  --hfade: 80px;
}
.rep-store img{
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
}
.rep-store::before{
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 2;
  background:
    linear-gradient(to bottom, rgba(255, 255, 255, 1) 0%, rgba(255, 255, 255, 0) 100%) top / 100% var(--vfade) no-repeat,
    linear-gradient(to top,    rgba(255, 255, 255, 1) 0%, rgba(255, 255, 255, 0) 100%) bottom / 100% var(--vfade) no-repeat,
    linear-gradient(to right,  rgba(255, 255, 255, 1) 0%, rgba(255, 255, 255, 0) 100%) left / var(--hfade) 100% no-repeat,
    linear-gradient(to left,   rgba(255, 255, 255, 1) 0%, rgba(255, 255, 255, 0) 100%) right / var(--hfade) 100% no-repeat;
}

/* 画像高さ調整 */
@media (max-width: 1024px){
  .rep-store{ height: 240px; --vfade: 64px; --hfade: 64px; }
}
@media (max-width: 768px){
  .rep-store{ height: 200px; --vfade: 56px; --hfade: 56px; }
}
@media (max-width: 480px){
  .rep-store{ height: 100px; --vfade: 48px; --hfade: 48px; }
}

/* 右上/左下イラスト */
.rep-decor{
  position: absolute;
  pointer-events: none;
  user-select: none;
  opacity: .95;
}
.rep-decor--top{
  right: 4vw;
  top: 450px;
  width: min(140px, 15vw);
}
.rep-decor--bottom{
  left: 7vw;
  bottom: 10px;
  width: min(160px, 18vw);
}

/* レスポンシブ（rep-wrapのみ） */
@media (max-width: 720px){
  .rep-wrap{ padding: 44px 18px 86px; }
  .rep-decor--top{ top: 40px; right: -40px; width: 200px; opacity: .4; }
  .rep-decor--bottom{ left: -30px; width: 220px; opacity: .4; }
}
@media (max-width: 768px){
  .rep-decor{ display: none; }
}

/* =========================
   rep-title スマホ最適化
   ========================= */
@media (max-width: 640px){
  .rep-title{
    font-size: 20px;        /* 28px → 20px */
    line-height: 1.5;       /* 行間を安定させる */
    letter-spacing: .06em;  /* 日本語に適正 */
    word-break: keep-all;   /* 不自然な分断防止（タイトルのみ） */
  }
}


/* =========================================================
   株式会社Aimo〇カ条（service-）
   ========================================================= */

.service-cards{
  padding: 40px 30px 60px;
  text-align: center;
}

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

.service-item{
  background: #fff;
  border: 1px solid rgba(0,0,0,.08);
  border-radius: 10px;
  padding: 26px 22px;
  box-shadow: 0 4px 16px rgba(0,0,0,.06);
}

.service-item img{
  width: auto;
  height: 120px;
  object-fit: contain;
  margin-bottom: 0;
}

.service-name{
  font-size: clamp(16px, 1.6vw, 18px);
  font-weight: 700;
  color: #333;
  margin: 0 0 12px;
}

.service-text{
  font-size: 14px;
  color: #555;
  line-height: 1.8;
  margin: 0;
  text-align: left;
}

@media (max-width: 960px){
  .service-grid{ grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 640px){
  .service-grid{ grid-template-columns: 1fr; }
  .service-item{ padding: 22px 18px; }
  .service-cards{ padding: 40px 0 60px; }
}


/* =========================================================
   会社情報（info-）
   方針：
   - asc-card の内側余白は .asc-card.info-section に一本化
   - dt/dd の崩れは !important で最小限復元（テーマ上書き対策）
   ========================================================= */

/* 会社情報カード：内側余白（張り付き対策） */
.asc-card.info-section{
  padding: 32px 28px;
  text-align: left;
  color: #333;
}

@media (max-width: 768px){
  .asc-card.info-section{ padding: 24px 20px; }
}
@media (max-width: 640px){
  .asc-card.info-section{ padding: 20px 16px; }
}

/* テーブル（崩れ復元込み） */
.info-table{
  display: grid !important;
  grid-template-columns: 230px minmax(0, 1fr) !important;
  width: 100% !important;
  border-top: 1px solid #ddd;
  border-bottom: 1px solid #ddd;
  margin: 0 !important;
}

.info-table dt,
.info-table dd{
  margin: 0 !important;
  padding: 10px 0 !important;
  line-height: 1.8;
  border-bottom: 1px solid #ddd;
}

.info-table dt{
  font-weight: 700;
  color: #333;
  padding-right: 20px !important;
  white-space: nowrap;
}

.info-table dd{
  color: #333;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.info-table dd.is-multi{
  white-space: pre-wrap;
  overflow: visible;
  text-overflow: unset;
}

/* 地図（全幅・高さ） */
.info-map{
  margin-top: 24px; /* 30→24：詰まりすぎず、間延びしない中間 */
}
.info-map iframe{
  width: 100% !important;
  max-width: 100% !important;
  height: 290px !important;
  display: block;
  border: 0;
  border-radius: 8px;
  box-shadow: 0 4px 16px rgba(0,0,0,.08);
}

@media (max-width: 640px){
  .info-table{
    grid-template-columns: 1fr !important;
    border: none;
  }
  .info-table dt,
  .info-table dd{
    border: none;
    padding: 6px 0 !important;
  }
  .info-table dt{ font-size: 14px; }
  .info-table dd{
    font-size: 14px;
    white-space: normal;
  }
  .info-map iframe{
    height: 300px !important;
    border-radius: 6px;
  }
}

/* 本店／支店ブロック（構造用＋区切り） */
.info-branch{
  margin-top: 32px;
}
.info-branch + .info-branch{
  margin-top: 36px;
  padding-top: 28px;
  border-top: 1px solid rgba(0,0,0,.10);
}

/* 店名見出し：淡い帯（見出しは控えめ、店舗名を主役に） */
.info-branch__title{
  position: relative;
  margin: 16px 0 20px;
  padding: 14px 18px;

  /* H3既存装飾を無効化 */
  border-bottom: none !important;
  background: rgba(0,0,0,.03);
  border: 1px solid rgba(0,0,0,.06);
  border-radius: 10px;

  /* 見出し（本店／支店）は控えめ */
  font-size: 14px;
  font-weight: 700;
  line-height: 1.4;
  letter-spacing: .08em;
  color: #666;
}

/* テーマ側 h3::before / ::after を完全に無効化 */
.info-branch__title::before,
.info-branch__title::after{
  content: none !important;
  display: none !important;
}

/* 店舗名（ASA〜）を主役に */
.info-branch__sub{
  margin-left: 12px;
  display: inline-block;

  /* ★ 主役サイズ */
  font-size: clamp(22px, 2.8vw, 28px);
  font-weight: 800;
  letter-spacing: .04em;
  color: #333;
}
/* ASA のみプライマリカラー */
.info-branch__asa{
  color: var(--vk-color-primary, #e53935);
  font-weight: inherit; /* サイズ・太さは現状維持 */
}

/* =========================
   店名見出し：モバイル最適化
   ========================= */
@media (max-width: 640px){

  .info-branch__title{
    margin: 10px 0 14px;
    padding: 8px 10px;          /* 周囲余白を縮小 */
    text-align: center;         /* 見出し全体を中央寄せ */
  }

  .info-branch__sub{
    display: inline-block;      /* 中央寄せ安定 */
    font-size: 14px;            /* ← 指定どおり */
    margin: 0;
    line-height: 1.4;
    white-space: nowrap;        /* 1行固定 */
  }

  .info-branch__asa{
    font-size: 14px;            /* サイズは同一 */
    font-weight: 800;
  }
}


/* =========================================================
   手書き風レターブロック（soft-family-letter）
   - rep-wrap が grid のため、幅は stretch 前提で組む
   - 段落下線（点線）は p の改行で違和感が出やすいが、
     「強調しつつ破綻しにくい」設定に寄せる
   ========================================================= */

.soft-family-letter{
  position: relative;
  width: 100%;
  max-width: 920px;
  justify-self: stretch;      /* rep-wrap(grid) 内で確実に横幅を使う */
  box-sizing: border-box;

  margin: 30px auto 30px;
  padding: 40px 44px 44px;

  background: #fffefa;
  border-radius: 18px;
  box-shadow: 0 6px 20px rgba(0,0,0,.06);

  font-family:
    "Zen Maru Gothic",
    "M PLUS Rounded 1c",
    "Hiragino Maru Gothic ProN",
    "Yu Gothic",
    sans-serif;

  color: #444;

  /* 本文は折り返し優先（はみ出し防止） */
  word-break: normal;
  overflow-wrap: anywhere;
  line-break: strict;
}

.soft-family-letter::before{
  content: "";
  position: absolute;
  inset: 10px;
  border-radius: 14px;
  border: 1px solid rgba(0,0,0,.05);
  pointer-events: none;
  box-sizing: border-box;
}

/* 宛名 */
.soft-family-letter__subtitle{
  text-align: center;
  font-size: clamp(18px, 2vw, 22px);
  letter-spacing: .12em;
  margin-bottom: 26px;
  color: #555;
}

/* 本文（段落ごとに点線） */
.soft-family-letter__message{
  max-width: 100%;
}
.soft-family-letter__message p{
  max-width: 100%;
  margin: 0 0 18px;
  font-size: clamp(14px, 1.25vw, 16px);
  line-height: 2.0;
  letter-spacing: .035em;

  /* 点線（折り返しでも位置がズレにくいように少し控えめ） */
  background-image:
    linear-gradient(
      to right,
      rgba(0,0,0,.24) 45%,
      rgba(255,255,255,0) 0%
    );
  background-size: 9px 2px;
  background-repeat: repeat-x;
  background-position: 0 calc(100% - 1px);
  padding-bottom: 4px;
}

.soft-family-letter__message p:last-child{
  margin-bottom: 0;
}

/* =========================
   モバイル
   ========================= */
@media (max-width: 640px){
  .soft-family-letter{
    max-width: 100%;
    margin: 24px 0;
    padding: 24px 16px 26px;
    border-radius: 14px;
  }

  .soft-family-letter::before{
    inset: 8px;
  }

  .soft-family-letter__subtitle{
    font-size: 16px;
    margin-bottom: 20px;
  }

  .soft-family-letter__message p{
    font-size: 14px;
    line-height: 1.85;
    letter-spacing: .03em;

    background-size: 8px 2px;
  }
}


/* =========================================================
   採用応募 注記（ASAワーク案内）
   ========================================================= */

.apply-note{
  max-width: 760px;
  margin: 20px auto 14px;
  text-align: center;

  font-size: 13px;
  line-height: 1.7;
  color: #666;

  letter-spacing: .03em;
}

@media (max-width: 640px){
  .apply-note{
    font-size: 12px;
    margin: 16px auto 12px;
  }
}
