@import url(common.css);

/* ここからメインビジュアルの書式 */
.main-visual {
  position: relative;
  width: 100%;
  height: 500px;
  overflow: hidden;
}

/* 写真3枚 */
.hero-grid {
  display: flex;
  width: 100%;
  height: 100%;
}

.hero-grid img {
  width: calc(100% / 3);
  height: 100%;
  object-fit: cover;
  display: block;
}

/* 写真ごとの表示位置 */
.hero-grid img:nth-child(1) {
  width: 25%;
}

.hero-grid img:nth-child(2) {
  width: 50%;
}

.hero-grid img:nth-child(3) {
  width: 25%;
}
/* オーバーレイ */
.hero-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.35);
  z-index: 1;
}

/* キャッチコピー */
.catch-copy {
  color: #fff;
  font-size: 42px;
  font-weight: 700;
  letter-spacing: 0.15em;
  line-height: 1.6;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.35);

  display: inline-block;
  white-space: nowrap;
}
.hero-text {
  position: absolute;
  inset: 0;

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

  z-index: 2;
}
/* ここまでメインビジュアルの書式 */

/* ここからメインの内容の書式 */

/* ここから事業所リスト */
.office-area a {
  color: #333;
  text-decoration: none;
  transition: all 0.3s ease;
}

.office-area a:hover {
  color: #eaa317;
  padding-left: 8px;
}
/* 都道府県ごとのブロック */
.office-area {
  max-width: 1200px;
  margin: 0 auto 60px;
  padding: 0;
  box-sizing: border-box;
}
/* 都道府県名 */
.office-area h2 {
  color: #e96d2a;
  font-size: 36px;
  font-weight: bold;
  margin-bottom: 30px;
  margin-left: -20px;
}

/* 市区町村ごとのブロック */
.city-block {
  margin-left: 40px; /* ←ここでインデント */
  margin-bottom: 30px;
}

/* 市区町村名 */
.city-block h3 {
  font-size: 28px;
  font-weight: bold;
  margin-bottom: 10px;
}

/* 市区町村下線の書式 */
.city-block h3 {
  position: relative;
  margin-bottom: 25px;
}

.city-block h3::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -10px;

  width: 65%;
  height: 2px;
  background: #eaa317;
}

/* 施設リスト */
.city-block ul {
  margin: 0;
  padding-left: 25px;
}

/* 各施設 */
.city-block li {
  font-size: 22px;
  line-height: 1.8;
  margin-bottom: 8px;
}
/* ここまで事業所リスト */

/* ここから共通書式(見出しとテキストエリア) */
.container {
  max-width: 1200px;
  margin: 80px auto;
  padding: 0 20px;
  box-sizing: border-box;
}

.business-box {
  margin-bottom: 80px;
  scroll-margin-top: 170px;
}
/* 介護ページ：事業所名見出し */
.business-title {
  display: inline-block;
  position: relative;
  z-index: 2;

  padding: 18px 60px 18px 30px;

  background: #eaa317;
  color: #fff;

  font-size: 24px;
  font-weight: bold;

  line-height: 1.4;

  transform: translateY(15px);

  clip-path: polygon(0 0, calc(100% - 40px) 0, 100% 100%, 0 100%);
}
/* 見出しタブ */
.business-title {
  display: inline-block;
  position: relative;
  z-index: 2;

  padding: 15px 90px 15px 25px;
  background: #eaa317;
  color: #fff;

  font-size: 24px;
  font-weight: bold;
  line-height: 1;

  transform: translateY(15px);

  /* 見出し全体を一つの図形にする */
  clip-path: polygon(0 0, calc(100% - 40px) 0, 100% 100%, 0 100%);
}
/* タブ右側の斜め */
.business-title::after {
  display: none;
}
/* 本体 */
.business-content {
  color: #000;
  position: relative;
  background: rgba(234, 163, 23, 0.3);
  min-height: 260px;
  padding: 45px 45px 45px 70px;
  overflow: hidden;
  box-sizing: border-box;
}
/* 左下の斜め */
.business-content::before {
  content: "";
  position: absolute;

  left: -2px;
  bottom: -2px;

  width: 60px;
  height: 60px;

  background: #fff;

  clip-path: polygon(0 100%, 100% 100%, 0 0);
}
/* 右上の斜め */
.business-content::after {
  content: "";
  position: absolute;

  top: -2px;
  right: -2px;

  width: 60px;
  height: 60px;

  background: #fff;

  clip-path: polygon(100% 0, 100% 100%, 0 0);
}
.business-content p,
.business-content ul {
  margin: 0;
}
.business-content li {
  margin-bottom: 18px;
  font-size: 18px;
  line-height: 1.8;
}
/* ここまで共通書式(見出しとテキストエリア) */

