/* =========================================================
   音改堂 ONKAIDO
   オーダーメイドページ専用スタイル
   既存 style.css と併用
========================================================= */

.custom-hero {
  position: relative;
  min-height: 720px;
  overflow: hidden;
  display: flex;
  align-items: center;
  color: var(--white);
  background: var(--green);
}

.custom-hero-media {
  position: absolute;
  inset: 0;
  background:
    url("images/custom-hero.jpg") 70% center / cover no-repeat;
  transform: scale(1.01);
}

.custom-hero-shade {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(10,41,27,.94) 0%, rgba(10,41,27,.84) 37%, rgba(10,41,27,.38) 67%, rgba(10,41,27,.13) 100%),
    linear-gradient(180deg, rgba(0,0,0,.12), rgba(0,0,0,.18));
}

.custom-hero-inner {
  position: relative;
  z-index: 2;
  padding-top: 70px;
  padding-bottom: 70px;
}

.custom-hero-copy {
  width: min(660px, 100%);
}

.custom-kicker,
.custom-section-heading > span {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: var(--green-3);
  font-family: Arial, sans-serif;
  font-size: .68rem;
  font-weight: 700;
  letter-spacing: .22em;
}

.custom-kicker::before,
.custom-section-heading > span::before {
  content: "";
  width: 34px;
  height: 1px;
  background: currentColor;
}

.custom-kicker {
  color: #d7e6dc;
}

.custom-kicker.light {
  color: #e4efe8;
}

.custom-hero h1 {
  margin: 16px 0 20px;
  font-size: clamp(2.7rem, 6vw, 5.3rem);
  line-height: 1.16;
  letter-spacing: .04em;
  font-weight: 500;
}

.custom-hero h1 em {
  color: #f0d7ac;
  font-style: normal;
}

.custom-hero-lead {
  margin: 0;
  color: #f3f5f3;
  font-size: clamp(1rem, 1.65vw, 1.22rem);
  line-height: 2;
}

.custom-hero-note {
  max-width: 620px;
  margin: 18px 0 0;
  color: rgba(255,255,255,.77);
  font-size: .84rem;
}

.custom-hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 30px;
}

.custom-hero .btn-primary {
  color: var(--green);
  background: #f4ead7;
  border-color: #f4ead7;
}

.custom-hero .btn-primary:hover {
  background: #fff;
}

.custom-hero-points {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 18px;
  margin: 25px 0 0;
  padding: 0;
  list-style: none;
  color: rgba(255,255,255,.79);
  font-size: .73rem;
}

.custom-hero-points li::before {
  content: "✓";
  margin-right: 7px;
  color: #f0d7ac;
}


/* ---------------------------------------------------------
   Common section
--------------------------------------------------------- */

.custom-section {
  padding: 100px 0;
}

.custom-section-heading {
  max-width: 850px;
  margin-bottom: 46px;
}

.custom-section-heading.center {
  margin-left: auto;
  margin-right: auto;
  text-align: center;
}

.custom-section-heading.center > span {
  justify-content: center;
}

.custom-section-heading h2 {
  margin: 10px 0 14px;
  color: var(--green);
  font-size: clamp(2rem, 4vw, 3.35rem);
  line-height: 1.35;
  letter-spacing: .05em;
  font-weight: 500;
}

.custom-section-heading p {
  margin: 0;
  color: var(--muted);
  font-size: .86rem;
  line-height: 2;
}


/* ---------------------------------------------------------
   Philosophy
--------------------------------------------------------- */

.custom-philosophy {
  background:
    radial-gradient(circle at 90% 8%, rgba(216,183,133,.20), transparent 25%),
    var(--cream);
}

.philosophy-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(360px, .92fr);
  gap: 70px;
  align-items: start;
}

.philosophy-copy {
  color: var(--text);
}

.philosophy-copy > p {
  margin: 0 0 21px;
  color: var(--muted);
  font-size: .9rem;
  line-height: 2.15;
}

.philosophy-copy .philosophy-lead {
  color: var(--text);
  font-size: 1rem;
}

.pull-quote {
  margin: 34px 0;
  padding: 28px 0 28px 30px;
  border-left: 3px solid var(--green);
}

