@import url(common.css);

/* ========================================
   メインビジュアル
======================================== */

.main-visual {
  position: relative;
  width: 100%;
  height: 500px;
  overflow: hidden;
}

.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;
  transform: translateY(60px);

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

  z-index: 2;
}

/* ========================================
   事業所リスト
======================================== */

.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;
}

.office-area a {
  color: #333;
  text-decoration: none;
  transition: all 0.3s ease;
}

.office-area a:hover {
  color: #eaa317;
  padding-left: 8px;
}

.city-block {
  margin-left: 40px;
  margin-bottom: 30px;
}

.city-block h3 {
  position: relative;
  font-size: 28px;
  font-weight: bold;
  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: 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 {
  position: relative;

  color: #000;

  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;
}

/* ========================================
   施設名
======================================== */

.office-name {
  font-size: 30px;
  font-weight: bold;
  margin: 0 0 35px 35px;
}
/* ========================================
   表・写真・ボタン
======================================== */

.office-content {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  gap: 40px;

  width: 100%;

  align-items: stretch;
}

/* ========================================
   表
======================================== */

/* ========================================
   施設情報表
   PC：全施設で表の高さを統一
======================================== */

.office-table {
  width: 100%;
  height: 288px;

  margin: 0;
  padding: 0;

  border-collapse: separate;
  border-spacing: 2px 0;

  table-layout: fixed;
}

.office-table tbody {
  height: 100%;
}

.office-table tr {
  height: 20%;
}

.office-table th,
.office-table td {
  box-sizing: border-box;

  height: 20%;

  font-size: 18px;

  border: 1px solid #ddd;

  padding: 12px 18px;

  text-align: left;
  vertical-align: middle;

  line-height: 1.5;
}

.office-table th {
  width: 35%;
  background: #fff;
  font-weight: 400;
}

.office-table td {
  width: 65%;
  background: #fff;
  font-weight: 300;
}

/* ========================================
   写真＋ボタン
   全施設で完全に同じサイズ
======================================== */

/* ========================================
   写真＋ボタン
   表の高さに合わせる
======================================== */

.office-image {
  width: 320px;
  height: 100%;

  display: flex;
  flex-direction: column;

  margin: 0;
  padding: 0;
}

/* ========================================
   写真
======================================== */

.office-image img {
  display: block;

  width: 320px;
  height: 220px;

  object-fit: cover;
  object-position: center;

  margin: 0;
  padding: 0;

  flex-shrink: 0;
}

/* ========================================
   写真がない場合も同じ高さを確保
======================================== */

.office-image img[src=""] {
  display: block;

  width: 320px;
  height: 220px;

  background: #fff;

  flex-shrink: 0;
}

/* ========================================
   詳細ボタン
   ★ 表の一番下に揃える
======================================== */

.detail-btn {
  display: flex;

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

  width: 100%;
  height: 48px;

  box-sizing: border-box;

  margin-top: auto;
  padding: 0;

  background: #eaa317;
  color: #000;

  text-decoration: none;

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

  flex-shrink: 0;

  transition: 0.3s;
}

.detail-btn:hover {
  background: #c88f00;
  transform: translateY(-2px);
}
/* ========================================
   会社概要表
======================================== */

.company-title {
  margin-bottom: 50px;
}

.company {
  width: 80%;

  margin: 30px auto;

  border-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;
}

/* ========================================
   改行調整
======================================== */

.sp-br {
  display: none;
}

/* ========================================
   スマホ
======================================== */

@media screen and (max-width: 768px) {
  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.05em;

    white-space: normal;

    text-align: center;

    padding: 0 20px;

    word-break: normal;

    overflow-wrap: normal;
  }

  .hero-text {
    transform: translateY(-20px);
  }

  /* ------------------------------------
     全体余白
  ------------------------------------ */

  .container {
    margin: 40px auto;

    padding: 0 15px;
  }

  /* ------------------------------------
     事業所リスト
  ------------------------------------ */

  .office-area {
    margin-left: 0;
    padding-left: 0;
  }

  .office-area h2 {
    font-size: 22px;

    margin-left: 0;
  }

  .city-block {
    margin-left: 0;

    margin-bottom: 30px;
  }

  .city-block h3 {
    font-size: 18px;

    margin-bottom: 15px;
  }

  .office-area ul {
    padding-left: 0;

    margin-left: 0;
  }

  .office-area li {
    margin-left: 0;
  }

  .office-area li a {
    display: flex;

    align-items: center;

    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;
  }

  /* ------------------------------------
     施設紹介タイトル
  ------------------------------------ */

  .business-title {
    display: block;

    width: 100%;

    box-sizing: border-box;

    font-size: 17px;

    line-height: 1.5;

    padding: 14px 45px 14px 15px;

    transform: translateY(10px);

    clip-path: polygon(0 0, calc(100% - 25px) 0, 100% 100%, 0 100%);

    overflow-wrap: break-word;

    word-break: normal;

    letter-spacing: 0.03em;
  }

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

  /* ------------------------------------
     コンテンツ
  ------------------------------------ */

  .business-content {
    padding: 25px 15px;

    min-height: auto;
  }

  .business-content::before,
  .business-content::after {
    width: 20px;

    height: 20px;
  }

  /* ------------------------------------
     ★ スマホでは表と写真を縦並び
  ------------------------------------ */

  .office-content {
    display: flex;

    flex-direction: column;

    align-items: stretch;

    gap: 0;

    width: 100%;
  }

  /* ------------------------------------
     表
  ------------------------------------ */

  .office-table {
    width: 100%;

    margin: 0;

    border-collapse: separate;

    border-spacing: 2px 1px;
  }

  .office-table th,
  .office-table td {
    display: block;

    width: 100%;

    box-sizing: border-box;

    font-size: 13px;

    padding: 8px 10px;

    line-height: 1.5;
  }

  /* ------------------------------------
     ★ スマホ写真
  ------------------------------------ */

  .office-image {
    width: 100%;

    margin: 25px 0 0;

    padding: 0;

    display: flex;

    flex-direction: column;

    align-items: flex-end;
  }

  /* ------------------------------------
     ボタン
  ------------------------------------ */

  .detail-btn {
    display: inline-flex;

    justify-content: center;

    align-self: flex-end;

    width: auto;

    padding: 12px 25px;

    font-size: 14px;

    margin-top: 20px;
  }

  /* ------------------------------------
     スマホ用改行
  ------------------------------------ */

  .sp-br {
    display: inline;
  }
}

/* ========================================
   電話番号リンク
======================================== */

a[href^="tel"] {
  color: inherit;

  text-decoration: none;
}
