/*! HTML5 Boilerplate v8.0.0 | MIT License | https://html5boilerplate.com/ */

/* main.css 2.1.0 | MIT License | https://github.com/h5bp/main.css#readme */

/* ==========================================================================
   Base styles
   ========================================================================== */

html {
  color: #222;
  font-size: 1em;
  line-height: 1.4;
}

::-moz-selection {
  background: #b3d4fc;
  text-shadow: none;
}

::selection {
  background: #b3d4fc;
  text-shadow: none;
}

hr {
  display: block;
  height: 1px;
  border: 0;
  border-top: 1px solid #ccc;
  margin: 1em 0;
  padding: 0;
}

audio,
canvas,
iframe,
img,
svg,
video {
  vertical-align: middle;
}

fieldset {
  border: 0;
  margin: 0;
  padding: 0;
}

textarea {
  resize: vertical;
}

/* ==========================================================================
   Helper classes
   ========================================================================== */

.hidden,
[hidden] {
  display: none !important;
}

.sr-only {
  border: 0;
  clip: rect(0, 0, 0, 0);
  height: 1px;
  margin: -1px;
  overflow: hidden;
  padding: 0;
  position: absolute;
  white-space: nowrap;
  width: 1px;
}

.sr-only.focusable:active,
.sr-only.focusable:focus {
  clip: auto;
  height: auto;
  margin: 0;
  overflow: visible;
  position: static;
  white-space: inherit;
  width: auto;
}

.invisible {
  visibility: hidden;
}

.clearfix::before,
.clearfix::after {
  content: " ";
  display: table;
}

.clearfix::after {
  clear: both;
}

/* ==========================================================================
   Custom Styles — 白石グループ
   ========================================================================== */

* {
  box-sizing: border-box;
}

body {
  font-family: 'Noto Sans JP', 'Hiragino Kaku Gothic ProN', 'Hiragino Sans',
    Meiryo, sans-serif;
  color: #333;
  margin: 0;
  padding: 0;
  background: #fff;
}

img {
  max-width: 100%;
  height: auto;
}

/* Inner container */
.inner {
  max-width: 840px;
  margin: 0 auto;
  padding: 0 40px;
}

/* Section title images */
.sec-title {
  text-align: center;
  margin-bottom: 48px;
}

.sec-title-img {
  height: 30px;
  width: auto;
  max-width: 100%;
}

.sec-subtitle {
  font-size: 16px;
  font-weight: 700;
  color: #1a3c8c;
  letter-spacing: 0.1em;
  margin: 8px 0 0;
}

/* ==========================================================================
   Section 01 — KV (Key Visual)
   ========================================================================== */

.sec-kv {
  background: url('../img/kv_bg.webp') center center / cover no-repeat;
  height: 420px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.kv-logo {
  width: 194px;
  height: auto;
}

/* ==========================================================================
   Section 02 — ANNOUNCEMENT
   ========================================================================== */

.sec-announcement {
  background: #fff;
  padding: 72px 0 80px;
}

/* "グループ再編のご挨拶" heading */
.content-heading {
  text-align: center;
  font-size: 18px;
  font-weight: 700;
  color: #000;
  margin: 0 0 36px;
  letter-spacing: 0.05em;
}

/* Body text */
.announcement-text {
  font-size: 16px;
  line-height: 2;
  color: #333;
  margin-bottom: 64px;
}

.announcement-text p {
  margin: 0 0 20px;
}

.announcement-text p:last-child {
  margin-bottom: 0;
}

.kinsiro {
  text-align: right;
  margin: 8px 0 0;
}

/* "グループ体制" subheading */
.group-structure-title {
  text-align: center;
  font-size: 18px;
  font-weight: 700;
  color: #333;
  margin: 0 0 40px;
  letter-spacing: 0.05em;
}

/* ------ Group diagram ------ */

.diagram-wrapper {
  text-align: center;
  margin: 0 auto;
}

.group-diagram-img {
  max-width: 100%;
  height: auto;
  display: block;
  margin: 0 auto;
}

/* Diagram footnote */
.diagram-note {
  text-align: center;
  font-size: 12px;
  color: #666;
  margin-top: 20px;
  margin-bottom: 0;
}

/* ==========================================================================
   Section 03 — GROUP (グループ会社情報)
   ========================================================================== */

.sec-group {
  background: #f0f0f0;
  padding: 72px 0 80px;
}

.group-info {
  margin-top: 0;
}

.company-block {
  margin-bottom: 28px;
}

.company-name {
  font-size: 16px;
  font-weight: 700;
  color: #1a3c8c;
  margin: 0 0 14px;
}

.company-detail {
  margin: 0;
  padding: 0;
}

.detail-row {
  display: flex;
  align-items: flex-start;
  margin-bottom: 4px;
}

.detail-row dt {
  flex: 0 0 112px;
  font-size: 16px;
  color: #333;
  font-weight: 400;
  padding-top: 1px;
}

.detail-row dd {
  margin: 0;
  font-size: 16px;
  color: #333;
  line-height: 1.85;
}

.company-divider {
  border: none;
  border-top: 1px solid #ccc;
  margin: 28px 0 32px;
}

/* ==========================================================================
   Section 04 — COMPANY (会社概要)
   ========================================================================== */

.sec-company {
  background: #fff;
  padding: 72px 0 80px;
}

.company-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 16px;
}