.pull-quote span {
  display: block;
  color: var(--green-3);
  font-size: .75rem;
  letter-spacing: .12em;
}

.pull-quote strong {
  display: block;
  margin-top: 5px;
  color: var(--green);
  font-size: clamp(1.45rem, 3vw, 2.25rem);
  line-height: 1.55;
  font-weight: 500;
  letter-spacing: .04em;
}

.player-examples {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
  margin: 31px 0;
}

.player-examples > div {
  padding: 18px 20px;
  border: 1px solid var(--line);
  background: rgba(255,255,255,.58);
}

.player-examples span {
  display: block;
  color: var(--green);
  font-family: Georgia, serif;
  font-weight: 700;
  letter-spacing: .06em;
}

.player-examples small {
  display: block;
  margin-top: 4px;
  color: var(--muted);
  font-size: .7rem;
}

.philosophy-conclusion {
  padding-top: 21px;
  border-top: 1px solid var(--line);
}

.philosophy-conclusion strong {
  color: var(--green);
}

.photo-frame {
  overflow: hidden;
  margin: 0;
  background: #e5e0d5;
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}

.photo-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.photo-frame-large img {
  aspect-ratio: 4 / 5;
}

.photo-frame figcaption {
  padding: 18px 20px 20px;
  color: var(--muted);
  background: var(--white);
  font-size: .76rem;
}

.photo-frame figcaption span {
  display: block;
  margin-bottom: 4px;
  color: var(--green-3);
  font-family: Arial, sans-serif;
  font-size: .65rem;
  font-weight: 700;
  letter-spacing: .16em;
}

.philosophy-mini-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  border-left: 1px solid var(--line);
  border-top: 1px solid var(--line);
}

.stat-card {
  min-height: 112px;
  padding: 18px;
  background: var(--white);
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.stat-card strong {
  display: block;
  color: var(--wood);
  font-family: Georgia, serif;
  font-size: 1.45rem;
}

.stat-card span {
  display: block;
  margin-top: 8px;
  color: var(--green);
  font-size: .77rem;
  font-weight: 700;
}


/* ---------------------------------------------------------
   Estimate
--------------------------------------------------------- */

.estimate-section {
  background: var(--white);
}

.estimate-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
}

.estimate-card {
  position: relative;
  min-height: 390px;
  overflow: hidden;
  background: var(--green);
  border-radius: var(--radius);
}

.estimate-image,
.estimate-overlay {
  position: absolute;
  inset: 0;
}

.estimate-image {
  background-position: center;
  background-size: cover;
  transition: transform .35s ease;
}

.estimate-guitar { background-image: url("images/estimate-guitar.jpg"); }
.estimate-bass   { background-image: url("images/estimate-bass.jpg"); }
.estimate-neck   { background-image: url("images/estimate-neck.jpg"); }
.estimate-body   { background-image: url("images/estimate-body.jpg"); }

.estimate-overlay {
  background: linear-gradient(180deg, rgba(9,32,22,.05), rgba(9,32,22,.90));
}

.estimate-card:hover .estimate-image {
  transform: scale(1.035);
}

.estimate-copy {
  position: absolute;
  z-index: 2;
  left: 23px;
  right: 23px;
  bottom: 24px;
  color: #fff;
}

.estimate-copy > span {
  display: block;
  color: #e9d4ad;
  font-family: Arial, sans-serif;
  font-size: .61rem;
  font-weight: 700;
  letter-spacing: .18em;
}

.estimate-copy strong {
  display: block;
  margin-top: 5px;
  font-size: 1.35rem;
  font-weight: 500;
  letter-spacing: .05em;
}

.estimate-copy small {
  display: block;
  margin-top: 4px;
  color: rgba(255,255,255,.75);
  font-size: .7rem;
}

.estimate-info {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  margin-top: 34px;
  border: 1px solid var(--line);
  background: var(--cream);
}

.estimate-info > div {
  padding: 24px 25px;
  border-right: 1px solid var(--line);
}

.estimate-info > div:last-child {
  border-right: 0;
}

