@charset "UTF-8";

/* =========================================================
   いしかわ電工有限会社 ご提案専用サンプル
   配色は現行のフロン回収専用ページ（/freon/）から採取
   紺 #051938 / 青 #185adb / 濃青 #0e4aa7 / 黄 #ffd124
   ========================================================= */

:root {
  color-scheme: only light;
  --navy: #051938;
  --navy-deep: #04142c;
  --navy-mid: #0b2c5b;
  --blue: #185adb;
  --blue-light: #1363df;
  --blue-dark: #0e4aa7;
  --yellow: #ffd124;
  --ink: #333333;
  --ink-soft: #5c6470;
  --line: #dbdcdc;
  --bg-soft: #f7f7f7;
  --white: #ffffff;
  --sky: #7fc4ff;
  --inner: min(1120px, 100% - 48px);
  --radius: 6px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--white);
  color: var(--ink);
  font-family:
    "Hiragino Kaku Gothic ProN", "Hiragino Sans", "Noto Sans JP",
    "Yu Gothic Medium", "Yu Gothic", Meiryo, sans-serif;
  font-size: 18px;
  line-height: 1.85;
  font-feature-settings: "palt";
}

img {
  max-width: 100%;
  height: auto;
  vertical-align: bottom;
}

a {
  color: var(--blue-dark);
}

h1,
h2,
h3 {
  margin: 0;
  line-height: 1.45;
  font-weight: 700;
}

p {
  margin: 0 0 1.2em;
}

p:last-child {
  margin-bottom: 0;
}

ul,
ol {
  margin: 0;
  padding: 0;
  list-style: none;
}

.only-pc {
  display: none;
}

/* ===== 提案専用注釈 ===== */
.proposal-note {
  background: var(--yellow);
  color: #2b2100;
  padding: 12px 24px;
  font-size: 13px;
  line-height: 1.65;
}

.proposal-note p {
  max-width: 1120px;
  margin: 0 auto;
}

.proposal-note__line2 {
  margin-top: 6px;
  padding-top: 6px;
  border-top: 1px solid rgba(43, 33, 0, 0.25);
}

/* ===== ヘッダー ===== */
.header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--white);
  border-bottom: 1px solid var(--line);
}

.header__inner {
  width: var(--inner);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 68px;
}

.header__logo {
  display: block;
  line-height: 0;
}

.header__logo img {
  width: 232px;
}

.header__toggle {
  display: flex;
  align-items: center;
  gap: 8px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--white);
  color: var(--ink);
  font: inherit;
  font-size: 15px;
  font-weight: 700;
  padding: 8px 12px;
  cursor: pointer;
}

.header__toggle-bar {
  position: relative;
  display: block;
  width: 20px;
  height: 2px;
  background: var(--ink);
}

.header__toggle-bar::before,
.header__toggle-bar::after {
  content: "";
  position: absolute;
  left: 0;
  width: 20px;
  height: 2px;
  background: var(--ink);
  transition: transform 0.25s;
}

.header__toggle-bar::before {
  top: -6px;
}

.header__toggle-bar::after {
  top: 6px;
}

.header__toggle[aria-expanded="true"] .header__toggle-bar {
  background: transparent;
}

.header__toggle[aria-expanded="true"] .header__toggle-bar::before {
  transform: translateY(6px) rotate(45deg);
}

.header__toggle[aria-expanded="true"] .header__toggle-bar::after {
  transform: translateY(-6px) rotate(-45deg);
}

.nav {
  display: none;
}

.nav.is-open {
  display: block;
  position: absolute;
  left: 0;
  right: 0;
  top: 100%;
  background: var(--white);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding: 8px 24px 24px;
  max-height: calc(100vh - 80px);
  overflow-y: auto;
}

.nav__list li + li {
  border-top: 1px solid var(--line);
}

.nav__list a {
  display: block;
  padding: 14px 4px;
  white-space: nowrap;
  color: var(--ink);
  text-decoration: none;
  font-weight: 700;
}

.nav__contact {
  margin-top: 20px;
  display: grid;
  gap: 12px;
}

.nav__tel {
  display: block;
  background: var(--bg-soft);
  border-radius: var(--radius);
  padding: 14px 16px;
  text-align: center;
  text-decoration: none;
  color: var(--ink);
}