.company-table th,
.company-table td {
  padding: 16px 24px;
  border-top: 1px solid #ddd;
  text-align: left;
  vertical-align: top;
}

.company-table tr:last-child th,
.company-table tr:last-child td {
  border-bottom: 1px solid #ddd;
}

.company-table th {
  background: #f5f5f5;
  font-weight: 700;
  color: #333;
  width: 160px;
  white-space: nowrap;
}

.company-table td {
  color: #333;
}

/* ==========================================================================
   Section 05 — CONTACT (お問合せ)
   ========================================================================== */

.sec-contact {
  background: #f0f0f0;
  padding: 72px 0 80px;
}

.contact-info {
  text-align: center;
}

.contact-company {
  font-size: 16px;
  font-weight: 700;
  color: #333;
  margin: 0 0 10px;
}

.contact-tel {
  font-size: 16px;
  color: #333;
  margin: 0;
  letter-spacing: 0.05em;
}

/* ==========================================================================
   Footer
   ========================================================================== */

.footer {
  background: #999;
  padding: 22px 20px;
  text-align: center;
}

.copyright {
  font-size: 12px;
  color: #fff;
  margin: 0;
  letter-spacing: 0.03em;
}

/* ==========================================================================
   Responsive — スマホ対応 (max-width: 600px)
   ========================================================================== */

@media (max-width: 600px) {

  /* Inner padding を縮小 */
  .inner {
    padding: 0 20px;
  }

  /* セクション上下余白を縮小 */
  .sec-announcement,
  .sec-group,
  .sec-company {
    padding: 48px 0 56px;
  }

  /* KV高さを縮小 */
  .sec-kv {
    height: 260px;
  }

  /* セクションタイトル画像：高さを統一 */
  .sec-title-img {
    height: 24px;
    width: auto;
    max-width: 100%;
  }

  /* グループ体制図：横幅いっぱいに表示 */
  .group-diagram-img {
    width: 100%;
  }

  /* グループ会社情報：dt/ddを縦並びに */
  .detail-row {
    flex-direction: column;
  }

  .detail-row dt {
    flex: none;
    font-weight: 700;
    margin-bottom: 2px;
  }

  /* 会社概要テーブル：th幅を縮小・折り返し許可 */
  .company-table th {
    width: 100px;
    white-space: normal;
    font-size: 14px;
  }

  .company-table td {
    font-size: 14px;
  }

  .company-table th,
  .company-table td {
    padding: 12px 14px;
  }

  /* 本文テキスト */
  .announcement-text {
    font-size: 16px;
  }
}

/* ==========================================================================
   Print styles
   ========================================================================== */

@media print {
  *,
  *::before,
  *::after {
    background: #fff !important;
    color: #000 !important;
    box-shadow: none !important;
    text-shadow: none !important;
  }

  a,
  a:visited {
    text-decoration: underline;
  }

  a[href]::after {
    content: " (" attr(href) ")";
  }

  abbr[title]::after {
    content: " (" attr(title) ")";
  }

  a[href^="#"]::after,
  a[href^="javascript:"]::after {
    content: "";
  }

  pre {
    white-space: pre-wrap !important;
  }

  pre,
  blockquote {
    border: 1px solid #999;
    page-break-inside: avoid;
  }

  thead {
    display: table-header-group;
  }

  tr,
  img {
    page-break-inside: avoid;
  }

  p,
  h2,
  h3 {
    orphans: 3;
    widows: 3;
  }

  h2,
  h3 {
    page-break-after: avoid;
  }
}