.estimate-info-num {
  display: block;
  color: var(--wood);
  font-family: Georgia, serif;
  font-size: 1.4rem;
}

.estimate-info strong {
  display: block;
  margin-top: 5px;
  color: var(--green);
  font-size: .93rem;
}

.estimate-info p {
  margin: 6px 0 0;
  color: var(--muted);
  font-size: .75rem;
}

.estimate-notice {
  margin: 17px 0 0;
  color: var(--muted);
  text-align: center;
  font-size: .72rem;
}


/* ---------------------------------------------------------
   Flow
--------------------------------------------------------- */

.flow-section {
  background: var(--soft);
}

.flow-list {
  position: relative;
  display: grid;
  gap: 0;
  max-width: 1060px;
  margin-inline: auto;
}

.flow-step {
  display: grid;
  grid-template-columns: 82px 78px 1fr;
  gap: 22px;
  align-items: center;
  min-height: 150px;
  padding: 25px 32px;
  background: var(--white);
  border: 1px solid var(--line);
  border-bottom: 0;
}

.flow-step:last-child {
  border-bottom: 1px solid var(--line);
}

.flow-icon {
  width: 68px;
  height: 68px;
  display: grid;
  place-items: center;
  background: var(--green-soft);
  border-radius: 50%;
}

.flow-icon svg {
  width: 34px;
  height: 34px;
  fill: none;
  stroke: var(--green);
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.flow-number {
  color: var(--wood);
  font-family: Georgia, serif;
  font-size: 2rem;
  text-align: center;
}

.flow-copy h3 {
  margin: 0;
  color: var(--green);
  font-size: 1.13rem;
  font-weight: 600;
}

.flow-copy p {
  margin: 5px 0 0;
  color: var(--muted);
  font-size: .8rem;
}

.support-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  margin-top: 38px;
}

.support-grid article {
  padding: 28px;
  background: var(--green);
  color: #fff;
}

.support-label {
  color: #dec499;
  font-family: Arial, sans-serif;
  font-size: .62rem;
  font-weight: 700;
  letter-spacing: .17em;
}

.support-grid h3 {
  margin: 10px 0 8px;
  font-size: 1.1rem;
  font-weight: 500;
}

.support-grid p {
  margin: 0;
  color: rgba(255,255,255,.73);
  font-size: .75rem;
}


/* ---------------------------------------------------------
   Materials
--------------------------------------------------------- */

.materials-section {
  background: var(--cream);
}

.material-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 14px;
}

.material-card {
  overflow: hidden;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: 0 7px 24px rgba(22,44,31,.045);
}

.material-card figure {
  margin: 0;
  overflow: hidden;
  background:
    linear-gradient(135deg, rgba(216,183,133,.24), rgba(18,63,42,.06)),
    #e7e1d7;
}

.material-card figure img {
  aspect-ratio: 4 / 3;
  object-fit: cover;
  transition: transform .3s ease;
}

.material-card:hover figure img {
  transform: scale(1.03);
}

.material-card > div {
  padding: 20px 18px 21px;
}

.material-card > div > span {
  color: var(--green-3);
  font-family: Arial, sans-serif;
  font-size: .58rem;
  font-weight: 700;
  letter-spacing: .17em;
}

.material-card h3 {
  margin: 3px 0 9px;
  color: var(--green);
  font-size: 1rem;
}

.material-card p {
  min-height: 82px;
  margin: 0;
  color: var(--muted);
  font-size: .72rem;
  line-height: 1.9;
}

.material-card dl {
  margin: 15px 0 0;
  padding-top: 12px;
  border-top: 1px solid var(--line);
  font-size: .65rem;
}

.material-card dl div {
  display: contents;
}

.material-card dt,
.material-card dd {
  display: inline;
  margin: 0;
}

.material-card dt {
  color: var(--green);
  font-weight: 700;
}

.material-card dt::after {
  content: "：";
}

.material-card dd {
  color: var(--muted);
}

.material-card dd::after {
  content: "";
  display: block;
  height: 3px;
}

.material-note {
  display: grid;
  grid-template-columns: .42fr 1.58fr;
  gap: 30px;
  margin-top: 34px;
  padding: 28px 30px;
  border-left: 4px solid var(--green);
  background: var(--green-soft);
}

