:root {
 --blue-royal: #4f9657;
 --blue-deep: #3f7e48;
 --blue-darker: #2f5c38;
 --blue-light: #7ab07f;
 --blue-bg: #edf6ec;
 --gray-bg: #f7f7f5;
 --ink: #1e2228;
 --ink-soft: #5b6168;
 --line: #e3e3e0;
 --white: #ffffff;
 --amber: #d98e3d;
 --sans: "Noto Sans JP", sans-serif;
 --serif: "Noto Serif JP", serif;
}

* {
 margin: 0;
 padding: 0;
 box-sizing: border-box;
}

html {
 scroll-behavior: smooth;
}

body {
 font-family: var(--sans);
 color: var(--ink);
 background: var(--white);
 line-height: 1.85;
 font-size: 16px;
 -webkit-font-smoothing: antialiased;
}

img {
 display: block;
 max-width: 100%;
}

a {
 color: inherit;
 text-decoration: none;
}

a:focus-visible,
button:focus-visible {
 outline: 3px solid var(--blue-royal);
 outline-offset: 2px;
}

ul {
 list-style: none;
}

.wrap {
 max-width: 1140px;
 margin: 0 auto;
 padding: 0 24px;
}

.wrap-narrow {
 max-width: 920px;
 margin: 0 auto;
 padding: 0 24px;
}

.ph-img {
 position: absolute;
 inset: 0;
 width: 100%;
 height: 100%;
 object-fit: cover;
 z-index: 1;
}

/* ===== Header (shared) ===== */
header {
 background: var(--white);
 border-bottom: 1px solid var(--line);
 position: sticky;
 top: 0;
 z-index: 50;
}

.header-inner {
 max-width: 1140px;
 margin: 0 auto;
 padding: 0 24px;
 display: flex;
 align-items: center;
 justify-content: space-between;
 height: 84px;
}

.brand {
 display: flex;
 align-items: center;
 gap: 12px;
}

.brand-logo {
 position: relative;
 width: 46px;
 height: 46px;
 border-radius: 8px;
 overflow: hidden;
 display: flex;
 align-items: center;
 justify-content: center;
 color: #fff;
 font-family: var(--serif);
 font-weight: 700;
 font-size: 20px;
 flex-shrink: 0;
}

.brand-text {
 font-size: 17.5px;
 font-weight: 700;
 color: var(--ink);
}

.brand-text small {
 display: block;
 font-size: 11px;
 font-weight: 400;
 color: var(--ink-soft);
 margin-top: 2px;
 letter-spacing: 0.02em;
}

nav {
 display: flex;
 align-items: center;
 gap: 32px;
}

.nav-links {
 display: flex;
 gap: 30px;
 font-size: 14.5px;
}

.nav-links a {
 padding: 8px 0;
 border-bottom: 2px solid transparent;
 transition:
  border-color 0.2s ease,
  color 0.2s ease;
}

.nav-links a:hover {
 border-color: var(--blue-royal);
 color: var(--blue-royal);
}

.nav-links a.current {
 color: var(--blue-royal);
 border-color: var(--blue-royal);
}

.header-cta {
 display: flex;
 align-items: center;
 gap: 14px;
}

.header-tel {
 text-align: right;
}

.header-tel .label {
 font-size: 10.5px;
 color: var(--ink-soft);
}

.header-tel .num {
 font-size: 18px;
 font-weight: 700;
 color: var(--blue-royal);
}

.btn {
 display: inline-flex;
 align-items: center;
 justify-content: center;
 gap: 8px;
 padding: 13px 26px;
 font-size: 14.5px;
 font-weight: 700;
 letter-spacing: 0.02em;
 border-radius: 7px;
 transition: all 0.2s ease;
 cursor: pointer;
}

.btn-primary {
 background: var(--blue-royal);
 color: #fff;
}

.btn-primary:hover {
 background: var(--blue-deep);
}

/* ===== Page hero ===== */
.page-hero {
 position: relative;
 min-height: 350px;
 display: flex;
 align-items: center;
 overflow: hidden;
 background: #33414f;
}

