.homeplan365-company {
  --company-ink: #2f2723;
  --company-muted: #746d67;
  --company-accent: #ffc94f;
  --company-accent-deep: #b88012;
  --company-paper: #fffdfa;
  --company-line: #ece8e1;
  --company-green: #eef5e8;
  --company-font: "Hiragino Kaku Gothic ProN", "Yu Gothic", "YuGothic", "Noto Sans JP", sans-serif;
  overflow: clip;
  color: var(--company-ink);
  background:
    radial-gradient(circle at 8% 5%, rgba(255, 235, 188, 0.24), transparent 23%),
    var(--company-paper);
  font-family: var(--company-font);
  font-size: 16px;
  line-height: 1.8;
  -webkit-font-smoothing: antialiased;
}

.homeplan365-company,
.homeplan365-company *,
.homeplan365-company *::before,
.homeplan365-company *::after {
  box-sizing: border-box;
}

.homeplan365-company :where(a) {
  color: inherit;
  text-decoration: none;
}

.homeplan365-company :where(img) {
  max-width: 100%;
  display: block;
}

.homeplan365-company :where(a, button):focus-visible {
  outline: 3px solid rgba(181, 128, 18, 0.58);
  outline-offset: 4px;
}

.company-container {
  width: min(calc(100% - 64px), 1240px);
  margin-inline: auto;
}

.company-profile-container {
  width: min(calc(100% - 64px), 1080px);
  margin-inline: auto;
}

.company-breadcrumb {
  min-height: 52px;
  display: flex;
  align-items: center;
  gap: 10px;
  overflow: hidden;
  color: #625e57;
  font-size: 14px;
  white-space: nowrap;
 flex-wrap: wrap; line-height: 1.7; }

.company-breadcrumb a:hover { color: var(--company-accent-deep); }
.company-breadcrumb span:last-child { overflow: hidden; text-overflow: ellipsis; }

.company-hero {
  overflow: hidden;
  border-top: 1px solid var(--company-line);
  border-bottom: 1px solid var(--company-line);
  background:
    radial-gradient(circle at 80% 22%, rgba(213, 230, 205, 0.52), transparent 28%),
    linear-gradient(118deg, #fffdfa 0%, #fffaf0 56%, #f5f7ed 100%);
}

.company-hero-inner {
  min-height: 540px;
  padding-block: 68px 74px;
  display: grid;
  grid-template-columns: minmax(0, 52%) minmax(360px, 48%);
  grid-template-areas:
    "title media"
    "lead media";
  align-items: center;
  column-gap: 64px;
}

.company-title-block { grid-area: title; align-self: end; }

.company-area {
  margin: 0 0 16px;
  display: flex;
  align-items: center;
  gap: 9px;
  color:#625e57;
  font-size:15px;
  font-weight: 700;
  letter-spacing:.04em;
;line-height:1.6;}

.company-area span {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--company-accent);
  box-shadow: 0 0 0 5px rgba(255, 201, 79, 0.2);
}

.company-title-block h1 {
  margin: 0;
  max-width: 720px;
  font-size: clamp(38px, 4vw, 56px);
  font-weight: 800;
  line-height: 1.45;
  letter-spacing: 0.055em;
}

.company-hero-lead {
  grid-area: lead;
  align-self: start;
  max-width: 590px;
  padding-top: 26px;
}

.company-hero-lead p {
  margin: 0 0 23px;
  font-size:18px;
  line-height:1.8;
;}

.company-quiet-link {
  min-height: 44px;
  padding-bottom: 5px;
  border-bottom: 1px solid #bdb5aa;
  display: inline-flex;
  align-items: center;
  gap: 34px;
  font-size:16px;
  font-weight: 700;
  transition: color 160ms ease, border-color 160ms ease;
;line-height:1.7;flex-wrap:wrap;}

.company-quiet-link:hover {
  color: var(--company-accent-deep);
  border-color: var(--company-accent-deep);
}

.company-hero-visual {
  grid-area: media;
  min-width: 0;
  position: relative;
}

.company-featured-frame {
  width: 100%;
  min-height: 390px;
  aspect-ratio: 4 / 3;
  margin: 0;
  overflow: hidden;
  border-radius: 28px 48px 28px 48px;
  background: #e8ece2;
  box-shadow: 0 18px 44px rgba(67, 61, 50, 0.12);
}

.company-featured-frame img {
  width: 100%;
  height: 100%;
  min-height: 390px;
  object-fit: cover;
  object-position: center;
}