.material-note strong {
  color: var(--green);
  font-size: 1.05rem;
}

.material-note p {
  margin: 0;
  color: #425148;
  font-size: .78rem;
}


/* ---------------------------------------------------------
   Order works
--------------------------------------------------------- */

.order-works-section {
  background: var(--white);
}

.order-works-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 18px;
}

.order-work-card {
  display: grid;
  grid-template-columns: 46% 54%;
  overflow: hidden;
  min-height: 285px;
  background: var(--cream);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.order-work-card figure {
  margin: 0;
  overflow: hidden;
  background: #e3ddd1;
}

.order-work-card figure img {
  width: 100%;
  height: 100%;
  min-height: 285px;
  object-fit: cover;
  transition: transform .3s ease;
}

.order-work-card:hover figure img {
  transform: scale(1.03);
}

.order-work-card > div {
  padding: 26px 25px;
}

.order-work-card > div > span {
  color: var(--green-3);
  font-family: Arial, sans-serif;
  font-size: .6rem;
  font-weight: 700;
  letter-spacing: .17em;
}

.order-work-card h3 {
  margin: 6px 0 11px;
  color: var(--green);
  font-size: 1.06rem;
  line-height: 1.45;
}

.order-work-card p {
  margin: 0;
  color: var(--muted);
  font-size: .71rem;
  line-height: 1.8;
}

.order-work-card strong {
  display: block;
  margin-top: 17px;
  padding-top: 15px;
  border-top: 1px solid var(--line);
  color: var(--text);
  font-size: .75rem;
  line-height: 1.9;
  font-weight: 600;
}


/* ---------------------------------------------------------
   CTA
--------------------------------------------------------- */

.custom-cta {
  padding: 82px 0;
  color: #fff;
  background:
    radial-gradient(circle at 80% 25%, rgba(216,183,133,.16), transparent 26%),
    var(--green);
}

.custom-cta-inner {
  display: grid;
  grid-template-columns: 1.12fr .88fr;
  gap: 65px;
  align-items: center;
}

.custom-cta h2 {
  margin: 13px 0 15px;
  font-size: clamp(2rem, 4.5vw, 3.7rem);
  line-height: 1.35;
  letter-spacing: .05em;
  font-weight: 500;
}

.custom-cta p {
  margin: 0;
  color: rgba(255,255,255,.73);
  font-size: .83rem;
}

.custom-cta-side {
  padding: 34px;
  border: 1px solid rgba(255,255,255,.24);
  background: rgba(255,255,255,.045);
}

.custom-cta-side ul {
  display: grid;
  gap: 8px;
  margin: 0 0 23px;
  padding: 0;
  list-style: none;
  color: #eef4f0;
  font-size: .79rem;
}

.custom-cta-side li::before {
  content: "✓";
  margin-right: 9px;
  color: #e1c494;
}


/* ---------------------------------------------------------
   Craft
--------------------------------------------------------- */

.craft-section {
  background: var(--cream);
}

.craft-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 15px;
}

.craft-grid figure {
  position: relative;
  overflow: hidden;
  margin: 0;
  min-height: 330px;
  background: #e3ddd1;
  border-radius: var(--radius);
}

.craft-grid img {
  width: 100%;
  height: 100%;
  min-height: 330px;
  object-fit: cover;
  transition: transform .35s ease;
}

.craft-grid figure:hover img {
  transform: scale(1.03);
}

.craft-grid figcaption {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 35px 20px 18px;
  color: #fff;
  background: linear-gradient(transparent, rgba(0,0,0,.72));
}

.craft-grid figcaption span {
  color: #e8cda4;
  font-family: Georgia, serif;
  font-size: 1.2rem;
}

.craft-grid figcaption strong {
  font-size: .88rem;
  letter-spacing: .04em;
}


/* ---------------------------------------------------------
   Bottom contact
--------------------------------------------------------- */

.custom-bottom-contact {
  padding: 63px 0;
  background: var(--white);
  border-top: 1px solid var(--line);
}

.custom-bottom-contact-inner {
  display: flex;
  justify-content: space-between;
  gap: 50px;
  align-items: center;
}