.page-hero-img {
 position: absolute;
 inset: 0;
 width: 100%;
 height: 100%;
 object-fit: cover;
 z-index: 0;
}

.page-hero-bg {
 position: absolute;
 inset: 0;
 z-index: 1;
 background:
  linear-gradient(
   100deg,
   rgba(47, 92, 56, 0.88) 0%,
   rgba(47, 92, 56, 0.62) 42%,
   rgba(47, 92, 56, 0.28) 70%,
   rgba(47, 92, 56, 0.1) 100%
  ),
  linear-gradient(180deg, #6f8870 0%, #547359 30%, #3f5d44 55%, #283a2b 100%);
}

.page-hero-content {
 position: relative;
 z-index: 2;
 max-width: 1140px;
 margin: 0 auto;
 padding: 0 24px;
 width: 100%;
}

.ph-eyebrow {
 display: inline-flex;
 align-items: center;
 gap: 10px;
 font-size: 13px;
 color: #d7e3d5;
 font-weight: 600;
 margin-bottom: 18px;
 letter-spacing: 0.06em;
}

.ph-eyebrow::before {
 content: "";
 width: 28px;
 height: 2px;
 background: var(--amber);
}

.page-hero h1 {
 font-family: var(--serif);
 font-weight: 700;
 font-size: clamp(28px, 3.6vw, 42px);
 line-height: 1.5;
 color: #fff;
 margin-bottom: 16px;
}

.page-hero p {
 font-size: 15.5px;
 color: rgba(255, 255, 255, 0.88);
 max-width: 650px;
}

.crumbs {
 position: absolute;
 top: 20px;
 left: 0;
 right: 0;
 z-index: 2;
 max-width: 1140px;
 margin: 0 auto;
 padding: 0 24px;
 font-size: 12px;
 color: rgba(255, 255, 255, 0.7);
}

.crumbs a:hover {
 color: #fff;
}

/* ===== Sections ===== */
.section {
 padding: 96px 0;
}

.section-alt {
 background: var(--gray-bg);
}

.sec-head {
 max-width: 680px;
 margin: 0 auto 56px;
 text-align: center;
}

.sec-eyebrow {
 font-size: 13px;
 font-weight: 700;
 color: var(--blue-royal);
 letter-spacing: 0.08em;
 margin-bottom: 12px;
}

.sec-head h2 {
 font-family: var(--serif);
 font-weight: 700;
 font-size: clamp(24px, 2.8vw, 32px);
 color: var(--ink);
 margin-bottom: 14px;
}

.sec-head p {
 font-size: 15px;
 color: var(--ink-soft);
}

/* ===== Greeting ===== */
.greet-grid {
 max-width: 920px;
 margin: 0 auto;
}

.greet-photo {
 position: relative;
 aspect-ratio: 4/4.6;
 border-radius: 12px;
 overflow: hidden;
 background: linear-gradient(
  150deg,
  #9aa39a 0%,
  #71807a 35%,
  #4d5c52 65%,
  #2f3a32 100%
 );
}

.greet-name {
 margin-top: 18px;
}

.greet-name .role {
 font-size: 12.5px;
 color: var(--ink-soft);
}

.greet-name .nm {
 font-family: var(--serif);
 font-size: 20px;
 font-weight: 700;
 color: var(--ink);
 margin-top: 2px;
}

.greet-name .nm small {
 font-size: 13px;
 font-weight: 400;
 color: var(--ink-soft);
 margin-left: 8px;
}

.greet-body .g-eyebrow {
 font-size: 13px;
 font-weight: 700;
 color: var(--blue-royal);
 letter-spacing: 0.08em;
 margin-bottom: 12px;
}

.greet-body h2 {
 font-family: var(--serif);
 font-weight: 700;
 font-size: clamp(22px, 2.6vw, 30px);
 color: var(--ink);
 margin-bottom: 24px;
 line-height: 1.5;
}

.greet-body p {
 font-size: 15px;
 color: var(--ink);
 margin-bottom: 20px;
}

.greet-sign {
 display: flex;
 align-items: baseline;
 gap: 12px;
 margin-top: 30px;
 padding-top: 24px;
 border-top: 1px solid var(--line);
}

.greet-sign .role {
 font-size: 13px;
 color: var(--ink-soft);
}

.greet-sign .nm {
 font-family: var(--serif);
 font-size: 22px;
 font-weight: 700;
 color: var(--ink);
}

/* ===== Philosophy (strength style) ===== */
.strength-list {
 display: grid;
 grid-template-columns: repeat(3, 1fr);
 gap: 0;
 border-top: 1px solid var(--line);
}

.strength-item {
 padding: 40px 32px 8px;
 border-right: 1px solid var(--line);
}

.strength-item:last-child {
 border-right: none;
}

.strength-num {
 font-family: var(--serif);
 font-weight: 700;
 font-size: 15px;
 color: var(--blue-royal);
 display: flex;
 align-items: center;
 gap: 10px;
 margin-bottom: 22px;
}

.strength-num::after {
 content: "";
 flex: 1;
 height: 1px;
 background: var(--line);
}

.strength-item h3 {
 font-size: 19px;
 font-weight: 700;
 color: var(--ink);
 margin-bottom: 14px;
 line-height: 1.5;
}

.strength-item p {
 font-size: 14.3px;
 color: var(--ink-soft);
}

/* ===== Company profile ===== */
.profile-grid {
 display: grid;
 grid-template-columns: 1fr 0.8fr;
 gap: 48px;
 align-items: start;
}

.contact-rows {
 display: flex;
 flex-direction: column;
 gap: 0;
 border-top: 1px solid var(--line);
}

.contact-rows .cr {
 display: flex;
 gap: 16px;
 font-size: 14.3px;
 padding: 16px 4px;
 border-bottom: 1px solid var(--line);
}

.contact-rows dt {
 width: 128px;
 flex-shrink: 0;
 color: var(--ink-soft);
 font-weight: 600;
}

.contact-rows dd {
 color: var(--ink);
}

.profile-photo {
 position: relative;
 aspect-ratio: 5/3.4;
 border-radius: 12px;
 overflow: hidden;
 background: linear-gradient(150deg, #a8b3a6 0%, #82967f 42%, #566e54 100%);
}

.profile-photo .pp-cap {
 position: absolute;
 left: 0;
 right: 0;
 bottom: 0;
 z-index: 3;
 color: #fff;
 font-size: 12.5px;
 padding: 14px 16px;
 font-weight: 600;
}

.profile-photo::before {
 content: "";
 position: absolute;
 inset: 0;
 background: linear-gradient(180deg, transparent 55%, rgba(0, 0, 0, 0.5) 100%);
 z-index: 2;
}

/* ===== History ===== */
.history-list {
 max-width: 820px;
 margin: 0 auto;
}

.history-item {
 display: grid;
 grid-template-columns: 170px 1fr;
 gap: 28px;
 align-items: baseline;
 padding: 22px 0;
 border-bottom: 1px solid var(--line);
}

.history-item:first-child {
 border-top: 1px solid var(--line);
}

.history-year {
 font-family: var(--serif);
 font-size: 15px;
 font-weight: 700;
 color: var(--blue-deep);
}

.history-year small {
 display: block;
 font-family: var(--sans);
 font-size: 11.5px;
 font-weight: 400;
 color: var(--ink-soft);
 margin-top: 2px;
}

.history-text {
 font-size: 14.6px;
 color: var(--ink);
}

/* ===== Gallery (shared) ===== */
.gallery-grid {
 display: grid;
 grid-template-columns: 1fr 1fr 1fr;
 grid-template-rows: 280px;
 gap: 14px;
}

.gphoto {
 position: relative;
 border-radius: 10px;
 overflow: hidden;
 display: flex;
 align-items: flex-end;
}

.gphoto .gcap {
 position: relative;
 z-index: 3;
 color: #fff;
 font-size: 13px;
 padding: 16px 18px;
 font-weight: 600;
 letter-spacing: 0.02em;
}

.gphoto::before {
 content: "";
 position: absolute;
 inset: 0;
 background: linear-gradient(180deg, transparent 45%, rgba(0, 0, 0, 0.6) 100%);
 z-index: 2;
}

.gphoto.g1 {
 background: linear-gradient(150deg, #a8b3a6 0%, #82967f 40%, #566e54 100%);
}

.gphoto.g2 {
 background: linear-gradient(150deg, #94957f 0%, #6e7060 45%, #4d4f42 100%);
}

.gphoto.g3 {
 background: linear-gradient(
  150deg,
  #869186 0%,
  #5f6c60 38%,
  #3e473d 72%,
  #262e25 100%
 );
}

/* ===== Footer (shared) ===== */
footer {
 background: var(--blue-darker);
 color: rgba(255, 255, 255, 0.82);
 padding: 52px 0 26px;
}

.footer-grid {
 display: grid;
 grid-template-columns: 1.3fr 1fr 1fr;
 gap: 40px;
 padding-bottom: 32px;
 border-bottom: 1px solid rgba(255, 255, 255, 0.16);
}

.footer-brand .fb-name {
 font-size: 17.5px;
 font-weight: 700;
 color: #fff;
 margin-bottom: 14px;
}

.footer-brand p {
 font-size: 13.3px;
 color: rgba(255, 255, 255, 0.6);
 max-width: 300px;
}

.footer-col h6 {
 font-size: 12px;
 letter-spacing: 0.08em;
 color: rgba(255, 255, 255, 0.5);
 margin-bottom: 14px;
}

.footer-col ul {
 display: flex;
 flex-direction: column;
 gap: 9px;
 font-size: 13.3px;
}

.footer-col a:hover {
 color: #fff;
}

.footer-bottom {
 display: flex;
 justify-content: space-between;
 padding-top: 20px;
 font-size: 11.5px;
 color: rgba(255, 255, 255, 0.45);
 flex-wrap: wrap;
 gap: 8px;
}

/* ===== Responsive ===== */
@media (max-width: 980px) {
 .nav-links {
  display: none;
 }

 .greet-grid {
  grid-template-columns: 1fr;
  gap: 32px;
 }

 .strength-list {
  grid-template-columns: 1fr;
 }

 .strength-item {
  border-right: none;
  border-bottom: 1px solid var(--line);
  padding-bottom: 32px;
 }

 .profile-grid {
  grid-template-columns: 1fr;
  gap: 32px;
 }

 .profile-photo {
  max-width: 520px;
 }

 .gallery-grid {
  grid-template-columns: 1fr 1fr;
  grid-template-rows: 240px 240px;
 }

 .gphoto.g3 {
  grid-column: 1 / 3;
 }

 .footer-grid {
  grid-template-columns: 1fr;
  gap: 26px;
 }
}

@media (max-width: 640px) {
 .header-inner {
  height: auto;
  min-height: 72px;
  padding: 14px 18px;
  flex-wrap: wrap;
  row-gap: 10px;
 }

 .brand-text {
  font-size: 14.5px;
 }

 .brand-text small {
  display: none;
 }

 .header-cta {
  width: 100%;
  justify-content: space-between;
 }

 .header-tel .label {
  display: none;
 }

 .header-tel .num {
  font-size: 15px;
 }

 .btn-primary {
  padding: 10px 18px;
  font-size: 13.5px;
 }

 .section {
  padding: 64px 0;
 }

 .contact-rows .cr {
  flex-direction: column;
  gap: 2px;
  padding: 14px 4px;
 }

 .contact-rows dt {
  width: auto;
 }

 .history-item {
  grid-template-columns: 1fr;
  gap: 4px;
 }

 .gallery-grid {
  grid-template-columns: 1fr;
  grid-template-rows: repeat(3, 200px);
 }

 .gphoto.g3 {
  grid-column: 1;
 }
}

@media (prefers-reduced-motion: reduce) {
 html {
  scroll-behavior: auto;
 }

 * {
  transition: none !important;
 }
}