.company-logo-stage {
  height: 360px;
  position: relative;
  display: grid;
  place-items: center;
  border-radius: 40% 24% 36% 28%;
  background:
    radial-gradient(circle at 82% 18%, rgba(255, 255, 255, 0.92) 0 10%, transparent 10.5%),
    linear-gradient(145deg, rgba(255, 250, 236, 0.95), rgba(231, 241, 225, 0.92));
}

.company-logo-stage::before,
.company-logo-stage::after {
  content: "";
  position: absolute;
  pointer-events: none;
}

.company-logo-stage::before {
  width: 96px;
  height: 96px;
  left: -18px;
  bottom: 24px;
  border: 18px solid rgba(255, 201, 79, 0.58);
  border-radius: 50%;
}

.company-logo-stage::after {
  width: 130px;
  height: 64px;
  top: 21px;
  right: -24px;
  border-top: 2px solid rgba(119, 145, 106, 0.28);
  border-right: 2px solid rgba(119, 145, 106, 0.28);
  border-radius: 0 70px 0 0;
  transform: rotate(-8deg);
}

.company-logo-frame {
  width: min(82%, 390px);
  min-height: 174px;
  padding: 34px;
  border: 1px solid rgba(225, 219, 207, 0.9);
  border-radius: 24px;
  display: grid;
  place-items: center;
  position: relative;
  z-index: 1;
  background: rgba(255, 255, 255, 0.9);
  box-shadow: 0 17px 45px rgba(75, 64, 49, 0.1);
  transform: rotate(-1.2deg);
}

.company-logo-frame img { width: min(100%, 340px); height: auto; }

.company-hero-visual.has-featured-image .company-logo-stage {
  width: 218px;
  height: auto;
  min-height: 94px;
  position: absolute;
  left: -22px;
  bottom: 22px;
  border-radius: 18px;
  background: transparent;
}

.company-hero-visual.has-featured-image .company-logo-stage::before,
.company-hero-visual.has-featured-image .company-logo-stage::after { display: none; }

.company-hero-visual.has-featured-image .company-logo-frame {
  width: 100%;
  min-height: 94px;
  padding: 18px 20px;
  border-radius: 16px;
  transform: none;
}

.company-section { padding: 104px 0; }
.company-section-heading { margin-bottom: 38px; }

.company-kicker {
  margin: 0 0 8px;
  color:#806027;
  font-size:15px;
  font-weight: 800;
  letter-spacing:.08em;
;line-height:1.6;}

.company-section-heading h2,
.company-cta h2 {
  margin: 0;
  font-size: clamp(26px, 3vw, 38px);
  font-weight: 800;
  line-height: 1.55;
  letter-spacing: 0.045em;
}

.company-reading {
  max-width: 880px;
  padding: 8px 0 5px 62px;
  border-left: 6px solid var(--company-accent);
}

.company-intro p,
.company-strength-item p {
  margin: 0;
  font-size:18px;
  line-height:1.8;
;}

.company-intro p + p,
.company-strength-item p + p { margin-top: 1.2em; }

.company-strengths {
  margin-top: 46px;
  padding-top: 40px;
  border-top: 1px solid var(--company-line);
}

.company-strengths h3 {
  margin: 0 0 22px;
  color: #596452;
  font-size:19px;
  font-weight: 700;
  line-height: 1.7;
  letter-spacing: 0.055em;
;}

.company-strengths-items { display: grid; gap: 28px; }
.company-strength-item { min-width: 0; }

.company-gallery-section { padding: 0 0 20px; }
.company-gallery-heading { margin-bottom: 30px; }

.company-gallery-grid {
  min-width: 0;
  display: grid;
  gap: 20px;
}

.company-gallery-section.photo-count-1 .company-gallery-grid {
  max-width: 820px;
  grid-template-columns: minmax(0, 1fr);
}

.company-gallery-section.photo-count-2 .company-gallery-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.company-gallery-section.photo-count-3 .company-gallery-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }

.company-photo-link {
  min-width: 0;
  overflow: hidden;
  border-radius: 22px;
  display: block;
  background: #ecebe4;
  box-shadow: 0 10px 28px rgba(64, 54, 44, 0.09);
}

.company-photo-frame {
  aspect-ratio: 4 / 3;
  margin: 0;
  overflow: hidden;
}

.photo-count-1 .company-photo-frame { aspect-ratio: 16 / 9; }

.company-photo-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  transition: transform 180ms ease;
}

.company-photo-dialog {
  width: min(calc(100% - 48px), 1120px);
  max-width: none;
  max-height: calc(100dvh - 48px);
  padding: 0;
  border: 0;
  overflow: visible;
  background: transparent;
}

