/*
 * base.css
 * 元ソースの `@import "tailwindcss";` で読み込まれていた
 * Tailwind CSS v4 のリセット（preflight）と、アコーディオン部品で使われていたユーティリティを
 * 素の CSS に置き換えたものです。
 * 元と同じく @layer 内に置いているため、common.css（レイヤー外）の指定が常に優先されます。
 */
@layer theme, base, components, utilities;

@layer base {
  *,
  ::after,
  ::before,
  ::backdrop,
  ::file-selector-button {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    border: 0 solid;
  }
  html,
  :host {
    line-height: 1.5;
    -webkit-text-size-adjust: 100%;
    tab-size: 4;
    font-family: "ヒラギノ角ゴ Pro W3", "Hiragino Kaku Gothic Pro", Osaka, "メイリオ", Meiryo, "ＭＳ Ｐゴシック", sans-serif;
    font-feature-settings: normal;
    font-variation-settings: normal;
    -webkit-tap-highlight-color: transparent;
  }
  html {
  scroll-behavior: smooth;
}
  hr {
    height: 0;
    color: inherit;
    border-top-width: 1px;
  }
  abbr:where([title]) {
    -webkit-text-decoration: underline dotted;
    text-decoration: underline dotted;
  }
  h1, h2, h3, h4, h5, h6 {
    font-size: inherit;
    font-weight: inherit;
  }
  a {
    color: inherit;
    -webkit-text-decoration: inherit;
    text-decoration: none;
  }
  a:hover {
    opacity: 0.7;
  }
  b, strong {
    font-weight: bolder;
  }
  code, kbd, samp, pre {
    font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
    font-size: 1em;
  }
  small {
    font-size: 80%;
  }
  sub, sup {
    font-size: 75%;
    line-height: 0;
    position: relative;
    vertical-align: baseline;
  }
  sub { bottom: -0.25em; }
  sup { top: -0.5em; }
  table {
    text-indent: 0;
    border-color: inherit;
    border-collapse: collapse;
  }
  :-moz-focusring { outline: auto; }
  progress { vertical-align: baseline; }
  summary { display: list-item; }
  ol, ul, menu { list-style: none; }
  img, svg, video, canvas, audio, iframe, embed, object {
    display: block;
    vertical-align: middle;
  }
  img, video {
    max-width: 100%;
    height: auto;
  }
  button, input, select, optgroup, textarea, ::file-selector-button {
    font: inherit;
    font-feature-settings: inherit;
    font-variation-settings: inherit;
    letter-spacing: inherit;
    color: inherit;
    border-radius: 0;
    background-color: transparent;
    opacity: 1;
  }
  ::placeholder { opacity: 1; }
  textarea { resize: vertical; }
  ::-webkit-search-decoration { -webkit-appearance: none; }
  :-moz-ui-invalid { box-shadow: none; }
  button,
  input:where([type="button"], [type="reset"], [type="submit"]),
  ::file-selector-button {
    appearance: button;
  }
  ::-webkit-inner-spin-button,
  ::-webkit-outer-spin-button {
    height: auto;
  }
  [hidden]:where(:not([hidden="until-found"])) {
    display: none !important;
  }
}

/* アコーディオン（元: components/ui/accordion.tsx の Tailwind クラス） */
@layer utilities {
  .acc-item {
    border-bottom-style: solid;
    border-bottom-width: 1px;
  }
  .acc-item:last-child {
    border-bottom-width: 0;
  }
  .acc-header {
    display: flex;
  }
  .acc-trigger {
    display: flex;
    flex: 1;
    align-items: flex-start;
    justify-content: space-between;
    gap: 1rem;
    border-radius: 0.375rem;
    padding-block: 1rem;
    text-align: left;
    font-size: 0.875rem;
    line-height: calc(1.25 / 0.875);
    font-weight: 500;
    transition-property: all;
    transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
    transition-duration: 0.15s;
    outline-style: none;
  }
  @media (hover: hover) {
    .acc-trigger:hover {
      text-decoration-line: underline;
    }
  }
  .acc-trigger:focus-visible {
    box-shadow: 0 0 0 3px currentColor;
  }
  .acc-trigger[data-state="open"] > svg {
    rotate: 180deg;
  }
  .acc-icon {
    pointer-events: none;
    width: 1rem;
    height: 1rem;
    flex-shrink: 0;
    translate: 0 0.125rem;
    transition-property: transform, translate, scale, rotate;
    transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
    transition-duration: 0.2s;
  }
  .acc-content {
    overflow: hidden;
    font-size: 0.875rem;
    line-height: calc(1.25 / 0.875);
  }
  .acc-content-inner {
    padding-top: 0;
    padding-bottom: 1rem;
  }
}
