/* =========================================================
   音改堂 ONKAIDO
   Responsive Design
   PC / Tablet / Smartphone
========================================================= */

:root {
  --green: #123f2a;
  --green-2: #185036;
  --green-3: #2b6549;
  --green-soft: #e9f0eb;

  --cream: #f8f5ee;
  --soft: #f3efe6;
  --white: #ffffff;

  --wood: #d8b785;
  --wood-light: #ead8b8;

  --text: #1f2a23;
  --muted: #677068;
  --line: #ddd8cc;

  --shadow: 0 12px 34px rgba(22, 44, 31, .08);
  --container: 1320px;
  --radius: 10px;
}


/* =========================================================
   Reset
========================================================= */

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--text);
  background: var(--cream);
  font-family:
    "Hiragino Mincho ProN",
    "Yu Mincho",
    "YuMincho",
    "Noto Serif JP",
    serif;
  line-height: 1.8;
  -webkit-font-smoothing: antialiased;
}

img {
  display: block;
  width: 100%;
  height: auto;
}

a {
  color: inherit;
  text-decoration: none;
}

button,
input,
textarea,
select {
  font: inherit;
}

.container {
  width: min(92%, var(--container));
  margin-inline: auto;
}

.pc-only {
  display: inline;
}


/* =========================================================
   Header
========================================================= */

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255,255,255,.96);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}

.header-top {
  background: #faf8f2;
  color: var(--green);
  border-bottom: 1px solid #eee9df;
}

.header-top-inner {
  min-height: 30px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  font-size: .7rem;
  letter-spacing: .03em;
}

.header-top p {
  margin: 0;
}

.header-main {
  min-height: 92px;
  display: flex;
  align-items: center;
  gap: 28px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
  color: var(--green);
}

.brand-symbol {
  width: 54px;
  height: 54px;
  display: grid;
  place-items: center;
  border: 2px solid var(--green);
  border-radius: 50%;
  font-family: Arial, sans-serif;
  font-size: 1.8rem;
  line-height: 1;
}

.brand-copy {
  display: flex;
  flex-direction: column;
  line-height: 1.1;
}

.brand-copy strong {
  font-size: 1.85rem;
  letter-spacing: .13em;
  font-weight: 600;
}

.brand-copy small {
  margin-top: 6px;
  font-family: Arial, sans-serif;
  font-size: .63rem;
  letter-spacing: .36em;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 18px;
  margin-left: auto;
  font-size: .79rem;
  white-space: nowrap;
}

.main-nav a {
  position: relative;
  padding-block: 8px;
}

.main-nav a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 2px;
  width: 0;
  height: 1px;
  background: var(--green);
  transition: width .2s ease;
}

.main-nav a:hover::after {
  width: 100%;
}

.header-contact {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-left: 8px;
}

.header-phone {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--green);
}

.header-phone .phone-icon {
  font-size: 1.2rem;
}

.header-phone > span:last-child {
  display: flex;
  flex-direction: column;
  line-height: 1.2;
}

.header-phone strong {
  font-family: Georgia, serif;
  font-size: 1.05rem;
  white-space: nowrap;
}

.header-phone small {
  margin-top: 5px;
  color: var(--muted);
  font-size: .62rem;
  text-align: right;
}

.mobile-menu {
  display: none;
}


/* =========================================================
   Buttons
========================================================= */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 11px 21px;
  border: 1px solid transparent;
  border-radius: 5px;
  font-size: .85rem;
  font-weight: 600;
  letter-spacing: .04em;
  transition:
    transform .18s ease,
    color .18s ease,
    background .18s ease,
    border-color .18s ease;
}

.btn:hover {
  transform: translateY(-1px);
}

.btn-primary {
  background: var(--green);
  color: var(--white);
}

.btn-primary:hover {
  background: var(--green-2);
}

.btn-outline {
  border-color: var(--green);
  color: var(--green);
  background: rgba(255,255,255,.8);
}

.btn-outline:hover {
  background: var(--green);
  color: var(--white);
}

