/*
#228b22 forestgreen 濃いめのグリーン
#98fb98 palegreen 薄いグリーン
#f0fff0 honeydew めちゃ薄いグリーン
*/

body { 
  font-family: "Roboto", "Noto Sans JP", sans-serif;
  font-optical-sizing: auto;
  font-style: normal;
  font-weight: 300;
  background-color: #fff;
  margin: 0;
}
h2 {
  font-size: 24px;
  padding-left: 30px;
  position: relative;
  color: #228b22;
  font-weight: 300;
}
h2::before {
  position: absolute;
  content: "";
  top: 18px;
  left: 0;
  border: #228b22 solid 1px;
  width: 25px;
}
h3 {
  font-weight: 400;
  background-color: #f0fff0;
  padding: 10px;
  border-bottom: #228b22 solid 1px;
}
h4 {
  margin: 0;
  position: absolute;
  bottom: 0;
  left: 15px;
  font-family: "Roboto";
  font-size: 32px;
  font-weight: 200;
  color: #228b22;
}
a, a::before, a::after {
  text-decoration: none;
}

/*----------header----------*/
header img {
  width: 40px;
  margin: 20px;
}
.header-logo {
  display: flex;
}
.header-text {
  font-weight: 200;
  font-size: 34px;
  margin-top: 10px;
  color: #228b22;
}
header .sub {
  width: 120px;
  text-align: center;
  font-size: 12px;
  padding: 0 10px;
  border: #228b22 solid 1px;
}
/*----------hamburger menu----------*/
.menu-panel {
  position: fixed;
  top: 0;
  right: -100%;
  width: 300px;
  height: 100%;
  background-color: #98fb98;
  opacity: 0.95;
  color: #333;
  transition: right 0.3s ease;
  padding: 20px;
  box-sizing: border-box;
  z-index: 10;
}
.menu-panel.open {
  right: 0;
}
.hamburger {
  position: fixed;
  top: 15px;
  right: 12px;
  width: 40px;
  cursor: pointer;
  z-index: 20;
  padding: 5px;
  border: #333 solid 1px;
  background-color: #f0fff0;
}
.hamburger span {
  display: block;
  height: 2px;
  width: 100%;
  background-color: #333;
  margin: 5px 0;
  transition: 0.4s;
}
.hamburger.active span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}
.hamburger.active span:nth-child(2) {
  opacity: 0;
}
.hamburger.active span:nth-child(3) {
  transform: rotate(-45deg) translate(6px, -6px);
}
.menu-panel ul, .menu-list {
  list-style: none;
  margin: 35px 0 0 0;
}
.menu-panel li, .menu-list li {
  padding: 10px 0;
  border-bottom: 1px solid #444;
}
.menu-panel li a, .menu-list li a {
  color: #333;
  text-decoration: none;
  display: block;
}

/* ---------- footer ---------- */
footer {
  background-color: #228b22;
}
footer .container {
  position: relative;
  padding: 50px 0 0;
}
footer .container::before, footer .container::after {
  display: block;
  content: "";
  position: absolute;
  top: 0;
  border-style: solid;
}
footer .container::before {
  left: 0;
  border-width: 45px 50vw 0 0;
  border-color:  #fff transparent transparent transparent;
}
footer .container::after {
  right: 0;
  border-width: 0 50vw 45px 0;
  border-color: transparent #fff transparent transparent;
}
footer .first-box {
  text-align: center;
}
footer img {
  width: 50px;
}
@media screen and (min-width:800px) {
  footer img {
    margin-right: 50px;
  }
}
footer .second-box {
  text-align: center;
  color: #fff;
}
footer .text {
  font-size: 13px;
}
footer .buttonWrap {
  margin: 30px auto 0;
  width: 180px;
  height: 60px;
  border: solid 1px #fff;
  display: flex;
  justify-content: center;
  align-items: center;
  position: relative;
}
footer .buttonWrap::before {
  position: absolute;
  content: "";
  border: solid 1px #fff;
  width: 35px;
  top: -5%;
  left: 40%;
  transform: rotate(90deg);
}
footer .button {
  font-weight: 200;
  color: #fff;
  text-decoration: none;
}
footer .copyright {
  font-weight: 200;
  margin: 0;
  padding: 10px 0 30px;
}

