/*
Theme Name: 滋賀の水道屋さんオウミ
Description: 滋賀の水道屋さんオウミのウェブサイトテーマ
Author:yashibous
Author URI: https://yashibous.com
*/

@charset "utf-8";
/* Google Fonts */
@import url('https://fonts.googleapis.com/css2?family=Noto+Sans+JP:wght@100;200;300;400;500;600;700;800;900&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Roboto:wght@100;300;400;500;700;900&display=swap');
/* 共通 */

:root {
  /* フォントファミリー */
  --font-family-main: "Noto Sans JP", sans-serif;
  --font-family-roboto: "Roboto", sans-serif;

  /* カラー */
  --color-primary: #1b4697;
  --color-secondary: #0f66af;
  --color-tertiary: #BBDAE8;
  --color-yellow: #ffff00;
  --color-green: #42a64a;
  --color-orange: #e45229;
  --color-orange-pale: #e96600;

  --color-base: #ffffff;
  --color-contrast: #000000;
  --color-text: #333333;
  --color-cta: var(--color-green);
  --color-bg-primary: #ffffea;
  --color-bg-secondary: #eef5ff;

  --color-grad-primary: #2e94cc,#004097;
  --color-grad-secondary: #0f66af, #0000ae;
  --color-grad-accent: #dd7800, #e45027;
  /* サイズ(section.section__innerで指定する) */
  --px: 1px;
  --size-padding: 20px;
  --size-container: calc(1080px + var(--size-padding) * 2);
  --size-container-wide: min(1920px, 100%);
  --size-container-narrow: calc(800px + var(--size-padding) * 2);
  --size-header-height: calc(97 * var(--px));
  --size-header-height-scroll: var(--size-header-height);
}
@media screen and (max-width: 1040px) {
  :root {
    --px: 1 / 750 * min(750px,100cqi);
    --size-padding: calc(30 * var(--px));
    --size-container: min(100%, 750px);
    --size-container-wide: min(100%, 750px);
    --size-container-narrow: var(--size-container);
    /* --size-header-height: calc(156 * var(--px)); */
    /* --size-header-height-scroll: calc(93 * var(--px)); */
  }
}

html {
  overflow-x: hidden;
}
body {
  color: var(--color-contrast);
  font-family: var(--font-family-main);
  font-weight: 500;
  background-color: var(--color-base);
  position: relative;
}

.container {
  container-type: inline-size;
  container-name: section;
  max-width: 100%;

  /* 通常はinnerクラスを付与したdev */
  --section-inner-size: var(--size-container);
  > * {
    max-width: var(--section-inner-size);
    padding-inline: var(--size-padding);
    margin-inline: auto;
  }

  &[data-width="narrow"] {
    --section-inner-size: var(--size-container-narrow);
  }
}

@media screen and (max-width: 1040px) {
  .pc {
    display: none;
  }
}
@media screen and (min-width: 1041px) {
  .sp {
    display: none;
  }
}

/* フォントパターンごとのスタイル */
.font-roboto {
    font-family: var(--font-family-roboto);
}

p {
    line-height: 1.5em;
}

img {
  display: block;
  width: 100%;
  height: auto;
}

/* 共通クラスのスタイル */
.box_shadow {
    box-shadow: 4px 4px 6px #2228;
}

.box_yellow {
    background-color: #FFF5B7;
}

.flex {
    display: flex;
    justify-content: space-between;
}

.flex_rev {
    flex-direction: row-reverse;
}