/* ここからセクション1の書式 */

.office-name {
  font-size: 30px;
  font-weight: bold;
  margin: 0 0 35px 35px;
}
.office-content {
  display: flex;

  justify-content: space-between;

  justify-content: center;

  gap: 40px;
}
.office-table {
  width: 620px;
  border-collapse: separate;
  border-spacing: 2px 1px;
}
.office-table th,
.office-table td {
  font-size: 18px;
  border: 1px solid #ddd;
  padding: 14px 18px;
  text-align: left;
  vertical-align: middle;
}

.office-table th {
  background: #fff;
  font-weight: 400;
  width: 35%;
}
.office-table td {
  background: #fff;
  font-weight: 300;
}
.office-content img {
  width: 320px;
  height: 100%;
  object-fit: cover;
}
.detail-btn {
  display: inline-flex;
  align-items: center;
  gap: 12px;

  background: #eaa317;
  color: #000;
  padding: 16px 35px;
  text-decoration: none;
  font-weight: bold;

  align-self: flex-end;

  margin-top: 30px;

  transition: 0.3s;
}

.detail-btn:hover {
  background: #c88f00;

  transform: translateX(5px);
}

/* ここからセクション3の書式 */
.company-title {
  margin-bottom: 50px;
}
.office-image {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}
/* ここまでセクション3の書式 */
/* 会社概要表 */
.company {
  width: 80%;
  margin: 30px auto; /* 表を中央に配置 */
  border-collapse: separate; /* collapse → separate に変更 */
  border-spacing: 4px 2.5px; /* ←セル同士の間隔 */
}
.company th {
  width: 220px;
  padding: 18px;
  background: #e6ebf5; /*左側(タイトル)の背景色*/
  border: 1px solid #ccc;
  text-align: left;
  font-weight: bold;
}

.company td {
  padding: 18px;
  background: #f0f3f9; /*右側(内容)の背景色*/
  border: 1px solid #ccc;
  line-height: 1.8;
}

/* ここまで会社概要表 */

/* ここまでメインの内容の書式 */

/* ==========================
   介護ページ専用 ナビカラー
========================== */

/* ナビ背景 */
.kaigo-page .global-nav-wrap {
  background: #eaa317;
}

/* サブメニュー背景 */
.kaigo-page .sub-menu {
  background: #eaa317;
}

.kaigo-page .sub-menu li a {
  background: #eaa317;
  color: #333;
}

.kaigo-page .sub-menu li a:hover {
  background: #c88f00;
  color: #fff;
}

/* ナビの区切り線 */
.kaigo-page .menu > li {
  border-left: 1px solid #f4c44d;
}

.kaigo-page .menu > li:last-child {
  border-right: 1px solid #f4c44d;
}

/* サブメニューの区切り線 */
.kaigo-page .sub-menu li {
  border-left: 1px solid #f4c44d;
  border-right: 1px solid #f4c44d;
  border-bottom: 1px solid #f4c44d;
}
/* ==========================
   スマホ表示：施設名改行調整
========================== */

.office-area a {
  display: block;
  width: 100%;
  box-sizing: border-box;
}

/* 改行位置 */
.sp-br {
  display: block;
}

.sp-br {
  display: none;
}