main img {
  width: 100%;
}
























/* ---------- philosophy section ---------- */
#philosophy .wrapper {
  margin: 50px auto;
}
#philosophy .container {
  width: 90%;
  margin: 0 auto;
}
#philosophy img {
  width: 100%;
}
#philosophy .block {
  position: relative;
}
#philosophy .philosophy-text {
  padding: 15px;
  line-height: 2.5rem;
  letter-spacing: 0.19rem;
}
#philosophy .text {
  position: absolute;
  font-size: 64px;
  color: #fff;
  opacity: 60%;
  font-weight: bold;
  z-index: 100;
}
#philosophy .text-1st {
  left: 15px;
  font-family: "My Soul";
}
#philosophy .text-2nd {
  right: 10px;
  bottom: 10px;
  font-size: 48px;
}
#philosophy .box {
  width: 90%;
  margin: 0 auto;
  line-height: 2.2rem;
  letter-spacing: 0.19rem;
}
#philosophy h2 {
  letter-spacing: 0.8rem;
}
#philosophy .subtitle1 {
  letter-spacing: 0.19rem;
}
#philosophy .subtitle2 {
  letter-spacing: 0.8rem;
}
#philosophy ul {
  list-style: none;
  line-height: 2.5rem;
  letter-spacing: 0.19rem;
  padding-left: 20px;
}
#philosophy span {
  font-weight: bold;
  font-size: large;
}



.zoom-image {
  width: 100%;
  overflow: hidden;
  position: relative;
}
.zoom-image img {
  width: 100%;
  height: auto;
  display: block;
  transform-origin: center center;
  animation: zoomInOut 16s ease-in-out infinite;
}
@keyframes zoomInOut {
  0% { transform: scale(1); }
  50% { transform: scale(1.08); }
  100% { transform: scale(1); }
}





/* -------------------- greeting -------------------- */
#greeting .wrapper {
  margin: 50px auto;
}
#greeting h2 {
  letter-spacing: 0.8rem;
}
#greeting .container {
  width: 90%;
  margin: 0 auto;
  letter-spacing: 0.19rem;
  line-height: 2.2rem;
}






/* -------------------- about -------------------- */
#about .company {
  width: 90%;
  margin: 0 auto;
}
#about .box {
  padding: 5px;
}
#about .title {
  font-weight: 500;
  border-bottom: #228b22 solid 1px;
  padding: 5px 0 5px 10px;
}
#about .content {
  padding: 10px 0;
}
#about .item {
  padding: 10px 0;
}
#about .item .content {
  padding: 3px 0;
}
/* -------------------- access -------------------- */
.access .container {
  width: 90%;
  margin: 0 auto 40px;
}
.access .title {
  font-size: 17px;
  font-weight: 400;
}
.access .map {
  height: 40vh;
  margin: 0 auto;
}
.access iframe {
  width: 100%;
  height: 100%;
}






/* -------------------- contact -------------------- */
.contact .container {
  width: 90%;
  margin: 0 auto 50px;
}
.contact label {
  display: block;
  padding: 15px;
  background-color: #f0fff0;
  margin-bottom: 10px;
}
.contact input {
  width: 100%;
  height: 45px;
  margin-bottom: 15px;
}
.contact textarea {
  width: 100%;
  height: 180px;
  margin-bottom: 15px;
}
.contact .required {
  font-size: 13px;
  background-color: #ff4500;
  padding: 3px;
  margin-left: 10px;
  color: #fff;
}
.contact .checkbox {
  width: auto;
  height: auto;
}
.contact .center {
  text-align: center;
}
.g-recaptcha div {
  margin-right: auto;
  margin-left: auto;
  text-align: center;
  width: 300px;
}
.contact .form-group-button {
  text-align: center;
  margin: 20px auto;
}
.contact button {
  text-align: center;
  padding: 20px 25px;
  border-style: none;
  border-radius: 10px;
  background-color: #98fb98;
}
.contact button:hover {
  background-color: #228b22;
  color: #fff;
}