.nav__tel-label {
  display: block;
  font-size: 14px;
}

.nav__tel-number {
  display: block;
  white-space: nowrap;
  font-size: 28px;
  font-weight: 700;
  line-height: 1.3;
  color: var(--blue-dark);
}

.nav__tel-time {
  display: block;
  font-size: 14px;
}

.nav__button {
  display: block;
  background: var(--yellow);
  color: #2b2100;
  font-weight: 700;
  text-align: center;
  text-decoration: none;
  padding: 14px 16px;
  border-radius: 40px;
}

/* ===== 共通セクション ===== */
.section__inner {
  width: var(--inner);
  margin: 0 auto;
  padding: 72px 0;
}

.section__label {
  display: inline-block;
  margin: 0 0 14px;
  padding: 4px 14px;
  background: var(--blue);
  color: var(--white);
  font-size: 15px;
  font-weight: 700;
  border-radius: 40px;
}

.section__title {
  font-size: 30px;
  margin-bottom: 18px;
}

.section__lead {
  max-width: 46em;
  color: var(--ink-soft);
}

/* ===== ボタン ===== */
.button {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  padding: 14px 28px;
  border-radius: 40px;
  font-weight: 700;
  text-decoration: none;
  text-align: center;
  border: 2px solid transparent;
  transition:
    background-color 0.25s,
    color 0.25s,
    border-color 0.25s;
}

.button--primary {
  background: var(--yellow);
  border-color: var(--yellow);
  color: #2b2100;
}

.button--primary:hover {
  background: #ffdd5c;
  border-color: #ffdd5c;
}

.button__sub {
  font-size: 14px;
  font-weight: 700;
}

.button__main {
  font-size: 28px;
  line-height: 1.2;
  letter-spacing: 0.02em;
}

.button--ghost {
  background: transparent;
  border-color: currentColor;
  padding: 16px 28px;
}

.button--submit {
  display: block;
  width: 100%;
  background: var(--line);
  color: #767676;
  border-color: var(--line);
  font-size: 17px;
  cursor: not-allowed;
}

/* ===== ヒーロー ===== */
.hero {
  background: linear-gradient(
    160deg,
    var(--navy-deep) 0%,
    var(--navy-mid) 100%
  );
  color: var(--white);
}

.hero__inner {
  width: var(--inner);
  margin: 0 auto;
  padding: 64px 0 72px;
}

.hero__eyebrow {
  font-size: 16px;
  font-weight: 700;
  color: var(--sky);
  margin-bottom: 18px;
  line-height: 1.7;
}

.hero__title {
  font-size: 44px;
  letter-spacing: 0.02em;
  margin-bottom: 24px;
}

.hero__lead {
  font-size: 18px;
  color: #dbe6f5;
  margin-bottom: 18px;
}

.hero__quote {
  font-size: 20px;
  font-weight: 700;
  color: var(--yellow);
  margin-bottom: 32px;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

.hero .button--ghost {
  color: var(--white);
}

.hero .button--ghost:hover {
  background: rgba(255, 255, 255, 0.12);
}

/* ===== ギミック：見えないものを見る ===== */
.works {
  background: var(--navy);
  color: var(--white);
}

.works .section__title {
  color: var(--white);
}

.works .section__lead {
  color: #c3d3e8;
}

.works .section__label {
  background: var(--yellow);
  color: #2b2100;
}

.scene {
  margin-top: 32px;
}

.scene__tabs {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
  margin-bottom: 16px;
}

.scene__tab {
  font: inherit;
  font-size: 17px;
  font-weight: 700;
  padding: 12px 4px;
  border-radius: var(--radius);
  border: 2px solid rgba(255, 255, 255, 0.35);
  background: transparent;
  color: var(--white);
  cursor: pointer;
  transition:
    background-color 0.25s,
    color 0.25s,
    border-color 0.25s;
}

.scene__tab:hover {
  background: rgba(255, 255, 255, 0.12);
}

.scene__tab.is-active {
  background: var(--yellow);
  border-color: var(--yellow);
  color: #2b2100;
}

.scene__figure {
  background: var(--navy-deep);
  border: 1px solid rgba(127, 196, 255, 0.28);
  border-radius: var(--radius);
  overflow: hidden;
}

.scene__svg {
  display: block;
  width: 100%;
  height: auto;
}

.scene__layer {
  opacity: 0;
  transition: opacity 0.35s ease;
}

.scene__figure[data-active="wave"] .scene__layer[data-layer="wave"],
.scene__figure[data-active="power"] .scene__layer[data-layer="power"],
.scene__figure[data-active="air"] .scene__layer[data-layer="air"],
.scene__figure[data-active="freon"] .scene__layer[data-layer="freon"] {
  opacity: 1;
}

.scene__captions {
  margin-top: 16px;
  background: rgba(255, 255, 255, 0.07);
  border-radius: var(--radius);
  padding: 20px 22px;
  min-height: 132px;
}

.scene__caption {
  display: none;
  margin: 0;
  color: #e4edf9;
}

.scene__caption.is-active {
  display: block;
}

.scene__caption strong {
  color: var(--yellow);
}

.scene__caption-note {
  display: block;
  margin-top: 4px;
  color: var(--sky);
  font-size: 16px;
}

/* ===== 事業内容 ===== */
.service {
  background: var(--white);
}

.cards {
  margin-top: 36px;
  display: grid;
  gap: 24px;
}

.card {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--white);
  display: flex;
  flex-direction: column;
}