.custom-bottom-contact h2 {
  margin: 8px 0 7px;
  color: var(--green);
  font-size: clamp(1.65rem, 3vw, 2.45rem);
  font-weight: 500;
}

.custom-bottom-contact p {
  margin: 0;
  color: var(--muted);
  font-size: .8rem;
}

.bottom-contact-actions {
  display: flex;
  align-items: center;
  gap: 22px;
  flex-shrink: 0;
}

.custom-phone {
  color: var(--green);
  font-family: Georgia, serif;
  font-size: 1.23rem;
  font-weight: 700;
  white-space: nowrap;
}


/* ---------------------------------------------------------
   Image fallbacks
--------------------------------------------------------- */

.material-card figure,
.order-work-card figure,
.craft-grid figure,
.photo-frame-large,
.estimate-image,
.custom-hero-media {
  background-color: #dfd8cb;
}


/* ---------------------------------------------------------
   Responsive
--------------------------------------------------------- */

@media (max-width: 1180px) {
  .estimate-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .estimate-card {
    min-height: 350px;
  }

  .material-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .order-work-card {
    grid-template-columns: 42% 58%;
  }
}

@media (max-width: 900px) {
  .custom-section {
    padding: 76px 0;
  }

  .custom-hero {
    min-height: 650px;
  }

  .custom-hero-media {
    background-position: 63% center;
  }

  .philosophy-grid,
  .custom-cta-inner {
    grid-template-columns: 1fr;
  }

  .philosophy-visual {
    max-width: 620px;
  }

  .flow-step {
    grid-template-columns: 68px 58px 1fr;
    padding: 22px;
  }

  .support-grid {
    grid-template-columns: 1fr;
  }

  .material-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .order-works-grid {
    grid-template-columns: 1fr;
  }

  .craft-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .custom-bottom-contact-inner {
    align-items: flex-start;
    flex-direction: column;
  }
}

@media (max-width: 680px) {
  .custom-hero {
    min-height: 690px;
    align-items: flex-end;
  }

  .custom-hero-media {
    background-position: 68% center;
  }

  .custom-hero-shade {
    background:
      linear-gradient(180deg, rgba(10,41,27,.28) 0%, rgba(10,41,27,.72) 38%, rgba(10,41,27,.96) 72%, rgba(10,41,27,.99) 100%);
  }

  .custom-hero-inner {
    padding-top: 165px;
    padding-bottom: 48px;
  }

  .custom-hero h1 {
    font-size: clamp(2.35rem, 12vw, 3.7rem);
  }

  .custom-hero-lead br,
  .custom-hero-note br {
    display: none;
  }

  .custom-hero-actions {
    flex-direction: column;
  }

  .custom-hero-actions .btn {
    width: 100%;
  }

  .custom-section {
    padding: 62px 0;
  }

  .custom-section-heading {
    margin-bottom: 31px;
  }

  .player-examples,
  .estimate-grid,
  .estimate-info,
  .material-grid,
  .craft-grid {
    grid-template-columns: 1fr;
  }

  .estimate-card {
    min-height: 290px;
  }

  .estimate-info > div {
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .estimate-info > div:last-child {
    border-bottom: 0;
  }

  .flow-step {
    grid-template-columns: 58px 1fr;
    gap: 15px;
    min-height: 0;
    padding: 21px 18px;
  }

  .flow-icon {
    width: 54px;
    height: 54px;
  }

  .flow-icon svg {
    width: 28px;
    height: 28px;
  }

  .flow-number {
    display: none;
  }

  .material-note {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .order-work-card {
    grid-template-columns: 1fr;
  }

  .order-work-card figure img {
    min-height: 0;
    aspect-ratio: 16 / 10;
  }

  .custom-cta-side {
    padding: 25px 20px;
  }

  .craft-grid figure,
  .craft-grid img {
    min-height: 285px;
  }

  .bottom-contact-actions {
    width: 100%;
    align-items: stretch;
    flex-direction: column;
  }

  .bottom-contact-actions .btn {
    width: 100%;
  }

  .custom-phone {
    text-align: center;
  }
}