/* -------------------- privacy -------------------- */
.privacy {
  line-height: 26px;
}
.privacy .container {
  width: 95%;
  margin: 0 auto 50px;
}
.privacy ol {
  padding-inline-start: 20px;
}
.privacy li {
  margin-top: 8px;
}
.privacy .roman {
  list-style-type: upper-roman;
}


/* -------------------- services -------------------- */
#services .wrapper {
  width: 100%;
  margin: 50px auto;
}
#services h2 {
  letter-spacing: 0.8rem;
}
#services .container {
  width: 90%;
  margin: 0 auto;
  letter-spacing: 0.19rem;
  line-height: 2.2rem;
}
#services .inner {
  overflow: hidden;
}
#services .inner img {
  width: 100%;
  height: auto;
  display: block;
  transition: transform 0.6s ease;
}
#services .inner:hover img {
  transform: scale(1.06);
}

/* -------------------- example -------------------- */
#works .wrapper {
  margin: 50px auto;
}
#works h2 {
  letter-spacing: 0.8rem;
}
#works .container {
  width: 90%;
  margin: 0 auto;
  letter-spacing: 0.19rem;
  line-height: 2.2rem;
}




/* ---------- top section ---------- */
#top img {
  width: 100%;
  height: 90vh;
  border-radius: 0 7rem 0 0;
  object-fit: cover;
  margin: 5px 0 30px;
}
h1 {
  position: absolute;
  top: 43%;
  left: 30px;
  font-family: "My soul";
  font-size: 45px;
  color: #fff;
  z-index: 500;
}
#top .ab-text {
  position: absolute;
  top: 58%;
  left: 40px;
  font-family: "My soul";
  font-size: 15px;
  color: #fff;
  z-index: 500;
}
#top .tate {
  writing-mode: vertical-rl;
  font-size: 22px;
  line-height: 3rem;
  margin: 30px 10% 30px auto;
  letter-spacing: 0.8rem;
}
#top .text {
  width: 75%;
  margin: 40px auto;
  font-size: 18px;
  line-height: 2.2rem;
}


/* ---------- middle section ---------- */
#middle .container {
  width: 80%;
  margin: 40px auto;
}
#middle .about {
  text-align: center;
  margin-bottom: 50px;
}
#middle .title {
  position: relative;
  font-family: "Robot";
  font-size: 32px;
  border: solid 1px #228b22;
  text-align: center;
  color: #228b22;
  width: 75%;
  margin: 40px auto 10px;
  letter-spacing: 0.9rem;
}
#middle .title22 {
  position: relative;
  font-family: "Robot";
  font-size: 32px;
  border: solid 1px #228b22;
  text-align: center;
  color: #228b22;
  width: 75%;
  margin: 40px auto 10px;
  letter-spacing: 0.4rem;
}
#middle .title::before, #middle .title22::before {
  position: absolute;
  top: 50%;
  left: -23px;
  content: "";
  border: solid 1px #228b22;
  width: 35px;
}
#middle .sub-title {
  color: #228b22;
  letter-spacing: 0.5rem;
  margin-top: 0;
  margin-bottom: 5px;
}
#middle img {
  width: 100%;
  height: 200px;
  border-radius: 0 4rem 0 0;
}
#middle .content-wrapper {
  margin: 50px auto 80px;
  overflow: hidden;
}
#middle h2 {
  font-size: 27px;
  letter-spacing: 0.65rem;
  margin-top: 15px;
  margin-bottom: 7px;
}
.arrow-wrapper {
  display: flex;
  justify-content: flex-end;
  margin-bottom: 30px;
}
.arrow {
  position: relative;
  display: inline-block;
  width: 45px;
  height: 1px;
  margin-top: 5px;
  border-radius: 9999px;
  background-color: #228b22;
  
}
.arrow::before {
  content: "";
  position: absolute;
  top: calc(50% - 2px);
  right: 0;
  width: 15px;
  height: 0.5px;
  border-radius: 9999px;
  background-color: #228b22;
  transform: rotate(30deg);
  transform-origin: calc(100% - 2px) 50%;
}