.flex_col {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.txt_centered {
    text-align: center;
}

.hide {
    display: none;
}

.fuchi{
  position: relative;
  display: inline-block;
  white-space: nowrap;

  --fuchi-font-size: 1rem;
  --fuchi-font-family: inherit;
  --fuchi-font-weight: inherit;
  --fuchi-offset-x: 0;

  --fuchi-fill: var(--color-yellow);
  --fuchi-stroke: var(--color-primary);
  --fuchi-stroke-width: calc(17 * var(--px));

  --fuchi-shadow-x: 0;
  --fuchi-shadow-y: 0;
  --fuchi-shadow-blur: 0px;
  --fuchi-shadow-color: rgba(0,0,0,.35);
}

/* レイアウト確保（これがあるから他要素と被らない） */
.fuchi__space{
  display: inline-block;
  font-size: calc(var(--fuchi-font-size) * var(--px));
  font-family: var(--fuchi-font-family);
  font-weight: var(--fuchi-font-weight);
  line-height: 1.2;
  color: transparent;
}

/* SVGは上に重ねる */
.fuchi__svg{
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
  overflow: visible;
}

/* SVG text */
.fuchi__text{
  font-size: calc(var(--fuchi-font-size) * var(--px));
  font-family: var(--fuchi-font-family);
  font-weight: var(--fuchi-font-weight);

  fill: var(--fuchi-fill, currentColor);
  stroke: var(--fuchi-stroke, #fff);
  stroke-width: var(--fuchi-stroke-width, calc(14 * var(--px)));
  stroke-linejoin: round;
  paint-order: stroke fill;

  filter: drop-shadow(
    var(--fuchi-shadow-x)
    var(--fuchi-shadow-y)
    var(--fuchi-shadow-blur)
    var(--fuchi-shadow-color)
  );
}

/* 2重縁どり用のクラス */
.fuchi-double {
  position: relative;
  display: inline-block;
  white-space: nowrap;

  --fuchi-double-font-size: 1rem;
  --fuchi-double-font-family: inherit;
  --fuchi-double-font-weight: inherit;
  --fuchi-double-offset-x: 0;

  --fuchi-double-fill: var(--color-yellow);
  --fuchi-double-fill-gradient-start: transparent;
  --fuchi-double-fill-gradient-end: transparent;
  --fuchi-double-stroke-outer: var(--color-primary);
  --fuchi-double-stroke-width-outer: calc(25 * var(--px));
  --fuchi-double-stroke-inner: var(--color-primary);
  --fuchi-double-stroke-width-inner: calc(17 * var(--px));

  --fuchi-double-shadow-x: 0;
  --fuchi-double-shadow-y: 0;
  --fuchi-double-shadow-blur: 0px;
  --fuchi-double-shadow-color: rgba(0,0,0,.35);
}

/* レイアウト確保 */
.fuchi-double__space {
  display: inline-block;
  font-size: calc(var(--fuchi-double-font-size) * var(--px));
  font-family: var(--fuchi-double-font-family);
  font-weight: var(--fuchi-double-font-weight);
  line-height: 1.2;
  color: transparent;
}

/* SVGは上に重ねる */
.fuchi-double__svg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
  overflow: visible;
}

/* SVG text */
.fuchi-double__text {
  font-size: calc(var(--fuchi-double-font-size) * var(--px));
  font-family: var(--fuchi-double-font-family);
  font-weight: var(--fuchi-double-font-weight);
  stroke-linejoin: round;

  filter: drop-shadow(
    var(--fuchi-double-shadow-x)
    var(--fuchi-double-shadow-y)
    var(--fuchi-double-shadow-blur)
    var(--fuchi-double-shadow-color)
  );
}

/* 外側の縁どり */
.fuchi-double__text--outer {
  fill: transparent;
  stroke: var(--fuchi-double-stroke-outer, var(--color-primary));
  stroke-width: var(--fuchi-double-stroke-width-outer, calc(25 * var(--px)));
  paint-order: stroke;
}

/* 内側の縁どり */
.fuchi-double__text--inner {
  fill: var(--fuchi-double-fill, var(--color-yellow));
  stroke: var(--fuchi-double-stroke-inner, var(--color-primary));
  stroke-width: var(--fuchi-double-stroke-width-inner, calc(17 * var(--px)));
  paint-order: stroke fill;
}

/* グラデーションの色制御 */
.fuchi-double__gradient-stop--start {
  stop-color: var(--fuchi-double-fill-gradient-start, transparent);
}

.fuchi-double__gradient-stop--end {
  stop-color: var(--fuchi-double-fill-gradient-end, transparent);
}

/* グラデーションが設定されている場合のfill（parts02__text2用） */
.parts02__text2 .fuchi-double .fuchi-double__text--inner {
  fill: url(#fuchi-double-gradient-2);
}

.paragraph {
  font-size: calc(17 * var(--px));
  font-weight: 500;
  line-height: 2;
  font-feature-settings: "palt";
  text-align: left;
  color: var(--color-text);
  strong {
    font-weight: 700;
    color: var(--color-orange);
  }
  .marker {
    background-color: var(--color-yellow);
    font-weight: 700;
  }
  .red {
    color: #d00011;
    font-weight: 700;
  }
}
@media screen and (max-width: 1079px) {
  .paragraph {
    font-size: calc(32 * var(--px));
    margin-top: 0.5lh;
    line-height: 1.9;
    text-align: justify;
  }
}

.paragraph2 {
  font-size: calc(24 * var(--px));
  font-weight: 500;
  line-height: 1.8;
  font-feature-settings: "palt";
  text-align: left;
  color: var(--color-text);
  strong {
    font-weight: 700;
    color: var(--color-secondary);
  }
}
@media screen and (max-width: 1079px) {
  .paragraph2 {
    font-size: calc(32 * var(--px));
    line-height: 1.7;
    text-align: justify;
  }
}

.heading-h2 {
  background-image: linear-gradient(to right, var(--color-grad-primary));
  border-radius: 0 calc(32 * var(--px)) 0 0;
  padding-inline: 0.5em;
  padding-block: 0.6em;
  font-size: calc(32 * var(--px));
  font-weight: 700;
  line-height: 1.3;
  font-feature-settings: "palt";
  text-align: left;
  color: var(--color-base);
}
@media screen and (max-width: 1079px) {
  .heading-h2 {
    font-size: calc(42 * var(--px));
  }
}
.heading-h3 {
  margin-top: calc(40 * var(--px));
  font-size: calc(28 * var(--px));
  font-weight: 700;
  line-height: 1.3;
  font-feature-settings: "palt";
  text-align: left;
  color: var(--color-text);
  padding-block: 0.1em;
  border-bottom: calc(2 * var(--px)) solid var(--color-secondary);
  position: relative;
  &::before {
    content: "";
    width: 2.5em;
    height: calc(2 * var(--px));
    background-color: var(--color-primary);
    position: absolute;
    bottom: calc(-2 * var(--px));
    left: 0;
  }
}
@media screen and (max-width: 1079px) {
  .heading-h3 {
    font-size: calc(36 * var(--px));
  }
}

/* 町名一覧の伸縮ボタンスタイル */
.parts08__toggle-button {
  background: none;
  border: none;
  color: #0073e6;
  cursor: pointer;
  padding: 5px 0;
  font-size: 14px;
  text-decoration: underline;
  margin-top: 5px;
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

.parts08__toggle-button:hover {
  color: #0056b3;
}

.parts08__toggle-icon {
  font-size: 12px;
  transition: transform 0.2s ease;
}

.parts08__item-text--collapsible {
  line-height: 1.6;
}