.company-photo-dialog::backdrop { background: rgba(37, 34, 30, 0.82); }

.company-photo-dialog-inner {
  position: relative;
  display: grid;
  justify-items: center;
}

.company-photo-dialog-image {
  max-width: 100%;
  max-height: calc(100dvh - 80px);
  border-radius: 18px;
  object-fit: contain;
  background: #fff;
  box-shadow: 0 22px 70px rgba(0, 0, 0, 0.28);
}

.company-photo-dialog-close {
  width: 44px;
  height: 44px;
  padding: 0;
  position: absolute;
  z-index: 2;
  top: -18px;
  right: -18px;
  border: 1px solid rgba(255, 255, 255, 0.65);
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: #fff;
  color: #3f3a35;
  font-size: 27px;
  line-height: 1;
  cursor: pointer;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
}

body.company-photo-dialog-open { overflow: hidden; }

.company-upcoming-section { padding: 84px 0; }

.company-upcoming-content {
  min-height: 260px;
  padding: 50px 58px 46px 64px;
  border: 1px solid #ebe5d8;
  border-radius: 26px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 210px;
  align-items: center;
  gap: 48px;
  overflow: hidden;
  position: relative;
  background:
    radial-gradient(circle at 89% 19%, rgba(255, 255, 255, 0.78) 0 7%, transparent 7.4%),
    linear-gradient(112deg, #fff8e8 0%, #f8f6e9 55%, #edf5e9 100%);
}

.company-upcoming-content::before {
  content: "";
  width: 170px;
  height: 170px;
  position: absolute;
  right: 70px;
  bottom: -115px;
  border: 22px solid rgba(255, 201, 79, 0.34);
  border-radius: 50%;
}

.company-upcoming-copy { position: relative; z-index: 1; }

.company-upcoming-copy h2 {
  margin: 0 0 17px;
  font-size: clamp(26px, 2.7vw, 36px);
  font-weight: 800;
  line-height: 1.6;
  letter-spacing: 0.04em;
}

.company-upcoming-copy > p:last-child {
  max-width: 680px;
  margin: 0;
  color: #665f58;
  font-size:16px;
  line-height:1.8;
;}

.company-upcoming-guide {
  height: 158px;
  position: relative;
  align-self: end;
}

.company-upcoming-guide img {
  width: 86px;
  height: 112px;
  position: absolute;
  right: 56px;
  bottom: -2px;
  object-fit: contain;
  object-position: center bottom;
}

.company-upcoming-sun {
  width: 46px;
  height: 46px;
  position: absolute;
  top: 5px;
  right: 8px;
  border-radius: 50%;
  background: rgba(255, 201, 79, 0.56);
}

.company-upcoming-path {
  width: 145px;
  height: 62px;
  position: absolute;
  right: 0;
  bottom: -8px;
  border-top: 2px solid rgba(120, 143, 107, 0.3);
  border-radius: 50%;
  transform: rotate(-8deg);
}

.company-related-section {
  padding: 92px 0;
  border-top: 1px solid var(--company-line);
}

.company-related-group + .company-related-group { margin-top: 86px; }

.company-related-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
}

.company-related-card {
  min-width: 0;
  overflow: hidden;
  border: 1px solid var(--company-line);
  border-radius: 20px;
  display: flex;
  flex-direction: column;
  background: #fff;
  box-shadow: 0 8px 24px rgba(66, 52, 40, 0.07);
  transition: transform 160ms ease, box-shadow 160ms ease;
}

.company-related-card figure {
  aspect-ratio: 4 / 3;
  margin: 0;
  overflow: hidden;
  background: #eef0ea;
}

.company-related-card figure img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.company-related-card-body {
  min-height: 150px;
  padding: 24px 25px;
  display: flex;
  flex-direction: column;
  position: relative;
}

.company-related-card h3 {
  margin: 0;
  padding-right: 34px;
  font-size: 17px;
  font-weight: 700;
  line-height: 1.75;
}

.company-related-meta,
.company-related-person {
  margin: 0 0 5px;
  color:#625e57;
  font-size:16px;
  line-height:1.75;
;}

.company-related-person { color: var(--company-ink); font-weight: 700; }

.company-related-arrow {
  width: 32px;
  height: 32px;
  position: absolute;
  right: 20px;
  bottom: 19px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: var(--company-accent);
  font-size: 14px;
}

.company-information-section {
  border-top: 1px solid var(--company-line);
  background: #fff;
}

.company-information-layout {
  display: grid;
  grid-template-columns: minmax(230px, 30%) minmax(0, 70%);
  gap: 82px;
}