.card__photo {
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: var(--bg-soft);
}

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

.card__body {
  padding: 22px 22px 26px;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.card__target {
  display: inline-block;
  align-self: flex-start;
  margin-bottom: 10px;
  padding: 3px 12px;
  background: var(--bg-soft);
  border: 1px solid var(--line);
  border-radius: 40px;
  font-size: 14px;
  font-weight: 700;
  color: var(--ink-soft);
}

.card__title {
  font-size: 23px;
  margin-bottom: 12px;
  padding-bottom: 12px;
  border-bottom: 3px solid var(--yellow);
}

.card__text {
  font-size: 17px;
}

.card__list {
  margin-top: auto;
  padding-top: 14px;
  border-top: 1px dashed var(--line);
  font-size: 16px;
}

.card__list li {
  padding-left: 1.2em;
  position: relative;
  color: var(--ink-soft);
}

.card__list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.75em;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--blue);
}

.card__link-wrap {
  margin: 18px 0 0;
  padding-top: 14px;
  border-top: 1px dashed var(--line);
}

.card__link {
  font-weight: 700;
  color: var(--blue-dark);
}

/* ===== フロン回収からの受け皿 ===== */
.bridge {
  background: var(--bg-soft);
}

.bridge__box {
  background: var(--white);
  border: 3px solid var(--yellow);
  border-radius: var(--radius);
  padding: 36px 28px 40px;
}

.bridge__label {
  display: inline-block;
  margin-bottom: 14px;
  padding: 4px 14px;
  background: var(--yellow);
  color: #2b2100;
  font-size: 15px;
  font-weight: 700;
  border-radius: 40px;
}

.bridge__title {
  font-size: 30px;
  margin-bottom: 16px;
}

.bridge__text {
  max-width: 46em;
}

.bridge__actions {
  margin-top: 26px;
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

.bridge .button--ghost {
  color: var(--blue-dark);
}

.bridge .button--ghost:hover {
  background: rgba(24, 90, 219, 0.08);
}

/* ===== 工事の流れ ===== */
.flow {
  background: var(--white);
}

.flow__list {
  margin-top: 36px;
  display: grid;
  gap: 14px;
}

.flow__item {
  display: flex;
  align-items: stretch;
  gap: 0;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
}

.flow__num {
  flex: 0 0 68px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--blue-dark);
  color: var(--white);
  font-size: 22px;
  font-weight: 700;
}

.flow__body {
  padding: 16px 20px;
  flex: 1;
}

.flow__title {
  font-size: 19px;
  margin-bottom: 4px;
}

.flow__body p {
  font-size: 17px;
  color: var(--ink-soft);
}

/* ===== 会社案内 ===== */
.company {
  background: var(--bg-soft);
}

.company__grid {
  margin-top: 32px;
  display: grid;
  gap: 32px;
  align-items: stretch;
}

.company__quote {
  font-size: 22px;
  font-weight: 700;
  color: var(--blue-dark);
  line-height: 1.6;
}

.company__photo {
  margin: 32px 0 0;
}