.btn-white-outline {
  border-color: rgba(255,255,255,.85);
  color: var(--white);
}

.btn-white-outline:hover {
  background: var(--white);
  color: var(--green);
}

.btn-large {
  min-height: 52px;
  padding-inline: 28px;
}

.btn-block {
  width: 100%;
}


/* =========================================================
   Hero
========================================================= */

.hero {
  position: relative;
  min-height: 610px;
  overflow: hidden;
  background:
    url("images/headbanner.jpg") center center / cover no-repeat;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(
      90deg,
      rgba(255,255,255,.94) 0%,
      rgba(255,255,255,.84) 42%,
      rgba(255,255,255,.44) 67%,
      rgba(255,255,255,.12) 100%
    );
}

.hero-inner {
  position: relative;
  z-index: 2;
  min-height: 610px;
  display: flex;
  align-items: center;
}

.hero-content {
  width: min(690px, 58%);
  padding-block: 70px;
}

.eyebrow {
  display: inline-block;
  font-family: Arial, sans-serif;
  color: var(--green-3);
  font-size: .72rem;
  letter-spacing: .22em;
  font-weight: 700;
}

.eyebrow.light {
  color: #cddfd4;
}

.hero h1 {
  margin: 12px 0 14px;
  color: var(--green);
  font-size: clamp(3rem, 5.3vw, 5.1rem);
  font-weight: 500;
  line-height: 1.25;
  letter-spacing: .06em;
}

.hero-sub {
  margin: 0 0 12px;
  font-size: 1.25rem;
  font-weight: 600;
}

.hero-text {
  margin: 0;
  color: #4f5b53;
  font-size: .95rem;
  line-height: 2;
}

.hero-badges {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
  margin-top: 26px;
}

.hero-badges span {
  display: grid;
  place-items: center;
  min-height: 56px;
  padding: 8px 10px;
  color: var(--white);
  background: var(--green);
  border-radius: 5px;
  text-align: center;
  font-size: .76rem;
  line-height: 1.5;
}

.hero-actions {
  display: flex;
  gap: 12px;
  margin-top: 22px;
}

.hero-points {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 22px;
  margin: 20px 0 0;
  padding: 16px 20px;
  list-style: none;
  background: rgba(255,255,255,.8);
  border-radius: 8px;
  box-shadow: 0 6px 22px rgba(17,58,38,.05);
  font-size: .79rem;
}

.hero-points li::before {
  content: "✓";
  margin-right: 6px;
  color: var(--green);
  font-weight: 700;
}


/* =========================================================
   Sections
========================================================= */

.section {
  padding: 88px 0;
  background: var(--white);
}

.section-cream {
  background: var(--cream);
}

.section-soft {
  background: var(--soft);
}

.section-heading {
  max-width: 760px;
  margin: 0 auto 40px;
  text-align: center;
}

.section-heading.left {
  margin-left: 0;
  text-align: left;
}

.section-heading > span {
  font-family: Arial, sans-serif;
  color: var(--green-3);
  font-size: .7rem;
  font-weight: 700;
  letter-spacing: .24em;
}

.section-heading h2 {
  margin: 7px 0 8px;
  color: var(--green);
  font-size: clamp(1.9rem, 3.2vw, 2.8rem);
  line-height: 1.45;
  font-weight: 500;
  letter-spacing: .06em;
}

.section-heading p {
  margin: 0;
  color: var(--muted);
  font-size: .88rem;
}

.center {
  display: flex;
  justify-content: center;
  margin-top: 32px;
}


/* =========================================================
   Strength
========================================================= */

.strength-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 18px;
}

.strength-card {
  overflow: hidden;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: 0 10px 25px rgba(19,58,39,.04);
}

.strength-card img {
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

.card-body {
  position: relative;
  padding: 22px 18px 24px;
}

.card-number {
  position: absolute;
  top: -22px;
  right: 16px;
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  color: var(--white);
  background: var(--green);
  border-radius: 50%;
  font-family: Georgia, serif;
  font-size: .9rem;
}

.card-body h3 {
  margin: 0 0 10px;
  color: var(--green);
  font-size: 1.02rem;
  font-weight: 600;
}

.card-body p {
  margin: 0;
  color: var(--muted);
  font-size: .81rem;
}


/* =========================================================
   Service
========================================================= */

.service-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 14px;
}

