@charset "UTF-8";
/*
 * スマホとタブレット（幅 899px 以下）の表示。
 * 旧テーマの CSS は書き換えず、この 1 枚で上書きする。PC の見た目は変えない（docs/decisions.md）。
 * 900px 以上で効くのは、次の 1 行だけ。
 */
.sp-only, .menuToggle { display: none; }

@media (max-width: 899px) {

  /* ---- 全体 ---- */
  html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
  html, body { font-size: 16px; line-height: 1.8; }
  #wrap { min-width: 0; }
  #contents { overflow-wrap: anywhere; }
  img { max-width: 100%; height: auto; }
  .inner { width: auto; min-width: 0; padding-left: 16px; padding-right: 16px; }
  .inner .inner { padding-left: 0; padding-right: 0; }
  .pc-only { display: none !important; }
  .sp-only { display: block; }
  .sp-text { color: #583c32; line-height: 1.7; }
  .sp-text-value { display: block; margin-top: 4px; font-size: 22px; font-weight: bold; }

  /* ---- ヘッダー ---- */
  #header {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    background: #fff;
    border-bottom: 4px solid #583c32;
    text-align: left;
  }
  #header .headerLogo { order: 0; margin-right: auto; line-height: 0; }
  #header img.logo { display: block; width: 170px; height: auto; margin: 0; }
  #header .headerContact { order: 1; }
  #header .headerContact .sp-text {
    display: block;
    padding: 9px 10px;
    border-radius: 3px;
    background: #c8573a;
    color: #fff;
    font-size: 14px;
    font-weight: bold;
    line-height: 1.5;
    white-space: nowrap;
  }

  /* メニューの開閉ボタン。JS が動くときだけ出す */
  html.js .menuToggle {
    display: block;
    order: 2;
    position: relative;
    width: 44px;
    height: 44px;
    padding: 0;
    border: 1px solid #583c32;
    border-radius: 3px;
    background: #fff;
    cursor: pointer;
  }
  .menuToggleBars,
  .menuToggleBars:before,
  .menuToggleBars:after {
    position: absolute;
    left: 10px;
    width: 22px;
    height: 2px;
    background: #583c32;
    content: "";
  }
  .menuToggleBars { top: 20px; }
  .menuToggleBars:before { top: -7px; left: 0; }
  .menuToggleBars:after { top: 7px; left: 0; }
  #header.menuOpen .menuToggleBars { background: transparent; }
  #header.menuOpen .menuToggleBars:before { top: 0; background: #583c32; transform: rotate(45deg); }
  #header.menuOpen .menuToggleBars:after { top: 0; background: #583c32; transform: rotate(-45deg); }

  /* メニュー。旧テーマは画像のスプライトなので、文字で出す */
  #header ul.gnavi {
    order: 3;
    display: block;
    flex: 0 0 calc(100% + 32px);
    height: auto;
    margin: 4px -16px -8px;
  }
  #header ul.gnavi:before { content: none; }
  html.js #header:not(.menuOpen) ul.gnavi { display: none; }
  #header ul.gnavi li { float: none; text-indent: 0; }
  #header ul.gnavi li a {
    box-sizing: border-box;
    width: auto !important;
    height: auto;
    min-height: 48px;
    padding: 12px 16px;
    border-top: 1px solid #765a4e;
    background-image: none;
    color: #fff;
    font-size: 16px;
    line-height: 24px;
  }
  #header ul.gnavi li.current > a { background-color: #856053; font-weight: bold; }
  #fade-in li ul,
  #fade-in li ul li a { visibility: visible; opacity: 1; transition: none; }
  #header ul.gnavi li ul { position: static; width: auto; }
  #header ul.gnavi li ul li a {
    padding: 12px 16px 12px 32px;
    border-top: 1px solid #765a4e;
    background-color: #6c5044;
    font-size: 15px;
    text-align: left;
  }
  #header ul.gnavi li ul li.current a { background-color: #856053; font-weight: bold; }

  /* ---- フッター ---- */
  #footer { padding: 32px 0 20px; }
  #footer .inner { width: auto; padding: 0 16px; text-align: center; }
  #footer .inner .info { line-height: 0; }
  #footer .inner > a { display: block; margin-top: 20px; }
  #footer .inner img.contact { position: static; }
  #footer .inner .office table { margin: 20px auto 0; font-size: 14px; }
  #footer .inner .office table td { display: block; padding: 2px 0; }
  ul.footerLink { margin: 24px 0 16px; padding: 0; border-bottom: none; text-align: left; }
  ul.footerLink li { float: none; border-bottom: 1px solid #ccc; }
  ul.footerLink li a { padding: 12px 8px 12px 16px; background-position: 2px center; font-size: 15px; }
  #footer p.copyrights { font-size: 12px; }

  /* ---- 共通の部品 ---- */
  #pageTop { width: auto; padding: 24px 16px; }
  #pager_list { width: auto; margin: 32px 0 16px; }
  .inner_top { padding-top: 32px; }
  .inner_bottom { padding-bottom: 32px; }

  /* ---- トップ ---- */
  #mainImg:not([class]) { height: 220px; }
  #topMainColumn { padding: 24px 16px; }
  #topMainColumn > div { width: auto; }
  #topMainColumn img.firstPerson { float: none; display: block; margin: 0 auto 20px; }
  .introText h3 { margin: 24px 0 8px; color: #94493e; font-size: 20px; line-height: 1.5; }
  .introText p { margin-bottom: 8px; }
  .introText p.signature { margin-top: 16px; font-size: 14px; text-align: right; }
  .inner h2 { padding: 32px 0 20px; }
  p.lead.service { padding: 0 0 24px; text-align: left; }
  .leadText strong { display: block; margin-bottom: 12px; color: #94493e; font-size: 19px; font-weight: normal; line-height: 1.6; text-align: center; }
  #topService { height: auto; }
  .topServiceLeft,
  .topServiceRight {
    position: static;
    width: auto;
    height: auto;
    margin-bottom: 16px;
    padding: 20px 16px;
    border-radius: 4px;
    background: #fff;
    box-shadow: 0 1px 3px rgba(88, 60, 50, .25);
  }
  .topServiceLeft h3,
  .topServiceRight h3 { padding: 0 0 16px; background: none; }
  .topServiceLeft .body,
  .topServiceRight .body { padding: 0; background: none; }
  .topServiceLeft .body p.lead,
  .topServiceRight .body p.lead { height: auto; margin-bottom: 12px; font-size: 17px; }
  .topServiceLeft .body p.text,
  .topServiceRight .body p.text { width: auto; height: auto; margin: 0 0 16px; }
  p.mediaLead { margin-bottom: 24px; text-align: left; }
  #topMedia { width: auto; padding: 16px; }
  #topMedia ul li { padding: 12px 4px; line-height: 1.6; }
  #topMedia ul li span { float: none; display: block; color: #666; font-size: 14px; }
  #topMedia ul li a { margin-left: 0; }
  a.topMediaBtn { width: auto; height: auto; margin-top: 20px; text-align: center; }
  #topNews,
  #topTopic { float: none; width: auto; }
  #topNews ul li { padding: 12px 4px; line-height: 1.6; }
  #topNews ul li span { display: block; padding-right: 0; font-size: 14px; }
  .topicInner { padding: 16px; }
  .topicInner img.attachment-medium { float: none; display: block; max-width: 100%; margin: 0 auto 12px; }
  .topicInner p.title { padding: 0 0 8px; font-size: 18px; }
  .topicInner a.btn { position: static; display: block; margin-top: 12px; text-align: right; }

  /* ---- 下層ページの共通 ---- */
  #mainImg { min-height: 120px; }
  #in_mainColumn h1 { padding: 28px 0 20px; }
  h2.intro { margin-bottom: 20px; }
  h2 .sp-text { display: block; font-size: 22px; font-weight: bold; text-align: center; }
  h2 .sp-text-value { color: #e7665b; font-size: 15px; font-weight: normal; }

  /* 枠。旧テーマは固定幅の背景画像で作っているので、線で描き直す */
  .borderBox,
  .contents_BorderBox { width: auto; margin: 0 16px 16px; }
  .inner .borderBox { margin: 0 0 16px; }
  .borderBox .top,
  .borderBox .bottom,
  .contents_BorderBox .top,
  .contents_BorderBox .btm { display: none; }
  .borderBox .middle,
  .contents_BorderBox .body {
    padding: 20px 16px;
    border: 1px solid #d8cbb6;
    border-radius: 4px;
    background: #fff;
  }
  .contents_BorderBox h3 { margin-bottom: 16px; padding: 8px 12px; }
  .contents_BorderBox h4 { font-size: 17px; line-height: 1.5; }

  /* 会社案内、鑑定士紹介 */
  .photoBox img.photo { float: none; display: block; margin: 0 auto 16px; }
  .photoBox img.name { margin-bottom: 20px; }
  .photoBox p { margin-left: 0; }
  table.spec,
  table.outline { display: block; width: auto; margin-top: 24px; }
  table.spec tbody, table.spec tr,
  table.outline tbody, table.outline tr { display: block; }
  table.spec th, table.spec td,
  table.outline th, table.outline td { display: block; width: auto; text-align: left; }
  table.spec th, table.outline th { padding: 16px 0 4px; border-bottom: none; }
  table.spec td, table.outline td { padding: 0 0 16px; }
  h2.outline { margin-bottom: 24px; }
  a.profileDL,
  a.caseLink { width: auto; text-align: center; }

  /* 業務内容 */
  .explanBox p { text-align: left; }
  #ContactBox { width: auto; margin: 32px 16px 0; }
  #ContactBox .frame { padding: 24px 12px 16px; }

  /* メディア */
  #madia_linkBox_toContact { margin-bottom: 20px; text-align: center; }
  #madia_linkBox_toContact .sp-text { text-align: left; }
  .mediaBox { padding: 24px 0; }
  .mediaBox .photo { float: none; width: auto; margin-bottom: 8px; text-align: center; }
  /* 「画像なし」の灰色の箱は、スマホでは場所を取るだけなので出さない */
  .mediaBox .photo img[src$="noimg_img.jpg"],
  #archiveContainer .archiveBox .photo img[src$="noimg_img.jpg"] { display: none; }
  .mediaBox .text-box { float: none; width: auto; }
  .mediaBox p span { font-size: 13px; }
  .mediaBox p.date, .mediaBox p.station { line-height: 2.2; }

  /* お知らせ、トピック */
  #newsContainer .newsBox,
  #topicContainer .topicBox { padding: 24px 0; }
  .newsBox p.date,
  .topicBox p.date { font-size: 14px; }
  .newsBox img { margin: 0 0 10px; }
  .topicBox p.image { float: none; margin-bottom: 12px; text-align: center; }
  .topicBox p.image > img { margin: 0; }

  /* セミナー */
  .seminarBox { padding: 24px 0; }
  .seminarBox p.date { line-height: 1.8; margin: 8px 0; }
  .seminarBox div.text p { margin: 12px 0 0; }
  img.linkto_detail { position: static; display: block; margin: 16px auto 0; }
  #seminarDetail_container { margin: 24px 0 48px; }
  #seminarDetail_container p.date { line-height: 1.8; margin: 8px 0; }
  #seminarDetail_container .text { margin-top: 24px; }
  #seminarDetail_container a.btn { width: auto; margin: 32px auto 24px; text-align: center; }
  #seminarDetail_container img.flyer { float: none; display: block; margin: 0 auto 20px; }

  /* 実績 */
  #archiveContainer .archiveBox { padding: 24px 0; }
  #archiveContainer .archiveBox .photo { float: none; width: 100%; margin: 0 0 12px; }
  #archiveContainer .archiveBox .tag { font-size: 14px; }
  #archiveContainer .archiveBox .title { font-size: 17px; line-height: 1.6; }
  #archiveContainer .archiveBox .button { position: static; display: block; margin-top: 12px; text-align: center; }
  #archiveDetail_container { margin-bottom: 48px; }
  #archiveDetail_container .tag { font-size: 14px; }
  #archiveDetail_container .inner img.photo { float: none; display: block; margin: 0 auto 16px; }

  /* お問い合わせ */
  p.contact_lead { margin-bottom: 8px; text-align: left; }
  .contact_form_box { width: auto; margin-top: 24px; padding: 20px 16px; text-align: center; }
  .contact_form_box .sp-text { margin-bottom: 16px; font-weight: bold; }
  /* contact-form.css があとから読み込まれるので、詳細度を上げて上書きする */
  #contents a.contactFormButton { width: 100%; max-width: 320px; height: auto; padding: 14px; font-size: 16px; }
  #contents.page .inner > p > .sp-text,
  #contents.page .inner > p > a > .sp-text { margin: 24px 0; text-align: center; }
  #contents.page .inner > p.contact_lead > .sp-text { margin: 0; text-align: left; }
  .pmark_text { width: auto; font-size: 14px; }

  /* プライバシー */
  h1.privacy { margin-bottom: 24px; }
  .privacy_textBox h2 { margin-bottom: 24px; }
  .privacy_textBox h5 { font-size: 16px; }
  .privacy_textBox p.privacy_caption { font-size: 13px; }
  .privacy_textBox p.margin { margin: 10px 0; }
  .pmarkBox { padding: 20px 16px; }
  a.download { display: block; padding: 10px; text-align: center; }

  /* 404 */
  .box404 { height: auto; padding: 0 16px 48px; }
  .box404 h2 { padding: 48px 0 24px; font-size: 20px; line-height: 1.6; }
}

/* 古い小型のスマホ（幅 320px）でも、ヘッダーを 1 行に収める */
@media (max-width: 359px) {
  #header img.logo { width: 124px; }
  #header .headerContact .sp-text { padding: 9px 8px; font-size: 13px; }
}

/* タッチの端末では、触ったあとにリンクが薄いまま残らないようにする */
@media (max-width: 899px) and (hover: none) {
  a:hover { opacity: 1; }
}