.company__photo img {
  width: 100%;
  height: 220px;
  object-fit: cover;
  border-radius: var(--radius);
}

/* 沿革 */
.history {
  margin: 26px 0 0;
  border-top: 1px solid var(--line);
}

.history__row {
  display: flex;
  gap: 16px;
  padding: 12px 0;
  border-bottom: 1px solid var(--line);
}

.history__year {
  flex: 0 0 8.5em;
  font-weight: 700;
  color: var(--blue-dark);
  font-size: 17px;
}

.history__text {
  margin: 0;
  font-size: 17px;
}

.company__table {
  width: 100%;
  border-collapse: collapse;
  background: var(--white);
  font-size: 17px;
}

.company__table th,
.company__table td {
  border: 1px solid var(--line);
  padding: 12px 14px;
  text-align: left;
  vertical-align: top;
}

.company__table th {
  width: 34%;
  background: #eef1f5;
  font-weight: 700;
  white-space: nowrap;
}

.company__note {
  display: block;
  margin-top: 6px;
  font-size: 14px;
  color: var(--ink-soft);
}

.company__caution {
  margin-top: 14px;
  font-size: 14px;
  color: var(--ink-soft);
}

/* ===== アクセス ===== */
.access {
  margin-top: 44px;
  padding-top: 36px;
  border-top: 1px solid var(--line);
}

.access__title {
  font-size: 24px;
  margin-bottom: 20px;
  padding-left: 14px;
  border-left: 5px solid var(--blue);
}

.access__grid {
  display: grid;
  gap: 24px;
}

.access__list {
  margin: 0;
}

.access__row {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 14px;
  padding: 12px 0;
  border-bottom: 1px solid var(--line);
}

.access__row dt {
  flex: 0 0 8.5em;
  font-weight: 700;
  color: var(--blue-dark);
  font-size: 17px;
}

.access__row dd {
  margin: 0;
  flex: 1 1 15em;
  font-size: 17px;
}

.access__note {
  margin-top: 14px;
  font-size: 15px;
  color: var(--ink-soft);
}

.access__button {
  margin-top: 18px;
  color: var(--blue-dark);
}

.access__button:hover {
  background: rgba(24, 90, 219, 0.08);
}

.access__map {
  position: relative;
  width: 100%;
  aspect-ratio: 4 / 3;
  border-radius: var(--radius);
  overflow: hidden;
  background: #e8ecf2;
}

.access__map iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

/* ===== お問い合わせ ===== */
.contact {
  background: var(--navy);
  color: var(--white);
}

.contact .section__title {
  color: var(--white);
}

.contact .section__label {
  background: var(--yellow);
  color: #2b2100;
}

.contact__grid {
  margin-top: 32px;
  display: grid;
  gap: 28px;
}

.contact__tel-box {
  background: rgba(255, 255, 255, 0.07);
  border-radius: var(--radius);
  padding: 32px 24px;
  text-align: center;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.contact__lead {
  font-size: 17px;
  margin-bottom: 22px;
  padding-bottom: 20px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.18);
}

.contact__tel-label {
  font-size: 16px;
  margin-bottom: 6px;
}

.contact__tel {
  display: inline-block;
  font-size: 40px;
  font-weight: 700;
  line-height: 1.2;
  color: var(--yellow);
  text-decoration: none;
  letter-spacing: 0.02em;
}

.contact__time {
  font-size: 16px;
  margin: 6px 0 14px;
}

.contact__fax,
.contact__mail {
  font-size: 17px;
  margin-bottom: 6px;
}

.contact__hint {
  margin-top: 22px;
  padding-top: 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.18);
  font-size: 15px;
  color: #b7c6db;
}

.contact__mail a {
  color: var(--sky);
}

.contact__tel-box .contact__tel {
  color: var(--yellow);
}

.contact__form {
  background: var(--white);
  color: var(--ink);
  border-radius: var(--radius);
  padding: 26px 24px 30px;
}

.contact__form-note {
  font-size: 14px;
  color: var(--ink-soft);
  margin-bottom: 18px;
}

.field {
  display: block;
  margin-bottom: 16px;
}

.field__label {
  display: block;
  font-size: 16px;
  font-weight: 700;
  margin-bottom: 6px;
}

.field__input {
  width: 100%;
  font: inherit;
  font-size: 17px;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #f6f8fe;
}