.service-card {
  overflow: hidden;
  background: var(--cream);
  border: 1px solid var(--line);
  border-radius: 8px;
}

.service-card img {
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

.service-card > div {
  padding: 17px 12px 20px;
  text-align: center;
}

.service-card h3 {
  margin: 0 0 4px;
  color: var(--green);
  font-size: .96rem;
}

.service-card .price {
  margin: 0;
  color: var(--green);
  font-family: Georgia, serif;
  font-size: 1.08rem;
  font-weight: 700;
}

.service-card small {
  display: block;
  margin-top: 2px;
  color: var(--muted);
  font-size: .68rem;
}


/* =========================================================
   Works / News
========================================================= */

.content-split {
  display: grid;
  grid-template-columns: 1.15fr .85fr;
  gap: 56px;
  align-items: start;
}

.works-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 15px;
}

.work-card {
  overflow: hidden;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 8px;
}

.work-card img {
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

.work-card > div {
  padding: 14px 13px 17px;
  text-align: center;
}

.work-card h3 {
  margin: 0;
  color: var(--green);
  font-size: .9rem;
}

.work-card p {
  margin: 2px 0 0;
  color: var(--muted);
  font-size: .71rem;
}

.section-link {
  margin-top: 18px;
  text-align: right;
  color: var(--green);
  font-size: .82rem;
  font-weight: 600;
}

.news-list {
  margin: 0;
  padding: 0;
  list-style: none;
  border-top: 1px solid #cfc8b9;
}

.news-list li {
  display: grid;
  grid-template-columns: 105px 1fr;
  gap: 14px;
  padding: 13px 0;
  border-bottom: 1px solid #cfc8b9;
  font-size: .82rem;
}

.news-list time {
  color: var(--muted);
  font-family: Georgia, serif;
}

.news-list a:hover {
  color: var(--green);
  text-decoration: underline;
}


/* =========================================================
   Factory
========================================================= */

.factory-section {
  display: grid;
  grid-template-columns: 34% 66%;
  min-height: 410px;
  background: var(--green);
}

.factory-copy {
  display: flex;
  align-items: center;
  color: var(--white);
  background:
    linear-gradient(rgba(18,63,42,.93), rgba(18,63,42,.93)),
    url("images/factory-copy-bg.jpg") center / cover no-repeat;
}

.factory-copy-inner {
  width: min(86%, 500px);
  margin-inline: auto;
  padding: 54px 0;
}

.factory-copy h2 {
  margin: 8px 0 16px;
  font-size: clamp(2rem, 3.6vw, 3.4rem);
  line-height: 1.35;
  font-weight: 500;
  letter-spacing: .05em;
}

.factory-copy p {
  margin: 0 0 12px;
  color: #e5eee8;
  font-size: .85rem;
}

.factory-copy .btn {
  margin-top: 14px;
}

.factory-gallery {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
}

.factory-gallery figure {
  position: relative;
  margin: 0;
  overflow: hidden;
}

.factory-gallery img {
  width: 100%;
  height: 100%;
  min-height: 410px;
  object-fit: cover;
  transition: transform .35s ease;
}

.factory-gallery figure:hover img {
  transform: scale(1.03);
}

.factory-gallery figcaption {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 18px 12px 14px;
  color: var(--white);
  background: linear-gradient(transparent, rgba(0,0,0,.62));
  text-align: center;
  font-size: .8rem;
}


/* =========================================================
   About / Contact / Access
========================================================= */

.bottom-grid {
  display: grid;
  grid-template-columns: 1.1fr .72fr .78fr;
  gap: 28px;
  align-items: stretch;
}

.about-card {
  overflow: hidden;
  background: var(--cream);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.about-card img {
  aspect-ratio: 16 / 8;
  object-fit: cover;
}

.about-card > div {
  padding: 24px;
}

.about-card h2,
.contact-card h2,
.access-card h2 {
  margin: 5px 0 12px;
  color: var(--green);
  font-size: 1.55rem;
  font-weight: 500;
}

.about-card p,
.contact-card p {
  margin: 0 0 10px;
  color: var(--muted);
  font-size: .83rem;
}

.contact-card,
.access-card {
  padding: 28px;
  background: var(--cream);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.contact-phone {
  display: block;
  margin-top: 20px;
  color: var(--green);
  font-family: Georgia, serif;
  font-size: 1.4rem;
  font-weight: 700;
}

.contact-hours {
  margin-top: 2px !important;
  font-size: .72rem !important;
}

.contact-card .btn {
  margin-top: 18px;
}

.contact-card small {
  display: block;
  margin-top: 10px;
  color: var(--muted);
  text-align: center;
  font-size: .7rem;
}

.access-card dl {
  margin: 0 0 22px;
}

.access-card dl > div {
  display: grid;
  grid-template-columns: 72px 1fr;
  gap: 12px;
  padding: 8px 0;
  border-bottom: 1px solid #d8d1c4;
  font-size: .78rem;
}

.access-card dt {
  font-weight: 700;
  color: var(--green);
}

.access-card dd {
  margin: 0;
  color: var(--muted);
}


/* =========================================================
   Footer
========================================================= */

.site-footer {
  color: var(--white);
  background: var(--green);
}

.footer-main {
  min-height: 104px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 30px;
}

.footer-brand {
  display: flex;
  align-items: baseline;
  gap: 12px;
}

.footer-brand strong {
  font-size: 1.45rem;
  letter-spacing: .12em;
}

.footer-brand span {
  font-family: Arial, sans-serif;
  font-size: .65rem;
  letter-spacing: .22em;
}

.footer-nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 10px 18px;
  font-size: .74rem;
}

.copyright {
  padding: 13px 20px;
  border-top: 1px solid rgba(255,255,255,.15);
  text-align: center;
  color: #d2dfd6;
  font-family: Arial, sans-serif;
  font-size: .65rem;
}


/* =========================================================
   Tablet : 769px - 1180px
========================================================= */

@media (max-width: 1180px) {

  .main-nav,
  .header-contact {
    display: none;
  }

  .header-main {
    min-height: 78px;
    justify-content: space-between;
  }

  .mobile-menu {
    display: block;
    position: relative;
  }

  .mobile-menu summary {
    width: 46px;
    height: 42px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    padding: 8px;
    border: 1px solid var(--green);
    border-radius: 5px;
    cursor: pointer;
    list-style: none;
  }

  .mobile-menu summary::-webkit-details-marker {
    display: none;
  }

  .mobile-menu summary span {
    width: 100%;
    height: 2px;
    background: var(--green);
  }

  .mobile-menu nav {
    position: absolute;
    top: calc(100% + 10px);
    right: 0;
    width: min(340px, 82vw);
    display: flex;
    flex-direction: column;
    padding: 10px;
    background: var(--white);
    border: 1px solid var(--line);
    border-radius: 6px;
    box-shadow: var(--shadow);
  }

  .mobile-menu nav a {
    padding: 12px 10px;
    border-bottom: 1px solid #ece7dd;
    font-size: .84rem;
  }

  .hero-content {
    width: min(760px, 70%);
  }

  .hero-badges {
    grid-template-columns: repeat(2, 1fr);
  }

  .strength-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .service-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .factory-section {
    grid-template-columns: 1fr;
  }

  .factory-gallery {
    grid-template-columns: repeat(4, 1fr);
  }

  .factory-gallery img {
    min-height: 260px;
  }

  .bottom-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .about-card {
    grid-column: 1 / -1;
    display: grid;
    grid-template-columns: .9fr 1.1fr;
  }

  .about-card img {
    height: 100%;
    aspect-ratio: auto;
  }
}


/* =========================================================
   Smartphone : max 768px
========================================================= */

@media (max-width: 768px) {

  .header-top {
    display: none;
  }

  .header-main {
    min-height: 70px;
  }

  .brand-symbol {
    width: 42px;
    height: 42px;
    font-size: 1.4rem;
  }

  .brand-copy strong {
    font-size: 1.42rem;
  }

  .brand-copy small {
    font-size: .52rem;
  }

  .pc-only {
    display: none;
  }

  .hero {
    min-height: auto;
    background-position: 62% center;
  }

  .hero-overlay {
    background:
      linear-gradient(
        180deg,
        rgba(255,255,255,.95) 0%,
        rgba(255,255,255,.91) 58%,
        rgba(255,255,255,.72) 100%
      );
  }

  .hero-inner {
    min-height: auto;
  }

  .hero-content {
    width: 100%;
    padding: 58px 0 64px;
  }

  .hero h1 {
    font-size: clamp(2.55rem, 13vw, 4rem);
  }

  .hero-sub {
    font-size: 1.02rem;
  }

  .hero-text {
    font-size: .84rem;
  }

  .hero-badges {
    grid-template-columns: 1fr 1fr;
  }

  .hero-actions {
    flex-direction: column;
  }

  .hero-actions .btn {
    width: 100%;
  }

  .hero-points {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px 12px;
  }

  .section {
    padding: 62px 0;
  }

  .strength-grid {
    grid-template-columns: 1fr 1fr;
  }

  .service-grid {
    grid-template-columns: 1fr 1fr;
  }

  .content-split {
    grid-template-columns: 1fr;
    gap: 48px;
  }

  .works-grid {
    grid-template-columns: 1fr;
  }

  .work-card {
    display: grid;
    grid-template-columns: 42% 58%;
  }

  .work-card img {
    height: 100%;
    aspect-ratio: auto;
  }

  .work-card > div {
    display: flex;
    flex-direction: column;
    justify-content: center;
    text-align: left;
  }

  .news-list li {
    grid-template-columns: 1fr;
    gap: 2px;
  }

  .factory-gallery {
    grid-template-columns: 1fr 1fr;
  }

  .factory-gallery img {
    min-height: 220px;
  }

  .bottom-grid {
    grid-template-columns: 1fr;
  }

  .about-card {
    grid-column: auto;
    display: block;
  }

  .about-card img {
    aspect-ratio: 16 / 9;
  }

  .footer-main {
    flex-direction: column;
    align-items: flex-start;
    padding-top: 30px;
    padding-bottom: 26px;
  }

  .footer-nav {
    justify-content: flex-start;
  }
}


/* =========================================================
   Small Smartphone : max 480px
========================================================= */

@media (max-width: 480px) {

  .container {
    width: min(90%, var(--container));
  }

  .hero h1 {
    font-size: 2.55rem;
  }

  .hero-badges,
  .hero-points,
  .strength-grid,
  .service-grid,
  .factory-gallery {
    grid-template-columns: 1fr;
  }

  .hero-badges span {
    min-height: 48px;
  }

  .strength-card {
    display: grid;
    grid-template-columns: 40% 60%;
  }

  .strength-card img {
    height: 100%;
    aspect-ratio: auto;
  }

  .card-body {
    padding: 18px 16px;
  }

  .card-number {
    display: none;
  }

  .service-card {
    display: grid;
    grid-template-columns: 42% 58%;
  }

  .service-card img {
    height: 100%;
    aspect-ratio: auto;
  }

  .service-card > div {
    display: flex;
    flex-direction: column;
    justify-content: center;
    text-align: left;
    padding: 16px;
  }

  .factory-gallery figure:nth-child(n+3) {
    display: none;
  }

  .factory-gallery img {
    min-height: 230px;
  }

  .contact-card,
  .access-card,
  .about-card > div {
    padding: 22px;
  }

  .access-card dl > div {
    grid-template-columns: 1fr;
    gap: 1px;
  }

  .footer-brand {
    flex-direction: column;
    gap: 2px;
  }
}