.map {
  width: 90%;
  margin: 0 auto;
}

.area {
  font-size: 21px;
}

.sub-area {
 font-size: 18px;
 line-height: 2.5rem;
}

.btn {
  width: 80%;
  margin: 30px auto 65px;
  padding: 15px;
  background: #228b22;
  color: #fff;
  border-radius: 5rem;
  text-align: center;
  font-weight: 400;
  letter-spacing: 0.4rem;
}
@media screen and (min-width: 768px) {
  .btn {
    width: 40%;
    font-size: 15px;
    padding: 12px;
    margin: 20px auto 50px;
  }
}


.top-image {
  position: relative;
}

/* ---------- works: before/after with connector (overlap) ---------- */
.before-after {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0;
  margin: 24px 0 48px;
  position: relative;
}
.before-after .before,
.before-after .after {
  flex: 1 1 48%;
  max-width: 520px;
}
/* overlap a little toward center */
.before-after .before { margin-right: -24px; }
.before-after .after  { margin-left: -24px; }

.before-after img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 6px;
  box-shadow: 0 6px 18px rgba(0,0,0,0.18);
}
/* connector floats over the overlap */
.before-after .connector {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 14px 24px;
  border-radius: 10px;
  background: rgba(255,255,255,0.70);
  border: 1px solid rgba(0,0,0,0.08);
  box-shadow: 0 10px 24px rgba(0,0,0,0.16);
  min-width: 260px;
  pointer-events: none;
  z-index: 3;
}
.conn-label {
  text-align: center;
}
.conn-arrow {
  position: relative;
  top: 0px;
}
.before-after .conn-label { font-size: 18px; color: #222; }
.before-after .conn-label.before { opacity: 0.9; }
.before-after .conn-label.after { opacity: 1; font-weight: 500; }
.before-after .conn-arrow { width: 0; height: 0; margin: 0 14px; border-left: 20px solid #228b22; border-top: 12px solid transparent; border-bottom: 12px solid transparent; }

@media screen and (max-width: 768px) {
  .before-after { flex-direction: column; }
  .before-after .before,
  .before-after .after { width: 100%; max-width: 680px; }
  .before-after .before { margin-right: 0; }
  .before-after .after { margin-left: 0; }
  .before-after .connector { flex-direction: column; padding: 12px 16px; min-width: 200px; }
  .before-after .conn-label { font-size: 16px; }
  .before-after .conn-arrow { margin: 10px 0; border-left: 10px solid transparent; border-right: 10px solid transparent; border-top: 20px solid #228b22; border-bottom: none; }
}

/* ---------- fade-in on scroll (after images) ---------- */
.fade-in-on-scroll {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}
.fade-in-on-scroll.is-inview {
  opacity: 1;
  transform: translateY(0);
}
.content-wrapper:hover .fade-in-on-scroll.is-inview,
.fade-in-on-scroll.is-inview:hover {
  transform: translateY(0) scale(1.06);
}

@media (prefers-reduced-motion: reduce) {
  .fade-in-on-scroll {
    transition: none;
  }
}

/* ---------- tate: per-character reveal ---------- */
#top .tate .reveal-char {
  opacity: 0;
  display: inline-block;
  transform: translateY(12px);
}
#top .tate.is-inview .reveal-char {
  animation: tateCharIn 0.55s ease forwards;
}
@keyframes tateCharIn {
  to { opacity: 1; transform: translateY(0); }
}
@media (prefers-reduced-motion: reduce) {
  #top .tate .reveal-char { opacity: 1; transform: none; animation: none !important; }
}
/* ================== Responsive Enhancements ================== */
/* Tablet (>=768px) */
@media screen and (min-width: 768px) {
  /* Header: switch to horizontal nav */
  header { display: flex; align-items: center; justify-content: space-between; padding: 10px 5%; }
  .header-logo { align-items: center; gap: 12px; }
  .hamburger { display: none; }
  .menu-panel { position: static; right: auto; width: auto; height: auto; background: transparent; opacity: 1; color: #228b22; padding: 0; box-shadow: none; }
  .menu-panel.open { right: auto; }
  .menu-list { display: flex; gap: 24px; margin: 0; padding: 0; }
  .menu-list li { border-bottom: none; padding: 0; }
  .menu-list li a { color: #228b22; padding: 8px 0; }

  /* Hero */
  #top img { height: 70vh; border-radius: 0 10rem 0 0; }
  h1 { top: 40%; left: 8%; font-size: 64px; }
  #top .ab-text { top: 69%; left: 8%; font-size: 18px; }
  #top .text { width: 65%; font-size: 19px; }
  #top .tate { margin: 30px 15% 30px auto; font-size: 24px; }

  /* Middle: make cards into 2-column grid */
  #middle .container { width: 85%; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 32px; }
  #middle .container .about { grid-column: 1 / -1; text-align: center; }
  #middle .title { width: auto; margin: 0 auto 10px; }
  #middle .content-wrapper { margin: 0; }

  /* Works: increase spacing */
  .before-after { gap: 16px; margin: 32px 0 64px; }
  .before-after .connector { min-width: 300px; }

  /* Philosophy */
  #philosophy .container { width: 85%; }
  #philosophy .box { width: 85%; }
  #philosophy .text-2nd { font-size: 56px; }

  /* Access */
  .access .container { width: 85%; }
  .access .map { height: 52vh; }

  /* Contact */
  .contact .container { width: 80%; }

  /* Privacy */
  .privacy .container { width: 85%; }

  /* Footer: two-column layout */
  footer .container { padding: 60px 5% 0; display: flex; align-items: center; justify-content: space-between; }
  footer .first-box, footer .second-box { text-align: left; }
}

/* Desktop (>=1024px) */
@media screen and (min-width: 1024px) {
  .menu-list { gap: 32px; }
  .header-text { font-size: 36px; }
  header .sub { width: 160px; font-size: 13px; }

  #top img { height: 72vh; border-radius: 0 12rem 0 0; }
  h1 { font-size: 72px; }
  #top .ab-text { font-size: 20px; }
  #top .text { width: 54%; font-size: 20px; }

  #middle .container { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 36px; }

  .before-after .conn-label { font-size: 20px; }

  .access .map { height: 60vh; }
}

/* Large Desktop (>=1280px) */
@media screen and (min-width: 1280px) {
  #top img { height: 68vh; }
  h1 { font-size: 80px; }
  #top .ab-text { font-size: 22px; }
}
/* === Footer: keep mobile layout across sizes === */
@media screen and (min-width: 768px) {
  footer .container { display: block; padding: 50px 0 0; }
  footer .first-box, footer .second-box { text-align: center; }
}
@media screen and (min-width: 800px) {
  footer img { margin-right: 0 !important; }
}

#middle .map img {
  height: auto;
}
@media screen and (min-width: 768px) {
  #middle {
    width: 85%;
    margin: 0 auto;
  }
  #middle .map img {
    width: 65%;
  }
  .map {
    text-align: center;
    margin: 0 auto;
  }
  .pc-container {
    width: 70%;
    margin: 0 auto;
  }
}

@media screen and (min-width: 768px) {
  #philosophy .philosophy-text, #philosophy p {
    line-height: 5rem;
  }
}

@media screen and (min-width: 768px) {
  #services .inner {
    text-align: center;
    width: 80%;
    margin: 50px auto;
    line-height: 3rem;
  }
}

/* -------------------- sitemap -------------------- */
#sitemap .wrapper {
  width: 90%;
  margin: 50px auto;
}
#sitemap .sitemap-list {
  list-style: none;
  padding: 0;
  margin: 20px 0 10px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 16px;
}
#sitemap .sitemap-list a {
  display: block;
  padding: 12px 16px;
  border: 1px solid #228b22;
  border-radius: 10px;
  background: #f0fff0;
  color: #228b22;
  font-weight: 500;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
#sitemap .sitemap-list a:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.08);
}
#sitemap .sitemap-list a:active {
  transform: translateY(0);
  box-shadow: none;
}
.sitemap-link {
  color: #f0fff0;
  text-decoration: underline;
}