.field__input--area {
  resize: vertical;
}

/* ===== フッター ===== */
.footer {
  background: var(--navy);
  color: #c9d6e8;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
}

.footer__inner {
  width: var(--inner);
  margin: 0 auto;
  padding: 40px 0 120px;
}

.footer__logo {
  width: 240px;
}

.footer__info {
  margin-top: 18px;
  font-size: 16px;
  line-height: 1.9;
}

.footer__copy {
  font-size: 14px;
  margin-bottom: 16px;
}

.footer__note {
  font-size: 14px;
  line-height: 1.85;
  color: #9fb2ca;
  border-top: 1px solid rgba(255, 255, 255, 0.15);
  padding-top: 16px;
}

/* ===== スマホ固定バー ===== */
.fixed-bar {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 60;
  display: grid;
  grid-template-columns: 1.35fr 1fr;
  gap: 1px;
  background: rgba(0, 0, 0, 0.2);
  box-shadow: 0 -2px 14px rgba(0, 0, 0, 0.18);
}

.fixed-bar__tel,
.fixed-bar__mail {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 10px 6px;
  text-decoration: none;
  font-weight: 700;
  line-height: 1.3;
}

.fixed-bar__tel {
  background: var(--yellow);
  color: #2b2100;
}

.fixed-bar__label {
  font-size: 13px;
}

.fixed-bar__number {
  font-size: 22px;
  letter-spacing: 0.02em;
}

.fixed-bar__mail {
  background: var(--blue-dark);
  color: var(--white);
  font-size: 17px;
}

/* =========================================================
   タブレット以上
   ========================================================= */
@media screen and (min-width: 768px) {
  .only-pc {
    display: inline;
  }

  .section__inner {
    padding: 88px 0;
  }

  .section__title {
    font-size: 34px;
  }

  .hero__inner {
    padding: 88px 0 96px;
  }

  .hero__title {
    font-size: 60px;
  }

  .hero__lead {
    font-size: 19px;
    margin-bottom: 14px;
  }

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

  .bridge__box {
    padding: 48px 44px 52px;
  }

  .bridge__title {
    font-size: 34px;
  }

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

  .flow__item:last-child {
    grid-column: 1 / -1;
  }

  .company__grid {
    grid-template-columns: 1fr 1fr;
    align-items: start;
  }

  .contact__grid {
    grid-template-columns: 1fr 1fr;
    align-items: stretch;
  }

  .contact__tel {
    font-size: 46px;
  }

  .footer__inner {
    padding: 48px 0 56px;
  }

  .company__photo img {
    height: 450px;
  }

  .access__grid {
    grid-template-columns: 1fr 1fr;
    align-items: start;
  }

  .access__map {
    aspect-ratio: 16 / 9;
  }
}

/* =========================================================
   PC（ナビを横並びに・固定バーを隠す）
   ========================================================= */
@media screen and (min-width: 1024px) {
  .header__inner {
    min-height: 84px;
  }

  .header__toggle {
    display: none;
  }

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

  .nav__list {
    display: flex;
    align-items: center;
    gap: 4px;
  }

  .nav__list li + li {
    border-top: 0;
  }

  .nav__list a {
    padding: 8px 7px;
    font-size: 15px;
  }

  .nav__list a:hover {
    color: var(--blue-light);
  }

  .nav__contact {
    margin-top: 0;
    display: flex;
    align-items: center;
    gap: 14px;
  }

  .nav__tel {
    background: transparent;
    padding: 0 4px;
    text-align: right;
  }

  .nav__tel-label,
  .nav__tel-time {
    font-size: 12px;
    line-height: 1.5;
  }

  .nav__tel-number {
    font-size: 22px;
  }

  .nav__button {
    padding: 12px 18px;
    font-size: 16px;
    white-space: nowrap;
  }

  .hero__inner {
    padding: 48px 0 64px;
  }

  .hero__title {
    font-size: 52px;
    margin-bottom: 18px;
  }

  .hero__quote {
    margin-bottom: 24px;
  }

  .fixed-bar {
    display: none;
  }

  .footer__inner {
    padding: 56px 0 60px;
  }

  .scene__tabs {
    max-width: 640px;
  }

  .scene__tab {
    font-size: 18px;
    padding: 14px 4px;
  }
}