/* ==========================
   スマホ表示（介護ページ）
========================== */
@media screen and (max-width: 768px) {
  /* 事業所エリア見出しサイズ調整 */
  .office-area h2 {
    font-size: 22px;
  }
  /* 市区町村見出し（スマホ） */
  .city-block h3 {
    font-size: 18px;
    margin-bottom: 15px;
  }
  /* ==========================
   横スクロール防止
========================== */

  body {
    overflow-x: hidden;
  }
  .main-visual {
    height: 260px;
  }

  .hero-grid {
    height: 100%;
  }

  .hero-grid img {
    height: 100%;
    object-fit: cover;
  }

  /* スマホでは中央写真をメイン表示 */
  .hero-grid img:nth-child(1) {
    width: 25%;
  }

  .hero-grid img:nth-child(2) {
    width: 50%;
  }

  .hero-grid img:nth-child(3) {
    width: 25%;
  }

  /* キャッチコピー */
  .catch-copy {
    font-size: 22px;
    letter-spacing: 0.1em;
    white-space: normal;
    text-align: center;
    padding: 0 20px;
  }

  /* ==========================
     全体余白
  ========================== */

  .container {
    margin: 40px auto;
    padding: 0 15px;
  }

  /* ==========================
   介護ページ 事業所リスト（スマホ）
========================== */

  .office-area li a {
    display: flex;

    align-items: center;

    padding: 12px 5px;

    background: transparent;

    border-bottom: 1px solid #d6e5f4;

    font-size: 15px;

    line-height: 1.6;
  }

  /* 施設名部分 */
  .office-area li a {
    min-width: 0;
  }

  /* 矢印 */
  .office-area li a::after {
    content: "→";

    flex-shrink: 0;

    color: #eaa317;

    font-size: 18px;

    margin-left: 10px;
  }
  /* ==========================
   スマホ表示：事業所リスト矢印調整
========================== */

  .office-area a {
    padding-right: 20px;
    box-sizing: border-box;
  }

  /* 文字を自然に折り返す */
  /* ==========================
   スマホ：事業所リスト
========================== */

  .office-area li a {
    display: block;

    width: 100%;
    box-sizing: border-box;

    padding: 12px 25px 12px 0;

    font-size: 15px;
    line-height: 1.6;

    border-bottom: 1px solid #d6e5f4;

    position: relative;
  }

  /* 矢印 */
  .office-area li a::after {
    content: "→";

    position: absolute;

    right: 0;
    top: 50%;

    transform: translateY(-50%);

    color: #eaa317;

    font-size: 18px;
  }
  /* ==========================
   スマホ表示：事業所リスト矢印位置調整
========================== */

  .office-area a {
    display: flex;
    align-items: center;
    gap: 8px;
  }

  /* 矢印部分 */
  .office-area a::after {
    position: static;
    flex-shrink: 0;
  }
  .office-area ul {
    padding-left: 0;
    margin-left: 0;
  }

  .office-area li {
    margin-left: 0;
  }
  /* 事業所リスト 左余白リセット */
  .office-area,
  .office-area ul,
  .office-area li,
  .office-area .city-block,
  .office-area .prefecture {
    margin-left: 0;
    padding-left: 0;
  }

  /* ==========================
     施設紹介ボックス
  ========================== */
  /* ==========================
   事業所タイトル（スマホ）
========================== */

  .business-title {
    display: block;
    width: 100%;
    box-sizing: border-box;

    font-size: 18px;
    padding: 12px 20px;

    transform: translateY(10px);
  }
  /* ==========================
   事業所名（スマホ）
========================== */

  .business-box {
    margin-bottom: 50px;
  }

  .business-content {
    padding: 30px 15px;
    min-height: auto;
  }

  /* ==========================
     表と写真を縦並びへ変更
  ========================== */

  .office-content {
    display: block;
  }

  .office-table {
    width: 100%;
  }

  .office-table th,
  .office-table td {
    display: block;
    width: 100%;
    box-sizing: border-box;

    font-size: 14px;
    padding: 10px 12px;
  }

  .office-table th {
    background: #fff;
  }

  /* 写真 */
  .office-image {
    margin-top: 25px;
  }

  .office-content img {
    width: 100%;
    height: auto;
  }

  /* ==========================
   詳細ボタン（スマホ）
========================== */

  .detail-btn {
    width: auto;

    display: inline-flex;
    justify-content: center;

    padding: 12px 25px;

    font-size: 14px;

    margin-top: 20px;
  }

  .sp-br {
    display: inline;
  }
  /* スマホ 表サイズ調整 */
  .office-table {
    width: calc(100% - 30px);
    margin: 0 auto;
  }

  .office-table th,
  .office-table td {
    display: block;
    width: 100%;
    box-sizing: border-box;

    font-size: 13px;
    padding: 8px 10px;

    line-height: 1.5;
  }
  .business-content {
    width: 100%;
    overflow: hidden;
  }
}