.company-information-heading > p:last-child {
  max-width: 280px;
  margin: 21px 0 0;
  color:#625e57;
  font-size:16px;
;line-height:1.8;}

.company-data {
  margin: 0;
  border-top: 1px solid var(--company-line);
}

.company-data > div {
  min-height: 72px;
  padding: 20px 4px;
  border-bottom: 1px solid var(--company-line);
  display: grid;
  grid-template-columns: 150px minmax(0, 1fr);
  gap: 24px;
  align-items: start;
}

.company-data dt { color: #625e57; font-size:16px; font-weight: 700;  line-height: 1.8;}
.company-data dd { min-width: 0; margin: 0; font-size: 16px; line-height: 1.8; overflow-wrap: anywhere; }

.company-data a {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  border-bottom: 1px solid #d8d1c8;
}

.company-data a:hover { color: var(--company-accent-deep); border-color: var(--company-accent-deep); }
.company-area-tags { display: flex; flex-wrap: wrap; gap: 7px; }

.company-data-tag {
  padding: 4px 12px;
  border-radius: 999px;
  display: inline-flex;
  background: var(--company-green);
  font-size:14px;
;line-height:1.7;}

.company-cta {
  padding: 84px 0;
  border-top: 1px solid #eadfbf;
  background:
    radial-gradient(circle at 12% 100%, rgba(255, 201, 79, 0.28), transparent 26%),
    linear-gradient(100deg, #fff7df, #f8f6e9);
}

.company-cta-inner {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 60px;
}

.company-cta-actions { display: flex; flex-direction: column; gap: 12px; }

.company-link-button {
  min-width: 310px;
  min-height: 58px;
  padding: 12px 23px;
  border: 1px solid #ded5c6;
  border-radius: 999px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 26px;
  background: rgba(255, 255, 255, 0.76);
  font-size:16px;
  font-weight: 700;
  transition: transform 160ms ease, box-shadow 160ms ease;
;line-height:1.7;}

.company-link-button.is-primary { border-color: transparent; background: var(--company-accent); }

@media (hover: hover) {
  .company-photo-link:hover .company-photo-frame img { transform: scale(1.015); }
  .company-related-card:hover { transform: translateY(-3px); box-shadow: 0 13px 30px rgba(66, 52, 40, 0.11); }
  .company-link-button:hover { transform: translateY(-2px); box-shadow: 0 10px 22px rgba(86, 69, 42, 0.12); }
}

@media (max-width: 980px) {
  .company-profile-container { width: min(calc(100% - 40px), 1080px); }
  .company-hero-inner { min-height: 500px; grid-template-columns: minmax(0, 50%) minmax(320px, 50%); column-gap: 34px; }
  .company-logo-stage { height: 310px; }
  .company-information-layout { gap: 44px; }
  .company-upcoming-content { grid-template-columns: minmax(0, 1fr) 170px; gap: 28px; }
}

@media (max-width: 760px) {
  .company-related-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 680px) {
  .company-container,
  .company-profile-container { width: calc(100% - 32px); }

  .company-breadcrumb { min-height: 44px; font-size: 14px;  flex-wrap: wrap; line-height: 1.7; }

  .company-hero-inner {
    min-height: 0;
    padding-block: 34px 48px;
    grid-template-columns: 1fr;
    grid-template-areas:
      "title"
      "media"
      "lead";
    gap: 0;
  }

  .company-area { margin-bottom: 11px; font-size:15px;line-height:1.6;letter-spacing:.04em;color:#625e57;}
  .company-title-block h1 { font-size: clamp(32px, 10vw, 39px); line-height: 1.5; overflow-wrap: anywhere; }
  .company-hero-visual { margin: 27px 0 25px; }

  .company-logo-stage { height: 210px; border-radius: 26% 18% 25% 20%; }
  .company-logo-stage::before { width: 64px; height: 64px; left: -13px; bottom: 16px; border-width: 12px; }
  .company-logo-stage::after { width: 90px; right: -18px; }
  .company-logo-frame { width: 85%; min-height: 112px; padding: 24px; border-radius: 18px; }
  .company-logo-frame img { width: min(100%, 270px); }

  .company-hero-visual.has-featured-image { display: flex; flex-direction: column; gap: 13px; }

  .company-hero-visual.has-featured-image .company-featured-frame,
  .company-hero-visual.has-featured-image .company-featured-frame img {
    min-height: 0;
    height: auto;
    aspect-ratio: 4 / 3;
  }

  .company-hero-visual.has-featured-image .company-featured-frame { border-radius: 20px 30px 20px 30px; }

  .company-hero-visual.has-featured-image .company-logo-stage {
    width: 100%;
    min-height: 0;
    position: static;
    display: flex;
    justify-content: flex-start;
  }

  .company-hero-visual.has-featured-image .company-logo-frame {
    width: min(62%, 220px);
    min-height: 78px;
    padding: 14px 16px;
  }

  .company-hero-lead { padding: 0; }
  .company-hero-lead p { margin-bottom: 17px; font-size:17px; line-height:1.8;}
  .company-quiet-link { min-height: 42px;font-size:16px;line-height:1.7;flex-wrap:wrap;}

  .company-section { padding: 68px 0; }
  .company-section-heading { margin-bottom: 25px; }
  .company-kicker { font-size:15px;line-height:1.6;letter-spacing:.08em;color:#806027;}
  .company-section-heading h2,
  .company-cta h2 { font-size: 25px; }

  .company-reading { padding: 2px 0 2px 22px; border-left-width: 4px; }
  .company-intro p,
  .company-strength-item p { font-size: 17px; line-height: 1.8; }
  .company-strengths { margin-top: 32px; padding-top: 29px; }
  .company-strengths h3 { margin-bottom: 15px; font-size:19px;}

  .company-gallery-section { padding-bottom: 0; }
  .company-gallery-heading { margin-bottom: 21px; }
  .company-gallery-grid { gap: 14px; }
  .company-gallery-section.photo-count-1 .company-gallery-grid { display: block; }

  .company-gallery-section.photo-count-2 .company-gallery-grid,
  .company-gallery-section.photo-count-3 .company-gallery-grid {
    width: 100%;
    padding: 2px 2px 12px;
    display: grid;
    grid-template-columns: none;
    grid-auto-flow: column;
    grid-auto-columns: 86%;
    gap: 13px;
    overflow-x: auto;
    overscroll-behavior-inline: contain;
    scroll-snap-type: inline mandatory;
    scrollbar-width: thin;
  }

  .company-photo-link { border-radius: 18px; scroll-snap-align: start; }
  .photo-count-1 .company-photo-frame { aspect-ratio: 4 / 3; }
  .company-photo-dialog { width: calc(100% - 32px); max-height: calc(100dvh - 32px); }
  .company-photo-dialog-image { max-height: calc(100dvh - 64px); border-radius: 14px; }
  .company-photo-dialog-close { top: -13px; right: -10px; }

  .company-upcoming-section { padding: 68px 0; }
  .company-upcoming-content { min-height: 0; padding: 32px 24px 24px; display: block; border-radius: 20px; }
  .company-upcoming-copy h2 { margin-bottom: 14px; font-size: 23px; line-height: 1.65; }
  .company-upcoming-copy > p:last-child { padding-right: 72px; font-size:16px; line-height:1.8;}
  .company-upcoming-guide { width: 82px; height: 116px; position: absolute; right: 17px; bottom: 9px; }
  .company-upcoming-guide img { width: 59px; height: 84px; right: 12px; bottom: 0; }
  .company-upcoming-sun { width: 34px; height: 34px; right: 0; }
  .company-upcoming-path { width: 82px; height: 38px; right: 0; }
  .company-upcoming-content::before { width: 92px; height: 92px; right: 22px; bottom: -67px; border-width: 13px; }

  .company-related-section { padding: 68px 0; }
  .company-related-group + .company-related-group { margin-top: 64px; }
  .company-related-grid { grid-template-columns: 1fr; gap: 16px; }

  .company-information-layout { grid-template-columns: 1fr; gap: 0; }
  .company-information-heading > p:last-child { max-width: none; margin: 21px 0 30px;font-size:16px;line-height:1.8;color:#625e57;}
  .company-data > div { min-height: 0; padding: 17px 2px; grid-template-columns: 96px minmax(0, 1fr); gap: 12px; }
  .company-data dt { font-size:16px;  color: #625e57; line-height: 1.8;}
  .company-data dd { font-size: 16px;  line-height: 1.8; overflow-wrap: anywhere; }

  .company-cta { padding: 61px 0 64px; }
  .company-cta-inner { grid-template-columns: 1fr; gap: 28px; }
  .company-cta h2 br { display: none; }
  .company-cta-actions { gap: 10px; }
  .company-link-button { width: 100%; min-width: 0; min-height: 55px;font-size:16px;line-height:1.7;}
}

@media (prefers-reduced-motion: reduce) {
  .homeplan365-company *,
  .homeplan365-company *::before,
  .homeplan365-company *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
  }
}
